1import{$n as e,$t as t,Bt as n,F as r,It as i,Kt as a,R as o,Tn as s,X as c,dn as l,hn as u,ht as d,kt as f,nn as p,st as m,xn as h}from"./Bxx9_3KR.js";import{t as g}from"./CRzLMJPS.js";var _=`--blossom-`;`${_}`,`${_}`,`${_}`;var v=Symbol.for(`blossom-carousel.slideCounts`);function y(e){let t=e;return t[v]||(t[v]=new Map),t[v]}function b(e,t,n){y(e).set(t,n)}function x(e){return e?`data-blossom-slide`in e||`dataBlossomSlide`in e:!1}function S(e){let{children:t}=e;if(!t)return[];if(Array.isArray(t))return t.filter(f);if(typeof t==`object`&&`default`in t){let e=t.default;if(typeof e==`function`)return e().filter(f)}return[]}function C(e){let t=0;for(let n of e)f(n)&&n.type!==r&&(x(n.props)&&t++,(n.type===o||n.children)&&(t+=C(S(n))));return t}function w(e){return C(e)}var T=m({__name:`BlossomCarousel`,props:{as:{type:String,default:`div`},repeat:{type:Boolean,default:!1},load:{type:String,default:`conditional`}},setup(r,{expose:o}){let f=r,m=null,_=e(null),v=l(),y=u(),x=d().appContext.app;return h(()=>{let e=v.id;if(!e)return;let t=y.default?.()??[];b(x,e,w(t))}),o({el:_,prev:()=>m?.prev({align:`center`}),next:()=>m?.next({align:`center`})}),n(async()=>{if(!window.matchMedia(`(hover: hover) and (pointer: fine)`).matches&&f.load!==`always`)return;let{Blossom:e}=await g(async()=>{let{Blossom:e}=await import(`./yya8KAw-.js`);return{Blossom:e}},[],import.meta.url);_.value&&(m=e(_.value,{repeat:f.repeat}),m.init())}),i(()=>{m?.destroy()}),(e,n)=>(a(),c(p(r.as),{ref_key:`root`,ref:_,"blossom-carousel":`true`},{default:s(()=>[t(e.$slots,`default`)]),_:3},512))}});export{T as t};
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.