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AAC,CAAC,EAClCoF,EAAMC,EAAA,GAAoBC,EAAA,EAAU,mBAAmB,cAAc,EAAE,GAAG,EAC1EC,KAAU,MAAM,OAAQH,EAAK,CAAE,SAAUM,CAAQ,CAAC,EAExDT,EAAe,oBAAoB,QAAQM,CAAO,CACpD,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/components/content-packs/ContentPackSelection.css","webpack://graylog-web-interface/./src/components/content-packs/ContentPackSelection.css?d7b2","webpack://graylog-web-interface/./src/components/content-packs/ContentPackSelection.jsx","webpack://graylog-web-interface/./src/components/content-packs/ContentPackPreview.jsx","webpack://graylog-web-interface/./src/components/content-packs/ContentPackParameters.jsx","webpack://graylog-web-interface/./src/components/content-packs/ContentPackEdit.jsx","webpack://graylog-web-interface/./src/logic/content-packs/EntityIndex.js","webpack://graylog-web-interface/./src/stores/content-packs/CatalogStore.js"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.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, `.px9Gw1DZOqXRLhrnJC1w {\n color: rgba(158, 31, 99, 0.43);\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/content-packs/ContentPackSelection.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,8BAA8B;AAClC\",\"sourcesContent\":[\":local(.contentPackEntity) {\\n color: rgba(158, 31, 99, 0.43);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"contentPackEntity\": `px9Gw1DZOqXRLhrnJC1w`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./ContentPackSelection.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./ContentPackSelection.css\";\n export default content && content.locals ? content.locals : undefined;\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 PropTypes from 'prop-types';\nimport React from 'react';\nimport cloneDeep from 'lodash/cloneDeep';\nimport styled from 'styled-components';\n\nimport { defaultCompare as naturalSort } from 'logic/DefaultCompare';\nimport { ExpandableList, ExpandableListItem, Icon, SearchForm } from 'components/common';\nimport { Col, HelpBlock, Row, Input } from 'components/bootstrap';\nimport { getValueFromInput } from 'util/FormsUtils';\nimport Entity from 'logic/content-packs/Entity';\nimport { hasAcceptedProtocol } from 'util/URLUtils';\nimport InputDescription from 'components/common/InputDescription';\n\nimport style from './ContentPackSelection.css';\n\nconst HeaderText = styled.span`\n overflow-wrap: anywhere;\n`;\n\nconst HeaderIcon = styled(Icon)(({ theme }) => `\n padding-top: ${theme.spacings.xxs};\n padding-right: ${theme.spacings.xxs};\n`);\n\nconst _entityItemHeader = (entity) => {\n if (entity instanceof Entity) {\n return <> {' '}{entity.title}>;\n }\n\n return <> {' '}{entity.title} >;\n};\n\nclass ContentPackSelection extends React.Component {\n static propTypes = {\n contentPack: PropTypes.object.isRequired,\n onStateChange: PropTypes.func,\n entities: PropTypes.object,\n selectedEntities: PropTypes.object,\n edit: PropTypes.bool,\n };\n\n static defaultProps = {\n edit: false,\n onStateChange: () => {},\n entities: {},\n selectedEntities: {},\n };\n\n static _toDisplayTitle(title) {\n const newTitle = title.split('_').join(' ');\n\n return newTitle[0].toUpperCase() + newTitle.substr(1);\n }\n\n constructor(props) {\n super(props);\n\n const { entities, contentPack } = this.props;\n\n this.state = {\n contentPack: contentPack,\n filteredEntities: entities,\n filter: '',\n isFiltered: false,\n errors: {},\n touched: {},\n };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n this.setState({ filteredEntities: nextProps.entities, contentPack: nextProps.contentPack });\n const { filter, isFiltered } = this.state;\n\n if (isFiltered) {\n this._filterEntities(filter);\n }\n }\n\n _updateField = (name, value) => {\n const { contentPack } = this.state;\n const { onStateChange } = this.props;\n const updatedPack = contentPack.toBuilder()[name](value).build();\n\n onStateChange({ contentPack: updatedPack });\n this.setState({ contentPack: updatedPack }, this._validate);\n };\n\n _validate = (newSelection) => {\n const mandatoryFields = ['name', 'summary', 'vendor'];\n const { contentPack } = this.state;\n const { selectedEntities: prevSelectedEntities } = this.props;\n const selectedEntities = newSelection || prevSelectedEntities;\n\n const errors = mandatoryFields.reduce((acc, field) => {\n const newErrors = acc;\n\n if (!contentPack[field] || contentPack[field].length <= 0) {\n newErrors[field] = 'Must be filled out.';\n }\n\n return newErrors;\n }, {});\n\n if (contentPack.url) {\n try {\n if (!hasAcceptedProtocol(contentPack.url)) {\n errors.url = 'Must use a URL starting with http or https.';\n }\n } catch (e) {\n errors.url = 'Invalid URL';\n }\n }\n\n const selectionEmpty = Object.keys(selectedEntities)\n .reduce((acc, entityGroup) => acc + selectedEntities[entityGroup].length, 0) <= 0;\n\n if (selectionEmpty) {\n errors.selection = 'Select at least one entity.';\n }\n\n this.setState({ errors });\n };\n\n _bindValue = (event) => {\n this._updateField(event.target.name, getValueFromInput(event.target));\n };\n\n _handleTouched = (name) => {\n this.setState((prevState) => ({\n touched: {\n ...prevState.touched,\n [name]: true,\n selection: true,\n },\n }), this._validate);\n };\n\n _error = (name) => (this.state.touched[name] ? this.state.errors[name] : undefined);\n\n _updateSelectionEntity = (entity) => {\n const { selectedEntities, onStateChange } = this.props;\n const typeName = entity.type.name;\n const newSelection = cloneDeep(selectedEntities);\n\n newSelection[typeName] = (newSelection[typeName] || []);\n const index = newSelection[typeName].findIndex((e) => e.id === entity.id);\n\n if (index < 0) {\n newSelection[typeName].push(entity);\n } else {\n newSelection[typeName].splice(index, 1);\n }\n\n this._handleTouched('selection');\n this._validate(newSelection);\n onStateChange({ selectedEntities: newSelection });\n };\n\n _updateSelectionGroup = (type) => {\n const { selectedEntities, entities, onStateChange } = this.props;\n const { isFiltered, filteredEntities } = this.state;\n\n const newSelection = cloneDeep(selectedEntities);\n\n if (isFiltered) {\n if (newSelection[type]) {\n newSelection[type] = [...newSelection[type], ...filteredEntities[type]];\n } else {\n newSelection[type] = filteredEntities[type];\n }\n } else if (this._isGroupSelected(type)) {\n newSelection[type] = [];\n } else {\n newSelection[type] = entities[type];\n }\n\n this._handleTouched('selection');\n this._validate(newSelection);\n onStateChange({ selectedEntities: newSelection });\n };\n\n _isUndetermined = (type) => {\n const { selectedEntities, entities } = this.props;\n\n if (!selectedEntities[type]) {\n return false;\n }\n\n return !(selectedEntities[type].length === entities[type].length\n || selectedEntities[type].length === 0);\n };\n\n _isSelected = (entity) => {\n const { selectedEntities } = this.props;\n const typeName = entity.type.name;\n\n if (!selectedEntities[typeName]) {\n return false;\n }\n\n return selectedEntities[typeName].findIndex((e) => e.id === entity.id) >= 0;\n };\n\n _isGroupSelected = (type) => {\n const { selectedEntities, entities } = this.props;\n\n if (!selectedEntities[type]) {\n return false;\n }\n\n return selectedEntities[type].length === entities[type].length;\n };\n\n _onSetFilter = (filter) => {\n this._filterEntities(filter);\n };\n\n _onClearFilter = () => {\n this._filterEntities('');\n };\n\n _filterEntities = (filterArg) => {\n const { entities } = this.props;\n const filter = filterArg;\n\n if (filter.length <= 0) {\n this.setState({ filteredEntities: cloneDeep(entities), isFiltered: false, filter: filter });\n\n return;\n }\n\n const filtered = Object.keys(entities).reduce((result, type) => {\n const filteredEntities = cloneDeep(result);\n\n filteredEntities[type] = entities[type].filter((entity) => {\n const regexp = RegExp(filter, 'i');\n\n return regexp.test(entity.title);\n });\n\n return filteredEntities;\n }, {});\n\n this.setState({ filteredEntities: filtered, isFiltered: true, filter: filter });\n };\n\n render() {\n const { filteredEntities = {}, errors, touched, isFiltered, contentPack } = this.state;\n const { edit } = this.props;\n\n const entitiesComponent = Object.keys(filteredEntities)\n .sort((a, b) => naturalSort(a, b))\n .map((entityType) => {\n const group = filteredEntities[entityType];\n const entities = group.sort((a, b) => naturalSort(a.title, b.title)).map((entity) => {\n const checked = this._isSelected(entity);\n const header = _entityItemHeader(entity);\n\n return (\n this._updateSelectionEntity(entity)}\n key={entity.id}\n checked={checked}\n expandable={false}\n padded={false}\n header={header} />\n );\n });\n\n if (group.length <= 0) {\n return null;\n }\n\n return (\n this._updateSelectionGroup(entityType)}\n indetermined={this._isUndetermined(entityType)}\n checked={this._isGroupSelected(entityType)}\n stayExpanded={isFiltered}\n expanded={isFiltered}\n padded={false}\n header={ContentPackSelection._toDisplayTitle(entityType)}>\n \n {entities}\n \n \n );\n });\n\n return (\n \n \n \n General Information
\n
\n \n \n
\n \n \n Content Pack selection
\n {edit && (\n You can select between installed entities from the server ( ) or\n entities from the former content pack revision ( ).\n \n )}\n \n
\n \n \n \n \n
\n \n \n {touched.selection && errors.selection && }\n \n {entitiesComponent}\n \n \n
\n \n );\n }\n}\n\nexport default ContentPackSelection;\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 PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Row, Col, Button } from 'components/bootstrap';\nimport ContentPackDetails from 'components/content-packs/ContentPackDetails';\nimport ContentPackConstraints from 'components/content-packs/ContentPackConstraints';\n\nimport ContentPackEntitiesList from './ContentPackEntitiesList';\nimport ContentPackParameterList from './ContentPackParameterList';\n\nclass ContentPackPreview extends React.Component {\n static propTypes = {\n contentPack: PropTypes.object.isRequired,\n onSave: PropTypes.func,\n };\n\n static defaultProps = {\n onSave: () => {},\n };\n\n _renderDownload() {\n const contentPackEncoded = encodeURIComponent(JSON.stringify(this.props.contentPack, null, 2));\n const href = `data:text/plain;charset=utf-8,${contentPackEncoded}`;\n const filename = `content-pack-${this.props.contentPack.id}-${this.props.contentPack.rev}.json`;\n\n return (\n \n \n \n );\n }\n\n render() {\n return (\n \n \n \n \n \n \n \n \n \n \n
\n \n \n \n {this._renderDownload()}\n \n
\n \n );\n }\n}\n\nexport default ContentPackPreview;\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 PropTypes from 'prop-types';\nimport React from 'react';\nimport remove from 'lodash/remove';\n\nimport { Row, Col, BootstrapModalConfirm } from 'components/bootstrap';\nimport ObjectUtils from 'util/ObjectUtils';\n\nimport ContentPackEntitiesList from './ContentPackEntitiesList';\nimport ContentPackParameterList from './ContentPackParameterList';\n\nclass ContentPackParameters extends React.Component {\n static propTypes = {\n contentPack: PropTypes.object.isRequired,\n onStateChange: PropTypes.func,\n appliedParameter: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n onStateChange: () => {},\n };\n\n static emptyParameter = {\n name: '',\n title: '',\n description: '',\n type: 'string',\n default_value: '',\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n showParameterModal: false,\n parameterToDelete: undefined,\n };\n }\n\n _addNewParameter = (newParameter, oldParameter) => {\n let newContentPackBuilder = this.props.contentPack.toBuilder();\n const newAppliedParameter = ObjectUtils.clone(this.props.appliedParameter);\n\n if (oldParameter) {\n /* If the name of the parameter changed we need to update the reference in appliedParameter */\n Object.keys(newAppliedParameter).forEach((id) => {\n newAppliedParameter[id] = newAppliedParameter[id].map((paramMap) => {\n if (paramMap.paramName === oldParameter.name) {\n return { configKey: paramMap.configKey, paramName: newParameter.name };\n }\n\n return paramMap;\n });\n });\n\n /* If we update a parameter we remove the old one first */\n newContentPackBuilder = newContentPackBuilder.removeParameter(oldParameter);\n }\n\n newContentPackBuilder.addParameter(newParameter);\n this.props.onStateChange({ contentPack: newContentPackBuilder.build(), appliedParameter: newAppliedParameter });\n };\n\n _onParameterApply = (id, configKey, paramName) => {\n const paramMap = { configKey: configKey, paramName: paramName };\n const newAppliedParameter = ObjectUtils.clone(this.props.appliedParameter);\n\n newAppliedParameter[id] = newAppliedParameter[id] || [];\n newAppliedParameter[id].push(paramMap);\n this.props.onStateChange({ appliedParameter: newAppliedParameter });\n };\n\n _onParameterClear = (id, configKey) => {\n const newAppliedParameter = ObjectUtils.clone(this.props.appliedParameter);\n\n remove(newAppliedParameter[id], (paramMap) => paramMap.configKey === configKey);\n this.props.onStateChange({ appliedParameter: newAppliedParameter });\n };\n\n _deleteParameter = (parameter) => {\n const { contentPack } = this.props;\n const newAppliedParameter = ObjectUtils.clone(this.props.appliedParameter);\n\n /* If we delete a parameter we need to remove the reference from appliedParameter */\n Object.keys(newAppliedParameter).forEach((id) => {\n remove(newAppliedParameter[id], (paramMap) => paramMap.paramName === parameter.name);\n\n if (newAppliedParameter[id].length <= 0) {\n delete newAppliedParameter[id];\n }\n });\n\n const newContentPack = contentPack.toBuilder().removeParameter(parameter).build();\n\n this.props.onStateChange({ contentPack: newContentPack, appliedParameter: newAppliedParameter });\n this._closeConfirmModal();\n };\n\n _confirmationModal = () => (\n { this._deleteParameter(this.state.parameterToDelete); }}\n onCancel={this._closeConfirmModal}>\n {`Are you sure you want to do delete this parameter: ${(this.state.parameterToDelete || {}).title}?`}\n \n );\n\n _openConfirmModal = (parameter) => {\n this.setState({ showParameterModal: true, parameterToDelete: parameter });\n };\n\n _closeConfirmModal = () => {\n this.setState({ showParameterModal: false, parameterToDelete: undefined });\n };\n\n render() {\n return (\n \n \n \n \n {this._confirmationModal()}\n \n
\n \n \n \n \n
\n \n );\n }\n}\n\nexport default ContentPackParameters;\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 PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Spinner, Wizard, ScrollButton } from 'components/common';\nimport ValueReferenceData from 'util/ValueReferenceData';\nimport ContentPackSelection from 'components/content-packs/ContentPackSelection';\nimport ContentPackDetails from 'components/content-packs/ContentPackDetails';\nimport ContentPackPreview from 'components/content-packs/ContentPackPreview';\nimport ContentPackParameters from 'components/content-packs/ContentPackParameters';\n\nclass ContentPackEdit extends React.Component {\n static propTypes = {\n contentPack: PropTypes.object,\n onGetEntities: PropTypes.func,\n onStateChange: PropTypes.func,\n onSave: PropTypes.func,\n fetchedEntities: PropTypes.array,\n entityIndex: PropTypes.object,\n selectedEntities: PropTypes.object,\n appliedParameter: PropTypes.object,\n edit: PropTypes.bool,\n };\n\n static defaultProps = {\n edit: false,\n contentPack: undefined,\n onGetEntities: () => {},\n onStateChange: () => {},\n onSave: () => {},\n fetchedEntities: [],\n entityIndex: {},\n selectedEntities: {},\n appliedParameter: {},\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n selectedStep: 'selection',\n };\n }\n\n _disableParameters() {\n const content = this.props.contentPack;\n const { selectedEntities } = this.props;\n const selection = Object.keys(selectedEntities)\n .reduce((acc, key) => acc + selectedEntities[key].length, 0) > 0;\n\n return !(content.name && content.summary && content.vendor && selection);\n }\n\n _disablePreview() {\n return this.state.selectedStep === 'selection' || !this.state.selectedStep;\n }\n\n _prepareForPreview() {\n const newEntities = this.props.fetchedEntities.map((entity) => {\n const parameters = this.props.appliedParameter[entity.id] || [];\n const newEntityBuilder = entity.toBuilder();\n const entityData = new ValueReferenceData(entity.data);\n const configPaths = entityData.getPaths();\n\n Object.keys(configPaths).forEach((path) => {\n const index = parameters.findIndex((paramMap) => paramMap.configKey === path);\n\n if (index >= 0) {\n configPaths[path].setParameter(parameters[index].paramName);\n }\n });\n\n newEntityBuilder.data(entityData.getData()).parameters(this.props.contentPack.parameters);\n\n return newEntityBuilder.build();\n });\n const newContentPack = this.props.contentPack.toBuilder()\n .entities(newEntities)\n .build();\n\n this.props.onStateChange({ contentPack: newContentPack });\n }\n\n _stepChanged = (selectedStep) => {\n switch (selectedStep) {\n case 'parameters': {\n const newContentPack = this.props.contentPack.toBuilder()\n .entities(this.props.fetchedEntities || [])\n .build();\n\n this.props.onStateChange({ contentPack: newContentPack });\n\n if (Object.keys(this.props.selectedEntities).length > 0) {\n this.props.onGetEntities(this.props.selectedEntities);\n }\n\n break;\n }\n\n case 'preview': {\n this._prepareForPreview();\n break;\n }\n\n default: {\n break;\n }\n }\n\n this.setState({ selectedStep: selectedStep });\n };\n\n render() {\n if (!this.props.contentPack) {\n return ( );\n }\n\n const selectionComponent = (\n \n );\n const parameterComponent = (\n \n );\n const previewComponent = (\n \n );\n const steps = [\n { key: 'selection', title: 'Content Selection', component: selectionComponent },\n { key: 'parameters', title: 'Parameters', component: parameterComponent, disabled: this._disableParameters() },\n { key: 'preview', title: 'Preview', component: previewComponent, disabled: this._disablePreview() },\n ];\n\n return (\n \n \n {this.state.selectedStep !== 'preview' ? (\n \n ) : undefined}\n \n \n \n );\n }\n}\n\nexport default ContentPackEdit;\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 Immutable from 'immutable';\n\nexport default class EntityIndex {\n constructor(id, title, type) {\n this._value = { id, title, type };\n }\n\n get id() {\n return this._value.id;\n }\n\n get type() {\n return this._value.type;\n }\n\n get title() {\n return this._value.title;\n }\n\n toBuilder() {\n const { id, title, type } = this._value;\n\n // eslint-disable-next-line no-use-before-define\n return new Builder(Immutable.Map({ id, title, type }));\n }\n\n static create(id, title, type) {\n return new EntityIndex(id, title, type);\n }\n\n toJSON() {\n const { id, type } = this._value;\n\n return {\n id,\n type,\n };\n }\n\n /* eslint-disable-next-line class-methods-use-this */\n get isEntityIndex() {\n return true;\n }\n\n /* implement custom instanceof */\n static [Symbol.hasInstance](obj) {\n if (obj.isEntityIndex) {\n return true;\n }\n\n return false;\n }\n\n static fromJSON(value) {\n const { id, title, type } = value;\n\n return EntityIndex.create(id, title, type);\n }\n}\n\nclass Builder {\n constructor(value = Immutable.Map()) {\n this.value = value;\n }\n\n id(value) {\n return new Builder(this.value.set('id', value));\n }\n\n title(value) {\n return new Builder(this.value.set('title', value));\n }\n\n type(value) {\n return new Builder(this.value.set('type', value));\n }\n\n build() {\n const { id, title, type } = this.value.toObject();\n\n return new EntityIndex(id, title, type);\n }\n}\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 Reflux from 'reflux';\nimport groupBy from 'lodash/groupBy';\n\nimport * as URLUtils from 'util/URLUtils';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport fetch from 'logic/rest/FetchProvider';\nimport EntityIndex from 'logic/content-packs/EntityIndex';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const CatalogActions = singletonActions(\n 'core.Catalog',\n () => Reflux.createActions({\n showEntityIndex: { asyncResult: true },\n getSelectedEntities: { asyncResult: true },\n }),\n);\n\nexport const CatalogStore = singletonStore(\n 'core.Catalog',\n () => Reflux.createStore({\n listenables: [CatalogActions],\n\n getInitialState() {\n return {\n entityIndex: undefined,\n };\n },\n\n showEntityIndex() {\n const url = URLUtils.qualifyUrl(ApiRoutes.CatalogsController.showEntityIndex().url);\n const promise = fetch('GET', url)\n .then((result) => {\n const entityIndex = groupBy(result.entities.map((e) => EntityIndex.fromJSON(e)), 'type.name');\n\n this.trigger({ entityIndex: entityIndex });\n\n return result;\n });\n\n CatalogActions.showEntityIndex.promise(promise);\n },\n\n getSelectedEntities(requestedEntities) {\n const payload = Object.keys(requestedEntities).reduce((result, key) => result.concat(requestedEntities[key]\n .filter((entitiy) => entitiy instanceof EntityIndex)\n .map((entity) => entity.toJSON())), []);\n const url = URLUtils.qualifyUrl(ApiRoutes.CatalogsController.queryEntities().url);\n const promise = fetch('POST', url, { entities: payload });\n\n CatalogActions.getSelectedEntities.promise(promise);\n },\n }),\n);\n"],"names":["___CSS_LOADER_EXPORT___","module","options","update","HeaderText","HeaderIcon","theme","_entityItemHeader","entity","Entity","props","name","value","contentPack","onStateChange","updatedPack","newSelection","mandatoryFields","prevSelectedEntities","selectedEntities","errors","acc","field","newErrors","entityGroup","event","prevState","typeName","index","e","type","entities","isFiltered","filteredEntities","filter","filterArg","filtered","result","title","newTitle","nextProps","touched","edit","entitiesComponent","a","b","entityType","group","checked","header","InputDescription","ContentPackPreview","href","filename","ContentPackDetails","ContentPackConstraints","ContentPackEntitiesList","ContentPackParameterList","ContentPackParameters","newParameter","oldParameter","newContentPackBuilder","newAppliedParameter","ObjectUtils","id","paramMap","configKey","paramName","parameter","newContentPack","ContentPackEdit","selectedStep","content","selection","key","newEntities","parameters","newEntityBuilder","entityData","ValueReferenceData","configPaths","path","selectionComponent","parameterComponent","previewComponent","steps","EntityIndex","Builder","obj","CatalogActions","singleton","CatalogStore","url","URLUtils","ApiRoutes","promise","entityIndex","requestedEntities","payload","entitiy"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy