import{r as N,s as l,E,h as P,G as m}from"./m2W8DxR4.js";function p(i,t){const s=N(),u=l(()=>{var e;return((e=s.value)==null?void 0:e.isBeginning)??!0}),a=l(()=>{var e;return((e=s.value)==null?void 0:e.isEnd)??!1}),v=l(()=>{var e;return((e=s.value)==null?void 0:e.activeIndex)??0}),c=l(()=>{var e;return((e=s.value)==null?void 0:e.realIndex)??0}),r=l(()=>{var e;return((e=s.value)==null?void 0:e.slides)??[]}),o=l(()=>{var e;return((e=s.value)==null?void 0:e.slidesPerViewDynamic())??0}),d=l(()=>{var e;return((e=s.value)==null?void 0:e.progress)??0}),g=l(()=>{var e;return((e=s.value)==null?void 0:e.slides.length)??0}),f=(...e)=>{s.value&&(e.length===0?s.value.slideNext():s.value.slideNext(...e))},h=(...e)=>{s.value&&s.value.slideTo(...e)},x=(...e)=>{s.value&&(e.length===0?s.value.slideReset():s.value.slideReset(...e))},w=(...e)=>{s.value&&(e.length===0?s.value.slidePrev():s.value.slidePrev(...e))},S=()=>{var n;!(((n=i.value)==null?void 0:n.nodeName)==="SWIPER-CONTAINER")&&s.value!==null&&!t&&console.warn('"useSwiper()" requires a ref and is tied to the %c`<swiper-container ref="swiperContainerRef"></swiper-container>` element.',"font-weight: bold;")},I=()=>{var e,n;i.value&&t!==void 0&&(Object.assign(i.value,t),(e=i.value)==null||e.initialize()),s.value=(n=i==null?void 0:i.value)==null?void 0:n.swiper};return E(s,()=>S()),P(()=>m(()=>I())),{instance:s,isBeginning:u,isEnd:a,activeIndex:v,realIndex:c,slides:r,slidesPerView:o,progress:d,getNumberOfSlides:g,next:f,prev:w,to:h,reset:x}}export{p as u};
