@lanaco/lnc-react-ui 4.0.180 → 4.0.182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";const S=require("react/jsx-runtime"),E=require("react"),k=require("./_commonjsHelpers-DwTZ_eVU.cjs"),D=require("./index-BpbMKBf_.cjs"),vt=require("./Button.cjs"),gt=require("./useDetectMobile-zkbzoOGV.cjs"),at=require("./emotion-styled.browser.esm-BtEseadx.cjs"),lt=require("./style-BAcV7F53.cjs"),yt=require("./consts-goSZX3xP.cjs");var q={},K={},m={},F={};(function(o){function i(a,n,u){var l=n.slidesToShow,d=n.currentSlide;return u.length>2*l?a+2*l:d>=u.length?u.length+a:a}function t(a,n){if(n.length>2*a){for(var u={},l=n.length-2*a,d=n.length-l,c=l,h=0;h<d;h++)u[h]=c,c++;var p=n.length+d,f=p+n.slice(0,2*a).length,g=0;for(h=p;h<=f;h++)u[h]=g,g++;var b=p,_=0;for(h=d;h<b;h++)u[h]=_,_++;return u}u={};var C=3*n.length,y=0;for(h=0;h<C;h++)u[h]=y,++y===n.length&&(y=0);return u}function e(a,n){return n.length<a?n:n.length>2*a?n.slice(n.length-2*a,n.length).concat(n,n.slice(0,2*a)):n.concat(n,n)}function r(a,n){return n.length>2*a?2*a:n.length}function s(a,n,u){var l,d=a.currentSlide,c=a.slidesToShow,h=a.itemWidth,p=a.totalItems,f=0,g=0,b=d===0,_=n.length-(n.length-2*c);return n.length<c?(g=f=0,b=l=!1):n.length>2*c?((l=d>=_+n.length)&&(g=-h*(f=d-n.length)),b&&(g=-h*(f=_+(n.length-2*c)))):((l=d>=2*n.length)&&(g=-h*(f=d-n.length)),b&&(g=u.showDots?-h*(f=n.length):-h*(f=p/3))),{isReachingTheEnd:l,isReachingTheStart:b,nextSlide:f,nextPosition:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.getOriginalCounterPart=i,o.getOriginalIndexLookupTableByClones=t,o.getClones=e,o.getInitialSlideInInfiniteMode=r,o.checkClonesPosition=s})(F);var A={};Object.defineProperty(A,"__esModule",{value:!0});var ot=!1;function St(o,i,t,e){var r=0,s=e||t;return i&&s&&(!ot&&process.env.NODE_ENV!=="production"&&o[s].paritialVisibilityGutter&&(ot=!0,console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")),r=o[s].partialVisibilityGutter||o[s].paritialVisibilityGutter),r}function Tt(o,i){var t;return i[o]&&(t=(100/i[o].items).toFixed(1)),t}function wt(o,i,t){return Math.round(t/(i+(o.centerMode?1:0)))}A.getPartialVisibilityGutter=St,A.getWidthFromDeviceType=Tt,A.getItemClientSideWidth=wt;var T={};Object.defineProperty(T,"__esModule",{value:!0});var Y=A;function Z(o){var i=o.slidesToShow;return o.totalItems<i}function bt(o,i){var t,e=o.domLoaded,r=o.slidesToShow,s=o.containerWidth,a=o.itemWidth,n=i.deviceType,u=i.responsive,l=i.ssr,d=i.partialVisbile,c=i.partialVisible,h=!!(e&&r&&s&&a);l&&n&&!h&&(t=Y.getWidthFromDeviceType(n,u));var p=!!(l&&n&&!h&&t);return{shouldRenderOnSSR:p,flexBisis:t,domFullyLoaded:h,partialVisibilityGutter:Y.getPartialVisibilityGutter(u,d||c,n,o.deviceType),shouldRenderAtAll:p||h}}function _t(o,i){var t=i.currentSlide,e=i.slidesToShow;return t<=o&&o<t+e}function ut(o,i,t){var e=t||o.transform;return!i.infinite&&o.currentSlide===0||Z(o)?e:e+o.itemWidth/2}function Ct(o){return!(0<o.currentSlide)}function dt(o){var i=o.currentSlide,t=o.totalItems;return!(i+o.slidesToShow<t)}function ht(o,i,t,e){i===void 0&&(i=0);var r=o.currentSlide,s=o.slidesToShow,a=dt(o),n=!t.infinite&&a,u=e||o.transform;if(Z(o))return u;var l=u+r*i;return n?l+(o.containerWidth-(o.itemWidth-i)*s):l}function ct(o,i){return o.rtl?-1*i:i}function It(o,i,t){var e=i.partialVisbile,r=i.partialVisible,s=i.responsive,a=i.deviceType,n=i.centerMode,u=t||o.transform,l=Y.getPartialVisibilityGutter(s,e||r,a,o.deviceType);return ct(i,r||e?ht(o,l,i,t):n?ut(o,i,t):u)}function Mt(o,i){var t=o.domLoaded,e=o.slidesToShow,r=o.containerWidth,s=o.itemWidth,a=i.deviceType,n=i.responsive,u=i.slidesToSlide||1,l=!!(t&&e&&r&&s);return i.ssr&&i.deviceType&&!l&&Object.keys(n).forEach(function(d){var c=n[d].slidesToSlide;a===d&&c&&(u=c)}),l&&Object.keys(n).forEach(function(d){var c=n[d],h=c.breakpoint,p=c.slidesToSlide,f=h.max,g=h.min;p&&window.innerWidth>=g&&window.innerWidth<=f&&(u=p)}),u}T.notEnoughChildren=Z,T.getInitialState=bt,T.getIfSlideIsVisbile=_t,T.getTransformForCenterMode=ut,T.isInLeftEnd=Ct,T.isInRightEnd=dt,T.getTransformForPartialVsibile=ht,T.parsePosition=ct,T.getTransform=It,T.getSlidesToSlide=Mt;var J={};Object.defineProperty(J,"__esModule",{value:!0});var Pt=function(o,i,t){var e;return function(){var r=arguments;e||(o.apply(this,r),e=!0,typeof t=="function"&&t(!0),setTimeout(function(){e=!1,typeof t=="function"&&t(!1)},i))}};J.default=Pt;var pt={};(function(o){function i(t,e){var r=e.partialVisbile,s=e.partialVisible,a=e.centerMode,n=e.ssr,u=e.responsive;if((r||s)&&a)throw new Error("center mode can not be used at the same time with partialVisible");if(!u)throw n?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(u&&typeof u!="object")throw new Error("responsive prop must be an object")}Object.defineProperty(o,"__esModule",{value:!0}),o.default=i})(pt);var Q={};Object.defineProperty(Q,"__esModule",{value:!0});var xt=T;function Et(o,i,t){t===void 0&&(t=0);var e,r,s=o.slidesToShow,a=o.currentSlide,n=o.itemWidth,u=o.totalItems,l=xt.getSlidesToSlide(o,i),d=a+1+t+s+(0<t?0:l);return r=d<=u?-n*(e=a+t+(0<t?0:l)):u<d&&a!==u-s?-n*(e=u-s):e=void 0,{nextSlides:e,nextPosition:r}}Q.populateNextSlides=Et;var H={};Object.defineProperty(H,"__esModule",{value:!0});var Rt=E,Ot=T,At=T;function Wt(o,i,t){t===void 0&&(t=0);var e,r,s=o.currentSlide,a=o.itemWidth,n=o.slidesToShow,u=i.children,l=i.showDots,d=i.infinite,c=Ot.getSlidesToSlide(o,i),h=s-t-(0<t?0:c),p=(Rt.Children.toArray(u).length-n)%c;return r=0<=h?(e=h,l&&!d&&0<p&&At.isInRightEnd(o)&&(e=s-p),-a*e):e=h<0&&s!==0?0:void 0,{nextSlides:e,nextPosition:r}}H.populatePreviousSlides=Wt;var ft={};(function(o){function i(t,e,r,s,a,n){var u,l,d=t.itemWidth,c=t.slidesToShow,h=t.totalItems,p=t.currentSlide,f=e.infinite,g=!1,b=Math.round((r-s)/d),_=Math.round((s-r)/d),C=r<a;if(a<r&&b<=c){u="right";var y=Math.abs(-d*(h-c)),M=n-(s-a),I=p===h-c;(Math.abs(M)<=y||I&&f)&&(l=M,g=!0)}return C&&_<=c&&(u="left",((M=n+(a-s))<=0||p===0&&f)&&(g=!0,l=M)),{direction:u,nextPosition:l,canContinue:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.populateSlidesOnMouseTouchMove=i})(ft);Object.defineProperty(m,"__esModule",{value:!0});var V=F;m.getOriginalCounterPart=V.getOriginalCounterPart,m.getClones=V.getClones,m.checkClonesPosition=V.checkClonesPosition,m.getInitialSlideInInfiniteMode=V.getInitialSlideInInfiniteMode;var X=A;m.getWidthFromDeviceType=X.getWidthFromDeviceType,m.getPartialVisibilityGutter=X.getPartialVisibilityGutter,m.getItemClientSideWidth=X.getItemClientSideWidth;var x=T;m.getInitialState=x.getInitialState,m.getIfSlideIsVisbile=x.getIfSlideIsVisbile,m.getTransformForCenterMode=x.getTransformForCenterMode,m.getTransformForPartialVsibile=x.getTransformForPartialVsibile,m.isInLeftEnd=x.isInLeftEnd,m.isInRightEnd=x.isInRightEnd,m.notEnoughChildren=x.notEnoughChildren,m.getSlidesToSlide=x.getSlidesToSlide;var Dt=J;m.throttle=Dt.default;var Lt=pt;m.throwError=Lt.default;var kt=Q;m.populateNextSlides=kt.populateNextSlides;var jt=H;m.populatePreviousSlides=jt.populatePreviousSlides;var Vt=ft;m.populateSlidesOnMouseTouchMove=Vt.populateSlidesOnMouseTouchMove;var $={},Gt=k.commonjsGlobal&&k.commonjsGlobal.__extends||function(){var o=function(i,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(i,t)};return function(i,t){function e(){this.constructor=i}o(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty($,"__esModule",{value:!0});var Bt=E;function Nt(o){return"clientY"in o}$.isMouseMoveEvent=Nt;var Ft=function(o){function i(){return o!==null&&o.apply(this,arguments)||this}return Gt(i,o),i}(Bt.Component);$.default=Ft;var tt={},et={};Object.defineProperty(et,"__esModule",{value:!0});var $t=F,zt=T;function Xt(o,i,t,e){var r={},s=zt.getSlidesToSlide(i,t);return Array(o).fill(0).forEach(function(a,n){var u=$t.getOriginalCounterPart(n,i,e);if(n===0)r[0]=u;else{var l=r[n-1]+s;r[n]=l}}),r}et.getLookupTableForNextSlides=Xt;Object.defineProperty(tt,"__esModule",{value:!0});var L=E,Ut=F,Yt=et,rt=T,qt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.getState,s=i.showDots,a=i.customDot,n=i.dotListClass,u=i.infinite,l=i.children;if(!s||rt.notEnoughChildren(t))return null;var d,c=t.currentSlide,h=t.slidesToShow,p=rt.getSlidesToSlide(t,i),f=L.Children.toArray(l);d=u?Math.ceil(f.length/p):Math.ceil((f.length-h)/p)+1;var g=Yt.getLookupTableForNextSlides(d,t,i,f),b=Ut.getOriginalIndexLookupTableByClones(h,f),_=b[c];return L.createElement("ul",{className:"react-multi-carousel-dot-list "+n},Array(d).fill(0).map(function(C,y){var M,I;if(u){I=g[y];var O=b[I];M=_===O||O<=_&&_<O+p}else{var W=f.length-h,j=y*p;M=(I=W<j?W:j)===c||I<c&&c<I+p&&c<f.length-h}return a?L.cloneElement(a,{index:y,active:M,key:y,onClick:function(){return e(I)},carouselState:r()}):L.createElement("li",{"data-index":y,key:y,className:"react-multi-carousel-dot "+(M?"react-multi-carousel-dot--active":"")},L.createElement("button",{"aria-label":"Go to slide "+(y+1),onClick:function(){return e(I)}}))}))};tt.default=qt;var z={};Object.defineProperty(z,"__esModule",{value:!0});var N=E,Kt=function(o){var i=o.customLeftArrow,t=o.getState,e=o.previous,r=o.disabled,s=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:s});var a=s?"rtl":"";return N.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+a,onClick:function(){return e()},type:"button",disabled:r})};z.LeftArrow=Kt;var Zt=function(o){var i=o.customRightArrow,t=o.getState,e=o.next,r=o.disabled,s=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:s});var a=s?"rtl":"";return N.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+a,onClick:function(){return e()},type:"button",disabled:r})};z.RightArrow=Zt;var it={};Object.defineProperty(it,"__esModule",{value:!0});var G=E,U=m,Jt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.clones,s=o.notEnoughChildren,a=t.itemWidth,n=i.children,u=i.infinite,l=i.itemClass,d=i.itemAriaLabel,c=i.partialVisbile,h=i.partialVisible,p=U.getInitialState(t,i),f=p.flexBisis,g=p.shouldRenderOnSSR,b=p.domFullyLoaded,_=p.partialVisibilityGutter;return p.shouldRenderAtAll?(c&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),G.createElement(G.Fragment,null,(u?r:G.Children.toArray(n)).map(function(C,y){return G.createElement("li",{key:y,"data-index":y,onClick:function(){i.focusOnSelect&&e(y)},"aria-hidden":U.getIfSlideIsVisbile(y,t)?"false":"true","aria-label":d||(C.props.ariaLabel?C.props.ariaLabel:null),style:{flex:g?"1 0 "+f+"%":"auto",position:"relative",width:b?((c||h)&&_&&!s?a-_:a)+"px":"auto"},className:"react-multi-carousel-item "+(U.getIfSlideIsVisbile(y,t)?"react-multi-carousel-item--active":"")+" "+l},C)}))):null};it.default=Jt;var Qt=k.commonjsGlobal&&k.commonjsGlobal.__extends||function(){var o=function(i,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(i,t)};return function(i,t){function e(){this.constructor=i}o(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(K,"__esModule",{value:!0});var w=E,v=m,R=$,Ht=tt,nt=z,te=it,B=T,P=400,st="transform 400ms ease-in-out",ee=function(o){function i(t){var e=o.call(this,t)||this;return e.containerRef=w.createRef(),e.listRef=w.createRef(),e.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:w.Children.count(t.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},e.onResize=e.onResize.bind(e),e.handleDown=e.handleDown.bind(e),e.handleMove=e.handleMove.bind(e),e.handleOut=e.handleOut.bind(e),e.onKeyUp=e.onKeyUp.bind(e),e.handleEnter=e.handleEnter.bind(e),e.setIsInThrottle=e.setIsInThrottle.bind(e),e.next=v.throttle(e.next.bind(e),t.transitionDuration||P,e.setIsInThrottle),e.previous=v.throttle(e.previous.bind(e),t.transitionDuration||P,e.setIsInThrottle),e.goToSlide=v.throttle(e.goToSlide.bind(e),t.transitionDuration||P,e.setIsInThrottle),e.onMove=!1,e.initialX=0,e.lastX=0,e.isAnimationAllowed=!1,e.direction="",e.initialY=0,e.isInThrottle=!1,e.transformPlaceHolder=0,e}return Qt(i,o),i.prototype.resetTotalItems=function(){var t=this,e=w.Children.count(this.props.children),r=v.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,e));this.setState({totalItems:e,currentSlide:r},function(){t.setContainerAndItemWidth(t.state.slidesToShow,!0)})},i.prototype.setIsInThrottle=function(t){t===void 0&&(t=!1),this.isInThrottle=t},i.prototype.setTransformDirectly=function(t,e){var r=this.props.additionalTransfrom;this.transformPlaceHolder=t;var s=B.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(e),this.listRef.current.style.transform="translate3d("+(s+r)+"px,0,0)")},i.prototype.setAnimationDirectly=function(t){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=t?this.props.customTransition||st:"none")},i.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},i.prototype.setClones=function(t,e,r,s){var a=this;s===void 0&&(s=!1),this.isAnimationAllowed=!1;var n=w.Children.toArray(this.props.children),u=v.getInitialSlideInInfiniteMode(t||this.state.slidesToShow,n),l=v.getClones(this.state.slidesToShow,n),d=n.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:l.length,currentSlide:r&&!s?d:u},function(){a.correctItemsPosition(e||a.state.itemWidth)})},i.prototype.setItemsToShow=function(t,e){var r=this,s=this.props.responsive;Object.keys(s).forEach(function(a){var n=s[a],u=n.breakpoint,l=n.items,d=u.max,c=u.min,h=[window.innerWidth];window.screen&&window.screen.width&&h.push(window.screen.width);var p=Math.min.apply(Math,h);c<=p&&p<=d&&(r.setState({slidesToShow:l,deviceType:a}),r.setContainerAndItemWidth(l,t,e))})},i.prototype.setContainerAndItemWidth=function(t,e,r){var s=this;if(this.containerRef&&this.containerRef.current){var a=this.containerRef.current.offsetWidth,n=v.getItemClientSideWidth(this.props,t,a);this.setState({containerWidth:a,itemWidth:n},function(){s.props.infinite&&s.setClones(t,n,e,r)}),e&&this.correctItemsPosition(n)}},i.prototype.correctItemsPosition=function(t,e,r){e&&(this.isAnimationAllowed=!0),!e&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var s=this.state.totalItems<this.state.slidesToShow?0:-t*this.state.currentSlide;r&&this.setTransformDirectly(s,!0),this.setState({transform:s})},i.prototype.onResize=function(t){var e;e=!!this.props.infinite&&(typeof t!="boolean"||!t),this.setItemsToShow(e)},i.prototype.componentDidUpdate=function(t,e){var r=this,s=t.keyBoardControl,a=t.autoPlay,n=t.children,u=e.containerWidth,l=e.domLoaded,d=e.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==u&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){r.setItemsToShow(!0)},this.props.transitionDuration||P)),s&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!s&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),a&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),a||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),n.length!==this.props.children.length?i.clonesTimeout=setTimeout(function(){r.props.infinite?r.setClones(r.state.slidesToShow,r.state.itemWidth,!0,!0):r.resetTotalItems()},this.props.transitionDuration||P):this.props.infinite&&this.state.currentSlide!==d&&this.correctClonesPosition({domLoaded:l}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&v.isInRightEnd(this.state)){var c=this.props.transitionDuration||P;i.isInThrottleTimeout=setTimeout(function(){r.setIsInThrottle(!1),r.resetAutoplayInterval(),r.goToSlide(0,void 0,!!r.props.rewindWithAnimation)},c+this.props.autoPlaySpeed)}},i.prototype.correctClonesPosition=function(t){var e=this,r=t.domLoaded,s=w.Children.toArray(this.props.children),a=v.checkClonesPosition(this.state,s,this.props),n=a.isReachingTheEnd,u=a.isReachingTheStart,l=a.nextSlide,d=a.nextPosition;this.state.domLoaded&&r&&(n||u)&&(this.isAnimationAllowed=!1,i.transformTimeout=setTimeout(function(){e.setState({transform:d,currentSlide:l})},this.props.transitionDuration||P))},i.prototype.next=function(t){var e=this;t===void 0&&(t=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!v.notEnoughChildren(this.state)){var n=v.populateNextSlides(this.state,this.props,t),u=n.nextSlides,l=n.nextPosition,d=this.state.currentSlide;u!==void 0&&l!==void 0&&(typeof a=="function"&&a(u,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:l,currentSlide:u},function(){typeof s=="function"&&(i.afterChangeTimeout=setTimeout(function(){s(d,e.getState())},e.props.transitionDuration||P))}))}},i.prototype.previous=function(t){var e=this;t===void 0&&(t=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!v.notEnoughChildren(this.state)){var n=v.populatePreviousSlides(this.state,this.props,t),u=n.nextSlides,l=n.nextPosition;if(u!==void 0&&l!==void 0){var d=this.state.currentSlide;typeof a=="function"&&a(u,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:l,currentSlide:u},function(){typeof s=="function"&&(i.afterChangeTimeout2=setTimeout(function(){s(d,e.getState())},e.props.transitionDuration||P))})}}},i.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},i.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),i.clonesTimeout&&clearTimeout(i.clonesTimeout),i.isInThrottleTimeout&&clearTimeout(i.isInThrottleTimeout),i.transformTimeout&&clearTimeout(i.transformTimeout),i.afterChangeTimeout&&clearTimeout(i.afterChangeTimeout),i.afterChangeTimeout2&&clearTimeout(i.afterChangeTimeout2),i.afterChangeTimeout3&&clearTimeout(i.afterChangeTimeout3)},i.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},i.prototype.getCords=function(t){var e=t.clientX,r=t.clientY;return{clientX:B.parsePosition(this.props,e),clientY:B.parsePosition(this.props,r)}},i.prototype.handleDown=function(t){if(!(!R.isMouseMoveEvent(t)&&!this.props.swipeable||R.isMouseMoveEvent(t)&&!this.props.draggable||this.isInThrottle)){var e=this.getCords(R.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,s=e.clientY;this.onMove=!0,this.initialX=r,this.initialY=s,this.lastX=r,this.isAnimationAllowed=!1}},i.prototype.handleMove=function(t){if(!(!R.isMouseMoveEvent(t)&&!this.props.swipeable||R.isMouseMoveEvent(t)&&!this.props.draggable||v.notEnoughChildren(this.state))){var e=this.getCords(R.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,s=e.clientY,a=this.initialX-r,n=this.initialY-s;if(this.onMove){if(!(Math.abs(a)>Math.abs(n)))return;var u=v.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),l=u.direction,d=u.nextPosition,c=u.canContinue;l&&(this.direction=l,c&&d!==void 0&&this.setTransformDirectly(d)),this.lastX=r}}},i.prototype.handleOut=function(t){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var e=t.type==="touchend"&&!this.props.swipeable,r=(t.type==="mouseleave"||t.type==="mouseup")&&!this.props.draggable;if(!e&&!r&&this.onMove){if(this.setAnimationDirectly(!0),this.direction==="right")if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var s=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(s)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(s=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(s)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},i.prototype.isInViewport=function(t){var e=t.getBoundingClientRect(),r=e.top,s=r===void 0?0:r,a=e.left,n=a===void 0?0:a,u=e.bottom,l=u===void 0?0:u,d=e.right,c=d===void 0?0:d;return 0<=s&&0<=n&&l<=(window.innerHeight||document.documentElement.clientHeight)&&c<=(window.innerWidth||document.documentElement.clientWidth)},i.prototype.isChildOfCarousel=function(t){return!!(t instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(t)},i.prototype.onKeyUp=function(t){var e=t.target;switch(t.keyCode){case 37:if(this.isChildOfCarousel(e))return this.previous();break;case 39:if(this.isChildOfCarousel(e))return this.next();break;case 9:if(this.isChildOfCarousel(e)&&e instanceof HTMLInputElement&&this.isInViewport(e))return this.next()}},i.prototype.handleEnter=function(t){R.isMouseMoveEvent(t)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},i.prototype.goToSlide=function(t,e,r){var s=this;if(r===void 0&&(r=!0),!this.isInThrottle){var a=this.state.itemWidth,n=this.props,u=n.afterChange,l=n.beforeChange,d=this.state.currentSlide;typeof l!="function"||e&&(typeof e!="object"||e.skipBeforeChange)||l(t,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:t,transform:-a*t},function(){s.props.infinite&&s.correctClonesPosition({domLoaded:!0}),typeof u!="function"||e&&(typeof e!="object"||e.skipAfterChange)||(i.afterChangeTimeout3=setTimeout(function(){u(d,s.getState())},s.props.transitionDuration||P))})}},i.prototype.getState=function(){return this.state},i.prototype.renderLeftArrow=function(t){var e=this,r=this.props,s=r.customLeftArrow,a=r.rtl;return w.createElement(nt.LeftArrow,{customLeftArrow:s,getState:function(){return e.getState()},previous:this.previous,disabled:t,rtl:a})},i.prototype.renderRightArrow=function(t){var e=this,r=this.props,s=r.customRightArrow,a=r.rtl;return w.createElement(nt.RightArrow,{customRightArrow:s,getState:function(){return e.getState()},next:this.next,disabled:t,rtl:a})},i.prototype.renderButtonGroups=function(){var t=this,e=this.props.customButtonGroup;return e?w.cloneElement(e,{previous:function(){return t.previous()},next:function(){return t.next()},goToSlide:function(r,s){return t.goToSlide(r,s)},carouselState:this.getState()}):null},i.prototype.renderDotsList=function(){var t=this;return w.createElement(Ht.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return t.getState()}})},i.prototype.renderCarouselItems=function(){var t=[];if(this.props.infinite){var e=w.Children.toArray(this.props.children);t=v.getClones(this.state.slidesToShow,e)}return w.createElement(te.default,{clones:t,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:v.notEnoughChildren(this.state),props:this.props})},i.prototype.render=function(){var t=this.props,e=t.deviceType,r=t.arrows,s=t.renderArrowsWhenDisabled,a=t.removeArrowOnDeviceType,n=t.infinite,u=t.containerClass,l=t.sliderClass,d=t.customTransition,c=t.additionalTransfrom,h=t.renderDotsOutside,p=t.renderButtonGroupOutside,f=t.className,g=t.rtl;process.env.NODE_ENV!=="production"&&v.throwError(this.state,this.props);var b=v.getInitialState(this.state,this.props),_=b.shouldRenderOnSSR,C=b.shouldRenderAtAll,y=v.isInLeftEnd(this.state),M=v.isInRightEnd(this.state),I=r&&!(a&&(e&&-1<a.indexOf(e)||this.state.deviceType&&-1<a.indexOf(this.state.deviceType)))&&!v.notEnoughChildren(this.state)&&C,O=!n&&y,W=!n&&M,j=B.getTransform(this.state,this.props);return w.createElement(w.Fragment,null,w.createElement("div",{className:"react-multi-carousel-list "+u+" "+f,dir:g?"rtl":"ltr",ref:this.containerRef},w.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+l,style:{transition:this.isAnimationAllowed?d||st:"none",overflow:_?"hidden":"unset",transform:"translate3d("+(j+c)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),I&&(!O||s)&&this.renderLeftArrow(O),I&&(!W||s)&&this.renderRightArrow(W),C&&!p&&this.renderButtonGroups(),C&&!h&&this.renderDotsList()),C&&h&&this.renderDotsList(),C&&p&&this.renderButtonGroups())},i.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},i}(w.Component);K.default=ee;Object.defineProperty(q,"__esModule",{value:!0});var ie=K;q.default=ie.default;var oe=q;const re=k.getDefaultExportFromCjs(oe),ne=at.styled.div`
1
+ "use strict";const S=require("react/jsx-runtime"),E=require("react"),k=require("./_commonjsHelpers-DwTZ_eVU.cjs"),D=require("./index-BpbMKBf_.cjs"),vt=require("./Button.cjs"),gt=require("./useDetectMobile-zkbzoOGV.cjs"),at=require("./emotion-styled.browser.esm-BtEseadx.cjs"),lt=require("./style-BAcV7F53.cjs"),yt=require("./consts-goSZX3xP.cjs");var q={},K={},m={},F={};(function(o){function i(a,n,l){var d=n.slidesToShow,h=n.currentSlide;return l.length>2*d?a+2*d:h>=l.length?l.length+a:a}function t(a,n){if(n.length>2*a){for(var l={},d=n.length-2*a,h=n.length-d,u=d,c=0;c<h;c++)l[c]=u,u++;var p=n.length+h,f=p+n.slice(0,2*a).length,g=0;for(c=p;c<=f;c++)l[c]=g,g++;var b=p,_=0;for(c=h;c<b;c++)l[c]=_,_++;return l}l={};var C=3*n.length,y=0;for(c=0;c<C;c++)l[c]=y,++y===n.length&&(y=0);return l}function e(a,n){return n.length<a?n:n.length>2*a?n.slice(n.length-2*a,n.length).concat(n,n.slice(0,2*a)):n.concat(n,n)}function r(a,n){return n.length>2*a?2*a:n.length}function s(a,n,l){var d,h=a.currentSlide,u=a.slidesToShow,c=a.itemWidth,p=a.totalItems,f=0,g=0,b=h===0,_=n.length-(n.length-2*u);return n.length<u?(g=f=0,b=d=!1):n.length>2*u?((d=h>=_+n.length)&&(g=-c*(f=h-n.length)),b&&(g=-c*(f=_+(n.length-2*u)))):((d=h>=2*n.length)&&(g=-c*(f=h-n.length)),b&&(g=l.showDots?-c*(f=n.length):-c*(f=p/3))),{isReachingTheEnd:d,isReachingTheStart:b,nextSlide:f,nextPosition:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.getOriginalCounterPart=i,o.getOriginalIndexLookupTableByClones=t,o.getClones=e,o.getInitialSlideInInfiniteMode=r,o.checkClonesPosition=s})(F);var A={};Object.defineProperty(A,"__esModule",{value:!0});var ot=!1;function St(o,i,t,e){var r=0,s=e||t;return i&&s&&(!ot&&process.env.NODE_ENV!=="production"&&o[s].paritialVisibilityGutter&&(ot=!0,console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")),r=o[s].partialVisibilityGutter||o[s].paritialVisibilityGutter),r}function Tt(o,i){var t;return i[o]&&(t=(100/i[o].items).toFixed(1)),t}function wt(o,i,t){return Math.round(t/(i+(o.centerMode?1:0)))}A.getPartialVisibilityGutter=St,A.getWidthFromDeviceType=Tt,A.getItemClientSideWidth=wt;var T={};Object.defineProperty(T,"__esModule",{value:!0});var Y=A;function Z(o){var i=o.slidesToShow;return o.totalItems<i}function bt(o,i){var t,e=o.domLoaded,r=o.slidesToShow,s=o.containerWidth,a=o.itemWidth,n=i.deviceType,l=i.responsive,d=i.ssr,h=i.partialVisbile,u=i.partialVisible,c=!!(e&&r&&s&&a);d&&n&&!c&&(t=Y.getWidthFromDeviceType(n,l));var p=!!(d&&n&&!c&&t);return{shouldRenderOnSSR:p,flexBisis:t,domFullyLoaded:c,partialVisibilityGutter:Y.getPartialVisibilityGutter(l,h||u,n,o.deviceType),shouldRenderAtAll:p||c}}function _t(o,i){var t=i.currentSlide,e=i.slidesToShow;return t<=o&&o<t+e}function ut(o,i,t){var e=t||o.transform;return!i.infinite&&o.currentSlide===0||Z(o)?e:e+o.itemWidth/2}function Ct(o){return!(0<o.currentSlide)}function dt(o){var i=o.currentSlide,t=o.totalItems;return!(i+o.slidesToShow<t)}function ht(o,i,t,e){i===void 0&&(i=0);var r=o.currentSlide,s=o.slidesToShow,a=dt(o),n=!t.infinite&&a,l=e||o.transform;if(Z(o))return l;var d=l+r*i;return n?d+(o.containerWidth-(o.itemWidth-i)*s):d}function ct(o,i){return o.rtl?-1*i:i}function It(o,i,t){var e=i.partialVisbile,r=i.partialVisible,s=i.responsive,a=i.deviceType,n=i.centerMode,l=t||o.transform,d=Y.getPartialVisibilityGutter(s,e||r,a,o.deviceType);return ct(i,r||e?ht(o,d,i,t):n?ut(o,i,t):l)}function Mt(o,i){var t=o.domLoaded,e=o.slidesToShow,r=o.containerWidth,s=o.itemWidth,a=i.deviceType,n=i.responsive,l=i.slidesToSlide||1,d=!!(t&&e&&r&&s);return i.ssr&&i.deviceType&&!d&&Object.keys(n).forEach(function(h){var u=n[h].slidesToSlide;a===h&&u&&(l=u)}),d&&Object.keys(n).forEach(function(h){var u=n[h],c=u.breakpoint,p=u.slidesToSlide,f=c.max,g=c.min;p&&window.innerWidth>=g&&window.innerWidth<=f&&(l=p)}),l}T.notEnoughChildren=Z,T.getInitialState=bt,T.getIfSlideIsVisbile=_t,T.getTransformForCenterMode=ut,T.isInLeftEnd=Ct,T.isInRightEnd=dt,T.getTransformForPartialVsibile=ht,T.parsePosition=ct,T.getTransform=It,T.getSlidesToSlide=Mt;var J={};Object.defineProperty(J,"__esModule",{value:!0});var Pt=function(o,i,t){var e;return function(){var r=arguments;e||(o.apply(this,r),e=!0,typeof t=="function"&&t(!0),setTimeout(function(){e=!1,typeof t=="function"&&t(!1)},i))}};J.default=Pt;var pt={};(function(o){function i(t,e){var r=e.partialVisbile,s=e.partialVisible,a=e.centerMode,n=e.ssr,l=e.responsive;if((r||s)&&a)throw new Error("center mode can not be used at the same time with partialVisible");if(!l)throw n?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(l&&typeof l!="object")throw new Error("responsive prop must be an object")}Object.defineProperty(o,"__esModule",{value:!0}),o.default=i})(pt);var Q={};Object.defineProperty(Q,"__esModule",{value:!0});var xt=T;function Et(o,i,t){t===void 0&&(t=0);var e,r,s=o.slidesToShow,a=o.currentSlide,n=o.itemWidth,l=o.totalItems,d=xt.getSlidesToSlide(o,i),h=a+1+t+s+(0<t?0:d);return r=h<=l?-n*(e=a+t+(0<t?0:d)):l<h&&a!==l-s?-n*(e=l-s):e=void 0,{nextSlides:e,nextPosition:r}}Q.populateNextSlides=Et;var H={};Object.defineProperty(H,"__esModule",{value:!0});var Rt=E,Ot=T,At=T;function Wt(o,i,t){t===void 0&&(t=0);var e,r,s=o.currentSlide,a=o.itemWidth,n=o.slidesToShow,l=i.children,d=i.showDots,h=i.infinite,u=Ot.getSlidesToSlide(o,i),c=s-t-(0<t?0:u),p=(Rt.Children.toArray(l).length-n)%u;return r=0<=c?(e=c,d&&!h&&0<p&&At.isInRightEnd(o)&&(e=s-p),-a*e):e=c<0&&s!==0?0:void 0,{nextSlides:e,nextPosition:r}}H.populatePreviousSlides=Wt;var ft={};(function(o){function i(t,e,r,s,a,n){var l,d,h=t.itemWidth,u=t.slidesToShow,c=t.totalItems,p=t.currentSlide,f=e.infinite,g=!1,b=Math.round((r-s)/h),_=Math.round((s-r)/h),C=r<a;if(a<r&&b<=u){l="right";var y=Math.abs(-h*(c-u)),M=n-(s-a),I=p===c-u;(Math.abs(M)<=y||I&&f)&&(d=M,g=!0)}return C&&_<=u&&(l="left",((M=n+(a-s))<=0||p===0&&f)&&(g=!0,d=M)),{direction:l,nextPosition:d,canContinue:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.populateSlidesOnMouseTouchMove=i})(ft);Object.defineProperty(m,"__esModule",{value:!0});var V=F;m.getOriginalCounterPart=V.getOriginalCounterPart,m.getClones=V.getClones,m.checkClonesPosition=V.checkClonesPosition,m.getInitialSlideInInfiniteMode=V.getInitialSlideInInfiniteMode;var X=A;m.getWidthFromDeviceType=X.getWidthFromDeviceType,m.getPartialVisibilityGutter=X.getPartialVisibilityGutter,m.getItemClientSideWidth=X.getItemClientSideWidth;var x=T;m.getInitialState=x.getInitialState,m.getIfSlideIsVisbile=x.getIfSlideIsVisbile,m.getTransformForCenterMode=x.getTransformForCenterMode,m.getTransformForPartialVsibile=x.getTransformForPartialVsibile,m.isInLeftEnd=x.isInLeftEnd,m.isInRightEnd=x.isInRightEnd,m.notEnoughChildren=x.notEnoughChildren,m.getSlidesToSlide=x.getSlidesToSlide;var Dt=J;m.throttle=Dt.default;var Lt=pt;m.throwError=Lt.default;var kt=Q;m.populateNextSlides=kt.populateNextSlides;var jt=H;m.populatePreviousSlides=jt.populatePreviousSlides;var Vt=ft;m.populateSlidesOnMouseTouchMove=Vt.populateSlidesOnMouseTouchMove;var $={},Gt=k.commonjsGlobal&&k.commonjsGlobal.__extends||function(){var o=function(i,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(i,t)};return function(i,t){function e(){this.constructor=i}o(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty($,"__esModule",{value:!0});var Bt=E;function Nt(o){return"clientY"in o}$.isMouseMoveEvent=Nt;var Ft=function(o){function i(){return o!==null&&o.apply(this,arguments)||this}return Gt(i,o),i}(Bt.Component);$.default=Ft;var tt={},et={};Object.defineProperty(et,"__esModule",{value:!0});var $t=F,zt=T;function Xt(o,i,t,e){var r={},s=zt.getSlidesToSlide(i,t);return Array(o).fill(0).forEach(function(a,n){var l=$t.getOriginalCounterPart(n,i,e);if(n===0)r[0]=l;else{var d=r[n-1]+s;r[n]=d}}),r}et.getLookupTableForNextSlides=Xt;Object.defineProperty(tt,"__esModule",{value:!0});var L=E,Ut=F,Yt=et,rt=T,qt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.getState,s=i.showDots,a=i.customDot,n=i.dotListClass,l=i.infinite,d=i.children;if(!s||rt.notEnoughChildren(t))return null;var h,u=t.currentSlide,c=t.slidesToShow,p=rt.getSlidesToSlide(t,i),f=L.Children.toArray(d);h=l?Math.ceil(f.length/p):Math.ceil((f.length-c)/p)+1;var g=Yt.getLookupTableForNextSlides(h,t,i,f),b=Ut.getOriginalIndexLookupTableByClones(c,f),_=b[u];return L.createElement("ul",{className:"react-multi-carousel-dot-list "+n},Array(h).fill(0).map(function(C,y){var M,I;if(l){I=g[y];var O=b[I];M=_===O||O<=_&&_<O+p}else{var W=f.length-c,j=y*p;M=(I=W<j?W:j)===u||I<u&&u<I+p&&u<f.length-c}return a?L.cloneElement(a,{index:y,active:M,key:y,onClick:function(){return e(I)},carouselState:r()}):L.createElement("li",{"data-index":y,key:y,className:"react-multi-carousel-dot "+(M?"react-multi-carousel-dot--active":"")},L.createElement("button",{"aria-label":"Go to slide "+(y+1),onClick:function(){return e(I)}}))}))};tt.default=qt;var z={};Object.defineProperty(z,"__esModule",{value:!0});var N=E,Kt=function(o){var i=o.customLeftArrow,t=o.getState,e=o.previous,r=o.disabled,s=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:s});var a=s?"rtl":"";return N.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+a,onClick:function(){return e()},type:"button",disabled:r})};z.LeftArrow=Kt;var Zt=function(o){var i=o.customRightArrow,t=o.getState,e=o.next,r=o.disabled,s=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:s});var a=s?"rtl":"";return N.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+a,onClick:function(){return e()},type:"button",disabled:r})};z.RightArrow=Zt;var it={};Object.defineProperty(it,"__esModule",{value:!0});var G=E,U=m,Jt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.clones,s=o.notEnoughChildren,a=t.itemWidth,n=i.children,l=i.infinite,d=i.itemClass,h=i.itemAriaLabel,u=i.partialVisbile,c=i.partialVisible,p=U.getInitialState(t,i),f=p.flexBisis,g=p.shouldRenderOnSSR,b=p.domFullyLoaded,_=p.partialVisibilityGutter;return p.shouldRenderAtAll?(u&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),G.createElement(G.Fragment,null,(l?r:G.Children.toArray(n)).map(function(C,y){return G.createElement("li",{key:y,"data-index":y,onClick:function(){i.focusOnSelect&&e(y)},"aria-hidden":U.getIfSlideIsVisbile(y,t)?"false":"true","aria-label":h||(C.props.ariaLabel?C.props.ariaLabel:null),style:{flex:g?"1 0 "+f+"%":"auto",position:"relative",width:b?((u||c)&&_&&!s?a-_:a)+"px":"auto"},className:"react-multi-carousel-item "+(U.getIfSlideIsVisbile(y,t)?"react-multi-carousel-item--active":"")+" "+d},C)}))):null};it.default=Jt;var Qt=k.commonjsGlobal&&k.commonjsGlobal.__extends||function(){var o=function(i,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(i,t)};return function(i,t){function e(){this.constructor=i}o(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(K,"__esModule",{value:!0});var w=E,v=m,R=$,Ht=tt,nt=z,te=it,B=T,P=400,st="transform 400ms ease-in-out",ee=function(o){function i(t){var e=o.call(this,t)||this;return e.containerRef=w.createRef(),e.listRef=w.createRef(),e.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:w.Children.count(t.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},e.onResize=e.onResize.bind(e),e.handleDown=e.handleDown.bind(e),e.handleMove=e.handleMove.bind(e),e.handleOut=e.handleOut.bind(e),e.onKeyUp=e.onKeyUp.bind(e),e.handleEnter=e.handleEnter.bind(e),e.setIsInThrottle=e.setIsInThrottle.bind(e),e.next=v.throttle(e.next.bind(e),t.transitionDuration||P,e.setIsInThrottle),e.previous=v.throttle(e.previous.bind(e),t.transitionDuration||P,e.setIsInThrottle),e.goToSlide=v.throttle(e.goToSlide.bind(e),t.transitionDuration||P,e.setIsInThrottle),e.onMove=!1,e.initialX=0,e.lastX=0,e.isAnimationAllowed=!1,e.direction="",e.initialY=0,e.isInThrottle=!1,e.transformPlaceHolder=0,e}return Qt(i,o),i.prototype.resetTotalItems=function(){var t=this,e=w.Children.count(this.props.children),r=v.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,e));this.setState({totalItems:e,currentSlide:r},function(){t.setContainerAndItemWidth(t.state.slidesToShow,!0)})},i.prototype.setIsInThrottle=function(t){t===void 0&&(t=!1),this.isInThrottle=t},i.prototype.setTransformDirectly=function(t,e){var r=this.props.additionalTransfrom;this.transformPlaceHolder=t;var s=B.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(e),this.listRef.current.style.transform="translate3d("+(s+r)+"px,0,0)")},i.prototype.setAnimationDirectly=function(t){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=t?this.props.customTransition||st:"none")},i.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},i.prototype.setClones=function(t,e,r,s){var a=this;s===void 0&&(s=!1),this.isAnimationAllowed=!1;var n=w.Children.toArray(this.props.children),l=v.getInitialSlideInInfiniteMode(t||this.state.slidesToShow,n),d=v.getClones(this.state.slidesToShow,n),h=n.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:d.length,currentSlide:r&&!s?h:l},function(){a.correctItemsPosition(e||a.state.itemWidth)})},i.prototype.setItemsToShow=function(t,e){var r=this,s=this.props.responsive;Object.keys(s).forEach(function(a){var n=s[a],l=n.breakpoint,d=n.items,h=l.max,u=l.min,c=[window.innerWidth];window.screen&&window.screen.width&&c.push(window.screen.width);var p=Math.min.apply(Math,c);u<=p&&p<=h&&(r.setState({slidesToShow:d,deviceType:a}),r.setContainerAndItemWidth(d,t,e))})},i.prototype.setContainerAndItemWidth=function(t,e,r){var s=this;if(this.containerRef&&this.containerRef.current){var a=this.containerRef.current.offsetWidth,n=v.getItemClientSideWidth(this.props,t,a);this.setState({containerWidth:a,itemWidth:n},function(){s.props.infinite&&s.setClones(t,n,e,r)}),e&&this.correctItemsPosition(n)}},i.prototype.correctItemsPosition=function(t,e,r){e&&(this.isAnimationAllowed=!0),!e&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var s=this.state.totalItems<this.state.slidesToShow?0:-t*this.state.currentSlide;r&&this.setTransformDirectly(s,!0),this.setState({transform:s})},i.prototype.onResize=function(t){var e;e=!!this.props.infinite&&(typeof t!="boolean"||!t),this.setItemsToShow(e)},i.prototype.componentDidUpdate=function(t,e){var r=this,s=t.keyBoardControl,a=t.autoPlay,n=t.children,l=e.containerWidth,d=e.domLoaded,h=e.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==l&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){r.setItemsToShow(!0)},this.props.transitionDuration||P)),s&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!s&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),a&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),a||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),n.length!==this.props.children.length?i.clonesTimeout=setTimeout(function(){r.props.infinite?r.setClones(r.state.slidesToShow,r.state.itemWidth,!0,!0):r.resetTotalItems()},this.props.transitionDuration||P):this.props.infinite&&this.state.currentSlide!==h&&this.correctClonesPosition({domLoaded:d}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&v.isInRightEnd(this.state)){var u=this.props.transitionDuration||P;i.isInThrottleTimeout=setTimeout(function(){r.setIsInThrottle(!1),r.resetAutoplayInterval(),r.goToSlide(0,void 0,!!r.props.rewindWithAnimation)},u+this.props.autoPlaySpeed)}},i.prototype.correctClonesPosition=function(t){var e=this,r=t.domLoaded,s=w.Children.toArray(this.props.children),a=v.checkClonesPosition(this.state,s,this.props),n=a.isReachingTheEnd,l=a.isReachingTheStart,d=a.nextSlide,h=a.nextPosition;this.state.domLoaded&&r&&(n||l)&&(this.isAnimationAllowed=!1,i.transformTimeout=setTimeout(function(){e.setState({transform:h,currentSlide:d})},this.props.transitionDuration||P))},i.prototype.next=function(t){var e=this;t===void 0&&(t=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!v.notEnoughChildren(this.state)){var n=v.populateNextSlides(this.state,this.props,t),l=n.nextSlides,d=n.nextPosition,h=this.state.currentSlide;l!==void 0&&d!==void 0&&(typeof a=="function"&&a(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:d,currentSlide:l},function(){typeof s=="function"&&(i.afterChangeTimeout=setTimeout(function(){s(h,e.getState())},e.props.transitionDuration||P))}))}},i.prototype.previous=function(t){var e=this;t===void 0&&(t=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!v.notEnoughChildren(this.state)){var n=v.populatePreviousSlides(this.state,this.props,t),l=n.nextSlides,d=n.nextPosition;if(l!==void 0&&d!==void 0){var h=this.state.currentSlide;typeof a=="function"&&a(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:d,currentSlide:l},function(){typeof s=="function"&&(i.afterChangeTimeout2=setTimeout(function(){s(h,e.getState())},e.props.transitionDuration||P))})}}},i.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},i.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),i.clonesTimeout&&clearTimeout(i.clonesTimeout),i.isInThrottleTimeout&&clearTimeout(i.isInThrottleTimeout),i.transformTimeout&&clearTimeout(i.transformTimeout),i.afterChangeTimeout&&clearTimeout(i.afterChangeTimeout),i.afterChangeTimeout2&&clearTimeout(i.afterChangeTimeout2),i.afterChangeTimeout3&&clearTimeout(i.afterChangeTimeout3)},i.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},i.prototype.getCords=function(t){var e=t.clientX,r=t.clientY;return{clientX:B.parsePosition(this.props,e),clientY:B.parsePosition(this.props,r)}},i.prototype.handleDown=function(t){if(!(!R.isMouseMoveEvent(t)&&!this.props.swipeable||R.isMouseMoveEvent(t)&&!this.props.draggable||this.isInThrottle)){var e=this.getCords(R.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,s=e.clientY;this.onMove=!0,this.initialX=r,this.initialY=s,this.lastX=r,this.isAnimationAllowed=!1}},i.prototype.handleMove=function(t){if(!(!R.isMouseMoveEvent(t)&&!this.props.swipeable||R.isMouseMoveEvent(t)&&!this.props.draggable||v.notEnoughChildren(this.state))){var e=this.getCords(R.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,s=e.clientY,a=this.initialX-r,n=this.initialY-s;if(this.onMove){if(!(Math.abs(a)>Math.abs(n)))return;var l=v.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),d=l.direction,h=l.nextPosition,u=l.canContinue;d&&(this.direction=d,u&&h!==void 0&&this.setTransformDirectly(h)),this.lastX=r}}},i.prototype.handleOut=function(t){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var e=t.type==="touchend"&&!this.props.swipeable,r=(t.type==="mouseleave"||t.type==="mouseup")&&!this.props.draggable;if(!e&&!r&&this.onMove){if(this.setAnimationDirectly(!0),this.direction==="right")if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var s=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(s)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(s=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(s)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},i.prototype.isInViewport=function(t){var e=t.getBoundingClientRect(),r=e.top,s=r===void 0?0:r,a=e.left,n=a===void 0?0:a,l=e.bottom,d=l===void 0?0:l,h=e.right,u=h===void 0?0:h;return 0<=s&&0<=n&&d<=(window.innerHeight||document.documentElement.clientHeight)&&u<=(window.innerWidth||document.documentElement.clientWidth)},i.prototype.isChildOfCarousel=function(t){return!!(t instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(t)},i.prototype.onKeyUp=function(t){var e=t.target;switch(t.keyCode){case 37:if(this.isChildOfCarousel(e))return this.previous();break;case 39:if(this.isChildOfCarousel(e))return this.next();break;case 9:if(this.isChildOfCarousel(e)&&e instanceof HTMLInputElement&&this.isInViewport(e))return this.next()}},i.prototype.handleEnter=function(t){R.isMouseMoveEvent(t)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},i.prototype.goToSlide=function(t,e,r){var s=this;if(r===void 0&&(r=!0),!this.isInThrottle){var a=this.state.itemWidth,n=this.props,l=n.afterChange,d=n.beforeChange,h=this.state.currentSlide;typeof d!="function"||e&&(typeof e!="object"||e.skipBeforeChange)||d(t,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:t,transform:-a*t},function(){s.props.infinite&&s.correctClonesPosition({domLoaded:!0}),typeof l!="function"||e&&(typeof e!="object"||e.skipAfterChange)||(i.afterChangeTimeout3=setTimeout(function(){l(h,s.getState())},s.props.transitionDuration||P))})}},i.prototype.getState=function(){return this.state},i.prototype.renderLeftArrow=function(t){var e=this,r=this.props,s=r.customLeftArrow,a=r.rtl;return w.createElement(nt.LeftArrow,{customLeftArrow:s,getState:function(){return e.getState()},previous:this.previous,disabled:t,rtl:a})},i.prototype.renderRightArrow=function(t){var e=this,r=this.props,s=r.customRightArrow,a=r.rtl;return w.createElement(nt.RightArrow,{customRightArrow:s,getState:function(){return e.getState()},next:this.next,disabled:t,rtl:a})},i.prototype.renderButtonGroups=function(){var t=this,e=this.props.customButtonGroup;return e?w.cloneElement(e,{previous:function(){return t.previous()},next:function(){return t.next()},goToSlide:function(r,s){return t.goToSlide(r,s)},carouselState:this.getState()}):null},i.prototype.renderDotsList=function(){var t=this;return w.createElement(Ht.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return t.getState()}})},i.prototype.renderCarouselItems=function(){var t=[];if(this.props.infinite){var e=w.Children.toArray(this.props.children);t=v.getClones(this.state.slidesToShow,e)}return w.createElement(te.default,{clones:t,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:v.notEnoughChildren(this.state),props:this.props})},i.prototype.render=function(){var t=this.props,e=t.deviceType,r=t.arrows,s=t.renderArrowsWhenDisabled,a=t.removeArrowOnDeviceType,n=t.infinite,l=t.containerClass,d=t.sliderClass,h=t.customTransition,u=t.additionalTransfrom,c=t.renderDotsOutside,p=t.renderButtonGroupOutside,f=t.className,g=t.rtl;process.env.NODE_ENV!=="production"&&v.throwError(this.state,this.props);var b=v.getInitialState(this.state,this.props),_=b.shouldRenderOnSSR,C=b.shouldRenderAtAll,y=v.isInLeftEnd(this.state),M=v.isInRightEnd(this.state),I=r&&!(a&&(e&&-1<a.indexOf(e)||this.state.deviceType&&-1<a.indexOf(this.state.deviceType)))&&!v.notEnoughChildren(this.state)&&C,O=!n&&y,W=!n&&M,j=B.getTransform(this.state,this.props);return w.createElement(w.Fragment,null,w.createElement("div",{className:"react-multi-carousel-list "+l+" "+f,dir:g?"rtl":"ltr",ref:this.containerRef},w.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+d,style:{transition:this.isAnimationAllowed?h||st:"none",overflow:_?"hidden":"unset",transform:"translate3d("+(j+u)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),I&&(!O||s)&&this.renderLeftArrow(O),I&&(!W||s)&&this.renderRightArrow(W),C&&!p&&this.renderButtonGroups(),C&&!c&&this.renderDotsList()),C&&c&&this.renderDotsList(),C&&p&&this.renderButtonGroups())},i.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},i}(w.Component);K.default=ee;Object.defineProperty(q,"__esModule",{value:!0});var ie=K;q.default=ie.default;var oe=q;const re=k.getDefaultExportFromCjs(oe),ne=at.styled.div`
2
2
  &:hover {
3
3
  cursor: pointer;
4
4
 
@@ -174,4 +174,4 @@
174
174
  aspect-ratio: 1 / 1;
175
175
  }
176
176
  }
177
- `,ae=({keyPrefix:o})=>S.jsx(se,{noGradient:!0,children:S.jsx(lt.SkeletonLinePlaceholder,{keyPrefix:`${o}-1`,height:"22.5rem"})}),le=({keyPrefix:o,isLoading:i=!1,fallbackComponent:t=S.jsx(S.Fragment,{}),children:e})=>S.jsx(E.Suspense,{fallbackComponent:t,children:i===!0?S.jsx(ae,{keyPrefix:o}):e}),mt=E.forwardRef(({items:o=[],isLoading:i=!1,deviceType:t,fallbackComponent:e=S.jsx(S.Fragment,{}),onSelectItem:r=()=>{},onButtonAction:s=()=>{}},a)=>{const n={desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:64}},u=gt.useDetectMobile();return S.jsx(ne,{ref:a,children:S.jsx(le,{fallbackComponent:e,keyPrefix:"banner-carousel-skeleton",isLoading:i,children:S.jsx(re,{responsive:n,deviceType:t,removeArrowOnDeviceType:["tablet","mobile"],infinite:!u,keyBoardControl:!0,autoPlay:!0,partialVisible:!0,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,children:o==null?void 0:o.map((l,d)=>S.jsxs("div",{className:"section__card",onClick:()=>r(l),children:[S.jsx("img",{src:l==null?void 0:l.imageUrl,alt:`Slide ${d+1}`,className:"section__image"}),S.jsxs("div",{className:"card__content",children:[S.jsxs("div",{className:"card__text",children:[(l==null?void 0:l.title)&&S.jsx("div",{className:"card__title",children:l==null?void 0:l.title}),(l==null?void 0:l.title)&&S.jsx("div",{className:"card__description",children:l==null?void 0:l.description})]}),(l==null?void 0:l.buttonText)&&S.jsx(vt,{text:l==null?void 0:l.buttonText,className:"card__action",size:"medium",onClick:c=>{c==null||c.stopPropagation(),s(l)}})]})]},`banner-section-carousel-item__${d+1}`))})})},`banner-section-carousel__${u}`)});mt.propTypes={items:D.PropTypes.array,isLoading:D.PropTypes.bool,fallbackComponent:D.PropTypes.any,onSelectItem:D.PropTypes.func,onButtonAction:D.PropTypes.func};module.exports=mt;
177
+ `,ae=({keyPrefix:o})=>S.jsx(se,{noGradient:!0,children:S.jsx(lt.SkeletonLinePlaceholder,{keyPrefix:`${o}-1`,height:"22.5rem"})}),le=({keyPrefix:o,isLoading:i=!1,fallbackComponent:t=S.jsx(S.Fragment,{}),children:e})=>S.jsx(E.Suspense,{fallbackComponent:t,children:i===!0?S.jsx(ae,{keyPrefix:o}):e}),mt=E.forwardRef(({items:o=[],isLoading:i=!1,deviceType:t,partialVisible:e=!0,fallbackComponent:r=S.jsx(S.Fragment,{}),onSelectItem:s=()=>{},onButtonAction:a=()=>{},carouselProps:n},l)=>{const d={desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:64}},h=gt.useDetectMobile();return S.jsx(ne,{ref:l,children:S.jsx(le,{fallbackComponent:r,keyPrefix:"banner-carousel-skeleton",isLoading:i,children:S.jsx(re,{responsive:d,deviceType:t,removeArrowOnDeviceType:["tablet","mobile"],infinite:!h,keyBoardControl:!0,autoPlay:!0,partialVisible:e,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,...n,children:o==null?void 0:o.map((u,c)=>S.jsxs("div",{className:"section__card",onClick:()=>s(u),children:[S.jsx("img",{src:u==null?void 0:u.imageUrl,alt:`Slide ${c+1}`,className:"section__image"}),S.jsxs("div",{className:"card__content",children:[S.jsxs("div",{className:"card__text",children:[(u==null?void 0:u.title)&&S.jsx("div",{className:"card__title",children:u==null?void 0:u.title}),(u==null?void 0:u.title)&&S.jsx("div",{className:"card__description",children:u==null?void 0:u.description})]}),(u==null?void 0:u.buttonText)&&S.jsx(vt,{text:u==null?void 0:u.buttonText,className:"card__action",size:"medium",onClick:p=>{p==null||p.stopPropagation(),a(u)}})]})]},`banner-section-carousel-item__${c+1}`))})})},`banner-section-carousel__${h}`)});mt.propTypes={items:D.PropTypes.array,isLoading:D.PropTypes.bool,fallbackComponent:D.PropTypes.any,onSelectItem:D.PropTypes.func,onButtonAction:D.PropTypes.func};module.exports=mt;
@@ -9,23 +9,23 @@ import { S as wt, b as bt } from "./style-CXMUA6cI.js";
9
9
  import { M as _t } from "./consts-BuFChS64.js";
10
10
  var Z = {}, q = {}, m = {}, F = {};
11
11
  (function(o) {
12
- function i(a, n, u) {
13
- var l = n.slidesToShow, h = n.currentSlide;
14
- return u.length > 2 * l ? a + 2 * l : h >= u.length ? u.length + a : a;
12
+ function i(a, n, l) {
13
+ var h = n.slidesToShow, d = n.currentSlide;
14
+ return l.length > 2 * h ? a + 2 * h : d >= l.length ? l.length + a : a;
15
15
  }
16
16
  function t(a, n) {
17
17
  if (n.length > 2 * a) {
18
- for (var u = {}, l = n.length - 2 * a, h = n.length - l, c = l, d = 0; d < h; d++) u[d] = c, c++;
19
- var p = n.length + h, f = p + n.slice(0, 2 * a).length, g = 0;
20
- for (d = p; d <= f; d++) u[d] = g, g++;
18
+ for (var l = {}, h = n.length - 2 * a, d = n.length - h, u = h, c = 0; c < d; c++) l[c] = u, u++;
19
+ var p = n.length + d, f = p + n.slice(0, 2 * a).length, g = 0;
20
+ for (c = p; c <= f; c++) l[c] = g, g++;
21
21
  var w = p, b = 0;
22
- for (d = h; d < w; d++) u[d] = b, b++;
23
- return u;
22
+ for (c = d; c < w; c++) l[c] = b, b++;
23
+ return l;
24
24
  }
25
- u = {};
25
+ l = {};
26
26
  var _ = 3 * n.length, y = 0;
27
- for (d = 0; d < _; d++) u[d] = y, ++y === n.length && (y = 0);
28
- return u;
27
+ for (c = 0; c < _; c++) l[c] = y, ++y === n.length && (y = 0);
28
+ return l;
29
29
  }
30
30
  function e(a, n) {
31
31
  return n.length < a ? n : n.length > 2 * a ? n.slice(n.length - 2 * a, n.length).concat(n, n.slice(0, 2 * a)) : n.concat(n, n);
@@ -33,9 +33,9 @@ var Z = {}, q = {}, m = {}, F = {};
33
33
  function r(a, n) {
34
34
  return n.length > 2 * a ? 2 * a : n.length;
35
35
  }
36
- function s(a, n, u) {
37
- var l, h = a.currentSlide, c = a.slidesToShow, d = a.itemWidth, p = a.totalItems, f = 0, g = 0, w = h === 0, b = n.length - (n.length - 2 * c);
38
- return n.length < c ? (g = f = 0, w = l = !1) : n.length > 2 * c ? ((l = h >= b + n.length) && (g = -d * (f = h - n.length)), w && (g = -d * (f = b + (n.length - 2 * c)))) : ((l = h >= 2 * n.length) && (g = -d * (f = h - n.length)), w && (g = u.showDots ? -d * (f = n.length) : -d * (f = p / 3))), { isReachingTheEnd: l, isReachingTheStart: w, nextSlide: f, nextPosition: g };
36
+ function s(a, n, l) {
37
+ var h, d = a.currentSlide, u = a.slidesToShow, c = a.itemWidth, p = a.totalItems, f = 0, g = 0, w = d === 0, b = n.length - (n.length - 2 * u);
38
+ return n.length < u ? (g = f = 0, w = h = !1) : n.length > 2 * u ? ((h = d >= b + n.length) && (g = -c * (f = d - n.length)), w && (g = -c * (f = b + (n.length - 2 * u)))) : ((h = d >= 2 * n.length) && (g = -c * (f = d - n.length)), w && (g = l.showDots ? -c * (f = n.length) : -c * (f = p / 3))), { isReachingTheEnd: h, isReachingTheStart: w, nextSlide: f, nextPosition: g };
39
39
  }
40
40
  Object.defineProperty(o, "__esModule", { value: !0 }), o.getOriginalCounterPart = i, o.getOriginalIndexLookupTableByClones = t, o.getClones = e, o.getInitialSlideInInfiniteMode = r, o.checkClonesPosition = s;
41
41
  })(F);
@@ -62,10 +62,10 @@ function J(o) {
62
62
  return o.totalItems < i;
63
63
  }
64
64
  function Pt(o, i) {
65
- var t, e = o.domLoaded, r = o.slidesToShow, s = o.containerWidth, a = o.itemWidth, n = i.deviceType, u = i.responsive, l = i.ssr, h = i.partialVisbile, c = i.partialVisible, d = !!(e && r && s && a);
66
- l && n && !d && (t = K.getWidthFromDeviceType(n, u));
67
- var p = !!(l && n && !d && t);
68
- return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: d, partialVisibilityGutter: K.getPartialVisibilityGutter(u, h || c, n, o.deviceType), shouldRenderAtAll: p || d };
65
+ var t, e = o.domLoaded, r = o.slidesToShow, s = o.containerWidth, a = o.itemWidth, n = i.deviceType, l = i.responsive, h = i.ssr, d = i.partialVisbile, u = i.partialVisible, c = !!(e && r && s && a);
66
+ h && n && !c && (t = K.getWidthFromDeviceType(n, l));
67
+ var p = !!(h && n && !c && t);
68
+ return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: c, partialVisibilityGutter: K.getPartialVisibilityGutter(l, d || u, n, o.deviceType), shouldRenderAtAll: p || c };
69
69
  }
70
70
  function Et(o, i) {
71
71
  var t = i.currentSlide, e = i.slidesToShow;
@@ -84,27 +84,27 @@ function dt(o) {
84
84
  }
85
85
  function ct(o, i, t, e) {
86
86
  i === void 0 && (i = 0);
87
- var r = o.currentSlide, s = o.slidesToShow, a = dt(o), n = !t.infinite && a, u = e || o.transform;
88
- if (J(o)) return u;
89
- var l = u + r * i;
90
- return n ? l + (o.containerWidth - (o.itemWidth - i) * s) : l;
87
+ var r = o.currentSlide, s = o.slidesToShow, a = dt(o), n = !t.infinite && a, l = e || o.transform;
88
+ if (J(o)) return l;
89
+ var h = l + r * i;
90
+ return n ? h + (o.containerWidth - (o.itemWidth - i) * s) : h;
91
91
  }
92
92
  function pt(o, i) {
93
93
  return o.rtl ? -1 * i : i;
94
94
  }
95
95
  function xt(o, i, t) {
96
- var e = i.partialVisbile, r = i.partialVisible, s = i.responsive, a = i.deviceType, n = i.centerMode, u = t || o.transform, l = K.getPartialVisibilityGutter(s, e || r, a, o.deviceType);
97
- return pt(i, r || e ? ct(o, l, i, t) : n ? ht(o, i, t) : u);
96
+ var e = i.partialVisbile, r = i.partialVisible, s = i.responsive, a = i.deviceType, n = i.centerMode, l = t || o.transform, h = K.getPartialVisibilityGutter(s, e || r, a, o.deviceType);
97
+ return pt(i, r || e ? ct(o, h, i, t) : n ? ht(o, i, t) : l);
98
98
  }
99
99
  function Ot(o, i) {
100
- var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth, s = o.itemWidth, a = i.deviceType, n = i.responsive, u = i.slidesToSlide || 1, l = !!(t && e && r && s);
101
- return i.ssr && i.deviceType && !l && Object.keys(n).forEach(function(h) {
102
- var c = n[h].slidesToSlide;
103
- a === h && c && (u = c);
104
- }), l && Object.keys(n).forEach(function(h) {
105
- var c = n[h], d = c.breakpoint, p = c.slidesToSlide, f = d.max, g = d.min;
106
- p && window.innerWidth >= g && window.innerWidth <= f && (u = p);
107
- }), u;
100
+ var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth, s = o.itemWidth, a = i.deviceType, n = i.responsive, l = i.slidesToSlide || 1, h = !!(t && e && r && s);
101
+ return i.ssr && i.deviceType && !h && Object.keys(n).forEach(function(d) {
102
+ var u = n[d].slidesToSlide;
103
+ a === d && u && (l = u);
104
+ }), h && Object.keys(n).forEach(function(d) {
105
+ var u = n[d], c = u.breakpoint, p = u.slidesToSlide, f = c.max, g = c.min;
106
+ p && window.innerWidth >= g && window.innerWidth <= f && (l = p);
107
+ }), l;
108
108
  }
109
109
  S.notEnoughChildren = J, S.getInitialState = Pt, S.getIfSlideIsVisbile = Et, S.getTransformForCenterMode = ht, S.isInLeftEnd = Rt, S.isInRightEnd = dt, S.getTransformForPartialVsibile = ct, S.parsePosition = pt, S.getTransform = xt, S.getSlidesToSlide = Ot;
110
110
  var Q = {};
@@ -122,10 +122,10 @@ Q.default = At;
122
122
  var ft = {};
123
123
  (function(o) {
124
124
  function i(t, e) {
125
- var r = e.partialVisbile, s = e.partialVisible, a = e.centerMode, n = e.ssr, u = e.responsive;
125
+ var r = e.partialVisbile, s = e.partialVisible, a = e.centerMode, n = e.ssr, l = e.responsive;
126
126
  if ((r || s) && a) throw new Error("center mode can not be used at the same time with partialVisible");
127
- if (!u) throw n ? new Error("ssr mode need to be used in conjunction with responsive prop") : new Error("Responsive prop is needed for deciding the amount of items to show on the screen");
128
- if (u && typeof u != "object") throw new Error("responsive prop must be an object");
127
+ if (!l) throw n ? new Error("ssr mode need to be used in conjunction with responsive prop") : new Error("Responsive prop is needed for deciding the amount of items to show on the screen");
128
+ if (l && typeof l != "object") throw new Error("responsive prop must be an object");
129
129
  }
130
130
  Object.defineProperty(o, "__esModule", { value: !0 }), o.default = i;
131
131
  })(ft);
@@ -134,8 +134,8 @@ Object.defineProperty(H, "__esModule", { value: !0 });
134
134
  var Wt = S;
135
135
  function Dt(o, i, t) {
136
136
  t === void 0 && (t = 0);
137
- var e, r, s = o.slidesToShow, a = o.currentSlide, n = o.itemWidth, u = o.totalItems, l = Wt.getSlidesToSlide(o, i), h = a + 1 + t + s + (0 < t ? 0 : l);
138
- return r = h <= u ? -n * (e = a + t + (0 < t ? 0 : l)) : u < h && a !== u - s ? -n * (e = u - s) : e = void 0, { nextSlides: e, nextPosition: r };
137
+ var e, r, s = o.slidesToShow, a = o.currentSlide, n = o.itemWidth, l = o.totalItems, h = Wt.getSlidesToSlide(o, i), d = a + 1 + t + s + (0 < t ? 0 : h);
138
+ return r = d <= l ? -n * (e = a + t + (0 < t ? 0 : h)) : l < d && a !== l - s ? -n * (e = l - s) : e = void 0, { nextSlides: e, nextPosition: r };
139
139
  }
140
140
  H.populateNextSlides = Dt;
141
141
  var tt = {};
@@ -143,20 +143,20 @@ Object.defineProperty(tt, "__esModule", { value: !0 });
143
143
  var Lt = A, kt = S, Vt = S;
144
144
  function jt(o, i, t) {
145
145
  t === void 0 && (t = 0);
146
- var e, r, s = o.currentSlide, a = o.itemWidth, n = o.slidesToShow, u = i.children, l = i.showDots, h = i.infinite, c = kt.getSlidesToSlide(o, i), d = s - t - (0 < t ? 0 : c), p = (Lt.Children.toArray(u).length - n) % c;
147
- return r = 0 <= d ? (e = d, l && !h && 0 < p && Vt.isInRightEnd(o) && (e = s - p), -a * e) : e = d < 0 && s !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
146
+ var e, r, s = o.currentSlide, a = o.itemWidth, n = o.slidesToShow, l = i.children, h = i.showDots, d = i.infinite, u = kt.getSlidesToSlide(o, i), c = s - t - (0 < t ? 0 : u), p = (Lt.Children.toArray(l).length - n) % u;
147
+ return r = 0 <= c ? (e = c, h && !d && 0 < p && Vt.isInRightEnd(o) && (e = s - p), -a * e) : e = c < 0 && s !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
148
148
  }
149
149
  tt.populatePreviousSlides = jt;
150
150
  var mt = {};
151
151
  (function(o) {
152
152
  function i(t, e, r, s, a, n) {
153
- var u, l, h = t.itemWidth, c = t.slidesToShow, d = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - s) / h), b = Math.round((s - r) / h), _ = r < a;
154
- if (a < r && w <= c) {
155
- u = "right";
156
- var y = Math.abs(-h * (d - c)), M = n - (s - a), I = p === d - c;
157
- (Math.abs(M) <= y || I && f) && (l = M, g = !0);
153
+ var l, h, d = t.itemWidth, u = t.slidesToShow, c = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - s) / d), b = Math.round((s - r) / d), _ = r < a;
154
+ if (a < r && w <= u) {
155
+ l = "right";
156
+ var y = Math.abs(-d * (c - u)), M = n - (s - a), I = p === c - u;
157
+ (Math.abs(M) <= y || I && f) && (h = M, g = !0);
158
158
  }
159
- return _ && b <= c && (u = "left", ((M = n + (a - s)) <= 0 || p === 0 && f) && (g = !0, l = M)), { direction: u, nextPosition: l, canContinue: g };
159
+ return _ && b <= u && (l = "left", ((M = n + (a - s)) <= 0 || p === 0 && f) && (g = !0, h = M)), { direction: l, nextPosition: h, canContinue: g };
160
160
  }
161
161
  Object.defineProperty(o, "__esModule", { value: !0 }), o.populateSlidesOnMouseTouchMove = i;
162
162
  })(mt);
@@ -211,31 +211,31 @@ var Kt = F, Zt = S;
211
211
  function qt(o, i, t, e) {
212
212
  var r = {}, s = Zt.getSlidesToSlide(i, t);
213
213
  return Array(o).fill(0).forEach(function(a, n) {
214
- var u = Kt.getOriginalCounterPart(n, i, e);
215
- if (n === 0) r[0] = u;
214
+ var l = Kt.getOriginalCounterPart(n, i, e);
215
+ if (n === 0) r[0] = l;
216
216
  else {
217
- var l = r[n - 1] + s;
218
- r[n] = l;
217
+ var h = r[n - 1] + s;
218
+ r[n] = h;
219
219
  }
220
220
  }), r;
221
221
  }
222
222
  it.getLookupTableForNextSlides = qt;
223
223
  Object.defineProperty(et, "__esModule", { value: !0 });
224
224
  var L = A, Jt = F, Qt = it, nt = S, Ht = function(o) {
225
- var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, s = i.showDots, a = i.customDot, n = i.dotListClass, u = i.infinite, l = i.children;
225
+ var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, s = i.showDots, a = i.customDot, n = i.dotListClass, l = i.infinite, h = i.children;
226
226
  if (!s || nt.notEnoughChildren(t)) return null;
227
- var h, c = t.currentSlide, d = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f = L.Children.toArray(l);
228
- h = u ? Math.ceil(f.length / p) : Math.ceil((f.length - d) / p) + 1;
229
- var g = Qt.getLookupTableForNextSlides(h, t, i, f), w = Jt.getOriginalIndexLookupTableByClones(d, f), b = w[c];
230
- return L.createElement("ul", { className: "react-multi-carousel-dot-list " + n }, Array(h).fill(0).map(function(_, y) {
227
+ var d, u = t.currentSlide, c = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f = L.Children.toArray(h);
228
+ d = l ? Math.ceil(f.length / p) : Math.ceil((f.length - c) / p) + 1;
229
+ var g = Qt.getLookupTableForNextSlides(d, t, i, f), w = Jt.getOriginalIndexLookupTableByClones(c, f), b = w[u];
230
+ return L.createElement("ul", { className: "react-multi-carousel-dot-list " + n }, Array(d).fill(0).map(function(_, y) {
231
231
  var M, I;
232
- if (u) {
232
+ if (l) {
233
233
  I = g[y];
234
234
  var x = w[I];
235
235
  M = b === x || x <= b && b < x + p;
236
236
  } else {
237
- var W = f.length - d, k = y * p;
238
- M = (I = W < k ? W : k) === c || I < c && c < I + p && c < f.length - d;
237
+ var W = f.length - c, k = y * p;
238
+ M = (I = W < k ? W : k) === u || I < u && u < I + p && u < f.length - c;
239
239
  }
240
240
  return a ? L.cloneElement(a, { index: y, active: M, key: y, onClick: function() {
241
241
  return e(I);
@@ -272,11 +272,11 @@ z.RightArrow = ee;
272
272
  var ot = {};
273
273
  Object.defineProperty(ot, "__esModule", { value: !0 });
274
274
  var j = A, Y = m, ie = function(o) {
275
- var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, s = o.notEnoughChildren, a = t.itemWidth, n = i.children, u = i.infinite, l = i.itemClass, h = i.itemAriaLabel, c = i.partialVisbile, d = i.partialVisible, p = Y.getInitialState(t, i), f = p.flexBisis, g = p.shouldRenderOnSSR, w = p.domFullyLoaded, b = p.partialVisibilityGutter;
276
- return p.shouldRenderAtAll ? (c && console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'), j.createElement(j.Fragment, null, (u ? r : j.Children.toArray(n)).map(function(_, y) {
275
+ var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, s = o.notEnoughChildren, a = t.itemWidth, n = i.children, l = i.infinite, h = i.itemClass, d = i.itemAriaLabel, u = i.partialVisbile, c = i.partialVisible, p = Y.getInitialState(t, i), f = p.flexBisis, g = p.shouldRenderOnSSR, w = p.domFullyLoaded, b = p.partialVisibilityGutter;
276
+ return p.shouldRenderAtAll ? (u && console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'), j.createElement(j.Fragment, null, (l ? r : j.Children.toArray(n)).map(function(_, y) {
277
277
  return j.createElement("li", { key: y, "data-index": y, onClick: function() {
278
278
  i.focusOnSelect && e(y);
279
- }, "aria-hidden": Y.getIfSlideIsVisbile(y, t) ? "false" : "true", "aria-label": h || (_.props.ariaLabel ? _.props.ariaLabel : null), style: { flex: g ? "1 0 " + f + "%" : "auto", position: "relative", width: w ? ((c || d) && b && !s ? a - b : a) + "px" : "auto" }, className: "react-multi-carousel-item " + (Y.getIfSlideIsVisbile(y, t) ? "react-multi-carousel-item--active" : "") + " " + l }, _);
279
+ }, "aria-hidden": Y.getIfSlideIsVisbile(y, t) ? "false" : "true", "aria-label": d || (_.props.ariaLabel ? _.props.ariaLabel : null), style: { flex: g ? "1 0 " + f + "%" : "auto", position: "relative", width: w ? ((u || c) && b && !s ? a - b : a) + "px" : "auto" }, className: "react-multi-carousel-item " + (Y.getIfSlideIsVisbile(y, t) ? "react-multi-carousel-item--active" : "") + " " + h }, _);
280
280
  }))) : null;
281
281
  };
282
282
  ot.default = ie;
@@ -320,17 +320,17 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
320
320
  }, i.prototype.setClones = function(t, e, r, s) {
321
321
  var a = this;
322
322
  s === void 0 && (s = !1), this.isAnimationAllowed = !1;
323
- var n = T.Children.toArray(this.props.children), u = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, n), l = v.getClones(this.state.slidesToShow, n), h = n.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
324
- this.setState({ totalItems: l.length, currentSlide: r && !s ? h : u }, function() {
323
+ var n = T.Children.toArray(this.props.children), l = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, n), h = v.getClones(this.state.slidesToShow, n), d = n.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
324
+ this.setState({ totalItems: h.length, currentSlide: r && !s ? d : l }, function() {
325
325
  a.correctItemsPosition(e || a.state.itemWidth);
326
326
  });
327
327
  }, i.prototype.setItemsToShow = function(t, e) {
328
328
  var r = this, s = this.props.responsive;
329
329
  Object.keys(s).forEach(function(a) {
330
- var n = s[a], u = n.breakpoint, l = n.items, h = u.max, c = u.min, d = [window.innerWidth];
331
- window.screen && window.screen.width && d.push(window.screen.width);
332
- var p = Math.min.apply(Math, d);
333
- c <= p && p <= h && (r.setState({ slidesToShow: l, deviceType: a }), r.setContainerAndItemWidth(l, t, e));
330
+ var n = s[a], l = n.breakpoint, h = n.items, d = l.max, u = l.min, c = [window.innerWidth];
331
+ window.screen && window.screen.width && c.push(window.screen.width);
332
+ var p = Math.min.apply(Math, c);
333
+ u <= p && p <= d && (r.setState({ slidesToShow: h, deviceType: a }), r.setContainerAndItemWidth(h, t, e));
334
334
  });
335
335
  }, i.prototype.setContainerAndItemWidth = function(t, e, r) {
336
336
  var s = this;
@@ -348,31 +348,31 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
348
348
  var e;
349
349
  e = !!this.props.infinite && (typeof t != "boolean" || !t), this.setItemsToShow(e);
350
350
  }, i.prototype.componentDidUpdate = function(t, e) {
351
- var r = this, s = t.keyBoardControl, a = t.autoPlay, n = t.children, u = e.containerWidth, l = e.domLoaded, h = e.currentSlide;
352
- if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== u && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
351
+ var r = this, s = t.keyBoardControl, a = t.autoPlay, n = t.children, l = e.containerWidth, h = e.domLoaded, d = e.currentSlide;
352
+ if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== l && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
353
353
  r.setItemsToShow(!0);
354
354
  }, this.props.transitionDuration || P)), s && !this.props.keyBoardControl && window.removeEventListener("keyup", this.onKeyUp), !s && this.props.keyBoardControl && window.addEventListener("keyup", this.onKeyUp), a && !this.props.autoPlay && this.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = void 0), a || !this.props.autoPlay || this.autoPlay || (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed)), n.length !== this.props.children.length ? i.clonesTimeout = setTimeout(function() {
355
355
  r.props.infinite ? r.setClones(r.state.slidesToShow, r.state.itemWidth, !0, !0) : r.resetTotalItems();
356
- }, this.props.transitionDuration || P) : this.props.infinite && this.state.currentSlide !== h && this.correctClonesPosition({ domLoaded: l }), this.transformPlaceHolder !== this.state.transform && (this.transformPlaceHolder = this.state.transform), this.props.autoPlay && this.props.rewind && !this.props.infinite && v.isInRightEnd(this.state)) {
357
- var c = this.props.transitionDuration || P;
356
+ }, this.props.transitionDuration || P) : this.props.infinite && this.state.currentSlide !== d && this.correctClonesPosition({ domLoaded: h }), this.transformPlaceHolder !== this.state.transform && (this.transformPlaceHolder = this.state.transform), this.props.autoPlay && this.props.rewind && !this.props.infinite && v.isInRightEnd(this.state)) {
357
+ var u = this.props.transitionDuration || P;
358
358
  i.isInThrottleTimeout = setTimeout(function() {
359
359
  r.setIsInThrottle(!1), r.resetAutoplayInterval(), r.goToSlide(0, void 0, !!r.props.rewindWithAnimation);
360
- }, c + this.props.autoPlaySpeed);
360
+ }, u + this.props.autoPlaySpeed);
361
361
  }
362
362
  }, i.prototype.correctClonesPosition = function(t) {
363
- var e = this, r = t.domLoaded, s = T.Children.toArray(this.props.children), a = v.checkClonesPosition(this.state, s, this.props), n = a.isReachingTheEnd, u = a.isReachingTheStart, l = a.nextSlide, h = a.nextPosition;
364
- this.state.domLoaded && r && (n || u) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
365
- e.setState({ transform: h, currentSlide: l });
363
+ var e = this, r = t.domLoaded, s = T.Children.toArray(this.props.children), a = v.checkClonesPosition(this.state, s, this.props), n = a.isReachingTheEnd, l = a.isReachingTheStart, h = a.nextSlide, d = a.nextPosition;
364
+ this.state.domLoaded && r && (n || l) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
365
+ e.setState({ transform: d, currentSlide: h });
366
366
  }, this.props.transitionDuration || P));
367
367
  }, i.prototype.next = function(t) {
368
368
  var e = this;
369
369
  t === void 0 && (t = 0);
370
370
  var r = this.props, s = r.afterChange, a = r.beforeChange;
371
371
  if (!v.notEnoughChildren(this.state)) {
372
- var n = v.populateNextSlides(this.state, this.props, t), u = n.nextSlides, l = n.nextPosition, h = this.state.currentSlide;
373
- u !== void 0 && l !== void 0 && (typeof a == "function" && a(u, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: l, currentSlide: u }, function() {
372
+ var n = v.populateNextSlides(this.state, this.props, t), l = n.nextSlides, h = n.nextPosition, d = this.state.currentSlide;
373
+ l !== void 0 && h !== void 0 && (typeof a == "function" && a(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: h, currentSlide: l }, function() {
374
374
  typeof s == "function" && (i.afterChangeTimeout = setTimeout(function() {
375
- s(h, e.getState());
375
+ s(d, e.getState());
376
376
  }, e.props.transitionDuration || P));
377
377
  }));
378
378
  }
@@ -381,12 +381,12 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
381
381
  t === void 0 && (t = 0);
382
382
  var r = this.props, s = r.afterChange, a = r.beforeChange;
383
383
  if (!v.notEnoughChildren(this.state)) {
384
- var n = v.populatePreviousSlides(this.state, this.props, t), u = n.nextSlides, l = n.nextPosition;
385
- if (u !== void 0 && l !== void 0) {
386
- var h = this.state.currentSlide;
387
- typeof a == "function" && a(u, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: l, currentSlide: u }, function() {
384
+ var n = v.populatePreviousSlides(this.state, this.props, t), l = n.nextSlides, h = n.nextPosition;
385
+ if (l !== void 0 && h !== void 0) {
386
+ var d = this.state.currentSlide;
387
+ typeof a == "function" && a(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: h, currentSlide: l }, function() {
388
388
  typeof s == "function" && (i.afterChangeTimeout2 = setTimeout(function() {
389
- s(h, e.getState());
389
+ s(d, e.getState());
390
390
  }, e.props.transitionDuration || P));
391
391
  });
392
392
  }
@@ -410,8 +410,8 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
410
410
  var e = this.getCords(R.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, s = e.clientY, a = this.initialX - r, n = this.initialY - s;
411
411
  if (this.onMove) {
412
412
  if (!(Math.abs(a) > Math.abs(n))) return;
413
- var u = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), l = u.direction, h = u.nextPosition, c = u.canContinue;
414
- l && (this.direction = l, c && h !== void 0 && this.setTransformDirectly(h)), this.lastX = r;
413
+ var l = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), h = l.direction, d = l.nextPosition, u = l.canContinue;
414
+ h && (this.direction = h, u && d !== void 0 && this.setTransformDirectly(d)), this.lastX = r;
415
415
  }
416
416
  }
417
417
  }, i.prototype.handleOut = function(t) {
@@ -425,8 +425,8 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
425
425
  this.direction === "left" && (this.lastX - this.initialX > this.props.minimumTouchDrag ? (s = Math.round((this.lastX - this.initialX) / this.state.itemWidth), this.previous(s)) : this.correctItemsPosition(this.state.itemWidth, !0, !0)), this.resetMoveStatus();
426
426
  }
427
427
  }, i.prototype.isInViewport = function(t) {
428
- var e = t.getBoundingClientRect(), r = e.top, s = r === void 0 ? 0 : r, a = e.left, n = a === void 0 ? 0 : a, u = e.bottom, l = u === void 0 ? 0 : u, h = e.right, c = h === void 0 ? 0 : h;
429
- return 0 <= s && 0 <= n && l <= (window.innerHeight || document.documentElement.clientHeight) && c <= (window.innerWidth || document.documentElement.clientWidth);
428
+ var e = t.getBoundingClientRect(), r = e.top, s = r === void 0 ? 0 : r, a = e.left, n = a === void 0 ? 0 : a, l = e.bottom, h = l === void 0 ? 0 : l, d = e.right, u = d === void 0 ? 0 : d;
429
+ return 0 <= s && 0 <= n && h <= (window.innerHeight || document.documentElement.clientHeight) && u <= (window.innerWidth || document.documentElement.clientWidth);
430
430
  }, i.prototype.isChildOfCarousel = function(t) {
431
431
  return !!(t instanceof Element && this.listRef && this.listRef.current) && this.listRef.current.contains(t);
432
432
  }, i.prototype.onKeyUp = function(t) {
@@ -446,10 +446,10 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
446
446
  }, i.prototype.goToSlide = function(t, e, r) {
447
447
  var s = this;
448
448
  if (r === void 0 && (r = !0), !this.isInThrottle) {
449
- var a = this.state.itemWidth, n = this.props, u = n.afterChange, l = n.beforeChange, h = this.state.currentSlide;
450
- typeof l != "function" || e && (typeof e != "object" || e.skipBeforeChange) || l(t, this.getState()), this.isAnimationAllowed = r, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ currentSlide: t, transform: -a * t }, function() {
451
- s.props.infinite && s.correctClonesPosition({ domLoaded: !0 }), typeof u != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
452
- u(h, s.getState());
449
+ var a = this.state.itemWidth, n = this.props, l = n.afterChange, h = n.beforeChange, d = this.state.currentSlide;
450
+ typeof h != "function" || e && (typeof e != "object" || e.skipBeforeChange) || h(t, this.getState()), this.isAnimationAllowed = r, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ currentSlide: t, transform: -a * t }, function() {
451
+ s.props.infinite && s.correctClonesPosition({ domLoaded: !0 }), typeof l != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
452
+ l(d, s.getState());
453
453
  }, s.props.transitionDuration || P));
454
454
  });
455
455
  }
@@ -487,10 +487,10 @@ var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transfo
487
487
  }
488
488
  return T.createElement(ne.default, { clones: t, goToSlide: this.goToSlide, state: this.state, notEnoughChildren: v.notEnoughChildren(this.state), props: this.props });
489
489
  }, i.prototype.render = function() {
490
- var t = this.props, e = t.deviceType, r = t.arrows, s = t.renderArrowsWhenDisabled, a = t.removeArrowOnDeviceType, n = t.infinite, u = t.containerClass, l = t.sliderClass, h = t.customTransition, c = t.additionalTransfrom, d = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
490
+ var t = this.props, e = t.deviceType, r = t.arrows, s = t.renderArrowsWhenDisabled, a = t.removeArrowOnDeviceType, n = t.infinite, l = t.containerClass, h = t.sliderClass, d = t.customTransition, u = t.additionalTransfrom, c = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
491
491
  process.env.NODE_ENV !== "production" && v.throwError(this.state, this.props);
492
492
  var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, y = v.isInLeftEnd(this.state), M = v.isInRightEnd(this.state), I = r && !(a && (e && -1 < a.indexOf(e) || this.state.deviceType && -1 < a.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, x = !n && y, W = !n && M, k = B.getTransform(this.state, this.props);
493
- return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " + u + " " + f, dir: g ? "rtl" : "ltr", ref: this.containerRef }, T.createElement("ul", { ref: this.listRef, className: "react-multi-carousel-track " + l, style: { transition: this.isAnimationAllowed ? h || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (k + c) + "px,0,0)" }, onMouseMove: this.handleMove, onMouseDown: this.handleDown, onMouseUp: this.handleOut, onMouseEnter: this.handleEnter, onMouseLeave: this.handleOut, onTouchStart: this.handleDown, onTouchMove: this.handleMove, onTouchEnd: this.handleOut }, this.renderCarouselItems()), I && (!x || s) && this.renderLeftArrow(x), I && (!W || s) && this.renderRightArrow(W), _ && !p && this.renderButtonGroups(), _ && !d && this.renderDotsList()), _ && d && this.renderDotsList(), _ && p && this.renderButtonGroups());
493
+ return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " + l + " " + f, dir: g ? "rtl" : "ltr", ref: this.containerRef }, T.createElement("ul", { ref: this.listRef, className: "react-multi-carousel-track " + h, style: { transition: this.isAnimationAllowed ? d || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (k + u) + "px,0,0)" }, onMouseMove: this.handleMove, onMouseDown: this.handleDown, onMouseUp: this.handleOut, onMouseEnter: this.handleEnter, onMouseLeave: this.handleOut, onTouchStart: this.handleDown, onTouchMove: this.handleMove, onTouchEnd: this.handleOut }, this.renderCarouselItems()), I && (!x || s) && this.renderLeftArrow(x), I && (!W || s) && this.renderRightArrow(W), _ && !p && this.renderButtonGroups(), _ && !c && this.renderDotsList()), _ && c && this.renderDotsList(), _ && p && this.renderButtonGroups());
494
494
  }, i.defaultProps = { slidesToSlide: 1, infinite: !1, draggable: !0, swipeable: !0, arrows: !0, renderArrowsWhenDisabled: !1, containerClass: "", sliderClass: "", itemClass: "", keyBoardControl: !0, autoPlaySpeed: 3e3, showDots: !1, renderDotsOutside: !1, renderButtonGroupOutside: !1, minimumTouchDrag: 80, className: "", dotListClass: "", focusOnSelect: !1, centerMode: !1, additionalTransfrom: 0, pauseOnHover: !0, shouldResetAutoplay: !0, rewind: !1, rtl: !1, rewindWithAnimation: !1 }, i;
495
495
  }(T.Component);
496
496
  q.default = se;
@@ -684,13 +684,15 @@ const ue = /* @__PURE__ */ yt(le), he = ut.div`
684
684
  items: o = [],
685
685
  isLoading: i = !1,
686
686
  deviceType: t,
687
- fallbackComponent: e = /* @__PURE__ */ C(lt, {}),
688
- onSelectItem: r = () => {
687
+ partialVisible: e = !0,
688
+ fallbackComponent: r = /* @__PURE__ */ C(lt, {}),
689
+ onSelectItem: s = () => {
689
690
  },
690
- onButtonAction: s = () => {
691
- }
692
- }, a) => {
693
- const n = {
691
+ onButtonAction: a = () => {
692
+ },
693
+ carouselProps: n
694
+ }, l) => {
695
+ const h = {
694
696
  desktop: {
695
697
  breakpoint: { max: 3e3, min: 1024 },
696
698
  items: 1,
@@ -706,68 +708,69 @@ const ue = /* @__PURE__ */ yt(le), he = ut.div`
706
708
  items: 1,
707
709
  partialVisibilityGutter: 64
708
710
  }
709
- }, u = Tt();
710
- return /* @__PURE__ */ C(he, { ref: a, children: /* @__PURE__ */ C(
711
+ }, d = Tt();
712
+ return /* @__PURE__ */ C(he, { ref: l, children: /* @__PURE__ */ C(
711
713
  pe,
712
714
  {
713
- fallbackComponent: e,
715
+ fallbackComponent: r,
714
716
  keyPrefix: "banner-carousel-skeleton",
715
717
  isLoading: i,
716
718
  children: /* @__PURE__ */ C(
717
719
  ue,
718
720
  {
719
- responsive: n,
721
+ responsive: h,
720
722
  deviceType: t,
721
723
  removeArrowOnDeviceType: ["tablet", "mobile"],
722
- infinite: !u,
724
+ infinite: !d,
723
725
  keyBoardControl: !0,
724
726
  autoPlay: !0,
725
- partialVisible: !0,
727
+ partialVisible: e,
726
728
  customTransition: "transform 500ms ease-in-out",
727
729
  sliderClass: "carousel-slider",
728
730
  itemClass: "carousel-item",
729
731
  containerClass: "carousel-container",
730
732
  rewind: !0,
731
733
  rewindWithAnimation: !0,
732
- children: o == null ? void 0 : o.map((l, h) => /* @__PURE__ */ X(
734
+ ...n,
735
+ children: o == null ? void 0 : o.map((u, c) => /* @__PURE__ */ X(
733
736
  "div",
734
737
  {
735
738
  className: "section__card",
736
- onClick: () => r(l),
739
+ onClick: () => s(u),
737
740
  children: [
738
741
  /* @__PURE__ */ C(
739
742
  "img",
740
743
  {
741
- src: l == null ? void 0 : l.imageUrl,
742
- alt: `Slide ${h + 1}`,
744
+ src: u == null ? void 0 : u.imageUrl,
745
+ alt: `Slide ${c + 1}`,
743
746
  className: "section__image"
744
747
  }
745
748
  ),
746
749
  /* @__PURE__ */ X("div", { className: "card__content", children: [
747
750
  /* @__PURE__ */ X("div", { className: "card__text", children: [
748
- (l == null ? void 0 : l.title) && /* @__PURE__ */ C("div", { className: "card__title", children: l == null ? void 0 : l.title }),
749
- (l == null ? void 0 : l.title) && /* @__PURE__ */ C("div", { className: "card__description", children: l == null ? void 0 : l.description })
751
+ (u == null ? void 0 : u.title) && /* @__PURE__ */ C("div", { className: "card__title", children: u == null ? void 0 : u.title }),
752
+ (u == null ? void 0 : u.title) && /* @__PURE__ */ C("div", { className: "card__description", children: u == null ? void 0 : u.description })
750
753
  ] }),
751
- (l == null ? void 0 : l.buttonText) && /* @__PURE__ */ C(
754
+ (u == null ? void 0 : u.buttonText) && /* @__PURE__ */ C(
752
755
  St,
753
756
  {
754
- text: l == null ? void 0 : l.buttonText,
757
+ text: u == null ? void 0 : u.buttonText,
755
758
  className: "card__action",
756
759
  size: "medium",
757
- onClick: (c) => {
758
- c == null || c.stopPropagation(), s(l);
760
+ onClick: (p) => {
761
+ p == null || p.stopPropagation(), a(u);
759
762
  }
760
763
  }
761
764
  )
762
765
  ] })
763
766
  ]
764
767
  },
765
- `banner-section-carousel-item__${h + 1}`
768
+ `banner-section-carousel-item__${c + 1}`
766
769
  ))
767
770
  }
768
771
  )
769
772
  }
770
- ) }, `banner-section-carousel__${u}`);
773
+ ) }, `banner-section-carousel__${d}`);
771
774
  }
772
775
  );
773
776
  fe.propTypes = {
package/dist/Modal.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./Icon.cjs"),w=require("./utils-RnrgDDZP.cjs"),V=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),x="5rem",h="3.8rem",i="1.5rem",W=(e,r,n)=>r&&n?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:r?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:n?e=="FULL"?`calc(100dvh - ${x})`:`calc(100dvh - ${x} - ${i})`:e=="FULL"?"100dvh":`calc(100dvh - ${i})`,X=e=>e=="FULL"?"100vw":`calc(100vw - ${i})`,J=(e,r,n)=>e=="FULL"?"0":`${r?"0":"16px"} 0 ${n?"0":"16px"} 0`,K=C.styled(L.motion.div)`
1
+ "use strict";const r=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./Icon.cjs"),w=require("./utils-RnrgDDZP.cjs"),V=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),x="5rem",h="3.8rem",i="1.5rem",W=(e,n,a)=>n&&a?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:n?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:a?e=="FULL"?`calc(100dvh - ${x})`:`calc(100dvh - ${x} - ${i})`:e=="FULL"?"100dvh":`calc(100dvh - ${i})`,X=e=>e=="FULL"?"100vw":`calc(100vw - ${i})`,J=(e,n,a)=>e=="FULL"?"0":`${n?"0":"16px"} 0 ${a?"0":"16px"} 0`,K=C.styled(L.motion.div)`
2
2
  position: ${e=>e.scrollOverlay==!0?"absolute":"fixed"};
3
3
  top: 0;
4
4
  left: 0;
@@ -81,4 +81,4 @@
81
81
  width: 100%;
82
82
  background-color: ${e=>e.overlayColor};
83
83
  z-index: 3;
84
- `,A=y.forwardRef((e,r)=>{const{portalElement:n=document.body,isOpen:s=!1,header:d,footer:l,scrollOverlay:a=!1,overlay:c=!0,overlayColor:p="rgba(0, 0, 0, 0.3)",showCloseButton:u=!0,onOpen:f=()=>{},onClose:g=()=>{},zIndex:O=1e3,size:$="fluid",clickOutsideToClose:v=!0,className:b="",style:H={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:S=()=>{},children:z,rest:M}=e,R=y.useRef(),[T,k]=y.useState(s);let B={theme:G.useTheme(),size:$,zIndex:O,className:b,style:H};const q=m=>{m.target===m.currentTarget&&v&&j(m)};y.useImperativeHandle(r,()=>({open(){_()},close(){j()},isOpen(){return T}}));const _=m=>{k(!0),f(m)},j=m=>{k(!1),g(m)};return y.useEffect(()=>{T===!0&&S()},[T]),t.jsx(t.Fragment,{children:T&&t.jsx(t.Fragment,{children:n?t.jsx(t.Fragment,{children:V.reactDomExports.createPortal(t.jsx(E,{ref:R,overlay:c,scrollOverlay:a,onClickOutsideModal:q,overlayColor:p,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:u,close:j,header:d,footer:l,isOpen:s,...M,children:z}),n)}):t.jsx(E,{ref:R,overlay:c,scrollOverlay:a,onClickOutsideModal:q,overlayColor:p,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:u,close:j,header:d,footer:l,isOpen:s,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:r,onClickOutsideModal:n,overlayColor:s,overlayProps:d,overlayAnimation:l,modalAnimation:a,themeProps:c,showCloseButton:p,header:u,footer:f,close:g,isOpen:O,children:$,...v},b)=>t.jsx(N.AnimatePresence,{children:e?t.jsxs(t.Fragment,{children:[t.jsx(Z,{scrollOverlay:r,onClick:n,overlayColor:s,...d,...l}),t.jsx(K,{...c,onClick:n,scrollOverlay:r,overlayColor:s,isOpen:O,...d,...l,children:t.jsx(I,{ref:b,themeProps:c,scrollOverlay:r,modalAnimation:a,showCloseButton:p,close:g,header:u,footer:f,...v,children:$})})]}):t.jsx(I,{ref:b,themeProps:c,modalAnimation:a,showCloseButton:p,close:g,header:u,footer:f,...v,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:r,modalAnimation:n,showCloseButton:s,close:d,header:l,footer:a,children:c,...p},u)=>t.jsx(N.AnimatePresence,{children:t.jsxs(Q,{ref:u,...e,...n,header:l,footer:a,scrollOverlay:r,...p,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[s&&t.jsx(Y,{...e,className:"modal-lnc-times",onClick:d,children:t.jsx(D,{icon:"times"})}),l&&t.jsx("div",{className:"lnc-modal-header",children:l}),t.jsx("div",{className:"lnc-modal-content",children:c}),a&&t.jsx("div",{className:"lnc-modal-footer",children:a})]})}));A.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const ee={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=A;
84
+ `,A=y.forwardRef((e,n)=>{const{portalElement:a=document.body,isOpen:c=!1,header:p,footer:l,scrollOverlay:s=!1,overlay:d=!0,overlayColor:u="rgba(0, 0, 0, 0.3)",showCloseButton:m=!0,onOpen:f=()=>{},onClose:g=()=>{},zIndex:O=1e3,size:$="fluid",clickOutsideToClose:b=!0,className:T="",style:D={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:H=()=>{},children:z,rest:M}=e,R=y.useRef(),[v,k]=y.useState(c);let B={theme:G.useTheme(),size:$,zIndex:O,className:T,style:D};const q=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),t.target===t.currentTarget&&b&&j(t)};y.useImperativeHandle(n,()=>({open(){S()},close(){j()},isOpen(){return v}}));const S=t=>{k(!0),f(t)},j=t=>{k(!1),g(t)};return y.useEffect(()=>{v===!0&&H()},[v]),r.jsx(r.Fragment,{children:v&&r.jsx(r.Fragment,{children:a?r.jsx(r.Fragment,{children:V.reactDomExports.createPortal(r.jsx(E,{ref:R,overlay:d,scrollOverlay:s,onClickOutsideModal:q,overlayColor:u,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:m,close:j,header:p,footer:l,isOpen:c,...M,children:z}),a)}):r.jsx(E,{ref:R,overlay:d,scrollOverlay:s,onClickOutsideModal:q,overlayColor:u,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:m,close:j,header:p,footer:l,isOpen:c,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:n,onClickOutsideModal:a,overlayColor:c,overlayProps:p,overlayAnimation:l,modalAnimation:s,themeProps:d,showCloseButton:u,header:m,footer:f,close:g,isOpen:O,children:$,...b},T)=>r.jsx(N.AnimatePresence,{children:e?r.jsxs(r.Fragment,{children:[r.jsx(Z,{scrollOverlay:n,onClick:a,overlayColor:c,...p,...l}),r.jsx(K,{...d,onClick:a,scrollOverlay:n,overlayColor:c,isOpen:O,...p,...l,children:r.jsx(I,{ref:T,themeProps:d,scrollOverlay:n,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:f,...b,children:$})})]}):r.jsx(I,{ref:T,themeProps:d,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:f,...b,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:n,modalAnimation:a,showCloseButton:c,close:p,header:l,footer:s,children:d,...u},m)=>r.jsx(N.AnimatePresence,{children:r.jsxs(Q,{ref:m,...e,...a,header:l,footer:s,scrollOverlay:n,...u,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[c&&r.jsx(Y,{...e,className:"modal-lnc-times",onClick:p,children:r.jsx(_,{icon:"times"})}),l&&r.jsx("div",{className:"lnc-modal-header",children:l}),r.jsx("div",{className:"lnc-modal-content",children:d}),s&&r.jsx("div",{className:"lnc-modal-footer",children:s})]})}));A.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const ee={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=A;
package/dist/Modal.js CHANGED
@@ -4,11 +4,11 @@ import { P as o } from "./index-CblbdqjE.js";
4
4
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import K from "./Icon.js";
6
6
  import { b as w } from "./utils-Dc5zIpaz.js";
7
- import { r as Q } from "./index-B1vKwsDE.js";
7
+ import { r as P } from "./index-B1vKwsDE.js";
8
8
  import { m as M } from "./motion-Ckekul_K.js";
9
- import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
+ import { u as Q } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
10
  import { A as S } from "./index-D-c5IxDk.js";
11
- const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${a})` : r ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${a})` : n ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${a})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${a})`, P = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${a})`, ee = (e, r, n) => e == "FULL" ? "0" : `${r ? "0" : "16px"} 0 ${n ? "0" : "16px"} 0`, oe = C(M.div)`
11
+ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${l})` : n ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${l})` : a ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${l})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${l})`, Z = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${l})`, ee = (e, n, a) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, oe = C(M.div)`
12
12
  position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
13
13
  top: 0;
14
14
  left: 0;
@@ -25,7 +25,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
25
25
  background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
26
26
  z-index: ${(e) => e.zIndex};
27
27
  width: ${(e) => le[e.size.toUpperCase()]};
28
- max-width: ${(e) => P(e.size.toUpperCase())};
28
+ max-width: ${(e) => Z(e.size.toUpperCase())};
29
29
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
30
30
  0px 10px 10px -5px rgba(0, 0, 0, 0.04);
31
31
  border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
@@ -36,7 +36,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
36
36
  & .lnc-modal-header {
37
37
  max-height: ${h};
38
38
  overflow: hidden;
39
- padding: ${a} ${a} 0 ${a};
39
+ padding: ${l} ${l} 0 ${l};
40
40
  }
41
41
  & .lnc-modal-header > h1,
42
42
  h2,
@@ -55,14 +55,14 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
55
55
  flex-direction: column;
56
56
  justify-content: space-between;
57
57
  scrollbar-width: thin;
58
- ${(e) => e.scrollOverlay == !1 && `max-height: ${Z(
58
+ ${(e) => e.scrollOverlay == !1 && `max-height: ${Y(
59
59
  e.size.toUpperCase(),
60
60
  e.header,
61
61
  e.footer
62
62
  )};`}
63
63
  overflow: auto;
64
64
  margin: ${(e) => ee(e.size, e.header, e.footer)};
65
- padding: 0 ${a} 0 ${a};
65
+ padding: 0 ${l} 0 ${l};
66
66
  }
67
67
  `, re = C.div`
68
68
  position: absolute;
@@ -115,16 +115,16 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
115
115
  width: 100%;
116
116
  background-color: ${(e) => e.overlayColor};
117
117
  z-index: 3;
118
- `, ae = z((e, r) => {
118
+ `, ae = z((e, n) => {
119
119
  const {
120
- portalElement: n = document.body,
121
- isOpen: c = !1,
122
- header: d,
123
- footer: l,
124
- scrollOverlay: i = !1,
125
- overlay: s = !0,
126
- overlayColor: m = "rgba(0, 0, 0, 0.3)",
127
- showCloseButton: p = !0,
120
+ portalElement: a = document.body,
121
+ isOpen: s = !1,
122
+ header: m,
123
+ footer: i,
124
+ scrollOverlay: c = !1,
125
+ overlay: d = !0,
126
+ overlayColor: p = "rgba(0, 0, 0, 0.3)",
127
+ showCloseButton: u = !0,
128
128
  onOpen: g = () => {
129
129
  },
130
130
  onClose: x = () => {
@@ -132,7 +132,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
132
132
  zIndex: U = 1e3,
133
133
  size: y = "fluid",
134
134
  clickOutsideToClose: $ = !0,
135
- className: v = "",
135
+ className: b = "",
136
136
  style: G = {},
137
137
  overlayProps: F,
138
138
  overlayAnimation: k = {
@@ -155,12 +155,12 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
155
155
  },
156
156
  children: T,
157
157
  rest: I
158
- } = e, E = X(), [b, N] = V(c);
159
- let j = { theme: Y(), size: y, zIndex: U, className: v, style: G };
160
- const A = (u) => {
161
- u.target === u.currentTarget && $ && O(u);
158
+ } = e, E = X(), [v, N] = V(s);
159
+ let j = { theme: Q(), size: y, zIndex: U, className: b, style: G };
160
+ const A = (r) => {
161
+ r == null || r.preventDefault(), r == null || r.stopPropagation(), r.target === r.currentTarget && $ && O(r);
162
162
  };
163
- q(r, () => ({
163
+ q(n, () => ({
164
164
  open() {
165
165
  W();
166
166
  },
@@ -168,108 +168,108 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
168
168
  O();
169
169
  },
170
170
  isOpen() {
171
- return b;
171
+ return v;
172
172
  }
173
173
  }));
174
- const W = (u) => {
175
- N(!0), g(u);
176
- }, O = (u) => {
177
- N(!1), x(u);
174
+ const W = (r) => {
175
+ N(!0), g(r);
176
+ }, O = (r) => {
177
+ N(!1), x(r);
178
178
  };
179
179
  return J(() => {
180
- b === !0 && _();
181
- }, [b]), /* @__PURE__ */ t(L, { children: b && /* @__PURE__ */ t(L, { children: n ? /* @__PURE__ */ t(L, { children: Q.createPortal(
180
+ v === !0 && _();
181
+ }, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: a ? /* @__PURE__ */ t(L, { children: P.createPortal(
182
182
  /* @__PURE__ */ t(
183
- H,
183
+ D,
184
184
  {
185
185
  ref: E,
186
- overlay: s,
187
- scrollOverlay: i,
186
+ overlay: d,
187
+ scrollOverlay: c,
188
188
  onClickOutsideModal: A,
189
- overlayColor: m,
189
+ overlayColor: p,
190
190
  overlayProps: F,
191
191
  overlayAnimation: k,
192
192
  modalAnimation: B,
193
193
  themeProps: j,
194
- showCloseButton: p,
194
+ showCloseButton: u,
195
195
  close: O,
196
- header: d,
197
- footer: l,
198
- isOpen: c,
196
+ header: m,
197
+ footer: i,
198
+ isOpen: s,
199
199
  ...I,
200
200
  children: T
201
201
  }
202
202
  ),
203
- n
203
+ a
204
204
  ) }) : /* @__PURE__ */ t(
205
- H,
205
+ D,
206
206
  {
207
207
  ref: E,
208
- overlay: s,
209
- scrollOverlay: i,
208
+ overlay: d,
209
+ scrollOverlay: c,
210
210
  onClickOutsideModal: A,
211
- overlayColor: m,
211
+ overlayColor: p,
212
212
  overlayProps: F,
213
213
  overlayAnimation: k,
214
214
  modalAnimation: B,
215
215
  themeProps: j,
216
- showCloseButton: p,
216
+ showCloseButton: u,
217
217
  close: O,
218
- header: d,
219
- footer: l,
220
- isOpen: c,
218
+ header: m,
219
+ footer: i,
220
+ isOpen: s,
221
221
  ...I,
222
222
  children: T
223
223
  }
224
224
  ) }) });
225
- }), H = z(
225
+ }), D = z(
226
226
  ({
227
227
  overlay: e,
228
- scrollOverlay: r,
229
- onClickOutsideModal: n,
230
- overlayColor: c,
231
- overlayProps: d,
232
- overlayAnimation: l,
233
- modalAnimation: i,
234
- themeProps: s,
235
- showCloseButton: m,
236
- header: p,
228
+ scrollOverlay: n,
229
+ onClickOutsideModal: a,
230
+ overlayColor: s,
231
+ overlayProps: m,
232
+ overlayAnimation: i,
233
+ modalAnimation: c,
234
+ themeProps: d,
235
+ showCloseButton: p,
236
+ header: u,
237
237
  footer: g,
238
238
  close: x,
239
239
  isOpen: U,
240
240
  children: y,
241
241
  ...$
242
- }, v) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
242
+ }, b) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
243
243
  /* @__PURE__ */ t(
244
244
  ne,
245
245
  {
246
- scrollOverlay: r,
247
- onClick: n,
248
- overlayColor: c,
249
- ...d,
250
- ...l
246
+ scrollOverlay: n,
247
+ onClick: a,
248
+ overlayColor: s,
249
+ ...m,
250
+ ...i
251
251
  }
252
252
  ),
253
253
  /* @__PURE__ */ t(
254
254
  oe,
255
255
  {
256
- ...s,
257
- onClick: n,
258
- scrollOverlay: r,
259
- overlayColor: c,
260
- isOpen: U,
261
256
  ...d,
262
- ...l,
257
+ onClick: a,
258
+ scrollOverlay: n,
259
+ overlayColor: s,
260
+ isOpen: U,
261
+ ...m,
262
+ ...i,
263
263
  children: /* @__PURE__ */ t(
264
- D,
264
+ H,
265
265
  {
266
- ref: v,
267
- themeProps: s,
268
- scrollOverlay: r,
269
- modalAnimation: i,
270
- showCloseButton: m,
266
+ ref: b,
267
+ themeProps: d,
268
+ scrollOverlay: n,
269
+ modalAnimation: c,
270
+ showCloseButton: p,
271
271
  close: x,
272
- header: p,
272
+ header: u,
273
273
  footer: g,
274
274
  ...$,
275
275
  children: y
@@ -278,54 +278,54 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
278
278
  }
279
279
  )
280
280
  ] }) : /* @__PURE__ */ t(
281
- D,
281
+ H,
282
282
  {
283
- ref: v,
284
- themeProps: s,
285
- modalAnimation: i,
286
- showCloseButton: m,
283
+ ref: b,
284
+ themeProps: d,
285
+ modalAnimation: c,
286
+ showCloseButton: p,
287
287
  close: x,
288
- header: p,
288
+ header: u,
289
289
  footer: g,
290
290
  ...$,
291
291
  children: y
292
292
  }
293
293
  ) })
294
- ), D = z(
294
+ ), H = z(
295
295
  ({
296
296
  themeProps: e,
297
- scrollOverlay: r,
298
- modalAnimation: n,
299
- showCloseButton: c,
300
- close: d,
301
- header: l,
302
- footer: i,
303
- children: s,
304
- ...m
305
- }, p) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
297
+ scrollOverlay: n,
298
+ modalAnimation: a,
299
+ showCloseButton: s,
300
+ close: m,
301
+ header: i,
302
+ footer: c,
303
+ children: d,
304
+ ...p
305
+ }, u) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
306
306
  te,
307
307
  {
308
- ref: p,
308
+ ref: u,
309
309
  ...e,
310
- ...n,
311
- header: l,
312
- footer: i,
313
- scrollOverlay: r,
314
- ...m,
310
+ ...a,
311
+ header: i,
312
+ footer: c,
313
+ scrollOverlay: n,
314
+ ...p,
315
315
  className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
316
316
  children: [
317
- c && /* @__PURE__ */ t(
317
+ s && /* @__PURE__ */ t(
318
318
  re,
319
319
  {
320
320
  ...e,
321
321
  className: "modal-lnc-times",
322
- onClick: d,
322
+ onClick: m,
323
323
  children: /* @__PURE__ */ t(K, { icon: "times" })
324
324
  }
325
325
  ),
326
- l && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: l }),
327
- /* @__PURE__ */ t("div", { className: "lnc-modal-content", children: s }),
328
- i && /* @__PURE__ */ t("div", { className: "lnc-modal-footer", children: i })
326
+ i && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: i }),
327
+ /* @__PURE__ */ t("div", { className: "lnc-modal-content", children: d }),
328
+ c && /* @__PURE__ */ t("div", { className: "lnc-modal-footer", children: c })
329
329
  ]
330
330
  }
331
331
  ) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.180",
3
+ "version": "4.0.182",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [