alytus-ff 0.1.32 → 0.1.33

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
@@ -1,7 +1,7 @@
1
- import { defineComponent as L, createElementBlock as b, openBlock as m, createElementVNode as f, createCommentVNode as k, toDisplayString as p, renderSlot as D, normalizeClass as H, resolveComponent as a, createBlock as h, withCtx as r, Fragment as z, renderList as F, createVNode as l, createTextVNode as A, computed as U, ref as S, normalizeProps as Y, guardReactiveProps as K, mergeProps as P } from "vue";
2
- import { useRouter as j, useRoute as J } from "vue-router";
3
- import { useI18n as N } from "vue-i18n";
4
- const W = L({
1
+ import { defineComponent as C, createElementBlock as g, openBlock as r, createElementVNode as y, createCommentVNode as k, toDisplayString as _, renderSlot as T, normalizeClass as D, resolveComponent as l, createBlock as $, withCtx as o, Fragment as V, renderList as S, createVNode as s, createTextVNode as w, computed as L, ref as E, normalizeProps as K, guardReactiveProps as J, mergeProps as P, resolveDynamicComponent as I, normalizeStyle as W } from "vue";
2
+ import { useRouter as Q, useRoute as X } from "vue-router";
3
+ import { useI18n as B } from "vue-i18n";
4
+ const x = C({
5
5
  name: "PageTitle",
6
6
  props: {
7
7
  title: {
@@ -13,27 +13,27 @@ const W = L({
13
13
  default: null
14
14
  }
15
15
  }
16
- }), C = (e, t) => {
16
+ }), H = (e, t) => {
17
17
  const n = e.__vccOpts || e;
18
- for (const [s, o] of t)
19
- n[s] = o;
18
+ for (const [a, u] of t)
19
+ n[a] = u;
20
20
  return n;
21
- }, Q = { class: "mt-6 mb-3 ff-page-title" }, X = { class: "text-h5 ff-title" }, x = {
21
+ }, ee = { class: "mt-6 mb-3 ff-page-title" }, te = { class: "text-h5 ff-title" }, ne = {
22
22
  key: 0,
23
23
  class: "text-body-2 ff-description"
24
24
  };
25
- function ee(e, t, n, s, o, i) {
26
- return m(), b("div", Q, [
27
- f("div", null, [
28
- f("span", X, p(e.title), 1),
29
- e.description ? (m(), b("div", x, p(e.description), 1)) : k("", !0)
25
+ function oe(e, t, n, a, u, d) {
26
+ return r(), g("div", ee, [
27
+ y("div", null, [
28
+ y("span", te, _(e.title), 1),
29
+ e.description ? (r(), g("div", ne, _(e.description), 1)) : k("", !0)
30
30
  ]),
31
- f("div", null, [
32
- D(e.$slots, "buttons")
31
+ y("div", null, [
32
+ T(e.$slots, "buttons")
33
33
  ])
34
34
  ]);
35
35
  }
36
- const bt = /* @__PURE__ */ C(W, [["render", ee]]), te = L({
36
+ const Qt = /* @__PURE__ */ H(x, [["render", oe]]), re = C({
37
37
  name: "PageSubtitle",
38
38
  props: {
39
39
  subtitle: {
@@ -45,18 +45,18 @@ const bt = /* @__PURE__ */ C(W, [["render", ee]]), te = L({
45
45
  default: !1
46
46
  }
47
47
  }
48
- }), ne = { class: "text-h6 font-weight-bold" };
49
- function re(e, t, n, s, o, i) {
50
- return m(), b("div", {
51
- class: H([e.firstPosition ? "mt-0" : "", "ff-page-subtitle"])
48
+ }), se = { class: "text-h6 font-weight-bold" };
49
+ function le(e, t, n, a, u, d) {
50
+ return r(), g("div", {
51
+ class: D([e.firstPosition ? "mt-0" : "", "ff-page-subtitle"])
52
52
  }, [
53
- f("div", ne, p(e.subtitle), 1),
54
- f("div", null, [
55
- D(e.$slots, "buttons")
53
+ y("div", se, _(e.subtitle), 1),
54
+ y("div", null, [
55
+ T(e.$slots, "buttons")
56
56
  ])
57
57
  ], 2);
58
58
  }
59
- const Mt = /* @__PURE__ */ C(te, [["render", re]]), oe = L({
59
+ const Xt = /* @__PURE__ */ H(re, [["render", le]]), ae = C({
60
60
  name: "InnerLeftMenu",
61
61
  components: {},
62
62
  props: {
@@ -66,22 +66,22 @@ const Mt = /* @__PURE__ */ C(te, [["render", re]]), oe = L({
66
66
  }
67
67
  },
68
68
  setup() {
69
- const e = j(), t = J();
70
- return { goTo: (o) => e.push(o), isActive: (o) => t.fullPath.startsWith(o) };
69
+ const e = Q(), t = X();
70
+ return { goTo: (u) => e.push(u), isActive: (u) => t.fullPath.startsWith(u) };
71
71
  }
72
72
  });
73
- function le(e, t, n, s, o, i) {
74
- const u = a("v-list-item-title"), d = a("v-list-item"), g = a("v-list");
75
- return m(), h(g, { class: "inner-left-menu mobile-horizontal" }, {
76
- default: r(() => [
77
- (m(!0), b(z, null, F(e.items, (c) => (m(), h(d, {
78
- active: e.isActive(c.link),
79
- onClick: (v) => e.goTo(c.link)
73
+ function ie(e, t, n, a, u, d) {
74
+ const c = l("v-list-item-title"), f = l("v-list-item"), v = l("v-list");
75
+ return r(), $(v, { class: "inner-left-menu mobile-horizontal" }, {
76
+ default: o(() => [
77
+ (r(!0), g(V, null, S(e.items, (i) => (r(), $(f, {
78
+ active: e.isActive(i.link),
79
+ onClick: (p) => e.goTo(i.link)
80
80
  }, {
81
- default: r(() => [
82
- l(u, null, {
83
- default: r(() => [
84
- A(p(c.text), 1)
81
+ default: o(() => [
82
+ s(c, null, {
83
+ default: o(() => [
84
+ w(_(i.text), 1)
85
85
  ]),
86
86
  _: 2
87
87
  }, 1024)
@@ -92,13 +92,13 @@ function le(e, t, n, s, o, i) {
92
92
  _: 1
93
93
  });
94
94
  }
95
- const Lt = /* @__PURE__ */ C(oe, [["render", le]]);
96
- var se = "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", ae = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", ie = "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", ue = "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", ce = "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", de = "M7,10L12,15L17,10H7Z", me = "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", fe = "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";
97
- const pe = L({
95
+ const xt = /* @__PURE__ */ H(ae, [["render", ie]]);
96
+ 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", de = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", ce = "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", me = "M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z", pe = "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", fe = "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", ge = "M7,10L12,15L17,10H7Z", ve = "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", _e = "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";
97
+ const ye = C({
98
98
  name: "CustomDialog",
99
99
  methods: {
100
100
  mdiClose() {
101
- return ie;
101
+ return ce;
102
102
  }
103
103
  },
104
104
  props: {
@@ -127,45 +127,45 @@ const pe = L({
127
127
  default: !1
128
128
  }
129
129
  }
130
- }), ve = { class: "close-btn" };
131
- function _e(e, t, n, s, o, i) {
132
- const u = a("v-btn"), d = a("v-card-text"), g = a("v-spacer"), c = a("v-card-actions"), v = a("v-card"), M = a("v-dialog");
133
- return m(), h(M, {
130
+ }), $e = { class: "close-btn" };
131
+ function he(e, t, n, a, u, d) {
132
+ const c = l("v-btn"), f = l("v-card-text"), v = l("v-spacer"), i = l("v-card-actions"), p = l("v-card"), M = l("v-dialog");
133
+ return r(), $(M, {
134
134
  "model-value": e.value,
135
135
  "max-width": "960",
136
136
  persistent: e.persistent,
137
137
  fullscreen: e.$vuetify.display.smAndDown && !e.noFullScreen,
138
- class: H([e.fullHeight ? "ff-dialog" : "ff-dialog ff-full-height"]),
138
+ class: D([e.fullHeight ? "ff-dialog" : "ff-dialog ff-full-height"]),
139
139
  "content-class": e.fullHeight ? "ff-full-height" : "",
140
- "onUpdate:modelValue": t[1] || (t[1] = (_) => e.$emit("close"))
140
+ "onUpdate:modelValue": t[1] || (t[1] = (h) => e.$emit("close"))
141
141
  }, {
142
- default: r(() => [
143
- D(e.$slots, "card", {}, () => [
144
- l(v, {
142
+ default: o(() => [
143
+ T(e.$slots, "card", {}, () => [
144
+ s(p, {
145
145
  title: e.title,
146
- class: H(e.fullHeight ? "ff-full-height" : "")
146
+ class: D(e.fullHeight ? "ff-full-height" : "")
147
147
  }, {
148
- append: r(() => [
149
- f("div", ve, [
150
- l(u, {
148
+ append: o(() => [
149
+ y("div", $e, [
150
+ s(c, {
151
151
  variant: "text",
152
152
  icon: e.mdiClose(),
153
- onClick: t[0] || (t[0] = (_) => e.$emit("close"))
153
+ onClick: t[0] || (t[0] = (h) => e.$emit("close"))
154
154
  }, null, 8, ["icon"])
155
155
  ])
156
156
  ]),
157
- default: r(() => [
158
- l(d, null, {
159
- default: r(() => [
160
- D(e.$slots, "default")
157
+ default: o(() => [
158
+ s(f, null, {
159
+ default: o(() => [
160
+ T(e.$slots, "default")
161
161
  ]),
162
162
  _: 3
163
163
  }),
164
- e.noFooter ? k("", !0) : (m(), h(c, { key: 0 }, {
165
- default: r(() => [
166
- D(e.$slots, "left-footer"),
167
- l(g),
168
- D(e.$slots, "footer")
164
+ e.noFooter ? k("", !0) : (r(), $(i, { key: 0 }, {
165
+ default: o(() => [
166
+ T(e.$slots, "left-footer"),
167
+ s(v),
168
+ T(e.$slots, "footer")
169
169
  ]),
170
170
  _: 3
171
171
  }))
@@ -177,7 +177,7 @@ function _e(e, t, n, s, o, i) {
177
177
  _: 3
178
178
  }, 8, ["model-value", "persistent", "fullscreen", "class", "content-class"]);
179
179
  }
180
- const ge = /* @__PURE__ */ C(pe, [["render", _e]]), ye = L({
180
+ const be = /* @__PURE__ */ H(ye, [["render", he]]), Me = C({
181
181
  name: "AccountAvatar",
182
182
  props: {
183
183
  item: {
@@ -190,19 +190,19 @@ const ge = /* @__PURE__ */ C(pe, [["render", _e]]), ye = L({
190
190
  }
191
191
  }
192
192
  });
193
- function $e(e, t, n, s, o, i) {
194
- const u = a("v-avatar");
195
- return m(), h(u, {
196
- class: H(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
193
+ function ke(e, t, n, a, u, d) {
194
+ const c = l("v-avatar");
195
+ return r(), $(c, {
196
+ class: D(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
197
197
  size: e.size
198
198
  }, {
199
- default: r(() => [
200
- A(p(e.item.initials), 1)
199
+ default: o(() => [
200
+ w(_(e.item.initials), 1)
201
201
  ]),
202
202
  _: 1
203
203
  }, 8, ["class", "size"]);
204
204
  }
205
- const G = /* @__PURE__ */ C(ye, [["render", $e]]), O = (e) => e.surname ? `${e.name} ${e.surname}` : e.name, Ct = (e) => e == null ? "" : e.name ? e.surname ? `${e.name.trim().substring(0, 1).toUpperCase()}${e.surname.trim().substring(0, 1).toUpperCase()}` : e.name.trim().substring(0, 1).toUpperCase() : e.surname ? e.surname.trim().substring(0, 1).toUpperCase() : "", he = L({
205
+ const Z = /* @__PURE__ */ H(Me, [["render", ke]]), q = (e) => e.surname ? `${e.name} ${e.surname}` : e.name, en = (e) => e == null ? "" : e.name ? e.surname ? `${e.name.trim().substring(0, 1).toUpperCase()}${e.surname.trim().substring(0, 1).toUpperCase()}` : e.name.trim().substring(0, 1).toUpperCase() : e.surname ? e.surname.trim().substring(0, 1).toUpperCase() : "", Ae = C({
206
206
  name: "UserAvatar",
207
207
  props: {
208
208
  user: {
@@ -219,43 +219,43 @@ const G = /* @__PURE__ */ C(ye, [["render", $e]]), O = (e) => e.surname ? `${e.n
219
219
  }
220
220
  },
221
221
  setup(e) {
222
- return { fullName: U(() => O(e.user)) };
222
+ return { fullName: L(() => q(e.user)) };
223
223
  }
224
- }), be = { key: 1 };
225
- function Me(e, t, n, s, o, i) {
226
- const u = a("v-img"), d = a("v-avatar");
227
- return m(), h(d, {
224
+ }), Le = { key: 1 };
225
+ function Ce(e, t, n, a, u, d) {
226
+ const c = l("v-img"), f = l("v-avatar");
227
+ return r(), $(f, {
228
228
  color: e.user.avatar_thumb ? "light_grey_bg" : e.user.color ?? "primary",
229
- class: H(`avatar-${e.size}-${e.user.initials.length >= 3 ? "l" : "s"}`),
229
+ class: D(`avatar-${e.size}-${e.user.initials.length >= 3 ? "l" : "s"}`),
230
230
  size: e.size
231
231
  }, {
232
- default: r(() => [
233
- e.user.avatar_thumb ? (m(), h(u, {
232
+ default: o(() => [
233
+ e.user.avatar_thumb ? (r(), $(c, {
234
234
  key: 0,
235
235
  alt: e.fullName,
236
236
  src: `${e.baseUrl}/${e.user.avatar_thumb}`
237
- }, null, 8, ["alt", "src"])) : (m(), b("span", be, p(e.user.initials), 1))
237
+ }, null, 8, ["alt", "src"])) : (r(), g("span", Le, _(e.user.initials), 1))
238
238
  ]),
239
239
  _: 1
240
240
  }, 8, ["color", "class", "size"]);
241
241
  }
242
- const q = /* @__PURE__ */ C(he, [["render", Me]]), Le = L({
242
+ const F = /* @__PURE__ */ H(Ae, [["render", Ce]]), He = C({
243
243
  name: "UserMenu",
244
- components: { AccountAvatar: G, UserAvatar: q },
244
+ components: { AccountAvatar: Z, UserAvatar: F },
245
245
  methods: {
246
246
  mdiLogout() {
247
- return ce;
247
+ return fe;
248
248
  },
249
249
  mdiAccount() {
250
- return se;
250
+ return ue;
251
251
  },
252
252
  mdiMenuDown() {
253
- return de;
253
+ return ge;
254
254
  },
255
255
  mdiCheck() {
256
- return ae;
256
+ return de;
257
257
  },
258
- formatFullName: O
258
+ formatFullName: q
259
259
  },
260
260
  props: {
261
261
  currentUser: {
@@ -295,60 +295,60 @@ const q = /* @__PURE__ */ C(he, [["render", Me]]), Le = L({
295
295
  "log-out"
296
296
  ],
297
297
  setup(e, { emit: t }) {
298
- const { t: n } = N(), s = S(!1), o = S(!1), i = U(() => e.currentUser != null ? O(e.currentUser) : "-"), u = U(() => e.currentAccounts.map((_) => _.id)), d = U(() => e.currentAccounts.length === 1 ? O(e.currentAccounts[0]) : `${e.currentAccounts.length} ${n("aff.workspaces")}`);
299
- return { isOpen: s, userName: i, langMenu: o, accountIds: u, accountTitle: d, selectAccount: (_) => {
300
- e.multipleAccounts ? t(u.value.indexOf(_.id) >= 0 ? "unselect-account" : "select-account", _) : t("select-account", _);
298
+ const { t: n } = B(), a = E(!1), u = E(!1), d = L(() => e.currentUser != null ? q(e.currentUser) : "-"), c = L(() => e.currentAccounts.map((h) => h.id)), f = L(() => e.currentAccounts.length === 1 ? q(e.currentAccounts[0]) : `${e.currentAccounts.length} ${n("aff.workspaces")}`);
299
+ return { isOpen: a, userName: d, langMenu: u, accountIds: c, accountTitle: f, selectAccount: (h) => {
300
+ e.multipleAccounts ? t(c.value.indexOf(h.id) >= 0 ? "unselect-account" : "select-account", h) : t("select-account", h);
301
301
  }, openProfile: () => {
302
- t("open-profile"), s.value = !1;
303
- }, switchLang: (_) => {
304
- t("switch-lang", _), o.value = !1;
302
+ t("open-profile"), a.value = !1;
303
+ }, switchLang: (h) => {
304
+ t("switch-lang", h), u.value = !1;
305
305
  }, logOut: () => {
306
- t("log-out"), s.value = !1;
306
+ t("log-out"), a.value = !1;
307
307
  } };
308
308
  }
309
- }), Ce = { class: "ff-user-btn-text" }, Ae = { class: "name" }, ke = { class: "comp" }, Ue = { class: "as-avatar" }, Se = ["src"], De = ["src"], He = { class: "as-avatar" }, Ee = { class: "as-avatar" };
310
- function Ve(e, t, n, s, o, i) {
311
- const u = a("UserAvatar"), d = a("v-btn"), g = a("v-list-subheader"), c = a("v-list-item"), v = a("AccountAvatar"), M = a("v-list-item-title"), _ = a("v-icon"), T = a("v-list"), V = a("v-menu"), w = a("v-card-text"), B = a("v-card");
312
- return m(), h(V, {
309
+ }), we = { class: "ff-user-btn-text" }, Ve = { class: "name" }, Se = { class: "comp" }, Pe = { class: "as-avatar" }, Ue = ["src"], De = ["src"], Ee = { class: "as-avatar" }, Te = { class: "as-avatar" };
310
+ function ze(e, t, n, a, u, d) {
311
+ const c = l("UserAvatar"), f = l("v-btn"), v = l("v-list-subheader"), i = l("v-list-item"), p = l("AccountAvatar"), M = l("v-list-item-title"), h = l("v-icon"), m = l("v-list"), U = l("v-menu"), O = l("v-card-text"), R = l("v-card");
312
+ return r(), $(U, {
313
313
  modelValue: e.isOpen,
314
- "onUpdate:modelValue": t[2] || (t[2] = (y) => e.isOpen = y),
314
+ "onUpdate:modelValue": t[2] || (t[2] = (b) => e.isOpen = b),
315
315
  "close-on-content-click": !1
316
316
  }, {
317
- activator: r(({ props: y }) => [
318
- l(d, P(y, { class: "ff-user-btn" }), {
319
- default: r(() => [
320
- l(u, {
317
+ activator: o(({ props: b }) => [
318
+ s(f, P(b, { class: "ff-user-btn" }), {
319
+ default: o(() => [
320
+ s(c, {
321
321
  size: 32,
322
322
  user: e.currentUser,
323
323
  "base-url": e.baseUrl + "/avatars"
324
324
  }, null, 8, ["user", "base-url"]),
325
- f("div", Ce, [
326
- f("div", Ae, p(e.userName), 1),
327
- f("div", ke, p(e.accountTitle), 1)
325
+ y("div", we, [
326
+ y("div", Ve, _(e.userName), 1),
327
+ y("div", Se, _(e.accountTitle), 1)
328
328
  ])
329
329
  ]),
330
330
  _: 2
331
331
  }, 1040)
332
332
  ]),
333
- default: r(() => [
334
- l(B, { class: "ff-user-manu-card" }, {
335
- default: r(() => [
336
- l(w, { class: "pa-0" }, {
337
- default: r(() => [
338
- l(T, null, {
339
- default: r(() => [
340
- l(g, null, {
341
- default: r(() => [
342
- A(p(e.$t("aff.Logged in as")) + ":", 1)
333
+ default: o(() => [
334
+ s(R, { class: "ff-user-manu-card" }, {
335
+ default: o(() => [
336
+ s(O, { class: "pa-0" }, {
337
+ default: o(() => [
338
+ s(m, null, {
339
+ default: o(() => [
340
+ s(v, null, {
341
+ default: o(() => [
342
+ w(_(e.$t("aff.Logged in as")) + ":", 1)
343
343
  ]),
344
344
  _: 1
345
345
  }),
346
- l(c, {
346
+ s(i, {
347
347
  title: e.userName,
348
348
  subtitle: e.currentUser?.email ?? ""
349
349
  }, {
350
- prepend: r(() => [
351
- l(u, {
350
+ prepend: o(() => [
351
+ s(c, {
352
352
  size: 32,
353
353
  user: e.currentUser,
354
354
  "base-url": e.baseUrl + "/avatars"
@@ -356,78 +356,78 @@ function Ve(e, t, n, s, o, i) {
356
356
  ]),
357
357
  _: 1
358
358
  }, 8, ["title", "subtitle"]),
359
- l(g, null, {
360
- default: r(() => [
361
- A(p(e.$t("aff.Choose active company")) + ":", 1)
359
+ s(v, null, {
360
+ default: o(() => [
361
+ w(_(e.$t("aff.Choose active company")) + ":", 1)
362
362
  ]),
363
363
  _: 1
364
364
  }),
365
- (m(!0), b(z, null, F(e.accounts, (y) => (m(), h(c, {
366
- key: y.id,
367
- onClick: (R) => e.selectAccount(y)
365
+ (r(!0), g(V, null, S(e.accounts, (b) => (r(), $(i, {
366
+ key: b.id,
367
+ onClick: (N) => e.selectAccount(b)
368
368
  }, {
369
- prepend: r(() => [
370
- l(v, { item: y }, null, 8, ["item"])
369
+ prepend: o(() => [
370
+ s(p, { item: b }, null, 8, ["item"])
371
371
  ]),
372
- append: r(() => [
373
- l(_, {
374
- color: e.accountIds.indexOf(y.id) >= 0 ? "primary" : "white",
372
+ append: o(() => [
373
+ s(h, {
374
+ color: e.accountIds.indexOf(b.id) >= 0 ? "primary" : "white",
375
375
  icon: e.mdiCheck()
376
376
  }, null, 8, ["color", "icon"])
377
377
  ]),
378
- default: r(() => [
379
- l(M, null, {
380
- default: r(() => [
381
- A(p(e.formatFullName(y)), 1)
378
+ default: o(() => [
379
+ s(M, null, {
380
+ default: o(() => [
381
+ w(_(e.formatFullName(b)), 1)
382
382
  ]),
383
383
  _: 2
384
384
  }, 1024)
385
385
  ]),
386
386
  _: 2
387
387
  }, 1032, ["onClick"]))), 128)),
388
- l(g, null, {
389
- default: r(() => [
390
- A(p(e.$t("aff.Actions")) + ":", 1)
388
+ s(v, null, {
389
+ default: o(() => [
390
+ w(_(e.$t("aff.Actions")) + ":", 1)
391
391
  ]),
392
392
  _: 1
393
393
  }),
394
- e.langs.length > 1 ? (m(), h(c, {
394
+ e.langs.length > 1 ? (r(), $(i, {
395
395
  key: 0,
396
396
  "append-icon": e.mdiMenuDown(),
397
- onClick: t[1] || (t[1] = (y) => e.langMenu = !0)
397
+ onClick: t[1] || (t[1] = (b) => e.langMenu = !0)
398
398
  }, {
399
- prepend: r(() => [
400
- f("div", Ue, [
401
- f("img", {
399
+ prepend: o(() => [
400
+ y("div", Pe, [
401
+ y("img", {
402
402
  src: e.currentLang.icon,
403
403
  height: "15",
404
404
  width: "20",
405
405
  alt: ""
406
- }, null, 8, Se)
406
+ }, null, 8, Ue)
407
407
  ])
408
408
  ]),
409
- default: r(() => [
410
- l(M, null, {
411
- default: r(() => [
412
- l(V, {
409
+ default: o(() => [
410
+ s(M, null, {
411
+ default: o(() => [
412
+ s(U, {
413
413
  modelValue: e.langMenu,
414
- "onUpdate:modelValue": t[0] || (t[0] = (y) => e.langMenu = y),
414
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => e.langMenu = b),
415
415
  "close-on-content-click": !1
416
416
  }, {
417
- activator: r(({ props: y }) => [
418
- f("span", Y(K(y)), p(e.currentLang.title), 17)
417
+ activator: o(({ props: b }) => [
418
+ y("span", K(J(b)), _(e.currentLang.title), 17)
419
419
  ]),
420
- default: r(() => [
421
- l(T, null, {
422
- default: r(() => [
423
- (m(!0), b(z, null, F(e.langs, (y) => (m(), h(c, {
424
- key: y.value,
425
- title: y.title,
426
- onClick: (R) => e.switchLang(y)
420
+ default: o(() => [
421
+ s(m, null, {
422
+ default: o(() => [
423
+ (r(!0), g(V, null, S(e.langs, (b) => (r(), $(i, {
424
+ key: b.value,
425
+ title: b.title,
426
+ onClick: (N) => e.switchLang(b)
427
427
  }, {
428
- prepend: r(() => [
429
- f("img", {
430
- src: y.icon,
428
+ prepend: o(() => [
429
+ y("img", {
430
+ src: b.icon,
431
431
  height: "18",
432
432
  width: "24",
433
433
  alt: "",
@@ -448,26 +448,26 @@ function Ve(e, t, n, s, o, i) {
448
448
  ]),
449
449
  _: 1
450
450
  }, 8, ["append-icon"])) : k("", !0),
451
- l(c, {
451
+ s(i, {
452
452
  title: e.$t("aff.Profile settings"),
453
453
  onClick: e.openProfile
454
454
  }, {
455
- prepend: r(() => [
456
- f("div", He, [
457
- l(_, {
455
+ prepend: o(() => [
456
+ y("div", Ee, [
457
+ s(h, {
458
458
  icon: e.mdiAccount()
459
459
  }, null, 8, ["icon"])
460
460
  ])
461
461
  ]),
462
462
  _: 1
463
463
  }, 8, ["title", "onClick"]),
464
- l(c, {
464
+ s(i, {
465
465
  title: e.$t("aff.Log out"),
466
466
  onClick: e.logOut
467
467
  }, {
468
- prepend: r(() => [
469
- f("div", Ee, [
470
- l(_, {
468
+ prepend: o(() => [
469
+ y("div", Te, [
470
+ s(h, {
471
471
  icon: e.mdiLogout()
472
472
  }, null, 8, ["icon"])
473
473
  ])
@@ -487,7 +487,7 @@ function Ve(e, t, n, s, o, i) {
487
487
  _: 1
488
488
  }, 8, ["modelValue"]);
489
489
  }
490
- const At = /* @__PURE__ */ C(Le, [["render", Ve]]), we = L({
490
+ const tn = /* @__PURE__ */ H(He, [["render", ze]]), Oe = C({
491
491
  name: "ErrorDialog",
492
492
  props: {
493
493
  show: {
@@ -509,42 +509,42 @@ const At = /* @__PURE__ */ C(Le, [["render", Ve]]), we = L({
509
509
  },
510
510
  emits: ["close"],
511
511
  setup(e) {
512
- const { t } = N();
513
- return { title: U(() => e.errorTitle ?? t("aff.Error occurred")) };
512
+ const { t } = B();
513
+ return { title: L(() => e.errorTitle ?? t("aff.Error occurred")) };
514
514
  }
515
- }), Pe = ["innerHTML"], Te = { key: 1 };
516
- function Oe(e, t, n, s, o, i) {
517
- const u = a("v-card-text"), d = a("v-spacer"), g = a("v-btn"), c = a("v-card-actions"), v = a("v-card"), M = a("v-dialog");
518
- return m(), h(M, {
515
+ }), qe = ["innerHTML"], Be = { key: 1 };
516
+ function Ie(e, t, n, a, u, d) {
517
+ const c = l("v-card-text"), f = l("v-spacer"), v = l("v-btn"), i = l("v-card-actions"), p = l("v-card"), M = l("v-dialog");
518
+ return r(), $(M, {
519
519
  "max-width": "500",
520
520
  "model-value": e.show,
521
- onClose: t[1] || (t[1] = (_) => e.$emit("close"))
521
+ onClose: t[1] || (t[1] = (h) => e.$emit("close"))
522
522
  }, {
523
- default: r(() => [
524
- l(v, {
523
+ default: o(() => [
524
+ s(p, {
525
525
  title: e.title,
526
526
  theme: "dark"
527
527
  }, {
528
- default: r(() => [
529
- l(u, null, {
530
- default: r(() => [
531
- e.errorDetails ? (m(), b("span", {
528
+ default: o(() => [
529
+ s(c, null, {
530
+ default: o(() => [
531
+ e.errorDetails ? (r(), g("span", {
532
532
  key: 0,
533
533
  innerHTML: e.errorDetails
534
- }, null, 8, Pe)) : k("", !0),
535
- t[2] || (t[2] = A()),
536
- e.errorCode ? (m(), b("span", Te, "(" + p(e.$t("aff.Code")) + ": " + p(e.errorCode) + ")", 1)) : k("", !0)
534
+ }, null, 8, qe)) : k("", !0),
535
+ t[2] || (t[2] = w()),
536
+ e.errorCode ? (r(), g("span", Be, "(" + _(e.$t("aff.Code")) + ": " + _(e.errorCode) + ")", 1)) : k("", !0)
537
537
  ]),
538
538
  _: 1
539
539
  }),
540
- l(c, null, {
541
- default: r(() => [
542
- l(d),
543
- l(g, {
540
+ s(i, null, {
541
+ default: o(() => [
542
+ s(f),
543
+ s(v, {
544
544
  text: e.$t("aff.Close"),
545
545
  color: "primary",
546
546
  variant: "flat",
547
- onClick: t[0] || (t[0] = (_) => e.$emit("close"))
547
+ onClick: t[0] || (t[0] = (h) => e.$emit("close"))
548
548
  }, null, 8, ["text"])
549
549
  ]),
550
550
  _: 1
@@ -556,7 +556,7 @@ function Oe(e, t, n, s, o, i) {
556
556
  _: 1
557
557
  }, 8, ["model-value"]);
558
558
  }
559
- const kt = /* @__PURE__ */ C(we, [["render", Oe]]), ze = L({
559
+ const nn = /* @__PURE__ */ H(Oe, [["render", Ie]]), Fe = C({
560
560
  name: "FieldRow",
561
561
  props: {
562
562
  label: {
@@ -575,62 +575,62 @@ const kt = /* @__PURE__ */ C(we, [["render", Oe]]), ze = L({
575
575
  setup() {
576
576
  return {};
577
577
  }
578
- }), Fe = { class: "lbl-col text-body-2" }, Ne = { class: "lbl" }, qe = ["innerHTML"], Be = { class: "inp-col" }, Re = ["innerHTML"];
579
- function Ie(e, t, n, s, o, i) {
580
- return m(), b("div", {
581
- class: H(["fld-row mobile-margin", e.errorMessage ? "fld-err" : ""])
578
+ }), Re = { class: "lbl-col text-body-2" }, Ne = { class: "lbl" }, je = ["innerHTML"], Ze = { class: "inp-col" }, Ge = ["innerHTML"];
579
+ function Ye(e, t, n, a, u, d) {
580
+ return r(), g("div", {
581
+ class: D(["fld-row mobile-margin", e.errorMessage ? "fld-err" : ""])
582
582
  }, [
583
- f("div", Fe, [
584
- f("div", Ne, p(e.label), 1),
585
- e.description ? (m(), b("div", {
583
+ y("div", Re, [
584
+ y("div", Ne, _(e.label), 1),
585
+ e.description ? (r(), g("div", {
586
586
  key: 0,
587
587
  class: "descr",
588
588
  innerHTML: e.description
589
- }, null, 8, qe)) : k("", !0)
589
+ }, null, 8, je)) : k("", !0)
590
590
  ]),
591
- f("div", Be, [
592
- D(e.$slots, "default", {
591
+ y("div", Ze, [
592
+ T(e.$slots, "default", {
593
593
  hideDetails: !e.errorMessage,
594
594
  errorMessages: e.errorMessage
595
595
  })
596
596
  ]),
597
- e.description ? (m(), b("div", {
597
+ e.description ? (r(), g("div", {
598
598
  key: 0,
599
599
  class: "descr-col text-body-2",
600
600
  innerHTML: e.description
601
- }, null, 8, Re)) : k("", !0)
601
+ }, null, 8, Ge)) : k("", !0)
602
602
  ], 2);
603
603
  }
604
- const Ut = /* @__PURE__ */ C(ze, [["render", Ie]]), Ge = L({
604
+ const on = /* @__PURE__ */ H(Fe, [["render", Ye]]), Ke = C({
605
605
  name: "ColorPicker",
606
- components: { UserAvatar: q, AccountAvatar: G },
606
+ components: { UserAvatar: F, AccountAvatar: Z },
607
607
  setup() {
608
- const e = S(null), t = (() => {
608
+ const e = E(null), t = (() => {
609
609
  const n = [];
610
- for (let s = 1; s <= 48; s++)
611
- n.push(`color-${s}`);
610
+ for (let a = 1; a <= 48; a++)
611
+ n.push(`color-${a}`);
612
612
  return n;
613
613
  })();
614
614
  return { val: e, colors: t };
615
615
  }
616
616
  });
617
- function Ze(e, t, n, s, o, i) {
618
- const u = a("v-avatar"), d = a("v-list-item-title"), g = a("v-list-item"), c = a("v-list"), v = a("v-card-text"), M = a("v-card");
619
- return m(), h(M, { class: "ff-col-pckr" }, {
620
- default: r(() => [
621
- l(v, { style: { width: "305px", padding: "0 8px" } }, {
622
- default: r(() => [
623
- l(c, { style: { width: "289px" } }, {
624
- default: r(() => [
625
- (m(!0), b(z, null, F(e.colors, (_) => (m(), h(g, {
626
- key: _,
627
- onClick: (T) => e.$emit("change", _)
617
+ function Je(e, t, n, a, u, d) {
618
+ const c = l("v-avatar"), f = l("v-list-item-title"), v = l("v-list-item"), i = l("v-list"), p = l("v-card-text"), M = l("v-card");
619
+ return r(), $(M, { class: "ff-col-pckr" }, {
620
+ default: o(() => [
621
+ s(p, { style: { width: "305px", padding: "0 8px" } }, {
622
+ default: o(() => [
623
+ s(i, { style: { width: "289px" } }, {
624
+ default: o(() => [
625
+ (r(!0), g(V, null, S(e.colors, (h) => (r(), $(v, {
626
+ key: h,
627
+ onClick: (m) => e.$emit("change", h)
628
628
  }, {
629
- default: r(() => [
630
- l(d, null, {
631
- default: r(() => [
632
- l(u, {
633
- color: _,
629
+ default: o(() => [
630
+ s(f, null, {
631
+ default: o(() => [
632
+ s(c, {
633
+ color: h,
634
634
  size: "32"
635
635
  }, null, 8, ["color"])
636
636
  ]),
@@ -649,7 +649,7 @@ function Ze(e, t, n, s, o, i) {
649
649
  _: 1
650
650
  });
651
651
  }
652
- const Ye = /* @__PURE__ */ C(Ge, [["render", Ze]]), Ke = L({
652
+ const We = /* @__PURE__ */ H(Ke, [["render", Je]]), Qe = C({
653
653
  name: "FieldLabel",
654
654
  props: {
655
655
  label: {
@@ -670,18 +670,18 @@ const Ye = /* @__PURE__ */ C(Ge, [["render", Ze]]), Ke = L({
670
670
  }
671
671
  }
672
672
  });
673
- function je(e, t, n, s, o, i) {
674
- const u = a("v-col");
675
- return m(), h(u, {
673
+ function Xe(e, t, n, a, u, d) {
674
+ const c = l("v-col");
675
+ return r(), $(c, {
676
676
  cols: e.cols,
677
677
  sm: e.sm,
678
678
  class: "fld"
679
679
  }, {
680
- default: r(() => [
681
- f("div", {
682
- class: H(["fld-lbl", e.errorMessages ? "fld-err" : ""])
683
- }, p(e.label), 3),
684
- D(e.$slots, "default", {
680
+ default: o(() => [
681
+ y("div", {
682
+ class: D(["fld-lbl", e.errorMessages ? "fld-err" : ""])
683
+ }, _(e.label), 3),
684
+ T(e.$slots, "default", {
685
685
  hideDetails: !e.errorMessages,
686
686
  errorMessages: e.errorMessages
687
687
  })
@@ -689,15 +689,15 @@ function je(e, t, n, s, o, i) {
689
689
  _: 3
690
690
  }, 8, ["cols", "sm"]);
691
691
  }
692
- const Je = /* @__PURE__ */ C(Ke, [["render", je]]), We = (e, t, n) => (Object.defineProperty(e, t, {
692
+ const xe = /* @__PURE__ */ H(Qe, [["render", Xe]]), et = (e, t, n) => (Object.defineProperty(e, t, {
693
693
  value: n,
694
694
  writable: !1,
695
695
  configurable: !1,
696
696
  enumerable: !1
697
- }), n), Qe = (e, t, n) => e.reduce((s, o) => {
698
- const i = o[t];
699
- return s[i] = o[n], s;
700
- }, {}), Z = [
697
+ }), n), tt = (e, t, n) => e.reduce((a, u) => {
698
+ const d = u[t];
699
+ return a[d] = u[n], a;
700
+ }, {}), Y = [
701
701
  { title: "lng.sv-se", value: "sv_SE" },
702
702
  // $t("lng.sv-se")
703
703
  { title: "lng.sl-si", value: "sl_SI" },
@@ -758,7 +758,7 @@ const Je = /* @__PURE__ */ C(Ke, [["render", je]]), We = (e, t, n) => (Object.de
758
758
  // $t("lng.ro-ro")
759
759
  { title: "lng.pt-pt", value: "pt_PT" }
760
760
  // $t("lng.pt-pt")
761
- ], St = [
761
+ ], rn = [
762
762
  { title: "lngin.et-ee", value: "et_EE" },
763
763
  // $t("lngin.et-ee")
764
764
  { title: "lngin.lv-lv", value: "lv_LV" },
@@ -777,9 +777,9 @@ const Je = /* @__PURE__ */ C(Ke, [["render", je]]), We = (e, t, n) => (Object.de
777
777
  // $t("lngin.it-it")
778
778
  { title: "lngin.de-de", value: "de_DE" }
779
779
  // $t("lngin.de-de")
780
- ], I = {
780
+ ], j = {
781
781
  get LangsEnum() {
782
- return We(this, "LangsEnum", Qe(Z, "value", "title"));
782
+ return et(this, "LangsEnum", tt(Y, "value", "title"));
783
783
  },
784
784
  FrmLang(e) {
785
785
  return this.LangsEnum[e] ?? e;
@@ -798,16 +798,16 @@ const Je = /* @__PURE__ */ C(Ke, [["render", je]]), We = (e, t, n) => (Object.de
798
798
  return e.replace("-", "_");
799
799
  }
800
800
  }
801
- }, Xe = L({
801
+ }, nt = C({
802
802
  methods: {
803
803
  mdiPencil() {
804
- return fe;
804
+ return _e;
805
805
  },
806
806
  mdiKeyVariant() {
807
- return ue;
807
+ return pe;
808
808
  }
809
809
  },
810
- components: { UserAvatar: q },
810
+ components: { UserAvatar: F },
811
811
  props: {
812
812
  currentUser: {
813
813
  type: Object,
@@ -820,73 +820,73 @@ const Je = /* @__PURE__ */ C(Ke, [["render", je]]), We = (e, t, n) => (Object.de
820
820
  },
821
821
  emits: ["edit-profile", "change-password"],
822
822
  setup(e) {
823
- const { t } = N(), n = U(() => e.currentUser?.locale ? t(I.FrmLang(I.ToLongFormat(e.currentUser.locale))) : ""), s = U(() => e.currentUser ? O(e.currentUser) : "");
824
- return { langauge: n, fullName: s };
823
+ const { t } = B(), n = L(() => e.currentUser?.locale ? t(j.FrmLang(j.ToLongFormat(e.currentUser.locale))) : ""), a = L(() => e.currentUser ? q(e.currentUser) : "");
824
+ return { langauge: n, fullName: a };
825
825
  }
826
- }), xe = { class: "avatar" }, et = { class: "details" }, tt = { class: "name" }, nt = {
826
+ }), ot = { class: "avatar" }, rt = { class: "details" }, st = { class: "name" }, lt = {
827
827
  key: 0,
828
828
  class: "email"
829
- }, rt = { class: "email" };
830
- function ot(e, t, n, s, o, i) {
831
- const u = a("UserAvatar"), d = a("v-col"), g = a("v-icon"), c = a("v-btn"), v = a("v-row");
832
- return e.currentUser ? (m(), h(v, {
829
+ }, at = { class: "email" };
830
+ function it(e, t, n, a, u, d) {
831
+ const c = l("UserAvatar"), f = l("v-col"), v = l("v-icon"), i = l("v-btn"), p = l("v-row");
832
+ return e.currentUser ? (r(), $(p, {
833
833
  key: 0,
834
834
  class: "mt-6 prof-hor"
835
835
  }, {
836
- default: r(() => [
837
- l(d, {
836
+ default: o(() => [
837
+ s(f, {
838
838
  cols: "12",
839
839
  sm: "7",
840
840
  class: "profile"
841
841
  }, {
842
- default: r(() => [
843
- f("div", xe, [
844
- l(u, {
842
+ default: o(() => [
843
+ y("div", ot, [
844
+ s(c, {
845
845
  size: 96,
846
846
  user: e.currentUser,
847
847
  "base-url": e.baseUrl + "/avatars"
848
848
  }, null, 8, ["user", "base-url"])
849
849
  ]),
850
- f("div", et, [
851
- f("div", tt, p(e.fullName), 1),
852
- e.currentUser.email ? (m(), b("div", nt, p(e.currentUser.email), 1)) : k("", !0),
853
- f("div", rt, p(e.$t("Language")) + ": " + p(e.langauge), 1)
850
+ y("div", rt, [
851
+ y("div", st, _(e.fullName), 1),
852
+ e.currentUser.email ? (r(), g("div", lt, _(e.currentUser.email), 1)) : k("", !0),
853
+ y("div", at, _(e.$t("Language")) + ": " + _(e.langauge), 1)
854
854
  ])
855
855
  ]),
856
856
  _: 1
857
857
  }),
858
- l(d, {
858
+ s(f, {
859
859
  cols: "12",
860
860
  sm: "5",
861
861
  class: "buttons"
862
862
  }, {
863
- default: r(() => [
864
- f("div", null, [
865
- l(c, {
863
+ default: o(() => [
864
+ y("div", null, [
865
+ s(i, {
866
866
  variant: "text",
867
867
  color: "primary",
868
868
  onClick: t[0] || (t[0] = (M) => e.$emit("edit-profile"))
869
869
  }, {
870
- default: r(() => [
871
- l(g, {
870
+ default: o(() => [
871
+ s(v, {
872
872
  icon: e.mdiPencil(),
873
873
  class: "mr-1"
874
874
  }, null, 8, ["icon"]),
875
- A(" " + p(e.$t("Edit info")), 1)
875
+ w(" " + _(e.$t("Edit info")), 1)
876
876
  ]),
877
877
  _: 1
878
878
  }),
879
- l(c, {
879
+ s(i, {
880
880
  variant: "text",
881
881
  color: "primary",
882
882
  onClick: t[1] || (t[1] = (M) => e.$emit("change-password"))
883
883
  }, {
884
- default: r(() => [
885
- l(g, {
884
+ default: o(() => [
885
+ s(v, {
886
886
  icon: e.mdiKeyVariant(),
887
887
  class: "mr-1"
888
888
  }, null, 8, ["icon"]),
889
- A(" " + p(e.$t("Change password")), 1)
889
+ w(" " + _(e.$t("Change password")), 1)
890
890
  ]),
891
891
  _: 1
892
892
  })
@@ -898,14 +898,14 @@ function ot(e, t, n, s, o, i) {
898
898
  _: 1
899
899
  })) : k("", !0);
900
900
  }
901
- const Dt = /* @__PURE__ */ C(Xe, [["render", ot]]), lt = L({
901
+ const sn = /* @__PURE__ */ H(nt, [["render", it]]), ut = C({
902
902
  name: "ProfileEditDialog",
903
903
  methods: {
904
904
  mdiPalette() {
905
- return me;
905
+ return ve;
906
906
  }
907
907
  },
908
- components: { ColorPicker: Ye, UserAvatar: q, AccountAvatar: G, FieldLabel: Je, CustomDialog: ge },
908
+ components: { ColorPicker: We, UserAvatar: F, AccountAvatar: Z, FieldLabel: xe, CustomDialog: be },
909
909
  props: {
910
910
  showDialog: {
911
911
  type: Boolean,
@@ -926,115 +926,115 @@ const Dt = /* @__PURE__ */ C(Xe, [["render", ot]]), lt = L({
926
926
  },
927
927
  emits: ["close"],
928
928
  setup(e) {
929
- const { t } = N(), n = S({ ...e.currentUser }), s = S({}), o = S(I.ToLongFormat(e.currentUser.locale ?? e.fallbackLocale)), i = S(e.currentUser?.avatar_thumb ? "photo" : "color"), u = S(!1), d = U(() => [
929
+ const { t } = B(), n = E({ ...e.currentUser }), a = E({}), u = E(j.ToLongFormat(e.currentUser.locale ?? e.fallbackLocale)), d = E(e.currentUser?.avatar_thumb ? "photo" : "color"), c = E(!1), f = L(() => [
930
930
  { value: "photo", text: t("Photo") },
931
931
  { value: "color", text: t("Color") }
932
- ]), g = U(() => Z.filter((v) => e.systemLanguages.indexOf(v.value) >= 0).map((v) => ({ title: t(v.value), value: v.value })));
933
- return { formData: n, localErrors: s, languages: g, lang: o, identity: i, identities: d, loading: u, saveClick: () => {
934
- u.value = !0, { ...n.value }, i.value == "color", o.value;
932
+ ]), v = L(() => Y.filter((p) => e.systemLanguages.indexOf(p.value) >= 0).map((p) => ({ title: t(p.value), value: p.value })));
933
+ return { formData: n, localErrors: a, languages: v, lang: u, identity: d, identities: f, loading: c, saveClick: () => {
934
+ c.value = !0, { ...n.value }, d.value == "color", u.value;
935
935
  } };
936
936
  }
937
- }), st = {
937
+ }), dt = {
938
938
  key: 0,
939
939
  class: "ff-simple-form"
940
- }, at = { class: "avatar-edit" }, it = { class: "avatar" }, ut = { class: "options" }, ct = {
940
+ }, ct = { class: "avatar-edit" }, mt = { class: "avatar" }, pt = { class: "options" }, ft = {
941
941
  key: 0,
942
942
  class: "sel-ident"
943
943
  };
944
- function dt(e, t, n, s, o, i) {
945
- const u = a("v-avatar"), d = a("v-radio"), g = a("v-radio-group"), c = a("v-icon"), v = a("v-btn"), M = a("ColorPicker"), _ = a("v-menu"), T = a("v-col"), V = a("v-text-field"), w = a("FieldLabel"), B = a("v-select"), y = a("v-row"), R = a("CustomDialog");
946
- return m(), h(R, {
944
+ function gt(e, t, n, a, u, d) {
945
+ const c = l("v-avatar"), f = l("v-radio"), v = l("v-radio-group"), i = l("v-icon"), p = l("v-btn"), M = l("ColorPicker"), h = l("v-menu"), m = l("v-col"), U = l("v-text-field"), O = l("FieldLabel"), R = l("v-select"), b = l("v-row"), N = l("CustomDialog");
946
+ return r(), $(N, {
947
947
  value: e.showDialog,
948
948
  title: e.$t("Your profile"),
949
949
  persistent: "",
950
950
  class: "prof-dlg",
951
- onClose: t[7] || (t[7] = ($) => e.$emit("close", null))
951
+ onClose: t[7] || (t[7] = (A) => e.$emit("close", null))
952
952
  }, {
953
- footer: r(() => [
954
- l(v, {
953
+ footer: o(() => [
954
+ s(p, {
955
955
  variant: "flat",
956
956
  color: "secondary",
957
- onClick: t[6] || (t[6] = ($) => e.$emit("close", null))
957
+ onClick: t[6] || (t[6] = (A) => e.$emit("close", null))
958
958
  }, {
959
- default: r(() => [
960
- A(p(e.$t("Close")), 1)
959
+ default: o(() => [
960
+ w(_(e.$t("Close")), 1)
961
961
  ]),
962
962
  _: 1
963
963
  }),
964
- l(v, {
964
+ s(p, {
965
965
  variant: "flat",
966
966
  color: "primary",
967
967
  loading: e.loading,
968
968
  onClick: e.saveClick
969
969
  }, {
970
- default: r(() => [
971
- A(p(e.$t("Save")), 1)
970
+ default: o(() => [
971
+ w(_(e.$t("Save")), 1)
972
972
  ]),
973
973
  _: 1
974
974
  }, 8, ["loading", "onClick"])
975
975
  ]),
976
- default: r(() => [
977
- e.formData ? (m(), b("form", st, [
978
- l(y, null, {
979
- default: r(() => [
980
- l(T, { cols: "12" }, {
981
- default: r(() => [
982
- f("div", at, [
983
- f("div", it, [
984
- l(u, {
976
+ default: o(() => [
977
+ e.formData ? (r(), g("form", dt, [
978
+ s(b, null, {
979
+ default: o(() => [
980
+ s(m, { cols: "12" }, {
981
+ default: o(() => [
982
+ y("div", ct, [
983
+ y("div", mt, [
984
+ s(c, {
985
985
  color: e.formData.color ?? "primary",
986
- class: H(`avatar-96-${e.formData.initials.length >= 3 ? "l" : "s"}`),
986
+ class: D(`avatar-96-${e.formData.initials.length >= 3 ? "l" : "s"}`),
987
987
  size: 96
988
988
  }, {
989
- default: r(() => [
990
- f("span", null, p(e.formData.initials), 1)
989
+ default: o(() => [
990
+ y("span", null, _(e.formData.initials), 1)
991
991
  ]),
992
992
  _: 1
993
993
  }, 8, ["color", "class"])
994
994
  ]),
995
- f("div", ut, [
996
- f("div", null, [
997
- l(g, {
995
+ y("div", pt, [
996
+ y("div", null, [
997
+ s(v, {
998
998
  modelValue: e.identity,
999
- "onUpdate:modelValue": t[0] || (t[0] = ($) => e.identity = $),
999
+ "onUpdate:modelValue": t[0] || (t[0] = (A) => e.identity = A),
1000
1000
  "true-icon": e.$vuetify.icons.aliases?.success,
1001
1001
  color: "primary",
1002
1002
  "hide-details": "",
1003
1003
  "error-messages": e.localErrors.other_vehicle_involved?.toString() ?? void 0
1004
1004
  }, {
1005
- default: r(() => [
1006
- (m(!0), b(z, null, F(e.identities, ($) => (m(), h(d, {
1007
- key: $.value.toString(),
1008
- label: $.text,
1009
- value: $.value,
1005
+ default: o(() => [
1006
+ (r(!0), g(V, null, S(e.identities, (A) => (r(), $(f, {
1007
+ key: A.value.toString(),
1008
+ label: A.text,
1009
+ value: A.value,
1010
1010
  "base-color": e.localErrors.other_vehicle_involved ? "error" : ""
1011
1011
  }, null, 8, ["label", "value", "base-color"]))), 128))
1012
1012
  ]),
1013
1013
  _: 1
1014
1014
  }, 8, ["modelValue", "true-icon", "error-messages"])
1015
1015
  ]),
1016
- f("div", null, [
1017
- e.identity === "color" ? (m(), b("div", ct, [
1018
- f("div", null, [
1019
- l(_, null, {
1020
- activator: r(({ props: $ }) => [
1021
- l(v, P({
1016
+ y("div", null, [
1017
+ e.identity === "color" ? (r(), g("div", ft, [
1018
+ y("div", null, [
1019
+ s(h, null, {
1020
+ activator: o(({ props: A }) => [
1021
+ s(p, P({
1022
1022
  variant: "text",
1023
1023
  color: "primary",
1024
1024
  class: "ff-btn"
1025
- }, $), {
1026
- default: r(() => [
1027
- l(c, {
1025
+ }, A), {
1026
+ default: o(() => [
1027
+ s(i, {
1028
1028
  icon: e.mdiPalette()
1029
1029
  }, null, 8, ["icon"]),
1030
- A(" " + p(e.$vuetify.display.smAndUp ? e.$t("Choose color") : e.$t("Color")), 1)
1030
+ w(" " + _(e.$vuetify.display.smAndUp ? e.$t("Choose color") : e.$t("Color")), 1)
1031
1031
  ]),
1032
1032
  _: 2
1033
1033
  }, 1040)
1034
1034
  ]),
1035
- default: r(() => [
1036
- l(M, {
1037
- onChange: t[1] || (t[1] = ($) => e.formData.color = $)
1035
+ default: o(() => [
1036
+ s(M, {
1037
+ onChange: t[1] || (t[1] = (A) => e.formData.color = A)
1038
1038
  })
1039
1039
  ]),
1040
1040
  _: 1
@@ -1047,67 +1047,67 @@ function dt(e, t, n, s, o, i) {
1047
1047
  ]),
1048
1048
  _: 1
1049
1049
  }),
1050
- l(w, {
1050
+ s(O, {
1051
1051
  label: e.$t("Name"),
1052
1052
  cols: 12,
1053
1053
  sm: 6,
1054
1054
  "error-messages": e.localErrors.name?.toString() ?? void 0
1055
1055
  }, {
1056
- default: r(($) => [
1057
- l(V, P({
1056
+ default: o((A) => [
1057
+ s(U, P({
1058
1058
  modelValue: e.formData.name,
1059
- "onUpdate:modelValue": t[2] || (t[2] = (E) => e.formData.name = E),
1059
+ "onUpdate:modelValue": t[2] || (t[2] = (z) => e.formData.name = z),
1060
1060
  variant: "outlined"
1061
- }, $), null, 16, ["modelValue"])
1061
+ }, A), null, 16, ["modelValue"])
1062
1062
  ]),
1063
1063
  _: 1
1064
1064
  }, 8, ["label", "error-messages"]),
1065
- l(w, {
1065
+ s(O, {
1066
1066
  label: e.$t("Surname"),
1067
1067
  cols: 12,
1068
1068
  sm: 6,
1069
1069
  "error-messages": e.localErrors.surname?.toString() ?? void 0
1070
1070
  }, {
1071
- default: r(($) => [
1072
- l(V, P({
1071
+ default: o((A) => [
1072
+ s(U, P({
1073
1073
  modelValue: e.formData.surname,
1074
- "onUpdate:modelValue": t[3] || (t[3] = (E) => e.formData.surname = E),
1074
+ "onUpdate:modelValue": t[3] || (t[3] = (z) => e.formData.surname = z),
1075
1075
  variant: "outlined"
1076
- }, $), null, 16, ["modelValue"])
1076
+ }, A), null, 16, ["modelValue"])
1077
1077
  ]),
1078
1078
  _: 1
1079
1079
  }, 8, ["label", "error-messages"]),
1080
- l(w, {
1080
+ s(O, {
1081
1081
  label: e.$t("E-mail"),
1082
1082
  cols: 12,
1083
1083
  sm: 6,
1084
1084
  "error-messages": e.localErrors.email?.toString() ?? void 0
1085
1085
  }, {
1086
- default: r(($) => [
1087
- l(V, P({
1086
+ default: o((A) => [
1087
+ s(U, P({
1088
1088
  modelValue: e.formData.email,
1089
- "onUpdate:modelValue": t[4] || (t[4] = (E) => e.formData.email = E),
1089
+ "onUpdate:modelValue": t[4] || (t[4] = (z) => e.formData.email = z),
1090
1090
  variant: "outlined",
1091
1091
  disabled: ""
1092
- }, $), null, 16, ["modelValue"])
1092
+ }, A), null, 16, ["modelValue"])
1093
1093
  ]),
1094
1094
  _: 1
1095
1095
  }, 8, ["label", "error-messages"]),
1096
- l(w, {
1096
+ s(O, {
1097
1097
  label: e.$t("Language"),
1098
1098
  cols: 12,
1099
1099
  sm: 6,
1100
1100
  "error-messages": e.localErrors.locale?.toString() ?? void 0
1101
1101
  }, {
1102
- default: r(($) => [
1103
- l(B, P({
1102
+ default: o((A) => [
1103
+ s(R, P({
1104
1104
  modelValue: e.lang,
1105
- "onUpdate:modelValue": t[5] || (t[5] = (E) => e.lang = E),
1105
+ "onUpdate:modelValue": t[5] || (t[5] = (z) => e.lang = z),
1106
1106
  variant: "outlined",
1107
1107
  items: e.languages,
1108
1108
  "item-text": "title",
1109
1109
  "item-value": "value"
1110
- }, $, { dense: "" }), null, 16, ["modelValue", "items"])
1110
+ }, A, { dense: "" }), null, 16, ["modelValue", "items"])
1111
1111
  ]),
1112
1112
  _: 1
1113
1113
  }, 8, ["label", "error-messages"])
@@ -1119,13 +1119,443 @@ function dt(e, t, n, s, o, i) {
1119
1119
  _: 1
1120
1120
  }, 8, ["value", "title"]);
1121
1121
  }
1122
- const Ht = /* @__PURE__ */ C(lt, [["render", dt]]), Et = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "", Vt = (e) => JSON.parse(JSON.stringify(e)), wt = (e) => {
1122
+ const ln = /* @__PURE__ */ H(ut, [["render", gt]]), vt = C({
1123
+ name: "RowActionsButton",
1124
+ props: {
1125
+ rowActions: {
1126
+ type: Object,
1127
+ required: !0
1128
+ },
1129
+ item: {
1130
+ type: Object,
1131
+ required: !0
1132
+ }
1133
+ },
1134
+ setup(e) {
1135
+ return { actions: L(() => e.rowActions.actions.filter((n) => n.visible === void 0 || n.visible(e.item))) };
1136
+ }
1137
+ });
1138
+ function _t(e, t, n, a, u, d) {
1139
+ const c = l("v-btn"), f = l("v-icon"), v = l("v-list-item-title"), i = l("v-list-item"), p = l("v-list"), M = l("v-menu");
1140
+ return e.actions.length > 0 ? (r(), $(M, { key: 0 }, {
1141
+ activator: o(({ props: h }) => [
1142
+ s(c, P({
1143
+ variant: "text",
1144
+ size: "small",
1145
+ icon: e.rowActions.icon
1146
+ }, h), null, 16, ["icon"])
1147
+ ]),
1148
+ default: o(() => [
1149
+ s(p, { density: "compact" }, {
1150
+ default: o(() => [
1151
+ (r(!0), g(V, null, S(e.actions, (h) => (r(), $(i, {
1152
+ key: h.action,
1153
+ onClick: (m) => e.$emit("row-action", { action: h.action, item: e.item })
1154
+ }, {
1155
+ prepend: o(() => [
1156
+ s(f, {
1157
+ icon: h.icon
1158
+ }, null, 8, ["icon"])
1159
+ ]),
1160
+ default: o(() => [
1161
+ s(v, null, {
1162
+ default: o(() => [
1163
+ w(_(h.title), 1)
1164
+ ]),
1165
+ _: 2
1166
+ }, 1024)
1167
+ ]),
1168
+ _: 2
1169
+ }, 1032, ["onClick"]))), 128))
1170
+ ]),
1171
+ _: 1
1172
+ })
1173
+ ]),
1174
+ _: 1
1175
+ })) : k("", !0);
1176
+ }
1177
+ const G = /* @__PURE__ */ H(vt, [["render", _t]]), yt = C({
1178
+ name: "MobileLayoutItem",
1179
+ methods: {
1180
+ mdiDragVertical() {
1181
+ return me;
1182
+ }
1183
+ },
1184
+ components: { RowActionsButton: G },
1185
+ props: {
1186
+ item: {
1187
+ type: Object,
1188
+ required: !0
1189
+ },
1190
+ titleHeaders: {
1191
+ type: Array,
1192
+ required: !0
1193
+ },
1194
+ subTitleHeaders: {
1195
+ type: Array,
1196
+ required: !0
1197
+ },
1198
+ tagHeaders: {
1199
+ type: Array,
1200
+ required: !0
1201
+ },
1202
+ miniTblHeaders: {
1203
+ type: Array,
1204
+ required: !0
1205
+ },
1206
+ otherHeaders: {
1207
+ type: Array,
1208
+ required: !0
1209
+ },
1210
+ rowActions: {
1211
+ type: Object,
1212
+ default: null
1213
+ },
1214
+ draggable: {
1215
+ type: Boolean,
1216
+ default: !1
1217
+ }
1218
+ },
1219
+ emits: ["rowClick", "rowAction"],
1220
+ setup() {
1221
+ const e = (n, a) => a === null ? null : n.mobileLabel ? `${n.title}: ${a}` : a;
1222
+ return { formatValueList: (n, a, u) => n.map((d) => d.format ? e(d, d.format(d, a)) : e(d, a[d.value] ?? null)).filter((d) => d !== null).join(u) };
1223
+ }
1224
+ }), $t = { style: { display: "flex", "align-items": "center", gap: "8px" } }, ht = { key: 1 }, bt = { key: 2 }, Mt = { key: 1 }, kt = { key: 2 }, At = {
1225
+ key: 0,
1226
+ class: "mini-table"
1227
+ }, Lt = { key: 0 }, Ct = { key: 1 }, Ht = { style: { "margin-top": "-11px", "margin-bottom": "-11px" } }, wt = {
1228
+ key: 0,
1229
+ class: "item-drag-handle"
1230
+ };
1231
+ function Vt(e, t, n, a, u, d) {
1232
+ const c = l("v-col"), f = l("v-row"), v = l("v-icon"), i = l("v-chip"), p = l("RowActionsButton"), M = l("v-card-text"), h = l("v-card");
1233
+ return r(), $(h, {
1234
+ variant: "outlined",
1235
+ title: e.formatValueList(e.titleHeaders, e.item, " - "),
1236
+ subtitle: e.formatValueList(e.subTitleHeaders, e.item, "; "),
1237
+ onClick: t[1] || (t[1] = (m) => e.$emit("rowClick", e.item))
1238
+ }, {
1239
+ title: o(() => [
1240
+ y("div", $t, [
1241
+ (r(!0), g(V, null, S(e.titleHeaders, (m, U) => (r(), g("span", { key: U }, [
1242
+ m.component ? (r(), $(I(m.component), P({
1243
+ key: 0,
1244
+ class: "mr-1",
1245
+ ref_for: !0
1246
+ }, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(), g("span", ht, _(m.format(m, e.item)), 1)) : (r(), g("span", bt, _(e.item[m.value]), 1))
1247
+ ]))), 128))
1248
+ ])
1249
+ ]),
1250
+ default: o(() => [
1251
+ s(M, null, {
1252
+ default: o(() => [
1253
+ (r(!0), g(V, null, S(e.otherHeaders, (m, U) => (r(), $(f, {
1254
+ key: m.value,
1255
+ "no-gutters": "",
1256
+ class: D(`mt-${U === 0 ? 0 : 3}`)
1257
+ }, {
1258
+ default: o(() => [
1259
+ s(c, {
1260
+ cols: "4",
1261
+ sm: "2"
1262
+ }, {
1263
+ default: o(() => [
1264
+ w(_(m.title) + ":", 1)
1265
+ ]),
1266
+ _: 2
1267
+ }, 1024),
1268
+ s(c, {
1269
+ cols: "8",
1270
+ sm: "10"
1271
+ }, {
1272
+ default: o(() => [
1273
+ m.component ? (r(), $(I(m.component), P({
1274
+ key: 0,
1275
+ ref_for: !0
1276
+ }, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(), g("span", Mt, _(m.format(m, e.item)), 1)) : (r(), g("span", kt, _(e.item[m.value]), 1))
1277
+ ]),
1278
+ _: 2
1279
+ }, 1024)
1280
+ ]),
1281
+ _: 2
1282
+ }, 1032, ["class"]))), 128)),
1283
+ e.miniTblHeaders.length > 0 ? (r(), g("table", At, [
1284
+ y("tr", null, [
1285
+ (r(!0), g(V, null, S(e.miniTblHeaders, (m) => (r(), g("th", {
1286
+ key: `h${m.value}`,
1287
+ style: W({ width: `${100 / e.miniTblHeaders.length}%` })
1288
+ }, _(m.title), 5))), 128))
1289
+ ]),
1290
+ y("tr", null, [
1291
+ (r(!0), g(V, null, S(e.miniTblHeaders, (m) => (r(), g("td", {
1292
+ key: `h${m.value}`
1293
+ }, [
1294
+ m.format ? (r(), g("span", Lt, _(m.format(m, e.item)), 1)) : (r(), g("span", Ct, _(e.item[m.value]), 1))
1295
+ ]))), 128))
1296
+ ])
1297
+ ])) : k("", !0),
1298
+ s(f, {
1299
+ "no-gutters": "",
1300
+ class: "mt-3"
1301
+ }, {
1302
+ default: o(() => [
1303
+ s(c, {
1304
+ cols: e.rowActions ? 10 : 12
1305
+ }, {
1306
+ default: o(() => [
1307
+ (r(!0), g(V, null, S(e.tagHeaders, (m) => (r(), g("span", {
1308
+ key: m.value
1309
+ }, [
1310
+ m.component ? (r(), $(I(m.component), P({
1311
+ key: 0,
1312
+ class: "mr-1",
1313
+ ref_for: !0
1314
+ }, m.getProps ? m.getProps(m, e.item) : {}), null, 16)) : m.format ? (r(), $(i, {
1315
+ key: 1,
1316
+ label: "",
1317
+ size: "small",
1318
+ variant: "flat",
1319
+ color: "grey",
1320
+ class: "mr-1"
1321
+ }, {
1322
+ default: o(() => [
1323
+ m.mobileIcon ? (r(), $(v, {
1324
+ key: 0,
1325
+ icon: m.mobileIcon,
1326
+ class: "mr-1"
1327
+ }, null, 8, ["icon"])) : k("", !0),
1328
+ w(_(m.format(m, e.item)), 1)
1329
+ ]),
1330
+ _: 2
1331
+ }, 1024)) : (r(), $(i, {
1332
+ key: 2,
1333
+ label: "",
1334
+ size: "small",
1335
+ variant: "flat",
1336
+ color: "grey",
1337
+ class: "mr-1"
1338
+ }, {
1339
+ default: o(() => [
1340
+ m.mobileIcon ? (r(), $(v, {
1341
+ key: 0,
1342
+ icon: m.mobileIcon
1343
+ }, null, 8, ["icon"])) : k("", !0),
1344
+ w(_(e.item[m.value]), 1)
1345
+ ]),
1346
+ _: 2
1347
+ }, 1024))
1348
+ ]))), 128))
1349
+ ]),
1350
+ _: 1
1351
+ }, 8, ["cols"]),
1352
+ e.rowActions ? (r(), $(c, {
1353
+ key: 0,
1354
+ cols: "2",
1355
+ class: "text-right"
1356
+ }, {
1357
+ default: o(() => [
1358
+ y("div", Ht, [
1359
+ s(p, {
1360
+ item: e.item,
1361
+ "row-actions": e.rowActions,
1362
+ onRowAction: t[0] || (t[0] = (m) => e.$emit("rowAction", m))
1363
+ }, null, 8, ["item", "row-actions"])
1364
+ ])
1365
+ ]),
1366
+ _: 1
1367
+ })) : k("", !0)
1368
+ ]),
1369
+ _: 1
1370
+ })
1371
+ ]),
1372
+ _: 1
1373
+ }),
1374
+ e.draggable ? (r(), g("div", wt, [
1375
+ s(v, {
1376
+ icon: e.mdiDragVertical()
1377
+ }, null, 8, ["icon"])
1378
+ ])) : k("", !0)
1379
+ ]),
1380
+ _: 1
1381
+ }, 8, ["title", "subtitle"]);
1382
+ }
1383
+ const St = /* @__PURE__ */ H(yt, [["render", Vt]]), Pt = C({
1384
+ name: "MobileLayout",
1385
+ components: { MobileLayoutItem: St, RowActionsButton: G },
1386
+ props: {
1387
+ items: {
1388
+ type: Array,
1389
+ required: !0
1390
+ },
1391
+ totalItems: {
1392
+ type: Number,
1393
+ required: !0
1394
+ },
1395
+ headers: {
1396
+ type: Array,
1397
+ required: !0
1398
+ },
1399
+ options: {
1400
+ type: Object,
1401
+ required: !0
1402
+ },
1403
+ loading: {
1404
+ type: Boolean,
1405
+ default: !1
1406
+ },
1407
+ rowActions: {
1408
+ type: Object,
1409
+ default: null
1410
+ }
1411
+ },
1412
+ setup(e, t) {
1413
+ const n = E(e.options.page), a = e.options.pageSize, u = L(() => e.headers.filter((p) => p.mobilePlacement === "title")), d = L(() => e.headers.filter((p) => p.mobilePlacement === "subtitle")), c = L(() => e.headers.filter((p) => p.mobilePlacement === "tag")), f = L(() => e.headers.filter((p) => p.mobilePlacement === "mini_table")), v = L(() => e.headers.filter((p) => p.mobilePlacement !== "title" && p.mobilePlacement !== "subtitle" && p.mobilePlacement !== "tag" && p.mobilePlacement !== "mini_table"));
1414
+ return { titleHeaders: u, subTitleHeaders: d, tagHeaders: c, miniTblHeaders: f, otherHeaders: v, pageVal: n, pageSize: a, changePage: (p) => {
1415
+ t.emit("options-update", { ...e.options, page: p });
1416
+ } };
1417
+ }
1418
+ }), Ut = { class: "mobile-margin2 data-table-layout" }, Dt = {
1419
+ key: 1,
1420
+ class: "mt-3"
1421
+ };
1422
+ function Et(e, t, n, a, u, d) {
1423
+ const c = l("v-progress-linear"), f = l("MobileLayoutItem"), v = l("v-pagination");
1424
+ return r(), g("div", Ut, [
1425
+ e.loading ? (r(), $(c, {
1426
+ key: 0,
1427
+ indeterminate: ""
1428
+ })) : k("", !0),
1429
+ (r(!0), g(V, null, S(e.items, (i) => (r(), $(f, {
1430
+ key: i.id,
1431
+ item: i,
1432
+ "title-headers": e.titleHeaders,
1433
+ "mini-tbl-headers": e.miniTblHeaders,
1434
+ "sub-title-headers": e.subTitleHeaders,
1435
+ "tag-headers": e.tagHeaders,
1436
+ "other-headers": e.otherHeaders,
1437
+ "row-actions": e.rowActions,
1438
+ onRowClick: t[0] || (t[0] = (p) => e.$emit("row-click", p)),
1439
+ onRowAction: t[1] || (t[1] = (p) => e.$emit("row-action", p))
1440
+ }, null, 8, ["item", "title-headers", "mini-tbl-headers", "sub-title-headers", "tag-headers", "other-headers", "row-actions"]))), 128)),
1441
+ e.totalItems > e.pageSize ? (r(), g("div", Dt, [
1442
+ s(v, {
1443
+ modelValue: e.pageVal,
1444
+ "onUpdate:modelValue": [
1445
+ t[2] || (t[2] = (i) => e.pageVal = i),
1446
+ e.changePage
1447
+ ],
1448
+ length: Math.ceil(e.totalItems / e.options.pageSize),
1449
+ rounded: "circle",
1450
+ density: "comfortable"
1451
+ }, null, 8, ["modelValue", "length", "onUpdate:modelValue"])
1452
+ ])) : k("", !0)
1453
+ ]);
1454
+ }
1455
+ const an = /* @__PURE__ */ H(Pt, [["render", Et]]), Tt = C({
1456
+ name: "DesktopLayout",
1457
+ components: { RowActionsButton: G },
1458
+ props: {
1459
+ items: {
1460
+ type: Array,
1461
+ required: !0
1462
+ },
1463
+ totalItems: {
1464
+ type: Number,
1465
+ required: !0
1466
+ },
1467
+ headers: {
1468
+ type: Array,
1469
+ required: !0
1470
+ },
1471
+ options: {
1472
+ type: Object,
1473
+ required: !0
1474
+ },
1475
+ loading: {
1476
+ type: Boolean,
1477
+ default: !1
1478
+ },
1479
+ rowActions: {
1480
+ type: Object,
1481
+ default: null
1482
+ }
1483
+ },
1484
+ setup(e, t) {
1485
+ const { t: n } = B(), a = e.options.page, u = e.options.pageSize, d = e.options.sortField ? [{ key: e.options.sortField, order: e.options.sortDir }] : [], c = (i) => {
1486
+ const p = i.sortBy && i.sortBy.length > 0 ? i.sortBy[0] : null;
1487
+ t.emit("options-update", {
1488
+ page: i.page,
1489
+ pageSize: i.itemsPerPage,
1490
+ sortField: p?.key ?? null,
1491
+ sortDir: p?.order ?? "asc"
1492
+ });
1493
+ }, f = L(() => [
1494
+ { value: 5, title: "5" },
1495
+ { value: 10, title: "10" },
1496
+ { value: 25, title: "25" },
1497
+ { value: 50, title: "50" },
1498
+ { value: -1, title: n("All") }
1499
+ ]), v = L(() => {
1500
+ const i = n("{0}-{1} of {2}", ["{0}", "{1}", "{2}"]), p = (e.options.page - 1) * e.options.pageSize + 1, M = Math.min(e.options.page * e.options.pageSize, e.totalItems);
1501
+ return i.replace("{0}", p.toString()).replace("{1}", M.toString()).replace("{2}", e.totalItems.toString());
1502
+ });
1503
+ return { page: a, pageSize: u, sortBy: d, pageOptions: f, optionsUpdate: c, getPageText: v };
1504
+ }
1505
+ }), zt = { class: "data-table-layout" }, Ot = ["onClick"], qt = { key: 1 }, Bt = { key: 2 }, It = {
1506
+ key: 0,
1507
+ class: "text-right"
1508
+ };
1509
+ function Ft(e, t, n, a, u, d) {
1510
+ const c = l("RowActionsButton"), f = l("v-data-table-server");
1511
+ return r(), g("div", zt, [
1512
+ s(f, {
1513
+ items: e.items,
1514
+ "items-length": e.totalItems,
1515
+ headers: e.headers,
1516
+ loading: e.loading,
1517
+ page: e.options.page,
1518
+ "items-per-page": e.options.pageSize,
1519
+ "sort-by": e.sortBy,
1520
+ "hide-default-footer": e.totalItems <= e.options.pageSize,
1521
+ class: "data-table",
1522
+ "items-per-page-options": e.pageOptions,
1523
+ "onUpdate:options": e.optionsUpdate
1524
+ }, {
1525
+ item: o(({ item: v }) => [
1526
+ y("tr", {
1527
+ onClick: (i) => e.$emit("row-click", v),
1528
+ style: { cursor: "pointer" }
1529
+ }, [
1530
+ (r(!0), g(V, null, S(e.headers, (i) => (r(), g("td", {
1531
+ key: i.value,
1532
+ class: D(["v-data-table__td", `v-data-table-column--align-${i.align ?? "start"}`, i.mainField ? "ff-col-main" : ""])
1533
+ }, [
1534
+ i.component ? (r(), $(I(i.component), P({
1535
+ key: 0,
1536
+ ref_for: !0
1537
+ }, i.getProps ? i.getProps(i, v) : {}), null, 16)) : i.format ? (r(), g("span", qt, _(i.format(i, v)), 1)) : (r(), g("span", Bt, _(v[i.value]), 1))
1538
+ ], 2))), 128)),
1539
+ e.rowActions ? (r(), g("td", It, [
1540
+ s(c, {
1541
+ item: v,
1542
+ "row-actions": e.rowActions,
1543
+ onRowAction: t[0] || (t[0] = (i) => e.$emit("row-action", i))
1544
+ }, null, 8, ["item", "row-actions"])
1545
+ ])) : k("", !0)
1546
+ ], 8, Ot)
1547
+ ]),
1548
+ _: 1
1549
+ }, 8, ["items", "items-length", "headers", "loading", "page", "items-per-page", "sort-by", "hide-default-footer", "items-per-page-options", "onUpdate:options"])
1550
+ ]);
1551
+ }
1552
+ const un = /* @__PURE__ */ H(Tt, [["render", Ft]]), dn = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "", cn = (e) => JSON.parse(JSON.stringify(e)), mn = (e) => {
1123
1553
  let t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1124
1554
  return t ? decodeURIComponent(t[3]) : null;
1125
- }, Pt = (e, t, n, s = null) => {
1126
- let o, i;
1127
- return s == null && (s = "/"), i = "", n && (o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() + n * 24 * 60 * 60 * 1e3), i = "; expires=" + o.toUTCString()), document.cookie = encodeURIComponent(e) + "=" + encodeURIComponent(t) + i + "; path=" + s, !0;
1128
- }, Tt = (e, t) => {
1555
+ }, pn = (e, t, n, a = null) => {
1556
+ let u, d;
1557
+ return a == null && (a = "/"), d = "", n && (u = /* @__PURE__ */ new Date(), u.setTime(u.getTime() + n * 24 * 60 * 60 * 1e3), d = "; expires=" + u.toUTCString()), document.cookie = encodeURIComponent(e) + "=" + encodeURIComponent(t) + d + "; path=" + a, !0;
1558
+ }, fn = (e, t) => {
1129
1559
  for (const n of t) {
1130
1560
  if (n === "/")
1131
1561
  return e === "/";
@@ -1133,36 +1563,36 @@ const Ht = /* @__PURE__ */ C(lt, [["render", dt]]), Et = (e) => e ? e.replace(/(
1133
1563
  return !0;
1134
1564
  }
1135
1565
  return !1;
1136
- }, Ot = (e) => {
1566
+ }, gn = (e) => {
1137
1567
  const t = {};
1138
1568
  for (const n of ["p", "l", "s", "d"])
1139
1569
  e[n] !== void 0 && (t[n] = e[n]);
1140
1570
  return t;
1141
- }, zt = {
1571
+ }, vn = {
1142
1572
  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}" },
1143
1573
  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}" },
1144
1574
  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}" },
1145
1575
  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}" }
1146
- }, Ft = {
1576
+ }, _n = {
1147
1577
  EUR: "€",
1148
1578
  USD: "$"
1149
- }, Nt = (e, t, n, s, o) => (typeof e == "string" && (e = parseFloat(e)), e.toLocaleString("en-GB", { minimumFractionDigits: t, maximumFractionDigits: n }).replace(/\.|,/gi, (i) => i === "." ? s : o)), qt = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), mt = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, Bt = (e, t) => {
1579
+ }, yn = (e, t, n, a, u) => (typeof e == "string" && (e = parseFloat(e)), e.toLocaleString("en-GB", { minimumFractionDigits: t, maximumFractionDigits: n }).replace(/\.|,/gi, (d) => d === "." ? a : u)), $n = (e, t) => e == null ? "" : e.replace(new RegExp(t, "g"), "").replace(new RegExp(" ", "g"), "").replace(",", "."), Rt = /(dddd|dd|d|hh|h|HH|H|mm|m|MMMM|MMM|MM|M|ss|s|tt|yyyy|yy|zzz)/g, hn = (e, t) => {
1150
1580
  if (!e) return "";
1151
1581
  const n = typeof e == "string" ? new Date(e) : e;
1152
- return t.replace(mt, (s) => {
1153
- switch (s) {
1582
+ return t.replace(Rt, (a) => {
1583
+ switch (a) {
1154
1584
  case "d":
1155
1585
  return n.getDate().toString();
1156
1586
  case "dd":
1157
1587
  case "DD":
1158
1588
  return ("0" + n.getDate()).slice(-2);
1159
1589
  case "h": {
1160
- const o = n.getHours();
1161
- return (o === 0 ? 12 : o > 12 ? o - 12 : o).toString();
1590
+ const u = n.getHours();
1591
+ return (u === 0 ? 12 : u > 12 ? u - 12 : u).toString();
1162
1592
  }
1163
1593
  case "hh": {
1164
- const o = n.getHours();
1165
- return ("0" + (o === 0 ? 12 : o > 12 ? o - 12 : o)).slice(-2);
1594
+ const u = n.getHours();
1595
+ return ("0" + (u === 0 ? 12 : u > 12 ? u - 12 : u)).slice(-2);
1166
1596
  }
1167
1597
  case "H":
1168
1598
  return n.getHours().toString();
@@ -1194,37 +1624,37 @@ const Ht = /* @__PURE__ */ C(lt, [["render", dt]]), Et = (e) => e ? e.replace(/(
1194
1624
  case "YYYY":
1195
1625
  return n.getFullYear().toString();
1196
1626
  case "zzz": {
1197
- const o = n.getTimezoneOffset(), i = Math.abs(o) % 60;
1198
- return `${o <= 0 ? "+" : "-"}${("0" + (Math.abs(o) - i) / 60).slice(-2)}:${("0" + i).slice(-2)}`;
1627
+ const u = n.getTimezoneOffset(), d = Math.abs(u) % 60;
1628
+ return `${u <= 0 ? "+" : "-"}${("0" + (Math.abs(u) - d) / 60).slice(-2)}:${("0" + d).slice(-2)}`;
1199
1629
  }
1200
1630
  default:
1201
- return s;
1631
+ return a;
1202
1632
  }
1203
1633
  });
1204
- }, Rt = (e) => {
1634
+ }, bn = (e) => {
1205
1635
  for (const t in e)
1206
1636
  Object.prototype.hasOwnProperty.call(e, t) && (e[t] = null);
1207
- }, It = (e, t, n, s, o, i = null) => {
1637
+ }, Mn = (e, t, n, a, u, d = null) => {
1208
1638
  if (typeof e == "string") {
1209
- s(e);
1639
+ a(e);
1210
1640
  return;
1211
1641
  }
1212
1642
  if (e.response && e.response.status) {
1213
1643
  if (e.response.status === 400 && e.response.data) {
1214
- pt(e, t, n, s, o, i);
1644
+ jt(e, t, n, a, u, d);
1215
1645
  return;
1216
1646
  }
1217
1647
  if (e.response.status === 409 && e.response.data) {
1218
- vt(e, s, o);
1648
+ Zt(e, a, u);
1219
1649
  return;
1220
1650
  }
1221
1651
  if (e.response.status === 417 && e.response.data) {
1222
- _t(s, o);
1652
+ Gt(a, u);
1223
1653
  return;
1224
1654
  }
1225
1655
  }
1226
- s(e);
1227
- }, ft = () => {
1656
+ a(e);
1657
+ }, Nt = () => {
1228
1658
  setTimeout(() => {
1229
1659
  const e = document.querySelector(".v-input--error, .ec-input.local-err");
1230
1660
  if (e == null)
@@ -1232,52 +1662,52 @@ const Ht = /* @__PURE__ */ C(lt, [["render", dt]]), Et = (e) => e ? e.replace(/(
1232
1662
  const t = e.querySelector("input, textarea, .ec-inp-ctrl");
1233
1663
  t?.focus();
1234
1664
  }, 200);
1235
- }, pt = (e, t, n, s, o, i = null) => {
1236
- const u = [];
1237
- let d = !1, g = {};
1665
+ }, jt = (e, t, n, a, u, d = null) => {
1666
+ const c = [];
1667
+ let f = !1, v = {};
1238
1668
  if (Array.isArray(e.response.data))
1239
- for (let c = 0; c < e.response.data.length; c++)
1240
- u.push(e.response.data[c]);
1669
+ for (let i = 0; i < e.response.data.length; i++)
1670
+ c.push(e.response.data[i]);
1241
1671
  else
1242
- for (const c in e.response.data)
1243
- if (Object.prototype.hasOwnProperty.call(e.response.data, c)) {
1244
- const v = e.response.data[c];
1245
- if (gt(g, t, c, v[0]))
1246
- d = !0;
1672
+ for (const i in e.response.data)
1673
+ if (Object.prototype.hasOwnProperty.call(e.response.data, i)) {
1674
+ const p = e.response.data[i];
1675
+ if (Yt(v, t, i, p[0]))
1676
+ f = !0;
1247
1677
  else {
1248
- const _ = i && i[c] ? i[c] : c;
1249
- u.push({ error_message: `${_}: ${v}` });
1678
+ const h = d && d[i] ? d[i] : i;
1679
+ c.push({ error_message: `${h}: ${p}` });
1250
1680
  }
1251
1681
  }
1252
- u.length > 0 && (u.length === 1 ? s(u[0]) : s({
1253
- message: o("Some errors occured:"),
1254
- details: "<ul><li>" + u.map((c) => c.error_message).join("</li><li>") + "</li></ul>"
1255
- })), d && (n != null && (n.value = { ...n.value, ...g }), ft());
1256
- }, vt = (e, t, n) => {
1257
- let s = [];
1258
- typeof e.response.data == "string" ? s.push(e.response.data) : e.response.data.errors && (s = e.response.data.errors.map((o) => o.error_message)), t({
1682
+ c.length > 0 && (c.length === 1 ? a(c[0]) : a({
1683
+ message: u("Some errors occured:"),
1684
+ details: "<ul><li>" + c.map((i) => i.error_message).join("</li><li>") + "</li></ul>"
1685
+ })), f && (n != null && (n.value = { ...n.value, ...v }), Nt());
1686
+ }, Zt = (e, t, n) => {
1687
+ let a = [];
1688
+ typeof e.response.data == "string" ? a.push(e.response.data) : e.response.data.errors && (a = e.response.data.errors.map((u) => u.error_message)), t({
1259
1689
  title: n("Concurrency error"),
1260
- details: s.length === 1 ? s[0] : "<ul><li>" + s.join("</li><li>") + "</li></ul>",
1690
+ details: a.length === 1 ? a[0] : "<ul><li>" + a.join("</li><li>") + "</li></ul>",
1261
1691
  code: 409
1262
1692
  });
1263
- }, _t = (e, t) => {
1693
+ }, Gt = (e, t) => {
1264
1694
  e({
1265
1695
  title: t("Product version mismatch."),
1266
1696
  details: t("Please reload the page."),
1267
1697
  code: 417
1268
1698
  });
1269
- }, gt = (e, t, n, s) => {
1270
- const o = n.split(".");
1271
- let i = t, u = e;
1272
- for (; o.length > 0; ) {
1273
- const d = o.shift();
1274
- if (d) {
1275
- if (o.length === 0)
1276
- return /^\d+$/.test(d) ? !1 : Object.prototype.hasOwnProperty.call(i, d) ? (u[d] = s, !0) : !1;
1277
- if (/^\d+$/.test(d))
1278
- i = i[parseInt(d)], u[i.tmp_id] || (u[i.tmp_id] = {}), u = u[i.tmp_id];
1279
- else if (Object.prototype.hasOwnProperty.call(i, d))
1280
- i = i[d], u[d] || (u[d] = {}), u = u[d];
1699
+ }, Yt = (e, t, n, a) => {
1700
+ const u = n.split(".");
1701
+ let d = t, c = e;
1702
+ for (; u.length > 0; ) {
1703
+ const f = u.shift();
1704
+ if (f) {
1705
+ if (u.length === 0)
1706
+ return /^\d+$/.test(f) ? !1 : Object.prototype.hasOwnProperty.call(d, f) ? (c[f] = a, !0) : !1;
1707
+ if (/^\d+$/.test(f))
1708
+ d = d[parseInt(f)], c[d.tmp_id] || (c[d.tmp_id] = {}), c = c[d.tmp_id];
1709
+ else if (Object.prototype.hasOwnProperty.call(d, f))
1710
+ d = d[f], c[f] || (c[f] = {}), c = c[f];
1281
1711
  else
1282
1712
  return !1;
1283
1713
  }
@@ -1285,37 +1715,39 @@ const Ht = /* @__PURE__ */ C(lt, [["render", dt]]), Et = (e) => e ? e.replace(/(
1285
1715
  return !1;
1286
1716
  };
1287
1717
  export {
1288
- G as AccountAvatar,
1289
- Ye as ColorPicker,
1290
- zt as CultureInfos,
1291
- Ft as CurrencySymbols,
1292
- ge as CustomDialog,
1293
- kt as ErrorDialog,
1294
- Je as FieldLabel,
1295
- Ut as FieldRow,
1296
- St as InLanguages,
1297
- Lt as InnerLeftMenu,
1298
- I as LangUtil,
1299
- Z as Languages,
1300
- We as LazyLoadingProp,
1301
- Mt as PageSubtitle,
1302
- bt as PageTitle,
1303
- Ht as ProfileEditDialog,
1304
- Dt as ProfileInfo,
1305
- q as UserAvatar,
1306
- At as UserMenu,
1307
- Rt as clearLocalErrors,
1308
- qt as clnNumbCust,
1309
- Ot as clonePagingAndSort,
1310
- Vt as deepClone,
1311
- O as formatFullName,
1312
- Ct as formatInitials,
1313
- Bt as frmDateCust,
1314
- Nt as frmNumCust,
1315
- wt as getCookie,
1316
- It as handleErrorResponse,
1317
- Tt as isActive,
1318
- Qe as mapArrayToEnum,
1319
- Et as nl2br,
1320
- Pt as setCookie
1718
+ Z as AccountAvatar,
1719
+ We as ColorPicker,
1720
+ vn as CultureInfos,
1721
+ _n as CurrencySymbols,
1722
+ be as CustomDialog,
1723
+ un as DesktopLayout,
1724
+ nn as ErrorDialog,
1725
+ xe as FieldLabel,
1726
+ on as FieldRow,
1727
+ rn as InLanguages,
1728
+ xt as InnerLeftMenu,
1729
+ j as LangUtil,
1730
+ Y as Languages,
1731
+ et as LazyLoadingProp,
1732
+ an as MobileLayout,
1733
+ Xt as PageSubtitle,
1734
+ Qt as PageTitle,
1735
+ ln as ProfileEditDialog,
1736
+ sn as ProfileInfo,
1737
+ F as UserAvatar,
1738
+ tn as UserMenu,
1739
+ bn as clearLocalErrors,
1740
+ $n as clnNumbCust,
1741
+ gn as clonePagingAndSort,
1742
+ cn as deepClone,
1743
+ q as formatFullName,
1744
+ en as formatInitials,
1745
+ hn as frmDateCust,
1746
+ yn as frmNumCust,
1747
+ mn as getCookie,
1748
+ Mn as handleErrorResponse,
1749
+ fn as isActive,
1750
+ tt as mapArrayToEnum,
1751
+ dn as nl2br,
1752
+ pn as setCookie
1321
1753
  };