nimble-ui
Version:
1 lines • 95.1 kB
JavaScript
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},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="/fOu")}({"/CCK":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("FlVT"),i=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(o.a)(this.$el,Object(i.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)}}},p={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,o){return[e===t.pageFilter(t.myPageType)?n(e,{key:o,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 d=n("VU/8")(f,p,!1,function(t){n("SiwD")},null,null).exports,h=n("4qRk");e.default=Object(h.a)(d)},"/Ot8":function(t,e,n){"use strict";var o,i,r,a,s={trident:(o=navigator.userAgent).indexOf("Trident")>-1,presto:o.indexOf("Presto")>-1,webKit:o.indexOf("AppleWebKit")>-1,gecko:o.indexOf("Gecko")>-1&&-1===o.indexOf("KHTML"),mobile:!!o.match(/AppleWebKit.*Mobile.*/),ios:!!o.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:o.indexOf("Android")>-1||o.indexOf("Adr")>-1,iPhone:o.indexOf("iPhone")>-1,iPad:o.indexOf("iPad")>-1,symbian:o.indexOf("SymbianOS")>-1,windowPhone:o.indexOf("Windows Phone")>-1,iPod:o.indexOf("iPod")>-1,weixin:/MicroMessenger/i.test(o),browserVersion:(o.match(/version\/(.+?)\s/i)||[])[1],appVersion:"",kernel:/tencenttraveler|qqbrowse/i.test(o)?"x5":"",qqnews:/qqnews/i.test(o),isMiniProgram:"miniprogram"===window.__wxjs_environment||/miniProgram/i.test(o)},u=(i=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===i.height&&375===i.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},"/fOu":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ZMJv"),i=n("ekq3"),r=n("nHB9"),a=n("5AsE"),s=n("hpoY");var u,c,l=n("/CCK"),f=(u=l.default,(c=function(t,e){var n=Object(r.default)(t,e);e=e||{};var c=Object(a.default)(t,{routerOption:{queryKey:"addressPage"}});return n.$on(s.c.REDIRECT,function(t){var r=t.type,a=t.options,l={getAddressData:function(t,e,o){var i="";return new Promise(function(r,a){switch((t||"")+""){case s.a.GET_ADDRESSES:i="getAddresses";break;case s.a.SET_DEFAULT:i="setDefault";break;case s.a.DELETE_ADDRESS:i="deleteAddress";break;case s.a.GET_REGION_NAME:i="getRegionName";break;case s.a.ADD_OR_EDIT_ADDRESS:i="addOrEditAddress";break;case s.a.GET_FORM_CONFIG:i="getFormConfig"}if(i&&n[i]){var u=n[i](e,o);u&&u.then(r,a)}else a(new Error(t+"类型不支持"))})},filterItem:a.filterItem,pageType:r,isBack:a.isBack,message:n.message.bind(n)};Object(o.a)(e&&e.filterRedirect,[r,l,a]).then(function(t){switch(r){case s.d.ADDRESS_LIST:case s.d.ADDRESS_EDIT:Object(o.a)(t||u,null,!0).then(function(t){c.popupData(t&&t.default,Object.assign({wrapCla:"nu_address-popup",maskCloseFlag:0,isClickBgClose:!1,alignCla:"fullScreen",transitionCls:"toLeft",props:l}),e&&e.popup||{}).then(function(t){var e="cancel";"confirm"===(t=t||{}).type&&(e="checked"),e&&n&&Object(i.a)(n[e],[t.data],n)})})}})}),n}).install=function(t,e){var n=c(t,e);return t.use(n,e),n},c);f.install=function(t,e){var n=e&&e.Address||e,o=f(t,n);return[o,l.default].forEach(function(e){t.use(e,n)}),o};e.default=f},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(o.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var o=n("lXuC")},"37ml":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e,n){e.mixin(Object(o.a)(t,[n]))});return t};var o=n("ekq3")},"4Q54":function(t,e,n){"use strict";var o={extends:n("Lv3q").a},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",o=e.component(n);o||e.component(n,t)});return t}},"5AsE":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("M2W1"),i=n("gTYF"),r=n("rRBi"),a=function(t,e){return Object(o.default)(t,Object(r.a)({popupComponent:i.default},e))};a.install=function(t,e){[a(t,e),i.default].forEach(function(n){t.use(n,e)})},e.default=a},"5fCB":function(t,e,n){"use strict";var o=n("E5mE"),i=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(d(f)){var p=d(n[l])&&n[l]||(f instanceof Array?[]:{});n[l]=t(p,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 d(t){return t&&(Object(o.a)(t,"Array")||Object(i.a)(t))||!1}}},"6D8K":function(t,e){},"76is":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var o={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 o=n("ekq3"),i=n("ZMJv"),r=n("zagf"),a=n("IrUm");function s(t){return function(e,n){var o=n;Object.defineProperty(e,n,{set:function(e){var n=this.__vmb__=this.__vmb__||{},i=Object(r.a)(t&&t.set||e,[e],this),s=n[o];if(n[o]=void 0!==i?i:e,t&&t.change instanceof Function){var u=n[o];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[o],[e[o]],this);return void 0!==n&&(e[o]=n),e[o]}})}}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,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":c(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(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 o=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));o.options=n,o.parent=null,o.formGroup=null,o.config=null,o.defaultOption={asyncWaitInfo:{errInfo:{desc:"验证中,请验证无误后再次保存~",type:"asyncWaitErr"}},validFlowTime:20,asyncErrInfo:null,config:null},o.isValidStatus=1,o.isWaitStatus=0,o.isBlur=!1,o.isFocus=!1,o.isChange=!1,o.value=null,o.valid=null,o.isValid=!1,o.setDefaultOptions(n);var i=o;return i.config=n&&n.config||null,o.defaultOption&&void 0!==o.defaultOption.defaultValue?i.setValue(o.defaultOption.defaultValue):i.getValid(),o}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 o(i){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(i)if(i instanceof Array){a=i.length;for(var c=r;c<a;c++){var l=i[c];if(u=n(l),r+=1,u)break}}else u=n(i);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=o(i,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 p=n("E5mE"),d=n("eY/N");var h=function(t,e,n){if(!t)return!0;var o=t,i=Object(p.a)(o,"Array")&&o.length;if(i===+i){for(var a=0,s=i;a<s;a++)if(!1===Object(r.a)(e,[o[a],a,o],n))return!1}else if(Object(d.a)(o))for(var u in o)if(o.hasOwnProperty(u)&&!1===Object(r.a)(e,[o[u],u,o],n))return!1;return!0};var _=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 o=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 o.isSend=!1,o.isSave=!1,o.setDefaultOptions(n),o}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,v(t,function(t,o,i){if(o){var r=void 0;o instanceof e?(r=o.valid)||(r=o.valid):o.value instanceof e?(r=o.valid)||(r=o.value.valid):o instanceof f&&o.valid&&(r=o.valid),r&&((n=n||i>0&&[]||{})[t]=r)}}),n},e.prototype._getValue=function(t){return n=null,v(t,function(t,o,i){o&&(n=n||i>0&&[]||{},o instanceof e||o instanceof f?n[t]=o.value:o.value instanceof e?n[t]=o.value.value:n[t]=o.value)}),n;var n},e.prototype._setItem=function(t,n,o,i,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?o||o+""=="0"?(t.splice(parseInt(o+"",10)||0,0,n),s=!0):(t.push(n),s=!0):t instanceof Object?void 0!==o?(t[o]=n,s=!0):console.error("请传入key"):console.error("表单对象类型不正确")}else t?Object(r.a)(i,[{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 h(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 h(t=t||[],function(t){var o=t;o instanceof e||o instanceof f?o.resetValue(n):(o.value instanceof e||o.value instanceof f)&&o.value.resetValue(n)})},e}(u.a);function v(t,e){h(t,function(n,o){n&&(n instanceof f||n instanceof _)&&Object(r.a)(e,[o,n,t instanceof Array&&t.length||!1])})}var m="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,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(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 o=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 o.parent=null,o.formGroup=null,o.formArray=null,o.isSave=!1,o.isValid=!1,o.value=null,o.controls={},o.setDefaultOptions(null),o.setControls(n),o}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 o=t[n];(o instanceof f||o instanceof e)&&(o.formGroup=this,o.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 _?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 o in t)if(t.hasOwnProperty(o))if(n[o])n[o]instanceof f||n[o]instanceof _?n[o].setValue(t[o]):n[o].defaultValue=t[o];else{var i=t[o];Object(r.a)(e,[{},i]),i instanceof f||i instanceof _?n[o].setValue(i):n[o]=new f({defaultValue:i,config:{defaultValue:i}})}return n},e.prototype.resetValue=function(t){this._resetValue(this.controls,t)},e.prototype.setItem=function(t,e){var n=this,o=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 o&&n.getValid(),o&&n.getValue()||o},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 o=n.controls,i=t.controls;if(o instanceof Array&&!(i instanceof Array)||!(o instanceof Array)&&i instanceof Array)console.error("两个FormGroup的数据格式不一致不能合并");else if(o instanceof Array&&i instanceof Array)i.forEach(function(t){t instanceof e&&(t.formArray=n.formArray),t.formGroup=n,t.parent=n}),n.controls=o.concat(i);else if(o instanceof Object&&i instanceof Object)for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];a instanceof e&&(a.formArray=n.formArray),a.formGroup=n,a.parent=n,o[r]=a}}return this},e.prototype.clear=function(){this.controls instanceof Array?this.controls=[]:this.controls instanceof Object&&(this.controls={})},e}(_);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,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":b(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(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 o=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 o.parent=null,o.formGroup=null,o.isValid=!1,o.value=null,o.isSave=!1,o.groups=[],o.setDefaultOptions(null),o.groups=n,o}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,o){e&&void 0!==t[o]&&(n=n||[]).push(e.setValue(t[o]))}),n},e.prototype.resetValue=function(t){this._resetValue(this.groups,t)},e.prototype.setItem=function(t,e){var n=this,o=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 o&&n.getValid(),o&&n.getValue(),o},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 o=n.groups,i=t.groups;o instanceof Array&&i instanceof Array?(i.forEach(function(t){o.every(function(e){return e!==t})&&(t.formArray=n,t.parent=n,t.formGroup=null,o.push(t))}),n.groups=o):console.error("FormArray的数据格式不正确不能合并")}return this},e.prototype.clear=function(){this.groups instanceof Array&&(this.groups=[])},e}(_);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 w=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 o=this,i=t||[];return(e||[]).forEach(function(t,e){var r=o._setItem(i[e],t,o._getKeyItem(n,e));void 0!==r&&(i[e]=r)}),i},t.prototype._setItem=function(t,e,n){var o=this._getKey(e,n);return o&&((t=t||{})[o]=Object.assign({},e)),t},t.prototype._getList=function(t,e,n){var o=this,i=[],r=t;return r&&(e||[]).forEach(function(t,e){var a=o._getItem(r[e],t,o._getKeyItem(n,e));void 0!==a&&(i[e]=a)}),i},t.prototype._getItem=function(t,e,n){var o=this._getKey(e,n),i=t,r=void 0;return o&&i&&i[o]&&(r=i[o]),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="",o=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 o?n=o:o instanceof Array&&o.forEach(function(e){var o=t&&t[e];void 0!==o&&null!==o&&(n=n+o+"")}),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),o=void 0;return n?o=this._getList(this.__data,t,e):!1===n&&(o=this._getItem(this.__data,t,e)),o},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 C=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 o=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 o.validate=n,o.name="Form",o.setDefaultOptions(null),o}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 o=[];if(t instanceof Array&&t.length>0)for(var i=0;i<t.length;i++){var r=t[i];r instanceof Array&&r.length?o.push(this.initFormData(r)):r instanceof Object&&(r instanceof g||r instanceof f?o.push(r):o.push(this.initFormGroup(r)))}var a=new E(o);return a.setValue(e||[],n),a},e.prototype.initFormData=function(t,e,n){var o={};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)})}(o,t||[]),e)for(var i in e)e.hasOwnProperty(i)&&(o[i]?o[i].defaultValue=e[i]:o[i]={controlName:i,defaultValue:e[i]});return this.initFormGroup(o,e,n)},e.prototype.initFormGroup=function(t,e,n){var o=t,i={};if(o instanceof g)return o;for(var r in t instanceof Array&&(i=[]),o)if(o.hasOwnProperty(r)){var a=o[r],s=this.setGroupValid(a),u=a.defaultValue;n instanceof Function&&(u=n(a,u)),a instanceof f||a instanceof _?(a instanceof g&&s&&s.length&&a._setValidOption(s),i[r]=a):u instanceof f||u instanceof _?(u instanceof g&&s&&s.length&&u._setValidOption(s),i[r]=u):i[r]=this.initFormControl(a)}var c=new g(i);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 w},e.prototype.setGroupValid=function(t){var e=this,n=[];return S(t&&t.groupValid,function(o){if(o instanceof Function)n.push(o);else{var i=Object.assign({name:t.nameText||""},t.valid||{});n.push(e.validate.generateArrayValidetor(i))}}),n},e.prototype.setValid=function(t){var e=this,n=[];return S(t&&t.valid,function(o){if(o instanceof Function)n.push(o);else{var i=Object.assign({name:t.nameText||""},o||{});n.push(e.validate.generateValidetor(i))}}),n},e.prototype.validControls=function(t,e){var n=!1;if(t)for(var o in n=!0,t)if(t.hasOwnProperty(o)){var i=t[o],r=i&&i.errInfo;if(r)return r&&r.desc&&e&&e(r.desc),!0;if(i instanceof Array&&this.validControls(i,e))return!0;if(i&&i.controls&&this.validControls(i.controls,e))return!0;if(i instanceof Object&&this.validControls(i,e))return!0}return n&&console.error("未定义错误!"),n},e}(u.a);function S(t,e){t&&(t instanceof Array?t.forEach(function(t){Object(o.a)(e,[t])}):Object(o.a)(e,[t]))}function P(t,e){var n=!1;return t&&t.reg&&e&&(t.reg.lastIndex=0,t.reg.test(e+"")||(n=t.infoTxt||"格式错误")),n}var j=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 o=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 o.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:"格式不正确"}}},o.setDefaultOptions(n),o}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,o=this.getOptions(e||{}),i=o&&o.rules;return t?(n=i&&i[t])||console.error(t+":规则不存在"):n=i,n},e.prototype.generateValidetor=function(t){var e=this;return t=e.getOptions(t),function(n,o){var i="";void 0===o&&(o="value");var r=(n[o]||"")+"";n instanceof f&&(n.validate=e),void 0!==n[o]&&null!==n[o]&&(r=n[o]+"");var a=!1;return!!(r||t.required||t.isChecked)&&(i=(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[o]))?"emptyErr":"",!a&&t.format&&((a=e._validFormat(t.format,r,t))&&(a=t.formatErr||(t.name||"")+a),i=a?"formatErr":""),a||(i=(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||(i=(a=function(t,e){var n=!1,o=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,i=Math.abs(parseInt(t.minSize+"",10)),r=Math.abs(parseInt(t.maxSize+"",10));return!n&&i>=0&&o<i&&(n=t.minSizeErr||(t.name||"")+"最少不能少于"+i+"字节"),!n&&r>=0&&o>r&&(n=t.maxSizeErr||(t.name||"")+"最多不能超过"+r+"字节"),n}(t,r))?"SizeErr":""),!!a&&{errInfo:{desc:a+"",type:i}})}},e.prototype.generateArrayValidetor=function(t){return t=this.getOptions(t),function(e){var n="",o=e&&e.getValue(),i=!1,r=0;return o&&o.length>0&&(o.forEach(function(e){t.minRequiredName&&void 0!==e[t.minRequiredName+""]&&""!==(e[t.minRequiredName+""]+"").replace(/^\s+|\s+$/gi,"")&&++r}),!i&&o&&-1===t.minRequiredAmount&&r>=o.length&&(n=(i=t.minRequiredAmountErr||(t.name||"")+"必须全部输入")?"requiredAllErr":""),!i&&r<(t.minRequiredAmount||0)&&(n=(i=t.minRequiredAmountErr||(t.name||"")+"最少需要输入"+t.minRequiredAmount+"项")?"minRequiredErr":"")),!!i&&{errInfo:{desc:i+"",type:n}}}},e.prototype._validFormat=function(t,e,n){var o=!1,i=void 0;if(!t||!e)return o;if("string"==typeof t)(i=this.getRegExp(t,n))&&(o=P(i,e));else if(t instanceof Array)for(var r=0;r<t.length;r++){var a=t[r];if((i=this.getRegExp(a,n))&&!o&&(o=P(i,e)))break}return o},e}(u.a);function k(t){return n=t&&t.validate||{},e=new j(n),C.instance(e);var e,n}var D=n("o//q"),T=n("n4ML"),x=n("n7Vd"),A=n("tmTt"),I=n("Fszl"),V=n("Wxd7"),N=n("WIwv"),R=n("MzTb"),F=n("hpoY"),L=n("cTBm"),$={extends:D.a,name:"NuAddressedit",components:{NuLayout:T.default,NuButton100:A.default,NuButton:x.default,NuIcon:V.default,NuCellgroup:N.default,NuCell:R.default,NuInput:I.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(i.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||k();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(i.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 o=e[n];return void Object(i.a)(t.message,[o.errInfo.desc,{type:"toast"}])}},!n||(n instanceof Array?n.every(function(t){Object(o.a)(r,[t])}):Object(o.a)(r,[n]),0)){var n,r,a=e.value;Object(i.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()}}}},M={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,o){return n("nu-cell",{key:o,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 B=n("VU/8")($,M,!1,function(t){n("hvAN")},null,null);e.a=B.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(o.a)(t);c=c.replace(/(start$|end$|animation|frame$)/gi,function(t,e){return Object(o.a)(e)});for(var l=0;l<r.length;l++){var f=r[l],p=f+c,d=f+t;if(u+p in s)return r=[f],a[t]=p,p;if(u+d in s)return r=[f],a[t]=d,d}var h=Object(i.a)("transition-property",!0);h&&u+h+c in s&&(t=h+c);return e?t:""};var o=n("0Zk/"),i=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 o={extends:n("ho/f").a,name:"NuTag",props:{nameText:{type:[String,Number],default:"标签"},styleName:{type:String,default:""}}},i={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")(o,i,!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 o={extends:n("Lv3q").a},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},FMyl:function(t,e,n){"use strict";var o={extends:n("ho/f").a,props:{nameText:{default:""}}},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var i="$s"+(n=Object(o.a)(e.name));t.prototype&&!t.prototype[i]&&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,i)}else console.error("Mount is not defined for the image name");return n};var o=n("0Zk/")},FlVT:function(t,e,n){"use strict";var o=n("Z05q");e.a=o.a},Fszl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("sktA"),i=n("4qRk");e.default=Object(i.a)(o.a)},HDd3:function(t,e,n){"use strict";var o={extends:n("Lv3q").a},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},"HNS/":function(t,e){},Hxsb:function(t,e,n){"use strict";e.a=function(t,e){var n;e=e||{};var r={};r[t=(t||"")+""]=e.value||{};var a="my"+Object(i.a)(t);return{props:r,data:function(){var n={};return n[a]=Object(o.a)(e.myValueInit||this[t],[this[t]],this),n},watch:(n={},n[t]=function(t,n){var i=Object(o.a)(e.mValueChange,[t,n],this);!1!==i&&(this[a]=t)},n[a]=function(n,i){var r=Object(o.a)(e.myValueChange,[n,i],this);!1!==r&&this.$emit("update:"+t,n)},n)}};var o=n("ekq3"),i=n("WGR+")},IrUm:function(t,e,n){"use strict";e.a=function t(e,n,o){var i=!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 i;if(!r||!a)return e===n&&(i=!0),i;if(function(t,e){var n=!1;try{n=JSON.stringify(t)===JSON.stringify(e)}catch(t){n=!1}return n}(e,n))i=!0;else if(o&&o.length)i=c(o,e,n);else{var s=Object.keys(e),u=Object.keys(n);s.length===u.length&&(i=c(s,e,n))}return i;function c(e,n,o){for(var i=!0,r=0;r<e.length;r++){var a=e[r];if("__ob__"!==a&&!(i=t(n[a],o[a])))break}return i}}},IwUv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("aPLb"),i=n("BOJz"),r={extends:o.a,name:"NuLoadingc",components:{NuTag:i.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,o){return n("use",{key:o,attrs:{"xlink:href":"#"+t.fillId,opacity:Math.min(.27+(o<4?0:.13*(o-4)),1),transform:"rotate("+30*o+" 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 o=n("ekq3"),i=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 p=n("VU/8")({},f,!1,function(t){n("oAMU")},null,null).exports,d={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:[]},h=n("VU/8")({},d,!1,null,null,null).exports,_={name:"NuColview",extends:i.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:p,NuCols:h},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(o.a)(this.filterItem||t,[t,e,n])}}},v={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,o){return n("li",{key:o,staticClass:"nu_list-item",style:t.itemStyle,on:{click:function(n){t._click(n,e,o)},tap:function(n){t._tap(n,e,o)}}},[t._t("default",null,{itemData:t._filterItem(e,o,t.col),index:o,data:e,col:t.col})],2)}):t._t("default")],2)])},staticRenderFns:[]};var m=n("VU/8")(_,v,!1,function(t){n("9je7")},null,null).exports,y=n("4qRk");e.default=Object(y.a)(m)},K1c4:function(t,e){},KfqP:function(t,e){},Lv3q:function(t,e,n){"use strict";n("B/FW");var o=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=o.exports},M2W1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("wSSq");var i=function(t){function e(n,o){!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,o));return i.name="Popup",i._setSPopup(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.install=function(e,n){var o=this;t.prototype.install.call(this,e,n);t.prototype._getParent=function(){if(this!==o)return this._getParent!==o.getParent&&o._getParent()}},e}(o.a);function r(t,e){return new i(t,e)}n.d(e,"PopupBase",function(){return o.a}),r.install=function(t,e){t.use(r(t,e),e)};e.default=r},"M30+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ekq3");var i=n("37ml");e.default=Object(i.a)(function(t){return{model:{prop:"mValue",event:"valueChange"},props:{mValue:(t=t||{}).value||{}},data:function(){var e={myValue:Object(o.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(o.a)(t.mValueChange,[e,n],this)&&(this.myValue=e)},myValue:function(e,n){!1!==Object(o.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(i(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var o=n("fk+x");function i(t){return Object(o.a)(t,"overflow")+Object(o.a)(t,"overflow-y")+Object(o.a)(t,"overflow-x")}},"Mq/+":function(t,e){},MzTb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ho/f"),i=n("Wxd7"),r={name:"NuCell",extends:o.a,components:{NuIcon:i.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)},Nt7u:function(t,e,n){"use strict";var o=n("XAAj");e.a=o.a},OQai:function(t,e){},Q4rh:function(t,e){},RPOG:function(t,e){},"RQ+/":function(t,e){},SH7W:function(t,e,n){"use strict";var o=n("rRBi"),i=n("ZMJv"),r=n("o//q"),a=n("n4ML"),s=n("n7Vd"),u=n("tmTt"),c=n("IwUv"),l=n("4Q54"),f=n("sNdV"),p=n("Wxd7"),d=n("cTBm"),h={extends:l.a,components:{NuTextt:f.default,NuIcon:p.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(d.a.SET_DEFAULT,t)},_onEdit:function(t){this.$emit(d.a.ADD_EDIT,t)},_onDelete:function(t){this.$emit(d.a.DELETE,t)}}},_={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 v=n("VU/8")(h,_,!1,function(t){n("giXt")},null,null).exports,m=n("JkN3"),y=n("WIwv"),g=n("MzTb"),b={extends:l.a,components:{NuColview:m.default,AddressItem:v,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,o,i){var r=void 0;switch(t=t||{},(e||"")+""){case"default":r=d.a.SET_DEFAULT;break;case"edit":r=d.a.ADD_EDIT;break;case"delete":r=d.a.DELETE}r&&(t=(t=t||{})instanceof Event?{Event:t,data:n,index:o,itemData:i}:Object.assign({},t,{data:n,index:o,itemData:i}),this.$emit(r,t))},_click:function(t,e,n,o){this._clickItem(t,e,n,o),this._onClick(t)},_tap:function(t,e,n,o){this._clickItem(t,e,n,o),this._onTap(t)},_clickItem:function(t,e,n,o){this._onClickItem({Event:t,data:e,index:n,itemData:o})}}},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 o=e.itemData,i=e.data,r=e.index;return[n("nu-cell",[o?n("address-item",t._b({staticClass:"nu_address-item",on:{setDefault:function(e){t._emitEvent(e,"default",i,r,o)},addEdit:function(e){t._emitEvent(e,"edit",i,r,o)},delete:function(e){t._emitEvent(e,"delete",i,r,o)},click:function(e){t._click(e,i,r,o)},tap:function(e){t._tap(e,i,r,o)},clickItem:function(e){t._clickItem(e,i,r,o)}}},"address-item",o,!1)):t._e()],1)]}}])})],1):t._e()},staticRenderFns:[]},E=n("VU/8")(b,O,!1,null,null,null).exports,w=n("hpoY"),C={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(d.a.OPEN_PAGE,w.d.ADDRESS_LIST)},methods:{_delete:function(t){var e=this;return t=t||{},new Promise(function(n,r){Object(i.a)(e.message,["您确定删除该地址吗?",{type:"confirm"}]).then(function(a){a&&"ok"===a.type?Object(i.a)(e.getAddressData,[w.a.DELETE_ADDRESS,Object(o.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(i.a)(t.getAddressData,[w.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(d.a.ADD_EDIT,t)},_selectItem:function(t){this.$emit(d.a.SELECT_ITEM,t)},_setDefault:function(t){var e=this,n=(t||{}).data;return new Promise(function(t,r){n&&!n.isDefault?Object(i.a)(e.getAddressData,[w.a.SET_DEFAULT,Object(o.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)}}},S={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 P=n("VU/8")(C,S,!1,function(t){n("K1c4")},null,null);e.a=P.exports},SiwD:function(t,e){},SmQy:function(t,e){},"U+Qo":function(t,e){},VGJd:function(t,e,n){"use strict";var o=n("/Ot8");e.a=o.a},"VU/8":function(t,e){t.exports=function(t,e,n,o,i,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),i&&(l._scopeId=i),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.par