System.register(["./index-legacy-tP3UZPmW.js","./tmagic-dep-legacy-Bcp-VA6U.js","./plugin-vueexport-helper-legacy-BYKHBkp1.js"],(function(e,t){"use strict";var n,o,r,i,c;return{setters:[null,e=>{n=e.I},e=>{o=e.u,r=e.b,i=e.r,c=e._}],execute:function(){const t=VueDemi.defineComponent({name:"tmagic-overlay",props:{config:{type:Object,required:!0},iteratorIndex:Array,iteratorContainerId:Array,containerIndex:Number,model:{type:Object,default:()=>({})}},setup(e){const t=VueDemi.ref(!1),c=VueDemi.inject("app"),a=o({componentType:"container",app:c}),u=()=>{t.value=!0,c?.emit("overlay:open",p)},l=()=>{t.value=!1,c?.emit("overlay:close",p)},s=(t,n)=>{n.find((t=>t.id===e.config.id))?u():l()};c?.page?.on("editor:select",s),VueDemi.onBeforeUnmount((()=>{c?.page?.off("editor:select",s)}));const p=r(e,c);return i(p,{openOverlay:u,closeOverlay:l}),{containerComponent:a,visible:t,IS_DSL_NODE_KEY:n}}});e("default",c(t,[["render",function(e,t,n,o,r,i){return e.visible?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.containerComponent),{key:0,config:{items:e.config.items,[e.IS_DSL_NODE_KEY]:!1}},{default:Vue.withCtx((()=>[Vue.renderSlot(e.$slots,"default")])),_:3},8,["config"])):Vue.createCommentVNode("",!0)}]]))}}}));
//# sourceMappingURL=index-legacy-CBjU6Zsg.js.map
