UNPKG

nimble-ui

Version:
1 lines 4.82 kB
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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="b7vu")}({"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",r=e.component(n);r||e.component(n,t)});return t}},"9SLZ":function(t,e,n){"use strict";var r=n("lXuC").a,o=n("eY/N");var i=function t(e){if(e)if("string"==typeof e)e=e.replace(/^\s*|\s*$/g,"");else if(e instanceof Array)e.map(function(e){return t(e)});else if(Object(o.a)(e))for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];e[n]=t(r)}return e};e.a=function(t,e){t&&!t.install&&(e=i(e),t.install=function(n){e=r((e||"")+"","_|-"),/^filter/i.test(e)||(e="filter"+e),e=e.replace(/^(filter)_?(.)/i,function(t,e,n){return(e+"_"+(n||"")).toLowerCase()});var o=n.filter(e);o||n.filter(e,t)});return t}},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}},NQXA:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9SLZ");e.default=Object(r.a)(function(t){return/\//.test(t=(t||"")+"")||(t="javascript: void(0);"),t},"link")},OKn3:function(t,e,n){"use strict";e.a=function(t){if(void 0===t)return"";return encodeURIComponent(t)||""}},"VU/8":function(t,e){t.exports=function(t,e,n,r,o,i){var a,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,u=t.default);var s,l="function"==typeof u?u.options:u;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId=o),i?(s=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):r&&(s=r),s){var f=l.functional,p=f?l.render:l.beforeCreate;f?(l._injectStyles=s,l.render=function(t,e){return s.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,s):[s]}return{esModule:a,exports:u,options:l}}},b7vu:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("OKn3");var o=function(t,e){t=t||{},e=(e||"")+"";var n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Object(r.a)(e)+"="+Object(r.a)(t)}).join("&"):Object(r.a)(e)+"="+Object(r.a)(n)});return n.length?""+(e+n.join("&")):""},i=n("NQXA"),a={name:"NuLink",props:{to:{},target:{default:""}},data:function(){return{link:""}},computed:{myLinkFlag:function(){var t=0,e=!1,n=this.to;void 0!==n&&null!==n||(t=1);var r=this.constructor,i=!!(r.component("router-link")||r.component("routerLink")||r.component("RouterLink"))||!1;if(n instanceof Object){if((n.path||!n.path&&!n.name)&&(n.path=c(n.path),e=u(n.path)||!i)){var a=n.path&&o(n.query,/\?/.test(n.path)?"&":"?")||"";n=n.path+a}}else"string"==typeof n?e=u(n=c(n))||!i:(e=!0,n=n||"");return t||(t=e?3:2),this.link=n,t;function u(t){var e=!1;return t&&!/https?:\/\//.test(t)||(e=!0),e}function c(t){t=(t||"")+"";var e=new RegExp(location.origin.replace(/([/:.])/g,"\\$1"));return t=t.replace(e,t)}}},methods:{filter_link:function(){var t=this.constructor.filter("filter_link")||i.default;return this.filter_link=t,t.apply(void 0,arguments)}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return 3===t.myLinkFlag?n("a",{attrs:{href:t.filter_link(t.link),target:t.target}},[t._t("default")],2):2===t.myLinkFlag?n("router-link",{attrs:{to:t.link,target:t.target}},[t._t("default")],2):n("div",[t._t("default")],2)},staticRenderFns:[]},c=n("VU/8")(a,u,!1,null,null,null).exports,s=n("4qRk");e.default=Object(s.a)(c)},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(r.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=o.call(e,"constructor")&&e.constructor;return"function"==typeof n&&o.toString.call(n)===o.toString.call(Object)};var r=n("E5mE"),o=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()})}}});