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

web-interface.assets.0c1a66a2-76.1ec71fc30880f2142b45.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.5
Show newest version
{"version":3,"sources":["webpack:///./src/pages/CreateExtractorsPage.jsx"],"names":["ExtractorsStore","StoreProvider","getStore","InputsStore","InputsActions","ActionsProvider","getActions","MessagesActions","CreateExtractorsPage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","location","mixins","Reflux","connect","getInitialState","query","this","props","extractor","extractor_type","field","exampleMessage","undefined","exampleIndex","example_index","exampleId","example_id","componentDidMount","get","triggerPromise","inputId","state","loadMessage","then","message","setState","_isLoading","input","_extractorSaved","url","global","Routes","global_input_extractors","local_input_extractors","nodeId","history","push","render","stringifiedExampleMessage","StringUtils","stringify","fields","title","page","DocsHelper","PAGES","EXTRACTORS","text","action","id","onSave"],"mappings":"2GAAA,+PAkBMA,EAAkBC,IAAcC,SAAS,cACzCC,EAAcF,IAAcC,SAAS,UAGrCE,GADgBH,IAAcC,SAAS,YACvBG,IAAgBC,WAAW,WAC3CC,EAAkBF,IAAgBC,WAAW,YAE7CE,EAAuBC,IAAiB,CAC5CC,YAAa,uBAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,WACzBC,SAAUH,IAAUC,OAAOC,YAG7BE,OAAQ,CAACC,IAAOC,QAAQhB,IAExBiB,gBAV4C,WAU1B,IAERC,EADaC,KAAKC,MAAlBP,SACAK,MAER,MAAO,CACLG,UAAWxB,EAAe,IAAKqB,EAAMI,eAAgBJ,EAAMK,OAC3DC,oBAAgBC,EAChBF,MAAOL,EAAMK,MACbG,aAAcR,EAAMS,cACpBC,UAAWV,EAAMW,aAIrBC,kBAvB4C,WAuBxB,WACVrB,EAAWU,KAAKC,MAAhBX,OACRR,EAAc8B,IAAIC,eAAevB,EAAOwB,SAFtB,MAGkBd,KAAKe,MAAjCR,EAHU,EAGVA,aAAcE,EAHJ,EAGIA,UACtBxB,EAAgB+B,YAAYH,eAAeN,EAAcE,GACtDQ,MAAK,SAACC,GAAD,OAAa,EAAKC,SAAS,CAAEd,eAAgBa,QAGvDE,WA/B4C,WA+B/B,MACuBpB,KAAKe,MAA/BV,EADG,EACHA,eACR,QAFW,EACagB,OACNhB,IAGpBiB,gBApC4C,WAqC1C,IAAIC,EACIjC,EAAWU,KAAKC,MAAhBX,OAGNiC,EAFgBvB,KAAKe,MAAfM,MACEG,OACFC,IAAOC,wBAAwBpC,EAAOwB,SAEtCW,IAAOE,uBAAuBrC,EAAOsC,OAAQtC,EAAOwB,SAG5De,IAAQC,KAAKP,IAGfQ,OAjD4C,WAkD1C,GAAI/B,KAAKoB,aACP,OAAO,kBAAC,IAAD,MAFF,MAK6CpB,KAAKe,MAAjDX,EALD,EAKCA,MAAOC,EALR,EAKQA,eAAgBH,EALxB,EAKwBA,UAAWmB,EALnC,EAKmCA,MACpCW,EAA4BC,IAAYC,UAAU7B,EAAe8B,OAAO/B,IAE9E,OACE,kBAAC,IAAD,CAAegC,MAAK,kCAA6Bf,EAAMe,QACrD,6BACE,kBAAC,IAAD,CAAYA,MAAO,yDAA8B,4BAAKf,EAAMe,SAC1D,wNAKA,8EAEG,IAAI,kBAAC,IAAD,CAAmBC,KAAMC,IAAWC,MAAMC,WAAYC,KAAK,kBAFlE,MAKF,kBAAC,IAAD,CAAeC,OAAO,SACPxC,UAAWA,EACXY,QAASO,EAAMsB,GACftC,eAAgB2B,EAChBY,OAAQ5C,KAAKsB,uBAOvBpC","file":"0c1a66a2-76.1ec71fc30880f2142b45.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport EditExtractor from 'components/extractors/EditExtractor';\n\nimport DocsHelper from 'util/DocsHelper';\nimport StringUtils from 'util/StringUtils';\nimport history from 'util/History';\nimport Routes from 'routing/Routes';\n\nimport StoreProvider from 'injection/StoreProvider';\n\nimport ActionsProvider from 'injection/ActionsProvider';\n\nconst ExtractorsStore = StoreProvider.getStore('Extractors');\nconst InputsStore = StoreProvider.getStore('Inputs');\n// eslint-disable-next-line no-unused-vars\nconst MessagesStore = StoreProvider.getStore('Messages');\nconst InputsActions = ActionsProvider.getActions('Inputs');\nconst MessagesActions = ActionsProvider.getActions('Messages');\n\nconst CreateExtractorsPage = createReactClass({\n  displayName: 'CreateExtractorsPage',\n\n  propTypes: {\n    params: PropTypes.object.isRequired,\n    location: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(InputsStore)],\n\n  getInitialState() {\n    const { location } = this.props;\n    const { query } = location;\n\n    return {\n      extractor: ExtractorsStore.new(query.extractor_type, query.field),\n      exampleMessage: undefined,\n      field: query.field,\n      exampleIndex: query.example_index,\n      exampleId: query.example_id,\n    };\n  },\n\n  componentDidMount() {\n    const { params } = this.props;\n    InputsActions.get.triggerPromise(params.inputId);\n    const { exampleIndex, exampleId } = this.state;\n    MessagesActions.loadMessage.triggerPromise(exampleIndex, exampleId)\n      .then((message) => this.setState({ exampleMessage: message }));\n  },\n\n  _isLoading() {\n    const { exampleMessage, input } = this.state;\n    return !(input && exampleMessage);\n  },\n\n  _extractorSaved() {\n    let url;\n    const { params } = this.props;\n    const { input } = this.state;\n    if (input.global) {\n      url = Routes.global_input_extractors(params.inputId);\n    } else {\n      url = Routes.local_input_extractors(params.nodeId, params.inputId);\n    }\n\n    history.push(url);\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { field, exampleMessage, extractor, input } = this.state;\n    const stringifiedExampleMessage = StringUtils.stringify(exampleMessage.fields[field]);\n\n    return (\n      \n        
\n New extractor for input {input.title}}>\n \n Extractors are applied on every message that is received by an input. Use them to extract and\n transform any text data into fields that allow you easy filtering and analysis later on.\n \n\n \n Find more information about extractors in the\n {' '}.\n \n \n \n
\n
\n );\n },\n});\n\nexport default CreateExtractorsPage;\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy