Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
{"version":3,"file":"325e2d4b-2256.040f9a9d5f2fe17f5805.js","mappings":"gUAuBA,QAAeA,EAAf,GC8KA,GA/KwBC,EAAAA,EAAAA,SAAOD,GAAWE,OAAM,QAAC,SAAEC,EAAF,MAAYC,EAAZ,QAAmBC,GAApB,QAAmC,CAEjFD,MAAOD,EACPG,SAAUF,EACVC,UAJ8C,IAA3B,sEAAGJ,EAKpB,QAAC,SAAEK,EAAF,QAAYD,EAAZ,SAAqBE,EAArB,MAA+BC,GAAhC,SAA4CC,EAAAA,EAAAA,KAA3C,CAAD,snEAEEJ,EAAW,WAAUA,iBAAyB,GAG5BC,EAASI,OAAOC,MAAMC,WACjCN,EAASO,MAAMC,iBAAiBR,EAASI,OAAOC,MAAMC,WAAY,OACvDN,EAASI,OAAOK,QAAQC,MAAMC,QACjCC,EAAAA,GAGSZ,EAASI,OAAOC,MAAMC,WAIhCN,EAASI,OAAOC,MAAMC,WAC3BN,EAASO,MAAMC,iBAAiBR,EAASI,OAAOC,MAAMC,WAAY,OAK7DN,EAASI,OAAOC,MAAMC,WAI3BN,EAASI,OAAOS,KAAK,IACnBZ,EAAW,OAAS,QAIpBC,EAAQ,QAAU,OAIfF,EAASI,OAAOK,QAAQK,SAASH,QAIjCX,EAASI,OAAOK,QAAQM,QASxBf,EAASI,OAAOC,MAAMC,WAIhBN,EAASI,OAAOC,MAAMC,WAItBN,EAASI,OAAOS,KAAK,IAIhCb,EAASI,OAAOC,MAAMC,WAQtBN,EAASI,OAAOK,QAAQO,KAIxBhB,EAASI,OAAOa,OAAOC,YASvBlB,EAASI,OAAOK,QAAQU,KAAKC,OAI7BpB,EAASI,OAAOK,QAAQE,QAIxBX,EAASO,MAAMc,cAAcrB,EAASI,OAAOkB,MAAMC,SACxCvB,EAASI,OAAOkB,MAAMC,QAIjCvB,EAASO,MAAMc,cAAcrB,EAASI,OAAOkB,M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BACPC,MAAO,IACPC,KAAM,SACL,CACDD,MAAO,GACPC,KAAM,UAERD,MAAO,CACL,CACED,MAAO,0BACPC,MAAO,6CACN,CACDD,MAAO,oBACPC,MAAO,cACPC,KAAM,YACL,CACDF,MAAO,UACPC,MAAO,iDACN,CACDD,MAAO,2BACPC,MAAO,iDACN,CACDD,MAAO,2BAEPC,MAAO,iBACN,CACDD,MAAO,8BACPC,MAAO,MACN,CACDD,MAAO,2BACPC,MAAO,QACPC,KAAM,yBACL,CACDF,MAAO,QACPC,MAAO,IACPC,KAAM,YACL,CACDE,aAAc,kBAGlBC,sBAAuB,CACrB,CACEL,MAAO,oCACPC,MAAO,6CACN,CACDD,MAAO,2BACPC,MAAO,IACPC,KAAM,SACL,CACDF,MAAO,2BACPC,MAAO,KACN,CACDD,MAAO,QACPC,MAAO,IACPC,KAAM,YACL,CACDE,aAAc,kCAIrB,EAEDV,EAAIY,SAASV,EAAsBD,GAGnCP,QAAQQ,qBAAuBA,CAA/B,IAIFX,IAAIC,OAAO,kBAAmB,CAAC,UAAW,UAAW,SAAU,cAAe,gBAAiB,oCAAoC,CAACO,QAASL,WAC3I,MAAMM,EAAMD,QAAQ,cACdc,EAAWd,QAAQ,UAAUe,MAC7B,qBAAEZ,GAAyBH,QAAQ,4BAGnCe,EAAO,WACXX,KAAKY,eAAiBb,EACtBC,KAAKa,WAAab,KAAKc,iBACxB,EAEDjB,EAAIY,SAASE,EAAMD,GAGnB,WACEV,KAAKe,IAAM,iBADb,EAEGC,KAAKL,EAAKM,WAGb1B,QAAQoB,KAAOA,CAAf,IAMAvB,IAAIQ,QAAQ,CAAC,oBAAqBsB,IACiCC,IAC/DA,EAAO5B,QAAU2B,EAClB,G","sources":["webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/ace.ts","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/StyledAceEditor.jsx","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/BasicQueryInput.tsx","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/ace-queryinput.js","webpack://graylog-web-interface/./src/views/components/searchbar/queryinput/custom-lucene-mode.js"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport AceEditor from 'react-ace';\n\nimport './ace-queryinput';\nimport 'ace-builds/src-noconflict/ext-language_tools';\nimport './custom-lucene-mode';\nimport 'ace-builds/webpack-resolver';\n\nexport default AceEditor;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport styled, { css } from 'styled-components';\n\nimport { INPUT_BORDER_RADIUS } from 'theme/constants';\n\nimport AceEditor from './ace';\n\nconst StyledAceEditor = styled(AceEditor).attrs(({ aceTheme, theme, $height }) => ({\n // NOTE: After setting the prop we need to swap them back so AceEditor uses the proper styles\n theme: aceTheme, /* stylelint-disable-line */\n $scTheme: theme,\n $height,\n}))(({ $scTheme, $height, disabled, value }) => css`\n &.ace-queryinput {\n ${$height ? `height: ${$height}px !important` : ''};\n min-height: 34px;\n width: 100% !important;\n background-color: ${$scTheme.colors.input.background};\n color: ${$scTheme.utils.contrastingColor($scTheme.colors.input.background, 'AAA')};\n border: 1px solid ${$scTheme.colors.variant.light.default};\n border-radius: ${INPUT_BORDER_RADIUS};\n\n &.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0 ${$scTheme.colors.input.background};\n }\n\n .ace_gutter {\n background: ${$scTheme.colors.input.background};\n color: ${$scTheme.utils.contrastingColor($scTheme.colors.input.background, 'AAA')};\n }\n\n .ace_print-margin {\n width: 1px;\n background: ${$scTheme.colors.input.background};\n }\n\n .ace_cursor {\n color: ${$scTheme.colors.gray[50]};\n display: ${disabled ? 'none' : 'block'} !important;\n }\n\n .ace_hidden-cursors {\n display: ${value ? 'block' : 'none'};\n }\n\n .ace_marker-layer .ace_selection {\n background: ${$scTheme.colors.variant.lightest.default};\n }\n\n .ace_marker-layer .ace_step {\n background: ${$scTheme.colors.variant.warning};\n }\n\n .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: none;\n }\n\n .ace_marker-layer .ace_active-line {\n background: ${$scTheme.colors.input.background};\n }\n\n .ace_gutter-active-line {\n background-color: ${$scTheme.colors.input.background};\n }\n\n .ace_marker-layer .ace_selected-word {\n border: 1px solid ${$scTheme.colors.gray[80]};\n }\n\n .ace_invisible {\n color: ${$scTheme.colors.input.background};\n }\n\n .ace_keyword,\n .ace_meta,\n .ace_storage,\n .ace_storage.ace_type,\n .ace_support.ace_type {\n color: ${$scTheme.colors.variant.info};\n }\n\n .ace_keyword.ace_operator {\n color: ${$scTheme.colors.global.textDefault};\n }\n\n .ace_constant.ace_character,\n .ace_constant.ace_language,\n .ace_constant.ace_numeric,\n .ace_keyword.ace_other.ace_unit,\n .ace_support.ace_constant,\n .ace_variable.ace_parameter {\n color: ${$scTheme.colors.variant.dark.danger};\n }\n\n .ace_constant.ace_other {\n color: ${$scTheme.colors.variant.default};\n }\n\n .ace_invalid {\n color: ${$scTheme.utils.readableColor($scTheme.colors.brand.primary)};\n background-color: ${$scTheme.colors.brand.primary};\n }\n\n .ace_invalid.ace_deprecated {\n color: ${$scTheme.utils.readableColor($scTheme.colors.brand.primary)};\n background-color: ${$scTheme.colors.variant.dark.primary};\n }\n\n .ace_fold {\n background-color: ${$scTheme.colors.variant.info};\n border-color: ${$scTheme.utils.contrastingColor($scTheme.colors.input.background, 'AAA')};\n }\n\n .ace_entity.ace_name.ace_function,\n .ace_support.ace_function,\n .ace_variable,\n .ace_term {\n color: ${$scTheme.colors.variant.darker.info};\n }\n\n .ace_support.ace_class,\n .ace_support.ace_type {\n color: ${$scTheme.colors.variant.dark.warning};\n }\n\n .ace_heading,\n .ace_markup.ace_heading,\n .ace_string {\n color: ${$scTheme.colors.variant.dark.success};\n }\n\n .ace_entity.ace_name.ace_tag,\n .ace_entity.ace_other.ace_attribute-name,\n .ace_meta.ace_tag,\n .ace_string.ace_regexp,\n .ace_variable {\n color: ${$scTheme.colors.brand.primary};\n }\n\n .ace_comment {\n color: ${$scTheme.colors.gray[60]};\n }\n\n .ace_indent-guide {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y;\n }\n\n .ace_placeholder {\n left: 0;\n right: 0;\n padding: 0;\n margin-top: 6px;\n margin-left: 6px;\n transform: none;\n opacity: 1;\n z-index: auto !important;\n font-family: ${$scTheme.fonts.family.monospace} !important;\n font-size: ${$scTheme.fonts.size.body};\n color: ${$scTheme.colors.input.placeholder};\n text-overflow: ellipsis;\n max-width: 100%;\n overflow: hidden;\n }\n\n .ace_marker {\n border-bottom: 2px dashed;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n }\n\n .ace_marker.ace_validation_error {\n border-color: ${$scTheme.colors.variant.danger};\n }\n\n .ace_marker.ace_validation_warning {\n border-color: ${$scTheme.colors.variant.dark.warning};\n }\n }\n`);\n\nexport default StyledAceEditor;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport { forwardRef, useMemo, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { useTheme } from 'styled-components';\n\nimport type { QueryValidationState } from 'views/components/searchbar/queryvalidation/types';\n\nimport StyledAceEditor from './StyledAceEditor';\nimport type { Editor } from './ace-types';\n\nexport type BaseProps = {\n className?: string\n error?: QueryValidationState,\n height?: number,\n maxLines?: number,\n onLoad?: (editor: Editor) => void,\n placeholder?: string,\n value: string,\n warning?: QueryValidationState,\n wrapEnabled?: boolean,\n inputId?: string,\n};\n\ntype EnabledInputProps = BaseProps & {\n disabled: false,\n enableAutocompletion?: boolean,\n onBlur?: (query: string) => void,\n onChange: (query: string) => Promise,\n onExecute: (editor: Editor) => void,\n};\ntype DisabledInputProps = BaseProps & { disabled: true };\ntype Props = EnabledInputProps | DisabledInputProps\n\nconst isEnabledInput = (props: Props): props is EnabledInputProps => !props.disabled;\nconst isDisabledInput = (props: Props): props is DisabledInputProps => props.disabled;\n\nconst getMarkers = (errors: QueryValidationState | undefined, warnings: QueryValidationState | undefined) => {\n const markerClassName = 'ace_marker';\n const createMarkers = (explanations = [], className = '') => explanations.map(({\n beginLine,\n beginColumn,\n endLine,\n endColumn,\n }) => ({\n startRow: beginLine,\n startCol: beginColumn,\n endRow: endLine,\n endCol: endColumn,\n type: 'background',\n className,\n }));\n\n return [\n ...createMarkers(errors?.explanations, `${markerClassName} ace_validation_error`),\n ...createMarkers(warnings?.explanations, `${markerClassName} ace_validation_warning`),\n ];\n};\n\n// Basic query input component which is being implemented by the `QueryInput` component.\n// This is just a very basic query input which can be implemented for example to display a read only query.\nconst BasicQueryInput = forwardRef((props, ref) => {\n const {\n className,\n disabled,\n error,\n height,\n maxLines,\n placeholder,\n value,\n warning,\n wrapEnabled,\n onLoad,\n inputId,\n } = props;\n const theme = useTheme();\n const markers = useMemo(() => getMarkers(error, warning), [error, warning]);\n const _onLoad = useCallback((editor) => {\n if (editor) {\n editor.renderer.setScrollMargin(7, 6);\n editor.renderer.setPadding(12);\n\n if (inputId) {\n editor.textInput.getElement().setAttribute('id', inputId);\n }\n\n onLoad?.(editor);\n }\n }, [inputId, onLoad]);\n const editorProps = useMemo(() => ({ $blockScrolling: Infinity, selectionStyle: 'line' }), []);\n const setOptions = useMemo(() => ({ indentedSoftWrap: false }), []);\n\n const commonProps = {\n $height: height,\n aceTheme: 'ace-queryinput', // NOTE: is usually just `theme` but we need that prop for styled-components\n className,\n disabled,\n editorProps,\n fontSize: theme.fonts.size.small,\n highlightActiveLine: false,\n markers,\n maxLines,\n minLines: 1,\n mode: 'lucene',\n name: 'QueryEditor',\n placeholder,\n readOnly: disabled,\n ref,\n setOptions,\n showGutter: false,\n showPrintMargin: false,\n value,\n wrapEnabled,\n onLoad: _onLoad,\n };\n\n if (isDisabledInput(props)) {\n return ;\n }\n\n if (isEnabledInput(props)) {\n const {\n onBlur,\n onChange,\n onExecute,\n enableAutocompletion,\n } = props;\n\n return (\n \n );\n }\n\n return null;\n});\n\nBasicQueryInput.propTypes = {\n className: PropTypes.string,\n // @ts-ignore\n disabled: PropTypes.bool,\n enableAutocompletion: PropTypes.bool,\n error: PropTypes.any,\n height: PropTypes.number,\n inputId: PropTypes.string,\n maxLines: PropTypes.number,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onExecute: PropTypes.func,\n onLoad: PropTypes.func,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n warning: PropTypes.any,\n wrapEnabled: PropTypes.bool,\n};\n\nBasicQueryInput.defaultProps = {\n className: '',\n disabled: false,\n enableAutocompletion: false,\n error: undefined,\n height: undefined,\n inputId: undefined,\n maxLines: 4,\n onBlur: undefined,\n onChange: undefined,\n onExecute: undefined,\n onLoad: undefined,\n placeholder: '',\n value: '',\n warning: undefined,\n wrapEnabled: true,\n};\n\nexport default React.memo(BasicQueryInput);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n// eslint-disable-next-line no-undef\nace.define('ace/theme/ace-queryinput', ['require', 'exports', 'module', 'ace/lib/dom'], (acequire, exports) => {\n /* eslint-disable no-param-reassign */\n exports.isDark = false;\n\n exports.cssClass = 'ace-queryinput';\n /* eslint-enable no-param-reassign */\n\n const dom = acequire('../lib/dom');\n\n dom.importCssString(exports.cssText, exports.cssClass);\n});\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n// eslint-disable-next-line no-undef\nace.define('ace/mode/lucene_highlight_rules', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text_highlight_rules'], (require, exports) => {\n const oop = require('../lib/oop');\n const { TextHighlightRules } = require('./text_highlight_rules');\n\n // eslint-disable-next-line func-names\n const LuceneHighlightRules = function () {\n this.$rules = {\n start: [\n {\n token: 'constant.language.escape',\n regex: /\\\\[-+&|!(){}[\\]^\"~*?:\\\\]/,\n }, {\n token: 'constant.character.negation',\n regex: '\\\\-',\n }, {\n token: 'constant.character.interro',\n regex: '\\\\?',\n }, {\n token: 'constant.character.required',\n regex: '\\\\+',\n }, {\n token: 'constant.character.asterisk',\n regex: '\\\\*',\n }, {\n token: 'constant.character.proximity',\n regex: '~(?:0\\\\.[0-9]+|[0-9]+)?',\n }, {\n token: 'keyword.operator',\n regex: '(AND|OR|NOT|TO)\\\\b',\n }, {\n token: 'paren.lparen',\n regex: '[\\\\(\\\\{\\\\[]',\n }, {\n token: 'paren.rparen',\n regex: '[\\\\)\\\\}\\\\]]',\n }, {\n token: 'keyword.operator',\n regex: /[><=^]/,\n }, {\n token: 'constant.numeric',\n regex: /\\d[\\d.-]*/,\n }, {\n token: 'string',\n regex: /\"(?:\\\\\"|[^\"])*\"/,\n }, {\n token: 'keyword',\n regex: /(?:\\\\.|[^\\s\\-+&|!(){}[\\]^\"~*?:\\\\])+:/,\n next: 'maybeRegex',\n }, {\n token: 'term',\n regex: /[\\w(\\\\/)]+/,\n }, {\n token: 'text',\n regex: /\\s+/,\n },\n ],\n maybeRegex: [{\n token: 'text',\n regex: /\\s+/,\n }, {\n token: 'string.regexp.start',\n regex: '/',\n next: 'regex',\n }, {\n regex: '',\n next: 'start',\n }],\n regex: [\n {\n token: 'regexp.keyword.operator',\n regex: '\\\\\\\\(?:u[\\\\da-fA-F]{4}|x[\\\\da-fA-F]{2}|.)',\n }, {\n token: 'string.regexp.end',\n regex: '/[sxngimy]*',\n next: 'no_regex',\n }, {\n token: 'invalid',\n regex: /\\{\\d+\\b,?\\d*\\}[+*]|[+*$^?][+*]|[$^][?]|\\?{3,}/,\n }, {\n token: 'constant.language.escape',\n regex: /\\(\\?[:=!]|\\)|\\{\\d+\\b,?\\d*\\}|[+*]\\?|[()$^+*?.]/,\n }, {\n token: 'constant.language.escape',\n // eslint-disable-next-line no-useless-escape\n regex: '<\\d+-\\d+>|[~&@]',\n }, {\n token: 'constant.language.delimiter',\n regex: /\\|/,\n }, {\n token: 'constant.language.escape',\n regex: /\\[\\^?/,\n next: 'regex_character_class',\n }, {\n token: 'empty',\n regex: '$',\n next: 'no_regex',\n }, {\n defaultToken: 'string.regexp',\n },\n ],\n regex_character_class: [\n {\n token: 'regexp.charclass.keyword.operator',\n regex: '\\\\\\\\(?:u[\\\\da-fA-F]{4}|x[\\\\da-fA-F]{2}|.)',\n }, {\n token: 'constant.language.escape',\n regex: ']',\n next: 'regex',\n }, {\n token: 'constant.language.escape',\n regex: '-',\n }, {\n token: 'empty',\n regex: '$',\n next: 'no_regex',\n }, {\n defaultToken: 'string.regexp.charachterclass',\n },\n ],\n };\n };\n\n oop.inherits(LuceneHighlightRules, TextHighlightRules);\n\n // eslint-disable-next-line no-param-reassign\n exports.LuceneHighlightRules = LuceneHighlightRules;\n});\n\n// eslint-disable-next-line no-undef\nace.define('ace/mode/lucene', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text', 'ace/mode/lucene_highlight_rules'], (require, exports) => {\n const oop = require('../lib/oop');\n const TextMode = require('./text').Mode;\n const { LuceneHighlightRules } = require('./lucene_highlight_rules');\n\n // eslint-disable-next-line func-names\n const Mode = function () {\n this.HighlightRules = LuceneHighlightRules;\n this.$behaviour = this.$defaultBehaviour;\n };\n\n oop.inherits(Mode, TextMode);\n\n // eslint-disable-next-line func-names\n (function () {\n this.$id = 'ace/mode/lucene';\n }).call(Mode.prototype);\n\n // eslint-disable-next-line no-param-reassign\n exports.Mode = Mode;\n});\n\n// eslint-disable-next-line func-names\n(function () {\n // eslint-disable-next-line no-undef\n ace.require(['ace/mode/lucene'], (m) => {\n if (typeof module === 'object' && typeof exports === 'object' && module) {\n module.exports = m;\n }\n });\n}());\n"],"names":["AceEditor","styled","attrs","aceTheme","theme","$height","$scTheme","disabled","value","css","colors","input","background","utils","contrastingColor","variant","light","default","INPUT_BORDER_RADIUS","gray","lightest","warning","info","global","textDefault","dark","danger","readableColor","brand","primary","darker","success","fonts","family","monospace","size","body","placeholder","BasicQueryInput","forwardRef","props","ref","className","error","height","maxLines","wrapEnabled","onLoad","inputId","useTheme","markers","useMemo","errors","warnings","createMarkers","map","beginLine","beginColumn","endLine","endColumn","startRow","startCol","endRow","endCol","type","explanations","getMarkers","_onLoad","useCallback","editor","renderer","setScrollMargin","setPadding","textInput","getElement","setAttribute","editorProps","$blockScrolling","Infinity","selectionStyle","setOptions","indentedSoftWrap","commonProps","fontSize","small","highlightActiveLine","minLines","mode","name","readOnly","showGutter","showPrintMargin","isDisabledInput","isEnabledInput","onBlur","onChange","onExecute","enableAutocompletion","enableBasicAutocompletion","enableLiveAutocompletion","propTypes","PropTypes","defaultProps","undefined","React","ace","define","acequire","exports","isDark","cssClass","importCssString","cssText","require","oop","TextHighlightRules","LuceneHighlightRules","this","$rules","start","token","regex","next","maybeRegex","defaultToken","regex_character_class","inherits","TextMode","Mode","HighlightRules","$behaviour","$defaultBehaviour","$id","call","prototype","m","module"],"sourceRoot":""}