@vc-shell/framework 2.0.0-alpha.33-pr220.455e322 → 2.0.0-alpha.35
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/CHANGELOG.md +68 -0
- package/dist/framework.js +870 -856
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shell/auth/_test-utils/shared-dependency-mocks.d.ts +8 -0
- package/dist/shell/auth/_test-utils/shared-dependency-mocks.d.ts.map +1 -0
- package/dist/shell/auth/_test-utils/shared-mock-factories.d.ts +13 -0
- package/dist/shell/auth/_test-utils/shared-mock-factories.d.ts.map +1 -0
- package/dist/shell/auth/_test-utils/shared-stubs.d.ts +33 -0
- package/dist/shell/auth/_test-utils/shared-stubs.d.ts.map +1 -0
- package/dist/shell/auth/utils.d.ts +25 -0
- package/dist/shell/auth/utils.d.ts.map +1 -0
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/test-mock-factories.d.ts +48 -0
- package/dist/test-mock-factories.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vitest-axe.setup.d.ts.map +1 -1
- package/dist/vitest-mocks.setup.d.ts +2 -0
- package/dist/vitest-mocks.setup.d.ts.map +1 -0
- package/package.json +4 -4
package/dist/framework.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as Qa, b as es } from "./chunks/vendor-vueuse-core-CEdpDfzx.js";
|
|
2
|
-
import { bn as gt, bo as Ge, bp as ts, bq as Kt, br as j, bs as te, bt as Ke, bu as as, bv as ss, aw as os, bw as qe, bx as ns, by as rs, bz as Ne, bA as is, bB as qt, R as jt, a2 as ls, ac as Ee, af as mt, aa as je, ai as q, aL as cs, a3 as us, a1 as Ae, aR as Yt, bC as ce, bD as ds, bE as fs, bF as gs, aE as ms, U as Q, O as Le, ae as me, ap as Zt, Q as ps, bG as Es, bH as hs, bI as
|
|
3
|
-
import { B as
|
|
2
|
+
import { bn as gt, bo as Ge, bp as ts, bq as Kt, br as j, bs as te, bt as Ke, bu as as, bv as ss, aw as os, bw as qe, bx as ns, by as rs, bz as Ne, bA as is, bB as qt, R as jt, a2 as ls, ac as Ee, af as mt, aa as je, ai as q, aL as cs, a3 as us, a1 as Ae, aR as Yt, bC as ce, bD as ds, bE as fs, bF as gs, aE as ms, U as Q, O as Le, ae as me, ap as Zt, Q as ps, bG as Es, bH as hs, bI as Ss, aM as It, bJ as vs, bK as As, bL as bs, bM as Ts, bN as ws, bO as Ls, bP as Os, bQ as ys, bR as _s, bS as Is, bT as Rs, bU as Ps } from "./chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D71wkuIU.js";
|
|
3
|
+
import { B as jc, _ as Yc, a as Zc, b as Xc, c as Jc, d as Qc, e as eu, f as tu, g as au, h as su, i as ou, j as nu, bV as ru, bW as iu, C as lu, bX as cu, bY as uu, bZ as du, b_ as fu, b$ as gu, k as mu, c0 as pu, c1 as Eu, c2 as hu, c3 as Su, l as vu, m as Au, n as bu, o as Tu, p as wu, q as Lu, T as Ou, r as yu, s as _u, t as Iu, u as Ru, v as Pu, w as Cu, x as Du, c4 as Nu, c5 as ku, V as Bu, y as Mu, z as Vu, A as Fu, D as Uu, E as $u, F as Wu, G as Gu, H as xu, I as Hu, J as zu, K as Ku, L as qu, M as ju, N as Yu, P as Zu, c6 as Xu, c6 as Ju, c7 as Qu, S as ed, W as td, X as ad, Y as sd, Z as od, $ as nd, a0 as rd, a4 as id, a5 as ld, a6 as cd, a7 as ud, a8 as dd, a9 as fd, ab as gd, ad as md, ag as pd, ah as Ed, aj as hd, ak as Sd, al as vd, am as Ad, an as bd, ao as Td, aq as wd, ar as Ld, as as Od, at as yd, au as _d, av as Id, ax as Rd, ay as Pd, az as Cd, aA as Dd, aB as Nd, aC as kd, aD as Bd, aF as Md, aG as Vd, aH as Fd, aI as Ud, aJ as $d, aK as Wd, aN as Gd, aO as xd, aP as Hd, c8 as zd, c9 as Kd, ca as qd, cb as jd, aQ as Yd, cc as Zd, cd as Xd, ce as Jd, cf as Qd, cg as ef, ch as tf, ci as af, cj as sf, ck as of, cl as nf, cm as rf, cn as lf, co as cf, cp as uf, cq as df, cr as ff, cs as gf, ct as mf, aS as pf, cu as Ef, cv as hf, cw as Sf, cx as vf, cy as Af, cz as bf, cA as Tf, cB as wf, cC as Lf, cD as Of, cE as yf, cF as _f, cG as If, cH as Rf, cI as Pf, cJ as Cf, aT as Df, cK as Nf, aU as kf, aV as Bf, aW as Mf, cL as Vf, aX as Ff, aY as Uf, aZ as $f, cM as Wf, cN as Gf, a_ as xf, a$ as Hf, b0 as zf, b1 as Kf, cO as qf, b2 as jf, b3 as Yf, b4 as Zf, b5 as Xf, b6 as Jf, cP as Qf, b7 as eg, cQ as tg, cR as ag, b8 as sg, cS as og, b9 as ng, ba as rg, bb as ig, cT as lg, bc as cg, bd as ug, be as dg, bf as fg, bg as gg, bh as mg, bi as pg, bj as Eg, bk as hg, bl as Sg, cU as vg, bm as Ag, aQ as bg } from "./chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D71wkuIU.js";
|
|
4
4
|
import { a as Cs } from "./chunks/index-CDUdOax4.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as wg } from "./chunks/index-CDUdOax4.js";
|
|
6
6
|
import { d as H, p as Ds, e as Ns, f as ks, g as Bs, s as Ms, h as Vs, i as Fs, j as Us, k as $s, S as Ws, W as Xt, I as Jt, B as Qt, l as Gs, m as ea, n as pt, o as ta, _ as aa, q as xs, r as Hs, t as zs, v as Ks, w as qs, x as js, y as Ys, L as Zs, z as Xs, C as Js, F as Qs, G as eo, J as to, K as ao, T as so, M as oo, N as no, O as ro, P as io } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D0kWIlz3.js";
|
|
7
|
-
import { A as
|
|
8
|
-
import { getCurrentScope as sa, onScopeDispose as oa, computed as
|
|
7
|
+
import { A as Og, b as yg, Q as _g, R as Ig, U as Rg, V as Pg, X as Cg, Y as Dg, Z as Ng, $ as kg, a0 as Bg, a1 as Mg, a2 as Vg, a3 as Fg, a4 as Ug, a5 as $g, D as Wg, a6 as Gg, a7 as xg, a8 as Hg, a9 as zg, aa as Kg, ab as qg, ac as jg, ad as Yg, ae as Zg, E as Xg, af as Jg, ag as Qg, ah as em, ai as tm, H as am, aj as sm, ak as om, al as nm, am as rm, an as im, ao as lm, ap as cm, aq as um, ar as dm, as as fm, at as gm, au as mm, av as pm, aw as Em, ax as hm, ay as Sm, az as vm, aA as Am, aB as bm, aC as Tm, aD as wm, aE as Lm, aF as Om, a as ym, aG as _m, aH as Im, c as Rm, aI as Pm, aJ as Cm, aK as Dm, u as Nm, aL as km, aM as Bm, aN as Mm } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D0kWIlz3.js";
|
|
8
|
+
import { getCurrentScope as sa, onScopeDispose as oa, computed as y, inject as se, defineComponent as $, resolveComponent as lo, openBlock as h, createBlock as C, createSlots as Oe, withCtx as b, renderSlot as W, createElementVNode as N, normalizeClass as na, createElementBlock as k, Fragment as Y, createVNode as I, createTextVNode as G, toDisplayString as V, shallowReactive as co, ref as P, readonly as nt, onMounted as he, watch as oe, onBeforeMount as uo, onBeforeUnmount as fo, unref as c, onUnmounted as ra, provide as ia, toValue as la, isRef as ca, normalizeStyle as ye, createCommentVNode as F, withDirectives as ua, withModifiers as Ye, reactive as ue, createApp as go, nextTick as ge, renderList as ne, withKeys as Et, mergeProps as ae, shallowRef as mo, resolveDynamicComponent as po, getCurrentInstance as Eo, warn as ho, h as ie, toRaw as So } from "vue";
|
|
9
9
|
import "./chunks/ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
|
|
10
10
|
import "./chunks/vendor-dompurify-DpIUMBYC.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as Se } from "./chunks/vendor-vue-i18n-LO-EJStU.js";
|
|
12
12
|
import { useForm as de, useIsFormValid as _e, useIsFormDirty as ht, Field as X } from "vee-validate";
|
|
13
13
|
import { useRouter as Ie } from "vue-router";
|
|
14
14
|
import "./chunks/vendor-tiptap-starter-kit-ny-AoaO_.js";
|
|
@@ -83,35 +83,35 @@ import "./assets/208f810a9321a327.svg";
|
|
|
83
83
|
import "./assets/72de3a63bc0b70dd.svg";
|
|
84
84
|
import "./chunks/vendor-iso-639-1-BEjYyfKo.js";
|
|
85
85
|
import "./chunks/vendor-truncate-html-ChA1T5zy.js";
|
|
86
|
-
import { v as
|
|
86
|
+
import { v as vo } from "./chunks/vendor-vue3-touch-events-DqysuuWh.js";
|
|
87
87
|
import { G as Ao } from "./chunks/vendor-gridstack-Beau2jQ7.js";
|
|
88
88
|
import { A as bo, u as To } from "./chunks/vendor-vue3-application-insights-CAgbt8pk.js";
|
|
89
89
|
import { o as wo, c as J, d as Lo, a as Oo } from "./chunks/vendor-lodash-es-CfnUOh0o.js";
|
|
90
90
|
import { T as yo, x as _o, b as Io, S as Ro, $ as Po } from "./chunks/vendor-web-vitals-ByFgAM-8.js";
|
|
91
91
|
import { _ as Co } from "./chunks/index-BuTo_Lx8.js";
|
|
92
|
-
import { E as
|
|
93
|
-
import { S as da, z as
|
|
94
|
-
function
|
|
92
|
+
import { E as Fm, d as Um, u as $m } from "./chunks/index-BuTo_Lx8.js";
|
|
93
|
+
import { S as da, z as St, A as Do, C as No, a as Fe, w as ko, b as Bo, D as Mo, c as Vo, E as Fo } from "./chunks/vendor-unovis-vue-CZWGT3-0.js";
|
|
94
|
+
function ac(e) {
|
|
95
95
|
return e.replace(/[\w]([A-Z])/g, function(t) {
|
|
96
96
|
return t[0] + "_" + t[1];
|
|
97
97
|
}).toLowerCase();
|
|
98
98
|
}
|
|
99
99
|
const Uo = (e) => e.replace(/-./g, (t) => t[1].toUpperCase());
|
|
100
|
-
function
|
|
100
|
+
function sc(e) {
|
|
101
101
|
const t = Uo(e);
|
|
102
102
|
return t[0].toUpperCase() + t.substring(1);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function oc(e) {
|
|
105
105
|
return e.replace(/\W+(.)/g, function(t, a) {
|
|
106
106
|
return a.toUpperCase();
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
const $o = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "svg", "gif"]);
|
|
110
|
-
function
|
|
110
|
+
function vt(e) {
|
|
111
111
|
return e.split(".").pop()?.toLowerCase();
|
|
112
112
|
}
|
|
113
113
|
function fa(e) {
|
|
114
|
-
return e ? $o.has(
|
|
114
|
+
return e ? $o.has(vt(e) ?? "") : !1;
|
|
115
115
|
}
|
|
116
116
|
function ga(e, t = 2) {
|
|
117
117
|
if (!e) return "0 Bytes";
|
|
@@ -135,11 +135,11 @@ const Wo = {
|
|
|
135
135
|
};
|
|
136
136
|
function ma(e) {
|
|
137
137
|
if (!e) return "var(--neutrals-400)";
|
|
138
|
-
const t =
|
|
138
|
+
const t = vt(e) ?? "";
|
|
139
139
|
return Wo[t] ?? "var(--neutrals-400)";
|
|
140
140
|
}
|
|
141
141
|
function pa(e) {
|
|
142
|
-
return e ? (
|
|
142
|
+
return e ? (vt(e) ?? "FILE").toUpperCase() : "FILE";
|
|
143
143
|
}
|
|
144
144
|
const Go = {
|
|
145
145
|
install(e) {
|
|
@@ -147,16 +147,16 @@ const Go = {
|
|
|
147
147
|
e.config.globalProperties.$hasAccess = t, e.provide("$hasAccess", t);
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
function
|
|
150
|
+
function nc(e) {
|
|
151
151
|
const t = Ge(), a = t.subscribe({
|
|
152
152
|
types: e.types,
|
|
153
153
|
filter: e.filter,
|
|
154
154
|
handler: e.onMessage
|
|
155
155
|
});
|
|
156
156
|
sa() && oa(a);
|
|
157
|
-
const s =
|
|
157
|
+
const s = y(
|
|
158
158
|
() => t.realtime.value.filter((i) => !(!i.notifyType || !e.types.includes(i.notifyType) || !i.isNew || e.filter && !e.filter(i)))
|
|
159
|
-
), o =
|
|
159
|
+
), o = y(() => s.value.length);
|
|
160
160
|
function l(i) {
|
|
161
161
|
t.markAsRead(i);
|
|
162
162
|
}
|
|
@@ -166,7 +166,7 @@ function ac(e) {
|
|
|
166
166
|
markAsRead: l
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function rc() {
|
|
170
170
|
const e = se(ts);
|
|
171
171
|
if (!e)
|
|
172
172
|
throw new Error("useNotificationContext() must be used inside a notification template");
|
|
@@ -229,7 +229,7 @@ function At(e) {
|
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function ic(e, t, a, s) {
|
|
233
233
|
return At({
|
|
234
234
|
blades: e,
|
|
235
235
|
locales: t,
|
|
@@ -353,14 +353,14 @@ const Ko = {
|
|
|
353
353
|
close: r,
|
|
354
354
|
confirm: () => o(r)
|
|
355
355
|
}, () => [
|
|
356
|
-
|
|
356
|
+
N("div", {
|
|
357
357
|
class: na(["vc-popup-base__actions", {
|
|
358
358
|
"vc-popup-base__actions--confirm": e.mode === "confirm",
|
|
359
359
|
"vc-popup-base__actions--single": e.mode === "acknowledge"
|
|
360
360
|
}])
|
|
361
361
|
}, [
|
|
362
|
-
e.mode === "confirm" ? (h(),
|
|
363
|
-
|
|
362
|
+
e.mode === "confirm" ? (h(), k(Y, { key: 0 }, [
|
|
363
|
+
I(n, {
|
|
364
364
|
text: e.confirmAsText,
|
|
365
365
|
class: "vc-popup-base__confirm",
|
|
366
366
|
onClick: (u) => o(r)
|
|
@@ -370,7 +370,7 @@ const Ko = {
|
|
|
370
370
|
]),
|
|
371
371
|
_: 1
|
|
372
372
|
}, 8, ["text", "onClick"]),
|
|
373
|
-
|
|
373
|
+
I(n, { onClick: r }, {
|
|
374
374
|
default: b(() => [
|
|
375
375
|
G(V(e.cancelLabel), 1)
|
|
376
376
|
]),
|
|
@@ -549,7 +549,7 @@ const Xo = {
|
|
|
549
549
|
gap: 20
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
|
-
function
|
|
552
|
+
function lc(e) {
|
|
553
553
|
return Jo[e];
|
|
554
554
|
}
|
|
555
555
|
function Qo(e, t) {
|
|
@@ -581,7 +581,7 @@ function an(e, t) {
|
|
|
581
581
|
}, t));
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function cc() {
|
|
585
585
|
return {
|
|
586
586
|
debounce: Qo,
|
|
587
587
|
delay: en,
|
|
@@ -589,18 +589,18 @@ function rc() {
|
|
|
589
589
|
throttle: an
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function uc(e) {
|
|
593
593
|
const t = Ge(), a = e ? Array.isArray(e) ? e : [e] : [];
|
|
594
594
|
let s, o;
|
|
595
595
|
a.length && (o = t.subscribe({
|
|
596
596
|
types: a,
|
|
597
597
|
handler: (i) => s?.(i)
|
|
598
598
|
}), sa() && oa(() => o?.()));
|
|
599
|
-
const l =
|
|
599
|
+
const l = y(() => a.length ? t.realtime.value.filter(
|
|
600
600
|
(i) => i.isNew && i.notifyType != null && a.includes(i.notifyType)
|
|
601
601
|
) : []);
|
|
602
602
|
return {
|
|
603
|
-
notifications:
|
|
603
|
+
notifications: y(() => wo(t.history.value, ["created"], ["desc"])),
|
|
604
604
|
moduleNotifications: l,
|
|
605
605
|
loadFromHistory: t.loadHistory,
|
|
606
606
|
addNotification: t.ingest,
|
|
@@ -649,8 +649,8 @@ function on(e) {
|
|
|
649
649
|
getApiClient: t
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function Sa(...e) {
|
|
653
|
+
return y(() => e.some((t) => t.value));
|
|
654
654
|
}
|
|
655
655
|
function Re() {
|
|
656
656
|
const e = P(), t = P(!1), { getApiClient: a } = on(Ws), { loading: s, action: o } = ha(async () => {
|
|
@@ -674,9 +674,9 @@ function Re() {
|
|
|
674
674
|
return he(async () => {
|
|
675
675
|
!e.value && !t.value && await o();
|
|
676
676
|
}), {
|
|
677
|
-
uiSettings:
|
|
677
|
+
uiSettings: y(() => e.value ?? {}),
|
|
678
678
|
applySettings: l,
|
|
679
|
-
loading:
|
|
679
|
+
loading: Sa(s)
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
const Pt = H("use-assets"), nn = 4;
|
|
@@ -701,7 +701,7 @@ async function ln(e, t, a) {
|
|
|
701
701
|
}
|
|
702
702
|
return s;
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function dc() {
|
|
705
705
|
const e = P(!1);
|
|
706
706
|
async function t(o, l, i) {
|
|
707
707
|
try {
|
|
@@ -742,7 +742,7 @@ function lc() {
|
|
|
742
742
|
upload: t,
|
|
743
743
|
remove: a,
|
|
744
744
|
edit: s,
|
|
745
|
-
loading:
|
|
745
|
+
loading: y(() => e.value)
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
const cn = H("use-assets-manager"), un = 4;
|
|
@@ -767,7 +767,7 @@ async function fn(e, t, a) {
|
|
|
767
767
|
}
|
|
768
768
|
return s;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function fc(e, t) {
|
|
771
771
|
const a = P(!1), s = P(e.value ?? []);
|
|
772
772
|
oe(
|
|
773
773
|
() => e.value,
|
|
@@ -779,18 +779,18 @@ function cc(e, t) {
|
|
|
779
779
|
function o() {
|
|
780
780
|
e.value = s.value;
|
|
781
781
|
}
|
|
782
|
-
const l = s, i =
|
|
782
|
+
const l = s, i = y(() => a.value), n = t.concurrency ?? un, r = t.assetKey ?? "url";
|
|
783
783
|
async function u(w, T) {
|
|
784
784
|
try {
|
|
785
785
|
a.value = !0;
|
|
786
|
-
const
|
|
787
|
-
|
|
788
|
-
(
|
|
786
|
+
const v = Array.from(w), O = t.uploadPath(), A = (await fn(
|
|
787
|
+
v,
|
|
788
|
+
(_, B) => dn(_, O, B, T),
|
|
789
789
|
n
|
|
790
|
-
)).filter((
|
|
791
|
-
s.value = [...s.value, ...
|
|
792
|
-
} catch (
|
|
793
|
-
throw cn.error("Upload failed:",
|
|
790
|
+
)).filter((_) => _ !== null);
|
|
791
|
+
s.value = [...s.value, ...A], o();
|
|
792
|
+
} catch (v) {
|
|
793
|
+
throw cn.error("Upload failed:", v), v;
|
|
794
794
|
} finally {
|
|
795
795
|
a.value = !1;
|
|
796
796
|
}
|
|
@@ -801,17 +801,17 @@ function cc(e, t) {
|
|
|
801
801
|
async function p(w) {
|
|
802
802
|
if (t.confirmRemove && !await t.confirmRemove())
|
|
803
803
|
return;
|
|
804
|
-
const T = new Set(w.map((
|
|
805
|
-
s.value = s.value.filter((
|
|
804
|
+
const T = new Set(w.map((v) => v[r]));
|
|
805
|
+
s.value = s.value.filter((v) => !T.has(v[r])), o();
|
|
806
806
|
}
|
|
807
807
|
function g(w) {
|
|
808
808
|
s.value = w.map((T) => ({ ...T })), o();
|
|
809
809
|
}
|
|
810
810
|
function d(w) {
|
|
811
|
-
const T = s.value.findIndex((
|
|
811
|
+
const T = s.value.findIndex((v) => v[r] === w[r]);
|
|
812
812
|
if (T !== -1) {
|
|
813
|
-
const
|
|
814
|
-
|
|
813
|
+
const v = [...s.value];
|
|
814
|
+
v[T] = { ...s.value[T], ...w }, s.value = v, o();
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
return {
|
|
@@ -837,7 +837,7 @@ const gn = (e) => {
|
|
|
837
837
|
modified: e
|
|
838
838
|
};
|
|
839
839
|
};
|
|
840
|
-
function
|
|
840
|
+
function ve(e) {
|
|
841
841
|
return !!(e == null || typeof e == "number" && isNaN(e) || typeof e == "string" && e.trim().length === 0 || typeof e == "object" && Object.keys(e).length === 0);
|
|
842
842
|
}
|
|
843
843
|
function pe(e) {
|
|
@@ -859,14 +859,14 @@ function x(e) {
|
|
|
859
859
|
return { isInherited: !1, ...e };
|
|
860
860
|
}
|
|
861
861
|
function xe(e, t) {
|
|
862
|
-
e.values && (pe(e) && t ? e.values = e.values.filter((a) => a.languageCode !== t) : e.values = [], e.values.length > 0 && e.values.every((a) =>
|
|
862
|
+
e.values && (pe(e) && t ? e.values = e.values.filter((a) => a.languageCode !== t) : e.values = [], e.values.length > 0 && e.values.every((a) => ve(a.value)) && (e.values = []));
|
|
863
863
|
}
|
|
864
864
|
const En = {
|
|
865
865
|
get(e, t) {
|
|
866
866
|
return pe(e) ? Te(e) ? e.values?.filter((s) => s.languageCode === t) ?? [] : (e.values?.find((s) => s.languageCode === t) ?? e.values?.find((s) => !s.languageCode))?.value ?? "" : Te(e) ? e.values ?? [] : e.values?.[0]?.value ?? "";
|
|
867
867
|
},
|
|
868
868
|
set(e, t, a) {
|
|
869
|
-
if (!Array.isArray(t) &&
|
|
869
|
+
if (!Array.isArray(t) && ve(t)) {
|
|
870
870
|
xe(e, a.locale);
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
@@ -895,20 +895,20 @@ const En = {
|
|
|
895
895
|
set(e, t, a) {
|
|
896
896
|
e.values?.[0] ? Object.assign(e.values[0], { value: t }) : e.values = [x({ value: t })];
|
|
897
897
|
}
|
|
898
|
-
},
|
|
898
|
+
}, Sn = {
|
|
899
899
|
get(e, t) {
|
|
900
900
|
return pe(e) ? Te(e) ? e.values?.filter((s) => s.languageCode === t) ?? [] : (e.values?.find((s) => s.languageCode === t) ?? e.values?.find((s) => !s.languageCode))?.valueId ?? "" : Te(e) ? e.values ?? [] : e.values?.[0]?.valueId ?? "";
|
|
901
901
|
},
|
|
902
902
|
set(e, t, a) {
|
|
903
903
|
const { dictionary: s, locale: o } = a;
|
|
904
|
-
if (!Array.isArray(t) &&
|
|
904
|
+
if (!Array.isArray(t) && ve(t)) {
|
|
905
905
|
xe(e, o);
|
|
906
906
|
return;
|
|
907
907
|
}
|
|
908
|
-
s?.length && (pe(e) ?
|
|
908
|
+
s?.length && (pe(e) ? vn(e, t, s, o) : Tn(e, t, s));
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
function
|
|
911
|
+
function vn(e, t, a, s) {
|
|
912
912
|
Array.isArray(t) ? An(
|
|
913
913
|
e,
|
|
914
914
|
t,
|
|
@@ -978,7 +978,7 @@ function Tn(e, t, a) {
|
|
|
978
978
|
} : s);
|
|
979
979
|
});
|
|
980
980
|
else {
|
|
981
|
-
if (
|
|
981
|
+
if (ve(t)) {
|
|
982
982
|
e.values = [];
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
@@ -999,7 +999,7 @@ const wn = {
|
|
|
999
999
|
return e.values?.[0]?.value ?? "";
|
|
1000
1000
|
},
|
|
1001
1001
|
set(e, t, a) {
|
|
1002
|
-
if (
|
|
1002
|
+
if (ve(t)) {
|
|
1003
1003
|
xe(e);
|
|
1004
1004
|
return;
|
|
1005
1005
|
}
|
|
@@ -1010,7 +1010,7 @@ const wn = {
|
|
|
1010
1010
|
return Te(e) ? e.values ?? [] : e.values?.[0]?.value ?? "";
|
|
1011
1011
|
},
|
|
1012
1012
|
set(e, t, a) {
|
|
1013
|
-
if (!Array.isArray(t) &&
|
|
1013
|
+
if (!Array.isArray(t) && ve(t)) {
|
|
1014
1014
|
xe(e);
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
@@ -1020,9 +1020,9 @@ const wn = {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
1022
|
function Dt(e) {
|
|
1023
|
-
return mn(e) ? wn : pn(e) && !Ct(e) ? Ln : e.valueType === "Boolean" ? hn : Ct(e) ?
|
|
1023
|
+
return mn(e) ? wn : pn(e) && !Ct(e) ? Ln : e.valueType === "Boolean" ? hn : Ct(e) ? Sn : En;
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function gc(e) {
|
|
1026
1026
|
const { searchDictionary: t, searchMeasurements: a } = e, { loading: s, action: o } = ha(async (u) => {
|
|
1027
1027
|
if (u)
|
|
1028
1028
|
return await t(u);
|
|
@@ -1055,10 +1055,10 @@ function uc(e) {
|
|
|
1055
1055
|
setPropertyValue: r,
|
|
1056
1056
|
loadDictionaries: l,
|
|
1057
1057
|
loadMeasurements: i,
|
|
1058
|
-
loading:
|
|
1058
|
+
loading: Sa(s)
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function mc(e) {
|
|
1062
1062
|
const t = (s) => {
|
|
1063
1063
|
}, a = (s) => {
|
|
1064
1064
|
(e ?? t)({
|
|
@@ -1069,8 +1069,8 @@ function dc(e) {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
yo(a), _o(a), Io(a), Ro(a), Po(a);
|
|
1071
1071
|
}
|
|
1072
|
-
const
|
|
1073
|
-
function
|
|
1072
|
+
const va = H("use-blade-widgets");
|
|
1073
|
+
function pc(e) {
|
|
1074
1074
|
const t = se(Xt);
|
|
1075
1075
|
if (!t)
|
|
1076
1076
|
throw new Jt("WidgetService");
|
|
@@ -1089,7 +1089,7 @@ function fc(e) {
|
|
|
1089
1089
|
});
|
|
1090
1090
|
function l(n) {
|
|
1091
1091
|
const u = a.getWidgets(o).find((f) => f.id === n);
|
|
1092
|
-
u?.trigger?.onRefresh ? u.trigger.onRefresh() :
|
|
1092
|
+
u?.trigger?.onRefresh ? u.trigger.onRefresh() : va.warn(`Widget '${n}' has no trigger.onRefresh registered.`);
|
|
1093
1093
|
}
|
|
1094
1094
|
function i() {
|
|
1095
1095
|
const n = a.getWidgets(o);
|
|
@@ -1098,10 +1098,10 @@ function fc(e) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return { refresh: l, refreshAll: i };
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Ec(e) {
|
|
1102
1102
|
const t = se(Gs);
|
|
1103
1103
|
if (!t) {
|
|
1104
|
-
|
|
1104
|
+
va.warn("useWidgetTrigger() called outside WidgetContainer scope — trigger will not be registered.");
|
|
1105
1105
|
return;
|
|
1106
1106
|
}
|
|
1107
1107
|
t.setTrigger(e);
|
|
@@ -1131,13 +1131,13 @@ function yn(e) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
return t;
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function hc(e) {
|
|
1135
1135
|
ia(
|
|
1136
1136
|
ea,
|
|
1137
|
-
|
|
1137
|
+
y(() => yn(la(e)))
|
|
1138
1138
|
);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Sc() {
|
|
1141
1141
|
const e = se(ea);
|
|
1142
1142
|
if (!e)
|
|
1143
1143
|
throw new Jt("BladeContext");
|
|
@@ -1151,7 +1151,7 @@ function kt(e, t) {
|
|
|
1151
1151
|
if (Nt(a) && Nt(s)) return !0;
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function vc(e) {
|
|
1155
1155
|
const t = (i) => J(c(i)), a = P(t(e)), s = P(t(e)), o = P(!1);
|
|
1156
1156
|
ca(e) && oe(
|
|
1157
1157
|
e,
|
|
@@ -1180,7 +1180,7 @@ function Ec(e) {
|
|
|
1180
1180
|
return {
|
|
1181
1181
|
currentValue: s,
|
|
1182
1182
|
pristineValue: a,
|
|
1183
|
-
isModified:
|
|
1183
|
+
isModified: y(() => o.value),
|
|
1184
1184
|
resetModificationState: l
|
|
1185
1185
|
};
|
|
1186
1186
|
}
|
|
@@ -1195,7 +1195,7 @@ const Nn = /* @__PURE__ */ $({
|
|
|
1195
1195
|
setup(e) {
|
|
1196
1196
|
const { options: t, closeSelf: a } = pt();
|
|
1197
1197
|
de({ validateOnMount: !1 });
|
|
1198
|
-
const s = _e(), o = ht(), { t: l } =
|
|
1198
|
+
const s = _e(), o = ht(), { t: l } = Se({ useScope: "global" }), i = P({ ...t.value?.asset }), n = y(() => t.value?.disabled), r = y({
|
|
1199
1199
|
get() {
|
|
1200
1200
|
const g = i.value.name;
|
|
1201
1201
|
if (!g) return "";
|
|
@@ -1208,7 +1208,7 @@ const Nn = /* @__PURE__ */ $({
|
|
|
1208
1208
|
const w = d.lastIndexOf("."), T = w > 0 ? d.slice(w) : "";
|
|
1209
1209
|
i.value.name = g ? g + T : "";
|
|
1210
1210
|
}
|
|
1211
|
-
}), u =
|
|
1211
|
+
}), u = y(() => !o.value || !s.value), f = P([
|
|
1212
1212
|
{
|
|
1213
1213
|
id: "save",
|
|
1214
1214
|
title: l("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
|
|
@@ -1216,7 +1216,7 @@ const Nn = /* @__PURE__ */ $({
|
|
|
1216
1216
|
async clickHandler() {
|
|
1217
1217
|
t.value?.assetEditHandler && typeof t.value?.assetEditHandler == "function" && (await t.value?.assetEditHandler(i.value), a());
|
|
1218
1218
|
},
|
|
1219
|
-
disabled:
|
|
1219
|
+
disabled: y(() => u.value || n.value)
|
|
1220
1220
|
},
|
|
1221
1221
|
{
|
|
1222
1222
|
id: "delete",
|
|
@@ -1225,46 +1225,46 @@ const Nn = /* @__PURE__ */ $({
|
|
|
1225
1225
|
async clickHandler() {
|
|
1226
1226
|
t.value?.assetRemoveHandler && typeof t.value?.assetRemoveHandler == "function" && (await t.value?.assetRemoveHandler(i.value), a());
|
|
1227
1227
|
},
|
|
1228
|
-
disabled:
|
|
1228
|
+
disabled: y(() => n.value)
|
|
1229
1229
|
}
|
|
1230
|
-
]), p =
|
|
1230
|
+
]), p = y(() => i.value?.typeId);
|
|
1231
1231
|
return (g, d) => (h(), C(c(jt), {
|
|
1232
1232
|
title: c(t)?.asset?.name,
|
|
1233
1233
|
subtitle: c(l)("ASSETS.PAGES.DETAILS.SUBTITLE"),
|
|
1234
1234
|
"toolbar-items": f.value
|
|
1235
1235
|
}, {
|
|
1236
1236
|
default: b(() => [
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1237
|
+
N("div", _n, [
|
|
1238
|
+
N("div", In, [
|
|
1239
|
+
I(c(ls), { "no-padding": !0 }, {
|
|
1240
1240
|
default: b(() => [
|
|
1241
|
-
|
|
1242
|
-
|
|
1241
|
+
N("div", Rn, [
|
|
1242
|
+
I(c(Ee), null, {
|
|
1243
1243
|
default: b(() => [
|
|
1244
|
-
|
|
1244
|
+
N("div", Pn, [
|
|
1245
1245
|
c(fa)(i.value.name) ? (h(), C(c(mt), {
|
|
1246
1246
|
key: 0,
|
|
1247
1247
|
src: i.value.url,
|
|
1248
1248
|
size: "xl",
|
|
1249
1249
|
bordered: !0,
|
|
1250
1250
|
class: "tw-shrink-0"
|
|
1251
|
-
}, null, 8, ["src"])) : (h(),
|
|
1252
|
-
|
|
1251
|
+
}, null, 8, ["src"])) : (h(), k("div", Cn, [
|
|
1252
|
+
N("div", {
|
|
1253
1253
|
class: "assets-details__file-badge",
|
|
1254
1254
|
style: ye({ backgroundColor: c(ma)(i.value.name) })
|
|
1255
1255
|
}, V(c(pa)(i.value.name)), 5)
|
|
1256
1256
|
])),
|
|
1257
|
-
|
|
1258
|
-
|
|
1257
|
+
N("div", Dn, [
|
|
1258
|
+
I(c(je), {
|
|
1259
1259
|
label: c(l)("ASSETS.PAGES.DETAILS.FIELDS.SIZE"),
|
|
1260
1260
|
"model-value": c(ga)(i.value.size)
|
|
1261
1261
|
}, null, 8, ["label", "model-value"]),
|
|
1262
|
-
|
|
1262
|
+
I(c(je), {
|
|
1263
1263
|
label: c(l)("ASSETS.PAGES.DETAILS.FIELDS.CREATED_DATE"),
|
|
1264
1264
|
"model-value": i.value.createdDate,
|
|
1265
1265
|
type: "date-ago"
|
|
1266
1266
|
}, null, 8, ["label", "model-value"]),
|
|
1267
|
-
|
|
1267
|
+
I(c(je), {
|
|
1268
1268
|
label: c(l)("ASSETS.PAGES.DETAILS.FIELDS.URL"),
|
|
1269
1269
|
"model-value": i.value.url,
|
|
1270
1270
|
"display-value": i.value.name,
|
|
@@ -1280,18 +1280,18 @@ const Nn = /* @__PURE__ */ $({
|
|
|
1280
1280
|
rules: "required",
|
|
1281
1281
|
"model-value": i.value.name
|
|
1282
1282
|
}, {
|
|
1283
|
-
default: b(({ errorMessage: w, handleChange: T, errors:
|
|
1284
|
-
|
|
1283
|
+
default: b(({ errorMessage: w, handleChange: T, errors: v }) => [
|
|
1284
|
+
I(c(q), {
|
|
1285
1285
|
modelValue: r.value,
|
|
1286
1286
|
"onUpdate:modelValue": [
|
|
1287
|
-
d[0] || (d[0] = (
|
|
1287
|
+
d[0] || (d[0] = (O) => r.value = O),
|
|
1288
1288
|
T
|
|
1289
1289
|
],
|
|
1290
1290
|
class: "tw-mb-4",
|
|
1291
1291
|
label: c(l)("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
|
|
1292
1292
|
clearable: "",
|
|
1293
1293
|
required: "",
|
|
1294
|
-
error: !!
|
|
1294
|
+
error: !!v.length,
|
|
1295
1295
|
"error-message": w,
|
|
1296
1296
|
placeholder: c(l)("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER"),
|
|
1297
1297
|
disabled: n.value
|
|
@@ -1341,48 +1341,48 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1341
1341
|
name: "AssetsManager",
|
|
1342
1342
|
__name: "assets-manager",
|
|
1343
1343
|
setup(e) {
|
|
1344
|
-
const t = H("assets-manager"), { options: a, openBlade: s } = pt(), { t: o } =
|
|
1344
|
+
const t = H("assets-manager"), { options: a, openBlade: s } = pt(), { t: o } = Se({ useScope: "global" }), l = y(() => a.value.manager), i = y(() => l.value.items.value ?? []), n = y(() => l.value.loading.value), r = y(() => a.value?.title || o("ASSETS_MANAGER.TITLE")), u = P(!1), f = P(), p = P([]), g = y(() => a.value?.disabled), d = P([
|
|
1345
1345
|
{
|
|
1346
1346
|
id: "add",
|
|
1347
|
-
title:
|
|
1347
|
+
title: y(() => o("ASSETS_MANAGER.TOOLBAR.ADD")),
|
|
1348
1348
|
icon: "lucide-plus",
|
|
1349
1349
|
clickHandler() {
|
|
1350
1350
|
R();
|
|
1351
1351
|
},
|
|
1352
|
-
disabled:
|
|
1353
|
-
isVisible:
|
|
1352
|
+
disabled: y(() => g.value),
|
|
1353
|
+
isVisible: y(() => !g.value)
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
1356
|
id: "delete",
|
|
1357
|
-
title:
|
|
1357
|
+
title: y(() => o("ASSETS_MANAGER.TOOLBAR.DELETE")),
|
|
1358
1358
|
icon: "lucide-trash-2",
|
|
1359
1359
|
async clickHandler() {
|
|
1360
1360
|
await l.value.removeMany(p.value);
|
|
1361
1361
|
},
|
|
1362
|
-
disabled:
|
|
1363
|
-
isVisible:
|
|
1362
|
+
disabled: y(() => !p.value.length || g.value),
|
|
1363
|
+
isVisible: y(() => !g.value)
|
|
1364
1364
|
}
|
|
1365
1365
|
]);
|
|
1366
1366
|
async function w(E) {
|
|
1367
1367
|
if (E.dragIndex !== E.dropIndex) {
|
|
1368
|
-
const m = E.value.map((
|
|
1368
|
+
const m = E.value.map((S, L) => (S.sortOrder = L, S));
|
|
1369
1369
|
l.value.reorder(m);
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
function T() {
|
|
1373
1373
|
g.value || (u.value = !0);
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function v() {
|
|
1376
1376
|
g.value || (u.value = !1);
|
|
1377
1377
|
}
|
|
1378
|
-
async function
|
|
1378
|
+
async function O(E) {
|
|
1379
1379
|
if (!g.value) {
|
|
1380
1380
|
const m = E.dataTransfer?.files;
|
|
1381
1381
|
if (m && m.length)
|
|
1382
1382
|
try {
|
|
1383
|
-
await
|
|
1384
|
-
} catch (
|
|
1385
|
-
throw t.error("Failed to upload dropped files:",
|
|
1383
|
+
await A(m);
|
|
1384
|
+
} catch (S) {
|
|
1385
|
+
throw t.error("Failed to upload dropped files:", S), S;
|
|
1386
1386
|
}
|
|
1387
1387
|
u.value = !1;
|
|
1388
1388
|
}
|
|
@@ -1390,9 +1390,9 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1390
1390
|
function R() {
|
|
1391
1391
|
f.value.value = "", f.value.click();
|
|
1392
1392
|
}
|
|
1393
|
-
async function
|
|
1393
|
+
async function A(E) {
|
|
1394
1394
|
if (!E || E.length === 0) return;
|
|
1395
|
-
const m = new Set((i.value ?? []).map((L) => L.name).filter(Boolean)),
|
|
1395
|
+
const m = new Set((i.value ?? []).map((L) => L.name).filter(Boolean)), S = new DataTransfer();
|
|
1396
1396
|
for (const L of Array.from(E)) {
|
|
1397
1397
|
let D = L.name;
|
|
1398
1398
|
if (m.has(D)) {
|
|
@@ -1401,25 +1401,25 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1401
1401
|
for (; m.has(D); )
|
|
1402
1402
|
D = `${z}_${re}${M}`, re++;
|
|
1403
1403
|
}
|
|
1404
|
-
m.add(D),
|
|
1404
|
+
m.add(D), S.items.add(new File([L], D, { type: L.type }));
|
|
1405
1405
|
}
|
|
1406
1406
|
try {
|
|
1407
1407
|
const L = i.value.reduce((D, M) => Math.max(D, M.sortOrder ?? 0), -1);
|
|
1408
|
-
await l.value.upload(
|
|
1408
|
+
await l.value.upload(S.files, L);
|
|
1409
1409
|
} catch (L) {
|
|
1410
1410
|
throw t.error("Failed to upload assets:", L), L;
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
|
-
async function
|
|
1414
|
-
const
|
|
1415
|
-
if (
|
|
1413
|
+
async function _(E) {
|
|
1414
|
+
const S = E.target.files;
|
|
1415
|
+
if (S && S.length)
|
|
1416
1416
|
try {
|
|
1417
|
-
await
|
|
1417
|
+
await A(S);
|
|
1418
1418
|
} catch (L) {
|
|
1419
1419
|
throw t.error("Failed to upload files:", L), L;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function B(E) {
|
|
1423
1423
|
s({
|
|
1424
1424
|
name: "AssetsDetails",
|
|
1425
1425
|
options: {
|
|
@@ -1440,7 +1440,7 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1440
1440
|
const U = () => [
|
|
1441
1441
|
{
|
|
1442
1442
|
icon: "lucide-trash-2",
|
|
1443
|
-
title:
|
|
1443
|
+
title: y(() => o("ASSETS_MANAGER.TABLE.ACTIONS.DELETE")),
|
|
1444
1444
|
type: "danger",
|
|
1445
1445
|
async clickHandler(E) {
|
|
1446
1446
|
await l.value.remove(E), p.value = [];
|
|
@@ -1453,15 +1453,15 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1453
1453
|
width: "70%"
|
|
1454
1454
|
}, {
|
|
1455
1455
|
default: b(() => [
|
|
1456
|
-
ua((h(),
|
|
1456
|
+
ua((h(), k("div", {
|
|
1457
1457
|
class: "tw-relative tw-h-full tw-flex-1",
|
|
1458
1458
|
onDragover: Ye(T, ["prevent", "stop"]),
|
|
1459
|
-
onDragleave: Ye(
|
|
1460
|
-
onDrop: Ye(
|
|
1459
|
+
onDragleave: Ye(v, ["prevent"]),
|
|
1460
|
+
onDrop: Ye(O, ["prevent", "stop"])
|
|
1461
1461
|
}, [
|
|
1462
|
-
|
|
1462
|
+
I(c(us), {
|
|
1463
1463
|
selection: p.value,
|
|
1464
|
-
"onUpdate:selection": m[0] || (m[0] = (
|
|
1464
|
+
"onUpdate:selection": m[0] || (m[0] = (S) => p.value = S),
|
|
1465
1465
|
items: i.value,
|
|
1466
1466
|
"state-key": "assets_manager",
|
|
1467
1467
|
"reorderable-rows": !g.value,
|
|
@@ -1474,63 +1474,63 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1474
1474
|
actionHandler: R
|
|
1475
1475
|
},
|
|
1476
1476
|
class: "tw-h-full tw-w-full",
|
|
1477
|
-
onRowClick: m[1] || (m[1] = ({ data:
|
|
1477
|
+
onRowClick: m[1] || (m[1] = ({ data: S }) => B(S)),
|
|
1478
1478
|
onRowReorder: w
|
|
1479
1479
|
}, {
|
|
1480
1480
|
default: b(() => [
|
|
1481
|
-
|
|
1481
|
+
I(c(Ae), {
|
|
1482
1482
|
id: "url",
|
|
1483
1483
|
title: c(o)("ASSETS_MANAGER.TABLE.HEADER.IMAGE"),
|
|
1484
1484
|
width: "10%",
|
|
1485
1485
|
"always-visible": ""
|
|
1486
1486
|
}, {
|
|
1487
|
-
body: b(({ data:
|
|
1488
|
-
|
|
1489
|
-
c(fa)(
|
|
1487
|
+
body: b(({ data: S }) => [
|
|
1488
|
+
N("div", Vn, [
|
|
1489
|
+
c(fa)(S.name ?? "") ? (h(), C(c(mt), {
|
|
1490
1490
|
key: 0,
|
|
1491
1491
|
bordered: !0,
|
|
1492
1492
|
size: "s",
|
|
1493
1493
|
aspect: "1x1",
|
|
1494
|
-
src:
|
|
1494
|
+
src: S.url,
|
|
1495
1495
|
background: "contain"
|
|
1496
|
-
}, null, 8, ["src"])) : (h(),
|
|
1496
|
+
}, null, 8, ["src"])) : (h(), k("div", {
|
|
1497
1497
|
key: 1,
|
|
1498
1498
|
class: "assets-manager__file-badge",
|
|
1499
|
-
style: ye({ backgroundColor: c(ma)(
|
|
1500
|
-
}, V(c(pa)(
|
|
1499
|
+
style: ye({ backgroundColor: c(ma)(S.name ?? "") })
|
|
1500
|
+
}, V(c(pa)(S.name ?? "")), 5))
|
|
1501
1501
|
])
|
|
1502
1502
|
]),
|
|
1503
1503
|
_: 1
|
|
1504
1504
|
}, 8, ["title"]),
|
|
1505
|
-
|
|
1505
|
+
I(c(Ae), {
|
|
1506
1506
|
id: "name",
|
|
1507
1507
|
title: c(o)("ASSETS_MANAGER.TABLE.HEADER.NAME"),
|
|
1508
1508
|
width: "20%",
|
|
1509
1509
|
"always-visible": ""
|
|
1510
1510
|
}, null, 8, ["title"]),
|
|
1511
|
-
|
|
1511
|
+
I(c(Ae), {
|
|
1512
1512
|
id: "size",
|
|
1513
1513
|
title: c(o)("ASSETS_MANAGER.TABLE.HEADER.SIZE"),
|
|
1514
1514
|
width: "20%",
|
|
1515
1515
|
"always-visible": ""
|
|
1516
1516
|
}, {
|
|
1517
|
-
body: b(({ data:
|
|
1518
|
-
|
|
1517
|
+
body: b(({ data: S }) => [
|
|
1518
|
+
N("div", null, V(c(ga)(S.size ?? 0)), 1)
|
|
1519
1519
|
]),
|
|
1520
1520
|
_: 1
|
|
1521
1521
|
}, 8, ["title"]),
|
|
1522
|
-
|
|
1522
|
+
I(c(Ae), {
|
|
1523
1523
|
id: "sortOrder",
|
|
1524
1524
|
title: c(o)("ASSETS_MANAGER.TABLE.HEADER.SORT_ORDER"),
|
|
1525
1525
|
width: "25%",
|
|
1526
1526
|
"always-visible": ""
|
|
1527
1527
|
}, {
|
|
1528
|
-
body: b(({ data:
|
|
1529
|
-
|
|
1528
|
+
body: b(({ data: S }) => [
|
|
1529
|
+
N("div", null, V(S.sortOrder), 1)
|
|
1530
1530
|
]),
|
|
1531
1531
|
_: 1
|
|
1532
1532
|
}, 8, ["title"]),
|
|
1533
|
-
|
|
1533
|
+
I(c(Ae), {
|
|
1534
1534
|
id: "createdDate",
|
|
1535
1535
|
title: c(o)("ASSETS_MANAGER.TABLE.HEADER.CREATED_DATE"),
|
|
1536
1536
|
width: "25%",
|
|
@@ -1543,14 +1543,14 @@ const Fn = /* @__PURE__ */ $({
|
|
|
1543
1543
|
], 32)), [
|
|
1544
1544
|
[c(Yt), n.value]
|
|
1545
1545
|
]),
|
|
1546
|
-
|
|
1546
|
+
N("input", {
|
|
1547
1547
|
ref_key: "uploader",
|
|
1548
1548
|
ref: f,
|
|
1549
1549
|
type: "file",
|
|
1550
1550
|
hidden: "",
|
|
1551
1551
|
multiple: "",
|
|
1552
1552
|
name: "assets_manager",
|
|
1553
|
-
onChange:
|
|
1553
|
+
onChange: _
|
|
1554
1554
|
}, null, 544)
|
|
1555
1555
|
]),
|
|
1556
1556
|
_: 1
|
|
@@ -1592,7 +1592,7 @@ function Ut() {
|
|
|
1592
1592
|
function $t() {
|
|
1593
1593
|
j.remove(ba);
|
|
1594
1594
|
}
|
|
1595
|
-
const Wt = P(!1), Ue = P(0), rt = P(!1), $e = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Set(), et =
|
|
1595
|
+
const Wt = P(!1), Ue = P(0), rt = P(!1), $e = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Set(), et = y(() => Ue.value > 0 || rt.value);
|
|
1596
1596
|
function Kn(e) {
|
|
1597
1597
|
const t = setTimeout(() => {
|
|
1598
1598
|
Ue.value++, $e.delete(e), it.add(e);
|
|
@@ -1651,11 +1651,11 @@ function jn(e) {
|
|
|
1651
1651
|
});
|
|
1652
1652
|
});
|
|
1653
1653
|
{
|
|
1654
|
-
let r = function(
|
|
1655
|
-
const R = typeof
|
|
1654
|
+
let r = function(O) {
|
|
1655
|
+
const R = typeof O == "string" ? O : O instanceof Request ? O.url : O.toString();
|
|
1656
1656
|
try {
|
|
1657
|
-
const
|
|
1658
|
-
return
|
|
1657
|
+
const A = new URL(R, window.location.origin);
|
|
1658
|
+
return A.origin === window.location.origin && A.pathname.startsWith("/api/");
|
|
1659
1659
|
} catch {
|
|
1660
1660
|
return !1;
|
|
1661
1661
|
}
|
|
@@ -1671,23 +1671,23 @@ function jn(e) {
|
|
|
1671
1671
|
let d = !1;
|
|
1672
1672
|
const w = setTimeout(() => {
|
|
1673
1673
|
d = !0, g.abort();
|
|
1674
|
-
}, 3e4), T = f?.signal,
|
|
1675
|
-
T?.aborted ?
|
|
1674
|
+
}, 3e4), T = f?.signal, v = () => g.abort();
|
|
1675
|
+
T?.aborted ? v() : T && T.addEventListener("abort", v, { once: !0 });
|
|
1676
1676
|
try {
|
|
1677
|
-
const
|
|
1677
|
+
const O = await t(u, {
|
|
1678
1678
|
...f || {},
|
|
1679
1679
|
signal: g.signal
|
|
1680
1680
|
});
|
|
1681
|
-
return
|
|
1681
|
+
return O.status === 401 && s.value && a().then(() => {
|
|
1682
1682
|
Yn(e), j.error(
|
|
1683
1683
|
`Access Denied: Your session has expired or you do not have the necessary permissions.
|
|
1684
1684
|
Please log in again or contact the administrator for assistance.`
|
|
1685
1685
|
);
|
|
1686
|
-
}),
|
|
1687
|
-
} catch (
|
|
1688
|
-
throw d ? new Error("Request timed out. Please try again.") :
|
|
1686
|
+
}), O;
|
|
1687
|
+
} catch (O) {
|
|
1688
|
+
throw d ? new Error("Request timed out. Please try again.") : O;
|
|
1689
1689
|
} finally {
|
|
1690
|
-
l(p), clearTimeout(w), T && T.removeEventListener("abort",
|
|
1690
|
+
l(p), clearTimeout(w), T && T.removeEventListener("abort", v);
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
1693
|
}, window.fetch;
|
|
@@ -1877,7 +1877,7 @@ function ir() {
|
|
|
1877
1877
|
async function l(r) {
|
|
1878
1878
|
const u = r.position || e.position;
|
|
1879
1879
|
if (!xt(u)) {
|
|
1880
|
-
const p = o(u), { default: g } = await Promise.resolve().then(() =>
|
|
1880
|
+
const p = o(u), { default: g } = await Promise.resolve().then(() => fi), d = go(g, {
|
|
1881
1881
|
...r,
|
|
1882
1882
|
position: u
|
|
1883
1883
|
// Pass the position to the component
|
|
@@ -1990,7 +1990,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
1990
1990
|
},
|
|
1991
1991
|
emits: ["close"],
|
|
1992
1992
|
setup(e, { emit: t }) {
|
|
1993
|
-
const a = e, s = t, { isMobile: o, isDesktop: l } = gs(), i =
|
|
1993
|
+
const a = e, s = t, { isMobile: o, isDesktop: l } = gs(), i = y(() => a.render === "always" ? !0 : a.render === "mobile" ? o.value : l.value), n = y(() => a.isExpanded && i.value);
|
|
1994
1994
|
function r(u) {
|
|
1995
1995
|
u || s("close");
|
|
1996
1996
|
}
|
|
@@ -2017,7 +2017,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2017
2017
|
} : void 0
|
|
2018
2018
|
]), 1032, ["position", "title", "close-button", "teleport"])) : W(u.$slots, "content", { key: 1 });
|
|
2019
2019
|
}
|
|
2020
|
-
}),
|
|
2020
|
+
}), Ac = cr, ur = { class: "tw-flex tw-flex-row tw-items-center tw-gap-2" }, dr = /* @__PURE__ */ $({
|
|
2021
2021
|
__name: "external-provider",
|
|
2022
2022
|
props: {
|
|
2023
2023
|
logo: {},
|
|
@@ -2026,15 +2026,15 @@ const cr = /* @__PURE__ */ $({
|
|
|
2026
2026
|
},
|
|
2027
2027
|
emits: ["signIn"],
|
|
2028
2028
|
setup(e) {
|
|
2029
|
-
const t = e, a =
|
|
2029
|
+
const t = e, a = y(() => t.logo && !t.logo.startsWith("data:image") && !t.logo.startsWith("http") ? new URL(t.logo, window.location.origin).toString() : t.logo);
|
|
2030
2030
|
return (s, o) => (h(), C(c(Q), {
|
|
2031
2031
|
variant: "secondary",
|
|
2032
2032
|
class: "vc-external-provider",
|
|
2033
2033
|
onClick: o[0] || (o[0] = (l) => s.$emit("signIn"))
|
|
2034
2034
|
}, {
|
|
2035
2035
|
default: b(() => [
|
|
2036
|
-
|
|
2037
|
-
|
|
2036
|
+
N("div", ur, [
|
|
2037
|
+
I(c(mt), {
|
|
2038
2038
|
src: a.value,
|
|
2039
2039
|
class: "vc-external-provider__icon",
|
|
2040
2040
|
size: "xxs"
|
|
@@ -2052,8 +2052,8 @@ const cr = /* @__PURE__ */ $({
|
|
|
2052
2052
|
},
|
|
2053
2053
|
setup(e) {
|
|
2054
2054
|
const { signIn: t } = ta();
|
|
2055
|
-
return (a, s) => (h(),
|
|
2056
|
-
(h(!0),
|
|
2055
|
+
return (a, s) => (h(), k("div", fr, [
|
|
2056
|
+
(h(!0), k(Y, null, ne(e.providers, (o) => (h(), C(dr, {
|
|
2057
2057
|
key: o.authenticationType,
|
|
2058
2058
|
logo: o.logoUrl,
|
|
2059
2059
|
"display-name": o.displayName,
|
|
@@ -2062,13 +2062,26 @@ const cr = /* @__PURE__ */ $({
|
|
|
2062
2062
|
}, null, 8, ["logo", "display-name", "authentication-type", "onSignIn"]))), 128))
|
|
2063
2063
|
]));
|
|
2064
2064
|
}
|
|
2065
|
-
})
|
|
2065
|
+
});
|
|
2066
|
+
function mr(e) {
|
|
2067
|
+
if (!e) return "/";
|
|
2068
|
+
const t = e.trim();
|
|
2069
|
+
return !t.startsWith("/") || t.startsWith("//") ? "/" : t;
|
|
2070
|
+
}
|
|
2071
|
+
function pr(e) {
|
|
2072
|
+
return e.status === 401 ? "The login or password is incorrect." : e.status ? "Authentication error (code: " + e.status + ")." : e.error ? "Authentication error: " + e.error : "The login or password is incorrect.";
|
|
2073
|
+
}
|
|
2074
|
+
function Er(e) {
|
|
2075
|
+
const t = [];
|
|
2076
|
+
return e.confirmPassword !== e.password && t.push({ code: "Repeat-password" }), e.password === e.currentPassword && e.confirmPassword === e.currentPassword && t.push({ code: "Equal-passwords" }), t;
|
|
2077
|
+
}
|
|
2078
|
+
const hr = {
|
|
2066
2079
|
key: 0,
|
|
2067
2080
|
class: "vc-login-page__providers"
|
|
2068
|
-
},
|
|
2081
|
+
}, Sr = {
|
|
2069
2082
|
key: 0,
|
|
2070
2083
|
class: "vc-login-page__separator-line"
|
|
2071
|
-
},
|
|
2084
|
+
}, vr = /* @__PURE__ */ $({
|
|
2072
2085
|
__name: "Login",
|
|
2073
2086
|
props: {
|
|
2074
2087
|
logo: {},
|
|
@@ -2082,34 +2095,28 @@ const cr = /* @__PURE__ */ $({
|
|
|
2082
2095
|
he(async () => {
|
|
2083
2096
|
d.value = await p(), w.value = !0;
|
|
2084
2097
|
});
|
|
2085
|
-
const T =
|
|
2098
|
+
const T = y(() => ({
|
|
2086
2099
|
logo: i.value ? "" : l.value?.logo || a.logo
|
|
2087
|
-
})),
|
|
2100
|
+
})), v = ue({
|
|
2088
2101
|
username: "",
|
|
2089
2102
|
password: ""
|
|
2090
|
-
})
|
|
2091
|
-
function _(A) {
|
|
2092
|
-
if (!A) return "/";
|
|
2093
|
-
const N = A.trim();
|
|
2094
|
-
return !N.startsWith("/") || N.startsWith("//") ? "/" : N;
|
|
2095
|
-
}
|
|
2096
|
-
const R = async () => {
|
|
2103
|
+
}), O = async () => {
|
|
2097
2104
|
if (g.value) {
|
|
2098
|
-
if (n.value.error = "", n.value = await r(
|
|
2105
|
+
if (n.value.error = "", n.value = await r(v.username, v.password), n.value.succeeded && f.value?.passwordExpired) {
|
|
2099
2106
|
await s.push({ name: "ChangePassword" });
|
|
2100
2107
|
return;
|
|
2101
2108
|
}
|
|
2102
2109
|
if (n.value.succeeded) {
|
|
2103
|
-
const A =
|
|
2110
|
+
const A = mr(localStorage.getItem("redirectAfterLogin"));
|
|
2104
2111
|
localStorage.removeItem("redirectAfterLogin"), await s.push(A);
|
|
2105
2112
|
return;
|
|
2106
2113
|
}
|
|
2107
|
-
n.value.
|
|
2114
|
+
n.value.error = pr(n.value), v.password = "", o("password");
|
|
2108
2115
|
}
|
|
2109
|
-
},
|
|
2116
|
+
}, R = () => {
|
|
2110
2117
|
s.push({ name: "ForgotPassword" });
|
|
2111
2118
|
};
|
|
2112
|
-
return t.debug("Init login-page"), (A,
|
|
2119
|
+
return t.debug("Init login-page"), (A, _) => (h(), C(c(Le), {
|
|
2113
2120
|
logo: T.value.logo,
|
|
2114
2121
|
background: e.background,
|
|
2115
2122
|
title: e.title || A.$t("LOGIN.TITLE"),
|
|
@@ -2117,9 +2124,9 @@ const cr = /* @__PURE__ */ $({
|
|
|
2117
2124
|
class: "vc-login-page"
|
|
2118
2125
|
}, {
|
|
2119
2126
|
default: b(() => [
|
|
2120
|
-
d.value && d.value.length ? (h(),
|
|
2121
|
-
|
|
2122
|
-
e.ssoOnly ? F("", !0) : (h(),
|
|
2127
|
+
d.value && d.value.length ? (h(), k("div", hr, [
|
|
2128
|
+
I(gr, { providers: d.value }, null, 8, ["providers"]),
|
|
2129
|
+
e.ssoOnly ? F("", !0) : (h(), k("div", Sr, V(A.$t("LOGIN.OR")), 1))
|
|
2123
2130
|
])) : F("", !0),
|
|
2124
2131
|
e.ssoOnly && w.value && !d.value?.length ? (h(), C(c(me), {
|
|
2125
2132
|
key: 1,
|
|
@@ -2130,78 +2137,78 @@ const cr = /* @__PURE__ */ $({
|
|
|
2130
2137
|
]),
|
|
2131
2138
|
_: 1
|
|
2132
2139
|
})) : F("", !0),
|
|
2133
|
-
e.ssoOnly ? F("", !0) : (h(),
|
|
2134
|
-
|
|
2140
|
+
e.ssoOnly ? F("", !0) : (h(), k(Y, { key: 2 }, [
|
|
2141
|
+
I(c(Ee), {
|
|
2135
2142
|
class: "tw-gap-5",
|
|
2136
|
-
onSubmit:
|
|
2143
|
+
onSubmit: O
|
|
2137
2144
|
}, {
|
|
2138
2145
|
default: b(() => [
|
|
2139
|
-
|
|
2146
|
+
I(c(X), {
|
|
2140
2147
|
label: A.$t("LOGIN.FIELDS.LOGIN.LABEL"),
|
|
2141
2148
|
name: "username",
|
|
2142
|
-
"model-value":
|
|
2149
|
+
"model-value": v.username,
|
|
2143
2150
|
rules: "required"
|
|
2144
2151
|
}, {
|
|
2145
|
-
default: b(({ errorMessage:
|
|
2146
|
-
|
|
2152
|
+
default: b(({ errorMessage: B, handleChange: U, errors: E }) => [
|
|
2153
|
+
I(c(q), {
|
|
2147
2154
|
ref: "loginField",
|
|
2148
|
-
modelValue:
|
|
2155
|
+
modelValue: v.username,
|
|
2149
2156
|
"onUpdate:modelValue": [
|
|
2150
|
-
|
|
2151
|
-
|
|
2157
|
+
_[0] || (_[0] = (m) => v.username = m),
|
|
2158
|
+
U
|
|
2152
2159
|
],
|
|
2153
2160
|
label: A.$t("LOGIN.FIELDS.LOGIN.LABEL"),
|
|
2154
2161
|
placeholder: A.$t("LOGIN.FIELDS.LOGIN.PLACEHOLDER"),
|
|
2155
2162
|
required: "",
|
|
2156
|
-
error: !!
|
|
2157
|
-
"error-message":
|
|
2163
|
+
error: !!E.length,
|
|
2164
|
+
"error-message": B
|
|
2158
2165
|
}, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
|
|
2159
2166
|
]),
|
|
2160
2167
|
_: 1
|
|
2161
2168
|
}, 8, ["label", "model-value"]),
|
|
2162
|
-
|
|
2169
|
+
I(c(X), {
|
|
2163
2170
|
label: A.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
|
|
2164
2171
|
name: "password",
|
|
2165
|
-
"model-value":
|
|
2172
|
+
"model-value": v.password,
|
|
2166
2173
|
rules: "required"
|
|
2167
2174
|
}, {
|
|
2168
|
-
default: b(({ errorMessage:
|
|
2169
|
-
|
|
2175
|
+
default: b(({ errorMessage: B, handleChange: U, errors: E }) => [
|
|
2176
|
+
I(c(q), {
|
|
2170
2177
|
ref: "passwordField",
|
|
2171
|
-
modelValue:
|
|
2178
|
+
modelValue: v.password,
|
|
2172
2179
|
"onUpdate:modelValue": [
|
|
2173
|
-
|
|
2174
|
-
|
|
2180
|
+
_[1] || (_[1] = (m) => v.password = m),
|
|
2181
|
+
U
|
|
2175
2182
|
],
|
|
2176
2183
|
label: A.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
|
|
2177
2184
|
placeholder: A.$t("LOGIN.FIELDS.PASSWORD.PLACEHOLDER"),
|
|
2178
2185
|
type: "password",
|
|
2179
2186
|
required: "",
|
|
2180
|
-
error: !!
|
|
2181
|
-
"error-message":
|
|
2182
|
-
onKeyup: Et(
|
|
2187
|
+
error: !!E.length,
|
|
2188
|
+
"error-message": B,
|
|
2189
|
+
onKeyup: Et(O, ["enter"])
|
|
2183
2190
|
}, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
|
|
2184
2191
|
]),
|
|
2185
2192
|
_: 1
|
|
2186
2193
|
}, 8, ["label", "model-value"]),
|
|
2187
|
-
|
|
2194
|
+
I(c(Q), {
|
|
2188
2195
|
variant: "primary",
|
|
2189
2196
|
class: "tw-w-full",
|
|
2190
2197
|
icon: "lucide-log-in",
|
|
2191
2198
|
disabled: !c(g),
|
|
2192
2199
|
loading: c(u),
|
|
2193
|
-
onClick:
|
|
2200
|
+
onClick: O
|
|
2194
2201
|
}, {
|
|
2195
2202
|
default: b(() => [
|
|
2196
2203
|
G(V(A.$t("LOGIN.BUTTON")), 1)
|
|
2197
2204
|
]),
|
|
2198
2205
|
_: 1
|
|
2199
2206
|
}, 8, ["disabled", "loading"]),
|
|
2200
|
-
|
|
2207
|
+
I(c(Q), {
|
|
2201
2208
|
variant: "link",
|
|
2202
2209
|
class: "tw-w-full tw-justify-center",
|
|
2203
2210
|
type: "button",
|
|
2204
|
-
onClick:
|
|
2211
|
+
onClick: R
|
|
2205
2212
|
}, {
|
|
2206
2213
|
default: b(() => [
|
|
2207
2214
|
G(V(A.$t("LOGIN.FORGOT_PASSWORD_BUTTON")), 1)
|
|
@@ -2211,7 +2218,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2211
2218
|
]),
|
|
2212
2219
|
_: 1
|
|
2213
2220
|
}),
|
|
2214
|
-
|
|
2221
|
+
I(c(Co), {
|
|
2215
2222
|
name: "auth:after-form",
|
|
2216
2223
|
separator: "",
|
|
2217
2224
|
"separator-class": "tw-border-t tw-border-[color:var(--login-separator)] tw-border-solid tw-pb-5",
|
|
@@ -2231,7 +2238,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2231
2238
|
_: 1
|
|
2232
2239
|
}, 8, ["logo", "background", "title", "subtitle"]));
|
|
2233
2240
|
}
|
|
2234
|
-
}),
|
|
2241
|
+
}), bc = vr, Ar = { class: "tw-text-center" }, br = { class: "tw-text-center tw-mb-6" }, Tr = { class: "tw-text-sm tw-text-neutrals-600" }, wr = /* @__PURE__ */ $({
|
|
2235
2242
|
__name: "ForgotPassword",
|
|
2236
2243
|
props: {
|
|
2237
2244
|
logo: {},
|
|
@@ -2239,7 +2246,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2239
2246
|
composable: { type: Function }
|
|
2240
2247
|
},
|
|
2241
2248
|
setup(e) {
|
|
2242
|
-
const t = e, a = Ie(), { t: s } =
|
|
2249
|
+
const t = e, a = Ie(), { t: s } = Se({ useScope: "global" });
|
|
2243
2250
|
de({ validateOnMount: !1 });
|
|
2244
2251
|
const o = _e(), { uiSettings: l, loading: i } = Re(), n = P(!1), r = P(""), u = P(!1), f = ue({
|
|
2245
2252
|
loginOrEmail: ""
|
|
@@ -2248,40 +2255,40 @@ const cr = /* @__PURE__ */ $({
|
|
|
2248
2255
|
if (t.composable && typeof t.composable == "function")
|
|
2249
2256
|
p = t.composable().forgotPassword;
|
|
2250
2257
|
else {
|
|
2251
|
-
const { requestPasswordReset:
|
|
2252
|
-
p = async (
|
|
2253
|
-
await
|
|
2258
|
+
const { requestPasswordReset: v } = ce();
|
|
2259
|
+
p = async (O) => {
|
|
2260
|
+
await v(O.loginOrEmail);
|
|
2254
2261
|
};
|
|
2255
2262
|
}
|
|
2256
|
-
const g =
|
|
2263
|
+
const g = y(() => ({
|
|
2257
2264
|
logo: i.value ? "" : l.value?.logo || t.logo
|
|
2258
|
-
})), d =
|
|
2259
|
-
const
|
|
2260
|
-
return !
|
|
2265
|
+
})), d = y(() => {
|
|
2266
|
+
const v = f.loginOrEmail, [O, R] = v.split("@");
|
|
2267
|
+
return !O || !R ? v : `${O.length > 2 ? O[0] + "***" + O[O.length - 1] : O[0] + "***"}@${R}`;
|
|
2261
2268
|
}), w = async () => {
|
|
2262
2269
|
if (!(!o.value || !p))
|
|
2263
2270
|
try {
|
|
2264
2271
|
n.value = !0, r.value = "", await p({ loginOrEmail: f.loginOrEmail }), u.value = !0;
|
|
2265
|
-
} catch (
|
|
2266
|
-
r.value =
|
|
2272
|
+
} catch (v) {
|
|
2273
|
+
r.value = v instanceof Error ? v.message : String(v);
|
|
2267
2274
|
} finally {
|
|
2268
2275
|
n.value = !1;
|
|
2269
2276
|
}
|
|
2270
2277
|
}, T = () => {
|
|
2271
2278
|
a.push({ name: "Login" });
|
|
2272
2279
|
};
|
|
2273
|
-
return (
|
|
2280
|
+
return (v, O) => (h(), C(c(Le), {
|
|
2274
2281
|
logo: g.value.logo,
|
|
2275
2282
|
background: e.background,
|
|
2276
2283
|
title: u.value ? c(s)("FORGOT_PASSWORD.SUCCESS_TITLE") : c(s)("FORGOT_PASSWORD.TITLE"),
|
|
2277
2284
|
subtitle: u.value ? void 0 : c(s)("FORGOT_PASSWORD.SUBTITLE")
|
|
2278
2285
|
}, {
|
|
2279
2286
|
default: b(() => [
|
|
2280
|
-
u.value ? (h(),
|
|
2281
|
-
|
|
2282
|
-
|
|
2287
|
+
u.value ? (h(), k(Y, { key: 1 }, [
|
|
2288
|
+
N("div", br, [
|
|
2289
|
+
N("p", Tr, V(c(s)("FORGOT_PASSWORD.SUCCESS_TEXT", { email: d.value })), 1)
|
|
2283
2290
|
]),
|
|
2284
|
-
|
|
2291
|
+
I(c(Q), {
|
|
2285
2292
|
variant: "primary",
|
|
2286
2293
|
class: "tw-w-full",
|
|
2287
2294
|
onClick: T
|
|
@@ -2291,34 +2298,34 @@ const cr = /* @__PURE__ */ $({
|
|
|
2291
2298
|
]),
|
|
2292
2299
|
_: 1
|
|
2293
2300
|
})
|
|
2294
|
-
], 64)) : (h(),
|
|
2295
|
-
|
|
2301
|
+
], 64)) : (h(), k(Y, { key: 0 }, [
|
|
2302
|
+
I(c(Ee), { onSubmit: w }, {
|
|
2296
2303
|
default: b(() => [
|
|
2297
|
-
|
|
2304
|
+
I(c(X), {
|
|
2298
2305
|
label: c(s)("FORGOT_PASSWORD.FIELDS.EMAIL.LABEL"),
|
|
2299
2306
|
name: "loginOrEmail",
|
|
2300
2307
|
"model-value": f.loginOrEmail,
|
|
2301
2308
|
rules: "required|email"
|
|
2302
2309
|
}, {
|
|
2303
|
-
default: b(({ errorMessage: R, handleChange:
|
|
2304
|
-
|
|
2310
|
+
default: b(({ errorMessage: R, handleChange: A, errors: _ }) => [
|
|
2311
|
+
I(c(q), {
|
|
2305
2312
|
ref: "emailField",
|
|
2306
2313
|
modelValue: f.loginOrEmail,
|
|
2307
2314
|
"onUpdate:modelValue": [
|
|
2308
|
-
|
|
2309
|
-
|
|
2315
|
+
O[0] || (O[0] = (B) => f.loginOrEmail = B),
|
|
2316
|
+
A
|
|
2310
2317
|
],
|
|
2311
2318
|
class: "tw-mb-6",
|
|
2312
2319
|
label: c(s)("FORGOT_PASSWORD.FIELDS.EMAIL.LABEL"),
|
|
2313
2320
|
placeholder: c(s)("FORGOT_PASSWORD.FIELDS.EMAIL.PLACEHOLDER"),
|
|
2314
2321
|
required: "",
|
|
2315
|
-
error: !!
|
|
2322
|
+
error: !!_.length,
|
|
2316
2323
|
"error-message": R
|
|
2317
2324
|
}, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
|
|
2318
2325
|
]),
|
|
2319
2326
|
_: 1
|
|
2320
2327
|
}, 8, ["label", "model-value"]),
|
|
2321
|
-
|
|
2328
|
+
I(c(Q), {
|
|
2322
2329
|
variant: "primary",
|
|
2323
2330
|
class: "tw-w-full tw-mb-4",
|
|
2324
2331
|
disabled: !c(o) || n.value,
|
|
@@ -2330,8 +2337,8 @@ const cr = /* @__PURE__ */ $({
|
|
|
2330
2337
|
]),
|
|
2331
2338
|
_: 1
|
|
2332
2339
|
}, 8, ["disabled", "loading"]),
|
|
2333
|
-
|
|
2334
|
-
|
|
2340
|
+
N("div", Ar, [
|
|
2341
|
+
I(c(Q), {
|
|
2335
2342
|
variant: "link",
|
|
2336
2343
|
icon: "lucide-arrow-left",
|
|
2337
2344
|
"icon-size": "xs",
|
|
@@ -2361,7 +2368,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2361
2368
|
_: 1
|
|
2362
2369
|
}, 8, ["logo", "background", "title", "subtitle"]));
|
|
2363
2370
|
}
|
|
2364
|
-
}),
|
|
2371
|
+
}), Tc = wr, Lr = /* @__PURE__ */ $({
|
|
2365
2372
|
__name: "ResetPassword",
|
|
2366
2373
|
props: {
|
|
2367
2374
|
userId: {},
|
|
@@ -2371,7 +2378,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2371
2378
|
background: { default: "/assets/background.jpg" }
|
|
2372
2379
|
},
|
|
2373
2380
|
setup(e) {
|
|
2374
|
-
const t = e, { validateToken: a, validatePassword: s, resetPasswordByToken: o, signIn: l, loading: i } = ce(), n = Ie(), { t: r } =
|
|
2381
|
+
const t = e, { validateToken: a, validatePassword: s, resetPasswordByToken: o, signIn: l, loading: i } = ce(), n = Ie(), { t: r } = Se({ useScope: "global" }), { validate: u } = de({ validateOnMount: !1 }), { uiSettings: f, loading: p } = Re(), g = ue({
|
|
2375
2382
|
isValid: !1,
|
|
2376
2383
|
tokenIsValid: !1,
|
|
2377
2384
|
errors: [],
|
|
@@ -2381,26 +2388,26 @@ const cr = /* @__PURE__ */ $({
|
|
|
2381
2388
|
he(async () => {
|
|
2382
2389
|
g.tokenIsValid = await a(t.userId, t.token), g.tokenIsValid || g.errors.push("Invalid-token");
|
|
2383
2390
|
});
|
|
2384
|
-
const d =
|
|
2391
|
+
const d = y(() => i.value || !g.password || !g.confirmPassword || !g.isValid && g.tokenIsValid), w = async () => {
|
|
2385
2392
|
if (g.tokenIsValid) {
|
|
2386
|
-
const
|
|
2387
|
-
g.errors =
|
|
2393
|
+
const O = (await s(g.password)).errors;
|
|
2394
|
+
g.errors = O?.map((R) => R.code), g.confirmPassword !== g.password && g.errors.push("Repeat-password"), g.isValid = g.errors.length == 0;
|
|
2388
2395
|
}
|
|
2389
2396
|
}, T = async () => {
|
|
2390
|
-
const { valid:
|
|
2391
|
-
if (
|
|
2397
|
+
const { valid: O } = await u();
|
|
2398
|
+
if (O) {
|
|
2392
2399
|
const R = await o(t.userId, g.password, t.token);
|
|
2393
2400
|
if (R.succeeded) {
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2401
|
+
const A = await l(t.userName, g.password);
|
|
2402
|
+
A.succeeded ? n.push("/") : g.errors = "error" in A && [A.error] || [];
|
|
2396
2403
|
} else
|
|
2397
2404
|
g.errors = R.errors;
|
|
2398
2405
|
}
|
|
2399
|
-
},
|
|
2406
|
+
}, v = y(() => ({
|
|
2400
2407
|
logo: p.value ? "" : f.value?.logo || t.logo
|
|
2401
2408
|
}));
|
|
2402
|
-
return (
|
|
2403
|
-
logo:
|
|
2409
|
+
return (O, R) => (h(), C(c(Le), {
|
|
2410
|
+
logo: v.value.logo,
|
|
2404
2411
|
background: e.background,
|
|
2405
2412
|
title: c(r)("PASSWORDRESET.TITLE"),
|
|
2406
2413
|
subtitle: c(r)("PASSWORDRESET.SUBTITLE")
|
|
@@ -2410,22 +2417,22 @@ const cr = /* @__PURE__ */ $({
|
|
|
2410
2417
|
key: 0,
|
|
2411
2418
|
active: ""
|
|
2412
2419
|
})) : F("", !0),
|
|
2413
|
-
|
|
2420
|
+
I(c(Ee), null, {
|
|
2414
2421
|
default: b(() => [
|
|
2415
|
-
|
|
2422
|
+
I(c(X), {
|
|
2416
2423
|
label: c(r)("PASSWORDRESET.FIELDS.PASSWORD.LABEL"),
|
|
2417
2424
|
name: "password",
|
|
2418
2425
|
"model-value": g.password,
|
|
2419
2426
|
rules: "required"
|
|
2420
2427
|
}, {
|
|
2421
|
-
default: b(({ field:
|
|
2422
|
-
|
|
2428
|
+
default: b(({ field: A, errorMessage: _, handleChange: B, errors: U }) => [
|
|
2429
|
+
I(c(q), ae(A, {
|
|
2423
2430
|
ref: "passwordField",
|
|
2424
2431
|
modelValue: g.password,
|
|
2425
2432
|
"onUpdate:modelValue": [
|
|
2426
2433
|
R[0] || (R[0] = (E) => g.password = E),
|
|
2427
2434
|
(E) => {
|
|
2428
|
-
|
|
2435
|
+
B(E), w();
|
|
2429
2436
|
}
|
|
2430
2437
|
],
|
|
2431
2438
|
class: "tw-mb-4",
|
|
@@ -2435,25 +2442,25 @@ const cr = /* @__PURE__ */ $({
|
|
|
2435
2442
|
disabled: !g.tokenIsValid,
|
|
2436
2443
|
required: "",
|
|
2437
2444
|
error: !!U.length,
|
|
2438
|
-
"error-message":
|
|
2445
|
+
"error-message": _
|
|
2439
2446
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2440
2447
|
]),
|
|
2441
2448
|
_: 1
|
|
2442
2449
|
}, 8, ["label", "model-value"]),
|
|
2443
|
-
|
|
2450
|
+
I(c(X), {
|
|
2444
2451
|
label: c(r)("PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
2445
2452
|
name: "confirm_password",
|
|
2446
2453
|
"model-value": g.confirmPassword,
|
|
2447
2454
|
rules: "required"
|
|
2448
2455
|
}, {
|
|
2449
|
-
default: b(({ field:
|
|
2450
|
-
|
|
2456
|
+
default: b(({ field: A, errorMessage: _, handleChange: B, errors: U }) => [
|
|
2457
|
+
I(c(q), ae(A, {
|
|
2451
2458
|
ref: "confirmPasswordField",
|
|
2452
2459
|
modelValue: g.confirmPassword,
|
|
2453
2460
|
"onUpdate:modelValue": [
|
|
2454
2461
|
R[1] || (R[1] = (E) => g.confirmPassword = E),
|
|
2455
2462
|
(E) => {
|
|
2456
|
-
|
|
2463
|
+
B(E), w();
|
|
2457
2464
|
}
|
|
2458
2465
|
],
|
|
2459
2466
|
class: "tw-mb-6",
|
|
@@ -2463,13 +2470,13 @@ const cr = /* @__PURE__ */ $({
|
|
|
2463
2470
|
type: "password",
|
|
2464
2471
|
required: "",
|
|
2465
2472
|
error: !!U.length,
|
|
2466
|
-
"error-message":
|
|
2473
|
+
"error-message": _,
|
|
2467
2474
|
onKeyup: Et(T, ["enter"])
|
|
2468
2475
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2469
2476
|
]),
|
|
2470
2477
|
_: 1
|
|
2471
2478
|
}, 8, ["label", "model-value"]),
|
|
2472
|
-
|
|
2479
|
+
I(c(Q), {
|
|
2473
2480
|
variant: "primary",
|
|
2474
2481
|
class: "tw-w-full",
|
|
2475
2482
|
disabled: d.value,
|
|
@@ -2481,12 +2488,12 @@ const cr = /* @__PURE__ */ $({
|
|
|
2481
2488
|
]),
|
|
2482
2489
|
_: 1
|
|
2483
2490
|
}, 8, ["disabled", "loading"]),
|
|
2484
|
-
(h(!0),
|
|
2485
|
-
key:
|
|
2491
|
+
(h(!0), k(Y, null, ne(g.errors, (A) => (h(), C(c(me), {
|
|
2492
|
+
key: A,
|
|
2486
2493
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2487
2494
|
}, {
|
|
2488
2495
|
default: b(() => [
|
|
2489
|
-
G(V(c(r)(`PASSWORDRESET.ERRORS.${
|
|
2496
|
+
G(V(c(r)(`PASSWORDRESET.ERRORS.${A}`)), 1)
|
|
2490
2497
|
]),
|
|
2491
2498
|
_: 2
|
|
2492
2499
|
}, 1024))), 128))
|
|
@@ -2497,7 +2504,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2497
2504
|
_: 1
|
|
2498
2505
|
}, 8, ["logo", "background", "title", "subtitle"]));
|
|
2499
2506
|
}
|
|
2500
|
-
}),
|
|
2507
|
+
}), wc = Lr, Or = /* @__PURE__ */ $({
|
|
2501
2508
|
__name: "Invite",
|
|
2502
2509
|
props: {
|
|
2503
2510
|
userId: {},
|
|
@@ -2508,29 +2515,29 @@ const cr = /* @__PURE__ */ $({
|
|
|
2508
2515
|
},
|
|
2509
2516
|
setup(e) {
|
|
2510
2517
|
de({ validateOnMount: !1 });
|
|
2511
|
-
const t = e, { validateToken: a, validatePassword: s, resetPasswordByToken: o, signIn: l, loading: i } = ce(), n = Ie(), { t: r } =
|
|
2518
|
+
const t = e, { validateToken: a, validatePassword: s, resetPasswordByToken: o, signIn: l, loading: i } = ce(), n = Ie(), { t: r } = Se({ useScope: "global" }), u = _e(), f = ht(), { uiSettings: p, loading: g } = Re(), d = ue({
|
|
2512
2519
|
isValid: !1,
|
|
2513
2520
|
tokenIsValid: !1,
|
|
2514
2521
|
errors: [],
|
|
2515
2522
|
password: "",
|
|
2516
2523
|
confirmPassword: ""
|
|
2517
|
-
}), w =
|
|
2524
|
+
}), w = y(() => !f.value || !u.value);
|
|
2518
2525
|
he(async () => {
|
|
2519
2526
|
d.tokenIsValid = await a(t.userId, t.token), d.tokenIsValid || d.errors.push("Invalid-token");
|
|
2520
2527
|
});
|
|
2521
2528
|
const T = async () => {
|
|
2522
2529
|
if (d.tokenIsValid) {
|
|
2523
2530
|
const R = (await s(d.password)).errors;
|
|
2524
|
-
d.errors = R?.map((
|
|
2531
|
+
d.errors = R?.map((A) => A.code), d.confirmPassword && d.confirmPassword !== d.password && d.errors.push("Repeat-password"), d.isValid = d.errors.length == 0 && !w.value;
|
|
2525
2532
|
}
|
|
2526
|
-
},
|
|
2533
|
+
}, v = async () => {
|
|
2527
2534
|
const R = await o(t.userId, d.password, t.token);
|
|
2528
2535
|
R.succeeded ? (await l(t.userName, d.password)).succeeded && n.push("/") : d.errors = R.errors;
|
|
2529
|
-
},
|
|
2536
|
+
}, O = y(() => ({
|
|
2530
2537
|
logo: g.value ? "" : p.value?.logo || t.logo
|
|
2531
2538
|
}));
|
|
2532
|
-
return (R,
|
|
2533
|
-
logo:
|
|
2539
|
+
return (R, A) => (h(), C(c(Le), {
|
|
2540
|
+
logo: O.value.logo,
|
|
2534
2541
|
background: e.background,
|
|
2535
2542
|
title: c(r)("INVITATION.TITLE"),
|
|
2536
2543
|
subtitle: c(r)("INVITATION.SUBTITLE")
|
|
@@ -2540,27 +2547,27 @@ const cr = /* @__PURE__ */ $({
|
|
|
2540
2547
|
key: 0,
|
|
2541
2548
|
active: ""
|
|
2542
2549
|
})) : F("", !0),
|
|
2543
|
-
|
|
2550
|
+
I(c(Ee), null, {
|
|
2544
2551
|
default: b(() => [
|
|
2545
|
-
|
|
2552
|
+
I(c(q), {
|
|
2546
2553
|
class: "tw-mb-4",
|
|
2547
2554
|
label: c(r)("INVITATION.FIELDS.EMAIL.LABEL"),
|
|
2548
2555
|
"model-value": e.userName,
|
|
2549
2556
|
name: "username",
|
|
2550
2557
|
disabled: ""
|
|
2551
2558
|
}, null, 8, ["label", "model-value"]),
|
|
2552
|
-
|
|
2559
|
+
I(c(X), {
|
|
2553
2560
|
label: c(r)("INVITATION.FIELDS.PASSWORD.LABEL"),
|
|
2554
2561
|
"model-value": d.password,
|
|
2555
2562
|
rules: "required",
|
|
2556
2563
|
name: "password"
|
|
2557
2564
|
}, {
|
|
2558
|
-
default: b(({ field:
|
|
2559
|
-
|
|
2565
|
+
default: b(({ field: _, errorMessage: B, handleChange: U, errors: E }) => [
|
|
2566
|
+
I(c(q), ae(_, {
|
|
2560
2567
|
ref: "passwordField",
|
|
2561
2568
|
modelValue: d.password,
|
|
2562
2569
|
"onUpdate:modelValue": [
|
|
2563
|
-
|
|
2570
|
+
A[0] || (A[0] = (m) => d.password = m),
|
|
2564
2571
|
(m) => {
|
|
2565
2572
|
U(m), T();
|
|
2566
2573
|
}
|
|
@@ -2571,24 +2578,24 @@ const cr = /* @__PURE__ */ $({
|
|
|
2571
2578
|
type: "password",
|
|
2572
2579
|
disabled: !d.tokenIsValid,
|
|
2573
2580
|
error: !!E.length,
|
|
2574
|
-
"error-message":
|
|
2581
|
+
"error-message": B,
|
|
2575
2582
|
required: ""
|
|
2576
2583
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2577
2584
|
]),
|
|
2578
2585
|
_: 1
|
|
2579
2586
|
}, 8, ["label", "model-value"]),
|
|
2580
|
-
|
|
2587
|
+
I(c(X), {
|
|
2581
2588
|
label: c(r)("INVITATION.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
2582
2589
|
"model-value": d.confirmPassword,
|
|
2583
2590
|
rules: "required",
|
|
2584
2591
|
name: "confirm_password"
|
|
2585
2592
|
}, {
|
|
2586
|
-
default: b(({ field:
|
|
2587
|
-
|
|
2593
|
+
default: b(({ field: _, errorMessage: B, handleChange: U, errors: E }) => [
|
|
2594
|
+
I(c(q), ae(_, {
|
|
2588
2595
|
ref: "confirmPasswordField",
|
|
2589
2596
|
modelValue: d.confirmPassword,
|
|
2590
2597
|
"onUpdate:modelValue": [
|
|
2591
|
-
|
|
2598
|
+
A[1] || (A[1] = (m) => d.confirmPassword = m),
|
|
2592
2599
|
(m) => {
|
|
2593
2600
|
U(m), T();
|
|
2594
2601
|
}
|
|
@@ -2599,31 +2606,31 @@ const cr = /* @__PURE__ */ $({
|
|
|
2599
2606
|
disabled: !d.tokenIsValid,
|
|
2600
2607
|
type: "password",
|
|
2601
2608
|
error: !!E.length,
|
|
2602
|
-
"error-message":
|
|
2609
|
+
"error-message": B,
|
|
2603
2610
|
required: "",
|
|
2604
|
-
onKeyup: Et(
|
|
2611
|
+
onKeyup: Et(v, ["enter"])
|
|
2605
2612
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2606
2613
|
]),
|
|
2607
2614
|
_: 1
|
|
2608
2615
|
}, 8, ["label", "model-value"]),
|
|
2609
|
-
|
|
2616
|
+
I(c(Q), {
|
|
2610
2617
|
variant: "primary",
|
|
2611
2618
|
class: "tw-w-full",
|
|
2612
2619
|
disabled: c(i) || !d.isValid || !d.tokenIsValid,
|
|
2613
2620
|
loading: c(i),
|
|
2614
|
-
onClick:
|
|
2621
|
+
onClick: v
|
|
2615
2622
|
}, {
|
|
2616
2623
|
default: b(() => [
|
|
2617
2624
|
G(V(c(r)("INVITATION.ACCEPT_INVITATION")), 1)
|
|
2618
2625
|
]),
|
|
2619
2626
|
_: 1
|
|
2620
2627
|
}, 8, ["disabled", "loading"]),
|
|
2621
|
-
(h(!0),
|
|
2622
|
-
key:
|
|
2628
|
+
(h(!0), k(Y, null, ne(d.errors, (_) => (h(), C(c(me), {
|
|
2629
|
+
key: _,
|
|
2623
2630
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2624
2631
|
}, {
|
|
2625
2632
|
default: b(() => [
|
|
2626
|
-
G(V(c(r)(`INVITATION.ERRORS.${
|
|
2633
|
+
G(V(c(r)(`INVITATION.ERRORS.${_}`)), 1)
|
|
2627
2634
|
]),
|
|
2628
2635
|
_: 2
|
|
2629
2636
|
}, 1024))), 128))
|
|
@@ -2634,10 +2641,10 @@ const cr = /* @__PURE__ */ $({
|
|
|
2634
2641
|
_: 1
|
|
2635
2642
|
}, 8, ["logo", "background", "title", "subtitle"]));
|
|
2636
2643
|
}
|
|
2637
|
-
}),
|
|
2644
|
+
}), Lc = Or, yr = {
|
|
2638
2645
|
key: 0,
|
|
2639
2646
|
class: "tw-mb-4"
|
|
2640
|
-
},
|
|
2647
|
+
}, _r = { class: "tw-flex tw-gap-3" }, Ir = /* @__PURE__ */ $({
|
|
2641
2648
|
__name: "ChangePassword",
|
|
2642
2649
|
props: {
|
|
2643
2650
|
forced: { type: Boolean },
|
|
@@ -2645,7 +2652,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2645
2652
|
background: {}
|
|
2646
2653
|
},
|
|
2647
2654
|
setup(e) {
|
|
2648
|
-
const t = e, { t: a } =
|
|
2655
|
+
const t = e, { t: a } = Se({ useScope: "global" }), { changeUserPassword: s, loading: o, validatePassword: l, signOut: i } = ce(), { uiSettings: n, loading: r } = Re(), u = y(() => ({
|
|
2649
2656
|
logo: r.value ? "" : n.value?.logo || t.logo
|
|
2650
2657
|
}));
|
|
2651
2658
|
de({ validateOnMount: !1 });
|
|
@@ -2655,28 +2662,35 @@ const cr = /* @__PURE__ */ $({
|
|
|
2655
2662
|
currentPassword: "",
|
|
2656
2663
|
password: "",
|
|
2657
2664
|
confirmPassword: ""
|
|
2658
|
-
}), w =
|
|
2665
|
+
}), w = y(() => !p.value || !f.value);
|
|
2659
2666
|
async function T() {
|
|
2660
2667
|
await i(), await g.push("/login");
|
|
2661
2668
|
}
|
|
2662
|
-
async function
|
|
2669
|
+
async function v() {
|
|
2663
2670
|
const R = await s(d.currentPassword, d.password);
|
|
2664
2671
|
R?.succeeded ? await g.push("/") : R?.errors && (d.errors = R?.errors, d.isValid = d.errors.length == 0);
|
|
2665
2672
|
}
|
|
2666
|
-
function
|
|
2673
|
+
function O() {
|
|
2667
2674
|
ge(async () => {
|
|
2668
|
-
(d.password || d.confirmPassword)
|
|
2675
|
+
if (d.password || d.confirmPassword) {
|
|
2676
|
+
const R = (await l(d.password)).errors ?? [], A = Er({
|
|
2677
|
+
password: d.password,
|
|
2678
|
+
confirmPassword: d.confirmPassword,
|
|
2679
|
+
currentPassword: d.currentPassword
|
|
2680
|
+
});
|
|
2681
|
+
d.errors = [...R, ...A], d.isValid = d.errors.length == 0;
|
|
2682
|
+
}
|
|
2669
2683
|
});
|
|
2670
2684
|
}
|
|
2671
|
-
return (R,
|
|
2685
|
+
return (R, A) => (h(), C(c(Le), {
|
|
2672
2686
|
logo: u.value.logo,
|
|
2673
2687
|
background: e.background,
|
|
2674
2688
|
title: e.forced ? c(a)("COMPONENTS.CHANGE_PASSWORD.TITLE_FORCED") : c(a)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
|
|
2675
2689
|
subtitle: e.forced ? c(a)("COMPONENTS.CHANGE_PASSWORD.SUBTITLE_FORCED") : void 0
|
|
2676
2690
|
}, {
|
|
2677
2691
|
default: b(() => [
|
|
2678
|
-
e.forced ? (h(),
|
|
2679
|
-
|
|
2692
|
+
e.forced ? (h(), k("div", yr, [
|
|
2693
|
+
I(c(ps), {
|
|
2680
2694
|
variant: "info",
|
|
2681
2695
|
icon: "lucide-lightbulb",
|
|
2682
2696
|
"icon-size": "l"
|
|
@@ -2687,21 +2701,21 @@ const cr = /* @__PURE__ */ $({
|
|
|
2687
2701
|
_: 1
|
|
2688
2702
|
})
|
|
2689
2703
|
])) : F("", !0),
|
|
2690
|
-
|
|
2704
|
+
I(c(Ee), null, {
|
|
2691
2705
|
default: b(() => [
|
|
2692
|
-
|
|
2706
|
+
I(c(X), {
|
|
2693
2707
|
label: c(a)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
|
|
2694
2708
|
name: "current",
|
|
2695
2709
|
rules: "required|min:6",
|
|
2696
2710
|
"model-value": d.currentPassword
|
|
2697
2711
|
}, {
|
|
2698
|
-
default: b(({ field:
|
|
2699
|
-
|
|
2712
|
+
default: b(({ field: _, errorMessage: B, errors: U }) => [
|
|
2713
|
+
I(c(q), ae(_, {
|
|
2700
2714
|
ref: "passwordField",
|
|
2701
2715
|
modelValue: d.currentPassword,
|
|
2702
2716
|
"onUpdate:modelValue": [
|
|
2703
|
-
|
|
2704
|
-
|
|
2717
|
+
A[0] || (A[0] = (E) => d.currentPassword = E),
|
|
2718
|
+
O
|
|
2705
2719
|
],
|
|
2706
2720
|
class: "tw-mb-4",
|
|
2707
2721
|
label: c(a)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
|
|
@@ -2709,24 +2723,24 @@ const cr = /* @__PURE__ */ $({
|
|
|
2709
2723
|
type: "password",
|
|
2710
2724
|
required: "",
|
|
2711
2725
|
error: !!U.length,
|
|
2712
|
-
"error-message":
|
|
2726
|
+
"error-message": B
|
|
2713
2727
|
}), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
|
|
2714
2728
|
]),
|
|
2715
2729
|
_: 1
|
|
2716
2730
|
}, 8, ["label", "model-value"]),
|
|
2717
|
-
|
|
2731
|
+
I(c(X), {
|
|
2718
2732
|
label: c(a)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
|
|
2719
2733
|
name: "new_pass",
|
|
2720
2734
|
rules: "required|min:6",
|
|
2721
2735
|
"model-value": d.password
|
|
2722
2736
|
}, {
|
|
2723
|
-
default: b(({ field:
|
|
2724
|
-
|
|
2737
|
+
default: b(({ field: _, errorMessage: B, errors: U }) => [
|
|
2738
|
+
I(c(q), ae(_, {
|
|
2725
2739
|
ref: "newPasswordField",
|
|
2726
2740
|
modelValue: d.password,
|
|
2727
2741
|
"onUpdate:modelValue": [
|
|
2728
|
-
|
|
2729
|
-
|
|
2742
|
+
A[1] || (A[1] = (E) => d.password = E),
|
|
2743
|
+
O
|
|
2730
2744
|
],
|
|
2731
2745
|
class: "tw-mb-4",
|
|
2732
2746
|
label: c(a)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
|
|
@@ -2734,24 +2748,24 @@ const cr = /* @__PURE__ */ $({
|
|
|
2734
2748
|
type: "password",
|
|
2735
2749
|
required: "",
|
|
2736
2750
|
error: !!U.length,
|
|
2737
|
-
"error-message":
|
|
2751
|
+
"error-message": B
|
|
2738
2752
|
}), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
|
|
2739
2753
|
]),
|
|
2740
2754
|
_: 1
|
|
2741
2755
|
}, 8, ["label", "model-value"]),
|
|
2742
|
-
|
|
2756
|
+
I(c(X), {
|
|
2743
2757
|
label: c(a)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
|
|
2744
2758
|
name: "confirm_pass",
|
|
2745
2759
|
rules: "required|min:6",
|
|
2746
2760
|
"model-value": d.confirmPassword
|
|
2747
2761
|
}, {
|
|
2748
|
-
default: b(({ field:
|
|
2749
|
-
|
|
2762
|
+
default: b(({ field: _, errorMessage: B, errors: U }) => [
|
|
2763
|
+
I(c(q), ae(_, {
|
|
2750
2764
|
ref: "confirmPasswordField",
|
|
2751
2765
|
modelValue: d.confirmPassword,
|
|
2752
2766
|
"onUpdate:modelValue": [
|
|
2753
|
-
|
|
2754
|
-
|
|
2767
|
+
A[2] || (A[2] = (E) => d.confirmPassword = E),
|
|
2768
|
+
O
|
|
2755
2769
|
],
|
|
2756
2770
|
class: "tw-mb-6",
|
|
2757
2771
|
label: c(a)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
|
|
@@ -2759,13 +2773,13 @@ const cr = /* @__PURE__ */ $({
|
|
|
2759
2773
|
type: "password",
|
|
2760
2774
|
required: "",
|
|
2761
2775
|
error: !!U.length,
|
|
2762
|
-
"error-message":
|
|
2776
|
+
"error-message": B
|
|
2763
2777
|
}), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
|
|
2764
2778
|
]),
|
|
2765
2779
|
_: 1
|
|
2766
2780
|
}, 8, ["label", "model-value"]),
|
|
2767
|
-
|
|
2768
|
-
|
|
2781
|
+
N("div", _r, [
|
|
2782
|
+
I(c(Q), {
|
|
2769
2783
|
variant: "secondary",
|
|
2770
2784
|
class: "tw-flex-1",
|
|
2771
2785
|
onClick: T
|
|
@@ -2775,12 +2789,12 @@ const cr = /* @__PURE__ */ $({
|
|
|
2775
2789
|
]),
|
|
2776
2790
|
_: 1
|
|
2777
2791
|
}),
|
|
2778
|
-
|
|
2792
|
+
I(c(Q), {
|
|
2779
2793
|
variant: "primary",
|
|
2780
2794
|
class: "tw-flex-1",
|
|
2781
2795
|
disabled: c(o) || !d.isValid || w.value,
|
|
2782
2796
|
loading: c(o),
|
|
2783
|
-
onClick:
|
|
2797
|
+
onClick: v
|
|
2784
2798
|
}, {
|
|
2785
2799
|
default: b(() => [
|
|
2786
2800
|
G(V(c(a)("COMPONENTS.CHANGE_PASSWORD.SAVE")), 1)
|
|
@@ -2788,12 +2802,12 @@ const cr = /* @__PURE__ */ $({
|
|
|
2788
2802
|
_: 1
|
|
2789
2803
|
}, 8, ["disabled", "loading"])
|
|
2790
2804
|
]),
|
|
2791
|
-
(h(!0),
|
|
2792
|
-
key:
|
|
2805
|
+
(h(!0), k(Y, null, ne(d.errors, (_, B) => (h(), C(c(me), {
|
|
2806
|
+
key: B,
|
|
2793
2807
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2794
2808
|
}, {
|
|
2795
2809
|
default: b(() => [
|
|
2796
|
-
G(V(
|
|
2810
|
+
G(V(_.code ? c(a)(`COMPONENTS.CHANGE_PASSWORD.ERRORS.${_.code}`) : _), 1)
|
|
2797
2811
|
]),
|
|
2798
2812
|
_: 2
|
|
2799
2813
|
}, 1024))), 128))
|
|
@@ -2804,7 +2818,7 @@ const cr = /* @__PURE__ */ $({
|
|
|
2804
2818
|
_: 1
|
|
2805
2819
|
}, 8, ["logo", "background", "title", "subtitle"]));
|
|
2806
2820
|
}
|
|
2807
|
-
}),
|
|
2821
|
+
}), Oc = Ir, He = "vc-dashboard-layout";
|
|
2808
2822
|
function lt(e, t) {
|
|
2809
2823
|
const a = t ?? e.position;
|
|
2810
2824
|
return {
|
|
@@ -2830,7 +2844,7 @@ function ct(e) {
|
|
|
2830
2844
|
}
|
|
2831
2845
|
};
|
|
2832
2846
|
}
|
|
2833
|
-
function
|
|
2847
|
+
function Rr(e) {
|
|
2834
2848
|
const t = /* @__PURE__ */ new Map();
|
|
2835
2849
|
for (const a of e)
|
|
2836
2850
|
a.id && t.set(a.id, {
|
|
@@ -2845,7 +2859,7 @@ function ut() {
|
|
|
2845
2859
|
if (!e) return null;
|
|
2846
2860
|
const t = JSON.parse(e);
|
|
2847
2861
|
if (Array.isArray(t))
|
|
2848
|
-
return
|
|
2862
|
+
return Rr(t);
|
|
2849
2863
|
if (typeof t == "object" && t !== null) {
|
|
2850
2864
|
const a = /* @__PURE__ */ new Map();
|
|
2851
2865
|
for (const [s, o] of Object.entries(t))
|
|
@@ -2874,14 +2888,14 @@ function Ya(e, t) {
|
|
|
2874
2888
|
console.warn("[GridstackAdapter] Failed to save layout to storage:", a);
|
|
2875
2889
|
}
|
|
2876
2890
|
}
|
|
2877
|
-
function
|
|
2891
|
+
function Pr() {
|
|
2878
2892
|
try {
|
|
2879
2893
|
localStorage.removeItem(He);
|
|
2880
2894
|
} catch (e) {
|
|
2881
2895
|
console.warn("[GridstackAdapter] Failed to clear layout storage:", e);
|
|
2882
2896
|
}
|
|
2883
2897
|
}
|
|
2884
|
-
function
|
|
2898
|
+
function Cr(e, t = 12) {
|
|
2885
2899
|
const a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), o = (n, r, u, f) => {
|
|
2886
2900
|
for (let p = r; p < r + f; p++) {
|
|
2887
2901
|
const g = s.get(p) || [];
|
|
@@ -2927,9 +2941,9 @@ function dt(e, t) {
|
|
|
2927
2941
|
s.set(o.id, o.position);
|
|
2928
2942
|
return s;
|
|
2929
2943
|
}
|
|
2930
|
-
return
|
|
2944
|
+
return Cr(e);
|
|
2931
2945
|
}
|
|
2932
|
-
const
|
|
2946
|
+
const Dr = {
|
|
2933
2947
|
column: 12,
|
|
2934
2948
|
cellHeight: 80,
|
|
2935
2949
|
margin: "10px",
|
|
@@ -2948,9 +2962,9 @@ const Rr = {
|
|
|
2948
2962
|
// Only bottom-right corner
|
|
2949
2963
|
}
|
|
2950
2964
|
};
|
|
2951
|
-
function
|
|
2965
|
+
function Nr(e, t = {}) {
|
|
2952
2966
|
const { gridOptions: a = {}, resizable: s = !1, autoSave: o = !0, onLayoutChange: l } = t, i = mo(null), n = P(/* @__PURE__ */ new Map()), r = P(!1), u = P(!1), f = {
|
|
2953
|
-
...
|
|
2967
|
+
...Dr,
|
|
2954
2968
|
...a,
|
|
2955
2969
|
disableResize: !s
|
|
2956
2970
|
}, p = (m) => {
|
|
@@ -2958,65 +2972,65 @@ function Pr(e, t = {}) {
|
|
|
2958
2972
|
console.warn("[useGridstack] Grid already initialized");
|
|
2959
2973
|
return;
|
|
2960
2974
|
}
|
|
2961
|
-
const
|
|
2962
|
-
n.value = dt(e.value,
|
|
2975
|
+
const S = ut();
|
|
2976
|
+
n.value = dt(e.value, S), i.value = Ao.init(f, m), i.value.on("change", g), i.value.on("added", d), i.value.on("removed", w);
|
|
2963
2977
|
const L = e.value.map((D) => {
|
|
2964
2978
|
const M = n.value.get(D.id);
|
|
2965
2979
|
return lt(D, M);
|
|
2966
2980
|
});
|
|
2967
2981
|
i.value.load(L), r.value = !0;
|
|
2968
|
-
}, g = (m,
|
|
2982
|
+
}, g = (m, S) => {
|
|
2969
2983
|
if (!u.value) {
|
|
2970
|
-
for (const L of
|
|
2984
|
+
for (const L of S) {
|
|
2971
2985
|
const { id: D, position: M } = ct(L);
|
|
2972
2986
|
D && n.value.set(D, M);
|
|
2973
2987
|
}
|
|
2974
|
-
n.value = new Map(n.value), l?.(n.value), o &&
|
|
2988
|
+
n.value = new Map(n.value), l?.(n.value), o && A();
|
|
2975
2989
|
}
|
|
2976
|
-
}, d = (m,
|
|
2977
|
-
for (const L of
|
|
2990
|
+
}, d = (m, S) => {
|
|
2991
|
+
for (const L of S) {
|
|
2978
2992
|
const { id: D, position: M } = ct(L);
|
|
2979
2993
|
D && !n.value.has(D) && n.value.set(D, M);
|
|
2980
2994
|
}
|
|
2981
2995
|
n.value = new Map(n.value);
|
|
2982
|
-
}, w = (m,
|
|
2983
|
-
for (const L of
|
|
2996
|
+
}, w = (m, S) => {
|
|
2997
|
+
for (const L of S)
|
|
2984
2998
|
L.id && n.value.delete(L.id);
|
|
2985
2999
|
n.value = new Map(n.value);
|
|
2986
3000
|
}, T = () => {
|
|
2987
3001
|
i.value && (i.value.off("change"), i.value.off("added"), i.value.off("removed"), i.value.destroy(!1), i.value = null, r.value = !1);
|
|
2988
|
-
},
|
|
3002
|
+
}, v = (m) => {
|
|
2989
3003
|
if (!i.value) return;
|
|
2990
|
-
const
|
|
3004
|
+
const S = n.value.get(m.id) ?? m.position, L = lt(m, S), D = document.querySelector(`[gs-id="${m.id}"]`);
|
|
2991
3005
|
D && i.value.makeWidget(D, L);
|
|
2992
|
-
},
|
|
3006
|
+
}, O = (m) => {
|
|
2993
3007
|
if (!i.value) return;
|
|
2994
|
-
const
|
|
2995
|
-
|
|
2996
|
-
}, R = (m,
|
|
3008
|
+
const S = document.querySelector(`[gs-id="${m}"]`);
|
|
3009
|
+
S && i.value.removeWidget(S, !1), n.value.delete(m);
|
|
3010
|
+
}, R = (m, S) => {
|
|
2997
3011
|
if (!i.value) return;
|
|
2998
3012
|
const L = document.querySelector(`[gs-id="${m}"]`);
|
|
2999
|
-
L && (u.value = !0, i.value.update(L, { x:
|
|
3000
|
-
}, I = () => {
|
|
3001
|
-
Ya(e.value, n.value);
|
|
3013
|
+
L && (u.value = !0, i.value.update(L, { x: S.x, y: S.y }), n.value.set(m, S), n.value = new Map(n.value), u.value = !1);
|
|
3002
3014
|
}, A = () => {
|
|
3015
|
+
Ya(e.value, n.value);
|
|
3016
|
+
}, _ = () => {
|
|
3003
3017
|
const m = ut();
|
|
3004
3018
|
m && (n.value = dt(e.value, m), U());
|
|
3005
|
-
},
|
|
3019
|
+
}, B = () => {
|
|
3006
3020
|
n.value = /* @__PURE__ */ new Map();
|
|
3007
3021
|
for (const m of e.value)
|
|
3008
3022
|
m.position && n.value.set(m.id, { ...m.position });
|
|
3009
|
-
U(),
|
|
3023
|
+
U(), A();
|
|
3010
3024
|
}, U = () => {
|
|
3011
3025
|
if (i.value) {
|
|
3012
3026
|
u.value = !0, i.value.batchUpdate();
|
|
3013
3027
|
for (const m of e.value) {
|
|
3014
|
-
const
|
|
3015
|
-
if (
|
|
3028
|
+
const S = n.value.get(m.id);
|
|
3029
|
+
if (S) {
|
|
3016
3030
|
const L = document.querySelector(`[gs-id="${m.id}"]`);
|
|
3017
3031
|
L && i.value.update(L, {
|
|
3018
|
-
x:
|
|
3019
|
-
y:
|
|
3032
|
+
x: S.x,
|
|
3033
|
+
y: S.y
|
|
3020
3034
|
});
|
|
3021
3035
|
}
|
|
3022
3036
|
}
|
|
@@ -3031,14 +3045,14 @@ function Pr(e, t = {}) {
|
|
|
3031
3045
|
};
|
|
3032
3046
|
return oe(
|
|
3033
3047
|
e,
|
|
3034
|
-
async (m,
|
|
3048
|
+
async (m, S) => {
|
|
3035
3049
|
if (!i.value || !r.value) return;
|
|
3036
3050
|
await ge();
|
|
3037
|
-
const L = m.filter((M) => !
|
|
3051
|
+
const L = m.filter((M) => !S?.some((z) => z.id === M.id)), D = S?.filter((M) => !m.some((z) => z.id === M.id)).map((M) => M.id) ?? [];
|
|
3038
3052
|
for (const M of D)
|
|
3039
|
-
|
|
3053
|
+
O(M);
|
|
3040
3054
|
for (const M of L)
|
|
3041
|
-
|
|
3055
|
+
v(M);
|
|
3042
3056
|
},
|
|
3043
3057
|
{ deep: !1 }
|
|
3044
3058
|
), ra(() => {
|
|
@@ -3049,25 +3063,25 @@ function Pr(e, t = {}) {
|
|
|
3049
3063
|
isInitialized: r,
|
|
3050
3064
|
initGrid: p,
|
|
3051
3065
|
destroyGrid: T,
|
|
3052
|
-
addWidget:
|
|
3053
|
-
removeWidget:
|
|
3066
|
+
addWidget: v,
|
|
3067
|
+
removeWidget: O,
|
|
3054
3068
|
updateWidgetPosition: R,
|
|
3055
|
-
saveLayout:
|
|
3056
|
-
loadLayout:
|
|
3057
|
-
resetToDefaults:
|
|
3069
|
+
saveLayout: A,
|
|
3070
|
+
loadLayout: _,
|
|
3071
|
+
resetToDefaults: B,
|
|
3058
3072
|
batchUpdate: E
|
|
3059
3073
|
};
|
|
3060
3074
|
}
|
|
3061
|
-
const
|
|
3075
|
+
const kr = ["aria-label"], Br = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-label"], Mr = { class: "grid-stack-item-content" }, Vr = {
|
|
3062
3076
|
key: 0,
|
|
3063
3077
|
class: "vc-gridstack-dashboard__drag-handle",
|
|
3064
3078
|
"aria-hidden": "true"
|
|
3065
|
-
},
|
|
3079
|
+
}, Fr = {
|
|
3066
3080
|
class: "vc-gridstack-dashboard__live-region",
|
|
3067
3081
|
role: "status",
|
|
3068
3082
|
"aria-live": "polite",
|
|
3069
3083
|
"aria-atomic": "true"
|
|
3070
|
-
},
|
|
3084
|
+
}, Ur = /* @__PURE__ */ $({
|
|
3071
3085
|
__name: "GridstackDashboard",
|
|
3072
3086
|
props: {
|
|
3073
3087
|
showDragHandles: { type: Boolean, default: !1 },
|
|
@@ -3075,7 +3089,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3075
3089
|
ariaLabel: { default: "Dashboard widgets. Drag widgets to rearrange." }
|
|
3076
3090
|
},
|
|
3077
3091
|
setup(e, { expose: t }) {
|
|
3078
|
-
const a = e, s = P(null), o = P(""), l = Es(), i =
|
|
3092
|
+
const a = e, s = P(null), o = P(""), l = Es(), i = y(() => l.getWidgets()), { layout: n, isInitialized: r, initGrid: u, saveLayout: f, resetToDefaults: p } = Nr(i, {
|
|
3079
3093
|
resizable: a.resizable,
|
|
3080
3094
|
autoSave: !0,
|
|
3081
3095
|
gridOptions: {
|
|
@@ -3084,11 +3098,11 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3084
3098
|
}
|
|
3085
3099
|
},
|
|
3086
3100
|
onLayoutChange: (R) => {
|
|
3087
|
-
for (const [
|
|
3088
|
-
l.updateWidgetPosition(
|
|
3101
|
+
for (const [A, _] of R)
|
|
3102
|
+
l.updateWidgetPosition(A, _);
|
|
3089
3103
|
w("Widget positions updated");
|
|
3090
3104
|
}
|
|
3091
|
-
}), g = (R) => n.value.get(R), d = (R,
|
|
3105
|
+
}), g = (R) => n.value.get(R), d = (R, A) => `${R.name || R.id}, widget ${A + 1} of ${i.value.length}. Drag to reorder.`, w = (R) => {
|
|
3092
3106
|
o.value = R, setTimeout(() => {
|
|
3093
3107
|
o.value = "";
|
|
3094
3108
|
}, 1e3);
|
|
@@ -3103,81 +3117,81 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3103
3117
|
},
|
|
3104
3118
|
saveLayout: f,
|
|
3105
3119
|
useBuiltInPositions: () => (p(), !0)
|
|
3106
|
-
}), (R,
|
|
3120
|
+
}), (R, A) => (h(), C(hs, {
|
|
3107
3121
|
"no-padding": "",
|
|
3108
3122
|
class: "vc-gridstack-dashboard"
|
|
3109
3123
|
}, {
|
|
3110
3124
|
default: b(() => [
|
|
3111
|
-
|
|
3125
|
+
N("div", {
|
|
3112
3126
|
ref_key: "gridRef",
|
|
3113
3127
|
ref: s,
|
|
3114
3128
|
class: "grid-stack vc-gridstack-dashboard__grid",
|
|
3115
3129
|
role: "list",
|
|
3116
3130
|
"aria-label": e.ariaLabel
|
|
3117
3131
|
}, [
|
|
3118
|
-
(h(!0),
|
|
3119
|
-
key:
|
|
3132
|
+
(h(!0), k(Y, null, ne(i.value, (_, B) => (h(), k("div", {
|
|
3133
|
+
key: _.id,
|
|
3120
3134
|
class: "grid-stack-item",
|
|
3121
|
-
"gs-id":
|
|
3122
|
-
"gs-x": g(
|
|
3123
|
-
"gs-y": g(
|
|
3124
|
-
"gs-w":
|
|
3125
|
-
"gs-h":
|
|
3135
|
+
"gs-id": _.id,
|
|
3136
|
+
"gs-x": g(_.id)?.x ?? _.position?.x ?? 0,
|
|
3137
|
+
"gs-y": g(_.id)?.y ?? _.position?.y ?? 0,
|
|
3138
|
+
"gs-w": _.size.width,
|
|
3139
|
+
"gs-h": _.size.height,
|
|
3126
3140
|
"gs-min-w": 2,
|
|
3127
3141
|
"gs-min-h": 2,
|
|
3128
3142
|
role: "listitem",
|
|
3129
|
-
"aria-label": d(
|
|
3143
|
+
"aria-label": d(_, B)
|
|
3130
3144
|
}, [
|
|
3131
|
-
|
|
3132
|
-
e.showDragHandles ? (h(),
|
|
3133
|
-
|
|
3145
|
+
N("div", Mr, [
|
|
3146
|
+
e.showDragHandles ? (h(), k("div", Vr, [...A[0] || (A[0] = [
|
|
3147
|
+
N("svg", {
|
|
3134
3148
|
width: "16",
|
|
3135
3149
|
height: "16",
|
|
3136
3150
|
viewBox: "0 0 16 16",
|
|
3137
3151
|
fill: "currentColor"
|
|
3138
3152
|
}, [
|
|
3139
|
-
|
|
3153
|
+
N("circle", {
|
|
3140
3154
|
cx: "5",
|
|
3141
3155
|
cy: "3",
|
|
3142
3156
|
r: "1.5"
|
|
3143
3157
|
}),
|
|
3144
|
-
|
|
3158
|
+
N("circle", {
|
|
3145
3159
|
cx: "11",
|
|
3146
3160
|
cy: "3",
|
|
3147
3161
|
r: "1.5"
|
|
3148
3162
|
}),
|
|
3149
|
-
|
|
3163
|
+
N("circle", {
|
|
3150
3164
|
cx: "5",
|
|
3151
3165
|
cy: "8",
|
|
3152
3166
|
r: "1.5"
|
|
3153
3167
|
}),
|
|
3154
|
-
|
|
3168
|
+
N("circle", {
|
|
3155
3169
|
cx: "11",
|
|
3156
3170
|
cy: "8",
|
|
3157
3171
|
r: "1.5"
|
|
3158
3172
|
}),
|
|
3159
|
-
|
|
3173
|
+
N("circle", {
|
|
3160
3174
|
cx: "5",
|
|
3161
3175
|
cy: "13",
|
|
3162
3176
|
r: "1.5"
|
|
3163
3177
|
}),
|
|
3164
|
-
|
|
3178
|
+
N("circle", {
|
|
3165
3179
|
cx: "11",
|
|
3166
3180
|
cy: "13",
|
|
3167
3181
|
r: "1.5"
|
|
3168
3182
|
})
|
|
3169
3183
|
], -1)
|
|
3170
3184
|
])])) : F("", !0),
|
|
3171
|
-
(h(), C(po(
|
|
3185
|
+
(h(), C(po(_.component), ae({ ref_for: !0 }, _.props || {}, { class: "vc-gridstack-dashboard__widget-content" }), null, 16))
|
|
3172
3186
|
])
|
|
3173
|
-
], 8,
|
|
3174
|
-
], 8,
|
|
3175
|
-
|
|
3187
|
+
], 8, Br))), 128))
|
|
3188
|
+
], 8, kr),
|
|
3189
|
+
N("div", Fr, V(o.value), 1)
|
|
3176
3190
|
]),
|
|
3177
3191
|
_: 1
|
|
3178
3192
|
}));
|
|
3179
3193
|
}
|
|
3180
|
-
}),
|
|
3194
|
+
}), yc = /* @__PURE__ */ $({
|
|
3181
3195
|
__name: "DraggableDashboard",
|
|
3182
3196
|
props: {
|
|
3183
3197
|
showDragHandles: { type: Boolean, default: !1 },
|
|
@@ -3197,7 +3211,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3197
3211
|
a.value?.saveLayout?.();
|
|
3198
3212
|
},
|
|
3199
3213
|
useBuiltInPositions: () => a.value?.useBuiltInPositions?.() ?? !1
|
|
3200
|
-
}), (n, r) => (h(), C(
|
|
3214
|
+
}), (n, r) => (h(), C(Ur, {
|
|
3201
3215
|
ref_key: "dashboardRef",
|
|
3202
3216
|
ref: a,
|
|
3203
3217
|
"show-drag-handles": e.showDragHandles,
|
|
@@ -3205,19 +3219,19 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3205
3219
|
"aria-label": e.ariaLabel
|
|
3206
3220
|
}, null, 8, ["show-drag-handles", "resizable", "aria-label"]));
|
|
3207
3221
|
}
|
|
3208
|
-
}),
|
|
3222
|
+
}), _c = lt, Ic = ct, Rc = ut, Pc = Ya, Cc = dt, Dc = Pr, Nc = He, $r = { class: "dashboard-widget-card" }, Wr = { class: "dashboard-widget-card__header" }, Gr = { class: "dashboard-widget-card__header-content" }, xr = {
|
|
3209
3223
|
key: 0,
|
|
3210
3224
|
class: "dashboard-widget-card__icon-wrapper"
|
|
3211
|
-
},
|
|
3225
|
+
}, Hr = { class: "dashboard-widget-card__title" }, zr = {
|
|
3212
3226
|
key: 0,
|
|
3213
3227
|
class: "dashboard-widget-card__actions"
|
|
3214
|
-
},
|
|
3228
|
+
}, Kr = {
|
|
3215
3229
|
key: 0,
|
|
3216
3230
|
class: "dashboard-widget-card__stats"
|
|
3217
|
-
},
|
|
3231
|
+
}, qr = { class: "dashboard-widget-card__body" }, jr = {
|
|
3218
3232
|
key: 1,
|
|
3219
3233
|
class: "dashboard-widget-card__footer"
|
|
3220
|
-
},
|
|
3234
|
+
}, kc = /* @__PURE__ */ $({
|
|
3221
3235
|
__name: "dashboard-widget-card",
|
|
3222
3236
|
props: {
|
|
3223
3237
|
header: {},
|
|
@@ -3226,38 +3240,38 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3226
3240
|
},
|
|
3227
3241
|
setup(e) {
|
|
3228
3242
|
const t = e;
|
|
3229
|
-
return (a, s) => (h(),
|
|
3230
|
-
|
|
3243
|
+
return (a, s) => (h(), k("div", $r, [
|
|
3244
|
+
N("div", Wr, [
|
|
3231
3245
|
W(a.$slots, "header", {}, () => [
|
|
3232
|
-
|
|
3233
|
-
e.icon ? (h(),
|
|
3234
|
-
|
|
3246
|
+
N("div", Gr, [
|
|
3247
|
+
e.icon ? (h(), k("div", xr, [
|
|
3248
|
+
I(c(aa), {
|
|
3235
3249
|
class: "dashboard-widget-card__icon",
|
|
3236
3250
|
icon: e.icon,
|
|
3237
3251
|
size: "l"
|
|
3238
3252
|
}, null, 8, ["icon"])
|
|
3239
3253
|
])) : F("", !0),
|
|
3240
|
-
|
|
3254
|
+
N("div", Hr, V(t.header), 1)
|
|
3241
3255
|
])
|
|
3242
3256
|
]),
|
|
3243
|
-
a.$slots.actions ? (h(),
|
|
3257
|
+
a.$slots.actions ? (h(), k("div", zr, [
|
|
3244
3258
|
W(a.$slots, "actions")
|
|
3245
3259
|
])) : F("", !0)
|
|
3246
3260
|
]),
|
|
3247
|
-
a.$slots.stats ? (h(),
|
|
3261
|
+
a.$slots.stats ? (h(), k("div", Kr, [
|
|
3248
3262
|
W(a.$slots, "stats")
|
|
3249
3263
|
])) : F("", !0),
|
|
3250
|
-
ua((h(),
|
|
3264
|
+
ua((h(), k("div", qr, [
|
|
3251
3265
|
W(a.$slots, "content")
|
|
3252
3266
|
])), [
|
|
3253
3267
|
[c(Yt), e.loading]
|
|
3254
3268
|
]),
|
|
3255
|
-
a.$slots.footer ? (h(),
|
|
3269
|
+
a.$slots.footer ? (h(), k("div", jr, [
|
|
3256
3270
|
W(a.$slots, "footer")
|
|
3257
3271
|
])) : F("", !0)
|
|
3258
3272
|
]));
|
|
3259
3273
|
}
|
|
3260
|
-
}),
|
|
3274
|
+
}), Yr = { class: "dashboard-stat-item" }, Zr = { class: "dashboard-stat-item__label" }, Bc = /* @__PURE__ */ $({
|
|
3261
3275
|
__name: "dashboard-stat-item",
|
|
3262
3276
|
props: {
|
|
3263
3277
|
value: {},
|
|
@@ -3265,35 +3279,35 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3265
3279
|
variant: {}
|
|
3266
3280
|
},
|
|
3267
3281
|
setup(e) {
|
|
3268
|
-
return (t, a) => (h(),
|
|
3269
|
-
|
|
3282
|
+
return (t, a) => (h(), k("div", Yr, [
|
|
3283
|
+
N("div", {
|
|
3270
3284
|
class: na(["dashboard-stat-item__value", e.variant ? `dashboard-stat-item__value--${e.variant}` : ""])
|
|
3271
3285
|
}, V(e.value), 3),
|
|
3272
|
-
|
|
3286
|
+
N("div", Zr, V(e.label), 1)
|
|
3273
3287
|
]));
|
|
3274
3288
|
}
|
|
3275
|
-
}),
|
|
3289
|
+
}), Xr = { class: "tw-divide-y tw-divide-[var(--neutrals-200)]" }, Mc = /* @__PURE__ */ $({
|
|
3276
3290
|
__name: "dashboard-feed-list",
|
|
3277
3291
|
setup(e) {
|
|
3278
|
-
return (t, a) => (h(),
|
|
3292
|
+
return (t, a) => (h(), k("div", Xr, [
|
|
3279
3293
|
W(t.$slots, "default")
|
|
3280
3294
|
]));
|
|
3281
3295
|
}
|
|
3282
|
-
}),
|
|
3296
|
+
}), Jr = { class: "tw-flex tw-items-center tw-gap-2.5 tw-min-w-0" }, Qr = {
|
|
3283
3297
|
key: 0,
|
|
3284
3298
|
class: "tw-flex tw-items-center tw-gap-3 tw-flex-shrink-0 tw-ml-3"
|
|
3285
|
-
},
|
|
3299
|
+
}, Vc = /* @__PURE__ */ $({
|
|
3286
3300
|
__name: "dashboard-feed-row",
|
|
3287
3301
|
emits: ["click"],
|
|
3288
3302
|
setup(e) {
|
|
3289
|
-
return (t, a) => (h(),
|
|
3303
|
+
return (t, a) => (h(), k("div", {
|
|
3290
3304
|
class: "dashboard-feed-row",
|
|
3291
3305
|
onClick: a[0] || (a[0] = (s) => t.$emit("click"))
|
|
3292
3306
|
}, [
|
|
3293
|
-
|
|
3307
|
+
N("div", Jr, [
|
|
3294
3308
|
W(t.$slots, "default")
|
|
3295
3309
|
]),
|
|
3296
|
-
t.$slots.trailing ? (h(),
|
|
3310
|
+
t.$slots.trailing ? (h(), k("div", Qr, [
|
|
3297
3311
|
W(t.$slots, "trailing")
|
|
3298
3312
|
])) : F("", !0)
|
|
3299
3313
|
]));
|
|
@@ -3304,14 +3318,14 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3304
3318
|
config: {}
|
|
3305
3319
|
},
|
|
3306
3320
|
setup(e) {
|
|
3307
|
-
const t = e, a = P(), s =
|
|
3321
|
+
const t = e, a = P(), s = y(() => {
|
|
3308
3322
|
const o = {};
|
|
3309
3323
|
return Object.keys(t.config).forEach((i, n) => {
|
|
3310
3324
|
const r = t.config[i];
|
|
3311
3325
|
r.color && (o[`--vis-color${n}`] = r.color);
|
|
3312
3326
|
}), o;
|
|
3313
3327
|
});
|
|
3314
|
-
return (o, l) => (h(),
|
|
3328
|
+
return (o, l) => (h(), k("div", {
|
|
3315
3329
|
ref_key: "containerRef",
|
|
3316
3330
|
ref: a,
|
|
3317
3331
|
class: "dashboard-chart-container",
|
|
@@ -3320,59 +3334,59 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3320
3334
|
W(o.$slots, "default")
|
|
3321
3335
|
], 4));
|
|
3322
3336
|
}
|
|
3323
|
-
}),
|
|
3337
|
+
}), ei = { class: "dashboard-chart-tooltip" }, ti = {
|
|
3324
3338
|
key: 0,
|
|
3325
3339
|
class: "dashboard-chart-tooltip__title"
|
|
3326
|
-
},
|
|
3340
|
+
}, ai = { class: "dashboard-chart-tooltip__items" }, si = { class: "dashboard-chart-tooltip__label" }, oi = { class: "dashboard-chart-tooltip__value" }, Fc = /* @__PURE__ */ $({
|
|
3327
3341
|
__name: "ChartTooltip",
|
|
3328
3342
|
props: {
|
|
3329
3343
|
title: {},
|
|
3330
3344
|
items: {}
|
|
3331
3345
|
},
|
|
3332
3346
|
setup(e) {
|
|
3333
|
-
return (t, a) => (h(),
|
|
3334
|
-
e.title ? (h(),
|
|
3335
|
-
|
|
3336
|
-
(h(!0),
|
|
3347
|
+
return (t, a) => (h(), k("div", ei, [
|
|
3348
|
+
e.title ? (h(), k("div", ti, V(e.title), 1)) : F("", !0),
|
|
3349
|
+
N("div", ai, [
|
|
3350
|
+
(h(!0), k(Y, null, ne(e.items, (s, o) => (h(), k("div", {
|
|
3337
3351
|
key: o,
|
|
3338
3352
|
class: "dashboard-chart-tooltip__item"
|
|
3339
3353
|
}, [
|
|
3340
|
-
|
|
3354
|
+
N("span", {
|
|
3341
3355
|
class: "dashboard-chart-tooltip__indicator",
|
|
3342
3356
|
style: ye({ background: s.color })
|
|
3343
3357
|
}, null, 4),
|
|
3344
|
-
|
|
3345
|
-
|
|
3358
|
+
N("span", si, V(s.label), 1),
|
|
3359
|
+
N("span", oi, V(s.value), 1)
|
|
3346
3360
|
]))), 128))
|
|
3347
3361
|
])
|
|
3348
3362
|
]));
|
|
3349
3363
|
}
|
|
3350
|
-
}),
|
|
3364
|
+
}), ni = { class: "dashboard-chart-legend" }, ri = { class: "dashboard-chart-legend__label" }, wt = /* @__PURE__ */ $({
|
|
3351
3365
|
__name: "ChartLegend",
|
|
3352
3366
|
props: {
|
|
3353
3367
|
config: {}
|
|
3354
3368
|
},
|
|
3355
3369
|
setup(e) {
|
|
3356
|
-
return (t, a) => (h(),
|
|
3357
|
-
(h(!0),
|
|
3370
|
+
return (t, a) => (h(), k("div", ni, [
|
|
3371
|
+
(h(!0), k(Y, null, ne(e.config, (s, o) => (h(), k("div", {
|
|
3358
3372
|
key: o,
|
|
3359
3373
|
class: "dashboard-chart-legend__item"
|
|
3360
3374
|
}, [
|
|
3361
|
-
|
|
3375
|
+
N("span", {
|
|
3362
3376
|
class: "dashboard-chart-legend__indicator",
|
|
3363
3377
|
style: ye({ background: s.color })
|
|
3364
3378
|
}, null, 4),
|
|
3365
|
-
|
|
3379
|
+
N("span", ri, V(s.label), 1)
|
|
3366
3380
|
]))), 128))
|
|
3367
3381
|
]));
|
|
3368
3382
|
}
|
|
3369
|
-
}),
|
|
3383
|
+
}), ii = "var(--primary-500)", Za = "-", li = {
|
|
3370
3384
|
"&": "&",
|
|
3371
3385
|
"<": "<",
|
|
3372
3386
|
">": ">",
|
|
3373
3387
|
'"': """,
|
|
3374
3388
|
"'": "'"
|
|
3375
|
-
}, Pe = (e) => e == null ? "" : String(e).replace(/[&<>"']/g, (t) =>
|
|
3389
|
+
}, Pe = (e) => e == null ? "" : String(e).replace(/[&<>"']/g, (t) => li[t] ?? t), Be = (e) => {
|
|
3376
3390
|
if (e instanceof Date) {
|
|
3377
3391
|
const t = e.getTime();
|
|
3378
3392
|
return Number.isFinite(t) ? t : void 0;
|
|
@@ -3417,7 +3431,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3417
3431
|
const o = Object.keys(e), l = t ? e[t] : void 0, i = typeof a == "number" && Number.isFinite(a) && o[a] ? e[o[a]] : void 0, n = l ?? i;
|
|
3418
3432
|
return {
|
|
3419
3433
|
label: n?.label ?? s ?? t ?? "Series",
|
|
3420
|
-
color: n?.color ??
|
|
3434
|
+
color: n?.color ?? ii
|
|
3421
3435
|
};
|
|
3422
3436
|
}, Ot = ({ title: e, items: t }) => {
|
|
3423
3437
|
if (!t.length)
|
|
@@ -3437,7 +3451,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3437
3451
|
<div class="dashboard-chart-tooltip__items">${s}</div>
|
|
3438
3452
|
</div>
|
|
3439
3453
|
`;
|
|
3440
|
-
},
|
|
3454
|
+
}, Uc = /* @__PURE__ */ $({
|
|
3441
3455
|
__name: "DashboardLineChart",
|
|
3442
3456
|
props: {
|
|
3443
3457
|
data: {},
|
|
@@ -3458,9 +3472,9 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3458
3472
|
yTickFormat: { type: Function, default: void 0 }
|
|
3459
3473
|
},
|
|
3460
3474
|
setup(e) {
|
|
3461
|
-
const t = e, a = { top: 8, right: 8, bottom: 4, left: 4 }, s = (u) => u[t.xKey], o =
|
|
3475
|
+
const t = e, a = { top: 8, right: 8, bottom: 4, left: 4 }, s = (u) => u[t.xKey], o = y(
|
|
3462
3476
|
() => Xa(t.data, (u) => u[t.xKey], t.rangeStart, t.rangeEnd)
|
|
3463
|
-
), l =
|
|
3477
|
+
), l = y(() => t.yKeys.map((u) => (f) => f[u])), i = y(
|
|
3464
3478
|
() => t.yKeys.map(
|
|
3465
3479
|
(u, f) => we({
|
|
3466
3480
|
config: t.config,
|
|
@@ -3491,13 +3505,13 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3491
3505
|
};
|
|
3492
3506
|
return (u, f) => (h(), C(Tt, { config: e.config }, {
|
|
3493
3507
|
default: b(() => [
|
|
3494
|
-
|
|
3508
|
+
I(c(da), {
|
|
3495
3509
|
data: o.value,
|
|
3496
3510
|
height: e.height,
|
|
3497
3511
|
margin: a
|
|
3498
3512
|
}, {
|
|
3499
3513
|
default: b(() => [
|
|
3500
|
-
e.showTooltip ? (h(), C(c(
|
|
3514
|
+
e.showTooltip ? (h(), C(c(St), {
|
|
3501
3515
|
key: 0,
|
|
3502
3516
|
"allow-hover": !0,
|
|
3503
3517
|
"class-name": "dashboard-chart-tooltip-host",
|
|
@@ -3510,7 +3524,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3510
3524
|
color: i.value,
|
|
3511
3525
|
template: r
|
|
3512
3526
|
}, null, 8, ["y", "color"])) : F("", !0),
|
|
3513
|
-
(h(!0),
|
|
3527
|
+
(h(!0), k(Y, null, ne(l.value, (p, g) => (h(), C(c(No), {
|
|
3514
3528
|
key: g,
|
|
3515
3529
|
x: s,
|
|
3516
3530
|
y: p,
|
|
@@ -3547,7 +3561,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3547
3561
|
_: 1
|
|
3548
3562
|
}, 8, ["config"]));
|
|
3549
3563
|
}
|
|
3550
|
-
}),
|
|
3564
|
+
}), $c = /* @__PURE__ */ $({
|
|
3551
3565
|
__name: "DashboardBarChart",
|
|
3552
3566
|
props: {
|
|
3553
3567
|
data: {},
|
|
@@ -3568,9 +3582,9 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3568
3582
|
yTickFormat: { type: Function, default: void 0 }
|
|
3569
3583
|
},
|
|
3570
3584
|
setup(e) {
|
|
3571
|
-
const t = e, a = { top: 8, right: 8, bottom: 4, left: 4 }, s = (r) => r[t.xKey], o =
|
|
3585
|
+
const t = e, a = { top: 8, right: 8, bottom: 4, left: 4 }, s = (r) => r[t.xKey], o = y(
|
|
3572
3586
|
() => Xa(t.data, (r) => r[t.xKey], t.rangeStart, t.rangeEnd)
|
|
3573
|
-
), l =
|
|
3587
|
+
), l = y(() => t.yKeys.map((r) => (u) => u[r])), i = y(
|
|
3574
3588
|
() => t.yKeys.map(
|
|
3575
3589
|
(r, u) => we({
|
|
3576
3590
|
config: t.config,
|
|
@@ -3579,7 +3593,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3579
3593
|
fallbackLabel: String(r)
|
|
3580
3594
|
}).color
|
|
3581
3595
|
)
|
|
3582
|
-
), n =
|
|
3596
|
+
), n = y(() => ({
|
|
3583
3597
|
[ko.bar]: (r, u) => {
|
|
3584
3598
|
if (!t.yKeys.length || u < 0)
|
|
3585
3599
|
return null;
|
|
@@ -3606,20 +3620,20 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3606
3620
|
}));
|
|
3607
3621
|
return (r, u) => (h(), C(Tt, { config: e.config }, {
|
|
3608
3622
|
default: b(() => [
|
|
3609
|
-
|
|
3623
|
+
I(c(da), {
|
|
3610
3624
|
data: o.value,
|
|
3611
3625
|
height: e.height,
|
|
3612
3626
|
margin: a
|
|
3613
3627
|
}, {
|
|
3614
3628
|
default: b(() => [
|
|
3615
|
-
e.showTooltip ? (h(), C(c(
|
|
3629
|
+
e.showTooltip ? (h(), C(c(St), {
|
|
3616
3630
|
key: 0,
|
|
3617
3631
|
"allow-hover": !0,
|
|
3618
3632
|
"class-name": "dashboard-chart-tooltip-host",
|
|
3619
3633
|
"vertical-shift": 8,
|
|
3620
3634
|
triggers: n.value
|
|
3621
3635
|
}, null, 8, ["triggers"])) : F("", !0),
|
|
3622
|
-
|
|
3636
|
+
I(c(Bo), {
|
|
3623
3637
|
x: s,
|
|
3624
3638
|
y: l.value,
|
|
3625
3639
|
color: i.value,
|
|
@@ -3655,7 +3669,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3655
3669
|
_: 1
|
|
3656
3670
|
}, 8, ["config"]));
|
|
3657
3671
|
}
|
|
3658
|
-
}),
|
|
3672
|
+
}), Wc = /* @__PURE__ */ $({
|
|
3659
3673
|
__name: "DashboardDonutChart",
|
|
3660
3674
|
props: {
|
|
3661
3675
|
data: {},
|
|
@@ -3672,13 +3686,13 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3672
3686
|
valueFormat: { type: Function, default: void 0 }
|
|
3673
3687
|
},
|
|
3674
3688
|
setup(e) {
|
|
3675
|
-
const t = e, a = (n) => n[t.valueKey], s =
|
|
3689
|
+
const t = e, a = (n) => n[t.valueKey], s = y(() => Object.keys(t.config)), o = (n, r) => t.colorKey && n[t.colorKey] ? n[t.colorKey] : s.value[r] ? t.config[s.value[r]].color : void 0, l = (n, r) => {
|
|
3676
3690
|
const u = n.label;
|
|
3677
3691
|
if (typeof u == "string" && u.trim())
|
|
3678
3692
|
return u;
|
|
3679
3693
|
const f = s.value[r];
|
|
3680
3694
|
return f ? t.config[f]?.label ?? f : `Segment ${r + 1}`;
|
|
3681
|
-
}, i =
|
|
3695
|
+
}, i = y(() => ({
|
|
3682
3696
|
[Mo.segment]: (n) => {
|
|
3683
3697
|
if (!n?.data)
|
|
3684
3698
|
return;
|
|
@@ -3701,12 +3715,12 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3701
3715
|
}));
|
|
3702
3716
|
return (n, r) => (h(), C(Tt, { config: e.config }, {
|
|
3703
3717
|
default: b(() => [
|
|
3704
|
-
|
|
3718
|
+
I(c(Vo), {
|
|
3705
3719
|
data: e.data,
|
|
3706
3720
|
height: e.height
|
|
3707
3721
|
}, {
|
|
3708
3722
|
default: b(() => [
|
|
3709
|
-
|
|
3723
|
+
I(c(Fo), {
|
|
3710
3724
|
value: a,
|
|
3711
3725
|
color: o,
|
|
3712
3726
|
"arc-width": e.arcWidth,
|
|
@@ -3715,7 +3729,7 @@ const Cr = ["aria-label"], Dr = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-
|
|
|
3715
3729
|
"central-label": e.centralLabel,
|
|
3716
3730
|
"central-sub-label": e.centralSubLabel
|
|
3717
3731
|
}, null, 8, ["arc-width", "corner-radius", "central-label", "central-sub-label"]),
|
|
3718
|
-
e.showTooltip ? (h(), C(c(
|
|
3732
|
+
e.showTooltip ? (h(), C(c(St), {
|
|
3719
3733
|
key: 0,
|
|
3720
3734
|
"allow-hover": !0,
|
|
3721
3735
|
"class-name": "dashboard-chart-tooltip-host",
|
|
@@ -3758,10 +3772,10 @@ function Ht(e, t, a) {
|
|
|
3758
3772
|
};
|
|
3759
3773
|
}
|
|
3760
3774
|
let Me, Ve;
|
|
3761
|
-
function
|
|
3775
|
+
function Gc() {
|
|
3762
3776
|
Me = void 0, Ve = void 0, ft.clear();
|
|
3763
3777
|
}
|
|
3764
|
-
function
|
|
3778
|
+
function ci() {
|
|
3765
3779
|
const e = Hs, t = Ks, a = zs;
|
|
3766
3780
|
if (!e || !t)
|
|
3767
3781
|
throw new Error(
|
|
@@ -3770,10 +3784,10 @@ function ri() {
|
|
|
3770
3784
|
const s = xs?.router;
|
|
3771
3785
|
if (!s)
|
|
3772
3786
|
throw new Error("[@vc-shell/framework#useBladeNavigation] Vue Router instance is not available.");
|
|
3773
|
-
return Me || (Me =
|
|
3787
|
+
return Me || (Me = y(() => {
|
|
3774
3788
|
const o = e.activeBlade.value?.id;
|
|
3775
3789
|
return e.blades.value.map((l, i) => Ht(l, i, o));
|
|
3776
|
-
})), Ve || (Ve =
|
|
3790
|
+
})), Ve || (Ve = y(() => {
|
|
3777
3791
|
const o = e.workspace.value;
|
|
3778
3792
|
if (o)
|
|
3779
3793
|
return Ht(o, 0, e.activeBlade.value?.id);
|
|
@@ -3786,7 +3800,7 @@ function ri() {
|
|
|
3786
3800
|
activeWorkspace: Ve
|
|
3787
3801
|
};
|
|
3788
3802
|
}
|
|
3789
|
-
function
|
|
3803
|
+
function ui(e) {
|
|
3790
3804
|
if (!e)
|
|
3791
3805
|
throw new Error("Blade cannot be null or undefined.");
|
|
3792
3806
|
if (typeof e == "object" && "name" in e && typeof e.name == "string")
|
|
@@ -3794,8 +3808,8 @@ function ii(e) {
|
|
|
3794
3808
|
const t = e;
|
|
3795
3809
|
return t.name || t.__name || "UnknownBlade";
|
|
3796
3810
|
}
|
|
3797
|
-
function
|
|
3798
|
-
const { bladeStack: e, messaging: t, bladeRegistry: a, router: s, blades: o, activeWorkspace: l } =
|
|
3811
|
+
function xc() {
|
|
3812
|
+
const { bladeStack: e, messaging: t, bladeRegistry: a, router: s, blades: o, activeWorkspace: l } = ci(), i = Eo() ? se(Qt, void 0) : void 0, { syncUrlPush: n, syncUrlReplace: r } = js(s, e);
|
|
3799
3813
|
function u() {
|
|
3800
3814
|
return i ? i.value.id : e.activeBlade.value?.id;
|
|
3801
3815
|
}
|
|
@@ -3806,7 +3820,7 @@ function $c() {
|
|
|
3806
3820
|
}
|
|
3807
3821
|
async function p(E, m) {
|
|
3808
3822
|
const L = {
|
|
3809
|
-
name:
|
|
3823
|
+
name: ui(E.blade),
|
|
3810
3824
|
param: E.param,
|
|
3811
3825
|
options: E.options,
|
|
3812
3826
|
onOpen: E.onOpen,
|
|
@@ -3828,15 +3842,15 @@ function $c() {
|
|
|
3828
3842
|
const m = f(E);
|
|
3829
3843
|
if (!m)
|
|
3830
3844
|
return ot.error(`closeBlade: No blade found at index ${E}.`), !1;
|
|
3831
|
-
const
|
|
3832
|
-
return
|
|
3845
|
+
const S = await e.closeBlade(m);
|
|
3846
|
+
return S || r(), S;
|
|
3833
3847
|
}
|
|
3834
3848
|
function d() {
|
|
3835
3849
|
le("goToRoot()");
|
|
3836
|
-
const E = s.getRoutes(), m = E.find((D) => D.meta?.root),
|
|
3837
|
-
if (
|
|
3850
|
+
const E = s.getRoutes(), m = E.find((D) => D.meta?.root), S = E.find((D) => D.aliasOf?.path === m?.path) || m;
|
|
3851
|
+
if (S?.name)
|
|
3838
3852
|
return {
|
|
3839
|
-
name:
|
|
3853
|
+
name: S.name,
|
|
3840
3854
|
params: s.currentRoute.value.params
|
|
3841
3855
|
};
|
|
3842
3856
|
const L = qs(s);
|
|
@@ -3844,13 +3858,13 @@ function $c() {
|
|
|
3844
3858
|
}
|
|
3845
3859
|
async function w(E, m) {
|
|
3846
3860
|
le("onParentCall(args, index)", "useBlade().callParent(method, args)");
|
|
3847
|
-
let
|
|
3848
|
-
if (m !== void 0 ?
|
|
3861
|
+
let S;
|
|
3862
|
+
if (m !== void 0 ? S = f(m) : S = u(), !S) {
|
|
3849
3863
|
ot.error("onParentCall: Could not determine caller blade.");
|
|
3850
3864
|
return;
|
|
3851
3865
|
}
|
|
3852
3866
|
try {
|
|
3853
|
-
const L = await t.callParent(
|
|
3867
|
+
const L = await t.callParent(S, E.method, E.args);
|
|
3854
3868
|
typeof E.callback == "function" && E.callback(L);
|
|
3855
3869
|
} catch (L) {
|
|
3856
3870
|
ot.error(`onParentCall: Failed to call parent method "${E.method}":`, L);
|
|
@@ -3865,46 +3879,46 @@ function $c() {
|
|
|
3865
3879
|
}
|
|
3866
3880
|
e.registerBeforeClose(m, async () => await E() === !1);
|
|
3867
3881
|
}
|
|
3868
|
-
function
|
|
3882
|
+
function v(E) {
|
|
3869
3883
|
return a.getBladeComponent(E);
|
|
3870
3884
|
}
|
|
3871
|
-
function
|
|
3885
|
+
function O(E) {
|
|
3872
3886
|
le("routeResolver", "plugin-v2 handles URL resolution automatically");
|
|
3873
3887
|
}
|
|
3874
3888
|
function R(E) {
|
|
3875
3889
|
le("setNavigationQuery");
|
|
3876
3890
|
const m = e.workspace.value;
|
|
3877
3891
|
if (!m) return;
|
|
3878
|
-
const
|
|
3892
|
+
const S = m.name.toLowerCase(), L = {};
|
|
3879
3893
|
for (const [D, M] of Object.entries(E))
|
|
3880
|
-
M != null && (L[`${
|
|
3894
|
+
M != null && (L[`${S}_${D}`] = String(M));
|
|
3881
3895
|
s.options.history.replace(
|
|
3882
3896
|
decodeURIComponent(
|
|
3883
3897
|
`${window.location.hash.substring(1).split("?")[0]}?${new URLSearchParams(L).toString()}`
|
|
3884
3898
|
)
|
|
3885
3899
|
);
|
|
3886
3900
|
}
|
|
3887
|
-
function
|
|
3901
|
+
function A() {
|
|
3888
3902
|
le("getNavigationQuery");
|
|
3889
3903
|
const E = e.workspace.value;
|
|
3890
3904
|
if (!E) return;
|
|
3891
|
-
const m = E.name.toLowerCase(),
|
|
3892
|
-
for (const [D, M] of
|
|
3905
|
+
const m = E.name.toLowerCase(), S = new URLSearchParams(window.location.hash.split("?")[1] || ""), L = {};
|
|
3906
|
+
for (const [D, M] of S.entries())
|
|
3893
3907
|
if (D.startsWith(`${m}_`)) {
|
|
3894
3908
|
const z = D.replace(`${m}_`, ""), re = Number(M);
|
|
3895
3909
|
L[z] = isNaN(re) ? M : re;
|
|
3896
3910
|
}
|
|
3897
3911
|
return Object.keys(L).length > 0 ? L : void 0;
|
|
3898
3912
|
}
|
|
3899
|
-
function
|
|
3900
|
-
const
|
|
3901
|
-
|
|
3913
|
+
function _(E, m) {
|
|
3914
|
+
const S = f(E);
|
|
3915
|
+
S && e.setBladeError(S, m);
|
|
3902
3916
|
}
|
|
3903
|
-
function
|
|
3917
|
+
function B(E) {
|
|
3904
3918
|
const m = f(E);
|
|
3905
3919
|
m && e.clearBladeError(m);
|
|
3906
3920
|
}
|
|
3907
|
-
const U =
|
|
3921
|
+
const U = y(() => {
|
|
3908
3922
|
if (!i) return;
|
|
3909
3923
|
const E = i.value;
|
|
3910
3924
|
return {
|
|
@@ -3922,12 +3936,12 @@ function $c() {
|
|
|
3922
3936
|
goToRoot: d,
|
|
3923
3937
|
onParentCall: w,
|
|
3924
3938
|
onBeforeClose: T,
|
|
3925
|
-
resolveBladeByName:
|
|
3926
|
-
routeResolver:
|
|
3939
|
+
resolveBladeByName: v,
|
|
3940
|
+
routeResolver: O,
|
|
3927
3941
|
setNavigationQuery: R,
|
|
3928
|
-
getNavigationQuery:
|
|
3929
|
-
setBladeError:
|
|
3930
|
-
clearBladeError:
|
|
3942
|
+
getNavigationQuery: A,
|
|
3943
|
+
setBladeError: _,
|
|
3944
|
+
clearBladeError: B,
|
|
3931
3945
|
currentBladeNavigationData: U
|
|
3932
3946
|
};
|
|
3933
3947
|
}
|
|
@@ -3944,7 +3958,7 @@ function We(e, t) {
|
|
|
3944
3958
|
if (!We(a[l], s[l])) return !1;
|
|
3945
3959
|
return !0;
|
|
3946
3960
|
}
|
|
3947
|
-
function
|
|
3961
|
+
function Hc(e) {
|
|
3948
3962
|
const {
|
|
3949
3963
|
data: t,
|
|
3950
3964
|
canSaveOverride: a,
|
|
@@ -3960,42 +3974,42 @@ function Wc(e) {
|
|
|
3960
3974
|
},
|
|
3961
3975
|
{ deep: !0 }
|
|
3962
3976
|
);
|
|
3963
|
-
const g = P(!1), d =
|
|
3977
|
+
const g = P(!1), d = y(() => g.value && p.value), w = y(() => !(!g.value || !n.value.valid || !p.value || a && !a.value));
|
|
3964
3978
|
function T() {
|
|
3965
3979
|
f.value = J(t.value), p.value = !1, g.value = !0;
|
|
3966
3980
|
}
|
|
3967
|
-
function
|
|
3981
|
+
function v() {
|
|
3968
3982
|
g.value = !0, p.value = !We(t.value, f.value);
|
|
3969
3983
|
}
|
|
3970
|
-
function
|
|
3984
|
+
function O() {
|
|
3971
3985
|
if (i)
|
|
3972
3986
|
return i();
|
|
3973
3987
|
t.value = J(f.value);
|
|
3974
3988
|
}
|
|
3975
3989
|
if (o && gn(d), s !== !1) {
|
|
3976
|
-
const { onBeforeClose: R } = pt(), { showConfirmation:
|
|
3990
|
+
const { onBeforeClose: R } = pt(), { showConfirmation: A } = Ss();
|
|
3977
3991
|
R(async () => {
|
|
3978
|
-
let
|
|
3979
|
-
if (typeof s == "object" ?
|
|
3980
|
-
const
|
|
3981
|
-
return !await
|
|
3992
|
+
let _;
|
|
3993
|
+
if (typeof s == "object" ? _ = s.value && d.value : _ = d.value, _) {
|
|
3994
|
+
const B = l ? la(l) : "You have unsaved changes. Are you sure you want to leave?";
|
|
3995
|
+
return !await A(B);
|
|
3982
3996
|
}
|
|
3983
3997
|
return !1;
|
|
3984
3998
|
});
|
|
3985
3999
|
}
|
|
3986
4000
|
return ia(Ys, { isModified: d, canSave: w }), {
|
|
3987
4001
|
setBaseline: T,
|
|
3988
|
-
markReady:
|
|
3989
|
-
revert:
|
|
4002
|
+
markReady: v,
|
|
4003
|
+
revert: O,
|
|
3990
4004
|
canSave: w,
|
|
3991
4005
|
isModified: d,
|
|
3992
|
-
isReady:
|
|
4006
|
+
isReady: y(() => g.value),
|
|
3993
4007
|
formMeta: n,
|
|
3994
4008
|
setFieldError: r,
|
|
3995
4009
|
errorBag: u
|
|
3996
4010
|
};
|
|
3997
4011
|
}
|
|
3998
|
-
const De = 14, zt = 3,
|
|
4012
|
+
const De = 14, zt = 3, di = $({
|
|
3999
4013
|
name: "NotificationContainer",
|
|
4000
4014
|
inheritAttrs: !1,
|
|
4001
4015
|
props: {
|
|
@@ -4051,7 +4065,7 @@ const De = 14, zt = 3, li = $({
|
|
|
4051
4065
|
}
|
|
4052
4066
|
},
|
|
4053
4067
|
setup(e) {
|
|
4054
|
-
const { notificationContainers: t, actions: a } = se(Ea), s =
|
|
4068
|
+
const { notificationContainers: t, actions: a } = se(Ea), s = y(() => t[e.position].value || []), o = P(!1), l = P(!1);
|
|
4055
4069
|
let i = null;
|
|
4056
4070
|
function n() {
|
|
4057
4071
|
i && (clearTimeout(i), i = null), o.value = !0;
|
|
@@ -4062,9 +4076,9 @@ const De = 14, zt = 3, li = $({
|
|
|
4062
4076
|
}, 200));
|
|
4063
4077
|
}
|
|
4064
4078
|
const u = ue(/* @__PURE__ */ new Map());
|
|
4065
|
-
function f(T,
|
|
4066
|
-
const
|
|
4067
|
-
u.get(T) !==
|
|
4079
|
+
function f(T, v) {
|
|
4080
|
+
const O = Math.round(v);
|
|
4081
|
+
u.get(T) !== O && u.set(T, O);
|
|
4068
4082
|
}
|
|
4069
4083
|
function p(T) {
|
|
4070
4084
|
return typeof T == "object" && (!!T?.render || !!T?.setup);
|
|
@@ -4075,18 +4089,18 @@ const De = 14, zt = 3, li = $({
|
|
|
4075
4089
|
function d() {
|
|
4076
4090
|
a.clear(), u.clear();
|
|
4077
4091
|
}
|
|
4078
|
-
const w =
|
|
4092
|
+
const w = y(() => (e.position || "top-center").startsWith("top"));
|
|
4079
4093
|
return () => {
|
|
4080
|
-
const T = s.value,
|
|
4081
|
-
const L =
|
|
4094
|
+
const T = s.value, v = T.length, O = o.value || v <= 1, R = v > 1, A = v > 0 ? T[v - 1].notificationId : void 0, _ = A !== void 0 && u.get(A) || 0, B = T.map((m, S) => {
|
|
4095
|
+
const L = v - 1 - S;
|
|
4082
4096
|
let D = 0;
|
|
4083
|
-
for (let ze =
|
|
4097
|
+
for (let ze = S + 1; ze < v; ze++) {
|
|
4084
4098
|
const _t = T[ze].notificationId;
|
|
4085
4099
|
_t !== void 0 && (D += u.get(_t) || 0);
|
|
4086
4100
|
}
|
|
4087
4101
|
const M = L * De + D, z = m.notificationId !== void 0 && u.get(m.notificationId) || 0, re = {
|
|
4088
4102
|
"--toasts-before": L,
|
|
4089
|
-
"--z-index":
|
|
4103
|
+
"--z-index": v - L,
|
|
4090
4104
|
"--offset": `${M}px`,
|
|
4091
4105
|
"--initial-height": z ? `${z}px` : "auto"
|
|
4092
4106
|
}, yt = {
|
|
@@ -4095,14 +4109,14 @@ const De = 14, zt = 3, li = $({
|
|
|
4095
4109
|
onClose: g,
|
|
4096
4110
|
onReportHeight: f,
|
|
4097
4111
|
toastIndex: L,
|
|
4098
|
-
toastsCount:
|
|
4099
|
-
expanded:
|
|
4112
|
+
toastsCount: v,
|
|
4113
|
+
expanded: O,
|
|
4100
4114
|
visibleToasts: zt,
|
|
4101
4115
|
style: re
|
|
4102
4116
|
};
|
|
4103
4117
|
return m.content && p(m.content) ? ie(It, {
|
|
4104
4118
|
...yt,
|
|
4105
|
-
content: ie(
|
|
4119
|
+
content: ie(So(m.content))
|
|
4106
4120
|
}) : ie(It, yt);
|
|
4107
4121
|
});
|
|
4108
4122
|
let U = null;
|
|
@@ -4115,8 +4129,8 @@ const De = 14, zt = 3, li = $({
|
|
|
4115
4129
|
[w.value ? "top" : "bottom"]: "0",
|
|
4116
4130
|
left: "var(--width, 356px)",
|
|
4117
4131
|
"margin-left": "8px",
|
|
4118
|
-
opacity:
|
|
4119
|
-
"pointer-events":
|
|
4132
|
+
opacity: O ? "1" : "0",
|
|
4133
|
+
"pointer-events": O ? "auto" : "none",
|
|
4120
4134
|
transition: "opacity 200ms ease"
|
|
4121
4135
|
}
|
|
4122
4136
|
},
|
|
@@ -4132,26 +4146,26 @@ const De = 14, zt = 3, li = $({
|
|
|
4132
4146
|
]
|
|
4133
4147
|
));
|
|
4134
4148
|
let E;
|
|
4135
|
-
if (
|
|
4136
|
-
const m =
|
|
4137
|
-
let
|
|
4138
|
-
for (let M = 1; M <
|
|
4149
|
+
if (O && v > 1) {
|
|
4150
|
+
const m = v - 1;
|
|
4151
|
+
let S = 0;
|
|
4152
|
+
for (let M = 1; M < v; M++) {
|
|
4139
4153
|
const z = T[M].notificationId;
|
|
4140
|
-
|
|
4154
|
+
S += z !== void 0 && u.get(z) || 0;
|
|
4141
4155
|
}
|
|
4142
|
-
const L = m * De +
|
|
4156
|
+
const L = m * De + S, D = T[0].notificationId !== void 0 && u.get(T[0].notificationId) || 0;
|
|
4143
4157
|
E = L + D;
|
|
4144
4158
|
} else
|
|
4145
|
-
E =
|
|
4159
|
+
E = _ + Math.min(v - 1, zt - 1) * De;
|
|
4146
4160
|
return ie(
|
|
4147
4161
|
"ol",
|
|
4148
4162
|
{
|
|
4149
4163
|
class: "notification__toast-group",
|
|
4150
|
-
"data-expanded": String(
|
|
4164
|
+
"data-expanded": String(O),
|
|
4151
4165
|
"data-position": e.position || "top-center",
|
|
4152
4166
|
"data-y-position": w.value ? "top" : "bottom",
|
|
4153
4167
|
style: {
|
|
4154
|
-
"--front-toast-height": `${
|
|
4168
|
+
"--front-toast-height": `${_}px`,
|
|
4155
4169
|
"--gap": `${De}px`,
|
|
4156
4170
|
width: "var(--width, 356px)",
|
|
4157
4171
|
height: `${E}px`
|
|
@@ -4165,15 +4179,15 @@ const De = 14, zt = 3, li = $({
|
|
|
4165
4179
|
l.value = !1;
|
|
4166
4180
|
}
|
|
4167
4181
|
},
|
|
4168
|
-
[...
|
|
4182
|
+
[...B, U]
|
|
4169
4183
|
);
|
|
4170
4184
|
};
|
|
4171
4185
|
}
|
|
4172
|
-
}),
|
|
4186
|
+
}), fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4173
4187
|
__proto__: null,
|
|
4174
|
-
default:
|
|
4188
|
+
default: di
|
|
4175
4189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4176
|
-
function
|
|
4190
|
+
function gi(e, t) {
|
|
4177
4191
|
t.i18n?.locale && (te.global.locale.value = t.i18n.locale), t.i18n?.fallbackLocale && (te.global.fallbackLocale.value = t.i18n.fallbackLocale), e.use(te);
|
|
4178
4192
|
const a = As();
|
|
4179
4193
|
e.provide(Zs, a);
|
|
@@ -4184,25 +4198,25 @@ function ui(e, t) {
|
|
|
4184
4198
|
te.global.mergeLocaleMessage(s(o), l);
|
|
4185
4199
|
});
|
|
4186
4200
|
}
|
|
4187
|
-
function
|
|
4201
|
+
function mi(e) {
|
|
4188
4202
|
const t = es({
|
|
4189
4203
|
phone: 480,
|
|
4190
4204
|
desktop: 1024
|
|
4191
4205
|
});
|
|
4192
4206
|
e.config.globalProperties.$isPhone = t.smaller("phone"), e.config.globalProperties.$isTablet = t.between("phone", "desktop"), e.config.globalProperties.$isMobile = t.smaller("desktop"), e.config.globalProperties.$isDesktop = t.greater("desktop"), e.config.globalProperties.$isTouch = "ontouchstart" in window || navigator.maxTouchPoints > 0, e.provide(Xs, e.config.globalProperties.$isPhone), e.provide(Js, e.config.globalProperties.$isTablet), e.provide(Qs, e.config.globalProperties.$isMobile), e.provide(eo, e.config.globalProperties.$isDesktop), e.provide(to, e.config.globalProperties.$isTouch);
|
|
4193
4207
|
}
|
|
4194
|
-
function
|
|
4208
|
+
function pi(e) {
|
|
4195
4209
|
e.config.globalProperties.pages = [], e.config.globalProperties.bladeRoutes = [], e.provide(ao, e.config.globalProperties.bladeRoutes);
|
|
4196
4210
|
}
|
|
4197
|
-
function
|
|
4211
|
+
function Ei(e) {
|
|
4198
4212
|
e.provide(Xt, bs()), e.provide(so, Ts()), e.provide(oo, ws()), e.provide(no, Ls()), e.provide(ro, Os()), e.provide(io, Ge());
|
|
4199
4213
|
const t = ys(e);
|
|
4200
4214
|
e.provide(Kt, t);
|
|
4201
4215
|
}
|
|
4202
|
-
function
|
|
4203
|
-
lr(), e.use(Ko, { router: t.router }), e.use(Xo), e.use(Mn), e.use(Wn), e.use(_s, t.signalR), e.use(Go), e.use(
|
|
4216
|
+
function hi(e, t) {
|
|
4217
|
+
lr(), e.use(Ko, { router: t.router }), e.use(Xo), e.use(Mn), e.use(Wn), e.use(_s, t.signalR), e.use(Go), e.use(vo), e.use(Cs, t.aiAgent);
|
|
4204
4218
|
}
|
|
4205
|
-
function
|
|
4219
|
+
function Si(e, t) {
|
|
4206
4220
|
if (!t.applicationInsights?.instrumentationKey) return;
|
|
4207
4221
|
const a = {
|
|
4208
4222
|
appInsightsConfig: {
|
|
@@ -4217,7 +4231,7 @@ function pi(e, t) {
|
|
|
4217
4231
|
};
|
|
4218
4232
|
e.provide(Is, a);
|
|
4219
4233
|
}
|
|
4220
|
-
function
|
|
4234
|
+
function vi(e, t) {
|
|
4221
4235
|
if (!t.applicationInsights?.instrumentationKey) return;
|
|
4222
4236
|
const a = {
|
|
4223
4237
|
appInsightsConfig: {
|
|
@@ -4241,7 +4255,7 @@ function Ei(e, t) {
|
|
|
4241
4255
|
});
|
|
4242
4256
|
});
|
|
4243
4257
|
}
|
|
4244
|
-
function
|
|
4258
|
+
function Ai(e) {
|
|
4245
4259
|
const t = (a) => {
|
|
4246
4260
|
let s = {};
|
|
4247
4261
|
return Object.keys(a.params).length > 0 && (s = Object.fromEntries(Object.entries(a.params).filter(([o]) => o !== "pathMatch"))), s;
|
|
@@ -4269,400 +4283,400 @@ function hi(e) {
|
|
|
4269
4283
|
} else return !0;
|
|
4270
4284
|
});
|
|
4271
4285
|
}
|
|
4272
|
-
const
|
|
4286
|
+
const zc = {
|
|
4273
4287
|
install(e, t) {
|
|
4274
|
-
|
|
4275
|
-
performance.mark("vc:deferred-plugins-start"),
|
|
4288
|
+
vs().register([{ key: "light", localizationKey: "core.themes.light" }]), window.fetch = jn(t.router), gi(e, t), mi(e), pi(e), Ei(e), hi(e, t), Si(e, t), tr(e), typeof window < "u" && (e.runWithContext(() => Aa()), e.runWithContext(() => Ta())), Ai(t.router), setTimeout(() => {
|
|
4289
|
+
performance.mark("vc:deferred-plugins-start"), vi(e, t), performance.mark("vc:deferred-plugins-done");
|
|
4276
4290
|
}, 0);
|
|
4277
4291
|
}
|
|
4278
4292
|
};
|
|
4279
4293
|
export {
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4294
|
+
Og as AI_AGENT_URL_ENV_KEY,
|
|
4295
|
+
yg as AiAgentServiceKey,
|
|
4296
|
+
_g as ApiException,
|
|
4297
|
+
Ig as AppBarMobileButtonsServiceKey,
|
|
4284
4298
|
oo as AppBarWidgetServiceKey,
|
|
4285
4299
|
Rs as AppInsightsInstanceKey,
|
|
4286
4300
|
Is as AppInsightsOptionsKey,
|
|
4287
|
-
|
|
4288
|
-
|
|
4301
|
+
Rg as AppRootElementKey,
|
|
4302
|
+
Pg as AppsClient,
|
|
4289
4303
|
Mn as AssetsDetailsModule,
|
|
4290
4304
|
Un as AssetsManager,
|
|
4291
4305
|
Wn as AssetsManagerModule,
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4306
|
+
Cg as AuthApiBase,
|
|
4307
|
+
Dg as AuthorizationClient,
|
|
4308
|
+
Ng as BladeBackButtonKey,
|
|
4309
|
+
kg as BladeBannersKey,
|
|
4296
4310
|
ea as BladeContextKey,
|
|
4297
|
-
|
|
4311
|
+
Bg as BladeDataKey,
|
|
4298
4312
|
Qt as BladeDescriptorKey,
|
|
4299
|
-
|
|
4313
|
+
Mg as BladeError,
|
|
4300
4314
|
Ys as BladeFormKey,
|
|
4301
|
-
|
|
4302
|
-
|
|
4315
|
+
Vg as BladeLoadingKey,
|
|
4316
|
+
Fg as BladeMaximizedKey,
|
|
4303
4317
|
Vs as BladeMessagingKey,
|
|
4304
4318
|
ao as BladeRoutesKey,
|
|
4305
4319
|
Bs as BladeStackKey,
|
|
4306
|
-
|
|
4320
|
+
jc as ButtonGroupKey,
|
|
4307
4321
|
Jo as COMPONENT_DEFAULTS,
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4322
|
+
Yc as CellDate,
|
|
4323
|
+
Zc as CellDateAgo,
|
|
4324
|
+
Xc as CellDefault,
|
|
4325
|
+
Jc as CellEditableWrapper,
|
|
4326
|
+
Qc as CellHtml,
|
|
4327
|
+
eu as CellImage,
|
|
4328
|
+
tu as CellLink,
|
|
4329
|
+
au as CellMoney,
|
|
4330
|
+
su as CellNumber,
|
|
4331
|
+
ou as CellStatus,
|
|
4332
|
+
nu as CellStatusIcon,
|
|
4333
|
+
Ug as ChangeLogClient,
|
|
4334
|
+
ru as ChangePassword,
|
|
4335
|
+
iu as ChangePasswordButton,
|
|
4336
|
+
Oc as ChangePasswordPage,
|
|
4323
4337
|
Tt as ChartContainer,
|
|
4324
4338
|
wt as ChartLegend,
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4339
|
+
Fc as ChartTooltip,
|
|
4340
|
+
$g as CloseSettingsMenuKey,
|
|
4341
|
+
lu as ColumnCollector,
|
|
4342
|
+
Wg as DEFAULT_AI_AGENT_CONFIG,
|
|
4343
|
+
$c as DashboardBarChart,
|
|
4344
|
+
Wc as DashboardDonutChart,
|
|
4345
|
+
Mc as DashboardFeedList,
|
|
4346
|
+
Vc as DashboardFeedRow,
|
|
4347
|
+
Uc as DashboardLineChart,
|
|
4348
|
+
Gg as DashboardServiceKey,
|
|
4349
|
+
Bc as DashboardStatItem,
|
|
4350
|
+
kc as DashboardWidgetCard,
|
|
4351
|
+
xg as DeveloperToolsClient,
|
|
4352
|
+
Hg as DiagnosticsClient,
|
|
4353
|
+
cu as DisplayableError,
|
|
4354
|
+
yc as DraggableDashboard,
|
|
4355
|
+
zg as DynamicModulesKey,
|
|
4356
|
+
Kg as DynamicObjectPropertyValueType,
|
|
4357
|
+
qg as DynamicPropertiesClient,
|
|
4358
|
+
jg as DynamicPropertyObjectValueValueType,
|
|
4359
|
+
Yg as DynamicPropertyValueType,
|
|
4360
|
+
Zg as DynamicPropertyValueType2,
|
|
4361
|
+
Xg as EMBEDDED_TO_HOST_MESSAGE_TYPES,
|
|
4362
|
+
Jg as EmbeddedModeKey,
|
|
4363
|
+
Qg as EntryState,
|
|
4364
|
+
uu as ErrorInterceptor,
|
|
4351
4365
|
Co as ExtensionPoint,
|
|
4352
|
-
|
|
4366
|
+
Fm as ExtensionPoints,
|
|
4353
4367
|
gr as ExternalProviders,
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4368
|
+
em as ExternalSignInClient,
|
|
4369
|
+
du as FALLBACK_BLADE_ID,
|
|
4370
|
+
Tc as ForgotPassword,
|
|
4371
|
+
tm as FrameworkError,
|
|
4372
|
+
am as HOST_TO_EMBEDDED_MESSAGE_TYPES,
|
|
4359
4373
|
Jt as InjectionError,
|
|
4360
|
-
|
|
4361
|
-
|
|
4374
|
+
sm as InternalRoutesKey,
|
|
4375
|
+
Lc as Invite,
|
|
4362
4376
|
eo as IsDesktopKey,
|
|
4363
4377
|
Qs as IsMobileKey,
|
|
4364
4378
|
Xs as IsPhoneKey,
|
|
4365
4379
|
Js as IsTabletKey,
|
|
4366
4380
|
to as IsTouchKey,
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4381
|
+
om as JobsClient,
|
|
4382
|
+
nm as JsonElementValueKind,
|
|
4383
|
+
rm as JsonValueKind,
|
|
4384
|
+
Nc as LAYOUT_STORAGE_KEY,
|
|
4385
|
+
fu as LanguageSelector,
|
|
4372
4386
|
Zs as LanguageServiceKey,
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4387
|
+
im as LocalizableSettingsClient,
|
|
4388
|
+
bc as Login,
|
|
4389
|
+
gu as LogoutButton,
|
|
4390
|
+
mu as MenuBurgerIcon,
|
|
4377
4391
|
no as MenuServiceKey,
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4392
|
+
lm as ModuleLoadError,
|
|
4393
|
+
cm as ModulesClient,
|
|
4394
|
+
um as ModulesLoadErrorKey,
|
|
4395
|
+
dm as ModulesReadyKey,
|
|
4396
|
+
di as NotificationContainer,
|
|
4383
4397
|
ts as NotificationContextKey,
|
|
4384
|
-
|
|
4398
|
+
pu as NotificationDropdown,
|
|
4385
4399
|
io as NotificationStoreKey,
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4400
|
+
Eu as NotificationTemplate,
|
|
4401
|
+
fm as OAuthAppsClient,
|
|
4402
|
+
gm as ObjectSettingEntryValueType,
|
|
4403
|
+
mm as OperationLogOperationType,
|
|
4404
|
+
pm as ProgressMessageLevel,
|
|
4405
|
+
Em as ProgressMessageLevel2,
|
|
4406
|
+
hm as PushNotificationClient,
|
|
4407
|
+
Sm as RegistrationError,
|
|
4408
|
+
wc as ResetPassword,
|
|
4409
|
+
vm as SecurityClient,
|
|
4410
|
+
Am as ServiceError,
|
|
4397
4411
|
Ws as SettingClient,
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4412
|
+
bm as SettingValueType,
|
|
4413
|
+
hu as SettingsMenu,
|
|
4414
|
+
Su as SettingsMenuItem,
|
|
4401
4415
|
ro as SettingsMenuServiceKey,
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4416
|
+
Tm as ShellIndicatorsKey,
|
|
4417
|
+
Ac as Sidebar,
|
|
4418
|
+
wm as SortDirection,
|
|
4419
|
+
Lm as SortInfoSortDirection,
|
|
4420
|
+
vu as Table,
|
|
4421
|
+
Au as TableBody,
|
|
4422
|
+
bu as TableCell,
|
|
4423
|
+
Tu as TableCheckbox,
|
|
4424
|
+
wu as TableColumnSwitcher,
|
|
4425
|
+
Lu as TableEmpty,
|
|
4426
|
+
Ou as TableFooter,
|
|
4427
|
+
yu as TableGroupRow,
|
|
4428
|
+
_u as TableHead,
|
|
4429
|
+
Iu as TableHeader,
|
|
4430
|
+
Ru as TableRow,
|
|
4431
|
+
Pu as TableRowActions,
|
|
4432
|
+
Cu as TableSearchHeader,
|
|
4433
|
+
Du as TableSelectAllBar,
|
|
4434
|
+
Nu as ThemeSelector,
|
|
4421
4435
|
so as ToolbarServiceKey,
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4436
|
+
ku as UserDropdownButton,
|
|
4437
|
+
Om as ValidationError,
|
|
4438
|
+
Bu as VcAccordion,
|
|
4439
|
+
Mu as VcAccordionItem,
|
|
4440
|
+
ym as VcAiAgentPanel,
|
|
4441
|
+
Vu as VcApp,
|
|
4442
|
+
Fu as VcAppBarMobileActions,
|
|
4443
|
+
Uu as VcAppBarOverlay,
|
|
4444
|
+
$u as VcAppBarWidgetContent,
|
|
4445
|
+
Wu as VcAppBarWidgetItem,
|
|
4446
|
+
Gu as VcAppBarWidgetsMenu,
|
|
4447
|
+
xu as VcAppDesktopLayout,
|
|
4448
|
+
Hu as VcAppMenu,
|
|
4449
|
+
zu as VcAppMenuSidebar,
|
|
4450
|
+
Ku as VcAppMobileLayout,
|
|
4451
|
+
qu as VcAppSidebarCollapseButton,
|
|
4452
|
+
ju as VcAppSidebarContent,
|
|
4453
|
+
Yu as VcAppSidebarHeader,
|
|
4440
4454
|
Le as VcAuthLayout,
|
|
4441
|
-
|
|
4455
|
+
Zu as VcBadge,
|
|
4442
4456
|
ps as VcBanner,
|
|
4443
4457
|
jt as VcBlade,
|
|
4444
|
-
|
|
4458
|
+
Xu as VcBladeNavigation,
|
|
4445
4459
|
Ko as VcBladeNavigationComponent,
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4460
|
+
Ju as VcBladeNavigationV2,
|
|
4461
|
+
Qu as VcBladeSlot,
|
|
4462
|
+
ed as VcBreadcrumbs,
|
|
4449
4463
|
Q as VcButton,
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4464
|
+
td as VcButtonGroup,
|
|
4465
|
+
ad as VcCard,
|
|
4466
|
+
sd as VcCheckbox,
|
|
4467
|
+
od as VcCheckboxGroup,
|
|
4468
|
+
nd as VcCol,
|
|
4469
|
+
rd as VcColorInput,
|
|
4456
4470
|
Ae as VcColumn,
|
|
4457
4471
|
ls as VcContainer,
|
|
4458
4472
|
us as VcDataTable,
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4473
|
+
id as VcDatePicker,
|
|
4474
|
+
ld as VcDropdown,
|
|
4475
|
+
cd as VcDropdownItem,
|
|
4476
|
+
ud as VcDropdownPanel,
|
|
4477
|
+
dd as VcDynamicProperty,
|
|
4478
|
+
fd as VcEditor,
|
|
4465
4479
|
je as VcField,
|
|
4466
|
-
|
|
4480
|
+
gd as VcFileUpload,
|
|
4467
4481
|
Ee as VcForm,
|
|
4468
|
-
|
|
4482
|
+
md as VcGallery,
|
|
4469
4483
|
me as VcHint,
|
|
4470
4484
|
aa as VcIcon,
|
|
4471
4485
|
mt as VcImage,
|
|
4472
|
-
|
|
4473
|
-
|
|
4486
|
+
pd as VcImageTile,
|
|
4487
|
+
Ed as VcImageUpload,
|
|
4474
4488
|
q as VcInput,
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4489
|
+
hd as VcInputCurrency,
|
|
4490
|
+
Sd as VcInputDropdown,
|
|
4491
|
+
vd as VcInputGroup,
|
|
4492
|
+
Ad as VcLabel,
|
|
4493
|
+
bd as VcLanguageSelector,
|
|
4494
|
+
Td as VcLink,
|
|
4481
4495
|
Zt as VcLoading,
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4496
|
+
wd as VcMenu,
|
|
4497
|
+
Ld as VcMenuExpandedKey,
|
|
4498
|
+
Od as VcMenuGroup,
|
|
4499
|
+
yd as VcMenuItem,
|
|
4500
|
+
_d as VcMultivalue,
|
|
4501
|
+
Id as VcPagination,
|
|
4488
4502
|
os as VcPopup,
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4503
|
+
Rd as VcProgress,
|
|
4504
|
+
Pd as VcRadioButton,
|
|
4505
|
+
Cd as VcRadioGroup,
|
|
4506
|
+
Dd as VcRating,
|
|
4507
|
+
Nd as VcRow,
|
|
4508
|
+
kd as VcScrollableContainer,
|
|
4509
|
+
Bd as VcSelect,
|
|
4496
4510
|
ms as VcSidebar,
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4511
|
+
Md as VcSkeleton,
|
|
4512
|
+
Vd as VcSlider,
|
|
4513
|
+
Fd as VcStatus,
|
|
4514
|
+
Ud as VcStatusIcon,
|
|
4515
|
+
$d as VcSwitch,
|
|
4516
|
+
Wd as VcTable,
|
|
4503
4517
|
cs as VcTextarea,
|
|
4504
4518
|
It as VcToast,
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4519
|
+
Gd as VcTooltip,
|
|
4520
|
+
xd as VcVideo,
|
|
4521
|
+
Hd as VcWidget,
|
|
4508
4522
|
Gs as WidgetScopeKey,
|
|
4509
4523
|
Xt as WidgetServiceKey,
|
|
4510
4524
|
qt as __registerBladeConfig,
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4525
|
+
_m as _createInternalUserLogic,
|
|
4526
|
+
Gc as _resetAdapterState,
|
|
4527
|
+
Im as _sharedInternalUserLogic,
|
|
4528
|
+
zd as addAppBarWidget,
|
|
4529
|
+
Kd as addMenuItem,
|
|
4530
|
+
qd as addSettingsMenuItem,
|
|
4531
|
+
jd as after,
|
|
4518
4532
|
Cs as aiAgentPlugin,
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4533
|
+
Yd as autofocus,
|
|
4534
|
+
Zd as before,
|
|
4535
|
+
Xd as bigInt,
|
|
4536
|
+
ac as camelToSnake,
|
|
4537
|
+
oc as camelize,
|
|
4538
|
+
Dc as clearLayoutStorage,
|
|
4539
|
+
Jd as convertColorNameToHex,
|
|
4540
|
+
Qd as convertMomentFormat,
|
|
4541
|
+
Rm as createAiAgentToolbarButton,
|
|
4542
|
+
ic as createAppModule,
|
|
4529
4543
|
H as createLogger,
|
|
4530
|
-
|
|
4544
|
+
zc as default,
|
|
4531
4545
|
At as defineAppModule,
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4546
|
+
hc as defineBladeContext,
|
|
4547
|
+
Um as defineExtensionPoint,
|
|
4548
|
+
ef as fileWeight,
|
|
4549
|
+
tf as formatBadgeCount,
|
|
4550
|
+
af as formatDateRelative,
|
|
4551
|
+
sf as formatDateWithPattern,
|
|
4552
|
+
Ic as fromGridstackNode,
|
|
4539
4553
|
ds as generateId,
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4554
|
+
of as getAllBladeConfigs,
|
|
4555
|
+
nf as getBestThumbnailSize,
|
|
4556
|
+
rf as getBladeConfig,
|
|
4557
|
+
lc as getComponentDefaults,
|
|
4544
4558
|
ma as getExtensionColor,
|
|
4545
4559
|
pa as getExtensionLabel,
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4560
|
+
lf as getMenuBadge,
|
|
4561
|
+
cf as getMenuBadges,
|
|
4562
|
+
uf as getThumbnailUrl,
|
|
4549
4563
|
te as i18n,
|
|
4550
|
-
|
|
4551
|
-
|
|
4564
|
+
Sc as injectBladeContext,
|
|
4565
|
+
Pm as isFrameworkError,
|
|
4552
4566
|
fa as isImage,
|
|
4553
|
-
|
|
4567
|
+
df as isValidHexColor,
|
|
4554
4568
|
Uo as kebabToCamel,
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4569
|
+
sc as kebabToPascal,
|
|
4570
|
+
ff as languageToCountryMap,
|
|
4571
|
+
Rc as loadLayoutFromStorage,
|
|
4558
4572
|
Yt as loading,
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4573
|
+
Cm as logger,
|
|
4574
|
+
Dm as loggers,
|
|
4575
|
+
Cc as mergeLayoutWithWidgets,
|
|
4576
|
+
gf as mindimensions,
|
|
4577
|
+
mf as normalizeHexColor,
|
|
4564
4578
|
j as notification,
|
|
4565
4579
|
Ne as parseError,
|
|
4566
4580
|
Go as permissions,
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4581
|
+
pf as provideAppBarState,
|
|
4582
|
+
Ef as provideAppBarWidget,
|
|
4583
|
+
hf as provideDashboardService,
|
|
4584
|
+
Sf as provideLanguages,
|
|
4585
|
+
vf as provideMenuService,
|
|
4586
|
+
Af as provideSettingsMenu,
|
|
4587
|
+
bf as provideSidebarState,
|
|
4588
|
+
Tf as provideToolbarService,
|
|
4575
4589
|
ga as readableSize,
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4590
|
+
wf as registerDashboardWidget,
|
|
4591
|
+
Lf as registerExternalWidget,
|
|
4592
|
+
Of as registerToolbarItem,
|
|
4593
|
+
yf as registerWidget,
|
|
4594
|
+
_f as removeMenuBadge,
|
|
4595
|
+
If as removeRegisteredMenuItem,
|
|
4596
|
+
Rf as resolveLocale,
|
|
4597
|
+
Pf as resolveLocaleSync,
|
|
4598
|
+
Pc as saveLayoutToStorage,
|
|
4599
|
+
Cf as setMenuBadge,
|
|
4586
4600
|
_s as signalR,
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4601
|
+
Df as stripTenantPrefix,
|
|
4602
|
+
_c as toGridstackWidget,
|
|
4603
|
+
Nf as updateSignalRCreatorSymbol,
|
|
4604
|
+
kf as useAdaptiveItems,
|
|
4605
|
+
Nm as useAiAgent,
|
|
4606
|
+
wg as useAiAgentContext,
|
|
4593
4607
|
on as useApiClient,
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4608
|
+
Bf as useAppBarMobileActions,
|
|
4609
|
+
Mf as useAppBarState,
|
|
4610
|
+
Vf as useAppBarWidget,
|
|
4611
|
+
Ff as useAppBarWidgets,
|
|
4598
4612
|
Ps as useAppInsights,
|
|
4599
|
-
|
|
4600
|
-
|
|
4613
|
+
dc as useAssets,
|
|
4614
|
+
fc as useAssetsManager,
|
|
4601
4615
|
ha as useAsync,
|
|
4602
|
-
|
|
4616
|
+
Uf as useBadge,
|
|
4603
4617
|
gn as useBeforeUnload,
|
|
4604
4618
|
pt as useBlade,
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4619
|
+
Hc as useBladeForm,
|
|
4620
|
+
$f as useBladeLoading,
|
|
4621
|
+
Wf as useBladeMessaging,
|
|
4622
|
+
xc as useBladeNavigation,
|
|
4623
|
+
nc as useBladeNotifications,
|
|
4624
|
+
km as useBladeStack,
|
|
4625
|
+
pc as useBladeWidgets,
|
|
4626
|
+
Gf as useBreadcrumbs,
|
|
4627
|
+
xf as useCollapsible,
|
|
4628
|
+
Hf as useColumnFilter,
|
|
4615
4629
|
ir as useContainer,
|
|
4616
4630
|
Es as useDashboard,
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4631
|
+
zf as useDataTablePagination,
|
|
4632
|
+
Kf as useDataTableSort,
|
|
4633
|
+
gc as useDynamicProperties,
|
|
4634
|
+
qf as useErrorHandler,
|
|
4635
|
+
$m as useExtensionPoint,
|
|
4636
|
+
jf as useFilterState,
|
|
4637
|
+
Yf as useFloatingPosition,
|
|
4638
|
+
Zf as useFormField,
|
|
4639
|
+
cc as useFunctions,
|
|
4640
|
+
Xf as useGalleryPreview,
|
|
4641
|
+
Nr as useGridstack,
|
|
4642
|
+
Jf as useImageLoad,
|
|
4629
4643
|
sr as useInstance,
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4644
|
+
Qf as useLanguages,
|
|
4645
|
+
Sa as useLoading,
|
|
4646
|
+
eg as useMenuActiveState,
|
|
4647
|
+
tg as useMenuExpanded,
|
|
4648
|
+
ag as useMenuService,
|
|
4649
|
+
vc as useModificationTracker,
|
|
4650
|
+
rc as useNotificationContext,
|
|
4637
4651
|
Ge as useNotificationStore,
|
|
4638
|
-
|
|
4652
|
+
uc as useNotifications,
|
|
4639
4653
|
gt as usePermissions,
|
|
4640
|
-
|
|
4654
|
+
Ss as usePopup,
|
|
4641
4655
|
gs as useResponsive,
|
|
4642
|
-
|
|
4656
|
+
sg as useScrollArrows,
|
|
4643
4657
|
Re as useSettings,
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4658
|
+
og as useSettingsMenu,
|
|
4659
|
+
ng as useShellBootstrap,
|
|
4660
|
+
rg as useShellLifecycle,
|
|
4661
|
+
ig as useShellNavigation,
|
|
4662
|
+
lg as useSidebarState,
|
|
4663
|
+
cg as useTableColumnsReorder,
|
|
4664
|
+
ug as useTableColumnsResize,
|
|
4665
|
+
dg as useTableContext,
|
|
4666
|
+
fg as useTableInlineEdit,
|
|
4667
|
+
gg as useTableRowGrouping,
|
|
4668
|
+
mg as useTableRowReorder,
|
|
4669
|
+
pg as useTableSelection,
|
|
4670
|
+
Eg as useTableSort,
|
|
4671
|
+
hg as useTeleportTarget,
|
|
4672
|
+
vs as useTheme,
|
|
4673
|
+
Sg as useToggleableContent,
|
|
4674
|
+
vg as useToolbar,
|
|
4675
|
+
Bm as useUser,
|
|
4676
|
+
Ag as useVirtualScroll,
|
|
4677
|
+
mc as useWebVitals,
|
|
4678
|
+
Ec as useWidgetTrigger,
|
|
4679
|
+
bg as vAutofocus,
|
|
4666
4680
|
Yt as vLoading,
|
|
4667
|
-
|
|
4681
|
+
Mm as wrapError
|
|
4668
4682
|
};
|