Loading
function(e,t,n){"use strict";n.d(t,{q:()=>T,t:()=>S});var i=n(627968),r=n(64700),s=n(503698),a=n.n(s),o=n(580929),l=n(562708),u=n(66455),d=n(607399),c=n(844222),_=n(717421),h=n(866323),f=n(765671),E=n(919796),p=n(989395),m=n(688810),g=n(346381);let A={mass:1,tension:300,friction:28,clamp:!0};function I(e,t){return n=>{if(0===n)return"auto";let i="forwards"===t.current,r=n>0,s=!1;return r&&i&&"left"===e&&(s=!0),r&&!i&&"right"===e&&(s=!0),!r&&i&&"right"===e&&(s=!0),r||i||"left"!==e||(s=!0),s?`${100*Math.abs(n)}%`:"auto"}}function T(e){return null}function S(e){var t,n;let{contentDisplay:s,fadeInOut:T=!1,disableDefaultTransformStyling:S,slideWrapperClassName:N,...C}=e,y={},{analyticsLocations:v}=(0,m.Ay)();r.Children.forEach(C.children,(e,t)=>{y[e.props.id]={children:e.props.children,impressionName:e.props.impressionName,impressionProperties:e.props.impressionProperties,index:t}});let R=C.activeSlide,O=(0,E.A)(C.activeSlide),b=C.directionOverride??(t=null!=O?y[O]:null,n=y[R],null==t?null:t.index>n.index?"backwards":t.index<n.index?"forwards":null),{reducedMotion:L}=r.useContext(c.C),D=r.useContext(p.A),P=y[R].impressionName,w={...y[R].impressionProperties,location_stack:v};D({type:l.ImpressionTypes.MODAL,name:P,properties:w,_stackContext:{isSlide:!0}});let{ref:M,width:x=0,height:U=0}=(0,f.Ay)(R),k={...A,...C.springConfig,...L.enabled?{clamp:!0}:null},G=(0,_.z)({width:C.width??x,height:U,config:k},null==O?"animate-never":"respect-motion-settings"),V=(0,h.p)(R,{value:0,from:{value:1},enter:{value:0},leave:{value:-1},config:k,onRest:(e,t)=>{let{item:n}=t;n===R&&null!=C.onSlideReady&&C.onSlideReady(n)}},null==O?"animate-never":"respect-motion-settings"),F=(0,u.A)(b),{width:B,centered:j=!0}=C,H=d.Fr&&!C.shouldUseMediaQueriesForSizing?"100%":G.width.to(e=>"string"==typeof e?e:Math.round(e)),W=d.Fr&&!C.shouldUseMediaQueriesForSizing?"100%":G.height.to(e=>Math.round(e)),Y=r.useMemo(()=>d.Fr?{}:j?{transform:S?void 0:"translate3d(0, -50%, 0) scale(1.0, 1.0)",top:"50%"}:{transform:S?void 0:"scale(1.0, 1.0)"},[j,S]),K=d.Fr?{}:{overflow:C.overflow??"hidden"},$=r.useMemo(()=>({width:d.Fr&&!C.shouldUseMediaQueriesForSizing?"100%":B}),[C.shouldUseMediaQueriesForSizing,B]);return(0,i.jsx)(o.animated.div,{style:{position:"relative",minWidth:H,minHeight:W,...K},children:V((e,t,n)=>{let{key:r}=n,l={opacity:e.value.to(e=>1-Math.abs(e))};return(0,i.jsx)(o.animated.div,{ref:t===R?M:null,style:{position:"absolute",display:s,flexDirection:"column",backfaceVisibility:"hidden",...$,...Y,...L.enabled?l:{left:e.value.to(I("left",F)),right:e.value.to(I("right",F)),...T&&l}},className:a()({[g.o]:C.shouldUseMediaQueriesForSizing},N),children:y[t].children},r)})})}}