react-leaf-carousel
Advanced tools
Comparing version 2.0.3 to 3.0.0
module.exports = { | ||
parser: 'babel-eslint', | ||
parser: '@babel/eslint-parser', | ||
env: { | ||
@@ -9,2 +9,3 @@ browser: true, | ||
}, | ||
parserOptions: { ecmaVersion: 8 }, // to enable features such as async/await | ||
settings: { | ||
@@ -19,7 +20,6 @@ 'import/resolver': { | ||
'airbnb', | ||
'eslint:recommended', | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
'prettier/react', | ||
'prettier/standard', | ||
], | ||
plugins: ['prettier'], | ||
// plugins: ['prettier'], | ||
rules: { | ||
@@ -26,0 +26,0 @@ 'jsx-a11y/href-no-hash': 'off', |
@@ -1,1 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.InfiniteCarousel=t(require("react")):e.InfiniteCarousel=t(e.React)}(window,function(n){return i={},r.m=o=[function(e,t,n){e.exports=n(6)()},function(e,t){e.exports=n},function(t,e,n){(function(e){var n=e&&e.pid?e.pid.toString(36):"";function o(){var e=Date.now(),t=o.last||e;return o.last=t<e?e:t+1}t.exports=t.exports.default=function(e,t){return(e||"")+""+n+o().toString(36)+(t||"")},t.exports.process=function(e,t){return(e||"")+n+o().toString(36)+(t||"")},t.exports.time=function(e,t){return(e||"")+o().toString(36)+(t||"")}}).call(this,n(15))},function(e,t,n){var o=n(16);"string"==typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(18)(o,r);o.locals&&(e.exports=o.locals)},function(e,t,n){var o=n(8),r=o&&n(9),i=n(13),a={media:function(e,t){e=i(e),"function"==typeof t&&(t={match:t}),o&&r.register(e,t),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:e,handler:t})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(e){o&&r.unregister(e.query,e.handler)})}};e.exports=a},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,o=e.length;n<o&&!1!==t(e[n],n);n++);}}},function(e,t,n){"use strict";var s=n(7);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,i){if(i!==s){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=n},function(e,t,n){var o=n(10);e.exports=new o},function(e,t,n){var i=n(11),o=n(5),a=o.each,s=o.isFunction,c=o.isArray;function r(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}r.prototype={constructor:r,register:function(t,e,n){var o=this.queries,r=n&&this.browserIsIncapable;return o[t]||(o[t]=new i(t,r)),s(e)&&(e={match:e}),c(e)||(e=[e]),a(e,function(e){s(e)&&(e={match:e}),o[t].addHandler(e)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=r},function(e,t,n){var o=n(12),r=n(5).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(n){var o=this.handlers;r(o,function(e,t){if(e.equals(n))return e.destroy(),!o.splice(t,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";r(this.handlers,function(e){e[t]()})}},e.exports=i},function(e,t){function n(e){(this.options=e).deferSetup||this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){function r(o){var r="",i=Object.keys(o);return i.forEach(function(e,t){var n=o[e];!function(e){return/[height|width]$/.test(e)}(e=a(e))||"number"!=typeof n||(n+="px"),r+=!0===n?e:!1===n?"not "+e:"("+e+": "+n+")",t<i.length-1&&(r+=" and ")}),r}var a=n(14);e.exports=function(n){var o="";return"string"==typeof n?n:n instanceof Array?(n.forEach(function(e,t){o+=r(e),t<n.length-1&&(o+=", ")}),o):r(n)}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(e.exports=n(17)(!1)).push([e.i,".InfiniteCarousel {\n position: relative;\n}\n\n.InfiniteCarouselFrame {\n width: 100%;\n overflow: hidden;\n}\n\n.InfiniteCarouselScrollTrack {\n overflow-x: scroll;\n overflow-y: hidden;\n white-space: nowrap;\n -webkit-overflow-scrolling: touch;\n overflow: -moz-scrollbars-none;\n -webkit-box-sizing: border-box;\n}\n\n.InfiniteCarouselScrollTrack::-webkit-scrollbar {\n display: none;\n}\n\n.InfiniteCarouselSlide img {\n width: 100%;\n}\n\n.InfiniteCarouselPaging {\n position: absolute;\n left: 50%;\n bottom: -60px;\n padding: 0;\n transform: translateX(-20%);\n font-family: Arial;\n letter-spacing: 2px;\n color: #888;\n}\n\n.InfiniteCarouselDots {\n position: absolute;\n left: 50%;\n bottom: 0;\n padding: 0;\n transform: translateX(-50%);\n}\n\n.InfiniteCarouselDot {\n display: inline-block;\n list-style: none;\n margin: 0 5px;\n border: 0;\n background: none;\n cursor: pointer;\n}\n\n.InfiniteCarouselDotIcon {\n display: block;\n background-color: #e5e5e5;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.InfiniteCarouselDotActiveIcon {\n background-color: #48799a;\n}\n\n.InfiniteCarouselArrow {\n display: block;\n background: none;\n border: none;\n position: absolute;\n top: 50%;\n z-index: 2;\n outline: none;\n transform: translateY(-50%);\n cursor: pointer;\n}\n\n.InfiniteCarouselArrowPrev {\n left: 15px;\n right: auto;\n}\n\n.InfiniteCarouselArrowNext {\n left: auto;\n right: 15px;\n}\n\n.InfiniteCarouselArrowIcon {\n display: inline-block;\n padding: 10px;\n border: solid #e5e5e5;\n border-width: 0 5px 5px 0;\n}\n\n.InfiniteCarouselArrowNextIcon {\n transform: rotate(-45deg);\n}\n\n.InfiniteCarouselArrowPrevIcon {\n transform: rotate(135deg);\n}\n",""])},function(e,t,n){"use strict";e.exports=function(n){var s=[];return s.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}(o),i=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot).concat(e," */")});return[n].concat(i).concat([r]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media ".concat(e[2],"{").concat(t,"}"):t}).join("")},s.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];null!=r&&(n[r]=!0)}for(var i=0;i<e.length;i++){var a=e[i];null!=a[0]&&n[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="(".concat(a[2],") and (").concat(t,")")),s.push(a))}},s}},function(e,t,r){"use strict";var n,o,u={},i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=(o={},function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]});function d(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function f(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=u[o.id],i=0;if(r){for(r.refs++;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(v(o.parts[i],t))}else{for(var a=[];i<o.parts.length;i++)a.push(v(o.parts[i],t));u[o.id]={id:o.id,refs:1,parts:a}}}}function s(t){var n=document.createElement("style");if(void 0===t.attributes.nonce){var e=r.nc;e&&(t.attributes.nonce=e)}if(Object.keys(t.attributes).forEach(function(e){n.setAttribute(e,t.attributes[e])}),"function"==typeof t.insert)t.insert(n);else{var o=a(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}return n}var c,l=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}var h=null,g=0;function v(t,e){var n,o,r;if(e.singleton){var i=g++;n=h=h||s(e),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=s(e),o=function(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r&&e.setAttribute("media",r),i&&btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,n,e),r=function(){!function(e){if(null===e.parentNode)return;e.parentNode.removeChild(e)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}e.exports=function(e,c){(c=c||{}).attributes="object"==typeof c.attributes?c.attributes:{},c.singleton||"boolean"==typeof c.singleton||(c.singleton=i());var l=d(e,c);return f(l,c),function(e){for(var t=[],n=0;n<l.length;n++){var o=l[n],r=u[o.id];r&&(r.refs--,t.push(r))}e&&f(d(e,c),c);for(var i=0;i<t.length;i++){var a=t[i];if(0===a.refs){for(var s=0;s<a.parts.length;s++)a.parts[s]();delete u[a.id]}}}}},function(e,t,n){"use strict";n.r(t);var C=n(1),x=n.n(C),o=n(0),r=n.n(o),d=n(4),i=n(2),f=n.n(i);function O(){return"ontouchstart"in document.documentElement}function a(e,t){return e-t}n(3);function s(e){var t,n=e.carouselName,o=e.next,r=e.onClick;t=o?"InfiniteCarouselArrowNext":"InfiniteCarouselArrowPrev";var i;i=o?"InfiniteCarouselArrowNextIcon":"InfiniteCarouselArrowPrevIcon";var a="".concat("InfiniteCarouselArrow"," ").concat(t),s="".concat("InfiniteCarouselArrowIcon"," ").concat(i),c="".concat(n,"-button-").concat(o?"next":"previous");return x.a.createElement("button",{name:c,"data-testid":c,className:a,onClick:r,type:"button"},x.a.createElement("i",{className:s}))}s.propTypes={carouselName:r.a.string.isRequired,next:r.a.bool,onClick:r.a.func.isRequired},s.defaultProps={next:!0};var I=s;function c(e){for(var t,n,o=e.carouselName,r=e.numberOfDots,i=e.activePage,a=e.onClick,s=[],c=0;c<r;c+=1)t="InfiniteCarouselDotIcon ".concat(c===i?"InfiniteCarouselDotActiveIcon":""),n="".concat(o,"-dots-").concat(c),s.push(x.a.createElement("button",{name:n,"data-testid":n,className:"InfiniteCarouselDot","data-index":c,key:c+1,onClick:a,type:"button"},x.a.createElement("i",{className:t})));return x.a.createElement("ul",{"data-testid":"".concat(o,"-dots"),className:"InfiniteCarouselDots"},s)}c.propTypes={carouselName:r.a.string.isRequired,numberOfDots:r.a.number.isRequired,activePage:r.a.number.isRequired,onClick:r.a.func.isRequired};var k=c;function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(){function t(e){var S;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(S=v(this,m(t).call(this,e))).setupBreakpointSettings=function(){var e=S.props,s=e.children,c=e.scrollOnDevice,t=e.breakpoints,l=S.state.scrollOnDeviceProps,n=t.map(function(e){return e.breakpoint}),u={};if(t.forEach(function(e){u[e.breakpoint]=e.settings}),0<n.length){n.sort(a),n.forEach(function(r,e){var i,a;a=(i=0===e?0:n[e-1],r-1);var t={minWidth:i,maxWidth:a};Object(d.media)(t,function(){var e=c&&O()?l:{},t=E({},S.defaultProps,{},S.props,{},u[r],{},e),n=S.getChildrenList(s,t.slidesToShow),o=n.map(function(e){return f()("slide-")});S.setState({settings:t,children:n,slideUniqueIds:o,lowerBreakpoint:i,higherBreakpoint:a},S.setDimensions)})}),n.reverse();var o={minWidth:n[0]};Object(d.media)(o,function(){var e=c&&O()?l:{},t=E({},S.defaultProps,{},S.props,{},e),n=S.getChildrenList(s,t.slidesToShow),o=n.map(function(e){return f()("slide-")});S.setState({settings:t,children:n,slideUniqueIds:o,lowerBreakpoint:void 0,higherBreakpoint:void 0},S.setDimensions)})}},S.getSideSize=function(e,t,n){var o=S.state.settings,r=o.incrementalSides,i=o.sideSize;return void 0!==e&&void 0!==t&&r?50*(n-e)/(t-e)/100:i},S.setDimensions=function(){var e,t,n=S.state,o=n.settings,r=n.lowerBreakpoint,i=n.higherBreakpoint,a=n.children,s=n.currentIndex,c=S.props,l=c.children,u=c.scrollOnDevice&&O(),d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=S.getSideSize(r,i,d),p=C.Children.count(l),h=u?p:C.Children.count(a),g=function(e){return e.getBoundingClientRect().width||e.offsetWidth||0}(S.frame)/(S.props.showSides?o.slidesToShow+2*f:o.slidesToShow)-2*o.slidesSpacing,v=l.length,m=Math.ceil(s/o.slidesToShow),y=Math.ceil(v/o.slidesToShow),b=v>o.slidesToShow?y:1,w=b<=1;t=w||u?(e=a.map(function(e,t){return t}),[].concat(e)):(e=S.getLazyLoadedIndexes(l,s),S.getVisibleIndexes(l,s)),S.setState({activePage:m,childrenCount:p,slidesCount:h,slidesWidth:g,slidePages:b,singlePage:w,lazyLoadedList:e,visibleSlideList:t,sideSize:f},function(){S.playAutoCycle()})},S.getVisibleIndexes=function(e,t){var n,o,r=[],i=S.state.settings,a=i.showSides?1:0;if(n=e.length+i.slidesToShow+a,0===t){o=n+i.slidesToShow-1;for(var s=n;s<=o;s+=1)r.push(s)}if(n=0+a,t===e.length-i.slidesToShow){o=n+i.slidesToShow-1;for(var c=n;c<=o;c+=1)r.push(c)}o=(n=t+i.slidesToShow+a)+(i.slidesToShow-1);for(var l=n;l<=o;l+=1)r.push(l);return r},S.getLazyLoadedIndexes=function(e,t){var n,o,r=S.state.lazyLoadedList,i=S.state.settings,a=i.showSides?1:0,s=[].concat(r);if(n=e.length+i.slidesToShow+a,0===t&&r.indexOf(n)<0){o=n+i.slidesToShow+a-1;for(var c=n;c<=o;c+=1)s.push(c)}n=0;var l=t===e.length-i.slidesToShow,u=s.indexOf(n)<0;if(l&&u){o=n+i.slidesToShow+a-1;for(var d=n;d<=o;d+=1)s.push(d)}o=(n=t+i.slidesToShow+a)+(i.slidesToShow-1),i.showSides&&(n-=1,o+=1);for(var f=n;f<=o;f+=1)r.indexOf(f)<0&&s.push(f);return s},S.getChildrenList=function(e,t){var n=S.props,o=n.scrollOnDevice,r=n.showSides;return Array.isArray(e)?o&&O()?e:e.length>t&&r?[].concat(u(e.slice(e.length-t-1,e.length)),u(e),u(e.slice(0,t+1))):e.length>t?[].concat(u(e.slice(e.length-t,e.length)),u(e),u(e.slice(0,t))):e:[e]},S.getTargetIndex=function(e,t){var n=S.state,o=n.childrenCount,r=n.currentIndex,i=o%t;return e<0?0===r?o-t:0:o<=e?0!=i?0:e-o:0!=i&&e===o-i?e-(t-i):e},S.onDotClick=function(e){e.preventDefault();var t=S.state,n=t.settings,o=t.animating,r=t.autoCycleTimer,i=n.slidesToShow,a=n.autoCycle;if(!o){a&&r&&(clearInterval(r),S.setState({autoCycleTimer:null}));var s=e.target.parentElement.getAttribute("data-index"),c=S.getTargetIndex(s*i,i);S.handleTrack(s*i,c),n.autoCycle&&S.playAutoCycle()}},S.onWindowResized=function(){S.setDimensions()},S.onMouseEnter=function(){var e=S.state.settings,t=e.autoCycle,n=e.pauseOnHover;t&&n&&S.pauseAutoCycle()},S.onMouseOver=function(){var e=S.state.settings,t=e.autoCycle,n=e.pauseOnHover;t&&n&&S.pauseAutoCycle()},S.onMouseLeave=function(){var e=S.state.settings,t=e.autoCycle,n=e.pauseOnHover;t&&n&&S.playAutoCycle()},S.onSwipeStart=function(e){var t=S.state.settings,n=t.swipe,o=t.draggable;if(!1===n||"ontouchend"in document&&!1===n)return null;if(!1===o&&-1!==e.type.indexOf("mouse"))return null;var r=void 0!==e.touches?e.touches[0].pageX:e.clientX,i=void 0!==e.touches?e.touches[0].pageY:e.clientY;return S.setState({dragging:!0,touchObject:{startX:r,startY:i}}),!0},S.onSwipeMove=function(e){var t=S.state,n=t.dragging,o=t.animating;if(n){if(!o){var r=void 0!==e.touches?e.touches[0].pageX:e.clientX,i=void 0!==e.touches?e.touches[0].pageY:e.clientY,a=S.state.touchObject,s=function(e,t,n,o){var r=e-t,i=n-o,a=Math.round(180*Math.atan2(i,r)/Math.PI);return a<0&&(a=360-Math.abs(a)),a<=45&&0<=a?1:a<=360&&315<=a?1:135<=a&&a<=225?-1:0}(a.startX,r,a.startY,i);0!==s&&e.preventDefault();var c=Math.round(Math.sqrt(Math.pow(r-a.startX,2)));S.setState({touchObject:{startX:a.startX,startY:a.startY,endX:r,endY:i,length:c,direction:s}})}}else e.preventDefault()},S.onSwipeEnd=function(){var e=S.state,t=e.touchObject,n=e.slidesWidth,o=e.autoCycleTimer,r=e.settings,i=e.currentIndex,a=t.length;if(0!==a&&n/2<a){var s,c;r.autoCycle&&o&&(clearInterval(o),S.setState({autoCycleTimer:null})),1===t.direction?(s=i+r.slidesToScroll,c=S.getTargetIndex(s,r.slidesToScroll)):(s=i-r.slidesToScroll,c=S.getTargetIndex(s,r.slidesToScroll),s<0&&0!==i&&(s=0)),S.handleTrack(s,c),r.autoCycle&&S.playAutoCycle()}else{S.setState({animating:!0,touchObject:{direction:-1*t.direction}},function(){setTimeout(function(){S.setState({animating:!1,dragging:!1,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}})},r.animationDuration)})}},S.getTrackStyles=function(){var e=S.state.settings,t=S.state,n=t.touchObject,o=t.singlePage,r=t.sideSize,i=t.animating,a=t.slidesWidth,s=t.slidesCount,c=t.currentIndex,l=a+2*e.slidesSpacing;l*=s+2*e.slidesToShow;var u=a+2*e.slidesSpacing,d=e.showSides?1:0,f=u*(e.slidesToShow+d),p=i?"transform ".concat(e.animationDuration,"ms ease"):"",h=f+u*c+(e.swipe&&n.length?n.length*n.direction:0),g=u*r;return e.showSides&&(h-=g),{position:"relative",display:"block",width:o?"100%":l,height:"auto",padding:0,transition:p,transform:o?"none":"translate(".concat(-h,"px, 0px)"),boxSizing:"border-box",MozBoxSizing:"border-box",marginLeft:o&&e.showSides?"".concat(g,"px"):"0px"}},S.getScrollTrackStyles={clear:"both",position:"relative",display:"block",width:"100%",height:"auto",padding:0,boxSizing:"border-box",MozBoxSizing:"border-box"},S.getSlideStyles=function(e){var t=S.state,n=t.slidesWidth,o=t.settings,r=S.props.scrollOnDevice&&O()?"none":"left",i=e?"1":o.sidesOpacity;return{position:"relative",float:r,display:"inline-block",width:Number.isNaN(n)?1:n,height:"auto",margin:"0 ".concat(o.slidesSpacing,"px"),opacity:i}},S.getFormatedChildren=function(e,a,s){return C.Children.map(e,function(e,t){var n=S.state,o=n.settings,r=n.slideUniqueIds,i=0<=s.indexOf(t);return!o.lazyLoad||0<=a.indexOf(t)?x.a.createElement("li",{className:"InfiniteCarouselSlide",key:r[t],style:S.getSlideStyles(i)},e):x.a.createElement("li",{className:"InfiniteCarouselSlide",key:r[t],style:S.getSlideStyles(i)},x.a.createElement("noscript",null,e),x.a.createElement("img",{alt:"placeholder",src:o.placeholderImageSrc}))})},S.autoCycle=function(){var e=S.state,t=e.settings,n=e.currentIndex+t.slidesToScroll,o=S.getTargetIndex(n,t.slidesToScroll);S.handleTrack(n,o)},S.playAutoCycle=function(){var e=S.state.settings;if(e.autoCycle){var t=setInterval(S.autoCycle,e.cycleInterval);S.setState({autoCycleTimer:t})}},S.pauseAutoCycle=function(){var e=S.state.autoCycleTimer;e&&(clearInterval(e),S.setState({autoCycleTimer:null}))},S.handleTrack=function(e,t){function n(){setTimeout(function(){S.setState({currentIndex:t,animating:!1,dragging:!1})},a.animationDuration)}var o=S.props,r=o.children,i=o.onSlideChange,a=S.state.settings,s=Math.ceil(t/a.slidesToShow),c=S.getLazyLoadedIndexes(r,t),l=S.getVisibleIndexes(r,t);e<0?S.setState({currentIndex:e,activePage:s,animating:!0,lazyLoadedList:c,visibleSlideList:l,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}},n):e>=r.length?S.setState({currentIndex:e,activePage:s,animating:!0,lazyLoadedList:c,visibleSlideList:l,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}},n):S.setState({currentIndex:t,activePage:s,animating:!0,lazyLoadedList:c,visibleSlideList:l,dragging:!1,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}},function(){setTimeout(function(){S.setState({animating:!1,dragging:!1})},a.animationDuration)}),i&&i(s)},S.moveToNext=function(e){var t=S.props.onNextClick,n=S.state,o=n.animating,r=n.settings,i=n.currentIndex,a=n.autoCycleTimer;if(e.preventDefault(),t&&t(e),!o){r.autoCycle&&a&&(clearInterval(a),S.setState({autoCycleTimer:null}));var s=i+r.slidesToScroll,c=S.getTargetIndex(s,r.slidesToScroll);S.handleTrack(s,c),r.autoCycle&&S.playAutoCycle()}},S.moveToPrevious=function(e){var t=S.props.onPreviousClick,n=S.state,o=n.animating,r=n.settings,i=n.currentIndex,a=n.autoCycleTimer;if(e.preventDefault(),t&&t(e),!o){r.autoCycle&&a&&(clearInterval(a),S.setState({autoCycleTimer:null}));var s=i-r.slidesToScroll,c=S.getTargetIndex(s,r.slidesToScroll);s<0&&0!==i&&(s=0),S.handleTrack(s,c),r.autoCycle&&S.playAutoCycle()}},S.getSettingsForScrollOnDevice=function(){var e=S.props.scrollOnDevice,t=S.state.scrollOnDeviceProps;return e&&O()?E({},S.defaultProps,{},S.props,{},t):E({},S.defaultProps,{},S.props)},S.init=function(){if(0<S.props.breakpoints.length)S.setupBreakpointSettings();else{var e=S.props.children,t=S.getSettingsForScrollOnDevice(),n=t.slidesToShow,o=S.getChildrenList(e,n),r=o.map(function(e){return f()("slide-")});S.setState({children:o,slideUniqueIds:r,settings:t},function(){S.setDimensions()})}},S.storeFrameRef=function(e){null!==e&&(S.frame=e)},S.state={currentIndex:0,activePage:0,children:[],lazyLoadedList:[],visibleSlideList:[],childrenCount:0,slidesCount:0,slidesWidth:1,slidePages:1,singlePage:!0,settings:{},autoCycleTimer:null,dragging:!1,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1},scrollOnDeviceProps:{arrows:!1,dots:!1,lazyLoad:!1,autoCycle:!1},lowerBreakpoint:void 0,higherBreakpoint:void 0,slideUniqueIds:[]},S}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,C["Component"]),function(e,t,n){t&&g(e.prototype,t),n&&g(e,n)}(t,[{key:"componentDidMount",value:function(){this.init(),window&&(window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized))}},{key:"componentWillUnmount",value:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized);var e=this.state.autoCycleTimer;e&&clearInterval(e)}},{key:"render",value:function(){var e,t,n,o=this.props,r=o.scrollOnDevice,i=o.pagingSeparator,a=o.name,s=r&&O(),c=this.state,l=c.settings,u=c.singlePage,d=c.activePage,f=c.slidePages,p=c.dragging;if(l.arrows&&!u&&!s){if(null==l.prevArrow)e=x.a.createElement(I,{carouselName:a,next:!1,onClick:this.moveToPrevious});else{var h={onClick:this.moveToPrevious};e=x.a.cloneElement(l.prevArrow,h)}if(null==l.nextArrow)t=x.a.createElement(I,{carouselName:a,onClick:this.moveToNext});else{var g={onClick:this.moveToNext};t=x.a.cloneElement(l.nextArrow,g)}}!l.dots||u||s||(n=x.a.createElement(k,{carouselName:a,activePage:d,numberOfDots:f,onClick:this.onDotClick})),!l.paging||u||s||(n=x.a.createElement("span",{"data-testid":"".concat(a,"-paging"),className:"InfiniteCarouselPaging"},"".concat(d+1," ").concat(i," ").concat(f)));var v,m,y=this.state,b=y.children,w=y.lazyLoadedList,S=y.visibleSlideList,C=this.getFormatedChildren(b,w,S);m=r&&O()?(v=E({},this.getScrollTrackStyles),"InfiniteCarouselScrollTrack"):(v=E({},this.getTrackStyles()),"");var T=r&&O();return x.a.createElement("div",{id:a,"data-testid":a,className:"InfiniteCarousel",onFocus:this.onMouseOver,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseOver:this.onMouseOver},e,x.a.createElement("div",{className:"InfiniteCarouselFrame",ref:this.storeFrameRef},x.a.createElement("ul",{className:m,style:v,onMouseDown:T?null:this.onSwipeStart,onMouseLeave:p&&!T?this.onSwipeEnd:null,onMouseMove:p&&!T?this.onSwipeMove:null,onMouseUp:T?null:this.onSwipeEnd,onTouchCancel:p&&!T?this.onSwipeEnd:null,onTouchEnd:T?null:this.onSwipeEnd,onTouchMove:p&&!T?this.onSwipeMove:null,onTouchStart:T?null:this.onSwipeStart},C)),t,n)}}]),t}();b.propTypes={children:r.a.oneOfType([r.a.arrayOf(r.a.node),r.a.node]),name:r.a.string,arrows:r.a.bool,dots:r.a.bool,paging:r.a.bool,pagingSeparator:r.a.string,lazyLoad:r.a.bool,swipe:r.a.bool,draggable:r.a.bool,animationDuration:r.a.number,slidesToShow:r.a.number,slidesToScroll:r.a.number,slidesSpacing:r.a.number,autoCycle:r.a.bool,cycleInterval:r.a.number,pauseOnHover:r.a.bool,breakpoints:r.a.arrayOf(r.a.object),placeholderImageSrc:r.a.string,nextArrow:r.a.element,prevArrow:r.a.element,scrollOnDevice:r.a.bool,showSides:r.a.bool,sidesOpacity:r.a.number,sideSize:r.a.number,incrementalSides:r.a.bool,onSlideChange:r.a.func,onNextClick:r.a.func,onPreviousClick:r.a.func},b.defaultProps={children:[],name:"infinite-carousel",arrows:!0,dots:!1,paging:!1,lazyLoad:!1,swipe:!0,draggable:!1,animationDuration:500,slidesToShow:1,slidesToScroll:1,slidesSpacing:10,autoCycle:!1,cycleInterval:5e3,pauseOnHover:!0,breakpoints:[],placeholderImageSrc:"",pagingSeparator:"/",nextArrow:null,prevArrow:null,scrollOnDevice:!1,showSides:!1,sidesOpacity:1,sideSize:.5,incrementalSides:!1,onSlideChange:void 0,onNextClick:void 0,onPreviousClick:void 0};t.default=b}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=19);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.InfiniteCarousel=t(require("react")):e.InfiniteCarousel=t(e.React)}(self,(function(e){return(()=>{var t={807:e=>{var t=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=t},352:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(537),r=n.n(o),i=n(645),s=n.n(i)()(r());s.push([e.id,".InfiniteCarousel {\n position: relative;\n}\n\n.InfiniteCarouselFrame {\n width: 100%;\n overflow: hidden;\n}\n\n.InfiniteCarouselScrollTrack {\n overflow-x: scroll;\n overflow-y: hidden;\n white-space: nowrap;\n -webkit-overflow-scrolling: touch;\n overflow: -moz-scrollbars-none;\n -webkit-box-sizing: border-box;\n}\n\n.InfiniteCarouselScrollTrack::-webkit-scrollbar {\n display: none;\n}\n\n.InfiniteCarouselSlide img {\n width: 100%;\n}\n\n.InfiniteCarouselPaging {\n position: absolute;\n left: 50%;\n bottom: -60px;\n padding: 0;\n transform: translateX(-20%);\n font-family: Arial;\n letter-spacing: 2px;\n color: #888;\n}\n\n.InfiniteCarouselDots {\n position: absolute;\n left: 50%;\n bottom: 0;\n padding: 0;\n transform: translateX(-50%);\n}\n\n.InfiniteCarouselDot {\n display: inline-block;\n list-style: none;\n margin: 0 5px;\n border: 0;\n background: none;\n cursor: pointer;\n}\n\n.InfiniteCarouselDotIcon {\n display: block;\n background-color: #e5e5e5;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.InfiniteCarouselDotActiveIcon {\n background-color: #48799a;\n}\n\n.InfiniteCarouselArrow {\n display: block;\n background: none;\n border: none;\n position: absolute;\n top: 50%;\n z-index: 2;\n outline: none;\n transform: translateY(-50%);\n cursor: pointer;\n}\n\n.InfiniteCarouselArrowPrev {\n left: 15px;\n right: auto;\n}\n\n.InfiniteCarouselArrowNext {\n left: auto;\n right: 15px;\n}\n\n.InfiniteCarouselArrowIcon {\n display: inline-block;\n padding: 10px;\n border: solid #e5e5e5;\n border-width: 0 5px 5px 0;\n}\n\n.InfiniteCarouselArrowNextIcon {\n transform: rotate(-45deg);\n}\n\n.InfiniteCarouselArrowPrevIcon {\n transform: rotate(135deg);\n}\n","",{version:3,sources:["webpack://./src/components/InfiniteCarousel.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,iCAAiC;EACjC,8BAA8B;EAC9B,8BAA8B;AAChC;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,aAAa;EACb,UAAU;EACV,2BAA2B;EAC3B,kBAAkB;EAClB,mBAAmB;EACnB,WAAW;AACb;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,SAAS;EACT,UAAU;EACV,2BAA2B;AAC7B;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,aAAa;EACb,SAAS;EACT,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,cAAc;EACd,yBAAyB;EACzB,WAAW;EACX,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,aAAa;EACb,2BAA2B;EAC3B,eAAe;AACjB;;AAEA;EACE,UAAU;EACV,WAAW;AACb;;AAEA;EACE,UAAU;EACV,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,aAAa;EACb,qBAAqB;EACrB,yBAAyB;AAC3B;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,yBAAyB;AAC3B",sourcesContent:[".InfiniteCarousel {\n position: relative;\n}\n\n.InfiniteCarouselFrame {\n width: 100%;\n overflow: hidden;\n}\n\n.InfiniteCarouselScrollTrack {\n overflow-x: scroll;\n overflow-y: hidden;\n white-space: nowrap;\n -webkit-overflow-scrolling: touch;\n overflow: -moz-scrollbars-none;\n -webkit-box-sizing: border-box;\n}\n\n.InfiniteCarouselScrollTrack::-webkit-scrollbar {\n display: none;\n}\n\n.InfiniteCarouselSlide img {\n width: 100%;\n}\n\n.InfiniteCarouselPaging {\n position: absolute;\n left: 50%;\n bottom: -60px;\n padding: 0;\n transform: translateX(-20%);\n font-family: Arial;\n letter-spacing: 2px;\n color: #888;\n}\n\n.InfiniteCarouselDots {\n position: absolute;\n left: 50%;\n bottom: 0;\n padding: 0;\n transform: translateX(-50%);\n}\n\n.InfiniteCarouselDot {\n display: inline-block;\n list-style: none;\n margin: 0 5px;\n border: 0;\n background: none;\n cursor: pointer;\n}\n\n.InfiniteCarouselDotIcon {\n display: block;\n background-color: #e5e5e5;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.InfiniteCarouselDotActiveIcon {\n background-color: #48799a;\n}\n\n.InfiniteCarouselArrow {\n display: block;\n background: none;\n border: none;\n position: absolute;\n top: 50%;\n z-index: 2;\n outline: none;\n transform: translateY(-50%);\n cursor: pointer;\n}\n\n.InfiniteCarouselArrowPrev {\n left: 15px;\n right: auto;\n}\n\n.InfiniteCarouselArrowNext {\n left: auto;\n right: 15px;\n}\n\n.InfiniteCarouselArrowIcon {\n display: inline-block;\n padding: 10px;\n border: solid #e5e5e5;\n border-width: 0 5px 5px 0;\n}\n\n.InfiniteCarouselArrowNextIcon {\n transform: rotate(-45deg);\n}\n\n.InfiniteCarouselArrowPrevIcon {\n transform: rotate(135deg);\n}\n"],sourceRoot:""}]);const a=s},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */"),s=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(s).concat([i]).join("\n")}return[t].join("\n")}},988:(e,t,n)=>{var o=n(755),r=n(665).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;r(t,(function(n,o){if(n.equals(e))return n.destroy(),!t.splice(o,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";r(this.handlers,(function(t){t[e]()}))}},e.exports=i},177:(e,t,n)=>{var o=n(988),r=n(665),i=r.each,s=r.isFunction,a=r.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var r=this.queries,l=n&&this.browserIsIncapable;return r[e]||(r[e]=new o(e,l)),s(t)&&(t={match:t}),a(t)||(t=[t]),i(t,(function(t){s(t)&&(t={match:t}),r[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},755:e=>{function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},665:e=>{e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,o=e.length;n<o&&!1!==t(e[n],n);n++);}}},974:(e,t,n)=>{var o=n(177);e.exports=new o},973:(e,t,n)=>{var o=n(169),r=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,i){var s=e[r];(function(e){return/[height|width]$/.test(e)})(r=o(r))&&"number"==typeof s&&(s+="px"),t+=!0===s?r:!1===s?"not "+r:"("+r+": "+s+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=r(n),o<e.length-1&&(t+=", ")})),t):r(e)}},703:(e,t,n)=>{"use strict";var o=n(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},456:(e,t,n)=>{var o=n(807),r=o&&n(974),i=n(973),s={media:function(e,t){e=i(e),"function"==typeof t&&(t={match:t}),o&&r.register(e,t),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:e,handler:t})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach((function(e){o&&r.unregister(e.query,e.handler)}))}};e.exports=s},169:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],c=o.base?l[0]+o.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=r(f,o);o.byIndex=a,t.splice(a,0,{identifier:d,updater:h,references:1})}s.push(d)}return s}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=o(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=n(i[s]);t[a].references--}for(var l=o(e,r),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},104:e=>{var t="undefined"!=typeof process&&process.pid?process.pid.toString(36):"";function n(){var e=Date.now(),t=n.last||e;return n.last=e>t?e:t+1}e.exports=e.exports.default=function(e,o){return(e||"")+""+t+n().toString(36)+(o||"")},e.exports.process=function(e,o){return(e||"")+t+n().toString(36)+(o||"")},e.exports.time=function(e,t){return(e||"")+n().toString(36)+(t||"")}},787:t=>{"use strict";t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.r(r),o.d(r,{default:()=>U});var e=o(787),t=o.n(e),n=o(697),i=o.n(n),s=o(456),a=o(104),l=o.n(a);function c(){return"ontouchstart"in document.documentElement}function u(e,t){return e-t}var d=o(379),p=o.n(d),f=o(795),h=o.n(f),g=o(569),A=o.n(g),v=o(565),m=o.n(v),y=o(216),b=o.n(y),C=o(589),w=o.n(C),S=o(352),E={};E.styleTagTransform=w(),E.setAttributes=m(),E.insert=A().bind(null,"head"),E.domAPI=h(),E.insertStyleElement=b();p()(S.Z,E);S.Z&&S.Z.locals&&S.Z.locals;var x=function(e){var n,o=e.carouselName,r=e.next,i=e.onClick;n=r?"InfiniteCarouselArrowNext":"InfiniteCarouselArrowPrev";var s;s=r?"InfiniteCarouselArrowNextIcon":"InfiniteCarouselArrowPrevIcon";var a="".concat("InfiniteCarouselArrow"," ").concat(n),l="".concat("InfiniteCarouselArrowIcon"," ").concat(s),c="".concat(o,"-button-").concat(r?"next":"previous");return t().createElement("button",{name:c,"data-testid":c,className:a,onClick:i,type:"button"},t().createElement("i",{className:l}))};x.propTypes={carouselName:i().string.isRequired,next:i().bool,onClick:i().func.isRequired},x.defaultProps={next:!0};const I=x;var T=function(e){for(var n,o,r=e.carouselName,i=e.numberOfDots,s=e.activePage,a=e.onClick,l=[],c=0;c<i;c+=1)n="InfiniteCarouselDotIcon ".concat(c===s?"InfiniteCarouselDotActiveIcon":""),o="".concat(r,"-dots-").concat(c),l.push(t().createElement("button",{name:o,"data-testid":o,className:"InfiniteCarouselDot","data-index":c,key:c+1,onClick:a,type:"button"},t().createElement("i",{className:n})));return t().createElement("ul",{"data-testid":"".concat(r,"-dots"),className:"InfiniteCarouselDots"},l)};T.propTypes={carouselName:i().string.isRequired,numberOfDots:i().number.isRequired,activePage:i().number.isRequired,onClick:i().func.isRequired};const k=T;function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function O(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function z(e,t){return z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return q(this,n)}}function q(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var W=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(d,n);var o,r,i,a=N(d);function d(n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(o=a.call(this,n)).setupBreakpointSettings=function(){var e=o.props,t=e.children,n=e.scrollOnDevice,r=e.breakpoints,i=o.state.scrollOnDeviceProps,a=r.map((function(e){return e.breakpoint})),d={};if(r.forEach((function(e){d[e.breakpoint]=e.settings})),a.length>0){a.sort(u),a.forEach((function(e,r){var u,p;0===r?(u=0,p=e-1):(u=a[r-1],p=e-1);var f={minWidth:u,maxWidth:p};(0,s.media)(f,(function(){var r=n&&c()?i:{},s=j(j(j(j({},o.defaultProps),o.props),d[e]),r),a=o.getChildrenList(t,s.slidesToShow),f=a.map((function(e){return l()("slide-")}));o.setState({settings:s,children:a,slideUniqueIds:f,lowerBreakpoint:u,higherBreakpoint:p},o.setDimensions)}))})),a.reverse();var p={minWidth:a[0]};(0,s.media)(p,(function(){var e=n&&c()?i:{},r=j(j(j({},o.defaultProps),o.props),e),s=o.getChildrenList(t,r.slidesToShow),a=s.map((function(e){return l()("slide-")}));o.setState({settings:r,children:s,slideUniqueIds:a,lowerBreakpoint:void 0,higherBreakpoint:void 0},o.setDimensions)}))}},o.getSideSize=function(e,t,n){var r=o.state.settings,i=r.incrementalSides,s=r.sideSize;return void 0!==e&&void 0!==t&&i?50*(n-e)/(t-e)/100:s},o.setDimensions=function(){var t,n,r,i=o.state,s=i.settings,a=i.lowerBreakpoint,l=i.higherBreakpoint,u=i.children,d=i.currentIndex,p=i.autoCycleTimer,f=o.props,h=f.children,g=f.scrollOnDevice&&c(),A=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,v=o.getSideSize(a,l,A),m=e.Children.count(h),y=g?m:e.Children.count(u),b=((t=o.frame).getBoundingClientRect().width||t.offsetWidth||0)/(o.props.showSides?s.slidesToShow+2*v:s.slidesToShow)-2*s.slidesSpacing,C=h.length,w=Math.ceil(d/s.slidesToShow),S=Math.ceil(C/s.slidesToShow),E=C>s.slidesToShow?S:1,x=E<=1;x||g?(n=u.map((function(e,t){return t})),r=[].concat(n)):(n=o.getLazyLoadedIndexes(h,d),r=o.getVisibleIndexes(h,d)),clearInterval(p),o.setState({activePage:w,childrenCount:m,slidesCount:y,slidesWidth:b,slidePages:E,singlePage:x,lazyLoadedList:n,visibleSlideList:r,sideSize:v,autoCycleTimer:null},(function(){o.playAutoCycle()}))},o.getVisibleIndexes=function(e,t){var n,r,i=[],s=o.state.settings,a=s.showSides?1:0;if(n=e.length+s.slidesToShow+a,0===t){r=n+s.slidesToShow-1;for(var l=n;l<=r;l+=1)i.push(l)}if(n=0+a,t===e.length-s.slidesToShow){r=n+s.slidesToShow-1;for(var c=n;c<=r;c+=1)i.push(c)}r=(n=t+s.slidesToShow+a)+(s.slidesToShow-1);for(var u=n;u<=r;u+=1)i.push(u);return i},o.getLazyLoadedIndexes=function(e,t){var n,r,i=o.state.lazyLoadedList,s=o.state.settings,a=s.showSides?1:0,l=[].concat(i);if(n=e.length+s.slidesToShow+a,0===t&&i.indexOf(n)<0){r=n+s.slidesToShow+a-1;for(var c=n;c<=r;c+=1)l.push(c)}n=0;var u=t===e.length-s.slidesToShow,d=l.indexOf(n)<0;if(u&&d){r=n+s.slidesToShow+a-1;for(var p=n;p<=r;p+=1)l.push(p)}r=(n=t+s.slidesToShow+a)+(s.slidesToShow-1),s.showSides&&(n-=1,r+=1);for(var f=n;f<=r;f+=1)i.indexOf(f)<0&&l.push(f);return l},o.getChildrenList=function(e,t){var n=o.props,r=n.scrollOnDevice,i=n.showSides;return Array.isArray(e)?r&&c()?e:e.length>t&&i?[].concat(O(e.slice(e.length-t-1,e.length)),O(e),O(e.slice(0,t+1))):e.length>t?[].concat(O(e.slice(e.length-t,e.length)),O(e),O(e.slice(0,t))):e:[e]},o.getTargetIndex=function(e,t){var n=o.state,r=n.childrenCount,i=n.currentIndex,s=r%t;return e<0?0===i?r-t:0:e>=r?0!==s?0:e-r:0!==s&&e===r-s?e-(t-s):e},o.onDotClick=function(e){e.preventDefault();var t=o.state,n=t.settings,r=t.animating,i=t.autoCycleTimer,s=n.slidesToShow,a=n.autoCycle;if(!r){a&&i&&(clearInterval(i),o.setState({autoCycleTimer:null}));var l=e.target.parentElement.getAttribute("data-index"),c=o.getTargetIndex(l*s,s);o.handleTrack(l*s,c),n.autoCycle&&o.playAutoCycle()}},o.onWindowResized=function(){o.setDimensions()},o.onMouseEnter=function(){var e=o.state.settings,t=e.autoCycle,n=e.pauseOnHover;t&&n&&o.pauseAutoCycle()},o.onMouseOver=function(){var e=o.state.settings,t=e.autoCycle,n=e.pauseOnHover;t&&n&&o.pauseAutoCycle()},o.onMouseLeave=function(){var e=o.state.settings,t=e.autoCycle,n=e.pauseOnHover;t&&n&&o.playAutoCycle()},o.onSwipeStart=function(e){var t=o.state.settings,n=t.swipe,r=t.draggable;if(!1===n||"ontouchend"in document&&!1===n)return null;if(!1===r&&-1!==e.type.indexOf("mouse"))return null;var i=void 0!==e.touches?e.touches[0].pageX:e.clientX,s=void 0!==e.touches?e.touches[0].pageY:e.clientY;return o.setState({dragging:!0,touchObject:{startX:i,startY:s}}),!0},o.onSwipeMove=function(e){var t=o.state,n=t.dragging,r=t.animating;if(n){if(!r){var i,s,a,l,c,u,d=void 0!==e.touches?e.touches[0].pageX:e.clientX,p=void 0!==e.touches?e.touches[0].pageY:e.clientY,f=o.state.touchObject,h=(i=f.startX,s=d,a=f.startY,l=i-s,c=a-p,(u=Math.round(180*Math.atan2(c,l)/Math.PI))<0&&(u=360-Math.abs(u)),u<=45&&u>=0||u<=360&&u>=315?1:u>=135&&u<=225?-1:0);0!==h&&e.preventDefault();var g=Math.round(Math.sqrt(Math.pow(d-f.startX,2)));o.setState({touchObject:{startX:f.startX,startY:f.startY,endX:d,endY:p,length:g,direction:h}})}}else e.preventDefault()},o.onSwipeEnd=function(){var e=o.state,t=e.touchObject,n=e.slidesWidth,r=e.autoCycleTimer,i=e.settings,s=e.currentIndex,a=t.length;if(0!==a&&a>n/2){var l,c;i.autoCycle&&r&&(clearInterval(r),o.setState({autoCycleTimer:null})),1===t.direction?(l=s+i.slidesToScroll,c=o.getTargetIndex(l,i.slidesToScroll)):(l=s-i.slidesToScroll,c=o.getTargetIndex(l,i.slidesToScroll),l<0&&0!==s&&(l=0)),o.handleTrack(l,c),i.autoCycle&&o.playAutoCycle()}else{o.setState({animating:!0,touchObject:{direction:-1*t.direction}},(function(){setTimeout((function(){o.setState({animating:!1,dragging:!1,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}})}),i.animationDuration)}))}},o.getTrackStyles=function(){var e=o.state.settings,t=o.state,n=t.touchObject,r=t.singlePage,i=t.sideSize,s=t.animating,a=t.slidesWidth,l=t.slidesCount,c=t.currentIndex,u=a+2*e.slidesSpacing;u*=l+2*e.slidesToShow;var d=a+2*e.slidesSpacing,p=e.showSides?1:0,f=d*(e.slidesToShow+p),h=s?"transform ".concat(e.animationDuration,"ms ease"):"",g=f+d*c+(e.swipe&&n.length?n.length*n.direction:0),A=d*i;return e.showSides&&(g-=A),{position:"relative",display:"block",width:r?"100%":u,height:"auto",padding:0,transition:h,transform:r?"none":"translate(".concat(-g,"px, 0px)"),boxSizing:"border-box",MozBoxSizing:"border-box",marginLeft:r&&e.showSides?"".concat(A,"px"):"0px"}},o.getScrollTrackStyles={clear:"both",position:"relative",display:"block",width:"100%",height:"auto",padding:0,boxSizing:"border-box",MozBoxSizing:"border-box"},o.getSlideStyles=function(e){var t=o.state,n=t.slidesWidth,r=t.settings,i=o.props.scrollOnDevice&&c()?"none":"left",s=e?"1":r.sidesOpacity;return{position:"relative",float:i,display:"inline-block",width:Number.isNaN(n)?1:n,height:"auto",margin:"0 ".concat(r.slidesSpacing,"px"),opacity:s}},o.getFormatedChildren=function(n,r,i){return e.Children.map(n,(function(e,n){var s=o.state,a=s.settings,l=s.slideUniqueIds,c=i.indexOf(n)>=0;return!a.lazyLoad||r.indexOf(n)>=0?t().createElement("li",{className:"InfiniteCarouselSlide",key:l[n],style:o.getSlideStyles(c)},e):t().createElement("li",{className:"InfiniteCarouselSlide",key:l[n],style:o.getSlideStyles(c)},t().createElement("noscript",null,e),t().createElement("img",{alt:"placeholder",src:a.placeholderImageSrc}))}))},o.autoCycle=function(){var e=o.state,t=e.settings,n=e.currentIndex+t.slidesToScroll,r=o.getTargetIndex(n,t.slidesToScroll);o.handleTrack(n,r)},o.playAutoCycle=function(){var e=o.state.settings;if(e.autoCycle){var t=setInterval(o.autoCycle,e.cycleInterval);o.setState({autoCycleTimer:t})}},o.pauseAutoCycle=function(){var e=o.state.autoCycleTimer;e&&(clearInterval(e),o.setState({autoCycleTimer:null}))},o.handleTrack=function(e,t){var n=o.props,r=n.children,i=n.onSlideChange,s=o.state.settings,a=Math.ceil(t/s.slidesToShow),l=o.getLazyLoadedIndexes(r,t),c=o.getVisibleIndexes(r,t),u=function(){setTimeout((function(){o.setState({currentIndex:t,animating:!1,dragging:!1})}),s.animationDuration)};e<0||e>=r.length?o.setState({currentIndex:e,activePage:a,animating:!0,lazyLoadedList:l,visibleSlideList:c,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}},u):o.setState({currentIndex:t,activePage:a,animating:!0,lazyLoadedList:l,visibleSlideList:c,dragging:!1,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1}},(function(){setTimeout((function(){o.setState({animating:!1,dragging:!1})}),s.animationDuration)})),i&&i(a)},o.moveToNext=function(e){var t=o.props.onNextClick,n=o.state,r=n.animating,i=n.settings,s=n.currentIndex,a=n.autoCycleTimer;if(e.preventDefault(),t&&t(e),!r){i.autoCycle&&a&&(clearInterval(a),o.setState({autoCycleTimer:null}));var l=s+i.slidesToScroll,c=o.getTargetIndex(l,i.slidesToScroll);o.handleTrack(l,c),i.autoCycle&&o.playAutoCycle()}},o.moveToPrevious=function(e){var t=o.props.onPreviousClick,n=o.state,r=n.animating,i=n.settings,s=n.currentIndex,a=n.autoCycleTimer;if(e.preventDefault(),t&&t(e),!r){i.autoCycle&&a&&(clearInterval(a),o.setState({autoCycleTimer:null}));var l=s-i.slidesToScroll,c=o.getTargetIndex(l,i.slidesToScroll);l<0&&0!==s&&(l=0),o.handleTrack(l,c),i.autoCycle&&o.playAutoCycle()}},o.getSettingsForScrollOnDevice=function(){var e=o.props.scrollOnDevice,t=o.state.scrollOnDeviceProps;return e&&c()?j(j(j({},o.defaultProps),o.props),t):j(j({},o.defaultProps),o.props)},o.init=function(){if(o.props.breakpoints.length>0)o.setupBreakpointSettings();else{var e=o.props.children,t=o.getSettingsForScrollOnDevice(),n=t.slidesToShow,r=o.getChildrenList(e,n),i=r.map((function(e){return l()("slide-")}));o.setState({children:r,slideUniqueIds:i,settings:t},(function(){o.setDimensions()}))}},o.storeFrameRef=function(e){null!==e&&(o.frame=e)},o.state={currentIndex:0,activePage:0,children:[],lazyLoadedList:[],visibleSlideList:[],childrenCount:0,slidesCount:0,slidesWidth:1,slidePages:1,singlePage:!0,settings:{},autoCycleTimer:null,dragging:!1,touchObject:{startX:0,startY:0,endX:0,endY:0,length:0,direction:-1},scrollOnDeviceProps:{arrows:!1,dots:!1,lazyLoad:!1,autoCycle:!1},lowerBreakpoint:void 0,higherBreakpoint:void 0,slideUniqueIds:[]},o}return o=d,(r=[{key:"componentDidMount",value:function(){this.init(),window&&(window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized))}},{key:"componentWillUnmount",value:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized);var e=this.state.autoCycleTimer;e&&clearInterval(e)}},{key:"render",value:function(){var e,n,o,r=this.props,i=r.scrollOnDevice,s=r.pagingSeparator,a=r.name,l=i&&c(),u=this.state,d=u.settings,p=u.singlePage,f=u.activePage,h=u.slidePages,g=u.dragging;if(d.arrows&&!p&&!l){if(null==d.prevArrow)e=t().createElement(I,{carouselName:a,next:!1,onClick:this.moveToPrevious});else{var A={onClick:this.moveToPrevious};e=t().cloneElement(d.prevArrow,A)}if(null==d.nextArrow)n=t().createElement(I,{carouselName:a,onClick:this.moveToNext});else{var v={onClick:this.moveToNext};n=t().cloneElement(d.nextArrow,v)}}!d.dots||p||l||(o=t().createElement(k,{carouselName:a,activePage:f,numberOfDots:h,onClick:this.onDotClick})),!d.paging||p||l||(o=t().createElement("span",{"data-testid":"".concat(a,"-paging"),className:"InfiniteCarouselPaging"},"".concat(f+1," ").concat(s," ").concat(h)));var m,y,b=this.state,C=b.children,w=b.lazyLoadedList,S=b.visibleSlideList,E=this.getFormatedChildren(C,w,S);i&&c()?(m=j({},this.getScrollTrackStyles),y="InfiniteCarouselScrollTrack"):(m=j({},this.getTrackStyles()),y="");var x=i&&c();return t().createElement("div",{id:a,"data-testid":a,className:"InfiniteCarousel",onFocus:this.onMouseOver,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseOver:this.onMouseOver},e,t().createElement("div",{className:"InfiniteCarouselFrame",ref:this.storeFrameRef},t().createElement("ul",{className:y,style:m,onMouseDown:x?null:this.onSwipeStart,onMouseLeave:g&&!x?this.onSwipeEnd:null,onMouseMove:g&&!x?this.onSwipeMove:null,onMouseUp:x?null:this.onSwipeEnd,onTouchCancel:g&&!x?this.onSwipeEnd:null,onTouchEnd:x?null:this.onSwipeEnd,onTouchMove:g&&!x?this.onSwipeMove:null,onTouchStart:x?null:this.onSwipeStart},E)),n,o)}}])&&L(o.prototype,r),i&&L(o,i),d}(e.Component);W.propTypes={children:i().oneOfType([i().arrayOf(i().node),i().node]),name:i().string,arrows:i().bool,dots:i().bool,paging:i().bool,pagingSeparator:i().string,lazyLoad:i().bool,swipe:i().bool,draggable:i().bool,animationDuration:i().number,slidesToShow:i().number,slidesToScroll:i().number,slidesSpacing:i().number,autoCycle:i().bool,cycleInterval:i().number,pauseOnHover:i().bool,breakpoints:i().arrayOf(i().object),placeholderImageSrc:i().string,nextArrow:i().element,prevArrow:i().element,scrollOnDevice:i().bool,showSides:i().bool,sidesOpacity:i().number,sideSize:i().number,incrementalSides:i().bool,onSlideChange:i().func,onNextClick:i().func,onPreviousClick:i().func},W.defaultProps={children:[],name:"infinite-carousel",arrows:!0,dots:!1,paging:!1,lazyLoad:!1,swipe:!0,draggable:!1,animationDuration:500,slidesToShow:1,slidesToScroll:1,slidesSpacing:10,autoCycle:!1,cycleInterval:5e3,pauseOnHover:!0,breakpoints:[],placeholderImageSrc:"",pagingSeparator:"/",nextArrow:null,prevArrow:null,scrollOnDevice:!1,showSides:!1,sidesOpacity:1,sideSize:.5,incrementalSides:!1,onSlideChange:void 0,onNextClick:void 0,onPreviousClick:void 0};const U=W})(),r})()})); | ||
//# sourceMappingURL=react-infinite-carusel.min.js.map |
{ | ||
"name": "react-leaf-carousel", | ||
"version": "2.0.3", | ||
"version": "3.0.0", | ||
"description": "React simple infinite carousel with lazy loading and responsive support", | ||
@@ -33,41 +33,41 @@ "scripts": { | ||
"@babel/cli": "*", | ||
"@babel/core": "^7.7.5", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.7.4", | ||
"@babel/preset-env": "^7.7.6", | ||
"@babel/preset-es2015": "*", | ||
"@babel/preset-react": "^7.7.4", | ||
"@babel/core": "^7.16.0", | ||
"@babel/eslint-parser": "^7.16.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.16.0", | ||
"@babel/preset-env": "^7.16.0", | ||
"@babel/preset-react": "^7.16.0", | ||
"@babel/preset-stage-0": "*", | ||
"@semantic-release/npm": "^5.3.4", | ||
"babel-eslint": "*", | ||
"babel-loader": "^8.0.6", | ||
"@semantic-release/npm": "^8.0.3", | ||
"babel-loader": "^8.2.3", | ||
"babel-plugin-transform-class-properties": "*", | ||
"css-loader": "^3.2.0", | ||
"eslint": "^6.7.2", | ||
"eslint-config-airbnb": "*", | ||
"eslint-config-airbnb-base": "*", | ||
"eslint-config-prettier": "^6.7.0", | ||
"css-loader": "^6.5.1", | ||
"eslint": "^8.2.0", | ||
"eslint-config-airbnb": "^19.0.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-react-app": "*", | ||
"eslint-loader": "*", | ||
"eslint-plugin-flowtype": "*", | ||
"eslint-plugin-import": "*", | ||
"eslint-plugin-jsx-a11y": "*", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-react": "^7.17.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.27.0", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
"eslint-webpack-plugin": "^3.1.1", | ||
"extract-text-webpack-plugin": "*", | ||
"gm-base64": "*", | ||
"html-webpack-plugin": "^3.2.0", | ||
"prettier": "^1.19.1", | ||
"semantic-release": "^15.13.31", | ||
"style-loader": "^1.0.0", | ||
"uglifyjs-webpack-plugin": "^2.2.0", | ||
"webpack": "^4.41.3", | ||
"webpack-cli": "^3.3.10", | ||
"webpack-dev-server": "^3.9.0" | ||
"html-webpack-plugin": "^5.5.0", | ||
"prettier": "^2.4.1", | ||
"semantic-release": "^18.0.0", | ||
"style-loader": "^3.3.1", | ||
"terser-webpack-plugin": "^5.2.5", | ||
"webpack": "^5.64.0", | ||
"webpack-cli": "^4.9.1", | ||
"webpack-dev-server": "^4.5.0" | ||
}, | ||
"dependencies": { | ||
"prop-types": "^15.7.2", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-responsive-mixin": "^0.4.0", | ||
"uniqid": "^5.2.0" | ||
"uniqid": "^5.4.0" | ||
}, | ||
@@ -74,0 +74,0 @@ "npmName": "react-leaf-carousel", |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
function InfiniteCarouselArrow({ carouselName, next, onClick }) { | ||
const InfiniteCarouselArrow = function ({ carouselName, next, onClick }) { | ||
const arrowClassName = 'InfiniteCarouselArrow'; | ||
@@ -38,3 +38,3 @@ let typeClassName; | ||
); | ||
} | ||
}; | ||
@@ -41,0 +41,0 @@ InfiniteCarouselArrow.propTypes = { |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
function InfiniteCarouselDots({ carouselName, numberOfDots, activePage, onClick }) { | ||
const InfiniteCarouselDots = function ({ carouselName, numberOfDots, activePage, onClick }) { | ||
const dots = []; | ||
@@ -36,3 +36,3 @@ let classNameIcon; | ||
); | ||
} | ||
}; | ||
@@ -39,0 +39,0 @@ InfiniteCarouselDots.propTypes = { |
@@ -88,5 +88,5 @@ import React, { Component, Children } from 'react'; | ||
const { scrollOnDeviceProps: stateScrollOnDeviceProps } = this.state; | ||
const breakpoints = breakpointsSettings.map(element => element.breakpoint); | ||
const breakpoints = breakpointsSettings.map((element) => element.breakpoint); | ||
const settings = {}; | ||
breakpointsSettings.forEach(element => { | ||
breakpointsSettings.forEach((element) => { | ||
settings[element.breakpoint] = element.settings; | ||
@@ -121,3 +121,3 @@ }); | ||
const children = this.getChildrenList(propChildren, newSettings.slidesToShow); | ||
const slideUniqueIds = children.map(child => uniqid('slide-')); // eslint-disable-line no-unused-vars | ||
const slideUniqueIds = children.map((child) => uniqid('slide-')); // eslint-disable-line no-unused-vars | ||
this.setState( | ||
@@ -148,3 +148,3 @@ { | ||
const children = this.getChildrenList(propChildren, newSettings.slidesToShow); | ||
const slideUniqueIds = children.map(child => uniqid('slide-')); // eslint-disable-line no-unused-vars | ||
const slideUniqueIds = children.map((child) => uniqid('slide-')); // eslint-disable-line no-unused-vars | ||
this.setState( | ||
@@ -181,3 +181,4 @@ { | ||
setDimensions = () => { | ||
const { settings, lowerBreakpoint, higherBreakpoint, children, currentIndex } = this.state; | ||
const { settings, lowerBreakpoint, higherBreakpoint, children, currentIndex, autoCycleTimer } = | ||
this.state; | ||
const { children: propChildren, scrollOnDevice: propScrollOnDevice } = this.props; | ||
@@ -210,2 +211,3 @@ const scrollOnDevice = propScrollOnDevice && isTouchDevice(); | ||
clearInterval(autoCycleTimer); | ||
this.setState( | ||
@@ -222,2 +224,4 @@ { | ||
sideSize, | ||
// clear autocycle | ||
autoCycleTimer: null, | ||
}, | ||
@@ -362,3 +366,3 @@ () => { | ||
onDotClick = event => { | ||
onDotClick = (event) => { | ||
event.preventDefault(); | ||
@@ -416,3 +420,3 @@ const { settings, animating, autoCycleTimer } = this.state; | ||
onSwipeStart = e => { | ||
onSwipeStart = (e) => { | ||
const { | ||
@@ -444,3 +448,3 @@ settings: { swipe, draggable }, | ||
onSwipeMove = e => { | ||
onSwipeMove = (e) => { | ||
const { dragging, animating } = this.state; | ||
@@ -539,11 +543,4 @@ if (!dragging) { | ||
const { settings } = this.state; | ||
const { | ||
touchObject, | ||
singlePage, | ||
sideSize, | ||
animating, | ||
slidesWidth, | ||
slidesCount, | ||
currentIndex, | ||
} = this.state; | ||
const { touchObject, singlePage, sideSize, animating, slidesWidth, slidesCount, currentIndex } = | ||
this.state; | ||
let trackWidth = slidesWidth + settings.slidesSpacing * 2; | ||
@@ -592,3 +589,3 @@ trackWidth *= slidesCount + settings.slidesToShow * 2; | ||
getSlideStyles = isVisible => { | ||
getSlideStyles = (isVisible) => { | ||
const { slidesWidth, settings } = this.state; | ||
@@ -759,3 +756,3 @@ const { scrollOnDevice } = this.props; | ||
moveToNext = event => { | ||
moveToNext = (event) => { | ||
const { onNextClick } = this.props; | ||
@@ -785,3 +782,3 @@ const { animating, settings, currentIndex, autoCycleTimer } = this.state; | ||
moveToPrevious = event => { | ||
moveToPrevious = (event) => { | ||
const { onPreviousClick } = this.props; | ||
@@ -842,3 +839,3 @@ const { animating, settings, currentIndex, autoCycleTimer } = this.state; | ||
const newChildren = this.getChildrenList(children, slidesToShow); | ||
const slideUniqueIds = newChildren.map(child => uniqid('slide-')); // eslint-disable-line no-unused-vars | ||
const slideUniqueIds = newChildren.map((child) => uniqid('slide-')); // eslint-disable-line no-unused-vars | ||
this.setState( | ||
@@ -857,3 +854,3 @@ { | ||
storeFrameRef = f => { | ||
storeFrameRef = (f) => { | ||
if (f !== null) { | ||
@@ -860,0 +857,0 @@ this.frame = f; |
@@ -6,3 +6,4 @@ const webpack = require('webpack'); | ||
const ReactDOM = require('react-dom'); | ||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | ||
const ESLintPlugin = require('eslint-webpack-plugin'); | ||
const TerserPlugin = require("terser-webpack-plugin"); | ||
@@ -30,3 +31,4 @@ const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ | ||
optimization: { | ||
minimizer: [new UglifyJsPlugin()], | ||
minimize: true, | ||
minimizer: [new TerserPlugin()], | ||
}, | ||
@@ -52,3 +54,3 @@ externals: [ | ||
envConfig = { | ||
plugins: [HtmlWebpackPluginConfig], | ||
plugins: [HtmlWebpackPluginConfig, new ESLintPlugin()], | ||
entry: './public/app.js', | ||
@@ -77,4 +79,3 @@ output: { | ||
}, | ||
}, | ||
'eslint-loader', | ||
} | ||
], | ||
@@ -81,0 +82,0 @@ exclude: /node_modules/, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1511
200915
4
+ Addedreact@17.0.2(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedscheduler@0.19.1(transitive)
Updatedreact@^17.0.2
Updatedreact-dom@^17.0.2
Updateduniqid@^5.4.0