@vc-shell/framework 2.5.0-pr330.76c5b90 → 2.5.0-pr333.50c07fa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-_KPO9Orm.js → VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js} +2630 -2621
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js.map +1 -0
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/framework.js +534 -511
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-_KPO9Orm.js.map +0 -1
package/dist/framework.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { b as ya, c as Ba } from "./chunks/vendor-vueuse-core-_wFDcFkI.js";
|
|
2
|
-
import { N as
|
|
2
|
+
import { N as st, O as se, P as q, Q as X, l as x, R as Pe, S as Ma, T as yt, p as ot, q as $, n as Ae, A as ka, U as Va, W as Ua, X as Fa, V as Ee, Y as Wa, Z as Ha, $ as Ga, a0 as xa, a1 as $a, a2 as Ka, a3 as za, a4 as qa, a5 as Ya } from "./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
|
|
3
3
|
import { B as Zl, a6 as Xl, a as Jl, _ as Ql, b as eu, c as tu, d as au, e as nu, f as su, g as ou, h as ru, i as iu, j as lu, k as uu, a7 as cu, a8 as du, a9 as Eu, aa as fu, ab as mu, ac as gu, ad as Su, m as pu, o as Au, r as Tu, s as hu, t as Lu, u as Ou, v as Ru, w as _u, x as Iu, y as vu, z as wu, ae as Cu, af as Pu, ag as bu, ah as Nu, ai as Du, aj as yu, ak as Bu, al as Mu, am as ku, an as Vu, ao as Uu, ap as Fu, aq as Wu, ar as Hu, as as Gu, at as xu, au as $u, av as Ku, aw as zu, ax as qu, ay as Yu, C as ju, az as Zu, aA as Xu, aB as Ju, aC as Qu, D as ec, aD as tc, aE as ac, aF as nc, aG as sc, aH as oc, aI as rc, aJ as ic, aK as lc, aL as uc, E as cc, F as dc, G as Ec, L as fc, aM as mc, H as gc, I as Sc, aN as pc, J as Ac, aO as Tc, aP as hc, aQ as Lc } from "./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
|
|
4
|
-
import { getCurrentScope as
|
|
5
|
-
import { aS as me, aT as rn, aU as ln, aV as Ut, aW as Ge, aX as un, aY as cn, aZ as dn, a_ as En, a$ as fn, ab as mn, b0 as xe, b1 as gn, b2 as Sn, b3 as Ft, F as Wt, M as pn, Y as ge, W as $e, am as An, N as Tn, ai as hn, B as _e, a3 as Ht, E as Ln, b4 as On, b5 as Rn, an as
|
|
6
|
-
import { b8 as Rc, b9 as _c, C as Ic, ba as vc, bb as wc, bc as Cc, _ as Pc, bd as bc, be as Nc, S as Dc, bf as yc, bg as Bc, a as Mc, b as kc, c as Vc, d as Uc, e as Fc, f as Wc, T as Hc, g as Gc, h as xc, i as $c, j as Kc, k as zc, l as qc, m as Yc, bh as jc, bi as Zc, V as Xc, n as Jc, o as Qc, p as ed, q as td, r as ad, s as nd, t as sd, u as od, v as rd, w as id, x as ld, y as ud, z as cd, A as dd, D as Ed, bj as fd, bj as md, bk as gd, G as Sd, H as pd, I as Ad, J as Td, K as hd, L as Ld, O as Od, P as Rd, Q as _d, R as Id, U as vd, X as wd, Z as Cd, $ as Pd, a0 as bd, a1 as Nd, a2 as Dd, a4 as yd, a5 as Bd, a6 as Md, a7 as kd, a8 as Vd, a9 as Ud, aa as Fd, ac as Wd, ad as Hd, ae as Gd, af as xd, ag as $d, ah as Kd, aj as zd, ak as qd, al as Yd, ao as jd, ap as Zd, bl as Xd, aq as Jd, bm as Qd, bn as eE, bo as tE, bp as aE, bq as nE, br as sE, bs as oE, bt as rE, bu as iE, bv as lE, bw as uE, ar as cE, as as dE, at as EE, bx as fE, au as mE, av as gE, by as SE, aw as pE, ax as AE, ay as TE, az as hE, bz as LE, aA as OE, aB as RE, aC as _E, bA as IE, aD as vE, aE as wE, aF as CE, aG as PE, bB as bE, aH as NE, aI as DE, aJ as yE, aK as BE, aL as ME, aM as kE, aN as VE, aO as UE, aP as FE, aQ as WE, aR as HE, aq as GE } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { getCurrentScope as rt, onScopeDispose as it, computed as I, inject as Q, watch as ae, defineComponent as H, openBlock as b, createBlock as D, createSlots as Oe, withCtx as h, renderSlot as Y, createElementVNode as U, normalizeClass as ja, createElementBlock as W, Fragment as ne, createVNode as _, unref as i, createTextVNode as M, toDisplayString as y, shallowReactive as Za, ref as N, readonly as Me, onMounted as Re, onBeforeMount as Xa, onBeforeUnmount as Ja, shallowRef as Qa, onUnmounted as en, provide as Bt, toValue as Mt, isRef as kt, normalizeStyle as Vt, createCommentVNode as z, withDirectives as tn, withModifiers as He, reactive as ie, createApp as an, nextTick as be, renderList as Fe, withKeys as lt, mergeProps as re, getCurrentInstance as nn, warn as sn, h as ee, toRaw as on } from "vue";
|
|
5
|
+
import { aS as me, aT as rn, aU as ln, aV as Ut, aW as Ge, aX as un, aY as cn, aZ as dn, a_ as En, a$ as fn, ab as mn, b0 as xe, b1 as gn, b2 as Sn, b3 as Ft, F as Wt, M as pn, Y as ge, W as $e, am as An, N as Tn, ai as hn, B as _e, a3 as Ht, E as Ln, b4 as On, b5 as Rn, an as mt, b6 as _n, b7 as In } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js";
|
|
6
|
+
import { b8 as Rc, b9 as _c, C as Ic, ba as vc, bb as wc, bc as Cc, _ as Pc, bd as bc, be as Nc, S as Dc, bf as yc, bg as Bc, a as Mc, b as kc, c as Vc, d as Uc, e as Fc, f as Wc, T as Hc, g as Gc, h as xc, i as $c, j as Kc, k as zc, l as qc, m as Yc, bh as jc, bi as Zc, V as Xc, n as Jc, o as Qc, p as ed, q as td, r as ad, s as nd, t as sd, u as od, v as rd, w as id, x as ld, y as ud, z as cd, A as dd, D as Ed, bj as fd, bj as md, bk as gd, G as Sd, H as pd, I as Ad, J as Td, K as hd, L as Ld, O as Od, P as Rd, Q as _d, R as Id, U as vd, X as wd, Z as Cd, $ as Pd, a0 as bd, a1 as Nd, a2 as Dd, a4 as yd, a5 as Bd, a6 as Md, a7 as kd, a8 as Vd, a9 as Ud, aa as Fd, ac as Wd, ad as Hd, ae as Gd, af as xd, ag as $d, ah as Kd, aj as zd, ak as qd, al as Yd, ao as jd, ap as Zd, bl as Xd, aq as Jd, bm as Qd, bn as eE, bo as tE, bp as aE, bq as nE, br as sE, bs as oE, bt as rE, bu as iE, bv as lE, bw as uE, ar as cE, as as dE, at as EE, bx as fE, au as mE, av as gE, by as SE, aw as pE, ax as AE, ay as TE, az as hE, bz as LE, aA as OE, aB as RE, aC as _E, bA as IE, aD as vE, aE as wE, aF as CE, aG as PE, bB as bE, aH as NE, aI as DE, aJ as yE, aK as BE, aL as ME, aM as kE, aN as VE, aO as UE, aP as FE, aQ as WE, aR as HE, aq as GE } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js";
|
|
7
7
|
import { _ as vn } from "./chunks/vendor-cypress-signalr-mock-itnm2wpA.js";
|
|
8
|
-
import { c as k, b as wn, d as Cn, i as
|
|
8
|
+
import { c as k, b as wn, d as Cn, i as et, S as Pn, W as Gt, B as xt, h as bn, j as $t, k as Nn, m as Dn, l as Kt, n as yn, _ as Bn, L as Mn, I as kn, o as Vn, p as Un, q as Fn, r as Wn, s as Hn, T as Gn, t as xn, v as $n, w as Kn, x as zn } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
9
9
|
import { A as $E, y as KE, z as zE, C as qE, D as YE, F as jE, G as ZE, H as XE, J as JE, K as QE, e as ef, f as tf, O as af, P as nf, Q as sf, R as of, U as rf, V as lf, X as uf, Y as cf, Z as df, $ as Ef, a0 as ff, E as mf, a1 as gf, a2 as Sf, a3 as pf, a4 as Af, a5 as Tf, a6 as hf, a7 as Lf, a8 as Of, M as Rf, N as _f, a9 as If, aa as vf, ab as wf, ac as Cf, ad as Pf, ae as bf, af as Nf, ag as Df, a as yf, ah as Bf, ai as Mf, aj as kf, ak as Vf, u as Uf, g as Ff } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
10
10
|
import { H as qn, L as Yn } from "./chunks/vendor-microsoft-signalr-Bgpbb4fW.js";
|
|
11
11
|
import { a as jn } from "./chunks/index-DLsURdJp.js";
|
|
12
12
|
import { u as Hf } from "./chunks/index-DLsURdJp.js";
|
|
13
|
-
import { a as Zn, s as Xn, b as Jn, d as Qn, e as es, f as
|
|
13
|
+
import { a as Zn, s as Xn, b as Jn, d as Qn, e as es, f as ut, g as ts, h as as, i as ns, j as ss } from "./chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
|
|
14
14
|
import { A as xf, D as $f, E as Kf, H as zf, _ as qf, c as Yf, k as jf, l as Zf, m as Xf, n as Jf, o as Qf, p as em, u as tm, q as am, r as nm, t as sm } from "./chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
|
|
15
15
|
import "./chunks/ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
|
|
16
16
|
import "./chunks/vendor-dompurify-DpIUMBYC.js";
|
|
17
17
|
import { u as le } from "./chunks/vendor-vue-i18n-LO-EJStU.js";
|
|
18
|
-
import { useForm as ue, useIsFormValid as Ie, useIsFormDirty as
|
|
18
|
+
import { useForm as ue, useIsFormValid as Ie, useIsFormDirty as ct, Field as Z } from "vee-validate";
|
|
19
19
|
import { useRouter as ve } from "vue-router";
|
|
20
20
|
import "./chunks/vendor-tiptap-starter-kit-ny-AoaO_.js";
|
|
21
21
|
import "./chunks/vendor-tiptap-extension-underline-Bo1pXXDN.js";
|
|
@@ -116,11 +116,11 @@ function Al(e) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
const As = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "svg", "gif"]);
|
|
119
|
-
function
|
|
119
|
+
function dt(e) {
|
|
120
120
|
return e.split(".").pop()?.toLowerCase();
|
|
121
121
|
}
|
|
122
122
|
function zt(e) {
|
|
123
|
-
return e ? As.has(
|
|
123
|
+
return e ? As.has(dt(e) ?? "") : !1;
|
|
124
124
|
}
|
|
125
125
|
function qt(e, t = 2) {
|
|
126
126
|
if (!e) return "0 Bytes";
|
|
@@ -144,15 +144,15 @@ const Ts = {
|
|
|
144
144
|
};
|
|
145
145
|
function Yt(e) {
|
|
146
146
|
if (!e) return "var(--neutrals-400)";
|
|
147
|
-
const t =
|
|
147
|
+
const t = dt(e) ?? "";
|
|
148
148
|
return Ts[t] ?? "var(--neutrals-400)";
|
|
149
149
|
}
|
|
150
150
|
function jt(e) {
|
|
151
|
-
return e ? (
|
|
151
|
+
return e ? (dt(e) ?? "FILE").toUpperCase() : "FILE";
|
|
152
152
|
}
|
|
153
153
|
const hs = {
|
|
154
154
|
install(e) {
|
|
155
|
-
const { hasAccess: t } =
|
|
155
|
+
const { hasAccess: t } = st();
|
|
156
156
|
e.config.globalProperties.$hasAccess = t;
|
|
157
157
|
}
|
|
158
158
|
};
|
|
@@ -162,10 +162,10 @@ function Tl(e) {
|
|
|
162
162
|
filter: e.filter,
|
|
163
163
|
handler: e.onMessage
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
const n =
|
|
165
|
+
rt() && it(a);
|
|
166
|
+
const n = I(
|
|
167
167
|
() => t.realtime.value.filter((r) => !(!r.notifyType || !e.types.includes(r.notifyType) || !r.isNew || e.filter && !e.filter(r)))
|
|
168
|
-
), s =
|
|
168
|
+
), s = I(() => n.value.length);
|
|
169
169
|
function o(r) {
|
|
170
170
|
t.markAsRead(r);
|
|
171
171
|
}
|
|
@@ -188,30 +188,40 @@ function Ll() {
|
|
|
188
188
|
clearBroadcastFilter: e.clearBroadcastFilter
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const Zt = Symbol("NotificationContainerState"),
|
|
191
|
+
const Zt = Symbol("NotificationContainerState"), Ke = k("signalR"), Ls = {
|
|
192
192
|
install(e) {
|
|
193
193
|
const t = me(), { isAuthenticated: a } = se();
|
|
194
194
|
let n = !1;
|
|
195
|
-
const s = vn("pushNotificationHub", { enableForVitest: !0 }) ?? new qn().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Yn.Information).build(), o =
|
|
195
|
+
const s = vn("pushNotificationHub", { enableForVitest: !0 }) ?? new qn().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Yn.Information).build(), o = 5e3, r = 6e4;
|
|
196
|
+
let l = 0, c;
|
|
197
|
+
function u(f) {
|
|
198
|
+
return f instanceof Error && /\b401\b/.test(f.message);
|
|
199
|
+
}
|
|
200
|
+
const E = () => {
|
|
196
201
|
s.start().then(() => {
|
|
197
|
-
|
|
198
|
-
}).catch((
|
|
199
|
-
|
|
202
|
+
l = 0, Ke.info("Connected.");
|
|
203
|
+
}).catch((f) => {
|
|
204
|
+
if (Ke.error("Connection Error: ", f), u(f)) {
|
|
205
|
+
Ke.warn("Not authenticated — stopping reconnect attempts until sign-in.");
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const d = Math.min(o * 2 ** l, r);
|
|
209
|
+
l++, c = setTimeout(() => E(), d);
|
|
200
210
|
});
|
|
201
211
|
};
|
|
202
|
-
async function
|
|
203
|
-
await s.stop();
|
|
212
|
+
async function g() {
|
|
213
|
+
clearTimeout(c), c = void 0, await s.stop();
|
|
204
214
|
}
|
|
205
215
|
s.onclose(() => {
|
|
206
|
-
n &&
|
|
207
|
-
}), s.on("Send", (
|
|
208
|
-
t.ingest(
|
|
209
|
-
}), s.on("SendSystemEvents", (
|
|
210
|
-
t.ingest(
|
|
216
|
+
n && E();
|
|
217
|
+
}), s.on("Send", (f) => {
|
|
218
|
+
t.ingest(f);
|
|
219
|
+
}), s.on("SendSystemEvents", (f) => {
|
|
220
|
+
t.ingest(f, { broadcast: !0 });
|
|
211
221
|
}), ae(
|
|
212
222
|
a,
|
|
213
|
-
async (
|
|
214
|
-
|
|
223
|
+
async (f) => {
|
|
224
|
+
f ? (n = !0, l = 0, E()) : (n = !1, await g());
|
|
215
225
|
},
|
|
216
226
|
{ immediate: !0 }
|
|
217
227
|
);
|
|
@@ -224,7 +234,7 @@ function Ol(e) {
|
|
|
224
234
|
};
|
|
225
235
|
}
|
|
226
236
|
const Os = k("modularity");
|
|
227
|
-
function
|
|
237
|
+
function Et(e) {
|
|
228
238
|
const { blades: t, locales: a, notificationTemplates: n, notifications: s } = e;
|
|
229
239
|
return {
|
|
230
240
|
install(o) {
|
|
@@ -281,7 +291,7 @@ function dt(e) {
|
|
|
281
291
|
};
|
|
282
292
|
}
|
|
283
293
|
function Rl(e, t, a, n) {
|
|
284
|
-
return
|
|
294
|
+
return Et({
|
|
285
295
|
blades: e,
|
|
286
296
|
locales: t,
|
|
287
297
|
notificationTemplates: a
|
|
@@ -332,8 +342,8 @@ async function _s(e, t, a, n, s) {
|
|
|
332
342
|
return t.blades.value.length > 0 && !await gt(t) ? !1 : void 0;
|
|
333
343
|
const c = Object.fromEntries(Object.entries(e.params).filter(([, E]) => typeof E == "string"));
|
|
334
344
|
if (await Rs(t, a, l, n, s, c)) {
|
|
335
|
-
const { path: E, query:
|
|
336
|
-
return { path: E, query:
|
|
345
|
+
const { path: E, query: g } = cn(r, t.blades.value);
|
|
346
|
+
return { path: E, query: g, replace: !0 };
|
|
337
347
|
}
|
|
338
348
|
}
|
|
339
349
|
const Is = {
|
|
@@ -356,17 +366,17 @@ const Is = {
|
|
|
356
366
|
console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
|
|
357
367
|
return;
|
|
358
368
|
}
|
|
359
|
-
const { hasAccess: o } = e.runWithContext(() =>
|
|
369
|
+
const { hasAccess: o } = e.runWithContext(() => st()), r = {}, l = fn(a, () => r.current), c = Zn(s, o, l);
|
|
360
370
|
r.current = c, e.provide(wn, c), Xn(c);
|
|
361
371
|
const u = En(c);
|
|
362
372
|
e.provide(Cn, u), Jn(u), es(s);
|
|
363
|
-
const E = a.getRoutes().find((
|
|
373
|
+
const E = a.getRoutes().find((g) => g.meta?.root);
|
|
364
374
|
E && a.addRoute(E.name, {
|
|
365
375
|
path: ":pathMatch(.*)*",
|
|
366
376
|
component: { render: () => null },
|
|
367
377
|
meta: { bladeCatchAll: !0 }
|
|
368
378
|
}), a.beforeEach(
|
|
369
|
-
(
|
|
379
|
+
(g) => l.suppressWhile(() => _s(g, c, s, o, a))
|
|
370
380
|
);
|
|
371
381
|
}
|
|
372
382
|
}, vs = {
|
|
@@ -422,7 +432,7 @@ const Is = {
|
|
|
422
432
|
function _l(e) {
|
|
423
433
|
return vs[e];
|
|
424
434
|
}
|
|
425
|
-
const
|
|
435
|
+
const ft = /* @__PURE__ */ H({
|
|
426
436
|
__name: "vc-popup-base",
|
|
427
437
|
props: {
|
|
428
438
|
title: {},
|
|
@@ -449,10 +459,10 @@ const Et = /* @__PURE__ */ H({
|
|
|
449
459
|
closable: e.closable,
|
|
450
460
|
onClose: r[0] || (r[0] = (l) => o.$emit("close"))
|
|
451
461
|
}, Oe({
|
|
452
|
-
content:
|
|
462
|
+
content: h(() => [
|
|
453
463
|
Y(o.$slots, "default")
|
|
454
464
|
]),
|
|
455
|
-
footer:
|
|
465
|
+
footer: h(({ close: l }) => [
|
|
456
466
|
Y(o.$slots, "footer", {
|
|
457
467
|
close: l,
|
|
458
468
|
confirm: () => s(l)
|
|
@@ -464,18 +474,18 @@ const Et = /* @__PURE__ */ H({
|
|
|
464
474
|
}])
|
|
465
475
|
}, [
|
|
466
476
|
e.mode === "confirm" ? (b(), W(ne, { key: 0 }, [
|
|
467
|
-
|
|
477
|
+
_(i(x), {
|
|
468
478
|
text: e.confirmAsText,
|
|
469
479
|
class: "vc-popup-base__confirm",
|
|
470
480
|
onClick: (c) => s(l)
|
|
471
481
|
}, {
|
|
472
|
-
default:
|
|
482
|
+
default: h(() => [
|
|
473
483
|
M(y(e.confirmLabel), 1)
|
|
474
484
|
]),
|
|
475
485
|
_: 1
|
|
476
486
|
}, 8, ["text", "onClick"]),
|
|
477
|
-
|
|
478
|
-
default:
|
|
487
|
+
_(i(x), { onClick: l }, {
|
|
488
|
+
default: h(() => [
|
|
479
489
|
M(y(e.cancelLabel), 1)
|
|
480
490
|
]),
|
|
481
491
|
_: 1
|
|
@@ -485,7 +495,7 @@ const Et = /* @__PURE__ */ H({
|
|
|
485
495
|
class: "vc-popup-base__single",
|
|
486
496
|
onClick: l
|
|
487
497
|
}, {
|
|
488
|
-
default:
|
|
498
|
+
default: h(() => [
|
|
489
499
|
M(y(e.actionLabel), 1)
|
|
490
500
|
]),
|
|
491
501
|
_: 1
|
|
@@ -497,7 +507,7 @@ const Et = /* @__PURE__ */ H({
|
|
|
497
507
|
}, [
|
|
498
508
|
o.$slots.header ? {
|
|
499
509
|
name: "header",
|
|
500
|
-
fn:
|
|
510
|
+
fn: h(() => [
|
|
501
511
|
Y(o.$slots, "header")
|
|
502
512
|
]),
|
|
503
513
|
key: "0"
|
|
@@ -511,7 +521,7 @@ const Et = /* @__PURE__ */ H({
|
|
|
511
521
|
},
|
|
512
522
|
emits: ["close", "confirm"],
|
|
513
523
|
setup(e) {
|
|
514
|
-
return (t, a) => (b(), D(
|
|
524
|
+
return (t, a) => (b(), D(ft, {
|
|
515
525
|
variant: "warning",
|
|
516
526
|
mode: "confirm",
|
|
517
527
|
"confirm-label": t.$t("COMPONENTS.ORGANISMS.VC_POPUP.CONFIRM"),
|
|
@@ -521,14 +531,14 @@ const Et = /* @__PURE__ */ H({
|
|
|
521
531
|
onClose: a[0] || (a[0] = (n) => t.$emit("close")),
|
|
522
532
|
onConfirm: a[1] || (a[1] = (n) => t.$emit("confirm"))
|
|
523
533
|
}, Oe({
|
|
524
|
-
default:
|
|
534
|
+
default: h(() => [
|
|
525
535
|
Y(t.$slots, "default")
|
|
526
536
|
]),
|
|
527
537
|
_: 2
|
|
528
538
|
}, [
|
|
529
539
|
t.$slots.header ? {
|
|
530
540
|
name: "header",
|
|
531
|
-
fn:
|
|
541
|
+
fn: h(() => [
|
|
532
542
|
Y(t.$slots, "header")
|
|
533
543
|
]),
|
|
534
544
|
key: "0"
|
|
@@ -542,21 +552,21 @@ const Et = /* @__PURE__ */ H({
|
|
|
542
552
|
},
|
|
543
553
|
emits: ["close"],
|
|
544
554
|
setup(e) {
|
|
545
|
-
return (t, a) => (b(), D(
|
|
555
|
+
return (t, a) => (b(), D(ft, {
|
|
546
556
|
variant: "error",
|
|
547
557
|
mode: "acknowledge",
|
|
548
558
|
"action-label": t.$t("COMPONENTS.ORGANISMS.VC_POPUP.OK"),
|
|
549
559
|
title: e.title,
|
|
550
560
|
onClose: a[0] || (a[0] = (n) => t.$emit("close"))
|
|
551
561
|
}, Oe({
|
|
552
|
-
default:
|
|
562
|
+
default: h(() => [
|
|
553
563
|
Y(t.$slots, "default")
|
|
554
564
|
]),
|
|
555
565
|
_: 2
|
|
556
566
|
}, [
|
|
557
567
|
t.$slots.header ? {
|
|
558
568
|
name: "header",
|
|
559
|
-
fn:
|
|
569
|
+
fn: h(() => [
|
|
560
570
|
Y(t.$slots, "header")
|
|
561
571
|
]),
|
|
562
572
|
key: "0"
|
|
@@ -570,21 +580,21 @@ const Et = /* @__PURE__ */ H({
|
|
|
570
580
|
},
|
|
571
581
|
emits: ["close"],
|
|
572
582
|
setup(e) {
|
|
573
|
-
return (t, a) => (b(), D(
|
|
583
|
+
return (t, a) => (b(), D(ft, {
|
|
574
584
|
variant: "info",
|
|
575
585
|
mode: "acknowledge",
|
|
576
586
|
"action-label": t.$t("COMPONENTS.ORGANISMS.VC_POPUP.OK"),
|
|
577
587
|
title: e.title,
|
|
578
588
|
onClose: a[0] || (a[0] = (n) => t.$emit("close"))
|
|
579
589
|
}, Oe({
|
|
580
|
-
default:
|
|
590
|
+
default: h(() => [
|
|
581
591
|
Y(t.$slots, "default")
|
|
582
592
|
]),
|
|
583
593
|
_: 2
|
|
584
594
|
}, [
|
|
585
595
|
t.$slots.header ? {
|
|
586
596
|
name: "header",
|
|
587
|
-
fn:
|
|
597
|
+
fn: h(() => [
|
|
588
598
|
Y(t.$slots, "header")
|
|
589
599
|
]),
|
|
590
600
|
key: "0"
|
|
@@ -614,14 +624,14 @@ function Ds(e, t) {
|
|
|
614
624
|
function ys(e, t = 0) {
|
|
615
625
|
setTimeout(e, t);
|
|
616
626
|
}
|
|
617
|
-
const
|
|
627
|
+
const ze = /* @__PURE__ */ new WeakMap();
|
|
618
628
|
function Bs(e) {
|
|
619
629
|
return function(...t) {
|
|
620
|
-
if (!
|
|
630
|
+
if (!ze.has(e)) {
|
|
621
631
|
const a = e(...t);
|
|
622
|
-
|
|
632
|
+
ze.set(e, a);
|
|
623
633
|
}
|
|
624
|
-
return
|
|
634
|
+
return ze.get(e);
|
|
625
635
|
};
|
|
626
636
|
}
|
|
627
637
|
function Ms(e, t) {
|
|
@@ -646,12 +656,12 @@ function vl(e) {
|
|
|
646
656
|
a.length && (s = t.subscribe({
|
|
647
657
|
types: a,
|
|
648
658
|
handler: (r) => n?.(r)
|
|
649
|
-
}),
|
|
650
|
-
const o =
|
|
659
|
+
}), rt() && it(() => s?.()));
|
|
660
|
+
const o = I(() => a.length ? t.realtime.value.filter(
|
|
651
661
|
(r) => r.isNew && r.notifyType != null && a.includes(r.notifyType)
|
|
652
662
|
) : []);
|
|
653
663
|
return {
|
|
654
|
-
notifications:
|
|
664
|
+
notifications: I(() => ls(t.history.value, ["created"], ["desc"])),
|
|
655
665
|
moduleNotifications: o,
|
|
656
666
|
loadFromHistory: t.loadHistory,
|
|
657
667
|
addNotification: t.ingest,
|
|
@@ -662,7 +672,7 @@ function vl(e) {
|
|
|
662
672
|
}
|
|
663
673
|
};
|
|
664
674
|
}
|
|
665
|
-
let
|
|
675
|
+
let qe;
|
|
666
676
|
const ks = k("use-async");
|
|
667
677
|
function Xt(e, t) {
|
|
668
678
|
const a = N(!1), n = N(null), s = t?.notify !== !1, o = t?.notifyTimeout ?? 8e3;
|
|
@@ -672,14 +682,14 @@ function Xt(e, t) {
|
|
|
672
682
|
return await e(l, ...c);
|
|
673
683
|
} catch (u) {
|
|
674
684
|
const E = Pe(u);
|
|
675
|
-
if (n.value = E, ks.error("Async action failed:", u), s && !
|
|
676
|
-
const
|
|
677
|
-
|
|
685
|
+
if (n.value = E, ks.error("Async action failed:", u), s && !et() && u && typeof u == "object") {
|
|
686
|
+
const g = `async-error-${E.message.slice(0, 80)}`, f = setTimeout(async () => {
|
|
687
|
+
qe || (qe = (await import("./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js").then((S) => S.b0)).notification), qe.error(E.message, {
|
|
678
688
|
timeout: o,
|
|
679
|
-
notificationId:
|
|
689
|
+
notificationId: g
|
|
680
690
|
});
|
|
681
691
|
}, 0);
|
|
682
|
-
Ma(u, f,
|
|
692
|
+
Ma(u, f, g);
|
|
683
693
|
}
|
|
684
694
|
throw u;
|
|
685
695
|
} finally {
|
|
@@ -701,7 +711,7 @@ function Vs(e) {
|
|
|
701
711
|
};
|
|
702
712
|
}
|
|
703
713
|
function Jt(...e) {
|
|
704
|
-
return
|
|
714
|
+
return I(() => e.some((t) => t.value));
|
|
705
715
|
}
|
|
706
716
|
const Us = k("use-settings");
|
|
707
717
|
function we() {
|
|
@@ -733,7 +743,7 @@ function we() {
|
|
|
733
743
|
return Re(async () => {
|
|
734
744
|
!e.value && !t.value && await s();
|
|
735
745
|
}), {
|
|
736
|
-
uiSettings:
|
|
746
|
+
uiSettings: I(() => e.value ?? {}),
|
|
737
747
|
applySettings: o,
|
|
738
748
|
loading: Jt(n)
|
|
739
749
|
};
|
|
@@ -757,7 +767,7 @@ function wl() {
|
|
|
757
767
|
function o() {
|
|
758
768
|
a = !0, s();
|
|
759
769
|
}
|
|
760
|
-
return
|
|
770
|
+
return rt() && it(o), {
|
|
761
771
|
begin: n,
|
|
762
772
|
invalidate: s,
|
|
763
773
|
dispose: o,
|
|
@@ -827,7 +837,7 @@ function Cl() {
|
|
|
827
837
|
upload: t,
|
|
828
838
|
remove: a,
|
|
829
839
|
edit: n,
|
|
830
|
-
loading:
|
|
840
|
+
loading: I(() => e.value)
|
|
831
841
|
};
|
|
832
842
|
}
|
|
833
843
|
const Gs = k("use-assets-manager"), xs = 4;
|
|
@@ -870,16 +880,16 @@ function Pl(e, t) {
|
|
|
870
880
|
function s() {
|
|
871
881
|
e.value = n.value;
|
|
872
882
|
}
|
|
873
|
-
const o = n, r =
|
|
874
|
-
async function u(S,
|
|
883
|
+
const o = n, r = I(() => a.value), l = t.concurrency ?? xs, c = t.assetKey ?? "url";
|
|
884
|
+
async function u(S, O) {
|
|
875
885
|
try {
|
|
876
886
|
a.value = !0;
|
|
877
|
-
const T = Array.from(S), v = t.uploadPath(),
|
|
887
|
+
const T = Array.from(S), v = t.uploadPath(), C = (await Ks(
|
|
878
888
|
T,
|
|
879
|
-
(
|
|
889
|
+
(L, m) => $s(L, v, m, O),
|
|
880
890
|
l
|
|
881
|
-
)).filter((
|
|
882
|
-
n.value = [...n.value, ...
|
|
891
|
+
)).filter((L) => L !== null);
|
|
892
|
+
n.value = [...n.value, ...C], s();
|
|
883
893
|
} catch (T) {
|
|
884
894
|
throw Gs.error("Upload failed:", T), T;
|
|
885
895
|
} finally {
|
|
@@ -887,29 +897,29 @@ function Pl(e, t) {
|
|
|
887
897
|
}
|
|
888
898
|
}
|
|
889
899
|
async function E(S) {
|
|
890
|
-
await
|
|
900
|
+
await g([S]);
|
|
891
901
|
}
|
|
892
|
-
async function
|
|
902
|
+
async function g(S) {
|
|
893
903
|
if (t.confirmRemove && !await t.confirmRemove())
|
|
894
904
|
return;
|
|
895
|
-
const
|
|
896
|
-
n.value = n.value.filter((T) => !
|
|
905
|
+
const O = new Set(S.map((T) => T[c]));
|
|
906
|
+
n.value = n.value.filter((T) => !O.has(T[c])), s();
|
|
897
907
|
}
|
|
898
908
|
function f(S) {
|
|
899
|
-
n.value = S.map((
|
|
909
|
+
n.value = S.map((O) => ({ ...O })), s();
|
|
900
910
|
}
|
|
901
911
|
function d(S) {
|
|
902
|
-
const
|
|
903
|
-
if (
|
|
912
|
+
const O = n.value.findIndex((T) => T[c] === S[c]);
|
|
913
|
+
if (O !== -1) {
|
|
904
914
|
const T = [...n.value];
|
|
905
|
-
T[
|
|
915
|
+
T[O] = { ...n.value[O], ...S }, n.value = T, s();
|
|
906
916
|
}
|
|
907
917
|
}
|
|
908
918
|
return {
|
|
909
919
|
items: o,
|
|
910
920
|
upload: u,
|
|
911
921
|
remove: E,
|
|
912
|
-
removeMany:
|
|
922
|
+
removeMany: g,
|
|
913
923
|
reorder: f,
|
|
914
924
|
updateItem: d,
|
|
915
925
|
loading: r
|
|
@@ -955,7 +965,7 @@ function bl() {
|
|
|
955
965
|
e.value = e.value.filter((o) => !s.includes(o.id));
|
|
956
966
|
}
|
|
957
967
|
return {
|
|
958
|
-
breadcrumbs:
|
|
968
|
+
breadcrumbs: I(() => e.value),
|
|
959
969
|
push: a,
|
|
960
970
|
remove: n
|
|
961
971
|
};
|
|
@@ -1150,28 +1160,28 @@ function Nl(e) {
|
|
|
1150
1160
|
if (u)
|
|
1151
1161
|
return await t(u);
|
|
1152
1162
|
});
|
|
1153
|
-
async function o(u, E,
|
|
1163
|
+
async function o(u, E, g) {
|
|
1154
1164
|
if (!u) return;
|
|
1155
1165
|
const f = await s({
|
|
1156
1166
|
propertyIds: [u],
|
|
1157
1167
|
keyword: E,
|
|
1158
1168
|
skip: 0
|
|
1159
1169
|
});
|
|
1160
|
-
return !
|
|
1161
|
-
const S = d.localizedValues?.find((
|
|
1170
|
+
return !g || !f ? f : f.map((d) => {
|
|
1171
|
+
const S = d.localizedValues?.find((O) => O.languageCode === g)?.value;
|
|
1162
1172
|
return { ...d, value: S ?? d.alias };
|
|
1163
1173
|
});
|
|
1164
1174
|
}
|
|
1165
|
-
async function r(u, E,
|
|
1175
|
+
async function r(u, E, g) {
|
|
1166
1176
|
if (!(!u || !a))
|
|
1167
|
-
return await a(u,
|
|
1177
|
+
return await a(u, g);
|
|
1168
1178
|
}
|
|
1169
1179
|
function l(u, E) {
|
|
1170
1180
|
return Tt(u).get(u, E);
|
|
1171
1181
|
}
|
|
1172
1182
|
function c(u) {
|
|
1173
|
-
const { property: E, value:
|
|
1174
|
-
Tt(E).set(E,
|
|
1183
|
+
const { property: E, value: g, ...f } = u;
|
|
1184
|
+
Tt(E).set(E, g, f);
|
|
1175
1185
|
}
|
|
1176
1186
|
return {
|
|
1177
1187
|
getPropertyValue: l,
|
|
@@ -1257,7 +1267,7 @@ function ro(e) {
|
|
|
1257
1267
|
function Ml(e) {
|
|
1258
1268
|
Bt(
|
|
1259
1269
|
$t,
|
|
1260
|
-
|
|
1270
|
+
I(() => ro(Mt(e)))
|
|
1261
1271
|
);
|
|
1262
1272
|
}
|
|
1263
1273
|
function kl() {
|
|
@@ -1303,7 +1313,7 @@ function Vl(e) {
|
|
|
1303
1313
|
return {
|
|
1304
1314
|
currentValue: n,
|
|
1305
1315
|
pristineValue: a,
|
|
1306
|
-
isModified:
|
|
1316
|
+
isModified: I(() => s.value),
|
|
1307
1317
|
resetModificationState: o
|
|
1308
1318
|
};
|
|
1309
1319
|
}
|
|
@@ -1316,9 +1326,9 @@ const mo = /* @__PURE__ */ H({
|
|
|
1316
1326
|
name: "AssetsDetails",
|
|
1317
1327
|
__name: "assets-details",
|
|
1318
1328
|
setup(e) {
|
|
1319
|
-
const { options: t, closeSelf: a } =
|
|
1329
|
+
const { options: t, closeSelf: a } = ut();
|
|
1320
1330
|
ue({ validateOnMount: !1 });
|
|
1321
|
-
const n = Ie(), s =
|
|
1331
|
+
const n = Ie(), s = ct(), { t: o } = le({ useScope: "global" }), r = N({ ...t.value?.asset }), l = I(() => t.value?.disabled), c = I({
|
|
1322
1332
|
get() {
|
|
1323
1333
|
const f = r.value.name;
|
|
1324
1334
|
if (!f) return "";
|
|
@@ -1328,10 +1338,10 @@ const mo = /* @__PURE__ */ H({
|
|
|
1328
1338
|
set(f) {
|
|
1329
1339
|
const d = r.value.name;
|
|
1330
1340
|
if (!d) return;
|
|
1331
|
-
const S = d.lastIndexOf("."),
|
|
1332
|
-
r.value.name = f ? f +
|
|
1341
|
+
const S = d.lastIndexOf("."), O = S > 0 ? d.slice(S) : "";
|
|
1342
|
+
r.value.name = f ? f + O : "";
|
|
1333
1343
|
}
|
|
1334
|
-
}), u =
|
|
1344
|
+
}), u = I(() => !s.value || !n.value), E = N([
|
|
1335
1345
|
{
|
|
1336
1346
|
id: "save",
|
|
1337
1347
|
title: o("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
|
|
@@ -1339,7 +1349,7 @@ const mo = /* @__PURE__ */ H({
|
|
|
1339
1349
|
async clickHandler() {
|
|
1340
1350
|
t.value?.assetEditHandler && typeof t.value?.assetEditHandler == "function" && (await t.value?.assetEditHandler(r.value), a());
|
|
1341
1351
|
},
|
|
1342
|
-
disabled:
|
|
1352
|
+
disabled: I(() => u.value || l.value)
|
|
1343
1353
|
},
|
|
1344
1354
|
{
|
|
1345
1355
|
id: "delete",
|
|
@@ -1348,24 +1358,24 @@ const mo = /* @__PURE__ */ H({
|
|
|
1348
1358
|
async clickHandler() {
|
|
1349
1359
|
t.value?.assetRemoveHandler && typeof t.value?.assetRemoveHandler == "function" && (await t.value?.assetRemoveHandler(r.value), a());
|
|
1350
1360
|
},
|
|
1351
|
-
disabled:
|
|
1361
|
+
disabled: I(() => l.value)
|
|
1352
1362
|
}
|
|
1353
|
-
]),
|
|
1363
|
+
]), g = I(() => r.value?.typeId);
|
|
1354
1364
|
return (f, d) => (b(), D(i(Wt), {
|
|
1355
1365
|
title: i(t)?.asset?.name,
|
|
1356
1366
|
subtitle: i(o)("ASSETS.PAGES.DETAILS.SUBTITLE"),
|
|
1357
1367
|
"toolbar-items": E.value
|
|
1358
1368
|
}, {
|
|
1359
|
-
default:
|
|
1369
|
+
default: h(() => [
|
|
1360
1370
|
U("div", io, [
|
|
1361
1371
|
U("div", lo, [
|
|
1362
|
-
|
|
1363
|
-
default:
|
|
1372
|
+
_(i(pn), { "no-padding": !0 }, {
|
|
1373
|
+
default: h(() => [
|
|
1364
1374
|
U("div", uo, [
|
|
1365
|
-
|
|
1366
|
-
default:
|
|
1375
|
+
_(i(ge), null, {
|
|
1376
|
+
default: h(() => [
|
|
1367
1377
|
U("div", co, [
|
|
1368
|
-
i(zt)(r.value.name) ? (b(), D(i(
|
|
1378
|
+
i(zt)(r.value.name) ? (b(), D(i(ot), {
|
|
1369
1379
|
key: 0,
|
|
1370
1380
|
src: r.value.url,
|
|
1371
1381
|
size: "xl",
|
|
@@ -1378,16 +1388,16 @@ const mo = /* @__PURE__ */ H({
|
|
|
1378
1388
|
}, y(i(jt)(r.value.name)), 5)
|
|
1379
1389
|
])),
|
|
1380
1390
|
U("div", fo, [
|
|
1381
|
-
|
|
1391
|
+
_(i($e), {
|
|
1382
1392
|
label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.SIZE"),
|
|
1383
1393
|
"model-value": i(qt)(r.value.size)
|
|
1384
1394
|
}, null, 8, ["label", "model-value"]),
|
|
1385
|
-
|
|
1395
|
+
_(i($e), {
|
|
1386
1396
|
label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.CREATED_DATE"),
|
|
1387
1397
|
"model-value": r.value.createdDate,
|
|
1388
1398
|
type: "date-ago"
|
|
1389
1399
|
}, null, 8, ["label", "model-value"]),
|
|
1390
|
-
|
|
1400
|
+
_(i($e), {
|
|
1391
1401
|
label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.URL"),
|
|
1392
1402
|
"model-value": r.value.url,
|
|
1393
1403
|
"display-value": r.value.name,
|
|
@@ -1403,12 +1413,12 @@ const mo = /* @__PURE__ */ H({
|
|
|
1403
1413
|
rules: "required",
|
|
1404
1414
|
"model-value": r.value.name
|
|
1405
1415
|
}, {
|
|
1406
|
-
default:
|
|
1407
|
-
|
|
1416
|
+
default: h(({ errorMessage: S, handleChange: O, errors: T }) => [
|
|
1417
|
+
_(i($), {
|
|
1408
1418
|
modelValue: c.value,
|
|
1409
1419
|
"onUpdate:modelValue": [
|
|
1410
1420
|
d[0] || (d[0] = (v) => c.value = v),
|
|
1411
|
-
|
|
1421
|
+
O
|
|
1412
1422
|
],
|
|
1413
1423
|
class: "tw-mb-4",
|
|
1414
1424
|
label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
|
|
@@ -1422,7 +1432,7 @@ const mo = /* @__PURE__ */ H({
|
|
|
1422
1432
|
]),
|
|
1423
1433
|
_: 1
|
|
1424
1434
|
}, 8, ["label", "model-value"])),
|
|
1425
|
-
|
|
1435
|
+
g.value === "Image" && !i(t)?.hiddenFields?.includes("altText") ? (b(), D(i($), {
|
|
1426
1436
|
key: 1,
|
|
1427
1437
|
modelValue: r.value.altText,
|
|
1428
1438
|
"onUpdate:modelValue": d[1] || (d[1] = (S) => r.value.altText = S),
|
|
@@ -1458,32 +1468,32 @@ const mo = /* @__PURE__ */ H({
|
|
|
1458
1468
|
}), go = mo, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1459
1469
|
__proto__: null,
|
|
1460
1470
|
AssetsDetails: go
|
|
1461
|
-
}, Symbol.toStringTag, { value: "Module" })), po =
|
|
1471
|
+
}, Symbol.toStringTag, { value: "Module" })), po = Et({ blades: So }), Ao = { class: "tw-flex tw-items-center tw-justify-center" };
|
|
1462
1472
|
Ft("AssetsManager", {});
|
|
1463
1473
|
const To = /* @__PURE__ */ H({
|
|
1464
1474
|
name: "AssetsManager",
|
|
1465
1475
|
__name: "assets-manager",
|
|
1466
1476
|
setup(e) {
|
|
1467
|
-
const t = k("assets-manager"), { options: a, openBlade: n } =
|
|
1477
|
+
const t = k("assets-manager"), { options: a, openBlade: n } = ut(), { t: s } = le({ useScope: "global" }), o = I(() => a.value.manager), r = I(() => o.value.items.value ?? []), l = I(() => o.value.loading.value), c = I(() => a.value?.title || s("ASSETS_MANAGER.TITLE")), u = N(!1), E = N(), g = N([]), f = I(() => a.value?.disabled), d = N([
|
|
1468
1478
|
{
|
|
1469
1479
|
id: "add",
|
|
1470
|
-
title:
|
|
1480
|
+
title: I(() => s("ASSETS_MANAGER.TOOLBAR.ADD")),
|
|
1471
1481
|
icon: "lucide-plus",
|
|
1472
1482
|
clickHandler() {
|
|
1473
1483
|
w();
|
|
1474
1484
|
},
|
|
1475
|
-
disabled:
|
|
1476
|
-
isVisible:
|
|
1485
|
+
disabled: I(() => f.value),
|
|
1486
|
+
isVisible: I(() => !f.value)
|
|
1477
1487
|
},
|
|
1478
1488
|
{
|
|
1479
1489
|
id: "delete",
|
|
1480
|
-
title:
|
|
1490
|
+
title: I(() => s("ASSETS_MANAGER.TOOLBAR.DELETE")),
|
|
1481
1491
|
icon: "lucide-trash-2",
|
|
1482
1492
|
async clickHandler() {
|
|
1483
|
-
await o.value.removeMany(
|
|
1493
|
+
await o.value.removeMany(g.value);
|
|
1484
1494
|
},
|
|
1485
|
-
disabled:
|
|
1486
|
-
isVisible:
|
|
1495
|
+
disabled: I(() => !g.value.length || f.value),
|
|
1496
|
+
isVisible: I(() => !f.value)
|
|
1487
1497
|
}
|
|
1488
1498
|
]);
|
|
1489
1499
|
async function S(p) {
|
|
@@ -1492,7 +1502,7 @@ const To = /* @__PURE__ */ H({
|
|
|
1492
1502
|
o.value.reorder(R);
|
|
1493
1503
|
}
|
|
1494
1504
|
}
|
|
1495
|
-
function
|
|
1505
|
+
function O() {
|
|
1496
1506
|
f.value || (u.value = !0);
|
|
1497
1507
|
}
|
|
1498
1508
|
function T() {
|
|
@@ -1503,7 +1513,7 @@ const To = /* @__PURE__ */ H({
|
|
|
1503
1513
|
const R = p.dataTransfer?.files;
|
|
1504
1514
|
if (R && R.length)
|
|
1505
1515
|
try {
|
|
1506
|
-
await
|
|
1516
|
+
await C(R);
|
|
1507
1517
|
} catch (P) {
|
|
1508
1518
|
throw t.error("Failed to upload dropped files:", P), P;
|
|
1509
1519
|
}
|
|
@@ -1513,7 +1523,7 @@ const To = /* @__PURE__ */ H({
|
|
|
1513
1523
|
function w() {
|
|
1514
1524
|
E.value.value = "", E.value.click();
|
|
1515
1525
|
}
|
|
1516
|
-
async function
|
|
1526
|
+
async function C(p) {
|
|
1517
1527
|
if (!p || p.length === 0) return;
|
|
1518
1528
|
const R = new Set((r.value ?? []).map((B) => B.name).filter(Boolean)), P = new DataTransfer();
|
|
1519
1529
|
for (const B of Array.from(p)) {
|
|
@@ -1533,16 +1543,16 @@ const To = /* @__PURE__ */ H({
|
|
|
1533
1543
|
throw t.error("Failed to upload assets:", B), B;
|
|
1534
1544
|
}
|
|
1535
1545
|
}
|
|
1536
|
-
async function
|
|
1546
|
+
async function L(p) {
|
|
1537
1547
|
const P = p.target.files;
|
|
1538
1548
|
if (P && P.length)
|
|
1539
1549
|
try {
|
|
1540
|
-
await
|
|
1550
|
+
await C(P);
|
|
1541
1551
|
} catch (B) {
|
|
1542
1552
|
throw t.error("Failed to upload files:", B), B;
|
|
1543
1553
|
}
|
|
1544
1554
|
}
|
|
1545
|
-
function
|
|
1555
|
+
function m(p) {
|
|
1546
1556
|
n({
|
|
1547
1557
|
name: "AssetsDetails",
|
|
1548
1558
|
options: {
|
|
@@ -1560,13 +1570,13 @@ const To = /* @__PURE__ */ H({
|
|
|
1560
1570
|
t.error("Failed to open AssetsDetails blade:", R);
|
|
1561
1571
|
});
|
|
1562
1572
|
}
|
|
1563
|
-
const
|
|
1573
|
+
const A = () => [
|
|
1564
1574
|
{
|
|
1565
1575
|
icon: "lucide-trash-2",
|
|
1566
|
-
title:
|
|
1576
|
+
title: I(() => s("ASSETS_MANAGER.TABLE.ACTIONS.DELETE")),
|
|
1567
1577
|
type: "danger",
|
|
1568
1578
|
async clickHandler(p) {
|
|
1569
|
-
await o.value.remove(p),
|
|
1579
|
+
await o.value.remove(p), g.value = [];
|
|
1570
1580
|
}
|
|
1571
1581
|
}
|
|
1572
1582
|
];
|
|
@@ -1575,21 +1585,21 @@ const To = /* @__PURE__ */ H({
|
|
|
1575
1585
|
"toolbar-items": d.value,
|
|
1576
1586
|
width: "70%"
|
|
1577
1587
|
}, {
|
|
1578
|
-
default:
|
|
1588
|
+
default: h(() => [
|
|
1579
1589
|
tn((b(), W("div", {
|
|
1580
1590
|
class: "tw-relative tw-h-full tw-flex-1",
|
|
1581
|
-
onDragover: He(
|
|
1591
|
+
onDragover: He(O, ["prevent", "stop"]),
|
|
1582
1592
|
onDragleave: He(T, ["prevent"]),
|
|
1583
1593
|
onDrop: He(v, ["prevent", "stop"])
|
|
1584
1594
|
}, [
|
|
1585
|
-
|
|
1586
|
-
selection:
|
|
1587
|
-
"onUpdate:selection": R[0] || (R[0] = (P) =>
|
|
1595
|
+
_(i(Tn), {
|
|
1596
|
+
selection: g.value,
|
|
1597
|
+
"onUpdate:selection": R[0] || (R[0] = (P) => g.value = P),
|
|
1588
1598
|
items: r.value,
|
|
1589
1599
|
"state-key": "assets_manager",
|
|
1590
1600
|
"reorderable-rows": !f.value,
|
|
1591
1601
|
"selection-mode": f.value ? void 0 : "multiple",
|
|
1592
|
-
"row-actions": f.value ? void 0 :
|
|
1602
|
+
"row-actions": f.value ? void 0 : A,
|
|
1593
1603
|
"empty-state": {
|
|
1594
1604
|
icon: "lucide-cloud-upload",
|
|
1595
1605
|
title: p.$t("ASSETS_MANAGER.EMPTY.UPLOAD_ASSETS"),
|
|
@@ -1597,20 +1607,20 @@ const To = /* @__PURE__ */ H({
|
|
|
1597
1607
|
actionHandler: w
|
|
1598
1608
|
},
|
|
1599
1609
|
class: "tw-h-full tw-w-full",
|
|
1600
|
-
onRowClick: R[1] || (R[1] = ({ data: P }) =>
|
|
1610
|
+
onRowClick: R[1] || (R[1] = ({ data: P }) => m(P)),
|
|
1601
1611
|
onRowReorder: S
|
|
1602
1612
|
}, {
|
|
1603
|
-
default:
|
|
1604
|
-
|
|
1613
|
+
default: h(() => [
|
|
1614
|
+
_(i(Ae), {
|
|
1605
1615
|
id: "url",
|
|
1606
1616
|
title: i(s)("ASSETS_MANAGER.TABLE.HEADER.IMAGE"),
|
|
1607
1617
|
width: "10%",
|
|
1608
1618
|
"always-visible": "",
|
|
1609
1619
|
type: "image"
|
|
1610
1620
|
}, {
|
|
1611
|
-
body:
|
|
1621
|
+
body: h(({ data: P }) => [
|
|
1612
1622
|
U("div", Ao, [
|
|
1613
|
-
i(zt)(P.name ?? "") ? (b(), D(i(
|
|
1623
|
+
i(zt)(P.name ?? "") ? (b(), D(i(ot), {
|
|
1614
1624
|
key: 0,
|
|
1615
1625
|
bordered: !0,
|
|
1616
1626
|
size: "s",
|
|
@@ -1626,35 +1636,35 @@ const To = /* @__PURE__ */ H({
|
|
|
1626
1636
|
]),
|
|
1627
1637
|
_: 1
|
|
1628
1638
|
}, 8, ["title"]),
|
|
1629
|
-
|
|
1639
|
+
_(i(Ae), {
|
|
1630
1640
|
id: "name",
|
|
1631
1641
|
title: i(s)("ASSETS_MANAGER.TABLE.HEADER.NAME"),
|
|
1632
1642
|
width: "20%",
|
|
1633
1643
|
"always-visible": ""
|
|
1634
1644
|
}, null, 8, ["title"]),
|
|
1635
|
-
|
|
1645
|
+
_(i(Ae), {
|
|
1636
1646
|
id: "size",
|
|
1637
1647
|
title: i(s)("ASSETS_MANAGER.TABLE.HEADER.SIZE"),
|
|
1638
1648
|
width: "20%",
|
|
1639
1649
|
"always-visible": ""
|
|
1640
1650
|
}, {
|
|
1641
|
-
body:
|
|
1651
|
+
body: h(({ data: P }) => [
|
|
1642
1652
|
U("div", null, y(i(qt)(P.size ?? 0)), 1)
|
|
1643
1653
|
]),
|
|
1644
1654
|
_: 1
|
|
1645
1655
|
}, 8, ["title"]),
|
|
1646
|
-
|
|
1656
|
+
_(i(Ae), {
|
|
1647
1657
|
id: "sortOrder",
|
|
1648
1658
|
title: i(s)("ASSETS_MANAGER.TABLE.HEADER.SORT_ORDER"),
|
|
1649
1659
|
width: "25%",
|
|
1650
1660
|
"always-visible": ""
|
|
1651
1661
|
}, {
|
|
1652
|
-
body:
|
|
1662
|
+
body: h(({ data: P }) => [
|
|
1653
1663
|
U("div", null, y(P.sortOrder), 1)
|
|
1654
1664
|
]),
|
|
1655
1665
|
_: 1
|
|
1656
1666
|
}, 8, ["title"]),
|
|
1657
|
-
|
|
1667
|
+
_(i(Ae), {
|
|
1658
1668
|
id: "createdDate",
|
|
1659
1669
|
title: i(s)("ASSETS_MANAGER.TABLE.HEADER.CREATED_DATE"),
|
|
1660
1670
|
width: "25%",
|
|
@@ -1674,7 +1684,7 @@ const To = /* @__PURE__ */ H({
|
|
|
1674
1684
|
hidden: "",
|
|
1675
1685
|
multiple: "",
|
|
1676
1686
|
name: "assets_manager",
|
|
1677
|
-
onChange:
|
|
1687
|
+
onChange: L
|
|
1678
1688
|
}, null, 544)
|
|
1679
1689
|
]),
|
|
1680
1690
|
_: 1
|
|
@@ -1683,7 +1693,7 @@ const To = /* @__PURE__ */ H({
|
|
|
1683
1693
|
}), ho = To, Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1684
1694
|
__proto__: null,
|
|
1685
1695
|
AssetsManager: ho
|
|
1686
|
-
}, Symbol.toStringTag, { value: "Module" })), Oo =
|
|
1696
|
+
}, Symbol.toStringTag, { value: "Module" })), Oo = Et({ blades: Lo }), Ot = k("connection-status"), Rt = "vc-framework-offline-status", _t = N(!1), It = N(!0);
|
|
1687
1697
|
function ea() {
|
|
1688
1698
|
if (!_t.value && typeof window < "u") {
|
|
1689
1699
|
_t.value = !0;
|
|
@@ -1703,8 +1713,8 @@ function ea() {
|
|
|
1703
1713
|
isOnline: Me(It)
|
|
1704
1714
|
};
|
|
1705
1715
|
}
|
|
1706
|
-
const
|
|
1707
|
-
let
|
|
1716
|
+
const Ye = k("slow-network"), Ro = 1e4, _o = ["slow-2g", "2g"];
|
|
1717
|
+
let je = null;
|
|
1708
1718
|
const ta = "vc-framework-slow-network", Io = 3e3, vo = "Your network is slow or the server is taking longer than usual. Please be patient.";
|
|
1709
1719
|
let te = null;
|
|
1710
1720
|
function vt() {
|
|
@@ -1716,36 +1726,36 @@ function vt() {
|
|
|
1716
1726
|
function wt() {
|
|
1717
1727
|
q.remove(ta);
|
|
1718
1728
|
}
|
|
1719
|
-
const Ct = N(!1), ke = N(0),
|
|
1729
|
+
const Ct = N(!1), ke = N(0), tt = N(!1), Ve = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Set(), Ze = I(() => ke.value > 0 || tt.value);
|
|
1720
1730
|
function wo(e) {
|
|
1721
1731
|
const t = setTimeout(() => {
|
|
1722
|
-
ke.value++, Ve.delete(e),
|
|
1732
|
+
ke.value++, Ve.delete(e), at.add(e);
|
|
1723
1733
|
}, Ro);
|
|
1724
1734
|
Ve.set(e, t);
|
|
1725
1735
|
}
|
|
1726
1736
|
function Co(e) {
|
|
1727
1737
|
const t = Ve.get(e);
|
|
1728
|
-
t != null ? (clearTimeout(t), Ve.delete(e)) :
|
|
1738
|
+
t != null ? (clearTimeout(t), Ve.delete(e)) : at.has(e) && (ke.value = Math.max(0, ke.value - 1), at.delete(e));
|
|
1729
1739
|
}
|
|
1730
1740
|
function aa() {
|
|
1731
1741
|
if (!Ct.value && typeof window < "u") {
|
|
1732
1742
|
Ct.value = !0;
|
|
1733
1743
|
const e = navigator.connection;
|
|
1734
|
-
e && (
|
|
1744
|
+
e && (je = () => {
|
|
1735
1745
|
const a = _o.includes(e.effectiveType);
|
|
1736
|
-
a !==
|
|
1737
|
-
}, e.addEventListener("change",
|
|
1746
|
+
a !== tt.value && Ye.info(`Connection type: ${e.effectiveType} → ${a ? "slow" : "normal"}`), tt.value = a;
|
|
1747
|
+
}, e.addEventListener("change", je), je());
|
|
1738
1748
|
const { isOnline: t } = ea();
|
|
1739
|
-
ae(
|
|
1740
|
-
a ? (te != null && (clearTimeout(te), te = null), t.value && (
|
|
1741
|
-
|
|
1749
|
+
ae(Ze, (a) => {
|
|
1750
|
+
a ? (te != null && (clearTimeout(te), te = null), t.value && (Ye.info("Slow network detected — showing notification"), vt())) : te = setTimeout(() => {
|
|
1751
|
+
Ye.info("Network recovered — hiding notification"), wt(), te = null;
|
|
1742
1752
|
}, Io);
|
|
1743
1753
|
}), ae(t, (a) => {
|
|
1744
|
-
a ?
|
|
1754
|
+
a ? Ze.value && vt() : (te != null && (clearTimeout(te), te = null), wt());
|
|
1745
1755
|
});
|
|
1746
1756
|
}
|
|
1747
1757
|
return {
|
|
1748
|
-
isSlowNetwork:
|
|
1758
|
+
isSlowNetwork: Ze,
|
|
1749
1759
|
trackRequest: wo,
|
|
1750
1760
|
untrackRequest: Co
|
|
1751
1761
|
};
|
|
@@ -1789,47 +1799,60 @@ function No(e) {
|
|
|
1789
1799
|
});
|
|
1790
1800
|
});
|
|
1791
1801
|
{
|
|
1792
|
-
let E = function(
|
|
1793
|
-
const
|
|
1802
|
+
let E = function(m) {
|
|
1803
|
+
const A = typeof m == "string" ? m : m instanceof Request ? m.url : m.toString();
|
|
1794
1804
|
try {
|
|
1795
|
-
const
|
|
1796
|
-
return
|
|
1805
|
+
const p = new URL(A, window.location.origin);
|
|
1806
|
+
return p.origin === window.location.origin && p.pathname.startsWith("/api/");
|
|
1797
1807
|
} catch {
|
|
1798
1808
|
return !1;
|
|
1799
1809
|
}
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
const T = setTimeout(() => {
|
|
1811
|
-
L = !0, S.abort();
|
|
1812
|
-
}, 3e4), v = f?.signal, w = () => S.abort();
|
|
1813
|
-
v?.aborted ? w() : v && v.addEventListener("abort", w, { once: !0 });
|
|
1814
|
-
try {
|
|
1815
|
-
const O = await a(m, {
|
|
1816
|
-
...f || {},
|
|
1817
|
-
signal: S.signal
|
|
1818
|
-
}), h = O.ok && bo(O);
|
|
1819
|
-
if ((O.status === 401 || h) && !Qe() && s.value && (Nn(), n().catch((_) => {
|
|
1820
|
-
Te.error("signOut failed after session expiry:", _);
|
|
1810
|
+
}, g = function(m) {
|
|
1811
|
+
const A = typeof m == "string" ? m : m instanceof Request ? m.url : m.toString();
|
|
1812
|
+
try {
|
|
1813
|
+
return new URL(A, window.location.origin).origin === window.location.origin;
|
|
1814
|
+
} catch {
|
|
1815
|
+
return !1;
|
|
1816
|
+
}
|
|
1817
|
+
}, f = function(m) {
|
|
1818
|
+
!m || et() || !s.value || (Dn(), n().catch((A) => {
|
|
1819
|
+
Te.error("signOut failed after session expiry:", A);
|
|
1821
1820
|
}).finally(() => {
|
|
1822
1821
|
Do(e), q.error(
|
|
1823
1822
|
`Access Denied: Your session has expired or you do not have the necessary permissions.
|
|
1824
1823
|
Please log in again or contact the administrator for assistance.`
|
|
1825
1824
|
);
|
|
1826
|
-
}))
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1825
|
+
}));
|
|
1826
|
+
};
|
|
1827
|
+
const [d, S] = u;
|
|
1828
|
+
if (!E(d)) {
|
|
1829
|
+
if (!g(d))
|
|
1830
|
+
return a(...u);
|
|
1831
|
+
const m = await a(...u);
|
|
1832
|
+
return f(m.status === 401), m;
|
|
1833
|
+
}
|
|
1834
|
+
if (!navigator.onLine)
|
|
1835
|
+
return Te.warn("Request blocked: browser is offline", d), Promise.reject(new Error("Network unavailable. Please check your connection."));
|
|
1836
|
+
const O = String(++l);
|
|
1837
|
+
o(O);
|
|
1838
|
+
const T = new AbortController();
|
|
1839
|
+
let v = !1;
|
|
1840
|
+
const w = setTimeout(() => {
|
|
1841
|
+
v = !0, T.abort();
|
|
1842
|
+
}, 3e4), C = S?.signal, L = () => T.abort();
|
|
1843
|
+
C?.aborted ? L() : C && C.addEventListener("abort", L, { once: !0 });
|
|
1844
|
+
try {
|
|
1845
|
+
const m = await a(d, {
|
|
1846
|
+
...S || {},
|
|
1847
|
+
signal: T.signal
|
|
1848
|
+
}), A = m.ok && bo(m);
|
|
1849
|
+
if (f(m.status === 401 || A), A && et())
|
|
1850
|
+
throw new Nn();
|
|
1851
|
+
return m;
|
|
1852
|
+
} catch (m) {
|
|
1853
|
+
throw v ? new Error("Request timed out. Please try again.") : m;
|
|
1831
1854
|
} finally {
|
|
1832
|
-
r(
|
|
1855
|
+
r(O), clearTimeout(w), C && C.removeEventListener("abort", L);
|
|
1833
1856
|
}
|
|
1834
1857
|
}
|
|
1835
1858
|
});
|
|
@@ -1906,12 +1929,12 @@ const na = { THEMES: { LIGHT: "Light", DARK: "Dark" }, NOTIFICATIONS: { CLEAR_AL
|
|
|
1906
1929
|
__proto__: null,
|
|
1907
1930
|
de: ko,
|
|
1908
1931
|
en: Bo
|
|
1909
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1932
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = k("global-error-handler");
|
|
1910
1933
|
function Ne(e) {
|
|
1911
1934
|
return e instanceof Error ? `${e.name}:${e.message}` : String(e);
|
|
1912
1935
|
}
|
|
1913
1936
|
const he = /* @__PURE__ */ new Map(), Pt = 3e3;
|
|
1914
|
-
function
|
|
1937
|
+
function Je(e) {
|
|
1915
1938
|
const t = Ne(e), a = Date.now(), n = he.get(t);
|
|
1916
1939
|
if (n && a - n < Pt) return !0;
|
|
1917
1940
|
if (he.set(t, a), he.size > 50)
|
|
@@ -1922,8 +1945,8 @@ function Xe(e) {
|
|
|
1922
1945
|
function Uo(e) {
|
|
1923
1946
|
const t = e.config.errorHandler;
|
|
1924
1947
|
if (e.config.errorHandler = (o, r, l) => {
|
|
1925
|
-
if (
|
|
1926
|
-
Info:`, l), !
|
|
1948
|
+
if (Xe.error("Unhandled Vue error:", o, `
|
|
1949
|
+
Info:`, l), !Je(o)) {
|
|
1927
1950
|
const c = Pe(o);
|
|
1928
1951
|
q.error(c.message, {
|
|
1929
1952
|
timeout: 8e3,
|
|
@@ -1936,7 +1959,7 @@ Info:`, l), !Xe(o)) {
|
|
|
1936
1959
|
if (a.__VC_GLOBAL_ERROR_HANDLERS_INSTALLED__) return;
|
|
1937
1960
|
a.__VC_GLOBAL_ERROR_HANDLERS_INSTALLED__ = !0;
|
|
1938
1961
|
const n = (o) => {
|
|
1939
|
-
if (
|
|
1962
|
+
if (Xe.error("Unhandled rejection:", o.reason), !Je(o.reason)) {
|
|
1940
1963
|
const r = Pe(o.reason);
|
|
1941
1964
|
q.error(r.message, {
|
|
1942
1965
|
timeout: 8e3,
|
|
@@ -1946,7 +1969,7 @@ Info:`, l), !Xe(o)) {
|
|
|
1946
1969
|
};
|
|
1947
1970
|
window.addEventListener("unhandledrejection", n);
|
|
1948
1971
|
const s = (o) => {
|
|
1949
|
-
if (o.error && (
|
|
1972
|
+
if (o.error && (Xe.error("Uncaught error:", o.error), !Je(o.error))) {
|
|
1950
1973
|
const r = Pe(o.error);
|
|
1951
1974
|
q.error(r.message, {
|
|
1952
1975
|
timeout: 8e3,
|
|
@@ -2017,20 +2040,20 @@ function $o() {
|
|
|
2017
2040
|
return t().find((E) => E.notificationId === u);
|
|
2018
2041
|
}
|
|
2019
2042
|
function s(u) {
|
|
2020
|
-
const E = document.querySelector(".notification"),
|
|
2043
|
+
const E = document.querySelector(".notification"), g = E || document.createElement("div"), f = `.notification__container[data-position="${u}"]`;
|
|
2021
2044
|
let d = document.querySelector(f);
|
|
2022
|
-
return d || (d = document.createElement("div"), d.className = "notification__container", d.id = `notification-${u}`, d.setAttribute("data-position", u), E || (
|
|
2045
|
+
return d || (d = document.createElement("div"), d.className = "notification__container", d.id = `notification-${u}`, d.setAttribute("data-position", u), E || (g.className = "notification", document.body.appendChild(g)), g.appendChild(d)), d;
|
|
2023
2046
|
}
|
|
2024
2047
|
const o = /* @__PURE__ */ new Map();
|
|
2025
2048
|
async function r(u) {
|
|
2026
|
-
const E = u.position || e.position,
|
|
2027
|
-
if (
|
|
2049
|
+
const E = u.position || e.position, g = o.get(E);
|
|
2050
|
+
if (g && await g, !bt(E)) {
|
|
2028
2051
|
const f = (async () => {
|
|
2029
|
-
const d = s(E), { default: S } = await Promise.resolve().then(() => Lr),
|
|
2052
|
+
const d = s(E), { default: S } = await Promise.resolve().then(() => Lr), O = an(S, {
|
|
2030
2053
|
...u,
|
|
2031
2054
|
position: E
|
|
2032
2055
|
});
|
|
2033
|
-
|
|
2056
|
+
O.use(X), O.provide(Zt, { notificationContainers: G, actions: c }), O.mount(d), xo(O, d.id, E);
|
|
2034
2057
|
})();
|
|
2035
2058
|
o.set(E, f), await f, o.delete(E);
|
|
2036
2059
|
}
|
|
@@ -2043,18 +2066,18 @@ function $o() {
|
|
|
2043
2066
|
}
|
|
2044
2067
|
const c = {
|
|
2045
2068
|
add(u) {
|
|
2046
|
-
const E = u.position || e.position,
|
|
2047
|
-
|
|
2048
|
-
|
|
2069
|
+
const E = u.position || e.position, g = G[E];
|
|
2070
|
+
g.value.find((d) => d.notificationId === u.notificationId) || be(() => {
|
|
2071
|
+
g.value.push(u), u.onOpen && typeof u?.onOpen == "function" && u.onOpen(u.payload);
|
|
2049
2072
|
});
|
|
2050
2073
|
},
|
|
2051
2074
|
remove(u) {
|
|
2052
2075
|
if (u) {
|
|
2053
|
-
let E,
|
|
2076
|
+
let E, g;
|
|
2054
2077
|
Object.entries(G).forEach(([f, d]) => {
|
|
2055
|
-
const S = d.value.find((
|
|
2056
|
-
S && (E = S,
|
|
2057
|
-
}),
|
|
2078
|
+
const S = d.value.find((O) => O.notificationId === u);
|
|
2079
|
+
S && (E = S, g = f);
|
|
2080
|
+
}), g && (G[g].value = G[g].value.filter((f) => f.notificationId !== u), G[g].value.length === 0 && Go(g), be(() => {
|
|
2058
2081
|
E?.onClose && typeof E?.onClose == "function" && E.onClose(E.payload);
|
|
2059
2082
|
}));
|
|
2060
2083
|
}
|
|
@@ -2067,22 +2090,22 @@ function $o() {
|
|
|
2067
2090
|
dismiss(u) {
|
|
2068
2091
|
if (!u) return;
|
|
2069
2092
|
let E = !1;
|
|
2070
|
-
Object.values(G).forEach((
|
|
2071
|
-
|
|
2093
|
+
Object.values(G).forEach((g) => {
|
|
2094
|
+
g.value.forEach((f) => {
|
|
2072
2095
|
f.notificationId === u && (f.dismissing = !0, E = !0);
|
|
2073
2096
|
});
|
|
2074
2097
|
}), E || de.debug(`dismiss: notification ${u} not found`);
|
|
2075
2098
|
},
|
|
2076
2099
|
update(u) {
|
|
2077
2100
|
if (u.updateId) {
|
|
2078
|
-
let E,
|
|
2101
|
+
let E, g, f;
|
|
2079
2102
|
if (Object.entries(G).forEach(([d, S]) => {
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2082
|
-
}), E &&
|
|
2103
|
+
const O = S.value.find((T) => T.notificationId === u.notificationId);
|
|
2104
|
+
O && (E = O, g = S, f = d);
|
|
2105
|
+
}), E && g) {
|
|
2083
2106
|
if (de.debug(`Updating notification ${u.notificationId} in position ${f}`), u.position && u.position !== f) {
|
|
2084
|
-
|
|
2085
|
-
(
|
|
2107
|
+
g.value = g.value.filter(
|
|
2108
|
+
(O) => O.notificationId !== u.notificationId
|
|
2086
2109
|
);
|
|
2087
2110
|
const d = {
|
|
2088
2111
|
...E,
|
|
@@ -2092,8 +2115,8 @@ function $o() {
|
|
|
2092
2115
|
} else
|
|
2093
2116
|
de.debug("Standard update of notification properties"), Object.keys(u).forEach((d) => {
|
|
2094
2117
|
if (d !== "updateId" && d !== "notificationId") {
|
|
2095
|
-
const S = d,
|
|
2096
|
-
E &&
|
|
2118
|
+
const S = d, O = u[S];
|
|
2119
|
+
E && O !== void 0 && (E[S] = O);
|
|
2097
2120
|
}
|
|
2098
2121
|
});
|
|
2099
2122
|
return !0;
|
|
@@ -2129,12 +2152,12 @@ function Ko() {
|
|
|
2129
2152
|
hasNotification: (t) => e.hasNotification(t)
|
|
2130
2153
|
});
|
|
2131
2154
|
}
|
|
2132
|
-
const zo = "2.5.0-
|
|
2155
|
+
const zo = "2.5.0-pr333.50c07fa";
|
|
2133
2156
|
function qo() {
|
|
2134
2157
|
return {
|
|
2135
2158
|
version: zo,
|
|
2136
|
-
buildDate: "2026-08-
|
|
2137
|
-
gitHash: "
|
|
2159
|
+
buildDate: "2026-08-31T12:35:52.720Z",
|
|
2160
|
+
gitHash: "50c07fa41"
|
|
2138
2161
|
};
|
|
2139
2162
|
}
|
|
2140
2163
|
function Yo(e = qo()) {
|
|
@@ -2155,7 +2178,7 @@ const jo = /* @__PURE__ */ H({
|
|
|
2155
2178
|
},
|
|
2156
2179
|
emits: ["close"],
|
|
2157
2180
|
setup(e, { emit: t }) {
|
|
2158
|
-
const a = e, n = t, { isMobile: s, isDesktop: o } = Fa(), r =
|
|
2181
|
+
const a = e, n = t, { isMobile: s, isDesktop: o } = Fa(), r = I(() => a.render === "always" ? !0 : a.render === "mobile" ? s.value : o.value), l = I(() => a.isExpanded && r.value);
|
|
2159
2182
|
function c(u) {
|
|
2160
2183
|
u || n("close");
|
|
2161
2184
|
}
|
|
@@ -2168,15 +2191,15 @@ const jo = /* @__PURE__ */ H({
|
|
|
2168
2191
|
teleport: !i(o),
|
|
2169
2192
|
"onUpdate:modelValue": c
|
|
2170
2193
|
}, Oe({
|
|
2171
|
-
default:
|
|
2194
|
+
default: h(() => [
|
|
2172
2195
|
Y(u.$slots, "content")
|
|
2173
2196
|
]),
|
|
2174
2197
|
_: 2
|
|
2175
2198
|
}, [
|
|
2176
2199
|
u.$slots.header ? {
|
|
2177
2200
|
name: "header",
|
|
2178
|
-
fn:
|
|
2179
|
-
Y(u.$slots, "header", { close:
|
|
2201
|
+
fn: h(({ close: g }) => [
|
|
2202
|
+
Y(u.$slots, "header", { close: g })
|
|
2180
2203
|
]),
|
|
2181
2204
|
key: "0"
|
|
2182
2205
|
} : void 0
|
|
@@ -2191,15 +2214,15 @@ const jo = /* @__PURE__ */ H({
|
|
|
2191
2214
|
},
|
|
2192
2215
|
emits: ["signIn"],
|
|
2193
2216
|
setup(e) {
|
|
2194
|
-
const t = e, a =
|
|
2217
|
+
const t = e, a = I(() => t.logo && !t.logo.startsWith("data:image") && !t.logo.startsWith("http") ? new URL(t.logo, window.location.origin).toString() : t.logo);
|
|
2195
2218
|
return (n, s) => (b(), D(i(x), {
|
|
2196
2219
|
variant: "secondary",
|
|
2197
2220
|
class: "vc-external-provider",
|
|
2198
2221
|
onClick: s[0] || (s[0] = (o) => n.$emit("signIn"))
|
|
2199
2222
|
}, {
|
|
2200
|
-
default:
|
|
2223
|
+
default: h(() => [
|
|
2201
2224
|
U("div", Zo, [
|
|
2202
|
-
|
|
2225
|
+
_(i(ot), {
|
|
2203
2226
|
src: a.value,
|
|
2204
2227
|
class: "vc-external-provider__icon",
|
|
2205
2228
|
size: "xxs"
|
|
@@ -2256,109 +2279,109 @@ const nr = {
|
|
|
2256
2279
|
ssoOnly: { type: Boolean }
|
|
2257
2280
|
},
|
|
2258
2281
|
setup(e) {
|
|
2259
|
-
const t = k("login-page"), a = e, { t: n } = le({ useScope: "global" }), s = ve(), { validateField: o } = ue({ validateOnMount: !1 }), { uiSettings: r, loading: l } = we(), c = N({ succeeded: !0 }), { signIn: u, loading: E, user:
|
|
2282
|
+
const t = k("login-page"), a = e, { t: n } = le({ useScope: "global" }), s = ve(), { validateField: o } = ue({ validateOnMount: !1 }), { uiSettings: r, loading: l } = we(), c = N({ succeeded: !0 }), { signIn: u, loading: E, user: g } = se(), { getProviders: f } = Kt(), d = Ie(), S = N(), O = N(!1);
|
|
2260
2283
|
Re(async () => {
|
|
2261
|
-
S.value = await f(),
|
|
2284
|
+
S.value = await f(), O.value = !0;
|
|
2262
2285
|
});
|
|
2263
|
-
const T =
|
|
2286
|
+
const T = I(() => ({
|
|
2264
2287
|
logo: l.value ? "" : r.value?.logo || a.logo
|
|
2265
2288
|
})), v = ie({
|
|
2266
2289
|
username: "",
|
|
2267
2290
|
password: ""
|
|
2268
2291
|
}), w = async () => {
|
|
2269
2292
|
if (d.value) {
|
|
2270
|
-
if (c.value.error = "", c.value = await u(v.username, v.password), c.value.succeeded &&
|
|
2293
|
+
if (c.value.error = "", c.value = await u(v.username, v.password), c.value.succeeded && g.value?.passwordExpired) {
|
|
2271
2294
|
await s.push({ name: "ChangePassword" });
|
|
2272
2295
|
return;
|
|
2273
2296
|
}
|
|
2274
2297
|
if (c.value.succeeded) {
|
|
2275
|
-
const
|
|
2276
|
-
localStorage.removeItem("redirectAfterLogin"), await s.push(
|
|
2298
|
+
const L = er(localStorage.getItem("redirectAfterLogin"));
|
|
2299
|
+
localStorage.removeItem("redirectAfterLogin"), await s.push(L);
|
|
2277
2300
|
return;
|
|
2278
2301
|
}
|
|
2279
2302
|
c.value.error = tr(c.value, n), v.password = "", o("password");
|
|
2280
2303
|
}
|
|
2281
|
-
},
|
|
2304
|
+
}, C = () => {
|
|
2282
2305
|
s.push({ name: "ForgotPassword" });
|
|
2283
2306
|
};
|
|
2284
|
-
return t.debug("Init login-page"), (
|
|
2307
|
+
return t.debug("Init login-page"), (L, m) => (b(), D(i(_e), {
|
|
2285
2308
|
logo: T.value.logo,
|
|
2286
2309
|
background: e.background,
|
|
2287
|
-
title: e.title ||
|
|
2288
|
-
subtitle: e.subtitle ||
|
|
2310
|
+
title: e.title || L.$t("LOGIN.TITLE"),
|
|
2311
|
+
subtitle: e.subtitle || L.$t("LOGIN.SUBTITLE"),
|
|
2289
2312
|
class: "vc-login-page"
|
|
2290
2313
|
}, {
|
|
2291
|
-
default:
|
|
2314
|
+
default: h(() => [
|
|
2292
2315
|
S.value && S.value.length ? (b(), W("div", nr, [
|
|
2293
|
-
|
|
2294
|
-
e.ssoOnly ? z("", !0) : (b(), W("div", sr, y(
|
|
2316
|
+
_(Qo, { providers: S.value }, null, 8, ["providers"]),
|
|
2317
|
+
e.ssoOnly ? z("", !0) : (b(), W("div", sr, y(L.$t("LOGIN.OR")), 1))
|
|
2295
2318
|
])) : z("", !0),
|
|
2296
|
-
e.ssoOnly &&
|
|
2319
|
+
e.ssoOnly && O.value && !S.value?.length ? (b(), D(i(Ee), {
|
|
2297
2320
|
key: 1,
|
|
2298
2321
|
class: "tw-mt-4 tw-text-danger-500"
|
|
2299
2322
|
}, {
|
|
2300
|
-
default:
|
|
2301
|
-
M(y(
|
|
2323
|
+
default: h(() => [
|
|
2324
|
+
M(y(L.$t("LOGIN.SSO_NO_PROVIDERS_ERROR")), 1)
|
|
2302
2325
|
]),
|
|
2303
2326
|
_: 1
|
|
2304
2327
|
})) : z("", !0),
|
|
2305
2328
|
e.ssoOnly ? z("", !0) : (b(), W(ne, { key: 2 }, [
|
|
2306
|
-
|
|
2329
|
+
_(i(ge), {
|
|
2307
2330
|
class: "tw-gap-5",
|
|
2308
2331
|
onSubmit: w
|
|
2309
2332
|
}, {
|
|
2310
|
-
default:
|
|
2311
|
-
|
|
2312
|
-
label:
|
|
2333
|
+
default: h(() => [
|
|
2334
|
+
_(i(Z), {
|
|
2335
|
+
label: L.$t("LOGIN.FIELDS.LOGIN.LABEL"),
|
|
2313
2336
|
name: "username",
|
|
2314
2337
|
"model-value": v.username,
|
|
2315
2338
|
rules: "required"
|
|
2316
2339
|
}, {
|
|
2317
|
-
default:
|
|
2318
|
-
|
|
2340
|
+
default: h(({ errorMessage: A, handleChange: p, errors: R }) => [
|
|
2341
|
+
_(i($), {
|
|
2319
2342
|
ref: "loginField",
|
|
2320
2343
|
modelValue: v.username,
|
|
2321
2344
|
"onUpdate:modelValue": [
|
|
2322
|
-
|
|
2345
|
+
m[0] || (m[0] = (P) => v.username = P),
|
|
2323
2346
|
p
|
|
2324
2347
|
],
|
|
2325
|
-
label:
|
|
2326
|
-
placeholder:
|
|
2348
|
+
label: L.$t("LOGIN.FIELDS.LOGIN.LABEL"),
|
|
2349
|
+
placeholder: L.$t("LOGIN.FIELDS.LOGIN.PLACEHOLDER"),
|
|
2327
2350
|
autocomplete: "username",
|
|
2328
2351
|
required: "",
|
|
2329
2352
|
error: !!R.length,
|
|
2330
|
-
"error-message":
|
|
2353
|
+
"error-message": A
|
|
2331
2354
|
}, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
|
|
2332
2355
|
]),
|
|
2333
2356
|
_: 1
|
|
2334
2357
|
}, 8, ["label", "model-value"]),
|
|
2335
|
-
|
|
2336
|
-
label:
|
|
2358
|
+
_(i(Z), {
|
|
2359
|
+
label: L.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
|
|
2337
2360
|
name: "password",
|
|
2338
2361
|
"model-value": v.password,
|
|
2339
2362
|
rules: "required"
|
|
2340
2363
|
}, {
|
|
2341
|
-
default:
|
|
2342
|
-
|
|
2364
|
+
default: h(({ errorMessage: A, handleChange: p, errors: R }) => [
|
|
2365
|
+
_(i($), {
|
|
2343
2366
|
ref: "passwordField",
|
|
2344
2367
|
modelValue: v.password,
|
|
2345
2368
|
"onUpdate:modelValue": [
|
|
2346
|
-
|
|
2369
|
+
m[1] || (m[1] = (P) => v.password = P),
|
|
2347
2370
|
p
|
|
2348
2371
|
],
|
|
2349
|
-
label:
|
|
2350
|
-
placeholder:
|
|
2372
|
+
label: L.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
|
|
2373
|
+
placeholder: L.$t("LOGIN.FIELDS.PASSWORD.PLACEHOLDER"),
|
|
2351
2374
|
type: "password",
|
|
2352
2375
|
autocomplete: "current-password",
|
|
2353
2376
|
required: "",
|
|
2354
2377
|
error: !!R.length,
|
|
2355
|
-
"error-message":
|
|
2356
|
-
onKeyup:
|
|
2378
|
+
"error-message": A,
|
|
2379
|
+
onKeyup: lt(w, ["enter"])
|
|
2357
2380
|
}, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
|
|
2358
2381
|
]),
|
|
2359
2382
|
_: 1
|
|
2360
2383
|
}, 8, ["label", "model-value"]),
|
|
2361
|
-
|
|
2384
|
+
_(i(x), {
|
|
2362
2385
|
variant: "primary",
|
|
2363
2386
|
class: "tw-w-full",
|
|
2364
2387
|
icon: "lucide-log-in",
|
|
@@ -2366,26 +2389,26 @@ const nr = {
|
|
|
2366
2389
|
loading: i(E),
|
|
2367
2390
|
onClick: w
|
|
2368
2391
|
}, {
|
|
2369
|
-
default:
|
|
2370
|
-
M(y(
|
|
2392
|
+
default: h(() => [
|
|
2393
|
+
M(y(L.$t("LOGIN.BUTTON")), 1)
|
|
2371
2394
|
]),
|
|
2372
2395
|
_: 1
|
|
2373
2396
|
}, 8, ["disabled", "loading"]),
|
|
2374
|
-
|
|
2397
|
+
_(i(x), {
|
|
2375
2398
|
variant: "link",
|
|
2376
2399
|
class: "tw-w-full tw-justify-center",
|
|
2377
2400
|
type: "button",
|
|
2378
|
-
onClick:
|
|
2401
|
+
onClick: C
|
|
2379
2402
|
}, {
|
|
2380
|
-
default:
|
|
2381
|
-
M(y(
|
|
2403
|
+
default: h(() => [
|
|
2404
|
+
M(y(L.$t("LOGIN.FORGOT_PASSWORD_BUTTON")), 1)
|
|
2382
2405
|
]),
|
|
2383
2406
|
_: 1
|
|
2384
2407
|
})
|
|
2385
2408
|
]),
|
|
2386
2409
|
_: 1
|
|
2387
2410
|
}),
|
|
2388
|
-
|
|
2411
|
+
_(i(Ss), {
|
|
2389
2412
|
name: "auth:after-form",
|
|
2390
2413
|
separator: "",
|
|
2391
2414
|
"separator-class": "tw-border-t tw-border-[color:var(--login-separator)] tw-border-solid tw-pb-5",
|
|
@@ -2395,7 +2418,7 @@ const nr = {
|
|
|
2395
2418
|
key: 0,
|
|
2396
2419
|
class: "tw-mt-4 tw-text-danger-500"
|
|
2397
2420
|
}, {
|
|
2398
|
-
default:
|
|
2421
|
+
default: h(() => [
|
|
2399
2422
|
M(y(c.value.error), 1)
|
|
2400
2423
|
]),
|
|
2401
2424
|
_: 1
|
|
@@ -2418,30 +2441,30 @@ const nr = {
|
|
|
2418
2441
|
const s = Ie(), { uiSettings: o, loading: r } = we(), l = N(!1), c = N(""), u = N(!1), E = ie({
|
|
2419
2442
|
loginOrEmail: ""
|
|
2420
2443
|
});
|
|
2421
|
-
let
|
|
2444
|
+
let g;
|
|
2422
2445
|
if (t.composable && typeof t.composable == "function")
|
|
2423
|
-
|
|
2446
|
+
g = t.composable().forgotPassword;
|
|
2424
2447
|
else {
|
|
2425
2448
|
const { requestPasswordReset: T } = se();
|
|
2426
|
-
|
|
2449
|
+
g = async (v) => {
|
|
2427
2450
|
await T(v.loginOrEmail);
|
|
2428
2451
|
};
|
|
2429
2452
|
}
|
|
2430
|
-
const f =
|
|
2453
|
+
const f = I(() => ({
|
|
2431
2454
|
logo: r.value ? "" : o.value?.logo || t.logo
|
|
2432
|
-
})), d =
|
|
2455
|
+
})), d = I(() => {
|
|
2433
2456
|
const T = E.loginOrEmail, [v, w] = T.split("@");
|
|
2434
2457
|
return !v || !w ? T : `${v.length > 2 ? v[0] + "***" + v[v.length - 1] : v[0] + "***"}@${w}`;
|
|
2435
2458
|
}), S = async () => {
|
|
2436
|
-
if (!(!s.value || !
|
|
2459
|
+
if (!(!s.value || !g))
|
|
2437
2460
|
try {
|
|
2438
|
-
l.value = !0, c.value = "", await
|
|
2461
|
+
l.value = !0, c.value = "", await g({ loginOrEmail: E.loginOrEmail }), u.value = !0;
|
|
2439
2462
|
} catch (T) {
|
|
2440
2463
|
c.value = T instanceof Error ? T.message : String(T);
|
|
2441
2464
|
} finally {
|
|
2442
2465
|
l.value = !1;
|
|
2443
2466
|
}
|
|
2444
|
-
},
|
|
2467
|
+
}, O = () => {
|
|
2445
2468
|
a.push({ name: "Login" });
|
|
2446
2469
|
};
|
|
2447
2470
|
return (T, v) => (b(), D(i(_e), {
|
|
@@ -2450,69 +2473,69 @@ const nr = {
|
|
|
2450
2473
|
title: u.value ? i(n)("FORGOT_PASSWORD.SUCCESS_TITLE") : i(n)("FORGOT_PASSWORD.TITLE"),
|
|
2451
2474
|
subtitle: u.value ? void 0 : i(n)("FORGOT_PASSWORD.SUBTITLE")
|
|
2452
2475
|
}, {
|
|
2453
|
-
default:
|
|
2476
|
+
default: h(() => [
|
|
2454
2477
|
u.value ? (b(), W(ne, { key: 1 }, [
|
|
2455
2478
|
U("div", ir, [
|
|
2456
2479
|
U("p", lr, y(i(n)("FORGOT_PASSWORD.SUCCESS_TEXT", { email: d.value })), 1)
|
|
2457
2480
|
]),
|
|
2458
|
-
|
|
2481
|
+
_(i(x), {
|
|
2459
2482
|
variant: "primary",
|
|
2460
2483
|
class: "tw-w-full",
|
|
2461
|
-
onClick:
|
|
2484
|
+
onClick: O
|
|
2462
2485
|
}, {
|
|
2463
|
-
default:
|
|
2486
|
+
default: h(() => [
|
|
2464
2487
|
M(y(i(n)("FORGOT_PASSWORD.BACK_TO_LOGIN")), 1)
|
|
2465
2488
|
]),
|
|
2466
2489
|
_: 1
|
|
2467
2490
|
})
|
|
2468
2491
|
], 64)) : (b(), W(ne, { key: 0 }, [
|
|
2469
|
-
|
|
2470
|
-
default:
|
|
2471
|
-
|
|
2492
|
+
_(i(ge), { onSubmit: S }, {
|
|
2493
|
+
default: h(() => [
|
|
2494
|
+
_(i(Z), {
|
|
2472
2495
|
label: i(n)("FORGOT_PASSWORD.FIELDS.EMAIL.LABEL"),
|
|
2473
2496
|
name: "loginOrEmail",
|
|
2474
2497
|
"model-value": E.loginOrEmail,
|
|
2475
2498
|
rules: "required|email"
|
|
2476
2499
|
}, {
|
|
2477
|
-
default:
|
|
2478
|
-
|
|
2500
|
+
default: h(({ errorMessage: w, handleChange: C, errors: L }) => [
|
|
2501
|
+
_(i($), {
|
|
2479
2502
|
ref: "emailField",
|
|
2480
2503
|
modelValue: E.loginOrEmail,
|
|
2481
2504
|
"onUpdate:modelValue": [
|
|
2482
|
-
v[0] || (v[0] = (
|
|
2483
|
-
|
|
2505
|
+
v[0] || (v[0] = (m) => E.loginOrEmail = m),
|
|
2506
|
+
C
|
|
2484
2507
|
],
|
|
2485
2508
|
class: "tw-mb-6",
|
|
2486
2509
|
label: i(n)("FORGOT_PASSWORD.FIELDS.EMAIL.LABEL"),
|
|
2487
2510
|
placeholder: i(n)("FORGOT_PASSWORD.FIELDS.EMAIL.PLACEHOLDER"),
|
|
2488
2511
|
required: "",
|
|
2489
|
-
error: !!
|
|
2512
|
+
error: !!L.length,
|
|
2490
2513
|
"error-message": w
|
|
2491
2514
|
}, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
|
|
2492
2515
|
]),
|
|
2493
2516
|
_: 1
|
|
2494
2517
|
}, 8, ["label", "model-value"]),
|
|
2495
|
-
|
|
2518
|
+
_(i(x), {
|
|
2496
2519
|
variant: "primary",
|
|
2497
2520
|
class: "tw-w-full tw-mb-4",
|
|
2498
2521
|
disabled: !i(s) || l.value,
|
|
2499
2522
|
loading: l.value,
|
|
2500
2523
|
onClick: S
|
|
2501
2524
|
}, {
|
|
2502
|
-
default:
|
|
2525
|
+
default: h(() => [
|
|
2503
2526
|
M(y(i(n)("FORGOT_PASSWORD.SEND_BUTTON")), 1)
|
|
2504
2527
|
]),
|
|
2505
2528
|
_: 1
|
|
2506
2529
|
}, 8, ["disabled", "loading"]),
|
|
2507
2530
|
U("div", rr, [
|
|
2508
|
-
|
|
2531
|
+
_(i(x), {
|
|
2509
2532
|
variant: "link",
|
|
2510
2533
|
icon: "lucide-arrow-left",
|
|
2511
2534
|
"icon-size": "xs",
|
|
2512
2535
|
type: "button",
|
|
2513
|
-
onClick:
|
|
2536
|
+
onClick: O
|
|
2514
2537
|
}, {
|
|
2515
|
-
default:
|
|
2538
|
+
default: h(() => [
|
|
2516
2539
|
M(y(i(n)("FORGOT_PASSWORD.BACK_TO_LOGIN")), 1)
|
|
2517
2540
|
]),
|
|
2518
2541
|
_: 1
|
|
@@ -2525,7 +2548,7 @@ const nr = {
|
|
|
2525
2548
|
key: 0,
|
|
2526
2549
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2527
2550
|
}, {
|
|
2528
|
-
default:
|
|
2551
|
+
default: h(() => [
|
|
2529
2552
|
M(y(c.value), 1)
|
|
2530
2553
|
]),
|
|
2531
2554
|
_: 1
|
|
@@ -2545,7 +2568,7 @@ const nr = {
|
|
|
2545
2568
|
background: { default: "/assets/background.jpg" }
|
|
2546
2569
|
},
|
|
2547
2570
|
setup(e) {
|
|
2548
|
-
const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), { validate: u } = ue({ validateOnMount: !1 }), { uiSettings: E, loading:
|
|
2571
|
+
const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), { validate: u } = ue({ validateOnMount: !1 }), { uiSettings: E, loading: g } = we(), f = ie({
|
|
2549
2572
|
isValid: !1,
|
|
2550
2573
|
tokenIsValid: !1,
|
|
2551
2574
|
errors: [],
|
|
@@ -2555,23 +2578,23 @@ const nr = {
|
|
|
2555
2578
|
Re(async () => {
|
|
2556
2579
|
f.tokenIsValid = await a(t.userId, t.token), f.tokenIsValid || f.errors.push("Invalid-token");
|
|
2557
2580
|
});
|
|
2558
|
-
const d =
|
|
2581
|
+
const d = I(() => r.value || !f.password || !f.confirmPassword || !f.isValid && f.tokenIsValid), S = async () => {
|
|
2559
2582
|
if (f.tokenIsValid) {
|
|
2560
2583
|
const v = (await n(f.password)).errors;
|
|
2561
2584
|
f.errors = v?.map((w) => w.code), f.confirmPassword !== f.password && f.errors.push("Repeat-password"), f.isValid = f.errors.length == 0;
|
|
2562
2585
|
}
|
|
2563
|
-
},
|
|
2586
|
+
}, O = async () => {
|
|
2564
2587
|
const { valid: v } = await u();
|
|
2565
2588
|
if (v) {
|
|
2566
2589
|
const w = await s(t.userId, f.password, t.token);
|
|
2567
2590
|
if (w.succeeded) {
|
|
2568
|
-
const
|
|
2569
|
-
|
|
2591
|
+
const C = await o(t.userName, f.password);
|
|
2592
|
+
C.succeeded ? l.push("/") : f.errors = "error" in C && [C.error] || [];
|
|
2570
2593
|
} else
|
|
2571
2594
|
f.errors = w.errors;
|
|
2572
2595
|
}
|
|
2573
|
-
}, T =
|
|
2574
|
-
logo:
|
|
2596
|
+
}, T = I(() => ({
|
|
2597
|
+
logo: g.value ? "" : E.value?.logo || t.logo
|
|
2575
2598
|
}));
|
|
2576
2599
|
return (v, w) => (b(), D(i(_e), {
|
|
2577
2600
|
logo: T.value.logo,
|
|
@@ -2579,27 +2602,27 @@ const nr = {
|
|
|
2579
2602
|
title: i(c)("PASSWORDRESET.TITLE"),
|
|
2580
2603
|
subtitle: i(c)("PASSWORDRESET.SUBTITLE")
|
|
2581
2604
|
}, {
|
|
2582
|
-
default:
|
|
2605
|
+
default: h(() => [
|
|
2583
2606
|
i(r) ? (b(), D(i(Ht), {
|
|
2584
2607
|
key: 0,
|
|
2585
2608
|
active: ""
|
|
2586
2609
|
})) : z("", !0),
|
|
2587
|
-
|
|
2588
|
-
default:
|
|
2589
|
-
|
|
2610
|
+
_(i(ge), null, {
|
|
2611
|
+
default: h(() => [
|
|
2612
|
+
_(i(Z), {
|
|
2590
2613
|
label: i(c)("PASSWORDRESET.FIELDS.PASSWORD.LABEL"),
|
|
2591
2614
|
name: "password",
|
|
2592
2615
|
"model-value": f.password,
|
|
2593
2616
|
rules: "required"
|
|
2594
2617
|
}, {
|
|
2595
|
-
default:
|
|
2596
|
-
|
|
2618
|
+
default: h(({ field: C, errorMessage: L, handleChange: m, errors: A }) => [
|
|
2619
|
+
_(i($), re(C, {
|
|
2597
2620
|
ref: "passwordField",
|
|
2598
2621
|
modelValue: f.password,
|
|
2599
2622
|
"onUpdate:modelValue": [
|
|
2600
2623
|
w[0] || (w[0] = (p) => f.password = p),
|
|
2601
2624
|
(p) => {
|
|
2602
|
-
|
|
2625
|
+
m(p), S();
|
|
2603
2626
|
}
|
|
2604
2627
|
],
|
|
2605
2628
|
class: "tw-mb-4",
|
|
@@ -2609,26 +2632,26 @@ const nr = {
|
|
|
2609
2632
|
autocomplete: "new-password",
|
|
2610
2633
|
disabled: !f.tokenIsValid,
|
|
2611
2634
|
required: "",
|
|
2612
|
-
error: !!
|
|
2613
|
-
"error-message":
|
|
2635
|
+
error: !!A.length,
|
|
2636
|
+
"error-message": L
|
|
2614
2637
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2615
2638
|
]),
|
|
2616
2639
|
_: 1
|
|
2617
2640
|
}, 8, ["label", "model-value"]),
|
|
2618
|
-
|
|
2641
|
+
_(i(Z), {
|
|
2619
2642
|
label: i(c)("PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
2620
2643
|
name: "confirm_password",
|
|
2621
2644
|
"model-value": f.confirmPassword,
|
|
2622
2645
|
rules: "required"
|
|
2623
2646
|
}, {
|
|
2624
|
-
default:
|
|
2625
|
-
|
|
2647
|
+
default: h(({ field: C, errorMessage: L, handleChange: m, errors: A }) => [
|
|
2648
|
+
_(i($), re(C, {
|
|
2626
2649
|
ref: "confirmPasswordField",
|
|
2627
2650
|
modelValue: f.confirmPassword,
|
|
2628
2651
|
"onUpdate:modelValue": [
|
|
2629
2652
|
w[1] || (w[1] = (p) => f.confirmPassword = p),
|
|
2630
2653
|
(p) => {
|
|
2631
|
-
|
|
2654
|
+
m(p), S();
|
|
2632
2655
|
}
|
|
2633
2656
|
],
|
|
2634
2657
|
class: "tw-mb-6",
|
|
@@ -2638,31 +2661,31 @@ const nr = {
|
|
|
2638
2661
|
type: "password",
|
|
2639
2662
|
autocomplete: "new-password",
|
|
2640
2663
|
required: "",
|
|
2641
|
-
error: !!
|
|
2642
|
-
"error-message":
|
|
2643
|
-
onKeyup:
|
|
2664
|
+
error: !!A.length,
|
|
2665
|
+
"error-message": L,
|
|
2666
|
+
onKeyup: lt(O, ["enter"])
|
|
2644
2667
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2645
2668
|
]),
|
|
2646
2669
|
_: 1
|
|
2647
2670
|
}, 8, ["label", "model-value"]),
|
|
2648
|
-
|
|
2671
|
+
_(i(x), {
|
|
2649
2672
|
variant: "primary",
|
|
2650
2673
|
class: "tw-w-full",
|
|
2651
2674
|
disabled: d.value,
|
|
2652
2675
|
loading: i(r),
|
|
2653
|
-
onClick:
|
|
2676
|
+
onClick: O
|
|
2654
2677
|
}, {
|
|
2655
|
-
default:
|
|
2678
|
+
default: h(() => [
|
|
2656
2679
|
M(y(i(c)("PASSWORDRESET.SAVE_PASSWORD")), 1)
|
|
2657
2680
|
]),
|
|
2658
2681
|
_: 1
|
|
2659
2682
|
}, 8, ["disabled", "loading"]),
|
|
2660
|
-
(b(!0), W(ne, null, Fe(f.errors, (
|
|
2661
|
-
key:
|
|
2683
|
+
(b(!0), W(ne, null, Fe(f.errors, (C) => (b(), D(i(Ee), {
|
|
2684
|
+
key: C,
|
|
2662
2685
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2663
2686
|
}, {
|
|
2664
|
-
default:
|
|
2665
|
-
M(y(i(c)(`PASSWORDRESET.ERRORS.${
|
|
2687
|
+
default: h(() => [
|
|
2688
|
+
M(y(i(c)(`PASSWORDRESET.ERRORS.${C}`)), 1)
|
|
2666
2689
|
]),
|
|
2667
2690
|
_: 2
|
|
2668
2691
|
}, 1024))), 128))
|
|
@@ -2684,41 +2707,41 @@ const nr = {
|
|
|
2684
2707
|
},
|
|
2685
2708
|
setup(e) {
|
|
2686
2709
|
ue({ validateOnMount: !1 });
|
|
2687
|
-
const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), u = Ie(), E =
|
|
2710
|
+
const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), u = Ie(), E = ct(), { uiSettings: g, loading: f } = we(), d = ie({
|
|
2688
2711
|
isValid: !1,
|
|
2689
2712
|
tokenIsValid: !1,
|
|
2690
2713
|
errors: [],
|
|
2691
2714
|
password: "",
|
|
2692
2715
|
confirmPassword: ""
|
|
2693
|
-
}), S =
|
|
2716
|
+
}), S = I(() => !E.value || !u.value);
|
|
2694
2717
|
Re(async () => {
|
|
2695
2718
|
d.tokenIsValid = await a(t.userId, t.token), d.tokenIsValid || d.errors.push("Invalid-token");
|
|
2696
2719
|
});
|
|
2697
|
-
const
|
|
2720
|
+
const O = async () => {
|
|
2698
2721
|
if (d.tokenIsValid) {
|
|
2699
2722
|
const w = (await n(d.password)).errors;
|
|
2700
|
-
d.errors = w?.map((
|
|
2723
|
+
d.errors = w?.map((C) => C.code), d.confirmPassword && d.confirmPassword !== d.password && d.errors.push("Repeat-password"), d.isValid = d.errors.length == 0 && !S.value;
|
|
2701
2724
|
}
|
|
2702
2725
|
}, T = async () => {
|
|
2703
2726
|
const w = await s(t.userId, d.password, t.token);
|
|
2704
2727
|
w.succeeded ? (await o(t.userName, d.password)).succeeded && l.push("/") : d.errors = w.errors;
|
|
2705
|
-
}, v =
|
|
2706
|
-
logo: f.value ? "" :
|
|
2728
|
+
}, v = I(() => ({
|
|
2729
|
+
logo: f.value ? "" : g.value?.logo || t.logo
|
|
2707
2730
|
}));
|
|
2708
|
-
return (w,
|
|
2731
|
+
return (w, C) => (b(), D(i(_e), {
|
|
2709
2732
|
logo: v.value.logo,
|
|
2710
2733
|
background: e.background,
|
|
2711
2734
|
title: i(c)("INVITATION.TITLE"),
|
|
2712
2735
|
subtitle: i(c)("INVITATION.SUBTITLE")
|
|
2713
2736
|
}, {
|
|
2714
|
-
default:
|
|
2737
|
+
default: h(() => [
|
|
2715
2738
|
i(r) ? (b(), D(i(Ht), {
|
|
2716
2739
|
key: 0,
|
|
2717
2740
|
active: ""
|
|
2718
2741
|
})) : z("", !0),
|
|
2719
|
-
|
|
2720
|
-
default:
|
|
2721
|
-
|
|
2742
|
+
_(i(ge), null, {
|
|
2743
|
+
default: h(() => [
|
|
2744
|
+
_(i($), {
|
|
2722
2745
|
class: "tw-mb-4",
|
|
2723
2746
|
label: i(c)("INVITATION.FIELDS.EMAIL.LABEL"),
|
|
2724
2747
|
"model-value": e.userName,
|
|
@@ -2726,20 +2749,20 @@ const nr = {
|
|
|
2726
2749
|
autocomplete: "username",
|
|
2727
2750
|
disabled: ""
|
|
2728
2751
|
}, null, 8, ["label", "model-value"]),
|
|
2729
|
-
|
|
2752
|
+
_(i(Z), {
|
|
2730
2753
|
label: i(c)("INVITATION.FIELDS.PASSWORD.LABEL"),
|
|
2731
2754
|
"model-value": d.password,
|
|
2732
2755
|
rules: "required",
|
|
2733
2756
|
name: "password"
|
|
2734
2757
|
}, {
|
|
2735
|
-
default:
|
|
2736
|
-
|
|
2758
|
+
default: h(({ field: L, errorMessage: m, handleChange: A, errors: p }) => [
|
|
2759
|
+
_(i($), re(L, {
|
|
2737
2760
|
ref: "passwordField",
|
|
2738
2761
|
modelValue: d.password,
|
|
2739
2762
|
"onUpdate:modelValue": [
|
|
2740
|
-
|
|
2763
|
+
C[0] || (C[0] = (R) => d.password = R),
|
|
2741
2764
|
(R) => {
|
|
2742
|
-
|
|
2765
|
+
A(R), O();
|
|
2743
2766
|
}
|
|
2744
2767
|
],
|
|
2745
2768
|
class: "tw-mb-4",
|
|
@@ -2749,26 +2772,26 @@ const nr = {
|
|
|
2749
2772
|
autocomplete: "new-password",
|
|
2750
2773
|
disabled: !d.tokenIsValid,
|
|
2751
2774
|
error: !!p.length,
|
|
2752
|
-
"error-message":
|
|
2775
|
+
"error-message": m,
|
|
2753
2776
|
required: ""
|
|
2754
2777
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2755
2778
|
]),
|
|
2756
2779
|
_: 1
|
|
2757
2780
|
}, 8, ["label", "model-value"]),
|
|
2758
|
-
|
|
2781
|
+
_(i(Z), {
|
|
2759
2782
|
label: i(c)("INVITATION.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
2760
2783
|
"model-value": d.confirmPassword,
|
|
2761
2784
|
rules: "required",
|
|
2762
2785
|
name: "confirm_password"
|
|
2763
2786
|
}, {
|
|
2764
|
-
default:
|
|
2765
|
-
|
|
2787
|
+
default: h(({ field: L, errorMessage: m, handleChange: A, errors: p }) => [
|
|
2788
|
+
_(i($), re(L, {
|
|
2766
2789
|
ref: "confirmPasswordField",
|
|
2767
2790
|
modelValue: d.confirmPassword,
|
|
2768
2791
|
"onUpdate:modelValue": [
|
|
2769
|
-
|
|
2792
|
+
C[1] || (C[1] = (R) => d.confirmPassword = R),
|
|
2770
2793
|
(R) => {
|
|
2771
|
-
|
|
2794
|
+
A(R), O();
|
|
2772
2795
|
}
|
|
2773
2796
|
],
|
|
2774
2797
|
class: "tw-mb-6",
|
|
@@ -2778,31 +2801,31 @@ const nr = {
|
|
|
2778
2801
|
type: "password",
|
|
2779
2802
|
autocomplete: "new-password",
|
|
2780
2803
|
error: !!p.length,
|
|
2781
|
-
"error-message":
|
|
2804
|
+
"error-message": m,
|
|
2782
2805
|
required: "",
|
|
2783
|
-
onKeyup:
|
|
2806
|
+
onKeyup: lt(T, ["enter"])
|
|
2784
2807
|
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
|
|
2785
2808
|
]),
|
|
2786
2809
|
_: 1
|
|
2787
2810
|
}, 8, ["label", "model-value"]),
|
|
2788
|
-
|
|
2811
|
+
_(i(x), {
|
|
2789
2812
|
variant: "primary",
|
|
2790
2813
|
class: "tw-w-full",
|
|
2791
2814
|
disabled: i(r) || !d.isValid || !d.tokenIsValid,
|
|
2792
2815
|
loading: i(r),
|
|
2793
2816
|
onClick: T
|
|
2794
2817
|
}, {
|
|
2795
|
-
default:
|
|
2818
|
+
default: h(() => [
|
|
2796
2819
|
M(y(i(c)("INVITATION.ACCEPT_INVITATION")), 1)
|
|
2797
2820
|
]),
|
|
2798
2821
|
_: 1
|
|
2799
2822
|
}, 8, ["disabled", "loading"]),
|
|
2800
|
-
(b(!0), W(ne, null, Fe(d.errors, (
|
|
2801
|
-
key:
|
|
2823
|
+
(b(!0), W(ne, null, Fe(d.errors, (L) => (b(), D(i(Ee), {
|
|
2824
|
+
key: L,
|
|
2802
2825
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2803
2826
|
}, {
|
|
2804
|
-
default:
|
|
2805
|
-
M(y(i(c)(`INVITATION.ERRORS.${
|
|
2827
|
+
default: h(() => [
|
|
2828
|
+
M(y(i(c)(`INVITATION.ERRORS.${L}`)), 1)
|
|
2806
2829
|
]),
|
|
2807
2830
|
_: 2
|
|
2808
2831
|
}, 1024))), 128))
|
|
@@ -2824,18 +2847,18 @@ const nr = {
|
|
|
2824
2847
|
background: {}
|
|
2825
2848
|
},
|
|
2826
2849
|
setup(e) {
|
|
2827
|
-
const t = e, { t: a } = le({ useScope: "global" }), { changeUserPassword: n, loading: s, validatePassword: o, signOut: r } = se(), { uiSettings: l, loading: c } = we(), u =
|
|
2850
|
+
const t = e, { t: a } = le({ useScope: "global" }), { changeUserPassword: n, loading: s, validatePassword: o, signOut: r } = se(), { uiSettings: l, loading: c } = we(), u = I(() => ({
|
|
2828
2851
|
logo: c.value ? "" : l.value?.logo || t.logo
|
|
2829
2852
|
}));
|
|
2830
2853
|
ue({ validateOnMount: !1 });
|
|
2831
|
-
const E = Ie(),
|
|
2854
|
+
const E = Ie(), g = ct(), f = ve(), d = ie({
|
|
2832
2855
|
isValid: !1,
|
|
2833
2856
|
errors: [],
|
|
2834
2857
|
currentPassword: "",
|
|
2835
2858
|
password: "",
|
|
2836
2859
|
confirmPassword: ""
|
|
2837
|
-
}), S =
|
|
2838
|
-
async function
|
|
2860
|
+
}), S = I(() => !g.value || !E.value);
|
|
2861
|
+
async function O() {
|
|
2839
2862
|
await r(), await f.push("/login");
|
|
2840
2863
|
}
|
|
2841
2864
|
async function T() {
|
|
@@ -2845,48 +2868,48 @@ const nr = {
|
|
|
2845
2868
|
function v() {
|
|
2846
2869
|
be(async () => {
|
|
2847
2870
|
if (d.password || d.confirmPassword) {
|
|
2848
|
-
const w = (await o(d.password)).errors ?? [],
|
|
2871
|
+
const w = (await o(d.password)).errors ?? [], C = ar({
|
|
2849
2872
|
password: d.password,
|
|
2850
2873
|
confirmPassword: d.confirmPassword,
|
|
2851
2874
|
currentPassword: d.currentPassword
|
|
2852
2875
|
});
|
|
2853
|
-
d.errors = [...w, ...
|
|
2876
|
+
d.errors = [...w, ...C], d.isValid = d.errors.length == 0;
|
|
2854
2877
|
}
|
|
2855
2878
|
});
|
|
2856
2879
|
}
|
|
2857
|
-
return (w,
|
|
2880
|
+
return (w, C) => (b(), D(i(_e), {
|
|
2858
2881
|
logo: u.value.logo,
|
|
2859
2882
|
background: e.background,
|
|
2860
2883
|
title: e.forced ? i(a)("COMPONENTS.CHANGE_PASSWORD.TITLE_FORCED") : i(a)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
|
|
2861
2884
|
subtitle: e.forced ? i(a)("COMPONENTS.CHANGE_PASSWORD.SUBTITLE_FORCED") : void 0
|
|
2862
2885
|
}, {
|
|
2863
|
-
default:
|
|
2886
|
+
default: h(() => [
|
|
2864
2887
|
e.forced ? (b(), W("div", Er, [
|
|
2865
|
-
|
|
2888
|
+
_(i(Ln), {
|
|
2866
2889
|
variant: "info",
|
|
2867
2890
|
icon: "lucide-lightbulb",
|
|
2868
2891
|
"icon-size": "l"
|
|
2869
2892
|
}, {
|
|
2870
|
-
default:
|
|
2893
|
+
default: h(() => [
|
|
2871
2894
|
M(y(i(a)("COMPONENTS.CHANGE_PASSWORD.FORCED.LABEL")), 1)
|
|
2872
2895
|
]),
|
|
2873
2896
|
_: 1
|
|
2874
2897
|
})
|
|
2875
2898
|
])) : z("", !0),
|
|
2876
|
-
|
|
2877
|
-
default:
|
|
2878
|
-
|
|
2899
|
+
_(i(ge), null, {
|
|
2900
|
+
default: h(() => [
|
|
2901
|
+
_(i(Z), {
|
|
2879
2902
|
label: i(a)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
|
|
2880
2903
|
name: "current",
|
|
2881
2904
|
rules: "required|min:6",
|
|
2882
2905
|
"model-value": d.currentPassword
|
|
2883
2906
|
}, {
|
|
2884
|
-
default:
|
|
2885
|
-
|
|
2907
|
+
default: h(({ field: L, errorMessage: m, errors: A }) => [
|
|
2908
|
+
_(i($), re(L, {
|
|
2886
2909
|
ref: "passwordField",
|
|
2887
2910
|
modelValue: d.currentPassword,
|
|
2888
2911
|
"onUpdate:modelValue": [
|
|
2889
|
-
|
|
2912
|
+
C[0] || (C[0] = (p) => d.currentPassword = p),
|
|
2890
2913
|
v
|
|
2891
2914
|
],
|
|
2892
2915
|
class: "tw-mb-4",
|
|
@@ -2895,24 +2918,24 @@ const nr = {
|
|
|
2895
2918
|
type: "password",
|
|
2896
2919
|
autocomplete: "current-password",
|
|
2897
2920
|
required: "",
|
|
2898
|
-
error: !!
|
|
2899
|
-
"error-message":
|
|
2921
|
+
error: !!A.length,
|
|
2922
|
+
"error-message": m
|
|
2900
2923
|
}), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
|
|
2901
2924
|
]),
|
|
2902
2925
|
_: 1
|
|
2903
2926
|
}, 8, ["label", "model-value"]),
|
|
2904
|
-
|
|
2927
|
+
_(i(Z), {
|
|
2905
2928
|
label: i(a)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
|
|
2906
2929
|
name: "new_pass",
|
|
2907
2930
|
rules: "required|min:6",
|
|
2908
2931
|
"model-value": d.password
|
|
2909
2932
|
}, {
|
|
2910
|
-
default:
|
|
2911
|
-
|
|
2933
|
+
default: h(({ field: L, errorMessage: m, errors: A }) => [
|
|
2934
|
+
_(i($), re(L, {
|
|
2912
2935
|
ref: "newPasswordField",
|
|
2913
2936
|
modelValue: d.password,
|
|
2914
2937
|
"onUpdate:modelValue": [
|
|
2915
|
-
|
|
2938
|
+
C[1] || (C[1] = (p) => d.password = p),
|
|
2916
2939
|
v
|
|
2917
2940
|
],
|
|
2918
2941
|
class: "tw-mb-4",
|
|
@@ -2921,24 +2944,24 @@ const nr = {
|
|
|
2921
2944
|
type: "password",
|
|
2922
2945
|
autocomplete: "new-password",
|
|
2923
2946
|
required: "",
|
|
2924
|
-
error: !!
|
|
2925
|
-
"error-message":
|
|
2947
|
+
error: !!A.length,
|
|
2948
|
+
"error-message": m
|
|
2926
2949
|
}), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
|
|
2927
2950
|
]),
|
|
2928
2951
|
_: 1
|
|
2929
2952
|
}, 8, ["label", "model-value"]),
|
|
2930
|
-
|
|
2953
|
+
_(i(Z), {
|
|
2931
2954
|
label: i(a)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
|
|
2932
2955
|
name: "confirm_pass",
|
|
2933
2956
|
rules: "required|min:6",
|
|
2934
2957
|
"model-value": d.confirmPassword
|
|
2935
2958
|
}, {
|
|
2936
|
-
default:
|
|
2937
|
-
|
|
2959
|
+
default: h(({ field: L, errorMessage: m, errors: A }) => [
|
|
2960
|
+
_(i($), re(L, {
|
|
2938
2961
|
ref: "confirmPasswordField",
|
|
2939
2962
|
modelValue: d.confirmPassword,
|
|
2940
2963
|
"onUpdate:modelValue": [
|
|
2941
|
-
|
|
2964
|
+
C[2] || (C[2] = (p) => d.confirmPassword = p),
|
|
2942
2965
|
v
|
|
2943
2966
|
],
|
|
2944
2967
|
class: "tw-mb-6",
|
|
@@ -2947,42 +2970,42 @@ const nr = {
|
|
|
2947
2970
|
type: "password",
|
|
2948
2971
|
autocomplete: "new-password",
|
|
2949
2972
|
required: "",
|
|
2950
|
-
error: !!
|
|
2951
|
-
"error-message":
|
|
2973
|
+
error: !!A.length,
|
|
2974
|
+
"error-message": m
|
|
2952
2975
|
}), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
|
|
2953
2976
|
]),
|
|
2954
2977
|
_: 1
|
|
2955
2978
|
}, 8, ["label", "model-value"]),
|
|
2956
2979
|
U("div", fr, [
|
|
2957
|
-
|
|
2980
|
+
_(i(x), {
|
|
2958
2981
|
variant: "secondary",
|
|
2959
2982
|
class: "tw-flex-1",
|
|
2960
|
-
onClick:
|
|
2983
|
+
onClick: O
|
|
2961
2984
|
}, {
|
|
2962
|
-
default:
|
|
2985
|
+
default: h(() => [
|
|
2963
2986
|
M(y(i(a)("COMPONENTS.CHANGE_PASSWORD.CANCEL")), 1)
|
|
2964
2987
|
]),
|
|
2965
2988
|
_: 1
|
|
2966
2989
|
}),
|
|
2967
|
-
|
|
2990
|
+
_(i(x), {
|
|
2968
2991
|
variant: "primary",
|
|
2969
2992
|
class: "tw-flex-1",
|
|
2970
2993
|
disabled: i(s) || !d.isValid || S.value,
|
|
2971
2994
|
loading: i(s),
|
|
2972
2995
|
onClick: T
|
|
2973
2996
|
}, {
|
|
2974
|
-
default:
|
|
2997
|
+
default: h(() => [
|
|
2975
2998
|
M(y(i(a)("COMPONENTS.CHANGE_PASSWORD.SAVE")), 1)
|
|
2976
2999
|
]),
|
|
2977
3000
|
_: 1
|
|
2978
3001
|
}, 8, ["disabled", "loading"])
|
|
2979
3002
|
]),
|
|
2980
|
-
(b(!0), W(ne, null, Fe(d.errors, (
|
|
2981
|
-
key:
|
|
3003
|
+
(b(!0), W(ne, null, Fe(d.errors, (L, m) => (b(), D(i(Ee), {
|
|
3004
|
+
key: m,
|
|
2982
3005
|
class: "tw-mt-3 tw-text-danger-500"
|
|
2983
3006
|
}, {
|
|
2984
|
-
default:
|
|
2985
|
-
M(y(
|
|
3007
|
+
default: h(() => [
|
|
3008
|
+
M(y(L.code ? i(a)(`COMPONENTS.CHANGE_PASSWORD.ERRORS.${L.code}`) : L), 1)
|
|
2986
3009
|
]),
|
|
2987
3010
|
_: 2
|
|
2988
3011
|
}, 1024))), 128))
|
|
@@ -2993,10 +3016,10 @@ const nr = {
|
|
|
2993
3016
|
_: 1
|
|
2994
3017
|
}, 8, ["logo", "background", "title", "subtitle"]));
|
|
2995
3018
|
}
|
|
2996
|
-
}), xl = mr,
|
|
3019
|
+
}), xl = mr, Qe = k("use-blade-navigation-adapter"), nt = /* @__PURE__ */ new Set();
|
|
2997
3020
|
function oe(e, t) {
|
|
2998
|
-
if (
|
|
2999
|
-
|
|
3021
|
+
if (nt.has(e)) return;
|
|
3022
|
+
nt.add(e);
|
|
3000
3023
|
const a = `[useBladeNavigation] "${e}" is deprecated.`;
|
|
3001
3024
|
console.warn(t ? `${a} Use ${t} instead.` : a);
|
|
3002
3025
|
}
|
|
@@ -3019,7 +3042,7 @@ function Nt(e, t, a) {
|
|
|
3019
3042
|
}
|
|
3020
3043
|
let De, ye;
|
|
3021
3044
|
function $l() {
|
|
3022
|
-
De = void 0, ye = void 0,
|
|
3045
|
+
De = void 0, ye = void 0, nt.clear();
|
|
3023
3046
|
}
|
|
3024
3047
|
function gr() {
|
|
3025
3048
|
const e = as, t = ss, a = ns;
|
|
@@ -3030,10 +3053,10 @@ function gr() {
|
|
|
3030
3053
|
const n = ts?.router;
|
|
3031
3054
|
if (!n)
|
|
3032
3055
|
throw new Error("[@vc-shell/framework#useBladeNavigation] Vue Router instance is not available.");
|
|
3033
|
-
return De || (De =
|
|
3056
|
+
return De || (De = I(() => {
|
|
3034
3057
|
const s = e.activeBlade.value?.id;
|
|
3035
3058
|
return e.blades.value.map((o, r) => Nt(o, r, s));
|
|
3036
|
-
})), ye || (ye =
|
|
3059
|
+
})), ye || (ye = I(() => {
|
|
3037
3060
|
const s = e.workspace.value;
|
|
3038
3061
|
if (s)
|
|
3039
3062
|
return Nt(s, 0, e.activeBlade.value?.id);
|
|
@@ -3067,37 +3090,37 @@ function Kl() {
|
|
|
3067
3090
|
function l() {
|
|
3068
3091
|
return r ? r.value.id : e.activeBlade.value?.id;
|
|
3069
3092
|
}
|
|
3070
|
-
function c(
|
|
3071
|
-
const
|
|
3072
|
-
if (
|
|
3073
|
-
return
|
|
3093
|
+
function c(m) {
|
|
3094
|
+
const A = e.blades.value;
|
|
3095
|
+
if (m >= 0 && m < A.length)
|
|
3096
|
+
return A[m].id;
|
|
3074
3097
|
}
|
|
3075
|
-
async function u(
|
|
3098
|
+
async function u(m, A) {
|
|
3076
3099
|
const R = {
|
|
3077
|
-
name: Sr(
|
|
3078
|
-
param:
|
|
3079
|
-
options:
|
|
3080
|
-
onOpen:
|
|
3081
|
-
onClose:
|
|
3082
|
-
replaceCurrentBlade:
|
|
3100
|
+
name: Sr(m.blade),
|
|
3101
|
+
param: m.param,
|
|
3102
|
+
options: m.options,
|
|
3103
|
+
onOpen: m.onOpen,
|
|
3104
|
+
onClose: m.onClose,
|
|
3105
|
+
replaceCurrentBlade: m.replaceCurrentBlade
|
|
3083
3106
|
};
|
|
3084
|
-
if (
|
|
3107
|
+
if (A)
|
|
3085
3108
|
await e.openWorkspace(R);
|
|
3086
|
-
else if (
|
|
3109
|
+
else if (m.replaceCurrentBlade)
|
|
3087
3110
|
await e.coverCurrentBlade(R);
|
|
3088
3111
|
else {
|
|
3089
3112
|
const P = l();
|
|
3090
3113
|
await e.openBlade({ ...R, parentId: P });
|
|
3091
3114
|
}
|
|
3092
3115
|
}
|
|
3093
|
-
async function E(
|
|
3116
|
+
async function E(m) {
|
|
3094
3117
|
oe("closeBlade(index)", "useBlade().closeSelf()");
|
|
3095
|
-
const
|
|
3096
|
-
return
|
|
3118
|
+
const A = c(m);
|
|
3119
|
+
return A ? e.closeBlade(A) : (Qe.error(`closeBlade: No blade found at index ${m}.`), !1);
|
|
3097
3120
|
}
|
|
3098
|
-
function
|
|
3121
|
+
function g() {
|
|
3099
3122
|
oe("goToRoot()");
|
|
3100
|
-
const
|
|
3123
|
+
const m = n.getRoutes(), A = m.find((P) => P.meta?.root), p = A ? m.find((P) => P.aliasOf?.path === A.path) ?? A : void 0;
|
|
3101
3124
|
if (p?.name)
|
|
3102
3125
|
return {
|
|
3103
3126
|
name: p.name,
|
|
@@ -3106,72 +3129,72 @@ function Kl() {
|
|
|
3106
3129
|
const R = On(n);
|
|
3107
3130
|
return { path: R ? `/${R}` : "/" };
|
|
3108
3131
|
}
|
|
3109
|
-
async function f(
|
|
3132
|
+
async function f(m, A) {
|
|
3110
3133
|
oe("onParentCall(args, index)", "useBlade().callParent(method, args)");
|
|
3111
3134
|
let p;
|
|
3112
|
-
if (
|
|
3113
|
-
|
|
3135
|
+
if (A !== void 0 ? p = c(A) : p = l(), !p) {
|
|
3136
|
+
Qe.error("onParentCall: Could not determine caller blade.");
|
|
3114
3137
|
return;
|
|
3115
3138
|
}
|
|
3116
3139
|
try {
|
|
3117
|
-
const R = await t.callParent(p,
|
|
3118
|
-
typeof
|
|
3140
|
+
const R = await t.callParent(p, m.method, m.args);
|
|
3141
|
+
typeof m.callback == "function" && m.callback(R);
|
|
3119
3142
|
} catch (R) {
|
|
3120
|
-
|
|
3143
|
+
Qe.error(`onParentCall: Failed to call parent method "${m.method}":`, R);
|
|
3121
3144
|
}
|
|
3122
3145
|
}
|
|
3123
|
-
function d(
|
|
3146
|
+
function d(m) {
|
|
3124
3147
|
oe("onBeforeClose(cb)", "useBlade().onBeforeClose(guard)");
|
|
3125
|
-
const
|
|
3126
|
-
if (!
|
|
3148
|
+
const A = l();
|
|
3149
|
+
if (!A) {
|
|
3127
3150
|
sn("onBeforeClose: Could not determine current blade.");
|
|
3128
3151
|
return;
|
|
3129
3152
|
}
|
|
3130
|
-
e.registerBeforeClose(
|
|
3153
|
+
e.registerBeforeClose(A, async () => await m() === !1);
|
|
3131
3154
|
}
|
|
3132
|
-
function S(
|
|
3133
|
-
return a.getBladeComponent(
|
|
3155
|
+
function S(m) {
|
|
3156
|
+
return a.getBladeComponent(m);
|
|
3134
3157
|
}
|
|
3135
|
-
function
|
|
3158
|
+
function O(m) {
|
|
3136
3159
|
oe("routeResolver", "plugin-v2 handles URL resolution automatically");
|
|
3137
3160
|
}
|
|
3138
|
-
function T(
|
|
3161
|
+
function T(m) {
|
|
3139
3162
|
oe("setNavigationQuery");
|
|
3140
|
-
const
|
|
3141
|
-
if (!
|
|
3142
|
-
const p =
|
|
3163
|
+
const A = e.workspace.value;
|
|
3164
|
+
if (!A) return;
|
|
3165
|
+
const p = A.name.toLowerCase(), [R, P] = Dt(window.location.hash), B = new URLSearchParams(P);
|
|
3143
3166
|
for (const K of [...B.keys()])
|
|
3144
3167
|
K.startsWith(`${p}_`) && B.delete(K);
|
|
3145
|
-
for (const [K, ce] of Object.entries(
|
|
3168
|
+
for (const [K, ce] of Object.entries(m))
|
|
3146
3169
|
ce != null && B.set(`${p}_${K}`, String(ce));
|
|
3147
3170
|
const V = B.toString();
|
|
3148
3171
|
n.options.history.replace(V ? `${R}?${V}` : R);
|
|
3149
3172
|
}
|
|
3150
3173
|
function v() {
|
|
3151
3174
|
oe("getNavigationQuery");
|
|
3152
|
-
const
|
|
3153
|
-
if (!
|
|
3154
|
-
const
|
|
3175
|
+
const m = e.workspace.value;
|
|
3176
|
+
if (!m) return;
|
|
3177
|
+
const A = m.name.toLowerCase(), p = new URLSearchParams(Dt(window.location.hash)[1]), R = {};
|
|
3155
3178
|
for (const [P, B] of p.entries())
|
|
3156
|
-
P.startsWith(`${
|
|
3179
|
+
P.startsWith(`${A}_`) && (R[P.replace(`${A}_`, "")] = pr(B));
|
|
3157
3180
|
return Object.keys(R).length > 0 ? R : void 0;
|
|
3158
3181
|
}
|
|
3159
|
-
function w(
|
|
3160
|
-
const p = c(
|
|
3161
|
-
p && e.setBladeError(p,
|
|
3182
|
+
function w(m, A) {
|
|
3183
|
+
const p = c(m);
|
|
3184
|
+
p && e.setBladeError(p, A);
|
|
3162
3185
|
}
|
|
3163
|
-
function
|
|
3164
|
-
const
|
|
3165
|
-
|
|
3186
|
+
function C(m) {
|
|
3187
|
+
const A = c(m);
|
|
3188
|
+
A && e.clearBladeError(A);
|
|
3166
3189
|
}
|
|
3167
|
-
const
|
|
3190
|
+
const L = I(() => {
|
|
3168
3191
|
if (!r) return;
|
|
3169
|
-
const
|
|
3192
|
+
const m = r.value;
|
|
3170
3193
|
return {
|
|
3171
|
-
idx: e.blades.value.findIndex((R) => R.id ===
|
|
3172
|
-
instance:
|
|
3173
|
-
isVisible:
|
|
3174
|
-
error: N(
|
|
3194
|
+
idx: e.blades.value.findIndex((R) => R.id === m.id),
|
|
3195
|
+
instance: m.title != null ? { title: m.title } : void 0,
|
|
3196
|
+
isVisible: m.visible,
|
|
3197
|
+
error: N(m.error ? new Error(String(m.error)) : null)
|
|
3175
3198
|
};
|
|
3176
3199
|
});
|
|
3177
3200
|
return {
|
|
@@ -3179,16 +3202,16 @@ function Kl() {
|
|
|
3179
3202
|
activeWorkspace: o,
|
|
3180
3203
|
openBlade: u,
|
|
3181
3204
|
closeBlade: E,
|
|
3182
|
-
goToRoot:
|
|
3205
|
+
goToRoot: g,
|
|
3183
3206
|
onParentCall: f,
|
|
3184
3207
|
onBeforeClose: d,
|
|
3185
3208
|
resolveBladeByName: S,
|
|
3186
|
-
routeResolver:
|
|
3209
|
+
routeResolver: O,
|
|
3187
3210
|
setNavigationQuery: T,
|
|
3188
3211
|
getNavigationQuery: v,
|
|
3189
3212
|
setBladeError: w,
|
|
3190
|
-
clearBladeError:
|
|
3191
|
-
currentBladeNavigationData:
|
|
3213
|
+
clearBladeError: C,
|
|
3214
|
+
currentBladeNavigationData: L
|
|
3192
3215
|
};
|
|
3193
3216
|
}
|
|
3194
3217
|
function Ce(e) {
|
|
@@ -3212,20 +3235,20 @@ function zl(e) {
|
|
|
3212
3235
|
autoBeforeUnload: s = !0,
|
|
3213
3236
|
closeConfirmMessage: o,
|
|
3214
3237
|
onRevert: r
|
|
3215
|
-
} = e, { meta: l, setFieldError: c, errorBag: u } = ue({ validateOnMount: !1 }), E = N(J(t.value)),
|
|
3238
|
+
} = e, { meta: l, setFieldError: c, errorBag: u } = ue({ validateOnMount: !1 }), E = N(J(t.value)), g = N(!1);
|
|
3216
3239
|
ae(
|
|
3217
3240
|
t,
|
|
3218
3241
|
(w) => {
|
|
3219
|
-
f.value && (
|
|
3242
|
+
f.value && (g.value = !Ue(w, E.value));
|
|
3220
3243
|
},
|
|
3221
3244
|
{ deep: !0 }
|
|
3222
3245
|
);
|
|
3223
|
-
const f = N(!1), d =
|
|
3224
|
-
function
|
|
3225
|
-
E.value = J(t.value),
|
|
3246
|
+
const f = N(!1), d = I(() => f.value && g.value), S = I(() => !(!f.value || !l.value.valid || !g.value || a && !a.value));
|
|
3247
|
+
function O() {
|
|
3248
|
+
E.value = J(t.value), g.value = !1, f.value = !0;
|
|
3226
3249
|
}
|
|
3227
3250
|
function T() {
|
|
3228
|
-
f.value = !0,
|
|
3251
|
+
f.value = !0, g.value = !Ue(t.value, E.value);
|
|
3229
3252
|
}
|
|
3230
3253
|
function v() {
|
|
3231
3254
|
if (r)
|
|
@@ -3233,23 +3256,23 @@ function zl(e) {
|
|
|
3233
3256
|
t.value = J(E.value);
|
|
3234
3257
|
}
|
|
3235
3258
|
if (s && zs(d), n !== !1) {
|
|
3236
|
-
const { onBeforeClose: w } =
|
|
3259
|
+
const { onBeforeClose: w } = ut(), { showConfirmation: C } = Rn();
|
|
3237
3260
|
w(async () => {
|
|
3238
|
-
let
|
|
3239
|
-
if (typeof n == "object" ?
|
|
3240
|
-
const
|
|
3241
|
-
return !await
|
|
3261
|
+
let L;
|
|
3262
|
+
if (typeof n == "object" ? L = n.value && d.value : L = d.value, L) {
|
|
3263
|
+
const m = o ? Mt(o) : "You have unsaved changes. Are you sure you want to leave?";
|
|
3264
|
+
return !await C(m);
|
|
3242
3265
|
}
|
|
3243
3266
|
return !1;
|
|
3244
3267
|
});
|
|
3245
3268
|
}
|
|
3246
3269
|
return Bt(yn, { isModified: d, canSave: S }), {
|
|
3247
|
-
setBaseline:
|
|
3270
|
+
setBaseline: O,
|
|
3248
3271
|
markReady: T,
|
|
3249
3272
|
revert: v,
|
|
3250
3273
|
canSave: S,
|
|
3251
3274
|
isModified: d,
|
|
3252
|
-
isReady:
|
|
3275
|
+
isReady: I(() => f.value),
|
|
3253
3276
|
formMeta: l,
|
|
3254
3277
|
setFieldError: c,
|
|
3255
3278
|
errorBag: u
|
|
@@ -3258,14 +3281,14 @@ function zl(e) {
|
|
|
3258
3281
|
const Be = 14, Na = 3;
|
|
3259
3282
|
function Ar(e, t, a) {
|
|
3260
3283
|
const n = e.length, s = (u) => u !== void 0 && t.get(u) || 0, o = n > 0 ? e[n - 1] : void 0, r = s(o), l = e.map((u, E) => {
|
|
3261
|
-
const
|
|
3284
|
+
const g = n - 1 - E;
|
|
3262
3285
|
let f = 0;
|
|
3263
3286
|
for (let S = E + 1; S < n; S++)
|
|
3264
3287
|
f += s(e[S]);
|
|
3265
|
-
const d =
|
|
3288
|
+
const d = g * Be + f;
|
|
3266
3289
|
return {
|
|
3267
|
-
sonnerIndex:
|
|
3268
|
-
zIndex: n -
|
|
3290
|
+
sonnerIndex: g,
|
|
3291
|
+
zIndex: n - g,
|
|
3269
3292
|
offset: d,
|
|
3270
3293
|
initialHeight: s(u)
|
|
3271
3294
|
};
|
|
@@ -3276,8 +3299,8 @@ function Ar(e, t, a) {
|
|
|
3276
3299
|
let E = 0;
|
|
3277
3300
|
for (let d = 1; d < n; d++)
|
|
3278
3301
|
E += s(e[d]);
|
|
3279
|
-
const
|
|
3280
|
-
c =
|
|
3302
|
+
const g = u * Be + E, f = s(e[0]);
|
|
3303
|
+
c = g + f;
|
|
3281
3304
|
} else
|
|
3282
3305
|
c = r + Math.min(n - 1, Na - 1) * Be;
|
|
3283
3306
|
return { toasts: l, frontHeight: r, groupHeight: c };
|
|
@@ -3294,8 +3317,8 @@ function Tr() {
|
|
|
3294
3317
|
}, 200));
|
|
3295
3318
|
}
|
|
3296
3319
|
const o = ie(/* @__PURE__ */ new Map());
|
|
3297
|
-
function r(E,
|
|
3298
|
-
const f = Math.round(
|
|
3320
|
+
function r(E, g) {
|
|
3321
|
+
const f = Math.round(g);
|
|
3299
3322
|
o.get(E) !== f && o.set(E, f);
|
|
3300
3323
|
}
|
|
3301
3324
|
function l(E) {
|
|
@@ -3375,7 +3398,7 @@ const hr = H({
|
|
|
3375
3398
|
}
|
|
3376
3399
|
},
|
|
3377
3400
|
setup(e) {
|
|
3378
|
-
const { notificationContainers: t, actions: a } = Q(Zt), n =
|
|
3401
|
+
const { notificationContainers: t, actions: a } = Q(Zt), n = I(() => t[e.position].value || []), {
|
|
3379
3402
|
expanded: s,
|
|
3380
3403
|
heightsMap: o,
|
|
3381
3404
|
expandStack: r,
|
|
@@ -3383,7 +3406,7 @@ const hr = H({
|
|
|
3383
3406
|
reportHeight: c,
|
|
3384
3407
|
forgetHeight: u,
|
|
3385
3408
|
clearHeights: E,
|
|
3386
|
-
setInteracting:
|
|
3409
|
+
setInteracting: g
|
|
3387
3410
|
} = Tr();
|
|
3388
3411
|
function f(T) {
|
|
3389
3412
|
return typeof T == "object" && (!!T?.render || !!T?.setup);
|
|
@@ -3394,14 +3417,14 @@ const hr = H({
|
|
|
3394
3417
|
function S() {
|
|
3395
3418
|
a.clear(), E();
|
|
3396
3419
|
}
|
|
3397
|
-
const
|
|
3420
|
+
const O = I(() => (e.position || "top-center").startsWith("top"));
|
|
3398
3421
|
return () => {
|
|
3399
|
-
const T = n.value, v = T.length, w = s.value || v <= 1,
|
|
3422
|
+
const T = n.value, v = T.length, w = s.value || v <= 1, C = v > 1, L = Ar(
|
|
3400
3423
|
T.map((p) => p.notificationId),
|
|
3401
3424
|
o,
|
|
3402
3425
|
w
|
|
3403
|
-
),
|
|
3404
|
-
const { sonnerIndex: P, zIndex: B, offset: V, initialHeight: K } =
|
|
3426
|
+
), m = T.map((p, R) => {
|
|
3427
|
+
const { sonnerIndex: P, zIndex: B, offset: V, initialHeight: K } = L.toasts[R], ce = {
|
|
3405
3428
|
"--toasts-before": P,
|
|
3406
3429
|
"--z-index": B,
|
|
3407
3430
|
"--offset": `${V}px`,
|
|
@@ -3415,17 +3438,17 @@ const hr = H({
|
|
|
3415
3438
|
expanded: w,
|
|
3416
3439
|
visibleToasts: Na,
|
|
3417
3440
|
style: ce
|
|
3418
|
-
}, Da = p.content && f(p.content) ? ee(
|
|
3441
|
+
}, Da = p.content && f(p.content) ? ee(mt, { ...pe, content: ee(on(p.content)) }) : ee(mt, pe);
|
|
3419
3442
|
return ee("li", { key: p.notificationId, style: { display: "contents" } }, [Da]);
|
|
3420
3443
|
});
|
|
3421
|
-
let
|
|
3422
|
-
return
|
|
3444
|
+
let A = null;
|
|
3445
|
+
return C && (A = ee(
|
|
3423
3446
|
"li",
|
|
3424
3447
|
{
|
|
3425
3448
|
class: "notification__clear-all",
|
|
3426
3449
|
style: {
|
|
3427
3450
|
position: "absolute",
|
|
3428
|
-
[
|
|
3451
|
+
[O.value ? "top" : "bottom"]: "0",
|
|
3429
3452
|
left: "var(--width, 356px)",
|
|
3430
3453
|
"margin-left": "8px",
|
|
3431
3454
|
"list-style": "none",
|
|
@@ -3453,23 +3476,23 @@ const hr = H({
|
|
|
3453
3476
|
class: "notification__toast-group",
|
|
3454
3477
|
"data-expanded": String(w),
|
|
3455
3478
|
"data-position": e.position || "top-center",
|
|
3456
|
-
"data-y-position":
|
|
3479
|
+
"data-y-position": O.value ? "top" : "bottom",
|
|
3457
3480
|
style: {
|
|
3458
|
-
"--front-toast-height": `${
|
|
3481
|
+
"--front-toast-height": `${L.frontHeight}px`,
|
|
3459
3482
|
"--gap": `${Be}px`,
|
|
3460
3483
|
width: "var(--width, 356px)",
|
|
3461
|
-
height: `${
|
|
3484
|
+
height: `${L.groupHeight}px`
|
|
3462
3485
|
},
|
|
3463
3486
|
onMouseenter: r,
|
|
3464
3487
|
onMouseleave: l,
|
|
3465
3488
|
onPointerdown: () => {
|
|
3466
|
-
|
|
3489
|
+
g(!0);
|
|
3467
3490
|
},
|
|
3468
3491
|
onPointerup: () => {
|
|
3469
|
-
|
|
3492
|
+
g(!1);
|
|
3470
3493
|
}
|
|
3471
3494
|
},
|
|
3472
|
-
[...
|
|
3495
|
+
[...m, A]
|
|
3473
3496
|
);
|
|
3474
3497
|
};
|
|
3475
3498
|
}
|
|
@@ -3560,7 +3583,7 @@ function Pr(e) {
|
|
|
3560
3583
|
return localStorage.setItem("redirectAfterLogin", a.fullPath), { name: "Login" };
|
|
3561
3584
|
}
|
|
3562
3585
|
}), e.beforeEach((a, n) => {
|
|
3563
|
-
const { hasAccess: s } =
|
|
3586
|
+
const { hasAccess: s } = st();
|
|
3564
3587
|
if (a.meta.permissions) {
|
|
3565
3588
|
if (s(a.meta.permissions)) return !0;
|
|
3566
3589
|
{
|
|
@@ -3771,7 +3794,7 @@ export {
|
|
|
3771
3794
|
Cd as VcGallery,
|
|
3772
3795
|
Ee as VcHint,
|
|
3773
3796
|
Bn as VcIcon,
|
|
3774
|
-
|
|
3797
|
+
ot as VcImage,
|
|
3775
3798
|
Pd as VcImageTile,
|
|
3776
3799
|
bd as VcImageUpload,
|
|
3777
3800
|
$ as VcInput,
|
|
@@ -3806,7 +3829,7 @@ export {
|
|
|
3806
3829
|
qd as VcSwitch,
|
|
3807
3830
|
Yd as VcTable,
|
|
3808
3831
|
An as VcTextarea,
|
|
3809
|
-
|
|
3832
|
+
mt as VcToast,
|
|
3810
3833
|
yf as VcTooltip,
|
|
3811
3834
|
jd as VcVideo,
|
|
3812
3835
|
Zd as VcWidget,
|
|
@@ -3836,7 +3859,7 @@ export {
|
|
|
3836
3859
|
Vu as createKeyedBackendRegistry,
|
|
3837
3860
|
k as createLogger,
|
|
3838
3861
|
ql as default,
|
|
3839
|
-
|
|
3862
|
+
Et as defineAppModule,
|
|
3840
3863
|
Ml as defineBladeContext,
|
|
3841
3864
|
Cm as defineExtensionPoint,
|
|
3842
3865
|
Qd as detectThemePreset,
|
|
@@ -3919,7 +3942,7 @@ export {
|
|
|
3919
3942
|
Xt as useAsync,
|
|
3920
3943
|
gE as useBadge,
|
|
3921
3944
|
zs as useBeforeUnload,
|
|
3922
|
-
|
|
3945
|
+
ut as useBlade,
|
|
3923
3946
|
zl as useBladeForm,
|
|
3924
3947
|
dc as useBladeLoading,
|
|
3925
3948
|
SE as useBladeMessaging,
|
|
@@ -3959,7 +3982,7 @@ export {
|
|
|
3959
3982
|
hl as useNotificationContext,
|
|
3960
3983
|
me as useNotificationStore,
|
|
3961
3984
|
vl as useNotifications,
|
|
3962
|
-
|
|
3985
|
+
st as usePermissions,
|
|
3963
3986
|
Rn as usePopup,
|
|
3964
3987
|
Fa as useResponsive,
|
|
3965
3988
|
Ac as useScrollArrows,
|