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ACN,CAEAtI,EAAO,QAAUyI,C,uBC5BjB,IAAIC,EAAc,EAAQ,UAAgB,EACtCC,EAAW,EAAQ,UAAa,EAChCC,EAAW,EAAQ,UAAa,EAChCC,EAAoB,EAAQ,UAAqB,EAkBjDC,EAAQH,EAAS,SAASI,EAAQ,CACpC,OAAOH,EAASF,EAAYK,EAAQ,EAAGF,EAAmB,EAAI,CAAC,CACjE,CAAC,EAED7I,EAAO,QAAU8I,C,+NCdbE,EAAU,CAAC,EAEfA,EAAQ,kBAAoB,IAC5BA,EAAQ,cAAgB,IAElBA,EAAQ,OAAS,SAAc,KAAM,MAAM,EAEjDA,EAAQ,OAAS,IACjBA,EAAQ,mBAAqB,IAE7B,IAAIC,EAAS,IAAI,IAASD,CAAO,EAK1B,QAAe,KAAW,IAAQ,OAAS,IAAQ,OAAS,M","sources":["webpack://graylog-web-interface/./src/components/event-definitions/common/commonStyles.css","webpack://graylog-web-interface/./src/components/lookup-table-parameters/LookupTableParameterEdit.tsx","webpack://graylog-web-interface/./src/components/event-definitions/event-definition-form/EditQueryParameterModal.tsx","webpack://graylog-web-interface/./src/components/event-definitions/event-definition-types/FilterForm.jsx","webpack://graylog-web-interface/./src/stores/lookup-tables/LookupTablesStore.ts","webpack://graylog-web-interface/./src/util/SortUtils.ts","webpack://graylog-web-interface/./node_modules/lodash/_baseExtremum.js","webpack://graylog-web-interface/./node_modules/lodash/_baseGt.js","webpack://graylog-web-interface/./node_modules/lodash/max.js","webpack://graylog-web-interface/./node_modules/lodash/union.js","webpack://graylog-web-interface/./src/components/event-definitions/common/commonStyles.css?c497"],"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, `.Q3IGkFIUvJ2Wg6SvuD4K {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n\n.IsgkvOxhQSEsv8gRjrL3 {\n table-layout: fixed;\n}\n\n.A9wyo101mpbrg9i57cBz.alert {\n margin-bottom: 10px;\n}\n\n.A9wyo101mpbrg9i57cBz h4 {\n font-size: 1.44rem; /* theme.fonts.size.body h4 */\n margin-bottom: 0.5em;\n}\n\n.A9wyo101mpbrg9i57cBz ul {\n list-style: disc;\n margin: 0.5em 0;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/event-definitions/common/commonStyles.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,gBAAgB;IAChB,mBAAmB;AACvB;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,kBAAkB,EAAE,6BAA6B;IACjD,oBAAoB;AACxB;;AAEA;IACI,gBAAgB;IAChB,eAAe;AACnB\",\"sourcesContent\":[\":local(.title) {\\n margin-top: 10px;\\n margin-bottom: 10px;\\n}\\n\\n:local(.fixedTable) {\\n table-layout: fixed;\\n}\\n\\n:local(.validationSummary).alert {\\n margin-bottom: 10px;\\n}\\n\\n:local(.validationSummary) h4 {\\n font-size: 1.44rem; /* theme.fonts.size.body h4 */\\n margin-bottom: 0.5em;\\n}\\n\\n:local(.validationSummary) ul {\\n list-style: disc;\\n margin: 0.5em 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"title\": `Q3IGkFIUvJ2Wg6SvuD4K`,\n\t\"fixedTable\": `IsgkvOxhQSEsv8gRjrL3`,\n\t\"validationSummary\": `A9wyo101mpbrg9i57cBz`\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 * as React from 'react';\nimport styled from 'styled-components';\n\nimport { Panel, Input } from 'components/bootstrap';\nimport Select from 'components/common/Select';\nimport { naturalSortIgnoreCase } from 'util/SortUtils';\nimport Spinner from 'components/common/Spinner';\nimport type { LookupTable } from 'logic/lookup-tables/types';\n\nconst StyledInlineCode = styled('code')`\n margin: 0 0.25em;\n white-space: nowrap;\n`;\n\ntype Props = {\n onChange: (fieldName: string, value: string) => void\n lookupTables: Array\n identifier: string | number,\n defaultExpandHelp?: boolean,\n parameter?: {\n lookupTable?: string,\n key?: string,\n defaultValue?: string\n name?: string,\n },\n validationState?: {\n lookupTable?: [string, string],\n key?: [string, string],\n }\n};\n\nconst LookupTableParameterEdit = ({\n validationState,\n onChange,\n lookupTables,\n identifier,\n parameter,\n defaultExpandHelp,\n}: Props) => {\n const { lookupTable, key: tableKey, defaultValue, name } = parameter;\n const parameterSyntax = `$${name}$`;\n\n const _handleChange = (fieldName: string) => (value) => {\n onChange(fieldName, value);\n };\n\n const _handleInputChange = (attributeName: string) => ({ target: { value } }: React.ChangeEvent) => _handleChange(attributeName)(value);\n\n if (!lookupTables) {\n return ;\n }\n\n const lookupTableOptions = lookupTables.sort((lt1, lt2) => naturalSortIgnoreCase(lt1.title, lt2.title))\n .map((table) => ({ label: table.title, value: table.name }));\n\n return (\n <>\n \n \n \n \n \n\n \n \n \n How to use lookup table parameters\n \n \n \n \n General Usage
\n \n After declaring it, the parameter\n {parameterSyntax} \n in your query, will be replaced with the list of results from the lookup table.\n The list of results will be presented in the form of a Lucene BooleanQuery. E.g.:\n ("foo" OR "bar" OR "baz") \n
\n Behaviour on empty lookup result list
\n \n The event definition query is only executed if a value for the parameter is present.\n If the lookup result is empty, the execution will be skipped and treated as if the Search Query found\n no messages. If an execution is desired a Default Value that yields the desired search result\n needs to be provided. For example, (depending on the use case) a wildcard like\n * \n can be a meaningful Default Value.\n
\n Limitations
\n \n Please note that maximum number of supported results is 1024. If the lookup table returns\n more results, the query is not executed.\n
\n \n \n \n >\n );\n};\n\nLookupTableParameterEdit.defaultProps = {\n parameter: {},\n validationState: {},\n defaultExpandHelp: true,\n};\n\nexport default LookupTableParameterEdit;\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 isEmpty from 'lodash/isEmpty';\nimport React from 'react';\n\nimport LookupTableParameterEdit from 'components/lookup-table-parameters/LookupTableParameterEdit';\nimport { Button, BootstrapModalForm } from 'components/bootstrap';\nimport type { LookupTable } from 'logic/lookup-tables/types';\nimport type { LookupTableParameterJson } from 'views/logic/parameters/LookupTableParameter';\nimport type LookupTableParameter from 'views/logic/parameters/LookupTableParameter';\n\ntype Props = {\n queryParameters: Array,\n lookupTables: Array,\n onChange: (newQueryParameters: Array) => void,\n queryParameter: LookupTableParameter,\n embryonic: boolean,\n}\n\ntype State = {\n showModal: boolean,\n queryParameter: LookupTableParameter,\n validation: {\n lookupTable?: string,\n key?: string,\n },\n}\n\nclass EditQueryParameterModal extends React.Component {\n static propTypes = {\n queryParameters: PropTypes.array.isRequired,\n queryParameter: PropTypes.object.isRequired,\n lookupTables: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n embryonic: PropTypes.bool.isRequired,\n };\n\n constructor(props) {\n super(props);\n\n const { queryParameter } = this.props;\n\n this.state = {\n showModal: false,\n queryParameter,\n validation: {},\n };\n }\n\n openModal = () => {\n this.setState({ showModal: true });\n };\n\n _cleanState = () => {\n const { queryParameter } = this.props;\n\n this.setState({ queryParameter, showModal: false });\n };\n\n _saved = () => {\n const { queryParameter } = this.state;\n\n if (!this._validate(queryParameter)) {\n return;\n }\n\n this.propagateChanges();\n this._cleanState();\n };\n\n propagateChanges = () => {\n const { queryParameters, onChange, queryParameter: prevQueryParameter } = this.props;\n const { queryParameter } = this.state;\n const newQueryParameters = [...queryParameters];\n const index = queryParameters.findIndex((p) => p.name === prevQueryParameter.name);\n\n if (index < 0) {\n throw new Error(`Query parameter \"${queryParameter.name}\" not found`);\n }\n\n newQueryParameters[index] = queryParameter.toJSON();\n onChange(newQueryParameters);\n };\n\n handleParameterChange = (key, value) => {\n const { queryParameter } = this.state;\n const nextQueryParameter = queryParameter.toBuilder()[key](value).build();\n\n this.setState({ queryParameter: nextQueryParameter });\n };\n\n _validate = (queryParameter) => {\n const newValidation: State['validation'] = {};\n\n if (!queryParameter.lookupTable) {\n newValidation.lookupTable = 'Cannot be empty';\n }\n\n if (!queryParameter.key) {\n newValidation.key = 'Cannot be empty';\n }\n\n this.setState({ validation: newValidation });\n\n return isEmpty(newValidation);\n };\n\n render() {\n const { lookupTables, embryonic } = this.props;\n const { queryParameter, validation, showModal } = this.state;\n\n const validationState: {\n lookupTable?: [string, string],\n key?: [string, string],\n } = {\n lookupTable: validation.lookupTable ? ['error', validation.lookupTable] : undefined,\n key: validation.key ? ['error', validation.key] : undefined,\n };\n\n return (\n <>\n \n\n \n \n \n >\n );\n }\n}\n\nexport default EditQueryParameterModal;\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 camelCase from 'lodash/camelCase';\nimport cloneDeep from 'lodash/cloneDeep';\nimport debounce from 'lodash/debounce';\nimport defaultTo from 'lodash/defaultTo';\nimport get from 'lodash/get';\nimport isEmpty from 'lodash/isEmpty';\nimport merge from 'lodash/merge';\nimport memoize from 'lodash/memoize';\nimport max from 'lodash/max';\nimport union from 'lodash/union';\nimport moment from 'moment';\n\nimport { MultiSelect, TimeUnitInput } from 'components/common';\nimport connect from 'stores/connect';\nimport Query from 'views/logic/queries/Query';\nimport Search from 'views/logic/search/Search';\nimport { extractDurationAndUnit } from 'components/common/TimeUnitInput';\nimport { Alert, ButtonToolbar, ControlLabel, FormGroup, HelpBlock, Input } from 'components/bootstrap';\nimport { naturalSortIgnoreCase } from 'util/SortUtils';\nimport * as FormsUtils from 'util/FormsUtils';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport LookupTableParameter from 'views/logic/parameters/LookupTableParameter';\nimport { LookupTablesActions, LookupTablesStore } from 'stores/lookup-tables/LookupTablesStore';\nimport generateId from 'logic/generateId';\nimport parseSearch from 'views/logic/slices/parseSearch';\nimport withTelemetry from 'logic/telemetry/withTelemetry';\nimport { getPathnameWithoutId } from 'util/URLUtils';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\nimport withLocation from 'routing/withLocation';\n\nimport EditQueryParameterModal from '../event-definition-form/EditQueryParameterModal';\nimport commonStyles from '../common/commonStyles.css';\n\nexport const TIME_UNITS = ['HOURS', 'MINUTES', 'SECONDS'];\n\nconst LOOKUP_PERMISSIONS = [\n 'lookuptables:read',\n];\n\nconst _buildNewParameter = (name) => ({\n name: name,\n embryonic: true,\n type: 'lut-parameter-v1',\n data_type: 'any',\n title: 'new title',\n // has no binding, no need to set binding property\n});\n\nclass FilterForm extends React.Component {\n formatStreamIds = memoize(\n (streamIds) => {\n const { streams } = this.props;\n\n return streamIds\n .map((streamId) => streams.find((s) => s.id === streamId) || streamId)\n .map((streamOrId) => {\n const stream = (typeof streamOrId === 'object' ? streamOrId : { title: streamOrId, id: streamOrId });\n\n return {\n label: stream.title,\n value: stream.id,\n };\n })\n .sort((s1, s2) => naturalSortIgnoreCase(s1.label, s2.label));\n },\n (streamIds) => streamIds.join('-'),\n );\n\n _parseQuery = debounce((queryString) => {\n if (!this._userCanViewLookupTables()) {\n return;\n }\n\n const { queryId, searchTypeId } = this.state;\n\n const queryBuilder = Query.builder()\n .id(queryId)\n .query({ type: 'elasticsearch', query_string: queryString })\n .timerange({ type: 'relative', range: 1000 })\n .searchTypes([{\n id: searchTypeId,\n type: 'messages',\n limit: 10,\n offset: 0,\n }]);\n\n const query = queryBuilder.build();\n\n const search = Search.create().toBuilder()\n .queries([query])\n .build();\n\n parseSearch(search).then((res) => {\n this._syncParamsWithQuery(res.undeclared);\n });\n }, 250);\n\n static propTypes = {\n eventDefinition: PropTypes.object.isRequired,\n lookupTables: PropTypes.object.isRequired,\n validation: PropTypes.object.isRequired,\n streams: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n currentUser: PropTypes.object.isRequired,\n sendTelemetry: PropTypes.func.isRequired,\n location: PropTypes.object.isRequired,\n };\n\n constructor(props) {\n super(props);\n\n const { execute_every_ms: executeEveryMs, search_within_ms: searchWithinMs } = props.eventDefinition.config;\n const searchWithin = extractDurationAndUnit(searchWithinMs, TIME_UNITS);\n const executeEvery = extractDurationAndUnit(executeEveryMs, TIME_UNITS);\n\n this.state = {\n searchWithinMsDuration: searchWithin.duration,\n searchWithinMsUnit: searchWithin.unit,\n executeEveryMsDuration: executeEvery.duration,\n executeEveryMsUnit: executeEvery.unit,\n queryId: generateId(),\n searchTypeId: generateId(),\n queryParameterStash: {}, // keep already defined parameters around to ease editing\n };\n }\n\n componentDidMount() {\n if (this._userCanViewLookupTables()) {\n LookupTablesActions.searchPaginated(1, 0, undefined, false);\n }\n }\n\n propagateChange = (key, value) => {\n const { eventDefinition, onChange } = this.props;\n const config = cloneDeep(eventDefinition.config);\n\n config[key] = value;\n onChange('config', config);\n };\n\n _syncParamsWithQuery = (paramsInQuery) => {\n const { eventDefinition, onChange } = this.props;\n const config = cloneDeep(eventDefinition.config);\n const queryParameters = config?.query_parameters || [];\n const keptParameters = [];\n const staleParameters = {};\n\n queryParameters.forEach((p) => {\n if (paramsInQuery.has(p.name)) {\n keptParameters.push(p);\n } else {\n staleParameters[p.name] = p;\n }\n });\n\n const { queryParameterStash } = this.state;\n const newParameters = [];\n\n paramsInQuery.forEach((np) => {\n if (!keptParameters.find((p) => p.name === np)) {\n if (queryParameterStash[np]) {\n newParameters.push(queryParameterStash[np]);\n } else {\n newParameters.push(_buildNewParameter(np));\n }\n }\n });\n\n this.setState({ queryParameterStash: merge(queryParameterStash, staleParameters) });\n\n config.query_parameters = keptParameters.concat(newParameters);\n onChange('config', config);\n };\n\n _userCanViewLookupTables = () => {\n const { currentUser } = this.props;\n\n return isPermitted(currentUser.permissions, LOOKUP_PERMISSIONS);\n };\n\n handleQueryChange = (event) => {\n this._parseQuery(event.target.value);\n this.handleConfigChange(event);\n };\n\n handleConfigChange = (event) => {\n const { name } = event.target;\n const value = FormsUtils.getValueFromInput(event.target);\n\n if (name === '_is_scheduled') {\n this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.EVENTDEFINITION_CONDITION.FILTER_EXECUTED_AUTOMATICALLY_TOGGLED, {\n app_pathname: getPathnameWithoutId(this.props.location.pathname),\n app_section: 'event-definition-condition',\n app_action_value: 'enable-checkbox',\n is_scheduled: value,\n });\n }\n\n this.propagateChange(name, value);\n };\n\n handleStreamsChange = (nextValue) => {\n this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.EVENTDEFINITION_CONDITION.FILTER_STREAM_SELECTED, {\n app_pathname: getPathnameWithoutId(this.props.location.pathname),\n app_section: 'event-definition-condition',\n app_action_value: 'stream-select',\n });\n\n this.propagateChange('streams', nextValue);\n };\n\n handleTimeRangeChange = (fieldName) => (nextValue, nextUnit) => {\n const { searchWithinMsUnit, executeEveryMsUnit } = this.state;\n\n if (fieldName === 'search_within_ms' && nextUnit !== searchWithinMsUnit) {\n this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.EVENTDEFINITION_CONDITION.FILTER_SEARCH_WITHIN_THE_LAST_UNIT_CHANGED, {\n app_pathname: getPathnameWithoutId(this.props.location.pathname),\n app_section: 'event-definition-condition',\n app_action_value: 'searchWithinMsUnit-select',\n new_unit: nextUnit,\n });\n } else if (fieldName === 'execute_every_ms' && nextUnit !== executeEveryMsUnit) {\n this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.EVENTDEFINITION_CONDITION.FILTER_EXECUTE_SEARCH_EVERY_UNIT_CHANGED, {\n app_pathname: getPathnameWithoutId(this.props.location.pathname),\n app_section: 'event-definition-condition',\n app_action_value: 'executeEveryMsUnit-select',\n new_unit: nextUnit,\n });\n }\n\n const durationInMs = moment.duration(max([nextValue, 1]), nextUnit).asMilliseconds();\n\n this.propagateChange(fieldName, durationInMs);\n\n const stateFieldName = camelCase(fieldName);\n\n this.setState({\n [`${stateFieldName}Duration`]: nextValue,\n [`${stateFieldName}Unit`]: nextUnit,\n });\n };\n\n renderQueryParameters = () => {\n const { eventDefinition, onChange, lookupTables, validation } = this.props;\n const queryParameters = eventDefinition?.config?.query_parameters || [];\n\n const onChangeQueryParameters = (newQueryParameters) => {\n const newConfig = { ...eventDefinition.config, query_parameters: newQueryParameters || [] };\n\n return onChange('config', newConfig);\n };\n\n if (!this._userCanViewLookupTables()) {\n return (\n \n This account lacks permission to declare Query Parameters from Lookup Tables.\n \n );\n }\n\n const parameterButtons = queryParameters.map((queryParam) => (\n \n ));\n\n if (isEmpty(parameterButtons)) {\n return null;\n }\n\n const hasEmbryonicParameters = !isEmpty(queryParameters.filter((param) => (param.embryonic)));\n\n return (\n \n Query Parameters \n \n \n {parameterButtons}\n \n \n {hasEmbryonicParameters && (\n \n {validation.errors.query_parameters\n ? get(validation, 'errors.query_parameters[0]')\n : 'Please declare missing query parameters by clicking on the buttons above.'}\n \n )}\n \n );\n };\n\n render() {\n const { eventDefinition, streams, validation } = this.props;\n const { searchWithinMsDuration, searchWithinMsUnit, executeEveryMsDuration, executeEveryMsUnit } = this.state;\n\n // Ensure deleted streams are still displayed in select\n const allStreamIds = union(streams.map((s) => s.id), defaultTo(eventDefinition.config.streams, []));\n const formattedStreams = this.formatStreamIds(allStreamIds);\n\n return (\n \n );\n }\n}\n\nexport default connect(withLocation(withTelemetry(FilterForm)), {\n lookupTables: LookupTablesStore,\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';\n\nimport UserNotification from 'util/UserNotification';\nimport PaginationURL from 'util/PaginationURL';\nimport { qualifyUrl } from 'util/URLUtils';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\nimport type { LookupTable, LookupTableCache, LookupTableAdapter } from 'logic/lookup-tables/types';\nimport type { PaginatedResponseType } from 'stores/PaginationTypes';\n\ntype LookupResult = {\n multi_value: string | number | object | boolean | null,\n single_value: string | number | object | boolean | null,\n string_list_value: Array | null,\n ttl: number,\n has_error: boolean,\n}\n\ntype ValidationErrors = {\n error_context: {\n [fieldName: string]: Array | undefined,\n },\n failed: boolean,\n errors: {\n [fieldName: string]: Array | undefined,\n },\n}\n\ntype ErrorState = {\n tables: {\n [tableId: string]: string | undefined,\n },\n caches: {\n [cacheId: string]: string | undefined,\n },\n dataAdapters: {\n [adapterId: string]: string | undefined,\n }\n}\n\ntype LookupTablesStoreState = {\n pagination: PaginatedResponseType,\n errorState: ErrorState,\n table: LookupTable | null,\n cache: LookupTableCache | null,\n dataAdapter: LookupTableAdapter | null,\n tables: {\n [tableId: string]: LookupTable | undefined,\n },\n caches: {\n [cacheId: string]: LookupTableCache | undefined,\n },\n dataAdapters: {\n [adapterId: string]: LookupTableAdapter | undefined,\n },\n lookupResult: LookupResult | null,\n validationErrors: ValidationErrors,\n}\n\ntype LookupTableActionsType = {\n searchPaginated: (page: number, perPage: number, query?: string, resolve?: boolean) => Promise,\n reloadPage: () => Promise,\n get: (idOrName: string) => Promise,\n create: (table: LookupTable) => Promise,\n delete: (idOrName: string) => Promise,\n update: (table: LookupTable) => Promise,\n getErrors: (tableNames: Array | undefined, cacheNames: Array | undefined, dataAdapterNames: Array | undefined) => Promise,\n lookup: (tableName: string, key: string) => Promise,\n purgeKey: (table: LookupTable, key: string) => Promise,\n purgeAll: (table: LookupTable) => Promise,\n validate: (table: LookupTable) => Promise,\n}\n\nexport const LookupTablesActions = singletonActions(\n 'core.LookupTables',\n () => Reflux.createActions({\n searchPaginated: { asyncResult: true },\n reloadPage: { asyncResult: true },\n get: { asyncResult: true },\n create: { asyncResult: true },\n delete: { asyncResult: true },\n update: { asyncResult: true },\n getErrors: { asyncResult: true },\n lookup: { asyncResult: true },\n purgeKey: { asyncResult: true },\n purgeAll: { asyncResult: true },\n validate: { asyncResult: true },\n }),\n);\n\nexport const LookupTablesStore = singletonStore(\n 'core.LookupTables',\n () => Reflux.createStore({\n listenables: [LookupTablesActions],\n pagination: {\n page: 1,\n per_page: 10,\n total: 0,\n count: 0,\n query: null,\n },\n errorStates: {\n tables: {},\n caches: {},\n dataAdapters: {},\n },\n table: null,\n cache: null,\n dataAdapter: null,\n tables: null,\n caches: null,\n dataAdapters: null,\n lookupResult: null,\n validationErrors: {},\n\n getInitialState() {\n return this.getState();\n },\n\n getState() {\n return {\n errorStates: this.errorStates,\n table: this.table,\n cache: this.cache,\n dataAdapter: this.dataAdapter,\n tables: this.tables,\n caches: this.caches,\n dataAdapters: this.dataAdapters,\n lookupResult: this.lookupResult,\n validationErrors: this.validationErrors,\n pagination: this.pagination,\n };\n },\n\n propagateChanges() {\n this.trigger(this.getState());\n },\n\n reloadPage() {\n const promise = this.searchPaginated(this.pagination.page, this.pagination.per_page, this.pagination.query);\n\n LookupTablesActions.reloadPage.promise(promise);\n\n return promise;\n },\n\n searchPaginated(page: number, perPage: number, query: string = null, resolve: boolean = true) {\n const url = this._url(PaginationURL('tables', page, perPage, query, { resolve }));\n const promise = fetch('GET', url);\n\n promise.then((response) => {\n this.pagination = {\n count: response.count,\n total: response.total,\n page: response.page,\n per_page: response.per_page,\n query: response.query,\n };\n\n this.tables = response.lookup_tables;\n this.caches = response.caches;\n this.dataAdapters = response.data_adapters;\n this.propagateChanges();\n }, this._errorHandler('Fetching lookup tables failed', 'Could not retrieve the lookup tables'));\n\n LookupTablesActions.searchPaginated.promise(promise);\n\n return promise;\n },\n\n get(idOrName: string) {\n const url = this._url(`tables/${idOrName}?resolve=true`);\n const promise = fetch('GET', url);\n\n promise.then((response) => {\n // do not propagate pagination! it will destroy the subsequent overview page's state.\n const lookupTable = response.lookup_tables[0];\n\n this.table = lookupTable;\n this.cache = response.caches[lookupTable.cache_id];\n this.dataAdapter = response.data_adapters[lookupTable.data_adapter_id];\n this.propagateChanges();\n }, this._errorHandler(`Fetching lookup table ${idOrName} failed`,\n 'Could not retrieve lookup table'));\n\n LookupTablesActions.get.promise(promise);\n\n return promise;\n },\n\n create(table: LookupTable) {\n const url = this._url('tables');\n const promise = fetch('POST', url, table);\n\n promise.catch(this._errorHandler('Creating lookup table failed', `Could not create lookup table \"${table.name}\"`));\n\n LookupTablesActions.create.promise(promise);\n\n return promise;\n },\n\n update(table: LookupTable) {\n const url = this._url(`tables/${table.id}`);\n const promise = fetch('PUT', url, table);\n\n promise.catch(this._errorHandler('Updating lookup table failed', `Could not update lookup table \"${table.name}\"`));\n\n LookupTablesActions.update.promise(promise);\n\n return promise;\n },\n\n delete(idOrName: string) {\n const url = this._url(`tables/${idOrName}`);\n const promise = fetch('DELETE', url);\n\n promise.catch(this._errorHandler('Deleting lookup table failed', `Could not delete lookup table \"${idOrName}\"`));\n\n LookupTablesActions.delete.promise(promise);\n\n return promise;\n },\n\n getErrors(tableNames: Array | undefined, cacheNames: Array | undefined, dataAdapterNames: Array | undefined) {\n const request: {\n tables?: Array;\n caches?: Array;\n data_adapters?: Array;\n } = {};\n\n if (tableNames) {\n request.tables = tableNames;\n }\n\n if (cacheNames) {\n request.caches = cacheNames;\n }\n\n if (dataAdapterNames) {\n request.data_adapters = dataAdapterNames;\n }\n\n const promise = fetch('POST', this._url('errorstates'), request);\n\n promise.then((response) => {\n this.errorStates = {\n tables: response.tables || {},\n caches: response.caches || {},\n dataAdapters: response.data_adapters || {},\n };\n\n this.propagateChanges();\n }, this._errorHandler('Fetching lookup table error state failed.', 'Could not error states'));\n\n LookupTablesActions.getErrors.promise(promise);\n\n return promise;\n },\n\n lookup(tableName: string, key: string) {\n const promise = fetch('GET', this._url(`tables/${tableName}/query?key=${encodeURIComponent(key)}`));\n\n promise.then((response) => {\n this.lookupResult = response;\n this.propagateChanges();\n }, this._errorHandler('Lookup failed', `Could not lookup value for key \"${key}\" in lookup table \"${tableName}\"`));\n\n LookupTablesActions.lookup.promise(promise);\n\n return promise;\n },\n\n purgeKey(table: LookupTable, key: string) {\n const promise = fetch('POST', this._urlClusterWise(`tables/${table.id}/purge?key=${encodeURIComponent(key)}`));\n\n promise.then(() => {\n UserNotification.success(`Purging cache key \"${key}\" for lookup table \"${table.name}\"`, 'Success!');\n }, this._errorHandler(`Could not purge cache for key \"${key}\" in lookup table \"${table.name}\"`, 'Failed!'));\n\n LookupTablesActions.purgeKey.promise(promise);\n\n return promise;\n },\n\n purgeAll(table: LookupTable) {\n const promise = fetch('POST', this._urlClusterWise(`tables/${table.id}/purge`));\n\n promise.then(() => {\n UserNotification.success(`Purging cache for lookup table \"${table.name}\"`, 'Success!');\n }, this._errorHandler(`Could not purge cache for lookup table \"${table.name}\"`, 'Failed!'));\n\n LookupTablesActions.purgeAll.promise(promise);\n\n return promise;\n },\n\n validate(table: LookupTable) {\n const url = this._url('tables/validate');\n const promise = fetch('POST', url, table);\n\n promise.then((response: any) => {\n this.validationErrors = response.errors;\n this.propagateChanges();\n }, this._errorHandler('Lookup table validation failed', `Could not validate lookup table \"${table.name}\"`));\n\n LookupTablesActions.validate.promise(promise);\n\n return promise;\n },\n\n _errorHandler(message: string, title: string, cb: (error: Error) => void | undefined) {\n return (error) => {\n try {\n // Do not show the user notification if the error is a hibernate error message. We cannot display those\n // properly yet...\n if (error.additional.body[0].message_template) {\n return;\n }\n } catch (e) {\n // ignored\n }\n\n let errorMessage;\n\n try {\n errorMessage = error.additional.body.message;\n } catch (e) {\n errorMessage = error.message;\n }\n\n UserNotification.error(`${message}: ${errorMessage}`, title);\n\n if (cb) {\n cb(error);\n }\n };\n },\n\n _url(path: string) {\n return qualifyUrl(`/system/lookup/${path}`);\n },\n\n _urlClusterWise(path: string) {\n return qualifyUrl(`/cluster/system/lookup/${path}`);\n },\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 moment from 'moment';\n\nimport { defaultCompare as naturalSort } from 'logic/DefaultCompare';\n\ntype SortOrder = 'asc' | 'desc';\n\nexport function sortByDate(d1: string, d2: string, sortOrder: SortOrder = 'asc') {\n const d1Time = moment(d1);\n const d2Time = moment(d2);\n\n if (sortOrder === 'asc') {\n return (d1Time.isBefore(d2Time) ? -1 : d2Time.isBefore(d1Time) ? 1 : 0);\n }\n\n return (d2Time.isBefore(d1Time) ? -1 : d1Time.isBefore(d2Time) ? 1 : 0);\n}\n\nexport function naturalSortIgnoreCase(s1: string, s2: string, sortOrder: SortOrder = 'asc') {\n return (sortOrder === 'asc' ? naturalSort(s1.toLowerCase(), s2.toLowerCase()) : naturalSort(s2.toLowerCase(), s1.toLowerCase()));\n}\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\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]!./commonStyles.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]!./commonStyles.css\";\n export default content && content.locals ? content.locals : undefined;\n"],"names":["___CSS_LOADER_EXPORT___","module","StyledInlineCode","LookupTableParameterEdit","validationState","onChange","lookupTables","identifier","parameter","defaultExpandHelp","lookupTable","tableKey","defaultValue","name","parameterSyntax","_handleChange","fieldName","value","_handleInputChange","attributeName","Spinner","lookupTableOptions","lt1","lt2","table","Select","EditQueryParameterModal","props","queryParameter","queryParameters","prevQueryParameter","newQueryParameters","index","p","key","nextQueryParameter","newValidation","embryonic","validation","showModal","TIME_UNITS","LOOKUP_PERMISSIONS","_buildNewParameter","FilterForm","streamIds","streams","streamId","s","streamOrId","stream","s1","s2","queryString","queryId","searchTypeId","query","Query","search","Search","parseSearch","res","eventDefinition","config","paramsInQuery","keptParameters","staleParameters","queryParameterStash","newParameters","np","currentUser","event","FormsUtils","nextValue","nextUnit","searchWithinMsUnit","executeEveryMsUnit","durationInMs","stateFieldName","onChangeQueryParameters","newConfig","parameterButtons","queryParam","LookupTableParameter","hasEmbryonicParameters","param","executeEveryMs","searchWithinMs","searchWithin","executeEvery","generateId","searchWithinMsDuration","executeEveryMsDuration","allStreamIds","formattedStreams","commonStyles","selected","connect","withLocation","withTelemetry","LookupTablesStore","LookupTablesActions","promise","page","perPage","resolve","url","response","idOrName","tableNames","cacheNames","dataAdapterNames","request","tableName","message","title","cb","error","errorMessage","path","sortByDate","d1","d2","sortOrder","d1Time","d2Time","naturalSortIgnoreCase","isSymbol","baseExtremum","array","iteratee","comparator","length","current","computed","result","baseGt","other","identity","max","baseFlatten","baseRest","baseUniq","isArrayLikeObject","union","arrays","options","update"],"sourceRoot":""}