nimble-ui
Version:
1 lines • 50.5 kB
JavaScript
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.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="zN/9")}({"/Ot8":function(t,e,n){"use strict";var o,r,i,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=(r=window.screen||{},a={mobile:!1,pc:!1,ios:(i=s).ios||i.iPhone||i.iPad||!1,weixin:i.weixin||!1,isWeixin:i.weixin||!1,iPad:i.iPad||!1,isApp:!1,appVersion:i.appVersion,browserVersion:i.browserVersion,isLightApp:!1,kernel:i.kernel,isIphoneX:i.iPhone&&812===r.height&&375===r.width,android:i.android,isQqnews:i.qqnews,isMiniProgram:i.isMiniProgram},i.mobile||i.ios||i.android||i.iPhone||i.iPad||i.symbian||i.windowPhone||i.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(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},r=n("VU/8")(o,null,!1,null,null,null);e.a=r.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}},"5fCB":function(t,e,n){"use strict";var o=n("E5mE"),r=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,i=arguments.length,a=Array(i),s=0;s<i;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(r.a)(t))||!1}}},"6D8K":function(t,e){},"7UL8":function(t,e,n){"use strict";var o=n("ekq3"),r=n("ZMJv"),i=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__||{},r=Object(i.a)(t&&t.set||e,[e],this),s=n[o];if(n[o]=void 0!==r?r:e,t&&t.change instanceof Function){var u=n[o];Object(a.a)(u,s)||Object(i.a)(t.change,[u,s],this)}},get:function(){var e=this.__vmb__||{},n=Object(i.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 r,i=arguments.length,a=i<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--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>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 r=o;return r.config=n&&n.config||null,o.defaultOption&&void 0!==o.defaultOption.defaultValue?r.setValue(o.defaultOption.defaultValue):r.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(r){var i=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(r)if(r instanceof Array){a=r.length;for(var c=i;c<a;c++){var l=r[c];if(u=n(l),i+=1,u)break}}else u=n(r);u instanceof Promise?(t.isWaitStatus=1,s=e.asyncWaitInfo||null,u.then(function(e){e||i>=a?(t.valid=e||null,t.isWaitStatus=0,t.getValid()):s=o(r,i,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(i.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,r=Object(p.a)(o,"Array")&&o.length;if(r===+r){for(var a=0,s=r;a<s;a++)if(!1===Object(i.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(i.a)(e,[o[u],u,o],n))return!1;return!0};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 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(i.a)(e,[t])||null)}):n=Object(i.a)(e,[t])||null),n||null},e.prototype._getValid=function(t){var n;return n=void 0,m(t,function(t,o,r){if(o){var i=void 0;o instanceof e?(i=o.valid)||(i=o.valid):o.value instanceof e?(i=o.valid)||(i=o.value.valid):o instanceof f&&o.valid&&(i=o.valid),i&&((n=n||r>0&&[]||{})[t]=i)}}),n},e.prototype._getValue=function(t){return n=null,m(t,function(t,o,r){o&&(n=n||r>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,r,a){var s=!1;if(t&&(n instanceof e||n instanceof f)){var u=Object(i.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(i.a)(r,[{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 m(t,e){h(t,function(n,o){n&&(n instanceof f||n instanceof v)&&Object(i.a)(e,[o,n,t instanceof Array&&t.length||!1])})}var y="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 _=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":y(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>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 v?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 v?n[o].setValue(t[o]):n[o].defaultValue=t[o];else{var r=t[o];Object(i.a)(e,[{},r]),r instanceof f||r instanceof v?n[o].setValue(r):n[o]=new f({defaultValue:r,config:{defaultValue:r}})}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,r=t.controls;if(o instanceof Array&&!(r instanceof Array)||!(o instanceof Array)&&r instanceof Array)console.error("两个FormGroup的数据格式不一致不能合并");else if(o instanceof Array&&r instanceof Array)r.forEach(function(t){t instanceof e&&(t.formArray=n.formArray),t.formGroup=n,t.parent=n}),n.controls=o.concat(r);else if(o instanceof Object&&r instanceof Object)for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a instanceof e&&(a.formArray=n.formArray),a.formGroup=n,a.parent=n,o[i]=a}}return this},e.prototype.clear=function(){this.controls instanceof Array?this.controls=[]:this.controls instanceof Object&&(this.controls={})},e}(v);_([s({set:function(t){this.setGroupsIsSave(this.controls,t)}})],g.prototype,"isSave",void 0),_([s({set:function(t){this.isValid=!!t},get:function(t){return this.getValid()}})],g.prototype,"valid",void 0),_([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 r,i=arguments.length,a=i<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--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>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,r=t.groups;o instanceof Array&&r instanceof Array?(r.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}(v);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 V=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,r=t||[];return(e||[]).forEach(function(t,e){var i=o._setItem(r[e],t,o._getKeyItem(n,e));void 0!==i&&(r[e]=i)}),r},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,r=[],i=t;return i&&(e||[]).forEach(function(t,e){var a=o._getItem(i[e],t,o._getKeyItem(n,e));void 0!==a&&(r[e]=a)}),r},t.prototype._getItem=function(t,e,n){var o=this._getKey(e,n),r=t,i=void 0;return o&&r&&r[o]&&(i=r[o]),i},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 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 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 r=0;r<t.length;r++){var i=t[r];i instanceof Array&&i.length?o.push(this.initFormData(i)):i instanceof Object&&(i instanceof g||i instanceof f?o.push(i):o.push(this.initFormGroup(i)))}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 r in e)e.hasOwnProperty(r)&&(o[r]?o[r].defaultValue=e[r]:o[r]={controlName:r,defaultValue:e[r]});return this.initFormGroup(o,e,n)},e.prototype.initFormGroup=function(t,e,n){var o=t,r={};if(o instanceof g)return o;for(var i in t instanceof Array&&(r=[]),o)if(o.hasOwnProperty(i)){var a=o[i],s=this.setGroupValid(a),u=a.defaultValue;n instanceof Function&&(u=n(a,u)),a instanceof f||a instanceof v?(a instanceof g&&s&&s.length&&a._setValidOption(s),r[i]=a):u instanceof f||u instanceof v?(u instanceof g&&s&&s.length&&u._setValidOption(s),r[i]=u):r[i]=this.initFormControl(a)}var c=new g(r);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 V},e.prototype.setGroupValid=function(t){var e=this,n=[];return j(t&&t.groupValid,function(o){if(o instanceof Function)n.push(o);else{var r=Object.assign({name:t.nameText||""},t.valid||{});n.push(e.validate.generateArrayValidetor(r))}}),n},e.prototype.setValid=function(t){var e=this,n=[];return j(t&&t.valid,function(o){if(o instanceof Function)n.push(o);else{var r=Object.assign({name:t.nameText||""},o||{});n.push(e.validate.generateValidetor(r))}}),n},e.prototype.validControls=function(t,e){var n=!1;if(t)for(var o in n=!0,t)if(t.hasOwnProperty(o)){var r=t[o],i=r&&r.errInfo;if(i)return i&&i.desc&&e&&e(i.desc),!0;if(r instanceof Array&&this.validControls(r,e))return!0;if(r&&r.controls&&this.validControls(r.controls,e))return!0;if(r instanceof Object&&this.validControls(r,e))return!0}return n&&console.error("未定义错误!"),n},e}(u.a);function j(t,e){t&&(t instanceof Array?t.forEach(function(t){Object(o.a)(e,[t])}):Object(o.a)(e,[t]))}function C(t,e){var n=!1;return t&&t.reg&&e&&(t.reg.lastIndex=0,t.reg.test(e+"")||(n=t.infoTxt||"格式错误")),n}var x=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||{}),r=o&&o.rules;return t?(n=r&&r[t])||console.error(t+":规则不存在"):n=r,n},e.prototype.generateValidetor=function(t){var e=this;return t=e.getOptions(t),function(n,o){var r="";void 0===o&&(o="value");var i=(n[o]||"")+"";n instanceof f&&(n.validate=e),void 0!==n[o]&&null!==n[o]&&(i=n[o]+"");var a=!1;return!!(i||t.required||t.isChecked)&&(r=(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,i||n[o]))?"emptyErr":"",!a&&t.format&&((a=e._validFormat(t.format,i,t))&&(a=t.formatErr||(t.name||"")+a),r=a?"formatErr":""),a||(r=(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,i))?"lengthErr":""),a||(r=(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,r=Math.abs(parseInt(t.minSize+"",10)),i=Math.abs(parseInt(t.maxSize+"",10));return!n&&r>=0&&o<r&&(n=t.minSizeErr||(t.name||"")+"最少不能少于"+r+"字节"),!n&&i>=0&&o>i&&(n=t.maxSizeErr||(t.name||"")+"最多不能超过"+i+"字节"),n}(t,i))?"SizeErr":""),!!a&&{errInfo:{desc:a+"",type:r}})}},e.prototype.generateArrayValidetor=function(t){return t=this.getOptions(t),function(e){var n="",o=e&&e.getValue(),r=!1,i=0;return o&&o.length>0&&(o.forEach(function(e){t.minRequiredName&&void 0!==e[t.minRequiredName+""]&&""!==(e[t.minRequiredName+""]+"").replace(/^\s+|\s+$/gi,"")&&++i}),!r&&o&&-1===t.minRequiredAmount&&i>=o.length&&(n=(r=t.minRequiredAmountErr||(t.name||"")+"必须全部输入")?"requiredAllErr":""),!r&&i<(t.minRequiredAmount||0)&&(n=(r=t.minRequiredAmountErr||(t.name||"")+"最少需要输入"+t.minRequiredAmount+"项")?"minRequiredErr":"")),!!r&&{errInfo:{desc:r+"",type:n}}}},e.prototype._validFormat=function(t,e,n){var o=!1,r=void 0;if(!t||!e)return o;if("string"==typeof t)(r=this.getRegExp(t,n))&&(o=C(r,e));else if(t instanceof Array)for(var i=0;i<t.length;i++){var a=t[i];if((r=this.getRegExp(a,n))&&!o&&(o=C(r,e)))break}return o},e}(u.a);function A(t){return n=t&&t.validate||{},e=new x(n),w.instance(e);var e,n}var S=n("o//q"),T=n("n4ML"),N=n("n7Vd"),k=n("tmTt"),I=n("Fszl"),P=n("Wxd7"),R=n("WIwv"),D=n("MzTb"),F=n("hpoY"),M=n("cTBm"),L={extends:S.a,name:"NuAddressedit",components:{NuLayout:T.default,NuButton100:k.default,NuButton:N.default,NuIcon:P.default,NuCellgroup:R.default,NuCell:D.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(r.a)(this.getAddressData,[F.a.GET_FORM_CONFIG,this.addressData]).then(function(n){t.formList=n,e.$emit(M.a.OPEN_PAGE,F.d.ADDRESS_EDIT),e._initFormModel()})},_initFormModel:function(){var t=this.form=this.form||A();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(r.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,i=function(e){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];return void Object(r.a)(t.message,[o.errInfo.desc,{type:"toast"}])}},!n||(n instanceof Array?n.every(function(t){Object(o.a)(i,[t])}):Object(o.a)(i,[n]),0)){var n,i,a=e.value;Object(r.a)(t.getAddressData,[F.a.ADD_OR_EDIT_ADDRESS,a]).then(function(){t.$emit(M.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,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 q=n("VU/8")(L,$,!1,function(t){n("hvAN")},null,null);e.a=q.exports},ApHY:function(t,e){},"B/FW":function(t,e){},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},r=n("VU/8")(o,null,!1,null,null,null);e.a=r.exports},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var r="$s"+(n=Object(o.a)(e.name));t.prototype&&!t.prototype[r]&&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,r)}else console.error("Mount is not defined for the image name");return n};var o=n("0Zk/")},Fszl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("sktA"),r=n("4qRk");e.default=Object(r.a)(o.a)},IrUm:function(t,e,n){"use strict";e.a=function t(e,n,o){var r=!1;var i=e instanceof Object;var a=n instanceof Object;if(e===n)return!0;i&&i===a&&(i=Object.prototype.toString.call(e),a=Object.prototype.toString.call(n));if(!e&&n||e&&!n||i&&!a||!i&&a)return r;if(!i||!a)return e===n&&(r=!0),r;if(function(t,e){var n=!1;try{n=JSON.stringify(t)===JSON.stringify(e)}catch(t){n=!1}return n}(e,n))r=!0;else if(o&&o.length)r=c(o,e,n);else{var s=Object.keys(e),u=Object.keys(n);s.length===u.length&&(r=c(s,e,n))}return r;function c(e,n,o){for(var r=!0,i=0;i<e.length;i++){var a=e[i];if("__ob__"!==a&&!(r=t(n[a],o[a])))break}return r}}},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},"M30+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ekq3");var r=n("37ml");e.default=Object(r.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(r(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var o=n("fk+x");function r(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"),r=n("Wxd7"),i={name:"NuCell",extends:o.a,components:{NuIcon:r.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")(i,a,!1,function(t){n("RQ+/")},null,null).exports,u=n("4qRk");e.default=Object(u.a)(s)},RPOG:function(t,e){},"RQ+/":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,r,i){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),r&&(l._scopeId=r),i?(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=o),c){var f=l.functional,p=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,c):[c]}return{esModule:a,exports:s,options:l}}},WIwv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ekq3"),r={name:"NuCellgroup",props:{list:{},filterItem:{type:Function}},methods:{_filterItem:function(t,e,n){return Object(o.a)(this.filterItem||t,[t,e,n])}}},i={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")(r,i,!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 o={extends:n("ho/f").a,name:"NuIcon",props:{iconClass:{default:"nu_icon"},icon:{type:String}}},r={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 i=n("VU/8")(o,r,!1,function(t){n("6D8K")},null,null).exports,a=n("4qRk");e.default=Object(a.a)(i)},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}},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 i=Object(o.a)(e);i._constructed=!0,i=Object(r.a)(!1,i,n),t.dispatchEvent(i)}};var o=n("XAAj"),r=n("5fCB")},ZMJv:function(t,e,n){"use strict";var o=n("uGS0");e.a=o.a},cTBm:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var o={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(o.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=r.call(e,"constructor")&&e.constructor;return"function"==typeof n&&r.toString.call(n)===r.toString.call(Object)};var o=n("E5mE"),r=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var o=n("zagf");e.a=o.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])||""}},"ho/f":function(t,e,n){"use strict";var o={extends:n("Lv3q").a},r=n("VU/8")(o,null,!1,null,null,null);e.a=r.exports},hpoY:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"c",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"d",function(){return a});var o={force:!0,isReset:!1,getAddressData:null,getUserInfo:null,message:null},r={REDIRECT:"redirect",CHECKED_ADDRESS:"checkedAddress",CANCEL_ADDRESS:"cancelAddress",SUCCESS:"success"},i={GET_FORM_CONFIG:"getFormConfig",GET_ADDRESSES:"getAddresses",SET_DEFAULT:"setDefault",DELETE_ADDRESS:"deleteAddress",GET_REGION_NAME:"getRegionName",ADD_OR_EDIT_ADDRESS:"addOrEditAddress"},a={ADDRESS_LIST:"myaddress",ADDRESS_EDIT:"addressEdit"}},hvAN:function(t,e){},k2Ua:function(t,e,n){"use strict";var o={extends:n("Lv3q").a,props:{disabled:{type:Boolean,default:!1},value:{default:""}},data:function(){return{}},watch:{},methods:{_onChange:function(t){this.$emit("change",t)}}},r=n("VU/8")(o,null,!1,null,null,null);e.a=r.exports},k3pg:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ekq3");function r(t,e){!t||t&&t===document.activeElement||(e?(t.setAttribute("autofocus","autofocus"),Object(o.a)(t.focus,[],t)):(t.removeAttribute("autofocus"),Object(o.a)(t.blur,[],t)))}var i=n("p84V");e.default=Object(i.a)(function(){return{inserted:function(t,e){(e&&e.value||{}).autofocus&&r(t,!0)},update:function(t,e){var n=(e=e||{}).value||{},o=e.oldValue||{};n.autofocus!==o.autofocus&&r(t,n.autofocus)}}},"focus")},lXuC:function(t,e,n){"use strict";e.a=function(t,e){var n="("+(e||"_|-")+")";return t=(t=(t=(t+"").replace(new RegExp(n+"?(?:(?:[A-Z]{2,}[A-Z]"+n+"*$)|(?:[A-Z]{2,}(?=[A-Z])))","g"),function(t){return(((e||"")+"").split("|")[0]||"-")+(t=t.replace(new RegExp(n),"")).toLowerCase()})).replace(new RegExp("(?:^"+n+"?([a-z]))|(?:"+n+"$)","gi"),function(t,e,n){return(n||"").toLowerCase()})).replace(new RegExp(n+"([a-z])","gi"),function(t,e,n){return(n||"").toUpperCase()})}},n4ML:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("VGJd"),r=n("EGiU"),i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_layout-header"},[e("div",{staticClass:"nu_layout-header"},[this._t("default")],2)])},staticRenderFns:[]};var a=n("VU/8")({},i,!1,function(t){n("Mq/+")},null,null).exports,s=n("sL/4"),u={mounted:function(){var t=this;t._initCom(),t.$nextTick(function(){t._timer=setTimeout(function(){t._initCom(),t._timer=setTimeout(function(){t._timer=void 0,t._initCom()},200)},0)})},beforeDestroy:function(){this._clearEvent()},updated:function(){this._initCom()},methods:{_initCom:function(t){var e=void 0;this.scrollEl?t&&(this._clearEvent(),e=this.getScrollEl(t)):(this._clearEvent(),e=this.getScrollEl(t)),e&&e.addEventListener("scroll",this._scroll)},_clearEvent:function(){var t=this.scrollEl;t&&t.removeEventListener("scroll",this._scroll),t&&void 0!==this._timer&&clearTimeout(this._timer)},_scroll:function(t){this.$emit("scroll",t)},getScrollEl:function(t){var e=this.$refs&&this.$refs.hook_main;return this.scrollEl=!t&&this.scrollEl||e&&Object(s.a)(e),this.scrollEl}}},c={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_layout-main"},[e("div",{ref:"hook_main",staticClass:"nu_layout-main"},[this._t("default")],2)])},staticRenderFns:[]};var l=n("VU/8")(u,c,!1,function(t){n("RPOG")},null,null).exports,f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nus_layout-footer"},[e("div",{staticClass:"nu_layout-footer"},[this._t("default")],2)])},staticRenderFns:[]};var p=n("VU/8")({},f,!1,function(t){n("SmQy")},null,null).exports,d={extends:r.a,name:"NuLayout",props:{fit:{type:Boolean,default:!1},layout:{default:"default"},bdClassName:{default:""},hdClassName:{default:""},isFooter:{type:Boolean,default:!0},isHeader:{type:Boolean,default:!0}},computed:{layoutClass:function(){var t="";switch(this.layout){case"fixed":t="fixed";break;case"absolute":t="absolute";break;case"default":t="default"}return t&&"nu_loyouttcd-"+t||null},isRadius:function(){var t=navigator.userAgent;return/VCE-AL00|VCE-TL00|PCT-AL10|PCT-TL10|GNA-AL00/i.test(t)&&"nu_huawei-radius"},myIsHeader:function(){var t=!1,e=this.$slots.hook_hd;return this.isHeader&&e&&e.length>0&&(t=!0),t},myIsFooter:function(){var t=!1,e=this.$slots.hook_ft;return this.isFooter&&e&&e.length>0&&(t=!0),t},myBdClassName:function(){var t=this.bdClassName,e=void 0;return t instanceof Array?(e=t.slice(),this.myIsFooter&&e.push("nu_foot-active")):t instanceof Object?(e=Object.assign({},t),this.myIsFooter&&(e["nu_foot-active"]=!0)):"string"==typeof t&&(e=[t],this.myIsFooter&&e.push("nu_foot-active")),e}},components:{NuLayoutHeader:a,NuLayoutMain:l,NuLayoutFooter:p},created:function(){this._setHtmlClassName()},methods:{_scroll:function(t){this.$emit("scroll",t)},_setHtmlClassName:function(){var t=document.documentElement;o.a.android&&t.classList.add("nu-android"),o.a.ios&&t.classList.add("nu-ios"),o.a.isApp&&location.href.includes("navHidden=1")&&t.classList.add("nu-nav-hidden")}}},h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_layouttcd",class:[t.isRadius,t.fit&&"nu_iphonex",t.layoutClass]},[t.myIsHeader?n("nu-layout-header",{class:t.hdClassName},[t._t("hook_hd")],2):t._e(),t._v(" "),n("nu-layout-main",{class:t.myBdClassName,on:{scroll:t._scroll}},[t._t("default")],2),t._v(" "),t.myIsFooter?n("nu-layout-footer",[t._t("hook_ft")],2):t._e()],1)},staticRenderFns:[]};var v=n("VU/8")(d,h,!1,function(t){n("ApHY")},null,null).exports,m=n("4qRk");e.default=Object(m.a)(v)},n7Vd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={extends:n("k2Ua").a,name:"NuButton",props:{imgUrl:{type:String,default:""},nameText:{type:String,default:""},subNameText:{type:String,default:""},styleName:{type:String,default:"fill"},radius:{default:"normal"}},computed:{issubNameText:function(){var t=this.$slots&&this.$slots.hook_subNameText;return!!this.subNameText||t&&!!t.length},valueText:function(){return this.nameText||this.value||!this.imgUrl&&"提交"||" "}},data:function(){return{myDisable:!1}}},r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_button",class:[t.radius&&"nu_radius-"+t.radius,t.styleName&&"nu_btn-"+t.styleName||"",t.disabled?"nu_disabled":"",t.issubNameText&&"nu_subNameText"],style:t.imgUrl&&{backgroundImage:"url("+t.imgUrl+")"},on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[t._t("default",[t._v("\n "+t._s(t.valueText)+"\n ")]),t._v(" "),t._t("hook_subNameText",[t._v("\n "+t._s(t.subNameText)+"\n ")])],2)},staticRenderFns:[]};var i=n("VU/8")(o,r,!1,function(t){n("u1jw")},null,null).exports,a=n("4qRk");e.default=Object(a.a)(i)},"o//q":function(t,e,n){"use strict";var o=n("4Q54"),r=n("ekq3"),i={extends:o.a,props:{layout:{default:"default"},addBtnText:{type:String,default:"添加收货人"},saveBtnText:{type:String},filterItem:{type:Function},getAddressData:{type:Function},message:{type:Function},isBack:{type:Boolean}},methods:{_filterItem:function(t){return Object(r.a)(this.filterItem||t,[t])}}},a=n("VU/8")(i,null,!1,null,null,null);e.a=a.exports},obxd:function(t,e){},p84V:function(t,e,n){"use strict";e.a=function(t,e){t&&!t.install&&(t.install=function(n,r){var i=n.directive(e);if(!i){var a=Object(o.a)(t,[r]);a&&n.directive(e,a.directive||a)}});return t};var o=n("ekq3")},qd2b:function(t,e,n){"use strict";var o=n("5fCB"),r=n("Z05q"),i=n("zagf");var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}return t.prototype.$dispatchEvent=function(t,e,n){return Object(r.a)(t,e,n)},t.prototype.$on=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push([e,n])},t.prototype.$once=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,o=this,r=!1,i=function i(){o.$off(t,i),r||(r=!0,e.apply(n,arguments))};i.fn=e,o.$on(t,i)},t.prototype.$off=function(t,e){var n=this._events&&this._events[t];if(n)for(var o=n.length;o--;)(n[o][0]===e||n[o][0]&&n[o][0].fn===e)&&(n[o][0]=void 0)},t.prototype.$emit=function(t){var e=this._events&&this._events[t];if(e){for(var n=e.length,o=[].concat(e),r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];for(var u=0;u<n;u++){var c=o[u],l=c[0],f=c[1];Object(i.a)(l,a,f)}}},t}(),s=n("FNmr");n.d(e,"a",function(){return u});var u=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));return o.name="",o.defaultOption={},o.setDefaultOptions(!0,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.singleton=function(t){var e=this._singleton||this.instance(t);return this._singleton=e,e},e.instance=function(t){return new this(t)},e.install=function(t,e){var n=this.instance(e);return t&&t.use instanceof Function&&t.use(n,e),n},e.prototype.getParent=function(){return Object(i.a)(this._getParent||this._vue&&this._vue.prototype||null,[],this)},e.prototype.install=function(t,e){this._vue=this._vue||t;var n=Object(s.a)(t,this);return this.setDefaultOptions(e&&n&&e[n]||e),this},e.prototype.setDefaultOptions=function(t){var e=void 0,n=!0;"boolean"==typeof t?(n=t,e=arguments[1]||{}):e=t,e&&(this.defaultOption=Object(o.a)(n,this.defaultOption||{},e))},e.prototype.getOptions=function(){for(var t=[{},this.defaultOption||{}],e=!0,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return"boolean"==typeof r[0]&&(e=r[0],r.splice(0,1)),r&&r.length>0&&(t=t.concat(r)),o.a.apply(void 0,[e].concat(t))},e.prototype.preload=function(){var t=this;return new Promise(function(e,n){e(t)})},e}(a)},qo5z:function(t,e){},"sL/4":function(t,e,n){"use strict";var o=n("MEnT");e.a=function t(e){var n=e;n&&n.scrollHeight-n.offsetHeight<50&&(n=n!==window?t(Object(o.a)(n)):null),n===window&&(document.body.scrollHeight||document.documentElement.scrollHeight)-window.innerHeight<30&&(n=null);return n}},sktA:function(t,e,n){"use strict";var o=n("ekq3"),r=n("VGJd"),i=n("k2Ua"),a=n("M30+"),s=n("caJ4"),u=n("k3pg"),c={extends:i.a,name:"NuInput",props:{maxLen:{type:Number},autofocus:{type:Boolean,default:!1},icon:{type:String},iconClass:{type:String,default:"nu_icon"},sufIcon:{type:String,default:""},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},type:{type:String,default:"text"},controlName:{type:String,default:""},isNumber:{type:Boolean,default:!1},keyDownFilter:{type:Function}},mixins:[Object(a.default)({myValueChange:function(t){var e=t,n=this.maxLen,o=n&&n>=(t||"").length;return this.isNumber&&"-"!==e&&!/\d*\.\d*/.test(e)&&(e=parseFloat(e),isNaN(e)?e="":e+=""),n&&!o&&(e=e.slice(0,n)),e==t||(this.myValue=e,!1)}})],beforeCreate:function(){Object(s.a)(this.constructor,u.default)},methods:{_onClear:function(){this.myValue="",this.$emit("clear",this.myValue)},_onBlur:function(t){var e=t&&t.target;r.a.ios&&setTimeout(function(){Object(o.a)(e.scrollIntoViewIfNeeded||e.scrollIntoView,[],e);var t=document.documentElement.scrollTop;document.documentElement.scrollTop=0,setTimeout(function(){document.documentElement.scrollTop=t})},20),this.$emit("blur",t)},_onKeydown:function(t){var e=this.maxLen,n=(this.myValue||"")+"",r=e&&e>n.length,i=t.keyCode,a=(this.isNumber||"number"===this.type)&&(109===i||189===i),s=this.isNumber&&(110===i||190===i),u=i>=48&&i<=57||i>=96&&i<=105||s,c=i>=8&&i<=46||110!==i&&i>=106&&i<=137,l=s&&((n.match(/\.|\./g)||[]).length>0||!n&&0!==n),f=a&&(!isNaN(parseFloat(n))&&parseFloat(n)<=0||!/^-/.test(n));((!f||this._tempValueMinus&&a)&&!c&&(e&&!r||("number"===this.type||this.isNumber)&&(!u||l))||Object(o.a)(this.keyDownFilter,[{isNumber:!!u,isCtrl:c,isDecimal:l,isMinus:f,keyCode:i}]))&&t.preventDefault(),this._tempValueMinus=a,this.$emit("keydown",t)}}},l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_input",class:["textarea"===t.type&&"nus_textarea"],on:{click:t._onClick,tap:t._onTap}},[n("div",{staticClass:"nu_input-wrap",class:[t.icon&&"nu_show-preIcon",t.myValue&&t.sufIcon&&"nu_show-sufIcon"]},[t.icon?n("i",{staticClass:"nu_pre-icon",class:[t.iconClass]},[t._v("\n "+t._s(t.icon)+"\n ")]):t._e(),t._v(" "),"textarea"!==t.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.myValue,expression:"myValue"},{name:"focus",rawName:"v-focus",value:{autofocus:t.autofocus},expression:"{autofocus: autofocus}"}],staticClass:"nu_input",attrs:{autocomplete:"off",name:t.controlName},domProps:{value:t.myValue},on:{blur:t._onBlur,keydown:t._onKeydown,input:function(e){e.target.composing||(t.myValue=e.target.value)}}},"input",t.$props,!1),t.$listeners)):[n("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.myValue,expression:"myValue"},{name:"focus",rawName:"v-focus",value:{autofocus:t.autofocus},expression:"{autofocus: autofocus}"}],staticClass:"nu_input",attrs:{autocomplete:"off",name:t.controlName},domProps:{value:t.myValue},on:{blur:t._onBlur,keydown:t._onKeydown,input:function(e){e.target.composing||(t.myValue=e.target.value)}}},"textarea",t.$props,!1),t.$listeners))],t._v(" "),!t.readonly&&t.myValue&&t.sufIcon?n("i",{staticClass:"nu_suf-icon",class:[t.iconClass],on:{click:function(e){e.stopPropagation(),t._onClear(e)}}},[t._v("\n "+t._s(t.sufIcon)+"\n ")]):t._e(),t._v(" "),t._t("default")],2)])},staticRenderFns:[]};var f=n("VU/8")(c,l,!1,function(t){n("qo5z")},null,null);e.a=f.exports},tmTt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"nus_btnBox100"},[this._t("default")],2)},staticRenderFns:[]};var r=n("VU/8")({name:"NuButton100"},o,!1,function(t){n("U+Qo")},null,null).exports,i=n("4qRk");e.default=Object(i.a)(r)},u1jw:function(t,e){},uGS0:function(t,e,n){"use strict";e.a=function(t,e,n,i){var a=t;!e||e instanceof Array||(e=[e]);return new Promise(function(s,u){(a=Object(o.a)(t||a,e,i||null))instanceof Promise||Object(r.a)(a,"Promise")||a&&a.then instanceof Function?a.then(s,u):s(n?{default:a}:a)})};var o=n("zagf"),r=n("E5mE")},"zN/9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("7UL8"),r=n("4qRk");e.default=Object(r.a)(o.a)},zagf:function(t,e,n){"use s