UNPKG

@senx/discovery-code

Version:

Discovery Code Editor

26 lines (20 loc) 2.69 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-5991e18c.js'); const appGlobals = require('./app-globals-3a1e7e63.js'); /* Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com */ var patchBrowser = () => { const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('discovery-code.cjs.js', document.baseURI).href)); const opts = {}; if (importMeta !== "") { opts.resourcesUrl = new URL(".", importMeta).href; } return index.promiseResolve(opts); }; patchBrowser().then(async (options) => { await appGlobals.globalScripts(); return index.bootstrapLazy([["discovery-code-editor_8.cjs",[[4,"discovery-code-editor",{"url":[1],"bootstrap":[1],"language":[1],"existingComments":[1,"existing-comments"],"debug":[4],"useBootstrap":[4,"use-bootstrap"],"showDataviz":[4,"show-dataviz"],"showExecute":[4,"show-execute"],"showResult":[4,"show-result"],"displayMessages":[4,"display-messages"],"imageTab":[4,"image-tab"],"widthPx":[2,"width-px"],"heightPx":[2,"height-px"],"heightLine":[2,"height-line"],"theme":[1],"code":[1],"config":[1],"initialSize":[16],"selectedResultTab":[32],"result":[32],"status":[32],"error":[32],"innerConfig":[32],"execute":[64],"abort":[64],"setBreakpointsReadOnly":[64],"addInlineMarker":[64],"removeInlineMarker":[64],"addBreakpoints":[64],"removeBreakpoints":[64],"unHighlight":[64],"highlight":[64],"resize":[64]},[[0,"document:resize","onResized"],[0,"resized","onResized"]],{"debug":["setDebug"],"theme":["updateTheme"],"code":["updateCode"],"config":["configUpdate"]}],[1,"discovery-code-image-result",{"theme":[1],"config":[1],"debug":[4],"result":[1],"loading":[32],"imageList":[32],"innerResult":[32],"innerTheme":[32],"innerConfig":[32]},null,{"debug":["setDebug"],"theme":["setTheme"],"result":["setResult"]}],[1,"discovery-code-raw-result",{"theme":[1],"config":[1],"debug":[4],"result":[1]},null,{"debug":["setDebug"],"config":["setConfig"],"theme":["updateTheme"],"result":["setResult"]}],[0,"discovery-code-result",{"theme":[1],"config":[1],"debug":[4],"result":[1]},null,{"debug":["setDebug"],"result":["setResult"]}],[1,"wc-split",{"items":[1],"direction":[1],"debug":[4],"minHeight":[2,"min-height"]}],[1,"wc-tabs",{"selection":[2]},[[0,"tabSelect","onSelectedTab"]],{"selection":["onExternalSelection"]}],[4,"wc-tabs-content",{"name":[1],"responsive":[4],"isSelected":[32],"getChild":[64]}],[1,"wc-tabs-header",{"name":[1],"disabled":[4],"isSelected":[32],"getChild":[64]}]]]], options); }); exports.setNonce = index.setNonce;