UNPKG

@zeit-ui/vue

Version:

A popular UI framework for Vue

1 lines 104 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["zeit-ui"]=e(require("vue")):t["zeit-ui"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},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="fb15")}({"00ab":function(t,e,n){},"01de":function(t,e,n){"use strict";var i=n("ce4e"),r=n.n(i);r.a},"04de":function(t,e,n){},"05cc":function(t,e,n){"use strict";var i=n("ad11"),r=n.n(i);r.a},"0612":function(t,e,n){},"0617":function(t,e,n){},"0959":function(t,e,n){"use strict";var i=n("d00a"),r=n.n(i);r.a},1265:function(t,e,n){"use strict";var i=n("d21e"),r=n.n(i);r.a},2106:function(t,e,n){"use strict";var i=n("d38a"),r=n.n(i);r.a},2310:function(t,e,n){"use strict";var i=n("2f80"),r=n.n(i);r.a},"236b":function(t,e,n){},"23a0":function(t,e,n){"use strict";var i=n("c7bb"),r=n.n(i);r.a},"23f7":function(t,e,n){},"23fb":function(t,e,n){},"2f80":function(t,e,n){},"39f4":function(t,e,n){"use strict";var i=n("5b75"),r=n.n(i);r.a},4201:function(t,e,n){},"432c":function(t,e,n){},"4d7c":function(t,e,n){"use strict";var i=n("ce2b"),r=n.n(i);r.a},"5aee":function(t,e,n){},"5b75":function(t,e,n){},"5d63":function(t,e,n){"use strict";var i=n("236b"),r=n.n(i);r.a},"64ea":function(t,e,n){"use strict";var i=n("7a2c"),r=n.n(i);r.a},6675:function(t,e,n){"use strict";var i=n("5aee"),r=n.n(i);r.a},6820:function(t,e,n){},6825:function(t,e,n){"use strict";var i=n("d5c3"),r=n.n(i);r.a},"6a1f":function(t,e,n){},"6fcf":function(t,e,n){"use strict";var i=n("b894"),r=n.n(i);r.a},"71a7":function(t,e,n){},"76cb":function(t,e,n){"use strict";var i=n("d920"),r=n.n(i);r.a},"78c9":function(t,e,n){"use strict";var i=n("23f7"),r=n.n(i);r.a},"78cd":function(t,e,n){"use strict";var i=n("857d"),r=n.n(i);r.a},"7a2c":function(t,e,n){},"7ab5":function(t,e,n){},"7bf1":function(t,e,n){},"7ce0":function(t,e,n){},"7f35":function(t,e,n){},"80ea":function(t,e,n){"use strict";var i=n("948a"),r=n.n(i);r.a},"857d":function(t,e,n){},"85b2":function(t,e,n){},"87b5":function(t,e,n){"use strict";var i=n("6820"),r=n.n(i);r.a},"8a85":function(t,e,n){"use strict";var i=n("fade"),r=n.n(i);e["default"]=r.a},"8bbf":function(e,n){e.exports=t},"8ef1":function(t,e,n){"use strict";var i=n("0617"),r=n.n(i);r.a},"8efa":function(t,e,n){},9483:function(t,e,n){},"948a":function(t,e,n){},"94c3":function(t,e,n){"use strict";var i=n("cef9"),r=n.n(i);r.a},9652:function(t,e,n){"use strict";var i=n("7f35"),r=n.n(i);r.a},"9fc6":function(t,e,n){"use strict";var i=n("7ab5"),r=n.n(i);r.a},a271:function(t,e,n){"use strict";var i=n("23fb"),r=n.n(i);r.a},a731:function(t,e,n){},ad11:function(t,e,n){},ad36:function(t,e,n){"use strict";var i=n("e5d7"),r=n.n(i);r.a},ad70:function(t,e,n){"use strict";var i=n("432c"),r=n.n(i);r.a},b1d1:function(t,e,n){"use strict";var i=n("edb1"),r=n.n(i);r.a},b778:function(t,e,n){},b894:function(t,e,n){},b984:function(t,e,n){},ba8f:function(t,e,n){"use strict";var i=n("7ce0"),r=n.n(i);r.a},c073:function(t,e,n){"use strict";var i=n("ee04"),r=n.n(i);r.a},c155:function(t,e,n){"use strict";var i=n("0612"),r=n.n(i);r.a},c190:function(t,e,n){"use strict";var i=n("6a1f"),r=n.n(i);r.a},c630:function(t,e,n){},c6ba:function(t,e,n){"use strict";var i=n("8efa"),r=n.n(i);r.a},c7bb:function(t,e,n){},ca19:function(t,e,n){"use strict";var i=n("7bf1"),r=n.n(i);r.a},cb37:function(t,e,n){"use strict";var i=n("4201"),r=n.n(i);r.a},ce2b:function(t,e,n){},ce4e:function(t,e,n){},cef9:function(t,e,n){},d00a:function(t,e,n){},d21e:function(t,e,n){},d38a:function(t,e,n){},d469:function(t,e,n){"use strict";var i=n("b778"),r=n.n(i);r.a},d5c3:function(t,e,n){},d823:function(t,e,n){"use strict";var i=n("71a7"),r=n.n(i);r.a},d920:function(t,e,n){},dff5:function(t,e,n){"use strict";var i=n("85b2"),r=n.n(i);r.a},e31b:function(t,e,n){"use strict";var i=n("9483"),r=n.n(i);r.a},e5d7:function(t,e,n){},ebf4:function(t,e,n){"use strict";var i=n("f1e4"),r=n.n(i);r.a},edb1:function(t,e,n){},ee04:function(t,e,n){},f1e4:function(t,e,n){},f319:function(t,e,n){"use strict";var i=n("b984"),r=n.n(i);r.a},f464:function(t,e,n){"use strict";var i=n("f54d"),r=n.n(i);r.a},f54d:function(t,e,n){},f54e:function(t,e,n){"use strict";var i=n("f69c"),r=n.n(i);r.a},f69c:function(t,e,n){},f6c8:function(t,e,n){"use strict";var i=n("04de"),r=n.n(i);r.a},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},fa26:function(t,e,n){"use strict";var i=n("c630"),r=n.n(i);r.a},fade:function(t,e,n){t.exports={drip:"button-drip_drip_-12JB"}},fb15:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"enableLight",(function(){return p})),n.d(i,"enableDark",(function(){return h}));var r={};n.r(r),n.d(r,"enums",(function(){return S})),n.d(r,"isMac",(function(){return k}));var o={};n.r(o),n.d(o,"getRealShape",(function(){return $})),n.d(o,"getRect",(function(){return E}));var s={};n.r(s),n.d(s,"warning",(function(){return O})),n.d(s,"error",(function(){return j}));var a={};n.r(a),n.d(a,"ZiTransitionExpand",(function(){return L}));var l={};n.r(l),n.d(l,"lockScroll",(function(){return P}));var c,u={};(n.r(u),n.d(u,"copy",(function(){return W})),"undefined"!==typeof window)&&(n("f6fd"),(c=window.document.currentScript)&&(c=c.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=c[1]));n("00ab");var d=["dark-theme","light-theme"],f=function(t){var e;if("undefined"!==typeof document){var n=document.querySelector("html");(e=n.classList).remove.apply(e,d),n.classList.add(t)}},p=function(){f("light-theme")},h=function(){f("dark-theme")},m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._g({staticClass:"zi-card",class:[{hoverable:t.hoverable,shadow:t.shadow}]},t.$listeners),[t._t("default")],2)},v=[],b={name:"zi-card",props:{hoverable:Boolean,shadow:Boolean}},g=b;n("1265");function y(t,e,n,i,r,o,s,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var w=y(g,m,v,!1,null,null,null),x=w.exports;x.install=function(t){return t.component(x.name,x)};var _=x,z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._g({staticClass:"zi-avatar",class:[t.shape,t.size&&t.size,t.isSingleText&&"single",t.stacked&&"stacked"]},t.$listeners),[t.hasLink?n("img",t._b({attrs:{src:t.src,draggable:"false"}},"img",t.$attrs,!1)):n("span",{staticClass:"zi-avatar-string"},[t._v(t._s(t.text))])])},C=[],S=function(t){return function(e){return!!Array.isArray(t)&&!!t.find((function(t){return t===e}))}},k=function(){if("undefined"===typeof window||!window.navigator)return!1;var t=navigator.userAgent.toLowerCase();return/macintosh|mac os x/i.test(t)},$=function(t){var e=t.getBoundingClientRect(),n=window.getComputedStyle(t),i=n.width,r=n.height,o=function(t,e){if(!t)return 0;var n=t.includes("px")?+t.split("px")[0]:t.includes("%")?+t.split("%")[0]*e*.01:t;return Number.isNaN(+n)?0:+n};return{width:o("".concat(i),e.width),height:o("".concat(r),e.height)}},E=function(t){return t.getBoundingClientRect()},O=function(t){console.warn(t)},j=function(t){console.error(t)},B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"expand"},on:{enter:t.enter,"after-enter":t.afterEnter,leave:t.leave}},[t._t("default")],2)},N=[],M={name:"zi-transition-expand",methods:{enter:function(t){var e=$(t),n=e.width;t.style.width="".concat(n,"px"),t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";var i=$(t),r=i.height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,$(t);var o=setTimeout((function(){t.style.height="".concat(r,"px"),clearTimeout(o)}),0)},afterEnter:function(t){t.style.height="auto"},leave:function(t){var e=$(t),n=e.height;t.style.height="".concat(n,"px"),$(t);var i=setTimeout((function(){t.style.height=0,clearTimeout(i)}),0)},afterLeave:function(t){t.style.height=null}}},A=M,T=(n("ba8f"),y(A,B,N,!1,null,null,null)),L=T.exports,D=new Map,P=function(t){if("undefined"!==typeof document){var e=document.body,n=function(t){var n=getComputedStyle(e)["padding-right"],i=D.get(t);if(!i)return D.set(t,{counter:1,initialOverflow:t.style.overflow,initialRight:n}),t.style.overflow="hidden",void(t.style.paddingRight="calc(".concat(I()," + ").concat(n,")"));D.set(t,{counter:i.counter++,initialOverflow:i.initialOverflow,initialRight:n})},i=function(t){var e=D.get(t);e&&(1===e.counter?(D.delete(t),t.style.overflow=e.initialOverflow,t.style.paddingRight=e.initialRight):D.set(t,{counter:e.counter-1,initialOverflow:e.initialOverflow,initialRight:e.initialRight}))};t?n(e):i(e)}},I=function(){if(k())return"0px";var t=window.getComputedStyle(document.body,"-webkit-scrollbar").width;if("auto"!==t)return t;var e=document.createElement("div"),n="position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;";e.setAttribute("style",n),document.body.appendChild(e);var i="".concat(e.getBoundingClientRect().width-e.clientWidth,"px");return document.body.removeChild(e),i},W=function(t){if(t){var e=document.querySelector("#zeit-clipboard"),n=function(t){var e=window.getSelection(),n=document.createRange();n.selectNode(t),e.removeAllRanges(),e.addRange(n);try{document.execCommand("Copy")}catch(j){console.error("copy failed!")}e.removeAllRanges(),t.textContent=""};if(e)return e.textContent=t,void n(e);var i=document.createElement("div");i.id="zeit-clipboard",i.style.whiteSpace="pre",i.textContent=t,document.body.appendChild(i),n(i)}},R={name:"zi-avatar",props:{stacked:Boolean,src:String,text:String,size:{type:String,validator:r.enums(["small","medium","big","huge"])},shape:{type:String,validator:r.enums(["circle","square"]),default:"circle"}},computed:{hasLink:function(){return!!this.src},isSingleText:function(){return this.text&&1===this.text.length}}},H=R,V=(n("b1d1"),y(H,z,C,!1,null,null,null)),q=V.exports;q.install=function(t){return t.component(q.name,q)};var X=q,G=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hasSlot?n("span",{staticClass:"zi-badge-group"},[t._t("default"),t.showSup?n("span",{staticClass:"zi-badge",class:[t.status||"",t.dot&&"dot"]},[t._v(t._s(t.countLabel))]):t._e()],2):n("span",{staticClass:"zi-badge",class:t.status||""},[t._v(t._s(t.countLabel))])},F=[],U={name:"zi-badge",props:{count:[String,Number],maxCount:[String,Number],showZero:Boolean,dot:Boolean,status:{type:String,validator:r.enums(["success","warning","error"])}},computed:{hasSlot:function(){return!!this.$slots.default},showSup:function(){return!!this.showZero||0!==+this.count},countLabel:function(){var t=+this.maxCount;return Number.isNaN(t)?this.count:this.count>t?"".concat(t,"+"):this.count}}},Z=U,Y=(n("f6c8"),y(Z,G,F,!1,null,null,null)),J=Y.exports;J.install=function(t){return t.component(J.name,J)};var K=J,Q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"zi-btn",class:t.classes,attrs:{tabindex:t.tabindex},on:{click:t.clickHandler,keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.isFocus=!0},blur:function(e){t.isFocus=!1}}},[t.loading?n("span",{staticClass:"zi-loading-shim"},[n("i"),n("i"),n("i")]):t._e(),n("zi-button-drip",{ref:"drip"}),t.showIcon?n("span",{staticClass:"zi-btn-icon default"},[n(t.icon,{tag:"component"})],1):t._e(),t._t("default"),t.showIconRight?n("span",{staticClass:"zi-btn-icon right"},[n(t.iconRight,{tag:"component"})],1):t._e()],2)},tt=[],et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("span",{class:t.$style.drip,style:t.styles}):t._e()},nt=[];function it(t){return it="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},it(t)}var rt={left:"",top:"",opacity:.8,transform:"translate(-50%, -50%)"},ot={name:"zi-button-drip",props:["clickEvent"],data:function(){return{show:!1,styles:rt}},methods:{trigger:function(t){var e=this;t&&"object"===it(t)&&(t.offsetX||t.offsetY)&&(this.show||(this.show=!0,this.$nextTick((function(){return e.setStyle(t)}))))},setStyle:function(t){var e=this,n=o.getRect(this.$parent.$el),i=n.width,r=n.height,s=Math.max(t.offsetX,i-t.offsetX),a=Math.max(t.offsetY,r-t.offsetY),l=Math.max(s,a),c=l/9;this.styles={left:"".concat(t.offsetX,"px"),top:"".concat(t.offsetY,"px"),opacity:.25,transform:"translate(-50%, -50%) scale(".concat(c,")")};var u=setTimeout((function(){e.reset(),clearTimeout(u)}),400)},reset:function(){this.styles=rt,this.show=!1}}},st=ot,at=n("8a85");function lt(t){this["$style"]=at["default"].locals||at["default"]}var ct=y(st,et,nt,!1,lt,null,null),ut=ct.exports,dt={name:"zi-button",props:{size:{type:String,default:"medium",validator:r.enums(["small","mini","medium","big","huge"])},type:{type:String,validator:r.enums(["primary","success","warning","danger","abort","normal"])},loading:Boolean,disabled:Boolean,shadow:Boolean,circular:Boolean,auto:Boolean,ghost:Boolean,effect:{type:Boolean,default:!0},icon:Object,iconRight:Object},data:function(){return{dripStyles:"",isFocus:!1}},computed:{classes:function(){var t="";return this.loading&&(t+=" loading"),this.disabled&&(t+=" disabled"),this.shadow&&(t+=" shadow"),this.circular&&(t+=" circular"),this.auto&&(t+=" auto"),this.ghost&&(t+=" ghost"),this.type&&(t+=" ".concat(this.type)),this.size&&(t+=" ".concat(this.size)),this.isFocus&&(t+=" tab-selected"),t.trim()},showIcon:function(){return this.icon&&"mini"!==this.size&&!this.loading},showIconRight:function(){return this.iconRight&&"mini"!==this.size&&!this.loading},tabindex:function(){return this.disabled?-1:0}},components:{ZiButtonDrip:ut},methods:{clickHandler:function(t){if(!this.loading&&!this.disabled){this.isFocus=!1;var e=!this.shadow&&!this.ghost&&this.effect&&this.$refs.drip;e&&this.$refs.drip.trigger(t),this.$emit("click",t)}}}},ft=dt,pt=(n("94c3"),y(ft,Q,tt,!1,null,null,null)),ht=pt.exports;ht.install=function(t){return t.component(ht.name,ht)};var mt=ht,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"zi-checkbox-container",class:{disabled:t.isDisabled}},[t.model?n("checked",{staticClass:"zi-checkbox",class:{disabled:t.isDisabled},attrs:{size:"15"}}):t._e(),t.model?t._e():n("unchecked",{staticClass:"zi-checkbox",class:{disabled:t.isDisabled},attrs:{size:"15"}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"zi-checkbox-original",attrs:{type:"checkbox",disabled:t.isDisabled},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{change:function(e){var n=t.model,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,s=t._i(n,o);i.checked?s<0&&(t.model=n.concat([o])):s>-1&&(t.model=n.slice(0,s).concat(n.slice(s+1)))}else t.model=r}}}),n("span",{staticClass:"zi-checkbox-label"},[t.$slots.default?t._e():[t._v(t._s(t.label))],t._t("default")],2)],1)},bt=[],gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",t._g(t._b({style:t.styles,attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}},"svg",t.attrs,!1),t.listeners),[n("path",{attrs:{d:"M16.09 3H7.91A4.91 4.91 0 003 7.91v8.18A4.909 4.909 0 007.91 21h8.18A4.909 4.909 0 0021 16.09V7.91A4.909 4.909 0 0016.09 3z"}})])},yt=[];const wt={size:[String,Number],color:String},xt={listeners(){return{...this.$listeners}},styles(){const t=this.size?{height:this.size,width:this.size}:{};return{...t,color:this.color||"currentColor"}},attrs(){return{viewBox:"0 0 24 24","shape-rendering":"geometricPrecision",width:24,height:24,...this.$attrs}}};var _t={name:"checkbox-icon",props:wt,computed:xt},zt=_t,Ct=y(zt,gt,yt,!1,null,null,null),St=Ct.exports,kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",t._g(t._b({style:t.styles,attrs:{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}},"svg",t.attrs,!1),t.listeners),[n("path",{attrs:{fill:"currentColor",stroke:"none",d:"M7.91 3h8.18a4.908 4.908 0 014.31 2.554l-8.273 8.377-2.592-2.638a.75.75 0 10-1.07 1.05l3.125 3.182a.75.75 0 001.069.002l8.281-8.386c.04.25.06.507.06.768v8.182A4.909 4.909 0 0116.09 21H7.91A4.909 4.909 0 013 16.09V7.91A4.91 4.91 0 017.91 3z"}})])},$t=[],Et={name:"checkbox-fill-icon",props:wt,computed:xt},Ot=Et,jt=y(Ot,kt,$t,!1,null,null,null),Bt=jt.exports,Nt={name:"zi-checkbox",components:{unchecked:St,checked:Bt},data:function(){return{_model:!1}},props:{label:{type:[String,Boolean,Number]},value:Boolean,disabled:Boolean},computed:{model:{get:function(){var t=this;return this.inGroup?!!this._group.model.find((function(e){return e===t.label})):void 0!==this.value?this.value:this._model},set:function(t){if(this.inGroup)return this._group.setLabelStatus(this.label,t);this._model=t,this.$emit("input",t)}},isDisabled:function(){return this.inGroup&&this._group.disabled||this.disabled},inGroup:function(){var t=this.$parent;while(t){if("zi-checkbox-group"===t.$options.name)return this._group=t,!0;t=t.$parent}return!1}}},Mt=Nt,At=(n("05cc"),y(Mt,vt,bt,!1,null,null,null)),Tt=At.exports,Lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-checkbox-group"},[t._t("default")],2)},Dt=[];function Pt(t){return Ht(t)||Rt(t)||Wt(t)||It()}function It(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wt(t,e){if(t){if("string"===typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(t,e):void 0}}function Rt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Ht(t){if(Array.isArray(t))return Vt(t)}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var qt={name:"zi-checkbox-group",data:function(){return{_model:[]}},props:{value:{type:Array,default:function(){return[]}},disabled:Boolean},computed:{model:{get:function(){return void 0!==this.value?this.value:this._model},set:function(t){this._model=t,this.$emit("input",t)}}},methods:{setLabelStatus:function(t,e){this.model=e?Pt(new Set(this.model.concat([t]))):this.model.filter((function(e){return e!==t}))}}},Xt=qt,Gt=y(Xt,Lt,Dt,!1,null,null,null),Ft=Gt.exports;Tt.install=function(t){t.component(Tt.name,Tt),t.component(Ft.name,Ft)};var Ut=Tt,Zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isBlock?n("pre",{class:{"zi-bash":t.bash}},[n("code",[t._t("default")],2)]):n("code",[t._t("default")],2)},Yt=[],Jt={name:"zi-code",props:{bash:Boolean,block:Boolean,inline:Boolean},computed:{isBlock:function(){return!this.inline&&(this.bash||this.block)}}},Kt=Jt,Qt=(n("f464"),y(Kt,Zt,Yt,!1,null,null,null)),te=Qt.exports;te.install=function(t){t.component(te.name,te)};var ee=te,ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-collapse-group"},[t._t("default")],2)},ie=[];function re(t){return le(t)||ae(t)||se(t)||oe()}function oe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function se(t,e){if(t){if("string"===typeof t)return ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ce(t,e):void 0}}function ae(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function le(t){if(Array.isArray(t))return ce(t)}function ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var ue={name:"zi-collapse",data:function(){return{privateModel:"",privateModelArr:[]}},props:{value:[Array,String,Number],accordion:Boolean},computed:{model:{get:function(){return void 0!==this.value?this.value:this.modelAlias},set:function(t){this.modelAlias=t,this.$emit("input",t)}}},mounted:function(){if(this.modelAlias=this.accordion?this.privateModel:this.privateModelArr,void 0!==this.value){var t=Array.isArray(this.value);return this.accordion&&t?s.error("[value/v-model] cannot be an Array in [accordion] mode."):this.accordion||t?void 0:s.error("[value/v-model] must be an Array.")}},methods:{setValue:function(t,e){Array.isArray(this.modelAlias)?this.model=e?re(new Set(this.modelAlias.concat([t]))):this.modelAlias.filter((function(e){return e!==t})):this.model=e?t:null}}},de=ue,fe=(n("2310"),y(de,ne,ie,!1,null,null,null)),pe=fe.exports,he=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-collapse",class:{shadow:t.shadow}},[n("div",[n("div",{staticClass:"zi-collapse-title",on:{click:t.clickHandler}},[n("h3",[t._v(t._s(t.title))]),n("downIcon",{staticClass:"icon",class:{reverse:t.model}})],1),n("div",{staticClass:"zi-collapse-subtitle",domProps:{innerHTML:t._s(t.subtitle)}})]),n("zi-transition-expand",[t.model?n("div",{staticClass:"zi-collapse-content"},[n("div",{staticClass:"content"},[t._t("default")],2)]):t._e()])],1)},me=[],ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 22 12",fill:"none"}},[n("path",{attrs:{d:"M1 1L11 11L21 1",stroke:"var(--geist-foreground)","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])},be=[],ge={name:"zi-down-icon"},ye=ge,we=y(ye,ve,be,!1,null,null,null),xe=we.exports,_e=a.ZiTransitionExpand,ze={name:"zi-collapse-item",components:{downIcon:xe,ZiTransitionExpand:_e},data:function(){return{privateModel:!1}},props:{title:{type:[String,Number],required:!0},name:{type:[String,Number],default:function(){return this.title}},shadow:Boolean,subtitle:String},mounted:function(){if(!this.inGroup)return s.error("".concat(this.$options.name," required parent component: [zi-collapse]"))},computed:{model:{get:function(){var t=this;return!!this.inGroup&&(Array.isArray(this._group.model)?!!this._group.model.find((function(e){return e===t.name})):this._group.model===this.name)},set:function(t){this._group.setValue(this.name,t)}},inGroup:function(){var t=this.$parent;while(t){if("zi-collapse"===t.$options.name)return this._group=t,!0;t=t.$parent}return!1}},methods:{clickHandler:function(){this.model=!this.model}}},Ce=ze,Se=y(Ce,he,me,!1,null,null,null),ke=Se.exports;pe.install=function(t){t.component(pe.name,pe),t.component(ke.name,ke)};var $e=pe,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-fieldset",class:t.disabled&&"disabled"},[n("div",{staticClass:"zi-fieldset-content"},[t._t("default")],2),t.$slots.footer?n("div",{staticClass:"zi-fieldset-footer"},[t._t("footer")],2):n("div",{staticClass:"zi-fieldset-footer"},[t._v(t._s(t.footer))])])},Oe=[],je={name:"zi-fieldset",props:{footer:String,disabled:Boolean}},Be=je,Ne=(n("4d7c"),y(Be,Ee,Oe,!1,null,null,null)),Me=Ne.exports;Me.install=function(t){t.component(Me.name,Me)};var Ae=Me,Te=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.groupClass,{prefix:t.hasPrefix,suffix:t.hasSuffix,clearable:t.clearable}]},[t.prefixLabel?n("span",{staticClass:"zi-label prefix",class:t.size&&t.size},[t._v(t._s(t.prefixLabel))]):t._e(),t.hasPrefixIcon?n("span",{staticClass:"zi-label prefix",class:t.size&&t.size},[t._t("prefixIcon")],2):t._e(),"checkbox"===t._type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"zi-input",class:[{disabled:t.disabled},t.size&&t.size,t.type],attrs:{disabled:t.disabled,type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{focus:function(e){t.showCloseIcon=!0},blur:function(e){return e.target!==e.currentTarget?null:t.hiddenCloseIcon(e)},change:function(e){var n=t.model,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,s=t._i(n,o);i.checked?s<0&&(t.model=n.concat([o])):s>-1&&(t.model=n.slice(0,s).concat(n.slice(s+1)))}else t.model=r}}},"input",t.$attrs,!1),t.customListeners)):"radio"===t._type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"zi-input",class:[{disabled:t.disabled},t.size&&t.size,t.type],attrs:{disabled:t.disabled,type:"radio"},domProps:{checked:t._q(t.model,null)},on:{focus:function(e){t.showCloseIcon=!0},blur:function(e){return e.target!==e.currentTarget?null:t.hiddenCloseIcon(e)},change:function(e){t.model=null}}},"input",t.$attrs,!1),t.customListeners)):n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"zi-input",class:[{disabled:t.disabled},t.size&&t.size,t.type],attrs:{disabled:t.disabled,type:t._type},domProps:{value:t.model},on:{focus:function(e){t.showCloseIcon=!0},blur:function(e){return e.target!==e.currentTarget?null:t.hiddenCloseIcon(e)},input:function(e){e.target.composing||(t.model=e.target.value)}}},"input",t.$attrs,!1),t.customListeners)),t.suffixLabel?n("span",{staticClass:"zi-label suffix",class:t.size&&t.size},[t._v(t._s(t.suffixLabel))]):t._e(),t.hasSuffixIcon?n("span",{staticClass:"zi-label suffix",class:t.size&&t.size},[t._t("suffixIcon")],2):t._e(),t.clearable&&t.showCloseIcon?n("DeleteIcon",{staticClass:"close",on:{mousedown:t.clear}}):t._e()],1)},Le=[],De=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",t._g(t._b({style:t.styles,attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}},"svg",t.attrs,!1),t.listeners),[n("path",{attrs:{d:"M21 4H8l-7 8 7 8h13a2 2 0 002-2V6a2 2 0 00-2-2zM18 9l-6 6M12 9l6 6"}})])},Pe=[],Ie={name:"delete-icon",props:wt,computed:xt},We=Ie,Re=y(We,De,Pe,!1,null,null,null),He=Re.exports,Ve={name:"zi-input",data:function(){return{privateModel:"",showCloseIcon:!1}},components:{DeleteIcon:He},props:{value:[String,Number],clearable:Boolean,prefixIcon:String,suffixIcon:String,prefixLabel:[String,Number],suffixLabel:[String,Number],disabled:Boolean,size:{type:String,validator:r.enums(["mini","small","medium","big"])},type:{type:String,validator:r.enums(["primary","success","warning","danger"]),default:"primary"},_type:String},computed:{model:{get:function(){return void 0===this.value?this.privateModel:this.value},set:function(t){this.privateModel=t,this.$emit("input",t)}},hasPrefix:function(){return this.hasPrefixIcon||this.prefixLabel},hasPrefixIcon:function(){return!!this.$slots.prefixIcon},hasSuffix:function(){return this.hasSuffixIcon||this.suffixLabel},hasSuffixIcon:function(){return!!this.$slots.suffixIcon},groupClass:function(){return this.hasPrefix||this.hasSuffix?"zi-input-group":"zi-input-group-empty"},customListeners:function(){var t=this,e={};return Object.keys(this.$listeners).forEach((function(n){"input"!==n&&(e[n]=t.$listeners[n])})),e}},methods:{clear:function(){this.clearable&&(this.model="")},hiddenCloseIcon:function(){this.showCloseIcon=!1}}},qe=Ve,Xe=(n("87b5"),y(qe,Te,Le,!1,null,null,null)),Ge=Xe.exports;Ge.install=function(t){t.component(Ge.name,Ge)};var Fe=Ge,Ue=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-select-container",class:[{disabled:t.disabled,simple:t.simple},t.size&&t.size]},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"zi-select",class:{disabled:t.disabled},attrs:{form:t.form,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,disabled:t.disabled},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.model=e.target.multiple?n:n[0]}}},[t._t("default")],2),t.simple?t._e():n("div",{staticClass:"arrow-box"},[n("down",{staticClass:"arrow"})],1)])},Ze=[],Ye={name:"zi-select",components:{down:xe},data:function(){return{privateModel:void 0}},props:{value:[String,Number,Boolean],size:{type:String,validator:r.enums(["mini","small","medium"])},autocomplete:Boolean,autofocus:Boolean,disabled:Boolean,simple:Boolean,form:[String,Number],name:[String,Number]},computed:{model:{get:function(){return void 0===this.value?this.privateModel:this.value},set:function(t){this.privateModel=t,this.$emit("input",t)}}}},Je=Ye,Ke=(n("e31b"),y(Je,Ue,Ze,!1,null,null,null)),Qe=Ke.exports,tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("option",{attrs:{disabled:t.isDisabled},domProps:{value:t.value}},[t._v(t._s(t.showLabel))])},en=[],nn={name:"zi-option",props:{value:{type:[String,Number,Object],required:!0},label:[String,Number],disabled:Boolean},computed:{showLabel:function(){return this.label||this.value},isDisabled:function(){return this.inGroup&&this._group.disabled||this.disabled},inGroup:function(){var t=this.$parent;while(t){if("zi-select"===t.$options.name)return this._group=t,!0;t=t.$parent}return!1}},mounted:function(){if(!this.inGroup)return print.error("".concat(this.$options.name," required parent component: [zi-select]"))}},rn=nn,on=y(rn,tn,en,!1,null,null,null),sn=on.exports;Qe.install=function(t){t.component(Qe.name,Qe),t.component(sn.name,sn)};var an=Qe,ln=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-more",on:{click:t.toggleHandler}},[n("zi-button",{staticClass:"zi-more-slot",attrs:{circular:"",size:"small",loading:t.loading}},[t._v(t._s(t.statusText))])],1)},cn=[],un={name:"zi-more",data:function(){return{toggle:void 0}},props:{text:{type:[String,Number],default:"show more"},textUp:{type:[String,Number]},expand:Boolean,loading:Boolean},computed:{statusText:function(){var t=this.textUp||this.text;return this.toggle?t:this.text}},mounted:function(){this.toggle=this.expand},methods:{toggleHandler:function(){this.toggle=!this.toggle}}},dn=un,fn=(n("ebf4"),y(dn,ln,cn,!1,null,null,null)),pn=fn.exports;pn.install=function(t){t.component(pn.name,pn)};var hn=pn,mn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-toggle",class:{checked:!!t.model,disabled:t.disabled},on:{click:t.clickHandler}})},vn=[],bn={name:"zi-toggle",data:function(){return{privateModel:void 0}},props:{value:[String,Number,Boolean],disabled:Boolean},computed:{model:{get:function(){return void 0===this.value?this.privateModel:this.value},set:function(t){this.privateModel=t,this.$emit("input",t)}}},methods:{clickHandler:function(){this.model=!this.model}}},gn=bn,yn=(n("d823"),y(gn,mn,vn,!1,null,null,null)),wn=yn.exports;wn.install=function(t){t.component(wn.name,wn)};var xn=wn,_n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"zi-switcher"},t._l(t.labels,(function(e,i){return n("a",{key:e+i,class:{active:t.isSelected(e)},on:{click:function(n){return t.select(e)}}},[t._v(t._s(e))])})),0),n("div",{staticClass:"zi-switcher-content"},[t._t("default")],2)])},zn=[],Cn={name:"zi-switcher",data:function(){return{labels:[],currentActive:"",subscribers:[]}},created:function(){console.warn("[zeit-ui]: **DEPRECATION**: <zi-switcher> will be discarded. Please use <zi-tabs> instead of it")},methods:{appendLabel:function(t){if(this.labels.find((function(e){return e===t})))return s.error("[zi-switcher] > Duplicate label (".concat(t,")"));this.labels.push(t),1===this.labels.length&&this.select(t,!0)},appendSubscriber:function(t){this.subscribers.push(t)},isSelected:function(t){return this.currentActive===t},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e||this.currentActive===t||this.$emit("label-selected",t),this.currentActive=t,this.subscribers.forEach((function(t){"function"===typeof t&&t()}))}}},Sn=Cn,kn=(n("39f4"),y(Sn,_n,zn,!1,null,null,null)),$n=kn.exports,En=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}]},[t._t("default")],2)},On=[],jn={name:"zi-switcher-item",props:{label:[String,Number],active:Boolean,disabled:Boolean},data:function(){return{isActive:!1}},computed:{inGroup:function(){var t=this.$parent;while(t){if("zi-switcher"===t.$options.name)return this._group=t,!0;t=t.$parent}return!1}},mounted:function(){if(!this.inGroup)return print.error("".concat(this.$options.name," required parent component: [zi-switcher]"));this._group.appendSubscriber(this.updateSubscription.bind(this)),this._group.appendLabel(this.label),this.active&&this._group.select(this.label,!0)},methods:{updateSubscription:function(){this.isActive=this._group.isSelected(this.label)}}},Bn=jn,Nn=y(Bn,En,On,!1,null,null,null),Mn=Nn.exports;$n.install=function(t){t.component($n.name,$n),t.component(Mn.name,Mn)};var An=$n,Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-rate",class:{disabled:t.disabled}},t._l(5,(function(e){return n("RateIcon",{key:e,staticClass:"zi-rate-icon",class:[t.classes(e),{disabled:t.disabled}],attrs:{"is-active":t.isActive(e)},on:{click:function(n){return t.clickHandler(e)},mousemove:function(n){!t.disabled&&(t.hoverIndex=e)},mouseleave:function(e){t.hoverIndex=0}}})})),1)},Ln=[],Dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",t._g({attrs:{viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","shape-rendering":"geometricPrecision"}},t.listeners),[n("path",{attrs:{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}})])},Pn=[],In={name:"zi-rate-icon",props:{isActive:Boolean},computed:{listeners:function(){return this.$listeners}}},Wn=In,Rn=y(Wn,Dn,Pn,!1,null,null,null),Hn=Rn.exports,Vn={name:"zi-rate",components:{RateIcon:Hn},data:function(){return{privateModel:void 0,hoverIndex:0}},props:{value:Number,disabled:Boolean},computed:{model:{get:function(){return this.privateModel||this.value},set:function(t){this.privateModel=t,this.$emit("input",t)}}},watch:{value:function(t){this.privateModel=t}},methods:{clickHandler:function(t){this.disabled||(this.model=t)},isActive:function(t){return t<=this.model},classes:function(t){var e="";return e=t<=this.model?"active":" ",t<=this.hoverIndex&&(e+=" hover"),e.trim()}}},qn=Vn,Xn=(n("c155"),y(qn,Tn,Ln,!1,null,null,null)),Gn=Xn.exports;Gn.install=function(t){t.component(Gn.name,Gn)};var Fn=Gn,Un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"zi-tag",class:t.type||t.classes},[t._t("default")],2)},Zn=[],Yn={name:"zi-tag",props:{type:{type:String,validator:r.enums(["success","warning","danger"])},success:Boolean,warning:Boolean,danger:Boolean},computed:{classes:function(){var t="";return this.success&&(t+="success"),this.warning&&(t+="warning"),this.danger&&(t+="danger"),t}}},Jn=Yn,Kn=(n("01de"),y(Jn,Un,Zn,!1,null,null,null)),Qn=Kn.exports;Qn.install=function(t){t.component(Qn.name,Qn)};var ti=Qn,ei=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-toast-container"},[n("div",{staticClass:"zi-toast",class:t.type&&t.type},[n("span",{staticClass:"message",class:{action:t.action}},[t._v(t._s(t.text))]),t.action?n("zi-button",{attrs:{auto:"",ghost:"",size:"mini",type:t.type||"normal"},on:{click:function(e){t.handler&&t.handler()}}},[t._v(t._s(t.action))]):t._e()],1)])},ni=[];function ii(t){return ii="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},ii(t)}var ri={name:"zi-toast-template",data:function(){return{text:"",action:"",type:"",handler:function(){return{}}}},methods:{init:function(t){if("object"!==ii(t))return this.text=t;var e=t.text,n=t.action,i=t.handler,r=t.type;this.text=e,this.action=n,this.handler=i,this.type=r}}},oi=ri,si=(n("d469"),y(oi,ei,ni,!1,null,null,null)),ai=si.exports,li=n("8bbf"),ci=n.n(li);function ui(t){return ui="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},ui(t)}var di=ci.a.extend(ai),fi=function(){var t=document.querySelector(".zi-toast-area");if(t)return t;var e=document.createElement("div");return e.classList.add("zi-toast-area"),document.body.appendChild(e),e},pi=function(t,e,n){e.setAttribute("id","zi-toast-".concat(n)),t.appendChild(e);var i=setTimeout((function(){e.classList.add("visible"),clearTimeout(i)}),0)},hi=function(t,e){var n=e?fi():document.querySelector("#zi-toast-".concat(t));if(n){n.setAttribute("style","opacity: 0;");var i=setTimeout((function(){n.parentElement.removeChild(n),clearTimeout(i)}),500)}},mi=function(t){var e=new di({mounted:function(){this.init(t)}});if(e.vm=e.$mount(),e.close=function(){return hi(e._uid)},pi(fi(),e.vm.$el,e._uid),t.duration||void 0===t.duration)var n=Number.isNaN(+t.duration)?4500:t.duration,i=setTimeout((function(){e.close(),clearTimeout(i)}),n);return e},vi=function(t,e){var n="object"!==ui(t)?{text:t}:t;return Object.assign({},n,e)},bi=function(){return{show:function(t){return mi(t)},success:function(t){return this.show(vi(t,{type:"success"}))},warning:function(t){return this.show(vi(t,{type:"warning"}))},danger:function(t){return this.show(vi(t,{type:"danger"}))},closeAll:function(){hi(0,!0)}}},gi={install:function(t){return t.prototype.$Toast=bi(t)}};ai.install=function(t){t.component(ai.name,ai),t.use(gi)};var yi=ai,wi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-note",class:(t.inUseType||"")+" "+(t.isFilled?"filled":"")},[""!==t.label?n("span",{staticClass:"zi-note-type"},[n("b",[t._v(t._s((t.label||t.inUseType||"note")+": "))])]):t._e(),t._t("default")],2)},xi=[],_i={name:"zi-note",props:{type:{type:String,validator:r.enums(["primary","success","error","warning","secondary"])},fill:Boolean,filled:Boolean,label:String,success:Boolean,warning:Boolean,error:Boolean,secondary:Boolean},computed:{classes:function(){var t="";return this.success&&(t+="success"),this.error&&(t+="error"),this.warning&&(t+="warning"),this.secondary&&(t+="secondary"),t},inUseType:function(){return this.classes||this.type},isFilled:function(){return this.fill&&(console.warn('[zi-note] > **DEPRECATION**: The props "fill" is deprecated.'),console.warn('[zi-note] > **DEPRECATION**: Please use "filled" instead of "fill".')),this.fill||this.filled}}},zi=_i,Ci=(n("cb37"),y(zi,wi,xi,!1,null,null,null)),Si=Ci.exports;Si.install=function(t){return t.component(Si.name,Si)};var ki=Si,$i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-spinner",class:[t.size&&t.size,{auto:t.auto}]},[n("div",{staticClass:"zi-spinner-container"},t._l(12,(function(t){return n("div",{key:"zi-spinner-bar-"+t,staticClass:"zi-spinner-bar"})})),0)])},Ei=[],Oi={name:"zi-spinner",props:{size:{type:String,validator:r.enums(["mini","small","normal","big"])},auto:Boolean}},ji=Oi,Bi=(n("c190"),y(ji,$i,Ei,!1,null,null,null)),Ni=Bi.exports;Ni.install=function(t){t.component(Ni.name,Ni)};var Mi=Ni,Ai=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"popover",on:{click:function(t){t.stopPropagation()},mousemove:function(e){return t.hoverToggle(!0)},mouseleave:function(e){return t.hoverToggle(!1)}}},[n("span",{staticClass:"host",on:{click:function(e){return e.stopPropagation(),t.toggle(e)}}},[t._t("default")],2),n("transition",{attrs:{name:"zi-fade-in"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"dropdown",class:t.align},[n("PopoverIcon",{staticClass:"icon"}),n("div",{staticClass:"slot-container"},[t._t("dropdown")],2)],1)])],1)},Ti=[],Li=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"24",height:"12",viewBox:"0 0 24 12"}},[n("path",{attrs:{fill:"var(--geist-background)","stroke-width":"1px",stroke:"var(--accents-2)","fill-rule":"evenodd",d:"M20 12l-8-8-12 12"}})])},Di=[],Pi={name:"zi-popover-icon"},Ii=Pi,Wi=y(Ii,Li,Di,!1,null,null,null),Ri=Wi.exports,Hi={name:"zi-popover",components:{PopoverIcon:Ri},data:function(){return{visible:!1}},props:{align:{type:String,validator:r.enums(["left","right","center"]),default:"center"},hideOnClick:{type:Boolean,default:!0},hoverable:Boolean,delay:[Number,String]},methods:{toggle:function(){this.hoverable||(this.visible=!this.visible,document.removeEventListener("click",this.globalHandler),this.visible&&document.addEventListener("click",this.globalHandler))},hoverToggle:function(t){var e=this;if(this.hoverable){var n=Number.isNaN(+this.delay)?300:+this.delay;if(t)return this.timer&&clearTimeout(this.timer),void(this.visible=!0);this.timer=setTimeout((function(){e.visible=!1,clearTimeout(e.timer)}),n)}},globalHandler:function(){this.visible=!1},childTrigger:function(t){this.$emit("command",t),this.hideOnClick&&(document.removeEventListener("click",this.globalHandler),this.visible=!1)}}},Vi=Hi,qi=(n("c6ba"),y(Vi,Ai,Ti,!1,null,"418930c8",null)),Xi=qi.exports,Gi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"popover-item",class:{primary:t.primary,nohover:t.nohover,line:t.line,disabled:t.disabled},on:{click:function(e){return e.stopPropagation(),t.clickHandler(e)}}},[t.nohover?t._e():n("span",{staticClass:"text"},[t._t("default")],2),!t.line&&t.title?n("span",{staticClass:"title"},[t._t("default")],2):t._e(),!t.line&&t.subtitle?n("span",{staticClass:"subtitle"},[t._t("default")],2):t._e()])},Fi=[],Ui={name:"zi-popover-item",props:{line:Boolean,title:Boolean,subtitle:Boolean,primary:Boolean,disabled:Boolean,href:String,to:String,command:[String,Number,Object]},mounted:function(){if(!this.inGroup)return print.error("".concat(this.$options.name," required parent component: [zi-popover]"))},computed:{nohover:function(){return this.line||this.title||this.subtitle},inGroup:function(){var t=this.$parent;while(t){if("zi-popover"===t.$options.name)return this._group=t,!0;t=t.$parent}return!1}},methods:{clickHandler:function(){this.disabled||(this.href&&(window.location.href=this.href),this.to&&this.$router&&this.$router.push(this.to),this._group&&this._group.childTrigger(this.command))}}},Zi=Ui,Yi=(n("a271"),y(Zi,Gi,Fi,!1,null,"5cb74712",null)),Ji=Yi.exports;Xi.install=function(t){t.component(Xi.name,Xi),t.component(Ji.name,Ji)};var Ki=Xi,Qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-radio-container"},[n("label",{staticClass:"zi-radio",class:t.classes},[n("span",{staticClass:"zi-radio-input",class:t.classes}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"zi-radio-original",attrs:{type:"radio",name:"-1",disabled:t.isDisabled},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{change:function(e){t.model=t.label}}}),n("span",{staticClass:"zi-radio-label"},[t._t("default")],2),t.description?n("span",{staticClass:"zi-radio-description"},[t._v(t._s(t.description))]):t._e()])])},tr=[],er={name:"zi-radio",data:function(){return{_model:!1}},props:{label:[String,Number],value:[String,Boolean,Number],disabled:{type:Boolean,defaultValue:!1},description:[String,Number]},computed:{model:{get:function(){return this.inGroup?this._group.model:void 0!==this.value?this.value:this._model},set:function(t){this.inGroup&&this._group.setLabelStatus(t),this.$emit("input",t)}},isDisabled:function(){return this.inGroup&&this._group.disabled||this.disabled},classes:function(){var t="";return this.isDisabled&&(t+=" disabled"),this.label===this.model&&(t+=" checked"),t},inGroup:function(){var t=this.$parent;while(t){if("zi-radio-group"===t.$options.name)return this._group=t,!0;t=t.$parent}return!1}}},nr=er,ir=(n("23a0"),y(nr,Qi,tr,!1,null,null,null)),rr=ir.exports,or=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-radio-group"},[t._t("default")],2)},sr=[],ar={name:"zi-radio-group",props:{value:[String,Number],disabled:Boolean},computed:{model:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{setLabelStatus:function(t){this.model=t}}},lr=ar,cr=y(lr,or,sr,!1,null,null,null),ur=cr.exports;rr.install=function(t){t.component(rr.name,rr),t.component(ur.name,ur)};var dr=rr,fr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"zi-link-wrapper"},[n("a",{staticClass:"zi-link",class:{"no-decoration":t.more,bold:t.bold,color:t.color},attrs:{href:t.hrefValue,target:t.target,rel:t.relValue},on:{click:t.goto}},[t._t("default"),!t.pure&&t.more?n("span",{staticClass:"zi-link-more",class:{color:t.color}},[t._v("→")]):t._e(),t.pure||t.more?t._e():n("LinkIcon",{attrs:{color:t.color}})],2)])},pr=[],hr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{style:{color:t.currentColor},attrs:{viewBox:"0 0 24 24",width:"1em",height:"1em",stroke:t.currentColor,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","shape-rendering":"geometricPrecision"}},[n("path",{attrs:{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}}),n("path",{attrs:{d:"M15 3h6v6"}}),n("path",{attrs:{d:"M10 14L21 3"}})])},mr=[],vr={name:"zi-link-icon",props:{color:Boolean},computed:{currentColor:function(){return this.color?"var(--geist-success)":"var(--geist-foreground)"}}},br=vr,gr=y(br,hr,mr,!1,null,null,null),yr=gr.exports,wr={name:"zi-link",components:{LinkIcon:yr},props:{href:String,to:[String,Object],more:Boolean,bold:Boolean,pure:Boolean,color:Boolean,target:{type:String,default:"_blank"},rel:{type:String}},computed:{relValue:function(){return this.rel?this.rel:"bookmark"},hrefValue:function(){return this.to?"javascript: void 0;":this.href}},methods:{goto:function(){this.$router&&this.to&&this.$router.push(this.to)}}},xr=wr,_r=(n("78c9"),y(xr,fr,pr,!1,null,null,null)),zr=_r.exports;zr.install=function(t){t.component(zr.name,zr)};var Cr=zr,Sr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"zi-dialog-backdrop"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!!t.model,expression:"!!model"}],staticClass:"zi-dialog-root"},[n("div",{staticClass:"zi-dialog-backdrop"}),t.closeByModal?n("div",{staticClass:"zi-dialog-backdrop responsive",on:{click:function(e){return e.target!==e.currentTarget?null:t.close(e)}}}):t._e(),n("transition",{attrs:{name:"zi-dialog-slide"}},[t.model?n("div",{staticClass:"zi-dialog-wrapper",style:{width:t.width,minWidth:t.width||""}},[n("div",{staticClass:"zi-dialog-content"},[t.title?n("h2",{staticClass:"header"},[t._v(t._s(t.title))]):t._e(),n("div",{staticClass:"body"},[t._t("default")],2)]),n("div",{staticClass:"zi-dialog-footer"},[n("button",{staticClass:"action",on:{click:function(e){return e.stopPropagation(),t.confirm(!1)}}},[t._v(t._s(t.cancel))]),n("button",{staticClass:"action",on:{click:function(e){return e.stopPropagation(),t.confirm(!0)}}},[t._v(t._s(t.done))])])]):t._e()])],1)])},kr=[],$r={name:"zi-dialog",data:function(){return{privateModel:!1}},props:{title:String,value:Boolean,width:String,cancel:{type:String,default:"cancel"},done:{type:String,default:"done"},beforeDone:{type:Function,default:function(t){return t()}},closeByModal:{type:Boolean,default:!0}},computed:{model:{get:function(){return void 0===this.value?this.privateModel:this.value},set:function(t){this.privateModel=t,this.$emit("input",t)}}},watch:{value:function(t){this.privateModel=t,l.lockScroll(this.privateModel)}},methods:{confirm:function(t){var e=this;if(t)return this.beforeDone((function(){e.model=!1,e.$emit("done")}));this.model=!1,this.$emit("cancel")},close:function(){this.closeByModal&&this.confirm(!1)}},mounted:function(){this.value&&l.lockScroll(this.value)}},Er=$r,Or=(n("fa26"),y(Er,Sr,kr,!1,null,"f60247cc",null)),jr=Or.exports;jr.install=function(t){t.component(jr.name,jr)};var Br=jr,Nr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zi-progress-bar",class: