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

web-interface.assets.2f55cddc8eb85b63ee5b4ce0e5488230.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"sources":["webpack://graylog-web-interface/2f55cddc8eb85b63ee5b4ce0e5488230.js"],"sourcesContent":["ace.define(\"ace/ext/spellcheck\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/editor\",\"ace/config\"], function(require, exports, module){\"use strict\";\nvar event = require(\"../lib/event\");\nexports.contextMenuHandler = function (e) {\n    var host = e.target;\n    var text = host.textInput.getElement();\n    if (!host.selection.isEmpty())\n        return;\n    var c = host.getCursorPosition();\n    var r = host.session.getWordRange(c.row, c.column);\n    var w = host.session.getTextRange(r);\n    host.session.tokenRe.lastIndex = 0;\n    if (!host.session.tokenRe.test(w))\n        return;\n    var PLACEHOLDER = \"\\x01\\x01\";\n    var value = w + \" \" + PLACEHOLDER;\n    text.value = value;\n    text.setSelectionRange(w.length, w.length + 1);\n    text.setSelectionRange(0, 0);\n    text.setSelectionRange(0, w.length);\n    var afterKeydown = false;\n    event.addListener(text, \"keydown\", function onKeydown() {\n        event.removeListener(text, \"keydown\", onKeydown);\n        afterKeydown = true;\n    });\n    host.textInput.setInputHandler(function (newVal) {\n        if (newVal == value)\n            return '';\n        if (newVal.lastIndexOf(value, 0) === 0)\n            return newVal.slice(value.length);\n        if (newVal.substr(text.selectionEnd) == value)\n            return newVal.slice(0, -value.length);\n        if (newVal.slice(-2) == PLACEHOLDER) {\n            var val = newVal.slice(0, -2);\n            if (val.slice(-1) == \" \") {\n                if (afterKeydown)\n                    return val.substring(0, text.selectionEnd);\n                val = val.slice(0, -1);\n                host.session.replace(r, val);\n                return \"\";\n            }\n        }\n        return newVal;\n    });\n};\nvar Editor = require(\"../editor\").Editor;\nrequire(\"../config\").defineOptions(Editor.prototype, \"editor\", {\n    spellcheck: {\n        set: function (val) {\n            var text = this.textInput.getElement();\n            text.spellcheck = !!val;\n            if (!val)\n                this.removeListener(\"nativecontextmenu\", exports.contextMenuHandler);\n            else\n                this.on(\"nativecontextmenu\", exports.contextMenuHandler);\n        },\n        value: true\n    }\n});\n\n});                (function() {\n                    ace.require([\"ace/ext/spellcheck\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "],"mappings":"oEAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,KAAI,OAAO,qBAAqB,CAAC,UAAU,UAAU,SAAS,gBAAgB,aAAa,YAAY,EAAG,SAASC,EAASF,EAASC,EAAO,CAAC,aAC7I,IAAIE,EAAQD,EAAQ,cAAc,EAClCF,EAAQ,mBAAqB,SAAUI,EAAG,CACtC,IAAIC,EAAOD,EAAE,OACTE,EAAOD,EAAK,UAAU,WAAW,EACrC,GAAKA,EAAK,UAAU,QAAQ,EAE5B,KAAIE,EAAIF,EAAK,kBAAkB,EAC3BG,EAAIH,EAAK,QAAQ,aAAaE,EAAE,IAAKA,EAAE,MAAM,EAC7CE,EAAIJ,EAAK,QAAQ,aAAaG,CAAC,EAEnC,GADAH,EAAK,QAAQ,QAAQ,UAAY,EAC7B,EAACA,EAAK,QAAQ,QAAQ,KAAKI,CAAC,EAEhC,KAAIC,EAAc,KACdC,EAAQF,EAAI,IAAMC,EACtBJ,EAAK,MAAQK,EACbL,EAAK,kBAAkBG,EAAE,OAAQA,EAAE,OAAS,CAAC,EAC7CH,EAAK,kBAAkB,EAAG,CAAC,EAC3BA,EAAK,kBAAkB,EAAGG,EAAE,MAAM,EAClC,IAAIG,EAAe,GACnBT,EAAM,YAAYG,EAAM,UAAW,SAASO,GAAY,CACpDV,EAAM,eAAeG,EAAM,UAAWO,CAAS,EAC/CD,EAAe,EACnB,CAAC,EACDP,EAAK,UAAU,gBAAgB,SAAUS,EAAQ,CAC7C,GAAIA,GAAUH,EACV,MAAO,GACX,GAAIG,EAAO,YAAYH,EAAO,CAAC,IAAM,EACjC,OAAOG,EAAO,MAAMH,EAAM,MAAM,EACpC,GAAIG,EAAO,OAAOR,EAAK,YAAY,GAAKK,EACpC,OAAOG,EAAO,MAAM,EAAG,CAACH,EAAM,MAAM,EACxC,GAAIG,EAAO,MAAM,EAAE,GAAKJ,EAAa,CACjC,IAAIK,EAAMD,EAAO,MAAM,EAAG,EAAE,EAC5B,GAAIC,EAAI,MAAM,EAAE,GAAK,IACjB,OAAIH,EACOG,EAAI,UAAU,EAAGT,EAAK,YAAY,GAC7CS,EAAMA,EAAI,MAAM,EAAG,EAAE,EACrBV,EAAK,QAAQ,QAAQG,EAAGO,CAAG,EACpB,GAEf,CACA,OAAOD,CACX,CAAC,GACL,EACA,IAAIE,EAASd,EAAQ,WAAW,EAAE,OAClCA,EAAQ,WAAW,EAAE,cAAcc,EAAO,UAAW,SAAU,CAC3D,WAAY,CACR,IAAK,SAAUD,EAAK,CAChB,IAAIT,EAAO,KAAK,UAAU,WAAW,EACrCA,EAAK,WAAa,CAAC,CAACS,EACfA,EAGD,KAAK,GAAG,oBAAqBf,EAAQ,kBAAkB,EAFvD,KAAK,eAAe,oBAAqBA,EAAQ,kBAAkB,CAG3E,EACA,MAAO,EACX,CACJ,CAAC,CAED,CAAC,GAAmB,UAAW,CACX,IAAI,QAAQ,CAAC,oBAAoB,EAAG,SAASiB,EAAG,CACxC,OAAOhB,GAAU,UAAY,OAAOD,GAAW,UAAYC,IAC3DA,EAAO,QAAUgB,EAEzB,CAAC,CACL,GAAG","names":["require_f55cddc8eb85b63ee5b4ce0e5488230","__commonJSMin","exports","module","require","event","e","host","text","c","r","w","PLACEHOLDER","value","afterKeydown","onKeydown","newVal","val","Editor","m"],"sourceRoot":"","file":"2f55cddc8eb85b63ee5b4ce0e5488230.js"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy