@axentix/vue
Version:
Vue Axentix is the Axentix integration for the VueJS framework.
2 lines • 63.1 kB
JavaScript
(function(P,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue-demi")):typeof define=="function"&&define.amd?define(["exports","vue-demi"],t):(P=typeof globalThis<"u"?globalThis:P||self,t(P.VueAxentix={},P.VueDemi))})(this,function(P,t){"use strict";const N=e=>{t.isVue3||typeof window<"u"&&window.Vue&&window.Vue.use(e)},F=(e,l)=>{e.component(l.name,l)};var lt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tag,e._g(e._b({tag:"component",staticClass:"btn",class:e.classes},"component",e.$attrs,!1),e.listeners),[e.outline?n("span",{class:e.outlineClasses},[e._t("default",function(){return[e._v("Button")]})],2):e._t("default",function(){return[e._v("Button")]})],2)},nt=[];function V(e,l,n,s,a,o,r,u){var i=typeof e=="function"?e.options:e;l&&(i.render=l,i.staticRenderFns=n,i._compiled=!0),s&&(i.functional=!0),o&&(i._scopeId="data-v-"+o);var c;if(r?(c=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__<"u"&&(m=__VUE_SSR_CONTEXT__),a&&a.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(r)},i._ssrRegister=c):a&&(c=u?function(){a.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(i.functional){i._injectStyles=c;var y=i.render;i.render=function(v,C){return c.call(C),y(v,C)}}else{var _=i.beforeCreate;i.beforeCreate=_?[].concat(_,c):[c]}return{exports:e,options:i}}const at=t.defineComponent({name:"AxBtn",props:{tag:{type:String,default:"button",validator:e=>["a","button","div","router-link"].includes(e)},circle:{type:Boolean,default:!1},press:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},outlineOpening:{type:Boolean,default:!1},outlineInvert:{type:Boolean,default:!1},size:{type:String,default:"",validator:e=>["small","large",""].includes(e)},disabled:{type:Boolean,default:!1}},setup(e,l){const n=t.computed(()=>({"btn-circle":e.circle,"btn-press":e.press,"btn-outline":e.outline,"btn-opening":e.outlineOpening,"btn-small":e.size==="small","btn-large":e.size==="large",disabled:e.disabled})),s=t.computed(()=>({"btn-outline-text":e.outline,"btn-outline-invert":e.outlineInvert}));return{classes:n,outlineClasses:s,listeners:l.listeners?l.listeners:{}}}}),ye={};var st=V(at,lt,nt,!1,ot,null,null,null);function ot(e){for(let l in ye)this[l]=ye[l]}const rt=function(){return st.exports}(),re={install(e){F(e,rt)}};N(re);var it=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({staticClass:"btn-group",class:e.classes},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},ut=[];const ct=t.defineComponent({name:"AxBtnGroup",props:{vertical:{type:Boolean,default:!1},size:{type:String,default:"",validator:e=>["small","large",""].includes(e)}},setup(e,l){return{classes:t.computed(()=>({"btn-group-vertical":e.vertical,"btn-group-small":e.size==="small","btn-group-large":e.size==="large"})),listeners:l.listeners?l.listeners:{}}}}),xe={};var dt=V(ct,it,ut,!1,ft,null,null,null);function ft(e){for(let l in xe)this[l]=xe[l]}const vt=function(){return dt.exports}(),ie={install(e){F(e,vt)}};N(ie);const te=t.ref([]),Y=e=>te.value.push(e),G=e=>{const l=te.value.findIndex(n=>n.uid===e);l!==-1&&te.value.splice(l,1)},se=e=>te.value.filter(l=>l.type===e),z=()=>Date.now()+Math.random().toString().split(".")[1];var _t=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("form",e._g(e._b({ref:"form",class:e.classes},"form",e.$attrs,!1),e.listeners),[e._t("default")],2)},pt=[];const mt=t.defineComponent({name:"AxForm",props:{material:{type:Boolean,default:!1}},setup(e,l){const n=t.computed(()=>({"form-material":e.material})),s=["FormControl","FormCheck","FormAutocomplete","FormSwitch","FormSelect"],a=z(),o=t.ref(null);return t.provide("ax-form-material",e.material),t.provide("ax-form-uid",a),{form:o,classes:n,validate:()=>te.value.filter(c=>s.includes(c.type)&&c.data.FormUid===a).map(c=>c.data.validate()).every(c=>c),resetValidation:()=>te.value.filter(c=>s.includes(c.type)&&c.data.FormUid===a).map(c=>c.data.resetValidation()),reset:()=>o.value.reset(),listeners:l.listeners?l.listeners:{}}}}),be={};var ht=V(mt,_t,pt,!1,gt,null,null,null);function gt(e){for(let l in be)this[l]=be[l]}const yt=function(){return ht.exports}(),we={},xt={default:!1},Ce=t.isVue2?"value":"modelValue",bt=t.isVue2?"input":"update:modelValue";we[Ce]=xt;const U=t.defineComponent({props:we}),W=()=>Ce,X=()=>bt,ne={props:{rules:{type:Array,default:()=>[]},errorColor:{type:String,default:"#DF2C29"}}},Z=e=>{e.notValidHelper=null,e.notValidColor=null},ee=(e,l,n)=>{if(e.rules.length===0)return!0;let s;for(const a of e.rules){const o=a(l.value);if(o!==!0){s=o;break}}return!s||!n?(Z(n),!0):(typeof s=="string"&&(n.notValidHelper=s),n.notValidColor=e.errorColor,!1)};var wt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{staticClass:"form-check"},[e.type==="checkbox"?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox"},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e.computedValue},on:{input:e.validate,change:[function(s){var a=e.computedValue,o=s.target,r=!!o.checked;if(Array.isArray(a)){var u=e.nativeValue,i=e._i(a,u);o.checked?i<0&&(e.computedValue=a.concat([u])):i>-1&&(e.computedValue=a.slice(0,i).concat(a.slice(i+1)))}else e.computedValue=r},e.validate],click:function(s){s.stopPropagation()}}},"input",e.$attrs,!1)):e.type==="radio"?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio"},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{input:e.validate,change:[function(s){e.computedValue=e.nativeValue},e.validate],click:function(s){s.stopPropagation()}}},"input",e.$attrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:e.type},domProps:{value:e.nativeValue,value:e.computedValue},on:{input:[function(s){s.target.composing||(e.computedValue=s.target.value)},e.validate],change:e.validate,click:function(s){s.stopPropagation()}}},"input",e.$attrs,!1)),n("span",{class:e.spanClasses},[e._t("default")],2)])},Ct=[];const $t=t.defineComponent({name:"AxFormCheck",inheritAttrs:!1,mixins:[U,ne],props:{type:{type:String,default:"checkbox",validator:e=>["checkbox","radio"].includes(e)},full:{type:Boolean,default:!1},nativeValue:[String,Number,Boolean,Function,Object,Array]},setup(e,l){const n=t.toRefs(e)[W()],s=t.ref(null),a=t.ref(n.value),o=X(),r=z();t.watch(n,v=>{a.value=v});const u=t.computed(()=>({full:e.full})),i=t.inject("ax-form-uid"),c=t.inject("ax-form-field"),y=t.computed({get(){return a.value},set(v){a.value=v,l.emit(o,v)}}),_=()=>ee(e,a,c),m=()=>Z(c);return t.onMounted(()=>{Y({type:"FormCheck",uid:r,data:{FormUid:i,validate:_,resetValidation:m}})}),t.onUnmounted(()=>{G(r)}),{spanClasses:u,computedValue:y,validate:_,input:s,resetValidation:m}}}),$e={};var kt=V($t,wt,Ct,!1,At,null,null,null);function At(e){for(let l in $e)this[l]=$e[l]}const St=function(){return kt.exports}(),ke=(e,l)=>{e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||n.composedPath().includes(e)||l.value()},document.addEventListener("click",e.clickOutsideEvent)},Ae=e=>{document.removeEventListener("click",e.clickOutsideEvent)},ae=t.isVue2?{bind:ke,unbind:Ae}:{beforeMount:ke,unmounted:Ae};var Lt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.tag!=="textarea"?n(e.tag,e._b({directives:[{name:"ax-click-outside",rawName:"v-ax-click-outside",value:function(){return e.handleDiv(!1)},expression:"() => handleDiv(false)"}],ref:"input",tag:"component",staticClass:"form-control",class:e.classes,attrs:{value:e.computedValue?e.computedValue:""},on:{focus:e.handle,blur:e.handle,click:e.handleDiv,change:e.onChange,input:e.onInput}},"component",e.$attrs,!1),[e._t("default")],2):n("textarea",e._b({directives:[{name:"ax-click-outside",rawName:"v-ax-click-outside",value:function(){return e.handleDiv(!1)},expression:"() => handleDiv(false)"}],ref:"input",staticClass:"form-control",class:e.classes,domProps:{value:e.computedValue?e.computedValue:""},on:{focus:e.handle,blur:e.handle,click:e.handleDiv,change:e.onChange,input:e.onInput}},"textarea",e.$attrs,!1),[e._v(" <slot></slot> ")])},Et=[];const ta="",Tt=t.defineComponent({name:"AxFormControl",directives:{axClickOutside:ae},mixins:[U,ne],props:{tag:{type:String,default:"input"},customSelect:{type:Boolean,default:!1},autocomplete:{type:Number,default:-1},singleLine:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},setup(e,l){const n=t.ref(null),s=t.toRefs(e)[W()],a=t.ref(s.value),o=t.ref(!1),r=t.reactive({active:!1,"is-focused":!1,"is-textarea-focused":!1}),u=t.reactive({"--ax-form-material-position":0,"--ax-form-material-left-offset":0,"--ax-form-material-right-offset":0,"--ax-form-material-width":0}),i=t.ref(null),c=X(),y=z(),_=t.inject("ax-form-material",!1),m=t.inject("ax-form-uid"),v=t.inject("ax-form-field");t.watch(()=>({...v}),()=>{A()}),t.watch(r,()=>{v.extraClasses=r}),t.watch(u,()=>{v.extraStyle=u}),t.watch(s,h=>{a.value=h});const C=t.computed({get(){return a.value},set(h){a.value=h,l.emit(c,h)}});t.watch(C,()=>{e.tag!=="div"&&A()});const $=t.computed(()=>({"custom-select":e.customSelect,"single-line":e.singleLine})),T=h=>{C.value=h.target.value,e.lazy||B()},L=h=>{C.value=h.target.value},p=()=>{n.value||(n.value=A.bind(),window.addEventListener("resize",n.value))},g=()=>{n.value&&(window.removeEventListener("resize",n.value),n.value=null)},b=(h=!0,w)=>{e.tag==="div"&&(o.value=h,A(w))},A=h=>{if(h&&(h.type==="click"||h.type==="blur")&&B(),!_){g();return}if(!v||v.default){g();return}p();const w=r.active;let f;e.tag==="div"?f=e.autocomplete!==-1?e.autocomplete>0:i.value.innerHTML.trim()!=="":f=i.value.value.length>0||i.value.tagName!=="SELECT"&&i.value.placeholder.length>0||i.value.tagName==="SELECT"||i.value.matches('[type="date"]')||i.value.matches('[type="month"]')||i.value.matches('[type="week"]')||i.value.matches('[type="time"]');const x=document.activeElement===i.value||e.tag==="div"&&o.value;I(w,f,x)},I=(h,w,f)=>{const x=i.value.type==="textarea";!h&&(w||f)?r.active=!0:h&&!(w||f)&&(r.active=!1),x||R(),f&&!x?r["is-focused"]=!0:r["is-focused"]=!1,f&&x?r["is-textarea-focused"]=!0:r["is-textarea-focused"]=!1},R=()=>{const h=i.value.clientWidth,w=i.value.offsetLeft,f=i.value.clientHeight+i.value.offsetTop+"px";u["--ax-form-material-position"]=f;let x=w,M="left",k=h+"px",O="0";v.rtl&&(M="right",x=v.field.clientWidth-h-w),u[`--ax-form-material-${M}-offset`]=x+"px",x!=0&&(O=w),u["--ax-form-material-width"]=k;const H=v.labelRef;H&&(H.style.left=O+"px")},B=()=>ee(e,a,v),d=()=>Z(v);return t.onMounted(()=>{Y({type:"FormControl",uid:y,data:{FormUid:m,validate:B,resetValidation:d}}),A()}),t.onUpdated(()=>{A()}),t.onUnmounted(()=>{g(),G(y)}),{handle:A,handleDiv:b,input:i,classes:$,computedValue:C,onInput:T,onChange:L,validate:B,resetValidation:d}}}),Se={};var Rt=V(Tt,Lt,Et,!1,Ft,"a54331d4",null,null);function Ft(e){for(let l in Se)this[l]=Se[l]}const Vt=function(){return Rt.exports}();var Mt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({ref:"field",staticClass:"form-field",class:[e.classes,e.extraClasses],style:[e.style,e.extraStyle]},"div",e.$attrs,!1),e.listeners),[e.label?n("label",{ref:"labelRef"},[e._v(e._s(e.label))]):e._e(),e._t("default"),e.helper&&!e.notValidHelper?n("span",{staticClass:"form-helper",class:e.helperClasses},[e._v(e._s(e.helper))]):e.notValidHelper?n("span",{staticClass:"form-helper text-error",class:e.helperClasses},[e._v(" "+e._s(e.notValidHelper)+" ")]):e._e()],2)},Bt=[];const la="",Pt=t.defineComponent({name:"AxFormField",props:{label:{type:String,default:""},inline:{type:Boolean,default:!1},helper:{type:String,default:""},helperClasses:{type:String,default:""},default:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},materialColor:{type:String,default:"#4c9f85"}},setup(e,l){const n=t.computed(()=>({"form-inline":e.inline,"form-default":e.default,"form-rtl":e.rtl,"not-valid":!!s.value})),s=t.ref(null),a=t.ref(null),o=t.ref(null),r=t.ref(null),u=t.ref(null),i=t.ref(null);t.provide("ax-form-field",t.reactive({notValidColor:s,notValidHelper:a,extraClasses:o,extraStyle:r,default:e.default,rtl:e.rtl,field:i,labelRef:u}));const c=t.computed(()=>({"--ax-form-material-color":s.value?s.value:e.materialColor}));return{classes:n,field:i,labelRef:u,style:c,notValidColor:s,notValidHelper:a,extraClasses:o,extraStyle:r,listeners:l.listeners?l.listeners:{}}}}),Le={};var It=V(Pt,Mt,Bt,!1,jt,null,null,null);function jt(e){for(let l in Le)this[l]=Le[l]}const Ot=function(){return It.exports}();var zt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"form-file"},[n("label",{class:e.labelClasses,attrs:{for:e.id}},[e._v(e._s(e.label))]),n("input",e._g(e._b({ref:"input",attrs:{type:"file",id:e.id},on:{change:e.handleFileInput}},"input",e.$attrs,!1),e.listeners)),n("div",{ref:"path",staticClass:"form-file-path"})])},Ht=[];const Nt=t.defineComponent({name:"AxFormFile",inheritAttrs:!1,props:{labelClasses:{type:String,default:""},label:{type:String,default:""},id:{type:String,default:"input"}},setup(e,l){const n=t.ref(null),s=t.ref(null);return{handleFileInput:()=>{const o=n.value.files;o.length>1?s.value.innerHTML=Array.from(o).reduce((r,u)=>(r.push(u.name),r),[]).join(", "):o[0]&&(s.value.innerHTML=o[0].name)},input:n,path:s,listeners:l.listeners?l.listeners:{}}}}),Ee={};var Ut=V(Nt,zt,Ht,!1,Wt,null,null,null);function Wt(e){for(let l in Ee)this[l]=Ee[l]}const Xt=function(){return Ut.exports}();var Yt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({staticClass:"form-group"},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},Gt=[];const qt=t.defineComponent({name:"AxFormGroup",setup(e,l){return{listeners:l.listeners?l.listeners:{}}}}),Te={};var Kt=V(qt,Yt,Gt,!1,Zt,null,null,null);function Zt(e){for(let l in Te)this[l]=Te[l]}const Jt=function(){return Kt.exports}();var Qt=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{staticClass:"form-switch",class:e.labelClasses},[e._t("false-value"),n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.computedValue)?e._i(e.computedValue,null)>-1:e.computedValue},on:{input:e.validate,change:[function(s){var a=e.computedValue,o=s.target,r=!!o.checked;if(Array.isArray(a)){var u=null,i=e._i(a,u);o.checked?i<0&&(e.computedValue=a.concat([u])):i>-1&&(e.computedValue=a.slice(0,i).concat(a.slice(i+1)))}else e.computedValue=r},e.validate]}},"input",e.$attrs,!1)),n("span",{ref:"slider",staticClass:"form-slider",class:e.classes,style:e.style}),e._t("default")],2)},Dt=[];const el=t.defineComponent({name:"AxFormSwitch",inheritAttrs:!1,mixins:[U,ne],props:{labelClasses:{type:String,default:""},thin:{type:Boolean,default:!1},size:{type:String,default:"",validator:e=>["small","large",""].includes(e)},color:{type:String,default:"#4c9f85"}},setup(e,l){const n=t.toRefs(e)[W()],s=t.ref(null),a=t.ref(null),o=t.ref(n.value),r=X(),u=z(),i=t.inject("ax-form-uid"),c=t.inject("ax-form-field");t.watch(n,$=>{o.value=$});const y=t.computed(()=>({"form-slider-thin":e.thin,"form-slider-small":e.size==="small","form-slider-large":e.size==="large"})),_=t.computed(()=>({"--ax-form-switch-active-color":e.color})),m=t.computed({get(){return o.value},set($){o.value=$,l.emit(r,$)}}),v=()=>ee(e,o,c),C=()=>Z(c);return t.onMounted(()=>{Y({type:"FormSwitch",uid:u,data:{FormUid:i,validate:v,resetValidation:C}})}),t.onUnmounted(()=>{G(u)}),{classes:y,input:s,slider:a,style:_,computedValue:m,validate:v,resetValidation:C}}}),Re={};var tl=V(el,Qt,Dt,!1,ll,null,null,null);function ll(e){for(let l in Re)this[l]=Re[l]}const nl=function(){return tl.exports}(),Fe={directives:{axClickOutside:ae},props:{multiple:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},closeOnClick:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!1},chips:{type:Boolean,default:!1},chipsClosable:{type:Boolean,default:!1}}},Ve=(e,l,n,s,a,o,r,u,i,c="")=>{e.value=[...new Set(l.value)].reduce((y,_,m)=>{let v;const C={index:m};typeof _!="object"?v=Object.assign({name:_,value:_},C):(v=Object.assign(_,C),typeof v.value>"u"&&(v.value=v.name));const $=v.selected&&!n.value||!s.multiple&&n.value===v.value||s.multiple&&n.value&&n.value.includes(v.value)||s.multiple&&n.value&&n.value.length===0&&v.selected;return v.selected=$,$&&(s.multiple&&!a.value.some(T=>v.value===T.value)?a.value.push(v):o.value=v,c&&!s.multiple&&(c.value=v.name),r.emit(u,i.value)),y.push(v),y},[])},Me=(e=!1,l,n,s,a)=>{if(e){l.value=!0,setTimeout(()=>{a.value.getBoundingClientRect().bottom<=(window.innerHeight||document.documentElement.clientHeight)-10?s.value=!1:s.value=!0,n.value=1},50);return}n.value=0,setTimeout(()=>{l.value=!1,s.value=!1},300)},Be=(e,l,n,s,a,o)=>{if(n.value.length!==0){if(l.value&&l.value.index>=0){if(l.value.index===e)return;const r=n.value[l.value.index];r.selected=!1,n.value.splice(l.value.index,1,r)}if(e!==-1){const r=n.value[e];r.selected=!0,l.value=r,n.value.splice(e,1,r)}else l.value={};s.emit(a,o.value)}},Pe=(e,l,n,s,a,o)=>{if(e<0||l.value.length===0)return;const r=l.value[e],u=n.value.findIndex(i=>i.value===r.value&&r.selected);u!==-1?(r.selected=!1,n.value.splice(u,1)):(r.selected=!0,n.value.push(r)),l.value.splice(e,1,r),s.emit(a,o.value)},al=(e,l,n)=>{if(e<0||l.value.length===0)return;const s=l.value[e];s.selected=!1,l.value.splice(e,1,s);const a=n.value.findIndex(o=>o.value===s.value);n.value.splice(a,1)};var sl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._b({directives:[{name:"ax-click-outside",rawName:"v-ax-click-outside",value:function(){return e.toggle(!1)},expression:"() => toggle(false)"}]},"div",e.$attrs,!1),[n("ax-form-control",{attrs:{"custom-select":"",tag:"div","single-line":e.singleLine},nativeOn:{click:function(s){return(function(){return e.toggle(!0)}).apply(null,arguments)}}},[e.chips?[e.multiple?e._l(e.result,function(s,a){return n("div",{key:"auto-val-"+a,staticClass:"form-chips"},[e._v(" "+e._s(s.name)+" "),e.chipsClosable?n("span",{staticClass:"form-chips-closable",on:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.select(s.value)}}},[n("svg",{attrs:{version:"1.1",viewBox:"0 0 512 512","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("path",{attrs:{d:"M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"}})])]):e._e()])}):[e._v(e._s(e.result.name))]]:[e._v(" "+e._s(e.result.name)+" ")]],2),n("div",{ref:"container",staticClass:"form-select-content",style:e.style},[e._t("prepend",null,{toggle:e.toggle}),e._l(e.computedItems,function(s,a){return n("div",{key:"show-item-"+a,staticClass:"form-select-item",class:{selected:s.selected,disabled:s.disabled},on:{click:function(o){o.preventDefault(),s.disabled||e.select(s.value)}}},[e.multiple?n("ax-form-check",{attrs:{disabled:s.disabled},model:{value:s.selected,callback:function(o){e.$set(s,"selected",o)},expression:"item.selected"}},[e._v(" "+e._s(s.name)+" ")]):[e._v(e._s(s.name))]],2)}),e._t("append",null,{toggle:e.toggle})],2)],1)},ol=[];const na="",rl=t.defineComponent({name:"AxFormSelect",mixins:[U,Fe,ne],setup(e,l){const n=t.ref([]),s=t.ref(!1),a=t.ref(!1),o=t.ref(null),r=t.ref({}),u=t.ref([]),i=t.ref(!0),c=t.ref(0),y=t.toRefs(e).items,_=t.toRefs(e)[W()],m=X(),v=z(),C=t.inject("ax-form-uid"),$=t.inject("ax-form-field"),T=t.computed(()=>({display:s.value?"block":"",opacity:c.value,bottom:a.value?0:""})),L=t.computed(()=>e.multiple?u.value:r.value),p=t.computed(()=>{let d=e.multiple?u.value.map(h=>h.value):r.value.value;return typeof d>"u"&&(d=e.multiple?[]:""),d});t.watch(p,()=>{R()}),t.watch(_,d=>{if(e.multiple){if(!Array.isArray(d))return}else{if(r.value&&d===r.value.value)return;A(d);return}const h=d.filter(f=>!p.value.includes(f)),w=p.value.filter(f=>!d.includes(f));[...h,...w].map(f=>{const x=n.value.findIndex(M=>M.value===f||M.value===f.value);x>=0&&I(x)})}),t.watch(y,()=>{g()});const g=()=>Ve(n,y,_,e,u,r,l,m,p),b=(d=!1)=>{i.value&&d&&(i.value=!1),!d&&!i.value?R():i.value||Z($),Me(d,s,c,a,o)},A=d=>{const h=n.value.findIndex(w=>w.value===d);if(!(d&&h===-1)){if(e.multiple)return I(h);Be(h,r,n,l,m,p),e.closeOnClick&&b()}},I=d=>{e.multiple&&Pe(d,n,u,l,m,p)},R=()=>e.multiple?ee(e,u,$):ee(e,r,$),B=()=>Z($);return t.onMounted(()=>{Y({type:"FormSelect",uid:v,data:{FormUid:C,validate:R,resetValidation:B}}),g()}),t.onUnmounted(()=>{G(v)}),{style:T,toggle:b,select:A,result:L,container:o,computedItems:n,validate:R,resetValidation:B}}}),Ie={};var il=V(rl,sl,ol,!1,ul,null,null,null);function ul(e){for(let l in Ie)this[l]=Ie[l]}const cl=function(){return il.exports}();var dl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._b({directives:[{name:"ax-click-outside",rawName:"v-ax-click-outside",value:function(){return e.toggle(!1)},expression:"() => toggle(false)"}]},"div",e.$attrs,!1),[e.multiple?n("ax-form-control",{attrs:{"custom-select":"",autocomplete:e.autocompleteActive,tag:"div","single-line":e.singleLine},nativeOn:{click:function(s){return(function(){return e.toggle(!0)}).apply(null,arguments)}}},[e._l(e.result,function(s,a){return n("div",{key:"auto-val-"+a,staticClass:"form-autocomplete-selected",class:{"form-autocomplete-focused":a===e.result.length-1&&e.isFocused,"form-chips":e.chips}},[e._v(" "+e._s(s.name)),a!==e.result.length-1&&!e.chips?[e._v(",")]:e._e(),e.chips&&e.chipsClosable?n("span",{staticClass:"form-chips-closable",on:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.select(s.value)}}},[n("svg",{attrs:{version:"1.1",viewBox:"0 0 512 512","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("path",{attrs:{d:"M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"}})])]):e._e()],2)}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"input",staticClass:"form-autocomplete-input",attrs:{type:"text"},domProps:{value:e.inputValue},on:{input:function(s){s.target.composing||(e.inputValue=s.target.value)}}})],2):n("ax-form-control",{attrs:{"custom-select":"",autocomplete:e.autocompleteActive,tag:"input",type:"text","single-line":e.singleLine},nativeOn:{click:function(s){return(function(){return e.toggle(!0)}).apply(null,arguments)}},model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}}),n("div",{ref:"container",staticClass:"form-select-content",style:e.style},[e._t("prepend",null,{toggle:e.toggle}),e._l(e.filteredItems,function(s,a){return n("div",{key:"show-item-"+a,staticClass:"form-select-item",class:{selected:s.selected,disabled:s.disabled},on:{click:function(o){o.preventDefault(),s.disabled||e.select(s.value)}}},[e.multiple?n("ax-form-check",{attrs:{disabled:s.disabled},model:{value:s.selected,callback:function(o){e.$set(s,"selected",o)},expression:"item.selected"}},[e._v(" "+e._s(s.name)+" ")]):[e._v(e._s(s.name))]],2)}),e._t("append",null,{toggle:e.toggle})],2)],1)},fl=[];const aa="",vl=t.defineComponent({name:"AxFormAutocomplete",mixins:[U,Fe,ne],props:{filter:{type:Function,default:(e,l)=>e.filter(n=>n.name.toLowerCase().indexOf(l.toLowerCase())!==-1)}},setup(e,l){const n=t.ref([]),s=t.ref(!1),a=t.ref(!1),o=t.ref(null),r=t.ref(null),u=t.ref(""),i=t.ref({}),c=t.ref([]),y=t.ref(0),_=t.ref(""),m=t.ref(0),v=t.ref(!1),C=t.ref(!0),$=t.toRefs(e).items,T=t.toRefs(e)[W()],L=X(),p=z(),g=t.inject("ax-form-uid"),b=t.inject("ax-form-field"),A=t.computed(()=>({display:s.value?"block":"",opacity:m.value,bottom:a.value?"100%":""})),I=t.computed(()=>e.multiple?c.value:i.value),R=t.computed(()=>{let E=e.multiple?c.value.map(j=>j.value):i.value.value;return typeof E>"u"&&(E=e.multiple?[]:""),E}),B=t.computed(()=>e.filter(n.value,u.value)),d=t.computed(()=>R.value.length>0||m.value===1?1:u.value.length);t.watch(R,()=>{K()}),t.watch(u,(E,j)=>{_.value=j,i.value.index>=0&&E===""&&!e.multiple&&(al(i.value.index,n,c),l.emit(L,E))}),t.watch(T,E=>{if(e.multiple){if(!Array.isArray(E))return}else{if(i.value&&E===i.value.value)return;M(E);return}const j=E.filter(q=>!R.value.includes(q)),Q=R.value.filter(q=>!E.includes(q));[...j,...Q].map(q=>{const le=n.value.findIndex(oe=>oe.value===q||oe.value===q.value);le>=0&&k(le)})}),t.watch($,()=>{f()});const h=()=>{window.addEventListener("keyup",O),document.addEventListener("click",H)},w=()=>{window.removeEventListener("keyup",O),document.removeEventListener("click",H)},f=()=>Ve(n,$,T,e,c,i,l,L,R,u),x=(E=!1)=>{C.value&&E&&(C.value=!1),!E&&!C.value?K():C.value||Z(b),Me(E,s,m,a,o)},M=E=>{var Q,q;const j=n.value.findIndex(le=>le.value===E);if(!(E&&j===-1)){if(e.multiple)return k(j);Be(j,i,n,l,L,R),u.value=((Q=n.value[j])==null?void 0:Q.name)||"",e.closeOnClick&&((q=n.value[j])!=null&&q.name)&&x()}},k=E=>{e.multiple&&(Pe(E,n,c,l,L,R),s.value&&r.value.focus())},O=E=>{if(!(E.keyCode!==8||u.value!==""||c.value.length===0||!s.value)){if(_.value!==""){if(y.value++,y.value!==2)return;y.value=0,_.value=""}if(v.value){const j=c.value[c.value.length-1].index;k(j)}else v.value=!0;r.value.blur()}},H=()=>{v.value=!1},K=()=>e.multiple?ee(e,c,b):ee(e,i,b),J=()=>Z(b);return t.onMounted(()=>{Y({type:"FormAutocomplete",uid:p,data:{FormUid:g,validate:K,resetValidation:J}}),h(),f()}),t.onUnmounted(()=>{w(),G(p)}),{style:A,toggle:x,select:M,result:I,container:o,input:r,isFocused:v,inputValue:u,filteredItems:B,validate:K,autocompleteActive:d,resetValidation:J}}}),je={};var _l=V(vl,dl,fl,!1,pl,null,null,null);function pl(e){for(let l in je)this[l]=je[l]}const ml=function(){return _l.exports}(),ue={install(e){F(e,yt),F(e,St),F(e,Vt),F(e,Ot),F(e,Xt),F(e,Jt),F(e,nl),F(e,cl),F(e,ml)}};N(ue);var hl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"container"},[n("img",e._g(e._b({ref:"lightbox",staticClass:"lightbox",class:e.classes,style:e.style,attrs:{alt:"lightbox"},on:{click:e.onClickTrigger,keyup:e.closeLightbox}},"img",e.$attrs,!1),e.listeners))])},gl=[];const yl=t.defineComponent({name:"AxLightbox",inheritAttrs:!1,mixins:[U],props:{responsive:{type:Boolean,default:!1},animationDuration:{type:Number,default:400},overlayClass:{type:String,default:"grey dark-4"},offset:{type:Number,default:150},mobileOffset:{type:Number,default:80},caption:{type:String,default:""}},setup(e,l){const n=t.ref(!1),s=t.toRefs(e)[W()],a=t.ref(""),o=t.ref(null),r=t.ref(null),u=t.ref(null),i=t.ref(null),c=t.ref(null),y=t.ref(0),_=t.ref(0),m=t.ref(null),v=t.ref(null),C=t.ref(null),$=t.ref(null),T=t.ref(null),L=t.ref(null),p=t.ref(null),g=t.ref(!1),b=t.ref(!1),A=t.ref([]),I=X(),R=z(),B=t.computed(()=>({"responsive-media":e.responsive})),d=t.computed(()=>({transitionDuration:e.animationDuration+"ms",position:a.value}));t.watch(s,S=>{if(S===null){n.value?j():Q();return}n.value=S,S&&!b.value?j():!g.value&&(!n.value||b.value)&&Q()}),t.watch(n,S=>{l.emit(I,S)});const h=()=>{Y({type:"Lightbox",uid:R}),w(),s.value&&j(),l.emit("setup")},w=()=>{T.value=x.bind(this),v.value=M.bind(this),C.value=k.bind(this),m.value=O.bind(this),L.value=J.bind(this),window.addEventListener("resize",m.value),window.addEventListener("keyup",v.value),window.addEventListener("scroll",C.value),o.value.addEventListener("transitionend",L.value)},f=()=>{window.removeEventListener("resize",m.value),tt()},x=S=>{S.preventDefault(),n.value=!n.value},M=S=>{S.key==="Escape"&&(b.value||n.value)&&(n.value=!1)},k=()=>{(n.value||!g.value&&b.value)&&(n.value=!1)},O=()=>{n.value&&(n.value=!1)},H=()=>{$.value=K.bind(this),u.value.addEventListener("click",$.value)},K=S=>{S.preventDefault(),u.value.removeEventListener("click",$.value),n.value=!1},J=S=>{S.propertyName!=="width"&&S.propertyName!=="height"||(g.value?(q(),g.value=!1,l.emit("closed")):b.value&&(b.value=!1,n.value=!0,l.emit("opened")))},E=()=>{const S=window.innerWidth>=960?e.offset:e.mobileOffset;window.innerWidth/window.innerHeight>=c.value.width/c.value.height?(_.value=window.innerHeight-S,y.value=_.value*c.value.width/c.value.height):(y.value=window.innerWidth-S,_.value=y.value*c.value.height/c.value.width)},j=()=>{if(b.value)return;clearTimeout(p.value),b.value=!0;let S,D;g.value?S=D=r.value.getBoundingClientRect():S=D=o.value.getBoundingClientRect(),g.value=!1,qn(),Kn();const Jn=window.innerHeight/2,Qn=window.innerWidth/2;c.value=S,o.value.style.width=c.value.width+"px",o.value.style.height=c.value.height+"px",o.value.style.top="0",o.value.style.left="0";const Dn=Jn+window.scrollY-(D.top+window.scrollY),ea=Qn+window.scrollX-(D.left+window.scrollX);E(),r.value.style.position="relative",p.value=setTimeout(()=>{l.emit("open"),e.responsive&&o.value.classList.remove("responsive-media"),o.value.classList.add("active"),r.value.style.width=c.value.width+"px",r.value.style.height=c.value.height+"px",o.value.style.width=y.value+"px",o.value.style.height=_.value+"px",o.value.style.top=Dn-_.value/2+"px",o.value.style.left=ea-y.value/2+"px"},50)},Q=()=>{clearTimeout(p.value),g.value=!0,b.value=!1,setTimeout(()=>{Zn()},50),l.emit("close"),o.value.style.position="absolute",o.value.style.top="0px",o.value.style.left="0px",o.value.style.width=c.value.width+"px",o.value.style.height=c.value.height+"px"},q=()=>{o.value.classList.remove("active"),tt(),e.responsive&&o.value.classList.add("responsive-media"),r.value.removeAttribute("style"),o.value.style.position="",o.value.style.left="",o.value.style.top="",o.value.style.width="",o.value.style.height="",o.value.style.transform="",oe()},le=()=>{A.value=[];for(let S=o.value;S&&S!==document;S=S.parentNode){const D=window.getComputedStyle(S);(D.overflow==="hidden"||D.overflowX==="hidden"||D.overflowY==="hidden"||S===document.body)&&(A.value.push(S),S.style.setProperty("overflow","visible","important"))}},oe=()=>{A.value.forEach(S=>S.style.overflow=""),document.body.style.overflowX=""},qn=()=>{if(u.value){H();return}le(),u.value=document.createElement("div"),u.value.style.transitionDuration=e.animationDuration+"ms",u.value.className=`lightbox-overlay ${e.overlayClass}`,r.value.appendChild(u.value),e.caption&&(i.value=document.createElement("p"),i.value.className="lightbox-caption",i.value.innerHTML=e.caption,u.value.appendChild(i.value)),H()},tt=()=>{u.value&&(e.caption&&i.value.remove(),u.value.removeEventListener("click",$.value),u.value.remove(),u.value=null)},Kn=()=>{setTimeout(()=>{u.value&&(u.value.style.opacity=1)},50)},Zn=()=>{u.value&&(u.value.style.opacity=0)};return t.onMounted(()=>{h()}),t.onUnmounted(()=>{f(),G(R)}),{classes:B,lightbox:o,container:r,closeLightbox:Q,style:d,onClickTrigger:x,listeners:l.listeners?l.listeners:{}}}}),Oe={};var xl=V(yl,hl,gl,!1,bl,null,null,null);function bl(e){for(let l in Oe)this[l]=Oe[l]}const wl=function(){return xl.exports}(),ce={install(e){F(e,wl)}};N(ce);var Cl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({ref:"collapsible",staticClass:"collapsible",class:e.classes,style:e.style},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},$l=[];const kl=t.defineComponent({name:"AxCollapsible",mixins:[U],props:{animationDuration:{type:Number,default:300},autoClose:{type:Boolean,default:!0}},setup(e,l){const n=t.toRefs(e)[W()],s=X(),a=t.ref(!1),o=t.ref(!1),r=t.ref(null),u=t.ref(null),i=t.ref(null),c=t.ref(null),y=z(),_=t.inject("ax-sidenav",null),m=t.computed(()=>({active:a.value})),v=t.computed(()=>({transitionDuration:e.animationDuration+"ms",maxHeight:r.value,display:u.value,overflow:o.value?"hidden":"visible"}));t.watch(n,b=>{b!==null&&(b?p():g(),l.emit(s,a.value))}),t.watch(a,b=>{l.emit(s,b)});const C=()=>{Y({type:"Collapsible",uid:y,data:{closeCollapsible:g}}),$(),n.value&&p(),l.emit("setup")},$=()=>{c.value=L.bind(this),window.addEventListener("resize",c.value)},T=()=>{window.removeEventListener("resize",c.value)},L=()=>{a.value&&!_&&(v.value.maxHeight=i.value.scrollHeight+"px")},p=()=>{o.value||a.value||(se("Collapsible").map(b=>{b.data.closeCollapsible(i.value,_)}),l.emit("open"),a.value=!0,o.value=!0,u.value="block",setTimeout(()=>{r.value=i.value.scrollHeight+"px"},10),setTimeout(()=>{o.value=!1},e.animationDuration+10))},g=(b,A)=>{o.value&&!b||b===i.value||!a.value||b&&(!e.autoClose||!_||_&&_!==A)||(l.emit("close"),a.value=!1,setTimeout(()=>{o.value=!0,r.value="0"},10),setTimeout(()=>{u.value="",o.value=!1},e.animationDuration+10))};return t.onMounted(()=>{C()}),t.onUnmounted(()=>{T(),G(y)}),{classes:m,style:v,collapsible:i,closeCollapsible:g,listeners:l.listeners?l.listeners:{}}}}),ze={};var Al=V(kl,Cl,$l,!1,Sl,null,null,null);function Sl(e){for(let l in ze)this[l]=ze[l]}const Ll=function(){return Al.exports}(),de={install(e){F(e,Ll)}};N(de);var El=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({directives:[{name:"ax-click-outside",rawName:"v-ax-click-outside",value:function(){return e.onDocumentClick()},expression:"() => onDocumentClick()"}],staticClass:"dropdown",class:[e.classes,e.animation],style:e.style},"div",e.$attrs,!1),e.listeners),[e._t("trigger",null,{trigger:e.onTriggerClick}),n("div",{ref:"content",staticClass:"dropdown-content",class:[{"dropdown-constrain-width":e.constrainWidth},e.contentClasses],style:e.contentStyle,on:{click:e.onTriggerClick}},[e._t("default")],2)],2)},Tl=[];const Rl=t.defineComponent({name:"AxDropdown",mixins:[U],directives:{axClickOutside:ae},props:{animationDuration:{type:Number,default:300},animationType:{type:String,default:"none",validator:e=>["none","fade"].includes(e)},constrainWidth:{type:Boolean,default:!1},contentClasses:{type:String,default:""},autoClose:{type:Boolean,default:!0},preventViewport:{type:Boolean,default:!1}},setup(e,l){const n=t.toRefs(e)[W()],s=X(),a=t.ref(!1),o=t.ref(!1),r=t.ref(0),u=t.ref(""),i=t.ref(null),c=z(),y=t.computed(()=>({active:a.value,"dropdown-vp":e.preventViewport})),_=t.computed(()=>({transitionDuration:e.animationType!=="none"?e.animationDuration+"ms":""})),m=t.computed(()=>({display:u.value,maxHeight:r.value?r.value:"auto"}));t.watch(n,g=>{g!==null&&(g?L():p(),l.emit(s,g))}),t.watch(a,g=>{l.emit(s,g)});const v=()=>{Y({type:"Dropdown",uid:c,data:{closeDropdown:p}}),n.value&&(L(),a.value=!0),l.emit("setup")},C=()=>{o.value||(a.value?p():L())},$=()=>{o.value||!a.value||p()},T=()=>{const g=i.value.getBoundingClientRect(),b=g.height-(g.bottom-(window.innerHeight||document.documentElement.clientHeight))-10;r.value=b+"px"},L=()=>{a.value||o.value||(e.autoClose&&se("Dropdown").map(g=>{g.data.closeDropdown()}),l.emit("open"),u.value="flex",setTimeout(()=>{a.value=!0,e.preventViewport&&T()},10),e.animationType!=="none"?(o.value=!0,setTimeout(()=>{o.value=!1,l.emit("opened")},e.animationDuration)):l.emit("opened"))},p=()=>{a.value&&(l.emit("close"),a.value=!1,e.animationType!=="none"?(o.value=!0,setTimeout(()=>{u.value="",o.value=!1,l.emit("closed")},e.animationDuration)):(u.value="",o.value=!1,l.emit("closed")))};return t.onMounted(()=>{v()}),t.onUnmounted(()=>{G(c)}),{classes:y,style:_,content:i,contentStyle:m,onDocumentClick:$,onTriggerClick:C,animation:`dropdown-anim-${e.animationType}`,listeners:l.listeners?l.listeners:{}}}}),He={};var Fl=V(Rl,El,Tl,!1,Vl,null,null,null);function Vl(e){for(let l in He)this[l]=He[l]}const Ml=function(){return Fl.exports}(),fe={install(e){F(e,Ml)}};N(fe);var Bl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",[n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table",class:[e.classes,{"table-hover":e.hover}]},[n("thead",[n("tr",{staticClass:"datatable-head"},[e._l(e.localHeaders,function(s,a){return n("th",{key:a,class:{"datatable-sortable":s.sortable!==!1},on:{click:function(o){return e.sortBy(s)}}},[e._v(" "+e._s(s.text)+" "),s.sortable!==!1?[e.sortedHeader===s&&e.isAsc?e._t("sort-asc",function(){return[n("span",{staticClass:"datatable-icon"},[e._v("↑")])]}):e._e(),e.sortedHeader===s&&!e.isAsc?e._t("sort-desc",function(){return[n("span",{staticClass:"datatable-icon"},[e._v("↓")])]}):e._e(),e.sortedHeader!==s?e._t("sort-desc",function(){return[n("span",{staticClass:"datatable-icon"},[e._v("↕")])]}):e._e()]:e._e()],2)}),e.expandable?n("th",{attrs:{width:"20"}}):e._e()],2)]),n("tbody",[e.loading?n("tr",{staticClass:"datatable-progress"},[n("td",{attrs:{colspan:e.expandable?e.localHeaders.length+1:e.localHeaders.length}},[e._t("progress-bar",function(){return[e._m(0)]})],2)]):e._e(),e.computedItems.length===0?n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:e.expandable?e.localHeaders.length+1:e.localHeaders.length}},[e._v(" "+e._s(e.noDataText)+" ")])]):e._e(),e._l(e.computedItems,function(s,a){return[n("tr",{key:a},[e._l(e.localHeaders,function(o,r){return n("td",{key:r},[e._t("item."+o.value,function(){return[e._v(" "+e._s(s[o.value])+" ")]},{item:s})],2)}),e.expandable?n("td",[e._t("expand-btn",function(){return[n("ax-btn",{staticClass:"shadow-0 d-flex vcenter fx-center",attrs:{circle:"",size:"small"},on:{click:function(o){return e.expandItem(s)}}},[n("svg",{staticClass:"datatable-expand-arrow",class:{"datatable-expanded":s.expanded},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",focusable:"false",width:"1.3rem",height:"1.3rem",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M8.12 9.29L12 13.17l3.88-3.88a.996.996 0 1 1 1.41 1.41l-4.59 4.59a.996.996 0 0 1-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"}})])])]})],2):e._e()],2),e.expandable?n("tr",{key:"expand-"+a,staticClass:"datatable-expanded"},[n("td",{style:{display:s.expanded?"table-cell":"none"},attrs:{colspan:e.localHeaders.length+1}},[e._t("expanded-item",null,{item:s})],2)]):e._e()]})],2)])]),n("div",{staticClass:"datatable-footer"},[e.pagination?n("ax-pagination",{staticClass:"mr-auto",attrs:{total:e.localTotal,perPage:e.perPage,size:e.paginationSize},model:{value:e.page,callback:function(s){e.page=s},expression:"page"}}):e._e(),e.computedItems.length===0?[e._v(" - ")]:[e._v(" "+e._s(e.firstItemIndex+1)+" - "+e._s(e.lastItemIndex>e.computedItems.length*e.page?e.localTotal:e.computedItems.length*e.page)+" "+e._s(e.paginationText)+" "+e._s(e.localTotal)+" ")],e.pagination?e._e():[n("ax-btn",{staticClass:"ml-4 rounded-2 shadow-0",attrs:{disabled:e.page===1},on:{click:function(s){return s.preventDefault(),e.goto(e.page-1)}}},[e._v(" ‹ ")]),n("ax-btn",{staticClass:"ml-2 rounded-2 shadow-0",attrs:{disabled:e.page===e.totalPage||e.totalPage===0},on:{click:function(s){return s.preventDefault(),e.goto(e.page+1)}}},[e._v(" › ")])]],2)])},Pl=[function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"progress progress-indeterminate progress-small"},[n("div",{staticClass:"progress-bar primary"})])}];const sa="",Il=t.defineComponent({name:"AxDataTable",mixins:[U],inheritAttrs:!1,props:{headers:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},classes:{type:String,default:""},search:{type:String,default:""},pagination:{type:Boolean,default:!1},paginationSize:{type:String,default:"",validator:e=>["","small","large"].includes(e)},perPage:{type:Number,default:10,validator:e=>e>0},expandable:{type:Boolean,default:!1},singleExpand:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hover:{type:Boolean,default:!0},noDataText:{type:String,default:"No data available."},paginationText:{type:String,default:"of"},total:{type:Number},serverSide:{type:Boolean,default:!1}},setup(e,l){const n=t.toRefs(e)[W()],s=X(),a="update:options",o=t.ref([]),r=t.ref([]),u=t.ref(n.value||1),i=t.ref(1),c=t.ref(10),y=t.ref([]),_=t.ref(null),m=t.ref(!1),v=t.computed(()=>e.total?e.total:!e.serverSide&&e.search?$.value.length:r.value.length),C=t.ref(Math.ceil(e.perPage/v.value));t.watch(()=>e.headers,()=>{b()}),t.watch(()=>e.items,()=>{A()}),t.watch(()=>e.modelValue,d=>{u.value!==d&&(u.value=d)}),t.watch(u,d=>{var h;l.emit(s,d),l.emit(a,{page:d,perPage:e.perPage,sortBy:(h=_.value)==null?void 0:h.value,sortAsc:m.value,search:e.search})}),t.watch(()=>e.search,()=>{var d;L(1),l.emit(a,{page:u.value,perPage:e.perPage,sortBy:(d=_.value)==null?void 0:d.value,sortAsc:m.value,search:e.search})});const $=t.computed(()=>r.value.filter(d=>Object.keys(d).some(w=>{const f=g(w);if(w==="expanded"||!f||f.filterable===!1)return!1;const x=d[w];if(!x)return!1;try{return x.toString().toLowerCase().includes(e.search.toLowerCase())}catch(M){return console.error(M),!1}}))),T=t.computed(()=>{let d=!e.serverSide&&e.search?$.value:r.value;return _.value&&_.value.sortable!==!1&&(d=B([...d]),m.value||(d=d.reverse())),p(),e.serverSide?d:d.slice(i.value,c.value)}),L=d=>{if(d<=1)return u.value=1;if(d>=C.value)return u.value=C.value;u.value=d},p=()=>{i.value=(u.value-1)*e.perPage,c.value=u.value*e.perPage,C.value=Math.ceil(v.value/e.perPage)},g=d=>o.value.find(h=>h.value===d),b=()=>{if(e.headers.length===0)return o.value=[];o.value=[...e.headers].reduce((d,h)=>(typeof h=="object"?d.push(h):d.push({text:h,value:h}),d),[])},A=()=>{r.value=[...e.items]},I=d=>{const h=r.value.findIndex(w=>w===d);if(h!==-1){if(e.singleExpand&&(y.value.map(w=>{if(w===d)return;const f=r.value.findIndex(x=>x===w);w.expanded=!1,r.value.splice(f,1,w)}),y.value=[]),d.expanded){const w=y.value.findIndex(f=>f===d);y.value.splice(w,1),d.expanded=!1}else d.expanded=!0,y.value.push(d);r.value.splice(h,1,d)}},R=d=>{if(d.sortable!==!1){if(_.value===d&&!m.value){_.value=null,m.value=!1,l.emit(a,{page:u.value,perPage:e.perPage,sortBy:_.value,sortAsc:m.value,search:e.search});return}_.value=d,m.value=!m.value,l.emit(a,{page:u.value,perPage:e.perPage,sortBy:_.value.value,sortAsc:m.value,search:e.search})}},B=d=>d.sort((h,w)=>{const f=h[_.value.value],x=w[_.value.value];return f==null||x===null||x===void 0?-1:typeof f=="string"?f.localeCompare(x):Array.isArray(f)?x.length-f.length:f-x});return t.onMounted(()=>{b(),A(),l.emit("setup")}),{computedItems:T,localHeaders:o,localItems:r,sortedHeader:_,page:u,firstItemIndex:i,lastItemIndex:c,localTotal:v,isAsc:m,totalPage:C,goto:L,sortBy:R,expandItem:I,listeners:l.listeners?l.listeners:{}}}}),Ne={};var jl=V(Il,Bl,Pl,!1,Ol,"782aa13d",null,null);function Ol(e){for(let l in Ne)this[l]=Ne[l]}const zl=function(){return jl.exports}(),ve={install(e){F(e,zl)}};N(ve);var Hl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({ref:"modal",staticClass:"modal",class:e.classes,style:e.style},"div",e.$attrs,!1),e.listeners),[e.$slots.header?n("div",{staticClass:"modal-header"},[e._t("header")],2):e._e(),n("div",{staticClass:"modal-content"},[e._t("default")],2),e.$slots.footer?n("div",{staticClass:"modal-footer"},[e._t("footer")],2):e._e()])},Nl=[];const Ul=t.defineComponent({name:"AxModal",mixins:[U],props:{overlay:{type:Boolean,default:!0},bodyScrolling:{type:Boolean,default:!1},animationDuration:{type:Number,default:400},mode:{type:String,default:"",validator:e=>["","falling","bouncing"].includes(e)}},setup(e,l){const n=t.ref(!1),s=t.ref(!1),a=t.ref(null),o=t.ref(!1),r=t.ref(null),u=t.toRefs(e)[W()],i=t.ref(""),c=t.ref(810),y=t.ref(!1),_=t.ref(null),m=X(),v=z(),C=t.computed(()=>({active:y.value,"modal-falling":e.mode==="falling","modal-bouncing":e.mode==="bouncing"})),$=t.computed(()=>({transitionDuration:e.animationDuration+"ms",animationDuration:e.animationDuration+"ms",display:i.value,zIndex:c.value}));t.watch(u,f=>{f!==null&&(n.value=f,f?d():h())}),t.watch(n,f=>{l.emit(m,f)}),t.watch(()=>e.overlay,f=>{b(f)});const T=()=>{Y({type:"Modal",uid:v,data:t.reactive({activeClass:y})}),L(),e.overlay&&g(),u.value&&d(),l.emit("setup")},L=()=>{r.value=I.bind(this)},p=()=>{A(),r.value=null},g=()=>{a.value=document.createElement("div"),a.value.classList.add("ax-overlay")},b=f=>{if(a.value){f||A(),n.value&&f&&!o.value&&w(!0);return}f&&(g(),n.value&&w(!0))},A=()=>{e.overlay&&o.value&&(a.value.removeEventListener("click",r.value),a.value.remove(),a.value="",o.value=!1)},I=f=>{f.preventDefault(),!s.value&&(n.value=!n)},R=f=>{e.bodyScrolling||(f?document.body.style.overflow="":document.body.style.overflow="hidden")},B=()=>{if(!n.value)return;const f=se("Modal").filter(x=>x.data.activeClass).length+1;e.overlay&&(a.value.style.zIndex=800+f*10-2),c.value=800+f*10},d=()=>{s.value||(l.emit("open"),n.value=!0,s.value=!0,B(),i.value="block",w(!0),R(!1),setTimeout(()=>{y.value=!0},50),setTimeout(()=>{s.value=!1,l.emit("opened")},e.animationDuration))},h=()=>{s.value||(l.emit("close"),s.value=!0,n.value=!1,w(!1),y.value=!1,setTimeout(()=>{i.value="",s.value=!1,R(!0),l.emit("closed")},e.animationDuration))},w=f=>{e.overlay&&(a.value.style.transitionDuration=e.animationDuration+"ms",f?(o.value=!0,a.value.addEventListener("click",r.value),document.body.appendChild(a.value),setTimeout(()=>{a.value.classList.add("active")},50)):(a.value.classList.remove("active"),setTimeout(()=>{a.value.removeEventListener("click",r.value),a.value.remove(),o.value=!1},e.animationDuration)))};return t.onMounted(()=>{T()}),t.onUpdated(()=>{b(e.overlay),B()}),t.onUnmounted(()=>{p(),R(!0),G(v)}),{classes:C,style:$,modal:_,activeClass:y,listeners:l.listeners?l.listeners:{}}}}),Ue={};var Wl=V(Ul,Hl,Nl,!1,Xl,null,null,null);function Xl(e){for(let l in Ue)this[l]=Ue[l]}const Yl=function(){return Wl.exports}(),_e={install(e){F(e,Yl)}};N(_e);var Gl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",e._g(e._b({staticClass:"pagination",class:e.classes},"ul",e.$attrs,!1),e.listeners),[e._t("first-arrow",function(){return[n("li",{staticClass:"pagination-arrow",class:{disabled:e.current===1},on:{click:function(s){return s.preventDefault(),e.goto(1)}}},[n("a",[e._v("«")])])]},{goto:e.goto,pageCount:e.pageCount,isDisabled:e.current===1}),e._t("prev-arrow",function(){return[n("li",{staticClass:"pagination-arrow",class:{disabled:e.current===1},on:{click:function(s){return s.preventDefault(),e.prev.apply(null,arguments)}}},[n("a",[e._v("‹")])])]},{prev:e.prev,pageCount:e.pageCount,isDisabled:e.current===1}),e._l(e.pageCount,function(s,a){return n("div",{key:a,staticClass:"d-flex"},[e.isShown(a)?e._t("default",function(){return[n("li",{class:{active:e.current-1===a},on:{click:function(o){return e.goto(a+1)}}},[n("a",[e._v(e._s(a+1))])])]},{pageNumber:a+1,activePage:e.current-1,isActive:e.current-1===a,goto:e.goto}):a===1||a===e.pageCount-2?n("li",{staticClass:"pagination-dots"},[e._v("...")]):e._e()],2)}),e._t("next-arrow",function(){return[n("li",{staticClass:"pagination-arrow",class:{disabled:e.current===e.pageCount},on:{click:function(s){return s.preventDefault(),e.next.apply(null,arguments)}}},[n("a",[e._v("›")])])]},{next:e.next,pageCount:e.pageCount,isDisabled:e.current===e.pageCount}),e._t("last-arrow",function(){return[n("li",{staticClass:"pagination-arrow",class:{disabled:e.current===e.pageCount},on:{click:function(s){return s.preventDefault(),e.goto(e.pageCount)}}},[n("a",[e._v("»")])])]},{goto:e.goto,pageCount:e.pageCount,isDisabled:e.current===e.pageCount})],2)},ql=[];const oa="",Kl={name:"AxPagination",mixins:[U],props:{total:{type:Number,default:0,required:!0,validator:e=>e>=0},perPage:{type:Number,default:10,validator:e=>e>0},size:{type:String,defaut:"",validator:e=>["","small","large"].includes(e)},maxVisible:{type:Number,default:7,validator:e=>e>2||e===0}},setup(e,l){const n=t.ref(Math.ceil(e.total/e.perPage)),s=t.toRefs(e)[W()],a=t.ref(s.value||1);let o=1,r=0;const u=X(),i=t.computed(()=>({"pagination-small":e.size==="small","pagination-large":e.size==="large"}));t.watch(s,p=>{p===null||a.value===p||(a.value=p)}),t.watch(a,p=>{l.emit(u,p)}),t.watch(()=>e.total,()=>{c()}),t.watch(()=>e.perPage,()=>{c()});const c=()=>{n.value=Math.ceil(e.total/e.perPage)},y=()=>{a.value!==1&&(a.value-=1,l.emit("prev",a.value))},_=()=>{a.value!==n.value&&(a.value+=1,l.emit("next",a.value))},m=p=>{a.value!==p&&(a.value=p,l.emit("goto",p))},v=p=>{if(e.maxVisible<3||e.maxVisible>n.value)return!0;const g=a.value-1;return p===0||p===n.value-1||g===p?(C(p),!0):g<=Math.floor(e.maxVisible/2)?$(p,g):n.value-g+1<e.maxVisible?T(p,g):o<e.maxVisible?L(p,g):!1},C=p=>{o++,p===n.value-1&&(r=0,o=1)},$=(p,g)=>p<g||o<e.maxVisible?(o++,!0):!1,T=(p,g)=>p<g&&p<=n.value-e.maxVisible?!1:(o++,!0),L=(p,g)=>(r===0&&(r=(e.maxVisible-o)/2),g-p<Math.ceil(r)||g-p<=Math.floor(r)?(o++,!0):!1);return{pageCount:n,classes:i,current:a,prev:y,next:_,goto:m,isShown:v,listeners:l.listeners?l.listeners:{}}}},We={};var Zl=V(Kl,Gl,ql,!1,Jl,null,null,null);function Jl(e){for(let l in We)this[l]=We[l]}const Ql=function(){return Zl.exports}(),pe={install(e){F(e,Ql)}};N(pe);var Dl=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({ref:"sidenav",staticClass:"sidenav",class:e.classes,style:e.style},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},en=[];const tn=t.defineComponent({name:"AxSidenav",mixins:[U],props:{overlay:{type:Boolean,default:!0},bodyScrolling:{type:Boolean,default:!1},animationDuration:{type:Number,default:300},fixed:{type:Boolean,default:!1},right:{type:Boolean,default:!1}},setup(e,l){const n=t.ref(null),s=t.toRefs(e),a=t.ref(!1),o=t.ref(!1),r=t.ref(null),u=t.ref(!1),i=t.ref(null),c=t.ref(null),y=s[W()],_=t.ref(null),m=X(),v=z();t.provide("ax-sidenav",v);const C=t.computed(()=>({active:a.value,"sidenav-fixed":e.fixed,"sidenav-right":e.right})),$=t.computed(()=>({transitionDuration:e.animationDuration+"ms"}));t.watch(y,k=>{if(k!==null){if(e.fixed&&window.innerWidth>=960){l.emit(m,!0);return}a.value=k,k?f():x()}}),t.watch(a,k=>{l.emit(m,k)}),t.watch(()=>e.overlay,k=>{B(k)});const T=()=>{Y({type:"Sidenav",uid:v,data:{fixed:s.fixed,right:s.right}}),n.value=_.value.closest(".layout"),e.overlay&&R(),L(),A(),(y.value||e.fixed&&window.innerWidth>=960)&&f(),l.emit("setup")},L=()=>{c.value=w.bind(this),i.value=b.bind(this),window.addEventListener("resize",i.value)},p=()=>{window.removeEventListener("resize",i.value),d()},g=()=>{["layout-sidenav-right","layout-sidenav-both"].forEach(k=>n.value.classList.remove(k))},b=()=>{e.fixed&&window.innerWidth>=960?a.value=!0:a.value=!1},A=()=>{const k=se("Sidenav").filter(H=>H.data.fixed.value),O=k[0]&&k[0].uid===v;n.value&&O&&g(),n.value&&e.fixed&&O&&I(k)},I=k=>{const{sidenavsRight:O,sidenavsLeft:H}=k.reduce((J,E)=>(E.data.right.value?J.sidenavsRight.push(E):J.sidenavsLeft.push(E),J),{sidenavsRight:[],sidenavsLeft:[]}),K=H.length>0&&O.length>0;O.length>0&&!K?n.value.classList.add("layout-sidenav-right"):K&&n.value.classList.add("layout-sidenav-both")},R=()=>{r.value=document.createElement("div"),r.value.classList.add("ax-overlay")},B=k=>{if(!e.fixed){if(r.value){k||d(),a.value&&k&&!u.value&&M(!0);return}k&&(R(),a.value&&M(!0))}},d=()=>{e.overlay&&u.value&&(r.value.removeEventListener("click",c.value),r.value.remove(),r.value="",u.value=!1)},h=k=>{e.bodyScrolling||(document.body.style.overflow=k||window.innerWidth>=960?"":"hidden")},w=k=>{k.preventDefault(),!(e.fixed&&window.innerWidth>=960)&&(a.value=!a)},f=()=>{o.value||(a.value=!0,l.emit("open"),o.value=!0,M(!0),h(!1),setTimeout(()=>{o.value=!1,l.emit("opened")},e.animationDuration))},x=()=>{o.value||(a.value=!1,o.value=!0,l.emit("close"),M(!1),setTimeout(()=>{h(!0),o.value=!1,l.emit("closed")},e.animationDuration))},M=k=>{!e.overlay||window.innerWidth>=960&&e.fixed||(r.value.style.transitionDuration=e.animationDuration+"ms",k?(u.value=!0,r.value.addEventListener("click",c.value),document.body.appendChild(r.value),setTimeout(()=>{r.value.classList.add("active")},50)):(r.value.classList.remove("active"),setTimeout(()=>{r.value.removeEventListener("click",c.value),r.value.remove(),u.value=!1},e.animationDuration)))};return t.onMounted(()=>{T()}),t.onUpdated(()=>{B(e.overlay)}),t.onUnmounted(()=>{p(),h(!0),G(v)}),{classes:C,style:$,sidenav:_,listeners:l.listeners?l.listeners:{}}}}),Xe={};var ln=V(tn,Dl,en,!1,nn,null,null,null);function nn(e){for(let l in Xe)this[l]=Xe[l]}const an=function(){return ln.exports}();var sn=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tag,e._g(e._b({tag:"component",staticClass:"sidenav-link",class:e.classes},"component",e.$attrs,!1),e.listeners),[e._t("default")],2)},on=[];const rn=t.defineComponent({name:"AxSidenavLink",props:{active:{type:Boolean,default:!1},tag:{type:String,default:"a"}},setup(e,l){return{classes:t.computed(()=>({active:e.active})),listeners:l.listeners?l.listeners:{}}}}),Ye={};var un=V(rn,sn,on,!1,cn,null,null,null);function cn(e){for(let l in Ye)this[l]=Ye[l]}const dn=function(){return un.exports}();var fn=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({staticClass:"sidenav-header"},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},vn=[];const _n=t.defineComponent({name:"AxSidenavHeader",setup(e,l){return{listeners:l.listeners?l.listeners:{}}}}),Ge={};var pn=V(_n,fn,vn,!1,mn,null,null,null);function mn(e){for(let l in Ge)this[l]=Ge[l]}const hn=function(){return pn.exports}();var gn=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({staticClass:"sidenav-footer"},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},yn=[];const xn=t.defineComponent({name:"AxSidenavFooter",setup(e,l){return{listeners:l.listeners?l.listeners:{}}}}),qe={};var bn=V(xn,gn,yn,!1,wn,null,null,null);function wn(e){for(let l in qe)this[l]=qe[l]}const Cn=function(){return bn.exports}(),me={install(e){F(e,an),F(e,dn),F(e,hn),F(e,Cn)}};N(me);var $n=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({staticClass:"tab",class:e.classes,style:e.style},"div",e.$attrs,!1),e.listeners),[e.arrow?n("div",{ref:"arrowRef",staticClass:"tab-arrow",class:e.arrowClasses},[n("div",{staticClass:"tab-prev",class:e.prevClasses,on:{click:e.scrollLeft}},[e._t("left-arrow",function(){return[e._v(" ‹ ")]})],2),n("ul",{ref:"menu",staticClass:"tab-menu",style:e.menuStyle},[e._t("menu")],2),n("div",{staticClass:"tab-next",class:e.nextClasses,on:{click:e.scrollRight}},[e._t("right-arrow",function(){return[e._v(" › ")]})],2)]):n("ul",{ref:"menu",staticClass:"tab-menu",style:e.menuStyle},[e._t("menu")],2),e._t("default")],2)},kn=[];const An=t.defineComponent({name:"AxTab",mixins:[U],props:{fullWidth:{type:Boolean,default:!1},mode:{type:String,default:"none",validator:e=>["none"].includes(e)},animationDuration:{type:Number,default:300},disableActiveBar:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},prevClasses:{type:String,default:""},nextClasses:{type:String,default:""}},setup(e,l){const n=t.toRefs(e),s=n[W()],a=t.ref({}),o=t.ref({}),r=t.ref([]),u=t.ref([]),i=t.ref(0),c=t.ref(0),y=t.ref(null),_=t.ref(null),m=t.ref(!1),v=t.ref(null),C=X();t.provide("ax-tab-links",r),t.provide("ax-tab-current",o),t.provide("ax-tab-items",u);const $=t.computed(()=>({"tab-full-width":e.fullWidth})),T=t.computed(()=>({"tab-arrow-show":m.value})),L=t.computed(()=>({transitionDuration:e.animationDuration+"ms"})),p=t.computed(()=>({"--ax-tab-bar-left-offset":i.value,"--ax-tab-bar-right-offset":c.value}));t.watch(n.fullWidth,()=>{setTimeout(()=>{h()},100)}),t.watch(s,f=>{if(f===null)return;const x=r.value.findIndex(M=>M.itemId===f);x!==-1&&(a.value.selected=!1,o.value=r.value[x],o.value.selected=!0)}),t.watch(o,()=>{a.value.selected=!1,d(),a.value=o.value,l.emit(C,o.value.itemId)});const g=()=>{window.addEventListener("resize",A)},b=()=>{window.removeEventListener("resize",A)},A=()=>{y.value&&clearTimeout(y.value),y.value=setTimeout(h,100),e.arrow&&I()},I=()=>{if(!e.arrow)return;const f=r.value.reduce((M,k)=>(M+=k.el.clientWidth,M),0),x=_.value.clientWidth;m.value=f>x},R=()=>{e.arrow&&(v.value.scrollLeft-=40)},B=()=>{e.arrow&&(v.value.scrollLeft+=40)},d=()=>{u.value.map(x=>{x.id!==o.value.itemId&&(x.hide=!0)});const f=u.value.find(x=>x.id===o.value.itemId);f.hide=!1,l.emit("select",f),h()},h=()=>{if(e.disableActiveBar)return i.value="unset",c.value="unset";const f=o.value.el.getBoundingClientRect(),x=f.left,M=v.value.getBoundingClientRect().left,k=x-M+v.value.scrollLeft,O=f.width,H=v.value.clientWidth-k-O;i.value=Math.floor(k)+"px",c.value=Math.ceil(H)+"px"},w=()=>{let f=r.value.find(x=>x.selected);f||(f=s.value?r.value.find(x=>x.itemId===s.value):r.value[0]),o.value=f};return t.onMounted(()=>{g(),e.arrow&&I(),w(),l.emit("setup")}),t.onUnmounted(()=>{b()}),{classes:$,style:L,menuStyle:p,menu:v,arrowRef:_,arrowClasses:T,scrollLeft:R,scrollRight:B,updateActiveElement:w,listeners:l.listeners?l.listeners:{}}}}),Ke={};var Sn=V(An,$n,kn,!1,Ln,null,null,null);function Ln(e){for(let l in Ke)this[l]=Ke[l]}const En=function(){return Sn.exports}();var Tn=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g(e._b({style:e.style},"div",e.$attrs,!1),e.listeners),[e._t("default")],2)},Rn=[];const Fn=t.defineComponent({name:"AxTabItem",props:{id:String},setup(e,l){const n=t.ref(!1),s=t.reactive({uid:z(),hide:!0,id:e.id}),a=t.inject("ax-tab-items"),o=t.computed(()=>({display:s.hide?"none":"block"}));t.watch(a,()=>{r()});const r=()=>{!a.value||n.value||(a.value.push(s),n.value=!0)},u=()=>{if(!a.value||!n.value)return;const i=a.value.findIndex(c=>c.uid===s.uid);a.value.splice(i,1)};return t.onMounted(()=>{r()}),t.onBeforeMount(()=>{u()}),{style:o,listeners:l.listeners?l.listeners:{}}}}),Ze={};var Vn=V(Fn,Tn,Rn,!1,Mn,null,null,null);function Mn(e){for(let l in Ze)this[l]=Ze[l]}const Bn=function(){return Vn.exports}();var Pn=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",e._g({ref:"el",staticClass:"tab-link",class:e.classes,on:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.linkSelected.apply(null,arguments)}}},e.listeners),[n("a",e._b({attrs:{href:e.href}},"a",e.$attrs,!1),[e._t("default")],2)])},In=[];const jn=t.defineComponent({name:"AxTabLink",inheritAttrs:!1,props:{href:{type:String,default:""},active:{type:Boolean,default:!1}},setup(e,l){const n=t.ref(!1),s=t.ref(null),a=t.reactive({uid:z(),selected:e.active,el:s,itemId:e.href.split("#")[1]}),o=t.inject("ax-tab-links"),r=t.inject("ax-tab-current");t.watch(o,()=>{i()});const u=t.computed(()=>({active:a.selected})),i=()=>{!o.value||n.value||(o.value.push(a),n.value=!0)},c=()=>{if(!o.value||!n.value)return;const _=o.value.findIndex(m=>m.uid===a.uid);o.value.splice(_,1)},y=()=>{a.selected||(a.selected=!0,r.value=a)};return t.onMounted(()=>{i()}),t.onBeforeUnmount(()=>{c()}),{linkSelected:y,classes:u,el:s,listeners:l.listeners?l.listeners:{}}}}),Je={};var On=V(jn,Pn,In,!1,zn,null,null,null);function zn(e){for(let l in Je)this[l]=Je[l]}const Hn=function(){return On.exports}(),he={install(e){F(e,En),F(e,Bn),F(e,Hn)}};N(he);var Nn=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",e._g({ref:"tooltiper",staticClass:"tooltiper",on:{mouseenter:e.show,mouseleave:e.hide}},e.listeners),[e._t("default")],2)},Un=[];const ra="",Wn=t.defineComponent({name:"AxTooltip",props:{content:{type:String,default:""},classes:{type:String,default:"grey dark-4 light-shadow-2 p-2"},animationDuration:{type:Number,default:200},animationDelay:{type:Number,default:0},offset:{type:Number,default:10},position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)}},setup(e,l){const n=t.ref(null),s=t.ref(!1),a=t.ref(null),o=t.ref(null),r=t.ref(null),u=t.ref(null),i=t.ref(null),c=z();t.watch(()=>e.content,A=>{a.value&&(a.value.innerHTML=A,T())});const y=()=>{Y({type:"Tooltip",uid:c}),_(),i.value=u.value.getBoundingClientRect(),v(),T(),a.value.style.display="none",l.emit("setup")},_=()=>{o.value=T.bind(this),window.addEventListener("resize",o.value)},m=()=>{window.removeEventListener("resize",o.value),C()},v=()=>{a.value=document.createElement("div"),$(),document.body.appendChild(a.value)},C=()=>{a.value.remove()},$=()=>{a.value.style.transform="translate(0)",a.value.style.opacity=0,a.value.className="tooltip "+e.classes,a.value.style.transitionDuration=e.animationDuration+"ms",a.value.innerHTML=e.content},T=()=>{n.value=u.value.getBoundingClientRect(),L(),i.value=a.value.getBoundingClientRect(),p()},L=()=>{e.position=="top"||e.position=="bottom"?e.position=="top"?a.value.style.top=n.value.top+"px":a.value.style.top=n.value.top+n.value.height+"px":(e.position=="left"||e.position=="right")&&e.position=="right"&&(a.value.style.left=n.value.left+n.value.width+"px")},p=()=>{e.position==="top"||e.position==="bottom"?a.value.style.left=n.value.left+n.value.width/2-i.value.width/2+"px":(e.position==="left"||e.position==="right")&&(a.value.style.top=n.value.top+n.value.height/2-i.value.height/2+"px"),e.position==="top"?a.value.style.top=i.value.top+(s.value?e.offset:0)-i.value.height+"px":e.position==="left"&&(a.value.style.left=n.value.left-i.value.width+"px");const A=window.scrollY,I=parseFloat(a.value.style.top);e.position==="top"?a.value.style.top=A*2+I+"px":a.value.style.top=A+I+"px"},g=()=>{clearTimeout(r.value),a.value.style.display="block",$(),T(),s.value=!0,l.emit("show"),r.value=setTimeout(()=>{e.position=="top"?a.value.style.transform=`translateY(-${e.offset}px)`:e.position=="right"?a.value.style.transform=`translateX(${e.offset}px)`:e.position=="bottom"?a.value.style.transform=`translateY(${e.offset}px)`:e.position=="left"&&(a.value.style.transform=`translateX(-${e.offset}px)`),a.value.style.opacity=1},e.animationDelay)},b=()=>{l.emit("hide"),clearTimeout(r.value),s.value=!1,a.value.style.transform="translate(0)",a.value.style.opacity=0,r.value=setTimeout(()=>{a.value.style.display="none"},e.animationDuration)};return t.onMounted(()=>{y()}),t.onUnmounted(()=>{m(),G(c)}),{show:g,hide:b,tooltiper:u,listeners:l.listeners?l.listeners:{}}}}),Qe={};var Xn=V(Wn,Nn,Un,!1,Yn,"47375e8f",null,null);function Yn(e){for(let l in Qe)this[l]=Qe[l]}const Gn=function(){return Xn.exports}(),ge={install(e){F(e,Gn)}};N(ge);const De=Object.freeze(Object.defineProperty({__proto__:null,AxBtn:re,AxBtnGroup:ie,AxCollapsible:de,AxDataTable:ve,AxDropdown:fe,AxForms:ue,AxLightbox:ce,AxModal:_e,AxPagination:pe,AxSidenav:me,AxTab:he,AxTooltip:ge},Symbol.toStringTag,{value:"Module"})),et={install(e){t.install(),e.directive("ax-click-outside",ae);for(let l in De)e.use(De[l])}};N(et),P.AxBtn=re,P.AxBtnGroup=ie,P.AxClickOutside=ae,P.AxCollapsible=de,P.AxDataTable=ve,P.AxDropdown=fe,P.AxForms=ue,P.AxLightbox=ce,P.AxModal=_e,P.AxPagination=pe,P.AxSidenav=me,P.AxTab=he,P.AxTooltip=ge,P.default=et,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});