PluginProbe ʕ •ᴥ•ʔ
Tracking Code Manager / 2.4.0
Tracking Code Manager v2.4.0
trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.6.0
tracking-code-manager / assets / js / ace / ext-options.js
tracking-code-manager / assets / js / ace Last commit date
snippets 1 year ago ace.js 1 year ago ext-beautify.js 1 year ago ext-code_lens.js 1 year ago ext-elastic_tabstops_lite.js 1 year ago ext-emmet.js 1 year ago ext-error_marker.js 1 year ago ext-hardwrap.js 1 year ago ext-keybinding_menu.js 1 year ago ext-language_tools.js 1 year ago ext-linking.js 1 year ago ext-modelist.js 1 year ago ext-options.js 1 year ago ext-prompt.js 1 year ago ext-rtl.js 1 year ago ext-searchbox.js 1 year ago ext-settings_menu.js 1 year ago ext-spellcheck.js 1 year ago ext-split.js 1 year ago ext-static_highlight.js 1 year ago ext-statusbar.js 1 year ago ext-textarea.js 1 year ago ext-themelist.js 1 year ago ext-whitespace.js 1 year ago keybinding-emacs.js 1 year ago keybinding-sublime.js 1 year ago keybinding-vim.js 1 year ago keybinding-vscode.js 1 year ago mode-abap.js 1 year ago mode-abc.js 1 year ago mode-actionscript.js 1 year ago mode-ada.js 1 year ago mode-alda.js 1 year ago mode-apache_conf.js 1 year ago mode-apex.js 1 year ago mode-applescript.js 1 year ago mode-aql.js 1 year ago mode-asciidoc.js 1 year ago mode-asl.js 1 year ago mode-assembly_x86.js 1 year ago mode-autohotkey.js 1 year ago mode-batchfile.js 1 year ago mode-c9search.js 1 year ago mode-c_cpp.js 1 year ago mode-cirru.js 1 year ago mode-clojure.js 1 year ago mode-cobol.js 1 year ago mode-coffee.js 1 year ago mode-coldfusion.js 1 year ago mode-crystal.js 1 year ago mode-csharp.js 1 year ago mode-csound_document.js 1 year ago mode-csound_orchestra.js 1 year ago mode-csound_score.js 1 year ago mode-csp.js 1 year ago mode-css.js 1 year ago mode-curly.js 1 year ago mode-d.js 1 year ago mode-dart.js 1 year ago mode-diff.js 1 year ago mode-django.js 1 year ago mode-dockerfile.js 1 year ago mode-dot.js 1 year ago mode-drools.js 1 year ago mode-edifact.js 1 year ago mode-eiffel.js 1 year ago mode-ejs.js 1 year ago mode-elixir.js 1 year ago mode-elm.js 1 year ago mode-erlang.js 1 year ago mode-forth.js 1 year ago mode-fortran.js 1 year ago mode-fsharp.js 1 year ago mode-fsl.js 1 year ago mode-ftl.js 1 year ago mode-gcode.js 1 year ago mode-gherkin.js 1 year ago mode-gitignore.js 1 year ago mode-glsl.js 1 year ago mode-gobstones.js 1 year ago mode-golang.js 1 year ago mode-graphqlschema.js 1 year ago mode-groovy.js 1 year ago mode-haml.js 1 year ago mode-handlebars.js 1 year ago mode-haskell.js 1 year ago mode-haskell_cabal.js 1 year ago mode-haxe.js 1 year ago mode-hjson.js 1 year ago mode-html.js 1 year ago mode-html_elixir.js 1 year ago mode-html_ruby.js 1 year ago mode-ini.js 1 year ago mode-io.js 1 year ago mode-ion.js 1 year ago mode-jack.js 1 year ago mode-jade.js 1 year ago mode-java.js 1 year ago mode-javascript.js 1 year ago mode-json.js 1 year ago mode-json5.js 1 year ago mode-jsoniq.js 1 year ago mode-jsp.js 1 year ago mode-jssm.js 1 year ago mode-jsx.js 1 year ago mode-julia.js 1 year ago mode-kotlin.js 1 year ago mode-latex.js 1 year ago mode-latte.js 1 year ago mode-less.js 1 year ago mode-liquid.js 1 year ago mode-lisp.js 1 year ago mode-livescript.js 1 year ago mode-logiql.js 1 year ago mode-logtalk.js 1 year ago mode-lsl.js 1 year ago mode-lua.js 1 year ago mode-luapage.js 1 year ago mode-lucene.js 1 year ago mode-makefile.js 1 year ago mode-markdown.js 1 year ago mode-mask.js 1 year ago mode-matlab.js 1 year ago mode-maze.js 1 year ago mode-mediawiki.js 1 year ago mode-mel.js 1 year ago mode-mips.js 1 year ago mode-mixal.js 1 year ago mode-mushcode.js 1 year ago mode-mysql.js 1 year ago mode-nginx.js 1 year ago mode-nim.js 1 year ago mode-nix.js 1 year ago mode-nsis.js 1 year ago mode-nunjucks.js 1 year ago mode-objectivec.js 1 year ago mode-ocaml.js 1 year ago mode-partiql.js 1 year ago mode-pascal.js 1 year ago mode-perl.js 1 year ago mode-pgsql.js 1 year ago mode-php.js 1 year ago mode-php_laravel_blade.js 1 year ago mode-pig.js 1 year ago mode-plain_text.js 1 year ago mode-powershell.js 1 year ago mode-praat.js 1 year ago mode-prisma.js 1 year ago mode-prolog.js 1 year ago mode-properties.js 1 year ago mode-protobuf.js 1 year ago mode-puppet.js 1 year ago mode-python.js 1 year ago mode-qml.js 1 year ago mode-r.js 1 year ago mode-raku.js 1 year ago mode-razor.js 1 year ago mode-rdoc.js 1 year ago mode-red.js 1 year ago mode-redshift.js 1 year ago mode-rhtml.js 1 year ago mode-robot.js 1 year ago mode-rst.js 1 year ago mode-ruby.js 1 year ago mode-rust.js 1 year ago mode-sac.js 1 year ago mode-sass.js 1 year ago mode-scad.js 1 year ago mode-scala.js 1 year ago mode-scheme.js 1 year ago mode-scrypt.js 1 year ago mode-scss.js 1 year ago mode-sh.js 1 year ago mode-sjs.js 1 year ago mode-slim.js 1 year ago mode-smarty.js 1 year ago mode-smithy.js 1 year ago mode-snippets.js 1 year ago mode-soy_template.js 1 year ago mode-space.js 1 year ago mode-sparql.js 1 year ago mode-sql.js 1 year ago mode-sqlserver.js 1 year ago mode-stylus.js 1 year ago mode-svg.js 1 year ago mode-swift.js 1 year ago mode-tcl.js 1 year ago mode-terraform.js 1 year ago mode-tex.js 1 year ago mode-text.js 1 year ago mode-textile.js 1 year ago mode-toml.js 1 year ago mode-tsx.js 1 year ago mode-turtle.js 1 year ago mode-twig.js 1 year ago mode-typescript.js 1 year ago mode-vala.js 1 year ago mode-vbscript.js 1 year ago mode-velocity.js 1 year ago mode-verilog.js 1 year ago mode-vhdl.js 1 year ago mode-visualforce.js 1 year ago mode-wollok.js 1 year ago mode-xml.js 1 year ago mode-xquery.js 1 year ago mode-yaml.js 1 year ago mode-zeek.js 1 year ago theme-ambiance.js 1 year ago theme-chaos.js 1 year ago theme-chrome.js 1 year ago theme-cloud9_day.js 1 year ago theme-cloud9_night.js 1 year ago theme-cloud9_night_low_color.js 1 year ago theme-clouds.js 1 year ago theme-clouds_midnight.js 1 year ago theme-cobalt.js 1 year ago theme-crimson_editor.js 1 year ago theme-dawn.js 1 year ago theme-dracula.js 1 year ago theme-dreamweaver.js 1 year ago theme-eclipse.js 1 year ago theme-github.js 1 year ago theme-gob.js 1 year ago theme-gruvbox.js 1 year ago theme-gruvbox_dark_hard.js 1 year ago theme-gruvbox_light_hard.js 1 year ago theme-idle_fingers.js 1 year ago theme-iplastic.js 1 year ago theme-katzenmilch.js 1 year ago theme-kr_theme.js 1 year ago theme-kuroir.js 1 year ago theme-merbivore.js 1 year ago theme-merbivore_soft.js 1 year ago theme-mono_industrial.js 1 year ago theme-monokai.js 1 year ago theme-nord_dark.js 1 year ago theme-one_dark.js 1 year ago theme-pastel_on_dark.js 1 year ago theme-solarized_dark.js 1 year ago theme-solarized_light.js 1 year ago theme-sqlserver.js 1 year ago theme-terminal.js 1 year ago theme-textmate.js 1 year ago theme-tomorrow.js 1 year ago theme-tomorrow_night.js 1 year ago theme-tomorrow_night_blue.js 1 year ago theme-tomorrow_night_bright.js 1 year ago theme-tomorrow_night_eighties.js 1 year ago theme-twilight.js 1 year ago theme-vibrant_ink.js 1 year ago theme-xcode.js 1 year ago worker-base.js 1 year ago worker-coffee.js 1 year ago worker-css.js 1 year ago worker-html.js 1 year ago worker-javascript.js 1 year ago worker-json.js 1 year ago worker-lua.js 1 year ago worker-php.js 1 year ago worker-xml.js 1 year ago worker-xquery.js 1 year ago worker-yaml.js 1 year ago
ext-options.js
8 lines
1 ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../../lib/dom"),i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";r.importCssString(i,"settings_menu.css",!1),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener("keydown",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents="none",n.style.pointerEvents="auto")}var i=document.createElement("div"),s=!1;return i.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; "+(t?"background-color: rgba(0, 0, 0, 0.3);":""),i.addEventListener("click",function(e){s||u()}),document.addEventListener("keydown",o),n.addEventListener("click",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),ace.define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n;var r;/\^/.test(n)?r=n.replace(/\|(\^)?/g,function(e,t){return"$|"+(t?"^":"^.*\\.")})+"$":r="^.*\\.("+n+")$",this.extRe=new RegExp(r,"gi")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Alda:["alda"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl|asl.json"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],Crystal:["cr"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|vue|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Ion:["ion"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|jsx|cjs|mjs"],JSON:["json"],JSON5:["json5"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],Latte:["latte"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],Log:["log"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MediaWiki:["wiki|mediawiki"],MEL:["mel"],MIPS:["s|asm"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nginx:["nginx|conf"],Nim:["nim"],Nix:["nix"],NSIS:["nsi|nsh"],Nunjucks:["nunjucks|nunjs|nj|njk"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],PartiQL:["partiql|pql"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Pig:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prisma:["prisma"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Puppet:["epp|pp"],Python:["py"],QML:["qml"],R:["r"],Raku:["raku|rakumod|rakutest|p6|pl6|pm6"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],Robot:["robot|resource"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SaC:["sac"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],Scrypt:["scrypt"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],Smithy:["smithy"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSX:["tsx"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Django:["html"]},u={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g," "),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}}),ace.define("ace/ext/themelist",["require","exports","module"],function(e,t,n){"use strict";var r=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Nord Dark","nord_dark","dark"],["One Dark","one_dark","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:e[2]=="dark",name:n};return t.themesByName[n]=r,r})}),ace.define("ace/ext/options",["require","exports","module","ace/ext/menu_tools/overlay_page","ace/lib/dom","ace/lib/oop","ace/config","ace/lib/event_emitter","ace/ext/modelist","ace/ext/themelist"],function(e,t,n){"use strict";e("./menu_tools/overlay_page");var r=e("../lib/dom"),i=e("../lib/oop"),s=e("../config"),o=e("../lib/event_emitter").EventEmitter,u=r.buildDom,a=e("./modelist"),f=e("./themelist"),l={Bright:[],Dark:[]};f.themes.forEach(function(e){l[e.isDark?"Dark":"Bright"].push({caption:e.caption,value:e.theme})});var c=a.modes.map(function(e){return{caption:e.caption,value:e.mode}}),h={Main:{Mode:{path:"mode",type:"select",items:c},Theme:{path:"theme",type:"select",items:l},Keybinding:{type:"buttonBar",path:"keyboardHandler",items:[{caption:"Ace",value:null},{caption:"Vim",value:"ace/keyboard/vim"},{caption:"Emacs",value:"ace/keyboard/emacs"},{caption:"Sublime",value:"ace/keyboard/sublime"},{caption:"VSCode",value:"ace/keyboard/vscode"}]},"Font Size":{path:"fontSize",type:"number",defaultValue:12,defaults:[{caption:"12px",value:12},{caption:"24px",value:24}]},"Soft Wrap":{type:"buttonBar",path:"wrap",items:[{caption:"Off",value:"off"},{caption:"View",value:"free"},{caption:"margin",value:"printMargin"},{caption:"40",value:"40"}]},"Cursor Style":{path:"cursorStyle",items:[{caption:"Ace",value:"ace"},{caption:"Slim",value:"slim"},{caption:"Smooth",value:"smooth"},{caption:"Smooth And Slim",value:"smooth slim"},{caption:"Wide",value:"wide"}]},Folding:{path:"foldStyle",items:[{caption:"Manual",value:"manual"},{caption:"Mark begin",value:"markbegin"},{caption:"Mark begin and end",value:"markbeginend"}]},"Soft Tabs":[{path:"useSoftTabs"},{ariaLabel:"Tab Size",path:"tabSize",type:"number",values:[2,3,4,8,16]}],Overscroll:{type:"buttonBar",path:"scrollPastEnd",items:[{caption:"None",value:0},{caption:"Half",value:.5},{caption:"Full",value:1}]}},More:{"Atomic soft tabs":{path:"navigateWithinSoftTabs"},"Enable Behaviours":{path:"behavioursEnabled"},"Wrap with quotes":{path:"wrapBehavioursEnabled"},"Enable Auto Indent":{path:"enableAutoIndent"},"Full Line Selection":{type:"checkbox",values:"text|line",path:"selectionStyle"},"Highlight Active Line":{path:"highlightActiveLine"},"Show Invisibles":{path:"showInvisibles"},"Show Indent Guides":{path:"displayIndentGuides"},"Persistent HScrollbar":{path:"hScrollBarAlwaysVisible"},"Persistent VScrollbar":{path:"vScrollBarAlwaysVisible"},"Animate scrolling":{path:"animatedScroll"},"Show Gutter":{path:"showGutter"},"Show Line Numbers":{path:"showLineNumbers"},"Relative Line Numbers":{path:"relativeLineNumbers"},"Fixed Gutter Width":{path:"fixedWidthGutter"},"Show Print Margin":[{path:"showPrintMargin"},{ariaLabel:"Print Margin",type:"number",path:"printMarginColumn"}],"Indented Soft Wrap":{path:"indentedSoftWrap"},"Highlight selected word":{path:"highlightSelectedWord"},"Fade Fold Widgets":{path:"fadeFoldWidgets"},"Use textarea for IME":{path:"useTextareaForIME"},"Merge Undo Deltas":{path:"mergeUndoDeltas",items:[{caption:"Always",value:"always"},{caption:"Never",value:"false"},{caption:"Timed",value:"true"}]},"Elastic Tabstops":{path:"useElasticTabstops"},"Incremental Search":{path:"useIncrementalSearch"},"Read-only":{path:"readOnly"},"Copy without selection":{path:"copyWithEmptySelection"},"Live Autocompletion":{path:"enableLiveAutocompletion"}}},p=function(e,t){this.editor=e,this.container=t||document.createElement("div"),this.groups=[],this.options={}};(function(){i.implement(this,o),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML="",u(["table",{role:"presentation",id:"controls"},this.renderOptionGroup(h.Main),["tr",null,["td",{colspan:2},["table",{role:"presentation",id:"more-controls"},this.renderOptionGroup(h.More)]]],["tr",null,["td",{colspan:2},"version "+s.version]]],this.container)},this.renderOptionGroup=function(e){return Object.keys(e).map(function(t,n){var r=e[t];return r.position||(r.position=n/1e4),r.label||(r.label=t),r}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(e,t){var n=this;if(Array.isArray(t))return t.map(function(t){return n.renderOptionControl(e,t)});var r,i=n.getOption(t);t.values&&t.type!="checkbox"&&(typeof t.values=="string"&&(t.values=t.values.split("|")),t.items=t.values.map(function(e){return{value:e,name:e}}));if(t.type=="buttonBar")r=["div",{role:"group","aria-labelledby":t.path+"-label"},t.items.map(function(e){return["button",{value:e.value,ace_selected_button:i==e.value,"aria-pressed":i==e.value,onclick:function(){n.setOption(t,e.value);var r=this.parentNode.querySelectorAll("[ace_selected_button]");for(var i=0;i<r.length;i++)r[i].removeAttribute("ace_selected_button"),r[i].setAttribute("aria-pressed",!1);this.setAttribute("ace_selected_button",!0),this.setAttribute("aria-pressed",!0)}},e.desc||e.caption||e.name]})];else if(t.type=="number")r=["input",{type:"number",value:i||t.defaultValue,style:"width:3em",oninput:function(){n.setOption(t,parseInt(this.value))}}],t.ariaLabel?r[1]["aria-label"]=t.ariaLabel:r[1].id=e,t.defaults&&(r=[r,t.defaults.map(function(e){return["button",{onclick:function(){var t=this.parentNode.firstChild;t.value=e.value,t.oninput()}},e.caption]})]);else if(t.items){var s=function(e){return e.map(function(e){return["option",{value:e.value||e.name},e.desc||e.caption||e.name]})},o=Array.isArray(t.items)?s(t.items):Object.keys(t.items).map(function(e){return["optgroup",{label:e},s(t.items[e])]});r=["select",{id:e,value:i,onchange:function(){n.setOption(t,this.value)}},o]}else typeof t.values=="string"&&(t.values=t.values.split("|")),t.values&&(i=i==t.values[1]),r=["input",{type:"checkbox",id:e,checked:i||null,onchange:function(){var e=this.checked;t.values&&(e=t.values[e?1:0]),n.setOption(t,e)}}],t.type=="checkedNumber"&&(r=[r,[]]);return r},this.renderOption=function(e,t){if(t.path&&!t.onchange&&!this.editor.$options[t.path])return;var n=Array.isArray(t)?t[0].path:t.path;this.options[n]=t;var r="-"+n,i=n+"-label",s=this.renderOptionControl(r,t);return["tr",{"class":"ace_optionsMenuEntry"},["td",["label",{"for":r,id:i},e]],["td",s]]},this.setOption=function(e,t){typeof e=="string"&&(e=this.options[e]),t=="false"&&(t=!1),t=="true"&&(t=!0),t=="null"&&(t=null),t=="undefined"&&(t=undefined),typeof t=="string"&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal("setOption",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(p.prototype),t.OptionPanel=p}); (function() {
2 ace.require(["ace/ext/options"], function(m) {
3 if (typeof module == "object" && typeof exports == "object" && module) {
4 module.exports = m;
5 }
6 });
7 })();
8