vueperslides
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -369,3 +369,3 @@ (function (global, factory) { | ||
mouseOver: false, | ||
touch: { enabled: true, dragging: false, dragStartX: 0, dragAmount: 0 }, | ||
touch: { enabled: true, dragging: false, dragStartX: 0, dragNowX: 0, dragAmount: 0 }, | ||
transition: { currentTranslation: 0, speed: 0, animated: false }, | ||
@@ -650,4 +650,7 @@ timer: null, | ||
// Store current drag position in var for distance calculation in onMouseUp(). | ||
this.touch.dragNowX = this.getCurrentMouseX(e); | ||
if (this.conf.draggingDistance) { | ||
this.touch.dragAmount = this.getDragAmount(e); | ||
this.touch.dragAmount = this.touch.dragNowX - this.touch.dragStartX; | ||
var dragAmountPercentage = this.touch.dragAmount / this.container.clientWidth; | ||
@@ -658,3 +661,3 @@ | ||
} else { | ||
this.updateCurrentTranslation(null, this.getCurrentMouseX(e)); | ||
this.updateCurrentTranslation(null, this.touch.dragNowX); | ||
} | ||
@@ -673,3 +676,3 @@ } | ||
var dragPercentageStart = (this.touch.dragStartX - this.container.offsetLeft) / this.container.clientWidth; | ||
var dragPercentageNow = (this.getCurrentMouseX(e) - this.container.offsetLeft) / this.container.clientWidth; | ||
var dragPercentageNow = (this.touch.dragNowX - this.container.offsetLeft) / this.container.clientWidth; | ||
var dragPercentage = ((dragPercentageStart < 0.5 ? 0 : 1) - dragPercentageNow) * 100; | ||
@@ -698,2 +701,3 @@ var forwards = (dragAmount || dragPercentage) > 0; | ||
this.touch.dragStartX = null; | ||
this.touch.dragNowX = null; | ||
this.touch.dragAmount = null; | ||
@@ -716,10 +720,2 @@ // this.enableScroll() | ||
/** | ||
* Return the x distance in pixel between drag start and current drag position. | ||
*/ | ||
getDragAmount: function getDragAmount(e) { | ||
return ('ontouchstart' in window ? e.touches[0].clientX : e.clientX) - this.touch.dragStartX; | ||
}, | ||
/** | ||
* The translation of most cases, in other cases this can still be used as a base calc. | ||
@@ -1305,3 +1301,3 @@ */ | ||
if (!inject) return; | ||
inject("data-v-f2e9e65c_0", { source: "\n.vueperslides {\n position: relative;\n}\n.vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit;\n}\n.vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important;\n}\n.vueperslides__inner {\n position: relative;\n user-select: none;\n}\n.vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden;\n}\n.vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1;\n}\n.vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0);\n}\n.vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%;\n}\n.vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none;\n}\n.vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important;\n}\n.vueperslides__track--dragging .vueperslides__track-inner {\n transition: none;\n}\n.vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s;\n}\n.vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n}\n.vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out;\n}\n.vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.vueperslides__bullets--outside {\n position: relative;\n}\n.vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.vueperslides__bullet::-moz-focus-inner {\n border: 0;\n}\n\n/*# sourceMappingURL=VueperSlides.vue.map */", map: { "version": 3, "sources": ["/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlides.vue", "VueperSlides.vue"], "names": [], "mappings": ";AAo0BA;EACA,mBAAA;CAqHA;AAnHA;;;IAIA,gBAAA;CACA;AALA;IAQA,6BAAA;CACA;AAGA;IACA,mBAAA;IACA,kBAAA;CACA;AAEA;IACA,mBAAA;IACA,iBAAA;CACA;AAEA;IACA,mBAAA;IACA,OAAA;IACA,aAAA;IACA,QAAA;IACA,SAAA;IACA,iBAAA;IACA,WAAA;CAiBA;AAfA;MACA,aAAA;MACA,yBAAA;CACA;AAEA;MACA,kBAAA;MACA,qBAAA;MACA,aAAA;CAMA;AATA;QAMA,yBAAA;QACA,iBAAA;CACA;AAIA;IACA,oBAAA;IACA,uCAAA;IACA,aAAA;CAkBA;AAhBA;MACA,oBAAA;MACA,iBAAA;CACA;AAEA;MACA,kDAAA;CACA;AAEA;MACA,iBAAA;CACA;AAEA;MACA,wBAAA;CACA;AAGA;IACA,mBAAA;IACA,mBAAA;IACA,WAAA;IACA,mBAAA;IACA,4BAAA;IACA,6BAAA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;CACA;AAEA;IACA,mBAAA;IACA,6BAAA;CACA;AAEA;IACA,cAAA;IACA,wBAAA;IACA,mBAAA;IACA,UAAA;IACA,QAAA;IACA,SAAA;CAKA;AAHA;MACA,mBAAA;CACA;AAGA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;IACA,cAAA;IACA,wBAAA;IACA,oBAAA;CAKA;AAZA;MAUA,UAAA;CACA;;ACz2BA,4CAA4C", "file": "VueperSlides.vue", "sourcesContent": [null, ".vueperslides {\n position: relative; }\n .vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit; }\n .vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important; }\n .vueperslides__inner {\n position: relative;\n user-select: none; }\n .vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden; }\n .vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1; }\n .vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0); }\n .vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab; }\n .vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing; }\n .vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%; }\n .vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none; }\n .vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important; }\n .vueperslides__track--dragging .vueperslides__track-inner {\n transition: none; }\n .vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s; }\n .vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2; }\n .vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out; }\n .vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0; }\n .vueperslides__bullets--outside {\n position: relative; }\n .vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center; }\n .vueperslides__bullet::-moz-focus-inner {\n border: 0; }\n\n/*# sourceMappingURL=VueperSlides.vue.map */"] }, media: undefined }); | ||
inject("data-v-0c9dd9df_0", { source: "\n.vueperslides {\n position: relative;\n}\n.vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit;\n}\n.vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important;\n}\n.vueperslides__inner {\n position: relative;\n user-select: none;\n}\n.vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden;\n}\n.vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1;\n}\n.vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0);\n}\n.vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%;\n}\n.vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none;\n}\n.vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important;\n}\n.vueperslides__track--dragging .vueperslides__track-inner {\n transition: none;\n}\n.vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s;\n}\n.vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n}\n.vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out;\n}\n.vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.vueperslides__bullets--outside {\n position: relative;\n}\n.vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.vueperslides__bullet::-moz-focus-inner {\n border: 0;\n}\n\n/*# sourceMappingURL=VueperSlides.vue.map */", map: { "version": 3, "sources": ["/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlides.vue", "VueperSlides.vue"], "names": [], "mappings": ";AAi0BA;EACA,mBAAA;CAqHA;AAnHA;;;IAIA,gBAAA;CACA;AALA;IAQA,6BAAA;CACA;AAGA;IACA,mBAAA;IACA,kBAAA;CACA;AAEA;IACA,mBAAA;IACA,iBAAA;CACA;AAEA;IACA,mBAAA;IACA,OAAA;IACA,aAAA;IACA,QAAA;IACA,SAAA;IACA,iBAAA;IACA,WAAA;CAiBA;AAfA;MACA,aAAA;MACA,yBAAA;CACA;AAEA;MACA,kBAAA;MACA,qBAAA;MACA,aAAA;CAMA;AATA;QAMA,yBAAA;QACA,iBAAA;CACA;AAIA;IACA,oBAAA;IACA,uCAAA;IACA,aAAA;CAkBA;AAhBA;MACA,oBAAA;MACA,iBAAA;CACA;AAEA;MACA,kDAAA;CACA;AAEA;MACA,iBAAA;CACA;AAEA;MACA,wBAAA;CACA;AAGA;IACA,mBAAA;IACA,mBAAA;IACA,WAAA;IACA,mBAAA;IACA,4BAAA;IACA,6BAAA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;CACA;AAEA;IACA,mBAAA;IACA,6BAAA;CACA;AAEA;IACA,cAAA;IACA,wBAAA;IACA,mBAAA;IACA,UAAA;IACA,QAAA;IACA,SAAA;CAKA;AAHA;MACA,mBAAA;CACA;AAGA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;IACA,cAAA;IACA,wBAAA;IACA,oBAAA;CAKA;AAZA;MAUA,UAAA;CACA;;ACt2BA,4CAA4C", "file": "VueperSlides.vue", "sourcesContent": [null, ".vueperslides {\n position: relative; }\n .vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit; }\n .vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important; }\n .vueperslides__inner {\n position: relative;\n user-select: none; }\n .vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden; }\n .vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1; }\n .vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0); }\n .vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab; }\n .vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing; }\n .vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%; }\n .vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none; }\n .vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important; }\n .vueperslides__track--dragging .vueperslides__track-inner {\n transition: none; }\n .vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s; }\n .vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2; }\n .vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out; }\n .vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0; }\n .vueperslides__bullets--outside {\n position: relative; }\n .vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center; }\n .vueperslides__bullet::-moz-focus-inner {\n border: 0; }\n\n/*# sourceMappingURL=VueperSlides.vue.map */"] }, media: undefined }); | ||
}; | ||
@@ -1308,0 +1304,0 @@ /* scoped */ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VueperSlides={})}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},i={props:{clone:{type:Number,default:null},image:{type:String,default:""},title:{type:String,default:""},content:{type:String,default:""}},created:function(){this.$parent.addSlide(this)},destroyed:function(){null===this.clone&&this.$parent.removeSlide(this._uid)},computed:{wrapperStyles:function(){return t({},!this.$parent.conf.slideImageInside&&this.image&&{backgroundImage:"url("+this.image+")"},this.$parent.conf.visibleSlides&&{width:100/this.$parent.conf.visibleSlides+"%"})},imageStyles:function(){return t({},this.$parent.conf.slideImageInside&&this.image&&{backgroundImage:"url("+this.image+")"})},hasTitleSlotData:function(){return void 0!==this.$slots.slideTitle},hasContentSlotData:function(){return void 0!==this.$slots.slideContent}}},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:{vueperslide:!0,"vueperslide--active":e.$parent.slides.activeUid===e._uid},style:e.wrapperStyles,attrs:{"aria-hidden":e.$parent.slides.activeUid===e._uid?"false":"true"}},[e.image&&e.$parent.conf.slideImageInside?i("div",{staticClass:"vueperslide__image",style:e.imageStyles}):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.$parent.conf.slideContentOutside&&(e.title||e.hasTitleSlotData||e.content||e.hasContentSlotData),expression:"!$parent.conf.slideContentOutside && (title || hasTitleSlotData || content || hasContentSlotData)"}],staticClass:"vueperslide__content-wrapper"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.title||e.hasTitleSlotData,expression:"title || hasTitleSlotData"}],staticClass:"vueperslide__title"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.$parent.conf.slideContentOutside&&!e.title,expression:"!$parent.conf.slideContentOutside && !title"}]},[e._t("slideTitle")],2),e.title?i("div",{domProps:{innerHTML:e._s(e.title)}}):e._e()]),e.content||e.hasContentSlotData?i("div",{staticClass:"vueperslide__content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.$parent.conf.slideContentOutside&&!e.content,expression:"!$parent.conf.slideContentOutside && !content"}]},[e._t("slideContent")],2),e.content?i("div",{domProps:{innerHTML:e._s(e.content)}}):e._e()]):e._e()])])};n._withStripped=!0;var s=function(e,t,i,n,s,o,r,l){var a=("function"==typeof i?i.options:i)||{};a.__file="/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlide.vue",a.render||(a.render=e.render,a.staticRenderFns=e.staticRenderFns,a._compiled=!0,s&&(a.functional=!0)),a._scopeId=n;var d=void 0;if(t&&(d=function(e){t.call(this,r(e))}),void 0!==d)if(a.functional){var u=a.render;a.render=function(e,t){return d.call(t),u(e,t)}}else{var c=a.beforeCreate;a.beforeCreate=c?[].concat(c,d):[d]}return a}({render:n,staticRenderFns:[]},function(e){e&&e("data-v-37ed1eb1_0",{source:"\n.vueperslide {\n white-space: normal;\n background-size: cover;\n display: inline-block;\n position: relative;\n width: 100%;\n height: 100%;\n}\n.vueperslide__image {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-size: cover;\n}\n.vueperslide__content-wrapper:not(.vueperslide__content-wrapper--outside-top):not(.vueperslide__content-wrapper--outside-bottom) {\n position: absolute;\n}\n.vueperslides--fade .vueperslide {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n transition: .8s ease-in-out opacity;\n}\n.vueperslides--fade .vueperslide--active {\n z-index: 1;\n opacity: 1;\n}\n\n/*# sourceMappingURL=VueperSlide.vue.map */",map:{version:3,sources:["/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlide.vue","VueperSlide.vue"],names:[],mappings:";AAmEA;EACA,oBAAA;EACA,uBAAA;EACA,sBAAA;EACA,mBAAA;EACA,YAAA;EACA,aAAA;CAcA;AAZA;IACA,mBAAA;IACA,OAAA;IACA,QAAA;IACA,SAAA;IACA,UAAA;IACA,uBAAA;CACA;AAEA;IACA,mBAAA;CACA;AAGA;EACA,mBAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,oCAAA;CAMA;AAbA;IAUA,WAAA;IACA,WAAA;CACA;;ACxEA,2CAA2C",file:"VueperSlide.vue",sourcesContent:[null,".vueperslide {\n white-space: normal;\n background-size: cover;\n display: inline-block;\n position: relative;\n width: 100%;\n height: 100%; }\n .vueperslide__image {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-size: cover; }\n .vueperslide__content-wrapper:not(.vueperslide__content-wrapper--outside-top):not(.vueperslide__content-wrapper--outside-bottom) {\n position: absolute; }\n\n.vueperslides--fade .vueperslide {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n transition: .8s ease-in-out opacity; }\n .vueperslides--fade .vueperslide--active {\n z-index: 1;\n opacity: 1; }\n\n/*# sourceMappingURL=VueperSlide.vue.map */"]},media:void 0})},i,void 0,!1,0,function e(){var d=document.head||document.getElementsByTagName("head")[0],u=e.styles||(e.styles={}),c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,t){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var i=c?t.media||"default":e,n=u[i]||(u[i]={ids:[],parts:[],element:void 0});if(!n.ids.includes(e)){var s=t.source,o=n.ids.length;if(n.ids.push(e),c&&(n.element=n.element||document.querySelector("style[data-group="+i+"]")),!n.element){var r=n.element=document.createElement("style");r.type="text/css",t.media&&r.setAttribute("media",t.media),c&&(r.setAttribute("data-group",i),r.setAttribute("data-next-index","0")),d.appendChild(r)}if(c&&(o=parseInt(n.element.getAttribute("data-next-index")),n.element.setAttribute("data-next-index",o+1)),n.element.styleSheet)n.parts.push(s),n.element.styleSheet.cssText=n.parts.filter(Boolean).join("\n");else{var l=document.createTextNode(s),a=n.element.childNodes;a[o]&&n.element.removeChild(a[o]),a.length?n.element.insertBefore(l,a[o]):n.element.appendChild(l)}}}}}),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var l={name:"vueper-slides",components:{VueperSlide:s},props:{initSlide:{type:Number,default:1},slideRatio:{type:Number,default:1/3},arrows:{type:Boolean,default:!0},arrowsOutside:{type:Boolean,default:null},disableArrowsOnEdges:{type:[Boolean,String],default:!1},bullets:{type:Boolean,default:!0},bulletsOutside:{type:Boolean,default:null},fade:{type:Boolean,default:!1},slideContentOutside:{type:[Boolean,String],default:!1},slideContentOutsideClass:{type:String,default:""},autoplay:{type:Boolean,default:!1},speed:{type:[Number,String],default:4e3},transitionSpeed:{type:[Number,String],default:600},pauseOnHover:{type:Boolean,default:!0},infinite:{type:Boolean,default:!0},refreshClonesOnDrag:{type:Boolean,default:!1},parallax:{type:[Boolean,Number],default:!1},touchable:{type:Boolean,default:!0},draggingDistance:{type:Number,default:null},disable:{type:Boolean,default:!1},breakpoints:{type:Object,default:function(){return{}}},fixedHeight:{type:[Boolean,String],default:!1},slideImageInside:{type:Boolean,default:!1},slideMultiple:{type:[Boolean,Number],default:!1},visibleSlides:{type:Number,default:1}},data:function(){return{isReady:!1,container:null,slides:{list:[],count:0,activeUid:null,current:0,focus:0,clones:[]},clones:[],mouseDown:!1,mouseOver:!1,touch:{enabled:!0,dragging:!1,dragStartX:0,dragAmount:0},transition:{currentTranslation:0,speed:0,animated:!1},timer:null,arrowPrevDisabled:!1,arrowNextDisabled:!1,breakpointsData:{list:[],current:null},parallaxData:{translation:0,slideshowOffsetTop:null,isVisible:!1}}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.emit("before-init",!1),this.container=this.$refs.vueperslides,this.touch.enabled=this.conf.touchable,this.transition.speed=this.conf.transitionSpeed,Object.keys(this.breakpoints).length&&(this.setBreakpointsList(),this.setBreakpointConfig(this.getCurrentBreakpoint())),this.conf.infinite&&(this.cloneSlides(),this.$nextTick(function(){return e.cloneSlides()})),this.goToSlide(this.conf.initSlide-1),this.bindEvents(),this.isReady=!0,this.emit("ready")},emit:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=[e];if((t||"number"==typeof i)&&(n[1]={},t&&this.slides.activeUid&&(n[1].currentSlide=this.getSlideData(this.slides.current)),"number"==typeof i)){var s=this.getSlideInRange(i).nextSlide;n[1].nextSlide=this.getSlideData(s)}this.$emit.apply(this,[e].concat(n))},getSlideData:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=this.slides.list[e],n=i.$slots,s=n.slideTitle,o=void 0===s?[{}]:s,r=n.slideContent,l=void 0===r?[{}]:r,a=o[0].elm,d=void 0===a?{}:a,u=l[0].elm,c=void 0===u?{}:u,p={index:e,title:i.title,titleSlot:d&&d.innerHTML||null,content:i.content,contentSlot:c&&c.innerHTML||null,image:i.image};if(t){var A=i.$el.attributes,h=(A=void 0===A?{}:A).style,f=(h=void 0===h?{}:h).value,v=void 0===f?"":f;p.style=v}return p},getCurrentSlideData:function(e){var t=this.getSlideData(this.slides.current),i=t.titleSlot,n=t.title,s=t.contentSlot,o=t.content;return"title"===e?n||i:o||s},setBreakpointsList:function(){this.breakpointsData.list=[99999].concat(r(Object.keys(this.breakpoints))).sort(function(e,t){return parseInt(e)<parseInt(t)})},getCurrentBreakpoint:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=[e].concat(r(this.breakpointsData.list)).sort(function(e,t){return parseInt(e)<parseInt(t)});return this.breakpointsData.list[t.indexOf(e)-1]},hasBreakpointChanged:function(e){return this.breakpointsData.current!==e},setBreakpointConfig:function(e){var t=(this.breakpoints&&this.breakpoints[e]||{}).slideMultiple!==this.conf.slideMultiple;this.breakpointsData.current=e,t&&(this.slides.current=this.slides.focus,this.goToSlide(this.slides.current))},cloneSlides:function(){this.clones[0]=this.getSlideData(this.slides.count-1,!0),this.clones[1]=this.getSlideData(0,!0)},bindEvents:function(){var e="ontouchstart"in window;this.touch.enabled&&(this.$refs.track.addEventListener(e?"touchstart":"mousedown",this.onMouseDown),document.addEventListener(e?"touchmove":"mousemove",this.onMouseMove),document.addEventListener(e?"touchend":"mouseup",this.onMouseUp)),this.conf.pauseOnHover&&!e&&this.conf.autoplay&&(this.container.addEventListener("mouseover",this.onMouseIn),this.container.addEventListener("mouseout",this.onMouseOut)),(this.breakpointsData.list.length||this.conf.parallax)&&window.addEventListener("resize",this.onResize),this.conf.parallax&&(this.refreshParallax(),document.addEventListener("scroll",this.onScroll))},getSlideshowOffsetTop:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(null===this.parallaxData.slideshowOffsetTop||e){for(var t=this.container,i=t.offsetTop;t=t.offsetParent;)i+=t.offsetTop;this.parallaxData.slideshowOffsetTop=i}return this.parallaxData.slideshowOffsetTop},onScroll:function(){var e=document.documentElement,t=(window.pageYOffset||e.scrollTop)-(e.clientTop||0),i=window.innerHeight||e.clientHeight||document.body.clientHeight,n=this.container.clientHeight,s=this.getSlideshowOffsetTop(),o=s+n-t,r=i+t-s;if(this.parallaxData.isVisible=0<o&&0<r,this.parallaxData.isVisible){var l=100*o/(i+n),a=-1===this.conf.parallax?100-l:l;this.parallaxData.translation=-a/2}},onResize:function(){if(this.breakpointsData.list.length){var e=this.getCurrentBreakpoint();this.hasBreakpointChanged(e)&&this.setBreakpointConfig(e)}this.conf.parallax&&this.getSlideshowOffsetTop(!0)},onMouseIn:function(){this.mouseOver=!0,this.conf.pauseOnHover&&this.conf.autoplay&&this.clearTimer()},onMouseOut:function(){this.mouseOver=!1,this.conf.pauseOnHover&&this.conf.autoplay&&this.setTimer()},onMouseDown:function(e){this.touch.enabled&&!this.disable&&(e.touches||e.preventDefault(),this.conf.infinite&&this.cloneSlides(),this.mouseDown=!0,this.touch.dragStartX=this.getCurrentMouseX(e),this.conf.draggingDistance||this.updateCurrentTranslation(null,this.touch.dragStartX))},onMouseMove:function(e){if(this.mouseDown||this.touch.dragging)if(this.mouseDown=!1,this.touch.dragging=!0,this.conf.refreshClonesOnDrag&&this.conf.infinite&&this.cloneSlides(),this.conf.draggingDistance){this.touch.dragAmount=this.getDragAmount(e);var t=this.touch.dragAmount/this.container.clientWidth;this.updateCurrentTranslation(),this.transition.currentTranslation+=100*t}else this.updateCurrentTranslation(null,this.getCurrentMouseX(e))},onMouseUp:function(e){if(this.mouseDown=!1,!this.touch.dragging)return this.cancelSlideChange();this.touch.dragging=!1;var t=this.conf.draggingDistance?-this.touch.dragAmount:0,i=(this.slides.current,this.clones.length,100*(((this.touch.dragStartX-this.container.offsetLeft)/this.container.clientWidth<.5?0:1)-(this.getCurrentMouseX(e)-this.container.offsetLeft)/this.container.clientWidth)),n=0<(t||i);if(-1===[Math.abs(t)<this.conf.draggingDistance,!this.conf.draggingDistance&&Math.abs(i)<50,this.arrowPrevDisabled&&!this.slides.current&&!n,this.arrowNextDisabled&&this.slides.current===this.slides.count-1&&n].indexOf(!0)){var s=this.slides.current+this.conf.slideMultiple*(n?1:-1);this.goToSlide(s)}else this.cancelSlideChange();this.touch.dragStartX=null,this.touch.dragAmount=null},cancelSlideChange:function(){this.conf.fade||this.updateCurrentTranslation()},getCurrentMouseX:function(e){return"ontouchstart"in window?e.touches[0].clientX:e.clientX},getDragAmount:function(e){return("ontouchstart"in window?e.touches[0].clientX:e.clientX)-this.touch.dragStartX},getBasicTranslation:function(){var e=this.slides.current/this.conf.visibleSlides;return this.conf.infinite&&(e+=1/this.conf.visibleSlides),e},updateCurrentTranslation:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=this.getBasicTranslation();if(this.conf.infinite&&null!==e&&(i=(e?this.slides.count+1:0)/this.conf.visibleSlides),this.touch.dragStartX&&t){i+=((this.touch.dragStartX-this.container.offsetLeft)/this.container.clientWidth<.5?0:1)-(t-this.container.offsetLeft)/this.container.clientWidth}if(1<this.conf.visibleSlides&&1===this.conf.slideMultiple&&!this.conf.infinite){var n=Math.ceil(this.conf.visibleSlides/2),s=this.slides.count-(this.slides.current+1),o=this.conf.visibleSlides-n,r=s<o,l=n-1,a=Math.min(l,this.slides.current);r&&(a+=o-s),i-=a/this.conf.visibleSlides}this.transition.currentTranslation=100*-i},disableScroll:function(){document.ontouchmove=function(e){e.preventDefault()}},enableScroll:function(){document.ontouchmove=function(){return!0}},clearTimer:function(){clearTimeout(this.timer),this.timer=0},setTimer:function(){var e=this;this.timer=setTimeout(function(){e.goToSlide(e.slides.current+e.conf.slideMultiple,{autoPlaying:!0})},this.conf.speed)},previous:function(){this.goToSlide(this.slides.current-this.conf.slideMultiple)},next:function(){this.goToSlide(this.slides.current+this.conf.slideMultiple)},refreshParallax:function(){var e=this;setTimeout(function(){e.onResize(),e.onScroll()},100)},getFirstVisibleSlide:function(e){return Math.floor(e/this.conf.slideMultiple)*this.conf.slideMultiple},getSlideInRange:function(e,t){var i=null;this.conf.infinite&&-1===e?i=0:this.conf.infinite&&e===this.slides.count&&(i=1);var n=(e+this.slides.count)%this.slides.count;if(1<this.conf.slideMultiple){var s=this.slides.count%this.conf.slideMultiple||this.conf.slideMultiple,o=this.conf.slideMultiple-s;n+=e<0?o:0,n=this.getFirstVisibleSlide(n),this.getFirstVisibleSlide(this.slides.focus)!==n&&(this.slides.focus=n)}return this.conf.disableArrowsOnEdges&&(e<0||e>this.slides.count-1)&&!t&&(n=this.slides.current),{nextSlide:n,clone:i}},goToSlide:function(i){var n=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(this.slides.count&&!this.disable){this.conf.autoplay&&this.clearTimer();var t=e.animation,s=void 0===t||t,o=e.autoPlaying,r=void 0!==o&&o,l=e.jumping,a=void 0!==l&&l;this.transition.animated=s,setTimeout(function(){return n.transition.animated=!1},this.transitionSpeed);var d=this.getSlideInRange(i,r),u=d.nextSlide,c=d.clone;this.isReady&&!a&&(this.emit("before-slide",!0,u),null!==c&&this.cloneSlides()),this.conf.arrows&&this.conf.disableArrowsOnEdges&&(this.arrowPrevDisabled=0===u||u-this.conf.slideMultiple<0,this.arrowNextDisabled=u===this.slides.count-1||u+this.conf.slideMultiple>this.slides.count-1),null!==c&&setTimeout(function(){var e=-1===i&&n.slides.current!==n.slides.count-1,t=i===n.slides.count&&0!==n.slides.current;e||t||(n.transition.speed=0,n.goToSlide(c?0:n.slides.count-1,{animation:!1,jumping:!0}),setTimeout(function(){return n.transition.speed=n.conf.transitionSpeed},50))},this.transition.speed-50),this.slides.current=u,this.conf.fade||this.updateCurrentTranslation(c),this.slides.activeUid=this.slides.list[this.slides.current]._uid,this.conf.autoplay&&!this.mouseOver&&this.setTimer(),this.slides.count&&(this.$slots.default[this.slides.current]&&this.isReady&&!a&&this.emit("slide"),this.isReady&&!r&&!a&&this.$refs.bullet[this.slides.current]&&this.$refs.bullet[this.slides.current].focus())}},addSlide:function(e){var t=this,i=this.conf.infinite&&this.isReady&&null===e.clone;null!==e.clone?this.clones[e.clone]=e:(this.slides.list.push(e),this.slides.count=this.slides.list.length),1<this.slides.count&&this.touchable&&(this.touch.enabled=!0),i&&this.$nextTick(function(){return t.cloneSlides()})},removeSlide:function(i){var n=this,s=!1;this.slides.list.some(function(e,t){if(e._uid===i)return n.slides.list.splice(t,1),n.slides.count=n.slides.list.length,i===n.slides.activeUid&&(n.slides.activeUid=null,n.goToSlide(t-1,{autoPlaying:!0})),n.slides.count<=1&&(n.touch.enabled=!1),n.clones.length&&n.isReady&&!e.clone&&(s=!0),!0}),this.slides.count&&s&&this.cloneSlides()}},computed:{conf:function(){var e=o({},this.$props,this.$props.breakpoints&&this.$props.breakpoints[this.breakpointsData.current]||{});return e.slideMultiple=e.slideMultiple?e.visibleSlides:1,(e.fade||e.disableArrowsOnEdges||1<e.visibleSlides)&&(e.infinite=!1),e.arrowsOutside=e.arrowsOutside||1<e.visibleSlides&&null===e.arrowsOutside,e.bulletsOutside=e.bulletsOutside||1<e.visibleSlides&&null===e.bulletsOutside,e},vueperStyles:function(){return/^-?\d/.test(this.conf.fixedHeight)?"height: "+this.conf.fixedHeight:null},trackStyles:function(){var e={};return this.conf.parallax&&(e.transform="translateY("+this.parallaxData.translation+"%)",e.willChange=this.parallaxData.isVisible?"transform":"auto"),e},trackInnerStyles:function(){var e={};return e.transitionDuration=this.transition.speed+"ms",this.conf.fade||(e.transform="translateX("+this.transition.currentTranslation+"%)"),e}}},a=function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("div",{ref:"vueperslides",staticClass:"vueperslides",class:{"vueperslides--ready":i.isReady,"vueperslides--fade":i.conf.fade,"vueperslides--parallax":i.conf.parallax,"vueperslides--touchable":i.touch.enabled&&!i.disable,"vueperslides--fixed-height":i.conf.fixedHeight,"vueperslides--animated":i.transition.animated},style:i.vueperStyles,attrs:{"aria-label":"Slideshow"}},["top"===i.conf.slideContentOutside?n("div",{staticClass:"vueperslide__content-wrapper vueperslide__content-wrapper--outside-top",class:i.conf.slideContentOutsideClass},[i.slides.count?n("div",{staticClass:"vueperslide__title",domProps:{innerHTML:i._s(i.getCurrentSlideData("title"))}}):i._e(),i.slides.count?n("div",{staticClass:"vueperslide__content",domProps:{innerHTML:i._s(i.getCurrentSlideData("content"))}}):i._e()]):i._e(),n("div",{staticClass:"vueperslides__inner"},[n("div",{staticClass:"vueperslides__parallax-wrapper",style:"padding-bottom:"+100*i.conf.slideRatio+"%",attrs:{"aria-live":"polite"}},[n("div",{ref:"track",staticClass:"vueperslides__track",class:{"vueperslides__track--dragging":i.touch.dragging,"vueperslides__track--mousedown":i.mouseDown},style:i.trackStyles},[n("div",{staticClass:"vueperslides__track-inner",style:i.trackInnerStyles},[i.slides.count&&i.clones[0]?n("vueper-slide",{staticClass:"vueperslide--clone",style:i.clones[0].style,attrs:{clone:0,title:i.clones[0].title,content:i.clones[0].content,image:i.clones[0].image,"aria-hidden":"true"}},[i.clones[0].titleSlot?n("div",{attrs:{slot:"slideTitle"},domProps:{innerHTML:i._s(i.clones[0].titleSlot)},slot:"slideTitle"}):i._e(),i.clones[0].contentSlot?n("div",{attrs:{slot:"slideContent"},domProps:{innerHTML:i._s(i.clones[0].contentSlot)},slot:"slideContent"}):i._e()]):i._e(),i._t("default",null,{currentSlide:i.slides.current}),i.slides.count&&i.clones[1]?n("vueper-slide",{staticClass:"vueperslide--clone",style:i.clones[1].style,attrs:{clone:1,title:i.clones[1].title,content:i.clones[1].content,image:i.clones[1].image,"aria-hidden":"true"}},[i.clones[1].titleSlot?n("div",{attrs:{slot:"slideTitle"},domProps:{innerHTML:i._s(i.clones[1].titleSlot)},slot:"slideTitle"}):i._e(),i.clones[1].contentSlot?n("div",{attrs:{slot:"slideContent"},domProps:{innerHTML:i._s(i.clones[1].contentSlot)},slot:"slideContent"}):i._e()]):i._e()],2)])]),i.$slots.pausedIcon?n("div",{staticClass:"vueperslides__paused"},[i._t("pausedIcon")],2):i._e(),i.conf.arrows&&1<i.slides.count&&!i.disable?n("div",{staticClass:"vueperslides__arrows",class:{"vueperslides__arrows--outside":i.conf.arrowsOutside}},[n("button",{directives:[{name:"show",rawName:"v-show",value:!i.arrowPrevDisabled,expression:"!arrowPrevDisabled"}],staticClass:"vueperslides__arrow vueperslides__arrow--prev",attrs:{"aria-label":"Previous"},on:{click:function(e){i.previous()}}},[i._t("arrowLeft",[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M16.2,21c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L9.6,12L17,4.7c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0L6.8,12l8.8,8.7C15.7,20.9,16,21,16.2,21z"}})])])],2),n("button",{directives:[{name:"show",rawName:"v-show",value:!i.arrowNextDisabled,expression:"!arrowNextDisabled"}],staticClass:"vueperslides__arrow vueperslides__arrow--next",attrs:{"aria-label":"Next"},on:{click:function(e){i.next()}}},[i._t("arrowRight",[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7.8,21c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l7.4-7.3L7,4.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l8.8,8.7l-8.8,8.7C8.3,20.9,8,21,7.8,21z"}})])])],2)]):i._e(),i.conf.bullets&&1<i.slides.count&&!i.disable&&!i.conf.bulletsOutside?n("div",{staticClass:"vueperslides__bullets",attrs:{role:"tablist","aria-label":"Slideshow navigation"}},i._l(Math.ceil(i.slides.count/i.conf.slideMultiple),function(e,t){return n("button",{key:t,ref:"bullet",refInFor:!0,staticClass:"vueperslides__bullet",class:{"vueperslides__bullet--active":i.slides.current===t*i.conf.slideMultiple},on:{click:function(e){i.goToSlide(t*i.conf.slideMultiple)},keyup:[function(e){return"button"in e||!i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:void i.previous():null},function(e){return"button"in e||!i._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:void i.next():null}]}},[n("span",[i._v(i._s(t+1))])])})):i._e()]),i.conf.bullets&&1<i.slides.count&&!i.disable&&i.conf.bulletsOutside?n("div",{staticClass:"vueperslides__bullets vueperslides__bullets--outside"},i._l(Math.ceil(i.slides.count/i.conf.slideMultiple),function(e,t){return n("button",{key:t,ref:"bullet",refInFor:!0,staticClass:"vueperslides__bullet",class:{"vueperslides__bullet--active":i.slides.current===t*i.conf.slideMultiple},on:{click:function(e){i.goToSlide(t*i.conf.slideMultiple)},keyup:[function(e){return"button"in e||!i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:void i.previous():null},function(e){return"button"in e||!i._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:void i.next():null}]}},[n("span",[i._v(i._s(t+1))])])})):i._e(),"bottom"===i.conf.slideContentOutside?n("div",{staticClass:"vueperslide__content-wrapper vueperslide__content-wrapper--outside-bottom",class:i.conf.slideContentOutsideClass},[i.slides.count?n("div",{staticClass:"vueperslide__title",domProps:{innerHTML:i._s(i.getCurrentSlideData("title"))}}):i._e(),i.slides.count?n("div",{staticClass:"vueperslide__content",domProps:{innerHTML:i._s(i.getCurrentSlideData("content"))}}):i._e()]):i._e()])};a._withStripped=!0;var d=function(e,t,i,n,s,o,r,l){var a=("function"==typeof i?i.options:i)||{};a.__file="/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlides.vue",a.render||(a.render=e.render,a.staticRenderFns=e.staticRenderFns,a._compiled=!0,s&&(a.functional=!0)),a._scopeId=n;var d=void 0;if(t&&(d=function(e){t.call(this,r(e))}),void 0!==d)if(a.functional){var u=a.render;a.render=function(e,t){return d.call(t),u(e,t)}}else{var c=a.beforeCreate;a.beforeCreate=c?[].concat(c,d):[d]}return a}({render:a,staticRenderFns:[]},function(e){e&&e("data-v-f2e9e65c_0",{source:"\n.vueperslides {\n position: relative;\n}\n.vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit;\n}\n.vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important;\n}\n.vueperslides__inner {\n position: relative;\n user-select: none;\n}\n.vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden;\n}\n.vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1;\n}\n.vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0);\n}\n.vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%;\n}\n.vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none;\n}\n.vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important;\n}\n.vueperslides__track--dragging .vueperslides__track-inner {\n transition: none;\n}\n.vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s;\n}\n.vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n}\n.vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out;\n}\n.vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.vueperslides__bullets--outside {\n position: relative;\n}\n.vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.vueperslides__bullet::-moz-focus-inner {\n border: 0;\n}\n\n/*# sourceMappingURL=VueperSlides.vue.map */",map:{version:3,sources:["/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlides.vue","VueperSlides.vue"],names:[],mappings:";AAo0BA;EACA,mBAAA;CAqHA;AAnHA;;;IAIA,gBAAA;CACA;AALA;IAQA,6BAAA;CACA;AAGA;IACA,mBAAA;IACA,kBAAA;CACA;AAEA;IACA,mBAAA;IACA,iBAAA;CACA;AAEA;IACA,mBAAA;IACA,OAAA;IACA,aAAA;IACA,QAAA;IACA,SAAA;IACA,iBAAA;IACA,WAAA;CAiBA;AAfA;MACA,aAAA;MACA,yBAAA;CACA;AAEA;MACA,kBAAA;MACA,qBAAA;MACA,aAAA;CAMA;AATA;QAMA,yBAAA;QACA,iBAAA;CACA;AAIA;IACA,oBAAA;IACA,uCAAA;IACA,aAAA;CAkBA;AAhBA;MACA,oBAAA;MACA,iBAAA;CACA;AAEA;MACA,kDAAA;CACA;AAEA;MACA,iBAAA;CACA;AAEA;MACA,wBAAA;CACA;AAGA;IACA,mBAAA;IACA,mBAAA;IACA,WAAA;IACA,mBAAA;IACA,4BAAA;IACA,6BAAA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;CACA;AAEA;IACA,mBAAA;IACA,6BAAA;CACA;AAEA;IACA,cAAA;IACA,wBAAA;IACA,mBAAA;IACA,UAAA;IACA,QAAA;IACA,SAAA;CAKA;AAHA;MACA,mBAAA;CACA;AAGA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;IACA,cAAA;IACA,wBAAA;IACA,oBAAA;CAKA;AAZA;MAUA,UAAA;CACA;;ACz2BA,4CAA4C",file:"VueperSlides.vue",sourcesContent:[null,".vueperslides {\n position: relative; }\n .vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit; }\n .vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important; }\n .vueperslides__inner {\n position: relative;\n user-select: none; }\n .vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden; }\n .vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1; }\n .vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0); }\n .vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab; }\n .vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing; }\n .vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%; }\n .vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none; }\n .vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important; }\n .vueperslides__track--dragging .vueperslides__track-inner {\n transition: none; }\n .vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s; }\n .vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2; }\n .vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out; }\n .vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0; }\n .vueperslides__bullets--outside {\n position: relative; }\n .vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center; }\n .vueperslides__bullet::-moz-focus-inner {\n border: 0; }\n\n/*# sourceMappingURL=VueperSlides.vue.map */"]},media:void 0})},l,void 0,!1,0,function e(){var d=document.head||document.getElementsByTagName("head")[0],u=e.styles||(e.styles={}),c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,t){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var i=c?t.media||"default":e,n=u[i]||(u[i]={ids:[],parts:[],element:void 0});if(!n.ids.includes(e)){var s=t.source,o=n.ids.length;if(n.ids.push(e),c&&(n.element=n.element||document.querySelector("style[data-group="+i+"]")),!n.element){var r=n.element=document.createElement("style");r.type="text/css",t.media&&r.setAttribute("media",t.media),c&&(r.setAttribute("data-group",i),r.setAttribute("data-next-index","0")),d.appendChild(r)}if(c&&(o=parseInt(n.element.getAttribute("data-next-index")),n.element.setAttribute("data-next-index",o+1)),n.element.styleSheet)n.parts.push(s),n.element.styleSheet.cssText=n.parts.filter(Boolean).join("\n");else{var l=document.createTextNode(s),a=n.element.childNodes;a[o]&&n.element.removeChild(a[o]),a.length?n.element.insertBefore(l,a[o]):n.element.appendChild(l)}}}}});"undefined"!=typeof window&&window.Vue&&(window.Vue.component("vueper-slides",d),window.Vue.component("vueper-slide",s)),e.VueperSlides=d,e.VueperSlide=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VueperSlides={})}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},i={props:{clone:{type:Number,default:null},image:{type:String,default:""},title:{type:String,default:""},content:{type:String,default:""}},created:function(){this.$parent.addSlide(this)},destroyed:function(){null===this.clone&&this.$parent.removeSlide(this._uid)},computed:{wrapperStyles:function(){return t({},!this.$parent.conf.slideImageInside&&this.image&&{backgroundImage:"url("+this.image+")"},this.$parent.conf.visibleSlides&&{width:100/this.$parent.conf.visibleSlides+"%"})},imageStyles:function(){return t({},this.$parent.conf.slideImageInside&&this.image&&{backgroundImage:"url("+this.image+")"})},hasTitleSlotData:function(){return void 0!==this.$slots.slideTitle},hasContentSlotData:function(){return void 0!==this.$slots.slideContent}}},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:{vueperslide:!0,"vueperslide--active":e.$parent.slides.activeUid===e._uid},style:e.wrapperStyles,attrs:{"aria-hidden":e.$parent.slides.activeUid===e._uid?"false":"true"}},[e.image&&e.$parent.conf.slideImageInside?i("div",{staticClass:"vueperslide__image",style:e.imageStyles}):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.$parent.conf.slideContentOutside&&(e.title||e.hasTitleSlotData||e.content||e.hasContentSlotData),expression:"!$parent.conf.slideContentOutside && (title || hasTitleSlotData || content || hasContentSlotData)"}],staticClass:"vueperslide__content-wrapper"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.title||e.hasTitleSlotData,expression:"title || hasTitleSlotData"}],staticClass:"vueperslide__title"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.$parent.conf.slideContentOutside&&!e.title,expression:"!$parent.conf.slideContentOutside && !title"}]},[e._t("slideTitle")],2),e.title?i("div",{domProps:{innerHTML:e._s(e.title)}}):e._e()]),e.content||e.hasContentSlotData?i("div",{staticClass:"vueperslide__content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.$parent.conf.slideContentOutside&&!e.content,expression:"!$parent.conf.slideContentOutside && !content"}]},[e._t("slideContent")],2),e.content?i("div",{domProps:{innerHTML:e._s(e.content)}}):e._e()]):e._e()])])};n._withStripped=!0;var s=function(e,t,i,n,s,o,r,l){var a=("function"==typeof i?i.options:i)||{};a.__file="/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlide.vue",a.render||(a.render=e.render,a.staticRenderFns=e.staticRenderFns,a._compiled=!0,s&&(a.functional=!0)),a._scopeId=n;var d=void 0;if(t&&(d=function(e){t.call(this,r(e))}),void 0!==d)if(a.functional){var u=a.render;a.render=function(e,t){return d.call(t),u(e,t)}}else{var c=a.beforeCreate;a.beforeCreate=c?[].concat(c,d):[d]}return a}({render:n,staticRenderFns:[]},function(e){e&&e("data-v-37ed1eb1_0",{source:"\n.vueperslide {\n white-space: normal;\n background-size: cover;\n display: inline-block;\n position: relative;\n width: 100%;\n height: 100%;\n}\n.vueperslide__image {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-size: cover;\n}\n.vueperslide__content-wrapper:not(.vueperslide__content-wrapper--outside-top):not(.vueperslide__content-wrapper--outside-bottom) {\n position: absolute;\n}\n.vueperslides--fade .vueperslide {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n transition: .8s ease-in-out opacity;\n}\n.vueperslides--fade .vueperslide--active {\n z-index: 1;\n opacity: 1;\n}\n\n/*# sourceMappingURL=VueperSlide.vue.map */",map:{version:3,sources:["/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlide.vue","VueperSlide.vue"],names:[],mappings:";AAmEA;EACA,oBAAA;EACA,uBAAA;EACA,sBAAA;EACA,mBAAA;EACA,YAAA;EACA,aAAA;CAcA;AAZA;IACA,mBAAA;IACA,OAAA;IACA,QAAA;IACA,SAAA;IACA,UAAA;IACA,uBAAA;CACA;AAEA;IACA,mBAAA;CACA;AAGA;EACA,mBAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,oCAAA;CAMA;AAbA;IAUA,WAAA;IACA,WAAA;CACA;;ACxEA,2CAA2C",file:"VueperSlide.vue",sourcesContent:[null,".vueperslide {\n white-space: normal;\n background-size: cover;\n display: inline-block;\n position: relative;\n width: 100%;\n height: 100%; }\n .vueperslide__image {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-size: cover; }\n .vueperslide__content-wrapper:not(.vueperslide__content-wrapper--outside-top):not(.vueperslide__content-wrapper--outside-bottom) {\n position: absolute; }\n\n.vueperslides--fade .vueperslide {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n transition: .8s ease-in-out opacity; }\n .vueperslides--fade .vueperslide--active {\n z-index: 1;\n opacity: 1; }\n\n/*# sourceMappingURL=VueperSlide.vue.map */"]},media:void 0})},i,void 0,!1,0,function e(){var d=document.head||document.getElementsByTagName("head")[0],u=e.styles||(e.styles={}),c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,t){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var i=c?t.media||"default":e,n=u[i]||(u[i]={ids:[],parts:[],element:void 0});if(!n.ids.includes(e)){var s=t.source,o=n.ids.length;if(n.ids.push(e),c&&(n.element=n.element||document.querySelector("style[data-group="+i+"]")),!n.element){var r=n.element=document.createElement("style");r.type="text/css",t.media&&r.setAttribute("media",t.media),c&&(r.setAttribute("data-group",i),r.setAttribute("data-next-index","0")),d.appendChild(r)}if(c&&(o=parseInt(n.element.getAttribute("data-next-index")),n.element.setAttribute("data-next-index",o+1)),n.element.styleSheet)n.parts.push(s),n.element.styleSheet.cssText=n.parts.filter(Boolean).join("\n");else{var l=document.createTextNode(s),a=n.element.childNodes;a[o]&&n.element.removeChild(a[o]),a.length?n.element.insertBefore(l,a[o]):n.element.appendChild(l)}}}}}),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var l={name:"vueper-slides",components:{VueperSlide:s},props:{initSlide:{type:Number,default:1},slideRatio:{type:Number,default:1/3},arrows:{type:Boolean,default:!0},arrowsOutside:{type:Boolean,default:null},disableArrowsOnEdges:{type:[Boolean,String],default:!1},bullets:{type:Boolean,default:!0},bulletsOutside:{type:Boolean,default:null},fade:{type:Boolean,default:!1},slideContentOutside:{type:[Boolean,String],default:!1},slideContentOutsideClass:{type:String,default:""},autoplay:{type:Boolean,default:!1},speed:{type:[Number,String],default:4e3},transitionSpeed:{type:[Number,String],default:600},pauseOnHover:{type:Boolean,default:!0},infinite:{type:Boolean,default:!0},refreshClonesOnDrag:{type:Boolean,default:!1},parallax:{type:[Boolean,Number],default:!1},touchable:{type:Boolean,default:!0},draggingDistance:{type:Number,default:null},disable:{type:Boolean,default:!1},breakpoints:{type:Object,default:function(){return{}}},fixedHeight:{type:[Boolean,String],default:!1},slideImageInside:{type:Boolean,default:!1},slideMultiple:{type:[Boolean,Number],default:!1},visibleSlides:{type:Number,default:1}},data:function(){return{isReady:!1,container:null,slides:{list:[],count:0,activeUid:null,current:0,focus:0,clones:[]},clones:[],mouseDown:!1,mouseOver:!1,touch:{enabled:!0,dragging:!1,dragStartX:0,dragNowX:0,dragAmount:0},transition:{currentTranslation:0,speed:0,animated:!1},timer:null,arrowPrevDisabled:!1,arrowNextDisabled:!1,breakpointsData:{list:[],current:null},parallaxData:{translation:0,slideshowOffsetTop:null,isVisible:!1}}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.emit("before-init",!1),this.container=this.$refs.vueperslides,this.touch.enabled=this.conf.touchable,this.transition.speed=this.conf.transitionSpeed,Object.keys(this.breakpoints).length&&(this.setBreakpointsList(),this.setBreakpointConfig(this.getCurrentBreakpoint())),this.conf.infinite&&(this.cloneSlides(),this.$nextTick(function(){return e.cloneSlides()})),this.goToSlide(this.conf.initSlide-1),this.bindEvents(),this.isReady=!0,this.emit("ready")},emit:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=[e];if((t||"number"==typeof i)&&(n[1]={},t&&this.slides.activeUid&&(n[1].currentSlide=this.getSlideData(this.slides.current)),"number"==typeof i)){var s=this.getSlideInRange(i).nextSlide;n[1].nextSlide=this.getSlideData(s)}this.$emit.apply(this,[e].concat(n))},getSlideData:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=this.slides.list[e],n=i.$slots,s=n.slideTitle,o=void 0===s?[{}]:s,r=n.slideContent,l=void 0===r?[{}]:r,a=o[0].elm,d=void 0===a?{}:a,u=l[0].elm,c=void 0===u?{}:u,p={index:e,title:i.title,titleSlot:d&&d.innerHTML||null,content:i.content,contentSlot:c&&c.innerHTML||null,image:i.image};if(t){var A=i.$el.attributes,h=(A=void 0===A?{}:A).style,f=(h=void 0===h?{}:h).value,v=void 0===f?"":f;p.style=v}return p},getCurrentSlideData:function(e){var t=this.getSlideData(this.slides.current),i=t.titleSlot,n=t.title,s=t.contentSlot,o=t.content;return"title"===e?n||i:o||s},setBreakpointsList:function(){this.breakpointsData.list=[99999].concat(r(Object.keys(this.breakpoints))).sort(function(e,t){return parseInt(e)<parseInt(t)})},getCurrentBreakpoint:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=[e].concat(r(this.breakpointsData.list)).sort(function(e,t){return parseInt(e)<parseInt(t)});return this.breakpointsData.list[t.indexOf(e)-1]},hasBreakpointChanged:function(e){return this.breakpointsData.current!==e},setBreakpointConfig:function(e){var t=(this.breakpoints&&this.breakpoints[e]||{}).slideMultiple!==this.conf.slideMultiple;this.breakpointsData.current=e,t&&(this.slides.current=this.slides.focus,this.goToSlide(this.slides.current))},cloneSlides:function(){this.clones[0]=this.getSlideData(this.slides.count-1,!0),this.clones[1]=this.getSlideData(0,!0)},bindEvents:function(){var e="ontouchstart"in window;this.touch.enabled&&(this.$refs.track.addEventListener(e?"touchstart":"mousedown",this.onMouseDown),document.addEventListener(e?"touchmove":"mousemove",this.onMouseMove),document.addEventListener(e?"touchend":"mouseup",this.onMouseUp)),this.conf.pauseOnHover&&!e&&this.conf.autoplay&&(this.container.addEventListener("mouseover",this.onMouseIn),this.container.addEventListener("mouseout",this.onMouseOut)),(this.breakpointsData.list.length||this.conf.parallax)&&window.addEventListener("resize",this.onResize),this.conf.parallax&&(this.refreshParallax(),document.addEventListener("scroll",this.onScroll))},getSlideshowOffsetTop:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(null===this.parallaxData.slideshowOffsetTop||e){for(var t=this.container,i=t.offsetTop;t=t.offsetParent;)i+=t.offsetTop;this.parallaxData.slideshowOffsetTop=i}return this.parallaxData.slideshowOffsetTop},onScroll:function(){var e=document.documentElement,t=(window.pageYOffset||e.scrollTop)-(e.clientTop||0),i=window.innerHeight||e.clientHeight||document.body.clientHeight,n=this.container.clientHeight,s=this.getSlideshowOffsetTop(),o=s+n-t,r=i+t-s;if(this.parallaxData.isVisible=0<o&&0<r,this.parallaxData.isVisible){var l=100*o/(i+n),a=-1===this.conf.parallax?100-l:l;this.parallaxData.translation=-a/2}},onResize:function(){if(this.breakpointsData.list.length){var e=this.getCurrentBreakpoint();this.hasBreakpointChanged(e)&&this.setBreakpointConfig(e)}this.conf.parallax&&this.getSlideshowOffsetTop(!0)},onMouseIn:function(){this.mouseOver=!0,this.conf.pauseOnHover&&this.conf.autoplay&&this.clearTimer()},onMouseOut:function(){this.mouseOver=!1,this.conf.pauseOnHover&&this.conf.autoplay&&this.setTimer()},onMouseDown:function(e){this.touch.enabled&&!this.disable&&(e.touches||e.preventDefault(),this.conf.infinite&&this.cloneSlides(),this.mouseDown=!0,this.touch.dragStartX=this.getCurrentMouseX(e),this.conf.draggingDistance||this.updateCurrentTranslation(null,this.touch.dragStartX))},onMouseMove:function(e){if(this.mouseDown||this.touch.dragging)if(this.mouseDown=!1,this.touch.dragging=!0,this.conf.refreshClonesOnDrag&&this.conf.infinite&&this.cloneSlides(),this.touch.dragNowX=this.getCurrentMouseX(e),this.conf.draggingDistance){this.touch.dragAmount=this.touch.dragNowX-this.touch.dragStartX;var t=this.touch.dragAmount/this.container.clientWidth;this.updateCurrentTranslation(),this.transition.currentTranslation+=100*t}else this.updateCurrentTranslation(null,this.touch.dragNowX)},onMouseUp:function(e){if(this.mouseDown=!1,!this.touch.dragging)return this.cancelSlideChange();this.touch.dragging=!1;var t=this.conf.draggingDistance?-this.touch.dragAmount:0,i=(this.slides.current,this.clones.length,100*(((this.touch.dragStartX-this.container.offsetLeft)/this.container.clientWidth<.5?0:1)-(this.touch.dragNowX-this.container.offsetLeft)/this.container.clientWidth)),n=0<(t||i);if(-1===[Math.abs(t)<this.conf.draggingDistance,!this.conf.draggingDistance&&Math.abs(i)<50,this.arrowPrevDisabled&&!this.slides.current&&!n,this.arrowNextDisabled&&this.slides.current===this.slides.count-1&&n].indexOf(!0)){var s=this.slides.current+this.conf.slideMultiple*(n?1:-1);this.goToSlide(s)}else this.cancelSlideChange();this.touch.dragStartX=null,this.touch.dragNowX=null,this.touch.dragAmount=null},cancelSlideChange:function(){this.conf.fade||this.updateCurrentTranslation()},getCurrentMouseX:function(e){return"ontouchstart"in window?e.touches[0].clientX:e.clientX},getBasicTranslation:function(){var e=this.slides.current/this.conf.visibleSlides;return this.conf.infinite&&(e+=1/this.conf.visibleSlides),e},updateCurrentTranslation:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=this.getBasicTranslation();if(this.conf.infinite&&null!==e&&(i=(e?this.slides.count+1:0)/this.conf.visibleSlides),this.touch.dragStartX&&t){i+=((this.touch.dragStartX-this.container.offsetLeft)/this.container.clientWidth<.5?0:1)-(t-this.container.offsetLeft)/this.container.clientWidth}if(1<this.conf.visibleSlides&&1===this.conf.slideMultiple&&!this.conf.infinite){var n=Math.ceil(this.conf.visibleSlides/2),s=this.slides.count-(this.slides.current+1),o=this.conf.visibleSlides-n,r=s<o,l=n-1,a=Math.min(l,this.slides.current);r&&(a+=o-s),i-=a/this.conf.visibleSlides}this.transition.currentTranslation=100*-i},disableScroll:function(){document.ontouchmove=function(e){e.preventDefault()}},enableScroll:function(){document.ontouchmove=function(){return!0}},clearTimer:function(){clearTimeout(this.timer),this.timer=0},setTimer:function(){var e=this;this.timer=setTimeout(function(){e.goToSlide(e.slides.current+e.conf.slideMultiple,{autoPlaying:!0})},this.conf.speed)},previous:function(){this.goToSlide(this.slides.current-this.conf.slideMultiple)},next:function(){this.goToSlide(this.slides.current+this.conf.slideMultiple)},refreshParallax:function(){var e=this;setTimeout(function(){e.onResize(),e.onScroll()},100)},getFirstVisibleSlide:function(e){return Math.floor(e/this.conf.slideMultiple)*this.conf.slideMultiple},getSlideInRange:function(e,t){var i=null;this.conf.infinite&&-1===e?i=0:this.conf.infinite&&e===this.slides.count&&(i=1);var n=(e+this.slides.count)%this.slides.count;if(1<this.conf.slideMultiple){var s=this.slides.count%this.conf.slideMultiple||this.conf.slideMultiple,o=this.conf.slideMultiple-s;n+=e<0?o:0,n=this.getFirstVisibleSlide(n),this.getFirstVisibleSlide(this.slides.focus)!==n&&(this.slides.focus=n)}return this.conf.disableArrowsOnEdges&&(e<0||e>this.slides.count-1)&&!t&&(n=this.slides.current),{nextSlide:n,clone:i}},goToSlide:function(i){var n=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(this.slides.count&&!this.disable){this.conf.autoplay&&this.clearTimer();var t=e.animation,s=void 0===t||t,o=e.autoPlaying,r=void 0!==o&&o,l=e.jumping,a=void 0!==l&&l;this.transition.animated=s,setTimeout(function(){return n.transition.animated=!1},this.transitionSpeed);var d=this.getSlideInRange(i,r),u=d.nextSlide,c=d.clone;this.isReady&&!a&&(this.emit("before-slide",!0,u),null!==c&&this.cloneSlides()),this.conf.arrows&&this.conf.disableArrowsOnEdges&&(this.arrowPrevDisabled=0===u||u-this.conf.slideMultiple<0,this.arrowNextDisabled=u===this.slides.count-1||u+this.conf.slideMultiple>this.slides.count-1),null!==c&&setTimeout(function(){var e=-1===i&&n.slides.current!==n.slides.count-1,t=i===n.slides.count&&0!==n.slides.current;e||t||(n.transition.speed=0,n.goToSlide(c?0:n.slides.count-1,{animation:!1,jumping:!0}),setTimeout(function(){return n.transition.speed=n.conf.transitionSpeed},50))},this.transition.speed-50),this.slides.current=u,this.conf.fade||this.updateCurrentTranslation(c),this.slides.activeUid=this.slides.list[this.slides.current]._uid,this.conf.autoplay&&!this.mouseOver&&this.setTimer(),this.slides.count&&(this.$slots.default[this.slides.current]&&this.isReady&&!a&&this.emit("slide"),this.isReady&&!r&&!a&&this.$refs.bullet[this.slides.current]&&this.$refs.bullet[this.slides.current].focus())}},addSlide:function(e){var t=this,i=this.conf.infinite&&this.isReady&&null===e.clone;null!==e.clone?this.clones[e.clone]=e:(this.slides.list.push(e),this.slides.count=this.slides.list.length),1<this.slides.count&&this.touchable&&(this.touch.enabled=!0),i&&this.$nextTick(function(){return t.cloneSlides()})},removeSlide:function(i){var n=this,s=!1;this.slides.list.some(function(e,t){if(e._uid===i)return n.slides.list.splice(t,1),n.slides.count=n.slides.list.length,i===n.slides.activeUid&&(n.slides.activeUid=null,n.goToSlide(t-1,{autoPlaying:!0})),n.slides.count<=1&&(n.touch.enabled=!1),n.clones.length&&n.isReady&&!e.clone&&(s=!0),!0}),this.slides.count&&s&&this.cloneSlides()}},computed:{conf:function(){var e=o({},this.$props,this.$props.breakpoints&&this.$props.breakpoints[this.breakpointsData.current]||{});return e.slideMultiple=e.slideMultiple?e.visibleSlides:1,(e.fade||e.disableArrowsOnEdges||1<e.visibleSlides)&&(e.infinite=!1),e.arrowsOutside=e.arrowsOutside||1<e.visibleSlides&&null===e.arrowsOutside,e.bulletsOutside=e.bulletsOutside||1<e.visibleSlides&&null===e.bulletsOutside,e},vueperStyles:function(){return/^-?\d/.test(this.conf.fixedHeight)?"height: "+this.conf.fixedHeight:null},trackStyles:function(){var e={};return this.conf.parallax&&(e.transform="translateY("+this.parallaxData.translation+"%)",e.willChange=this.parallaxData.isVisible?"transform":"auto"),e},trackInnerStyles:function(){var e={};return e.transitionDuration=this.transition.speed+"ms",this.conf.fade||(e.transform="translateX("+this.transition.currentTranslation+"%)"),e}}},a=function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("div",{ref:"vueperslides",staticClass:"vueperslides",class:{"vueperslides--ready":i.isReady,"vueperslides--fade":i.conf.fade,"vueperslides--parallax":i.conf.parallax,"vueperslides--touchable":i.touch.enabled&&!i.disable,"vueperslides--fixed-height":i.conf.fixedHeight,"vueperslides--animated":i.transition.animated},style:i.vueperStyles,attrs:{"aria-label":"Slideshow"}},["top"===i.conf.slideContentOutside?n("div",{staticClass:"vueperslide__content-wrapper vueperslide__content-wrapper--outside-top",class:i.conf.slideContentOutsideClass},[i.slides.count?n("div",{staticClass:"vueperslide__title",domProps:{innerHTML:i._s(i.getCurrentSlideData("title"))}}):i._e(),i.slides.count?n("div",{staticClass:"vueperslide__content",domProps:{innerHTML:i._s(i.getCurrentSlideData("content"))}}):i._e()]):i._e(),n("div",{staticClass:"vueperslides__inner"},[n("div",{staticClass:"vueperslides__parallax-wrapper",style:"padding-bottom:"+100*i.conf.slideRatio+"%",attrs:{"aria-live":"polite"}},[n("div",{ref:"track",staticClass:"vueperslides__track",class:{"vueperslides__track--dragging":i.touch.dragging,"vueperslides__track--mousedown":i.mouseDown},style:i.trackStyles},[n("div",{staticClass:"vueperslides__track-inner",style:i.trackInnerStyles},[i.slides.count&&i.clones[0]?n("vueper-slide",{staticClass:"vueperslide--clone",style:i.clones[0].style,attrs:{clone:0,title:i.clones[0].title,content:i.clones[0].content,image:i.clones[0].image,"aria-hidden":"true"}},[i.clones[0].titleSlot?n("div",{attrs:{slot:"slideTitle"},domProps:{innerHTML:i._s(i.clones[0].titleSlot)},slot:"slideTitle"}):i._e(),i.clones[0].contentSlot?n("div",{attrs:{slot:"slideContent"},domProps:{innerHTML:i._s(i.clones[0].contentSlot)},slot:"slideContent"}):i._e()]):i._e(),i._t("default",null,{currentSlide:i.slides.current}),i.slides.count&&i.clones[1]?n("vueper-slide",{staticClass:"vueperslide--clone",style:i.clones[1].style,attrs:{clone:1,title:i.clones[1].title,content:i.clones[1].content,image:i.clones[1].image,"aria-hidden":"true"}},[i.clones[1].titleSlot?n("div",{attrs:{slot:"slideTitle"},domProps:{innerHTML:i._s(i.clones[1].titleSlot)},slot:"slideTitle"}):i._e(),i.clones[1].contentSlot?n("div",{attrs:{slot:"slideContent"},domProps:{innerHTML:i._s(i.clones[1].contentSlot)},slot:"slideContent"}):i._e()]):i._e()],2)])]),i.$slots.pausedIcon?n("div",{staticClass:"vueperslides__paused"},[i._t("pausedIcon")],2):i._e(),i.conf.arrows&&1<i.slides.count&&!i.disable?n("div",{staticClass:"vueperslides__arrows",class:{"vueperslides__arrows--outside":i.conf.arrowsOutside}},[n("button",{directives:[{name:"show",rawName:"v-show",value:!i.arrowPrevDisabled,expression:"!arrowPrevDisabled"}],staticClass:"vueperslides__arrow vueperslides__arrow--prev",attrs:{"aria-label":"Previous"},on:{click:function(e){i.previous()}}},[i._t("arrowLeft",[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M16.2,21c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L9.6,12L17,4.7c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0L6.8,12l8.8,8.7C15.7,20.9,16,21,16.2,21z"}})])])],2),n("button",{directives:[{name:"show",rawName:"v-show",value:!i.arrowNextDisabled,expression:"!arrowNextDisabled"}],staticClass:"vueperslides__arrow vueperslides__arrow--next",attrs:{"aria-label":"Next"},on:{click:function(e){i.next()}}},[i._t("arrowRight",[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7.8,21c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l7.4-7.3L7,4.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l8.8,8.7l-8.8,8.7C8.3,20.9,8,21,7.8,21z"}})])])],2)]):i._e(),i.conf.bullets&&1<i.slides.count&&!i.disable&&!i.conf.bulletsOutside?n("div",{staticClass:"vueperslides__bullets",attrs:{role:"tablist","aria-label":"Slideshow navigation"}},i._l(Math.ceil(i.slides.count/i.conf.slideMultiple),function(e,t){return n("button",{key:t,ref:"bullet",refInFor:!0,staticClass:"vueperslides__bullet",class:{"vueperslides__bullet--active":i.slides.current===t*i.conf.slideMultiple},on:{click:function(e){i.goToSlide(t*i.conf.slideMultiple)},keyup:[function(e){return"button"in e||!i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:void i.previous():null},function(e){return"button"in e||!i._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:void i.next():null}]}},[n("span",[i._v(i._s(t+1))])])})):i._e()]),i.conf.bullets&&1<i.slides.count&&!i.disable&&i.conf.bulletsOutside?n("div",{staticClass:"vueperslides__bullets vueperslides__bullets--outside"},i._l(Math.ceil(i.slides.count/i.conf.slideMultiple),function(e,t){return n("button",{key:t,ref:"bullet",refInFor:!0,staticClass:"vueperslides__bullet",class:{"vueperslides__bullet--active":i.slides.current===t*i.conf.slideMultiple},on:{click:function(e){i.goToSlide(t*i.conf.slideMultiple)},keyup:[function(e){return"button"in e||!i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:void i.previous():null},function(e){return"button"in e||!i._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:void i.next():null}]}},[n("span",[i._v(i._s(t+1))])])})):i._e(),"bottom"===i.conf.slideContentOutside?n("div",{staticClass:"vueperslide__content-wrapper vueperslide__content-wrapper--outside-bottom",class:i.conf.slideContentOutsideClass},[i.slides.count?n("div",{staticClass:"vueperslide__title",domProps:{innerHTML:i._s(i.getCurrentSlideData("title"))}}):i._e(),i.slides.count?n("div",{staticClass:"vueperslide__content",domProps:{innerHTML:i._s(i.getCurrentSlideData("content"))}}):i._e()]):i._e()])};a._withStripped=!0;var d=function(e,t,i,n,s,o,r,l){var a=("function"==typeof i?i.options:i)||{};a.__file="/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlides.vue",a.render||(a.render=e.render,a.staticRenderFns=e.staticRenderFns,a._compiled=!0,s&&(a.functional=!0)),a._scopeId=n;var d=void 0;if(t&&(d=function(e){t.call(this,r(e))}),void 0!==d)if(a.functional){var u=a.render;a.render=function(e,t){return d.call(t),u(e,t)}}else{var c=a.beforeCreate;a.beforeCreate=c?[].concat(c,d):[d]}return a}({render:a,staticRenderFns:[]},function(e){e&&e("data-v-0c9dd9df_0",{source:"\n.vueperslides {\n position: relative;\n}\n.vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit;\n}\n.vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important;\n}\n.vueperslides__inner {\n position: relative;\n user-select: none;\n}\n.vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden;\n}\n.vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1;\n}\n.vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0);\n}\n.vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%;\n}\n.vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none;\n}\n.vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important;\n}\n.vueperslides__track--dragging .vueperslides__track-inner {\n transition: none;\n}\n.vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s;\n}\n.vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n}\n.vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out;\n}\n.vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.vueperslides__bullets--outside {\n position: relative;\n}\n.vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.vueperslides__bullet::-moz-focus-inner {\n border: 0;\n}\n\n/*# sourceMappingURL=VueperSlides.vue.map */",map:{version:3,sources:["/Users/anto/Programming/localhost/vueper-slides/src/components/VueperSlides.vue","VueperSlides.vue"],names:[],mappings:";AAi0BA;EACA,mBAAA;CAqHA;AAnHA;;;IAIA,gBAAA;CACA;AALA;IAQA,6BAAA;CACA;AAGA;IACA,mBAAA;IACA,kBAAA;CACA;AAEA;IACA,mBAAA;IACA,iBAAA;CACA;AAEA;IACA,mBAAA;IACA,OAAA;IACA,aAAA;IACA,QAAA;IACA,SAAA;IACA,iBAAA;IACA,WAAA;CAiBA;AAfA;MACA,aAAA;MACA,yBAAA;CACA;AAEA;MACA,kBAAA;MACA,qBAAA;MACA,aAAA;CAMA;AATA;QAMA,yBAAA;QACA,iBAAA;CACA;AAIA;IACA,oBAAA;IACA,uCAAA;IACA,aAAA;CAkBA;AAhBA;MACA,oBAAA;MACA,iBAAA;CACA;AAEA;MACA,kDAAA;CACA;AAEA;MACA,iBAAA;CACA;AAEA;MACA,wBAAA;CACA;AAGA;IACA,mBAAA;IACA,mBAAA;IACA,WAAA;IACA,mBAAA;IACA,4BAAA;IACA,6BAAA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;CACA;AAEA;IACA,mBAAA;IACA,6BAAA;CACA;AAEA;IACA,cAAA;IACA,wBAAA;IACA,mBAAA;IACA,UAAA;IACA,QAAA;IACA,SAAA;CAKA;AAHA;MACA,mBAAA;CACA;AAGA;IACA,gBAAA;IACA,kBAAA;IACA,cAAA;IACA,WAAA;IACA,cAAA;IACA,wBAAA;IACA,oBAAA;CAKA;AAZA;MAUA,UAAA;CACA;;ACt2BA,4CAA4C",file:"VueperSlides.vue",sourcesContent:[null,".vueperslides {\n position: relative; }\n .vueperslides--fixed-height .vueperslides__inner,\n .vueperslides--fixed-height .vueperslides__parallax-wrapper,\n .vueperslides--fixed-height .vueperslide {\n height: inherit; }\n .vueperslides--fixed-height .vueperslides__parallax-wrapper {\n padding-bottom: 0 !important; }\n .vueperslides__inner {\n position: relative;\n user-select: none; }\n .vueperslides__parallax-wrapper {\n position: relative;\n overflow: hidden; }\n .vueperslides__track {\n position: absolute;\n top: 0;\n height: 100%;\n left: 0;\n right: 0;\n overflow: hidden;\n z-index: 1; }\n .vueperslides--parallax .vueperslides__track {\n height: 200%;\n transform: translateY(0); }\n .vueperslides--touchable .vueperslides__track {\n cursor: ew-resize;\n cursor: -webkit-grab;\n cursor: grab; }\n .vueperslides--touchable .vueperslides__track--mousedown, .vueperslides--touchable .vueperslides__track--dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing; }\n .vueperslides__track-inner {\n white-space: nowrap;\n transition: 0.5s ease-in-out transform;\n height: 100%; }\n .vueperslides--fade .vueperslides__track-inner {\n white-space: normal;\n transition: none; }\n .vueperslides__track--mousedown .vueperslides__track-inner {\n transition: 0.2s ease-in-out transform !important; }\n .vueperslides__track--dragging .vueperslides__track-inner {\n transition: none; }\n .vueperslides__track--no-animation .vueperslides__track-inner {\n transition-duration: 0s; }\n .vueperslides__arrow {\n position: absolute;\n fill: currentColor;\n width: 1em;\n text-align: center;\n transform: translateY(-50%);\n transition: 0.3s ease-in-out;\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2; }\n .vueperslides__paused {\n position: absolute;\n transition: 0.3s ease-in-out; }\n .vueperslides__bullets {\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0; }\n .vueperslides__bullets--outside {\n position: relative; }\n .vueperslides__bullet {\n cursor: pointer;\n user-select: none;\n outline: none;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center; }\n .vueperslides__bullet::-moz-focus-inner {\n border: 0; }\n\n/*# sourceMappingURL=VueperSlides.vue.map */"]},media:void 0})},l,void 0,!1,0,function e(){var d=document.head||document.getElementsByTagName("head")[0],u=e.styles||(e.styles={}),c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,t){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var i=c?t.media||"default":e,n=u[i]||(u[i]={ids:[],parts:[],element:void 0});if(!n.ids.includes(e)){var s=t.source,o=n.ids.length;if(n.ids.push(e),c&&(n.element=n.element||document.querySelector("style[data-group="+i+"]")),!n.element){var r=n.element=document.createElement("style");r.type="text/css",t.media&&r.setAttribute("media",t.media),c&&(r.setAttribute("data-group",i),r.setAttribute("data-next-index","0")),d.appendChild(r)}if(c&&(o=parseInt(n.element.getAttribute("data-next-index")),n.element.setAttribute("data-next-index",o+1)),n.element.styleSheet)n.parts.push(s),n.element.styleSheet.cssText=n.parts.filter(Boolean).join("\n");else{var l=document.createTextNode(s),a=n.element.childNodes;a[o]&&n.element.removeChild(a[o]),a.length?n.element.insertBefore(l,a[o]):n.element.appendChild(l)}}}}});"undefined"!=typeof window&&window.Vue&&(window.Vue.component("vueper-slides",d),window.Vue.component("vueper-slide",s)),e.VueperSlides=d,e.VueperSlide=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=vueperslides.min.js.map |
{ | ||
"name": "vueperslides", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "A touch ready & responsive slideshow for Vue JS.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/antoniandre/vueper-slides", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146346
1389