PageSourceSearch

https://www.soliver.at/_nuxt/_8Kw-TqM.js

js soliver.at collected 2026-10-06 17:44:16 UTC 7,693 bytes, 1 lines download raw bytes

1import _ from"./DnxvP3Uf.js";import{L as Y,J as q,ca as G,e9 as ee,M as m,A as a,d as Q,o as b,c as K,W as Z,X as R,a5 as y,u as t,a9 as te,bz as le,K as ae,T as z,ac as x,a7 as U,U as oe,V as se,$ as N,ea as ie,cA as F,cX as J}from"./B0_CeJP0.js";import{_ as ne}from"./Bsnuwepq.js";function re(e,o,c=1,g=!1){const r=m(0),s=m(null),A=a(()=>s.value?.isScrolling??!1),L=a(()=>s.value?.arrivedState.right??!1),S=a(()=>s.value?.arrivedState.left??!0),M=a(()=>s.value?.arrivedState.bottom??!1),V=a(()=>s.value?.arrivedState.top??!0),u=a(()=>s.value?.x??0),d=a(()=>s.value?.y??0),p=()=>{o==="horizontal"?r.value=L.value?e.value.children.length-1:Math.abs(Math.round((u.value-1)/v())):r.value=Math.abs(Math.round((d.value-1)/C()))};Y(()=>{s.value=q(e,{throttle:100,onScroll:p,eventListenerOptions:{passive:!0}})});const v=()=>{const l=e.value.children.length;return e.value.scrollWidth/l},C=()=>{const l=e.value.children.length;return e.value.scrollHeight/l},H=(l=0)=>{P.value&&(o==="horizontal"?e.value.scrollTo({top:0,left:u.value+v()*c+l,behavior:"smooth"}):e.value.scrollTo({top:d.value+C()*c+l,left:0,behavior:"smooth"}))},O=(l=0)=>{$.value&&(o==="horizontal"?e.value.scrollTo({top:0,left:u.value-v()*c+l,behavior:"smooth"}):e.value.scrollTo({top:d.value-C()*c+l,left:0,behavior:"smooth"}))},T=l=>{e.value&&(o==="horizontal"?e.value.scrollTo({left:e.value.offsetWidth*l,behavior:"smooth"}):e.value.scrollTo({top:e.value.offsetHeight*l,behavior:"smooth"}))},E=(l,B="auto")=>{if(e.value)if(o==="horizontal"){const k=Number.isInteger(l)?e.value.children[l]:void 0;e.value.scrollTo({left:k?k.offsetLeft:e.value.offsetWidth*l,behavior:B})}else e.value.scrollTo({top:e.value.offsetHeight*l,behavior:B})},X=(l,B="auto",k=!1)=>{if(!e.value||l<0||l>=e.value.children.length)return;const w=e.value.children[l];if(w)if(o==="horizontal"){const j=k?w.offsetLeft-(e.value.clientWidth-w.offsetWidth)/2:w.offsetLeft;e.value.scrollTo({left:j,behavior:B})}else{const j=k?w.offsetTop-(e.value.clientHeight-w.offsetHeight)/2:w.offsetTop;e.value.scrollTo({top:j,behavior:B})}},P=a(()=>o==="horizontal"?!L.value:!M.value),$=a(()=>o==="horizontal"?!S.value:!V.value),D=m(0),W=m(0),i=m(0),I=m(0),h=()=>{D.value=e.value.scrollWidth,W.value=e.value.clientWidth,i.value=e.value.scrollHeight,I.value=e.value.clientHeight};G(e,h),g&&ee(e,h,{childList:!0});const f=a(()=>{if(e.value)return o==="horizontal"?D.value>W.value:i.value>I.value});return{sliderRef:e,next:H,prev:O,isNextEnabled:P,isPrevEnabled:$,scrollImageIntoView:E,scrollToChildIndex:X,activeSlide:r,isScrollable:f,goToSlide:T,isScrolling:A}}const ce=Q({__name:"SliderArrow",props:{direction:{},isEnabled:{type:Boolean},arrowsClass:{}},emits:["click"],setup(e){return(o,c)=>{const g=_;return b(),K(t(te),{type:"raw",disabled:!e.isEnabled,"data-testid":e.direction==="left"?"slider-arrow-prev":"slider-arrow-next",class:y(["backdrop-blur-sm p-0.5 absolute top-1/2 -translate-y-1/2 bg-white/80 flex transition-all duration-100 group",[e.direction==="left"?"left-0":"right-0",{"active:scale-95":e.isEnabled},{"opacity-0 scale-100":!e.isEnabled},e.arrowsClass?.includes("size-")?"":"size-6 md:size-7",e.arrowsClass??""]]),"accessibility-label":e.direction==="left"?o.$t("accessibility.sliders.prevCta"):o.$t("accessibility.sliders.nextCta"),onClick:c[0]||(c[0]=n=>o.$emit("click"))},{default:Z(()=>[R(g,{class:y(["size-full m-auto transition-transform text-gray-950",{"rotate-180":e.direction==="left"}])},null,8,["class"])]),_:1},8,["disabled","data-testid","class","accessibility-label"])}}}),ue=Object.assign(ce,{__name:"SliderArrow"}),de=["aria-label","tabindex"],ve=["aria-label","onClick"],he={key:0},ge=Q({__name:"ItemsSlider",props:{container:{type:Boolean,default:!1},sliderClass:{default:""},sliderWrapperClass:{default:""},spacedItems:{type:Boolean,default:!1},withArrows:{type:Boolean,default:!1},withDots:{type:Boolean},nrSlides:{default:0},hideDisabledArrows:{type:Boolean,default:!1},contentBelowImage:{type:Boolean,default:!0},mode:{default:"horizontal"},slidesToMove:{default:1},hideScrollbar:{type:Boolean},snap:{type:Boolean,default:!0},arrowsClass:{default:""},ariaLabel:{default:""},labelButtonNext:{default:""},labelButtonPrev:{default:""},tabIndex:{default:0},contentChange:{type:Boolean,default:!1},isPdp:{type:Boolean,default:!1}},emits:["update:activeSlide"],setup(e,{expose:o,emit:c}){const{t:g}
1=le(),n=e,r=m(),s=m({scrollHeight:1,clientHeight:1}),A=ie(()=>{r.value&&(s.value={scrollHeight:r.value.scrollHeight,clientHeight:r.value.clientHeight})},100);G(r,A);const L=a(()=>s.value.scrollHeight>0?s.value.scrollHeight/s.value.clientHeight:1),S=a(()=>n.isPdp?Math.ceil(L.value):n.nrSlides),{y:M}=q(r),V=a(()=>{if(!n.isPdp)return T.value;const{scrollHeight:i,clientHeight:I}=s.value,h=i-I;if(h<=0||S.value<=1)return 0;const f=Math.min(Math.max(M.value/h,0),1);return Math.round(f*(S.value-1))}),{next:u,prev:d,isNextEnabled:p,isPrevEnabled:v,isScrolling:C,scrollImageIntoView:H,scrollToChildIndex:O,activeSlide:T,isScrollable:E}=re(r,n.mode,n.slidesToMove,n.contentChange),X=a(()=>n.ariaLabel||g("items_slider.navigation")),P=a(()=>n.labelButtonNext||g("accessibility.sliders.nextCta")),$=a(()=>n.labelButtonPrev||g("accessibility.sliders.prevCta")),D=a(()=>n.hideScrollbar?"scrollbar-hide":"scrollbar-mobile-hide");Y(()=>{A()}),o({isScrolling:C,scrollImageIntoView:H,scrollToChildIndex:O,next:u,prev:d});const W=c;return ae(T,i=>{W("update:activeSlide",i)}),(i,I)=>{const h=ue;return b(),z("div",{class:y(["relative",{"overflow-y-scroll scrollbar-hide":e.mode==="vertical",[e.sliderWrapperClass||""]:!0}])},[x(i.$slots,"header"),U("div",{ref_key:"sliderRef",ref:r,class:y(["flex size-full shrink-0",[{container:e.container,"gap-2 lg:gap-4":e.spacedItems,"snap-mandatory":e.snap,"snap-y flex-col overflow-x-hidden overflow-y-scroll":e.mode==="vertical"&&e.snap,"flex-col overflow-x-hidden overflow-y-scroll":e.mode==="vertical"&&!e.snap,"snap-x overflow-x-auto overflow-y-hidden items-start":e.mode==="horizontal"&&e.snap,"overflow-x-auto overflow-y-hidden items-start":e.mode==="horizontal"&&!e.snap},t(D),e.sliderClass]]),role:"region","aria-label":t(X),tabindex:e.tabIndex,"aria-roledescription":"carousel"},[x(i.$slots,"default")],10,de),e.withDots&&t(S)>1?(b(),z("div",{key:0,class:y(["absolute bottom-0 flex justify-center w-4/5 left-1/2 -translate-x-1/2 px-[28px] gap-1",{"md:left-4 md:px-0 md:top-1/4 lg:top-[40%] md:w-[2px] md:flex-col md:translate-x-0 md:bottom-auto":e.isPdp}])},[(b(!0),z(oe,null,se(t(S),f=>(b(),z("button",{key:f,class:y(["flex-1 py-2 max-w-[33px]",{"!py-0 px-2":e.mode==="vertical"}]),"aria-label":i.$t("accessibility.sliders.goToSlide",{number:f}),onClick:l=>t(H)(f-1,"smooth")},[U("span",{class:y(["h-[2px] block bg-primary opacity-40",{"!opacity-100":t(V)===f-1,"md:h-[12px] md:w-[2px]":e.isPdp}])},null,2)],10,ve))),128))],2)):N("",!0),R(t(ne),{duration:200},{default:Z(()=>[e.withArrows?(b(),z("div",he,[x(i.$slots,"arrows",F(J({prev:t(d),isPrevEnabled:t(v),next:t(u),isNextEnabled:t(p),isScrollable:t(E)})),()=>[x(i.$slots,"prev-button",F(J({prev:t(d),isPrevEnabled:t(v)})),()=>[t(E)&&(t(v)||!e.hideDisabledArrows)?(b(),K(h,{key:0,direction:"left","is-enabled":t(v),"arrows-class":e.arrowsClass,"aria-label":t($),onClick:t(d)},null,8,["is-enabled","arrows-class","aria-label","onClick"])):N("",!0)]),x(i.$slots,"next-button",F(J({next:t(u),isNextEnabled:t(p)})),()=>[t(E)&&(t(p)||!e.hideDisabledArrows)?(b(),K(h,{key:0,direction:"right","is-enabled":t(p),"arrows-class":e.arrowsClass,"aria-label":t(P),onClick:t(u)},null,8,["is-enabled","arrows-class","aria-label","onClick"])):N("",!0)])])])):N("",!0)]),_:3}),x(i.$slots,"thumbnails",{scrollImageIntoView:t(H),activeSlide:t(T)})],2)}}});export{ge 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.