import{d as k,ar as T,bn as t,bo as a,by as v,bp as l,bs as S,br as d,a9 as n,h as V,aa as q,A as B}from"./preload-helper.BAt0wiQU.js";import{_ as F}from"./DynamicComponents.vue_vue_type_script_setup_true_lang.2AG_y0pG.js";import{p as H}from"../apps/settings/index.DetZ7Cvo.js";const L={class:"wwp-row-handle"},N={key:0,class:"wwp-left-content"},j=["innerHTML"],E=k({__name:"SectionArea",props:{sectionData:{type:Object,required:!0},parentTab:{type:String,required:!0},childTab:{type:String,required:!0}},emits:["fieldData"],setup(p,{emit:u}){const m=p,{sectionData:h,parentTab:_,childTab:b}=T(m),f=h,y=_,w=b,s=B([]),D=u,g=r=>{Object.entries(r).forEach(([o,e])=>{s.value[o]=e}),D("fieldData",s.value)};return(r,o)=>(t(!0),a(q,null,v(n(f),(e,c)=>{var i;return t(),a("section",{key:c,class:"wwp-section-handle"},[l("div",L,[e.label?(t(),a("div",N,[l("h4",null,S(e.label),1)])):d("",!0),e.desc!=""?(t(),a("div",{key:1,class:"wwp-right-content",innerHTML:n(H)((i=e.desc)!=null&&i.length?e.desc:"")},null,8,j)):d("",!0)]),V(F,{"section-parent":n(y),"section-child":n(w),"section-key":c,onFieldData:g},null,8,["section-parent","section-child","section-key"])])}),128))}});export{E as _};
