From 923123f9b7002904bf00b600fd63e8f8f227240c Mon Sep 17 00:00:00 2001 From: AmyFoxFN Date: Mon, 19 Mar 2018 16:29:57 +0800 Subject: [PATCH] publish build --- lib/action-sheet/action-sheet.min.js | 2 +- lib/action-sheet/index.js | 126 +-- lib/cascade-picker/cascade-picker.min.js | 4 +- lib/cascade-picker/index.js | 132 +-- lib/create-api/create-api.min.js | 2 +- lib/create-api/index.js | 114 ++- lib/cube.min.js | 4 +- lib/dialog/dialog.min.js | 2 +- lib/dialog/index.js | 122 +-- lib/index-list/index-list.min.js | 4 +- lib/index-list/index.js | 50 +- lib/index.js | 1159 +++++++++++----------- lib/picker/index.js | 128 +-- lib/picker/picker.min.js | 4 +- lib/popup/index.js | 118 ++- lib/popup/popup.min.js | 2 +- lib/rate/index.js | 12 +- lib/rate/rate.min.js | 2 +- lib/scroll/index.js | 48 +- lib/scroll/scroll.min.js | 4 +- lib/select/index.js | 138 +-- lib/select/select.min.js | 4 +- lib/slide/index.js | 2 +- lib/slide/slide.min.js | 2 +- lib/swipe/index.js | 128 +-- lib/swipe/swipe.min.js | 2 +- lib/switch/index.js | 20 +- lib/switch/switch.min.js | 2 +- lib/textarea/index.js | 20 +- lib/textarea/textarea.min.js | 2 +- lib/time-picker/index.js | 151 +-- lib/time-picker/time-picker.min.js | 4 +- lib/tip/index.js | 56 +- lib/tip/tip.min.js | 2 +- lib/toast/index.js | 142 +-- lib/toast/toast.min.js | 2 +- lib/upload/index.js | 84 +- lib/upload/upload.min.js | 2 +- lib/validator/index.js | 85 +- lib/validator/validator.min.js | 2 +- package-lock.json | 14 +- 41 files changed, 1467 insertions(+), 1436 deletions(-) diff --git a/lib/action-sheet/action-sheet.min.js b/lib/action-sheet/action-sheet.min.js index 611fc4d54..836bd44af 100644 --- a/lib/action-sheet/action-sheet.min.js +++ b/lib/action-sheet/action-sheet.min.js @@ -1 +1 @@ -module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=150)}([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){t.exports=function(t,e,n,r,o){var i,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(i=t,u=t.default);var a="function"==typeof u?u.options:u;e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),r&&(a._scopeId=r);var s;if(o?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},a._ssrRegister=s):n&&(s=n),s){var f=a.functional,l=f?a.render:a.beforeCreate;f?a.render=function(t,e){return s.call(e),l(t,e)}:a.beforeCreate=l?[].concat(l,s):[s]}return{esModule:i,exports:u,options:a}}},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},,function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(9),o=n(15);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(8),o=n(30),i=n(29),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(18),o=n(12);t.exports=function(t){return r(o(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){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(0),o=n(3),i=n(20),u=n(7),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,_=t&c.B,y=t&c.W,h=p?o:o[e]||(o[e]={}),b=h.prototype,m=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(s=!l&&m&&void 0!==m[a])&&a in h||(f=s?m[a]:n[a],h[a]=p&&"function"!=typeof m[a]?n[a]:_&&s?i(f,r):y&&m[a]==f?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((h.virtual||(h.virtual={}))[a]=f,t&c.R&&b&&!b[a]&&u(b,a,f)))};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,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(24)("keys"),o=n(19);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(31),o=n(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(12);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(5),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},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 r=n(13),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=!n(2)&&!n(6)(function(){return 7!=Object.defineProperty(n(23)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10),o=n(11),i=n(33)(!1),u=n(16)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(11),o=n(27),i=n(34);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(13),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r,o,i;!function(n,u){o=[t,e],r=u,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{isVisible:!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},function(t,e,n){var r,o,i;!function(n,u){o=[e],r=u,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t){"use strict";function e(t){return t=String(t),t.replace(n,function(t,e){return e?e.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=e;var n=/-(\w)/g})},function(t,e){e.f=Object.getOwnPropertySymbols},,function(t,e,n){t.exports={default:n(40),__esModule:!0}},function(t,e,n){n(41),t.exports=n(3).Object.assign},function(t,e,n){var r=n(14);r(r.S+r.F,"Object",{assign:n(42)})},function(t,e,n){"use strict";var r=n(21),o=n(37),i=n(32),u=n(22),c=n(18),a=Object.assign;t.exports=!a||n(6)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,s=1,f=o.f,l=i.f;a>s;)for(var p,d=c(arguments[s++]),v=f?r(d).concat(f(d)):r(d),_=v.length,y=0;_>y;)l.call(d,p=v[y++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(36),n(46)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t,e,r,o){var u=i.default.apply(this,arguments),c=e.name,a=c.replace(/^cube-/i,""),s="$"+(0,n.camelize)("create-"+a);return t.prototype[s]=u.create,u}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default})},,function(t,e,n){"use strict";e.__esModule=!0;var r=n(39),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=void 0,i=void 0,a=[],s={before:function(t){a.push(t)},open:function(n,c,s){if("function"!=typeof c&&(s=c,c=null),a.forEach(function(t){t(n,c,s)}),void 0===s&&(s=r),s&&o)return i.updateRenderData(n,c),i.$forceUpdate(),o;var f=(0,u.default)(t,e,n,c),l=f.$parent,p=f.remove;f.remove=function(){l.__cube__destroyed||(p&&p.call(this),l.destroy(),l.__cube__destroyed=!0,s&&(o=null,i=null))};var d=f.show;f.show=function(){return d&&d.call(this),this};var v=f.hide;return f.hide=function(){return v&&v.call(this),this},s&&(o=f,i=l),f},create:function(t,e,r){var o=this,i=s.open((0,c.default)(t,n),e,r);if(i.__cube__parent!==o){i.__cube__parent=o;var u=function t(){i.__cube__parent===o&&i.remove(),o.$off("hook:beforeDestroy",t),i.__cube__parent=null};o.$on("hook:beforeDestroy",u)}return i}};return s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var u=o(n),c=o(r);t.exports=e.default})},function(t,e,n){var r,o,i;!function(n,u){o=[t,e],r=u,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e){"use strict";function n(t,e,n,r){var o=void 0,i=void 0,u=new t({render:function(t){var n=i&&i(t);return n&&!Array.isArray(n)&&(n=[n]),t(e,o,n||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return u.updateRenderData=function(t,e){o=t,i=e},u.updateRenderData(n,r),u.$mount(),u.init(),u.$children[0]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default})},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(45),n(36)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=i(e);var n=(0,u.default)({},t),r={};for(var o in e)if(e.hasOwnProperty(o)){var c=e[o];n[c]&&(r[o]=n[c],delete n[c])}return{props:n,on:r}}function i(t){var e={};return t.forEach(function(t){e[t]=(0,r.camelize)("on-"+t)}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var u=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},,function(t,e,n){function r(t){n(51)}var o=n(1)(n(52),n(53),r,null,null);t.exports=o.exports},function(t,e){},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(35)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default={name:"cube-popup",mixins:[r.default],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},zIndex:{type:Number,default:100}},computed:{typeClass:function(){return this.type?"cube-"+this.type:""}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}},t.exports=e.default})},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-popup",class:t.typeClass,style:{"z-index":t.zIndex}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"cube-popup-mask",on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),n("div",{staticClass:"cube-popup-container",class:{"cube-popup-center":t.center}},[t.$slots.default?n("div",{staticClass:"cube-popup-content"},[t._t("default")],2):n("div",{staticClass:"cube-popup-content",domProps:{innerHTML:t._s(t.content)}})])])},staticRenderFns:[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(151),n(155)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n),u=o(r);i.default.install=function(t){t.component(i.default.name,i.default),(0,u.default)(t,i.default)},e.default=i.default,t.exports=e.default})},function(t,e,n){function r(t){n(152)}var o=n(1)(n(153),n(154),r,null,null);t.exports=o.exports},function(t,e){},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(50),n(35)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n),u=o(r);e.default={name:"cube-action-sheet",mixins:[u.default],props:{data:{type:Array,default:function(){return[]}},active:{type:Number,default:-1},title:{type:String,default:" "},pickerStyle:{type:Boolean,default:!1},zIndex:{type:Number}},methods:{noop:function(){},cancel:function(){this.hide(),this.$emit("cancel")},itemClick:function(t,e){this.hide(),this.$emit("select",t,e)}},components:{CubePopup:i.default}},t.exports=e.default})},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"cube-action-sheet-fade"}},[n("cube-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],class:{"cube-action-sheet_picker":t.pickerStyle},attrs:{type:"action-sheet",center:!1,mask:!0,"z-index":t.zIndex},on:{touchmove:function(e){e.preventDefault(),t.noop(e)},"mask-click":t.cancel}},[n("transition",{attrs:{name:"cube-action-sheet-move"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-action-sheet-panel cube-safe-area-pb",on:{click:function(e){e.stopPropagation(),t.noop(e)}}},[n("h1",{directives:[{name:"show",rawName:"v-show",value:t.pickerStyle||t.title,expression:"pickerStyle || title"}],staticClass:"cube-action-sheet-title border-bottom-1px"},[t._v(t._s(t.title))]),t._v(" "),n("div",{staticClass:"cube-action-sheet-content"},[n("ul",{staticClass:"cube-action-sheet-list"},t._l(t.data,function(e,r){return n("li",{staticClass:"cube-action-sheet-item border-bottom-1px",class:[e.class||"",r===t.active?"cube-action-sheet-item_active":""],attrs:{"data-align":e.align},domProps:{innerHTML:t._s(e.content)},on:{click:function(n){t.itemClick(e,r)}}})}))]),t._v(" "),n("div",{staticClass:"cube-action-sheet-space"}),t._v(" "),n("div",{staticClass:"cube-action-sheet-cancel",on:{click:t.cancel}},[n("span",[t._v("取消")])])])])],1)],1)},staticRenderFns:[]}},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(43)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n){"use strict";function r(t,e){(0,o.default)(t,e,["select","cancel"],!0)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})}]); \ No newline at end of file +module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=150)}([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){t.exports=function(t,e,n,r,o){var i,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(i=t,u=t.default);var a="function"==typeof u?u.options:u;e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),r&&(a._scopeId=r);var s;if(o?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},a._ssrRegister=s):n&&(s=n),s){var f=a.functional,l=f?a.render:a.beforeCreate;f?a.render=function(t,e){return s.call(e),l(t,e)}:a.beforeCreate=l?[].concat(l,s):[s]}return{esModule:i,exports:u,options:a}}},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},,function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(9),o=n(15);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(8),o=n(30),i=n(29),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(18),o=n(12);t.exports=function(t){return r(o(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){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(0),o=n(3),i=n(20),u=n(7),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,_=t&c.B,y=t&c.W,h=p?o:o[e]||(o[e]={}),b=h.prototype,m=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(s=!l&&m&&void 0!==m[a])&&a in h||(f=s?m[a]:n[a],h[a]=p&&"function"!=typeof m[a]?n[a]:_&&s?i(f,r):y&&m[a]==f?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((h.virtual||(h.virtual={}))[a]=f,t&c.R&&b&&!b[a]&&u(b,a,f)))};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,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(24)("keys"),o=n(19);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(31),o=n(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(12);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(5),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},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 r=n(13),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=!n(2)&&!n(6)(function(){return 7!=Object.defineProperty(n(23)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10),o=n(11),i=n(34)(!1),u=n(16)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";e.__esModule=!0;var r=n(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;ef;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(13),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r,o,i;!function(n,u){o=[t,e],r=u,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{isVisible:!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},function(t,e,n){var r,o,i;!function(n,u){o=[e],r=u,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t){"use strict";function e(t){return t=String(t),t.replace(n,function(t,e){return e?e.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=e;var n=/-(\w)/g})},function(t,e){e.f=Object.getOwnPropertySymbols},,function(t,e,n){t.exports={default:n(41),__esModule:!0}},function(t,e,n){n(42),t.exports=n(3).Object.assign},function(t,e,n){var r=n(14);r(r.S+r.F,"Object",{assign:n(43)})},function(t,e,n){"use strict";var r=n(21),o=n(38),i=n(32),u=n(22),c=n(18),a=Object.assign;t.exports=!a||n(6)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,s=1,f=o.f,l=i.f;a>s;)for(var p,d=c(arguments[s++]),v=f?r(d).concat(f(d)):r(d),_=v.length,y=0;_>y;)l.call(d,p=v[y++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(37),n(46)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t,e,r,o){var u=i.default.apply(this,arguments),c=e.name,a=c.replace(/^cube-/i,""),s="$"+(0,n.camelize)("create-"+a);return t.prototype[s]=u.create,u}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default})},,function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(47),n(48)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=void 0,i=void 0,a=[],s={before:function(t){a.push(t)},open:function(n,c,s){if("function"!=typeof c&&(s=c,c=null),a.forEach(function(t){t(n,c,s)}),void 0===s&&(s=r),s&&o)return i.updateRenderData(n,c),i.$forceUpdate(),o;var f=(0,u.default)(t,e,n,c),l=f.$parent,p=f.remove;f.remove=function(){l.__cube__destroyed||(p&&p.call(this),l.destroy(),l.__cube__destroyed=!0,s&&(o=null,i=null))};var d=f.show;f.show=function(){return d&&d.call(this),this};var v=f.hide;return f.hide=function(){return v&&v.call(this),this},s&&(o=f,i=l),f},create:function(t,e,r){var o=this,i=s.open((0,c.default)(t,n),e,r);if(i.__cube__parent!==o){i.__cube__parent=o;var u=function t(){i.__cube__parent===o&&i.remove(),o.$off("hook:beforeDestroy",t),i.__cube__parent=null};o.$on("hook:beforeDestroy",u)}return i}};return s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var u=o(n),c=o(r);t.exports=e.default})},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(33)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n){"use strict";function r(t,e,n,r){var i=void 0,u=void 0,c=new t({render:function(t){var n=u&&u(t);return n&&!Array.isArray(n)&&(n=[n]),t(e,(0,o.default)({},i),n||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return c.updateRenderData=function(t,e){i=t,u=e},c.updateRenderData(n,r),c.$mount(),c.init(),c.$children[0]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(33),n(37)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=i(e);var n=(0,u.default)({},t),r={};for(var o in e)if(e.hasOwnProperty(o)){var c=e[o];n[c]&&(r[o]=n[c],delete n[c])}return{props:n,on:r}}function i(t){var e={};return t.forEach(function(t){e[t]=(0,r.camelize)("on-"+t)}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var u=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},,function(t,e,n){function r(t){n(51)}var o=n(1)(n(52),n(53),r,null,null);t.exports=o.exports},function(t,e){},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(36)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default={name:"cube-popup",mixins:[r.default],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},zIndex:{type:Number,default:100}},computed:{typeClass:function(){return this.type?"cube-"+this.type:""}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}},t.exports=e.default})},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-popup",class:t.typeClass,style:{"z-index":t.zIndex}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"cube-popup-mask",on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),n("div",{staticClass:"cube-popup-container",class:{"cube-popup-center":t.center}},[t.$slots.default?n("div",{staticClass:"cube-popup-content"},[t._t("default")],2):n("div",{staticClass:"cube-popup-content",domProps:{innerHTML:t._s(t.content)}})])])},staticRenderFns:[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(151),n(155)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n),u=o(r);i.default.install=function(t){t.component(i.default.name,i.default),(0,u.default)(t,i.default)},e.default=i.default,t.exports=e.default})},function(t,e,n){function r(t){n(152)}var o=n(1)(n(153),n(154),r,null,null);t.exports=o.exports},function(t,e){},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(50),n(36)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n),u=o(r);e.default={name:"cube-action-sheet",mixins:[u.default],props:{data:{type:Array,default:function(){return[]}},active:{type:Number,default:-1},title:{type:String,default:" "},pickerStyle:{type:Boolean,default:!1},zIndex:{type:Number}},methods:{noop:function(){},cancel:function(){this.hide(),this.$emit("cancel")},itemClick:function(t,e){this.hide(),this.$emit("select",t,e)}},components:{CubePopup:i.default}},t.exports=e.default})},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"cube-action-sheet-fade"}},[n("cube-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],class:{"cube-action-sheet_picker":t.pickerStyle},attrs:{type:"action-sheet",center:!1,mask:!0,"z-index":t.zIndex},on:{touchmove:function(e){return e.preventDefault(),t.noop(e)},"mask-click":t.cancel}},[n("transition",{attrs:{name:"cube-action-sheet-move"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-action-sheet-panel cube-safe-area-pb",on:{click:function(e){return e.stopPropagation(),t.noop(e)}}},[n("h1",{directives:[{name:"show",rawName:"v-show",value:t.pickerStyle||t.title,expression:"pickerStyle || title"}],staticClass:"cube-action-sheet-title border-bottom-1px"},[t._v(t._s(t.title))]),t._v(" "),n("div",{staticClass:"cube-action-sheet-content"},[n("ul",{staticClass:"cube-action-sheet-list"},t._l(t.data,function(e,r){return n("li",{staticClass:"cube-action-sheet-item border-bottom-1px",class:[e.class||"",r===t.active?"cube-action-sheet-item_active":""],attrs:{"data-align":e.align},domProps:{innerHTML:t._s(e.content)},on:{click:function(n){t.itemClick(e,r)}}})}))]),t._v(" "),n("div",{staticClass:"cube-action-sheet-space"}),t._v(" "),n("div",{staticClass:"cube-action-sheet-cancel",on:{click:t.cancel}},[n("span",[t._v("取消")])])])])],1)],1)},staticRenderFns:[]}},function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(44)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n){"use strict";function r(t,e){(0,o.default)(t,e,["select","cancel"],!0)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})}]); \ No newline at end of file diff --git a/lib/action-sheet/index.js b/lib/action-sheet/index.js index d04266dd5..67215d25e 100644 --- a/lib/action-sheet/index.js +++ b/lib/action-sheet/index.js @@ -573,7 +573,7 @@ module.exports = !__webpack_require__(2) && !__webpack_require__(6)(function () var has = __webpack_require__(10); var toIObject = __webpack_require__(11); -var arrayIndexOf = __webpack_require__(33)(false); +var arrayIndexOf = __webpack_require__(34)(false); var IE_PROTO = __webpack_require__(16)('IE_PROTO'); module.exports = function (object, names) { @@ -601,11 +601,40 @@ exports.f = {}.propertyIsEnumerable; /* 33 */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; + + +exports.__esModule = true; + +var _assign = __webpack_require__(40); + +var _assign2 = _interopRequireDefault(_assign); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; +}; + +/***/ }), +/* 34 */ +/***/ (function(module, exports, __webpack_require__) { + // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(11); var toLength = __webpack_require__(27); -var toAbsoluteIndex = __webpack_require__(34); +var toAbsoluteIndex = __webpack_require__(35); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIObject($this); @@ -627,7 +656,7 @@ module.exports = function (IS_INCLUDES) { /***/ }), -/* 34 */ +/* 35 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(13); @@ -640,7 +669,7 @@ module.exports = function (index, length) { /***/ }), -/* 35 */ +/* 36 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { @@ -684,7 +713,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 36 */ +/* 37 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { @@ -719,46 +748,46 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 37 */ +/* 38 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), -/* 38 */, -/* 39 */ +/* 39 */, +/* 40 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(40), __esModule: true }; +module.exports = { "default": __webpack_require__(41), __esModule: true }; /***/ }), -/* 40 */ +/* 41 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(41); +__webpack_require__(42); module.exports = __webpack_require__(3).Object.assign; /***/ }), -/* 41 */ +/* 42 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(14); -$export($export.S + $export.F, 'Object', { assign: __webpack_require__(42) }); +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(43) }); /***/ }), -/* 42 */ +/* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // 19.1.2.1 Object.assign(target, source, ...) var getKeys = __webpack_require__(21); -var gOPS = __webpack_require__(37); +var gOPS = __webpack_require__(38); var pIE = __webpack_require__(32); var toObject = __webpack_require__(22); var IObject = __webpack_require__(18); @@ -792,12 +821,12 @@ module.exports = !$assign || __webpack_require__(6)(function () { /***/ }), -/* 43 */ +/* 44 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(36), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(37), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -838,36 +867,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 44 */, -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _assign = __webpack_require__(39); - -var _assign2 = _interopRequireDefault(_assign); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; -}; - -/***/ }), +/* 45 */, /* 46 */ /***/ (function(module, exports, __webpack_require__) { @@ -993,26 +993,35 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(33)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof exports !== "undefined") { - factory(module, exports); + factory(module, exports, require("babel-runtime/helpers/extends")); } else { var mod = { exports: {} }; - factory(mod, mod.exports); + factory(mod, mod.exports, global._extends); global.instantiateComponent = mod.exports; } -})(this, function (module, exports) { +})(this, function (module, exports, _extends2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = instantiateComponent; + + var _extends3 = _interopRequireDefault(_extends2); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function instantiateComponent(Vue, Component, data, renderFn) { var renderData = void 0; var childrenRenderFn = void 0; @@ -1022,7 +1031,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ if (children && !Array.isArray(children)) { children = [children]; } - return createElement(Component, renderData, children || []); + + return createElement(Component, (0, _extends3.default)({}, renderData), children || []); }, methods: { @@ -1054,7 +1064,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(45), __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(33), __webpack_require__(37)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -1151,7 +1161,7 @@ module.exports = Component.exports var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -1440,7 +1450,7 @@ module.exports = Component.exports var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(50), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(50), __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -1546,7 +1556,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c on: { "touchmove": function($event) { $event.preventDefault(); - _vm.noop($event) + return _vm.noop($event) }, "mask-click": _vm.cancel } @@ -1565,7 +1575,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c on: { "click": function($event) { $event.stopPropagation(); - _vm.noop($event) + return _vm.noop($event) } } }, [_c('h1', { @@ -1615,7 +1625,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(43)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(44)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); diff --git a/lib/cascade-picker/cascade-picker.min.js b/lib/cascade-picker/cascade-picker.min.js index 35436bab3..b82de2de5 100644 --- a/lib/cascade-picker/cascade-picker.min.js +++ b/lib/cascade-picker/cascade-picker.min.js @@ -1,6 +1,6 @@ -module.exports=function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=162)}([function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){t.exports=function(t,e,i,n,o){var r,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,s=t.default);var c="function"==typeof s?s.options:s;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),n&&(c._scopeId=n);var h;if(o?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):i&&(h=i),h){var l=c.functional,u=l?c.render:c.beforeCreate;l?c.render=function(t,e){return h.call(e),u(t,e)}:c.beforeCreate=u?[].concat(u,h):[h]}return{esModule:r,exports:s,options:c}}},function(t,e,i){t.exports=!i(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var i=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(24)("wks"),o=i(19),r=i(0).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=n},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(9),o=i(15);t.exports=i(2)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(5);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var n=i(8),o=i(30),r=i(29),s=Object.defineProperty;e.f=i(2)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(18),o=i(12);t.exports=function(t){return n(o(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){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(0),o=i(3),r=i(20),s=i(7),a=function(t,e,i){var c,h,l,u=t&a.F,p=t&a.G,f=t&a.S,d=t&a.P,v=t&a.B,m=t&a.W,g=p?o:o[e]||(o[e]={}),y=g.prototype,x=p?n:f?n[e]:(n[e]||{}).prototype;p&&(i=e);for(c in i)(h=!u&&x&&void 0!==x[c])&&c in g||(l=h?x[c]:i[c],g[c]=p&&"function"!=typeof x[c]?i[c]:v&&h?r(l,n):m&&x[c]==l?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?r(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[c]=l,t&a.R&&y&&!y[c]&&s(y,c,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(24)("keys"),o=i(19);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(26);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var n=i(31),o=i(25);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(12);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(5),o=i(0).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){var n=i(0),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(13),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,i){var n=i(5);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){t.exports=!i(2)&&!i(6)(function(){return 7!=Object.defineProperty(i(23)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(10),o=i(11),r=i(33)(!1),s=i(16)("IE_PROTO");t.exports=function(t,e){var i,a=o(t),c=0,h=[];for(i in a)i!=s&&n(a,i)&&h.push(i);for(;e.length>c;)n(a,i=e[c++])&&(~r(h,i)||h.push(i));return h}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(11),o=i(27),r=i(34);t.exports=function(t){return function(e,i,s){var a,c=n(e),h=o(c.length),l=r(s,h);if(t&&i!=i){for(;h>l;)if((a=c[l++])!=a)return!0}else for(;h>l;l++)if((t||l in c)&&c[l]===i)return t||l||0;return!t&&-1}}},function(t,e,i){var n=i(13),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},function(t,e,i){var n,o,r;!function(i,s){o=[t,e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{isVisible:!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";function e(t){return t=String(t),t.replace(i,function(t,e){return e?e.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=e;var i=/-(\w)/g})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(9).f,o=i(10),r=i(4)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e,i){t.exports={default:i(40),__esModule:!0}},function(t,e,i){i(41),t.exports=i(3).Object.assign},function(t,e,i){var n=i(14);n(n.S+n.F,"Object",{assign:i(42)})},function(t,e,i){"use strict";var n=i(21),o=i(37),r=i(32),s=i(22),a=i(18),c=Object.assign;t.exports=!c||i(6)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=c({},t)[i]||Object.keys(c({},e)).join("")!=n})?function(t,e){for(var i=s(t),c=arguments.length,h=1,l=o.f,u=r.f;c>h;)for(var p,f=a(arguments[h++]),d=l?n(f).concat(l(f)):n(f),v=d.length,m=0;v>m;)u.call(f,p=d[m++])&&(i[p]=f[p]);return i}:c},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(36),i(46)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e,n,o){var s=r.default.apply(this,arguments),a=e.name,c=a.replace(/^cube-/i,""),h="$"+(0,i.camelize)("create-"+c);return t.prototype[h]=s.create,s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},function(t,e){t.exports=!0},function(t,e,i){"use strict";e.__esModule=!0;var n=i(39),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=void 0,r=void 0,c=[],h={before:function(t){c.push(t)},open:function(i,a,h){if("function"!=typeof a&&(h=a,a=null),c.forEach(function(t){t(i,a,h)}),void 0===h&&(h=n),h&&o)return r.updateRenderData(i,a),r.$forceUpdate(),o;var l=(0,s.default)(t,e,i,a),u=l.$parent,p=l.remove;l.remove=function(){u.__cube__destroyed||(p&&p.call(this),u.destroy(),u.__cube__destroyed=!0,h&&(o=null,r=null))};var f=l.show;l.show=function(){return f&&f.call(this),this};var d=l.hide;return l.hide=function(){return d&&d.call(this),this},h&&(o=l,r=u),l},create:function(t,e,n){var o=this,r=h.open((0,a.default)(t,i),e,n);if(r.__cube__parent!==o){r.__cube__parent=o;var s=function t(){r.__cube__parent===o&&r.remove(),o.$off("hook:beforeDestroy",t),r.__cube__parent=null};o.$on("hook:beforeDestroy",s)}return r}};return h}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var s=o(i),a=o(n);t.exports=e.default})},function(t,e,i){var n,o,r;!function(i,s){o=[t,e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e){"use strict";function i(t,e,i,n){var o=void 0,r=void 0,s=new t({render:function(t){var i=r&&r(t);return i&&!Array.isArray(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,r=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default})},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(45),i(36)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=r(e);var i=(0,s.default)({},t),n={};for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i[a]&&(n[o]=i[a],delete i[a])}return{props:i,on:n}}function r(t){var e={};return t.forEach(function(t){e[t]=(0,n.camelize)("on-"+t)}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default})},function(t,e,i){"use strict";var n=i(44),o=i(14),r=i(55),s=i(7),a=i(10),c=i(28),h=i(60),l=i(38),u=i(62),p=i(4)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,i,v,m,g,y){h(i,e,v);var x,w,b,_=function(t){if(!f&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},T=e+" Iterator",S="values"==m,k=!1,M=t.prototype,P=M[p]||M["@@iterator"]||m&&M[m],D=!f&&P||_(m),E=m?S?_("entries"):D:void 0,X="Array"==e?M.entries||P:P;if(X&&(b=u(X.call(new t)))!==Object.prototype&&b.next&&(l(b,T,!0),n||a(b,p)||s(b,p,d)),S&&P&&"values"!==P.name&&(k=!0,D=function(){return P.call(this)}),n&&!y||!f&&!k&&M[p]||s(M,p,D),c[e]=D,c[T]=d,m)if(x={values:S?D:_("values"),keys:g?D:_("keys"),entries:E},y)for(w in x)w in M||r(M,w,x[w]);else o(o.P+o.F*(f||k),e,x);return x}},function(t,e,i){function n(t){i(51)}var o=i(1)(i(52),i(53),n,null,null);t.exports=o.exports},function(t,e){},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(35)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"cube-popup",mixins:[n.default],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},zIndex:{type:Number,default:100}},computed:{typeClass:function(){return this.type?"cube-"+this.type:""}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}},t.exports=e.default})},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-popup",class:t.typeClass,style:{"z-index":t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"cube-popup-mask",on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"cube-popup-container",class:{"cube-popup-center":t.center}},[t.$slots.default?i("div",{staticClass:"cube-popup-content"},[t._t("default")],2):i("div",{staticClass:"cube-popup-content",domProps:{innerHTML:t._s(t.content)}})])])},staticRenderFns:[]}},function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n0&&(v=o?Math.min(o/4,o/d*a):0,f=l),{destination:Math.round(v),duration:f}}function y(){}function x(t){console.error("[BScroll warn]: "+t)}function w(t,e){if(!t)throw new Error("[BScroll] "+e)}function b(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function _(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function T(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||x("can not resolve the wrapper dom"),this.scroller=this.wrapper.children[0],this.scroller||x("the wrapper need at least one child element to be scroller"),this.scrollerStyle=this.scroller.style,this._init(t,e)}Object.defineProperty(e,"__esModule",{value:!0});/*! +module.exports=function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=162)}([function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){t.exports=function(t,e,i,n,o){var r,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,s=t.default);var c="function"==typeof s?s.options:s;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),n&&(c._scopeId=n);var h;if(o?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):i&&(h=i),h){var l=c.functional,u=l?c.render:c.beforeCreate;l?c.render=function(t,e){return h.call(e),u(t,e)}:c.beforeCreate=u?[].concat(u,h):[h]}return{esModule:r,exports:s,options:c}}},function(t,e,i){t.exports=!i(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var i=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(24)("wks"),o=i(19),r=i(0).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=n},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(9),o=i(15);t.exports=i(2)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(5);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var n=i(8),o=i(30),r=i(29),s=Object.defineProperty;e.f=i(2)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(18),o=i(12);t.exports=function(t){return n(o(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){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(0),o=i(3),r=i(20),s=i(7),a=function(t,e,i){var c,h,l,u=t&a.F,p=t&a.G,f=t&a.S,d=t&a.P,v=t&a.B,m=t&a.W,g=p?o:o[e]||(o[e]={}),y=g.prototype,x=p?n:f?n[e]:(n[e]||{}).prototype;p&&(i=e);for(c in i)(h=!u&&x&&void 0!==x[c])&&c in g||(l=h?x[c]:i[c],g[c]=p&&"function"!=typeof x[c]?i[c]:v&&h?r(l,n):m&&x[c]==l?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?r(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[c]=l,t&a.R&&y&&!y[c]&&s(y,c,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(24)("keys"),o=i(19);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(26);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var n=i(31),o=i(25);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(12);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(5),o=i(0).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){var n=i(0),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(13),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,i){var n=i(5);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){t.exports=!i(2)&&!i(6)(function(){return 7!=Object.defineProperty(i(23)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(10),o=i(11),r=i(34)(!1),s=i(16)("IE_PROTO");t.exports=function(t,e){var i,a=o(t),c=0,h=[];for(i in a)i!=s&&n(a,i)&&h.push(i);for(;e.length>c;)n(a,i=e[c++])&&(~r(h,i)||h.push(i));return h}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){"use strict";e.__esModule=!0;var n=i(40),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;el;)if((a=c[l++])!=a)return!0}else for(;h>l;l++)if((t||l in c)&&c[l]===i)return t||l||0;return!t&&-1}}},function(t,e,i){var n=i(13),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},function(t,e,i){var n,o,r;!function(i,s){o=[t,e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{isVisible:!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";function e(t){return t=String(t),t.replace(i,function(t,e){return e?e.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=e;var i=/-(\w)/g})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(9).f,o=i(10),r=i(4)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e,i){t.exports={default:i(41),__esModule:!0}},function(t,e,i){i(42),t.exports=i(3).Object.assign},function(t,e,i){var n=i(14);n(n.S+n.F,"Object",{assign:i(43)})},function(t,e,i){"use strict";var n=i(21),o=i(38),r=i(32),s=i(22),a=i(18),c=Object.assign;t.exports=!c||i(6)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=c({},t)[i]||Object.keys(c({},e)).join("")!=n})?function(t,e){for(var i=s(t),c=arguments.length,h=1,l=o.f,u=r.f;c>h;)for(var p,f=a(arguments[h++]),d=l?n(f).concat(l(f)):n(f),v=d.length,m=0;v>m;)u.call(f,p=d[m++])&&(i[p]=f[p]);return i}:c},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(37),i(46)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e,n,o){var s=r.default.apply(this,arguments),a=e.name,c=a.replace(/^cube-/i,""),h="$"+(0,i.camelize)("create-"+c);return t.prototype[h]=s.create,s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},function(t,e){t.exports=!0},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(47),i(48)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=void 0,r=void 0,c=[],h={before:function(t){c.push(t)},open:function(i,a,h){if("function"!=typeof a&&(h=a,a=null),c.forEach(function(t){t(i,a,h)}),void 0===h&&(h=n),h&&o)return r.updateRenderData(i,a),r.$forceUpdate(),o;var l=(0,s.default)(t,e,i,a),u=l.$parent,p=l.remove;l.remove=function(){u.__cube__destroyed||(p&&p.call(this),u.destroy(),u.__cube__destroyed=!0,h&&(o=null,r=null))};var f=l.show;l.show=function(){return f&&f.call(this),this};var d=l.hide;return l.hide=function(){return d&&d.call(this),this},h&&(o=l,r=u),l},create:function(t,e,n){var o=this,r=h.open((0,a.default)(t,i),e,n);if(r.__cube__parent!==o){r.__cube__parent=o;var s=function t(){r.__cube__parent===o&&r.remove(),o.$off("hook:beforeDestroy",t),r.__cube__parent=null};o.$on("hook:beforeDestroy",s)}return r}};return h}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var s=o(i),a=o(n);t.exports=e.default})},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(33)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,s=void 0,a=new t({render:function(t){var i=s&&s(t);return i&&!Array.isArray(i)&&(i=[i]),t(e,(0,o.default)({},r),i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return a.updateRenderData=function(t,e){r=t,s=e},a.updateRenderData(i,n),a.$mount(),a.init(),a.$children[0]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default})},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(33),i(37)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=r(e);var i=(0,s.default)({},t),n={};for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i[a]&&(n[o]=i[a],delete i[a])}return{props:i,on:n}}function r(t){var e={};return t.forEach(function(t){e[t]=(0,n.camelize)("on-"+t)}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default})},function(t,e,i){"use strict";var n=i(45),o=i(14),r=i(55),s=i(7),a=i(10),c=i(28),h=i(60),l=i(39),u=i(62),p=i(4)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,i,v,m,g,y){h(i,e,v);var x,w,b,_=function(t){if(!f&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},T=e+" Iterator",S="values"==m,k=!1,M=t.prototype,P=M[p]||M["@@iterator"]||m&&M[m],D=!f&&P||_(m),E=m?S?_("entries"):D:void 0,X="Array"==e?M.entries||P:P;if(X&&(b=u(X.call(new t)))!==Object.prototype&&b.next&&(l(b,T,!0),n||a(b,p)||s(b,p,d)),S&&P&&"values"!==P.name&&(k=!0,D=function(){return P.call(this)}),n&&!y||!f&&!k&&M[p]||s(M,p,D),c[e]=D,c[T]=d,m)if(x={values:S?D:_("values"),keys:g?D:_("keys"),entries:E},y)for(w in x)w in M||r(M,w,x[w]);else o(o.P+o.F*(f||k),e,x);return x}},function(t,e,i){function n(t){i(51)}var o=i(1)(i(52),i(53),n,null,null);t.exports=o.exports},function(t,e){},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(36)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"cube-popup",mixins:[n.default],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},zIndex:{type:Number,default:100}},computed:{typeClass:function(){return this.type?"cube-"+this.type:""}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}},t.exports=e.default})},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-popup",class:t.typeClass,style:{"z-index":t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"cube-popup-mask",on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"cube-popup-container",class:{"cube-popup-center":t.center}},[t.$slots.default?i("div",{staticClass:"cube-popup-content"},[t._t("default")],2):i("div",{staticClass:"cube-popup-content",domProps:{innerHTML:t._s(t.content)}})])])},staticRenderFns:[]}},function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n0&&(v=o?Math.min(o/4,o/d*a):0,f=l),{destination:Math.round(v),duration:f}}function y(){}function x(t){console.error("[BScroll warn]: "+t)}function w(t,e){if(!t)throw new Error("[BScroll] "+e)}function b(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function _(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function T(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||x("can not resolve the wrapper dom"),this.scroller=this.wrapper.children[0],this.scroller||x("the wrapper need at least one child element to be scroller"),this.scrollerStyle=this.scroller.style,this._init(t,e)}Object.defineProperty(e,"__esModule",{value:!0});/*! * better-normal-scroll v1.8.4 * (c) 2016-2018 ustbhuangyi * Released under the MIT License. */ -var S=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0,X=M&&document.createElement("div").style,O=function(){if(!M)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==X[t[e]])return e;return!1}(),Y=s("transform"),C=M&&s("perspective")in X,I=M&&("ontouchstart"in window||D),W=!1!==Y,j=M&&s("transition")in X,A={transform:Y,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionProperty:s("transitionProperty"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},z=1,H={touchstart:z,touchmove:z,touchend:z,mousedown:2,mousemove:2,mouseup:2},L={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.001,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:I,disableTouch:!I,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1},F={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},R=function(){return M?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:y}(),$=function(){return M?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:y}(),N=1,V=-1,B=1,U=-1;_.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},_.prototype.refresh=function(){this.transitionTime(),this._calculate(),this.updatePosition()},_.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[A.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},_.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[A.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[A.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},_.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[A.transitionDuration]=t+"ms"},_.prototype.transitionTimingFunction=function(t){this.indicatorStyle[A.transitionTimingFunction]=t},_.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},_.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(a),this.scroller.trigger("beforeScrollStart")},_.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},_.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(c);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,o=void 0===n?F.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,s,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},_.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},_.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},_.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},_.prototype._removeDOMEvents=function(){var t=c;this._handleDOMEvents(t),this._handleMoveEvents(t)},_.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},_.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype._handleOptions=function(t){this.options=o({},L,t),this.translateZ=this.options.HWCompositing&&C?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&j,this.options.useTransform=this.options.useTransform&&W,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=c;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),I&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,A.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1;Object.defineProperty(this,"isInTransition",{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],o=e&&!t.pulling?"none":"auto",r=0;r0||this.x0||this.ythis.options.momentumLimitTime&&ss+this.options.directionLockThreshold?this.directionLocked="h":s>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?U:i<0?B:0,this.movingDirectionY=o>0?V:o<0?N:0;var c=this.x+i,h=this.y+o;(c>0||c0?0:this.maxScrollX),(h>0||h0?0:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(c,h),a-this.startTime>this.options.momentumLimitTime&&(this.startTime=a,this.startX=this.x,this.startY=this.y,1===this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>1&&this.trigger("scroll",{x:this.x,y:this.y});var l=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,u=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,p=this.pointX-l,f=this.pointY-u;(p>document.documentElement.clientWidth-this.options.momentumLimitDistance||pdocument.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&H[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!u(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?U:o<0?B:0,this.directionY=r>0?V:r<0?N:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,F.bounce)){this.scrollTo(e,i),this.endTime=n();var s=this.endTime-this.startTime,a=Math.abs(e-this.startX),c=Math.abs(i-this.startY);if(this._events.flick&&sthis.options.momentumLimitDistance||a>this.options.momentumLimitDistance)){var l=this.hasHorizontalScroll?g(this.x,this.startX,s,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options):{destination:e,duration:0},p=this.hasVerticalScroll?g(this.y,this.startY,s,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options):{destination:i,duration:0};e=l.destination,i=p.destination,h=Math.max(l.duration,p.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,h=this.options.wheel.adjustTime||400);var f=F.swipe;if(this.options.snap){var d=this._nearestSnap(e,i);this.currentPage=d,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-d.x),1e3),Math.min(Math.abs(i-d.y),1e3)),300),e=d.x,i=d.y,this.directionX=0,this.directionY=0,f=this.options.snap.easing||F.bounce}if(e!==this.x||i!==this.y)return(e>0||e0||i0&&void 0!==arguments[0]?arguments[0]:"transform";this.scrollerStyle[A.transitionProperty]=t},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[A.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e=l)return s.isAnimating=!1,s._translate(t,e),void(s.pulling||s.resetPosition(s.options.bounceTime)||s.trigger("scrollEnd",{x:s.x,y:s.y}));u=(u-h)/i;var p=o(u),f=(t-a)*p+a,d=(e-c)*p+c;s._translate(f,d),s.isAnimating&&(s.animateTimer=R(r)),3===s.options.probeType&&s.trigger("scroll",{x:s.x,y:s.y})}var s=this,a=this.x,c=this.y,h=n(),l=h+i;this.isAnimating=!0,$(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionProperty(),this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&3===this.options.probeType&&this._startProbe(),this.options.wheel&&(e>0?this.selectedIndex=0:e0?0:r.left0?0:r.top0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>0?i=0:n0?o=0:r2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(k(e)),o=0;o0&&(d(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0)))}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,s=void 0,a=void 0,c=void 0,h=0,u=void 0,p=0,f=void 0,d=void 0;if(n)for(u=n.length,f=-1;ht.maxScrollX&&p++;else for(a=Math.round(i/2),c=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[h]=[],u=0,s=0;s>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(r,t.maxScrollX),y:Math.max(s,t.maxScrollY),width:i,height:o,cx:r-a,cy:s-c},s-=o,u++;r-=i,h++}var v=e.loop?1:0;t._goToPage(t.currentPage.pageX||v,t.currentPage.pageY||0,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(m(t.scroller,i[i.length-1]),m(t.scroller,i[0]))}})},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>0?t=0:t0?e=0:e=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&(n=n||o.easing||F.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var r=this.pages[t][e].x,s=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(s-this.y),1e3)),300):i,this.currentPage={x:r,y:s,pageX:t,pageY:e},this.scrollTo(r,s,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o){if(o.loop){var r=this.pages.length-2;t>=r?t=r-1:t<0&&(t=0),t+=1}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)},t.prototype.prev=function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):this.currentPage:null}}(T),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,x("wheel option selectedIndex is required!"))}}(T),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var s=void 0;this.options.scrollX&&(s={el:b("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(s.el),this.indicators.push(new _(this,s))),this.options.scrollY&&(s={el:b("vertical"),direction:"vertical",fade:n,interactive:r},this._insertScrollBar(s.el),this.indicators.push(new _(this,s))),this.on("refresh",function(){for(var e=0;e0?l--:a<0&&l++,c>0?u--:c<0&&u++,void this._goToPage(l,u);l=this.x+Math.round(this.hasHorizontalScroll?a:0),u=this.y+Math.round(this.hasVerticalScroll?c:0),this.directionX=a>0?-1:a<0?1:0,this.directionY=c>0?-1:c<0?1:0,l>0?l=0:l0?u=0:udocument.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[r[n]];return c()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[s]=t):i=c(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(0).document;t.exports=n&&n.documentElement},function(t,e,i){"use strict";var n=i(59)(!0);i(49)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(13),o=i(12);t.exports=function(t){return function(e,i){var r,s,a=String(o(e)),c=n(i),h=a.length;return c<0||c>=h?t?"":void 0:(r=a.charCodeAt(c),r<55296||r>56319||c+1===h||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):r:t?a.slice(c,c+2):s-56320+(r-55296<<10)+65536)}}},function(t,e,i){"use strict";var n=i(56),o=i(15),r=i(38),s={};i(7)(s,i(4)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(s,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){var n=i(9),o=i(8),r=i(21);t.exports=i(2)?Object.defineProperties:function(t,e){o(t);for(var i,s=r(e),a=s.length,c=0;a>c;)n.f(t,i=s[c++],e[i]);return t}},function(t,e,i){var n=i(10),o=i(22),r=i(16)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,i){var n=i(17),o=i(4)("toStringTag"),r="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=s(e=Object(t),o))?i:r?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,i){var n=i(8);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},function(t,e,i){var n=i(28),o=i(4)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},function(t,e,i){var n=i(63),o=i(4)("iterator"),r=i(28);t.exports=i(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(4)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],s=r[n]();s.next=function(){return{done:i=!0}},r[n]=function(){return s},t(r)}catch(t){}return i}},function(t,e,i){function n(t){i(71)}var o=i(1)(i(72),i(78),n,null,null);t.exports=o.exports},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.warn=function(t){console.warn("[cube-ui warn]: "+t)}})},,function(t,e){},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(73),i(54),i(50),i(35)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n,o,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(i),c=s(n),h=s(o),l=s(r),u={value:"value",text:"text"};e.default={name:"cube-picker",mixins:[l.default],props:{data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},title:{type:String},cancelTxt:{type:String,default:"取消"},confirmTxt:{type:String,default:"确定"},swipeTime:{type:Number,default:2500},alias:{type:Object,default:function(){return{}}},zIndex:{type:Number}},data:function(){return{pickerData:this.data.slice(),pickerSelectedIndex:this.selectedIndex}},computed:{valueKey:function(){return this.alias.value||u.value},textKey:function(){return this.alias.text||u.text}},created:function(){if(this.pickerSelectedVal=[],!this.pickerSelectedIndex.length){this.pickerSelectedIndex=[];for(var t=0;t1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=n(v,d>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(e=c(p.length),i=new f(e);e>g;g++)h(i,g,m?v(p[g],g):p[g]);else for(u=y.call(p),i=new f;!(o=u.next()).done;g++)h(i,g,m?s(u,v,[o.value,g],!0):o.value);return i.length=g,i}})},function(t,e,i){"use strict";var n=i(9),o=i(15);t.exports=function(t,e,i){e in t?n.f(t,e,o(0,i)):t[e]=i}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"cube-picker-fade"}},[i("cube-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,"z-index":t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.cancel}},[i("transition",{attrs:{name:"cube-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-picker-panel cube-safe-area-pb",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"cube-picker-choose border-bottom-1px"},[i("span",{attrs:{"data-action":"cancel"},on:{click:t.cancel}},[t._v(t._s(t.cancelTxt))]),t._v(" "),i("span",{attrs:{"data-action":"confirm"},on:{click:t.confirm}},[t._v(t._s(t.confirmTxt))]),t._v(" "),i("h1",[t._v(t._s(t.title))])]),t._v(" "),i("div",{staticClass:"cube-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"cube-picker-wheel-wrapper"},t._l(t.pickerData,function(e,n){return i("div",{key:n},[i("ul",{staticClass:"wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"wheel-item"},[t._v(t._s(e[t.textKey]))])}))])}))]),t._v(" "),i("div",{staticClass:"cube-picker-footer"})])])],1)],1)},staticRenderFns:[]}},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(43),i(69)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e){(0,r.default)(t,e,["select","value-change","cancel","change"]).before(function(t,e,i){i&&(0,n.warn)("Picker component can not be a singleton.")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(68),i(163),i(166),i(79)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n,o,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(i),c=s(n),h=s(o),l=s(r);c.default.install=function(t){t.component(a.default.name,a.default),t.component(c.default.name,c.default),(0,l.default)(t,a.default),(0,h.default)(t,c.default)},c.default.Picker=a.default,e.default=c.default,t.exports=e.default})},function(t,e,i){var n=i(1)(i(164),i(165),null,null,null);t.exports=n.exports},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(68),i(35)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(i),s=o(n),a={value:"value",text:"text"};e.default={name:"cube-cascade-picker",mixins:[s.default],props:{title:{type:String,default:"Cascade Picker"},data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},cancelTxt:{type:String,default:"取消"},confirmTxt:{type:String,default:"确定"},swipeTime:{type:Number,default:2500},alias:{type:Object,default:function(){return{}}},zIndex:{type:Number}},data:function(){return{cascadeData:this.data.slice(),pickerSelectedIndex:this.selectedIndex.slice(),pickerData:[]}},computed:{valueKey:function(){return this.alias.value||a.value},textKey:function(){return this.alias.text||a.text}},created:function(){this.updatePickerData()},methods:{show:function(){this.$refs.picker.show()},hide:function(){this.$refs.picker.hide()},setData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.cascadeData=t,this.pickerSelectedIndex=e,this.updatePickerData()},_pickerSelect:function(t,e,i){this.$emit("select",t,e,i)},_pickerCancel:function(){this.$emit("cancel")},_pickerChange:function(t,e){e!==this.pickerSelectedIndex[t]&&(this.pickerSelectedIndex.splice(t,1,e),this.updatePickerData(t+1)),this.$emit("change",t,e)},updatePickerData:function(){for(var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.cascadeData,n=0;i;)n>=e&&function(){var o=[];i.forEach(function(e){o.push({value:e[t.valueKey],text:e[t.textKey]})}),t.pickerData[n]=o,t.pickerSelectedIndex[n]=0===e?t.pickerSelectedIndex[n]0,X=M&&document.createElement("div").style,O=function(){if(!M)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==X[t[e]])return e;return!1}(),Y=s("transform"),C=M&&s("perspective")in X,I=M&&("ontouchstart"in window||D),W=!1!==Y,j=M&&s("transition")in X,A={transform:Y,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionProperty:s("transitionProperty"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},z=1,H={touchstart:z,touchmove:z,touchend:z,mousedown:2,mousemove:2,mouseup:2},L={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.001,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:I,disableTouch:!I,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1},F={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},R=function(){return M?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:y}(),$=function(){return M?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:y}(),N=1,V=-1,B=1,U=-1;_.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},_.prototype.refresh=function(){this.transitionTime(),this._calculate(),this.updatePosition()},_.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[A.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},_.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[A.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[A.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},_.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[A.transitionDuration]=t+"ms"},_.prototype.transitionTimingFunction=function(t){this.indicatorStyle[A.transitionTimingFunction]=t},_.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},_.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(a),this.scroller.trigger("beforeScrollStart")},_.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},_.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(c);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,o=void 0===n?F.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,s,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},_.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},_.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},_.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},_.prototype._removeDOMEvents=function(){var t=c;this._handleDOMEvents(t),this._handleMoveEvents(t)},_.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},_.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype._handleOptions=function(t){this.options=o({},L,t),this.translateZ=this.options.HWCompositing&&C?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&j,this.options.useTransform=this.options.useTransform&&W,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=c;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),I&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,A.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1;Object.defineProperty(this,"isInTransition",{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],o=e&&!t.pulling?"none":"auto",r=0;r0||this.x0||this.ythis.options.momentumLimitTime&&ss+this.options.directionLockThreshold?this.directionLocked="h":s>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?U:i<0?B:0,this.movingDirectionY=o>0?V:o<0?N:0;var c=this.x+i,h=this.y+o;(c>0||c0?0:this.maxScrollX),(h>0||h0?0:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(c,h),a-this.startTime>this.options.momentumLimitTime&&(this.startTime=a,this.startX=this.x,this.startY=this.y,1===this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>1&&this.trigger("scroll",{x:this.x,y:this.y});var l=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,u=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,p=this.pointX-l,f=this.pointY-u;(p>document.documentElement.clientWidth-this.options.momentumLimitDistance||pdocument.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&H[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!u(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?U:o<0?B:0,this.directionY=r>0?V:r<0?N:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,F.bounce)){this.scrollTo(e,i),this.endTime=n();var s=this.endTime-this.startTime,a=Math.abs(e-this.startX),c=Math.abs(i-this.startY);if(this._events.flick&&sthis.options.momentumLimitDistance||a>this.options.momentumLimitDistance)){var l=this.hasHorizontalScroll?g(this.x,this.startX,s,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options):{destination:e,duration:0},p=this.hasVerticalScroll?g(this.y,this.startY,s,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options):{destination:i,duration:0};e=l.destination,i=p.destination,h=Math.max(l.duration,p.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,h=this.options.wheel.adjustTime||400);var f=F.swipe;if(this.options.snap){var d=this._nearestSnap(e,i);this.currentPage=d,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-d.x),1e3),Math.min(Math.abs(i-d.y),1e3)),300),e=d.x,i=d.y,this.directionX=0,this.directionY=0,f=this.options.snap.easing||F.bounce}if(e!==this.x||i!==this.y)return(e>0||e0||i0&&void 0!==arguments[0]?arguments[0]:"transform";this.scrollerStyle[A.transitionProperty]=t},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[A.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e=l)return s.isAnimating=!1,s._translate(t,e),void(s.pulling||s.resetPosition(s.options.bounceTime)||s.trigger("scrollEnd",{x:s.x,y:s.y}));u=(u-h)/i;var p=o(u),f=(t-a)*p+a,d=(e-c)*p+c;s._translate(f,d),s.isAnimating&&(s.animateTimer=R(r)),3===s.options.probeType&&s.trigger("scroll",{x:s.x,y:s.y})}var s=this,a=this.x,c=this.y,h=n(),l=h+i;this.isAnimating=!0,$(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionProperty(),this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&3===this.options.probeType&&this._startProbe(),this.options.wheel&&(e>0?this.selectedIndex=0:e0?0:r.left0?0:r.top0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>0?i=0:n0?o=0:r2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(k(e)),o=0;o0&&(d(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0)))}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,s=void 0,a=void 0,c=void 0,h=0,u=void 0,p=0,f=void 0,d=void 0;if(n)for(u=n.length,f=-1;ht.maxScrollX&&p++;else for(a=Math.round(i/2),c=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[h]=[],u=0,s=0;s>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(r,t.maxScrollX),y:Math.max(s,t.maxScrollY),width:i,height:o,cx:r-a,cy:s-c},s-=o,u++;r-=i,h++}var v=e.loop?1:0;t._goToPage(t.currentPage.pageX||v,t.currentPage.pageY||0,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(m(t.scroller,i[i.length-1]),m(t.scroller,i[0]))}})},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>0?t=0:t0?e=0:e=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&(n=n||o.easing||F.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var r=this.pages[t][e].x,s=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(s-this.y),1e3)),300):i,this.currentPage={x:r,y:s,pageX:t,pageY:e},this.scrollTo(r,s,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o){if(o.loop){var r=this.pages.length-2;t>=r?t=r-1:t<0&&(t=0),t+=1}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)},t.prototype.prev=function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):this.currentPage:null}}(T),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,x("wheel option selectedIndex is required!"))}}(T),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var s=void 0;this.options.scrollX&&(s={el:b("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(s.el),this.indicators.push(new _(this,s))),this.options.scrollY&&(s={el:b("vertical"),direction:"vertical",fade:n,interactive:r},this._insertScrollBar(s.el),this.indicators.push(new _(this,s))),this.on("refresh",function(){for(var e=0;e0?l--:a<0&&l++,c>0?u--:c<0&&u++,void this._goToPage(l,u);l=this.x+Math.round(this.hasHorizontalScroll?a:0),u=this.y+Math.round(this.hasVerticalScroll?c:0),this.directionX=a>0?-1:a<0?1:0,this.directionY=c>0?-1:c<0?1:0,l>0?l=0:l0?u=0:udocument.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[r[n]];return c()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[s]=t):i=c(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(0).document;t.exports=n&&n.documentElement},function(t,e,i){"use strict";var n=i(59)(!0);i(49)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(13),o=i(12);t.exports=function(t){return function(e,i){var r,s,a=String(o(e)),c=n(i),h=a.length;return c<0||c>=h?t?"":void 0:(r=a.charCodeAt(c),r<55296||r>56319||c+1===h||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):r:t?a.slice(c,c+2):s-56320+(r-55296<<10)+65536)}}},function(t,e,i){"use strict";var n=i(56),o=i(15),r=i(39),s={};i(7)(s,i(4)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(s,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){var n=i(9),o=i(8),r=i(21);t.exports=i(2)?Object.defineProperties:function(t,e){o(t);for(var i,s=r(e),a=s.length,c=0;a>c;)n.f(t,i=s[c++],e[i]);return t}},function(t,e,i){var n=i(10),o=i(22),r=i(16)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,i){var n=i(17),o=i(4)("toStringTag"),r="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=s(e=Object(t),o))?i:r?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,i){var n=i(8);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},function(t,e,i){var n=i(28),o=i(4)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},function(t,e,i){var n=i(63),o=i(4)("iterator"),r=i(28);t.exports=i(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(4)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],s=r[n]();s.next=function(){return{done:i=!0}},r[n]=function(){return s},t(r)}catch(t){}return i}},function(t,e,i){function n(t){i(71)}var o=i(1)(i(72),i(78),n,null,null);t.exports=o.exports},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.warn=function(t){console.warn("[cube-ui warn]: "+t)}})},,function(t,e){},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(73),i(54),i(50),i(36)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n,o,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(i),c=s(n),h=s(o),l=s(r),u={value:"value",text:"text"};e.default={name:"cube-picker",mixins:[l.default],props:{data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},title:{type:String},cancelTxt:{type:String,default:"取消"},confirmTxt:{type:String,default:"确定"},swipeTime:{type:Number,default:2500},alias:{type:Object,default:function(){return{}}},zIndex:{type:Number}},data:function(){return{pickerData:this.data.slice(),pickerSelectedIndex:this.selectedIndex}},computed:{valueKey:function(){return this.alias.value||u.value},textKey:function(){return this.alias.text||u.text}},created:function(){if(this.pickerSelectedVal=[],!this.pickerSelectedIndex.length){this.pickerSelectedIndex=[];for(var t=0;t1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=n(v,d>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(e=c(p.length),i=new f(e);e>g;g++)h(i,g,m?v(p[g],g):p[g]);else for(u=y.call(p),i=new f;!(o=u.next()).done;g++)h(i,g,m?s(u,v,[o.value,g],!0):o.value);return i.length=g,i}})},function(t,e,i){"use strict";var n=i(9),o=i(15);t.exports=function(t,e,i){e in t?n.f(t,e,o(0,i)):t[e]=i}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"cube-picker-fade"}},[i("cube-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,"z-index":t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.cancel}},[i("transition",{attrs:{name:"cube-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-picker-panel cube-safe-area-pb",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"cube-picker-choose border-bottom-1px"},[i("span",{attrs:{"data-action":"cancel"},on:{click:t.cancel}},[t._v(t._s(t.cancelTxt))]),t._v(" "),i("span",{attrs:{"data-action":"confirm"},on:{click:t.confirm}},[t._v(t._s(t.confirmTxt))]),t._v(" "),i("h1",[t._v(t._s(t.title))])]),t._v(" "),i("div",{staticClass:"cube-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"cube-picker-wheel-wrapper"},t._l(t.pickerData,function(e,n){return i("div",{key:n},[i("ul",{staticClass:"wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"wheel-item"},[t._v(t._s(e[t.textKey]))])}))])}))]),t._v(" "),i("div",{staticClass:"cube-picker-footer"})])])],1)],1)},staticRenderFns:[]}},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(44),i(69)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e){(0,r.default)(t,e,["select","value-change","cancel","change"]).before(function(t,e,i){i&&(0,n.warn)("Picker component can not be a singleton.")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(68),i(163),i(166),i(79)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n,o,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(i),c=s(n),h=s(o),l=s(r);c.default.install=function(t){t.component(a.default.name,a.default),t.component(c.default.name,c.default),(0,l.default)(t,a.default),(0,h.default)(t,c.default)},c.default.Picker=a.default,e.default=c.default,t.exports=e.default})},function(t,e,i){var n=i(1)(i(164),i(165),null,null,null);t.exports=n.exports},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(68),i(36)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(i),s=o(n),a={value:"value",text:"text"};e.default={name:"cube-cascade-picker",mixins:[s.default],props:{title:{type:String,default:"Cascade Picker"},data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},cancelTxt:{type:String,default:"取消"},confirmTxt:{type:String,default:"确定"},swipeTime:{type:Number,default:2500},alias:{type:Object,default:function(){return{}}},zIndex:{type:Number}},data:function(){return{cascadeData:this.data.slice(),pickerSelectedIndex:this.selectedIndex.slice(),pickerData:[]}},computed:{valueKey:function(){return this.alias.value||a.value},textKey:function(){return this.alias.text||a.text}},created:function(){this.updatePickerData()},methods:{show:function(){this.$refs.picker.show()},hide:function(){this.$refs.picker.hide()},setData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.cascadeData=t,this.pickerSelectedIndex=e,this.updatePickerData()},_pickerSelect:function(t,e,i){this.$emit("select",t,e,i)},_pickerCancel:function(){this.$emit("cancel")},_pickerChange:function(t,e){e!==this.pickerSelectedIndex[t]&&(this.pickerSelectedIndex.splice(t,1,e),this.updatePickerData(t+1)),this.$emit("change",t,e)},updatePickerData:function(){for(var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.cascadeData,n=0;i;)n>=e&&function(){var o=[];i.forEach(function(e){o.push({value:e[t.valueKey],text:e[t.textKey]})}),t.pickerData[n]=o,t.pickerSelectedIndex[n]=0===e?t.pickerSelectedIndex[n] Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(11); var toLength = __webpack_require__(27); -var toAbsoluteIndex = __webpack_require__(34); +var toAbsoluteIndex = __webpack_require__(35); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIObject($this); @@ -649,7 +678,7 @@ module.exports = function (IS_INCLUDES) { /***/ }), -/* 34 */ +/* 35 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(13); @@ -662,7 +691,7 @@ module.exports = function (index, length) { /***/ }), -/* 35 */ +/* 36 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { @@ -706,7 +735,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 36 */ +/* 37 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { @@ -741,14 +770,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 37 */ +/* 38 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), -/* 38 */ +/* 39 */ /***/ (function(module, exports, __webpack_require__) { var def = __webpack_require__(9).f; @@ -761,38 +790,38 @@ module.exports = function (it, tag, stat) { /***/ }), -/* 39 */ +/* 40 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(40), __esModule: true }; +module.exports = { "default": __webpack_require__(41), __esModule: true }; /***/ }), -/* 40 */ +/* 41 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(41); +__webpack_require__(42); module.exports = __webpack_require__(3).Object.assign; /***/ }), -/* 41 */ +/* 42 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(14); -$export($export.S + $export.F, 'Object', { assign: __webpack_require__(42) }); +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(43) }); /***/ }), -/* 42 */ +/* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // 19.1.2.1 Object.assign(target, source, ...) var getKeys = __webpack_require__(21); -var gOPS = __webpack_require__(37); +var gOPS = __webpack_require__(38); var pIE = __webpack_require__(32); var toObject = __webpack_require__(22); var IObject = __webpack_require__(18); @@ -826,12 +855,12 @@ module.exports = !$assign || __webpack_require__(6)(function () { /***/ }), -/* 43 */ +/* 44 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(36), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(37), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -872,41 +901,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 44 */ +/* 45 */ /***/ (function(module, exports) { module.exports = true; -/***/ }), -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _assign = __webpack_require__(39); - -var _assign2 = _interopRequireDefault(_assign); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; -}; - /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { @@ -1033,26 +1033,35 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(33)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof exports !== "undefined") { - factory(module, exports); + factory(module, exports, require("babel-runtime/helpers/extends")); } else { var mod = { exports: {} }; - factory(mod, mod.exports); + factory(mod, mod.exports, global._extends); global.instantiateComponent = mod.exports; } -})(this, function (module, exports) { +})(this, function (module, exports, _extends2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = instantiateComponent; + + var _extends3 = _interopRequireDefault(_extends2); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function instantiateComponent(Vue, Component, data, renderFn) { var renderData = void 0; var childrenRenderFn = void 0; @@ -1062,7 +1071,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ if (children && !Array.isArray(children)) { children = [children]; } - return createElement(Component, renderData, children || []); + + return createElement(Component, (0, _extends3.default)({}, renderData), children || []); }, methods: { @@ -1094,7 +1104,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(45), __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(33), __webpack_require__(37)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -1161,14 +1171,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ "use strict"; -var LIBRARY = __webpack_require__(44); +var LIBRARY = __webpack_require__(45); var $export = __webpack_require__(14); var redefine = __webpack_require__(55); var hide = __webpack_require__(7); var has = __webpack_require__(10); var Iterators = __webpack_require__(28); var $iterCreate = __webpack_require__(60); -var setToStringTag = __webpack_require__(38); +var setToStringTag = __webpack_require__(39); var getPrototypeOf = __webpack_require__(62); var ITERATOR = __webpack_require__(4)('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` @@ -1267,7 +1277,7 @@ module.exports = Component.exports var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -3989,7 +3999,7 @@ module.exports = function (TO_STRING) { var create = __webpack_require__(56); var descriptor = __webpack_require__(15); -var setToStringTag = __webpack_require__(38); +var setToStringTag = __webpack_require__(39); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() @@ -4208,7 +4218,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(73), __webpack_require__(54), __webpack_require__(50), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(73), __webpack_require__(54), __webpack_require__(50), __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -4690,7 +4700,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(43), __webpack_require__(69)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(44), __webpack_require__(69)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -4891,7 +4901,7 @@ module.exports = Component.exports var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(68), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(68), __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -5087,7 +5097,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(43), __webpack_require__(69)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(44), __webpack_require__(69)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); diff --git a/lib/create-api/create-api.min.js b/lib/create-api/create-api.min.js index de3908d37..e94154a7b 100644 --- a/lib/create-api/create-api.min.js +++ b/lib/create-api/create-api.min.js @@ -1 +1 @@ -module.exports=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="./",n(n.s=173)}({0:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},10:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},11:function(t,n,e){var r=e(18),o=e(12);t.exports=function(t){return r(o(t))}},12:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},13:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},14:function(t,n,e){var r=e(0),o=e(3),u=e(20),i=e(7),f=function(t,n,e){var c,a,s,p=t&f.F,l=t&f.G,d=t&f.S,v=t&f.P,y=t&f.B,_=t&f.W,h=l?o:o[n]||(o[n]={}),b=h.prototype,x=l?r:d?r[n]:(r[n]||{}).prototype;l&&(e=n);for(c in e)(a=!p&&x&&void 0!==x[c])&&c in h||(s=a?x[c]:e[c],h[c]=l&&"function"!=typeof x[c]?e[c]:y&&a?u(s,r):_&&x[c]==s?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(s):v&&"function"==typeof s?u(Function.call,s):s,v&&((h.virtual||(h.virtual={}))[c]=s,t&f.R&&b&&!b[c]&&i(b,c,s)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},15:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},16:function(t,n,e){var r=e(24)("keys"),o=e(19);t.exports=function(t){return r[t]||(r[t]=o(t))}},17:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},173:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(43)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(e);n.default=r.default,t.exports=n.default})},18:function(t,n,e){var r=e(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},19:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},2:function(t,n,e){t.exports=!e(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(t,n,e){var r=e(26);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},21:function(t,n,e){var r=e(31),o=e(25);t.exports=Object.keys||function(t){return r(t,o)}},22:function(t,n,e){var r=e(12);t.exports=function(t){return Object(r(t))}},23:function(t,n,e){var r=e(5),o=e(0).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},24:function(t,n,e){var r=e(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},25:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},26:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},27:function(t,n,e){var r=e(13),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},29:function(t,n,e){var r=e(5);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3:function(t,n){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)},30:function(t,n,e){t.exports=!e(2)&&!e(6)(function(){return 7!=Object.defineProperty(e(23)("div"),"a",{get:function(){return 7}}).a})},31:function(t,n,e){var r=e(10),o=e(11),u=e(33)(!1),i=e(16)("IE_PROTO");t.exports=function(t,n){var e,f=o(t),c=0,a=[];for(e in f)e!=i&&r(f,e)&&a.push(e);for(;n.length>c;)r(f,e=n[c++])&&(~u(a,e)||a.push(e));return a}},32:function(t,n){n.f={}.propertyIsEnumerable},33:function(t,n,e){var r=e(11),o=e(27),u=e(34);t.exports=function(t){return function(n,e,i){var f,c=r(n),a=o(c.length),s=u(i,a);if(t&&e!=e){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},34:function(t,n,e){var r=e(13),o=Math.max,u=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):u(t,n)}},36:function(t,n,e){var r,o,u;!function(e,i){o=[n],r=i,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t){"use strict";function n(t){return t=String(t),t.replace(e,function(t,n){return n?n.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=n;var e=/-(\w)/g})},37:function(t,n){n.f=Object.getOwnPropertySymbols},39:function(t,n,e){t.exports={default:e(40),__esModule:!0}},40:function(t,n,e){e(41),t.exports=e(3).Object.assign},41:function(t,n,e){var r=e(14);r(r.S+r.F,"Object",{assign:e(42)})},42:function(t,n,e){"use strict";var r=e(21),o=e(37),u=e(32),i=e(22),f=e(18),c=Object.assign;t.exports=!c||e(6)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=i(t),c=arguments.length,a=1,s=o.f,p=u.f;c>a;)for(var l,d=f(arguments[a++]),v=s?r(d).concat(s(d)):r(d),y=v.length,_=0;y>_;)p.call(d,l=v[_++])&&(e[l]=d[l]);return e}:c},43:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(36),e(46)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e,r){"use strict";function o(t,n,r,o){var i=u.default.apply(this,arguments),f=n.name,c=f.replace(/^cube-/i,""),a="$"+(0,e.camelize)("create-"+c);return t.prototype[a]=i.create,i}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var u=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default})},45:function(t,n,e){"use strict";n.__esModule=!0;var r=e(39),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=void 0,u=void 0,c=[],a={before:function(t){c.push(t)},open:function(e,f,a){if("function"!=typeof f&&(a=f,f=null),c.forEach(function(t){t(e,f,a)}),void 0===a&&(a=r),a&&o)return u.updateRenderData(e,f),u.$forceUpdate(),o;var s=(0,i.default)(t,n,e,f),p=s.$parent,l=s.remove;s.remove=function(){p.__cube__destroyed||(l&&l.call(this),p.destroy(),p.__cube__destroyed=!0,a&&(o=null,u=null))};var d=s.show;s.show=function(){return d&&d.call(this),this};var v=s.hide;return s.hide=function(){return v&&v.call(this),this},a&&(o=s,u=p),s},create:function(t,n,r){var o=this,u=a.open((0,f.default)(t,e),n,r);if(u.__cube__parent!==o){u.__cube__parent=o;var i=function t(){u.__cube__parent===o&&u.remove(),o.$off("hook:beforeDestroy",t),u.__cube__parent=null};o.$on("hook:beforeDestroy",i)}return u}};return a}Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var i=o(e),f=o(r);t.exports=n.default})},47:function(t,n,e){var r,o,u;!function(e,i){o=[t,n],r=i,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n){"use strict";function e(t,n,e,r){var o=void 0,u=void 0,i=new t({render:function(t){var e=u&&u(t);return e&&!Array.isArray(e)&&(e=[e]),t(n,o,e||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return i.updateRenderData=function(t,n){o=t,u=n},i.updateRenderData(e,r),i.$mount(),i.init(),i.$children[0]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=e,t.exports=n.default})},48:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(45),e(36)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e,r){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=u(n);var e=(0,i.default)({},t),r={};for(var o in n)if(n.hasOwnProperty(o)){var f=n[o];e[f]&&(r[o]=e[f],delete e[f])}return{props:e,on:r}}function u(t){var n={};return t.forEach(function(t){n[t]=(0,r.camelize)("on-"+t)}),n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var i=function(t){return t&&t.__esModule?t:{default:t}}(e);t.exports=n.default})},5:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7:function(t,n,e){var r=e(9),o=e(15);t.exports=e(2)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},8:function(t,n,e){var r=e(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},9:function(t,n,e){var r=e(8),o=e(30),u=e(29),i=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=u(n,!0),r(e),o)try{return i(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}}}); \ No newline at end of file +module.exports=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="./",n(n.s=173)}({0:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},10:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},11:function(t,n,e){var r=e(18),o=e(12);t.exports=function(t){return r(o(t))}},12:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},13:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},14:function(t,n,e){var r=e(0),o=e(3),u=e(20),i=e(7),f=function(t,n,e){var c,a,s,p=t&f.F,l=t&f.G,d=t&f.S,v=t&f.P,y=t&f.B,_=t&f.W,h=l?o:o[n]||(o[n]={}),b=h.prototype,x=l?r:d?r[n]:(r[n]||{}).prototype;l&&(e=n);for(c in e)(a=!p&&x&&void 0!==x[c])&&c in h||(s=a?x[c]:e[c],h[c]=l&&"function"!=typeof x[c]?e[c]:y&&a?u(s,r):_&&x[c]==s?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(s):v&&"function"==typeof s?u(Function.call,s):s,v&&((h.virtual||(h.virtual={}))[c]=s,t&f.R&&b&&!b[c]&&i(b,c,s)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},15:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},16:function(t,n,e){var r=e(24)("keys"),o=e(19);t.exports=function(t){return r[t]||(r[t]=o(t))}},17:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},173:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(44)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(e);n.default=r.default,t.exports=n.default})},18:function(t,n,e){var r=e(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},19:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},2:function(t,n,e){t.exports=!e(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(t,n,e){var r=e(26);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},21:function(t,n,e){var r=e(31),o=e(25);t.exports=Object.keys||function(t){return r(t,o)}},22:function(t,n,e){var r=e(12);t.exports=function(t){return Object(r(t))}},23:function(t,n,e){var r=e(5),o=e(0).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},24:function(t,n,e){var r=e(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},25:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},26:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},27:function(t,n,e){var r=e(13),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},29:function(t,n,e){var r=e(5);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3:function(t,n){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)},30:function(t,n,e){t.exports=!e(2)&&!e(6)(function(){return 7!=Object.defineProperty(e(23)("div"),"a",{get:function(){return 7}}).a})},31:function(t,n,e){var r=e(10),o=e(11),u=e(34)(!1),i=e(16)("IE_PROTO");t.exports=function(t,n){var e,f=o(t),c=0,a=[];for(e in f)e!=i&&r(f,e)&&a.push(e);for(;n.length>c;)r(f,e=n[c++])&&(~u(a,e)||a.push(e));return a}},32:function(t,n){n.f={}.propertyIsEnumerable},33:function(t,n,e){"use strict";n.__esModule=!0;var r=e(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;ns;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},35:function(t,n,e){var r=e(13),o=Math.max,u=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):u(t,n)}},37:function(t,n,e){var r,o,u;!function(e,i){o=[n],r=i,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t){"use strict";function n(t){return t=String(t),t.replace(e,function(t,n){return n?n.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=n;var e=/-(\w)/g})},38:function(t,n){n.f=Object.getOwnPropertySymbols},40:function(t,n,e){t.exports={default:e(41),__esModule:!0}},41:function(t,n,e){e(42),t.exports=e(3).Object.assign},42:function(t,n,e){var r=e(14);r(r.S+r.F,"Object",{assign:e(43)})},43:function(t,n,e){"use strict";var r=e(21),o=e(38),u=e(32),i=e(22),f=e(18),c=Object.assign;t.exports=!c||e(6)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=i(t),c=arguments.length,a=1,s=o.f,p=u.f;c>a;)for(var l,d=f(arguments[a++]),v=s?r(d).concat(s(d)):r(d),y=v.length,_=0;y>_;)p.call(d,l=v[_++])&&(e[l]=d[l]);return e}:c},44:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(37),e(46)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e,r){"use strict";function o(t,n,r,o){var i=u.default.apply(this,arguments),f=n.name,c=f.replace(/^cube-/i,""),a="$"+(0,e.camelize)("create-"+c);return t.prototype[a]=i.create,i}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var u=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default})},46:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(47),e(48)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function u(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=void 0,u=void 0,c=[],a={before:function(t){c.push(t)},open:function(e,f,a){if("function"!=typeof f&&(a=f,f=null),c.forEach(function(t){t(e,f,a)}),void 0===a&&(a=r),a&&o)return u.updateRenderData(e,f),u.$forceUpdate(),o;var s=(0,i.default)(t,n,e,f),p=s.$parent,l=s.remove;s.remove=function(){p.__cube__destroyed||(l&&l.call(this),p.destroy(),p.__cube__destroyed=!0,a&&(o=null,u=null))};var d=s.show;s.show=function(){return d&&d.call(this),this};var v=s.hide;return s.hide=function(){return v&&v.call(this),this},a&&(o=s,u=p),s},create:function(t,n,r){var o=this,u=a.open((0,f.default)(t,e),n,r);if(u.__cube__parent!==o){u.__cube__parent=o;var i=function t(){u.__cube__parent===o&&u.remove(),o.$off("hook:beforeDestroy",t),u.__cube__parent=null};o.$on("hook:beforeDestroy",i)}return u}};return a}Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var i=o(e),f=o(r);t.exports=n.default})},47:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(33)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e){"use strict";function r(t,n,e,r){var u=void 0,i=void 0,f=new t({render:function(t){var e=i&&i(t);return e&&!Array.isArray(e)&&(e=[e]),t(n,(0,o.default)({},u),e||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return f.updateRenderData=function(t,n){u=t,i=n},f.updateRenderData(e,r),f.$mount(),f.init(),f.$children[0]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var o=function(t){return t&&t.__esModule?t:{default:t}}(e);t.exports=n.default})},48:function(t,n,e){var r,o,u;!function(i,f){o=[t,n,e(33),e(37)],r=f,void 0!==(u="function"==typeof r?r.apply(n,o):r)&&(t.exports=u)}(0,function(t,n,e,r){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=u(n);var e=(0,i.default)({},t),r={};for(var o in n)if(n.hasOwnProperty(o)){var f=n[o];e[f]&&(r[o]=e[f],delete e[f])}return{props:e,on:r}}function u(t){var n={};return t.forEach(function(t){n[t]=(0,r.camelize)("on-"+t)}),n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var i=function(t){return t&&t.__esModule?t:{default:t}}(e);t.exports=n.default})},5:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7:function(t,n,e){var r=e(9),o=e(15);t.exports=e(2)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},8:function(t,n,e){var r=e(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},9:function(t,n,e){var r=e(8),o=e(30),u=e(29),i=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=u(n,!0),r(e),o)try{return i(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}}}); \ No newline at end of file diff --git a/lib/create-api/index.js b/lib/create-api/index.js index 2a1010bcd..3b3d7584d 100644 --- a/lib/create-api/index.js +++ b/lib/create-api/index.js @@ -240,7 +240,7 @@ module.exports = function (it) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(43)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(44)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -468,7 +468,7 @@ module.exports = !__webpack_require__(2) && !__webpack_require__(6)(function () var has = __webpack_require__(10); var toIObject = __webpack_require__(11); -var arrayIndexOf = __webpack_require__(33)(false); +var arrayIndexOf = __webpack_require__(34)(false); var IE_PROTO = __webpack_require__(16)('IE_PROTO'); module.exports = function (object, names) { @@ -498,11 +498,41 @@ exports.f = {}.propertyIsEnumerable; /***/ 33: /***/ (function(module, exports, __webpack_require__) { +"use strict"; + + +exports.__esModule = true; + +var _assign = __webpack_require__(40); + +var _assign2 = _interopRequireDefault(_assign); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; +}; + +/***/ }), + +/***/ 34: +/***/ (function(module, exports, __webpack_require__) { + // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(11); var toLength = __webpack_require__(27); -var toAbsoluteIndex = __webpack_require__(34); +var toAbsoluteIndex = __webpack_require__(35); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIObject($this); @@ -525,7 +555,7 @@ module.exports = function (IS_INCLUDES) { /***/ }), -/***/ 34: +/***/ 35: /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(13); @@ -539,7 +569,7 @@ module.exports = function (index, length) { /***/ }), -/***/ 36: +/***/ 37: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { @@ -575,7 +605,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/***/ 37: +/***/ 38: /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; @@ -583,41 +613,41 @@ exports.f = Object.getOwnPropertySymbols; /***/ }), -/***/ 39: +/***/ 40: /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(40), __esModule: true }; +module.exports = { "default": __webpack_require__(41), __esModule: true }; /***/ }), -/***/ 40: +/***/ 41: /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(41); +__webpack_require__(42); module.exports = __webpack_require__(3).Object.assign; /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(14); -$export($export.S + $export.F, 'Object', { assign: __webpack_require__(42) }); +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(43) }); /***/ }), -/***/ 42: +/***/ 43: /***/ (function(module, exports, __webpack_require__) { "use strict"; // 19.1.2.1 Object.assign(target, source, ...) var getKeys = __webpack_require__(21); -var gOPS = __webpack_require__(37); +var gOPS = __webpack_require__(38); var pIE = __webpack_require__(32); var toObject = __webpack_require__(22); var IObject = __webpack_require__(18); @@ -652,12 +682,12 @@ module.exports = !$assign || __webpack_require__(6)(function () { /***/ }), -/***/ 43: +/***/ 44: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(36), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(37), __webpack_require__(46)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -699,36 +729,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/***/ 45: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _assign = __webpack_require__(39); - -var _assign2 = _interopRequireDefault(_assign); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; -}; - -/***/ }), - /***/ 46: /***/ (function(module, exports, __webpack_require__) { @@ -855,26 +855,35 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(33)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof exports !== "undefined") { - factory(module, exports); + factory(module, exports, require("babel-runtime/helpers/extends")); } else { var mod = { exports: {} }; - factory(mod, mod.exports); + factory(mod, mod.exports, global._extends); global.instantiateComponent = mod.exports; } -})(this, function (module, exports) { +})(this, function (module, exports, _extends2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = instantiateComponent; + + var _extends3 = _interopRequireDefault(_extends2); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function instantiateComponent(Vue, Component, data, renderFn) { var renderData = void 0; var childrenRenderFn = void 0; @@ -884,7 +893,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ if (children && !Array.isArray(children)) { children = [children]; } - return createElement(Component, renderData, children || []); + + return createElement(Component, (0, _extends3.default)({}, renderData), children || []); }, methods: { @@ -917,7 +927,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(45), __webpack_require__(36)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(33), __webpack_require__(37)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); diff --git a/lib/cube.min.js b/lib/cube.min.js index bf334c6be..cec939665 100644 --- a/lib/cube.min.js +++ b/lib/cube.min.js @@ -1,6 +1,6 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.cube=e():t.cube=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=86)}([function(t,e){t.exports=function(t,e,i,n,o){var r,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n);var l;if(o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=i),l){var c=u.functional,f=c?u.render:u.beforeCreate;c?u.render=function(t,e){return l.call(e),f(t,e)}:u.beforeCreate=f?[].concat(f,l):[l]}return{esModule:r,exports:s,options:u}}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(39)("wks"),o=i(24),r=i(1).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=n},function(t,e,i){var n=i(1),o=i(2),r=i(16),s=i(10),a=function(t,e,i){var u,l,c,f=t&a.F,d=t&a.G,h=t&a.S,p=t&a.P,v=t&a.B,m=t&a.W,y=d?o:o[e]||(o[e]={}),x=y.prototype,g=d?n:h?n[e]:(n[e]||{}).prototype;d&&(i=e);for(u in i)(l=!f&&g&&void 0!==g[u])&&u in y||(c=l?g[u]:i[u],y[u]=d&&"function"!=typeof g[u]?i[u]:v&&l?r(c,n):m&&g[u]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?r(Function.call,c):c,p&&((y.virtual||(y.virtual={}))[u]=c,t&a.R&&x&&!x[u]&&s(x,u,c)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,i){var n=i(8),o=i(54),r=i(34),s=Object.defineProperty;e.f=i(9)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n,o,r;!function(i,s){o=[t,e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{isVisible:!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(52),i(121)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e,n,o){var s=r.default.apply(this,arguments),a=e.name,u=a.replace(/^cube-/i,""),l="$"+(0,i.camelize)("create-"+u);return t.prototype[l]=s.create,s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},function(t,e,i){var n=i(11);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){t.exports=!i(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(5),o=i(17);t.exports=i(9)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(56),o=i(35);t.exports=function(t){return n(o(t))}},function(t,e,i){function n(t){i(117)}var o=i(0)(i(118),i(119),n,null,null);t.exports=o.exports},function(t,e,i){var n=i(23);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(55),o=i(40);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e,i){var n,o,r;!function(s,a){o=[e,i(173),i(27)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i in e)t[i]&&"object"===(0,u.default)(t[i])?o(t[i],e[i]):t[i]=e[i]}function r(t){return function(){for(var e=arguments.length,i=Array(e),n=0;n1?e-1:0),n=1;n0&&(v=o?Math.min(o/4,o/p*a):0,h=c),{destination:Math.round(v),duration:h}}function x(){}function g(t){console.error("[BScroll warn]: "+t)}function b(t,e){if(!t)throw new Error("[BScroll] "+e)}function _(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function w(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function S(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||g("can not resolve the wrapper dom"),this.scroller=this.wrapper.children[0],this.scroller||g("the wrapper need at least one child element to be scroller"),this.scrollerStyle=this.scroller.style,this._init(t,e)}Object.defineProperty(e,"__esModule",{value:!0});/*! +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.cube=e():t.cube=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=85)}([function(t,e){t.exports=function(t,e,i,n,o){var r,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n);var l;if(o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=i),l){var c=u.functional,f=c?u.render:u.beforeCreate;c?u.render=function(t,e){return l.call(e),f(t,e)}:u.beforeCreate=f?[].concat(f,l):[l]}return{esModule:r,exports:s,options:u}}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(40)("wks"),o=i(24),r=i(1).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=n},function(t,e,i){var n=i(1),o=i(2),r=i(16),s=i(10),a=function(t,e,i){var u,l,c,f=t&a.F,d=t&a.G,h=t&a.S,p=t&a.P,v=t&a.B,m=t&a.W,y=d?o:o[e]||(o[e]={}),x=y.prototype,g=d?n:h?n[e]:(n[e]||{}).prototype;d&&(i=e);for(u in i)(l=!f&&g&&void 0!==g[u])&&u in y||(c=l?g[u]:i[u],y[u]=d&&"function"!=typeof g[u]?i[u]:v&&l?r(c,n):m&&g[u]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?r(Function.call,c):c,p&&((y.virtual||(y.virtual={}))[u]=c,t&a.R&&x&&!x[u]&&s(x,u,c)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,i){var n=i(8),o=i(54),r=i(35),s=Object.defineProperty;e.f=i(9)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n,o,r;!function(i,s){o=[t,e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{isVisible:!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(53),i(120)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e,n,o){var s=r.default.apply(this,arguments),a=e.name,u=a.replace(/^cube-/i,""),l="$"+(0,i.camelize)("create-"+u);return t.prototype[l]=s.create,s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=e.default})},function(t,e,i){var n=i(11);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){t.exports=!i(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(5),o=i(17);t.exports=i(9)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(56),o=i(36);t.exports=function(t){return n(o(t))}},function(t,e,i){function n(t){i(116)}var o=i(0)(i(117),i(118),n,null,null);t.exports=o.exports},function(t,e,i){var n=i(23);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(55),o=i(41);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e,i){var n,o,r;!function(s,a){o=[e,i(172),i(27)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i in e)t[i]&&"object"===(0,u.default)(t[i])?o(t[i],e[i]):t[i]=e[i]}function r(t){return function(){for(var e=arguments.length,i=Array(e),n=0;n1?e-1:0),n=1;n0&&(v=o?Math.min(o/4,o/p*a):0,h=c),{destination:Math.round(v),duration:h}}function x(){}function g(t){console.error("[BScroll warn]: "+t)}function b(t,e){if(!t)throw new Error("[BScroll] "+e)}function _(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function w(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function S(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||g("can not resolve the wrapper dom"),this.scroller=this.wrapper.children[0],this.scroller||g("the wrapper need at least one child element to be scroller"),this.scrollerStyle=this.scroller.style,this._init(t,e)}Object.defineProperty(e,"__esModule",{value:!0});/*! * better-normal-scroll v1.8.4 * (c) 2016-2018 ustbhuangyi * Released under the MIT License. */ -var T=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0,I=k&&document.createElement("div").style,D=function(){if(!k)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==I[t[e]])return e;return!1}(),E=s("transform"),$=k&&s("perspective")in I,j=k&&("ontouchstart"in window||C),A=!1!==E,R=k&&s("transition")in I,L={transform:E,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionProperty:s("transitionProperty"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},V=1,B={touchstart:V,touchmove:V,touchend:V,mousedown:2,mousemove:2,mouseup:2},Y={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.001,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:j,disableTouch:!j,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1},F={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},N=function(){return k?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:x}(),X=function(){return k?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:x}(),H=1,z=-1,U=1,W=-1;w.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},w.prototype.refresh=function(){this.transitionTime(),this._calculate(),this.updatePosition()},w.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[L.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},w.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[L.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[L.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},w.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[L.transitionDuration]=t+"ms"},w.prototype.transitionTimingFunction=function(t){this.indicatorStyle[L.transitionTimingFunction]=t},w.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},w.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(a),this.scroller.trigger("beforeScrollStart")},w.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},w.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,o=void 0===n?F.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,s,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},w.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},w.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},w.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},w.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},w.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},w.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype._handleOptions=function(t){this.options=o({},Y,t),this.translateZ=this.options.HWCompositing&&$?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&R,this.options.useTransform=this.options.useTransform&&A,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),j&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,L.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1;Object.defineProperty(this,"isInTransition",{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],o=e&&!t.pulling?"none":"auto",r=0;r0||this.x0||this.ythis.options.momentumLimitTime&&ss+this.options.directionLockThreshold?this.directionLocked="h":s>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?W:i<0?U:0,this.movingDirectionY=o>0?z:o<0?H:0;var u=this.x+i,l=this.y+o;(u>0||u0?0:this.maxScrollX),(l>0||l0?0:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(u,l),a-this.startTime>this.options.momentumLimitTime&&(this.startTime=a,this.startX=this.x,this.startY=this.y,1===this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>1&&this.trigger("scroll",{x:this.x,y:this.y});var c=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,f=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,d=this.pointX-c,h=this.pointY-f;(d>document.documentElement.clientWidth-this.options.momentumLimitDistance||ddocument.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&B[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?W:o<0?U:0,this.directionY=r>0?z:r<0?H:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,F.bounce)){this.scrollTo(e,i),this.endTime=n();var s=this.endTime-this.startTime,a=Math.abs(e-this.startX),u=Math.abs(i-this.startY);if(this._events.flick&&sthis.options.momentumLimitDistance||a>this.options.momentumLimitDistance)){var c=this.hasHorizontalScroll?y(this.x,this.startX,s,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options):{destination:e,duration:0},d=this.hasVerticalScroll?y(this.y,this.startY,s,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options):{destination:i,duration:0};e=c.destination,i=d.destination,l=Math.max(c.duration,d.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,l=this.options.wheel.adjustTime||400);var h=F.swipe;if(this.options.snap){var p=this._nearestSnap(e,i);this.currentPage=p,l=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-p.x),1e3),Math.min(Math.abs(i-p.y),1e3)),300),e=p.x,i=p.y,this.directionX=0,this.directionY=0,h=this.options.snap.easing||F.bounce}if(e!==this.x||i!==this.y)return(e>0||e0||i0&&void 0!==arguments[0]?arguments[0]:"transform";this.scrollerStyle[L.transitionProperty]=t},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[L.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e=c)return s.isAnimating=!1,s._translate(t,e),void(s.pulling||s.resetPosition(s.options.bounceTime)||s.trigger("scrollEnd",{x:s.x,y:s.y}));f=(f-l)/i;var d=o(f),h=(t-a)*d+a,p=(e-u)*d+u;s._translate(h,p),s.isAnimating&&(s.animateTimer=N(r)),3===s.options.probeType&&s.trigger("scroll",{x:s.x,y:s.y})}var s=this,a=this.x,u=this.y,l=n(),c=l+i;this.isAnimating=!0,X(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionProperty(),this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&3===this.options.probeType&&this._startProbe(),this.options.wheel&&(e>0?this.selectedIndex=0:e0?0:r.left0?0:r.top0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>0?i=0:n0?o=0:r2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(P(e)),o=0;o0&&(p(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0)))}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,s=void 0,a=void 0,u=void 0,l=0,f=void 0,d=0,h=void 0,p=void 0;if(n)for(f=n.length,h=-1;lt.maxScrollX&&d++;else for(a=Math.round(i/2),u=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[l]=[],f=0,s=0;s>-t.scrollerHeight;)t.pages[l][f]={x:Math.max(r,t.maxScrollX),y:Math.max(s,t.maxScrollY),width:i,height:o,cx:r-a,cy:s-u},s-=o,f++;r-=i,l++}var v=e.loop?1:0;t._goToPage(t.currentPage.pageX||v,t.currentPage.pageY||0,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(m(t.scroller,i[i.length-1]),m(t.scroller,i[0]))}})},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>0?t=0:t0?e=0:e=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&(n=n||o.easing||F.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var r=this.pages[t][e].x,s=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(s-this.y),1e3)),300):i,this.currentPage={x:r,y:s,pageX:t,pageY:e},this.scrollTo(r,s,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o){if(o.loop){var r=this.pages.length-2;t>=r?t=r-1:t<0&&(t=0),t+=1}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)},t.prototype.prev=function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):this.currentPage:null}}(S),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,g("wheel option selectedIndex is required!"))}}(S),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var s=void 0;this.options.scrollX&&(s={el:_("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(s.el),this.indicators.push(new w(this,s))),this.options.scrollY&&(s={el:_("vertical"),direction:"vertical",fade:n,interactive:r},this._insertScrollBar(s.el),this.indicators.push(new w(this,s))),this.on("refresh",function(){for(var e=0;e0?c--:a<0&&c++,u>0?f--:u<0&&f++,void this._goToPage(c,f);c=this.x+Math.round(this.hasHorizontalScroll?a:0),f=this.y+Math.round(this.hasVerticalScroll?u:0),this.directionX=a>0?-1:a<0?1:0,this.directionY=u>0?-1:u<0?1:0,c>0?c=0:c0?f=0:f0?o(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(39)("keys"),o=i(24);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,i){var n=i(1),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){function n(t){i(136)}var o=i(0)(i(137),i(138),n,null,null);t.exports=o.exports},function(t,e,i){"use strict";var n=i(156)(!0);i(58)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){e.f=i(3)},function(t,e,i){var n=i(1),o=i(2),r=i(28),s=i(44),a=i(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,i){var n,o,r;!function(s,a){o=[t,e,i(7),i(47)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";function o(t,e){(0,r.default)(t,e,["select","value-change","cancel","change"]).before(function(t,e,i){i&&(0,n.warn)("Picker component can not be a singleton.")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default})},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.warn=function(t){console.warn("[cube-ui warn]: "+t)}})},function(t,e,i){"use strict";function n(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=o(e),this.reject=o(i)}var o=i(23);t.exports.f=function(t){return new n(t)}},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";function e(t,e,n,o){for(var r=[],s=t.length,a=0,u=0;u0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=r&&r.base64||"";return{name:t,size:e,url:s?"":o(r),base64:s,status:i,progress:n,file:r}}function o(t){return t&&r?r.createObjectURL(t):""}Object.defineProperty(t,"__esModule",{value:!0}),t.processFiles=e,t.processFile=i,t.newFile=n;var r=t.URL=window.URL||window.webkitURL||window.mozURL,s=t.STATUS_READY="ready";t.STATUS_UPLOADING="uploading",t.STATUS_ERROR="error",t.STATUS_SUCCESS="success"})},function(t,e,i){function n(t){i(96)}var o=i(0)(i(97),i(98),n,null,null);t.exports=o.exports},function(t,e,i){function n(t){i(107)}var o=i(0)(i(108),i(109),n,null,null);t.exports=o.exports},function(t,e,i){var n,o,r;!function(i,s){o=[e],n=s,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t){"use strict";function e(t){return t=String(t),t.replace(i,function(t,e){return e?e.toUpperCase():""})}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=e;var i=/-(\w)/g})},function(t,e,i){"use strict";e.__esModule=!0;var n=i(32),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;eu;)n(a,i=e[u++])&&(~r(l,i)||l.push(i));return l}},function(t,e,i){var n=i(19);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,i){var n,o,r;!function(s,a){o=[e,i(153),i(177),i(65)],n=a,void 0!==(r="function"==typeof n?n.apply(e,o):n)&&(t.exports=r)}(0,function(t,e,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"rules",{enumerable:!0,get:function(){return e.rules}}),Object.defineProperty(t,"addRule",{enumerable:!0,get:function(){return e.addRule}}),Object.defineProperty(t,"findMessage",{enumerable:!0,get:function(){return i.findMessage}}),Object.defineProperty(t,"addMessage",{enumerable:!0,get:function(){return i.addMessage}}),Object.defineProperty(t,"setLanguage",{enumerable:!0,get:function(){return i.setLanguage}}),Object.defineProperty(t,"types",{enumerable:!0,get:function(){return n.types}}),Object.defineProperty(t,"addType",{enumerable:!0,get:function(){return n.addType}})})},function(t,e,i){"use strict";var n=i(28),o=i(4),r=i(59),s=i(10),a=i(12),u=i(20),l=i(157),c=i(29),f=i(159),d=i(3)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,i,v,m,y,x){l(i,e,v);var g,b,_,w=function(t){if(!h&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},S=e+" Iterator",T="values"==m,P=!1,k=t.prototype,M=k[d]||k["@@iterator"]||m&&k[m],C=!h&&M||w(m),O=m?T?w("entries"):C:void 0,I="Array"==e?k.entries||M:M;if(I&&(_=f(I.call(new t)))!==Object.prototype&&_.next&&(c(_,S,!0),n||a(_,d)||s(_,d,p)),T&&M&&"values"!==M.name&&(P=!0,C=function(){return M.call(this)}),n&&!x||!h&&!P&&k[d]||s(k,d,C),u[e]=C,u[S]=p,m)if(g={values:T?C:w("values"),keys:y?C:w("keys"),entries:O},x)for(b in g)b in k||r(k,b,g[b]);else o(o.P+o.F*(h||P),e,g);return g}},function(t,e,i){t.exports=i(10)},function(t,e,i){var n=i(8),o=i(158),r=i(40),s=i(38)("IE_PROTO"),a=function(){},u=function(){var t,e=i(33)("iframe"),n=r.length;for(e.style.display="none",i(61).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("