bztang-admin/addons/yun_shop/static/app/js/chunk-2d0c94dd.f8e6cf17.js

1 line
19 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c94dd"],{5925:function(t,e,n){(function(t){var i,r,o,s=n("7037").default;n("c73d"),n("d9e2"),n("d3b7"),n("25f0"),n("fb6a"),n("14d9"),n("159b"),n("b64b"),n("a9e3"),n("ac1f"),n("00b4"),n("d81d"),n("4de4"),n("99af"),n("ddb0"),n("b0c0"),n("a630"),n("3ca3"),n("3410"),function(n,a){"object"==s(e)&&"object"==s(t)?t.exports=a():(r=[],i=a,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o))}(0,(function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SwipeItem=e.Swipe=void 0;var r=n(60),o=i(r),s=n(59),a=i(s);e.Swipe=o.default,e.SwipeItem=a.default,e.default={Swipe:o.default,SwipeItem:a.default}},function(t,e,n){var i=n(23)("wks"),r=n(27),o=n(2).Symbol,s="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=i},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(10);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(20)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(8),r=n(12);t.exports=n(5)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(3),r=n(39),o=n(54),s=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){return"object"==s(t)?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(23)("keys"),r=n(27);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(34);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(10),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(2),r=n(4),o=n(16),s=n(7),a=n(6),u="prototype",c=function t(e,n,c){var f,l,h,p=e&t.F,d=e&t.G,v=e&t.S,m=e&t.P,y=e&t.B,g=e&t.W,w=d?r:r[n]||(r[n]={}),x=w[u],T=d?i:v?i[n]:(i[n]||{})[u];for(f in d&&(c=n),c)l=!p&&T&&void 0!==T[f],l&&a(w,f)||(h=l?T[f]:c[f],w[f]=d&&"function"!=typeof T[f]?c[f]:y&&l?o(h,i):g&&T[f]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[u]=t[u],e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((w.virtual||(w.virtual={}))[f]=h,e&t.R&&x&&!x[f]&&s(x,f,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e,n){var i=n(8).f,r=n(6),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(4),r=n(2),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(40),r=n(9);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(14),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(9);t.exports=function(t){return Object(i(t))}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},a=s(t.default);"object"!==a&&"function"!==a||(r=t,o=t.default);var u="function"==typeof o?o.options:o;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),i){var c=u.computed||(u.computed={});Object.keys(i).forEach((function(t){var e=i[t];c[t]=function(){return e}}))}return{esModule:r,exports:o,options:u}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"swipe-item",mounted:function(){this.$parent.init()}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(32),o=i(r);e.default={name:"swipe",data:function(){return{hasMounted:!1,insideValue:this.value,pages:[],width:0,length:0,inited:!1,startx:0,moveDistance:0,touchStartTime:0,moving:!1,starty:0,firstMove:!0,horizontalMove:!0,copyNum:2,autoplayTimer:null}},props:{value:{type:Number,default:0},pagination:{type:Boolean,default:!0},autoplayTime:{type:Number,default:0},loop:{type:Boolean,default:!0},minMoveDistance:{type:String,default:"20%"},quickTouchTime:{type:Number,default:150},speed:{type:Number,default:300}},computed:{c_minMoveDistance:function(){var t=this.minMoveDistance,e="";/px$/.test(t)||/^\d+$/.test(t)?e="pixel":(/%$/.test(t)||(t="20%"),e="percent");var n={pixel:function(){return parseInt(t,10),t+"px"},percent:function(){var e=parseInt(t,10)/100;return this.width*e}};return n[e].apply(this)},c_translatex:function(){return-this.width*this.insideValue},c_isEnd:function(){return this.insideValue===this.length-1},c_isBegin:function(){return 0===this.insideValue}},watch:{insideValue:function(t){t!==this.value&&this.$emit("input",t),this.valueChangeHandler(t)},value:function(t){this.insideValue=t},autoplayTime:function(){this.autoChange()}},mounted:function(){this.hasMounted=!0,this.init(),this.initOnce()},destroyed:function(){clearTimeout(this.autoplayTimer)},methods:{reset:function(){this.init(),this.initOnce()},init:function(){if(this.hasMounted){var t=this.initDatas();t&&(this.$refs.wrapper.style.width=this.width+"px",this.clearCopies(),this.addCopies(),this.autoplayTime>0&&this.autoChange())}},initOnce:function(){this.setTranslate(this.c_translatex)},initDatas:function(){var t=getComputedStyle(this.$el,!1).width;return this.width=parseInt(t,10),!!this.$slots.default&&(this.pages=this.$slots.default.filter((function(t){return t.tag&&t.elm.classList.contains("c-swipe-item")})).map((function(t){return t.elm})),!!this.pages.length&&(this.length=this.pages.length,!0))},clearCopies:function(){var t=this,e=this.$refs.wrapper.querySelectorAll(".c-swipe-item-copy");[].concat((0,o.default)(e)).forEach((function(e){t.$refs.wrapper.removeChild(e)}),this),this.$refs.wrapper.style.marginLeft="0"},addCopies:function(){var t=this,e=[],n=[];for(this.pages.forEach((function(i,r){if(r<2){var o=i.cloneNode(!0);o.classList.remove("c-swipe-item"),o.classList.add("c-swipe-item-copy"),e.push(o)}if(r>t.pages.length-3){var s=i.cloneNode(!0);s.classList.remove("c-swipe-item"),s.classList.add("c-swipe-item-copy"),n.push(s)}}),this),this.copyNum=n.length;n.length;){var i=n.shift(),r=this.$refs.wrapper.querySelector(".c-swipe-item");this.$refs.wrapper.insertBefore(i,r)}for(;e.length;){var o=e.shift();this.$refs.wrapper.appendChild(o)}this.$refs.wrapper.style.marginLeft="-"+this.width*this.copyNum+"px"},handleTouchstart:function(t){this.length<=1||this.moving||(this.startx=t.touches[0].pageX,this.starty=t.touches[0].pageY,this.touchStartTime=(new Date).getTime(),this.autoChange&&this.autoChange(),this.firstMove=!0)},handleTouchmove:function(t){if(!(this.length<=1||this.moving)){if(this.moveDistance=t.touches[0].pageX-this.startx,this.firstMove){this.firstMove=!1;var e=t.touches[0].pageY-this.starty;this.horizontalMove=Math.abs(this.moveDistance)>=Math.abs(e)}if(this.horizontalMove){t.preventDefault();var n=this.c_translatex+this.moveDistance,i=n;i=this.handleTouchmove_loop(n),this.setTranslate(i)}}},handleTouchend:function(t){if(!(this.length<=1||this.moving)&&this.horizontalMove){var e=(new Date).getTime()-this.touchStartTime<this.quickTouchTime;this.loop?this.handleTouchend_loop(this.cartChange(this.moveDistance,e)):this.updateInsideValue(this.cartChange(this.moveDistance,e)),this.moveDistance=0}},handleTouchmove_loop:function(t){if(this.loop)return t;var e=0,n=-this.width*(this.length-1);return t>e?e:t<n?n:t},handleTouchend_loop:function(t){var e=this;if(this.loop){var n=this.insideValue+t;return 0===this.insideValue&&n<this.insideValue?(this.setTranslate(-this.width*this.length+this.moveDistance),void setTimeout((function(){e.updateInsideValue(t)}),40)):this.insideValue===this.length-1&&n>this.insideValue?(this.setTranslate(this.width+this.moveDistance),void setTimeout((function(){e.updateInsideValue(t)}),40)):void this.updateInsideValue(t)}},updateInsideValue:function(t){var e=this;if(0!==t){var n=this.insideValue+t,i=this.chain(this.updateInsideValue_loop,this.updateInsideValue_normal,(function(t){e.insideValue=t}));i(n)}else this.valueChangeHandler(t)},updateInsideValue_loop:function(t){return!!this.loop&&(t<0?(this.insideValue=this.length-1,"done"):t>this.length-1&&(this.insideValue=0,"done"))},updateInsideValue_normal:function(t){return t<0?(this.insideValue=0,this.valueChangeHandler(0),"done"):t>this.length-1&&(this.insideValue=this.length-1,this.valueChangeHandler(this.length-1),"done")},cartChange:function(t,e){var n=Math.abs(t),i=Math.abs(this.c_minMoveDistance),r={normal:function(){return n<i?0:t>0?-1:t<0?1:0},quick:function(){return n<10?0:t>0?-1:t<0?1:0}},o="normal";switch(!0){case!0===e:o="quick";break;default:o="normal"}return r[o].apply(this)},valueChangeHandler:function(t){this.duration(),this.setTranslate(this.c_translatex)},autoChange:function(){var t=this;clearTimeout(this.autoplayTimer);var e=function e(){"number"!=typeof t.autoplayTime||t.autoplayTime<=0||t.length<=1||(t.autoplayTimer=setTimeout((function(){t.autoChangeHandler(),e()}),t.autoplayTime))};e()},autoChangeHandler:function(){var t=this;this.c_isEnd&&this.setTranslate(this.width),setTimeout((function(){t.insideValue=t.insideValue<t.length-1?t.insideValue+1:0}),40)},setTranslate:function(t){function e(t){this.$refs.wrapper.style.transform="translate3d("+t+"px, 0, 0)",this.$refs.wrapper.style.transform="webkikTranslate3d("+t+"px, 0, 0)"}function n(t){this.$refs.wrapper.style.webkitTransform="translate3d("+t+"px, 0, 0)",this.$refs.wrapper.style.webkitTransform="webkitTranslate3d("+t+"px, 0, 0)"}"transform"in document.documentElement.style?(this.setTranslate=e,this.setTranslate(t)):(this.setTranslate=n,this.setTranslate(t))},duration:function(){var t=this;this.moving=!0;var e=this.$refs.wrapper,n=this.speed;e.style.transitionDuration=n+"ms",e.style.webkitTransitionDuration=n+"ms",e.style.transitionTimingFunction="ease-out",e.style.webkitTransitionTimingFunction="ease-out",clearTimeout(this.durationTimer),this.durationTimer=setTimeout((function(){e.style.transitionDuration="",e.style.webkitTransitionDuration="",t.moving=!1}),n)},chain:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){for(var t=0;t<e.length;t+=1){var n=e[t].apply(e,arguments);if("done"===n)break}}}}}},function(t,e,n){t.exports={default:n(33),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(31),o=i(r);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){n(57),n(56),t.exports=n(4).Array.from},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(24),r=n(25),o=n(53);t.exports=function(t){return function(e,n,s){var a,u=i(e),c=r(u.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if(a=u[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var i=n(15),r=n(1)("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){"use strict";var i=n(8),r=n(12);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(2).document;t.exports=i&&i.documentElement},function(t,e,n){t.exports=!n(5)&&!n(20)((function(){return 7!=Object.defineProperty(n(17)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(11),r=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){var i=n(3);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e,n){"use strict";var i=n(46),r=n(12),o=n(22),s={};n(7)(s,n(1)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var i=n(21),r=n(19),o=n(51),s=n(7),a=n(11),u=n(43),c=n(22),f=n(48),l=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",m=function(){return this};t.exports=function(t,e,n,y,g,w,x){u(n,e,y);var T,b,_,M=function(t){if(!h&&t in j)return j[t];switch(t){case d:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",C=g==v,S=!1,j=t.prototype,V=j[l]||j[p]||g&&j[g],k=V||M(g),I=g?C?M("entries"):k:void 0,D="Array"==e&&j.entries||V;if(D&&(_=f(D.call(new t)),_!==Object.prototype&&_.next&&(c(_,O,!0),i||"function"==typeof _[l]||s(_,l,m))),C&&V&&V.name!==v&&(S=!0,k=function(){return V.call(this)}),i&&!x||!h&&!S&&j[l]||s(j,l,k),a[e]=k,a[O]=m,g)if(T={values:C?k:M(v),keys:w?k:M(d),entries:I},x)for(b in T)b in j||o(j,b,T[b]);else r(r.P+r.F*(h||S),e,T);return T}},function(t,e,n){var i=n(1)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){var i=n(3),r=n(47),o=n(18),s=n(13)("IE_PROTO"),a=function(){},u="prototype",c=function(){var t,e=n(17)("iframe"),i=o.length,r="<",s=">";for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),c=t.F;i--;)delete c[u][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=i(t),n=new a,a[u]=null,n[s]=t):n=c(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(8),r=n(3),o=n(50);t.exports=n(5)?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),a=s.length,u=0;a>u;)i.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var i=n(6),r=n(26),o=n(13)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var i=n(6),r=n(24),o=n(35)(!1),s=n(13)("IE_PROTO");t.exports=function(t,e){var n,a=r(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var i=n(49),r=n(18);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){t.exports=n(7)},function(t,e,n){var i=n(14),r=n(9);t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){var i=n(14),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(10);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(36),r=n(1)("iterator"),o=n(11);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){"use strict";var i=n(16),r=n(19),o=n(26),s=n(42),a=n(41),u=n(25),c=n(37),f=n(55);r(r.S+r.F*!n(45)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,l,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v,y=0,g=f(h);if(m&&(v=i(v,d>2?arguments[2]:void 0,2)),void 0==g||p==Array&&a(g))for(e=u(h.length),n=new p(e);e>y;y++)c(n,y,m?v(h[y],y):h[y]);else for(l=g.call(h),n=new p;!(r=l.next()).done;y++)c(n,y,m?s(l,v,[r.value,y],!0):r.value);return n.length=y,n}})},function(t,e,n){"use strict";var i=n(52)(!0);n(44)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e){},function(t,e,n){var i=n(28)(n(29),n(62),null,null);t.exports=i.exports},function(t,e,n){n(58);var i=n(28)(n(30),n(61),null,null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-swipe",on:{touchstart:t.handleTouchstart,touchmove:t.handleTouchmove,touchend:t.handleTouchend,touchcancel:t.handleTouchend}},[n("div",{ref:"wrapper",staticClass:"c-swipe-wrapper"},[t._t("default")],2),t._v(" "),t.pagination?n("div",{staticClass:"c-swipe-pagination"},[n("div",{staticClass:"c-swipe-pagination-bar"},t._l(t.length,(function(e){return n("i",{key:e,class:["c-swipe-pagination-item",e-1===t.insideValue?"active":""]})})))]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-swipe-item"},[t._t("default")],2)},staticRenderFns:[]}}])}))}).call(this,n("62e4")(t))}}]);