UNPKG

nimble-ui

Version:
1 lines 67.1 kB
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="/CCK")}({"/CCK":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("FlVT"),o=n("XUgh"),r=n("o//q"),a=n("hpoY"),s=n("cTBm"),u=n("76is"),c=n("SH7W"),l=n("7UL8"),f={extends:r.a,name:"NuAddress",components:{MyAddress:c.a,Addressedit:l.a},props:{pageType:{type:String,default:a.d.ADDRESS_LIST}},data:function(){return{pageTypeList:["my-address","addressedit"],myPageType:this.pageType,outPage:null,pageList:[],myReduce:!1,addressItem:null}},popupPopstate:function(t){this._popstate(t)},computed:{mySaveBtnText:function(){return(this.saveBtnText?this.saveBtnText:this.isBack?"保存并使用":"保存")||""}},methods:{enter:function(){Object(i.a)(this.$el,Object(o.a)("transitionend",!0))},_afterLeave:function(){this.myReduce=!1},_popstate:function(t){var e=this,n=(t=t||{}).nowPage;n?n!==e.myPageType&&(e.myReduce=!0,setTimeout(function(){e.myPageType=n})):e._cancel()},pageFilter:function(t){var e="";switch(t){case a.d.ADDRESS_LIST:e="my-address";break;case a.d.ADDRESS_EDIT:e="addressedit"}return e},openPage:function(t){var e="";switch(this.myPageType=t,t){case a.d.ADDRESS_LIST:e="选择收货地址";break;case a.d.ADDRESS_EDIT:e="编辑收货地址"}this.$emit(s.a.OPEN_PAGE,{state:{carPage:1,pageType:t},title:e,pageName:t})},_toEditPage:function(t){this.addressItem=(t||{}).data,this.myPageType=a.d.ADDRESS_EDIT},_onSave:function(t){this.isBack?this._onSelectItem(t):this.$emit("goBackPage")},_onSelectItem:function(t){this.$emit(s.a.SELECT_ITEM,t),this._confirm(t)},_confirm:function(t){this.$emit(u.a.CONFIRM,t)},_cancel:function(t){this.$emit(u.a.CANCEL,t)}}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_address"},[n("transition",{attrs:{name:"t_address"},on:{"after-enter":function(e){t.enter()},"after-leave":t._afterLeave}},[t._l(t.pageTypeList,function(e,i){return[e===t.pageFilter(t.myPageType)?n(e,{key:i,tag:"div",staticClass:"nu_page-item",class:[t.myReduce&&"nu_page-reduce"],attrs:{addBtnText:t.addBtnText,saveBtnText:t.mySaveBtnText,getAddressData:t.getAddressData,message:t.message,filterItem:t.filterItem,addressData:t.addressItem},on:{openPage:t.openPage,addEdit:t._toEditPage,selectItem:t._onSelectItem,save:t._onSave}}):t._e()]})],2)],1)},staticRenderFns:[]};var p=n("VU/8")(f,d,!1,function(t){n("SiwD")},null,null).exports,v=n("4qRk");e.default=Object(v.a)(p)},"/Ot8":function(t,e,n){"use strict";var i,o,r,a,s={trident:(i=navigator.userAgent).indexOf("Trident")>-1,presto:i.indexOf("Presto")>-1,webKit:i.indexOf("AppleWebKit")>-1,gecko:i.indexOf("Gecko")>-1&&-1===i.indexOf("KHTML"),mobile:!!i.match(/AppleWebKit.*Mobile.*/),ios:!!i.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:i.indexOf("Android")>-1||i.indexOf("Adr")>-1,iPhone:i.indexOf("iPhone")>-1,iPad:i.indexOf("iPad")>-1,symbian:i.indexOf("SymbianOS")>-1,windowPhone:i.indexOf("Windows Phone")>-1,iPod:i.indexOf("iPod")>-1,weixin:/MicroMessenger/i.test(i),browserVersion:(i.match(/version\/(.+?)\s/i)||[])[1],appVersion:"",kernel:/tencenttraveler|qqbrowse/i.test(i)?"x5":"",qqnews:/qqnews/i.test(i),isMiniProgram:"miniprogram"===window.__wxjs_environment||/miniProgram/i.test(i)},u=(o=window.screen||{},a={mobile:!1,pc:!1,ios:(r=s).ios||r.iPhone||r.iPad||!1,weixin:r.weixin||!1,isWeixin:r.weixin||!1,iPad:r.iPad||!1,isApp:!1,appVersion:r.appVersion,browserVersion:r.browserVersion,isLightApp:!1,kernel:r.kernel,isIphoneX:r.iPhone&&812===o.height&&375===o.width,android:r.android,isQqnews:r.qqnews,isMiniProgram:r.isMiniProgram},r.mobile||r.ios||r.android||r.iPhone||r.iPad||r.symbian||r.windowPhone||r.iPod||a.isApp?a.mobile=!0:a.pc=!0,a);e.a=u},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(i.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var i=n("lXuC")},"37ml":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e,n){e.mixin(Object(i.a)(t,[n]))});return t};var i=n("ekq3")},"4Q54":function(t,e,n){"use strict";var i={extends:n("Lv3q").a},o=n("VU/8")(i,null,!1,null,null,null);e.a=o.exports},"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",i=e.component(n);i||e.component(n,t)});return t}},"5fCB":function(t,e,n){"use strict";var i=n("E5mE"),o=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];if(a instanceof Array&&(n=a.slice(0,1)[0]),"boolean"==typeof n&&(e=n,a.splice(0,1),e||(n=a.splice(0,1)[0])),a&&a.length<1)return"boolean"==typeof n?a[1]:n;e&&(n=null);for(var u=0;u<a.length;u++){var c=a[u];if(c instanceof Object)if(e){for(var l in n&&n instanceof Object||(n=c instanceof Array?[]:{}),c)if(c.hasOwnProperty(l)){var f=c[l];if(p(f)){var d=p(n[l])&&n[l]||(f instanceof Array?[]:{});n[l]=t(d,f)}else void 0!==f?n[l]=f:void 0!==n[l]&&(n[l]=f)}}else n=n&&n instanceof Object?Object.assign(n,c):c}return n;function p(t){return t&&(Object(i.a)(t,"Array")||Object(o.a)(t))||!1}}},"6D8K":function(t,e){},"76is":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={SHOW:"showChange",HIDE:"hideChange",CONFIRM:"confirmChange",CANCEL:"cancelChange",CLOSE_POPUP:"closePopup",CLOSE:"close",OPEN_PAGE:"openPage",GO_BACK_PAGE:"goBackPage"}},"7UL8":function(t,e,n){"use strict";var i=n("ekq3"),o=n("ZMJv"),r=n("zagf"),a=n("IrUm");function s(t){return function(e,n){var i=n;Object.defineProperty(e,n,{set:function(e){var n=this.__vmb__=this.__vmb__||{},o=Object(r.a)(t&&t.set||e,[e],this),s=n[i];if(n[i]=void 0!==o?o:e,t&&t.change instanceof Function){var u=n[i];Object(a.a)(u,s)||Object(r.a)(t.change,[u,s],this)}},get:function(){var e=this.__vmb__||{},n=Object(r.a)(t&&t.get||e[i],[e[i]],this);return void 0!==n&&(e[i]=n),e[i]}})}}var u=n("qd2b"),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":c(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));i.options=n,i.parent=null,i.formGroup=null,i.config=null,i.defaultOption={asyncWaitInfo:{errInfo:{desc:"验证中,请验证无误后再次保存~",type:"asyncWaitErr"}},validFlowTime:20,asyncErrInfo:null,config:null},i.isValidStatus=1,i.isWaitStatus=0,i.isBlur=!1,i.isFocus=!1,i.isChange=!1,i.value=null,i.valid=null,i.isValid=!1,i.setDefaultOptions(n);var o=i;return o.config=n&&n.config||null,i.defaultOption&&void 0!==i.defaultOption.defaultValue?o.setValue(i.defaultOption.defaultValue):o.getValid(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._stopTimeout=function(){void 0!==this._timeout&&(clearTimeout(this._timeout),this._timeout=void 0)},e.prototype.setValue=function(t){this.value!==t&&(this.value=t)},e.prototype.getValid=function(){var t=this,e=t.getOptions();return 0===t.isValidStatus||1===t.isWaitStatus?t.valid:(t._stopTimeout(),t.isValidStatus=0,function i(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;var s=null;var u=null;if(o)if(o instanceof Array){a=o.length;for(var c=r;c<a;c++){var l=o[c];if(u=n(l),r+=1,u)break}}else u=n(o);u instanceof Promise?(t.isWaitStatus=1,s=e.asyncWaitInfo||null,u.then(function(e){e||r>=a?(t.valid=e||null,t.isWaitStatus=0,t.getValid()):s=i(o,r,a)},function(){t.valid=e.asyncErrInfo||null,t.isWaitStatus=0,t.isValidStatus=1})):(s=u||null,t.isWaitStatus=0);t.valid=s;return s}(e&&e.valid,0)||null);function n(e){return Object(r.a)(e||null,[t.value instanceof g?t.value:t])}},e.prototype.get=function(){return this},e.prototype.getValue=function(){return this.value},e.prototype.resetValue=function(t){var e=this.config||{};void 0!==e.defaultValue?this.setValue(e.defaultValue):void 0!==t?this.setValue(t):this.setValue(null)},e}(u.a);l([s({set:function(t){var e=this,n=e.getOptions();e.isValidStatus=1,e.isChange=!0,e._stopTimeout(),e._timeout=setTimeout(function(){e.getValid()},n.validFlowTime)}})],f.prototype,"value",void 0),l([s({set:function(t){this.isValid=!!t},get:function(t){var e=void 0;return 0!==this.isValidStatus&&1!==this.isWaitStatus&&(e=this.getValid()),e}})],f.prototype,"valid",void 0);var d=n("E5mE"),p=n("eY/N");var v=function(t,e,n){if(!t)return!0;var i=t,o=Object(d.a)(i,"Array")&&i.length;if(o===+o){for(var a=0,s=o;a<s;a++)if(!1===Object(r.a)(e,[i[a],a,i],n))return!1}else if(Object(p.a)(i))for(var u in i)if(i.hasOwnProperty(u)&&!1===Object(r.a)(e,[i[u],u,i],n))return!1;return!0};var m=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.isSend=!1,i.isSave=!1,i.setDefaultOptions(n),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._setValidOption=function(t){this._validOption=t},e.prototype.getThisValid=function(){var t=this,e=t._validOption,n=null;return e&&(e instanceof Array?e.forEach(function(e){n||(n=Object(r.a)(e,[t])||null)}):n=Object(r.a)(e,[t])||null),n||null},e.prototype._getValid=function(t){var n;return n=void 0,h(t,function(t,i,o){if(i){var r=void 0;i instanceof e?(r=i.valid)||(r=i.valid):i.value instanceof e?(r=i.valid)||(r=i.value.valid):i instanceof f&&i.valid&&(r=i.valid),r&&((n=n||o>0&&[]||{})[t]=r)}}),n},e.prototype._getValue=function(t){return n=null,h(t,function(t,i,o){i&&(n=n||o>0&&[]||{},i instanceof e||i instanceof f?n[t]=i.value:i.value instanceof e?n[t]=i.value.value:n[t]=i.value)}),n;var n},e.prototype._setItem=function(t,n,i,o,a){var s=!1;if(t&&(n instanceof e||n instanceof f)){var u=Object(r.a)(a,[n]);void 0!==u&&(n=u),t instanceof Array?i||i+""=="0"?(t.splice(parseInt(i+"",10)||0,0,n),s=!0):(t.push(n),s=!0):t instanceof Object?void 0!==i?(t[i]=n,s=!0):console.error("请传入key"):console.error("表单对象类型不正确")}else t?Object(r.a)(o,[{flag:"itemTypeErr"}]):console.error("表单对象不存在");return s},e.prototype._removeItem=function(t,e){var n=!1;return t&&void 0!==e&&(t instanceof Array?(e=parseInt(e+"",10)||0,t.length>e&&(t.splice(e,1),n=!0)):t instanceof Object&&t[e]&&(delete t[e],n=!0)),n},e.prototype.setGroupsIsSave=function(t,n){return v(t=t||[],function(t){t instanceof e?t.isSave=n:t.value instanceof e&&(t.value.isSave=n)})},e.prototype._resetValue=function(t,n){return v(t=t||[],function(t){var i=t;i instanceof e||i instanceof f?i.resetValue(n):(i.value instanceof e||i.value instanceof f)&&i.value.resetValue(n)})},e}(u.a);function h(t,e){v(t,function(n,i){n&&(n instanceof f||n instanceof m)&&Object(r.a)(e,[i,n,t instanceof Array&&t.length||!1])})}var _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var y=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},g=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.parent=null,i.formGroup=null,i.formArray=null,i.isSave=!1,i.isValid=!1,i.value=null,i.controls={},i.setDefaultOptions(null),i.setControls(n),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.setControls=function(t){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];(i instanceof f||i instanceof e)&&(i.formGroup=this,i.parent=this)}this.controls=t},e.prototype.get=function(t){t=t||0;var e=this.controls,n=e&&e[t];return n instanceof f||n instanceof m?n:null},e.prototype.getValid=function(){return this.valid=null,this.getThisValid()||this._getValid(this.controls)},e.prototype.getValue=function(){return this._getValue(this.controls)},e.prototype.setValue=function(t,e){var n=this.controls;if(n&&t)for(var i in t)if(t.hasOwnProperty(i))if(n[i])n[i]instanceof f||n[i]instanceof m?n[i].setValue(t[i]):n[i].defaultValue=t[i];else{var o=t[i];Object(r.a)(e,[{},o]),o instanceof f||o instanceof m?n[i].setValue(o):n[i]=new f({defaultValue:o,config:{defaultValue:o}})}return n},e.prototype.resetValue=function(t){this._resetValue(this.controls,t)},e.prototype.setItem=function(t,e){var n=this,i=n._setItem(n.controls,t,e,function(t){t&&"itemTypeErr"===t.flag&&console.error("传入的item类型不正确, item只能为FormControl")},function(t){t.formGroup=n,t.parent=n});return i&&n.getValid(),i&&n.getValue()||i},e.prototype.removeItem=function(t){var e=this._removeItem(this.controls,t);return e&&this.getValid(),e&&this.getValue()||e},e.prototype.merge=function(t){var n=this;if(t instanceof e){var i=n.controls,o=t.controls;if(i instanceof Array&&!(o instanceof Array)||!(i instanceof Array)&&o instanceof Array)console.error("两个FormGroup的数据格式不一致不能合并");else if(i instanceof Array&&o instanceof Array)o.forEach(function(t){t instanceof e&&(t.formArray=n.formArray),t.formGroup=n,t.parent=n}),n.controls=i.concat(o);else if(i instanceof Object&&o instanceof Object)for(var r in o)if(o.hasOwnProperty(r)){var a=o[r];a instanceof e&&(a.formArray=n.formArray),a.formGroup=n,a.parent=n,i[r]=a}}return this},e.prototype.clear=function(){this.controls instanceof Array?this.controls=[]:this.controls instanceof Object&&(this.controls={})},e}(m);y([s({set:function(t){this.setGroupsIsSave(this.controls,t)}})],g.prototype,"isSave",void 0),y([s({set:function(t){this.isValid=!!t},get:function(t){return this.getValid()}})],g.prototype,"valid",void 0),y([s({get:function(t){return this.getValue()}})],g.prototype,"value",void 0);var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var O=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":b(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},E=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.parent=null,i.formGroup=null,i.isValid=!1,i.value=null,i.isSave=!1,i.groups=[],i.setDefaultOptions(null),i.groups=n,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.get=function(t){return t=t||0,this.groups[t]||null},e.prototype.getValid=function(){return this.valid=null,this.getThisValid()||this._getValid(this.groups)},e.prototype.getValue=function(){return this._getValue(this.groups)},e.prototype.setValue=function(t,e){var n=void 0;return t&&t.length>0&&this.groups&&this.groups.forEach(function(e,i){e&&void 0!==t[i]&&(n=n||[]).push(e.setValue(t[i]))}),n},e.prototype.resetValue=function(t){this._resetValue(this.groups,t)},e.prototype.setItem=function(t,e){var n=this,i=n._setItem(n.groups,t,e,function(t){t&&"itemTypeErr"===t.flag&&console.error("传入的item类型不正确, item只能为FormGroup")},function(t){t.formArray=n,t.parent=n,t.formGroup=null});return i&&n.getValid(),i&&n.getValue(),i},e.prototype.removeItem=function(t){var e=this._removeItem(this.groups,t);return e&&this.getValid(),e&&this.getValue(),e},e.prototype.merge=function(t){var n=this;if(t instanceof e){var i=n.groups,o=t.groups;i instanceof Array&&o instanceof Array?(o.forEach(function(t){i.every(function(e){return e!==t})&&(t.formArray=n,t.parent=n,t.formGroup=null,i.push(t))}),n.groups=i):console.error("FormArray的数据格式不正确不能合并")}return this},e.prototype.clear=function(){this.groups instanceof Array&&(this.groups=[])},e}(m);O([s({set:function(t){this.isValid=!!t},get:function(t){return this.getValid()}})],E.prototype,"valid",void 0),O([s({get:function(t){return this.getValue()}})],E.prototype,"value",void 0),O([s({set:function(t){this.setGroupsIsSave(this.groups,t)}})],E.prototype,"isSave",void 0);var C=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype._isArray=function(t){var e=void 0;return t&&(e=!1,t instanceof Array&&(e=!0)),this._isArray=function(){return e},e},t.prototype._setList=function(t,e,n){var i=this,o=t||[];return(e||[]).forEach(function(t,e){var r=i._setItem(o[e],t,i._getKeyItem(n,e));void 0!==r&&(o[e]=r)}),o},t.prototype._setItem=function(t,e,n){var i=this._getKey(e,n);return i&&((t=t||{})[i]=Object.assign({},e)),t},t.prototype._getList=function(t,e,n){var i=this,o=[],r=t;return r&&(e||[]).forEach(function(t,e){var a=i._getItem(r[e],t,i._getKeyItem(n,e));void 0!==a&&(o[e]=a)}),o},t.prototype._getItem=function(t,e,n){var i=this._getKey(e,n),o=t,r=void 0;return i&&o&&o[i]&&(r=o[i]),r},t.prototype._getKeyItem=function(t,e){var n=t;return t instanceof Array&&(n=t[e]),n},t.prototype._getKey=function(t,e){var n="",i=function(t){var e="";if(t&&"string"==typeof t)e=[t];else if(t instanceof Array)e=t;else if(t instanceof Object){var n=t;n.key?e=n.key:n.keyName&&("string"==typeof n.keyName?e=[n.keyName]:n.keyName instanceof Array&&(e=n.keyName))}return e}(e);return"string"==typeof i?n=i:i instanceof Array&&i.forEach(function(e){var i=t&&t[e];void 0!==i&&null!==i&&(n=n+i+"")}),n},t.prototype.setCache=function(t,e){var n=this._isArray(t);n?this.__data=this._setList(this.__data,t,e):!1===n&&(this.__data=this._setItem(this.__data,t,e))},t.prototype.getCache=function(t,e){var n=this._isArray(t),i=void 0;return n?i=this._getList(this.__data,t,e):!1===n&&(i=this._getItem(this.__data,t,e)),i},t.prototype.addItem=function(t,e){var n=void 0;return this.__data instanceof Array&&(n=this.__data.splice(t+1,0,e||{})),n},t.prototype.removeItem=function(t){var e=void 0;return this.__data instanceof Array&&this.__data[t]&&(e=this.__data.splice(t,1)),e},t.prototype.clear=function(){this.__data=void 0},t}();var w=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,null));return i.validate=n,i.name="Form",i.setDefaultOptions(null),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.initFormArray=function(t,e,n){var i=[];if(t instanceof Array&&t.length>0)for(var o=0;o<t.length;o++){var r=t[o];r instanceof Array&&r.length?i.push(this.initFormData(r)):r instanceof Object&&(r instanceof g||r instanceof f?i.push(r):i.push(this.initFormGroup(r)))}var a=new E(i);return a.setValue(e||[],n),a},e.prototype.initFormData=function(t,e,n){var i={};if(function t(e,n){n.forEach(function(n){n&&n.formControl&&n.formControl.length>0?t(e,n.formControl):n&&n.controlName&&(e[n.controlName]=n)})}(i,t||[]),e)for(var o in e)e.hasOwnProperty(o)&&(i[o]?i[o].defaultValue=e[o]:i[o]={controlName:o,defaultValue:e[o]});return this.initFormGroup(i,e,n)},e.prototype.initFormGroup=function(t,e,n){var i=t,o={};if(i instanceof g)return i;for(var r in t instanceof Array&&(o=[]),i)if(i.hasOwnProperty(r)){var a=i[r],s=this.setGroupValid(a),u=a.defaultValue;n instanceof Function&&(u=n(a,u)),a instanceof f||a instanceof m?(a instanceof g&&s&&s.length&&a._setValidOption(s),o[r]=a):u instanceof f||u instanceof m?(u instanceof g&&s&&s.length&&u._setValidOption(s),o[r]=u):o[r]=this.initFormControl(a)}var c=new g(o);return e&&c.setValue(e,n),c},e.prototype.initFormControl=function(t){var e={};if(t instanceof f)return t;var n=this.setValid(t);return void 0!==t.defaultValue&&(e.defaultValue=t.defaultValue),n&&n.length&&(e.valid=n),"number"==typeof t.validFlowTime&&(e.validFlowTime=t.validFlowTime),t&&(e.config=t),new f(e)},e.prototype.validForm=function(t,e){var n=t.getValid();return this.validControls(n,e)},e.prototype.initFormCache=function(){return new C},e.prototype.setGroupValid=function(t){var e=this,n=[];return x(t&&t.groupValid,function(i){if(i instanceof Function)n.push(i);else{var o=Object.assign({name:t.nameText||""},t.valid||{});n.push(e.validate.generateArrayValidetor(o))}}),n},e.prototype.setValid=function(t){var e=this,n=[];return x(t&&t.valid,function(i){if(i instanceof Function)n.push(i);else{var o=Object.assign({name:t.nameText||""},i||{});n.push(e.validate.generateValidetor(o))}}),n},e.prototype.validControls=function(t,e){var n=!1;if(t)for(var i in n=!0,t)if(t.hasOwnProperty(i)){var o=t[i],r=o&&o.errInfo;if(r)return r&&r.desc&&e&&e(r.desc),!0;if(o instanceof Array&&this.validControls(o,e))return!0;if(o&&o.controls&&this.validControls(o.controls,e))return!0;if(o instanceof Object&&this.validControls(o,e))return!0}return n&&console.error("未定义错误!"),n},e}(u.a);function x(t,e){t&&(t instanceof Array?t.forEach(function(t){Object(i.a)(e,[t])}):Object(i.a)(e,[t]))}function S(t,e){var n=!1;return t&&t.reg&&e&&(t.reg.lastIndex=0,t.reg.test(e+"")||(n=t.infoTxt||"格式错误")),n}var V=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.defaultOption={rules:{vPassword:{reg:/(?!^\d+$)(?!^[a-zA-Z]+$)[0-9a-zA-Z]{6,20}$/,infoTxt:"由6-20位数字+字母组成"},vMobile:{reg:/^1\d{10}$/,infoTxt:"由11位数字组成且第一位为1"},vEmail:{reg:/^([.a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,infoTxt:"格式不正确"}}},i.setDefaultOptions(n),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getRegExp=function(t,e){var n=void 0,i=this.getOptions(e||{}),o=i&&i.rules;return t?(n=o&&o[t])||console.error(t+":规则不存在"):n=o,n},e.prototype.generateValidetor=function(t){var e=this;return t=e.getOptions(t),function(n,i){var o="";void 0===i&&(i="value");var r=(n[i]||"")+"";n instanceof f&&(n.validate=e),void 0!==n[i]&&null!==n[i]&&(r=n[i]+"");var a=!1;return!!(r||t.required||t.isChecked)&&(o=(a=a||function(t,e){var n=!1;return t.isChecked&&!e&&"0"!==e&&(n=t.requiredErr||"请选择"+(t.name||"")),n||(e||"0"===e)&&((e||"")+"").replace(/^\s+|\s+$/gi,"")||!t.required||(n=t.requiredErr||"请输入"+(t.name||"")),n}(t,r||n[i]))?"emptyErr":"",!a&&t.format&&((a=e._validFormat(t.format,r,t))&&(a=t.formatErr||(t.name||"")+a),o=a?"formatErr":""),a||(o=(a=function(t,e){var n=!1;return!n&&t.minLength&&e.length<Math.abs(t.minLength)&&(n=t.minLengthErr||(t.name||"")+"最少不能少于"+Math.abs(t.minLength)+"字"),!n&&t.maxLength&&e.length>Math.abs(t.maxLength)&&(n=t.maxLengthErr||(t.name||"")+"最多不能超过"+Math.abs(t.maxLength)+"字"),n}(t,r))?"lengthErr":""),a||(o=(a=function(t,e){var n=!1,i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=0;return(t=(t=(t||"")+"").replace(/[^\x00-\xff]+/g,function(t){return e+=t.length,""})).length+(2*e||0)}(e||"")||0,o=Math.abs(parseInt(t.minSize+"",10)),r=Math.abs(parseInt(t.maxSize+"",10));return!n&&o>=0&&i<o&&(n=t.minSizeErr||(t.name||"")+"最少不能少于"+o+"字节"),!n&&r>=0&&i>r&&(n=t.maxSizeErr||(t.name||"")+"最多不能超过"+r+"字节"),n}(t,r))?"SizeErr":""),!!a&&{errInfo:{desc:a+"",type:o}})}},e.prototype.generateArrayValidetor=function(t){return t=this.getOptions(t),function(e){var n="",i=e&&e.getValue(),o=!1,r=0;return i&&i.length>0&&(i.forEach(function(e){t.minRequiredName&&void 0!==e[t.minRequiredName+""]&&""!==(e[t.minRequiredName+""]+"").replace(/^\s+|\s+$/gi,"")&&++r}),!o&&i&&-1===t.minRequiredAmount&&r>=i.length&&(n=(o=t.minRequiredAmountErr||(t.name||"")+"必须全部输入")?"requiredAllErr":""),!o&&r<(t.minRequiredAmount||0)&&(n=(o=t.minRequiredAmountErr||(t.name||"")+"最少需要输入"+t.minRequiredAmount+"项")?"minRequiredErr":"")),!!o&&{errInfo:{desc:o+"",type:n}}}},e.prototype._validFormat=function(t,e,n){var i=!1,o=void 0;if(!t||!e)return i;if("string"==typeof t)(o=this.getRegExp(t,n))&&(i=S(o,e));else if(t instanceof Array)for(var r=0;r<t.length;r++){var a=t[r];if((o=this.getRegExp(a,n))&&!i&&(i=S(o,e)))break}return i},e}(u.a);function T(t){return n=t&&t.validate||{},e=new V(n),w.instance(e);var e,n}var j=n("o//q"),A=n("n4ML"),k=n("n7Vd"),I=n("tmTt"),N=n("Fszl"),D=n("Wxd7"),P=n("WIwv"),R=n("MzTb"),F=n("hpoY"),L=n("cTBm"),M={extends:j.a,name:"NuAddressedit",components:{NuLayout:A.default,NuButton100:I.default,NuButton:k.default,NuIcon:D.default,NuCellgroup:P.default,NuCell:R.default,NuInput:N.default},props:{addressData:{type:Object}},data:function(){return{myItemData:Object.assign({},this.addressData),formList:null,formModel:null}},created:function(){this._initCom()},methods:{_initCom:function(){var t=this,e=this;Object(o.a)(this.getAddressData,[F.a.GET_FORM_CONFIG,this.addressData]).then(function(n){t.formList=n,e.$emit(L.a.OPEN_PAGE,F.d.ADDRESS_EDIT),e._initFormModel()})},_initFormModel:function(){var t=this.form=this.form||T();this.formList&&this.formList.length>0&&t&&(this.formModel=t.initFormData(this.formList),this.formModel.setValue(this.addressData))},_selectCityPicker:function(){var t=this,e=t.myItemData||{};Object(o.a)(t.getAddressData,[F.a.GET_REGION_NAME,{address:[e.provinceName||"",e.cityName||"",e.countyName||""]}]).then(function(e){e=e||{};var n=t.formModel;n&&(n.setValue(e),n.get("addressDefault").setValue(""+(e.provinceName||"")+(e.cityName||"")+(e.countyName||"")))})},_onSave:function(){var t=this,e=t.formModel;if(n=e.valid,r=function(e){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];return void Object(o.a)(t.message,[i.errInfo.desc,{type:"toast"}])}},!n||(n instanceof Array?n.every(function(t){Object(i.a)(r,[t])}):Object(i.a)(r,[n]),0)){var n,r,a=e.value;Object(o.a)(t.getAddressData,[F.a.ADD_OR_EDIT_ADDRESS,a]).then(function(){t.$emit(L.a.SAVE,a)})}},_clickItem:function(t){switch((t||"")+""){case"city":this._selectCityPicker()}}}},$={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_addressedit"},[n("nu-layout",{staticClass:"nu_addressEdit-layout",attrs:{layout:t.layout}},[n("nu-cellgroup",{staticClass:"nu_address-form"},t._l(t.formList,function(e,i){return n("nu-cell",{key:i,staticClass:"nu_option-item",on:{click:function(n){t._clickItem(e.inputType)}}},[n("div",{staticClass:"nu_label"},[t._v(t._s(e.nameText)+":")]),t._v(" "),n("div",{staticClass:"nu_content"},[n("nu-input",{attrs:{maxLen:e.maxLen,readonly:e.readonly,placeholder:e.placeholder},model:{value:t.formModel.get(e.controlName).value,callback:function(n){t.$set(t.formModel.get(e.controlName),"value",n)},expression:"formModel.get(item.controlName).value"}})],1)])})),t._v(" "),n("nu-button100",{staticClass:"nu_save-btn-wrap"},[n("nu-button",{staticClass:"nu_add-btn nu_icon",on:{click:t._onSave}},[t._v("\n "+t._s(t.saveBtnText)+"\n ")])],1)],1)],1)},staticRenderFns:[]};var U=n("VU/8")(M,$,!1,function(t){n("hvAN")},null,null);e.a=U.exports},"7s3g":function(t,e){},"9B2K":function(t,e,n){"use strict";e.a=function(t,e,n){t=((t||"")+"").replace(/\s+/g,"");var s=n||window,u=e?"on":"";if(u+t in s)return t;var c=u?t:Object(i.a)(t);c=c.replace(/(start$|end$|animation|frame$)/gi,function(t,e){return Object(i.a)(e)});for(var l=0;l<r.length;l++){var f=r[l],d=f+c,p=f+t;if(u+d in s)return r=[f],a[t]=d,d;if(u+p in s)return r=[f],a[t]=p,p}var v=Object(o.a)("transition-property",!0);v&&u+v+c in s&&(t=v+c);return e?t:""};var i=n("0Zk/"),o=n("shrL"),r=["Moz","moz","Webkit","webkit","O","o","MS","ms"],a={}},"9je7":function(t,e){},ApHY:function(t,e){},"B/FW":function(t,e){},BOJz:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={extends:n("ho/f").a,name:"NuTag",props:{nameText:{type:[String,Number],default:"标签"},styleName:{type:String,default:""}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_tag",class:[t.styleName&&"nu_tag-"+t.styleName||""],on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[n("span",{staticClass:"nu_tag",attrs:{"data-text":t.nameText||t.text}})])},staticRenderFns:[]};var r=n("VU/8")(i,o,!1,function(t){n("HNS/")},null,null).exports,a=n("4qRk");e.default=Object(a.a)(r)},E5mE:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;try{n=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return n}},EGiU:function(t,e,n){"use strict";var i={extends:n("Lv3q").a},o=n("VU/8")(i,null,!1,null,null,null);e.a=o.exports},FMyl:function(t,e,n){"use strict";var i={extends:n("ho/f").a,props:{nameText:{default:""}}},o=n("VU/8")(i,null,!1,null,null,null);e.a=o.exports},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var o="$s"+(n=Object(i.a)(e.name));t.prototype&&!t.prototype[o]&&function(t,e,n){if(t&&e&&n){t[n]=e;try{Object.defineProperty(t,n,{get:function(){var t=this;return e._getParent=function(){return t},e},enumerable:!1,configurable:!1})}catch(t){}}}(t.prototype,e,o)}else console.error("Mount is not defined for the image name");return n};var i=n("0Zk/")},FlVT:function(t,e,n){"use strict";var i=n("Z05q");e.a=i.a},Fszl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("sktA"),o=n("4qRk");e.default=Object(o.a)(i.a)},"HNS/":function(t,e){},IrUm:function(t,e,n){"use strict";e.a=function t(e,n,i){var o=!1;var r=e instanceof Object;var a=n instanceof Object;if(e===n)return!0;r&&r===a&&(r=Object.prototype.toString.call(e),a=Object.prototype.toString.call(n));if(!e&&n||e&&!n||r&&!a||!r&&a)return o;if(!r||!a)return e===n&&(o=!0),o;if(function(t,e){var n=!1;try{n=JSON.stringify(t)===JSON.stringify(e)}catch(t){n=!1}return n}(e,n))o=!0;else if(i&&i.length)o=c(i,e,n);else{var s=Object.keys(e),u=Object.keys(n);s.length===u.length&&(o=c(s,e,n))}return o;function c(e,n,i){for(var o=!0,r=0;r<e.length;r++){var a=e[r];if("__ob__"!==a&&!(o=t(n[a],i[a])))break}return o}}},IwUv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("aPLb"),o=n("BOJz"),r={extends:i.a,name:"NuLoadingc",components:{NuTag:o.default}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_loadingc",on:{click:t._onClick,tap:t._onTap}},[n("div",{staticClass:"nu_loading-icon",style:{width:t.mySize}},[n("div",{staticClass:"nu_loading"},[n("div",{staticClass:"nu_loading-cont"},[t._t("default",[n("svg",{attrs:{viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"}},[n("defs",[n("line",{attrs:{id:t.fillId,x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentcolor","stroke-width":"8%","stroke-linecap":"round"}})]),t._v(" "),n("g",t._l(12,function(e,i){return n("use",{key:i,attrs:{"xlink:href":"#"+t.fillId,opacity:Math.min(.27+(i<4?0:.13*(i-4)),1),transform:"rotate("+30*i+" 60,60)"}})}))])])],2)])]),t._v(" "),t.nameText?n("nu-tag",{staticClass:"nu_loading-text",attrs:{nameText:t.nameText}}):t._e()],1)},staticRenderFns:[]};var s=n("VU/8")(r,a,!1,function(t){n("vcB0")},null,null).exports,u=n("4qRk");e.default=Object(u.a)(s)},JkN3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekq3"),o=n("EGiU"),r={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_col1"},[e("ul",{staticClass:"nu_col-list"},[this._t("default")],2)])},staticRenderFns:[]};var a=n("VU/8")({},r,!1,function(t){n("7s3g")},null,null).exports,s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_col2"},[e("ul",{staticClass:"nu_col-list"},[this._t("default")],2)])},staticRenderFns:[]};var u=n("VU/8")({},s,!1,function(t){n("KfqP")},null,null).exports,c={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_col3"},[e("ul",{staticClass:"nu_col-list"},[this._t("default")],2)])},staticRenderFns:[]};var l=n("VU/8")({},c,!1,function(t){n("yAyc")},null,null).exports,f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_col4"},[e("ul",{staticClass:"nu_col-list"},[this._t("default")],2)])},staticRenderFns:[]};var d=n("VU/8")({},f,!1,function(t){n("oAMU")},null,null).exports,p={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_cols"},[e("ul",{staticClass:"nu_col-list"},[this._t("default")],2)])},staticRenderFns:[]},v=n("VU/8")({},p,!1,null,null,null).exports,m={name:"NuColview",extends:o.a,props:{col:{type:[Number,String],default:1},list:{type:Array},filterItem:{type:Function},gap:{type:[Number,String]}},components:{NuCol1:a,NuCol2:u,NuCol3:l,NuCol4:d,NuCols:v},computed:{itemStyle:function(){var t=void 0;(!this.col||this.col>4)&&(t={width:100/(1*this.col||1)+"%"});return t},myGap:function(){var t=this.gap||"";switch(t+""){case"":case"0":case"5":case"10":case"15":case"20":break;default:return console.warn("gap只支持20、15、10、5、0、空"),""}return t&&"nu_gap"+t},comName:function(){var t="cols";switch(this.col+""){case"1":t="nu-col1";break;case"2":t="nu-col2";break;case"3":t="nu-col3";break;case"4":t="nu-col4";break;default:t="nu-cols"}return t}},methods:{_click:function(t,e,n){this._onClick(t),this._onClickItem({Event:t,data:e,index:n})},_tap:function(t,e,n){this._onTap(t),this._onClickItem({Event:t,data:e,index:n})},_onClickItem:function(t){this.$emit("clickItem",t)},_filterItem:function(t,e,n){return Object(i.a)(this.filterItem||t,[t,e,n])}}},h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_colview"},[n(t.comName,{tag:"div",staticClass:"nu_colview-wrap",class:[t.myGap],attrs:{col:t.col}},[t.list&&t.list.length?t._l(t.list,function(e,i){return n("li",{key:i,staticClass:"nu_list-item",style:t.itemStyle,on:{click:function(n){t._click(n,e,i)},tap:function(n){t._tap(n,e,i)}}},[t._t("default",null,{itemData:t._filterItem(e,i,t.col),index:i,data:e,col:t.col})],2)}):t._t("default")],2)])},staticRenderFns:[]};var _=n("VU/8")(m,h,!1,function(t){n("9je7")},null,null).exports,y=n("4qRk");e.default=Object(y.a)(_)},K1c4:function(t,e){},KfqP:function(t,e){},Lv3q:function(t,e,n){"use strict";n("B/FW");var i=n("VU/8")({methods:{_onClick:function(t){this.$emit("click",t)},_onTap:function(t){this.$emit("tap",t)},_onClickItem:function(t){this.$emit("clickItem",t)}}},null,!1,null,null,null);e.a=i.exports},"M30+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekq3");var o=n("37ml");e.default=Object(o.a)(function(t){return{model:{prop:"mValue",event:"valueChange"},props:{mValue:(t=t||{}).value||{}},data:function(){var e={myValue:Object(i.a)(t.myValueInit||this.mValue,[this.mValue],this)};return void 0===this.$options.propsData.mValue&&void 0!==e.myValue&&this._valueChange(),e},watch:{mValue:function(e,n){!1!==Object(i.a)(t.mValueChange,[e,n],this)&&(this.myValue=e)},myValue:function(e,n){!1!==Object(i.a)(t.myValueChange,[e,n],this)&&this._valueChange()}},methods:{_valueChange:function(t){void 0===t&&(t=this.myValue),this.$emit("valueChange",t)}}}})},MEnT:function(t,e,n){"use strict";e.a=function(t){if("undefined"==typeof HTMLElement||!(t instanceof HTMLElement))return window;var e=t;for(;e&&e!==document.body&&e!==document.documentElement;){if(e!==t){if(e._isScroll)return e;if(!e.parentNode)break;if(!1!==e._isScroll){if(/(scroll|auto)/.test(o(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var i=n("fk+x");function o(t){return Object(i.a)(t,"overflow")+Object(i.a)(t,"overflow-y")+Object(i.a)(t,"overflow-x")}},"Mq/+":function(t,e){},MzTb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ho/f"),o=n("Wxd7"),r={name:"NuCell",extends:i.a,components:{NuIcon:o.default},props:{itemData:{},isJustify:{type:Boolean,default:!0},isMore:{type:Boolean},icon:{default:""},iconClass:{}},computed:{isShowMore:function(){var t=this.$slot||{};return!!this.isMore&&(this.icon||t.hook_more)}},methods:{_clickMore:function(t){this.$emit("more",t)}}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_cell",class:[t.isShowMore&&"nu_cell-more",t.isJustify&&"nu_cell-justify"],on:{click:t._onClick,tap:t._onTap}},[t._t("default",null,{itemData:t.itemData}),t._v(" "),t.isShowMore?n("div",{staticClass:"nu_more-wrap",on:{click:t._clickMore}},[t._t("hook_more",[n("nu-icon",{staticClass:"nu_more-icon",attrs:{icon:t.icon,iconClass:t.iconClass}})])],2):t._e()],2)},staticRenderFns:[]};var s=n("VU/8")(r,a,!1,function(t){n("RQ+/")},null,null).exports,u=n("4qRk");e.default=Object(u.a)(s)},OQai:function(t,e){},RPOG:function(t,e){},"RQ+/":function(t,e){},SH7W:function(t,e,n){"use strict";var i=n("rRBi"),o=n("ZMJv"),r=n("o//q"),a=n("n4ML"),s=n("n7Vd"),u=n("tmTt"),c=n("IwUv"),l=n("4Q54"),f=n("sNdV"),d=n("Wxd7"),p=n("cTBm"),v={extends:l.a,components:{NuTextt:f.default,NuIcon:d.default},props:{consignees:{type:String},province:{type:String},city:{type:String},county:{type:String},address:{type:String},phone:{type:[String,Number]},isDefault:{type:Boolean},defaultBtn:{type:String,default:"设为默认"},editBtn:{type:String,default:"编辑"},deleteBtn:{type:String,default:"删除"}},computed:{myAddress:function(){return[this.province||"",this.city||"",this.county||"",this.address||""].join("")}},methods:{_setDefault:function(t){this.isDefault||this.$emit(p.a.SET_DEFAULT,t)},_onEdit:function(t){this.$emit(p.a.ADD_EDIT,t)},_onDelete:function(t){this.$emit(p.a.DELETE,t)}}},m={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_addressitem",on:{click:t._onClick,tap:t._onTap}},[n("div",{staticClass:"nu_btn-wrap"},[n("div",{staticClass:"nu_default-btn",on:{click:function(e){e.stopPropagation(),t._setDefault(e)}}},[n("nu-icon",{staticClass:"nu_default-icon",class:t.isDefault&&"nu_active-icon",attrs:{icon:t.isDefault?"":""}}),n("span",{staticClass:"nu_default-text"},[t._v("\n "+t._s(t.defaultBtn)+"\n ")])],1),t._v(" "),n("div",{staticClass:"nu_btn-right"},[t.editBtn?n("div",{staticClass:"nu_edit-btn",on:{click:function(e){e.stopPropagation(),t._onEdit(e)}}},[t._v("\n "+t._s(t.editBtn)+"\n ")]):t._e(),t._v(" "),t.deleteBtn?n("div",{staticClass:"nu_delete-btn",on:{click:function(e){e.stopPropagation(),t._onDelete(e)}}},[t._v("\n "+t._s(t.deleteBtn)+"\n ")]):t._e()])]),t._v(" "),n("div",{staticClass:"nu_address-content"},[n("div",{staticClass:"nu_base-info"},[t.consignees?n("nu-textt",{staticClass:"nu_name-text",attrs:{nameText:t.consignees,row:1}}):t._e(),t._v(" "),t.phone?n("div",{staticClass:"nu_phone-text"},[t._v("\n "+t._s(t.phone)+"\n ")]):t._e()],1),t._v(" "),t.myAddress?n("div",{staticClass:"nu_subNameText"},[t._v("\n "+t._s(t.myAddress)+"\n ")]):t._e()])])},staticRenderFns:[]};var h=n("VU/8")(v,m,!1,function(t){n("giXt")},null,null).exports,_=n("JkN3"),y=n("WIwv"),g=n("MzTb"),b={extends:l.a,components:{NuColview:_.default,AddressItem:h,NuCellgroup:y.default,NuCell:g.default},props:{list:{type:Array},gap:{type:[Number,String],default:0},filterItem:{type:Function}},methods:{_emitEvent:function(t,e,n,i,o){var r=void 0;switch(t=t||{},(e||"")+""){case"default":r=p.a.SET_DEFAULT;break;case"edit":r=p.a.ADD_EDIT;break;case"delete":r=p.a.DELETE}r&&(t=(t=t||{})instanceof Event?{Event:t,data:n,index:i,itemData:o}:Object.assign({},t,{data:n,index:i,itemData:o}),this.$emit(r,t))},_click:function(t,e,n,i){this._clickItem(t,e,n,i),this._onClick(t)},_tap:function(t,e,n,i){this._clickItem(t,e,n,i),this._onTap(t)},_clickItem:function(t,e,n,i){this._onClickItem({Event:t,data:e,index:n,itemData:i})}}},O={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.list&&t.list.length>0?n("div",{staticClass:"nus_addresslist"},[n("nu-cellgroup",{staticClass:"nu_address-group",attrs:{list:t.list,filterItem:t.filterItem},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.itemData,o=e.data,r=e.index;return[n("nu-cell",[i?n("address-item",t._b({staticClass:"nu_address-item",on:{setDefault:function(e){t._emitEvent(e,"default",o,r,i)},addEdit:function(e){t._emitEvent(e,"edit",o,r,i)},delete:function(e){t._emitEvent(e,"delete",o,r,i)},click:function(e){t._click(e,o,r,i)},tap:function(e){t._tap(e,o,r,i)},clickItem:function(e){t._clickItem(e,o,r,i)}}},"address-item",i,!1)):t._e()],1)]}}])})],1):t._e()},staticRenderFns:[]},E=n("VU/8")(b,O,!1,null,null,null).exports,C=n("hpoY"),w={extends:r.a,name:"NuMyaddress",components:{NuLayout:a.default,NuButton:s.default,NuButton100:u.default,NuLoadingc:c.default,AddressList:E},created:function(){this._getAddressList()},data:function(){return{addressList:null,loading:!0}},mounted:function(){this.$emit(p.a.OPEN_PAGE,C.d.ADDRESS_LIST)},methods:{_delete:function(t){var e=this;return t=t||{},new Promise(function(n,r){Object(o.a)(e.message,["您确定删除该地址吗?",{type:"confirm"}]).then(function(a){a&&"ok"===a.type?Object(o.a)(e.getAddressData,[C.a.DELETE_ADDRESS,Object(i.a)(t.data||{})]).then(function(){e._getAddressList().then(n,r)},r):n(!1)},r)})},_getAddressList:function(){var t=this,e=t._getAddressPromise||new Promise(function(e,n){Object(o.a)(t.getAddressData,[C.a.GET_ADDRESSES]).then(function(n){t.addressList=n||[],e(n)},n)});return t._getAddressPromise=e,e.then(function(){t.loading=!1,t._getAddressPromise=null},function(){t.loading=!1,t._getAddressPromise=null}),e},_addEdit:function(t){this.$emit(p.a.ADD_EDIT,t)},_selectItem:function(t){this.$emit(p.a.SELECT_ITEM,t)},_setDefault:function(t){var e=this,n=(t||{}).data;return new Promise(function(t,r){n&&!n.isDefault?Object(o.a)(e.getAddressData,[C.a.SET_DEFAULT,Object(i.a)(n||{})]).then(function(n){e._getAddressList(),t(n)},r):t()})},_clickItem:function(t){var e=this;e._setDefault(t).then(function(){e._selectItem((t||{}).data)}),e._onClickItem(t)}}},x={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_myaddress"},[n("nu-layout",{staticClass:"nu_address-layout",attrs:{layout:t.layout}},[n("div",{staticClass:"nu_address-wrap"},[t.loading?n("nu-loadingc",{staticClass:"nu_address-loading"}):n("address-list",{staticClass:"nu_address-list",attrs:{list:t.addressList,filterItem:t._filterItem},on:{setDefault:t._setDefault,addEdit:t._addEdit,delete:t._delete,click:t._onClick,tap:t._onTap,clickItem:t._clickItem}})],1),t._v(" "),n("nu-button100",{staticClass:"nu_address-btn",attrs:{slot:"hook_ft"},slot:"hook_ft"},[t.loading?t._e():n("nu-button",{staticClass:"nu_add-btn",on:{click:t._addEdit}},[n("span",{staticClass:"nu_add-icon nu_icon"},[t._v("")]),t._v("\n "+t._s(t.addBtnText)+"\n ")])],1)],1)],1)},staticRenderFns:[]};var S=n("VU/8")(w,x,!1,function(t){n("K1c4")},null,null);e.a=S.exports},SiwD:function(t,e){},SmQy:function(t,e){},"U+Qo":function(t,e){},VGJd:function(t,e,n){"use strict";var i=n("/Ot8");e.a=i.a},"VU/8":function(t,e){t.exports=function(t,e,n,i,o,r){var a,s=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(a=t,s=t.default);var c,l="function"==typeof s?s.options:s;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId=o),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=c):i&&(c=i),c){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,c):[c]}return{esModule:a,exports:s,options:l}}},WIwv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekq3"),o={name:"NuCellgroup",props:{list:{},filterItem:{type:Function}},methods:{_filterItem:function(t,e,n){return Object(i.a)(this.filterItem||t,[t,e,n])}}},r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_cellgroup"},[t.list&&t.list.length?[t._l(t.list,function(e,n){return[t._t("default",null,{itemData:t._filterItem(e,n),index:n,data:e})]})]:t._t("default")],2)},staticRenderFns:[]};var a=n("VU/8")(o,r,!1,function(t){n("obxd")},null,null).exports,s=n("4qRk");e.default=Object(s.a)(a)},Wxd7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={extends:n("ho/f").a,name:"NuIcon",props:{iconClass:{default:"nu_icon"},icon:{type:String}}},o={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_icon",class:t.iconClass,on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[t._t("default",[t._v("\n "+t._s(t.icon)+"\n ")]),t._v(" "),t._t("hook_ext")],2)},staticRenderFns:[]};var r=n("VU/8")(i,o,!1,function(t){n("6D8K")},null,null).exports,a=n("4qRk");e.default=Object(a.a)(r)},XAAj:function(t,e,n){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},XUgh:function(t,e,n){"use strict";var i=n("9B2K");e.a=i.a},Z05q:function(t,e,n){"use strict";e.a=function(t,e,n){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var r=Object(i.a)(e);r._constructed=!0,r=Object(o.a)(!1,r,n),t.dispatchEvent(r)}};var i=n("XAAj"),o=n("5fCB")},ZMJv:function(t,e,n){"use strict";var i=n("uGS0");e.a=i.a},aPLb:function(t,e,n){"use strict";var i=n("fnCA").a,o={extends:n("ho/f").a,props:{size:{type:[String,Number]},nameText:{type:String}},data:function(){return{}},computed:{mySize:function(){var t=this.size;return("number"==typeof t||/\d\s*$/.test(t+""))&&(t=100*t+"%"),t},fillId:function(){return"_line-"+i()+"_"}}},r=n("VU/8")(o,null,!1,null,null,null);e.a=r.exports},cTBm:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={SET_DEFAULT:"setDefault",ADD_EDIT:"addEdit",DELETE:"delete",CHANGE_DEFAULT:"changeDefault",SELECT_ITEM:"selectItem",OPEN_PAGE:"openPage",CONFIRM:"confirm",SAVE:"save"}},caJ4:function(t,e,n){"use strict";e.a=function(t,e,n){t.use(e,n)}},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(i.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=o.call(e,"constructor")&&e.constructor;return"function"==typeof n&&o.toString.call(n)===o.toString.call(Object)};var i=n("E5mE"),o=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var i=n("zagf");e.a=i.a},"fk+x":function(t,e,n){"use strict";e.a=function(t,e){return("undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e])||""}},fnCA:function(t,e,n){"use strict";e.a=function(){return o()};var i,o=(i=function(){for(var t=(new Date).getTime(),e=0;t===(new Date).getTime();)e++;return t.toString(16)+e.toString(16)},function(){var t=window.screen||{},e=t.height*t.width||0,n="";n=e&&/\d{5,}/.t