1import{I as C,_ as H}from"./Dy2xinyL.js";import{aV as D,bD as F,aY as M,aX as V,b1 as O,br as c,by as f,c7 as W,bw as r,bv as d,bz as q,bx as m,bu as z,b6 as $,bF as L,c8 as R,b2 as G,a$ as h,b9 as y,bJ as U,bC as J}from"./EBpBARSw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="211a31e9-a360-4711-bee6-35adc30e631f",e._sentryDebugIdIdentifier="sentry-dbid-211a31e9-a360-4711-bee6-35adc30e631f")}catch{}})();const Y=["innerHTML"],P=["data-index","data-slide"],X=D({__name:"BaseSlider",props:{buttonsAlign:{default:"center",type:String},buttonsJustify:{default:"space-between",type:String},buttonsSize:{default:"big",type:String},edgeGap:{default:()=>({mobile:"8px",mobileMedium:"8px",mobileWide:"16px",tablet:0,desktop:0,desktopMedium:0,desktopWide:0}),type:[String,Object]},items:{required:!0,type:Array},itemGap:{default:"16px",type:[String,Object]},itemRows:{default:1,type:Number},itemWidth:{default:"",type:[String,Object]},isButtonsHoverable:{default:!1,type:Boolean},scrollSnapAlign:{default:"start",type:String,validator(e){return["center","end","start","start end"].includes(e)}},scrollSnapStop:{default:"normal",type:String,validator(e){return["always","normal"].includes(e)}},title:{default:"",type:String},titleSize:{default:"small",type:String,validator(e){return["small","medium","large"].includes(e)}},subtitle:{default:"",type:String},withDots:{default:!0,type:Boolean},withItemsShadows:{default:!1,type:Boolean},withSliderBorder:{default:!1,type:Boolean}},setup(e){const s=e,u=F(),w=h(),n=h(),p=h(),I=h(1),v=h(!1),i=U({current:-1,width:0}),A=y(()=>s.edgeGap&&s.edgeGap[u.breakpoint.value]?s.edgeGap[u.breakpoint.value]:s.edgeGap),g=y(()=>s.itemGap&&s.itemGap[u.breakpoint.value]?s.itemGap[u.breakpoint.value]:s.itemGap),E=y(()=>s.itemWidth&&typeof s.itemWidth=="string"?s.itemWidth:s.itemWidth&&s.itemWidth[u.breakpoint.value]?s.itemWidth[u.breakpoint.value]:u.isLessThan("tablet")?`calc(100% - ${Number.parseInt(g.value,10)*2}px)`:u.isLessThan("desktopWide")?`calc(50% - ${Number.parseInt(g.value,10)/2}px)`:`calc(33% - ${Number.parseInt(g.value,10)/2}px)`),S=y(()=>i.current>0),k=y(()=>i.current<i.width-32);function B(){i.current=n.value?.scrollLeft||0}function j(){if(!S.value||!n.value)return;const{children:t}=n.value;let a=t.length;for(;a--;){const l=t[a-1];if(!l||i.current<l.offsetLeft+l.offsetWidth-16)continue;const o=l.offsetLeft;return n.value.scrollTo({behavior:"smooth",left:o})}}function N(){if(!k.value||!n.value)return;const{children:t}=n.value;for(let a=0,l=t.length;a<l;a++){const o=t[a];if(i.current>o.offsetWidth+o.offsetLeft-16)continue;const b=t[a+1];if(!b)continue;let T=b.offsetLeft;return i.width-i.current<b.offsetWidth&&(T=i.width),n.value.scrollTo({behavior:"smooth",left:T})}}return M(()=>{w.value?.disconnect(),n.value?.removeEventListener("scroll",B)}),V(()=>{w.value=new IntersectionObserver(([t])=>{if(t.isIntersecting){const a=t.target,{index:l="0"}=a.dataset;I.value=Number.parseInt(l,10)}},{threshold:.5}),O([u.breakpoint,()=>s.items],async([t])=>{if(await new Promise(o=>setTimeout(o,500)),!n.value||!p.value)return;if(n.value.scrollTo({left:0}),t.includes("mobile")){for(const o of Array.from(n.value.children))w.value?.observe(o);n.value.removeEventListener("scroll",B),i.current=-1,i.width=0,v.value=!1;return}w.value?.disconnect(),n.value.addEventListener("scroll",B);const{scrollWidth:a}=n.value,{offsetWidth:l}=p.value;i.current=0,i.width=a-l,v.value=a>l},{immediate:!0})}),(t,a)=>{const l=H;return e.items.length?(c(),f("div",{key:0,class:d({[t.$style.root]:!0,[t.$style.isButtonsHoverable]:e.isButtonsHoverable,[t.$style.withTitle]:e.title,[t.$style.withRows]:e.itemRows>1,[t.$style.withButtons]:r(v),[t.$style.withItemsShadows]:e.withItemsShadows,[t.$style.withBorder]:e.withSliderBorder,[t.$style[`buttons-align-${e.buttonsAlign}`]]:!0,[t.$style[`buttons-justify-${e.buttonsJustify}`]]:!0}),style:W({"--button-size":r(C)[e.buttonsSize],"--edge-gap":r(A),"--item-gap":r(g),"--item-width":r(E)})},[e.title?(c(),f("p",{key:0,class:d({[t.$style.title]:!0,[t.$style[e.titleSize]]:!0})},q(e.title),3)):m("",!0),e.subtitle?(c(),f("p",{key:1,class:d(t.$style.subtitle),innerHTML:e.subtitle},null,10,Y)):m("",!0),z("div",{ref_key:"sliderEl",ref:p,class:d(t.$style.slider)},[z("ul",{ref_key:"itemsEl",ref:n,class:d(t.$style.items)},[(c(!0),f($,null,L(e.items,(o,b)=>(c(),f("li",{key:b,class:d(t.$style.item),"data-index":b,"data-sli
1de":b+1,style:W({scrollSnapAlign:e.scrollSnapAlign,scrollSnapStop:e.scrollSnapStop})},[R(t.$slots,"default",{index:b,item:o})],14,P))),128))],2)],2),t.$viewport.isLessThan("tablet")&&e.withDots&&e.items.length>1?(c(),f("ul",{key:2,class:d(t.$style.dots)},[(c(!0),f($,null,L(e.items.length,o=>(c(),f("li",{key:o,class:d({[t.$style.dot]:!0,[t.$style.dotActive]:o-1===r(I)})},null,2))),128))],2)):m("",!0),r(v)?(c(),f($,{key:3},[G(l,{class:d(t.$style.buttonBackward),disabled:!r(S),"is-disabled":!r(S),name:"chevron-2",size:e.buttonsSize,theme:"white",onClick:j},null,8,["class","disabled","is-disabled","size"]),G(l,{class:d(t.$style.buttonForward),disabled:!r(k),"is-disabled":!r(k),name:"chevron-2",size:e.buttonsSize,theme:"white",onClick:N},null,8,["class","disabled","is-disabled","size"])],64)):m("",!0)],6)):m("",!0)}}}),Q="BTxkL",Z="z7gz7",x="Hp7w-",K="jbqaH",_="_3YKFB",ee="hYIcj",te="qYQJx",se="vyx-I",ne="_1qhGj",le="miXN-",ie="V-a--",ae="EqUTV",oe="gZxgI",re="_9C-5X",ue="UWx4A",de="qVS10",ce="kvWjd",fe="Wba-m",be="pzG26",me={root:Q,title:Z,small:x,medium:K,subtitle:_,withItemsShadows:ee,slider:te,withBorder:se,items:ne,item:le,withRows:ie,dots:ae,dot:oe,dotActive:re,buttonBackward:ue,buttonForward:de,"buttons-align-start":"vfeBb","buttons-align-center":"dncP5","buttons-justify-end":"TkiUQ","buttons-justify-space-between":"saj-8",withTitle:ce,withButtons:fe,isButtonsHoverable:be},he={$style:me},ve=J(X,[["__cssModules",he]]);export{ve as default};
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.