@lanaco/lnc-react-ui 4.0.127 → 4.0.129
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.
- package/dist/BannerSectionCarousel.cjs +7 -9
- package/dist/BannerSectionCarousel.js +63 -65
- package/dist/BannerSectionSimple.cjs +26 -7
- package/dist/BannerSectionSimple.js +67 -44
- package/dist/BlogExploreSection.cjs +4 -3
- package/dist/BlogExploreSection.js +77 -74
- package/dist/BlogListSection.cjs +2 -1
- package/dist/BlogListSection.js +1 -0
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +4 -2
- package/dist/SalesCampaignsSection.cjs +1 -0
- package/dist/SalesCampaignsSection.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const P=require("react/jsx-runtime"),x=require("react"),L=require("./_commonjsHelpers-DwTZ_eVU.cjs"),z=require("./index-BpbMKBf_.cjs"),ft=require("./Button.cjs"),mt=require("./useDetectMobile-zkbzoOGV.cjs"),vt=require("./emotion-styled.browser.esm-BtEseadx.cjs");var q={},K={},m={},B={};(function(o){function i(n,s,l){var u=s.slidesToShow,d=s.currentSlide;return l.length>2*u?n+2*u:d>=l.length?l.length+n:n}function t(n,s){if(s.length>2*n){for(var l={},u=s.length-2*n,d=s.length-u,c=u,h=0;h<d;h++)l[h]=c,c++;var p=s.length+d,f=p+s.slice(0,2*n).length,g=0;for(h=p;h<=f;h++)l[h]=g,g++;var w=p,b=0;for(h=d;h<w;h++)l[h]=b,b++;return l}l={};var _=3*s.length,y=0;for(h=0;h<_;h++)l[h]=y,++y===s.length&&(y=0);return l}function e(n,s){return s.length<n?s:s.length>2*n?s.slice(s.length-2*n,s.length).concat(s,s.slice(0,2*n)):s.concat(s,s)}function r(n,s){return s.length>2*n?2*n:s.length}function a(n,s,l){var u,d=n.currentSlide,c=n.slidesToShow,h=n.itemWidth,p=n.totalItems,f=0,g=0,w=d===0,b=s.length-(s.length-2*c);return s.length<c?(g=f=0,w=u=!1):s.length>2*c?((u=d>=b+s.length)&&(g=-h*(f=d-s.length)),w&&(g=-h*(f=b+(s.length-2*c)))):((u=d>=2*s.length)&&(g=-h*(f=d-s.length)),w&&(g=l.showDots?-h*(f=s.length):-h*(f=p/3))),{isReachingTheEnd:u,isReachingTheStart:w,nextSlide:f,nextPosition:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.getOriginalCounterPart=i,o.getOriginalIndexLookupTableByClones=t,o.getClones=e,o.getInitialSlideInInfiniteMode=r,o.checkClonesPosition=a})(B);var A={};Object.defineProperty(A,"__esModule",{value:!0});var ot=!1;function gt(o,i,t,e){var r=0,a=e||t;return i&&a&&(!ot&&process.env.NODE_ENV!=="production"&&o[a].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[a].partialVisibilityGutter||o[a].paritialVisibilityGutter),r}function yt(o,i){var t;return i[o]&&(t=(100/i[o].items).toFixed(1)),t}function St(o,i,t){return Math.round(t/(i+(o.centerMode?1:0)))}A.getPartialVisibilityGutter=gt,A.getWidthFromDeviceType=yt,A.getItemClientSideWidth=St;var S={};Object.defineProperty(S,"__esModule",{value:!0});var Y=A;function J(o){var i=o.slidesToShow;return o.totalItems<i}function Tt(o,i){var t,e=o.domLoaded,r=o.slidesToShow,a=o.containerWidth,n=o.itemWidth,s=i.deviceType,l=i.responsive,u=i.ssr,d=i.partialVisbile,c=i.partialVisible,h=!!(e&&r&&a&&n);u&&s&&!h&&(t=Y.getWidthFromDeviceType(s,l));var p=!!(u&&s&&!h&&t);return{shouldRenderOnSSR:p,flexBisis:t,domFullyLoaded:h,partialVisibilityGutter:Y.getPartialVisibilityGutter(l,d||c,s,o.deviceType),shouldRenderAtAll:p||h}}function wt(o,i){var t=i.currentSlide,e=i.slidesToShow;return t<=o&&o<t+e}function at(o,i,t){var e=t||o.transform;return!i.infinite&&o.currentSlide===0||J(o)?e:e+o.itemWidth/2}function bt(o){return!(0<o.currentSlide)}function lt(o){var i=o.currentSlide,t=o.totalItems;return!(i+o.slidesToShow<t)}function ut(o,i,t,e){i===void 0&&(i=0);var r=o.currentSlide,a=o.slidesToShow,n=lt(o),s=!t.infinite&&n,l=e||o.transform;if(J(o))return l;var u=l+r*i;return s?u+(o.containerWidth-(o.itemWidth-i)*a):u}function dt(o,i){return o.rtl?-1*i:i}function _t(o,i,t){var e=i.partialVisbile,r=i.partialVisible,a=i.responsive,n=i.deviceType,s=i.centerMode,l=t||o.transform,u=Y.getPartialVisibilityGutter(a,e||r,n,o.deviceType);return dt(i,r||e?ut(o,u,i,t):s?at(o,i,t):l)}function Ct(o,i){var t=o.domLoaded,e=o.slidesToShow,r=o.containerWidth,a=o.itemWidth,n=i.deviceType,s=i.responsive,l=i.slidesToSlide||1,u=!!(t&&e&&r&&a);return i.ssr&&i.deviceType&&!u&&Object.keys(s).forEach(function(d){var c=s[d].slidesToSlide;n===d&&c&&(l=c)}),u&&Object.keys(s).forEach(function(d){var c=s[d],h=c.breakpoint,p=c.slidesToSlide,f=h.max,g=h.min;p&&window.innerWidth>=g&&window.innerWidth<=f&&(l=p)}),l}S.notEnoughChildren=J,S.getInitialState=Tt,S.getIfSlideIsVisbile=wt,S.getTransformForCenterMode=at,S.isInLeftEnd=bt,S.isInRightEnd=lt,S.getTransformForPartialVsibile=ut,S.parsePosition=dt,S.getTransform=_t,S.getSlidesToSlide=Ct;var Q={};Object.defineProperty(Q,"__esModule",{value:!0});var It=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))}};Q.default=It;var ht={};(function(o){function i(t,e){var r=e.partialVisbile,a=e.partialVisible,n=e.centerMode,s=e.ssr,l=e.responsive;if((r||a)&&n)throw new Error("center mode can not be used at the same time with partialVisible");if(!l)throw s?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})(ht);var Z={};Object.defineProperty(Z,"__esModule",{value:!0});var Mt=S;function Pt(o,i,t){t===void 0&&(t=0);var e,r,a=o.slidesToShow,n=o.currentSlide,s=o.itemWidth,l=o.totalItems,u=Mt.getSlidesToSlide(o,i),d=n+1+t+a+(0<t?0:u);return r=d<=l?-s*(e=n+t+(0<t?0:u)):l<d&&n!==l-a?-s*(e=l-a):e=void 0,{nextSlides:e,nextPosition:r}}Z.populateNextSlides=Pt;var H={};Object.defineProperty(H,"__esModule",{value:!0});var Rt=x,Et=S,xt=S;function Ot(o,i,t){t===void 0&&(t=0);var e,r,a=o.currentSlide,n=o.itemWidth,s=o.slidesToShow,l=i.children,u=i.showDots,d=i.infinite,c=Et.getSlidesToSlide(o,i),h=a-t-(0<t?0:c),p=(Rt.Children.toArray(l).length-s)%c;return r=0<=h?(e=h,u&&!d&&0<p&&xt.isInRightEnd(o)&&(e=a-p),-n*e):e=h<0&&a!==0?0:void 0,{nextSlides:e,nextPosition:r}}H.populatePreviousSlides=Ot;var ct={};(function(o){function i(t,e,r,a,n,s){var l,u,d=t.itemWidth,c=t.slidesToShow,h=t.totalItems,p=t.currentSlide,f=e.infinite,g=!1,w=Math.round((r-a)/d),b=Math.round((a-r)/d),_=r<n;if(n<r&&w<=c){l="right";var y=Math.abs(-d*(h-c)),I=s-(a-n),C=p===h-c;(Math.abs(I)<=y||C&&f)&&(u=I,g=!0)}return _&&b<=c&&(l="left",((I=s+(n-a))<=0||p===0&&f)&&(g=!0,u=I)),{direction:l,nextPosition:u,canContinue:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.populateSlidesOnMouseTouchMove=i})(ct);Object.defineProperty(m,"__esModule",{value:!0});var V=B;m.getOriginalCounterPart=V.getOriginalCounterPart,m.getClones=V.getClones,m.checkClonesPosition=V.checkClonesPosition,m.getInitialSlideInInfiniteMode=V.getInitialSlideInInfiniteMode;var U=A;m.getWidthFromDeviceType=U.getWidthFromDeviceType,m.getPartialVisibilityGutter=U.getPartialVisibilityGutter,m.getItemClientSideWidth=U.getItemClientSideWidth;var R=S;m.getInitialState=R.getInitialState,m.getIfSlideIsVisbile=R.getIfSlideIsVisbile,m.getTransformForCenterMode=R.getTransformForCenterMode,m.getTransformForPartialVsibile=R.getTransformForPartialVsibile,m.isInLeftEnd=R.isInLeftEnd,m.isInRightEnd=R.isInRightEnd,m.notEnoughChildren=R.notEnoughChildren,m.getSlidesToSlide=R.getSlidesToSlide;var At=Q;m.throttle=At.default;var Dt=ht;m.throwError=Dt.default;var Wt=Z;m.populateNextSlides=Wt.populateNextSlides;var Lt=H;m.populatePreviousSlides=Lt.populatePreviousSlides;var kt=ct;m.populateSlidesOnMouseTouchMove=kt.populateSlidesOnMouseTouchMove;var F={},Vt=L.commonjsGlobal&&L.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 a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(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(F,"__esModule",{value:!0});var jt=x;function Gt(o){return"clientY"in o}F.isMouseMoveEvent=Gt;var Nt=function(o){function i(){return o!==null&&o.apply(this,arguments)||this}return Vt(i,o),i}(jt.Component);F.default=Nt;var tt={},et={};Object.defineProperty(et,"__esModule",{value:!0});var Bt=B,Ft=S;function $t(o,i,t,e){var r={},a=Ft.getSlidesToSlide(i,t);return Array(o).fill(0).forEach(function(n,s){var l=Bt.getOriginalCounterPart(s,i,e);if(s===0)r[0]=l;else{var u=r[s-1]+a;r[s]=u}}),r}et.getLookupTableForNextSlides=$t;Object.defineProperty(tt,"__esModule",{value:!0});var W=x,zt=B,Ut=et,rt=S,Xt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.getState,a=i.showDots,n=i.customDot,s=i.dotListClass,l=i.infinite,u=i.children;if(!a||rt.notEnoughChildren(t))return null;var d,c=t.currentSlide,h=t.slidesToShow,p=rt.getSlidesToSlide(t,i),f=W.Children.toArray(u);d=l?Math.ceil(f.length/p):Math.ceil((f.length-h)/p)+1;var g=Ut.getLookupTableForNextSlides(d,t,i,f),w=zt.getOriginalIndexLookupTableByClones(h,f),b=w[c];return W.createElement("ul",{className:"react-multi-carousel-dot-list "+s},Array(d).fill(0).map(function(_,y){var I,C;if(l){C=g[y];var O=w[C];I=b===O||O<=b&&b<O+p}else{var D=f.length-h,k=y*p;I=(C=D<k?D:k)===c||C<c&&c<C+p&&c<f.length-h}return n?W.cloneElement(n,{index:y,active:I,key:y,onClick:function(){return e(C)},carouselState:r()}):W.createElement("li",{"data-index":y,key:y,className:"react-multi-carousel-dot "+(I?"react-multi-carousel-dot--active":"")},W.createElement("button",{"aria-label":"Go to slide "+(y+1),onClick:function(){return e(C)}}))}))};tt.default=Xt;var $={};Object.defineProperty($,"__esModule",{value:!0});var N=x,Yt=function(o){var i=o.customLeftArrow,t=o.getState,e=o.previous,r=o.disabled,a=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:a});var n=a?"rtl":"";return N.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+n,onClick:function(){return e()},type:"button",disabled:r})};$.LeftArrow=Yt;var qt=function(o){var i=o.customRightArrow,t=o.getState,e=o.next,r=o.disabled,a=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:a});var n=a?"rtl":"";return N.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+n,onClick:function(){return e()},type:"button",disabled:r})};$.RightArrow=qt;var it={};Object.defineProperty(it,"__esModule",{value:!0});var j=x,X=m,Kt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.clones,a=o.notEnoughChildren,n=t.itemWidth,s=i.children,l=i.infinite,u=i.itemClass,d=i.itemAriaLabel,c=i.partialVisbile,h=i.partialVisible,p=X.getInitialState(t,i),f=p.flexBisis,g=p.shouldRenderOnSSR,w=p.domFullyLoaded,b=p.partialVisibilityGutter;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,(l?r:j.Children.toArray(s)).map(function(_,y){return j.createElement("li",{key:y,"data-index":y,onClick:function(){i.focusOnSelect&&e(y)},"aria-hidden":X.getIfSlideIsVisbile(y,t)?"false":"true","aria-label":d||(_.props.ariaLabel?_.props.ariaLabel:null),style:{flex:g?"1 0 "+f+"%":"auto",position:"relative",width:w?((c||h)&&b&&!a?n-b:n)+"px":"auto"},className:"react-multi-carousel-item "+(X.getIfSlideIsVisbile(y,t)?"react-multi-carousel-item--active":"")+" "+u},_)}))):null};it.default=Kt;var Jt=L.commonjsGlobal&&L.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 a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(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 T=x,v=m,E=F,Qt=tt,nt=$,Zt=it,G=S,M=400,st="transform 400ms ease-in-out",Ht=function(o){function i(t){var e=o.call(this,t)||this;return e.containerRef=T.createRef(),e.listRef=T.createRef(),e.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:T.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||M,e.setIsInThrottle),e.previous=v.throttle(e.previous.bind(e),t.transitionDuration||M,e.setIsInThrottle),e.goToSlide=v.throttle(e.goToSlide.bind(e),t.transitionDuration||M,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 Jt(i,o),i.prototype.resetTotalItems=function(){var t=this,e=T.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 a=G.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(e),this.listRef.current.style.transform="translate3d("+(a+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,a){var n=this;a===void 0&&(a=!1),this.isAnimationAllowed=!1;var s=T.Children.toArray(this.props.children),l=v.getInitialSlideInInfiniteMode(t||this.state.slidesToShow,s),u=v.getClones(this.state.slidesToShow,s),d=s.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:u.length,currentSlide:r&&!a?d:l},function(){n.correctItemsPosition(e||n.state.itemWidth)})},i.prototype.setItemsToShow=function(t,e){var r=this,a=this.props.responsive;Object.keys(a).forEach(function(n){var s=a[n],l=s.breakpoint,u=s.items,d=l.max,c=l.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:u,deviceType:n}),r.setContainerAndItemWidth(u,t,e))})},i.prototype.setContainerAndItemWidth=function(t,e,r){var a=this;if(this.containerRef&&this.containerRef.current){var n=this.containerRef.current.offsetWidth,s=v.getItemClientSideWidth(this.props,t,n);this.setState({containerWidth:n,itemWidth:s},function(){a.props.infinite&&a.setClones(t,s,e,r)}),e&&this.correctItemsPosition(s)}},i.prototype.correctItemsPosition=function(t,e,r){e&&(this.isAnimationAllowed=!0),!e&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var a=this.state.totalItems<this.state.slidesToShow?0:-t*this.state.currentSlide;r&&this.setTransformDirectly(a,!0),this.setState({transform:a})},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,a=t.keyBoardControl,n=t.autoPlay,s=t.children,l=e.containerWidth,u=e.domLoaded,d=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||M)),a&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!a&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),n&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),n||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),s.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||M):this.props.infinite&&this.state.currentSlide!==d&&this.correctClonesPosition({domLoaded:u}),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||M;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,a=T.Children.toArray(this.props.children),n=v.checkClonesPosition(this.state,a,this.props),s=n.isReachingTheEnd,l=n.isReachingTheStart,u=n.nextSlide,d=n.nextPosition;this.state.domLoaded&&r&&(s||l)&&(this.isAnimationAllowed=!1,i.transformTimeout=setTimeout(function(){e.setState({transform:d,currentSlide:u})},this.props.transitionDuration||M))},i.prototype.next=function(t){var e=this;t===void 0&&(t=0);var r=this.props,a=r.afterChange,n=r.beforeChange;if(!v.notEnoughChildren(this.state)){var s=v.populateNextSlides(this.state,this.props,t),l=s.nextSlides,u=s.nextPosition,d=this.state.currentSlide;l!==void 0&&u!==void 0&&(typeof n=="function"&&n(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:u,currentSlide:l},function(){typeof a=="function"&&(i.afterChangeTimeout=setTimeout(function(){a(d,e.getState())},e.props.transitionDuration||M))}))}},i.prototype.previous=function(t){var e=this;t===void 0&&(t=0);var r=this.props,a=r.afterChange,n=r.beforeChange;if(!v.notEnoughChildren(this.state)){var s=v.populatePreviousSlides(this.state,this.props,t),l=s.nextSlides,u=s.nextPosition;if(l!==void 0&&u!==void 0){var d=this.state.currentSlide;typeof n=="function"&&n(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:u,currentSlide:l},function(){typeof a=="function"&&(i.afterChangeTimeout2=setTimeout(function(){a(d,e.getState())},e.props.transitionDuration||M))})}}},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:G.parsePosition(this.props,e),clientY:G.parsePosition(this.props,r)}},i.prototype.handleDown=function(t){if(!(!E.isMouseMoveEvent(t)&&!this.props.swipeable||E.isMouseMoveEvent(t)&&!this.props.draggable||this.isInThrottle)){var e=this.getCords(E.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,a=e.clientY;this.onMove=!0,this.initialX=r,this.initialY=a,this.lastX=r,this.isAnimationAllowed=!1}},i.prototype.handleMove=function(t){if(!(!E.isMouseMoveEvent(t)&&!this.props.swipeable||E.isMouseMoveEvent(t)&&!this.props.draggable||v.notEnoughChildren(this.state))){var e=this.getCords(E.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,a=e.clientY,n=this.initialX-r,s=this.initialY-a;if(this.onMove){if(!(Math.abs(n)>Math.abs(s)))return;var l=v.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),u=l.direction,d=l.nextPosition,c=l.canContinue;u&&(this.direction=u,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 a=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(a)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(a=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(a)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},i.prototype.isInViewport=function(t){var e=t.getBoundingClientRect(),r=e.top,a=r===void 0?0:r,n=e.left,s=n===void 0?0:n,l=e.bottom,u=l===void 0?0:l,d=e.right,c=d===void 0?0:d;return 0<=a&&0<=s&&u<=(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){E.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 a=this;if(r===void 0&&(r=!0),!this.isInThrottle){var n=this.state.itemWidth,s=this.props,l=s.afterChange,u=s.beforeChange,d=this.state.currentSlide;typeof u!="function"||e&&(typeof e!="object"||e.skipBeforeChange)||u(t,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:t,transform:-n*t},function(){a.props.infinite&&a.correctClonesPosition({domLoaded:!0}),typeof l!="function"||e&&(typeof e!="object"||e.skipAfterChange)||(i.afterChangeTimeout3=setTimeout(function(){l(d,a.getState())},a.props.transitionDuration||M))})}},i.prototype.getState=function(){return this.state},i.prototype.renderLeftArrow=function(t){var e=this,r=this.props,a=r.customLeftArrow,n=r.rtl;return T.createElement(nt.LeftArrow,{customLeftArrow:a,getState:function(){return e.getState()},previous:this.previous,disabled:t,rtl:n})},i.prototype.renderRightArrow=function(t){var e=this,r=this.props,a=r.customRightArrow,n=r.rtl;return T.createElement(nt.RightArrow,{customRightArrow:a,getState:function(){return e.getState()},next:this.next,disabled:t,rtl:n})},i.prototype.renderButtonGroups=function(){var t=this,e=this.props.customButtonGroup;return e?T.cloneElement(e,{previous:function(){return t.previous()},next:function(){return t.next()},goToSlide:function(r,a){return t.goToSlide(r,a)},carouselState:this.getState()}):null},i.prototype.renderDotsList=function(){var t=this;return T.createElement(Qt.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=T.Children.toArray(this.props.children);t=v.getClones(this.state.slidesToShow,e)}return T.createElement(Zt.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,a=t.renderArrowsWhenDisabled,n=t.removeArrowOnDeviceType,s=t.infinite,l=t.containerClass,u=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 w=v.getInitialState(this.state,this.props),b=w.shouldRenderOnSSR,_=w.shouldRenderAtAll,y=v.isInLeftEnd(this.state),I=v.isInRightEnd(this.state),C=r&&!(n&&(e&&-1<n.indexOf(e)||this.state.deviceType&&-1<n.indexOf(this.state.deviceType)))&&!v.notEnoughChildren(this.state)&&_,O=!s&&y,D=!s&&I,k=G.getTransform(this.state,this.props);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 "+u,style:{transition:this.isAnimationAllowed?d||st:"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()),C&&(!O||a)&&this.renderLeftArrow(O),C&&(!D||a)&&this.renderRightArrow(D),_&&!p&&this.renderButtonGroups(),_&&!h&&this.renderDotsList()),_&&h&&this.renderDotsList(),_&&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}(T.Component);K.default=Ht;Object.defineProperty(q,"__esModule",{value:!0});var te=K;q.default=te.default;var ee=q;const ie=L.getDefaultExportFromCjs(ee),oe=vt.styled.div`
|
|
1
|
+
"use strict";const P=require("react/jsx-runtime"),x=require("react"),L=require("./_commonjsHelpers-DwTZ_eVU.cjs"),z=require("./index-BpbMKBf_.cjs"),ft=require("./Button.cjs"),mt=require("./useDetectMobile-zkbzoOGV.cjs"),vt=require("./emotion-styled.browser.esm-BtEseadx.cjs");var q={},K={},m={},B={};(function(o){function i(n,s,l){var u=s.slidesToShow,h=s.currentSlide;return l.length>2*u?n+2*u:h>=l.length?l.length+n:n}function t(n,s){if(s.length>2*n){for(var l={},u=s.length-2*n,h=s.length-u,c=u,d=0;d<h;d++)l[d]=c,c++;var p=s.length+h,f=p+s.slice(0,2*n).length,g=0;for(d=p;d<=f;d++)l[d]=g,g++;var w=p,b=0;for(d=h;d<w;d++)l[d]=b,b++;return l}l={};var _=3*s.length,y=0;for(d=0;d<_;d++)l[d]=y,++y===s.length&&(y=0);return l}function e(n,s){return s.length<n?s:s.length>2*n?s.slice(s.length-2*n,s.length).concat(s,s.slice(0,2*n)):s.concat(s,s)}function r(n,s){return s.length>2*n?2*n:s.length}function a(n,s,l){var u,h=n.currentSlide,c=n.slidesToShow,d=n.itemWidth,p=n.totalItems,f=0,g=0,w=h===0,b=s.length-(s.length-2*c);return s.length<c?(g=f=0,w=u=!1):s.length>2*c?((u=h>=b+s.length)&&(g=-d*(f=h-s.length)),w&&(g=-d*(f=b+(s.length-2*c)))):((u=h>=2*s.length)&&(g=-d*(f=h-s.length)),w&&(g=l.showDots?-d*(f=s.length):-d*(f=p/3))),{isReachingTheEnd:u,isReachingTheStart:w,nextSlide:f,nextPosition:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.getOriginalCounterPart=i,o.getOriginalIndexLookupTableByClones=t,o.getClones=e,o.getInitialSlideInInfiniteMode=r,o.checkClonesPosition=a})(B);var A={};Object.defineProperty(A,"__esModule",{value:!0});var ot=!1;function gt(o,i,t,e){var r=0,a=e||t;return i&&a&&(!ot&&process.env.NODE_ENV!=="production"&&o[a].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[a].partialVisibilityGutter||o[a].paritialVisibilityGutter),r}function yt(o,i){var t;return i[o]&&(t=(100/i[o].items).toFixed(1)),t}function St(o,i,t){return Math.round(t/(i+(o.centerMode?1:0)))}A.getPartialVisibilityGutter=gt,A.getWidthFromDeviceType=yt,A.getItemClientSideWidth=St;var S={};Object.defineProperty(S,"__esModule",{value:!0});var Y=A;function J(o){var i=o.slidesToShow;return o.totalItems<i}function Tt(o,i){var t,e=o.domLoaded,r=o.slidesToShow,a=o.containerWidth,n=o.itemWidth,s=i.deviceType,l=i.responsive,u=i.ssr,h=i.partialVisbile,c=i.partialVisible,d=!!(e&&r&&a&&n);u&&s&&!d&&(t=Y.getWidthFromDeviceType(s,l));var p=!!(u&&s&&!d&&t);return{shouldRenderOnSSR:p,flexBisis:t,domFullyLoaded:d,partialVisibilityGutter:Y.getPartialVisibilityGutter(l,h||c,s,o.deviceType),shouldRenderAtAll:p||d}}function wt(o,i){var t=i.currentSlide,e=i.slidesToShow;return t<=o&&o<t+e}function at(o,i,t){var e=t||o.transform;return!i.infinite&&o.currentSlide===0||J(o)?e:e+o.itemWidth/2}function bt(o){return!(0<o.currentSlide)}function lt(o){var i=o.currentSlide,t=o.totalItems;return!(i+o.slidesToShow<t)}function ut(o,i,t,e){i===void 0&&(i=0);var r=o.currentSlide,a=o.slidesToShow,n=lt(o),s=!t.infinite&&n,l=e||o.transform;if(J(o))return l;var u=l+r*i;return s?u+(o.containerWidth-(o.itemWidth-i)*a):u}function ht(o,i){return o.rtl?-1*i:i}function _t(o,i,t){var e=i.partialVisbile,r=i.partialVisible,a=i.responsive,n=i.deviceType,s=i.centerMode,l=t||o.transform,u=Y.getPartialVisibilityGutter(a,e||r,n,o.deviceType);return ht(i,r||e?ut(o,u,i,t):s?at(o,i,t):l)}function Ct(o,i){var t=o.domLoaded,e=o.slidesToShow,r=o.containerWidth,a=o.itemWidth,n=i.deviceType,s=i.responsive,l=i.slidesToSlide||1,u=!!(t&&e&&r&&a);return i.ssr&&i.deviceType&&!u&&Object.keys(s).forEach(function(h){var c=s[h].slidesToSlide;n===h&&c&&(l=c)}),u&&Object.keys(s).forEach(function(h){var c=s[h],d=c.breakpoint,p=c.slidesToSlide,f=d.max,g=d.min;p&&window.innerWidth>=g&&window.innerWidth<=f&&(l=p)}),l}S.notEnoughChildren=J,S.getInitialState=Tt,S.getIfSlideIsVisbile=wt,S.getTransformForCenterMode=at,S.isInLeftEnd=bt,S.isInRightEnd=lt,S.getTransformForPartialVsibile=ut,S.parsePosition=ht,S.getTransform=_t,S.getSlidesToSlide=Ct;var Q={};Object.defineProperty(Q,"__esModule",{value:!0});var It=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))}};Q.default=It;var dt={};(function(o){function i(t,e){var r=e.partialVisbile,a=e.partialVisible,n=e.centerMode,s=e.ssr,l=e.responsive;if((r||a)&&n)throw new Error("center mode can not be used at the same time with partialVisible");if(!l)throw s?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})(dt);var Z={};Object.defineProperty(Z,"__esModule",{value:!0});var Mt=S;function Pt(o,i,t){t===void 0&&(t=0);var e,r,a=o.slidesToShow,n=o.currentSlide,s=o.itemWidth,l=o.totalItems,u=Mt.getSlidesToSlide(o,i),h=n+1+t+a+(0<t?0:u);return r=h<=l?-s*(e=n+t+(0<t?0:u)):l<h&&n!==l-a?-s*(e=l-a):e=void 0,{nextSlides:e,nextPosition:r}}Z.populateNextSlides=Pt;var H={};Object.defineProperty(H,"__esModule",{value:!0});var Rt=x,Et=S,xt=S;function Ot(o,i,t){t===void 0&&(t=0);var e,r,a=o.currentSlide,n=o.itemWidth,s=o.slidesToShow,l=i.children,u=i.showDots,h=i.infinite,c=Et.getSlidesToSlide(o,i),d=a-t-(0<t?0:c),p=(Rt.Children.toArray(l).length-s)%c;return r=0<=d?(e=d,u&&!h&&0<p&&xt.isInRightEnd(o)&&(e=a-p),-n*e):e=d<0&&a!==0?0:void 0,{nextSlides:e,nextPosition:r}}H.populatePreviousSlides=Ot;var ct={};(function(o){function i(t,e,r,a,n,s){var l,u,h=t.itemWidth,c=t.slidesToShow,d=t.totalItems,p=t.currentSlide,f=e.infinite,g=!1,w=Math.round((r-a)/h),b=Math.round((a-r)/h),_=r<n;if(n<r&&w<=c){l="right";var y=Math.abs(-h*(d-c)),I=s-(a-n),C=p===d-c;(Math.abs(I)<=y||C&&f)&&(u=I,g=!0)}return _&&b<=c&&(l="left",((I=s+(n-a))<=0||p===0&&f)&&(g=!0,u=I)),{direction:l,nextPosition:u,canContinue:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.populateSlidesOnMouseTouchMove=i})(ct);Object.defineProperty(m,"__esModule",{value:!0});var V=B;m.getOriginalCounterPart=V.getOriginalCounterPart,m.getClones=V.getClones,m.checkClonesPosition=V.checkClonesPosition,m.getInitialSlideInInfiniteMode=V.getInitialSlideInInfiniteMode;var U=A;m.getWidthFromDeviceType=U.getWidthFromDeviceType,m.getPartialVisibilityGutter=U.getPartialVisibilityGutter,m.getItemClientSideWidth=U.getItemClientSideWidth;var R=S;m.getInitialState=R.getInitialState,m.getIfSlideIsVisbile=R.getIfSlideIsVisbile,m.getTransformForCenterMode=R.getTransformForCenterMode,m.getTransformForPartialVsibile=R.getTransformForPartialVsibile,m.isInLeftEnd=R.isInLeftEnd,m.isInRightEnd=R.isInRightEnd,m.notEnoughChildren=R.notEnoughChildren,m.getSlidesToSlide=R.getSlidesToSlide;var At=Q;m.throttle=At.default;var Dt=dt;m.throwError=Dt.default;var Wt=Z;m.populateNextSlides=Wt.populateNextSlides;var Lt=H;m.populatePreviousSlides=Lt.populatePreviousSlides;var kt=ct;m.populateSlidesOnMouseTouchMove=kt.populateSlidesOnMouseTouchMove;var F={},Vt=L.commonjsGlobal&&L.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 a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(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(F,"__esModule",{value:!0});var jt=x;function Gt(o){return"clientY"in o}F.isMouseMoveEvent=Gt;var Nt=function(o){function i(){return o!==null&&o.apply(this,arguments)||this}return Vt(i,o),i}(jt.Component);F.default=Nt;var tt={},et={};Object.defineProperty(et,"__esModule",{value:!0});var Bt=B,Ft=S;function $t(o,i,t,e){var r={},a=Ft.getSlidesToSlide(i,t);return Array(o).fill(0).forEach(function(n,s){var l=Bt.getOriginalCounterPart(s,i,e);if(s===0)r[0]=l;else{var u=r[s-1]+a;r[s]=u}}),r}et.getLookupTableForNextSlides=$t;Object.defineProperty(tt,"__esModule",{value:!0});var W=x,zt=B,Ut=et,rt=S,Xt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.getState,a=i.showDots,n=i.customDot,s=i.dotListClass,l=i.infinite,u=i.children;if(!a||rt.notEnoughChildren(t))return null;var h,c=t.currentSlide,d=t.slidesToShow,p=rt.getSlidesToSlide(t,i),f=W.Children.toArray(u);h=l?Math.ceil(f.length/p):Math.ceil((f.length-d)/p)+1;var g=Ut.getLookupTableForNextSlides(h,t,i,f),w=zt.getOriginalIndexLookupTableByClones(d,f),b=w[c];return W.createElement("ul",{className:"react-multi-carousel-dot-list "+s},Array(h).fill(0).map(function(_,y){var I,C;if(l){C=g[y];var O=w[C];I=b===O||O<=b&&b<O+p}else{var D=f.length-d,k=y*p;I=(C=D<k?D:k)===c||C<c&&c<C+p&&c<f.length-d}return n?W.cloneElement(n,{index:y,active:I,key:y,onClick:function(){return e(C)},carouselState:r()}):W.createElement("li",{"data-index":y,key:y,className:"react-multi-carousel-dot "+(I?"react-multi-carousel-dot--active":"")},W.createElement("button",{"aria-label":"Go to slide "+(y+1),onClick:function(){return e(C)}}))}))};tt.default=Xt;var $={};Object.defineProperty($,"__esModule",{value:!0});var N=x,Yt=function(o){var i=o.customLeftArrow,t=o.getState,e=o.previous,r=o.disabled,a=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:a});var n=a?"rtl":"";return N.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+n,onClick:function(){return e()},type:"button",disabled:r})};$.LeftArrow=Yt;var qt=function(o){var i=o.customRightArrow,t=o.getState,e=o.next,r=o.disabled,a=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:a});var n=a?"rtl":"";return N.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+n,onClick:function(){return e()},type:"button",disabled:r})};$.RightArrow=qt;var it={};Object.defineProperty(it,"__esModule",{value:!0});var j=x,X=m,Kt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.clones,a=o.notEnoughChildren,n=t.itemWidth,s=i.children,l=i.infinite,u=i.itemClass,h=i.itemAriaLabel,c=i.partialVisbile,d=i.partialVisible,p=X.getInitialState(t,i),f=p.flexBisis,g=p.shouldRenderOnSSR,w=p.domFullyLoaded,b=p.partialVisibilityGutter;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,(l?r:j.Children.toArray(s)).map(function(_,y){return j.createElement("li",{key:y,"data-index":y,onClick:function(){i.focusOnSelect&&e(y)},"aria-hidden":X.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&&!a?n-b:n)+"px":"auto"},className:"react-multi-carousel-item "+(X.getIfSlideIsVisbile(y,t)?"react-multi-carousel-item--active":"")+" "+u},_)}))):null};it.default=Kt;var Jt=L.commonjsGlobal&&L.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 a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(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 T=x,v=m,E=F,Qt=tt,nt=$,Zt=it,G=S,M=400,st="transform 400ms ease-in-out",Ht=function(o){function i(t){var e=o.call(this,t)||this;return e.containerRef=T.createRef(),e.listRef=T.createRef(),e.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:T.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||M,e.setIsInThrottle),e.previous=v.throttle(e.previous.bind(e),t.transitionDuration||M,e.setIsInThrottle),e.goToSlide=v.throttle(e.goToSlide.bind(e),t.transitionDuration||M,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 Jt(i,o),i.prototype.resetTotalItems=function(){var t=this,e=T.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 a=G.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(e),this.listRef.current.style.transform="translate3d("+(a+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,a){var n=this;a===void 0&&(a=!1),this.isAnimationAllowed=!1;var s=T.Children.toArray(this.props.children),l=v.getInitialSlideInInfiniteMode(t||this.state.slidesToShow,s),u=v.getClones(this.state.slidesToShow,s),h=s.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:u.length,currentSlide:r&&!a?h:l},function(){n.correctItemsPosition(e||n.state.itemWidth)})},i.prototype.setItemsToShow=function(t,e){var r=this,a=this.props.responsive;Object.keys(a).forEach(function(n){var s=a[n],l=s.breakpoint,u=s.items,h=l.max,c=l.min,d=[window.innerWidth];window.screen&&window.screen.width&&d.push(window.screen.width);var p=Math.min.apply(Math,d);c<=p&&p<=h&&(r.setState({slidesToShow:u,deviceType:n}),r.setContainerAndItemWidth(u,t,e))})},i.prototype.setContainerAndItemWidth=function(t,e,r){var a=this;if(this.containerRef&&this.containerRef.current){var n=this.containerRef.current.offsetWidth,s=v.getItemClientSideWidth(this.props,t,n);this.setState({containerWidth:n,itemWidth:s},function(){a.props.infinite&&a.setClones(t,s,e,r)}),e&&this.correctItemsPosition(s)}},i.prototype.correctItemsPosition=function(t,e,r){e&&(this.isAnimationAllowed=!0),!e&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var a=this.state.totalItems<this.state.slidesToShow?0:-t*this.state.currentSlide;r&&this.setTransformDirectly(a,!0),this.setState({transform:a})},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,a=t.keyBoardControl,n=t.autoPlay,s=t.children,l=e.containerWidth,u=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||M)),a&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!a&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),n&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),n||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),s.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||M):this.props.infinite&&this.state.currentSlide!==h&&this.correctClonesPosition({domLoaded:u}),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||M;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,a=T.Children.toArray(this.props.children),n=v.checkClonesPosition(this.state,a,this.props),s=n.isReachingTheEnd,l=n.isReachingTheStart,u=n.nextSlide,h=n.nextPosition;this.state.domLoaded&&r&&(s||l)&&(this.isAnimationAllowed=!1,i.transformTimeout=setTimeout(function(){e.setState({transform:h,currentSlide:u})},this.props.transitionDuration||M))},i.prototype.next=function(t){var e=this;t===void 0&&(t=0);var r=this.props,a=r.afterChange,n=r.beforeChange;if(!v.notEnoughChildren(this.state)){var s=v.populateNextSlides(this.state,this.props,t),l=s.nextSlides,u=s.nextPosition,h=this.state.currentSlide;l!==void 0&&u!==void 0&&(typeof n=="function"&&n(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:u,currentSlide:l},function(){typeof a=="function"&&(i.afterChangeTimeout=setTimeout(function(){a(h,e.getState())},e.props.transitionDuration||M))}))}},i.prototype.previous=function(t){var e=this;t===void 0&&(t=0);var r=this.props,a=r.afterChange,n=r.beforeChange;if(!v.notEnoughChildren(this.state)){var s=v.populatePreviousSlides(this.state,this.props,t),l=s.nextSlides,u=s.nextPosition;if(l!==void 0&&u!==void 0){var h=this.state.currentSlide;typeof n=="function"&&n(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:u,currentSlide:l},function(){typeof a=="function"&&(i.afterChangeTimeout2=setTimeout(function(){a(h,e.getState())},e.props.transitionDuration||M))})}}},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:G.parsePosition(this.props,e),clientY:G.parsePosition(this.props,r)}},i.prototype.handleDown=function(t){if(!(!E.isMouseMoveEvent(t)&&!this.props.swipeable||E.isMouseMoveEvent(t)&&!this.props.draggable||this.isInThrottle)){var e=this.getCords(E.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,a=e.clientY;this.onMove=!0,this.initialX=r,this.initialY=a,this.lastX=r,this.isAnimationAllowed=!1}},i.prototype.handleMove=function(t){if(!(!E.isMouseMoveEvent(t)&&!this.props.swipeable||E.isMouseMoveEvent(t)&&!this.props.draggable||v.notEnoughChildren(this.state))){var e=this.getCords(E.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,a=e.clientY,n=this.initialX-r,s=this.initialY-a;if(this.onMove){if(!(Math.abs(n)>Math.abs(s)))return;var l=v.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),u=l.direction,h=l.nextPosition,c=l.canContinue;u&&(this.direction=u,c&&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 a=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(a)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(a=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(a)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},i.prototype.isInViewport=function(t){var e=t.getBoundingClientRect(),r=e.top,a=r===void 0?0:r,n=e.left,s=n===void 0?0:n,l=e.bottom,u=l===void 0?0:l,h=e.right,c=h===void 0?0:h;return 0<=a&&0<=s&&u<=(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){E.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 a=this;if(r===void 0&&(r=!0),!this.isInThrottle){var n=this.state.itemWidth,s=this.props,l=s.afterChange,u=s.beforeChange,h=this.state.currentSlide;typeof u!="function"||e&&(typeof e!="object"||e.skipBeforeChange)||u(t,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:t,transform:-n*t},function(){a.props.infinite&&a.correctClonesPosition({domLoaded:!0}),typeof l!="function"||e&&(typeof e!="object"||e.skipAfterChange)||(i.afterChangeTimeout3=setTimeout(function(){l(h,a.getState())},a.props.transitionDuration||M))})}},i.prototype.getState=function(){return this.state},i.prototype.renderLeftArrow=function(t){var e=this,r=this.props,a=r.customLeftArrow,n=r.rtl;return T.createElement(nt.LeftArrow,{customLeftArrow:a,getState:function(){return e.getState()},previous:this.previous,disabled:t,rtl:n})},i.prototype.renderRightArrow=function(t){var e=this,r=this.props,a=r.customRightArrow,n=r.rtl;return T.createElement(nt.RightArrow,{customRightArrow:a,getState:function(){return e.getState()},next:this.next,disabled:t,rtl:n})},i.prototype.renderButtonGroups=function(){var t=this,e=this.props.customButtonGroup;return e?T.cloneElement(e,{previous:function(){return t.previous()},next:function(){return t.next()},goToSlide:function(r,a){return t.goToSlide(r,a)},carouselState:this.getState()}):null},i.prototype.renderDotsList=function(){var t=this;return T.createElement(Qt.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=T.Children.toArray(this.props.children);t=v.getClones(this.state.slidesToShow,e)}return T.createElement(Zt.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,a=t.renderArrowsWhenDisabled,n=t.removeArrowOnDeviceType,s=t.infinite,l=t.containerClass,u=t.sliderClass,h=t.customTransition,c=t.additionalTransfrom,d=t.renderDotsOutside,p=t.renderButtonGroupOutside,f=t.className,g=t.rtl;process.env.NODE_ENV!=="production"&&v.throwError(this.state,this.props);var w=v.getInitialState(this.state,this.props),b=w.shouldRenderOnSSR,_=w.shouldRenderAtAll,y=v.isInLeftEnd(this.state),I=v.isInRightEnd(this.state),C=r&&!(n&&(e&&-1<n.indexOf(e)||this.state.deviceType&&-1<n.indexOf(this.state.deviceType)))&&!v.notEnoughChildren(this.state)&&_,O=!s&&y,D=!s&&I,k=G.getTransform(this.state,this.props);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 "+u,style:{transition:this.isAnimationAllowed?h||st:"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()),C&&(!O||a)&&this.renderLeftArrow(O),C&&(!D||a)&&this.renderRightArrow(D),_&&!p&&this.renderButtonGroups(),_&&!d&&this.renderDotsList()),_&&d&&this.renderDotsList(),_&&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}(T.Component);K.default=Ht;Object.defineProperty(q,"__esModule",{value:!0});var te=K;q.default=te.default;var ee=q;const ie=L.getDefaultExportFromCjs(ee),oe=vt.styled.div`
|
|
2
2
|
&:hover {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
|
|
@@ -118,7 +118,11 @@
|
|
|
118
118
|
display: block;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
@media (max-width:
|
|
121
|
+
@media (max-width: 464px) {
|
|
122
|
+
& .carousel-item {
|
|
123
|
+
padding-right: 0.5rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
122
126
|
& .section__card {
|
|
123
127
|
height: 23.4375rem;
|
|
124
128
|
border-radius: 0.5rem;
|
|
@@ -135,10 +139,4 @@
|
|
|
135
139
|
}
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
|
-
|
|
139
|
-
@media (max-width: 1024px) {
|
|
140
|
-
& .carousel-item {
|
|
141
|
-
padding-right: 0.5rem;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
`,pt=x.forwardRef(({items:o=[],onSelectItem:i=()=>{},onButtonAction:t=()=>{}},e)=>{const r={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:48}},a=mt.useDetectMobile();return P.jsx(oe,{ref:e,children:P.jsx(ie,{responsive:r,removeArrowOnDeviceType:"mobile",infinite:!a,keyBoardControl:!0,autoPlay:!0,partialVisible:!0,customTransition:"transform 300ms ease-in-out",transitionDuration:300,sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",children:o==null?void 0:o.map((n,s)=>P.jsxs("div",{className:"section__card",onClick:()=>i(n),children:[P.jsx("img",{src:n==null?void 0:n.imageUrl,alt:`Slide ${s+1}`,className:"section__image"}),P.jsxs("div",{className:"card__content",children:[P.jsxs("div",{className:"card__text",children:[(n==null?void 0:n.title)&&P.jsx("div",{className:"card__title",children:n==null?void 0:n.title}),(n==null?void 0:n.title)&&P.jsx("div",{className:"card__description",children:n==null?void 0:n.description})]}),(n==null?void 0:n.buttonText)&&P.jsx(ft,{text:n==null?void 0:n.buttonText,className:"card__action",size:"medium",onClick:l=>{l==null||l.stopPropagation(),t(n)}})]})]},`banner-section-carousel-item__${s+1}`))})},`banner-section-carousel__${a}`)});pt.propTypes={items:z.PropTypes.array,onSelectItem:z.PropTypes.func,onButtonAction:z.PropTypes.func};module.exports=pt;
|
|
142
|
+
`,pt=x.forwardRef(({items:o=[],onSelectItem:i=()=>{},onButtonAction:t=()=>{}},e)=>{const r={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}},a=mt.useDetectMobile();return P.jsx(oe,{ref:e,children:P.jsx(ie,{responsive:r,removeArrowOnDeviceType:"mobile",infinite:!a,keyBoardControl:!0,autoPlay:!0,partialVisible:!0,customTransition:"transform 300ms ease-in-out",transitionDuration:300,sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",children:o==null?void 0:o.map((n,s)=>P.jsxs("div",{className:"section__card",onClick:()=>i(n),children:[P.jsx("img",{src:n==null?void 0:n.imageUrl,alt:`Slide ${s+1}`,className:"section__image"}),P.jsxs("div",{className:"card__content",children:[P.jsxs("div",{className:"card__text",children:[(n==null?void 0:n.title)&&P.jsx("div",{className:"card__title",children:n==null?void 0:n.title}),(n==null?void 0:n.title)&&P.jsx("div",{className:"card__description",children:n==null?void 0:n.description})]}),(n==null?void 0:n.buttonText)&&P.jsx(ft,{text:n==null?void 0:n.buttonText,className:"card__action",size:"medium",onClick:l=>{l==null||l.stopPropagation(),t(n)}})]})]},`banner-section-carousel-item__${s+1}`))})},`banner-section-carousel__${a}`)});pt.propTypes={items:z.PropTypes.array,onSelectItem:z.PropTypes.func,onButtonAction:z.PropTypes.func};module.exports=pt;
|
|
@@ -8,21 +8,21 @@ import { s as yt } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
8
8
|
var q = {}, J = {}, m = {}, B = {};
|
|
9
9
|
(function(o) {
|
|
10
10
|
function i(n, s, l) {
|
|
11
|
-
var u = s.slidesToShow,
|
|
12
|
-
return l.length > 2 * u ? n + 2 * u :
|
|
11
|
+
var u = s.slidesToShow, h = s.currentSlide;
|
|
12
|
+
return l.length > 2 * u ? n + 2 * u : h >= l.length ? l.length + n : n;
|
|
13
13
|
}
|
|
14
14
|
function t(n, s) {
|
|
15
15
|
if (s.length > 2 * n) {
|
|
16
|
-
for (var l = {}, u = s.length - 2 * n,
|
|
17
|
-
var p = s.length +
|
|
18
|
-
for (
|
|
16
|
+
for (var l = {}, u = s.length - 2 * n, h = s.length - u, c = u, d = 0; d < h; d++) l[d] = c, c++;
|
|
17
|
+
var p = s.length + h, f = p + s.slice(0, 2 * n).length, g = 0;
|
|
18
|
+
for (d = p; d <= f; d++) l[d] = g, g++;
|
|
19
19
|
var w = p, b = 0;
|
|
20
|
-
for (
|
|
20
|
+
for (d = h; d < w; d++) l[d] = b, b++;
|
|
21
21
|
return l;
|
|
22
22
|
}
|
|
23
23
|
l = {};
|
|
24
24
|
var _ = 3 * s.length, y = 0;
|
|
25
|
-
for (
|
|
25
|
+
for (d = 0; d < _; d++) l[d] = y, ++y === s.length && (y = 0);
|
|
26
26
|
return l;
|
|
27
27
|
}
|
|
28
28
|
function e(n, s) {
|
|
@@ -32,8 +32,8 @@ var q = {}, J = {}, m = {}, B = {};
|
|
|
32
32
|
return s.length > 2 * n ? 2 * n : s.length;
|
|
33
33
|
}
|
|
34
34
|
function a(n, s, l) {
|
|
35
|
-
var u,
|
|
36
|
-
return s.length < c ? (g = f = 0, w = u = !1) : s.length > 2 * c ? ((u =
|
|
35
|
+
var u, h = n.currentSlide, c = n.slidesToShow, d = n.itemWidth, p = n.totalItems, f = 0, g = 0, w = h === 0, b = s.length - (s.length - 2 * c);
|
|
36
|
+
return s.length < c ? (g = f = 0, w = u = !1) : s.length > 2 * c ? ((u = h >= b + s.length) && (g = -d * (f = h - s.length)), w && (g = -d * (f = b + (s.length - 2 * c)))) : ((u = h >= 2 * s.length) && (g = -d * (f = h - s.length)), w && (g = l.showDots ? -d * (f = s.length) : -d * (f = p / 3))), { isReachingTheEnd: u, isReachingTheStart: w, nextSlide: f, nextPosition: g };
|
|
37
37
|
}
|
|
38
38
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.getOriginalCounterPart = i, o.getOriginalIndexLookupTableByClones = t, o.getClones = e, o.getInitialSlideInInfiniteMode = r, o.checkClonesPosition = a;
|
|
39
39
|
})(B);
|
|
@@ -60,10 +60,10 @@ function Q(o) {
|
|
|
60
60
|
return o.totalItems < i;
|
|
61
61
|
}
|
|
62
62
|
function bt(o, i) {
|
|
63
|
-
var t, e = o.domLoaded, r = o.slidesToShow, a = o.containerWidth, n = o.itemWidth, s = i.deviceType, l = i.responsive, u = i.ssr,
|
|
64
|
-
u && s && !
|
|
65
|
-
var p = !!(u && s && !
|
|
66
|
-
return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded:
|
|
63
|
+
var t, e = o.domLoaded, r = o.slidesToShow, a = o.containerWidth, n = o.itemWidth, s = i.deviceType, l = i.responsive, u = i.ssr, h = i.partialVisbile, c = i.partialVisible, d = !!(e && r && a && n);
|
|
64
|
+
u && s && !d && (t = K.getWidthFromDeviceType(s, l));
|
|
65
|
+
var p = !!(u && s && !d && t);
|
|
66
|
+
return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: d, partialVisibilityGutter: K.getPartialVisibilityGutter(l, h || c, s, o.deviceType), shouldRenderAtAll: p || d };
|
|
67
67
|
}
|
|
68
68
|
function _t(o, i) {
|
|
69
69
|
var t = i.currentSlide, e = i.slidesToShow;
|
|
@@ -80,31 +80,31 @@ function ut(o) {
|
|
|
80
80
|
var i = o.currentSlide, t = o.totalItems;
|
|
81
81
|
return !(i + o.slidesToShow < t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ht(o, i, t, e) {
|
|
84
84
|
i === void 0 && (i = 0);
|
|
85
85
|
var r = o.currentSlide, a = o.slidesToShow, n = ut(o), s = !t.infinite && n, l = e || o.transform;
|
|
86
86
|
if (Q(o)) return l;
|
|
87
87
|
var u = l + r * i;
|
|
88
88
|
return s ? u + (o.containerWidth - (o.itemWidth - i) * a) : u;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function dt(o, i) {
|
|
91
91
|
return o.rtl ? -1 * i : i;
|
|
92
92
|
}
|
|
93
93
|
function It(o, i, t) {
|
|
94
94
|
var e = i.partialVisbile, r = i.partialVisible, a = i.responsive, n = i.deviceType, s = i.centerMode, l = t || o.transform, u = K.getPartialVisibilityGutter(a, e || r, n, o.deviceType);
|
|
95
|
-
return
|
|
95
|
+
return dt(i, r || e ? ht(o, u, i, t) : s ? lt(o, i, t) : l);
|
|
96
96
|
}
|
|
97
97
|
function Mt(o, i) {
|
|
98
98
|
var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth, a = o.itemWidth, n = i.deviceType, s = i.responsive, l = i.slidesToSlide || 1, u = !!(t && e && r && a);
|
|
99
|
-
return i.ssr && i.deviceType && !u && Object.keys(s).forEach(function(
|
|
100
|
-
var c = s[
|
|
101
|
-
n ===
|
|
102
|
-
}), u && Object.keys(s).forEach(function(
|
|
103
|
-
var c = s[
|
|
99
|
+
return i.ssr && i.deviceType && !u && Object.keys(s).forEach(function(h) {
|
|
100
|
+
var c = s[h].slidesToSlide;
|
|
101
|
+
n === h && c && (l = c);
|
|
102
|
+
}), u && Object.keys(s).forEach(function(h) {
|
|
103
|
+
var c = s[h], d = c.breakpoint, p = c.slidesToSlide, f = d.max, g = d.min;
|
|
104
104
|
p && window.innerWidth >= g && window.innerWidth <= f && (l = p);
|
|
105
105
|
}), l;
|
|
106
106
|
}
|
|
107
|
-
S.notEnoughChildren = Q, S.getInitialState = bt, S.getIfSlideIsVisbile = _t, S.getTransformForCenterMode = lt, S.isInLeftEnd = Ct, S.isInRightEnd = ut, S.getTransformForPartialVsibile =
|
|
107
|
+
S.notEnoughChildren = Q, S.getInitialState = bt, S.getIfSlideIsVisbile = _t, S.getTransformForCenterMode = lt, S.isInLeftEnd = Ct, S.isInRightEnd = ut, S.getTransformForPartialVsibile = ht, S.parsePosition = dt, S.getTransform = It, S.getSlidesToSlide = Mt;
|
|
108
108
|
var Z = {};
|
|
109
109
|
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
110
110
|
var Pt = function(o, i, t) {
|
|
@@ -132,8 +132,8 @@ Object.defineProperty(H, "__esModule", { value: !0 });
|
|
|
132
132
|
var Et = S;
|
|
133
133
|
function Rt(o, i, t) {
|
|
134
134
|
t === void 0 && (t = 0);
|
|
135
|
-
var e, r, a = o.slidesToShow, n = o.currentSlide, s = o.itemWidth, l = o.totalItems, u = Et.getSlidesToSlide(o, i),
|
|
136
|
-
return r =
|
|
135
|
+
var e, r, a = o.slidesToShow, n = o.currentSlide, s = o.itemWidth, l = o.totalItems, u = Et.getSlidesToSlide(o, i), h = n + 1 + t + a + (0 < t ? 0 : u);
|
|
136
|
+
return r = h <= l ? -s * (e = n + t + (0 < t ? 0 : u)) : l < h && n !== l - a ? -s * (e = l - a) : e = void 0, { nextSlides: e, nextPosition: r };
|
|
137
137
|
}
|
|
138
138
|
H.populateNextSlides = Rt;
|
|
139
139
|
var tt = {};
|
|
@@ -141,17 +141,17 @@ Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
|
141
141
|
var xt = A, Ot = S, At = S;
|
|
142
142
|
function Dt(o, i, t) {
|
|
143
143
|
t === void 0 && (t = 0);
|
|
144
|
-
var e, r, a = o.currentSlide, n = o.itemWidth, s = o.slidesToShow, l = i.children, u = i.showDots,
|
|
145
|
-
return r = 0 <=
|
|
144
|
+
var e, r, a = o.currentSlide, n = o.itemWidth, s = o.slidesToShow, l = i.children, u = i.showDots, h = i.infinite, c = Ot.getSlidesToSlide(o, i), d = a - t - (0 < t ? 0 : c), p = (xt.Children.toArray(l).length - s) % c;
|
|
145
|
+
return r = 0 <= d ? (e = d, u && !h && 0 < p && At.isInRightEnd(o) && (e = a - p), -n * e) : e = d < 0 && a !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
|
|
146
146
|
}
|
|
147
147
|
tt.populatePreviousSlides = Dt;
|
|
148
148
|
var pt = {};
|
|
149
149
|
(function(o) {
|
|
150
150
|
function i(t, e, r, a, n, s) {
|
|
151
|
-
var l, u,
|
|
151
|
+
var l, u, h = t.itemWidth, c = t.slidesToShow, d = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - a) / h), b = Math.round((a - r) / h), _ = r < n;
|
|
152
152
|
if (n < r && w <= c) {
|
|
153
153
|
l = "right";
|
|
154
|
-
var y = Math.abs(-
|
|
154
|
+
var y = Math.abs(-h * (d - c)), I = s - (a - n), C = p === d - c;
|
|
155
155
|
(Math.abs(I) <= y || C && f) && (u = I, g = !0);
|
|
156
156
|
}
|
|
157
157
|
return _ && b <= c && (l = "left", ((I = s + (n - a)) <= 0 || p === 0 && f) && (g = !0, u = I)), { direction: l, nextPosition: u, canContinue: g };
|
|
@@ -222,18 +222,18 @@ Object.defineProperty(et, "__esModule", { value: !0 });
|
|
|
222
222
|
var W = A, Xt = B, Yt = it, nt = S, Kt = function(o) {
|
|
223
223
|
var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, a = i.showDots, n = i.customDot, s = i.dotListClass, l = i.infinite, u = i.children;
|
|
224
224
|
if (!a || nt.notEnoughChildren(t)) return null;
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
var g = Yt.getLookupTableForNextSlides(
|
|
228
|
-
return W.createElement("ul", { className: "react-multi-carousel-dot-list " + s }, Array(
|
|
225
|
+
var h, c = t.currentSlide, d = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f = W.Children.toArray(u);
|
|
226
|
+
h = l ? Math.ceil(f.length / p) : Math.ceil((f.length - d) / p) + 1;
|
|
227
|
+
var g = Yt.getLookupTableForNextSlides(h, t, i, f), w = Xt.getOriginalIndexLookupTableByClones(d, f), b = w[c];
|
|
228
|
+
return W.createElement("ul", { className: "react-multi-carousel-dot-list " + s }, Array(h).fill(0).map(function(_, y) {
|
|
229
229
|
var I, C;
|
|
230
230
|
if (l) {
|
|
231
231
|
C = g[y];
|
|
232
232
|
var R = w[C];
|
|
233
233
|
I = b === R || R <= b && b < R + p;
|
|
234
234
|
} else {
|
|
235
|
-
var D = f.length -
|
|
236
|
-
I = (C = D < L ? D : L) === c || C < c && c < C + p && c < f.length -
|
|
235
|
+
var D = f.length - d, L = y * p;
|
|
236
|
+
I = (C = D < L ? D : L) === c || C < c && c < C + p && c < f.length - d;
|
|
237
237
|
}
|
|
238
238
|
return n ? W.cloneElement(n, { index: y, active: I, key: y, onClick: function() {
|
|
239
239
|
return e(C);
|
|
@@ -270,11 +270,11 @@ $.RightArrow = Jt;
|
|
|
270
270
|
var ot = {};
|
|
271
271
|
Object.defineProperty(ot, "__esModule", { value: !0 });
|
|
272
272
|
var V = A, Y = m, Qt = function(o) {
|
|
273
|
-
var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, a = o.notEnoughChildren, n = t.itemWidth, s = i.children, l = i.infinite, u = i.itemClass,
|
|
273
|
+
var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, a = o.notEnoughChildren, n = t.itemWidth, s = i.children, l = i.infinite, u = 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;
|
|
274
274
|
return p.shouldRenderAtAll ? (c && console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'), V.createElement(V.Fragment, null, (l ? r : V.Children.toArray(s)).map(function(_, y) {
|
|
275
275
|
return V.createElement("li", { key: y, "data-index": y, onClick: function() {
|
|
276
276
|
i.focusOnSelect && e(y);
|
|
277
|
-
}, "aria-hidden": Y.getIfSlideIsVisbile(y, t) ? "false" : "true", "aria-label":
|
|
277
|
+
}, "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 && !a ? n - b : n) + "px" : "auto" }, className: "react-multi-carousel-item " + (Y.getIfSlideIsVisbile(y, t) ? "react-multi-carousel-item--active" : "") + " " + u }, _);
|
|
278
278
|
}))) : null;
|
|
279
279
|
};
|
|
280
280
|
ot.default = Qt;
|
|
@@ -318,17 +318,17 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
318
318
|
}, i.prototype.setClones = function(t, e, r, a) {
|
|
319
319
|
var n = this;
|
|
320
320
|
a === void 0 && (a = !1), this.isAnimationAllowed = !1;
|
|
321
|
-
var s = T.Children.toArray(this.props.children), l = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, s), u = v.getClones(this.state.slidesToShow, s),
|
|
322
|
-
this.setState({ totalItems: u.length, currentSlide: r && !a ?
|
|
321
|
+
var s = T.Children.toArray(this.props.children), l = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, s), u = v.getClones(this.state.slidesToShow, s), h = s.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
|
|
322
|
+
this.setState({ totalItems: u.length, currentSlide: r && !a ? h : l }, function() {
|
|
323
323
|
n.correctItemsPosition(e || n.state.itemWidth);
|
|
324
324
|
});
|
|
325
325
|
}, i.prototype.setItemsToShow = function(t, e) {
|
|
326
326
|
var r = this, a = this.props.responsive;
|
|
327
327
|
Object.keys(a).forEach(function(n) {
|
|
328
|
-
var s = a[n], l = s.breakpoint, u = s.items,
|
|
329
|
-
window.screen && window.screen.width &&
|
|
330
|
-
var p = Math.min.apply(Math,
|
|
331
|
-
c <= p && p <=
|
|
328
|
+
var s = a[n], l = s.breakpoint, u = s.items, h = l.max, c = l.min, d = [window.innerWidth];
|
|
329
|
+
window.screen && window.screen.width && d.push(window.screen.width);
|
|
330
|
+
var p = Math.min.apply(Math, d);
|
|
331
|
+
c <= p && p <= h && (r.setState({ slidesToShow: u, deviceType: n }), r.setContainerAndItemWidth(u, t, e));
|
|
332
332
|
});
|
|
333
333
|
}, i.prototype.setContainerAndItemWidth = function(t, e, r) {
|
|
334
334
|
var a = this;
|
|
@@ -346,31 +346,31 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
346
346
|
var e;
|
|
347
347
|
e = !!this.props.infinite && (typeof t != "boolean" || !t), this.setItemsToShow(e);
|
|
348
348
|
}, i.prototype.componentDidUpdate = function(t, e) {
|
|
349
|
-
var r = this, a = t.keyBoardControl, n = t.autoPlay, s = t.children, l = e.containerWidth, u = e.domLoaded,
|
|
349
|
+
var r = this, a = t.keyBoardControl, n = t.autoPlay, s = t.children, l = e.containerWidth, u = e.domLoaded, h = e.currentSlide;
|
|
350
350
|
if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== l && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
|
|
351
351
|
r.setItemsToShow(!0);
|
|
352
352
|
}, this.props.transitionDuration || M)), a && !this.props.keyBoardControl && window.removeEventListener("keyup", this.onKeyUp), !a && this.props.keyBoardControl && window.addEventListener("keyup", this.onKeyUp), n && !this.props.autoPlay && this.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = void 0), n || !this.props.autoPlay || this.autoPlay || (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed)), s.length !== this.props.children.length ? i.clonesTimeout = setTimeout(function() {
|
|
353
353
|
r.props.infinite ? r.setClones(r.state.slidesToShow, r.state.itemWidth, !0, !0) : r.resetTotalItems();
|
|
354
|
-
}, this.props.transitionDuration || M) : this.props.infinite && this.state.currentSlide !==
|
|
354
|
+
}, this.props.transitionDuration || M) : this.props.infinite && this.state.currentSlide !== h && this.correctClonesPosition({ domLoaded: u }), this.transformPlaceHolder !== this.state.transform && (this.transformPlaceHolder = this.state.transform), this.props.autoPlay && this.props.rewind && !this.props.infinite && v.isInRightEnd(this.state)) {
|
|
355
355
|
var c = this.props.transitionDuration || M;
|
|
356
356
|
i.isInThrottleTimeout = setTimeout(function() {
|
|
357
357
|
r.setIsInThrottle(!1), r.resetAutoplayInterval(), r.goToSlide(0, void 0, !!r.props.rewindWithAnimation);
|
|
358
358
|
}, c + this.props.autoPlaySpeed);
|
|
359
359
|
}
|
|
360
360
|
}, i.prototype.correctClonesPosition = function(t) {
|
|
361
|
-
var e = this, r = t.domLoaded, a = T.Children.toArray(this.props.children), n = v.checkClonesPosition(this.state, a, this.props), s = n.isReachingTheEnd, l = n.isReachingTheStart, u = n.nextSlide,
|
|
361
|
+
var e = this, r = t.domLoaded, a = T.Children.toArray(this.props.children), n = v.checkClonesPosition(this.state, a, this.props), s = n.isReachingTheEnd, l = n.isReachingTheStart, u = n.nextSlide, h = n.nextPosition;
|
|
362
362
|
this.state.domLoaded && r && (s || l) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
|
|
363
|
-
e.setState({ transform:
|
|
363
|
+
e.setState({ transform: h, currentSlide: u });
|
|
364
364
|
}, this.props.transitionDuration || M));
|
|
365
365
|
}, i.prototype.next = function(t) {
|
|
366
366
|
var e = this;
|
|
367
367
|
t === void 0 && (t = 0);
|
|
368
368
|
var r = this.props, a = r.afterChange, n = r.beforeChange;
|
|
369
369
|
if (!v.notEnoughChildren(this.state)) {
|
|
370
|
-
var s = v.populateNextSlides(this.state, this.props, t), l = s.nextSlides, u = s.nextPosition,
|
|
370
|
+
var s = v.populateNextSlides(this.state, this.props, t), l = s.nextSlides, u = s.nextPosition, h = this.state.currentSlide;
|
|
371
371
|
l !== void 0 && u !== void 0 && (typeof n == "function" && n(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: l }, function() {
|
|
372
372
|
typeof a == "function" && (i.afterChangeTimeout = setTimeout(function() {
|
|
373
|
-
a(
|
|
373
|
+
a(h, e.getState());
|
|
374
374
|
}, e.props.transitionDuration || M));
|
|
375
375
|
}));
|
|
376
376
|
}
|
|
@@ -381,10 +381,10 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
381
381
|
if (!v.notEnoughChildren(this.state)) {
|
|
382
382
|
var s = v.populatePreviousSlides(this.state, this.props, t), l = s.nextSlides, u = s.nextPosition;
|
|
383
383
|
if (l !== void 0 && u !== void 0) {
|
|
384
|
-
var
|
|
384
|
+
var h = this.state.currentSlide;
|
|
385
385
|
typeof n == "function" && n(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: l }, function() {
|
|
386
386
|
typeof a == "function" && (i.afterChangeTimeout2 = setTimeout(function() {
|
|
387
|
-
a(
|
|
387
|
+
a(h, e.getState());
|
|
388
388
|
}, e.props.transitionDuration || M));
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -408,8 +408,8 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
408
408
|
var e = this.getCords(E.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, a = e.clientY, n = this.initialX - r, s = this.initialY - a;
|
|
409
409
|
if (this.onMove) {
|
|
410
410
|
if (!(Math.abs(n) > Math.abs(s))) return;
|
|
411
|
-
var l = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), u = l.direction,
|
|
412
|
-
u && (this.direction = u, c &&
|
|
411
|
+
var l = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), u = l.direction, h = l.nextPosition, c = l.canContinue;
|
|
412
|
+
u && (this.direction = u, c && h !== void 0 && this.setTransformDirectly(h)), this.lastX = r;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
}, i.prototype.handleOut = function(t) {
|
|
@@ -423,7 +423,7 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
423
423
|
this.direction === "left" && (this.lastX - this.initialX > this.props.minimumTouchDrag ? (a = Math.round((this.lastX - this.initialX) / this.state.itemWidth), this.previous(a)) : this.correctItemsPosition(this.state.itemWidth, !0, !0)), this.resetMoveStatus();
|
|
424
424
|
}
|
|
425
425
|
}, i.prototype.isInViewport = function(t) {
|
|
426
|
-
var e = t.getBoundingClientRect(), r = e.top, a = r === void 0 ? 0 : r, n = e.left, s = n === void 0 ? 0 : n, l = e.bottom, u = l === void 0 ? 0 : l,
|
|
426
|
+
var e = t.getBoundingClientRect(), r = e.top, a = r === void 0 ? 0 : r, n = e.left, s = n === void 0 ? 0 : n, l = e.bottom, u = l === void 0 ? 0 : l, h = e.right, c = h === void 0 ? 0 : h;
|
|
427
427
|
return 0 <= a && 0 <= s && u <= (window.innerHeight || document.documentElement.clientHeight) && c <= (window.innerWidth || document.documentElement.clientWidth);
|
|
428
428
|
}, i.prototype.isChildOfCarousel = function(t) {
|
|
429
429
|
return !!(t instanceof Element && this.listRef && this.listRef.current) && this.listRef.current.contains(t);
|
|
@@ -444,10 +444,10 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
444
444
|
}, i.prototype.goToSlide = function(t, e, r) {
|
|
445
445
|
var a = this;
|
|
446
446
|
if (r === void 0 && (r = !0), !this.isInThrottle) {
|
|
447
|
-
var n = this.state.itemWidth, s = this.props, l = s.afterChange, u = s.beforeChange,
|
|
447
|
+
var n = this.state.itemWidth, s = this.props, l = s.afterChange, u = s.beforeChange, h = this.state.currentSlide;
|
|
448
448
|
typeof u != "function" || e && (typeof e != "object" || e.skipBeforeChange) || u(t, this.getState()), this.isAnimationAllowed = r, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ currentSlide: t, transform: -n * t }, function() {
|
|
449
449
|
a.props.infinite && a.correctClonesPosition({ domLoaded: !0 }), typeof l != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
|
|
450
|
-
l(
|
|
450
|
+
l(h, a.getState());
|
|
451
451
|
}, a.props.transitionDuration || M));
|
|
452
452
|
});
|
|
453
453
|
}
|
|
@@ -485,10 +485,10 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
485
485
|
}
|
|
486
486
|
return T.createElement(te.default, { clones: t, goToSlide: this.goToSlide, state: this.state, notEnoughChildren: v.notEnoughChildren(this.state), props: this.props });
|
|
487
487
|
}, i.prototype.render = function() {
|
|
488
|
-
var t = this.props, e = t.deviceType, r = t.arrows, a = t.renderArrowsWhenDisabled, n = t.removeArrowOnDeviceType, s = t.infinite, l = t.containerClass, u = t.sliderClass,
|
|
488
|
+
var t = this.props, e = t.deviceType, r = t.arrows, a = t.renderArrowsWhenDisabled, n = t.removeArrowOnDeviceType, s = t.infinite, l = t.containerClass, u = t.sliderClass, h = t.customTransition, c = t.additionalTransfrom, d = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
|
|
489
489
|
process.env.NODE_ENV !== "production" && v.throwError(this.state, this.props);
|
|
490
490
|
var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, y = v.isInLeftEnd(this.state), I = v.isInRightEnd(this.state), C = r && !(n && (e && -1 < n.indexOf(e) || this.state.deviceType && -1 < n.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, R = !s && y, D = !s && I, L = j.getTransform(this.state, this.props);
|
|
491
|
-
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 " + u, style: { transition: this.isAnimationAllowed ?
|
|
491
|
+
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 " + u, style: { transition: this.isAnimationAllowed ? h || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (L + 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()), C && (!R || a) && this.renderLeftArrow(R), C && (!D || a) && this.renderRightArrow(D), _ && !p && this.renderButtonGroups(), _ && !d && this.renderDotsList()), _ && d && this.renderDotsList(), _ && p && this.renderButtonGroups());
|
|
492
492
|
}, 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;
|
|
493
493
|
}(T.Component);
|
|
494
494
|
J.default = ee;
|
|
@@ -616,7 +616,11 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
|
|
|
616
616
|
display: block;
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
@media (max-width:
|
|
619
|
+
@media (max-width: 464px) {
|
|
620
|
+
& .carousel-item {
|
|
621
|
+
padding-right: 0.5rem;
|
|
622
|
+
}
|
|
623
|
+
|
|
620
624
|
& .section__card {
|
|
621
625
|
height: 23.4375rem;
|
|
622
626
|
border-radius: 0.5rem;
|
|
@@ -633,12 +637,6 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
|
|
|
633
637
|
}
|
|
634
638
|
}
|
|
635
639
|
}
|
|
636
|
-
|
|
637
|
-
@media (max-width: 1024px) {
|
|
638
|
-
& .carousel-item {
|
|
639
|
-
padding-right: 0.5rem;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
640
|
`, se = ft(
|
|
643
641
|
({ items: o = [], onSelectItem: i = () => {
|
|
644
642
|
}, onButtonAction: t = () => {
|
|
@@ -657,7 +655,7 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
|
|
|
657
655
|
mobile: {
|
|
658
656
|
breakpoint: { max: 464, min: 0 },
|
|
659
657
|
items: 1,
|
|
660
|
-
partialVisibilityGutter:
|
|
658
|
+
partialVisibilityGutter: 64
|
|
661
659
|
}
|
|
662
660
|
}, a = gt();
|
|
663
661
|
return /* @__PURE__ */ x(ne, { ref: e, children: /* @__PURE__ */ x(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),H=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./consts-goSZX3xP.cjs"),M=require("./Button.cjs"),z=require("./useDetectMobile-zkbzoOGV.cjs"),I=require("./utils-DmMdPm9O.cjs"),B=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
@@ -19,12 +19,20 @@
|
|
|
19
19
|
min-height: ${e=>`${e.height}px`||"22.5rem"};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
& .header-image {
|
|
23
|
+
max-width: 148px;
|
|
24
|
+
max-height: 148px;
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: 2rem;
|
|
27
|
+
top: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
23
31
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
24
32
|
|
|
25
33
|
`}
|
|
26
34
|
|
|
27
|
-
@media (max-width: ${
|
|
35
|
+
@media (max-width: ${a.MOBILE_SIZE_PX+"px"}) {
|
|
28
36
|
gap: 1.5rem;
|
|
29
37
|
flex-direction: column;
|
|
30
38
|
min-height: unset;
|
|
@@ -42,13 +50,22 @@
|
|
|
42
50
|
max-height: ${e=>`${e.imgHMob}px`||"12.1rem"};
|
|
43
51
|
min-height: ${e=>`${e.imgHMob}px`||"12.1rem"};
|
|
44
52
|
}
|
|
53
|
+
|
|
54
|
+
& .header-image {
|
|
55
|
+
max-width: 128px;
|
|
56
|
+
max-height: 128px;
|
|
57
|
+
min-width: 128px;
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0;
|
|
60
|
+
}
|
|
45
61
|
}
|
|
46
|
-
`,
|
|
62
|
+
`,_=n.styled.div`
|
|
47
63
|
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
48
64
|
display: flex;
|
|
49
65
|
gap: 2rem;
|
|
50
66
|
flex-direction: ${e=>e.isHorizontalContent===!0?"row":"column"};
|
|
51
67
|
flex: 1;
|
|
68
|
+
z-index: 2;
|
|
52
69
|
|
|
53
70
|
${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
|
|
54
71
|
|
|
@@ -67,11 +84,13 @@
|
|
|
67
84
|
}
|
|
68
85
|
}
|
|
69
86
|
|
|
70
|
-
@media (max-width: ${
|
|
87
|
+
@media (max-width: ${a.MOBILE_SIZE_PX+"px"}) {
|
|
71
88
|
padding: 0;
|
|
72
89
|
flex-direction: column;
|
|
90
|
+
|
|
91
|
+
${e=>e!=null&&e.hasHeaderImage?"padding: 1rem 3rem;":""}
|
|
73
92
|
}
|
|
74
|
-
`,
|
|
93
|
+
`,k=n.styled.div`
|
|
75
94
|
display: flex;
|
|
76
95
|
flex-direction: column;
|
|
77
96
|
gap: 0.25rem;
|
|
@@ -94,7 +113,7 @@
|
|
|
94
113
|
letter-spacing: -0.0112rem;
|
|
95
114
|
}
|
|
96
115
|
|
|
97
|
-
@media (max-width: ${
|
|
116
|
+
@media (max-width: ${a.MOBILE_SIZE_PX+"px"}) {
|
|
98
117
|
flex-direction: column;
|
|
99
118
|
|
|
100
119
|
& .header-title {
|
|
@@ -110,4 +129,4 @@
|
|
|
110
129
|
letter-spacing: -0.0112rem;
|
|
111
130
|
}
|
|
112
131
|
}
|
|
113
|
-
`,
|
|
132
|
+
`,q=H.forwardRef((e,d)=>{const{title:g,subtitle:c,buttonText:x,buttonLink:u,onButtonAction:p=()=>{},imageUrl:o,imagePosition:s="right",hideImageForMobile:m=!1,sectionHeight:b="12.65625rem",imageWidth:f,imageHeightMobile:$,smallPadding:w=!1,isHorizontalContent:y=!1,backgroundColor:v,hasBorder:j=!1,headerImageUrl:i}=e,l=z.useDetectMobile();return t.jsxs(B,{ref:d,bgcolor:v,height:b,imgW:f,imgHMob:$,hasBorder:j,children:[i&&t.jsx("img",{src:i,className:"header-image",alt:"Header image"}),s!=="right"&&!(m===!0&&l===!0)&&t.jsx("img",{src:o,className:"banner-image"}),t.jsxs(_,{isHorizontalContent:y,smallPadding:w,hasHeaderImage:I.isDefined(i),children:[t.jsxs(k,{children:[t.jsx("div",{className:"header-title",children:g}),t.jsx("div",{className:"header-subitle",children:c})]}),t.jsx(M,{size:"medium",color:"neutral",type:"button",className:"header-button",onClick:r=>{var h;(h=r==null?void 0:r.target)==null||h.blur(),p(u)},children:x})]}),s==="right"&&!(m===!0&&l===!0)&&t.jsx("img",{src:o,className:"banner-image"})]})});module.exports=q;
|