import{f as u}from"./BXBHssRj.js";import{d as l,ad as i,E as f,ae as o,al as p}from"./BvNnk7SS.js";const d=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:a}=p(),{default:n}=i(),r=f(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:n,tags:r,parent:a}},render({use:t,unwrap:a,fallbackSlot:n,tags:r,parent:s}){try{let e=t;return typeof t=="string"&&(e=s?.slots[t]||s?.parent?.slots[t],console.warn(`Please set :use="$slots.${t}" in <MDCSlot> component to enable reactivity`)),e?a?u(e(),r):[e()]:n?n():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(d,t)}});export{y as default};
