PageSourceSearch

https://www.faireparterie.fr/_next/static/chunks/1a8il-gxmix1d.js?dpl=fac48d6fdaa46afada96748e313ec456a131d853

js faireparterie.fr collected 2026-09-26 08:26:28 UTC 23,129 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="2ae98e80-2df5-3506-aa2c-ac4da8dd8642")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,745827,e=>{"use strict";var t=e.i(761352),n=e.i(844753),r=e.i(840341),i=e.i(451851),o=e.i(18161),u=e.i(549838);e.s(["ProductSliderContent",0,({children:e})=>{let{isKartenmachereiStore:a}=(0,o.useShopConfiguration)(),l=(0,n.useTranslations)("ProductSlider"),c=a?"top-37 md:top-31.5":"top-26.5 md:top-22.5";return(0,t.jsx)("div",{className:(0,u.cn)("md:mr-0",a?"mt-3 md:mt-5":"mt-8 md:mt-12"),children:(0,t.jsxs)(i.Carousel,{"aria-roledescription":"carousel","aria-label":l("productsSlider"),className:"flex w-full justify-center",opts:{slidesToScroll:"auto"},role:"group",children:[(0,t.jsx)(i.CarouselContent,{className:(0,u.cn)("mx-4",a?"gap-4":"gap-2"),children:r.default.Children.map(e,(e,n)=>(0,t.jsx)(i.CarouselItem,{"aria-roledescription":"slide","aria-label":l("productImage"),className:"basis-auto",children:e},n))}),(0,t.jsx)(i.CarouselPrevious,{"aria-label":l("previousImage"),"aria-controls":"carousel-list",className:(0,u.cn)("[translate:unset] lg:-left-5",c)}),(0,t.jsx)(i.CarouselNext,{"aria-label":l("nextImage"),"aria-controls":"carousel-list",className:(0,u.cn)("[translate:unset] lg:-right-5",c)})]})})}])},451851,e=>{"use strict";var t=e.i(761352),n=e.i(547034),r=e.i(840341);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],u=t[n];return"function"==typeof r?`${r}`==`${u}`:i(r)&&i(u)?o(r,u):r===u})}function u(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function l(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function f(e){return Math.sign(e)}function p(e){return x(e).map(Number)}function m(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function h(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function x(e){return Object.keys(e)}function y(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function v(){let e=[],t={add:function(n,r,i,o={passive:!0}){let u;return"addEventListener"in n?(n.addEventListener(r,i,o),u=()=>n.removeEventListener(r,i,o)):(n.addListener(i),u=()=>n.removeListener(i)),e.push(u),t},clear:function(){e=e.filter(e=>e())}};return t}function b(e=0,t=0){let n=d(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function w(e){let t=e;function n(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function S(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,o=!1;return{clear:function(){!o&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let u=Math.round(100*e.direction(t))/100;u!==i&&(r.transform=n(u),i=u)},toggleActive:function(e){o=!e}}}let C={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function N(e,t,n){let r,i,o,u,j,k,I,D,E=e.ownerDocument,O=E.defaultView,A=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>
2(x(n).forEach(r=>{let i=t[r],o=n[r],u=s(i)&&s(o);t[r]=u?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=x(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>x(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(O),P=(D=[],{init:function(e,t){return(D=t.filter(({options:e})=>!1!==A.optionsAtMedia(e).active)).forEach(t=>t.init(e,A)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){D=D.filter(e=>e.destroy())}}),L=v(),T=(i={},o={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),o},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),o},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),o},clear:function(){i={}}}),{mergeOptions:M,optionsAtMedia:z,optionsMediaQueries:F}=A,{on:R,off:B,emit:H}=T,V=!1,$=M(C,N.globalOptions),U=M($),q=[];function K(t,n){V||(U=z($=M($,t)),q=n||q,function(){let{container:t,slides:n}=U;k=(l(t)?e.querySelector(t):t)||e.children[0];let r=l(n)?k.querySelectorAll(n):n;I=[].slice.call(r||k.children)}(),u=function t(n){let r=function(e,t,n,r,i,o,u){var s,C;let N,j,k,I,D,E,O,A,P,L,T,M,z,F,{align:R,axis:B,direction:H,startIndex:V,loop:$,duration:U,dragFree:q,dragThreshold:K,inViewThreshold:J,slidesToScroll:X,skipSnaps:G,containScroll:Q,watchResize:Y,watchSlides:W,watchDrag:Z,watchFocus:_}=o,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(j="rtl"===H,I=(k="y"===B)||!j?1:-1,D=k?"top":j?"right":"left",E=k?"bottom":j?"left":"right",{scroll:k?"y":"x",cross:k?"x":"y",startEdge:D,endEdge:E,measureSize:function(e){let{height:t,width:n}=e;return k?t:n},direction:function(e){return e*I}}),ei=er.measureSize(et),eo={measure:function(e){return e/100*ei}},eu=(s=R,C=ei,N={start:function(){return 0},center:function(e){return(C-e)/2},end:function(e){return C-e}},{measure:function(e,t){return l(s)?N[s](e):s(C,e,t)}}),ea=!$&&!!Q,{slideSizes:el,slideSizesWithGaps:ec,startGap:es,endGap:ed}=function(e,t,n,r,i,o){let{measureSize:u,startEdge:a,endEdge:l}=e,c=n[0]&&i,s=function(){if(!c)return 0;let e=n[0];return d(t[a]-e[a])}(),f=c?parseFloat(o.getComputedStyle(m(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(u),h=n.map((e,t,n)=>{let r=t===g(n);return t?r?p[t]+f:n[t+1][a]-e[a]:p[t]+s}).map(d);return{slideSizes:p,slideSizesWithGaps:h,startGap:s,endGap:f}}(er,et,en,n,$||!!Q,i),ef=function(e,t,n,r,i,o,u,l){let{startEdge:c,endEdge:s,direction:f}=e,h=a(n);return{groupSlides:function(e){return h?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,a,p)=>{let h=m(n)||0,x=a===g(e),y=i[c]-o[h][c],v=i[c]-o[a][s],b=r||0!==h?0:f(u),w=d(v-(!r&&x?f(l):0)-(y+b));return p&&w>t+2&&n.push(a),x&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,X,$,et,en,es,ed),{snaps:ep,snapsAligned:em}=function(e,t,n,r,i){let{startEdge:o,endEdge:u}=e,{groupSlides:a}=i,l=a(r).map(e=>m(e)[u]-e[0][o]).map(d).map(t.measure),c=r.map(e=>n[o]-e[o]).map(e=>-d(e)),s=a(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:s}}(er,eu,et,en,ef),eg=-m(ep)+m(ec),{snapsContained:eh,scrollContainLimit:ex}=function(e,t,n,r){let i,o,u=b(-t+e,0),a=n.map((e,t)=>{let{min:r,max:i}=u,o=u.constrain(e),a=t===g(n);return t?a||function(e,t){return 1>=d(e-t)}(r,o)?r:function(e,t){return 1>=d(e-t)}(i,o)?i:o:i}).map(e=>parseFloat(e.toFixed(3))),l=(i=a[0],o=m(a),b(a.lastIndexOf(i),a.indexOf(o)+1));return{snapsContained:function(){if(t<=e+2)return[u.max];if("keepSnaps"===r)return a;let{min:n,max:i}=l;return a.slice(n,i)}(),scrollContainLimit:l}}(ei,eg,em,Q),ey=ea?eh:em,{limit:ev}=(O=ey[0],{limit:b($?O-eg:m(ey),O)}),eb=function e(t,n,r){let{constrain:i}=b(0,t),o=t+1,u=a(n);function a(e){return r?d((o+e)%o):i(e)}function l(){return e(t,u,r)}let c={get:function(){return u},set:function(e){return u=a(e),c},add:function(e){return l().set(u+e)},clone:l};return c}(g(ey),V,$),ew=eb.clone(),eS=p(n),eC=function(e,t,n,r){let i=v(),o=1e3/60,u=null,a=0,l=0;function c(e){if(!l)return;u||(u=e,n(),n());let i=e-u;for(u=e,a+=i;a>=o;)n(),a-=o;r(a/o),l&&(l=t.requestAnimationFrame(c))}function s(){t.cancelAnimationFrame(l),u=null,a=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(u=null,a=0)})},destroy:function(){s(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:s,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eF),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:o,slideLooper:u,dragHandler:a,animation:l,eventHandler:c,scrollBounds:s,options:{loop:d}},f)=>{let p=e.settled(),m=!s.shouldConstrain(),g=d?p:p&&m;g&&!a.pointerDown()&&(l.stop(),c.emit("settle")),g||c.emit("scroll");let h=n.get()*f+i.get()*(1-f);r.set(h),d&&(o.loop(e.direction()),u.loop()),t.to(r.get())})(eF,e)),eN=ey[eb.get()],ej=w(eN),ek=w(eN),eI=w(eN),eD=w(eN),eE=function(e,t,n,r,i){let o=0,u=0,a=i,l=.68,c=e.get(),s=0;function p(e){return a=e,g}function m(e){return l=e,g}let g={direction:function(){return u},duration:function(){return a},velocity:function(){return o},seek:function(){let t=r.get()-e.get(),i=0;return a?(n.set(e),o+=t/a,o*=l,c+=o,e.add(o),i=c-s):(o=0,n.set(r),e.set(r),i=t),u=f(i),s=c,g},settled:function(){return .001>d(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return g}(ej,eI,ek,eD,U),eO=function(e,t,n,r,i){let{reachedAny:o,removeOffset:u,constrain:a}=r;function l(e){return e.concat().sort((e,t)=>
2d(e)-d(t))[0]}function c(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let o=i.filter(e=>f(e)===r);return o.length?l(o):m(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:s,distance:f}=function(n){let r=e?u(n):a(n),{index:i}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>d(e.diff)-d(t.diff))[0];return{index:i,distance:r}}(l),p=!e&&o(l);if(!r||p)return{index:s,distance:n};let m=n+c(t[s]-f,0);return{index:s,distance:m}},byIndex:function(e,n){let r=c(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:c}}($,ey,eg,ev,eD),eA=function(e,t,n,r,i,o,u){function a(i){let a=i.distance,l=i.index!==t.get();o.add(a),a&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),u.emit("select"))}return{distance:function(e,t){a(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);a(i.byIndex(r.get(),n))}}}(eC,eb,ew,eE,eO,eD,u),eP=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ev),eL=v(),eT=(P={},L=null,T=null,M=!1,{init:function(){A=new IntersectionObserver(e=>{M||(e.forEach(e=>{P[n.indexOf(e.target)]=e}),L=null,T=null,u.emit("slidesInView"))},{root:t.parentElement,threshold:J}),n.forEach(e=>A.observe(e))},destroy:function(){A&&A.disconnect(),M=!0},get:function(e=!0){if(e&&L)return L;if(!e&&T)return T;let t=x(P).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=P[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(L=t),e||(T=t),t}}),{slideRegistry:eM}=function(e,t,n,r,i,o){let u,{groupSlides:a}=i,{min:l,max:c}=r;return{slideRegistry:(u=a(o),1===n.length?[o]:e&&"keepSnaps"!==t?u.slice(l,c).map((e,t,n)=>{let r=t===g(n);return t?r?h(g(o)-m(n)[0]+1,m(n)[0]):e:h(m(n[0])+1)}):u)}}(ea,Q,ey,ex,ef,eS),ez=function(e,t,n,r,i,o,u,l){let s={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(p){l&&(o.add(document,"keydown",f,!1),t.forEach((t,f)=>{o.add(t,"focus",t=>{(c(l)||l(p,t))&&function(t){if(new Date().getTime()-d>10)return;u.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));a(o)&&(i.useDuration(0),r.index(o,0),u.emit("slideFocus"))}(f)},s)}))}}}(e,n,eM,eA,eE,eL,u,_),eF={ownerDocument:r,ownerWindow:i,eventHandler:u,containerRect:et,slideRects:en,animation:eC,axis:er,dragHandler:function(e,t,n,r,i,o,u,a,l,s,p,m,g,h,x,w,S,C){let{cross:N,direction:j}=e,k=["INPUT","SELECT","TEXTAREA"],I={passive:!1},D=v(),E=v(),O=b(50,225).constrain(h.measure(20)),A={mouse:300,touch:400},P={mouse:500,touch:600},L=x?43:25,T=!1,M=0,z=0,F=!1,R=!1,B=!1,H=!1;function V(e){if(!y(e,r)&&e.touches.length>=2)return $(e);let t=o.readPoint(e),n=o.readPoint(e,N),u=d(t-M),l=d(n-z);if(!R&&!H&&(!e.cancelable||!(R=u>l)))return $(e);let c=o.pointerMove(e);u>w&&(B=!0),s.useFriction(.3).useDuration(.75),a.start(),i.add(j(c)),e.preventDefault()}function $(e){var t;let n,r,i=p.byDistance(0,!1).index!==m.get(),u=o.pointerUp(e)*(x?P:A)[H?"mouse":"touch"],a=(t=j(u),n=m.add(-1*f(t)),r=p.byDistance(t,!x).distance,x||d(t)<O?r:S&&i?.5*r:p.byIndex(n.get(),0).distance),c=function(e,t){var n,r;if(0===e||0===t||d(e)<=d(t))return 0;let i=(n=d(e),r=d(t),d(n-r));return d(i/e)}(u,a);R=!1,F=!1,E.clear(),s.useDuration(L-10*c).useFriction(.68+c/50),l.distance(a,!x),H=!1,g.emit("pointerUp")}function U(e){B&&(e.stopPropagation(),e.preventDefault(),B=!1)}return{init:function(e){C&&D.add(t,"dragstart",e=>e.preventDefault(),I).add(t,"touchmove",()=>void 0,I).add(t,"touchend",()=>void 0).add(t,"touchstart",a).add(t,"mousedown",a).add(t,"touchcancel",$).add(t,"contextmenu",$).add(t,"click",U,!0);function a(a){(c(C)||C(e,a))&&function(e){let a,l=y(e,r);if((H=l,B=x&&l&&!e.buttons&&T,T=d(i.get()-u.get())>=2,!l||0===e.button)&&(a=e.target.nodeName||"",!k.includes(a))){let r;F=!0,o.pointerDown(e),s.useFriction(0).useDuration(0),i.set(u),r=H?n:t,E.add(r,"touchmove",V,I).add(r,"touchend",$).add(r,"mousemove",V,I).add(r,"mouseup",$),M=o.readPoint(e),z=o.readPoint(e,N),g.emit("pointerDown")}}(a)}},destroy:function(){D.clear(),E.clear()},pointerDown:function(){return F}}}(er,e,r,i,eD,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(y(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),u=i(e)-i(n)>170;return r=e,u&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),u=i(e)-i(n),a=i(e)-i(r)>170,l=t/u;return u&&!a&&d(l)>.1?l:0},readPoint:o}}(er,i),ej,eC,eA,eE,eO,eb,u,eo,q,K,G,Z),eventStore:eL,percentOfView:eo,index:eb,indexPrevious:ew,limit:ev,location:ej,offsetLocation:eI,previousLocation:ek,options:o,resizeHandler:function(e,t,n,r,i,o,u){let a,l,s=[e].concat(r),f=[],p=!1;function m(e){return i.measureSize(u.measure(e))}return{init:function(i){o&&(l=m(e),f=r.map(m),a=new ResizeObserver(n=>{(c(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===e,u=r.indexOf(o.target),a=n?l:f[u];if(d(m(n?e:r[u])-a)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
2{s.forEach(e=>a.observe(e))}))},destroy:function(){p=!0,a&&a.disconnect()}}}(t,u,i,n,er,Y,ee),scrollBody:eE,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),u=i.measure(50),a=b(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",s=d(e[l]-t.get()),f=n.get()-t.get(),p=a.constrain(s/u);n.subtract(f*p),!i&&d(f)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ev,eI,eD,eE,eo),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:o}=b(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&i(n.get())))return;let u=-1*t*e;r.forEach(e=>e.add(u))}}}(eg,ev,eI,[ej,eI,ek,eD]),scrollProgress:eP,scrollSnapList:ey.map(eP.get),scrollSnaps:ey,scrollTarget:eO,scrollTo:eA,slideLooper:function(e,t,n,r,i,o,u,a,l){let c=p(i),s=p(i).reverse(),d=g(m(s,u[0]),n,!1).concat(g(m(c,t-u[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function g(i,u,c){let s=o.map((e,n)=>({start:e-r[n]+.5+u,end:e+t-.5+u}));return i.map(t=>{let r=c?0:-n,i=c?n:0,o=s[t][c?"end":"start"];return{index:t,loopPoint:o,slideLocation:w(-1),translate:S(e,l[t]),target:()=>a.get()>o?r:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(c.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:d}}(er,ei,eg,el,ec,ep,ey,eI,n),slideFocus:ez,slidesHandler:(F=!1,{init:function(e){W&&(z=new MutationObserver(t=>{!F&&(c(W)||W(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),u.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){z&&z.disconnect(),F=!0}}),slidesInView:eT,slideIndexes:eS,slideRegistry:eM,slidesToScroll:ef,target:eD,translate:S(er,t)};return eF}(e,k,I,E,O,n,T);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(U),F([$,...q.map(({options:e})=>e)]).forEach(e=>L.add(e,"change",J)),U.active&&(u.translate.to(u.location.get()),u.animation.init(),u.slidesInView.init(),u.slideFocus.init(Y),u.eventHandler.init(Y),u.resizeHandler.init(Y),u.slidesHandler.init(Y),u.options.loop&&u.slideLooper.loop(),k.offsetParent&&I.length&&u.dragHandler.init(Y),j=P.init(Y,q)))}function J(e,t){let n=Q();X(),K(M({startIndex:n},e),t),T.emit("reInit")}function X(){u.dragHandler.destroy(),u.eventStore.clear(),u.translate.clear(),u.slideLooper.clear(),u.resizeHandler.destroy(),u.slidesHandler.destroy(),u.slidesInView.destroy(),u.animation.destroy(),P.destroy(),L.clear()}function G(e,t,n){U.active&&!V&&(u.scrollBody.useBaseFriction().useDuration(!0===t?0:U.duration),u.scrollTo.index(e,n||0))}function Q(){return u.index.get()}let Y={canScrollNext:function(){return u.index.add(1).get()!==Q()},canScrollPrev:function(){return u.index.add(-1).get()!==Q()},containerNode:function(){return k},internalEngine:function(){return u},destroy:function(){V||(V=!0,L.clear(),X(),T.emit("destroy"),T.clear())},off:B,on:R,emit:H,plugins:function(){return j},previousScrollSnap:function(){return u.indexPrevious.get()},reInit:J,rootNode:function(){return e},scrollNext:function(e){G(u.index.add(1).get(),e,-1)},scrollPrev:function(e){G(u.index.add(-1).get(),e,1)},scrollProgress:function(){return u.scrollProgress.get(u.location.get())},scrollSnapList:function(){return u.scrollSnapList}
2,scrollTo:G,selectedScrollSnap:Q,slideNodes:function(){return I},slidesInView:function(){return u.slidesInView.get()},slidesNotInView:function(){return u.slidesInView.get(!1)}};return K(t,n),setTimeout(()=>T.emit("init"),0),Y}function j(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[a,l]=(0,r.useState)(),[c,s]=(0,r.useState)(),d=(0,r.useCallback)(()=>{a&&a.reInit(n.current,i.current)},[a]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,d())},[e,d]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=u(e),r=u(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),(0,r.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&c){N.globalOptions=j.globalOptions;let e=N(c,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),[s,a]}N.globalOptions=void 0,j.globalOptions=void 0;var k=e.i(405048),I=e.i(549838),D=e.i(844753);let E=(0,r.createContext)(null),O=()=>{let e=(0,r.useContext)(E);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e},A=(0,r.forwardRef)(({orientation:e="horizontal",opts:n,setApi:i,plugins:o,className:u,children:a,...l},c)=>{let[s,d]=j({...n,axis:"horizontal"===e?"x":"y"},o),[f,p]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),[h,x]=(0,r.useState)(0),[y,v]=(0,r.useState)(0),b=(0,r.useCallback)(e=>{e&&(p(e.canScrollPrev()),g(e.canScrollNext()),x(e.selectedScrollSnap()),v(e.scrollSnapList().length))},[]),w=(0,r.useCallback)(()=>{d?.scrollPrev()},[d]),S=(0,r.useCallback)(()=>{d?.scrollNext()},[d]),C=(0,r.useCallback)(e=>{d?.scrollTo(e)},[d]),N=(0,r.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),S())},[w,S]);return(0,r.useEffect)(()=>{d&&i&&i(d)},[d,i]),(0,r.useEffect)(()=>{if(d)return b(d),d.on("reInit",b),d.on("select",b),()=>{d?.off("select",b)}},[d,b]),(0,t.jsx)(E.Provider,{value:{carouselRef:s,api:d,opts:n,orientation:e||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:S,scrollToIndex:C,canScrollPrev:f,canScrollNext:m,selectedIndex:h,totalSlides:y},children:(0,t.jsx)("div",{ref:c,onKeyDownCapture:N,className:(0,I.cn)("relative",u),role:"region","aria-roledescription":"carousel",...l,children:a})})});A.displayName="Carousel";let P=(0,r.forwardRef)(({className:e,...n},r)=>{let{carouselRef:i,orientation:o}=O();return(0,t.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:r,className:(0,I.cn)("flex","horizontal"===o?"gap-5 lg:px-4":"-mt-4 flex-col",e),...n})})});P.displayName="CarouselContent";let L=(0,r.forwardRef)(({className:e,...n},r)=>{let{orientation:i}=O();return(0,t.jsx)("div",{ref:r,role:"group","aria-roledescription":"slide",className:(0,I.cn)("flex min-w-0 shrink-0 grow-0 basis-full justify-center","horizontal"===i?"pl-0":"pt-4",e),...n})});L.displayName="CarouselItem";let T=(0,r.forwardRef)(({className:e,variant:r="outline",size:i="icon",displayType:o,...u},a)=>{let{orientation:l,scrollPrev:c,canScrollPrev:s}=O();return(0,t.jsxs)(k.Button,{ref:a,variant:r,size:i,className:(0,I.cn)("absolute h-10 w-10 rounded-sm","review"===o?"":"horizontal"===l?"top-1/2 left-0 -translate-y-1/2 lg:-left-12":"-top-6 left-1/2 -translate-x-1/2 rotate-90",e,!s&&"hidden"),disabled:!s,onClick:c,...u,children:[(0,t.jsx)(n.ArrowLeftIcon,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});T.displayName="CarouselPrevious";let M=(0,r.forwardRef)(({className:e,variant:r="outline",size:i="icon",displayType:o,...u},a)=>{let{orientation:l,scrollNext:c,canScrollNext:s}=O();return(0,t.jsxs)(k.Button,{ref:a,variant:r,size:i,className:(0,I.cn)("absolute h-10 w-10 rounded-sm","review"===o?"":"horizontal"===l?"top-1/2 right-0 -translate-y-1/2 lg:-right-12":"-bottom-10 left-1/2 -translate-x-1/2 rotate-90",e,!s&&"hidden"),disabled:!s,onClick:c,...u,children:[(0,t.jsx)(n.ArrowRightIcon,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});M.displayName="CarouselNext",e.s(["Carousel",0,A,"CarouselContent",0,P,"CarouselDotNavigation",0,({className:e})=>{let{scrollToIndex:n,selectedIndex:r,totalSlides:i}=O(),o=(0,D.useTranslations)("ProductDetails.imageGallery");return i<=1?null:(0,t.jsx)("div",{className:(0,I.cn)(e),role:"group",children:Array.from({length:i}).map((e,u)=>(0,t.jsx)("button",{className:(0,I.cn)("h-1.5 w-1.5 rounded-full transition-all",u===r?"bg-primary":"bg-primary/30"),onClick:()=>n(u),"aria-label":`${o("imageMOfN",{current:u+1,max:i})}`},u))})},"CarouselItem",0,L,"CarouselNext",0,M,"CarouselPrevious",0,T],451851)}]);
3
4//# debugId=2ae98e80-2df5-3506-aa2c-ac4da8dd8642
5//# sourceMappingURL=10ovqe051tkeg.js.map

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.