Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-simply-carousel

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simply-carousel - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

2

dist/index.js

@@ -1,1 +0,1 @@

!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.ReactSimplyCarousel=t(require("react")):e.ReactSimplyCarousel=t(e.React)}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(t,n){t.exports=e},function(e,t,n){var r=n(17);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(21),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},s=(r(i,o),i.locals?i.locals:{});e.exports=s},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(13),i=n(14),o=n(15),s=n(16);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(18);e.exports=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&&r(e,t)}},function(e,t,n){var r=n(19),i=n(20);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(6),s=n.n(o),a=n(7),c=n.n(a),u=n(1),l=n.n(u),d=n(8),f=n.n(d),p=n(9),m=n.n(p),h=n(10),v=n.n(h),y=n(11),g=n.n(y),b=n(4),x=n.n(b),S=n(0),w=n.n(S),I=n(3),L=n.n(I);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};if(t%2)for(var r=P(Object(n),!0),i=0;i<r.length;i++)u=r[i],c()(e,u,n[u]);else if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(n));else for(var o=P(Object(n)),s=function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))},a=0;a<o.length;a++)s(o[a])}var u;return e}function C(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var E=function(e){v()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(C()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return g()(this,e)});function r(e){var t;return f()(this,r),(t=n.call(this,e)).getRenderProps=function(e,t){var n=e.windowWidth,r=t.responsiveProps,i=l()(t,["responsiveProps"]);if(!n)return i;var o=r.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minWidth,i=void 0===r?0:r,o=t.maxWidth,s=void 0===o?null:o,a=l()(t,["minWidth","maxWidth"]);return n>i&&(!s||n<=s)?O({},e,{},a):e}),i),s=S.Children.toArray(o.children).length;return O({},o,{activeSlideIndex:Math.max(0,Math.min(o.activeSlideIndex,s-1)),itemsToShow:Math.min(s,o.itemsToShow),itemsToScroll:Math.min(s,o.itemsToScroll)})},t.getInnerWidth=function(){var e=t.state.windowWidth,n=t.renderProps,r=n.activeSlideIndex,i=n.itemsToShow;return e&&i?t.slides.reduce((function(e,n,o){return o>=r&&o<r+i||o<r&&o<r+i-t.slides.length?e+n.offsetWidth:e}),0):null},t.getItemsListOffsetBySlideIndex=function(e){return t.slides.reduce((function(t,n,r){return r>=e?t:t+(n.offsetWidth||0)}),0)},t.getOffsetCorrectionForEdgeSlides=function(e,n){return n-e==0?0:"forward"===t.direction.toLowerCase()&&e<n?t.itemsListRef.current.offsetWidth/3:"backward"===t.direction.toLowerCase()&&e>n?-t.itemsListRef.current.offsetWidth/3:0},t.getSlideItemOnClick=function(e){var n=e.activeSlideIndex,r=e.direction,i=e.index,o=e.onClick;return function(e){var s=n<i?"forward":"",a=n>i?"backward":"";t.updateActiveSlideIndex(i,r||s||a),o&&o(e)}},t.getNextSlideIndex=function(e){var n=t.renderProps,r=n.activeSlideIndex,i=n.itemsToScroll,o=n.children,s=S.Children.count(o)-1;if("forward"===e){var a=r+i;return a>s?a-s-1:a}if("backward"===e){var c=r-i;return c<0?s+1+c:c}return r},t.updateActiveSlideIndex=function(e,n){var r=t.renderProps,i=r.activeSlideIndex,o=r.onRequestChange,s=r.speed,a=r.delay,c=r.easing;t.itemsListRef.current.style.transition=s||a?"transform ".concat(s,"ms ").concat(c," ").concat(a,"ms"):null,e!==i?(t.stopAutoplay(),t.direction=n,o(e)):(t.itemsListRef.current.style.transform="translateX(-".concat(t.itemsListRef.current.offsetWidth/3,"px)"),s||a||t.updatePositionIndex())},t.updatePositionIndex=function(){var e=t.renderProps,n=e.activeSlideIndex,r=e.onAfterChange,i=t.state.positionIndex;t.setState((function(){return{positionIndex:n}}),(function(){t.itemsListDragStartPos=null,t.isListDragging=!1,t.startAutoplay(),r&&r(n,i)}))},t.startAutoplay=function(){var e=t.renderProps,n=e.autoplay,r=e.autoplayDirection,i=e.delay;n&&(t.autoplayTimer=setTimeout((function(){t.updateActiveSlideIndex(t.getNextSlideIndex(r),r)}),i))},t.stopAutoplay=function(){clearTimeout(t.autoplayTimer)},t.handleInitializationEnd=function(){t.setState((function(){return{windowWidth:window.innerWidth}}),t.startAutoplay)},t.handleWindowResize=function(){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(t.handleInitializationEnd,400)},t.handleContainerClickCapture=function(e){var n=t.renderProps.containerProps.onClickCapture;t.isListDragging&&(e.preventDefault(),e.stopPropagation(),n&&n(e))},t.handleBackwardBtnClick=function(){t.updateActiveSlideIndex(t.getNextSlideIndex("backward"),"backward")},t.handleForwardBtnClick=function(){t.updateActiveSlideIndex(t.getNextSlideIndex("forward"),"forward")},t.updateItemsListPosByDragPos=function(e){var n=t.itemsListDragStartPos-e+t.itemsListRef.current.offsetWidth/3,r=t.itemsListRef.current.offsetWidth-t.innerRef.current.offsetWidth,i=Math.max(Math.min(0,-n),-r);t.itemsListRef.current.style.transition="none",t.itemsListRef.current.style.transform="translateX(".concat(i,"px)")},t.handleItemsListDragEnd=function(e){var n=t.renderProps.activeSlideIndex,r=t.itemsListDragStartPos-e,i=t.slides[n].offsetWidth/2;r>i?t.updateActiveSlideIndex(t.getNextSlideIndex("forward"),"forward"):r<-i?t.updateActiveSlideIndex(t.getNextSlideIndex("backward"),"backward"):t.updateActiveSlideIndex(n,"forward")},t.handleItemsListMouseMove=function(e){t.isListDragging=!0,t.updateItemsListPosByDragPos(e.clientX)},t.handleItemsListMouseUp=function(e){t.itemsListRef.current.removeEventListener("mouseout",t.handleItemsListMouseUp),t.itemsListRef.current.removeEventListener("dragstart",t.handleItemsListMouseUp),document.removeEventListener("mousemove",t.handleItemsListMouseMove),document.removeEventListener("mouseup",t.handleItemsListMouseUp),t.isListDragging&&t.handleItemsListDragEnd(e.clientX)},t.handleItemsListMouseDown=function(e){t.stopAutoplay(),t.isListDragging||(t.itemsListDragStartPos=e.clientX,document.addEventListener("mousemove",t.handleItemsListMouseMove),document.addEventListener("mouseup",t.handleItemsListMouseUp),t.itemsListRef.current.addEventListener("mouseout",t.handleItemsListMouseUp),t.itemsListRef.current.addEventListener("dragstart",t.handleItemsListMouseUp))},t.handleItemsListTouchMove=function(e){t.isListDragging=!0,t.updateItemsListPosByDragPos(e.touches[0].clientX)},t.handleItemsListTouchEnd=function(e){document.removeEventListener("touchmove",t.handleItemsListTouchMove),document.removeEventListener("touchend",t.handleItemsListTouchEnd),t.isListDragging&&t.handleItemsListDragEnd(e.changedTouches[e.changedTouches.length-1].clientX)},t.handleItemsListTouchStart=function(e){t.stopAutoplay(),t.isListDragging||(t.itemsListDragStartPos=e.touches[0].clientX,document.addEventListener("touchmove",t.handleItemsListTouchMove),document.addEventListener("touchend",t.handleItemsListTouchEnd))},t.renderSlidesItems=function(e,n,r){for(var i,o,s,a,c,u,d,f,p,m,h,v,y,g,b,x=t.renderProps,S=x.activeSlideIndex,w=x.activeSlideProps,I=w.className,L=void 0===I?"":I,P=w.style,C=void 0===P?{}:P,E=l()(w,["className","style"]),R=x.updateOnItemClick,T=e,j=[],M=0;M<T.length;M++)j.push((i=T[M],o=M,s=void 0,a=void 0,c=void 0,u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,v=void 0,y=void 0,g=void 0,b=void 0,s=i.props,a=(s=void 0===s?{}:s).className,c=void 0===a?"":a,u=s.onClick,d=s.style,f=void 0===d?{}:d,p=l()(s,["className","onClick","style"]),m=l()(i,["props"]),h=t.renderedSlidesCount>=t.slidesCount?"forward":"backward",v=o+n===S,y="".concat(c," ").concat(v?L:""),g=O({},f,{},v?C:{},{boxSizing:"border-box",margin:0}),b=O({role:"tabpanel",className:y,style:g,onClick:!r&&R?t.getSlideItemOnClick({activeSlideIndex:S,direction:h,index:o+n,onClick:u}):u},p,{},v?E:{}),t.renderedSlidesCount=t.renderedSlidesCount+1,O({props:b},m)));return j},t.containerRef=Object(S.createRef)(),t.innerRef=Object(S.createRef)(),t.itemsListRef=Object(S.createRef)(),t.autoplayTimer=null,t.itemsListDragStartPos=null,t.resizeTimer=null,t.direction="",t.slides=[],t.state={windowWidth:0,positionIndex:e.activeSlideIndex},t}return m()(r,[{key:"componentDidMount",value:function(){this.handleInitializationEnd(),window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(e,t){var n=this.getRenderProps(t,e).activeSlideIndex,r=this.renderProps,i=r.activeSlideIndex,o=r.speed,s=r.delay;i===n?this.direction="":o||s||this.updatePositionIndex()}},{key:"componentWillUnmount",value:function(){this.stopAutoplay(),clearTimeout(this.resizeTimer),window.removeEventListener("resize",this.handleWindowResize),document.removeEventListener("mousemove",this.handleItemsListMouseMove),document.removeEventListener("mouseup",this.handleItemsListMouseUp),document.removeEventListener("touchmove",this.handleItemsListTouchMove),document.removeEventListener("touchend",this.handleItemsListTouchEnd),this.itemsListRef.current.removeEventListener("mouseout",this.handleItemsListMouseUp),this.itemsListRef.current.removeEventListener("dragstart",this.handleItemsListMouseUp)}},{key:"render",value:function(){var e=this.state,t=e.windowWidth,n=e.positionIndex;this.renderProps=this.getRenderProps(this.state,this.props);var r=this.renderProps,o=r.activeSlideIndex,a=r.backwardBtnProps,c=a.children,u=void 0===c?null:c,d=a.show,f=void 0===d||d,p=l()(a,["children","show"]),m=r.children,h=r.containerProps,v=h.className,y=void 0===v?"":v,g=(h.onClickCapture,l()(h,["className","onClickCapture"])),b=r.delay,x=r.disableNavIfAllVisible,I=r.easing,P=r.forwardBtnProps,C=P.children,E=void 0===C?null:C,R=P.show,T=void 0===R||R,j=l()(P,["children","show"]),M=r.hideNavIfAllVisible,k=r.innerProps,A=k.className,D=void 0===A?"":A,N=k.style,_=(N=void 0===N?{}:N).width,W=void 0===_?null:_,B=l()(N,["width"]),U=l()(k,["className","style"]),z=r.itemsListProps,F=z.className,K=void 0===F?"":F,J=z.style,X=void 0===J?{}:J,V=(z.onTouchStart,z.onMouseDown,z.onTransitionEnd,l()(z,["className","style","onTouchStart","onMouseDown","onTransitionEnd"])),q=r.itemsToShow,G=r.speed,Q=S.Children.toArray(m);this.slides=t?s()(this.itemsListRef.current.children).slice(Q.length-n,Q.length-n+Q.length):[];var H=this.getInnerWidth(),Z=q===Q.length,$=M&&Z,Y=x&&Z,ee=o-n!=0,te=t&&ee?this.getItemsListOffsetBySlideIndex(n):0,ne=t&&ee?this.getItemsListOffsetBySlideIndex(o):0,re=ee&&(G||b)?"transform ".concat(G,"ms ").concat(I," ").concat(b,"ms"):null,ie=Y||!t?0:ne-te+this.getOffsetCorrectionForEdgeSlides(o,n)+this.itemsListRef.current.offsetWidth/3,oe=t?"translateX(-".concat(ie,"px)"):null;return this.slidesCount=Q.length,this.renderedSlidesCount=0,w.a.createElement("div",i()({className:"".concat(L.a.ReactJSSimpleCarousel," ").concat(y),onClickCapture:this.handleContainerClickCapture},g,{ref:this.containerRef}),f&&!$&&w.a.createElement("button",i()({},p,{type:"button",onClick:this.handleBackwardBtnClick}),u),w.a.createElement("div",i()({className:"".concat(L.a.ReactJSSimpleCarousel__inner," ").concat(D),style:O({width:H?"".concat(H,"px"):W},B)},U,{ref:this.innerRef}),w.a.createElement("div",i()({className:"".concat(L.a.ReactJSSimpleCarousel__itemsList," ").concat(K),style:O({},X,{transition:re,transform:oe}),onTouchStart:Y?null:this.handleItemsListTouchStart,onMouseDown:Y?null:this.handleItemsListMouseDown,onTransitionEnd:G||b?this.updatePositionIndex:null,tabIndex:"-1",role:"presentation"},V,{ref:this.itemsListRef}),!Y&&this.renderSlidesItems(Q.slice(n),n),this.renderSlidesItems(Q,0,Y),!Y&&this.renderSlidesItems(Q,0),!Y&&this.renderSlidesItems(Q.slice(0,n),0))),T&&!$&&w.a.createElement("button",i()({},j,{type:"button",onClick:this.handleForwardBtnClick}),E))}}]),r}(S.Component);E.defaultProps={activeSlideProps:{},autoplay:!1,autoplayDirection:"forward",backwardBtnProps:{},centerMode:!1,children:null,containerProps:{},delay:0,disableNavIfAllVisible:!0,easing:"linear",forwardBtnProps:{},hideNavIfAllVisible:!0,innerProps:{},itemsListProps:{},itemsToScroll:1,itemsToShow:0,onAfterChange:null,responsiveProps:[],speed:0,updateOnItemClick:!1},t.default=E},function(e,t,n){var r=n(5);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=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(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=a(l),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(f)):s.push({identifier:l,updater:v(f,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,h=0;function v(e,t){var n,r,i;if(t.singleton){var o=h++;n=m||(m=u(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=u(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=c(e,t),u=0;u<n.length;u++){var l=a(n[u]);0===s[l].references&&(s[l].updater(),s.splice(l,1))}n=o}}}},function(e,t,n){(t=n(23)(!1)).push([e.i,"._1la421bxBQAeua6KKGZ1oQ {\n display: flex;\n box-sizing: border-box;\n justify-content: center;\n}\n._1Wl9uwIG1ye40T5BD9Vc_F {\n box-sizing: border-box;\n display: flex;\n flex-flow: row wrap;\n max-width: 100%;\n padding: 0;\n overflow: hidden;\n}\n.KViA7SkpESwNTmcWoOrK3 {\n box-sizing: border-box;\n display: flex;\n outline: none;\n}\n._2uFs-3N4OgnK-dWyqEEMLs {\n box-sizing: border-box;\n text-align: center;\n width: 100%;\n}\n",""]),t.locals={ReactJSSimpleCarousel:"_1la421bxBQAeua6KKGZ1oQ",ReactJSSimpleCarousel__inner:"_1Wl9uwIG1ye40T5BD9Vc_F",ReactJSSimpleCarousel__itemsList:"KViA7SkpESwNTmcWoOrK3",ReactJSSimpleCarousel__dotsNav:"_2uFs-3N4OgnK-dWyqEEMLs"},e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var s,a,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}}])}));
!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.ReactSimplyCarousel=t(require("react")):e.ReactSimplyCarousel=t(e.React)}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(t,n){t.exports=e},function(e,t,n){var r=n(17);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(21),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(13),i=n(14),o=n(15),s=n(16);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(18);e.exports=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&&r(e,t)}},function(e,t,n){var r=n(19),i=n(20);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(6),s=n.n(o),a=n(7),c=n.n(a),u=n(1),l=n.n(u),d=n(8),f=n.n(d),p=n(9),m=n.n(p),h=n(10),v=n.n(h),y=n(11),g=n.n(y),b=n(4),x=n.n(b),S=n(0),w=n.n(S),I=n(3),L=n.n(I);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};if(t%2)for(var r=P(Object(n),!0),i=0;i<r.length;i++)u=r[i],c()(e,u,n[u]);else if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(n));else for(var o=P(Object(n)),s=function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))},a=0;a<o.length;a++)s(o[a])}var u;return e}function C(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var E=function(e){v()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(C()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return g()(this,e)});function r(e){var t;return f()(this,r),(t=n.call(this,e)).getRenderProps=function(e,t){var n=e.windowWidth,r=t.responsiveProps,i=l()(t,["responsiveProps"]);if(!n)return i;var o=r.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minWidth,i=void 0===r?0:r,o=t.maxWidth,s=void 0===o?null:o,a=l()(t,["minWidth","maxWidth"]);return n>i&&(!s||n<=s)?O({},e,{},a):e}),i),s=S.Children.toArray(o.children).length;return O({},o,{activeSlideIndex:Math.max(0,Math.min(o.activeSlideIndex,s-1)),itemsToShow:Math.min(s,o.itemsToShow),itemsToScroll:Math.min(s,o.itemsToScroll)})},t.getInnerWidth=function(){var e=t.state.windowWidth,n=t.renderProps,r=n.activeSlideIndex,i=n.itemsToShow;return e&&i?t.slides.reduce((function(e,n,o){return o>=r&&o<r+i||o<r&&o<r+i-t.slides.length?e+n.offsetWidth:e}),0):null},t.getItemsListOffsetBySlideIndex=function(e){return t.slides.reduce((function(t,n,r){return r>=e?t:t+(n.offsetWidth||0)}),0)},t.getOffsetCorrectionForEdgeSlides=function(e,n){return n-e==0?0:"forward"===t.direction.toLowerCase()&&e<n?t.itemsListRef.current.offsetWidth/3:"backward"===t.direction.toLowerCase()&&e>n?-t.itemsListRef.current.offsetWidth/3:0},t.getSlideItemOnClick=function(e){var n=e.activeSlideIndex,r=e.direction,i=e.index,o=e.onClick;return function(e){var s=n<i?"forward":"",a=n>i?"backward":"";t.updateActiveSlideIndex(i,r||s||a),o&&o(e)}},t.getNextSlideIndex=function(e){var n=t.renderProps,r=n.activeSlideIndex,i=n.itemsToScroll,o=n.children,s=S.Children.count(o)-1;if("forward"===e){var a=r+i;return a>s?a-s-1:a}if("backward"===e){var c=r-i;return c<0?s+1+c:c}return r},t.updateActiveSlideIndex=function(e,n){var r=t.renderProps,i=r.activeSlideIndex,o=r.onRequestChange,s=r.speed,a=r.delay,c=r.easing;t.itemsListRef.current.style.transition=s||a?"transform ".concat(s,"ms ").concat(c," ").concat(a,"ms"):null,e!==i?(t.stopAutoplay(),t.direction=n,o(e)):(t.itemsListRef.current.style.transform="translateX(-".concat(t.itemsListRef.current.offsetWidth/3,"px)"),s||a||t.updatePositionIndex())},t.updatePositionIndex=function(){var e=t.renderProps,n=e.activeSlideIndex,r=e.onAfterChange,i=t.state.positionIndex;t.setState((function(){return{positionIndex:n}}),(function(){t.itemsListDragStartPos=null,t.isListDragging=!1,t.startAutoplay(),r&&r(n,i)}))},t.startAutoplay=function(){var e=t.renderProps,n=e.autoplay,r=e.autoplayDirection,i=e.delay;n&&(t.autoplayTimer=setTimeout((function(){t.updateActiveSlideIndex(t.getNextSlideIndex(r),r)}),i))},t.stopAutoplay=function(){clearTimeout(t.autoplayTimer)},t.handleInitializationEnd=function(){t.setState((function(){return{windowWidth:window.innerWidth}}),t.startAutoplay)},t.handleWindowResize=function(){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(t.handleInitializationEnd,400)},t.handleContainerClickCapture=function(e){var n=t.renderProps.containerProps.onClickCapture;t.isListDragging&&(e.preventDefault(),e.stopPropagation(),n&&n(e))},t.handleBackwardBtnClick=function(){t.updateActiveSlideIndex(t.getNextSlideIndex("backward"),"backward")},t.handleForwardBtnClick=function(){t.updateActiveSlideIndex(t.getNextSlideIndex("forward"),"forward")},t.updateItemsListPosByDragPos=function(e){var n=t.itemsListDragStartPos-e+t.itemsListRef.current.offsetWidth/3,r=t.itemsListRef.current.offsetWidth-t.innerRef.current.offsetWidth,i=Math.max(Math.min(0,-n),-r);t.itemsListRef.current.style.transition="none",t.itemsListRef.current.style.transform="translateX(".concat(i,"px)")},t.handleItemsListDragEnd=function(e){var n=t.renderProps.activeSlideIndex,r=t.itemsListDragStartPos-e,i=t.slides[n].offsetWidth/2;r>i?t.updateActiveSlideIndex(t.getNextSlideIndex("forward"),"forward"):r<-i?t.updateActiveSlideIndex(t.getNextSlideIndex("backward"),"backward"):t.updateActiveSlideIndex(n,"forward")},t.handleItemsListMouseMove=function(e){t.isListDragging=!0,t.updateItemsListPosByDragPos(e.clientX)},t.handleItemsListMouseUp=function(e){t.itemsListRef.current.removeEventListener("mouseout",t.handleItemsListMouseUp),t.itemsListRef.current.removeEventListener("dragstart",t.handleItemsListMouseUp),document.removeEventListener("mousemove",t.handleItemsListMouseMove),document.removeEventListener("mouseup",t.handleItemsListMouseUp),t.isListDragging&&t.handleItemsListDragEnd(e.clientX)},t.handleItemsListMouseDown=function(e){t.stopAutoplay(),t.isListDragging||(t.itemsListDragStartPos=e.clientX,document.addEventListener("mousemove",t.handleItemsListMouseMove),document.addEventListener("mouseup",t.handleItemsListMouseUp),t.itemsListRef.current.addEventListener("mouseout",t.handleItemsListMouseUp),t.itemsListRef.current.addEventListener("dragstart",t.handleItemsListMouseUp))},t.handleItemsListTouchMove=function(e){t.isListDragging=!0,t.updateItemsListPosByDragPos(e.touches[0].clientX)},t.handleItemsListTouchEnd=function(e){document.removeEventListener("touchmove",t.handleItemsListTouchMove),document.removeEventListener("touchend",t.handleItemsListTouchEnd),t.isListDragging&&t.handleItemsListDragEnd(e.changedTouches[e.changedTouches.length-1].clientX)},t.handleItemsListTouchStart=function(e){t.stopAutoplay(),t.isListDragging||(t.itemsListDragStartPos=e.touches[0].clientX,document.addEventListener("touchmove",t.handleItemsListTouchMove),document.addEventListener("touchend",t.handleItemsListTouchEnd))},t.renderSlidesItems=function(e,n,r){for(var i,o,s,a,c,u,d,f,p,m,h,v,y,g,b,x=t.renderProps,S=x.activeSlideIndex,w=x.activeSlideProps,I=w.className,L=void 0===I?"":I,P=w.style,C=void 0===P?{}:P,E=l()(w,["className","style"]),R=x.updateOnItemClick,T=e,j=[],M=0;M<T.length;M++)j.push((i=T[M],o=M,s=void 0,a=void 0,c=void 0,u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,v=void 0,y=void 0,g=void 0,b=void 0,s=i.props,a=(s=void 0===s?{}:s).className,c=void 0===a?"":a,u=s.onClick,d=s.style,f=void 0===d?{}:d,p=l()(s,["className","onClick","style"]),m=l()(i,["props"]),h=t.renderedSlidesCount>=t.slidesCount?"forward":"backward",v=o+n===S,y="".concat(c," ").concat(v?L:""),g=O({},f,{},v?C:{},{boxSizing:"border-box",margin:0}),b=O({role:"tabpanel",className:y,style:g,onClick:!r&&R?t.getSlideItemOnClick({activeSlideIndex:S,direction:h,index:o+n,onClick:u}):u},p,{},v?E:{}),t.renderedSlidesCount+=1,O({props:b},m)));return j},t.containerRef=Object(S.createRef)(),t.innerRef=Object(S.createRef)(),t.itemsListRef=Object(S.createRef)(),t.autoplayTimer=null,t.itemsListDragStartPos=null,t.resizeTimer=null,t.direction="",t.slides=[],t.state={windowWidth:0,positionIndex:e.activeSlideIndex},t}return m()(r,[{key:"componentDidMount",value:function(){this.handleInitializationEnd(),window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(e,t){var n=this.getRenderProps(t,e).activeSlideIndex,r=this.renderProps,i=r.activeSlideIndex,o=r.speed,s=r.delay;i===n?this.direction="":o||s||this.updatePositionIndex()}},{key:"componentWillUnmount",value:function(){this.stopAutoplay(),clearTimeout(this.resizeTimer),window.removeEventListener("resize",this.handleWindowResize),document.removeEventListener("mousemove",this.handleItemsListMouseMove),document.removeEventListener("mouseup",this.handleItemsListMouseUp),document.removeEventListener("touchmove",this.handleItemsListTouchMove),document.removeEventListener("touchend",this.handleItemsListTouchEnd),this.itemsListRef.current.removeEventListener("mouseout",this.handleItemsListMouseUp),this.itemsListRef.current.removeEventListener("dragstart",this.handleItemsListMouseUp)}},{key:"render",value:function(){var e=this.state,t=e.windowWidth,n=e.positionIndex;this.renderProps=this.getRenderProps(this.state,this.props);var r=this.renderProps,o=r.activeSlideIndex,a=r.backwardBtnProps,c=a.children,u=void 0===c?null:c,d=a.show,f=void 0===d||d,p=l()(a,["children","show"]),m=r.children,h=r.containerProps,v=h.className,y=void 0===v?"":v,g=(h.onClickCapture,l()(h,["className","onClickCapture"])),b=r.delay,x=r.disableNavIfAllVisible,I=r.easing,P=r.forwardBtnProps,C=P.children,E=void 0===C?null:C,R=P.show,T=void 0===R||R,j=l()(P,["children","show"]),M=r.hideNavIfAllVisible,k=r.innerProps,A=k.className,D=void 0===A?"":A,N=k.style,_=(N=void 0===N?{}:N).width,W=void 0===_?null:_,B=l()(N,["width"]),U=l()(k,["className","style"]),z=r.itemsListProps,F=z.className,K=void 0===F?"":F,J=z.style,X=void 0===J?{}:J,V=(z.onTouchStart,z.onMouseDown,z.onTransitionEnd,l()(z,["className","style","onTouchStart","onMouseDown","onTransitionEnd"])),q=r.itemsToShow,G=r.speed,Q=S.Children.toArray(m);this.slides=t?s()(this.itemsListRef.current.children).slice(Q.length-n,Q.length-n+Q.length):[];var H=this.getInnerWidth(),Z=q===Q.length,$=M&&Z,Y=x&&Z,ee=o-n!=0,te=t&&ee?this.getItemsListOffsetBySlideIndex(n):0,ne=t&&ee?this.getItemsListOffsetBySlideIndex(o):0,re=ee&&(G||b)?"transform ".concat(G,"ms ").concat(I," ").concat(b,"ms"):null,ie=Y||!t?0:ne-te+this.getOffsetCorrectionForEdgeSlides(o,n)+this.itemsListRef.current.offsetWidth/3,oe=t?"translateX(-".concat(ie,"px)"):null;return this.slidesCount=Q.length,this.renderedSlidesCount=0,w.a.createElement("div",i()({className:"".concat(L.a.ReactJSSimpleCarousel," ").concat(y),onClickCapture:this.handleContainerClickCapture},g,{ref:this.containerRef}),f&&!$&&w.a.createElement("button",i()({},p,{type:"button",onClick:this.handleBackwardBtnClick}),u),w.a.createElement("div",i()({className:"".concat(L.a.ReactJSSimpleCarousel__inner," ").concat(D),style:O({width:H?"".concat(H,"px"):W},B)},U,{ref:this.innerRef}),w.a.createElement("div",i()({className:"".concat(L.a.ReactJSSimpleCarousel__itemsList," ").concat(K),style:O({},X,{transition:re,transform:oe}),onTouchStart:Y?null:this.handleItemsListTouchStart,onMouseDown:Y?null:this.handleItemsListMouseDown,onTransitionEnd:G||b?this.updatePositionIndex:null,tabIndex:"-1",role:"presentation"},V,{ref:this.itemsListRef}),!Y&&this.renderSlidesItems(Q.slice(n),n),this.renderSlidesItems(Q,0,Y),!Y&&this.renderSlidesItems(Q,0),!Y&&this.renderSlidesItems(Q.slice(0,n),0))),T&&!$&&w.a.createElement("button",i()({},j,{type:"button",onClick:this.handleForwardBtnClick}),E))}}]),r}(S.Component);E.defaultProps={activeSlideProps:{},autoplay:!1,autoplayDirection:"forward",backwardBtnProps:{},centerMode:!1,children:null,containerProps:{},delay:0,disableNavIfAllVisible:!0,easing:"linear",forwardBtnProps:{},hideNavIfAllVisible:!0,innerProps:{},itemsListProps:{},itemsToScroll:1,itemsToShow:0,onAfterChange:null,responsiveProps:[],speed:0,updateOnItemClick:!1},t.default=E},function(e,t,n){var r=n(5);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=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(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=a(l),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(f)):s.push({identifier:l,updater:v(f,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,h=0;function v(e,t){var n,r,i;if(t.singleton){var o=h++;n=m||(m=u(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=u(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=c(e,t),u=0;u<n.length;u++){var l=a(n[u]);0===s[l].references&&(s[l].updater(),s.splice(l,1))}n=o}}}},function(e,t,n){(t=n(23)(!1)).push([e.i,"._1la421bxBQAeua6KKGZ1oQ {\n display: flex;\n box-sizing: border-box;\n justify-content: center;\n}\n._1Wl9uwIG1ye40T5BD9Vc_F {\n box-sizing: border-box;\n display: flex;\n flex-flow: row wrap;\n max-width: 100%;\n padding: 0;\n overflow: hidden;\n}\n.KViA7SkpESwNTmcWoOrK3 {\n box-sizing: border-box;\n display: flex;\n outline: none;\n}\n._2uFs-3N4OgnK-dWyqEEMLs {\n box-sizing: border-box;\n text-align: center;\n width: 100%;\n}\n",""]),t.locals={ReactJSSimpleCarousel:"_1la421bxBQAeua6KKGZ1oQ",ReactJSSimpleCarousel__inner:"_1Wl9uwIG1ye40T5BD9Vc_F",ReactJSSimpleCarousel__itemsList:"KViA7SkpESwNTmcWoOrK3",ReactJSSimpleCarousel__dotsNav:"_2uFs-3N4OgnK-dWyqEEMLs"},e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var s,a,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}}])}));
{
"name": "react-simply-carousel",
"version": "2.1.8",
"version": "2.1.9",
"description": "Simple react.js carousel component",

@@ -14,4 +14,4 @@ "main": "dist/index.js",

"build": "webpack",
"lint": "eslint . --ignore-path .eslintignore --ext .js,.jsx",
"lint:fix": "eslint . --ignore-path .eslintignore --ext .js,.jsx --fix",
"lint": "eslint . --ignore-path .gitignore --ext .js,.jsx",
"lint:fix": "eslint . --ignore-path .gitignore --ext .js,.jsx --fix",
"prepublish": "yarn run lint && yarn run build"

@@ -76,11 +76,11 @@ },

"clean-webpack-plugin": "^3.0.0",
"css-loader": "^3.5.2",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-import-resolver-webpack": "^0.11.1",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.18.0",
"css-loader": "^3.5.3",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-loader": "^4.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"husky": "^4.2.5",

@@ -91,4 +91,5 @@ "jest": "^25.4.0",

"lint-staged": "^10.1.7",
"path": "^0.12.7",
"postcss-loader": "^3.0.0",
"style-loader": "^1.1.4",
"style-loader": "^1.2.0",
"webpack": "^4.43.0",

@@ -95,0 +96,0 @@ "webpack-bundle-analyzer": "^3.7.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc