System.register(["./tmagic-core-legacy-_EZuz85T.js","./plugin-vueexport-helper-legacy-BYKHBkp1.js","./index-legacy-tP3UZPmW.js","./tmagic-dep-legacy-Bcp-VA6U.js"],(function(e,t){"use strict";var n,i,r,o,a,c,d;return{setters:[e=>{n=e.C},e=>{i=e.b,r=e.a,o=e.u,a=e.r,c=e._},null,e=>{d=e.I}],execute:function(){const t=VueDemi.defineComponent({name:"tmagic-container-item",props:{config:{type:Object,required:!0},index:Number,iteratorIndex:{type:Array,default:()=>[]},iteratorContainerId:{type:Array,default:()=>[]}},setup(e){const t=VueDemi.inject("userRender",(({h:e,type:t,props:n={},attrs:i={},style:r,className:o,on:a,directives:c=[]})=>{const d={...n,...i,style:r,class:o};if(a)for(const[l,s]of Object.entries(a))d[`on${l[0].toLocaleUpperCase()}${l.substring(1)}`]=s;return c.length?VueDemi.withDirectives(e(t,d),c.map((e=>[VueDemi.resolveDirective(e.name),e.value,e.modifiers]))):e(t,d)})),n=VueDemi.inject("app"),a=i(e),c=r(e);VueDemi.provide("componentStatusStore",c);const{style:l,className:s}=c;return()=>!1===e.config.visible||!1===e.config.condResult||"function"==typeof e.config.display&&!1===e.config.display({app:n,node:a})?null:t({h:VueDemi.h,config:e.config,type:o({componentType:e.config.type,app:n}),style:l.value,className:s.value,props:{config:{...e.config,[d]:!0},containerIndex:e.index,iteratorIndex:e.iteratorIndex,iteratorContainerId:e.iteratorContainerId},attrs:{"data-tmagic-id":e.config.id,"data-tmagic-iterator-index":e.iteratorIndex.join(",")||void 0,"data-tmagic-iterator-container-id":e.iteratorContainerId.join(",")||void 0,"data-container-index":e.index}})}}),l=VueDemi.defineComponent({name:"tmagic-container",props:{config:{type:Object,required:!0},iteratorIndex:{type:Array,default:()=>[]},iteratorContainerId:{type:Array,default:()=>[]},containerIndex:Number,model:{type:Object,default:()=>({})}},components:{ItemComponent:t},setup(e){const t=VueDemi.inject("app"),r=i(e,t);return a(r),{clickHandler:()=>{t&&r&&t.emit(`${n}click`,r)}}}});e("default",c(l,[["render",function(e,t,n,i,r,o){const a=Vue.resolveComponent("ItemComponent");return Vue.openBlock(),Vue.createElementBlock("div",{onClick:t[0]||(t[0]=(...t)=>e.clickHandler&&e.clickHandler(...t))},[Vue.renderSlot(e.$slots,"default",{},(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.config.items,((t,n)=>(Vue.openBlock(),Vue.createBlock(a,{key:t.id,config:t,index:n,"iterator-index":e.iteratorIndex,"iterator-container-id":e.iteratorContainerId},null,8,["config","index","iterator-index","iterator-container-id"])))),128))]))])}]]))}}}));
//# sourceMappingURL=Container-legacy-DjP13D1q.js.map
