@vc-shell/framework 2.0.0-alpha.29 → 2.0.0-alpha.30
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 +15 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Db771GeP.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js} +1249 -1228
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Ce5JuGln.js → VcTableAdapter.vue_vue_type_style_index_0_lang-CR4ei-0r.js} +6050 -5956
- package/dist/chunks/{index-DG6mwrja.js → index-BZeKYd8J.js} +1 -1
- package/dist/chunks/{index-WxG6Hq5V.js → index-BzpX90RF.js} +2 -2
- package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-CYlMO79c.js → vc-toast.vue_vue_type_style_index_0_lang-DsKZR5xz.js} +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +27 -0
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/useBlade/index.d.ts +5 -1
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/framework.js +104 -102
- package/dist/index.css +1 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.js +2 -1
- package/dist/locales/en.js +2 -1
- package/dist/locales/en.json +2 -1
- package/dist/locales/types.d.ts +1 -0
- 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/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.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-data-table/components/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- package/package.json +4 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o 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
|
|
9
|
-
import { u as
|
|
10
|
-
import { f as
|
|
11
|
-
import { defineRule as
|
|
12
|
-
import { a as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { H as
|
|
1
|
+
import { defineComponent as G, computed as v, onMounted as Te, openBlock as _, createElementBlock as R, normalizeStyle as _e, normalizeClass as q, toDisplayString as he, markRaw as Rt, createBlock as W, resolveDynamicComponent as Fe, createElementVNode as $, mergeProps as we, createCommentVNode as K, resolveComponent as je, inject as F, unref as D, renderSlot as xe, ref as O, watch as V, nextTick as ae, onBeforeUnmount as st, toValue as le, getCurrentInstance as me, withKeys as pt, withModifiers as Ve, Teleport as Yt, createVNode as Y, Transition as it, withCtx as fe, withDirectives as ot, Fragment as Me, renderList as lt, createTextVNode as mt, toRef as kt, reactive as Xt, createApp as Vt, onErrorCaptured as Qt, shallowRef as ut, provide as Ee, vShow as er, h as tr, isRef as rr, createStaticVNode as nr, onUnmounted as ar } from "vue";
|
|
2
|
+
import { o as Bt, s as sr, c as Re } from "./vendor-lodash-es-BwHYzZ39.js";
|
|
3
|
+
import { u as ir, a as or, o as lr } from "./vendor-vueuse-core-CPOkeLul.js";
|
|
4
|
+
import { u as ur, j as $t, k as cr } from "./vendor-vueuse-shared-Byno6iDO.js";
|
|
5
|
+
import { c as dr, u as hr } from "./vendor-vue-i18n-BSCeQYoP.js";
|
|
6
|
+
import { useRouter as fr, RouterView as pr } from "vue-router";
|
|
7
|
+
import { C as mr } from "./vendor-microsoft-applicationinsights-core-js-DYtaESwI.js";
|
|
8
|
+
import { v as Nt, O as vr } from "./vendor-vueuse-components-C3DWJalC.js";
|
|
9
|
+
import { u as gr } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
10
|
+
import { f as br, s as yr, o as vt, b as xr } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
11
|
+
import { defineRule as Se } from "vee-validate";
|
|
12
|
+
import { a as gt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
13
|
+
import { _ as Er } from "./vendor-cypress-signalr-mock-itnm2wpA.js";
|
|
14
|
+
import { H as wr, L as Cr } from "./vendor-microsoft-signalr-Bgpbb4fW.js";
|
|
15
15
|
import "./ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
|
|
16
|
-
import { L as
|
|
17
|
-
const
|
|
16
|
+
import { L as _r } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
17
|
+
const Sr = /* @__PURE__ */ G({
|
|
18
18
|
__name: "vc-material-icon",
|
|
19
19
|
props: {
|
|
20
20
|
icon: {},
|
|
@@ -25,19 +25,19 @@ const Cr = /* @__PURE__ */ L({
|
|
|
25
25
|
},
|
|
26
26
|
setup(s) {
|
|
27
27
|
const e = s, t = v(() => typeof e.customSize == "number" && e.customSize > 0), n = v(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
28
|
-
return
|
|
29
|
-
}), (r, a) => (
|
|
30
|
-
class:
|
|
28
|
+
return Te(() => {
|
|
29
|
+
}), (r, a) => (_(), R("span", {
|
|
30
|
+
class: q([
|
|
31
31
|
"vc-material-icon",
|
|
32
32
|
"material-symbols-" + s.type,
|
|
33
33
|
!t.value && `vc-material-icon--${s.size}`,
|
|
34
34
|
s.variant ? `vc-material-icon--${s.variant}` : ""
|
|
35
35
|
]),
|
|
36
|
-
style:
|
|
36
|
+
style: _e(n.value),
|
|
37
37
|
"aria-hidden": "true"
|
|
38
38
|
}, he(s.icon), 7));
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
40
|
+
}), Ar = /* @__PURE__ */ G({
|
|
41
41
|
__name: "vc-bootstrap-icon",
|
|
42
42
|
props: {
|
|
43
43
|
icon: {},
|
|
@@ -47,37 +47,37 @@ const Cr = /* @__PURE__ */ L({
|
|
|
47
47
|
},
|
|
48
48
|
setup(s) {
|
|
49
49
|
const e = s, t = v(() => typeof e.customSize == "number" && e.customSize > 0), n = v(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
50
|
-
|
|
50
|
+
Te(() => {
|
|
51
51
|
});
|
|
52
52
|
const r = v(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
53
|
-
return (a, o) => (
|
|
54
|
-
class:
|
|
53
|
+
return (a, o) => (_(), R("i", {
|
|
54
|
+
class: q([
|
|
55
55
|
"vc-bootstrap-icon",
|
|
56
56
|
!t.value && `vc-bootstrap-icon--${s.size}`,
|
|
57
57
|
r.value,
|
|
58
58
|
s.variant ? `vc-bootstrap-icon--${s.variant}` : ""
|
|
59
59
|
]),
|
|
60
|
-
style:
|
|
60
|
+
style: _e(n.value),
|
|
61
61
|
"aria-hidden": "true"
|
|
62
62
|
}, null, 6));
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
function
|
|
65
|
+
function Ur() {
|
|
66
66
|
return Math.random().toString(36).substring(2, 9);
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const bt = {
|
|
69
69
|
debug: 0,
|
|
70
70
|
info: 1,
|
|
71
71
|
warn: 2,
|
|
72
72
|
error: 3,
|
|
73
73
|
none: 4
|
|
74
|
-
},
|
|
74
|
+
}, Ir = {
|
|
75
75
|
level: "warn",
|
|
76
76
|
prefix: "@vc-shell/framework",
|
|
77
77
|
enabled: !0
|
|
78
78
|
};
|
|
79
|
-
function
|
|
80
|
-
const e = { ...
|
|
79
|
+
function N(s) {
|
|
80
|
+
const e = { ...Ir }, t = s ? `[${e.prefix}#${s}]` : `[${e.prefix}]`, n = (r) => e.enabled ? bt[r] >= bt[e.level] : !1;
|
|
81
81
|
return {
|
|
82
82
|
/**
|
|
83
83
|
* Log debug messages (only in development)
|
|
@@ -106,7 +106,7 @@ function j(s) {
|
|
|
106
106
|
/**
|
|
107
107
|
* Create a child logger with additional context
|
|
108
108
|
*/
|
|
109
|
-
child: (r) =>
|
|
109
|
+
child: (r) => N(s ? `${s}:${r}` : r),
|
|
110
110
|
/**
|
|
111
111
|
* Set the log level for this logger instance
|
|
112
112
|
*/
|
|
@@ -121,17 +121,17 @@ function j(s) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
core:
|
|
126
|
-
ui:
|
|
127
|
-
shared:
|
|
128
|
-
plugins:
|
|
129
|
-
services:
|
|
130
|
-
composables:
|
|
124
|
+
const Ws = N(), Hs = {
|
|
125
|
+
core: N("core"),
|
|
126
|
+
ui: N("ui"),
|
|
127
|
+
shared: N("shared"),
|
|
128
|
+
plugins: N("plugins"),
|
|
129
|
+
services: N("services"),
|
|
130
|
+
composables: N("composables")
|
|
131
131
|
};
|
|
132
|
-
class
|
|
132
|
+
class se extends Error {
|
|
133
133
|
constructor(e, t, n) {
|
|
134
|
-
super(e), this.code = t, this.context = n, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this,
|
|
134
|
+
super(e), this.code = t, this.context = n, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, se);
|
|
135
135
|
}
|
|
136
136
|
toJSON() {
|
|
137
137
|
return {
|
|
@@ -143,17 +143,17 @@ class ae extends Error {
|
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class Ks extends se {
|
|
147
147
|
constructor(e, t) {
|
|
148
148
|
super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
class
|
|
151
|
+
class qs extends se {
|
|
152
152
|
constructor(e, t) {
|
|
153
153
|
super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
class
|
|
156
|
+
class Tr extends se {
|
|
157
157
|
constructor(e, t) {
|
|
158
158
|
super(`${e} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
159
159
|
serviceName: e,
|
|
@@ -161,7 +161,7 @@ class Ur extends ae {
|
|
|
161
161
|
}), this.name = "InjectionError";
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
class
|
|
164
|
+
class Zs extends se {
|
|
165
165
|
constructor(e, t, n) {
|
|
166
166
|
super(`Failed to register '${e}': ${t}`, "REGISTRATION_ERROR", {
|
|
167
167
|
componentName: e,
|
|
@@ -169,7 +169,7 @@ class Ks extends ae {
|
|
|
169
169
|
}), this.name = "RegistrationError";
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
class
|
|
172
|
+
class Ys extends se {
|
|
173
173
|
constructor(e, t, n) {
|
|
174
174
|
super(e, "BLADE_ERROR", {
|
|
175
175
|
bladeId: t,
|
|
@@ -177,7 +177,7 @@ class qs extends ae {
|
|
|
177
177
|
}), this.name = "BladeError";
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class Xs extends se {
|
|
181
181
|
constructor(e, t, n) {
|
|
182
182
|
super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
|
|
183
183
|
moduleId: e,
|
|
@@ -185,35 +185,35 @@ class Zs extends ae {
|
|
|
185
185
|
}), this.name = "ModuleLoadError";
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
return s instanceof
|
|
188
|
+
function Pr(s) {
|
|
189
|
+
return s instanceof se;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
191
|
+
function Vs(s, e = "UNKNOWN_ERROR") {
|
|
192
|
+
return Pr(s) ? s : s instanceof Error ? new se(s.message, e, {
|
|
193
193
|
originalError: s.name,
|
|
194
194
|
stack: s.stack
|
|
195
|
-
}) : new
|
|
195
|
+
}) : new se(String(s), e);
|
|
196
196
|
}
|
|
197
|
-
class
|
|
197
|
+
class be extends Error {
|
|
198
198
|
details;
|
|
199
199
|
originalError;
|
|
200
200
|
constructor(e, t, n) {
|
|
201
201
|
super(e), this.name = "DisplayableError", this.details = t, this.originalError = n;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
if (s instanceof
|
|
204
|
+
function Qe(s) {
|
|
205
|
+
if (s instanceof be)
|
|
206
206
|
return s;
|
|
207
207
|
if (s instanceof Error && "response" in s && s.response)
|
|
208
|
-
return
|
|
208
|
+
return Qe(s.response);
|
|
209
209
|
if (s instanceof Error)
|
|
210
|
-
return new
|
|
210
|
+
return new be(s.message, s.stack || String(s), s);
|
|
211
211
|
if (typeof s == "string")
|
|
212
212
|
try {
|
|
213
213
|
const e = JSON.parse(s);
|
|
214
|
-
return
|
|
214
|
+
return Qe(e);
|
|
215
215
|
} catch {
|
|
216
|
-
return new
|
|
216
|
+
return new be(s, s, s);
|
|
217
217
|
}
|
|
218
218
|
if (typeof s == "object" && s !== null) {
|
|
219
219
|
const e = s;
|
|
@@ -221,14 +221,14 @@ function Ve(s) {
|
|
|
221
221
|
const r = e.status, a = e.statusText || "Error", o = `${r}: ${a}`, u = e.data;
|
|
222
222
|
let l = "";
|
|
223
223
|
return u ? typeof u.exceptionMessage == "string" ? l = u.exceptionMessage : typeof u.message == "string" ? l = u.message : Array.isArray(u.errors) ? l = u.errors.join(`
|
|
224
|
-
`) : typeof u == "string" ? l = u : l = JSON.stringify(u, null, 2) : l = JSON.stringify(e, null, 2), new
|
|
224
|
+
`) : typeof u == "string" ? l = u : l = JSON.stringify(u, null, 2) : l = JSON.stringify(e, null, 2), new be(o, l, s);
|
|
225
225
|
}
|
|
226
226
|
const t = e.message || "An unexpected error occurred.", n = e.stack || JSON.stringify(e, null, 2);
|
|
227
|
-
return new
|
|
227
|
+
return new be(t, n, s);
|
|
228
228
|
}
|
|
229
|
-
return new
|
|
229
|
+
return new be("An unknown error occurred.", String(s), s);
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const Or = /* @__PURE__ */ G({
|
|
232
232
|
__name: "vc-lucide-icon",
|
|
233
233
|
props: {
|
|
234
234
|
icon: {},
|
|
@@ -238,35 +238,35 @@ const Tr = /* @__PURE__ */ L({
|
|
|
238
238
|
customSize: {}
|
|
239
239
|
},
|
|
240
240
|
setup(s) {
|
|
241
|
-
const e =
|
|
241
|
+
const e = N("vc-lucide-icon"), t = s, n = v(() => typeof t.customSize == "number" && t.customSize > 0), r = v(() => {
|
|
242
242
|
if (!t.icon) return "HelpCircleIcon";
|
|
243
243
|
let u = t.icon;
|
|
244
244
|
return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
|
|
245
245
|
}), a = v(() => {
|
|
246
|
-
const u = r.value, l =
|
|
247
|
-
return !l || typeof l != "object" && typeof l != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) :
|
|
246
|
+
const u = r.value, l = _r[u];
|
|
247
|
+
return !l || typeof l != "object" && typeof l != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : Rt(l);
|
|
248
248
|
}), o = v(() => n.value && t.customSize ? {
|
|
249
249
|
width: `${t.customSize}px`,
|
|
250
250
|
height: `${t.customSize}px`
|
|
251
251
|
} : {});
|
|
252
|
-
return (u, l) => a.value ? (
|
|
252
|
+
return (u, l) => a.value ? (_(), W(Fe(a.value), {
|
|
253
253
|
key: 0,
|
|
254
254
|
"stroke-width": t.strokeWidth,
|
|
255
|
-
class:
|
|
255
|
+
class: q([
|
|
256
256
|
"vc-lucide-icon",
|
|
257
257
|
!n.value && `vc-lucide-icon--${s.size}`,
|
|
258
258
|
s.variant ? `vc-lucide-icon--${s.variant}` : ""
|
|
259
259
|
]),
|
|
260
|
-
style:
|
|
260
|
+
style: _e(o.value),
|
|
261
261
|
"aria-hidden": "true"
|
|
262
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (
|
|
262
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (_(), R("span", {
|
|
263
263
|
key: 1,
|
|
264
|
-
class:
|
|
264
|
+
class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
|
|
265
265
|
}, [...l[0] || (l[0] = [
|
|
266
|
-
|
|
266
|
+
$("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
267
267
|
])], 2));
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
269
|
+
}), Rr = /* @__PURE__ */ G({
|
|
270
270
|
__name: "vc-fontawesome-icon",
|
|
271
271
|
props: {
|
|
272
272
|
icon: {},
|
|
@@ -276,21 +276,21 @@ const Tr = /* @__PURE__ */ L({
|
|
|
276
276
|
},
|
|
277
277
|
setup(s) {
|
|
278
278
|
const e = s, t = v(() => typeof e.customSize == "number" && e.customSize > 0), n = v(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
279
|
-
|
|
279
|
+
Te(() => {
|
|
280
280
|
});
|
|
281
281
|
const r = v(() => 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}`);
|
|
282
|
-
return (a, o) => (
|
|
283
|
-
class:
|
|
282
|
+
return (a, o) => (_(), R("i", {
|
|
283
|
+
class: q([
|
|
284
284
|
"vc-fa-icon",
|
|
285
285
|
!t.value && `vc-fa-icon--${s.size}`,
|
|
286
286
|
r.value,
|
|
287
287
|
s.variant ? `vc-fa-icon--${s.variant}` : ""
|
|
288
288
|
]),
|
|
289
|
-
style:
|
|
289
|
+
style: _e(n.value),
|
|
290
290
|
"aria-hidden": "true"
|
|
291
291
|
}, null, 6));
|
|
292
292
|
}
|
|
293
|
-
}),
|
|
293
|
+
}), kr = ["xlink:href"], Br = /* @__PURE__ */ G({
|
|
294
294
|
inheritAttrs: !1,
|
|
295
295
|
__name: "vc-svg-icon",
|
|
296
296
|
props: {
|
|
@@ -315,18 +315,18 @@ const Tr = /* @__PURE__ */ L({
|
|
|
315
315
|
const a = {};
|
|
316
316
|
return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
|
|
317
317
|
});
|
|
318
|
-
return (a, o) => (
|
|
318
|
+
return (a, o) => (_(), R("svg", we({
|
|
319
319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
320
320
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${s.size}`, s.variant ? `vc-svg-icon--${s.variant}` : ""],
|
|
321
321
|
style: r.value
|
|
322
322
|
}, a.$attrs), [
|
|
323
|
-
n.value ? (
|
|
323
|
+
n.value ? (_(), R("use", {
|
|
324
324
|
key: 0,
|
|
325
325
|
"xlink:href": n.value
|
|
326
|
-
}, null, 8,
|
|
326
|
+
}, null, 8, kr)) : K("", !0)
|
|
327
327
|
], 16));
|
|
328
328
|
}
|
|
329
|
-
}),
|
|
329
|
+
}), $r = ["aria-hidden", "aria-label", "role"], oe = /* @__PURE__ */ G({
|
|
330
330
|
__name: "vc-icon",
|
|
331
331
|
props: {
|
|
332
332
|
icon: { default: "lucide-square" },
|
|
@@ -339,7 +339,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
339
339
|
},
|
|
340
340
|
setup(s) {
|
|
341
341
|
const e = s;
|
|
342
|
-
|
|
342
|
+
Te(() => {
|
|
343
343
|
});
|
|
344
344
|
const t = {
|
|
345
345
|
xs: 12,
|
|
@@ -355,8 +355,8 @@ const Tr = /* @__PURE__ */ L({
|
|
|
355
355
|
if (n.value === "material" && e.icon.startsWith("material-"))
|
|
356
356
|
return e.icon.replace(/^material-/, "");
|
|
357
357
|
if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
|
|
358
|
-
const
|
|
359
|
-
return
|
|
358
|
+
const b = e.icon.replace(/^lucide-/, "");
|
|
359
|
+
return b.endsWith("Icon") ? b : `${b}Icon`;
|
|
360
360
|
}
|
|
361
361
|
return e.icon;
|
|
362
362
|
}), a = v(() => n.value === "material"), o = v(() => n.value === "bootstrap"), u = v(() => n.value === "lucide"), l = v(() => n.value === "fontawesome"), d = v(() => {
|
|
@@ -366,31 +366,31 @@ const Tr = /* @__PURE__ */ L({
|
|
|
366
366
|
return !1;
|
|
367
367
|
if (u.value)
|
|
368
368
|
try {
|
|
369
|
-
const
|
|
370
|
-
return
|
|
369
|
+
const b = typeof r.value == "string" ? r.value : String(r.value);
|
|
370
|
+
return je(b) !== b;
|
|
371
371
|
} catch {
|
|
372
372
|
return !1;
|
|
373
373
|
}
|
|
374
374
|
try {
|
|
375
|
-
return
|
|
375
|
+
return je(e.icon) !== e.icon;
|
|
376
376
|
} catch {
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
379
|
}), c = v(() => {
|
|
380
380
|
if (typeof e.icon != "string")
|
|
381
|
-
return
|
|
381
|
+
return Rt(e.icon);
|
|
382
382
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
383
383
|
return "i";
|
|
384
384
|
try {
|
|
385
|
-
const
|
|
386
|
-
return P !==
|
|
385
|
+
const b = typeof r.value == "string" ? r.value : String(r.value), P = je(b);
|
|
386
|
+
return P !== b ? P : "i";
|
|
387
387
|
} catch {
|
|
388
388
|
return "i";
|
|
389
389
|
}
|
|
390
|
-
}), f = v(() => a.value ?
|
|
391
|
-
const
|
|
392
|
-
return d.value && e.customSize && (
|
|
393
|
-
}),
|
|
390
|
+
}), f = v(() => a.value ? Sr : o.value ? Ar : u.value ? Or : l.value ? Rr : U.value ? Br : d.value ? c.value : "i"), h = v(() => e.customSize ? e.customSize : t[e.size]), m = v(() => {
|
|
391
|
+
const b = {};
|
|
392
|
+
return d.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
|
|
393
|
+
}), g = v(() => e.customSize ? {
|
|
394
394
|
fontSize: `${e.customSize}px`
|
|
395
395
|
} : {}), S = v(() => a.value ? {
|
|
396
396
|
icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
|
|
@@ -421,7 +421,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
421
421
|
variant: e.variant,
|
|
422
422
|
customSize: e.customSize
|
|
423
423
|
// Set custom size without scaling
|
|
424
|
-
} :
|
|
424
|
+
} : U.value ? {
|
|
425
425
|
icon: E.value,
|
|
426
426
|
size: e.size,
|
|
427
427
|
variant: e.variant,
|
|
@@ -432,16 +432,16 @@ const Tr = /* @__PURE__ */ L({
|
|
|
432
432
|
width: h.value,
|
|
433
433
|
height: h.value,
|
|
434
434
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
435
|
-
} : {}),
|
|
436
|
-
return (
|
|
435
|
+
} : {}), U = v(() => n.value === "svg"), E = v(() => !U.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
436
|
+
return (b, P) => s.useContainer ? (_(), R("div", we({
|
|
437
437
|
key: 0,
|
|
438
438
|
class: ["vc-icon-container", `vc-icon-container--${s.size}`],
|
|
439
|
-
style:
|
|
439
|
+
style: g.value,
|
|
440
440
|
"aria-hidden": s.ariaLabel ? void 0 : "true",
|
|
441
441
|
"aria-label": s.ariaLabel || void 0,
|
|
442
442
|
role: s.ariaLabel ? "img" : void 0
|
|
443
|
-
},
|
|
444
|
-
(
|
|
443
|
+
}, b.$attrs), [
|
|
444
|
+
(_(), W(Fe(f.value), we({
|
|
445
445
|
class: [
|
|
446
446
|
"vc-icon",
|
|
447
447
|
`vc-icon--${s.size}`,
|
|
@@ -450,7 +450,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
450
450
|
],
|
|
451
451
|
style: m.value
|
|
452
452
|
}, S.value), null, 16, ["class", "style"]))
|
|
453
|
-
], 16,
|
|
453
|
+
], 16, $r)) : (_(), W(Fe(f.value), we({
|
|
454
454
|
key: 1,
|
|
455
455
|
class: [
|
|
456
456
|
"vc-icon",
|
|
@@ -462,12 +462,12 @@ const Tr = /* @__PURE__ */ L({
|
|
|
462
462
|
"aria-hidden": s.ariaLabel ? void 0 : "true",
|
|
463
463
|
"aria-label": s.ariaLabel || void 0,
|
|
464
464
|
role: s.ariaLabel ? "img" : void 0
|
|
465
|
-
}, { ...S.value, ...
|
|
465
|
+
}, { ...S.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
466
466
|
}
|
|
467
|
-
}),
|
|
467
|
+
}), Nr = Symbol("vc-button-group"), jr = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], zr = {
|
|
468
468
|
key: 2,
|
|
469
469
|
class: "vc-button__title"
|
|
470
|
-
},
|
|
470
|
+
}, Fr = /* @__PURE__ */ G({
|
|
471
471
|
__name: "vc-button",
|
|
472
472
|
props: {
|
|
473
473
|
icon: {},
|
|
@@ -487,7 +487,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
487
487
|
const t = {
|
|
488
488
|
base: "default",
|
|
489
489
|
xs: "sm"
|
|
490
|
-
}, n = s, r = e, a = F(
|
|
490
|
+
}, n = s, r = e, a = F(Nr, null), o = v(() => {
|
|
491
491
|
const d = a?.size?.value ?? n.size;
|
|
492
492
|
return t[d] ?? d;
|
|
493
493
|
}), u = v(() => [
|
|
@@ -504,8 +504,8 @@ const Tr = /* @__PURE__ */ L({
|
|
|
504
504
|
function l(d) {
|
|
505
505
|
!n.disabled && !n.loading && (d.preventDefault(), r("click", d));
|
|
506
506
|
}
|
|
507
|
-
return (d, c) => (
|
|
508
|
-
class:
|
|
507
|
+
return (d, c) => (_(), R("button", {
|
|
508
|
+
class: q(u.value),
|
|
509
509
|
type: s.type,
|
|
510
510
|
disabled: s.disabled || s.loading,
|
|
511
511
|
"aria-label": s.ariaLabel,
|
|
@@ -513,34 +513,34 @@ const Tr = /* @__PURE__ */ L({
|
|
|
513
513
|
"aria-pressed": s.selected || void 0,
|
|
514
514
|
onClick: l
|
|
515
515
|
}, [
|
|
516
|
-
s.loading ? (
|
|
516
|
+
s.loading ? (_(), W(D(oe), {
|
|
517
517
|
key: 0,
|
|
518
518
|
icon: "lucide-loader-2",
|
|
519
519
|
class: "vc-button__icon tw-animate-spin",
|
|
520
520
|
size: s.iconSize
|
|
521
|
-
}, null, 8, ["size"])) : s.icon ? (
|
|
521
|
+
}, null, 8, ["size"])) : s.icon ? (_(), W(D(oe), {
|
|
522
522
|
key: 1,
|
|
523
|
-
class:
|
|
523
|
+
class: q(["vc-button--icon", s.iconClass]),
|
|
524
524
|
icon: s.icon,
|
|
525
525
|
size: s.iconSize
|
|
526
|
-
}, null, 8, ["class", "icon", "size"])) :
|
|
527
|
-
d.$slots.default ? (
|
|
528
|
-
|
|
529
|
-
])) :
|
|
530
|
-
], 10,
|
|
526
|
+
}, null, 8, ["class", "icon", "size"])) : K("", !0),
|
|
527
|
+
d.$slots.default ? (_(), R("span", zr, [
|
|
528
|
+
xe(d.$slots, "default")
|
|
529
|
+
])) : K("", !0)
|
|
530
|
+
], 10, jr));
|
|
531
531
|
}
|
|
532
532
|
});
|
|
533
|
-
function
|
|
533
|
+
function yt(s) {
|
|
534
534
|
const e = s.style.flexShrink;
|
|
535
535
|
s.style.flexShrink = "0";
|
|
536
536
|
const t = getComputedStyle(s), n = s.offsetWidth + parseFloat(t.marginLeft || "0") + parseFloat(t.marginRight || "0");
|
|
537
537
|
return s.style.flexShrink = e, n;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Ke(s) {
|
|
540
540
|
const e = getComputedStyle(s), t = e.columnGap || e.gap || "0px";
|
|
541
541
|
return parseFloat(t) || 0;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Mr(s) {
|
|
544
544
|
const {
|
|
545
545
|
containerRef: e,
|
|
546
546
|
items: t,
|
|
@@ -548,130 +548,130 @@ function zr(s) {
|
|
|
548
548
|
moreButtonWidth: r,
|
|
549
549
|
calculationStrategy: a = "forward",
|
|
550
550
|
initialItemWidth: o = 50
|
|
551
|
-
} = s, { width: u } =
|
|
552
|
-
let
|
|
553
|
-
const S = /* @__PURE__ */ new Set(),
|
|
551
|
+
} = s, { width: u } = ir(e), l = O(/* @__PURE__ */ new Map()), d = O(null), c = O(0), f = O([]), h = O([]), m = v(() => h.value.length > 0);
|
|
552
|
+
let g = null;
|
|
553
|
+
const S = /* @__PURE__ */ new Set(), U = () => d.value ?? r, E = () => {
|
|
554
554
|
if (!e.value) return;
|
|
555
555
|
const p = e.value.querySelector("[data-more-button]");
|
|
556
556
|
if (p) {
|
|
557
|
-
const y =
|
|
557
|
+
const y = yt(p);
|
|
558
558
|
y > 0 && (d.value = y);
|
|
559
559
|
}
|
|
560
|
-
},
|
|
560
|
+
}, b = (p) => {
|
|
561
561
|
const y = n(p);
|
|
562
562
|
return l.value.get(y) || o;
|
|
563
563
|
}, P = (p, y) => {
|
|
564
564
|
let x = 0;
|
|
565
|
-
const
|
|
566
|
-
for (const
|
|
567
|
-
const
|
|
568
|
-
x + ie +
|
|
565
|
+
const I = [], k = [], j = c.value;
|
|
566
|
+
for (const J of p) {
|
|
567
|
+
const re = b(J), ie = I.length > 0 ? j : 0;
|
|
568
|
+
x + ie + re <= y ? (I.push(J), x += ie + re) : k.push(J);
|
|
569
569
|
}
|
|
570
|
-
return { visible:
|
|
571
|
-
},
|
|
570
|
+
return { visible: I, hidden: k };
|
|
571
|
+
}, C = () => {
|
|
572
572
|
if (!e.value || !t.value.length) return;
|
|
573
573
|
if (u.value <= 0) {
|
|
574
574
|
f.value = [...t.value], h.value = [];
|
|
575
575
|
return;
|
|
576
576
|
}
|
|
577
|
-
c.value =
|
|
577
|
+
c.value = Ke(e.value);
|
|
578
578
|
const p = c.value, y = a === "reverse" ? [...t.value].reverse() : t.value;
|
|
579
579
|
let x = P(y, u.value);
|
|
580
580
|
if (x.hidden.length > 0) {
|
|
581
|
-
const
|
|
582
|
-
x = P(y, u.value -
|
|
581
|
+
const I = U(), k = x.visible.length > 0 ? p : 0;
|
|
582
|
+
x = P(y, u.value - I - k);
|
|
583
583
|
}
|
|
584
584
|
a === "reverse" ? (f.value = x.visible.reverse(), h.value = x.hidden.reverse()) : (f.value = x.visible, h.value = x.hidden);
|
|
585
|
-
},
|
|
585
|
+
}, A = () => {
|
|
586
586
|
if (!e.value) return;
|
|
587
|
-
c.value =
|
|
587
|
+
c.value = Ke(e.value), E(), e.value.querySelectorAll("[data-item-key]").forEach((y) => {
|
|
588
588
|
const x = y.getAttribute("data-item-key");
|
|
589
589
|
if (x) {
|
|
590
|
-
const
|
|
591
|
-
|
|
590
|
+
const I = yt(y);
|
|
591
|
+
I > 0 && l.value.set(x, I);
|
|
592
592
|
}
|
|
593
|
-
}),
|
|
593
|
+
}), C();
|
|
594
594
|
}, T = () => {
|
|
595
595
|
const p = new Set(t.value.map(n));
|
|
596
596
|
for (const y of l.value.keys())
|
|
597
597
|
p.has(y) || l.value.delete(y);
|
|
598
598
|
}, M = () => {
|
|
599
|
-
|
|
599
|
+
g || (g = new ResizeObserver((p) => {
|
|
600
600
|
let y = !1;
|
|
601
601
|
for (const x of p) {
|
|
602
|
-
const
|
|
603
|
-
if (!
|
|
604
|
-
const k =
|
|
602
|
+
const I = x.target;
|
|
603
|
+
if (!I.isConnected) continue;
|
|
604
|
+
const k = I.getAttribute("data-item-key");
|
|
605
605
|
if (!k) continue;
|
|
606
|
-
const
|
|
606
|
+
const j = getComputedStyle(I), J = x.borderBoxSize?.[0]?.inlineSize, ie = (J ?? I.offsetWidth) + parseFloat(j.marginLeft || "0") + parseFloat(j.marginRight || "0");
|
|
607
607
|
ie > 0 && l.value.get(k) !== ie && (l.value.set(k, ie), y = !0);
|
|
608
608
|
}
|
|
609
|
-
y &&
|
|
610
|
-
})),
|
|
609
|
+
y && C();
|
|
610
|
+
})), ae(() => {
|
|
611
611
|
if (!e.value) return;
|
|
612
612
|
const p = e.value.querySelectorAll("[data-item-key]"), y = /* @__PURE__ */ new Set();
|
|
613
613
|
p.forEach((x) => {
|
|
614
|
-
y.add(x), S.has(x) || (
|
|
614
|
+
y.add(x), S.has(x) || (g?.observe(x), S.add(x));
|
|
615
615
|
});
|
|
616
616
|
for (const x of S)
|
|
617
|
-
y.has(x) || (
|
|
618
|
-
|
|
617
|
+
y.has(x) || (g?.unobserve(x), S.delete(x));
|
|
618
|
+
A();
|
|
619
619
|
});
|
|
620
|
-
},
|
|
621
|
-
e.value && (c.value =
|
|
620
|
+
}, H = ur(() => {
|
|
621
|
+
e.value && (c.value = Ke(e.value)), C();
|
|
622
622
|
}, 50);
|
|
623
|
-
return
|
|
624
|
-
|
|
625
|
-
}),
|
|
626
|
-
p &&
|
|
623
|
+
return V(u, () => {
|
|
624
|
+
H();
|
|
625
|
+
}), V(m, (p) => {
|
|
626
|
+
p && ae(() => {
|
|
627
627
|
const y = d.value;
|
|
628
|
-
E(), d.value !== null && d.value !== y &&
|
|
628
|
+
E(), d.value !== null && d.value !== y && C();
|
|
629
629
|
});
|
|
630
|
-
}),
|
|
630
|
+
}), V(
|
|
631
631
|
() => t.value.map(n).join("\0"),
|
|
632
632
|
() => {
|
|
633
|
-
T(),
|
|
633
|
+
T(), ae(() => {
|
|
634
634
|
M();
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
-
),
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
), Te(() => {
|
|
638
|
+
ae(() => {
|
|
639
|
+
A(), M();
|
|
640
640
|
});
|
|
641
|
-
}),
|
|
642
|
-
|
|
641
|
+
}), st(() => {
|
|
642
|
+
g && (g.disconnect(), g = null), S.clear();
|
|
643
643
|
}), {
|
|
644
644
|
visibleItems: f,
|
|
645
645
|
hiddenItems: h,
|
|
646
646
|
showMoreButton: m,
|
|
647
647
|
recalculate: () => {
|
|
648
|
-
|
|
649
|
-
|
|
648
|
+
ae(() => {
|
|
649
|
+
A();
|
|
650
650
|
});
|
|
651
651
|
},
|
|
652
652
|
// Export function for updating observer
|
|
653
653
|
updateObserver: M
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Dr(s, e, t = {}) {
|
|
657
657
|
const n = v(() => le(t.placement) ?? "bottom"), r = v(() => le(t.strategy) ?? "absolute"), a = v(() => {
|
|
658
658
|
const l = le(t.middleware);
|
|
659
659
|
if (l?.length)
|
|
660
660
|
return l;
|
|
661
661
|
const d = [];
|
|
662
|
-
le(t.enableFlip) !== !1 && d.push(
|
|
662
|
+
le(t.enableFlip) !== !1 && d.push(br({ padding: t.shiftPadding ?? 8 })), le(t.enableShift) !== !1 && d.push(yr({ padding: t.shiftPadding ?? 8 }));
|
|
663
663
|
const c = le(t.offset);
|
|
664
|
-
return typeof c == "number" ? d.push(
|
|
665
|
-
|
|
664
|
+
return typeof c == "number" ? d.push(vt(c)) : d.push(
|
|
665
|
+
vt({
|
|
666
666
|
mainAxis: c?.mainAxis ?? 0,
|
|
667
667
|
crossAxis: c?.crossAxis ?? 0,
|
|
668
668
|
alignmentAxis: c?.alignmentAxis
|
|
669
669
|
})
|
|
670
670
|
), d;
|
|
671
|
-
}), o =
|
|
671
|
+
}), o = gr(s, e, {
|
|
672
672
|
placement: n,
|
|
673
673
|
strategy: r,
|
|
674
|
-
whileElementsMounted: le(t.autoUpdate) === !1 ? void 0 :
|
|
674
|
+
whileElementsMounted: le(t.autoUpdate) === !1 ? void 0 : xr,
|
|
675
675
|
middleware: a
|
|
676
676
|
}), u = v(() => ({
|
|
677
677
|
position: r.value,
|
|
@@ -685,9 +685,9 @@ function Fr(s, e, t = {}) {
|
|
|
685
685
|
resolvedStrategy: r
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
const Ge = Symbol("BladeStack"),
|
|
689
|
-
function
|
|
690
|
-
const e = F(
|
|
688
|
+
const Ge = Symbol("BladeStack"), ct = Symbol("BladeMessaging"), dt = Symbol("BladeDescriptor"), Lr = Symbol("BladeMaximized"), Gr = Symbol("BladeData"), jt = Symbol("BladeBanners"), Qs = Symbol("NavigationViewLocation"), Jr = Symbol("BladeBackButton"), ei = Symbol("NotificationTemplates"), Wr = Symbol("NotificationStore"), ti = Symbol("WidgetService"), ri = Symbol("DashboardService"), ni = Symbol("GlobalSearch"), ai = Symbol("MenuService"), si = Symbol("SettingsMenuService"), ii = Symbol("AppBarWidgetService"), oi = Symbol("AppBarMobileButtonsService"), Hr = Symbol("LanguageService"), Kr = Symbol("ToolbarService"), li = Symbol("DynamicModules"), ui = Symbol("ModulesReady"), ci = Symbol("ModulesLoadError"), qr = Symbol("AppRootElement"), Zr = Symbol("EmbeddedMode"), di = Symbol("ShellIndicators"), Je = Symbol("AiAgentService"), Yr = Symbol("IsMobile"), Xr = Symbol("IsDesktop"), Vr = Symbol("IsPhone"), Qr = Symbol("IsTablet"), en = Symbol("IsTouch"), hi = Symbol("BladeRoutes"), fi = Symbol("InternalRoutes"), pi = Symbol("CloseSettingsMenu"), mi = Symbol("BladeContext"), vi = Symbol("WidgetScope");
|
|
689
|
+
function tn(s = {}) {
|
|
690
|
+
const e = F(qr, void 0);
|
|
691
691
|
return {
|
|
692
692
|
teleportTarget: v(() => {
|
|
693
693
|
const n = s.to ? le(s.to) : void 0;
|
|
@@ -700,7 +700,7 @@ function Vr(s = {}) {
|
|
|
700
700
|
})
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const rn = ["title"], nn = ["title"], an = /* @__PURE__ */ G({
|
|
704
704
|
__name: "vc-breadcrumbs-item",
|
|
705
705
|
props: {
|
|
706
706
|
current: { type: Boolean },
|
|
@@ -716,56 +716,56 @@ const Qr = ["title"], en = ["title"], tn = /* @__PURE__ */ L({
|
|
|
716
716
|
function a() {
|
|
717
717
|
t.current || (t.clickHandler && typeof t.clickHandler == "function" ? t.clickHandler(t.id) : n("click"));
|
|
718
718
|
}
|
|
719
|
-
return (o, u) => s.current ? (
|
|
719
|
+
return (o, u) => s.current ? (_(), R("span", {
|
|
720
720
|
key: 0,
|
|
721
|
-
class:
|
|
721
|
+
class: q(["vc-breadcrumbs-item vc-breadcrumbs-item--current", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
|
|
722
722
|
"aria-current": "page"
|
|
723
723
|
}, [
|
|
724
|
-
s.icon ? (
|
|
724
|
+
s.icon ? (_(), W(D(oe), {
|
|
725
725
|
key: 0,
|
|
726
726
|
class: "vc-breadcrumbs-item__icon",
|
|
727
727
|
icon: s.icon,
|
|
728
728
|
size: "s"
|
|
729
|
-
}, null, 8, ["icon"])) :
|
|
730
|
-
|
|
729
|
+
}, null, 8, ["icon"])) : K("", !0),
|
|
730
|
+
$("span", {
|
|
731
731
|
class: "vc-breadcrumbs-item__title",
|
|
732
732
|
title: r.value
|
|
733
|
-
}, he(r.value), 9,
|
|
734
|
-
], 2)) : (
|
|
733
|
+
}, he(r.value), 9, rn)
|
|
734
|
+
], 2)) : (_(), R("button", {
|
|
735
735
|
key: 1,
|
|
736
736
|
type: "button",
|
|
737
|
-
class:
|
|
737
|
+
class: q(["vc-breadcrumbs-item", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
|
|
738
738
|
onClick: a
|
|
739
739
|
}, [
|
|
740
|
-
s.icon ? (
|
|
740
|
+
s.icon ? (_(), W(D(oe), {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "vc-breadcrumbs-item__icon",
|
|
743
743
|
icon: s.icon,
|
|
744
744
|
size: "s"
|
|
745
|
-
}, null, 8, ["icon"])) :
|
|
746
|
-
|
|
745
|
+
}, null, 8, ["icon"])) : K("", !0),
|
|
746
|
+
$("span", {
|
|
747
747
|
class: "vc-breadcrumbs-item__title",
|
|
748
748
|
title: r.value
|
|
749
|
-
}, he(r.value), 9,
|
|
749
|
+
}, he(r.value), 9, nn)
|
|
750
750
|
], 2));
|
|
751
751
|
}
|
|
752
752
|
});
|
|
753
|
-
function
|
|
753
|
+
function zt() {
|
|
754
754
|
return {
|
|
755
|
-
isMobile: F(
|
|
756
|
-
isDesktop: F(
|
|
757
|
-
isPhone: F(
|
|
758
|
-
isTablet: F(
|
|
759
|
-
isTouch: F(
|
|
755
|
+
isMobile: F(Yr, O(!1)),
|
|
756
|
+
isDesktop: F(Xr, O(!0)),
|
|
757
|
+
isPhone: F(Vr, O(!1)),
|
|
758
|
+
isTablet: F(Qr, O(!1)),
|
|
759
|
+
isTouch: F(en, !1)
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
const
|
|
762
|
+
const sn = { class: "vc-dropdown" }, on = ["aria-expanded", "aria-haspopup", "onKeydown"], ln = ["role", "aria-activedescendant"], un = {
|
|
763
763
|
key: 0,
|
|
764
764
|
class: "vc-dropdown__items-container"
|
|
765
|
-
},
|
|
765
|
+
}, cn = ["id", "role", "aria-selected", "onClick"], dn = {
|
|
766
766
|
key: 1,
|
|
767
767
|
class: "vc-dropdown__empty"
|
|
768
|
-
},
|
|
768
|
+
}, hn = /* @__PURE__ */ G({
|
|
769
769
|
__name: "vc-dropdown",
|
|
770
770
|
props: {
|
|
771
771
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -794,30 +794,30 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
794
794
|
},
|
|
795
795
|
emits: ["update:modelValue", "item-click", "open", "close"],
|
|
796
796
|
setup(s, { emit: e }) {
|
|
797
|
-
const t = s, n = e, o = `vc-dropdown-${
|
|
797
|
+
const t = s, n = e, o = `vc-dropdown-${me()?.uid ?? Math.round(Math.random() * 1e4)}`, { isMobile: u } = zt(), l = O(null), d = O(null), c = O(-1), { teleportTarget: f } = tn({
|
|
798
798
|
to: v(() => t.teleportTo)
|
|
799
799
|
}), h = v(() => t.teleport ?? t.floating), m = v({
|
|
800
800
|
get: () => t.modelValue,
|
|
801
|
-
set: (
|
|
802
|
-
}), { x:
|
|
801
|
+
set: (w) => n("update:modelValue", w)
|
|
802
|
+
}), { x: g, y: S, resolvedPlacement: U, resolvedStrategy: E } = Dr(l, d, {
|
|
803
803
|
placement: v(() => t.placement),
|
|
804
804
|
strategy: v(() => t.floating ? "fixed" : "absolute"),
|
|
805
805
|
offset: v(() => t.offset),
|
|
806
806
|
autoUpdate: v(() => t.floating)
|
|
807
|
-
}),
|
|
807
|
+
}), b = v(() => [
|
|
808
808
|
{
|
|
809
809
|
"vc-dropdown__dropdown--mobile": u.value,
|
|
810
810
|
"vc-dropdown__dropdown--floating": t.floating
|
|
811
811
|
},
|
|
812
812
|
`vc-dropdown__dropdown--${t.variant}`,
|
|
813
|
-
`vc-dropdown__dropdown--${
|
|
813
|
+
`vc-dropdown__dropdown--${U.value}`
|
|
814
814
|
]), P = v(() => t.floating ? {
|
|
815
815
|
position: E.value,
|
|
816
816
|
top: `${S.value ?? 0}px`,
|
|
817
|
-
left: `${
|
|
817
|
+
left: `${g.value ?? 0}px`,
|
|
818
818
|
zIndex: t.zIndex,
|
|
819
819
|
width: "max-content"
|
|
820
|
-
} : {}),
|
|
820
|
+
} : {}), C = v(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), A = v(() => t.role === "listbox" ? "option" : "menuitem"), T = v(() => {
|
|
821
821
|
if (!(c.value < 0 || c.value >= t.items.length))
|
|
822
822
|
return p(c.value);
|
|
823
823
|
}), M = [
|
|
@@ -826,97 +826,97 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
826
826
|
},
|
|
827
827
|
{ ignore: [l] }
|
|
828
828
|
];
|
|
829
|
-
function
|
|
829
|
+
function H() {
|
|
830
830
|
if (!t.items.length) {
|
|
831
831
|
c.value = -1;
|
|
832
832
|
return;
|
|
833
833
|
}
|
|
834
|
-
const
|
|
835
|
-
c.value =
|
|
834
|
+
const w = t.isItemActive ? t.items.findIndex((B) => t.isItemActive?.(B)) : -1;
|
|
835
|
+
c.value = w >= 0 ? w : 0;
|
|
836
836
|
}
|
|
837
|
-
function p(
|
|
838
|
-
return `${o}-item-${
|
|
837
|
+
function p(w) {
|
|
838
|
+
return `${o}-item-${w}`;
|
|
839
839
|
}
|
|
840
|
-
function y(
|
|
841
|
-
return t.itemKey ? t.itemKey(
|
|
840
|
+
function y(w, B) {
|
|
841
|
+
return t.itemKey ? t.itemKey(w, B) : B;
|
|
842
842
|
}
|
|
843
843
|
function x() {
|
|
844
844
|
m.value || (m.value = !0, n("open"));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function I() {
|
|
847
847
|
k("action");
|
|
848
848
|
}
|
|
849
|
-
function k(
|
|
850
|
-
m.value && (m.value = !1, n("close",
|
|
849
|
+
function k(w) {
|
|
850
|
+
m.value && (m.value = !1, n("close", w));
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function j() {
|
|
853
853
|
m.value ? k("action") : x();
|
|
854
854
|
}
|
|
855
|
-
function
|
|
856
|
-
c.value =
|
|
855
|
+
function J(w, B) {
|
|
856
|
+
c.value = B, n("item-click", w), t.closeOnSelect && k("action");
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
const
|
|
860
|
-
if (!
|
|
858
|
+
function re(w) {
|
|
859
|
+
const B = t.items.length;
|
|
860
|
+
if (!B) {
|
|
861
861
|
c.value = -1;
|
|
862
862
|
return;
|
|
863
863
|
}
|
|
864
|
-
const
|
|
865
|
-
c.value =
|
|
864
|
+
const ee = (w % B + B) % B;
|
|
865
|
+
c.value = ee;
|
|
866
866
|
}
|
|
867
|
-
function ie(
|
|
867
|
+
function ie(w) {
|
|
868
868
|
if (m.value)
|
|
869
|
-
switch (
|
|
869
|
+
switch (w.key) {
|
|
870
870
|
case "ArrowDown": {
|
|
871
|
-
|
|
871
|
+
w.preventDefault(), re(c.value + 1);
|
|
872
872
|
break;
|
|
873
873
|
}
|
|
874
874
|
case "ArrowUp": {
|
|
875
|
-
|
|
875
|
+
w.preventDefault(), re(c.value - 1);
|
|
876
876
|
break;
|
|
877
877
|
}
|
|
878
878
|
case "Home": {
|
|
879
|
-
|
|
879
|
+
w.preventDefault(), re(0);
|
|
880
880
|
break;
|
|
881
881
|
}
|
|
882
882
|
case "End": {
|
|
883
|
-
|
|
883
|
+
w.preventDefault(), re(t.items.length - 1);
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
886
|
case "Enter":
|
|
887
887
|
case " ": {
|
|
888
888
|
if (c.value < 0 || c.value >= t.items.length)
|
|
889
889
|
return;
|
|
890
|
-
|
|
890
|
+
w.preventDefault(), J(t.items[c.value], c.value);
|
|
891
891
|
break;
|
|
892
892
|
}
|
|
893
893
|
case "Escape": {
|
|
894
894
|
if (!t.closeOnEscape)
|
|
895
895
|
return;
|
|
896
|
-
|
|
896
|
+
w.preventDefault(), w.stopPropagation(), k("escape");
|
|
897
897
|
break;
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
function
|
|
902
|
-
!t.closeOnEscape || !m.value ||
|
|
901
|
+
function Ae(w) {
|
|
902
|
+
!t.closeOnEscape || !m.value || w.key !== "Escape" || k("escape");
|
|
903
903
|
}
|
|
904
|
-
return
|
|
904
|
+
return V(
|
|
905
905
|
() => m.value,
|
|
906
|
-
async (
|
|
907
|
-
document.removeEventListener("keydown",
|
|
906
|
+
async (w) => {
|
|
907
|
+
document.removeEventListener("keydown", Ae), w && (H(), t.closeOnEscape && document.addEventListener("keydown", Ae), t.autoFocusPanel && (await ae(), d.value?.focus()));
|
|
908
908
|
},
|
|
909
909
|
{ immediate: !0 }
|
|
910
|
-
),
|
|
910
|
+
), V(
|
|
911
911
|
() => t.items,
|
|
912
912
|
() => {
|
|
913
|
-
m.value &&
|
|
913
|
+
m.value && H();
|
|
914
914
|
},
|
|
915
915
|
{ deep: !0 }
|
|
916
|
-
),
|
|
917
|
-
document.removeEventListener("keydown",
|
|
918
|
-
}), (
|
|
919
|
-
|
|
916
|
+
), st(() => {
|
|
917
|
+
document.removeEventListener("keydown", Ae);
|
|
918
|
+
}), (w, B) => (_(), R("div", sn, [
|
|
919
|
+
w.$slots.trigger ? (_(), R("div", {
|
|
920
920
|
key: 0,
|
|
921
921
|
ref_key: "referenceEl",
|
|
922
922
|
ref: l,
|
|
@@ -927,35 +927,35 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
927
927
|
"aria-expanded": m.value,
|
|
928
928
|
"aria-haspopup": s.role,
|
|
929
929
|
onKeydown: [
|
|
930
|
-
|
|
931
|
-
|
|
930
|
+
pt(Ve(j, ["prevent"]), ["enter"]),
|
|
931
|
+
pt(Ve(j, ["prevent"]), ["space"])
|
|
932
932
|
]
|
|
933
933
|
}, [
|
|
934
|
-
|
|
934
|
+
xe(w.$slots, "trigger", {
|
|
935
935
|
isActive: m.value,
|
|
936
|
-
toggle:
|
|
936
|
+
toggle: j,
|
|
937
937
|
open: x,
|
|
938
|
-
close:
|
|
938
|
+
close: I
|
|
939
939
|
})
|
|
940
|
-
], 40,
|
|
941
|
-
(
|
|
940
|
+
], 40, on)) : K("", !0),
|
|
941
|
+
(_(), W(Yt, {
|
|
942
942
|
to: D(f),
|
|
943
943
|
defer: "",
|
|
944
944
|
disabled: !h.value
|
|
945
945
|
}, [
|
|
946
|
-
|
|
946
|
+
Y(it, {
|
|
947
947
|
name: "vc-dropdown-transition",
|
|
948
948
|
appear: ""
|
|
949
949
|
}, {
|
|
950
950
|
default: fe(() => [
|
|
951
|
-
m.value ?
|
|
951
|
+
m.value ? ot((_(), R("div", {
|
|
952
952
|
key: 0,
|
|
953
953
|
id: o,
|
|
954
954
|
ref_key: "floatingEl",
|
|
955
955
|
ref: d,
|
|
956
|
-
class:
|
|
957
|
-
style:
|
|
958
|
-
maxHeight:
|
|
956
|
+
class: q(["vc-dropdown__dropdown", b.value]),
|
|
957
|
+
style: _e({
|
|
958
|
+
maxHeight: C.value,
|
|
959
959
|
...P.value
|
|
960
960
|
}),
|
|
961
961
|
role: s.role,
|
|
@@ -963,54 +963,54 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
963
963
|
tabindex: "-1",
|
|
964
964
|
onKeydown: ie
|
|
965
965
|
}, [
|
|
966
|
-
|
|
967
|
-
class:
|
|
966
|
+
$("div", {
|
|
967
|
+
class: q(["vc-dropdown__content", { "vc-dropdown__content--padded": s.padded }])
|
|
968
968
|
}, [
|
|
969
|
-
|
|
969
|
+
xe(w.$slots, "items-container", {
|
|
970
970
|
items: s.items,
|
|
971
|
-
close:
|
|
971
|
+
close: I
|
|
972
972
|
}, () => [
|
|
973
|
-
s.items.length ? (
|
|
974
|
-
(
|
|
975
|
-
id: p(
|
|
976
|
-
key: y(
|
|
977
|
-
class:
|
|
973
|
+
s.items.length ? (_(), R("div", un, [
|
|
974
|
+
(_(!0), R(Me, null, lt(s.items, (ee, ge) => (_(), R("div", {
|
|
975
|
+
id: p(ge),
|
|
976
|
+
key: y(ee, ge),
|
|
977
|
+
class: q(["vc-dropdown__item", {
|
|
978
978
|
"vc-dropdown__item--padded": s.padded,
|
|
979
979
|
"vc-dropdown__item--mobile": D(u),
|
|
980
|
-
"vc-dropdown__item--active": s.isItemActive?.(
|
|
981
|
-
"vc-dropdown__item--focused": c.value ===
|
|
980
|
+
"vc-dropdown__item--active": s.isItemActive?.(ee),
|
|
981
|
+
"vc-dropdown__item--focused": c.value === ge
|
|
982
982
|
}]),
|
|
983
|
-
role:
|
|
984
|
-
"aria-selected": s.role === "listbox" ? !!s.isItemActive?.(
|
|
985
|
-
onClick: (
|
|
983
|
+
role: A.value,
|
|
984
|
+
"aria-selected": s.role === "listbox" ? !!s.isItemActive?.(ee) : void 0,
|
|
985
|
+
onClick: (He) => J(ee, ge)
|
|
986
986
|
}, [
|
|
987
|
-
|
|
988
|
-
item:
|
|
989
|
-
click: () =>
|
|
987
|
+
xe(w.$slots, "item", {
|
|
988
|
+
item: ee,
|
|
989
|
+
click: () => J(ee, ge)
|
|
990
990
|
}, () => [
|
|
991
|
-
|
|
991
|
+
mt(he(s.itemText?.(ee)), 1)
|
|
992
992
|
])
|
|
993
|
-
], 10,
|
|
994
|
-
])) : (
|
|
995
|
-
|
|
996
|
-
|
|
993
|
+
], 10, cn))), 128))
|
|
994
|
+
])) : (_(), R("div", dn, [
|
|
995
|
+
xe(w.$slots, "empty", {}, () => [
|
|
996
|
+
mt(he(s.emptyText), 1)
|
|
997
997
|
])
|
|
998
998
|
]))
|
|
999
999
|
])
|
|
1000
1000
|
], 2)
|
|
1001
|
-
], 46,
|
|
1002
|
-
[D(
|
|
1003
|
-
]) :
|
|
1001
|
+
], 46, ln)), [
|
|
1002
|
+
[D(Nt), M]
|
|
1003
|
+
]) : K("", !0)
|
|
1004
1004
|
]),
|
|
1005
1005
|
_: 3
|
|
1006
1006
|
})
|
|
1007
1007
|
], 8, ["to", "disabled"]))
|
|
1008
1008
|
]));
|
|
1009
1009
|
}
|
|
1010
|
-
}),
|
|
1010
|
+
}), fn = {
|
|
1011
1011
|
key: 2,
|
|
1012
1012
|
class: "vc-dropdown-item__icon-placeholder"
|
|
1013
|
-
},
|
|
1013
|
+
}, pn = { class: "vc-dropdown-item__title" }, mn = /* @__PURE__ */ G({
|
|
1014
1014
|
__name: "VcDropdownItem",
|
|
1015
1015
|
props: {
|
|
1016
1016
|
title: {},
|
|
@@ -1019,35 +1019,35 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
1019
1019
|
disabled: { type: Boolean, default: !1 }
|
|
1020
1020
|
},
|
|
1021
1021
|
setup(s) {
|
|
1022
|
-
return (e, t) => (
|
|
1023
|
-
class:
|
|
1022
|
+
return (e, t) => (_(), R("div", {
|
|
1023
|
+
class: q(["vc-dropdown-item", {
|
|
1024
1024
|
"vc-dropdown-item--active": s.active,
|
|
1025
1025
|
"vc-dropdown-item--disabled": s.disabled
|
|
1026
1026
|
}])
|
|
1027
1027
|
}, [
|
|
1028
|
-
s.active ? (
|
|
1028
|
+
s.active ? (_(), W(D(oe), {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
icon: "lucide-check",
|
|
1031
1031
|
size: "xs",
|
|
1032
1032
|
class: "vc-dropdown-item__icon"
|
|
1033
|
-
})) : s.icon ? (
|
|
1033
|
+
})) : s.icon ? (_(), W(D(oe), {
|
|
1034
1034
|
key: 1,
|
|
1035
1035
|
icon: s.icon,
|
|
1036
1036
|
size: "xs",
|
|
1037
1037
|
class: "vc-dropdown-item__icon"
|
|
1038
|
-
}, null, 8, ["icon"])) : (
|
|
1039
|
-
|
|
1038
|
+
}, null, 8, ["icon"])) : (_(), R("span", fn)),
|
|
1039
|
+
$("span", pn, he(s.title), 1)
|
|
1040
1040
|
], 2));
|
|
1041
1041
|
}
|
|
1042
|
-
}),
|
|
1042
|
+
}), vn = {
|
|
1043
1043
|
key: 0,
|
|
1044
1044
|
"aria-label": "Breadcrumb",
|
|
1045
1045
|
class: "vc-breadcrumbs"
|
|
1046
|
-
},
|
|
1046
|
+
}, gn = ["data-item-key"], bn = {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
class: "vc-breadcrumbs__item-separator",
|
|
1049
1049
|
"aria-hidden": "true"
|
|
1050
|
-
},
|
|
1050
|
+
}, yn = 36, xn = 60, En = /* @__PURE__ */ G({
|
|
1051
1051
|
__name: "vc-breadcrumbs",
|
|
1052
1052
|
props: {
|
|
1053
1053
|
items: { default: () => [] },
|
|
@@ -1056,13 +1056,13 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
1056
1056
|
collapsed: { type: Boolean, default: !1 }
|
|
1057
1057
|
},
|
|
1058
1058
|
setup(s) {
|
|
1059
|
-
const e = s, t = O(null), n = O(!1), r =
|
|
1059
|
+
const e = s, t = O(null), n = O(!1), r = Mr({
|
|
1060
1060
|
containerRef: t,
|
|
1061
|
-
items:
|
|
1061
|
+
items: kt(e, "items"),
|
|
1062
1062
|
getItemKey: (f) => f.id,
|
|
1063
|
-
moreButtonWidth:
|
|
1063
|
+
moreButtonWidth: yn,
|
|
1064
1064
|
calculationStrategy: "reverse",
|
|
1065
|
-
initialItemWidth:
|
|
1065
|
+
initialItemWidth: xn
|
|
1066
1066
|
}), a = v(() => e.collapsed ? [] : r.visibleItems.value), o = v(() => e.collapsed ? e.items : r.hiddenItems.value), u = v(() => o.value.length > 0), l = r.recalculate;
|
|
1067
1067
|
function d() {
|
|
1068
1068
|
n.value = !n.value;
|
|
@@ -1070,17 +1070,17 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
1070
1070
|
function c(f) {
|
|
1071
1071
|
f.clickHandler?.(f.id);
|
|
1072
1072
|
}
|
|
1073
|
-
return
|
|
1074
|
-
const m =
|
|
1075
|
-
return s.items && s.items.length ? (
|
|
1076
|
-
|
|
1073
|
+
return ae(l), (f, h) => {
|
|
1074
|
+
const m = je("VcButton");
|
|
1075
|
+
return s.items && s.items.length ? (_(), R("nav", vn, [
|
|
1076
|
+
$("ol", {
|
|
1077
1077
|
ref_key: "contentRef",
|
|
1078
1078
|
ref: t,
|
|
1079
|
-
class:
|
|
1079
|
+
class: q(["vc-breadcrumbs__content", {
|
|
1080
1080
|
"vc-breadcrumbs__content--separated": s.separated
|
|
1081
1081
|
}])
|
|
1082
1082
|
}, [
|
|
1083
|
-
u.value ? (
|
|
1083
|
+
u.value ? (_(), W(D(hn), {
|
|
1084
1084
|
key: 0,
|
|
1085
1085
|
items: o.value,
|
|
1086
1086
|
"model-value": n.value,
|
|
@@ -1091,71 +1091,71 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
|
|
|
1091
1091
|
mainAxis: 10
|
|
1092
1092
|
},
|
|
1093
1093
|
onItemClick: c,
|
|
1094
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1094
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g)
|
|
1095
1095
|
}, {
|
|
1096
|
-
trigger: fe(({ isActive:
|
|
1097
|
-
|
|
1096
|
+
trigger: fe(({ isActive: g }) => [
|
|
1097
|
+
xe(f.$slots, "trigger", {
|
|
1098
1098
|
click: d,
|
|
1099
|
-
isActive:
|
|
1099
|
+
isActive: g
|
|
1100
1100
|
}, () => [
|
|
1101
|
-
|
|
1101
|
+
Y(m, {
|
|
1102
1102
|
text: "",
|
|
1103
1103
|
icon: "lucide-ellipsis-vertical",
|
|
1104
1104
|
"icon-size": "xl",
|
|
1105
1105
|
"data-more-button": "",
|
|
1106
|
-
class:
|
|
1107
|
-
"vc-breadcrumbs__expand-button--active":
|
|
1106
|
+
class: q(["vc-breadcrumbs__expand-button", {
|
|
1107
|
+
"vc-breadcrumbs__expand-button--active": g
|
|
1108
1108
|
}]),
|
|
1109
1109
|
onClick: d
|
|
1110
1110
|
}, null, 8, ["class"])
|
|
1111
1111
|
])
|
|
1112
1112
|
]),
|
|
1113
|
-
item: fe(({ item:
|
|
1114
|
-
|
|
1115
|
-
title: typeof
|
|
1116
|
-
icon:
|
|
1113
|
+
item: fe(({ item: g, click: S }) => [
|
|
1114
|
+
Y(mn, {
|
|
1115
|
+
title: typeof g.title == "string" ? g.title : g.title?.value ?? "",
|
|
1116
|
+
icon: g.icon,
|
|
1117
1117
|
onClick: S
|
|
1118
1118
|
}, null, 8, ["title", "icon", "onClick"])
|
|
1119
1119
|
]),
|
|
1120
1120
|
_: 3
|
|
1121
|
-
}, 8, ["items", "model-value"])) :
|
|
1122
|
-
(
|
|
1123
|
-
key:
|
|
1121
|
+
}, 8, ["items", "model-value"])) : K("", !0),
|
|
1122
|
+
(_(!0), R(Me, null, lt(a.value, (g, S) => (_(), R(Me, {
|
|
1123
|
+
key: g?.id ?? `breadcrumb-item-${S}`
|
|
1124
1124
|
}, [
|
|
1125
|
-
|
|
1125
|
+
g && g.title ? (_(), R("li", {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: "vc-breadcrumbs__item-wrapper",
|
|
1128
|
-
"data-item-key":
|
|
1128
|
+
"data-item-key": g.id
|
|
1129
1129
|
}, [
|
|
1130
|
-
s.separated && S !== 0 ? (
|
|
1131
|
-
|
|
1130
|
+
s.separated && S !== 0 ? (_(), R("span", bn, " / ")) : K("", !0),
|
|
1131
|
+
Y(an, we({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, g, {
|
|
1132
1132
|
current: S === a.value.length - 1,
|
|
1133
1133
|
"aria-current": S === a.value.length - 1 ? "page" : void 0,
|
|
1134
1134
|
variant: s.variant
|
|
1135
1135
|
}), null, 16, ["current", "aria-current", "variant"])
|
|
1136
|
-
], 8,
|
|
1136
|
+
], 8, gn)) : K("", !0)
|
|
1137
1137
|
], 64))), 128))
|
|
1138
1138
|
], 2)
|
|
1139
|
-
])) :
|
|
1139
|
+
])) : K("", !0);
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
}),
|
|
1143
|
-
function
|
|
1144
|
-
if (typeof e == "string" &&
|
|
1142
|
+
}), wn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
1143
|
+
function Cn(s, e) {
|
|
1144
|
+
if (typeof e == "string" && wn.test(e)) {
|
|
1145
1145
|
const t = new Date(e);
|
|
1146
1146
|
if (!isNaN(t.getTime()))
|
|
1147
1147
|
return t;
|
|
1148
1148
|
}
|
|
1149
1149
|
return e;
|
|
1150
1150
|
}
|
|
1151
|
-
class
|
|
1151
|
+
class Q {
|
|
1152
1152
|
authToken = "";
|
|
1153
1153
|
/**
|
|
1154
1154
|
* JSON parse reviver for converting date strings to Date objects.
|
|
1155
1155
|
* Subclasses use this when parsing API responses.
|
|
1156
1156
|
* The dateReviver function is defined in File.Header.liquid template.
|
|
1157
1157
|
*/
|
|
1158
|
-
jsonParseReviver =
|
|
1158
|
+
jsonParseReviver = Cn;
|
|
1159
1159
|
constructor() {
|
|
1160
1160
|
}
|
|
1161
1161
|
// Enforce always return empty string as baseUrl
|
|
@@ -1169,7 +1169,7 @@ class V {
|
|
|
1169
1169
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
class
|
|
1172
|
+
class _n extends Q {
|
|
1173
1173
|
http;
|
|
1174
1174
|
baseUrl;
|
|
1175
1175
|
constructor(e, t) {
|
|
@@ -1276,7 +1276,7 @@ class En extends V {
|
|
|
1276
1276
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
class
|
|
1279
|
+
class gi extends Q {
|
|
1280
1280
|
http;
|
|
1281
1281
|
baseUrl;
|
|
1282
1282
|
constructor(e, t) {
|
|
@@ -1306,7 +1306,7 @@ class mi extends V {
|
|
|
1306
1306
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
class
|
|
1309
|
+
class bi extends Q {
|
|
1310
1310
|
http;
|
|
1311
1311
|
baseUrl;
|
|
1312
1312
|
constructor(e, t) {
|
|
@@ -1448,7 +1448,7 @@ class vi extends V {
|
|
|
1448
1448
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
class
|
|
1451
|
+
class yi extends Q {
|
|
1452
1452
|
http;
|
|
1453
1453
|
baseUrl;
|
|
1454
1454
|
constructor(e, t) {
|
|
@@ -1624,7 +1624,7 @@ class gi extends V {
|
|
|
1624
1624
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
class
|
|
1627
|
+
class xi extends Q {
|
|
1628
1628
|
http;
|
|
1629
1629
|
baseUrl;
|
|
1630
1630
|
constructor(e, t) {
|
|
@@ -1653,7 +1653,7 @@ class bi extends V {
|
|
|
1653
1653
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
|
-
class
|
|
1656
|
+
class Ei extends Q {
|
|
1657
1657
|
http;
|
|
1658
1658
|
baseUrl;
|
|
1659
1659
|
constructor(e, t) {
|
|
@@ -1705,7 +1705,7 @@ class yi extends V {
|
|
|
1705
1705
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class wi extends Q {
|
|
1709
1709
|
http;
|
|
1710
1710
|
baseUrl;
|
|
1711
1711
|
constructor(e, t) {
|
|
@@ -1980,7 +1980,7 @@ class xi extends V {
|
|
|
1980
1980
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
|
-
class
|
|
1983
|
+
class Ci extends Q {
|
|
1984
1984
|
http;
|
|
1985
1985
|
baseUrl;
|
|
1986
1986
|
constructor(e, t) {
|
|
@@ -2013,7 +2013,7 @@ class Ei extends V {
|
|
|
2013
2013
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
class
|
|
2016
|
+
class _i extends Q {
|
|
2017
2017
|
http;
|
|
2018
2018
|
baseUrl;
|
|
2019
2019
|
constructor(e, t) {
|
|
@@ -2117,7 +2117,7 @@ class wi extends V {
|
|
|
2117
2117
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
|
-
class
|
|
2120
|
+
class Si extends Q {
|
|
2121
2121
|
http;
|
|
2122
2122
|
baseUrl;
|
|
2123
2123
|
constructor(e, t) {
|
|
@@ -2383,7 +2383,7 @@ class Ci extends V {
|
|
|
2383
2383
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
|
-
class
|
|
2386
|
+
class Ai extends Q {
|
|
2387
2387
|
http;
|
|
2388
2388
|
baseUrl;
|
|
2389
2389
|
constructor(e, t) {
|
|
@@ -2485,7 +2485,7 @@ class _i extends V {
|
|
|
2485
2485
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
|
-
class
|
|
2488
|
+
class Sn extends Q {
|
|
2489
2489
|
http;
|
|
2490
2490
|
baseUrl;
|
|
2491
2491
|
constructor(e, t) {
|
|
@@ -2541,7 +2541,7 @@ class wn extends V {
|
|
|
2541
2541
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
class
|
|
2544
|
+
class An extends Q {
|
|
2545
2545
|
http;
|
|
2546
2546
|
baseUrl;
|
|
2547
2547
|
constructor(e, t) {
|
|
@@ -3650,7 +3650,7 @@ class Cn extends V {
|
|
|
3650
3650
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3651
3651
|
}
|
|
3652
3652
|
}
|
|
3653
|
-
class
|
|
3653
|
+
class Ui extends Q {
|
|
3654
3654
|
http;
|
|
3655
3655
|
baseUrl;
|
|
3656
3656
|
constructor(e, t) {
|
|
@@ -3778,8 +3778,8 @@ class Si extends V {
|
|
|
3778
3778
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
|
-
var
|
|
3782
|
-
class
|
|
3781
|
+
var Un = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Un || {}), In = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(In || {}), Tn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(Tn || {}), Pn = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Pn || {}), On = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(On || {}), Rn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Rn || {}), kn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(kn || {}), Bn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Bn || {}), $n = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))($n || {}), Nn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(Nn || {}), jn = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(jn || {}), zn = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(zn || {}), Fn = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Fn || {}), Mn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Mn || {});
|
|
3782
|
+
class Dn extends Error {
|
|
3783
3783
|
message;
|
|
3784
3784
|
status;
|
|
3785
3785
|
response;
|
|
@@ -3794,11 +3794,11 @@ class zn extends Error {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
function i(s, e, t, n, r) {
|
|
3797
|
-
throw r ?? new
|
|
3797
|
+
throw r ?? new Dn(s, e, t, n, null);
|
|
3798
3798
|
}
|
|
3799
|
-
const
|
|
3800
|
-
const s = new
|
|
3801
|
-
|
|
3799
|
+
const qe = N("use-external-provider"), Ln = "externalSignIn", Gn = () => {
|
|
3800
|
+
const s = new _n(), e = or(
|
|
3801
|
+
Ln,
|
|
3802
3802
|
{},
|
|
3803
3803
|
{
|
|
3804
3804
|
listenToStorageChanges: !0,
|
|
@@ -3817,7 +3817,7 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
|
|
|
3817
3817
|
const d = new URL("/externalsignin", u);
|
|
3818
3818
|
d.searchParams.set("authenticationType", o), d.searchParams.set("returnUrl", l), e.value = { providerType: o }, window.location.assign(d);
|
|
3819
3819
|
} catch (u) {
|
|
3820
|
-
throw
|
|
3820
|
+
throw qe.error("External sign-in failed:", u), u;
|
|
3821
3821
|
}
|
|
3822
3822
|
}
|
|
3823
3823
|
async function r(o) {
|
|
@@ -3825,7 +3825,7 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
|
|
|
3825
3825
|
const u = window.location.origin, l = window.location.pathname ?? "/", d = new URL("/externalsignin/signout", u);
|
|
3826
3826
|
d.searchParams.set("authenticationType", o), d.searchParams.set("returnUrl", l), e.value = {}, window.location.assign(d);
|
|
3827
3827
|
} catch (u) {
|
|
3828
|
-
throw
|
|
3828
|
+
throw qe.error("External sign-out failed:", u), u;
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
3831
|
async function a() {
|
|
@@ -3833,7 +3833,7 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
|
|
|
3833
3833
|
try {
|
|
3834
3834
|
o = await s.getExternalLoginProviders();
|
|
3835
3835
|
} catch (u) {
|
|
3836
|
-
|
|
3836
|
+
qe.error("Failed to get external login providers:", u);
|
|
3837
3837
|
}
|
|
3838
3838
|
return o;
|
|
3839
3839
|
}
|
|
@@ -3843,10 +3843,10 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
|
|
|
3843
3843
|
signOut: r,
|
|
3844
3844
|
getProviders: a
|
|
3845
3845
|
};
|
|
3846
|
-
},
|
|
3847
|
-
function
|
|
3846
|
+
}, ht = "vc_auth_data", z = N("use-user"), ue = O();
|
|
3847
|
+
function Jn() {
|
|
3848
3848
|
try {
|
|
3849
|
-
const s = localStorage.getItem(
|
|
3849
|
+
const s = localStorage.getItem(ht);
|
|
3850
3850
|
if (s)
|
|
3851
3851
|
return JSON.parse(s);
|
|
3852
3852
|
} catch (s) {
|
|
@@ -3854,21 +3854,21 @@ function Dn() {
|
|
|
3854
3854
|
}
|
|
3855
3855
|
return null;
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function xt(s) {
|
|
3858
3858
|
try {
|
|
3859
|
-
z.debug("storeAuthData - Saving:", s), localStorage.setItem(
|
|
3859
|
+
z.debug("storeAuthData - Saving:", s), localStorage.setItem(ht, JSON.stringify(s)), z.debug("storeAuthData - Saved successfully");
|
|
3860
3860
|
} catch (e) {
|
|
3861
3861
|
z.error("Failed to store auth data:", e);
|
|
3862
3862
|
}
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function Wn() {
|
|
3865
3865
|
try {
|
|
3866
|
-
localStorage.removeItem(
|
|
3866
|
+
localStorage.removeItem(ht);
|
|
3867
3867
|
} catch (s) {
|
|
3868
3868
|
z.error("Failed to clear auth data:", s);
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
|
-
async function
|
|
3871
|
+
async function Et(s) {
|
|
3872
3872
|
try {
|
|
3873
3873
|
const e = new URLSearchParams(s).toString(), t = await fetch("/connect/token", {
|
|
3874
3874
|
method: "POST",
|
|
@@ -3897,64 +3897,64 @@ async function xt(s) {
|
|
|
3897
3897
|
return z.error("fetchToken - Exception:", e), null;
|
|
3898
3898
|
}
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3901
|
-
const s = O(!1), e = O(null), { storage: t, signOut: n } =
|
|
3902
|
-
async function o(
|
|
3903
|
-
let
|
|
3900
|
+
function Ft() {
|
|
3901
|
+
const s = O(!1), e = O(null), { storage: t, signOut: n } = Gn(), r = new An(), a = v(() => ue.value?.userName != null);
|
|
3902
|
+
async function o(b, P) {
|
|
3903
|
+
let C = !1;
|
|
3904
3904
|
try {
|
|
3905
|
-
s.value = !0,
|
|
3905
|
+
s.value = !0, C = await r.validatePasswordResetToken(b, {
|
|
3906
3906
|
token: P
|
|
3907
3907
|
});
|
|
3908
3908
|
} catch {
|
|
3909
3909
|
} finally {
|
|
3910
3910
|
s.value = !1;
|
|
3911
3911
|
}
|
|
3912
|
-
return
|
|
3912
|
+
return C;
|
|
3913
3913
|
}
|
|
3914
|
-
async function u(
|
|
3915
|
-
return r.validatePassword(
|
|
3914
|
+
async function u(b) {
|
|
3915
|
+
return r.validatePassword(b);
|
|
3916
3916
|
}
|
|
3917
|
-
async function l(
|
|
3918
|
-
return r.resetPasswordByToken(
|
|
3917
|
+
async function l(b, P, C) {
|
|
3918
|
+
return r.resetPasswordByToken(b, {
|
|
3919
3919
|
newPassword: P,
|
|
3920
|
-
token:
|
|
3920
|
+
token: C
|
|
3921
3921
|
});
|
|
3922
3922
|
}
|
|
3923
|
-
async function d(
|
|
3923
|
+
async function d(b, P) {
|
|
3924
3924
|
z.debug("signIn - Entry point");
|
|
3925
3925
|
try {
|
|
3926
3926
|
s.value = !0;
|
|
3927
|
-
const
|
|
3928
|
-
if (z.debug("signIn - Cookie login completed:",
|
|
3929
|
-
return
|
|
3927
|
+
const C = await r.login({ userName: b, password: P });
|
|
3928
|
+
if (z.debug("signIn - Cookie login completed:", C), !C.succeeded)
|
|
3929
|
+
return C;
|
|
3930
3930
|
z.debug("signIn - Requesting token...");
|
|
3931
|
-
const
|
|
3931
|
+
const A = await Et({
|
|
3932
3932
|
grant_type: "password",
|
|
3933
|
-
username:
|
|
3933
|
+
username: b,
|
|
3934
3934
|
password: P,
|
|
3935
3935
|
scope: "offline_access"
|
|
3936
3936
|
});
|
|
3937
|
-
|
|
3937
|
+
A && (e.value = A, xt(e.value), z.debug("signIn - Token saved:", e.value));
|
|
3938
3938
|
const T = await r.getCurrentUser();
|
|
3939
3939
|
if (T)
|
|
3940
|
-
return ue.value = T,
|
|
3940
|
+
return ue.value = T, C;
|
|
3941
3941
|
throw { succeeded: !1 };
|
|
3942
|
-
} catch (
|
|
3943
|
-
z.error("signIn failed:",
|
|
3944
|
-
let
|
|
3945
|
-
if (
|
|
3942
|
+
} catch (C) {
|
|
3943
|
+
z.error("signIn failed:", C);
|
|
3944
|
+
let A = C.message;
|
|
3945
|
+
if (C.response)
|
|
3946
3946
|
try {
|
|
3947
|
-
const T = JSON.parse(
|
|
3948
|
-
|
|
3947
|
+
const T = JSON.parse(C.response);
|
|
3948
|
+
A = T.errorDescription || T.errors?.[0]?.description || T.error || A;
|
|
3949
3949
|
} catch {
|
|
3950
3950
|
}
|
|
3951
|
-
return { succeeded: !1, error:
|
|
3951
|
+
return { succeeded: !1, error: A, status: C.status };
|
|
3952
3952
|
} finally {
|
|
3953
3953
|
s.value = !1;
|
|
3954
3954
|
}
|
|
3955
3955
|
}
|
|
3956
3956
|
async function c() {
|
|
3957
|
-
z.debug("signOut - Entry point"), ue.value = void 0,
|
|
3957
|
+
z.debug("signOut - Entry point"), ue.value = void 0, Wn(), e.value = null, t.value?.providerType ? await n(t.value.providerType) : r.logout();
|
|
3958
3958
|
}
|
|
3959
3959
|
let f = null;
|
|
3960
3960
|
async function h() {
|
|
@@ -3962,70 +3962,70 @@ function jt() {
|
|
|
3962
3962
|
z.debug("loadUser - Entry point");
|
|
3963
3963
|
try {
|
|
3964
3964
|
s.value = !0, performance.mark("vc:auth-start");
|
|
3965
|
-
const [
|
|
3966
|
-
ue.value =
|
|
3967
|
-
} catch (
|
|
3968
|
-
z.error("loadUser failed:",
|
|
3965
|
+
const [b] = await Promise.all([r.getCurrentUser(), E()]);
|
|
3966
|
+
ue.value = b, performance.mark("vc:auth-done"), z.debug("User details loaded:", ue.value);
|
|
3967
|
+
} catch (b) {
|
|
3968
|
+
z.error("loadUser failed:", b);
|
|
3969
3969
|
} finally {
|
|
3970
3970
|
s.value = !1, f = null;
|
|
3971
3971
|
}
|
|
3972
3972
|
return { ...ue.value };
|
|
3973
3973
|
})(), f);
|
|
3974
3974
|
}
|
|
3975
|
-
async function m(
|
|
3975
|
+
async function m(b) {
|
|
3976
3976
|
try {
|
|
3977
|
-
return s.value = !0, await r.requestPasswordReset(
|
|
3977
|
+
return s.value = !0, await r.requestPasswordReset(b), { succeeded: !0 };
|
|
3978
3978
|
} catch (P) {
|
|
3979
3979
|
return { succeeded: !1, error: P };
|
|
3980
3980
|
} finally {
|
|
3981
3981
|
s.value = !1;
|
|
3982
3982
|
}
|
|
3983
3983
|
}
|
|
3984
|
-
async function b
|
|
3985
|
-
let
|
|
3984
|
+
async function g(b, P) {
|
|
3985
|
+
let C;
|
|
3986
3986
|
try {
|
|
3987
3987
|
s.value = !0;
|
|
3988
|
-
const
|
|
3989
|
-
oldPassword:
|
|
3988
|
+
const A = {
|
|
3989
|
+
oldPassword: b,
|
|
3990
3990
|
newPassword: P
|
|
3991
3991
|
};
|
|
3992
|
-
|
|
3993
|
-
} catch (
|
|
3994
|
-
return { succeeded: !1, errors: [
|
|
3992
|
+
C = await r.changeCurrentUserPassword(A);
|
|
3993
|
+
} catch (A) {
|
|
3994
|
+
return { succeeded: !1, errors: [A.message] };
|
|
3995
3995
|
} finally {
|
|
3996
3996
|
s.value = !1;
|
|
3997
3997
|
}
|
|
3998
|
-
return
|
|
3998
|
+
return C;
|
|
3999
3999
|
}
|
|
4000
4000
|
async function S() {
|
|
4001
|
-
let
|
|
4001
|
+
let b = null;
|
|
4002
4002
|
try {
|
|
4003
|
-
|
|
4003
|
+
b = await r.getLoginTypes();
|
|
4004
4004
|
} catch (P) {
|
|
4005
4005
|
throw z.error("getLoginType failed:", P), P;
|
|
4006
4006
|
}
|
|
4007
|
-
return
|
|
4007
|
+
return b;
|
|
4008
4008
|
}
|
|
4009
|
-
const
|
|
4009
|
+
const U = 60 * 1e3;
|
|
4010
4010
|
async function E() {
|
|
4011
|
-
if (z.debug("getAccessToken - Entry point"), e.value || (e.value =
|
|
4011
|
+
if (z.debug("getAccessToken - Entry point"), e.value || (e.value = Jn()), !e.value)
|
|
4012
4012
|
return z.debug("getAccessToken - No auth data available"), null;
|
|
4013
|
-
const
|
|
4013
|
+
const b = Date.now(), P = e.value.expires_at, C = P ? b >= P - U : !1;
|
|
4014
4014
|
if (z.debug("getAccessToken - Token status:", {
|
|
4015
4015
|
hasToken: !!e.value.access_token,
|
|
4016
4016
|
expiresAt: P ? new Date(P).toISOString() : "not set",
|
|
4017
|
-
now: new Date(
|
|
4018
|
-
shouldRefresh:
|
|
4017
|
+
now: new Date(b).toISOString(),
|
|
4018
|
+
shouldRefresh: C,
|
|
4019
4019
|
hasRefreshToken: !!e.value.refresh_token
|
|
4020
|
-
}),
|
|
4020
|
+
}), C && e.value.refresh_token) {
|
|
4021
4021
|
z.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
4022
|
-
const
|
|
4022
|
+
const A = await Et({
|
|
4023
4023
|
grant_type: "refresh_token",
|
|
4024
4024
|
refresh_token: e.value.refresh_token,
|
|
4025
4025
|
scope: "offline_access"
|
|
4026
4026
|
});
|
|
4027
|
-
|
|
4028
|
-
expiresAt:
|
|
4027
|
+
A ? (A.refresh_token = A.refresh_token ?? e.value.refresh_token, e.value = A, xt(e.value), z.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
4028
|
+
expiresAt: A.expires_at ? new Date(A.expires_at).toISOString() : "not set"
|
|
4029
4029
|
})) : z.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
4030
4030
|
}
|
|
4031
4031
|
return e.value?.access_token ?? e.value?.token ?? null;
|
|
@@ -4042,13 +4042,13 @@ function jt() {
|
|
|
4042
4042
|
validatePassword: u,
|
|
4043
4043
|
resetPasswordByToken: l,
|
|
4044
4044
|
requestPasswordReset: m,
|
|
4045
|
-
changeUserPassword:
|
|
4045
|
+
changeUserPassword: g,
|
|
4046
4046
|
getLoginType: S,
|
|
4047
4047
|
getAccessToken: E
|
|
4048
4048
|
};
|
|
4049
4049
|
}
|
|
4050
|
-
const
|
|
4051
|
-
const s =
|
|
4050
|
+
const Hn = $t(() => {
|
|
4051
|
+
const s = Ft();
|
|
4052
4052
|
return {
|
|
4053
4053
|
user: s.user,
|
|
4054
4054
|
loading: s.loading,
|
|
@@ -4058,14 +4058,14 @@ const Gn = Bt(() => {
|
|
|
4058
4058
|
signOut: s.signOut,
|
|
4059
4059
|
getAccessToken: s.getAccessToken
|
|
4060
4060
|
};
|
|
4061
|
-
}),
|
|
4061
|
+
}), Kn = {
|
|
4062
4062
|
info: 5e3,
|
|
4063
4063
|
warning: 8e3,
|
|
4064
4064
|
error: !1,
|
|
4065
4065
|
// persistent
|
|
4066
4066
|
critical: !1
|
|
4067
4067
|
// persistent
|
|
4068
|
-
},
|
|
4068
|
+
}, Ii = Symbol("NotificationContext"), qn = ["IndexProgressPushNotification"], Zn = Symbol("NotificationContainerState"), Yn = N("notification-instance"), ne = {
|
|
4069
4069
|
"top-center": void 0,
|
|
4070
4070
|
"top-right": void 0,
|
|
4071
4071
|
"top-left": void 0,
|
|
@@ -4073,27 +4073,27 @@ const Gn = Bt(() => {
|
|
|
4073
4073
|
"bottom-right": void 0,
|
|
4074
4074
|
"bottom-left": void 0
|
|
4075
4075
|
};
|
|
4076
|
-
function
|
|
4076
|
+
function Xn() {
|
|
4077
4077
|
function s(r, a, o) {
|
|
4078
|
-
document.getElementById(a) && (
|
|
4078
|
+
document.getElementById(a) && (ne[o] = r);
|
|
4079
4079
|
}
|
|
4080
4080
|
function e(r) {
|
|
4081
4081
|
try {
|
|
4082
|
-
r ?
|
|
4082
|
+
r ? ne[r] && (ne[r]?.unmount(), document.getElementById(`notification-${r}`)?.remove(), ne[r] = void 0) : (Object.keys(ne).forEach((o) => {
|
|
4083
4083
|
const u = o;
|
|
4084
|
-
|
|
4085
|
-
}), Object.values(
|
|
4084
|
+
ne[u]?.unmount(), document.getElementById(`notification-${u}`)?.remove(), ne[u] = void 0;
|
|
4085
|
+
}), Object.values(ne).some((o) => o !== void 0) || document.querySelector(".notification")?.remove());
|
|
4086
4086
|
} catch (a) {
|
|
4087
|
-
|
|
4087
|
+
Yn.error("Failed to unmount notification component:", a);
|
|
4088
4088
|
}
|
|
4089
4089
|
}
|
|
4090
4090
|
function t() {
|
|
4091
|
-
Object.keys(
|
|
4092
|
-
|
|
4091
|
+
Object.keys(ne).forEach((r) => {
|
|
4092
|
+
ne[r] && e(r);
|
|
4093
4093
|
});
|
|
4094
4094
|
}
|
|
4095
4095
|
function n(r) {
|
|
4096
|
-
return
|
|
4096
|
+
return ne[r];
|
|
4097
4097
|
}
|
|
4098
4098
|
return {
|
|
4099
4099
|
saveInstance: s,
|
|
@@ -4102,25 +4102,25 @@ function qn() {
|
|
|
4102
4102
|
getInstanceByPosition: n
|
|
4103
4103
|
};
|
|
4104
4104
|
}
|
|
4105
|
-
const
|
|
4105
|
+
const ye = N("notification-container"), te = {
|
|
4106
4106
|
"top-center": O([]),
|
|
4107
4107
|
"top-right": O([]),
|
|
4108
4108
|
"top-left": O([]),
|
|
4109
4109
|
"bottom-center": O([]),
|
|
4110
4110
|
"bottom-right": O([]),
|
|
4111
4111
|
"bottom-left": O([])
|
|
4112
|
-
}, { clearContainer:
|
|
4113
|
-
function
|
|
4114
|
-
const s =
|
|
4112
|
+
}, { clearContainer: Vn, unmountComponent: Qn, saveInstance: ea, getInstanceByPosition: wt } = Xn();
|
|
4113
|
+
function ta() {
|
|
4114
|
+
const s = Xt({
|
|
4115
4115
|
timeout: 3e3,
|
|
4116
4116
|
pauseOnHover: !0,
|
|
4117
4117
|
position: "top-center"
|
|
4118
4118
|
});
|
|
4119
4119
|
function e() {
|
|
4120
|
-
return Object.values(
|
|
4120
|
+
return Object.values(te).flatMap((l) => l.value);
|
|
4121
4121
|
}
|
|
4122
4122
|
function t(l) {
|
|
4123
|
-
return
|
|
4123
|
+
return te[l].value;
|
|
4124
4124
|
}
|
|
4125
4125
|
function n(l) {
|
|
4126
4126
|
return e().find((d) => d.notificationId === l);
|
|
@@ -4132,15 +4132,15 @@ function Vn() {
|
|
|
4132
4132
|
}
|
|
4133
4133
|
async function a(l) {
|
|
4134
4134
|
const d = l.position || s.position;
|
|
4135
|
-
if (!
|
|
4136
|
-
const f = r(d), { default: h } = await import("./index-
|
|
4135
|
+
if (!wt(d)) {
|
|
4136
|
+
const f = r(d), { default: h } = await import("./index-BzpX90RF.js"), m = Vt(h, {
|
|
4137
4137
|
...l,
|
|
4138
4138
|
position: d
|
|
4139
4139
|
// Pass the position to the component
|
|
4140
4140
|
});
|
|
4141
|
-
m.provide(
|
|
4141
|
+
m.provide(Zn, { notificationContainers: te, actions: u }), m.mount(f), ea(m, f.id, d);
|
|
4142
4142
|
}
|
|
4143
|
-
|
|
4143
|
+
ae(() => {
|
|
4144
4144
|
l.updateId ? u.update(l) : u.add(l);
|
|
4145
4145
|
});
|
|
4146
4146
|
}
|
|
@@ -4149,62 +4149,62 @@ function Vn() {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
const u = {
|
|
4151
4151
|
add(l) {
|
|
4152
|
-
const d = l.position || s.position, c =
|
|
4153
|
-
c.value.find((f) => f.notificationId === l.notificationId) ||
|
|
4152
|
+
const d = l.position || s.position, c = te[d];
|
|
4153
|
+
c.value.find((f) => f.notificationId === l.notificationId) || ae(() => {
|
|
4154
4154
|
c.value.push(l), l.onOpen && typeof l?.onOpen == "function" && l.onOpen(l.payload);
|
|
4155
4155
|
});
|
|
4156
4156
|
},
|
|
4157
4157
|
remove(l) {
|
|
4158
4158
|
if (l) {
|
|
4159
4159
|
let d, c;
|
|
4160
|
-
Object.entries(
|
|
4161
|
-
const m = h.value.find((
|
|
4160
|
+
Object.entries(te).forEach(([f, h]) => {
|
|
4161
|
+
const m = h.value.find((g) => g.notificationId === l);
|
|
4162
4162
|
m && (d = m, c = f);
|
|
4163
|
-
}), c && (
|
|
4163
|
+
}), c && (te[c].value = te[c].value.filter((f) => f.notificationId !== l), te[c].value.length === 0 && Qn(c), ae(() => {
|
|
4164
4164
|
d?.onClose && typeof d?.onClose == "function" && d.onClose(d.payload);
|
|
4165
4165
|
}));
|
|
4166
4166
|
}
|
|
4167
4167
|
},
|
|
4168
4168
|
clear() {
|
|
4169
|
-
|
|
4169
|
+
Vn(), Object.values(te).forEach((l) => {
|
|
4170
4170
|
l.value = [];
|
|
4171
4171
|
});
|
|
4172
4172
|
},
|
|
4173
4173
|
dismiss(l) {
|
|
4174
4174
|
if (!l) return;
|
|
4175
4175
|
let d = !1;
|
|
4176
|
-
Object.values(
|
|
4176
|
+
Object.values(te).forEach((c) => {
|
|
4177
4177
|
c.value.forEach((f) => {
|
|
4178
4178
|
f.notificationId === l && (f.dismissing = !0, d = !0);
|
|
4179
4179
|
});
|
|
4180
|
-
}), d ||
|
|
4180
|
+
}), d || ye.debug(`dismiss: notification ${l} not found`);
|
|
4181
4181
|
},
|
|
4182
4182
|
update(l) {
|
|
4183
4183
|
if (l.updateId) {
|
|
4184
4184
|
let d, c, f;
|
|
4185
|
-
if (Object.entries(
|
|
4186
|
-
const
|
|
4187
|
-
|
|
4185
|
+
if (Object.entries(te).forEach(([h, m]) => {
|
|
4186
|
+
const g = m.value.find((S) => S.notificationId === l.notificationId);
|
|
4187
|
+
g && (d = g, c = m, f = h);
|
|
4188
4188
|
}), d && c) {
|
|
4189
|
-
if (
|
|
4189
|
+
if (ye.debug(`Updating notification ${l.notificationId} in position ${f}`), l.position && l.position !== f) {
|
|
4190
4190
|
c.value = c.value.filter(
|
|
4191
|
-
(
|
|
4191
|
+
(g) => g.notificationId !== l.notificationId
|
|
4192
4192
|
);
|
|
4193
4193
|
const h = {
|
|
4194
4194
|
...d,
|
|
4195
4195
|
...l
|
|
4196
4196
|
}, m = l.position;
|
|
4197
|
-
|
|
4197
|
+
wt(m) ? (ye.debug(`Adding to existing container for position ${m}`), te[m].value.push(h)) : (ye.debug(`Creating new container for position ${m}`), a(h));
|
|
4198
4198
|
} else
|
|
4199
|
-
|
|
4199
|
+
ye.debug("Standard update of notification properties"), Object.keys(l).forEach((h) => {
|
|
4200
4200
|
if (h !== "updateId" && h !== "notificationId") {
|
|
4201
|
-
const m = h,
|
|
4202
|
-
d &&
|
|
4201
|
+
const m = h, g = l[m];
|
|
4202
|
+
d && g !== void 0 && (d[m] = g);
|
|
4203
4203
|
}
|
|
4204
4204
|
});
|
|
4205
4205
|
return !0;
|
|
4206
4206
|
} else
|
|
4207
|
-
return
|
|
4207
|
+
return ye.warn(`Notification with ID ${l.notificationId} not found for update`), !1;
|
|
4208
4208
|
}
|
|
4209
4209
|
return !1;
|
|
4210
4210
|
},
|
|
@@ -4214,48 +4214,48 @@ function Vn() {
|
|
|
4214
4214
|
};
|
|
4215
4215
|
return {
|
|
4216
4216
|
defaultOptions: s,
|
|
4217
|
-
notificationContainers:
|
|
4217
|
+
notificationContainers: te,
|
|
4218
4218
|
actions: u,
|
|
4219
4219
|
getAllNotifications: e,
|
|
4220
4220
|
getNotificationsByPosition: t,
|
|
4221
4221
|
appendInstance: a,
|
|
4222
4222
|
getNotification: n,
|
|
4223
|
-
generateNotificationId:
|
|
4223
|
+
generateNotificationId: Ur,
|
|
4224
4224
|
hasNotification: o
|
|
4225
4225
|
};
|
|
4226
4226
|
}
|
|
4227
|
-
const
|
|
4228
|
-
defaultOptions:
|
|
4227
|
+
const Ie = N("notification"), {
|
|
4228
|
+
defaultOptions: Ce,
|
|
4229
4229
|
actions: de,
|
|
4230
|
-
getNotification:
|
|
4231
|
-
getAllNotifications:
|
|
4232
|
-
appendInstance:
|
|
4233
|
-
generateNotificationId:
|
|
4234
|
-
hasNotification:
|
|
4235
|
-
} =
|
|
4236
|
-
function
|
|
4237
|
-
return e =
|
|
4238
|
-
|
|
4230
|
+
getNotification: ra,
|
|
4231
|
+
getAllNotifications: et,
|
|
4232
|
+
appendInstance: na,
|
|
4233
|
+
generateNotificationId: tt,
|
|
4234
|
+
hasNotification: aa
|
|
4235
|
+
} = ta();
|
|
4236
|
+
function Pe(s, e) {
|
|
4237
|
+
return e = we(
|
|
4238
|
+
Ce,
|
|
4239
4239
|
e
|
|
4240
|
-
), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId =
|
|
4240
|
+
), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId = tt()), e = {
|
|
4241
4241
|
...e,
|
|
4242
4242
|
content: s
|
|
4243
|
-
},
|
|
4243
|
+
}, na(e), e.notificationId;
|
|
4244
4244
|
}
|
|
4245
|
-
const
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4245
|
+
const X = (s, e) => Pe(s, { ...e, type: "default" });
|
|
4246
|
+
X.error = (s, e) => Pe(s, { ...e, type: "error" });
|
|
4247
|
+
X.warning = (s, e) => Pe(s, { ...e, type: "warning" });
|
|
4248
|
+
X.success = (s, e) => Pe(s, { ...e, type: "success" });
|
|
4249
|
+
X.clearAll = () => {
|
|
4250
4250
|
de.clear();
|
|
4251
4251
|
};
|
|
4252
|
-
|
|
4252
|
+
X.remove = (s) => {
|
|
4253
4253
|
s ? de.dismiss(s) : de.clear();
|
|
4254
4254
|
};
|
|
4255
|
-
|
|
4256
|
-
if (!
|
|
4257
|
-
return
|
|
4258
|
-
const t =
|
|
4255
|
+
X.update = (s, e) => {
|
|
4256
|
+
if (!aa(s))
|
|
4257
|
+
return Ie.warn(`Cannot update: notification with ID ${s} not found`), s;
|
|
4258
|
+
const t = ra(String(s));
|
|
4259
4259
|
if (t)
|
|
4260
4260
|
if (e.position && e.position !== t.position) {
|
|
4261
4261
|
const n = {
|
|
@@ -4263,42 +4263,42 @@ Y.update = (s, e) => {
|
|
|
4263
4263
|
// Copy all current properties
|
|
4264
4264
|
...e,
|
|
4265
4265
|
// Apply new properties
|
|
4266
|
-
updateId:
|
|
4266
|
+
updateId: tt(),
|
|
4267
4267
|
// Mark as update
|
|
4268
4268
|
notificationId: s
|
|
4269
4269
|
// Keep the original ID
|
|
4270
4270
|
};
|
|
4271
4271
|
let r;
|
|
4272
4272
|
if (e.content !== void 0 ? (r = e.content, delete n.content) : t.content && (r = t.content, delete n.content), r)
|
|
4273
|
-
return de.remove(s),
|
|
4273
|
+
return de.remove(s), Pe(r, n);
|
|
4274
4274
|
} else {
|
|
4275
4275
|
const n = {
|
|
4276
4276
|
...e,
|
|
4277
|
-
updateId:
|
|
4277
|
+
updateId: tt(),
|
|
4278
4278
|
notificationId: s
|
|
4279
4279
|
};
|
|
4280
4280
|
return e.content !== void 0, de.update(n), s;
|
|
4281
4281
|
}
|
|
4282
4282
|
return s;
|
|
4283
4283
|
};
|
|
4284
|
-
|
|
4285
|
-
|
|
4284
|
+
X.setPosition = (s) => {
|
|
4285
|
+
Ce.position = s;
|
|
4286
4286
|
};
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
(t) => (t.position ||
|
|
4287
|
+
X.clearPosition = (s) => {
|
|
4288
|
+
et().filter(
|
|
4289
|
+
(t) => (t.position || Ce.position) === s
|
|
4290
4290
|
).forEach((t) => {
|
|
4291
4291
|
t.notificationId && de.dismiss(t.notificationId);
|
|
4292
4292
|
});
|
|
4293
4293
|
};
|
|
4294
|
-
|
|
4295
|
-
Object.entries(
|
|
4296
|
-
|
|
4294
|
+
X.debug = () => {
|
|
4295
|
+
Object.entries(Ce).forEach(([e, t]) => {
|
|
4296
|
+
Ie.debug(`Default option ${e}: `, t);
|
|
4297
4297
|
}), Object.entries(de).forEach(([e]) => {
|
|
4298
|
-
|
|
4298
|
+
Ie.debug(`Available action: ${e}`);
|
|
4299
4299
|
});
|
|
4300
|
-
const s =
|
|
4301
|
-
const n = t.position ||
|
|
4300
|
+
const s = et().reduce((e, t) => {
|
|
4301
|
+
const n = t.position || Ce.position;
|
|
4302
4302
|
return e[n] || (e[n] = []), e[n].push({
|
|
4303
4303
|
id: t.notificationId || "unknown",
|
|
4304
4304
|
type: t.type,
|
|
@@ -4306,20 +4306,20 @@ Y.debug = () => {
|
|
|
4306
4306
|
}), e;
|
|
4307
4307
|
}, {});
|
|
4308
4308
|
return Object.entries(s).forEach(([e, t]) => {
|
|
4309
|
-
|
|
4309
|
+
Ie.debug(`Position ${e}: ${t.length} notifications`), t.forEach((n) => Ie.debug(` - ${n.id} (${n.type}): ${n.content}`));
|
|
4310
4310
|
}), {
|
|
4311
|
-
active:
|
|
4312
|
-
defaultOptions:
|
|
4311
|
+
active: et(),
|
|
4312
|
+
defaultOptions: Ce
|
|
4313
4313
|
};
|
|
4314
4314
|
};
|
|
4315
|
-
const
|
|
4315
|
+
const sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4316
4316
|
__proto__: null,
|
|
4317
|
-
notification:
|
|
4317
|
+
notification: X
|
|
4318
4318
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4319
|
-
function
|
|
4319
|
+
function ia(s, e) {
|
|
4320
4320
|
return s.severity ? typeof s.severity == "function" ? s.severity(e) : s.severity : "info";
|
|
4321
4321
|
}
|
|
4322
|
-
function
|
|
4322
|
+
function oa(s, e) {
|
|
4323
4323
|
const t = s.notifyType ?? "unknown";
|
|
4324
4324
|
if (e.groupBy) {
|
|
4325
4325
|
const n = s[e.groupBy] ?? "default";
|
|
@@ -4327,28 +4327,28 @@ function aa(s, e) {
|
|
|
4327
4327
|
}
|
|
4328
4328
|
return `${t}::${s.id}`;
|
|
4329
4329
|
}
|
|
4330
|
-
const
|
|
4331
|
-
function
|
|
4330
|
+
const la = (s) => !!s.finished;
|
|
4331
|
+
function ua() {
|
|
4332
4332
|
const s = /* @__PURE__ */ new Map();
|
|
4333
4333
|
function e(r, a) {
|
|
4334
4334
|
if (!a.toast || a.toast.mode === "silent") return;
|
|
4335
|
-
const o =
|
|
4335
|
+
const o = ia(a.toast, r);
|
|
4336
4336
|
a.toast.mode === "auto" ? t(r, o, a) : a.toast.mode === "progress" && n(r, o, a);
|
|
4337
4337
|
}
|
|
4338
4338
|
function t(r, a, o) {
|
|
4339
|
-
const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout :
|
|
4340
|
-
|
|
4339
|
+
const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : Kn[a];
|
|
4340
|
+
X(r.title ?? "", {
|
|
4341
4341
|
timeout: u,
|
|
4342
4342
|
type: a === "critical" ? "error" : a === "info" ? "default" : a
|
|
4343
4343
|
});
|
|
4344
4344
|
}
|
|
4345
4345
|
function n(r, a, o) {
|
|
4346
|
-
const u = o.toast, l =
|
|
4347
|
-
if ((u.isComplete ??
|
|
4346
|
+
const u = o.toast, l = oa(r, o);
|
|
4347
|
+
if ((u.isComplete ?? la)(r)) {
|
|
4348
4348
|
const f = s.get(l);
|
|
4349
4349
|
if (f) {
|
|
4350
4350
|
const h = u.completedType?.(r) ?? "success";
|
|
4351
|
-
|
|
4351
|
+
X.update(f.toastId, {
|
|
4352
4352
|
type: h,
|
|
4353
4353
|
timeout: 5e3,
|
|
4354
4354
|
content: r.title ?? ""
|
|
@@ -4358,11 +4358,11 @@ function ia() {
|
|
|
4358
4358
|
}
|
|
4359
4359
|
const c = s.get(l);
|
|
4360
4360
|
if (c)
|
|
4361
|
-
|
|
4361
|
+
X.update(c.toastId, {
|
|
4362
4362
|
content: r.title ?? ""
|
|
4363
4363
|
});
|
|
4364
4364
|
else {
|
|
4365
|
-
const f =
|
|
4365
|
+
const f = X(r.title ?? "", {
|
|
4366
4366
|
timeout: !1,
|
|
4367
4367
|
type: a === "critical" ? "error" : a === "info" ? "default" : a
|
|
4368
4368
|
});
|
|
@@ -4371,39 +4371,39 @@ function ia() {
|
|
|
4371
4371
|
}
|
|
4372
4372
|
return { handle: e };
|
|
4373
4373
|
}
|
|
4374
|
-
const
|
|
4375
|
-
function
|
|
4374
|
+
const Ct = N("notification-store");
|
|
4375
|
+
function ca(s) {
|
|
4376
4376
|
const e = /* @__PURE__ */ new Map(), t = O([]), n = O([]), r = /* @__PURE__ */ new Map();
|
|
4377
4377
|
let a = 0;
|
|
4378
|
-
const o =
|
|
4379
|
-
function c(E,
|
|
4380
|
-
e.set(E,
|
|
4378
|
+
const o = ua().handle, u = new Sn(), l = v(() => t.value.filter((E) => E.isNew).length), d = v(() => l.value > 0);
|
|
4379
|
+
function c(E, b) {
|
|
4380
|
+
e.set(E, b);
|
|
4381
4381
|
}
|
|
4382
4382
|
function f(E) {
|
|
4383
|
-
if (E.notifyType &&
|
|
4383
|
+
if (E.notifyType && qn.includes(E.notifyType))
|
|
4384
4384
|
return;
|
|
4385
|
-
let
|
|
4385
|
+
let b = E.isNew;
|
|
4386
4386
|
const P = t.value.findIndex((T) => T.id === E.id);
|
|
4387
4387
|
if (P !== -1) {
|
|
4388
4388
|
const T = t.value[P];
|
|
4389
|
-
|
|
4389
|
+
b = T.isNew, Object.assign(T, E), T.isNew = b;
|
|
4390
4390
|
} else
|
|
4391
4391
|
t.value.push({ ...E });
|
|
4392
|
-
const
|
|
4393
|
-
if (
|
|
4394
|
-
const T = n.value[
|
|
4395
|
-
Object.assign(T, E), T.isNew =
|
|
4392
|
+
const C = n.value.findIndex((T) => T.id === E.id);
|
|
4393
|
+
if (C !== -1) {
|
|
4394
|
+
const T = n.value[C];
|
|
4395
|
+
Object.assign(T, E), T.isNew = b;
|
|
4396
4396
|
} else
|
|
4397
4397
|
n.value.push({ ...E });
|
|
4398
|
-
const
|
|
4399
|
-
if (
|
|
4398
|
+
const A = E.notifyType ? e.get(E.notifyType) : void 0;
|
|
4399
|
+
if (A && b && o(E, A), b && E.notifyType)
|
|
4400
4400
|
for (const T of r.values())
|
|
4401
4401
|
T.types.includes(E.notifyType) && (T.filter && !T.filter(E) || T.handler?.(E));
|
|
4402
4402
|
}
|
|
4403
4403
|
function h(E) {
|
|
4404
|
-
const
|
|
4405
|
-
|
|
4406
|
-
const P = n.value.find((
|
|
4404
|
+
const b = t.value.find((C) => C.id === E.id);
|
|
4405
|
+
b && (b.isNew = !1);
|
|
4406
|
+
const P = n.value.find((C) => C.id === E.id);
|
|
4407
4407
|
P && (P.isNew = !1);
|
|
4408
4408
|
}
|
|
4409
4409
|
async function m() {
|
|
@@ -4415,25 +4415,25 @@ function oa(s) {
|
|
|
4415
4415
|
try {
|
|
4416
4416
|
await u.markAllAsRead();
|
|
4417
4417
|
} catch (E) {
|
|
4418
|
-
|
|
4418
|
+
Ct.error("markAllAsRead failed:", E);
|
|
4419
4419
|
}
|
|
4420
4420
|
}
|
|
4421
|
-
async function
|
|
4421
|
+
async function g(E = 10) {
|
|
4422
4422
|
try {
|
|
4423
|
-
const
|
|
4423
|
+
const b = { take: E }, P = await u.searchPushNotification(b);
|
|
4424
4424
|
t.value = P.notifyEvents ?? [];
|
|
4425
|
-
} catch (
|
|
4426
|
-
throw
|
|
4425
|
+
} catch (b) {
|
|
4426
|
+
throw Ct.error("loadHistory failed:", b), b;
|
|
4427
4427
|
}
|
|
4428
4428
|
}
|
|
4429
4429
|
function S(E) {
|
|
4430
|
-
const
|
|
4431
|
-
return r.set(
|
|
4432
|
-
r.delete(
|
|
4430
|
+
const b = ++a;
|
|
4431
|
+
return r.set(b, { id: b, ...E }), () => {
|
|
4432
|
+
r.delete(b);
|
|
4433
4433
|
};
|
|
4434
4434
|
}
|
|
4435
|
-
function
|
|
4436
|
-
return t.value.filter((
|
|
4435
|
+
function U(E) {
|
|
4436
|
+
return t.value.filter((b) => b.notifyType === E);
|
|
4437
4437
|
}
|
|
4438
4438
|
return {
|
|
4439
4439
|
// State
|
|
@@ -4448,36 +4448,36 @@ function oa(s) {
|
|
|
4448
4448
|
ingest: f,
|
|
4449
4449
|
markAsRead: h,
|
|
4450
4450
|
markAllAsRead: m,
|
|
4451
|
-
loadHistory:
|
|
4451
|
+
loadHistory: g,
|
|
4452
4452
|
subscribe: S,
|
|
4453
|
-
getByType:
|
|
4453
|
+
getByType: U
|
|
4454
4454
|
};
|
|
4455
4455
|
}
|
|
4456
|
-
let
|
|
4457
|
-
function
|
|
4458
|
-
if (
|
|
4459
|
-
const s = F(
|
|
4456
|
+
let ke = null;
|
|
4457
|
+
function da() {
|
|
4458
|
+
if (me()) {
|
|
4459
|
+
const s = F(Wr, null);
|
|
4460
4460
|
if (s)
|
|
4461
|
-
return
|
|
4461
|
+
return ke = s, s;
|
|
4462
4462
|
}
|
|
4463
|
-
return
|
|
4463
|
+
return ke || (ke = ca()), ke;
|
|
4464
4464
|
}
|
|
4465
|
-
const
|
|
4466
|
-
function
|
|
4467
|
-
|
|
4465
|
+
const ze = /* @__PURE__ */ new WeakMap();
|
|
4466
|
+
function Ti(s, e, t) {
|
|
4467
|
+
ze.set(s, { timerId: e, notifId: t });
|
|
4468
4468
|
}
|
|
4469
|
-
function
|
|
4469
|
+
function ha(s) {
|
|
4470
4470
|
if (s && typeof s == "object") {
|
|
4471
|
-
const e =
|
|
4471
|
+
const e = ze.get(s), t = "originalError" in s && s.originalError && typeof s.originalError == "object" ? s.originalError : void 0, n = e ?? (t ? ze.get(t) : void 0), r = e ? s : t;
|
|
4472
4472
|
if (n && r)
|
|
4473
|
-
return clearTimeout(n.timerId), Promise.resolve().then(() =>
|
|
4473
|
+
return clearTimeout(n.timerId), Promise.resolve().then(() => sa).then(({ notification: a }) => {
|
|
4474
4474
|
a.remove(n.notifId);
|
|
4475
|
-
}),
|
|
4475
|
+
}), ze.delete(r), !0;
|
|
4476
4476
|
}
|
|
4477
4477
|
return !1;
|
|
4478
4478
|
}
|
|
4479
|
-
const We =
|
|
4480
|
-
const s =
|
|
4479
|
+
const We = $t(() => {
|
|
4480
|
+
const s = Ft();
|
|
4481
4481
|
return {
|
|
4482
4482
|
user: s.user,
|
|
4483
4483
|
loading: s.loading,
|
|
@@ -4494,7 +4494,7 @@ const We = Bt(() => {
|
|
|
4494
4494
|
signOut: s.signOut
|
|
4495
4495
|
};
|
|
4496
4496
|
});
|
|
4497
|
-
function
|
|
4497
|
+
function fa() {
|
|
4498
4498
|
const { user: s } = We();
|
|
4499
4499
|
function e(t) {
|
|
4500
4500
|
const n = s.value?.permissions ?? [];
|
|
@@ -4510,15 +4510,15 @@ function ca() {
|
|
|
4510
4510
|
hasAccess: e
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
|
-
const
|
|
4514
|
-
function
|
|
4515
|
-
const s = F(
|
|
4513
|
+
const pa = Symbol("AppInsightsOptions"), ma = Symbol("AppInsightsInstance");
|
|
4514
|
+
function va() {
|
|
4515
|
+
const s = F(ma, null), { user: e } = We(), t = F(pa, void 0);
|
|
4516
4516
|
function n() {
|
|
4517
4517
|
const r = t?.appName ? `[${t.appName}] ` : "", a = (l) => `${r}${l.name}`;
|
|
4518
4518
|
function o(l) {
|
|
4519
4519
|
if (!s) return;
|
|
4520
4520
|
const d = a(l);
|
|
4521
|
-
s.context.telemetryTrace.traceID =
|
|
4521
|
+
s.context.telemetryTrace.traceID = mr(), s.context.telemetryTrace.name = l.name, s.startTrackPage(d);
|
|
4522
4522
|
}
|
|
4523
4523
|
function u(l) {
|
|
4524
4524
|
if (!s) return;
|
|
@@ -4538,24 +4538,24 @@ function fa() {
|
|
|
4538
4538
|
appInsights: s
|
|
4539
4539
|
};
|
|
4540
4540
|
}
|
|
4541
|
-
const
|
|
4542
|
-
function
|
|
4543
|
-
const e = O(null), t =
|
|
4541
|
+
const ga = N("use-error-handler");
|
|
4542
|
+
function ba(s) {
|
|
4543
|
+
const e = O(null), t = me(), { appInsights: n } = va(), { user: r } = We(), a = O(!1);
|
|
4544
4544
|
function o() {
|
|
4545
4545
|
e.value = null, t && t.emit("reset");
|
|
4546
4546
|
}
|
|
4547
|
-
return
|
|
4547
|
+
return Qt((u) => {
|
|
4548
4548
|
if (a.value)
|
|
4549
4549
|
return !s;
|
|
4550
4550
|
a.value = !0;
|
|
4551
|
-
const l =
|
|
4551
|
+
const l = Qe(u);
|
|
4552
4552
|
return e.value = l, n && n.trackException({
|
|
4553
4553
|
exception: l,
|
|
4554
4554
|
properties: {
|
|
4555
4555
|
userId: r.value?.id ?? "",
|
|
4556
4556
|
userName: r.value?.userName ?? ""
|
|
4557
4557
|
}
|
|
4558
|
-
}),
|
|
4558
|
+
}), ga.error("Captured Error:", l.originalError), t && t.emit("error", l), ae(() => {
|
|
4559
4559
|
a.value = !1;
|
|
4560
4560
|
}), !s;
|
|
4561
4561
|
}), {
|
|
@@ -4563,13 +4563,13 @@ function ma(s) {
|
|
|
4563
4563
|
reset: o
|
|
4564
4564
|
};
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4567
|
-
const e =
|
|
4566
|
+
function ya(s) {
|
|
4567
|
+
const e = N(`${s.name}-bus`), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
|
|
4568
4568
|
function r(h) {
|
|
4569
4569
|
const m = s.getKey(h);
|
|
4570
|
-
t.set(m, h), n.size > 0 && c((
|
|
4570
|
+
t.set(m, h), n.size > 0 && c((g) => {
|
|
4571
4571
|
try {
|
|
4572
|
-
s.registerIntoService(
|
|
4572
|
+
s.registerIntoService(g, h);
|
|
4573
4573
|
} catch (S) {
|
|
4574
4574
|
e.warn(`Failed to live-register item (key=${m}):`, S);
|
|
4575
4575
|
}
|
|
@@ -4579,24 +4579,24 @@ function va(s) {
|
|
|
4579
4579
|
t.delete(h), s.unregisterFromService && n.size > 0 && n.forEach((m) => {
|
|
4580
4580
|
try {
|
|
4581
4581
|
s.unregisterFromService(m, h);
|
|
4582
|
-
} catch (
|
|
4583
|
-
e.warn(`Failed to live-unregister item (id=${h}):`,
|
|
4582
|
+
} catch (g) {
|
|
4583
|
+
e.warn(`Failed to live-unregister item (id=${h}):`, g);
|
|
4584
4584
|
}
|
|
4585
4585
|
});
|
|
4586
4586
|
}
|
|
4587
4587
|
function o(h) {
|
|
4588
|
-
for (const [m,
|
|
4589
|
-
h(
|
|
4588
|
+
for (const [m, g] of t)
|
|
4589
|
+
h(g) && t.delete(m);
|
|
4590
4590
|
}
|
|
4591
4591
|
function u() {
|
|
4592
4592
|
return Array.from(t.values());
|
|
4593
4593
|
}
|
|
4594
4594
|
function l(h) {
|
|
4595
|
-
n.add(h), t.forEach((m,
|
|
4595
|
+
n.add(h), t.forEach((m, g) => {
|
|
4596
4596
|
try {
|
|
4597
4597
|
s.registerIntoService(h, m);
|
|
4598
4598
|
} catch (S) {
|
|
4599
|
-
e.warn(`Failed to replay item (key=${
|
|
4599
|
+
e.warn(`Failed to replay item (key=${g}):`, S);
|
|
4600
4600
|
}
|
|
4601
4601
|
});
|
|
4602
4602
|
}
|
|
@@ -4624,41 +4624,41 @@ function va(s) {
|
|
|
4624
4624
|
};
|
|
4625
4625
|
}
|
|
4626
4626
|
function De(s) {
|
|
4627
|
-
return s.id !== void 0 ? `id:${String(s.id)}` : s.routeId ? `route:${s.routeId}` : s.url ? `url:${s.url}` : s.groupConfig?.id ? `gc:${s.groupConfig.id}:${s.title}` : s.group ? `g:${s.group}:${s.title}` : `hash:${JSON.stringify(
|
|
4627
|
+
return s.id !== void 0 ? `id:${String(s.id)}` : s.routeId ? `route:${s.routeId}` : s.url ? `url:${s.url}` : s.groupConfig?.id ? `gc:${s.groupConfig.id}:${s.title}` : s.group ? `g:${s.group}:${s.title}` : `hash:${JSON.stringify(Bt(s, "title"))}`;
|
|
4628
4628
|
}
|
|
4629
|
-
const
|
|
4629
|
+
const Oe = O(/* @__PURE__ */ new Map()), pe = ya({
|
|
4630
4630
|
name: "menu-service",
|
|
4631
4631
|
getKey: De,
|
|
4632
4632
|
registerIntoService: (s, e) => s.addMenuItem(e)
|
|
4633
4633
|
});
|
|
4634
|
-
function
|
|
4634
|
+
function xa(s) {
|
|
4635
4635
|
pe.preregister(s);
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4638
|
-
pe.removePreregistered((e) =>
|
|
4637
|
+
function Pi(s) {
|
|
4638
|
+
pe.removePreregistered((e) => ft(e, s)), pe.broadcast((e) => e.removeMenuItem(s));
|
|
4639
4639
|
}
|
|
4640
|
-
function
|
|
4641
|
-
|
|
4640
|
+
function Oi(s, e) {
|
|
4641
|
+
Oe.value.set(s, e), pe.broadcast((t) => {
|
|
4642
4642
|
t.menuBadges.value.set(s, e);
|
|
4643
4643
|
});
|
|
4644
4644
|
}
|
|
4645
|
-
function
|
|
4645
|
+
function Ri(s) {
|
|
4646
4646
|
const e = pe.getFirstInstance();
|
|
4647
|
-
return e ? e.menuBadges.value.get(s) :
|
|
4647
|
+
return e ? e.menuBadges.value.get(s) : Oe.value.get(s);
|
|
4648
4648
|
}
|
|
4649
|
-
function
|
|
4650
|
-
|
|
4649
|
+
function ki(s) {
|
|
4650
|
+
Oe.value.delete(s), pe.broadcast((e) => {
|
|
4651
4651
|
e.menuBadges.value.delete(s);
|
|
4652
4652
|
});
|
|
4653
4653
|
}
|
|
4654
|
-
function
|
|
4655
|
-
return pe.getFirstInstance()?.menuBadges ??
|
|
4654
|
+
function Bi() {
|
|
4655
|
+
return pe.getFirstInstance()?.menuBadges ?? Oe;
|
|
4656
4656
|
}
|
|
4657
|
-
const
|
|
4658
|
-
function
|
|
4657
|
+
const rt = 1 / 0, Ea = 1 / 0;
|
|
4658
|
+
function ft(s, e) {
|
|
4659
4659
|
return De(s) === De(e);
|
|
4660
4660
|
}
|
|
4661
|
-
function
|
|
4661
|
+
function wa(s) {
|
|
4662
4662
|
return s.groupConfig ? {
|
|
4663
4663
|
groupId: s.groupConfig.id,
|
|
4664
4664
|
groupTitle: s.groupConfig.title || s.groupConfig.id,
|
|
@@ -4666,26 +4666,26 @@ function ya(s) {
|
|
|
4666
4666
|
groupPriority: s.groupConfig.priority,
|
|
4667
4667
|
groupPermissions: s.groupConfig.permissions
|
|
4668
4668
|
} : {
|
|
4669
|
-
groupId: "group_" +
|
|
4669
|
+
groupId: "group_" + sr(s.group),
|
|
4670
4670
|
groupTitle: s.group,
|
|
4671
4671
|
groupIcon: s.groupIcon,
|
|
4672
4672
|
groupPriority: s.priority,
|
|
4673
4673
|
groupPermissions: void 0
|
|
4674
4674
|
};
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4677
|
-
return (s.priority ??
|
|
4676
|
+
function Ca(s, e) {
|
|
4677
|
+
return (s.priority ?? rt) - (e.priority ?? rt);
|
|
4678
4678
|
}
|
|
4679
|
-
function
|
|
4680
|
-
const t = (n) => n.inGroupPriority ?? n.priority ??
|
|
4679
|
+
function _a(s, e) {
|
|
4680
|
+
const t = (n) => n.inGroupPriority ?? n.priority ?? Ea;
|
|
4681
4681
|
return t(s) - t(e);
|
|
4682
4682
|
}
|
|
4683
|
-
function
|
|
4684
|
-
const t =
|
|
4685
|
-
...
|
|
4683
|
+
function Sa(s, e) {
|
|
4684
|
+
const t = wa(s), n = {
|
|
4685
|
+
...Bt(s, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
4686
4686
|
}, r = e.get(t.groupId);
|
|
4687
4687
|
if (r) {
|
|
4688
|
-
const a = [...r.children ?? []], o = a.findIndex((u) =>
|
|
4688
|
+
const a = [...r.children ?? []], o = a.findIndex((u) => ft(u, n));
|
|
4689
4689
|
o > -1 ? a[o] = n : a.push(n), e.set(t.groupId, {
|
|
4690
4690
|
...r,
|
|
4691
4691
|
children: a,
|
|
@@ -4700,34 +4700,34 @@ function wa(s, e) {
|
|
|
4700
4700
|
groupIcon: t.groupIcon ?? "",
|
|
4701
4701
|
title: t.groupTitle,
|
|
4702
4702
|
children: [n],
|
|
4703
|
-
priority: t.groupPriority ?? s.priority ??
|
|
4703
|
+
priority: t.groupPriority ?? s.priority ?? rt,
|
|
4704
4704
|
permissions: t.groupPermissions
|
|
4705
4705
|
});
|
|
4706
4706
|
}
|
|
4707
|
-
function
|
|
4707
|
+
function _t(s) {
|
|
4708
4708
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
4709
4709
|
for (const n of s)
|
|
4710
|
-
n.group || n.groupConfig ?
|
|
4711
|
-
return
|
|
4710
|
+
n.group || n.groupConfig ? Sa(n, e) : n.title && t.set(De(n), { ...n });
|
|
4711
|
+
return Aa([...e.values(), ...t.values()]);
|
|
4712
4712
|
}
|
|
4713
|
-
function
|
|
4713
|
+
function Aa(s) {
|
|
4714
4714
|
return s.map(
|
|
4715
4715
|
(e) => ({
|
|
4716
4716
|
...e,
|
|
4717
|
-
children: e.children ? [...e.children].sort(
|
|
4717
|
+
children: e.children ? [...e.children].sort(_a) : void 0
|
|
4718
4718
|
})
|
|
4719
|
-
).sort(
|
|
4719
|
+
).sort(Ca);
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4721
|
+
function $i() {
|
|
4722
4722
|
const s = O([]);
|
|
4723
4723
|
let e = [];
|
|
4724
|
-
const t = O(new Map(
|
|
4724
|
+
const t = O(new Map(Oe.value));
|
|
4725
4725
|
function n(o) {
|
|
4726
|
-
e.push(o), s.value =
|
|
4726
|
+
e.push(o), s.value = _t(e);
|
|
4727
4727
|
}
|
|
4728
4728
|
function r(o) {
|
|
4729
4729
|
const u = e.length;
|
|
4730
|
-
e = e.filter((l) => !
|
|
4730
|
+
e = e.filter((l) => !ft(l, o)), e.length !== u && (s.value = _t(e));
|
|
4731
4731
|
}
|
|
4732
4732
|
const a = {
|
|
4733
4733
|
addMenuItem: n,
|
|
@@ -4737,15 +4737,15 @@ function ki() {
|
|
|
4737
4737
|
};
|
|
4738
4738
|
return pe.replayInto(a), a;
|
|
4739
4739
|
}
|
|
4740
|
-
const
|
|
4740
|
+
const ve = dr({
|
|
4741
4741
|
legacy: !1,
|
|
4742
4742
|
globalInjection: !0,
|
|
4743
4743
|
locale: "en",
|
|
4744
4744
|
fallbackLocale: "en",
|
|
4745
4745
|
formatFallbackMessages: !0
|
|
4746
|
-
}),
|
|
4747
|
-
function
|
|
4748
|
-
const s =
|
|
4746
|
+
}), Ua = N("use-breadcrumbs");
|
|
4747
|
+
function Ia() {
|
|
4748
|
+
const s = ut([]);
|
|
4749
4749
|
function e(r) {
|
|
4750
4750
|
const a = s.value.findIndex((o) => o.id === r);
|
|
4751
4751
|
a !== -1 && (s.value = s.value.slice(0, a + 1));
|
|
@@ -4757,7 +4757,7 @@ function Sa() {
|
|
|
4757
4757
|
try {
|
|
4758
4758
|
await r.clickHandler(u) !== !1 && e(u);
|
|
4759
4759
|
} catch (l) {
|
|
4760
|
-
|
|
4760
|
+
Ua.error("Breadcrumb click handler failed:", l);
|
|
4761
4761
|
}
|
|
4762
4762
|
} : void 0
|
|
4763
4763
|
}, o = s.value.findIndex((u) => u.id === a.id);
|
|
@@ -4777,21 +4777,21 @@ function Sa() {
|
|
|
4777
4777
|
};
|
|
4778
4778
|
}
|
|
4779
4779
|
const Le = /* @__PURE__ */ new Map();
|
|
4780
|
-
function
|
|
4780
|
+
function Ni(s, e) {
|
|
4781
4781
|
Le.has(s) && console.warn(`[defineBlade] Duplicate blade name: "${s}". Overwriting.`), Le.set(s, e);
|
|
4782
4782
|
}
|
|
4783
|
-
function
|
|
4783
|
+
function Ta(s) {
|
|
4784
4784
|
return Le.get(s);
|
|
4785
4785
|
}
|
|
4786
|
-
function
|
|
4786
|
+
function ji() {
|
|
4787
4787
|
return Le;
|
|
4788
4788
|
}
|
|
4789
|
-
const
|
|
4790
|
-
function
|
|
4789
|
+
const Ze = N("blade-registry"), Pa = Symbol("BladeRegistry");
|
|
4790
|
+
function St(s) {
|
|
4791
4791
|
return !(!s || typeof s != "function" && typeof s != "object");
|
|
4792
4792
|
}
|
|
4793
|
-
function
|
|
4794
|
-
const e =
|
|
4793
|
+
function zi(s) {
|
|
4794
|
+
const e = ut(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Map();
|
|
4795
4795
|
function n(c) {
|
|
4796
4796
|
return c.startsWith("/") ? c : `/${c}`;
|
|
4797
4797
|
}
|
|
@@ -4800,32 +4800,32 @@ function Ni(s) {
|
|
|
4800
4800
|
throw new Error("BladeRegistry: Blade name must be a non-empty string");
|
|
4801
4801
|
if (!f?.component)
|
|
4802
4802
|
throw new Error(`BladeRegistry: Registration data must include a component for blade '${c}'`);
|
|
4803
|
-
if (!
|
|
4803
|
+
if (!St(f.component))
|
|
4804
4804
|
throw new Error(`BladeRegistry: Invalid component provided for blade '${c}'`);
|
|
4805
|
-
const m =
|
|
4806
|
-
if (
|
|
4805
|
+
const m = Ta(c), g = f.component, S = m?.url ?? f.route, U = m?.isWorkspace ?? f.isWorkspace ?? !1, E = m?.routable ?? f.routable !== !1, b = m?.permissions ?? f.permissions, P = m?.menuItem ?? g.menuItem, C = new Map(e.value);
|
|
4806
|
+
if (C.has(c)) {
|
|
4807
4807
|
if (!h)
|
|
4808
4808
|
throw new Error(
|
|
4809
4809
|
`BladeRegistry: Blade '${c}' is already registered. Use allowOverwrite=true if intentional (e.g. dynamic module hot-reload).`
|
|
4810
4810
|
);
|
|
4811
|
-
|
|
4811
|
+
Ze.warn(`Blade '${c}' is already registered. Overwriting (allowOverwrite=true).`);
|
|
4812
4812
|
}
|
|
4813
|
-
const
|
|
4814
|
-
(!
|
|
4813
|
+
const A = s.component(c);
|
|
4814
|
+
(!A || A !== g) && (A && A !== g && Ze.warn(
|
|
4815
4815
|
`Global component '${c}' already exists and is different. Overwriting with new blade component.`
|
|
4816
|
-
), s.component(c,
|
|
4816
|
+
), s.component(c, g));
|
|
4817
4817
|
const T = {
|
|
4818
|
-
component:
|
|
4818
|
+
component: g,
|
|
4819
4819
|
route: S,
|
|
4820
|
-
isWorkspace:
|
|
4820
|
+
isWorkspace: U,
|
|
4821
4821
|
routable: E,
|
|
4822
|
-
permissions:
|
|
4822
|
+
permissions: b
|
|
4823
4823
|
};
|
|
4824
|
-
|
|
4824
|
+
C.set(c, T), e.value = C, S && t.set(n(S), c), S && P && xa({
|
|
4825
4825
|
...P,
|
|
4826
4826
|
url: S,
|
|
4827
4827
|
routeId: c,
|
|
4828
|
-
permissions:
|
|
4828
|
+
permissions: b || P.permissions
|
|
4829
4829
|
});
|
|
4830
4830
|
}
|
|
4831
4831
|
function a(c) {
|
|
@@ -4840,10 +4840,10 @@ function Ni(s) {
|
|
|
4840
4840
|
return f.component;
|
|
4841
4841
|
try {
|
|
4842
4842
|
const h = s._context.components[c];
|
|
4843
|
-
if (h &&
|
|
4843
|
+
if (h && St(h))
|
|
4844
4844
|
return h;
|
|
4845
4845
|
} catch (h) {
|
|
4846
|
-
|
|
4846
|
+
Ze.warn(`Error accessing global component '${c}':`, h);
|
|
4847
4847
|
}
|
|
4848
4848
|
}
|
|
4849
4849
|
function u(c) {
|
|
@@ -4864,15 +4864,15 @@ function Ni(s) {
|
|
|
4864
4864
|
_registerBladeFn: r
|
|
4865
4865
|
};
|
|
4866
4866
|
}
|
|
4867
|
-
function
|
|
4868
|
-
const s = F(
|
|
4867
|
+
function Mt() {
|
|
4868
|
+
const s = F(Pa);
|
|
4869
4869
|
if (!s)
|
|
4870
4870
|
throw new Error(
|
|
4871
4871
|
"useBladeRegistry must be used after createBladeRegistry is called and provided with BladeRegistryKey."
|
|
4872
4872
|
);
|
|
4873
4873
|
return s;
|
|
4874
4874
|
}
|
|
4875
|
-
const
|
|
4875
|
+
const Oa = G({
|
|
4876
4876
|
name: "ErrorInterceptor",
|
|
4877
4877
|
props: {
|
|
4878
4878
|
capture: {
|
|
@@ -4889,17 +4889,17 @@ const Ia = L({
|
|
|
4889
4889
|
}
|
|
4890
4890
|
},
|
|
4891
4891
|
setup(s, { slots: e }) {
|
|
4892
|
-
const t = F(
|
|
4893
|
-
return r &&
|
|
4892
|
+
const t = F(dt, void 0), n = F(Ge, void 0), r = !!(t && n), { error: a, reset: o } = ba(r || s.capture);
|
|
4893
|
+
return r && V(a, (u) => {
|
|
4894
4894
|
const l = t.value.id;
|
|
4895
|
-
u ? (
|
|
4895
|
+
u ? (ha(u), n.setBladeError(l, u)) : n.clearBladeError(l);
|
|
4896
4896
|
}), () => e.default?.({
|
|
4897
4897
|
error: a.value,
|
|
4898
4898
|
reset: o
|
|
4899
4899
|
});
|
|
4900
4900
|
}
|
|
4901
|
-
}),
|
|
4902
|
-
function
|
|
4901
|
+
}), Ra = Oa;
|
|
4902
|
+
function ka(s) {
|
|
4903
4903
|
const e = /* @__PURE__ */ new Map();
|
|
4904
4904
|
function t(a, o) {
|
|
4905
4905
|
e.set(a, o);
|
|
@@ -4928,13 +4928,13 @@ function Pa(s) {
|
|
|
4928
4928
|
cleanup: r
|
|
4929
4929
|
};
|
|
4930
4930
|
}
|
|
4931
|
-
function
|
|
4932
|
-
const s = F(
|
|
4931
|
+
function Dt() {
|
|
4932
|
+
const s = F(ct);
|
|
4933
4933
|
if (!s)
|
|
4934
4934
|
throw new Error("[useBladeMessaging] BladeMessaging not found. Ensure BladeNavigationPlugin is installed.");
|
|
4935
4935
|
return s;
|
|
4936
4936
|
}
|
|
4937
|
-
const
|
|
4937
|
+
const Lt = /* @__PURE__ */ G({
|
|
4938
4938
|
__name: "vc-blade-slot",
|
|
4939
4939
|
props: {
|
|
4940
4940
|
descriptor: {},
|
|
@@ -4946,67 +4946,67 @@ const Mt = /* @__PURE__ */ L({
|
|
|
4946
4946
|
},
|
|
4947
4947
|
emits: ["close", "parentCall"],
|
|
4948
4948
|
setup(s, { emit: e }) {
|
|
4949
|
-
const t = s, n = e, r =
|
|
4950
|
-
|
|
4951
|
-
|
|
4949
|
+
const t = s, n = e, r = Mt(), a = O(!1), o = O([]), u = O(), l = v(() => r.getBladeComponent(t.descriptor.name));
|
|
4950
|
+
Ee(
|
|
4951
|
+
dt,
|
|
4952
4952
|
v(() => ({
|
|
4953
4953
|
...t.descriptor,
|
|
4954
4954
|
maximized: a.value,
|
|
4955
4955
|
breadcrumbs: t.breadcrumbs
|
|
4956
4956
|
}))
|
|
4957
|
-
),
|
|
4958
|
-
|
|
4957
|
+
), Ee(Lr, a), Ee(jt, o), Ee(
|
|
4958
|
+
Jr,
|
|
4959
4959
|
v(() => t.backButton)
|
|
4960
4960
|
);
|
|
4961
|
-
const
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
(
|
|
4965
|
-
if (!
|
|
4966
|
-
const
|
|
4967
|
-
for (const
|
|
4968
|
-
typeof
|
|
4969
|
-
Object.keys(
|
|
4961
|
+
const d = Dt();
|
|
4962
|
+
V(
|
|
4963
|
+
u,
|
|
4964
|
+
(g) => {
|
|
4965
|
+
if (!g) return;
|
|
4966
|
+
const S = {};
|
|
4967
|
+
for (const U of Object.keys(g))
|
|
4968
|
+
typeof g[U] == "function" && (S[U] = g[U]);
|
|
4969
|
+
Object.keys(S).length > 0 && d.exposeToChildren(t.descriptor.id, S);
|
|
4970
4970
|
},
|
|
4971
4971
|
{ flush: "post" }
|
|
4972
|
-
),
|
|
4973
|
-
|
|
4972
|
+
), st(() => {
|
|
4973
|
+
d.cleanup(t.descriptor.id);
|
|
4974
4974
|
});
|
|
4975
|
-
function
|
|
4975
|
+
function c() {
|
|
4976
4976
|
n("close", t.descriptor.id);
|
|
4977
4977
|
}
|
|
4978
|
-
function
|
|
4979
|
-
n("parentCall",
|
|
4978
|
+
function f(g) {
|
|
4979
|
+
n("parentCall", g, t.descriptor.id);
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4981
|
+
function h() {
|
|
4982
4982
|
a.value = !0;
|
|
4983
4983
|
}
|
|
4984
|
-
function
|
|
4984
|
+
function m() {
|
|
4985
4985
|
a.value = !1;
|
|
4986
4986
|
}
|
|
4987
|
-
return (
|
|
4988
|
-
default: fe(({ error:
|
|
4989
|
-
|
|
4987
|
+
return (g, S) => (_(), W(D(Ra), { capture: !0 }, {
|
|
4988
|
+
default: fe(({ error: U, reset: E }) => [
|
|
4989
|
+
l.value ? ot((_(), W(Fe(l.value), {
|
|
4990
4990
|
key: 0,
|
|
4991
4991
|
ref_key: "bladeInstanceRef",
|
|
4992
|
-
ref:
|
|
4992
|
+
ref: u,
|
|
4993
4993
|
param: s.descriptor.param,
|
|
4994
4994
|
options: s.descriptor.options,
|
|
4995
4995
|
closable: s.closable,
|
|
4996
4996
|
expanded: s.expanded,
|
|
4997
|
-
"onClose:blade":
|
|
4998
|
-
"onParent:call":
|
|
4999
|
-
"onExpand:blade":
|
|
5000
|
-
"onCollapse:blade":
|
|
5001
|
-
onVnodeUnmounted:
|
|
4997
|
+
"onClose:blade": c,
|
|
4998
|
+
"onParent:call": f,
|
|
4999
|
+
"onExpand:blade": h,
|
|
5000
|
+
"onCollapse:blade": m,
|
|
5001
|
+
onVnodeUnmounted: E
|
|
5002
5002
|
}, null, 40, ["param", "options", "closable", "expanded", "onVnodeUnmounted"])), [
|
|
5003
|
-
[
|
|
5004
|
-
]) :
|
|
5003
|
+
[er, s.visible]
|
|
5004
|
+
]) : K("", !0)
|
|
5005
5005
|
]),
|
|
5006
5006
|
_: 1
|
|
5007
5007
|
}));
|
|
5008
5008
|
}
|
|
5009
|
-
}),
|
|
5009
|
+
}), Ba = /* @__PURE__ */ G({
|
|
5010
5010
|
__name: "vc-mobile-back-button",
|
|
5011
5011
|
props: {
|
|
5012
5012
|
breadcrumbs: {},
|
|
@@ -5016,7 +5016,7 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5016
5016
|
const e = s, t = O(), n = O(!1), r = () => {
|
|
5017
5017
|
e.onBack();
|
|
5018
5018
|
};
|
|
5019
|
-
|
|
5019
|
+
lr(
|
|
5020
5020
|
t,
|
|
5021
5021
|
() => {
|
|
5022
5022
|
n.value = !0;
|
|
@@ -5026,17 +5026,17 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5026
5026
|
const a = () => {
|
|
5027
5027
|
n.value = !1;
|
|
5028
5028
|
};
|
|
5029
|
-
return (o, u) =>
|
|
5029
|
+
return (o, u) => ot((_(), W(En, {
|
|
5030
5030
|
items: s.breadcrumbs,
|
|
5031
5031
|
collapsed: ""
|
|
5032
5032
|
}, {
|
|
5033
5033
|
trigger: fe(({ click: l }) => [
|
|
5034
|
-
|
|
5034
|
+
Y(D(vr), {
|
|
5035
5035
|
as: "button",
|
|
5036
5036
|
onTrigger: l
|
|
5037
5037
|
}, {
|
|
5038
5038
|
default: fe(() => [
|
|
5039
|
-
|
|
5039
|
+
Y(D(Fr), {
|
|
5040
5040
|
ref_key: "buttonRef",
|
|
5041
5041
|
ref: t,
|
|
5042
5042
|
icon: "lucide-arrow-left",
|
|
@@ -5044,7 +5044,7 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5044
5044
|
"icon-size": "l",
|
|
5045
5045
|
text: "",
|
|
5046
5046
|
onClick: r,
|
|
5047
|
-
onContextmenu: u[0] || (u[0] =
|
|
5047
|
+
onContextmenu: u[0] || (u[0] = Ve(() => {
|
|
5048
5048
|
}, ["prevent"]))
|
|
5049
5049
|
}, null, 512)
|
|
5050
5050
|
]),
|
|
@@ -5053,15 +5053,15 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5053
5053
|
]),
|
|
5054
5054
|
_: 1
|
|
5055
5055
|
}, 8, ["items"])), [
|
|
5056
|
-
[D(
|
|
5056
|
+
[D(Nt), a]
|
|
5057
5057
|
]);
|
|
5058
5058
|
}
|
|
5059
5059
|
});
|
|
5060
|
-
let
|
|
5061
|
-
function
|
|
5062
|
-
return `blade_${
|
|
5060
|
+
let $a = 0;
|
|
5061
|
+
function Be() {
|
|
5062
|
+
return `blade_${++$a}_${Math.random().toString(36).slice(2, 8)}`;
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function Na(s, e) {
|
|
5065
5065
|
const t = O([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = v(() => t.value[0]), u = v(() => t.value), l = v(() => {
|
|
5066
5066
|
for (let p = t.value.length - 1; p >= 0; p--)
|
|
5067
5067
|
if (t.value[p].visible) return t.value[p];
|
|
@@ -5096,8 +5096,8 @@ function ka(s, e) {
|
|
|
5096
5096
|
return;
|
|
5097
5097
|
}
|
|
5098
5098
|
h([...t.value]);
|
|
5099
|
-
const
|
|
5100
|
-
id:
|
|
5099
|
+
const I = {
|
|
5100
|
+
id: Be(),
|
|
5101
5101
|
name: p.name,
|
|
5102
5102
|
url: c(p.name),
|
|
5103
5103
|
// workspace blades don't have param when opened first
|
|
@@ -5105,23 +5105,23 @@ function ka(s, e) {
|
|
|
5105
5105
|
options: p.options,
|
|
5106
5106
|
visible: !0
|
|
5107
5107
|
};
|
|
5108
|
-
t.value = [
|
|
5108
|
+
t.value = [I], p.onOpen && r.set(I.id, p.onOpen), p.onClose && a.set(I.id, p.onClose), p.onOpen?.();
|
|
5109
5109
|
}
|
|
5110
|
-
async function
|
|
5110
|
+
async function g(p) {
|
|
5111
5111
|
if (!s.getBlade(p.name))
|
|
5112
5112
|
throw new Error(`[BladeStack] Blade '${p.name}' not found in registry`);
|
|
5113
5113
|
const y = p.parentId ?? l.value?.id ?? o.value?.id;
|
|
5114
5114
|
if (!y)
|
|
5115
5115
|
throw new Error("[BladeStack] Cannot open blade: no parent blade found");
|
|
5116
|
-
const x = t.value.findIndex((
|
|
5116
|
+
const x = t.value.findIndex((j) => j.id === y);
|
|
5117
5117
|
if (x === -1)
|
|
5118
5118
|
throw new Error(`[BladeStack] Parent blade '${y}' not found in stack`);
|
|
5119
|
-
const
|
|
5120
|
-
if (
|
|
5119
|
+
const I = t.value.slice(x + 1);
|
|
5120
|
+
if (I.length > 0 && await f(I))
|
|
5121
5121
|
return;
|
|
5122
|
-
h(
|
|
5122
|
+
h(I);
|
|
5123
5123
|
const k = {
|
|
5124
|
-
id:
|
|
5124
|
+
id: Be(),
|
|
5125
5125
|
name: p.name,
|
|
5126
5126
|
url: c(p.name),
|
|
5127
5127
|
param: p.param,
|
|
@@ -5133,34 +5133,34 @@ function ka(s, e) {
|
|
|
5133
5133
|
t.value = [...t.value.slice(0, x + 1), k], p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
|
|
5134
5134
|
}
|
|
5135
5135
|
async function S(p) {
|
|
5136
|
-
const y = t.value.findIndex((
|
|
5136
|
+
const y = t.value.findIndex((j) => j.id === p);
|
|
5137
5137
|
if (y === -1 || y === 0) return !1;
|
|
5138
5138
|
const x = t.value.slice(y);
|
|
5139
5139
|
if (await f(x)) return !0;
|
|
5140
5140
|
h(x), t.value = t.value.slice(0, y);
|
|
5141
5141
|
const k = t.value.length - 1;
|
|
5142
5142
|
if (k > 0 && !t.value[k].visible) {
|
|
5143
|
-
const
|
|
5144
|
-
|
|
5143
|
+
const j = [...t.value];
|
|
5144
|
+
j[k] = { ...j[k], visible: !0 }, t.value = j;
|
|
5145
5145
|
}
|
|
5146
5146
|
return !1;
|
|
5147
5147
|
}
|
|
5148
|
-
async function
|
|
5148
|
+
async function U(p) {
|
|
5149
5149
|
const y = l.value;
|
|
5150
5150
|
if (!y)
|
|
5151
5151
|
throw new Error("[BladeStack] No active blade to replace");
|
|
5152
5152
|
if (!s.getBlade(p.name))
|
|
5153
5153
|
throw new Error(`[BladeStack] Blade '${p.name}' not found in registry`);
|
|
5154
|
-
const x = t.value.findIndex((
|
|
5154
|
+
const x = t.value.findIndex((J) => J.id === y.id);
|
|
5155
5155
|
if (x === -1)
|
|
5156
5156
|
throw new Error(`[BladeStack] Active blade '${y.id}' not found in stack`);
|
|
5157
|
-
const
|
|
5158
|
-
if (
|
|
5159
|
-
if (await f(
|
|
5160
|
-
h(
|
|
5157
|
+
const I = t.value.slice(x + 1);
|
|
5158
|
+
if (I.length > 0) {
|
|
5159
|
+
if (await f(I)) return;
|
|
5160
|
+
h(I);
|
|
5161
5161
|
}
|
|
5162
5162
|
const k = {
|
|
5163
|
-
id:
|
|
5163
|
+
id: Be(),
|
|
5164
5164
|
name: p.name,
|
|
5165
5165
|
url: c(p.name),
|
|
5166
5166
|
param: p.param,
|
|
@@ -5170,8 +5170,8 @@ function ka(s, e) {
|
|
|
5170
5170
|
visible: !0
|
|
5171
5171
|
};
|
|
5172
5172
|
h([y]);
|
|
5173
|
-
const
|
|
5174
|
-
t.value =
|
|
5173
|
+
const j = [...t.value.slice(0, x), k, ...t.value.slice(x + 1)];
|
|
5174
|
+
t.value = j, p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
|
|
5175
5175
|
}
|
|
5176
5176
|
async function E(p) {
|
|
5177
5177
|
const y = l.value;
|
|
@@ -5179,16 +5179,16 @@ function ka(s, e) {
|
|
|
5179
5179
|
throw new Error("[BladeStack] No active blade to cover");
|
|
5180
5180
|
if (!s.getBlade(p.name))
|
|
5181
5181
|
throw new Error(`[BladeStack] Blade '${p.name}' not found in registry`);
|
|
5182
|
-
const x = t.value.findIndex((
|
|
5182
|
+
const x = t.value.findIndex((J) => J.id === y.id);
|
|
5183
5183
|
if (x === -1)
|
|
5184
5184
|
throw new Error(`[BladeStack] Active blade '${y.id}' not found in stack`);
|
|
5185
|
-
const
|
|
5186
|
-
if (
|
|
5187
|
-
if (await f(
|
|
5188
|
-
h(
|
|
5185
|
+
const I = t.value.slice(x + 1);
|
|
5186
|
+
if (I.length > 0) {
|
|
5187
|
+
if (await f(I)) return;
|
|
5188
|
+
h(I);
|
|
5189
5189
|
}
|
|
5190
5190
|
const k = {
|
|
5191
|
-
id:
|
|
5191
|
+
id: Be(),
|
|
5192
5192
|
name: p.name,
|
|
5193
5193
|
url: c(p.name),
|
|
5194
5194
|
param: p.param,
|
|
@@ -5196,10 +5196,10 @@ function ka(s, e) {
|
|
|
5196
5196
|
options: p.options,
|
|
5197
5197
|
parentId: y.id,
|
|
5198
5198
|
visible: !0
|
|
5199
|
-
},
|
|
5200
|
-
|
|
5199
|
+
}, j = t.value.slice(0, x);
|
|
5200
|
+
j.push({ ...y, visible: !1 }), j.push(k), t.value = j, p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
|
|
5201
5201
|
}
|
|
5202
|
-
async function
|
|
5202
|
+
async function b(p) {
|
|
5203
5203
|
const y = t.value.findIndex((k) => k.id === p);
|
|
5204
5204
|
if (y === -1) return;
|
|
5205
5205
|
const x = t.value.slice(y + 1);
|
|
@@ -5208,17 +5208,17 @@ function ka(s, e) {
|
|
|
5208
5208
|
function P(p, y) {
|
|
5209
5209
|
n.set(p, y);
|
|
5210
5210
|
}
|
|
5211
|
-
function
|
|
5211
|
+
function C(p) {
|
|
5212
5212
|
n.delete(p);
|
|
5213
5213
|
}
|
|
5214
|
-
function
|
|
5214
|
+
function A(p, y) {
|
|
5215
5215
|
const x = t.value.findIndex((k) => k.id === p);
|
|
5216
5216
|
if (x === -1) return;
|
|
5217
|
-
const
|
|
5218
|
-
|
|
5217
|
+
const I = [...t.value];
|
|
5218
|
+
I[x] = { ...I[x], error: y }, t.value = I;
|
|
5219
5219
|
}
|
|
5220
5220
|
function T(p) {
|
|
5221
|
-
const y = t.value.findIndex((
|
|
5221
|
+
const y = t.value.findIndex((I) => I.id === p);
|
|
5222
5222
|
if (y === -1) return;
|
|
5223
5223
|
const x = [...t.value];
|
|
5224
5224
|
x[y] = { ...x[y], error: void 0 }, t.value = x;
|
|
@@ -5226,10 +5226,10 @@ function ka(s, e) {
|
|
|
5226
5226
|
function M(p, y) {
|
|
5227
5227
|
const x = t.value.findIndex((k) => k.id === p);
|
|
5228
5228
|
if (x === -1 || t.value[x].title === y) return;
|
|
5229
|
-
const
|
|
5230
|
-
|
|
5229
|
+
const I = [...t.value];
|
|
5230
|
+
I[x] = { ...I[x], title: y }, t.value = I;
|
|
5231
5231
|
}
|
|
5232
|
-
function
|
|
5232
|
+
function H(p) {
|
|
5233
5233
|
for (const y of t.value)
|
|
5234
5234
|
d(y.id);
|
|
5235
5235
|
t.value = p;
|
|
@@ -5239,29 +5239,29 @@ function ka(s, e) {
|
|
|
5239
5239
|
blades: u,
|
|
5240
5240
|
activeBlade: l,
|
|
5241
5241
|
openWorkspace: m,
|
|
5242
|
-
openBlade:
|
|
5242
|
+
openBlade: g,
|
|
5243
5243
|
closeBlade: S,
|
|
5244
|
-
closeChildren:
|
|
5245
|
-
replaceCurrentBlade:
|
|
5244
|
+
closeChildren: b,
|
|
5245
|
+
replaceCurrentBlade: U,
|
|
5246
5246
|
coverCurrentBlade: E,
|
|
5247
5247
|
registerBeforeClose: P,
|
|
5248
|
-
unregisterBeforeClose:
|
|
5249
|
-
setBladeError:
|
|
5248
|
+
unregisterBeforeClose: C,
|
|
5249
|
+
setBladeError: A,
|
|
5250
5250
|
clearBladeError: T,
|
|
5251
5251
|
setBladeTitle: M,
|
|
5252
|
-
_restoreStack:
|
|
5252
|
+
_restoreStack: H
|
|
5253
5253
|
};
|
|
5254
5254
|
}
|
|
5255
|
-
function
|
|
5255
|
+
function Gt() {
|
|
5256
5256
|
const s = F(Ge);
|
|
5257
5257
|
if (!s)
|
|
5258
5258
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
5259
5259
|
return s;
|
|
5260
5260
|
}
|
|
5261
|
-
function
|
|
5261
|
+
function nt(s, e) {
|
|
5262
5262
|
if (e.length === 0)
|
|
5263
5263
|
return { path: s ? `/${s}` : "/", query: {} };
|
|
5264
|
-
const t = e[0], n =
|
|
5264
|
+
const t = e[0], n = At(t.url);
|
|
5265
5265
|
let r;
|
|
5266
5266
|
for (let u = e.length - 1; u >= 1; u--)
|
|
5267
5267
|
if (e[u].visible) {
|
|
@@ -5270,7 +5270,7 @@ function rt(s, e) {
|
|
|
5270
5270
|
}
|
|
5271
5271
|
let a = s ? `/${s}` : "";
|
|
5272
5272
|
if (n && (a += `/${n}`), r) {
|
|
5273
|
-
const u =
|
|
5273
|
+
const u = At(r.url);
|
|
5274
5274
|
u && (a += `/${u}`), r.param && (a += `/${r.param}`);
|
|
5275
5275
|
}
|
|
5276
5276
|
const o = {};
|
|
@@ -5278,7 +5278,7 @@ function rt(s, e) {
|
|
|
5278
5278
|
u.visible && u.query && Object.assign(o, u.query);
|
|
5279
5279
|
return { path: a || "/", query: o };
|
|
5280
5280
|
}
|
|
5281
|
-
function
|
|
5281
|
+
function ja(s, e) {
|
|
5282
5282
|
let t = s.split("/").filter(Boolean);
|
|
5283
5283
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
5284
5284
|
workspaceUrl: t[0],
|
|
@@ -5286,47 +5286,47 @@ function Ba(s, e) {
|
|
|
5286
5286
|
param: t[2]
|
|
5287
5287
|
};
|
|
5288
5288
|
}
|
|
5289
|
-
function
|
|
5289
|
+
function At(s) {
|
|
5290
5290
|
if (s)
|
|
5291
5291
|
return s.replace(/^\/+|\/+$/g, "") || void 0;
|
|
5292
5292
|
}
|
|
5293
|
-
function
|
|
5293
|
+
function Ut(s) {
|
|
5294
5294
|
const e = s.currentRoute.value.params;
|
|
5295
5295
|
return Object.values(e).find((t) => typeof t == "string" && t) || "";
|
|
5296
5296
|
}
|
|
5297
|
-
function
|
|
5297
|
+
function Jt(s, e) {
|
|
5298
5298
|
function t() {
|
|
5299
|
-
const { path: r, query: a } =
|
|
5299
|
+
const { path: r, query: a } = nt(Ut(s), e.blades.value);
|
|
5300
5300
|
s.push({ path: r, query: a });
|
|
5301
5301
|
}
|
|
5302
5302
|
function n() {
|
|
5303
|
-
const { path: r, query: a } =
|
|
5303
|
+
const { path: r, query: a } = nt(Ut(s), e.blades.value);
|
|
5304
5304
|
s.replace({ path: r, query: a });
|
|
5305
5305
|
}
|
|
5306
5306
|
return { syncUrlPush: t, syncUrlReplace: n };
|
|
5307
5307
|
}
|
|
5308
|
-
const
|
|
5308
|
+
const za = ["aria-label"], Fa = {
|
|
5309
5309
|
key: 1,
|
|
5310
5310
|
class: "tw-overflow-hidden tw-flex tw-grow tw-basis-0 tw-relative tw-min-w-0"
|
|
5311
|
-
},
|
|
5311
|
+
}, It = /* @__PURE__ */ G({
|
|
5312
5312
|
__name: "vc-blade-navigation-new",
|
|
5313
5313
|
setup(s) {
|
|
5314
|
-
const { t: e } =
|
|
5315
|
-
function E(
|
|
5316
|
-
return
|
|
5314
|
+
const { t: e } = hr(), t = Gt(), n = Dt(), r = fr(), { breadcrumbs: a, push: o, remove: u } = Ia(), { syncUrlReplace: l } = Jt(r, t), d = v(() => t.blades.value), c = v(() => t.activeBlade.value), f = v(() => d.value.length > 0), h = v(() => d.value.filter((A) => A.visible).length), { isMobile: m } = zt(), g = F(Je, void 0), S = v(() => g?.isExpanded.value ?? !1), U = v(() => m.value || S.value ? 1 : 2);
|
|
5315
|
+
function E(A, T) {
|
|
5316
|
+
return A.visible ? T >= h.value - U.value : !1;
|
|
5317
5317
|
}
|
|
5318
|
-
|
|
5318
|
+
cr(
|
|
5319
5319
|
d,
|
|
5320
|
-
(
|
|
5321
|
-
a.value.forEach((T) => T && u([T.id])),
|
|
5320
|
+
(A) => {
|
|
5321
|
+
a.value.forEach((T) => T && u([T.id])), A.filter((T) => T.visible).forEach((T, M) => {
|
|
5322
5322
|
o({
|
|
5323
5323
|
id: M.toString(),
|
|
5324
|
-
title:
|
|
5325
|
-
clickHandler: async (
|
|
5326
|
-
const p = parseInt(
|
|
5324
|
+
title: kt({ title: T.name }, "title"),
|
|
5325
|
+
clickHandler: async (H) => {
|
|
5326
|
+
const p = parseInt(H), x = d.value.filter((I) => I.visible)[p + 1];
|
|
5327
5327
|
if (x) {
|
|
5328
|
-
const
|
|
5329
|
-
return
|
|
5328
|
+
const I = await t.closeBlade(x.id);
|
|
5329
|
+
return I || l(), !I;
|
|
5330
5330
|
}
|
|
5331
5331
|
return !0;
|
|
5332
5332
|
}
|
|
@@ -5340,61 +5340,61 @@ const $a = ["aria-label"], Na = {
|
|
|
5340
5340
|
debounce: 10
|
|
5341
5341
|
}
|
|
5342
5342
|
);
|
|
5343
|
-
async function
|
|
5344
|
-
await t.closeBlade(
|
|
5343
|
+
async function b(A) {
|
|
5344
|
+
await t.closeBlade(A) || l();
|
|
5345
5345
|
}
|
|
5346
|
-
async function P(
|
|
5346
|
+
async function P(A, T) {
|
|
5347
5347
|
try {
|
|
5348
|
-
const M = await n.callParent(T,
|
|
5349
|
-
|
|
5348
|
+
const M = await n.callParent(T, A.method, A.args);
|
|
5349
|
+
A.callback?.(M);
|
|
5350
5350
|
} catch (M) {
|
|
5351
5351
|
console.warn("[VcBladeNavigation] Parent call failed:", M);
|
|
5352
5352
|
}
|
|
5353
5353
|
}
|
|
5354
|
-
function
|
|
5355
|
-
if (!(
|
|
5356
|
-
return
|
|
5357
|
-
breadcrumbs: a.value.slice(0,
|
|
5354
|
+
function C(A) {
|
|
5355
|
+
if (!(A <= 0))
|
|
5356
|
+
return tr(Ba, {
|
|
5357
|
+
breadcrumbs: a.value.slice(0, A),
|
|
5358
5358
|
onBack: async () => {
|
|
5359
|
-
const T = d.value[
|
|
5359
|
+
const T = d.value[A];
|
|
5360
5360
|
T && (await t.closeBlade(T.id) || l());
|
|
5361
5361
|
}
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
return (
|
|
5364
|
+
return (A, T) => (_(), R("div", {
|
|
5365
5365
|
class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
|
|
5366
5366
|
role: "region",
|
|
5367
5367
|
"aria-label": D(e)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
|
|
5368
5368
|
}, [
|
|
5369
|
-
f.value ? (
|
|
5370
|
-
(
|
|
5369
|
+
f.value ? (_(), R("div", Fa, [
|
|
5370
|
+
(_(!0), R(Me, null, lt(d.value, (M, H) => (_(), W(D(Lt), {
|
|
5371
5371
|
key: M.id,
|
|
5372
5372
|
descriptor: M,
|
|
5373
|
-
closable:
|
|
5373
|
+
closable: H > 0,
|
|
5374
5374
|
expanded: M.id === c.value?.id,
|
|
5375
|
-
visible: E(M,
|
|
5376
|
-
breadcrumbs: D(a).slice(0,
|
|
5377
|
-
"back-button": h.value > 1 ?
|
|
5378
|
-
onClose:
|
|
5375
|
+
visible: E(M, H),
|
|
5376
|
+
breadcrumbs: D(a).slice(0, H),
|
|
5377
|
+
"back-button": h.value > 1 ? C(H) : void 0,
|
|
5378
|
+
onClose: b,
|
|
5379
5379
|
onParentCall: P
|
|
5380
5380
|
}, null, 8, ["descriptor", "closable", "expanded", "visible", "breadcrumbs", "back-button"]))), 128))
|
|
5381
|
-
])) : (
|
|
5382
|
-
], 8,
|
|
5381
|
+
])) : (_(), W(D(pr), { key: 0 }))
|
|
5382
|
+
], 8, za));
|
|
5383
5383
|
}
|
|
5384
|
-
}),
|
|
5384
|
+
}), Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5385
5385
|
__proto__: null,
|
|
5386
|
-
VcBladeNavigation:
|
|
5387
|
-
VcBladeNavigationV2:
|
|
5388
|
-
VcBladeSlot:
|
|
5386
|
+
VcBladeNavigation: It,
|
|
5387
|
+
VcBladeNavigationV2: It,
|
|
5388
|
+
VcBladeSlot: Lt
|
|
5389
5389
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5390
|
-
function
|
|
5390
|
+
function Ye(s, e) {
|
|
5391
5391
|
const t = s.getRoutes(), n = t.find((a) => a.meta?.root), r = t.find((a) => a.aliasOf?.path === n?.path) ?? n;
|
|
5392
5392
|
r?.name && s.replace({ name: r.name, params: e });
|
|
5393
5393
|
}
|
|
5394
|
-
Object.keys(
|
|
5395
|
-
|
|
5394
|
+
Object.keys(gt).forEach((s) => {
|
|
5395
|
+
Se(s, gt[s]);
|
|
5396
5396
|
});
|
|
5397
|
-
const
|
|
5397
|
+
const Da = (s, [e, t]) => {
|
|
5398
5398
|
if (!s?.files || !s.files?.length)
|
|
5399
5399
|
return !0;
|
|
5400
5400
|
const n = (o, u, l) => {
|
|
@@ -5403,13 +5403,13 @@ const za = (s, [e, t]) => {
|
|
|
5403
5403
|
const f = new Image();
|
|
5404
5404
|
f.onerror = () => c(!1), f.onload = () => {
|
|
5405
5405
|
const h = f.width >= Number(u) && f.height >= Number(l);
|
|
5406
|
-
c(h ? !0 :
|
|
5406
|
+
c(h ? !0 : ve.global.t("messages.min_dimensions.error", { width: u, height: l }));
|
|
5407
5407
|
}, f.src = d.createObjectURL(o);
|
|
5408
5408
|
});
|
|
5409
5409
|
}, r = [], a = s.files;
|
|
5410
5410
|
for (let o = 0; o < a.length; o++) {
|
|
5411
5411
|
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(a[o].name))
|
|
5412
|
-
return Promise.resolve(
|
|
5412
|
+
return Promise.resolve(ve.global.t("messages.min_dimensions.not_image_error"));
|
|
5413
5413
|
r.push(a[o]);
|
|
5414
5414
|
}
|
|
5415
5415
|
return Promise.all(r.map((o) => n(o, e, t))).then((o) => {
|
|
@@ -5417,43 +5417,43 @@ const za = (s, [e, t]) => {
|
|
|
5417
5417
|
return u === !1 || typeof u == "string" ? u : !0;
|
|
5418
5418
|
});
|
|
5419
5419
|
};
|
|
5420
|
-
|
|
5421
|
-
const
|
|
5420
|
+
Se("mindimensions", Da);
|
|
5421
|
+
const La = (s, [e]) => {
|
|
5422
5422
|
if (!s?.files || !s.files?.length)
|
|
5423
5423
|
return !0;
|
|
5424
5424
|
const t = e * 1e3, n = (u) => u.size > t, r = [];
|
|
5425
5425
|
for (let u = 0; u < s.files.length; u++)
|
|
5426
5426
|
r.push(s.files[u]);
|
|
5427
|
-
return r.map((u) => n(u)).find((u) => u === !0) ?
|
|
5427
|
+
return r.map((u) => n(u)).find((u) => u === !0) ? ve.global.t("messages.file_weight", { size: e }) : !0;
|
|
5428
5428
|
};
|
|
5429
|
-
|
|
5430
|
-
const
|
|
5429
|
+
Se("fileWeight", La);
|
|
5430
|
+
const Wt = (s, [e], t, n) => {
|
|
5431
5431
|
if (!s || typeof s == "string" && !s.length)
|
|
5432
5432
|
return !0;
|
|
5433
5433
|
let r, a;
|
|
5434
5434
|
return s instanceof Date && (r = s), e instanceof Date && (a = e), typeof s == "string" && (r = new Date(s)), typeof e == "string" && (a = new Date(e)), r?.getTime && r?.getTime() > 0 && a?.getTime && a?.getTime() > 0 && t(a.getTime(), r.getTime()) ? n : !0;
|
|
5435
|
-
},
|
|
5436
|
-
|
|
5437
|
-
const
|
|
5438
|
-
|
|
5439
|
-
const
|
|
5440
|
-
|
|
5441
|
-
const
|
|
5442
|
-
function
|
|
5443
|
-
s.off("SendSystemEvents"), t && (
|
|
5435
|
+
}, Ga = (s, [e]) => Wt(s, [e], (t, n) => t < n, ve.global.t("messages.before"));
|
|
5436
|
+
Se("before", Ga);
|
|
5437
|
+
const Ja = (s, [e]) => Wt(s, [e], (t, n) => t > n, ve.global.t("messages.after"));
|
|
5438
|
+
Se("after", Ja);
|
|
5439
|
+
const Wa = (s) => Number.isSafeInteger(parseInt(s)) ? !0 : ve.global.t("messages.bigint");
|
|
5440
|
+
Se("bigint", Wa);
|
|
5441
|
+
const at = N("signalR"), Ue = O(), Ha = Symbol("updateSignalRCreator");
|
|
5442
|
+
function Tt(s, e, t) {
|
|
5443
|
+
s.off("SendSystemEvents"), t && (at.debug("Setup handler for creator: ", t), s.on("SendSystemEvents", (n) => {
|
|
5444
5444
|
n.creator === t && e.ingest(n);
|
|
5445
5445
|
}));
|
|
5446
5446
|
}
|
|
5447
|
-
const
|
|
5447
|
+
const Fi = {
|
|
5448
5448
|
install(s, e) {
|
|
5449
|
-
|
|
5450
|
-
const t =
|
|
5449
|
+
Ue.value = e?.creator;
|
|
5450
|
+
const t = da(), { isAuthenticated: n } = We();
|
|
5451
5451
|
let r = !1;
|
|
5452
|
-
const a =
|
|
5452
|
+
const a = Er("pushNotificationHub", { enableForVitest: !0 }) ?? new wr().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Cr.Information).build(), o = () => {
|
|
5453
5453
|
a.start().then(() => {
|
|
5454
|
-
|
|
5454
|
+
at.info("Connected."), Tt(a, t, Ue.value);
|
|
5455
5455
|
}).catch((l) => {
|
|
5456
|
-
|
|
5456
|
+
at.error("Connection Error: ", l), setTimeout(() => o(), 5e3);
|
|
5457
5457
|
});
|
|
5458
5458
|
};
|
|
5459
5459
|
async function u() {
|
|
@@ -5463,36 +5463,36 @@ const ji = {
|
|
|
5463
5463
|
r && o();
|
|
5464
5464
|
}), a.on("Send", (l) => {
|
|
5465
5465
|
t.ingest(l);
|
|
5466
|
-
}),
|
|
5467
|
-
|
|
5466
|
+
}), V(
|
|
5467
|
+
Ue,
|
|
5468
5468
|
(l) => {
|
|
5469
|
-
l && a.state === "Connected" &&
|
|
5469
|
+
l && a.state === "Connected" && Tt(a, t, l);
|
|
5470
5470
|
},
|
|
5471
5471
|
{ immediate: !0 }
|
|
5472
|
-
),
|
|
5472
|
+
), V(
|
|
5473
5473
|
n,
|
|
5474
5474
|
async (l) => {
|
|
5475
5475
|
l ? (r = !0, o()) : (r = !1, await u());
|
|
5476
5476
|
},
|
|
5477
5477
|
{ immediate: !0 }
|
|
5478
5478
|
), s.config.globalProperties.$updateSignalRCreator = (l) => {
|
|
5479
|
-
|
|
5480
|
-
}, s.provide(
|
|
5481
|
-
|
|
5479
|
+
Ue.value = l;
|
|
5480
|
+
}, s.provide(Ha, (l) => {
|
|
5481
|
+
Ue.value = l;
|
|
5482
5482
|
});
|
|
5483
5483
|
}
|
|
5484
5484
|
};
|
|
5485
|
-
async function
|
|
5485
|
+
async function Ka(s, e, t, n, r, a) {
|
|
5486
5486
|
if (!t.workspaceUrl) return !1;
|
|
5487
5487
|
const o = e.getBladeByRoute(t.workspaceUrl);
|
|
5488
5488
|
if (!o)
|
|
5489
|
-
return console.warn(`[restoreFromUrl] No workspace blade found for URL segment '${t.workspaceUrl}'`), r &&
|
|
5489
|
+
return console.warn(`[restoreFromUrl] No workspace blade found for URL segment '${t.workspaceUrl}'`), r && Ye(r, a), !1;
|
|
5490
5490
|
if (!o.data.isWorkspace)
|
|
5491
5491
|
return console.warn(
|
|
5492
5492
|
`[restoreFromUrl] Blade '${o.name}' matched URL '${t.workspaceUrl}' but is not a workspace`
|
|
5493
|
-
), r &&
|
|
5493
|
+
), r && Ye(r, a), !1;
|
|
5494
5494
|
if (n && o.data.permissions && !n(o.data.permissions))
|
|
5495
|
-
return console.warn(`[restoreFromUrl] Access denied to workspace '${o.name}'`),
|
|
5495
|
+
return console.warn(`[restoreFromUrl] Access denied to workspace '${o.name}'`), X.error(ve.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), { timeout: 3e3 }), r && Ye(r, a), !1;
|
|
5496
5496
|
if (s.workspace.value?.name !== o.name && await s.openWorkspace({ name: o.name }), t.bladeUrl) {
|
|
5497
5497
|
const l = e.getBladeByRoute(t.bladeUrl);
|
|
5498
5498
|
if (l) {
|
|
@@ -5510,7 +5510,7 @@ async function Ja(s, e, t, n, r, a) {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
return !1;
|
|
5512
5512
|
}
|
|
5513
|
-
async function
|
|
5513
|
+
async function Pt(s) {
|
|
5514
5514
|
for (; s.blades.value.length > 1; ) {
|
|
5515
5515
|
const e = s.blades.value, t = e[e.length - 1];
|
|
5516
5516
|
if (await s.closeBlade(t.id) || s.blades.value.length >= e.length)
|
|
@@ -5518,31 +5518,31 @@ async function Tt(s) {
|
|
|
5518
5518
|
}
|
|
5519
5519
|
return s.blades.value.length > 0 && s._restoreStack([]), !0;
|
|
5520
5520
|
}
|
|
5521
|
-
async function
|
|
5521
|
+
async function qa(s, e, t, n, r) {
|
|
5522
5522
|
if (!s.matched.some((c) => c.meta?.root)) return;
|
|
5523
5523
|
if (!s.matched.some((c) => c.meta?.bladeCatchAll))
|
|
5524
|
-
return e.blades.value.length > 0 && !await
|
|
5525
|
-
const o = Object.values(s.params)?.[0] || "", u =
|
|
5524
|
+
return e.blades.value.length > 0 && !await Pt(e) ? !1 : void 0;
|
|
5525
|
+
const o = Object.values(s.params)?.[0] || "", u = ja(s.path, o);
|
|
5526
5526
|
if (!u.workspaceUrl)
|
|
5527
|
-
return e.blades.value.length > 0 && !await
|
|
5527
|
+
return e.blades.value.length > 0 && !await Pt(e) ? !1 : void 0;
|
|
5528
5528
|
const l = Object.fromEntries(Object.entries(s.params).filter(([, c]) => typeof c == "string"));
|
|
5529
|
-
if (await
|
|
5530
|
-
const { path: c, query: f } =
|
|
5529
|
+
if (await Ka(e, t, u, n, r, l)) {
|
|
5530
|
+
const { path: c, query: f } = nt(o, e.blades.value);
|
|
5531
5531
|
return { path: c, query: f, replace: !0 };
|
|
5532
5532
|
}
|
|
5533
5533
|
}
|
|
5534
|
-
let
|
|
5535
|
-
const
|
|
5534
|
+
let Ht, Kt, qt, Za;
|
|
5535
|
+
const Mi = {
|
|
5536
5536
|
install(s, e) {
|
|
5537
5537
|
const { router: t } = e;
|
|
5538
|
-
Object.entries(
|
|
5538
|
+
Object.entries(Ma).forEach(([d, c]) => {
|
|
5539
5539
|
s.component(d, c);
|
|
5540
|
-
}),
|
|
5540
|
+
}), Ht = {
|
|
5541
5541
|
router: e.router
|
|
5542
5542
|
};
|
|
5543
5543
|
const r = s.runWithContext(() => {
|
|
5544
5544
|
try {
|
|
5545
|
-
return
|
|
5545
|
+
return Mt();
|
|
5546
5546
|
} catch {
|
|
5547
5547
|
console.warn(
|
|
5548
5548
|
"[BladeNavigationPlugin] BladeRegistry not yet available. BladeStack will be created but URL restoration may be deferred."
|
|
@@ -5554,155 +5554,174 @@ const zi = {
|
|
|
5554
5554
|
console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
|
|
5555
5555
|
return;
|
|
5556
5556
|
}
|
|
5557
|
-
const { hasAccess: a } = s.runWithContext(() =>
|
|
5558
|
-
s.provide(Ge, o),
|
|
5559
|
-
const u =
|
|
5560
|
-
s.provide(
|
|
5557
|
+
const { hasAccess: a } = s.runWithContext(() => fa()), o = Na(r, a);
|
|
5558
|
+
s.provide(Ge, o), Kt = o;
|
|
5559
|
+
const u = ka(o);
|
|
5560
|
+
s.provide(ct, u), qt = u, Za = r;
|
|
5561
5561
|
const l = t.getRoutes().find((d) => d.meta?.root);
|
|
5562
5562
|
l && t.addRoute(l.name, {
|
|
5563
5563
|
path: ":pathMatch(.*)*",
|
|
5564
5564
|
component: { render: () => null },
|
|
5565
5565
|
meta: { bladeCatchAll: !0 }
|
|
5566
|
-
}), t.beforeEach((d) =>
|
|
5566
|
+
}), t.beforeEach((d) => qa(d, o, r, a, t));
|
|
5567
5567
|
}
|
|
5568
|
-
},
|
|
5569
|
-
function
|
|
5568
|
+
}, Ya = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
|
|
5569
|
+
function L(s) {
|
|
5570
5570
|
throw new Error(`[vc-shell] ${s} requires blade context.
|
|
5571
|
-
${
|
|
5571
|
+
${Ya}`);
|
|
5572
5572
|
}
|
|
5573
|
-
function
|
|
5574
|
-
const s = (
|
|
5573
|
+
function Xa() {
|
|
5574
|
+
const s = (me() ? F(Ge, void 0) : void 0) ?? Kt, e = (me() ? F(ct, void 0) : void 0) ?? qt;
|
|
5575
5575
|
if (!s || !e)
|
|
5576
5576
|
throw new Error(
|
|
5577
5577
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
5578
5578
|
);
|
|
5579
|
-
const t = s, n = e, r =
|
|
5580
|
-
let
|
|
5581
|
-
function
|
|
5582
|
-
if (
|
|
5583
|
-
const
|
|
5584
|
-
return
|
|
5585
|
-
}
|
|
5586
|
-
const
|
|
5587
|
-
let
|
|
5588
|
-
function
|
|
5589
|
-
if (
|
|
5579
|
+
const t = s, n = e, r = me() ? F(dt, void 0) : void 0, a = me() ? F(jt, void 0) : void 0;
|
|
5580
|
+
let o;
|
|
5581
|
+
function u() {
|
|
5582
|
+
if (o) return o;
|
|
5583
|
+
const w = Ht?.router;
|
|
5584
|
+
return w && (o = Jt(w, t)), o;
|
|
5585
|
+
}
|
|
5586
|
+
const l = v(() => (r || L("id"), r.value.id)), d = v(() => (r || L("param"), r.value.param)), c = v(() => (r || L("options"), r.value.options)), f = v(() => (r || L("query"), r.value.query)), h = v(() => (r || L("closable"), r.value.parentId !== void 0)), m = v(() => (r || L("expanded"), t.activeBlade.value?.id === r.value.id)), g = v(() => (r || L("name"), r.value.name));
|
|
5587
|
+
let S = !1;
|
|
5588
|
+
function U(w) {
|
|
5589
|
+
if (S) {
|
|
5590
5590
|
console.warn(
|
|
5591
5591
|
"[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
|
|
5592
5592
|
);
|
|
5593
5593
|
return;
|
|
5594
5594
|
}
|
|
5595
|
-
|
|
5596
|
-
const
|
|
5597
|
-
|
|
5595
|
+
S = !0;
|
|
5596
|
+
const B = rr(w) ? w : O(w);
|
|
5597
|
+
Ee(Gr, B);
|
|
5598
5598
|
}
|
|
5599
|
-
async function
|
|
5600
|
-
const { isWorkspace:
|
|
5601
|
-
if (
|
|
5599
|
+
async function E(w) {
|
|
5600
|
+
const { isWorkspace: B, ...ee } = w;
|
|
5601
|
+
if (B)
|
|
5602
5602
|
await t.openWorkspace(ee);
|
|
5603
5603
|
else {
|
|
5604
|
-
const
|
|
5605
|
-
|
|
5604
|
+
const He = r?.value.id;
|
|
5605
|
+
He ? await t.openBlade({ ...ee, parentId: He }) : await t.openBlade(ee);
|
|
5606
5606
|
}
|
|
5607
|
-
t.activeBlade.value?.url &&
|
|
5607
|
+
t.activeBlade.value?.url && u()?.syncUrlPush();
|
|
5608
5608
|
}
|
|
5609
|
-
async function
|
|
5610
|
-
r ||
|
|
5611
|
-
const
|
|
5612
|
-
return
|
|
5609
|
+
async function b() {
|
|
5610
|
+
r || L("closeSelf()");
|
|
5611
|
+
const w = await t.closeBlade(r.value.id);
|
|
5612
|
+
return w || u()?.syncUrlReplace(), w;
|
|
5613
5613
|
}
|
|
5614
|
-
async function
|
|
5615
|
-
r ||
|
|
5614
|
+
async function P() {
|
|
5615
|
+
r || L("closeChildren()"), await t.closeChildren(r.value.id), u()?.syncUrlReplace();
|
|
5616
5616
|
}
|
|
5617
|
-
async function
|
|
5618
|
-
r ||
|
|
5619
|
-
...
|
|
5617
|
+
async function C(w) {
|
|
5618
|
+
r || L("replaceWith()"), await t.replaceCurrentBlade({
|
|
5619
|
+
...w,
|
|
5620
5620
|
parentId: r.value.parentId
|
|
5621
|
-
}), t.activeBlade.value?.url &&
|
|
5621
|
+
}), t.activeBlade.value?.url && u()?.syncUrlReplace();
|
|
5622
5622
|
}
|
|
5623
|
-
async function w
|
|
5624
|
-
r ||
|
|
5625
|
-
...
|
|
5623
|
+
async function A(w) {
|
|
5624
|
+
r || L("coverWith()"), await t.coverCurrentBlade({
|
|
5625
|
+
...w,
|
|
5626
5626
|
parentId: r.value.parentId
|
|
5627
|
-
}), t.activeBlade.value?.url &&
|
|
5627
|
+
}), t.activeBlade.value?.url && u()?.syncUrlPush();
|
|
5628
|
+
}
|
|
5629
|
+
async function T(w, B) {
|
|
5630
|
+
return r || L("callParent()"), n.callParent(r.value.id, w, B);
|
|
5628
5631
|
}
|
|
5629
|
-
|
|
5630
|
-
|
|
5632
|
+
function M(w) {
|
|
5633
|
+
r || L("exposeToChildren()"), n.exposeToChildren(r.value.id, w);
|
|
5631
5634
|
}
|
|
5632
|
-
function
|
|
5633
|
-
r ||
|
|
5635
|
+
function H(w) {
|
|
5636
|
+
r || L("onBeforeClose()"), t.registerBeforeClose(r.value.id, w);
|
|
5634
5637
|
}
|
|
5635
|
-
function
|
|
5636
|
-
r ||
|
|
5638
|
+
function p(w) {
|
|
5639
|
+
r || L("setError()"), t.setBladeError(r.value.id, w);
|
|
5637
5640
|
}
|
|
5638
|
-
function
|
|
5639
|
-
r ||
|
|
5641
|
+
function y() {
|
|
5642
|
+
r || L("clearError()"), t.clearBladeError(r.value.id);
|
|
5640
5643
|
}
|
|
5641
|
-
|
|
5642
|
-
|
|
5644
|
+
let x = 0;
|
|
5645
|
+
function I(w) {
|
|
5646
|
+
a || L("addBanner()");
|
|
5647
|
+
const B = `banner-${r.value.id}-${++x}`;
|
|
5648
|
+
return a.value.push({
|
|
5649
|
+
...w,
|
|
5650
|
+
id: B,
|
|
5651
|
+
dismissible: w.dismissible ?? !1
|
|
5652
|
+
}), B;
|
|
5643
5653
|
}
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5654
|
+
function k(w) {
|
|
5655
|
+
a || L("removeBanner()"), a.value = a.value.filter((B) => B.id !== w);
|
|
5656
|
+
}
|
|
5657
|
+
function j() {
|
|
5658
|
+
a || L("clearBanners()"), a.value = a.value.filter((w) => w._system);
|
|
5659
|
+
}
|
|
5660
|
+
let J = !1, re = !1;
|
|
5661
|
+
function ie(w) {
|
|
5662
|
+
if (r || L("onActivated()"), J) {
|
|
5647
5663
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
5648
5664
|
return;
|
|
5649
5665
|
}
|
|
5650
|
-
|
|
5651
|
-
|
|
5666
|
+
J = !0, V(m, (B) => {
|
|
5667
|
+
B && w();
|
|
5652
5668
|
});
|
|
5653
5669
|
}
|
|
5654
|
-
function
|
|
5655
|
-
if (r ||
|
|
5670
|
+
function Ae(w) {
|
|
5671
|
+
if (r || L("onDeactivated()"), re) {
|
|
5656
5672
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
5657
5673
|
return;
|
|
5658
5674
|
}
|
|
5659
|
-
|
|
5660
|
-
|
|
5675
|
+
re = !0, V(m, (B) => {
|
|
5676
|
+
B || w();
|
|
5661
5677
|
});
|
|
5662
5678
|
}
|
|
5663
5679
|
return {
|
|
5664
|
-
id:
|
|
5665
|
-
param:
|
|
5666
|
-
options:
|
|
5667
|
-
query:
|
|
5668
|
-
closable:
|
|
5669
|
-
expanded:
|
|
5670
|
-
name:
|
|
5671
|
-
provideBladeData:
|
|
5672
|
-
openBlade:
|
|
5673
|
-
closeSelf:
|
|
5674
|
-
closeChildren:
|
|
5675
|
-
replaceWith:
|
|
5676
|
-
coverWith:
|
|
5677
|
-
callParent:
|
|
5678
|
-
exposeToChildren:
|
|
5679
|
-
onBeforeClose:
|
|
5680
|
-
onActivated:
|
|
5681
|
-
onDeactivated:
|
|
5682
|
-
setError:
|
|
5683
|
-
clearError:
|
|
5680
|
+
id: l,
|
|
5681
|
+
param: d,
|
|
5682
|
+
options: c,
|
|
5683
|
+
query: f,
|
|
5684
|
+
closable: h,
|
|
5685
|
+
expanded: m,
|
|
5686
|
+
name: g,
|
|
5687
|
+
provideBladeData: U,
|
|
5688
|
+
openBlade: E,
|
|
5689
|
+
closeSelf: b,
|
|
5690
|
+
closeChildren: P,
|
|
5691
|
+
replaceWith: C,
|
|
5692
|
+
coverWith: A,
|
|
5693
|
+
callParent: T,
|
|
5694
|
+
exposeToChildren: M,
|
|
5695
|
+
onBeforeClose: H,
|
|
5696
|
+
onActivated: ie,
|
|
5697
|
+
onDeactivated: Ae,
|
|
5698
|
+
setError: p,
|
|
5699
|
+
clearError: y,
|
|
5700
|
+
addBanner: I,
|
|
5701
|
+
removeBanner: k,
|
|
5702
|
+
clearBanners: j
|
|
5684
5703
|
};
|
|
5685
5704
|
}
|
|
5686
|
-
const
|
|
5705
|
+
const Va = {
|
|
5687
5706
|
url: "",
|
|
5688
5707
|
title: "Virto OZ",
|
|
5689
5708
|
width: 362,
|
|
5690
5709
|
expandedWidth: 500,
|
|
5691
5710
|
allowedOrigins: ["*"]
|
|
5692
|
-
},
|
|
5711
|
+
}, Di = "APP_AI_AGENT_URL", Li = {
|
|
5693
5712
|
EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
|
|
5694
5713
|
AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
|
|
5695
5714
|
AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
|
|
5696
5715
|
AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
|
|
5697
|
-
},
|
|
5716
|
+
}, Gi = {
|
|
5698
5717
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
5699
5718
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
5700
|
-
},
|
|
5701
|
-
function
|
|
5719
|
+
}, Qa = "ai-agent-toggle", es = "lucide-sparkles", ts = "AI Assistant", $e = N("ai-agent-panel");
|
|
5720
|
+
function rs() {
|
|
5702
5721
|
const s = O("closed"), e = O(!1), t = v(() => s.value !== "closed"), n = v(() => s.value === "expanded"), r = () => {
|
|
5703
|
-
s.value === "closed" && (s.value = "open",
|
|
5722
|
+
s.value === "closed" && (s.value = "open", $e.debug("Panel opened"));
|
|
5704
5723
|
}, a = () => {
|
|
5705
|
-
s.value = "closed", e.value = !1,
|
|
5724
|
+
s.value = "closed", e.value = !1, $e.debug("Panel closed, reset initialized state");
|
|
5706
5725
|
};
|
|
5707
5726
|
return {
|
|
5708
5727
|
panelState: s,
|
|
@@ -5715,18 +5734,18 @@ function Qa() {
|
|
|
5715
5734
|
s.value === "closed" ? r() : a();
|
|
5716
5735
|
},
|
|
5717
5736
|
expand: () => {
|
|
5718
|
-
s.value === "open" && (s.value = "expanded",
|
|
5737
|
+
s.value === "open" && (s.value = "expanded", $e.debug("Panel expanded"));
|
|
5719
5738
|
},
|
|
5720
5739
|
collapse: () => {
|
|
5721
|
-
s.value === "expanded" && (s.value = "open",
|
|
5740
|
+
s.value === "expanded" && (s.value = "open", $e.debug("Panel collapsed"));
|
|
5722
5741
|
},
|
|
5723
5742
|
resetInitialized: () => {
|
|
5724
5743
|
e.value = !1;
|
|
5725
5744
|
}
|
|
5726
5745
|
};
|
|
5727
5746
|
}
|
|
5728
|
-
const
|
|
5729
|
-
function
|
|
5747
|
+
const Xe = N("ai-agent-context");
|
|
5748
|
+
function Ot(s) {
|
|
5730
5749
|
return s ? {
|
|
5731
5750
|
id: s.id,
|
|
5732
5751
|
name: s.name,
|
|
@@ -5734,10 +5753,10 @@ function Pt(s) {
|
|
|
5734
5753
|
param: s.param
|
|
5735
5754
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
5736
5755
|
}
|
|
5737
|
-
function
|
|
5756
|
+
function ns(s) {
|
|
5738
5757
|
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a = O(/* @__PURE__ */ new Map()), o = () => {
|
|
5739
|
-
const
|
|
5740
|
-
return
|
|
5758
|
+
const g = t();
|
|
5759
|
+
return g ? a.value.get(g.id) ?? {
|
|
5741
5760
|
items: [],
|
|
5742
5761
|
type: "list",
|
|
5743
5762
|
suggestions: void 0
|
|
@@ -5752,96 +5771,96 @@ function es(s) {
|
|
|
5752
5771
|
contextType: l,
|
|
5753
5772
|
contextSuggestions: d,
|
|
5754
5773
|
totalItemsCount: c,
|
|
5755
|
-
setContextData: (
|
|
5756
|
-
const
|
|
5757
|
-
return
|
|
5774
|
+
setContextData: (g, S, U, E) => {
|
|
5775
|
+
const b = t()?.id || E;
|
|
5776
|
+
return b ? g.length === 0 && !U ? (a.value.delete(b), Xe.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (a.value.set(b, { items: g, type: S, suggestions: U }), Xe.debug(`Context set for blade: ${b}, items: ${g.length}, type: ${S}`), { cleared: !1 }) : (Xe.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
5758
5777
|
},
|
|
5759
5778
|
buildInitPayload: async () => {
|
|
5760
|
-
const
|
|
5779
|
+
const g = r ? await r() ?? void 0 : void 0;
|
|
5761
5780
|
return {
|
|
5762
5781
|
userId: e()?.id || "",
|
|
5763
5782
|
locale: n(),
|
|
5764
|
-
blade:
|
|
5783
|
+
blade: Ot(t()),
|
|
5765
5784
|
contextType: l.value,
|
|
5766
|
-
items:
|
|
5767
|
-
suggestions: d.value ?
|
|
5768
|
-
accessToken:
|
|
5785
|
+
items: Re(u.value),
|
|
5786
|
+
suggestions: d.value ? Re(d.value) : void 0,
|
|
5787
|
+
accessToken: g
|
|
5769
5788
|
};
|
|
5770
5789
|
},
|
|
5771
5790
|
buildUpdatePayload: async () => {
|
|
5772
|
-
const
|
|
5791
|
+
const g = r ? await r() ?? void 0 : void 0;
|
|
5773
5792
|
return {
|
|
5774
|
-
blade:
|
|
5793
|
+
blade: Ot(t()),
|
|
5775
5794
|
contextType: l.value,
|
|
5776
|
-
items:
|
|
5777
|
-
suggestions: d.value ?
|
|
5795
|
+
items: Re(u.value),
|
|
5796
|
+
suggestions: d.value ? Re(d.value) : void 0,
|
|
5778
5797
|
locale: n(),
|
|
5779
|
-
accessToken:
|
|
5798
|
+
accessToken: g
|
|
5780
5799
|
};
|
|
5781
5800
|
}
|
|
5782
5801
|
};
|
|
5783
5802
|
}
|
|
5784
|
-
const
|
|
5785
|
-
function
|
|
5803
|
+
const Z = N("ai-agent-transport");
|
|
5804
|
+
function as(s) {
|
|
5786
5805
|
try {
|
|
5787
5806
|
const e = atob(s.content), t = new Array(e.length);
|
|
5788
5807
|
for (let o = 0; o < e.length; o++)
|
|
5789
5808
|
t[o] = e.charCodeAt(o);
|
|
5790
5809
|
const n = new Blob([new Uint8Array(t)], { type: s.contentType }), r = URL.createObjectURL(n), a = document.createElement("a");
|
|
5791
|
-
a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r),
|
|
5810
|
+
a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), Z.debug(`File downloaded: ${s.filename}`);
|
|
5792
5811
|
} catch (e) {
|
|
5793
|
-
|
|
5812
|
+
Z.error("Failed to download file:", e);
|
|
5794
5813
|
}
|
|
5795
5814
|
}
|
|
5796
|
-
function
|
|
5797
|
-
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a =
|
|
5798
|
-
function f(m,
|
|
5815
|
+
function ss(s) {
|
|
5816
|
+
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = ut(null), o = O(!1), u = O(!1), l = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
|
5817
|
+
function f(m, g) {
|
|
5799
5818
|
switch (m) {
|
|
5800
5819
|
case "PREVIEW_CHANGES": {
|
|
5801
|
-
const
|
|
5802
|
-
d.size === 0 &&
|
|
5820
|
+
const U = g;
|
|
5821
|
+
d.size === 0 && Z.warn("No preview changes handlers registered!"), d.forEach((E) => {
|
|
5803
5822
|
try {
|
|
5804
|
-
E(
|
|
5805
|
-
} catch (
|
|
5806
|
-
|
|
5823
|
+
E(U);
|
|
5824
|
+
} catch (b) {
|
|
5825
|
+
Z.error("Error in preview handler:", b);
|
|
5807
5826
|
}
|
|
5808
5827
|
});
|
|
5809
5828
|
break;
|
|
5810
5829
|
}
|
|
5811
5830
|
case "NAVIGATE_TO_APP": {
|
|
5812
|
-
const
|
|
5813
|
-
n &&
|
|
5831
|
+
const U = g;
|
|
5832
|
+
n && U?.bladeName && (n(U.bladeName, U.param, U.options), Z.debug(`Navigation requested to: ${U.bladeName}`));
|
|
5814
5833
|
break;
|
|
5815
5834
|
}
|
|
5816
5835
|
case "RELOAD_BLADE":
|
|
5817
|
-
r && (r(),
|
|
5836
|
+
r && (r(), Z.debug("Blade reload requested"));
|
|
5818
5837
|
break;
|
|
5819
5838
|
case "DOWNLOAD_FILE": {
|
|
5820
|
-
const
|
|
5821
|
-
|
|
5839
|
+
const U = g;
|
|
5840
|
+
U && as(U);
|
|
5822
5841
|
break;
|
|
5823
5842
|
}
|
|
5824
5843
|
case "APPLY_CHANGES": {
|
|
5825
|
-
const
|
|
5826
|
-
|
|
5844
|
+
const U = g;
|
|
5845
|
+
Z.warn("APPLY_CHANGES received but not implemented:", U?.changes);
|
|
5827
5846
|
break;
|
|
5828
5847
|
}
|
|
5829
5848
|
case "CHAT_ERROR": {
|
|
5830
|
-
const
|
|
5831
|
-
|
|
5849
|
+
const U = g;
|
|
5850
|
+
Z.error(`Chatbot error [${U?.code}]: ${U?.message}`);
|
|
5832
5851
|
break;
|
|
5833
5852
|
}
|
|
5834
5853
|
}
|
|
5835
5854
|
const S = {
|
|
5836
5855
|
type: m,
|
|
5837
|
-
payload:
|
|
5856
|
+
payload: g,
|
|
5838
5857
|
timestamp: Date.now()
|
|
5839
5858
|
};
|
|
5840
|
-
l.forEach((
|
|
5859
|
+
l.forEach((U) => {
|
|
5841
5860
|
try {
|
|
5842
|
-
|
|
5861
|
+
U(S);
|
|
5843
5862
|
} catch (E) {
|
|
5844
|
-
|
|
5863
|
+
Z.error("Handler error:", E);
|
|
5845
5864
|
}
|
|
5846
5865
|
});
|
|
5847
5866
|
}
|
|
@@ -5849,13 +5868,13 @@ function rs(s) {
|
|
|
5849
5868
|
const S = e().allowedOrigins || ["*"];
|
|
5850
5869
|
if (!S.includes("*") && !S.includes(m.origin))
|
|
5851
5870
|
return;
|
|
5852
|
-
const
|
|
5853
|
-
if (!(!
|
|
5854
|
-
switch (
|
|
5871
|
+
const U = m.data;
|
|
5872
|
+
if (!(!U?.type || typeof U.type != "string"))
|
|
5873
|
+
switch (Z.debug(`Message received: ${U.type}`), U.type) {
|
|
5855
5874
|
// Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
|
|
5856
5875
|
case "AI_CHAT_MESSAGE": {
|
|
5857
5876
|
if (t) {
|
|
5858
|
-
const E =
|
|
5877
|
+
const E = U.payload;
|
|
5859
5878
|
E?.type && f(E.type, E.payload);
|
|
5860
5879
|
}
|
|
5861
5880
|
return;
|
|
@@ -5865,14 +5884,14 @@ function rs(s) {
|
|
|
5865
5884
|
c.forEach((E) => {
|
|
5866
5885
|
try {
|
|
5867
5886
|
E();
|
|
5868
|
-
} catch (
|
|
5869
|
-
|
|
5887
|
+
} catch (b) {
|
|
5888
|
+
Z.error("ChatReady handler error:", b);
|
|
5870
5889
|
}
|
|
5871
5890
|
});
|
|
5872
5891
|
break;
|
|
5873
5892
|
// Normal: direct chat protocol messages
|
|
5874
5893
|
default:
|
|
5875
|
-
f(
|
|
5894
|
+
f(U.type, U.payload);
|
|
5876
5895
|
break;
|
|
5877
5896
|
}
|
|
5878
5897
|
}
|
|
@@ -5881,22 +5900,22 @@ function rs(s) {
|
|
|
5881
5900
|
pendingInitContext: o,
|
|
5882
5901
|
isListenerRegistered: u,
|
|
5883
5902
|
setIframeRef(m) {
|
|
5884
|
-
a.value = m,
|
|
5903
|
+
a.value = m, Z.debug("Iframe ref set:", m ? "available" : "null");
|
|
5885
5904
|
},
|
|
5886
5905
|
sendToIframe(m) {
|
|
5887
5906
|
if (!a.value?.contentWindow) {
|
|
5888
|
-
|
|
5907
|
+
Z.warn("Cannot send message: iframe not available");
|
|
5889
5908
|
return;
|
|
5890
5909
|
}
|
|
5891
5910
|
const S = e().allowedOrigins?.[0] || "*";
|
|
5892
|
-
a.value.contentWindow.postMessage(m, S),
|
|
5911
|
+
a.value.contentWindow.postMessage(m, S), Z.debug(`Sent to iframe: ${m.type}`);
|
|
5893
5912
|
},
|
|
5894
5913
|
sendToParent(m) {
|
|
5895
5914
|
if (!window.parent || window.parent === window) {
|
|
5896
|
-
|
|
5915
|
+
Z.warn("Cannot send to parent: not in iframe");
|
|
5897
5916
|
return;
|
|
5898
5917
|
}
|
|
5899
|
-
window.parent.postMessage(m, "*"),
|
|
5918
|
+
window.parent.postMessage(m, "*"), Z.debug(`Sent to parent: ${m.type}`);
|
|
5900
5919
|
},
|
|
5901
5920
|
startListening() {
|
|
5902
5921
|
u.value || (window.addEventListener("message", h), u.value = !0);
|
|
@@ -5921,8 +5940,8 @@ function rs(s) {
|
|
|
5921
5940
|
}
|
|
5922
5941
|
};
|
|
5923
5942
|
}
|
|
5924
|
-
const
|
|
5925
|
-
function
|
|
5943
|
+
const Ne = N("ai-agent-service");
|
|
5944
|
+
function is(s) {
|
|
5926
5945
|
const {
|
|
5927
5946
|
userGetter: e,
|
|
5928
5947
|
bladeGetter: t,
|
|
@@ -5932,12 +5951,12 @@ function ns(s) {
|
|
|
5932
5951
|
reloadBlade: o,
|
|
5933
5952
|
initialConfig: u,
|
|
5934
5953
|
isEmbedded: l = !1
|
|
5935
|
-
} = s, d = O({ ...
|
|
5954
|
+
} = s, d = O({ ...Va, ...u }), c = rs(), f = ns({
|
|
5936
5955
|
userGetter: e,
|
|
5937
5956
|
bladeGetter: t,
|
|
5938
5957
|
localeGetter: n,
|
|
5939
5958
|
tokenGetter: r
|
|
5940
|
-
}), h =
|
|
5959
|
+
}), h = ss({
|
|
5941
5960
|
getConfig: () => d.value,
|
|
5942
5961
|
isEmbedded: l,
|
|
5943
5962
|
navigateToBlade: a,
|
|
@@ -5946,42 +5965,42 @@ function ns(s) {
|
|
|
5946
5965
|
user: e(),
|
|
5947
5966
|
currentBlade: t(),
|
|
5948
5967
|
items: f.contextItems.value
|
|
5949
|
-
})),
|
|
5968
|
+
})), g = async () => {
|
|
5950
5969
|
if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
|
|
5951
5970
|
h.pendingInitContext.value = !1, c.isInitialized.value = !0;
|
|
5952
|
-
const
|
|
5953
|
-
h.sendToIframe({ type: "INIT_CONTEXT", payload:
|
|
5971
|
+
const C = await f.buildInitPayload();
|
|
5972
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: C }), Ne.debug("Flushed pending INIT_CONTEXT");
|
|
5954
5973
|
}
|
|
5955
5974
|
};
|
|
5956
5975
|
h.onChatReady(() => {
|
|
5957
|
-
h.iframeRef.value?.contentWindow ? (c.isInitialized.value = !0, f.buildInitPayload().then((
|
|
5958
|
-
h.sendToIframe({ type: "INIT_CONTEXT", payload:
|
|
5959
|
-
})) : (h.pendingInitContext.value = !0,
|
|
5960
|
-
}),
|
|
5976
|
+
h.iframeRef.value?.contentWindow ? (c.isInitialized.value = !0, f.buildInitPayload().then((C) => {
|
|
5977
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: C }), Ne.info("Chatbot ready, sent INIT_CONTEXT");
|
|
5978
|
+
})) : (h.pendingInitContext.value = !0, Ne.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
5979
|
+
}), V(h.iframeRef, () => g()), V(
|
|
5961
5980
|
() => ({ currentBlade: m.value.currentBlade, items: m.value.items }),
|
|
5962
5981
|
async () => {
|
|
5963
5982
|
if (l) {
|
|
5964
|
-
const
|
|
5965
|
-
h.sendToParent({ type: "AI_CONTEXT_UPDATE", payload:
|
|
5983
|
+
const C = await f.buildInitPayload();
|
|
5984
|
+
h.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: C });
|
|
5966
5985
|
return;
|
|
5967
5986
|
}
|
|
5968
5987
|
if (c.isOpen.value && c.isInitialized.value && h.iframeRef.value?.contentWindow) {
|
|
5969
|
-
const
|
|
5970
|
-
h.sendToIframe({ type: "UPDATE_CONTEXT", payload:
|
|
5988
|
+
const C = await f.buildUpdatePayload();
|
|
5989
|
+
h.sendToIframe({ type: "UPDATE_CONTEXT", payload: C });
|
|
5971
5990
|
}
|
|
5972
5991
|
},
|
|
5973
5992
|
{ deep: !0 }
|
|
5974
5993
|
);
|
|
5975
|
-
const S = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.open(),
|
|
5976
|
-
h.setIframeRef(
|
|
5977
|
-
}, P = (
|
|
5978
|
-
const { cleared:
|
|
5979
|
-
l &&
|
|
5994
|
+
const S = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.open(), U = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.close(), E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.toggle(), b = (C) => {
|
|
5995
|
+
h.setIframeRef(C), g();
|
|
5996
|
+
}, P = (C, A, T, M) => {
|
|
5997
|
+
const { cleared: H } = f.setContextData(C, A, T, M);
|
|
5998
|
+
l && H && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
5980
5999
|
};
|
|
5981
6000
|
return h.startListening(), l && (h.sendToParent({
|
|
5982
6001
|
type: "EMBEDDED_APP_READY",
|
|
5983
6002
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
5984
|
-
}),
|
|
6003
|
+
}), Ne.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
5985
6004
|
// State
|
|
5986
6005
|
panelState: c.panelState,
|
|
5987
6006
|
config: d,
|
|
@@ -5991,31 +6010,31 @@ function ns(s) {
|
|
|
5991
6010
|
totalItemsCount: f.totalItemsCount,
|
|
5992
6011
|
// Panel control
|
|
5993
6012
|
openPanel: S,
|
|
5994
|
-
closePanel:
|
|
6013
|
+
closePanel: U,
|
|
5995
6014
|
togglePanel: E,
|
|
5996
6015
|
expandPanel: () => c.expand(),
|
|
5997
6016
|
collapsePanel: () => c.collapse(),
|
|
5998
6017
|
// Configuration
|
|
5999
|
-
setConfig: (
|
|
6000
|
-
d.value = { ...d.value, ...
|
|
6018
|
+
setConfig: (C) => {
|
|
6019
|
+
d.value = { ...d.value, ...C };
|
|
6001
6020
|
},
|
|
6002
6021
|
// Communication
|
|
6003
|
-
sendMessage: (
|
|
6004
|
-
h.sendToIframe({ type:
|
|
6022
|
+
sendMessage: (C, A) => {
|
|
6023
|
+
h.sendToIframe({ type: C, payload: A });
|
|
6005
6024
|
},
|
|
6006
6025
|
onMessage: h.onMessage,
|
|
6007
6026
|
// Internal API
|
|
6008
6027
|
iframeRef: h.iframeRef,
|
|
6009
|
-
_setIframeRef:
|
|
6028
|
+
_setIframeRef: b,
|
|
6010
6029
|
_startListening: h.startListening,
|
|
6011
6030
|
_stopListening: h.stopListening,
|
|
6012
6031
|
_setContextData: P,
|
|
6013
6032
|
_onPreviewChanges: h.onPreviewChanges
|
|
6014
6033
|
};
|
|
6015
6034
|
}
|
|
6016
|
-
const ce =
|
|
6017
|
-
function
|
|
6018
|
-
const e = F(
|
|
6035
|
+
const ce = N("use-ai-agent");
|
|
6036
|
+
function Ji(s) {
|
|
6037
|
+
const e = F(Hr), { user: t, getAccessToken: n } = Hn(), { openBlade: r } = Xa(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = Gt(), l = s?.isEmbedded, d = is({
|
|
6019
6038
|
userGetter: () => {
|
|
6020
6039
|
if (t.value)
|
|
6021
6040
|
return {
|
|
@@ -6040,8 +6059,8 @@ function Li(s) {
|
|
|
6040
6059
|
navigateToBlade: (f, h, m) => {
|
|
6041
6060
|
r({ name: f, param: h, options: m }).then(() => {
|
|
6042
6061
|
ce.debug(`Navigated to blade: ${f}`);
|
|
6043
|
-
}).catch((
|
|
6044
|
-
ce.warn(`Blade not found or cannot be opened: ${f}`,
|
|
6062
|
+
}).catch((g) => {
|
|
6063
|
+
ce.warn(`Blade not found or cannot be opened: ${f}`, g);
|
|
6045
6064
|
});
|
|
6046
6065
|
},
|
|
6047
6066
|
reloadBlade: () => {
|
|
@@ -6060,13 +6079,13 @@ function Li(s) {
|
|
|
6060
6079
|
initialConfig: s?.config,
|
|
6061
6080
|
isEmbedded: l
|
|
6062
6081
|
});
|
|
6063
|
-
if (
|
|
6064
|
-
const f = F(
|
|
6082
|
+
if (Ee(Je, d), ce.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
|
|
6083
|
+
const f = F(Kr, null);
|
|
6065
6084
|
f ? (f.registerToolbarItem(
|
|
6066
6085
|
{
|
|
6067
|
-
id:
|
|
6068
|
-
icon:
|
|
6069
|
-
title:
|
|
6086
|
+
id: Qa,
|
|
6087
|
+
icon: es,
|
|
6088
|
+
title: ts,
|
|
6070
6089
|
clickHandler: () => {
|
|
6071
6090
|
d.togglePanel();
|
|
6072
6091
|
}
|
|
@@ -6077,10 +6096,10 @@ function Li(s) {
|
|
|
6077
6096
|
}
|
|
6078
6097
|
return d;
|
|
6079
6098
|
}
|
|
6080
|
-
function
|
|
6099
|
+
function Wi() {
|
|
6081
6100
|
const s = F(Je);
|
|
6082
6101
|
if (!s)
|
|
6083
|
-
throw ce.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new
|
|
6102
|
+
throw ce.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Tr("AiAgentService");
|
|
6084
6103
|
return {
|
|
6085
6104
|
// State
|
|
6086
6105
|
panelState: s.panelState,
|
|
@@ -6102,7 +6121,7 @@ function Gi() {
|
|
|
6102
6121
|
onMessage: s.onMessage
|
|
6103
6122
|
};
|
|
6104
6123
|
}
|
|
6105
|
-
function
|
|
6124
|
+
function Hi(s) {
|
|
6106
6125
|
return {
|
|
6107
6126
|
id: "ai-agent-toggle",
|
|
6108
6127
|
icon: s?.icon ?? "lucide-sparkles",
|
|
@@ -6112,11 +6131,11 @@ function Ji(s) {
|
|
|
6112
6131
|
}
|
|
6113
6132
|
};
|
|
6114
6133
|
}
|
|
6115
|
-
const
|
|
6134
|
+
const os = ["width", "height"], ls = ["clip-path"], us = {
|
|
6116
6135
|
key: 1,
|
|
6117
6136
|
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",
|
|
6118
6137
|
fill: "url(#virto-oz-gradient-animated)"
|
|
6119
|
-
},
|
|
6138
|
+
}, cs = ["id"], ds = {
|
|
6120
6139
|
key: 1,
|
|
6121
6140
|
id: "virto-oz-gradient-animated",
|
|
6122
6141
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -6124,7 +6143,7 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6124
6143
|
y1: "0",
|
|
6125
6144
|
x2: "99",
|
|
6126
6145
|
y2: "108"
|
|
6127
|
-
},
|
|
6146
|
+
}, Zt = /* @__PURE__ */ G({
|
|
6128
6147
|
__name: "VcVirtoOzLogo",
|
|
6129
6148
|
props: {
|
|
6130
6149
|
width: { default: 22 },
|
|
@@ -6133,7 +6152,7 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6133
6152
|
},
|
|
6134
6153
|
setup(s) {
|
|
6135
6154
|
const e = v(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
6136
|
-
return (t, n) => (
|
|
6155
|
+
return (t, n) => (_(), R("svg", {
|
|
6137
6156
|
width: s.width,
|
|
6138
6157
|
height: s.height,
|
|
6139
6158
|
viewBox: "0 0 99 108",
|
|
@@ -6141,22 +6160,22 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6141
6160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6142
6161
|
class: "vc-virto-oz-logo"
|
|
6143
6162
|
}, [
|
|
6144
|
-
n[3] || (n[3] =
|
|
6163
|
+
n[3] || (n[3] = $("path", {
|
|
6145
6164
|
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",
|
|
6146
6165
|
fill: "white"
|
|
6147
6166
|
}, null, -1)),
|
|
6148
|
-
s.animated ? (
|
|
6167
|
+
s.animated ? (_(), R("path", us)) : (_(), R("g", {
|
|
6149
6168
|
key: 0,
|
|
6150
6169
|
"clip-path": `url(#${e.value})`
|
|
6151
6170
|
}, [...n[0] || (n[0] = [
|
|
6152
|
-
|
|
6153
|
-
|
|
6171
|
+
$("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
|
|
6172
|
+
$("foreignObject", {
|
|
6154
6173
|
x: "-334.01",
|
|
6155
6174
|
y: "-334.01",
|
|
6156
6175
|
width: "668.02",
|
|
6157
6176
|
height: "668.02"
|
|
6158
6177
|
}, [
|
|
6159
|
-
|
|
6178
|
+
$("div", {
|
|
6160
6179
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
6161
6180
|
style: { background: `conic-gradient(
|
|
6162
6181
|
from 90deg,
|
|
@@ -6170,46 +6189,46 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6170
6189
|
})
|
|
6171
6190
|
])
|
|
6172
6191
|
], -1)
|
|
6173
|
-
])], 8,
|
|
6174
|
-
n[4] || (n[4] =
|
|
6192
|
+
])], 8, ls)),
|
|
6193
|
+
n[4] || (n[4] = $("path", {
|
|
6175
6194
|
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",
|
|
6176
6195
|
fill: "white"
|
|
6177
6196
|
}, null, -1)),
|
|
6178
|
-
n[5] || (n[5] =
|
|
6197
|
+
n[5] || (n[5] = $("ellipse", {
|
|
6179
6198
|
cx: "49.12",
|
|
6180
6199
|
cy: "54.09",
|
|
6181
6200
|
rx: "4.05",
|
|
6182
6201
|
ry: "4.05",
|
|
6183
6202
|
fill: "#6C6C6C"
|
|
6184
6203
|
}, null, -1)),
|
|
6185
|
-
n[6] || (n[6] =
|
|
6204
|
+
n[6] || (n[6] = $("ellipse", {
|
|
6186
6205
|
cx: "60.62",
|
|
6187
6206
|
cy: "54.09",
|
|
6188
6207
|
rx: "4.05",
|
|
6189
6208
|
ry: "4.05",
|
|
6190
6209
|
fill: "#6C6C6C"
|
|
6191
6210
|
}, null, -1)),
|
|
6192
|
-
n[7] || (n[7] =
|
|
6211
|
+
n[7] || (n[7] = $("ellipse", {
|
|
6193
6212
|
cx: "37.62",
|
|
6194
6213
|
cy: "54.09",
|
|
6195
6214
|
rx: "4.05",
|
|
6196
6215
|
ry: "4.05",
|
|
6197
6216
|
fill: "#6C6C6C"
|
|
6198
6217
|
}, null, -1)),
|
|
6199
|
-
|
|
6200
|
-
s.animated ?
|
|
6218
|
+
$("defs", null, [
|
|
6219
|
+
s.animated ? K("", !0) : (_(), R("clipPath", {
|
|
6201
6220
|
key: 0,
|
|
6202
6221
|
id: e.value
|
|
6203
6222
|
}, [...n[1] || (n[1] = [
|
|
6204
|
-
|
|
6205
|
-
])], 8,
|
|
6206
|
-
s.animated ? (
|
|
6207
|
-
|
|
6208
|
-
])])) :
|
|
6223
|
+
$("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)
|
|
6224
|
+
])], 8, cs)),
|
|
6225
|
+
s.animated ? (_(), R("linearGradient", ds, [...n[2] || (n[2] = [
|
|
6226
|
+
nr('<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)
|
|
6227
|
+
])])) : K("", !0)
|
|
6209
6228
|
])
|
|
6210
|
-
], 8,
|
|
6229
|
+
], 8, os));
|
|
6211
6230
|
}
|
|
6212
|
-
}),
|
|
6231
|
+
}), hs = { class: "vc-ai-agent-header" }, fs = { class: "vc-ai-agent-header__icon" }, ps = { class: "vc-ai-agent-header__wrapper" }, ms = { class: "vc-ai-agent-header__content" }, vs = { class: "vc-ai-agent-header__title" }, gs = { class: "vc-ai-agent-header__controls" }, bs = /* @__PURE__ */ G({
|
|
6213
6232
|
__name: "VcAiAgentHeader",
|
|
6214
6233
|
props: {
|
|
6215
6234
|
title: {},
|
|
@@ -6218,79 +6237,79 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6218
6237
|
},
|
|
6219
6238
|
emits: ["close", "expand", "collapse"],
|
|
6220
6239
|
setup(s) {
|
|
6221
|
-
return (e, t) => (
|
|
6222
|
-
|
|
6223
|
-
|
|
6240
|
+
return (e, t) => (_(), R("div", hs, [
|
|
6241
|
+
$("div", fs, [
|
|
6242
|
+
Y(Zt, {
|
|
6224
6243
|
width: 22,
|
|
6225
6244
|
height: 24,
|
|
6226
6245
|
"show-dots": ""
|
|
6227
6246
|
})
|
|
6228
6247
|
]),
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6248
|
+
$("div", ps, [
|
|
6249
|
+
$("div", ms, [
|
|
6250
|
+
$("div", vs, he(s.title), 1)
|
|
6232
6251
|
])
|
|
6233
6252
|
]),
|
|
6234
|
-
|
|
6235
|
-
s.isExpanded ? (
|
|
6253
|
+
$("div", gs, [
|
|
6254
|
+
s.isExpanded ? (_(), R("div", {
|
|
6236
6255
|
key: 0,
|
|
6237
6256
|
class: "vc-ai-agent-header__button",
|
|
6238
6257
|
title: "Collapse",
|
|
6239
6258
|
onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
|
|
6240
6259
|
}, [
|
|
6241
|
-
|
|
6242
|
-
])) : (
|
|
6260
|
+
Y(D(oe), { icon: "lucide-minus" })
|
|
6261
|
+
])) : (_(), R("div", {
|
|
6243
6262
|
key: 1,
|
|
6244
6263
|
class: "vc-ai-agent-header__button",
|
|
6245
6264
|
title: "Expand",
|
|
6246
6265
|
onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
|
|
6247
6266
|
}, [
|
|
6248
|
-
|
|
6267
|
+
Y(D(oe), { icon: "lucide-panel-top" })
|
|
6249
6268
|
])),
|
|
6250
|
-
|
|
6269
|
+
$("div", {
|
|
6251
6270
|
class: "vc-ai-agent-header__button",
|
|
6252
6271
|
title: "Close",
|
|
6253
6272
|
onClick: t[2] || (t[2] = (n) => e.$emit("close"))
|
|
6254
6273
|
}, [
|
|
6255
|
-
|
|
6274
|
+
Y(D(oe), { icon: "lucide-x" })
|
|
6256
6275
|
])
|
|
6257
6276
|
])
|
|
6258
6277
|
]));
|
|
6259
6278
|
}
|
|
6260
|
-
}),
|
|
6279
|
+
}), ys = { class: "vc-ai-agent-loader" }, xs = { class: "vc-ai-agent-loader__content" }, Es = { class: "vc-ai-agent-loader__logo" }, ws = {
|
|
6261
6280
|
key: 0,
|
|
6262
6281
|
class: "vc-ai-agent-loader__text"
|
|
6263
|
-
},
|
|
6282
|
+
}, Cs = /* @__PURE__ */ G({
|
|
6264
6283
|
__name: "VcAiAgentLoader",
|
|
6265
6284
|
props: {
|
|
6266
6285
|
text: {}
|
|
6267
6286
|
},
|
|
6268
6287
|
setup(s) {
|
|
6269
|
-
return (e, t) => (
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6288
|
+
return (e, t) => (_(), R("div", ys, [
|
|
6289
|
+
$("div", xs, [
|
|
6290
|
+
$("div", Es, [
|
|
6291
|
+
Y(Zt, {
|
|
6273
6292
|
width: 80,
|
|
6274
6293
|
height: 87,
|
|
6275
6294
|
animated: ""
|
|
6276
6295
|
})
|
|
6277
6296
|
]),
|
|
6278
|
-
s.text ? (
|
|
6297
|
+
s.text ? (_(), R("p", ws, he(s.text), 1)) : K("", !0)
|
|
6279
6298
|
])
|
|
6280
6299
|
]));
|
|
6281
6300
|
}
|
|
6282
|
-
}),
|
|
6301
|
+
}), _s = { class: "vc-ai-agent-iframe" }, Ss = ["src"], As = {
|
|
6283
6302
|
key: 1,
|
|
6284
6303
|
class: "vc-ai-agent-iframe__placeholder"
|
|
6285
|
-
},
|
|
6304
|
+
}, Us = /* @__PURE__ */ G({
|
|
6286
6305
|
__name: "VcAiAgentIframe",
|
|
6287
6306
|
props: {
|
|
6288
6307
|
url: {}
|
|
6289
6308
|
},
|
|
6290
6309
|
emits: ["iframe-ready"],
|
|
6291
6310
|
setup(s, { emit: e }) {
|
|
6292
|
-
const t =
|
|
6293
|
-
|
|
6311
|
+
const t = N("ai-agent-iframe"), n = s, r = e, a = O(null), o = O(!0);
|
|
6312
|
+
V(
|
|
6294
6313
|
a,
|
|
6295
6314
|
(l) => {
|
|
6296
6315
|
l && r("iframe-ready", l);
|
|
@@ -6300,44 +6319,44 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6300
6319
|
const u = () => {
|
|
6301
6320
|
o.value = !1, t.debug("Iframe loaded");
|
|
6302
6321
|
};
|
|
6303
|
-
return
|
|
6322
|
+
return V(
|
|
6304
6323
|
() => n.url,
|
|
6305
6324
|
() => {
|
|
6306
6325
|
o.value = !0;
|
|
6307
6326
|
}
|
|
6308
|
-
), (l, d) => (
|
|
6309
|
-
|
|
6327
|
+
), (l, d) => (_(), R("div", _s, [
|
|
6328
|
+
Y(it, { name: "fade" }, {
|
|
6310
6329
|
default: fe(() => [
|
|
6311
|
-
o.value && s.url ? (
|
|
6330
|
+
o.value && s.url ? (_(), W(Cs, {
|
|
6312
6331
|
key: 0,
|
|
6313
6332
|
text: l.$t("AI_AGENT.LOADING")
|
|
6314
|
-
}, null, 8, ["text"])) :
|
|
6333
|
+
}, null, 8, ["text"])) : K("", !0)
|
|
6315
6334
|
]),
|
|
6316
6335
|
_: 1
|
|
6317
6336
|
}),
|
|
6318
|
-
s.url ? (
|
|
6337
|
+
s.url ? (_(), R("iframe", {
|
|
6319
6338
|
key: 0,
|
|
6320
6339
|
ref_key: "iframeRef",
|
|
6321
6340
|
ref: a,
|
|
6322
6341
|
src: s.url,
|
|
6323
|
-
class:
|
|
6342
|
+
class: q(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
|
|
6324
6343
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
6325
6344
|
allow: "clipboard-read; clipboard-write",
|
|
6326
6345
|
onLoad: u
|
|
6327
|
-
}, null, 42,
|
|
6328
|
-
|
|
6346
|
+
}, null, 42, Ss)) : (_(), R("div", As, [
|
|
6347
|
+
Y(D(oe), {
|
|
6329
6348
|
icon: "lucide-sparkles",
|
|
6330
6349
|
size: "xl",
|
|
6331
6350
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
6332
6351
|
}),
|
|
6333
|
-
d[0] || (d[0] =
|
|
6352
|
+
d[0] || (d[0] = $("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
|
|
6334
6353
|
]))
|
|
6335
6354
|
]));
|
|
6336
6355
|
}
|
|
6337
|
-
}),
|
|
6356
|
+
}), Is = { class: "vc-ai-agent-panel__content" }, Ki = /* @__PURE__ */ G({
|
|
6338
6357
|
__name: "VcAiAgentPanel",
|
|
6339
6358
|
setup(s) {
|
|
6340
|
-
const e = F(Je), t = F(
|
|
6359
|
+
const e = F(Je), t = F(Zr, !1);
|
|
6341
6360
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
6342
6361
|
const n = v(
|
|
6343
6362
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
@@ -6346,18 +6365,18 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6346
6365
|
})), l = () => e?.closePanel(), d = () => e?.expandPanel(), c = () => e?.collapsePanel(), f = (h) => {
|
|
6347
6366
|
e?._setIframeRef(h);
|
|
6348
6367
|
};
|
|
6349
|
-
return
|
|
6368
|
+
return ar(() => {
|
|
6350
6369
|
e?._setIframeRef(null);
|
|
6351
|
-
}), (h, m) => (
|
|
6370
|
+
}), (h, m) => (_(), W(it, { name: "ai-panel-slide" }, {
|
|
6352
6371
|
default: fe(() => [
|
|
6353
|
-
r.value ? (
|
|
6372
|
+
r.value ? (_(), R("div", {
|
|
6354
6373
|
key: 0,
|
|
6355
|
-
class:
|
|
6374
|
+
class: q(["vc-ai-agent-panel", {
|
|
6356
6375
|
"vc-ai-agent-panel--expanded": a.value
|
|
6357
6376
|
}]),
|
|
6358
|
-
style:
|
|
6377
|
+
style: _e(u.value)
|
|
6359
6378
|
}, [
|
|
6360
|
-
|
|
6379
|
+
Y(bs, {
|
|
6361
6380
|
title: n.value.title,
|
|
6362
6381
|
"is-expanded": a.value,
|
|
6363
6382
|
"items-count": o.value,
|
|
@@ -6365,168 +6384,170 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
|
6365
6384
|
onExpand: d,
|
|
6366
6385
|
onCollapse: c
|
|
6367
6386
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
6368
|
-
|
|
6369
|
-
|
|
6387
|
+
$("div", Is, [
|
|
6388
|
+
Y(Us, {
|
|
6370
6389
|
url: n.value.url,
|
|
6371
6390
|
onIframeReady: f
|
|
6372
6391
|
}, null, 8, ["url"])
|
|
6373
6392
|
])
|
|
6374
|
-
], 6)) :
|
|
6393
|
+
], 6)) : K("", !0)
|
|
6375
6394
|
]),
|
|
6376
6395
|
_: 1
|
|
6377
6396
|
}));
|
|
6378
6397
|
}
|
|
6379
6398
|
});
|
|
6380
6399
|
export {
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6400
|
+
ii as $,
|
|
6401
|
+
Di as A,
|
|
6402
|
+
Nr as B,
|
|
6403
|
+
zt as C,
|
|
6404
|
+
Va as D,
|
|
6405
|
+
Li as E,
|
|
6406
|
+
Gn as F,
|
|
6407
|
+
Ht as G,
|
|
6408
|
+
Gi as H,
|
|
6409
|
+
Tr as I,
|
|
6410
|
+
Kt as J,
|
|
6411
|
+
Za as K,
|
|
6412
|
+
qt as L,
|
|
6413
|
+
Ut as M,
|
|
6414
|
+
Zn as N,
|
|
6415
|
+
Jt as O,
|
|
6416
|
+
Hr as P,
|
|
6417
|
+
Vr as Q,
|
|
6418
|
+
Qr as R,
|
|
6419
|
+
Ui as S,
|
|
6420
|
+
Yr as T,
|
|
6421
|
+
Xr as U,
|
|
6422
|
+
en as V,
|
|
6423
|
+
ti as W,
|
|
6424
|
+
hi as X,
|
|
6425
|
+
ei as Y,
|
|
6426
|
+
Kr as Z,
|
|
6427
|
+
En as _,
|
|
6428
|
+
Fr as a,
|
|
6429
|
+
Mn as a$,
|
|
6430
|
+
ai as a0,
|
|
6431
|
+
$i as a1,
|
|
6432
|
+
si as a2,
|
|
6433
|
+
Wr as a3,
|
|
6434
|
+
zi as a4,
|
|
6435
|
+
Mi as a5,
|
|
6436
|
+
Fi as a6,
|
|
6437
|
+
pa as a7,
|
|
6438
|
+
ma as a8,
|
|
6439
|
+
va as a9,
|
|
6440
|
+
In as aA,
|
|
6441
|
+
Ra as aB,
|
|
6442
|
+
_n as aC,
|
|
6443
|
+
se as aD,
|
|
6444
|
+
ni as aE,
|
|
6445
|
+
fi as aF,
|
|
6446
|
+
Ci as aG,
|
|
6447
|
+
Nn as aH,
|
|
6448
|
+
Tn as aI,
|
|
6449
|
+
_i as aJ,
|
|
6450
|
+
Xs as aK,
|
|
6451
|
+
Si as aL,
|
|
6452
|
+
ci as aM,
|
|
6453
|
+
ui as aN,
|
|
6454
|
+
Qs as aO,
|
|
6455
|
+
Ai as aP,
|
|
6456
|
+
jn as aQ,
|
|
6457
|
+
zn as aR,
|
|
6458
|
+
Pn as aS,
|
|
6459
|
+
Fn as aT,
|
|
6460
|
+
Sn as aU,
|
|
6461
|
+
Zs as aV,
|
|
6462
|
+
An as aW,
|
|
6463
|
+
qs as aX,
|
|
6464
|
+
On as aY,
|
|
6465
|
+
di as aZ,
|
|
6466
|
+
Rn as a_,
|
|
6467
|
+
Dn as aa,
|
|
6468
|
+
oi as ab,
|
|
6469
|
+
qr as ac,
|
|
6470
|
+
gi as ad,
|
|
6471
|
+
Q as ae,
|
|
6472
|
+
bi as af,
|
|
6473
|
+
Jr as ag,
|
|
6474
|
+
jt as ah,
|
|
6475
|
+
Gr as ai,
|
|
6476
|
+
Ys as aj,
|
|
6477
|
+
Lr as ak,
|
|
6478
|
+
ct as al,
|
|
6479
|
+
Ge as am,
|
|
6480
|
+
yi as an,
|
|
6481
|
+
pi as ao,
|
|
6482
|
+
ri as ap,
|
|
6483
|
+
xi as aq,
|
|
6484
|
+
Ei as ar,
|
|
6485
|
+
be as as,
|
|
6486
|
+
li as at,
|
|
6487
|
+
kn as au,
|
|
6488
|
+
wi as av,
|
|
6489
|
+
$n as aw,
|
|
6490
|
+
Un as ax,
|
|
6491
|
+
Bn as ay,
|
|
6492
|
+
Zr as az,
|
|
6493
|
+
hn as b,
|
|
6494
|
+
Ks as b0,
|
|
6495
|
+
It as b1,
|
|
6496
|
+
Lt as b2,
|
|
6497
|
+
Ft as b3,
|
|
6498
|
+
xa as b4,
|
|
6499
|
+
Ja as b5,
|
|
6500
|
+
Ga as b6,
|
|
6501
|
+
Wa as b7,
|
|
6502
|
+
La as b8,
|
|
6503
|
+
Ur as b9,
|
|
6504
|
+
ji as ba,
|
|
6505
|
+
Ta as bb,
|
|
6506
|
+
Ri as bc,
|
|
6507
|
+
Bi as bd,
|
|
6508
|
+
Pr as be,
|
|
6509
|
+
Ws as bf,
|
|
6510
|
+
Hs as bg,
|
|
6511
|
+
Da as bh,
|
|
6512
|
+
ki as bi,
|
|
6513
|
+
Pi as bj,
|
|
6514
|
+
Oi as bk,
|
|
6515
|
+
Ha as bl,
|
|
6516
|
+
Dt as bm,
|
|
6517
|
+
Gt as bn,
|
|
6518
|
+
Ia as bo,
|
|
6519
|
+
ta as bp,
|
|
6520
|
+
ba as bq,
|
|
6521
|
+
Xn as br,
|
|
6522
|
+
Hn as bs,
|
|
6523
|
+
Vs as bt,
|
|
6524
|
+
pe as bu,
|
|
6525
|
+
ya as bv,
|
|
6526
|
+
Ji as bw,
|
|
6527
|
+
Ye as bx,
|
|
6528
|
+
sa as by,
|
|
6529
|
+
mn as c,
|
|
6530
|
+
oe as d,
|
|
6531
|
+
Dr as e,
|
|
6532
|
+
tn as f,
|
|
6533
|
+
Ki as g,
|
|
6534
|
+
Hi as h,
|
|
6535
|
+
Wi as i,
|
|
6515
6536
|
Je as j,
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6537
|
+
dt as k,
|
|
6538
|
+
N as l,
|
|
6539
|
+
da as m,
|
|
6540
|
+
Ii as n,
|
|
6541
|
+
Pa as o,
|
|
6542
|
+
Qe as p,
|
|
6543
|
+
X as q,
|
|
6544
|
+
ve as r,
|
|
6545
|
+
Ti as s,
|
|
6546
|
+
fa as t,
|
|
6547
|
+
Mr as u,
|
|
6548
|
+
vi as v,
|
|
6549
|
+
mi as w,
|
|
6550
|
+
Ni as x,
|
|
6551
|
+
Xa as y,
|
|
6531
6552
|
We as z
|
|
6532
6553
|
};
|