react-slick
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -9,4 +9,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
else | ||
root["Slider"] = factory(root["React"], root["react-dom"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_6__) { | ||
root["Slider"] = factory(root["React"], root["ReactDOM"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_7__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -76,15 +76,15 @@ /******/ // The module cache | ||
var _objectAssign = __webpack_require__(7); | ||
var _objectAssign = __webpack_require__(8); | ||
var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
var _json2mq = __webpack_require__(17); | ||
var _json2mq = __webpack_require__(18); | ||
var _json2mq2 = _interopRequireDefault(_json2mq); | ||
var _reactResponsiveMixin = __webpack_require__(19); | ||
var _reactResponsiveMixin = __webpack_require__(20); | ||
var _reactResponsiveMixin2 = _interopRequireDefault(_reactResponsiveMixin); | ||
var _defaultProps = __webpack_require__(12); | ||
var _defaultProps = __webpack_require__(13); | ||
@@ -193,23 +193,23 @@ var _defaultProps2 = _interopRequireDefault(_defaultProps); | ||
var _mixinsHelpers = __webpack_require__(8); | ||
var _mixinsHelpers = __webpack_require__(9); | ||
var _mixinsHelpers2 = _interopRequireDefault(_mixinsHelpers); | ||
var _initialState = __webpack_require__(11); | ||
var _initialState = __webpack_require__(12); | ||
var _initialState2 = _interopRequireDefault(_initialState); | ||
var _defaultProps = __webpack_require__(12); | ||
var _defaultProps = __webpack_require__(13); | ||
var _defaultProps2 = _interopRequireDefault(_defaultProps); | ||
var _classnames = __webpack_require__(13); | ||
var _classnames = __webpack_require__(14); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _track = __webpack_require__(14); | ||
var _track = __webpack_require__(15); | ||
var _dots = __webpack_require__(15); | ||
var _dots = __webpack_require__(16); | ||
var _arrows = __webpack_require__(16); | ||
var _arrows = __webpack_require__(17); | ||
@@ -374,3 +374,3 @@ var InnerSlider = _react2['default'].createClass({ | ||
var _objectAssign = __webpack_require__(7); | ||
var _objectAssign = __webpack_require__(8); | ||
@@ -539,5 +539,5 @@ var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
var _reactDom = __webpack_require__(6); | ||
var _ReactDOM = __webpack_require__(6); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var _ReactDOM2 = _interopRequireDefault(_ReactDOM); | ||
@@ -633,6 +633,6 @@ var checkSpecKeys = function checkSpecKeys(spec, keysArray) { | ||
if (spec.slideCount <= spec.slidesToShow || spec.infinite === false) { | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).childNodes[spec.slideIndex]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).childNodes[spec.slideIndex]; | ||
} else { | ||
targetSlideIndex = spec.slideIndex + spec.slidesToShow; | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).childNodes[targetSlideIndex]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).childNodes[targetSlideIndex]; | ||
} | ||
@@ -642,5 +642,5 @@ targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0; | ||
if (spec.infinite === false) { | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex]; | ||
} else { | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex + spec.slidesToShow + 1]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex + spec.slidesToShow + 1]; | ||
} | ||
@@ -659,6 +659,25 @@ | ||
/* 6 */ | ||
/***/ function(module, exports) { | ||
/***/ function(module, exports, __webpack_require__) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_6__; | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _react = __webpack_require__(2); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _reactDom = __webpack_require__(7); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var ReactDOM = _react2['default'].version >= '0.14.0' ? _reactDom2['default'] : _react2['default']; | ||
exports['default'] = ReactDOM; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
@@ -668,2 +687,8 @@ /* 7 */ | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_7__; | ||
/***/ }, | ||
/* 8 */ | ||
/***/ function(module, exports) { | ||
'use strict'; | ||
@@ -698,3 +723,3 @@ | ||
/***/ }, | ||
/* 8 */ | ||
/* 9 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -714,7 +739,7 @@ | ||
var _reactDom = __webpack_require__(6); | ||
var _ReactDOM = __webpack_require__(6); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var _ReactDOM2 = _interopRequireDefault(_ReactDOM); | ||
var _reactLibReactTransitionEvents = __webpack_require__(9); | ||
var _reactLibReactTransitionEvents = __webpack_require__(10); | ||
@@ -725,3 +750,3 @@ var _reactLibReactTransitionEvents2 = _interopRequireDefault(_reactLibReactTransitionEvents); | ||
var _objectAssign = __webpack_require__(7); | ||
var _objectAssign = __webpack_require__(8); | ||
@@ -733,5 +758,5 @@ var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
var slideCount = _react2['default'].Children.count(props.children); | ||
var listWidth = this.getWidth(this.refs.list); | ||
var trackWidth = this.getWidth(_reactDom2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_reactDom2['default'].findDOMNode(this)) / props.slidesToShow; | ||
var listWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.list)); | ||
var trackWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this)) / props.slidesToShow; | ||
@@ -746,3 +771,2 @@ var currentSlide = props.rtl ? slideCount - 1 - props.initialSlide : props.initialSlide; | ||
currentSlide: currentSlide | ||
}, function () { | ||
@@ -766,5 +790,5 @@ | ||
var slideCount = _react2['default'].Children.count(props.children); | ||
var listWidth = this.getWidth(this.refs.list); | ||
var trackWidth = this.getWidth(_reactDom2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_reactDom2['default'].findDOMNode(this)) / props.slidesToShow; | ||
var listWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.list)); | ||
var trackWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this)) / props.slidesToShow; | ||
@@ -795,3 +819,3 @@ this.setState({ | ||
if (this.refs.list) { | ||
var slickList = this.refs.list; | ||
var slickList = _ReactDOM2['default'].findDOMNode(this.refs.list); | ||
slickList.style.height = slickList.querySelector(selector).offsetHeight + 'px'; | ||
@@ -839,3 +863,3 @@ } | ||
} | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_reactDom2['default'].findDOMNode(_this.refs.track).children[currentSlide], callback); | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_ReactDOM2['default'].findDOMNode(_this.refs.track).children[currentSlide], callback); | ||
}; | ||
@@ -847,3 +871,3 @@ | ||
}, function () { | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this.refs.track).children[currentSlide], callback); | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_ReactDOM2['default'].findDOMNode(this.refs.track).children[currentSlide], callback); | ||
}); | ||
@@ -943,3 +967,3 @@ | ||
} | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_reactDom2['default'].findDOMNode(_this.refs.track), callback); | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_ReactDOM2['default'].findDOMNode(_this.refs.track), callback); | ||
}; | ||
@@ -952,3 +976,3 @@ | ||
}, function () { | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this.refs.track), callback); | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_ReactDOM2['default'].findDOMNode(this.refs.track), callback); | ||
}); | ||
@@ -1000,3 +1024,3 @@ } | ||
/***/ }, | ||
/* 9 */ | ||
/* 10 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1017,3 +1041,3 @@ | ||
var ExecutionEnvironment = __webpack_require__(10); | ||
var ExecutionEnvironment = __webpack_require__(11); | ||
@@ -1116,3 +1140,3 @@ /** | ||
/***/ }, | ||
/* 10 */ | ||
/* 11 */ | ||
/***/ function(module, exports) { | ||
@@ -1158,3 +1182,3 @@ | ||
/***/ }, | ||
/* 11 */ | ||
/* 12 */ | ||
/***/ function(module, exports) { | ||
@@ -1209,3 +1233,3 @@ | ||
/***/ }, | ||
/* 12 */ | ||
/* 13 */ | ||
/***/ function(module, exports) { | ||
@@ -1262,3 +1286,3 @@ | ||
/***/ }, | ||
/* 13 */ | ||
/* 14 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1318,3 +1342,3 @@ | ||
/***/ }, | ||
/* 14 */ | ||
/* 15 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1334,7 +1358,7 @@ | ||
var _objectAssign = __webpack_require__(7); | ||
var _objectAssign = __webpack_require__(8); | ||
var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
var _classnames = __webpack_require__(13); | ||
var _classnames = __webpack_require__(14); | ||
@@ -1469,3 +1493,3 @@ var _classnames2 = _interopRequireDefault(_classnames); | ||
/***/ }, | ||
/* 15 */ | ||
/* 16 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1485,3 +1509,3 @@ | ||
var _classnames = __webpack_require__(13); | ||
var _classnames = __webpack_require__(14); | ||
@@ -1550,3 +1574,3 @@ var _classnames2 = _interopRequireDefault(_classnames); | ||
/***/ }, | ||
/* 16 */ | ||
/* 17 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1568,3 +1592,3 @@ | ||
var _classnames = __webpack_require__(13); | ||
var _classnames = __webpack_require__(14); | ||
@@ -1669,6 +1693,6 @@ var _classnames2 = _interopRequireDefault(_classnames); | ||
/***/ }, | ||
/* 17 */ | ||
/* 18 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
var camel2hyphen = __webpack_require__(18); | ||
var camel2hyphen = __webpack_require__(19); | ||
@@ -1726,3 +1750,3 @@ var isDimension = function (feature) { | ||
/***/ }, | ||
/* 18 */ | ||
/* 19 */ | ||
/***/ function(module, exports) { | ||
@@ -1741,8 +1765,8 @@ | ||
/***/ }, | ||
/* 19 */ | ||
/* 20 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
var canUseDOM = __webpack_require__(20); | ||
var enquire = canUseDOM && __webpack_require__(21); | ||
var json2mq = __webpack_require__(17); | ||
var canUseDOM = __webpack_require__(21); | ||
var enquire = canUseDOM && __webpack_require__(22); | ||
var json2mq = __webpack_require__(18); | ||
@@ -1777,3 +1801,3 @@ var ResponsiveMixin = { | ||
/***/ }, | ||
/* 20 */ | ||
/* 21 */ | ||
/***/ function(module, exports) { | ||
@@ -1790,3 +1814,3 @@ | ||
/***/ }, | ||
/* 21 */ | ||
/* 22 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1793,0 +1817,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t["react-dom"])}(this,function(t,e){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(2),r=s(n),o=i(3),a=i(7),l=s(a),d=i(17),u=s(d),c=i(19),h=s(c),p=i(12),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(e,i){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(2),o=s(r),a=i(4),l=s(a),d=i(8),u=s(d),c=i(11),h=s(c),p=i(12),f=s(p),v=i(13),S=s(v),m=i(14),w=i(15),g=i(16),y=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?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},componentWillUnmount:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.state.autoPlayTimer&&window.clearTimeout(this.state.autoPlayTimer)},componentWillReceiveProps:function(t){this.props.slickGoTo!=t.slickGoTo&&this.setState({currentSlide:t.slickGoTo}),this.update(t)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.update(this.props)},render:function(){var t,e=S["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(w.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(g.PrevArrow,l),a=o["default"].createElement(g.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(m.Track,n({ref:"track"},i),this.props.children)),r,a,t)}});e.InnerSlider=y},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(5),r=i(7),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";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),r=s(n),o=function(t,e){return e.reduce(function(e,i){return e&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",t)},a=function(t){o(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!window.addEventListener&&window.attachEvent&&(i.marginLeft=t.left+"px"),i};e.getTrackCSS=a;var l=function(t){o(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var e=a(t);return e.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,e.transition="transform "+t.speed+"ms "+t.cssEase,e};e.getTrackAnimateCSS=l;var d=function(t){o(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth"]);var e,i,s=0;if(t.fade)return 0;if(t.infinite&&(t.slideCount>t.slidesToShow&&(s=t.slideWidth*t.slidesToShow*-1),t.slideCount%t.slidesToScroll!==0&&t.slideIndex+t.slidesToScroll>t.slideCount&&t.slideCount>t.slidesToShow&&(s=t.slideIndex>t.slideCount?(t.slidesToShow-(t.slideIndex-t.slideCount))*t.slideWidth*-1:t.slideCount%t.slidesToScroll*t.slideWidth*-1)),t.centerMode&&(t.infinite?s+=t.slideWidth*Math.floor(t.slidesToShow/2):s=t.slideWidth*Math.floor(t.slidesToShow/2)),e=t.slideIndex*t.slideWidth*-1+s,t.variableWidth===!0){var n;t.slideCount<=t.slidesToShow||t.infinite===!1?i=r["default"].findDOMNode(t.trackRef).childNodes[t.slideIndex]:(n=t.slideIndex+t.slidesToShow,i=r["default"].findDOMNode(t.trackRef).childNodes[n]),e=i?-1*i.offsetLeft:0,t.centerMode===!0&&(i=t.infinite===!1?r["default"].findDOMNode(t.trackRef).children[t.slideIndex]:r["default"].findDOMNode(t.trackRef).children[t.slideIndex+t.slidesToShow+1],e=i?-1*i.offsetLeft:0,e+=(t.listWidth-i.offsetWidth)/2)}return e};e.getTrackLeft=d},function(t,i){t.exports=e},function(t,e){"use strict";function i(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 s,n,r=i(t),o=1;o<arguments.length;o++){s=arguments[o],n=Object.keys(Object(s));for(var a=0;a<n.length;a++)r[n[a]]=s[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(2),r=s(n),o=i(6),a=s(o),l=i(9),d=s(l),u=i(5),c=i(7),h=s(c),p={initialize:function(t){var e=r["default"].Children.count(t.children),i=this.getWidth(this.refs.list),s=this.getWidth(a["default"].findDOMNode(this.refs.track)),n=this.getWidth(a["default"].findDOMNode(this))/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=u.getTrackLeft(h["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},t,this.state)),i=u.getTrackCSS(h["default"]({left:e},t,this.state));this.setState({trackStyle:i}),this.autoPlay()})},update:function(t){var e=r["default"].Children.count(t.children),i=this.getWidth(this.refs.list),s=this.getWidth(a["default"].findDOMNode(this.refs.track)),n=this.getWidth(a["default"].findDOMNode(this))/t.slidesToShow;this.setState({slideCount:e,slideWidth:n,listWidth:i,trackWidth:s},function(){var e=u.getTrackLeft(h["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},t,this.state)),i=u.getTrackCSS(h["default"]({left:e},t,this.state));this.setState({trackStyle:i})})},getWidth:function(t){return t.getBoundingClientRect().width||t.offsetWidth},adaptHeight:function(){if(this.props.adaptiveHeight){var t='[data-index="'+this.state.currentSlide+'"]';if(this.refs.list){var e=this.refs.list;e.style.height=e.querySelector(t).offsetHeight+"px"}}},slideHandler:function(t){var e,i,s,n,r,o=this;if(this.state.currentSlide!==t){if(this.props.fade)return i=this.state.currentSlide,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),d["default"].removeEndEventListener(a["default"].findDOMNode(o.refs.track).children[i],r)},this.setState({animating:!0,currentSlide:e},function(){d["default"].addEndEventListener(a["default"].findDOMNode(this.refs.track).children[i],r)}),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),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=u.getTrackLeft(h["default"]({slideIndex:e,trackRef:this.refs.track},this.props,this.state)),n=u.getTrackLeft(h["default"]({slideIndex:i,trackRef:this.refs.track},this.props,this.state)),this.props.infinite===!1&&(s=n),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),this.props.lazyLoad){for(var l=!0,c=[],p=e;p<e+this.props.slidesToShow;p++)l=l&&this.state.lazyLoadedList.indexOf(p)>=0,l||c.push(p);l||this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(c)})}if(this.props.useCSS===!1)this.setState({currentSlide:i,trackStyle:u.getTrackCSS(h["default"]({left:n},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)});else{var f={animating:!1,currentSlide:i,trackStyle:u.getTrackCSS(h["default"]({left:n},this.props,this.state)),swipeLeft:null};r=function(){o.setState(f),o.props.afterChange&&o.props.afterChange(i),d["default"].removeEndEventListener(a["default"].findDOMNode(o.refs.track),r)},this.setState({animating:!0,currentSlide:e,trackStyle:u.getTrackAnimateCSS(h["default"]({left:s},this.props,this.state))},function(){d["default"].addEndEventListener(a["default"].findDOMNode(this.refs.track),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"]=p,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(10),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){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),s={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=s},function(t,e){"use strict";var i={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=i},function(t,e){"use strict";var i={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=i},function(t,e,i){var s;/*! | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,e){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(2),r=s(n),o=i(3),a=i(8),l=s(a),d=i(18),u=s(d),c=i(20),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(e,i){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(2),o=s(r),a=i(4),l=s(a),d=i(9),u=s(d),c=i(12),h=s(c),p=i(13),f=s(p),v=i(14),S=s(v),m=i(15),w=i(16),g=i(17),y=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?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},componentWillUnmount:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.state.autoPlayTimer&&window.clearTimeout(this.state.autoPlayTimer)},componentWillReceiveProps:function(t){this.props.slickGoTo!=t.slickGoTo&&this.setState({currentSlide:t.slickGoTo}),this.update(t)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.update(this.props)},render:function(){var t,e=S["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(w.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(g.PrevArrow,l),a=o["default"].createElement(g.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(m.Track,n({ref:"track"},i),this.props.children)),r,a,t)}});e.InnerSlider=y},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(5),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";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),r=s(n),o=function(t,e){return e.reduce(function(e,i){return e&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",t)},a=function(t){o(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!window.addEventListener&&window.attachEvent&&(i.marginLeft=t.left+"px"),i};e.getTrackCSS=a;var l=function(t){o(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var e=a(t);return e.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,e.transition="transform "+t.speed+"ms "+t.cssEase,e};e.getTrackAnimateCSS=l;var d=function(t){o(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth"]);var e,i,s=0;if(t.fade)return 0;if(t.infinite&&(t.slideCount>t.slidesToShow&&(s=t.slideWidth*t.slidesToShow*-1),t.slideCount%t.slidesToScroll!==0&&t.slideIndex+t.slidesToScroll>t.slideCount&&t.slideCount>t.slidesToShow&&(s=t.slideIndex>t.slideCount?(t.slidesToShow-(t.slideIndex-t.slideCount))*t.slideWidth*-1:t.slideCount%t.slidesToScroll*t.slideWidth*-1)),t.centerMode&&(t.infinite?s+=t.slideWidth*Math.floor(t.slidesToShow/2):s=t.slideWidth*Math.floor(t.slidesToShow/2)),e=t.slideIndex*t.slideWidth*-1+s,t.variableWidth===!0){var n;t.slideCount<=t.slidesToShow||t.infinite===!1?i=r["default"].findDOMNode(t.trackRef).childNodes[t.slideIndex]:(n=t.slideIndex+t.slidesToShow,i=r["default"].findDOMNode(t.trackRef).childNodes[n]),e=i?-1*i.offsetLeft:0,t.centerMode===!0&&(i=t.infinite===!1?r["default"].findDOMNode(t.trackRef).children[t.slideIndex]:r["default"].findDOMNode(t.trackRef).children[t.slideIndex+t.slidesToShow+1],e=i?-1*i.offsetLeft:0,e+=(t.listWidth-i.offsetWidth)/2)}return e};e.getTrackLeft=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=i(2),r=s(n),o=i(7),a=s(o),l=r["default"].version>="0.14.0"?a["default"]:r["default"];e["default"]=l,t.exports=e["default"]},function(t,i){t.exports=e},function(t,e){"use strict";function i(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 s,n,r=i(t),o=1;o<arguments.length;o++){s=arguments[o],n=Object.keys(Object(s));for(var a=0;a<n.length;a++)r[n[a]]=s[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(2),r=s(n),o=i(6),a=s(o),l=i(10),d=s(l),u=i(5),c=i(8),h=s(c),p={initialize:function(t){var e=r["default"].Children.count(t.children),i=this.getWidth(a["default"].findDOMNode(this.refs.list)),s=this.getWidth(a["default"].findDOMNode(this.refs.track)),n=this.getWidth(a["default"].findDOMNode(this))/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=u.getTrackLeft(h["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},t,this.state)),i=u.getTrackCSS(h["default"]({left:e},t,this.state));this.setState({trackStyle:i}),this.autoPlay()})},update:function(t){var e=r["default"].Children.count(t.children),i=this.getWidth(a["default"].findDOMNode(this.refs.list)),s=this.getWidth(a["default"].findDOMNode(this.refs.track)),n=this.getWidth(a["default"].findDOMNode(this))/t.slidesToShow;this.setState({slideCount:e,slideWidth:n,listWidth:i,trackWidth:s},function(){var e=u.getTrackLeft(h["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},t,this.state)),i=u.getTrackCSS(h["default"]({left:e},t,this.state));this.setState({trackStyle:i})})},getWidth:function(t){return t.getBoundingClientRect().width||t.offsetWidth},adaptHeight:function(){if(this.props.adaptiveHeight){var t='[data-index="'+this.state.currentSlide+'"]';if(this.refs.list){var e=a["default"].findDOMNode(this.refs.list);e.style.height=e.querySelector(t).offsetHeight+"px"}}},slideHandler:function(t){var e,i,s,n,r,o=this;if(this.state.currentSlide!==t){if(this.props.fade)return i=this.state.currentSlide,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),d["default"].removeEndEventListener(a["default"].findDOMNode(o.refs.track).children[i],r)},this.setState({animating:!0,currentSlide:e},function(){d["default"].addEndEventListener(a["default"].findDOMNode(this.refs.track).children[i],r)}),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),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=u.getTrackLeft(h["default"]({slideIndex:e,trackRef:this.refs.track},this.props,this.state)),n=u.getTrackLeft(h["default"]({slideIndex:i,trackRef:this.refs.track},this.props,this.state)),this.props.infinite===!1&&(s=n),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),this.props.lazyLoad){for(var l=!0,c=[],p=e;p<e+this.props.slidesToShow;p++)l=l&&this.state.lazyLoadedList.indexOf(p)>=0,l||c.push(p);l||this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(c)})}if(this.props.useCSS===!1)this.setState({currentSlide:i,trackStyle:u.getTrackCSS(h["default"]({left:n},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)});else{var f={animating:!1,currentSlide:i,trackStyle:u.getTrackCSS(h["default"]({left:n},this.props,this.state)),swipeLeft:null};r=function(){o.setState(f),o.props.afterChange&&o.props.afterChange(i),d["default"].removeEndEventListener(a["default"].findDOMNode(o.refs.track),r)},this.setState({animating:!0,currentSlide:e,trackStyle:u.getTrackAnimateCSS(h["default"]({left:s},this.props,this.state))},function(){d["default"].addEndEventListener(a["default"].findDOMNode(this.refs.track),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"]=p,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){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),s={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=s},function(t,e){"use strict";var i={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=i},function(t,e){"use strict";var i={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=i},function(t,e,i){var s;/*! | ||
Copyright (c) 2015 Jed Watson. | ||
@@ -6,2 +6,2 @@ Licensed under the MIT License (MIT), see | ||
*/ | ||
!function(){"use strict";function n(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];if(i){var s=typeof i;if("string"===s||"number"===s)t+=" "+i;else if(Array.isArray(i))t+=" "+n.apply(null,i);else if("object"===s)for(var r in i)i.hasOwnProperty(r)&&i[r]&&(t+=" "+r)}}return t.substr(1)}"undefined"!=typeof t&&t.exports?t.exports=n:(s=function(){return n}.call(e,i,e,t),!(void 0!==s&&(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(2),r=s(n),o=i(7),a=s(o),l=i(13),d=s(l),u=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,d["default"]({"slick-slide":!0,"slick-active":e,"slick-center":i,"slick-cloned":s})},c=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},h=function(t){var e,i,s=[],n=[],o=[],l=r["default"].Children.count(t.children);return r["default"].Children.forEach(t.children,function(h,p){i=!t.lazyLoad|(t.lazyLoad&&t.lazyLoadedList.indexOf(p)>=0)?h:r["default"].createElement("div",null);var f,v=c(a["default"]({},t,{index:p})),S=u(a["default"]({index:p},t));if(f=i.props.className?d["default"](S,i.props.className):S,s.push(r["default"].cloneElement(i,{key:p,"data-index":p,className:f,style:a["default"]({},i.props.style||{},v)})),t.infinite&&t.fade===!1){var m=t.variableWidth?t.slidesToShow+1:t.slidesToShow;p>=l-m&&(e=-(l-p),n.push(r["default"].cloneElement(i,{key:e,"data-index":e,className:u(a["default"]({index:e},t)),style:a["default"]({},i.props.style||{},v)}))),m>p&&(e=l+p,o.push(r["default"].cloneElement(i,{key:e,"data-index":e,className:u(a["default"]({index:e},t)),style:a["default"]({},i.props.style||{},v)})))}}),t.rtl?n.concat(s,o).reverse():n.concat(s,o)},p=r["default"].createClass({displayName:"Track",render:function(){var t=h(this.props);return r["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},t)}});e.Track=p},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(2),r=s(n),o=i(13),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,Array(e+1).join("0").split("")).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(2),o=s(r),a=i(13),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(18),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){var i=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()};t.exports=i},function(t,e,i){var s=i(20),n=s&&i(21),r=i(17),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){var i=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=i},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})}])}); | ||
!function(){"use strict";function n(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];if(i){var s=typeof i;if("string"===s||"number"===s)t+=" "+i;else if(Array.isArray(i))t+=" "+n.apply(null,i);else if("object"===s)for(var r in i)i.hasOwnProperty(r)&&i[r]&&(t+=" "+r)}}return t.substr(1)}"undefined"!=typeof t&&t.exports?t.exports=n:(s=function(){return n}.call(e,i,e,t),!(void 0!==s&&(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(2),r=s(n),o=i(8),a=s(o),l=i(14),d=s(l),u=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,d["default"]({"slick-slide":!0,"slick-active":e,"slick-center":i,"slick-cloned":s})},c=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},h=function(t){var e,i,s=[],n=[],o=[],l=r["default"].Children.count(t.children);return r["default"].Children.forEach(t.children,function(h,p){i=!t.lazyLoad|(t.lazyLoad&&t.lazyLoadedList.indexOf(p)>=0)?h:r["default"].createElement("div",null);var f,v=c(a["default"]({},t,{index:p})),S=u(a["default"]({index:p},t));if(f=i.props.className?d["default"](S,i.props.className):S,s.push(r["default"].cloneElement(i,{key:p,"data-index":p,className:f,style:a["default"]({},i.props.style||{},v)})),t.infinite&&t.fade===!1){var m=t.variableWidth?t.slidesToShow+1:t.slidesToShow;p>=l-m&&(e=-(l-p),n.push(r["default"].cloneElement(i,{key:e,"data-index":e,className:u(a["default"]({index:e},t)),style:a["default"]({},i.props.style||{},v)}))),m>p&&(e=l+p,o.push(r["default"].cloneElement(i,{key:e,"data-index":e,className:u(a["default"]({index:e},t)),style:a["default"]({},i.props.style||{},v)})))}}),t.rtl?n.concat(s,o).reverse():n.concat(s,o)},p=r["default"].createClass({displayName:"Track",render:function(){var t=h(this.props);return r["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},t)}});e.Track=p},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(2),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,Array(e+1).join("0").split("")).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(2),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(19),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){var i=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()};t.exports=i},function(t,e,i){var s=i(21),n=s&&i(22),r=i(18),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){var i=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=i},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})}])}); |
'use strict'; | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var ReactDOM = require('../src/mixins/ReactDOM'); | ||
var Docs = require('./docs'); | ||
@@ -6,0 +6,0 @@ |
@@ -13,5 +13,5 @@ 'use strict'; | ||
var _reactDom = require('react-dom'); | ||
var _ReactDOM = require('./ReactDOM'); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var _ReactDOM2 = _interopRequireDefault(_ReactDOM); | ||
@@ -31,5 +31,5 @@ var _reactLibReactTransitionEvents = require('react/lib/ReactTransitionEvents'); | ||
var slideCount = _react2['default'].Children.count(props.children); | ||
var listWidth = this.getWidth(this.refs.list); | ||
var trackWidth = this.getWidth(_reactDom2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_reactDom2['default'].findDOMNode(this)) / props.slidesToShow; | ||
var listWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.list)); | ||
var trackWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this)) / props.slidesToShow; | ||
@@ -44,3 +44,2 @@ var currentSlide = props.rtl ? slideCount - 1 - props.initialSlide : props.initialSlide; | ||
currentSlide: currentSlide | ||
}, function () { | ||
@@ -64,5 +63,5 @@ | ||
var slideCount = _react2['default'].Children.count(props.children); | ||
var listWidth = this.getWidth(this.refs.list); | ||
var trackWidth = this.getWidth(_reactDom2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_reactDom2['default'].findDOMNode(this)) / props.slidesToShow; | ||
var listWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.list)); | ||
var trackWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this.refs.track)); | ||
var slideWidth = this.getWidth(_ReactDOM2['default'].findDOMNode(this)) / props.slidesToShow; | ||
@@ -93,3 +92,3 @@ this.setState({ | ||
if (this.refs.list) { | ||
var slickList = this.refs.list; | ||
var slickList = _ReactDOM2['default'].findDOMNode(this.refs.list); | ||
slickList.style.height = slickList.querySelector(selector).offsetHeight + 'px'; | ||
@@ -137,3 +136,3 @@ } | ||
} | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_reactDom2['default'].findDOMNode(_this.refs.track).children[currentSlide], callback); | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_ReactDOM2['default'].findDOMNode(_this.refs.track).children[currentSlide], callback); | ||
}; | ||
@@ -145,3 +144,3 @@ | ||
}, function () { | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this.refs.track).children[currentSlide], callback); | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_ReactDOM2['default'].findDOMNode(this.refs.track).children[currentSlide], callback); | ||
}); | ||
@@ -241,3 +240,3 @@ | ||
} | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_reactDom2['default'].findDOMNode(_this.refs.track), callback); | ||
_reactLibReactTransitionEvents2['default'].removeEndEventListener(_ReactDOM2['default'].findDOMNode(_this.refs.track), callback); | ||
}; | ||
@@ -250,3 +249,3 @@ | ||
}, function () { | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this.refs.track), callback); | ||
_reactLibReactTransitionEvents2['default'].addEndEventListener(_ReactDOM2['default'].findDOMNode(this.refs.track), callback); | ||
}); | ||
@@ -253,0 +252,0 @@ } |
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _reactDom = require('react-dom'); | ||
var _ReactDOM = require('./ReactDOM'); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var _ReactDOM2 = _interopRequireDefault(_ReactDOM); | ||
@@ -102,6 +102,6 @@ var checkSpecKeys = function checkSpecKeys(spec, keysArray) { | ||
if (spec.slideCount <= spec.slidesToShow || spec.infinite === false) { | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).childNodes[spec.slideIndex]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).childNodes[spec.slideIndex]; | ||
} else { | ||
targetSlideIndex = spec.slideIndex + spec.slidesToShow; | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).childNodes[targetSlideIndex]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).childNodes[targetSlideIndex]; | ||
} | ||
@@ -111,5 +111,5 @@ targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0; | ||
if (spec.infinite === false) { | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex]; | ||
} else { | ||
targetSlide = _reactDom2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex + spec.slidesToShow + 1]; | ||
targetSlide = _ReactDOM2['default'].findDOMNode(spec.trackRef).children[spec.slideIndex + spec.slidesToShow + 1]; | ||
} | ||
@@ -116,0 +116,0 @@ |
{ | ||
"name": "react-slick", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": " React port of slick carousel", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
'use strict'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import ReactDOM from './ReactDOM'; | ||
import ReactTransitionEvents from 'react/lib/ReactTransitionEvents'; | ||
@@ -12,3 +12,3 @@ import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; | ||
var slideCount = React.Children.count(props.children); | ||
var listWidth = this.getWidth(this.refs.list); | ||
var listWidth = this.getWidth(ReactDOM.findDOMNode(this.refs.list)); | ||
var trackWidth = this.getWidth(ReactDOM.findDOMNode(this.refs.track)); | ||
@@ -25,3 +25,2 @@ var slideWidth = this.getWidth(ReactDOM.findDOMNode(this))/props.slidesToShow; | ||
currentSlide: currentSlide | ||
}, function () { | ||
@@ -45,3 +44,3 @@ | ||
var slideCount = React.Children.count(props.children); | ||
var listWidth = this.getWidth(this.refs.list); | ||
var listWidth = this.getWidth(ReactDOM.findDOMNode(this.refs.list)); | ||
var trackWidth = this.getWidth(ReactDOM.findDOMNode(this.refs.track)); | ||
@@ -74,3 +73,3 @@ var slideWidth = this.getWidth(ReactDOM.findDOMNode(this))/props.slidesToShow; | ||
if (this.refs.list) { | ||
var slickList = this.refs.list; | ||
var slickList = ReactDOM.findDOMNode(this.refs.list); | ||
slickList.style.height = slickList.querySelector(selector).offsetHeight + 'px'; | ||
@@ -77,0 +76,0 @@ } |
'use strict'; | ||
import ReactDOM from 'react-dom'; | ||
import ReactDOM from './ReactDOM'; | ||
@@ -4,0 +4,0 @@ var checkSpecKeys = function (spec, keysArray) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
259877
44
4233
0