@vc-shell/framework 2.0.0-alpha.28 → 2.0.0-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-DkhNTrts.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-Db771GeP.js} +461 -462
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-5ZmOi0Qn.js → VcTableAdapter.vue_vue_type_style_index_0_lang-Ce5JuGln.js} +5800 -5818
- package/dist/chunks/{index-BhuEUzqS.js → index-DG6mwrja.js} +6 -6
- package/dist/chunks/{index-DqkSBxqx.js → index-WxG6Hq5V.js} +2 -2
- package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-B2yfKgJ0.js → vc-toast.vue_vue_type_style_index_0_lang-CYlMO79c.js} +1 -1
- package/dist/chunks/vendor-web-vitals-ByFgAM-8.js +215 -0
- package/dist/core/blade-navigation/types/index.d.ts +4 -12
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeContext.d.ts +4 -3
- package/dist/core/composables/useBladeContext.d.ts.map +1 -1
- package/dist/core/composables/useResponsive/index.d.ts +26 -0
- package/dist/core/composables/useResponsive/index.d.ts.map +1 -0
- package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts.map +1 -1
- package/dist/core/services/widget-service.d.ts +3 -3
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +2 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +939 -931
- package/dist/injection-keys.d.ts +1 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/components/notification-template/notification-template.vue.d.ts.map +1 -1
- package/dist/shell/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shell/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shell/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts.map +1 -1
- package/dist/shell/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarMobileActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarOverlay.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.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/_internal/BladeToolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useBladeError.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useBladeError.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/utils.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/utils.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/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/PullToRefresh.vue.d.ts +3 -4
- package/dist/ui/components/organisms/vc-data-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- package/globals-augments.d.ts +5 -0
- package/package.json +4 -4
- package/typings/shims-vue.d.ts +5 -0
- package/dist/chunks/vendor-web-vitals-vrpLO1bu.js +0 -207
- package/dist/shell/_internal/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +0 -26
- package/dist/shell/_internal/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/constants.d.ts +0 -8
- package/dist/ui/components/organisms/vc-blade/constants.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as L, computed as v, onMounted as
|
|
2
|
-
import { o as kt, s as nr, c as
|
|
1
|
+
import { defineComponent as L, computed as v, onMounted as Ie, openBlock as C, createElementBlock as R, normalizeStyle as Ce, normalizeClass as K, toDisplayString as he, markRaw as Ot, createBlock as J, resolveDynamicComponent as ze, createElementVNode as N, mergeProps as xe, createCommentVNode as H, resolveComponent as Ne, inject as F, unref as D, renderSlot as ye, ref as O, watch as X, nextTick as ne, onBeforeUnmount as at, toValue as le, getCurrentInstance as Ee, withKeys as ft, withModifiers as Xe, Teleport as qt, createVNode as Z, Transition as st, withCtx as fe, withDirectives as it, Fragment as Fe, renderList as ot, createTextVNode as pt, toRef as Rt, reactive as Zt, createApp as Yt, onErrorCaptured as Xt, shallowRef as lt, provide as Me, vShow as Vt, h as Qt, isRef as er, createStaticVNode as tr, onUnmounted as rr } from "vue";
|
|
2
|
+
import { o as kt, s as nr, c as Oe } from "./vendor-lodash-es-BwHYzZ39.js";
|
|
3
3
|
import { u as ar, a as sr, o as ir } from "./vendor-vueuse-core-CPOkeLul.js";
|
|
4
4
|
import { u as or, j as Bt, k as lr } from "./vendor-vueuse-shared-Byno6iDO.js";
|
|
5
5
|
import { c as ur, u as cr } from "./vendor-vue-i18n-BSCeQYoP.js";
|
|
@@ -25,8 +25,8 @@ 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) => (C(),
|
|
28
|
+
return Ie(() => {
|
|
29
|
+
}), (r, a) => (C(), R("span", {
|
|
30
30
|
class: K([
|
|
31
31
|
"vc-material-icon",
|
|
32
32
|
"material-symbols-" + s.type,
|
|
@@ -47,10 +47,10 @@ 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
|
+
Ie(() => {
|
|
51
51
|
});
|
|
52
52
|
const r = v(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
53
|
-
return (a, o) => (C(),
|
|
53
|
+
return (a, o) => (C(), R("i", {
|
|
54
54
|
class: K([
|
|
55
55
|
"vc-bootstrap-icon",
|
|
56
56
|
!t.value && `vc-bootstrap-icon--${s.size}`,
|
|
@@ -121,7 +121,7 @@ function j(s) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const Gs = j(), Js = {
|
|
125
125
|
core: j("core"),
|
|
126
126
|
ui: j("ui"),
|
|
127
127
|
shared: j("shared"),
|
|
@@ -143,12 +143,12 @@ class ae extends Error {
|
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class Ws extends ae {
|
|
147
147
|
constructor(e, t) {
|
|
148
148
|
super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
class
|
|
151
|
+
class Hs extends ae {
|
|
152
152
|
constructor(e, t) {
|
|
153
153
|
super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
|
|
154
154
|
}
|
|
@@ -161,7 +161,7 @@ class Ur extends ae {
|
|
|
161
161
|
}), this.name = "InjectionError";
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
class
|
|
164
|
+
class Ks extends ae {
|
|
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 Gs extends ae {
|
|
|
169
169
|
}), this.name = "RegistrationError";
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
class
|
|
172
|
+
class qs extends ae {
|
|
173
173
|
constructor(e, t, n) {
|
|
174
174
|
super(e, "BLADE_ERROR", {
|
|
175
175
|
bladeId: t,
|
|
@@ -177,7 +177,7 @@ class Js extends ae {
|
|
|
177
177
|
}), this.name = "BladeError";
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class Zs extends ae {
|
|
181
181
|
constructor(e, t, n) {
|
|
182
182
|
super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
|
|
183
183
|
moduleId: e,
|
|
@@ -188,7 +188,7 @@ class Ws extends ae {
|
|
|
188
188
|
function Ir(s) {
|
|
189
189
|
return s instanceof ae;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ys(s, e = "UNKNOWN_ERROR") {
|
|
192
192
|
return Ir(s) ? s : s instanceof Error ? new ae(s.message, e, {
|
|
193
193
|
originalError: s.name,
|
|
194
194
|
stack: s.stack
|
|
@@ -249,7 +249,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
249
249
|
width: `${t.customSize}px`,
|
|
250
250
|
height: `${t.customSize}px`
|
|
251
251
|
} : {});
|
|
252
|
-
return (u, l) => a.value ? (C(), J(
|
|
252
|
+
return (u, l) => a.value ? (C(), J(ze(a.value), {
|
|
253
253
|
key: 0,
|
|
254
254
|
"stroke-width": t.strokeWidth,
|
|
255
255
|
class: K([
|
|
@@ -259,7 +259,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
259
259
|
]),
|
|
260
260
|
style: Ce(o.value),
|
|
261
261
|
"aria-hidden": "true"
|
|
262
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (C(),
|
|
262
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (C(), R("span", {
|
|
263
263
|
key: 1,
|
|
264
264
|
class: K(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
|
|
265
265
|
}, [...l[0] || (l[0] = [
|
|
@@ -276,10 +276,10 @@ 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
|
+
Ie(() => {
|
|
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) => (C(),
|
|
282
|
+
return (a, o) => (C(), R("i", {
|
|
283
283
|
class: K([
|
|
284
284
|
"vc-fa-icon",
|
|
285
285
|
!t.value && `vc-fa-icon--${s.size}`,
|
|
@@ -315,12 +315,12 @@ 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) => (C(),
|
|
318
|
+
return (a, o) => (C(), R("svg", xe({
|
|
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 ? (C(),
|
|
323
|
+
n.value ? (C(), R("use", {
|
|
324
324
|
key: 0,
|
|
325
325
|
"xlink:href": n.value
|
|
326
326
|
}, null, 8, Or)) : H("", !0)
|
|
@@ -339,7 +339,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
339
339
|
},
|
|
340
340
|
setup(s) {
|
|
341
341
|
const e = s;
|
|
342
|
-
|
|
342
|
+
Ie(() => {
|
|
343
343
|
});
|
|
344
344
|
const t = {
|
|
345
345
|
xs: 12,
|
|
@@ -367,12 +367,12 @@ const Tr = /* @__PURE__ */ L({
|
|
|
367
367
|
if (u.value)
|
|
368
368
|
try {
|
|
369
369
|
const g = typeof r.value == "string" ? r.value : String(r.value);
|
|
370
|
-
return
|
|
370
|
+
return Ne(g) !== g;
|
|
371
371
|
} catch {
|
|
372
372
|
return !1;
|
|
373
373
|
}
|
|
374
374
|
try {
|
|
375
|
-
return
|
|
375
|
+
return Ne(e.icon) !== e.icon;
|
|
376
376
|
} catch {
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
@@ -382,7 +382,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
382
382
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
383
383
|
return "i";
|
|
384
384
|
try {
|
|
385
|
-
const g = typeof r.value == "string" ? r.value : String(r.value), P =
|
|
385
|
+
const g = typeof r.value == "string" ? r.value : String(r.value), P = Ne(g);
|
|
386
386
|
return P !== g ? P : "i";
|
|
387
387
|
} catch {
|
|
388
388
|
return "i";
|
|
@@ -433,7 +433,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
433
433
|
height: h.value,
|
|
434
434
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
435
435
|
} : {}), A = v(() => n.value === "svg"), E = v(() => !A.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
436
|
-
return (g, P) => s.useContainer ? (C(),
|
|
436
|
+
return (g, P) => s.useContainer ? (C(), R("div", xe({
|
|
437
437
|
key: 0,
|
|
438
438
|
class: ["vc-icon-container", `vc-icon-container--${s.size}`],
|
|
439
439
|
style: b.value,
|
|
@@ -441,7 +441,7 @@ const Tr = /* @__PURE__ */ L({
|
|
|
441
441
|
"aria-label": s.ariaLabel || void 0,
|
|
442
442
|
role: s.ariaLabel ? "img" : void 0
|
|
443
443
|
}, g.$attrs), [
|
|
444
|
-
(C(), J(
|
|
444
|
+
(C(), J(ze(f.value), xe({
|
|
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, kr)) : (C(), J(
|
|
453
|
+
], 16, kr)) : (C(), J(ze(f.value), xe({
|
|
454
454
|
key: 1,
|
|
455
455
|
class: [
|
|
456
456
|
"vc-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 =
|
|
490
|
+
}, n = s, r = e, a = F(Br, null), o = v(() => {
|
|
491
491
|
const d = a?.size?.value ?? n.size;
|
|
492
492
|
return t[d] ?? d;
|
|
493
493
|
}), u = v(() => [
|
|
@@ -504,7 +504,7 @@ 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) => (C(),
|
|
507
|
+
return (d, c) => (C(), R("button", {
|
|
508
508
|
class: K(u.value),
|
|
509
509
|
type: s.type,
|
|
510
510
|
disabled: s.disabled || s.loading,
|
|
@@ -513,18 +513,18 @@ const Tr = /* @__PURE__ */ L({
|
|
|
513
513
|
"aria-pressed": s.selected || void 0,
|
|
514
514
|
onClick: l
|
|
515
515
|
}, [
|
|
516
|
-
s.loading ? (C(), J(
|
|
516
|
+
s.loading ? (C(), J(D(se), {
|
|
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 ? (C(), J(
|
|
521
|
+
}, null, 8, ["size"])) : s.icon ? (C(), J(D(se), {
|
|
522
522
|
key: 1,
|
|
523
523
|
class: K(["vc-button--icon", s.iconClass]),
|
|
524
524
|
icon: s.icon,
|
|
525
525
|
size: s.iconSize
|
|
526
526
|
}, null, 8, ["class", "icon", "size"])) : H("", !0),
|
|
527
|
-
d.$slots.default ? (C(),
|
|
527
|
+
d.$slots.default ? (C(), R("span", Nr, [
|
|
528
528
|
ye(d.$slots, "default")
|
|
529
529
|
])) : H("", !0)
|
|
530
530
|
], 10, $r));
|
|
@@ -548,7 +548,7 @@ function zr(s) {
|
|
|
548
548
|
moreButtonWidth: r,
|
|
549
549
|
calculationStrategy: a = "forward",
|
|
550
550
|
initialItemWidth: o = 50
|
|
551
|
-
} = s, { width: u } = ar(e), l =
|
|
551
|
+
} = s, { width: u } = ar(e), l = O(/* @__PURE__ */ new Map()), d = O(null), c = O(0), f = O([]), h = O([]), m = v(() => h.value.length > 0);
|
|
552
552
|
let b = null;
|
|
553
553
|
const S = /* @__PURE__ */ new Set(), A = () => d.value ?? r, E = () => {
|
|
554
554
|
if (!e.value) return;
|
|
@@ -595,7 +595,7 @@ function zr(s) {
|
|
|
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
|
b || (b = new ResizeObserver((p) => {
|
|
600
600
|
let y = !1;
|
|
601
601
|
for (const x of p) {
|
|
@@ -631,12 +631,12 @@ function zr(s) {
|
|
|
631
631
|
() => t.value.map(n).join("\0"),
|
|
632
632
|
() => {
|
|
633
633
|
T(), ne(() => {
|
|
634
|
-
|
|
634
|
+
M();
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
-
),
|
|
637
|
+
), Ie(() => {
|
|
638
638
|
ne(() => {
|
|
639
|
-
_(),
|
|
639
|
+
_(), M();
|
|
640
640
|
});
|
|
641
641
|
}), at(() => {
|
|
642
642
|
b && (b.disconnect(), b = null), S.clear();
|
|
@@ -650,7 +650,7 @@ function zr(s) {
|
|
|
650
650
|
});
|
|
651
651
|
},
|
|
652
652
|
// Export function for updating observer
|
|
653
|
-
updateObserver:
|
|
653
|
+
updateObserver: M
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
656
|
function Fr(s, e, t = {}) {
|
|
@@ -685,9 +685,9 @@ function Fr(s, e, t = {}) {
|
|
|
685
685
|
resolvedStrategy: r
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
const Ge = Symbol("BladeStack"), ut = Symbol("BladeMessaging"), ct = Symbol("BladeDescriptor"), Mr = Symbol("BladeData"),
|
|
689
|
-
function
|
|
690
|
-
const e =
|
|
688
|
+
const Ge = Symbol("BladeStack"), ut = Symbol("BladeMessaging"), ct = Symbol("BladeDescriptor"), Mr = Symbol("BladeData"), Xs = Symbol("NavigationViewLocation"), Dr = Symbol("BladeBackButton"), Vs = Symbol("NotificationTemplates"), Lr = Symbol("NotificationStore"), Qs = Symbol("WidgetService"), ei = Symbol("DashboardService"), ti = Symbol("GlobalSearch"), ri = Symbol("MenuService"), ni = Symbol("SettingsMenuService"), ai = Symbol("AppBarWidgetService"), si = Symbol("AppBarMobileButtonsService"), Gr = Symbol("LanguageService"), Jr = Symbol("ToolbarService"), ii = Symbol("DynamicModules"), oi = Symbol("ModulesReady"), li = Symbol("ModulesLoadError"), Wr = Symbol("AppRootElement"), Hr = Symbol("EmbeddedMode"), ui = Symbol("ShellIndicators"), Je = Symbol("AiAgentService"), Kr = Symbol("IsMobile"), qr = Symbol("IsDesktop"), Zr = Symbol("IsPhone"), Yr = Symbol("IsTablet"), Xr = Symbol("IsTouch"), ci = Symbol("BladeRoutes"), di = Symbol("InternalRoutes"), hi = Symbol("CloseSettingsMenu"), fi = Symbol("BladeContext"), pi = Symbol("WidgetScope");
|
|
689
|
+
function Vr(s = {}) {
|
|
690
|
+
const e = F(Wr, 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 qr(s = {}) {
|
|
|
700
700
|
})
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const Qr = ["title"], en = ["title"], tn = /* @__PURE__ */ L({
|
|
704
704
|
__name: "vc-breadcrumbs-item",
|
|
705
705
|
props: {
|
|
706
706
|
current: { type: Boolean },
|
|
@@ -716,12 +716,12 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__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 ? (C(),
|
|
719
|
+
return (o, u) => s.current ? (C(), R("span", {
|
|
720
720
|
key: 0,
|
|
721
721
|
class: K(["vc-breadcrumbs-item vc-breadcrumbs-item--current", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
|
|
722
722
|
"aria-current": "page"
|
|
723
723
|
}, [
|
|
724
|
-
s.icon ? (C(), J(
|
|
724
|
+
s.icon ? (C(), J(D(se), {
|
|
725
725
|
key: 0,
|
|
726
726
|
class: "vc-breadcrumbs-item__icon",
|
|
727
727
|
icon: s.icon,
|
|
@@ -730,14 +730,14 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
730
730
|
N("span", {
|
|
731
731
|
class: "vc-breadcrumbs-item__title",
|
|
732
732
|
title: r.value
|
|
733
|
-
}, he(r.value), 9,
|
|
734
|
-
], 2)) : (C(),
|
|
733
|
+
}, he(r.value), 9, Qr)
|
|
734
|
+
], 2)) : (C(), R("button", {
|
|
735
735
|
key: 1,
|
|
736
736
|
type: "button",
|
|
737
737
|
class: K(["vc-breadcrumbs-item", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
|
|
738
738
|
onClick: a
|
|
739
739
|
}, [
|
|
740
|
-
s.icon ? (C(), J(
|
|
740
|
+
s.icon ? (C(), J(D(se), {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "vc-breadcrumbs-item__icon",
|
|
743
743
|
icon: s.icon,
|
|
@@ -746,16 +746,26 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
746
746
|
N("span", {
|
|
747
747
|
class: "vc-breadcrumbs-item__title",
|
|
748
748
|
title: r.value
|
|
749
|
-
}, he(r.value), 9,
|
|
749
|
+
}, he(r.value), 9, en)
|
|
750
750
|
], 2));
|
|
751
751
|
}
|
|
752
|
-
})
|
|
752
|
+
});
|
|
753
|
+
function Nt() {
|
|
754
|
+
return {
|
|
755
|
+
isMobile: F(Kr, O(!1)),
|
|
756
|
+
isDesktop: F(qr, O(!0)),
|
|
757
|
+
isPhone: F(Zr, O(!1)),
|
|
758
|
+
isTablet: F(Yr, O(!1)),
|
|
759
|
+
isTouch: F(Xr, !1)
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "onKeydown"], an = ["role", "aria-activedescendant"], sn = {
|
|
753
763
|
key: 0,
|
|
754
764
|
class: "vc-dropdown__items-container"
|
|
755
|
-
},
|
|
765
|
+
}, on = ["id", "role", "aria-selected", "onClick"], ln = {
|
|
756
766
|
key: 1,
|
|
757
767
|
class: "vc-dropdown__empty"
|
|
758
|
-
},
|
|
768
|
+
}, un = /* @__PURE__ */ L({
|
|
759
769
|
__name: "vc-dropdown",
|
|
760
770
|
props: {
|
|
761
771
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -784,7 +794,7 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
784
794
|
},
|
|
785
795
|
emits: ["update:modelValue", "item-click", "open", "close"],
|
|
786
796
|
setup(s, { emit: e }) {
|
|
787
|
-
const t = s, n = e, o = `vc-dropdown-${Ee()?.uid ?? Math.round(Math.random() * 1e4)}`, u =
|
|
797
|
+
const t = s, n = e, o = `vc-dropdown-${Ee()?.uid ?? Math.round(Math.random() * 1e4)}`, { isMobile: u } = Nt(), l = O(null), d = O(null), c = O(-1), { teleportTarget: f } = Vr({
|
|
788
798
|
to: v(() => t.teleportTo)
|
|
789
799
|
}), h = v(() => t.teleport ?? t.floating), m = v({
|
|
790
800
|
get: () => t.modelValue,
|
|
@@ -810,7 +820,7 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
810
820
|
} : {}), w = v(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), _ = v(() => t.role === "listbox" ? "option" : "menuitem"), T = v(() => {
|
|
811
821
|
if (!(c.value < 0 || c.value >= t.items.length))
|
|
812
822
|
return p(c.value);
|
|
813
|
-
}),
|
|
823
|
+
}), M = [
|
|
814
824
|
() => {
|
|
815
825
|
t.closeOnClickOutside && k("outside");
|
|
816
826
|
},
|
|
@@ -905,8 +915,8 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
905
915
|
{ deep: !0 }
|
|
906
916
|
), at(() => {
|
|
907
917
|
document.removeEventListener("keydown", ve);
|
|
908
|
-
}), (B, te) => (C(),
|
|
909
|
-
B.$slots.trigger ? (C(),
|
|
918
|
+
}), (B, te) => (C(), R("div", rn, [
|
|
919
|
+
B.$slots.trigger ? (C(), R("div", {
|
|
910
920
|
key: 0,
|
|
911
921
|
ref_key: "referenceEl",
|
|
912
922
|
ref: l,
|
|
@@ -927,9 +937,9 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
927
937
|
open: x,
|
|
928
938
|
close: U
|
|
929
939
|
})
|
|
930
|
-
], 40,
|
|
940
|
+
], 40, nn)) : H("", !0),
|
|
931
941
|
(C(), J(qt, {
|
|
932
|
-
to:
|
|
942
|
+
to: D(f),
|
|
933
943
|
defer: "",
|
|
934
944
|
disabled: !h.value
|
|
935
945
|
}, [
|
|
@@ -938,7 +948,7 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
938
948
|
appear: ""
|
|
939
949
|
}, {
|
|
940
950
|
default: fe(() => [
|
|
941
|
-
m.value ? it((C(),
|
|
951
|
+
m.value ? it((C(), R("div", {
|
|
942
952
|
key: 0,
|
|
943
953
|
id: o,
|
|
944
954
|
ref_key: "floatingEl",
|
|
@@ -960,19 +970,19 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
960
970
|
items: s.items,
|
|
961
971
|
close: U
|
|
962
972
|
}, () => [
|
|
963
|
-
s.items.length ? (C(),
|
|
964
|
-
(C(!0),
|
|
973
|
+
s.items.length ? (C(), R("div", sn, [
|
|
974
|
+
(C(!0), R(Fe, null, ot(s.items, (oe, Se) => (C(), R("div", {
|
|
965
975
|
id: p(Se),
|
|
966
976
|
key: y(oe, Se),
|
|
967
977
|
class: K(["vc-dropdown__item", {
|
|
968
978
|
"vc-dropdown__item--padded": s.padded,
|
|
969
|
-
"vc-dropdown__item--mobile":
|
|
979
|
+
"vc-dropdown__item--mobile": D(u),
|
|
970
980
|
"vc-dropdown__item--active": s.isItemActive?.(oe),
|
|
971
981
|
"vc-dropdown__item--focused": c.value === Se
|
|
972
982
|
}]),
|
|
973
983
|
role: _.value,
|
|
974
984
|
"aria-selected": s.role === "listbox" ? !!s.isItemActive?.(oe) : void 0,
|
|
975
|
-
onClick: (
|
|
985
|
+
onClick: (As) => $(oe, Se)
|
|
976
986
|
}, [
|
|
977
987
|
ye(B.$slots, "item", {
|
|
978
988
|
item: oe,
|
|
@@ -980,16 +990,16 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
980
990
|
}, () => [
|
|
981
991
|
pt(he(s.itemText?.(oe)), 1)
|
|
982
992
|
])
|
|
983
|
-
], 10,
|
|
984
|
-
])) : (C(),
|
|
993
|
+
], 10, on))), 128))
|
|
994
|
+
])) : (C(), R("div", ln, [
|
|
985
995
|
ye(B.$slots, "empty", {}, () => [
|
|
986
996
|
pt(he(s.emptyText), 1)
|
|
987
997
|
])
|
|
988
998
|
]))
|
|
989
999
|
])
|
|
990
1000
|
], 2)
|
|
991
|
-
], 46,
|
|
992
|
-
[
|
|
1001
|
+
], 46, an)), [
|
|
1002
|
+
[D($t), M]
|
|
993
1003
|
]) : H("", !0)
|
|
994
1004
|
]),
|
|
995
1005
|
_: 3
|
|
@@ -997,10 +1007,10 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
997
1007
|
], 8, ["to", "disabled"]))
|
|
998
1008
|
]));
|
|
999
1009
|
}
|
|
1000
|
-
}),
|
|
1010
|
+
}), cn = {
|
|
1001
1011
|
key: 2,
|
|
1002
1012
|
class: "vc-dropdown-item__icon-placeholder"
|
|
1003
|
-
},
|
|
1013
|
+
}, dn = { class: "vc-dropdown-item__title" }, hn = /* @__PURE__ */ L({
|
|
1004
1014
|
__name: "VcDropdownItem",
|
|
1005
1015
|
props: {
|
|
1006
1016
|
title: {},
|
|
@@ -1009,35 +1019,35 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
1009
1019
|
disabled: { type: Boolean, default: !1 }
|
|
1010
1020
|
},
|
|
1011
1021
|
setup(s) {
|
|
1012
|
-
return (e, t) => (C(),
|
|
1022
|
+
return (e, t) => (C(), R("div", {
|
|
1013
1023
|
class: K(["vc-dropdown-item", {
|
|
1014
1024
|
"vc-dropdown-item--active": s.active,
|
|
1015
1025
|
"vc-dropdown-item--disabled": s.disabled
|
|
1016
1026
|
}])
|
|
1017
1027
|
}, [
|
|
1018
|
-
s.active ? (C(), J(
|
|
1028
|
+
s.active ? (C(), J(D(se), {
|
|
1019
1029
|
key: 0,
|
|
1020
1030
|
icon: "lucide-check",
|
|
1021
1031
|
size: "xs",
|
|
1022
1032
|
class: "vc-dropdown-item__icon"
|
|
1023
|
-
})) : s.icon ? (C(), J(
|
|
1033
|
+
})) : s.icon ? (C(), J(D(se), {
|
|
1024
1034
|
key: 1,
|
|
1025
1035
|
icon: s.icon,
|
|
1026
1036
|
size: "xs",
|
|
1027
1037
|
class: "vc-dropdown-item__icon"
|
|
1028
|
-
}, null, 8, ["icon"])) : (C(),
|
|
1029
|
-
N("span",
|
|
1038
|
+
}, null, 8, ["icon"])) : (C(), R("span", cn)),
|
|
1039
|
+
N("span", dn, he(s.title), 1)
|
|
1030
1040
|
], 2));
|
|
1031
1041
|
}
|
|
1032
|
-
}),
|
|
1042
|
+
}), fn = {
|
|
1033
1043
|
key: 0,
|
|
1034
1044
|
"aria-label": "Breadcrumb",
|
|
1035
1045
|
class: "vc-breadcrumbs"
|
|
1036
|
-
},
|
|
1046
|
+
}, pn = ["data-item-key"], mn = {
|
|
1037
1047
|
key: 0,
|
|
1038
1048
|
class: "vc-breadcrumbs__item-separator",
|
|
1039
1049
|
"aria-hidden": "true"
|
|
1040
|
-
},
|
|
1050
|
+
}, vn = 36, gn = 60, bn = /* @__PURE__ */ L({
|
|
1041
1051
|
__name: "vc-breadcrumbs",
|
|
1042
1052
|
props: {
|
|
1043
1053
|
items: { default: () => [] },
|
|
@@ -1046,13 +1056,13 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
1046
1056
|
collapsed: { type: Boolean, default: !1 }
|
|
1047
1057
|
},
|
|
1048
1058
|
setup(s) {
|
|
1049
|
-
const e = s, t =
|
|
1059
|
+
const e = s, t = O(null), n = O(!1), r = zr({
|
|
1050
1060
|
containerRef: t,
|
|
1051
1061
|
items: Rt(e, "items"),
|
|
1052
1062
|
getItemKey: (f) => f.id,
|
|
1053
|
-
moreButtonWidth:
|
|
1063
|
+
moreButtonWidth: vn,
|
|
1054
1064
|
calculationStrategy: "reverse",
|
|
1055
|
-
initialItemWidth:
|
|
1065
|
+
initialItemWidth: gn
|
|
1056
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;
|
|
1057
1067
|
function d() {
|
|
1058
1068
|
n.value = !n.value;
|
|
@@ -1061,8 +1071,8 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
1061
1071
|
f.clickHandler?.(f.id);
|
|
1062
1072
|
}
|
|
1063
1073
|
return ne(l), (f, h) => {
|
|
1064
|
-
const m =
|
|
1065
|
-
return s.items && s.items.length ? (C(),
|
|
1074
|
+
const m = Ne("VcButton");
|
|
1075
|
+
return s.items && s.items.length ? (C(), R("nav", fn, [
|
|
1066
1076
|
N("ol", {
|
|
1067
1077
|
ref_key: "contentRef",
|
|
1068
1078
|
ref: t,
|
|
@@ -1070,7 +1080,7 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
1070
1080
|
"vc-breadcrumbs__content--separated": s.separated
|
|
1071
1081
|
}])
|
|
1072
1082
|
}, [
|
|
1073
|
-
u.value ? (C(), J(
|
|
1083
|
+
u.value ? (C(), J(D(un), {
|
|
1074
1084
|
key: 0,
|
|
1075
1085
|
items: o.value,
|
|
1076
1086
|
"model-value": n.value,
|
|
@@ -1101,7 +1111,7 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
1101
1111
|
])
|
|
1102
1112
|
]),
|
|
1103
1113
|
item: fe(({ item: b, click: S }) => [
|
|
1104
|
-
Z(
|
|
1114
|
+
Z(hn, {
|
|
1105
1115
|
title: typeof b.title == "string" ? b.title : b.title?.value ?? "",
|
|
1106
1116
|
icon: b.icon,
|
|
1107
1117
|
onClick: S
|
|
@@ -1109,29 +1119,29 @@ const Zr = ["title"], Yr = ["title"], Xr = /* @__PURE__ */ L({
|
|
|
1109
1119
|
]),
|
|
1110
1120
|
_: 3
|
|
1111
1121
|
}, 8, ["items", "model-value"])) : H("", !0),
|
|
1112
|
-
(C(!0),
|
|
1122
|
+
(C(!0), R(Fe, null, ot(a.value, (b, S) => (C(), R(Fe, {
|
|
1113
1123
|
key: b?.id ?? `breadcrumb-item-${S}`
|
|
1114
1124
|
}, [
|
|
1115
|
-
b && b.title ? (C(),
|
|
1125
|
+
b && b.title ? (C(), R("li", {
|
|
1116
1126
|
key: 0,
|
|
1117
1127
|
class: "vc-breadcrumbs__item-wrapper",
|
|
1118
1128
|
"data-item-key": b.id
|
|
1119
1129
|
}, [
|
|
1120
|
-
s.separated && S !== 0 ? (C(),
|
|
1121
|
-
Z(
|
|
1130
|
+
s.separated && S !== 0 ? (C(), R("span", mn, " / ")) : H("", !0),
|
|
1131
|
+
Z(tn, xe({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, b, {
|
|
1122
1132
|
current: S === a.value.length - 1,
|
|
1123
1133
|
"aria-current": S === a.value.length - 1 ? "page" : void 0,
|
|
1124
1134
|
variant: s.variant
|
|
1125
1135
|
}), null, 16, ["current", "aria-current", "variant"])
|
|
1126
|
-
], 8,
|
|
1136
|
+
], 8, pn)) : H("", !0)
|
|
1127
1137
|
], 64))), 128))
|
|
1128
1138
|
], 2)
|
|
1129
1139
|
])) : H("", !0);
|
|
1130
1140
|
};
|
|
1131
1141
|
}
|
|
1132
|
-
}),
|
|
1133
|
-
function
|
|
1134
|
-
if (typeof e == "string" &&
|
|
1142
|
+
}), yn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
1143
|
+
function xn(s, e) {
|
|
1144
|
+
if (typeof e == "string" && yn.test(e)) {
|
|
1135
1145
|
const t = new Date(e);
|
|
1136
1146
|
if (!isNaN(t.getTime()))
|
|
1137
1147
|
return t;
|
|
@@ -1145,7 +1155,7 @@ class V {
|
|
|
1145
1155
|
* Subclasses use this when parsing API responses.
|
|
1146
1156
|
* The dateReviver function is defined in File.Header.liquid template.
|
|
1147
1157
|
*/
|
|
1148
|
-
jsonParseReviver =
|
|
1158
|
+
jsonParseReviver = xn;
|
|
1149
1159
|
constructor() {
|
|
1150
1160
|
}
|
|
1151
1161
|
// Enforce always return empty string as baseUrl
|
|
@@ -1159,7 +1169,7 @@ class V {
|
|
|
1159
1169
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
1160
1170
|
}
|
|
1161
1171
|
}
|
|
1162
|
-
class
|
|
1172
|
+
class En extends V {
|
|
1163
1173
|
http;
|
|
1164
1174
|
baseUrl;
|
|
1165
1175
|
constructor(e, t) {
|
|
@@ -2475,7 +2485,7 @@ class _i extends V {
|
|
|
2475
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);
|
|
2476
2486
|
}
|
|
2477
2487
|
}
|
|
2478
|
-
class
|
|
2488
|
+
class wn extends V {
|
|
2479
2489
|
http;
|
|
2480
2490
|
baseUrl;
|
|
2481
2491
|
constructor(e, t) {
|
|
@@ -2531,7 +2541,7 @@ class bn extends V {
|
|
|
2531
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);
|
|
2532
2542
|
}
|
|
2533
2543
|
}
|
|
2534
|
-
class
|
|
2544
|
+
class Cn extends V {
|
|
2535
2545
|
http;
|
|
2536
2546
|
baseUrl;
|
|
2537
2547
|
constructor(e, t) {
|
|
@@ -3768,8 +3778,8 @@ class Si extends V {
|
|
|
3768
3778
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3769
3779
|
}
|
|
3770
3780
|
}
|
|
3771
|
-
var
|
|
3772
|
-
class
|
|
3781
|
+
var _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 || {}), Sn = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(Sn || {}), An = /* @__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))(An || {}), Un = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Un || {}), In = /* @__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))(In || {}), Tn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Tn || {}), Pn = /* @__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))(Pn || {}), On = /* @__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))(On || {}), Rn = /* @__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))(Rn || {}), kn = /* @__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))(kn || {}), Bn = /* @__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))(Bn || {}), $n = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))($n || {}), Nn = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Nn || {}), jn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(jn || {});
|
|
3782
|
+
class zn extends Error {
|
|
3773
3783
|
message;
|
|
3774
3784
|
status;
|
|
3775
3785
|
response;
|
|
@@ -3784,11 +3794,11 @@ class Bn extends Error {
|
|
|
3784
3794
|
}
|
|
3785
3795
|
}
|
|
3786
3796
|
function i(s, e, t, n, r) {
|
|
3787
|
-
throw r ?? new
|
|
3797
|
+
throw r ?? new zn(s, e, t, n, null);
|
|
3788
3798
|
}
|
|
3789
|
-
const Ke = j("use-external-provider"),
|
|
3790
|
-
const s = new
|
|
3791
|
-
|
|
3799
|
+
const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
|
|
3800
|
+
const s = new En(), e = sr(
|
|
3801
|
+
Fn,
|
|
3792
3802
|
{},
|
|
3793
3803
|
{
|
|
3794
3804
|
listenToStorageChanges: !0,
|
|
@@ -3833,8 +3843,8 @@ const Ke = j("use-external-provider"), $n = "externalSignIn", Nn = () => {
|
|
|
3833
3843
|
signOut: r,
|
|
3834
3844
|
getProviders: a
|
|
3835
3845
|
};
|
|
3836
|
-
}, dt = "vc_auth_data", z = j("use-user"), ue =
|
|
3837
|
-
function
|
|
3846
|
+
}, dt = "vc_auth_data", z = j("use-user"), ue = O();
|
|
3847
|
+
function Dn() {
|
|
3838
3848
|
try {
|
|
3839
3849
|
const s = localStorage.getItem(dt);
|
|
3840
3850
|
if (s)
|
|
@@ -3851,7 +3861,7 @@ function yt(s) {
|
|
|
3851
3861
|
z.error("Failed to store auth data:", e);
|
|
3852
3862
|
}
|
|
3853
3863
|
}
|
|
3854
|
-
function
|
|
3864
|
+
function Ln() {
|
|
3855
3865
|
try {
|
|
3856
3866
|
localStorage.removeItem(dt);
|
|
3857
3867
|
} catch (s) {
|
|
@@ -3888,7 +3898,7 @@ async function xt(s) {
|
|
|
3888
3898
|
}
|
|
3889
3899
|
}
|
|
3890
3900
|
function jt() {
|
|
3891
|
-
const s =
|
|
3901
|
+
const s = O(!1), e = O(null), { storage: t, signOut: n } = Mn(), r = new Cn(), a = v(() => ue.value?.userName != null);
|
|
3892
3902
|
async function o(g, P) {
|
|
3893
3903
|
let w = !1;
|
|
3894
3904
|
try {
|
|
@@ -3944,7 +3954,7 @@ function jt() {
|
|
|
3944
3954
|
}
|
|
3945
3955
|
}
|
|
3946
3956
|
async function c() {
|
|
3947
|
-
z.debug("signOut - Entry point"), ue.value = void 0,
|
|
3957
|
+
z.debug("signOut - Entry point"), ue.value = void 0, Ln(), e.value = null, t.value?.providerType ? await n(t.value.providerType) : r.logout();
|
|
3948
3958
|
}
|
|
3949
3959
|
let f = null;
|
|
3950
3960
|
async function h() {
|
|
@@ -3998,7 +4008,7 @@ function jt() {
|
|
|
3998
4008
|
}
|
|
3999
4009
|
const A = 60 * 1e3;
|
|
4000
4010
|
async function E() {
|
|
4001
|
-
if (z.debug("getAccessToken - Entry point"), e.value || (e.value =
|
|
4011
|
+
if (z.debug("getAccessToken - Entry point"), e.value || (e.value = Dn()), !e.value)
|
|
4002
4012
|
return z.debug("getAccessToken - No auth data available"), null;
|
|
4003
4013
|
const g = Date.now(), P = e.value.expires_at, w = P ? g >= P - A : !1;
|
|
4004
4014
|
if (z.debug("getAccessToken - Token status:", {
|
|
@@ -4037,7 +4047,7 @@ function jt() {
|
|
|
4037
4047
|
getAccessToken: E
|
|
4038
4048
|
};
|
|
4039
4049
|
}
|
|
4040
|
-
const
|
|
4050
|
+
const Gn = Bt(() => {
|
|
4041
4051
|
const s = jt();
|
|
4042
4052
|
return {
|
|
4043
4053
|
user: s.user,
|
|
@@ -4048,14 +4058,14 @@ const Fn = Bt(() => {
|
|
|
4048
4058
|
signOut: s.signOut,
|
|
4049
4059
|
getAccessToken: s.getAccessToken
|
|
4050
4060
|
};
|
|
4051
|
-
}),
|
|
4061
|
+
}), Jn = {
|
|
4052
4062
|
info: 5e3,
|
|
4053
4063
|
warning: 8e3,
|
|
4054
4064
|
error: !1,
|
|
4055
4065
|
// persistent
|
|
4056
4066
|
critical: !1
|
|
4057
4067
|
// persistent
|
|
4058
|
-
}, Ai = Symbol("NotificationContext"),
|
|
4068
|
+
}, Ai = Symbol("NotificationContext"), Wn = ["IndexProgressPushNotification"], Hn = Symbol("NotificationContainerState"), Kn = j("notification-instance"), re = {
|
|
4059
4069
|
"top-center": void 0,
|
|
4060
4070
|
"top-right": void 0,
|
|
4061
4071
|
"top-left": void 0,
|
|
@@ -4063,7 +4073,7 @@ const Fn = Bt(() => {
|
|
|
4063
4073
|
"bottom-right": void 0,
|
|
4064
4074
|
"bottom-left": void 0
|
|
4065
4075
|
};
|
|
4066
|
-
function
|
|
4076
|
+
function qn() {
|
|
4067
4077
|
function s(r, a, o) {
|
|
4068
4078
|
document.getElementById(a) && (re[o] = r);
|
|
4069
4079
|
}
|
|
@@ -4074,7 +4084,7 @@ function Jn() {
|
|
|
4074
4084
|
re[u]?.unmount(), document.getElementById(`notification-${u}`)?.remove(), re[u] = void 0;
|
|
4075
4085
|
}), Object.values(re).some((o) => o !== void 0) || document.querySelector(".notification")?.remove());
|
|
4076
4086
|
} catch (a) {
|
|
4077
|
-
|
|
4087
|
+
Kn.error("Failed to unmount notification component:", a);
|
|
4078
4088
|
}
|
|
4079
4089
|
}
|
|
4080
4090
|
function t() {
|
|
@@ -4093,14 +4103,14 @@ function Jn() {
|
|
|
4093
4103
|
};
|
|
4094
4104
|
}
|
|
4095
4105
|
const be = j("notification-container"), Q = {
|
|
4096
|
-
"top-center":
|
|
4097
|
-
"top-right":
|
|
4098
|
-
"top-left":
|
|
4099
|
-
"bottom-center":
|
|
4100
|
-
"bottom-right":
|
|
4101
|
-
"bottom-left":
|
|
4102
|
-
}, { clearContainer:
|
|
4103
|
-
function
|
|
4106
|
+
"top-center": O([]),
|
|
4107
|
+
"top-right": O([]),
|
|
4108
|
+
"top-left": O([]),
|
|
4109
|
+
"bottom-center": O([]),
|
|
4110
|
+
"bottom-right": O([]),
|
|
4111
|
+
"bottom-left": O([])
|
|
4112
|
+
}, { clearContainer: Zn, unmountComponent: Yn, saveInstance: Xn, getInstanceByPosition: Et } = qn();
|
|
4113
|
+
function Vn() {
|
|
4104
4114
|
const s = Zt({
|
|
4105
4115
|
timeout: 3e3,
|
|
4106
4116
|
pauseOnHover: !0,
|
|
@@ -4123,12 +4133,12 @@ function qn() {
|
|
|
4123
4133
|
async function a(l) {
|
|
4124
4134
|
const d = l.position || s.position;
|
|
4125
4135
|
if (!Et(d)) {
|
|
4126
|
-
const f = r(d), { default: h } = await import("./index-
|
|
4136
|
+
const f = r(d), { default: h } = await import("./index-WxG6Hq5V.js"), m = Yt(h, {
|
|
4127
4137
|
...l,
|
|
4128
4138
|
position: d
|
|
4129
4139
|
// Pass the position to the component
|
|
4130
4140
|
});
|
|
4131
|
-
m.provide(
|
|
4141
|
+
m.provide(Hn, { notificationContainers: Q, actions: u }), m.mount(f), Xn(m, f.id, d);
|
|
4132
4142
|
}
|
|
4133
4143
|
ne(() => {
|
|
4134
4144
|
l.updateId ? u.update(l) : u.add(l);
|
|
@@ -4150,13 +4160,13 @@ function qn() {
|
|
|
4150
4160
|
Object.entries(Q).forEach(([f, h]) => {
|
|
4151
4161
|
const m = h.value.find((b) => b.notificationId === l);
|
|
4152
4162
|
m && (d = m, c = f);
|
|
4153
|
-
}), c && (Q[c].value = Q[c].value.filter((f) => f.notificationId !== l), Q[c].value.length === 0 &&
|
|
4163
|
+
}), c && (Q[c].value = Q[c].value.filter((f) => f.notificationId !== l), Q[c].value.length === 0 && Yn(c), ne(() => {
|
|
4154
4164
|
d?.onClose && typeof d?.onClose == "function" && d.onClose(d.payload);
|
|
4155
4165
|
}));
|
|
4156
4166
|
}
|
|
4157
4167
|
},
|
|
4158
4168
|
clear() {
|
|
4159
|
-
|
|
4169
|
+
Zn(), Object.values(Q).forEach((l) => {
|
|
4160
4170
|
l.value = [];
|
|
4161
4171
|
});
|
|
4162
4172
|
},
|
|
@@ -4217,25 +4227,25 @@ function qn() {
|
|
|
4217
4227
|
const Ue = j("notification"), {
|
|
4218
4228
|
defaultOptions: we,
|
|
4219
4229
|
actions: de,
|
|
4220
|
-
getNotification:
|
|
4230
|
+
getNotification: Qn,
|
|
4221
4231
|
getAllNotifications: Qe,
|
|
4222
|
-
appendInstance:
|
|
4232
|
+
appendInstance: ea,
|
|
4223
4233
|
generateNotificationId: et,
|
|
4224
|
-
hasNotification:
|
|
4225
|
-
} =
|
|
4226
|
-
function
|
|
4234
|
+
hasNotification: ta
|
|
4235
|
+
} = Vn();
|
|
4236
|
+
function Te(s, e) {
|
|
4227
4237
|
return e = xe(
|
|
4228
4238
|
we,
|
|
4229
4239
|
e
|
|
4230
4240
|
), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId = et()), e = {
|
|
4231
4241
|
...e,
|
|
4232
4242
|
content: s
|
|
4233
|
-
},
|
|
4243
|
+
}, ea(e), e.notificationId;
|
|
4234
4244
|
}
|
|
4235
|
-
const Y = (s, e) =>
|
|
4236
|
-
Y.error = (s, e) =>
|
|
4237
|
-
Y.warning = (s, e) =>
|
|
4238
|
-
Y.success = (s, e) =>
|
|
4245
|
+
const Y = (s, e) => Te(s, { ...e, type: "default" });
|
|
4246
|
+
Y.error = (s, e) => Te(s, { ...e, type: "error" });
|
|
4247
|
+
Y.warning = (s, e) => Te(s, { ...e, type: "warning" });
|
|
4248
|
+
Y.success = (s, e) => Te(s, { ...e, type: "success" });
|
|
4239
4249
|
Y.clearAll = () => {
|
|
4240
4250
|
de.clear();
|
|
4241
4251
|
};
|
|
@@ -4243,9 +4253,9 @@ Y.remove = (s) => {
|
|
|
4243
4253
|
s ? de.dismiss(s) : de.clear();
|
|
4244
4254
|
};
|
|
4245
4255
|
Y.update = (s, e) => {
|
|
4246
|
-
if (!
|
|
4256
|
+
if (!ta(s))
|
|
4247
4257
|
return Ue.warn(`Cannot update: notification with ID ${s} not found`), s;
|
|
4248
|
-
const t =
|
|
4258
|
+
const t = Qn(String(s));
|
|
4249
4259
|
if (t)
|
|
4250
4260
|
if (e.position && e.position !== t.position) {
|
|
4251
4261
|
const n = {
|
|
@@ -4260,7 +4270,7 @@ Y.update = (s, e) => {
|
|
|
4260
4270
|
};
|
|
4261
4271
|
let r;
|
|
4262
4272
|
if (e.content !== void 0 ? (r = e.content, delete n.content) : t.content && (r = t.content, delete n.content), r)
|
|
4263
|
-
return de.remove(s),
|
|
4273
|
+
return de.remove(s), Te(r, n);
|
|
4264
4274
|
} else {
|
|
4265
4275
|
const n = {
|
|
4266
4276
|
...e,
|
|
@@ -4302,14 +4312,14 @@ Y.debug = () => {
|
|
|
4302
4312
|
defaultOptions: we
|
|
4303
4313
|
};
|
|
4304
4314
|
};
|
|
4305
|
-
const
|
|
4315
|
+
const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4306
4316
|
__proto__: null,
|
|
4307
4317
|
notification: Y
|
|
4308
4318
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4309
|
-
function
|
|
4319
|
+
function na(s, e) {
|
|
4310
4320
|
return s.severity ? typeof s.severity == "function" ? s.severity(e) : s.severity : "info";
|
|
4311
4321
|
}
|
|
4312
|
-
function
|
|
4322
|
+
function aa(s, e) {
|
|
4313
4323
|
const t = s.notifyType ?? "unknown";
|
|
4314
4324
|
if (e.groupBy) {
|
|
4315
4325
|
const n = s[e.groupBy] ?? "default";
|
|
@@ -4317,24 +4327,24 @@ function ea(s, e) {
|
|
|
4317
4327
|
}
|
|
4318
4328
|
return `${t}::${s.id}`;
|
|
4319
4329
|
}
|
|
4320
|
-
const
|
|
4321
|
-
function
|
|
4330
|
+
const sa = (s) => !!s.finished;
|
|
4331
|
+
function ia() {
|
|
4322
4332
|
const s = /* @__PURE__ */ new Map();
|
|
4323
4333
|
function e(r, a) {
|
|
4324
4334
|
if (!a.toast || a.toast.mode === "silent") return;
|
|
4325
|
-
const o =
|
|
4335
|
+
const o = na(a.toast, r);
|
|
4326
4336
|
a.toast.mode === "auto" ? t(r, o, a) : a.toast.mode === "progress" && n(r, o, a);
|
|
4327
4337
|
}
|
|
4328
4338
|
function t(r, a, o) {
|
|
4329
|
-
const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout :
|
|
4339
|
+
const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : Jn[a];
|
|
4330
4340
|
Y(r.title ?? "", {
|
|
4331
4341
|
timeout: u,
|
|
4332
4342
|
type: a === "critical" ? "error" : a === "info" ? "default" : a
|
|
4333
4343
|
});
|
|
4334
4344
|
}
|
|
4335
4345
|
function n(r, a, o) {
|
|
4336
|
-
const u = o.toast, l =
|
|
4337
|
-
if ((u.isComplete ??
|
|
4346
|
+
const u = o.toast, l = aa(r, o);
|
|
4347
|
+
if ((u.isComplete ?? sa)(r)) {
|
|
4338
4348
|
const f = s.get(l);
|
|
4339
4349
|
if (f) {
|
|
4340
4350
|
const h = u.completedType?.(r) ?? "success";
|
|
@@ -4362,15 +4372,15 @@ function ra() {
|
|
|
4362
4372
|
return { handle: e };
|
|
4363
4373
|
}
|
|
4364
4374
|
const wt = j("notification-store");
|
|
4365
|
-
function
|
|
4366
|
-
const e = /* @__PURE__ */ new Map(), t =
|
|
4375
|
+
function oa(s) {
|
|
4376
|
+
const e = /* @__PURE__ */ new Map(), t = O([]), n = O([]), r = /* @__PURE__ */ new Map();
|
|
4367
4377
|
let a = 0;
|
|
4368
|
-
const o =
|
|
4378
|
+
const o = ia().handle, u = new wn(), l = v(() => t.value.filter((E) => E.isNew).length), d = v(() => l.value > 0);
|
|
4369
4379
|
function c(E, g) {
|
|
4370
4380
|
e.set(E, g);
|
|
4371
4381
|
}
|
|
4372
4382
|
function f(E) {
|
|
4373
|
-
if (E.notifyType &&
|
|
4383
|
+
if (E.notifyType && Wn.includes(E.notifyType))
|
|
4374
4384
|
return;
|
|
4375
4385
|
let g = E.isNew;
|
|
4376
4386
|
const P = t.value.findIndex((T) => T.id === E.id);
|
|
@@ -4443,26 +4453,26 @@ function na(s) {
|
|
|
4443
4453
|
getByType: A
|
|
4444
4454
|
};
|
|
4445
4455
|
}
|
|
4446
|
-
let
|
|
4447
|
-
function
|
|
4456
|
+
let Re = null;
|
|
4457
|
+
function la() {
|
|
4448
4458
|
if (Ee()) {
|
|
4449
|
-
const s =
|
|
4459
|
+
const s = F(Lr, null);
|
|
4450
4460
|
if (s)
|
|
4451
|
-
return
|
|
4461
|
+
return Re = s, s;
|
|
4452
4462
|
}
|
|
4453
|
-
return
|
|
4463
|
+
return Re || (Re = oa()), Re;
|
|
4454
4464
|
}
|
|
4455
|
-
const
|
|
4465
|
+
const je = /* @__PURE__ */ new WeakMap();
|
|
4456
4466
|
function Ui(s, e, t) {
|
|
4457
|
-
|
|
4467
|
+
je.set(s, { timerId: e, notifId: t });
|
|
4458
4468
|
}
|
|
4459
|
-
function
|
|
4469
|
+
function ua(s) {
|
|
4460
4470
|
if (s && typeof s == "object") {
|
|
4461
|
-
const e =
|
|
4471
|
+
const e = je.get(s), t = "originalError" in s && s.originalError && typeof s.originalError == "object" ? s.originalError : void 0, n = e ?? (t ? je.get(t) : void 0), r = e ? s : t;
|
|
4462
4472
|
if (n && r)
|
|
4463
|
-
return clearTimeout(n.timerId), Promise.resolve().then(() =>
|
|
4473
|
+
return clearTimeout(n.timerId), Promise.resolve().then(() => ra).then(({ notification: a }) => {
|
|
4464
4474
|
a.remove(n.notifId);
|
|
4465
|
-
}),
|
|
4475
|
+
}), je.delete(r), !0;
|
|
4466
4476
|
}
|
|
4467
4477
|
return !1;
|
|
4468
4478
|
}
|
|
@@ -4484,7 +4494,7 @@ const We = Bt(() => {
|
|
|
4484
4494
|
signOut: s.signOut
|
|
4485
4495
|
};
|
|
4486
4496
|
});
|
|
4487
|
-
function
|
|
4497
|
+
function ca() {
|
|
4488
4498
|
const { user: s } = We();
|
|
4489
4499
|
function e(t) {
|
|
4490
4500
|
const n = s.value?.permissions ?? [];
|
|
@@ -4500,9 +4510,9 @@ function ia() {
|
|
|
4500
4510
|
hasAccess: e
|
|
4501
4511
|
};
|
|
4502
4512
|
}
|
|
4503
|
-
const
|
|
4504
|
-
function
|
|
4505
|
-
const s =
|
|
4513
|
+
const da = Symbol("AppInsightsOptions"), ha = Symbol("AppInsightsInstance");
|
|
4514
|
+
function fa() {
|
|
4515
|
+
const s = F(ha, null), { user: e } = We(), t = F(da, void 0);
|
|
4506
4516
|
function n() {
|
|
4507
4517
|
const r = t?.appName ? `[${t.appName}] ` : "", a = (l) => `${r}${l.name}`;
|
|
4508
4518
|
function o(l) {
|
|
@@ -4528,9 +4538,9 @@ function ua() {
|
|
|
4528
4538
|
appInsights: s
|
|
4529
4539
|
};
|
|
4530
4540
|
}
|
|
4531
|
-
const
|
|
4532
|
-
function
|
|
4533
|
-
const e =
|
|
4541
|
+
const pa = j("use-error-handler");
|
|
4542
|
+
function ma(s) {
|
|
4543
|
+
const e = O(null), t = Ee(), { appInsights: n } = fa(), { user: r } = We(), a = O(!1);
|
|
4534
4544
|
function o() {
|
|
4535
4545
|
e.value = null, t && t.emit("reset");
|
|
4536
4546
|
}
|
|
@@ -4545,7 +4555,7 @@ function da(s) {
|
|
|
4545
4555
|
userId: r.value?.id ?? "",
|
|
4546
4556
|
userName: r.value?.userName ?? ""
|
|
4547
4557
|
}
|
|
4548
|
-
}),
|
|
4558
|
+
}), pa.error("Captured Error:", l.originalError), t && t.emit("error", l), ne(() => {
|
|
4549
4559
|
a.value = !1;
|
|
4550
4560
|
}), !s;
|
|
4551
4561
|
}), {
|
|
@@ -4553,7 +4563,7 @@ function da(s) {
|
|
|
4553
4563
|
reset: o
|
|
4554
4564
|
};
|
|
4555
4565
|
}
|
|
4556
|
-
function
|
|
4566
|
+
function va(s) {
|
|
4557
4567
|
const e = j(`${s.name}-bus`), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
|
|
4558
4568
|
function r(h) {
|
|
4559
4569
|
const m = s.getKey(h);
|
|
@@ -4616,39 +4626,39 @@ function ha(s) {
|
|
|
4616
4626
|
function De(s) {
|
|
4617
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(kt(s, "title"))}`;
|
|
4618
4628
|
}
|
|
4619
|
-
const
|
|
4629
|
+
const Pe = O(/* @__PURE__ */ new Map()), pe = va({
|
|
4620
4630
|
name: "menu-service",
|
|
4621
4631
|
getKey: De,
|
|
4622
4632
|
registerIntoService: (s, e) => s.addMenuItem(e)
|
|
4623
4633
|
});
|
|
4624
|
-
function
|
|
4634
|
+
function ga(s) {
|
|
4625
4635
|
pe.preregister(s);
|
|
4626
4636
|
}
|
|
4627
4637
|
function Ii(s) {
|
|
4628
4638
|
pe.removePreregistered((e) => ht(e, s)), pe.broadcast((e) => e.removeMenuItem(s));
|
|
4629
4639
|
}
|
|
4630
4640
|
function Ti(s, e) {
|
|
4631
|
-
|
|
4641
|
+
Pe.value.set(s, e), pe.broadcast((t) => {
|
|
4632
4642
|
t.menuBadges.value.set(s, e);
|
|
4633
4643
|
});
|
|
4634
4644
|
}
|
|
4635
4645
|
function Pi(s) {
|
|
4636
4646
|
const e = pe.getFirstInstance();
|
|
4637
|
-
return e ? e.menuBadges.value.get(s) :
|
|
4647
|
+
return e ? e.menuBadges.value.get(s) : Pe.value.get(s);
|
|
4638
4648
|
}
|
|
4639
4649
|
function Oi(s) {
|
|
4640
|
-
|
|
4650
|
+
Pe.value.delete(s), pe.broadcast((e) => {
|
|
4641
4651
|
e.menuBadges.value.delete(s);
|
|
4642
4652
|
});
|
|
4643
4653
|
}
|
|
4644
4654
|
function Ri() {
|
|
4645
|
-
return pe.getFirstInstance()?.menuBadges ??
|
|
4655
|
+
return pe.getFirstInstance()?.menuBadges ?? Pe;
|
|
4646
4656
|
}
|
|
4647
|
-
const tt = 1 / 0,
|
|
4657
|
+
const tt = 1 / 0, ba = 1 / 0;
|
|
4648
4658
|
function ht(s, e) {
|
|
4649
4659
|
return De(s) === De(e);
|
|
4650
4660
|
}
|
|
4651
|
-
function
|
|
4661
|
+
function ya(s) {
|
|
4652
4662
|
return s.groupConfig ? {
|
|
4653
4663
|
groupId: s.groupConfig.id,
|
|
4654
4664
|
groupTitle: s.groupConfig.title || s.groupConfig.id,
|
|
@@ -4663,15 +4673,15 @@ function ma(s) {
|
|
|
4663
4673
|
groupPermissions: void 0
|
|
4664
4674
|
};
|
|
4665
4675
|
}
|
|
4666
|
-
function
|
|
4676
|
+
function xa(s, e) {
|
|
4667
4677
|
return (s.priority ?? tt) - (e.priority ?? tt);
|
|
4668
4678
|
}
|
|
4669
|
-
function
|
|
4670
|
-
const t = (n) => n.inGroupPriority ?? n.priority ??
|
|
4679
|
+
function Ea(s, e) {
|
|
4680
|
+
const t = (n) => n.inGroupPriority ?? n.priority ?? ba;
|
|
4671
4681
|
return t(s) - t(e);
|
|
4672
4682
|
}
|
|
4673
|
-
function
|
|
4674
|
-
const t =
|
|
4683
|
+
function wa(s, e) {
|
|
4684
|
+
const t = ya(s), n = {
|
|
4675
4685
|
...kt(s, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
4676
4686
|
}, r = e.get(t.groupId);
|
|
4677
4687
|
if (r) {
|
|
@@ -4697,21 +4707,21 @@ function ba(s, e) {
|
|
|
4697
4707
|
function Ct(s) {
|
|
4698
4708
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
4699
4709
|
for (const n of s)
|
|
4700
|
-
n.group || n.groupConfig ?
|
|
4701
|
-
return
|
|
4710
|
+
n.group || n.groupConfig ? wa(n, e) : n.title && t.set(De(n), { ...n });
|
|
4711
|
+
return Ca([...e.values(), ...t.values()]);
|
|
4702
4712
|
}
|
|
4703
|
-
function
|
|
4713
|
+
function Ca(s) {
|
|
4704
4714
|
return s.map(
|
|
4705
4715
|
(e) => ({
|
|
4706
4716
|
...e,
|
|
4707
|
-
children: e.children ? [...e.children].sort(
|
|
4717
|
+
children: e.children ? [...e.children].sort(Ea) : void 0
|
|
4708
4718
|
})
|
|
4709
|
-
).sort(
|
|
4719
|
+
).sort(xa);
|
|
4710
4720
|
}
|
|
4711
4721
|
function ki() {
|
|
4712
|
-
const s =
|
|
4722
|
+
const s = O([]);
|
|
4713
4723
|
let e = [];
|
|
4714
|
-
const t =
|
|
4724
|
+
const t = O(new Map(Pe.value));
|
|
4715
4725
|
function n(o) {
|
|
4716
4726
|
e.push(o), s.value = Ct(e);
|
|
4717
4727
|
}
|
|
@@ -4733,8 +4743,8 @@ const me = ur({
|
|
|
4733
4743
|
locale: "en",
|
|
4734
4744
|
fallbackLocale: "en",
|
|
4735
4745
|
formatFallbackMessages: !0
|
|
4736
|
-
}),
|
|
4737
|
-
function
|
|
4746
|
+
}), _a = j("use-breadcrumbs");
|
|
4747
|
+
function Sa() {
|
|
4738
4748
|
const s = lt([]);
|
|
4739
4749
|
function e(r) {
|
|
4740
4750
|
const a = s.value.findIndex((o) => o.id === r);
|
|
@@ -4747,7 +4757,7 @@ function Ea() {
|
|
|
4747
4757
|
try {
|
|
4748
4758
|
await r.clickHandler(u) !== !1 && e(u);
|
|
4749
4759
|
} catch (l) {
|
|
4750
|
-
|
|
4760
|
+
_a.error("Breadcrumb click handler failed:", l);
|
|
4751
4761
|
}
|
|
4752
4762
|
} : void 0
|
|
4753
4763
|
}, o = s.value.findIndex((u) => u.id === a.id);
|
|
@@ -4770,13 +4780,13 @@ const Le = /* @__PURE__ */ new Map();
|
|
|
4770
4780
|
function Bi(s, e) {
|
|
4771
4781
|
Le.has(s) && console.warn(`[defineBlade] Duplicate blade name: "${s}". Overwriting.`), Le.set(s, e);
|
|
4772
4782
|
}
|
|
4773
|
-
function
|
|
4783
|
+
function Aa(s) {
|
|
4774
4784
|
return Le.get(s);
|
|
4775
4785
|
}
|
|
4776
4786
|
function $i() {
|
|
4777
4787
|
return Le;
|
|
4778
4788
|
}
|
|
4779
|
-
const qe = j("blade-registry"),
|
|
4789
|
+
const qe = j("blade-registry"), Ua = Symbol("BladeRegistry");
|
|
4780
4790
|
function _t(s) {
|
|
4781
4791
|
return !(!s || typeof s != "function" && typeof s != "object");
|
|
4782
4792
|
}
|
|
@@ -4792,7 +4802,7 @@ function Ni(s) {
|
|
|
4792
4802
|
throw new Error(`BladeRegistry: Registration data must include a component for blade '${c}'`);
|
|
4793
4803
|
if (!_t(f.component))
|
|
4794
4804
|
throw new Error(`BladeRegistry: Invalid component provided for blade '${c}'`);
|
|
4795
|
-
const m =
|
|
4805
|
+
const m = Aa(c), b = f.component, S = m?.url ?? f.route, A = m?.isWorkspace ?? f.isWorkspace ?? !1, E = m?.routable ?? f.routable !== !1, g = m?.permissions ?? f.permissions, P = m?.menuItem ?? b.menuItem, w = new Map(e.value);
|
|
4796
4806
|
if (w.has(c)) {
|
|
4797
4807
|
if (!h)
|
|
4798
4808
|
throw new Error(
|
|
@@ -4811,7 +4821,7 @@ function Ni(s) {
|
|
|
4811
4821
|
routable: E,
|
|
4812
4822
|
permissions: g
|
|
4813
4823
|
};
|
|
4814
|
-
w.set(c, T), e.value = w, S && t.set(n(S), c), S && P &&
|
|
4824
|
+
w.set(c, T), e.value = w, S && t.set(n(S), c), S && P && ga({
|
|
4815
4825
|
...P,
|
|
4816
4826
|
url: S,
|
|
4817
4827
|
routeId: c,
|
|
@@ -4855,14 +4865,14 @@ function Ni(s) {
|
|
|
4855
4865
|
};
|
|
4856
4866
|
}
|
|
4857
4867
|
function zt() {
|
|
4858
|
-
const s =
|
|
4868
|
+
const s = F(Ua);
|
|
4859
4869
|
if (!s)
|
|
4860
4870
|
throw new Error(
|
|
4861
4871
|
"useBladeRegistry must be used after createBladeRegistry is called and provided with BladeRegistryKey."
|
|
4862
4872
|
);
|
|
4863
4873
|
return s;
|
|
4864
4874
|
}
|
|
4865
|
-
const
|
|
4875
|
+
const Ia = L({
|
|
4866
4876
|
name: "ErrorInterceptor",
|
|
4867
4877
|
props: {
|
|
4868
4878
|
capture: {
|
|
@@ -4879,17 +4889,17 @@ const _a = L({
|
|
|
4879
4889
|
}
|
|
4880
4890
|
},
|
|
4881
4891
|
setup(s, { slots: e }) {
|
|
4882
|
-
const t =
|
|
4892
|
+
const t = F(ct, void 0), n = F(Ge, void 0), r = !!(t && n), { error: a, reset: o } = ma(r || s.capture);
|
|
4883
4893
|
return r && X(a, (u) => {
|
|
4884
4894
|
const l = t.value.id;
|
|
4885
|
-
u ? (
|
|
4895
|
+
u ? (ua(u), n.setBladeError(l, u)) : n.clearBladeError(l);
|
|
4886
4896
|
}), () => e.default?.({
|
|
4887
4897
|
error: a.value,
|
|
4888
4898
|
reset: o
|
|
4889
4899
|
});
|
|
4890
4900
|
}
|
|
4891
|
-
}),
|
|
4892
|
-
function
|
|
4901
|
+
}), Ta = Ia;
|
|
4902
|
+
function Pa(s) {
|
|
4893
4903
|
const e = /* @__PURE__ */ new Map();
|
|
4894
4904
|
function t(a, o) {
|
|
4895
4905
|
e.set(a, o);
|
|
@@ -4919,7 +4929,7 @@ function Aa(s) {
|
|
|
4919
4929
|
};
|
|
4920
4930
|
}
|
|
4921
4931
|
function Ft() {
|
|
4922
|
-
const s =
|
|
4932
|
+
const s = F(ut);
|
|
4923
4933
|
if (!s)
|
|
4924
4934
|
throw new Error("[useBladeMessaging] BladeMessaging not found. Ensure BladeNavigationPlugin is installed.");
|
|
4925
4935
|
return s;
|
|
@@ -4936,27 +4946,16 @@ const Mt = /* @__PURE__ */ L({
|
|
|
4936
4946
|
},
|
|
4937
4947
|
emits: ["close", "parentCall"],
|
|
4938
4948
|
setup(s, { emit: e }) {
|
|
4939
|
-
const t = s, n = e, r = zt(), a =
|
|
4940
|
-
|
|
4949
|
+
const t = s, n = e, r = zt(), a = O(!1), o = O(), u = v(() => r.getBladeComponent(t.descriptor.name));
|
|
4950
|
+
Me(
|
|
4941
4951
|
ct,
|
|
4942
|
-
v(() => t.descriptor)
|
|
4943
|
-
), Ie(
|
|
4944
|
-
Dr,
|
|
4945
4952
|
v(() => ({
|
|
4946
|
-
|
|
4947
|
-
param: t.descriptor.param,
|
|
4948
|
-
options: t.descriptor.options,
|
|
4949
|
-
expandable: t.closable,
|
|
4950
|
-
// expandable when there are multiple blades
|
|
4953
|
+
...t.descriptor,
|
|
4951
4954
|
maximized: a.value,
|
|
4952
|
-
|
|
4953
|
-
navigation: void 0,
|
|
4954
|
-
// No longer VNode-based
|
|
4955
|
-
breadcrumbs: t.breadcrumbs,
|
|
4956
|
-
title: t.descriptor.title
|
|
4955
|
+
breadcrumbs: t.breadcrumbs
|
|
4957
4956
|
}))
|
|
4958
|
-
),
|
|
4959
|
-
|
|
4957
|
+
), Me(
|
|
4958
|
+
Dr,
|
|
4960
4959
|
v(() => t.backButton)
|
|
4961
4960
|
);
|
|
4962
4961
|
const l = Ft();
|
|
@@ -4985,9 +4984,9 @@ const Mt = /* @__PURE__ */ L({
|
|
|
4985
4984
|
function h() {
|
|
4986
4985
|
a.value = !1;
|
|
4987
4986
|
}
|
|
4988
|
-
return (m, b) => (C(), J(
|
|
4987
|
+
return (m, b) => (C(), J(D(Ta), { capture: !0 }, {
|
|
4989
4988
|
default: fe(({ error: S, reset: A }) => [
|
|
4990
|
-
u.value ? it((C(), J(
|
|
4989
|
+
u.value ? it((C(), J(ze(u.value), {
|
|
4991
4990
|
key: 0,
|
|
4992
4991
|
ref_key: "bladeInstanceRef",
|
|
4993
4992
|
ref: o,
|
|
@@ -5007,14 +5006,14 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5007
5006
|
_: 1
|
|
5008
5007
|
}));
|
|
5009
5008
|
}
|
|
5010
|
-
}),
|
|
5009
|
+
}), Oa = /* @__PURE__ */ L({
|
|
5011
5010
|
__name: "vc-mobile-back-button",
|
|
5012
5011
|
props: {
|
|
5013
5012
|
breadcrumbs: {},
|
|
5014
5013
|
onBack: { type: Function }
|
|
5015
5014
|
},
|
|
5016
5015
|
setup(s) {
|
|
5017
|
-
const e = s, t =
|
|
5016
|
+
const e = s, t = O(), n = O(!1), r = () => {
|
|
5018
5017
|
e.onBack();
|
|
5019
5018
|
};
|
|
5020
5019
|
ir(
|
|
@@ -5027,17 +5026,17 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5027
5026
|
const a = () => {
|
|
5028
5027
|
n.value = !1;
|
|
5029
5028
|
};
|
|
5030
|
-
return (o, u) => it((C(), J(
|
|
5029
|
+
return (o, u) => it((C(), J(bn, {
|
|
5031
5030
|
items: s.breadcrumbs,
|
|
5032
5031
|
collapsed: ""
|
|
5033
5032
|
}, {
|
|
5034
5033
|
trigger: fe(({ click: l }) => [
|
|
5035
|
-
Z(
|
|
5034
|
+
Z(D(pr), {
|
|
5036
5035
|
as: "button",
|
|
5037
5036
|
onTrigger: l
|
|
5038
5037
|
}, {
|
|
5039
5038
|
default: fe(() => [
|
|
5040
|
-
Z(
|
|
5039
|
+
Z(D(jr), {
|
|
5041
5040
|
ref_key: "buttonRef",
|
|
5042
5041
|
ref: t,
|
|
5043
5042
|
icon: "lucide-arrow-left",
|
|
@@ -5054,16 +5053,16 @@ const Mt = /* @__PURE__ */ L({
|
|
|
5054
5053
|
]),
|
|
5055
5054
|
_: 1
|
|
5056
5055
|
}, 8, ["items"])), [
|
|
5057
|
-
[
|
|
5056
|
+
[D($t), a]
|
|
5058
5057
|
]);
|
|
5059
5058
|
}
|
|
5060
5059
|
});
|
|
5061
|
-
let
|
|
5062
|
-
function
|
|
5063
|
-
return `blade_${++
|
|
5060
|
+
let Ra = 0;
|
|
5061
|
+
function ke() {
|
|
5062
|
+
return `blade_${++Ra}_${Math.random().toString(36).slice(2, 8)}`;
|
|
5064
5063
|
}
|
|
5065
|
-
function
|
|
5066
|
-
const t =
|
|
5064
|
+
function ka(s, e) {
|
|
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(() => {
|
|
5067
5066
|
for (let p = t.value.length - 1; p >= 0; p--)
|
|
5068
5067
|
if (t.value[p].visible) return t.value[p];
|
|
5069
5068
|
});
|
|
@@ -5098,7 +5097,7 @@ function Ta(s, e) {
|
|
|
5098
5097
|
}
|
|
5099
5098
|
h([...t.value]);
|
|
5100
5099
|
const U = {
|
|
5101
|
-
id:
|
|
5100
|
+
id: ke(),
|
|
5102
5101
|
name: p.name,
|
|
5103
5102
|
url: c(p.name),
|
|
5104
5103
|
// workspace blades don't have param when opened first
|
|
@@ -5122,7 +5121,7 @@ function Ta(s, e) {
|
|
|
5122
5121
|
return;
|
|
5123
5122
|
h(U);
|
|
5124
5123
|
const k = {
|
|
5125
|
-
id:
|
|
5124
|
+
id: ke(),
|
|
5126
5125
|
name: p.name,
|
|
5127
5126
|
url: c(p.name),
|
|
5128
5127
|
param: p.param,
|
|
@@ -5161,7 +5160,7 @@ function Ta(s, e) {
|
|
|
5161
5160
|
h(U);
|
|
5162
5161
|
}
|
|
5163
5162
|
const k = {
|
|
5164
|
-
id:
|
|
5163
|
+
id: ke(),
|
|
5165
5164
|
name: p.name,
|
|
5166
5165
|
url: c(p.name),
|
|
5167
5166
|
param: p.param,
|
|
@@ -5189,7 +5188,7 @@ function Ta(s, e) {
|
|
|
5189
5188
|
h(U);
|
|
5190
5189
|
}
|
|
5191
5190
|
const k = {
|
|
5192
|
-
id:
|
|
5191
|
+
id: ke(),
|
|
5193
5192
|
name: p.name,
|
|
5194
5193
|
url: c(p.name),
|
|
5195
5194
|
param: p.param,
|
|
@@ -5224,7 +5223,7 @@ function Ta(s, e) {
|
|
|
5224
5223
|
const x = [...t.value];
|
|
5225
5224
|
x[y] = { ...x[y], error: void 0 }, t.value = x;
|
|
5226
5225
|
}
|
|
5227
|
-
function
|
|
5226
|
+
function M(p, y) {
|
|
5228
5227
|
const x = t.value.findIndex((k) => k.id === p);
|
|
5229
5228
|
if (x === -1 || t.value[x].title === y) return;
|
|
5230
5229
|
const U = [...t.value];
|
|
@@ -5249,12 +5248,12 @@ function Ta(s, e) {
|
|
|
5249
5248
|
unregisterBeforeClose: w,
|
|
5250
5249
|
setBladeError: _,
|
|
5251
5250
|
clearBladeError: T,
|
|
5252
|
-
setBladeTitle:
|
|
5251
|
+
setBladeTitle: M,
|
|
5253
5252
|
_restoreStack: W
|
|
5254
5253
|
};
|
|
5255
5254
|
}
|
|
5256
5255
|
function Dt() {
|
|
5257
|
-
const s =
|
|
5256
|
+
const s = F(Ge);
|
|
5258
5257
|
if (!s)
|
|
5259
5258
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
5260
5259
|
return s;
|
|
@@ -5279,7 +5278,7 @@ function rt(s, e) {
|
|
|
5279
5278
|
u.visible && u.query && Object.assign(o, u.query);
|
|
5280
5279
|
return { path: a || "/", query: o };
|
|
5281
5280
|
}
|
|
5282
|
-
function
|
|
5281
|
+
function Ba(s, e) {
|
|
5283
5282
|
let t = s.split("/").filter(Boolean);
|
|
5284
5283
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
5285
5284
|
workspaceUrl: t[0],
|
|
@@ -5306,22 +5305,22 @@ function Lt(s, e) {
|
|
|
5306
5305
|
}
|
|
5307
5306
|
return { syncUrlPush: t, syncUrlReplace: n };
|
|
5308
5307
|
}
|
|
5309
|
-
const
|
|
5308
|
+
const $a = ["aria-label"], Na = {
|
|
5310
5309
|
key: 1,
|
|
5311
5310
|
class: "tw-overflow-hidden tw-flex tw-grow tw-basis-0 tw-relative tw-min-w-0"
|
|
5312
5311
|
}, Ut = /* @__PURE__ */ L({
|
|
5313
5312
|
__name: "vc-blade-navigation-new",
|
|
5314
5313
|
setup(s) {
|
|
5315
|
-
const { t: e } = cr(), t = Dt(), n = Ft(), r = dr(), { breadcrumbs: a, push: o, remove: u } =
|
|
5314
|
+
const { t: e } = cr(), t = Dt(), n = Ft(), r = dr(), { breadcrumbs: a, push: o, remove: u } = Sa(), { syncUrlReplace: l } = Lt(r, t), d = v(() => t.blades.value), c = v(() => t.activeBlade.value), f = v(() => d.value.length > 0), h = v(() => d.value.filter((_) => _.visible).length), { isMobile: m } = Nt(), b = F(Je, void 0), S = v(() => b?.isExpanded.value ?? !1), A = v(() => m.value || S.value ? 1 : 2);
|
|
5316
5315
|
function E(_, T) {
|
|
5317
5316
|
return _.visible ? T >= h.value - A.value : !1;
|
|
5318
5317
|
}
|
|
5319
5318
|
lr(
|
|
5320
5319
|
d,
|
|
5321
5320
|
(_) => {
|
|
5322
|
-
a.value.forEach((T) => T && u([T.id])), _.filter((T) => T.visible).forEach((T,
|
|
5321
|
+
a.value.forEach((T) => T && u([T.id])), _.filter((T) => T.visible).forEach((T, M) => {
|
|
5323
5322
|
o({
|
|
5324
|
-
id:
|
|
5323
|
+
id: M.toString(),
|
|
5325
5324
|
title: Rt({ title: T.name }, "title"),
|
|
5326
5325
|
clickHandler: async (W) => {
|
|
5327
5326
|
const p = parseInt(W), x = d.value.filter((U) => U.visible)[p + 1];
|
|
@@ -5346,15 +5345,15 @@ const Oa = ["aria-label"], Ra = {
|
|
|
5346
5345
|
}
|
|
5347
5346
|
async function P(_, T) {
|
|
5348
5347
|
try {
|
|
5349
|
-
const
|
|
5350
|
-
_.callback?.(
|
|
5351
|
-
} catch (
|
|
5352
|
-
console.warn("[VcBladeNavigation] Parent call failed:",
|
|
5348
|
+
const M = await n.callParent(T, _.method, _.args);
|
|
5349
|
+
_.callback?.(M);
|
|
5350
|
+
} catch (M) {
|
|
5351
|
+
console.warn("[VcBladeNavigation] Parent call failed:", M);
|
|
5353
5352
|
}
|
|
5354
5353
|
}
|
|
5355
5354
|
function w(_) {
|
|
5356
5355
|
if (!(_ <= 0))
|
|
5357
|
-
return Qt(
|
|
5356
|
+
return Qt(Oa, {
|
|
5358
5357
|
breadcrumbs: a.value.slice(0, _),
|
|
5359
5358
|
onBack: async () => {
|
|
5360
5359
|
const T = d.value[_];
|
|
@@ -5362,27 +5361,27 @@ const Oa = ["aria-label"], Ra = {
|
|
|
5362
5361
|
}
|
|
5363
5362
|
});
|
|
5364
5363
|
}
|
|
5365
|
-
return (_, T) => (C(),
|
|
5364
|
+
return (_, T) => (C(), R("div", {
|
|
5366
5365
|
class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
|
|
5367
5366
|
role: "region",
|
|
5368
|
-
"aria-label":
|
|
5367
|
+
"aria-label": D(e)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
|
|
5369
5368
|
}, [
|
|
5370
|
-
f.value ? (C(),
|
|
5371
|
-
(C(!0),
|
|
5372
|
-
key:
|
|
5373
|
-
descriptor:
|
|
5369
|
+
f.value ? (C(), R("div", Na, [
|
|
5370
|
+
(C(!0), R(Fe, null, ot(d.value, (M, W) => (C(), J(D(Mt), {
|
|
5371
|
+
key: M.id,
|
|
5372
|
+
descriptor: M,
|
|
5374
5373
|
closable: W > 0,
|
|
5375
|
-
expanded:
|
|
5376
|
-
visible: E(
|
|
5377
|
-
breadcrumbs:
|
|
5374
|
+
expanded: M.id === c.value?.id,
|
|
5375
|
+
visible: E(M, W),
|
|
5376
|
+
breadcrumbs: D(a).slice(0, W),
|
|
5378
5377
|
"back-button": h.value > 1 ? w(W) : void 0,
|
|
5379
5378
|
onClose: g,
|
|
5380
5379
|
onParentCall: P
|
|
5381
5380
|
}, null, 8, ["descriptor", "closable", "expanded", "visible", "breadcrumbs", "back-button"]))), 128))
|
|
5382
|
-
])) : (C(), J(
|
|
5383
|
-
], 8,
|
|
5381
|
+
])) : (C(), J(D(hr), { key: 0 }))
|
|
5382
|
+
], 8, $a));
|
|
5384
5383
|
}
|
|
5385
|
-
}),
|
|
5384
|
+
}), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5386
5385
|
__proto__: null,
|
|
5387
5386
|
VcBladeNavigation: Ut,
|
|
5388
5387
|
VcBladeNavigationV2: Ut,
|
|
@@ -5395,7 +5394,7 @@ function Ze(s, e) {
|
|
|
5395
5394
|
Object.keys(vt).forEach((s) => {
|
|
5396
5395
|
_e(s, vt[s]);
|
|
5397
5396
|
});
|
|
5398
|
-
const
|
|
5397
|
+
const za = (s, [e, t]) => {
|
|
5399
5398
|
if (!s?.files || !s.files?.length)
|
|
5400
5399
|
return !0;
|
|
5401
5400
|
const n = (o, u, l) => {
|
|
@@ -5418,8 +5417,8 @@ const Ba = (s, [e, t]) => {
|
|
|
5418
5417
|
return u === !1 || typeof u == "string" ? u : !0;
|
|
5419
5418
|
});
|
|
5420
5419
|
};
|
|
5421
|
-
_e("mindimensions",
|
|
5422
|
-
const
|
|
5420
|
+
_e("mindimensions", za);
|
|
5421
|
+
const Fa = (s, [e]) => {
|
|
5423
5422
|
if (!s?.files || !s.files?.length)
|
|
5424
5423
|
return !0;
|
|
5425
5424
|
const t = e * 1e3, n = (u) => u.size > t, r = [];
|
|
@@ -5427,19 +5426,19 @@ const $a = (s, [e]) => {
|
|
|
5427
5426
|
r.push(s.files[u]);
|
|
5428
5427
|
return r.map((u) => n(u)).find((u) => u === !0) ? me.global.t("messages.file_weight", { size: e }) : !0;
|
|
5429
5428
|
};
|
|
5430
|
-
_e("fileWeight",
|
|
5429
|
+
_e("fileWeight", Fa);
|
|
5431
5430
|
const Gt = (s, [e], t, n) => {
|
|
5432
5431
|
if (!s || typeof s == "string" && !s.length)
|
|
5433
5432
|
return !0;
|
|
5434
5433
|
let r, a;
|
|
5435
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;
|
|
5436
|
-
},
|
|
5437
|
-
_e("before",
|
|
5438
|
-
const
|
|
5439
|
-
_e("after",
|
|
5440
|
-
const
|
|
5441
|
-
_e("bigint",
|
|
5442
|
-
const nt = j("signalR"), Ae =
|
|
5435
|
+
}, Ma = (s, [e]) => Gt(s, [e], (t, n) => t < n, me.global.t("messages.before"));
|
|
5436
|
+
_e("before", Ma);
|
|
5437
|
+
const Da = (s, [e]) => Gt(s, [e], (t, n) => t > n, me.global.t("messages.after"));
|
|
5438
|
+
_e("after", Da);
|
|
5439
|
+
const La = (s) => Number.isSafeInteger(parseInt(s)) ? !0 : me.global.t("messages.bigint");
|
|
5440
|
+
_e("bigint", La);
|
|
5441
|
+
const nt = j("signalR"), Ae = O(), Ga = Symbol("updateSignalRCreator");
|
|
5443
5442
|
function It(s, e, t) {
|
|
5444
5443
|
s.off("SendSystemEvents"), t && (nt.debug("Setup handler for creator: ", t), s.on("SendSystemEvents", (n) => {
|
|
5445
5444
|
n.creator === t && e.ingest(n);
|
|
@@ -5448,7 +5447,7 @@ function It(s, e, t) {
|
|
|
5448
5447
|
const ji = {
|
|
5449
5448
|
install(s, e) {
|
|
5450
5449
|
Ae.value = e?.creator;
|
|
5451
|
-
const t =
|
|
5450
|
+
const t = la(), { isAuthenticated: n } = We();
|
|
5452
5451
|
let r = !1;
|
|
5453
5452
|
const a = yr("pushNotificationHub", { enableForVitest: !0 }) ?? new xr().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Er.Information).build(), o = () => {
|
|
5454
5453
|
a.start().then(() => {
|
|
@@ -5478,12 +5477,12 @@ const ji = {
|
|
|
5478
5477
|
{ immediate: !0 }
|
|
5479
5478
|
), s.config.globalProperties.$updateSignalRCreator = (l) => {
|
|
5480
5479
|
Ae.value = l;
|
|
5481
|
-
}, s.provide(
|
|
5480
|
+
}, s.provide(Ga, (l) => {
|
|
5482
5481
|
Ae.value = l;
|
|
5483
5482
|
});
|
|
5484
5483
|
}
|
|
5485
5484
|
};
|
|
5486
|
-
async function
|
|
5485
|
+
async function Ja(s, e, t, n, r, a) {
|
|
5487
5486
|
if (!t.workspaceUrl) return !1;
|
|
5488
5487
|
const o = e.getBladeByRoute(t.workspaceUrl);
|
|
5489
5488
|
if (!o)
|
|
@@ -5519,24 +5518,24 @@ async function Tt(s) {
|
|
|
5519
5518
|
}
|
|
5520
5519
|
return s.blades.value.length > 0 && s._restoreStack([]), !0;
|
|
5521
5520
|
}
|
|
5522
|
-
async function
|
|
5521
|
+
async function Wa(s, e, t, n, r) {
|
|
5523
5522
|
if (!s.matched.some((c) => c.meta?.root)) return;
|
|
5524
5523
|
if (!s.matched.some((c) => c.meta?.bladeCatchAll))
|
|
5525
5524
|
return e.blades.value.length > 0 && !await Tt(e) ? !1 : void 0;
|
|
5526
|
-
const o = Object.values(s.params)?.[0] || "", u =
|
|
5525
|
+
const o = Object.values(s.params)?.[0] || "", u = Ba(s.path, o);
|
|
5527
5526
|
if (!u.workspaceUrl)
|
|
5528
5527
|
return e.blades.value.length > 0 && !await Tt(e) ? !1 : void 0;
|
|
5529
5528
|
const l = Object.fromEntries(Object.entries(s.params).filter(([, c]) => typeof c == "string"));
|
|
5530
|
-
if (await
|
|
5529
|
+
if (await Ja(e, t, u, n, r, l)) {
|
|
5531
5530
|
const { path: c, query: f } = rt(o, e.blades.value);
|
|
5532
5531
|
return { path: c, query: f, replace: !0 };
|
|
5533
5532
|
}
|
|
5534
5533
|
}
|
|
5535
|
-
let Jt, Wt, Ht,
|
|
5534
|
+
let Jt, Wt, Ht, Ha;
|
|
5536
5535
|
const zi = {
|
|
5537
5536
|
install(s, e) {
|
|
5538
5537
|
const { router: t } = e;
|
|
5539
|
-
Object.entries(
|
|
5538
|
+
Object.entries(ja).forEach(([d, c]) => {
|
|
5540
5539
|
s.component(d, c);
|
|
5541
5540
|
}), Jt = {
|
|
5542
5541
|
router: e.router
|
|
@@ -5555,29 +5554,29 @@ const zi = {
|
|
|
5555
5554
|
console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
|
|
5556
5555
|
return;
|
|
5557
5556
|
}
|
|
5558
|
-
const { hasAccess: a } = s.runWithContext(() =>
|
|
5557
|
+
const { hasAccess: a } = s.runWithContext(() => ca()), o = ka(r, a);
|
|
5559
5558
|
s.provide(Ge, o), Wt = o;
|
|
5560
|
-
const u =
|
|
5561
|
-
s.provide(ut, u), Ht = u,
|
|
5559
|
+
const u = Pa(o);
|
|
5560
|
+
s.provide(ut, u), Ht = u, Ha = r;
|
|
5562
5561
|
const l = t.getRoutes().find((d) => d.meta?.root);
|
|
5563
5562
|
l && t.addRoute(l.name, {
|
|
5564
5563
|
path: ":pathMatch(.*)*",
|
|
5565
5564
|
component: { render: () => null },
|
|
5566
5565
|
meta: { bladeCatchAll: !0 }
|
|
5567
|
-
}), t.beforeEach((d) =>
|
|
5566
|
+
}), t.beforeEach((d) => Wa(d, o, r, a, t));
|
|
5568
5567
|
}
|
|
5569
|
-
},
|
|
5568
|
+
}, Ka = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
|
|
5570
5569
|
function G(s) {
|
|
5571
5570
|
throw new Error(`[vc-shell] ${s} requires blade context.
|
|
5572
|
-
${
|
|
5571
|
+
${Ka}`);
|
|
5573
5572
|
}
|
|
5574
|
-
function
|
|
5575
|
-
const s = (Ee() ?
|
|
5573
|
+
function qa() {
|
|
5574
|
+
const s = (Ee() ? F(Ge, void 0) : void 0) ?? Wt, e = (Ee() ? F(ut, void 0) : void 0) ?? Ht;
|
|
5576
5575
|
if (!s || !e)
|
|
5577
5576
|
throw new Error(
|
|
5578
5577
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
5579
5578
|
);
|
|
5580
|
-
const t = s, n = e, r = Ee() ?
|
|
5579
|
+
const t = s, n = e, r = Ee() ? F(ct, void 0) : void 0;
|
|
5581
5580
|
let a;
|
|
5582
5581
|
function o() {
|
|
5583
5582
|
if (a) return a;
|
|
@@ -5594,8 +5593,8 @@ function Ja() {
|
|
|
5594
5593
|
return;
|
|
5595
5594
|
}
|
|
5596
5595
|
b = !0;
|
|
5597
|
-
const $ = er(I) ? I :
|
|
5598
|
-
|
|
5596
|
+
const $ = er(I) ? I : O(I);
|
|
5597
|
+
Me(Mr, $);
|
|
5599
5598
|
}
|
|
5600
5599
|
async function A(I) {
|
|
5601
5600
|
const { isWorkspace: $, ...ee } = I;
|
|
@@ -5633,7 +5632,7 @@ function Ja() {
|
|
|
5633
5632
|
function T(I) {
|
|
5634
5633
|
r || G("exposeToChildren()"), n.exposeToChildren(r.value.id, I);
|
|
5635
5634
|
}
|
|
5636
|
-
function
|
|
5635
|
+
function M(I) {
|
|
5637
5636
|
r || G("onBeforeClose()"), t.registerBeforeClose(r.value.id, I);
|
|
5638
5637
|
}
|
|
5639
5638
|
function W(I) {
|
|
@@ -5677,14 +5676,14 @@ function Ja() {
|
|
|
5677
5676
|
coverWith: w,
|
|
5678
5677
|
callParent: _,
|
|
5679
5678
|
exposeToChildren: T,
|
|
5680
|
-
onBeforeClose:
|
|
5679
|
+
onBeforeClose: M,
|
|
5681
5680
|
onActivated: U,
|
|
5682
5681
|
onDeactivated: k,
|
|
5683
5682
|
setError: W,
|
|
5684
5683
|
clearError: p
|
|
5685
5684
|
};
|
|
5686
5685
|
}
|
|
5687
|
-
const
|
|
5686
|
+
const Za = {
|
|
5688
5687
|
url: "",
|
|
5689
5688
|
title: "Virto OZ",
|
|
5690
5689
|
width: 362,
|
|
@@ -5698,12 +5697,12 @@ const Wa = {
|
|
|
5698
5697
|
}, Di = {
|
|
5699
5698
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
5700
5699
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
5701
|
-
},
|
|
5702
|
-
function
|
|
5703
|
-
const s =
|
|
5704
|
-
s.value === "closed" && (s.value = "open",
|
|
5700
|
+
}, Ya = "ai-agent-toggle", Xa = "lucide-sparkles", Va = "AI Assistant", Be = j("ai-agent-panel");
|
|
5701
|
+
function Qa() {
|
|
5702
|
+
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", Be.debug("Panel opened"));
|
|
5705
5704
|
}, a = () => {
|
|
5706
|
-
s.value = "closed", e.value = !1,
|
|
5705
|
+
s.value = "closed", e.value = !1, Be.debug("Panel closed, reset initialized state");
|
|
5707
5706
|
};
|
|
5708
5707
|
return {
|
|
5709
5708
|
panelState: s,
|
|
@@ -5716,10 +5715,10 @@ function Za() {
|
|
|
5716
5715
|
s.value === "closed" ? r() : a();
|
|
5717
5716
|
},
|
|
5718
5717
|
expand: () => {
|
|
5719
|
-
s.value === "open" && (s.value = "expanded",
|
|
5718
|
+
s.value === "open" && (s.value = "expanded", Be.debug("Panel expanded"));
|
|
5720
5719
|
},
|
|
5721
5720
|
collapse: () => {
|
|
5722
|
-
s.value === "expanded" && (s.value = "open",
|
|
5721
|
+
s.value === "expanded" && (s.value = "open", Be.debug("Panel collapsed"));
|
|
5723
5722
|
},
|
|
5724
5723
|
resetInitialized: () => {
|
|
5725
5724
|
e.value = !1;
|
|
@@ -5735,8 +5734,8 @@ function Pt(s) {
|
|
|
5735
5734
|
param: s.param
|
|
5736
5735
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
5737
5736
|
}
|
|
5738
|
-
function
|
|
5739
|
-
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a =
|
|
5737
|
+
function es(s) {
|
|
5738
|
+
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a = O(/* @__PURE__ */ new Map()), o = () => {
|
|
5740
5739
|
const b = t();
|
|
5741
5740
|
return b ? a.value.get(b.id) ?? {
|
|
5742
5741
|
items: [],
|
|
@@ -5764,8 +5763,8 @@ function Ya(s) {
|
|
|
5764
5763
|
locale: n(),
|
|
5765
5764
|
blade: Pt(t()),
|
|
5766
5765
|
contextType: l.value,
|
|
5767
|
-
items:
|
|
5768
|
-
suggestions: d.value ?
|
|
5766
|
+
items: Oe(u.value),
|
|
5767
|
+
suggestions: d.value ? Oe(d.value) : void 0,
|
|
5769
5768
|
accessToken: b
|
|
5770
5769
|
};
|
|
5771
5770
|
},
|
|
@@ -5774,8 +5773,8 @@ function Ya(s) {
|
|
|
5774
5773
|
return {
|
|
5775
5774
|
blade: Pt(t()),
|
|
5776
5775
|
contextType: l.value,
|
|
5777
|
-
items:
|
|
5778
|
-
suggestions: d.value ?
|
|
5776
|
+
items: Oe(u.value),
|
|
5777
|
+
suggestions: d.value ? Oe(d.value) : void 0,
|
|
5779
5778
|
locale: n(),
|
|
5780
5779
|
accessToken: b
|
|
5781
5780
|
};
|
|
@@ -5783,7 +5782,7 @@ function Ya(s) {
|
|
|
5783
5782
|
};
|
|
5784
5783
|
}
|
|
5785
5784
|
const q = j("ai-agent-transport");
|
|
5786
|
-
function
|
|
5785
|
+
function ts(s) {
|
|
5787
5786
|
try {
|
|
5788
5787
|
const e = atob(s.content), t = new Array(e.length);
|
|
5789
5788
|
for (let o = 0; o < e.length; o++)
|
|
@@ -5794,8 +5793,8 @@ function Xa(s) {
|
|
|
5794
5793
|
q.error("Failed to download file:", e);
|
|
5795
5794
|
}
|
|
5796
5795
|
}
|
|
5797
|
-
function
|
|
5798
|
-
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = lt(null), o =
|
|
5796
|
+
function rs(s) {
|
|
5797
|
+
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = lt(null), o = O(!1), u = O(!1), l = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
|
5799
5798
|
function f(m, b) {
|
|
5800
5799
|
switch (m) {
|
|
5801
5800
|
case "PREVIEW_CHANGES": {
|
|
@@ -5819,7 +5818,7 @@ function Va(s) {
|
|
|
5819
5818
|
break;
|
|
5820
5819
|
case "DOWNLOAD_FILE": {
|
|
5821
5820
|
const A = b;
|
|
5822
|
-
A &&
|
|
5821
|
+
A && ts(A);
|
|
5823
5822
|
break;
|
|
5824
5823
|
}
|
|
5825
5824
|
case "APPLY_CHANGES": {
|
|
@@ -5922,8 +5921,8 @@ function Va(s) {
|
|
|
5922
5921
|
}
|
|
5923
5922
|
};
|
|
5924
5923
|
}
|
|
5925
|
-
const
|
|
5926
|
-
function
|
|
5924
|
+
const $e = j("ai-agent-service");
|
|
5925
|
+
function ns(s) {
|
|
5927
5926
|
const {
|
|
5928
5927
|
userGetter: e,
|
|
5929
5928
|
bladeGetter: t,
|
|
@@ -5933,12 +5932,12 @@ function Qa(s) {
|
|
|
5933
5932
|
reloadBlade: o,
|
|
5934
5933
|
initialConfig: u,
|
|
5935
5934
|
isEmbedded: l = !1
|
|
5936
|
-
} = s, d =
|
|
5935
|
+
} = s, d = O({ ...Za, ...u }), c = Qa(), f = es({
|
|
5937
5936
|
userGetter: e,
|
|
5938
5937
|
bladeGetter: t,
|
|
5939
5938
|
localeGetter: n,
|
|
5940
5939
|
tokenGetter: r
|
|
5941
|
-
}), h =
|
|
5940
|
+
}), h = rs({
|
|
5942
5941
|
getConfig: () => d.value,
|
|
5943
5942
|
isEmbedded: l,
|
|
5944
5943
|
navigateToBlade: a,
|
|
@@ -5951,13 +5950,13 @@ function Qa(s) {
|
|
|
5951
5950
|
if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
|
|
5952
5951
|
h.pendingInitContext.value = !1, c.isInitialized.value = !0;
|
|
5953
5952
|
const w = await f.buildInitPayload();
|
|
5954
|
-
h.sendToIframe({ type: "INIT_CONTEXT", payload: w }),
|
|
5953
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: w }), $e.debug("Flushed pending INIT_CONTEXT");
|
|
5955
5954
|
}
|
|
5956
5955
|
};
|
|
5957
5956
|
h.onChatReady(() => {
|
|
5958
5957
|
h.iframeRef.value?.contentWindow ? (c.isInitialized.value = !0, f.buildInitPayload().then((w) => {
|
|
5959
|
-
h.sendToIframe({ type: "INIT_CONTEXT", payload: w }),
|
|
5960
|
-
})) : (h.pendingInitContext.value = !0,
|
|
5958
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: w }), $e.info("Chatbot ready, sent INIT_CONTEXT");
|
|
5959
|
+
})) : (h.pendingInitContext.value = !0, $e.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
5961
5960
|
}), X(h.iframeRef, () => b()), X(
|
|
5962
5961
|
() => ({ currentBlade: m.value.currentBlade, items: m.value.items }),
|
|
5963
5962
|
async () => {
|
|
@@ -5975,14 +5974,14 @@ function Qa(s) {
|
|
|
5975
5974
|
);
|
|
5976
5975
|
const S = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.open(), A = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.close(), E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.toggle(), g = (w) => {
|
|
5977
5976
|
h.setIframeRef(w), b();
|
|
5978
|
-
}, P = (w, _, T,
|
|
5979
|
-
const { cleared: W } = f.setContextData(w, _, T,
|
|
5977
|
+
}, P = (w, _, T, M) => {
|
|
5978
|
+
const { cleared: W } = f.setContextData(w, _, T, M);
|
|
5980
5979
|
l && W && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
5981
5980
|
};
|
|
5982
5981
|
return h.startListening(), l && (h.sendToParent({
|
|
5983
5982
|
type: "EMBEDDED_APP_READY",
|
|
5984
5983
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
5985
|
-
}),
|
|
5984
|
+
}), $e.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
5986
5985
|
// State
|
|
5987
5986
|
panelState: c.panelState,
|
|
5988
5987
|
config: d,
|
|
@@ -6016,7 +6015,7 @@ function Qa(s) {
|
|
|
6016
6015
|
}
|
|
6017
6016
|
const ce = j("use-ai-agent");
|
|
6018
6017
|
function Li(s) {
|
|
6019
|
-
const e =
|
|
6018
|
+
const e = F(Gr), { user: t, getAccessToken: n } = Gn(), { openBlade: r } = qa(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = Dt(), l = s?.isEmbedded, d = ns({
|
|
6020
6019
|
userGetter: () => {
|
|
6021
6020
|
if (t.value)
|
|
6022
6021
|
return {
|
|
@@ -6061,13 +6060,13 @@ function Li(s) {
|
|
|
6061
6060
|
initialConfig: s?.config,
|
|
6062
6061
|
isEmbedded: l
|
|
6063
6062
|
});
|
|
6064
|
-
if (
|
|
6065
|
-
const f =
|
|
6063
|
+
if (Me(Je, d), ce.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
|
|
6064
|
+
const f = F(Jr, null);
|
|
6066
6065
|
f ? (f.registerToolbarItem(
|
|
6067
6066
|
{
|
|
6068
|
-
id:
|
|
6069
|
-
icon:
|
|
6070
|
-
title:
|
|
6067
|
+
id: Ya,
|
|
6068
|
+
icon: Xa,
|
|
6069
|
+
title: Va,
|
|
6071
6070
|
clickHandler: () => {
|
|
6072
6071
|
d.togglePanel();
|
|
6073
6072
|
}
|
|
@@ -6079,7 +6078,7 @@ function Li(s) {
|
|
|
6079
6078
|
return d;
|
|
6080
6079
|
}
|
|
6081
6080
|
function Gi() {
|
|
6082
|
-
const s =
|
|
6081
|
+
const s = F(Je);
|
|
6083
6082
|
if (!s)
|
|
6084
6083
|
throw ce.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Ur("AiAgentService");
|
|
6085
6084
|
return {
|
|
@@ -6113,11 +6112,11 @@ function Ji(s) {
|
|
|
6113
6112
|
}
|
|
6114
6113
|
};
|
|
6115
6114
|
}
|
|
6116
|
-
const
|
|
6115
|
+
const as = ["width", "height"], ss = ["clip-path"], is = {
|
|
6117
6116
|
key: 1,
|
|
6118
6117
|
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",
|
|
6119
6118
|
fill: "url(#virto-oz-gradient-animated)"
|
|
6120
|
-
},
|
|
6119
|
+
}, os = ["id"], ls = {
|
|
6121
6120
|
key: 1,
|
|
6122
6121
|
id: "virto-oz-gradient-animated",
|
|
6123
6122
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -6134,7 +6133,7 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6134
6133
|
},
|
|
6135
6134
|
setup(s) {
|
|
6136
6135
|
const e = v(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
6137
|
-
return (t, n) => (C(),
|
|
6136
|
+
return (t, n) => (C(), R("svg", {
|
|
6138
6137
|
width: s.width,
|
|
6139
6138
|
height: s.height,
|
|
6140
6139
|
viewBox: "0 0 99 108",
|
|
@@ -6146,7 +6145,7 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6146
6145
|
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",
|
|
6147
6146
|
fill: "white"
|
|
6148
6147
|
}, null, -1)),
|
|
6149
|
-
s.animated ? (C(),
|
|
6148
|
+
s.animated ? (C(), R("path", is)) : (C(), R("g", {
|
|
6150
6149
|
key: 0,
|
|
6151
6150
|
"clip-path": `url(#${e.value})`
|
|
6152
6151
|
}, [...n[0] || (n[0] = [
|
|
@@ -6171,7 +6170,7 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6171
6170
|
})
|
|
6172
6171
|
])
|
|
6173
6172
|
], -1)
|
|
6174
|
-
])], 8,
|
|
6173
|
+
])], 8, ss)),
|
|
6175
6174
|
n[4] || (n[4] = N("path", {
|
|
6176
6175
|
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",
|
|
6177
6176
|
fill: "white"
|
|
@@ -6198,19 +6197,19 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6198
6197
|
fill: "#6C6C6C"
|
|
6199
6198
|
}, null, -1)),
|
|
6200
6199
|
N("defs", null, [
|
|
6201
|
-
s.animated ? H("", !0) : (C(),
|
|
6200
|
+
s.animated ? H("", !0) : (C(), R("clipPath", {
|
|
6202
6201
|
key: 0,
|
|
6203
6202
|
id: e.value
|
|
6204
6203
|
}, [...n[1] || (n[1] = [
|
|
6205
6204
|
N("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)
|
|
6206
|
-
])], 8,
|
|
6207
|
-
s.animated ? (C(),
|
|
6205
|
+
])], 8, os)),
|
|
6206
|
+
s.animated ? (C(), R("linearGradient", ls, [...n[2] || (n[2] = [
|
|
6208
6207
|
tr('<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)
|
|
6209
6208
|
])])) : H("", !0)
|
|
6210
6209
|
])
|
|
6211
|
-
], 8,
|
|
6210
|
+
], 8, as));
|
|
6212
6211
|
}
|
|
6213
|
-
}),
|
|
6212
|
+
}), us = { class: "vc-ai-agent-header" }, cs = { class: "vc-ai-agent-header__icon" }, ds = { class: "vc-ai-agent-header__wrapper" }, hs = { class: "vc-ai-agent-header__content" }, fs = { class: "vc-ai-agent-header__title" }, ps = { class: "vc-ai-agent-header__controls" }, ms = /* @__PURE__ */ L({
|
|
6214
6213
|
__name: "VcAiAgentHeader",
|
|
6215
6214
|
props: {
|
|
6216
6215
|
title: {},
|
|
@@ -6219,78 +6218,78 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6219
6218
|
},
|
|
6220
6219
|
emits: ["close", "expand", "collapse"],
|
|
6221
6220
|
setup(s) {
|
|
6222
|
-
return (e, t) => (C(),
|
|
6223
|
-
N("div",
|
|
6221
|
+
return (e, t) => (C(), R("div", us, [
|
|
6222
|
+
N("div", cs, [
|
|
6224
6223
|
Z(Kt, {
|
|
6225
6224
|
width: 22,
|
|
6226
6225
|
height: 24,
|
|
6227
6226
|
"show-dots": ""
|
|
6228
6227
|
})
|
|
6229
6228
|
]),
|
|
6230
|
-
N("div",
|
|
6231
|
-
N("div",
|
|
6232
|
-
N("div",
|
|
6229
|
+
N("div", ds, [
|
|
6230
|
+
N("div", hs, [
|
|
6231
|
+
N("div", fs, he(s.title), 1)
|
|
6233
6232
|
])
|
|
6234
6233
|
]),
|
|
6235
|
-
N("div",
|
|
6236
|
-
s.isExpanded ? (C(),
|
|
6234
|
+
N("div", ps, [
|
|
6235
|
+
s.isExpanded ? (C(), R("div", {
|
|
6237
6236
|
key: 0,
|
|
6238
6237
|
class: "vc-ai-agent-header__button",
|
|
6239
6238
|
title: "Collapse",
|
|
6240
6239
|
onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
|
|
6241
6240
|
}, [
|
|
6242
|
-
Z(
|
|
6243
|
-
])) : (C(),
|
|
6241
|
+
Z(D(se), { icon: "lucide-minus" })
|
|
6242
|
+
])) : (C(), R("div", {
|
|
6244
6243
|
key: 1,
|
|
6245
6244
|
class: "vc-ai-agent-header__button",
|
|
6246
6245
|
title: "Expand",
|
|
6247
6246
|
onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
|
|
6248
6247
|
}, [
|
|
6249
|
-
Z(
|
|
6248
|
+
Z(D(se), { icon: "lucide-panel-top" })
|
|
6250
6249
|
])),
|
|
6251
6250
|
N("div", {
|
|
6252
6251
|
class: "vc-ai-agent-header__button",
|
|
6253
6252
|
title: "Close",
|
|
6254
6253
|
onClick: t[2] || (t[2] = (n) => e.$emit("close"))
|
|
6255
6254
|
}, [
|
|
6256
|
-
Z(
|
|
6255
|
+
Z(D(se), { icon: "lucide-x" })
|
|
6257
6256
|
])
|
|
6258
6257
|
])
|
|
6259
6258
|
]));
|
|
6260
6259
|
}
|
|
6261
|
-
}),
|
|
6260
|
+
}), vs = { class: "vc-ai-agent-loader" }, gs = { class: "vc-ai-agent-loader__content" }, bs = { class: "vc-ai-agent-loader__logo" }, ys = {
|
|
6262
6261
|
key: 0,
|
|
6263
6262
|
class: "vc-ai-agent-loader__text"
|
|
6264
|
-
},
|
|
6263
|
+
}, xs = /* @__PURE__ */ L({
|
|
6265
6264
|
__name: "VcAiAgentLoader",
|
|
6266
6265
|
props: {
|
|
6267
6266
|
text: {}
|
|
6268
6267
|
},
|
|
6269
6268
|
setup(s) {
|
|
6270
|
-
return (e, t) => (C(),
|
|
6271
|
-
N("div",
|
|
6272
|
-
N("div",
|
|
6269
|
+
return (e, t) => (C(), R("div", vs, [
|
|
6270
|
+
N("div", gs, [
|
|
6271
|
+
N("div", bs, [
|
|
6273
6272
|
Z(Kt, {
|
|
6274
6273
|
width: 80,
|
|
6275
6274
|
height: 87,
|
|
6276
6275
|
animated: ""
|
|
6277
6276
|
})
|
|
6278
6277
|
]),
|
|
6279
|
-
s.text ? (C(),
|
|
6278
|
+
s.text ? (C(), R("p", ys, he(s.text), 1)) : H("", !0)
|
|
6280
6279
|
])
|
|
6281
6280
|
]));
|
|
6282
6281
|
}
|
|
6283
|
-
}),
|
|
6282
|
+
}), Es = { class: "vc-ai-agent-iframe" }, ws = ["src"], Cs = {
|
|
6284
6283
|
key: 1,
|
|
6285
6284
|
class: "vc-ai-agent-iframe__placeholder"
|
|
6286
|
-
},
|
|
6285
|
+
}, _s = /* @__PURE__ */ L({
|
|
6287
6286
|
__name: "VcAiAgentIframe",
|
|
6288
6287
|
props: {
|
|
6289
6288
|
url: {}
|
|
6290
6289
|
},
|
|
6291
6290
|
emits: ["iframe-ready"],
|
|
6292
6291
|
setup(s, { emit: e }) {
|
|
6293
|
-
const t = j("ai-agent-iframe"), n = s, r = e, a =
|
|
6292
|
+
const t = j("ai-agent-iframe"), n = s, r = e, a = O(null), o = O(!0);
|
|
6294
6293
|
X(
|
|
6295
6294
|
a,
|
|
6296
6295
|
(l) => {
|
|
@@ -6306,17 +6305,17 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6306
6305
|
() => {
|
|
6307
6306
|
o.value = !0;
|
|
6308
6307
|
}
|
|
6309
|
-
), (l, d) => (C(),
|
|
6308
|
+
), (l, d) => (C(), R("div", Es, [
|
|
6310
6309
|
Z(st, { name: "fade" }, {
|
|
6311
6310
|
default: fe(() => [
|
|
6312
|
-
o.value && s.url ? (C(), J(
|
|
6311
|
+
o.value && s.url ? (C(), J(xs, {
|
|
6313
6312
|
key: 0,
|
|
6314
6313
|
text: l.$t("AI_AGENT.LOADING")
|
|
6315
6314
|
}, null, 8, ["text"])) : H("", !0)
|
|
6316
6315
|
]),
|
|
6317
6316
|
_: 1
|
|
6318
6317
|
}),
|
|
6319
|
-
s.url ? (C(),
|
|
6318
|
+
s.url ? (C(), R("iframe", {
|
|
6320
6319
|
key: 0,
|
|
6321
6320
|
ref_key: "iframeRef",
|
|
6322
6321
|
ref: a,
|
|
@@ -6325,8 +6324,8 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6325
6324
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
6326
6325
|
allow: "clipboard-read; clipboard-write",
|
|
6327
6326
|
onLoad: u
|
|
6328
|
-
}, null, 42,
|
|
6329
|
-
Z(
|
|
6327
|
+
}, null, 42, ws)) : (C(), R("div", Cs, [
|
|
6328
|
+
Z(D(se), {
|
|
6330
6329
|
icon: "lucide-sparkles",
|
|
6331
6330
|
size: "xl",
|
|
6332
6331
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
@@ -6335,10 +6334,10 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6335
6334
|
]))
|
|
6336
6335
|
]));
|
|
6337
6336
|
}
|
|
6338
|
-
}),
|
|
6337
|
+
}), Ss = { class: "vc-ai-agent-panel__content" }, Wi = /* @__PURE__ */ L({
|
|
6339
6338
|
__name: "VcAiAgentPanel",
|
|
6340
6339
|
setup(s) {
|
|
6341
|
-
const e =
|
|
6340
|
+
const e = F(Je), t = F(Hr, !1);
|
|
6342
6341
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
6343
6342
|
const n = v(
|
|
6344
6343
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
@@ -6351,14 +6350,14 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6351
6350
|
e?._setIframeRef(null);
|
|
6352
6351
|
}), (h, m) => (C(), J(st, { name: "ai-panel-slide" }, {
|
|
6353
6352
|
default: fe(() => [
|
|
6354
|
-
r.value ? (C(),
|
|
6353
|
+
r.value ? (C(), R("div", {
|
|
6355
6354
|
key: 0,
|
|
6356
6355
|
class: K(["vc-ai-agent-panel", {
|
|
6357
6356
|
"vc-ai-agent-panel--expanded": a.value
|
|
6358
6357
|
}]),
|
|
6359
6358
|
style: Ce(u.value)
|
|
6360
6359
|
}, [
|
|
6361
|
-
Z(
|
|
6360
|
+
Z(ms, {
|
|
6362
6361
|
title: n.value.title,
|
|
6363
6362
|
"is-expanded": a.value,
|
|
6364
6363
|
"items-count": o.value,
|
|
@@ -6366,8 +6365,8 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6366
6365
|
onExpand: d,
|
|
6367
6366
|
onCollapse: c
|
|
6368
6367
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
6369
|
-
N("div",
|
|
6370
|
-
Z(
|
|
6368
|
+
N("div", Ss, [
|
|
6369
|
+
Z(_s, {
|
|
6371
6370
|
url: n.value.url,
|
|
6372
6371
|
onIframeReady: f
|
|
6373
6372
|
}, null, 8, ["url"])
|
|
@@ -6379,155 +6378,155 @@ const es = ["width", "height"], ts = ["clip-path"], rs = {
|
|
|
6379
6378
|
}
|
|
6380
6379
|
});
|
|
6381
6380
|
export {
|
|
6382
|
-
|
|
6381
|
+
ai as $,
|
|
6383
6382
|
Fi as A,
|
|
6384
6383
|
Br as B,
|
|
6385
|
-
|
|
6386
|
-
|
|
6384
|
+
Nt as C,
|
|
6385
|
+
Za as D,
|
|
6387
6386
|
Mi as E,
|
|
6388
|
-
|
|
6389
|
-
|
|
6387
|
+
Mn as F,
|
|
6388
|
+
Jt as G,
|
|
6390
6389
|
Di as H,
|
|
6391
6390
|
Ur as I,
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6391
|
+
Wt as J,
|
|
6392
|
+
Ha as K,
|
|
6393
|
+
Ht as L,
|
|
6394
|
+
At as M,
|
|
6395
|
+
Hn as N,
|
|
6396
|
+
Lt as O,
|
|
6397
|
+
Gr as P,
|
|
6398
|
+
Zr as Q,
|
|
6399
|
+
Yr as R,
|
|
6401
6400
|
Si as S,
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6401
|
+
Kr as T,
|
|
6402
|
+
qr as U,
|
|
6403
|
+
Xr as V,
|
|
6404
|
+
Qs as W,
|
|
6406
6405
|
ci as X,
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6406
|
+
Vs as Y,
|
|
6407
|
+
Jr as Z,
|
|
6408
|
+
bn as _,
|
|
6410
6409
|
jr as a,
|
|
6411
6410
|
Ut as a$,
|
|
6412
|
-
|
|
6411
|
+
ri as a0,
|
|
6413
6412
|
ki as a1,
|
|
6414
|
-
|
|
6415
|
-
|
|
6413
|
+
ni as a2,
|
|
6414
|
+
Lr as a3,
|
|
6416
6415
|
Ni as a4,
|
|
6417
6416
|
zi as a5,
|
|
6418
6417
|
ji as a6,
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6418
|
+
da as a7,
|
|
6419
|
+
ha as a8,
|
|
6420
|
+
fa as a9,
|
|
6421
|
+
En as aA,
|
|
6423
6422
|
ae as aB,
|
|
6424
|
-
|
|
6423
|
+
ti as aC,
|
|
6425
6424
|
di as aD,
|
|
6426
6425
|
Ei as aE,
|
|
6427
|
-
|
|
6428
|
-
|
|
6426
|
+
kn as aF,
|
|
6427
|
+
An as aG,
|
|
6429
6428
|
wi as aH,
|
|
6430
|
-
|
|
6429
|
+
Zs as aI,
|
|
6431
6430
|
Ci as aJ,
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6431
|
+
li as aK,
|
|
6432
|
+
oi as aL,
|
|
6433
|
+
Xs as aM,
|
|
6435
6434
|
_i as aN,
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6435
|
+
Bn as aO,
|
|
6436
|
+
$n as aP,
|
|
6437
|
+
Un as aQ,
|
|
6438
|
+
Nn as aR,
|
|
6439
|
+
wn as aS,
|
|
6440
|
+
Ks as aT,
|
|
6441
|
+
Cn as aU,
|
|
6442
|
+
Hs as aV,
|
|
6443
|
+
In as aW,
|
|
6444
|
+
ui as aX,
|
|
6445
|
+
Tn as aY,
|
|
6446
|
+
jn as aZ,
|
|
6447
|
+
Ws as a_,
|
|
6448
|
+
zn as aa,
|
|
6449
|
+
si as ab,
|
|
6450
|
+
Wr as ac,
|
|
6452
6451
|
mi as ad,
|
|
6453
6452
|
V as ae,
|
|
6454
6453
|
vi as af,
|
|
6455
|
-
|
|
6454
|
+
Dr as ag,
|
|
6456
6455
|
Mr as ah,
|
|
6457
|
-
|
|
6456
|
+
qs as ai,
|
|
6458
6457
|
ut as aj,
|
|
6459
6458
|
Ge as ak,
|
|
6460
6459
|
gi as al,
|
|
6461
6460
|
hi as am,
|
|
6462
|
-
|
|
6461
|
+
ei as an,
|
|
6463
6462
|
bi as ao,
|
|
6464
6463
|
yi as ap,
|
|
6465
6464
|
ge as aq,
|
|
6466
|
-
|
|
6467
|
-
|
|
6465
|
+
ii as ar,
|
|
6466
|
+
Pn as as,
|
|
6468
6467
|
xi as at,
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6468
|
+
Rn as au,
|
|
6469
|
+
_n as av,
|
|
6470
|
+
On as aw,
|
|
6471
|
+
Hr as ax,
|
|
6472
|
+
Sn as ay,
|
|
6473
|
+
Ta as az,
|
|
6474
|
+
un as b,
|
|
6476
6475
|
Mt as b0,
|
|
6477
6476
|
jt as b1,
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6477
|
+
ga as b2,
|
|
6478
|
+
Da as b3,
|
|
6479
|
+
Ma as b4,
|
|
6480
|
+
La as b5,
|
|
6481
|
+
Fa as b6,
|
|
6483
6482
|
Sr as b7,
|
|
6484
6483
|
$i as b8,
|
|
6485
|
-
|
|
6484
|
+
Aa as b9,
|
|
6486
6485
|
Pi as ba,
|
|
6487
6486
|
Ri as bb,
|
|
6488
6487
|
Ir as bc,
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6488
|
+
Gs as bd,
|
|
6489
|
+
Js as be,
|
|
6490
|
+
za as bf,
|
|
6492
6491
|
Oi as bg,
|
|
6493
6492
|
Ii as bh,
|
|
6494
6493
|
Ti as bi,
|
|
6495
|
-
|
|
6494
|
+
Ga as bj,
|
|
6496
6495
|
Ft as bk,
|
|
6497
6496
|
Dt as bl,
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6497
|
+
Sa as bm,
|
|
6498
|
+
Vn as bn,
|
|
6499
|
+
ma as bo,
|
|
6500
|
+
qn as bp,
|
|
6501
|
+
Gn as bq,
|
|
6502
|
+
Ys as br,
|
|
6504
6503
|
pe as bs,
|
|
6505
|
-
|
|
6504
|
+
va as bt,
|
|
6506
6505
|
Li as bu,
|
|
6507
6506
|
Ze as bv,
|
|
6508
|
-
|
|
6509
|
-
|
|
6507
|
+
ra as bw,
|
|
6508
|
+
hn as c,
|
|
6510
6509
|
se as d,
|
|
6511
6510
|
Fr as e,
|
|
6512
|
-
|
|
6511
|
+
Vr as f,
|
|
6513
6512
|
Wi as g,
|
|
6514
6513
|
Ji as h,
|
|
6515
6514
|
Gi as i,
|
|
6516
6515
|
Je as j,
|
|
6517
|
-
|
|
6516
|
+
ct as k,
|
|
6518
6517
|
j as l,
|
|
6519
|
-
|
|
6518
|
+
la as m,
|
|
6520
6519
|
Ai as n,
|
|
6521
|
-
|
|
6520
|
+
Ua as o,
|
|
6522
6521
|
Ve as p,
|
|
6523
6522
|
Y as q,
|
|
6524
6523
|
me as r,
|
|
6525
6524
|
Ui as s,
|
|
6526
|
-
|
|
6525
|
+
ca as t,
|
|
6527
6526
|
zr as u,
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6527
|
+
pi as v,
|
|
6528
|
+
fi as w,
|
|
6529
|
+
Bi as x,
|
|
6530
|
+
qa as y,
|
|
6531
|
+
We as z
|
|
6533
6532
|
};
|