- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.118.164.100
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/performancecopilot-pcp-app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/performancecopilot-pcp-app/module.js.map
{"version":3,"file":"module.js","mappings":";moBACA,4gGAAAA,GAAA,wBAAAA,EAAA,sBAAAA,GAAA,iBAAAA,GAAA,0oDAAAA,EAAA,yBAAAA,GAAA,IAAAA,EAAA,uBAAAA,GAAA,4bAAAA,EAAA,yBAAAA,GAAA,IAAAA,EAAA,uBAAAA,GAAA,yhBAAAA,EAAA,yBAAAA,GAAA,IAAAA,EAAA,uBAAAA,GAAA,qGAAAA,EAAA,yBAAAA,GAAA,IAAAA,EAAA,uBAAAA,GAAA,0lBAAAA,EAAA,EAAAA,EAAA,SAAAA,IAAA,SAAAA,GAAA,okCAQO,IAAMC,EAAS,aARtB,qRAQsB,UARtB,MAyBK,EALA,EAJA,EARiB,OAGlB,WAAYC,GAAc,MAX9B,MAemD,OAfnD,4FAW8B,SACtB,cAAMA,GAZd,EAYqB,KAZrB,OAYqB,GAZrB,EAYqB,gBAZrB,wFAaQ,EAAKC,YAAaC,EAAAA,EAAAA,iBAClB,EAAKC,SAAW,EAAKA,SAASC,KAAK,EAAD,IAClC,EAAKC,UAAY,EAAKA,UAAUD,KAAK,EAAD,IAAO,CAC/C,CAkEC,OAlFL,EAgBK,EAhBL,EAgBK,kDAED,WAA2BE,GAA8D,0FAC9EC,KAAKN,WAAWO,KAAK,gBAAD,OAAiBD,KAAKP,MAAMS,OAAOC,KAA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QAAU+S,yBCAjBhT,EAAOC,QAAUgT,yBCAjBjT,EAAOC,QAAUiT,yBCAjBlT,EAAOC,QAAUkT,ICCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqB/tB,IAAjBguB,EACH,OAAOA,EAAatT,QAGrB,IAAID,EAASoT,EAAyBE,GAAY,CAGjDrT,QAAS,CAAC,GAOX,OAHAuT,EAAoBF,GAAU7/B,KAAKusB,EAAOC,QAASD,EAAQA,EAAOC,QAASoT,GAGpErT,EAAOC,OACf,QCrBAoT,EAAoB9G,EAAKvM,IACxB,IAAIyT,EAASzT,GAAUA,EAAO8B,WAC7B,IAAO9B,EAAiB,QACxB,IAAM,EAEP,OADAqT,EAAoBK,EAAED,EAAQ,CAAEE,EAAGF,IAC5BA,CAAM,ECLdJ,EAAoBK,EAAI,CAACzT,EAASlD,KACjC,IAAI,IAAIxpB,KAAOwpB,EACXsW,EAAoB3/B,EAAEqpB,EAAYxpB,KAAS8/B,EAAoB3/B,EAAEusB,EAAS1sB,IAC5EF,OAAOC,eAAe2sB,EAAS1sB,EAAK,CAAEL,YAAY,EAAMgd,IAAK6M,EAAWxpB,IAE1E,ECND8/B,EAAoB3/B,EAAI,CAACnB,EAAKqhC,IAAUvgC,OAAOV,UAAUkoB,eAAepnB,KAAKlB,EAAKqhC,GCClFP,EAAoBQ,EAAK5T,IACH,oBAAXztB,QAA0BA,OAAOshC,aAC1CzgC,OAAOC,eAAe2sB,EAASztB,OAAOshC,YAAa,CAAE9/B,MAAO,WAE7DX,OAAOC,eAAe2sB,EAAS,aAAc,CAAEjsB,OAAO,GAAO,ECF9Dq/B,EAAoB,MACMA,EAAoB","sources":["webpack:///./components/appconfig/config.tsx","webpack:///../node_modules/redux-persist/es/integration/react.js","webpack:///./common/services/pmsearch/types.ts","webpack:///./components/search/store/slices/search/slices/bookmarks/types.ts","webpack:///./components/search/store/slices/search/slices/bookmarks/actionCreators.ts","webpack:///./components/search/components/Card/styles.ts","webpack:///./components/search/components/Card/Card.tsx","webpack:///./components/search/components/Loader/styles.ts","webpack:///./components/search/components/Loader/Loader.tsx","webpack:///./components/search/store/slices/search/shared/state.ts","webpack:///./components/search/pages/Detail/styles.ts","webpack:///./components/search/pages/Detail/InstanceDomain/Instances/Instances.tsx","webpack:///./components/search/pages/Detail/InstanceDomain/InstanceDomain.tsx","webpack:///./components/search/config/config.ts","webpack:///./components/search/store/slices/search/slices/entity/types.ts","webpack:///./components/search/store/slices/search/slices/entity/actionCreators.ts","webpack:///./components/search/store/slices/search/slices/view/state.ts","webpack:///./components/search/store/slices/search/slices/history/types.ts","webpack:///./components/search/store/slices/search/slices/query/types.ts","webpack:///./components/search/store/slices/search/slices/result/types.ts","webpack:///./components/search/store/slices/search/slices/view/types.ts","webpack:///./components/search/store/slices/search/shared/actionCreators.ts","webpack:///./components/search/pages/Detail/Metric/Labels/Labels.tsx","webpack:///./components/search/pages/Detail/Metric/Meta/Meta.tsx","webpack:///./components/search/pages/Detail/Metric/Series/Series.tsx","webpack:///./components/search/pages/Detail/Metric/Metric.tsx","webpack:///./components/search/pages/Detail/DetailPage.tsx","webpack:///./components/search/components/BookmarkList/styles.ts","webpack:///./components/search/components/BookmarkList/BookmarkList.tsx","webpack:///./components/search/styles.ts","webpack:///./components/search/utils/SearchEntityUtil.ts","webpack:///./components/search/components/SearchHistoryList/styles.ts","webpack:///./components/search/components/SearchHistoryList/SearchHistoryList.tsx","webpack:///./components/search/store/slices/search/slices/history/actionCreators.ts","webpack:///./components/search/pages/Index/styles.ts","webpack:///./components/search/pages/Index/IndexPage.tsx","webpack:///./components/search/components/SearchResult/styles.ts","webpack:///./components/search/components/SearchResult/SearchResult.tsx","webpack:///./components/search/utils/utils.ts","webpack:///./components/search/pages/Search/styles.ts","webpack:///./components/search/pages/Search/SearchPage.tsx","webpack:///./components/search/store/slices/search/slices/view/actionCreators.ts","webpack:///./components/search/partials/Actions/styles.ts","webpack:///./components/search/partials/Actions/Actions.tsx","webpack:///./components/search/partials/Aside/styles.ts","webpack:///./components/search/partials/Aside/Aside.tsx","webpack:///./components/search/contexts/services.ts","webpack:///./components/search/components/withServices/withServices.tsx","webpack:///./components/search/partials/SearchForm/styles.ts","webpack:///./components/search/partials/SearchForm/SearchForm.tsx","webpack:///./components/search/App.tsx","webpack:///./common/types/errors.ts","webpack:///./common/utils.ts","webpack:///./common/services/pmsearch/PmSearchApiService.ts","webpack:///./common/services/pmseries/PmSeriesApiService.ts","webpack:///./components/search/services/EntityDetailService.ts","webpack:///./components/search/services/services.ts","webpack:///../node_modules/redux-persist/es/constants.js","webpack:///../node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js","webpack:///../node_modules/redux-persist/es/createPersistoid.js","webpack:///../node_modules/redux-persist/es/getStoredState.js","webpack:///../node_modules/redux-persist/es/purgeStoredState.js","webpack:///../node_modules/redux-persist/es/persistReducer.js","webpack:///../node_modules/redux-persist/es/persistStore.js","webpack:///../node_modules/redux-thunk/es/index.js","webpack:///./components/search/store/slices/search/slices/history/reducer.ts","webpack:///./components/search/store/slices/search/slices/query/state.ts","webpack:///./components/search/store/slices/search/slices/result/state.ts","webpack:///./components/search/store/slices/search/slices/result/reducer.ts","webpack:///./components/search/store/slices/search/reducer.ts","webpack:///./components/search/store/slices/search/slices/bookmarks/reducer.ts","webpack:///./components/search/store/slices/search/slices/bookmarks/state.ts","webpack:///./components/search/store/slices/search/slices/view/reducer.ts","webpack:///./components/search/store/slices/search/slices/entity/reducer.ts","webpack:///./components/search/store/slices/search/slices/entity/state.ts","webpack:///./components/search/store/slices/search/slices/query/reducer.ts","webpack:///./components/search/store/slices/search/slices/history/state.ts","webpack:///./components/search/store/reducer.ts","webpack:///./components/search/store/store.ts","webpack:///./components/search/Search.tsx","webpack:///./module.ts","webpack:///../node_modules/loglevel-plugin-prefix/lib/loglevel-plugin-prefix.js","webpack:///../node_modules/loglevel/lib/loglevel.js","webpack:///../node_modules/prop-types/factoryWithThrowingShims.js","webpack:///../node_modules/prop-types/index.js","webpack:///../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///../node_modules/react-autosuggest/dist/Autosuggest.js","webpack:///../node_modules/react-autosuggest/dist/Autowhatever.js","webpack:///../node_modules/react-autosuggest/dist/Item.js","webpack:///../node_modules/react-autosuggest/dist/ItemList.js","webpack:///../node_modules/react-autosuggest/dist/SectionTitle.js","webpack:///../node_modules/react-autosuggest/dist/compareObjects.js","webpack:///../node_modules/react-autosuggest/dist/index.js","webpack:///../node_modules/react-autosuggest/dist/theme.js","webpack:///../node_modules/react-themeable/dist/index.js","webpack:///../node_modules/react-themeable/node_modules/object-assign/index.js","webpack:///../node_modules/redux-persist/lib/storage/createWebStorage.js","webpack:///../node_modules/redux-persist/lib/storage/getStorage.js","webpack:///../node_modules/redux-persist/lib/storage/index.js","webpack:///../node_modules/section-iterator/dist/index.js","webpack:///../node_modules/shallow-equal/arrays/index.js","webpack:///external amd \"@grafana/data\"","webpack:///external amd \"@grafana/runtime\"","webpack:///external amd \"@grafana/ui\"","webpack:///external amd \"emotion\"","webpack:///external amd \"lodash\"","webpack:///external amd \"react\"","webpack:///external amd \"react-redux\"","webpack:///external amd \"redux\"","webpack:///external amd \"rxjs\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/startup"],"sourcesContent":["import { css } from 'emotion';\nimport React, { PureComponent } from 'react';\nimport { AppPluginMeta, PluginConfigPageProps } from '@grafana/data';\nimport { BackendSrv, getBackendSrv } from '@grafana/runtime';\nimport { Button, Icon } from '@grafana/ui';\nimport { AppSettings } from './types';\n\ninterface Props extends PluginConfigPageProps<AppPluginMeta<AppSettings>> {}\n\nexport class AppConfig extends PureComponent<Props> {\n    private backendSrv: BackendSrv;\n\n    constructor(props: Props) {\n        super(props);\n        this.backendSrv = getBackendSrv();\n        this.onEnable = this.onEnable.bind(this);\n        this.onDisable = this.onDisable.bind(this);\n    }\n\n    async updatePluginSettings(settings: { enabled: boolean; jsonData: any; pinned: boolean }) {\n        return this.backendSrv.post(`/api/plugins/${this.props.plugin.meta.id}/settings`, settings);\n    }\n\n    async onEnable() {\n        await this.updatePluginSettings({ enabled: true, jsonData: {}, pinned: true });\n        window.location.reload();\n    }\n\n    async onDisable() {\n        await this.updatePluginSettings({ enabled: false, jsonData: {}, pinned: false });\n        window.location.reload();\n    }\n\n    render() {\n        const isEnabled = this.props.plugin.meta.enabled;\n        return (\n            <>\n                <h2>Performance Co-Pilot App</h2>\n                This app integrates metrics from Performance Co-Pilot.\n                <br />\n                <br />\n                It includes the following data sources:\n                <ul\n                    className={css`\n                        margin-left: 2em;\n                    `}\n                >\n                    <li>\n                        <strong>PCP Redis</strong> for fast, scalable time series aggregation across multiple hosts\n                    </li>\n                    <li>\n                        <strong>PCP Vector</strong> for live, on-host metrics analysis, with container support\n                    </li>\n                    <li>\n                        <strong>PCP bpftrace</strong> for system introspection using bpftrace scripts\n                    </li>\n                </ul>\n                {isEnabled && (\n                    <div\n                        className={css`\n                            margin-top: 1.5em;\n                        `}\n                    >\n                        <Icon\n                            name=\"check\"\n                            className={css`\n                                color: #10a345;\n                            `}\n                        />{' '}\n                        Plugin enabled. Please configure the data sources now.\n                    </div>\n                )}\n                <div className=\"gf-form gf-form-button-row\">\n                    {isEnabled ? (\n                        <Button variant=\"destructive\" onClick={this.onDisable}>\n                            Disable\n                        </Button>\n                    ) : (\n                        <Button onClick={this.onEnable}>Enable</Button>\n                    )}\n                </div>\n            </>\n        );\n    }\n}\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n  _inherits(PersistGate, _PureComponent);\n\n  function PersistGate() {\n    var _getPrototypeOf2;\n\n    var _this;\n\n    _classCallCheck(this, PersistGate);\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n    _defineProperty(_assertThisInitialized(_this), \"state\", {\n      bootstrapped: false\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n      var persistor = _this.props.persistor;\n\n      var _persistor$getState = persistor.getState(),\n          bootstrapped = _persistor$getState.bootstrapped;\n\n      if (bootstrapped) {\n        if (_this.props.onBeforeLift) {\n          Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n            return _this.setState({\n              bootstrapped: true\n            });\n          });\n        } else {\n          _this.setState({\n            bootstrapped: true\n          });\n        }\n\n        _this._unsubscribe && _this._unsubscribe();\n      }\n    });\n\n    return _this;\n  }\n\n  _createClass(PersistGate, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n      this.handlePersistorState();\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      this._unsubscribe && this._unsubscribe();\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      if (process.env.NODE_ENV !== 'production') {\n        if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n      }\n\n      if (typeof this.props.children === 'function') {\n        return this.props.children(this.state.bootstrapped);\n      }\n\n      return this.state.bootstrapped ? this.props.children : this.props.loading;\n    }\n  }]);\n\n  return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n  children: null,\n  loading: null\n});","import { DataSourceInstanceSettings } from '@grafana/data';\n\nexport interface PmSearchApiConfig {\n    dsInstanceSettings: DataSourceInstanceSettings;\n    timeoutMs: number;\n    baseUrl: string;\n}\n\nexport enum SearchEntity {\n    None = 0,\n    Metrics = 1 << 0,\n    InstanceDomains = 1 << 1,\n    Instances = 1 << 2,\n    All = Metrics | InstanceDomains | Instances,\n}\n\nexport enum EntityType {\n    Metric = 'metric',\n    Instance = 'instance',\n    InstanceDomain = 'indom',\n}\n\nexport interface AutocompleteQueryParams {\n    query: string;\n    limit?: number;\n}\n\nexport type AutocompleteSuggestion = string;\n\nexport type AutocompleteResponse = AutocompleteSuggestion[];\n\nexport interface TextQueryParams {\n    query: string;\n    highlight?: Array<Omit<TextItemResponseField, 'indom' | 'type'>>;\n    offset?: number;\n    limit?: number;\n    field?: Array<Omit<TextItemResponseField, 'indom' | 'type'>>;\n    return?: TextItemResponseField[];\n    type?: SearchEntity;\n}\n\nexport enum TextItemResponseField {\n    Type = 'type',\n    Name = 'name',\n    Indom = 'indom',\n    Oneline = 'oneline',\n    Helptext = 'helptext',\n}\n\nexport interface TextItemResponse {\n    /* All the ones below may be omited when they are filtered out by ?return param, or whey they lack any value (helptexts for example) */\n    name?: string; // name field\n    type?: EntityType; // type field (we always have only single type value on any record\n    indom?: string; // indom field\n    oneline?: string; // oneline field\n    helptext?: string; // helptext field\n}\n\nexport interface TextResponse {\n    total: number; // Redisearch returns total number of matching records even if results themselves are limited\n    elapsed: number;\n    limit: number;\n    offset: number;\n    results: TextItemResponse[];\n}\n\nexport interface IndomQueryParams {\n    query: string;\n    limit?: number;\n    offset?: number;\n}\n\nexport class SearchNotAvailableError extends Error {\n    constructor(message?: string) {\n        super(\n            message ?? `Metric Search not available. Please install the RediSearch Redis module and restart pmproxy.`\n        );\n        Object.setPrototypeOf(this, new.target.prototype);\n    }\n}\n","export const ADD_BOOKMARK = 'ADD_BOOKMARK';\nexport const REMOVE_BOOKMARK = 'REMOVE_BOOKMARK';\nexport const CLEAR_BOOKMARKS = 'CLEAR_BOOKMARKS';\n","import { AddBookmarkAction, ClearBookmarksAction, RemoveBookmarkAction } from './actions';\nimport { BookmarkItem } from './state';\nimport { ADD_BOOKMARK, CLEAR_BOOKMARKS, REMOVE_BOOKMARK } from './types';\n\nexport const addBookmark = (item: BookmarkItem): AddBookmarkAction => {\n    return {\n        type: ADD_BOOKMARK,\n        payload: item,\n    };\n};\n\nexport const removeBookmark = (item: BookmarkItem): RemoveBookmarkAction => {\n    return {\n        type: REMOVE_BOOKMARK,\n        payload: item,\n    };\n};\n\nexport type ClearBookmarksActionCreator = () => ClearBookmarksAction;\n\nexport const clearBookmarks: ClearBookmarksActionCreator = () => {\n    return { type: CLEAR_BOOKMARKS };\n};\n","import { css } from 'emotion';\nimport { GrafanaTheme } from '@grafana/data';\nimport { stylesFactory } from '@grafana/ui';\n\nexport const getCardStyles = stylesFactory((theme: GrafanaTheme, background: 'weak' | 'strong') => {\n    return {\n        container: css`\n            width: 100%;\n            padding: ${theme.spacing.md};\n            border-radius: ${theme.border.radius.sm};\n            background: ${background === 'strong' ? theme.colors.bg2 : theme.colors.bg1};\n        `,\n    };\n});\n","import React from 'react';\nimport { Themeable, withTheme } from '@grafana/ui';\nimport { getCardStyles } from './styles';\n\nexport interface CardBasicProps {\n    background?: 'weak' | 'strong';\n    children?: React.ReactNode;\n}\n\nexport type CardProps = Themeable & CardBasicProps;\n\nexport const Card: React.FC<CardProps> = (props: React.PropsWithChildren<CardProps>) => {\n    const background = props.background ?? 'strong';\n    const styles = getCardStyles(props.theme, background);\n\n    return (\n        <div className={styles.container} data-test={background}>\n            {props.children}\n        </div>\n    );\n};\n\nexport default withTheme(Card);\n","import { css } from 'emotion';\n\nconst spinnerOuter = css`\n    height: 200px;\n    max-height: 100%;\n`;\n\nconst spinnerContainer = css`\n    position: relative;\n    height: 100%;\n`;\n\nconst spinner = css`\n    position: absolute;\n    top: 0;\n    left: 0;\n    bottom: 0;\n    right: 0;\n    display: flex;\n    width: 100%;\n    height: 100%;\n    justify-content: center;\n    align-items: center;\n    z-index: 20;\n`;\n\nexport { spinnerOuter, spinnerContainer, spinner };\n","import { css, cx } from 'emotion';\nimport React from 'react';\nimport { Spinner, Themeable, withTheme } from '@grafana/ui';\nimport { spinner, spinnerContainer, spinnerOuter } from './styles';\n\nexport interface LoaderBasicProps {\n    loaded: boolean;\n    boundedContainer?: boolean;\n    children?: React.ReactNode;\n}\n\nexport type LoaderProps = Themeable & LoaderBasicProps;\n\nexport class Loader extends React.Component<LoaderProps, {}> {\n    constructor(props: LoaderProps) {\n        super(props);\n    }\n\n    render() {\n        const { loaded, theme } = this.props;\n        if (loaded) {\n            return this.props.children;\n        }\n        return (\n            <div className={spinnerOuter}>\n                <div className={spinnerContainer}>\n                    <div\n                        className={cx(\n                            spinner,\n                            css`\n                                background-color: ${theme.colors.bg1}8f;\n                            `\n                        )}\n                        data-test=\"spinner-container\"\n                    >\n                        <Spinner size={40} />\n                    </div>\n                    <div data-test=\"content-container\">{this.props.children}</div>\n                </div>\n            </div>\n        );\n    }\n}\n\nexport default withTheme(Loader);\n","import { SearchEntity } from '../../../../../../common/services/pmsearch/types';\n\nexport enum FetchStatus {\n    INIT,\n    PENDING,\n    SUCCESS,\n    ERROR,\n}\n\nexport interface SearchQuery {\n    pattern: string;\n    entityFlags: SearchEntity;\n    pageNum: number;\n}\n\nexport interface TrackableStatus {\n    status: FetchStatus;\n}\n","import { css } from 'emotion';\nimport { GrafanaTheme } from '@grafana/data';\n\nconst detailPageContainer = css`\n    grid-area: content;\n`;\n\nconst detailPageItem = css`\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n`;\n\nconst detailPageHeader = css``;\n\nconst detailPageTitle = css`\n    margin-bottom: 16px;\n`;\n\nconst detailPageEntityType = (theme: GrafanaTheme) => css`\n    margin-bottom: 16px;\n    padding: 0;\n    cursor: default;\n    pointer-events: none;\n    text-transform: capitalize;\n    color: ${theme.colors.text};\n`;\n\nconst detailPageDescription = css`\n    margin-bottom: 8px;\n    white-space: pre-line;\n\n    > p:last-child {\n        margin-bottom: 0;\n    }\n`;\n\nconst detailPageActions = css`\n    margin-top: 16px;\n`;\n\nconst detailPageProperties = css`\n    width: 100%;\n`;\n\nconst detailPageBtn = css`\n    padding: 0;\n`;\n\nconst gridList = css`\n    display: flex;\n    width: 100%;\n    flex-wrap: wrap;\n    justify-content: space-between;\n\n    > * {\n        flex: 1 1 calc(50% - 5px);\n        max-width: calc(50% - 5px);\n    }\n\n    > *:nth-child(2n + 3),\n    > *:nth-child(2n + 4) {\n        margin-top: 8px;\n    }\n\n    @media screen and (max-width: 600px) {\n        > * {\n            flex: 1 1 100%;\n            margin-top: 8px;\n        }\n    }\n`;\n\nconst gridListSingleCol = css`\n    > * {\n        flex: 1 1 100%;\n        max-width: 100%;\n    }\n\n    > * + * {\n        margin-top: 8px;\n    }\n`;\n\nconst gridItem = css``;\n\nconst gridTitle = css`\n    display: block;\n    font-weight: bold;\n`;\n\nconst gridValue = css`\n    display: block;\n`;\n\nconst instanceDomainContent = css``;\n\nconst instanceDomainItemList = css`\n    margin-left: 1rem;\n    margin-bottom: 1rem;\n`;\n\nconst radioBtnGroupContainer = css`\n    width: 100%;\n`;\n\nexport {\n    detailPageContainer,\n    detailPageItem,\n    detailPageHeader,\n    detailPageTitle,\n    detailPageEntityType,\n    detailPageDescription,\n    detailPageActions,\n    detailPageProperties,\n    detailPageBtn,\n    gridList,\n    gridListSingleCol,\n    gridItem,\n    gridTitle,\n    gridValue,\n    radioBtnGroupContainer,\n    instanceDomainContent,\n    instanceDomainItemList,\n};\n","import { cx } from 'emotion';\nimport React from 'react';\nimport { VerticalGroup } from '@grafana/ui';\nimport { IndomEntitySparseItem } from '../../../../models/entities/indom';\nimport { gridItem, gridList, gridListSingleCol, gridValue } from '../../styles';\n\nexport interface InstancesProps {\n    instances: IndomEntitySparseItem[];\n}\n\nexport class Instances extends React.Component<InstancesProps, {}> {\n    render() {\n        const { instances } = this.props;\n\n        if (instances.length) {\n            return (\n                <VerticalGroup spacing=\"md\">\n                    <h3 data-test=\"instances\">Instances:</h3>\n                    <div className={cx(gridList, gridListSingleCol)}>\n                        {instances.map((instance, i) => (\n                            <div className={gridItem} key={i}>\n                                <span className={gridValue} data-test={`instance-${instance.name}`}>\n                                    {instance.name}\n                                </span>\n                            </div>\n                        ))}\n                    </div>\n                </VerticalGroup>\n            );\n        }\n\n        return <p>No instances.</p>;\n    }\n}\n\nexport default Instances;\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport { Button, HorizontalGroup, Themeable, VerticalGroup, withTheme } from '@grafana/ui';\nimport { EntityType } from '../../../../../common/services/pmsearch/types';\nimport Card from '../../../components/Card/Card';\nimport Loader from '../../../components/Loader/Loader';\nimport { RootState } from '../../../store/reducer';\nimport { FetchStatus } from '../../../store/slices/search/shared/state';\nimport { BookmarkItem } from '../../../store/slices/search/slices/bookmarks/state';\nimport { IndomDataState } from '../../../store/slices/search/slices/entity/state';\nimport {\n    detailPageActions,\n    detailPageBtn,\n    detailPageDescription,\n    detailPageEntityType,\n    detailPageHeader,\n    detailPageItem,\n    detailPageProperties,\n    detailPageTitle,\n} from '../styles';\nimport Instances from './Instances/Instances';\n\nconst mapStateToProps = (state: RootState) => ({\n    bookmarks: state.search.bookmarks,\n});\n\nexport interface InstanceDomainDetailPageBasicProps {\n    indom: IndomDataState;\n    onBookmark: (item: BookmarkItem) => void;\n    onUnbookmark: (item: BookmarkItem) => void;\n}\n\nexport type InstanceDomainDetailPageReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type InstanceDomainDetailPageReduxProps = InstanceDomainDetailPageReduxStateProps;\n\nexport type InstanceDomainDetailPageProps = InstanceDomainDetailPageReduxProps &\n    InstanceDomainDetailPageBasicProps &\n    Themeable;\n\nexport class InstanceDomainDetailPage extends React.Component<InstanceDomainDetailPageProps, {}> {\n    constructor(props: InstanceDomainDetailPageProps) {\n        super(props);\n        this.renderDetail = this.renderDetail.bind(this);\n        this.renderDesc = this.renderDesc.bind(this);\n        this.renderBookmarkBtn = this.renderBookmarkBtn.bind(this);\n        this.renderIndom = this.renderIndom.bind(this);\n        this.onBookmark = this.onBookmark.bind(this);\n        this.onUnbookmark = this.onUnbookmark.bind(this);\n    }\n\n    get isBookmarked() {\n        const { indom, bookmarks } = this.props;\n        return bookmarks.some(\n            bookmark => indom.data?.indom.name === bookmark.id && bookmark.type === EntityType.InstanceDomain\n        );\n    }\n\n    onBookmark() {\n        const { indom } = this.props;\n        const { data } = indom;\n        if (!data?.indom.name) {\n            return;\n        }\n        if (data) {\n            this.props.onBookmark({ id: data.indom.name, type: EntityType.InstanceDomain });\n        }\n    }\n\n    onUnbookmark() {\n        const { indom } = this.props;\n        const { data } = indom;\n        if (!data?.indom.name) {\n            return;\n        }\n        if (data) {\n            this.props.onUnbookmark({ id: data.indom.name, type: EntityType.InstanceDomain });\n        }\n    }\n\n    renderDetail() {\n        const { props, renderIndom } = this;\n        const { indom } = props;\n        const { status, data } = indom;\n        switch (status) {\n            case FetchStatus.PENDING:\n            case FetchStatus.SUCCESS: {\n                if (status === FetchStatus.PENDING) {\n                    return <p>Loading&hellip;</p>;\n                }\n                if (data === null) {\n                    return <p>Incorrect response</p>;\n                }\n                return renderIndom();\n            }\n            case FetchStatus.ERROR: {\n                return <p>Error fetching instance domain.</p>;\n            }\n        }\n        return;\n    }\n\n    renderDesc() {\n        const { indom } = this.props;\n        const { data } = indom;\n        if (!data) {\n            return <p>Unable to render description.</p>;\n        }\n        let description = data.indom.oneline;\n        if (data.indom.helptext) {\n            description = data.indom.helptext;\n        }\n        return <p>{description}</p>;\n    }\n\n    renderBookmarkBtn() {\n        const { isBookmarked, onBookmark, onUnbookmark } = this;\n        if (!isBookmarked) {\n            return (\n                <Button\n                    fill=\"text\"\n                    size=\"md\"\n                    icon=\"star\"\n                    className={detailPageBtn}\n                    onClick={onBookmark}\n                    data-test=\"bookmark-button\"\n                >\n                    Bookmark This Result\n                </Button>\n            );\n        } else {\n            return (\n                <Button\n                    variant=\"destructive\"\n                    size=\"md\"\n                    icon=\"trash-alt\"\n                    onClick={onUnbookmark}\n                    data-test=\"unbookmark-button\"\n                >\n                    Unbookmark This Result\n                </Button>\n            );\n        }\n    }\n\n    renderIndom() {\n        const { props, renderBookmarkBtn, renderDesc } = this;\n        const { indom } = props;\n        const { data } = indom;\n        if (!data) {\n            return <p>No indom.</p>;\n        }\n        return (\n            <VerticalGroup spacing=\"lg\">\n                <Card background=\"strong\">\n                    <article className={detailPageItem}>\n                        <header className={detailPageHeader}>\n                            <h2 className={detailPageTitle} data-test=\"title\">\n                                {data.indom.name}\n                            </h2>\n                            <Button\n                                fill=\"text\"\n                                size=\"md\"\n                                icon=\"tag-alt\"\n                                className={detailPageEntityType(props.theme)}\n                            >\n                                Instance Domain\n                            </Button>\n                        </header>\n                        <div className={detailPageDescription} data-test=\"description\">\n                            {renderDesc()}\n                        </div>\n                        <div className={detailPageActions}>\n                            <HorizontalGroup spacing=\"lg\" justify=\"space-between\">\n                                {renderBookmarkBtn()}\n                            </HorizontalGroup>\n                        </div>\n                    </article>\n                </Card>\n                <div className={detailPageProperties}>\n                    <VerticalGroup spacing=\"lg\">\n                        <Card background=\"weak\">\n                            <Instances instances={data.instances} data-test=\"instances\" />\n                        </Card>\n                    </VerticalGroup>\n                </div>\n            </VerticalGroup>\n        );\n    }\n\n    render() {\n        const { renderDetail, props } = this;\n        const { indom } = props;\n        return (\n            <Loader loaded={indom.status !== FetchStatus.PENDING} data-test=\"loader\">\n                {renderDetail()}\n            </Loader>\n        );\n    }\n}\n\nexport default withTheme(connect(mapStateToProps, {})(InstanceDomainDetailPage));\n","const Config = Object.freeze({\n    // Maximum search shortcuts available from index\n    MAX_SEARCH_SHORTCUTS: 12,\n    REQUEST_TIMEOUT: 2500,\n    RESULTS_PER_PAGE: 8,\n    ALLOW_SEARCH_SUGGESTIONS: true,\n});\n\nexport default Config;\n","export const LOAD_METRIC_INIT = 'LOAD_METRIC_INIT';\nexport const LOAD_METRIC_PENDING = 'LOAD_METRIC_PENDING';\nexport const LOAD_METRIC_SUCCESS = 'LOAD_METRIC_SUCCESS';\nexport const LOAD_METRIC_ERROR = 'LOAD_METRIC_ERROR';\nexport const LOAD_METRIC_SIBLINGS_INIT = 'LOAD_METRIC_SIBLINGS_INIT';\nexport const LOAD_METRIC_SIBLINGS_PENDING = 'LOAD_METRIC_SIBLINGS_PENDING';\nexport const LOAD_METRIC_SIBLINGS_SUCCESS = 'LOAD_METRIC_SIBLINGS_SUCCESS';\nexport const LOAD_METRIC_SIBLINGS_ERROR = 'LOAD_METRIC_SIBLINGS_ERROR';\nexport const LOAD_INDOM_INIT = 'LOAD_INDOM_INIT';\nexport const LOAD_INDOM_PENDING = 'LOAD_INDOM_PENDING';\nexport const LOAD_INDOM_SUCCESS = 'LOAD_INDOM_SUCCESS';\nexport const LOAD_INDOM_ERROR = 'LOAD_INDOM_ERROR';\n","import { ThunkAction, ThunkDispatch } from 'redux-thunk';\nimport { Services } from '../../../../../services/services';\nimport { LoadIndomAction, LoadMetricAction, LoadMetricSiblingsAction } from './actions';\nimport {\n    LOAD_INDOM_ERROR,\n    LOAD_INDOM_INIT,\n    LOAD_INDOM_PENDING,\n    LOAD_INDOM_SUCCESS,\n    LOAD_METRIC_ERROR,\n    LOAD_METRIC_INIT,\n    LOAD_METRIC_PENDING,\n    LOAD_METRIC_SIBLINGS_ERROR,\n    LOAD_METRIC_SIBLINGS_INIT,\n    LOAD_METRIC_SIBLINGS_PENDING,\n    LOAD_METRIC_SIBLINGS_SUCCESS,\n    LOAD_METRIC_SUCCESS,\n} from './types';\n\nexport const loadMetric =\n    (id: string): ThunkAction<Promise<string>, {}, Services, LoadMetricAction> =>\n    async (dispatch: ThunkDispatch<{}, {}, LoadMetricAction>, {}, { entityService }): Promise<string> => {\n        dispatch({ type: LOAD_METRIC_INIT });\n        dispatch({ type: LOAD_METRIC_PENDING });\n        try {\n            const data = await entityService.metric(id);\n            dispatch({\n                type: LOAD_METRIC_SUCCESS,\n                payload: {\n                    data,\n                },\n            });\n            return data.name;\n        } catch (e) {\n            dispatch({ type: LOAD_METRIC_ERROR });\n            throw e;\n        }\n    };\n\nexport const loadMetricSiblings =\n    (metricName: string, depth = 1): ThunkAction<Promise<void>, {}, Services, LoadMetricSiblingsAction> =>\n    async (dispatch: ThunkDispatch<{}, {}, LoadMetricSiblingsAction>, {}, { entityService }): Promise<void> => {\n        dispatch({ type: LOAD_METRIC_SIBLINGS_INIT });\n        dispatch({ type: LOAD_METRIC_SIBLINGS_PENDING });\n        try {\n            const data = await entityService.relatedMetricNames(metricName, depth);\n            dispatch({\n                type: LOAD_METRIC_SIBLINGS_SUCCESS,\n                payload: {\n                    data,\n                },\n            });\n        } catch (e) {\n            dispatch({ type: LOAD_METRIC_SIBLINGS_ERROR });\n            throw e;\n        }\n    };\n\nexport const loadIndom =\n    (id: string): ThunkAction<Promise<void>, {}, Services, LoadIndomAction> =>\n    async (dispatch: ThunkDispatch<{}, {}, LoadIndomAction>, {}, { entityService }): Promise<void> => {\n        dispatch({ type: LOAD_INDOM_INIT });\n        dispatch({ type: LOAD_INDOM_PENDING });\n        try {\n            const data = await entityService.indom(id);\n            dispatch({\n                type: LOAD_INDOM_SUCCESS,\n                payload: {\n                    data,\n                },\n            });\n        } catch (e) {\n            dispatch({ type: LOAD_INDOM_ERROR });\n            throw e;\n        }\n    };\n","export enum ViewState {\n    Detail,\n    Search,\n    Index,\n}\n\nexport const initialView = () => ViewState.Index;\n","export const ADD_HISTORY = 'ADD_HISTORY';\nexport const CLEAR_HISTORY = 'CLEAR_HISTORY';\n","export const SET_QUERY = 'SET_QUERY';\nexport const CLEAR_QUERY = 'CLEAR_QUERY';\n","export const LOAD_RESULT_INIT = 'LOAD_RESULT_INIT';\nexport const LOAD_RESULT_PENDING = 'LOAD_RESULT_PENDING';\nexport const LOAD_RESULT_SUCCESS = 'LOAD_RESULT_SUCCESS';\nexport const LOAD_RESULT_ERROR = 'LOAD_RESULT_ERROR';\nexport const CLEAR_RESULTS = 'CLEAR_RESULTS';\n","export const SET_VIEW = 'SET_VIEW';\n","import { ThunkAction, ThunkDispatch } from 'redux-thunk';\nimport { EntityType, TextItemResponseField } from '../../../../../../common/services/pmsearch/types';\nimport Config from '../../../../config/config';\nimport { Services } from '../../../../services/services';\nimport { RootState } from '../../../reducer';\nimport { loadIndom, loadMetric, loadMetricSiblings } from '../slices/entity/actionCreators';\nimport { EntityAction } from '../slices/entity/actions';\nimport { HistoryAction } from '../slices/history/actions';\nimport { ADD_HISTORY } from '../slices/history/types';\nimport { SetQueryAction } from '../slices/query/actions';\nimport { SET_QUERY } from '../slices/query/types';\nimport { LoadResultAction } from '../slices/result/actions';\nimport { ResultData } from '../slices/result/state';\nimport { LOAD_RESULT_ERROR, LOAD_RESULT_INIT, LOAD_RESULT_PENDING, LOAD_RESULT_SUCCESS } from '../slices/result/types';\nimport { SetViewAction, ViewAction } from '../slices/view/actions';\nimport { ViewState } from '../slices/view/state';\nimport { SET_VIEW } from '../slices/view/types';\nimport { SearchQuery } from './state';\n\ntype QuerySearchAction = LoadResultAction | SetViewAction | HistoryAction | SetQueryAction;\n\nexport type QuerySearchActionCreator = (\n    query: SearchQuery\n) => ThunkAction<Promise<void>, RootState, Services, QuerySearchAction>;\n\nexport const querySearch: QuerySearchActionCreator =\n    query =>\n    async (dispatch: ThunkDispatch<{}, {}, QuerySearchAction>, getState, { searchService }): Promise<void> => {\n        dispatch({\n            type: SET_VIEW,\n            payload: ViewState.Search,\n        });\n        dispatch({\n            type: LOAD_RESULT_INIT,\n        });\n\n        const limit = Config.RESULTS_PER_PAGE;\n        const offset = (query.pageNum - 1) * limit;\n\n        dispatch({\n            type: SET_QUERY,\n            payload: query,\n        });\n\n        try {\n            dispatch({\n                type: LOAD_RESULT_PENDING,\n            });\n            const { pattern, entityFlags } = query;\n            const response = await searchService.text({\n                query: pattern,\n                type: entityFlags,\n                limit,\n                offset,\n                highlight: [TextItemResponseField.Oneline, TextItemResponseField.Helptext, TextItemResponseField.Name],\n            });\n            const result: ResultData = {\n                data: response,\n            };\n            dispatch({\n                type: LOAD_RESULT_SUCCESS,\n                payload: result,\n            });\n        } catch (error) {\n            dispatch({\n                type: LOAD_RESULT_ERROR,\n                error,\n            });\n            return;\n        }\n\n        // Now check if we should update search history\n        if (query.pageNum === 1) {\n            const { history } = getState().search;\n            if (!history.some(record => record.pattern === query.pattern && record.entityFlags === query.entityFlags)) {\n                dispatch({\n                    type: ADD_HISTORY,\n                    payload: query,\n                });\n            }\n        }\n    };\n\ntype ClearSearchAction = SetQueryAction | ViewAction;\n\nexport type ClearSearchActionCreator = () => ThunkAction<void, RootState, {}, ClearSearchAction>;\n\nexport const clearSearch: ClearSearchActionCreator =\n    () => (dispatch: ThunkDispatch<{}, {}, ClearSearchAction>, getState) => {\n        const currentState = getState();\n        dispatch({\n            type: SET_QUERY,\n            payload: {\n                ...currentState.search.query,\n                pattern: '',\n            },\n        });\n        dispatch({\n            type: SET_VIEW,\n            payload: ViewState.Index,\n        });\n    };\n\ntype OpenDetailAction = EntityAction | ViewAction;\n\nexport type OpenDetailActionCreator = (\n    id: string,\n    type: EntityType\n) => ThunkAction<Promise<void>, {}, Services, OpenDetailAction>;\n\nexport const openDetail: OpenDetailActionCreator =\n    (id, type) =>\n    async (dispatch: ThunkDispatch<{}, Services, OpenDetailAction>, {}): Promise<void> => {\n        // eslint-disable-next-line @typescript-eslint/no-floating-promises\n        dispatch({\n            type: SET_VIEW,\n            payload: ViewState.Detail,\n        });\n        switch (type) {\n            case EntityType.Metric: {\n                return dispatch(loadMetric(id)).then(metricName => {\n                    return dispatch(loadMetricSiblings(metricName));\n                });\n            }\n            case EntityType.InstanceDomain: {\n                return dispatch(loadIndom(id));\n            }\n        }\n    };\n","import React from 'react';\nimport { MetricEntityLabels } from '../../../../models/entities/metric';\nimport { gridItem, gridList, gridTitle, gridValue } from '../../styles';\n\nexport interface LabelsProps {\n    labels: MetricEntityLabels;\n}\n\nexport class Labels extends React.Component<LabelsProps, {}> {\n    render() {\n        const { labels } = this.props;\n        return (\n            <div className={gridList}>\n                {Object.entries(labels).map(([key, value], i) => (\n                    <div key={i} className={gridItem} data-test={key}>\n                        <span className={gridTitle}>{key}:</span>\n                        <span className={gridValue} data-test={`${key}-value`}>\n                            {value.toString()}\n                        </span>\n                    </div>\n                ))}\n            </div>\n        );\n    }\n}\n\nexport default Labels;\n","import { css } from 'emotion';\nimport React from 'react';\nimport { Button } from '@grafana/ui';\nimport { MetricEntityMeta } from '../../../../models/entities/metric';\nimport { gridItem, gridList, gridTitle, gridValue } from '../../styles';\n\nexport interface MetaProps {\n    meta: MetricEntityMeta;\n    onIndomClick?: (indom: string) => void;\n}\n\nexport class Meta extends React.Component<MetaProps, {}> {\n    render() {\n        const { props } = this;\n        const { meta, onIndomClick } = props;\n        const { pmid, type, semantics, units, indom, source } = meta;\n        return (\n            <div className={gridList}>\n                <div className={gridItem} data-test=\"pmid\">\n                    <span className={gridTitle}>PMID:</span>\n                    <span className={gridValue}>{pmid}</span>\n                </div>\n                <div className={gridItem} data-test=\"type\">\n                    <span className={gridTitle}>Type:</span>\n                    <span className={gridValue}>{type}</span>\n                </div>\n                <div className={gridItem} data-test=\"semantics\">\n                    <span className={gridTitle}>Semantics:</span>\n                    <span className={gridValue}>{semantics}</span>\n                </div>\n                <div className={gridItem} data-test=\"units\">\n                    <span className={gridTitle}>Units:</span>\n                    <span className={gridValue}>{units}</span>\n                </div>\n                <div className={gridItem} data-test=\"indom\">\n                    <span className={gridTitle}>Indom:</span>\n                    <span className={gridValue}>\n                        {onIndomClick && indom !== 'none' && indom !== '' ? (\n                            <Button\n                                fill=\"text\"\n                                size=\"md\"\n                                onClick={() => onIndomClick(indom)}\n                                className={css`\n                                    padding: 0;\n                                    margin: 0;\n                                    line-height: 1;\n                                    height: auto;\n                                `}\n                            >\n                                {indom}\n                            </Button>\n                        ) : (\n                            indom\n                        )}\n                    </span>\n                </div>\n                <div className={gridItem} data-test=\"source\">\n                    <span className={gridTitle}>Source:</span>\n                    <span className={gridValue}>{source}</span>\n                </div>\n            </div>\n        );\n    }\n}\n\nexport default Meta;\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport { AnyAction, bindActionCreators } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { SelectableValue } from '@grafana/data';\nimport { RadioButtonGroup, VerticalGroup } from '@grafana/ui';\nimport { EntityType } from '../../../../../../common/services/pmsearch/types';\nimport { MetricEntitySeries } from '../../../../models/entities/metric';\nimport { RootState } from '../../../../store/reducer';\nimport { openDetail } from '../../../../store/slices/search/shared/actionCreators';\nimport { radioBtnGroupContainer } from '../../styles';\nimport Labels from '../Labels/Labels';\nimport Meta from '../Meta/Meta';\n\nconst mapDispatchToProps = (dispatch: ThunkDispatch<RootState, null, AnyAction>) =>\n    bindActionCreators({ openDetail }, dispatch);\n\nexport interface SeriesBasicProps {\n    initTab?: SeriesTabOpt;\n    series: MetricEntitySeries;\n}\n\nexport type SeriesReduxDispatchProps = ReturnType<typeof mapDispatchToProps>;\n\nexport type SeriesReduxProps = SeriesReduxDispatchProps;\n\nexport type SeriesProps = SeriesBasicProps & SeriesReduxProps;\n\nexport interface SeriesState {\n    selectedOption: SeriesTabOpt;\n    options: Array<SelectableValue<SeriesTabOpt>>;\n}\n\nexport enum SeriesTabOpt {\n    Labels = 'labels',\n    Meta = 'meta',\n}\n\nexport class Series extends React.Component<SeriesProps, SeriesState> {\n    state: SeriesState = this.initialState;\n\n    constructor(props: SeriesProps) {\n        super(props);\n        if (props.initTab) {\n            this.state = { ...this.state, selectedOption: props.initTab };\n        }\n        this.onIndomClick = this.onIndomClick.bind(this);\n        this.setSelected = this.setSelected.bind(this);\n        this.renderTab = this.renderTab.bind(this);\n    }\n\n    get initialState() {\n        return {\n            selectedOption: SeriesTabOpt.Meta,\n            options: [\n                { label: 'Metadata', value: SeriesTabOpt.Meta },\n                { label: 'Labels', value: SeriesTabOpt.Labels },\n            ],\n        };\n    }\n\n    onIndomClick(indom: string) {\n        this.props.openDetail(indom, EntityType.InstanceDomain);\n    }\n\n    renderTab() {\n        const { state, props, onIndomClick } = this;\n        const { selectedOption } = state;\n        const { series } = props;\n        switch (selectedOption) {\n            case SeriesTabOpt.Labels: {\n                if (series.labels) {\n                    return <Labels labels={series.labels} data-test=\"labels\" />;\n                }\n                return <p>No labels available.</p>;\n            }\n            case SeriesTabOpt.Meta:\n                return <Meta meta={series.meta} onIndomClick={onIndomClick} data-test=\"meta\" />;\n            default:\n                return;\n        }\n    }\n\n    setSelected(selectedOption?: SeriesTabOpt) {\n        if (selectedOption) {\n            this.setState({ selectedOption });\n        }\n    }\n\n    render() {\n        const { state, renderTab, setSelected, props } = this;\n        return (\n            <VerticalGroup spacing=\"md\">\n                <h3 title=\"Series\" data-test=\"series-name\">\n                    {props.series.series}\n                </h3>\n                <div className={radioBtnGroupContainer}>\n                    <RadioButtonGroup\n                        options={state.options}\n                        disabled={false}\n                        value={state.selectedOption}\n                        onChange={setSelected}\n                        size=\"md\"\n                        data-test=\"tab-switcher\"\n                        fullWidth\n                    />\n                </div>\n                {renderTab()}\n            </VerticalGroup>\n        );\n    }\n}\n\nexport default connect(null, mapDispatchToProps)(Series);\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport { Button, HorizontalGroup, Themeable, VerticalGroup, withTheme } from '@grafana/ui';\nimport { EntityType } from '../../../../../common/services/pmsearch/types';\nimport Card from '../../../components/Card/Card';\nimport Loader from '../../../components/Loader/Loader';\nimport { RootState } from '../../../store/reducer';\nimport { FetchStatus } from '../../../store/slices/search/shared/state';\nimport { BookmarkItem } from '../../../store/slices/search/slices/bookmarks/state';\nimport { MetricDataState } from '../../../store/slices/search/slices/entity/state';\nimport {\n    detailPageActions,\n    detailPageBtn,\n    detailPageDescription,\n    detailPageEntityType,\n    detailPageHeader,\n    detailPageItem,\n    detailPageProperties,\n    detailPageTitle,\n} from '../styles';\nimport Series from './Series/Series';\n\nconst mapStateToProps = (state: RootState) => ({\n    bookmarks: state.search.bookmarks,\n});\n\nexport interface MetricDetailPageBasicProps {\n    metric: MetricDataState;\n    onBookmark: (item: BookmarkItem) => void;\n    onUnbookmark: (item: BookmarkItem) => void;\n    onPreview: (item: MetricDetailPreview) => void;\n}\n\nexport interface MetricDetailPreview {\n    id: string;\n    type: 'graph' | 'table';\n}\n\nexport type MetricDetailPageReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type MetricDetailPageReduxProps = MetricDetailPageReduxStateProps;\n\nexport type MetricDetailPageProps = MetricDetailPageReduxProps & MetricDetailPageBasicProps & Themeable;\n\nexport class MetricDetailPage extends React.Component<MetricDetailPageProps, {}> {\n    constructor(props: MetricDetailPageProps) {\n        super(props);\n        this.renderDetail = this.renderDetail.bind(this);\n        this.renderDesc = this.renderDesc.bind(this);\n        this.renderMetric = this.renderMetric.bind(this);\n        this.renderBookmarkBtn = this.renderBookmarkBtn.bind(this);\n        this.renderPreviewBtn = this.renderPreviewBtn.bind(this);\n        this.onPreview = this.onPreview.bind(this);\n        this.onBookmark = this.onBookmark.bind(this);\n        this.onUnbookmark = this.onUnbookmark.bind(this);\n    }\n\n    get isBookmarked() {\n        const { metric, bookmarks } = this.props;\n        return bookmarks.some(bookmark => metric.data?.name === bookmark.id && bookmark.type === EntityType.Metric);\n    }\n\n    onBookmark() {\n        const { metric } = this.props;\n        const { data } = metric;\n        if (data) {\n            this.props.onBookmark({ id: data.name, type: EntityType.Metric });\n        }\n    }\n\n    onUnbookmark() {\n        const { metric } = this.props;\n        const { data } = metric;\n        if (data) {\n            this.props.onUnbookmark({ id: data.name, type: EntityType.Metric });\n        }\n    }\n\n    onPreview() {\n        const { metric } = this.props;\n        const { data } = metric;\n        // either no data or no series\n        if (!data || data.series.length === 0) {\n            return;\n        }\n        // assume that all series have same type of value\n        const { meta } = data.series[0];\n        switch (meta.type) {\n            case 'string':\n                this.props.onPreview({ id: data.name, type: 'table' });\n                return;\n            default:\n                this.props.onPreview({ id: data.name, type: 'graph' });\n                return;\n        }\n    }\n\n    renderDetail() {\n        const { props, renderMetric } = this;\n        const { metric } = props;\n        const { status, data } = metric;\n        switch (status) {\n            case FetchStatus.PENDING:\n            case FetchStatus.SUCCESS: {\n                if (status === FetchStatus.PENDING) {\n                    return <p>Loading&hellip;</p>;\n                }\n                if (data === null) {\n                    return <p>Incorrect response</p>;\n                }\n                return renderMetric();\n            }\n            case FetchStatus.ERROR: {\n                return <p>Error fetching metric.</p>;\n            }\n        }\n        return;\n    }\n\n    renderDesc() {\n        const { metric } = this.props;\n        const { data } = metric;\n        if (!data) {\n            return <p>Unable to render description.</p>;\n        }\n        let description = data.oneline ?? 'No help available.';\n        if (data.help) {\n            description = data.help;\n        }\n        return <p>{description}</p>;\n    }\n\n    renderBookmarkBtn() {\n        const { isBookmarked, onBookmark, onUnbookmark } = this;\n        if (!isBookmarked) {\n            return (\n                <Button\n                    fill=\"text\"\n                    size=\"md\"\n                    icon=\"star\"\n                    className={detailPageBtn}\n                    onClick={onBookmark}\n                    data-test=\"bookmark-button\"\n                >\n                    Bookmark\n                </Button>\n            );\n        } else {\n            return (\n                <Button\n                    variant=\"destructive\"\n                    size=\"md\"\n                    icon=\"trash-alt\"\n                    onClick={onUnbookmark}\n                    data-test=\"unbookmark-button\"\n                >\n                    Unbookmark\n                </Button>\n            );\n        }\n    }\n\n    renderPreviewBtn() {\n        const { onPreview, props } = this;\n        const { metric } = props;\n        const { data } = metric;\n        // either no data or no series\n        if (!data || data.series.length === 0) {\n            return;\n        }\n        return (\n            <Button\n                fill=\"text\"\n                size=\"md\"\n                icon=\"chart-line\"\n                className={detailPageBtn}\n                onClick={onPreview}\n                data-test=\"preview-button\"\n            >\n                Preview\n            </Button>\n        );\n    }\n\n    renderMetric() {\n        const { props, renderDesc, renderBookmarkBtn, renderPreviewBtn } = this;\n        const { metric } = props;\n        const { data } = metric;\n        if (!data) {\n            return <p>No metric.</p>;\n        }\n        return (\n            <VerticalGroup spacing=\"lg\">\n                <Card background=\"strong\">\n                    <article className={detailPageItem}>\n                        <header className={detailPageHeader}>\n                            <h2 className={detailPageTitle} data-test=\"title\">\n                                {data.name}\n                            </h2>\n                            <Button\n                                fill=\"text\"\n                                size=\"md\"\n                                icon=\"tag-alt\"\n                                className={detailPageEntityType(props.theme)}\n                            >\n                                Metric\n                            </Button>\n                        </header>\n                        <div className={detailPageDescription} data-test=\"description\">\n                            {renderDesc()}\n                        </div>\n                        <div className={detailPageActions}>\n                            <HorizontalGroup spacing=\"lg\" justify=\"space-between\">\n                                {renderPreviewBtn()}\n                                {renderBookmarkBtn()}\n                            </HorizontalGroup>\n                        </div>\n                    </article>\n                </Card>\n                <div className={detailPageProperties}>\n                    <VerticalGroup spacing=\"lg\">\n                        {data.series.map((series, i) => (\n                            <Card background=\"weak\" key={i}>\n                                <Series series={series} data-test=\"series\" />\n                            </Card>\n                        ))}\n                    </VerticalGroup>\n                </div>\n            </VerticalGroup>\n        );\n    }\n\n    render() {\n        const { renderDetail, props } = this;\n        const { metric } = props;\n        return (\n            <Loader loaded={metric.status !== FetchStatus.PENDING} data-test=\"loader\">\n                {renderDetail()}\n            </Loader>\n        );\n    }\n}\n\nexport default withTheme(connect(mapStateToProps, {})(MetricDetailPage));\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport { SelectableValue } from '@grafana/data';\nimport { getLocationSrv, LocationSrv } from '@grafana/runtime';\nimport { EntityType } from '../../../../common/services/pmsearch/types';\nimport { RootState } from '../../store/reducer';\nimport { addBookmark, removeBookmark } from '../../store/slices/search/slices/bookmarks/actionCreators';\nimport { BookmarkItem } from '../../store/slices/search/slices/bookmarks/state';\nimport InstanceDomainDetailPage from './InstanceDomain/InstanceDomain';\nimport MetricDetailPage, { MetricDetailPreview } from './Metric/Metric';\nimport { detailPageContainer } from './styles';\n\nconst mapStateToProps = (state: RootState) => ({\n    entity: state.search.entity,\n});\n\nconst dispatchProps = {\n    addBookmark,\n    removeBookmark,\n};\n\nexport type DetailPageReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type DetailPageReduxDispatchProps = typeof dispatchProps;\n\nexport type DetailPageReduxProps = DetailPageReduxStateProps & DetailPageReduxDispatchProps;\n\nexport type DetailPageProps = DetailPageReduxProps;\n\nenum EntityTabOpt {\n    InstanceDomains = 'instance-domains',\n    Labels = 'labels',\n    OtherMeta = 'other-meta',\n}\n\ninterface DetailPageState {\n    selectedOption: EntityTabOpt;\n    options: Array<SelectableValue<EntityTabOpt>>;\n}\n\nexport class DetailPage extends React.Component<DetailPageProps, DetailPageState> {\n    locationSrv: LocationSrv;\n\n    constructor(props: DetailPageProps) {\n        super(props);\n        this.renderDetail = this.renderDetail.bind(this);\n        this.onMetricPreview = this.onMetricPreview.bind(this);\n        this.onBookmark = this.onBookmark.bind(this);\n        this.onUnbookmark = this.onUnbookmark.bind(this);\n        this.locationSrv = getLocationSrv();\n    }\n\n    onBookmark(item: BookmarkItem) {\n        this.props.addBookmark(item);\n    }\n\n    onUnbookmark(item: BookmarkItem) {\n        this.props.removeBookmark(item);\n    }\n\n    onMetricPreview(item: MetricDetailPreview) {\n        let path = '';\n        switch (item.type) {\n            case 'graph':\n                path = '/d/pcp-redis-metric-preview-graph/pcp-redis-metric-preview-graph';\n                break;\n            case 'table':\n                path = '/d/pcp-redis-metric-preview-table/pcp-redis-metric-preview-table';\n                break;\n            default:\n                return;\n        }\n\n        this.locationSrv.update({\n            path,\n            query: {\n                'var-metric': item.id,\n                refresh: '5s',\n            },\n        });\n    }\n\n    renderDetail() {\n        const { props, onBookmark, onUnbookmark, onMetricPreview } = this;\n        if (!props.entity) {\n            return <p>Entity state not initialized.</p>;\n        }\n        switch (props.entity.type) {\n            case EntityType.Metric:\n                return (\n                    <MetricDetailPage\n                        metric={props.entity.metric}\n                        onBookmark={onBookmark}\n                        onUnbookmark={onUnbookmark}\n                        onPreview={onMetricPreview}\n                        data-test=\"metric-detail\"\n                    />\n                );\n            case EntityType.InstanceDomain:\n                return (\n                    <InstanceDomainDetailPage\n                        indom={props.entity.indom}\n                        onBookmark={onBookmark}\n                        onUnbookmark={onUnbookmark}\n                        data-test=\"instance-domain-detail\"\n                    />\n                );\n            default:\n                return <p>Error rendering entity.</p>;\n        }\n    }\n\n    render() {\n        const { renderDetail } = this;\n        return <div className={detailPageContainer}>{renderDetail()}</div>;\n    }\n}\n\nexport default connect(mapStateToProps, dispatchProps)(DetailPage);\n","import { css } from 'emotion';\n\nconst bookmarkListBtnWithNoSpacing = css`\n    padding: 0;\n`;\n\nconst bookmarkListContainer = css`\n    display: flex;\n    width: 100%;\n    flex-wrap: wrap;\n    justify-content: space-between;\n\n    > * {\n        flex: 1 1 100%;\n        max-width: 100%;\n    }\n\n    @media screen and (max-width: 1024px) {\n        > * {\n            flex: 1 1 100%;\n            margin-top: 8px;\n        }\n    }\n`;\n\nconst bookmarkListContainerMultiCol = css`\n    > * {\n        flex: 1 1 calc(50% - 5px);\n        max-width: calc(50% - 5px);\n    }\n\n    > *:nth-child(2n + 3),\n    > *:nth-child(2n + 4) {\n        margin-top: 8px;\n    }\n`;\n\nexport { bookmarkListBtnWithNoSpacing, bookmarkListContainer, bookmarkListContainerMultiCol };\n","import { cx } from 'emotion';\nimport React from 'react';\nimport { Button, Themeable, VerticalGroup, withTheme } from '@grafana/ui';\nimport { EntityType } from '../../../../common/services/pmsearch/types';\nimport { BookmarkItem } from '../../store/slices/search/slices/bookmarks/state';\nimport { bookmarkListBtnWithNoSpacing, bookmarkListContainer, bookmarkListContainerMultiCol } from './styles';\n\nexport interface BookmarkListBasicProps {\n    showClearBtn?: boolean;\n    multiCol?: boolean;\n    bookmarks: BookmarkItem[];\n    onBookmarkClick: (item: string, type: EntityType) => void;\n    onClearBookmarksClick: () => void;\n}\n\nexport type BookmarkListProps = Themeable & BookmarkListBasicProps;\n\nexport class BookmarkList extends React.Component<BookmarkListProps, {}> {\n    static defaultProps: Required<Pick<BookmarkListProps, 'showClearBtn' | 'multiCol'>> = {\n        multiCol: true,\n        showClearBtn: true,\n    };\n\n    constructor(props: BookmarkListProps) {\n        super(props);\n        this.onClearBookmarksClick = this.onClearBookmarksClick.bind(this);\n        this.onBookmarkClick = this.onBookmarkClick.bind(this);\n        this.bookmarkDesc = this.bookmarkDesc.bind(this);\n    }\n\n    onBookmarkClick(item: BookmarkItem) {\n        this.props.onBookmarkClick(item.id, item.type);\n    }\n\n    onClearBookmarksClick() {\n        this.props.onClearBookmarksClick();\n    }\n\n    bookmarkDesc(item: BookmarkItem): string {\n        return `${item.id} (type: ${item.type})`;\n    }\n\n    render() {\n        const { props, onBookmarkClick, onClearBookmarksClick, bookmarkDesc } = this;\n        const { bookmarks } = props;\n\n        if (bookmarks.length === 0) {\n            return <p>No bookmarks saved.</p>;\n        }\n\n        return (\n            <VerticalGroup spacing=\"md\">\n                <h4>Bookmarked Results:</h4>\n                <VerticalGroup spacing=\"md\">\n                    <div\n                        className={\n                            props.multiCol\n                                ? cx(bookmarkListContainer, bookmarkListContainerMultiCol)\n                                : bookmarkListContainer\n                        }\n                        data-test={props.multiCol ? 'multicol' : 'singlecol'}\n                    >\n                        {bookmarks.map((item, index) => (\n                            <Button\n                                key={index}\n                                fill=\"text\"\n                                size=\"md\"\n                                icon=\"star\"\n                                className={bookmarkListBtnWithNoSpacing}\n                                onClick={() => onBookmarkClick(item)}\n                                title={bookmarkDesc(item)}\n                                data-test=\"bookmark-go\"\n                            >\n                                {item.id}\n                            </Button>\n                        ))}\n                    </div>\n                    {props.showClearBtn && (\n                        <Button\n                            variant=\"destructive\"\n                            size=\"md\"\n                            icon=\"trash-alt\"\n                            onClick={onClearBookmarksClick}\n                            data-test=\"bookmark-reset\"\n                        >\n                            Clear Bookmarks\n                        </Button>\n                    )}\n                </VerticalGroup>\n            </VerticalGroup>\n        );\n    }\n}\n\nexport default withTheme(BookmarkList);\n","import { css } from 'emotion';\n\nconst appLayout = css`\n    display: grid;\n    grid-template-areas:\n        'header actions'\n        'content aside';\n    grid-template-columns: auto 250px;\n    grid-template-rows: auto auto;\n    grid-gap: 32px;\n\n    @media screen and (max-width: 1024px) {\n        grid-template-areas: 'header' 'content' 'actions' 'aside';\n        grid-template-columns: 1fr;\n        grid-template-rows: auto auto;\n    }\n`;\n\nconst wrappedBtn = css`\n    > span {\n        min-width: 0;\n    }\n\n    > span > span:nth-child(2) {\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n    }\n`;\nexport { appLayout, wrappedBtn };\n","import { EntityType, SearchEntity } from '../../../common/services/pmsearch/types';\n\nexport class SearchEntityUtil {\n    static toEntityTypes(searchEntity: SearchEntity): EntityType[] {\n        const result: EntityType[] = [];\n        if (searchEntity & SearchEntity.Metrics) {\n            result.push(EntityType.Metric);\n        }\n        if (searchEntity & SearchEntity.Instances) {\n            result.push(EntityType.Instance);\n        }\n        if (searchEntity & SearchEntity.InstanceDomains) {\n            result.push(EntityType.InstanceDomain);\n        }\n        return result;\n    }\n}\n","import { css } from 'emotion';\n\nconst searchHistoryListBtnWithNoSpacing = css`\n    padding: 0;\n`;\n\nconst searchHistoryListContainer = css`\n    display: flex;\n    width: 100%;\n    flex-wrap: wrap;\n    justify-content: space-between;\n\n    > * {\n        flex: 1 1 100%;\n        max-width: 100%;\n    }\n\n    @media screen and (max-width: 1024px) {\n        > * {\n            flex: 1 1 100%;\n            margin-top: 8px;\n        }\n    }\n`;\n\nconst searchHistoryListContainerMultiCol = css`\n    > * {\n        flex: 1 1 calc(50% - 5px);\n        max-width: calc(50% - 5px);\n    }\n\n    > *:nth-child(2n + 3),\n    > *:nth-child(2n + 4) {\n        margin-top: 8px;\n    }\n`;\n\nexport { searchHistoryListBtnWithNoSpacing, searchHistoryListContainer, searchHistoryListContainerMultiCol };\n","import { cx } from 'emotion';\nimport React from 'react';\nimport { Button, VerticalGroup } from '@grafana/ui';\nimport { SearchQuery } from '../../store/slices/search/shared/state';\nimport { wrappedBtn } from '../../styles';\nimport { SearchEntityUtil } from '../../utils/SearchEntityUtil';\nimport {\n    searchHistoryListBtnWithNoSpacing,\n    searchHistoryListContainer,\n    searchHistoryListContainerMultiCol,\n} from './styles';\n\nexport interface SearchHistoryListProps {\n    showClearBtn?: boolean;\n    multiCol?: boolean;\n    searchHistory: SearchQuery[];\n    onSearchHistoryClick: (query: SearchQuery) => void;\n    onClearSearchHistoryClick: () => void;\n}\n\nexport class SearchHistoryList extends React.Component<SearchHistoryListProps, {}> {\n    static defaultProps: Required<Pick<SearchHistoryListProps, 'showClearBtn' | 'multiCol'>> = {\n        showClearBtn: true,\n        multiCol: true,\n    };\n\n    constructor(props: SearchHistoryListProps) {\n        super(props);\n        this.onClearSearchHistoryClick = this.onClearSearchHistoryClick.bind(this);\n        this.onSearchHistoryClick = this.onSearchHistoryClick.bind(this);\n    }\n\n    onSearchHistoryClick(query: SearchQuery) {\n        this.props.onSearchHistoryClick(query);\n    }\n\n    onClearSearchHistoryClick() {\n        this.props.onClearSearchHistoryClick();\n    }\n\n    searchHistoryItemDesc(query: SearchQuery) {\n        let desc = `${query.pattern}`;\n        const types = SearchEntityUtil.toEntityTypes(query.entityFlags);\n        if (types.length > 0) {\n            desc += ` (types: ${types.join(', ')})`;\n        }\n        return desc;\n    }\n\n    render() {\n        const { props, onSearchHistoryClick, onClearSearchHistoryClick, searchHistoryItemDesc } = this;\n        const { searchHistory } = props;\n\n        if (searchHistory.length === 0) {\n            return <p>No search queries in history.</p>;\n        }\n\n        return (\n            <VerticalGroup spacing=\"md\">\n                <h4>Search History:</h4>\n                <VerticalGroup spacing=\"md\">\n                    <div\n                        className={\n                            props.multiCol\n                                ? cx(searchHistoryListContainer, searchHistoryListContainerMultiCol)\n                                : searchHistoryListContainer\n                        }\n                        data-test={props.multiCol ? 'multicol' : 'singlecol'}\n                    >\n                        {searchHistory.map((item, index) => (\n                            <Button\n                                key={index}\n                                fill=\"text\"\n                                size=\"md\"\n                                icon=\"search\"\n                                className={cx(searchHistoryListBtnWithNoSpacing, wrappedBtn)}\n                                onClick={() => onSearchHistoryClick(item)}\n                                data-test=\"search-history-go\"\n                                title={searchHistoryItemDesc(item)}\n                            >\n                                {item.pattern}\n                            </Button>\n                        ))}\n                    </div>\n                    {props.showClearBtn && (\n                        <Button\n                            variant=\"destructive\"\n                            size=\"md\"\n                            icon=\"trash-alt\"\n                            onClick={onClearSearchHistoryClick}\n                            data-test=\"search-history-reset\"\n                        >\n                            Clear History\n                        </Button>\n                    )}\n                </VerticalGroup>\n            </VerticalGroup>\n        );\n    }\n}\n\nexport default SearchHistoryList;\n","import { ClearHistoryAction } from './actions';\nimport { CLEAR_HISTORY } from './types';\n\nexport type ClearSearchHistoryActionCreator = () => ClearHistoryAction;\n\nexport const clearSearchHistory: ClearSearchHistoryActionCreator = () => {\n    return { type: CLEAR_HISTORY };\n};\n","import { css } from 'emotion';\n\nconst indexPageContainer = css`\n    grid-area: content;\n`;\n\nconst indexPageBtnWithNoSpacing = css`\n    padding: 0;\n`;\n\nconst indexColumnsList = css`\n    display: flex;\n    width: 100%;\n    flex-wrap: wrap;\n    justify-content: space-between;\n\n    > * {\n        flex: 1 1 50%;\n    }\n\n    > *:nth-child(2n + 3),\n    > *:nth-child(2n + 4) {\n        margin-top: 8px;\n    }\n\n    @media screen and (max-width: 1024px) {\n        > * {\n            flex: 1 1 100%;\n            margin-top: 8px;\n        }\n    }\n`;\n\nexport { indexPageContainer, indexPageBtnWithNoSpacing, indexColumnsList };\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport { AnyAction, bindActionCreators } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { VerticalGroup } from '@grafana/ui';\nimport BookmarkList from '../../components/BookmarkList/BookmarkList';\nimport Card from '../../components/Card/Card';\nimport SearchHistoryList from '../../components/SearchHistoryList/SearchHistoryList';\nimport { RootState } from '../../store/reducer';\nimport { openDetail, querySearch } from '../../store/slices/search/shared/actionCreators';\nimport { clearBookmarks } from '../../store/slices/search/slices/bookmarks/actionCreators';\nimport { clearSearchHistory } from '../../store/slices/search/slices/history/actionCreators';\nimport { indexPageContainer } from './styles';\n\nconst mapStateToProps = (state: RootState) => ({\n    bookmarks: state.search.bookmarks,\n    searchHistory: state.search.history,\n});\n\nconst mapDispatchToProps = (dispatch: ThunkDispatch<RootState, null, AnyAction>) =>\n    bindActionCreators({ querySearch, openDetail, clearBookmarks, clearSearchHistory }, dispatch);\n\nexport type IndexPageReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type IndexPageReduxDispatchProps = ReturnType<typeof mapDispatchToProps>;\n\nexport type IndexPageReduxProps = IndexPageReduxStateProps & IndexPageReduxDispatchProps;\n\nexport type IndexPageProps = IndexPageReduxProps;\n\nexport class IndexPage extends React.Component<IndexPageProps, {}> {\n    constructor(props: IndexPageProps) {\n        super(props);\n    }\n\n    render() {\n        const { props } = this;\n        return (\n            <div className={indexPageContainer}>\n                <VerticalGroup spacing=\"lg\">\n                    <Card background=\"strong\">\n                        <BookmarkList\n                            showClearBtn={true}\n                            multiCol={true}\n                            bookmarks={props.bookmarks}\n                            onBookmarkClick={props.openDetail}\n                            onClearBookmarksClick={props.clearBookmarks}\n                            data-test=\"bookmark-list\"\n                        />\n                    </Card>\n                    <Card background=\"strong\">\n                        <SearchHistoryList\n                            showClearBtn={true}\n                            multiCol={true}\n                            searchHistory={props.searchHistory}\n                            onSearchHistoryClick={props.querySearch}\n                            onClearSearchHistoryClick={props.clearSearchHistory}\n                            data-test=\"search-history-list\"\n                        />\n                    </Card>\n                </VerticalGroup>\n            </div>\n        );\n    }\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(IndexPage);\n","import { css } from 'emotion';\nimport { GrafanaTheme } from '@grafana/data';\n\nconst searchResultItem = css`\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n`;\n\nconst searchResultHeader = css``;\n\nconst searchResultTitle = css`\n    margin-bottom: 16px;\n`;\n\nconst searchResultDescription = css`\n    margin-bottom: 8px;\n    white-space: pre-line;\n\n    > p:last-child {\n        margin-bottom: 0;\n    }\n`;\n\nconst searchResultFooter = css``;\n\nconst searchResultBtnWithNoSpacing = css`\n    padding: 0;\n`;\n\nconst searchResultEntityType = (theme: GrafanaTheme) => css`\n    padding: 0;\n    cursor: default;\n    pointer-events: none;\n    text-transform: capitalize;\n    color: ${theme.colors.text};\n`;\n\nconst searchResultTitleLink = (theme: GrafanaTheme) => css`\n    padding: 0;\n    color: ${theme.colors.text};\n    font-size: ${theme.typography.heading.h4};\n    font-weight: normal;\n\n    &:hover {\n        color: ${theme.colors.linkExternal};\n    }\n`;\n\nexport {\n    searchResultItem,\n    searchResultHeader,\n    searchResultTitle,\n    searchResultDescription,\n    searchResultFooter,\n    searchResultBtnWithNoSpacing,\n    searchResultEntityType,\n    searchResultTitleLink,\n};\n","import React from 'react';\nimport { Button, HorizontalGroup, Themeable, withTheme } from '@grafana/ui';\nimport { TextItemResponse } from '../../../../common/services/pmsearch/types';\nimport Card from '../Card/Card';\nimport {\n    searchResultBtnWithNoSpacing,\n    searchResultDescription,\n    searchResultEntityType,\n    searchResultFooter,\n    searchResultHeader,\n    searchResultItem,\n    searchResultTitle,\n    searchResultTitleLink,\n} from './styles';\n\nexport type SearchResultProps = Themeable & {\n    item: TextItemResponse;\n    openDetail: (entity: TextItemResponse) => void;\n};\n\nexport class SearchResult extends React.PureComponent<SearchResultProps, {}> {\n    constructor(props: SearchResultProps) {\n        super(props);\n        this.renderName = this.renderName.bind(this);\n        this.renderDesc = this.renderDesc.bind(this);\n        this.renderFooter = this.renderFooter.bind(this);\n    }\n\n    renderDesc() {\n        const { item } = this.props;\n        let description;\n        if (item.oneline) {\n            description = item.oneline;\n        } else if (item.helptext) {\n            description = item.helptext;\n        } else {\n            description = 'No description.';\n        }\n        return (\n            <div className={searchResultDescription} data-test=\"description\">\n                <p dangerouslySetInnerHTML={{ __html: description }}></p>\n            </div>\n        );\n    }\n\n    renderFooter() {\n        const { props } = this;\n        return (\n            <footer className={searchResultFooter}>\n                <HorizontalGroup spacing=\"lg\" justify=\"space-between\">\n                    <Button fill=\"text\" size=\"md\" icon=\"tag-alt\" className={searchResultEntityType(props.theme)}>\n                        {props.item.type}\n                    </Button>\n                    <Button\n                        fill=\"text\"\n                        size=\"md\"\n                        icon=\"arrow-right\"\n                        className={searchResultBtnWithNoSpacing}\n                        onClick={() => props.openDetail(props.item)}\n                        data-test=\"read-more\"\n                    >\n                        Read More\n                    </Button>\n                </HorizontalGroup>\n            </footer>\n        );\n    }\n\n    renderName() {\n        const { item } = this.props;\n        if (item.name) {\n            return <span data-test=\"name\" dangerouslySetInnerHTML={{ __html: item.name }}></span>;\n        } else {\n            return <span data-test=\"name\">Name is missing.</span>;\n        }\n    }\n\n    render() {\n        const { renderDesc, renderFooter, renderName, props } = this;\n        return (\n            <Card background=\"strong\">\n                <article className={searchResultItem}>\n                    <header className={searchResultHeader}>\n                        <h4 className={searchResultTitle}>\n                            <Button\n                                fill=\"text\"\n                                size=\"md\"\n                                className={searchResultTitleLink(props.theme)}\n                                onClick={() => this.props.openDetail(props.item)}\n                            >\n                                {renderName()}\n                            </Button>\n                        </h4>\n                    </header>\n                    {renderDesc()}\n                    {renderFooter()}\n                </article>\n            </Card>\n        );\n    }\n}\n\nexport default withTheme(SearchResult);\n","// Use only when you trust HTML source!\nconst stripHtml = (html: string) => {\n    const el = document.createElement('div');\n    el.innerHTML = html;\n    return el.textContent || el.innerText || '';\n};\n\nexport { stripHtml };\n","import { css } from 'emotion';\nimport { GrafanaTheme } from '@grafana/data';\n\nconst searchPageContainer = css`\n    grid-area: content;\n`;\n\nconst searchPageMatchesDesc = (theme: GrafanaTheme) => css`\n    display: inline-block;\n    color: ${theme.colors.textSemiWeak};\n`;\n\nconst searchPageElapsed = (theme: GrafanaTheme) => css`\n    display: inline-block;\n    font-style: italic;\n    color: ${theme.colors.textWeak};\n`;\n\nconst paginationContainer = css`\n    margin: 0 auto;\n`;\n\nexport { searchPageContainer, searchPageMatchesDesc, searchPageElapsed, paginationContainer };\n","import { getLogger } from 'loglevel';\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { AnyAction, bindActionCreators } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { HorizontalGroup, Pagination, Themeable, VerticalGroup, withTheme } from '@grafana/ui';\nimport { EntityType, TextItemResponse } from '../../../../common/services/pmsearch/types';\nimport Loader from '../../components/Loader/Loader';\nimport SearchResult from '../../components/SearchResult/SearchResult';\nimport { RootState } from '../../store/reducer';\nimport { openDetail, querySearch } from '../../store/slices/search/shared/actionCreators';\nimport { FetchStatus } from '../../store/slices/search/shared/state';\nimport { stripHtml } from '../../utils/utils';\nimport { paginationContainer, searchPageElapsed, searchPageMatchesDesc } from './styles';\n\nconst log = getLogger('search/SearchPage');\n\nconst mapStateToProps = (state: RootState) => ({\n    result: state.search.result,\n    query: state.search.query,\n});\n\nconst mapDispatchToProps = (dispatch: ThunkDispatch<RootState, null, AnyAction>) =>\n    bindActionCreators({ querySearch, openDetail }, dispatch);\n\nexport type SearchPageReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type SearchPageReduxDispatchProps = ReturnType<typeof mapDispatchToProps>;\n\nexport type SearchPageReduxProps = SearchPageReduxStateProps & SearchPageReduxDispatchProps;\n\nexport type SearchPageProps = SearchPageReduxProps & Themeable;\n\nexport class SearchPage extends React.Component<SearchPageProps, {}> {\n    constructor(props: SearchPageProps) {\n        super(props);\n        this.onPaginationClick = this.onPaginationClick.bind(this);\n        this.onDetailClick = this.onDetailClick.bind(this);\n        this.renderResults = this.renderResults.bind(this);\n        this.renderMatchesDesc = this.renderMatchesDesc.bind(this);\n        this.renderSearchElapsedTime = this.renderSearchElapsedTime.bind(this);\n    }\n\n    get pagesCount() {\n        const { result } = this.props;\n        if (result?.data) {\n            return Math.ceil(result.data.total / result.data.limit);\n        }\n        return 0;\n    }\n\n    get currentPage() {\n        const { result } = this.props;\n        if (result?.data) {\n            return result.data.offset / result.data.limit + 1;\n        }\n        return 0;\n    }\n\n    onPaginationClick(pageNum: number) {\n        const { query } = this.props;\n        this.props.querySearch({ ...query, pageNum });\n    }\n\n    onDetailClick(entity: TextItemResponse) {\n        if (entity.name !== undefined && entity.type !== undefined) {\n            switch (entity.type) {\n                case EntityType.Instance:\n                case EntityType.InstanceDomain:\n                    if (entity.indom) {\n                        this.props.openDetail(entity.indom, EntityType.InstanceDomain);\n                    }\n                    break;\n                case EntityType.Metric:\n                    this.props.openDetail(stripHtml(entity.name), EntityType.Metric);\n                    break;\n                default:\n            }\n        }\n    }\n\n    renderMatchesDesc() {\n        const { theme, result } = this.props;\n        if (!result?.data) {\n            return;\n        }\n        return (\n            <div className={searchPageMatchesDesc(theme)}>\n                <strong data-test=\"total\">{result.data.total}</strong> results\n            </div>\n        );\n    }\n\n    renderSearchElapsedTime() {\n        const { theme, result } = this.props;\n        if (!result?.data) {\n            return;\n        }\n        return (\n            <div className={searchPageElapsed(theme)}>\n                Elapsed:{' '}\n                <strong>\n                    <span data-test=\"elapsed\">{result.data.elapsed}</span>s\n                </strong>\n            </div>\n        );\n    }\n\n    renderResults() {\n        const {\n            props,\n            onPaginationClick,\n            onDetailClick,\n            pagesCount,\n            currentPage,\n            renderMatchesDesc,\n            renderSearchElapsedTime,\n        } = this;\n        const { result, query } = props;\n        const { data, status } = result;\n        switch (status) {\n            case FetchStatus.INIT: {\n                if (!data) {\n                    return <p>Enter query.</p>;\n                }\n            }\n            case FetchStatus.PENDING:\n                if (!data) {\n                    return <p>Searching&hellip;</p>;\n                }\n            case FetchStatus.SUCCESS: {\n                if (!data) {\n                    return <p>Incorrect server response.</p>;\n                }\n                if (data.results.length > 0) {\n                    return (\n                        <VerticalGroup spacing=\"lg\">\n                            <HorizontalGroup justify=\"space-between\" spacing=\"md\">\n                                {renderMatchesDesc()}\n                                {renderSearchElapsedTime()}\n                            </HorizontalGroup>\n                            <VerticalGroup spacing=\"lg\">\n                                {data.results.map((x, i) => (\n                                    <SearchResult\n                                        data-test={`search-result-${i}`}\n                                        key={i}\n                                        item={x}\n                                        openDetail={onDetailClick}\n                                    />\n                                ))}\n                            </VerticalGroup>\n                            {pagesCount > 1 && (\n                                <div className={paginationContainer}>\n                                    <Pagination\n                                        data-test=\"pagination\"\n                                        numberOfPages={pagesCount}\n                                        currentPage={currentPage}\n                                        onNavigate={onPaginationClick}\n                                    />\n                                </div>\n                            )}\n                        </VerticalGroup>\n                    );\n                }\n                return (\n                    <VerticalGroup spacing=\"lg\">\n                        <h4>Results for &quot;{query.pattern}&quot;:</h4>\n                        <p>There are no results.</p>\n                    </VerticalGroup>\n                );\n            }\n            case FetchStatus.ERROR: {\n                log.error('Error fetching search results:', result.error);\n                return <p>{result.error.toString()}</p>;\n            }\n        }\n        return;\n    }\n\n    render() {\n        const { renderResults, props } = this;\n        return (\n            <Loader data-test=\"loader\" loaded={props.result?.status !== FetchStatus.PENDING}>\n                {renderResults()}\n            </Loader>\n        );\n    }\n}\n\nexport default withTheme(connect(mapStateToProps, mapDispatchToProps)(SearchPage));\n","import { SetViewAction } from './actions';\nimport { ViewState } from './state';\nimport { SET_VIEW } from './types';\n\nexport type SetViewActionCreator = (view: ViewState) => SetViewAction;\n\nexport const setView: SetViewActionCreator = view => {\n    return { type: SET_VIEW, payload: view };\n};\n","import { css } from 'emotion';\n\nconst actionsContainer = css`\n    grid-area: actions;\n`;\n\nconst actionsBtnWithNoSpacing = css`\n    padding: 0;\n`;\n\nexport { actionsContainer, actionsBtnWithNoSpacing };\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport { AnyAction, bindActionCreators } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { Button, VerticalGroup } from '@grafana/ui';\nimport { RootState } from '../../store/reducer';\nimport { querySearch } from '../../store/slices/search/shared/actionCreators';\nimport { setView } from '../../store/slices/search/slices/view/actionCreators';\nimport { ViewState } from '../../store/slices/search/slices/view/state';\nimport { actionsBtnWithNoSpacing } from './styles';\n\nconst mapStateToProps = (state: RootState) => ({\n    query: state.search.query,\n    view: state.search.view,\n});\n\nconst mapDispatchToProps = (dispatch: ThunkDispatch<RootState, null, AnyAction>) =>\n    bindActionCreators({ querySearch, setView }, dispatch);\n\nexport type ActionsReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type ActionsReduxDispatchProps = ReturnType<typeof mapDispatchToProps>;\n\nexport type ActionsReduxProps = ActionsReduxStateProps & ActionsReduxDispatchProps;\n\nexport type ActionsProps = ActionsReduxProps;\n\nexport class Actions extends React.Component<ActionsProps, {}> {\n    constructor(props: ActionsProps) {\n        super(props);\n        this.queryLatestSearch = this.queryLatestSearch.bind(this);\n        this.openIndex = this.openIndex.bind(this);\n    }\n\n    get showBackToPatternBtn() {\n        const { query, view } = this.props;\n        return query.pattern && view === ViewState.Detail;\n    }\n\n    get showBackToIndexPageBtn() {\n        return this.props.view !== ViewState.Index;\n    }\n\n    openIndex() {\n        this.props.setView(ViewState.Index);\n    }\n\n    queryLatestSearch() {\n        const { query } = this.props;\n        this.props.querySearch(query);\n    }\n\n    render() {\n        const { openIndex, queryLatestSearch, showBackToPatternBtn, showBackToIndexPageBtn, props } = this;\n        const { query } = props;\n        return (\n            <VerticalGroup spacing=\"xs\">\n                {showBackToIndexPageBtn && (\n                    <Button\n                        fill=\"text\"\n                        size=\"md\"\n                        icon=\"book\"\n                        className={actionsBtnWithNoSpacing}\n                        onClick={openIndex}\n                        data-test=\"back-to-index\"\n                    >\n                        Back To Bookmarks &amp; Latest Searches\n                    </Button>\n                )}\n                {showBackToPatternBtn && (\n                    <Button\n                        fill=\"text\"\n                        size=\"md\"\n                        icon=\"arrow-left\"\n                        className={actionsBtnWithNoSpacing}\n                        onClick={queryLatestSearch}\n                        data-test=\"back-to-results\"\n                    >\n                        Back To Results for: <em>{query.pattern}</em>\n                    </Button>\n                )}\n            </VerticalGroup>\n        );\n    }\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(Actions);\n","import { css } from 'emotion';\nimport { GrafanaTheme } from '@grafana/data';\n\nconst asideContainer = css`\n    grid-area: aside;\n`;\n\nconst asideButton = css`\n    padding-left: 0;\n    padding-right: 0;\n`;\n\nconst asideButtonInactive = (theme: GrafanaTheme) => css`\n    color: ${theme.colors.text};\n    cursor: default;\n\n    &:hover {\n        color: ${theme.colors.text};\n    }\n`;\n\nexport { asideContainer, asideButton, asideButtonInactive };\n","import { cx } from 'emotion';\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { AnyAction, bindActionCreators } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { Button, Themeable, VerticalGroup, withTheme } from '@grafana/ui';\nimport { EntityType } from '../../../../common/services/pmsearch/types';\nimport BookmarkList from '../../components/BookmarkList/BookmarkList';\nimport Loader from '../../components/Loader/Loader';\nimport SearchHistoryList from '../../components/SearchHistoryList/SearchHistoryList';\nimport { RootState } from '../../store/reducer';\nimport { openDetail, querySearch } from '../../store/slices/search/shared/actionCreators';\nimport { FetchStatus } from '../../store/slices/search/shared/state';\nimport { clearBookmarks } from '../../store/slices/search/slices/bookmarks/actionCreators';\nimport { InstanceDomainDetailState, MetricDetailState } from '../../store/slices/search/slices/entity/state';\nimport { clearSearchHistory } from '../../store/slices/search/slices/history/actionCreators';\nimport { ViewState } from '../../store/slices/search/slices/view/state';\nimport { asideButton, asideButtonInactive, asideContainer } from './styles';\n\nconst mapStateToProps = (state: RootState) => ({\n    view: state.search.view,\n    entity: state.search.entity,\n    searchHistory: state.search.history,\n    bookmarks: state.search.bookmarks,\n});\n\nconst mapDispatchToProps = (dispatch: ThunkDispatch<RootState, null, AnyAction>) =>\n    bindActionCreators({ openDetail, querySearch, clearBookmarks, clearSearchHistory }, dispatch);\n\nexport type AsideReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type AsideReduxDispatchProps = ReturnType<typeof mapDispatchToProps>;\n\nexport type AsideReduxProps = AsideReduxStateProps & AsideReduxDispatchProps;\n\nexport type AsideProps = AsideReduxProps & Themeable;\n\nexport class Aside extends React.Component<AsideProps, {}> {\n    constructor(props: AsideProps) {\n        super(props);\n        this.renderContents = this.renderContents.bind(this);\n        this.renderMetricSiblings = this.renderMetricSiblings.bind(this);\n        this.renderIndomMetrics = this.renderIndomMetrics.bind(this);\n        this.onMetricClick = this.onMetricClick.bind(this);\n    }\n\n    onMetricClick(metricName: string) {\n        this.props.openDetail(metricName, EntityType.Metric);\n    }\n\n    renderMetricSiblings(metricDetail: MetricDetailState) {\n        const { onMetricClick, props } = this;\n        const { siblings, metric } = metricDetail;\n        switch (siblings?.status) {\n            case FetchStatus.INIT:\n                return;\n            case FetchStatus.PENDING:\n                return (\n                    <Loader loaded={false} data-test=\"loader\">\n                        <p>Loading metric siblings &hellip;</p>\n                    </Loader>\n                );\n            case FetchStatus.SUCCESS: {\n                if (!siblings) {\n                    return <p>Incorrect response from server.</p>;\n                }\n                if (siblings.data?.length === 0) {\n                    return;\n                }\n                return (\n                    <VerticalGroup spacing=\"md\">\n                        <h4>Series of similar metrics</h4>\n                        <VerticalGroup spacing=\"xs\">\n                            {siblings.data?.map((m, i) =>\n                                m === metric.data?.name ? (\n                                    <Button\n                                        key={i}\n                                        icon=\"info-circle\"\n                                        fill=\"text\"\n                                        className={cx(asideButton, asideButtonInactive(props.theme))}\n                                        data-test=\"sibling-link\"\n                                    >\n                                        {m}\n                                    </Button>\n                                ) : (\n                                    <Button\n                                        key={i}\n                                        onClick={() => onMetricClick(m)}\n                                        icon=\"arrow-right\"\n                                        fill=\"text\"\n                                        className={asideButton}\n                                        data-test=\"sibling-link\"\n                                    >\n                                        {m}\n                                    </Button>\n                                )\n                            )}\n                        </VerticalGroup>\n                    </VerticalGroup>\n                );\n            }\n            case FetchStatus.ERROR:\n                return <p data-test=\"error-loading\">Unable to fetch metric siblings.</p>;\n            default:\n                return;\n        }\n    }\n\n    renderIndomMetrics(indomDetail: InstanceDomainDetailState) {\n        const { onMetricClick } = this;\n        const { indom } = indomDetail;\n        switch (indom.status) {\n            case FetchStatus.INIT:\n                return;\n            case FetchStatus.PENDING:\n                return (\n                    <Loader loaded={false} data-test=\"loader\">\n                        <p>Loading metrics &hellip;</p>\n                    </Loader>\n                );\n            case FetchStatus.SUCCESS: {\n                if (!indom) {\n                    return <p>Incorrect response from server.</p>;\n                }\n                if (!indom.data?.indom) {\n                    return;\n                }\n                return (\n                    <VerticalGroup spacing=\"md\">\n                        <h4>Metrics in {indom.data.indom.name}</h4>\n                        <VerticalGroup spacing=\"xs\">\n                            {indom.data.metrics.map(\n                                (m, i) =>\n                                    m.name !== undefined && (\n                                        <Button\n                                            key={i}\n                                            onClick={() => onMetricClick(m.name as string)}\n                                            icon=\"arrow-right\"\n                                            fill=\"text\"\n                                            className={asideButton}\n                                            data-test=\"sibling-link\"\n                                            title={m.oneline}\n                                        >\n                                            {m.name}\n                                        </Button>\n                                    )\n                            )}\n                        </VerticalGroup>\n                    </VerticalGroup>\n                );\n            }\n            case FetchStatus.ERROR:\n                return <p data-test=\"error-loading\">Unable to fetch indom metrics.</p>;\n            default:\n                return;\n        }\n    }\n\n    renderContents() {\n        const { renderMetricSiblings, renderIndomMetrics, props } = this;\n        const { view, entity } = props;\n        switch (view) {\n            case ViewState.Detail: {\n                if (!entity) {\n                    return;\n                }\n                switch (entity.type) {\n                    case EntityType.Metric:\n                        return renderMetricSiblings(entity);\n                    case EntityType.InstanceDomain:\n                        return renderIndomMetrics(entity);\n                    default:\n                        return;\n                }\n            }\n            case ViewState.Search: {\n                return (\n                    <VerticalGroup spacing=\"lg\">\n                        <BookmarkList\n                            showClearBtn={false}\n                            multiCol={false}\n                            bookmarks={props.bookmarks}\n                            onBookmarkClick={props.openDetail}\n                            onClearBookmarksClick={props.clearBookmarks}\n                            data-test=\"bookmark-list\"\n                        />\n                        <SearchHistoryList\n                            showClearBtn={false}\n                            multiCol={false}\n                            searchHistory={props.searchHistory}\n                            onSearchHistoryClick={props.querySearch}\n                            onClearSearchHistoryClick={props.clearSearchHistory}\n                            data-test=\"search-history-list\"\n                        />\n                    </VerticalGroup>\n                );\n            }\n            default:\n                return;\n        }\n    }\n\n    render() {\n        const { renderContents } = this;\n        return <div className={asideContainer}>{renderContents()}</div>;\n    }\n}\n\nexport default withTheme(connect(mapStateToProps, mapDispatchToProps)(Aside));\n","import React from 'react';\nimport { Services } from '../services/services';\n\n// Ugly hack -> we never use do ServiceContext.Provider without populating context with value first.\nconst ServicesContext = React.createContext<Services>({} as Services);\n\nexport default ServicesContext;\n","import React from 'react';\nimport ServicesContext from '../../contexts/services';\nimport { Services } from '../../services/services';\n\nexport interface WithServicesProps {\n    services: Services;\n}\n\nconst withServices = <P extends WithServicesProps>(Component: React.ComponentType<P>) => {\n    return function WithServices(props: Pick<P, Exclude<keyof P, keyof WithServicesProps>>) {\n        // https://github.com/Microsoft/TypeScript/issues/28938\n        // since TS 3.2 spread erases type\n        return (\n            <ServicesContext.Consumer>\n                {services => <Component {...(props as P)} services={services} />}\n            </ServicesContext.Consumer>\n        );\n    };\n};\n\nexport default withServices;\n","import { css, cx } from 'emotion';\nimport { GrafanaTheme } from '@grafana/data';\n\nconst searchContainer = css`\n    display: flex;\n    grid-area: header;\n`;\n\nconst searchSubmitBtn = css`\n    margin-left: 16px;\n`;\n\nconst searchFormGroup = css`\n    display: flex;\n    width: 100%;\n`;\n\nconst searchBlockWrapper = css`\n    width: 100%;\n`;\n\nconst autosuggestWrapper = css`\n    position: relative;\n`;\n\nconst autosuggestIcon = (theme: GrafanaTheme) => css`\n    position: absolute;\n    top: 50%;\n    left: ${theme.spacing.md};\n    transform: translate(-50%, -50%);\n`;\n\nconst autosuggestContainer = (theme: GrafanaTheme) =>\n    css`\n        position: relative;\n        height: ${theme.spacing.formInputHeight}px;\n    `;\n\nconst autosuggestContainerOpen = css`\n    /* container class when dropdown opens */\n`;\n\nconst autosuggestInput = (theme: GrafanaTheme) => {\n    return cx(\n        css`\n            background: transparent;\n            height: ${theme.spacing.formInputHeight}px;\n            width: 100%;\n            padding: 0 ${theme.spacing.md} 0 28px;\n            border-style: solid;\n            border-width: 1px;\n            border-color: ${theme.colors.formInputBorder};\n            border-radius: ${theme.border.radius.sm};\n        `\n    );\n};\n\nconst autosuggestInputOpen = css``;\nconst autosuggestInputFocused = css``;\nconst autosuggestSuggestionsContainer = (theme: GrafanaTheme) => css`\n    display: none;\n    position: absolute;\n    top: calc(100% + 6px);\n    left: 0%;\n    width: 100%;\n    background: ${theme.colors.bodyBg};\n    z-index: 10;\n    padding: 0;\n    border-style: solid;\n    border-width: 1px;\n    border-color: ${theme.colors.formInputBorder};\n    border-radius: ${theme.border.radius.sm};\n`;\n\nconst autosuggestSuggestionsContainerOpen = css`\n    display: block !important;\n`;\nconst autosuggestSuggestionsList = css`\n    list-style-type: none;\n    margin: 0;\n    padding: 0;\n`;\nconst autosuggestSuggestion = (theme: GrafanaTheme) => css`\n    background: transparent;\n    line-height: ${theme.spacing.formInputHeight}px;\n    width: 100%;\n    padding: 0 ${theme.spacing.md};\n    cursor: pointer;\n    & + & {\n        border-top: 1px solid ${theme.colors.formInputBorder};\n    }\n`;\nconst autosuggestSuggestionFirst = css``;\nconst autosuggestSuggestionHighlighted = (theme: GrafanaTheme) => css`\n    color: ${theme.colors.textBlue};\n`;\nconst autosuggestSectionContainer = css``;\nconst autosuggestSectionContainerFirst = css``;\nconst autosuggestSectionTitle = css``;\n\nexport {\n    searchContainer,\n    searchSubmitBtn,\n    searchFormGroup,\n    searchBlockWrapper,\n    autosuggestWrapper,\n    autosuggestIcon,\n    autosuggestContainer,\n    autosuggestContainerOpen,\n    autosuggestInput,\n    autosuggestInputOpen,\n    autosuggestInputFocused,\n    autosuggestSuggestionsContainer,\n    autosuggestSuggestionsContainerOpen,\n    autosuggestSuggestionsList,\n    autosuggestSuggestion,\n    autosuggestSuggestionFirst,\n    autosuggestSuggestionHighlighted,\n    autosuggestSectionContainer,\n    autosuggestSectionContainerFirst,\n    autosuggestSectionTitle,\n};\n","import { getLogger } from 'loglevel';\nimport React from 'react';\nimport Autosuggest, {\n    ChangeEvent,\n    RenderSuggestionParams,\n    SuggestionSelectedEventData,\n    SuggestionsFetchRequestedParams,\n    Theme,\n} from 'react-autosuggest';\nimport { connect } from 'react-redux';\nimport { AnyAction, bindActionCreators } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { Button, Checkbox, HorizontalGroup, Icon, Themeable, VerticalGroup, withTheme } from '@grafana/ui';\nimport { AutocompleteSuggestion, SearchEntity } from '../../../../common/services/pmsearch/types';\nimport withServices, { WithServicesProps } from '../../components/withServices/withServices';\nimport Config from '../../config/config';\nimport { RootState } from '../../store/reducer';\nimport { querySearch } from '../../store/slices/search/shared/actionCreators';\nimport {\n    autosuggestContainer,\n    autosuggestContainerOpen,\n    autosuggestIcon,\n    autosuggestInput,\n    autosuggestInputFocused,\n    autosuggestInputOpen,\n    autosuggestSectionContainer,\n    autosuggestSectionContainerFirst,\n    autosuggestSectionTitle,\n    autosuggestSuggestion,\n    autosuggestSuggestionFirst,\n    autosuggestSuggestionHighlighted,\n    autosuggestSuggestionsContainer,\n    autosuggestSuggestionsContainerOpen,\n    autosuggestSuggestionsList,\n    autosuggestWrapper,\n    searchBlockWrapper,\n    searchContainer,\n    searchFormGroup,\n    searchSubmitBtn,\n} from './styles';\n\nconst log = getLogger('search/SearchFrom');\n\nconst mapStateToProps = (state: RootState) => ({\n    query: state.search.query,\n});\n\nconst mapDispatchToProps = (dispatch: ThunkDispatch<RootState, null, AnyAction>) =>\n    bindActionCreators({ querySearch }, dispatch);\n\nexport type SearchFormReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type SearchFormReduxDispatchProps = ReturnType<typeof mapDispatchToProps>;\n\nexport type SearchFormReduxProps = SearchFormReduxStateProps & SearchFormReduxDispatchProps;\n\nexport type SearchFormProps = SearchFormReduxProps & WithServicesProps & Themeable;\n\nexport interface SearchFormState {\n    valid: boolean;\n    query: {\n        pattern: string;\n        entityFlags: SearchEntity;\n    };\n    suggestions: AutocompleteSuggestion[];\n}\n\nexport class SearchForm extends React.Component<SearchFormProps, SearchFormState> {\n    state: SearchFormState = this.initialState;\n    autosuggestTheme: Theme;\n\n    get initialState() {\n        return {\n            valid: true,\n            query: {\n                pattern: '',\n                entityFlags: SearchEntity.All,\n            },\n            suggestions: [],\n        };\n    }\n\n    get metricFlag(): boolean {\n        return (this.state.query.entityFlags & (1 << 0)) > 0;\n    }\n\n    get instanceDomainsFlag(): boolean {\n        return (this.state.query.entityFlags & (1 << 1)) > 0;\n    }\n\n    get instancesFlag(): boolean {\n        return (this.state.query.entityFlags & (1 << 2)) > 0;\n    }\n\n    constructor(props: SearchFormProps) {\n        super(props);\n        this.state = { ...this.state, query: props.query };\n        this.autosuggestTheme = {\n            container: autosuggestContainer(props.theme),\n            containerOpen: autosuggestContainerOpen,\n            input: autosuggestInput(props.theme),\n            inputOpen: autosuggestInputOpen,\n            inputFocused: autosuggestInputFocused,\n            suggestionsContainer: autosuggestSuggestionsContainer(props.theme),\n            suggestionsContainerOpen: autosuggestSuggestionsContainerOpen,\n            suggestionsList: autosuggestSuggestionsList,\n            suggestion: autosuggestSuggestion(props.theme),\n            suggestionFirst: autosuggestSuggestionFirst,\n            suggestionHighlighted: autosuggestSuggestionHighlighted(props.theme),\n            sectionContainer: autosuggestSectionContainer,\n            sectionContainerFirst: autosuggestSectionContainerFirst,\n            sectionTitle: autosuggestSectionTitle,\n        };\n        this.onSubmit = this.onSubmit.bind(this);\n        this.onInputChange = this.onInputChange.bind(this);\n        this.onSuggestionsClearRequested = this.onSuggestionsClearRequested.bind(this);\n        this.onSuggestionsFetchRequested = this.onSuggestionsFetchRequested.bind(this);\n        this.getSuggestionValue = this.getSuggestionValue.bind(this);\n        this.onSuggestionSelected = this.onSuggestionSelected.bind(this);\n        this.allowSuggestions = this.allowSuggestions.bind(this);\n        this.renderSuggestion = this.renderSuggestion.bind(this);\n        this.renderSearchInput = this.renderSearchInput.bind(this);\n        this.setEntityFlag = this.setEntityFlag.bind(this);\n    }\n\n    componentDidUpdate(oldProps: SearchFormProps) {\n        const newProps = this.props;\n        if (\n            oldProps.query.pattern !== newProps.query.pattern ||\n            oldProps.query.entityFlags !== newProps.query.entityFlags\n        ) {\n            this.setState({\n                query: {\n                    pattern: newProps.query.pattern,\n                    entityFlags: newProps.query.entityFlags,\n                },\n                suggestions: [],\n            });\n        }\n    }\n\n    checkQueryValidity(): boolean {\n        const { query } = this.state;\n        const valid = query.pattern.trim().length !== 0 && query.entityFlags > 0;\n        this.setState({ valid });\n        return valid;\n    }\n\n    setEntityFlag(entity: SearchEntity) {\n        this.setState(\n            {\n                query: {\n                    ...this.state.query,\n                    entityFlags: this.state.query.entityFlags ^ entity,\n                },\n            },\n            this.checkQueryValidity\n        );\n    }\n\n    onSubmit(e: React.FormEvent<HTMLFormElement>) {\n        e.preventDefault();\n        const { query } = this.state;\n        if (this.checkQueryValidity()) {\n            this.props.querySearch({ ...query, pageNum: 1 });\n        }\n    }\n\n    onInputChange(event: React.FormEvent<HTMLElement>, params: ChangeEvent) {\n        this.setState(\n            {\n                query: {\n                    ...this.state.query,\n                    pattern: params.newValue,\n                },\n            },\n            this.checkQueryValidity\n        );\n    }\n\n    async onSuggestionsFetchRequested(request: SuggestionsFetchRequestedParams) {\n        try {\n            const suggestions = await this.props.services.searchService.autocomplete({ query: request.value });\n            this.setState({ suggestions });\n        } catch (error) {\n            log.error('Error fetching autocomplete results:', error);\n        }\n    }\n\n    onSuggestionsClearRequested(): void {\n        this.setState({\n            suggestions: [],\n        });\n    }\n\n    onSuggestionSelected(event: React.FormEvent<any>, data: SuggestionSelectedEventData<AutocompleteSuggestion>) {\n        this.setState({\n            query: {\n                ...this.state.query,\n                pattern: data.suggestion,\n            },\n        });\n    }\n\n    allowSuggestions(value: string): boolean {\n        if (Config.ALLOW_SEARCH_SUGGESTIONS) {\n            return value.length >= 2;\n        }\n        return false;\n    }\n\n    getSuggestionValue(suggestion: AutocompleteSuggestion): string {\n        return suggestion;\n    }\n\n    renderSuggestion(suggestion: AutocompleteSuggestion, params: RenderSuggestionParams): React.ReactNode {\n        return <div>{suggestion}</div>;\n    }\n\n    renderSearchInput() {\n        const {\n            onSuggestionsClearRequested,\n            onSuggestionsFetchRequested,\n            onSuggestionSelected,\n            getSuggestionValue,\n            renderSuggestion,\n            allowSuggestions,\n            onInputChange,\n            state,\n            autosuggestTheme,\n            props,\n        } = this;\n        const { suggestions, query } = state;\n        const searchInputProps = {\n            placeholder: 'Search Phrase',\n            value: query.pattern,\n            onChange: onInputChange,\n            'data-test': 'text-input',\n        };\n        return (\n            <div className={autosuggestWrapper}>\n                <div className={autosuggestIcon(props.theme)}>\n                    <Icon name=\"search\" />\n                </div>\n                <Autosuggest\n                    theme={autosuggestTheme}\n                    suggestions={suggestions}\n                    onSuggestionsFetchRequested={onSuggestionsFetchRequested}\n                    onSuggestionsClearRequested={onSuggestionsClearRequested}\n                    onSuggestionSelected={onSuggestionSelected}\n                    getSuggestionValue={getSuggestionValue}\n                    renderSuggestion={renderSuggestion}\n                    // Actually disables suggestions completely\n                    shouldRenderSuggestions={allowSuggestions}\n                    inputProps={searchInputProps}\n                    data-test=\"query-input\"\n                ></Autosuggest>\n            </div>\n        );\n    }\n\n    render() {\n        const { onSubmit, metricFlag, instancesFlag, instanceDomainsFlag, setEntityFlag, renderSearchInput, state } =\n            this;\n        return (\n            <form className={searchContainer} onSubmit={onSubmit} data-test=\"form\">\n                <VerticalGroup spacing=\"sm\">\n                    <div className={searchFormGroup}>\n                        <div className={searchBlockWrapper}>{renderSearchInput()}</div>\n                        <Button\n                            disabled={!state.valid}\n                            className={searchSubmitBtn}\n                            variant=\"primary\"\n                            size=\"md\"\n                            type=\"submit\"\n                            data-test=\"submit-button\"\n                        >\n                            Search\n                        </Button>\n                    </div>\n                    <div className={searchFormGroup}>\n                        <HorizontalGroup spacing=\"lg\">\n                            <Checkbox\n                                value={metricFlag}\n                                onChange={() => setEntityFlag(SearchEntity.Metrics)}\n                                label=\"Metrics\"\n                                data-test=\"metrics-toggle\"\n                            />\n                            <Checkbox\n                                value={instancesFlag}\n                                onChange={() => setEntityFlag(SearchEntity.Instances)}\n                                label=\"Instances\"\n                                data-test=\"instances-toggle\"\n                            />\n                            <Checkbox\n                                value={instanceDomainsFlag}\n                                onChange={() => setEntityFlag(SearchEntity.InstanceDomains)}\n                                label=\"Instance Domains\"\n                                data-test=\"indoms-toggle\"\n                            />\n                        </HorizontalGroup>\n                    </div>\n                </VerticalGroup>\n            </form>\n        );\n    }\n}\n\nexport default withTheme(withServices(connect(mapStateToProps, mapDispatchToProps)(SearchForm)));\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport DetailPage from './pages/Detail/DetailPage';\nimport IndexPage from './pages/Index/IndexPage';\nimport SearchPage from './pages/Search/SearchPage';\nimport Actions from './partials/Actions/Actions';\nimport Aside from './partials/Aside/Aside';\nimport SearchForm from './partials/SearchForm/SearchForm';\nimport { RootState } from './store/reducer';\nimport { ViewState } from './store/slices/search/slices/view/state';\nimport { appLayout } from './styles';\n\nconst mapStateToProps = (state: RootState) => ({\n    view: state.search.view,\n});\n\nexport type AppReduxStateProps = ReturnType<typeof mapStateToProps>;\n\nexport type AppProps = AppReduxStateProps;\n\nexport class App extends React.Component<AppProps, {}> {\n    constructor(props: AppProps) {\n        super(props);\n    }\n\n    renderPageComponent() {\n        const { view } = this.props;\n\n        switch (view) {\n            case ViewState.Detail:\n                return <DetailPage data-test=\"detail-page\" />;\n            case ViewState.Search:\n                return <SearchPage data-test=\"search-page\" />;\n            case ViewState.Index:\n                return <IndexPage data-test=\"index-page\" />;\n            default:\n                return;\n        }\n    }\n\n    render() {\n        return (\n            <div className={appLayout}>\n                <SearchForm data-test=\"search-form\" />\n                <Actions data-test=\"actions\" />\n                <Aside data-test=\"aside\" />\n                {this.renderPageComponent()}\n            </div>\n        );\n    }\n}\n\nexport default connect(mapStateToProps, {})(App);\n","import { has } from 'lodash';\n\nexport class GenericError extends Error {\n    err?: GenericError;\n\n    constructor(message: string, err?: GenericError) {\n        super(message);\n        this.err = err;\n        Object.setPrototypeOf(this, new.target.prototype);\n    }\n}\n\nexport class NetworkError extends GenericError {\n    data?: { message?: string };\n\n    constructor(error: any) {\n        let message;\n\n        /**\n         * error has the following attributes:\n         * mode      with server response       without server response\n         * browser   status, statusText, data   message, data: {message: 'unexpected error'}\n         * proxy     status, statusText, data   status, statusText, data: {error, response, message: 'Bad Gateway'}\n         */\n\n        if (error instanceof TypeError) {\n            // browser mode, no server response\n            message = `Network Error: ${error.message}`;\n        } else if (error.status === 502) {\n            // most likely proxy mode, no server response\n            // could also be pmproxy returning 502, but unlikely\n            message = `Network Error: ${error.statusText}`;\n        } else if (has(error, 'data.message')) {\n            // pmproxy returned an error message\n            message = error.data.message;\n        } else {\n            // pmproxy didn't return an error message\n            message = `HTTP Error ${error.status}: ${error.statusText}`;\n        }\n\n        super(message);\n        if ('data' in error) {\n            this.data = error.data;\n        }\n        Object.setPrototypeOf(this, new.target.prototype);\n    }\n}\n","import { isString } from 'lodash';\nimport rootLogger, { LogLevelDesc } from 'loglevel';\nimport logPrefixer from 'loglevel-plugin-prefix';\nimport { Required } from 'utility-types';\nimport { DataSourceInstanceSettings } from '@grafana/data';\nimport { BackendSrvRequest } from '@grafana/runtime';\nimport { GenericError } from './types/errors';\n\nrootLogger.setDefaultLevel('INFO');\nlogPrefixer.reg(rootLogger);\nlogPrefixer.apply(rootLogger, { template: '[%t] %l %n:' });\n\nexport function setGlobalLogLevel(level: LogLevelDesc) {\n    for (const logger of Object.values(rootLogger.getLoggers())) {\n        logger.setDefaultLevel(level);\n    }\n}\n\nexport type DefaultRequestOptions = Omit<BackendSrvRequest, 'url'>;\nexport function getRequestOptions(instanceSettings: DataSourceInstanceSettings): DefaultRequestOptions {\n    const defaultRequestOptions: Required<DefaultRequestOptions, 'headers'> = {\n        headers: {\n            'Content-Type': 'application/json',\n        },\n        showSuccessAlert: false,\n    };\n    if (instanceSettings.basicAuth || instanceSettings.withCredentials) {\n        defaultRequestOptions.withCredentials = true;\n    }\n    if (instanceSettings.basicAuth) {\n        defaultRequestOptions.headers['Authorization'] = instanceSettings.basicAuth;\n    }\n    return defaultRequestOptions;\n}\n\nexport class TimeoutError extends GenericError {\n    constructor(message?: string, err?: GenericError) {\n        super(message ?? 'request timeout', err);\n        Object.setPrototypeOf(this, new.target.prototype);\n    }\n}\n\nexport function timeout<T>(promise: Promise<T>, ms: number): Promise<T> {\n    return new Promise<T>(async (resolve, reject) => {\n        const timeout = setTimeout(() => {\n            reject(new TimeoutError());\n        }, ms);\n        try {\n            const result = await promise;\n            clearTimeout(timeout);\n            resolve(result);\n        } catch (e) {\n            clearTimeout(timeout);\n            reject(e);\n        }\n    });\n}\n\nexport function isBlank(str?: string) {\n    return !(str && isString(str) && str.trim().length > 0);\n}\n\nexport function interval_to_ms(str: string) {\n    if (str.length === 0) {\n        return 0;\n    }\n\n    const suffix = str.substring(str.length - 1);\n    if (suffix === 's') {\n        return parseInt(str.substring(0, str.length - 1), 10) * 1000;\n    } else if (suffix === 'm') {\n        return parseInt(str.substring(0, str.length - 1), 10) * 1000 * 60;\n    } else if (suffix === 'h') {\n        return parseInt(str.substring(0, str.length - 1), 10) * 1000 * 60 * 60;\n    } else {\n        return parseInt(str, 10) * 1000;\n    }\n}\n","import { defaults, has } from 'lodash';\nimport { firstValueFrom } from 'rxjs';\nimport { BackendSrv, BackendSrvRequest, FetchResponse } from '@grafana/runtime';\nimport { SearchEntityUtil } from '../../../components/search/utils/SearchEntityUtil';\nimport { NetworkError } from '../../types/errors';\nimport { DefaultRequestOptions, getRequestOptions, timeout, TimeoutError } from '../../utils';\nimport {\n    AutocompleteQueryParams,\n    AutocompleteResponse,\n    IndomQueryParams,\n    PmSearchApiConfig,\n    SearchNotAvailableError,\n    TextQueryParams,\n    TextResponse,\n} from './types';\n\nexport class PmSearchApiService {\n    defaultRequestOptions: DefaultRequestOptions;\n\n    constructor(private backendSrv: BackendSrv, private apiConfig: PmSearchApiConfig) {\n        this.defaultRequestOptions = getRequestOptions(apiConfig.dsInstanceSettings);\n    }\n\n    async request<T>(options: BackendSrvRequest): Promise<FetchResponse<T>> {\n        options = defaults({}, options, this.defaultRequestOptions);\n        try {\n            return await timeout(firstValueFrom(this.backendSrv.fetch<T>(options)), this.apiConfig.timeoutMs);\n        } catch (error) {\n            if (error instanceof TimeoutError) {\n                throw new TimeoutError(`Timeout while connecting to '${options.url}'`, error);\n            }\n            throw new NetworkError(error);\n        }\n    }\n\n    static isNoRecordResponse(response: FetchResponse<any>) {\n        return has(response, 'data.success') && response.data.success && Object.keys(response.data).length === 1;\n    }\n\n    async autocomplete(params: AutocompleteQueryParams): Promise<AutocompleteResponse> {\n        const request = {\n            url: `${this.apiConfig.baseUrl}/search/suggest`,\n            params,\n        };\n\n        try {\n            const response = await this.request<AutocompleteResponse>(request);\n            return response.data;\n        } catch (error: any) {\n            if (has(error, 'data.success') && !error.data.success && Object.keys(error.data).length === 1) {\n                throw new SearchNotAvailableError();\n            } else {\n                throw error;\n            }\n        }\n    }\n\n    async indom(params: IndomQueryParams): Promise<TextResponse | null> {\n        const request = {\n            url: `${this.apiConfig.baseUrl}/search/indom`,\n            params,\n        };\n\n        try {\n            const response = await this.request<TextResponse>(request);\n            if (PmSearchApiService.isNoRecordResponse(response)) {\n                return {\n                    elapsed: 0,\n                    total: 0,\n                    results: [],\n                    limit: params.limit ?? 0,\n                    offset: params.offset ?? 0,\n                };\n            } else {\n                return {\n                    ...response.data,\n                    limit: params.limit ?? 0,\n                    offset: params.offset ?? 0,\n                };\n            }\n        } catch (error: any) {\n            if (has(error, 'data.success') && !error.data.success && Object.keys(error.data).length === 1) {\n                throw new SearchNotAvailableError();\n            } else {\n                throw error;\n            }\n        }\n    }\n\n    async text(params: TextQueryParams): Promise<TextResponse | null> {\n        const request = {\n            url: `${this.apiConfig.baseUrl}/search/text`,\n            params: {\n                ...params,\n                ...(params.highlight ? { highlight: params.highlight.join(',') } : {}),\n                ...(params.field ? { field: params.field.join(',') } : {}),\n                ...(params.return ? { return: params.return.join(',') } : {}),\n                ...(params.type ? { type: SearchEntityUtil.toEntityTypes(params.type).join(',') } : {}),\n            },\n        };\n\n        try {\n            const response = await this.request<TextResponse>(request);\n            if (PmSearchApiService.isNoRecordResponse(response)) {\n                return {\n                    elapsed: 0,\n                    total: 0,\n                    results: [],\n                    limit: params.limit ?? 0,\n                    offset: params.offset ?? 0,\n                };\n            } else {\n                return {\n                    ...response.data,\n                    limit: params.limit ?? 0,\n                    offset: params.offset ?? 0,\n                };\n            }\n        } catch (error: any) {\n            if (has(error, 'data.success') && !error.data.success && Object.keys(error.data).length === 1) {\n                throw new SearchNotAvailableError();\n            } else {\n                throw error;\n            }\n        }\n    }\n}\n","import { defaults } from 'lodash';\nimport { firstValueFrom } from 'rxjs';\nimport { BackendSrv, BackendSrvRequest, FetchResponse } from '@grafana/runtime';\nimport { NetworkError } from '../../types/errors';\nimport { DefaultRequestOptions, getRequestOptions, timeout, TimeoutError } from '../../utils';\nimport {\n    PmSeriesApiConfig,\n    SeriesDescQueryParams,\n    SeriesDescResponse,\n    SeriesInstancesQueryParams,\n    SeriesInstancesResponse,\n    SeriesLabelsQueryParams,\n    SeriesLabelsResponse,\n    SeriesMetricsQueryParams,\n    SeriesMetricsResponse,\n    SeriesPingResponse,\n    SeriesQueryQueryParams,\n    SeriesQueryResponse,\n    SeriesValuesQueryParams,\n    SeriesValuesResponse,\n} from './types';\n\nexport class PmSeriesApiService {\n    defaultRequestOptions: DefaultRequestOptions;\n\n    constructor(private backendSrv: BackendSrv, private apiConfig: PmSeriesApiConfig) {\n        this.defaultRequestOptions = getRequestOptions(apiConfig.dsInstanceSettings);\n    }\n\n    async request<T>(options: BackendSrvRequest): Promise<FetchResponse<T>> {\n        options = defaults({}, options, this.defaultRequestOptions);\n        try {\n            return await timeout(firstValueFrom(this.backendSrv.fetch<T>(options)), this.apiConfig.timeoutMs);\n        } catch (error) {\n            if (error instanceof TimeoutError) {\n                throw new TimeoutError(`Timeout while connecting to '${options.url}'`, error);\n            }\n            throw new NetworkError(error);\n        }\n    }\n\n    async ping(url?: string): Promise<SeriesPingResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/ping`,\n        };\n        const response = await this.request<SeriesPingResponse>(request);\n        return response.data;\n    }\n\n    async descs(params: SeriesDescQueryParams, url?: string): Promise<SeriesDescResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/descs`,\n            params: {\n                ...params,\n                series: params.series.join(','),\n            },\n        };\n        const response = await this.request<SeriesDescResponse>(request);\n        return response.data;\n    }\n\n    async query(params: SeriesQueryQueryParams, url?: string): Promise<SeriesQueryResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/query`,\n            params,\n        };\n        const response = await this.request<SeriesQueryResponse>(request);\n        return response.data;\n    }\n\n    async metrics(params: SeriesMetricsQueryParams, url?: string): Promise<SeriesMetricsResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/metrics`,\n            params: {\n                ...params,\n                ...(params.series ? { series: params.series.join(',') } : {}),\n            },\n        };\n        const response = await this.request<SeriesMetricsResponse>(request);\n        return response.data;\n    }\n\n    async instances(params: SeriesInstancesQueryParams, url?: string): Promise<SeriesInstancesResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/instances`,\n            params: {\n                ...params,\n                ...(params.series ? { series: params.series.join(',') } : {}),\n            },\n        };\n        const response = await this.request<SeriesInstancesResponse>(request);\n        return response.data;\n    }\n\n    async labels(params: SeriesLabelsQueryParams, url?: string): Promise<SeriesLabelsResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/labels`,\n            params: {\n                ...params,\n                ...(params.series ? { series: params.series.join(',') } : {}),\n                ...(params.names ? { names: params.names.join(',') } : {}),\n            },\n        };\n        const response = await this.request<SeriesLabelsResponse>(request);\n        return response.data;\n    }\n\n    async values(params: SeriesValuesQueryParams, url?: string): Promise<SeriesValuesResponse> {\n        const request = {\n            url: `${url ?? this.apiConfig.baseUrl}/series/values`,\n            params: {\n                ...params,\n                ...(params.series ? { series: params.series.join(',') } : {}),\n            },\n        };\n        const response = await this.request<SeriesValuesResponse>(request);\n        return response.data;\n    }\n}\n","import _ from 'lodash';\nimport { PmSearchApiService } from '../../../common/services/pmsearch/PmSearchApiService';\nimport { SearchEntity, TextItemResponse, TextItemResponseField } from '../../../common/services/pmsearch/types';\nimport { PmSeriesApiService } from '../../../common/services/pmseries/PmSeriesApiService';\nimport { SeriesDescResponse, SeriesLabelsItemResponse } from '../../../common/services/pmseries/types';\nimport { IndomEntity } from '../models/entities/indom';\nimport { MetricEntity, MetricEntitySeries } from '../models/entities/metric';\n\ntype LabelsAndMeta = SeriesLabelsItemResponse[] & SeriesDescResponse;\n\nclass EntityService {\n    private searchService: PmSearchApiService;\n    private seriesService: PmSeriesApiService;\n\n    constructor(searchService: PmSearchApiService, seriesService: PmSeriesApiService) {\n        this.searchService = searchService;\n        this.seriesService = seriesService;\n    }\n\n    async metric(metric: string): Promise<MetricEntity> {\n        const { seriesService, searchService } = this;\n        if (metric === '') {\n            throw Error('Metric identifier cannot be empty.');\n        }\n        let entitySeriesTransformed: MetricEntitySeries[] = [];\n        const series: string[] = (await seriesService.query({ expr: `${metric}*` })) as string[];\n        if (series.length !== 0) {\n            const [metadata, labels] = await Promise.all([\n                seriesService.descs({ series }),\n                seriesService.labels({ series }),\n            ]);\n            const entitySeries: _.Dictionary<LabelsAndMeta> = _.groupBy(\n                _.merge(metadata, labels) as LabelsAndMeta,\n                'series'\n            );\n            entitySeriesTransformed = Object.keys(entitySeries).reduce<MetricEntitySeries[]>(\n                (prev: MetricEntitySeries[], val: string) => {\n                    return [\n                        ...prev,\n                        ...(entitySeries[val]\n                            ? [\n                                  {\n                                      series: val,\n                                      meta: _.omit(entitySeries[val][0], 'series', 'labels'),\n                                      ...(entitySeries[val][0].labels ? { labels: entitySeries[val][0].labels } : {}),\n                                  },\n                              ]\n                            : []),\n                    ];\n                },\n                []\n            );\n        }\n        const searchRecord = await searchService.text({\n            query: metric,\n            limit: 1,\n            offset: 0,\n            type: SearchEntity.Metrics,\n            field: [TextItemResponseField.Name],\n        });\n        if (searchRecord !== null && searchRecord.results.length > 0) {\n            const record = searchRecord.results[0];\n            if (record.name === metric) {\n                return {\n                    name: metric,\n                    series: entitySeriesTransformed,\n                    oneline: record.oneline,\n                    help: record.helptext,\n                };\n            }\n        }\n        return {\n            name: metric,\n            series: entitySeriesTransformed,\n        };\n    }\n\n    async indom(indom: string): Promise<IndomEntity | null> {\n        const { searchService } = this;\n        if (indom === '') {\n            throw Error('Indom identifier cannot be empty.');\n        }\n        const indomData = await searchService.indom({ query: indom, limit: 999 });\n        if (indomData === null) {\n            throw Error('Unable to find any data related to given indom identifier');\n        }\n        const groupedData = _.groupBy(indomData.results, x => x.type);\n        if (!groupedData.indom) {\n            throw Error('Unable to find any such indom');\n        }\n        const mapSparseData = (x: TextItemResponse): Omit<TextItemResponse, 'type' | 'indom'> => ({\n            name: x.name,\n            oneline: x.oneline,\n            helptext: x.helptext,\n        });\n        return {\n            indom: groupedData.indom.map(mapSparseData)[0],\n            metrics: groupedData.metric?.map(mapSparseData) ?? [],\n            instances: groupedData.instance?.map(mapSparseData) ?? [],\n        };\n    }\n\n    async relatedMetricNames(metricName: string, depth: number): Promise<string[]> {\n        const { seriesService } = this;\n        const metricNameSegments = metricName.split('.');\n        if (!(depth - 1 < metricNameSegments.length) || depth < 1) {\n            return [];\n        }\n        const parents = metricNameSegments.slice(0, depth * -1);\n        const data = (await seriesService.metrics({ match: `${parents.join('.')}*` })) as string[];\n        return data.sort();\n    }\n}\n\nexport default EntityService;\n","import { getBackendSrv } from '@grafana/runtime';\nimport { PmSearchApiService } from '../../../common/services/pmsearch/PmSearchApiService';\nimport { PmSeriesApiService } from '../../../common/services/pmseries/PmSeriesApiService';\nimport { GenericError } from '../../../common/types/errors';\nimport redisPluginConfig from '../../../datasources/redis/plugin.json';\nimport Config from '../config/config';\nimport EntityService from './EntityDetailService';\n\nexport interface Services {\n    searchService: PmSearchApiService;\n    seriesService: PmSeriesApiService;\n    entityService: EntityService;\n}\n\nasync function getDatasourceSettings() {\n    const datasources = await getBackendSrv().get('/api/datasources');\n    const redisDatasource = datasources.find((ds: any) => ds.type === redisPluginConfig.id);\n    if (!redisDatasource) {\n        throw new GenericError(\n            `Could not find any PCP Redis data source. Please create a PCP Redis data source before using the search feature.`\n        );\n    }\n    return redisDatasource;\n}\n\nexport const initServices = async (): Promise<Services> => {\n    const settings = await getDatasourceSettings();\n    const searchService = new PmSearchApiService(getBackendSrv(), {\n        dsInstanceSettings: settings,\n        baseUrl: settings.url!,\n        timeoutMs: Config.REQUEST_TIMEOUT,\n    });\n    const seriesService = new PmSeriesApiService(getBackendSrv(), {\n        dsInstanceSettings: settings,\n        baseUrl: settings.url!,\n        timeoutMs: Config.REQUEST_TIMEOUT,\n    });\n    const entityService = new EntityService(searchService, seriesService);\n    return { searchService, seriesService, entityService };\n};\n","export var KEY_PREFIX = 'persist:';\nexport var FLUSH = 'persist/FLUSH';\nexport var REHYDRATE = 'persist/REHYDRATE';\nexport var PAUSE = 'persist/PAUSE';\nexport var PERSIST = 'persist/PERSIST';\nexport var PURGE = 'persist/PURGE';\nexport var REGISTER = 'persist/REGISTER';\nexport var DEFAULT_VERSION = -1;","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/*\n  autoMergeLevel1: \n    - merges 1 level of substate\n    - skips substate if already modified\n*/\nexport default function autoMergeLevel1(inboundState, originalState, reducedState, _ref) {\n  var debug = _ref.debug;\n\n  var newState = _objectSpread({}, reducedState); // only rehydrate if inboundState exists and is an object\n\n\n  if (inboundState && _typeof(inboundState) === 'object') {\n    Object.keys(inboundState).forEach(function (key) {\n      // ignore _persist data\n      if (key === '_persist') return; // if reducer modifies substate, skip auto rehydration\n\n      if (originalState[key] !== reducedState[key]) {\n        if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist/stateReconciler: sub state for key `%s` modified, skipping.', key);\n        return;\n      } // otherwise hard set the new value\n\n\n      newState[key] = inboundState[key];\n    });\n  }\n\n  if (process.env.NODE_ENV !== 'production' && debug && inboundState && _typeof(inboundState) === 'object') console.log(\"redux-persist/stateReconciler: rehydrated keys '\".concat(Object.keys(inboundState).join(', '), \"'\"));\n  return newState;\n}","import { KEY_PREFIX, REHYDRATE } from './constants';\n// @TODO remove once flow < 0.63 support is no longer required.\nexport default function createPersistoid(config) {\n  // defaults\n  var blacklist = config.blacklist || null;\n  var whitelist = config.whitelist || null;\n  var transforms = config.transforms || [];\n  var throttle = config.throttle || 0;\n  var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n  var storage = config.storage;\n  var serialize;\n\n  if (config.serialize === false) {\n    serialize = function serialize(x) {\n      return x;\n    };\n  } else if (typeof config.serialize === 'function') {\n    serialize = config.serialize;\n  } else {\n    serialize = defaultSerialize;\n  }\n\n  var writeFailHandler = config.writeFailHandler || null; // initialize stateful values\n\n  var lastState = {};\n  var stagedState = {};\n  var keysToProcess = [];\n  var timeIterator = null;\n  var writePromise = null;\n\n  var update = function update(state) {\n    // add any changed keys to the queue\n    Object.keys(state).forEach(function (key) {\n      if (!passWhitelistBlacklist(key)) return; // is keyspace ignored? noop\n\n      if (lastState[key] === state[key]) return; // value unchanged? noop\n\n      if (keysToProcess.indexOf(key) !== -1) return; // is key already queued? noop\n\n      keysToProcess.push(key); // add key to queue\n    }); //if any key is missing in the new state which was present in the lastState,\n    //add it for processing too\n\n    Object.keys(lastState).forEach(function (key) {\n      if (state[key] === undefined && passWhitelistBlacklist(key) && keysToProcess.indexOf(key) === -1 && lastState[key] !== undefined) {\n        keysToProcess.push(key);\n      }\n    }); // start the time iterator if not running (read: throttle)\n\n    if (timeIterator === null) {\n      timeIterator = setInterval(processNextKey, throttle);\n    }\n\n    lastState = state;\n  };\n\n  function processNextKey() {\n    if (keysToProcess.length === 0) {\n      if (timeIterator) clearInterval(timeIterator);\n      timeIterator = null;\n      return;\n    }\n\n    var key = keysToProcess.shift();\n    var endState = transforms.reduce(function (subState, transformer) {\n      return transformer.in(subState, key, lastState);\n    }, lastState[key]);\n\n    if (endState !== undefined) {\n      try {\n        stagedState[key] = serialize(endState);\n      } catch (err) {\n        console.error('redux-persist/createPersistoid: error serializing state', err);\n      }\n    } else {\n      //if the endState is undefined, no need to persist the existing serialized content\n      delete stagedState[key];\n    }\n\n    if (keysToProcess.length === 0) {\n      writeStagedState();\n    }\n  }\n\n  function writeStagedState() {\n    // cleanup any removed keys just before write.\n    Object.keys(stagedState).forEach(function (key) {\n      if (lastState[key] === undefined) {\n        delete stagedState[key];\n      }\n    });\n    writePromise = storage.setItem(storageKey, serialize(stagedState)).catch(onWriteFail);\n  }\n\n  function passWhitelistBlacklist(key) {\n    if (whitelist && whitelist.indexOf(key) === -1 && key !== '_persist') return false;\n    if (blacklist && blacklist.indexOf(key) !== -1) return false;\n    return true;\n  }\n\n  function onWriteFail(err) {\n    // @TODO add fail handlers (typically storage full)\n    if (writeFailHandler) writeFailHandler(err);\n\n    if (err && process.env.NODE_ENV !== 'production') {\n      console.error('Error storing data', err);\n    }\n  }\n\n  var flush = function flush() {\n    while (keysToProcess.length !== 0) {\n      processNextKey();\n    }\n\n    return writePromise || Promise.resolve();\n  }; // return `persistoid`\n\n\n  return {\n    update: update,\n    flush: flush\n  };\n} // @NOTE in the future this may be exposed via config\n\nfunction defaultSerialize(data) {\n  return JSON.stringify(data);\n}","import { KEY_PREFIX } from './constants';\nexport default function getStoredState(config) {\n  var transforms = config.transforms || [];\n  var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n  var storage = config.storage;\n  var debug = config.debug;\n  var deserialize;\n\n  if (config.deserialize === false) {\n    deserialize = function deserialize(x) {\n      return x;\n    };\n  } else if (typeof config.deserialize === 'function') {\n    deserialize = config.deserialize;\n  } else {\n    deserialize = defaultDeserialize;\n  }\n\n  return storage.getItem(storageKey).then(function (serialized) {\n    if (!serialized) return undefined;else {\n      try {\n        var state = {};\n        var rawState = deserialize(serialized);\n        Object.keys(rawState).forEach(function (key) {\n          state[key] = transforms.reduceRight(function (subState, transformer) {\n            return transformer.out(subState, key, rawState);\n          }, deserialize(rawState[key]));\n        });\n        return state;\n      } catch (err) {\n        if (process.env.NODE_ENV !== 'production' && debug) console.log(\"redux-persist/getStoredState: Error restoring data \".concat(serialized), err);\n        throw err;\n      }\n    }\n  });\n}\n\nfunction defaultDeserialize(serial) {\n  return JSON.parse(serial);\n}","import { KEY_PREFIX } from './constants';\nexport default function purgeStoredState(config) {\n  var storage = config.storage;\n  var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n  return storage.removeItem(storageKey, warnIfRemoveError);\n}\n\nfunction warnIfRemoveError(err) {\n  if (err && process.env.NODE_ENV !== 'production') {\n    console.error('redux-persist/purgeStoredState: Error purging data stored state', err);\n  }\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { FLUSH, PAUSE, PERSIST, PURGE, REHYDRATE, DEFAULT_VERSION } from './constants';\nimport autoMergeLevel1 from './stateReconciler/autoMergeLevel1';\nimport createPersistoid from './createPersistoid';\nimport defaultGetStoredState from './getStoredState';\nimport purgeStoredState from './purgeStoredState';\nvar DEFAULT_TIMEOUT = 5000;\n/*\n  @TODO add validation / handling for:\n  - persisting a reducer which has nested _persist\n  - handling actions that fire before reydrate is called\n*/\n\nexport default function persistReducer(config, baseReducer) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (!config) throw new Error('config is required for persistReducer');\n    if (!config.key) throw new Error('key is required in persistor config');\n    if (!config.storage) throw new Error(\"redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`\");\n  }\n\n  var version = config.version !== undefined ? config.version : DEFAULT_VERSION;\n  var debug = config.debug || false;\n  var stateReconciler = config.stateReconciler === undefined ? autoMergeLevel1 : config.stateReconciler;\n  var getStoredState = config.getStoredState || defaultGetStoredState;\n  var timeout = config.timeout !== undefined ? config.timeout : DEFAULT_TIMEOUT;\n  var _persistoid = null;\n  var _purge = false;\n  var _paused = true;\n\n  var conditionalUpdate = function conditionalUpdate(state) {\n    // update the persistoid only if we are rehydrated and not paused\n    state._persist.rehydrated && _persistoid && !_paused && _persistoid.update(state);\n    return state;\n  };\n\n  return function (state, action) {\n    var _ref = state || {},\n        _persist = _ref._persist,\n        rest = _objectWithoutProperties(_ref, [\"_persist\"]); // $FlowIgnore need to update State type\n\n\n    var restState = rest;\n\n    if (action.type === PERSIST) {\n      var _sealed = false;\n\n      var _rehydrate = function _rehydrate(payload, err) {\n        // dev warning if we are already sealed\n        if (process.env.NODE_ENV !== 'production' && _sealed) console.error(\"redux-persist: rehydrate for \\\"\".concat(config.key, \"\\\" called after timeout.\"), payload, err); // only rehydrate if we are not already sealed\n\n        if (!_sealed) {\n          action.rehydrate(config.key, payload, err);\n          _sealed = true;\n        }\n      };\n\n      timeout && setTimeout(function () {\n        !_sealed && _rehydrate(undefined, new Error(\"redux-persist: persist timed out for persist key \\\"\".concat(config.key, \"\\\"\")));\n      }, timeout); // @NOTE PERSIST resumes if paused.\n\n      _paused = false; // @NOTE only ever create persistoid once, ensure we call it at least once, even if _persist has already been set\n\n      if (!_persistoid) _persistoid = createPersistoid(config); // @NOTE PERSIST can be called multiple times, noop after the first\n\n      if (_persist) {\n        // We still need to call the base reducer because there might be nested\n        // uses of persistReducer which need to be aware of the PERSIST action\n        return _objectSpread({}, baseReducer(restState, action), {\n          _persist: _persist\n        });\n      }\n\n      if (typeof action.rehydrate !== 'function' || typeof action.register !== 'function') throw new Error('redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.');\n      action.register(config.key);\n      getStoredState(config).then(function (restoredState) {\n        var migrate = config.migrate || function (s, v) {\n          return Promise.resolve(s);\n        };\n\n        migrate(restoredState, version).then(function (migratedState) {\n          _rehydrate(migratedState);\n        }, function (migrateErr) {\n          if (process.env.NODE_ENV !== 'production' && migrateErr) console.error('redux-persist: migration error', migrateErr);\n\n          _rehydrate(undefined, migrateErr);\n        });\n      }, function (err) {\n        _rehydrate(undefined, err);\n      });\n      return _objectSpread({}, baseReducer(restState, action), {\n        _persist: {\n          version: version,\n          rehydrated: false\n        }\n      });\n    } else if (action.type === PURGE) {\n      _purge = true;\n      action.result(purgeStoredState(config));\n      return _objectSpread({}, baseReducer(restState, action), {\n        _persist: _persist\n      });\n    } else if (action.type === FLUSH) {\n      action.result(_persistoid && _persistoid.flush());\n      return _objectSpread({}, baseReducer(restState, action), {\n        _persist: _persist\n      });\n    } else if (action.type === PAUSE) {\n      _paused = true;\n    } else if (action.type === REHYDRATE) {\n      // noop on restState if purging\n      if (_purge) return _objectSpread({}, restState, {\n        _persist: _objectSpread({}, _persist, {\n          rehydrated: true\n        }) // @NOTE if key does not match, will continue to default else below\n\n      });\n\n      if (action.key === config.key) {\n        var reducedState = baseReducer(restState, action);\n        var inboundState = action.payload; // only reconcile state if stateReconciler and inboundState are both defined\n\n        var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState;\n\n        var _newState = _objectSpread({}, reconciledRest, {\n          _persist: _objectSpread({}, _persist, {\n            rehydrated: true\n          })\n        });\n\n        return conditionalUpdate(_newState);\n      }\n    } // if we have not already handled PERSIST, straight passthrough\n\n\n    if (!_persist) return baseReducer(state, action); // run base reducer:\n    // is state modified ? return original : return updated\n\n    var newState = baseReducer(restState, action);\n    if (newState === restState) return state;\n    return conditionalUpdate(_objectSpread({}, newState, {\n      _persist: _persist\n    }));\n  };\n}","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { createStore } from 'redux';\nimport { FLUSH, PAUSE, PERSIST, PURGE, REGISTER, REHYDRATE } from './constants';\nvar initialState = {\n  registry: [],\n  bootstrapped: false\n};\n\nvar persistorReducer = function persistorReducer() {\n  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n  var action = arguments.length > 1 ? arguments[1] : undefined;\n\n  switch (action.type) {\n    case REGISTER:\n      return _objectSpread({}, state, {\n        registry: [].concat(_toConsumableArray(state.registry), [action.key])\n      });\n\n    case REHYDRATE:\n      var firstIndex = state.registry.indexOf(action.key);\n\n      var registry = _toConsumableArray(state.registry);\n\n      registry.splice(firstIndex, 1);\n      return _objectSpread({}, state, {\n        registry: registry,\n        bootstrapped: registry.length === 0\n      });\n\n    default:\n      return state;\n  }\n};\n\nexport default function persistStore(store, options, cb) {\n  // help catch incorrect usage of passing PersistConfig in as PersistorOptions\n  if (process.env.NODE_ENV !== 'production') {\n    var optionsToTest = options || {};\n    var bannedKeys = ['blacklist', 'whitelist', 'transforms', 'storage', 'keyPrefix', 'migrate'];\n    bannedKeys.forEach(function (k) {\n      if (!!optionsToTest[k]) console.error(\"redux-persist: invalid option passed to persistStore: \\\"\".concat(k, \"\\\". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.\"));\n    });\n  }\n\n  var boostrappedCb = cb || false;\n\n  var _pStore = createStore(persistorReducer, initialState, options && options.enhancer ? options.enhancer : undefined);\n\n  var register = function register(key) {\n    _pStore.dispatch({\n      type: REGISTER,\n      key: key\n    });\n  };\n\n  var rehydrate = function rehydrate(key, payload, err) {\n    var rehydrateAction = {\n      type: REHYDRATE,\n      payload: payload,\n      err: err,\n      key: key // dispatch to `store` to rehydrate and `persistor` to track result\n\n    };\n    store.dispatch(rehydrateAction);\n\n    _pStore.dispatch(rehydrateAction);\n\n    if (boostrappedCb && persistor.getState().bootstrapped) {\n      boostrappedCb();\n      boostrappedCb = false;\n    }\n  };\n\n  var persistor = _objectSpread({}, _pStore, {\n    purge: function purge() {\n      var results = [];\n      store.dispatch({\n        type: PURGE,\n        result: function result(purgeResult) {\n          results.push(purgeResult);\n        }\n      });\n      return Promise.all(results);\n    },\n    flush: function flush() {\n      var results = [];\n      store.dispatch({\n        type: FLUSH,\n        result: function result(flushResult) {\n          results.push(flushResult);\n        }\n      });\n      return Promise.all(results);\n    },\n    pause: function pause() {\n      store.dispatch({\n        type: PAUSE\n      });\n    },\n    persist: function persist() {\n      store.dispatch({\n        type: PERSIST,\n        register: register,\n        rehydrate: rehydrate\n      });\n    }\n  });\n\n  if (!(options && options.manualPersist)) {\n    persistor.persist();\n  }\n\n  return persistor;\n}","/** A function that accepts a potential \"extra argument\" value to be injected later,\r\n * and returns an instance of the thunk middleware that uses that value\r\n */\nfunction createThunkMiddleware(extraArgument) {\n  // Standard Redux middleware definition pattern:\n  // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware\n  var middleware = function middleware(_ref) {\n    var dispatch = _ref.dispatch,\n        getState = _ref.getState;\n    return function (next) {\n      return function (action) {\n        // The thunk middleware looks for any functions that were passed to `store.dispatch`.\n        // If this \"action\" is really a function, call it and return the result.\n        if (typeof action === 'function') {\n          // Inject the store's `dispatch` and `getState` methods, as well as any \"extra arg\"\n          return action(dispatch, getState, extraArgument);\n        } // Otherwise, pass the action down the middleware chain as usual\n\n\n        return next(action);\n      };\n    };\n  };\n\n  return middleware;\n}\n\nvar thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version\n// with whatever \"extra arg\" they want to inject into their thunks\n\nthunk.withExtraArgument = createThunkMiddleware;\nexport default thunk;","import { Reducer } from 'redux';\nimport Config from '../../../../../config/config';\nimport { HistoryAction } from './actions';\nimport { HistoryState, initialHistory } from './state';\nimport { ADD_HISTORY, CLEAR_HISTORY } from './types';\n\nconst historyReducer: Reducer<HistoryState, HistoryAction> = (state, action) => {\n    if (state === undefined) {\n        return initialHistory();\n    }\n    switch (action.type) {\n        case ADD_HISTORY: {\n            const newState = [action.payload, ...state];\n            if (newState.length > Config.MAX_SEARCH_SHORTCUTS) {\n                newState.pop();\n            }\n            return newState;\n        }\n        case CLEAR_HISTORY:\n            return [];\n        default:\n            return state;\n    }\n};\n\nexport { historyReducer };\n","import { SearchEntity } from '../../../../../../../common/services/pmsearch/types';\nimport { SearchQuery } from '../../shared/state';\n\nexport type QueryState = SearchQuery;\n\nexport const initialQuery = (): SearchQuery => ({\n    pattern: '',\n    entityFlags: SearchEntity.All,\n    pageNum: 1,\n});\n\nexport const initialState: SearchQuery = initialQuery();\n","import { TextResponse } from '../../../../../../../common/services/pmsearch/types';\nimport { FetchStatus, TrackableStatus } from '../../shared/state';\n\nexport interface ResultData {\n    data: TextResponse | null;\n    error?: any;\n}\n\nexport type ResultDataState = ResultData & TrackableStatus;\n\nexport type ResultState = ResultDataState;\n\nexport const initialState: ResultState = { status: FetchStatus.INIT, data: null };\n","import { Reducer } from 'redux';\nimport { FetchStatus } from '../../shared/state';\nimport { ResultAction } from './actions';\nimport { initialState, ResultState } from './state';\nimport { LOAD_RESULT_ERROR, LOAD_RESULT_INIT, LOAD_RESULT_PENDING, LOAD_RESULT_SUCCESS } from './types';\n\nconst resultReducer: Reducer<ResultState, ResultAction> = (state, action) => {\n    if (state === undefined) {\n        return initialState;\n    }\n    switch (action.type) {\n        case LOAD_RESULT_INIT:\n            // Preserve old results while new results started fetching\n            return {\n                ...(state ?? { data: null }),\n                status: FetchStatus.INIT,\n            };\n        case LOAD_RESULT_PENDING:\n            if (state) {\n                return {\n                    ...state,\n                    status: FetchStatus.PENDING,\n                };\n            }\n            break;\n        case LOAD_RESULT_SUCCESS:\n            if (state) {\n                return {\n                    status: FetchStatus.SUCCESS,\n                    data: action.payload.data,\n                };\n            }\n            break;\n        case LOAD_RESULT_ERROR:\n            if (state) {\n                return {\n                    status: FetchStatus.ERROR,\n                    data: null,\n                    error: action.error,\n                };\n            }\n            break;\n        default:\n            return state;\n    }\n    return state;\n};\n\nexport { resultReducer };\n","import { combineReducers } from 'redux';\nimport { persistReducer } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\nimport { bookmarksReducer } from './slices/bookmarks/reducer';\nimport { entityReducer } from './slices/entity/reducer';\nimport { historyReducer } from './slices/history/reducer';\nimport { queryReducer } from './slices/query/reducer';\nimport { resultReducer } from './slices/result/reducer';\nimport { viewReducer } from './slices/view/reducer';\n\nconst persistanceConfig = {\n    key: 'grafana-pcp-app:search',\n    storage: storage,\n    whitelist: ['bookmarks', 'history'],\n};\n\nconst searchReducer = persistReducer(\n    persistanceConfig,\n    combineReducers({\n        bookmarks: bookmarksReducer,\n        view: viewReducer,\n        entity: entityReducer,\n        query: queryReducer,\n        history: historyReducer,\n        result: resultReducer,\n    })\n);\n\nexport { searchReducer };\n","import { Reducer } from 'redux';\nimport { BookmarksAction } from './actions';\nimport { BookmarksState, initialBookmarks } from './state';\nimport { ADD_BOOKMARK, CLEAR_BOOKMARKS, REMOVE_BOOKMARK } from './types';\n\nconst bookmarksReducer: Reducer<BookmarksState, BookmarksAction> = (state, action) => {\n    if (state === undefined) {\n        return initialBookmarks();\n    }\n    switch (action.type) {\n        case ADD_BOOKMARK:\n            return [action.payload, ...state];\n        case REMOVE_BOOKMARK:\n            return state.filter(x => x.id !== action.payload.id && x.type !== action.payload.type);\n        case CLEAR_BOOKMARKS:\n            return [];\n        default:\n            return state;\n    }\n};\n\nexport { bookmarksReducer };\n","import { EntityType } from '../../../../../../../common/services/pmsearch/types';\n\nexport interface BookmarkItem {\n    // Is also human readable name\n    id: string;\n    type: EntityType;\n}\n\nexport type BookmarksState = BookmarkItem[];\n\nexport const initialBookmarks = (): BookmarksState => [];\n","import { Reducer } from 'redux';\nimport { ViewAction } from './actions';\nimport { initialView, ViewState } from './state';\nimport { SET_VIEW } from './types';\n\nconst viewReducer: Reducer<ViewState, ViewAction> = (state, action) => {\n    if (state === undefined) {\n        return initialView();\n    }\n    switch (action.type) {\n        case SET_VIEW:\n            return action.payload;\n        default:\n            return state;\n    }\n};\n\nexport { viewReducer };\n","import { Reducer } from 'redux';\nimport { EntityType } from '../../../../../../../common/services/pmsearch/types';\nimport { FetchStatus } from '../../shared/state';\nimport { EntityAction } from './actions';\nimport { EntityState, initialEntity } from './state';\nimport {\n    LOAD_INDOM_ERROR,\n    LOAD_INDOM_INIT,\n    LOAD_INDOM_PENDING,\n    LOAD_INDOM_SUCCESS,\n    LOAD_METRIC_ERROR,\n    LOAD_METRIC_INIT,\n    LOAD_METRIC_PENDING,\n    LOAD_METRIC_SIBLINGS_ERROR,\n    LOAD_METRIC_SIBLINGS_INIT,\n    LOAD_METRIC_SIBLINGS_PENDING,\n    LOAD_METRIC_SIBLINGS_SUCCESS,\n    LOAD_METRIC_SUCCESS,\n} from './types';\n\nconst entityReducer: Reducer<EntityState, EntityAction> = (state, action) => {\n    if (state === undefined) {\n        return initialEntity();\n    }\n    switch (action.type) {\n        case LOAD_METRIC_INIT:\n            return {\n                type: EntityType.Metric,\n                metric: {\n                    status: FetchStatus.INIT,\n                    data: null,\n                },\n            };\n        case LOAD_METRIC_PENDING:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    metric: {\n                        ...state.metric,\n                        status: FetchStatus.PENDING,\n                    },\n                };\n            }\n            break;\n        case LOAD_METRIC_SUCCESS:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    metric: {\n                        status: FetchStatus.SUCCESS,\n                        data: action.payload.data,\n                    },\n                };\n            }\n            break;\n        case LOAD_METRIC_ERROR:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    metric: {\n                        status: FetchStatus.ERROR,\n                        data: null,\n                    },\n                };\n            }\n            break;\n        case LOAD_METRIC_SIBLINGS_INIT:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    siblings: {\n                        status: FetchStatus.INIT,\n                        data: null,\n                    },\n                };\n            }\n            return state;\n        case LOAD_METRIC_SIBLINGS_PENDING:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    siblings: {\n                        status: FetchStatus.PENDING,\n                        data: null,\n                    },\n                };\n            }\n            return state;\n        case LOAD_METRIC_SIBLINGS_SUCCESS:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    siblings: {\n                        status: FetchStatus.SUCCESS,\n                        data: action.payload.data,\n                    },\n                };\n            }\n            return state;\n        case LOAD_METRIC_SIBLINGS_ERROR:\n            if (state?.type === EntityType.Metric) {\n                return {\n                    ...state,\n                    siblings: {\n                        status: FetchStatus.ERROR,\n                        data: null,\n                    },\n                };\n            }\n            return state;\n        case LOAD_INDOM_INIT:\n            return {\n                type: EntityType.InstanceDomain,\n                indom: {\n                    status: FetchStatus.INIT,\n                    data: null,\n                },\n            };\n        case LOAD_INDOM_PENDING:\n            if (state?.type === EntityType.InstanceDomain) {\n                return {\n                    ...state,\n                    indom: {\n                        ...state.indom,\n                        status: FetchStatus.PENDING,\n                    },\n                };\n            }\n            break;\n        case LOAD_INDOM_SUCCESS:\n            if (state?.type === EntityType.InstanceDomain) {\n                return {\n                    ...state,\n                    indom: {\n                        status: FetchStatus.SUCCESS,\n                        data: action.payload.data,\n                    },\n                };\n            }\n            break;\n        case LOAD_INDOM_ERROR:\n            if (state?.type === EntityType.InstanceDomain) {\n                return {\n                    ...state,\n                    indom: {\n                        status: FetchStatus.ERROR,\n                        data: null,\n                    },\n                };\n            }\n            break;\n    }\n    return state;\n};\n\nexport { entityReducer };\n","import { EntityType } from '../../../../../../../common/services/pmsearch/types';\nimport { IndomEntity } from '../../../../../models/entities/indom';\nimport { MetricEntity, MetricSiblingsEntity } from '../../../../../models/entities/metric';\nimport { TrackableStatus } from '../../shared/state';\n\nexport interface MetricData {\n    data: MetricEntity | null;\n}\n\nexport interface MetricSiblingsData {\n    data: MetricSiblingsEntity | null;\n}\n\nexport interface IndomData {\n    data: IndomEntity | null;\n}\n\nexport type MetricDataState = MetricData & TrackableStatus;\n\nexport type MetricSiblingsDataState = MetricSiblingsData & TrackableStatus;\n\nexport type IndomDataState = IndomData & TrackableStatus;\n\nexport interface MetricDetailState {\n    type: EntityType.Metric;\n    metric: MetricDataState;\n    siblings?: MetricSiblingsDataState;\n}\n\nexport interface InstanceDomainDetailState {\n    type: EntityType.InstanceDomain;\n    indom: IndomDataState;\n}\n\nexport type EntityState = MetricDetailState | InstanceDomainDetailState | null;\n\nexport const initialEntity = (): EntityState => null;\n","import { Reducer } from 'redux';\nimport { QueryAction } from './actions';\nimport { initialQuery, initialState, QueryState } from './state';\nimport { CLEAR_QUERY, SET_QUERY } from './types';\n\nconst queryReducer: Reducer<QueryState, QueryAction> = (state, action) => {\n    if (state === undefined) {\n        return initialState;\n    }\n    switch (action.type) {\n        case SET_QUERY:\n            return action.payload;\n        case CLEAR_QUERY:\n            return initialQuery();\n        default:\n            return state;\n    }\n};\n\nexport { queryReducer };\n","import { SearchQuery } from '../../shared/state';\n\nexport type HistoryState = SearchQuery[];\n\nexport const initialHistory = (): HistoryState => [];\n","import { combineReducers } from 'redux';\nimport { searchReducer } from './slices/search/reducer';\n\nconst rootReducer = combineReducers({\n    search: searchReducer,\n});\n\nexport type RootState = ReturnType<typeof rootReducer>;\n\nexport default rootReducer;\n","import { applyMiddleware, compose, createStore } from 'redux';\nimport { persistStore } from 'redux-persist';\nimport thunk from 'redux-thunk';\nimport { Services } from '../services/services';\nimport rootReducer from './reducer';\n\nconst composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n\nconst initStore = async (services: Services) => {\n    const middleware = thunk.withExtraArgument(services);\n    const store = createStore(rootReducer, {}, composeEnhancers(applyMiddleware(middleware)));\n    const persistor = persistStore(store);\n    return { store, persistor };\n};\n\nexport { initStore };\n","import React from 'react';\nimport { Provider } from 'react-redux';\nimport { AnyAction, Store } from 'redux';\nimport { Persistor } from 'redux-persist';\nimport { PersistGate } from 'redux-persist/integration/react';\nimport { AppRootProps } from '@grafana/data';\nimport App from './App';\nimport Loader from './components/Loader/Loader';\nimport ServicesContext from './contexts/services';\nimport { initServices, Services } from './services/services';\nimport { initStore } from './store/store';\n\ninterface AppRootState {\n    store: Store<any, AnyAction> | null;\n    services: Services | null;\n    persistor: Persistor | null;\n    loading: boolean;\n    errorMsg: string;\n}\n\nexport class Search extends React.Component<AppRootProps, AppRootState> {\n    state: AppRootState = {\n        store: null,\n        services: null,\n        persistor: null,\n        loading: true,\n        errorMsg: '',\n    };\n\n    constructor(props: AppRootProps) {\n        super(props);\n    }\n\n    componentDidMount() {\n        // Bloat for Grafana App plugin tabs, which we don't actually use in app itself, hence this wrapper\n        this.updateNav();\n        initServices()\n            .then(services => {\n                this.setState({ services });\n                return initStore(services);\n            })\n            .then(({ store, persistor }) => {\n                this.setState({ store, persistor, loading: false });\n            })\n            .catch((err: Error) => {\n                this.setState({ loading: false, errorMsg: err.message });\n            });\n    }\n\n    componentDidUpdate(prevProps: AppRootProps) {\n        if (this.props.query !== prevProps.query) {\n            if (this.props.query.tab !== prevProps.query.tab) {\n                this.updateNav();\n            }\n        }\n    }\n\n    updateNav() {\n        const { path, onNavChanged, meta } = this.props;\n        const node = {\n            text: 'Performance Co-Pilot',\n            img: meta.info.logos.large,\n            subTitle: 'Full-Text Metric Search',\n            url: path,\n        };\n        onNavChanged({\n            node,\n            main: node,\n        });\n    }\n\n    // Render main App component without above bloat\n    render() {\n        const { store, loading, persistor, errorMsg, services } = this.state;\n        if (loading) {\n            return <Loader loaded={false} />;\n        }\n        if (store === null || services === null) {\n            return <p>{errorMsg}</p>;\n        }\n        return (\n            <Provider store={store}>\n                {/* Seems like redux-persist has really buggy typings\n                // @ts-ignore */}\n                <PersistGate persistor={persistor}>\n                    {loaded => (\n                        <Loader loaded={loaded}>\n                            <ServicesContext.Provider value={services}>\n                                <App />\n                            </ServicesContext.Provider>\n                        </Loader>\n                    )}\n                </PersistGate>\n            </Provider>\n        );\n    }\n}\n\nexport default Search;\n","import { AppPlugin } from '@grafana/data';\nimport { AppConfig } from './components/appconfig/config';\nimport { AppSettings } from './components/appconfig/types';\nimport { Search } from './components/search/Search';\n\nexport const plugin = new AppPlugin<AppSettings>()\n    .addConfigPage({ id: 'config', title: 'Config', icon: 'cog', body: AppConfig })\n    .setRootPage(Search);\n","(function (root, factory) {\n  if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else if (typeof module === 'object' && module.exports) {\n    module.exports = factory();\n  } else {\n    root.prefix = factory(root);\n  }\n}(this, function (root) {\n  'use strict';\n\n  var merge = function (target) {\n    var i = 1;\n    var length = arguments.length;\n    var key;\n    for (; i < length; i++) {\n      for (key in arguments[i]) {\n        if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n          target[key] = arguments[i][key];\n        }\n      }\n    }\n    return target;\n  };\n\n  var defaults = {\n    template: '[%t] %l:',\n    levelFormatter: function (level) {\n      return level.toUpperCase();\n    },\n    nameFormatter: function (name) {\n      return name || 'root';\n    },\n    timestampFormatter: function (date) {\n      return date.toTimeString().replace(/.*(\\d{2}:\\d{2}:\\d{2}).*/, '$1');\n    },\n    format: undefined\n  };\n\n  var loglevel;\n  var configs = {};\n\n  var reg = function (rootLogger) {\n    if (!rootLogger || !rootLogger.getLogger) {\n      throw new TypeError('Argument is not a root logger');\n    }\n    loglevel = rootLogger;\n  };\n\n  var apply = function (logger, config) {\n    if (!logger || !logger.setLevel) {\n      throw new TypeError('Argument is not a logger');\n    }\n\n    /* eslint-disable vars-on-top */\n    var originalFactory = logger.methodFactory;\n    var name = logger.name || '';\n    var parent = configs[name] || configs[''] || defaults;\n    /* eslint-enable vars-on-top */\n\n    function methodFactory(methodName, logLevel, loggerName) {\n      var originalMethod = originalFactory(methodName, logLevel, loggerName);\n      var options = configs[loggerName] || configs[''];\n\n      var hasTimestamp = options.template.indexOf('%t') !== -1;\n      var hasLevel = options.template.indexOf('%l') !== -1;\n      var hasName = options.template.indexOf('%n') !== -1;\n\n      return function () {\n        var content = '';\n\n        var length = arguments.length;\n        var args = Array(length);\n        var key = 0;\n        for (; key < length; key++) {\n          args[key] = arguments[key];\n        }\n\n        // skip the root method for child loggers to prevent duplicate logic\n        if (name || !configs[loggerName]) {\n          /* eslint-disable vars-on-top */\n          var timestamp = options.timestampFormatter(new Date());\n          var level = options.levelFormatter(methodName);\n          var lname = options.nameFormatter(loggerName);\n          /* eslint-enable vars-on-top */\n\n          if (options.format) {\n            content += options.format(level, lname, timestamp);\n          } else {\n            content += options.template;\n            if (hasTimestamp) {\n              content = content.replace(/%t/, timestamp);\n            }\n            if (hasLevel) content = content.replace(/%l/, level);\n            if (hasName) content = content.replace(/%n/, lname);\n          }\n\n          if (args.length && typeof args[0] === 'string') {\n            // concat prefix with first argument to support string substitutions\n            args[0] = content + ' ' + args[0];\n          } else {\n            args.unshift(content);\n          }\n        }\n\n        originalMethod.apply(undefined, args);\n      };\n    }\n\n    if (!configs[name]) {\n      logger.methodFactory = methodFactory;\n    }\n\n    // for remove inherited format option if template option preset\n    config = config || {};\n    if (config.template) config.format = undefined;\n\n    configs[name] = merge({}, parent, config);\n\n    logger.setLevel(logger.getLevel());\n\n    if (!loglevel) {\n      logger.warn(\n        'It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md'\n      );\n    }\n\n    return logger;\n  };\n\n  var api = {\n    reg: reg,\n    apply: apply\n  };\n\n  var save;\n\n  if (root) {\n    save = root.prefix;\n    api.noConflict = function () {\n      if (root.prefix === api) {\n        root.prefix = save;\n      }\n      return api;\n    };\n  }\n\n  return api;\n}));\n","/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n    \"use strict\";\n    if (typeof define === 'function' && define.amd) {\n        define(definition);\n    } else if (typeof module === 'object' && module.exports) {\n        module.exports = definition();\n    } else {\n        root.log = definition();\n    }\n}(this, function () {\n    \"use strict\";\n\n    // Slightly dubious tricks to cut down minimized file size\n    var noop = function() {};\n    var undefinedType = \"undefined\";\n    var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n        /Trident\\/|MSIE /.test(window.navigator.userAgent)\n    );\n\n    var logMethods = [\n        \"trace\",\n        \"debug\",\n        \"info\",\n        \"warn\",\n        \"error\"\n    ];\n\n    // Cross-browser bind equivalent that works at least back to IE6\n    function bindMethod(obj, methodName) {\n        var method = obj[methodName];\n        if (typeof method.bind === 'function') {\n            return method.bind(obj);\n        } else {\n            try {\n                return Function.prototype.bind.call(method, obj);\n            } catch (e) {\n                // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n                return function() {\n                    return Function.prototype.apply.apply(method, [obj, arguments]);\n                };\n            }\n        }\n    }\n\n    // Trace() doesn't print the message in IE, so for that case we need to wrap it\n    function traceForIE() {\n        if (console.log) {\n            if (console.log.apply) {\n                console.log.apply(console, arguments);\n            } else {\n                // In old IE, native console methods themselves don't have apply().\n                Function.prototype.apply.apply(console.log, [console, arguments]);\n            }\n        }\n        if (console.trace) console.trace();\n    }\n\n    // Build the best logging method possible for this env\n    // Wherever possible we want to bind, not wrap, to preserve stack traces\n    function realMethod(methodName) {\n        if (methodName === 'debug') {\n            methodName = 'log';\n        }\n\n        if (typeof console === undefinedType) {\n            return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n        } else if (methodName === 'trace' && isIE) {\n            return traceForIE;\n        } else if (console[methodName] !== undefined) {\n            return bindMethod(console, methodName);\n        } else if (console.log !== undefined) {\n            return bindMethod(console, 'log');\n        } else {\n            return noop;\n        }\n    }\n\n    // These private functions always need `this` to be set properly\n\n    function replaceLoggingMethods(level, loggerName) {\n        /*jshint validthis:true */\n        for (var i = 0; i < logMethods.length; i++) {\n            var methodName = logMethods[i];\n            this[methodName] = (i < level) ?\n                noop :\n                this.methodFactory(methodName, level, loggerName);\n        }\n\n        // Define log.log as an alias for log.debug\n        this.log = this.debug;\n    }\n\n    // In old IE versions, the console isn't present until you first open it.\n    // We build realMethod() replacements here that regenerate logging methods\n    function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n        return function () {\n            if (typeof console !== undefinedType) {\n                replaceLoggingMethods.call(this, level, loggerName);\n                this[methodName].apply(this, arguments);\n            }\n        };\n    }\n\n    // By default, we use closely bound real methods wherever possible, and\n    // otherwise we wait for a console to appear, and then try again.\n    function defaultMethodFactory(methodName, level, loggerName) {\n        /*jshint validthis:true */\n        return realMethod(methodName) ||\n               enableLoggingWhenConsoleArrives.apply(this, arguments);\n    }\n\n    function Logger(name, defaultLevel, factory) {\n      var self = this;\n      var currentLevel;\n      defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n      var storageKey = \"loglevel\";\n      if (typeof name === \"string\") {\n        storageKey += \":\" + name;\n      } else if (typeof name === \"symbol\") {\n        storageKey = undefined;\n      }\n\n      function persistLevelIfPossible(levelNum) {\n          var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n          if (typeof window === undefinedType || !storageKey) return;\n\n          // Use localStorage if available\n          try {\n              window.localStorage[storageKey] = levelName;\n              return;\n          } catch (ignore) {}\n\n          // Use session cookie as fallback\n          try {\n              window.document.cookie =\n                encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n          } catch (ignore) {}\n      }\n\n      function getPersistedLevel() {\n          var storedLevel;\n\n          if (typeof window === undefinedType || !storageKey) return;\n\n          try {\n              storedLevel = window.localStorage[storageKey];\n          } catch (ignore) {}\n\n          // Fallback to cookies if local storage gives us nothing\n          if (typeof storedLevel === undefinedType) {\n              try {\n                  var cookie = window.document.cookie;\n                  var location = cookie.indexOf(\n                      encodeURIComponent(storageKey) + \"=\");\n                  if (location !== -1) {\n                      storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n                  }\n              } catch (ignore) {}\n          }\n\n          // If the stored level is not valid, treat it as if nothing was stored.\n          if (self.levels[storedLevel] === undefined) {\n              storedLevel = undefined;\n          }\n\n          return storedLevel;\n      }\n\n      function clearPersistedLevel() {\n          if (typeof window === undefinedType || !storageKey) return;\n\n          // Use localStorage if available\n          try {\n              window.localStorage.removeItem(storageKey);\n              return;\n          } catch (ignore) {}\n\n          // Use session cookie as fallback\n          try {\n              window.document.cookie =\n                encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n          } catch (ignore) {}\n      }\n\n      /*\n       *\n       * Public logger API - see https://github.com/pimterry/loglevel for details\n       *\n       */\n\n      self.name = name;\n\n      self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n          \"ERROR\": 4, \"SILENT\": 5};\n\n      self.methodFactory = factory || defaultMethodFactory;\n\n      self.getLevel = function () {\n          return currentLevel;\n      };\n\n      self.setLevel = function (level, persist) {\n          if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n              level = self.levels[level.toUpperCase()];\n          }\n          if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n              currentLevel = level;\n              if (persist !== false) {  // defaults to true\n                  persistLevelIfPossible(level);\n              }\n              replaceLoggingMethods.call(self, level, name);\n              if (typeof console === undefinedType && level < self.levels.SILENT) {\n                  return \"No console available for logging\";\n              }\n          } else {\n              throw \"log.setLevel() called with invalid level: \" + level;\n          }\n      };\n\n      self.setDefaultLevel = function (level) {\n          defaultLevel = level;\n          if (!getPersistedLevel()) {\n              self.setLevel(level, false);\n          }\n      };\n\n      self.resetLevel = function () {\n          self.setLevel(defaultLevel, false);\n          clearPersistedLevel();\n      };\n\n      self.enableAll = function(persist) {\n          self.setLevel(self.levels.TRACE, persist);\n      };\n\n      self.disableAll = function(persist) {\n          self.setLevel(self.levels.SILENT, persist);\n      };\n\n      // Initialize with the right level\n      var initialLevel = getPersistedLevel();\n      if (initialLevel == null) {\n          initialLevel = defaultLevel;\n      }\n      self.setLevel(initialLevel, false);\n    }\n\n    /*\n     *\n     * Top-level API\n     *\n     */\n\n    var defaultLogger = new Logger();\n\n    var _loggersByName = {};\n    defaultLogger.getLogger = function getLogger(name) {\n        if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n          throw new TypeError(\"You must supply a name when creating a logger.\");\n        }\n\n        var logger = _loggersByName[name];\n        if (!logger) {\n          logger = _loggersByName[name] = new Logger(\n            name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n        }\n        return logger;\n    };\n\n    // Grab the current global log variable in case of overwrite\n    var _log = (typeof window !== undefinedType) ? window.log : undefined;\n    defaultLogger.noConflict = function() {\n        if (typeof window !== undefinedType &&\n               window.log === defaultLogger) {\n            window.log = _log;\n        }\n\n        return defaultLogger;\n    };\n\n    defaultLogger.getLoggers = function getLoggers() {\n        return _loggersByName;\n    };\n\n    // ES6 default export, for compatibility\n    defaultLogger['default'] = defaultLogger;\n\n    return defaultLogger;\n}));\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n  function shim(props, propName, componentName, location, propFullName, secret) {\n    if (secret === ReactPropTypesSecret) {\n      // It is still safe when called from React.\n      return;\n    }\n    var err = new Error(\n      'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n      'Use PropTypes.checkPropTypes() to call them. ' +\n      'Read more at http://fb.me/use-check-prop-types'\n    );\n    err.name = 'Invariant Violation';\n    throw err;\n  };\n  shim.isRequired = shim;\n  function getShim() {\n    return shim;\n  };\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n  var ReactPropTypes = {\n    array: shim,\n    bigint: shim,\n    bool: shim,\n    func: shim,\n    number: shim,\n    object: shim,\n    string: shim,\n    symbol: shim,\n\n    any: shim,\n    arrayOf: getShim,\n    element: shim,\n    elementType: shim,\n    instanceOf: getShim,\n    node: shim,\n    objectOf: getShim,\n    oneOf: getShim,\n    oneOfType: getShim,\n    shape: getShim,\n    exact: getShim,\n\n    checkPropTypes: emptyFunctionWithReset,\n    resetWarningCache: emptyFunction\n  };\n\n  ReactPropTypes.PropTypes = ReactPropTypes;\n\n  return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n  var ReactIs = require('react-is');\n\n  // By explicitly using `prop-types` you are opting into new development behavior.\n  // http://fb.me/prop-types-in-prod\n  var throwOnDirectAccess = true;\n  module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n  // By explicitly using `prop-types` you are opting into new production behavior.\n  // http://fb.me/prop-types-in-prod\n  module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _arrays = _interopRequireDefault(require(\"shallow-equal/arrays\"));\n\nvar _Autowhatever = _interopRequireDefault(require(\"./Autowhatever\"));\n\nvar _theme = require(\"./theme\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar alwaysTrue = function alwaysTrue() {\n  return true;\n};\n\nvar defaultShouldRenderSuggestions = function defaultShouldRenderSuggestions(value) {\n  return value.trim().length > 0;\n};\n\nvar defaultRenderSuggestionsContainer = function defaultRenderSuggestionsContainer(_ref) {\n  var containerProps = _ref.containerProps,\n      children = _ref.children;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", containerProps, children);\n};\n\nvar REASON_SUGGESTIONS_REVEALED = 'suggestions-revealed';\nvar REASON_SUGGESTIONS_UPDATED = 'suggestions-updated';\nvar REASON_SUGGESTION_SELECTED = 'suggestion-selected';\nvar REASON_INPUT_FOCUSED = 'input-focused';\nvar REASON_INPUT_CHANGED = 'input-changed';\nvar REASON_INPUT_BLURRED = 'input-blurred';\nvar REASON_ESCAPE_PRESSED = 'escape-pressed';\n\nvar Autosuggest = /*#__PURE__*/function (_Component) {\n  _inherits(Autosuggest, _Component);\n\n  var _super = _createSuper(Autosuggest);\n\n  function Autosuggest(_ref2) {\n    var _this;\n\n    var _alwaysRenderSuggestions = _ref2.alwaysRenderSuggestions;\n\n    _classCallCheck(this, Autosuggest);\n\n    _this = _super.call(this);\n\n    _defineProperty(_assertThisInitialized(_this), \"onDocumentMouseDown\", function (event) {\n      _this.justClickedOnSuggestionsContainer = false;\n      var node = event.detail && event.detail.target || // This is for testing only. Please show me a better way to emulate this.\n      event.target;\n\n      while (node !== null && node !== document) {\n        if (node.getAttribute && node.getAttribute('data-suggestion-index') !== null) {\n          // Suggestion was clicked\n          return;\n        }\n\n        if (node === _this.suggestionsContainer) {\n          // Something else inside suggestions container was clicked\n          _this.justClickedOnSuggestionsContainer = true;\n          return;\n        }\n\n        node = node.parentNode;\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"storeAutowhateverRef\", function (autowhatever) {\n      if (autowhatever !== null) {\n        _this.autowhatever = autowhatever;\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionMouseEnter\", function (event, _ref3) {\n      var sectionIndex = _ref3.sectionIndex,\n          itemIndex = _ref3.itemIndex;\n\n      _this.updateHighlightedSuggestion(sectionIndex, itemIndex);\n\n      if (event.target === _this.pressedSuggestion) {\n        _this.justSelectedSuggestion = true;\n      }\n\n      _this.justMouseEntered = true;\n      setTimeout(function () {\n        _this.justMouseEntered = false;\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"highlightFirstSuggestion\", function () {\n      _this.updateHighlightedSuggestion(_this.props.multiSection ? 0 : null, 0);\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onDocumentMouseUp\", function () {\n      if (_this.pressedSuggestion && !_this.justSelectedSuggestion) {\n        _this.input.focus();\n      }\n\n      _this.pressedSuggestion = null;\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionMouseDown\", function (event) {\n      // Checking if this.justSelectedSuggestion is already true to not duplicate touch events in chrome\n      // See: https://github.com/facebook/react/issues/9809#issuecomment-413978405\n      if (!_this.justSelectedSuggestion) {\n        _this.justSelectedSuggestion = true;\n        _this.pressedSuggestion = event.target;\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionsClearRequested\", function () {\n      var onSuggestionsClearRequested = _this.props.onSuggestionsClearRequested;\n      onSuggestionsClearRequested && onSuggestionsClearRequested();\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionSelected\", function (event, data) {\n      var _this$props = _this.props,\n          alwaysRenderSuggestions = _this$props.alwaysRenderSuggestions,\n          onSuggestionSelected = _this$props.onSuggestionSelected,\n          onSuggestionsFetchRequested = _this$props.onSuggestionsFetchRequested;\n      onSuggestionSelected && onSuggestionSelected(event, data);\n\n      var keepSuggestionsOnSelect = _this.props.shouldKeepSuggestionsOnSelect(data.suggestion);\n\n      if (alwaysRenderSuggestions || keepSuggestionsOnSelect) {\n        onSuggestionsFetchRequested({\n          value: data.suggestionValue,\n          reason: REASON_SUGGESTION_SELECTED\n        });\n      } else {\n        _this.onSuggestionsClearRequested();\n      }\n\n      _this.resetHighlightedSuggestion();\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionClick\", function (event) {\n      var _this$props2 = _this.props,\n          alwaysRenderSuggestions = _this$props2.alwaysRenderSuggestions,\n          focusInputOnSuggestionClick = _this$props2.focusInputOnSuggestionClick;\n\n      var _this$getSuggestionIn = _this.getSuggestionIndices(_this.findSuggestionElement(event.target)),\n          sectionIndex = _this$getSuggestionIn.sectionIndex,\n          suggestionIndex = _this$getSuggestionIn.suggestionIndex;\n\n      var clickedSuggestion = _this.getSuggestion(sectionIndex, suggestionIndex);\n\n      var clickedSuggestionValue = _this.props.getSuggestionValue(clickedSuggestion);\n\n      _this.maybeCallOnChange(event, clickedSuggestionValue, 'click');\n\n      _this.onSuggestionSelected(event, {\n        suggestion: clickedSuggestion,\n        suggestionValue: clickedSuggestionValue,\n        suggestionIndex: suggestionIndex,\n        sectionIndex: sectionIndex,\n        method: 'click'\n      });\n\n      var keepSuggestionsOnSelect = _this.props.shouldKeepSuggestionsOnSelect(clickedSuggestion);\n\n      if (!(alwaysRenderSuggestions || keepSuggestionsOnSelect)) {\n        _this.closeSuggestions();\n      }\n\n      if (focusInputOnSuggestionClick === true) {\n        _this.input.focus();\n      } else {\n        _this.onBlur();\n      }\n\n      setTimeout(function () {\n        _this.justSelectedSuggestion = false;\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onBlur\", function () {\n      var _this$props3 = _this.props,\n          inputProps = _this$props3.inputProps,\n          shouldRenderSuggestions = _this$props3.shouldRenderSuggestions;\n      var value = inputProps.value,\n          onBlur = inputProps.onBlur;\n\n      var highlightedSuggestion = _this.getHighlightedSuggestion();\n\n      var shouldRender = shouldRenderSuggestions(value, REASON_INPUT_BLURRED);\n\n      _this.setState({\n        isFocused: false,\n        highlightedSectionIndex: null,\n        highlightedSuggestionIndex: null,\n        highlightedSuggestion: null,\n        valueBeforeUpDown: null,\n        isCollapsed: !shouldRender\n      });\n\n      onBlur && onBlur(_this.blurEvent, {\n        highlightedSuggestion: highlightedSuggestion\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionMouseLeave\", function (event) {\n      _this.resetHighlightedSuggestion(false); // shouldResetValueBeforeUpDown\n\n\n      if (_this.justSelectedSuggestion && event.target === _this.pressedSuggestion) {\n        _this.justSelectedSuggestion = false;\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionTouchStart\", function () {\n      _this.justSelectedSuggestion = true; // todo: event.preventDefault when https://github.com/facebook/react/issues/2043\n      // todo: gets released so onSuggestionMouseDown won't fire in chrome\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onSuggestionTouchMove\", function () {\n      _this.justSelectedSuggestion = false;\n      _this.pressedSuggestion = null;\n\n      _this.input.focus();\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"itemProps\", function (_ref4) {\n      var sectionIndex = _ref4.sectionIndex,\n          itemIndex = _ref4.itemIndex;\n      return {\n        'data-section-index': sectionIndex,\n        'data-suggestion-index': itemIndex,\n        onMouseEnter: _this.onSuggestionMouseEnter,\n        onMouseLeave: _this.onSuggestionMouseLeave,\n        onMouseDown: _this.onSuggestionMouseDown,\n        onTouchStart: _this.onSuggestionTouchStart,\n        onTouchMove: _this.onSuggestionTouchMove,\n        onClick: _this.onSuggestionClick\n      };\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"renderSuggestionsContainer\", function (_ref5) {\n      var containerProps = _ref5.containerProps,\n          children = _ref5.children;\n      var renderSuggestionsContainer = _this.props.renderSuggestionsContainer;\n      return renderSuggestionsContainer({\n        containerProps: containerProps,\n        children: children,\n        query: _this.getQuery()\n      });\n    });\n\n    _this.state = {\n      isFocused: false,\n      isCollapsed: !_alwaysRenderSuggestions,\n      highlightedSectionIndex: null,\n      highlightedSuggestionIndex: null,\n      highlightedSuggestion: null,\n      valueBeforeUpDown: null\n    };\n    _this.justPressedUpDown = false;\n    _this.justMouseEntered = false;\n    _this.pressedSuggestion = null;\n    return _this;\n  }\n\n  _createClass(Autosuggest, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      document.addEventListener('mousedown', this.onDocumentMouseDown);\n      document.addEventListener('mouseup', this.onDocumentMouseUp);\n      this.input = this.autowhatever.input;\n      this.suggestionsContainer = this.autowhatever.itemsContainer;\n    } // eslint-disable-next-line camelcase, react/sort-comp\n\n  }, {\n    key: \"UNSAFE_componentWillReceiveProps\",\n    value: function UNSAFE_componentWillReceiveProps(nextProps) {\n      // When highlightFirstSuggestion becomes deactivated, if the first suggestion was\n      // set, we should reset the suggestion back to the unselected default state.\n      var shouldResetHighlighting = this.state.highlightedSuggestionIndex === 0 && this.props.highlightFirstSuggestion && !nextProps.highlightFirstSuggestion;\n\n      if ((0, _arrays[\"default\"])(nextProps.suggestions, this.props.suggestions)) {\n        if (nextProps.highlightFirstSuggestion && nextProps.suggestions.length > 0 && this.justPressedUpDown === false && this.justMouseEntered === false) {\n          this.highlightFirstSuggestion();\n        } else if (shouldResetHighlighting) {\n          this.resetHighlightedSuggestion();\n        }\n      } else {\n        if (this.willRenderSuggestions(nextProps, REASON_SUGGESTIONS_UPDATED)) {\n          if (this.state.isCollapsed && !this.justSelectedSuggestion) {\n            this.revealSuggestions();\n          }\n\n          if (shouldResetHighlighting) {\n            this.resetHighlightedSuggestion();\n          }\n        } else {\n          this.resetHighlightedSuggestion();\n        }\n      }\n    }\n  }, {\n    key: \"componentDidUpdate\",\n    value: function componentDidUpdate(prevProps, prevState) {\n      var _this$props4 = this.props,\n          suggestions = _this$props4.suggestions,\n          onSuggestionHighlighted = _this$props4.onSuggestionHighlighted,\n          highlightFirstSuggestion = _this$props4.highlightFirstSuggestion;\n\n      if (!(0, _arrays[\"default\"])(suggestions, prevProps.suggestions) && suggestions.length > 0 && highlightFirstSuggestion) {\n        this.highlightFirstSuggestion();\n        return;\n      }\n\n      if (onSuggestionHighlighted) {\n        var highlightedSuggestion = this.getHighlightedSuggestion();\n        var prevHighlightedSuggestion = prevState.highlightedSuggestion;\n\n        if (highlightedSuggestion != prevHighlightedSuggestion) {\n          onSuggestionHighlighted({\n            suggestion: highlightedSuggestion\n          });\n        }\n      }\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      document.removeEventListener('mousedown', this.onDocumentMouseDown);\n      document.removeEventListener('mouseup', this.onDocumentMouseUp);\n    }\n  }, {\n    key: \"updateHighlightedSuggestion\",\n    value: function updateHighlightedSuggestion(sectionIndex, suggestionIndex, prevValue) {\n      var _this2 = this;\n\n      this.setState(function (state) {\n        var valueBeforeUpDown = state.valueBeforeUpDown;\n\n        if (suggestionIndex === null) {\n          valueBeforeUpDown = null;\n        } else if (valueBeforeUpDown === null && typeof prevValue !== 'undefined') {\n          valueBeforeUpDown = prevValue;\n        }\n\n        return {\n          highlightedSectionIndex: sectionIndex,\n          highlightedSuggestionIndex: suggestionIndex,\n          highlightedSuggestion: suggestionIndex === null ? null : _this2.getSuggestion(sectionIndex, suggestionIndex),\n          valueBeforeUpDown: valueBeforeUpDown\n        };\n      });\n    }\n  }, {\n    key: \"resetHighlightedSuggestion\",\n    value: function resetHighlightedSuggestion() {\n      var shouldResetValueBeforeUpDown = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n      this.setState(function (state) {\n        var valueBeforeUpDown = state.valueBeforeUpDown;\n        return {\n          highlightedSectionIndex: null,\n          highlightedSuggestionIndex: null,\n          highlightedSuggestion: null,\n          valueBeforeUpDown: shouldResetValueBeforeUpDown ? null : valueBeforeUpDown\n        };\n      });\n    }\n  }, {\n    key: \"revealSuggestions\",\n    value: function revealSuggestions() {\n      this.setState({\n        isCollapsed: false\n      });\n    }\n  }, {\n    key: \"closeSuggestions\",\n    value: function closeSuggestions() {\n      this.setState({\n        highlightedSectionIndex: null,\n        highlightedSuggestionIndex: null,\n        highlightedSuggestion: null,\n        valueBeforeUpDown: null,\n        isCollapsed: true\n      });\n    }\n  }, {\n    key: \"getSuggestion\",\n    value: function getSuggestion(sectionIndex, suggestionIndex) {\n      var _this$props5 = this.props,\n          suggestions = _this$props5.suggestions,\n          multiSection = _this$props5.multiSection,\n          getSectionSuggestions = _this$props5.getSectionSuggestions;\n\n      if (multiSection) {\n        return getSectionSuggestions(suggestions[sectionIndex])[suggestionIndex];\n      }\n\n      return suggestions[suggestionIndex];\n    }\n  }, {\n    key: \"getHighlightedSuggestion\",\n    value: function getHighlightedSuggestion() {\n      var _this$state = this.state,\n          highlightedSectionIndex = _this$state.highlightedSectionIndex,\n          highlightedSuggestionIndex = _this$state.highlightedSuggestionIndex;\n\n      if (highlightedSuggestionIndex === null) {\n        return null;\n      }\n\n      return this.getSuggestion(highlightedSectionIndex, highlightedSuggestionIndex);\n    }\n  }, {\n    key: \"getSuggestionValueByIndex\",\n    value: function getSuggestionValueByIndex(sectionIndex, suggestionIndex) {\n      var getSuggestionValue = this.props.getSuggestionValue;\n      return getSuggestionValue(this.getSuggestion(sectionIndex, suggestionIndex));\n    }\n  }, {\n    key: \"getSuggestionIndices\",\n    value: function getSuggestionIndices(suggestionElement) {\n      var sectionIndex = suggestionElement.getAttribute('data-section-index');\n      var suggestionIndex = suggestionElement.getAttribute('data-suggestion-index');\n      return {\n        sectionIndex: typeof sectionIndex === 'string' ? parseInt(sectionIndex, 10) : null,\n        suggestionIndex: parseInt(suggestionIndex, 10)\n      };\n    }\n  }, {\n    key: \"findSuggestionElement\",\n    value: function findSuggestionElement(startNode) {\n      var node = startNode;\n\n      do {\n        if (node.getAttribute && node.getAttribute('data-suggestion-index') !== null) {\n          return node;\n        }\n\n        node = node.parentNode;\n      } while (node !== null);\n\n      console.error('Clicked element:', startNode); // eslint-disable-line no-console\n\n      throw new Error(\"Couldn't find suggestion element\");\n    }\n  }, {\n    key: \"maybeCallOnChange\",\n    value: function maybeCallOnChange(event, newValue, method) {\n      var _this$props$inputProp = this.props.inputProps,\n          value = _this$props$inputProp.value,\n          onChange = _this$props$inputProp.onChange;\n\n      if (newValue !== value) {\n        onChange(event, {\n          newValue: newValue,\n          method: method\n        });\n      }\n    }\n  }, {\n    key: \"willRenderSuggestions\",\n    value: function willRenderSuggestions(props, reason) {\n      var suggestions = props.suggestions,\n          inputProps = props.inputProps,\n          shouldRenderSuggestions = props.shouldRenderSuggestions;\n      var value = inputProps.value;\n      return suggestions.length > 0 && shouldRenderSuggestions(value, reason);\n    }\n  }, {\n    key: \"getQuery\",\n    value: function getQuery() {\n      var inputProps = this.props.inputProps;\n      var value = inputProps.value;\n      var valueBeforeUpDown = this.state.valueBeforeUpDown;\n      return (valueBeforeUpDown === null ? value : valueBeforeUpDown).trim();\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this3 = this;\n\n      var _this$props6 = this.props,\n          suggestions = _this$props6.suggestions,\n          renderInputComponent = _this$props6.renderInputComponent,\n          onSuggestionsFetchRequested = _this$props6.onSuggestionsFetchRequested,\n          renderSuggestion = _this$props6.renderSuggestion,\n          inputProps = _this$props6.inputProps,\n          multiSection = _this$props6.multiSection,\n          renderSectionTitle = _this$props6.renderSectionTitle,\n          id = _this$props6.id,\n          getSectionSuggestions = _this$props6.getSectionSuggestions,\n          theme = _this$props6.theme,\n          getSuggestionValue = _this$props6.getSuggestionValue,\n          alwaysRenderSuggestions = _this$props6.alwaysRenderSuggestions,\n          highlightFirstSuggestion = _this$props6.highlightFirstSuggestion,\n          containerProps = _this$props6.containerProps;\n      var _this$state2 = this.state,\n          isFocused = _this$state2.isFocused,\n          isCollapsed = _this$state2.isCollapsed,\n          highlightedSectionIndex = _this$state2.highlightedSectionIndex,\n          highlightedSuggestionIndex = _this$state2.highlightedSuggestionIndex,\n          valueBeforeUpDown = _this$state2.valueBeforeUpDown;\n      var shouldRenderSuggestions = alwaysRenderSuggestions ? alwaysTrue : this.props.shouldRenderSuggestions;\n      var value = inputProps.value,\n          _onFocus = inputProps.onFocus,\n          _onKeyDown = inputProps.onKeyDown;\n      var willRenderSuggestions = this.willRenderSuggestions(this.props, 'render');\n      var isOpen = alwaysRenderSuggestions || isFocused && !isCollapsed && willRenderSuggestions;\n      var items = isOpen ? suggestions : [];\n\n      var autowhateverInputProps = _objectSpread({}, inputProps, {\n        onFocus: function onFocus(event) {\n          if (!_this3.justSelectedSuggestion && !_this3.justClickedOnSuggestionsContainer) {\n            var shouldRender = shouldRenderSuggestions(value, REASON_INPUT_FOCUSED);\n\n            _this3.setState({\n              isFocused: true,\n              isCollapsed: !shouldRender\n            });\n\n            _onFocus && _onFocus(event);\n\n            if (shouldRender) {\n              onSuggestionsFetchRequested({\n                value: value,\n                reason: REASON_INPUT_FOCUSED\n              });\n            }\n          }\n        },\n        onBlur: function onBlur(event) {\n          if (_this3.justClickedOnSuggestionsContainer) {\n            _this3.input.focus();\n\n            return;\n          }\n\n          _this3.blurEvent = event;\n\n          if (!_this3.justSelectedSuggestion) {\n            _this3.onBlur();\n\n            _this3.onSuggestionsClearRequested();\n          }\n        },\n        onChange: function onChange(event) {\n          var value = event.target.value;\n          var shouldRender = shouldRenderSuggestions(value, REASON_INPUT_CHANGED);\n\n          _this3.maybeCallOnChange(event, value, 'type');\n\n          if (_this3.suggestionsContainer) {\n            _this3.suggestionsContainer.scrollTop = 0;\n          }\n\n          _this3.setState(_objectSpread({}, highlightFirstSuggestion ? {} : {\n            highlightedSectionIndex: null,\n            highlightedSuggestionIndex: null,\n            highlightedSuggestion: null\n          }, {\n            valueBeforeUpDown: null,\n            isCollapsed: !shouldRender\n          }));\n\n          if (shouldRender) {\n            onSuggestionsFetchRequested({\n              value: value,\n              reason: REASON_INPUT_CHANGED\n            });\n          } else {\n            _this3.onSuggestionsClearRequested();\n          }\n        },\n        onKeyDown: function onKeyDown(event, data) {\n          var keyCode = event.keyCode;\n\n          switch (keyCode) {\n            case 40: // ArrowDown\n\n            case 38:\n              // ArrowUp\n              if (isCollapsed) {\n                if (shouldRenderSuggestions(value, REASON_SUGGESTIONS_REVEALED)) {\n                  onSuggestionsFetchRequested({\n                    value: value,\n                    reason: REASON_SUGGESTIONS_REVEALED\n                  });\n\n                  _this3.revealSuggestions();\n\n                  event.preventDefault(); // We act on the key.\n                }\n              } else if (suggestions.length > 0) {\n                var newHighlightedSectionIndex = data.newHighlightedSectionIndex,\n                    newHighlightedItemIndex = data.newHighlightedItemIndex;\n                var newValue;\n\n                if (newHighlightedItemIndex === null) {\n                  // valueBeforeUpDown can be null if, for example, user\n                  // hovers on the first suggestion and then pressed Up.\n                  // If that happens, use the original input value.\n                  newValue = valueBeforeUpDown === null ? value : valueBeforeUpDown;\n                } else {\n                  newValue = _this3.getSuggestionValueByIndex(newHighlightedSectionIndex, newHighlightedItemIndex);\n                }\n\n                _this3.updateHighlightedSuggestion(newHighlightedSectionIndex, newHighlightedItemIndex, value);\n\n                _this3.maybeCallOnChange(event, newValue, keyCode === 40 ? 'down' : 'up');\n\n                event.preventDefault(); // We act on the key.\n              }\n\n              _this3.justPressedUpDown = true;\n              setTimeout(function () {\n                _this3.justPressedUpDown = false;\n              });\n              break;\n            // Enter\n\n            case 13:\n              {\n                // See #388\n                if (event.keyCode === 229) {\n                  break;\n                }\n\n                var highlightedSuggestion = _this3.getHighlightedSuggestion();\n\n                if (isOpen && !alwaysRenderSuggestions) {\n                  _this3.closeSuggestions();\n                }\n\n                if (highlightedSuggestion != null) {\n                  event.preventDefault();\n\n                  var _newValue = getSuggestionValue(highlightedSuggestion);\n\n                  _this3.maybeCallOnChange(event, _newValue, 'enter');\n\n                  _this3.onSuggestionSelected(event, {\n                    suggestion: highlightedSuggestion,\n                    suggestionValue: _newValue,\n                    suggestionIndex: highlightedSuggestionIndex,\n                    sectionIndex: highlightedSectionIndex,\n                    method: 'enter'\n                  });\n\n                  _this3.justSelectedSuggestion = true;\n                  setTimeout(function () {\n                    _this3.justSelectedSuggestion = false;\n                  });\n                }\n\n                break;\n              }\n            // Escape\n\n            case 27:\n              {\n                if (isOpen) {\n                  // If input.type === 'search', the browser clears the input\n                  // when Escape is pressed. We want to disable this default\n                  // behaviour so that, when suggestions are shown, we just hide\n                  // them, without clearing the input.\n                  event.preventDefault();\n                }\n\n                var willCloseSuggestions = isOpen && !alwaysRenderSuggestions;\n\n                if (valueBeforeUpDown === null) {\n                  // Didn't interact with Up/Down\n                  if (!willCloseSuggestions) {\n                    var _newValue2 = '';\n\n                    _this3.maybeCallOnChange(event, _newValue2, 'escape');\n\n                    if (shouldRenderSuggestions(_newValue2, REASON_ESCAPE_PRESSED)) {\n                      onSuggestionsFetchRequested({\n                        value: _newValue2,\n                        reason: REASON_ESCAPE_PRESSED\n                      });\n                    } else {\n                      _this3.onSuggestionsClearRequested();\n                    }\n                  }\n                } else {\n                  // Interacted with Up/Down\n                  _this3.maybeCallOnChange(event, valueBeforeUpDown, 'escape');\n                }\n\n                if (willCloseSuggestions) {\n                  _this3.onSuggestionsClearRequested();\n\n                  _this3.closeSuggestions();\n                } else {\n                  _this3.resetHighlightedSuggestion();\n                }\n\n                break;\n              }\n          }\n\n          _onKeyDown && _onKeyDown(event);\n        }\n      });\n\n      var renderSuggestionData = {\n        query: this.getQuery()\n      };\n      return /*#__PURE__*/_react[\"default\"].createElement(_Autowhatever[\"default\"], {\n        multiSection: multiSection,\n        items: items,\n        renderInputComponent: renderInputComponent,\n        renderItemsContainer: this.renderSuggestionsContainer,\n        renderItem: renderSuggestion,\n        renderItemData: renderSuggestionData,\n        renderSectionTitle: renderSectionTitle,\n        getSectionItems: getSectionSuggestions,\n        highlightedSectionIndex: highlightedSectionIndex,\n        highlightedItemIndex: highlightedSuggestionIndex,\n        containerProps: containerProps,\n        inputProps: autowhateverInputProps,\n        itemProps: this.itemProps,\n        theme: (0, _theme.mapToAutowhateverTheme)(theme),\n        id: id,\n        ref: this.storeAutowhateverRef\n      });\n    }\n  }]);\n\n  return Autosuggest;\n}(_react.Component);\n\nexports[\"default\"] = Autosuggest;\n\n_defineProperty(Autosuggest, \"propTypes\", {\n  suggestions: _propTypes[\"default\"].array.isRequired,\n  onSuggestionsFetchRequested: function onSuggestionsFetchRequested(props, propName) {\n    var onSuggestionsFetchRequested = props[propName];\n\n    if (typeof onSuggestionsFetchRequested !== 'function') {\n      throw new Error(\"'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp\");\n    }\n  },\n  onSuggestionsClearRequested: function onSuggestionsClearRequested(props, propName) {\n    var onSuggestionsClearRequested = props[propName];\n\n    if (props.alwaysRenderSuggestions === false && typeof onSuggestionsClearRequested !== 'function') {\n      throw new Error(\"'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp\");\n    }\n  },\n  shouldKeepSuggestionsOnSelect: _propTypes[\"default\"].func,\n  onSuggestionSelected: _propTypes[\"default\"].func,\n  onSuggestionHighlighted: _propTypes[\"default\"].func,\n  renderInputComponent: _propTypes[\"default\"].func,\n  renderSuggestionsContainer: _propTypes[\"default\"].func,\n  getSuggestionValue: _propTypes[\"default\"].func.isRequired,\n  renderSuggestion: _propTypes[\"default\"].func.isRequired,\n  inputProps: function inputProps(props, propName) {\n    var inputProps = props[propName];\n\n    if (!inputProps) {\n      throw new Error(\"'inputProps' must be passed.\");\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(inputProps, 'value')) {\n      throw new Error(\"'inputProps' must have 'value'.\");\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(inputProps, 'onChange')) {\n      throw new Error(\"'inputProps' must have 'onChange'.\");\n    }\n  },\n  shouldRenderSuggestions: _propTypes[\"default\"].func,\n  alwaysRenderSuggestions: _propTypes[\"default\"].bool,\n  multiSection: _propTypes[\"default\"].bool,\n  renderSectionTitle: function renderSectionTitle(props, propName) {\n    var renderSectionTitle = props[propName];\n\n    if (props.multiSection === true && typeof renderSectionTitle !== 'function') {\n      throw new Error(\"'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp\");\n    }\n  },\n  getSectionSuggestions: function getSectionSuggestions(props, propName) {\n    var getSectionSuggestions = props[propName];\n\n    if (props.multiSection === true && typeof getSectionSuggestions !== 'function') {\n      throw new Error(\"'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp\");\n    }\n  },\n  focusInputOnSuggestionClick: _propTypes[\"default\"].bool,\n  highlightFirstSuggestion: _propTypes[\"default\"].bool,\n  theme: _propTypes[\"default\"].object,\n  id: _propTypes[\"default\"].string,\n  containerProps: _propTypes[\"default\"].object // Arbitrary container props\n\n});\n\n_defineProperty(Autosuggest, \"defaultProps\", {\n  renderSuggestionsContainer: defaultRenderSuggestionsContainer,\n  shouldRenderSuggestions: defaultShouldRenderSuggestions,\n  alwaysRenderSuggestions: false,\n  multiSection: false,\n  shouldKeepSuggestionsOnSelect: function shouldKeepSuggestionsOnSelect() {\n    return false;\n  },\n  focusInputOnSuggestionClick: true,\n  highlightFirstSuggestion: false,\n  theme: _theme.defaultTheme,\n  id: '1',\n  containerProps: {}\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _sectionIterator = _interopRequireDefault(require(\"section-iterator\"));\n\nvar _reactThemeable = _interopRequireDefault(require(\"react-themeable\"));\n\nvar _SectionTitle = _interopRequireDefault(require(\"./SectionTitle\"));\n\nvar _ItemList = _interopRequireDefault(require(\"./ItemList\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(n); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar emptyObject = {};\n\nvar defaultRenderInputComponent = function defaultRenderInputComponent(props) {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"input\", props);\n};\n\nvar defaultRenderItemsContainer = function defaultRenderItemsContainer(_ref) {\n  var containerProps = _ref.containerProps,\n      children = _ref.children;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", containerProps, children);\n};\n\nvar defaultTheme = {\n  container: 'react-autowhatever__container',\n  containerOpen: 'react-autowhatever__container--open',\n  input: 'react-autowhatever__input',\n  inputOpen: 'react-autowhatever__input--open',\n  inputFocused: 'react-autowhatever__input--focused',\n  itemsContainer: 'react-autowhatever__items-container',\n  itemsContainerOpen: 'react-autowhatever__items-container--open',\n  itemsList: 'react-autowhatever__items-list',\n  item: 'react-autowhatever__item',\n  itemFirst: 'react-autowhatever__item--first',\n  itemHighlighted: 'react-autowhatever__item--highlighted',\n  sectionContainer: 'react-autowhatever__section-container',\n  sectionContainerFirst: 'react-autowhatever__section-container--first',\n  sectionTitle: 'react-autowhatever__section-title'\n};\n\nvar Autowhatever = /*#__PURE__*/function (_Component) {\n  _inherits(Autowhatever, _Component);\n\n  var _super = _createSuper(Autowhatever);\n\n  function Autowhatever(props) {\n    var _this;\n\n    _classCallCheck(this, Autowhatever);\n\n    _this = _super.call(this, props);\n\n    _defineProperty(_assertThisInitialized(_this), \"storeInputReference\", function (input) {\n      if (input !== null) {\n        _this.input = input;\n      }\n\n      var userRef = _this.props.inputProps.ref;\n\n      if (userRef) {\n        if (typeof userRef === 'function') {\n          userRef(input);\n        } else if (_typeof(userRef) === 'object' && Object.prototype.hasOwnProperty.call(userRef, 'current')) {\n          userRef.current = input;\n        }\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"storeItemsContainerReference\", function (itemsContainer) {\n      if (itemsContainer !== null) {\n        _this.itemsContainer = itemsContainer;\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onHighlightedItemChange\", function (highlightedItem) {\n      _this.highlightedItem = highlightedItem;\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"getItemId\", function (sectionIndex, itemIndex) {\n      if (itemIndex === null) {\n        return null;\n      }\n\n      var id = _this.props.id;\n      var section = sectionIndex === null ? '' : \"section-\".concat(sectionIndex);\n      return \"react-autowhatever-\".concat(id, \"-\").concat(section, \"-item-\").concat(itemIndex);\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onFocus\", function (event) {\n      var inputProps = _this.props.inputProps;\n\n      _this.setState({\n        isInputFocused: true\n      });\n\n      inputProps.onFocus && inputProps.onFocus(event);\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onBlur\", function (event) {\n      var inputProps = _this.props.inputProps;\n\n      _this.setState({\n        isInputFocused: false\n      });\n\n      inputProps.onBlur && inputProps.onBlur(event);\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onKeyDown\", function (event) {\n      var _this$props = _this.props,\n          inputProps = _this$props.inputProps,\n          highlightedSectionIndex = _this$props.highlightedSectionIndex,\n          highlightedItemIndex = _this$props.highlightedItemIndex;\n      var keyCode = event.keyCode;\n\n      switch (keyCode) {\n        case 40: // ArrowDown\n\n        case 38:\n          {\n            // ArrowUp\n            var nextPrev = keyCode === 40 ? 'next' : 'prev';\n\n            var _this$sectionIterator = _this.sectionIterator[nextPrev]([highlightedSectionIndex, highlightedItemIndex]),\n                _this$sectionIterator2 = _slicedToArray(_this$sectionIterator, 2),\n                newHighlightedSectionIndex = _this$sectionIterator2[0],\n                newHighlightedItemIndex = _this$sectionIterator2[1];\n\n            inputProps.onKeyDown(event, {\n              newHighlightedSectionIndex: newHighlightedSectionIndex,\n              newHighlightedItemIndex: newHighlightedItemIndex\n            });\n            break;\n          }\n\n        default:\n          inputProps.onKeyDown(event, {\n            highlightedSectionIndex: highlightedSectionIndex,\n            highlightedItemIndex: highlightedItemIndex\n          });\n      }\n    });\n\n    _this.highlightedItem = null;\n    _this.state = {\n      isInputFocused: false\n    };\n\n    _this.setSectionsItems(props);\n\n    _this.setSectionIterator(props);\n\n    _this.setTheme(props);\n\n    return _this;\n  }\n\n  _createClass(Autowhatever, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.ensureHighlightedItemIsVisible();\n    } // eslint-disable-next-line camelcase, react/sort-comp\n\n  }, {\n    key: \"UNSAFE_componentWillReceiveProps\",\n    value: function UNSAFE_componentWillReceiveProps(nextProps) {\n      if (nextProps.items !== this.props.items) {\n        this.setSectionsItems(nextProps);\n      }\n\n      if (nextProps.items !== this.props.items || nextProps.multiSection !== this.props.multiSection) {\n        this.setSectionIterator(nextProps);\n      }\n\n      if (nextProps.theme !== this.props.theme) {\n        this.setTheme(nextProps);\n      }\n    }\n  }, {\n    key: \"componentDidUpdate\",\n    value: function componentDidUpdate() {\n      this.ensureHighlightedItemIsVisible();\n    }\n  }, {\n    key: \"setSectionsItems\",\n    value: function setSectionsItems(props) {\n      if (props.multiSection) {\n        this.sectionsItems = props.items.map(function (section) {\n          return props.getSectionItems(section);\n        });\n        this.sectionsLengths = this.sectionsItems.map(function (items) {\n          return items.length;\n        });\n        this.allSectionsAreEmpty = this.sectionsLengths.every(function (itemsCount) {\n          return itemsCount === 0;\n        });\n      }\n    }\n  }, {\n    key: \"setSectionIterator\",\n    value: function setSectionIterator(props) {\n      this.sectionIterator = (0, _sectionIterator[\"default\"])({\n        multiSection: props.multiSection,\n        data: props.multiSection ? this.sectionsLengths : props.items.length\n      });\n    }\n  }, {\n    key: \"setTheme\",\n    value: function setTheme(props) {\n      this.theme = (0, _reactThemeable[\"default\"])(props.theme);\n    }\n  }, {\n    key: \"renderSections\",\n    value: function renderSections() {\n      var _this2 = this;\n\n      if (this.allSectionsAreEmpty) {\n        return null;\n      }\n\n      var theme = this.theme;\n      var _this$props2 = this.props,\n          id = _this$props2.id,\n          items = _this$props2.items,\n          renderItem = _this$props2.renderItem,\n          renderItemData = _this$props2.renderItemData,\n          renderSectionTitle = _this$props2.renderSectionTitle,\n          highlightedSectionIndex = _this$props2.highlightedSectionIndex,\n          highlightedItemIndex = _this$props2.highlightedItemIndex,\n          itemProps = _this$props2.itemProps;\n      return items.map(function (section, sectionIndex) {\n        var keyPrefix = \"react-autowhatever-\".concat(id, \"-\");\n        var sectionKeyPrefix = \"\".concat(keyPrefix, \"section-\").concat(sectionIndex, \"-\");\n        var isFirstSection = sectionIndex === 0; // `key` is provided by theme()\n\n        /* eslint-disable react/jsx-key */\n\n        return /*#__PURE__*/_react[\"default\"].createElement(\"div\", theme(\"\".concat(sectionKeyPrefix, \"container\"), 'sectionContainer', isFirstSection && 'sectionContainerFirst'), /*#__PURE__*/_react[\"default\"].createElement(_SectionTitle[\"default\"], {\n          section: section,\n          renderSectionTitle: renderSectionTitle,\n          theme: theme,\n          sectionKeyPrefix: sectionKeyPrefix\n        }), /*#__PURE__*/_react[\"default\"].createElement(_ItemList[\"default\"], {\n          items: _this2.sectionsItems[sectionIndex],\n          itemProps: itemProps,\n          renderItem: renderItem,\n          renderItemData: renderItemData,\n          sectionIndex: sectionIndex,\n          highlightedItemIndex: highlightedSectionIndex === sectionIndex ? highlightedItemIndex : null,\n          onHighlightedItemChange: _this2.onHighlightedItemChange,\n          getItemId: _this2.getItemId,\n          theme: theme,\n          keyPrefix: keyPrefix,\n          ref: _this2.storeItemsListReference\n        }));\n        /* eslint-enable react/jsx-key */\n      });\n    }\n  }, {\n    key: \"renderItems\",\n    value: function renderItems() {\n      var items = this.props.items;\n\n      if (items.length === 0) {\n        return null;\n      }\n\n      var theme = this.theme;\n      var _this$props3 = this.props,\n          id = _this$props3.id,\n          renderItem = _this$props3.renderItem,\n          renderItemData = _this$props3.renderItemData,\n          highlightedSectionIndex = _this$props3.highlightedSectionIndex,\n          highlightedItemIndex = _this$props3.highlightedItemIndex,\n          itemProps = _this$props3.itemProps;\n      return /*#__PURE__*/_react[\"default\"].createElement(_ItemList[\"default\"], {\n        items: items,\n        itemProps: itemProps,\n        renderItem: renderItem,\n        renderItemData: renderItemData,\n        highlightedItemIndex: highlightedSectionIndex === null ? highlightedItemIndex : null,\n        onHighlightedItemChange: this.onHighlightedItemChange,\n        getItemId: this.getItemId,\n        theme: theme,\n        keyPrefix: \"react-autowhatever-\".concat(id, \"-\")\n      });\n    }\n  }, {\n    key: \"ensureHighlightedItemIsVisible\",\n    value: function ensureHighlightedItemIsVisible() {\n      var highlightedItem = this.highlightedItem;\n\n      if (!highlightedItem) {\n        return;\n      }\n\n      var itemsContainer = this.itemsContainer;\n      var itemOffsetRelativeToContainer = highlightedItem.offsetParent === itemsContainer ? highlightedItem.offsetTop : highlightedItem.offsetTop - itemsContainer.offsetTop;\n      var scrollTop = itemsContainer.scrollTop; // Top of the visible area\n\n      if (itemOffsetRelativeToContainer < scrollTop) {\n        // Item is off the top of the visible area\n        scrollTop = itemOffsetRelativeToContainer;\n      } else if (itemOffsetRelativeToContainer + highlightedItem.offsetHeight > scrollTop + itemsContainer.offsetHeight) {\n        // Item is off the bottom of the visible area\n        scrollTop = itemOffsetRelativeToContainer + highlightedItem.offsetHeight - itemsContainer.offsetHeight;\n      }\n\n      if (scrollTop !== itemsContainer.scrollTop) {\n        itemsContainer.scrollTop = scrollTop;\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var theme = this.theme;\n      var _this$props4 = this.props,\n          id = _this$props4.id,\n          multiSection = _this$props4.multiSection,\n          renderInputComponent = _this$props4.renderInputComponent,\n          renderItemsContainer = _this$props4.renderItemsContainer,\n          highlightedSectionIndex = _this$props4.highlightedSectionIndex,\n          highlightedItemIndex = _this$props4.highlightedItemIndex;\n      var isInputFocused = this.state.isInputFocused;\n      var renderedItems = multiSection ? this.renderSections() : this.renderItems();\n      var isOpen = renderedItems !== null;\n      var ariaActivedescendant = this.getItemId(highlightedSectionIndex, highlightedItemIndex);\n      var itemsContainerId = \"react-autowhatever-\".concat(id);\n\n      var containerProps = _objectSpread({\n        role: 'combobox',\n        'aria-haspopup': 'listbox',\n        'aria-owns': itemsContainerId,\n        'aria-expanded': isOpen\n      }, theme(\"react-autowhatever-\".concat(id, \"-container\"), 'container', isOpen && 'containerOpen'), {}, this.props.containerProps);\n\n      var inputComponent = renderInputComponent(_objectSpread({\n        type: 'text',\n        value: '',\n        autoComplete: 'off',\n        'aria-autocomplete': 'list',\n        'aria-controls': itemsContainerId,\n        'aria-activedescendant': ariaActivedescendant\n      }, theme(\"react-autowhatever-\".concat(id, \"-input\"), 'input', isOpen && 'inputOpen', isInputFocused && 'inputFocused'), {}, this.props.inputProps, {\n        onFocus: this.onFocus,\n        onBlur: this.onBlur,\n        onKeyDown: this.props.inputProps.onKeyDown && this.onKeyDown,\n        ref: this.storeInputReference\n      }));\n      var itemsContainer = renderItemsContainer({\n        containerProps: _objectSpread({\n          id: itemsContainerId,\n          role: 'listbox'\n        }, theme(\"react-autowhatever-\".concat(id, \"-items-container\"), 'itemsContainer', isOpen && 'itemsContainerOpen'), {\n          ref: this.storeItemsContainerReference\n        }),\n        children: renderedItems\n      });\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", containerProps, inputComponent, itemsContainer);\n    }\n  }]);\n\n  return Autowhatever;\n}(_react.Component);\n\nexports[\"default\"] = Autowhatever;\n\n_defineProperty(Autowhatever, \"propTypes\", {\n  id: _propTypes[\"default\"].string,\n  // Used in aria-* attributes. If multiple Autowhatever's are rendered on a page, they must have unique ids.\n  multiSection: _propTypes[\"default\"].bool,\n  // Indicates whether a multi section layout should be rendered.\n  renderInputComponent: _propTypes[\"default\"].func,\n  // When specified, it is used to render the input element.\n  renderItemsContainer: _propTypes[\"default\"].func,\n  // Renders the items container.\n  items: _propTypes[\"default\"].array.isRequired,\n  // Array of items or sections to render.\n  renderItem: _propTypes[\"default\"].func,\n  // This function renders a single item.\n  renderItemData: _propTypes[\"default\"].object,\n  // Arbitrary data that will be passed to renderItem()\n  renderSectionTitle: _propTypes[\"default\"].func,\n  // This function gets a section and renders its title.\n  getSectionItems: _propTypes[\"default\"].func,\n  // This function gets a section and returns its items, which will be passed into `renderItem` for rendering.\n  containerProps: _propTypes[\"default\"].object,\n  // Arbitrary container props\n  inputProps: _propTypes[\"default\"].object,\n  // Arbitrary input props\n  itemProps: _propTypes[\"default\"].oneOfType([// Arbitrary item props\n  _propTypes[\"default\"].object, _propTypes[\"default\"].func]),\n  highlightedSectionIndex: _propTypes[\"default\"].number,\n  // Section index of the highlighted item\n  highlightedItemIndex: _propTypes[\"default\"].number,\n  // Highlighted item index (within a section)\n  theme: _propTypes[\"default\"].oneOfType([// Styles. See: https://github.com/markdalgleish/react-themeable\n  _propTypes[\"default\"].object, _propTypes[\"default\"].array])\n});\n\n_defineProperty(Autowhatever, \"defaultProps\", {\n  id: '1',\n  multiSection: false,\n  renderInputComponent: defaultRenderInputComponent,\n  renderItemsContainer: defaultRenderItemsContainer,\n  renderItem: function renderItem() {\n    throw new Error('`renderItem` must be provided');\n  },\n  renderItemData: emptyObject,\n  renderSectionTitle: function renderSectionTitle() {\n    throw new Error('`renderSectionTitle` must be provided');\n  },\n  getSectionItems: function getSectionItems() {\n    throw new Error('`getSectionItems` must be provided');\n  },\n  containerProps: emptyObject,\n  inputProps: emptyObject,\n  itemProps: emptyObject,\n  highlightedSectionIndex: null,\n  highlightedItemIndex: null,\n  theme: defaultTheme\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _compareObjects = _interopRequireDefault(require(\"./compareObjects\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar Item = /*#__PURE__*/function (_Component) {\n  _inherits(Item, _Component);\n\n  var _super = _createSuper(Item);\n\n  function Item() {\n    var _this;\n\n    _classCallCheck(this, Item);\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _super.call.apply(_super, [this].concat(args));\n\n    _defineProperty(_assertThisInitialized(_this), \"storeItemReference\", function (item) {\n      if (item !== null) {\n        _this.item = item;\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onMouseEnter\", function (event) {\n      var _this$props = _this.props,\n          sectionIndex = _this$props.sectionIndex,\n          itemIndex = _this$props.itemIndex;\n\n      _this.props.onMouseEnter(event, {\n        sectionIndex: sectionIndex,\n        itemIndex: itemIndex\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onMouseLeave\", function (event) {\n      var _this$props2 = _this.props,\n          sectionIndex = _this$props2.sectionIndex,\n          itemIndex = _this$props2.itemIndex;\n\n      _this.props.onMouseLeave(event, {\n        sectionIndex: sectionIndex,\n        itemIndex: itemIndex\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onMouseDown\", function (event) {\n      var _this$props3 = _this.props,\n          sectionIndex = _this$props3.sectionIndex,\n          itemIndex = _this$props3.itemIndex;\n\n      _this.props.onMouseDown(event, {\n        sectionIndex: sectionIndex,\n        itemIndex: itemIndex\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onClick\", function (event) {\n      var _this$props4 = _this.props,\n          sectionIndex = _this$props4.sectionIndex,\n          itemIndex = _this$props4.itemIndex;\n\n      _this.props.onClick(event, {\n        sectionIndex: sectionIndex,\n        itemIndex: itemIndex\n      });\n    });\n\n    return _this;\n  }\n\n  _createClass(Item, [{\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps) {\n      return (0, _compareObjects[\"default\"])(nextProps, this.props, ['renderItemData']);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$props5 = this.props,\n          isHighlighted = _this$props5.isHighlighted,\n          item = _this$props5.item,\n          renderItem = _this$props5.renderItem,\n          renderItemData = _this$props5.renderItemData,\n          restProps = _objectWithoutProperties(_this$props5, [\"isHighlighted\", \"item\", \"renderItem\", \"renderItemData\"]);\n\n      delete restProps.sectionIndex;\n      delete restProps.itemIndex;\n\n      if (typeof restProps.onMouseEnter === 'function') {\n        restProps.onMouseEnter = this.onMouseEnter;\n      }\n\n      if (typeof restProps.onMouseLeave === 'function') {\n        restProps.onMouseLeave = this.onMouseLeave;\n      }\n\n      if (typeof restProps.onMouseDown === 'function') {\n        restProps.onMouseDown = this.onMouseDown;\n      }\n\n      if (typeof restProps.onClick === 'function') {\n        restProps.onClick = this.onClick;\n      }\n\n      return /*#__PURE__*/_react[\"default\"].createElement(\"li\", _extends({\n        role: \"option\"\n      }, restProps, {\n        ref: this.storeItemReference\n      }), renderItem(item, _objectSpread({\n        isHighlighted: isHighlighted\n      }, renderItemData)));\n    }\n  }]);\n\n  return Item;\n}(_react.Component);\n\nexports[\"default\"] = Item;\n\n_defineProperty(Item, \"propTypes\", {\n  sectionIndex: _propTypes[\"default\"].number,\n  isHighlighted: _propTypes[\"default\"].bool.isRequired,\n  itemIndex: _propTypes[\"default\"].number.isRequired,\n  item: _propTypes[\"default\"].any.isRequired,\n  renderItem: _propTypes[\"default\"].func.isRequired,\n  renderItemData: _propTypes[\"default\"].object.isRequired,\n  onMouseEnter: _propTypes[\"default\"].func,\n  onMouseLeave: _propTypes[\"default\"].func,\n  onMouseDown: _propTypes[\"default\"].func,\n  onClick: _propTypes[\"default\"].func\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _Item = _interopRequireDefault(require(\"./Item\"));\n\nvar _compareObjects = _interopRequireDefault(require(\"./compareObjects\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ItemsList = /*#__PURE__*/function (_Component) {\n  _inherits(ItemsList, _Component);\n\n  var _super = _createSuper(ItemsList);\n\n  function ItemsList() {\n    var _this;\n\n    _classCallCheck(this, ItemsList);\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _super.call.apply(_super, [this].concat(args));\n\n    _defineProperty(_assertThisInitialized(_this), \"storeHighlightedItemReference\", function (highlightedItem) {\n      _this.props.onHighlightedItemChange(highlightedItem === null ? null : highlightedItem.item);\n    });\n\n    return _this;\n  }\n\n  _createClass(ItemsList, [{\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps) {\n      return (0, _compareObjects[\"default\"])(nextProps, this.props, ['itemProps']);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this2 = this;\n\n      var _this$props = this.props,\n          items = _this$props.items,\n          itemProps = _this$props.itemProps,\n          renderItem = _this$props.renderItem,\n          renderItemData = _this$props.renderItemData,\n          sectionIndex = _this$props.sectionIndex,\n          highlightedItemIndex = _this$props.highlightedItemIndex,\n          getItemId = _this$props.getItemId,\n          theme = _this$props.theme,\n          keyPrefix = _this$props.keyPrefix;\n      var sectionPrefix = sectionIndex === null ? keyPrefix : \"\".concat(keyPrefix, \"section-\").concat(sectionIndex, \"-\");\n      var isItemPropsFunction = typeof itemProps === 'function';\n      return /*#__PURE__*/_react[\"default\"].createElement(\"ul\", _extends({\n        role: \"listbox\"\n      }, theme(\"\".concat(sectionPrefix, \"items-list\"), 'itemsList')), items.map(function (item, itemIndex) {\n        var isFirst = itemIndex === 0;\n        var isHighlighted = itemIndex === highlightedItemIndex;\n        var itemKey = \"\".concat(sectionPrefix, \"item-\").concat(itemIndex);\n        var itemPropsObj = isItemPropsFunction ? itemProps({\n          sectionIndex: sectionIndex,\n          itemIndex: itemIndex\n        }) : itemProps;\n\n        var allItemProps = _objectSpread({\n          id: getItemId(sectionIndex, itemIndex),\n          'aria-selected': isHighlighted\n        }, theme(itemKey, 'item', isFirst && 'itemFirst', isHighlighted && 'itemHighlighted'), {}, itemPropsObj);\n\n        if (isHighlighted) {\n          allItemProps.ref = _this2.storeHighlightedItemReference;\n        } // `key` is provided by theme()\n\n        /* eslint-disable react/jsx-key */\n\n\n        return /*#__PURE__*/_react[\"default\"].createElement(_Item[\"default\"], _extends({}, allItemProps, {\n          sectionIndex: sectionIndex,\n          isHighlighted: isHighlighted,\n          itemIndex: itemIndex,\n          item: item,\n          renderItem: renderItem,\n          renderItemData: renderItemData\n        }));\n        /* eslint-enable react/jsx-key */\n      }));\n    }\n  }]);\n\n  return ItemsList;\n}(_react.Component);\n\nexports[\"default\"] = ItemsList;\n\n_defineProperty(ItemsList, \"propTypes\", {\n  items: _propTypes[\"default\"].array.isRequired,\n  itemProps: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].object, _propTypes[\"default\"].func]),\n  renderItem: _propTypes[\"default\"].func.isRequired,\n  renderItemData: _propTypes[\"default\"].object.isRequired,\n  sectionIndex: _propTypes[\"default\"].number,\n  highlightedItemIndex: _propTypes[\"default\"].number,\n  onHighlightedItemChange: _propTypes[\"default\"].func.isRequired,\n  getItemId: _propTypes[\"default\"].func.isRequired,\n  theme: _propTypes[\"default\"].func.isRequired,\n  keyPrefix: _propTypes[\"default\"].string.isRequired\n});\n\n_defineProperty(ItemsList, \"defaultProps\", {\n  sectionIndex: null\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _compareObjects = _interopRequireDefault(require(\"./compareObjects\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar SectionTitle = /*#__PURE__*/function (_Component) {\n  _inherits(SectionTitle, _Component);\n\n  var _super = _createSuper(SectionTitle);\n\n  function SectionTitle() {\n    _classCallCheck(this, SectionTitle);\n\n    return _super.apply(this, arguments);\n  }\n\n  _createClass(SectionTitle, [{\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps) {\n      return (0, _compareObjects[\"default\"])(nextProps, this.props);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$props = this.props,\n          section = _this$props.section,\n          renderSectionTitle = _this$props.renderSectionTitle,\n          theme = _this$props.theme,\n          sectionKeyPrefix = _this$props.sectionKeyPrefix;\n      var sectionTitle = renderSectionTitle(section);\n\n      if (!sectionTitle) {\n        return null;\n      }\n\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", theme(\"\".concat(sectionKeyPrefix, \"title\"), 'sectionTitle'), sectionTitle);\n    }\n  }]);\n\n  return SectionTitle;\n}(_react.Component);\n\nexports[\"default\"] = SectionTitle;\n\n_defineProperty(SectionTitle, \"propTypes\", {\n  section: _propTypes[\"default\"].any.isRequired,\n  renderSectionTitle: _propTypes[\"default\"].func.isRequired,\n  theme: _propTypes[\"default\"].func.isRequired,\n  sectionKeyPrefix: _propTypes[\"default\"].string.isRequired\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = compareObjects;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction compareObjects(objA, objB) {\n  var keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n  if (objA === objB) {\n    return false;\n  }\n\n  var aKeys = Object.keys(objA);\n  var bKeys = Object.keys(objB);\n\n  if (aKeys.length !== bKeys.length) {\n    return true;\n  }\n\n  var keysMap = {};\n  var i, len;\n\n  for (i = 0, len = keys.length; i < len; i++) {\n    keysMap[keys[i]] = true;\n  }\n\n  for (i = 0, len = aKeys.length; i < len; i++) {\n    var key = aKeys[i];\n    var aValue = objA[key];\n    var bValue = objB[key];\n\n    if (aValue === bValue) {\n      continue;\n    }\n\n    if (!keysMap[key] || aValue === null || bValue === null || _typeof(aValue) !== 'object' || _typeof(bValue) !== 'object') {\n      return true;\n    }\n\n    var aValueKeys = Object.keys(aValue);\n    var bValueKeys = Object.keys(bValue);\n\n    if (aValueKeys.length !== bValueKeys.length) {\n      return true;\n    }\n\n    for (var n = 0, length = aValueKeys.length; n < length; n++) {\n      var aValueKey = aValueKeys[n];\n\n      if (aValue[aValueKey] !== bValue[aValueKey]) {\n        return true;\n      }\n    }\n  }\n\n  return false;\n}","\"use strict\";\n\nmodule.exports = require('./Autosuggest')[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.mapToAutowhateverTheme = exports.defaultTheme = void 0;\nvar defaultTheme = {\n  container: 'react-autosuggest__container',\n  containerOpen: 'react-autosuggest__container--open',\n  input: 'react-autosuggest__input',\n  inputOpen: 'react-autosuggest__input--open',\n  inputFocused: 'react-autosuggest__input--focused',\n  suggestionsContainer: 'react-autosuggest__suggestions-container',\n  suggestionsContainerOpen: 'react-autosuggest__suggestions-container--open',\n  suggestionsList: 'react-autosuggest__suggestions-list',\n  suggestion: 'react-autosuggest__suggestion',\n  suggestionFirst: 'react-autosuggest__suggestion--first',\n  suggestionHighlighted: 'react-autosuggest__suggestion--highlighted',\n  sectionContainer: 'react-autosuggest__section-container',\n  sectionContainerFirst: 'react-autosuggest__section-container--first',\n  sectionTitle: 'react-autosuggest__section-title'\n};\nexports.defaultTheme = defaultTheme;\n\nvar mapToAutowhateverTheme = function mapToAutowhateverTheme(theme) {\n  var result = {};\n\n  for (var key in theme) {\n    switch (key) {\n      case 'suggestionsContainer':\n        result['itemsContainer'] = theme[key];\n        break;\n\n      case 'suggestionsContainerOpen':\n        result['itemsContainerOpen'] = theme[key];\n        break;\n\n      case 'suggestion':\n        result['item'] = theme[key];\n        break;\n\n      case 'suggestionFirst':\n        result['itemFirst'] = theme[key];\n        break;\n\n      case 'suggestionHighlighted':\n        result['itemHighlighted'] = theme[key];\n        break;\n\n      case 'suggestionsList':\n        result['itemsList'] = theme[key];\n        break;\n\n      default:\n        result[key] = theme[key];\n    }\n  }\n\n  return result;\n};\n\nexports.mapToAutowhateverTheme = mapToAutowhateverTheme;","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n  value: true\n});\n\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }\n\nvar _objectAssign = require('object-assign');\n\nvar _objectAssign2 = _interopRequireDefault(_objectAssign);\n\nvar truthy = function truthy(x) {\n  return x;\n};\n\nexports['default'] = function (input) {\n  var _ref = Array.isArray(input) && input.length === 2 ? input : [input, null];\n\n  var _ref2 = _slicedToArray(_ref, 2);\n\n  var theme = _ref2[0];\n  var classNameDecorator = _ref2[1];\n\n  return function (key) {\n    for (var _len = arguments.length, names = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      names[_key - 1] = arguments[_key];\n    }\n\n    var styles = names.map(function (name) {\n      return theme[name];\n    }).filter(truthy);\n\n    return typeof styles[0] === 'string' || typeof classNameDecorator === 'function' ? { key: key, className: classNameDecorator ? classNameDecorator.apply(undefined, _toConsumableArray(styles)) : styles.join(' ') } : { key: key, style: _objectAssign2['default'].apply(undefined, [{}].concat(_toConsumableArray(styles))) };\n  };\n};\n\nmodule.exports = exports['default'];","'use strict';\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction ToObject(val) {\n\tif (val == null) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction ownEnumerableKeys(obj) {\n\tvar keys = Object.getOwnPropertyNames(obj);\n\n\tif (Object.getOwnPropertySymbols) {\n\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t}\n\n\treturn keys.filter(function (key) {\n\t\treturn propIsEnumerable.call(obj, key);\n\t});\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar keys;\n\tvar to = ToObject(target);\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = arguments[s];\n\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tto[keys[i]] = from[keys[i]];\n\t\t}\n\t}\n\n\treturn to;\n};\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n  var storage = (0, _getStorage.default)(type);\n  return {\n    getItem: function getItem(key) {\n      return new Promise(function (resolve, reject) {\n        resolve(storage.getItem(key));\n      });\n    },\n    setItem: function setItem(key, item) {\n      return new Promise(function (resolve, reject) {\n        resolve(storage.setItem(key, item));\n      });\n    },\n    removeItem: function removeItem(key) {\n      return new Promise(function (resolve, reject) {\n        resolve(storage.removeItem(key));\n      });\n    }\n  };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n  getItem: noop,\n  setItem: noop,\n  removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n  if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n    return false;\n  }\n\n  try {\n    var storage = self[storageType];\n    var testKey = \"redux-persist \".concat(storageType, \" test\");\n    storage.setItem(testKey, 'test');\n    storage.getItem(testKey);\n    storage.removeItem(testKey);\n  } catch (e) {\n    if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n    return false;\n  }\n\n  return true;\n}\n\nfunction getStorage(type) {\n  var storageType = \"\".concat(type, \"Storage\");\n  if (hasStorage(storageType)) return self[storageType];else {\n    if (process.env.NODE_ENV !== 'production') {\n      console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n    }\n\n    return noopStorage;\n  }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","\"use strict\";\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nmodule.exports = function (_ref) {\n  var data = _ref.data;\n  var multiSection = _ref.multiSection;\n\n  function nextNonEmptySectionIndex(sectionIndex) {\n    if (sectionIndex === null) {\n      sectionIndex = 0;\n    } else {\n      sectionIndex++;\n    }\n\n    while (sectionIndex < data.length && data[sectionIndex] === 0) {\n      sectionIndex++;\n    }\n\n    return sectionIndex === data.length ? null : sectionIndex;\n  }\n\n  function prevNonEmptySectionIndex(sectionIndex) {\n    if (sectionIndex === null) {\n      sectionIndex = data.length - 1;\n    } else {\n      sectionIndex--;\n    }\n\n    while (sectionIndex >= 0 && data[sectionIndex] === 0) {\n      sectionIndex--;\n    }\n\n    return sectionIndex === -1 ? null : sectionIndex;\n  }\n\n  function next(position) {\n    var _position = _slicedToArray(position, 2);\n\n    var sectionIndex = _position[0];\n    var itemIndex = _position[1];\n\n\n    if (multiSection) {\n      if (itemIndex === null || itemIndex === data[sectionIndex] - 1) {\n        sectionIndex = nextNonEmptySectionIndex(sectionIndex);\n\n        if (sectionIndex === null) {\n          return [null, null];\n        }\n\n        return [sectionIndex, 0];\n      }\n\n      return [sectionIndex, itemIndex + 1];\n    }\n\n    if (data === 0 || itemIndex === data - 1) {\n      return [null, null];\n    }\n\n    if (itemIndex === null) {\n      return [null, 0];\n    }\n\n    return [null, itemIndex + 1];\n  }\n\n  function prev(position) {\n    var _position2 = _slicedToArray(position, 2);\n\n    var sectionIndex = _position2[0];\n    var itemIndex = _position2[1];\n\n\n    if (multiSection) {\n      if (itemIndex === null || itemIndex === 0) {\n        sectionIndex = prevNonEmptySectionIndex(sectionIndex);\n\n        if (sectionIndex === null) {\n          return [null, null];\n        }\n\n        return [sectionIndex, data[sectionIndex] - 1];\n      }\n\n      return [sectionIndex, itemIndex - 1];\n    }\n\n    if (data === 0 || itemIndex === 0) {\n      return [null, null];\n    }\n\n    if (itemIndex === null) {\n      return [null, data - 1];\n    }\n\n    return [null, itemIndex - 1];\n  }\n\n  function isLast(position) {\n    return next(position)[1] === null;\n  }\n\n  return {\n    next: next,\n    prev: prev,\n    isLast: isLast\n  };\n};\n","'use strict';\n\nfunction shallowEqualArrays(arrA, arrB) {\n  if (arrA === arrB) {\n    return true;\n  }\n\n  if (!arrA || !arrB) {\n    return false;\n  }\n\n  var len = arrA.length;\n\n  if (arrB.length !== len) {\n    return false;\n  }\n\n  for (var i = 0; i < len; i++) {\n    if (arrA[i] !== arrB[i]) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nmodule.exports = shallowEqualArrays;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__3305__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3545__;","module.exports = __WEBPACK_EXTERNAL_MODULE__7388__;","module.exports = __WEBPACK_EXTERNAL_MODULE__881__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5980__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2650__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3929__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3129__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1177__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\n__webpack_require__(7388);\nvar __webpack_exports__ = __webpack_require__(779);\n"],"names":["i","AppConfig","props","backendSrv","getBackendSrv","onEnable","bind","onDisable","settings","this","post","plugin","meta","id","updatePluginSettings","enabled","jsonData","pinned","window","location","reload","isEnabled","className","css","Icon","name","Button","variant","onClick","PureComponent","obj","Symbol","iterator","constructor","prototype","instance","Constructor","TypeError","target","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","self","call","o","setPrototypeOf","getPrototypeOf","__proto__","ReferenceError","p","value","SearchEntity","EntityType","TextItemResponseField","PersistGate","_PureComponent","_getPrototypeOf2","_this","_len","arguments","args","Array","_key","apply","concat","bootstrapped","persistor","getState","onBeforeLift","Promise","resolve","finally","setState","_unsubscribe","protoProps","staticProps","subClass","superClass","create","subscribe","handlePersistorState","children","state","loading","SearchNotAvailableError","message","Error","ADD_BOOKMARK","REMOVE_BOOKMARK","CLEAR_BOOKMARKS","clearBookmarks","type","getCardStyles","stylesFactory","theme","background","container","spacing","md","border","radius","sm","colors","bg2","bg1","withTheme","styles","spinnerOuter","spinnerContainer","spinner","Loader","loaded","cx","Spinner","size","React","FetchStatus","detailPageContainer","detailPageItem","detailPageHeader","detailPageTitle","detailPageEntityType","text","detailPageDescription","detailPageActions","detailPageProperties","detailPageBtn","gridList","gridListSingleCol","gridItem","gridTitle","gridValue","radioBtnGroupContainer","instances","VerticalGroup","map","InstanceDomainDetailPage","renderDetail","renderDesc","renderBookmarkBtn","renderIndom","onBookmark","onUnbookmark","indom","bookmarks","some","bookmark","data","InstanceDomain","status","PENDING","SUCCESS","ERROR","description","oneline","helptext","isBookmarked","icon","fill","HorizontalGroup","justify","connect","search","freeze","MAX_SEARCH_SHORTCUTS","REQUEST_TIMEOUT","RESULTS_PER_PAGE","ALLOW_SEARCH_SUGGESTIONS","LOAD_METRIC_INIT","LOAD_METRIC_PENDING","LOAD_METRIC_SUCCESS","LOAD_METRIC_ERROR","LOAD_METRIC_SIBLINGS_INIT","LOAD_METRIC_SIBLINGS_PENDING","LOAD_METRIC_SIBLINGS_SUCCESS","LOAD_METRIC_SIBLINGS_ERROR","LOAD_INDOM_INIT","LOAD_INDOM_PENDING","LOAD_INDOM_SUCCESS","LOAD_INDOM_ERROR","ViewState","loadMetric","dispatch","entityService","metric","payload","loadMetricSiblings","metricName","depth","relatedMetricNames","loadIndom","ADD_HISTORY","CLEAR_HISTORY","SET_QUERY","LOAD_RESULT_INIT","LOAD_RESULT_PENDING","LOAD_RESULT_SUCCESS","LOAD_RESULT_ERROR","SET_VIEW","querySearch","query","searchService","limit","Config","offset","pageNum","pattern","entityFlags","highlight","Oneline","Helptext","Name","response","error","history","record","openDetail","Metric","then","Labels","labels","entries","toString","onIndomClick","pmid","semantics","units","source","SeriesTabOpt","Series","initialState","initTab","selectedOption","setSelected","renderTab","Meta","options","label","series","title","RadioButtonGroup","disabled","onChange","fullWidth","bindActionCreators","MetricDetailPage","renderMetric","renderPreviewBtn","onPreview","help","EntityTabOpt","dispatchProps","addBookmark","item","removeBookmark","DetailPage","onMetricPreview","locationSrv","getLocationSrv","path","update","refresh","entity","bookmarkListBtnWithNoSpacing","bookmarkListContainer","bookmarkListContainerMultiCol","BookmarkList","onClearBookmarksClick","onBookmarkClick","bookmarkDesc","multiCol","index","showClearBtn","appLayout","wrappedBtn","SearchEntityUtil","searchEntity","result","Metrics","push","Instances","Instance","InstanceDomains","searchHistoryListBtnWithNoSpacing","searchHistoryListContainer","searchHistoryListContainerMultiCol","SearchHistoryList","onClearSearchHistoryClick","onSearchHistoryClick","desc","types","toEntityTypes","join","searchHistoryItemDesc","searchHistory","clearSearchHistory","indexPageContainer","IndexPage","searchResultItem","searchResultHeader","searchResultTitle","searchResultDescription","searchResultFooter","searchResultBtnWithNoSpacing","SearchResult","renderName","renderFooter","dangerouslySetInnerHTML","__html","typography","heading","h4","linkExternal","searchPageMatchesDesc","textSemiWeak","searchPageElapsed","textWeak","paginationContainer","log","getLogger","SearchPage","onPaginationClick","onDetailClick","renderResults","renderMatchesDesc","renderSearchElapsedTime","Math","ceil","total","undefined","html","el","document","createElement","innerHTML","textContent","innerText","elapsed","pagesCount","currentPage","INIT","results","x","Pagination","numberOfPages","onNavigate","setView","view","actionsBtnWithNoSpacing","Actions","queryLatestSearch","openIndex","showBackToPatternBtn","showBackToIndexPageBtn","asideContainer","asideButton","Aside","renderContents","renderMetricSiblings","renderIndomMetrics","onMetricClick","metricDetail","siblings","m","indomDetail","metrics","Component","services","searchContainer","searchSubmitBtn","searchFormGroup","searchBlockWrapper","autosuggestWrapper","autosuggestContainerOpen","autosuggestInput","formInputHeight","formInputBorder","autosuggestInputOpen","autosuggestInputFocused","autosuggestSuggestionsContainer","bodyBg","autosuggestSuggestionsContainerOpen","autosuggestSuggestionsList","autosuggestSuggestion","autosuggestSuggestionFirst","autosuggestSuggestionHighlighted","textBlue","autosuggestSectionContainer","autosuggestSectionContainerFirst","autosuggestSectionTitle","SearchForm","autosuggestTheme","containerOpen","input","inputOpen","inputFocused","suggestionsContainer","suggestionsContainerOpen","suggestionsList","suggestion","suggestionFirst","suggestionHighlighted","sectionContainer","sectionContainerFirst","sectionTitle","onSubmit","onInputChange","onSuggestionsClearRequested","onSuggestionsFetchRequested","getSuggestionValue","onSuggestionSelected","allowSuggestions","renderSuggestion","renderSearchInput","setEntityFlag","valid","All","suggestions","oldProps","newProps","trim","checkQueryValidity","e","preventDefault","event","params","newValue","request","autocomplete","searchInputProps","placeholder","shouldRenderSuggestions","inputProps","metricFlag","instancesFlag","instanceDomainsFlag","Checkbox","withServices","App","renderPageComponent","GenericError","err","NetworkError","statusText","has","getRequestOptions","instanceSettings","defaultRequestOptions","headers","showSuccessAlert","basicAuth","withCredentials","rootLogger","logPrefixer","template","TimeoutError","timeout","promise","ms","reject","setTimeout","clearTimeout","PmSearchApiService","apiConfig","dsInstanceSettings","defaults","firstValueFrom","fetch","timeoutMs","url","baseUrl","success","keys","isNoRecordResponse","field","return","PmSeriesApiService","names","seriesService","entitySeriesTransformed","expr","all","descs","metadata","entitySeries","_","reduce","prev","val","searchRecord","indomData","groupedData","mapSparseData","metricNameSegments","split","parents","slice","match","sort","getDatasourceSettings","get","datasources","redisDatasource","find","ds","redisPluginConfig","initServices","EntityService","KEY_PREFIX","FLUSH","REHYDRATE","PAUSE","PERSIST","PURGE","REGISTER","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","autoMergeLevel1","inboundState","originalState","reducedState","_ref","debug","newState","forEach","getOwnPropertyDescriptors","defineProperties","_objectSpread","createPersistoid","config","serialize","blacklist","whitelist","transforms","throttle","storageKey","keyPrefix","storage","defaultSerialize","writeFailHandler","lastState","stagedState","keysToProcess","timeIterator","writePromise","processNextKey","clearInterval","shift","endState","subState","transformer","in","setItem","catch","onWriteFail","passWhitelistBlacklist","indexOf","setInterval","flush","JSON","stringify","deserialize","defaultDeserialize","getItem","serialized","rawState","reduceRight","out","serial","parse","warnIfRemoveError","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","propertyIsEnumerable","arr","isArray","arr2","iter","from","registry","persistorReducer","action","firstIndex","splice","persistStore","store","cb","boostrappedCb","_pStore","createStore","enhancer","register","rehydrate","rehydrateAction","purge","purgeResult","flushResult","pause","persist","manualPersist","createThunkMiddleware","extraArgument","next","thunk","withExtraArgument","initialQuery","searchReducer","baseReducer","version","stateReconciler","getStoredState","_persistoid","_purge","_paused","conditionalUpdate","_persist","rehydrated","restState","_sealed","_rehydrate","restoredState","migrate","s","v","migratedState","migrateErr","removeItem","purgeStoredState","_newState","persistReducer","combineReducers","Index","pop","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","initStore","middleware","rootReducer","applyMiddleware","Search","errorMsg","updateNav","prevProps","tab","onNavChanged","node","img","info","logos","large","subTitle","main","Provider","AppPlugin","addConfigPage","body","setRootPage","root","loglevel","save","merge","hasOwnProperty","levelFormatter","level","toUpperCase","nameFormatter","timestampFormatter","date","toTimeString","replace","format","configs","logger","setLevel","originalFactory","methodFactory","parent","methodName","logLevel","loggerName","originalMethod","hasTimestamp","hasLevel","hasName","content","timestamp","Date","lname","unshift","getLevel","warn","api","reg","prefix","noConflict","definition","noop","undefinedType","isIE","navigator","test","userAgent","logMethods","bindMethod","method","Function","traceForIE","console","trace","realMethod","replaceLoggingMethods","enableLoggingWhenConsoleArrives","defaultMethodFactory","Logger","defaultLevel","factory","currentLevel","persistLevelIfPossible","levelNum","levelName","localStorage","ignore","cookie","encodeURIComponent","getPersistedLevel","storedLevel","exec","levels","clearPersistedLevel","SILENT","setDefaultLevel","resetLevel","enableAll","TRACE","disableAll","initialLevel","defaultLogger","_loggersByName","_log","getLoggers","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","propName","componentName","propFullName","secret","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","string","symbol","any","arrayOf","element","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","_react","__esModule","_typeof","cache","_getRequireWildcardCache","newObj","hasPropertyDescriptor","set","_interopRequireWildcard","_propTypes","_interopRequireDefault","_arrays","_Autowhatever","_theme","WeakMap","_defineProperty","_defineProperties","_possibleConstructorReturn","_assertThisInitialized","_isNativeReflectConstruct","Reflect","construct","sham","Proxy","_getPrototypeOf","_setPrototypeOf","alwaysTrue","REASON_SUGGESTIONS_REVEALED","REASON_INPUT_FOCUSED","REASON_INPUT_CHANGED","REASON_ESCAPE_PRESSED","Autosuggest","_Component","_inherits","Derived","_super","Super","NewTarget","_ref2","_alwaysRenderSuggestions","alwaysRenderSuggestions","_classCallCheck","justClickedOnSuggestionsContainer","detail","getAttribute","parentNode","autowhatever","_ref3","sectionIndex","itemIndex","updateHighlightedSuggestion","pressedSuggestion","justSelectedSuggestion","justMouseEntered","multiSection","focus","_this$props","keepSuggestionsOnSelect","shouldKeepSuggestionsOnSelect","suggestionValue","reason","resetHighlightedSuggestion","_this$props2","focusInputOnSuggestionClick","_this$getSuggestionIn","getSuggestionIndices","findSuggestionElement","suggestionIndex","clickedSuggestion","getSuggestion","clickedSuggestionValue","maybeCallOnChange","closeSuggestions","onBlur","_this$props3","highlightedSuggestion","getHighlightedSuggestion","shouldRender","isFocused","highlightedSectionIndex","highlightedSuggestionIndex","valueBeforeUpDown","isCollapsed","blurEvent","_ref4","onMouseEnter","onSuggestionMouseEnter","onMouseLeave","onSuggestionMouseLeave","onMouseDown","onSuggestionMouseDown","onTouchStart","onSuggestionTouchStart","onTouchMove","onSuggestionTouchMove","onSuggestionClick","_ref5","containerProps","renderSuggestionsContainer","getQuery","justPressedUpDown","addEventListener","onDocumentMouseDown","onDocumentMouseUp","itemsContainer","nextProps","shouldResetHighlighting","highlightFirstSuggestion","willRenderSuggestions","revealSuggestions","prevState","_this$props4","onSuggestionHighlighted","removeEventListener","prevValue","_this2","shouldResetValueBeforeUpDown","_this$props5","getSectionSuggestions","_this$state","suggestionElement","parseInt","startNode","_this$props$inputProp","_this3","_this$props6","renderInputComponent","renderSectionTitle","_this$state2","_onFocus","onFocus","_onKeyDown","onKeyDown","isOpen","items","autowhateverInputProps","scrollTop","keyCode","newHighlightedSectionIndex","newHighlightedItemIndex","getSuggestionValueByIndex","_newValue","willCloseSuggestions","renderSuggestionData","renderItemsContainer","renderItem","renderItemData","getSectionItems","highlightedItemIndex","itemProps","mapToAutowhateverTheme","ref","storeAutowhateverRef","defaultTheme","_sectionIterator","_reactThemeable","_SectionTitle","_ItemList","_slicedToArray","_arrayWithHoles","_arr","_n","_d","_e","_s","_i","done","_iterableToArrayLimit","minLen","_arrayLikeToArray","n","_unsupportedIterableToArray","_nonIterableRest","len","emptyObject","Autowhatever","userRef","current","highlightedItem","section","isInputFocused","nextPrev","_this$sectionIterator2","sectionIterator","setSectionsItems","setSectionIterator","setTheme","ensureHighlightedItemIsVisible","sectionsItems","sectionsLengths","allSectionsAreEmpty","every","itemsCount","sectionKeyPrefix","isFirstSection","onHighlightedItemChange","getItemId","storeItemsListReference","itemOffsetRelativeToContainer","offsetParent","offsetTop","offsetHeight","renderedItems","renderSections","renderItems","ariaActivedescendant","itemsContainerId","role","inputComponent","autoComplete","storeInputReference","storeItemsContainerReference","itemsContainerOpen","itemsList","itemFirst","itemHighlighted","_compareObjects","_extends","assign","Item","isHighlighted","restProps","storeItemReference","_Item","ItemsList","sectionPrefix","isItemPropsFunction","isFirst","itemKey","itemPropsObj","allItemProps","storeHighlightedItemReference","SectionTitle","objA","objB","aKeys","bKeys","keysMap","aValue","bValue","aValueKeys","bValueKeys","aValueKey","sliceIterator","_toConsumableArray","_objectAssign","_objectAssign2","truthy","classNameDecorator","style","propIsEnumerable","ToObject","ownEnumerableKeys","getOwnPropertyNames","to","_getStorage","default","storageType","testKey","hasStorage","noopStorage","_default","position","_position","nextNonEmptySectionIndex","_position2","prevNonEmptySectionIndex","isLast","arrA","arrB","__WEBPACK_EXTERNAL_MODULE__3305__","__WEBPACK_EXTERNAL_MODULE__3545__","__WEBPACK_EXTERNAL_MODULE__7388__","__WEBPACK_EXTERNAL_MODULE__881__","__WEBPACK_EXTERNAL_MODULE__5980__","__WEBPACK_EXTERNAL_MODULE__2650__","__WEBPACK_EXTERNAL_MODULE__3929__","__WEBPACK_EXTERNAL_MODULE__3129__","__WEBPACK_EXTERNAL_MODULE__1177__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","d","a","prop","r","toStringTag"],"sourceRoot":""}

Youez - 2016 - github.com/yon3zu
LinuXploit