"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4002],{53431:function(e,t,r){r.d(t,{I:function(){return y},a:function(){return _},w:function(){return w}});var n=r(95235),i=r(82269),a=r(2784),l=r(13980),o=r.n(l),s=r(7307),c=r(52322);const d=["width","height","maxWidth","children","className"],u=["width","left","top","noMaxWidth","children","className"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t{let{value:t,relativeTo:r}=e;if(!isNaN(t)&&null!==t&&!isNaN(r)&&null!==r)return t/r*100+"%"},h=s.default.div.withConfig({componentId:"pmp-module__sc-6zzwsp-0"})(["",""],(e=>{let{$width:t,$height:r,maxWidth:n}=e;return(0,s.css)(["max-width:",";position:relative;&::before{content:'';display:block;padding-top:",";}"],n,f({value:r,relativeTo:t}))})),m=(0,a.createContext)(),v=e=>{let{width:t,height:r,maxWidth:n,children:a,className:l}=e,o=(0,i.Z)(e,d);const s={parentWidth:t,parentHeight:r};return(0,c.jsx)(m.Provider,{value:s,children:(0,c.jsx)(h,g(g({$width:t,$height:r,maxWidth:n,className:l},o),{},{children:a}))})};v.defaultProps={maxWidth:"100%"},v.propTypes={children:o().node,className:o().string,height:o().number.isRequired,maxWidth:o().string.isRequired,width:o().number.isRequired};var y=v;const x=s.default.div.withConfig({componentId:"pmp-module__sc-1p75k38-0"})(["pointer-events:none;position:absolute;max-width:100%;"," ",""],(e=>{let{noMaxWidth:t}=e;return t&&(0,s.css)(["max-width:none;"])}),(e=>{let{$width:t,left:r,top:n,parentWidth:i,parentHeight:a}=e;return(0,s.css)(["left:",";top:",";width:",";"],f({value:r,relativeTo:i}),f({value:n,relativeTo:a}),f({value:t,relativeTo:i}))})),b=e=>{let{width:t,left:r,top:n,noMaxWidth:l,children:o,className:s}=e,d=(0,i.Z)(e,u);const{parentWidth:p,parentHeight:f}=(0,a.useContext)(m);return(0,c.jsx)(x,g(g({$width:t,left:r,top:n,parentWidth:p,parentHeight:f,noMaxWidth:l,className:s},d),{},{children:o}))};b.propTypes={children:o().node,className:o().string,left:o().number.isRequired,noMaxWidth:o().bool,top:o().number.isRequired,width:o().number.isRequired};var _=b,w='.gallery-util-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.gallery{--position-offset: 0px;--touch-offset: 0;--item-width: min(75%, 1000px);--gap: 25vw;--active-gap: 0px;--active: 0;--duration: .5s;position:relative;width:100%}.gallery--draggable{touch-action:pan-y}.gallery__main{display:grid;grid-template-areas:"item";list-style:none;margin:0;padding:0;position:relative}.gallery__item{--x: calc( (var(--touch-offset, 0) * 1px) + var(--position-offset) + (var(--active-gap) * var(--side)) + (var(--item-width) + var(--gap)) * (var(--i) - var(--selected)) );--delay: calc(0s * var(--center-offset, 0));grid-area:item;margin:0 auto;padding:0;transform:translate(var(--x));transition:transform var(--duration);width:var(--item-width);z-index:calc(var(--total) - var(--center-offset))}.gallery__item--draggable img{pointer-events:none}.gallery__item--dragging{transition:none!important}.gallery__nav{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:0;color:inherit;cursor:pointer;display:inline-block;font:inherit;padding:0}.gallery__pagination{--gap: 10px;display:grid;gap:var(--gap);grid-auto-flow:column;justify-content:center}.gallery__pagination-item{line-height:1}\n'},72692:function(e,t,r){r.d(t,{Lm:function(){return O},UD:function(){return I},__:function(){return N},nH:function(){return _},oL:function(){return w},ri:function(){return x}});var n=r(2784);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,l={exports:{}},o={};l.exports=function(){if(a)return o;a=1;var e=n,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,n){var a,o={},c=null,d=null;for(a in void 0!==n&&(c=""+n),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(d=r.ref),r)i.call(r,a)&&!s.hasOwnProperty(a)&&(o[a]=r[a]);if(e&&e.defaultProps)for(a in r=e.defaultProps)void 0===o[a]&&(o[a]=r[a]);return{$$typeof:t,type:e,key:c,ref:d,props:o,_owner:l.current}}return o.Fragment=r,o.jsx=c,o.jsxs=c,o}();var s=l.exports,c={exports:{}};var d,u,p,g;function f(){if(u)return d;u=1;return d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}c.exports=function(){if(g)return p;g=1;var e=f();function t(){}function r(){}return r.resetWarningCache=t,p=function(){function n(t,r,n,i,a,l){if(l!==e){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function i(){return n}n.isRequired=n;var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a}}()();const h=i(c.exports),m=(e=[])=>{if(!e||!Array.isArray(e)||!e.length)return null;let t=[];return e.forEach((e=>{"string"==typeof e&&t.push(e)})),t.join(" ")},v=(0,n.createContext)(),y={isDragging:!1,start:0,xOffset:0,offsetting:!1,scrolling:!0},x=({items:e,loop:t,draggable:r,onChange:i,startIndex:a,visibleRange:l,ariaLiveText:o,className:c,children:d})=>{const[u,p]=(0,n.useState)((()=>a||0)),[g,f]=(0,n.useState)((()=>a||0)),[h,x]=(0,n.useState)((()=>y)),b=(0,n.useRef)([]);if(!Array.isArray(e))throw new Error(" items prop must be an Array.");const _=(0,n.useCallback)((()=>{f(u),p((r=>{let n=r+1;return r===e.length-1&&(n=t?0:r),i&&i({oldIndex:r,newIndex:n,direction:1}),n}))}),[u,e.length,t,i]),w=(0,n.useCallback)((()=>{f(u),p((r=>{let n=r-1;return 0===r&&(n=t?e.length-1:r),i&&i({oldIndex:r,newIndex:n,direction:0}),n}))}),[u,e.length,t,i]),I=(0,n.useCallback)((t=>{const r=e[t]?t:0;f(u),p(r);i&&i({oldIndex:u,newIndex:r,direction:r-u>0?1:0})}),[u,i,e]);(0,n.useEffect)((()=>{e[u]||I()}),[u,e,I]);const N={galleryItems:e,itemNodes:b,startIndex:a,activeIndex:u,setActiveIndex:p,previouslyActiveIndex:g,setPreviouslyActiveIndex:f,goToIndex:I,next:_,previous:w,loop:t,draggable:r,touchState:h,setTouchState:x,swipeThreshold:50,onChange:i,visibleRange:l};return s.jsx(v.Provider,{value:N,children:s.jsxs("div",{className:m(["gallery",r&&"gallery--draggable",c]),style:{"--touch-offset":h.xOffset},children:[d,o&&s.jsx("p",{"aria-live":"polite",className:"gallery-util-visually-hidden",children:o.replace("$i",u+1).replace("$t",e.length)})]})})};x.propTypes={items:h.array.isRequired,loop:h.bool,draggable:h.bool,onChange:h.func,startIndex:h.number,visibleRange:h.number,ariaLiveText:h.string,className:h.string,children:h.node},x.defaultProps={loop:!1,draggable:!0,startIndex:0,visibleRange:-1,ariaLiveText:"Item $i of $t."};const b=()=>{const e=(0,n.useContext)(v);if(!e)throw new Error("useGallery must be called from within a .");return e},_=({renderGalleryItem:e,className:t,...r})=>{const{activeIndex:i,galleryItems:a,next:l,previous:o,draggable:c,touchState:d,setTouchState:u,swipeThreshold:p}=b(),g=(0,n.useCallback)((()=>{c&&u((e=>({...e,isDragging:!0})))}),[c,u]),f=(0,n.useCallback)((e=>{if(c&&!d.scrolling&&!0===d.isDragging&&e.clientY)if(d.start){const t=e.clientX-d.start.x,r=e.clientY-d.start.y;d.offsetting?u((e=>({...e,xOffset:t}))):(Math.abs(r)>20&&u((e=>({...e,scrolling:!0}))),Math.abs(t)>10&&u((e=>({...e,offsetting:!0,xOffset:t}))))}else u((t=>({...t,start:{x:e.clientX,y:e.clientY}})))}),[c,d.scrolling,d.isDragging,d.start,d.offsetting,u]),h=(0,n.useCallback)((()=>{c&&d.isDragging&&(Math.abs(d.xOffset)>p&&(d.xOffset<0?l():o()),u((e=>({...e,isDragging:!1,xOffset:0,start:0,offsetting:!1,scrolling:!1}))))}),[c,d.isDragging,d.xOffset,p,u,l,o]);return s.jsx("ul",{className:m(["gallery__main",t]),onPointerDown:c?g:null,onPointerMove:c?f:null,onPointerUp:c?h:null,style:{"--selected":i,"--total":a.length},...r,children:a.map(((t,r)=>e({item:t,index:r,activeIndex:i,active:i===r})))})};_.propTypes={renderGalleryItem:h.func.isRequired,className:h.string};const w=({renderPaginationItem:e,className:t,...r})=>{const{activeIndex:n,galleryItems:i}=b();return s.jsx("ul",{className:m(["gallery__pagination",t]),...r,children:i.map(((t,r)=>e({index:r,active:n===r,activeIndex:n,item:t})))})};w.propTypes={renderPaginationItem:h.func.isRequired,className:h.string};const I=({index:e,active:t,className:r,buttonClassName:n,buttonProps:i,children:a,onClick:l,...o})=>{const{goToIndex:c,itemNodes:d}=b();return s.jsx("li",{className:m(["gallery__pagination-item",r]),...o,children:s.jsx("button",{className:n,onClick:(u=e,t=>{c(u),d.current[u].focus({preventScroll:!0}),null==l||l({event:t,index:e})}),"aria-current":t?"true":null,...i,children:a})});var u};I.propTypes={index:h.number.isRequired,active:h.bool.isRequired,className:h.string,buttonClassName:h.string,buttonProps:h.object,children:h.node,onClick:h.func};const N=({direction:e,renderNavItem:t,className:r,children:n,...i})=>{const{next:a,previous:l,loop:o,activeIndex:c,galleryItems:d}=b(),u=e&&c===d.length-1||!e&&0===c,p={disabled:!!u||null,"aria-disabled":u?"true":null};return n||t?s.jsx("button",{className:m([r,"gallery__nav","gallery__nav--"+(e?"next":"previous")]),onClick:()=>{e?a():l()},...!o&&p,...i,children:n||t({activeIndex:c,disabled:!o&&u})}):null};N.propTypes={direction:h.oneOf([0,1]).isRequired,renderNavItem:h.func,className:h.string,children:h.node};const O=({index:e,active:t,className:r,children:n,...i})=>{const{itemNodes:a,activeIndex:l,previouslyActiveIndex:o,draggable:c,touchState:d,visibleRange:u}=b(),p={"aria-hidden":t?null:"true",tabIndex:t?0:-1};return s.jsx("li",{ref:t=>a.current[e]=t,...p,...i,className:m(["gallery__item",c&&"gallery__item--draggable",c&&d.offsetting&&"gallery__item--dragging",t&&"gallery__item--active",e===o&&"gallery__item--was-active",el&&"gallery__item--right",(-1===u||Math.abs(e-l)<=u)&&"gallery__item--visible",r]),style:{"--i":e,"--center-offset":Math.abs(e-l),"--index-offset":e-l,"--side":el?1:0,"--active":t?1:0},children:n})};O.propTypes={index:h.number.isRequired,active:h.bool.isRequired,className:h.string,children:h.node}}}]);