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

react-slick

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slick - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

4

dist/react-slick.min.js

@@ -1,2 +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.Slider=t(require("react")):e.Slider=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var i=r(4),s=n(i),o=r(5),a=r(23),l=n(a),u=r(2),c=n(u),d=r(26),p=n(d),h=r(9),f=n(h),v=s["default"].createClass({displayName:"Slider",mixins:[p["default"]],getInitialState:function(){return{breakpoint:null}},componentDidMount:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(r,n){var i;i=0===n?c["default"]({minWidth:0,maxWidth:r}):c["default"]({minWidth:t[n-1],maxWidth:r}),e.media(i,function(){e.setState({breakpoint:r})})});var r=c["default"]({minWidth:t.slice(-1)[0]});this.media(r,function(){e.setState({breakpoint:null})})}},render:function(){var e,t,r=this;return this.state.breakpoint?(t=this.props.responsive.filter(function(e){return e.breakpoint===r.state.breakpoint}),e="unslick"===t[0].settings?"unslick":l["default"]({},this.props,t[0].settings)):e=l["default"]({},f["default"],this.props),"unslick"===e?s["default"].createElement("div",null,this.props.children):s["default"].createElement(o.InnerSlider,e,this.props.children)}});e.exports=v},function(e,t,r){var n=r(3),i=function(e){var t=/[height|width]$/;return t.test(e)},s=function(e){var t="",r=Object.keys(e);return r.forEach(function(s,o){var a=e[s];s=n(s),i(s)&&"number"==typeof a&&(a+="px"),t+=a===!0?s:a===!1?"not "+s:"("+s+": "+a+")",o<r.length-1&&(t+=" and ")}),t},o=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,n){t+=s(r),n<e.length-1&&(t+=", ")}),t):s(e)};e.exports=o},function(e,t,r){var n=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()};e.exports=n},function(t,r,n){t.exports=e},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s=r(4),o=n(s),a=r(!function(){var e=new Error('Cannot find module "./mixins/event-handlers"');throw e.code="MODULE_NOT_FOUND",e}()),l=n(a),u=r(!function(){var e=new Error('Cannot find module "./mixins/helpers"');throw e.code="MODULE_NOT_FOUND",e}()),c=n(u),d=r(8),p=n(d),h=r(9),f=n(h),v=r(10),y=n(v),m=r(11),w=r(24),g=r(25),b=o["default"].createClass({displayName:"InnerSlider",mixins:[c["default"],l["default"]],getInitialState:function(){return p["default"]},getDefaultProps:function(){return f["default"]},componentWillMount:function(){this.props.init&&this.props.init(),this.setState({mounted:!0});for(var e=[],t=0;t<this.props.children.length;t++)t>=this.state.currentSlide&&t<this.state.currentSlide+this.props.slidesToShow&&e.push(t);this.props.lazyLoad&&0===this.state.lazyLoadedList.length&&this.setState({lazyLoadedList:e})},componentDidMount:function(){this.initialize(this.props),this.adaptHeight(),window.addEventListener("resize",this.onWindowResized)},componentWillUnmount:function(){window.removeEventListener("resize",this.onWindowResized)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.initialize(this.props)},render:function(){var e,t=y["default"]("slick-initialized","slick-slider",this.props.className),r={fade:this.props.fade,cssEase:this.props.cssEase,speed:this.props.speed,infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,lazyLoad:this.props.lazyLoad,lazyLoadedList:this.state.lazyLoadedList,rtl:this.props.rtl,slideWidth:this.state.slideWidth,slidesToShow:this.props.slidesToShow,slideCount:this.state.slideCount,trackStyle:this.state.trackStyle,variableWidth:this.props.variableWidth};if(this.props.dots===!0&&this.state.slideCount>this.props.slidesToShow){var n={dotsClass:this.props.dotsClass,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,currentSlide:this.state.currentSlide,slidesToScroll:this.props.slidesToScroll,clickHandler:this.changeSlide};e=o["default"].createElement(w.Dots,n)}var s,a,l={infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,prevArrow:this.props.prevArrow,nextArrow:this.props.nextArrow,clickHandler:this.changeSlide};return this.props.arrows&&(s=o["default"].createElement(g.PrevArrow,l),a=o["default"].createElement(g.NextArrow,l)),o["default"].createElement("div",{className:t},o["default"].createElement("div",{ref:"list",className:"slick-list",onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null},o["default"].createElement(m.Track,i({ref:"track"},r),this.props.children)),s,a,e)}});t.InnerSlider=b},,,function(e,t,r){var n={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,slideCount:null,slideWidth:null,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0};e.exports=n},function(e,t,r){var n={className:"",adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null};e.exports=n},function(e,t,r){/*!
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Slider=e(require("react")):t.Slider=e(t.React)}(this,function(t){return function(t){function e(s){if(i[s])return i[s].exports;var n=i[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";t.exports=i(1)},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}var n=i(4),r=s(n),o=i(5),a=i(8),l=s(a),d=i(2),u=s(d),c=i(29),h=s(c),p=i(13),f=s(p),v=r["default"].createClass({displayName:"Slider",mixins:[h["default"]],getInitialState:function(){return{breakpoint:null}},componentDidMount:function(){var t=this;if(this.props.responsive){var e=this.props.responsive.map(function(t){return t.breakpoint});e.sort(function(t,e){return t-e}),e.forEach(function(i,s){var n;n=0===s?u["default"]({minWidth:0,maxWidth:i}):u["default"]({minWidth:e[s-1],maxWidth:i}),t.media(n,function(){t.setState({breakpoint:i})})});var i=u["default"]({minWidth:e.slice(-1)[0]});this.media(i,function(){t.setState({breakpoint:null})})}},render:function(){var t,e,i=this;return this.state.breakpoint?(e=this.props.responsive.filter(function(t){return t.breakpoint===i.state.breakpoint}),t="unslick"===e[0].settings?"unslick":l["default"]({},this.props,e[0].settings)):t=l["default"]({},f["default"],this.props),"unslick"===t?r["default"].createElement("div",null,this.props.children):r["default"].createElement(o.InnerSlider,t,this.props.children)}});t.exports=v},function(t,e,i){var s=i(3),n=function(t){var e=/[height|width]$/;return e.test(t)},r=function(t){var e="",i=Object.keys(t);return i.forEach(function(r,o){var a=t[r];r=s(r),n(r)&&"number"==typeof a&&(a+="px"),e+=a===!0?r:a===!1?"not "+r:"("+r+": "+a+")",o<i.length-1&&(e+=" and ")}),e},o=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(i,s){e+=r(i),s<t.length-1&&(e+=", ")}),e):r(t)};t.exports=o},function(t,e,i){var s=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()};t.exports=s},function(e,i,s){e.exports=t},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},r=i(4),o=s(r),a=i(6),l=s(a),d=i(9),u=s(d),c=i(12),h=s(c),p=i(13),f=s(p),v=i(14),g=s(v),w=i(15),m=i(27),y=i(28),S=o["default"].createClass({displayName:"InnerSlider",mixins:[u["default"],l["default"]],getInitialState:function(){return h["default"]},getDefaultProps:function(){return f["default"]},componentWillMount:function(){this.props.init&&this.props.init(),this.setState({mounted:!0});for(var t=[],e=0;e<this.props.children.length;e++)e>=this.state.currentSlide&&e<this.state.currentSlide+this.props.slidesToShow&&t.push(e);this.props.lazyLoad&&0===this.state.lazyLoadedList.length&&this.setState({lazyLoadedList:t})},componentDidMount:function(){this.initialize(this.props),this.adaptHeight(),window.addEventListener("resize",this.onWindowResized)},componentWillUnmount:function(){window.removeEventListener("resize",this.onWindowResized)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.initialize(this.props)},render:function(){var t,e=g["default"]("slick-initialized","slick-slider",this.props.className),i={fade:this.props.fade,cssEase:this.props.cssEase,speed:this.props.speed,infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,lazyLoad:this.props.lazyLoad,lazyLoadedList:this.state.lazyLoadedList,rtl:this.props.rtl,slideWidth:this.state.slideWidth,slidesToShow:this.props.slidesToShow,slideCount:this.state.slideCount,trackStyle:this.state.trackStyle,variableWidth:this.props.variableWidth};if(this.props.dots===!0&&this.state.slideCount>this.props.slidesToShow){var s={dotsClass:this.props.dotsClass,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,currentSlide:this.state.currentSlide,slidesToScroll:this.props.slidesToScroll,clickHandler:this.changeSlide};t=o["default"].createElement(m.Dots,s)}var r,a,l={infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,prevArrow:this.props.prevArrow,nextArrow:this.props.nextArrow,clickHandler:this.changeSlide};return this.props.arrows&&(r=o["default"].createElement(y.PrevArrow,l),a=o["default"].createElement(y.NextArrow,l)),o["default"].createElement("div",{className:e},o["default"].createElement("div",{ref:"list",className:"slick-list",onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null},o["default"].createElement(w.Track,n({ref:"track"},i),this.props.children)),r,a,t)}});e.InnerSlider=S},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(7),r=i(8),o=s(r),a={changeSlide:function(t){var e,i,s,n;if(s=this.state.slideCount%this.props.slidesToScroll!==0,e=s?0:(this.state.slideCount-this.state.currentSlide)%this.props.slidesToScroll,"previous"===t.message)i=0===e?this.props.slidesToScroll:this.props.slidesToShow-e,n=this.state.currentSlide-i;else if("next"===t.message)i=0===e?this.props.slidesToScroll:e,n=this.state.currentSlide+i;else if("dots"===t.message&&(n=t.index*t.slidesToScroll,n===t.currentSlide))return;this.slideHandler(n)},keyHandler:function(t){},selectHandler:function(t){},swipeStart:function(t){var e,i;this.props.swipe===!1||"ontouchend"in document&&this.props.swipe===!1||(this.props.draggable!==!1||-1===t.type.indexOf("mouse"))&&(e=void 0!==t.touches?t.touches[0].pageX:t.clientX,i=void 0!==t.touches?t.touches[0].pageY:t.clientY,this.setState({dragging:!0,touchObject:{startX:e,startY:i,curX:e,curY:i}}))},swipeMove:function(t){if(this.state.dragging&&!this.state.animating){var e,i,s,r=this.state.touchObject;i=n.getTrackLeft(o["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state)),r.curX=t.touches?t.touches[0].pageX:t.clientX,r.curY=t.touches?t.touches[0].pageY:t.clientY,r.swipeLength=Math.round(Math.sqrt(Math.pow(r.curX-r.startX,2))),s=(this.props.rtl===!1?1:-1)*(r.curX>r.startX?1:-1);var a=this.state.currentSlide,l=Math.ceil(this.state.slideCount/this.props.slidesToScroll),d=this.swipeDirection(this.state.touchObject),u=r.swipeLength;this.props.infinite===!1&&(0===a&&"right"===d||a+1>=l&&"left"===d)&&(u=r.swipeLength*this.props.edgeFriction,this.state.edgeDragged===!1&&this.props.edgeEvent&&(this.props.edgeEvent(d),this.setState({edgeDragged:!0}))),this.state.swiped===!1&&this.props.swipeEvent&&(this.props.swipeEvent(d),this.setState({swiped:!0})),e=i+u*s,this.setState({touchObject:r,swipeLeft:e,trackStyle:n.getTrackCSS(o["default"]({left:e},this.props,this.state))}),Math.abs(r.curX-r.startX)<.8*Math.abs(r.curY-r.startY)||r.swipeLength>4&&t.preventDefault()}},swipeEnd:function(t){if(this.state.dragging){var e=this.state.touchObject,i=this.state.listWidth/this.props.touchThreshold,s=this.swipeDirection(e);if(this.setState({dragging:!1,edgeDragged:!1,swiped:!1,swipeLeft:null,touchObject:{}}),e.swipeLength)if(e.swipeLength>i)t.preventDefault(),"left"===s?this.slideHandler(this.state.currentSlide+this.props.slidesToScroll):"right"===s?this.slideHandler(this.state.currentSlide-this.props.slidesToScroll):this.slideHandler(this.state.currentSlide);else{var r=n.getTrackLeft(o["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state));this.setState({trackStyle:n.getTrackAnimateCSS(o["default"]({left:r},this.props,this.state))})}}}};e["default"]=a,t.exports=e["default"]},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=function(t,e){return e.reduce(function(e,i){return e&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",t)},n=function(t){s(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var e;e=t.variableWidth?(t.slideCount+2*t.slidesToShow)*t.slideWidth:t.centerMode?(t.slideCount+2*(t.slidesToShow+1))*t.slideWidth:(t.slideCount+2*t.slidesToShow)*t.slideWidth;var i={opacity:1,width:e,WebkitTransform:"translate3d("+t.left+"px, 0px, 0px)",transform:"translate3d("+t.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:"translateX("+t.left+"px)"};return i};e.getTrackCSS=n;var r=function(t){s(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var e=n(t);return e.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,e.transition="transform "+t.speed+"ms "+t.cssEase,e};e.getTrackAnimateCSS=r;var o=function(t){s(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth"]);var e,i,n=0;if(t.fade)return 0;if(t.infinite&&(t.slideCount>t.slidesToShow&&(n=t.slideWidth*t.slidesToShow*-1),t.slideCount%t.slidesToScroll!==0&&t.slideIndex+t.slidesToScroll>t.slideCount&&t.slideCount>t.slidesToShow&&(n=t.slideIndex>t.slideCount?(t.slidesToShow-(t.slideIndex-t.slideCount))*t.slideWidth*-1:t.slideCount%t.slidesToScroll*t.slideWidth*-1)),t.centerMode&&(t.infinite?n+=t.slideWidth*Math.floor(t.slidesToShow/2):n=t.slideWidth*Math.floor(t.slidesToShow/2)),e=t.slideIndex*t.slideWidth*-1+n,t.variableWidth===!0){var r;t.slideCount<=t.slidesToShow||t.infinite===!1?i=t.trackRef.getDOMNode().childNodes[t.slideIndex]:(r=t.slideIndex+t.slidesToShow,i=t.trackRef.getDOMNode().childNodes[r]),e=i?-1*i.offsetLeft:0,t.centerMode===!0&&(i=t.infinite===!1?t.trackRef.getDOMNode().children[t.slideIndex]:t.trackRef.getDOMNode().children[t.slideIndex+t.slidesToShow+1],e=i?-1*i.offsetLeft:0,e+=(t.listWidth-i.offsetWidth)/2)}return e};e.getTrackLeft=o},function(t,e,i){"use strict";function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t,e){for(var i,n,r=s(t),o=1;o<arguments.length;o++){i=arguments[o],n=Object.keys(Object(i));for(var a=0;a<n.length;a++)r[n[a]]=i[n[a]]}return r}},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(4),r=s(n),o=i(10),a=s(o),l=i(7),d=i(8),u=s(d),c={initialize:function(t){var e=r["default"].Children.count(t.children),i=this.refs.list.getDOMNode().getBoundingClientRect().width,s=this.refs.track.getDOMNode().getBoundingClientRect().width,n=this.getDOMNode().getBoundingClientRect().width/t.slidesToShow,o=t.rtl?e-1-t.initialSlide:t.initialSlide;this.setState({slideCount:e,slideWidth:n,listWidth:i,trackWidth:s,currentSlide:o},function(){var e=l.getTrackLeft(u["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},t,this.state)),i=l.getTrackCSS(u["default"]({left:e},t,this.state));this.setState({trackStyle:i}),this.autoPlay()})},adaptHeight:function(){if(this.props.adaptiveHeight){var t='[data-index="'+this.state.currentSlide+'"]';if(this.refs.list){var e=this.refs.list.getDOMNode();e.style.height=e.querySelector(t).offsetHeight+"px"}}},slideHandler:function(t){var e,i,s,n,r,o=this;if(this.state.animating!==!0&&this.state.currentSlide!==t){if(this.props.fade)return i=this.state.currentSlide,this.props.beforeChange&&this.props.beforeChange(i),e=0>t?t+this.state.slideCount:t>=this.state.slideCount?t-this.state.slideCount:t,this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(e)<0&&this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(e)}),r=function(){o.setState({animating:!1}),o.props.afterChange&&o.props.afterChange(i),a["default"].removeEndEventListener(o.refs.track.getDOMNode().children[i],r)},this.setState({animating:!0,currentSlide:e},function(){a["default"].addEndEventListener(this.refs.track.getDOMNode().children[i],r)}),void this.autoPlay();if(e=t,i=0>e?this.props.infinite===!1?0:this.state.slideCount%this.props.slidesToScroll!==0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+e:e>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!==0?0:e-this.state.slideCount:e,s=l.getTrackLeft(u["default"]({slideIndex:e,trackRef:this.refs.track},this.props,this.state)),n=l.getTrackLeft(u["default"]({slideIndex:i,trackRef:this.refs.track},this.props,this.state)),this.props.infinite===!1&&(s=n),this.props.beforeChange&&this.props.beforeChange(i),this.props.lazyLoad){for(var d=!0,c=[],h=e;h<e+this.props.slidesToShow;h++)d=d&&this.state.lazyLoadedList.indexOf(h)>=0,d||c.push(h);d||this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(c)})}if(this.props.useCSS===!1)this.setState({currentSlide:i,trackStyle:l.getTrackCSS(u["default"]({left:n},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)});else{var p={animating:!1,currentSlide:i,trackStyle:l.getTrackCSS(u["default"]({left:n},this.props,this.state)),swipeLeft:null};r=function(){o.setState(p),o.props.afterChange&&o.props.afterChange(i),a["default"].removeEndEventListener(o.refs.track.getDOMNode(),r)},this.setState({animating:!0,currentSlide:e,trackStyle:l.getTrackAnimateCSS(u["default"]({left:s},this.props,this.state))},function(){a["default"].addEndEventListener(this.refs.track.getDOMNode(),r)})}this.autoPlay()}},swipeDirection:function(t){var e,i,s,n;return e=t.startX-t.curX,i=t.startY-t.curY,s=Math.atan2(i,e),n=Math.round(180*s/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0||360>=n&&n>=315?this.props.rtl===!1?"left":"right":n>=135&&225>=n?this.props.rtl===!1?"right":"left":"vertical"},autoPlay:function(){var t=this,e=function(){t.state.mounted&&t.slideHandler(t.state.currentSlide+t.props.slidesToScroll)};this.props.autoplay&&(window.clearTimeout(this.state.autoPlayTimer),this.setState({autoPlayTimer:window.setTimeout(e,this.props.autoplaySpeed)}))}};e["default"]=c,t.exports=e["default"]},function(t,e,i){"use strict";function s(){var t=document.createElement("div"),e=t.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var i in a){var s=a[i];for(var n in s)if(n in e){l.push(s[n]);break}}}function n(t,e,i){t.addEventListener(e,i,!1)}function r(t,e,i){t.removeEventListener(e,i,!1)}var o=i(11),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},l=[];o.canUseDOM&&s();var d={addEndEventListener:function(t,e){return 0===l.length?void window.setTimeout(e,0):void l.forEach(function(i){n(t,i,e)})},removeEndEventListener:function(t,e){0!==l.length&&l.forEach(function(i){r(t,i,e)})}};t.exports=d},function(t,e,i){"use strict";var s=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:s,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:s&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:s&&!!window.screen,isInWorker:!s};t.exports=n},function(t,e,i){"use strict";var s={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,slideCount:null,slideWidth:null,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0};t.exports=s},function(t,e,i){"use strict";var s={className:"",adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null};t.exports=s},function(t,e,i){/*!
Copyright (c) 2015 Jed Watson.

@@ -6,2 +6,2 @@ Licensed under the MIT License (MIT), see

*/
function n(){"use strict";for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e+=" "+r;else if(Array.isArray(r))e+=" "+n.apply(null,r);else if("object"===i)for(var s in r)r.hasOwnProperty(s)&&r[s]&&(e+=" "+s)}}return e.substr(1)}var i,s;"undefined"!=typeof e&&e.exports&&(e.exports=n),i=[],s=function(){return n}.apply(t,i),!(void 0!==s&&(e.exports=s))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=n(i),o=r(12),a=n(o),l=r(23),u=n(l),c=r(10),d=n(c),p=function(e){var t,r,n,i,s;return e.rtl?(s=e.slideCount-1-e.index,console.log()):s=e.index,n=0>s||s>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),r=e.currentSlide===s,s>e.currentSlide-i-1&&s<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=s&&s<e.currentSlide+e.slidesToShow,d["default"]({"slick-slide":!0,"slick-active":t,"slick-center":r,"slick-cloned":n})},h=function(e){var t={};return(void 0===e.variableWidth||e.variableWidth===!1)&&(t.width=e.slideWidth),e.fade&&(t.position="relative",t.left=-e.index*e.slideWidth,t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase),t},f=function(e){var t,r,n=[],i=[],o=[],l=s["default"].Children.count(e.children);return s["default"].Children.forEach(e.children,function(c,d){r=!e.lazyLoad|(e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0)?c:s["default"].createElement("div",null);var f=h(u["default"]({},e,{index:d}));if(n.push(a["default"](r,{key:d,"data-index":d,className:p(u["default"]({index:d},e)),style:f})),e.infinite&&e.fade===!1){var v=e.variableWidth?e.slidesToShow+1:e.slidesToShow;d>=l-v&&(t=-(l-d),i.push(a["default"](r,{key:t,"data-index":t,className:p(u["default"]({index:t},e)),style:f}))),v>d&&(t=l+d,o.push(a["default"](r,{key:t,"data-index":t,className:p(u["default"]({index:t},e)),style:f})))}}),e.rtl?i.concat(n,o).reverse():i.concat(n,o)},v=s["default"].createClass({displayName:"Track",render:function(){var e=f(this.props);return s["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},e)}});t.Track=v},function(e,t,r){"use strict";function n(e,t){a(!e.ref,"You are calling cloneWithProps() on a child with a ref. This is dangerous because you're creating a new child which will not be added as a ref to its parent.");var r=s.mergeProps(t,e.props);return!r.hasOwnProperty(l)&&e.props.hasOwnProperty(l)&&(r.children=e.props.children),i.createElement(e.type,r)}var i=r(13),s=r(20),o=r(22),a=r(14),l=o({children:null});e.exports=n},function(e,t,r){"use strict";function n(e,t){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[t]:null},set:function(e){l(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",t),this._store[t]=e}})}function i(e){try{var t={props:!0};for(var r in t)n(e,r);c=!0}catch(i){}}var s=r(16),o=r(19),a=r(17),l=r(14),u={key:!0,ref:!0},c=!1,d=function(e,t,r,n,i,s){this.type=e,this.key=t,this.ref=r,this._owner=n,this._context=i,this._store={props:s,originalProps:a({},s)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(o){}return this._store.validated=!1,c?void Object.freeze(this):void(this.props=s)};d.prototype={_isReactElement:!0},i(d.prototype),d.createElement=function(e,t,r){var n,i={},a=null,l=null;if(null!=t){l=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key;for(n in t)t.hasOwnProperty(n)&&!u.hasOwnProperty(n)&&(i[n]=t[n])}var c=arguments.length-2;if(1===c)i.children=r;else if(c>1){for(var p=Array(c),h=0;c>h;h++)p[h]=arguments[h+2];i.children=p}if(e&&e.defaultProps){var f=e.defaultProps;for(n in f)"undefined"==typeof i[n]&&(i[n]=f[n])}return new d(e,a,l,o.current,s.current,i)},d.createFactory=function(e){var t=d.createElement.bind(null,e);return t.type=e,t},d.cloneAndReplaceProps=function(e,t){var r=new d(e.type,e.key,e.ref,e._owner,e._context,t);return r._store.validated=e._store.validated,r},d.cloneElement=function(e,t,r){var n,i=a({},e.props),s=e.key,l=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,c=o.current),void 0!==t.key&&(s=""+t.key);for(n in t)t.hasOwnProperty(n)&&!u.hasOwnProperty(n)&&(i[n]=t[n])}var p=arguments.length-2;if(1===p)i.children=r;else if(p>1){for(var h=Array(p),f=0;p>f;f++)h[f]=arguments[f+2];i.children=h}return new d(e.type,s,l,c,e._context,i)},d.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},e.exports=d},function(e,t,r){"use strict";var n=r(15),i=n;i=function(e,t){for(var r=[],n=2,i=arguments.length;i>n;n++)r.push(arguments[n]);if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(0!==t.indexOf("Failed Composite propType: ")&&!e){var s=0,o="Warning: "+t.replace(/%s/g,function(){return r[s++]});console.warn(o);try{throw new Error(o)}catch(a){}}},e.exports=i},function(e,t,r){function n(e){return function(){return e}}function i(){}i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,r){"use strict";var n=r(17),i=r(18),s=r(14),o=!1,a={current:i,withContext:function(e,t){s(o,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."),o=!0;var r,i=a.current;a.current=n({},i,e);try{r=t()}finally{a.current=i}return r}};e.exports=a},function(e,t,r){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var r=Object(e),n=Object.prototype.hasOwnProperty,i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s){var o=Object(s);for(var a in o)n.call(o,a)&&(r[a]=o[a])}}return r}e.exports=n},function(e,t,r){"use strict";var n={};Object.freeze(n),e.exports=n},function(e,t,r){"use strict";var n={current:null};e.exports=n},function(e,t,r){"use strict";function n(e){return function(t,r,n){t.hasOwnProperty(r)?t[r]=e(t[r],n):t[r]=n}}function i(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=u[r];n&&u.hasOwnProperty(r)?n(e,r,t[r]):e.hasOwnProperty(r)||(e[r]=t[r])}return e}var s=r(17),o=r(15),a=r(21),l=n(function(e,t){return s({},t,e)}),u={children:o,className:n(a),style:l},c={mergeProps:function(e,t){return i(s({},e),t)}};e.exports=c},function(e,t,r){"use strict";function n(e){e||(e="");var t,r=arguments.length;if(r>1)for(var n=1;r>n;n++)t=arguments[n],t&&(e=(e?e+" ":"")+t);return e}e.exports=n},function(e,t,r){var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,r){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=Object.assign||function(e,t){for(var r,i,s=n(e),o=1;o<arguments.length;o++){r=arguments[o],i=Object.keys(Object(r));for(var a=0;a<i.length;a++)s[i[a]]=r[i[a]]}return s}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=n(i),o=r(10),a=n(o),l=function(e){var t;return t=Math.ceil(e.slideCount/e.slidesToScroll)},u=s["default"].createClass({displayName:"Dots",clickHandler:function(e,t){t.preventDefault(),this.props.clickHandler(e)},render:function(){var e=this,t=l({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll}),r=Array.apply(null,{length:t}).map(function(t,r){var n=a["default"]({"slick-active":e.props.currentSlide===r*e.props.slidesToScroll}),i={message:"dots",index:r,slidesToScroll:e.props.slidesToScroll,currentSlide:e.props.currentSlide};return s["default"].createElement("li",{key:r,className:n},s["default"].createElement("button",{onClick:e.clickHandler.bind(e,i)},r))});return s["default"].createElement("ul",{className:this.props.dotsClass,style:{display:"block"}},r)}});t.Dots=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s=r(4),o=n(s),a=r(10),l=n(a),u=o["default"].createClass({displayName:"PrevArrow",clickHandler:function(e,t){t.preventDefault(),this.props.clickHandler(e,t)},render:function(){var e={"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r,n={key:"0",ref:"previous","data-role":"none",className:l["default"](e),style:{display:"block"},onClick:t};return r=this.props.prevArrow?o["default"].createElement(this.props.prevArrow,n):o["default"].createElement("button",i({key:"0",type:"button"},n)," Previous")}});t.PrevArrow=u;var c=o["default"].createClass({displayName:"NextArrow",clickHandler:function(e,t){t.preventDefault(),this.props.clickHandler(e,t)},render:function(){var e={"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});this.props.infinite||(this.props.centerMode&&this.props.currentSlide>=this.props.slideCount-1?(e["slick-disabled"]=!0,t=null):this.props.currentSlide>=this.props.slideCount-this.props.slidesToShow&&(e["slick-disabled"]=!0,t=null),this.props.slideCount<=this.props.slidesToShow&&(e["slick-disabled"]=!0,t=null));var r,n={key:"1",ref:"next","data-role":"none",className:l["default"](e),style:{display:"block"},onClick:t};return r=this.props.nextArrow?o["default"].createElement(this.props.nextArrow,n):o["default"].createElement("button",i({key:"1",type:"button"},n)," Next")}});t.NextArrow=c},function(e,t,r){var n=r(27),i=n&&r(28),s=r(2),o={media:function(e,t){e=s(e),"function"==typeof t&&(t={match:t}),i.register(e,t),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:e,handler:t})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(e){i.unregister(e.query,e.handler)})}};e.exports=o},function(e,t,r){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=n},function(e,t,r){var n;!function(i,s,o){var a=window.matchMedia;"undefined"!=typeof e&&e.exports?e.exports=o(a):(n=function(){return s[i]=o(a)}.call(t,r,t,e),!(void 0!==n&&(e.exports=n)))}("enquire",this,function(e){"use strict";function t(e,t){var r,n=0,i=e.length;for(n;i>n&&(r=t(e[n],n),r!==!1);n++);}function r(e){return"[object Array]"===Object.prototype.toString.apply(e)}function n(e){return"function"==typeof e}function i(e){this.options=e,!e.deferSetup&&this.setup()}function s(t,r){this.query=t,this.isUnconditional=r,this.handlers=[],this.mql=e(t);var n=this;this.listener=function(e){n.mql=e,n.assess()},this.mql.addListener(this.listener)}function o(){if(!e)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!e("only all").matches}return i.prototype={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}},s.prototype={addHandler:function(e){var t=new i(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var r=this.handlers;t(r,function(t,n){return t.equals(e)?(t.destroy(),!r.splice(n,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},o.prototype={register:function(e,i,o){var a=this.queries,l=o&&this.browserIsIncapable;return a[e]||(a[e]=new s(e,l)),n(i)&&(i={match:i}),r(i)||(i=[i]),t(i,function(t){a[e].addHandler(t)}),this},unregister:function(e,t){var r=this.queries[e];return r&&(t?r.removeHandler(t):(r.clear(),delete this.queries[e])),this}},new o})}])});
function s(){"use strict";for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];if(i){var n=typeof i;if("string"===n||"number"===n)t+=" "+i;else if(Array.isArray(i))t+=" "+s.apply(null,i);else if("object"===n)for(var r in i)i.hasOwnProperty(r)&&i[r]&&(t+=" "+r)}}return t.substr(1)}var n,r;"undefined"!=typeof t&&t.exports&&(t.exports=s),n=[],r=function(){return s}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(4),r=s(n),o=i(16),a=s(o),l=i(8),d=s(l),u=i(14),c=s(u),h=function(t){var e,i,s,n,r;return t.rtl?(r=t.slideCount-1-t.index,console.log()):r=t.index,s=0>r||r>=t.slideCount,t.centerMode?(n=Math.floor(t.slidesToShow/2),i=t.currentSlide===r,r>t.currentSlide-n-1&&r<=t.currentSlide+n&&(e=!0)):e=t.currentSlide<=r&&r<t.currentSlide+t.slidesToShow,c["default"]({"slick-slide":!0,"slick-active":e,"slick-center":i,"slick-cloned":s})},p=function(t){var e={};return(void 0===t.variableWidth||t.variableWidth===!1)&&(e.width=t.slideWidth),t.fade&&(e.position="relative",e.left=-t.index*t.slideWidth,e.opacity=t.currentSlide===t.index?1:0,e.transition="opacity "+t.speed+"ms "+t.cssEase,e.WebkitTransition="opacity "+t.speed+"ms "+t.cssEase),e},f=function(t){var e,i,s=[],n=[],o=[],l=r["default"].Children.count(t.children);return r["default"].Children.forEach(t.children,function(u,c){i=!t.lazyLoad|(t.lazyLoad&&t.lazyLoadedList.indexOf(c)>=0)?u:r["default"].createElement("div",null);var f=p(d["default"]({},t,{index:c}));if(s.push(a["default"](i,{key:c,"data-index":c,className:h(d["default"]({index:c},t)),style:f})),t.infinite&&t.fade===!1){var v=t.variableWidth?t.slidesToShow+1:t.slidesToShow;c>=l-v&&(e=-(l-c),n.push(a["default"](i,{key:e,"data-index":e,className:h(d["default"]({index:e},t)),style:f}))),v>c&&(e=l+c,o.push(a["default"](i,{key:e,"data-index":e,className:h(d["default"]({index:e},t)),style:f})))}}),t.rtl?n.concat(s,o).reverse():n.concat(s,o)},v=r["default"].createClass({displayName:"Track",render:function(){var t=f(this.props);return r["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},t)}});e.Track=v},function(t,e,i){"use strict";function s(t,e){a(!t.ref,"You are calling cloneWithProps() on a child with a ref. This is dangerous because you're creating a new child which will not be added as a ref to its parent.");var i=r.mergeProps(e,t.props);return!i.hasOwnProperty(l)&&t.props.hasOwnProperty(l)&&(i.children=t.props.children),n.createElement(t.type,i)}var n=i(17),r=i(24),o=i(26),a=i(18),l=o({children:null});t.exports=s},function(t,e,i){"use strict";function s(t,e){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[e]:null},set:function(t){l(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",e),this._store[e]=t}})}function n(t){try{var e={props:!0};for(var i in e)s(t,i);u=!0}catch(n){}}var r=i(20),o=i(23),a=i(21),l=i(18),d={key:!0,ref:!0},u=!1,c=function(t,e,i,s,n,r){this.type=t,this.key=e,this.ref=i,this._owner=s,this._context=n,this._store={props:r,originalProps:a({},r)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(o){}return this._store.validated=!1,u?void Object.freeze(this):void(this.props=r)};c.prototype={_isReactElement:!0},n(c.prototype),c.createElement=function(t,e,i){var s,n={},a=null,l=null;if(null!=e){l=void 0===e.ref?null:e.ref,a=void 0===e.key?null:""+e.key;for(s in e)e.hasOwnProperty(s)&&!d.hasOwnProperty(s)&&(n[s]=e[s])}var u=arguments.length-2;if(1===u)n.children=i;else if(u>1){for(var h=Array(u),p=0;u>p;p++)h[p]=arguments[p+2];n.children=h}if(t&&t.defaultProps){var f=t.defaultProps;for(s in f)"undefined"==typeof n[s]&&(n[s]=f[s])}return new c(t,a,l,o.current,r.current,n)},c.createFactory=function(t){var e=c.createElement.bind(null,t);return e.type=t,e},c.cloneAndReplaceProps=function(t,e){var i=new c(t.type,t.key,t.ref,t._owner,t._context,e);return i._store.validated=t._store.validated,i},c.cloneElement=function(t,e,i){var s,n=a({},t.props),r=t.key,l=t.ref,u=t._owner;if(null!=e){void 0!==e.ref&&(l=e.ref,u=o.current),void 0!==e.key&&(r=""+e.key);for(s in e)e.hasOwnProperty(s)&&!d.hasOwnProperty(s)&&(n[s]=e[s])}var h=arguments.length-2;if(1===h)n.children=i;else if(h>1){for(var p=Array(h),f=0;h>f;f++)p[f]=arguments[f+2];n.children=p}return new c(t.type,r,l,u,t._context,n)},c.isValidElement=function(t){var e=!(!t||!t._isReactElement);return e},t.exports=c},function(t,e,i){"use strict";var s=i(19),n=s;n=function(t,e){for(var i=[],s=2,n=arguments.length;n>s;s++)i.push(arguments[s]);if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(0!==e.indexOf("Failed Composite propType: ")&&!t){var r=0,o="Warning: "+e.replace(/%s/g,function(){return i[r++]});console.warn(o);try{throw new Error(o)}catch(a){}}},t.exports=n},function(t,e,i){function s(t){return function(){return t}}function n(){}n.thatReturns=s,n.thatReturnsFalse=s(!1),n.thatReturnsTrue=s(!0),n.thatReturnsNull=s(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,i){"use strict";var s=i(21),n=i(22),r=i(18),o=!1,a={current:n,withContext:function(t,e){r(o,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."),o=!0;var i,n=a.current;a.current=s({},n,t);try{i=e()}finally{a.current=n}return i}};t.exports=a},function(t,e,i){"use strict";function s(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var i=Object(t),s=Object.prototype.hasOwnProperty,n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){var o=Object(r);for(var a in o)s.call(o,a)&&(i[a]=o[a])}}return i}t.exports=s},function(t,e,i){"use strict";var s={};Object.freeze(s),t.exports=s},function(t,e,i){"use strict";var s={current:null};t.exports=s},function(t,e,i){"use strict";function s(t){return function(e,i,s){e.hasOwnProperty(i)?e[i]=t(e[i],s):e[i]=s}}function n(t,e){for(var i in e)if(e.hasOwnProperty(i)){var s=d[i];s&&d.hasOwnProperty(i)?s(t,i,e[i]):t.hasOwnProperty(i)||(t[i]=e[i])}return t}var r=i(21),o=i(19),a=i(25),l=s(function(t,e){return r({},e,t)}),d={children:o,className:s(a),style:l},u={mergeProps:function(t,e){return n(r({},t),e)}};t.exports=u},function(t,e,i){"use strict";function s(t){t||(t="");var e,i=arguments.length;if(i>1)for(var s=1;i>s;s++)e=arguments[s],e&&(t=(t?t+" ":"")+e);return t}t.exports=s},function(t,e,i){var s=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=s},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(4),r=s(n),o=i(14),a=s(o),l=function(t){var e;return e=Math.ceil(t.slideCount/t.slidesToScroll)},d=r["default"].createClass({displayName:"Dots",clickHandler:function(t,e){e.preventDefault(),this.props.clickHandler(t)},render:function(){var t=this,e=l({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll}),i=Array.apply(null,{length:e}).map(function(e,i){var s=a["default"]({"slick-active":t.props.currentSlide===i*t.props.slidesToScroll}),n={message:"dots",index:i,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide};return r["default"].createElement("li",{key:i,className:s},r["default"].createElement("button",{onClick:t.clickHandler.bind(t,n)},i))});return r["default"].createElement("ul",{className:this.props.dotsClass,style:{display:"block"}},i)}});e.Dots=d},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},r=i(4),o=s(r),a=i(14),l=s(a),d=o["default"].createClass({displayName:"PrevArrow",clickHandler:function(t,e){e.preventDefault(),this.props.clickHandler(t,e)},render:function(){var t={"slick-prev":!0},e=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,e=null);var i,s={key:"0",ref:"previous","data-role":"none",className:l["default"](t),style:{display:"block"},onClick:e};return i=this.props.prevArrow?o["default"].createElement(this.props.prevArrow,s):o["default"].createElement("button",n({key:"0",type:"button"},s)," Previous")}});e.PrevArrow=d;var u=o["default"].createClass({displayName:"NextArrow",clickHandler:function(t,e){e.preventDefault(),this.props.clickHandler(t,e)},render:function(){var t={"slick-next":!0},e=this.clickHandler.bind(this,{message:"next"});this.props.infinite||(this.props.centerMode&&this.props.currentSlide>=this.props.slideCount-1?(t["slick-disabled"]=!0,e=null):this.props.currentSlide>=this.props.slideCount-this.props.slidesToShow&&(t["slick-disabled"]=!0,e=null),this.props.slideCount<=this.props.slidesToShow&&(t["slick-disabled"]=!0,e=null));var i,s={key:"1",ref:"next","data-role":"none",className:l["default"](t),style:{display:"block"},onClick:e};return i=this.props.nextArrow?o["default"].createElement(this.props.nextArrow,s):o["default"].createElement("button",n({key:"1",type:"button"},s)," Next")}});e.NextArrow=u},function(t,e,i){var s=i(30),n=s&&i(31),r=i(2),o={media:function(t,e){t=r(t),"function"==typeof e&&(e={match:e}),n.register(t,e),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:t,handler:e})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(t){n.unregister(t.query,t.handler)})}};t.exports=o},function(t,e,i){var s=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=s},function(t,e,i){var s;!function(n,r,o){var a=window.matchMedia;"undefined"!=typeof t&&t.exports?t.exports=o(a):(s=function(){return r[n]=o(a)}.call(e,i,e,t),!(void 0!==s&&(t.exports=s)))}("enquire",this,function(t){"use strict";function e(t,e){var i,s=0,n=t.length;for(s;n>s&&(i=e(t[s],s),i!==!1);s++);}function i(t){return"[object Array]"===Object.prototype.toString.apply(t)}function s(t){return"function"==typeof t}function n(t){this.options=t,!t.deferSetup&&this.setup()}function r(e,i){this.query=e,this.isUnconditional=i,this.handlers=[],this.mql=t(e);var s=this;this.listener=function(t){s.mql=t,s.assess()},this.mql.addListener(this.listener)}function o(){if(!t)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!t("only all").matches}return n.prototype={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(t){return this.options===t||this.options.match===t}},r.prototype={addHandler:function(t){var e=new n(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var i=this.handlers;e(i,function(e,s){return e.equals(t)?(e.destroy(),!i.splice(s,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){e(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";e(this.handlers,function(e){e[t]()})}},o.prototype={register:function(t,n,o){var a=this.queries,l=o&&this.browserIsIncapable;return a[t]||(a[t]=new r(t,l)),s(n)&&(n={match:n}),i(n)||(n=[n]),e(n,function(e){a[t].addHandler(e)}),this},unregister:function(t,e){var i=this.queries[t];return i&&(e?i.removeHandler(e):(i.clear(),delete this.queries[t])),this}},new o})}])});
{
"name": "react-slick",
"version": "0.6.5",
"version": "0.6.6",
"description": " React port of slick carousel",

@@ -5,0 +5,0 @@ "main": "./lib",

Sorry, the diff of this file is too big to display

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