import{d as D,t as v,o as e,c as r,N as x,a as j,g as m,u as s,Q as q,h as p,M as B}from"./index.DXvi0yH9.js";import{s as F}from"./pinia.D9yoqqEz.js";import{_ as H}from"./DynamicComponents.vue_vue_type_script_setup_true_lang.BLztL_fI.js";import L from"../apps/settings/components/ImporterTool.BUO8ohoI.js";import{u as M}from"./settings-store.BEthvEFu.js";const O={key:0,class:"stwlite-tw-font-medium stwlite-tw-text-gray-900 stwlite-tw-m-0"},C=["innerHTML"],A=D({__name:"SectionArea",props:{sectionData:{type:Object,required:!0},parentTab:{type:String,required:!0},childTab:{type:String,required:!0}},emits:["fieldData"],setup(w,{emit:u}){const f=w,{sectionData:o,parentTab:h,childTab:a}=v(f),_=a.value==="importer"&&Object.keys(o.value).includes("importer_settings"),g=M(),{inputValues:n}=F(g),y=o,b=h,k=a,S=u,T=l=>{Object.entries(l).forEach(([c,t])=>{n.value[c]=t}),S("fieldData",n.value)};return(l,c)=>(e(!0),r(B,null,x(s(y),(t,i)=>{var d;return e(),r("section",{key:i,class:"stw-section-handle stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-p-6 stwlite-tw-space-y-6 stwlite-tw-border-solid"},[t.label?(e(),r("h3",O,j(t.label),1)):m("",!0),t.desc!=""?(e(),r("div",{key:1,class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mt-1",innerHTML:s(q)((d=t.desc)!=null&&d.length?t.desc:"")},null,8,C)):m("",!0),s(_)&&i==="importer_settings"?(e(),p(L,{key:2})):(e(),p(H,{key:3,"section-parent":s(b),"section-child":s(k),"section-key":i,onFieldData:T},null,8,["section-parent","section-child","section-key"]))])}),128))}});export{A as _};
