@vc-shell/framework 2.0.0-alpha.12 → 2.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/VcTableAdapter.css +1 -1
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-DdyWhitN.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CSS3Vkmd.js} +921 -924
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-DC948i43.js → VcTableAdapter.vue_vue_type_style_index_0_lang-Cq94XlpC.js} +2717 -2717
- package/dist/chunks/{index-nypcvCTu.js → index-CnM28rry.js} +2 -2
- package/dist/chunks/{index-w6KNzNbs.js → index-DPTivApb.js} +1 -1
- package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-DcqdH5V3.js → vc-toast.vue_vue_type_style_index_0_lang-MXliE87g.js} +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +2 -2
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/useBlade/index.d.ts +1 -1
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/framework.js +1191 -1195
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -3
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +1 -3
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- package/globals-augments.d.ts +33 -0
- package/globals.d.ts +12 -29
- package/package.json +6 -4
- package/shims-vue.d.ts +16 -0
- package/typings/shims-vue.d.ts +38 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as F, computed as
|
|
2
|
-
import { o as zr, s as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { c as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { C as
|
|
8
|
-
import { v as Fr, O as
|
|
9
|
-
import { u as
|
|
10
|
-
import { f as
|
|
1
|
+
import { defineComponent as F, computed as y, onMounted as Je, openBlock as A, createElementBlock as U, normalizeStyle as Te, normalizeClass as q, toDisplayString as pe, markRaw as Jr, createBlock as G, resolveDynamicComponent as Ye, createElementVNode as $, mergeProps as Ce, createCommentVNode as W, resolveComponent as qe, inject as M, unref as L, renderSlot as xe, ref as j, watch as X, nextTick as re, onBeforeUnmount as Ut, toValue as oe, getCurrentInstance as ut, withKeys as wr, withModifiers as It, Teleport as ps, createVNode as V, Transition as Dt, withCtx as me, withDirectives as Bt, Fragment as Xe, renderList as Rt, createTextVNode as Sr, toRef as $r, reactive as ms, createApp as vs, onErrorCaptured as ys, shallowRef as Jt, provide as Ke, vShow as gs, h as bs, warn as ws, createStaticVNode as Ss, onUnmounted as xs } from "vue";
|
|
2
|
+
import { o as zr, s as As, c as Le } from "./vendor-lodash-es-QnNVqiqU.js";
|
|
3
|
+
import { u as Is, a as Cs, o as Es } from "./vendor-vueuse-core-CPOkeLul.js";
|
|
4
|
+
import { u as Os, j as Lr, k as Ts } from "./vendor-vueuse-shared-Byno6iDO.js";
|
|
5
|
+
import { c as Ps, u as Ns } from "./vendor-vue-i18n-BSCeQYoP.js";
|
|
6
|
+
import { useRouter as ks, RouterView as js } from "vue-router";
|
|
7
|
+
import { C as Us } from "./vendor-microsoft-applicationinsights-core-js-DYtaESwI.js";
|
|
8
|
+
import { v as Fr, O as Ds } from "./vendor-vueuse-components-C3DWJalC.js";
|
|
9
|
+
import { u as Bs } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
10
|
+
import { f as Rs, s as Js, o as xr, b as $s } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
11
11
|
import { defineRule as Pe } from "vee-validate";
|
|
12
12
|
import { a as Ar } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
13
|
-
import { _ as
|
|
14
|
-
import { H as
|
|
13
|
+
import { _ as zs } from "./vendor-cypress-signalr-mock-itnm2wpA.js";
|
|
14
|
+
import { H as Ls, L as Fs } from "./vendor-microsoft-signalr-Bgpbb4fW.js";
|
|
15
15
|
import "./ExtensionPoint.vue_vue_type_style_index_0_lang-DM_3_2DK.js";
|
|
16
|
-
import { L as
|
|
17
|
-
const
|
|
16
|
+
import { L as Ms } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
17
|
+
const Gs = /* @__PURE__ */ F({
|
|
18
18
|
__name: "vc-material-icon",
|
|
19
19
|
props: {
|
|
20
20
|
icon: {},
|
|
@@ -24,7 +24,7 @@ const Ws = /* @__PURE__ */ F({
|
|
|
24
24
|
customSize: {}
|
|
25
25
|
},
|
|
26
26
|
setup(n) {
|
|
27
|
-
const e = n, t =
|
|
27
|
+
const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(
|
|
28
28
|
() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0
|
|
29
29
|
);
|
|
30
30
|
return Je(() => {
|
|
@@ -39,7 +39,7 @@ const Ws = /* @__PURE__ */ F({
|
|
|
39
39
|
"aria-hidden": "true"
|
|
40
40
|
}, pe(n.icon), 7));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), Ws = /* @__PURE__ */ F({
|
|
43
43
|
__name: "vc-bootstrap-icon",
|
|
44
44
|
props: {
|
|
45
45
|
icon: {},
|
|
@@ -48,12 +48,12 @@ const Ws = /* @__PURE__ */ F({
|
|
|
48
48
|
customSize: {}
|
|
49
49
|
},
|
|
50
50
|
setup(n) {
|
|
51
|
-
const e = n, t =
|
|
51
|
+
const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(
|
|
52
52
|
() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0
|
|
53
53
|
);
|
|
54
54
|
Je(() => {
|
|
55
55
|
});
|
|
56
|
-
const r =
|
|
56
|
+
const r = y(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
57
57
|
return (i, o) => (A(), U("i", {
|
|
58
58
|
class: q([
|
|
59
59
|
"vc-bootstrap-icon",
|
|
@@ -66,7 +66,7 @@ const Ws = /* @__PURE__ */ F({
|
|
|
66
66
|
}, null, 6));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function qs() {
|
|
70
70
|
return Math.random().toString(36).substring(2, 9);
|
|
71
71
|
}
|
|
72
72
|
const Ir = {
|
|
@@ -75,13 +75,13 @@ const Ir = {
|
|
|
75
75
|
warn: 2,
|
|
76
76
|
error: 3,
|
|
77
77
|
none: 4
|
|
78
|
-
},
|
|
78
|
+
}, Ks = {
|
|
79
79
|
level: "warn",
|
|
80
80
|
prefix: "@vc-shell/framework",
|
|
81
81
|
enabled: !0
|
|
82
82
|
};
|
|
83
83
|
function R(n) {
|
|
84
|
-
const e = { ...
|
|
84
|
+
const e = { ...Ks }, t = n ? `[${e.prefix}#${n}]` : `[${e.prefix}]`, s = (r) => e.enabled ? Ir[r] >= Ir[e.level] : !1;
|
|
85
85
|
return {
|
|
86
86
|
/**
|
|
87
87
|
* Log debug messages (only in development)
|
|
@@ -125,7 +125,7 @@ function R(n) {
|
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const rl = R(), sl = {
|
|
129
129
|
core: R("core"),
|
|
130
130
|
ui: R("ui"),
|
|
131
131
|
shared: R("shared"),
|
|
@@ -147,17 +147,17 @@ class se extends Error {
|
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
class
|
|
150
|
+
class il extends se {
|
|
151
151
|
constructor(e, t) {
|
|
152
152
|
super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
class
|
|
155
|
+
class nl extends se {
|
|
156
156
|
constructor(e, t) {
|
|
157
157
|
super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
class
|
|
160
|
+
class Hs extends se {
|
|
161
161
|
constructor(e, t) {
|
|
162
162
|
super(`${e} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
163
163
|
serviceName: e,
|
|
@@ -165,7 +165,7 @@ class Vs extends se {
|
|
|
165
165
|
}), this.name = "InjectionError";
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
class
|
|
168
|
+
class ol extends se {
|
|
169
169
|
constructor(e, t, s) {
|
|
170
170
|
super(`Failed to register '${e}': ${t}`, "REGISTRATION_ERROR", {
|
|
171
171
|
componentName: e,
|
|
@@ -173,7 +173,7 @@ class ll extends se {
|
|
|
173
173
|
}), this.name = "RegistrationError";
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
class
|
|
176
|
+
class ll extends se {
|
|
177
177
|
constructor(e, t, s) {
|
|
178
178
|
super(e, "BLADE_ERROR", {
|
|
179
179
|
bladeId: t,
|
|
@@ -181,7 +181,7 @@ class ul extends se {
|
|
|
181
181
|
}), this.name = "BladeError";
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
class
|
|
184
|
+
class ul extends se {
|
|
185
185
|
constructor(e, t, s) {
|
|
186
186
|
super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
|
|
187
187
|
moduleId: e,
|
|
@@ -189,11 +189,11 @@ class cl extends se {
|
|
|
189
189
|
}), this.name = "ModuleLoadError";
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Vs(n) {
|
|
193
193
|
return n instanceof se;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function cl(n, e = "UNKNOWN_ERROR") {
|
|
196
|
+
return Vs(n) ? n : n instanceof Error ? new se(n.message, e, {
|
|
197
197
|
originalError: n.name,
|
|
198
198
|
stack: n.stack
|
|
199
199
|
}) : new se(String(n), e);
|
|
@@ -232,7 +232,7 @@ function Ct(n) {
|
|
|
232
232
|
}
|
|
233
233
|
return new we("An unknown error occurred.", String(n), n);
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const Zs = /* @__PURE__ */ F({
|
|
236
236
|
__name: "vc-lucide-icon",
|
|
237
237
|
props: {
|
|
238
238
|
icon: {},
|
|
@@ -242,14 +242,14 @@ const Ys = /* @__PURE__ */ F({
|
|
|
242
242
|
customSize: {}
|
|
243
243
|
},
|
|
244
244
|
setup(n) {
|
|
245
|
-
const e = R("vc-lucide-icon"), t = n, s =
|
|
245
|
+
const e = R("vc-lucide-icon"), t = n, s = y(() => typeof t.customSize == "number" && t.customSize > 0), r = y(() => {
|
|
246
246
|
if (!t.icon) return "HelpCircleIcon";
|
|
247
247
|
let u = t.icon;
|
|
248
248
|
return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
|
|
249
|
-
}), i =
|
|
250
|
-
const u = r.value, c =
|
|
249
|
+
}), i = y(() => {
|
|
250
|
+
const u = r.value, c = Ms[u];
|
|
251
251
|
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : Jr(c);
|
|
252
|
-
}), o =
|
|
252
|
+
}), o = y(() => s.value && t.customSize ? {
|
|
253
253
|
width: `${t.customSize}px`,
|
|
254
254
|
height: `${t.customSize}px`
|
|
255
255
|
} : {});
|
|
@@ -270,7 +270,7 @@ const Ys = /* @__PURE__ */ F({
|
|
|
270
270
|
$("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
271
271
|
])], 2));
|
|
272
272
|
}
|
|
273
|
-
}),
|
|
273
|
+
}), Ys = /* @__PURE__ */ F({
|
|
274
274
|
__name: "vc-fontawesome-icon",
|
|
275
275
|
props: {
|
|
276
276
|
icon: {},
|
|
@@ -279,12 +279,12 @@ const Ys = /* @__PURE__ */ F({
|
|
|
279
279
|
customSize: {}
|
|
280
280
|
},
|
|
281
281
|
setup(n) {
|
|
282
|
-
const e = n, t =
|
|
282
|
+
const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(
|
|
283
283
|
() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0
|
|
284
284
|
);
|
|
285
285
|
Je(() => {
|
|
286
286
|
});
|
|
287
|
-
const r =
|
|
287
|
+
const r = y(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
|
|
288
288
|
return (i, o) => (A(), U("i", {
|
|
289
289
|
class: q([
|
|
290
290
|
"vc-fa-icon",
|
|
@@ -296,7 +296,7 @@ const Ys = /* @__PURE__ */ F({
|
|
|
296
296
|
"aria-hidden": "true"
|
|
297
297
|
}, null, 6));
|
|
298
298
|
}
|
|
299
|
-
}),
|
|
299
|
+
}), Xs = ["xlink:href"], Qs = /* @__PURE__ */ F({
|
|
300
300
|
inheritAttrs: !1,
|
|
301
301
|
__name: "vc-svg-icon",
|
|
302
302
|
props: {
|
|
@@ -308,7 +308,7 @@ const Ys = /* @__PURE__ */ F({
|
|
|
308
308
|
strokeWidth: {}
|
|
309
309
|
},
|
|
310
310
|
setup(n) {
|
|
311
|
-
const e = n, t =
|
|
311
|
+
const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(() => {
|
|
312
312
|
if (e.icon.startsWith("/") || e.icon.includes("://") || e.icon.startsWith("#"))
|
|
313
313
|
return e.icon;
|
|
314
314
|
const i = e.icon.indexOf("#");
|
|
@@ -317,7 +317,7 @@ const Ys = /* @__PURE__ */ F({
|
|
|
317
317
|
return `${e.basePath}/${o}${u}`;
|
|
318
318
|
}
|
|
319
319
|
return `${e.basePath}/${e.icon}`;
|
|
320
|
-
}), r =
|
|
320
|
+
}), r = y(() => {
|
|
321
321
|
const i = {};
|
|
322
322
|
return e.customSize && (i.width = `${e.customSize}px`, i.height = `${e.customSize}px`), e.strokeWidth && (i.strokeWidth = `${e.strokeWidth}`), i;
|
|
323
323
|
});
|
|
@@ -329,10 +329,10 @@ const Ys = /* @__PURE__ */ F({
|
|
|
329
329
|
s.value ? (A(), U("use", {
|
|
330
330
|
key: 0,
|
|
331
331
|
"xlink:href": s.value
|
|
332
|
-
}, null, 8,
|
|
332
|
+
}, null, 8, Xs)) : W("", !0)
|
|
333
333
|
], 16));
|
|
334
334
|
}
|
|
335
|
-
}),
|
|
335
|
+
}), _s = ["aria-hidden", "aria-label", "role"], ie = /* @__PURE__ */ F({
|
|
336
336
|
__name: "vc-icon",
|
|
337
337
|
props: {
|
|
338
338
|
icon: { default: "lucide-square" },
|
|
@@ -355,25 +355,25 @@ const Ys = /* @__PURE__ */ F({
|
|
|
355
355
|
xl: 22,
|
|
356
356
|
xxl: 30,
|
|
357
357
|
xxxl: 64
|
|
358
|
-
}, s =
|
|
358
|
+
}, s = y(() => typeof e.icon != "string" ? "custom" : e.icon.startsWith("fa-") || e.icon.includes("fa-") ? "fontawesome" : e.icon.startsWith("bi-") ? "bootstrap" : e.icon.startsWith("lucide-") ? "lucide" : e.icon.startsWith("material-") ? "material" : e.icon.startsWith("svg:") ? "svg" : e.icon.endsWith("Icon") ? "lucide" : "custom"), r = y(() => {
|
|
359
359
|
if (typeof e.icon != "string")
|
|
360
360
|
return e.icon;
|
|
361
361
|
if (s.value === "material" && e.icon.startsWith("material-"))
|
|
362
362
|
return e.icon.replace(/^material-/, "");
|
|
363
363
|
if (s.value === "lucide" && e.icon.startsWith("lucide-")) {
|
|
364
|
-
const
|
|
365
|
-
return
|
|
364
|
+
const g = e.icon.replace(/^lucide-/, "");
|
|
365
|
+
return g.endsWith("Icon") ? g : `${g}Icon`;
|
|
366
366
|
}
|
|
367
367
|
return e.icon;
|
|
368
|
-
}), i =
|
|
368
|
+
}), i = y(() => s.value === "material"), o = y(() => s.value === "bootstrap"), u = y(() => s.value === "lucide"), c = y(() => s.value === "fontawesome"), h = y(() => {
|
|
369
369
|
if (typeof e.icon != "string")
|
|
370
370
|
return !0;
|
|
371
371
|
if (["fontawesome", "bootstrap"].includes(s.value) || s.value === "material" && e.icon.startsWith("material-") || s.value === "lucide" && e.icon.startsWith("lucide-"))
|
|
372
372
|
return !1;
|
|
373
373
|
if (u.value)
|
|
374
374
|
try {
|
|
375
|
-
const
|
|
376
|
-
return qe(
|
|
375
|
+
const g = typeof r.value == "string" ? r.value : String(r.value);
|
|
376
|
+
return qe(g) !== g;
|
|
377
377
|
} catch {
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
@@ -382,23 +382,23 @@ const Ys = /* @__PURE__ */ F({
|
|
|
382
382
|
} catch {
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
|
-
}), a =
|
|
385
|
+
}), a = y(() => {
|
|
386
386
|
if (typeof e.icon != "string")
|
|
387
387
|
return Jr(e.icon);
|
|
388
388
|
if (["fontawesome", "bootstrap", "material"].includes(s.value))
|
|
389
389
|
return "i";
|
|
390
390
|
try {
|
|
391
|
-
const
|
|
392
|
-
return N !==
|
|
391
|
+
const g = typeof r.value == "string" ? r.value : String(r.value), N = qe(g);
|
|
392
|
+
return N !== g ? N : "i";
|
|
393
393
|
} catch {
|
|
394
394
|
return "i";
|
|
395
395
|
}
|
|
396
|
-
}), m =
|
|
397
|
-
const
|
|
398
|
-
return h.value && e.customSize && (
|
|
399
|
-
}),
|
|
396
|
+
}), m = y(() => i.value ? Gs : o.value ? Ws : u.value ? Zs : c.value ? Ys : T.value ? Qs : h.value ? a.value : "i"), d = y(() => e.customSize ? e.customSize : t[e.size]), p = y(() => {
|
|
397
|
+
const g = {};
|
|
398
|
+
return h.value && e.customSize && (g.width = `${e.customSize}px`, g.height = `${e.customSize}px`), g;
|
|
399
|
+
}), b = y(() => e.customSize ? {
|
|
400
400
|
fontSize: `${e.customSize}px`
|
|
401
|
-
} : {}),
|
|
401
|
+
} : {}), O = y(() => i.value ? {
|
|
402
402
|
icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
|
|
403
403
|
size: e.size,
|
|
404
404
|
variant: e.variant,
|
|
@@ -427,8 +427,8 @@ const Ys = /* @__PURE__ */ F({
|
|
|
427
427
|
variant: e.variant,
|
|
428
428
|
customSize: e.customSize
|
|
429
429
|
// Set custom size without scaling
|
|
430
|
-
} :
|
|
431
|
-
icon:
|
|
430
|
+
} : T.value ? {
|
|
431
|
+
icon: x.value,
|
|
432
432
|
size: e.size,
|
|
433
433
|
variant: e.variant,
|
|
434
434
|
customSize: e.customSize,
|
|
@@ -438,15 +438,15 @@ const Ys = /* @__PURE__ */ F({
|
|
|
438
438
|
width: d.value,
|
|
439
439
|
height: d.value,
|
|
440
440
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
441
|
-
} : {}),
|
|
442
|
-
return (
|
|
441
|
+
} : {}), T = y(() => s.value === "svg"), x = y(() => !T.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
442
|
+
return (g, N) => n.useContainer ? (A(), U("div", Ce({
|
|
443
443
|
key: 0,
|
|
444
444
|
class: ["vc-icon-container", `vc-icon-container--${n.size}`],
|
|
445
|
-
style:
|
|
445
|
+
style: b.value,
|
|
446
446
|
"aria-hidden": n.ariaLabel ? void 0 : "true",
|
|
447
447
|
"aria-label": n.ariaLabel || void 0,
|
|
448
448
|
role: n.ariaLabel ? "img" : void 0
|
|
449
|
-
},
|
|
449
|
+
}, g.$attrs), [
|
|
450
450
|
(A(), G(Ye(m.value), Ce({
|
|
451
451
|
class: [
|
|
452
452
|
"vc-icon",
|
|
@@ -455,8 +455,8 @@ const Ys = /* @__PURE__ */ F({
|
|
|
455
455
|
!h.value && !i.value && !u.value && !o.value && !c.value ? n.icon.toLowerCase() : ""
|
|
456
456
|
],
|
|
457
457
|
style: p.value
|
|
458
|
-
},
|
|
459
|
-
], 16,
|
|
458
|
+
}, O.value), null, 16, ["class", "style"]))
|
|
459
|
+
], 16, _s)) : (A(), G(Ye(m.value), Ce({
|
|
460
460
|
key: 1,
|
|
461
461
|
class: [
|
|
462
462
|
"vc-icon",
|
|
@@ -468,12 +468,12 @@ const Ys = /* @__PURE__ */ F({
|
|
|
468
468
|
"aria-hidden": n.ariaLabel ? void 0 : "true",
|
|
469
469
|
"aria-label": n.ariaLabel || void 0,
|
|
470
470
|
role: n.ariaLabel ? "img" : void 0
|
|
471
|
-
}, { ...
|
|
471
|
+
}, { ...O.value, ...g.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
472
472
|
}
|
|
473
|
-
}),
|
|
473
|
+
}), ei = Symbol("vc-button-group"), ti = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], ri = {
|
|
474
474
|
key: 2,
|
|
475
475
|
class: "vc-button__title"
|
|
476
|
-
},
|
|
476
|
+
}, si = /* @__PURE__ */ F({
|
|
477
477
|
__name: "vc-button",
|
|
478
478
|
props: {
|
|
479
479
|
icon: {},
|
|
@@ -493,10 +493,10 @@ const Ys = /* @__PURE__ */ F({
|
|
|
493
493
|
const t = {
|
|
494
494
|
base: "default",
|
|
495
495
|
xs: "sm"
|
|
496
|
-
}, s = n, r = e, i = M(
|
|
496
|
+
}, s = n, r = e, i = M(ei, null), o = y(() => {
|
|
497
497
|
const h = i?.size?.value ?? s.size;
|
|
498
498
|
return t[h] ?? h;
|
|
499
|
-
}), u =
|
|
499
|
+
}), u = y(() => [
|
|
500
500
|
"vc-button",
|
|
501
501
|
{
|
|
502
502
|
[`vc-button-${s.variant}`]: s.variant,
|
|
@@ -530,10 +530,10 @@ const Ys = /* @__PURE__ */ F({
|
|
|
530
530
|
icon: n.icon,
|
|
531
531
|
size: n.iconSize
|
|
532
532
|
}, null, 8, ["class", "icon", "size"])) : W("", !0),
|
|
533
|
-
h.$slots.default ? (A(), U("span",
|
|
533
|
+
h.$slots.default ? (A(), U("span", ri, [
|
|
534
534
|
xe(h.$slots, "default")
|
|
535
535
|
])) : W("", !0)
|
|
536
|
-
], 10,
|
|
536
|
+
], 10, ti));
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
function Cr(n) {
|
|
@@ -546,7 +546,7 @@ function gt(n) {
|
|
|
546
546
|
const e = getComputedStyle(n), t = e.columnGap || e.gap || "0px";
|
|
547
547
|
return parseFloat(t) || 0;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function ii(n) {
|
|
550
550
|
const {
|
|
551
551
|
containerRef: e,
|
|
552
552
|
items: t,
|
|
@@ -554,23 +554,23 @@ function ni(n) {
|
|
|
554
554
|
moreButtonWidth: r,
|
|
555
555
|
calculationStrategy: i = "forward",
|
|
556
556
|
initialItemWidth: o = 50
|
|
557
|
-
} = n, { width: u } =
|
|
558
|
-
let
|
|
559
|
-
const
|
|
557
|
+
} = n, { width: u } = Is(e), c = j(/* @__PURE__ */ new Map()), h = j(null), a = j(0), m = j([]), d = j([]), p = y(() => d.value.length > 0);
|
|
558
|
+
let b = null;
|
|
559
|
+
const O = /* @__PURE__ */ new Set(), T = () => h.value ?? r, x = () => {
|
|
560
560
|
if (!e.value) return;
|
|
561
561
|
const f = e.value.querySelector("[data-more-button]");
|
|
562
562
|
if (f) {
|
|
563
563
|
const v = Cr(f);
|
|
564
564
|
v > 0 && (h.value = v);
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, g = (f) => {
|
|
567
567
|
const v = s(f);
|
|
568
568
|
return c.value.get(v) || o;
|
|
569
569
|
}, N = (f, v) => {
|
|
570
570
|
let w = 0;
|
|
571
571
|
const I = [], D = [], J = a.value;
|
|
572
572
|
for (const K of f) {
|
|
573
|
-
const ue =
|
|
573
|
+
const ue = g(K), ce = I.length > 0 ? J : 0;
|
|
574
574
|
w + ce + ue <= v ? (I.push(K), w += ce + ue) : D.push(K);
|
|
575
575
|
}
|
|
576
576
|
return { visible: I, hidden: D };
|
|
@@ -584,13 +584,13 @@ function ni(n) {
|
|
|
584
584
|
const f = a.value, v = i === "reverse" ? [...t.value].reverse() : t.value;
|
|
585
585
|
let w = N(v, u.value);
|
|
586
586
|
if (w.hidden.length > 0) {
|
|
587
|
-
const I =
|
|
587
|
+
const I = T(), D = w.visible.length > 0 ? f : 0;
|
|
588
588
|
w = N(v, u.value - I - D);
|
|
589
589
|
}
|
|
590
590
|
i === "reverse" ? (m.value = w.visible.reverse(), d.value = w.hidden.reverse()) : (m.value = w.visible, d.value = w.hidden);
|
|
591
|
-
},
|
|
591
|
+
}, E = () => {
|
|
592
592
|
if (!e.value) return;
|
|
593
|
-
a.value = gt(e.value),
|
|
593
|
+
a.value = gt(e.value), x(), e.value.querySelectorAll("[data-item-key]").forEach((v) => {
|
|
594
594
|
const w = v.getAttribute("data-item-key");
|
|
595
595
|
if (w) {
|
|
596
596
|
const I = Cr(v);
|
|
@@ -601,8 +601,8 @@ function ni(n) {
|
|
|
601
601
|
const f = new Set(t.value.map(s));
|
|
602
602
|
for (const v of c.value.keys())
|
|
603
603
|
f.has(v) || c.value.delete(v);
|
|
604
|
-
},
|
|
605
|
-
|
|
604
|
+
}, S = () => {
|
|
605
|
+
b || (b = new ResizeObserver((f) => {
|
|
606
606
|
let v = !1;
|
|
607
607
|
for (const w of f) {
|
|
608
608
|
const I = w.target;
|
|
@@ -617,13 +617,13 @@ function ni(n) {
|
|
|
617
617
|
if (!e.value) return;
|
|
618
618
|
const f = e.value.querySelectorAll("[data-item-key]"), v = /* @__PURE__ */ new Set();
|
|
619
619
|
f.forEach((w) => {
|
|
620
|
-
v.add(w),
|
|
620
|
+
v.add(w), O.has(w) || (b?.observe(w), O.add(w));
|
|
621
621
|
});
|
|
622
|
-
for (const w of
|
|
623
|
-
v.has(w) || (
|
|
624
|
-
|
|
622
|
+
for (const w of O)
|
|
623
|
+
v.has(w) || (b?.unobserve(w), O.delete(w));
|
|
624
|
+
E();
|
|
625
625
|
});
|
|
626
|
-
}, k =
|
|
626
|
+
}, k = Os(() => {
|
|
627
627
|
e.value && (a.value = gt(e.value)), C();
|
|
628
628
|
}, 50);
|
|
629
629
|
return X(u, () => {
|
|
@@ -631,41 +631,41 @@ function ni(n) {
|
|
|
631
631
|
}), X(p, (f) => {
|
|
632
632
|
f && re(() => {
|
|
633
633
|
const v = h.value;
|
|
634
|
-
|
|
634
|
+
x(), h.value !== null && h.value !== v && C();
|
|
635
635
|
});
|
|
636
636
|
}), X(
|
|
637
637
|
() => t.value.map(s).join("\0"),
|
|
638
638
|
() => {
|
|
639
639
|
P(), re(() => {
|
|
640
|
-
|
|
640
|
+
S();
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
), Je(() => {
|
|
644
644
|
re(() => {
|
|
645
|
-
|
|
645
|
+
E(), S();
|
|
646
646
|
});
|
|
647
647
|
}), Ut(() => {
|
|
648
|
-
|
|
648
|
+
b && (b.disconnect(), b = null), O.clear();
|
|
649
649
|
}), {
|
|
650
650
|
visibleItems: m,
|
|
651
651
|
hiddenItems: d,
|
|
652
652
|
showMoreButton: p,
|
|
653
653
|
recalculate: () => {
|
|
654
654
|
re(() => {
|
|
655
|
-
|
|
655
|
+
E();
|
|
656
656
|
});
|
|
657
657
|
},
|
|
658
658
|
// Export function for updating observer
|
|
659
|
-
updateObserver:
|
|
659
|
+
updateObserver: S
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const s =
|
|
662
|
+
function ni(n, e, t = {}) {
|
|
663
|
+
const s = y(() => oe(t.placement) ?? "bottom"), r = y(() => oe(t.strategy) ?? "absolute"), i = y(() => {
|
|
664
664
|
const c = oe(t.middleware);
|
|
665
665
|
if (c?.length)
|
|
666
666
|
return c;
|
|
667
667
|
const h = [];
|
|
668
|
-
oe(t.enableFlip) !== !1 && h.push(
|
|
668
|
+
oe(t.enableFlip) !== !1 && h.push(Rs({ padding: t.shiftPadding ?? 8 })), oe(t.enableShift) !== !1 && h.push(Js({ padding: t.shiftPadding ?? 8 }));
|
|
669
669
|
const a = oe(t.offset);
|
|
670
670
|
return typeof a == "number" ? h.push(xr(a)) : h.push(
|
|
671
671
|
xr({
|
|
@@ -674,12 +674,12 @@ function oi(n, e, t = {}) {
|
|
|
674
674
|
alignmentAxis: a?.alignmentAxis
|
|
675
675
|
})
|
|
676
676
|
), h;
|
|
677
|
-
}), o =
|
|
677
|
+
}), o = Bs(n, e, {
|
|
678
678
|
placement: s,
|
|
679
679
|
strategy: r,
|
|
680
|
-
whileElementsMounted: oe(t.autoUpdate) === !1 ? void 0 :
|
|
680
|
+
whileElementsMounted: oe(t.autoUpdate) === !1 ? void 0 : $s,
|
|
681
681
|
middleware: i
|
|
682
|
-
}), u =
|
|
682
|
+
}), u = y(() => ({
|
|
683
683
|
position: r.value,
|
|
684
684
|
top: `${o.y.value ?? 0}px`,
|
|
685
685
|
left: `${o.x.value ?? 0}px`
|
|
@@ -691,11 +691,11 @@ function oi(n, e, t = {}) {
|
|
|
691
691
|
resolvedStrategy: r
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
const $t = Symbol("BladeStack"), Mr = Symbol("BladeMessaging"), zt = Symbol("BladeDescriptor"),
|
|
695
|
-
function
|
|
696
|
-
const e = M(
|
|
694
|
+
const $t = Symbol("BladeStack"), Mr = Symbol("BladeMessaging"), zt = Symbol("BladeDescriptor"), al = Symbol("BladeData"), hl = Symbol("NavigationViewLocation"), oi = Symbol("BladeInstance"), li = Symbol("BladeBackButton"), fl = Symbol("NotificationTemplates"), ui = Symbol("NotificationStore"), dl = Symbol("WidgetService"), pl = Symbol("DashboardService"), ml = Symbol("GlobalSearch"), vl = Symbol("MenuService"), yl = Symbol("SettingsMenuService"), gl = Symbol("AppBarWidgetService"), bl = Symbol("AppBarMobileButtonsService"), ci = Symbol("LanguageService"), ai = Symbol("ToolbarService"), wl = Symbol("WidgetId"), Sl = Symbol("DynamicModules"), xl = Symbol("ModulesReady"), Al = Symbol("ModulesLoadError"), hi = Symbol("AppRootElement"), fi = Symbol("EmbeddedMode"), Il = Symbol("ShellIndicators"), ct = Symbol("AiAgentService"), Gr = Symbol("IsMobile"), Cl = Symbol("IsDesktop"), El = Symbol("IsPhone"), Ol = Symbol("IsTablet"), Tl = Symbol("IsTouch"), Pl = Symbol("BladeRoutes"), Nl = Symbol("InternalRoutes"), kl = Symbol("CloseSettingsMenu"), jl = Symbol("BladeContext");
|
|
695
|
+
function di(n = {}) {
|
|
696
|
+
const e = M(hi, void 0);
|
|
697
697
|
return {
|
|
698
|
-
teleportTarget:
|
|
698
|
+
teleportTarget: y(() => {
|
|
699
699
|
const s = n.to ? oe(n.to) : void 0;
|
|
700
700
|
if (s)
|
|
701
701
|
return s;
|
|
@@ -706,7 +706,7 @@ function mi(n = {}) {
|
|
|
706
706
|
})
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
const
|
|
709
|
+
const pi = ["title"], mi = ["title"], vi = /* @__PURE__ */ F({
|
|
710
710
|
__name: "vc-breadcrumbs-item",
|
|
711
711
|
props: {
|
|
712
712
|
current: { type: Boolean },
|
|
@@ -718,7 +718,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
718
718
|
},
|
|
719
719
|
emits: ["click"],
|
|
720
720
|
setup(n, { emit: e }) {
|
|
721
|
-
const t = n, s = e, r =
|
|
721
|
+
const t = n, s = e, r = y(() => oe(t.title) ?? "");
|
|
722
722
|
function i() {
|
|
723
723
|
t.current || (t.clickHandler && typeof t.clickHandler == "function" ? t.clickHandler(t.id) : s("click"));
|
|
724
724
|
}
|
|
@@ -736,7 +736,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
736
736
|
$("span", {
|
|
737
737
|
class: "vc-breadcrumbs-item__title",
|
|
738
738
|
title: r.value
|
|
739
|
-
}, pe(r.value), 9,
|
|
739
|
+
}, pe(r.value), 9, pi)
|
|
740
740
|
], 2)) : (A(), U("button", {
|
|
741
741
|
key: 1,
|
|
742
742
|
type: "button",
|
|
@@ -752,16 +752,16 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
752
752
|
$("span", {
|
|
753
753
|
class: "vc-breadcrumbs-item__title",
|
|
754
754
|
title: r.value
|
|
755
|
-
}, pe(r.value), 9,
|
|
755
|
+
}, pe(r.value), 9, mi)
|
|
756
756
|
], 2));
|
|
757
757
|
}
|
|
758
|
-
}),
|
|
758
|
+
}), yi = { class: "vc-dropdown" }, gi = ["aria-expanded", "aria-haspopup", "onKeydown"], bi = ["role", "aria-activedescendant"], wi = {
|
|
759
759
|
key: 0,
|
|
760
760
|
class: "vc-dropdown__items-container"
|
|
761
|
-
},
|
|
761
|
+
}, Si = ["id", "role", "aria-selected", "onClick"], xi = {
|
|
762
762
|
key: 1,
|
|
763
763
|
class: "vc-dropdown__empty"
|
|
764
|
-
},
|
|
764
|
+
}, Ai = /* @__PURE__ */ F({
|
|
765
765
|
__name: "vc-dropdown",
|
|
766
766
|
props: {
|
|
767
767
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -790,33 +790,33 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
790
790
|
},
|
|
791
791
|
emits: ["update:modelValue", "item-click", "open", "close"],
|
|
792
792
|
setup(n, { emit: e }) {
|
|
793
|
-
const t = n, s = e, o = `vc-dropdown-${ut()?.uid ?? Math.round(Math.random() * 1e4)}`, u = M(
|
|
794
|
-
to:
|
|
795
|
-
}), d =
|
|
793
|
+
const t = n, s = e, o = `vc-dropdown-${ut()?.uid ?? Math.round(Math.random() * 1e4)}`, u = M(Gr, j(!1)), c = j(null), h = j(null), a = j(-1), { teleportTarget: m } = di({
|
|
794
|
+
to: y(() => t.teleportTo)
|
|
795
|
+
}), d = y(() => t.teleport ?? t.floating), p = y({
|
|
796
796
|
get: () => t.modelValue,
|
|
797
797
|
set: (B) => s("update:modelValue", B)
|
|
798
|
-
}), { x:
|
|
799
|
-
placement:
|
|
800
|
-
strategy:
|
|
801
|
-
offset:
|
|
802
|
-
autoUpdate:
|
|
803
|
-
}),
|
|
798
|
+
}), { x: b, y: O, resolvedPlacement: T, resolvedStrategy: x } = ni(c, h, {
|
|
799
|
+
placement: y(() => t.placement),
|
|
800
|
+
strategy: y(() => t.floating ? "fixed" : "absolute"),
|
|
801
|
+
offset: y(() => t.offset),
|
|
802
|
+
autoUpdate: y(() => t.floating)
|
|
803
|
+
}), g = y(() => [
|
|
804
804
|
{
|
|
805
805
|
"vc-dropdown__dropdown--mobile": u.value,
|
|
806
806
|
"vc-dropdown__dropdown--floating": t.floating
|
|
807
807
|
},
|
|
808
808
|
`vc-dropdown__dropdown--${t.variant}`,
|
|
809
|
-
`vc-dropdown__dropdown--${
|
|
810
|
-
]), N =
|
|
811
|
-
position:
|
|
812
|
-
top: `${
|
|
813
|
-
left: `${
|
|
809
|
+
`vc-dropdown__dropdown--${T.value}`
|
|
810
|
+
]), N = y(() => t.floating ? {
|
|
811
|
+
position: x.value,
|
|
812
|
+
top: `${O.value ?? 0}px`,
|
|
813
|
+
left: `${b.value ?? 0}px`,
|
|
814
814
|
zIndex: t.zIndex,
|
|
815
815
|
width: "max-content"
|
|
816
|
-
} : {}), C =
|
|
816
|
+
} : {}), C = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), E = y(() => t.role === "listbox" ? "option" : "menuitem"), P = y(() => {
|
|
817
817
|
if (!(a.value < 0 || a.value >= t.items.length))
|
|
818
818
|
return f(a.value);
|
|
819
|
-
}),
|
|
819
|
+
}), S = [
|
|
820
820
|
() => {
|
|
821
821
|
t.closeOnClickOutside && D("outside");
|
|
822
822
|
},
|
|
@@ -911,7 +911,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
911
911
|
{ deep: !0 }
|
|
912
912
|
), Ut(() => {
|
|
913
913
|
document.removeEventListener("keydown", yt);
|
|
914
|
-
}), (B, _) => (A(), U("div",
|
|
914
|
+
}), (B, _) => (A(), U("div", yi, [
|
|
915
915
|
B.$slots.trigger ? (A(), U("div", {
|
|
916
916
|
key: 0,
|
|
917
917
|
ref_key: "referenceEl",
|
|
@@ -933,7 +933,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
933
933
|
open: w,
|
|
934
934
|
close: I
|
|
935
935
|
})
|
|
936
|
-
], 40,
|
|
936
|
+
], 40, gi)) : W("", !0),
|
|
937
937
|
(A(), G(ps, {
|
|
938
938
|
to: L(m),
|
|
939
939
|
defer: "",
|
|
@@ -949,7 +949,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
949
949
|
id: o,
|
|
950
950
|
ref_key: "floatingEl",
|
|
951
951
|
ref: h,
|
|
952
|
-
class: q(["vc-dropdown__dropdown",
|
|
952
|
+
class: q(["vc-dropdown__dropdown", g.value]),
|
|
953
953
|
style: Te({
|
|
954
954
|
maxHeight: C.value,
|
|
955
955
|
...N.value
|
|
@@ -966,7 +966,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
966
966
|
items: n.items,
|
|
967
967
|
close: I
|
|
968
968
|
}, () => [
|
|
969
|
-
n.items.length ? (A(), U("div",
|
|
969
|
+
n.items.length ? (A(), U("div", wi, [
|
|
970
970
|
(A(!0), U(Xe, null, Rt(n.items, (ne, Ne) => (A(), U("div", {
|
|
971
971
|
id: f(Ne),
|
|
972
972
|
key: v(ne, Ne),
|
|
@@ -976,9 +976,9 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
976
976
|
"vc-dropdown__item--active": n.isItemActive?.(ne),
|
|
977
977
|
"vc-dropdown__item--focused": a.value === Ne
|
|
978
978
|
}]),
|
|
979
|
-
role:
|
|
979
|
+
role: E.value,
|
|
980
980
|
"aria-selected": n.role === "listbox" ? !!n.isItemActive?.(ne) : void 0,
|
|
981
|
-
onClick: (
|
|
981
|
+
onClick: (zo) => K(ne, Ne)
|
|
982
982
|
}, [
|
|
983
983
|
xe(B.$slots, "item", {
|
|
984
984
|
item: ne,
|
|
@@ -986,16 +986,16 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
986
986
|
}, () => [
|
|
987
987
|
Sr(pe(n.itemText?.(ne)), 1)
|
|
988
988
|
])
|
|
989
|
-
], 10,
|
|
990
|
-
])) : (A(), U("div",
|
|
989
|
+
], 10, Si))), 128))
|
|
990
|
+
])) : (A(), U("div", xi, [
|
|
991
991
|
xe(B.$slots, "empty", {}, () => [
|
|
992
992
|
Sr(pe(n.emptyText), 1)
|
|
993
993
|
])
|
|
994
994
|
]))
|
|
995
995
|
])
|
|
996
996
|
], 2)
|
|
997
|
-
], 46,
|
|
998
|
-
[L(Fr),
|
|
997
|
+
], 46, bi)), [
|
|
998
|
+
[L(Fr), S]
|
|
999
999
|
]) : W("", !0)
|
|
1000
1000
|
]),
|
|
1001
1001
|
_: 3
|
|
@@ -1003,10 +1003,10 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1003
1003
|
], 8, ["to", "disabled"]))
|
|
1004
1004
|
]));
|
|
1005
1005
|
}
|
|
1006
|
-
}),
|
|
1006
|
+
}), Ii = {
|
|
1007
1007
|
key: 2,
|
|
1008
1008
|
class: "vc-dropdown-item__icon-placeholder"
|
|
1009
|
-
},
|
|
1009
|
+
}, Ci = { class: "vc-dropdown-item__title" }, Ei = /* @__PURE__ */ F({
|
|
1010
1010
|
__name: "VcDropdownItem",
|
|
1011
1011
|
props: {
|
|
1012
1012
|
title: {},
|
|
@@ -1031,19 +1031,19 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1031
1031
|
icon: n.icon,
|
|
1032
1032
|
size: "xs",
|
|
1033
1033
|
class: "vc-dropdown-item__icon"
|
|
1034
|
-
}, null, 8, ["icon"])) : (A(), U("span",
|
|
1035
|
-
$("span",
|
|
1034
|
+
}, null, 8, ["icon"])) : (A(), U("span", Ii)),
|
|
1035
|
+
$("span", Ci, pe(n.title), 1)
|
|
1036
1036
|
], 2));
|
|
1037
1037
|
}
|
|
1038
|
-
}),
|
|
1038
|
+
}), Oi = {
|
|
1039
1039
|
key: 0,
|
|
1040
1040
|
"aria-label": "Breadcrumb",
|
|
1041
1041
|
class: "vc-breadcrumbs"
|
|
1042
|
-
},
|
|
1042
|
+
}, Ti = ["data-item-key"], Pi = {
|
|
1043
1043
|
key: 0,
|
|
1044
1044
|
class: "vc-breadcrumbs__item-separator",
|
|
1045
1045
|
"aria-hidden": "true"
|
|
1046
|
-
},
|
|
1046
|
+
}, Ni = 36, ki = 60, ji = /* @__PURE__ */ F({
|
|
1047
1047
|
__name: "vc-breadcrumbs",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
items: { default: () => [] },
|
|
@@ -1052,14 +1052,14 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1052
1052
|
collapsed: { type: Boolean, default: !1 }
|
|
1053
1053
|
},
|
|
1054
1054
|
setup(n) {
|
|
1055
|
-
const e = n, t = j(null), s = j(!1), r =
|
|
1055
|
+
const e = n, t = j(null), s = j(!1), r = ii({
|
|
1056
1056
|
containerRef: t,
|
|
1057
1057
|
items: $r(e, "items"),
|
|
1058
1058
|
getItemKey: (m) => m.id,
|
|
1059
|
-
moreButtonWidth:
|
|
1059
|
+
moreButtonWidth: Ni,
|
|
1060
1060
|
calculationStrategy: "reverse",
|
|
1061
|
-
initialItemWidth:
|
|
1062
|
-
}), i =
|
|
1061
|
+
initialItemWidth: ki
|
|
1062
|
+
}), i = y(() => e.collapsed ? [] : r.visibleItems.value), o = y(() => e.collapsed ? e.items : r.hiddenItems.value), u = y(() => o.value.length > 0), c = r.recalculate;
|
|
1063
1063
|
function h() {
|
|
1064
1064
|
s.value = !s.value;
|
|
1065
1065
|
}
|
|
@@ -1068,7 +1068,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1068
1068
|
}
|
|
1069
1069
|
return re(c), (m, d) => {
|
|
1070
1070
|
const p = qe("VcButton");
|
|
1071
|
-
return n.items && n.items.length ? (A(), U("nav",
|
|
1071
|
+
return n.items && n.items.length ? (A(), U("nav", Oi, [
|
|
1072
1072
|
$("ol", {
|
|
1073
1073
|
ref_key: "contentRef",
|
|
1074
1074
|
ref: t,
|
|
@@ -1076,7 +1076,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1076
1076
|
"vc-breadcrumbs__content--separated": n.separated
|
|
1077
1077
|
}])
|
|
1078
1078
|
}, [
|
|
1079
|
-
u.value ? (A(), G(L(
|
|
1079
|
+
u.value ? (A(), G(L(Ai), {
|
|
1080
1080
|
key: 0,
|
|
1081
1081
|
items: o.value,
|
|
1082
1082
|
"model-value": s.value,
|
|
@@ -1087,12 +1087,12 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1087
1087
|
mainAxis: 10
|
|
1088
1088
|
},
|
|
1089
1089
|
onItemClick: a,
|
|
1090
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1090
|
+
"onUpdate:modelValue": d[0] || (d[0] = (b) => s.value = b)
|
|
1091
1091
|
}, {
|
|
1092
|
-
trigger: me(({ isActive:
|
|
1092
|
+
trigger: me(({ isActive: b }) => [
|
|
1093
1093
|
xe(m.$slots, "trigger", {
|
|
1094
1094
|
click: h,
|
|
1095
|
-
isActive:
|
|
1095
|
+
isActive: b
|
|
1096
1096
|
}, () => [
|
|
1097
1097
|
V(p, {
|
|
1098
1098
|
text: "",
|
|
@@ -1100,36 +1100,36 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
|
|
|
1100
1100
|
"icon-size": "xl",
|
|
1101
1101
|
"data-more-button": "",
|
|
1102
1102
|
class: q(["vc-breadcrumbs__expand-button", {
|
|
1103
|
-
"vc-breadcrumbs__expand-button--active":
|
|
1103
|
+
"vc-breadcrumbs__expand-button--active": b
|
|
1104
1104
|
}]),
|
|
1105
1105
|
onClick: h
|
|
1106
1106
|
}, null, 8, ["class"])
|
|
1107
1107
|
])
|
|
1108
1108
|
]),
|
|
1109
|
-
item: me(({ item:
|
|
1110
|
-
V(
|
|
1111
|
-
title: typeof
|
|
1112
|
-
icon:
|
|
1113
|
-
onClick:
|
|
1109
|
+
item: me(({ item: b, click: O }) => [
|
|
1110
|
+
V(Ei, {
|
|
1111
|
+
title: typeof b.title == "string" ? b.title : b.title?.value ?? "",
|
|
1112
|
+
icon: b.icon,
|
|
1113
|
+
onClick: O
|
|
1114
1114
|
}, null, 8, ["title", "icon", "onClick"])
|
|
1115
1115
|
]),
|
|
1116
1116
|
_: 3
|
|
1117
1117
|
}, 8, ["items", "model-value"])) : W("", !0),
|
|
1118
|
-
(A(!0), U(Xe, null, Rt(i.value, (
|
|
1119
|
-
key:
|
|
1118
|
+
(A(!0), U(Xe, null, Rt(i.value, (b, O) => (A(), U(Xe, {
|
|
1119
|
+
key: b?.id ?? `breadcrumb-item-${O}`
|
|
1120
1120
|
}, [
|
|
1121
|
-
|
|
1121
|
+
b && b.title ? (A(), U("li", {
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
class: "vc-breadcrumbs__item-wrapper",
|
|
1124
|
-
"data-item-key":
|
|
1124
|
+
"data-item-key": b.id
|
|
1125
1125
|
}, [
|
|
1126
|
-
n.separated &&
|
|
1127
|
-
V(
|
|
1128
|
-
current:
|
|
1129
|
-
"aria-current":
|
|
1126
|
+
n.separated && O !== 0 ? (A(), U("span", Pi, " / ")) : W("", !0),
|
|
1127
|
+
V(vi, Ce({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, b, {
|
|
1128
|
+
current: O === i.value.length - 1,
|
|
1129
|
+
"aria-current": O === i.value.length - 1 ? "page" : void 0,
|
|
1130
1130
|
variant: n.variant
|
|
1131
1131
|
}), null, 16, ["current", "aria-current", "variant"])
|
|
1132
|
-
], 8,
|
|
1132
|
+
], 8, Ti)) : W("", !0)
|
|
1133
1133
|
], 64))), 128))
|
|
1134
1134
|
], 2)
|
|
1135
1135
|
])) : W("", !0);
|
|
@@ -1151,7 +1151,7 @@ class Q {
|
|
|
1151
1151
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
class
|
|
1154
|
+
class Ui extends Q {
|
|
1155
1155
|
http;
|
|
1156
1156
|
baseUrl;
|
|
1157
1157
|
jsonParseReviver = void 0;
|
|
@@ -1256,7 +1256,7 @@ class Bi extends Q {
|
|
|
1256
1256
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
class
|
|
1259
|
+
class Ul extends Q {
|
|
1260
1260
|
http;
|
|
1261
1261
|
baseUrl;
|
|
1262
1262
|
jsonParseReviver = void 0;
|
|
@@ -1291,7 +1291,7 @@ class Dl extends Q {
|
|
|
1291
1291
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
class
|
|
1294
|
+
class Dl extends Q {
|
|
1295
1295
|
http;
|
|
1296
1296
|
baseUrl;
|
|
1297
1297
|
jsonParseReviver = void 0;
|
|
@@ -1344,7 +1344,7 @@ class Bl extends Q {
|
|
|
1344
1344
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
class
|
|
1347
|
+
class Bl extends Q {
|
|
1348
1348
|
http;
|
|
1349
1349
|
baseUrl;
|
|
1350
1350
|
jsonParseReviver = void 0;
|
|
@@ -1518,7 +1518,7 @@ class Rl extends Q {
|
|
|
1518
1518
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
class
|
|
1521
|
+
class Rl extends Q {
|
|
1522
1522
|
http;
|
|
1523
1523
|
baseUrl;
|
|
1524
1524
|
jsonParseReviver = void 0;
|
|
@@ -1575,7 +1575,7 @@ class Jl extends Q {
|
|
|
1575
1575
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
class
|
|
1578
|
+
class Jl extends Q {
|
|
1579
1579
|
http;
|
|
1580
1580
|
baseUrl;
|
|
1581
1581
|
jsonParseReviver = void 0;
|
|
@@ -1853,7 +1853,7 @@ class $l extends Q {
|
|
|
1853
1853
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
|
-
class
|
|
1856
|
+
class $l extends Q {
|
|
1857
1857
|
http;
|
|
1858
1858
|
baseUrl;
|
|
1859
1859
|
jsonParseReviver = void 0;
|
|
@@ -1884,7 +1884,7 @@ class zl extends Q {
|
|
|
1884
1884
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
class
|
|
1887
|
+
class zl extends Q {
|
|
1888
1888
|
http;
|
|
1889
1889
|
baseUrl;
|
|
1890
1890
|
jsonParseReviver = void 0;
|
|
@@ -1989,7 +1989,7 @@ class Ll extends Q {
|
|
|
1989
1989
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
|
-
class
|
|
1992
|
+
class Ll extends Q {
|
|
1993
1993
|
http;
|
|
1994
1994
|
baseUrl;
|
|
1995
1995
|
jsonParseReviver = void 0;
|
|
@@ -2241,7 +2241,7 @@ class Fl extends Q {
|
|
|
2241
2241
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
|
-
class
|
|
2244
|
+
class Fl extends Q {
|
|
2245
2245
|
http;
|
|
2246
2246
|
baseUrl;
|
|
2247
2247
|
jsonParseReviver = void 0;
|
|
@@ -2343,7 +2343,7 @@ class Ml extends Q {
|
|
|
2343
2343
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
|
-
class
|
|
2346
|
+
class Di extends Q {
|
|
2347
2347
|
http;
|
|
2348
2348
|
baseUrl;
|
|
2349
2349
|
jsonParseReviver = void 0;
|
|
@@ -2398,7 +2398,7 @@ class Ri extends Q {
|
|
|
2398
2398
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
2399
2399
|
}
|
|
2400
2400
|
}
|
|
2401
|
-
class
|
|
2401
|
+
class Bi extends Q {
|
|
2402
2402
|
http;
|
|
2403
2403
|
baseUrl;
|
|
2404
2404
|
jsonParseReviver = void 0;
|
|
@@ -3417,7 +3417,7 @@ class Ji extends Q {
|
|
|
3417
3417
|
}) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
|
-
class
|
|
3420
|
+
class Ml extends Q {
|
|
3421
3421
|
http;
|
|
3422
3422
|
baseUrl;
|
|
3423
3423
|
jsonParseReviver = void 0;
|
|
@@ -3659,7 +3659,7 @@ class Ft {
|
|
|
3659
3659
|
return e = typeof e == "object" ? e : {}, e.loginProvider = this.loginProvider, e.providerKey = this.providerKey, e;
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
|
-
class
|
|
3662
|
+
class Wr {
|
|
3663
3663
|
operationTypes;
|
|
3664
3664
|
startDate;
|
|
3665
3665
|
endDate;
|
|
@@ -3702,7 +3702,7 @@ class Gr {
|
|
|
3702
3702
|
}
|
|
3703
3703
|
static fromJS(e) {
|
|
3704
3704
|
e = typeof e == "object" ? e : {};
|
|
3705
|
-
let t = new
|
|
3705
|
+
let t = new Wr();
|
|
3706
3706
|
return t.init(e), t;
|
|
3707
3707
|
}
|
|
3708
3708
|
toJSON(e) {
|
|
@@ -3773,7 +3773,7 @@ class Gt {
|
|
|
3773
3773
|
return e = typeof e == "object" ? e : {}, e.userName = this.userName, e.oldPassword = this.oldPassword, e.newPassword = this.newPassword, e;
|
|
3774
3774
|
}
|
|
3775
3775
|
}
|
|
3776
|
-
class
|
|
3776
|
+
class qr {
|
|
3777
3777
|
entityNames;
|
|
3778
3778
|
modifiedSince;
|
|
3779
3779
|
constructor(e) {
|
|
@@ -3792,7 +3792,7 @@ class Wr {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
static fromJS(e) {
|
|
3794
3794
|
e = typeof e == "object" ? e : {};
|
|
3795
|
-
let t = new
|
|
3795
|
+
let t = new qr();
|
|
3796
3796
|
return t.init(e), t;
|
|
3797
3797
|
}
|
|
3798
3798
|
toJSON(e) {
|
|
@@ -3923,7 +3923,7 @@ class Qe {
|
|
|
3923
3923
|
return e.label = this.label, e.name = this.name, e.nameClaimType = this.nameClaimType, e.roleClaimType = this.roleClaimType, e;
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
3926
|
-
class
|
|
3926
|
+
class Kr {
|
|
3927
3927
|
token;
|
|
3928
3928
|
constructor(e) {
|
|
3929
3929
|
if (e)
|
|
@@ -3935,7 +3935,7 @@ class qr {
|
|
|
3935
3935
|
}
|
|
3936
3936
|
static fromJS(e) {
|
|
3937
3937
|
e = typeof e == "object" ? e : {};
|
|
3938
|
-
let t = new
|
|
3938
|
+
let t = new Kr();
|
|
3939
3939
|
return t.init(e), t;
|
|
3940
3940
|
}
|
|
3941
3941
|
toJSON(e) {
|
|
@@ -4121,7 +4121,7 @@ class Vt {
|
|
|
4121
4121
|
return e = typeof e == "object" ? e : {}, e.locale = this.locale, e.name = this.name, e;
|
|
4122
4122
|
}
|
|
4123
4123
|
}
|
|
4124
|
-
class
|
|
4124
|
+
class Hr {
|
|
4125
4125
|
propertyId;
|
|
4126
4126
|
responseGroup;
|
|
4127
4127
|
objectType;
|
|
@@ -4158,7 +4158,7 @@ class Kr {
|
|
|
4158
4158
|
}
|
|
4159
4159
|
static fromJS(e) {
|
|
4160
4160
|
e = typeof e == "object" ? e : {};
|
|
4161
|
-
let t = new
|
|
4161
|
+
let t = new Hr();
|
|
4162
4162
|
return t.init(e), t;
|
|
4163
4163
|
}
|
|
4164
4164
|
toJSON(e) {
|
|
@@ -4250,7 +4250,7 @@ class Yt {
|
|
|
4250
4250
|
return e = typeof e == "object" ? e : {}, e.objectType = this.objectType, e.objectId = this.objectId, e.locale = this.locale, e.value = this.value, e.valueId = this.valueId, e.valueType = this.valueType, e.propertyId = this.propertyId, e.propertyName = this.propertyName, e;
|
|
4251
4251
|
}
|
|
4252
4252
|
}
|
|
4253
|
-
class
|
|
4253
|
+
class Vr {
|
|
4254
4254
|
typeName;
|
|
4255
4255
|
responseGroup;
|
|
4256
4256
|
objectType;
|
|
@@ -4287,7 +4287,7 @@ class Hr {
|
|
|
4287
4287
|
}
|
|
4288
4288
|
static fromJS(e) {
|
|
4289
4289
|
e = typeof e == "object" ? e : {};
|
|
4290
|
-
let t = new
|
|
4290
|
+
let t = new Vr();
|
|
4291
4291
|
return t.init(e), t;
|
|
4292
4292
|
}
|
|
4293
4293
|
toJSON(e) {
|
|
@@ -4333,7 +4333,7 @@ class Xt {
|
|
|
4333
4333
|
return e;
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
|
-
var
|
|
4336
|
+
var Ri = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Ri || {}), Ji = /* @__PURE__ */ ((n) => (n.Detached = "Detached", n.Unchanged = "Unchanged", n.Added = "Added", n.Deleted = "Deleted", n.Modified = "Modified", n))(Ji || {});
|
|
4337
4337
|
class Qt {
|
|
4338
4338
|
authenticationType;
|
|
4339
4339
|
displayName;
|
|
@@ -4442,7 +4442,7 @@ class et {
|
|
|
4442
4442
|
return e = typeof e == "object" ? e : {}, e.valueKind = this.valueKind, e;
|
|
4443
4443
|
}
|
|
4444
4444
|
}
|
|
4445
|
-
var
|
|
4445
|
+
var $i = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.Object = "Object", n.Array = "Array", n.String = "String", n.Number = "Number", n.True = "True", n.False = "False", n.Null = "Null", n))($i || {});
|
|
4446
4446
|
class tr {
|
|
4447
4447
|
key;
|
|
4448
4448
|
value;
|
|
@@ -4817,7 +4817,7 @@ class rt {
|
|
|
4817
4817
|
return e.errorCount = this.errorCount, e.serverId = this.serverId, e.creator = this.creator, e.created = this.created ? this.created.toISOString() : void 0, e.isNew = this.isNew, e.notifyType = this.notifyType, e.description = this.description, e.title = this.title, e.repeatCount = this.repeatCount, e.id = this.id, e;
|
|
4818
4818
|
}
|
|
4819
4819
|
}
|
|
4820
|
-
class
|
|
4820
|
+
class Zr {
|
|
4821
4821
|
responseGroup;
|
|
4822
4822
|
objectType;
|
|
4823
4823
|
objectTypes;
|
|
@@ -4853,7 +4853,7 @@ class Vr {
|
|
|
4853
4853
|
}
|
|
4854
4854
|
static fromJS(e) {
|
|
4855
4855
|
e = typeof e == "object" ? e : {};
|
|
4856
|
-
let t = new
|
|
4856
|
+
let t = new Zr();
|
|
4857
4857
|
return t.init(e), t;
|
|
4858
4858
|
}
|
|
4859
4859
|
toJSON(e) {
|
|
@@ -5172,7 +5172,7 @@ class mt {
|
|
|
5172
5172
|
return e = typeof e == "object" ? e : {}, e.message = this.message, e.level = this.level, e;
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
5175
|
-
var
|
|
5175
|
+
var zi = /* @__PURE__ */ ((n) => (n.Info = "Info", n.Warning = "Warning", n.Debug = "Debug", n.Error = "Error", n))(zi || {});
|
|
5176
5176
|
class Re {
|
|
5177
5177
|
serverId;
|
|
5178
5178
|
creator;
|
|
@@ -5295,7 +5295,7 @@ class nt {
|
|
|
5295
5295
|
return e;
|
|
5296
5296
|
}
|
|
5297
5297
|
}
|
|
5298
|
-
class
|
|
5298
|
+
class Yr {
|
|
5299
5299
|
token;
|
|
5300
5300
|
newPassword;
|
|
5301
5301
|
forcePasswordChangeOnNextSignIn;
|
|
@@ -5309,7 +5309,7 @@ class Zr {
|
|
|
5309
5309
|
}
|
|
5310
5310
|
static fromJS(e) {
|
|
5311
5311
|
e = typeof e == "object" ? e : {};
|
|
5312
|
-
let t = new
|
|
5312
|
+
let t = new Yr();
|
|
5313
5313
|
return t.init(e), t;
|
|
5314
5314
|
}
|
|
5315
5315
|
toJSON(e) {
|
|
@@ -5350,7 +5350,7 @@ class Oe {
|
|
|
5350
5350
|
return e.id = this.id, e.name = this.name, e.normalizedName = this.normalizedName, e.concurrencyStamp = this.concurrencyStamp, e;
|
|
5351
5351
|
}
|
|
5352
5352
|
}
|
|
5353
|
-
class
|
|
5353
|
+
class Xr {
|
|
5354
5354
|
responseGroup;
|
|
5355
5355
|
objectType;
|
|
5356
5356
|
objectTypes;
|
|
@@ -5386,7 +5386,7 @@ class Yr {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
static fromJS(e) {
|
|
5388
5388
|
e = typeof e == "object" ? e : {};
|
|
5389
|
-
let t = new
|
|
5389
|
+
let t = new Xr();
|
|
5390
5390
|
return t.init(e), t;
|
|
5391
5391
|
}
|
|
5392
5392
|
toJSON(e) {
|
|
@@ -5492,7 +5492,7 @@ class dr {
|
|
|
5492
5492
|
return e = typeof e == "object" ? e : {}, e.major = this.major, e.minor = this.minor, e.patch = this.patch, e.prerelease = this.prerelease, e;
|
|
5493
5493
|
}
|
|
5494
5494
|
}
|
|
5495
|
-
var
|
|
5495
|
+
var Li = /* @__PURE__ */ ((n) => (n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.SecureString = "SecureString", n.Json = "Json", n.PositiveInteger = "PositiveInteger", n))(Li || {});
|
|
5496
5496
|
class pr {
|
|
5497
5497
|
succeeded;
|
|
5498
5498
|
isLockedOut;
|
|
@@ -5515,7 +5515,7 @@ class pr {
|
|
|
5515
5515
|
return e = typeof e == "object" ? e : {}, e.succeeded = this.succeeded, e.isLockedOut = this.isLockedOut, e.isNotAllowed = this.isNotAllowed, e.requiresTwoFactor = this.requiresTwoFactor, e;
|
|
5516
5516
|
}
|
|
5517
5517
|
}
|
|
5518
|
-
var
|
|
5518
|
+
var Fi = /* @__PURE__ */ ((n) => (n.Ascending = "Ascending", n.Descending = "Descending", n))(Fi || {});
|
|
5519
5519
|
class le {
|
|
5520
5520
|
sortColumn;
|
|
5521
5521
|
sortDirection;
|
|
@@ -5536,7 +5536,7 @@ class le {
|
|
|
5536
5536
|
return e = typeof e == "object" ? e : {}, e.sortColumn = this.sortColumn, e.sortDirection = this.sortDirection, e;
|
|
5537
5537
|
}
|
|
5538
5538
|
}
|
|
5539
|
-
class
|
|
5539
|
+
class Qr {
|
|
5540
5540
|
userId;
|
|
5541
5541
|
roleId;
|
|
5542
5542
|
constructor(e) {
|
|
@@ -5549,7 +5549,7 @@ class Xr {
|
|
|
5549
5549
|
}
|
|
5550
5550
|
static fromJS(e) {
|
|
5551
5551
|
e = typeof e == "object" ? e : {};
|
|
5552
|
-
let t = new
|
|
5552
|
+
let t = new Qr();
|
|
5553
5553
|
return t.init(e), t;
|
|
5554
5554
|
}
|
|
5555
5555
|
toJSON(e) {
|
|
@@ -5674,7 +5674,7 @@ class ot {
|
|
|
5674
5674
|
return e = typeof e == "object" ? e : {}, e.locked = this.locked, e;
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
|
-
class
|
|
5677
|
+
class _r {
|
|
5678
5678
|
memberId;
|
|
5679
5679
|
memberIds;
|
|
5680
5680
|
modifiedSinceDate;
|
|
@@ -5724,7 +5724,7 @@ class Qr {
|
|
|
5724
5724
|
}
|
|
5725
5725
|
static fromJS(e) {
|
|
5726
5726
|
e = typeof e == "object" ? e : {};
|
|
5727
|
-
let t = new
|
|
5727
|
+
let t = new _r();
|
|
5728
5728
|
return t.init(e), t;
|
|
5729
5729
|
}
|
|
5730
5730
|
toJSON(e) {
|
|
@@ -5789,7 +5789,7 @@ class yr {
|
|
|
5789
5789
|
return e;
|
|
5790
5790
|
}
|
|
5791
5791
|
}
|
|
5792
|
-
class
|
|
5792
|
+
class es {
|
|
5793
5793
|
token;
|
|
5794
5794
|
constructor(e) {
|
|
5795
5795
|
if (e)
|
|
@@ -5801,14 +5801,14 @@ class _r {
|
|
|
5801
5801
|
}
|
|
5802
5802
|
static fromJS(e) {
|
|
5803
5803
|
e = typeof e == "object" ? e : {};
|
|
5804
|
-
let t = new
|
|
5804
|
+
let t = new es();
|
|
5805
5805
|
return t.init(e), t;
|
|
5806
5806
|
}
|
|
5807
5807
|
toJSON(e) {
|
|
5808
5808
|
return e = typeof e == "object" ? e : {}, e.token = this.token, e;
|
|
5809
5809
|
}
|
|
5810
5810
|
}
|
|
5811
|
-
class
|
|
5811
|
+
class ts {
|
|
5812
5812
|
tokenProvider;
|
|
5813
5813
|
purpose;
|
|
5814
5814
|
token;
|
|
@@ -5822,14 +5822,14 @@ class es {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
static fromJS(e) {
|
|
5824
5824
|
e = typeof e == "object" ? e : {};
|
|
5825
|
-
let t = new
|
|
5825
|
+
let t = new ts();
|
|
5826
5826
|
return t.init(e), t;
|
|
5827
5827
|
}
|
|
5828
5828
|
toJSON(e) {
|
|
5829
5829
|
return e = typeof e == "object" ? e : {}, e.tokenProvider = this.tokenProvider, e.purpose = this.purpose, e.token = this.token, e;
|
|
5830
5830
|
}
|
|
5831
5831
|
}
|
|
5832
|
-
class
|
|
5832
|
+
class rs {
|
|
5833
5833
|
grant_type;
|
|
5834
5834
|
scope;
|
|
5835
5835
|
username;
|
|
@@ -5850,7 +5850,7 @@ class ts {
|
|
|
5850
5850
|
}
|
|
5851
5851
|
static fromJS(e) {
|
|
5852
5852
|
e = typeof e == "object" ? e : {};
|
|
5853
|
-
let t = new
|
|
5853
|
+
let t = new rs();
|
|
5854
5854
|
return t.init(e), t;
|
|
5855
5855
|
}
|
|
5856
5856
|
toJSON(e) {
|
|
@@ -5860,8 +5860,8 @@ class ts {
|
|
|
5860
5860
|
return e.grant_type = this.grant_type, e.scope = this.scope, e.username = this.username, e.password = this.password, e.storeId = this.storeId, e.user_id = this.user_id, e;
|
|
5861
5861
|
}
|
|
5862
5862
|
}
|
|
5863
|
-
var
|
|
5864
|
-
class
|
|
5863
|
+
var Mi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Mi || {}), Gi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Gi || {}), Wi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Wi || {}), qi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.Object = "Object", n.Array = "Array", n.String = "String", n.Number = "Number", n.True = "True", n.False = "False", n.Null = "Null", n))(qi || {}), Ki = /* @__PURE__ */ ((n) => (n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.SecureString = "SecureString", n.Json = "Json", n.PositiveInteger = "PositiveInteger", n))(Ki || {}), Hi = /* @__PURE__ */ ((n) => (n.Detached = "Detached", n.Unchanged = "Unchanged", n.Added = "Added", n.Deleted = "Deleted", n.Modified = "Modified", n))(Hi || {}), Vi = /* @__PURE__ */ ((n) => (n.Info = "Info", n.Warning = "Warning", n.Debug = "Debug", n.Error = "Error", n))(Vi || {}), Zi = /* @__PURE__ */ ((n) => (n.Ascending = "Ascending", n.Descending = "Descending", n))(Zi || {});
|
|
5864
|
+
class Yi extends Error {
|
|
5865
5865
|
message;
|
|
5866
5866
|
status;
|
|
5867
5867
|
response;
|
|
@@ -5876,11 +5876,11 @@ class Qi extends Error {
|
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
5878
|
function l(n, e, t, s, r) {
|
|
5879
|
-
throw r ?? new
|
|
5879
|
+
throw r ?? new Yi(n, e, t, s, null);
|
|
5880
5880
|
}
|
|
5881
|
-
const bt = R("use-external-provider"),
|
|
5882
|
-
const n = new
|
|
5883
|
-
|
|
5881
|
+
const bt = R("use-external-provider"), Xi = "externalSignIn", Qi = () => {
|
|
5882
|
+
const n = new Ui(), e = Cs(
|
|
5883
|
+
Xi,
|
|
5884
5884
|
{},
|
|
5885
5885
|
{
|
|
5886
5886
|
listenToStorageChanges: !0,
|
|
@@ -5926,7 +5926,7 @@ const bt = R("use-external-provider"), _i = "externalSignIn", en = () => {
|
|
|
5926
5926
|
getProviders: i
|
|
5927
5927
|
};
|
|
5928
5928
|
}, gr = "vc_auth_data", z = R("use-user"), ae = j();
|
|
5929
|
-
function
|
|
5929
|
+
function _i() {
|
|
5930
5930
|
try {
|
|
5931
5931
|
const n = localStorage.getItem(gr);
|
|
5932
5932
|
if (n)
|
|
@@ -5943,7 +5943,7 @@ function Er(n) {
|
|
|
5943
5943
|
z.error("Failed to store auth data:", e);
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
|
-
function
|
|
5946
|
+
function en() {
|
|
5947
5947
|
try {
|
|
5948
5948
|
localStorage.removeItem(gr);
|
|
5949
5949
|
} catch (n) {
|
|
@@ -5979,12 +5979,12 @@ async function Or(n) {
|
|
|
5979
5979
|
return z.error("fetchToken - Exception:", e), null;
|
|
5980
5980
|
}
|
|
5981
5981
|
}
|
|
5982
|
-
function
|
|
5983
|
-
const n = j(!1), e = j(null), { storage: t, signOut: s } =
|
|
5984
|
-
async function o(
|
|
5982
|
+
function ss() {
|
|
5983
|
+
const n = j(!1), e = j(null), { storage: t, signOut: s } = Qi(), r = new Bi(), i = y(() => ae.value?.userName != null);
|
|
5984
|
+
async function o(g, N) {
|
|
5985
5985
|
let C = !1;
|
|
5986
5986
|
try {
|
|
5987
|
-
n.value = !0, C = await r.validatePasswordResetToken(
|
|
5987
|
+
n.value = !0, C = await r.validatePasswordResetToken(g, {
|
|
5988
5988
|
token: N
|
|
5989
5989
|
});
|
|
5990
5990
|
} catch {
|
|
@@ -5993,50 +5993,50 @@ function rs() {
|
|
|
5993
5993
|
}
|
|
5994
5994
|
return C;
|
|
5995
5995
|
}
|
|
5996
|
-
async function u(
|
|
5997
|
-
return r.validatePassword(
|
|
5996
|
+
async function u(g) {
|
|
5997
|
+
return r.validatePassword(g);
|
|
5998
5998
|
}
|
|
5999
|
-
async function c(
|
|
6000
|
-
return r.resetPasswordByToken(
|
|
5999
|
+
async function c(g, N, C) {
|
|
6000
|
+
return r.resetPasswordByToken(g, {
|
|
6001
6001
|
newPassword: N,
|
|
6002
6002
|
token: C
|
|
6003
6003
|
});
|
|
6004
6004
|
}
|
|
6005
|
-
async function h(
|
|
6005
|
+
async function h(g, N) {
|
|
6006
6006
|
z.debug("signIn - Entry point");
|
|
6007
6007
|
try {
|
|
6008
6008
|
n.value = !0;
|
|
6009
|
-
const C = await r.login(new lr({ userName:
|
|
6009
|
+
const C = await r.login(new lr({ userName: g, password: N }));
|
|
6010
6010
|
if (z.debug("signIn - Cookie login completed:", C), !C.succeeded)
|
|
6011
6011
|
return C;
|
|
6012
6012
|
z.debug("signIn - Requesting token...");
|
|
6013
|
-
const
|
|
6013
|
+
const E = await Or({
|
|
6014
6014
|
grant_type: "password",
|
|
6015
|
-
username:
|
|
6015
|
+
username: g,
|
|
6016
6016
|
password: N,
|
|
6017
6017
|
scope: "offline_access"
|
|
6018
6018
|
});
|
|
6019
|
-
|
|
6019
|
+
E && (e.value = E, Er(e.value), z.debug("signIn - Token saved:", e.value));
|
|
6020
6020
|
const P = await r.getCurrentUser();
|
|
6021
6021
|
if (P)
|
|
6022
6022
|
return ae.value = P, C;
|
|
6023
6023
|
throw { succeeded: !1 };
|
|
6024
6024
|
} catch (C) {
|
|
6025
6025
|
z.error("signIn failed:", C);
|
|
6026
|
-
let
|
|
6026
|
+
let E = C.message;
|
|
6027
6027
|
if (C.response)
|
|
6028
6028
|
try {
|
|
6029
6029
|
const P = JSON.parse(C.response);
|
|
6030
|
-
|
|
6030
|
+
E = P.errorDescription || P.errors?.[0]?.description || P.error || E;
|
|
6031
6031
|
} catch {
|
|
6032
6032
|
}
|
|
6033
|
-
return { succeeded: !1, error:
|
|
6033
|
+
return { succeeded: !1, error: E, status: C.status };
|
|
6034
6034
|
} finally {
|
|
6035
6035
|
n.value = !1;
|
|
6036
6036
|
}
|
|
6037
6037
|
}
|
|
6038
6038
|
async function a() {
|
|
6039
|
-
z.debug("signOut - Entry point"), ae.value = void 0,
|
|
6039
|
+
z.debug("signOut - Entry point"), ae.value = void 0, en(), e.value = null, t.value?.providerType ? await s(t.value.providerType) : r.logout();
|
|
6040
6040
|
}
|
|
6041
6041
|
let m = null;
|
|
6042
6042
|
async function d() {
|
|
@@ -6044,81 +6044,81 @@ function rs() {
|
|
|
6044
6044
|
z.debug("loadUser - Entry point");
|
|
6045
6045
|
try {
|
|
6046
6046
|
n.value = !0, performance.mark("vc:auth-start");
|
|
6047
|
-
const [
|
|
6047
|
+
const [g] = await Promise.all([
|
|
6048
6048
|
r.getCurrentUser(),
|
|
6049
|
-
|
|
6049
|
+
x()
|
|
6050
6050
|
]);
|
|
6051
|
-
ae.value =
|
|
6052
|
-
} catch (
|
|
6053
|
-
z.error("loadUser failed:",
|
|
6051
|
+
ae.value = g, performance.mark("vc:auth-done"), z.debug("User details loaded:", ae.value);
|
|
6052
|
+
} catch (g) {
|
|
6053
|
+
z.error("loadUser failed:", g);
|
|
6054
6054
|
} finally {
|
|
6055
6055
|
n.value = !1, m = null;
|
|
6056
6056
|
}
|
|
6057
6057
|
return { ...ae.value };
|
|
6058
6058
|
})(), m);
|
|
6059
6059
|
}
|
|
6060
|
-
async function p(
|
|
6060
|
+
async function p(g) {
|
|
6061
6061
|
try {
|
|
6062
|
-
return n.value = !0, await r.requestPasswordReset(
|
|
6062
|
+
return n.value = !0, await r.requestPasswordReset(g), { succeeded: !0 };
|
|
6063
6063
|
} catch (N) {
|
|
6064
6064
|
return { succeeded: !1, error: N };
|
|
6065
6065
|
} finally {
|
|
6066
6066
|
n.value = !1;
|
|
6067
6067
|
}
|
|
6068
6068
|
}
|
|
6069
|
-
async function
|
|
6069
|
+
async function b(g, N) {
|
|
6070
6070
|
let C;
|
|
6071
6071
|
try {
|
|
6072
6072
|
n.value = !0;
|
|
6073
|
-
const
|
|
6074
|
-
oldPassword:
|
|
6073
|
+
const E = new Gt({
|
|
6074
|
+
oldPassword: g,
|
|
6075
6075
|
newPassword: N
|
|
6076
6076
|
});
|
|
6077
|
-
C = await r.changeCurrentUserPassword(
|
|
6078
|
-
} catch (
|
|
6079
|
-
return { succeeded: !1, errors: [
|
|
6077
|
+
C = await r.changeCurrentUserPassword(E);
|
|
6078
|
+
} catch (E) {
|
|
6079
|
+
return { succeeded: !1, errors: [E.message] };
|
|
6080
6080
|
} finally {
|
|
6081
6081
|
n.value = !1;
|
|
6082
6082
|
}
|
|
6083
6083
|
return C;
|
|
6084
6084
|
}
|
|
6085
|
-
async function
|
|
6086
|
-
let
|
|
6085
|
+
async function O() {
|
|
6086
|
+
let g = null;
|
|
6087
6087
|
try {
|
|
6088
|
-
|
|
6088
|
+
g = await r.getLoginTypes();
|
|
6089
6089
|
} catch (N) {
|
|
6090
6090
|
throw z.error("getLoginType failed:", N), N;
|
|
6091
6091
|
}
|
|
6092
|
-
return
|
|
6092
|
+
return g;
|
|
6093
6093
|
}
|
|
6094
|
-
const
|
|
6095
|
-
async function
|
|
6096
|
-
if (z.debug("getAccessToken - Entry point"), e.value || (e.value =
|
|
6094
|
+
const T = 60 * 1e3;
|
|
6095
|
+
async function x() {
|
|
6096
|
+
if (z.debug("getAccessToken - Entry point"), e.value || (e.value = _i()), !e.value)
|
|
6097
6097
|
return z.debug("getAccessToken - No auth data available"), null;
|
|
6098
|
-
const
|
|
6098
|
+
const g = Date.now(), N = e.value.expires_at, C = N ? g >= N - T : !1;
|
|
6099
6099
|
if (z.debug("getAccessToken - Token status:", {
|
|
6100
6100
|
hasToken: !!e.value.access_token,
|
|
6101
6101
|
expiresAt: N ? new Date(N).toISOString() : "not set",
|
|
6102
|
-
now: new Date(
|
|
6102
|
+
now: new Date(g).toISOString(),
|
|
6103
6103
|
shouldRefresh: C,
|
|
6104
6104
|
hasRefreshToken: !!e.value.refresh_token
|
|
6105
6105
|
}), C && e.value.refresh_token) {
|
|
6106
6106
|
z.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
6107
|
-
const
|
|
6107
|
+
const E = await Or({
|
|
6108
6108
|
grant_type: "refresh_token",
|
|
6109
6109
|
refresh_token: e.value.refresh_token,
|
|
6110
6110
|
scope: "offline_access"
|
|
6111
6111
|
});
|
|
6112
|
-
|
|
6113
|
-
expiresAt:
|
|
6112
|
+
E ? (E.refresh_token = E.refresh_token ?? e.value.refresh_token, e.value = E, Er(e.value), z.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
6113
|
+
expiresAt: E.expires_at ? new Date(E.expires_at).toISOString() : "not set"
|
|
6114
6114
|
})) : z.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
6115
6115
|
}
|
|
6116
6116
|
return e.value?.access_token ?? e.value?.token ?? null;
|
|
6117
6117
|
}
|
|
6118
6118
|
return {
|
|
6119
|
-
user:
|
|
6120
|
-
loading:
|
|
6121
|
-
isAdministrator:
|
|
6119
|
+
user: y(() => ae.value),
|
|
6120
|
+
loading: y(() => n.value),
|
|
6121
|
+
isAdministrator: y(() => ae.value?.isAdministrator),
|
|
6122
6122
|
isAuthenticated: i,
|
|
6123
6123
|
loadUser: d,
|
|
6124
6124
|
signIn: h,
|
|
@@ -6127,13 +6127,13 @@ function rs() {
|
|
|
6127
6127
|
validatePassword: u,
|
|
6128
6128
|
resetPasswordByToken: c,
|
|
6129
6129
|
requestPasswordReset: p,
|
|
6130
|
-
changeUserPassword:
|
|
6131
|
-
getLoginType:
|
|
6132
|
-
getAccessToken:
|
|
6130
|
+
changeUserPassword: b,
|
|
6131
|
+
getLoginType: O,
|
|
6132
|
+
getAccessToken: x
|
|
6133
6133
|
};
|
|
6134
6134
|
}
|
|
6135
|
-
const
|
|
6136
|
-
const n =
|
|
6135
|
+
const tn = Lr(() => {
|
|
6136
|
+
const n = ss();
|
|
6137
6137
|
return {
|
|
6138
6138
|
user: n.user,
|
|
6139
6139
|
loading: n.loading,
|
|
@@ -6143,14 +6143,14 @@ const sn = Lr(() => {
|
|
|
6143
6143
|
signOut: n.signOut,
|
|
6144
6144
|
getAccessToken: n.getAccessToken
|
|
6145
6145
|
};
|
|
6146
|
-
}),
|
|
6146
|
+
}), rn = {
|
|
6147
6147
|
info: 5e3,
|
|
6148
6148
|
warning: 8e3,
|
|
6149
6149
|
error: !1,
|
|
6150
6150
|
// persistent
|
|
6151
6151
|
critical: !1
|
|
6152
6152
|
// persistent
|
|
6153
|
-
},
|
|
6153
|
+
}, sn = ["IndexProgressPushNotification"], nn = Symbol("NotificationContainerState"), on = R("notification-instance"), te = {
|
|
6154
6154
|
"top-center": void 0,
|
|
6155
6155
|
"top-right": void 0,
|
|
6156
6156
|
"top-left": void 0,
|
|
@@ -6158,7 +6158,7 @@ const sn = Lr(() => {
|
|
|
6158
6158
|
"bottom-right": void 0,
|
|
6159
6159
|
"bottom-left": void 0
|
|
6160
6160
|
};
|
|
6161
|
-
function
|
|
6161
|
+
function ln() {
|
|
6162
6162
|
function n(r, i, o) {
|
|
6163
6163
|
document.getElementById(i) && (te[o] = r);
|
|
6164
6164
|
}
|
|
@@ -6169,7 +6169,7 @@ function cn() {
|
|
|
6169
6169
|
te[u]?.unmount(), document.getElementById(`notification-${u}`)?.remove(), te[u] = void 0;
|
|
6170
6170
|
}), Object.values(te).some((o) => o !== void 0) || document.querySelector(".notification")?.remove());
|
|
6171
6171
|
} catch (i) {
|
|
6172
|
-
|
|
6172
|
+
on.error("Failed to unmount notification component:", i);
|
|
6173
6173
|
}
|
|
6174
6174
|
}
|
|
6175
6175
|
function t() {
|
|
@@ -6194,8 +6194,8 @@ const Se = R("notification-container"), Y = {
|
|
|
6194
6194
|
"bottom-center": j([]),
|
|
6195
6195
|
"bottom-right": j([]),
|
|
6196
6196
|
"bottom-left": j([])
|
|
6197
|
-
}, { clearContainer:
|
|
6198
|
-
function
|
|
6197
|
+
}, { clearContainer: un, unmountComponent: cn, saveInstance: an, getInstanceByPosition: Tr } = ln();
|
|
6198
|
+
function hn() {
|
|
6199
6199
|
const n = ms({
|
|
6200
6200
|
timeout: 3e3,
|
|
6201
6201
|
pauseOnHover: !0,
|
|
@@ -6218,12 +6218,12 @@ function dn() {
|
|
|
6218
6218
|
async function i(c) {
|
|
6219
6219
|
const h = c.position || n.position;
|
|
6220
6220
|
if (!Tr(h)) {
|
|
6221
|
-
const m = r(h), { default: d } = await import("./index-
|
|
6221
|
+
const m = r(h), { default: d } = await import("./index-CnM28rry.js"), p = vs(d, {
|
|
6222
6222
|
...c,
|
|
6223
6223
|
position: h
|
|
6224
6224
|
// Pass the position to the component
|
|
6225
6225
|
});
|
|
6226
|
-
p.provide(
|
|
6226
|
+
p.provide(nn, { notificationContainers: Y, actions: u }), p.mount(m), an(p, m.id, h);
|
|
6227
6227
|
}
|
|
6228
6228
|
re(() => {
|
|
6229
6229
|
c.updateId ? u.update(c) : u.add(c);
|
|
@@ -6243,15 +6243,15 @@ function dn() {
|
|
|
6243
6243
|
if (c) {
|
|
6244
6244
|
let h, a;
|
|
6245
6245
|
Object.entries(Y).forEach(([m, d]) => {
|
|
6246
|
-
const p = d.value.find((
|
|
6246
|
+
const p = d.value.find((b) => b.notificationId === c);
|
|
6247
6247
|
p && (h = p, a = m);
|
|
6248
|
-
}), a && (Y[a].value = Y[a].value.filter((m) => m.notificationId !== c), Y[a].value.length === 0 &&
|
|
6248
|
+
}), a && (Y[a].value = Y[a].value.filter((m) => m.notificationId !== c), Y[a].value.length === 0 && cn(a), re(() => {
|
|
6249
6249
|
h?.onClose && typeof h?.onClose == "function" && h.onClose(h.payload);
|
|
6250
6250
|
}));
|
|
6251
6251
|
}
|
|
6252
6252
|
},
|
|
6253
6253
|
clear() {
|
|
6254
|
-
|
|
6254
|
+
un(), Object.values(Y).forEach((c) => {
|
|
6255
6255
|
c.value = [];
|
|
6256
6256
|
});
|
|
6257
6257
|
},
|
|
@@ -6268,12 +6268,12 @@ function dn() {
|
|
|
6268
6268
|
if (c.updateId) {
|
|
6269
6269
|
let h, a, m;
|
|
6270
6270
|
if (Object.entries(Y).forEach(([d, p]) => {
|
|
6271
|
-
const
|
|
6272
|
-
|
|
6271
|
+
const b = p.value.find((O) => O.notificationId === c.notificationId);
|
|
6272
|
+
b && (h = b, a = p, m = d);
|
|
6273
6273
|
}), h && a) {
|
|
6274
6274
|
if (Se.debug(`Updating notification ${c.notificationId} in position ${m}`), c.position && c.position !== m) {
|
|
6275
6275
|
a.value = a.value.filter(
|
|
6276
|
-
(
|
|
6276
|
+
(b) => b.notificationId !== c.notificationId
|
|
6277
6277
|
);
|
|
6278
6278
|
const d = {
|
|
6279
6279
|
...h,
|
|
@@ -6283,8 +6283,8 @@ function dn() {
|
|
|
6283
6283
|
} else
|
|
6284
6284
|
Se.debug("Standard update of notification properties"), Object.keys(c).forEach((d) => {
|
|
6285
6285
|
if (d !== "updateId" && d !== "notificationId") {
|
|
6286
|
-
const p = d,
|
|
6287
|
-
h &&
|
|
6286
|
+
const p = d, b = c[p];
|
|
6287
|
+
h && b !== void 0 && (h[p] = b);
|
|
6288
6288
|
}
|
|
6289
6289
|
});
|
|
6290
6290
|
return !0;
|
|
@@ -6305,19 +6305,19 @@ function dn() {
|
|
|
6305
6305
|
getNotificationsByPosition: t,
|
|
6306
6306
|
appendInstance: i,
|
|
6307
6307
|
getNotification: s,
|
|
6308
|
-
generateNotificationId:
|
|
6308
|
+
generateNotificationId: qs,
|
|
6309
6309
|
hasNotification: o
|
|
6310
6310
|
};
|
|
6311
6311
|
}
|
|
6312
6312
|
const Ue = R("notification"), {
|
|
6313
6313
|
defaultOptions: Ee,
|
|
6314
6314
|
actions: de,
|
|
6315
|
-
getNotification:
|
|
6315
|
+
getNotification: fn,
|
|
6316
6316
|
getAllNotifications: Et,
|
|
6317
|
-
appendInstance:
|
|
6317
|
+
appendInstance: dn,
|
|
6318
6318
|
generateNotificationId: Ot,
|
|
6319
|
-
hasNotification:
|
|
6320
|
-
} =
|
|
6319
|
+
hasNotification: pn
|
|
6320
|
+
} = hn();
|
|
6321
6321
|
function $e(n, e) {
|
|
6322
6322
|
return e = Ce(
|
|
6323
6323
|
Ee,
|
|
@@ -6325,7 +6325,7 @@ function $e(n, e) {
|
|
|
6325
6325
|
), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId = Ot()), e = {
|
|
6326
6326
|
...e,
|
|
6327
6327
|
content: n
|
|
6328
|
-
},
|
|
6328
|
+
}, dn(e), e.notificationId;
|
|
6329
6329
|
}
|
|
6330
6330
|
const Z = (n, e) => $e(n, { ...e, type: "default" });
|
|
6331
6331
|
Z.error = (n, e) => $e(n, { ...e, type: "error" });
|
|
@@ -6338,9 +6338,9 @@ Z.remove = (n) => {
|
|
|
6338
6338
|
n ? de.dismiss(n) : de.clear();
|
|
6339
6339
|
};
|
|
6340
6340
|
Z.update = (n, e) => {
|
|
6341
|
-
if (!
|
|
6341
|
+
if (!pn(n))
|
|
6342
6342
|
return Ue.warn(`Cannot update: notification with ID ${n} not found`), n;
|
|
6343
|
-
const t =
|
|
6343
|
+
const t = fn(String(n));
|
|
6344
6344
|
if (t)
|
|
6345
6345
|
if (e.position && e.position !== t.position) {
|
|
6346
6346
|
const s = {
|
|
@@ -6397,14 +6397,14 @@ Z.debug = () => {
|
|
|
6397
6397
|
defaultOptions: Ee
|
|
6398
6398
|
};
|
|
6399
6399
|
};
|
|
6400
|
-
const
|
|
6400
|
+
const mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6401
6401
|
__proto__: null,
|
|
6402
6402
|
notification: Z
|
|
6403
6403
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6404
|
-
function
|
|
6404
|
+
function vn(n, e) {
|
|
6405
6405
|
return n.severity ? typeof n.severity == "function" ? n.severity(e) : n.severity : "info";
|
|
6406
6406
|
}
|
|
6407
|
-
function
|
|
6407
|
+
function yn(n, e) {
|
|
6408
6408
|
const t = n.notifyType ?? "unknown";
|
|
6409
6409
|
if (e.groupBy) {
|
|
6410
6410
|
const s = n[e.groupBy] ?? "default";
|
|
@@ -6412,16 +6412,16 @@ function bn(n, e) {
|
|
|
6412
6412
|
}
|
|
6413
6413
|
return `${t}::${n.id}`;
|
|
6414
6414
|
}
|
|
6415
|
-
const
|
|
6416
|
-
function
|
|
6415
|
+
const gn = (n) => !!n.finished;
|
|
6416
|
+
function bn() {
|
|
6417
6417
|
const n = /* @__PURE__ */ new Map();
|
|
6418
6418
|
function e(r, i, o) {
|
|
6419
6419
|
if (!i.toast || i.toast.mode === "silent") return;
|
|
6420
|
-
const u =
|
|
6420
|
+
const u = vn(i.toast, r);
|
|
6421
6421
|
i.toast.mode === "auto" ? t(r, u, i, o) : i.toast.mode === "progress" && s(r, u, i, o);
|
|
6422
6422
|
}
|
|
6423
6423
|
function t(r, i, o, u) {
|
|
6424
|
-
const c = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout :
|
|
6424
|
+
const c = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : rn[i];
|
|
6425
6425
|
Z(r.title ?? "", {
|
|
6426
6426
|
timeout: c,
|
|
6427
6427
|
type: i === "critical" ? "error" : i === "info" ? "default" : i,
|
|
@@ -6431,8 +6431,8 @@ function Sn() {
|
|
|
6431
6431
|
});
|
|
6432
6432
|
}
|
|
6433
6433
|
function s(r, i, o, u) {
|
|
6434
|
-
const c = o.toast, h =
|
|
6435
|
-
if ((c.isComplete ??
|
|
6434
|
+
const c = o.toast, h = yn(r, o);
|
|
6435
|
+
if ((c.isComplete ?? gn)(r)) {
|
|
6436
6436
|
const d = n.get(h);
|
|
6437
6437
|
if (d) {
|
|
6438
6438
|
const p = c.completedType?.(r) ?? "success";
|
|
@@ -6463,68 +6463,68 @@ function Sn() {
|
|
|
6463
6463
|
return { handle: e };
|
|
6464
6464
|
}
|
|
6465
6465
|
const Pr = R("notification-store");
|
|
6466
|
-
function
|
|
6466
|
+
function wn(n) {
|
|
6467
6467
|
const e = /* @__PURE__ */ new Map(), t = j([]), s = j([]), r = /* @__PURE__ */ new Map();
|
|
6468
6468
|
let i = 0;
|
|
6469
|
-
const o =
|
|
6470
|
-
function a(
|
|
6471
|
-
e.set(
|
|
6469
|
+
const o = bn().handle, u = new Di(), c = y(() => t.value.filter((x) => x.isNew).length), h = y(() => c.value > 0);
|
|
6470
|
+
function a(x, g) {
|
|
6471
|
+
e.set(x, g);
|
|
6472
6472
|
}
|
|
6473
|
-
function m(
|
|
6474
|
-
if (
|
|
6473
|
+
function m(x) {
|
|
6474
|
+
if (x.notifyType && sn.includes(x.notifyType))
|
|
6475
6475
|
return;
|
|
6476
|
-
let
|
|
6477
|
-
const N = t.value.findIndex((P) => P.id ===
|
|
6476
|
+
let g = x.isNew;
|
|
6477
|
+
const N = t.value.findIndex((P) => P.id === x.id);
|
|
6478
6478
|
if (N !== -1) {
|
|
6479
6479
|
const P = t.value[N];
|
|
6480
|
-
|
|
6480
|
+
g = P.isNew, Object.assign(P, x), P.isNew = g;
|
|
6481
6481
|
} else
|
|
6482
|
-
t.value.push(new Re(
|
|
6483
|
-
const C = s.value.findIndex((P) => P.id ===
|
|
6482
|
+
t.value.push(new Re(x));
|
|
6483
|
+
const C = s.value.findIndex((P) => P.id === x.id);
|
|
6484
6484
|
if (C !== -1) {
|
|
6485
6485
|
const P = s.value[C];
|
|
6486
|
-
Object.assign(P,
|
|
6486
|
+
Object.assign(P, x), P.isNew = g;
|
|
6487
6487
|
} else
|
|
6488
|
-
s.value.push(new Re(
|
|
6489
|
-
const
|
|
6490
|
-
if (
|
|
6488
|
+
s.value.push(new Re(x));
|
|
6489
|
+
const E = x.notifyType ? e.get(x.notifyType) : void 0;
|
|
6490
|
+
if (E && g && o(x, E, d), g && x.notifyType)
|
|
6491
6491
|
for (const P of r.values())
|
|
6492
|
-
P.types.includes(
|
|
6492
|
+
P.types.includes(x.notifyType) && (P.filter && !P.filter(x) || P.handler?.(x));
|
|
6493
6493
|
}
|
|
6494
|
-
function d(
|
|
6495
|
-
const
|
|
6496
|
-
|
|
6497
|
-
const N = s.value.find((C) => C.id ===
|
|
6494
|
+
function d(x) {
|
|
6495
|
+
const g = t.value.find((C) => C.id === x.id);
|
|
6496
|
+
g && (g.isNew = !1);
|
|
6497
|
+
const N = s.value.find((C) => C.id === x.id);
|
|
6498
6498
|
N && (N.isNew = !1);
|
|
6499
6499
|
}
|
|
6500
6500
|
async function p() {
|
|
6501
|
-
t.value.forEach((
|
|
6502
|
-
|
|
6503
|
-
}), s.value.forEach((
|
|
6504
|
-
|
|
6501
|
+
t.value.forEach((x) => {
|
|
6502
|
+
x.isNew = !1;
|
|
6503
|
+
}), s.value.forEach((x) => {
|
|
6504
|
+
x.isNew = !1;
|
|
6505
6505
|
});
|
|
6506
6506
|
try {
|
|
6507
6507
|
await u.markAllAsRead();
|
|
6508
|
-
} catch (
|
|
6509
|
-
Pr.error("markAllAsRead failed:",
|
|
6508
|
+
} catch (x) {
|
|
6509
|
+
Pr.error("markAllAsRead failed:", x);
|
|
6510
6510
|
}
|
|
6511
6511
|
}
|
|
6512
|
-
async function
|
|
6512
|
+
async function b(x = 10) {
|
|
6513
6513
|
try {
|
|
6514
|
-
const
|
|
6514
|
+
const g = new hr({ take: x }), N = await u.searchPushNotification(g);
|
|
6515
6515
|
t.value = N.notifyEvents ?? [];
|
|
6516
|
-
} catch (
|
|
6517
|
-
throw Pr.error("loadHistory failed:",
|
|
6516
|
+
} catch (g) {
|
|
6517
|
+
throw Pr.error("loadHistory failed:", g), g;
|
|
6518
6518
|
}
|
|
6519
6519
|
}
|
|
6520
|
-
function
|
|
6521
|
-
const
|
|
6522
|
-
return r.set(
|
|
6523
|
-
r.delete(
|
|
6520
|
+
function O(x) {
|
|
6521
|
+
const g = ++i;
|
|
6522
|
+
return r.set(g, { id: g, ...x }), () => {
|
|
6523
|
+
r.delete(g);
|
|
6524
6524
|
};
|
|
6525
6525
|
}
|
|
6526
|
-
function
|
|
6527
|
-
return t.value.filter((
|
|
6526
|
+
function T(x) {
|
|
6527
|
+
return t.value.filter((g) => g.notifyType === x);
|
|
6528
6528
|
}
|
|
6529
6529
|
return {
|
|
6530
6530
|
// State
|
|
@@ -6539,36 +6539,36 @@ function xn(n) {
|
|
|
6539
6539
|
ingest: m,
|
|
6540
6540
|
markAsRead: d,
|
|
6541
6541
|
markAllAsRead: p,
|
|
6542
|
-
loadHistory:
|
|
6543
|
-
subscribe:
|
|
6544
|
-
getByType:
|
|
6542
|
+
loadHistory: b,
|
|
6543
|
+
subscribe: O,
|
|
6544
|
+
getByType: T
|
|
6545
6545
|
};
|
|
6546
6546
|
}
|
|
6547
6547
|
let Fe = null;
|
|
6548
|
-
function
|
|
6548
|
+
function Sn() {
|
|
6549
6549
|
if (ut()) {
|
|
6550
|
-
const n = M(
|
|
6550
|
+
const n = M(ui, null);
|
|
6551
6551
|
if (n)
|
|
6552
6552
|
return Fe = n, n;
|
|
6553
6553
|
}
|
|
6554
|
-
return Fe || (Fe =
|
|
6554
|
+
return Fe || (Fe = wn()), Fe;
|
|
6555
6555
|
}
|
|
6556
6556
|
const He = /* @__PURE__ */ new WeakMap();
|
|
6557
|
-
function
|
|
6557
|
+
function Gl(n, e, t) {
|
|
6558
6558
|
He.set(n, { timerId: e, notifId: t });
|
|
6559
6559
|
}
|
|
6560
|
-
function
|
|
6560
|
+
function xn(n) {
|
|
6561
6561
|
if (n && typeof n == "object") {
|
|
6562
6562
|
const e = He.get(n), t = "originalError" in n && n.originalError && typeof n.originalError == "object" ? n.originalError : void 0, s = e ?? (t ? He.get(t) : void 0), r = e ? n : t;
|
|
6563
6563
|
if (s && r)
|
|
6564
|
-
return clearTimeout(s.timerId), Promise.resolve().then(() =>
|
|
6564
|
+
return clearTimeout(s.timerId), Promise.resolve().then(() => mn).then(({ notification: i }) => {
|
|
6565
6565
|
i.remove(s.notifId);
|
|
6566
6566
|
}), He.delete(r), !0;
|
|
6567
6567
|
}
|
|
6568
6568
|
return !1;
|
|
6569
6569
|
}
|
|
6570
6570
|
const vt = Lr(() => {
|
|
6571
|
-
const n =
|
|
6571
|
+
const n = ss();
|
|
6572
6572
|
return {
|
|
6573
6573
|
user: n.user,
|
|
6574
6574
|
loading: n.loading,
|
|
@@ -6585,7 +6585,7 @@ const vt = Lr(() => {
|
|
|
6585
6585
|
signOut: n.signOut
|
|
6586
6586
|
};
|
|
6587
6587
|
}), wt = j([]);
|
|
6588
|
-
function
|
|
6588
|
+
function An() {
|
|
6589
6589
|
const { user: n } = vt();
|
|
6590
6590
|
n.value && (wt.value = n.value?.permissions ?? []);
|
|
6591
6591
|
function e(t) {
|
|
@@ -6601,15 +6601,15 @@ function Cn() {
|
|
|
6601
6601
|
hasAccess: e
|
|
6602
6602
|
};
|
|
6603
6603
|
}
|
|
6604
|
-
const
|
|
6605
|
-
function
|
|
6606
|
-
const n = M(
|
|
6604
|
+
const In = Symbol("AppInsightsOptions"), Cn = Symbol("AppInsightsInstance");
|
|
6605
|
+
function En() {
|
|
6606
|
+
const n = M(Cn, null), { user: e } = vt(), t = M(In, void 0);
|
|
6607
6607
|
function s() {
|
|
6608
6608
|
const r = t?.appName ? `[${t.appName}] ` : "", i = (c) => `${r}${c.name}`;
|
|
6609
6609
|
function o(c) {
|
|
6610
6610
|
if (!n) return;
|
|
6611
6611
|
const h = i(c);
|
|
6612
|
-
n.context.telemetryTrace.traceID =
|
|
6612
|
+
n.context.telemetryTrace.traceID = Us(), n.context.telemetryTrace.name = c.name, n.startTrackPage(h);
|
|
6613
6613
|
}
|
|
6614
6614
|
function u(c) {
|
|
6615
6615
|
if (!n) return;
|
|
@@ -6629,9 +6629,9 @@ function Tn() {
|
|
|
6629
6629
|
appInsights: n
|
|
6630
6630
|
};
|
|
6631
6631
|
}
|
|
6632
|
-
const
|
|
6633
|
-
function
|
|
6634
|
-
const e = j(null), t = ut(), { appInsights: s } =
|
|
6632
|
+
const On = R("use-error-handler");
|
|
6633
|
+
function Tn(n) {
|
|
6634
|
+
const e = j(null), t = ut(), { appInsights: s } = En(), { user: r } = vt(), i = j(!1);
|
|
6635
6635
|
function o() {
|
|
6636
6636
|
e.value = null, t && t.emit("reset");
|
|
6637
6637
|
}
|
|
@@ -6646,7 +6646,7 @@ function Nn(n) {
|
|
|
6646
6646
|
userId: r.value?.id ?? "",
|
|
6647
6647
|
userName: r.value?.userName ?? ""
|
|
6648
6648
|
}
|
|
6649
|
-
}),
|
|
6649
|
+
}), On.error("Captured Error:", c.originalError), t && t.emit("error", c), re(() => {
|
|
6650
6650
|
i.value = !1;
|
|
6651
6651
|
}), !n;
|
|
6652
6652
|
}), {
|
|
@@ -6654,15 +6654,15 @@ function Nn(n) {
|
|
|
6654
6654
|
reset: o
|
|
6655
6655
|
};
|
|
6656
6656
|
}
|
|
6657
|
-
function
|
|
6657
|
+
function Pn(n) {
|
|
6658
6658
|
const e = R(`${n.name}-bus`), t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
6659
6659
|
function r(d) {
|
|
6660
6660
|
const p = n.getKey(d);
|
|
6661
|
-
t.set(p, d), s.size > 0 && a((
|
|
6661
|
+
t.set(p, d), s.size > 0 && a((b) => {
|
|
6662
6662
|
try {
|
|
6663
|
-
n.registerIntoService(
|
|
6664
|
-
} catch (
|
|
6665
|
-
e.warn(`Failed to live-register item (key=${p}):`,
|
|
6663
|
+
n.registerIntoService(b, d);
|
|
6664
|
+
} catch (O) {
|
|
6665
|
+
e.warn(`Failed to live-register item (key=${p}):`, O);
|
|
6666
6666
|
}
|
|
6667
6667
|
});
|
|
6668
6668
|
}
|
|
@@ -6670,24 +6670,24 @@ function kn(n) {
|
|
|
6670
6670
|
t.delete(d), n.unregisterFromService && s.size > 0 && s.forEach((p) => {
|
|
6671
6671
|
try {
|
|
6672
6672
|
n.unregisterFromService(p, d);
|
|
6673
|
-
} catch (
|
|
6674
|
-
e.warn(`Failed to live-unregister item (id=${d}):`,
|
|
6673
|
+
} catch (b) {
|
|
6674
|
+
e.warn(`Failed to live-unregister item (id=${d}):`, b);
|
|
6675
6675
|
}
|
|
6676
6676
|
});
|
|
6677
6677
|
}
|
|
6678
6678
|
function o(d) {
|
|
6679
|
-
for (const [p,
|
|
6680
|
-
d(
|
|
6679
|
+
for (const [p, b] of t)
|
|
6680
|
+
d(b) && t.delete(p);
|
|
6681
6681
|
}
|
|
6682
6682
|
function u() {
|
|
6683
6683
|
return Array.from(t.values());
|
|
6684
6684
|
}
|
|
6685
6685
|
function c(d) {
|
|
6686
|
-
s.add(d), t.forEach((p,
|
|
6686
|
+
s.add(d), t.forEach((p, b) => {
|
|
6687
6687
|
try {
|
|
6688
6688
|
n.registerIntoService(d, p);
|
|
6689
|
-
} catch (
|
|
6690
|
-
e.warn(`Failed to replay item (key=${
|
|
6689
|
+
} catch (O) {
|
|
6690
|
+
e.warn(`Failed to replay item (key=${b}):`, O);
|
|
6691
6691
|
}
|
|
6692
6692
|
});
|
|
6693
6693
|
}
|
|
@@ -6717,39 +6717,39 @@ function kn(n) {
|
|
|
6717
6717
|
function lt(n) {
|
|
6718
6718
|
return n.id !== void 0 ? `id:${String(n.id)}` : n.routeId ? `route:${n.routeId}` : n.url ? `url:${n.url}` : n.groupConfig?.id ? `gc:${n.groupConfig.id}:${n.title}` : n.group ? `g:${n.group}:${n.title}` : `hash:${JSON.stringify(zr(n, "title"))}`;
|
|
6719
6719
|
}
|
|
6720
|
-
const ze = j(/* @__PURE__ */ new Map()), ve =
|
|
6720
|
+
const ze = j(/* @__PURE__ */ new Map()), ve = Pn({
|
|
6721
6721
|
name: "menu-service",
|
|
6722
6722
|
getKey: lt,
|
|
6723
6723
|
registerIntoService: (n, e) => n.addMenuItem(e)
|
|
6724
6724
|
});
|
|
6725
|
-
function
|
|
6725
|
+
function Wl(n) {
|
|
6726
6726
|
ve.preregister(n);
|
|
6727
6727
|
}
|
|
6728
|
-
function
|
|
6728
|
+
function ql(n) {
|
|
6729
6729
|
ve.removePreregistered((e) => br(e, n)), ve.broadcast((e) => e.removeMenuItem(n));
|
|
6730
6730
|
}
|
|
6731
|
-
function
|
|
6731
|
+
function Kl(n, e) {
|
|
6732
6732
|
ze.value.set(n, e), ve.broadcast((t) => {
|
|
6733
6733
|
t.menuBadges.value.set(n, e);
|
|
6734
6734
|
});
|
|
6735
6735
|
}
|
|
6736
|
-
function
|
|
6736
|
+
function Hl(n) {
|
|
6737
6737
|
const e = ve.getFirstInstance();
|
|
6738
6738
|
return e ? e.menuBadges.value.get(n) : ze.value.get(n);
|
|
6739
6739
|
}
|
|
6740
|
-
function
|
|
6740
|
+
function Vl(n) {
|
|
6741
6741
|
ze.value.delete(n), ve.broadcast((e) => {
|
|
6742
6742
|
e.menuBadges.value.delete(n);
|
|
6743
6743
|
});
|
|
6744
6744
|
}
|
|
6745
|
-
function
|
|
6745
|
+
function Zl() {
|
|
6746
6746
|
return ve.getFirstInstance()?.menuBadges ?? ze;
|
|
6747
6747
|
}
|
|
6748
|
-
const Tt = 1 / 0,
|
|
6748
|
+
const Tt = 1 / 0, Nn = 1 / 0;
|
|
6749
6749
|
function br(n, e) {
|
|
6750
6750
|
return lt(n) === lt(e);
|
|
6751
6751
|
}
|
|
6752
|
-
function
|
|
6752
|
+
function kn(n) {
|
|
6753
6753
|
return n.groupConfig ? {
|
|
6754
6754
|
groupId: n.groupConfig.id,
|
|
6755
6755
|
groupTitle: n.groupConfig.title || n.groupConfig.id,
|
|
@@ -6757,22 +6757,22 @@ function Un(n) {
|
|
|
6757
6757
|
groupPriority: n.groupConfig.priority,
|
|
6758
6758
|
groupPermissions: n.groupConfig.permissions
|
|
6759
6759
|
} : {
|
|
6760
|
-
groupId: "group_" +
|
|
6760
|
+
groupId: "group_" + As(n.group),
|
|
6761
6761
|
groupTitle: n.group,
|
|
6762
6762
|
groupIcon: n.groupIcon,
|
|
6763
6763
|
groupPriority: n.priority,
|
|
6764
6764
|
groupPermissions: void 0
|
|
6765
6765
|
};
|
|
6766
6766
|
}
|
|
6767
|
-
function
|
|
6767
|
+
function jn(n, e) {
|
|
6768
6768
|
return (n.priority ?? Tt) - (e.priority ?? Tt);
|
|
6769
6769
|
}
|
|
6770
|
-
function
|
|
6771
|
-
const t = (s) => s.inGroupPriority ?? s.priority ??
|
|
6770
|
+
function Un(n, e) {
|
|
6771
|
+
const t = (s) => s.inGroupPriority ?? s.priority ?? Nn;
|
|
6772
6772
|
return t(n) - t(e);
|
|
6773
6773
|
}
|
|
6774
|
-
function
|
|
6775
|
-
const t =
|
|
6774
|
+
function Dn(n, e) {
|
|
6775
|
+
const t = kn(n), s = {
|
|
6776
6776
|
...zr(n, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
6777
6777
|
}, r = e.get(t.groupId);
|
|
6778
6778
|
if (r) {
|
|
@@ -6798,18 +6798,18 @@ function Rn(n, e) {
|
|
|
6798
6798
|
function Nr(n) {
|
|
6799
6799
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
6800
6800
|
for (const s of n)
|
|
6801
|
-
s.group || s.groupConfig ?
|
|
6802
|
-
return
|
|
6801
|
+
s.group || s.groupConfig ? Dn(s, e) : s.title && t.set(lt(s), { ...s });
|
|
6802
|
+
return Bn([...e.values(), ...t.values()]);
|
|
6803
6803
|
}
|
|
6804
|
-
function
|
|
6804
|
+
function Bn(n) {
|
|
6805
6805
|
return n.map(
|
|
6806
6806
|
(e) => ({
|
|
6807
6807
|
...e,
|
|
6808
|
-
children: e.children ? [...e.children].sort(
|
|
6808
|
+
children: e.children ? [...e.children].sort(Un) : void 0
|
|
6809
6809
|
})
|
|
6810
|
-
).sort(
|
|
6810
|
+
).sort(jn);
|
|
6811
6811
|
}
|
|
6812
|
-
function
|
|
6812
|
+
function Yl() {
|
|
6813
6813
|
const n = j([]);
|
|
6814
6814
|
let e = [];
|
|
6815
6815
|
const t = j(new Map(ze.value));
|
|
@@ -6828,14 +6828,14 @@ function Xl() {
|
|
|
6828
6828
|
};
|
|
6829
6829
|
return ve.replayInto(i), i;
|
|
6830
6830
|
}
|
|
6831
|
-
const be =
|
|
6831
|
+
const be = Ps({
|
|
6832
6832
|
legacy: !1,
|
|
6833
6833
|
globalInjection: !0,
|
|
6834
6834
|
locale: "en",
|
|
6835
6835
|
fallbackLocale: "en",
|
|
6836
6836
|
formatFallbackMessages: !0
|
|
6837
|
-
}),
|
|
6838
|
-
function
|
|
6837
|
+
}), Rn = R("use-breadcrumbs");
|
|
6838
|
+
function Jn() {
|
|
6839
6839
|
const n = Jt([]);
|
|
6840
6840
|
function e(r) {
|
|
6841
6841
|
const i = n.value.findIndex((o) => o.id === r);
|
|
@@ -6848,7 +6848,7 @@ function zn() {
|
|
|
6848
6848
|
try {
|
|
6849
6849
|
await r.clickHandler(u) !== !1 && e(u);
|
|
6850
6850
|
} catch (c) {
|
|
6851
|
-
|
|
6851
|
+
Rn.error("Breadcrumb click handler failed:", c);
|
|
6852
6852
|
}
|
|
6853
6853
|
} : void 0
|
|
6854
6854
|
}, o = n.value.findIndex((u) => u.id === i.id);
|
|
@@ -6862,16 +6862,16 @@ function zn() {
|
|
|
6862
6862
|
n.value = n.value.filter((i) => !r.includes(i.id));
|
|
6863
6863
|
}
|
|
6864
6864
|
return {
|
|
6865
|
-
breadcrumbs:
|
|
6865
|
+
breadcrumbs: y(() => n.value),
|
|
6866
6866
|
push: t,
|
|
6867
6867
|
remove: s
|
|
6868
6868
|
};
|
|
6869
6869
|
}
|
|
6870
|
-
const ke = R("blade-registry"),
|
|
6870
|
+
const ke = R("blade-registry"), $n = Symbol("BladeRegistry");
|
|
6871
6871
|
function kr(n) {
|
|
6872
6872
|
return !(!n || typeof n != "function" && typeof n != "object");
|
|
6873
6873
|
}
|
|
6874
|
-
function
|
|
6874
|
+
function Xl(n) {
|
|
6875
6875
|
const e = Jt(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Map();
|
|
6876
6876
|
function s(a) {
|
|
6877
6877
|
return a.startsWith("/") ? a : `/${a}`;
|
|
@@ -6891,8 +6891,8 @@ function Ql(n) {
|
|
|
6891
6891
|
);
|
|
6892
6892
|
ke.warn(`Blade '${a}' is already registered. Overwriting (allowOverwrite=true).`);
|
|
6893
6893
|
}
|
|
6894
|
-
const
|
|
6895
|
-
(!
|
|
6894
|
+
const b = n.component(a);
|
|
6895
|
+
(!b || b !== m.component) && (b && b !== m.component && (ke.warn(
|
|
6896
6896
|
`Global component '${a}' already exists and is different. Overwriting with new blade component.`
|
|
6897
6897
|
), ke.warn(
|
|
6898
6898
|
`Global component '${a}' already exists and is different. Overwriting with new blade component.`
|
|
@@ -6926,7 +6926,7 @@ function Ql(n) {
|
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
6928
|
...{
|
|
6929
|
-
registeredBladesMap:
|
|
6929
|
+
registeredBladesMap: y(
|
|
6930
6930
|
() => e.value
|
|
6931
6931
|
),
|
|
6932
6932
|
getBlade: i,
|
|
@@ -6936,15 +6936,15 @@ function Ql(n) {
|
|
|
6936
6936
|
_registerBladeFn: r
|
|
6937
6937
|
};
|
|
6938
6938
|
}
|
|
6939
|
-
function
|
|
6940
|
-
const n = M(
|
|
6939
|
+
function is() {
|
|
6940
|
+
const n = M($n);
|
|
6941
6941
|
if (!n)
|
|
6942
6942
|
throw new Error(
|
|
6943
6943
|
"useBladeRegistry must be used after createBladeRegistry is called and provided with BladeRegistryKey."
|
|
6944
6944
|
);
|
|
6945
6945
|
return n;
|
|
6946
6946
|
}
|
|
6947
|
-
const
|
|
6947
|
+
const zn = F({
|
|
6948
6948
|
name: "ErrorInterceptor",
|
|
6949
6949
|
props: {
|
|
6950
6950
|
capture: {
|
|
@@ -6961,17 +6961,17 @@ const Fn = F({
|
|
|
6961
6961
|
}
|
|
6962
6962
|
},
|
|
6963
6963
|
setup(n, { slots: e }) {
|
|
6964
|
-
const t = M(zt, void 0), s = M($t, void 0), r = !!(t && s), { error: i, reset: o } =
|
|
6964
|
+
const t = M(zt, void 0), s = M($t, void 0), r = !!(t && s), { error: i, reset: o } = Tn(r || n.capture);
|
|
6965
6965
|
return r && X(i, (u) => {
|
|
6966
6966
|
const c = t.value.id;
|
|
6967
|
-
u ? (
|
|
6967
|
+
u ? (xn(u), s.setBladeError(c, u)) : s.clearBladeError(c);
|
|
6968
6968
|
}), () => e.default?.({
|
|
6969
6969
|
error: i.value,
|
|
6970
6970
|
reset: o
|
|
6971
6971
|
});
|
|
6972
6972
|
}
|
|
6973
|
-
}),
|
|
6974
|
-
function
|
|
6973
|
+
}), Ln = zn;
|
|
6974
|
+
function Fn(n) {
|
|
6975
6975
|
const e = /* @__PURE__ */ new Map();
|
|
6976
6976
|
function t(i, o) {
|
|
6977
6977
|
e.set(i, o);
|
|
@@ -7000,7 +7000,7 @@ function Gn(n) {
|
|
|
7000
7000
|
cleanup: r
|
|
7001
7001
|
};
|
|
7002
7002
|
}
|
|
7003
|
-
function
|
|
7003
|
+
function ns() {
|
|
7004
7004
|
const n = M(Mr);
|
|
7005
7005
|
if (!n)
|
|
7006
7006
|
throw new Error(
|
|
@@ -7008,12 +7008,146 @@ function is() {
|
|
|
7008
7008
|
);
|
|
7009
7009
|
return n;
|
|
7010
7010
|
}
|
|
7011
|
-
|
|
7011
|
+
const os = /* @__PURE__ */ F({
|
|
7012
|
+
__name: "vc-blade-slot",
|
|
7013
|
+
props: {
|
|
7014
|
+
descriptor: {},
|
|
7015
|
+
closable: { type: Boolean },
|
|
7016
|
+
expanded: { type: Boolean },
|
|
7017
|
+
visible: { type: Boolean },
|
|
7018
|
+
breadcrumbs: {},
|
|
7019
|
+
backButton: {}
|
|
7020
|
+
},
|
|
7021
|
+
emits: ["close", "parentCall"],
|
|
7022
|
+
setup(n, { emit: e }) {
|
|
7023
|
+
const t = n, s = e, r = is(), i = j(!1), o = j(), u = y(() => r.getBladeComponent(t.descriptor.name));
|
|
7024
|
+
Ke(
|
|
7025
|
+
zt,
|
|
7026
|
+
y(() => t.descriptor)
|
|
7027
|
+
), Ke(
|
|
7028
|
+
oi,
|
|
7029
|
+
y(() => ({
|
|
7030
|
+
id: t.descriptor.id,
|
|
7031
|
+
param: t.descriptor.param,
|
|
7032
|
+
options: t.descriptor.options,
|
|
7033
|
+
expandable: t.closable,
|
|
7034
|
+
// expandable when there are multiple blades
|
|
7035
|
+
maximized: i.value,
|
|
7036
|
+
error: t.descriptor.error ?? null,
|
|
7037
|
+
navigation: void 0,
|
|
7038
|
+
// No longer VNode-based
|
|
7039
|
+
breadcrumbs: t.breadcrumbs,
|
|
7040
|
+
title: t.descriptor.title
|
|
7041
|
+
}))
|
|
7042
|
+
), Ke(
|
|
7043
|
+
li,
|
|
7044
|
+
y(() => t.backButton)
|
|
7045
|
+
);
|
|
7046
|
+
const c = ns();
|
|
7047
|
+
X(
|
|
7048
|
+
o,
|
|
7049
|
+
(p) => {
|
|
7050
|
+
if (!p) return;
|
|
7051
|
+
const b = {};
|
|
7052
|
+
for (const O of Object.keys(p))
|
|
7053
|
+
typeof p[O] == "function" && (b[O] = p[O]);
|
|
7054
|
+
Object.keys(b).length > 0 && c.exposeToChildren(t.descriptor.id, b);
|
|
7055
|
+
},
|
|
7056
|
+
{ flush: "post" }
|
|
7057
|
+
), Ut(() => {
|
|
7058
|
+
c.cleanup(t.descriptor.id);
|
|
7059
|
+
});
|
|
7060
|
+
function h() {
|
|
7061
|
+
s("close", t.descriptor.id);
|
|
7062
|
+
}
|
|
7063
|
+
function a(p) {
|
|
7064
|
+
s("parentCall", p, t.descriptor.id);
|
|
7065
|
+
}
|
|
7066
|
+
function m() {
|
|
7067
|
+
i.value = !0;
|
|
7068
|
+
}
|
|
7069
|
+
function d() {
|
|
7070
|
+
i.value = !1;
|
|
7071
|
+
}
|
|
7072
|
+
return (p, b) => (A(), G(L(Ln), { capture: !0 }, {
|
|
7073
|
+
default: me(({ error: O, reset: T }) => [
|
|
7074
|
+
u.value ? Bt((A(), G(Ye(u.value), {
|
|
7075
|
+
key: 0,
|
|
7076
|
+
ref_key: "bladeInstanceRef",
|
|
7077
|
+
ref: o,
|
|
7078
|
+
param: n.descriptor.param,
|
|
7079
|
+
options: n.descriptor.options,
|
|
7080
|
+
closable: n.closable,
|
|
7081
|
+
expanded: n.expanded,
|
|
7082
|
+
"onClose:blade": h,
|
|
7083
|
+
"onParent:call": a,
|
|
7084
|
+
"onExpand:blade": m,
|
|
7085
|
+
"onCollapse:blade": d,
|
|
7086
|
+
onVnodeUnmounted: T
|
|
7087
|
+
}, null, 40, ["param", "options", "closable", "expanded", "onVnodeUnmounted"])), [
|
|
7088
|
+
[gs, n.visible]
|
|
7089
|
+
]) : W("", !0)
|
|
7090
|
+
]),
|
|
7091
|
+
_: 1
|
|
7092
|
+
}));
|
|
7093
|
+
}
|
|
7094
|
+
}), Mn = /* @__PURE__ */ F({
|
|
7095
|
+
__name: "vc-mobile-back-button",
|
|
7096
|
+
props: {
|
|
7097
|
+
breadcrumbs: {},
|
|
7098
|
+
onBack: { type: Function }
|
|
7099
|
+
},
|
|
7100
|
+
setup(n) {
|
|
7101
|
+
const e = n, t = j(), s = j(!1), r = () => {
|
|
7102
|
+
e.onBack();
|
|
7103
|
+
};
|
|
7104
|
+
Es(
|
|
7105
|
+
t,
|
|
7106
|
+
() => {
|
|
7107
|
+
s.value = !0;
|
|
7108
|
+
},
|
|
7109
|
+
{ delay: 500 }
|
|
7110
|
+
);
|
|
7111
|
+
const i = () => {
|
|
7112
|
+
s.value = !1;
|
|
7113
|
+
};
|
|
7114
|
+
return (o, u) => Bt((A(), G(ji, {
|
|
7115
|
+
items: n.breadcrumbs,
|
|
7116
|
+
collapsed: ""
|
|
7117
|
+
}, {
|
|
7118
|
+
trigger: me(({ click: c }) => [
|
|
7119
|
+
V(L(Ds), {
|
|
7120
|
+
as: "button",
|
|
7121
|
+
onTrigger: c
|
|
7122
|
+
}, {
|
|
7123
|
+
default: me(() => [
|
|
7124
|
+
V(L(si), {
|
|
7125
|
+
ref_key: "buttonRef",
|
|
7126
|
+
ref: t,
|
|
7127
|
+
icon: "lucide-arrow-left",
|
|
7128
|
+
"icon-class": "tw-text-neutrals-500",
|
|
7129
|
+
"icon-size": "l",
|
|
7130
|
+
text: "",
|
|
7131
|
+
onClick: r,
|
|
7132
|
+
onContextmenu: u[0] || (u[0] = It(() => {
|
|
7133
|
+
}, ["prevent"]))
|
|
7134
|
+
}, null, 512)
|
|
7135
|
+
]),
|
|
7136
|
+
_: 1
|
|
7137
|
+
}, 8, ["onTrigger"])
|
|
7138
|
+
]),
|
|
7139
|
+
_: 1
|
|
7140
|
+
}, 8, ["items"])), [
|
|
7141
|
+
[L(Fr), i]
|
|
7142
|
+
]);
|
|
7143
|
+
}
|
|
7144
|
+
});
|
|
7145
|
+
let Gn = 0;
|
|
7012
7146
|
function Me() {
|
|
7013
|
-
return `blade_${++
|
|
7147
|
+
return `blade_${++Gn}_${Math.random().toString(36).slice(2, 8)}`;
|
|
7014
7148
|
}
|
|
7015
|
-
function
|
|
7016
|
-
const t = j([]), s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o =
|
|
7149
|
+
function Wn(n, e) {
|
|
7150
|
+
const t = j([]), s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = y(() => t.value[0]), u = y(() => t.value), c = y(() => {
|
|
7017
7151
|
for (let f = t.value.length - 1; f >= 0; f--)
|
|
7018
7152
|
if (t.value[f].visible) return t.value[f];
|
|
7019
7153
|
});
|
|
@@ -7058,7 +7192,7 @@ function qn(n, e) {
|
|
|
7058
7192
|
};
|
|
7059
7193
|
t.value = [I], f.onOpen && r.set(I.id, f.onOpen), f.onClose && i.set(I.id, f.onClose), f.onOpen?.();
|
|
7060
7194
|
}
|
|
7061
|
-
async function
|
|
7195
|
+
async function b(f) {
|
|
7062
7196
|
if (!n.getBlade(f.name))
|
|
7063
7197
|
throw new Error(`[BladeStack] Blade '${f.name}' not found in registry`);
|
|
7064
7198
|
const v = f.parentId ?? c.value?.id ?? o.value?.id;
|
|
@@ -7083,7 +7217,7 @@ function qn(n, e) {
|
|
|
7083
7217
|
};
|
|
7084
7218
|
t.value = [...t.value.slice(0, w + 1), D], f.onOpen && r.set(D.id, f.onOpen), f.onClose && i.set(D.id, f.onClose), f.onOpen?.();
|
|
7085
7219
|
}
|
|
7086
|
-
async function
|
|
7220
|
+
async function O(f) {
|
|
7087
7221
|
const v = t.value.findIndex((J) => J.id === f);
|
|
7088
7222
|
if (v === -1 || v === 0) return !1;
|
|
7089
7223
|
const w = t.value.slice(v);
|
|
@@ -7096,7 +7230,7 @@ function qn(n, e) {
|
|
|
7096
7230
|
}
|
|
7097
7231
|
return !1;
|
|
7098
7232
|
}
|
|
7099
|
-
async function
|
|
7233
|
+
async function T(f) {
|
|
7100
7234
|
const v = c.value;
|
|
7101
7235
|
if (!v)
|
|
7102
7236
|
throw new Error("[BladeStack] No active blade to replace");
|
|
@@ -7124,7 +7258,7 @@ function qn(n, e) {
|
|
|
7124
7258
|
const J = [...t.value.slice(0, w), D, ...t.value.slice(w + 1)];
|
|
7125
7259
|
t.value = J, f.onOpen && r.set(D.id, f.onOpen), f.onClose && i.set(D.id, f.onClose), f.onOpen?.();
|
|
7126
7260
|
}
|
|
7127
|
-
async function
|
|
7261
|
+
async function x(f) {
|
|
7128
7262
|
const v = c.value;
|
|
7129
7263
|
if (!v)
|
|
7130
7264
|
throw new Error("[BladeStack] No active blade to cover");
|
|
@@ -7150,7 +7284,7 @@ function qn(n, e) {
|
|
|
7150
7284
|
}, J = t.value.slice(0, w);
|
|
7151
7285
|
J.push({ ...v, visible: !1 }), J.push(D), t.value = J, f.onOpen && r.set(D.id, f.onOpen), f.onClose && i.set(D.id, f.onClose), f.onOpen?.();
|
|
7152
7286
|
}
|
|
7153
|
-
async function
|
|
7287
|
+
async function g(f) {
|
|
7154
7288
|
const v = t.value.findIndex((D) => D.id === f);
|
|
7155
7289
|
if (v === -1) return;
|
|
7156
7290
|
const w = t.value.slice(v + 1);
|
|
@@ -7162,7 +7296,7 @@ function qn(n, e) {
|
|
|
7162
7296
|
function C(f) {
|
|
7163
7297
|
s.delete(f);
|
|
7164
7298
|
}
|
|
7165
|
-
function
|
|
7299
|
+
function E(f, v) {
|
|
7166
7300
|
const w = t.value.findIndex((D) => D.id === f);
|
|
7167
7301
|
if (w === -1) return;
|
|
7168
7302
|
const I = [...t.value];
|
|
@@ -7174,7 +7308,7 @@ function qn(n, e) {
|
|
|
7174
7308
|
const w = [...t.value];
|
|
7175
7309
|
w[v] = { ...w[v], error: void 0 }, t.value = w;
|
|
7176
7310
|
}
|
|
7177
|
-
function
|
|
7311
|
+
function S(f, v) {
|
|
7178
7312
|
const w = t.value.findIndex((D) => D.id === f);
|
|
7179
7313
|
if (w === -1 || t.value[w].title === v) return;
|
|
7180
7314
|
const I = [...t.value];
|
|
@@ -7190,162 +7324,25 @@ function qn(n, e) {
|
|
|
7190
7324
|
blades: u,
|
|
7191
7325
|
activeBlade: c,
|
|
7192
7326
|
openWorkspace: p,
|
|
7193
|
-
openBlade:
|
|
7194
|
-
closeBlade:
|
|
7195
|
-
closeChildren:
|
|
7196
|
-
replaceCurrentBlade:
|
|
7197
|
-
coverCurrentBlade:
|
|
7327
|
+
openBlade: b,
|
|
7328
|
+
closeBlade: O,
|
|
7329
|
+
closeChildren: g,
|
|
7330
|
+
replaceCurrentBlade: T,
|
|
7331
|
+
coverCurrentBlade: x,
|
|
7198
7332
|
registerBeforeClose: N,
|
|
7199
7333
|
unregisterBeforeClose: C,
|
|
7200
|
-
setBladeError:
|
|
7334
|
+
setBladeError: E,
|
|
7201
7335
|
clearBladeError: P,
|
|
7202
|
-
setBladeTitle:
|
|
7336
|
+
setBladeTitle: S,
|
|
7203
7337
|
_restoreStack: k
|
|
7204
7338
|
};
|
|
7205
7339
|
}
|
|
7206
|
-
function
|
|
7340
|
+
function qn() {
|
|
7207
7341
|
const n = M($t);
|
|
7208
7342
|
if (!n)
|
|
7209
7343
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
7210
7344
|
return n;
|
|
7211
7345
|
}
|
|
7212
|
-
const os = /* @__PURE__ */ F({
|
|
7213
|
-
__name: "vc-blade-slot",
|
|
7214
|
-
props: {
|
|
7215
|
-
descriptor: {},
|
|
7216
|
-
closable: { type: Boolean },
|
|
7217
|
-
expanded: { type: Boolean },
|
|
7218
|
-
visible: { type: Boolean },
|
|
7219
|
-
breadcrumbs: {},
|
|
7220
|
-
backButton: {}
|
|
7221
|
-
},
|
|
7222
|
-
emits: ["close", "parentCall"],
|
|
7223
|
-
setup(n, { emit: e }) {
|
|
7224
|
-
const t = n, s = e, r = ss(), i = ns(), o = j(!1), u = j(), c = g(() => r.getBladeComponent(t.descriptor.name));
|
|
7225
|
-
Ke(
|
|
7226
|
-
zt,
|
|
7227
|
-
g(() => t.descriptor)
|
|
7228
|
-
), Ke(
|
|
7229
|
-
li,
|
|
7230
|
-
g(() => ({
|
|
7231
|
-
id: t.descriptor.id,
|
|
7232
|
-
param: t.descriptor.param,
|
|
7233
|
-
options: t.descriptor.options,
|
|
7234
|
-
expandable: t.closable,
|
|
7235
|
-
// expandable when there are multiple blades
|
|
7236
|
-
maximized: o.value,
|
|
7237
|
-
error: t.descriptor.error ?? null,
|
|
7238
|
-
navigation: void 0,
|
|
7239
|
-
// No longer VNode-based
|
|
7240
|
-
breadcrumbs: t.breadcrumbs,
|
|
7241
|
-
title: u.value?.title
|
|
7242
|
-
}))
|
|
7243
|
-
), Ke(
|
|
7244
|
-
ui,
|
|
7245
|
-
g(() => t.backButton)
|
|
7246
|
-
);
|
|
7247
|
-
const h = is();
|
|
7248
|
-
X(
|
|
7249
|
-
u,
|
|
7250
|
-
(y) => {
|
|
7251
|
-
if (!y) return;
|
|
7252
|
-
const T = {};
|
|
7253
|
-
for (const E of Object.keys(y))
|
|
7254
|
-
typeof y[E] == "function" && (T[E] = y[E]);
|
|
7255
|
-
Object.keys(T).length > 0 && h.exposeToChildren(t.descriptor.id, T);
|
|
7256
|
-
},
|
|
7257
|
-
{ flush: "post" }
|
|
7258
|
-
), Ut(() => {
|
|
7259
|
-
h.cleanup(t.descriptor.id);
|
|
7260
|
-
}), gs(() => {
|
|
7261
|
-
const y = u.value?.title;
|
|
7262
|
-
y !== void 0 && i.setBladeTitle(t.descriptor.id, y);
|
|
7263
|
-
});
|
|
7264
|
-
function a() {
|
|
7265
|
-
s("close", t.descriptor.id);
|
|
7266
|
-
}
|
|
7267
|
-
function m(y) {
|
|
7268
|
-
s("parentCall", y, t.descriptor.id);
|
|
7269
|
-
}
|
|
7270
|
-
function d() {
|
|
7271
|
-
o.value = !0;
|
|
7272
|
-
}
|
|
7273
|
-
function p() {
|
|
7274
|
-
o.value = !1;
|
|
7275
|
-
}
|
|
7276
|
-
return (y, T) => (A(), G(L(Mn), { capture: !0 }, {
|
|
7277
|
-
default: me(({ error: E, reset: S }) => [
|
|
7278
|
-
c.value ? Bt((A(), G(Ye(c.value), {
|
|
7279
|
-
key: 0,
|
|
7280
|
-
ref_key: "bladeInstanceRef",
|
|
7281
|
-
ref: u,
|
|
7282
|
-
param: n.descriptor.param,
|
|
7283
|
-
options: n.descriptor.options,
|
|
7284
|
-
closable: n.closable,
|
|
7285
|
-
expanded: n.expanded,
|
|
7286
|
-
"onClose:blade": a,
|
|
7287
|
-
"onParent:call": m,
|
|
7288
|
-
"onExpand:blade": d,
|
|
7289
|
-
"onCollapse:blade": p,
|
|
7290
|
-
onVnodeUnmounted: S
|
|
7291
|
-
}, null, 40, ["param", "options", "closable", "expanded", "onVnodeUnmounted"])), [
|
|
7292
|
-
[bs, n.visible]
|
|
7293
|
-
]) : W("", !0)
|
|
7294
|
-
]),
|
|
7295
|
-
_: 1
|
|
7296
|
-
}));
|
|
7297
|
-
}
|
|
7298
|
-
}), Kn = /* @__PURE__ */ F({
|
|
7299
|
-
__name: "vc-mobile-back-button",
|
|
7300
|
-
props: {
|
|
7301
|
-
breadcrumbs: {},
|
|
7302
|
-
onBack: { type: Function }
|
|
7303
|
-
},
|
|
7304
|
-
setup(n) {
|
|
7305
|
-
const e = n, t = j(), s = j(!1), r = () => {
|
|
7306
|
-
e.onBack();
|
|
7307
|
-
};
|
|
7308
|
-
Os(
|
|
7309
|
-
t,
|
|
7310
|
-
() => {
|
|
7311
|
-
s.value = !0;
|
|
7312
|
-
},
|
|
7313
|
-
{ delay: 500 }
|
|
7314
|
-
);
|
|
7315
|
-
const i = () => {
|
|
7316
|
-
s.value = !1;
|
|
7317
|
-
};
|
|
7318
|
-
return (o, u) => Bt((A(), G(Di, {
|
|
7319
|
-
items: n.breadcrumbs,
|
|
7320
|
-
collapsed: ""
|
|
7321
|
-
}, {
|
|
7322
|
-
trigger: me(({ click: c }) => [
|
|
7323
|
-
V(L(Bs), {
|
|
7324
|
-
as: "button",
|
|
7325
|
-
onTrigger: c
|
|
7326
|
-
}, {
|
|
7327
|
-
default: me(() => [
|
|
7328
|
-
V(L(ii), {
|
|
7329
|
-
ref_key: "buttonRef",
|
|
7330
|
-
ref: t,
|
|
7331
|
-
icon: "lucide-arrow-left",
|
|
7332
|
-
"icon-class": "tw-text-neutrals-500",
|
|
7333
|
-
"icon-size": "l",
|
|
7334
|
-
text: "",
|
|
7335
|
-
onClick: r,
|
|
7336
|
-
onContextmenu: u[0] || (u[0] = It(() => {
|
|
7337
|
-
}, ["prevent"]))
|
|
7338
|
-
}, null, 512)
|
|
7339
|
-
]),
|
|
7340
|
-
_: 1
|
|
7341
|
-
}, 8, ["onTrigger"])
|
|
7342
|
-
]),
|
|
7343
|
-
_: 1
|
|
7344
|
-
}, 8, ["items"])), [
|
|
7345
|
-
[L(Fr), i]
|
|
7346
|
-
]);
|
|
7347
|
-
}
|
|
7348
|
-
});
|
|
7349
7346
|
function Pt(n, e) {
|
|
7350
7347
|
if (e.length === 0)
|
|
7351
7348
|
return { path: n ? `/${n}` : "/", query: {} };
|
|
@@ -7366,7 +7363,7 @@ function Pt(n, e) {
|
|
|
7366
7363
|
u.visible && u.query && Object.assign(o, u.query);
|
|
7367
7364
|
return { path: i || "/", query: o };
|
|
7368
7365
|
}
|
|
7369
|
-
function
|
|
7366
|
+
function Kn(n, e) {
|
|
7370
7367
|
let t = n.split("/").filter(Boolean);
|
|
7371
7368
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
7372
7369
|
workspaceUrl: t[0],
|
|
@@ -7393,22 +7390,22 @@ function ls(n, e) {
|
|
|
7393
7390
|
}
|
|
7394
7391
|
return { syncUrlPush: t, syncUrlReplace: s };
|
|
7395
7392
|
}
|
|
7396
|
-
const
|
|
7393
|
+
const Hn = ["aria-label"], Vn = {
|
|
7397
7394
|
key: 1,
|
|
7398
7395
|
class: "tw-overflow-hidden tw-flex tw-grow tw-basis-0 tw-relative tw-min-w-0"
|
|
7399
7396
|
}, Ur = /* @__PURE__ */ F({
|
|
7400
7397
|
__name: "vc-blade-navigation-new",
|
|
7401
7398
|
setup(n) {
|
|
7402
|
-
const { t: e } =
|
|
7403
|
-
function
|
|
7404
|
-
return
|
|
7399
|
+
const { t: e } = Ns(), t = qn(), s = ns(), r = ks(), { breadcrumbs: i, push: o, remove: u } = Jn(), { syncUrlReplace: c } = ls(r, t), h = y(() => t.blades.value), a = y(() => t.activeBlade.value), m = y(() => h.value.length > 0), d = y(() => h.value.filter((E) => E.visible).length), p = M(Gr), b = M(ct, void 0), O = y(() => b?.isExpanded.value ?? !1), T = y(() => p.value || O.value ? 1 : 2);
|
|
7400
|
+
function x(E, P) {
|
|
7401
|
+
return E.visible ? P >= d.value - T.value : !1;
|
|
7405
7402
|
}
|
|
7406
|
-
|
|
7403
|
+
Ts(
|
|
7407
7404
|
h,
|
|
7408
|
-
(
|
|
7409
|
-
i.value.forEach((P) => P && u([P.id])),
|
|
7405
|
+
(E) => {
|
|
7406
|
+
i.value.forEach((P) => P && u([P.id])), E.filter((P) => P.visible).forEach((P, S) => {
|
|
7410
7407
|
o({
|
|
7411
|
-
id:
|
|
7408
|
+
id: S.toString(),
|
|
7412
7409
|
title: $r({ title: P.name }, "title"),
|
|
7413
7410
|
clickHandler: async (k) => {
|
|
7414
7411
|
const f = parseInt(k), w = h.value.filter((I) => I.visible)[f + 1];
|
|
@@ -7428,48 +7425,48 @@ const Vn = ["aria-label"], Zn = {
|
|
|
7428
7425
|
debounce: 10
|
|
7429
7426
|
}
|
|
7430
7427
|
);
|
|
7431
|
-
async function
|
|
7432
|
-
await t.closeBlade(
|
|
7428
|
+
async function g(E) {
|
|
7429
|
+
await t.closeBlade(E) || c();
|
|
7433
7430
|
}
|
|
7434
|
-
async function N(
|
|
7431
|
+
async function N(E, P) {
|
|
7435
7432
|
try {
|
|
7436
|
-
const
|
|
7437
|
-
|
|
7438
|
-
} catch (
|
|
7439
|
-
console.warn("[VcBladeNavigation] Parent call failed:",
|
|
7433
|
+
const S = await s.callParent(P, E.method, E.args);
|
|
7434
|
+
E.callback?.(S);
|
|
7435
|
+
} catch (S) {
|
|
7436
|
+
console.warn("[VcBladeNavigation] Parent call failed:", S);
|
|
7440
7437
|
}
|
|
7441
7438
|
}
|
|
7442
|
-
function C(
|
|
7443
|
-
if (!(
|
|
7444
|
-
return
|
|
7445
|
-
breadcrumbs: i.value.slice(0,
|
|
7439
|
+
function C(E) {
|
|
7440
|
+
if (!(E <= 0))
|
|
7441
|
+
return bs(Mn, {
|
|
7442
|
+
breadcrumbs: i.value.slice(0, E),
|
|
7446
7443
|
onBack: async () => {
|
|
7447
|
-
const P = h.value[
|
|
7444
|
+
const P = h.value[E];
|
|
7448
7445
|
P && (await t.closeBlade(P.id) || c());
|
|
7449
7446
|
}
|
|
7450
7447
|
});
|
|
7451
7448
|
}
|
|
7452
|
-
return (
|
|
7449
|
+
return (E, P) => (A(), U("div", {
|
|
7453
7450
|
class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
|
|
7454
7451
|
role: "region",
|
|
7455
7452
|
"aria-label": L(e)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
|
|
7456
7453
|
}, [
|
|
7457
|
-
m.value ? (A(), U("div",
|
|
7458
|
-
(A(!0), U(Xe, null, Rt(h.value, (
|
|
7459
|
-
key:
|
|
7460
|
-
descriptor:
|
|
7454
|
+
m.value ? (A(), U("div", Vn, [
|
|
7455
|
+
(A(!0), U(Xe, null, Rt(h.value, (S, k) => (A(), G(L(os), {
|
|
7456
|
+
key: S.id,
|
|
7457
|
+
descriptor: S,
|
|
7461
7458
|
closable: k > 0,
|
|
7462
|
-
expanded:
|
|
7463
|
-
visible: S
|
|
7459
|
+
expanded: S.id === a.value?.id,
|
|
7460
|
+
visible: x(S, k),
|
|
7464
7461
|
breadcrumbs: L(i).slice(0, k),
|
|
7465
7462
|
"back-button": d.value > 1 ? C(k) : void 0,
|
|
7466
|
-
onClose:
|
|
7463
|
+
onClose: g,
|
|
7467
7464
|
onParentCall: N
|
|
7468
7465
|
}, null, 8, ["descriptor", "closable", "expanded", "visible", "breadcrumbs", "back-button"]))), 128))
|
|
7469
|
-
])) : (A(), G(L(
|
|
7470
|
-
], 8,
|
|
7466
|
+
])) : (A(), G(L(js), { key: 0 }))
|
|
7467
|
+
], 8, Hn));
|
|
7471
7468
|
}
|
|
7472
|
-
}),
|
|
7469
|
+
}), Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7473
7470
|
__proto__: null,
|
|
7474
7471
|
VcBladeNavigation: Ur,
|
|
7475
7472
|
VcBladeNavigationV2: Ur,
|
|
@@ -7482,7 +7479,7 @@ function St(n, e) {
|
|
|
7482
7479
|
Object.keys(Ar).forEach((n) => {
|
|
7483
7480
|
Pe(n, Ar[n]);
|
|
7484
7481
|
});
|
|
7485
|
-
const
|
|
7482
|
+
const Yn = (n, [e, t]) => {
|
|
7486
7483
|
if (!n?.files || !n.files?.length)
|
|
7487
7484
|
return !0;
|
|
7488
7485
|
const s = (o, u, c) => {
|
|
@@ -7505,8 +7502,8 @@ const Xn = (n, [e, t]) => {
|
|
|
7505
7502
|
return u === !1 || typeof u == "string" ? u : !0;
|
|
7506
7503
|
});
|
|
7507
7504
|
};
|
|
7508
|
-
Pe("mindimensions",
|
|
7509
|
-
const
|
|
7505
|
+
Pe("mindimensions", Yn);
|
|
7506
|
+
const Xn = (n, [e]) => {
|
|
7510
7507
|
if (!n?.files || !n.files?.length)
|
|
7511
7508
|
return !0;
|
|
7512
7509
|
const t = e * 1e3, s = (u) => u.size > t, r = [];
|
|
@@ -7514,30 +7511,30 @@ const Qn = (n, [e]) => {
|
|
|
7514
7511
|
r.push(n.files[u]);
|
|
7515
7512
|
return r.map((u) => s(u)).find((u) => u === !0) ? be.global.t("messages.file_weight", { size: e }) : !0;
|
|
7516
7513
|
};
|
|
7517
|
-
Pe("fileWeight",
|
|
7514
|
+
Pe("fileWeight", Xn);
|
|
7518
7515
|
const us = (n, [e], t, s) => {
|
|
7519
7516
|
if (!n || typeof n == "string" && !n.length)
|
|
7520
7517
|
return !0;
|
|
7521
7518
|
let r, i;
|
|
7522
7519
|
return n instanceof Date && (r = n), e instanceof Date && (i = e), typeof n == "string" && (r = new Date(n)), typeof e == "string" && (i = new Date(e)), r?.getTime && r?.getTime() > 0 && i?.getTime && i?.getTime() > 0 && t(i.getTime(), r.getTime()) ? s : !0;
|
|
7523
|
-
},
|
|
7524
|
-
Pe("before",
|
|
7525
|
-
const
|
|
7526
|
-
Pe("after",
|
|
7527
|
-
const
|
|
7528
|
-
Pe("bigint",
|
|
7529
|
-
const kt = R("signalR"), je = j(),
|
|
7520
|
+
}, Qn = (n, [e]) => us(n, [e], (t, s) => t < s, be.global.t("messages.before"));
|
|
7521
|
+
Pe("before", Qn);
|
|
7522
|
+
const _n = (n, [e]) => us(n, [e], (t, s) => t > s, be.global.t("messages.after"));
|
|
7523
|
+
Pe("after", _n);
|
|
7524
|
+
const eo = (n) => Number.isSafeInteger(parseInt(n)) ? !0 : be.global.t("messages.bigint");
|
|
7525
|
+
Pe("bigint", eo);
|
|
7526
|
+
const kt = R("signalR"), je = j(), to = Symbol("updateSignalRCreator");
|
|
7530
7527
|
function Dr(n, e, t) {
|
|
7531
7528
|
n.off("SendSystemEvents"), t && (kt.debug("Setup handler for creator: ", t), n.on("SendSystemEvents", (s) => {
|
|
7532
7529
|
s.creator === t && e.ingest(s);
|
|
7533
7530
|
}));
|
|
7534
7531
|
}
|
|
7535
|
-
const
|
|
7532
|
+
const Ql = {
|
|
7536
7533
|
install(n, e) {
|
|
7537
7534
|
je.value = e?.creator;
|
|
7538
|
-
const t =
|
|
7535
|
+
const t = Sn(), { isAuthenticated: s } = vt();
|
|
7539
7536
|
let r = !1;
|
|
7540
|
-
const i =
|
|
7537
|
+
const i = zs("pushNotificationHub", { enableForVitest: !0 }) ?? new Ls().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Fs.Information).build(), o = () => {
|
|
7541
7538
|
i.start().then(() => {
|
|
7542
7539
|
kt.info("Connected."), Dr(i, t, je.value);
|
|
7543
7540
|
}).catch((c) => {
|
|
@@ -7565,12 +7562,12 @@ const _l = {
|
|
|
7565
7562
|
{ immediate: !0 }
|
|
7566
7563
|
), n.config.globalProperties.$updateSignalRCreator = (c) => {
|
|
7567
7564
|
je.value = c;
|
|
7568
|
-
}, n.provide(
|
|
7565
|
+
}, n.provide(to, (c) => {
|
|
7569
7566
|
je.value = c;
|
|
7570
7567
|
});
|
|
7571
7568
|
}
|
|
7572
7569
|
};
|
|
7573
|
-
async function
|
|
7570
|
+
async function ro(n, e, t, s, r, i) {
|
|
7574
7571
|
if (!t.workspaceUrl) return !1;
|
|
7575
7572
|
const o = e.getBladeByRoute(t.workspaceUrl);
|
|
7576
7573
|
if (!o)
|
|
@@ -7604,13 +7601,13 @@ async function so(n, e, t, s, r, i) {
|
|
|
7604
7601
|
}
|
|
7605
7602
|
return !1;
|
|
7606
7603
|
}
|
|
7607
|
-
async function
|
|
7604
|
+
async function so(n, e, t, s, r) {
|
|
7608
7605
|
if (!n.matched.some((a) => a.meta?.root)) return;
|
|
7609
7606
|
if (!n.matched.some((a) => a.meta?.bladeCatchAll)) {
|
|
7610
7607
|
e.blades.value.length > 0 && e._restoreStack([]);
|
|
7611
7608
|
return;
|
|
7612
7609
|
}
|
|
7613
|
-
const o = Object.values(n.params)?.[0] || "", u =
|
|
7610
|
+
const o = Object.values(n.params)?.[0] || "", u = Kn(n.path, o);
|
|
7614
7611
|
if (!u.workspaceUrl) {
|
|
7615
7612
|
e.blades.value.length > 0 && e._restoreStack([]);
|
|
7616
7613
|
return;
|
|
@@ -7618,23 +7615,23 @@ async function io(n, e, t, s, r) {
|
|
|
7618
7615
|
const c = Object.fromEntries(
|
|
7619
7616
|
Object.entries(n.params).filter(([, a]) => typeof a == "string")
|
|
7620
7617
|
);
|
|
7621
|
-
if (await
|
|
7618
|
+
if (await ro(e, t, u, s, r, c)) {
|
|
7622
7619
|
const { path: a, query: m } = Pt(o, e.blades.value);
|
|
7623
7620
|
return { path: a, query: m, replace: !0 };
|
|
7624
7621
|
}
|
|
7625
7622
|
}
|
|
7626
7623
|
let cs, as, hs, fs;
|
|
7627
|
-
const
|
|
7624
|
+
const _l = {
|
|
7628
7625
|
install(n, e) {
|
|
7629
7626
|
const { router: t } = e;
|
|
7630
|
-
Object.entries(
|
|
7627
|
+
Object.entries(Zn).forEach(([h, a]) => {
|
|
7631
7628
|
n.component(h, a);
|
|
7632
7629
|
}), cs = {
|
|
7633
7630
|
router: e.router
|
|
7634
7631
|
};
|
|
7635
7632
|
const r = n.runWithContext(() => {
|
|
7636
7633
|
try {
|
|
7637
|
-
return
|
|
7634
|
+
return is();
|
|
7638
7635
|
} catch {
|
|
7639
7636
|
console.warn(
|
|
7640
7637
|
"[BladeNavigationPlugin] BladeRegistry not yet available. BladeStack will be created but URL restoration may be deferred."
|
|
@@ -7646,16 +7643,16 @@ const eu = {
|
|
|
7646
7643
|
console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
|
|
7647
7644
|
return;
|
|
7648
7645
|
}
|
|
7649
|
-
const { hasAccess: i } = n.runWithContext(() =>
|
|
7646
|
+
const { hasAccess: i } = n.runWithContext(() => An()), o = Wn(r, i);
|
|
7650
7647
|
n.provide($t, o), as = o;
|
|
7651
|
-
const u =
|
|
7648
|
+
const u = Fn(o);
|
|
7652
7649
|
n.provide(Mr, u), hs = u, fs = r;
|
|
7653
7650
|
const c = t.getRoutes().find((h) => h.meta?.root);
|
|
7654
7651
|
c && t.addRoute(c.name, {
|
|
7655
7652
|
path: ":pathMatch(.*)*",
|
|
7656
7653
|
component: { render: () => null },
|
|
7657
7654
|
meta: { bladeCatchAll: !0 }
|
|
7658
|
-
}), t.beforeEach((h) =>
|
|
7655
|
+
}), t.beforeEach((h) => so(h, o, r, i, t));
|
|
7659
7656
|
}
|
|
7660
7657
|
}, xt = R("use-blade-navigation-adapter"), jt = /* @__PURE__ */ new Set();
|
|
7661
7658
|
function ye(n, e) {
|
|
@@ -7684,10 +7681,10 @@ function Br(n, e, t) {
|
|
|
7684
7681
|
};
|
|
7685
7682
|
}
|
|
7686
7683
|
let Ve, Ze;
|
|
7687
|
-
function
|
|
7684
|
+
function eu() {
|
|
7688
7685
|
Ve = void 0, Ze = void 0, jt.clear();
|
|
7689
7686
|
}
|
|
7690
|
-
function
|
|
7687
|
+
function io() {
|
|
7691
7688
|
const n = as, e = hs, t = fs;
|
|
7692
7689
|
if (!n || !e)
|
|
7693
7690
|
throw new Error(
|
|
@@ -7698,12 +7695,12 @@ function no() {
|
|
|
7698
7695
|
throw new Error(
|
|
7699
7696
|
"[@vc-shell/framework#useBladeNavigation] Vue Router instance is not available."
|
|
7700
7697
|
);
|
|
7701
|
-
return Ve || (Ve =
|
|
7698
|
+
return Ve || (Ve = y(() => {
|
|
7702
7699
|
const r = n.activeBlade.value?.id;
|
|
7703
7700
|
return n.blades.value.map(
|
|
7704
7701
|
(i, o) => Br(i, o, r)
|
|
7705
7702
|
);
|
|
7706
|
-
})), Ze || (Ze =
|
|
7703
|
+
})), Ze || (Ze = y(() => {
|
|
7707
7704
|
const r = n.workspace.value;
|
|
7708
7705
|
if (r)
|
|
7709
7706
|
return Br(r, 0, n.activeBlade.value?.id);
|
|
@@ -7716,7 +7713,7 @@ function no() {
|
|
|
7716
7713
|
activeWorkspace: Ze
|
|
7717
7714
|
};
|
|
7718
7715
|
}
|
|
7719
|
-
function
|
|
7716
|
+
function no(n) {
|
|
7720
7717
|
if (!n)
|
|
7721
7718
|
throw new Error("Blade cannot be null or undefined.");
|
|
7722
7719
|
if (typeof n == "object" && "name" in n && typeof n.name == "string")
|
|
@@ -7724,7 +7721,7 @@ function oo(n) {
|
|
|
7724
7721
|
const e = n;
|
|
7725
7722
|
return e.name || e.__name || "UnknownBlade";
|
|
7726
7723
|
}
|
|
7727
|
-
function
|
|
7724
|
+
function oo() {
|
|
7728
7725
|
const {
|
|
7729
7726
|
bladeStack: n,
|
|
7730
7727
|
messaging: e,
|
|
@@ -7732,27 +7729,27 @@ function lo() {
|
|
|
7732
7729
|
router: s,
|
|
7733
7730
|
blades: r,
|
|
7734
7731
|
activeWorkspace: i
|
|
7735
|
-
} =
|
|
7732
|
+
} = io(), o = ut() ? M(zt, void 0) : void 0, { syncUrlPush: u, syncUrlReplace: c } = ls(s, n);
|
|
7736
7733
|
function h() {
|
|
7737
7734
|
return o ? o.value.id : n.activeBlade.value?.id;
|
|
7738
7735
|
}
|
|
7739
|
-
function a(
|
|
7736
|
+
function a(S) {
|
|
7740
7737
|
const k = n.blades.value;
|
|
7741
|
-
if (
|
|
7742
|
-
return k[
|
|
7738
|
+
if (S >= 0 && S < k.length)
|
|
7739
|
+
return k[S].id;
|
|
7743
7740
|
}
|
|
7744
|
-
async function m(
|
|
7741
|
+
async function m(S, k) {
|
|
7745
7742
|
const v = {
|
|
7746
|
-
name:
|
|
7747
|
-
param:
|
|
7748
|
-
options:
|
|
7749
|
-
onOpen:
|
|
7750
|
-
onClose:
|
|
7751
|
-
replaceCurrentBlade:
|
|
7743
|
+
name: no(S.blade),
|
|
7744
|
+
param: S.param,
|
|
7745
|
+
options: S.options,
|
|
7746
|
+
onOpen: S.onOpen,
|
|
7747
|
+
onClose: S.onClose,
|
|
7748
|
+
replaceCurrentBlade: S.replaceCurrentBlade
|
|
7752
7749
|
};
|
|
7753
7750
|
if (k)
|
|
7754
7751
|
await n.openWorkspace(v);
|
|
7755
|
-
else if (
|
|
7752
|
+
else if (S.replaceCurrentBlade)
|
|
7756
7753
|
await n.coverCurrentBlade(v);
|
|
7757
7754
|
else {
|
|
7758
7755
|
const I = h();
|
|
@@ -7760,20 +7757,20 @@ function lo() {
|
|
|
7760
7757
|
}
|
|
7761
7758
|
n.activeBlade.value?.url && u();
|
|
7762
7759
|
}
|
|
7763
|
-
async function d(
|
|
7760
|
+
async function d(S) {
|
|
7764
7761
|
ye(
|
|
7765
7762
|
"closeBlade(index)",
|
|
7766
7763
|
"useBlade().closeSelf()"
|
|
7767
7764
|
);
|
|
7768
|
-
const k = a(
|
|
7765
|
+
const k = a(S);
|
|
7769
7766
|
if (!k)
|
|
7770
|
-
return xt.error(`closeBlade: No blade found at index ${
|
|
7767
|
+
return xt.error(`closeBlade: No blade found at index ${S}.`), !1;
|
|
7771
7768
|
const f = await n.closeBlade(k);
|
|
7772
7769
|
return f || c(), f;
|
|
7773
7770
|
}
|
|
7774
7771
|
function p() {
|
|
7775
7772
|
ye("goToRoot()");
|
|
7776
|
-
const
|
|
7773
|
+
const S = s.getRoutes(), k = S.find((w) => w.meta?.root), f = S.find((w) => w.aliasOf?.path === k?.path) || k;
|
|
7777
7774
|
if (f?.name)
|
|
7778
7775
|
return {
|
|
7779
7776
|
name: f.name,
|
|
@@ -7782,7 +7779,7 @@ function lo() {
|
|
|
7782
7779
|
const v = Nt(s);
|
|
7783
7780
|
return { path: v ? `/${v}` : "/" };
|
|
7784
7781
|
}
|
|
7785
|
-
async function
|
|
7782
|
+
async function b(S, k) {
|
|
7786
7783
|
ye(
|
|
7787
7784
|
"onParentCall(args, index)",
|
|
7788
7785
|
"useBlade().callParent(method, args)"
|
|
@@ -7797,46 +7794,46 @@ function lo() {
|
|
|
7797
7794
|
try {
|
|
7798
7795
|
const v = await e.callParent(
|
|
7799
7796
|
f,
|
|
7800
|
-
|
|
7801
|
-
|
|
7797
|
+
S.method,
|
|
7798
|
+
S.args
|
|
7802
7799
|
);
|
|
7803
|
-
typeof
|
|
7800
|
+
typeof S.callback == "function" && S.callback(v);
|
|
7804
7801
|
} catch (v) {
|
|
7805
7802
|
xt.error(
|
|
7806
|
-
`onParentCall: Failed to call parent method "${
|
|
7803
|
+
`onParentCall: Failed to call parent method "${S.method}":`,
|
|
7807
7804
|
v
|
|
7808
7805
|
);
|
|
7809
7806
|
}
|
|
7810
7807
|
}
|
|
7811
|
-
function
|
|
7808
|
+
function O(S) {
|
|
7812
7809
|
ye(
|
|
7813
7810
|
"onBeforeClose(cb)",
|
|
7814
7811
|
"useBlade().onBeforeClose(guard)"
|
|
7815
7812
|
);
|
|
7816
7813
|
const k = h();
|
|
7817
7814
|
if (!k) {
|
|
7818
|
-
|
|
7815
|
+
ws("onBeforeClose: Could not determine current blade.");
|
|
7819
7816
|
return;
|
|
7820
7817
|
}
|
|
7821
|
-
n.registerBeforeClose(k, async () => await
|
|
7818
|
+
n.registerBeforeClose(k, async () => await S() === !1);
|
|
7822
7819
|
}
|
|
7823
|
-
function
|
|
7820
|
+
function T(S) {
|
|
7824
7821
|
return t.getBladeComponent(
|
|
7825
|
-
|
|
7822
|
+
S
|
|
7826
7823
|
);
|
|
7827
7824
|
}
|
|
7828
|
-
function S
|
|
7825
|
+
function x(S) {
|
|
7829
7826
|
ye(
|
|
7830
7827
|
"routeResolver",
|
|
7831
7828
|
"plugin-v2 handles URL resolution automatically"
|
|
7832
7829
|
);
|
|
7833
7830
|
}
|
|
7834
|
-
function
|
|
7831
|
+
function g(S) {
|
|
7835
7832
|
ye("setNavigationQuery");
|
|
7836
7833
|
const k = n.workspace.value;
|
|
7837
7834
|
if (!k) return;
|
|
7838
7835
|
const f = k.name.toLowerCase(), v = {};
|
|
7839
|
-
for (const [w, I] of Object.entries(
|
|
7836
|
+
for (const [w, I] of Object.entries(S))
|
|
7840
7837
|
I != null && (v[`${f}_${w}`] = String(I));
|
|
7841
7838
|
s.options.history.replace(
|
|
7842
7839
|
decodeURIComponent(
|
|
@@ -7848,9 +7845,9 @@ function lo() {
|
|
|
7848
7845
|
}
|
|
7849
7846
|
function N() {
|
|
7850
7847
|
ye("getNavigationQuery");
|
|
7851
|
-
const
|
|
7852
|
-
if (!
|
|
7853
|
-
const k =
|
|
7848
|
+
const S = n.workspace.value;
|
|
7849
|
+
if (!S) return;
|
|
7850
|
+
const k = S.name.toLowerCase(), f = new URLSearchParams(
|
|
7854
7851
|
window.location.hash.split("?")[1] || ""
|
|
7855
7852
|
), v = {};
|
|
7856
7853
|
for (const [w, I] of f.entries())
|
|
@@ -7860,23 +7857,23 @@ function lo() {
|
|
|
7860
7857
|
}
|
|
7861
7858
|
return Object.keys(v).length > 0 ? v : void 0;
|
|
7862
7859
|
}
|
|
7863
|
-
function C(
|
|
7864
|
-
const f = a(
|
|
7860
|
+
function C(S, k) {
|
|
7861
|
+
const f = a(S);
|
|
7865
7862
|
f && n.setBladeError(f, k);
|
|
7866
7863
|
}
|
|
7867
|
-
function
|
|
7868
|
-
const k = a(
|
|
7864
|
+
function E(S) {
|
|
7865
|
+
const k = a(S);
|
|
7869
7866
|
k && n.clearBladeError(k);
|
|
7870
7867
|
}
|
|
7871
|
-
const P =
|
|
7868
|
+
const P = y(() => {
|
|
7872
7869
|
if (!o) return;
|
|
7873
|
-
const
|
|
7870
|
+
const S = o.value;
|
|
7874
7871
|
return {
|
|
7875
|
-
idx: n.blades.value.findIndex((v) => v.id ===
|
|
7876
|
-
instance:
|
|
7877
|
-
isVisible:
|
|
7872
|
+
idx: n.blades.value.findIndex((v) => v.id === S.id),
|
|
7873
|
+
instance: S.title != null ? { title: S.title } : void 0,
|
|
7874
|
+
isVisible: S.visible,
|
|
7878
7875
|
error: j(
|
|
7879
|
-
|
|
7876
|
+
S.error ? new Error(String(S.error)) : null
|
|
7880
7877
|
)
|
|
7881
7878
|
};
|
|
7882
7879
|
});
|
|
@@ -7886,26 +7883,26 @@ function lo() {
|
|
|
7886
7883
|
openBlade: m,
|
|
7887
7884
|
closeBlade: d,
|
|
7888
7885
|
goToRoot: p,
|
|
7889
|
-
onParentCall:
|
|
7890
|
-
onBeforeClose:
|
|
7891
|
-
resolveBladeByName:
|
|
7892
|
-
routeResolver:
|
|
7893
|
-
setNavigationQuery:
|
|
7886
|
+
onParentCall: b,
|
|
7887
|
+
onBeforeClose: O,
|
|
7888
|
+
resolveBladeByName: T,
|
|
7889
|
+
routeResolver: x,
|
|
7890
|
+
setNavigationQuery: g,
|
|
7894
7891
|
getNavigationQuery: N,
|
|
7895
7892
|
setBladeError: C,
|
|
7896
|
-
clearBladeError:
|
|
7893
|
+
clearBladeError: E,
|
|
7897
7894
|
currentBladeNavigationData: P
|
|
7898
7895
|
};
|
|
7899
7896
|
}
|
|
7900
|
-
const
|
|
7897
|
+
const lo = {
|
|
7901
7898
|
url: "",
|
|
7902
7899
|
title: "Virto OZ",
|
|
7903
7900
|
width: 362,
|
|
7904
7901
|
expandedWidth: 500,
|
|
7905
7902
|
allowedOrigins: ["*"]
|
|
7906
|
-
},
|
|
7907
|
-
function
|
|
7908
|
-
const n = j("closed"), e = j(!1), t =
|
|
7903
|
+
}, tu = "APP_AI_AGENT_URL", uo = "ai-agent-toggle", co = "lucide-sparkles", ao = "AI Assistant", Ge = R("ai-agent-panel");
|
|
7904
|
+
function ho() {
|
|
7905
|
+
const n = j("closed"), e = j(!1), t = y(() => n.value !== "closed"), s = y(() => n.value === "expanded"), r = () => {
|
|
7909
7906
|
n.value === "closed" && (n.value = "open", Ge.debug("Panel opened"));
|
|
7910
7907
|
}, i = () => {
|
|
7911
7908
|
n.value = "closed", e.value = !1, Ge.debug("Panel closed, reset initialized state");
|
|
@@ -7940,10 +7937,10 @@ function Rr(n) {
|
|
|
7940
7937
|
param: n.param
|
|
7941
7938
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
7942
7939
|
}
|
|
7943
|
-
function
|
|
7940
|
+
function fo(n) {
|
|
7944
7941
|
const { userGetter: e, bladeGetter: t, localeGetter: s, tokenGetter: r } = n, i = j(/* @__PURE__ */ new Map()), o = () => {
|
|
7945
|
-
const
|
|
7946
|
-
return
|
|
7942
|
+
const b = t();
|
|
7943
|
+
return b ? i.value.get(b.id) ?? {
|
|
7947
7944
|
items: [],
|
|
7948
7945
|
type: "list",
|
|
7949
7946
|
suggestions: void 0
|
|
@@ -7952,18 +7949,18 @@ function po(n) {
|
|
|
7952
7949
|
type: "list",
|
|
7953
7950
|
suggestions: void 0
|
|
7954
7951
|
};
|
|
7955
|
-
}, u =
|
|
7952
|
+
}, u = y(() => o().items), c = y(() => o().type), h = y(() => o().suggestions), a = y(() => u.value.length);
|
|
7956
7953
|
return {
|
|
7957
7954
|
contextItems: u,
|
|
7958
7955
|
contextType: c,
|
|
7959
7956
|
contextSuggestions: h,
|
|
7960
7957
|
totalItemsCount: a,
|
|
7961
|
-
setContextData: (
|
|
7962
|
-
const
|
|
7963
|
-
return
|
|
7958
|
+
setContextData: (b, O, T, x) => {
|
|
7959
|
+
const g = t()?.id || x;
|
|
7960
|
+
return g ? b.length === 0 && !T ? (i.value.delete(g), At.debug(`Context cleared for blade: ${g}`), { cleared: !0 }) : (i.value.set(g, { items: b, type: O, suggestions: T }), At.debug(`Context set for blade: ${g}, items: ${b.length}, type: ${O}`), { cleared: !1 }) : (At.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
7964
7961
|
},
|
|
7965
7962
|
buildInitPayload: async () => {
|
|
7966
|
-
const
|
|
7963
|
+
const b = r ? await r() ?? void 0 : void 0;
|
|
7967
7964
|
return {
|
|
7968
7965
|
userId: e()?.id || "",
|
|
7969
7966
|
locale: s(),
|
|
@@ -7971,24 +7968,24 @@ function po(n) {
|
|
|
7971
7968
|
contextType: c.value,
|
|
7972
7969
|
items: Le(u.value),
|
|
7973
7970
|
suggestions: h.value ? Le(h.value) : void 0,
|
|
7974
|
-
accessToken:
|
|
7971
|
+
accessToken: b
|
|
7975
7972
|
};
|
|
7976
7973
|
},
|
|
7977
7974
|
buildUpdatePayload: async () => {
|
|
7978
|
-
const
|
|
7975
|
+
const b = r ? await r() ?? void 0 : void 0;
|
|
7979
7976
|
return {
|
|
7980
7977
|
blade: Rr(t()),
|
|
7981
7978
|
contextType: c.value,
|
|
7982
7979
|
items: Le(u.value),
|
|
7983
7980
|
suggestions: h.value ? Le(h.value) : void 0,
|
|
7984
7981
|
locale: s(),
|
|
7985
|
-
accessToken:
|
|
7982
|
+
accessToken: b
|
|
7986
7983
|
};
|
|
7987
7984
|
}
|
|
7988
7985
|
};
|
|
7989
7986
|
}
|
|
7990
7987
|
const H = R("ai-agent-transport");
|
|
7991
|
-
function
|
|
7988
|
+
function po(n) {
|
|
7992
7989
|
try {
|
|
7993
7990
|
const e = atob(n.content), t = new Array(e.length);
|
|
7994
7991
|
for (let o = 0; o < e.length; o++)
|
|
@@ -7999,86 +7996,86 @@ function mo(n) {
|
|
|
7999
7996
|
H.error("Failed to download file:", e);
|
|
8000
7997
|
}
|
|
8001
7998
|
}
|
|
8002
|
-
function
|
|
7999
|
+
function mo(n) {
|
|
8003
8000
|
const { getConfig: e, isEmbedded: t, navigateToBlade: s, reloadBlade: r } = n, i = Jt(null), o = j(!1), u = j(!1), c = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
8004
|
-
function m(p,
|
|
8001
|
+
function m(p, b) {
|
|
8005
8002
|
switch (p) {
|
|
8006
8003
|
case "PREVIEW_CHANGES": {
|
|
8007
|
-
const
|
|
8008
|
-
h.size === 0 && H.warn("No preview changes handlers registered!"), h.forEach((
|
|
8004
|
+
const T = b;
|
|
8005
|
+
h.size === 0 && H.warn("No preview changes handlers registered!"), h.forEach((x) => {
|
|
8009
8006
|
try {
|
|
8010
|
-
|
|
8011
|
-
} catch (
|
|
8012
|
-
H.error("Error in preview handler:",
|
|
8007
|
+
x(T);
|
|
8008
|
+
} catch (g) {
|
|
8009
|
+
H.error("Error in preview handler:", g);
|
|
8013
8010
|
}
|
|
8014
8011
|
});
|
|
8015
8012
|
break;
|
|
8016
8013
|
}
|
|
8017
8014
|
case "NAVIGATE_TO_APP": {
|
|
8018
|
-
const
|
|
8019
|
-
s &&
|
|
8015
|
+
const T = b;
|
|
8016
|
+
s && T?.bladeName && (s(T.bladeName, T.param, T.options), H.debug(`Navigation requested to: ${T.bladeName}`));
|
|
8020
8017
|
break;
|
|
8021
8018
|
}
|
|
8022
8019
|
case "RELOAD_BLADE":
|
|
8023
8020
|
r && (r(), H.debug("Blade reload requested"));
|
|
8024
8021
|
break;
|
|
8025
8022
|
case "DOWNLOAD_FILE": {
|
|
8026
|
-
const
|
|
8027
|
-
|
|
8023
|
+
const T = b;
|
|
8024
|
+
T && po(T);
|
|
8028
8025
|
break;
|
|
8029
8026
|
}
|
|
8030
8027
|
case "APPLY_CHANGES": {
|
|
8031
|
-
const
|
|
8032
|
-
H.warn("APPLY_CHANGES received but not implemented:",
|
|
8028
|
+
const T = b;
|
|
8029
|
+
H.warn("APPLY_CHANGES received but not implemented:", T?.changes);
|
|
8033
8030
|
break;
|
|
8034
8031
|
}
|
|
8035
8032
|
case "CHAT_ERROR": {
|
|
8036
|
-
const
|
|
8037
|
-
H.error(`Chatbot error [${
|
|
8033
|
+
const T = b;
|
|
8034
|
+
H.error(`Chatbot error [${T?.code}]: ${T?.message}`);
|
|
8038
8035
|
break;
|
|
8039
8036
|
}
|
|
8040
8037
|
}
|
|
8041
|
-
const
|
|
8038
|
+
const O = {
|
|
8042
8039
|
type: p,
|
|
8043
|
-
payload:
|
|
8040
|
+
payload: b,
|
|
8044
8041
|
timestamp: Date.now()
|
|
8045
8042
|
};
|
|
8046
|
-
c.forEach((
|
|
8043
|
+
c.forEach((T) => {
|
|
8047
8044
|
try {
|
|
8048
|
-
|
|
8049
|
-
} catch (
|
|
8050
|
-
H.error("Handler error:",
|
|
8045
|
+
T(O);
|
|
8046
|
+
} catch (x) {
|
|
8047
|
+
H.error("Handler error:", x);
|
|
8051
8048
|
}
|
|
8052
8049
|
});
|
|
8053
8050
|
}
|
|
8054
8051
|
function d(p) {
|
|
8055
|
-
const
|
|
8056
|
-
if (!
|
|
8052
|
+
const O = e().allowedOrigins || ["*"];
|
|
8053
|
+
if (!O.includes("*") && !O.includes(p.origin))
|
|
8057
8054
|
return;
|
|
8058
|
-
const
|
|
8059
|
-
if (!(!
|
|
8060
|
-
switch (H.debug(`Message received: ${
|
|
8055
|
+
const T = p.data;
|
|
8056
|
+
if (!(!T?.type || typeof T.type != "string"))
|
|
8057
|
+
switch (H.debug(`Message received: ${T.type}`), T.type) {
|
|
8061
8058
|
// Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
|
|
8062
8059
|
case "AI_CHAT_MESSAGE": {
|
|
8063
8060
|
if (t) {
|
|
8064
|
-
const
|
|
8065
|
-
|
|
8061
|
+
const x = T.payload;
|
|
8062
|
+
x?.type && m(x.type, x.payload);
|
|
8066
8063
|
}
|
|
8067
8064
|
return;
|
|
8068
8065
|
}
|
|
8069
8066
|
// Normal: chatbot signals it's ready
|
|
8070
8067
|
case "CHAT_READY":
|
|
8071
|
-
a.forEach((
|
|
8068
|
+
a.forEach((x) => {
|
|
8072
8069
|
try {
|
|
8073
|
-
|
|
8074
|
-
} catch (
|
|
8075
|
-
H.error("ChatReady handler error:",
|
|
8070
|
+
x();
|
|
8071
|
+
} catch (g) {
|
|
8072
|
+
H.error("ChatReady handler error:", g);
|
|
8076
8073
|
}
|
|
8077
8074
|
});
|
|
8078
8075
|
break;
|
|
8079
8076
|
// Normal: direct chat protocol messages
|
|
8080
8077
|
default:
|
|
8081
|
-
m(
|
|
8078
|
+
m(T.type, T.payload);
|
|
8082
8079
|
break;
|
|
8083
8080
|
}
|
|
8084
8081
|
}
|
|
@@ -8094,8 +8091,8 @@ function vo(n) {
|
|
|
8094
8091
|
H.warn("Cannot send message: iframe not available");
|
|
8095
8092
|
return;
|
|
8096
8093
|
}
|
|
8097
|
-
const
|
|
8098
|
-
i.value.contentWindow.postMessage(p,
|
|
8094
|
+
const O = e().allowedOrigins?.[0] || "*";
|
|
8095
|
+
i.value.contentWindow.postMessage(p, O), H.debug(`Sent to iframe: ${p.type}`);
|
|
8099
8096
|
},
|
|
8100
8097
|
sendToParent(p) {
|
|
8101
8098
|
if (!window.parent || window.parent === window) {
|
|
@@ -8128,7 +8125,7 @@ function vo(n) {
|
|
|
8128
8125
|
};
|
|
8129
8126
|
}
|
|
8130
8127
|
const We = R("ai-agent-service");
|
|
8131
|
-
function
|
|
8128
|
+
function vo(n) {
|
|
8132
8129
|
const {
|
|
8133
8130
|
userGetter: e,
|
|
8134
8131
|
bladeGetter: t,
|
|
@@ -8138,21 +8135,21 @@ function yo(n) {
|
|
|
8138
8135
|
reloadBlade: o,
|
|
8139
8136
|
initialConfig: u,
|
|
8140
8137
|
isEmbedded: c = !1
|
|
8141
|
-
} = n, h = j({ ...
|
|
8138
|
+
} = n, h = j({ ...lo, ...u }), a = ho(), m = fo({
|
|
8142
8139
|
userGetter: e,
|
|
8143
8140
|
bladeGetter: t,
|
|
8144
8141
|
localeGetter: s,
|
|
8145
8142
|
tokenGetter: r
|
|
8146
|
-
}), d =
|
|
8143
|
+
}), d = mo({
|
|
8147
8144
|
getConfig: () => h.value,
|
|
8148
8145
|
isEmbedded: c,
|
|
8149
8146
|
navigateToBlade: i,
|
|
8150
8147
|
reloadBlade: o
|
|
8151
|
-
}), p =
|
|
8148
|
+
}), p = y(() => ({
|
|
8152
8149
|
user: e(),
|
|
8153
8150
|
currentBlade: t(),
|
|
8154
8151
|
items: m.contextItems.value
|
|
8155
|
-
})),
|
|
8152
|
+
})), b = async () => {
|
|
8156
8153
|
if (d.pendingInitContext.value && d.iframeRef.value?.contentWindow) {
|
|
8157
8154
|
d.pendingInitContext.value = !1, a.isInitialized.value = !0;
|
|
8158
8155
|
const C = await m.buildInitPayload();
|
|
@@ -8163,7 +8160,7 @@ function yo(n) {
|
|
|
8163
8160
|
d.iframeRef.value?.contentWindow ? (a.isInitialized.value = !0, m.buildInitPayload().then((C) => {
|
|
8164
8161
|
d.sendToIframe({ type: "INIT_CONTEXT", payload: C }), We.info("Chatbot ready, sent INIT_CONTEXT");
|
|
8165
8162
|
})) : (d.pendingInitContext.value = !0, We.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
8166
|
-
}), X(d.iframeRef, () =>
|
|
8163
|
+
}), X(d.iframeRef, () => b()), X(
|
|
8167
8164
|
() => ({ currentBlade: p.value.currentBlade, items: p.value.items }),
|
|
8168
8165
|
async () => {
|
|
8169
8166
|
if (c) {
|
|
@@ -8178,10 +8175,10 @@ function yo(n) {
|
|
|
8178
8175
|
},
|
|
8179
8176
|
{ deep: !0 }
|
|
8180
8177
|
);
|
|
8181
|
-
const
|
|
8182
|
-
d.setIframeRef(C),
|
|
8183
|
-
}, N = (C,
|
|
8184
|
-
const { cleared: k } = m.setContextData(C,
|
|
8178
|
+
const O = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.open(), T = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.close(), x = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.toggle(), g = (C) => {
|
|
8179
|
+
d.setIframeRef(C), b();
|
|
8180
|
+
}, N = (C, E, P, S) => {
|
|
8181
|
+
const { cleared: k } = m.setContextData(C, E, P, S);
|
|
8185
8182
|
c && k && d.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
8186
8183
|
};
|
|
8187
8184
|
return d.startListening(), c && (d.sendToParent({
|
|
@@ -8192,13 +8189,13 @@ function yo(n) {
|
|
|
8192
8189
|
panelState: a.panelState,
|
|
8193
8190
|
config: h,
|
|
8194
8191
|
context: p,
|
|
8195
|
-
isOpen:
|
|
8192
|
+
isOpen: y(() => !c && a.isOpen.value),
|
|
8196
8193
|
isExpanded: a.isExpanded,
|
|
8197
8194
|
totalItemsCount: m.totalItemsCount,
|
|
8198
8195
|
// Panel control
|
|
8199
|
-
openPanel:
|
|
8200
|
-
closePanel:
|
|
8201
|
-
togglePanel:
|
|
8196
|
+
openPanel: O,
|
|
8197
|
+
closePanel: T,
|
|
8198
|
+
togglePanel: x,
|
|
8202
8199
|
expandPanel: () => a.expand(),
|
|
8203
8200
|
collapsePanel: () => a.collapse(),
|
|
8204
8201
|
// Configuration
|
|
@@ -8206,13 +8203,13 @@ function yo(n) {
|
|
|
8206
8203
|
h.value = { ...h.value, ...C };
|
|
8207
8204
|
},
|
|
8208
8205
|
// Communication
|
|
8209
|
-
sendMessage: (C,
|
|
8210
|
-
d.sendToIframe({ type: C, payload:
|
|
8206
|
+
sendMessage: (C, E) => {
|
|
8207
|
+
d.sendToIframe({ type: C, payload: E });
|
|
8211
8208
|
},
|
|
8212
8209
|
onMessage: d.onMessage,
|
|
8213
8210
|
// Internal API
|
|
8214
8211
|
iframeRef: d.iframeRef,
|
|
8215
|
-
_setIframeRef:
|
|
8212
|
+
_setIframeRef: g,
|
|
8216
8213
|
_startListening: d.startListening,
|
|
8217
8214
|
_stopListening: d.stopListening,
|
|
8218
8215
|
_setContextData: N,
|
|
@@ -8220,8 +8217,8 @@ function yo(n) {
|
|
|
8220
8217
|
};
|
|
8221
8218
|
}
|
|
8222
8219
|
const ge = R("use-ai-agent");
|
|
8223
|
-
function
|
|
8224
|
-
const e = M(
|
|
8220
|
+
function ru(n) {
|
|
8221
|
+
const e = M(ci), { user: t, getAccessToken: s } = tn(), { blades: r, openBlade: i, resolveBladeByName: o } = oo(), u = n?.isEmbedded, c = vo({
|
|
8225
8222
|
userGetter: () => {
|
|
8226
8223
|
if (t.value)
|
|
8227
8224
|
return {
|
|
@@ -8255,12 +8252,12 @@ function su(n) {
|
|
|
8255
8252
|
isEmbedded: u
|
|
8256
8253
|
});
|
|
8257
8254
|
if (Ke(ct, c), ge.debug("AiAgentService provided"), n?.addGlobalToolbarButton ?? !0) {
|
|
8258
|
-
const a = M(
|
|
8255
|
+
const a = M(ai, null);
|
|
8259
8256
|
a ? (a.registerToolbarItem(
|
|
8260
8257
|
{
|
|
8261
|
-
id:
|
|
8262
|
-
icon:
|
|
8263
|
-
title:
|
|
8258
|
+
id: uo,
|
|
8259
|
+
icon: co,
|
|
8260
|
+
title: ao,
|
|
8264
8261
|
clickHandler: () => {
|
|
8265
8262
|
c.togglePanel();
|
|
8266
8263
|
}
|
|
@@ -8271,10 +8268,10 @@ function su(n) {
|
|
|
8271
8268
|
}
|
|
8272
8269
|
return c;
|
|
8273
8270
|
}
|
|
8274
|
-
function
|
|
8271
|
+
function su() {
|
|
8275
8272
|
const n = M(ct);
|
|
8276
8273
|
if (!n)
|
|
8277
|
-
throw ge.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new
|
|
8274
|
+
throw ge.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Hs("AiAgentService");
|
|
8278
8275
|
return {
|
|
8279
8276
|
// State
|
|
8280
8277
|
panelState: n.panelState,
|
|
@@ -8296,7 +8293,7 @@ function iu() {
|
|
|
8296
8293
|
onMessage: n.onMessage
|
|
8297
8294
|
};
|
|
8298
8295
|
}
|
|
8299
|
-
function
|
|
8296
|
+
function iu(n) {
|
|
8300
8297
|
return {
|
|
8301
8298
|
id: "ai-agent-toggle",
|
|
8302
8299
|
icon: n?.icon ?? "lucide-sparkles",
|
|
@@ -8306,11 +8303,11 @@ function nu(n) {
|
|
|
8306
8303
|
}
|
|
8307
8304
|
};
|
|
8308
8305
|
}
|
|
8309
|
-
const
|
|
8306
|
+
const yo = ["width", "height"], go = ["clip-path"], bo = {
|
|
8310
8307
|
key: 1,
|
|
8311
8308
|
d: "M72.9199 46.4165C73.2527 46.9495 73.5831 47.4996 73.9092 48.0679C78.4022 55.8976 79.0605 66.3551 76.7793 76.6079C74.5635 86.5668 69.6096 96.1504 62.9795 102.692L58.1514 105.48C52.5725 108.701 45.699 108.701 40.1201 105.48L21.665 94.8247C29.1398 95.4723 37.0781 94.4072 44.3848 91.9233C54.5984 88.4512 63.7463 82.1497 68.6807 73.6548C75.124 62.5619 75.4351 53.2694 72.9199 46.4165ZM56.5205 29.5093C65.5697 29.5331 75.1259 33.9964 83.0215 40.8853C89.9848 46.9608 95.5441 54.8286 98.2715 62.9478V71.9058C98.2715 78.3478 94.8348 84.301 89.2559 87.522L69.4658 98.9468C74.0688 92.6731 77.4601 84.9996 79.207 77.1479C81.5723 66.517 80.9666 55.3703 76.0654 46.8296C69.6817 35.7054 61.7917 30.789 54.6006 29.5396C55.2271 29.5179 55.867 29.5076 56.5205 29.5093ZM0 50.688C3.16812 57.476 8.04614 63.7935 13.8389 68.853C21.9305 75.9204 31.9368 80.6465 41.7578 80.6724C54.5833 80.706 62.7851 76.3308 67.4629 70.728C67.1684 71.2812 66.8584 71.8408 66.5303 72.4058C61.9844 80.2318 53.417 86.2251 43.584 89.5679C34.4355 92.6779 24.3375 93.4401 15.6328 91.3423L9.01562 87.522C3.43667 84.301 0 78.3478 0 71.9058V50.688ZM26.7559 10.1313C22.5672 16.2131 19.6599 23.483 18.2695 30.9126C16.3077 41.3962 17.3358 52.3558 22.2188 60.8647C28.6034 71.9905 36.4946 76.9061 43.6865 78.1548C43.0594 78.1765 42.4188 78.1868 41.7646 78.1851C32.7113 78.1612 23.2602 73.7801 15.4746 66.98C8.2197 60.6434 2.52684 52.3035 0 43.7075V35.9897C6.33247e-05 29.5479 3.43687 23.5955 9.01562 20.3745L26.7559 10.1313ZM51.2432 31.6978C54.0287 31.7659 57.0796 32.4389 60.1875 33.9976C58.8529 33.7029 57.5584 33.677 56.3965 33.9722L57.0088 36.3833C58.4774 36.0102 60.6741 36.4134 63.0332 37.8237C65.3553 39.212 67.6865 41.4953 69.375 44.5923C70.7081 47.0376 71.6489 50.015 71.8535 53.4839C71.4414 52.1828 70.818 51.0505 69.9824 50.1929L68.2012 51.9282C69.2585 53.0135 70.0076 55.1176 69.9658 57.8657C69.9246 60.5708 69.1121 63.731 67.2744 66.7417C65.8225 69.1203 63.7129 71.4251 60.8086 73.3374C61.7311 72.329 62.4012 71.2217 62.7266 70.0679L60.333 69.3931C59.9218 70.8514 58.4742 72.5523 56.0732 73.8901C53.71 75.207 50.5672 76.0837 47.041 75.9976C44.2551 75.9294 41.204 75.2549 38.0957 73.6958C39.4307 73.9907 40.7254 74.0184 41.8877 73.7231L41.2754 71.312C39.8069 71.6851 37.6101 71.2818 35.251 69.8716C32.9289 68.4834 30.5977 66.2 28.9092 63.103C27.5754 60.6565 26.6337 57.6775 26.4297 54.2065C26.8418 55.5096 27.4661 56.6438 28.3027 57.5024L30.084 55.7661C29.0267 54.6807 28.2775 52.5767 28.3193 49.8286C28.3606 47.1236 29.173 43.9633 31.0107 40.9526C32.4621 38.5751 34.5702 36.2706 37.4727 34.3589C36.5514 35.3666 35.8827 36.4736 35.5576 37.6265L37.9512 38.3013C38.3625 36.8429 39.8101 35.142 42.2109 33.8042C44.5742 32.4874 47.717 31.6116 51.2432 31.6978ZM40.1201 2.4165C45.6991 -0.804509 52.5724 -0.804509 58.1514 2.4165L75.6777 12.5356C68.4683 12.0708 60.8765 13.1991 53.8691 15.6333C43.6671 19.1774 34.5353 25.5492 29.6035 34.0396C23.1612 45.1305 22.8486 54.4223 25.3623 61.2749C25.0301 60.7429 24.7004 60.1936 24.375 59.6265C19.8639 51.765 18.8286 41.4457 20.7139 31.3706C22.4486 22.1007 26.633 13.1734 32.6709 6.71631L40.1201 2.4165ZM54.6855 17.9829C63.3703 14.966 72.9092 14.0715 81.3008 15.7817L89.2559 20.3745C94.8346 23.5955 98.2714 29.5479 98.2715 35.9897V56.4692C95.0606 49.9731 90.2759 43.9144 84.6562 39.0112C76.4636 31.8632 66.3524 27.0488 56.5273 27.0229C43.6978 26.9893 35.4935 31.3659 30.8164 36.9712C31.1117 36.4161 31.4247 35.8554 31.7539 35.2886C36.3024 27.4582 44.8633 21.395 54.6855 17.9829Z",
|
|
8312
8309
|
fill: "url(#virto-oz-gradient-animated)"
|
|
8313
|
-
},
|
|
8310
|
+
}, wo = ["id"], So = {
|
|
8314
8311
|
key: 1,
|
|
8315
8312
|
id: "virto-oz-gradient-animated",
|
|
8316
8313
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -8326,7 +8323,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8326
8323
|
animated: { type: Boolean, default: !1 }
|
|
8327
8324
|
},
|
|
8328
8325
|
setup(n) {
|
|
8329
|
-
const e =
|
|
8326
|
+
const e = y(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
8330
8327
|
return (t, s) => (A(), U("svg", {
|
|
8331
8328
|
width: n.width,
|
|
8332
8329
|
height: n.height,
|
|
@@ -8339,7 +8336,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8339
8336
|
d: "M40.1199 2.41576C45.6989 -0.805254 52.5724 -0.805253 58.1514 2.41576L89.2556 20.3738C94.8345 23.5948 98.2713 29.5475 98.2713 35.9895V71.9055C98.2713 78.3475 94.8345 84.3002 89.2556 87.5212L58.1514 105.479C52.5724 108.7 45.6989 108.7 40.1199 105.479L9.01574 87.5212C3.43678 84.3002 0 78.3475 0 71.9055V35.9895C0 29.5475 3.43678 23.5948 9.01574 20.3738L40.1199 2.41576Z",
|
|
8340
8337
|
fill: "white"
|
|
8341
8338
|
}, null, -1)),
|
|
8342
|
-
n.animated ? (A(), U("path",
|
|
8339
|
+
n.animated ? (A(), U("path", bo)) : (A(), U("g", {
|
|
8343
8340
|
key: 0,
|
|
8344
8341
|
"clip-path": `url(#${e.value})`
|
|
8345
8342
|
}, [...s[0] || (s[0] = [
|
|
@@ -8356,7 +8353,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8356
8353
|
})
|
|
8357
8354
|
])
|
|
8358
8355
|
], -1)
|
|
8359
|
-
])], 8,
|
|
8356
|
+
])], 8, go)),
|
|
8360
8357
|
s[4] || (s[4] = $("path", {
|
|
8361
8358
|
d: "M72.1266 54.0945C72.1266 60.0873 74.3028 71.0379 60.6238 82.8517C65.2871 73.0587 55.8339 77.1002 49.1209 77.1002C36.4152 77.1002 26.1152 66.8002 26.1152 54.0945C26.1152 41.3889 36.4152 31.0889 49.1209 31.0889C61.8266 31.0889 72.1266 41.3889 72.1266 54.0945Z",
|
|
8362
8359
|
fill: "white"
|
|
@@ -8388,14 +8385,14 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8388
8385
|
id: e.value
|
|
8389
8386
|
}, [...s[1] || (s[1] = [
|
|
8390
8387
|
$("path", { d: "M72.9199 46.4165C73.2527 46.9495 73.5831 47.4996 73.9092 48.0679C78.4022 55.8976 79.0605 66.3551 76.7793 76.6079C74.5635 86.5668 69.6096 96.1504 62.9795 102.692L58.1514 105.48C52.5725 108.701 45.699 108.701 40.1201 105.48L21.665 94.8247C29.1398 95.4723 37.0781 94.4072 44.3848 91.9233C54.5984 88.4512 63.7463 82.1497 68.6807 73.6548C75.124 62.5619 75.4351 53.2694 72.9199 46.4165ZM56.5205 29.5093C65.5697 29.5331 75.1259 33.9964 83.0215 40.8853C89.9848 46.9608 95.5441 54.8286 98.2715 62.9478V71.9058C98.2715 78.3478 94.8348 84.301 89.2559 87.522L69.4658 98.9468C74.0688 92.6731 77.4601 84.9996 79.207 77.1479C81.5723 66.517 80.9666 55.3703 76.0654 46.8296C69.6817 35.7054 61.7917 30.789 54.6006 29.5396C55.2271 29.5179 55.867 29.5076 56.5205 29.5093ZM0 50.688C3.16812 57.476 8.04614 63.7935 13.8389 68.853C21.9305 75.9204 31.9368 80.6465 41.7578 80.6724C54.5833 80.706 62.7851 76.3308 67.4629 70.728C67.1684 71.2812 66.8584 71.8408 66.5303 72.4058C61.9844 80.2318 53.417 86.2251 43.584 89.5679C34.4355 92.6779 24.3375 93.4401 15.6328 91.3423L9.01562 87.522C3.43667 84.301 0 78.3478 0 71.9058V50.688ZM26.7559 10.1313C22.5672 16.2131 19.6599 23.483 18.2695 30.9126C16.3077 41.3962 17.3358 52.3558 22.2188 60.8647C28.6034 71.9905 36.4946 76.9061 43.6865 78.1548C43.0594 78.1765 42.4188 78.1868 41.7646 78.1851C32.7113 78.1612 23.2602 73.7801 15.4746 66.98C8.2197 60.6434 2.52684 52.3035 0 43.7075V35.9897C6.33247e-05 29.5479 3.43687 23.5955 9.01562 20.3745L26.7559 10.1313ZM51.2432 31.6978C54.0287 31.7659 57.0796 32.4389 60.1875 33.9976C58.8529 33.7029 57.5584 33.677 56.3965 33.9722L57.0088 36.3833C58.4774 36.0102 60.6741 36.4134 63.0332 37.8237C65.3553 39.212 67.6865 41.4953 69.375 44.5923C70.7081 47.0376 71.6489 50.015 71.8535 53.4839C71.4414 52.1828 70.818 51.0505 69.9824 50.1929L68.2012 51.9282C69.2585 53.0135 70.0076 55.1176 69.9658 57.8657C69.9246 60.5708 69.1121 63.731 67.2744 66.7417C65.8225 69.1203 63.7129 71.4251 60.8086 73.3374C61.7311 72.329 62.4012 71.2217 62.7266 70.0679L60.333 69.3931C59.9218 70.8514 58.4742 72.5523 56.0732 73.8901C53.71 75.207 50.5672 76.0837 47.041 75.9976C44.2551 75.9294 41.204 75.2549 38.0957 73.6958C39.4307 73.9907 40.7254 74.0184 41.8877 73.7231L41.2754 71.312C39.8069 71.6851 37.6101 71.2818 35.251 69.8716C32.9289 68.4834 30.5977 66.2 28.9092 63.103C27.5754 60.6565 26.6337 57.6775 26.4297 54.2065C26.8418 55.5096 27.4661 56.6438 28.3027 57.5024L30.084 55.7661C29.0267 54.6807 28.2775 52.5767 28.3193 49.8286C28.3606 47.1236 29.173 43.9633 31.0107 40.9526C32.4621 38.5751 34.5702 36.2706 37.4727 34.3589C36.5514 35.3666 35.8827 36.4736 35.5576 37.6265L37.9512 38.3013C38.3625 36.8429 39.8101 35.142 42.2109 33.8042C44.5742 32.4874 47.717 31.6116 51.2432 31.6978ZM40.1201 2.4165C45.6991 -0.804509 52.5724 -0.804509 58.1514 2.4165L75.6777 12.5356C68.4683 12.0708 60.8765 13.1991 53.8691 15.6333C43.6671 19.1774 34.5353 25.5492 29.6035 34.0396C23.1612 45.1305 22.8486 54.4223 25.3623 61.2749C25.0301 60.7429 24.7004 60.1936 24.375 59.6265C19.8639 51.765 18.8286 41.4457 20.7139 31.3706C22.4486 22.1007 26.633 13.1734 32.6709 6.71631L40.1201 2.4165ZM54.6855 17.9829C63.3703 14.966 72.9092 14.0715 81.3008 15.7817L89.2559 20.3745C94.8346 23.5955 98.2714 29.5479 98.2715 35.9897V56.4692C95.0606 49.9731 90.2759 43.9144 84.6562 39.0112C76.4636 31.8632 66.3524 27.0488 56.5273 27.0229C43.6978 26.9893 35.4935 31.3659 30.8164 36.9712C31.1117 36.4161 31.4247 35.8554 31.7539 35.2886C36.3024 27.4582 44.8633 21.395 54.6855 17.9829Z" }, null, -1)
|
|
8391
|
-
])], 8,
|
|
8392
|
-
n.animated ? (A(), U("linearGradient",
|
|
8393
|
-
|
|
8388
|
+
])], 8, wo)),
|
|
8389
|
+
n.animated ? (A(), U("linearGradient", So, [...s[2] || (s[2] = [
|
|
8390
|
+
Ss('<stop offset="0%" stop-color="#FF9533"><animate attributeName="stop-color" values="#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="25%" stop-color="#FF4FBB"><animate attributeName="stop-color" values="#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="50%" stop-color="#EAFF4F"><animate attributeName="stop-color" values="#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="75%" stop-color="#1C91FC"><animate attributeName="stop-color" values="#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="100%" stop-color="#9A2DF8"><animate attributeName="stop-color" values="#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8" dur="4s" repeatCount="indefinite"></animate></stop>', 5)
|
|
8394
8391
|
])])) : W("", !0)
|
|
8395
8392
|
])
|
|
8396
|
-
], 8,
|
|
8393
|
+
], 8, yo));
|
|
8397
8394
|
}
|
|
8398
|
-
}),
|
|
8395
|
+
}), xo = { class: "vc-ai-agent-header" }, Ao = { class: "vc-ai-agent-header__icon" }, Io = { class: "vc-ai-agent-header__wrapper" }, Co = { class: "vc-ai-agent-header__content" }, Eo = { class: "vc-ai-agent-header__title" }, Oo = { class: "vc-ai-agent-header__controls" }, To = /* @__PURE__ */ F({
|
|
8399
8396
|
__name: "VcAiAgentHeader",
|
|
8400
8397
|
props: {
|
|
8401
8398
|
title: {},
|
|
@@ -8404,20 +8401,20 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8404
8401
|
},
|
|
8405
8402
|
emits: ["close", "expand", "collapse"],
|
|
8406
8403
|
setup(n) {
|
|
8407
|
-
return (e, t) => (A(), U("div",
|
|
8408
|
-
$("div",
|
|
8404
|
+
return (e, t) => (A(), U("div", xo, [
|
|
8405
|
+
$("div", Ao, [
|
|
8409
8406
|
V(ds, {
|
|
8410
8407
|
width: 22,
|
|
8411
8408
|
height: 24,
|
|
8412
8409
|
"show-dots": ""
|
|
8413
8410
|
})
|
|
8414
8411
|
]),
|
|
8415
|
-
$("div",
|
|
8416
|
-
$("div",
|
|
8417
|
-
$("div",
|
|
8412
|
+
$("div", Io, [
|
|
8413
|
+
$("div", Co, [
|
|
8414
|
+
$("div", Eo, pe(n.title), 1)
|
|
8418
8415
|
])
|
|
8419
8416
|
]),
|
|
8420
|
-
$("div",
|
|
8417
|
+
$("div", Oo, [
|
|
8421
8418
|
n.isExpanded ? (A(), U("div", {
|
|
8422
8419
|
key: 0,
|
|
8423
8420
|
class: "vc-ai-agent-header__button",
|
|
@@ -8443,32 +8440,32 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8443
8440
|
])
|
|
8444
8441
|
]));
|
|
8445
8442
|
}
|
|
8446
|
-
}),
|
|
8443
|
+
}), Po = { class: "vc-ai-agent-loader" }, No = { class: "vc-ai-agent-loader__content" }, ko = { class: "vc-ai-agent-loader__logo" }, jo = {
|
|
8447
8444
|
key: 0,
|
|
8448
8445
|
class: "vc-ai-agent-loader__text"
|
|
8449
|
-
},
|
|
8446
|
+
}, Uo = /* @__PURE__ */ F({
|
|
8450
8447
|
__name: "VcAiAgentLoader",
|
|
8451
8448
|
props: {
|
|
8452
8449
|
text: {}
|
|
8453
8450
|
},
|
|
8454
8451
|
setup(n) {
|
|
8455
|
-
return (e, t) => (A(), U("div",
|
|
8456
|
-
$("div",
|
|
8457
|
-
$("div",
|
|
8452
|
+
return (e, t) => (A(), U("div", Po, [
|
|
8453
|
+
$("div", No, [
|
|
8454
|
+
$("div", ko, [
|
|
8458
8455
|
V(ds, {
|
|
8459
8456
|
width: 80,
|
|
8460
8457
|
height: 87,
|
|
8461
8458
|
animated: ""
|
|
8462
8459
|
})
|
|
8463
8460
|
]),
|
|
8464
|
-
n.text ? (A(), U("p",
|
|
8461
|
+
n.text ? (A(), U("p", jo, pe(n.text), 1)) : W("", !0)
|
|
8465
8462
|
])
|
|
8466
8463
|
]));
|
|
8467
8464
|
}
|
|
8468
|
-
}),
|
|
8465
|
+
}), Do = { class: "vc-ai-agent-iframe" }, Bo = ["src"], Ro = {
|
|
8469
8466
|
key: 1,
|
|
8470
8467
|
class: "vc-ai-agent-iframe__placeholder"
|
|
8471
|
-
},
|
|
8468
|
+
}, Jo = /* @__PURE__ */ F({
|
|
8472
8469
|
__name: "VcAiAgentIframe",
|
|
8473
8470
|
props: {
|
|
8474
8471
|
url: {}
|
|
@@ -8484,10 +8481,10 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8484
8481
|
};
|
|
8485
8482
|
return X(() => s.url, () => {
|
|
8486
8483
|
o.value = !0;
|
|
8487
|
-
}), (c, h) => (A(), U("div",
|
|
8484
|
+
}), (c, h) => (A(), U("div", Do, [
|
|
8488
8485
|
V(Dt, { name: "fade" }, {
|
|
8489
8486
|
default: me(() => [
|
|
8490
|
-
o.value && n.url ? (A(), G(
|
|
8487
|
+
o.value && n.url ? (A(), G(Uo, {
|
|
8491
8488
|
key: 0,
|
|
8492
8489
|
text: c.$t("AI_AGENT.LOADING")
|
|
8493
8490
|
}, null, 8, ["text"])) : W("", !0)
|
|
@@ -8503,7 +8500,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8503
8500
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
8504
8501
|
allow: "clipboard-read; clipboard-write",
|
|
8505
8502
|
onLoad: u
|
|
8506
|
-
}, null, 42,
|
|
8503
|
+
}, null, 42, Bo)) : (A(), U("div", Ro, [
|
|
8507
8504
|
V(L(ie), {
|
|
8508
8505
|
icon: "lucide-sparkles",
|
|
8509
8506
|
size: "xl",
|
|
@@ -8513,19 +8510,19 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8513
8510
|
]))
|
|
8514
8511
|
]));
|
|
8515
8512
|
}
|
|
8516
|
-
}),
|
|
8513
|
+
}), $o = { class: "vc-ai-agent-panel__content" }, nu = /* @__PURE__ */ F({
|
|
8517
8514
|
__name: "VcAiAgentPanel",
|
|
8518
8515
|
setup(n) {
|
|
8519
|
-
const e = M(ct), t = M(
|
|
8516
|
+
const e = M(ct), t = M(fi, !1);
|
|
8520
8517
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
8521
|
-
const s =
|
|
8518
|
+
const s = y(
|
|
8522
8519
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
8523
|
-
), r =
|
|
8520
|
+
), r = y(() => !t && (e?.isOpen.value ?? !1)), i = y(() => e?.isExpanded.value ?? !1), o = y(() => e?.totalItemsCount.value ?? 0), u = y(() => ({
|
|
8524
8521
|
width: i.value ? `${s.value.expandedWidth ?? 500}px` : `${s.value.width ?? 362}px`
|
|
8525
8522
|
})), c = () => e?.closePanel(), h = () => e?.expandPanel(), a = () => e?.collapsePanel(), m = (d) => {
|
|
8526
8523
|
e?._setIframeRef(d);
|
|
8527
8524
|
};
|
|
8528
|
-
return
|
|
8525
|
+
return xs(() => {
|
|
8529
8526
|
e?._setIframeRef(null);
|
|
8530
8527
|
}), (d, p) => (A(), G(Dt, { name: "ai-panel-slide" }, {
|
|
8531
8528
|
default: me(() => [
|
|
@@ -8536,7 +8533,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8536
8533
|
}]),
|
|
8537
8534
|
style: Te(u.value)
|
|
8538
8535
|
}, [
|
|
8539
|
-
V(
|
|
8536
|
+
V(To, {
|
|
8540
8537
|
title: s.value.title,
|
|
8541
8538
|
"is-expanded": i.value,
|
|
8542
8539
|
"items-count": o.value,
|
|
@@ -8544,8 +8541,8 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8544
8541
|
onExpand: h,
|
|
8545
8542
|
onCollapse: a
|
|
8546
8543
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
8547
|
-
$("div",
|
|
8548
|
-
V(
|
|
8544
|
+
$("div", $o, [
|
|
8545
|
+
V(Jo, {
|
|
8549
8546
|
url: s.value.url,
|
|
8550
8547
|
onIframeReady: m
|
|
8551
8548
|
}, null, 8, ["url"])
|
|
@@ -8557,105 +8554,105 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
|
|
|
8557
8554
|
}
|
|
8558
8555
|
});
|
|
8559
8556
|
export {
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8557
|
+
Cn as $,
|
|
8558
|
+
tu as A,
|
|
8559
|
+
ei as B,
|
|
8560
|
+
Gr as C,
|
|
8561
|
+
lo as D,
|
|
8562
|
+
Cl as E,
|
|
8563
|
+
Qi as F,
|
|
8564
|
+
El as G,
|
|
8565
|
+
Ol as H,
|
|
8566
|
+
Hs as I,
|
|
8567
|
+
Tl as J,
|
|
8568
|
+
Pl as K,
|
|
8569
|
+
ci as L,
|
|
8570
|
+
fl as M,
|
|
8571
|
+
nn as N,
|
|
8572
|
+
gl as O,
|
|
8573
|
+
vl as P,
|
|
8574
|
+
Yl as Q,
|
|
8575
|
+
yl as R,
|
|
8576
|
+
Ml as S,
|
|
8577
|
+
ai as T,
|
|
8578
|
+
ui as U,
|
|
8579
|
+
Xl as V,
|
|
8580
|
+
wl as W,
|
|
8581
|
+
_l as X,
|
|
8582
|
+
Ql as Y,
|
|
8583
|
+
In as Z,
|
|
8584
|
+
ji as _,
|
|
8585
|
+
si as a,
|
|
8589
8586
|
rr as a$,
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8587
|
+
En as a0,
|
|
8588
|
+
Yi as a1,
|
|
8589
|
+
bl as a2,
|
|
8593
8590
|
Lt as a3,
|
|
8594
|
-
|
|
8591
|
+
hi as a4,
|
|
8595
8592
|
he as a5,
|
|
8596
8593
|
Ft as a6,
|
|
8597
|
-
|
|
8594
|
+
Ul as a7,
|
|
8598
8595
|
Q as a8,
|
|
8599
|
-
|
|
8596
|
+
Dl as a9,
|
|
8600
8597
|
ht as aA,
|
|
8601
8598
|
Vt as aB,
|
|
8602
|
-
|
|
8599
|
+
Hr as aC,
|
|
8603
8600
|
Zt as aD,
|
|
8604
8601
|
ft as aE,
|
|
8605
8602
|
Yt as aF,
|
|
8606
|
-
|
|
8607
|
-
|
|
8603
|
+
Wi as aG,
|
|
8604
|
+
Vr as aH,
|
|
8608
8605
|
Xt as aI,
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8606
|
+
Ri as aJ,
|
|
8607
|
+
Gi as aK,
|
|
8608
|
+
fi as aL,
|
|
8609
|
+
Ji as aM,
|
|
8610
|
+
Ln as aN,
|
|
8611
|
+
Ui as aO,
|
|
8615
8612
|
Qt as aP,
|
|
8616
8613
|
se as aQ,
|
|
8617
|
-
|
|
8614
|
+
ml as aR,
|
|
8618
8615
|
_t as aS,
|
|
8619
8616
|
_e as aT,
|
|
8620
|
-
|
|
8617
|
+
Nl as aU,
|
|
8621
8618
|
er as aV,
|
|
8622
|
-
|
|
8619
|
+
$l as aW,
|
|
8623
8620
|
et as aX,
|
|
8624
|
-
|
|
8625
|
-
|
|
8621
|
+
qi as aY,
|
|
8622
|
+
$i as aZ,
|
|
8626
8623
|
tr as a_,
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8624
|
+
li as aa,
|
|
8625
|
+
al as ab,
|
|
8626
|
+
ll as ac,
|
|
8630
8627
|
Mr as ad,
|
|
8631
8628
|
$t as ae,
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8629
|
+
rs as af,
|
|
8630
|
+
Bl as ag,
|
|
8631
|
+
Wr as ah,
|
|
8635
8632
|
Mt as ai,
|
|
8636
8633
|
Gt as aj,
|
|
8637
|
-
|
|
8634
|
+
qr as ak,
|
|
8638
8635
|
Wt as al,
|
|
8639
8636
|
qt as am,
|
|
8640
8637
|
at as an,
|
|
8641
8638
|
Qe as ao,
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8639
|
+
kl as ap,
|
|
8640
|
+
Kr as aq,
|
|
8641
|
+
pl as ar,
|
|
8642
|
+
Rl as as,
|
|
8646
8643
|
Kt as at,
|
|
8647
8644
|
we as au,
|
|
8648
|
-
|
|
8645
|
+
Sl as av,
|
|
8649
8646
|
Ht as aw,
|
|
8650
|
-
|
|
8651
|
-
|
|
8647
|
+
Mi as ax,
|
|
8648
|
+
Jl as ay,
|
|
8652
8649
|
De as az,
|
|
8653
|
-
|
|
8654
|
-
|
|
8650
|
+
Ai as b,
|
|
8651
|
+
_n as b$,
|
|
8655
8652
|
sr as b0,
|
|
8656
8653
|
ir as b1,
|
|
8657
8654
|
nr as b2,
|
|
8658
|
-
|
|
8655
|
+
zl as b3,
|
|
8659
8656
|
or as b4,
|
|
8660
8657
|
lr as b5,
|
|
8661
8658
|
ur as b6,
|
|
@@ -8663,111 +8660,111 @@ export {
|
|
|
8663
8660
|
fe as b8,
|
|
8664
8661
|
tt as b9,
|
|
8665
8662
|
Oe as bA,
|
|
8666
|
-
|
|
8663
|
+
Xr as bB,
|
|
8667
8664
|
fr as bC,
|
|
8668
|
-
|
|
8665
|
+
Bi as bD,
|
|
8669
8666
|
ee as bE,
|
|
8670
8667
|
dr as bF,
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8668
|
+
nl as bG,
|
|
8669
|
+
Li as bH,
|
|
8670
|
+
Il as bI,
|
|
8674
8671
|
pr as bJ,
|
|
8675
|
-
|
|
8672
|
+
Fi as bK,
|
|
8676
8673
|
le as bL,
|
|
8677
|
-
|
|
8678
|
-
|
|
8674
|
+
Zi as bM,
|
|
8675
|
+
Qr as bN,
|
|
8679
8676
|
mr as bO,
|
|
8680
8677
|
Ie as bP,
|
|
8681
8678
|
vr as bQ,
|
|
8682
8679
|
ot as bR,
|
|
8683
|
-
|
|
8680
|
+
_r as bS,
|
|
8684
8681
|
yr as bT,
|
|
8685
|
-
|
|
8686
|
-
|
|
8682
|
+
es as bU,
|
|
8683
|
+
il as bV,
|
|
8687
8684
|
Ur as bW,
|
|
8688
8685
|
os as bX,
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8686
|
+
ts as bY,
|
|
8687
|
+
ss as bZ,
|
|
8688
|
+
eu as b_,
|
|
8689
|
+
ul as ba,
|
|
8693
8690
|
rt as bb,
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8691
|
+
Ll as bc,
|
|
8692
|
+
Al as bd,
|
|
8693
|
+
xl as be,
|
|
8694
|
+
hl as bf,
|
|
8695
|
+
Zr as bg,
|
|
8699
8696
|
ar as bh,
|
|
8700
|
-
|
|
8697
|
+
Fl as bi,
|
|
8701
8698
|
Ae as bj,
|
|
8702
|
-
|
|
8699
|
+
Ki as bk,
|
|
8703
8700
|
Be as bl,
|
|
8704
8701
|
st as bm,
|
|
8705
8702
|
dt as bn,
|
|
8706
|
-
|
|
8703
|
+
Hi as bo,
|
|
8707
8704
|
pt as bp,
|
|
8708
8705
|
it as bq,
|
|
8709
8706
|
mt as br,
|
|
8710
|
-
|
|
8711
|
-
|
|
8707
|
+
zi as bs,
|
|
8708
|
+
Vi as bt,
|
|
8712
8709
|
Re as bu,
|
|
8713
|
-
|
|
8710
|
+
Di as bv,
|
|
8714
8711
|
hr as bw,
|
|
8715
8712
|
nt as bx,
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8713
|
+
ol as by,
|
|
8714
|
+
Yr as bz,
|
|
8715
|
+
Ei as c,
|
|
8716
|
+
Qn as c0,
|
|
8717
|
+
eo as c1,
|
|
8718
|
+
Xn as c2,
|
|
8719
|
+
qs as c3,
|
|
8720
|
+
Hl as c4,
|
|
8721
|
+
Zl as c5,
|
|
8722
|
+
Vs as c6,
|
|
8723
|
+
rl as c7,
|
|
8724
|
+
sl as c8,
|
|
8725
|
+
Yn as c9,
|
|
8726
|
+
Vl as ca,
|
|
8727
|
+
ql as cb,
|
|
8728
|
+
Kl as cc,
|
|
8729
|
+
to as cd,
|
|
8730
|
+
ns as ce,
|
|
8731
|
+
qn as cf,
|
|
8732
|
+
Jn as cg,
|
|
8733
|
+
hn as ch,
|
|
8734
|
+
Tn as ci,
|
|
8735
|
+
ln as cj,
|
|
8736
|
+
tn as ck,
|
|
8737
|
+
cl,
|
|
8741
8738
|
ve as cm,
|
|
8742
|
-
|
|
8739
|
+
Pn as cn,
|
|
8743
8740
|
as as co,
|
|
8744
8741
|
hs as cp,
|
|
8745
8742
|
cs as cq,
|
|
8746
8743
|
ls as cr,
|
|
8747
|
-
|
|
8744
|
+
ru as cs,
|
|
8748
8745
|
St as ct,
|
|
8749
|
-
|
|
8746
|
+
mn as cu,
|
|
8750
8747
|
ie as d,
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8748
|
+
ni as e,
|
|
8749
|
+
di as f,
|
|
8750
|
+
nu as g,
|
|
8751
|
+
iu as h,
|
|
8752
|
+
su as i,
|
|
8756
8753
|
ct as j,
|
|
8757
|
-
|
|
8754
|
+
oi as k,
|
|
8758
8755
|
R as l,
|
|
8759
|
-
|
|
8760
|
-
|
|
8756
|
+
Sn as m,
|
|
8757
|
+
dl as n,
|
|
8761
8758
|
zt as o,
|
|
8762
8759
|
Ct as p,
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8760
|
+
$n as q,
|
|
8761
|
+
Wl as r,
|
|
8762
|
+
Gl as s,
|
|
8766
8763
|
Z as t,
|
|
8767
|
-
|
|
8764
|
+
ii as u,
|
|
8768
8765
|
be as v,
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8766
|
+
An as w,
|
|
8767
|
+
jl as x,
|
|
8768
|
+
oo as y,
|
|
8772
8769
|
vt as z
|
|
8773
8770
|
};
|