UNPKG

nimble-ui

Version:
1 lines 37.8 kB
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="l4I7")}({"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")},"1K25":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("aPLb"),i=n("BOJz"),r={extends:o.a,name:"NuLoadingl",components:{NuTag:i.default}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_loadingl",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-line"},[t._t("hook_line",[n("svg",{attrs:{viewBox:"0 0 72 72",xmlns:"http://www.w3.org/2000/svg"}},[n("defs",[n("linearGradient",{attrs:{x1:"100%",y1:"0%",x2:"0.03%",y2:"0%",id:t.fillId}},[n("stop",{attrs:{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}}),t._v(" "),n("stop",{attrs:{"stop-color":"currentColor",offset:"100%"}})],1)],1),t._v(" "),n("g",{attrs:{stroke:"none","stroke-width":"5%",fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M3,36 a33,33 0 1 1 66,0",stroke:"currentColor"}}),t._v(" "),n("path",{attrs:{d:"M3,36 a33,33 0 1 0 66,0",stroke:"url(#"+t.fillId+")"}})])])])],2),t._v(" "),n("div",{staticClass:"nu_loading-logo"},[n("div",{staticClass:"nu_icon-box"},[t._t("default",[n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M562.678 663.994c-13.093 0-24.344 8.811-28.013 21.855l-82.768 276.73H261.405l100.34-339.839c8.145-29.264 33.302-48.93 62.596-48.93h497.617v277.203c0 19.11 14.603 34.656 32.555 34.656H1024v76.91H809.45c-48.26 0-87.587-41.849-87.664-93.28l-0.216-205.305H562.678zM241.965 393.712l-0.773 433.958c-0.14 80.03-61.378 145.154-136.51 145.154H0V895.94h18.893c17.95 0 32.553-15.542 32.553-34.669V266.585c0-60.352 46.08-109.444 102.715-109.444h208.813l-0.116-50.392c-0.025-16.529 6.839-32.142 18.814-42.847C390.934 55.574 403.482 51 416.992 51h563.033l-14.945 62.224H554.214v43.917h397.987c16.418 0 31.87 6.865 43.541 19.315 11.674 12.448 18.08 28.94 18.04 46.445l-0.392 170.811H836.649l0.204-146.387H554.214v69.517H793.16l0.14 76.87H554.214v69.543h426.09v76.896h-567.09c-13.209 0-25.781-5.758-35.385-16.22-9.11-9.894-14.335-23.801-14.35-38.17l-0.164-92.049h-121.35z m0.329-146.387l-0.177 69.517H363.19l-0.104-69.517H242.294z",fill:"currentColor"}})])])],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("n4Kt")},null,null).exports,u=n("4qRk");e.default=Object(u.a)(s)},"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")},"3pOk":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ekq3"),i=n("4qRk"),r=n("1K25"),a=n("IwUv"),s={extends:n("aPLb").a,name:"NuLoading",components:{NuLoadingl:r.default,NuLoadingc:a.default},props:{type:{type:String,default:"loadingc"}},computed:{comName:function(){var t="";switch(this.type){case"loadingl":t="nu-loadingl";break;case"loadingc":default:t="nu-loadingc"}return t}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.comName?n(t.comName,t._g(t._b({tag:"div"},"div",t.$props,!1),t.$listeners),[t._t("default")],2):t._e()},staticRenderFns:[]},c=n("VU/8")(s,u,!1,null,null,null).exports,l=Object(i.a)(c),p=l.install;l.install=function(t,e){Object(o.a)(p,[t,e]),[r.default,a.default].forEach(function(n){t.use(n,e)})},l.TaLoadingl=r.default,l.TaLoadingc=a.default;e.default=l},"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"),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 p=c[l];if(h(p)){var f=h(n[l])&&n[l]||(p instanceof Array?[]:{});n[l]=t(f,p)}else void 0!==p?n[l]=p:void 0!==n[l]&&(n[l]=p)}}else n=n&&n instanceof Object?Object.assign(n,c):c}return n;function h(t){return t&&(Object(o.a)(t,"Array")||Object(i.a)(t))||!1}}},"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"}},"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 p=r[l],f=p+c,h=p+t;if(u+f in s)return r=[p],a[t]=f,f;if(u+h in s)return r=[p],a[t]=h,h}var d=Object(i.a)("transition-property",!0);d&&u+d+c in s&&(t=d+c);return e?t:""};var o=n("0Zk/"),i=n("shrL"),r=["Moz","moz","Webkit","webkit","O","o","MS","ms"],a={}},"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}},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},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+")},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)},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},Nt7u:function(t,e,n){"use strict";var o=n("XAAj");e.a=o.a},Nu8L:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("ekq3"),i=n("rRBi"),r=n("wSSq");var a=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,o));i.name="Loading";var a=i;return a.setDefaultOptions(o),a._popup=new r.a(n,a.defaultOption),a._popup._getParent=function(){return a._getParent&&a._getParent()},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.loading=function(t){var e=this.getOptions({key:"loading",wrapCla:"",alignCla:"centerMiddle",transitionCls:"",maskCloseFlag:0,maskFlag:-1},t);return e.wrapCla=(e.wrapCla||"")+" nu_loading-popup",this._popup.popupData(function(){return Object(o.a)(e.getComponent)},e)},e.prototype.loadingc=function(t,e){return this.loading(Object(i.a)(!0,{props:{type:"loadingc"},wrapCla:"nu_loadingc-popup"},e,{props:t||{}}))},e.prototype.loadingl=function(t,e){return this.loading(Object(i.a)(!0,{props:{type:"loadingl"},wrapCla:"nu_loadingl-popup"},e,{props:t||{}}))},e.prototype.close=function(t){var e=this._popup;Object(o.a)(e&&e.closePopup,[t||"loading"],e)},e.prototype.install=function(e,n){var o=this._popup;return t.prototype.install.call(this,e,n),o&&o._setSPopup(e),this},e}(n("q44f").a);function s(t,e){return new a(t,e)}s.install=function(t,e){t.use(s(t,e))};e.default=s},Q4rh:function(t,e){},"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.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(r)},l._ssrRegister=c):o&&(c=o),c){var p=l.functional,f=p?l.render:l.beforeCreate;p?(l._injectStyles=c,l.render=function(t,e){return c.call(e),f(t,e)}):l.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:s,options:l}}},"WGR+":function(t,e,n){"use strict";var o=n("0Zk/");e.a=o.a},XAAj:function(t,e,n){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},XUgh:function(t,e,n){"use strict";var o=n("9B2K");e.a=o.a},Z05q:function(t,e,n){"use strict";e.a=function(t,e,n){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var r=Object(o.a)(e);r._constructed=!0,r=Object(i.a)(!1,r,n),t.dispatchEvent(r)}};var o=n("XAAj"),i=n("5fCB")},Z9R9:function(t,e,n){"use strict";var o=n("qd2b");e.a=o.a},ZMJv:function(t,e,n){"use strict";var o=n("uGS0");e.a=o.a},aPLb:function(t,e,n){"use strict";var o=n("fnCA").a,i={extends:n("ho/f").a,props:{size:{type:[String,Number]},nameText:{type:String}},data:function(){return{}},computed:{mySize:function(){var t=this.size;return("number"==typeof t||/\d\s*$/.test(t+""))&&(t=100*t+"%"),t},fillId:function(){return"_line-"+o()+"_"}}},r=n("VU/8")(i,null,!1,null,null,null);e.a=r.exports},"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=i.call(e,"constructor")&&e.constructor;return"function"==typeof n&&i.toString.call(n)===i.toString.call(Object)};var o=n("E5mE"),i=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var o=n("zagf");e.a=o.a},fnCA:function(t,e,n){"use strict";e.a=function(){return i()};var o,i=(o=function(){for(var t=(new Date).getTime(),e=0;t===(new Date).getTime();)e++;return t.toString(16)+e.toString(16)},function(){var t=window.screen||{},e=t.height*t.width||0,n="";n=e&&/\d{5,}/.test(e+"")?e.toString(16):(31242*Math.random()+"").replace(".","").slice(0,8);var i=o()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var t=navigator.userAgent,e=void 0,n=void 0,o=[],i=0;function r(t,e){var n=void 0,i=0;for(n=0;n<e.length;n++)i|=o[n]<<8*n;return t^i}for(e=0;e<t.length;e++)n=t.charCodeAt(e),o.unshift(255&n),o.length>=4&&(i=r(i,o),o=[]);return o.length>0&&(i=r(i,o)),i.toString(16)}()+"-"+n+"-"+o();return i||[Math.random(),Math.random(),Math.random()].join("").slice(2,15)})},gTYF:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("Nt7u"),i=n("FlVT"),r=n("XUgh"),a=n("ekq3"),s=n("Hxsb"),u=n("76is"),c={extends:n("HDd3").a,props:{scrollEl:{},isDisableScroll:{type:Boolean,default:!1},disableCla:{default:"nus_popup-overflowHide"}},data:function(){return{myScrollEl:this.scrollEl}},methods:{_stopEvent:function(){var t=this;(t.isDiableScroll||t.scrollEl)&&t.$nextTick(function(){var e=t.$refs||{};[e.hook_bg,e.hook_wrap].forEach(function(t){t&&t.addEventListener("touchmove",function(n){t!==e.hook_wrap&&n.preventDefault(),n.stopPropagation()},{passive:!1})})})},_initDisable:function(){var t=this.$tPopup;if(this.isDisableScroll||this.scrollEl){if(!this.myScrollEl){var e=t&&t.getOptions(),n=e&&e.scrollEl;this.myScrollEl=n}this._setElScroll=this._initElScroll(this.myScrollEl)}},_setScroll:function(t){if(this.isDisableScroll||this.scrollEl){if(t){if(this._isInitElScroll)return;this._isInitElScroll=!0}else this._isInitElScroll=!1;this._setBodyScroll(t),this._setElScroll&&this._setElScroll(t)}},_setBodyScroll:function(t){var e=document.body,n=e._popupCount||0;if(e)if(t){if(e._popupCount=n+1,n<2){var o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;o&&(e.__scrollTop=o,e.style.top=-o+"px"),e.classList&&e.classList.add(this.disableCla)}}else(n-=1)>0?e._popupCount=n:(e._popupCount=0,e.style.top=0,e.classList&&e.classList.remove(this.disableCla),window.scrollTo(e.__scrollLeft||0,e.__scrollTop||0))},_initElScroll:function(t){var e=this;t&&"string"==typeof t&&(t=(t=document.querySelectorAll(t))&&Array.from(t)),t&&t.length<=0&&(t=[t]);var n=document.body;return t=t&&t.filter(function(t){return t!==n}),function(e){if(t&&!(t.length<=0))for(var n=0;n<t.length;n++){o(e,t[n])}};function o(t,n){var o=n._popupCount||0;n&&(t?(n._popupCount=o+1,o<2&&n.classList&&n.classList.add(e.disableCla)):(o-=1)>0?n._popupCount=o:(n._popupCount=0,n.classList&&n.classList.remove(e.disableCla)))}}}};var l=n("VU/8")(c,null,!1,function(t){n("qWP1")},null,null).exports,p=n("qd2b"),f=n("uGS0");var h=window.location||{},d=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={pageName:""},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.toPage=function(t,e){var n=(t=this.getOptions(t)||{}).queryKey||"";if(t.notRouter)return t&&t.pageName||null;if(n&&t.pageName){var o=new RegExp("_"+n+"=[a-z]+","ig"),i=new RegExp("\\?_"+n+"=[a-z]+(&)?|&_"+n+"=[a-z]+","ig"),r=(e=e||h.href||"")||"",a=o.test(r);a?(o.lastIndex=0,r=r.replace(o,"_"+n+"="+t.pageName)):r=/[?&]/.test(r)?r+"&_"+n+"="+t.pageName:r+"?_"+n+"="+t.pageName;var s=r.split("?");0;var u=window.history.state,c=Object.assign({},t.state,{_type:n});return a&&u&&u._type===n?window.history.replaceState(c||null,t.title||"",s.join("?")):(!a||u&&u._type===n||window.history.replaceState(u||null,"",r.replace(i,function(t,e){var n="";return"&"===e&&(n="?"),n})),window.history.pushState(c||null,t.title||"",s.join("?"))),t.pageName}},e.prototype.goBackPage=function(t){return t=this.getOptions(t)||{},new Promise(function(e,n){if(t.notRouter)e(t&&t.pageName||null);else{var o=t.queryKey||"";if(!t[o]){var i=new RegExp("_"+o+"=[a-z]+","i"),r=decodeURIComponent(h.href||"").match(i);if(r&&r[0]){var a=((r[0]||"")+"").split("=")[1],s=a&&a[1];s&&(t[o]=s)}}Object(f.a)(t.getUrlParams||t,t).then(function(t){(t=t||{})[o]?(history.go(t.goBack||-1),e(t[o])):t.goBack&&(history.go(t.goBack),e(t[o]))},n)}})},e}(p.a),v={extends:l,props:{routerOption:{type:Object}},data:function(){return{pageList:[]}},created:function(){var t=this,e=t.routerOption||{};t._routerLive||e.notRouter||!e.queryKey||(t._routerLive=new d(e),t.onPopstate=function(e){t._onPopstate(e)},window.addEventListener("popstate",t.onPopstate))},beforeDestroy:function(){this.onPopstate&&(this._goBackPage(),window.removeEventListener("popstate",this.onPopstate))},methods:{_toPage:function(t,e){var n=this._routerLive;if(n){var o=t&&t.pageName,i=this.pageList;return o&&this._outPage!==o&&i[i.length-1]!==o?i.push(o):this._outPage=null,this._pageList=this._pageList||[],n&&n.toPage(t,e)}},_goBackPage:function(t){var e=this._routerLive;return e&&e.goBackPage(t)},_onPopstate:function(t){var e=this.$refs.hook_is,n=e&&e.$options;if(this._routerLive){var o=this.pageList,i=void 0,r=void 0;o&&o.length>0&&(i=o.pop(),r=o[o.length-1],this._outPage=r);var s=o.length>=2&&o[o.length-2];n&&Object(a.a)(n.popupPopstate,[{Event:t,oldPage:i,nowPage:r,upPage:s}],e)}}}},_=n("VU/8")(v,null,!1,null,null,null).exports,g=n("xaRY"),y={extends:_,name:"NuPopup",props:{maskFlag:{type:[Number,String],default:1},props:{type:Object},content:{},isHeight:{type:Boolean,default:!1},maskCloseFlag:{type:Number,default:1},isCloseBtn:{type:Boolean,default:!1},alignCla:{type:String,default:"bottom"},wrapCla:{type:String,default:""},transition:{type:Boolean,default:!0},transitionCls:{type:String,default:"toUp"}},data:function(){return{cHeight:0,showFlag:null,myProps:this.props}},mixins:[Object(s.a)("isOpen",{value:{type:Boolean,default:!0},mValueChange:function(t){return t?(this.myIsOpen=t,this._initCom(),this.show(!0)):(this._clearInit(),this.hide()),!1}}),Object(s.a)("isShow",{value:{type:Boolean,default:!0},myValueInit:function(){return!1},mValueChange:function(t){return t?(this.myIsOpen=!0,this.show()):this.hide(),!1}}),Object(g.default)()],watch:{showOpen:function(t){this._setScroll(t)},props:function(t){this.myProps=t}},created:function(){var t=this;t._resize=function(){t.cHeight=null,void 0!==t.timer&&clearTimeout(t.timer),t.timer=setTimeout(function(){t._getWrapHeight()},20)},t._initCom()},beforeDestroy:function(){if(this.myIsOpen){var t=Object(o.a)("destroy");this.close(t)}this._setScroll(!1)},mounted:function(){this.show(!0),this._setScroll(this.showOpen)},computed:{showOpen:function(){return this.isOpen&&this.myIsOpen&&this.isShow&&this.myIsShow},wrapHeight:function(){var t="";if(this.isHeight){var e=this.cHeight;e&&(t=e+"px")}return t}},methods:{_clearInit:function(){this._isInit=!1},_afterEnter:function(){Object(i.a)(this.$el,Object(r.a)("transitionend",!0))},_initCom:function(){this.hide(!0),this.isOpen&&(this._initDisable(),this._stopEvent(),this._initEvent||(this._initEvent=!0,this.isHeight&&(window.addEventListener("resize",this._resize),window.addEventListener("orientationchange",this._resize))))},_getContent:function(){var t=this;return new Promise(function(e,n){t.$nextTick(function(){var n=t.$slots.default;if(!t.content||n&&n.length)e(null);else{var o=t.$refs.hook_is;e(o)}})})},_getWrapHeight:function(){var t=this;t.cHeight=0,t.$nextTick(function(){var e=t.$refs.hook_wrap;e&&(t.cHeight=e.clientHeight)})},_clickCont:function(t){t&&t.target===this.$refs.hookCont&&this._clickBg(t)},_clickBg:function(t){switch(this.$emit("clickBg",t),this.maskCloseFlag+""){case"1":this.closePopup(t);break;case"2":this.hide()}},show:function(t){(this.myIsShow=this.isShow,this.showFlag=!t&&"show","show"===this.showFlag)&&(this._getContent().then(function(t){var e=t&&t.$options;e&&Object(a.a)(e.popupShow,[],t)}),this.$emit(u.a.SHOW,{}));this.myIsShow&&this._getWrapHeight()},hide:function(t){this.myIsShow=!1,this.showFlag=!t&&"hide"},closePopup:function(t){this.transition?this.hide():this.close(t),this.showFlag=null},close:function(t){(this._initEvent=!1,this.isHeight&&(window.removeEventListener("resize",this._resize),window.removeEventListener("orientationchange",this._resize)),"hide"!==this.showFlag||t&&"destroy"===t.type)?(this.myIsOpen=!1,this.$emit(u.a.CLOSE,t)):this._getContent().then(function(t){var e=t&&t.$options;e&&Object(a.a)(e.popupHide,[],t)});this.myIsShow=!1,this.$emit(u.a.HIDE,t),this.showFlag=null}}},m={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"n_popup"},on:{"after-enter":t._afterEnter,"after-leave":t.close}},[t.myIsOpen?n("div",{directives:[{name:"show",rawName:"v-show",value:t.myIsShow,expression:"myIsShow"}],staticClass:"nus_popup",class:[t.wrapCla,t.alignCla&&"nu_align-"+t.alignCla||"",-1===t.maskFlag&&"nu_hide-mask"]},[t.isCloseBtn?n("i",{staticClass:"nu_close nu_icon",on:{touchstart:function(e){t.closePopup(e)},click:function(e){t.closePopup(e)},tap:function(e){t.closePopup(e)}}},[t._v("\n \n ")]):t._e(),t._v(" "),-1!==t.maskFlag?n("div",{ref:"hook_bg",staticClass:"nu_popup-bg",class:[t.maskFlag+""=="1"&&"nu_mask"],on:{click:function(e){t._clickBg(e)},tap:function(e){t._clickBg(e)}}}):t._e(),t._v(" "),n("div",{ref:"hook_wrap",staticClass:"nu_content-wrap",style:t.wrapHeight&&{height:t.wrapHeight}},[n("div",{ref:"hookCont",staticClass:"nu_content",class:[t.transitionCls&&"n_"+t.transitionCls],on:{click:function(e){t._clickCont(e)},tap:function(e){t._clickCont(e)}}},[t._t("default",[t.content?n(t.content,t._b({ref:"hook_is",tag:"div",on:{showChange:function(e){t.show()},hideChange:function(e){t.hide()},closePopup:t.closePopup,close:t.close,openPage:t._toPage,goBackPage:t._goBackPage,confirmChange:t._confirm,cancelChange:t._cancel}},"div",t.myProps,!1)):t._e()])],2)])]):t._e()])},staticRenderFns:[]};var b=n("VU/8")(y,m,!1,function(t){n("Q4rh")},null,null).exports,w=n("4qRk");e.default=Object(w.a)(b)},"ho/f":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},l4I7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("rRBi"),i=n("Nu8L"),r=n("gTYF"),a=n("3pOk"),s=function(t,e){return Object(i.default)(t,Object(o.a)({popupComponent:r.default,getComponent:function(){return new Promise(function(t,e){t(a.default)})}},e))};s.install=function(t,e){t.use(a.default),t.use(s(t,e))},e.default=s},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()})}},n4Kt:function(t,e){},q44f:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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.apply(this,arguments))}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.inputBlur=function(){var t=document.activeElement;if(t&&"input"===(t.tagName||"").toLowerCase()){var e=t;e.blur(),setTimeout(function(){e.scrollIntoView()},20)}},e}(n("Z9R9").a)},qWP1:function(t,e){},qd2b:function(t,e,n){"use strict";var o=n("5fCB"),i=n("Z05q"),r=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(i.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,i=!1,r=function r(){o.$off(t,r),i||(i=!0,e.apply(n,arguments))};r.fn=e,o.$on(t,r)},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),i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];for(var u=0;u<n;u++){var c=o[u],l=c[0],p=c[1];Object(r.a)(l,a,p)}}},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(r.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,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return"boolean"==typeof i[0]&&(e=i[0],i.splice(0,1)),i&&i.length>0&&(t=t.concat(i)),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)},rRBi:function(t,e,n){"use strict";var o=n("5fCB");e.a=o.a},shrL:function(t,e,n){"use strict";e.a=function(t,e){if(t=Object(o.a)(((t||"")+"").replace(/\s+/g,"")),!e&&s[t])return s[t];if(!e&&t in r)return t;for(var n=Object(i.a)(t),u=0;u<a.length;u++){var c=a[u],l=c+n;if(l in r)return a=[c],s[t]=l,e?c:l}return e?"":t};var o=n("lXuC"),i=n("0Zk/"),r=document.createElement("div").style,a=["Moz","webkit","O","ms"],s={}},uGS0:function(t,e,n){"use strict";e.a=function(t,e,n,r){var a=t;!e||e instanceof Array||(e=[e]);return new Promise(function(s,u){(a=Object(o.a)(t||a,e,r||null))instanceof Promise||Object(i.a)(a,"Promise")||a&&a.then instanceof Function?a.then(s,u):s(n?{default:a}:a)})};var o=n("zagf"),i=n("E5mE")},vcB0:function(t,e){},wSSq:function(t,e,n){"use strict";var o=n("ZMJv"),i=n("ekq3"),r=n("76is"),a={confirmFilter:function(t){return{type:"confirm",data:t}},cancelFilter:function(t){return{type:"cancel",data:t}},closeFilter:function(t){return{type:"close",data:t}},hideFilter:function(t){return{type:"hide",data:t}}},s=n("q44f");var u=function(){for(var t=!1,e=void 0,n=void 0,o=arguments.length,i=Array(o),r=0;r<o;r++)i[r]=arguments[r];if(i instanceof Array&&(n=i.splice(0,1)[0]),"boolean"==typeof n&&(t=n,n=i.splice(0,1)[0]),i&&i.length<1)return"boolean"==typeof n?i[1]:n;t?i[0]instanceof Array?e=[]:i[0]instanceof Object&&(e={}):e=n;for(var a=0;a<i.length;a++){var s=i[a];if(s instanceof Object)for(var u in n)n.hasOwnProperty(u)&&u in s&&(!t||t&&void 0!==s[u])&&(e[u]=s[u])}return e},c=n("rRBi");var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._Vue=this._Vue||e}return t.prototype._initCom=function(t,e){var n=t,o=(e=e||{}).parent;if(!o){var r=Object(i.a)(this._getParent,[],this);r&&r.$vnode&&(o=r)}var a=void 0;if(o&&(a={parent:o,store:o.$store||o.$parent&&o.$parent.$store}),!(t instanceof Function)){if(!(this._Vue instanceof Function))return console.log(new Error("挂载组件时候未找到Vue")),{};n=this._Vue.extend(t)}return e&&e.props&&(e.propsData=e.props,delete e.props),new n(Object.assign({},e,a||{}))},t.prototype.instCom=function(t,e){var n=(e=e||{}).el;return n||(n=document.body),e.el=document.createElement("div"),Object(i.a)(n.appendChild,[e.el],n),this._initCom(t,e)},t.prototype.updataProps=function(t,e){t&&e&&Object.assign(t,e)},t.prototype.setVue=function(t){this._Vue=t||this._Vue},t}();var p=function(t){t.mixin({beforeDestroy:function(){this.$emit("destroyPopupCore")}})},f=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,o));return i.name="PopupCore",i._mountCom=null,i.setDefaultOptions(o),i._initMountCom(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._instPopup=function(t){var e=this;t=e.getOptions(t);var n=Object(c.a)({},t);return n.props=u(!0,{maskFlag:"",props:"",content:"",isOpen:!0,isShow:!0,maskCloseFlag:"",isCloseBtn:"",alignCla:"",wrapCla:"",transition:"",transitionCls:"",routerOption:"",isHeight:!1,scrollEl:"",isDisableScroll:""},t),new Promise(function(i,r){(function(e){if(t.content&&t.content.prototype&&t.content.prototype.$mount)return new Promise(function(t,n){t(e)});return Object(o.a)(e)})(t.content).then(function(a){n.props.content=a,Object(o.a)(t.popupComponent).then(function(t){var o=e._mountCom.instCom(t,n);i(o)},r)})})},e.prototype.createPopup=function(t,e,n){var o=this,a=o.getOptions(e,{content:t});return new Promise(function(t,e){o._instPopup(a).then(function(e){var s=e.$refs.hook_is,u={component:s,popup:e,updateProps:function(t){e&&(e.$data.myProps=Object.assign({},e.$data.myProps,t))},updateData:function(t){s=e.$refs.hook_is,console.warn("请不要使用updateData修改数据"),s&&o._mountCom.updataProps(s.$data,t)},show:function(){e&&e.show()},hide:function(){e&&e.hide()},closePopup:function(){e&&e.closePopup()},close:function(){e&&e.close()}};function c(){if(e){e.$parent&&e.$parent.$off("destroyPopupCore",c);var t=e.$el;e.$destroy();var o=t.parentNode;o&&o.removeChild(t),Object(i.a)(n)}u.popup=null,u.component=null,e=null,s=null}e&&e.$parent&&e.$parent.$once("destroyPopupCore",c),e.$on(r.a.CLOSE,function(){c()}),s?(a&&a.data instanceof Object&&u.updateData(a.data),t(u)):setTimeout(function(){a&&a.data instanceof Object&&u.updateData(a.data),u.component=e.$refs.hook_is,t(u)})},e)})},e.prototype._initMountCom=function(t){var e=this;if(e._mountCom)e._mountCom.setVue(t);else{var n=new l(t);t&&(Object(i.a)(p,[t]),p=null),n._getParent=function(){return e._getParent&&e._getParent()},e._mountCom=n}},e.prototype.install=function(e,n){this._initMountCom(e),t.prototype.install.call(this,e,n)},e}(s.a);n.d(e,"a",function(){return h});var h=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,o));return i.name="PopupBase",i.defaultOption=a,i._cache={},i.setDefaultOptions(o),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._initWatch=function(t,e,n){var a=this;return new Promise(function(s,u){var c,l=null;if(!t)return u(new Error("popup 不能为空"));for(var p=((c={})[r.a.CONFIRM]=function(t){_(t,e.confirmFilter)},c[r.a.HIDE]=function(t){v(t,e.hideFilter)},c[r.a.CLOSE]=function(t){v(t,e.closeFilter),void 0!==l&&clearTimeout(l),l=setTimeout(function(){Object(i.a)(n||t,t)},0)},c[r.a.CANCEL]=function(t){_(t,e.cancelFilter)},c),f=Object.keys(p),h=0;h<f.length;h++){var d=f[h];t.$on(d,p[d])}function v(e,n){return Object(o.a)(n||e,e).then(function(e){for(var n=0;n<f.length;n++){var o=f[n];t.$off(o,p[o])}s(e)})}function _(t,n){Object(o.a)(n||t,t).then(function(t){"show"===e.showFlag?a.hide(e.key):a.closePopup(e.key),s(t)})}})},e.prototype._handlePopup=function(t,e,n,o){var i=this._getPopup(t);return!!i&&(!o&&this._removePopup(t),i&&i[e](n),!0)},e.prototype._initPopup=function(t,e){return e=this.getOptions(e),this.sPopup.createPopup(t,e)},e.prototype._addPopup=function(){var t,e=(t=regeneratorRuntime.mark(function t(e,n,o,i){var r,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,e=e||"default",a=i&&r._getPopup(e),i&&a&&a.close(e),t.next=6,r._initPopup(n,o);case 6:return a=t.sent,i&&(r.close(e),r._cache[e]=a),t.abrupt("return",a);case 9:case"end":return t.stop()}},t,this)}),function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function o(i,r){try{var a=e[i](r),s=a.value}catch(t){return void n(t)}if(!a.done)return Promise.resolve(s).then(function(t){o("next",t)},function(t){o("throw",t)});t(s)}("next")})});return function(t,n,o,i){return e.apply(this,arguments)}}(),e.prototype._removePopup=function(t){delete this._cache[t||"default"]},e.prototype._getPopup=function(t){t=t||"default";return this._cache[t]},e.prototype._setSPopup=function(t){var e=this;if(e.sPopup)e.sPopup._initMountCom(t);else{var n=new f(t);n._getParent=function(){return e._getParent&&e._getParent()},e.sPopup=n}},e.prototype.popupData=function(t,e,n){var o=this,r=o.getOptions(e);"show"===r.showFlag?o.show(r.key):o.close(r.key);var a=new Promise(function(e,s){var u=o._getPopup(r.key);u&&u.popup&&"show"===r.showFlag?(o._initWatch(u.popup,r).then(e,s),Object(i.a)(n,[u.popup])):o.openPopup(t,Object.assign({},r),!0).then(function(t){Object.assign(a,t),t.popup&&o._initWatch(t.popup,r).then(e,s),Object(i.a)(n,[t.popup])})});return a},e.prototype.openPopup=function(t,e,n){return e=e||{},this._addPopup(e.key,t,e,n)},e.prototype.updateProps=function(t,e){return this._handlePopup(t,"updateProps",e,!0)},e.prototype.updateData=function(t,e){return this._handlePopup(t,"updateData",e,!0)},e.prototype.show=function(t){return this._handlePopup(t,"show",null,!0)},e.prototype.hide=function(t){return this._handlePopup(t,"hide",null,!0)},e.prototype.closePopup=function(t){return this._handlePopup(t,"closePopup")},e.prototype.close=function(t){return this._handlePopup(t,"close")},e.prototype.closeAll=function(){var t=this._cache;for(var e in t)t.hasOwnProperty(e)&&this.close(e)},e.prototype.install=function(e,n){this._setSPopup(e),t.prototype.install.call(this,e,n)},e}(s.a)},xaRY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("76is");var i=n("37ml");e.default=Object(i.a)(function(){return{methods:{_cancel:function(t){this.$emit(o.a.CANCEL,t)},_confirm:function(t){this.$emit(o.a.CONFIRM,t)}}}})},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var o=t;t instanceof Function&&(o=t.apply(n,e));return o}}});