1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4009],{77576:(e,t,n)=>{n.d(t,{Z:()=>P});var o=n(67294);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function r(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let o=e[n],a=t[n];return"function"==typeof o?`${o}`==`${a}`:i(o)&&i(a)?r(o,a):o===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function p(e){return Math.sign(e)}function m(e){return h(e).map(Number)}function f(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function h(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function x(e,t){let n=d(e-t);function o(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return o(n)?n<e?e:t:n},reachedAny:o,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 b(){let e=[],t={add:function(n,o,i,r={passive:!0}){return n.addEventListener(o,i,r),e.push(()=>n.removeEventListener(o,i,r)),t},clear:function(){e=e.filter(e=>e())}};return t}function y(e){let t=e;function n(e){return s(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 w(e,t,n){let o="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=n.style,r=!1;return{clear:function(){!r&&(i.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){r||(i.transform=o(t.apply(e)))},toggleActive:function(e){r=!e}}}let $={align:"center",axis:"x",container:null,slides:null,containScroll:null,direction:"ltr",slidesToScroll:1,breakpoints:{},dragFree:!1,dragThreshold:10,inViewThreshold:0,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function C(e,t,n){let o,i,r,a,P,S,k,W,M=e.ownerDocument,O=M.defaultView,j=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(h(n).forEach(o=>{let i=t[o],r=n[o],a=u(i)&&u(r);t[o]=a?e(i,r):r}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let o=n.breakpoints||{},i=h(o).filter(t=>e.matchMedia(t).matches).map(e=>o[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(O),I=(W=[],{init:function(e,t){return(W=e.filter(({options:e})=>!1!==j.optionsAtMedia(e).active)).forEach(e=>e.init(t,j)),e.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){W=W.filter(e=>e.destroy())}}),_=b(),N=b(),D=(i={},r={init:function(e){o=e},emit:function(e){return(i[e]||[]).forEach(t=>t(o,e)),r},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),r},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),r}}),{animationRealms:E}=C,{mergeOptions:A,optionsAtMedia:L,optionsMediaQueries:Z}=j,{on:T,off:R,emit:H}=D,B=!1,z=A($,C.globalOptions),F=A(z),q=[];function V(t,n){if(B)return;let o=E.find(e=>e.window===O),i=o||function(e){let t=1e3/60,n=[],o=null,i=0,r=0;function a(s){o||(o=s);let l=s-o;for(o=s,i+=l;i>=t;)n.forEach(({animation:e})=>e.update()),i-=t;let c=d(i/t);n.forEach(({animation:e})=>e.render(c)),r&&e.requestAnimationFrame(a)}return{start:function(t){n.includes(t)||n.push(t),r||(r=e.requestAnimationFrame(a))},stop:function(t){(n=n.filter(e=>e!==t)).length||(e.cancelAnimationFrame(r),o=null,i=0,r=0)},reset:function(){o=null,i=0},window:e}}(O);if(o||E.push(i),F=L(z=A(z,t)),q=n||q,!function(){let{container:t,slides:n}=F;S=(l(t)?e.querySelector(t):t)||e.children[0];let o=l(n)?S.querySelectorAll(n):n;k=[].slice.call(o||S.children)}(),a=function(e,t,n,o,i,r,a,l){var u,h;
1let $,C,P,S,k,W,M,O,j,I,_,N,D,E,A,{align:L,axis:Z,direction:T,startIndex:R,inViewThreshold:H,loop:B,duration:z,dragFree:F,dragThreshold:q,slidesToScroll:V,skipSnaps:G,containScroll:X}=r,Y=t.getBoundingClientRect(),U=n.map(e=>e.getBoundingClientRect()),J=(C="rtl"===T?-1:1,{apply:function(e){return e*C}}),K=(S="y"==(P="y"===Z?"y":"x")?"top":"rtl"===T?"right":"left",k="y"===P?"bottom":"rtl"===T?"left":"right",{scroll:P,cross:"y"===Z?"x":"y",startEdge:S,endEdge:k,measureSize:function(e){let{width:t,height:n}=e;return"x"===P?t:n}}),Q=K.measureSize(Y),ee={measure:function(e){return e/100*Q}},et=(u=L,h=Q,$={start:function(){return 0},center:function(e){return(h-e)/2},end:function(e){return h-e}},{measure:function(e){return s(u)?h*Number(u):$[u](e)}}),en=!B&&!!X,{slideSizes:eo,slideSizesWithGaps:ei}=function(e,t,n,o,i,r){let{measureSize:a,startEdge:s,endEdge:l}=e,c=n[0]&&i,u=function(){if(!c)return 0;let e=n[0];return d(t[s]-e[s])}(),p=c?parseFloat(r.getComputedStyle(f(o)).getPropertyValue(`margin-${l}`)):0,m=n.map(a),h=n.map((e,t,n)=>{let o=t===g(n);return t?o?m[t]+p:n[t+1][s]-e[s]:m[t]+u}).map(d);return{slideSizes:m,slideSizesWithGaps:h}}(K,Y,U,n,B||!!X,i),er=(W=s(V),{groupSlides:function(e){return W?m(e).filter(e=>e%V==0).map(t=>e.slice(t,t+V)):m(e).reduce((e,t)=>{let n=ei.slice(f(e),t+1).reduce((e,t)=>e+t,0);return!t||n>Q?e.concat(t):e},[]).map((t,n,o)=>e.slice(t,o[n+1]))}}),{snaps:ea,snapsAligned:es}=function(e,t,n,o,i,r,a){let s,{startEdge:l,endEdge:c}=e,{groupSlides:u}=r,p=u(o).map(e=>f(e)[c]-e[0][l]).map(d).map(t.measure),m=o.map(e=>n[l]-e[l]).map(e=>-d(e)),h=(s=f(m)-f(i),u(m).map(e=>e[0]).map((e,t,n)=>{let o=t===g(n);return a&&!t?0:a&&o?s:e+p[t]}));return{snaps:m,snapsAligned:h}}(K,et,Y,U,ei,er,en),el=-f(ea)+f(ei),{snapsContained:ec}=(M=x(-el+Q,es[0]),O=es.map(M.constrain).map(e=>parseFloat(e.toFixed(3))),{snapsContained:function(){let e,t;if(el<=Q)return[M.max];if("keepSnaps"===X)return O;let{min:n,max:o}=(e=O[0],t=f(O),x(O.lastIndexOf(e),O.indexOf(t)+1));return O.slice(n,o)}()}),eu=en?ec:es,{limit:ed}=(j=eu[0],{limit:x(B?j-el:f(eu),j)}),ep=function e(t,n,o){let{constrain:i}=x(0,t),r=t+1,a=s(n);function s(e){return o?d((r+e)%r):i(e)}function l(){return e(t,a,o)}let c={get:function(){return a}
1,set:function(e){return a=s(e),c},add:function(e){return l().set(a+e)},clone:l};return c}(g(eu),R,B),em=ep.clone(),ef=m(n),eg={update:()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,scrollLooper:o,slideLooper:i,eventHandler:r,animation:a,options:{loop:s}})=>{let l=e.pointerDown();s||n.constrain(l);let c=t.seek().settled();c&&!l&&(a.stop(),r.emit("settle")),c||r.emit("scroll"),s&&(o.loop(t.direction()),i.loop())})(eC),render:e=>(({scrollBody:e,translate:t,location:n},o)=>{let i=e.velocity(),r=n.get()-i+i*o;t.to(r)})(eC,e),start:()=>l.start(eC),stop:()=>l.stop(eC)},eh=eu[ep.get()],ev=y(eh),ex=y(eh),eb=function(e,t,n,o){let i=!0,r=0,a=0,s=n,l=.68;function c(e){return s=e,m}function u(e){return l=e,m}let m={direction:function(){return a},seek:function(){let n=t.get()-e.get();return l&&s?(r+=n/s,r*=l,e.add(r)):(r=0,e.set(t)),a=p(r||n),i=.001>d(n),m},settled:function(){return i&&e.set(t),i},useBaseFriction:function(){return u(.68)},useBaseDuration:function(){return c(n)},useFriction:u,useDuration:c,velocity:function(){return r}};return m}(ev,ex,z,0),ey=function(e,t,n,o,i){let{reachedAny:r,removeOffset:a,constrain:s}=o;function l(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function c(t,o){let i=[t,t+n,t-n];return e?o?l(i.filter(e=>p(e)===o)):l(i):i[0]}return{byDistance:function(n,o){let l=i.get()+n,{index:u,distance:p}=function(n){let o=e?a(n):s(n),{index:i}=t.map(e=>e-o).map(e=>c(e,0)).map((e,t)=>({diff:e,index:t})).sort((e,t)=>d(e.diff)-d(t.diff))[0];return{index:i,distance:o}}(l),m=!e&&r(l);if(!o||m)return{index:u,distance:n};let f=n+c(t[u]-p,0);return{index:u,distance:f}},byIndex:function(e,n){let o=c(t[e]-i.get(),n);return{index:e,distance:o}},shortcut:c}}(B,eu,el,ed,ex),ew=function(e,t,n,o,i,r){function a(o){let a=o.distance,s=o.index!==t.get();a&&(e.start(),i.add(a)),s&&(n.set(t.get()),t.set(o.index),r.emit("select"))}return{distance:function(e,t){a(o.byDistance(e,t))},index:function(e,n){let i=t.clone().set(e);a(o.byIndex(i.get(),n))}}}(eg,ep,em,ey,ex,a),e$=function(e,t,n,o,i,r,a){let{removeOffset:s,constrain:l}=i,c=r?[0,t,-t]:[0],u=d(c,a);function d(t,i){let r,a=t||c,s=(r=i||0,n.map(e=>x(.5,e-.5).constrain(e*r)));return a.reduce((t,i)=>{let r=o.map((t,o)=>({start:t-n[o]+s[o]+i,end:t+e-s[o]+i,index:o}));return t.concat(r)},[])}return{check:function(e,t){let n=r?s(e):l(e);return(t||u).reduce((e,t)=>{let{index:o,start:i,end:r}=t;return!e.includes(o)&&i<n&&r>n?e.concat([o]):e},[])},findSlideBounds:d}}(Q,el,eo,ea,ed,B,H),eC={ownerDocument:o,ownerWindow:i,eventHandler:a,containerRect:Y,slideRects:U,animation:eg,axis:K,direction:J,dragHandler:function(e,t,n,o,i,r,a,s,l,u,m,f,g,h,y,w,$,C,P){let{cross:S}=e,k=["INPUT","SELECT","TEXTAREA"],W={passive:!1},M=b(),O=b(),j=x(50,225).constrain(y.measure(20)),I={mouse:300,touch:400},_={mouse:500,touch:600},N=w?43:25,D=!1,E=0,A=0,L=!1,Z=!1,T=!1,R=!1;function H(e){let n=a.readPoint(e),o=a.readPoint(e,S),i=d(n-E),s=d(o-A);if(!Z&&!R&&(!e.cancelable||!(Z=i>s)))return B(e);let c=a.pointerMove(e);i>$&&(T=!0),m.useFriction(.3).useDuration(1),l.start(),r.add(t.apply(c)),e.preventDefault()}function B(e){var n;let o,i,r=f.byDistance(0,!1).index!==g.get(),s=a.pointerUp(e)*(w?_:I)[R?"mouse":"touch"],l=(n=t.apply(s),o=g.add(-1*p(n)),i=f.byDistance(n,!w).distance,w||d(n)<j?i:C&&r?.5*i:f.byIndex(o.get(),0).distance),c=function(e,t){var n,o;if(0===e||0===t||d(e)<=d(t))return 0;let i=(n=d(e),o=d(t),d(n-o));return d(i/e)}(s,l);Z=!1,L=!1,O.clear(),m.useDuration(N-10*c).useFriction(.68+c/50),u.distance(l,!w),R=!1,h.emit("pointerUp")}function z(e){T&&(e.stopPropagation(),e.preventDefault())}return{init:function(e,t){t&&M.add(n,"dragstart",e=>e.preventDefault(),W).add(n,"touchmove",()=>void 0,W).add(n,"touchend",()=>void 0).add(n,"touchstart",l).add(n,"mousedown",l).add(n,"touchcancel",B).add(n,"contextmenu",B).add(n,"click",z,!0);function l(l){(c(t)||t(e,l))&&function(e){let t,l=v(e,i);if((R=l,!l||0===e.button)&&(t=e.target.nodeName||"",!k.includes(t))){let t;T=w&&l&&!e.buttons&&D,D=d(r.get()-s.get())>=2,L=!0,a.pointerDown(e),m.useFriction(0).useDuration(0),r.set(s),t=R?o:n,O.add(t,"touchmove",H,W).add(t,"touchend",B).add(t,"mousemove",H,W).add(t,"mouseup",B),E=a.readPoint(e),A=a.readPoint(e,S),h.emit
1("pointerDown")}}(l)}},pointerDown:function(){return L},destroy:function(){M.clear(),O.clear()}}}(K,J,e,o,i,ex,function(e,t){let n,o;function i(e){return e.timeStamp}function r(n,o){let i=o||e.scroll,r=`client${"x"===i?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[r]}return{pointerDown:function(e){return n=e,o=e,r(e)},pointerMove:function(e){let t=r(e)-r(o),a=i(e)-i(n)>170;return o=e,a&&(n=e),t},pointerUp:function(e){if(!n||!o)return 0;let t=r(o)-r(n),a=i(e)-i(n),s=i(e)-i(o)>170,l=t/a;return a&&!s&&d(l)>.1?l:0},readPoint:r}}(K,i),ev,eg,ew,eb,ey,ep,a,ee,F,q,G,0),eventStore:b(),percentOfView:ee,index:ep,indexPrevious:em,limit:ed,location:ev,options:r,resizeHandler:function(e,t,n,o,i){let r,a,s=[],l=!1;function u(e){return i.measureSize(e.getBoundingClientRect())}return{init:function(i,d){d&&(a=u(e),s=o.map(u),r=new ResizeObserver(r=>{!l&&(c(d)||d(i,r))&&function(r){for(let l of r){let r=l.target===e,c=o.indexOf(l.target);if((r?a:s[c])!==u(r?e:o[c])){n.requestAnimationFrame(()=>{i.reInit(),t.emit("resize")});break}}}(r)}),[e].concat(o).forEach(e=>r.observe(e)))},destroy:function(){r&&r.disconnect(),l=!0}}}(t,a,i,n,K),scrollBody:eb,scrollBounds:(I=ee.measure(10),_=ee.measure(50),N=x(.1,.99),D=!1,{constrain:function(e){if(!(!D&&ed.reachedAny(ex.get())&&ed.reachedAny(ev.get())&&1))return;let t=ed.reachedMin(ev.get())?"min":"max",n=d(ed[t]-ev.get()),o=ex.get()-ev.get(),i=N.constrain(n/_);ex.subtract(o*i),!e&&d(o)<I&&(ex.set(ed.constrain(ex.get())),eb.useDuration(25).useBaseFriction())},toggleActive:function(e){D=!e}}),scrollLooper:function(e,t,n,o){let{reachedMin:i,reachedMax:r}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?r(n.get()):-1===t&&i(n.get())))return;let a=-1*t*e;o.forEach(e=>e.add(a))}}}(el,ed,ev,[ev,ex]),scrollProgress:function(e){let{max:t,length:n}=e;return{get:function(e){return-((e-t)/n)}}}(ed),scrollSnaps:eu,scrollTarget:ey,scrollTo:ew,slideLooper:function(e,t,n,o,i,r,a,s,l){let c=m(i),u=m(i).reverse(),d=g(f(u,r[0]-1),"end").concat(g(f(c,n-r[0]-1),"start"));function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function f(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function g(n,i){let r="start"===i,c=a.findSlideBounds([r?-o:o]);return n.map(n=>{let i=r?0:-o,a=r?o:0,u=c.filter(e=>e.index===n)[0][r?"end":"start"],d=y(-1),p=w(e,t,l[n]);return{index:n,location:d,translate:p,target:()=>s.get()>u?i:a}})}return{canLoop:function(){return d.every(({index:e})=>.1>=p(c.filter(t=>t!==e),n))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,location:o}=e,i=t();i!==o.get()&&(n.to(i),o.set(i))})},loopPoints:d}}(K,J,Q,el,ei,eu,e$,ev,n),slidesHandler:(A=!1,{init:function(e,n){
1n&&(E=new MutationObserver(t=>{!A&&(c(n)||n(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){E&&E.disconnect(),A=!0}}),slidesInView:e$,slideIndexes:ef,slidesToScroll:er,target:ex,translate:w(K,J,t)};return eC}(e,S,k,M,O,F,D,i),Z([z,...q.map(({options:e})=>e)]).forEach(e=>_.add(e,"change",G)),F.active){if(a.translate.to(a.location.get()),a.eventHandler.init(K),a.resizeHandler.init(K,F.watchResize),a.slidesHandler.init(K,F.watchSlides),N.add(M,"visibilitychange",()=>{M.hidden&&i.reset()}),F.loop){if(!a.slideLooper.canLoop()){X(),V({loop:!1},n),z=A(z,{loop:!0});return}a.slideLooper.loop()}S.offsetParent&&k.length&&a.dragHandler.init(K,F.watchDrag),P=I.init(q,K)}}function G(e,t){let n=J();X(),V(A({startIndex:n},e),t),D.emit("reInit")}function X(){a.dragHandler.destroy(),a.animation.stop(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),I.destroy(),_.clear(),N.clear()}function Y(e){let t=a[e?"target":"location"].get(),n=F.loop?"removeOffset":"constrain";return a.slidesInView.check(a.limit[n](t))}function U(e,t,n){F.active&&!B&&(a.scrollBody.useBaseFriction().useDuration(t?0:F.duration),a.scrollTo.index(e,n||0))}function J(){return a.index.get()}let K={canScrollNext:function(){return a.index.add(1).get()!==J()},canScrollPrev:function(){return a.index.add(-1).get()!==J()},containerNode:function(){return S},internalEngine:function(){return a},destroy:function(){B||(B=!0,_.clear(),X(),D.emit("destroy"))},off:R,on:T,emit:H,plugins:function(){return P},previousScrollSnap:function(){return a.indexPrevious.get()},reInit:G,rootNode:function(){return e},scrollNext:function(e){U(a.index.add(1).get(),!0===e,-1)},scrollPrev:function(e){U(a.index.add(-1).get(),!0===e,1)},scrollProgress:function(){return a.scrollProgress.get(a.location.get())},scrollSnapList:function(){return a.scrollSnaps.map(a.scrollProgress.get)},scrollTo:U,selectedScrollSnap:J,slideNodes:function(){return k},slidesInView:Y,slidesNotInView:function(e){let t=Y(e);return a.slideIndexes.filter(e=>!t.includes(e))}};return V(t,n),setTimeout(()=>D.emit("init"),0),K}function P(e={},t=[]){let n=(0,o.useRef)(e),i=(0,o.useRef)(t),[s,l]=(0,o.useState)(),[c,u]=(0,o.useState)(),d=(0,o.useCallback)(()=>{s&&s.reInit(n.current,i.current)},[s]);return(0,o.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&c){C.globalOptions=P.globalOptions;let e=C(c,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),(0,o.useEffect)(()=>{r(n.current,e)||(n.current=e,d())},[e,d]),(0,o.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),o=a(t);return n.every((e,t)=>r(e,o[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),[u,s]}C.animationRealms=[],C.globalOptions=void 0,P.globalOptions=void 0},28665:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(85893),i=n(29163),r=n(55977),a=n(29039),s=n(51667);let l=i.ZP.div.withConfig({displayName:"ReminderContainer",componentId:"-__sc-8c75ef51-0"})(({theme:e,backgroundColors:t,animationColors:n,shouldAnimate:o})=>{var i;return` 2 display: flex; 3 font-size: ${e.typography.text.fontSM.fontSize}; 4 line-height: ${e.typography.text.fontSM.lineHeight}; 5 padding: ${r.W0.sm}; 6 margin-bottom:${r.W0.xs}; 7 background-color: ${e.colors[t.parent][t.child]}; 8 ${(0,a.E0)()}; 9 10 ${o&&n?` 11 ${i={animationName:"noticeMessagePulse",color:e.colors[n.parent][n.child]},` 12 animation: ${i.animationName} 2000ms infinite; 13 ${(0,a.oS)(i.animationName,` 14 0% { 15 box-shadow: 0 0 0 0 ${i.color}66; 16 } 17 70% { 18 box-shadow: 0 0 0 8px ${i.color}00; 19 } 20 100% { 21 box-shadow: 0 0 0 0 ${i.color}00; 22 } 23 `)}; 24`} 25 `:""} 26 `}),c=(0,i.ZP)(s.pA).withConfig({displayName:"ReminderIconLoader",componentId:"-__sc-8c75ef51-1"})(["flex-basis:",";flex-shrink:0;justify-content:center;"],r.W0.md),u=i.ZP.span.withConfig({displayName:"ReminderText",componentId:"-__sc-8c75ef51-2"})(["padding-left:",";flex:1;"],r.W0.sm);var d=n(67294);let p=e=>
26{let[t,n]=d.useState(!!e.pulseAnimation);return d.useEffect(()=>{if(!e.pulseAnimation||"infinite"===e.pulseAnimation.duration)return;let t=setTimeout(()=>{n(!1)},7e3);return()=>clearTimeout(t)}),(0,o.jsxs)(l,{backgroundColors:e.backgroundColors,shouldAnimate:t,animationColors:e.pulseAnimation?.color,className:e.className,"data-testid":e["data-testid"],children:[(0,o.jsx)(c,{name:e.iconName,fillColor:e.iconColor}),(0,o.jsx)(u,{role:"alert",children:e.message})]})}},52207:(e,t,n)=>{n.r(t),n.d(t,{default:()=>H});var o=n(85893),i=n(67294),r=n(29163),a=n(55977),s=n(67979),l=n(1849),c=n(28665),u=n(42358),d=n(64015),p=n(28880),m=n(10205);let f=`-${a.W0.xl}`,g=`-${2*(0,d.Z)("MissedPromotionModalDetails",a.W0.xl)}px`,h=r.ZP.div.withConfig({displayName:"CarouselWrapperDiv",componentId:"-__sc-fded2511-0"})(["display:flex;flex-direction:column;justify-content:space-between;height:100%;width:100%;text-align:center;"]),v=(0,r.ZP)(p.Z).withConfig({displayName:"MisssedCartPromotionCarouselV2",componentId:"-__sc-fded2511-1"})(({location:e,isCarouselRedesignOn:t})=>` 27 28 ${(0,m.pl)(e,"arrow-offset")}: ${a.W0.sm}; 29 ${(0,m.pl)(e,"spacing")}: ${a.W0.lg}; 30 ${(0,m.pl)(e,"viewport-height")}: ${t?`calc(100% - ${a.W0.xs}) `:"100%"}; 31 `),x=r.ZP.div.withConfig({displayName:"MissedPromotionModalWrapper",componentId:"-__sc-fded2511-2"})(({isCarousel:e})=>` 32 position: relative; 33 margin-top: ${f}; 34 padding-top: ${a.W0.xl}; 35 ${(0,s.Z)("md",{noLower:!0})} { 36 display: flex; 37 height: 100%; 38 width: 100%; 39 justify-content: center; 40 margin-top: ${g}; 41 position:fixed; 42 } 43 ${(0,s.Z)("lg")} 44 max-height: 850px; 45 ${e?`margin-bottom:${a.W0.xxs};`:""} 46`),b=(0,r.ZP)(u.bS).withConfig({displayName:"CloseModalButton",componentId:"-__sc-fded2511-3"})(({theme:e})=>` 47 position: absolute; 48 top: 0; 49 right: 0; 50 padding: ${a.W0.sm}; 51 svg { 52 fill: ${e.colors.uiColors.greyscale4}; 53 } 54 z-index: ${l.CJ}; 55 `),y=(0,r.ZP)(c.Z).withConfig({displayName:"MissedPromotionErrorMessage",componentId:"-__sc-fded2511-4"})(({theme:e})=>` 56 margin: auto ${a.W0.lg}; 57 font-size: ${e.typography.text.fontXS.fontSize}; 58 line-height: ${e.typography.text.fontXS.lineHeight}; 59 font-weight: ${e.typography.weights.bold}; 60 height: fit-content; 61 svg { 62 fill: ${e.colors.uiColors.warn}; 63 } 64 ${(0,s.Z)("md",{noUpper:!0})} { 65 margin: 0 ${a.W0.lg} ${a.W0.lg}; 66 } 67 `);var w=n(86706),$=n(15158),C=n(73342),P=n(29039),S=n(46112),k=n(69272);let W="520px",M=r.ZP.div.withConfig({displayName:"MissedPromotionDetailsWrapper",componentId:"-__sc-f3574905-3"})(({isCarousel:e})=>` 68 display: flex; 69 flex-direction: column; 70 justify-content: center; 71 align-items: center; 72 height: 100%; 73 width: 100%; 74 75 ${(0,s.Z)("md",{noUpper:!0})} { 76 ${e?"":"min-width: 600px"}; 77 } 78`),O=r.ZP.div.withConfig({displayName:"PromotionIconWrapper",componentId:"-__sc-f3574905-5"})(({theme:e})=>` 79 display: flex; 80 align-items: center; 81 justify-content: center; 82 background-color: ${e.colors.brandColors.tertiary1}; 83 width: ${a.W0.xxl}; 84 height: ${a.W0.xxl}; 85 margin: ${a.W0.sm} auto; 86 ${(0,P.E0)("100%")}; 87`),j=(0,r.ZP)(k.G).withConfig({displayName:"PromotionIcon",componentId:"-__sc-f3574905-6"})(({theme:e})=>` 88 svg { 89 fill: ${e.colors.uiColors.greyscale6} 90 } 91`),I=r.ZP.h2.withConfig({displayName:"PromotionTitle",componentId:"-__sc-f3574905-7"})(({theme:e})=>` 92 text-align:center; 93 margin: 0 auto ${a.W0.vsm}; 94 padding: 0 ${a.W0.xxl}; 95 max-width: ${W}; 96 font-size: ${e.typography.text.fontLG.fontSize}; 97`),_=r.ZP.div.withConfig({displayName:"PromotionContentWrapper",componentId:"-__sc-f3574905-8"})(["display:grid;grid-template-rows:1fr 1fr 1fr;justify-content:center;"]),N=r.ZP.div.withConfig({displayName:"AdditionalInformation",componentId:"-__sc-f3574905-9"})(({theme:e})=>` 98 font-size: ${e.typography.text.fontMD.fontSize}; 99 color: ${e.colors.uiColors.greyscale4}; 100 margin-bottom:${a.W0.xxs}; 101 text-align: center; 102`),D=r.ZP.div.withConfig({displayName:"TermAndConditions",componentId:"-__sc-f3574905-10"})(({theme:e})=>` 103 font-size: ${e.typography.text.fontXS.fontSize}; 104 color: ${e.colors.uiColors.greyscale4}; 105 text-align: center; 106`),E=r.ZP.div.withConfig({displayName:"PromotionDescription",componentId:"-__sc-f3574905-11"})(({theme:e})=>` 107 font-size: ${e.typography.text.fontMD.fontSize}; 108 color: ${e.colors.uiColors.greyscale5}; 109 text-align: center; 110 margin: 0 auto; 111 padding: 0 ${a.W0.lg}; 112 max-width: ${W}; 113 margin-bottom:${a.W0.sm}; 114`);a.W0.md,a.W0.sm,(0,s.Z)("md",{noUpper:!0}),a.W0.md;let A=r.ZP.div.withConfig({displayName:"PromotionProgressBarWrapper",componentId:"-__sc-f3574905-13"})(({theme:e,isCarousel:t})=>` 115 position: sticky; 116 bottom: 0; 117 left: 0; 118 background-color: ${e.colors.uiColors.successLight}; 119 width: 100%; 120 margin-top: ${a.W0.sm}; 121 display:flex; 122 flex-direction: column; 123 align-items: center; 124 justify-content: center; 125 padding: ${a.W0.sm} ${a.W0.xxl}; 126 font-size: ${e.typography.text.fontSM.fontSize}; 127 128 ${(0,s.Z)("md",{noLower:!0})} 129 { 130 position: ${t?"sticky":"fixed"}; 131 } 132 `),L=(0,r.ZP)(S.k).withConfig({displayName:"PromotionProgressBar",componentId:"-__sc-f3574905-14"})(({theme:e})=>` 133 margin-top: ${a.W0.xs}; 134 background-color: ${e.colors.uiColors.greyscale1}; 135 `);var Z=n(7227);let T=e=>{let{index:t,currentPromotion:n,isCarousel:i}=e;return n?(0,$.Z)(()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsxs)(M,{isCarousel:i,"data-testid":`MissedCartPromotionDetail
135s-wrapper-testId_${t}`,children:[(0,o.jsx)(O,{children:(0,o.jsx)(j,{name:"PromoOutline",size:a.W0.lg})}),(0,o.jsx)(I,{children:n.name}),(0,o.jsxs)(_,{children:[(0,o.jsx)(E,{children:n.description}),(0,o.jsx)(N,{children:n.additionalInformation}),(0,o.jsx)(D,{children:n.termAndConditions})]})]})}),(0,o.jsx)("div",{children:(0,o.jsxs)(A,{isCarousel:i,children:[!!n.spendRequired&&(0,o.jsx)(Z.v,{spendRequired:n.spendRequired}),(0,o.jsx)(L,{percentage:n.percentageOfCompletion})]})})]}),{componentName:"CartMissedPromotionSection"}):null};var R=n(37593);let H=(0,w.$j)(e=>({promotions:e.promotions.missedPromotions.cartMissPromotions||[],activePromotionId:e.ui.globalModal.props?e.ui.globalModal.props.missedPromotionId:""}))(e=>{let t,{t:n}=i.useContext(C.q),r=(0,R.c)("dev-carousel-redesign"),{promotions:a,activePromotionId:s}=e;if(!a||a.length<=0)return null;let l=a.length>1;return a.sort(function(e,t){return e.promotionRetailerId===s?-1:+(t.promotionRetailerId===s)}),t=l?(0,o.jsx)(v,{location:"MissedCartPromotionModalCarousel",slideStep:{desktop:1,mobile:1,tablet:1},slideOffset:{desktop:0,mobile:0,tablet:0},pagination:r?{desktop:!0,mobile:!0,tablet:!0}:{desktop:!0,mobile:!1,tablet:!1},disableLazyLoad:!0,hideNavigationOnDisable:!0,apiOptions:{loop:!1},isCarouselRedesignOn:r,carouselType:r?"product-carousel":void 0,"aria-label":n("carousel.ariaLabels.component.cartMissedPromotions"),children:a.map((e,t)=>(0,o.jsx)(h,{children:(0,o.jsx)(T,{index:t,currentPromotion:e,isCarousel:!0})},e.promotionId))}):(0,o.jsx)(T,{index:0,currentPromotion:a[0],isCarousel:!1}),(0,$.Z)(()=>(0,o.jsxs)(x,{isCarousel:l,"data-testid":"MissedCartPromotionModal-wrapper-testId",children:[(0,o.jsx)(b,{handleClick:()=>e.toggleModal(),icon:"Close",buttonStyle:"iconTransparent",ariaLabel:n("modals.ariaLabel.close"),tabIndex:0,"data-testid":"MissedCartPromotionCloseModal-button-testId"}),t]}),{componentName:"CartMissedPromotionModalDetails",fallBack:()=>(0,o.jsx)(y,{iconName:"Warning",backgroundColors:{parent:"uiColors",child:"warnLight"},message:n("reviewCart.missedProductPromotions.modal.errorMessage")})})})},48553:(e,t,n)=>{n.d(t,{Kr:()=>m,PP:()=>p,RS:()=>u,Uo:()=>a,Ys:()=>i,ZD:()=>f,dr:()=>o,ds:()=>s,i:()=>d,np:()=>c,pk:()=>l,uD:()=>r});let o="missedPromotionModal-wrapper-testId",i="missedPromotionCloseModal-button-testId",r="missedPromotionSpinner-wrapper-testId",a="missedPromotionDetails-wrapper-testId",s="fulfilledPromotions-message-testId",l="promotionDetailsModal-stencils-testId",c="missedPromotionError-message-testId",u="promotionProgressBarTitle-moreItems-testId",d="promotionProgressBarTitle-moreIWeight-testId",p="promotionProgressBarTitle-moreSpend-testId",m="promotionItemsWrapper-moreItems-testId",f="promotionItemsWrapper-moreSpend-testId"},4484:(e,t,n)=>{n.d(t,{N:()=>o});let o=n(29163).ZP.span.withConfig({displayName:"ProgressBarTitle",componentId:"-__sc-29a64e76-0"})(({theme:e})=>` 136 & > span { 137 color: ${e.colors.uiColors.success}; 138 } 139 `)},7227:(e,t,n)=>{n.d(t,{v:()=>c});var o=n(85893),i=n(67294),r=n(15158),a=n(48553),s=n(4484),l=n(73342);let c=e=>{let{t}=i.useContext(l.q),n=e.spendRequired&&!/\D0.00/i.test(e.spendRequired);return(0,r.Z)(()=>(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)(s.N,{"data-testid":a.PP,dangerouslySetInnerHTML:{__html:`${t("reviewCart.missedProductPromotions.modal.progressBarSpendMessage",{moreSpend:`<span>${t("reviewCart.missedProductPromotions.modal.moreSpend",{amount:e.spendRequired})}</span>`})}`}}),e.minCartRequired&&(0,o.jsx)("span",{children:t("reviewCart.missedCartPromotions.minimumCart",{minCartRequired:e.minCartRequired})})]}),{componentName:"ProgressBarTitleMoreSpend"})}},10205:(e,t,n)=>{n.d(t,{I2:()=>d,L1:()=>l,c0:()=>c,j$:()=>u,pl:()=>s});var o=n(29163),i=n(67979),r=n(55977),a=n(95098);let s=(e,t)=>`--wynshop-carousel-${e}-${t}`,l=o.ZP.div.withConfig({displayName:"WynshopCarousel",componentId:"-__sc-4a8de4d-0"})(({location:e,slideStep:t,slideOffset:n,showArrowsOnHoverOnly:o})=>` 140 position: relative; 141 height: var(${s(e,"height")}); 142 ${s(e,"step")}: calc((100% / ${t.mobile}) * (1 - ${n.mobile})); 143 ${s(e,"spacing")}: 0px; 144 ${s(e,"arrow-offset")}: -${r.W0.sm}; 145 ${s(e,"top-arrow-offset")}: 30%; 146 ${s(e,"viewport-height")}: auto; 147 ${s(e,"arrow-height")}: 112px; 148 ${s(e,"arrow-width")}: 44px; 149 ${s(e,"border")}: none; 150 ${s(e,"bottom")}: 0px; 151 152 ${(0,i.Z)("md")} { 153 ${s(e,"step")}: calc((100% / ${t.tablet}) * (1 - ${n.tablet})); 154 } 155 156 ${(0,i.Z)("lg")} { 157 ${s(e,"step")}: calc((100% / ${t.desktop}) * (1 - ${n.desktop})); 158 } 159 160 ${o?`&:hover { 161 ${a.yk} { 162 opacity: 1; 163 } 164 }`:`${a.yk} { 165 opacity: 1; 166 }`} 167 `),c=o.ZP.div.withConfig({displayName:"WynshopCarouselViewport",componentId:"-__sc-4a8de4d-1"})(({location:e,isCarouselRedesignOn:t})=>` 168 ${t?"position: relative;":""} 169 overflow: hidden; 170 height: var(${s(e,"viewport-height")}); 171 `),u=o.ZP.div.withConfig({displayName:"WynshopCarouselContainer",componentId:"-__sc-4a8de4d-2"})(({location:e,isCarouselRedesignOn:t})=>` 172 display: flex; 173 touch-action: pan-y; 174 flex-direction: row; 175 height: var(${s(e,"viewport-height")}); 176 margin-left: calc(var(${s(e,"spacing")}) * -1); 177 ${t?`margin-bottom: var(${s(e,"bottom")})`:""}; 178 `),d=o.ZP.div.withConfig({displayName:"WynshopCarouselSlide",componentId:"-__sc-4a8de4d-3"})(({location:e,autoWidth:t,isCarouselRedesignOn:n,minWidth:o})=>` 179 ${!o?`flex: 0 0 ${t?"auto":`var(${s(e,"step")})`};`:""} 180 min-width: ${o||"0"}; 181 padding-left: var(${s(e,"spacing")}); 182 position: relative; 183 ${n?`border: var(${s(e,"border")})`:""}; 184 185 ${(0,i.Z)("md",{noLower:!0})} { 186 flex: 0 0 ${t?"auto":`var(${s(e,"step")})`}; 187 min-width: 0; 188 } 189 `)},83891:(e,t,n)=>{n.d(t,{SY:()=>l,XG:()=>d,e_:()=>a,ff:()=>s,nq:()=>o,o8:()=>i,q3:()=>r,s9:()=>u,z9:()=>c});let o="WynshopCarousel",i="WynshopCarouselViewport",r="CarouselLeftNavigation",a="CarouselRightNavigation",s="CarouselPagination",l="CarouselScrollbar",c="CarouselDotsWra
189pper",u="CarouselPlayButton",d="ViewAllProductsCardWrapper"},28880:(e,t,n)=>{n.d(t,{Z:()=>W});var o=n(85893),i=n(67294),r=n(10205),a=n(83891),s=n(38569),l=n(15158),c=n(86706),u=n(95098),d=n(73342),p=n(37593);let m=e=>{let{t}=i.useContext(d.q),n=(0,p.c)("dev-carousel-redesign");return(0,l.Z)(()=>{let{canScrollNext:i,canScrollPrev:r,hideNavigationOnDisable:s,location:l,navigation:c,scrollNext:d,scrollPrev:p}=e;return i||r||!s?n?(0,o.jsxs)(o.Fragment,{children:[!r&&s?null:(0,o.jsx)(u.bt,{navigation:c,location:l,onClick:p,children:(0,o.jsx)(u.yk,{ariaLabel:t("carousel.ariaLabels.previousSlide"),"data-testid":a.q3,location:l,navigation:c,isCarouselRedesignOn:n,children:(0,o.jsx)(u.W0,{name:"ChevronLeft",isCarouselRedesignOn:n})})}),!i&&s?null:(0,o.jsx)(u.bt,{navigation:c,location:l,onClick:d,right:!0,children:(0,o.jsx)(u.yk,{ariaLabel:t("carousel.ariaLabels.nextSlide"),"data-testid":a.e_,location:l,navigation:c,isCarouselRedesignOn:n,right:!0,children:(0,o.jsx)(u.W0,{name:"ChevronRight",isCarouselRedesignOn:n})})})]}):(0,o.jsxs)(o.Fragment,{children:[!r&&s?null:(0,o.jsx)(u.yk,{ariaLabel:t("carousel.ariaLabels.previousSlide"),"data-testid":a.q3,disabled:!r,handleClick:p,location:l,navigation:c,children:(0,o.jsx)(u.W0,{name:"ChevronLeft"})}),!i&&s?null:(0,o.jsx)(u.yk,{ariaLabel:t("carousel.ariaLabels.nextSlide"),"data-testid":a.e_,disabled:!i,handleClick:d,location:l,navigation:c,right:!0,children:(0,o.jsx)(u.W0,{name:"ChevronRight"})})]}):null},{componentName:"Wynshop Carousel Navigation"})};var f=n(29163),g=n(67979),h=n(42358),v=n(55977);let x=f.ZP.div.withConfig({displayName:"CarouselPaginationWrapper",componentId:"-__sc-6ff6ec53-0"})(({theme:e,pagination:t,paginationType:n})=>` 190 display: ${t.mobile?"flex":"none"}; 191 192 ${(0,g.Z)("md")} { 193 display: ${t.tablet?"flex":"none"}; 194 } 195 196 ${(0,g.Z)("lg")} { 197 display: ${t.desktop?"flex":"none"}; 198 } 199 200 align-items: center; 201 justify-content: center; 202 height: ${"dot-pagination"===n?"auto":e.carousel.carouselPagination.wrapperHeight}; 203 ${"dot-pagination"!=n&&`background-color: ${e.carousel.carouselPagination.wrapperBackground}`} 204 `),b=f.ZP.div.withConfig({displayName:"CarouselDotsWrapper",componentId:"-__sc-6ff6ec53-1"})(({theme:e})=>` 205 height: ${v.W0.vmd}; 206 display: flex; 207 align-items: center; 208 justify-content: center; 209 background-color: ${e.carouselComponent.carouselPagination.dotsWrapperBackground}; 210 border-radius: ${v.W0.vmd}; 211 box-shadow: 0px 10px 12px 0px ${e.carouselComponent.carouselPagination.dotsWrapperBackgroundShadow}, 0px 2px 4px 0px ${e.carouselComponent.carouselPagination.dotsWrapperAccentShadow}; 212 margin: ${v.W0.vsm} auto; 213 padding: ${v.W0.vxs} ${v.W0.vsm}; 214 `),y=(0,f.ZP)(h.bS).withConfig({displayName:"CarouselPaginationButton",componentId:"-__sc-6ff6ec53-2"})(()=>` 215 min-width: ${v.W0.xs}; 216 padding: ${v.W0.xxs}; 217 pointer-events: all; 218 display: inline-flex; 219 align-items: center; 220 justify-content: center; 221 `),w=f.ZP.span.withConfig({displayName:"CarouselPaginationDot",componentId:"-__sc-6ff6ec53-3"})(["",""],({theme:e,isActive:t,paginationType:n})=>"dot-pagination"===n?` 222 transition: background 0.15s ease-out; 223 height: ${t?v.W0.xs:v.W0.xxxs}; 224 width: ${v.W0.lg}; 225 background-color: ${t?e.carouselComponent.carouselPagination.activeDotBackground:e.carouselComponent.carouselPagination.dotBackground}; 226 border-radius: ${v.W0.sm}; 227 display: inline-block; 228 `:` 229 transition: background 0.15s ease-out; 230 height: ${v.W0.xs}; 231 width: ${v.W0.xs}; 232 background-color: ${t?e.carousel.carouselPagination.activeDotBackground:e.carousel.carouselPagination.dotBackground}; 233 border-radius: 50%; 234 display: inline-block; 235 `),$=(0,f.ZP)(h.bS).withConfig({displayName:"CarouselPlayButton",componentId:"-__sc-6ff6ec53-4"})(({theme:e,showPlay:t})=>` 236 display: ${t.mobile?"flex":"none"}; 237 ${(0,g.Z)("md")} { 238 display: ${t.tablet?"flex":"none"}; 239 } 240 ${(0,g.Z)("lg")} { 241 display: ${t.desktop?"flex":"none"}; 242 } 243 244 svg { 245 margin: 0; 246 path { 247 fill: ${e.carouselComponent.carouselPagination.playBtnColor}; 248 } 249 }
250 `),C=f.ZP.div.withConfig({displayName:"CarouselScrollWrapper",componentId:"-__sc-6ff6ec53-5"})(["position:relative;bottom:0;left:0;width:100%;height:",";border-radius:",";overflow:hidden;"],v.W0.xxs,v.W0.xs),P=f.ZP.div.attrs(({scrollProgress:e,scrollSnaps:t})=>({style:{"--scrollbar-width":`calc(${100/t.length}%)`,"--scrollbar-position":`${100*e*(t.length-1)}%`}})).withConfig({displayName:"CarouselScrollbar",componentId:"-__sc-6ff6ec53-6"})(["position:absolute;bottom:0;left:0;margin:0 ",";width:var(--scrollbar-width);height:",";border-radius:",";background-color:",";transform:translateX(var(--scrollbar-position));transition:transform 0.1s ease-in;transition:background-color 0.1s ease-in;"],v.W0.xxxs,v.W0.xxs,v.W0.xs,({theme:e})=>e.carouselComponent.scrollbarBackground),S=e=>{let{t}=i.useContext(d.q),n=(0,p.c)("dev-carousel-redesign"),{scrollSnaps:r,pagination:s,location:c,selectedIndex:u,scrollTo:m,scrollProgress:f,paginationType:g,autoPlay:h,paused:v,pause:S,togglePause:k}=e,W=i.useMemo(()=>v?"Play":"Pause",[v]);return(0,l.Z)(()=>r.length>1?"scroll-pagination"===g&&n?(0,o.jsx)(C,{children:(0,o.jsx)(P,{"data-testid":a.SY,scrollSnaps:r,scrollProgress:f,role:"scrollbar","aria-valuenow":100*f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":t("carousel.ariaLabels.scrollbarPosition",{position:Math.round(100*f)})})}):"dot-pagination"===g&&n?(0,o.jsx)(x,{pagination:s,location:c,paginationType:g,children:(0,o.jsxs)(b,{"data-testid":a.z9,children:[(0,o.jsx)($,{buttonStyle:"noStyles",handleClick:k,icon:W,showPlay:h,"data-testid":`${a.s9}-${W}`,ariaLabel:"Play"===W?t("carousel.ariaLabels.playButton"):t("carousel.ariaLabels.pauseButton")}),r.map((e,n)=>(0,o.jsx)(y,{buttonStyle:"iconTransparent",handleClick:()=>{m(n),S()},"aria-current":n===u,"data-testid":`${a.ff}-${n}`,ariaLabel:t("carousel.ariaLabels.carouselPagination",{number:n+1}),children:(0,o.jsx)(w,{isActive:n===u,paginationType:g})},`${c}-${n}`))]})}):(0,o.jsx)(x,{pagination:s,location:c,children:r.map((e,n)=>(0,o.jsx)(y,{buttonStyle:"iconTransparent",handleClick:()=>m(n),"aria-current":n===u||void 0,"data-testid":`${a.ff}-${n}`,ariaLabel:t("carousel.ariaLabels.carouselPagination",{number:n+1}),children:(0,o.jsx)(w,{isActive:n===u})},`${c}-${n}`))}):null,{componentName:"Wynshop Carousel Pagination"})};var k=n(10449);let W=(0,c.$j)((e,t)=>({carouselProps:{...((e,t)=>{let n={slideStep:{desktop:5,mobile:1,tablet:3},slideOffset:{desktop:0,mobile:.15,tablet:0},navigation:{desktop:!0,mobile:!1,tablet:!0},pagination:{desktop:!0,mobile:!1,tablet:!0},autoPlay:{desktop:0,mobile:0,tablet:0},autoHeight:!1,wheelGestures:!1,autoWidth:!1,minWidth:null};try{if(t){if("product-carousel"===t.carouselType)return{slideStep:t.slideStep?t.slideStep:{desktop:4,mobile:1,tablet:3},slideOffset:t.slideOffset?t.slideOffset:{desktop:.1,mobile:.3,tablet:.2},navigation:t.navigation?t.navigation:{desktop:!0,mobile:!1,tablet:!0},pagination:{desktop:!0,mobile:!0,tablet:!0},autoPlay:{desktop:0,mobile:0,tablet:0},wheelGestures:!0,autoHeight:!!t.autoHeight&&t.autoHeight,autoWidth:!!t.autoWidth&&t.autoWidth,paginationType:"scroll-pagination",apiOptions:{containScroll:"trimSnaps",loop:!1,breakpoints:{[`(max-width: ${v.OT}px)`]:{dragFree:!1},[`(min-width: ${v.OT+1}px)`]:{dragFree:!0}}},minWidth:t.minWidth?t.minWidth:null};if("cms-carousel"===t.carouselType)return{slideStep:t.slideStep?t.slideStep:{desktop:1,mobile:1,tablet:1},slideOffset:t.slideOffset?t.slideOffset:{desktop:0,mobile:0,tablet:0},navigation:{desktop:!0,mobile:!1,tablet:!0},pagination:{desktop:!0,mobile:!0,tablet:!0},autoPlay:t.autoPlay||{desktop:0,mobile:0,tablet:0},wheelGestures:!0,autoHeight:!1,autoWidth:!1,paginationType:"dot-pagination",minWidth:t.minWidth?t.minWidth:null};return{...n,slideStep:t.slideStep?t.slideStep:e.settings.layout.productCards.carouselsRowLength,slideOffset:t.slideOffset?t.slideOffset:n.slideOffset,navigation:t.navigation?t.navigation:n.navigation,pagination:t.pagination?t.pagination:n.pagination,autoPlay:t.autoPlay?t.autoPlay:n.autoPlay,autoHeight:t.autoHeight?t.autoHeight:n.autoHeight,wheelGestures:t.wheelGestures?t.wheelGestures:n.wheelGestures,autoWidth:t.autoWidth?t.autoWidth:n.autoWidth,minWidth:t.minWidth?t.minWidth:null}}return{...n,slideStep:e.settings.layout.productCards.carouselsRowLength}}catch{return n}})(e,{autoHeight:t.autoHeight,autoPlay:t.autoPlay,navigation:t.navigation,pagination:t.pagination,slideOffset:t.slideOffset,slideStep:t.slideStep,wheelGestures:t.wheelGestures,autoWidth:t.autoWidth,apiOptions:t.apiOptions,paginationType:t.paginationType,carouselType:t.carouselType,minWidth:t.minWidth}),showArrowsOnHoverOnly:e.settings.retailer.carousel.showArrowsOnHoverOnly}}))(e=>{let{apiOptions:t,children:n,disableLazyLoad:c,hideNavigationOnDisable:u,location:f,carouselProps:g,analyticsProps:h}=e,{t:v}=i.useContext(d.q),x=i.useMemo(()=>Object.values(g.pagination).some(e=>e),[]),b=i.useMemo(()=>Object.values(g.navigation).some(e=>e),[]),y=i.useRef(null),[w,$]=i.useState(c);(0,k.r)(y,()=>$(!0),{threshold:.8},!c);let{ref:C,scrollNext:P,scrollPrev:W,scrollTo:M,slidesInView:O,slidesNotInView:j,selectedIndex:I,scrollSnaps:_,nextBtnEnabled:N,prevBtnEnabled:D,scrollProgress:E,paused:A,pause:L,togglePause:Z}=(0,s.v)({...g.apiOptions||t,autoPlay:g.autoPlay,autoHeight:g.autoHeight,wheelGestures:g.wheelGestures,analyticsProps:h,location:f}
250),T=(0,p.c)("dev-carousel-redesign"),R=i.useCallback(e=>O.includes(e)||g.autoHeight||c,[O,c,g.autoHeight]),H=i.useCallback(e=>j.includes(e)||void 0,[j]),B=i.useCallback(t=>{if("product-carousel"!==e.carouselType&&!g.minWidth)return H(t)?"":void 0},[g.minWidth,H]);return(0,l.Z)(()=>(0,o.jsx)(r.L1,{location:f,slideStep:g.slideStep,slideOffset:g.slideOffset,showArrowsOnHoverOnly:g.showArrowsOnHoverOnly,className:e.className,ref:y,"data-testid":a.nq,role:"region","aria-label":e["aria-label"]||v("carousel.ariaLabels.component.default"),children:w?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r.c0,{ref:C,"data-testid":a.o8,location:f,isCarouselRedesignOn:T,children:[(0,o.jsx)(r.j$,{location:f,isCarouselRedesignOn:T,children:i.Children.map(n,(e,t)=>e?(0,o.jsx)(r.I2,{location:f,autoWidth:g.autoWidth,isCarouselRedesignOn:T,minWidth:g.minWidth,"aria-hidden":H(t),inert:B(t),children:R(t)?i.cloneElement(e,{carouselSliderPosition:t+1,tabbable:!H(t)}):null}):null)}),b&&(0,o.jsx)(m,{navigation:g.navigation,scrollNext:P,canScrollNext:N,scrollPrev:W,canScrollPrev:D,hideNavigationOnDisable:u,location:f})]}),x&&(0,o.jsx)(S,{pagination:g.pagination,paginationType:g.paginationType,scrollSnaps:_,selectedIndex:I,scrollTo:M,scrollProgress:E,location:f,autoPlay:g.autoPlay,paused:A,pause:L,togglePause:Z})]}):null}),{componentName:"Wynshop Carousel"})})},95098:(e,t,n)=>{n.d(t,{W0:()=>d,bt:()=>c,yk:()=>u});var o=n(29163),i=n(67979),r=n(69272),a=n(55977),s=n(10205),l=n(51667);let c=o.ZP.div.withConfig({displayName:"CarouselNavigationArrowWrapper",componentId:"-__sc-ad715503-0"})(({theme:e,navigation:t,right:n,location:o})=>` 251 display: ${t.mobile?"flex":"none"}; 252 ${(0,i.Z)("md")} { 253 display: ${t.tablet?"flex":"none"}; 254 } 255 ${(0,i.Z)("lg")} { 256 display: ${t.desktop?"flex":"none"}; 257 } 258 position: absolute; 259 top: 0; 260 ${n?`right: -${a.W0.vvsm};`:`left: -${a.W0.vvsm};`}; 261 height: 100%; 262 width: var(${(0,s.pl)(o,"arrow-width")}); 263 padding: 0 ${a.W0.vvsm}; 264 box-sizing: content-box; 265 border: none; 266 border-radius: 0; 267 background-color: transparent; 268 align-items: center; 269 justify-content: center; 270 cursor: pointer; 271 272 &:hover { 273 background-color: transparent; 274 ${u} { 275 border: 1px solid ${e.carouselComponent.carouselArrows.hover.borderColor}; 276 background-color: ${e.carouselComponent.carouselArrows.hover.backgroundColor}}; 277 } 278 ${u} { 279 svg { 280 fill:${e.carouselComponent.carouselArrows.hover.iconColor} 281 } 282 } 283 `),u=(0,o.ZP)(l.zx).withConfig({displayName:"CarouselNavigationArrow",componentId:"-__sc-ad715503-1"})(({theme:e,location:t,navigation:n,right:o,isCarouselRedesignOn:r})=>r?` 284 display: ${n.mobile?"flex":"none"}; 285 ${(0,i.Z)("md")} { 286 display: ${n.tablet?"flex":"none"}; 287 } 288 ${(0,i.Z)("lg")} { 289 display: ${n.desktop?"flex":"none"}; 290 } 291 position: absolute; 292 width: var(${(0,s.pl)(t,"arrow-width")}); 293 height: var(${(0,s.pl)(t,"arrow-height")}); 294 max-height: 60%; 295 top: 50%; 296 transform: translateY(-50%); 297 background-color: ${e.carouselComponent.carouselArrows.backgroundColor}; 298 border: none; 299 border-radius: 0; 300 align-items: center; 301 justify-content: center; 302 opacity: 0; 303 transition: opacity 0.3s ease; 304 ${o?`right: ${a.W0.vvsm}; box-shadow: -12px 0px 24px 0px ${e.carouselComponent.carouselArrows.backgroundShadow}, -2px 0px 4px 0px ${e.carouselComponent.carouselArrows.accentShadow}`:`left: ${a.W0.vvsm}; box-shadow: 12px 0px 24px 0px ${e.carouselComponent.carouselArrows.backgroundShadow}, 2px 0px 4px 0px ${e.carouselComponent.carouselArrows.accentShadow}`}; 305 306 &:hover { 307 border: 1px solid ${e.carouselComponent.carouselArrows.hover.borderColor}; 308 background-color: ${e.carouselComponent.carouselArrows.hover.backgroundColor}; 309 ${u} { 310 svg { 311 fill:${e.carouselComponent.carouselArrows.hover.iconColor} 312 } 313 } 314 }; 315 `:` 316 display: ${n.mobile?"flex":"none"}; 317 318 ${(0,i.Z)("md")} { 319 display: ${n.tablet?"flex":"none"}; 320 } 321 322 ${(0,i.Z)("lg")} { 323 display: ${n.desktop?"flex":"none"}; 324 } 325 326 align-items: center; 327 justify-content: center; 328 position: absolute; 329 background-color: ${e.carousel.carouselArrows.backgroundColor}; 330 border-radius: ${e.carousel.carouselArrows.borderRadius}; 331 border: none; 332 height: 40px; 333 width: 40px; 334 top: var(${(0,s.pl)(t,"top-arrow-offset")}); 335 transform: translateY(-30%); 336 ${o?`right: var(${(0,s.pl)(t,"arrow-offset")});`:`left: var(${(0,s.pl)(t,"arrow-offset")});`}; 337 338 &:hover { 339 background-color: ${e.carousel.carouselArrows.activeBackgroun
339dColor}; 340 } 341 &:disabled { 342 background-color: ${e.colors.uiColors.greyscale3}; 343 } 344 transition: all 0.3s ease-out; 345 `),d=(0,o.ZP)(r.G).withConfig({displayName:"CarouselNavigationArrowIcon",componentId:"-__sc-ad715503-2"})(({theme:e,isCarouselRedesignOn:t})=>` 346 width: ${a.W0.sm}; 347 height: ${a.W0.sm}; 348 svg { 349 fill:${t?e.carouselComponent.carouselArrows.iconColor:e.carousel.carouselArrows.iconColor}; 350 } 351 `)},38569:(e,t,n)=>{n.d(t,{v:()=>k});var o=n(67294),i=n(77576);let r={active:!0,breakpoints:{},delay:4e3,stopOnMouseEnter:!0,stopOnLastSnap:!1,paused:!1,manuallyPaused:!1,isCarouselRedesignOn:!1,onPause:()=>{},onPlay:()=>{},onManuallyPause:()=>{},rootNode:null},a=function(e={}){let t,n,o=0;function i(){t.isCarouselRedesignOn&&(t.onPause(),t.onManuallyPause()),u()}function a(){t.isCarouselRedesignOn&&t.onPause(),u()}function s(){if(t.isCarouselRedesignOn){if(t.manuallyPaused)return;t.onPlay()}d()}function l(){n.off("pointerDown",u),u(),o=0}function c(){t.isCarouselRedesignOn&&(t.paused||t.manuallyPaused)||(u(),o=window.setTimeout(p,t.delay))}function u(){o&&window.clearTimeout(o)}function d(){o&&(u(),c())}function p(){if(t.stopOnLastSnap){let{index:e}=n.internalEngine(),t=n.scrollSnapList().length-1;if(e.get()===t)return l()}n.canScrollNext()?n.scrollNext():n.scrollTo(0),c()}return{name:"autoplay",options:e,init:function(o,p){n=o;let{mergeOptions:m,optionsAtMedia:f}=p;if((t=f(m(r,e))).delay<=0)return l();let{eventStore:g,ownerDocument:h,ownerWindow:v}=n.internalEngine(),x=n.rootNode(),b=t.rootNode&&t.rootNode(x)||x;n.on("pointerDown",i),g.add(h,"visibilitychange",()=>{if("hidden"===h.visibilityState)return u();d()}),g.add(v,"pagehide",e=>{e.persisted&&u()}),t.stopOnMouseEnter&&(g.add(b,"mouseenter",a),g.add(b,"mouseleave",s)),c()},destroy:l,play:c,stop:u,reset:d}},s={active:!0,breakpoints:{},destroyHeight:"auto"};function l(e={}){let t,n,o=[],i=[],r=["select","pointerUp"];function a(e,r){let a="destroy"===r?t.destroyHeight:`${function(){let{slidesInView:e,target:t}=n.internalEngine();return e.check(t.get(),o).map(e=>i[e]).reduce((e,t)=>Math.max(e,t),0)}()}px`;n.containerNode().style.height=a}return{name:"autoHeight",options:e,init:function(c,u){n=c;let{mergeOptions:d,optionsAtMedia:p}=u,m=d(s,l.globalOptions);t=p(d(m,e));let{options:{axis:f},slidesInView:g,slideRects:h}=n.internalEngine();"y"!==f&&(o=g.findSlideBounds(void 0,.5),i=h.map(e=>e.height),r.forEach(e=>n.on(e,a)),a())},destroy:function(){r.forEach(e=>n.off(e,a)),a(void 0,"destroy")}}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){if(e.length!==t.length)throw Error("vectors must be same length");return e.map(function(e,n){return e+t[n]})}function d(e){return Math.max.apply(Math,e.map(Math.abs))}function p(e){return Object.freeze(e),Object.values(e).forEach(function(e){null===e||"object"!=typeof e||Object.isFrozen(e)||p(e)}),e}l.globalOptions=void 0;var m=[1,18,"u">typeof window&&window.innerHeight||800],f=[-1,-1,-1],g=p({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function h(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:400}}let v=function(e){void 0===e&&(e={});var t,n,o,i,r,a=function(){var e={};function t(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}return p({on:function(n,o){return e[n]=(e[n]||[]).concat(o),function(){return t(n,o)}},off:t,dispatch:function(t,n){t in e&&e[t].forEach(function(e){return e(n)})}})}(),s=a.on,l=a.off,v=a.dispatch,x=g,b=h(),y=!1,w=function(e){Array.isArray(e)?e.forEach(function(e){return S(e)}):S(e)},$=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?x:x=p(c({},g,x,e))},C=function(e){var t=c({event:i,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:b.isMomentum,axisDelta:[0,0,0],axisVelocity:b.axisVelocity,axisMovement:b.axisMovement,get axisMovementProjection(){return u(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);v("wheel",c({},t,{previous:r})),r=t},P=function(e,t){var n=x.preventWheelAction,o=t[0],i=t[1],r=t[2];if("boolean"==typeof n)return n;switch(n){case"x":return Math.abs(o)>=e;case"y":return Math.abs(i)>=e;case"z":return Math.abs(r)>=e;default:return!1}},S=function(e){var t,n,o,r,a=(r=function(e,t){if(!t)return e;var n=!0===t?f:t.map(function(e){return e?-1:1});return c({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}((t=e.deltaX*m[e.deltaMode],n=e.deltaY*m[e.deltaMode],o=(e.deltaZ||0)*m[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,n,o]}),x.reverseSign),c({},r,{axisDelta:r.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),s=a.axisDelta,l=a.timeStamp,p=d(s);if(e.preventDefault&&P(p,s)&&e.preventDefault(),b.isStarted?b.isMomentum&&p>Math.max(2,2*b.lastAbsDelta)&&(E(!0),N()):N(),0===p&&Object.is&&Object.is(e.deltaX,-0)){y=!0;return}i=e,b.axisMovement=u(b.axisMovement,s),b.lastAbsDelta=p,b.scrollPointsToMerge.push({axisDelta:s,timeStamp:l}),k(),C({axisDelta:s,isStart:!b.isStartPublished}),b.isStartPublished=!0,D()},k=function(){if(2===b.scrollPointsToMerge.length){var e;b.scrollPoints.unshift({axisDeltaSum:b.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(u),timeStamp:(e=b.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),M(),b.scrollPointsToMerge.length=0,b.scrollPoints.length=1,b.isMomentum||I()}else b.isStartPublished||W()},W=function(){var e;b.axisVelocity=(e=b.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/b.willEndTimeout})},M=function(){var e=b.scrollPoints,t=e[0],n=e[1];if(n&&t){var o=t.timeStamp-n.timeStamp;if(o<=0)return;var i=t.axisDeltaSum.map(function(e){return e/o}
351),r=i.map(function(e,t){return e/(b.axisVelocity[t]||1)});b.axisVelocity=i,b.accelerationFactors.push(r),O(o)}},O=function(e){var t=10*Math.ceil(e/10)*1.2;b.isMomentum||(t=Math.max(100,2*t)),b.willEndTimeout=Math.min(1e3,Math.round(t))},j=function(e){return 0===e||e<=.96&&e>=.6},I=function(){if(b.accelerationFactors.length>=5){if(y&&(y=!1,d(b.axisVelocity)>=.2))return void _();var e=b.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(j).length===e.length;return t||n})&&_(),b.accelerationFactors=e}},_=function(){b.isMomentum=!0},N=function(){(b=h()).isStarted=!0,b.startTime=Date.now(),r=void 0,y=!1},D=function(){clearTimeout(t),t=setTimeout(E,b.willEndTimeout)},E=function(e){void 0===e&&(e=!1),b.isStarted&&(b.isMomentum&&e?C({isEnding:!0,isMomentumCancel:!0}):C({isEnding:!0}),b.isMomentum=!1,b.isStarted=!1)},A=(n=[],p({observe:function(e){return e.addEventListener("wheel",w,{passive:!1}),n.push(e),function(){return o(e)}},unobserve:o=function(e){e.removeEventListener("wheel",w),n=n.filter(function(t){return t!==e})},disconnect:function(){n.forEach(o)}})),L=A.observe,Z=A.unobserve,T=A.disconnect;return $(e),p({on:s,off:l,observe:L,unobserve:Z,disconnect:T,feedWheel:w,updateOptions:$})};var x={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function b(e){void 0===e&&(e={});var t,n=function(){};return{name:"wheelGestures",options:e,init:function(o,i){var r,a,s,l=i.mergeOptions,c=i.optionsAtMedia,u=l(x,b.globalOptions);t=c(l(u,e));var d=o.internalEngine(),p=null!=(r=t.target)?r:o.containerNode().parentNode,m=null!=(a=t.forceWheelAxis)?a:d.options.axis,f=v({preventWheelAction:m,reverseSign:[!0,!0,!1]}),g=f.observe(p),h=f.on("wheel",function(e){var o=e.axisDelta,i=o[0],r=o[1],a="x"===m?i:r,l="x"===m?r:i,c=e.isMomentum&&e.previous&&!e.previous.isMomentum,u=e.isEnding&&!e.isMomentum||c;!(Math.abs(a)>Math.abs(l))||y||e.isMomentum||function(e){try{s=new MouseEvent("mousedown",e.event),P(s)}catch(e){return n()}y=!0,document.documentElement.addEventListener("mousemove",$,!0),document.documentElement.addEventListener("mouseup",$,!0),document.documentElement.addEventListener("mousedown",$,!0),t.wheelDraggingClass&&p.classList.add(t.wheelDraggingClass)}(e),y&&(u?(y=!1,P(C("mouseup",e)),w(),t.wheelDraggingClass&&p.classList.remove(t.wheelDraggingClass)):P(C("mousemove",e)))}),y=!1;function w(){document.documentElement.removeEventListener("mousemove",$,!0),document.documentElement.removeEventListener("mouseup",$,!0),document.documentElement.removeEventListener("mousedown",$,!0)}function $(e){y&&e.isTrusted&&e.stopImmediatePropagation()}function C(e,t){var n,o;if(m===d.options.axis){var i=t.axisMovement;n=i[0],o=i[1]}else{var r=t.axisMovement;o=r[0],n=r[1]}return new MouseEvent(e,{clientX:s.clientX+n,clientY:s.clientY+o,screenX:s.screenX+n,screenY:s.screenY+o,movementX:n,movementY:o,button:0,bubbles:!0,cancelable:!0,composed:!0})}function P(e){o.containerNode().dispatchEvent(e)}n=function(){g(),h(),w()}},destroy:function(){return n()}}}b.globalOptions=void 0;var y=n(55977),w=n(37593),$=n(31155),C=n(87537);let P=(e,t,n,o)=>{let i={event:C.Iz,ecommerce:{arrow_direction:e,location:t}};return n&&(i.ecommerce.carousel_position=n),o&&(i.ecommerce.carousel_category_id=o),i},S={slidesToScroll:"auto",loop:!0,watchDrag:({canScrollNext:e,canScrollPrev:t})=>e()||t()},k=e=>{let{autoPlay:t,autoHeight:n,wheelGestures:r,analyticsProps:s,location:c,...u}=e,d={inViewThreshold:1,...S,...u},p=[],[m,f]=o.useState(0),g=(0,w.c)("dev-carousel-redesign"),[h,v]=o.useState(!1),[x,k]=o.useState(!1),W=o.useCallback(()=>{let e,t;k(e=>!e),v(e=>!e),(0,$.w)((e=x?"play":"pause",t=s?.carouselPosition,{event:C.AL,ecommerce:{button_name:e,location:c,carousel_slider_position:m+1,carousel_position:t}}))},[x,m,c,s?.carouselPosition]),M=o.useCallback(()=>{v(!0)},[]),O=o.useCallback(()=>{v(!1)},[]),j=o.useCallback(()=>{k(!0)},[]);Object.values(t).some(e=>e)&&p.push(a({breakpoints:{[`(max-width: ${y.OT}px)`]:{delay:t.mobile},[`(min-width: ${y.OT+1}px) and (max-width: ${y.qv-1}px)`]:{delay:t.tablet},[`(min-width: ${y.qv}px)`]:{delay:t.desktop}},paused:h,manuallyPaused:x,onPause:M,onPlay:O,onManuallyPause:j,isCarouselRedesignOn:g}
351)),r&&p.push(b()),n&&p.push(l());let[I,_]=(0,i.Z)(d,p),[N,D]=o.useState([]),[E,A]=o.useState([]),L=o.useCallback(e=>{D(t=>{t.length===e.slideNodes().length&&e.off("select",L);let n=((e,t)=>{if(!e)return[];let n=e[0],o=e[e.length-1];return[(n-1+t)%t,...e,(o+1)%t]})(e.slidesInView(!0),e.slideNodes().length);return t.concat(n.filter(e=>!t.includes(e)))})},[]),Z=o.useCallback(e=>{A(e.slidesNotInView())},[]),[T,R]=o.useState(!1),H=o.useCallback(()=>{_&&_.scrollPrev(),(0,$.w)(P("left",c,s?.carouselPosition,s?.carouselCategoryId))},[_]),[B,z]=o.useState(!1),F=o.useCallback(()=>{_&&_.scrollNext(),(0,$.w)(P("right",c,s?.carouselPosition,s?.carouselCategoryId))},[_]),[q,V]=o.useState([]),G=o.useCallback(e=>_&&_.scrollTo(e),[_]),X=o.useCallback(e=>{V(e.scrollSnapList()),K(e)},[]),Y=o.useCallback(e=>{f(e.selectedScrollSnap()),R(e.canScrollPrev()),z(e.canScrollNext()),K(e)},[]),[U,J]=o.useState(0),K=o.useCallback(e=>{J(Math.max(0,Math.min(1,e.scrollProgress())))},[]);return o.useEffect(()=>{_&&(X(_),Y(_),L(_),Z(_),_.on("reInit",X),_.on("reInit",Y),_.on("reInit",L),_.on("reInit",Z),_.on("select",Y),_.on("select",L),_.on("select",Z),_.on("scroll",K),_.on("scroll",Z),_.on("slidesChanged",Z))},[_,X,Y,L,Z,K]),{ref:I,scrollPrev:H,scrollNext:F,scrollTo:G,slidesInView:N,slidesNotInView:E,selectedIndex:m,scrollSnaps:q,prevBtnEnabled:T,nextBtnEnabled:B,scrollProgress:U,paused:h,pause:M,togglePause:W}}}}]);
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.