System.register(["./index-legacy.DRKniymH.js","./pinia-legacy.CU8UeoTp.js","./settings-store-legacy.DRLLI9we.js"],(function(e,l){"use strict";var t,a,i,o,n,u,d,v,s,r,c,f,p,y,g,m,h,D,j,S;return{setters:[e=>{t=e.d,a=e.t,i=e.I,o=e.r,n=e.n,u=e.o,d=e.c,v=e.N,s=e.h,r=e.w,c=e.e,f=e._,p=e.R,y=e.u,g=e.U,m=e.S,h=e.M,D=e.V},e=>{j=e.s},e=>{S=e.u}],execute:function(){e("_",t({__name:"DynamicComponents",props:{sectionParent:{type:String,required:!0},sectionChild:{type:String,required:!0},sectionKey:{type:String,required:!0}},emits:["fieldData"],setup(e,{emit:l}){const t=e,{sectionParent:k,sectionChild:C,sectionKey:_}=a(t),b=S(),{inputValues:q}=j(b),x=i.settings;let I=null;void 0!==x.controls[k.value][C.value]&&null!==x.controls[k.value][C.value]&&(I=x.controls[k.value][C.value][_.value]);const P=o(I),w=n({controls:P.value}),A=l,F=o([]);void 0!==P.value&&null!==P.value&&(w.controls=P.value.filter((e=>void 0!==e.hide?!e.hide&&(void 0!==q.value[e.id]&&(e.default=q.value[e.id]),!0):(void 0!==q.value[e.id]&&(e.default=q.value[e.id]),!0))));const K=e=>{Object.entries(e).forEach((([e,l])=>{q.value[e]=l})),A("fieldData",q.value)},O=e=>{let l="",t="";for(const[a,i]of Object.entries(e))l=a,t=i;F.value[l]=t,q.value[l]=t,w.controls=P.value.filter((e=>void 0!==e.condition?!!e.condition.some((e=>D(e,q.value,P.value,F.value)===e.value))&&(void 0!==q.value[e.id]&&(e.default=q.value[e.id]),!0):(void 0!==q.value[e.id]&&(e.default=q.value[e.id]),!0))),A("fieldData",q.value)},R=e=>{w.controls=P.value.filter((e=>void 0!==e.condition&&Array.isArray(e.condition)?!!e.condition.some((e=>!(!e||void 0===e.key)&&D(e,q.value,P.value)===e.value))&&(void 0!==q.value[e.id]&&null!==q.value[e.id]&&(e.default=q.value[e.id]),!0):(void 0!==q.value[e.id]&&null!==q.value[e.id]&&(e.default=q.value[e.id]),!0)))},U=e=>{R()};return(e,l)=>(u(!0),d(h,null,v(w.controls,((e,l)=>(u(),d("div",{key:e.id},[(u(),s(m,null,{fallback:r((()=>[c(f)])),default:r((()=>[(u(),s(p(y(g)(e.type)),{params:e,"control-settings":w.controls,"conditional-values":F.value,onInput:l=>((e,l)=>{const t=e;"checkbox"===l.type&&(t.target.value=t.target.checked),q.value[l.id]=t.target.value,A("fieldData",q.value)})(l,e),onFieldData:K,onConditionalData:O,onSelectedCondition:O,onFieldUpdatedData:R,onPreviewRef:U},null,40,["params","control-settings","conditional-values","onInput"]))])),_:2},1024))])))),128))}}))}}}));
