1import{F as p,d as f,H as m,I as c,J as g,K as s}from"./GfK8mHiC.js";function l(n){return n?n.flatMap(t=>t.type===p?l(t.children):[t]):[]}const C=f({name:"PrimitiveSlot",inheritAttrs:!1,setup(n,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const e=l(r.default()),a=e.findIndex(d=>d.type!==m);if(a===-1)return e;const i=e[a];delete i.props?.ref;const u=i.props?c(t,i.props):t,o=g({...i,props:{}},u);return e.length===1?o:(e[a]=o,e)}}}),h=["area","img","input"],P=f({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(n,{attrs:t,slots:r}){const e=n.asChild?"template":n.as;return typeof e=="string"&&h.includes(e)?()=>s(e,t):e!=="template"?()=>s(n.as,t,{default:r.default}):()=>s(C,t,{default:r.default})}});export{P,l as r}; 2//# sourceMappingURL=Bwsxb4w7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.