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d,CAAA,CAAkC,EAEhF,gBAACD,GAAgB,CAAC,QAAA1d,EAAkB,gBAAA2d,CAAA,CAAkC,EACtE,gBAACwC,GAAA,CACC,SAAUngB,EAAQ,SAAS,UAAY,GACvC,iBAAmBjC,GAAU4f,EAAgB8C,GAAYzgB,EAASjC,CAAK,CAAC,EACxE,qBAAsBiC,EAAQ,SAAS,sBAAwB,GAC/D,6BAA8B6gB,CAAA,CAChC,EACA,gBAAChB,GAAA,CACC,OAAQ7f,EAAQ,SAAS,cACzB,SAAWjC,GAAU4f,EAAgBgD,GAAiB3gB,EAASjC,CAAK,CAAC,EACvE,CACF,CACF,CACF,CAEJ,E,4BClFO,MAAM,GAAS,IAAI,KAAiB,KAAc,EACtD,eAAe,EAAoB,EACnC,gBAAgB6iB,EAAY,EAC5B,mBAAmBrgB,EAAc,KAGpC,MAAa,EAAE,UAA2C,KAAsB,KAAwB,C","sources":["webpack://grafana/./node_modules/@grafana/experimental/dist/esm/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/QueryEditor/EditorHeader.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/QueryEditor/FlexItem.js","webpack://grafana/./node_modules/@grafana/experimental/node_modules/uuid/dist/esm-browser/rng.js","webpack://grafana/./node_modules/@grafana/experimental/node_modules/uuid/dist/esm-browser/regex.js","webpack://grafana/./node_modules/@grafana/experimental/node_modules/uuid/dist/esm-browser/validate.js","webpack://grafana/./node_modules/@grafana/experimental/node_modules/uuid/dist/esm-browser/stringify.js","webpack://grafana/./node_modules/@grafana/experimental/node_modules/uuid/dist/esm-browser/v4.js","webpack://grafana/./public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/QueryHeaderSwitch.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/QueryEditorModeToggle.js","webpack://grafana/./packages/grafana-o11y-ds-frontend/src/store.ts","webpack://grafana/./packages/grafana-o11y-ds-frontend/src/LocalStorageValueProvider/LocalStorageValueProvider.tsx","webpack://grafana/./public/app/plugins/datasource/loki/components/LokiLabelBrowser.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/LabelBrowserModal.tsx","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/LabelFilterItem.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/LabelFilters.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationExplainedBox.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationsEditorRow.js","webpack://grafana/./node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationInfoButton.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationHeader.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationParamEditor.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationEditorBody.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationEditor.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationList.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/QueryBuilderHints.js","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/OperationListExplained.js","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderExplained.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/NestedQuery.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/NestedQueryList.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilder.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/QueryPreview.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderContainer.tsx","webpack://grafana/./node_modules/@grafana/experimental/dist/esm/VisualQueryBuilder/components/QueryOptionGroup.js","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderOptions.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/LokiQueryCodeEditor.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/QueryPattern.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/components/QueryPatternsModal.tsx","webpack://grafana/./public/app/plugins/datasource/loki/querybuilder/state.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/stats.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx","webpack://grafana/./public/app/plugins/datasource/loki/components/LokiQueryEditorForAlerting.tsx","webpack://grafana/./public/app/plugins/datasource/loki/components/LokiQueryEditorByApp.tsx","webpack://grafana/./public/app/plugins/datasource/loki/configuration/AlertingSettings.tsx","webpack://grafana/./public/app/plugins/datasource/loki/configuration/DebugSection.tsx","webpack://grafana/./public/app/plugins/datasource/loki/configuration/DerivedField.tsx","webpack://grafana/./public/app/plugins/datasource/loki/configuration/DerivedFields.tsx","webpack://grafana/./public/app/plugins/datasource/loki/configuration/QuerySettings.tsx","webpack://grafana/./public/app/plugins/datasource/loki/configuration/ConfigEditor.tsx","webpack://grafana/./public/app/plugins/datasource/loki/module.ts"],"sourcesContent":["import React__default from 'react';\nimport { css, cx } from '@emotion/css';\nimport { InlineField, TagsInput, Input } from '@grafana/ui';\nimport { ConfigSubSection } from '../ConfigSection/ConfigSubSection.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nconst AdvancedHttpSettings = ({\n config,\n onChange,\n className\n}) => {\n const onCookiesChange = (cookies) => {\n onChange(__spreadProps(__spreadValues({}, config), {\n jsonData: __spreadProps(__spreadValues({}, config.jsonData), {\n keepCookies: cookies\n })\n }));\n };\n const onTimeoutChange = (event) => {\n onChange(__spreadProps(__spreadValues({}, config), {\n jsonData: __spreadProps(__spreadValues({}, config.jsonData), {\n timeout: parseInt(event.currentTarget.value, 10)\n })\n }));\n };\n const styles = {\n container: css({\n maxWidth: 578\n })\n };\n return /* @__PURE__ */ React__default.createElement(ConfigSubSection, { title: \"Advanced HTTP settings\", className: cx(styles.container, className) }, /* @__PURE__ */ React__default.createElement(\n InlineField,\n {\n htmlFor: \"advanced-http-cookies\",\n label: \"Allowed cookies\",\n labelWidth: 24,\n tooltip: \"Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.\",\n disabled: config.readOnly,\n grow: true\n },\n /* @__PURE__ */ React__default.createElement(\n TagsInput,\n {\n id: \"advanced-http-cookies\",\n placeholder: \"New cookie (hit enter to add)\",\n tags: config.jsonData.keepCookies,\n onChange: onCookiesChange\n }\n )\n ), /* @__PURE__ */ React__default.createElement(\n InlineField,\n {\n htmlFor: \"advanced-http-timeout\",\n label: \"Timeout\",\n labelWidth: 24,\n tooltip: \"HTTP request timeout in seconds\",\n disabled: config.readOnly,\n grow: true\n },\n /* @__PURE__ */ React__default.createElement(\n Input,\n {\n id: \"advanced-http-timeout\",\n type: \"number\",\n min: 0,\n placeholder: \"Timeout in seconds\",\n \"aria-label\": \"Timeout in seconds\",\n value: config.jsonData.timeout,\n onChange: onTimeoutChange\n }\n )\n ));\n};\n\nexport { AdvancedHttpSettings };\n//# sourceMappingURL=AdvancedHttpSettings.js.map\n","import { css } from '@emotion/css';\nimport React__default from 'react';\nimport { useStyles2 } from '@grafana/ui';\n\nconst EditorHeader = ({ children }) => {\n const styles = useStyles2(getStyles);\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.root }, children);\n};\nconst getStyles = (theme) => ({\n root: css({\n display: \"flex\",\n flexWrap: \"wrap\",\n alignItems: \"center\",\n gap: theme.spacing(3),\n minHeight: theme.spacing(4)\n })\n});\n\nexport { EditorHeader };\n//# sourceMappingURL=EditorHeader.js.map\n","import React__default from 'react';\n\nconst FlexItem = ({ grow, shrink }) => {\n return /* @__PURE__ */ React__default.createElement(\"div\", { style: { display: \"block\", flexGrow: grow, flexShrink: shrink } });\n};\n\nexport { FlexItem };\n//# sourceMappingURL=FlexItem.js.map\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import { shuffle } from 'lodash';\nimport React, { PureComponent } from 'react';\n\nimport { QueryEditorHelpProps } from '@grafana/data';\nimport { reportInteraction } from '@grafana/runtime';\n\nimport LokiLanguageProvider from '../LanguageProvider';\nimport { escapeLabelValueInExactSelector } from '../languageUtils';\nimport { LokiQuery } from '../types';\n\nconst DEFAULT_EXAMPLES = ['{job=\"default/prometheus\"}'];\nconst PREFERRED_LABELS = ['job', 'app', 'k8s_app'];\nconst EXAMPLES_LIMIT = 5;\n\nconst LOGQL_EXAMPLES = [\n {\n title: 'Log pipeline',\n expression: '{job=\"mysql\"} |= \"metrics\" | logfmt | duration > 10s',\n label:\n 'This query targets the MySQL job, keeps logs that contain the substring \"metrics\", and then parses and filters the logs further.',\n },\n {\n title: 'Count over time',\n expression: 'count_over_time({job=\"mysql\"}[5m])',\n label: 'This query counts all the log lines within the last five minutes for the MySQL job.',\n },\n {\n title: 'Rate',\n expression: 'rate(({job=\"mysql\"} |= \"error\" != \"timeout\")[10s])',\n label:\n 'This query gets the per-second rate of all non-timeout errors within the last ten seconds for the MySQL job.',\n },\n {\n title: 'Aggregate, count, and group',\n expression: 'sum(count_over_time({job=\"mysql\"}[5m])) by (level)',\n label: 'Get the count of logs during the last five minutes, grouping by level.',\n },\n];\n\nexport default class LokiCheatSheet extends PureComponent<QueryEditorHelpProps<LokiQuery>, { userExamples: string[] }> {\n declare userLabelTimer: ReturnType<typeof setTimeout>;\n state = {\n userExamples: [],\n };\n\n componentDidMount() {\n this.scheduleUserLabelChecking();\n reportInteraction('grafana_loki_cheatsheet_opened', {});\n }\n\n componentWillUnmount() {\n clearTimeout(this.userLabelTimer);\n }\n\n scheduleUserLabelChecking() {\n this.userLabelTimer = setTimeout(this.checkUserLabels, 1000);\n }\n\n checkUserLabels = async () => {\n // Set example from user labels\n const provider: LokiLanguageProvider = this.props.datasource?.languageProvider;\n if (provider.started) {\n const labels = provider.getLabelKeys() || [];\n const preferredLabel = PREFERRED_LABELS.find((l) => labels.includes(l));\n if (preferredLabel) {\n const values = await provider.fetchLabelValues(preferredLabel);\n const userExamples = shuffle(values)\n .slice(0, EXAMPLES_LIMIT)\n .map((value) => `{${preferredLabel}=\"${escapeLabelValueInExactSelector(value)}\"}`);\n this.setState({ userExamples });\n }\n } else {\n this.scheduleUserLabelChecking();\n }\n };\n\n renderExpression(expr: string) {\n const { onClickExample } = this.props;\n const onClick = (query: LokiQuery) => {\n onClickExample(query);\n reportInteraction('grafana_loki_cheatsheet_example_clicked', {});\n };\n\n return (\n <button\n type=\"button\"\n className=\"cheat-sheet-item__example\"\n key={expr}\n onClick={() => onClick({ refId: 'A', expr })}\n >\n <code>{expr}</code>\n </button>\n );\n }\n\n render() {\n const { userExamples } = this.state;\n const hasUserExamples = userExamples.length > 0;\n\n return (\n <div>\n <h2>Loki Cheat Sheet</h2>\n <div className=\"cheat-sheet-item\">\n <div className=\"cheat-sheet-item__title\">See your logs</div>\n <div className=\"cheat-sheet-item__label\">\n Start by selecting a log stream from the Label browser, or alternatively you can write a stream selector\n into the query field.\n </div>\n {hasUserExamples ? (\n <div>\n <div className=\"cheat-sheet-item__label\">Here are some example streams from your logs:</div>\n {userExamples.map((example) => this.renderExpression(example))}\n </div>\n ) : (\n <div>\n <div className=\"cheat-sheet-item__label\">Here is an example of a log stream:</div>\n {this.renderExpression(DEFAULT_EXAMPLES[0])}\n </div>\n )}\n </div>\n <div className=\"cheat-sheet-item\">\n <div className=\"cheat-sheet-item__title\">Combine stream selectors</div>\n {this.renderExpression('{app=\"cassandra\",namespace=\"prod\"}')}\n <div className=\"cheat-sheet-item__label\">Returns all log lines from streams that have both labels.</div>\n </div>\n\n <div className=\"cheat-sheet-item\">\n <div className=\"cheat-sheet-item__title\">Filtering for search terms.</div>\n {this.renderExpression('{app=\"cassandra\"} |~ \"(duration|latency)s*(=|is|of)s*[d.]+\"')}\n {this.renderExpression('{app=\"cassandra\"} |= \"exact match\"')}\n {this.renderExpression('{app=\"cassandra\"} != \"do not match\"')}\n <div className=\"cheat-sheet-item__label\">\n <a href=\"https://grafana.com/docs/loki/latest/logql/#log-pipeline\" target=\"logql\">\n LogQL\n </a>{' '}\n supports exact and regular expression filters.\n </div>\n </div>\n {LOGQL_EXAMPLES.map((item) => (\n <div className=\"cheat-sheet-item\" key={item.expression}>\n <div className=\"cheat-sheet-item__title\">{item.title}</div>\n {this.renderExpression(item.expression)}\n <div className=\"cheat-sheet-item__label\">{item.label}</div>\n </div>\n ))}\n </div>\n );\n }\n}\n","import { css } from '@emotion/css';\nimport { uniqueId } from 'lodash';\nimport React__default, { useRef } from 'react';\nimport { useStyles2, Switch } from '@grafana/ui';\nimport { Stack } from '../../QueryEditor/Stack.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nfunction QueryHeaderSwitch(_a) {\n var _b = _a, { label } = _b, inputProps = __objRest(_b, [\"label\"]);\n const dashedLabel = label.replace(\" \", \"-\");\n const switchIdRef = useRef(uniqueId(`switch-${dashedLabel}`));\n const styles = useStyles2(getStyles);\n return /* @__PURE__ */ React__default.createElement(Stack, { gap: 1 }, /* @__PURE__ */ React__default.createElement(\"label\", { htmlFor: switchIdRef.current, className: styles.switchLabel }, label), /* @__PURE__ */ React__default.createElement(Switch, __spreadProps(__spreadValues({}, inputProps), { id: switchIdRef.current })));\n}\nconst getStyles = (theme) => {\n return {\n switchLabel: css({\n color: theme.colors.text.secondary,\n cursor: \"pointer\",\n fontSize: theme.typography.bodySmall.fontSize,\n \"&:hover\": {\n color: theme.colors.text.primary\n }\n })\n };\n};\n\nexport { QueryHeaderSwitch };\n//# sourceMappingURL=QueryHeaderSwitch.js.map\n","import React__default from 'react';\nimport { RadioButtonGroup } from '@grafana/ui';\nimport { QueryEditorMode } from '../types.js';\n\nconst editorModes = [\n { label: \"Builder\", value: QueryEditorMode.Builder },\n { label: \"Code\", value: QueryEditorMode.Code }\n];\nfunction QueryEditorModeToggle({ mode, onChange }) {\n return /* @__PURE__ */ React__default.createElement(\"div\", { \"data-testid\": \"QueryEditorModeToggle\" }, /* @__PURE__ */ React__default.createElement(RadioButtonGroup, { options: editorModes, size: \"sm\", value: mode, onChange }));\n}\n\nexport { QueryEditorModeToggle };\n//# sourceMappingURL=QueryEditorModeToggle.js.map\n","type StoreValue = string | number | boolean | null;\n\nexport class Store {\n get(key: string) {\n return window.localStorage[key];\n }\n\n set(key: string, value: StoreValue) {\n window.localStorage[key] = value;\n }\n\n getBool(key: string, def: boolean): boolean {\n if (def !== void 0 && !this.exists(key)) {\n return def;\n }\n return window.localStorage[key] === 'true';\n }\n\n getObject<T = unknown>(key: string): T | undefined;\n getObject<T = unknown>(key: string, def: T): T;\n getObject<T = unknown>(key: string, def?: T) {\n let ret = def;\n if (this.exists(key)) {\n const json = window.localStorage[key];\n try {\n ret = JSON.parse(json);\n } catch (error) {\n console.error(`Error parsing store object: ${key}. Returning default: ${def}. [${error}]`);\n }\n }\n return ret;\n }\n\n /* Returns true when successfully stored, throws error if not successfully stored */\n setObject(key: string, value: unknown) {\n let json;\n try {\n json = JSON.stringify(value);\n } catch (error) {\n throw new Error(`Could not stringify object: ${key}. [${error}]`);\n }\n try {\n this.set(key, json);\n } catch (error) {\n // Likely hitting storage quota\n const errorToThrow = new Error(`Could not save item in localStorage: ${key}. [${error}]`);\n if (error instanceof Error) {\n errorToThrow.name = error.name;\n }\n throw errorToThrow;\n }\n return true;\n }\n\n exists(key: string) {\n return window.localStorage[key] !== void 0;\n }\n\n delete(key: string) {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const store = new Store();\n","import React, { useEffect, useState } from 'react';\n\nimport { store } from '../store';\n\nexport interface Props<T> {\n storageKey: string;\n defaultValue: T;\n children: (value: T, onSaveToStore: (value: T) => void, onDeleteFromStore: () => void) => React.ReactNode;\n}\n\nexport const LocalStorageValueProvider = <T,>(props: Props<T>) => {\n const { children, storageKey, defaultValue } = props;\n\n const [state, setState] = useState({ value: store.getObject(props.storageKey, props.defaultValue) });\n\n useEffect(() => {\n const onStorageUpdate = (v: StorageEvent) => {\n if (v.key === storageKey) {\n setState({ value: store.getObject(props.storageKey, props.defaultValue) });\n }\n };\n\n window.addEventListener('storage', onStorageUpdate);\n\n return () => {\n window.removeEventListener('storage', onStorageUpdate);\n };\n });\n\n const onSaveToStore = (value: T) => {\n try {\n store.setObject(storageKey, value);\n } catch (error) {\n console.error(error);\n }\n setState({ value });\n };\n\n const onDeleteFromStore = () => {\n try {\n store.delete(storageKey);\n } catch (error) {\n console.log(error);\n }\n setState({ value: defaultValue });\n };\n\n return <>{children(state.value, onSaveToStore, onDeleteFromStore)}</>;\n};\n","import { css, cx } from '@emotion/css';\nimport { sortBy } from 'lodash';\nimport React, { ChangeEvent } from 'react';\nimport { FixedSizeList } from 'react-window';\n\nimport { CoreApp, GrafanaTheme2, TimeRange } from '@grafana/data';\nimport { reportInteraction } from '@grafana/runtime';\nimport {\n Button,\n HighlightPart,\n HorizontalGroup,\n Input,\n Label,\n LoadingPlaceholder,\n withTheme2,\n BrowserLabel as LokiLabel,\n fuzzyMatch,\n} from '@grafana/ui';\n\nimport LokiLanguageProvider from '../LanguageProvider';\nimport { escapeLabelValueInExactSelector, escapeLabelValueInRegexSelector } from '../languageUtils';\n\n// Hard limit on labels to render\nconst MAX_LABEL_COUNT = 1000;\nconst MAX_VALUE_COUNT = 10000;\nconst MAX_AUTO_SELECT = 4;\nconst EMPTY_SELECTOR = '{}';\n\nexport interface BrowserProps {\n languageProvider: LokiLanguageProvider;\n onChange: (selector: string) => void;\n theme: GrafanaTheme2;\n app?: CoreApp;\n autoSelect?: number;\n timeRange?: TimeRange;\n hide?: () => void;\n lastUsedLabels: string[];\n storeLastUsedLabels: (labels: string[]) => void;\n deleteLastUsedLabels: () => void;\n}\n\ninterface BrowserState {\n labels: SelectableLabel[];\n searchTerm: string;\n status: string;\n error: string;\n validationStatus: string;\n}\n\ninterface FacettableValue {\n name: string;\n selected?: boolean;\n highlightParts?: HighlightPart[];\n order?: number;\n}\n\nexport interface SelectableLabel {\n name: string;\n selected?: boolean;\n loading?: boolean;\n values?: FacettableValue[];\n hidden?: boolean;\n facets?: number;\n}\n\nexport function buildSelector(labels: SelectableLabel[]): string {\n const selectedLabels = [];\n for (const label of labels) {\n if (label.selected && label.values && label.values.length > 0) {\n const selectedValues = label.values.filter((value) => value.selected).map((value) => value.name);\n if (selectedValues.length > 1) {\n selectedLabels.push(`${label.name}=~\"${selectedValues.map(escapeLabelValueInRegexSelector).join('|')}\"`);\n } else if (selectedValues.length === 1) {\n selectedLabels.push(`${label.name}=\"${escapeLabelValueInExactSelector(selectedValues[0])}\"`);\n }\n }\n }\n return ['{', selectedLabels.join(','), '}'].join('');\n}\n\nexport function facetLabels(\n labels: SelectableLabel[],\n possibleLabels: Record<string, string[]>,\n lastFacetted?: string\n): SelectableLabel[] {\n return labels.map((label) => {\n const possibleValues = possibleLabels[label.name];\n if (possibleValues) {\n let existingValues: FacettableValue[];\n if (label.name === lastFacetted && label.values) {\n // Facetting this label, show all values\n existingValues = label.values;\n } else {\n // Keep selection in other facets\n const selectedValues: Set<string> = new Set(\n label.values?.filter((value) => value.selected).map((value) => value.name) || []\n );\n // Values for this label have not been requested yet, let's use the facetted ones as the initial values\n existingValues = possibleValues.map((value) => ({ name: value, selected: selectedValues.has(value) }));\n }\n return { ...label, loading: false, values: existingValues, facets: existingValues.length };\n }\n\n // Label is facetted out, hide all values\n return { ...label, loading: false, hidden: !possibleValues, values: undefined, facets: 0 };\n });\n}\n\nconst getStyles = (theme: GrafanaTheme2) => ({\n wrapper: css`\n background-color: ${theme.colors.background.secondary};\n width: 100%;\n `,\n wrapperPadding: css`\n padding: ${theme.spacing(2)};\n `,\n list: css`\n margin-top: ${theme.spacing(1)};\n display: flex;\n flex-wrap: wrap;\n max-height: 200px;\n overflow: auto;\n `,\n section: css`\n & + & {\n margin: ${theme.spacing(2, 0)};\n }\n\n position: relative;\n `,\n footerSectionStyles: css`\n padding: ${theme.spacing(1)};\n background-color: ${theme.colors.background.primary};\n position: sticky;\n bottom: -${theme.spacing(3)}; /* offset the padding on modal */\n left: 0;\n `,\n selector: css`\n font-family: ${theme.typography.fontFamilyMonospace};\n margin-bottom: ${theme.spacing(1)};\n width: 100%;\n `,\n status: css`\n margin-bottom: ${theme.spacing(1)};\n color: ${theme.colors.text.secondary};\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: opacity 100ms linear;\n opacity: 0;\n font-size: ${theme.typography.bodySmall.fontSize};\n height: calc(${theme.typography.bodySmall.fontSize} + 10px);\n `,\n statusShowing: css`\n opacity: 1;\n `,\n error: css`\n color: ${theme.colors.error.main};\n `,\n valueList: css`\n margin-right: ${theme.spacing(1)};\n resize: horizontal;\n `,\n valueListWrapper: css`\n border-left: 1px solid ${theme.colors.border.medium};\n margin: ${theme.spacing(1, 0)};\n padding: ${theme.spacing(1, 0, 1, 1)};\n `,\n valueListArea: css`\n display: flex;\n flex-wrap: wrap;\n margin-top: ${theme.spacing(1)};\n `,\n valueTitle: css`\n margin-left: -${theme.spacing(0.5)};\n margin-bottom: ${theme.spacing(1)};\n `,\n validationStatus: css`\n padding: ${theme.spacing(0.5)};\n margin-bottom: ${theme.spacing(1)};\n color: ${theme.colors.text.maxContrast};\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n `,\n});\n\nexport class UnthemedLokiLabelBrowser extends React.Component<BrowserProps, BrowserState> {\n state: BrowserState = {\n labels: [],\n searchTerm: '',\n status: 'Ready',\n error: '',\n validationStatus: '',\n };\n\n onChangeSearch = (event: ChangeEvent<HTMLInputElement>) => {\n this.setState({ searchTerm: event.target.value });\n };\n\n onClickRunLogsQuery = () => {\n reportInteraction('grafana_loki_label_browser_closed', {\n app: this.props.app,\n closeType: 'showLogsButton',\n });\n const selector = buildSelector(this.state.labels);\n this.props.onChange(selector);\n };\n\n onClickRunMetricsQuery = () => {\n reportInteraction('grafana_loki_label_browser_closed', {\n app: this.props.app,\n closeType: 'showLogsRateButton',\n });\n const selector = buildSelector(this.state.labels);\n const query = `rate(${selector}[$__auto])`;\n this.props.onChange(query);\n };\n\n onClickClear = () => {\n this.setState((state) => {\n const labels: SelectableLabel[] = state.labels.map((label) => ({\n ...label,\n values: undefined,\n selected: false,\n loading: false,\n hidden: false,\n facets: undefined,\n }));\n return { labels, searchTerm: '', status: '', error: '', validationStatus: '' };\n });\n this.props.deleteLastUsedLabels();\n };\n\n onClickLabel = (name: string, value: string | undefined, event: React.MouseEvent<HTMLElement>) => {\n const label = this.state.labels.find((l) => l.name === name);\n if (!label) {\n return;\n }\n // Toggle selected state\n const selected = !label.selected;\n let nextValue: Partial<SelectableLabel> = { selected };\n if (label.values && !selected) {\n // Deselect all values if label was deselected\n const values = label.values.map((value) => ({ ...value, selected: false }));\n nextValue = { ...nextValue, facets: 0, values };\n }\n // Resetting search to prevent empty results\n this.setState({ searchTerm: '' });\n this.updateLabelState(name, nextValue, '', () => this.doFacettingForLabel(name));\n };\n\n onClickValue = (name: string, value: string | undefined, event: React.MouseEvent<HTMLElement>) => {\n const label = this.state.labels.find((l) => l.name === name);\n if (!label || !label.values) {\n return;\n }\n // Resetting search to prevent empty results\n this.setState({ searchTerm: '' });\n // Toggling value for selected label, leaving other values intact\n const values = label.values.map((v) => ({ ...v, selected: v.name === value ? !v.selected : v.selected }));\n this.updateLabelState(name, { values }, '', () => this.doFacetting(name));\n };\n\n onClickValidate = () => {\n const selector = buildSelector(this.state.labels);\n this.validateSelector(selector);\n };\n\n updateLabelState(name: string, updatedFields: Partial<SelectableLabel>, status = '', cb?: () => void) {\n this.setState((state) => {\n const labels: SelectableLabel[] = state.labels.map((label) => {\n if (label.name === name) {\n return { ...label, ...updatedFields };\n }\n return label;\n });\n // New status overrides errors\n const error = status ? '' : state.error;\n return { labels, status, error, validationStatus: '' };\n }, cb);\n }\n\n componentDidMount() {\n const { languageProvider, autoSelect = MAX_AUTO_SELECT, lastUsedLabels, timeRange } = this.props;\n if (languageProvider) {\n const selectedLabels: string[] = lastUsedLabels;\n languageProvider.start(timeRange).then(() => {\n let rawLabels: string[] = languageProvider.getLabelKeys();\n if (rawLabels.length > MAX_LABEL_COUNT) {\n const error = `Too many labels found (showing only ${MAX_LABEL_COUNT} of ${rawLabels.length})`;\n rawLabels = rawLabels.slice(0, MAX_LABEL_COUNT);\n this.setState({ error });\n }\n // Auto-select all labels if label list is small enough\n const labels: SelectableLabel[] = rawLabels.map((label, i, arr) => ({\n name: label,\n selected: (arr.length <= autoSelect && selectedLabels.length === 0) || selectedLabels.includes(label),\n loading: false,\n }));\n // Pre-fetch values for selected labels\n this.setState({ labels }, () => {\n this.state.labels.forEach((label) => {\n if (label.selected) {\n this.fetchValues(label.name, EMPTY_SELECTOR);\n }\n });\n });\n });\n }\n }\n\n doFacettingForLabel(name: string) {\n const label = this.state.labels.find((l) => l.name === name);\n if (!label) {\n return;\n }\n const selectedLabels = this.state.labels.filter((label) => label.selected).map((label) => label.name);\n this.props.storeLastUsedLabels(selectedLabels);\n if (label.selected) {\n // Refetch values for newly selected label...\n if (!label.values) {\n this.fetchValues(name, buildSelector(this.state.labels));\n }\n } else {\n // Only need to facet when deselecting labels\n this.doFacetting();\n }\n }\n\n doFacetting = (lastFacetted?: string) => {\n const selector = buildSelector(this.state.labels);\n if (selector === EMPTY_SELECTOR) {\n // Clear up facetting\n const labels: SelectableLabel[] = this.state.labels.map((label) => {\n return { ...label, facets: 0, values: undefined, hidden: false };\n });\n this.setState({ labels }, () => {\n // Get fresh set of values\n this.state.labels.forEach((label) => label.selected && this.fetchValues(label.name, selector));\n });\n } else {\n // Do facetting\n this.fetchSeries(selector, lastFacetted);\n }\n };\n\n async fetchValues(name: string, selector: string) {\n const { languageProvider, timeRange } = this.props;\n this.updateLabelState(name, { loading: true }, `Fetching values for ${name}`);\n try {\n let rawValues = await languageProvider.fetchLabelValues(name, { timeRange });\n // If selector changed, clear loading state and discard result by returning early\n if (selector !== buildSelector(this.state.labels)) {\n this.updateLabelState(name, { loading: false }, '');\n return;\n }\n if (rawValues.length > MAX_VALUE_COUNT) {\n const error = `Too many values for ${name} (showing only ${MAX_VALUE_COUNT} of ${rawValues.length})`;\n rawValues = rawValues.slice(0, MAX_VALUE_COUNT);\n this.setState({ error });\n }\n const values: FacettableValue[] = rawValues.map((value) => ({ name: value }));\n this.updateLabelState(name, { values, loading: false });\n } catch (error) {\n console.error(error);\n }\n }\n\n async fetchSeries(selector: string, lastFacetted?: string) {\n const { languageProvider, timeRange } = this.props;\n if (lastFacetted) {\n this.updateLabelState(lastFacetted, { loading: true }, `Loading labels for ${selector}`);\n }\n try {\n const possibleLabels = await languageProvider.fetchSeriesLabels(selector, { timeRange });\n // If selector changed, clear loading state and discard result by returning early\n if (selector !== buildSelector(this.state.labels)) {\n if (lastFacetted) {\n this.updateLabelState(lastFacetted, { loading: false });\n }\n return;\n }\n if (Object.keys(possibleLabels).length === 0) {\n this.setState({ error: `Empty results, no matching label for ${selector}` });\n return;\n }\n const labels: SelectableLabel[] = facetLabels(this.state.labels, possibleLabels, lastFacetted);\n this.setState({ labels, error: '' });\n if (lastFacetted) {\n this.updateLabelState(lastFacetted, { loading: false });\n }\n } catch (error) {\n console.error(error);\n }\n }\n\n async validateSelector(selector: string) {\n const { languageProvider, timeRange } = this.props;\n this.setState({ validationStatus: `Validating selector ${selector}`, error: '' });\n const streams = await languageProvider.fetchSeries(selector, { timeRange });\n this.setState({ validationStatus: `Selector is valid (${streams.length} streams found)` });\n }\n\n render() {\n const { theme } = this.props;\n const { labels, searchTerm, status, error, validationStatus } = this.state;\n if (labels.length === 0) {\n return <LoadingPlaceholder text=\"Loading labels...\" />;\n }\n const styles = getStyles(theme);\n const selector = buildSelector(this.state.labels);\n const empty = selector === EMPTY_SELECTOR;\n\n let selectedLabels = labels.filter((label) => label.selected && label.values);\n if (searchTerm) {\n selectedLabels = selectedLabels.map((label) => {\n const searchResults = label.values!.filter((value) => {\n // Always return selected values\n if (value.selected) {\n value.highlightParts = undefined;\n return true;\n }\n const fuzzyMatchResult = fuzzyMatch(value.name.toLowerCase(), searchTerm.toLowerCase());\n if (fuzzyMatchResult.found) {\n value.highlightParts = fuzzyMatchResult.ranges;\n value.order = fuzzyMatchResult.distance;\n return true;\n } else {\n return false;\n }\n });\n return {\n ...label,\n values: sortBy(searchResults, (value) => (value.selected ? -Infinity : value.order)),\n };\n });\n } else {\n // Clear highlight parts when searchTerm is cleared\n selectedLabels = this.state.labels\n .filter((label) => label.selected && label.values)\n .map((label) => ({\n ...label,\n values: label?.values ? label.values.map((value) => ({ ...value, highlightParts: undefined })) : [],\n }));\n }\n\n return (\n <>\n <div className={styles.wrapper}>\n <div className={cx(styles.section, styles.wrapperPadding)}>\n <Label description=\"Which labels would you like to consider for your search?\">\n 1. Select labels to search in\n </Label>\n <div className={styles.list}>\n {labels.map((label) => (\n <LokiLabel\n key={label.name}\n name={label.name}\n loading={label.loading}\n active={label.selected}\n hidden={label.hidden}\n facets={label.facets}\n onClick={this.onClickLabel}\n />\n ))}\n </div>\n </div>\n <div className={cx(styles.section, styles.wrapperPadding)}>\n <Label description=\"Choose the label values that you would like to use for the query. Use the search field to find values across selected labels.\">\n 2. Find values for the selected labels\n </Label>\n <div>\n <Input\n onChange={this.onChangeSearch}\n aria-label=\"Filter expression for values\"\n value={searchTerm}\n placeholder={'Enter a label value'}\n />\n </div>\n <div className={styles.valueListArea}>\n {selectedLabels.map((label) => (\n <div role=\"list\" key={label.name} className={styles.valueListWrapper}>\n <div className={styles.valueTitle} aria-label={`Values for ${label.name}`}>\n <LokiLabel\n name={label.name}\n loading={label.loading}\n active={label.selected}\n hidden={label.hidden}\n //If no facets, we want to show number of all label values\n facets={label.facets || label.values?.length}\n onClick={this.onClickLabel}\n />\n </div>\n <FixedSizeList\n height={200}\n itemCount={label.values?.length || 0}\n itemSize={28}\n itemKey={(i) => label.values?.[i].name ?? i}\n width={200}\n className={styles.valueList}\n >\n {({ index, style }) => {\n const value = label.values?.[index];\n if (!value) {\n return null;\n }\n return (\n <div style={style}>\n <LokiLabel\n name={label.name}\n value={value?.name}\n active={value?.selected}\n highlightParts={value?.highlightParts}\n onClick={this.onClickValue}\n searchTerm={searchTerm}\n />\n </div>\n );\n }}\n </FixedSizeList>\n </div>\n ))}\n </div>\n </div>\n </div>\n <div className={styles.footerSectionStyles}>\n <Label>3. Resulting selector</Label>\n <pre aria-label=\"selector\" className={styles.selector}>\n {selector}\n </pre>\n {validationStatus && <div className={styles.validationStatus}>{validationStatus}</div>}\n <div className={cx(styles.status, (status || error) && styles.statusShowing)}>\n <span className={error ? styles.error : ''}>{error || status}</span>\n </div>\n <HorizontalGroup>\n <Button aria-label=\"Use selector as logs button\" disabled={empty} onClick={this.onClickRunLogsQuery}>\n Show logs\n </Button>\n <Button\n aria-label=\"Use selector as metrics button\"\n variant=\"secondary\"\n disabled={empty}\n onClick={this.onClickRunMetricsQuery}\n >\n Show logs rate\n </Button>\n <Button\n aria-label=\"Validate submit button\"\n variant=\"secondary\"\n disabled={empty}\n onClick={this.onClickValidate}\n >\n Validate selector\n </Button>\n <Button aria-label=\"Selector clear button\" variant=\"secondary\" onClick={this.onClickClear}>\n Clear\n </Button>\n </HorizontalGroup>\n </div>\n </>\n );\n }\n}\n\nexport const LokiLabelBrowser = withTheme2(UnthemedLokiLabelBrowser);\n","import { css } from '@emotion/css';\nimport React, { useState, useEffect } from 'react';\n\nimport { CoreApp, GrafanaTheme2, TimeRange } from '@grafana/data';\nimport { LocalStorageValueProvider } from '@grafana/o11y-ds-frontend';\nimport { reportInteraction } from '@grafana/runtime';\nimport { LoadingPlaceholder, Modal, useStyles2 } from '@grafana/ui';\n\nimport { LokiLabelBrowser } from '../../components/LokiLabelBrowser';\nimport { LokiDatasource } from '../../datasource';\nimport { LokiQuery } from '../../types';\n\nexport interface Props {\n isOpen: boolean;\n datasource: LokiDatasource;\n query: LokiQuery;\n app?: CoreApp;\n timeRange?: TimeRange;\n onClose: () => void;\n onChange: (query: LokiQuery) => void;\n onRunQuery: () => void;\n}\n\nexport const LabelBrowserModal = (props: Props) => {\n const { isOpen, onClose, datasource, app, timeRange } = props;\n const [labelsLoaded, setLabelsLoaded] = useState(false);\n const [hasLogLabels, setHasLogLabels] = useState(false);\n const LAST_USED_LABELS_KEY = 'grafana.datasources.loki.browser.labels';\n\n const styles = useStyles2(getStyles);\n\n useEffect(() => {\n if (!isOpen) {\n return;\n }\n\n datasource.languageProvider.fetchLabels({ timeRange }).then((labels) => {\n setLabelsLoaded(true);\n setHasLogLabels(labels.length > 0);\n });\n }, [datasource, isOpen, timeRange]);\n\n const changeQuery = (value: string) => {\n const { query, onChange, onRunQuery } = props;\n const nextQuery = { ...query, expr: value };\n onChange(nextQuery);\n onRunQuery();\n };\n\n const onChange = (selector: string) => {\n changeQuery(selector);\n onClose();\n };\n\n const reportInteractionAndClose = () => {\n reportInteraction('grafana_loki_label_browser_closed', {\n app,\n closeType: 'modalClose',\n });\n onClose();\n };\n\n return (\n <Modal isOpen={isOpen} title=\"Label browser\" onDismiss={reportInteractionAndClose} className={styles.modal}>\n {!labelsLoaded && <LoadingPlaceholder text=\"Loading labels...\" />}\n {labelsLoaded && !hasLogLabels && <p>No labels found.</p>}\n {labelsLoaded && hasLogLabels && (\n <LocalStorageValueProvider<string[]> storageKey={LAST_USED_LABELS_KEY} defaultValue={[]}>\n {(lastUsedLabels, onLastUsedLabelsSave, onLastUsedLabelsDelete) => {\n return (\n <LokiLabelBrowser\n languageProvider={datasource.languageProvider}\n onChange={onChange}\n lastUsedLabels={lastUsedLabels}\n storeLastUsedLabels={onLastUsedLabelsSave}\n deleteLastUsedLabels={onLastUsedLabelsDelete}\n app={app}\n timeRange={timeRange}\n />\n );\n }}\n </LocalStorageValueProvider>\n )}\n </Modal>\n );\n};\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n modal: css`\n width: 85vw;\n ${theme.breakpoints.down('md')} {\n width: 100%;\n }\n `,\n };\n};\n","import { uniqBy } from 'lodash';\nimport React__default, { useState, useRef } from 'react';\nimport { v4 } from 'uuid';\nimport { toOption } from '@grafana/data';\nimport { selectors } from '@grafana/e2e-selectors';\nimport { InlineField, Select } from '@grafana/ui';\nimport { InputGroup } from '../../QueryEditor/InputGroup.js';\nimport { AccessoryButton } from '../../QueryEditor/AccessoryButton.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nconst CONFLICTING_LABEL_FILTER_ERROR_MESSAGE = \"You have conflicting label filters\";\nfunction LabelFilterItem({\n item,\n items,\n defaultOp,\n onChange,\n onDelete,\n onGetLabelNames,\n onGetLabelValues,\n invalidLabel,\n invalidValue,\n multiValueSeparator = \"|\"\n}) {\n var _a;\n const [state, setState] = useState({});\n const [labelNamesMenuOpen, setLabelNamesMenuOpen] = useState(false);\n const [labelValuesMenuOpen, setLabelValuesMenuOpen] = useState(false);\n const isMultiSelect = (operator = item.op) => {\n var _a2;\n return (_a2 = operators.find((op) => op.label === operator)) == null ? void 0 : _a2.isMultiValue;\n };\n const getSelectOptionsFromString = (item2) => {\n if (item2) {\n if (item2.indexOf(multiValueSeparator) > 0) {\n return item2.split(multiValueSeparator);\n }\n return [item2];\n }\n return [];\n };\n const getOptions = () => {\n const labelValues = state.labelValues ? [...state.labelValues] : [];\n const selectedOptions = getSelectOptionsFromString(item == null ? void 0 : item.value).map(toOption);\n return uniqBy([...selectedOptions, ...labelValues], \"value\");\n };\n const isConflicting = isConflictingLabelFilter(item, items);\n const { current: id } = useRef(v4());\n return /* @__PURE__ */ React__default.createElement(\"div\", { \"data-testid\": \"visual-query-builder-dimensions-filter-item\" }, /* @__PURE__ */ React__default.createElement(InlineField, { error: CONFLICTING_LABEL_FILTER_ERROR_MESSAGE, invalid: isConflicting ? true : void 0 }, /* @__PURE__ */ React__default.createElement(InputGroup, null, /* @__PURE__ */ React__default.createElement(\n Select,\n {\n placeholder: \"Select label\",\n \"data-testid\": selectors.components.QueryBuilder.labelSelect,\n inputId: `visual-query-builder-dimensions-filter-item-key-${id}`,\n width: \"auto\",\n value: item.label ? toOption(item.label) : null,\n allowCustomValue: true,\n onOpenMenu: async () => {\n setState({ isLoadingLabelNames: true });\n const labelNames = await onGetLabelNames(item);\n setLabelNamesMenuOpen(true);\n setState({ labelNames, isLoadingLabelNames: void 0 });\n },\n onCloseMenu: () => {\n setLabelNamesMenuOpen(false);\n },\n isOpen: labelNamesMenuOpen,\n isLoading: state.isLoadingLabelNames,\n options: state.labelNames,\n onChange: (change) => {\n var _a2;\n if (change.value) {\n onChange(__spreadProps(__spreadValues({}, item), {\n op: (_a2 = item.op) != null ? _a2 : defaultOp,\n label: change.value\n }));\n }\n },\n invalid: isConflicting || invalidLabel\n }\n ), /* @__PURE__ */ React__default.createElement(\n Select,\n {\n \"data-testid\": selectors.components.QueryBuilder.matchOperatorSelect,\n value: toOption((_a = item.op) != null ? _a : defaultOp),\n options: operators,\n width: \"auto\",\n onChange: (change) => {\n if (change.value) {\n onChange(__spreadProps(__spreadValues({}, item), {\n op: change.value,\n value: isMultiSelect(change.value) ? item.value : getSelectOptionsFromString(item == null ? void 0 : item.value)[0]\n }));\n }\n },\n invalid: isConflicting\n }\n ), /* @__PURE__ */ React__default.createElement(\n Select,\n {\n placeholder: \"Select value\",\n \"data-testid\": selectors.components.QueryBuilder.valueSelect,\n inputId: `visual-query-builder-dimensions-filter-item-value-${id}`,\n width: \"auto\",\n value: isMultiSelect() ? getSelectOptionsFromString(item == null ? void 0 : item.value).map(toOption) : getSelectOptionsFromString(item == null ? void 0 : item.value).map(toOption)[0],\n allowCustomValue: true,\n onOpenMenu: async () => {\n setState({ isLoadingLabelValues: true });\n const labelValues = await onGetLabelValues(item);\n setState(__spreadProps(__spreadValues({}, state), {\n labelValues,\n isLoadingLabelValues: void 0\n }));\n setLabelValuesMenuOpen(true);\n },\n onCloseMenu: () => {\n setLabelValuesMenuOpen(false);\n },\n isOpen: labelValuesMenuOpen,\n isMulti: isMultiSelect(),\n isLoading: state.isLoadingLabelValues,\n options: getOptions(),\n onChange: (change) => {\n var _a2, _b;\n if (change.value) {\n onChange(__spreadProps(__spreadValues({}, item), {\n value: change.value,\n op: (_a2 = item.op) != null ? _a2 : defaultOp\n }));\n } else {\n const changes = change.map((change2) => {\n if (change2.value) {\n return change2.value;\n } else {\n return void 0;\n }\n }).filter((val) => val !== void 0).join(multiValueSeparator);\n onChange(__spreadProps(__spreadValues({}, item), { value: changes, op: (_b = item.op) != null ? _b : defaultOp }));\n }\n },\n invalid: isConflicting || invalidValue\n }\n ), /* @__PURE__ */ React__default.createElement(AccessoryButton, { \"aria-label\": \"remove\", icon: \"times\", variant: \"secondary\", onClick: onDelete }))));\n}\nconst operators = [\n { label: \"=\", value: \"=\", description: \"Equals\", isMultiValue: false },\n { label: \"!=\", value: \"!=\", description: \"Does not equal\", isMultiValue: false },\n { label: \"=~\", value: \"=~\", description: \"Matches regex\", isMultiValue: true },\n { label: \"!~\", value: \"!~\", description: \"Does not match regex\", isMultiValue: true }\n];\nfunction isConflictingLabelFilter(newLabel, labels) {\n if (!newLabel.label || !newLabel.op || !newLabel.value) {\n return false;\n }\n if (labels.length < 2) {\n return false;\n }\n const operationIsNegative = newLabel.op.toString().startsWith(\"!\");\n const candidates = labels.filter(\n (label) => label.label === newLabel.label && label.value === newLabel.value && label.op !== newLabel.op\n );\n const conflict = candidates.some((candidate) => {\n var _a, _b;\n if (operationIsNegative && ((_a = candidate == null ? void 0 : candidate.op) == null ? void 0 : _a.toString().startsWith(\"!\")) === false) {\n return true;\n }\n if (operationIsNegative === false && ((_b = candidate == null ? void 0 : candidate.op) == null ? void 0 : _b.toString().startsWith(\"!\"))) {\n return true;\n }\n return false;\n });\n return conflict;\n}\n\nexport { LabelFilterItem, isConflictingLabelFilter };\n//# sourceMappingURL=LabelFilterItem.js.map\n","import { isEqual } from 'lodash';\nimport React__default, { useState, useEffect } from 'react';\nimport { EditorField } from '../../QueryEditor/EditorField.js';\nimport { EditorFieldGroup } from '../../QueryEditor/EditorFieldGroup.js';\nimport { EditorList } from '../../QueryEditor/EditorList.js';\nimport { LabelFilterItem } from './LabelFilterItem.js';\n\nconst MISSING_LABEL_FILTER_ERROR_MESSAGE = \"Select at least 1 label filter (label and value)\";\nfunction LabelFilters({\n labelsFilters,\n onChange,\n onGetLabelNames,\n onGetLabelValues,\n labelFilterRequired,\n multiValueSeparator\n}) {\n const defaultOp = \"=\";\n const [items, setItems] = useState([{ op: defaultOp }]);\n useEffect(() => {\n if (labelsFilters.length > 0) {\n setItems(labelsFilters);\n } else {\n setItems([{ op: defaultOp }]);\n }\n }, [labelsFilters]);\n const onLabelsChange = (newItems) => {\n setItems(newItems);\n const newLabels = newItems.filter((item) => item.label !== void 0 && item.value !== void 0);\n if (!isEqual(newLabels, labelsFilters)) {\n onChange(newLabels);\n }\n };\n const hasLabelFilter = items.some((item) => item.label && item.value);\n return /* @__PURE__ */ React__default.createElement(EditorFieldGroup, null, /* @__PURE__ */ React__default.createElement(\n EditorField,\n {\n label: \"Label filters\",\n error: MISSING_LABEL_FILTER_ERROR_MESSAGE,\n invalid: labelFilterRequired && !hasLabelFilter\n },\n /* @__PURE__ */ React__default.createElement(\n EditorList,\n {\n items,\n onChange: onLabelsChange,\n renderItem: (item, onChangeItem, onDelete) => /* @__PURE__ */ React__default.createElement(\n LabelFilterItem,\n {\n item,\n items,\n defaultOp,\n onChange: onChangeItem,\n onDelete,\n onGetLabelNames,\n onGetLabelValues,\n invalidLabel: labelFilterRequired && !item.label,\n invalidValue: labelFilterRequired && !item.value,\n multiValueSeparator\n }\n )\n }\n )\n ));\n}\n\nexport { LabelFilters, MISSING_LABEL_FILTER_ERROR_MESSAGE };\n//# sourceMappingURL=LabelFilters.js.map\n","import { css } from '@emotion/css';\nimport React__default from 'react';\nimport { renderMarkdown } from '@grafana/data';\nimport { useStyles2 } from '@grafana/ui';\n\nfunction OperationExplainedBox({ title, stepNumber, markdown, children }) {\n const styles = useStyles2(getStyles);\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.box }, stepNumber !== void 0 && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.stepNumber }, stepNumber), /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.boxInner }, title && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.header }, /* @__PURE__ */ React__default.createElement(\"span\", null, title)), /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.body }, markdown && /* @__PURE__ */ React__default.createElement(\"div\", { dangerouslySetInnerHTML: { __html: renderMarkdown(markdown) } }), children)));\n}\nconst getStyles = (theme) => {\n return {\n box: css({\n background: theme.colors.background.secondary,\n padding: theme.spacing(1),\n borderRadius: theme.shape.radius.default,\n position: \"relative\"\n }),\n boxInner: css({\n marginLeft: theme.spacing(4)\n }),\n stepNumber: css({\n fontWeight: theme.typography.fontWeightMedium,\n background: theme.colors.secondary.main,\n width: \"20px\",\n height: \"20px\",\n borderRadius: theme.shape.radius.circle,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n top: \"10px\",\n left: \"11px\",\n fontSize: theme.typography.bodySmall.fontSize\n }),\n header: css({\n paddingBottom: theme.spacing(0.5),\n display: \"flex\",\n alignItems: \"center\",\n fontFamily: theme.typography.fontFamilyMonospace\n }),\n body: css({\n color: theme.colors.text.secondary,\n \"p:last-child\": {\n margin: 0\n },\n a: {\n color: theme.colors.text.link,\n textDecoration: \"underline\"\n }\n })\n };\n};\n\nexport { OperationExplainedBox };\n//# sourceMappingURL=OperationExplainedBox.js.map\n","import { css } from '@emotion/css';\nimport React__default from 'react';\nimport { useStyles2 } from '@grafana/ui';\nimport { Stack } from '../../QueryEditor/Stack.js';\n\nfunction OperationsEditorRow({ children }) {\n const styles = useStyles2(getStyles);\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.root }, /* @__PURE__ */ React__default.createElement(Stack, { gap: 1 }, children));\n}\nconst getStyles = (theme) => {\n return {\n root: css({\n padding: theme.spacing(1, 1, 0, 1),\n backgroundColor: theme.colors.background.secondary,\n borderRadius: theme.shape.radius.default\n })\n };\n};\n\nexport { OperationsEditorRow };\n//# sourceMappingURL=OperationsEditorRow.js.map\n","import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport * as React from 'react';\nimport { usePopper } from 'react-popper';\n\nfunction useGetLatest(val) {\n var ref = React.useRef(val);\n ref.current = val;\n return React.useCallback(function () {\n return ref.current;\n }, []);\n}\n\nvar noop = function noop() {// do nothing\n};\n\nfunction useControlledState(_ref) {\n var initial = _ref.initial,\n value = _ref.value,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? noop : _ref$onChange;\n\n if (initial === undefined && value === undefined) {\n throw new TypeError('Either \"value\" or \"initial\" variable must be set. Now both are undefined');\n }\n\n var _React$useState = React.useState(initial),\n state = _React$useState[0],\n setState = _React$useState[1];\n\n var getLatest = useGetLatest(state);\n var set = React.useCallback(function (updater) {\n var state = getLatest();\n var updatedState = typeof updater === 'function' ? updater(state) : updater;\n if (typeof updatedState.persist === 'function') updatedState.persist();\n setState(updatedState);\n if (typeof onChange === 'function') onChange(updatedState);\n }, [getLatest, onChange]);\n var isControlled = value !== undefined;\n return [isControlled ? value : state, isControlled ? onChange : set];\n}\nfunction generateBoundingClientRect(x, y) {\n if (x === void 0) {\n x = 0;\n }\n\n if (y === void 0) {\n y = 0;\n }\n\n return function () {\n return {\n width: 0,\n height: 0,\n top: y,\n right: x,\n bottom: y,\n left: x,\n x: 0,\n y: 0,\n toJSON: function toJSON() {\n return null;\n }\n };\n };\n}\n\nvar _excluded = [\"styles\", \"attributes\"];\nvar virtualElement = {\n getBoundingClientRect: generateBoundingClientRect()\n};\nvar defaultConfig = {\n closeOnOutsideClick: true,\n closeOnTriggerHidden: false,\n defaultVisible: false,\n delayHide: 0,\n delayShow: 0,\n followCursor: false,\n interactive: false,\n mutationObserverOptions: {\n attributes: true,\n childList: true,\n subtree: true\n },\n offset: [0, 6],\n trigger: 'hover'\n};\nfunction usePopperTooltip(config, popperOptions) {\n var _popperProps$state, _popperProps$state$mo, _popperProps$state$mo2;\n\n if (config === void 0) {\n config = {};\n }\n\n if (popperOptions === void 0) {\n popperOptions = {};\n }\n\n // Merging options with default options.\n // Keys with undefined values are replaced with the default ones if any.\n // Keys with other values pass through.\n var finalConfig = Object.keys(defaultConfig).reduce(function (config, key) {\n var _extends2;\n\n return _extends({}, config, (_extends2 = {}, _extends2[key] = config[key] !== undefined ? config[key] : defaultConfig[key], _extends2));\n }, config);\n var defaultModifiers = React.useMemo(function () {\n return [{\n name: 'offset',\n options: {\n offset: finalConfig.offset\n }\n }];\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(finalConfig.offset) ? finalConfig.offset : []);\n\n var finalPopperOptions = _extends({}, popperOptions, {\n placement: popperOptions.placement || finalConfig.placement,\n modifiers: popperOptions.modifiers || defaultModifiers\n });\n\n var _React$useState = React.useState(null),\n triggerRef = _React$useState[0],\n setTriggerRef = _React$useState[1];\n\n var _React$useState2 = React.useState(null),\n tooltipRef = _React$useState2[0],\n setTooltipRef = _React$useState2[1];\n\n var _useControlledState = useControlledState({\n initial: finalConfig.defaultVisible,\n value: finalConfig.visible,\n onChange: finalConfig.onVisibleChange\n }),\n visible = _useControlledState[0],\n setVisible = _useControlledState[1];\n\n var timer = React.useRef();\n React.useEffect(function () {\n return function () {\n return clearTimeout(timer.current);\n };\n }, []);\n\n var _usePopper = usePopper(finalConfig.followCursor ? virtualElement : triggerRef, tooltipRef, finalPopperOptions),\n styles = _usePopper.styles,\n attributes = _usePopper.attributes,\n popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded);\n\n var update = popperProps.update;\n var getLatest = useGetLatest({\n visible: visible,\n triggerRef: triggerRef,\n tooltipRef: tooltipRef,\n finalConfig: finalConfig\n });\n var isTriggeredBy = React.useCallback(function (trigger) {\n return Array.isArray(finalConfig.trigger) ? finalConfig.trigger.includes(trigger) : finalConfig.trigger === trigger;\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger]);\n var hideTooltip = React.useCallback(function () {\n clearTimeout(timer.current);\n timer.current = window.setTimeout(function () {\n return setVisible(false);\n }, finalConfig.delayHide);\n }, [finalConfig.delayHide, setVisible]);\n var showTooltip = React.useCallback(function () {\n clearTimeout(timer.current);\n timer.current = window.setTimeout(function () {\n return setVisible(true);\n }, finalConfig.delayShow);\n }, [finalConfig.delayShow, setVisible]);\n var toggleTooltip = React.useCallback(function () {\n if (getLatest().visible) {\n hideTooltip();\n } else {\n showTooltip();\n }\n }, [getLatest, hideTooltip, showTooltip]); // Handle click outside\n\n React.useEffect(function () {\n if (!getLatest().finalConfig.closeOnOutsideClick) return;\n\n var handleClickOutside = function handleClickOutside(event) {\n var _event$composedPath;\n\n var _getLatest = getLatest(),\n tooltipRef = _getLatest.tooltipRef,\n triggerRef = _getLatest.triggerRef;\n\n var target = (event.composedPath == null ? void 0 : (_event$composedPath = event.composedPath()) == null ? void 0 : _event$composedPath[0]) || event.target;\n\n if (target instanceof Node) {\n if (tooltipRef != null && triggerRef != null && !tooltipRef.contains(target) && !triggerRef.contains(target)) {\n hideTooltip();\n }\n }\n };\n\n document.addEventListener('mousedown', handleClickOutside);\n return function () {\n return document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [getLatest, hideTooltip]); // Trigger: click\n\n React.useEffect(function () {\n if (triggerRef == null || !isTriggeredBy('click')) return;\n triggerRef.addEventListener('click', toggleTooltip);\n return function () {\n return triggerRef.removeEventListener('click', toggleTooltip);\n };\n }, [triggerRef, isTriggeredBy, toggleTooltip]); // Trigger: double-click\n\n React.useEffect(function () {\n if (triggerRef == null || !isTriggeredBy('double-click')) return;\n triggerRef.addEventListener('dblclick', toggleTooltip);\n return function () {\n return triggerRef.removeEventListener('dblclick', toggleTooltip);\n };\n }, [triggerRef, isTriggeredBy, toggleTooltip]); // Trigger: right-click\n\n React.useEffect(function () {\n if (triggerRef == null || !isTriggeredBy('right-click')) return;\n\n var preventDefaultAndToggle = function preventDefaultAndToggle(event) {\n // Don't show the context menu\n event.preventDefault();\n toggleTooltip();\n };\n\n triggerRef.addEventListener('contextmenu', preventDefaultAndToggle);\n return function () {\n return triggerRef.removeEventListener('contextmenu', preventDefaultAndToggle);\n };\n }, [triggerRef, isTriggeredBy, toggleTooltip]); // Trigger: focus\n\n React.useEffect(function () {\n if (triggerRef == null || !isTriggeredBy('focus')) return;\n triggerRef.addEventListener('focus', showTooltip);\n triggerRef.addEventListener('blur', hideTooltip);\n return function () {\n triggerRef.removeEventListener('focus', showTooltip);\n triggerRef.removeEventListener('blur', hideTooltip);\n };\n }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]); // Trigger: hover on trigger\n\n React.useEffect(function () {\n if (triggerRef == null || !isTriggeredBy('hover')) return;\n triggerRef.addEventListener('mouseenter', showTooltip);\n triggerRef.addEventListener('mouseleave', hideTooltip);\n return function () {\n triggerRef.removeEventListener('mouseenter', showTooltip);\n triggerRef.removeEventListener('mouseleave', hideTooltip);\n };\n }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]); // Trigger: hover on tooltip, keep it open if hovered\n\n React.useEffect(function () {\n if (tooltipRef == null || !isTriggeredBy('hover') || !getLatest().finalConfig.interactive) return;\n tooltipRef.addEventListener('mouseenter', showTooltip);\n tooltipRef.addEventListener('mouseleave', hideTooltip);\n return function () {\n tooltipRef.removeEventListener('mouseenter', showTooltip);\n tooltipRef.removeEventListener('mouseleave', hideTooltip);\n };\n }, [tooltipRef, isTriggeredBy, showTooltip, hideTooltip, getLatest]); // Handle closing tooltip if trigger hidden\n\n var isReferenceHidden = popperProps == null ? void 0 : (_popperProps$state = popperProps.state) == null ? void 0 : (_popperProps$state$mo = _popperProps$state.modifiersData) == null ? void 0 : (_popperProps$state$mo2 = _popperProps$state$mo.hide) == null ? void 0 : _popperProps$state$mo2.isReferenceHidden;\n React.useEffect(function () {\n if (finalConfig.closeOnTriggerHidden && isReferenceHidden) hideTooltip();\n }, [finalConfig.closeOnTriggerHidden, hideTooltip, isReferenceHidden]); // Handle follow cursor\n\n React.useEffect(function () {\n if (!finalConfig.followCursor || triggerRef == null) return;\n\n function setMousePosition(_ref) {\n var clientX = _ref.clientX,\n clientY = _ref.clientY;\n virtualElement.getBoundingClientRect = generateBoundingClientRect(clientX, clientY);\n update == null ? void 0 : update();\n }\n\n triggerRef.addEventListener('mousemove', setMousePosition);\n return function () {\n return triggerRef.removeEventListener('mousemove', setMousePosition);\n };\n }, [finalConfig.followCursor, triggerRef, update]); // Handle tooltip DOM mutation changes (aka mutation observer)\n\n React.useEffect(function () {\n if (tooltipRef == null || update == null || finalConfig.mutationObserverOptions == null) return;\n var observer = new MutationObserver(update);\n observer.observe(tooltipRef, finalConfig.mutationObserverOptions);\n return function () {\n return observer.disconnect();\n };\n }, [finalConfig.mutationObserverOptions, tooltipRef, update]); // Tooltip props getter\n\n var getTooltipProps = function getTooltipProps(args) {\n if (args === void 0) {\n args = {};\n }\n\n return _extends({}, args, {\n style: _extends({}, args.style, styles.popper)\n }, attributes.popper, {\n 'data-popper-interactive': finalConfig.interactive\n });\n }; // Arrow props getter\n\n\n var getArrowProps = function getArrowProps(args) {\n if (args === void 0) {\n args = {};\n }\n\n return _extends({}, args, attributes.arrow, {\n style: _extends({}, args.style, styles.arrow),\n 'data-popper-arrow': true\n });\n };\n\n return _extends({\n getArrowProps: getArrowProps,\n getTooltipProps: getTooltipProps,\n setTooltipRef: setTooltipRef,\n setTriggerRef: setTriggerRef,\n tooltipRef: tooltipRef,\n triggerRef: triggerRef,\n visible: visible\n }, popperProps);\n}\n\nexport { usePopperTooltip };\n//# sourceMappingURL=react-popper-tooltip.js.map\n","import { css } from '@emotion/css';\nimport React__default, { useState } from 'react';\nimport { usePopperTooltip } from 'react-popper-tooltip';\nimport { renderMarkdown } from '@grafana/data';\nimport { useStyles2, Button, Portal } from '@grafana/ui';\nimport { FlexItem } from '../../QueryEditor/FlexItem.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nconst OperationInfoButton = React__default.memo(({ definition, operation, innerQueryPlaceholder }) => {\n const styles = useStyles2(getStyles);\n const [show, setShow] = useState(false);\n const { getTooltipProps, setTooltipRef, setTriggerRef, visible } = usePopperTooltip({\n placement: \"top\",\n visible: show,\n offset: [0, 16],\n onVisibleChange: setShow,\n interactive: true,\n trigger: [\"click\"]\n });\n return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(\n Button,\n {\n title: \"Click to show description\",\n ref: setTriggerRef,\n icon: \"info-circle\",\n size: \"sm\",\n variant: \"secondary\",\n fill: \"text\"\n }\n ), visible && /* @__PURE__ */ React__default.createElement(Portal, null, /* @__PURE__ */ React__default.createElement(\"div\", __spreadProps(__spreadValues({ ref: setTooltipRef }, getTooltipProps()), { className: styles.docBox }), /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.docBoxHeader }, /* @__PURE__ */ React__default.createElement(\"span\", null, definition.renderer(operation, definition, innerQueryPlaceholder)), /* @__PURE__ */ React__default.createElement(FlexItem, { grow: 1 }), /* @__PURE__ */ React__default.createElement(\n Button,\n {\n icon: \"times\",\n onClick: () => setShow(false),\n fill: \"text\",\n variant: \"secondary\",\n title: \"Remove operation\"\n }\n )), /* @__PURE__ */ React__default.createElement(\n \"div\",\n {\n className: styles.docBoxBody,\n dangerouslySetInnerHTML: { __html: getOperationDocs(definition, operation) }\n }\n ))));\n});\nOperationInfoButton.displayName = \"OperationDocs\";\nconst getStyles = (theme) => {\n return {\n docBox: css({\n overflow: \"hidden\",\n background: theme.colors.background.primary,\n border: `1px solid ${theme.colors.border.strong}`,\n boxShadow: theme.shadows.z3,\n maxWidth: \"600px\",\n padding: theme.spacing(1),\n borderRadius: theme.shape.radius.default,\n zIndex: theme.zIndex.tooltip\n }),\n docBoxHeader: css({\n fontSize: theme.typography.h5.fontSize,\n fontFamily: theme.typography.fontFamilyMonospace,\n paddingBottom: theme.spacing(1),\n display: \"flex\",\n alignItems: \"center\"\n }),\n docBoxBody: css({\n // The markdown paragraph has a marginBottom this removes it\n marginBottom: theme.spacing(-1),\n color: theme.colors.text.secondary\n }),\n signature: css({\n fontSize: theme.typography.bodySmall.fontSize,\n fontFamily: theme.typography.fontFamilyMonospace\n }),\n dropdown: css({\n opacity: 0,\n color: theme.colors.text.secondary\n })\n };\n};\nfunction getOperationDocs(def, op) {\n var _a;\n return renderMarkdown(def.explainHandler ? def.explainHandler(op, def) : (_a = def.documentation) != null ? _a : \"no docs\");\n}\n\nexport { OperationInfoButton };\n//# sourceMappingURL=OperationInfoButton.js.map\n","import { css } from '@emotion/css';\nimport React__default, { useState } from 'react';\nimport { useStyles2, Button, Select } from '@grafana/ui';\nimport { OperationInfoButton } from './OperationInfoButton.js';\nimport { FlexItem } from '../../QueryEditor/FlexItem.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nconst OperationHeader = React__default.memo(\n ({ operation, definition, index, onChange, onRemove, queryModeller, dragHandleProps }) => {\n var _a;\n const styles = useStyles2(getStyles);\n const [state, setState] = useState({});\n const onToggleSwitcher = () => {\n if (state.isOpen) {\n setState(__spreadProps(__spreadValues({}, state), { isOpen: false }));\n } else {\n const alternatives = queryModeller.getAlternativeOperations(definition.alternativesKey).map((alt) => ({ label: alt.name, value: alt }));\n setState({ isOpen: true, alternatives });\n }\n };\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.header }, !state.isOpen && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(\"div\", __spreadValues({}, dragHandleProps), (_a = definition.name) != null ? _a : definition.id), /* @__PURE__ */ React__default.createElement(FlexItem, { grow: 1 }), /* @__PURE__ */ React__default.createElement(\"div\", { className: `${styles.operationHeaderButtons} operation-header-show-on-hover` }, /* @__PURE__ */ React__default.createElement(\n Button,\n {\n icon: \"angle-down\",\n size: \"sm\",\n onClick: onToggleSwitcher,\n fill: \"text\",\n variant: \"secondary\",\n title: \"Click to view alternative operations\"\n }\n ), /* @__PURE__ */ React__default.createElement(OperationInfoButton, { definition, operation, innerQueryPlaceholder: queryModeller.innerQueryPlaceholder }), /* @__PURE__ */ React__default.createElement(\n Button,\n {\n icon: \"times\",\n size: \"sm\",\n onClick: () => onRemove(index),\n fill: \"text\",\n variant: \"secondary\",\n title: \"Remove operation\"\n }\n ))), state.isOpen && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.selectWrapper }, /* @__PURE__ */ React__default.createElement(\n Select,\n {\n autoFocus: true,\n openMenuOnFocus: true,\n placeholder: \"Replace with\",\n options: state.alternatives,\n isOpen: true,\n onCloseMenu: onToggleSwitcher,\n onChange: (value) => {\n if (value.value) {\n const newDef = queryModeller.getOperationDefinition(value.value.id);\n const newParams = [...newDef.defaultParams];\n for (let i = 0; i < Math.min(operation.params.length, newParams.length); i++) {\n if (newDef.params[i].type === definition.params[i].type) {\n newParams[i] = operation.params[i];\n }\n }\n const changedOp = __spreadProps(__spreadValues({}, operation), { params: newParams, id: value.value.id });\n onChange(index, definition.changeTypeHandler ? definition.changeTypeHandler(changedOp, newDef) : changedOp);\n }\n }\n }\n )));\n }\n);\nOperationHeader.displayName = \"OperationHeader\";\nconst getStyles = (theme) => {\n return {\n header: css({\n borderBottom: `1px solid ${theme.colors.border.medium}`,\n padding: theme.spacing(0.5, 0.5, 0.5, 1),\n display: \"flex\",\n alignItems: \"center\"\n }),\n operationHeaderButtons: css({\n opacity: 1\n }),\n selectWrapper: css({\n paddingRight: theme.spacing(2)\n })\n };\n};\n\nexport { OperationHeader };\n//# sourceMappingURL=OperationHeader.js.map\n","import { css } from '@emotion/css';\nimport React__default from 'react';\nimport { toOption } from '@grafana/data';\nimport { AutoSizeInput, Checkbox, useStyles2, Button, Select } from '@grafana/ui';\nimport { Stack } from '../../QueryEditor/Stack.js';\n\nfunction getOperationParamEditor(paramDef) {\n if (paramDef.editor) {\n return paramDef.editor;\n }\n if (paramDef.options) {\n return SelectInputParamEditor;\n }\n switch (paramDef.type) {\n case \"boolean\":\n return BoolInputParamEditor;\n case \"number\":\n case \"string\":\n default:\n return SimpleInputParamEditor;\n }\n}\nfunction SimpleInputParamEditor(props) {\n var _a;\n return /* @__PURE__ */ React__default.createElement(\n AutoSizeInput,\n {\n id: getOperationParamId(props.operationId, props.index),\n defaultValue: (_a = props.value) == null ? void 0 : _a.toString(),\n minWidth: props.paramDef.minWidth,\n placeholder: props.paramDef.placeholder,\n title: props.paramDef.description,\n maxWidth: (props.paramDef.minWidth || 20) * 3,\n onCommitChange: (evt) => {\n props.onChange(props.index, evt.currentTarget.value);\n if (props.paramDef.runQueryOnEnter && evt.type === \"keydown\") {\n props.onRunQuery();\n }\n }\n }\n );\n}\nfunction BoolInputParamEditor(props) {\n return /* @__PURE__ */ React__default.createElement(\n Checkbox,\n {\n id: getOperationParamId(props.operationId, props.index),\n value: Boolean(props.value),\n onChange: (evt) => props.onChange(props.index, evt.currentTarget.checked)\n }\n );\n}\nfunction SelectInputParamEditor({\n paramDef,\n value,\n index,\n operationId,\n onChange\n}) {\n var _a, _b;\n const styles = useStyles2(getStyles);\n let selectOptions = paramDef.options;\n if (!((_a = selectOptions[0]) == null ? void 0 : _a.label)) {\n selectOptions = paramDef.options.map((option) => ({\n label: option.toString(),\n value: option\n }));\n }\n let valueOption = (_b = selectOptions.find((x) => x.value === value)) != null ? _b : toOption(value);\n if (!value && paramDef.optional) {\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.optionalParam }, /* @__PURE__ */ React__default.createElement(\n Button,\n {\n size: \"sm\",\n variant: \"secondary\",\n title: `Add ${paramDef.name}`,\n icon: \"plus\",\n onClick: () => onChange(index, selectOptions[0].value)\n },\n paramDef.name\n ));\n }\n return /* @__PURE__ */ React__default.createElement(Stack, { gap: 0.5, direction: \"row\", alignItems: \"center\" }, /* @__PURE__ */ React__default.createElement(\n Select,\n {\n id: getOperationParamId(operationId, index),\n value: valueOption,\n options: selectOptions,\n placeholder: paramDef.placeholder,\n allowCustomValue: true,\n onChange: (value2) => onChange(index, value2.value),\n width: paramDef.minWidth || \"auto\"\n }\n ), paramDef.optional && /* @__PURE__ */ React__default.createElement(\n Button,\n {\n \"data-testid\": `operations.${index}.remove-param`,\n size: \"sm\",\n fill: \"text\",\n icon: \"times\",\n variant: \"secondary\",\n title: `Remove ${paramDef.name}`,\n onClick: () => onChange(index, \"\")\n }\n ));\n}\nconst getStyles = (theme) => {\n return {\n optionalParam: css({\n marginTop: theme.spacing(1)\n })\n };\n};\nfunction getOperationParamId(operationId, paramIndex) {\n return `operations.${operationId}.param.${paramIndex}`;\n}\n\nexport { getOperationParamEditor, getOperationParamId };\n//# sourceMappingURL=OperationParamEditor.js.map\n","import React__default, { useRef, useState, useEffect } from 'react';\nimport { useTheme2, Tooltip, Icon, Button } from '@grafana/ui';\nimport { cx, css } from '@emotion/css';\nimport { OperationHeader } from './OperationHeader.js';\nimport { getOperationParamEditor, getOperationParamId } from './OperationParamEditor.js';\nimport { Stack } from '../../QueryEditor/Stack.js';\nimport { v4 } from 'uuid';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nfunction OperationEditorBody({\n provided,\n flash,\n isConflicting,\n highlight,\n index,\n queryModeller,\n onChange,\n onRemove,\n operation,\n definition,\n query,\n timeRange,\n onRunQuery,\n datasource\n}) {\n const theme = useTheme2();\n const styles = getStyles(theme, isConflicting);\n const shouldFlash = useFlash(flash);\n const { current: id } = useRef(v4());\n const onParamValueChanged = (paramIdx, value) => {\n const update = __spreadProps(__spreadValues({}, operation), { params: [...operation.params] });\n update.params[paramIdx] = value;\n callParamChangedThenOnChange(definition, update, index, paramIdx, onChange);\n };\n const onAddRestParam = () => {\n const update = __spreadProps(__spreadValues({}, operation), { params: [...operation.params, \"\"] });\n callParamChangedThenOnChange(definition, update, index, operation.params.length, onChange);\n };\n const onRemoveRestParam = (paramIdx) => {\n const update = __spreadProps(__spreadValues({}, operation), {\n params: [...operation.params.slice(0, paramIdx), ...operation.params.slice(paramIdx + 1)]\n });\n callParamChangedThenOnChange(definition, update, index, paramIdx, onChange);\n };\n let restParam;\n if (definition.params.length > 0) {\n const lastParamDef = definition.params[definition.params.length - 1];\n if (lastParamDef.restParam) {\n restParam = renderAddRestParamButton(lastParamDef, onAddRestParam, index, operation.params.length, styles);\n }\n }\n return /* @__PURE__ */ React__default.createElement(\n \"div\",\n __spreadProps(__spreadValues({\n className: cx(styles.card, (shouldFlash || highlight) && styles.cardHighlight, isConflicting && styles.cardError),\n ref: provided.innerRef\n }, provided.draggableProps), {\n \"data-testid\": `operations.${index}.wrapper`\n }),\n /* @__PURE__ */ React__default.createElement(\n OperationHeader,\n {\n operation,\n dragHandleProps: provided.dragHandleProps,\n definition,\n index,\n onChange,\n onRemove,\n queryModeller\n }\n ),\n /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.body }, operation.params.map((param, paramIndex) => {\n const paramDef = definition.params[Math.min(definition.params.length - 1, paramIndex)];\n const Editor = getOperationParamEditor(paramDef);\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.paramRow, key: `${paramIndex}-1` }, !paramDef.hideName && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.paramName }, /* @__PURE__ */ React__default.createElement(\"label\", { htmlFor: getOperationParamId(id, paramIndex) }, paramDef.name), paramDef.description && /* @__PURE__ */ React__default.createElement(Tooltip, { placement: \"top\", content: paramDef.description, theme: \"info\" }, /* @__PURE__ */ React__default.createElement(Icon, { name: \"info-circle\", size: \"sm\", className: styles.infoIcon }))), /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.paramValue }, /* @__PURE__ */ React__default.createElement(Stack, { gap: 0.5, direction: \"row\", alignItems: \"center\", wrap: false }, /* @__PURE__ */ React__default.createElement(\n Editor,\n {\n index: paramIndex,\n paramDef,\n value: operation.params[paramIndex],\n operation,\n operationId: id,\n onChange: onParamValueChanged,\n onRunQuery,\n query,\n datasource,\n timeRange,\n queryModeller\n }\n ), paramDef.restParam && (operation.params.length > definition.params.length || paramDef.optional) && /* @__PURE__ */ React__default.createElement(\n Button,\n {\n \"data-testid\": `operations.${index}.remove-rest-param`,\n size: \"sm\",\n fill: \"text\",\n icon: \"times\",\n variant: \"secondary\",\n title: `Remove ${paramDef.name}`,\n onClick: () => onRemoveRestParam(paramIndex)\n }\n ))));\n })),\n restParam,\n index < query.operations.length - 1 && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.arrow }, /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.arrowLine }), /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.arrowArrow }))\n );\n}\nconst getStyles = (theme, isConflicting) => {\n return {\n cardWrapper: css({\n alignItems: \"stretch\"\n }),\n error: css({\n marginBottom: theme.spacing(1)\n }),\n card: css({\n background: theme.colors.background.primary,\n border: `1px solid ${theme.colors.border.medium}`,\n cursor: \"grab\",\n borderRadius: theme.shape.radius.default,\n position: \"relative\",\n transition: \"all 0.5s ease-in 0s\",\n height: isConflicting ? \"auto\" : \"100%\"\n }),\n cardError: css({\n boxShadow: `0px 0px 4px 0px ${theme.colors.warning.main}`,\n border: `1px solid ${theme.colors.warning.main}`\n }),\n cardHighlight: css({\n boxShadow: `0px 0px 4px 0px ${theme.colors.primary.border}`,\n border: `1px solid ${theme.colors.primary.border}`\n }),\n infoIcon: css({\n marginLeft: theme.spacing(0.5),\n color: theme.colors.text.secondary,\n \":hover\": {\n color: theme.colors.text.primary\n }\n }),\n body: css({\n margin: theme.spacing(1, 1, 0.5, 1),\n display: \"table\"\n }),\n paramRow: css({\n label: \"paramRow\",\n display: \"table-row\",\n verticalAlign: \"middle\"\n }),\n paramName: css({\n display: \"table-cell\",\n padding: theme.spacing(0, 1, 0, 0),\n fontSize: theme.typography.bodySmall.fontSize,\n fontWeight: theme.typography.fontWeightMedium,\n verticalAlign: \"middle\",\n height: \"32px\"\n }),\n paramValue: css({\n label: \"paramValue\",\n display: \"table-cell\",\n verticalAlign: \"middle\"\n }),\n restParam: css({\n padding: theme.spacing(0, 1, 1, 1)\n }),\n arrow: css({\n position: \"absolute\",\n top: \"0\",\n right: \"-18px\",\n display: \"flex\"\n }),\n arrowLine: css({\n height: \"2px\",\n width: \"8px\",\n backgroundColor: theme.colors.border.strong,\n position: \"relative\",\n top: \"14px\"\n }),\n arrowArrow: css({\n width: 0,\n height: 0,\n borderTop: `5px solid transparent`,\n borderBottom: `5px solid transparent`,\n borderLeft: `7px solid ${theme.colors.border.strong}`,\n position: \"relative\",\n top: \"10px\"\n })\n };\n};\nfunction useFlash(flash) {\n const [keepFlash, setKeepFlash] = useState(true);\n useEffect(() => {\n let t;\n if (flash) {\n t = setTimeout(() => {\n setKeepFlash(false);\n }, 1e3);\n } else {\n setKeepFlash(true);\n }\n return () => clearTimeout(t);\n }, [flash]);\n return keepFlash && flash;\n}\nfunction callParamChangedThenOnChange(def, operation, operationIndex, paramIndex, onChange) {\n if (def.paramChangedHandler) {\n onChange(operationIndex, def.paramChangedHandler(paramIndex, operation, def));\n } else {\n onChange(operationIndex, operation);\n }\n}\nfunction renderAddRestParamButton(paramDef, onAddRestParam, operationIndex, paramIndex, styles) {\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.restParam, key: `${paramIndex}-2` }, /* @__PURE__ */ React__default.createElement(\n Button,\n {\n size: \"sm\",\n icon: \"plus\",\n title: `Add ${paramDef.name}`.trimEnd(),\n variant: \"secondary\",\n onClick: onAddRestParam,\n \"data-testid\": `operations.${operationIndex}.add-rest-param`\n },\n paramDef.name\n ));\n}\n\nexport { OperationEditorBody };\n//# sourceMappingURL=OperationEditorBody.js.map\n","import { cx, css } from '@emotion/css';\nimport React__default from 'react';\nimport { Draggable } from 'react-beautiful-dnd';\nimport { useTheme2, InlineField } from '@grafana/ui';\nimport { OperationEditorBody } from './OperationEditorBody.js';\n\nfunction OperationEditor({\n operation,\n index,\n onRemove,\n onChange,\n onRunQuery,\n queryModeller,\n query,\n datasource,\n flash,\n highlight,\n timeRange,\n isConflictingOperation\n}) {\n const def = queryModeller.getOperationDefinition(operation.id);\n const theme = useTheme2();\n const isConflicting = isConflictingOperation ? isConflictingOperation(operation, query.operations) : false;\n const styles = getStyles(theme);\n if (!def) {\n return /* @__PURE__ */ React__default.createElement(\"span\", null, \"Operation \", operation.id, \" not found\");\n }\n const isInvalid = (isDragging) => {\n if (isDragging) {\n return void 0;\n }\n return isConflicting ? true : void 0;\n };\n return /* @__PURE__ */ React__default.createElement(Draggable, { draggableId: `operation-${index}`, index }, (provided, snapshot) => /* @__PURE__ */ React__default.createElement(\n InlineField,\n {\n error: \"You have conflicting label filters\",\n invalid: isInvalid(snapshot.isDragging),\n className: cx(styles.error, styles.cardWrapper)\n },\n /* @__PURE__ */ React__default.createElement(\n OperationEditorBody,\n {\n provided,\n flash,\n highlight,\n isConflicting,\n index,\n operation,\n definition: def,\n onChange,\n onRemove,\n queryModeller,\n query,\n timeRange,\n onRunQuery,\n datasource\n }\n )\n ));\n}\nconst getStyles = (theme, isConflicting) => {\n return {\n cardWrapper: css({\n alignItems: \"stretch\"\n }),\n error: css({\n marginBottom: theme.spacing(1)\n })\n };\n};\n\nexport { OperationEditor };\n//# sourceMappingURL=OperationEditor.js.map\n","import { css } from '@emotion/css';\nimport React__default, { useState } from 'react';\nimport { DragDropContext, Droppable } from 'react-beautiful-dnd';\nimport { useMountedState, usePrevious } from 'react-use';\nimport { useStyles2, Cascader, Button } from '@grafana/ui';\nimport { OperationEditor } from './OperationEditor.js';\nimport { Stack } from '../../QueryEditor/Stack.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nfunction OperationList({\n query,\n datasource,\n queryModeller,\n onChange,\n onRunQuery,\n highlightedOp,\n timeRange,\n isConflictingOperation\n}) {\n const styles = useStyles2(getStyles);\n const { operations } = query;\n const opsToHighlight = useOperationsHighlight(operations);\n const [cascaderOpen, setCascaderOpen] = useState(false);\n const onOperationChange = (index, update) => {\n const updatedList = [...operations];\n updatedList.splice(index, 1, update);\n onChange(__spreadProps(__spreadValues({}, query), { operations: updatedList }));\n };\n const onRemove = (index) => {\n const updatedList = [...operations.slice(0, index), ...operations.slice(index + 1)];\n onChange(__spreadProps(__spreadValues({}, query), { operations: updatedList }));\n };\n const addOptions = queryModeller.getCategories().map((category) => {\n return {\n value: category,\n label: category,\n items: queryModeller.getOperationsForCategory(category).map((operation) => ({\n value: operation.id,\n label: operation.name,\n isLeaf: true\n }))\n };\n });\n const onAddOperation = (value) => {\n const operationDef = queryModeller.getOperationDefinition(value);\n if (!operationDef) {\n return;\n }\n onChange(operationDef.addOperationHandler(operationDef, query, queryModeller));\n setCascaderOpen(false);\n };\n const onDragEnd = (result) => {\n if (!result.destination) {\n return;\n }\n const updatedList = [...operations];\n const element = updatedList[result.source.index];\n updatedList.splice(result.source.index, 1);\n updatedList.splice(result.destination.index, 0, element);\n onChange(__spreadProps(__spreadValues({}, query), { operations: updatedList }));\n };\n const onCascaderBlur = () => {\n setCascaderOpen(false);\n };\n return /* @__PURE__ */ React__default.createElement(Stack, { gap: 1, direction: \"column\" }, /* @__PURE__ */ React__default.createElement(Stack, { gap: 1 }, operations.length > 0 && /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: \"sortable-field-mappings\", direction: \"horizontal\" }, (provided) => /* @__PURE__ */ React__default.createElement(\"div\", __spreadValues({ className: styles.operationList, ref: provided.innerRef }, provided.droppableProps), operations.map((op, index) => {\n return /* @__PURE__ */ React__default.createElement(\n OperationEditor,\n {\n key: op.id + JSON.stringify(op.params) + index,\n queryModeller,\n index,\n operation: op,\n query,\n datasource,\n onChange: onOperationChange,\n onRemove,\n onRunQuery,\n flash: opsToHighlight[index],\n highlight: highlightedOp === op,\n timeRange,\n isConflictingOperation\n }\n );\n }), provided.placeholder))), /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.addButton }, cascaderOpen ? /* @__PURE__ */ React__default.createElement(\n Cascader,\n {\n options: addOptions,\n onSelect: onAddOperation,\n onBlur: onCascaderBlur,\n autoFocus: true,\n alwaysOpen: true,\n hideActiveLevelLabel: true,\n placeholder: \"Search\"\n }\n ) : /* @__PURE__ */ React__default.createElement(Button, { icon: \"plus\", variant: \"secondary\", onClick: () => setCascaderOpen(true), title: \"Add operation\" }, \"Operations\"))));\n}\nfunction useOperationsHighlight(operations) {\n const isMounted = useMountedState();\n const prevOperations = usePrevious(operations);\n if (!isMounted()) {\n return operations.map(() => false);\n }\n if (!prevOperations) {\n return operations.map(() => true);\n }\n let newOps = [];\n if (prevOperations.length - 1 === operations.length && operations.every((op) => prevOperations.includes(op))) {\n return operations.map(() => false);\n }\n if (prevOperations.length + 1 === operations.length && prevOperations.every((op) => operations.includes(op))) {\n const newOp = operations.find((op) => !prevOperations.includes(op));\n newOps = operations.map((op) => {\n return op === newOp;\n });\n } else {\n newOps = operations.map((op, index) => {\n var _a;\n return !isSameOp(op.id, (_a = prevOperations[index]) == null ? void 0 : _a.id);\n });\n }\n return newOps;\n}\nfunction isSameOp(op1, op2) {\n return op1 === op2 || `__${op1}_by` === op2 || op1 === `__${op2}_by`;\n}\nconst getStyles = (theme) => {\n return {\n heading: css({\n label: \"heading\",\n fontSize: 12,\n fontWeight: theme.typography.fontWeightMedium,\n marginBottom: 0\n }),\n operationList: css({\n label: \"operationList\",\n display: \"flex\",\n flexWrap: \"wrap\",\n gap: theme.spacing(2)\n }),\n addButton: css({\n label: \"addButton\",\n width: 126,\n paddingBottom: theme.spacing(1)\n })\n };\n};\n\nexport { OperationList };\n//# sourceMappingURL=OperationList.js.map\n","import { css } from '@emotion/css';\nimport React__default, { useState, useEffect } from 'react';\nimport { reportInteraction } from '@grafana/runtime';\nimport { useStyles2, Tooltip, Button } from '@grafana/ui';\n\nconst QueryBuilderHints = ({\n datasource,\n query: visualQuery,\n onChange,\n data,\n queryModeller,\n buildVisualQueryFromString,\n buildDataQueryFromQueryString,\n buildQueryStringFromDataQuery\n}) => {\n const [hints, setHints] = useState([]);\n const styles = useStyles2(getStyles);\n useEffect(() => {\n var _a;\n const dataQuery = buildDataQueryFromQueryString(queryModeller.renderQuery(visualQuery));\n const hints2 = (_a = datasource.getQueryHints) == null ? void 0 : _a.call(datasource, dataQuery, (data == null ? void 0 : data.series) || []).filter((hint) => {\n var _a2;\n return (_a2 = hint.fix) == null ? void 0 : _a2.action;\n });\n setHints(hints2 != null ? hints2 : []);\n }, [datasource, visualQuery, data, queryModeller, buildDataQueryFromQueryString]);\n return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, hints.length > 0 && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.container }, hints.map((hint) => {\n var _a, _b, _c, _d;\n return /* @__PURE__ */ React__default.createElement(Tooltip, { content: `${hint.label} ${(_a = hint.fix) == null ? void 0 : _a.label}`, key: hint.type }, /* @__PURE__ */ React__default.createElement(\n Button,\n {\n onClick: () => {\n var _a2, _b2, _c2;\n reportInteraction(\"grafana_query_builder_hints_clicked\", {\n hint: hint.type,\n datasourceType: datasource.type\n });\n if ((_a2 = hint == null ? void 0 : hint.fix) == null ? void 0 : _a2.action) {\n const dataQuery = buildDataQueryFromQueryString(queryModeller.renderQuery(visualQuery));\n const newQuery = (_b2 = datasource.modifyQuery) == null ? void 0 : _b2.call(datasource, dataQuery, hint.fix.action);\n if (newQuery) {\n const newVisualQuery = buildVisualQueryFromString((_c2 = buildQueryStringFromDataQuery(newQuery)) != null ? _c2 : \"\");\n return onChange(newVisualQuery.query);\n }\n }\n },\n fill: \"outline\",\n size: \"sm\",\n className: styles.hint\n },\n \"hint: \",\n ((_b = hint.fix) == null ? void 0 : _b.title) || ((_d = (_c = hint.fix) == null ? void 0 : _c.action) == null ? void 0 : _d.type.toLowerCase().replace(\"_\", \" \"))\n ));\n })));\n};\nQueryBuilderHints.displayName = \"QueryBuilderHints\";\nconst getStyles = (theme) => {\n return {\n container: css`\n display: flex;\n align-items: start;\n `,\n hint: css`\n margin-right: ${theme.spacing(1)};\n `\n };\n};\n\nexport { QueryBuilderHints };\n//# sourceMappingURL=QueryBuilderHints.js.map\n","import React__default from 'react';\nimport { OperationExplainedBox } from './OperationExplainedBox.js';\nimport { RawQuery } from './RawQuery.js';\n\nfunction OperationListExplained({\n query,\n queryModeller,\n stepNumber,\n language,\n onMouseEnter,\n onMouseLeave\n}) {\n return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, query.operations.map((op, index) => {\n var _a;\n const def = queryModeller.getOperationDefinition(op.id);\n if (!def) {\n return `Operation ${op.id} not found`;\n }\n const title = def.renderer(op, def, queryModeller.innerQueryPlaceholder);\n const body = def.explainHandler ? def.explainHandler(op, def) : (_a = def.documentation) != null ? _a : \"no docs\";\n return /* @__PURE__ */ React__default.createElement(\n \"div\",\n {\n key: index,\n onMouseEnter: () => onMouseEnter == null ? void 0 : onMouseEnter(op, index),\n onMouseLeave: () => onMouseLeave == null ? void 0 : onMouseLeave(op, index)\n },\n /* @__PURE__ */ React__default.createElement(\n OperationExplainedBox,\n {\n stepNumber: index + stepNumber,\n title: /* @__PURE__ */ React__default.createElement(RawQuery, { query: title, language }),\n markdown: body\n }\n )\n );\n }));\n}\n\nexport { OperationListExplained };\n//# sourceMappingURL=OperationListExplained.js.map\n","import React from 'react';\n\nimport { OperationExplainedBox, OperationListExplained, RawQuery } from '@grafana/experimental';\nimport { Stack } from '@grafana/ui';\n\nimport { lokiGrammar } from '../../syntax';\nimport { lokiQueryModeller } from '../LokiQueryModeller';\nimport { buildVisualQueryFromString } from '../parsing';\nimport { LokiVisualQuery } from '../types';\n\nexport const EXPLAIN_LABEL_FILTER_CONTENT = 'Fetch all log lines matching label filters.';\n\nexport interface Props {\n query: string;\n}\n\nexport const LokiQueryBuilderExplained = React.memo<Props>(({ query }) => {\n const visQuery = buildVisualQueryFromString(query || '').query;\n const lang = { grammar: lokiGrammar, name: 'lokiql' };\n\n return (\n <Stack gap={0} direction=\"column\">\n <OperationExplainedBox\n stepNumber={1}\n title={<RawQuery query={`${lokiQueryModeller.renderLabels(visQuery.labels)}`} language={lang} />}\n >\n {EXPLAIN_LABEL_FILTER_CONTENT}\n </OperationExplainedBox>\n <OperationListExplained<LokiVisualQuery>\n stepNumber={2}\n queryModeller={lokiQueryModeller}\n query={visQuery}\n language={lang}\n />\n </Stack>\n );\n});\n\nLokiQueryBuilderExplained.displayName = 'LokiQueryBuilderExplained';\n","import { css } from '@emotion/css';\nimport React from 'react';\n\nimport { GrafanaTheme2, toOption } from '@grafana/data';\nimport { EditorRows, FlexItem } from '@grafana/experimental';\nimport { AutoSizeInput, IconButton, Select, useStyles2 } from '@grafana/ui';\n\nimport { LokiDatasource } from '../../datasource';\nimport { binaryScalarDefs } from '../binaryScalarOperations';\nimport { LokiVisualQueryBinary } from '../types';\n\nimport { LokiQueryBuilder } from './LokiQueryBuilder';\n\nexport interface Props {\n nestedQuery: LokiVisualQueryBinary;\n datasource: LokiDatasource;\n index: number;\n showExplain: boolean;\n onChange: (index: number, update: LokiVisualQueryBinary) => void;\n onRemove: (index: number) => void;\n onRunQuery: () => void;\n}\n\nexport const NestedQuery = React.memo<Props>(\n ({ nestedQuery, index, datasource, onChange, onRemove, onRunQuery, showExplain }) => {\n const styles = useStyles2(getStyles);\n\n return (\n <div className={styles.card}>\n <div className={styles.header}>\n <div className={styles.name}>Operator</div>\n <Select\n aria-label=\"Select operator\"\n width=\"auto\"\n options={operators}\n value={toOption(nestedQuery.operator)}\n onChange={(value) => {\n onChange(index, {\n ...nestedQuery,\n operator: value.value!,\n });\n }}\n />\n <div className={styles.name}>Vector matches</div>\n <div className={styles.vectorMatchWrapper}>\n <Select<LokiVisualQueryBinary['vectorMatchesType']>\n width=\"auto\"\n value={nestedQuery.vectorMatchesType || 'on'}\n allowCustomValue\n options={[\n { value: 'on', label: 'on' },\n { value: 'ignoring', label: 'ignoring' },\n ]}\n onChange={(val) => {\n onChange(index, {\n ...nestedQuery,\n vectorMatchesType: val.value,\n });\n }}\n />\n <AutoSizeInput\n className={styles.vectorMatchInput}\n minWidth={20}\n defaultValue={nestedQuery.vectorMatches}\n onCommitChange={(evt) => {\n onChange(index, {\n ...nestedQuery,\n vectorMatches: evt.currentTarget.value,\n vectorMatchesType: nestedQuery.vectorMatchesType || 'on',\n });\n }}\n />\n </div>\n <FlexItem grow={1} />\n <IconButton name=\"times\" size=\"sm\" onClick={() => onRemove(index)} tooltip=\"Remove nested query\" />\n </div>\n <div className={styles.body}>\n <EditorRows>\n <LokiQueryBuilder\n showExplain={showExplain}\n query={nestedQuery.query}\n datasource={datasource}\n onRunQuery={onRunQuery}\n onChange={(update) => {\n onChange(index, { ...nestedQuery, query: update });\n }}\n />\n </EditorRows>\n </div>\n </div>\n );\n }\n);\n\nconst operators = binaryScalarDefs.map((def) => ({ label: def.sign, value: def.sign }));\n\nNestedQuery.displayName = 'NestedQuery';\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n card: css({\n label: 'card',\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(0.5),\n }),\n header: css({\n label: 'header',\n padding: theme.spacing(0.5, 0.5, 0.5, 1),\n gap: theme.spacing(1),\n display: 'flex',\n alignItems: 'center',\n }),\n name: css({\n label: 'name',\n whiteSpace: 'nowrap',\n }),\n body: css({\n label: 'body',\n paddingLeft: theme.spacing(2),\n }),\n vectorMatchInput: css({\n label: 'vectorMatchInput',\n marginLeft: -1,\n }),\n vectorMatchWrapper: css({\n label: 'vectorMatchWrapper',\n display: 'flex',\n }),\n };\n};\n","import React from 'react';\n\nimport { Stack } from '@grafana/ui';\n\nimport { LokiDatasource } from '../../datasource';\nimport { LokiVisualQuery, LokiVisualQueryBinary } from '../types';\n\nimport { NestedQuery } from './NestedQuery';\n\nexport interface Props {\n query: LokiVisualQuery;\n datasource: LokiDatasource;\n showExplain: boolean;\n onChange: (query: LokiVisualQuery) => void;\n onRunQuery: () => void;\n}\n\nexport function NestedQueryList({ query, datasource, onChange, onRunQuery, showExplain }: Props) {\n const nestedQueries = query.binaryQueries ?? [];\n\n const onNestedQueryUpdate = (index: number, update: LokiVisualQueryBinary) => {\n const updatedList = [...nestedQueries];\n updatedList.splice(index, 1, update);\n onChange({ ...query, binaryQueries: updatedList });\n };\n\n const onRemove = (index: number) => {\n const updatedList = [...nestedQueries.slice(0, index), ...nestedQueries.slice(index + 1)];\n onChange({ ...query, binaryQueries: updatedList });\n };\n\n return (\n <Stack direction=\"column\" gap={1}>\n {nestedQueries.map((nestedQuery, index) => (\n <NestedQuery\n key={index.toString()}\n nestedQuery={nestedQuery}\n index={index}\n onChange={onNestedQueryUpdate}\n datasource={datasource}\n onRemove={onRemove}\n onRunQuery={onRunQuery}\n showExplain={showExplain}\n />\n ))}\n </Stack>\n );\n}\n","import { isEqual } from 'lodash';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { usePrevious } from 'react-use';\n\nimport { DataSourceApi, getDefaultTimeRange, LoadingState, PanelData, SelectableValue, TimeRange } from '@grafana/data';\nimport {\n EditorRow,\n LabelFilters,\n OperationExplainedBox,\n OperationList,\n OperationListExplained,\n OperationsEditorRow,\n QueryBuilderHints,\n RawQuery,\n QueryBuilderLabelFilter,\n QueryBuilderOperation,\n} from '@grafana/experimental';\nimport { config } from '@grafana/runtime';\n\nimport { testIds } from '../../components/LokiQueryEditor';\nimport { LokiDatasource } from '../../datasource';\nimport { escapeLabelValueInSelector } from '../../languageUtils';\nimport logqlGrammar from '../../syntax';\nimport { LokiQuery } from '../../types';\nimport { lokiQueryModeller } from '../LokiQueryModeller';\nimport { isConflictingFilter } from '../operationUtils';\nimport { buildVisualQueryFromString } from '../parsing';\nimport { LokiOperationId, LokiVisualQuery } from '../types';\n\nimport { EXPLAIN_LABEL_FILTER_CONTENT } from './LokiQueryBuilderExplained';\nimport { NestedQueryList } from './NestedQueryList';\n\nexport const TIME_SPAN_TO_TRIGGER_SAMPLES = 5 * 60 * 1000;\nexport interface Props {\n query: LokiVisualQuery;\n datasource: LokiDatasource;\n showExplain: boolean;\n timeRange?: TimeRange;\n onChange: (update: LokiVisualQuery) => void;\n onRunQuery: () => void;\n}\nexport const LokiQueryBuilder = React.memo<Props>(\n ({ datasource, query, onChange, onRunQuery, showExplain, timeRange }) => {\n const [sampleData, setSampleData] = useState<PanelData>();\n const [highlightedOp, setHighlightedOp] = useState<QueryBuilderOperation | undefined>(undefined);\n const prevQuery = usePrevious(query);\n const prevTimeRange = usePrevious(timeRange);\n\n const onChangeLabels = (labels: QueryBuilderLabelFilter[]) => {\n onChange({ ...query, labels });\n };\n\n const withTemplateVariableOptions = async (optionsPromise: Promise<string[]>): Promise<SelectableValue[]> => {\n const options = await optionsPromise;\n return [...datasource.getVariables(), ...options].map((value) => ({ label: value, value }));\n };\n\n const onGetLabelNames = async (forLabel: Partial<QueryBuilderLabelFilter>): Promise<string[]> => {\n const labelsToConsider = query.labels.filter((x) => x !== forLabel);\n\n const hasEqualityOperation = labelsToConsider.find(\n (filter) => filter.op === '=' || (filter.op === '=~' && new RegExp(filter.value).test('') === false)\n );\n if (labelsToConsider.length === 0 || !hasEqualityOperation) {\n return await datasource.languageProvider.fetchLabels({ timeRange });\n }\n\n const expr = lokiQueryModeller.renderLabels(labelsToConsider);\n const series = await datasource.languageProvider.fetchSeriesLabels(expr, { timeRange });\n const labelsNamesToConsider = labelsToConsider.map((l) => l.label);\n\n const labelNames = Object.keys(series)\n // Filter out label names that are already selected\n .filter((name) => !labelsNamesToConsider.includes(name))\n .sort();\n\n return labelNames;\n };\n\n const onGetLabelValues = async (forLabel: Partial<QueryBuilderLabelFilter>) => {\n if (!forLabel.label) {\n return [];\n }\n\n let values;\n const labelsToConsider = query.labels.filter((x) => x !== forLabel);\n // If we have no equality/regex operation with .*, we can't fetch series as it will throw an error, so we fetch label values\n const hasEqualityOperation = labelsToConsider.find(\n (filter) => filter.op === '=' || (filter.op === '=~' && new RegExp(filter.value).test('') === false)\n );\n if (labelsToConsider.length === 0 || !hasEqualityOperation) {\n values = await datasource.languageProvider.fetchLabelValues(forLabel.label, { timeRange });\n } else {\n const expr = lokiQueryModeller.renderLabels(labelsToConsider);\n const result = await datasource.languageProvider.fetchSeriesLabels(expr, { timeRange });\n values = result[datasource.interpolateString(forLabel.label)];\n }\n\n return values ? values.map((v) => escapeLabelValueInSelector(v, forLabel.op)) : []; // Escape values in return\n };\n\n const labelFilterRequired: boolean = useMemo(() => {\n const { labels, operations: op } = query;\n if (!labels.length && op.length) {\n // Filter is required when operations are present (empty line contains operation is exception)\n if (op.length === 1 && op[0].id === LokiOperationId.LineContains && op[0].params[0] === '') {\n return false;\n }\n return true;\n }\n return false;\n }, [query]);\n\n useEffect(() => {\n const onGetSampleData = async () => {\n const lokiQuery = { expr: lokiQueryModeller.renderQuery(query), refId: 'data-samples' };\n const range = timeRange ?? getDefaultTimeRange();\n const series = await datasource.getDataSamples(lokiQuery, range);\n const sampleData = { series, state: LoadingState.Done, timeRange: range };\n setSampleData(sampleData);\n };\n\n const updateBasedOnChangedTimeRange =\n prevTimeRange &&\n timeRange &&\n (Math.abs(timeRange.to.valueOf() - prevTimeRange.to.valueOf()) > TIME_SPAN_TO_TRIGGER_SAMPLES ||\n Math.abs(timeRange.from.valueOf() - prevTimeRange.from.valueOf()) > TIME_SPAN_TO_TRIGGER_SAMPLES);\n const updateBasedOnChangedQuery = !isEqual(prevQuery, query);\n if (config.featureToggles.lokiQueryHints && (updateBasedOnChangedTimeRange || updateBasedOnChangedQuery)) {\n onGetSampleData().catch(console.error);\n }\n }, [datasource, query, timeRange, prevQuery, prevTimeRange]);\n\n const lang = { grammar: logqlGrammar, name: 'logql' };\n return (\n <div data-testid={testIds.editor}>\n <EditorRow>\n <LabelFilters\n onGetLabelNames={(forLabel: Partial<QueryBuilderLabelFilter>) =>\n withTemplateVariableOptions(onGetLabelNames(forLabel))\n }\n onGetLabelValues={(forLabel: Partial<QueryBuilderLabelFilter>) =>\n withTemplateVariableOptions(onGetLabelValues(forLabel))\n }\n labelsFilters={query.labels}\n onChange={onChangeLabels}\n labelFilterRequired={labelFilterRequired}\n />\n </EditorRow>\n {showExplain && (\n <OperationExplainedBox\n stepNumber={1}\n title={<RawQuery query={`${lokiQueryModeller.renderLabels(query.labels)}`} language={lang} />}\n >\n {EXPLAIN_LABEL_FILTER_CONTENT}\n </OperationExplainedBox>\n )}\n <OperationsEditorRow>\n <OperationList\n queryModeller={lokiQueryModeller}\n query={query}\n onChange={onChange}\n onRunQuery={onRunQuery}\n datasource={datasource as DataSourceApi}\n highlightedOp={highlightedOp}\n isConflictingOperation={(operation: QueryBuilderOperation, otherOperations: QueryBuilderOperation[]) =>\n operation.id === LokiOperationId.LabelFilter && isConflictingFilter(operation, otherOperations)\n }\n />\n <QueryBuilderHints<LokiVisualQuery, LokiQuery>\n datasource={datasource}\n query={query}\n onChange={onChange}\n data={sampleData}\n queryModeller={lokiQueryModeller}\n buildVisualQueryFromString={buildVisualQueryFromString}\n buildDataQueryFromQueryString={(queryString) => ({ expr: queryString, refId: 'hints' })}\n buildQueryStringFromDataQuery={(query) => query.expr}\n />\n </OperationsEditorRow>\n {showExplain && (\n <OperationListExplained<LokiVisualQuery>\n stepNumber={2}\n queryModeller={lokiQueryModeller}\n query={query}\n language={lang}\n onMouseEnter={(op) => {\n setHighlightedOp(op);\n }}\n onMouseLeave={() => {\n setHighlightedOp(undefined);\n }}\n />\n )}\n {query.binaryQueries && query.binaryQueries.length > 0 && (\n <NestedQueryList\n query={query}\n datasource={datasource}\n onChange={onChange}\n onRunQuery={onRunQuery}\n showExplain={showExplain}\n />\n )}\n </div>\n );\n }\n);\n\nLokiQueryBuilder.displayName = 'LokiQueryBuilder';\n","import React from 'react';\n\nimport { EditorRow, EditorFieldGroup, RawQuery } from '@grafana/experimental';\n\nimport { lokiGrammar } from '../../syntax';\n\nexport interface Props {\n query: string;\n}\n\nexport function QueryPreview({ query }: Props) {\n return (\n <EditorRow>\n <EditorFieldGroup>\n <RawQuery query={query} language={{ grammar: lokiGrammar, name: 'lokiql' }} />\n </EditorFieldGroup>\n </EditorRow>\n );\n}\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport React, { useEffect, useReducer } from 'react';\n\nimport { TimeRange } from '@grafana/data';\n\nimport { testIds } from '../../components/LokiQueryEditor';\nimport { LokiDatasource } from '../../datasource';\nimport { LokiQuery } from '../../types';\nimport { lokiQueryModeller } from '../LokiQueryModeller';\nimport { buildVisualQueryFromString } from '../parsing';\nimport { LokiVisualQuery } from '../types';\n\nimport { LokiQueryBuilder } from './LokiQueryBuilder';\nimport { QueryPreview } from './QueryPreview';\n\nexport interface Props {\n query: LokiQuery;\n datasource: LokiDatasource;\n onChange: (update: LokiQuery) => void;\n onRunQuery: () => void;\n showExplain: boolean;\n timeRange?: TimeRange;\n}\n\nexport interface State {\n visQuery?: LokiVisualQuery;\n expr: string;\n}\n\n/**\n * This component is here just to contain the translation logic between string query and the visual query builder model.\n */\nexport function LokiQueryBuilderContainer(props: Props) {\n const { query, onChange, onRunQuery, datasource, showExplain, timeRange } = props;\n const [state, dispatch] = useReducer(stateSlice.reducer, {\n expr: query.expr,\n // Use initial visual query only if query.expr is empty string\n visQuery:\n query.expr === ''\n ? {\n labels: [],\n operations: [{ id: '__line_contains', params: [''] }],\n }\n : undefined,\n });\n\n // Only rebuild visual query if expr changes from outside\n useEffect(() => {\n dispatch(exprChanged(query.expr));\n }, [query.expr]);\n\n const onVisQueryChange = (visQuery: LokiVisualQuery) => {\n const expr = lokiQueryModeller.renderQuery(visQuery);\n dispatch(visualQueryChange({ visQuery, expr }));\n onChange({ ...props.query, expr: expr });\n };\n\n if (!state.visQuery) {\n return null;\n }\n\n return (\n <>\n <LokiQueryBuilder\n query={state.visQuery}\n datasource={datasource}\n onChange={onVisQueryChange}\n onRunQuery={onRunQuery}\n showExplain={showExplain}\n data-testid={testIds.editor}\n timeRange={timeRange}\n />\n {query.expr !== '' && <QueryPreview query={query.expr} />}\n </>\n );\n}\n\nconst initialState: State = { expr: '' };\n\nconst stateSlice = createSlice({\n name: 'loki-builder-container',\n initialState,\n reducers: {\n visualQueryChange: (state, action: PayloadAction<{ visQuery: LokiVisualQuery; expr: string }>) => {\n state.expr = action.payload.expr;\n state.visQuery = action.payload.visQuery;\n },\n exprChanged: (state, action: PayloadAction<string>) => {\n if (!state.visQuery || state.expr !== action.payload) {\n state.expr = action.payload;\n const parseResult = buildVisualQueryFromString(action.payload);\n state.visQuery = parseResult.query;\n }\n },\n },\n});\n\nconst { visualQueryChange, exprChanged } = stateSlice.actions;\n","import { css } from '@emotion/css';\nimport React__default from 'react';\nimport { useToggle } from 'react-use';\nimport { getValueFormat } from '@grafana/data';\nimport { config } from '@grafana/runtime';\nimport { useStyles2, Collapse, Tooltip, Icon } from '@grafana/ui';\nimport { Stack } from '../../QueryEditor/Stack.js';\n\nfunction QueryOptionGroup({ title, children, collapsedInfo, queryStats }) {\n const [isOpen, toggleOpen] = useToggle(false);\n const styles = useStyles2(getStyles);\n return /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.wrapper }, /* @__PURE__ */ React__default.createElement(\n Collapse,\n {\n className: styles.collapse,\n collapsible: true,\n isOpen,\n onToggle: toggleOpen,\n label: /* @__PURE__ */ React__default.createElement(Stack, { gap: 0 }, /* @__PURE__ */ React__default.createElement(\"h6\", { className: styles.title }, title), !isOpen && /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.description }, collapsedInfo.map((x, i) => /* @__PURE__ */ React__default.createElement(\"span\", { key: i }, x))))\n },\n /* @__PURE__ */ React__default.createElement(\"div\", { className: styles.body }, children)\n ), queryStats && config.featureToggles.lokiQuerySplitting && /* @__PURE__ */ React__default.createElement(Tooltip, { content: \"Note: the query will be split into multiple parts and executed in sequence. Query limits will only apply each individual part.\" }, /* @__PURE__ */ React__default.createElement(Icon, { tabIndex: 0, name: \"info-circle\", className: styles.tooltip, size: \"sm\" })), queryStats && /* @__PURE__ */ React__default.createElement(\"p\", { className: styles.stats }, generateQueryStats(queryStats)));\n}\nconst getStyles = (theme) => {\n return {\n collapse: css({\n backgroundColor: \"unset\",\n border: \"unset\",\n marginBottom: 0,\n [\"> button\"]: {\n padding: theme.spacing(0, 1)\n }\n }),\n wrapper: css({\n width: \"100%\",\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"baseline\"\n }),\n title: css({\n flexGrow: 1,\n overflow: \"hidden\",\n fontSize: theme.typography.bodySmall.fontSize,\n fontWeight: theme.typography.fontWeightMedium,\n margin: 0\n }),\n description: css({\n color: theme.colors.text.secondary,\n fontSize: theme.typography.bodySmall.fontSize,\n fontWeight: theme.typography.bodySmall.fontWeight,\n paddingLeft: theme.spacing(2),\n gap: theme.spacing(2),\n display: \"flex\"\n }),\n body: css({\n display: \"flex\",\n gap: theme.spacing(2),\n flexWrap: \"wrap\"\n }),\n stats: css({\n margin: \"0px\",\n color: theme.colors.text.secondary,\n fontSize: theme.typography.bodySmall.fontSize\n }),\n tooltip: css({\n marginRight: theme.spacing(0.25)\n })\n };\n};\nconst generateQueryStats = (queryStats) => {\n if (queryStats.message) {\n return queryStats.message;\n }\n return `This query will process approximately ${convertUnits(queryStats)}.`;\n};\nconst convertUnits = (queryStats) => {\n const { text, suffix } = getValueFormat(\"bytes\")(queryStats.bytes, 1);\n return text + suffix;\n};\n\nexport { QueryOptionGroup };\n//# sourceMappingURL=QueryOptionGroup.js.map\n","import { trim } from 'lodash';\nimport React, { useMemo, useState } from 'react';\n\nimport { CoreApp, isValidDuration, isValidGrafanaDuration, SelectableValue } from '@grafana/data';\nimport { EditorField, EditorRow, QueryOptionGroup } from '@grafana/experimental';\nimport { config, reportInteraction } from '@grafana/runtime';\nimport { Alert, AutoSizeInput, RadioButtonGroup, Select } from '@grafana/ui';\n\nimport { preprocessMaxLines, queryTypeOptions, RESOLUTION_OPTIONS } from '../../components/LokiOptionFields';\nimport { getLokiQueryType, isLogsQuery } from '../../queryUtils';\nimport { LokiQuery, LokiQueryType, QueryStats } from '../../types';\n\nexport interface Props {\n query: LokiQuery;\n onChange: (update: LokiQuery) => void;\n onRunQuery: () => void;\n maxLines: number;\n app?: CoreApp;\n queryStats: QueryStats | null;\n}\n\nexport const LokiQueryBuilderOptions = React.memo<Props>(\n ({ app, query, onChange, onRunQuery, maxLines, queryStats }) => {\n const [splitDurationValid, setSplitDurationValid] = useState(true);\n\n const onQueryTypeChange = (value: LokiQueryType) => {\n onChange({ ...query, queryType: value });\n onRunQuery();\n };\n\n const onResolutionChange = (option: SelectableValue<number>) => {\n reportInteraction('grafana_loki_resolution_clicked', {\n app,\n resolution: option.value,\n });\n onChange({ ...query, resolution: option.value });\n onRunQuery();\n };\n\n const onChunkRangeChange = (evt: React.FormEvent<HTMLInputElement>) => {\n const value = evt.currentTarget.value;\n if (!isValidDuration(value)) {\n setSplitDurationValid(false);\n return;\n }\n setSplitDurationValid(true);\n onChange({ ...query, splitDuration: value });\n onRunQuery();\n };\n\n const onLegendFormatChanged = (evt: React.FormEvent<HTMLInputElement>) => {\n onChange({ ...query, legendFormat: evt.currentTarget.value });\n onRunQuery();\n };\n\n function onMaxLinesChange(e: React.SyntheticEvent<HTMLInputElement>) {\n const newMaxLines = preprocessMaxLines(e.currentTarget.value);\n if (query.maxLines !== newMaxLines) {\n onChange({ ...query, maxLines: newMaxLines });\n onRunQuery();\n }\n }\n\n function onStepChange(e: React.SyntheticEvent<HTMLInputElement>) {\n onChange({ ...query, step: trim(e.currentTarget.value) });\n onRunQuery();\n }\n\n const queryType = getLokiQueryType(query);\n const isLogQuery = isLogsQuery(query.expr);\n\n const isValidStep = useMemo(() => {\n if (!query.step || isValidGrafanaDuration(query.step) || !isNaN(Number(query.step))) {\n return true;\n }\n return false;\n }, [query.step]);\n\n return (\n <EditorRow>\n <QueryOptionGroup\n title=\"Options\"\n collapsedInfo={getCollapsedInfo(query, queryType, maxLines, isLogQuery, isValidStep)}\n queryStats={queryStats}\n >\n <EditorField\n label=\"Legend\"\n tooltip=\"Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname.\"\n >\n <AutoSizeInput\n placeholder=\"{{label}}\"\n type=\"string\"\n minWidth={14}\n defaultValue={query.legendFormat}\n onCommitChange={onLegendFormatChanged}\n />\n </EditorField>\n <EditorField label=\"Type\">\n <RadioButtonGroup options={queryTypeOptions} value={queryType} onChange={onQueryTypeChange} />\n </EditorField>\n {isLogQuery && (\n <EditorField label=\"Line limit\" tooltip=\"Upper limit for number of log lines returned by query.\">\n <AutoSizeInput\n className=\"width-4\"\n placeholder={maxLines.toString()}\n type=\"number\"\n min={0}\n defaultValue={query.maxLines?.toString() ?? ''}\n onCommitChange={onMaxLinesChange}\n />\n </EditorField>\n )}\n {!isLogQuery && (\n <>\n <EditorField\n label=\"Step\"\n tooltip=\"Use the step parameter when making metric queries to Loki. If not filled, Grafana's calculated interval will be used. Example valid values: 1s, 5m, 10h, 1d.\"\n invalid={!isValidStep}\n error={'Invalid step. Example valid values: 1s, 5m, 10h, 1d.'}\n >\n <AutoSizeInput\n className=\"width-6\"\n placeholder={'auto'}\n type=\"string\"\n defaultValue={query.step ?? ''}\n onCommitChange={onStepChange}\n />\n </EditorField>\n {query.resolution !== undefined && query.resolution > 1 && (\n <>\n <EditorField\n label=\"Resolution\"\n tooltip=\"Changes the step parameter of Loki metrics range queries. With a resolution of 1/1, each pixel corresponds to one data point. 1/10 retrieves one data point per 10 pixels. Lower resolutions perform better.\"\n >\n <Select\n isSearchable={false}\n onChange={onResolutionChange}\n options={RESOLUTION_OPTIONS}\n value={query.resolution || 1}\n aria-label=\"Select resolution\"\n />\n </EditorField>\n <Alert\n severity=\"warning\"\n title=\"The 'Resolution' is deprecated. Use 'Step' editor instead to change step parameter.\"\n />\n </>\n )}\n </>\n )}\n {config.featureToggles.lokiQuerySplittingConfig && config.featureToggles.lokiQuerySplitting && (\n <EditorField\n label=\"Split Duration\"\n tooltip=\"Defines the duration of a single query when query splitting is enabled.\"\n >\n <AutoSizeInput\n minWidth={14}\n type=\"string\"\n min={0}\n defaultValue={query.splitDuration ?? '1d'}\n onCommitChange={onChunkRangeChange}\n invalid={!splitDurationValid}\n />\n </EditorField>\n )}\n </QueryOptionGroup>\n </EditorRow>\n );\n }\n);\n\nfunction getCollapsedInfo(\n query: LokiQuery,\n queryType: LokiQueryType,\n maxLines: number,\n isLogQuery: boolean,\n isValidStep: boolean\n): string[] {\n const queryTypeLabel = queryTypeOptions.find((x) => x.value === queryType);\n const resolutionLabel = RESOLUTION_OPTIONS.find((x) => x.value === (query.resolution ?? 1));\n\n const items: string[] = [];\n\n if (query.legendFormat) {\n items.push(`Legend: ${query.legendFormat}`);\n }\n\n items.push(`Type: ${queryTypeLabel?.label}`);\n\n if (isLogQuery) {\n items.push(`Line limit: ${query.maxLines ?? maxLines}`);\n }\n\n if (!isLogQuery) {\n if (query.step) {\n items.push(`Step: ${isValidStep ? query.step : 'Invalid value'}`);\n }\n\n if (query.resolution) {\n items.push(`Resolution: ${resolutionLabel?.label}`);\n }\n }\n\n return items;\n}\n\nLokiQueryBuilderOptions.displayName = 'LokiQueryBuilderOptions';\n","import { css } from '@emotion/css';\nimport React from 'react';\n\nimport { GrafanaTheme2 } from '@grafana/data';\nimport { config } from '@grafana/runtime';\nimport { useStyles2, HorizontalGroup, IconButton, Tooltip, Icon } from '@grafana/ui';\n\nimport { testIds } from '../../components/LokiQueryEditor';\nimport { LokiQueryField } from '../../components/LokiQueryField';\nimport { LokiQueryEditorProps } from '../../components/types';\nimport { formatLogqlQuery } from '../../queryUtils';\n\nimport { LokiQueryBuilderExplained } from './LokiQueryBuilderExplained';\n\ntype Props = LokiQueryEditorProps & {\n showExplain: boolean;\n};\n\nexport function LokiQueryCodeEditor({\n query,\n datasource,\n range,\n onRunQuery,\n onChange,\n data,\n app,\n showExplain,\n history,\n}: Props) {\n const styles = useStyles2(getStyles);\n\n const lokiFormatQuery = config.featureToggles.lokiFormatQuery;\n const onClickFormatQueryButton = async () => onChange({ ...query, expr: formatLogqlQuery(query.expr, datasource) });\n\n return (\n <div className={styles.wrapper}>\n <LokiQueryField\n datasource={datasource}\n query={query}\n range={range}\n onRunQuery={onRunQuery}\n onChange={onChange}\n history={history}\n data={data}\n app={app}\n data-testid={testIds.editor}\n ExtraFieldElement={\n <>\n {lokiFormatQuery && (\n <div className={styles.buttonGroup}>\n <div>\n <HorizontalGroup spacing=\"sm\">\n <IconButton\n onClick={onClickFormatQueryButton}\n name=\"brackets-curly\"\n size=\"xs\"\n tooltip=\"Format query\"\n />\n <Tooltip content={`Use ctrl/cmd + z to undo`}>\n <Icon className={styles.hint} name=\"keyboard\" />\n </Tooltip>\n </HorizontalGroup>\n </div>\n </div>\n )}\n </>\n }\n />\n {showExplain && <LokiQueryBuilderExplained query={query.expr} />}\n </div>\n );\n}\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n wrapper: css`\n max-width: 100%;\n .gf-form {\n margin-bottom: 0.5;\n }\n `,\n buttonGroup: css`\n border: 1px solid ${theme.colors.border.medium};\n border-top: none;\n padding: ${theme.spacing(0.5, 0.5, 0.5, 0.5)};\n margin-bottom: ${theme.spacing(0.5)};\n display: flex;\n flex-grow: 1;\n justify-content: end;\n font-size: ${theme.typography.bodySmall.fontSize};\n `,\n hint: css`\n color: ${theme.colors.text.disabled};\n white-space: nowrap;\n cursor: help;\n `,\n };\n};\n","import { css } from '@emotion/css';\nimport React from 'react';\n\nimport { GrafanaTheme2 } from '@grafana/data';\nimport { RawQuery } from '@grafana/experimental';\nimport { Button, Card, useStyles2 } from '@grafana/ui';\n\nimport logqlGrammar from '../../syntax';\nimport { lokiQueryModeller } from '../LokiQueryModeller';\nimport { LokiQueryPattern } from '../types';\n\ntype Props = {\n pattern: LokiQueryPattern;\n hasNewQueryOption: boolean;\n hasPreviousQuery: boolean;\n selectedPatternName: string | null;\n setSelectedPatternName: (name: string | null) => void;\n onPatternSelect: (pattern: LokiQueryPattern, selectAsNewQuery?: boolean) => void;\n};\n\nexport const QueryPattern = (props: Props) => {\n const { pattern, onPatternSelect, hasNewQueryOption, hasPreviousQuery, selectedPatternName, setSelectedPatternName } =\n props;\n\n const styles = useStyles2(getStyles);\n const lang = { grammar: logqlGrammar, name: 'logql' };\n\n return (\n <Card className={styles.card}>\n <Card.Heading>{pattern.name}</Card.Heading>\n <div className={styles.rawQueryContainer}>\n <RawQuery\n query={lokiQueryModeller.renderQuery({ labels: [], operations: pattern.operations })}\n language={lang}\n className={styles.rawQuery}\n />\n </div>\n <Card.Actions>\n {selectedPatternName !== pattern.name ? (\n <Button\n size=\"sm\"\n onClick={() => {\n if (hasPreviousQuery) {\n // If user has previous query, we need to confirm that they want to replace it\n setSelectedPatternName(pattern.name);\n } else {\n onPatternSelect(pattern);\n }\n }}\n >\n Use this query\n </Button>\n ) : (\n <>\n <div className={styles.spacing}>\n {`If you would like to use this query, ${\n hasNewQueryOption\n ? 'you can either replace your current query or create a new query'\n : 'your current query will be replaced'\n }.`}\n </div>\n <Button size=\"sm\" fill=\"outline\" onClick={() => setSelectedPatternName(null)}>\n Back\n </Button>\n <Button\n size=\"sm\"\n onClick={() => {\n onPatternSelect(pattern);\n }}\n >\n Replace query\n </Button>\n {hasNewQueryOption && (\n <Button\n size=\"sm\"\n onClick={() => {\n onPatternSelect(pattern, true);\n }}\n >\n Create new query\n </Button>\n )}\n </>\n )}\n </Card.Actions>\n </Card>\n );\n};\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n card: css`\n width: 49.5%;\n display: flex;\n flex-direction: column;\n `,\n rawQueryContainer: css`\n flex-grow: 1;\n `,\n rawQuery: css`\n background-color: ${theme.colors.background.primary};\n padding: ${theme.spacing(1)};\n margin-top: ${theme.spacing(1)};\n `,\n spacing: css`\n margin-bottom: ${theme.spacing(1)};\n `,\n };\n};\n","import { css } from '@emotion/css';\nimport { capitalize } from 'lodash';\nimport React, { useMemo, useState } from 'react';\n\nimport { CoreApp, DataQuery, GrafanaTheme2, getNextRefId } from '@grafana/data';\nimport { reportInteraction } from '@grafana/runtime';\nimport { Button, Collapse, Modal, useStyles2 } from '@grafana/ui';\n\nimport { LokiQuery } from '../../types';\nimport { lokiQueryModeller } from '../LokiQueryModeller';\nimport { buildVisualQueryFromString } from '../parsing';\nimport { LokiQueryPattern, LokiQueryPatternType } from '../types';\n\nimport { QueryPattern } from './QueryPattern';\n\ntype Props = {\n isOpen: boolean;\n query: LokiQuery;\n queries: DataQuery[] | undefined;\n app?: CoreApp;\n onClose: () => void;\n onChange: (query: LokiQuery) => void;\n onAddQuery?: (query: LokiQuery) => void;\n};\n\nexport const QueryPatternsModal = (props: Props) => {\n const { isOpen, onClose, onChange, onAddQuery, query, queries, app } = props;\n const [openTabs, setOpenTabs] = useState<string[]>([]);\n const [selectedPatternName, setSelectedPatternName] = useState<string | null>(null);\n\n const styles = useStyles2(getStyles);\n const hasNewQueryOption = !!onAddQuery;\n const hasPreviousQuery = useMemo(\n () => buildVisualQueryFromString(query.expr).query.operations.length > 0,\n [query.expr]\n );\n\n const onPatternSelect = (pattern: LokiQueryPattern, selectAsNewQuery = false) => {\n const visualQuery = buildVisualQueryFromString(selectAsNewQuery ? '' : query.expr);\n reportInteraction('grafana_loki_query_patterns_selected', {\n version: 'v2',\n app: app ?? '',\n editorMode: query.editorMode,\n selectedPattern: pattern.name,\n preSelectedOperationsCount: visualQuery.query.operations.length,\n preSelectedLabelsCount: visualQuery.query.labels.length,\n createNewQuery: hasNewQueryOption && selectAsNewQuery,\n });\n\n visualQuery.query.operations = pattern.operations;\n if (hasNewQueryOption && selectAsNewQuery) {\n onAddQuery({\n ...query,\n refId: getNextRefId(queries ?? [query]),\n expr: lokiQueryModeller.renderQuery(visualQuery.query),\n });\n } else {\n onChange({\n ...query,\n expr: lokiQueryModeller.renderQuery(visualQuery.query),\n });\n }\n setSelectedPatternName(null);\n onClose();\n };\n\n return (\n <Modal isOpen={isOpen} title=\"Kick start your query\" onDismiss={onClose} className={styles.modal}>\n <div className={styles.spacing}>\n Kick start your query by selecting one of these queries. You can then continue to complete your query.\n </div>\n {Object.values(LokiQueryPatternType).map((patternType) => {\n return (\n <Collapse\n key={patternType}\n label={`${capitalize(patternType)} query starters`}\n isOpen={openTabs.includes(patternType)}\n collapsible={true}\n onToggle={() =>\n setOpenTabs((tabs) =>\n // close tab if it's already open, otherwise open it\n tabs.includes(patternType) ? tabs.filter((t) => t !== patternType) : [...tabs, patternType]\n )\n }\n >\n <div className={styles.cardsContainer}>\n {lokiQueryModeller\n .getQueryPatterns()\n .filter((pattern) => pattern.type === patternType)\n .map((pattern) => (\n <QueryPattern\n key={pattern.name}\n pattern={pattern}\n hasNewQueryOption={hasNewQueryOption}\n hasPreviousQuery={hasPreviousQuery}\n onPatternSelect={onPatternSelect}\n selectedPatternName={selectedPatternName}\n setSelectedPatternName={setSelectedPatternName}\n />\n ))}\n </div>\n </Collapse>\n );\n })}\n <Button variant=\"secondary\" onClick={onClose}>\n Close\n </Button>\n </Modal>\n );\n};\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n cardsContainer: css`\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: space-between;\n `,\n spacing: css`\n margin-bottom: ${theme.spacing(1)};\n `,\n modal: css`\n width: 85vw;\n ${theme.breakpoints.down('md')} {\n width: 100%;\n }\n `,\n };\n};\n","import { QueryEditorMode } from '@grafana/experimental';\n\nimport { LokiQuery, LokiQueryType } from '../types';\n\nconst queryEditorModeDefaultLocalStorageKey = 'LokiQueryEditorModeDefault';\n\nexport function changeEditorMode(query: LokiQuery, editorMode: QueryEditorMode, onChange: (query: LokiQuery) => void) {\n // If empty query store new mode as default\n if (query.expr === '') {\n window.localStorage.setItem(queryEditorModeDefaultLocalStorageKey, editorMode);\n }\n\n onChange({ ...query, editorMode });\n}\n\nexport function getDefaultEditorMode(expr: string) {\n // If we already have an expression default to code view\n if (expr != null && expr !== '') {\n return QueryEditorMode.Code;\n }\n\n const value: string | null = window.localStorage.getItem(queryEditorModeDefaultLocalStorageKey);\n switch (value) {\n case 'code':\n return QueryEditorMode.Code;\n\n case 'builder':\n default:\n return QueryEditorMode.Builder;\n }\n}\n\n/**\n * Returns query with defaults, and boolean true/false depending on change was required\n */\nexport function getQueryWithDefaults(query: LokiQuery): LokiQuery {\n // If no expr (ie new query) then default to builder\n let result = query;\n\n if (!query.editorMode) {\n result = { ...query, editorMode: getDefaultEditorMode(query.expr) };\n }\n\n if (query.expr == null) {\n result = { ...result, expr: '' };\n }\n\n if (query.queryType == null) {\n // Default to range query\n result = { ...result, queryType: LokiQueryType.Range };\n }\n\n return result;\n}\n","import { DateTime, isDateTime, TimeRange } from '@grafana/data';\n\nimport { LokiQueryType } from '../types';\n\n/**\n * This function compares two time values. If the first is absolute, it compares them using `DateTime.isSame`.\n *\n * @param {(DateTime | string)} time1\n * @param {(DateTime | string | undefined)} time2\n */\nfunction compareTime(time1: DateTime | string | undefined, time2: DateTime | string | undefined) {\n if (!time1 || !time2) {\n return false;\n }\n\n const isAbsolute = isDateTime(time1);\n\n if (isAbsolute) {\n return time1.isSame(time2);\n }\n\n return time1 === time2;\n}\n\nexport function shouldUpdateStats(\n query: string,\n prevQuery: string | undefined,\n timeRange: TimeRange | undefined,\n prevTimeRange: TimeRange | undefined,\n queryType: LokiQueryType | undefined,\n prevQueryType: LokiQueryType | undefined\n): boolean {\n if (prevQuery === undefined || query.trim() !== prevQuery.trim() || queryType !== prevQueryType) {\n return true;\n }\n\n if (\n compareTime(timeRange?.raw.from, prevTimeRange?.raw.from) &&\n compareTime(timeRange?.raw.to, prevTimeRange?.raw.to)\n ) {\n return false;\n }\n\n return true;\n}\n","import { isEqual } from 'lodash';\nimport React, { SyntheticEvent, useCallback, useEffect, useId, useState } from 'react';\nimport { usePrevious } from 'react-use';\n\nimport { CoreApp, LoadingState } from '@grafana/data';\nimport { selectors } from '@grafana/e2e-selectors';\nimport {\n EditorHeader,\n EditorRows,\n FlexItem,\n QueryEditorModeToggle,\n QueryHeaderSwitch,\n QueryEditorMode,\n} from '@grafana/experimental';\nimport { config, reportInteraction } from '@grafana/runtime';\nimport { Button, ConfirmModal, Space, Stack } from '@grafana/ui';\n\nimport { LabelBrowserModal } from '../querybuilder/components/LabelBrowserModal';\nimport { LokiQueryBuilderContainer } from '../querybuilder/components/LokiQueryBuilderContainer';\nimport { LokiQueryBuilderOptions } from '../querybuilder/components/LokiQueryBuilderOptions';\nimport { LokiQueryCodeEditor } from '../querybuilder/components/LokiQueryCodeEditor';\nimport { QueryPatternsModal } from '../querybuilder/components/QueryPatternsModal';\nimport { buildVisualQueryFromString } from '../querybuilder/parsing';\nimport { changeEditorMode, getQueryWithDefaults } from '../querybuilder/state';\nimport { LokiQuery, QueryStats } from '../types';\n\nimport { shouldUpdateStats } from './stats';\nimport { LokiQueryEditorProps } from './types';\n\nexport const testIds = {\n editor: 'loki-editor',\n};\n\nexport const lokiQueryEditorExplainKey = 'LokiQueryEditorExplainDefault';\n\nexport const LokiQueryEditor = React.memo<LokiQueryEditorProps>((props) => {\n const id = useId();\n const { onChange, onRunQuery, onAddQuery, data, app, queries, datasource, range: timeRange } = props;\n const [parseModalOpen, setParseModalOpen] = useState(false);\n const [queryPatternsModalOpen, setQueryPatternsModalOpen] = useState(false);\n const [dataIsStale, setDataIsStale] = useState(false);\n const [labelBrowserVisible, setLabelBrowserVisible] = useState(false);\n const [queryStats, setQueryStats] = useState<QueryStats | null>(null);\n const [explain, setExplain] = useState(window.localStorage.getItem(lokiQueryEditorExplainKey) === 'true');\n\n const predefinedOperations = datasource.predefinedOperations;\n const previousTimeRange = usePrevious(timeRange);\n\n const query = getQueryWithDefaults(props.query);\n if (config.featureToggles.lokiPredefinedOperations && !query.expr && predefinedOperations) {\n query.expr = `{} ${predefinedOperations}`;\n }\n const previousQueryExpr = usePrevious(query.expr);\n const previousQueryType = usePrevious(query.queryType);\n\n // This should be filled in from the defaults by now.\n const editorMode = query.editorMode!;\n\n const onExplainChange = (event: SyntheticEvent<HTMLInputElement>) => {\n window.localStorage.setItem(lokiQueryEditorExplainKey, event.currentTarget.checked ? 'true' : 'false');\n setExplain(event.currentTarget.checked);\n };\n\n const onEditorModeChange = useCallback(\n (newEditorMode: QueryEditorMode) => {\n reportInteraction('grafana_loki_editor_mode_clicked', {\n newEditor: newEditorMode,\n previousEditor: query.editorMode ?? '',\n newQuery: !query.expr,\n app: app ?? '',\n });\n\n if (newEditorMode === QueryEditorMode.Builder) {\n const result = buildVisualQueryFromString(query.expr || '');\n // If there are errors, give user a chance to decide if they want to go to builder as that can lose some data.\n if (result.errors.length) {\n setParseModalOpen(true);\n return;\n }\n }\n changeEditorMode(query, newEditorMode, onChange);\n },\n [onChange, query, app]\n );\n\n useEffect(() => {\n setDataIsStale(false);\n }, [data]);\n\n const onChangeInternal = (query: LokiQuery) => {\n if (!isEqual(query, props.query)) {\n setDataIsStale(true);\n }\n onChange(query);\n };\n\n const onClickLabelBrowserButton = () => {\n reportInteraction('grafana_loki_label_browser_opened', {\n app: app,\n });\n\n setLabelBrowserVisible((visible) => !visible);\n };\n\n useEffect(() => {\n const shouldUpdate = shouldUpdateStats(\n query.expr,\n previousQueryExpr,\n timeRange,\n previousTimeRange,\n query.queryType,\n previousQueryType\n );\n if (shouldUpdate && timeRange) {\n const makeAsyncRequest = async () => {\n // overwriting the refId that is later used to cancel inflight queries with the same ID.\n const stats = await datasource.getStats({ ...query, refId: `${id}_${query.refId}` }, timeRange);\n setQueryStats(stats);\n };\n makeAsyncRequest();\n }\n }, [datasource, timeRange, previousTimeRange, query, previousQueryExpr, previousQueryType, setQueryStats, id]);\n\n return (\n <>\n <ConfirmModal\n isOpen={parseModalOpen}\n title=\"Query parsing\"\n body=\"There were errors while trying to parse the query. Continuing to visual builder may lose some parts of the query.\"\n confirmText=\"Continue\"\n onConfirm={() => {\n onChange({ ...query, editorMode: QueryEditorMode.Builder });\n setParseModalOpen(false);\n }}\n onDismiss={() => setParseModalOpen(false)}\n />\n <QueryPatternsModal\n isOpen={queryPatternsModalOpen}\n onClose={() => setQueryPatternsModalOpen(false)}\n query={query}\n queries={queries}\n app={app}\n onChange={onChange}\n onAddQuery={onAddQuery}\n />\n <LabelBrowserModal\n isOpen={labelBrowserVisible}\n datasource={datasource}\n query={query}\n app={app}\n onClose={() => setLabelBrowserVisible(false)}\n onChange={onChangeInternal}\n onRunQuery={onRunQuery}\n timeRange={timeRange}\n />\n <EditorHeader>\n <Stack gap={1}>\n <Button\n data-testid={selectors.components.QueryBuilder.queryPatterns}\n variant=\"secondary\"\n size=\"sm\"\n onClick={() => {\n setQueryPatternsModalOpen((prevValue) => !prevValue);\n\n const visualQuery = buildVisualQueryFromString(query.expr || '');\n reportInteraction('grafana_loki_query_patterns_opened', {\n version: 'v2',\n app: app ?? '',\n editorMode: query.editorMode,\n preSelectedOperationsCount: visualQuery.query.operations.length,\n preSelectedLabelsCount: visualQuery.query.labels.length,\n });\n }}\n >\n Kick start your query\n </Button>\n <Button variant=\"secondary\" size=\"sm\" onClick={onClickLabelBrowserButton} data-testid=\"label-browser-button\">\n Label browser\n </Button>\n </Stack>\n <QueryHeaderSwitch label=\"Explain query\" value={explain} onChange={onExplainChange} />\n <FlexItem grow={1} />\n {app !== CoreApp.Explore && app !== CoreApp.Correlations && (\n <Button\n variant={dataIsStale ? 'primary' : 'secondary'}\n size=\"sm\"\n onClick={onRunQuery}\n icon={data?.state === LoadingState.Loading ? 'spinner' : undefined}\n disabled={data?.state === LoadingState.Loading}\n >\n {queries && queries.length > 1 ? `Run queries` : `Run query`}\n </Button>\n )}\n <QueryEditorModeToggle mode={editorMode!} onChange={onEditorModeChange} />\n </EditorHeader>\n <Space v={0.5} />\n <EditorRows>\n {editorMode === QueryEditorMode.Code && (\n <LokiQueryCodeEditor {...props} query={query} onChange={onChangeInternal} showExplain={explain} />\n )}\n {editorMode === QueryEditorMode.Builder && (\n <LokiQueryBuilderContainer\n datasource={props.datasource}\n query={query}\n onChange={onChangeInternal}\n onRunQuery={props.onRunQuery}\n showExplain={explain}\n timeRange={timeRange}\n />\n )}\n <LokiQueryBuilderOptions\n query={query}\n onChange={onChange}\n onRunQuery={onRunQuery}\n app={app}\n maxLines={datasource.maxLines}\n queryStats={queryStats}\n />\n </EditorRows>\n </>\n );\n});\n\nLokiQueryEditor.displayName = 'LokiQueryEditor';\n","import React from 'react';\n\nimport { LokiQueryField } from './LokiQueryField';\nimport { LokiQueryEditorProps } from './types';\n\nexport function LokiQueryEditorForAlerting(props: LokiQueryEditorProps) {\n const { query, data, datasource, onChange, onRunQuery, history } = props;\n\n return (\n <LokiQueryField\n datasource={datasource}\n query={query}\n onChange={onChange}\n onRunQuery={onRunQuery}\n history={history}\n data={data}\n placeholder=\"Enter a Loki query\"\n data-testid={testIds.editor}\n />\n );\n}\n\nexport const testIds = {\n editor: 'loki-editor-cloud-alerting',\n};\n","import React, { memo } from 'react';\n\nimport { CoreApp } from '@grafana/data';\n\nimport { LokiQueryEditor } from './LokiQueryEditor';\nimport { LokiQueryEditorForAlerting } from './LokiQueryEditorForAlerting';\nimport { LokiQueryEditorProps } from './types';\n\nexport function LokiQueryEditorByApp(props: LokiQueryEditorProps) {\n const { app } = props;\n\n switch (app) {\n case CoreApp.CloudAlerting:\n return <LokiQueryEditorForAlerting {...props} />;\n default:\n return <LokiQueryEditor {...props} />;\n }\n}\n\nexport default memo(LokiQueryEditorByApp);\n\nexport const testIds = {\n editor: 'loki-editor',\n};\n","import React from 'react';\n\nimport { DataSourcePluginOptionsEditorProps } from '@grafana/data';\nimport { ConfigDescriptionLink, ConfigSubSection } from '@grafana/experimental';\nimport { InlineField, InlineSwitch } from '@grafana/ui';\n\nexport function AlertingSettings({\n options,\n onOptionsChange,\n}: Pick<DataSourcePluginOptionsEditorProps, 'options' | 'onOptionsChange'>) {\n return (\n <ConfigSubSection\n title=\"Alerting\"\n description={\n <ConfigDescriptionLink\n description=\"Manage alert rules for the Loki data source.\"\n suffix=\"loki/configure-loki-data-source/#alerting\"\n feature=\"alerting\"\n />\n }\n >\n <InlineField\n labelWidth={29}\n label=\"Manage alert rules in Alerting UI\"\n disabled={options.readOnly}\n tooltip=\"Manage alert rules for this data source. To manage other alerting resources, add an Alertmanager data source.\"\n >\n <InlineSwitch\n value={options.jsonData.manageAlerts !== false}\n onChange={(event) =>\n onOptionsChange({\n ...options,\n jsonData: { ...options.jsonData, manageAlerts: event!.currentTarget.checked },\n })\n }\n />\n </InlineField>\n </ConfigSubSection>\n );\n}\n","import React, { ReactNode, useState } from 'react';\n\nimport { getTemplateSrv } from '@grafana/runtime';\nimport { InlineField, TextArea } from '@grafana/ui';\n\nimport { DerivedFieldConfig } from '../types';\n\ntype Props = {\n derivedFields?: DerivedFieldConfig[];\n className?: string;\n};\nexport const DebugSection = (props: Props) => {\n const { derivedFields, className } = props;\n const [debugText, setDebugText] = useState('');\n\n let debugFields: DebugField[] = [];\n if (debugText && derivedFields) {\n debugFields = makeDebugFields(derivedFields, debugText);\n }\n\n return (\n <div className={className}>\n <InlineField label=\"Debug log message\" labelWidth={24} grow>\n <TextArea\n type=\"text\"\n aria-label=\"Loki query\"\n placeholder=\"Paste an example log line here to test the regular expressions of your derived fields\"\n value={debugText}\n onChange={(event) => setDebugText(event.currentTarget.value)}\n />\n </InlineField>\n {!!debugFields.length && <DebugFields fields={debugFields} />}\n </div>\n );\n};\n\ntype DebugFieldItemProps = {\n fields: DebugField[];\n};\nconst DebugFields = ({ fields }: DebugFieldItemProps) => {\n return (\n <table className={'filter-table'}>\n <thead>\n <tr>\n <th>Name</th>\n <th>Value</th>\n <th>Url</th>\n </tr>\n </thead>\n <tbody>\n {fields.map((field) => {\n let value: ReactNode = field.value;\n if (field.error && field.error instanceof Error) {\n value = field.error.message;\n } else if (field.href) {\n value = <a href={field.href}>{value}</a>;\n }\n return (\n <tr key={`${field.name}=${field.value}`}>\n <td>{field.name}</td>\n <td>{value}</td>\n <td>{field.href ? <a href={field.href}>{field.href}</a> : ''}</td>\n </tr>\n );\n })}\n </tbody>\n </table>\n );\n};\n\ntype DebugField = {\n name: string;\n error?: unknown;\n value?: string;\n href?: string;\n};\n\nfunction makeDebugFields(derivedFields: DerivedFieldConfig[], debugText: string): DebugField[] {\n return derivedFields\n .filter((field) => field.name && field.matcherRegex)\n .map((field) => {\n try {\n const testMatch = debugText.match(field.matcherRegex);\n let href;\n const value = testMatch && testMatch[1];\n\n if (value) {\n href = getTemplateSrv().replace(field.url, {\n __value: {\n value: {\n raw: value,\n },\n text: 'Raw value',\n },\n });\n }\n const debugFiled: DebugField = {\n name: field.name,\n value: value || '<no match>',\n href,\n };\n return debugFiled;\n } catch (error) {\n return {\n name: field.name,\n error,\n };\n }\n });\n}\n","import { css } from '@emotion/css';\nimport React, { ChangeEvent, useEffect, useState } from 'react';\nimport { usePrevious } from 'react-use';\n\nimport { GrafanaTheme2, DataSourceInstanceSettings, VariableSuggestion } from '@grafana/data';\nimport { DataSourcePicker } from '@grafana/runtime';\nimport { Button, DataLinkInput, Field, Icon, Input, Label, Tooltip, useStyles2, Select, Switch } from '@grafana/ui';\n\nimport { DerivedFieldConfig } from '../types';\n\ntype MatcherType = 'label' | 'regex';\n\nconst getStyles = (theme: GrafanaTheme2) => ({\n row: css`\n display: flex;\n align-items: baseline;\n `,\n nameField: css`\n flex: 2;\n margin-right: ${theme.spacing(0.5)};\n `,\n regexField: css`\n flex: 3;\n margin-right: ${theme.spacing(0.5)};\n `,\n urlField: css`\n flex: 1;\n margin-right: ${theme.spacing(0.5)};\n `,\n urlDisplayLabelField: css`\n flex: 1;\n `,\n internalLink: css`\n margin-right: ${theme.spacing(1)};\n `,\n dataSource: css``,\n nameMatcherField: css({\n width: theme.spacing(20),\n marginRight: theme.spacing(0.5),\n }),\n});\n\ntype Props = {\n value: DerivedFieldConfig;\n onChange: (value: DerivedFieldConfig) => void;\n onDelete: () => void;\n suggestions: VariableSuggestion[];\n className?: string;\n validateName: (name: string) => boolean;\n};\nexport const DerivedField = (props: Props) => {\n const { value, onChange, onDelete, suggestions, className, validateName } = props;\n const styles = useStyles2(getStyles);\n const [showInternalLink, setShowInternalLink] = useState(!!value.datasourceUid);\n const previousUid = usePrevious(value.datasourceUid);\n const [fieldType, setFieldType] = useState<MatcherType>(value.matcherType ?? 'regex');\n\n // Force internal link visibility change if uid changed outside of this component.\n useEffect(() => {\n if (!previousUid && value.datasourceUid && !showInternalLink) {\n setShowInternalLink(true);\n }\n if (previousUid && !value.datasourceUid && showInternalLink) {\n setShowInternalLink(false);\n }\n }, [previousUid, value.datasourceUid, showInternalLink]);\n\n const handleChange = (field: keyof typeof value) => (event: React.ChangeEvent<HTMLInputElement>) => {\n onChange({\n ...value,\n [field]: event.currentTarget.value,\n });\n };\n\n const invalidName = !validateName(value.name);\n\n return (\n <div className={className} data-testid=\"derived-field\">\n <div className=\"gf-form\">\n <Field className={styles.nameField} label=\"Name\" invalid={invalidName} error=\"The name is already in use\">\n <Input value={value.name} onChange={handleChange('name')} placeholder=\"Field name\" invalid={invalidName} />\n </Field>\n <Field\n className={styles.nameMatcherField}\n label={\n <TooltipLabel\n label=\"Type\"\n content=\"Derived fields can be created from labels or by applying a regular expression to the log message.\"\n />\n }\n >\n <Select\n options={[\n { label: 'Regex in log line', value: 'regex' },\n { label: 'Label', value: 'label' },\n ]}\n value={fieldType}\n onChange={(type) => {\n // make sure this is a valid MatcherType\n if (type.value === 'label' || type.value === 'regex') {\n setFieldType(type.value);\n onChange({\n ...value,\n matcherType: type.value,\n });\n }\n }}\n />\n </Field>\n <Field\n className={styles.regexField}\n label={\n <>\n {fieldType === 'regex' && (\n <TooltipLabel\n label=\"Regex\"\n content=\"Use to parse and capture some part of the log message. You can use the captured groups in the template.\"\n />\n )}\n\n {fieldType === 'label' && <TooltipLabel label=\"Label\" content=\"Use to derive the field from a label.\" />}\n </>\n }\n >\n <Input value={value.matcherRegex} onChange={handleChange('matcherRegex')} />\n </Field>\n <Field label=\"\">\n <Button\n variant=\"destructive\"\n title=\"Remove field\"\n icon=\"times\"\n onClick={(event) => {\n event.preventDefault();\n onDelete();\n }}\n />\n </Field>\n </div>\n\n <div className=\"gf-form\">\n <Field label={showInternalLink ? 'Query' : 'URL'} className={styles.urlField}>\n <DataLinkInput\n placeholder={showInternalLink ? '${__value.raw}' : 'http://example.com/${__value.raw}'}\n value={value.url || ''}\n onChange={(newValue) =>\n onChange({\n ...value,\n url: newValue,\n })\n }\n suggestions={suggestions}\n />\n </Field>\n <Field\n className={styles.urlDisplayLabelField}\n label={\n <TooltipLabel\n label=\"URL Label\"\n content=\"Use to override the button label when this derived field is found in a log.\"\n />\n }\n >\n <Input value={value.urlDisplayLabel} onChange={handleChange('urlDisplayLabel')} />\n </Field>\n </div>\n\n <div className=\"gf-form\">\n <Field label=\"Internal link\" className={styles.internalLink}>\n <Switch\n value={showInternalLink}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n const { checked } = e.currentTarget;\n if (!checked) {\n onChange({\n ...value,\n datasourceUid: undefined,\n });\n }\n setShowInternalLink(checked);\n }}\n />\n </Field>\n\n {showInternalLink && (\n <Field label=\"\" className={styles.dataSource}>\n <DataSourcePicker\n tracing={true}\n onChange={(ds: DataSourceInstanceSettings) =>\n onChange({\n ...value,\n datasourceUid: ds.uid,\n })\n }\n current={value.datasourceUid}\n noDefault\n />\n </Field>\n )}\n </div>\n </div>\n );\n};\n\nconst TooltipLabel = ({ content, label }: { content: string; label: string }) => (\n <Label>\n {label}\n <Tooltip placement=\"top\" content={content} theme=\"info\">\n <Icon tabIndex={0} name=\"info-circle\" size=\"sm\" style={{ marginLeft: '10px' }} />\n </Tooltip>\n </Label>\n);\n","import { css } from '@emotion/css';\nimport React, { useCallback, useState } from 'react';\n\nimport { GrafanaTheme2, VariableOrigin, DataLinkBuiltInVars } from '@grafana/data';\nimport { ConfigDescriptionLink, ConfigSubSection } from '@grafana/experimental';\nimport { Button, useTheme2 } from '@grafana/ui';\n\nimport { DerivedFieldConfig } from '../types';\n\nimport { DebugSection } from './DebugSection';\nimport { DerivedField } from './DerivedField';\n\nconst getStyles = (theme: GrafanaTheme2) => ({\n addButton: css`\n margin-right: 10px;\n `,\n derivedField: css`\n margin-bottom: ${theme.spacing(1)};\n `,\n container: css`\n margin-bottom: ${theme.spacing(4)};\n `,\n debugSection: css`\n margin-top: ${theme.spacing(4)};\n `,\n});\n\ntype Props = {\n fields?: DerivedFieldConfig[];\n onChange: (value: DerivedFieldConfig[]) => void;\n};\n\nexport const DerivedFields = ({ fields = [], onChange }: Props) => {\n const theme = useTheme2();\n const styles = getStyles(theme);\n\n const [showDebug, setShowDebug] = useState(false);\n\n const validateName = useCallback(\n (name: string) => {\n return fields.filter((field) => field.name && field.name === name).length <= 1;\n },\n [fields]\n );\n\n return (\n <ConfigSubSection\n title=\"Derived fields\"\n description={\n <ConfigDescriptionLink\n description=\"Derived fields can be used to extract new fields from a log message and create a link from its value.\"\n suffix=\"loki/configure-loki-data-source/#derived-fields\"\n feature=\"derived fields\"\n />\n }\n >\n <div className={styles.container}>\n {fields.map((field, index) => {\n return (\n <DerivedField\n className={styles.derivedField}\n key={index}\n value={field}\n onChange={(newField) => {\n const newDerivedFields = [...fields];\n newDerivedFields.splice(index, 1, newField);\n onChange(newDerivedFields);\n }}\n onDelete={() => {\n const newDerivedFields = [...fields];\n newDerivedFields.splice(index, 1);\n onChange(newDerivedFields);\n }}\n validateName={validateName}\n suggestions={[\n {\n value: DataLinkBuiltInVars.valueRaw,\n label: 'Raw value',\n documentation: 'Exact string captured by the regular expression',\n origin: VariableOrigin.Value,\n },\n ]}\n />\n );\n })}\n <div>\n <Button\n variant=\"secondary\"\n className={styles.addButton}\n icon=\"plus\"\n onClick={(event) => {\n event.preventDefault();\n const emptyConfig: DerivedFieldConfig = {\n name: '',\n matcherRegex: '',\n urlDisplayLabel: '',\n url: '',\n matcherType: 'regex',\n };\n const newDerivedFields = [...fields, emptyConfig];\n onChange(newDerivedFields);\n }}\n >\n Add\n </Button>\n\n {fields.length > 0 && (\n <Button variant=\"secondary\" type=\"button\" onClick={() => setShowDebug(!showDebug)}>\n {showDebug ? 'Hide example log message' : 'Show example log message'}\n </Button>\n )}\n </div>\n\n {showDebug && (\n <div className={styles.debugSection}>\n <DebugSection\n className={css`\n margin-bottom: 10px;\n `}\n derivedFields={fields}\n />\n </div>\n )}\n </div>\n </ConfigSubSection>\n );\n};\n","import React from 'react';\n\nimport { ConfigDescriptionLink, ConfigSubSection } from '@grafana/experimental';\nimport { config } from '@grafana/runtime';\nimport { Badge, InlineField, InlineFieldRow, Input } from '@grafana/ui';\n\ntype Props = {\n maxLines: string;\n onMaxLinedChange: (value: string) => void;\n predefinedOperations: string;\n onPredefinedOperationsChange: (value: string) => void;\n};\n\nexport const QuerySettings = (props: Props) => {\n const { maxLines, onMaxLinedChange, predefinedOperations, onPredefinedOperationsChange } = props;\n return (\n <ConfigSubSection\n title=\"Queries\"\n description={\n <ConfigDescriptionLink\n description=\"Additional options to customize your querying experience.\"\n suffix=\"loki/configure-loki-data-source/#queries\"\n feature=\"query settings\"\n />\n }\n >\n <InlineField\n label=\"Maximum lines\"\n htmlFor=\"loki_config_maxLines\"\n labelWidth={22}\n tooltip={\n <>\n Loki queries must contain a limit of the maximum number of lines returned (default: 1000). Increase this\n limit to have a bigger result set for ad-hoc analysis. Decrease this limit if your browser becomes sluggish\n when displaying the log results.\n </>\n }\n >\n <Input\n type=\"number\"\n id=\"loki_config_maxLines\"\n value={maxLines}\n onChange={(event: React.FormEvent<HTMLInputElement>) => onMaxLinedChange(event.currentTarget.value)}\n width={16}\n placeholder=\"1000\"\n spellCheck={false}\n />\n </InlineField>\n\n {config.featureToggles.lokiPredefinedOperations && (\n <InlineFieldRow>\n <InlineField\n label=\"Predefined operations\"\n htmlFor=\"loki_config_predefinedOperations\"\n labelWidth={22}\n tooltip={\n <>\n {\n 'Predefined operations are used as an initial state for your queries. They are useful, if you want to unpack, parse or format all log lines. Currently we support only log operations starting with |. For example: | unpack | line_format \"{{.message}}\".'\n }\n </>\n }\n >\n <Input\n type=\"string\"\n id=\"loki_config_predefinedOperations\"\n value={predefinedOperations}\n onChange={(event: React.FormEvent<HTMLInputElement>) =>\n onPredefinedOperationsChange(event.currentTarget.value)\n }\n width={40}\n placeholder=\"| unpack | line_format\"\n spellCheck={false}\n />\n </InlineField>\n <InlineField>\n <Badge\n text=\"Experimental\"\n color=\"orange\"\n icon=\"exclamation-triangle\"\n tooltip=\"Predefined operations is an experimental feature that may change in the future.\"\n />\n </InlineField>\n </InlineFieldRow>\n )}\n </ConfigSubSection>\n );\n};\n","import React, { useCallback } from 'react';\n\nimport { DataSourcePluginOptionsEditorProps, DataSourceSettings } from '@grafana/data';\nimport {\n ConfigSection,\n DataSourceDescription,\n ConnectionSettings,\n Auth,\n convertLegacyAuthProps,\n AdvancedHttpSettings,\n} from '@grafana/experimental';\nimport { config, reportInteraction } from '@grafana/runtime';\nimport { Divider, SecureSocksProxySettings, Stack } from '@grafana/ui';\n\nimport { LokiOptions } from '../types';\n\nimport { AlertingSettings } from './AlertingSettings';\nimport { DerivedFields } from './DerivedFields';\nimport { QuerySettings } from './QuerySettings';\n\nexport type Props = DataSourcePluginOptionsEditorProps<LokiOptions>;\n\nconst makeJsonUpdater =\n <T extends any>(field: keyof LokiOptions) =>\n (options: DataSourceSettings<LokiOptions>, value: T): DataSourceSettings<LokiOptions> => {\n return {\n ...options,\n jsonData: {\n ...options.jsonData,\n [field]: value,\n },\n };\n };\n\nconst setMaxLines = makeJsonUpdater('maxLines');\nconst setPredefinedOperations = makeJsonUpdater('predefinedOperations');\nconst setDerivedFields = makeJsonUpdater('derivedFields');\n\nexport const ConfigEditor = (props: Props) => {\n const { options, onOptionsChange } = props;\n\n const updatePredefinedOperations = useCallback(\n (value: string) => {\n reportInteraction('grafana_loki_predefined_operations_changed', { value });\n onOptionsChange(setPredefinedOperations(options, value));\n },\n [options, onOptionsChange]\n );\n\n return (\n <>\n <DataSourceDescription\n dataSourceName=\"Loki\"\n docsLink=\"https://grafana.com/docs/grafana/latest/datasources/loki/configure-loki-data-source/\"\n hasRequiredFields={false}\n />\n <Divider spacing={4} />\n <ConnectionSettings config={options} onChange={onOptionsChange} urlPlaceholder=\"http://localhost:3100\" />\n <Divider spacing={4} />\n <Auth\n {...convertLegacyAuthProps({\n config: options,\n onChange: onOptionsChange,\n })}\n />\n <Divider spacing={4} />\n <ConfigSection\n title=\"Additional settings\"\n description=\"Additional settings are optional settings that can be configured for more control over your data source.\"\n isCollapsible={true}\n isInitiallyOpen\n >\n <Stack gap={5} direction=\"column\">\n <AdvancedHttpSettings config={options} onChange={onOptionsChange} />\n {config.secureSocksDSProxyEnabled && (\n <SecureSocksProxySettings options={options} onOptionsChange={onOptionsChange} />\n )}\n <AlertingSettings options={options} onOptionsChange={onOptionsChange} />\n <QuerySettings\n maxLines={options.jsonData.maxLines || ''}\n onMaxLinedChange={(value) => onOptionsChange(setMaxLines(options, value))}\n predefinedOperations={options.jsonData.predefinedOperations || ''}\n onPredefinedOperationsChange={updatePredefinedOperations}\n />\n <DerivedFields\n fields={options.jsonData.derivedFields}\n onChange={(value) => onOptionsChange(setDerivedFields(options, value))}\n />\n </Stack>\n </ConfigSection>\n </>\n );\n};\n","import { DashboardLoadedEvent, DataSourcePlugin } from '@grafana/data';\nimport { getAppEvents } from '@grafana/runtime';\n\nimport LokiCheatSheet from './components/LokiCheatSheet';\nimport LokiQueryEditorByApp from './components/LokiQueryEditorByApp';\nimport { ConfigEditor } from './configuration/ConfigEditor';\nimport { LokiDatasource } from './datasource';\nimport { onDashboardLoadedHandler } from './tracking';\nimport { LokiQuery } from './types';\n\nexport const plugin = new DataSourcePlugin(LokiDatasource)\n .setQueryEditor(LokiQueryEditorByApp)\n .setConfigEditor(ConfigEditor)\n .setQueryEditorHelp(LokiCheatSheet);\n\n// Subscribe to on dashboard loaded event so that we can track plugin adoption\ngetAppEvents().subscribe<DashboardLoadedEvent<LokiQuery>>(DashboardLoadedEvent, onDashboardLoadedHandler);\n"],"names":["__defProp","__defProps","__getOwnPropDescs","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__defNormalProp","obj","key","value","__spreadValues","a","b","prop","__spreadProps","AdvancedHttpSettings","config","onChange","className","onCookiesChange","cookies","onTimeoutChange","event","styles","EditorHeader","children","getStyles","theme","FlexItem","grow","shrink","getRandomValues","rnds8","rng","validate","uuid","byteToHex","i","stringify","arr","offset","v4","options","buf","rnds","DEFAULT_EXAMPLES","PREFERRED_LABELS","EXAMPLES_LIMIT","LOGQL_EXAMPLES","LokiCheatSheet","provider","labels","preferredLabel","values","userExamples","expr","onClickExample","onClick","query","hasUserExamples","example","item","__objRest","source","exclude","target","QueryHeaderSwitch","_a","_b","label","inputProps","dashedLabel","switchIdRef","Stack","Switch","editorModes","QueryEditorModeToggle","mode","RadioButtonGroup","Store","def","ret","json","error","errorToThrow","store","LocalStorageValueProvider","props","storageKey","defaultValue","state","setState","onStorageUpdate","v","onSaveToStore","onDeleteFromStore","MAX_LABEL_COUNT","MAX_VALUE_COUNT","MAX_AUTO_SELECT","EMPTY_SELECTOR","buildSelector","selectedLabels","selectedValues","facetLabels","possibleLabels","lastFacetted","possibleValues","existingValues","UnthemedLokiLabelBrowser","selector","name","l","selected","nextValue","updatedFields","status","cb","languageProvider","autoSelect","lastUsedLabels","timeRange","rawLabels","rawValues","streams","searchTerm","validationStatus","LoadingPlaceholder","empty","searchResults","fuzzyMatchResult","fuzzy","Label","Input","index","style","Button","LokiLabelBrowser","LabelBrowserModal","isOpen","onClose","datasource","app","labelsLoaded","setLabelsLoaded","hasLogLabels","setHasLogLabels","LAST_USED_LABELS_KEY","changeQuery","onRunQuery","nextQuery","reportInteractionAndClose","Modal","onLastUsedLabelsSave","onLastUsedLabelsDelete","CONFLICTING_LABEL_FILTER_ERROR_MESSAGE","LabelFilterItem","items","defaultOp","onDelete","onGetLabelNames","onGetLabelValues","invalidLabel","invalidValue","multiValueSeparator","labelNamesMenuOpen","setLabelNamesMenuOpen","labelValuesMenuOpen","setLabelValuesMenuOpen","isMultiSelect","operator","_a2","operators","op","getSelectOptionsFromString","item2","getOptions","labelValues","selectedOptions","isConflicting","isConflictingLabelFilter","id","InlineField","InputGroup","Select","selectors","labelNames","change","changes","change2","val","AccessoryButton","newLabel","operationIsNegative","candidate","MISSING_LABEL_FILTER_ERROR_MESSAGE","LabelFilters","labelsFilters","labelFilterRequired","setItems","onLabelsChange","newItems","newLabels","hasLabelFilter","EditorFieldGroup","EditorField","EditorList","onChangeItem","OperationExplainedBox","title","stepNumber","markdown","OperationsEditorRow","useGetLatest","ref","noop","useControlledState","_ref","initial","_ref$onChange","_React$useState","getLatest","set","updater","updatedState","isControlled","generateBoundingClientRect","x","y","_excluded","virtualElement","defaultConfig","usePopperTooltip","popperOptions","_popperProps$state","_popperProps$state$mo","_popperProps$state$mo2","finalConfig","_extends2","defaultModifiers","finalPopperOptions","triggerRef","setTriggerRef","_React$useState2","tooltipRef","setTooltipRef","_useControlledState","visible","setVisible","timer","_usePopper","usePopper","attributes","popperProps","update","isTriggeredBy","trigger","hideTooltip","showTooltip","toggleTooltip","handleClickOutside","_event$composedPath","_getLatest","preventDefaultAndToggle","isReferenceHidden","setMousePosition","clientX","clientY","observer","getTooltipProps","args","getArrowProps","OperationInfoButton","definition","operation","innerQueryPlaceholder","show","setShow","Portal","getOperationDocs","OperationHeader","onRemove","queryModeller","dragHandleProps","onToggleSwitcher","alternatives","alt","newDef","newParams","changedOp","getOperationParamEditor","paramDef","SelectInputParamEditor","BoolInputParamEditor","SimpleInputParamEditor","AutoSizeInput","getOperationParamId","evt","Checkbox","operationId","selectOptions","option","valueOption","value2","paramIndex","OperationEditorBody","provided","flash","highlight","shouldFlash","useFlash","onParamValueChanged","paramIdx","callParamChangedThenOnChange","onAddRestParam","onRemoveRestParam","restParam","lastParamDef","renderAddRestParamButton","param","Editor","Tooltip","Icon","keepFlash","setKeepFlash","t","operationIndex","OperationEditor","isConflictingOperation","isInvalid","isDragging","snapshot","OperationList","highlightedOp","operations","opsToHighlight","useOperationsHighlight","cascaderOpen","setCascaderOpen","onOperationChange","updatedList","addOptions","category","onAddOperation","operationDef","onDragEnd","result","element","onCascaderBlur","Cascader","isMounted","useMountedState","prevOperations","usePrevious","newOps","newOp","isSameOp","op1","op2","QueryBuilderHints","visualQuery","data","buildVisualQueryFromString","buildDataQueryFromQueryString","buildQueryStringFromDataQuery","hints","setHints","dataQuery","hints2","hint","_c","_d","_b2","_c2","newQuery","newVisualQuery","OperationListExplained","language","onMouseEnter","onMouseLeave","body","RawQuery","EXPLAIN_LABEL_FILTER_CONTENT","LokiQueryBuilderExplained","visQuery","lang","NestedQuery","nestedQuery","showExplain","IconButton","EditorRows","LokiQueryBuilder","NestedQueryList","nestedQueries","onNestedQueryUpdate","TIME_SPAN_TO_TRIGGER_SAMPLES","sampleData","setSampleData","setHighlightedOp","prevQuery","prevTimeRange","onChangeLabels","withTemplateVariableOptions","optionsPromise","forLabel","labelsToConsider","hasEqualityOperation","filter","series","labelsNamesToConsider","onGetSampleData","lokiQuery","range","updateBasedOnChangedTimeRange","updateBasedOnChangedQuery","testIds","EditorRow","otherOperations","queryString","QueryPreview","LokiQueryBuilderContainer","dispatch","stateSlice","exprChanged","onVisQueryChange","visualQueryChange","initialState","action","parseResult","QueryOptionGroup","collapsedInfo","queryStats","toggleOpen","useToggle","Collapse","generateQueryStats","convertUnits","text","suffix","LokiQueryBuilderOptions","maxLines","splitDurationValid","setSplitDurationValid","onQueryTypeChange","onResolutionChange","onChunkRangeChange","onLegendFormatChanged","onMaxLinesChange","e","newMaxLines","onStepChange","queryType","isLogQuery","isValidStep","getCollapsedInfo","Alert","queryTypeLabel","resolutionLabel","LokiQueryCodeEditor","history","lokiFormatQuery","onClickFormatQueryButton","LokiQueryField","QueryPattern","pattern","onPatternSelect","hasNewQueryOption","hasPreviousQuery","selectedPatternName","setSelectedPatternName","Card","QueryPatternsModal","onAddQuery","queries","openTabs","setOpenTabs","selectAsNewQuery","patternType","tabs","queryEditorModeDefaultLocalStorageKey","changeEditorMode","editorMode","getDefaultEditorMode","getQueryWithDefaults","compareTime","time1","time2","shouldUpdateStats","prevQueryType","lokiQueryEditorExplainKey","LokiQueryEditor","parseModalOpen","setParseModalOpen","queryPatternsModalOpen","setQueryPatternsModalOpen","dataIsStale","setDataIsStale","labelBrowserVisible","setLabelBrowserVisible","setQueryStats","explain","setExplain","predefinedOperations","previousTimeRange","previousQueryExpr","previousQueryType","onExplainChange","onEditorModeChange","newEditorMode","onChangeInternal","onClickLabelBrowserButton","stats","ConfirmModal","prevValue","Space","LokiQueryEditorForAlerting","LokiQueryEditorByApp","AlertingSettings","onOptionsChange","ConfigSubSection","ConfigDescriptionLink","DebugSection","derivedFields","debugText","setDebugText","debugFields","makeDebugFields","TextArea","DebugFields","fields","field","testMatch","href","DerivedField","suggestions","validateName","showInternalLink","setShowInternalLink","previousUid","fieldType","setFieldType","handleChange","invalidName","Field","TooltipLabel","type","DataLinkInput","newValue","checked","DataSourcePicker","ds","content","DerivedFields","showDebug","setShowDebug","newField","newDerivedFields","emptyConfig","QuerySettings","onMaxLinedChange","onPredefinedOperationsChange","InlineFieldRow","Badge","makeJsonUpdater","setMaxLines","setPredefinedOperations","setDerivedFields","ConfigEditor","updatePredefinedOperations","DataSourceDescription","Divider","ConnectionSettings","Auth","ConfigSection","SecureSocksProxySettings"],"sourceRoot":""}
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
static
---
0755
0.c88fc16b6533c8976681.js
11857 bytes
0644
0.c88fc16b6533c8976681.js.map
46011 bytes
0644
1118.6d1cbbd2070e00a7483d.js
9459 bytes
0644
1118.6d1cbbd2070e00a7483d.js.map
22012 bytes
0644
1121.6c31bf81768d3312b0d4.js
11557 bytes
0644
1121.6c31bf81768d3312b0d4.js.map
40274 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js
4310 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js.map
9301 bytes
0644
1133.cd705902767ed2e9bf55.js
107191 bytes
0644
1133.cd705902767ed2e9bf55.js.map
459177 bytes
0644
1216.ddb58ad09e0c4e3f4079.js
12860 bytes
0644
1216.ddb58ad09e0c4e3f4079.js.map
47906 bytes
0644
1282.2347f27d5b3a18a42a1e.js
2965 bytes
0644
1282.2347f27d5b3a18a42a1e.js.map
6699 bytes
0644
1345.8570fef914aafab94513.js
2223 bytes
0644
1345.8570fef914aafab94513.js.map
5201 bytes
0644
1347.8ad23b870a6e21306189.js
32035 bytes
0644
1347.8ad23b870a6e21306189.js.map
89851 bytes
0644
1420.f2553cafc235b7c32261.js
14576 bytes
0644
1420.f2553cafc235b7c32261.js.map
32839 bytes
0644
1438.897db349b7f48a15b9eb.js
2830 bytes
0644
1438.897db349b7f48a15b9eb.js.map
6911 bytes
0644
1446.babd36e7134aac1046c4.js
1832 bytes
0644
1446.babd36e7134aac1046c4.js.map
3282 bytes
0644
1488.ff35935a06f41b02b6cc.js
316 bytes
0644
1488.ff35935a06f41b02b6cc.js.map
1206 bytes
0644
1560.30962127c91e5eae9982.js
8916 bytes
0644
1560.30962127c91e5eae9982.js.map
20515 bytes
0644
1660.e1f66118fb028d12074f.js
21866 bytes
0644
1660.e1f66118fb028d12074f.js.map
71039 bytes
0644
1698.68ff1ef08e94a87836b3.js
12570 bytes
0644
1698.68ff1ef08e94a87836b3.js.map
46006 bytes
0644
1708.f42a783c0f6c7a317d49.js
2249 bytes
0644
1708.f42a783c0f6c7a317d49.js.map
2954 bytes
0644
1710.d96221051fceaf8c89dd.js
10172 bytes
0644
1710.d96221051fceaf8c89dd.js.map
22097 bytes
0644
1740.e57d920c47a11759ade4.js
6204 bytes
0644
1740.e57d920c47a11759ade4.js.map
13740 bytes
0644
1888.0ede69d3190c536744b9.js
6822 bytes
0644
1888.0ede69d3190c536744b9.js.map
15421 bytes
0644
1914.58113477b565d57e8bfe.js
10710 bytes
0644
1914.58113477b565d57e8bfe.js.map
23555 bytes
0644
198.b84c0e4f5759344ae05a.js
8267 bytes
0644
198.b84c0e4f5759344ae05a.js.map
19446 bytes
0644
205.6c51b5e35c8147226738.js
3542 bytes
0644
205.6c51b5e35c8147226738.js.map
8376 bytes
0644
2058.0e5df44647184aaf02e2.js
1252 bytes
0644
2058.0e5df44647184aaf02e2.js.map
4744 bytes
0644
2077.12b2df3682085a92a810.js
34133 bytes
0644
2077.12b2df3682085a92a810.js.map
122011 bytes
0644
2094.259625d8acf28b9c7361.js
16518 bytes
0644
2094.259625d8acf28b9c7361.js.map
41269 bytes
0644
21.afca69f2d336e287a655.js
6172 bytes
0644
21.afca69f2d336e287a655.js.map
17305 bytes
0644
2136.9c8dcd43d3af327f51f5.js
498667 bytes
0644
2136.9c8dcd43d3af327f51f5.js.map
1908011 bytes
0644
2228.cf629cf4a83c5b6c2671.js
269 bytes
0644
2228.cf629cf4a83c5b6c2671.js.map
457 bytes
0644
2244.9324c28eca7d2ffb7568.js
3396 bytes
0644
2244.9324c28eca7d2ffb7568.js.map
7683 bytes
0644
2261.ac6a26854d5acee00776.js
106373 bytes
0644
2261.ac6a26854d5acee00776.js.map
478562 bytes
0644
2278.bdd73b14b6337c6b14e4.js
5754 bytes
0644
2278.bdd73b14b6337c6b14e4.js.map
13399 bytes
0644
2398.3de0e7aa3057b7dcf9da.js
8016 bytes
0644
2398.3de0e7aa3057b7dcf9da.js.map
18383 bytes
0644
2514.c86950e9813e27962050.js
1983 bytes
0644
2514.c86950e9813e27962050.js.map
4863 bytes
0644
2571.345ecfd2b82551018f2e.js
162139 bytes
0644
2571.345ecfd2b82551018f2e.js.map
2046 bytes
0644
2586.972e9a7d564398afee76.js
6385 bytes
0644
2586.972e9a7d564398afee76.js.map
14676 bytes
0644
2658.f4100815829c4d37d35c.js
5432 bytes
0644
2658.f4100815829c4d37d35c.js.map
13650 bytes
0644
2686.2fbaa7db9c01d59cad8d.js
2815 bytes
0644
2686.2fbaa7db9c01d59cad8d.js.map
6564 bytes
0644
2692.20098ad0182743d98d62.js
2282 bytes
0644
2692.20098ad0182743d98d62.js.map
5680 bytes
0644
2694.a31d749361a36eb167da.js
2726 bytes
0644
2694.a31d749361a36eb167da.js.map
3618 bytes
0644
2745.2e5ec1fdf377d2940fb4.js
33584 bytes
0644
2745.2e5ec1fdf377d2940fb4.js.map
120277 bytes
0644
2962.4c3147d8ee365fe296ef.js
7640 bytes
0644
2962.4c3147d8ee365fe296ef.js.map
17621 bytes
0644
3042.248a4194805a8500fd28.js
19010 bytes
0644
3042.248a4194805a8500fd28.js.map
38148 bytes
0644
3062.4e9a427c2a59d53f902e.js
4663 bytes
0644
3062.4e9a427c2a59d53f902e.js.map
10650 bytes
0644
3082.c09cff56c35d736ee8b6.js
52872 bytes
0644
3082.c09cff56c35d736ee8b6.js.map
56822 bytes
0644
3096.8d41728a4f5010bc56a2.js
4378 bytes
0644
3096.8d41728a4f5010bc56a2.js.map
10739 bytes
0644
3098.f22ad6dab13d06477be0.js
31462 bytes
0644
3098.f22ad6dab13d06477be0.js.map
85588 bytes
0644
3182.1d531f28507c00e391fc.js
13817 bytes
0644
3182.1d531f28507c00e391fc.js.map
26653 bytes
0644
3407.666eb88a718e66b93f72.js
34425 bytes
0644
3407.666eb88a718e66b93f72.js.map
103716 bytes
0644
3418.d31d882b87bd5a2ef66f.js
33061 bytes
0644
3418.d31d882b87bd5a2ef66f.js.map
114234 bytes
0644
3541.8d063e3d43d55745d89b.js
20582 bytes
0644
3541.8d063e3d43d55745d89b.js.map
67154 bytes
0644
3543.eecef49ce94da5ee0418.js
136752 bytes
0644
3543.eecef49ce94da5ee0418.js.map
446118 bytes
0644
3622.976b1aef94b333e450b9.js
1260 bytes
0644
3622.976b1aef94b333e450b9.js.map
2819 bytes
0644
3686.102abfc00452299017bb.js
87 bytes
0644
3718.3993946b7a0eb8f64b4d.js
23620 bytes
0644
3718.3993946b7a0eb8f64b4d.js.map
92024 bytes
0644
3726.3adfe210678d2cd26969.js
31765 bytes
0644
3726.3adfe210678d2cd26969.js.map
118227 bytes
0644
398.4e93ffb675609ea7a9c6.js
2990 bytes
0644
398.4e93ffb675609ea7a9c6.js.map
7145 bytes
0644
4114.953b39a9ce57caa0e87a.js
2536 bytes
0644
4114.953b39a9ce57caa0e87a.js.map
6028 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js
3229 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js.map
7533 bytes
0644
4209.c7060d489834063658f5.js
17352 bytes
0644
4209.c7060d489834063658f5.js.map
30980 bytes
0644
4254.c5f4a5512b252e3a5796.js
71716 bytes
0644
4254.c5f4a5512b252e3a5796.js.map
237783 bytes
0644
4289.d5662b0904798ff437e9.js
16496 bytes
0644
4289.d5662b0904798ff437e9.js.map
32015 bytes
0644
4334.bc078c368a20ed3257b6.js
2598 bytes
0644
4334.bc078c368a20ed3257b6.js.map
6308 bytes
0644
4630.b604ea691184ba563d59.js
5585 bytes
0644
4630.b604ea691184ba563d59.js.map
11866 bytes
0644
4680.358dfdd92851f69ecc97.js
4573 bytes
0644
4680.358dfdd92851f69ecc97.js.map
10841 bytes
0644
4698.696713071ff5d9929a11.js
3682 bytes
0644
4698.696713071ff5d9929a11.js.map
8967 bytes
0644
4787.bd938ea7cb58d64ee246.js
738 bytes
0644
4787.bd938ea7cb58d64ee246.js.map
2168 bytes
0644
4839.17a10e0ceca3eb8954b4.js
39585 bytes
0644
4839.17a10e0ceca3eb8954b4.js.map
145699 bytes
0644
494.8cf705bc1ea509187c88.js
3796 bytes
0644
494.8cf705bc1ea509187c88.js.map
8987 bytes
0644
4958.cd447d877778fc5af081.js
4923 bytes
0644
4958.cd447d877778fc5af081.js.map
11000 bytes
0644
4962.0da526ad79f816a15985.js
2242 bytes
0644
4962.0da526ad79f816a15985.js.map
4978 bytes
0644
50.7b1e44d5b9dbbed566be.js
617497 bytes
0644
50.7b1e44d5b9dbbed566be.js.map
2271464 bytes
0644
5017.003cacead1bba1cba035.js
3567142 bytes
0644
5017.003cacead1bba1cba035.js.map
13214665 bytes
0644
5130.4d31108de97088a3b014.js
2850 bytes
0644
5130.4d31108de97088a3b014.js.map
6536 bytes
0644
5196.064b914693b6a5591a48.js
4035 bytes
0644
5196.064b914693b6a5591a48.js.map
10273 bytes
0644
5240.eceb5f73f807ac22d800.js
704 bytes
0644
5240.eceb5f73f807ac22d800.js.map
2618 bytes
0644
5277.ce6608b6f47246e32767.js
269 bytes
0644
5277.ce6608b6f47246e32767.js.map
457 bytes
0644
5280.4348c762594edebf7d0e.js
16657 bytes
0644
5280.4348c762594edebf7d0e.js.map
89146 bytes
0644
5356.eabc0dc2021a3814a65f.js
10156 bytes
0644
5356.eabc0dc2021a3814a65f.js.map
25249 bytes
0644
5358.7c5e9e1b192582f3082d.js
6173 bytes
0644
5358.7c5e9e1b192582f3082d.js.map
19652 bytes
0644
5364.ac21c32fd45a27bc998a.js
3070 bytes
0644
5364.ac21c32fd45a27bc998a.js.map
7368 bytes
0644
5398.d0c11aa7c1232f4afe44.js
81872 bytes
0644
5398.d0c11aa7c1232f4afe44.js.map
769414 bytes
0644
5428.e85b0800b30feca9d7dc.js
330175 bytes
0644
5428.e85b0800b30feca9d7dc.js.map
530929 bytes
0644
5511.93023985e5c5efe49ae2.js
21275 bytes
0644
5511.93023985e5c5efe49ae2.js.map
93188 bytes
0644
5550.9284e42acc3f2bbdfc9d.js
7039 bytes
0644
5550.9284e42acc3f2bbdfc9d.js.map
16382 bytes
0644
558.701e8b4db7b852c4a10d.js
12211 bytes
0644
558.701e8b4db7b852c4a10d.js.map
24505 bytes
0644
5618.638c32d58d896f3f7261.js
3348 bytes
0644
5618.638c32d58d896f3f7261.js.map
8181 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js
57392 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js.map
60585 bytes
0644
5786.db7abc3b8e4f474a8f7b.js
5325 bytes
0644
5786.db7abc3b8e4f474a8f7b.js.map
11885 bytes
0644
5807.f05d997ece5811bbc849.js
2922915 bytes
0644
5807.f05d997ece5811bbc849.js.map
10524334 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js
4616249 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js.map
19277501 bytes
0644
6018.f4de7ac19ac8f0c774e6.js
5861 bytes
0644
6018.f4de7ac19ac8f0c774e6.js.map
13314 bytes
0644
6029.0549a3fcb50e73c4b256.js
409895 bytes
0644
6029.0549a3fcb50e73c4b256.js.map
998408 bytes
0644
6185.883629fcc773b4968b24.js
2258 bytes
0644
6185.883629fcc773b4968b24.js.map
4788 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js
54594 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js.map
242030 bytes
0644
6302.257b2eb06c25ee74090e.js
8440 bytes
0644
6302.257b2eb06c25ee74090e.js.map
19322 bytes
0644
6359.f824c85233ec703f8cea.js
11411 bytes
0644
6359.f824c85233ec703f8cea.js.map
41881 bytes
0644
6377.45d36c143a694fc45bd3.js
20571 bytes
0644
6377.45d36c143a694fc45bd3.js.map
79590 bytes
0644
6378.27b1e6d863a0a3b85962.js
977993 bytes
0644
6378.27b1e6d863a0a3b85962.js.map
3865587 bytes
0644
6414.192cf271de6ecbbbcb11.js
3984 bytes
0644
6414.192cf271de6ecbbbcb11.js.map
9134 bytes
0644
6446.b4b93ee91aa1bb57ea93.js
7731 bytes
0644
6446.b4b93ee91aa1bb57ea93.js.map
17485 bytes
0644
6464.f379e014f9909e621de6.js
34429 bytes
0644
6464.f379e014f9909e621de6.js.map
113303 bytes
0644
6499.9f52e0855fd4782a8b45.js
78297 bytes
0644
6499.9f52e0855fd4782a8b45.js.map
273155 bytes
0644
6587.bfb1ca0c32c6f325b0df.js
135004 bytes
0644
6587.bfb1ca0c32c6f325b0df.js.map
541974 bytes
0644
660.838743295c2108f3492d.js
43101 bytes
0644
660.838743295c2108f3492d.js.map
100340 bytes
0644
6678.a615dbe07b8a3e591e66.js
14725 bytes
0644
6678.a615dbe07b8a3e591e66.js.map
51145 bytes
0644
680.1a328432fae403eacab3.js
53846 bytes
0644
680.1a328432fae403eacab3.js.map
57615 bytes
0644
6830.0c200fec1efc2be388e2.js
5811 bytes
0644
6830.0c200fec1efc2be388e2.js.map
13972 bytes
0644
6934.fa19d392db34411fb300.js
168944 bytes
0644
6934.fa19d392db34411fb300.js.map
540337 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js
3408 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js.map
8039 bytes
0644
6969.f8f153735314f9426000.js
1119 bytes
0644
6969.f8f153735314f9426000.js.map
4230 bytes
0644
6990.cc2f5674128929a3f870.js
4418 bytes
0644
6990.cc2f5674128929a3f870.js.map
10503 bytes
0644
7048.117de444b1e1cb5a1360.js
4365 bytes
0644
7048.117de444b1e1cb5a1360.js.map
10316 bytes
0644
7166.480da6892ee84ee8bb53.js
593985 bytes
0644
7166.480da6892ee84ee8bb53.js.map
2430098 bytes
0644
7200.dc60128b9d612fc7b5b0.js
3634 bytes
0644
7200.dc60128b9d612fc7b5b0.js.map
8184 bytes
0644
7246.3adf293a34fa2043387b.js
4306 bytes
0644
7246.3adf293a34fa2043387b.js.map
9084 bytes
0644
7400.024c96bd5b99b8b47a63.js
14112 bytes
0644
7400.024c96bd5b99b8b47a63.js.map
64001 bytes
0644
7409.24316c87d08c1053c46a.js
3287 bytes
0644
7409.24316c87d08c1053c46a.js.map
11649 bytes
0644
7455.845968885abe369e6479.js
19801 bytes
0644
7455.845968885abe369e6479.js.map
77213 bytes
0644
7466.09e6e197d2507f62097d.js
11670 bytes
0644
7466.09e6e197d2507f62097d.js.map
24830 bytes
0644
7515.95323f0dfbd0de010e5c.js
1083 bytes
0644
7515.95323f0dfbd0de010e5c.js.map
1321 bytes
0644
7613.6334cff4df12cc157522.js
808779 bytes
0644
7613.6334cff4df12cc157522.js.map
991378 bytes
0644
7836.6a7e4207e70fc2dc235f.js
7192 bytes
0644
7836.6a7e4207e70fc2dc235f.js.map
17613 bytes
0644
7882.1a3cc418752c83396970.js
3743 bytes
0644
7882.1a3cc418752c83396970.js.map
14950 bytes
0644
7886.485c46f14540aa23cf70.js
8668 bytes
0644
7886.485c46f14540aa23cf70.js.map
20124 bytes
0644
7914.2b1a06c504df18e20fe4.js
2390 bytes
0644
7914.2b1a06c504df18e20fe4.js.map
6418 bytes
0644
7982.6761217193d3060dbf0e.js
188973 bytes
0644
7982.6761217193d3060dbf0e.js.map
1737667 bytes
0644
8054.094788468423bb88ee68.js
38124 bytes
0644
8054.094788468423bb88ee68.js.map
132296 bytes
0644
8107.92bd414247a1d05c014f.js
5144 bytes
0644
8107.92bd414247a1d05c014f.js.map
15320 bytes
0644
8230.2eedae6021a4715c6dea.js
2413 bytes
0644
8230.2eedae6021a4715c6dea.js.map
5812 bytes
0644
8332.f4b05d2f028641445650.js
3177 bytes
0644
8332.f4b05d2f028641445650.js.map
7186 bytes
0644
8334.c95ec0eb6900c0cf7e89.js
7803 bytes
0644
8334.c95ec0eb6900c0cf7e89.js.map
17714 bytes
0644
8390.1fd9505094c8cf8830ab.js
2096 bytes
0644
8390.1fd9505094c8cf8830ab.js.map
5157 bytes
0644
84.a6f8658e6a033d642231.js
30608 bytes
0644
84.a6f8658e6a033d642231.js.map
142543 bytes
0644
8494.4470c87b7093ddf70db7.js
2180 bytes
0644
8494.4470c87b7093ddf70db7.js.map
4863 bytes
0644
8542.1391ab96a455b01963a7.js
1514 bytes
0644
8542.1391ab96a455b01963a7.js.map
3249 bytes
0644
8566.e05562713181c6ca30fe.js
3852 bytes
0644
8566.e05562713181c6ca30fe.js.map
8781 bytes
0644
8730.3dcdd8cbf22c63b45d78.js
2109 bytes
0644
8730.3dcdd8cbf22c63b45d78.js.map
2893 bytes
0644
8786.1b0e43b80c82c73e2096.js
1535 bytes
0644
8786.1b0e43b80c82c73e2096.js.map
4055 bytes
0644
8902.37d0b14aa6ef24687b7b.js
2673 bytes
0644
8902.37d0b14aa6ef24687b7b.js.map
5993 bytes
0644
8990.5a822b8788ebf0bdba81.js
3969 bytes
0644
8990.5a822b8788ebf0bdba81.js.map
9161 bytes
0644
9034.200fc7a09b466256c9a9.js
3486 bytes
0644
9034.200fc7a09b466256c9a9.js.map
8180 bytes
0644
9038.7ae2448b9cc5c423aeca.js
4937 bytes
0644
9038.7ae2448b9cc5c423aeca.js.map
11973 bytes
0644
9118.3121c6b96ec7dc211973.js
48311 bytes
0644
9118.3121c6b96ec7dc211973.js.map
62149 bytes
0644
9150.9eb62d45f9b21cb38850.js
10056 bytes
0644
9150.9eb62d45f9b21cb38850.js.map
21143 bytes
0644
9199.9897e268d6d13e834d4c.js
2307 bytes
0644
9199.9897e268d6d13e834d4c.js.map
8853 bytes
0644
9320.c403e78b78aa6df1d0bd.js
336139 bytes
0644
9320.c403e78b78aa6df1d0bd.js.map
1624993 bytes
0644
9355.421530b20c759bb75633.js
22098 bytes
0644
9355.421530b20c759bb75633.js.map
66961 bytes
0644
9384.a0d5fc49f1b15b3e311e.js
2855 bytes
0644
9384.a0d5fc49f1b15b3e311e.js.map
3717 bytes
0644
9390.fa2af7f3d3d9600c08ee.js
4201 bytes
0644
9390.fa2af7f3d3d9600c08ee.js.map
9682 bytes
0644
946.f2494c0c39a9590349b9.js
9194 bytes
0644
946.f2494c0c39a9590349b9.js.map
22193 bytes
0644
9510.4cfa85a51931dc20573a.js
2949 bytes
0644
9510.4cfa85a51931dc20573a.js.map
6939 bytes
0644
9521.de2a74ca5eb365810ca5.js
46306 bytes
0644
9521.de2a74ca5eb365810ca5.js.map
51040 bytes
0644
9538.996ade7a03ccdb01942d.js
64493 bytes
0644
9538.996ade7a03ccdb01942d.js.map
49212 bytes
0644
9569.a8d60b39654a160cb917.js
27965 bytes
0644
9569.a8d60b39654a160cb917.js.map
99160 bytes
0644
9643.b408884004ca73c102bc.js
627 bytes
0644
9643.b408884004ca73c102bc.js.map
2195 bytes
0644
968.22e079d28acb4131d34c.js
4001 bytes
0644
968.22e079d28acb4131d34c.js.map
9740 bytes
0644
970.a61e37b9b897c8098261.js
5239 bytes
0644
970.a61e37b9b897c8098261.js.map
13858 bytes
0644
9711.d6e977bd60f0e5ba673d.js
13555 bytes
0644
9711.d6e977bd60f0e5ba673d.js.map
43973 bytes
0644
9737.3340c89ea96d33307cc7.js
1001 bytes
0644
9737.3340c89ea96d33307cc7.js.map
3504 bytes
0644
9739.5a801055fcf72bf4d06f.js
1147 bytes
0644
9739.5a801055fcf72bf4d06f.js.map
4390 bytes
0644
9772.49e918c9331237552c0b.js
141 bytes
0644
9772.49e918c9331237552c0b.js.map
416 bytes
0644
9838.b8f01dc360f0c2151291.js
4003 bytes
0644
9838.b8f01dc360f0c2151291.js.map
8118 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js
22504 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js.map
67352 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js
6369 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js.map
20602 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js
4939 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js.map
16531 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js
2702 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js.map
7735 bytes
0644
AdminSettings.845c6def917892a0c1f9.js
1903 bytes
0644
AdminSettings.845c6def917892a0c1f9.js.map
5580 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js
54554 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js.map
208792 bytes
0644
AlertGroups.efd523dc41621f9f7935.js
10088 bytes
0644
AlertGroups.efd523dc41621f9f7935.js.map
39108 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js
44623 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js.map
156842 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js
6270 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js.map
18086 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js
24687 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js.map
83377 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js
9844 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js.map
27934 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js
10523 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js.map
37393 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js
672 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js.map
1220 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js
33492 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js.map
106868 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js
3648 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js.map
10875 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js
79931 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js.map
292923 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js
31333 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js.map
98330 bytes
0644
AngularApp.7e72879caebef22a5217.js
72809 bytes
0644
AngularApp.7e72879caebef22a5217.js.map
102853 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js
8422 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js.map
23375 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js
2941 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js.map
9749 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js
470 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js.map
1195 bytes
0644
Connections.b53c715b9b9a782d8647.js
32448 bytes
0644
Connections.b53c715b9b9a782d8647.js.map
112998 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js
674 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js.map
1149 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js
22725 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js.map
69262 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js
3046 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js.map
9594 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js
18153 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js.map
58242 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js
30967 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js.map
108517 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js
2786 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js.map
8754 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js
65136 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js.map
226791 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js
331 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js.map
582 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js
10507 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js.map
37444 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js
1768 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js.map
5917 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js
9633 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js.map
29985 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js
8599 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js.map
25919 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js
2704 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js.map
7623 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js
4713 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js.map
14309 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js
20855 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js.map
58932 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js
9785 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js.map
32951 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js
1325 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js.map
3158 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js
2547 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js.map
6671 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js
1620 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js.map
3378 bytes
0644
NotificationsPage.d26b90d7348139106351.js
4646 bytes
0644
NotificationsPage.d26b90d7348139106351.js.map
25381 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js
6742 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js.map
17850 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js
6892 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js.map
19989 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js
6583 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js.map
19084 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js
7895 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js.map
25502 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js
275 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js.map
698 bytes
0644
PluginListPage.815b65d32380d0a800f7.js
12167 bytes
0644
PluginListPage.815b65d32380d0a800f7.js.map
43537 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js
314 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js.map
668 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js
552 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js.map
1012 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js
4295 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js.map
14393 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js
1124 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js.map
2993 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js
1736 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js.map
4350 bytes
0644
ServerStats.3fbd2493deb8f4598755.js
3863 bytes
0644
ServerStats.3fbd2493deb8f4598755.js.map
11534 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js
2440 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js.map
7939 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js
14806 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js.map
51593 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js
14565 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js.map
46399 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js
2360 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js.map
6096 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js
3061 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js.map
9043 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js
3229 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js.map
12316 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js
1727 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js.map
5509 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js
14081 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js.map
48740 bytes
0644
SupportBundles.567d512b3f919b8112e4.js
3058 bytes
0644
SupportBundles.567d512b3f919b8112e4.js.map
8751 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js
2779 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js.map
8882 bytes
0644
TeamList.2e23d37c91734f608f09.js
9019 bytes
0644
TeamList.2e23d37c91734f608f09.js.map
30348 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js
22839 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js.map
66001 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js
2654 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js.map
8058 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js
1470 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js.map
3788 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js
2576 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js.map
6594 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js
25463 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js.map
79671 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js
14593 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js.map
42901 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js
8800 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js.map
30059 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js
957 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js.map
3199 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js
1429 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js.map
4041 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js
3810 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js.map
10753 bytes
0644
app.b11fde05d43f9632a473.js
920821 bytes
0644
app.b11fde05d43f9632a473.js.map
69088 bytes
0644
assets-manifest.json
280835 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js
232 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js.map
600 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js
371235 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js.map
1132097 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js
485254 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js.map
2136916 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js
198 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js.map
555 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js
192 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
544 bytes
0644
dark.7fa24d1908c1c96e6fcc.js
134 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js
214 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js.map
583 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js
612 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js.map
1280 bytes
0644
explore.476912733278e2a99729.js
165810 bytes
0644
explore.476912733278e2a99729.js.map
579148 bytes
0644
geomapPanel.14b9605971a38c51d262.js
417078 bytes
0644
geomapPanel.14b9605971a38c51d262.js.map
540371 bytes
0644
grafana.dark.8c716fbcf630eae84ced.css
209089 bytes
0644
grafana.light.b8b3904788f25480f4a1.css
209047 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js
8654 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js.map
28174 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js
70277 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js.map
243430 bytes
0644
graphitePlugin.d59175976346917781fe.js
75305 bytes
0644
graphitePlugin.d59175976346917781fe.js.map
272016 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js
37545 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js.map
158066 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js
68843 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js.map
265085 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js
19727 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js.map
65603 bytes
0644
light.af65e5ce03b9ed0aa2b1.js
134 bytes
0644
loki-query-field.a588d587d9d762b18f22.js
191 bytes
0644
loki-query-field.a588d587d9d762b18f22.js.map
548 bytes
0644
lokiPlugin.77364509de280321b6f8.js
185 bytes
0644
lokiPlugin.77364509de280321b6f8.js.map
536 bytes
0644
mixedPlugin.f36bd557a883d9a67538.js
180 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js
20457 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js.map
61420 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js
17323 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js.map
45415 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js
2107 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js.map
7132 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js
22866 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js.map
82180 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js
11184 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js.map
42340 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js
18902 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js.map
54304 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js
14104 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js.map
76811 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js
224 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js.map
699 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js
22269 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js.map
86896 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js
15759 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js.map
51544 bytes
0644
runtime.4b7e1b5735d2ed64b824.js
13640 bytes
0644
runtime.4b7e1b5735d2ed64b824.js.map
35122 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js
25242 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js.map
80497 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js
182 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js.map
529 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js
120550 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js.map
303302 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js
459653 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js.map
1951742 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js
13172 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js.map
46861 bytes
0644
N4ST4R_ID | Naxtarrr