"use strict";(self.webpackChunk_postman_app_scratchpad=self.webpackChunk_postman_app_scratchpad||[]).push([[19],{8177:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var i,r=a(6433),s=a(2271),n=a(1019),o=a(2270);class d{get editor(){let e=(0,s.getStore)("ActiveWorkspaceSessionStore").activeEditor,t=(0,s.getStore)("EditorStore").find(e);return t&&t.model}didCreate(){var e=(0,s.getStore)("ActiveWorkspaceSessionStore").activeEditor,t=(0,s.getStore)("EditorStore").find(e).id;this.editorId=t,this.getLanguageList()}getLanguageList(){let e,t,a=[],i={};r.default.getLanguages().then((r=>{e=r,e&&e.length&&(e.forEach((e=>{e.variants&&e.variants.length&&(e.variants.length>1?e.variants.forEach((r=>{t=e.label+" - "+r.key,a.push({id:JSON.stringify({language:e.key,variant:r.key}),name:t}),i[`${e.key}_${r.key}`]={displayName:t,editorMode:e.syntax_mode}})):(t=e.label.toLowerCase()!==e.variants[0].key.toLowerCase()?e.label+" - "+e.variants[0].key:e.label,a.push({id:JSON.stringify({language:e.key,variant:e.variants[0].key}),name:t}),i[`${e.key}_${e.variants[0].key}`]={displayName:t,editorMode:e.syntax_mode}))})),this.languageList=a,this.labelEditorMap=i)}))}}i=d,(0,o.n)(i.prototype,"editor",[n.computed])}}]);