1import{eq as I,cC as d,an as w,aG as g,eu as C,f as O,cS as T,ai as z,dC as s,cp as b,ah as h,cr as x,cT as P,cj as V,al as B,K as $,cP as u}from"./DQSVttRj.js";import{a as A,S as N}from"./DTmWAxef.js";import{m as k,c as j}from"./DWovRhZu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b266953b4fef013f8b50367190cd669de7b04104"};var f=new e.Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="22234267-d670-4bcf-983d-c100264ac3c4",e._sentryDebugIdIdentifier="sentry-dbid-22234267-d670-4bcf-983d-c100264ac3c4")}catch{}})();const D={class:"flex flex-col items-stretch gap-10"},R={key:1,class:"mx-auto flex w-full max-w-7xl justify-end gap-4 self-end max-sm:hidden"},W={__name:"UiCarousel",props:{id:String,slides:Array,showScrollBar:Boolean,showControls:Boolean,wrapperClass:String,sliderClass:String,slideClass:String,scrollBarClass:String,swiperAttrs:{type:Object,default:()=>({})},fadeOutOverflowingBefore:{type:Boolean,default:!1}},setup(e,{expose:f}){const y=e;f({slideTo:E});const a=u(null),i=u(!1),v=u(!1),n=u(0),m=u(0);I(()=>y.enabled,r=>{a.value.params.enabled=r,a.value.update()});function E(r){a.value.slideTo(r)}function p(r){const l=a.value?.el;if(!l)return 1;const o=a.value.slidesGrid[1]??l.firstElementChild.firstElementChild?.offsetWidth??0,t=r*o-n.value*(a.value.virtualSize-a.value.size);return k(0,-.4*o,1,0,t)+.001}function S(){v.value=a.value.width<a.value.virtualSize}return(r,l)=>{const o=$;return d(),w("div",D,[g(s(N),V({class:e.sliderClass},e.swiperAttrs,{class:"w-full","wrapper-class":[e.wrapperClass,"flex items-stretch"].join(" "),onProgress:l[0]||(l[0]=t=>n.value=s(a)?.progress??0),onResize:S,onSlideChange:l[1]||(l[1]=t=>m.value=s(a)?.realIndex??0),onSwiper:l[2]||(l[2]=t=>{a.value=t,S()}),onTouchEnd:l[3]||(l[3]=t=>i.value=!1),onTouchStart:l[4]||(l[4]=t=>i.value=!0)}),{default:C(()=>[(d(!0),w(O,null,T(e.slides,(t,c)=>(d(),z(s(A),{key:c,class:b([[e.slideClass,(s(a)?.params.slidesPerView??e.swiperAttrs.slidesPerView)==="auto"?"w-auto":"w-full"],"shrink-0"])},{default:C(()=>[h("div",{class:b([{"duration-0":s(i),"duration-500":!s(i),"pointer-events-none":p(c)<.5},"h-full transition-opacity *:h-full"]),style:x(e.fadeOutOverflowingBefore?{opacity:s(i)?p(c):Math.round(p(c))}:null)},[P(r.$slots,"default",{slide:t})],6)]),_:2},1032,["class"]))),128))]),_:3},16,["class","wrapper-class"]),e.showScrollBar&&s(v)?(d(),w("div",{key:0,class:b([e.scrollBarClass,"bg-primary-400 h-0.5 w-full"])},[h("div",{style:x({"--scale-x":s(k)(0,1,.2,1,s(j)(0,1,s(n)))}),class:"bg-secondary-700 h-full origin-left scale-x-[var(--scale-x)] transition-transform duration-500"},null,4)],2)):B("",!0),e.showControls&&s(v)?(d(),w("div",R,[g(o,{disabled:s(n)>=1||s(m)>=e.slides.length-1,class:"order-1",icon:"heroicons:arrow-right-solid",solid:"",onClick:l[5]||(l[5]=()=>s(a).slideNext())},null,8,["disabled"]),g(o,{disabled:s(m)<=0&&s(n)<=0,icon:"heroicons:arrow-left-solid",solid:"",onClick:l[6]||(l[6]=()=>s(a).slidePrev())},null,8,["disabled"])])):B("",!0)])}}};export{W as _};
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.