import{f as u}from"./CJ5NhiWv.js";import{d as l,I as o,ax as i,ar as f,s as p}from"./Bxv1kRJt.js";const c=l({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:r}=i(),{default:e}=f(),a=p(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:e,tags:a,parent:r}},render({use:t,unwrap:r,fallbackSlot:e,tags:a,parent:s}){try{let n=t;return typeof t=="string"&&(n=s?.slots[t]||s?.parent?.slots[t],console.warn(`Please set :use="$slots.${t}" in <MDCSlot> component to enable reactivity`)),n?r?u(n(),a):[n()]:e?e():o("div")}catch{return o("div")}}}),y=l({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(t){return o(c,t)}});export{y as default};
