!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.zCarousel=t():e.zCarousel=t()}(window,function(){return(n={},e.m=t=[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(1);var r=n(6);t.default=r.zCarousel},function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]);n(4)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,'.z-carousel-wrapper .z-carousel>ul{margin:0;padding:0;list-style:none}.z-carousel-wrapper .z-carousel-pagination a{display:inline-block;opacity:.3;width:14px;font-size:14px;font-weight:400;line-height:14px;margin:3px!important;color:inherit}.z-carousel-wrapper .z-carousel-pagination a.selected{opacity:.5}.z-carousel-wrapper .z-carousel-pagination a:before{content:"\\f111";font-family:FontAwesome}',""])},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=e.items.length&&(t=0),e.showHideItems(e.items,t)}},{key:"initItems",value:function(e,t){if(e){var n=this;this.currentIndex=t,e.each(function(e){return n.enterAnimation&&n.registerAnimationEnd($(this)),e!=t?n.hideItem(e,$(this)):n.showItem(e,$(this))})}}},{key:"registerAnimationEnd",value:function(e){if(e){var t=this;e.on("animationend",function(){e.css("opacity",""),e.removeClass("animated"),e.removeClass(t.enterAnimation)})}}},{key:"showHideItems",value:function(e,t){if(e){var n=e.get(this.currentIndex);this.hideItem(this.currentIndex,$(n)),this.currentIndex=t;var r=e.get(this.currentIndex);this.showItem(this.currentIndex,$(r))}}},{key:"loadItems",value:function(){return this.jQueryCarousel?(this.items=this.jQueryCarousel.find("li"),this.items):null}},{key:"loadDatas",value:function(){this.jQueryCarousel&&(this.delay=this.jQueryCarousel.data("delay")||2e3,this.interval=this.jQueryCarousel.data("interval")||3e3,this.animateSpeed=this.jQueryCarousel.data("speed")||600,this.enterAnimation=this.jQueryCarousel.data("enterAnimation"))}},{key:"hideItem",value:function(e,t){if(t){t.css("display","none");var n=this.getPaginatorAtIndex(e);n&&n.removeClass("selected")}}},{key:"showItem",value:function(e,t){if(t){this.enterAnimation?(t.css("opacity","0"),t.css("display",""),t.addClass("animated"),t.addClass(this.enterAnimation)):t.fadeIn(this.animateSpeed);var n=this.getPaginatorAtIndex(e);n&&n.addClass("selected")}}},{key:"addPagination",value:function(){if(this.jQueryCarousel){var e=this.jQueryCarousel.parent(".z-carousel-wrapper"),t=this.createPaginators();e.append($("").append(t))}}},{key:"createPaginators",value:function(){if(this.items){var e=this;return this.items.each(function(t){var n=$("");n.click(function(n){n.preventDefault(),e.deregisterCarouselTimer(),e.showHideItems(e.items,t),e.registerCarouselTimer()}),e.paginators||(e.paginators=$()),e.paginators=e.paginators.add(n)}),e.paginators}}},{key:"getPaginatorAtIndex",value:function(e){return this.paginators?$(this.paginators.get(e)):null}}],[{key:"registerCarousels",value:function(){window.$?$(".z-carousel").each(function(){new i($(this)).registerCarousel()}):console.log("JQuery should be added before execution of this class")}}]),i)}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=0)).default;function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t,n});