alytus-ff 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/alytus-ff.js
CHANGED
|
@@ -1618,7 +1618,7 @@ const yo = /* @__PURE__ */ w(Yt, [["render", xt]]), en = V({
|
|
|
1618
1618
|
}
|
|
1619
1619
|
},
|
|
1620
1620
|
setup(e) {
|
|
1621
|
-
const t = H(() => e.rowActions.actions?.filter((i) => i.visible === void 0 || i.visible(e.item)) ?? []), n = H(() => typeof e.rowActions.icon == "function" ? e.rowActions.icon(e.item) : e.rowActions.icon), l = H(() => !e.rowActions.actions && e.rowActions.action ? e.rowActions : null);
|
|
1621
|
+
const t = H(() => e.rowActions.actions?.filter((i) => i.visible === void 0 || i.visible(e.item)) ?? []), n = H(() => typeof e.rowActions.icon == "function" ? e.rowActions.icon(e.item) : e.rowActions.icon), l = H(() => !e.rowActions.actions && e.rowActions.action && (e.rowActions.visible === void 0 || e.rowActions.visible(e.item)) ? e.rowActions : null);
|
|
1622
1622
|
return { actions: t, icon: n, oneAction: l };
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
package/dist/alytus-ff.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("pinia"),require("vue"),require("vue-router"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","pinia","vue","vue-router","vue-i18n"],E):(p=typeof globalThis<"u"?globalThis:p||self,E(p["Alytus FF"]={},p.pinia,p.Vue,p.vueRouter,p.VueI18n))})(this,(function(p,E,e,P,B){"use strict";const F=e.ref("en_GB");function v(t){Object.defineProperty(F,"value",{get:()=>{const o=t?.global?.locale;return o?typeof o=="string"?o:o.value:"en_GB"},configurable:!0})}function x(){return F}let I=null;function ee(t){I=t,v(t)}const T=E.defineStore("page",()=>{const t=a=>I?.global?.t(a)??a;function o(a){return a}const n=e.ref(!1),l=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref({});function i(a,y,$){l.value=a,d.value=y,s.value=$,n.value=!0}function f(a){if(a instanceof XMLHttpRequest)i(null,a.statusText,a.status);else if(a.response!==void 0)switch(a.response.status){case 500:i(null,t("aff.An error has occurred"),500);break;case 504:i(null,"Network timeout, please try again.",504);break;case 403:i(null,"Insufficient permissions to perform this action.",503);break;case 404:i(null,t("aff.Not found"),404);break;case 409:i(null,"Concurrency error. Please reload page and make your changes again.",409);break;case 417:i(null,"Product version mismatch.",417);break;default:a.response.data&&Array.isArray(a.response.data)&&a.response.data.length===1?i(null,a.response.data[0],null):i(null,a.response.statusText,a.status);break}else a.name&&a.name==="AxiosError"||a instanceof Error?i(null,a.message,null):typeof a=="string"?i(null,a,null):typeof a=="object"&&(a.title!==void 0||a.details!==void 0||a.code!==void 0)?i(a.title,a.details,a.code):typeof a=="object"&&a.error_message!==void 0?i(null,a.error_message,null):i(null,a.toString(),null)}function r(a){f(a)}function m(){n.value=!1,setTimeout(()=>{l.value=null,s.value=null,d.value=null},250)}function g(a,y){c.value[a]=y}function u(a){delete c.value[a]}return{errorDialog:n,errorTitle:l,errorDetails:d,errorCode:s,showError:r,closeError:m,setFilterDefault:g,removeFilterDefault:u,filterDefaults:c}}),te=e.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0},description:{type:String,default:null}}}),h=(t,o)=>{const n=t.__vccOpts||t;for(const[l,s]of o)n[l]=s;return n},oe={class:"mt-6 mb-3 ff-page-title"},ne={class:"text-h5 ff-title"},le={key:0,class:"text-body-2 ff-description"};function re(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",null,[e.createElementVNode("span",ne,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),t.description?(e.openBlock(),e.createElementBlock("div",le,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"buttons")])])}const ae=h(te,[["render",re]]),se=e.defineComponent({name:"PageSubtitle",props:{subtitle:{type:String,required:!0},firstPosition:{type:Boolean,default:!1}}}),ie={class:"text-h6 font-weight-bold"};function ce(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.firstPosition?"mt-0":"","ff-page-subtitle"])},[e.createElementVNode("div",ie,e.toDisplayString(t.subtitle),1),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"buttons")])],2)}const de=h(se,[["render",ce]]),me=e.defineComponent({name:"InnerLeftMenu",components:{},props:{items:{type:Array,required:!0}},setup(){const t=P.useRouter(),o=P.useRoute();return{goTo:s=>{s.id&&t.push(s.id)},isActive:s=>o.fullPath.startsWith(s)}}});function pe(t,o,n,l,s,d){const c=e.resolveComponent("v-list");return e.openBlock(),e.createBlock(c,{class:"inner-left-menu mobile-horizontal",items:t.items,selected:t.items.filter(i=>i.value&&t.isActive(i.value)).map(i=>i.value),"onClick:select":o[0]||(o[0]=i=>t.goTo(i))},null,8,["items","selected"])}const fe=h(me,[["render",pe]]);var ue="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",H="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",ge="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",ye="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Ce="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",he="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",ke="M22,18V22H18V19H15V16H12L9.74,13.74C9.19,13.91 8.61,14 8,14A6,6 0 0,1 2,8A6,6 0 0,1 8,2A6,6 0 0,1 14,8C14,8.61 13.91,9.19 13.74,9.74L22,18M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z",_e="M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",z="M7,10L12,15L17,10H7Z",$e="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",Ve="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",be="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",Be="M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z";const Ne=e.defineComponent({name:"CustomDialog",methods:{mdiClose(){return ge}},props:{value:{type:Boolean,required:!0},title:{type:String,default:null},persistent:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noFullScreen:{type:Boolean,default:!1},fullHeight:{type:Boolean,default:!1},loading:{type:Boolean,required:!1}}}),we={class:"close-btn"};function Ee(t,o,n,l,s,d){const c=e.resolveComponent("v-btn"),i=e.resolveComponent("v-card-text"),f=e.resolveComponent("v-spacer"),r=e.resolveComponent("v-card-actions"),m=e.resolveComponent("v-card"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{"model-value":t.value,"max-width":"960",persistent:t.persistent,fullscreen:t.$vuetify.display.smAndDown&&!t.noFullScreen,class:e.normalizeClass([t.fullHeight?"ff-dialog":"ff-dialog ff-full-height"]),"content-class":t.fullHeight?"ff-full-height":"","onUpdate:modelValue":o[1]||(o[1]=u=>t.$emit("close"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"card",{},()=>[e.createVNode(m,{class:e.normalizeClass(t.fullHeight?"ff-full-height":""),loading:t.loading},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),append:e.withCtx(()=>[e.renderSlot(t.$slots,"header-right"),e.createElementVNode("div",we,[e.createVNode(c,{variant:"text",icon:t.mdiClose(),onClick:o[0]||(o[0]=u=>t.$emit("close"))},null,8,["icon"])])]),default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}),t.noFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"left-footer"),e.createVNode(f),e.renderSlot(t.$slots,"footer")]),_:3}))]),_:3},8,["class","loading"])])]),_:3},8,["model-value","persistent","fullscreen","class","content-class"])}const q=h(Ne,[["render",Ee]]),Se=e.defineComponent({name:"AccountAvatar",props:{item:{type:Object,required:!0},size:{type:Number,default:32}}});function Ae(t,o,n,l,s,d){const c=e.resolveComponent("v-avatar");return e.openBlock(),e.createBlock(c,{class:e.normalizeClass(`ff-avatar avatar-${t.size}-${t.item.initials.length>=3?"l":"s"}`),size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.item.initials),1)]),_:1},8,["class","size"])}const D=h(Se,[["render",Ae]]),N=t=>t.surname?`${t.name} ${t.surname}`:t.name,De=t=>t==null?"":t.name?t.surname?`${t.name.trim().substring(0,1).toUpperCase()}${t.surname.trim().substring(0,1).toUpperCase()}`:t.name.trim().substring(0,1).toUpperCase():t.surname?t.surname.trim().substring(0,1).toUpperCase():"",Me=e.defineComponent({name:"UserAvatar",props:{user:{type:Object,required:!0},size:{type:Number,required:!0},baseUrl:{type:String,required:!0}},setup(t){return{fullName:e.computed(()=>N(t.user))}}}),Le={key:1};function Te(t,o,n,l,s,d){const c=e.resolveComponent("v-img"),i=e.resolveComponent("v-avatar");return e.openBlock(),e.createBlock(i,{color:t.user.avatar_thumb?"light_grey_bg":t.user.color??"primary",class:e.normalizeClass(`avatar-${t.size}-${t.user.initials.length>=3?"l":"s"}`),size:t.size},{default:e.withCtx(()=>[t.user.avatar_thumb?(e.openBlock(),e.createBlock(c,{key:0,alt:t.fullName,src:`${t.baseUrl}/${t.user.avatar_thumb}`},null,8,["alt","src"])):(e.openBlock(),e.createElementBlock("span",Le,e.toDisplayString(t.user.initials),1))]),_:1},8,["color","class","size"])}const S=h(Me,[["render",Te]]),He=e.defineComponent({name:"UserMenu",components:{AccountAvatar:D,UserAvatar:S},methods:{mdiLogout(){return _e},mdiAccount(){return ue},mdiMenuDown(){return z},mdiCheck(){return H},formatFullName:N},props:{currentUser:{type:Object,required:!0},currentAccounts:{type:Object,required:!0},currentLang:{type:Object,required:!0},accounts:{type:Array,required:!0},langs:{type:Array,required:!0},baseUrl:{type:String,required:!0},staticList:{type:Boolean,default:!1},multipleAccounts:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]}},emits:["open-profile","select-account","unselect-account","switch-lang","log-out","action-click"],setup(t,{emit:o}){const{t:n}=B.useI18n(),l=e.ref(!1),s=e.ref(!1),d=e.computed(()=>t.currentUser!=null?N(t.currentUser):"-"),c=e.computed(()=>t.currentAccounts.map(u=>u.id)),i=e.computed(()=>t.currentAccounts.length===1?N(t.currentAccounts[0]):`${t.currentAccounts.length} ${n("aff.workspaces")}`);return{isOpen:l,userName:d,langMenu:s,accountIds:c,accountTitle:i,selectAccount:u=>{t.multipleAccounts?o(c.value.indexOf(u.id)>=0?"unselect-account":"select-account",u):o("select-account",u)},switchLang:u=>{o("switch-lang",u),s.value=!1},actionClick:u=>{o("action-click",u),l.value=!1},emitClose:u=>{o(u),l.value=!1}}}}),Ue={class:"ff-user-btn-text"},Pe={class:"name"},Fe={class:"comp"},Ie={key:0},ze={key:1},qe={class:"as-avatar"},Oe=["src"],Re=["src"],je={class:"as-avatar"},Ge={class:"as-avatar"},Ze={class:"as-avatar"};function Ye(t,o,n,l,s,d){const c=e.resolveComponent("UserAvatar"),i=e.resolveComponent("v-btn"),f=e.resolveComponent("v-list-subheader"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("AccountAvatar"),g=e.resolveComponent("v-list-item-title"),u=e.resolveComponent("v-icon"),a=e.resolveComponent("v-list"),y=e.resolveComponent("v-menu"),$=e.resolveComponent("v-card-text"),b=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(y,{modelValue:t.isOpen,"onUpdate:modelValue":o[4]||(o[4]=C=>t.isOpen=C),"close-on-content-click":!1},{activator:e.withCtx(({props:C})=>[e.createVNode(i,e.mergeProps(C,{class:"ff-user-btn"}),{default:e.withCtx(()=>[e.createVNode(c,{size:32,user:t.currentUser,"base-url":t.baseUrl+"/avatars"},null,8,["user","base-url"]),e.createElementVNode("div",Ue,[e.createElementVNode("div",Pe,e.toDisplayString(t.userName),1),e.createElementVNode("div",Fe,e.toDisplayString(t.accountTitle),1)])]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(b,{class:"ff-user-manu-card"},{default:e.withCtx(()=>[e.createVNode($,{class:"pa-0"},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Logged in as"))+":",1)]),_:1}),e.createVNode(r,{title:t.userName,subtitle:t.currentUser?.email??""},{prepend:e.withCtx(()=>[e.createVNode(c,{size:32,user:t.currentUser,"base-url":t.baseUrl+"/avatars"},null,8,["user","base-url"])]),_:1},8,["title","subtitle"]),t.staticList?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,null,{default:e.withCtx(()=>[t.accounts.length===1?(e.openBlock(),e.createElementBlock("span",Ie,e.toDisplayString(t.$t("aff.Active workspace"))+":",1)):(e.openBlock(),e.createElementBlock("span",ze,e.toDisplayString(t.$t("aff.Active workspaces")),1))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.accounts,C=>(e.openBlock(),e.createBlock(r,{key:C.id},{prepend:e.withCtx(()=>[e.createVNode(m,{item:C},null,8,["item"])]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.formatFullName(C)),1)]),_:2},1024)]),_:2},1024))),128))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Choose active workspaces"))+":",1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.accounts,C=>(e.openBlock(),e.createBlock(r,{key:C.id,onClick:A=>t.selectAccount(C)},{prepend:e.withCtx(()=>[e.createVNode(m,{item:C},null,8,["item"])]),append:e.withCtx(()=>[e.createVNode(u,{color:t.accountIds.indexOf(C.id)>=0?"primary":"white",icon:t.mdiCheck()},null,8,["color","icon"])]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.formatFullName(C)),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))],64)),e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Actions"))+":",1)]),_:1}),t.langs.length>1?(e.openBlock(),e.createBlock(r,{key:2,"append-icon":t.mdiMenuDown(),onClick:o[1]||(o[1]=C=>t.langMenu=!0)},{prepend:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createElementVNode("img",{src:t.currentLang.icon,height:"15",width:"20",alt:""},null,8,Oe)])]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.langMenu,"onUpdate:modelValue":o[0]||(o[0]=C=>t.langMenu=C),"close-on-content-click":!1},{activator:e.withCtx(({props:C})=>[e.createElementVNode("span",e.normalizeProps(e.guardReactiveProps(C)),e.toDisplayString(t.currentLang.title),17)]),default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.langs,C=>(e.openBlock(),e.createBlock(r,{key:C.value,title:C.title,onClick:A=>t.switchLang(C)},{prepend:e.withCtx(()=>[e.createElementVNode("img",{src:C.icon,height:"18",width:"24",alt:"",class:"mr-4"},null,8,Re)]),_:2},1032,["title","onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["append-icon"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,C=>(e.openBlock(),e.createBlock(r,{title:C.title,onClick:A=>t.actionClick(C.value)},e.createSlots({_:2},[C.icon?{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",je,[e.createVNode(u,{icon:C.icon},null,8,["icon"])])]),key:"0"}:void 0]),1032,["title","onClick"]))),256)),e.createVNode(r,{title:t.$t("aff.Profile settings"),onClick:o[2]||(o[2]=C=>t.emitClose("open-profile"))},{prepend:e.withCtx(()=>[e.createElementVNode("div",Ge,[e.createVNode(u,{icon:t.mdiAccount()},null,8,["icon"])])]),_:1},8,["title"]),e.createVNode(r,{title:t.$t("aff.Log out"),onClick:o[3]||(o[3]=C=>t.emitClose("log-out"))},{prepend:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createVNode(u,{icon:t.mdiLogout()},null,8,["icon"])])]),_:1},8,["title"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ke=h(He,[["render",Ye]]),We=e.defineComponent({name:"ErrorDialog",props:{show:{type:Boolean,default:!1},errorTitle:{type:String,default:null},errorDetails:{type:String,default:null},errorCode:{type:String,default:null}},emits:["close"],setup(t){const{t:o}=B.useI18n();return{title:e.computed(()=>t.errorTitle??o("aff.Error occurred"))}}}),Je=["innerHTML"],Xe={key:1};function Qe(t,o,n,l,s,d){const c=e.resolveComponent("v-card-text"),i=e.resolveComponent("v-spacer"),f=e.resolveComponent("v-btn"),r=e.resolveComponent("v-card-actions"),m=e.resolveComponent("v-card"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{"max-width":"500","model-value":t.show,onClose:o[1]||(o[1]=u=>t.$emit("close"))},{default:e.withCtx(()=>[e.createVNode(m,{title:t.title,theme:"dark"},{default:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[t.errorDetails?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:t.errorDetails},null,8,Je)):e.createCommentVNode("",!0),o[2]||(o[2]=e.createTextVNode()),t.errorCode?(e.openBlock(),e.createElementBlock("span",Xe,"("+e.toDisplayString(t.$t("aff.Code"))+": "+e.toDisplayString(t.errorCode)+")",1)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(i),e.createVNode(f,{text:t.$t("aff.Close"),color:"primary",variant:"flat",onClick:o[0]||(o[0]=u=>t.$emit("close"))},null,8,["text"])]),_:1})]),_:1},8,["title"])]),_:1},8,["model-value"])}const ve=h(We,[["render",Qe]]),xe=e.defineComponent({name:"FieldRow",props:{label:{type:String,default:""},description:{type:String,default:""},errorMessage:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(){return{}}}),et={class:"lbl-col text-body-2"},tt={class:"lbl"},ot=["innerHTML"],nt={class:"inp-col"},lt=["innerHTML"];function rt(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fld-row mobile-margin",t.errorMessage?"fld-err":""])},[e.createElementVNode("div",et,[e.createElementVNode("div",tt,e.toDisplayString(t.label),1),t.description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"descr",innerHTML:t.description},null,8,ot)):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.renderSlot(t.$slots,"default",{hideDetails:!t.errorMessage,errorMessages:t.errorMessage,disabled:t.disabled})]),t.description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"descr-col text-body-2",innerHTML:t.description},null,8,lt)):e.createCommentVNode("",!0)],2)}const at=h(xe,[["render",rt]]),st=e.defineComponent({name:"ColorPicker",components:{UserAvatar:S,AccountAvatar:D},setup(){const t=e.ref(null),o=(()=>{const n=[];for(let l=1;l<=48;l++)n.push(`color-${l}`);return n})();return{val:t,colors:o}}});function it(t,o,n,l,s,d){const c=e.resolveComponent("v-avatar"),i=e.resolveComponent("v-list-item-title"),f=e.resolveComponent("v-list-item"),r=e.resolveComponent("v-list"),m=e.resolveComponent("v-card-text"),g=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(g,{class:"ff-col-pckr"},{default:e.withCtx(()=>[e.createVNode(m,{style:{width:"305px",padding:"0 8px"}},{default:e.withCtx(()=>[e.createVNode(r,{style:{width:"289px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.colors,u=>(e.openBlock(),e.createBlock(f,{key:u,onClick:a=>t.$emit("change",u)},{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(c,{color:u,size:"32"},null,8,["color"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})]),_:1})}const O=h(st,[["render",it]]),ct=e.defineComponent({name:"FieldLabel",props:{label:{type:String,default:null},errorMessages:{type:String,default:null},cols:{type:Number,default:12},sm:{type:Number,default:12},disabled:{type:Boolean,default:!1}}});function dt(t,o,n,l,s,d){const c=e.resolveComponent("v-col");return e.openBlock(),e.createBlock(c,{cols:t.cols,sm:t.sm,class:"fld"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["fld-lbl",t.errorMessages?"fld-err":""])},e.toDisplayString(t.label),3),e.renderSlot(t.$slots,"default",{hideDetails:!t.errorMessages,errorMessages:t.errorMessages,disabled:t.disabled})]),_:3},8,["cols","sm"])}const R=h(ct,[["render",dt]]),j=(t,o,n)=>(Object.defineProperty(t,o,{value:n,writable:!1,configurable:!1,enumerable:!1}),n),G=(t,o,n)=>t.reduce((l,s)=>{const d=s[o];return l[d]=s[n],l},{}),U=[{title:"lng.sv-se",value:"sv_SE"},{title:"lng.sl-si",value:"sl_SI"},{title:"lng.sk-sk",value:"sk_SK"},{title:"lng.uk-ua",value:"uk_UA"},{title:"lng.tr-tr",value:"tr_TR"},{title:"lng.bg-bg",value:"bg_BG"},{title:"lng.bs-ba",value:"bs_BA"},{title:"lng.cy-gb",value:"cy_GB"},{title:"lng.cs-cz",value:"cs_CZ"},{title:"lng.ga-ie",value:"ga_IE"},{title:"lng.it-it",value:"it_IT"},{title:"lng.mk-mk",value:"mk_MK"},{title:"lng.lt-lt",value:"lt_LT"},{title:"lng.lv-lv",value:"lv_LV"},{title:"lng.et-ee",value:"et_EE"},{title:"lng.en-gb",value:"en_GB"},{title:"lng.es-es",value:"es_ES"},{title:"lng.hr-hr",value:"hr_HR"},{title:"lng.hu-hu",value:"hu_HU"},{title:"lng.pl-pl",value:"pl_PL"},{title:"lng.da-dk",value:"da_DK"},{title:"lng.el-gr",value:"el_GR"},{title:"lng.de-de",value:"de_DE"},{title:"lng.fi-fi",value:"fi_FI"},{title:"lng.fr-fr",value:"fr_FR"},{title:"lng.nb-no",value:"nb_NO"},{title:"lng.nl-nl",value:"nl_NL"},{title:"lng.ru-ru",value:"ru_RU"},{title:"lng.ro-ro",value:"ro_RO"},{title:"lng.pt-pt",value:"pt_PT"}],mt=[{title:"lngin.et-ee",value:"et_EE"},{title:"lngin.lv-lv",value:"lv_LV"},{title:"lngin.lt-lt",value:"lt_LT"},{title:"lngin.en-gb",value:"en_GB"},{title:"lngin.pl-pl",value:"pl_PL"},{title:"lngin.es-es",value:"es_ES"},{title:"lngin.sv-se",value:"sv_SE"},{title:"lngin.it-it",value:"it_IT"},{title:"lngin.de-de",value:"de_DE"}],M={get LangsEnum(){return j(this,"LangsEnum",G(U,"value","title"))},FrmLang(t){return this.LangsEnum[t]??t},ToLongFormat(t){switch(t){case"en":return"en_GB";case"et":return"et_EE";case"lv":return"lv_LV";case"lt":return"lt_LT";default:return t.replace("-","_")}},ToShortFormat(t){return t.split(/_|-/)[0]??t}},pt=e.defineComponent({methods:{mdiPencil(){return Ve},mdiKeyVariant(){return ke}},components:{UserAvatar:S},props:{currentUser:{type:Object,required:!0},baseUrl:{type:String,required:!0},btnVariant:{type:String,default:"text"}},emits:["edit-profile","change-password"],setup(t){const{t:o}=B.useI18n(),n=e.computed(()=>t.currentUser?.locale?o(M.FrmLang(M.ToLongFormat(t.currentUser.locale))):""),l=e.computed(()=>t.currentUser?N(t.currentUser):"");return{langauge:n,fullName:l}}}),ft={class:"avatar"},ut={class:"details"},gt={class:"name"},yt={key:0,class:"email"},Ct={class:"email"};function ht(t,o,n,l,s,d){const c=e.resolveComponent("UserAvatar"),i=e.resolveComponent("v-col"),f=e.resolveComponent("v-icon"),r=e.resolveComponent("v-btn"),m=e.resolveComponent("v-row");return t.currentUser?(e.openBlock(),e.createBlock(m,{key:0,class:"mt-6 prof-hor"},{default:e.withCtx(()=>[e.createVNode(i,{cols:"12",sm:"7",class:"profile"},{default:e.withCtx(()=>[e.createElementVNode("div",ft,[e.createVNode(c,{size:96,user:t.currentUser,"base-url":t.baseUrl+"/avatars"},null,8,["user","base-url"])]),e.createElementVNode("div",ut,[e.createElementVNode("div",gt,e.toDisplayString(t.fullName),1),t.currentUser.email?(e.openBlock(),e.createElementBlock("div",yt,e.toDisplayString(t.currentUser.email),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ct,e.toDisplayString(t.$t("aff.Language"))+": "+e.toDisplayString(t.langauge),1)])]),_:1}),e.createVNode(i,{cols:"12",sm:"5",class:e.normalizeClass(`buttons btn-variant-${t.btnVariant}`)},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{variant:t.btnVariant,color:"primary",onClick:o[0]||(o[0]=g=>t.$emit("edit-profile"))},{default:e.withCtx(()=>[e.createVNode(f,{icon:t.mdiPencil(),class:"mr-1"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Edit info")),1)]),_:1},8,["variant"]),e.createVNode(r,{variant:t.btnVariant,color:"primary",onClick:o[1]||(o[1]=g=>t.$emit("change-password"))},{default:e.withCtx(()=>[e.createVNode(f,{icon:t.mdiKeyVariant(),class:"mr-1"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Change password")),1)]),_:1},8,["variant"])])]),_:1},8,["class"])]),_:1})):e.createCommentVNode("",!0)}const kt=h(pt,[["render",ht]]),_t=t=>{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]=null)},Z=(t,o,n,l,s,d=null)=>{if(typeof t=="string"){l(t);return}if(t.response&&t.response.status){if(t.response.status===400&&t.response.data){Vt(t,o,n,l,s,d);return}if(t.response.status===409&&t.response.data){bt(t,l,s);return}if(t.response.status===417&&t.response.data){Bt(l,s);return}}l(t)},$t=()=>{setTimeout(()=>{const t=document.querySelector(".v-input--error, .ec-input.local-err");if(t==null)return;const o=t.querySelector("input, textarea, .ec-inp-ctrl");o?.focus()},200)},Vt=(t,o,n,l,s,d=null)=>{const c=[];let i=!1,f={};if(Array.isArray(t.response.data))for(let r=0;r<t.response.data.length;r++)c.push(t.response.data[r]);else for(const r in t.response.data)if(Object.prototype.hasOwnProperty.call(t.response.data,r)){const m=t.response.data[r];if(Nt(f,o,r,m[0]))i=!0;else{const u=d&&d[r]?d[r]:r;c.push({error_message:`${u}: ${m}`})}}c.length>0&&(c.length===1?l(c[0]):l({message:s("aff.Some errors occured:"),details:"<ul><li>"+c.map(r=>r.error_message).join("</li><li>")+"</li></ul>"})),i&&(n!=null&&(n.value={...n.value,...f}),$t())},bt=(t,o,n)=>{let l=[];typeof t.response.data=="string"?l.push(t.response.data):t.response.data.errors&&(l=t.response.data.errors.map(s=>s.error_message)),o({title:n("aff.Concurrency error"),details:l.length===1?l[0]:"<ul><li>"+l.join("</li><li>")+"</li></ul>",code:409})},Bt=(t,o)=>{t({title:o("aff.Product version mismatch."),details:o("aff.Please reload the page."),code:417})},Nt=(t,o,n,l)=>{const s=n.split(".");let d=o,c=t;for(;s.length>0;){const i=s.shift();if(i){if(s.length===0)return/^\d+$/.test(i)?!1:Object.prototype.hasOwnProperty.call(d,i)?(c[i]=l,!0):!1;if(/^\d+$/.test(i))d=d[parseInt(i)],c[d.tmp_id]||(c[d.tmp_id]={}),c=c[d.tmp_id];else if(Object.prototype.hasOwnProperty.call(d,i))d=d[i],c[i]||(c[i]={}),c=c[i];else return!1}}return!1},wt=(t,o)=>{for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},Et=e.defineComponent({name:"FilesUploadControl",methods:{mdiEye(){return he},mdiDelete(){return ye},mdiUpload(){return be}},props:{modelValue:{type:Object,default:null},controlType:{type:String,default:"files"},uploadMethod:{type:Function,required:!0},shape:{type:String,default:"square"},cropType:{type:String,default:"center_outside"},bucket:{type:String,default:"workspace"},noSlideshow:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},workspaceIds:{type:Array,required:!0},mediaBaseUrl:{type:String,default:null},baseUrl:{type:String,required:!0}},emits:["update:modelValue","slideshow"],setup(t,o){const{showError:n}=T(),l=e.ref(!1),s=e.ref(e.getCurrentInstance()?.uid??0),d=e.ref([]),c=e.ref(!1),i=e.ref({group:0,file:0}),f=e.ref(0),r=e.ref(t.modelValue),m=e.computed(()=>t.workspaceIds?.[0]??0),g=e.computed(()=>t.bucket==="avatar"?r.value?.thumb?.startsWith("tmp/")?`${t.baseUrl}/a/${m.value}/files/upload_temp/?p=${r.value?.thumb}`:`${t.mediaBaseUrl??t.baseUrl}/avatars/${r.value?.thumb}`:r.value?.id?t.mediaBaseUrl?`${t.mediaBaseUrl}/${r.value?.thumb}`:`${t.baseUrl}/a/${m.value}/files/${r.value.id}/?which=thumb`:`${t.baseUrl}/a/${m.value}/files/upload_temp/?p=${r.value?.thumb}`),u=()=>{l.value||(l.value=!0)},a=()=>{l.value&&(l.value=!1)},y=()=>{d.value[i.value.group]?.splice(i.value.file).length,d.value.length-1>i.value.group&&d.value.splice(i.value.group),i.value.group++,i.value.file=0},$=()=>{c.value=!0;let _=d.value[i.value.group]?.[i.value.file];if(!_){c.value=!1;return}t.uploadMethod(_,t.cropType).then(V=>{if(r.value=V,o.emit("update:modelValue",V),f.value++,i.value.file++,i.value.file>=(d.value[i.value.group]?.length??0)&&(i.value.group++,i.value.file=0,i.value.group>=d.value.length)){c.value=!1;return}$()}).catch(V=>{c.value=!1,n(V),setTimeout(()=>y(),500)})},b=_=>{const V=[];for(const sn of _)V.push(sn);d.value.push(V),c.value||$()};return{dndOver:l,controlId:s,uploadedFile:r,previewUrl:g,workspaceId:m,uploadRunning:c,uploadDragover:u,uploadDragleave:a,uploadDrop:_=>{a(),_.dataTransfer?.files.length&&b(_.dataTransfer.files)},uploadChange:_=>{const V=_.target;V?.files&&b(V.files)},openSlideshow:()=>{o.emit("slideshow")},removeImage:()=>{r.value=null,o.emit("update:modelValue",null)}}}}),St={style:{display:"initial",position:"absolute",opacity:"0",width:"10px"}},At=["id","name"],Dt=["for"],Mt={key:0},Lt={key:0,href:"javascript:v()",onclick:"return false;",target:"_blank"},Tt={key:1,class:"file-del"},Ht=["for"];function Ut(t,o,n,l,s,d){const c=e.resolveComponent("v-icon"),i=e.resolveComponent("v-progress-circular"),f=e.resolveComponent("v-btn");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(`img-upl-box ctrl-${t.controlType}`)},[e.createElementVNode("div",St,[e.createElementVNode("input",{id:`uf_${t.controlId}`,type:"file",multiple:"",name:`uf_${t.controlId}`,style:{width:"10px"},onChange:o[0]||(o[0]=(...r)=>t.uploadChange&&t.uploadChange(...r))},null,40,At)]),(t.uploadedFile==null||t.controlType==="files")&&!t.disabled&&!t.uploadRunning?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dnd-area",`dnd-${t.shape}`,"text-xs-center",t.dndOver?"dnd-over":"dnd-out"]),onDragover:o[1]||(o[1]=e.withModifiers((...r)=>t.uploadDragover&&t.uploadDragover(...r),["stop","prevent"])),onDragleave:o[2]||(o[2]=e.withModifiers((...r)=>t.uploadDragleave&&t.uploadDragleave(...r),["stop","prevent"])),onDrop:o[3]||(o[3]=e.withModifiers((...r)=>t.uploadDrop&&t.uploadDrop(...r),["stop","prevent"]))},[e.createElementVNode("label",{for:`uf_${t.controlId}`},[e.createElementVNode("div",null,[e.createVNode(c,{icon:t.mdiUpload(),class:e.normalizeClass(t.controlType==="files"?"mr-1":"")},null,8,["icon","class"]),t.controlType==="files"?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(t.$t("Drag files here or click to upload")),1)):e.createCommentVNode("",!0)])],8,Dt)],34)):t.uploadRunning?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["dnd-area-loading",`dnd-${t.shape}`])},[e.createVNode(i,{size:"32",color:"secondary",indeterminate:""})],2)):t.controlType==="image"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["file-thumb",`dnd-${t.shape}`])},[t.uploadedFile!==null?(e.openBlock(),e.createElementBlock("a",Lt,[e.createElementVNode("div",{style:e.normalizeStyle(`background-image: url('${t.previewUrl}');`)},null,4)])):e.createCommentVNode("",!0),t.uploadedFile!==null?(e.openBlock(),e.createElementBlock("div",Tt,[t.noSlideshow?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:0,variant:"flat",size:"small",color:"grey_l2",icon:t.mdiEye(),onClick:t.openSlideshow},null,8,["icon","onClick"])),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:1,variant:"flat",size:"small",color:"grey_l2",icon:t.mdiDelete(),onClick:t.removeImage},null,8,["icon","onClick"]))])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2),t.controlType==="image"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`img-upl-btns ctrl-${t.controlType}`)},[e.createElementVNode("label",{for:`uf_${t.controlId}`,class:"v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat"},[e.createElementVNode("div",null,[e.createVNode(c,{icon:t.mdiUpload()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Btn__Upload")),1)])],8,Ht),!t.noSlideshow&&t.uploadedFile!==null&&t.controlType==="image"?(e.openBlock(),e.createBlock(f,{key:0,variant:"flat",onClick:t.openSlideshow},{default:e.withCtx(()=>[e.createVNode(c,{icon:t.mdiEye()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Btn__View")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),!t.disabled&&t.uploadedFile!==null&&t.controlType==="image"?(e.openBlock(),e.createBlock(f,{key:1,variant:"flat",onClick:t.removeImage},{default:e.withCtx(()=>[e.createVNode(c,{icon:t.mdiDelete()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Btn__Delete")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64)}const Y=h(Et,[["render",Ut]]),Pt=e.defineComponent({name:"ProfileEditDialog",methods:{mdiPalette(){return $e}},components:{ColorPicker:O,UserAvatar:S,AccountAvatar:D,FieldLabel:R,CustomDialog:q,FilesUploadControl:Y},props:{showDialog:{type:Boolean,required:!0},currentUser:{type:Object,required:!0},fallbackLocale:{type:String,required:!0},systemLanguages:{type:Array,required:!0},updateProfileFx:{type:Function,required:!0},uploadMethod:{type:Function,required:!0},mediaBaseUrl:{type:String,defualt:null},baseUrl:{type:String,required:!0}},emits:["close"],setup(t,{emit:o}){const{t:n}=B.useI18n(),{showError:l}=T(),s=e.ref({...t.currentUser}),d=e.ref({}),c=e.ref(M.ToLongFormat(t.currentUser.locale??t.fallbackLocale)),i=e.ref(t.currentUser?.avatar_thumb?"photo":"color"),f=e.ref(!1),r=e.computed(()=>[{value:"photo",text:n("aff.Photo")},{value:"color",text:n("aff.Color")}]),m=e.computed(()=>U.filter(y=>t.systemLanguages.indexOf(y.value)>=0).map(y=>({title:n(y.title),value:y.value}))),g=e.computed(()=>s.value?.avatar_thumb?{thumb:s.value.avatar_thumb,name:"avatar",file:null,file_id:null,thumb_id:null,content_type:"image",size:0}:void 0);return{formData:s,localErrors:d,languages:m,lang:c,identity:i,identities:r,loading:f,saveClick:()=>{f.value=!0;const y={...s.value};i.value=="color"&&(y.avatar_thumb=null),y.locale=c.value,t.updateProfileFx(y).then(()=>o("close")).catch($=>Z($,s.value,d,l,n)).finally(()=>f.value=!1)},avatarValue:g,photoChanged:y=>{s.value&&(s.value.avatar_thumb=y?.thumb??null)}}}}),Ft={key:0,class:"ff-simple-form"},It={class:"avatar-edit"},zt={class:"avatar"},qt={class:"options"},Ot={key:0,class:"sel-ident"};function Rt(t,o,n,l,s,d){const c=e.resolveComponent("FilesUploadControl"),i=e.resolveComponent("v-avatar"),f=e.resolveComponent("v-radio"),r=e.resolveComponent("v-radio-group"),m=e.resolveComponent("v-icon"),g=e.resolveComponent("v-btn"),u=e.resolveComponent("ColorPicker"),a=e.resolveComponent("v-menu"),y=e.resolveComponent("v-col"),$=e.resolveComponent("v-text-field"),b=e.resolveComponent("FieldLabel"),C=e.resolveComponent("v-select"),A=e.resolveComponent("v-row"),Q=e.resolveComponent("CustomDialog");return e.openBlock(),e.createBlock(Q,{value:t.showDialog,title:t.$t("aff.Your profile"),persistent:"",class:"prof-dlg",onClose:o[7]||(o[7]=k=>t.$emit("close",null))},{footer:e.withCtx(()=>[e.createVNode(g,{variant:"flat",color:"secondary",onClick:o[6]||(o[6]=k=>t.$emit("close",null))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Close")),1)]),_:1}),e.createVNode(g,{variant:"flat",color:"primary",loading:t.loading,onClick:t.saveClick},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Save")),1)]),_:1},8,["loading","onClick"])]),default:e.withCtx(()=>[t.formData?(e.openBlock(),e.createElementBlock("form",Ft,[e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(y,{cols:"12"},{default:e.withCtx(()=>[e.createElementVNode("div",It,[e.createElementVNode("div",zt,[t.identity==="photo"?(e.openBlock(),e.createBlock(c,{key:0,"model-value":t.avatarValue,"upload-method":t.uploadMethod,"control-type":"image",shape:"circle","crop-type":"center_inside",bucket:"avatar","no-slideshow":!0,"workspace-ids":[0],"base-url":t.baseUrl,"media-base-url":t.mediaBaseUrl,"onUpdate:modelValue":t.photoChanged},null,8,["model-value","upload-method","base-url","media-base-url","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(i,{key:1,color:t.formData.color??"primary",class:e.normalizeClass(`avatar-96-${t.formData.initials.length>=3?"l":"s"}`),size:96},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.formData.initials),1)]),_:1},8,["color","class"]))]),e.createElementVNode("div",qt,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:t.identity,"onUpdate:modelValue":o[0]||(o[0]=k=>t.identity=k),"true-icon":t.$vuetify.icons.aliases?.success,color:"primary","hide-details":"","error-messages":t.localErrors.other_vehicle_involved?.toString()??void 0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.identities,k=>(e.openBlock(),e.createBlock(f,{key:k.value.toString(),label:k.text,value:k.value,"base-color":t.localErrors.other_vehicle_involved?"error":""},null,8,["label","value","base-color"]))),128))]),_:1},8,["modelValue","true-icon","error-messages"])]),e.createElementVNode("div",null,[t.identity==="color"?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",null,[e.createVNode(a,null,{activator:e.withCtx(({props:k})=>[e.createVNode(g,e.mergeProps({variant:"text",color:"primary",class:"ff-btn"},k),{default:e.withCtx(()=>[e.createVNode(m,{icon:t.mdiPalette()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$vuetify.display.smAndUp?t.$t("aff.Choose color"):t.$t("aff.Color")),1)]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(u,{onChange:o[1]||(o[1]=k=>t.formData.color=k)})]),_:1})])])):e.createCommentVNode("",!0)])])])]),_:1}),e.createVNode(b,{label:t.$t("aff.Name"),cols:12,sm:6,"error-messages":t.localErrors.name?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode($,e.mergeProps({modelValue:t.formData.name,"onUpdate:modelValue":o[2]||(o[2]=_=>t.formData.name=_),variant:"outlined"},k),null,16,["modelValue"])]),_:1},8,["label","error-messages"]),e.createVNode(b,{label:t.$t("aff.Surname"),cols:12,sm:6,"error-messages":t.localErrors.surname?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode($,e.mergeProps({modelValue:t.formData.surname,"onUpdate:modelValue":o[3]||(o[3]=_=>t.formData.surname=_),variant:"outlined"},k),null,16,["modelValue"])]),_:1},8,["label","error-messages"]),e.createVNode(b,{label:t.$t("aff.E-mail"),cols:12,sm:6,"error-messages":t.localErrors.email?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode($,e.mergeProps({modelValue:t.formData.email,"onUpdate:modelValue":o[4]||(o[4]=_=>t.formData.email=_),variant:"outlined",disabled:""},k),null,16,["modelValue"])]),_:1},8,["label","error-messages"]),e.createVNode(b,{label:t.$t("aff.Language"),cols:12,sm:6,"error-messages":t.localErrors.locale?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode(C,e.mergeProps({modelValue:t.lang,"onUpdate:modelValue":o[5]||(o[5]=_=>t.lang=_),variant:"outlined",items:t.languages,"item-text":"title","item-value":"value"},k,{dense:""}),null,16,["modelValue","items"])]),_:1},8,["label","error-messages"])]),_:1})])):e.createCommentVNode("",!0)]),_:1},8,["value","title"])}const jt=h(Pt,[["render",Rt]]),Gt=e.defineComponent({name:"RowActionsButton",props:{rowActions:{type:Object,required:!0},item:{type:Object,required:!0}},setup(t){const o=e.computed(()=>t.rowActions.actions?.filter(s=>s.visible===void 0||s.visible(t.item))??[]),n=e.computed(()=>typeof t.rowActions.icon=="function"?t.rowActions.icon(t.item):t.rowActions.icon),l=e.computed(()=>!t.rowActions.actions&&t.rowActions.action?t.rowActions:null);return{actions:o,icon:n,oneAction:l}}});function Zt(t,o,n,l,s,d){const c=e.resolveComponent("v-btn"),i=e.resolveComponent("v-icon"),f=e.resolveComponent("v-list-item-title"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("v-list"),g=e.resolveComponent("v-menu");return t.oneAction?(e.openBlock(),e.createBlock(c,{key:0,variant:"text",size:"small",icon:t.icon,onClick:o[0]||(o[0]=e.withModifiers(u=>t.$emit("row-action",{action:t.oneAction.action,item:t.item}),["stop"]))},null,8,["icon"])):t.actions.length>0?(e.openBlock(),e.createBlock(g,{key:1},{activator:e.withCtx(({props:u})=>[e.createVNode(c,e.mergeProps({variant:"text",size:"small",icon:t.icon},u),null,16,["icon"])]),default:e.withCtx(()=>[e.createVNode(m,{density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,u=>(e.openBlock(),e.createBlock(r,{key:u.action,onClick:a=>t.$emit("row-action",{action:u.action,item:t.item})},{prepend:e.withCtx(()=>[e.createVNode(i,{icon:u.icon},null,8,["icon"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})):e.createCommentVNode("",!0)}const L=h(Gt,[["render",Zt]]),Yt=e.defineComponent({name:"MobileLayoutItem",methods:{mdiDragVertical(){return Ce}},components:{RowActionsButton:L},props:{item:{type:Object,required:!0},titleHeaders:{type:Array,required:!0},subTitleHeaders:{type:Array,required:!0},tagHeaders:{type:Array,required:!0},miniTblHeaders:{type:Array,required:!0},otherHeaders:{type:Array,required:!0},rowActions:{type:Object,default:null},draggable:{type:Boolean,default:!1},ripple:{type:Boolean,default:!0}},emits:["rowClick","rowAction"],setup(){const t=(n,l)=>l===null?null:n.mobileLabel?`${n.title}: ${l}`:l;return{formatValueList:(n,l,s)=>n.map(d=>d.format?t(d,d.format(d,l)):t(d,l[d.value]??null)).filter(d=>d!==null).join(s)}}}),Kt={style:{display:"flex","align-items":"center",gap:"8px"}},Wt={key:1},Jt={key:2},Xt={key:1},Qt={key:2},vt={key:0,class:"mini-table"},xt={key:0},eo={key:1},to={style:{"margin-top":"-11px","margin-bottom":"-11px"}},oo={key:0,class:"item-drag-handle"};function no(t,o,n,l,s,d){const c=e.resolveComponent("v-col"),i=e.resolveComponent("v-row"),f=e.resolveComponent("v-icon"),r=e.resolveComponent("v-chip"),m=e.resolveComponent("RowActionsButton"),g=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(u,{variant:"outlined",ripple:t.ripple,title:t.formatValueList(t.titleHeaders,t.item," - "),subtitle:t.formatValueList(t.subTitleHeaders,t.item,"; "),onClick:o[1]||(o[1]=a=>t.$emit("rowClick",t.item))},{title:e.withCtx(()=>[e.createElementVNode("div",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.titleHeaders,(a,y)=>(e.openBlock(),e.createElementBlock("span",{key:y},[a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),e.mergeProps({key:0,class:"mr-1"},{ref_for:!0},a.getProps?a.getProps(a,t.item):{}),null,16)):a.format?(e.openBlock(),e.createElementBlock("span",Wt,e.toDisplayString(a.format(a,t.item)),1)):(e.openBlock(),e.createElementBlock("span",Jt,e.toDisplayString(t.item[a.value]),1))]))),128))])]),default:e.withCtx(()=>[e.createVNode(g,{class:e.normalizeClass(t.otherHeaders.length===0&&t.miniTblHeaders.length===0&&!t.rowActions&&t.tagHeaders.length===0?"pb-0":"")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.otherHeaders,(a,y)=>(e.openBlock(),e.createBlock(i,{key:a.value,"no-gutters":"",class:e.normalizeClass(`mt-${y===0?0:3}`)},{default:e.withCtx(()=>[e.createVNode(c,{cols:"4",sm:"2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.title)+":",1)]),_:2},1024),e.createVNode(c,{cols:"8",sm:"10"},{default:e.withCtx(()=>[a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),e.mergeProps({key:0,ref_for:!0},a.getProps?a.getProps(a,t.item):{},e.toHandlers(a.getEvents?a.getEvents(a,t.item):{})),null,16)):a.format?(e.openBlock(),e.createElementBlock("span",Xt,e.toDisplayString(a.format(a,t.item)),1)):(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(t.item[a.value]),1))]),_:2},1024)]),_:2},1032,["class"]))),128)),t.miniTblHeaders.length>0?(e.openBlock(),e.createElementBlock("table",vt,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.miniTblHeaders,a=>(e.openBlock(),e.createElementBlock("th",{key:`h${a.value}`,style:e.normalizeStyle({width:`${100/t.miniTblHeaders.length}%`})},e.toDisplayString(a.title),5))),128))]),e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.miniTblHeaders,a=>(e.openBlock(),e.createElementBlock("td",{key:`h${a.value}`},[a.format?(e.openBlock(),e.createElementBlock("span",xt,e.toDisplayString(a.format(a,t.item)),1)):(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(t.item[a.value]),1))]))),128))])])):e.createCommentVNode("",!0),t.rowActions||t.tagHeaders.length>0?(e.openBlock(),e.createBlock(i,{key:1,"no-gutters":"",class:e.normalizeClass(t.otherHeaders.length===0?"mt-0":"mt-3")},{default:e.withCtx(()=>[e.createVNode(c,{cols:t.rowActions?10:12},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tagHeaders,a=>(e.openBlock(),e.createElementBlock("span",{key:a.value},[a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),e.mergeProps({key:0,class:"mr-1"},{ref_for:!0},a.getProps?a.getProps(a,t.item):{},e.toHandlers(a.getEvents?a.getEvents(a,t.item):{})),null,16)):a.format?(e.openBlock(),e.createBlock(r,{key:1,label:"",size:"small",variant:"flat",color:"grey",class:"mr-1"},{default:e.withCtx(()=>[a.mobileIcon?(e.openBlock(),e.createBlock(f,{key:0,icon:a.mobileIcon,class:"mr-1"},null,8,["icon"])):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(a.format(a,t.item)),1)]),_:2},1024)):(e.openBlock(),e.createBlock(r,{key:2,label:"",size:"small",variant:"flat",color:"grey",class:"mr-1"},{default:e.withCtx(()=>[a.mobileIcon?(e.openBlock(),e.createBlock(f,{key:0,icon:a.mobileIcon},null,8,["icon"])):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.item[a.value]),1)]),_:2},1024))]))),128))]),_:1},8,["cols"]),t.rowActions?(e.openBlock(),e.createBlock(c,{key:0,cols:"2",class:"text-right"},{default:e.withCtx(()=>[e.createElementVNode("div",to,[e.createVNode(m,{item:t.item,"row-actions":t.rowActions,onRowAction:o[0]||(o[0]=a=>t.$emit("rowAction",a))},null,8,["item","row-actions"])])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0)]),_:1},8,["class"]),t.draggable?(e.openBlock(),e.createElementBlock("div",oo,[e.createVNode(f,{icon:t.mdiDragVertical()},null,8,["icon"])])):e.createCommentVNode("",!0)]),_:1},8,["ripple","title","subtitle"])}const K=h(Yt,[["render",no]]),lo=e.defineComponent({name:"MobileLayout",components:{MobileLayoutItem:K,RowActionsButton:L},props:{items:{type:Array,required:!0},totalItems:{type:Number,required:!0},headers:{type:Array,required:!0},options:{type:Object,required:!0},loading:{type:Boolean,default:!1},rowActions:{type:Object,default:null}},setup(t,o){const n=e.ref(t.options.page),l=t.options.pageSize,s=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="title")),d=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="subtitle")),c=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="tag")),i=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="mini_table")),f=e.computed(()=>t.headers.filter(m=>m.mobilePlacement!=="title"&&m.mobilePlacement!=="subtitle"&&m.mobilePlacement!=="tag"&&m.mobilePlacement!=="mini_table"));return{titleHeaders:s,subTitleHeaders:d,tagHeaders:c,miniTblHeaders:i,otherHeaders:f,pageVal:n,pageSize:l,changePage:m=>{o.emit("options-update",{...t.options,page:m})}}}}),ro={class:"mobile-margin2 data-table-layout"},ao={key:1,class:"mt-3"};function so(t,o,n,l,s,d){const c=e.resolveComponent("v-progress-linear"),i=e.resolveComponent("MobileLayoutItem"),f=e.resolveComponent("v-pagination");return e.openBlock(),e.createElementBlock("div",ro,[t.loading?(e.openBlock(),e.createBlock(c,{key:0,indeterminate:""})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,r=>(e.openBlock(),e.createBlock(i,{key:r.id,item:r,"title-headers":t.titleHeaders,"mini-tbl-headers":t.miniTblHeaders,"sub-title-headers":t.subTitleHeaders,"tag-headers":t.tagHeaders,"other-headers":t.otherHeaders,"row-actions":t.rowActions,onRowClick:o[0]||(o[0]=m=>t.$emit("row-click",m)),onRowAction:o[1]||(o[1]=m=>t.$emit("row-action",m))},null,8,["item","title-headers","mini-tbl-headers","sub-title-headers","tag-headers","other-headers","row-actions"]))),128)),t.totalItems>t.pageSize?(e.openBlock(),e.createElementBlock("div",ao,[e.createVNode(f,{modelValue:t.pageVal,"onUpdate:modelValue":[o[2]||(o[2]=r=>t.pageVal=r),t.changePage],length:Math.ceil(t.totalItems/t.options.pageSize),rounded:"circle",density:"comfortable"},null,8,["modelValue","length","onUpdate:modelValue"])])):e.createCommentVNode("",!0)])}const io=h(lo,[["render",so]]),co=e.defineComponent({name:"DesktopLayout",components:{RowActionsButton:L},props:{items:{type:Array,required:!0},totalItems:{type:Number,required:!0},headers:{type:Array,required:!0},options:{type:Object,required:!0},loading:{type:Boolean,default:!1},rowActions:{type:Object,default:null}},setup(t,o){const{t:n}=B.useI18n(),l=t.options.page,s=t.options.pageSize,d=t.options.sortField?[{key:t.options.sortField,order:t.options.sortDir}]:[],c=r=>{const m=r.sortBy&&r.sortBy.length>0?r.sortBy[0]:null;o.emit("options-update",{page:r.page,pageSize:r.itemsPerPage,sortField:m?.key??null,sortDir:m?.order??"asc"})},i=e.computed(()=>[{value:5,title:"5"},{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:-1,title:n("aff.All")}]),f=e.computed(()=>{const r=n("aff.{0}-{1} of {2}",["{0}","{1}","{2}"]),m=(t.options.page-1)*t.options.pageSize+1,g=Math.min(t.options.page*t.options.pageSize,t.totalItems);return r.replace("{0}",m.toString()).replace("{1}",g.toString()).replace("{2}",t.totalItems.toString())});return{page:l,pageSize:s,sortBy:d,pageOptions:i,optionsUpdate:c,getPageText:f}}}),mo={class:"data-table-layout"},po=["onClick"],fo={key:1},uo={key:2},go={key:0,class:"text-right"};function yo(t,o,n,l,s,d){const c=e.resolveComponent("RowActionsButton"),i=e.resolveComponent("v-data-table-server");return e.openBlock(),e.createElementBlock("div",mo,[e.createVNode(i,{items:t.items,"items-length":t.totalItems,headers:t.headers,loading:t.loading,page:t.options.page,"items-per-page":t.options.pageSize,"sort-by":t.sortBy,"hide-default-footer":t.totalItems<=t.options.pageSize,class:"data-table","multi-sort":!1,"must-sort":!0,"items-per-page-options":t.pageOptions,"onUpdate:options":t.optionsUpdate},{item:e.withCtx(({item:f})=>[e.createElementVNode("tr",{onClick:r=>t.$emit("row-click",f),style:{cursor:"pointer"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.headers,r=>(e.openBlock(),e.createElementBlock("td",{key:r.value,class:e.normalizeClass(["v-data-table__td",`v-data-table-column--align-${r.align??"start"}`,r.mainField?"ff-col-main":""])},[r.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.component),e.mergeProps({key:0,ref_for:!0},r.getProps?r.getProps(r,f):{},e.toHandlers(r.getEvents?r.getEvents(r,f):{})),null,16)):r.format?(e.openBlock(),e.createElementBlock("span",fo,e.toDisplayString(r.format(r,f)),1)):(e.openBlock(),e.createElementBlock("span",uo,e.toDisplayString(f[r.value]),1))],2))),128)),t.rowActions?(e.openBlock(),e.createElementBlock("td",go,[e.createVNode(c,{item:f,"row-actions":t.rowActions,onRowAction:o[0]||(o[0]=r=>t.$emit("row-action",r))},null,8,["item","row-actions"])])):e.createCommentVNode("",!0)],8,po)]),_:1},8,["items","items-length","headers","loading","page","items-per-page","sort-by","hide-default-footer","items-per-page-options","onUpdate:options"])])}const Co=h(co,[["render",yo]]),ho=e.defineComponent({name:"ColumnSelector",props:{columns:{type:Array,required:!0},currentColumns:{type:Array,required:!0}},emits:["changeCurrentColumns"],methods:{mdiCheck(){return H},mdiViewColumn(){return Be}},setup(t,{emit:o}){return{toggleColumn:l=>{const s=[...t.currentColumns];s.indexOf(l)>=0?s.splice(s.indexOf(l),1):s.push(l),o("changeCurrentColumns",s)}}}});function ko(t,o,n,l,s,d){const c=e.resolveComponent("v-btn"),i=e.resolveComponent("v-list-item-title"),f=e.resolveComponent("v-icon"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("v-list"),g=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(g,null,{activator:e.withCtx(({props:u})=>[e.createVNode(c,e.mergeProps({variant:"text",icon:t.mdiViewColumn()},u),null,16,["icon"])]),default:e.withCtx(()=>[e.createVNode(m,{density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(u,a)=>(e.openBlock(),e.createBlock(r,{key:a,onClick:y=>t.toggleColumn(u.value)},{append:e.withCtx(()=>[e.createVNode(f,{icon:t.mdiCheck(),color:t.currentColumns.indexOf(u.value)>=0?"primary":"white"},null,8,["icon","color"])]),default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}const _o=h(ho,[["render",ko]]),$o=e.defineComponent({name:"EmptyFilter",props:{modelValue:{type:[Array,Number,String],default:null},filter:{type:Object,required:!0},items:{type:Array,required:!0}}}),Vo={class:"f-lbl"};function bo(t,o,n,l,s,d){const c=e.resolveComponent("v-btn");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Vo,e.toDisplayString(t.$t(t.filter.title)),1),e.createVNode(c,{variant:"flat",color:"grey-lighten-2"},{default:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("span",null,null,-1)])]),_:1})])}const Bo=h($o,[["render",bo]]),No=e.defineComponent({name:"SelectFilter",props:{modelValue:{type:[Array,Number,String],default:null},filter:{type:Object,required:!0},items:{type:Array,required:!0}},emits:["change"],methods:{mdiCheck(){return H},mdiMenuDown(){return z}},setup(t,{emit:o}){const{t:n}=B.useI18n(),l=Math.ceil(Math.random()*1e5),s=e.ref(!1),d=e.ref(t.modelValue===null?[]:(Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]).map(r=>typeof r=="string"?parseInt(r):r)),c=e.computed(()=>{if(!t.modelValue)return n("aff.All");const r=(Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]).map(m=>typeof m=="string"?parseInt(m):m);return r.length>=3?`${r.length} ${n("aff.items")}`:r.map(m=>t.items.find(g=>g.id===m)?.name).join(", ")});return{ctrlId:l,open:s,selected:d,openMenu:()=>{},selVal:r=>{t.filter.multiple?d.value.indexOf(r)>=0?d.value.splice(d.value.indexOf(r),1):d.value.push(r):d.value.length===1&&d.value[0]===r?d.value=[]:d.value=[r],o("change",d)},disp:c}}}),wo={class:"f-lbl"};function Eo(t,o,n,l,s,d){const c=e.resolveComponent("v-icon"),i=e.resolveComponent("v-btn"),f=e.resolveComponent("v-list-item-title"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("v-list"),g=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-card"),a=e.resolveComponent("v-menu");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",wo,e.toDisplayString(t.$t(t.filter.title)),1),e.createVNode(i,{id:`menu-activator${t.ctrlId}`,variant:"flat",class:e.normalizeClass(["like-select",t.modelValue===null?"empty":""]),color:"grey-lighten-2",onClick:t.openMenu},{append:e.withCtx(()=>[e.createVNode(c,{size:24,icon:t.mdiMenuDown()},null,8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.disp),1)]),_:1},8,["id","class","onClick"]),e.createVNode(a,{modelValue:t.open,"onUpdate:modelValue":o[0]||(o[0]=y=>t.open=y),activator:`#menu-activator${t.ctrlId}`,"close-on-content-click":!0},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(g,{class:"pa-0"},{default:e.withCtx(()=>[e.createVNode(m,{density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,y=>(e.openBlock(),e.createBlock(r,{key:y.id,onClick:$=>t.selVal(y.id)},{append:e.withCtx(()=>[e.createVNode(c,{color:t.selected.indexOf(y.id)>=0?"primary":"white",icon:t.mdiCheck()},null,8,["color","icon"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","activator"])])}const So=h(No,[["render",Eo]]),Ao=e.defineComponent({name:"DataTableFilters",props:{filters:{type:Array,default:null},filterValues:{type:Object,default:null},getFilterComponent:{type:Function,required:!0}},setup(t){return{filters:e.computed(()=>t.filters.map(n=>({...n,component:t.getFilterComponent(n),value:n.default})))}}}),Do={class:"dt-filters"};function Mo(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",Do,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.filters,c=>(e.openBlock(),e.createElementBlock("div",{key:c.name},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.component),{modelValue:t.filterValues[c.name],"onUpdate:modelValue":i=>t.filterValues[c.name]=i,filter:c,"all-filter-values":t.filterValues,onChange:i=>t.$emit("change",{name:c.name,value:i})},null,40,["modelValue","onUpdate:modelValue","filter","all-filter-values","onChange"]))]))),128))])}const Lo=h(Ao,[["render",Mo]]),w={PENDING:"pending",ACTIVE:"active",INACTIVE:"inactive",PENDING_INACTIVE:"pending_inactive",format(t,o){switch(t){case this.PENDING:return o("aff.User status__Pending");case this.ACTIVE:return o("aff.User status__Active");case this.INACTIVE:case this.PENDING_INACTIVE:return o("aff.User status__Inactive");default:return t}}},To=e.defineComponent({name:"UserStatusChip",props:{item:{type:Object,required:!0},size:{type:String,default:"default"}},setup(t){const{t:o}=B.useI18n();return{chipProps:e.computed(()=>{const l=w.format(t.item.status,o);switch(t.item.status){case w.ACTIVE:return{text:l,color:"primary"};case w.PENDING:return{text:l,color:"deep-orange"};case w.INACTIVE:return{text:l,color:"grey-darken-1"};case w.PENDING_INACTIVE:return{text:l,color:"grey-darken-1"};default:return{text:l,color:"grey-darken-1"}}})}}});function Ho(t,o,n,l,s,d){const c=e.resolveComponent("v-chip");return e.openBlock(),e.createBlock(c,{label:"",color:t.chipProps.color,size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.chipProps.text),1)]),_:1},8,["color","size"])}const Uo=h(To,[["render",Ho]]),Po=e.defineComponent({name:"ConfirmPopup",props:{show:{type:Boolean,required:!0},message:{type:String,required:!0},okText:{type:String,default:null},okLoading:{type:Boolean,default:!1}},emits:["close","ok"]});function Fo(t,o,n,l,s,d){const c=e.resolveComponent("v-card-text"),i=e.resolveComponent("v-spacer"),f=e.resolveComponent("v-btn"),r=e.resolveComponent("v-card-actions"),m=e.resolveComponent("v-card"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{"model-value":t.show,width:"608px","onUpdate:modelValue":o[2]||(o[2]=u=>t.$emit("close"))},{default:e.withCtx(()=>[e.createVNode(m,{dark:"",class:"confirm-dialog",theme:"dark"},{default:e.withCtx(()=>[e.createVNode(c,{class:"text-subtitle-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.message),1)]),_:1}),e.createVNode(r,{class:"dialog-actions-bar"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"buttons",{},()=>[e.createVNode(i),e.createVNode(f,{onClick:o[0]||(o[0]=u=>t.$emit("close")),flat:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Cancel")),1)]),_:1}),e.createVNode(f,{variant:"flat",loading:t.okLoading,onClick:o[1]||(o[1]=u=>t.$emit("ok")),color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.okText??t.$t("aff.OK")),1)]),_:1},8,["loading"])])]),_:3})]),_:3})]),_:3},8,["model-value"])}const Io=h(Po,[["render",Fo]]),zo=e.defineComponent({name:"SearchFilter",props:{modelValue:{type:String,default:null},filter:{type:Object,required:!0}},emits:["change"],setup(t){const o=e.ref(t.modelValue),n=()=>{let l;return(s,d,c=500)=>{clearTimeout(l),l=window.setTimeout(()=>d(s),c)}};return e.watch(()=>t.modelValue,l=>{l!==o.value&&(o.value=l)}),{val:o,debounce:n()}}}),qo={class:"f-lbl"};function Oo(t,o,n,l,s,d){const c=e.resolveComponent("v-text-field");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",qo,e.toDisplayString(t.$t(t.filter.title)),1),e.createVNode(c,{modelValue:t.val,"onUpdate:modelValue":[o[0]||(o[0]=i=>t.val=i),o[1]||(o[1]=i=>t.debounce(i,f=>t.$emit("change",f)))],variant:"outlined","hide-details":!0,density:"compact"},null,8,["modelValue"])])}const Ro=h(zo,[["render",Oo]]),W={et_EE:{culture:"et-EE",datetime_format:"d.MM.yyyy H:mm",date_format_no_year:"d.MM",month_format:"MM.yyyy",decimal_symbol:",",list_separator:";",time_format:"H:mm",date_format_friendly_no_year:"d. MMM",date_format:"d.MM.yyyy",thousands_symbol:" ",datetime_pos_format:"{1} {0}",money_format:"{1} {0}"},et:{culture:"et",datetime_format:"d.MM.yyyy H:mm",date_format_no_year:"d.MM",month_format:"MM.yyyy",decimal_symbol:",",list_separator:";",time_format:"H:mm",date_format_friendly_no_year:"d. MMM",date_format:"d.MM.yyyy",thousands_symbol:" ",datetime_pos_format:"{1} {0}",money_format:"{1} {0}"},en_GB:{culture:"en-GB",datetime_format:"dd/MM/yyyy, HH:mm",date_format_no_year:"dd/MM",month_format:"MM/yyyy",decimal_symbol:".",list_separator:",",time_format:"HH:mm",date_format_friendly_no_year:"D MMM",date_format:"dd/MM/yyyy",thousands_symbol:",",datetime_pos_format:"{1}, {0}",money_format:"{1} {0}"},en:{culture:"en",datetime_format:"dd/MM/yyyy, HH:mm",date_format_no_year:"dd/MM",month_format:"MM/yyyy",decimal_symbol:".",list_separator:",",time_format:"HH:mm",date_format_friendly_no_year:"D MMM",date_format:"dd/MM/yyyy",thousands_symbol:",",datetime_pos_format:"{1}, {0}",money_format:"{1} {0}"}},jo={EUR:"€",USD:"$"},Go=x(),J=(t,o,n,l,s)=>(typeof t=="string"&&(t=parseFloat(t)),t.toLocaleString("en-GB",{minimumFractionDigits:o,maximumFractionDigits:n}).replace(/\.|,/gi,d=>d==="."?l:s)),Zo=(t,o)=>t==null?"":t.replace(new RegExp(o,"g"),"").replace(new RegExp(" ","g"),"").replace(",","."),Yo=/(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g,Ko=(t,o)=>{if(!t)return"";const n=typeof t=="string"?new Date(t):t;return o.replace(Yo,l=>{switch(l){case"d":return n.getDate().toString();case"dd":case"DD":return("0"+n.getDate()).slice(-2);case"h":{const s=n.getHours();return(s===0?12:s>12?s-12:s).toString()}case"hh":{const s=n.getHours();return("0"+(s===0?12:s>12?s-12:s)).slice(-2)}case"H":return n.getHours().toString();case"HH":return("0"+n.getHours()).slice(-2);case"m":return n.getMinutes().toString();case"mm":return("0"+n.getMinutes()).slice(-2);case"M":return(n.getMonth()+1).toString();case"MM":return("0"+(n.getMonth()+1)).slice(-2);case"s":return n.getSeconds().toString();case"ss":return("0"+n.getSeconds()).slice(-2);case"tt":return n.getHours()>=12?"PM":"AM";case"yy":return n.getFullYear().toString().slice(-2);case"yyyy":case"YYYY":return n.getFullYear().toString();case"zzz":{const s=n.getTimezoneOffset(),d=Math.abs(s)%60;return`${s<=0?"+":"-"}${("0"+(Math.abs(s)-d)/60).slice(-2)}:${("0"+d).slice(-2)}`}default:return l}})},X=(t,o=void 0,n=void 0)=>{if(o===void 0&&(o=0),n===void 0&&(n=4),t==null)return"";typeof t=="string"&&(t=parseFloat(t));const{decimal_symbol:l,thousands_symbol:s}=W[Go.value]??{decimal_symbol:".",thousands_symbol:","};return J(t,o,n,l,s)},Wo=t=>t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2),Jo=e.defineComponent({name:"DataTableTotals",methods:{frmNum:X},props:{totalItems:{type:Number,required:!0}}}),Xo={key:0},Qo={key:1};function vo(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(t.frmNum(t.totalItems))+" ",1),t.totalItems===1?(e.openBlock(),e.createElementBlock("span",Xo,e.toDisplayString(t.$t("aff.row")),1)):(e.openBlock(),e.createElementBlock("span",Qo,e.toDisplayString(t.$t("aff.rows")),1))])}const xo=h(Jo,[["render",vo]]),en=t=>t?t.replace(/(?:\r\n|\r|\n)/g,"<br>"):"",tn=t=>JSON.parse(JSON.stringify(t)),on=t=>{let o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},nn=(t,o,n,l=null)=>{let s,d;return l==null&&(l="/"),d="",n&&(s=new Date,s.setTime(s.getTime()+n*24*60*60*1e3),d="; expires="+s.toUTCString()),document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(o)+d+"; path="+l,!0},ln=(t,o)=>{for(const n of o){if(n==="/")return t==="/";if(t.startsWith(n))return!0}return!1},rn=t=>{const o={};for(const n of["p","l","s","d"])t[n]!==void 0&&(o[n]=t[n]);return o},an=(t,o)=>{const n=o.params.view??o.meta.view??null;if(n){const l=t.find(s=>s.name===n);if(l)return l}return t[0]};p.AccountAvatar=D,p.ColorPicker=O,p.ColumnSelector=_o,p.ConfirmPopup=Io,p.CultureInfos=W,p.CurrencySymbols=jo,p.CustomDialog=q,p.DataTableFilters=Lo,p.DataTableTotals=xo,p.DesktopLayout=Co,p.EmptyFilter=Bo,p.ErrorDialog=ve,p.FieldLabel=R,p.FieldRow=at,p.FilesUploadControl=Y,p.GetView=an,p.InLanguages=mt,p.InnerLeftMenu=fe,p.LangUtil=M,p.Languages=U,p.LazyLoadingProp=j,p.MobileLayout=io,p.MobileLayoutItem=K,p.PageSubtitle=de,p.PageTitle=ae,p.ProfileEditDialog=jt,p.ProfileInfo=kt,p.RowActionsButton=L,p.SearchFilter=Ro,p.SelectFilter=So,p.UserAvatar=S,p.UserMenu=Ke,p.UserStatus=w,p.UserStatusChip=Uo,p.clearLocalErrors=_t,p.clnNumbCust=Zo,p.clonePagingAndSort=rn,p.deepClone=tn,p.formatFullName=N,p.formatInitials=De,p.frmDateCust=Ko,p.frmNum=X,p.frmNumCust=J,p.frmSysDate=Wo,p.getCookie=on,p.handleErrorResponse=Z,p.isActive=ln,p.mapArrayToEnum=G,p.nl2br=en,p.setCookie=nn,p.setI18n=ee,p.syncItemChanges=wt,p.usePageStore=T,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(p,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("pinia"),require("vue"),require("vue-router"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","pinia","vue","vue-router","vue-i18n"],E):(p=typeof globalThis<"u"?globalThis:p||self,E(p["Alytus FF"]={},p.pinia,p.Vue,p.vueRouter,p.VueI18n))})(this,(function(p,E,e,P,B){"use strict";const F=e.ref("en_GB");function v(t){Object.defineProperty(F,"value",{get:()=>{const o=t?.global?.locale;return o?typeof o=="string"?o:o.value:"en_GB"},configurable:!0})}function x(){return F}let I=null;function ee(t){I=t,v(t)}const T=E.defineStore("page",()=>{const t=a=>I?.global?.t(a)??a;function o(a){return a}const n=e.ref(!1),l=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref({});function i(a,y,$){l.value=a,d.value=y,s.value=$,n.value=!0}function f(a){if(a instanceof XMLHttpRequest)i(null,a.statusText,a.status);else if(a.response!==void 0)switch(a.response.status){case 500:i(null,t("aff.An error has occurred"),500);break;case 504:i(null,"Network timeout, please try again.",504);break;case 403:i(null,"Insufficient permissions to perform this action.",503);break;case 404:i(null,t("aff.Not found"),404);break;case 409:i(null,"Concurrency error. Please reload page and make your changes again.",409);break;case 417:i(null,"Product version mismatch.",417);break;default:a.response.data&&Array.isArray(a.response.data)&&a.response.data.length===1?i(null,a.response.data[0],null):i(null,a.response.statusText,a.status);break}else a.name&&a.name==="AxiosError"||a instanceof Error?i(null,a.message,null):typeof a=="string"?i(null,a,null):typeof a=="object"&&(a.title!==void 0||a.details!==void 0||a.code!==void 0)?i(a.title,a.details,a.code):typeof a=="object"&&a.error_message!==void 0?i(null,a.error_message,null):i(null,a.toString(),null)}function r(a){f(a)}function m(){n.value=!1,setTimeout(()=>{l.value=null,s.value=null,d.value=null},250)}function g(a,y){c.value[a]=y}function u(a){delete c.value[a]}return{errorDialog:n,errorTitle:l,errorDetails:d,errorCode:s,showError:r,closeError:m,setFilterDefault:g,removeFilterDefault:u,filterDefaults:c}}),te=e.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0},description:{type:String,default:null}}}),h=(t,o)=>{const n=t.__vccOpts||t;for(const[l,s]of o)n[l]=s;return n},oe={class:"mt-6 mb-3 ff-page-title"},ne={class:"text-h5 ff-title"},le={key:0,class:"text-body-2 ff-description"};function re(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",null,[e.createElementVNode("span",ne,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),t.description?(e.openBlock(),e.createElementBlock("div",le,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"buttons")])])}const ae=h(te,[["render",re]]),se=e.defineComponent({name:"PageSubtitle",props:{subtitle:{type:String,required:!0},firstPosition:{type:Boolean,default:!1}}}),ie={class:"text-h6 font-weight-bold"};function ce(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.firstPosition?"mt-0":"","ff-page-subtitle"])},[e.createElementVNode("div",ie,e.toDisplayString(t.subtitle),1),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"buttons")])],2)}const de=h(se,[["render",ce]]),me=e.defineComponent({name:"InnerLeftMenu",components:{},props:{items:{type:Array,required:!0}},setup(){const t=P.useRouter(),o=P.useRoute();return{goTo:s=>{s.id&&t.push(s.id)},isActive:s=>o.fullPath.startsWith(s)}}});function pe(t,o,n,l,s,d){const c=e.resolveComponent("v-list");return e.openBlock(),e.createBlock(c,{class:"inner-left-menu mobile-horizontal",items:t.items,selected:t.items.filter(i=>i.value&&t.isActive(i.value)).map(i=>i.value),"onClick:select":o[0]||(o[0]=i=>t.goTo(i))},null,8,["items","selected"])}const fe=h(me,[["render",pe]]);var ue="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",H="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",ge="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",ye="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Ce="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",he="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",ke="M22,18V22H18V19H15V16H12L9.74,13.74C9.19,13.91 8.61,14 8,14A6,6 0 0,1 2,8A6,6 0 0,1 8,2A6,6 0 0,1 14,8C14,8.61 13.91,9.19 13.74,9.74L22,18M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z",_e="M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",z="M7,10L12,15L17,10H7Z",$e="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",Ve="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",be="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",Be="M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z";const Ne=e.defineComponent({name:"CustomDialog",methods:{mdiClose(){return ge}},props:{value:{type:Boolean,required:!0},title:{type:String,default:null},persistent:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noFullScreen:{type:Boolean,default:!1},fullHeight:{type:Boolean,default:!1},loading:{type:Boolean,required:!1}}}),we={class:"close-btn"};function Ee(t,o,n,l,s,d){const c=e.resolveComponent("v-btn"),i=e.resolveComponent("v-card-text"),f=e.resolveComponent("v-spacer"),r=e.resolveComponent("v-card-actions"),m=e.resolveComponent("v-card"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{"model-value":t.value,"max-width":"960",persistent:t.persistent,fullscreen:t.$vuetify.display.smAndDown&&!t.noFullScreen,class:e.normalizeClass([t.fullHeight?"ff-dialog":"ff-dialog ff-full-height"]),"content-class":t.fullHeight?"ff-full-height":"","onUpdate:modelValue":o[1]||(o[1]=u=>t.$emit("close"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"card",{},()=>[e.createVNode(m,{class:e.normalizeClass(t.fullHeight?"ff-full-height":""),loading:t.loading},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),append:e.withCtx(()=>[e.renderSlot(t.$slots,"header-right"),e.createElementVNode("div",we,[e.createVNode(c,{variant:"text",icon:t.mdiClose(),onClick:o[0]||(o[0]=u=>t.$emit("close"))},null,8,["icon"])])]),default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}),t.noFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"left-footer"),e.createVNode(f),e.renderSlot(t.$slots,"footer")]),_:3}))]),_:3},8,["class","loading"])])]),_:3},8,["model-value","persistent","fullscreen","class","content-class"])}const q=h(Ne,[["render",Ee]]),Se=e.defineComponent({name:"AccountAvatar",props:{item:{type:Object,required:!0},size:{type:Number,default:32}}});function Ae(t,o,n,l,s,d){const c=e.resolveComponent("v-avatar");return e.openBlock(),e.createBlock(c,{class:e.normalizeClass(`ff-avatar avatar-${t.size}-${t.item.initials.length>=3?"l":"s"}`),size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.item.initials),1)]),_:1},8,["class","size"])}const D=h(Se,[["render",Ae]]),N=t=>t.surname?`${t.name} ${t.surname}`:t.name,De=t=>t==null?"":t.name?t.surname?`${t.name.trim().substring(0,1).toUpperCase()}${t.surname.trim().substring(0,1).toUpperCase()}`:t.name.trim().substring(0,1).toUpperCase():t.surname?t.surname.trim().substring(0,1).toUpperCase():"",Me=e.defineComponent({name:"UserAvatar",props:{user:{type:Object,required:!0},size:{type:Number,required:!0},baseUrl:{type:String,required:!0}},setup(t){return{fullName:e.computed(()=>N(t.user))}}}),Le={key:1};function Te(t,o,n,l,s,d){const c=e.resolveComponent("v-img"),i=e.resolveComponent("v-avatar");return e.openBlock(),e.createBlock(i,{color:t.user.avatar_thumb?"light_grey_bg":t.user.color??"primary",class:e.normalizeClass(`avatar-${t.size}-${t.user.initials.length>=3?"l":"s"}`),size:t.size},{default:e.withCtx(()=>[t.user.avatar_thumb?(e.openBlock(),e.createBlock(c,{key:0,alt:t.fullName,src:`${t.baseUrl}/${t.user.avatar_thumb}`},null,8,["alt","src"])):(e.openBlock(),e.createElementBlock("span",Le,e.toDisplayString(t.user.initials),1))]),_:1},8,["color","class","size"])}const S=h(Me,[["render",Te]]),He=e.defineComponent({name:"UserMenu",components:{AccountAvatar:D,UserAvatar:S},methods:{mdiLogout(){return _e},mdiAccount(){return ue},mdiMenuDown(){return z},mdiCheck(){return H},formatFullName:N},props:{currentUser:{type:Object,required:!0},currentAccounts:{type:Object,required:!0},currentLang:{type:Object,required:!0},accounts:{type:Array,required:!0},langs:{type:Array,required:!0},baseUrl:{type:String,required:!0},staticList:{type:Boolean,default:!1},multipleAccounts:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]}},emits:["open-profile","select-account","unselect-account","switch-lang","log-out","action-click"],setup(t,{emit:o}){const{t:n}=B.useI18n(),l=e.ref(!1),s=e.ref(!1),d=e.computed(()=>t.currentUser!=null?N(t.currentUser):"-"),c=e.computed(()=>t.currentAccounts.map(u=>u.id)),i=e.computed(()=>t.currentAccounts.length===1?N(t.currentAccounts[0]):`${t.currentAccounts.length} ${n("aff.workspaces")}`);return{isOpen:l,userName:d,langMenu:s,accountIds:c,accountTitle:i,selectAccount:u=>{t.multipleAccounts?o(c.value.indexOf(u.id)>=0?"unselect-account":"select-account",u):o("select-account",u)},switchLang:u=>{o("switch-lang",u),s.value=!1},actionClick:u=>{o("action-click",u),l.value=!1},emitClose:u=>{o(u),l.value=!1}}}}),Ue={class:"ff-user-btn-text"},Pe={class:"name"},Fe={class:"comp"},Ie={key:0},ze={key:1},qe={class:"as-avatar"},Oe=["src"],Re=["src"],je={class:"as-avatar"},Ge={class:"as-avatar"},Ze={class:"as-avatar"};function Ye(t,o,n,l,s,d){const c=e.resolveComponent("UserAvatar"),i=e.resolveComponent("v-btn"),f=e.resolveComponent("v-list-subheader"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("AccountAvatar"),g=e.resolveComponent("v-list-item-title"),u=e.resolveComponent("v-icon"),a=e.resolveComponent("v-list"),y=e.resolveComponent("v-menu"),$=e.resolveComponent("v-card-text"),b=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(y,{modelValue:t.isOpen,"onUpdate:modelValue":o[4]||(o[4]=C=>t.isOpen=C),"close-on-content-click":!1},{activator:e.withCtx(({props:C})=>[e.createVNode(i,e.mergeProps(C,{class:"ff-user-btn"}),{default:e.withCtx(()=>[e.createVNode(c,{size:32,user:t.currentUser,"base-url":t.baseUrl+"/avatars"},null,8,["user","base-url"]),e.createElementVNode("div",Ue,[e.createElementVNode("div",Pe,e.toDisplayString(t.userName),1),e.createElementVNode("div",Fe,e.toDisplayString(t.accountTitle),1)])]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(b,{class:"ff-user-manu-card"},{default:e.withCtx(()=>[e.createVNode($,{class:"pa-0"},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Logged in as"))+":",1)]),_:1}),e.createVNode(r,{title:t.userName,subtitle:t.currentUser?.email??""},{prepend:e.withCtx(()=>[e.createVNode(c,{size:32,user:t.currentUser,"base-url":t.baseUrl+"/avatars"},null,8,["user","base-url"])]),_:1},8,["title","subtitle"]),t.staticList?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,null,{default:e.withCtx(()=>[t.accounts.length===1?(e.openBlock(),e.createElementBlock("span",Ie,e.toDisplayString(t.$t("aff.Active workspace"))+":",1)):(e.openBlock(),e.createElementBlock("span",ze,e.toDisplayString(t.$t("aff.Active workspaces")),1))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.accounts,C=>(e.openBlock(),e.createBlock(r,{key:C.id},{prepend:e.withCtx(()=>[e.createVNode(m,{item:C},null,8,["item"])]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.formatFullName(C)),1)]),_:2},1024)]),_:2},1024))),128))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Choose active workspaces"))+":",1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.accounts,C=>(e.openBlock(),e.createBlock(r,{key:C.id,onClick:A=>t.selectAccount(C)},{prepend:e.withCtx(()=>[e.createVNode(m,{item:C},null,8,["item"])]),append:e.withCtx(()=>[e.createVNode(u,{color:t.accountIds.indexOf(C.id)>=0?"primary":"white",icon:t.mdiCheck()},null,8,["color","icon"])]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.formatFullName(C)),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))],64)),e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Actions"))+":",1)]),_:1}),t.langs.length>1?(e.openBlock(),e.createBlock(r,{key:2,"append-icon":t.mdiMenuDown(),onClick:o[1]||(o[1]=C=>t.langMenu=!0)},{prepend:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createElementVNode("img",{src:t.currentLang.icon,height:"15",width:"20",alt:""},null,8,Oe)])]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.langMenu,"onUpdate:modelValue":o[0]||(o[0]=C=>t.langMenu=C),"close-on-content-click":!1},{activator:e.withCtx(({props:C})=>[e.createElementVNode("span",e.normalizeProps(e.guardReactiveProps(C)),e.toDisplayString(t.currentLang.title),17)]),default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.langs,C=>(e.openBlock(),e.createBlock(r,{key:C.value,title:C.title,onClick:A=>t.switchLang(C)},{prepend:e.withCtx(()=>[e.createElementVNode("img",{src:C.icon,height:"18",width:"24",alt:"",class:"mr-4"},null,8,Re)]),_:2},1032,["title","onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["append-icon"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,C=>(e.openBlock(),e.createBlock(r,{title:C.title,onClick:A=>t.actionClick(C.value)},e.createSlots({_:2},[C.icon?{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",je,[e.createVNode(u,{icon:C.icon},null,8,["icon"])])]),key:"0"}:void 0]),1032,["title","onClick"]))),256)),e.createVNode(r,{title:t.$t("aff.Profile settings"),onClick:o[2]||(o[2]=C=>t.emitClose("open-profile"))},{prepend:e.withCtx(()=>[e.createElementVNode("div",Ge,[e.createVNode(u,{icon:t.mdiAccount()},null,8,["icon"])])]),_:1},8,["title"]),e.createVNode(r,{title:t.$t("aff.Log out"),onClick:o[3]||(o[3]=C=>t.emitClose("log-out"))},{prepend:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createVNode(u,{icon:t.mdiLogout()},null,8,["icon"])])]),_:1},8,["title"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ke=h(He,[["render",Ye]]),We=e.defineComponent({name:"ErrorDialog",props:{show:{type:Boolean,default:!1},errorTitle:{type:String,default:null},errorDetails:{type:String,default:null},errorCode:{type:String,default:null}},emits:["close"],setup(t){const{t:o}=B.useI18n();return{title:e.computed(()=>t.errorTitle??o("aff.Error occurred"))}}}),Je=["innerHTML"],Xe={key:1};function Qe(t,o,n,l,s,d){const c=e.resolveComponent("v-card-text"),i=e.resolveComponent("v-spacer"),f=e.resolveComponent("v-btn"),r=e.resolveComponent("v-card-actions"),m=e.resolveComponent("v-card"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{"max-width":"500","model-value":t.show,onClose:o[1]||(o[1]=u=>t.$emit("close"))},{default:e.withCtx(()=>[e.createVNode(m,{title:t.title,theme:"dark"},{default:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[t.errorDetails?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:t.errorDetails},null,8,Je)):e.createCommentVNode("",!0),o[2]||(o[2]=e.createTextVNode()),t.errorCode?(e.openBlock(),e.createElementBlock("span",Xe,"("+e.toDisplayString(t.$t("aff.Code"))+": "+e.toDisplayString(t.errorCode)+")",1)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(i),e.createVNode(f,{text:t.$t("aff.Close"),color:"primary",variant:"flat",onClick:o[0]||(o[0]=u=>t.$emit("close"))},null,8,["text"])]),_:1})]),_:1},8,["title"])]),_:1},8,["model-value"])}const ve=h(We,[["render",Qe]]),xe=e.defineComponent({name:"FieldRow",props:{label:{type:String,default:""},description:{type:String,default:""},errorMessage:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(){return{}}}),et={class:"lbl-col text-body-2"},tt={class:"lbl"},ot=["innerHTML"],nt={class:"inp-col"},lt=["innerHTML"];function rt(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fld-row mobile-margin",t.errorMessage?"fld-err":""])},[e.createElementVNode("div",et,[e.createElementVNode("div",tt,e.toDisplayString(t.label),1),t.description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"descr",innerHTML:t.description},null,8,ot)):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.renderSlot(t.$slots,"default",{hideDetails:!t.errorMessage,errorMessages:t.errorMessage,disabled:t.disabled})]),t.description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"descr-col text-body-2",innerHTML:t.description},null,8,lt)):e.createCommentVNode("",!0)],2)}const at=h(xe,[["render",rt]]),st=e.defineComponent({name:"ColorPicker",components:{UserAvatar:S,AccountAvatar:D},setup(){const t=e.ref(null),o=(()=>{const n=[];for(let l=1;l<=48;l++)n.push(`color-${l}`);return n})();return{val:t,colors:o}}});function it(t,o,n,l,s,d){const c=e.resolveComponent("v-avatar"),i=e.resolveComponent("v-list-item-title"),f=e.resolveComponent("v-list-item"),r=e.resolveComponent("v-list"),m=e.resolveComponent("v-card-text"),g=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(g,{class:"ff-col-pckr"},{default:e.withCtx(()=>[e.createVNode(m,{style:{width:"305px",padding:"0 8px"}},{default:e.withCtx(()=>[e.createVNode(r,{style:{width:"289px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.colors,u=>(e.openBlock(),e.createBlock(f,{key:u,onClick:a=>t.$emit("change",u)},{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(c,{color:u,size:"32"},null,8,["color"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})]),_:1})}const O=h(st,[["render",it]]),ct=e.defineComponent({name:"FieldLabel",props:{label:{type:String,default:null},errorMessages:{type:String,default:null},cols:{type:Number,default:12},sm:{type:Number,default:12},disabled:{type:Boolean,default:!1}}});function dt(t,o,n,l,s,d){const c=e.resolveComponent("v-col");return e.openBlock(),e.createBlock(c,{cols:t.cols,sm:t.sm,class:"fld"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["fld-lbl",t.errorMessages?"fld-err":""])},e.toDisplayString(t.label),3),e.renderSlot(t.$slots,"default",{hideDetails:!t.errorMessages,errorMessages:t.errorMessages,disabled:t.disabled})]),_:3},8,["cols","sm"])}const R=h(ct,[["render",dt]]),j=(t,o,n)=>(Object.defineProperty(t,o,{value:n,writable:!1,configurable:!1,enumerable:!1}),n),G=(t,o,n)=>t.reduce((l,s)=>{const d=s[o];return l[d]=s[n],l},{}),U=[{title:"lng.sv-se",value:"sv_SE"},{title:"lng.sl-si",value:"sl_SI"},{title:"lng.sk-sk",value:"sk_SK"},{title:"lng.uk-ua",value:"uk_UA"},{title:"lng.tr-tr",value:"tr_TR"},{title:"lng.bg-bg",value:"bg_BG"},{title:"lng.bs-ba",value:"bs_BA"},{title:"lng.cy-gb",value:"cy_GB"},{title:"lng.cs-cz",value:"cs_CZ"},{title:"lng.ga-ie",value:"ga_IE"},{title:"lng.it-it",value:"it_IT"},{title:"lng.mk-mk",value:"mk_MK"},{title:"lng.lt-lt",value:"lt_LT"},{title:"lng.lv-lv",value:"lv_LV"},{title:"lng.et-ee",value:"et_EE"},{title:"lng.en-gb",value:"en_GB"},{title:"lng.es-es",value:"es_ES"},{title:"lng.hr-hr",value:"hr_HR"},{title:"lng.hu-hu",value:"hu_HU"},{title:"lng.pl-pl",value:"pl_PL"},{title:"lng.da-dk",value:"da_DK"},{title:"lng.el-gr",value:"el_GR"},{title:"lng.de-de",value:"de_DE"},{title:"lng.fi-fi",value:"fi_FI"},{title:"lng.fr-fr",value:"fr_FR"},{title:"lng.nb-no",value:"nb_NO"},{title:"lng.nl-nl",value:"nl_NL"},{title:"lng.ru-ru",value:"ru_RU"},{title:"lng.ro-ro",value:"ro_RO"},{title:"lng.pt-pt",value:"pt_PT"}],mt=[{title:"lngin.et-ee",value:"et_EE"},{title:"lngin.lv-lv",value:"lv_LV"},{title:"lngin.lt-lt",value:"lt_LT"},{title:"lngin.en-gb",value:"en_GB"},{title:"lngin.pl-pl",value:"pl_PL"},{title:"lngin.es-es",value:"es_ES"},{title:"lngin.sv-se",value:"sv_SE"},{title:"lngin.it-it",value:"it_IT"},{title:"lngin.de-de",value:"de_DE"}],M={get LangsEnum(){return j(this,"LangsEnum",G(U,"value","title"))},FrmLang(t){return this.LangsEnum[t]??t},ToLongFormat(t){switch(t){case"en":return"en_GB";case"et":return"et_EE";case"lv":return"lv_LV";case"lt":return"lt_LT";default:return t.replace("-","_")}},ToShortFormat(t){return t.split(/_|-/)[0]??t}},pt=e.defineComponent({methods:{mdiPencil(){return Ve},mdiKeyVariant(){return ke}},components:{UserAvatar:S},props:{currentUser:{type:Object,required:!0},baseUrl:{type:String,required:!0},btnVariant:{type:String,default:"text"}},emits:["edit-profile","change-password"],setup(t){const{t:o}=B.useI18n(),n=e.computed(()=>t.currentUser?.locale?o(M.FrmLang(M.ToLongFormat(t.currentUser.locale))):""),l=e.computed(()=>t.currentUser?N(t.currentUser):"");return{langauge:n,fullName:l}}}),ft={class:"avatar"},ut={class:"details"},gt={class:"name"},yt={key:0,class:"email"},Ct={class:"email"};function ht(t,o,n,l,s,d){const c=e.resolveComponent("UserAvatar"),i=e.resolveComponent("v-col"),f=e.resolveComponent("v-icon"),r=e.resolveComponent("v-btn"),m=e.resolveComponent("v-row");return t.currentUser?(e.openBlock(),e.createBlock(m,{key:0,class:"mt-6 prof-hor"},{default:e.withCtx(()=>[e.createVNode(i,{cols:"12",sm:"7",class:"profile"},{default:e.withCtx(()=>[e.createElementVNode("div",ft,[e.createVNode(c,{size:96,user:t.currentUser,"base-url":t.baseUrl+"/avatars"},null,8,["user","base-url"])]),e.createElementVNode("div",ut,[e.createElementVNode("div",gt,e.toDisplayString(t.fullName),1),t.currentUser.email?(e.openBlock(),e.createElementBlock("div",yt,e.toDisplayString(t.currentUser.email),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ct,e.toDisplayString(t.$t("aff.Language"))+": "+e.toDisplayString(t.langauge),1)])]),_:1}),e.createVNode(i,{cols:"12",sm:"5",class:e.normalizeClass(`buttons btn-variant-${t.btnVariant}`)},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{variant:t.btnVariant,color:"primary",onClick:o[0]||(o[0]=g=>t.$emit("edit-profile"))},{default:e.withCtx(()=>[e.createVNode(f,{icon:t.mdiPencil(),class:"mr-1"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Edit info")),1)]),_:1},8,["variant"]),e.createVNode(r,{variant:t.btnVariant,color:"primary",onClick:o[1]||(o[1]=g=>t.$emit("change-password"))},{default:e.withCtx(()=>[e.createVNode(f,{icon:t.mdiKeyVariant(),class:"mr-1"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Change password")),1)]),_:1},8,["variant"])])]),_:1},8,["class"])]),_:1})):e.createCommentVNode("",!0)}const kt=h(pt,[["render",ht]]),_t=t=>{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]=null)},Z=(t,o,n,l,s,d=null)=>{if(typeof t=="string"){l(t);return}if(t.response&&t.response.status){if(t.response.status===400&&t.response.data){Vt(t,o,n,l,s,d);return}if(t.response.status===409&&t.response.data){bt(t,l,s);return}if(t.response.status===417&&t.response.data){Bt(l,s);return}}l(t)},$t=()=>{setTimeout(()=>{const t=document.querySelector(".v-input--error, .ec-input.local-err");if(t==null)return;const o=t.querySelector("input, textarea, .ec-inp-ctrl");o?.focus()},200)},Vt=(t,o,n,l,s,d=null)=>{const c=[];let i=!1,f={};if(Array.isArray(t.response.data))for(let r=0;r<t.response.data.length;r++)c.push(t.response.data[r]);else for(const r in t.response.data)if(Object.prototype.hasOwnProperty.call(t.response.data,r)){const m=t.response.data[r];if(Nt(f,o,r,m[0]))i=!0;else{const u=d&&d[r]?d[r]:r;c.push({error_message:`${u}: ${m}`})}}c.length>0&&(c.length===1?l(c[0]):l({message:s("aff.Some errors occured:"),details:"<ul><li>"+c.map(r=>r.error_message).join("</li><li>")+"</li></ul>"})),i&&(n!=null&&(n.value={...n.value,...f}),$t())},bt=(t,o,n)=>{let l=[];typeof t.response.data=="string"?l.push(t.response.data):t.response.data.errors&&(l=t.response.data.errors.map(s=>s.error_message)),o({title:n("aff.Concurrency error"),details:l.length===1?l[0]:"<ul><li>"+l.join("</li><li>")+"</li></ul>",code:409})},Bt=(t,o)=>{t({title:o("aff.Product version mismatch."),details:o("aff.Please reload the page."),code:417})},Nt=(t,o,n,l)=>{const s=n.split(".");let d=o,c=t;for(;s.length>0;){const i=s.shift();if(i){if(s.length===0)return/^\d+$/.test(i)?!1:Object.prototype.hasOwnProperty.call(d,i)?(c[i]=l,!0):!1;if(/^\d+$/.test(i))d=d[parseInt(i)],c[d.tmp_id]||(c[d.tmp_id]={}),c=c[d.tmp_id];else if(Object.prototype.hasOwnProperty.call(d,i))d=d[i],c[i]||(c[i]={}),c=c[i];else return!1}}return!1},wt=(t,o)=>{for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},Et=e.defineComponent({name:"FilesUploadControl",methods:{mdiEye(){return he},mdiDelete(){return ye},mdiUpload(){return be}},props:{modelValue:{type:Object,default:null},controlType:{type:String,default:"files"},uploadMethod:{type:Function,required:!0},shape:{type:String,default:"square"},cropType:{type:String,default:"center_outside"},bucket:{type:String,default:"workspace"},noSlideshow:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},workspaceIds:{type:Array,required:!0},mediaBaseUrl:{type:String,default:null},baseUrl:{type:String,required:!0}},emits:["update:modelValue","slideshow"],setup(t,o){const{showError:n}=T(),l=e.ref(!1),s=e.ref(e.getCurrentInstance()?.uid??0),d=e.ref([]),c=e.ref(!1),i=e.ref({group:0,file:0}),f=e.ref(0),r=e.ref(t.modelValue),m=e.computed(()=>t.workspaceIds?.[0]??0),g=e.computed(()=>t.bucket==="avatar"?r.value?.thumb?.startsWith("tmp/")?`${t.baseUrl}/a/${m.value}/files/upload_temp/?p=${r.value?.thumb}`:`${t.mediaBaseUrl??t.baseUrl}/avatars/${r.value?.thumb}`:r.value?.id?t.mediaBaseUrl?`${t.mediaBaseUrl}/${r.value?.thumb}`:`${t.baseUrl}/a/${m.value}/files/${r.value.id}/?which=thumb`:`${t.baseUrl}/a/${m.value}/files/upload_temp/?p=${r.value?.thumb}`),u=()=>{l.value||(l.value=!0)},a=()=>{l.value&&(l.value=!1)},y=()=>{d.value[i.value.group]?.splice(i.value.file).length,d.value.length-1>i.value.group&&d.value.splice(i.value.group),i.value.group++,i.value.file=0},$=()=>{c.value=!0;let _=d.value[i.value.group]?.[i.value.file];if(!_){c.value=!1;return}t.uploadMethod(_,t.cropType).then(V=>{if(r.value=V,o.emit("update:modelValue",V),f.value++,i.value.file++,i.value.file>=(d.value[i.value.group]?.length??0)&&(i.value.group++,i.value.file=0,i.value.group>=d.value.length)){c.value=!1;return}$()}).catch(V=>{c.value=!1,n(V),setTimeout(()=>y(),500)})},b=_=>{const V=[];for(const sn of _)V.push(sn);d.value.push(V),c.value||$()};return{dndOver:l,controlId:s,uploadedFile:r,previewUrl:g,workspaceId:m,uploadRunning:c,uploadDragover:u,uploadDragleave:a,uploadDrop:_=>{a(),_.dataTransfer?.files.length&&b(_.dataTransfer.files)},uploadChange:_=>{const V=_.target;V?.files&&b(V.files)},openSlideshow:()=>{o.emit("slideshow")},removeImage:()=>{r.value=null,o.emit("update:modelValue",null)}}}}),St={style:{display:"initial",position:"absolute",opacity:"0",width:"10px"}},At=["id","name"],Dt=["for"],Mt={key:0},Lt={key:0,href:"javascript:v()",onclick:"return false;",target:"_blank"},Tt={key:1,class:"file-del"},Ht=["for"];function Ut(t,o,n,l,s,d){const c=e.resolveComponent("v-icon"),i=e.resolveComponent("v-progress-circular"),f=e.resolveComponent("v-btn");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(`img-upl-box ctrl-${t.controlType}`)},[e.createElementVNode("div",St,[e.createElementVNode("input",{id:`uf_${t.controlId}`,type:"file",multiple:"",name:`uf_${t.controlId}`,style:{width:"10px"},onChange:o[0]||(o[0]=(...r)=>t.uploadChange&&t.uploadChange(...r))},null,40,At)]),(t.uploadedFile==null||t.controlType==="files")&&!t.disabled&&!t.uploadRunning?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dnd-area",`dnd-${t.shape}`,"text-xs-center",t.dndOver?"dnd-over":"dnd-out"]),onDragover:o[1]||(o[1]=e.withModifiers((...r)=>t.uploadDragover&&t.uploadDragover(...r),["stop","prevent"])),onDragleave:o[2]||(o[2]=e.withModifiers((...r)=>t.uploadDragleave&&t.uploadDragleave(...r),["stop","prevent"])),onDrop:o[3]||(o[3]=e.withModifiers((...r)=>t.uploadDrop&&t.uploadDrop(...r),["stop","prevent"]))},[e.createElementVNode("label",{for:`uf_${t.controlId}`},[e.createElementVNode("div",null,[e.createVNode(c,{icon:t.mdiUpload(),class:e.normalizeClass(t.controlType==="files"?"mr-1":"")},null,8,["icon","class"]),t.controlType==="files"?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(t.$t("Drag files here or click to upload")),1)):e.createCommentVNode("",!0)])],8,Dt)],34)):t.uploadRunning?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["dnd-area-loading",`dnd-${t.shape}`])},[e.createVNode(i,{size:"32",color:"secondary",indeterminate:""})],2)):t.controlType==="image"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["file-thumb",`dnd-${t.shape}`])},[t.uploadedFile!==null?(e.openBlock(),e.createElementBlock("a",Lt,[e.createElementVNode("div",{style:e.normalizeStyle(`background-image: url('${t.previewUrl}');`)},null,4)])):e.createCommentVNode("",!0),t.uploadedFile!==null?(e.openBlock(),e.createElementBlock("div",Tt,[t.noSlideshow?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:0,variant:"flat",size:"small",color:"grey_l2",icon:t.mdiEye(),onClick:t.openSlideshow},null,8,["icon","onClick"])),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:1,variant:"flat",size:"small",color:"grey_l2",icon:t.mdiDelete(),onClick:t.removeImage},null,8,["icon","onClick"]))])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2),t.controlType==="image"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`img-upl-btns ctrl-${t.controlType}`)},[e.createElementVNode("label",{for:`uf_${t.controlId}`,class:"v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat"},[e.createElementVNode("div",null,[e.createVNode(c,{icon:t.mdiUpload()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Btn__Upload")),1)])],8,Ht),!t.noSlideshow&&t.uploadedFile!==null&&t.controlType==="image"?(e.openBlock(),e.createBlock(f,{key:0,variant:"flat",onClick:t.openSlideshow},{default:e.withCtx(()=>[e.createVNode(c,{icon:t.mdiEye()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Btn__View")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),!t.disabled&&t.uploadedFile!==null&&t.controlType==="image"?(e.openBlock(),e.createBlock(f,{key:1,variant:"flat",onClick:t.removeImage},{default:e.withCtx(()=>[e.createVNode(c,{icon:t.mdiDelete()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$t("aff.Btn__Delete")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64)}const Y=h(Et,[["render",Ut]]),Pt=e.defineComponent({name:"ProfileEditDialog",methods:{mdiPalette(){return $e}},components:{ColorPicker:O,UserAvatar:S,AccountAvatar:D,FieldLabel:R,CustomDialog:q,FilesUploadControl:Y},props:{showDialog:{type:Boolean,required:!0},currentUser:{type:Object,required:!0},fallbackLocale:{type:String,required:!0},systemLanguages:{type:Array,required:!0},updateProfileFx:{type:Function,required:!0},uploadMethod:{type:Function,required:!0},mediaBaseUrl:{type:String,defualt:null},baseUrl:{type:String,required:!0}},emits:["close"],setup(t,{emit:o}){const{t:n}=B.useI18n(),{showError:l}=T(),s=e.ref({...t.currentUser}),d=e.ref({}),c=e.ref(M.ToLongFormat(t.currentUser.locale??t.fallbackLocale)),i=e.ref(t.currentUser?.avatar_thumb?"photo":"color"),f=e.ref(!1),r=e.computed(()=>[{value:"photo",text:n("aff.Photo")},{value:"color",text:n("aff.Color")}]),m=e.computed(()=>U.filter(y=>t.systemLanguages.indexOf(y.value)>=0).map(y=>({title:n(y.title),value:y.value}))),g=e.computed(()=>s.value?.avatar_thumb?{thumb:s.value.avatar_thumb,name:"avatar",file:null,file_id:null,thumb_id:null,content_type:"image",size:0}:void 0);return{formData:s,localErrors:d,languages:m,lang:c,identity:i,identities:r,loading:f,saveClick:()=>{f.value=!0;const y={...s.value};i.value=="color"&&(y.avatar_thumb=null),y.locale=c.value,t.updateProfileFx(y).then(()=>o("close")).catch($=>Z($,s.value,d,l,n)).finally(()=>f.value=!1)},avatarValue:g,photoChanged:y=>{s.value&&(s.value.avatar_thumb=y?.thumb??null)}}}}),Ft={key:0,class:"ff-simple-form"},It={class:"avatar-edit"},zt={class:"avatar"},qt={class:"options"},Ot={key:0,class:"sel-ident"};function Rt(t,o,n,l,s,d){const c=e.resolveComponent("FilesUploadControl"),i=e.resolveComponent("v-avatar"),f=e.resolveComponent("v-radio"),r=e.resolveComponent("v-radio-group"),m=e.resolveComponent("v-icon"),g=e.resolveComponent("v-btn"),u=e.resolveComponent("ColorPicker"),a=e.resolveComponent("v-menu"),y=e.resolveComponent("v-col"),$=e.resolveComponent("v-text-field"),b=e.resolveComponent("FieldLabel"),C=e.resolveComponent("v-select"),A=e.resolveComponent("v-row"),Q=e.resolveComponent("CustomDialog");return e.openBlock(),e.createBlock(Q,{value:t.showDialog,title:t.$t("aff.Your profile"),persistent:"",class:"prof-dlg",onClose:o[7]||(o[7]=k=>t.$emit("close",null))},{footer:e.withCtx(()=>[e.createVNode(g,{variant:"flat",color:"secondary",onClick:o[6]||(o[6]=k=>t.$emit("close",null))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Close")),1)]),_:1}),e.createVNode(g,{variant:"flat",color:"primary",loading:t.loading,onClick:t.saveClick},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Save")),1)]),_:1},8,["loading","onClick"])]),default:e.withCtx(()=>[t.formData?(e.openBlock(),e.createElementBlock("form",Ft,[e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(y,{cols:"12"},{default:e.withCtx(()=>[e.createElementVNode("div",It,[e.createElementVNode("div",zt,[t.identity==="photo"?(e.openBlock(),e.createBlock(c,{key:0,"model-value":t.avatarValue,"upload-method":t.uploadMethod,"control-type":"image",shape:"circle","crop-type":"center_inside",bucket:"avatar","no-slideshow":!0,"workspace-ids":[0],"base-url":t.baseUrl,"media-base-url":t.mediaBaseUrl,"onUpdate:modelValue":t.photoChanged},null,8,["model-value","upload-method","base-url","media-base-url","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(i,{key:1,color:t.formData.color??"primary",class:e.normalizeClass(`avatar-96-${t.formData.initials.length>=3?"l":"s"}`),size:96},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.formData.initials),1)]),_:1},8,["color","class"]))]),e.createElementVNode("div",qt,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:t.identity,"onUpdate:modelValue":o[0]||(o[0]=k=>t.identity=k),"true-icon":t.$vuetify.icons.aliases?.success,color:"primary","hide-details":"","error-messages":t.localErrors.other_vehicle_involved?.toString()??void 0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.identities,k=>(e.openBlock(),e.createBlock(f,{key:k.value.toString(),label:k.text,value:k.value,"base-color":t.localErrors.other_vehicle_involved?"error":""},null,8,["label","value","base-color"]))),128))]),_:1},8,["modelValue","true-icon","error-messages"])]),e.createElementVNode("div",null,[t.identity==="color"?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",null,[e.createVNode(a,null,{activator:e.withCtx(({props:k})=>[e.createVNode(g,e.mergeProps({variant:"text",color:"primary",class:"ff-btn"},k),{default:e.withCtx(()=>[e.createVNode(m,{icon:t.mdiPalette()},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.$vuetify.display.smAndUp?t.$t("aff.Choose color"):t.$t("aff.Color")),1)]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(u,{onChange:o[1]||(o[1]=k=>t.formData.color=k)})]),_:1})])])):e.createCommentVNode("",!0)])])])]),_:1}),e.createVNode(b,{label:t.$t("aff.Name"),cols:12,sm:6,"error-messages":t.localErrors.name?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode($,e.mergeProps({modelValue:t.formData.name,"onUpdate:modelValue":o[2]||(o[2]=_=>t.formData.name=_),variant:"outlined"},k),null,16,["modelValue"])]),_:1},8,["label","error-messages"]),e.createVNode(b,{label:t.$t("aff.Surname"),cols:12,sm:6,"error-messages":t.localErrors.surname?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode($,e.mergeProps({modelValue:t.formData.surname,"onUpdate:modelValue":o[3]||(o[3]=_=>t.formData.surname=_),variant:"outlined"},k),null,16,["modelValue"])]),_:1},8,["label","error-messages"]),e.createVNode(b,{label:t.$t("aff.E-mail"),cols:12,sm:6,"error-messages":t.localErrors.email?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode($,e.mergeProps({modelValue:t.formData.email,"onUpdate:modelValue":o[4]||(o[4]=_=>t.formData.email=_),variant:"outlined",disabled:""},k),null,16,["modelValue"])]),_:1},8,["label","error-messages"]),e.createVNode(b,{label:t.$t("aff.Language"),cols:12,sm:6,"error-messages":t.localErrors.locale?.toString()??void 0},{default:e.withCtx(k=>[e.createVNode(C,e.mergeProps({modelValue:t.lang,"onUpdate:modelValue":o[5]||(o[5]=_=>t.lang=_),variant:"outlined",items:t.languages,"item-text":"title","item-value":"value"},k,{dense:""}),null,16,["modelValue","items"])]),_:1},8,["label","error-messages"])]),_:1})])):e.createCommentVNode("",!0)]),_:1},8,["value","title"])}const jt=h(Pt,[["render",Rt]]),Gt=e.defineComponent({name:"RowActionsButton",props:{rowActions:{type:Object,required:!0},item:{type:Object,required:!0}},setup(t){const o=e.computed(()=>t.rowActions.actions?.filter(s=>s.visible===void 0||s.visible(t.item))??[]),n=e.computed(()=>typeof t.rowActions.icon=="function"?t.rowActions.icon(t.item):t.rowActions.icon),l=e.computed(()=>!t.rowActions.actions&&t.rowActions.action&&(t.rowActions.visible===void 0||t.rowActions.visible(t.item))?t.rowActions:null);return{actions:o,icon:n,oneAction:l}}});function Zt(t,o,n,l,s,d){const c=e.resolveComponent("v-btn"),i=e.resolveComponent("v-icon"),f=e.resolveComponent("v-list-item-title"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("v-list"),g=e.resolveComponent("v-menu");return t.oneAction?(e.openBlock(),e.createBlock(c,{key:0,variant:"text",size:"small",icon:t.icon,onClick:o[0]||(o[0]=e.withModifiers(u=>t.$emit("row-action",{action:t.oneAction.action,item:t.item}),["stop"]))},null,8,["icon"])):t.actions.length>0?(e.openBlock(),e.createBlock(g,{key:1},{activator:e.withCtx(({props:u})=>[e.createVNode(c,e.mergeProps({variant:"text",size:"small",icon:t.icon},u),null,16,["icon"])]),default:e.withCtx(()=>[e.createVNode(m,{density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,u=>(e.openBlock(),e.createBlock(r,{key:u.action,onClick:a=>t.$emit("row-action",{action:u.action,item:t.item})},{prepend:e.withCtx(()=>[e.createVNode(i,{icon:u.icon},null,8,["icon"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})):e.createCommentVNode("",!0)}const L=h(Gt,[["render",Zt]]),Yt=e.defineComponent({name:"MobileLayoutItem",methods:{mdiDragVertical(){return Ce}},components:{RowActionsButton:L},props:{item:{type:Object,required:!0},titleHeaders:{type:Array,required:!0},subTitleHeaders:{type:Array,required:!0},tagHeaders:{type:Array,required:!0},miniTblHeaders:{type:Array,required:!0},otherHeaders:{type:Array,required:!0},rowActions:{type:Object,default:null},draggable:{type:Boolean,default:!1},ripple:{type:Boolean,default:!0}},emits:["rowClick","rowAction"],setup(){const t=(n,l)=>l===null?null:n.mobileLabel?`${n.title}: ${l}`:l;return{formatValueList:(n,l,s)=>n.map(d=>d.format?t(d,d.format(d,l)):t(d,l[d.value]??null)).filter(d=>d!==null).join(s)}}}),Kt={style:{display:"flex","align-items":"center",gap:"8px"}},Wt={key:1},Jt={key:2},Xt={key:1},Qt={key:2},vt={key:0,class:"mini-table"},xt={key:0},eo={key:1},to={style:{"margin-top":"-11px","margin-bottom":"-11px"}},oo={key:0,class:"item-drag-handle"};function no(t,o,n,l,s,d){const c=e.resolveComponent("v-col"),i=e.resolveComponent("v-row"),f=e.resolveComponent("v-icon"),r=e.resolveComponent("v-chip"),m=e.resolveComponent("RowActionsButton"),g=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(u,{variant:"outlined",ripple:t.ripple,title:t.formatValueList(t.titleHeaders,t.item," - "),subtitle:t.formatValueList(t.subTitleHeaders,t.item,"; "),onClick:o[1]||(o[1]=a=>t.$emit("rowClick",t.item))},{title:e.withCtx(()=>[e.createElementVNode("div",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.titleHeaders,(a,y)=>(e.openBlock(),e.createElementBlock("span",{key:y},[a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),e.mergeProps({key:0,class:"mr-1"},{ref_for:!0},a.getProps?a.getProps(a,t.item):{}),null,16)):a.format?(e.openBlock(),e.createElementBlock("span",Wt,e.toDisplayString(a.format(a,t.item)),1)):(e.openBlock(),e.createElementBlock("span",Jt,e.toDisplayString(t.item[a.value]),1))]))),128))])]),default:e.withCtx(()=>[e.createVNode(g,{class:e.normalizeClass(t.otherHeaders.length===0&&t.miniTblHeaders.length===0&&!t.rowActions&&t.tagHeaders.length===0?"pb-0":"")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.otherHeaders,(a,y)=>(e.openBlock(),e.createBlock(i,{key:a.value,"no-gutters":"",class:e.normalizeClass(`mt-${y===0?0:3}`)},{default:e.withCtx(()=>[e.createVNode(c,{cols:"4",sm:"2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.title)+":",1)]),_:2},1024),e.createVNode(c,{cols:"8",sm:"10"},{default:e.withCtx(()=>[a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),e.mergeProps({key:0,ref_for:!0},a.getProps?a.getProps(a,t.item):{},e.toHandlers(a.getEvents?a.getEvents(a,t.item):{})),null,16)):a.format?(e.openBlock(),e.createElementBlock("span",Xt,e.toDisplayString(a.format(a,t.item)),1)):(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(t.item[a.value]),1))]),_:2},1024)]),_:2},1032,["class"]))),128)),t.miniTblHeaders.length>0?(e.openBlock(),e.createElementBlock("table",vt,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.miniTblHeaders,a=>(e.openBlock(),e.createElementBlock("th",{key:`h${a.value}`,style:e.normalizeStyle({width:`${100/t.miniTblHeaders.length}%`})},e.toDisplayString(a.title),5))),128))]),e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.miniTblHeaders,a=>(e.openBlock(),e.createElementBlock("td",{key:`h${a.value}`},[a.format?(e.openBlock(),e.createElementBlock("span",xt,e.toDisplayString(a.format(a,t.item)),1)):(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(t.item[a.value]),1))]))),128))])])):e.createCommentVNode("",!0),t.rowActions||t.tagHeaders.length>0?(e.openBlock(),e.createBlock(i,{key:1,"no-gutters":"",class:e.normalizeClass(t.otherHeaders.length===0?"mt-0":"mt-3")},{default:e.withCtx(()=>[e.createVNode(c,{cols:t.rowActions?10:12},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tagHeaders,a=>(e.openBlock(),e.createElementBlock("span",{key:a.value},[a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),e.mergeProps({key:0,class:"mr-1"},{ref_for:!0},a.getProps?a.getProps(a,t.item):{},e.toHandlers(a.getEvents?a.getEvents(a,t.item):{})),null,16)):a.format?(e.openBlock(),e.createBlock(r,{key:1,label:"",size:"small",variant:"flat",color:"grey",class:"mr-1"},{default:e.withCtx(()=>[a.mobileIcon?(e.openBlock(),e.createBlock(f,{key:0,icon:a.mobileIcon,class:"mr-1"},null,8,["icon"])):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(a.format(a,t.item)),1)]),_:2},1024)):(e.openBlock(),e.createBlock(r,{key:2,label:"",size:"small",variant:"flat",color:"grey",class:"mr-1"},{default:e.withCtx(()=>[a.mobileIcon?(e.openBlock(),e.createBlock(f,{key:0,icon:a.mobileIcon},null,8,["icon"])):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.item[a.value]),1)]),_:2},1024))]))),128))]),_:1},8,["cols"]),t.rowActions?(e.openBlock(),e.createBlock(c,{key:0,cols:"2",class:"text-right"},{default:e.withCtx(()=>[e.createElementVNode("div",to,[e.createVNode(m,{item:t.item,"row-actions":t.rowActions,onRowAction:o[0]||(o[0]=a=>t.$emit("rowAction",a))},null,8,["item","row-actions"])])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0)]),_:1},8,["class"]),t.draggable?(e.openBlock(),e.createElementBlock("div",oo,[e.createVNode(f,{icon:t.mdiDragVertical()},null,8,["icon"])])):e.createCommentVNode("",!0)]),_:1},8,["ripple","title","subtitle"])}const K=h(Yt,[["render",no]]),lo=e.defineComponent({name:"MobileLayout",components:{MobileLayoutItem:K,RowActionsButton:L},props:{items:{type:Array,required:!0},totalItems:{type:Number,required:!0},headers:{type:Array,required:!0},options:{type:Object,required:!0},loading:{type:Boolean,default:!1},rowActions:{type:Object,default:null}},setup(t,o){const n=e.ref(t.options.page),l=t.options.pageSize,s=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="title")),d=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="subtitle")),c=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="tag")),i=e.computed(()=>t.headers.filter(m=>m.mobilePlacement==="mini_table")),f=e.computed(()=>t.headers.filter(m=>m.mobilePlacement!=="title"&&m.mobilePlacement!=="subtitle"&&m.mobilePlacement!=="tag"&&m.mobilePlacement!=="mini_table"));return{titleHeaders:s,subTitleHeaders:d,tagHeaders:c,miniTblHeaders:i,otherHeaders:f,pageVal:n,pageSize:l,changePage:m=>{o.emit("options-update",{...t.options,page:m})}}}}),ro={class:"mobile-margin2 data-table-layout"},ao={key:1,class:"mt-3"};function so(t,o,n,l,s,d){const c=e.resolveComponent("v-progress-linear"),i=e.resolveComponent("MobileLayoutItem"),f=e.resolveComponent("v-pagination");return e.openBlock(),e.createElementBlock("div",ro,[t.loading?(e.openBlock(),e.createBlock(c,{key:0,indeterminate:""})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,r=>(e.openBlock(),e.createBlock(i,{key:r.id,item:r,"title-headers":t.titleHeaders,"mini-tbl-headers":t.miniTblHeaders,"sub-title-headers":t.subTitleHeaders,"tag-headers":t.tagHeaders,"other-headers":t.otherHeaders,"row-actions":t.rowActions,onRowClick:o[0]||(o[0]=m=>t.$emit("row-click",m)),onRowAction:o[1]||(o[1]=m=>t.$emit("row-action",m))},null,8,["item","title-headers","mini-tbl-headers","sub-title-headers","tag-headers","other-headers","row-actions"]))),128)),t.totalItems>t.pageSize?(e.openBlock(),e.createElementBlock("div",ao,[e.createVNode(f,{modelValue:t.pageVal,"onUpdate:modelValue":[o[2]||(o[2]=r=>t.pageVal=r),t.changePage],length:Math.ceil(t.totalItems/t.options.pageSize),rounded:"circle",density:"comfortable"},null,8,["modelValue","length","onUpdate:modelValue"])])):e.createCommentVNode("",!0)])}const io=h(lo,[["render",so]]),co=e.defineComponent({name:"DesktopLayout",components:{RowActionsButton:L},props:{items:{type:Array,required:!0},totalItems:{type:Number,required:!0},headers:{type:Array,required:!0},options:{type:Object,required:!0},loading:{type:Boolean,default:!1},rowActions:{type:Object,default:null}},setup(t,o){const{t:n}=B.useI18n(),l=t.options.page,s=t.options.pageSize,d=t.options.sortField?[{key:t.options.sortField,order:t.options.sortDir}]:[],c=r=>{const m=r.sortBy&&r.sortBy.length>0?r.sortBy[0]:null;o.emit("options-update",{page:r.page,pageSize:r.itemsPerPage,sortField:m?.key??null,sortDir:m?.order??"asc"})},i=e.computed(()=>[{value:5,title:"5"},{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:-1,title:n("aff.All")}]),f=e.computed(()=>{const r=n("aff.{0}-{1} of {2}",["{0}","{1}","{2}"]),m=(t.options.page-1)*t.options.pageSize+1,g=Math.min(t.options.page*t.options.pageSize,t.totalItems);return r.replace("{0}",m.toString()).replace("{1}",g.toString()).replace("{2}",t.totalItems.toString())});return{page:l,pageSize:s,sortBy:d,pageOptions:i,optionsUpdate:c,getPageText:f}}}),mo={class:"data-table-layout"},po=["onClick"],fo={key:1},uo={key:2},go={key:0,class:"text-right"};function yo(t,o,n,l,s,d){const c=e.resolveComponent("RowActionsButton"),i=e.resolveComponent("v-data-table-server");return e.openBlock(),e.createElementBlock("div",mo,[e.createVNode(i,{items:t.items,"items-length":t.totalItems,headers:t.headers,loading:t.loading,page:t.options.page,"items-per-page":t.options.pageSize,"sort-by":t.sortBy,"hide-default-footer":t.totalItems<=t.options.pageSize,class:"data-table","multi-sort":!1,"must-sort":!0,"items-per-page-options":t.pageOptions,"onUpdate:options":t.optionsUpdate},{item:e.withCtx(({item:f})=>[e.createElementVNode("tr",{onClick:r=>t.$emit("row-click",f),style:{cursor:"pointer"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.headers,r=>(e.openBlock(),e.createElementBlock("td",{key:r.value,class:e.normalizeClass(["v-data-table__td",`v-data-table-column--align-${r.align??"start"}`,r.mainField?"ff-col-main":""])},[r.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.component),e.mergeProps({key:0,ref_for:!0},r.getProps?r.getProps(r,f):{},e.toHandlers(r.getEvents?r.getEvents(r,f):{})),null,16)):r.format?(e.openBlock(),e.createElementBlock("span",fo,e.toDisplayString(r.format(r,f)),1)):(e.openBlock(),e.createElementBlock("span",uo,e.toDisplayString(f[r.value]),1))],2))),128)),t.rowActions?(e.openBlock(),e.createElementBlock("td",go,[e.createVNode(c,{item:f,"row-actions":t.rowActions,onRowAction:o[0]||(o[0]=r=>t.$emit("row-action",r))},null,8,["item","row-actions"])])):e.createCommentVNode("",!0)],8,po)]),_:1},8,["items","items-length","headers","loading","page","items-per-page","sort-by","hide-default-footer","items-per-page-options","onUpdate:options"])])}const Co=h(co,[["render",yo]]),ho=e.defineComponent({name:"ColumnSelector",props:{columns:{type:Array,required:!0},currentColumns:{type:Array,required:!0}},emits:["changeCurrentColumns"],methods:{mdiCheck(){return H},mdiViewColumn(){return Be}},setup(t,{emit:o}){return{toggleColumn:l=>{const s=[...t.currentColumns];s.indexOf(l)>=0?s.splice(s.indexOf(l),1):s.push(l),o("changeCurrentColumns",s)}}}});function ko(t,o,n,l,s,d){const c=e.resolveComponent("v-btn"),i=e.resolveComponent("v-list-item-title"),f=e.resolveComponent("v-icon"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("v-list"),g=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(g,null,{activator:e.withCtx(({props:u})=>[e.createVNode(c,e.mergeProps({variant:"text",icon:t.mdiViewColumn()},u),null,16,["icon"])]),default:e.withCtx(()=>[e.createVNode(m,{density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(u,a)=>(e.openBlock(),e.createBlock(r,{key:a,onClick:y=>t.toggleColumn(u.value)},{append:e.withCtx(()=>[e.createVNode(f,{icon:t.mdiCheck(),color:t.currentColumns.indexOf(u.value)>=0?"primary":"white"},null,8,["icon","color"])]),default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}const _o=h(ho,[["render",ko]]),$o=e.defineComponent({name:"EmptyFilter",props:{modelValue:{type:[Array,Number,String],default:null},filter:{type:Object,required:!0},items:{type:Array,required:!0}}}),Vo={class:"f-lbl"};function bo(t,o,n,l,s,d){const c=e.resolveComponent("v-btn");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Vo,e.toDisplayString(t.$t(t.filter.title)),1),e.createVNode(c,{variant:"flat",color:"grey-lighten-2"},{default:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("span",null,null,-1)])]),_:1})])}const Bo=h($o,[["render",bo]]),No=e.defineComponent({name:"SelectFilter",props:{modelValue:{type:[Array,Number,String],default:null},filter:{type:Object,required:!0},items:{type:Array,required:!0}},emits:["change"],methods:{mdiCheck(){return H},mdiMenuDown(){return z}},setup(t,{emit:o}){const{t:n}=B.useI18n(),l=Math.ceil(Math.random()*1e5),s=e.ref(!1),d=e.ref(t.modelValue===null?[]:(Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]).map(r=>typeof r=="string"?parseInt(r):r)),c=e.computed(()=>{if(!t.modelValue)return n("aff.All");const r=(Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]).map(m=>typeof m=="string"?parseInt(m):m);return r.length>=3?`${r.length} ${n("aff.items")}`:r.map(m=>t.items.find(g=>g.id===m)?.name).join(", ")});return{ctrlId:l,open:s,selected:d,openMenu:()=>{},selVal:r=>{t.filter.multiple?d.value.indexOf(r)>=0?d.value.splice(d.value.indexOf(r),1):d.value.push(r):d.value.length===1&&d.value[0]===r?d.value=[]:d.value=[r],o("change",d)},disp:c}}}),wo={class:"f-lbl"};function Eo(t,o,n,l,s,d){const c=e.resolveComponent("v-icon"),i=e.resolveComponent("v-btn"),f=e.resolveComponent("v-list-item-title"),r=e.resolveComponent("v-list-item"),m=e.resolveComponent("v-list"),g=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-card"),a=e.resolveComponent("v-menu");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",wo,e.toDisplayString(t.$t(t.filter.title)),1),e.createVNode(i,{id:`menu-activator${t.ctrlId}`,variant:"flat",class:e.normalizeClass(["like-select",t.modelValue===null?"empty":""]),color:"grey-lighten-2",onClick:t.openMenu},{append:e.withCtx(()=>[e.createVNode(c,{size:24,icon:t.mdiMenuDown()},null,8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.disp),1)]),_:1},8,["id","class","onClick"]),e.createVNode(a,{modelValue:t.open,"onUpdate:modelValue":o[0]||(o[0]=y=>t.open=y),activator:`#menu-activator${t.ctrlId}`,"close-on-content-click":!0},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(g,{class:"pa-0"},{default:e.withCtx(()=>[e.createVNode(m,{density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,y=>(e.openBlock(),e.createBlock(r,{key:y.id,onClick:$=>t.selVal(y.id)},{append:e.withCtx(()=>[e.createVNode(c,{color:t.selected.indexOf(y.id)>=0?"primary":"white",icon:t.mdiCheck()},null,8,["color","icon"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","activator"])])}const So=h(No,[["render",Eo]]),Ao=e.defineComponent({name:"DataTableFilters",props:{filters:{type:Array,default:null},filterValues:{type:Object,default:null},getFilterComponent:{type:Function,required:!0}},setup(t){return{filters:e.computed(()=>t.filters.map(n=>({...n,component:t.getFilterComponent(n),value:n.default})))}}}),Do={class:"dt-filters"};function Mo(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("div",Do,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.filters,c=>(e.openBlock(),e.createElementBlock("div",{key:c.name},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.component),{modelValue:t.filterValues[c.name],"onUpdate:modelValue":i=>t.filterValues[c.name]=i,filter:c,"all-filter-values":t.filterValues,onChange:i=>t.$emit("change",{name:c.name,value:i})},null,40,["modelValue","onUpdate:modelValue","filter","all-filter-values","onChange"]))]))),128))])}const Lo=h(Ao,[["render",Mo]]),w={PENDING:"pending",ACTIVE:"active",INACTIVE:"inactive",PENDING_INACTIVE:"pending_inactive",format(t,o){switch(t){case this.PENDING:return o("aff.User status__Pending");case this.ACTIVE:return o("aff.User status__Active");case this.INACTIVE:case this.PENDING_INACTIVE:return o("aff.User status__Inactive");default:return t}}},To=e.defineComponent({name:"UserStatusChip",props:{item:{type:Object,required:!0},size:{type:String,default:"default"}},setup(t){const{t:o}=B.useI18n();return{chipProps:e.computed(()=>{const l=w.format(t.item.status,o);switch(t.item.status){case w.ACTIVE:return{text:l,color:"primary"};case w.PENDING:return{text:l,color:"deep-orange"};case w.INACTIVE:return{text:l,color:"grey-darken-1"};case w.PENDING_INACTIVE:return{text:l,color:"grey-darken-1"};default:return{text:l,color:"grey-darken-1"}}})}}});function Ho(t,o,n,l,s,d){const c=e.resolveComponent("v-chip");return e.openBlock(),e.createBlock(c,{label:"",color:t.chipProps.color,size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.chipProps.text),1)]),_:1},8,["color","size"])}const Uo=h(To,[["render",Ho]]),Po=e.defineComponent({name:"ConfirmPopup",props:{show:{type:Boolean,required:!0},message:{type:String,required:!0},okText:{type:String,default:null},okLoading:{type:Boolean,default:!1}},emits:["close","ok"]});function Fo(t,o,n,l,s,d){const c=e.resolveComponent("v-card-text"),i=e.resolveComponent("v-spacer"),f=e.resolveComponent("v-btn"),r=e.resolveComponent("v-card-actions"),m=e.resolveComponent("v-card"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{"model-value":t.show,width:"608px","onUpdate:modelValue":o[2]||(o[2]=u=>t.$emit("close"))},{default:e.withCtx(()=>[e.createVNode(m,{dark:"",class:"confirm-dialog",theme:"dark"},{default:e.withCtx(()=>[e.createVNode(c,{class:"text-subtitle-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.message),1)]),_:1}),e.createVNode(r,{class:"dialog-actions-bar"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"buttons",{},()=>[e.createVNode(i),e.createVNode(f,{onClick:o[0]||(o[0]=u=>t.$emit("close")),flat:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("aff.Cancel")),1)]),_:1}),e.createVNode(f,{variant:"flat",loading:t.okLoading,onClick:o[1]||(o[1]=u=>t.$emit("ok")),color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.okText??t.$t("aff.OK")),1)]),_:1},8,["loading"])])]),_:3})]),_:3})]),_:3},8,["model-value"])}const Io=h(Po,[["render",Fo]]),zo=e.defineComponent({name:"SearchFilter",props:{modelValue:{type:String,default:null},filter:{type:Object,required:!0}},emits:["change"],setup(t){const o=e.ref(t.modelValue),n=()=>{let l;return(s,d,c=500)=>{clearTimeout(l),l=window.setTimeout(()=>d(s),c)}};return e.watch(()=>t.modelValue,l=>{l!==o.value&&(o.value=l)}),{val:o,debounce:n()}}}),qo={class:"f-lbl"};function Oo(t,o,n,l,s,d){const c=e.resolveComponent("v-text-field");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",qo,e.toDisplayString(t.$t(t.filter.title)),1),e.createVNode(c,{modelValue:t.val,"onUpdate:modelValue":[o[0]||(o[0]=i=>t.val=i),o[1]||(o[1]=i=>t.debounce(i,f=>t.$emit("change",f)))],variant:"outlined","hide-details":!0,density:"compact"},null,8,["modelValue"])])}const Ro=h(zo,[["render",Oo]]),W={et_EE:{culture:"et-EE",datetime_format:"d.MM.yyyy H:mm",date_format_no_year:"d.MM",month_format:"MM.yyyy",decimal_symbol:",",list_separator:";",time_format:"H:mm",date_format_friendly_no_year:"d. MMM",date_format:"d.MM.yyyy",thousands_symbol:" ",datetime_pos_format:"{1} {0}",money_format:"{1} {0}"},et:{culture:"et",datetime_format:"d.MM.yyyy H:mm",date_format_no_year:"d.MM",month_format:"MM.yyyy",decimal_symbol:",",list_separator:";",time_format:"H:mm",date_format_friendly_no_year:"d. MMM",date_format:"d.MM.yyyy",thousands_symbol:" ",datetime_pos_format:"{1} {0}",money_format:"{1} {0}"},en_GB:{culture:"en-GB",datetime_format:"dd/MM/yyyy, HH:mm",date_format_no_year:"dd/MM",month_format:"MM/yyyy",decimal_symbol:".",list_separator:",",time_format:"HH:mm",date_format_friendly_no_year:"D MMM",date_format:"dd/MM/yyyy",thousands_symbol:",",datetime_pos_format:"{1}, {0}",money_format:"{1} {0}"},en:{culture:"en",datetime_format:"dd/MM/yyyy, HH:mm",date_format_no_year:"dd/MM",month_format:"MM/yyyy",decimal_symbol:".",list_separator:",",time_format:"HH:mm",date_format_friendly_no_year:"D MMM",date_format:"dd/MM/yyyy",thousands_symbol:",",datetime_pos_format:"{1}, {0}",money_format:"{1} {0}"}},jo={EUR:"€",USD:"$"},Go=x(),J=(t,o,n,l,s)=>(typeof t=="string"&&(t=parseFloat(t)),t.toLocaleString("en-GB",{minimumFractionDigits:o,maximumFractionDigits:n}).replace(/\.|,/gi,d=>d==="."?l:s)),Zo=(t,o)=>t==null?"":t.replace(new RegExp(o,"g"),"").replace(new RegExp(" ","g"),"").replace(",","."),Yo=/(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g,Ko=(t,o)=>{if(!t)return"";const n=typeof t=="string"?new Date(t):t;return o.replace(Yo,l=>{switch(l){case"d":return n.getDate().toString();case"dd":case"DD":return("0"+n.getDate()).slice(-2);case"h":{const s=n.getHours();return(s===0?12:s>12?s-12:s).toString()}case"hh":{const s=n.getHours();return("0"+(s===0?12:s>12?s-12:s)).slice(-2)}case"H":return n.getHours().toString();case"HH":return("0"+n.getHours()).slice(-2);case"m":return n.getMinutes().toString();case"mm":return("0"+n.getMinutes()).slice(-2);case"M":return(n.getMonth()+1).toString();case"MM":return("0"+(n.getMonth()+1)).slice(-2);case"s":return n.getSeconds().toString();case"ss":return("0"+n.getSeconds()).slice(-2);case"tt":return n.getHours()>=12?"PM":"AM";case"yy":return n.getFullYear().toString().slice(-2);case"yyyy":case"YYYY":return n.getFullYear().toString();case"zzz":{const s=n.getTimezoneOffset(),d=Math.abs(s)%60;return`${s<=0?"+":"-"}${("0"+(Math.abs(s)-d)/60).slice(-2)}:${("0"+d).slice(-2)}`}default:return l}})},X=(t,o=void 0,n=void 0)=>{if(o===void 0&&(o=0),n===void 0&&(n=4),t==null)return"";typeof t=="string"&&(t=parseFloat(t));const{decimal_symbol:l,thousands_symbol:s}=W[Go.value]??{decimal_symbol:".",thousands_symbol:","};return J(t,o,n,l,s)},Wo=t=>t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2),Jo=e.defineComponent({name:"DataTableTotals",methods:{frmNum:X},props:{totalItems:{type:Number,required:!0}}}),Xo={key:0},Qo={key:1};function vo(t,o,n,l,s,d){return e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(t.frmNum(t.totalItems))+" ",1),t.totalItems===1?(e.openBlock(),e.createElementBlock("span",Xo,e.toDisplayString(t.$t("aff.row")),1)):(e.openBlock(),e.createElementBlock("span",Qo,e.toDisplayString(t.$t("aff.rows")),1))])}const xo=h(Jo,[["render",vo]]),en=t=>t?t.replace(/(?:\r\n|\r|\n)/g,"<br>"):"",tn=t=>JSON.parse(JSON.stringify(t)),on=t=>{let o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},nn=(t,o,n,l=null)=>{let s,d;return l==null&&(l="/"),d="",n&&(s=new Date,s.setTime(s.getTime()+n*24*60*60*1e3),d="; expires="+s.toUTCString()),document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(o)+d+"; path="+l,!0},ln=(t,o)=>{for(const n of o){if(n==="/")return t==="/";if(t.startsWith(n))return!0}return!1},rn=t=>{const o={};for(const n of["p","l","s","d"])t[n]!==void 0&&(o[n]=t[n]);return o},an=(t,o)=>{const n=o.params.view??o.meta.view??null;if(n){const l=t.find(s=>s.name===n);if(l)return l}return t[0]};p.AccountAvatar=D,p.ColorPicker=O,p.ColumnSelector=_o,p.ConfirmPopup=Io,p.CultureInfos=W,p.CurrencySymbols=jo,p.CustomDialog=q,p.DataTableFilters=Lo,p.DataTableTotals=xo,p.DesktopLayout=Co,p.EmptyFilter=Bo,p.ErrorDialog=ve,p.FieldLabel=R,p.FieldRow=at,p.FilesUploadControl=Y,p.GetView=an,p.InLanguages=mt,p.InnerLeftMenu=fe,p.LangUtil=M,p.Languages=U,p.LazyLoadingProp=j,p.MobileLayout=io,p.MobileLayoutItem=K,p.PageSubtitle=de,p.PageTitle=ae,p.ProfileEditDialog=jt,p.ProfileInfo=kt,p.RowActionsButton=L,p.SearchFilter=Ro,p.SelectFilter=So,p.UserAvatar=S,p.UserMenu=Ke,p.UserStatus=w,p.UserStatusChip=Uo,p.clearLocalErrors=_t,p.clnNumbCust=Zo,p.clonePagingAndSort=rn,p.deepClone=tn,p.formatFullName=N,p.formatInitials=De,p.frmDateCust=Ko,p.frmNum=X,p.frmNumCust=J,p.frmSysDate=Wo,p.getCookie=on,p.handleErrorResponse=Z,p.isActive=ln,p.mapArrayToEnum=G,p.nl2br=en,p.setCookie=nn,p.setI18n=ee,p.syncItemChanges=wt,p.usePageStore=T,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/bundle-stats.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"alytus-ff.umd.cjs","children":[{"name":"src","children":[{"name":"styles/main.scss","uid":"037daaae-1"},{"name":"plugins/i18n.ts","uid":"037daaae-3"},{"name":"stores/page.ts","uid":"037daaae-5"},{"name":"components","children":[{"name":"Page","children":[{"uid":"037daaae-7","name":"PageTitle.vue?vue&type=script&lang.ts"},{"uid":"037daaae-11","name":"PageTitle.vue"},{"uid":"037daaae-13","name":"PageSubtitle.vue?vue&type=script&lang.ts"},{"uid":"037daaae-15","name":"PageSubtitle.vue"},{"uid":"037daaae-17","name":"InnerLeftMenu.vue?vue&type=script&lang.ts"},{"uid":"037daaae-19","name":"InnerLeftMenu.vue"}]},{"name":"Dialog","children":[{"uid":"037daaae-23","name":"CustomDialog.vue?vue&type=script&lang.ts"},{"uid":"037daaae-25","name":"CustomDialog.vue"},{"uid":"037daaae-41","name":"ErrorDialog.vue?vue&type=script&lang.ts"},{"uid":"037daaae-43","name":"ErrorDialog.vue"},{"uid":"037daaae-115","name":"ConfirmPopup.vue?vue&type=script&lang.ts"},{"uid":"037daaae-117","name":"ConfirmPopup.vue"}]},{"name":"Avatar","children":[{"uid":"037daaae-27","name":"AccountAvatar.vue?vue&type=script&lang.ts"},{"uid":"037daaae-29","name":"AccountAvatar.vue"},{"uid":"037daaae-33","name":"UserAvatar.vue?vue&type=script&lang.ts"},{"uid":"037daaae-35","name":"UserAvatar.vue"}]},{"name":"Nav","children":[{"uid":"037daaae-37","name":"UserMenu.vue?vue&type=script&lang.ts"},{"uid":"037daaae-39","name":"UserMenu.vue"}]},{"name":"Form","children":[{"uid":"037daaae-45","name":"FieldRow.vue?vue&type=script&lang.ts"},{"uid":"037daaae-47","name":"FieldRow.vue"},{"uid":"037daaae-49","name":"ColorPicker.vue?vue&type=script&lang.ts"},{"uid":"037daaae-51","name":"ColorPicker.vue"},{"uid":"037daaae-53","name":"FieldLabel.vue?vue&type=script&lang.ts"},{"uid":"037daaae-55","name":"FieldLabel.vue"},{"uid":"037daaae-69","name":"FilesUploadControl.vue?vue&type=script&lang.ts"},{"uid":"037daaae-71","name":"FilesUploadControl.vue"}]},{"name":"Profile","children":[{"uid":"037daaae-63","name":"ProfileInfo.vue?vue&type=script&lang.ts"},{"uid":"037daaae-65","name":"ProfileInfo.vue"},{"uid":"037daaae-73","name":"ProfileEditDialog.vue?vue&type=script&lang.ts"},{"uid":"037daaae-75","name":"ProfileEditDialog.vue"}]},{"name":"DataTable","children":[{"uid":"037daaae-77","name":"RowActionsButton.vue?vue&type=script&lang.ts"},{"uid":"037daaae-79","name":"RowActionsButton.vue"},{"name":"layouts","children":[{"uid":"037daaae-81","name":"MobileLayoutItem.vue?vue&type=script&lang.ts"},{"uid":"037daaae-83","name":"MobileLayoutItem.vue"},{"uid":"037daaae-85","name":"MobileLayout.vue?vue&type=script&lang.ts"},{"uid":"037daaae-87","name":"MobileLayout.vue"},{"uid":"037daaae-89","name":"DesktopLayout.vue?vue&type=script&lang.ts"},{"uid":"037daaae-91","name":"DesktopLayout.vue"}]},{"uid":"037daaae-93","name":"ColumnSelector.vue?vue&type=script&lang.ts"},{"uid":"037daaae-95","name":"ColumnSelector.vue"},{"name":"filters","children":[{"uid":"037daaae-97","name":"EmptyFilter.vue?vue&type=script&lang.ts"},{"uid":"037daaae-99","name":"EmptyFilter.vue"},{"uid":"037daaae-101","name":"SelectFilter.vue?vue&type=script&lang.ts"},{"uid":"037daaae-103","name":"SelectFilter.vue"},{"uid":"037daaae-119","name":"SearchFilter.vue?vue&type=script&lang.ts"},{"uid":"037daaae-121","name":"SearchFilter.vue"}]},{"uid":"037daaae-105","name":"DataTableFilters.vue?vue&type=script&lang.ts"},{"uid":"037daaae-107","name":"DataTableFilters.vue"},{"uid":"037daaae-127","name":"DataTableTotals.vue?vue&type=script&lang.ts"},{"uid":"037daaae-129","name":"DataTableTotals.vue"},{"uid":"037daaae-141","name":"DataTableUtil.ts"}]},{"name":"Workspace","children":[{"uid":"037daaae-111","name":"UserStatusChip.vue?vue&type=script&lang.ts"},{"uid":"037daaae-113","name":"UserStatusChip.vue"}]}]},{"name":"utils","children":[{"uid":"037daaae-31","name":"StringUtil.ts"},{"uid":"037daaae-57","name":"LazyUtil.ts"},{"uid":"037daaae-59","name":"ArrayUtil.ts"},{"uid":"037daaae-61","name":"LangUtil.ts"},{"uid":"037daaae-67","name":"FormUtil.ts"},{"uid":"037daaae-123","name":"CultureUtil.ts"},{"uid":"037daaae-125","name":"FormatUtil.ts"},{"uid":"037daaae-131","name":"HtmlUtil.ts"},{"uid":"037daaae-133","name":"ObjectUtil.ts"},{"uid":"037daaae-135","name":"CookieUtil.ts"},{"uid":"037daaae-137","name":"NavUtil.ts"},{"uid":"037daaae-139","name":"ApiUtil.ts"}]},{"name":"types/User.ts","uid":"037daaae-109"},{"uid":"037daaae-143","name":"index.ts"}]},{"uid":"037daaae-9","name":"\u0000plugin-vue:export-helper"},{"name":"node_modules/@mdi/js/mdi.js","uid":"037daaae-21"}]}],"isRoot":true},"nodeParts":{"037daaae-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"037daaae-0"},"037daaae-3":{"renderedLength":422,"gzipLength":245,"brotliLength":207,"metaUid":"037daaae-2"},"037daaae-5":{"renderedLength":3286,"gzipLength":943,"brotliLength":791,"metaUid":"037daaae-4"},"037daaae-7":{"renderedLength":320,"gzipLength":189,"brotliLength":155,"metaUid":"037daaae-6"},"037daaae-9":{"renderedLength":187,"gzipLength":138,"brotliLength":114,"metaUid":"037daaae-8"},"037daaae-11":{"renderedLength":1019,"gzipLength":438,"brotliLength":373,"metaUid":"037daaae-10"},"037daaae-13":{"renderedLength":269,"gzipLength":170,"brotliLength":146,"metaUid":"037daaae-12"},"037daaae-15":{"renderedLength":615,"gzipLength":373,"brotliLength":312,"metaUid":"037daaae-14"},"037daaae-17":{"renderedLength":515,"gzipLength":262,"brotliLength":230,"metaUid":"037daaae-16"},"037daaae-19":{"renderedLength":612,"gzipLength":374,"brotliLength":298,"metaUid":"037daaae-18"},"037daaae-21":{"renderedLength":2262,"gzipLength":928,"brotliLength":841,"metaUid":"037daaae-20"},"037daaae-23":{"renderedLength":754,"gzipLength":247,"brotliLength":201,"metaUid":"037daaae-22"},"037daaae-25":{"renderedLength":3022,"gzipLength":881,"brotliLength":765,"metaUid":"037daaae-24"},"037daaae-27":{"renderedLength":253,"gzipLength":165,"brotliLength":128,"metaUid":"037daaae-26"},"037daaae-29":{"renderedLength":632,"gzipLength":380,"brotliLength":307,"metaUid":"037daaae-28"},"037daaae-31":{"renderedLength":548,"gzipLength":214,"brotliLength":181,"metaUid":"037daaae-30"},"037daaae-33":{"renderedLength":464,"gzipLength":231,"brotliLength":186,"metaUid":"037daaae-32"},"037daaae-35":{"renderedLength":1092,"gzipLength":527,"brotliLength":440,"metaUid":"037daaae-34"},"037daaae-37":{"renderedLength":2733,"gzipLength":758,"brotliLength":654,"metaUid":"037daaae-36"},"037daaae-39":{"renderedLength":13874,"gzipLength":1995,"brotliLength":1757,"metaUid":"037daaae-38"},"037daaae-41":{"renderedLength":636,"gzipLength":281,"brotliLength":239,"metaUid":"037daaae-40"},"037daaae-43":{"renderedLength":2445,"gzipLength":742,"brotliLength":630,"metaUid":"037daaae-42"},"037daaae-45":{"renderedLength":461,"gzipLength":204,"brotliLength":160,"metaUid":"037daaae-44"},"037daaae-47":{"renderedLength":1483,"gzipLength":548,"brotliLength":463,"metaUid":"037daaae-46"},"037daaae-49":{"renderedLength":404,"gzipLength":238,"brotliLength":205,"metaUid":"037daaae-48"},"037daaae-51":{"renderedLength":2091,"gzipLength":606,"brotliLength":515,"metaUid":"037daaae-50"},"037daaae-53":{"renderedLength":486,"gzipLength":192,"brotliLength":163,"metaUid":"037daaae-52"},"037daaae-55":{"renderedLength":845,"gzipLength":444,"brotliLength":373,"metaUid":"037daaae-54"},"037daaae-57":{"renderedLength":227,"gzipLength":154,"brotliLength":121,"metaUid":"037daaae-56"},"037daaae-59":{"renderedLength":216,"gzipLength":149,"brotliLength":130,"metaUid":"037daaae-58"},"037daaae-61":{"renderedLength":3558,"gzipLength":799,"brotliLength":631,"metaUid":"037daaae-60"},"037daaae-63":{"renderedLength":957,"gzipLength":396,"brotliLength":333,"metaUid":"037daaae-62"},"037daaae-65":{"renderedLength":3725,"gzipLength":928,"brotliLength":816,"metaUid":"037daaae-64"},"037daaae-67":{"renderedLength":5194,"gzipLength":1279,"brotliLength":1091,"metaUid":"037daaae-66"},"037daaae-69":{"renderedLength":5262,"gzipLength":1240,"brotliLength":1102,"metaUid":"037daaae-68"},"037daaae-71":{"renderedLength":6829,"gzipLength":1532,"brotliLength":1314,"metaUid":"037daaae-70"},"037daaae-73":{"renderedLength":2771,"gzipLength":942,"brotliLength":807,"metaUid":"037daaae-72"},"037daaae-75":{"renderedLength":11372,"gzipLength":2053,"brotliLength":1797,"metaUid":"037daaae-74"},"037daaae-77":{"renderedLength":750,"gzipLength":304,"brotliLength":252,"metaUid":"037daaae-76"},"037daaae-79":{"renderedLength":2564,"gzipLength":773,"brotliLength":677,"metaUid":"037daaae-78"},"037daaae-81":{"renderedLength":1466,"gzipLength":482,"brotliLength":423,"metaUid":"037daaae-80"},"037daaae-83":{"renderedLength":10343,"gzipLength":1785,"brotliLength":1573,"metaUid":"037daaae-82"},"037daaae-85":{"renderedLength":1844,"gzipLength":501,"brotliLength":425,"metaUid":"037daaae-84"},"037daaae-87":{"renderedLength":2322,"gzipLength":823,"brotliLength":704,"metaUid":"037daaae-86"},"037daaae-89":{"renderedLength":2074,"gzipLength":697,"brotliLength":611,"metaUid":"037daaae-88"},"037daaae-91":{"renderedLength":3167,"gzipLength":1069,"brotliLength":939,"metaUid":"037daaae-90"},"037daaae-93":{"renderedLength":808,"gzipLength":331,"brotliLength":283,"metaUid":"037daaae-92"},"037daaae-95":{"renderedLength":2206,"gzipLength":703,"brotliLength":594,"metaUid":"037daaae-94"},"037daaae-97":{"renderedLength":354,"gzipLength":195,"brotliLength":141,"metaUid":"037daaae-96"},"037daaae-99":{"renderedLength":754,"gzipLength":421,"brotliLength":353,"metaUid":"037daaae-98"},"037daaae-101":{"renderedLength":1949,"gzipLength":680,"brotliLength":613,"metaUid":"037daaae-100"},"037daaae-103":{"renderedLength":3860,"gzipLength":1015,"brotliLength":882,"metaUid":"037daaae-102"},"037daaae-105":{"renderedLength":557,"gzipLength":269,"brotliLength":210,"metaUid":"037daaae-104"},"037daaae-107":{"renderedLength":1097,"gzipLength":474,"brotliLength":411,"metaUid":"037daaae-106"},"037daaae-109":{"renderedLength":548,"gzipLength":218,"brotliLength":190,"metaUid":"037daaae-108"},"037daaae-111":{"renderedLength":986,"gzipLength":365,"brotliLength":300,"metaUid":"037daaae-110"},"037daaae-113":{"renderedLength":570,"gzipLength":344,"brotliLength":281,"metaUid":"037daaae-112"},"037daaae-115":{"renderedLength":448,"gzipLength":213,"brotliLength":167,"metaUid":"037daaae-114"},"037daaae-117":{"renderedLength":2717,"gzipLength":731,"brotliLength":646,"metaUid":"037daaae-116"},"037daaae-119":{"renderedLength":783,"gzipLength":364,"brotliLength":307,"metaUid":"037daaae-118"},"037daaae-121":{"renderedLength":915,"gzipLength":477,"brotliLength":420,"metaUid":"037daaae-120"},"037daaae-123":{"renderedLength":1452,"gzipLength":334,"brotliLength":273,"metaUid":"037daaae-122"},"037daaae-125":{"renderedLength":3247,"gzipLength":964,"brotliLength":866,"metaUid":"037daaae-124"},"037daaae-127":{"renderedLength":213,"gzipLength":158,"brotliLength":132,"metaUid":"037daaae-126"},"037daaae-129":{"renderedLength":659,"gzipLength":333,"brotliLength":278,"metaUid":"037daaae-128"},"037daaae-131":{"renderedLength":115,"gzipLength":110,"brotliLength":90,"metaUid":"037daaae-130"},"037daaae-133":{"renderedLength":81,"gzipLength":91,"brotliLength":65,"metaUid":"037daaae-132"},"037daaae-135":{"renderedLength":654,"gzipLength":345,"brotliLength":287,"metaUid":"037daaae-134"},"037daaae-137":{"renderedLength":241,"gzipLength":145,"brotliLength":120,"metaUid":"037daaae-136"},"037daaae-139":{"renderedLength":221,"gzipLength":153,"brotliLength":143,"metaUid":"037daaae-138"},"037daaae-141":{"renderedLength":267,"gzipLength":166,"brotliLength":140,"metaUid":"037daaae-140"},"037daaae-143":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"037daaae-142"}},"nodeMetas":{"037daaae-0":{"id":"/src/styles/main.scss","moduleParts":{"alytus-ff.umd.cjs":"037daaae-1"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-2":{"id":"/src/plugins/i18n.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-3"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-4"},{"uid":"037daaae-124"}]},"037daaae-4":{"id":"/src/stores/page.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-5"},"imported":[{"uid":"037daaae-144"},{"uid":"037daaae-145"},{"uid":"037daaae-2"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-72"},{"uid":"037daaae-68"}]},"037daaae-6":{"id":"/src/components/Page/PageTitle.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-7"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-10"}]},"037daaae-8":{"id":"\u0000plugin-vue:export-helper","moduleParts":{"alytus-ff.umd.cjs":"037daaae-9"},"imported":[],"importedBy":[{"uid":"037daaae-10"},{"uid":"037daaae-14"},{"uid":"037daaae-18"},{"uid":"037daaae-24"},{"uid":"037daaae-28"},{"uid":"037daaae-34"},{"uid":"037daaae-38"},{"uid":"037daaae-42"},{"uid":"037daaae-46"},{"uid":"037daaae-50"},{"uid":"037daaae-54"},{"uid":"037daaae-64"},{"uid":"037daaae-74"},{"uid":"037daaae-86"},{"uid":"037daaae-82"},{"uid":"037daaae-90"},{"uid":"037daaae-78"},{"uid":"037daaae-94"},{"uid":"037daaae-98"},{"uid":"037daaae-102"},{"uid":"037daaae-106"},{"uid":"037daaae-112"},{"uid":"037daaae-116"},{"uid":"037daaae-120"},{"uid":"037daaae-128"},{"uid":"037daaae-70"}]},"037daaae-10":{"id":"/src/components/Page/PageTitle.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-11"},"imported":[{"uid":"037daaae-6"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-12":{"id":"/src/components/Page/PageSubtitle.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-13"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-14"}]},"037daaae-14":{"id":"/src/components/Page/PageSubtitle.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-15"},"imported":[{"uid":"037daaae-12"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-16":{"id":"/src/components/Page/InnerLeftMenu.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-17"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-146"}],"importedBy":[{"uid":"037daaae-18"}]},"037daaae-18":{"id":"/src/components/Page/InnerLeftMenu.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-19"},"imported":[{"uid":"037daaae-16"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-20":{"id":"/node_modules/@mdi/js/mdi.js","moduleParts":{"alytus-ff.umd.cjs":"037daaae-21"},"imported":[],"importedBy":[{"uid":"037daaae-22"},{"uid":"037daaae-36"},{"uid":"037daaae-62"},{"uid":"037daaae-72"},{"uid":"037daaae-80"},{"uid":"037daaae-92"},{"uid":"037daaae-100"},{"uid":"037daaae-68"}]},"037daaae-22":{"id":"/src/components/Dialog/CustomDialog.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-23"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-20"}],"importedBy":[{"uid":"037daaae-24"}]},"037daaae-24":{"id":"/src/components/Dialog/CustomDialog.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-25"},"imported":[{"uid":"037daaae-22"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-72"}]},"037daaae-26":{"id":"/src/components/Avatar/AccountAvatar.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-27"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-28"}]},"037daaae-28":{"id":"/src/components/Avatar/AccountAvatar.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-29"},"imported":[{"uid":"037daaae-26"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-36"},{"uid":"037daaae-48"},{"uid":"037daaae-72"}]},"037daaae-30":{"id":"/src/utils/StringUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-31"},"imported":[],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-32"},{"uid":"037daaae-36"},{"uid":"037daaae-62"}]},"037daaae-32":{"id":"/src/components/Avatar/UserAvatar.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-33"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-30"}],"importedBy":[{"uid":"037daaae-34"}]},"037daaae-34":{"id":"/src/components/Avatar/UserAvatar.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-35"},"imported":[{"uid":"037daaae-32"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-36"},{"uid":"037daaae-48"},{"uid":"037daaae-62"},{"uid":"037daaae-72"}]},"037daaae-36":{"id":"/src/components/Nav/UserMenu.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-37"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-34"},{"uid":"037daaae-28"},{"uid":"037daaae-30"},{"uid":"037daaae-20"},{"uid":"037daaae-147"}],"importedBy":[{"uid":"037daaae-38"}]},"037daaae-38":{"id":"/src/components/Nav/UserMenu.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-39"},"imported":[{"uid":"037daaae-36"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-40":{"id":"/src/components/Dialog/ErrorDialog.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-41"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-147"}],"importedBy":[{"uid":"037daaae-42"}]},"037daaae-42":{"id":"/src/components/Dialog/ErrorDialog.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-43"},"imported":[{"uid":"037daaae-40"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-44":{"id":"/src/components/Form/FieldRow.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-45"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-46"}]},"037daaae-46":{"id":"/src/components/Form/FieldRow.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-47"},"imported":[{"uid":"037daaae-44"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-48":{"id":"/src/components/Form/ColorPicker.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-49"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-34"},{"uid":"037daaae-28"}],"importedBy":[{"uid":"037daaae-50"}]},"037daaae-50":{"id":"/src/components/Form/ColorPicker.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-51"},"imported":[{"uid":"037daaae-48"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-72"}]},"037daaae-52":{"id":"/src/components/Form/FieldLabel.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-53"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-54"}]},"037daaae-54":{"id":"/src/components/Form/FieldLabel.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-55"},"imported":[{"uid":"037daaae-52"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-72"}]},"037daaae-56":{"id":"/src/utils/LazyUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-57"},"imported":[],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-60"}]},"037daaae-58":{"id":"/src/utils/ArrayUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-59"},"imported":[],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-60"}]},"037daaae-60":{"id":"/src/utils/LangUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-61"},"imported":[{"uid":"037daaae-56"},{"uid":"037daaae-58"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-62"},{"uid":"037daaae-72"}]},"037daaae-62":{"id":"/src/components/Profile/ProfileInfo.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-63"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-34"},{"uid":"037daaae-147"},{"uid":"037daaae-60"},{"uid":"037daaae-30"},{"uid":"037daaae-20"}],"importedBy":[{"uid":"037daaae-64"}]},"037daaae-64":{"id":"/src/components/Profile/ProfileInfo.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-65"},"imported":[{"uid":"037daaae-62"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-66":{"id":"/src/utils/FormUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-67"},"imported":[],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-72"}]},"037daaae-68":{"id":"/src/components/Form/FilesUploadControl.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-69"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-20"},{"uid":"037daaae-4"}],"importedBy":[{"uid":"037daaae-70"}]},"037daaae-70":{"id":"/src/components/Form/FilesUploadControl.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-71"},"imported":[{"uid":"037daaae-68"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-72"}]},"037daaae-72":{"id":"/src/components/Profile/ProfileEditDialog.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-73"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-147"},{"uid":"037daaae-20"},{"uid":"037daaae-50"},{"uid":"037daaae-34"},{"uid":"037daaae-28"},{"uid":"037daaae-24"},{"uid":"037daaae-60"},{"uid":"037daaae-66"},{"uid":"037daaae-4"},{"uid":"037daaae-54"},{"uid":"037daaae-70"}],"importedBy":[{"uid":"037daaae-74"}]},"037daaae-74":{"id":"/src/components/Profile/ProfileEditDialog.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-75"},"imported":[{"uid":"037daaae-72"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-76":{"id":"/src/components/DataTable/RowActionsButton.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-77"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-78"}]},"037daaae-78":{"id":"/src/components/DataTable/RowActionsButton.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-79"},"imported":[{"uid":"037daaae-76"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-84"},{"uid":"037daaae-80"},{"uid":"037daaae-88"}]},"037daaae-80":{"id":"/src/components/DataTable/layouts/MobileLayoutItem.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-81"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-78"},{"uid":"037daaae-20"}],"importedBy":[{"uid":"037daaae-82"}]},"037daaae-82":{"id":"/src/components/DataTable/layouts/MobileLayoutItem.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-83"},"imported":[{"uid":"037daaae-80"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-84"}]},"037daaae-84":{"id":"/src/components/DataTable/layouts/MobileLayout.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-85"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-82"},{"uid":"037daaae-78"}],"importedBy":[{"uid":"037daaae-86"}]},"037daaae-86":{"id":"/src/components/DataTable/layouts/MobileLayout.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-87"},"imported":[{"uid":"037daaae-84"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-88":{"id":"/src/components/DataTable/layouts/DesktopLayout.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-89"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-78"},{"uid":"037daaae-147"}],"importedBy":[{"uid":"037daaae-90"}]},"037daaae-90":{"id":"/src/components/DataTable/layouts/DesktopLayout.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-91"},"imported":[{"uid":"037daaae-88"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-92":{"id":"/src/components/DataTable/ColumnSelector.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-93"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-20"}],"importedBy":[{"uid":"037daaae-94"}]},"037daaae-94":{"id":"/src/components/DataTable/ColumnSelector.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-95"},"imported":[{"uid":"037daaae-92"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-96":{"id":"/src/components/DataTable/filters/EmptyFilter.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-97"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-98"}]},"037daaae-98":{"id":"/src/components/DataTable/filters/EmptyFilter.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-99"},"imported":[{"uid":"037daaae-96"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-100":{"id":"/src/components/DataTable/filters/SelectFilter.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-101"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-20"},{"uid":"037daaae-147"}],"importedBy":[{"uid":"037daaae-102"}]},"037daaae-102":{"id":"/src/components/DataTable/filters/SelectFilter.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-103"},"imported":[{"uid":"037daaae-100"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-104":{"id":"/src/components/DataTable/DataTableFilters.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-105"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-106"}]},"037daaae-106":{"id":"/src/components/DataTable/DataTableFilters.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-107"},"imported":[{"uid":"037daaae-104"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-108":{"id":"/src/types/User.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-109"},"imported":[],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-110"}]},"037daaae-110":{"id":"/src/components/Workspace/UserStatusChip.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-111"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-147"},{"uid":"037daaae-108"}],"importedBy":[{"uid":"037daaae-112"}]},"037daaae-112":{"id":"/src/components/Workspace/UserStatusChip.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-113"},"imported":[{"uid":"037daaae-110"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-114":{"id":"/src/components/Dialog/ConfirmPopup.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-115"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-116"}]},"037daaae-116":{"id":"/src/components/Dialog/ConfirmPopup.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-117"},"imported":[{"uid":"037daaae-114"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-118":{"id":"/src/components/DataTable/filters/SearchFilter.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-119"},"imported":[{"uid":"037daaae-145"}],"importedBy":[{"uid":"037daaae-120"}]},"037daaae-120":{"id":"/src/components/DataTable/filters/SearchFilter.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-121"},"imported":[{"uid":"037daaae-118"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-122":{"id":"/src/utils/CultureUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-123"},"imported":[],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-124"}]},"037daaae-124":{"id":"/src/utils/FormatUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-125"},"imported":[{"uid":"037daaae-122"},{"uid":"037daaae-2"}],"importedBy":[{"uid":"037daaae-142"},{"uid":"037daaae-126"}]},"037daaae-126":{"id":"/src/components/DataTable/DataTableTotals.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-127"},"imported":[{"uid":"037daaae-145"},{"uid":"037daaae-124"}],"importedBy":[{"uid":"037daaae-128"}]},"037daaae-128":{"id":"/src/components/DataTable/DataTableTotals.vue","moduleParts":{"alytus-ff.umd.cjs":"037daaae-129"},"imported":[{"uid":"037daaae-126"},{"uid":"037daaae-145"},{"uid":"037daaae-8"}],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-130":{"id":"/src/utils/HtmlUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-131"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-132":{"id":"/src/utils/ObjectUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-133"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-134":{"id":"/src/utils/CookieUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-135"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-136":{"id":"/src/utils/NavUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-137"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-138":{"id":"/src/utils/ApiUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-139"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-140":{"id":"/src/components/DataTable/DataTableUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-141"},"imported":[],"importedBy":[{"uid":"037daaae-142"}]},"037daaae-142":{"id":"/src/index.ts","moduleParts":{"alytus-ff.umd.cjs":"037daaae-143"},"imported":[{"uid":"037daaae-0"},{"uid":"037daaae-4"},{"uid":"037daaae-10"},{"uid":"037daaae-14"},{"uid":"037daaae-18"},{"uid":"037daaae-24"},{"uid":"037daaae-28"},{"uid":"037daaae-34"},{"uid":"037daaae-38"},{"uid":"037daaae-42"},{"uid":"037daaae-46"},{"uid":"037daaae-50"},{"uid":"037daaae-54"},{"uid":"037daaae-64"},{"uid":"037daaae-74"},{"uid":"037daaae-86"},{"uid":"037daaae-82"},{"uid":"037daaae-90"},{"uid":"037daaae-78"},{"uid":"037daaae-94"},{"uid":"037daaae-98"},{"uid":"037daaae-102"},{"uid":"037daaae-106"},{"uid":"037daaae-112"},{"uid":"037daaae-116"},{"uid":"037daaae-120"},{"uid":"037daaae-128"},{"uid":"037daaae-70"},{"uid":"037daaae-130"},{"uid":"037daaae-132"},{"uid":"037daaae-134"},{"uid":"037daaae-30"},{"uid":"037daaae-136"},{"uid":"037daaae-60"},{"uid":"037daaae-138"},{"uid":"037daaae-122"},{"uid":"037daaae-124"},{"uid":"037daaae-58"},{"uid":"037daaae-56"},{"uid":"037daaae-66"},{"uid":"037daaae-108"},{"uid":"037daaae-140"}],"importedBy":[],"isEntry":true},"037daaae-144":{"id":"pinia","moduleParts":{},"imported":[],"importedBy":[{"uid":"037daaae-4"}],"isExternal":true},"037daaae-145":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"037daaae-4"},{"uid":"037daaae-10"},{"uid":"037daaae-14"},{"uid":"037daaae-18"},{"uid":"037daaae-24"},{"uid":"037daaae-28"},{"uid":"037daaae-34"},{"uid":"037daaae-38"},{"uid":"037daaae-42"},{"uid":"037daaae-46"},{"uid":"037daaae-50"},{"uid":"037daaae-54"},{"uid":"037daaae-64"},{"uid":"037daaae-74"},{"uid":"037daaae-86"},{"uid":"037daaae-82"},{"uid":"037daaae-90"},{"uid":"037daaae-78"},{"uid":"037daaae-94"},{"uid":"037daaae-98"},{"uid":"037daaae-102"},{"uid":"037daaae-106"},{"uid":"037daaae-112"},{"uid":"037daaae-116"},{"uid":"037daaae-120"},{"uid":"037daaae-128"},{"uid":"037daaae-70"},{"uid":"037daaae-2"},{"uid":"037daaae-6"},{"uid":"037daaae-12"},{"uid":"037daaae-16"},{"uid":"037daaae-22"},{"uid":"037daaae-26"},{"uid":"037daaae-32"},{"uid":"037daaae-36"},{"uid":"037daaae-40"},{"uid":"037daaae-44"},{"uid":"037daaae-48"},{"uid":"037daaae-52"},{"uid":"037daaae-62"},{"uid":"037daaae-72"},{"uid":"037daaae-84"},{"uid":"037daaae-80"},{"uid":"037daaae-88"},{"uid":"037daaae-76"},{"uid":"037daaae-92"},{"uid":"037daaae-96"},{"uid":"037daaae-100"},{"uid":"037daaae-104"},{"uid":"037daaae-110"},{"uid":"037daaae-114"},{"uid":"037daaae-118"},{"uid":"037daaae-126"},{"uid":"037daaae-68"}],"isExternal":true},"037daaae-146":{"id":"vue-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"037daaae-16"}],"isExternal":true},"037daaae-147":{"id":"vue-i18n","moduleParts":{},"imported":[],"importedBy":[{"uid":"037daaae-36"},{"uid":"037daaae-40"},{"uid":"037daaae-62"},{"uid":"037daaae-72"},{"uid":"037daaae-88"},{"uid":"037daaae-100"},{"uid":"037daaae-110"}],"isExternal":true}},"env":{"rollup":"4.53.3"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"alytus-ff.umd.cjs","children":[{"name":"src","children":[{"name":"styles/main.scss","uid":"717c31a2-1"},{"name":"plugins/i18n.ts","uid":"717c31a2-3"},{"name":"stores/page.ts","uid":"717c31a2-5"},{"name":"components","children":[{"name":"Page","children":[{"uid":"717c31a2-7","name":"PageTitle.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-11","name":"PageTitle.vue"},{"uid":"717c31a2-13","name":"PageSubtitle.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-15","name":"PageSubtitle.vue"},{"uid":"717c31a2-17","name":"InnerLeftMenu.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-19","name":"InnerLeftMenu.vue"}]},{"name":"Dialog","children":[{"uid":"717c31a2-23","name":"CustomDialog.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-25","name":"CustomDialog.vue"},{"uid":"717c31a2-41","name":"ErrorDialog.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-43","name":"ErrorDialog.vue"},{"uid":"717c31a2-115","name":"ConfirmPopup.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-117","name":"ConfirmPopup.vue"}]},{"name":"Avatar","children":[{"uid":"717c31a2-27","name":"AccountAvatar.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-29","name":"AccountAvatar.vue"},{"uid":"717c31a2-33","name":"UserAvatar.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-35","name":"UserAvatar.vue"}]},{"name":"Nav","children":[{"uid":"717c31a2-37","name":"UserMenu.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-39","name":"UserMenu.vue"}]},{"name":"Form","children":[{"uid":"717c31a2-45","name":"FieldRow.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-47","name":"FieldRow.vue"},{"uid":"717c31a2-49","name":"ColorPicker.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-51","name":"ColorPicker.vue"},{"uid":"717c31a2-53","name":"FieldLabel.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-55","name":"FieldLabel.vue"},{"uid":"717c31a2-69","name":"FilesUploadControl.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-71","name":"FilesUploadControl.vue"}]},{"name":"Profile","children":[{"uid":"717c31a2-63","name":"ProfileInfo.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-65","name":"ProfileInfo.vue"},{"uid":"717c31a2-73","name":"ProfileEditDialog.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-75","name":"ProfileEditDialog.vue"}]},{"name":"DataTable","children":[{"uid":"717c31a2-77","name":"RowActionsButton.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-79","name":"RowActionsButton.vue"},{"name":"layouts","children":[{"uid":"717c31a2-81","name":"MobileLayoutItem.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-83","name":"MobileLayoutItem.vue"},{"uid":"717c31a2-85","name":"MobileLayout.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-87","name":"MobileLayout.vue"},{"uid":"717c31a2-89","name":"DesktopLayout.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-91","name":"DesktopLayout.vue"}]},{"uid":"717c31a2-93","name":"ColumnSelector.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-95","name":"ColumnSelector.vue"},{"name":"filters","children":[{"uid":"717c31a2-97","name":"EmptyFilter.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-99","name":"EmptyFilter.vue"},{"uid":"717c31a2-101","name":"SelectFilter.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-103","name":"SelectFilter.vue"},{"uid":"717c31a2-119","name":"SearchFilter.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-121","name":"SearchFilter.vue"}]},{"uid":"717c31a2-105","name":"DataTableFilters.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-107","name":"DataTableFilters.vue"},{"uid":"717c31a2-127","name":"DataTableTotals.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-129","name":"DataTableTotals.vue"},{"uid":"717c31a2-141","name":"DataTableUtil.ts"}]},{"name":"Workspace","children":[{"uid":"717c31a2-111","name":"UserStatusChip.vue?vue&type=script&lang.ts"},{"uid":"717c31a2-113","name":"UserStatusChip.vue"}]}]},{"name":"utils","children":[{"uid":"717c31a2-31","name":"StringUtil.ts"},{"uid":"717c31a2-57","name":"LazyUtil.ts"},{"uid":"717c31a2-59","name":"ArrayUtil.ts"},{"uid":"717c31a2-61","name":"LangUtil.ts"},{"uid":"717c31a2-67","name":"FormUtil.ts"},{"uid":"717c31a2-123","name":"CultureUtil.ts"},{"uid":"717c31a2-125","name":"FormatUtil.ts"},{"uid":"717c31a2-131","name":"HtmlUtil.ts"},{"uid":"717c31a2-133","name":"ObjectUtil.ts"},{"uid":"717c31a2-135","name":"CookieUtil.ts"},{"uid":"717c31a2-137","name":"NavUtil.ts"},{"uid":"717c31a2-139","name":"ApiUtil.ts"}]},{"name":"types/User.ts","uid":"717c31a2-109"},{"uid":"717c31a2-143","name":"index.ts"}]},{"uid":"717c31a2-9","name":"\u0000plugin-vue:export-helper"},{"name":"node_modules/@mdi/js/mdi.js","uid":"717c31a2-21"}]}],"isRoot":true},"nodeParts":{"717c31a2-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"717c31a2-0"},"717c31a2-3":{"renderedLength":422,"gzipLength":245,"brotliLength":207,"metaUid":"717c31a2-2"},"717c31a2-5":{"renderedLength":3286,"gzipLength":943,"brotliLength":791,"metaUid":"717c31a2-4"},"717c31a2-7":{"renderedLength":320,"gzipLength":189,"brotliLength":155,"metaUid":"717c31a2-6"},"717c31a2-9":{"renderedLength":187,"gzipLength":138,"brotliLength":114,"metaUid":"717c31a2-8"},"717c31a2-11":{"renderedLength":1019,"gzipLength":438,"brotliLength":373,"metaUid":"717c31a2-10"},"717c31a2-13":{"renderedLength":269,"gzipLength":170,"brotliLength":146,"metaUid":"717c31a2-12"},"717c31a2-15":{"renderedLength":615,"gzipLength":373,"brotliLength":312,"metaUid":"717c31a2-14"},"717c31a2-17":{"renderedLength":515,"gzipLength":262,"brotliLength":230,"metaUid":"717c31a2-16"},"717c31a2-19":{"renderedLength":612,"gzipLength":374,"brotliLength":298,"metaUid":"717c31a2-18"},"717c31a2-21":{"renderedLength":2262,"gzipLength":928,"brotliLength":841,"metaUid":"717c31a2-20"},"717c31a2-23":{"renderedLength":754,"gzipLength":247,"brotliLength":201,"metaUid":"717c31a2-22"},"717c31a2-25":{"renderedLength":3022,"gzipLength":881,"brotliLength":765,"metaUid":"717c31a2-24"},"717c31a2-27":{"renderedLength":253,"gzipLength":165,"brotliLength":128,"metaUid":"717c31a2-26"},"717c31a2-29":{"renderedLength":632,"gzipLength":380,"brotliLength":307,"metaUid":"717c31a2-28"},"717c31a2-31":{"renderedLength":548,"gzipLength":214,"brotliLength":181,"metaUid":"717c31a2-30"},"717c31a2-33":{"renderedLength":464,"gzipLength":231,"brotliLength":186,"metaUid":"717c31a2-32"},"717c31a2-35":{"renderedLength":1092,"gzipLength":527,"brotliLength":440,"metaUid":"717c31a2-34"},"717c31a2-37":{"renderedLength":2733,"gzipLength":758,"brotliLength":654,"metaUid":"717c31a2-36"},"717c31a2-39":{"renderedLength":13874,"gzipLength":1995,"brotliLength":1757,"metaUid":"717c31a2-38"},"717c31a2-41":{"renderedLength":636,"gzipLength":281,"brotliLength":239,"metaUid":"717c31a2-40"},"717c31a2-43":{"renderedLength":2445,"gzipLength":742,"brotliLength":630,"metaUid":"717c31a2-42"},"717c31a2-45":{"renderedLength":461,"gzipLength":204,"brotliLength":160,"metaUid":"717c31a2-44"},"717c31a2-47":{"renderedLength":1483,"gzipLength":548,"brotliLength":463,"metaUid":"717c31a2-46"},"717c31a2-49":{"renderedLength":404,"gzipLength":238,"brotliLength":205,"metaUid":"717c31a2-48"},"717c31a2-51":{"renderedLength":2091,"gzipLength":606,"brotliLength":515,"metaUid":"717c31a2-50"},"717c31a2-53":{"renderedLength":486,"gzipLength":192,"brotliLength":163,"metaUid":"717c31a2-52"},"717c31a2-55":{"renderedLength":845,"gzipLength":444,"brotliLength":373,"metaUid":"717c31a2-54"},"717c31a2-57":{"renderedLength":227,"gzipLength":154,"brotliLength":121,"metaUid":"717c31a2-56"},"717c31a2-59":{"renderedLength":216,"gzipLength":149,"brotliLength":130,"metaUid":"717c31a2-58"},"717c31a2-61":{"renderedLength":3558,"gzipLength":799,"brotliLength":631,"metaUid":"717c31a2-60"},"717c31a2-63":{"renderedLength":957,"gzipLength":396,"brotliLength":333,"metaUid":"717c31a2-62"},"717c31a2-65":{"renderedLength":3725,"gzipLength":928,"brotliLength":816,"metaUid":"717c31a2-64"},"717c31a2-67":{"renderedLength":5194,"gzipLength":1279,"brotliLength":1091,"metaUid":"717c31a2-66"},"717c31a2-69":{"renderedLength":5262,"gzipLength":1240,"brotliLength":1102,"metaUid":"717c31a2-68"},"717c31a2-71":{"renderedLength":6829,"gzipLength":1532,"brotliLength":1314,"metaUid":"717c31a2-70"},"717c31a2-73":{"renderedLength":2771,"gzipLength":942,"brotliLength":807,"metaUid":"717c31a2-72"},"717c31a2-75":{"renderedLength":11372,"gzipLength":2053,"brotliLength":1797,"metaUid":"717c31a2-74"},"717c31a2-77":{"renderedLength":831,"gzipLength":315,"brotliLength":271,"metaUid":"717c31a2-76"},"717c31a2-79":{"renderedLength":2564,"gzipLength":773,"brotliLength":677,"metaUid":"717c31a2-78"},"717c31a2-81":{"renderedLength":1466,"gzipLength":482,"brotliLength":423,"metaUid":"717c31a2-80"},"717c31a2-83":{"renderedLength":10343,"gzipLength":1785,"brotliLength":1573,"metaUid":"717c31a2-82"},"717c31a2-85":{"renderedLength":1844,"gzipLength":501,"brotliLength":425,"metaUid":"717c31a2-84"},"717c31a2-87":{"renderedLength":2322,"gzipLength":823,"brotliLength":704,"metaUid":"717c31a2-86"},"717c31a2-89":{"renderedLength":2074,"gzipLength":697,"brotliLength":611,"metaUid":"717c31a2-88"},"717c31a2-91":{"renderedLength":3167,"gzipLength":1069,"brotliLength":939,"metaUid":"717c31a2-90"},"717c31a2-93":{"renderedLength":808,"gzipLength":331,"brotliLength":283,"metaUid":"717c31a2-92"},"717c31a2-95":{"renderedLength":2206,"gzipLength":703,"brotliLength":594,"metaUid":"717c31a2-94"},"717c31a2-97":{"renderedLength":354,"gzipLength":195,"brotliLength":141,"metaUid":"717c31a2-96"},"717c31a2-99":{"renderedLength":754,"gzipLength":421,"brotliLength":353,"metaUid":"717c31a2-98"},"717c31a2-101":{"renderedLength":1949,"gzipLength":680,"brotliLength":613,"metaUid":"717c31a2-100"},"717c31a2-103":{"renderedLength":3860,"gzipLength":1015,"brotliLength":882,"metaUid":"717c31a2-102"},"717c31a2-105":{"renderedLength":557,"gzipLength":269,"brotliLength":210,"metaUid":"717c31a2-104"},"717c31a2-107":{"renderedLength":1097,"gzipLength":474,"brotliLength":411,"metaUid":"717c31a2-106"},"717c31a2-109":{"renderedLength":548,"gzipLength":218,"brotliLength":190,"metaUid":"717c31a2-108"},"717c31a2-111":{"renderedLength":986,"gzipLength":365,"brotliLength":300,"metaUid":"717c31a2-110"},"717c31a2-113":{"renderedLength":570,"gzipLength":344,"brotliLength":281,"metaUid":"717c31a2-112"},"717c31a2-115":{"renderedLength":448,"gzipLength":213,"brotliLength":167,"metaUid":"717c31a2-114"},"717c31a2-117":{"renderedLength":2717,"gzipLength":731,"brotliLength":646,"metaUid":"717c31a2-116"},"717c31a2-119":{"renderedLength":783,"gzipLength":364,"brotliLength":307,"metaUid":"717c31a2-118"},"717c31a2-121":{"renderedLength":915,"gzipLength":477,"brotliLength":420,"metaUid":"717c31a2-120"},"717c31a2-123":{"renderedLength":1452,"gzipLength":334,"brotliLength":273,"metaUid":"717c31a2-122"},"717c31a2-125":{"renderedLength":3247,"gzipLength":964,"brotliLength":866,"metaUid":"717c31a2-124"},"717c31a2-127":{"renderedLength":213,"gzipLength":158,"brotliLength":132,"metaUid":"717c31a2-126"},"717c31a2-129":{"renderedLength":659,"gzipLength":333,"brotliLength":278,"metaUid":"717c31a2-128"},"717c31a2-131":{"renderedLength":115,"gzipLength":110,"brotliLength":90,"metaUid":"717c31a2-130"},"717c31a2-133":{"renderedLength":81,"gzipLength":91,"brotliLength":65,"metaUid":"717c31a2-132"},"717c31a2-135":{"renderedLength":654,"gzipLength":345,"brotliLength":287,"metaUid":"717c31a2-134"},"717c31a2-137":{"renderedLength":241,"gzipLength":145,"brotliLength":120,"metaUid":"717c31a2-136"},"717c31a2-139":{"renderedLength":221,"gzipLength":153,"brotliLength":143,"metaUid":"717c31a2-138"},"717c31a2-141":{"renderedLength":267,"gzipLength":166,"brotliLength":140,"metaUid":"717c31a2-140"},"717c31a2-143":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"717c31a2-142"}},"nodeMetas":{"717c31a2-0":{"id":"/src/styles/main.scss","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-1"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-2":{"id":"/src/plugins/i18n.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-3"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-4"},{"uid":"717c31a2-124"}]},"717c31a2-4":{"id":"/src/stores/page.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-5"},"imported":[{"uid":"717c31a2-144"},{"uid":"717c31a2-145"},{"uid":"717c31a2-2"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-72"},{"uid":"717c31a2-68"}]},"717c31a2-6":{"id":"/src/components/Page/PageTitle.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-7"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-10"}]},"717c31a2-8":{"id":"\u0000plugin-vue:export-helper","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-9"},"imported":[],"importedBy":[{"uid":"717c31a2-10"},{"uid":"717c31a2-14"},{"uid":"717c31a2-18"},{"uid":"717c31a2-24"},{"uid":"717c31a2-28"},{"uid":"717c31a2-34"},{"uid":"717c31a2-38"},{"uid":"717c31a2-42"},{"uid":"717c31a2-46"},{"uid":"717c31a2-50"},{"uid":"717c31a2-54"},{"uid":"717c31a2-64"},{"uid":"717c31a2-74"},{"uid":"717c31a2-86"},{"uid":"717c31a2-82"},{"uid":"717c31a2-90"},{"uid":"717c31a2-78"},{"uid":"717c31a2-94"},{"uid":"717c31a2-98"},{"uid":"717c31a2-102"},{"uid":"717c31a2-106"},{"uid":"717c31a2-112"},{"uid":"717c31a2-116"},{"uid":"717c31a2-120"},{"uid":"717c31a2-128"},{"uid":"717c31a2-70"}]},"717c31a2-10":{"id":"/src/components/Page/PageTitle.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-11"},"imported":[{"uid":"717c31a2-6"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-12":{"id":"/src/components/Page/PageSubtitle.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-13"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-14"}]},"717c31a2-14":{"id":"/src/components/Page/PageSubtitle.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-15"},"imported":[{"uid":"717c31a2-12"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-16":{"id":"/src/components/Page/InnerLeftMenu.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-17"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-146"}],"importedBy":[{"uid":"717c31a2-18"}]},"717c31a2-18":{"id":"/src/components/Page/InnerLeftMenu.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-19"},"imported":[{"uid":"717c31a2-16"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-20":{"id":"/node_modules/@mdi/js/mdi.js","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-21"},"imported":[],"importedBy":[{"uid":"717c31a2-22"},{"uid":"717c31a2-36"},{"uid":"717c31a2-62"},{"uid":"717c31a2-72"},{"uid":"717c31a2-80"},{"uid":"717c31a2-92"},{"uid":"717c31a2-100"},{"uid":"717c31a2-68"}]},"717c31a2-22":{"id":"/src/components/Dialog/CustomDialog.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-23"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-20"}],"importedBy":[{"uid":"717c31a2-24"}]},"717c31a2-24":{"id":"/src/components/Dialog/CustomDialog.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-25"},"imported":[{"uid":"717c31a2-22"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-72"}]},"717c31a2-26":{"id":"/src/components/Avatar/AccountAvatar.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-27"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-28"}]},"717c31a2-28":{"id":"/src/components/Avatar/AccountAvatar.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-29"},"imported":[{"uid":"717c31a2-26"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-36"},{"uid":"717c31a2-48"},{"uid":"717c31a2-72"}]},"717c31a2-30":{"id":"/src/utils/StringUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-31"},"imported":[],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-32"},{"uid":"717c31a2-36"},{"uid":"717c31a2-62"}]},"717c31a2-32":{"id":"/src/components/Avatar/UserAvatar.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-33"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-30"}],"importedBy":[{"uid":"717c31a2-34"}]},"717c31a2-34":{"id":"/src/components/Avatar/UserAvatar.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-35"},"imported":[{"uid":"717c31a2-32"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-36"},{"uid":"717c31a2-48"},{"uid":"717c31a2-62"},{"uid":"717c31a2-72"}]},"717c31a2-36":{"id":"/src/components/Nav/UserMenu.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-37"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-34"},{"uid":"717c31a2-28"},{"uid":"717c31a2-30"},{"uid":"717c31a2-20"},{"uid":"717c31a2-147"}],"importedBy":[{"uid":"717c31a2-38"}]},"717c31a2-38":{"id":"/src/components/Nav/UserMenu.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-39"},"imported":[{"uid":"717c31a2-36"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-40":{"id":"/src/components/Dialog/ErrorDialog.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-41"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-147"}],"importedBy":[{"uid":"717c31a2-42"}]},"717c31a2-42":{"id":"/src/components/Dialog/ErrorDialog.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-43"},"imported":[{"uid":"717c31a2-40"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-44":{"id":"/src/components/Form/FieldRow.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-45"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-46"}]},"717c31a2-46":{"id":"/src/components/Form/FieldRow.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-47"},"imported":[{"uid":"717c31a2-44"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-48":{"id":"/src/components/Form/ColorPicker.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-49"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-34"},{"uid":"717c31a2-28"}],"importedBy":[{"uid":"717c31a2-50"}]},"717c31a2-50":{"id":"/src/components/Form/ColorPicker.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-51"},"imported":[{"uid":"717c31a2-48"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-72"}]},"717c31a2-52":{"id":"/src/components/Form/FieldLabel.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-53"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-54"}]},"717c31a2-54":{"id":"/src/components/Form/FieldLabel.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-55"},"imported":[{"uid":"717c31a2-52"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-72"}]},"717c31a2-56":{"id":"/src/utils/LazyUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-57"},"imported":[],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-60"}]},"717c31a2-58":{"id":"/src/utils/ArrayUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-59"},"imported":[],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-60"}]},"717c31a2-60":{"id":"/src/utils/LangUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-61"},"imported":[{"uid":"717c31a2-56"},{"uid":"717c31a2-58"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-62"},{"uid":"717c31a2-72"}]},"717c31a2-62":{"id":"/src/components/Profile/ProfileInfo.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-63"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-34"},{"uid":"717c31a2-147"},{"uid":"717c31a2-60"},{"uid":"717c31a2-30"},{"uid":"717c31a2-20"}],"importedBy":[{"uid":"717c31a2-64"}]},"717c31a2-64":{"id":"/src/components/Profile/ProfileInfo.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-65"},"imported":[{"uid":"717c31a2-62"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-66":{"id":"/src/utils/FormUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-67"},"imported":[],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-72"}]},"717c31a2-68":{"id":"/src/components/Form/FilesUploadControl.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-69"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-20"},{"uid":"717c31a2-4"}],"importedBy":[{"uid":"717c31a2-70"}]},"717c31a2-70":{"id":"/src/components/Form/FilesUploadControl.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-71"},"imported":[{"uid":"717c31a2-68"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-72"}]},"717c31a2-72":{"id":"/src/components/Profile/ProfileEditDialog.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-73"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-147"},{"uid":"717c31a2-20"},{"uid":"717c31a2-50"},{"uid":"717c31a2-34"},{"uid":"717c31a2-28"},{"uid":"717c31a2-24"},{"uid":"717c31a2-60"},{"uid":"717c31a2-66"},{"uid":"717c31a2-4"},{"uid":"717c31a2-54"},{"uid":"717c31a2-70"}],"importedBy":[{"uid":"717c31a2-74"}]},"717c31a2-74":{"id":"/src/components/Profile/ProfileEditDialog.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-75"},"imported":[{"uid":"717c31a2-72"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-76":{"id":"/src/components/DataTable/RowActionsButton.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-77"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-78"}]},"717c31a2-78":{"id":"/src/components/DataTable/RowActionsButton.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-79"},"imported":[{"uid":"717c31a2-76"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-84"},{"uid":"717c31a2-80"},{"uid":"717c31a2-88"}]},"717c31a2-80":{"id":"/src/components/DataTable/layouts/MobileLayoutItem.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-81"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-78"},{"uid":"717c31a2-20"}],"importedBy":[{"uid":"717c31a2-82"}]},"717c31a2-82":{"id":"/src/components/DataTable/layouts/MobileLayoutItem.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-83"},"imported":[{"uid":"717c31a2-80"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-84"}]},"717c31a2-84":{"id":"/src/components/DataTable/layouts/MobileLayout.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-85"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-82"},{"uid":"717c31a2-78"}],"importedBy":[{"uid":"717c31a2-86"}]},"717c31a2-86":{"id":"/src/components/DataTable/layouts/MobileLayout.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-87"},"imported":[{"uid":"717c31a2-84"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-88":{"id":"/src/components/DataTable/layouts/DesktopLayout.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-89"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-78"},{"uid":"717c31a2-147"}],"importedBy":[{"uid":"717c31a2-90"}]},"717c31a2-90":{"id":"/src/components/DataTable/layouts/DesktopLayout.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-91"},"imported":[{"uid":"717c31a2-88"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-92":{"id":"/src/components/DataTable/ColumnSelector.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-93"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-20"}],"importedBy":[{"uid":"717c31a2-94"}]},"717c31a2-94":{"id":"/src/components/DataTable/ColumnSelector.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-95"},"imported":[{"uid":"717c31a2-92"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-96":{"id":"/src/components/DataTable/filters/EmptyFilter.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-97"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-98"}]},"717c31a2-98":{"id":"/src/components/DataTable/filters/EmptyFilter.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-99"},"imported":[{"uid":"717c31a2-96"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-100":{"id":"/src/components/DataTable/filters/SelectFilter.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-101"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-20"},{"uid":"717c31a2-147"}],"importedBy":[{"uid":"717c31a2-102"}]},"717c31a2-102":{"id":"/src/components/DataTable/filters/SelectFilter.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-103"},"imported":[{"uid":"717c31a2-100"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-104":{"id":"/src/components/DataTable/DataTableFilters.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-105"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-106"}]},"717c31a2-106":{"id":"/src/components/DataTable/DataTableFilters.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-107"},"imported":[{"uid":"717c31a2-104"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-108":{"id":"/src/types/User.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-109"},"imported":[],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-110"}]},"717c31a2-110":{"id":"/src/components/Workspace/UserStatusChip.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-111"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-147"},{"uid":"717c31a2-108"}],"importedBy":[{"uid":"717c31a2-112"}]},"717c31a2-112":{"id":"/src/components/Workspace/UserStatusChip.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-113"},"imported":[{"uid":"717c31a2-110"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-114":{"id":"/src/components/Dialog/ConfirmPopup.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-115"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-116"}]},"717c31a2-116":{"id":"/src/components/Dialog/ConfirmPopup.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-117"},"imported":[{"uid":"717c31a2-114"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-118":{"id":"/src/components/DataTable/filters/SearchFilter.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-119"},"imported":[{"uid":"717c31a2-145"}],"importedBy":[{"uid":"717c31a2-120"}]},"717c31a2-120":{"id":"/src/components/DataTable/filters/SearchFilter.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-121"},"imported":[{"uid":"717c31a2-118"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-122":{"id":"/src/utils/CultureUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-123"},"imported":[],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-124"}]},"717c31a2-124":{"id":"/src/utils/FormatUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-125"},"imported":[{"uid":"717c31a2-122"},{"uid":"717c31a2-2"}],"importedBy":[{"uid":"717c31a2-142"},{"uid":"717c31a2-126"}]},"717c31a2-126":{"id":"/src/components/DataTable/DataTableTotals.vue?vue&type=script&lang.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-127"},"imported":[{"uid":"717c31a2-145"},{"uid":"717c31a2-124"}],"importedBy":[{"uid":"717c31a2-128"}]},"717c31a2-128":{"id":"/src/components/DataTable/DataTableTotals.vue","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-129"},"imported":[{"uid":"717c31a2-126"},{"uid":"717c31a2-145"},{"uid":"717c31a2-8"}],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-130":{"id":"/src/utils/HtmlUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-131"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-132":{"id":"/src/utils/ObjectUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-133"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-134":{"id":"/src/utils/CookieUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-135"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-136":{"id":"/src/utils/NavUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-137"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-138":{"id":"/src/utils/ApiUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-139"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-140":{"id":"/src/components/DataTable/DataTableUtil.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-141"},"imported":[],"importedBy":[{"uid":"717c31a2-142"}]},"717c31a2-142":{"id":"/src/index.ts","moduleParts":{"alytus-ff.umd.cjs":"717c31a2-143"},"imported":[{"uid":"717c31a2-0"},{"uid":"717c31a2-4"},{"uid":"717c31a2-10"},{"uid":"717c31a2-14"},{"uid":"717c31a2-18"},{"uid":"717c31a2-24"},{"uid":"717c31a2-28"},{"uid":"717c31a2-34"},{"uid":"717c31a2-38"},{"uid":"717c31a2-42"},{"uid":"717c31a2-46"},{"uid":"717c31a2-50"},{"uid":"717c31a2-54"},{"uid":"717c31a2-64"},{"uid":"717c31a2-74"},{"uid":"717c31a2-86"},{"uid":"717c31a2-82"},{"uid":"717c31a2-90"},{"uid":"717c31a2-78"},{"uid":"717c31a2-94"},{"uid":"717c31a2-98"},{"uid":"717c31a2-102"},{"uid":"717c31a2-106"},{"uid":"717c31a2-112"},{"uid":"717c31a2-116"},{"uid":"717c31a2-120"},{"uid":"717c31a2-128"},{"uid":"717c31a2-70"},{"uid":"717c31a2-130"},{"uid":"717c31a2-132"},{"uid":"717c31a2-134"},{"uid":"717c31a2-30"},{"uid":"717c31a2-136"},{"uid":"717c31a2-60"},{"uid":"717c31a2-138"},{"uid":"717c31a2-122"},{"uid":"717c31a2-124"},{"uid":"717c31a2-58"},{"uid":"717c31a2-56"},{"uid":"717c31a2-66"},{"uid":"717c31a2-108"},{"uid":"717c31a2-140"}],"importedBy":[],"isEntry":true},"717c31a2-144":{"id":"pinia","moduleParts":{},"imported":[],"importedBy":[{"uid":"717c31a2-4"}],"isExternal":true},"717c31a2-145":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"717c31a2-4"},{"uid":"717c31a2-10"},{"uid":"717c31a2-14"},{"uid":"717c31a2-18"},{"uid":"717c31a2-24"},{"uid":"717c31a2-28"},{"uid":"717c31a2-34"},{"uid":"717c31a2-38"},{"uid":"717c31a2-42"},{"uid":"717c31a2-46"},{"uid":"717c31a2-50"},{"uid":"717c31a2-54"},{"uid":"717c31a2-64"},{"uid":"717c31a2-74"},{"uid":"717c31a2-86"},{"uid":"717c31a2-82"},{"uid":"717c31a2-90"},{"uid":"717c31a2-78"},{"uid":"717c31a2-94"},{"uid":"717c31a2-98"},{"uid":"717c31a2-102"},{"uid":"717c31a2-106"},{"uid":"717c31a2-112"},{"uid":"717c31a2-116"},{"uid":"717c31a2-120"},{"uid":"717c31a2-128"},{"uid":"717c31a2-70"},{"uid":"717c31a2-2"},{"uid":"717c31a2-6"},{"uid":"717c31a2-12"},{"uid":"717c31a2-16"},{"uid":"717c31a2-22"},{"uid":"717c31a2-26"},{"uid":"717c31a2-32"},{"uid":"717c31a2-36"},{"uid":"717c31a2-40"},{"uid":"717c31a2-44"},{"uid":"717c31a2-48"},{"uid":"717c31a2-52"},{"uid":"717c31a2-62"},{"uid":"717c31a2-72"},{"uid":"717c31a2-84"},{"uid":"717c31a2-80"},{"uid":"717c31a2-88"},{"uid":"717c31a2-76"},{"uid":"717c31a2-92"},{"uid":"717c31a2-96"},{"uid":"717c31a2-100"},{"uid":"717c31a2-104"},{"uid":"717c31a2-110"},{"uid":"717c31a2-114"},{"uid":"717c31a2-118"},{"uid":"717c31a2-126"},{"uid":"717c31a2-68"}],"isExternal":true},"717c31a2-146":{"id":"vue-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"717c31a2-16"}],"isExternal":true},"717c31a2-147":{"id":"vue-i18n","moduleParts":{},"imported":[],"importedBy":[{"uid":"717c31a2-36"},{"uid":"717c31a2-40"},{"uid":"717c31a2-62"},{"uid":"717c31a2-72"},{"uid":"717c31a2-88"},{"uid":"717c31a2-100"},{"uid":"717c31a2-110"}],"isExternal":true}},"env":{"rollup":"4.53.3"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
|
@@ -80,6 +80,7 @@ export type RowActions = {
|
|
|
80
80
|
action?: string;
|
|
81
81
|
title?: string;
|
|
82
82
|
actions?: RowAction[];
|
|
83
|
+
visible?: (item: Dict) => boolean;
|
|
83
84
|
};
|
|
84
85
|
export type FetchMethodFx = (params: Dict) => Promise<FetchItemsResp<any>>;
|
|
85
86
|
export type GetFilterComponentFx = (filter: Filter) => Component;
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export default defineComponent({
|
|
|
36
36
|
setup(props) {
|
|
37
37
|
const actions = computed(() => props.rowActions.actions?.filter((x: Dict) => x.visible === undefined || x.visible(props.item)) ?? [])
|
|
38
38
|
const icon = computed(() => typeof props.rowActions.icon === "function" ? props.rowActions.icon(props.item) : props.rowActions.icon)
|
|
39
|
-
const oneAction = computed(() => !props.rowActions.actions && props.rowActions.action ? props.rowActions : null)
|
|
39
|
+
const oneAction = computed(() => !props.rowActions.actions && props.rowActions.action && (props.rowActions.visible === undefined || props.rowActions.visible(props.item)) ? props.rowActions : null)
|
|
40
40
|
return {actions, icon, oneAction}
|
|
41
41
|
}
|
|
42
42
|
})
|