All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.57e33c6c-3.11b9f72925818240e61d.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/components/event-notifications/event-notification-types/LegacyNotificationCommonStyles.css","webpack:///./src/components/event-notifications/event-notification-types/EmailNotificationSummary.css","webpack:///./src/components/event-notifications/event-notification-types/CommonNotificationSummary.css","webpack:///./src/components/event-notifications/event-notification-types/EmailNotificationForm.jsx","webpack:///./src/components/event-notifications/event-notification-types/EmailNotificationFormContainer.jsx","webpack:///./src/components/event-notifications/event-notification-types/CommonNotificationSummary.css?bbbd","webpack:///./src/components/event-notifications/event-notification-types/CommonNotificationSummary.jsx","webpack:///./src/components/event-notifications/event-notification-types/EmailNotificationSummary.css?1331","webpack:///./src/components/event-notifications/event-notification-types/EmailNotificationSummary.jsx","webpack:///./src/components/event-notifications/event-notification-types/HttpNotificationForm.jsx","webpack:///./src/components/event-notifications/event-notification-types/HttpNotificationSummary.jsx","webpack:///./src/components/event-notifications/event-notification-types/LegacyNotificationCommonStyles.css?c869","webpack:///./src/components/event-notifications/event-notification-types/LegacyNotificationForm.jsx","webpack:///./src/components/event-notifications/event-notification-types/LegacyNotificationFormContainer.jsx","webpack:///./src/components/event-notifications/event-notification-types/LegacyNotificationSummary.jsx","webpack:///./src/components/event-notifications/event-notification-types/LegacyNotificationSummaryContainer.jsx","webpack:///./src/components/event-notifications/event-notification-details/EmailNotificationDetails.jsx","webpack:///./src/components/event-notifications/event-notification-details/HttpNotificationDetails.jsx","webpack:///./src/components/event-notifications/event-notification-details/LegacyNotificationDetails.jsx","webpack:///./src/components/event-notifications/event-notification-types/index.js"],"names":["___CSS_LOADER_EXPORT___","push","module","i","locals","EmailNotificationForm","key","value","props","config","onChange","nextConfig","lodash","cloneDeep","event","name","target","propagateChange","getValueFromInput","nextValue","split","users","map","user","label","username","fullName","this","validation","id","type","bsStyle","errors","subject","help","get","handleChange","required","HideOnCloud","className","sender","controlId","validationState","recipients","Array","isArray","user_recipients","join","placeholder","options","formatUsers","handleRecipientsChange","email_recipients","addLabelText","allowCreate","body","mode","theme","body_template","handleBodyTemplateChange","html_body_template","handleHtmlBodyTemplateChange","React","Component","PropTypes","object","isRequired","func","array","CurrentUserStore","CombinedProvider","EmailNotificationFormContainer","currentUser","isPermitted","permissions","UsersDomain","loadUsers","then","setState","Immutable","List","state","undefined","text","connect","CommonNotificationSummary","displayDetails","notification","definitionNotification","children","title","notification_id","bsSize","onClick","toggleDisplayDetails","condensed","hover","styles","fixedTable","description","string","element","EmailNotificationSummary","bodyPreview","HttpNotificationForm","FormsUtils","url","validationMessage","HttpNotificationSummary","LegacyNotificationForm","newValues","nextConfiguration","configuration","propagateMultiChange","legacyTypes","Object","keys","typeName","legacyNotificationType","defaultConfiguration","forEach","configKey","default_value","nextLegacyNotificationType","callback_type","getDefaultConfiguration","legacyType","configFields","configField","configValue","handleFormFieldChange","content","callbackType","typeData","renderNotificationForm","commonStyles","legacyNotificationAlert","matchProp","handleSelectNotificationChange","formatLegacyTypes","EventNotificationsStore","EventNotificationsActions","LegacyNotificationFormContainer","notifications","allLegacyTypes","listAllLegacyTypes","LegacyNotificationSummary","configurationValues","typeConfiguration","entries","human_name","LegacyNotificationSummaryContainer","EmailNotificationDetails","propTypes","HttpNotificationDetails","LegacyNotificationDetails","useState","setLegacyTypes","useEffect","result","types","notificationStyles","emailStyles","PluginStore","register","PluginManifest","eventNotificationTypes","displayName","formComponent","summaryComponent","detailsComponent","defaultConfig"],"mappings":"4GAAA,6CAGIA,EAHJ,MAG8B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,EAAI,0FAA2F,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,8GAA8G,MAAQ,GAAG,SAAW,sCAAsC,eAAiB,CAAC,qGAAqG,WAAa,MAE7cH,EAAwBI,OAAS,CAChC,wBAA2B,yBAEb,O,wCCVf,6CAGIJ,EAHJ,MAG8B,GAA4B,K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CAAmBkB,MAAOjB,EAAM+I,WACb/I,MACE,gBAAC,IAAD,CAAMqF,OAAO,QAAQrD,UAAW2H,GAAY3D,aACzC4C,EAAoB7I,IAAQ,2CAMjD,gBAAC,IAAD,CAAmBkB,MAAOjB,EAAM+I,WAAY/I,MAAO4I,EAAoB7I,SAvB3E,yBAAG,gBAAC,KAAD,CAAS6E,KAAK,iDA6B5BwE,GAA0BF,UAAY,CACpClE,aAAcvB,IAAUC,OAAOC,YAGlByF,UC1CfQ,cAAYC,SAAS,IAAIC,iBAAe,GAAI,CAC1CC,uBAAwB,CACtB,CACExI,KAAM,wBACNyI,YAAa,qBACbC,cAAejG,EACfkG,iBAAkBnE,GAClBoE,iBAAkBlB,GAClBmB,cAAetK,EAAsBsK,eAEvC,CACE7I,KAAM,uBACNyI,YAAa,oBACbC,cAAehE,GACfiE,iBAAkB7D,GAClB8D,iBAAkBhB,GAClBiB,cAAenE,GAAqBmE,eAEtC,CACE7I,KAAM,wCACNyI,YAAa,yBACbC,cAAe1B,GACf2B,iBAAkBlB,GAClBmB,iBAAkBf,GAClBgB,cAAe9D,GAAuB8D","file":"57e33c6c-3.11b9f72925818240e61d.js","sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".FfQPfgx4xYmsgjgv2Gz8k {\\n    margin-bottom: 15px;\\n    overflow-wrap: break-word;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/event-notifications/event-notification-types/LegacyNotificationCommonStyles.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,mBAAmB;IACnB,yBAAyB;AAC7B\",\"sourcesContent\":[\":local(.legacyNotificationAlert) {\\n    margin-bottom: 15px;\\n    overflow-wrap: break-word;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"legacyNotificationAlert\": \"FfQPfgx4xYmsgjgv2Gz8k\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".Mp5-E8DLO6rT_uw36MBge {\\n    font-family: \\\"Roboto Mono\\\", Menlo, Monaco, Consolas, \\\"Courier New\\\", monospace;\\n    font-size: 1rem; /* theme.fonts.size.body */\\n    overflow-wrap: break-word;\\n    white-space: pre-wrap;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/event-notifications/event-notification-types/EmailNotificationSummary.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,6EAA6E;IAC7E,eAAe,EAAE,0BAA0B;IAC3C,yBAAyB;IACzB,qBAAqB;AACzB\",\"sourcesContent\":[\":local(.bodyPreview) {\\n    font-family: \\\"Roboto Mono\\\", Menlo, Monaco, Consolas, \\\"Courier New\\\", monospace;\\n    font-size: 1rem; /* theme.fonts.size.body */\\n    overflow-wrap: break-word;\\n    white-space: pre-wrap;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"bodyPreview\": \"Mp5-E8DLO6rT_uw36MBge\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"._326SnxQRAxBrERQYBzS-Ab {\\n    table-layout: fixed;\\n    overflow-wrap: break-word;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/event-notifications/event-notification-types/CommonNotificationSummary.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,mBAAmB;IACnB,yBAAyB;AAC7B\",\"sourcesContent\":[\":local(.fixedTable) {\\n    table-layout: fixed;\\n    overflow-wrap: break-word;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"fixedTable\": \"_326SnxQRAxBrERQYBzS-Ab\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport lodash from 'lodash';\n\nimport { ControlLabel, FormGroup, HelpBlock } from 'components/graylog';\nimport { MultiSelect, SourceCodeEditor } from 'components/common';\nimport { Input } from 'components/bootstrap';\nimport { getValueFromInput } from 'util/FormsUtils';\nimport HideOnCloud from 'util/conditional/HideOnCloud';\n\n// TODO: Default body template should come from the server\nconst DEFAULT_BODY_TEMPLATE = `--- [Event Definition] ---------------------------\nTitle:       \\${event_definition_title}\nDescription: \\${event_definition_description}\nType:        \\${event_definition_type}\n--- [Event] --------------------------------------\nTimestamp:            \\${event.timestamp}\nMessage:              \\${event.message}\nSource:               \\${event.source}\nKey:                  \\${event.key}\nPriority:             \\${event.priority}\nAlert:                \\${event.alert}\nTimestamp Processing: \\${event.timestamp}\nTimerange Start:      \\${event.timerange_start}\nTimerange End:        \\${event.timerange_end}\nFields:\n\\${foreach event.fields field}  \\${field.key}: \\${field.value}\n\\${end}\n\\${if backlog}\n--- [Backlog] ------------------------------------\nLast messages accounting for this alert:\n\\${foreach backlog message}\n\\${message}\n\\${end}\n\\${end}\n`;\n\nconst DEFAULT_HTML_BODY_TEMPLATE = `\n\n\n\n\n
Event Definition
Title\\${event_definition_title}
Description\\${event_definition_description}
Type\\${event_definition_type}
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n
Event
Timestamp\\${event.timestamp}
Message\\${event.message}
Source\\${event.source}
Key\\${event.key}
Priority\\${event.priority}
Alert\\${event.alert}
Timestamp Processing\\${event.timestamp}
Timerange Start\\${event.timerange_start}
Timerange End\\${event.timerange_end}
Source Streams\\${event.source_streams}
Fields
    \\${foreach event.fields field}
  • \\${field.key}:\\${field.value}
  • \\${end}
    \n\\${if backlog}\n
    \n\n\\${foreach backlog message}\n\n\\${end}\n
    Backlog (Last messages accounting for this alert)
    \\${message}
    \n\\${end}\n`;\n\nclass EmailNotificationForm extends React.Component {\n static propTypes = {\n config: PropTypes.object.isRequired,\n validation: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n users: PropTypes.array.isRequired,\n };\n\n static defaultConfig = {\n sender: '', // TODO: Default sender should come from the server. The default should be empty or the address configured in the email server settings\n // eslint-disable-next-line no-template-curly-in-string\n subject: 'Graylog event notification: ${event_definition_title}', // TODO: Default subject should come from the server\n body_template: DEFAULT_BODY_TEMPLATE, // TODO: Default body template should come from the server\n html_body_template: DEFAULT_HTML_BODY_TEMPLATE,\n user_recipients: [],\n email_recipients: [],\n };\n\n propagateChange = (key, value) => {\n const { config, onChange } = this.props;\n const nextConfig = lodash.cloneDeep(config);\n\n nextConfig[key] = value;\n onChange(nextConfig);\n };\n\n handleChange = (event) => {\n const { name } = event.target;\n\n this.propagateChange(name, getValueFromInput(event.target));\n };\n\n handleBodyTemplateChange = (nextValue) => {\n this.propagateChange('body_template', nextValue);\n };\n\n handleHtmlBodyTemplateChange = (nextValue) => {\n this.propagateChange('html_body_template', nextValue);\n };\n\n handleRecipientsChange = (key) => {\n return (nextValue) => this.propagateChange(key, nextValue === '' ? [] : nextValue.split(','));\n };\n\n formatUsers = (users) => {\n return users.map((user) => ({ label: `${user.username} (${user.fullName})`, value: user.username }));\n };\n\n render() {\n const { config, users, validation } = this.props;\n\n return (\n <>\n \n \n Sender (Optional)}\n type=\"text\"\n bsStyle={validation.errors.sender ? 'error' : null}\n help={lodash.get(validation, 'errors.sender[0]',\n 'The email address that should be used as the notification sender. Leave it empty to use the default sender address.')}\n value={config.sender || ''}\n onChange={this.handleChange} />\n \n \n User recipient(s) (Optional)\n \n \n {lodash.get(validation, 'errors.recipients[0]', 'Select Graylog users that will receive this Notification.')}\n \n \n\n \n Email recipient(s) (Optional)\n \n \n {lodash.get(validation, 'errors.recipients[0]', 'Add email addresses that will receive this Notification.')}\n \n \n \n Body Template\n \n \n {lodash.get(validation, 'errors.body[0]', 'The template that will be used to generate the email body.')}\n \n \n \n HTML Body Template\n \n \n {lodash.get(validation, 'errors.body[0]', 'The template that will be used to generate the email HTML body.')}\n \n \n \n );\n }\n}\n\nexport default EmailNotificationForm;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport Immutable from 'immutable';\nimport PropTypes from 'prop-types';\n\nimport UsersDomain from 'domainActions/users/UsersDomain';\nimport { Spinner } from 'components/common';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport CombinedProvider from 'injection/CombinedProvider';\nimport connect from 'stores/connect';\n\nimport EmailNotificationForm from './EmailNotificationForm';\n\nconst { CurrentUserStore } = CombinedProvider.get('CurrentUser');\n\nclass EmailNotificationFormContainer extends React.Component {\n static propTypes = {\n currentUser: PropTypes.object.isRequired,\n config: PropTypes.object.isRequired,\n validation: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n users: undefined,\n };\n }\n\n componentDidMount() {\n this.loadUsers();\n }\n\n loadUsers = () => {\n const { currentUser } = this.props;\n\n if (isPermitted(currentUser.permissions, 'users:list')) {\n UsersDomain.loadUsers().then((users) => this.setState({ users }));\n } else {\n this.setState({ users: Immutable.List() });\n }\n };\n\n render() {\n const { users } = this.state;\n\n if (!users) {\n return

    ;\n }\n\n return ;\n }\n}\n\nexport default connect(EmailNotificationFormContainer,\n { currentUser: CurrentUserStore },\n ({ currentUser }) => ({ currentUser: currentUser ? currentUser.currentUser : currentUser }));\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--10-1!./CommonNotificationSummary.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Table, Button } from 'components/graylog';\nimport { Icon } from 'components/common';\n\nimport styles from './CommonNotificationSummary.css';\n\nclass CommonNotificationSummary extends React.Component {\n static propTypes = {\n type: PropTypes.string.isRequired,\n notification: PropTypes.object.isRequired,\n definitionNotification: PropTypes.object.isRequired,\n children: PropTypes.element.isRequired,\n };\n\n state = {\n displayDetails: false,\n };\n\n toggleDisplayDetails = () => {\n const { displayDetails } = this.state;\n\n this.setState({ displayDetails: !displayDetails });\n };\n\n render() {\n const { type, notification, definitionNotification, children } = this.props;\n const { displayDetails } = this.state;\n\n return (\n <>\n

    {notification.title || definitionNotification.notification_id}

    \n
    \n
    {type}
    \n
    \n \n {displayDetails && (\n \n \n \n \n \n \n {children}\n \n
    Description{notification.description || 'No description given'}
    \n )}\n
    \n
    \n \n );\n }\n}\n\nexport default CommonNotificationSummary;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--10-1!./EmailNotificationSummary.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Well } from 'components/graylog';\n\nimport CommonNotificationSummary from './CommonNotificationSummary';\nimport styles from './EmailNotificationSummary.css';\n\nclass EmailNotificationSummary extends React.Component {\n static propTypes = {\n type: PropTypes.string.isRequired,\n notification: PropTypes.object,\n definitionNotification: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n notification: {},\n };\n\n render() {\n const { notification } = this.props;\n\n return (\n \n <>\n \n Sender\n {notification.config.sender}\n \n \n Subject\n {notification.config.subject}\n \n \n User recipients\n {notification.config.user_recipients.join(', ') || 'No users will receive this notification.'}\n \n \n Email recipients\n \n {notification.config.email_recipients.join(', ') || 'No email addresses are configured to receive this notification.'}\n \n \n \n Email Body\n \n \n {notification.config.body_template || Empty body}\n \n \n \n \n Email HTML Body\n \n \n {notification.config.html_body_template || Empty HTML body}\n \n \n \n \n \n );\n }\n}\n\nexport default EmailNotificationSummary;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport lodash from 'lodash';\n\nimport { URLWhiteListInput } from 'components/common';\nimport * as FormsUtils from 'util/FormsUtils';\n\nclass HttpNotificationForm extends React.Component {\n static propTypes = {\n config: PropTypes.object.isRequired,\n validation: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n };\n\n propagateChange = (key, value) => {\n const { config, onChange } = this.props;\n const nextConfig = lodash.cloneDeep(config);\n\n nextConfig[key] = value;\n onChange(nextConfig);\n };\n\n handleChange = (event) => {\n const { name } = event.target;\n\n this.propagateChange(name, FormsUtils.getValueFromInput(event.target));\n };\n\n static defaultConfig = {\n url: '',\n }\n\n render() {\n const { config, validation } = this.props;\n\n return (\n <>\n \n \n );\n }\n}\n\nexport default HttpNotificationForm;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport CommonNotificationSummary from './CommonNotificationSummary';\n\nclass HttpNotificationSummary extends React.Component {\n static propTypes = {\n type: PropTypes.string.isRequired,\n notification: PropTypes.object,\n definitionNotification: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n notification: {},\n };\n\n render() {\n const { notification } = this.props;\n\n return (\n \n <>\n \n URL\n {notification.config.url}\n \n \n \n );\n }\n}\n\nexport default HttpNotificationSummary;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--10-1!./LegacyNotificationCommonStyles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport lodash from 'lodash';\n\nimport { Alert, ControlLabel, FormGroup, HelpBlock } from 'components/graylog';\nimport { Select } from 'components/common';\nimport { ConfigurationFormField } from 'components/configurationforms';\n\nimport commonStyles from './LegacyNotificationCommonStyles.css';\n\nclass LegacyNotificationForm extends React.Component {\n static propTypes = {\n config: PropTypes.object.isRequired,\n validation: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n legacyTypes: PropTypes.object.isRequired,\n };\n\n static defaultConfig = {\n callback_type: '',\n configuration: {},\n };\n\n propagateMultiChange = (newValues) => {\n const { config, onChange } = this.props;\n const nextConfig = { ...config, ...newValues };\n\n onChange(nextConfig);\n };\n\n propagateChange = (key, value) => {\n const { config } = this.props;\n const nextConfiguration = { ...config.configuration, [key]: value };\n\n this.propagateMultiChange({ configuration: nextConfiguration });\n };\n\n formatLegacyTypes = (legacyTypes) => {\n return Object.keys(legacyTypes)\n .map((typeName) => ({ label: `Legacy ${legacyTypes[typeName].name}`, value: typeName }));\n };\n\n getDefaultConfiguration = (legacyNotificationType) => {\n const { legacyTypes } = this.props;\n const { configuration } = legacyTypes[legacyNotificationType];\n const defaultConfiguration = {};\n\n Object.keys(configuration).forEach((configKey) => {\n defaultConfiguration[configKey] = configuration[configKey].default_value;\n });\n\n return defaultConfiguration;\n };\n\n handleSelectNotificationChange = (nextLegacyNotificationType) => {\n this.propagateMultiChange({\n callback_type: nextLegacyNotificationType,\n configuration: this.getDefaultConfiguration(nextLegacyNotificationType),\n });\n };\n\n handleFormFieldChange = (key, value) => {\n this.propagateChange(key, value);\n };\n\n renderNotificationForm(config, legacyType) {\n const { configuration } = legacyType;\n\n const configFields = Object.keys(configuration).map((configKey) => {\n const configField = configuration[configKey];\n const configValue = config.configuration[configKey];\n\n return (\n \n );\n });\n\n return (\n
    \n {configFields}\n
    \n );\n }\n\n render() {\n const { config, legacyTypes, validation } = this.props;\n const callbackType = config.callback_type;\n const typeData = legacyTypes[callbackType];\n\n let content;\n\n if (typeData) {\n content = this.renderNotificationForm(config, typeData);\n } else if (callbackType) {\n content = (\n \n Unknown legacy alarm callback type: {callbackType} Please make sure the plugin is installed.\n \n );\n }\n\n return (\n <>\n
    \n \n Choose Legacy Notification\n