Socket
Socket
Sign inDemoInstall

vue-concise-slider

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-concise-slider - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

docs/.vuepress/slider/effect/sliderFree/sliderFree.js

2

dist/module.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("vueConciseSlider",[],e):"object"==typeof exports?exports.vueConciseSlider=e():t.vueConciseSlider=e()}(window,function(){return function(t){var e=window.webpackHotUpdatevueConciseSlider;window.webpackHotUpdatevueConciseSlider=function(t,i){!function(t,e){if(!x[t]||!w[t])return;for(var i in w[t]=!1,e)Object.prototype.hasOwnProperty.call(e,i)&&(g[i]=e[i]);0==--m&&0===y&&E()}(t,i),e&&e(t,i)};var i,n=!0,o="e720a720d9f6dce472b5",r=1e4,s={},a=[],d=[];function c(t){var e=S[t];if(!e)return O;var n=function(n){return e.hot.active?(S[n]?-1===S[n].parents.indexOf(t)&&S[n].parents.push(t):(a=[t],i=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),a=[]),O(n)},o=function(t){return{configurable:!0,enumerable:!0,get:function(){return O[t]},set:function(e){O[t]=e}}};for(var r in O)Object.prototype.hasOwnProperty.call(O,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(n,r,o(r));return n.e=function(t){return"ready"===h&&u("prepare"),y++,O.e(t).then(e,function(t){throw e(),t});function e(){y--,"prepare"===h&&(b[t]||$(t),0===y&&0===m&&E())}},n.t=function(t,e){return 1&e&&(t=n(t)),O.t(t,-2&e)},n}function l(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:i!==t,active:!0,accept:function(t,i){if(void 0===t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var n=0;n<t.length;n++)e._acceptedDependencies[t[n]]=i||function(){};else e._acceptedDependencies[t]=i||function(){}},decline:function(t){if(void 0===t)e._selfDeclined=!0;else if("object"==typeof t)for(var i=0;i<t.length;i++)e._declinedDependencies[t[i]]=!0;else e._declinedDependencies[t]=!0},dispose:function(t){e._disposeHandlers.push(t)},addDisposeHandler:function(t){e._disposeHandlers.push(t)},removeDisposeHandler:function(t){var i=e._disposeHandlers.indexOf(t);i>=0&&e._disposeHandlers.splice(i,1)},check:T,apply:_,status:function(t){if(!t)return h;f.push(t)},addStatusHandler:function(t){f.push(t)},removeStatusHandler:function(t){var e=f.indexOf(t);e>=0&&f.splice(e,1)},data:s[t]};return i=void 0,e}var f=[],h="idle";function u(t){h=t;for(var e=0;e<f.length;e++)f[e].call(null,t)}var p,g,v,m=0,y=0,b={},w={},x={};function P(t){return+t+""===t?+t:t}function T(t){if("idle"!==h)throw new Error("check() is only allowed in idle status");return n=t,u("check"),(e=r,e=e||1e4,new Promise(function(t,i){if("undefined"==typeof XMLHttpRequest)return i(new Error("No browser support"));try{var n=new XMLHttpRequest,r=O.p+""+o+".hot-update.json";n.open("GET",r,!0),n.timeout=e,n.send(null)}catch(t){return i(t)}n.onreadystatechange=function(){if(4===n.readyState)if(0===n.status)i(new Error("Manifest request to "+r+" timed out."));else if(404===n.status)t();else if(200!==n.status&&304!==n.status)i(new Error("Manifest request to "+r+" failed."));else{try{var e=JSON.parse(n.responseText)}catch(t){return void i(t)}t(e)}}})).then(function(t){if(!t)return u("idle"),null;w={},b={},x=t.c,v=t.h,u("prepare");var e=new Promise(function(t,e){p={resolve:t,reject:e}});g={};return $(1),"prepare"===h&&0===y&&0===m&&E(),e});var e}function $(t){x[t]?(w[t]=!0,m++,function(t){var e=document.getElementsByTagName("head")[0],i=document.createElement("script");i.charset="utf-8",i.src=O.p+""+t+"."+o+".hot-update.js",e.appendChild(i)}(t)):b[t]=!0}function E(){u("ready");var t=p;if(p=null,t)if(n)Promise.resolve().then(function(){return _(n)}).then(function(e){t.resolve(e)},function(e){t.reject(e)});else{var e=[];for(var i in g)Object.prototype.hasOwnProperty.call(g,i)&&e.push(P(i));t.resolve(e)}}function _(e){if("ready"!==h)throw new Error("apply() is only allowed in ready status");var i,n,r,d,c;function l(t){for(var e=[t],i={},n=e.slice().map(function(t){return{chain:[t],id:t}});n.length>0;){var o=n.pop(),r=o.id,s=o.chain;if((d=S[r])&&!d.hot._selfAccepted){if(d.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:r};if(d.hot._main)return{type:"unaccepted",chain:s,moduleId:r};for(var a=0;a<d.parents.length;a++){var c=d.parents[a],l=S[c];if(l){if(l.hot._declinedDependencies[r])return{type:"declined",chain:s.concat([c]),moduleId:r,parentId:c};-1===e.indexOf(c)&&(l.hot._acceptedDependencies[r]?(i[c]||(i[c]=[]),f(i[c],[r])):(delete i[c],e.push(c),n.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:i}}function f(t,e){for(var i=0;i<e.length;i++){var n=e[i];-1===t.indexOf(n)&&t.push(n)}}e=e||{};var p={},m=[],y={},b=function(){console.warn("[HMR] unexpected require("+T.moduleId+") to disposed module")};for(var w in g)if(Object.prototype.hasOwnProperty.call(g,w)){var T;c=P(w);var $=!1,E=!1,_=!1,j="";switch((T=g[w]?l(c):{type:"disposed",moduleId:w}).chain&&(j="\nUpdate propagation: "+T.chain.join(" -> ")),T.type){case"self-declined":e.onDeclined&&e.onDeclined(T),e.ignoreDeclined||($=new Error("Aborted because of self decline: "+T.moduleId+j));break;case"declined":e.onDeclined&&e.onDeclined(T),e.ignoreDeclined||($=new Error("Aborted because of declined dependency: "+T.moduleId+" in "+T.parentId+j));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(T),e.ignoreUnaccepted||($=new Error("Aborted because "+c+" is not accepted"+j));break;case"accepted":e.onAccepted&&e.onAccepted(T),E=!0;break;case"disposed":e.onDisposed&&e.onDisposed(T),_=!0;break;default:throw new Error("Unexception type "+T.type)}if($)return u("abort"),Promise.reject($);if(E)for(c in y[c]=g[c],f(m,T.outdatedModules),T.outdatedDependencies)Object.prototype.hasOwnProperty.call(T.outdatedDependencies,c)&&(p[c]||(p[c]=[]),f(p[c],T.outdatedDependencies[c]));_&&(f(m,[T.moduleId]),y[c]=b)}var D,k=[];for(n=0;n<m.length;n++)c=m[n],S[c]&&S[c].hot._selfAccepted&&k.push({module:c,errorHandler:S[c].hot._selfAccepted});u("dispose"),Object.keys(x).forEach(function(t){!1===x[t]&&function(t){delete installedChunks[t]}(t)});for(var L,C,M=m.slice();M.length>0;)if(c=M.pop(),d=S[c]){var z={},R=d.hot._disposeHandlers;for(r=0;r<R.length;r++)(i=R[r])(z);for(s[c]=z,d.hot.active=!1,delete S[c],delete p[c],r=0;r<d.children.length;r++){var I=S[d.children[r]];I&&((D=I.parents.indexOf(c))>=0&&I.parents.splice(D,1))}}for(c in p)if(Object.prototype.hasOwnProperty.call(p,c)&&(d=S[c]))for(C=p[c],r=0;r<C.length;r++)L=C[r],(D=d.children.indexOf(L))>=0&&d.children.splice(D,1);for(c in u("apply"),o=v,y)Object.prototype.hasOwnProperty.call(y,c)&&(t[c]=y[c]);var A=null;for(c in p)if(Object.prototype.hasOwnProperty.call(p,c)&&(d=S[c])){C=p[c];var H=[];for(n=0;n<C.length;n++)if(L=C[n],i=d.hot._acceptedDependencies[L]){if(-1!==H.indexOf(i))continue;H.push(i)}for(n=0;n<H.length;n++){i=H[n];try{i(C)}catch(t){e.onErrored&&e.onErrored({type:"accept-errored",moduleId:c,dependencyId:C[n],error:t}),e.ignoreErrored||A||(A=t)}}}for(n=0;n<k.length;n++){var U=k[n];c=U.module,a=[c];try{O(c)}catch(t){if("function"==typeof U.errorHandler)try{U.errorHandler(t)}catch(i){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:c,error:i,originalError:t}),e.ignoreErrored||A||(A=i),A||(A=t)}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:c,error:t}),e.ignoreErrored||A||(A=t)}}return A?(u("fail"),Promise.reject(A)):(u("idle"),new Promise(function(t){t(m)}))}var S={};function O(e){if(S[e])return S[e].exports;var i=S[e]={i:e,l:!1,exports:{},hot:l(e),parents:(d=a,a=[],d),children:[]};return t[e].call(i.exports,i,i.exports,c(e)),i.l=!0,i.exports}return O.m=t,O.c=S,O.d=function(t,e,i){O.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},O.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},O.t=function(t,e){if(1&e&&(t=O(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(O.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)O.d(i,n,function(e){return t[e]}.bind(null,n));return i},O.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return O.d(e,"a",e),e},O.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},O.p="",O.h=function(){return o},c(92)(O.s=92)}([function(t,e,i){"use strict";function n(t,e,i,n,o,r,s,a){var d,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=d):o&&(d=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),d)if(c.functional){c._injectStyles=d;var l=c.render;c.render=function(t,e){return d.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,d):[d]}return{exports:t,options:c}}i.d(e,"a",function(){return n})},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var o=(s=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),r=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[i].concat(r).concat([o]).join("\n")}var s;return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];null!=r&&(n[r]=!0)}for(o=0;o<t.length;o++){var s=t[o];null!=s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},function(t,e,i){var n,o,r={},s=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),a=function(t){var e={};return function(t){return void 0===e[t]&&(e[t]=function(t){return document.querySelector(t)}.call(this,t)),e[t]}}(),d=null,c=0,l=[],f=i(66);function h(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=r[n.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](n.parts[s]);for(;s<n.parts.length;s++)o.parts.push(y(n.parts[s],e))}else{var a=[];for(s=0;s<n.parts.length;s++)a.push(y(n.parts[s],e));r[n.id]={id:n.id,refs:1,parts:a}}}}function u(t,e){for(var i=[],n={},o=0;o<t.length;o++){var r=t[o],s=e.base?r[0]+e.base:r[0],a={css:r[1],media:r[2],sourceMap:r[3]};n[s]?n[s].parts.push(a):i.push(n[s]={id:s,parts:[a]})}return i}function p(t,e){var i=a(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=l[l.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),l.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(e)}}function g(t){t.parentNode.removeChild(t);var e=l.indexOf(t);e>=0&&l.splice(e,1)}function v(t){var e=document.createElement("style");return t.attrs.type="text/css",m(e,t.attrs),p(t,e),e}function m(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function y(t,e){var i,n,o,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var s=c++;i=d||(d=v(e)),n=x.bind(null,i,s,!1),o=x.bind(null,i,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",m(e,t.attrs),p(t,e),e}(e),n=function(t,e,i){var n=i.css,o=i.sourceMap,r=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||r)&&(n=f(n));o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,i,e),o=function(){g(i),i.href&&URL.revokeObjectURL(i.href)}):(i=v(e),n=function(t,e){var i=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),o=function(){g(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=s()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var i=u(t,e);return h(i,e),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o];(a=r[s.id]).refs--,n.push(a)}t&&h(u(t,e),e);for(o=0;o<n.length;o++){var a;if(0===(a=n[o]).refs){for(var d=0;d<a.parts.length;d++)a.parts[d]();delete r[a.id]}}}};var b,w=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function x(t,e,i,n){var o=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=w(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}},function(t,e,i){"use strict";i.r(e);var n=i(12),o=i(9);for(var r in o)"default"!==r&&function(t){i.d(e,t,function(){return o[t]})}(r);var s=i(0),a=Object(s.a)(o.default,n.a,n.b,!1,null,null,null);a.options.__file="slider_item.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(13),o=i(6);for(var r in o)"default"!==r&&function(t){i.d(e,t,function(){return o[t]})}(r);i(65);var s=i(0),a=Object(s.a)(o.default,n.a,n.b,!1,null,null,null);a.options.__file="slider.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(7),o=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,function(){return n[t]})}(r);e.default=o.a},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(14)),r=n(i(15)),s=n(i(16)),a=n(i(17)),d=n(i(18)),c=n(i(19)),l=n(i(20)),f=n(i(63)),h=n(i(21)),u=n(i(22)),p={props:{options:{type:Object,default:function(){return{}}}},name:"slider",mixins:[c.default,o.default,d.default,a.default,s.default,f.default,h.default,u.default],data:function(){return{data:{},config:{pageWidth:0,pageHeight:0,loading:!1,effect:this.options.effect||"slide",resize:void 0===this.options.resize||this.options.resize,containerClass:{"swiper-container-vertical":!1,"swiper-container-horizontal":!0,"swiper-container-cursorGrab":this.options.grabCursor||!1}}}},mounted:function(){this.config.pageWidth=this.$el.offsetWidth,this.config.pageHeight=this.$el.offsetHeight,"vertical"===this.options.direction?this.config.containerClass["swiper-container-vertical"]=!0:this.config.containerClass["swiper-container-horizontal"]=!0},methods:{swipeStart:function(t){o.default.methods.swipeStart.call(this,t)},swipeMove:function(t){o.default.methods.swipeMove.call(this,t),"slide"!==this.config.effect&&"nest"!==this.config.effect||f.default.methods.swipeMove.call(this,t)},swipeEnd:function(t){o.default.methods.swipeEnd.call(this,t)},swipeOut:function(t){o.default.methods.swipeOut.call(this,t)},pre:function(){this.data.direction="left","slide"!==this.config.effect&&"nest"!==this.config.effect||f.default.methods.pre.call(this),"coverflow"===this.config.effect&&h.default.methods.pre.call(this),"fade"===this.config.effect&&u.default.methods.pre.call(this)},next:function(){this.data.direction="right","slide"!==this.config.effect&&"nest"!==this.config.effect||f.default.methods.next.call(this),"coverflow"===this.config.effect&&h.default.methods.next.call(this),"fade"===this.config.effect&&u.default.methods.next.call(this)},slide:function(t,e){this.$emit("slide",this.data),l.default.call(this,t,e),this.config.animation=!0,"animationnone"===e&&(this.config.animation=!1),(t||0===t)&&(this.data.currentPage=t),"slide"!==this.config.effect&&"nest"!==this.config.effect||f.default.methods.slide.call(this,t,e),"fade"===this.config.effect&&u.default.methods.slide.call(this,t,e)},preventDefault:function(t){t.preventDefault()}},components:{sliderWrapper:r.default,renderpagination:{render:function(t){var e=this.index,i=this.options.renderPagination;return i.call(this,t,e)},name:"renderpagination",props:{index:{type:Number,required:!0},options:{type:Object,required:!0}}}}};e.default=p},function(t,e,i){var n=i(11);"string"==typeof n&&(n=[[t.i,n,""]]);var o={transform:void 0},r=i(3)(n,o);n.locals&&(t.exports=n.locals),n.locals||t.hot.accept(11,function(){var e=i(11);"string"==typeof e&&(e=[[t.i,e,""]]),r(e)}),t.hot.dispose(function(){r()})},function(t,e,i){"use strict";i.r(e);var n=i(10),o=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,function(){return n[t]})}(r);e.default=o.a},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(67)),r={props:["index","pageLength"],name:"slideritem",data:function(){return{slideClass:{"slider-item":!0,"slider-active":!1,"slider-copy":!1,"slider-active-copy":!1},data:{start:{},end:{},index:this.index?this.index:this.$vnode.key,$el:""}}},computed:{transform:function(){var t=this.$parent.$parent.options,e=this.$parent.$parent.data,i=this.$parent.$parent.config;return t&&e&&i&&this.data.$el?"coverflow"===t.effect?o.default.methods.transform.call(this):void 0:{}}},mounted:function(){this.data.$el=this.$el,this.$vnode.isCloned?this.slideClass["slider-copy"]=!0:this.renderDom()},methods:{touchStart:function(t){if("touchstart"===t.type){if(t.touches.length>1)return this.data.tracking=!1,!1;this.data.start.t=(new Date).getTime(),this.data.start.x=t.targetTouches[0].clientX,this.data.start.y=t.targetTouches[0].clientY,this.data.end.x=t.targetTouches[0].clientX,this.data.end.y=t.targetTouches[0].clientY,this.data.start.pageX=t.targetTouches[0].pageX,this.data.start.pageY=t.targetTouches[0].pageY}else this.data.start.t=(new Date).getTime(),this.data.start.x=t.clientX,this.data.start.y=t.clientY,this.data.end.x=t.clientX,this.data.end.y=t.clientY,this.data.start.pageX=t.pageX,this.data.start.pageY=t.pageY},touchEnd:function(t){var e=(new Date).getTime()-this.data.start.t;"touchend"===t.type?(this.data.end.t=(new Date).getTime(),this.data.end.x=t.changedTouches[0].clientX,this.data.end.y=t.changedTouches[0].clientY,this.data.end.pageX=t.changedTouches[0].pageX,this.data.end.pageY=t.changedTouches[0].pageY):(this.data.end.t=(new Date).getTime(),this.data.end.x=t.clientX,this.data.end.y=t.clientY,this.data.end.pageX=t.pageX,this.data.end.pageY=t.pageY);var i=this.data.end.pageX-this.data.start.pageX||0,n=this.data.end.pageY-this.data.start.pageY||0;e<300&&Math.abs(i)<10&&Math.abs(n)<10&&this.$emit("tap",this.data)},renderDom:function(){this.$parent&&this.$parent.renderDom(this.$el)},addActive:function(){this.slideClass["slider-active"]=!0},addCopyActive:function(){this.slideClass["slider-active-copy"]=!0},removeCopyActive:function(){this.slideClass["slider-active-copy"]=!1},removeActive:function(){this.slideClass["slider-active"]=!1},onTransitionEnd:function(t){this.$parent&&this.$parent.onItemTransitionEnd(t)}}};e.default=r},function(t,e,i){(t.exports=i(2)(!1)).push([t.i,"\n.slider-container {\r\n margin: 0 auto;\r\n overflow: hidden;\r\n position: relative;\r\n z-index: 1;\n}\n.slider-container {\r\n height: 100%;\r\n width: 100%;\r\n position: relative;\r\n white-space: nowrap;\n}\n.slider-center-center {\r\n margin: auto;\r\n z-index: 1;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\n}\n.slider-touch {\r\n height: 100%;\n}\n.swiper-container-horizontal > * > .slider-wrapper {\r\n box-sizing: content-box;\r\n display: flex;\r\n height: 100%;\r\n position: relative;\r\n transition-property: transform;\r\n width: 100%;\r\n z-index: 1;\r\n align-items: center;\r\n /*flex-direction: column;*/\r\n /* 09版 */\r\n -webkit-box-orient: vertical;\r\n /* 12版 */\r\n -webkit-flex-direction: row;\r\n -moz-flex-direction: row;\r\n -ms-flex-direction: row;\r\n -o-flex-direction: row;\r\n flex-direction: row;\n}\r\n/*垂直*/\n.swiper-container-vertical > * > .slider-wrapper {\r\n box-sizing: content-box;\r\n display: flex;\r\n height: 100%;\r\n position: relative;\r\n transition-property: transform;\r\n width: 100%;\r\n z-index: 1;\r\n align-items: center;\r\n /*flex-direction: column;*/\r\n /* 09版 */\r\n -webkit-box-orient: vertical;\r\n /* 12版 */\r\n -webkit-flex-direction: column;\r\n -moz-flex-direction: column;\r\n -ms-flex-direction: column;\r\n -o-flex-direction: column;\r\n flex-direction: column;\n}\n.slider-item {\r\n flex-shrink: 0;\r\n height: 100%;\r\n position: relative;\r\n width: 100%;\n}\n.slider-item {\r\n align-items: center;\r\n /*background: #fff none repeat scroll 0 0;*/\r\n display: flex;\r\n font-size: 40px;\r\n justify-content: center;\r\n text-align: center;\r\n color: #fff;\r\n /*display: inline-block;*/\n}\n.slider-fade .slider-item {\r\n position: absolute;\r\n left: 0;\r\n opacity: 0;\n}\n.slider-pagination {\r\n position: absolute;\r\n text-align: center;\r\n transform: translate3d(0px, 0px, 0px);\r\n /*transition: all 350ms ease 0s;*/\r\n z-index: 10;\n}\n.swiper-container-horizontal > .slider-pagination-bullets {\r\n bottom: 10px;\r\n left: 0;\r\n width: 100%;\n}\n.swiper-container-horizontal > * > .slider-pagination-bullet {\r\n background: #000 none repeat scroll 0 0;\r\n border-radius: 100%;\r\n display: inline-block;\r\n height: 8px;\r\n opacity: 0.2;\r\n width: 8px;\r\n cursor: pointer;\r\n margin: 0 5px;\n}\r\n/*垂直*/\n.swiper-container-vertical > .slider-pagination-bullets {\r\n left: 0;\r\n bottom: auto;\r\n left: auto;\r\n width: auto;\r\n right: 10px;\r\n top: 50%;\r\n transform: translate3d(0px, -50%, 0px);\n}\n.swiper-container-vertical > * > .slider-pagination-bullet {\r\n background: #000 none repeat scroll 0 0;\r\n border-radius: 100%;\r\n height: 8px;\r\n opacity: 0.2;\r\n width: 8px;\r\n cursor: pointer;\r\n display: block;\r\n margin: 5px 0;\n}\n.swiper-container-vertical .slider-pagination-bullet-active ,.swiper-container-horizontal .slider-pagination-bullet-active{\r\n background: #fff none repeat scroll 0 0;\r\n opacity: 1;\n}\n.slider-loading {\r\n position: absolute;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n z-index: 999;\r\n width: 100%;\r\n text-align: center\n}\n.swiper-container-cursorGrab {\r\n cursor: grab;\n}\r\n",""])},function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.slideClass,style:[t.transform],on:{touchstart:t.touchStart,touchend:t.touchEnd,mousedown:t.touchStart,mouseup:t.touchEnd,"webkit-transition-end":t.onTransitionEnd,transitionend:t.onTransitionEnd}},[t._t("default")],2)},o=[];i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o})},function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"slider-container",class:t.config.containerClass,on:{mouseleave:t.swipeOut}},[i("div",{staticClass:"slider-touch",style:t.styleobj,on:{touchmove:t.swipeMove,touchstart:t.swipeStart,touchend:t.swipeEnd,mousedown:t.swipeStart,mouseup:t.swipeEnd,mousemove:t.swipeMove,"webkit-transition-end":t.onTransitionEnd,transitionend:t.onTransitionEnd,transitioncancel:t.onTransitionEnd,"webkit-transition-cancel":t.onTransitionEnd}},[i("sliderWrapper",[t._t("default")],2)],1),t._v(" "),t.config.pagination?i("div",{staticClass:"slider-pagination slider-pagination-bullets"},[t._l(t.config.sliderLength,function(e){return[t.options.renderPagination?t._e():i("span",{key:e,staticClass:"slider-pagination-bullet",class:e-1===t.data.currentPage?"slider-pagination-bullet-active":"",on:{click:function(i){t.slide(e-1)}}}),t._v(" "),t.options.renderPagination?i("renderpagination",{key:e,class:e-1===t.data.currentPage?"slider-pagination-bullet-active-render":"",attrs:{index:e,options:t.options},nativeOn:{click:function(i){t.slide(e-1)}}}):t._e()]})],2):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0===t.config.sliderLength||t.config.loading,expression:"config.sliderLength === 0 || config.loading"}],staticClass:"slider-loading"},[t._t("loading")],2)])},o=[];i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderMove",data:function(){return{data:{poswidth:0,posheight:0,start:{},end:{},direction:""},config:{transitionEnding:!1,itemTransitionEnding:!1,animation:!1,tracking:!1,thresholdDistance:this.options.thresholdDistance||50,thresholdTime:this.options.thresholdTime||1e3,direction:this.options.direction||"horizontal",freeze:void 0!==this.options.freeze&&this.options.freeze}}},methods:{swipeStart:function(t){if(!this.config.freeze&&!(this.config.transitionEnding||this.config.itemTransitionEnding&&this.options.itemAnimation))if(this.config.animation=!1,this.options.autoplay&&this.clock().stop(this),!0===this.options.preventDocumentMove&&document.addEventListener("touchmove",this.preventDefault(t)),"touchstart"===t.type){if(t.touches.length>1)return this.config.tracking=!1,!1;this.config.tracking=!0,this.data.start.t=(new Date).getTime(),this.data.start.x=t.targetTouches[0].clientX,this.data.start.y=t.targetTouches[0].clientY,this.data.end.x=t.targetTouches[0].clientX,this.data.end.y=t.targetTouches[0].clientY}else this.config.tracking=!0,this.data.start.t=(new Date).getTime(),this.data.start.x=t.clientX,this.data.start.y=t.clientY,this.data.end.x=t.clientX,this.data.end.y=t.clientY},swipeMove:function(t){if(this.config.tracking){"touchmove"===t.type?(this.data.end.x=t.targetTouches[0].clientX,this.data.end.y=t.targetTouches[0].clientY):(this.data.end.x=t.clientX,this.data.end.y=t.clientY);var e=Math.abs(this.data.end.x-this.data.start.x),i=Math.abs(this.data.end.y-this.data.start.y);if(e>=i&&"vertical"!==this.config.direction?t.preventDefault():e<=i&&"vertical"===this.config.direction&&t.preventDefault(),"vertical"===this.config.direction&&e>i)return console.log(this.config.direction),console.log("1"),!1;if("horizontal"===this.config.direction&&e<i)return console.log(this.config.direction),console.log("2"),!1}},swipeEnd:function(t){this.config.tracking=!1;var e=(new Date).getTime()-this.data.start.t,i=this.data.currentPage,n=this.data.end.x-this.data.start.x,o=this.data.end.y-this.data.start.y,r=this.config.thresholdDistance;if(this.options.autoplay){var s=this;setTimeout(function(){s.clock().begin(s)},this.options.autoplay)}return!0===this.options.preventDocumentMove&&document.removeEventListener("touchmove",this.preventDefault(t)),e>this.config.thresholdTime||e<100?(this.slide(i),!1):(Math.abs(n)<r||Math.abs(o)>r)&&"vertical"!==this.config.direction?(this.slide(i),!1):(Math.abs(n)>r||Math.abs(o)<r)&&"vertical"===this.config.direction?(this.slide(i),!1):"vertical"!==this.config.direction?n>r?(this.pre(),!1):-n>r?(this.next(),!1):(this.slide(i),!1):"vertical"===this.config.direction?o>r?(this.pre(),!1):-o>r?(this.next(),!1):(this.slide(i),!1):void 0},swipeOut:function(t){this.$el===t.target&&this.config.tracking&&this.swipeEnd(t)},onTransitionEnd:function(t,e){if(this.options.loop&&!(this.data.currentPage>0&&this.data.currentPage<this.config.sliderLength)){var i=this;setTimeout(function(){var t=i.data.currentPage,e=i.config.sliderLength;i.config.transitionEnding=!1,t<0?i.slide(e+t,"animationnone"):t>=e&&i.slide(0+t-e,"animationnone")},0)}},onItemTransitionEnd:function(t){if(t.target===t.currentTarget){var e=this;setTimeout(function(){e.config.itemTransitionEnding=!1},0)}}}};e.default=n},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(59));function r(t,e){return function i(n){var o=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(10*Math.random());return e}(5),r=n.children&&n.children.map(function(t){return i(t)}),s=e(n.tag,n.data,r);return s.text=n.text,s.isComment=n.isComment,s.componentOptions=n.componentOptions,s.isCloned=!0,s.isOnce=!1,s.elm=n.elm,s.context=n.context,s.ns=n.ns,s.isStatic=n.isStatic,s.key=t.key||0===t.key?t.key+"-cppy":o+"-copy",s}(t)}var s={methods:{renderDom:function(t){this.$parent&&this.$parent.renderDom(t)},onItemTransitionEnd:function(t){this.$parent&&this.$parent.onItemTransitionEnd(t)}},render:function(t){var e=this.$slots.default;if(!e)return"";var i=this.$parent.config.loopedSlides,n=[],s=[];if(this.$parent.config.loop&&"fade"!==this.$parent.config.effect&&"coverflow"!==this.$parent.config.effect){var a=e.filter(function(t){return!!t.componentOptions&&"slideritem"===t.componentOptions.tag});if(a&&a.length>=2)for(var d=a?a.length:0,c=0;c<d;c++)c+i-d>=0&&n.push(r(a[c],t)),c-i<0&&s.push(r(a[c],t))}return t("div",{class:{"slider-wrapper":!0,"slider-fade":"fade"===this.$parent.config.effect},scopedSlots:this.$scopedSlots},n.concat((0,o.default)(e),s))}};e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"sliderComputed",computed:{styleobj:function(){var t={};return t.transform="translate3D("+this.data.poswidth+"px,"+this.data.posheight+"px,0)",t.transitionTimingFunction=this.options.timingFunction||"ease",t["-webkitTransitionTimingFunction"]=this.options.timingFunction||"ease",t.transitionDuration=(this.config.animation?this.options.speed||300:0)+"ms",t["-webkitTransitionDuration"]=(this.config.animation?this.options.speed||300:0)+"ms","fade"===this.config.effect?{}:"coverflow"===this.config.effect?{}:t},currentWidth:function(){if(0===this.config.sliderLength)return 0;if("fade"===this.config.effect)return 0;if("coverflow"===this.config.effect)return 0;var t,e=this.data.currentPage,i=this.config.pageWidth,n=this.options.loopedSlides||1;if(this.options.loop&&(e+=n?n<=this.config.sliderLength?n:this.config.sliderLength:1),"coverflow"===this.options.effect){this.data.currentPage;1}for(var o in this.$el.children)/slider-touch/gi.test(this.$el.children[o].className)&&(t=this.$el.children[o]);var r=t.children[0].children,s=r[e]?r[e].offsetLeft:0,a=r[e]?r[e].offsetWidth:0,d=this.options.slidesPerView,c=this.config.sliderLength;if(this.options.centeredSlides)if(d){var l=this.data.currentPage,f=parseInt((d-1)/2);l-f<=0?l=0:l+f>=c?l=c-d:l-=f,s=r[l].offsetLeft}else s=s-i/2+a/2;if(!this.options.centeredSlides&&d){var h=this.data.currentPage,u=this.options.slidesToScroll||1;h+u>=c&&(s=r[c-u].offsetLeft)}return s+i-i},currentHeight:function(){var t,e=this.config.sliderLength,i=this.data.currentPage,n=0,o=i-1,r=this.config.pageWidth,s=this.options.loopedSlides||1;if(0===e||"fade"===this.config.effect)return 0;for(var a in this.options.loop&&(o=s?i+(s<=e?s:e)-1:i+1),this.$el.children)/slider-touch/gi.test(this.$el.children[a].className)&&(t=this.$el.children[a]);var d=t.children[0].children;for(var c in d)c<=o&&(n+=d[c].offsetHeight,n+=parseInt(d[c].style.marginTop||0),n+=parseInt(d[c].style.marginBottom||0));return n+r-r},classObject:function(){var t={};switch(this.options.effect){case"fade":t={"slider-fade":!0}}return t}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"sliderComputed",mounted:function(){var t=this,e=this;this.$emit("init",this.data),this.$on("slideTo",function(e){t.slide(e)}),this.$on("slideNext",function(){t.next()}),this.$on("slidePre",function(){t.pre()}),this.$on("autoplayStart",function(i){t.options.autoplay=i||t.options.autoplay||1e3,t.clock().begin(e)}),this.$on("autoplayStop",function(){t.options.autoplay=0,t.clock().stop(e)}),this.$on("loadingShow",function(){t.config.loading=!0}),this.$on("loadingHide",function(){t.config.loading=!1}),this.options.autoplay&&this.clock().begin(e),this.config.resize&&window.addEventListener("resize",this.resize),document.addEventListener("visibilitychange",this.visibilitychange,!1)},beforeDestroy:function(){this.options.autoplay&&this.clock().stop(this),!0===this.options.preventDocumentMove&&document.removeEventListener("touchmove",this.preventDefault()),document.removeEventListener("visibilitychange",this.visibilitychange,!1),window.removeEventListener("resize",this.resize)},watch:{$route:function(){if(this.route){var t=this.data.currentPage,e=this.config.sliderLength;this.config.transitionEnding=!1,t<0?this.slide(0,"animationnone"):t>=(this.pagenums||e)?this.slide(e-1,"animationnone"):this.slide(t,"animationnone"),this.options.autoplay&&this.clock().begin(this),this.route=!1}else this.route=!0,this.options.autoplay&&this.clock().stop(this)}},methods:{visibilitychange:function(){document.hidden?this.options.autoplay&&this.clock().stop(this):this.options.autoplay&&this.clock().begin(this)},resize:function(){if(this.config.pageWidth=this.$el.offsetWidth,this.config.pageHeight=this.$el.offsetHeight,this.data.currentPage>=this.config.sliderLength&&this.options.loop)return this.slide(0,"animationnone"),!1;this.slide(this.data.currentPage,"animationnone")},onItemTransitionEnd:function(t){if(t.target===t.currentTarget){var e=this;setTimeout(function(){e.config.itemTransitionEnding=!1},0)}}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderClock",data:function(){return{data:{},config:{setIntervalid:""}}},methods:{clock:function(){return{begin:function(t){t.config.setIntervalid||0!==t.options.autoplay&&(t.config.setIntervalid=setInterval(function(){t.next(),t.data.currentPage!==t.config.sliderLength-1||t.options.loop||(clearInterval(t.config.setIntervalid),t.config.setIntervalid=0)},t.options.autoplay))},stop:function(t){clearInterval(t.config.setIntervalid),t.config.setIntervalid=0}}}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderDom",data:function(){return{data:{currentPage:this.options.currentPage||0},config:{pageWidth:"",pageHeight:"",sliderLength:0,renderTime:"",loop:this.options.loop,loopedSlides:this.options.loopedSlides||1,pagination:void 0===this.options.pagination||this.options.pagination}}},methods:{renderDom:function(t){var e=this;this.config.renderTime&&clearTimeout(this.config.renderTime),this.config.sliderLength+=1,e.config.sliderLength>=1&&"fade"===e.options.effect&&(t.previousSibling?t.style["z-index"]=99-e.config.sliderLength:t.style["z-index"]=99+e.config.sliderLength),this.config.renderTime=setTimeout(function(){e.config.renderTime=void 0,e.$emit("hasRenderDom",e.data),e.$nextTick(function(){e.slide(e.data.currentPage,"animationnone")})},0)}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(this.config.sliderLength){var t=this.config.sliderLength,e=this.options.loopedSlides||1,i=this.$children[0].$children,n=this.data.currentPage,o=i.filter(function(t){var e=t.$vnode.isCloned;return"slideritem"===t.$options._componentTag&&!e});if(i.forEach(function(t){t.removeActive(),t.removeCopyActive()}),"nest"===this.config.effect)return;if(o[n]&&o[n].addActive(),n<0||n>=t){i[n+e]&&i[n+e].addCopyActive();var r=n<0?t+n:0+n-t;o[r].addActive()}}if(this.data.currentPage<0||this.data.currentPage>=this.config.sliderLength)return!1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderCoverflow",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,thresholdDistance:this.options.thresholdDistance||50,widthScalingRatio:this.options.widthScalingRatio||.8,heightScalingRatio:this.options.heightScalingRatio||.8,deviation:this.options.deviation||200}}},methods:{pre:function(){var t=this.config.$parent,e=this.config.slidesToScroll;return this.data.currentPage>=1&&this.data.currentPage-e>=0?(this.data.currentPage-=e||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage-e<0)||t&&t.config.nested?void this.slide():(this.data.currentPage-=e||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)},next:function(){var t=this.config.$parent,e=this.config.sliderLength,i=this.config.slidesToScroll,n=this.options.loop?0:(e-this.config.slidesPerView)/i;return this.data.currentPage<e-1&&this.data.currentPage+i<=(n?n+i-1:e-1)?(this.data.currentPage+=this.options.slidesToScroll||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage+i>e-1)||t&&t.config.nested?void this.slide():(this.data.currentPage+=this.options.slidesToScroll||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderCoverflow",data:function(){return{data:{},config:{thresholdDistance:this.options.thresholdDistance||50,transitionEnding:!1,itemTransitionEnding:!1}}},methods:{pre:function(){var t=this.config.sliderLength;return this.data.currentPage>=1?(this.data.currentPage-=1,this.slide(),!1):this.options.loop&&(this.data.currentPage-=1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.data.currentPage<0)?(this.slide(t-1),this.config.transitionEnding=!1,this.config.itemTransitionEnding=!1,!1):void this.slide()},next:function(){var t=this.config.sliderLength;return this.data.currentPage<t-1?(this.data.currentPage+=1,this.slide(),!1):this.options.loop&&(this.data.currentPage+=1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.data.currentPage>=t)?(this.slide(0),this.config.transitionEnding=!1,this.config.itemTransitionEnding=!1,!1):void this.slide()},slide:function(t,e){this.fadeDom()},fadeDom:function(){for(var t=this.data.currentPage,e=this.$el.getElementsByClassName("slider-wrapper")[0].getElementsByClassName("slider-item"),i=this.options.speed,n=0;n<e.length;n++)n===t||n===t+1?(e[n].style.opacity="1",e[n].style["transition-property"]="opacity",e[n].style["-webkit-transition-property"]="opacity",e[n].style["transition-duration"]=(this.config.animation?i||300:0)+"ms",e[n].style["-wekkit-transition-duration"]=(this.config.animation?i||300:0)+"ms"):(e[n].style.opacity="0",e[n].style["transition-duration"]=(this.config.animation?i||300:0)+"ms",e[n].style["-webkit-transition-duration"]=(this.config.animation?i||300:0)+"ms")}}};e.default=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var n=i(60),o=i(61),r=i(62);t.exports=function(t){return n(t)||o(t)||r()}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(64)),r={props:{options:{type:Object,default:function(){return{}}}},name:"sliderBasic",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,$parent:this.judgeParentSlider(this),nested:void 0===this.options.nested||this.options.nested}}},methods:{judgeParentSlider:function(t){return t.$parent&&t.$parent.$vnode&&"slider"===t.$parent.$options._componentTag?t.$parent:(!t.$parent||void 0!==t.$parent.$vnode)&&this.judgeParentSlider(t.$parent)},swipeMove:function(t){this.config.tracking&&"slide"===this.config.effect&&("vertical"===this.config.direction?this.data.posheight=-this.currentHeight+this.data.end.y-this.data.start.y:this.data.poswidth=-this.currentWidth+this.data.end.x-this.data.start.x),this.config.tracking&&"nest"===this.config.effect&&o.default.methods.swipeMove.call(this,t)},pre:function(){var t=this.config.$parent,e=this.config.slidesToScroll;return this.data.currentPage>=1&&this.data.currentPage-e>=0?(this.data.currentPage-=e||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage-e<0)||t&&t.config.nested?"nest"===this.config.effect?o.default.methods.pre.call(this):void this.slide(0):(this.data.currentPage-=e||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)},next:function(){var t=this.config.$parent,e=this.config.sliderLength,i=this.config.slidesToScroll;return this.data.currentPage<e-1&&this.data.currentPage+i<=e-1?(this.data.currentPage+=this.options.slidesToScroll||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage+i>e-1)||t&&t.config.nested?"nest"===this.config.effect?o.default.methods.next.call(this):void this.slide():(this.data.currentPage+=this.options.slidesToScroll||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)},slide:function(t,e){"vertical"===this.options.direction&&"fade"!==this.config.effect?this.data.posheight=-this.currentHeight:this.data.poswidth=-this.currentWidth}}};e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderNest",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",thresholdDistance:this.options.thresholdDistance||50,thresholdTime:this.options.thresholdTime||1e3,direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,$parent:this.judgeParentSlider(this),nested:void 0===this.options.nested||this.options.nested}}},methods:{judgeParentSlider:function(t){return t.$parent&&t.$parent.$vnode&&"vue-component-1-slider"===t.$parent.$vnode.tag?t.$parent:(!t.$parent||void 0!==t.$parent.$vnode)&&this.judgeParentSlider(t.$parent)},swipeMove:function(t){var e=this.config.$parent;if(e&&e.config.direction===this.config.direction&&t.stopPropagation(),this.config.tracking)if("vertical"===this.config.direction)if(e&&"vertical"===e.options.direction&&0===this.data.currentPage&&this.data.end.y-this.data.start.y>=0&&e.config.nested&&(!e.options.preventRebound||0!==e.data.currentPage))e.data.posheight=-e.currentHeight+this.data.end.y-this.data.start.y;else if(e&&"vertical"===e.options.direction&&this.data.currentPage===this.config.sliderLength-1&&this.data.end.y-this.data.start.y<=0&&e.config.nested)e.data.posheight=-e.currentHeight+this.data.end.y-this.data.start.y;else{if(this.options.preventRebound&&!this.options.loop)return;this.data.posheight=-this.currentHeight+this.data.end.y-this.data.start.y}else if(e&&"vertical"!==e.options.direction&&0===this.data.currentPage&&this.data.end.x-this.data.start.x>=0&&e.config.nested&&(!e.options.preventRebound||0!==e.data.currentPage))e.data.poswidth=-e.currentWidth+this.data.end.x-this.data.start.x;else if(e&&"vertical"!==e.options.direction&&this.data.currentPage===this.config.sliderLength-1&&this.data.end.x-this.data.start.x<=0&&e.config.nested)e.data.poswidth=-e.currentWidth+this.data.end.x-this.data.start.x;else{if(this.options.preventRebound&&!this.options.loop)return;this.data.poswidth=-this.currentWidth+this.data.end.x-this.data.start.x}},pre:function(){var t=this.config.$parent;if(t&&0===this.data.currentPage&&t.config.nested)return t.pre(),this.slide(),!1},next:function(){var t=this.config.sliderLength,e=this.config.$parent;if(e&&this.data.currentPage===t-1&&e.config.nested)return this.config.$parent.next(),this.slide(),!1}}};e.default=n},function(t,e,i){"use strict";var n=i(8);i.n(n).a},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,n=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)?t:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?i+r:n+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"sliderBasic",data:function(){return{data:{},config:{}}},methods:{transform:function(){var t=this.$parent.$parent.options,e=this.$parent.$parent.data,i=this.$parent.$parent.config,n=this.index,o=i.pageWidth/2-this.data.$el.offsetWidth/2,r=o-i.deviation+"px",s=o+i.deviation+"px",a=o+"px",d={};return n===e.currentPage-1||n===this.pageLength-2&&-1===e.currentPage?(d.transform="translate3D("+r+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1","left"===e.direction?d["z-index"]="10":d["z-index"]="1"):n===e.currentPage+1||1===n&&e.currentPage===this.pageLength?(d.transform="translate3D("+s+",0 ,0)",d.transform="translate3D("+s+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1","left"===e.direction?d["z-index"]="1":d["z-index"]="10"):n===e.currentPage?(d.transform="translate3D("+a+",0 ,0) scale3d(1,1,1)",d["z-index"]="99",d.opacity="1"):(d.transform="translate3D("+a+",0 ,0)",d.opacity="0"),n===this.pageLength-1&&0===e.currentPage&&(d.transform="translate3D("+r+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1"),0===n&&e.currentPage===this.pageLength-1&&(d.transform="translate3D("+s+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1"),(n!==this.pageLength-1&&n!==this.pageLength-2||-1!==e.currentPage)&&(0!==n&&1!==n||e.currentPage!==this.pageLength)||(d.opacity="1",0===n&&(d["z-index"]="99"),n===this.pageLength-1&&(d["z-index"]="99")),d.transitionDuration=(i.animation?t.speed||300:0)+"ms",d["-webkitTransitionDuration"]=(i.animation?t.speed||300:0)+"ms",d.position="absolute",d}}}},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.slideritem=e.slider=void 0;var o=n(i(5)),r=n(i(4)),s=o.default;e.slider=s;var a=r.default;e.slideritem=a}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("vueConciseSlider",[],e):"object"==typeof exports?exports.vueConciseSlider=e():t.vueConciseSlider=e()}(window,function(){return function(t){var e=window.webpackHotUpdatevueConciseSlider;window.webpackHotUpdatevueConciseSlider=function(t,i){!function(t,e){if(!x[t]||!b[t])return;for(var i in b[t]=!1,e)Object.prototype.hasOwnProperty.call(e,i)&&(g[i]=e[i]);0==--m&&0===y&&E()}(t,i),e&&e(t,i)};var i,n=!0,o="32a2e602f174f7aae628",r=1e4,s={},a=[],d=[];function c(t){var e=S[t];if(!e)return M;var n=function(n){return e.hot.active?(S[n]?-1===S[n].parents.indexOf(t)&&S[n].parents.push(t):(a=[t],i=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),a=[]),M(n)},o=function(t){return{configurable:!0,enumerable:!0,get:function(){return M[t]},set:function(e){M[t]=e}}};for(var r in M)Object.prototype.hasOwnProperty.call(M,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(n,r,o(r));return n.e=function(t){return"ready"===f&&u("prepare"),y++,M.e(t).then(e,function(t){throw e(),t});function e(){y--,"prepare"===f&&(w[t]||$(t),0===y&&0===m&&E())}},n.t=function(t,e){return 1&e&&(t=n(t)),M.t(t,-2&e)},n}function l(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:i!==t,active:!0,accept:function(t,i){if(void 0===t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var n=0;n<t.length;n++)e._acceptedDependencies[t[n]]=i||function(){};else e._acceptedDependencies[t]=i||function(){}},decline:function(t){if(void 0===t)e._selfDeclined=!0;else if("object"==typeof t)for(var i=0;i<t.length;i++)e._declinedDependencies[t[i]]=!0;else e._declinedDependencies[t]=!0},dispose:function(t){e._disposeHandlers.push(t)},addDisposeHandler:function(t){e._disposeHandlers.push(t)},removeDisposeHandler:function(t){var i=e._disposeHandlers.indexOf(t);i>=0&&e._disposeHandlers.splice(i,1)},check:T,apply:_,status:function(t){if(!t)return f;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:s[t]};return i=void 0,e}var h=[],f="idle";function u(t){f=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,g,v,m=0,y=0,w={},b={},x={};function P(t){return+t+""===t?+t:t}function T(t){if("idle"!==f)throw new Error("check() is only allowed in idle status");return n=t,u("check"),(e=r,e=e||1e4,new Promise(function(t,i){if("undefined"==typeof XMLHttpRequest)return i(new Error("No browser support"));try{var n=new XMLHttpRequest,r=M.p+""+o+".hot-update.json";n.open("GET",r,!0),n.timeout=e,n.send(null)}catch(t){return i(t)}n.onreadystatechange=function(){if(4===n.readyState)if(0===n.status)i(new Error("Manifest request to "+r+" timed out."));else if(404===n.status)t();else if(200!==n.status&&304!==n.status)i(new Error("Manifest request to "+r+" failed."));else{try{var e=JSON.parse(n.responseText)}catch(t){return void i(t)}t(e)}}})).then(function(t){if(!t)return u("idle"),null;b={},w={},x=t.c,v=t.h,u("prepare");var e=new Promise(function(t,e){p={resolve:t,reject:e}});g={};return $(1),"prepare"===f&&0===y&&0===m&&E(),e});var e}function $(t){x[t]?(b[t]=!0,m++,function(t){var e=document.getElementsByTagName("head")[0],i=document.createElement("script");i.charset="utf-8",i.src=M.p+""+t+"."+o+".hot-update.js",e.appendChild(i)}(t)):w[t]=!0}function E(){u("ready");var t=p;if(p=null,t)if(n)Promise.resolve().then(function(){return _(n)}).then(function(e){t.resolve(e)},function(e){t.reject(e)});else{var e=[];for(var i in g)Object.prototype.hasOwnProperty.call(g,i)&&e.push(P(i));t.resolve(e)}}function _(e){if("ready"!==f)throw new Error("apply() is only allowed in ready status");var i,n,r,d,c;function l(t){for(var e=[t],i={},n=e.slice().map(function(t){return{chain:[t],id:t}});n.length>0;){var o=n.pop(),r=o.id,s=o.chain;if((d=S[r])&&!d.hot._selfAccepted){if(d.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:r};if(d.hot._main)return{type:"unaccepted",chain:s,moduleId:r};for(var a=0;a<d.parents.length;a++){var c=d.parents[a],l=S[c];if(l){if(l.hot._declinedDependencies[r])return{type:"declined",chain:s.concat([c]),moduleId:r,parentId:c};-1===e.indexOf(c)&&(l.hot._acceptedDependencies[r]?(i[c]||(i[c]=[]),h(i[c],[r])):(delete i[c],e.push(c),n.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:i}}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];-1===t.indexOf(n)&&t.push(n)}}e=e||{};var p={},m=[],y={},w=function(){console.warn("[HMR] unexpected require("+T.moduleId+") to disposed module")};for(var b in g)if(Object.prototype.hasOwnProperty.call(g,b)){var T;c=P(b);var $=!1,E=!1,_=!1,O="";switch((T=g[b]?l(c):{type:"disposed",moduleId:b}).chain&&(O="\nUpdate propagation: "+T.chain.join(" -> ")),T.type){case"self-declined":e.onDeclined&&e.onDeclined(T),e.ignoreDeclined||($=new Error("Aborted because of self decline: "+T.moduleId+O));break;case"declined":e.onDeclined&&e.onDeclined(T),e.ignoreDeclined||($=new Error("Aborted because of declined dependency: "+T.moduleId+" in "+T.parentId+O));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(T),e.ignoreUnaccepted||($=new Error("Aborted because "+c+" is not accepted"+O));break;case"accepted":e.onAccepted&&e.onAccepted(T),E=!0;break;case"disposed":e.onDisposed&&e.onDisposed(T),_=!0;break;default:throw new Error("Unexception type "+T.type)}if($)return u("abort"),Promise.reject($);if(E)for(c in y[c]=g[c],h(m,T.outdatedModules),T.outdatedDependencies)Object.prototype.hasOwnProperty.call(T.outdatedDependencies,c)&&(p[c]||(p[c]=[]),h(p[c],T.outdatedDependencies[c]));_&&(h(m,[T.moduleId]),y[c]=w)}var j,D=[];for(n=0;n<m.length;n++)c=m[n],S[c]&&S[c].hot._selfAccepted&&D.push({module:c,errorHandler:S[c].hot._selfAccepted});u("dispose"),Object.keys(x).forEach(function(t){!1===x[t]&&function(t){delete installedChunks[t]}(t)});for(var k,L,C=m.slice();C.length>0;)if(c=C.pop(),d=S[c]){var R={},I=d.hot._disposeHandlers;for(r=0;r<I.length;r++)(i=I[r])(R);for(s[c]=R,d.hot.active=!1,delete S[c],delete p[c],r=0;r<d.children.length;r++){var z=S[d.children[r]];z&&((j=z.parents.indexOf(c))>=0&&z.parents.splice(j,1))}}for(c in p)if(Object.prototype.hasOwnProperty.call(p,c)&&(d=S[c]))for(L=p[c],r=0;r<L.length;r++)k=L[r],(j=d.children.indexOf(k))>=0&&d.children.splice(j,1);for(c in u("apply"),o=v,y)Object.prototype.hasOwnProperty.call(y,c)&&(t[c]=y[c]);var W=null;for(c in p)if(Object.prototype.hasOwnProperty.call(p,c)&&(d=S[c])){L=p[c];var A=[];for(n=0;n<L.length;n++)if(k=L[n],i=d.hot._acceptedDependencies[k]){if(-1!==A.indexOf(i))continue;A.push(i)}for(n=0;n<A.length;n++){i=A[n];try{i(L)}catch(t){e.onErrored&&e.onErrored({type:"accept-errored",moduleId:c,dependencyId:L[n],error:t}),e.ignoreErrored||W||(W=t)}}}for(n=0;n<D.length;n++){var H=D[n];c=H.module,a=[c];try{M(c)}catch(t){if("function"==typeof H.errorHandler)try{H.errorHandler(t)}catch(i){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:c,error:i,originalError:t}),e.ignoreErrored||W||(W=i),W||(W=t)}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:c,error:t}),e.ignoreErrored||W||(W=t)}}return W?(u("fail"),Promise.reject(W)):(u("idle"),new Promise(function(t){t(m)}))}var S={};function M(e){if(S[e])return S[e].exports;var i=S[e]={i:e,l:!1,exports:{},hot:l(e),parents:(d=a,a=[],d),children:[]};return t[e].call(i.exports,i,i.exports,c(e)),i.l=!0,i.exports}return M.m=t,M.c=S,M.d=function(t,e,i){M.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},M.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},M.t=function(t,e){if(1&e&&(t=M(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(M.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)M.d(i,n,function(e){return t[e]}.bind(null,n));return i},M.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return M.d(e,"a",e),e},M.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},M.p="",M.h=function(){return o},c(99)(M.s=99)}([function(t,e,i){"use strict";function n(t,e,i,n,o,r,s,a){var d,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=d):o&&(d=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),d)if(c.functional){c._injectStyles=d;var l=c.render;c.render=function(t,e){return d.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,d):[d]}return{exports:t,options:c}}i.d(e,"a",function(){return n})},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var o=(s=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),r=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[i].concat(r).concat([o]).join("\n")}var s;return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];null!=r&&(n[r]=!0)}for(o=0;o<t.length;o++){var s=t[o];null!=s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},function(t,e,i){var n,o,r={},s=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),a=function(t){var e={};return function(t){return void 0===e[t]&&(e[t]=function(t){return document.querySelector(t)}.call(this,t)),e[t]}}(),d=null,c=0,l=[],h=i(71);function f(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=r[n.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](n.parts[s]);for(;s<n.parts.length;s++)o.parts.push(y(n.parts[s],e))}else{var a=[];for(s=0;s<n.parts.length;s++)a.push(y(n.parts[s],e));r[n.id]={id:n.id,refs:1,parts:a}}}}function u(t,e){for(var i=[],n={},o=0;o<t.length;o++){var r=t[o],s=e.base?r[0]+e.base:r[0],a={css:r[1],media:r[2],sourceMap:r[3]};n[s]?n[s].parts.push(a):i.push(n[s]={id:s,parts:[a]})}return i}function p(t,e){var i=a(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=l[l.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),l.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(e)}}function g(t){t.parentNode.removeChild(t);var e=l.indexOf(t);e>=0&&l.splice(e,1)}function v(t){var e=document.createElement("style");return t.attrs.type="text/css",m(e,t.attrs),p(t,e),e}function m(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function y(t,e){var i,n,o,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var s=c++;i=d||(d=v(e)),n=x.bind(null,i,s,!1),o=x.bind(null,i,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",m(e,t.attrs),p(t,e),e}(e),n=function(t,e,i){var n=i.css,o=i.sourceMap,r=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||r)&&(n=h(n));o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,i,e),o=function(){g(i),i.href&&URL.revokeObjectURL(i.href)}):(i=v(e),n=function(t,e){var i=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),o=function(){g(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=s()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var i=u(t,e);return f(i,e),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o];(a=r[s.id]).refs--,n.push(a)}t&&f(u(t,e),e);for(o=0;o<n.length;o++){var a;if(0===(a=n[o]).refs){for(var d=0;d<a.parts.length;d++)a.parts[d]();delete r[a.id]}}}};var w,b=(w=[],function(t,e){return w[t]=e,w.filter(Boolean).join("\n")});function x(t,e,i,n){var o=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}},function(t,e,i){"use strict";i.r(e);var n=i(13),o=i(9);for(var r in o)"default"!==r&&function(t){i.d(e,t,function(){return o[t]})}(r);var s=i(0),a=Object(s.a)(o.default,n.a,n.b,!1,null,null,null);a.options.__file="slider_item.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(14),o=i(6);for(var r in o)"default"!==r&&function(t){i.d(e,t,function(){return o[t]})}(r);i(70);var s=i(0),a=Object(s.a)(o.default,n.a,n.b,!1,null,"89a66c72",null);a.options.__file="slider.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(7),o=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,function(){return n[t]})}(r);e.default=o.a},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(15)),r=n(i(17)),s=n(i(18)),a=n(i(19)),d=n(i(20)),c=n(i(21)),l=n(i(11)),h=n(i(67)),f=n(i(22)),u=n(i(23)),p=n(i(69)),g={props:{options:{type:Object,default:function(){return{}}}},name:"slider",mixins:[c.default,o.default,d.default,a.default,s.default,h.default,f.default,u.default,p.default],data:function(){return{data:{},config:{pageWidth:0,pageHeight:0,loading:!1,effect:this.options.effect||"slide",resize:void 0===this.options.resize||this.options.resize,containerClass:{"swiper-container-vertical":!1,"swiper-container-horizontal":!0,"swiper-container-cursorGrab":this.options.grabCursor||!1}}}},mounted:function(){this.config.pageWidth=this.$el.offsetWidth,this.config.pageHeight=this.$el.offsetHeight,"vertical"===this.options.direction?this.config.containerClass["swiper-container-vertical"]=!0:this.config.containerClass["swiper-container-horizontal"]=!0,document.removeEventListener("visibilitychange",this.visibilitychange,!1),window.removeEventListener("resize",this.resize)},methods:{visibilitychange:function(){document.hidden?this.options.autoplay&&this.clock().stop(this):this.options.autoplay&&this.clock().begin(this)},resize:function(){if(this.s_data.pageWidth=this.$el.offsetWidth,this.s_data.pageHeight=this.$el.offsetHeight,this.data.currentPage>=this.s_data.sliderLength&&this.options.loop)return this.slide(0,"animationnone"),!1;this.slide(this.data.currentPage,"animationnone")},swipeStart:function(t){o.default.methods.swipeStart.call(this,t)&&"free"===this.config.effect&&p.default.methods.swipeStart.call(this,t)},swipeMove:function(t){var e=o.default.methods.swipeMove.call(this,t);(e&&"slide"===this.config.effect||"nest"===this.config.effect)&&h.default.methods.swipeMove.call(this,t),e&&"free"===this.config.effect&&p.default.methods.swipeMove.call(this,t)},swipeEnd:function(t){o.default.methods.swipeEnd.call(this,t),"free"===this.config.effect&&p.default.methods.swipeEnd.call(this,t)},swipeOut:function(t){o.default.methods.swipeOut.call(this,t)},onTransitionEnd:function(t){o.default.methods.onTransitionEnd.call(this,t),"free"===this.config.effect&&p.default.methods.onTransitionEnd.call(this,t)},onItemTransitionEnd:function(t){o.default.methods.onItemTransitionEnd.call(this,t)},pre:function(){this.data.direction="left","slide"!==this.config.effect&&"nest"!==this.config.effect&&"free"!==this.config.effect||h.default.methods.pre.call(this),"coverflow"===this.config.effect&&f.default.methods.pre.call(this),"fade"===this.config.effect&&u.default.methods.pre.call(this)},next:function(){this.data.direction="right","slide"!==this.config.effect&&"nest"!==this.config.effect&&"free"!==this.config.effect||h.default.methods.next.call(this),"coverflow"===this.config.effect&&f.default.methods.next.call(this),"fade"===this.config.effect&&u.default.methods.next.call(this)},slide:function(t,e){this.$emit("slide",this.data),l.default.call(this,t,e),this.config.animation=!0,"animationnone"===e&&(this.config.animation=!1),(t||0===t)&&(this.data.currentPage=t),this.config.speed=this.options.speed||this.config.speed||300,"slide"!==this.config.effect&&"nest"!==this.config.effect&&"free"!==this.config.effect||h.default.methods.slide.call(this,t,e),"fade"===this.config.effect&&u.default.methods.slide.call(this,t,e)},preventDefault:function(t){t.preventDefault()}},components:{sliderWrapper:r.default,renderpagination:{render:function(t){var e=this.index,i=this.options.renderPagination;return i.call(this,t,e)},name:"renderpagination",props:{index:{type:Number,required:!0},options:{type:Object,required:!0}}}}};e.default=g},function(t,e,i){var n=i(12);"string"==typeof n&&(n=[[t.i,n,""]]);var o={transform:void 0},r=i(3)(n,o);n.locals&&(t.exports=n.locals),n.locals||t.hot.accept(12,function(){var e=i(12);"string"==typeof e&&(e=[[t.i,e,""]]),r(e)}),t.hot.dispose(function(){r()})},function(t,e,i){"use strict";i.r(e);var n=i(10),o=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,function(){return n[t]})}(r);e.default=o.a},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(72)),r={props:["index","pageLength"],name:"slideritem",data:function(){return{slideClass:{"slider-item":!0,"slider-active":!1,"slider-copy":!1,"slider-active-copy":!1},data:{start:{},end:{},index:this.index?this.index:this.$vnode.key,$el:""}}},computed:{transform:function(){var t=this.$parent.$parent.options,e=this.$parent.$parent.data,i=this.$parent.$parent.config;return t&&e&&i&&this.data.$el?"coverflow"===t.effect?o.default.methods.transform.call(this):void 0:{}}},mounted:function(){this.data.$el=this.$el,this.$vnode.isCloned?(console.log("$vnode",this.$vnode),this.slideClass["slider-copy"]=!0):this.renderDom()},methods:{touchStart:function(t){if("touchstart"===t.type){if(t.touches.length>1)return this.data.tracking=!1,!1;this.data.start.t=(new Date).getTime(),this.data.start.x=t.targetTouches[0].clientX,this.data.start.y=t.targetTouches[0].clientY,this.data.end.x=t.targetTouches[0].clientX,this.data.end.y=t.targetTouches[0].clientY,this.data.start.pageX=t.targetTouches[0].pageX,this.data.start.pageY=t.targetTouches[0].pageY}else this.data.start.t=(new Date).getTime(),this.data.start.x=t.clientX,this.data.start.y=t.clientY,this.data.end.x=t.clientX,this.data.end.y=t.clientY,this.data.start.pageX=t.pageX,this.data.start.pageY=t.pageY},touchEnd:function(t){var e=(new Date).getTime()-this.data.start.t;"touchend"===t.type?(this.data.end.t=(new Date).getTime(),this.data.end.x=t.changedTouches[0].clientX,this.data.end.y=t.changedTouches[0].clientY,this.data.end.pageX=t.changedTouches[0].pageX,this.data.end.pageY=t.changedTouches[0].pageY):(this.data.end.t=(new Date).getTime(),this.data.end.x=t.clientX,this.data.end.y=t.clientY,this.data.end.pageX=t.pageX,this.data.end.pageY=t.pageY);var i=this.data.end.pageX-this.data.start.pageX||0,n=this.data.end.pageY-this.data.start.pageY||0;e<300&&Math.abs(i)<10&&Math.abs(n)<10&&this.$emit("tap",this.data)},renderDom:function(){this.$parent&&this.$parent.renderDom(this.$el)},addActive:function(){this.slideClass["slider-active"]=!0},addCopyActive:function(){this.slideClass["slider-active-copy"]=!0},removeCopyActive:function(){this.slideClass["slider-active-copy"]=!1},removeActive:function(){this.slideClass["slider-active"]=!1},onTransitionEnd:function(t){this.$parent&&this.$parent.onItemTransitionEnd(t)}}};e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(this.config.sliderLength){var t=this.config.sliderLength,e=this.options.loopedSlides||1,i=this.$children[0].$children,n=this.data.currentPage,o=this.config.slotsFilter,r=this.config.virtual,s=this.config.slidesPerView||1;if(i.forEach(function(t){t.removeActive(),t.removeCopyActive()}),"nest"===this.config.effect)return;if(o[n]&&o[n]&&o[n].componentInstance&&o[n].componentInstance.addActive(),n<0||n>=t){i[n+e]&&!r&&i[n+e].addCopyActive(),i[n+e-s-2]&&r&&i[n+e-s-2].addCopyActive();var a=n<0?t+n:0+n-t;o[a]&&o[a].componentInstance&&o[a].componentInstance.addActive()}}if(this.data.currentPage<0||this.data.currentPage>=this.config.sliderLength)return!1}},function(t,e,i){(t.exports=i(2)(!1)).push([t.i,"\n.slider-container[data-v-89a66c72] {\r\n margin: 0 auto;\r\n overflow: hidden;\r\n position: relative;\r\n z-index: 1;\r\n height: 100%;\r\n width: 100%;\r\n white-space: nowrap;\n}\n.slider-center-center[data-v-89a66c72] {\r\n margin: auto;\r\n z-index: 1;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\n}\n.slider-touch[data-v-89a66c72] {\r\n height: 100%;\n}\n.swiper-container-horizontal > * > .slider-wrapper[data-v-89a66c72] {\r\n box-sizing: content-box;\r\n display: flex;\r\n height: 100%;\r\n position: relative;\r\n transition-property: transform;\r\n width: auto;\r\n z-index: 1;\r\n align-items: center;\r\n /*flex-direction: column;*/\r\n /* 09版 */\r\n -webkit-box-orient: vertical;\r\n /* 12版 */\r\n -webkit-flex-direction: row;\r\n -moz-flex-direction: row;\r\n -ms-flex-direction: row;\r\n -o-flex-direction: row;\r\n flex-direction: row;\n}\r\n/*垂直*/\n.swiper-container-vertical > * > .slider-wrapper[data-v-89a66c72] {\r\n box-sizing: content-box;\r\n display: flex;\r\n height: 100%;\r\n position: relative;\r\n transition-property: transform;\r\n width: auto;\r\n z-index: 1;\r\n align-items: center;\r\n /*flex-direction: column;*/\r\n /* 09版 */\r\n -webkit-box-orient: vertical;\r\n /* 12版 */\r\n -webkit-flex-direction: column;\r\n -moz-flex-direction: column;\r\n -ms-flex-direction: column;\r\n -o-flex-direction: column;\r\n flex-direction: column;\n}\n.slider-item[data-v-89a66c72] {\r\n flex-shrink: 0;\r\n height: 100%;\r\n position: relative;\r\n width: 100%;\n}\n.slider-item[data-v-89a66c72] {\r\n align-items: center;\r\n /*background: #fff none repeat scroll 0 0;*/\r\n display: flex;\r\n font-size: 40px;\r\n justify-content: center;\r\n text-align: center;\r\n color: #fff;\r\n /*display: inline-block;*/\n}\n.slider-fade .slider-item[data-v-89a66c72] {\r\n position: absolute;\r\n left: 0;\r\n opacity: 0;\n}\n.slider-pagination[data-v-89a66c72] {\r\n position: absolute;\r\n text-align: center;\r\n transform: translate3d(0px, 0px, 0px);\r\n /*transition: all 350ms ease 0s;*/\r\n z-index: 10;\n}\n.swiper-container-horizontal > .slider-pagination-bullets[data-v-89a66c72] {\r\n bottom: 10px;\r\n left: 0;\r\n width: 100%;\n}\n.swiper-container-horizontal > * > .slider-pagination-bullet[data-v-89a66c72] {\r\n background: #000 none repeat scroll 0 0;\r\n border-radius: 100%;\r\n display: inline-block;\r\n height: 8px;\r\n opacity: 0.2;\r\n width: 8px;\r\n cursor: pointer;\r\n margin: 0 5px;\n}\r\n/*垂直*/\n.swiper-container-vertical > .slider-pagination-bullets[data-v-89a66c72] {\r\n left: 0;\r\n bottom: auto;\r\n left: auto;\r\n width: auto;\r\n right: 10px;\r\n top: 50%;\r\n transform: translate3d(0px, -50%, 0px);\n}\n.swiper-container-vertical > * > .slider-pagination-bullet[data-v-89a66c72] {\r\n background: #000 none repeat scroll 0 0;\r\n border-radius: 100%;\r\n height: 8px;\r\n opacity: 0.2;\r\n width: 8px;\r\n cursor: pointer;\r\n display: block;\r\n margin: 5px 0;\n}\n.swiper-container-vertical .slider-pagination-bullet-active[data-v-89a66c72],.swiper-container-horizontal .slider-pagination-bullet-active[data-v-89a66c72]{\r\n background: #fff none repeat scroll 0 0;\r\n opacity: 1;\n}\n.slider-loading[data-v-89a66c72] {\r\n position: absolute;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n z-index: 999;\r\n width: 100%;\r\n text-align: center\n}\n.swiper-container-cursorGrab[data-v-89a66c72] {\r\n cursor: grab;\n}\r\n",""])},function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.slideClass,style:[t.transform],on:{touchstart:t.touchStart,touchend:t.touchEnd,mousedown:t.touchStart,mouseup:t.touchEnd,"webkit-transition-end":t.onTransitionEnd,transitionend:t.onTransitionEnd}},[t._t("default")],2)},o=[];i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o})},function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"slider-container",class:t.config.containerClass,on:{mouseleave:t.swipeOut}},[i("div",{staticClass:"slider-touch",style:t.styleobj,on:{touchmove:t.swipeMove,touchstart:t.swipeStart,touchend:t.swipeEnd,mousedown:t.swipeStart,mouseup:t.swipeEnd,mousemove:t.swipeMove,"webkit-transition-end":t.onTransitionEnd,transitionend:t.onTransitionEnd,transitioncancel:t.onTransitionEnd,"webkit-transition-cancel":t.onTransitionEnd}},[i("sliderWrapper",[t._t("default")],2)],1),t._v(" "),t.config.pagination?i("div",{staticClass:"slider-pagination slider-pagination-bullets"},[t._l(t.config.$sliderItemReal.length,function(e){return[t.options.renderPagination?t._e():i("span",{key:e,staticClass:"slider-pagination-bullet",class:e-1===t.data.currentPage?"slider-pagination-bullet-active":"",on:{click:function(i){t.slide(e-1)}}}),t._v(" "),t.options.renderPagination?i("renderpagination",{key:e,class:e-1===t.data.currentPage?"slider-pagination-bullet-active-render":"",attrs:{index:e,options:t.options},nativeOn:{click:function(i){t.slide(e-1)}}}):t._e()]})],2):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0===t.config.sliderLength||t.config.loading,expression:"config.sliderLength === 0 || config.loading"}],staticClass:"slider-loading"},[t._t("loading")],2)])},o=[];i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(16),o={props:{options:{type:Object,default:function(){return{}}}},name:"sliderMove",data:function(){return{data:{poswidth:0,posheight:0,start:{},end:{},direction:""},config:{transitionEnding:!1,itemTransitionEnding:!1,animation:!1,tracking:!1,gestureDirection:"",thresholdDistance:this.options.thresholdDistance||50,thresholdTime:this.options.thresholdTime||1e3,direction:this.options.direction||"horizontal",freeze:void 0!==this.options.freeze&&this.options.freeze,preventRebound:void 0!==this.options.preventRebound&&this.options.preventRebound}}},methods:{swipeStart:function(t){if(this.config.transitionEnding)return!1;if(this.config.itemTransitionEnding&&this.options.itemAnimation)return!1;if(this.config.animation=!1,this.options.autoplay&&this.clock().stop(this),!0===this.options.preventDocumentMove&&document.addEventListener("touchmove",this.preventDefault(t)),"touchstart"===t.type){if(t.touches.length>1)return this.config.tracking=!1,!1;this.config.tracking=!0,this.data.start.t=(new Date).getTime(),this.data.start.x=t.targetTouches[0].clientX,this.data.start.y=t.targetTouches[0].clientY,this.data.end.x=t.targetTouches[0].clientX,this.data.end.y=t.targetTouches[0].clientY}else this.config.tracking=!0,this.data.start.t=(new Date).getTime(),this.data.start.x=t.clientX,this.data.start.y=t.clientY,this.data.end.x=t.clientX,this.data.end.y=t.clientY;return!0},swipeMove:function(t){if(this.config.tracking){"touchmove"===t.type?(this.data.end.x=t.targetTouches[0].clientX,this.data.end.y=t.targetTouches[0].clientY):(this.data.end.x=t.clientX,this.data.end.y=t.clientY);var e=this.data.end.x-this.data.start.x,i=this.data.end.y-this.data.start.y,o=Math.abs(e),r=Math.abs(i),s=(0,n.getTranformMaxWidth)(this.$el);if(o>=r&&"vertical"!==this.config.direction?t.preventDefault():o<=r&&"vertical"===this.config.direction&&t.preventDefault(),this.config.gestureDirection=e>0?"right":"left",this.config.preventRebound&&!this.config.loop&&("right"===this.config.gestureDirection&&0===this.data.poswidth||"left"===this.config.gestureDirection&&this.data.poswidth===-s)){this.data.start.x=this.data.end.x;var a=window.getComputedStyle(t.currentTarget).getPropertyValue("transform"),d=parseFloat(a.substring(7).split(",")[4]),c=parseFloat(a.substring(7).split(",")[5]);return this.config.freePosWidth=d,this.config.freePosHeight=c,!1}return!("vertical"===this.config.direction&&o>r)&&!("horizontal"===this.config.direction&&o<r)}return!1},swipeEnd:function(t){this.config.tracking=!1;var e=(new Date).getTime()-this.data.start.t,i=this.data.currentPage,n=this.data.end.x-this.data.start.x,o=this.data.end.y-this.data.start.y,r=this.config.thresholdDistance;if(this.options.autoplay){var s=this;setTimeout(function(){s.clock().begin(s)},this.options.autoplay)}if(!0===this.options.preventDocumentMove&&document.removeEventListener("touchmove",this.preventDefault(t)),"free"!==this.config.effect)return e>this.config.thresholdTime||e<100?(this.slide(i),!0):(Math.abs(n)<r||Math.abs(o)>r)&&"vertical"!==this.config.direction?(this.slide(i),!0):(Math.abs(n)>r||Math.abs(o)<r)&&"vertical"===this.config.direction?(this.slide(i),!0):"vertical"!==this.config.direction?n>r?(this.pre(),!0):-n>r?(this.next(),!0):(this.slide(i),!0):"vertical"===this.config.direction?o>r?(this.pre(),!0):-o>r?(this.next(),!0):(this.slide(i),!0):void 0},swipeOut:function(t){this.$el===t.target&&this.config.tracking&&this.swipeEnd(t)},onTransitionEnd:function(t,e){if(this.options.loop&&"free"!==this.config.effect&&!(this.data.currentPage>0&&this.data.currentPage<this.config.sliderLength)){var i=this;setTimeout(function(){var t=i.data.currentPage,e=i.config.sliderLength;i.config.transitionEnding=!1,t<0?i.slide(e+t,"animationnone"):t>=e&&i.slide(0+t-e,"animationnone")},0)}},onItemTransitionEnd:function(t){if(t.target===t.currentTarget){var e=this;setTimeout(function(){e.config.itemTransitionEnding=!1},0)}}}};e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranformMaxWidth=function(t){var e=t.getElementsByClassName("slider-wrapper")[0],i=Array.prototype.slice.call(e.children).filter(function(t){return-1!==t.className.indexOf("slider-item")}),n=0;return i.length&&i.forEach(function(t,e){e===i.length-1&&(n=t.offsetLeft)}),n},e.getTranformMaxHeight=function(t){var e=t.getElementsByClassName("slider-wrapper")[0],i=Array.prototype.slice.call(e.children).filter(function(t){return-1!==t.className.indexOf("slider-item")}),n=0;return i.length&&i.forEach(function(t,e){e===i.length-1&&(n=t.offsetTop)}),n}},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(63));function r(t,e){return function i(n){var o=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(10*Math.random());return e}(5),r=n.children&&n.children.map(function(t){return i(t)}),s=e(n.tag,n.data,r);return s.text=n.text,s.isComment=n.isComment,s.componentOptions=n.componentOptions,s.isCloned=!0,s.isOnce=!1,s.elm=n.elm,s.context=n.context,s.ns=n.ns,s.isStatic=n.isStatic,s.key=t.key||0===t.key?t.key+"-cppy":o+"-copy",s}(t)}var s={methods:{renderDom:function(t){this.$parent&&this.$parent.renderDom(t)},onItemTransitionEnd:function(t){this.$parent&&this.$parent.onItemTransitionEnd(t)}},computed:{styleobj:function(){var t=this.$parent.config.virtual,e=this.$parent.$el&&this.$parent.$el.querySelectorAll(".slider-item"),i=this.$parent.data.currentPage,n=this.$parent.config.pageWidth;if(!n||!t||!e||i<1)return{};var o={},r=n*[i-1];return o.transform="translate3D("+r+"px,0px,0)","fade"===this.$parent.config.effect?{}:"coverflow"===this.$parent.config.effect?{}:o}},render:function(t){var e=this.$slots.default;if(!e)return"";var i=e.filter(function(t){return!!t.componentOptions&&"slideritem"===t.componentOptions.tag});this.$parent.config.slotsFilter=i;var n=this.$parent.config.loopedSlides,s=this.$parent.config.virtual,a=this.$parent.data.currentPage,d=[],c=[];if(s){var l=a-1<0?null:a-1,h=a+1>=i.length?null:a+1,f=[];null!==l&&f.push(i[l]),f.push(i[a]),null!==h&&f.push(i[h]),e=f}if(this.$parent.config.loop&&"fade"!==this.$parent.config.effect&&"coverflow"!==this.$parent.config.effect&&i&&i.length>=2)for(var u=i?i.length:0,p=0;p<u;p++)p+n-u>=0&&d.push(r(i[p],t)),p-n<0&&c.push(r(i[p],t));return t("div",{class:{"slider-wrapper":!0,"slider-fade":"fade"===this.$parent.config.effect},style:this.styleobj,scopedSlots:this.$scopedSlots},d.concat((0,o.default)(e),c))}};e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"sliderComputed",data:function(){return{config:{speed:this.options.speed||300}}},computed:{styleobj:function(){var t={};return t.transform="translate3D("+this.data.poswidth+"px,"+this.data.posheight+"px,0)",t.transitionTimingFunction=this.options.timingFunction||"ease",t["-webkitTransitionTimingFunction"]=this.options.timingFunction||"ease",t.transitionDuration=(this.config.animation?this.config.speed||300:0)+"ms",t["-webkitTransitionDuration"]=(this.config.animation?this.config.speed||300:0)+"ms","fade"===this.config.effect?{}:"coverflow"===this.config.effect?{}:t},currentWidth:function(){if(0===this.config.sliderLength)return 0;if("fade"===this.config.effect)return 0;if("coverflow"===this.config.effect)return 0;var t=this.data.currentPage,e=this.config.pageWidth,i=this.options.loopedSlides||1,n=this.config.virtual;if(this.options.loop&&(t+=i?i<=this.config.sliderLength?i:this.config.sliderLength:1),"coverflow"===this.options.effect){this.data.currentPage;1}var o=this.config.$sliderItem,r=o[t]?o[t].offsetLeft:0,s=o[t]?o[t].offsetWidth:0,a=this.options.slidesPerView,d=this.config.sliderLength;if(this.options.centeredSlides)if(a){var c=this.data.currentPage,l=parseInt((a-1)/2);c-l<=0?c=0:c+l>=d?c=d-a:c-=l,r=o[c].offsetLeft}else r=r-e/2+s/2;if(!this.options.centeredSlides&&a){var h=this.data.currentPage,f=this.options.slidesToScroll||1;h+f>=d&&(r=o[d-f].offsetLeft)}return n&&(r=t*e),r+e-e},currentHeight:function(){var t,e=this.config.sliderLength,i=this.data.currentPage,n=0,o=i-1,r=this.config.pageWidth,s=this.options.loopedSlides||1;if(0===e||"fade"===this.config.effect)return 0;for(var a in this.options.loop&&(o=s?i+(s<=e?s:e)-1:i+1),this.$el.children)/slider-touch/gi.test(this.$el.children[a].className)&&(t=this.$el.children[a]);var d=t.children[0].children;for(var c in d)c<=o&&(n+=d[c].offsetHeight,n+=parseInt(d[c].style.marginTop||0),n+=parseInt(d[c].style.marginBottom||0));return n+r-r},classObject:function(){var t={};switch(this.options.effect){case"fade":t={"slider-fade":!0}}return t}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"sliderComputed",mounted:function(){var t=this,e=this;this.$emit("init",this.data),this.$on("slideTo",function(e){t.slide(e)}),this.$on("slideNext",function(){t.next()}),this.$on("slidePre",function(){t.pre()}),this.$on("autoplayStart",function(i){t.options.autoplay=i||t.options.autoplay||1e3,t.clock().begin(e)}),this.$on("autoplayStop",function(){t.options.autoplay=0,t.clock().stop(e)}),this.$on("loadingShow",function(){t.config.loading=!0}),this.$on("loadingHide",function(){t.config.loading=!1}),this.options.autoplay&&this.clock().begin(e),this.config.resize&&window.addEventListener("resize",this.resize),document.addEventListener("visibilitychange",this.visibilitychange,!1)},beforeDestroy:function(){this.options.autoplay&&this.clock().stop(this),!0===this.options.preventDocumentMove&&document.removeEventListener("touchmove",this.preventDefault()),document.removeEventListener("visibilitychange",this.visibilitychange,!1),window.removeEventListener("resize",this.resize)},watch:{$route:function(){if(this.route){var t=this.data.currentPage,e=this.config.sliderLength;this.config.transitionEnding=!1,t<0?this.slide(0,"animationnone"):t>=(this.pagenums||e)?this.slide(e-1,"animationnone"):this.slide(t,"animationnone"),this.options.autoplay&&this.clock().begin(this),this.route=!1}else this.route=!0,this.options.autoplay&&this.clock().stop(this)}},methods:{visibilitychange:function(){document.hidden?this.options.autoplay&&this.clock().stop(this):this.options.autoplay&&this.clock().begin(this)},resize:function(){if(this.config.pageWidth=this.$el.offsetWidth,this.config.pageHeight=this.$el.offsetHeight,this.data.currentPage>=this.config.sliderLength&&this.options.loop)return this.slide(0,"animationnone"),!1;this.slide(this.data.currentPage,"animationnone")},onItemTransitionEnd:function(t){if(t.target===t.currentTarget){var e=this;setTimeout(function(){e.config.itemTransitionEnding=!1},0)}}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderClock",data:function(){return{data:{},config:{setIntervalid:""}}},methods:{clock:function(){return{begin:function(t){t.config.setIntervalid||0!==t.options.autoplay&&(t.config.setIntervalid=setInterval(function(){t.next(),t.data.currentPage!==t.config.sliderLength-1||t.options.loop||(clearInterval(t.config.setIntervalid),t.config.setIntervalid=0)},t.options.autoplay))},stop:function(t){clearInterval(t.config.setIntervalid),t.config.setIntervalid=0}}}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderDom",data:function(){return{data:{currentPage:this.options.currentPage||0},config:{pageWidth:"",pageHeight:"",sliderLength:0,renderTime:"",loop:this.options.loop||!1,loopedSlides:this.options.loopedSlides||1,pagination:void 0===this.options.pagination||this.options.pagination,virtual:void 0!==this.options.virtual&&this.options.virtual,$sliderItem:"",$sliderItemReal:""}}},methods:{renderDom:function(t){var e=this;this.config.renderTime&&clearTimeout(this.config.renderTime),this.config.sliderLength+=1,e.config.sliderLength>=1&&"fade"===e.options.effect&&(t.previousSibling?t.style["z-index"]=99-e.config.sliderLength:t.style["z-index"]=99+e.config.sliderLength),this.config.renderTime=setTimeout(function(){e.config.renderTime=void 0,e.$emit("hasRenderDom",e.data),e.config.$sliderItem=e.$el.querySelectorAll(":scope > .slider-touch > .slider-wrapper > .slider-item"),e.config.$sliderItemReal=Array.prototype.slice.call(e.config.$sliderItem).filter(function(t){return-1===t.className.indexOf("slider-copy")}),e.$nextTick(function(){e.slide(e.data.currentPage,"animationnone")})},0)}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderCoverflow",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,thresholdDistance:this.options.thresholdDistance||50,widthScalingRatio:this.options.widthScalingRatio||.8,heightScalingRatio:this.options.heightScalingRatio||.8,deviation:this.options.deviation||200}}},methods:{pre:function(){var t=this.config.$parent,e=this.config.slidesToScroll;return this.data.currentPage>=1&&this.data.currentPage-e>=0?(this.data.currentPage-=e||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage-e<0)||t&&t.config.nested?void this.slide():(this.data.currentPage-=e||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)},next:function(){var t=this.config.$parent,e=this.config.sliderLength,i=this.config.slidesToScroll,n=this.options.loop?0:(e-this.config.slidesPerView)/i;return this.data.currentPage<e-1&&this.data.currentPage+i<=(n?n+i-1:e-1)?(this.data.currentPage+=this.options.slidesToScroll||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage+i>e-1)||t&&t.config.nested?void this.slide():(this.data.currentPage+=this.options.slidesToScroll||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)}}};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderCoverflow",data:function(){return{data:{},config:{thresholdDistance:this.options.thresholdDistance||50,transitionEnding:!1,itemTransitionEnding:!1}}},methods:{pre:function(){var t=this.config.sliderLength;return this.data.currentPage>=1?(this.data.currentPage-=1,this.slide(),!1):this.options.loop&&(this.data.currentPage-=1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.data.currentPage<0)?(this.slide(t-1),this.config.transitionEnding=!1,this.config.itemTransitionEnding=!1,!1):void this.slide()},next:function(){var t=this.config.sliderLength;return this.data.currentPage<t-1?(this.data.currentPage+=1,this.slide(),!1):this.options.loop&&(this.data.currentPage+=1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.data.currentPage>=t)?(this.slide(0),this.config.transitionEnding=!1,this.config.itemTransitionEnding=!1,!1):void this.slide()},slide:function(t,e){this.fadeDom()},fadeDom:function(){for(var t=this.data.currentPage,e=this.$el.getElementsByClassName("slider-wrapper")[0].getElementsByClassName("slider-item"),i=this.options.speed,n=0;n<e.length;n++)n===t||n===t+1?(e[n].style.opacity="1",e[n].style["transition-property"]="opacity",e[n].style["-webkit-transition-property"]="opacity",e[n].style["transition-duration"]=(this.config.animation?i||300:0)+"ms",e[n].style["-wekkit-transition-duration"]=(this.config.animation?i||300:0)+"ms"):(e[n].style.opacity="0",e[n].style["transition-duration"]=(this.config.animation?i||300:0)+"ms",e[n].style["-webkit-transition-duration"]=(this.config.animation?i||300:0)+"ms")}}};e.default=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var n=i(64),o=i(65),r=i(66);t.exports=function(t){return n(t)||o(t)||r()}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i(68)),r={props:{options:{type:Object,default:function(){return{}}}},name:"sliderBasic",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,$parent:this.judgeParentSlider(this),nested:void 0===this.options.nested||this.options.nested}}},methods:{judgeParentSlider:function(t){return t.$parent&&t.$parent.$vnode&&"slider"===t.$parent.$options.name?t.$parent:(!t.$parent||void 0!==t.$parent.$vnode)&&this.judgeParentSlider(t.$parent)},swipeMove:function(t){this.config.tracking&&"slide"===this.config.effect&&("vertical"===this.config.direction?this.data.posheight=-this.currentHeight+this.data.end.y-this.data.start.y:this.data.poswidth=-this.currentWidth+this.data.end.x-this.data.start.x),this.config.tracking&&"nest"===this.config.effect&&o.default.methods.swipeMove.call(this,t)},pre:function(){var t=this.config.$parent,e=this.config.slidesToScroll;return this.data.currentPage>=1&&this.data.currentPage-e>=0?(this.data.currentPage-=e||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage-e<0)||t&&t.config.nested?"nest"===this.config.effect?o.default.methods.pre.call(this):void this.slide(0):(this.data.currentPage-=e||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)},next:function(){var t=this.config.$parent,e=this.config.sliderLength,i=this.config.slidesToScroll;return this.data.currentPage<e-1&&this.data.currentPage+i<=e-1?(this.data.currentPage+=this.options.slidesToScroll||1,this.slide(),!1):!(this.options.loop&&this.data.currentPage+i>e-1)||t&&t.config.nested?"nest"===this.config.effect?o.default.methods.next.call(this):void this.slide():(this.data.currentPage+=this.options.slidesToScroll||1,this.config.transitionEnding=!0,this.config.itemTransitionEnding=!0,this.slide(),!1)},slide:function(t,e){"vertical"===this.options.direction&&"fade"!==this.config.effect?this.data.posheight=-this.currentHeight:this.data.poswidth=-this.currentWidth}}};e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{}}}},name:"sliderNest",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",thresholdDistance:this.options.thresholdDistance||50,thresholdTime:this.options.thresholdTime||1e3,direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,$parent:this.judgeParentSlider(this),nested:void 0===this.options.nested||this.options.nested}}},methods:{judgeParentSlider:function(t){return t.$parent&&t.$parent.$vnode&&"vue-component-1-slider"===t.$parent.$vnode.tag?t.$parent:(!t.$parent||void 0!==t.$parent.$vnode)&&this.judgeParentSlider(t.$parent)},swipeMove:function(t){var e=this.config.$parent;if(e&&e.config.direction===this.config.direction&&t.stopPropagation(),this.config.tracking)if("vertical"===this.config.direction)if(e&&"vertical"===e.options.direction&&0===this.data.currentPage&&this.data.end.y-this.data.start.y>=0&&e.config.nested&&(!e.options.preventRebound||0!==e.data.currentPage))e.data.posheight=-e.currentHeight+this.data.end.y-this.data.start.y;else if(e&&"vertical"===e.options.direction&&this.data.currentPage===this.config.sliderLength-1&&this.data.end.y-this.data.start.y<=0&&e.config.nested)e.data.posheight=-e.currentHeight+this.data.end.y-this.data.start.y;else{if(this.options.preventRebound&&!this.options.loop)return;this.data.posheight=-this.currentHeight+this.data.end.y-this.data.start.y}else if(e&&"vertical"!==e.options.direction&&0===this.data.currentPage&&this.data.end.x-this.data.start.x>=0&&e.config.nested&&(!e.options.preventRebound||0!==e.data.currentPage))e.data.poswidth=-e.currentWidth+this.data.end.x-this.data.start.x;else if(e&&"vertical"!==e.options.direction&&this.data.currentPage===this.config.sliderLength-1&&this.data.end.x-this.data.start.x<=0&&e.config.nested)e.data.poswidth=-e.currentWidth+this.data.end.x-this.data.start.x;else{if(this.options.preventRebound&&!this.options.loop)return;this.data.poswidth=-this.currentWidth+this.data.end.x-this.data.start.x}},pre:function(){var t=this.config.$parent;if(t&&0===this.data.currentPage&&t.config.nested)return t.pre(),this.slide(),!1},next:function(){var t=this.config.sliderLength,e=this.config.$parent;if(e&&this.data.currentPage===t-1&&e.config.nested)return this.config.$parent.next(),this.slide(),!1}}};e.default=n},function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(16),r=n(i(11));function s(t,e){return Math.log(e)/Math.log(t)}var a={props:{options:{type:Object,default:function(){return{}}}},name:"sliderNest",data:function(){return{data:{},config:{slidesToScroll:this.options.slidesToScroll||1,effect:this.options.effect||"slide",thresholdDistance:this.options.thresholdDistance||50,thresholdTime:this.options.thresholdTime||1e3,direction:this.options.direction||"horizontal",transitionEnding:!1,itemTransitionEnding:!1,animation:!1,slidesPerView:void 0===this.options.slidesPerView?0:this.options.slidesPerView,freeModeMomentum:void 0===this.options.freeModeMomentum||this.options.freeModeMomentum,freeModeMomentumRatio:void 0===this.options.freeModeMomentumRatio?1e3:this.options.freeModeMomentumRatio,freeModeMomentumVelocityRatio:void 0===this.options.freeModeMomentumVelocityRatio?1:this.options.freeModeMomentumVelocityRatio,preventRebound:void 0!==this.options.preventRebound&&this.options.preventRebound,freePosWidth:0,freePosHeight:0}}},methods:{swipeStart:function(t){var e=window.getComputedStyle(t.currentTarget).getPropertyValue("transform"),i=parseFloat(e.substring(7).split(",")[4]),n=parseFloat(e.substring(7).split(",")[5]);this.config.freePosWidth=i,this.config.freePosHeight=n},swipeMove:function(t){if(this.config.tracking){var e=this.config.freePosWidth,i=this.config.freePosHeight,n=this.config.preventRebound;if("vertical"===this.config.direction)this.data.posheight=i+this.data.end.y-this.data.start.y;else if(this.data.poswidth=e+this.data.end.x-this.data.start.x,n){var r=(0,o.getTranformMaxWidth)(this.$el),s=this.config.$sliderItem,a=0+this.options.centeredSlides?this.config.pageWidth/2-s[s.length-1].offsetWidth/2:0;this.data.poswidth>=a&&(this.data.poswidth=a),this.data.poswidth<=-r+a&&(this.data.poswidth=-r+a)}}},swipeEnd:function(t){var e=(new Date).getTime()-this.data.start.t,i=this.data.currentPage,n=this.data.end.x-this.data.start.x,a=n>=0?-1:1,d=this.config.freeModeMomentumVelocityRatio,c=this.config.preventRebound,l=this.config.loop,h=a*Math.pow(1e3*Math.abs(n)*d/e,2)/2,f=(0,o.getTranformMaxWidth)(this.$el),u=this.config.$sliderItem,p=0+this.options.centeredSlides?this.config.pageWidth/2:0,g=0+this.options.centeredSlides?this.config.pageWidth/2-u[0].offsetWidth/2:0,v=0+this.options.centeredSlides?this.config.pageWidth/2-u[u.length-1].offsetWidth/2:0,m=this.config.sliderLength,y=this.data.poswidth-h/1e3,w=this.data.poswidth>=p&&0===this.data.currentPage&&"right"===this.config.gestureDirection||this.data.poswidth<=-f+p&&this.data.currentPage===this.config.sliderLength-1&&"left"===this.config.gestureDirection;if(this.config.freeModeMomentum&&!w)if(this.config.animation=!0,this.config.speed=this.config.freeModeMomentumRatio,c&&!l)this.data.poswidth=y>p?g:y<-f+p?-f+v:this.data.poswidth-h/1e3;else if(y>p&&!l){var b=s(1.1,y)+g;this.data.poswidth=b}else if(y<-f+p&&!l){var x=s(1.1,-y);this.data.poswidth=-f-x+v}else this.data.poswidth=this.data.poswidth-h/1e3;if(w&&!c&&this.slide(i),this.config.freeModeMomentum||(this.config.freePosWidth=this.data.poswidth,this.config.freePosHeight=this.data.posheight),m)for(var P=this.data.poswidth,T=this.config.pageWidth,$=0;$<u.length;$++){var E=u[$].offsetLeft,_=u[$].offsetWidth,S=E-_/2;if(this.options.centeredSlides&&(S=E-T/2+_/2),S>-P){i=$-1<0?0:$-1,r.default.call(this);break}if(-P>=S&&$===u.length-1){i=$,r.default.call(this);break}}var M=this.options.slidesPerView;if(M&&i+M>m&&this.data.poswidth<-1*u[m-M].offsetLeft){var O=s(1.1,-y);this.data.poswidth=-1*u[m-M].offsetLeft-O}this.data.currentPage=i},onTransitionEnd:function(){this.config.tracking=!1;var t=this.config.$sliderItem,e=this.data.currentPage,i=(0,o.getTranformMaxWidth)(this.$el),n=0+this.options.centeredSlides?this.config.pageWidth/2-t[e].offsetWidth/2:0,r=0+this.options.centeredSlides?this.config.pageWidth/2-t[0].offsetWidth/2:0,s=0+this.options.centeredSlides?this.config.pageWidth/2-t[t.length-1].offsetWidth/2:0,a=this.options.slidesPerView,d=this.config.sliderLength;this.config.loop||(this.data.poswidth>r&&(this.config.speed=300,this.data.poswidth=n),this.data.poswidth<-i+s&&!a&&(this.config.speed=300,this.data.poswidth=-i+n),a&&e+a>d&&this.data.poswidth<-1*t[d-a].offsetLeft&&(this.config.speed=300,this.data.poswidth=-1*t[d-a].offsetLeft))},pre:function(){},next:function(){}}};e.default=a},function(t,e,i){"use strict";var n=i(8);i.n(n).a},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,n=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)?t:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?i+r:n+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"sliderBasic",data:function(){return{data:{},config:{}}},methods:{transform:function(){var t=this.$parent.$parent.options,e=this.$parent.$parent.data,i=this.$parent.$parent.config,n=this.index,o=i.pageWidth/2-this.data.$el.offsetWidth/2,r=o-i.deviation+"px",s=o+i.deviation+"px",a=o+"px",d={};return n===e.currentPage-1||n===this.pageLength-2&&-1===e.currentPage?(d.transform="translate3D("+r+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1","left"===e.direction?d["z-index"]="10":d["z-index"]="1"):n===e.currentPage+1||1===n&&e.currentPage===this.pageLength?(d.transform="translate3D("+s+",0 ,0)",d.transform="translate3D("+s+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1","left"===e.direction?d["z-index"]="1":d["z-index"]="10"):n===e.currentPage?(d.transform="translate3D("+a+",0 ,0) scale3d(1,1,1)",d["z-index"]="99",d.opacity="1"):(d.transform="translate3D("+a+",0 ,0)",d.opacity="0"),n===this.pageLength-1&&0===e.currentPage&&(d.transform="translate3D("+r+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1"),0===n&&e.currentPage===this.pageLength-1&&(d.transform="translate3D("+s+",0 ,0) scale3d("+i.widthScalingRatio+","+i.heightScalingRatio+",1)",d.opacity="1"),(n!==this.pageLength-1&&n!==this.pageLength-2||-1!==e.currentPage)&&(0!==n&&1!==n||e.currentPage!==this.pageLength)||(d.opacity="1",0===n&&(d["z-index"]="99"),n===this.pageLength-1&&(d["z-index"]="99")),d.transitionDuration=(i.animation?t.speed||300:0)+"ms",d["-webkitTransitionDuration"]=(i.animation?t.speed||300:0)+"ms",d.position="absolute",d}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n=i(1);Object.defineProperty(e,"__esModule",{value:!0}),e.slideritem=e.slider=void 0;var o=n(i(5)),r=n(i(4)),s=o.default;e.slider=s;var a=r.default;e.slideritem=a}])});
module.exports = {
base: '/vue-concise-slider/',
title: 'vue-concise-slider',
description: 'vue-concise-slider,A simple sliding component,has easy configuration,support self-adaption / fullscreen / button / page,and is compatible with mobile and PC terminal',
locales: {
// 键名是该语言所属的子路径
// 作为特例,默认语言可以使用 '/' 作为其路径。
'/': {
lang: 'en-US', // 将会被设置为 <html> 的 lang 属性
title: 'vue-concise-slider'
},
'/zh/': {
lang: 'zh-CN',
title: 'vue-concise-slider'
}
},
themeConfig: {
nav: [{
text: 'Home',
link: '/'
locales: {
'/': {
selectText: 'Languages',
label: 'English',
nav: [{
text: 'Home',
link: '/'
},
{
text: 'Demos',
link: '/demos/'
},
{
text: 'Docs',
link: '/docs'
},
{
text: 'Guide',
link: '/guide'
}
],
sidebar: {
'/demos/': [
'', /* /foo/ */
'Basic', /* /foo/one.html */
'Center', /* /foo/one.html */
'CoverFlow', /* /foo/one.html */
'Fade', /* /foo/one.html */
'Loop', /* /foo/one.html */
'Multiple', /* /foo/one.html */
'Nest', /* /foo/one.html */
'RenderPagination', /* /foo/one.html */
'VariableWidth', /* /foo/one.html */
'Vertical', /* /foo/one.html */
]
}
},
{
text: 'Demos',
link: '/demos/'
},
{
text: 'Docs',
link: '/docs'
},
{
text: 'Guide',
link: '/guide'
'/zh/': {
// 多语言下拉菜单的标题
selectText: '选择语言',
// 该语言在下拉菜单中的标签
label: '简体中文',
nav: [{
text: '首页',
link: '/zh/'
},
{
text: '示例',
link: '/zh/demos/'
},
{
text: '文档',
link: '/zh/docs'
},
{
text: '教程',
link: '/zh/guide'
}
],
sidebar: {
'/zh/demos/': [
'', /* /foo/ */
'Basic', /* /foo/one.html */
'Center', /* /foo/one.html */
'CoverFlow', /* /foo/one.html */
'Fade', /* /foo/one.html */
'Loop', /* /foo/one.html */
'Multiple', /* /foo/one.html */
'Nest', /* /foo/one.html */
'RenderPagination', /* /foo/one.html */
'VariableWidth', /* /foo/one.html */
'Vertical', /* /foo/one.html */
]
}
}
],
sidebar: {
'/demos/': [
'', /* /foo/ */
'Basic', /* /foo/one.html */
'Center', /* /foo/one.html */
'CoverFlow', /* /foo/one.html */
'Fade', /* /foo/one.html */
'Loop', /* /foo/one.html */
'Multiple', /* /foo/one.html */
'Nest', /* /foo/one.html */
'RenderPagination', /* /foo/one.html */
'VariableWidth', /* /foo/one.html */
'Vertical', /* /foo/one.html */
]
}
}
}
}

@@ -9,6 +9,5 @@ export default function () {

let currentPage = this.data.currentPage
let realChildren = children.filter((item) => {
let isCloned = item.$vnode.isCloned
return item.$options._componentTag === 'slideritem' && !isCloned
})
let realChildren = this.config.slotsFilter
let virtual = this.config.virtual
let slidesPerView = this.config.slidesPerView || 1
children.forEach(element => {

@@ -22,13 +21,16 @@ element.removeActive()

}
// debugger
if (realChildren[currentPage]) {
realChildren[currentPage].addActive()
realChildren[currentPage] && realChildren[currentPage]['componentInstance'] && realChildren[currentPage]['componentInstance'].addActive()
}
// loop模式下优化
if (currentPage < 0 || currentPage >= sliderLength) {
if (children[currentPage + loopedSlides]) {
// debugger
if (children[currentPage + loopedSlides] && !virtual) {
children[currentPage + loopedSlides].addCopyActive()
}
if (children[currentPage + loopedSlides - slidesPerView - 2] && virtual) {
children[currentPage + loopedSlides - slidesPerView - 2].addCopyActive()
}
let lastPage = currentPage < 0 ? sliderLength + currentPage : 0 + currentPage - sliderLength
realChildren[lastPage].addActive()
realChildren[lastPage] && realChildren[lastPage]['componentInstance'] && realChildren[lastPage]['componentInstance'].addActive()
}

@@ -35,0 +37,0 @@ }

export default {
name: 'sliderComputed',
data () {
return {
config: {
speed: this.options.speed || 300
}
}
},
computed: {

@@ -9,4 +16,4 @@ styleobj () {

style['-webkitTransitionTimingFunction'] = this.options.timingFunction || 'ease'
style['transitionDuration'] = (this.config.animation ? this.options.speed || 300 : 0) + 'ms'
style['-webkitTransitionDuration'] = (this.config.animation ? this.options.speed || 300 : 0) + 'ms'
style['transitionDuration'] = (this.config.animation ? this.config.speed || 300 : 0) + 'ms'
style['-webkitTransitionDuration'] = (this.config.animation ? this.config.speed || 300 : 0) + 'ms'
if (this.config.effect === 'fade') {

@@ -30,6 +37,6 @@ return {}

}
let $slider
let lastPage = this.data.currentPage
let pageWidth = this.config.pageWidth
let loopedSlides = this.options.loopedSlides || 1
let virtual = this.config.virtual
// let srollbar = false

@@ -42,2 +49,3 @@ if (this.options.loop) {

}
// debugger
}

@@ -49,10 +57,4 @@ // coverflow

}
// 获取slideritem子集
for (let item in this.$el.children) {
if (/slider-touch/ig.test(this.$el.children[item].className)) {
$slider = this.$el.children[item]
}
}
// 遍历子集
let $sliderChildren = $slider.children[0].children
let $sliderChildren = this.config.$sliderItem
let offsetLeft = $sliderChildren[lastPage] ? $sliderChildren[lastPage].offsetLeft : 0

@@ -87,2 +89,6 @@ // 居中滚动

}
// 虚拟节点
if (virtual) {
offsetLeft = lastPage * pageWidth
}
return offsetLeft + pageWidth - pageWidth

@@ -89,0 +95,0 @@ },

@@ -22,5 +22,8 @@ export default {

renderTime: '',
loop: this.options.loop,
loop: this.options.loop || false,
loopedSlides: this.options.loopedSlides || 1,
pagination: this.options.pagination === undefined ? true : this.options.pagination
pagination: this.options.pagination === undefined ? true : this.options.pagination,
virtual: this.options.virtual === undefined ? false : this.options.virtual,
$sliderItem: '',
$sliderItemReal: ''
}

@@ -48,2 +51,7 @@ }

that.$emit('hasRenderDom', that.data)
// 存节点
that.config.$sliderItem = that.$el.querySelectorAll(':scope > .slider-touch > .slider-wrapper > .slider-item')
that.config.$sliderItemReal = Array.prototype.slice.call(that.config.$sliderItem).filter((item) => {
return item.className.indexOf('slider-copy') === -1
})
that.$nextTick(() => {

@@ -50,0 +58,0 @@ that.slide(that.data.currentPage, 'animationnone')

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

import { getTranformMaxWidth } from '../utils/index.js'
export default {

@@ -26,6 +27,8 @@ props: {

tracking: false,
gestureDirection: '',
thresholdDistance: this.options.thresholdDistance || 50,
thresholdTime: this.options.thresholdTime || 1000,
direction: this.options.direction || 'horizontal',
freeze: this.options.freeze === undefined ? false : this.options.freeze
freeze: this.options.freeze === undefined ? false : this.options.freeze,
preventRebound: this.options.preventRebound === undefined ? false : this.options.preventRebound
}

@@ -37,10 +40,7 @@ }

let that = this
if (this.config.freeze) {
return
}
if (this.config.transitionEnding) {
return
return false
}
if (this.config.itemTransitionEnding && this.options.itemAnimation) {
return
return false
}

@@ -78,2 +78,3 @@ this.config.animation = false

}
return true
},

@@ -89,20 +90,38 @@ swipeMove (e) {

}
let deltaX = Math.abs(this.data.end.x - this.data.start.x)
let deltaY = Math.abs(this.data.end.y - this.data.start.y)
if (deltaX >= deltaY && this.config.direction !== 'vertical') {
let deltaX = this.data.end.x - this.data.start.x
let deltaY = this.data.end.y - this.data.start.y
let deltaXAbs = Math.abs(deltaX)
let deltaYAbs = Math.abs(deltaY)
let tranformMaxWidth = getTranformMaxWidth(this.$el)
if (deltaXAbs >= deltaYAbs && this.config.direction !== 'vertical') {
e.preventDefault()
} else if (deltaX <= deltaY && this.config.direction === 'vertical') {
} else if (deltaXAbs <= deltaYAbs && this.config.direction === 'vertical') {
e.preventDefault()
}
if (this.config.direction === 'vertical') {
if (deltaX > deltaY) {
return false
}
// 处理嵌套滚动
// 判定方向
if (deltaX > 0) {
this.config.gestureDirection = 'right'
} else {
if (deltaX < deltaY) {
return false
}
this.config.gestureDirection = 'left'
}
// 处理free模式
if (this.config.preventRebound && !this.config.loop && ((this.config.gestureDirection === 'right' && this.data.poswidth === 0) || (this.config.gestureDirection === 'left' && this.data.poswidth === -tranformMaxWidth))) {
this.data.start.x = this.data.end.x
let transform = window.getComputedStyle(e.currentTarget).getPropertyValue('transform')
let transformX = parseFloat(transform.substring(7).split(',')[4])
let transformY = parseFloat(transform.substring(7).split(',')[5])
this.config.freePosWidth = transformX
this.config.freePosHeight = transformY
return false
}
// 处理嵌套滚动
if (this.config.direction === 'vertical' && deltaXAbs > deltaYAbs) {
return false
}
if (this.config.direction === 'horizontal' && deltaXAbs < deltaYAbs) {
return false
}
return true
}
return false
},

@@ -128,26 +147,29 @@ swipeEnd (e) {

}
if (this.config.effect === 'free') {
return
}
if (deltaTime > this.config.thresholdTime || deltaTime < 100) {
this.slide(currentPage)
return false
return true
}
if ((Math.abs(deltaX) < thresholdDistance || Math.abs(deltaY) > thresholdDistance) && this.config.direction !== 'vertical') {
this.slide(currentPage)
return false
return true
}
if ((Math.abs(deltaX) > thresholdDistance || Math.abs(deltaY) < thresholdDistance) && this.config.direction === 'vertical') {
this.slide(currentPage)
return false
return true
}
if (this.config.direction !== 'vertical') {
if (deltaX > thresholdDistance) {
// swipe right
// swipe left
this.pre()
return false
return true
} else if (-deltaX > thresholdDistance) {
// swipe left
// swipe right
this.next()
return false
return true
} else {
this.slide(currentPage)
return false
return true
}

@@ -159,10 +181,10 @@ }

this.pre()
return false
return true
} else if (-deltaY > thresholdDistance) {
// swipe top
this.next()
return false
return true
} else {
this.slide(currentPage)
return false
return true
}

@@ -177,3 +199,3 @@ }

onTransitionEnd (e, type) {
if (!this.options.loop || (this.data.currentPage > 0 && this.data.currentPage < this.config.sliderLength)) {
if (!this.options.loop || this.config.effect === 'free' || (this.data.currentPage > 0 && this.data.currentPage < this.config.sliderLength)) {
return

@@ -186,2 +208,3 @@ }

that.config.transitionEnding = false
// debugger
if (currentPage < 0) {

@@ -188,0 +211,0 @@ that.slide(sliderLength + currentPage, 'animationnone')

@@ -41,2 +41,24 @@ function deepClone (vnodes, createElement) {

},
computed: {
styleobj () {
let virtual = this.$parent.config.virtual
let $sliderItem = this.$parent.$el && this.$parent.$el.querySelectorAll('.slider-item')
let currentPage = this.$parent.data.currentPage
let pageWidth = this.$parent.config.pageWidth
if (!pageWidth || !virtual || !$sliderItem || currentPage < 1) {
return {}
}
let style = {}
// 默认使用$el的宽度进行计算
let poswidth = pageWidth * [currentPage - 1]
style['transform'] = 'translate3D(' + poswidth + 'px' + ',' + 0 + 'px' + ',0)'
if (this.$parent.config.effect === 'fade') {
return {}
}
if (this.$parent.config.effect === 'coverflow') {
return {}
}
return style
}
},
render (h) {

@@ -47,12 +69,29 @@ let slots = this.$slots.default

}
// debugger
let slotsFilter = slots.filter((item) => {
return item.componentOptions ? item.componentOptions.tag === 'slideritem' : false
})
this.$parent.config.slotsFilter = slotsFilter
let loopedSlides = this.$parent.config.loopedSlides
let virtual = this.$parent.config.virtual
let currentPage = this.$parent.data.currentPage
let copeBefore = []
let copeAfter = []
// 虚拟节点
if (virtual) {
// console.log('slotsFilter', slotsFilter)
// debugger
let lastVirtual = currentPage - 1 < 0 ? null : currentPage - 1
let nextVirtual = currentPage + 1 >= slotsFilter.length ? null : currentPage + 1
let newSlots = []
if (lastVirtual !== null) {
newSlots.push(slotsFilter[lastVirtual])
}
newSlots.push(slotsFilter[currentPage])
if (nextVirtual !== null) {
newSlots.push(slotsFilter[nextVirtual])
}
slots = newSlots
}
// 前后添加节点
if (this.$parent.config.loop && this.$parent.config.effect !== 'fade' && this.$parent.config.effect !== 'coverflow') {
// let slotsFilter = deepClone(slots, h)
// debugger
let slotsFilter = slots.filter((item) => {
return item.componentOptions ? item.componentOptions.tag === 'slideritem' : false
})
if (slotsFilter && slotsFilter.length >= 2) {

@@ -77,2 +116,3 @@ let length = slotsFilter ? slotsFilter.length : 0

},
style: this.styleobj,
scopedSlots: this.$scopedSlots

@@ -79,0 +119,0 @@ }, [...copeBefore, ...slots, ...copeAfter])

@@ -20,4 +20,2 @@ import sliderNest from './sliderNest.js'

effect: this.options.effect || 'slide',
thresholdDistance: this.options.thresholdDistance || 50,
thresholdTime: this.options.thresholdTime || 1000,
direction: this.options.direction || 'horizontal',

@@ -35,3 +33,3 @@ transitionEnding: false,

judgeParentSlider (that) {
if (that.$parent && that.$parent.$vnode && that.$parent.$options._componentTag === 'slider') {
if (that.$parent && that.$parent.$vnode && that.$parent.$options.name === 'slider') {
return that.$parent

@@ -53,3 +51,3 @@ } else if (that.$parent && that.$parent.$vnode === undefined) {

}
if (this.config.effect === 'nest') {
if (this.config.tracking && this.config.effect === 'nest') {
sliderNest.methods.swipeMove.call(this, e)

@@ -56,0 +54,0 @@ }

@@ -49,6 +49,8 @@ export default {

if (this.config.direction === 'vertical') {
if ($parent && $parent.options.direction === 'vertical' && this.data.currentPage === 0 && this.data.end.y - this.data.start.y >= 0 && $parent.config.nested) {
if ($parent && $parent.options.direction === 'vertical' && this.data.currentPage === 0 && this.data.end.y - this.data.start.y >= 0 && $parent.config.nested && !($parent.options.preventRebound && $parent.data.currentPage === 0)) {
$parent.data.posheight = -($parent.currentHeight) + this.data.end.y - this.data.start.y
} else if ($parent && $parent.options.direction === 'vertical' && this.data.currentPage === this.config.sliderLength - 1 && this.data.end.y - this.data.start.y <= 0 && $parent.config.nested) {
$parent.data.posheight = -($parent.currentHeight) + this.data.end.y - this.data.start.y
} else if (this.options.preventRebound && !this.options.loop) {
return
} else {

@@ -58,6 +60,8 @@ this.data.posheight = -(this.currentHeight) + this.data.end.y - this.data.start.y

} else {
if ($parent && $parent.options.direction !== 'vertical' && this.data.currentPage === 0 && this.data.end.x - this.data.start.x >= 0 && $parent.config.nested) {
if ($parent && $parent.options.direction !== 'vertical' && this.data.currentPage === 0 && this.data.end.x - this.data.start.x >= 0 && $parent.config.nested && !($parent.options.preventRebound && $parent.data.currentPage === 0)) {
$parent.data.poswidth = -($parent.currentWidth) + this.data.end.x - this.data.start.x
} else if ($parent && $parent.options.direction !== 'vertical' && this.data.currentPage === this.config.sliderLength - 1 && this.data.end.x - this.data.start.x <= 0 && $parent.config.nested) {
$parent.data.poswidth = -($parent.currentWidth) + this.data.end.x - this.data.start.x
} else if (this.options.preventRebound && !this.options.loop) {
return
} else {

@@ -64,0 +68,0 @@ this.data.poswidth = -(this.currentWidth) + this.data.end.x - this.data.start.x

@@ -17,2 +17,9 @@ export default {

config: {
slidesToScroll: this.options.slidesToScroll || 1,
effect: this.options.effect || 'slide',
direction: this.options.direction || 'horizontal',
transitionEnding: false,
itemTransitionEnding: false,
animation: false,
slidesPerView: this.options.slidesPerView === undefined ? 0 : this.options.slidesPerView,
thresholdDistance: this.options.thresholdDistance || 50,

@@ -19,0 +26,0 @@ widthScalingRatio: this.options.widthScalingRatio || 0.8,

@@ -21,3 +21,5 @@ ---

<!-- slideritem wrapped package with the components you need -->
<slideritem v-for="(item,index) in someList" :key="index" :style="item.style">{{item.html}}</slideritem>
<template slot-scope="coverflow">
<slideritem v-for="(item,index) in someList" :pageLength="someList.length" :index="index" :key="index" :style="item.style">{{item.html}}</slideritem>
</template>
<!-- Customizable loading -->

@@ -24,0 +26,0 @@ <div slot="loading">loading...</div>

{
"name": "vue-concise-slider",
"version": "4.0.0",
"version": "4.1.0",
"repository": {

@@ -32,2 +32,3 @@ "type": "git",

"@babel/preset-env": "^7.1.6",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.4",

@@ -41,3 +42,3 @@ "chai": "^3.5.0",

"ejs": ">=2.5.5",
"eslint": "^2.10.2",
"eslint": "^2.13.1",
"eslint-config-standard": "^5.1.0",

@@ -73,9 +74,10 @@ "eslint-friendly-formatter": "^2.0.5",

"url-loader": "^1.1.2",
"vue": "^2.5.13",
"vue": "^2.5.21",
"vue-hot-reload-api": "^1.2.0",
"vue-html-loader": "^1.0.0",
"vue-loader": "^15.4.2",
"vue-server-renderer": "^2.5.21",
"vue-style-loader": "^1.0.0",
"vue-template-compiler": "^2.5.17",
"vuepress": "^1.0.0-alpha.27",
"vue-template-compiler": "^2.5.21",
"vuepress": "^1.0.0-alpha.30",
"webpack": "^4.26.1",

@@ -82,0 +84,0 @@ "webpack-bundle-analyzer": "^2.13.1",

@@ -14,3 +14,4 @@ English | [中文](README.md)

### version
[v3.3.0](https://github.com/warpcgd/vue-concise-slider/issues/29) Supported vue2.0+
[v3.3.6](https://github.com/warpcgd/vue-concise-slider/issues/29) Supported vue2.0+
[v4.0.0](https://github.com/warpcgd/vue-concise-slider/issues/29) beta

@@ -44,5 +45,6 @@ ### Features

- [Documentation](https://warpcgd.github.io/vue-concise-slider/)
- [demo](https://warpcgd.github.io/vue-concise-slider/demo/)
- [Documentation](https://warpcgd.github.io/vue-concise-slider/docs.html)
- [demo](https://warpcgd.github.io/vue-concise-slider/demos/)
### Installation

@@ -49,0 +51,0 @@

@@ -14,7 +14,9 @@ 中文 | [English](https://github.com/warpcgd/vue-concise-slider/blob/master/README_EN.md)

## 版本
[v3.3.0](https://github.com/warpcgd/vue-concise-slider/issues/29) 支持vue2.0+
[v3.3.6](https://github.com/warpcgd/vue-concise-slider/issues/29) 支持vue2.0+
[v4.0.0](https://github.com/warpcgd/vue-concise-slider/issues/29) beta版本
## 特点
* 简单配置
* 轻量 (~31kB gzipped)
* 轻量 (~35kB gzipped)
* 多种滑动样式

@@ -43,5 +45,6 @@

- [文档](https://warpcgd.github.io/vue-concise-slider/)
- [demo](https://warpcgd.github.io/vue-concise-slider/demo/)
- [文档](https://warpcgd.github.io/vue-concise-slider/docs.html)
- [demo](https://warpcgd.github.io/vue-concise-slider/demos/)
### 安装

@@ -48,0 +51,0 @@

@@ -9,6 +9,5 @@ export default function () {

let currentPage = this.data.currentPage
let realChildren = children.filter((item) => {
let isCloned = item.$vnode.isCloned
return item.$options._componentTag === 'slideritem' && !isCloned
})
let realChildren = this.config.slotsFilter
let virtual = this.config.virtual
let slidesPerView = this.config.slidesPerView || 1
children.forEach(element => {

@@ -22,13 +21,16 @@ element.removeActive()

}
// debugger
if (realChildren[currentPage]) {
realChildren[currentPage].addActive()
realChildren[currentPage] && realChildren[currentPage]['componentInstance'] && realChildren[currentPage]['componentInstance'].addActive()
}
// loop模式下优化
if (currentPage < 0 || currentPage >= sliderLength) {
if (children[currentPage + loopedSlides]) {
// debugger
if (children[currentPage + loopedSlides] && !virtual) {
children[currentPage + loopedSlides].addCopyActive()
}
if (children[currentPage + loopedSlides - slidesPerView - 2] && virtual) {
children[currentPage + loopedSlides - slidesPerView - 2].addCopyActive()
}
let lastPage = currentPage < 0 ? sliderLength + currentPage : 0 + currentPage - sliderLength
realChildren[lastPage].addActive()
realChildren[lastPage] && realChildren[lastPage]['componentInstance'] && realChildren[lastPage]['componentInstance'].addActive()
}

@@ -35,0 +37,0 @@ }

export default {
name: 'sliderComputed',
data () {
return {
config: {
speed: this.options.speed || 300
}
}
},
computed: {

@@ -9,4 +16,4 @@ styleobj () {

style['-webkitTransitionTimingFunction'] = this.options.timingFunction || 'ease'
style['transitionDuration'] = (this.config.animation ? this.options.speed || 300 : 0) + 'ms'
style['-webkitTransitionDuration'] = (this.config.animation ? this.options.speed || 300 : 0) + 'ms'
style['transitionDuration'] = (this.config.animation ? this.config.speed || 300 : 0) + 'ms'
style['-webkitTransitionDuration'] = (this.config.animation ? this.config.speed || 300 : 0) + 'ms'
if (this.config.effect === 'fade') {

@@ -30,6 +37,6 @@ return {}

}
let $slider
let lastPage = this.data.currentPage
let pageWidth = this.config.pageWidth
let loopedSlides = this.options.loopedSlides || 1
let virtual = this.config.virtual
// let srollbar = false

@@ -42,2 +49,3 @@ if (this.options.loop) {

}
// debugger
}

@@ -49,10 +57,4 @@ // coverflow

}
// 获取slideritem子集
for (let item in this.$el.children) {
if (/slider-touch/ig.test(this.$el.children[item].className)) {
$slider = this.$el.children[item]
}
}
// 遍历子集
let $sliderChildren = $slider.children[0].children
let $sliderChildren = this.config.$sliderItem
let offsetLeft = $sliderChildren[lastPage] ? $sliderChildren[lastPage].offsetLeft : 0

@@ -87,2 +89,6 @@ // 居中滚动

}
// 虚拟节点
if (virtual) {
offsetLeft = lastPage * pageWidth
}
return offsetLeft + pageWidth - pageWidth

@@ -89,0 +95,0 @@ },

@@ -22,5 +22,8 @@ export default {

renderTime: '',
loop: this.options.loop,
loop: this.options.loop || false,
loopedSlides: this.options.loopedSlides || 1,
pagination: this.options.pagination === undefined ? true : this.options.pagination
pagination: this.options.pagination === undefined ? true : this.options.pagination,
virtual: this.options.virtual === undefined ? false : this.options.virtual,
$sliderItem: '',
$sliderItemReal: ''
}

@@ -48,2 +51,7 @@ }

that.$emit('hasRenderDom', that.data)
// 存节点
that.config.$sliderItem = that.$el.querySelectorAll(':scope > .slider-touch > .slider-wrapper > .slider-item')
that.config.$sliderItemReal = Array.prototype.slice.call(that.config.$sliderItem).filter((item) => {
return item.className.indexOf('slider-copy') === -1
})
that.$nextTick(() => {

@@ -50,0 +58,0 @@ that.slide(that.data.currentPage, 'animationnone')

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

import { getTranformMaxWidth } from '../../utils/index.js'
export default {

@@ -26,6 +27,8 @@ props: {

tracking: false,
gestureDirection: '',
thresholdDistance: this.options.thresholdDistance || 50,
thresholdTime: this.options.thresholdTime || 1000,
direction: this.options.direction || 'horizontal',
freeze: this.options.freeze === undefined ? false : this.options.freeze
freeze: this.options.freeze === undefined ? false : this.options.freeze,
preventRebound: this.options.preventRebound === undefined ? false : this.options.preventRebound
}

@@ -37,10 +40,7 @@ }

let that = this
if (this.config.freeze) {
return
}
if (this.config.transitionEnding) {
return
return false
}
if (this.config.itemTransitionEnding && this.options.itemAnimation) {
return
return false
}

@@ -78,2 +78,3 @@ this.config.animation = false

}
return true
},

@@ -89,21 +90,38 @@ swipeMove (e) {

}
let deltaX = Math.abs(this.data.end.x - this.data.start.x)
let deltaY = Math.abs(this.data.end.y - this.data.start.y)
if (deltaX >= deltaY && this.config.direction !== 'vertical') {
let deltaX = this.data.end.x - this.data.start.x
let deltaY = this.data.end.y - this.data.start.y
let deltaXAbs = Math.abs(deltaX)
let deltaYAbs = Math.abs(deltaY)
let tranformMaxWidth = getTranformMaxWidth(this.$el)
if (deltaXAbs >= deltaYAbs && this.config.direction !== 'vertical') {
e.preventDefault()
} else if (deltaX <= deltaY && this.config.direction === 'vertical') {
} else if (deltaXAbs <= deltaYAbs && this.config.direction === 'vertical') {
e.preventDefault()
}
// 判定方向
if (deltaX > 0) {
this.config.gestureDirection = 'right'
} else {
this.config.gestureDirection = 'left'
}
// 处理free模式
if (this.config.preventRebound && !this.config.loop && ((this.config.gestureDirection === 'right' && this.data.poswidth === 0) || (this.config.gestureDirection === 'left' && this.data.poswidth === -tranformMaxWidth))) {
this.data.start.x = this.data.end.x
let transform = window.getComputedStyle(e.currentTarget).getPropertyValue('transform')
let transformX = parseFloat(transform.substring(7).split(',')[4])
let transformY = parseFloat(transform.substring(7).split(',')[5])
this.config.freePosWidth = transformX
this.config.freePosHeight = transformY
return false
}
// 处理嵌套滚动
if (this.config.direction === 'vertical' && deltaX > deltaY) {
console.log(this.config.direction)
console.log('1')
return false
}
if (this.config.direction === 'horizontal' && deltaX < deltaY) {
console.log(this.config.direction)
console.log('2')
return false
if (this.config.direction === 'vertical' && deltaXAbs > deltaYAbs) {
return false
}
if (this.config.direction === 'horizontal' && deltaXAbs < deltaYAbs) {
return false
}
return true
}
return false
},

@@ -129,26 +147,29 @@ swipeEnd (e) {

}
if (this.config.effect === 'free') {
return
}
if (deltaTime > this.config.thresholdTime || deltaTime < 100) {
this.slide(currentPage)
return false
return true
}
if ((Math.abs(deltaX) < thresholdDistance || Math.abs(deltaY) > thresholdDistance) && this.config.direction !== 'vertical') {
this.slide(currentPage)
return false
return true
}
if ((Math.abs(deltaX) > thresholdDistance || Math.abs(deltaY) < thresholdDistance) && this.config.direction === 'vertical') {
this.slide(currentPage)
return false
return true
}
if (this.config.direction !== 'vertical') {
if (deltaX > thresholdDistance) {
// swipe right
// swipe left
this.pre()
return false
return true
} else if (-deltaX > thresholdDistance) {
// swipe left
// swipe right
this.next()
return false
return true
} else {
this.slide(currentPage)
return false
return true
}

@@ -160,10 +181,10 @@ }

this.pre()
return false
return true
} else if (-deltaY > thresholdDistance) {
// swipe top
this.next()
return false
return true
} else {
this.slide(currentPage)
return false
return true
}

@@ -178,3 +199,3 @@ }

onTransitionEnd (e, type) {
if (!this.options.loop || (this.data.currentPage > 0 && this.data.currentPage < this.config.sliderLength)) {
if (!this.options.loop || this.config.effect === 'free' || (this.data.currentPage > 0 && this.data.currentPage < this.config.sliderLength)) {
return

@@ -187,2 +208,3 @@ }

that.config.transitionEnding = false
// debugger
if (currentPage < 0) {

@@ -189,0 +211,0 @@ that.slide(sliderLength + currentPage, 'animationnone')

@@ -41,2 +41,24 @@ function deepClone (vnodes, createElement) {

},
computed: {
styleobj () {
let virtual = this.$parent.config.virtual
let $sliderItem = this.$parent.$el && this.$parent.$el.querySelectorAll('.slider-item')
let currentPage = this.$parent.data.currentPage
let pageWidth = this.$parent.config.pageWidth
if (!pageWidth || !virtual || !$sliderItem || currentPage < 1) {
return {}
}
let style = {}
// 默认使用$el的宽度进行计算
let poswidth = pageWidth * [currentPage - 1]
style['transform'] = 'translate3D(' + poswidth + 'px' + ',' + 0 + 'px' + ',0)'
if (this.$parent.config.effect === 'fade') {
return {}
}
if (this.$parent.config.effect === 'coverflow') {
return {}
}
return style
}
},
render (h) {

@@ -47,12 +69,29 @@ let slots = this.$slots.default

}
// debugger
let slotsFilter = slots.filter((item) => {
return item.componentOptions ? item.componentOptions.tag === 'slideritem' : false
})
this.$parent.config.slotsFilter = slotsFilter
let loopedSlides = this.$parent.config.loopedSlides
let virtual = this.$parent.config.virtual
let currentPage = this.$parent.data.currentPage
let copeBefore = []
let copeAfter = []
// 虚拟节点
if (virtual) {
// console.log('slotsFilter', slotsFilter)
// debugger
let lastVirtual = currentPage - 1 < 0 ? null : currentPage - 1
let nextVirtual = currentPage + 1 >= slotsFilter.length ? null : currentPage + 1
let newSlots = []
if (lastVirtual !== null) {
newSlots.push(slotsFilter[lastVirtual])
}
newSlots.push(slotsFilter[currentPage])
if (nextVirtual !== null) {
newSlots.push(slotsFilter[nextVirtual])
}
slots = newSlots
}
// 前后添加节点
if (this.$parent.config.loop && this.$parent.config.effect !== 'fade' && this.$parent.config.effect !== 'coverflow') {
// let slotsFilter = deepClone(slots, h)
// debugger
let slotsFilter = slots.filter((item) => {
return item.componentOptions ? item.componentOptions.tag === 'slideritem' : false
})
if (slotsFilter && slotsFilter.length >= 2) {

@@ -77,2 +116,3 @@ let length = slotsFilter ? slotsFilter.length : 0

},
style: this.styleobj,
scopedSlots: this.$scopedSlots

@@ -79,0 +119,0 @@ }, [...copeBefore, ...slots, ...copeAfter])

@@ -32,3 +32,3 @@ import sliderNest from './sliderNest.js'

judgeParentSlider (that) {
if (that.$parent && that.$parent.$vnode && that.$parent.$options._componentTag === 'slider') {
if (that.$parent && that.$parent.$vnode && that.$parent.$options.name === 'slider') {
return that.$parent

@@ -35,0 +35,0 @@ } else if (that.$parent && that.$parent.$vnode === undefined) {

@@ -21,4 +21,5 @@ // // 渐变滚动

import sliderrenderPagination from './demo/slider_renderPagination'
import sliderfree from './demo/slider_free'
// // // 实例vue
// // 实例vue
new Vue(sliderfade) // eslint-disable-line

@@ -34,2 +35,2 @@ new Vue(sliderbasic) // eslint-disable-line

new Vue(slidernest) // eslint-disable-line
new Vue(sliderfree) // eslint-disable-line

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc