import{c as s}from"./index-kuiGTNrJ.js";import{N as u,t as f,I as d}from"./tmagic-dep-DSKLZ87U.js";import{b as p,r as l,u as g,_ as C}from"./plugin-vueexport-helper-CYignUIG.js";const I=VueDemi.defineComponent({name:"tmagic-page-fragment-container",props:{config:{type:Object,required:!0},iteratorIndex:Array,iteratorContainerId:Array,containerIndex:Number,model:{type:Object,default:()=>({})}},setup(n){const e=VueDemi.inject("app"),a=p(n,e);l(a);const i=g({componentType:"container",app:e}),t=VueDemi.computed(()=>{var o,r;return(r=(o=e==null?void 0:e.dsl)==null?void 0:o.items)==null?void 0:r.find(m=>m.id===n.config.pageFragmentId)}),c=VueDemi.computed(()=>{if(!t.value)return{items:[],id:"",type:u.CONTAINER};if((e==null?void 0:e.platform)==="editor"){const o=s(t.value);return f(o,r=>{r.id=""}),{...o,[d]:!1}}return{...t.value,[d]:!1}});return{containerComponent:i,containerConfig:c}}});function N(n,e,a,i,t,c){return Vue.openBlock(),Vue.createElementBlock("div",null,[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(n.containerComponent),{"iterator-index":n.iteratorIndex,"iterator-container-id":n.iteratorContainerId,config:n.containerConfig,model:n.model},null,8,["iterator-index","iterator-container-id","config","model"]))])}const D=C(I,[["render",N],["__scopeId","data-v-327dc3a6"]]);export{D as default};
//# sourceMappingURL=PageFragmentContainer-C3A8rrxj.js.map
