import{aasg}from"./utils.4ea42d84.js";import{aash,Fasc,Aasy,jasm,Casp}from"./entry.a42f0781.js";import"./preview.000d6083.js";constv=h({name:"ContentSlot",functional:!0,props:{use:{type:Function,default:void0},unwrap:{type:[Boolean,String],default:!1}},setup(e){const{parent:i}=c(),{between:o,default:l}=y(),u=m(()=>typeofe.unwrap=="string"?e.unwrap.split(" "):["*"]);return{fallbackSlot:l,tags:u,between:o,parent:i}},render({use:e,unwrap:i,fallbackSlot:o,between:l,tags:u,parent:n}){varf;try{lets=e;if(typeofe=="string"&&(s=(n==null?void0:n.slots[e])||((f=n==null?void0:n.parent)==null?void0:f.slots[e]),console.warn(`Please set :use="$slots.${e}" in <ContentSlot> component to enable reactivity`)),!s)returno?o():p("div");if(!i)return[s()];const{flatUnwrap:d}=g(),a=d(s(),u);returnl?a.flatMap((t,r)=>r===0?[t]:[l(),t]):a.reduce((t,r)=>(typeofr.children=="string"?typeoft[t.length-1]=="string"?t[t.length-1]+=r.children:t.push(r.children):t.push(r),t),[])}catch{returnp("div")}}});export{vasdefault};