(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{"./integrations/codegen/controllers/CodeCBController.js":function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return s}));var r,a=i("./js/services/CodeGeneratorExperimental.js"),o=i("./js/stores/get-store.js"),n=i("../../node_modules/mobx/lib/mobx.module.js");let s=(l=(r=class{get editor(){let e=Object(o.getStore)("ActiveWorkspaceSessionStore").activeEditor,t=Object(o.getStore)("EditorStore").find(e);return t&&t.model}didCreate(){var e=Object(o.getStore)("ActiveWorkspaceSessionStore").activeEditor,t=Object(o.getStore)("EditorStore").find(e).id;this.editorId=t,this.getLanguageList()}getLanguageList(){let e,t,i=[],r={};a.default.getLanguages().then((a=>{e=a,e&&e.length&&(e.forEach((e=>{e.variants&&e.variants.length&&(e.variants.length>1?e.variants.forEach((a=>{t=e.label+" - "+a.key,i.push({id:JSON.stringify({language:e.key,variant:a.key}),name:t}),r[`${e.key}_${a.key}`]={displayName:t,editorMode:e.syntax_mode}})):(t=e.label.toLowerCase()!==e.variants[0].key.toLowerCase()?e.label+" - "+e.variants[0].key:e.label,i.push({id:JSON.stringify({language:e.key,variant:e.variants[0].key}),name:t}),r[`${e.key}_${e.variants[0].key}`]={displayName:t,editorMode:e.syntax_mode}))})),this.languageList=i,this.labelEditorMap=r)}))}}).prototype,d="editor",c=[n.computed],g=Object.getOwnPropertyDescriptor(r.prototype,"editor"),u=r.prototype,v={},Object.keys(g).forEach((function(e){v[e]=g[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=c.slice().reverse().reduce((function(e,t){return t(l,d,e)||e}),v),u&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(u):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(l,d,v),v=null),r);var l,d,c,g,u,v}}]);