System.register(["./p-24afd2bd.system.js","./p-c182192e.system.js"],(function(e){"use strict";var n,a,t;return{setters:[function(e){n=e.h;a=e.F},function(e){t=e.a}],execute:function(){var i=e("L",(function(e){var i,l;var u=t(e.activeLanguage);var s=Object.keys((i=e.executableLanguages)!==null&&i!==void 0?i:{}).length>0;var c=s?Object.entries(e.languageCapabilities).reduce((function(n,a){var t;var i=a[0],l=a[1];return Object.keys(e.executableLanguages).includes(i)?n:Object.assign(Object.assign({},n),(t={},t[i]=l,t))}),{}):e.languageCapabilities;return n("stencila-menu",{"aria-label":"Programming Language",autoClose:true},n("stencila-button",{iconOnly:true,icon:"terminal",size:"xsmall",slot:"toggle","aria-label":"Toggle menu",color:"key",minimal:true,tooltip:""+u.name,disabled:e.disabled}),s&&n(a,null,Object.values((l=e.executableLanguages)!==null&&l!==void 0?l:{}).map((function(a){return n("stencila-menu-item",{size:"xsmall",onClick:function(){var n;return(n=e.onSetLanguage)===null||n===void 0?void 0:n.call(e,a.name)},icon:a.name===u.name?"check":undefined},a.name)})),n("stencila-menu-item",{size:"xsmall",divider:true},"Not executable")),Object.values(c).map((function(a){return n("stencila-menu-item",{size:"xsmall",onClick:function(){var n;return(n=e.onSetLanguage)===null||n===void 0?void 0:n.call(e,a.name)}},a.name)})))}))}}}));
//# sourceMappingURL=p-a3d8271c.system.js.map