import{y,z as m,a9 as f}from"./B8nX8PFk.js";import{O as c,r as u,R as i}from"./B4plKoGL.js";const E={props:{...m(),...y(),initialExpanded:Number,theme:{type:String,required:!1},size:{type:String,required:!1}},setup(t,n){const o=c({class:"s-expansion-panels"},n.attrs),l=(e=[])=>{var r,p;return e.length&&((r=e[0])!=null&&r.type)&&typeof e[0].type=="symbol"&&((p=e[0])!=null&&p.children)&&Array.isArray(e[0].children)?e[0].children.filter(a=>typeof a.type=="object"&&(a.type.name==="AsyncComponentWrapper"||a.type.name==="SExpansionPanel")):e.filter(a=>typeof a.type=="object"&&(a.type.name==="AsyncComponentWrapper"||a.type.name==="SExpansionPanel"))},d=n.slots.default?l(n.slots.default()):[],s=u(t.initialExpanded);return()=>i("div",o,d.map((e,r)=>i(f,{theme:t.theme,size:t.size,...e.props,expanded:r===s.value,onExpanded:p=>{p&&(s.value=r)}},e.children?e.children.default:[])))}};export{E as default};