nimble-ui
Version:
1 lines • 9.06 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="aINY")}({"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")},"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),u=0;u<i;u++)a[u]=arguments[u];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 c=0;c<a.length;c++){var s=a[c];if(s instanceof Object)if(e){for(var f in n&&n instanceof Object||(n=s instanceof Array?[]:{}),s)if(s.hasOwnProperty(f)){var p=s[f];if(h(p)){var l=h(n[f])&&n[f]||(p instanceof Array?[]:{});n[f]=t(l,p)}else void 0!==p?n[f]=p:void 0!==n[f]&&(n[f]=p)}}else n=n&&n instanceof Object?Object.assign(n,s):s}return n;function h(t){return t&&(Object(o.a)(t,"Array")||Object(r.a)(t))||!1}}},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 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/")},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")},Z9R9:function(t,e,n){"use strict";var o=n("qd2b");e.a=o.a},aINY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("FNmr").a;var r=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.name="RouterPreload",o.defaultOption={routerOptions:{},timeout:2e3},o._timeout=null,o.setDefaultOptions(!1,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._stopLoad=function(){null!==this._timeout&&clearTimeout(this._timeout)},e.prototype._getComponents=function(t,e){var n=this.getOptions(!1,e||{});return new Promise(function(e,o){if(t){var r=t.split("/"),i=function t(e,n){var o=void 0;if(e&&n&&n.length>0){var r=n.shift();""===r?(n[0]="/"+n[0],o=t(e.routes,n)):(o=e.filter(function(t){if(t.path===r)return t})[0],n.length>0&&(o=t(o.children,n)))}else n&&n.length>0&&(o=void 0);return o}(n.routerOptions||{},r);try{i&&i.component instanceof Function?i.component().then(e,o):e()}catch(t){o(t)}}})},e.prototype.load=function(t,e,n){var o=this,r=o.getOptions(!1,e);return new Promise(function(e,i){var a=t&&t.meta&&t.meta.preload,u=n||a||[];function c(n){(n&&n.length)===(u&&u.length)&&a&&delete t.meta.preload,e(n)}u&&u.length>0?(o._stopLoad(),o._timeout=setTimeout(function(){o._timeout=null,u.forEach(function(t){n.push(o._getComponents(t,r))}),n&&n.length>0?Promise.all(n).then(c,i):c([])},r.timeout)):c([])})},e.prototype.install=function(t,e){var n=o(t,this);return this.setDefaultOptions(!0,e&&n&&e[n]||e),this},e}(n("q44f").a);e.default=function(t){return new r(t)}},"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},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()})}},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)},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),u=1;u<r;u++)a[u-1]=arguments[u];for(var c=0;c<n;c++){var s=o[c],f=s[0],p=s[1];Object(i.a)(f,a,p)}}},t}(),u=n("FNmr");n.d(e,"a",function(){return c});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));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(u.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)},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}}});