@vc-shell/framework 2.0.5 → 2.0.6-pr232.5b58c86
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 +6 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D5HgEXFw.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-Y09G7Gnw.js} +659 -720
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D5HgEXFw.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-Y09G7Gnw.js.map} +1 -1
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-HqgHfIV-.js → VcTableAdapter.vue_vue_type_style_index_0_lang-By-yf14g.js} +3368 -3345
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-By-yf14g.js.map +1 -0
- package/dist/chunks/index-B78ceaW1.js +45 -0
- package/dist/chunks/index-B78ceaW1.js.map +1 -0
- package/dist/chunks/vendor-lodash-es-D2n90GJy.js +1436 -0
- package/dist/chunks/vendor-lodash-es-D2n90GJy.js.map +1 -0
- package/dist/core/plugins/ai-agent/composables/index.d.ts +1 -1
- package/dist/core/plugins/ai-agent/composables/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +2 -2
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts +7 -18
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/constants.d.ts +0 -5
- package/dist/core/plugins/ai-agent/constants.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/index.d.ts +1 -1
- package/dist/core/plugins/ai-agent/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/public.d.ts +1 -1
- package/dist/core/plugins/ai-agent/public.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +1 -5
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/message-transport.d.ts +1 -3
- package/dist/core/plugins/ai-agent/services/message-transport.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/types.d.ts +1 -44
- package/dist/core/plugins/ai-agent/types.d.ts.map +1 -1
- package/dist/framework.js +8 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/panel-anchor-registry.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/panel-anchor-registry.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.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/VcTableAdapter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts +4 -3
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts +4 -3
- package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/composables/useFloatingPosition.d.ts +2 -2
- package/dist/ui/composables/useFloatingPosition.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-HqgHfIV-.js.map +0 -1
- package/dist/chunks/index-CacTeJdd.js +0 -117
- package/dist/chunks/index-CacTeJdd.js.map +0 -1
- package/dist/chunks/vendor-lodash-es-CfnUOh0o.js +0 -1490
- package/dist/chunks/vendor-lodash-es-CfnUOh0o.js.map +0 -1
- package/dist/core/plugins/ai-agent/utils/deep-merge-changes.d.ts +0 -16
- package/dist/core/plugins/ai-agent/utils/deep-merge-changes.d.ts.map +0 -1
- package/dist/core/plugins/ai-agent/utils/index.d.ts +0 -2
- package/dist/core/plugins/ai-agent/utils/index.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { c as
|
|
1
|
+
import { ref as G, computed as d, shallowRef as Be, watch as H, getCurrentInstance as Q, inject as L, isRef as ke, provide as Ce, defineComponent as M, openBlock as S, createElementBlock as j, createElementVNode as R, createCommentVNode as Z, createStaticVNode as Ge, onMounted as oe, normalizeStyle as Y, normalizeClass as K, toDisplayString as pe, markRaw as we, createBlock as X, resolveDynamicComponent as fe, mergeProps as ae, resolveComponent as ce, createVNode as W, unref as se, Transition as Ae, withCtx as Pe, onUnmounted as Fe } from "vue";
|
|
2
|
+
import { c as ee } from "./vendor-lodash-es-D2n90GJy.js";
|
|
3
3
|
import { u as De } from "./vendor-vueuse-core-CEdpDfzx.js";
|
|
4
4
|
import { j as Me } from "./vendor-vueuse-shared-BlCOXw5g.js";
|
|
5
5
|
import { L as Le } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
@@ -12,7 +12,7 @@ function We(i, e) {
|
|
|
12
12
|
}
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
class
|
|
15
|
+
class k {
|
|
16
16
|
authToken = "";
|
|
17
17
|
/**
|
|
18
18
|
* JSON parse reviver for converting date strings to Date objects.
|
|
@@ -33,7 +33,7 @@ class F {
|
|
|
33
33
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
class Ve extends
|
|
36
|
+
class Ve extends k {
|
|
37
37
|
http;
|
|
38
38
|
baseUrl;
|
|
39
39
|
constructor(e, t) {
|
|
@@ -140,7 +140,7 @@ class Ve extends F {
|
|
|
140
140
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
class
|
|
143
|
+
class dr extends k {
|
|
144
144
|
http;
|
|
145
145
|
baseUrl;
|
|
146
146
|
constructor(e, t) {
|
|
@@ -209,7 +209,7 @@ class fr extends F {
|
|
|
209
209
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class fr extends k {
|
|
213
213
|
http;
|
|
214
214
|
baseUrl;
|
|
215
215
|
constructor(e, t) {
|
|
@@ -239,7 +239,7 @@ class pr extends F {
|
|
|
239
239
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
class
|
|
242
|
+
class pr extends k {
|
|
243
243
|
http;
|
|
244
244
|
baseUrl;
|
|
245
245
|
constructor(e, t) {
|
|
@@ -381,7 +381,7 @@ class mr extends F {
|
|
|
381
381
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
class
|
|
384
|
+
class mr extends k {
|
|
385
385
|
http;
|
|
386
386
|
baseUrl;
|
|
387
387
|
constructor(e, t) {
|
|
@@ -582,7 +582,7 @@ class vr extends F {
|
|
|
582
582
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
class
|
|
585
|
+
class vr extends k {
|
|
586
586
|
http;
|
|
587
587
|
baseUrl;
|
|
588
588
|
constructor(e, t) {
|
|
@@ -611,7 +611,7 @@ class gr extends F {
|
|
|
611
611
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
class
|
|
614
|
+
class gr extends k {
|
|
615
615
|
http;
|
|
616
616
|
baseUrl;
|
|
617
617
|
constructor(e, t) {
|
|
@@ -663,7 +663,7 @@ class br extends F {
|
|
|
663
663
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
class
|
|
666
|
+
class br extends k {
|
|
667
667
|
http;
|
|
668
668
|
baseUrl;
|
|
669
669
|
constructor(e, t) {
|
|
@@ -938,7 +938,7 @@ class xr extends F {
|
|
|
938
938
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
class
|
|
941
|
+
class xr extends k {
|
|
942
942
|
http;
|
|
943
943
|
baseUrl;
|
|
944
944
|
constructor(e, t) {
|
|
@@ -971,7 +971,7 @@ class Er extends F {
|
|
|
971
971
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
class
|
|
974
|
+
class Er extends k {
|
|
975
975
|
http;
|
|
976
976
|
baseUrl;
|
|
977
977
|
constructor(e, t) {
|
|
@@ -1075,7 +1075,7 @@ class yr extends F {
|
|
|
1075
1075
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
class
|
|
1078
|
+
class yr extends k {
|
|
1079
1079
|
http;
|
|
1080
1080
|
baseUrl;
|
|
1081
1081
|
constructor(e, t) {
|
|
@@ -1531,7 +1531,7 @@ class _r extends F {
|
|
|
1531
1531
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
|
-
class
|
|
1534
|
+
class _r extends k {
|
|
1535
1535
|
http;
|
|
1536
1536
|
baseUrl;
|
|
1537
1537
|
constructor(e, t) {
|
|
@@ -1633,7 +1633,7 @@ class Ur extends F {
|
|
|
1633
1633
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
|
-
class
|
|
1636
|
+
class Ur extends k {
|
|
1637
1637
|
http;
|
|
1638
1638
|
baseUrl;
|
|
1639
1639
|
constructor(e, t) {
|
|
@@ -1689,7 +1689,7 @@ class Cr extends F {
|
|
|
1689
1689
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
class
|
|
1692
|
+
class Ke extends k {
|
|
1693
1693
|
http;
|
|
1694
1694
|
baseUrl;
|
|
1695
1695
|
constructor(e, t) {
|
|
@@ -2826,7 +2826,7 @@ class qe extends F {
|
|
|
2826
2826
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
class Tr extends
|
|
2829
|
+
class Tr extends k {
|
|
2830
2830
|
http;
|
|
2831
2831
|
baseUrl;
|
|
2832
2832
|
constructor(e, t) {
|
|
@@ -2954,7 +2954,7 @@ class Tr extends F {
|
|
|
2954
2954
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
|
-
class Sr extends
|
|
2957
|
+
class Sr extends k {
|
|
2958
2958
|
http;
|
|
2959
2959
|
baseUrl;
|
|
2960
2960
|
constructor(e, t) {
|
|
@@ -3223,7 +3223,7 @@ class Sr extends F {
|
|
|
3223
3223
|
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
|
-
var
|
|
3226
|
+
var qe = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(qe || {}), He = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(He || {}), Ze = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(Ze || {}), Xe = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(Xe || {}), Ye = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Ye || {}), Qe = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(Qe || {}), et = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(et || {});
|
|
3227
3227
|
class tt extends Error {
|
|
3228
3228
|
message;
|
|
3229
3229
|
status;
|
|
@@ -3252,7 +3252,7 @@ const xe = {
|
|
|
3252
3252
|
prefix: "@vc-shell/framework",
|
|
3253
3253
|
enabled: !0
|
|
3254
3254
|
};
|
|
3255
|
-
function
|
|
3255
|
+
function $(i) {
|
|
3256
3256
|
const e = { ...rt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? xe[r] >= xe[e.level] : !1;
|
|
3257
3257
|
return {
|
|
3258
3258
|
/**
|
|
@@ -3282,7 +3282,7 @@ function B(i) {
|
|
|
3282
3282
|
/**
|
|
3283
3283
|
* Create a child logger with additional context
|
|
3284
3284
|
*/
|
|
3285
|
-
child: (r) =>
|
|
3285
|
+
child: (r) => $(i ? `${i}:${r}` : r),
|
|
3286
3286
|
/**
|
|
3287
3287
|
* Set the log level for this logger instance
|
|
3288
3288
|
*/
|
|
@@ -3297,14 +3297,14 @@ function B(i) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
};
|
|
3299
3299
|
}
|
|
3300
|
-
const
|
|
3301
|
-
core:
|
|
3302
|
-
ui:
|
|
3303
|
-
shared:
|
|
3304
|
-
plugins:
|
|
3305
|
-
services:
|
|
3306
|
-
composables:
|
|
3307
|
-
}, he =
|
|
3300
|
+
const Cr = $(), wr = {
|
|
3301
|
+
core: $("core"),
|
|
3302
|
+
ui: $("ui"),
|
|
3303
|
+
shared: $("shared"),
|
|
3304
|
+
plugins: $("plugins"),
|
|
3305
|
+
services: $("services"),
|
|
3306
|
+
composables: $("composables")
|
|
3307
|
+
}, he = $("use-external-provider"), nt = "externalSignIn", at = () => {
|
|
3308
3308
|
const i = new Ve(), e = De(
|
|
3309
3309
|
nt,
|
|
3310
3310
|
{},
|
|
@@ -3322,16 +3322,16 @@ const wr = B(), Ar = {
|
|
|
3322
3322
|
const l = window.location.origin, c = window.location.pathname ?? t() ?? "/";
|
|
3323
3323
|
if (!o)
|
|
3324
3324
|
throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
|
|
3325
|
-
const
|
|
3326
|
-
|
|
3325
|
+
const p = new URL("/externalsignin", l);
|
|
3326
|
+
p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(p);
|
|
3327
3327
|
} catch (l) {
|
|
3328
3328
|
throw he.error("External sign-in failed:", l), l;
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
async function r(o) {
|
|
3332
3332
|
try {
|
|
3333
|
-
const l = window.location.origin, c = window.location.pathname ?? "/",
|
|
3334
|
-
|
|
3333
|
+
const l = window.location.origin, c = window.location.pathname ?? "/", p = new URL("/externalsignin/signout", l);
|
|
3334
|
+
p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(p);
|
|
3335
3335
|
} catch (l) {
|
|
3336
3336
|
throw he.error("External sign-out failed:", l), l;
|
|
3337
3337
|
}
|
|
@@ -3351,29 +3351,29 @@ const wr = B(), Ar = {
|
|
|
3351
3351
|
signOut: r,
|
|
3352
3352
|
getProviders: a
|
|
3353
3353
|
};
|
|
3354
|
-
}, me = "vc_auth_data",
|
|
3354
|
+
}, me = "vc_auth_data", C = $("use-user");
|
|
3355
3355
|
function st() {
|
|
3356
3356
|
try {
|
|
3357
3357
|
const i = localStorage.getItem(me);
|
|
3358
3358
|
if (i)
|
|
3359
3359
|
return JSON.parse(i);
|
|
3360
3360
|
} catch (i) {
|
|
3361
|
-
|
|
3361
|
+
C.error("Failed to read auth data from storage:", i);
|
|
3362
3362
|
}
|
|
3363
3363
|
return null;
|
|
3364
3364
|
}
|
|
3365
3365
|
function Ee(i) {
|
|
3366
3366
|
try {
|
|
3367
|
-
|
|
3367
|
+
C.debug("storeAuthData - Saving:", i), localStorage.setItem(me, JSON.stringify(i)), C.debug("storeAuthData - Saved successfully");
|
|
3368
3368
|
} catch (e) {
|
|
3369
|
-
|
|
3369
|
+
C.error("Failed to store auth data:", e);
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
3372
|
function it() {
|
|
3373
3373
|
try {
|
|
3374
3374
|
localStorage.removeItem(me);
|
|
3375
3375
|
} catch (i) {
|
|
3376
|
-
|
|
3376
|
+
C.error("Failed to clear auth data:", i);
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
3379
|
async function ye(i) {
|
|
@@ -3387,13 +3387,13 @@ async function ye(i) {
|
|
|
3387
3387
|
});
|
|
3388
3388
|
if (!t.ok) {
|
|
3389
3389
|
const c = await t.text();
|
|
3390
|
-
return
|
|
3390
|
+
return C.error("fetchToken - HTTP error:", t.status, t.statusText, c), null;
|
|
3391
3391
|
}
|
|
3392
3392
|
const n = await t.json();
|
|
3393
|
-
|
|
3393
|
+
C.debug("fetchToken - Response:", n);
|
|
3394
3394
|
const r = n.access_token, a = n.refresh_token, o = n.expires_in;
|
|
3395
3395
|
if (n.error || !r)
|
|
3396
|
-
return
|
|
3396
|
+
return C.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
|
|
3397
3397
|
const l = o ? Date.now() + o * 1e3 : null;
|
|
3398
3398
|
return {
|
|
3399
3399
|
token: r,
|
|
@@ -3402,157 +3402,157 @@ async function ye(i) {
|
|
|
3402
3402
|
expires_at: l
|
|
3403
3403
|
};
|
|
3404
3404
|
} catch (e) {
|
|
3405
|
-
return
|
|
3405
|
+
return C.error("fetchToken - Exception:", e), null;
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
3408
|
function ot() {
|
|
3409
|
-
const i =
|
|
3410
|
-
async function l(
|
|
3411
|
-
let
|
|
3409
|
+
const i = G(!1), e = G(), t = G(null), { storage: n, signOut: r } = at(), a = new Ke(), o = d(() => e.value?.userName != null);
|
|
3410
|
+
async function l(m, T) {
|
|
3411
|
+
let U = !1;
|
|
3412
3412
|
try {
|
|
3413
|
-
i.value = !0,
|
|
3414
|
-
token:
|
|
3413
|
+
i.value = !0, U = await a.validatePasswordResetToken(m, {
|
|
3414
|
+
token: T
|
|
3415
3415
|
});
|
|
3416
3416
|
} catch {
|
|
3417
3417
|
} finally {
|
|
3418
3418
|
i.value = !1;
|
|
3419
3419
|
}
|
|
3420
|
-
return
|
|
3420
|
+
return U;
|
|
3421
3421
|
}
|
|
3422
|
-
async function c(
|
|
3423
|
-
return a.validatePassword(
|
|
3422
|
+
async function c(m) {
|
|
3423
|
+
return a.validatePassword(m);
|
|
3424
3424
|
}
|
|
3425
|
-
async function m
|
|
3426
|
-
return a.resetPasswordByToken(
|
|
3427
|
-
newPassword:
|
|
3428
|
-
token:
|
|
3425
|
+
async function p(m, T, U) {
|
|
3426
|
+
return a.resetPasswordByToken(m, {
|
|
3427
|
+
newPassword: T,
|
|
3428
|
+
token: U
|
|
3429
3429
|
});
|
|
3430
3430
|
}
|
|
3431
|
-
async function
|
|
3432
|
-
|
|
3431
|
+
async function g(m, T) {
|
|
3432
|
+
C.debug("signIn - Entry point");
|
|
3433
3433
|
try {
|
|
3434
3434
|
i.value = !0;
|
|
3435
|
-
const
|
|
3436
|
-
if (
|
|
3437
|
-
return
|
|
3438
|
-
|
|
3439
|
-
const
|
|
3435
|
+
const U = await a.login({ userName: m, password: T });
|
|
3436
|
+
if (C.debug("signIn - Cookie login completed:", U), !U.succeeded)
|
|
3437
|
+
return U;
|
|
3438
|
+
C.debug("signIn - Requesting token...");
|
|
3439
|
+
const A = await ye({
|
|
3440
3440
|
grant_type: "password",
|
|
3441
|
-
username:
|
|
3442
|
-
password:
|
|
3441
|
+
username: m,
|
|
3442
|
+
password: T,
|
|
3443
3443
|
scope: "offline_access"
|
|
3444
3444
|
});
|
|
3445
|
-
|
|
3446
|
-
const
|
|
3447
|
-
if (
|
|
3448
|
-
return e.value =
|
|
3445
|
+
A && (t.value = A, Ee(t.value), C.debug("signIn - Token saved:", t.value));
|
|
3446
|
+
const F = await a.getCurrentUser();
|
|
3447
|
+
if (F)
|
|
3448
|
+
return e.value = F, U;
|
|
3449
3449
|
throw { succeeded: !1 };
|
|
3450
|
-
} catch (
|
|
3451
|
-
|
|
3452
|
-
let
|
|
3453
|
-
if (
|
|
3450
|
+
} catch (U) {
|
|
3451
|
+
C.error("signIn failed:", U);
|
|
3452
|
+
let A = U.message;
|
|
3453
|
+
if (U.response)
|
|
3454
3454
|
try {
|
|
3455
|
-
const
|
|
3456
|
-
|
|
3455
|
+
const F = JSON.parse(U.response);
|
|
3456
|
+
A = F.errorDescription || F.errors?.[0]?.description || F.error || A;
|
|
3457
3457
|
} catch {
|
|
3458
3458
|
}
|
|
3459
|
-
return { succeeded: !1, error:
|
|
3459
|
+
return { succeeded: !1, error: A, status: U.status };
|
|
3460
3460
|
} finally {
|
|
3461
3461
|
i.value = !1;
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
|
-
async function
|
|
3465
|
-
|
|
3464
|
+
async function h() {
|
|
3465
|
+
C.debug("signOut - Entry point"), e.value = void 0, it(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
|
|
3466
3466
|
}
|
|
3467
|
-
let
|
|
3468
|
-
async function
|
|
3469
|
-
return
|
|
3470
|
-
|
|
3467
|
+
let y = null;
|
|
3468
|
+
async function w() {
|
|
3469
|
+
return y || (y = (async () => {
|
|
3470
|
+
C.debug("loadUser - Entry point");
|
|
3471
3471
|
try {
|
|
3472
3472
|
i.value = !0, performance.mark("vc:auth-start");
|
|
3473
|
-
const [
|
|
3474
|
-
e.value =
|
|
3475
|
-
} catch (
|
|
3476
|
-
|
|
3473
|
+
const [m] = await Promise.all([a.getCurrentUser(), b()]);
|
|
3474
|
+
e.value = m, performance.mark("vc:auth-done"), C.debug("User details loaded:", e.value);
|
|
3475
|
+
} catch (m) {
|
|
3476
|
+
C.error("loadUser failed:", m);
|
|
3477
3477
|
} finally {
|
|
3478
|
-
i.value = !1,
|
|
3478
|
+
i.value = !1, y = null;
|
|
3479
3479
|
}
|
|
3480
3480
|
return { ...e.value };
|
|
3481
|
-
})(),
|
|
3481
|
+
})(), y);
|
|
3482
3482
|
}
|
|
3483
|
-
async function
|
|
3483
|
+
async function x(m) {
|
|
3484
3484
|
try {
|
|
3485
|
-
return i.value = !0, await a.requestPasswordReset(
|
|
3486
|
-
} catch (
|
|
3487
|
-
return { succeeded: !1, error:
|
|
3485
|
+
return i.value = !0, await a.requestPasswordReset(m), { succeeded: !0 };
|
|
3486
|
+
} catch (T) {
|
|
3487
|
+
return { succeeded: !1, error: T };
|
|
3488
3488
|
} finally {
|
|
3489
3489
|
i.value = !1;
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
async function
|
|
3493
|
-
let
|
|
3492
|
+
async function O(m, T) {
|
|
3493
|
+
let U;
|
|
3494
3494
|
try {
|
|
3495
3495
|
i.value = !0;
|
|
3496
|
-
const
|
|
3497
|
-
oldPassword:
|
|
3498
|
-
newPassword:
|
|
3496
|
+
const A = {
|
|
3497
|
+
oldPassword: m,
|
|
3498
|
+
newPassword: T
|
|
3499
3499
|
};
|
|
3500
|
-
|
|
3501
|
-
} catch (
|
|
3502
|
-
return { succeeded: !1, errors: [
|
|
3500
|
+
U = await a.changeCurrentUserPassword(A);
|
|
3501
|
+
} catch (A) {
|
|
3502
|
+
return { succeeded: !1, errors: [A.message] };
|
|
3503
3503
|
} finally {
|
|
3504
3504
|
i.value = !1;
|
|
3505
3505
|
}
|
|
3506
|
-
return
|
|
3506
|
+
return U;
|
|
3507
3507
|
}
|
|
3508
|
-
async function
|
|
3509
|
-
let
|
|
3508
|
+
async function N() {
|
|
3509
|
+
let m = null;
|
|
3510
3510
|
try {
|
|
3511
|
-
|
|
3512
|
-
} catch (
|
|
3513
|
-
throw
|
|
3511
|
+
m = await a.getLoginTypes();
|
|
3512
|
+
} catch (T) {
|
|
3513
|
+
throw C.error("getLoginType failed:", T), T;
|
|
3514
3514
|
}
|
|
3515
|
-
return
|
|
3516
|
-
}
|
|
3517
|
-
const
|
|
3518
|
-
async function
|
|
3519
|
-
if (
|
|
3520
|
-
return
|
|
3521
|
-
const
|
|
3522
|
-
if (
|
|
3515
|
+
return m;
|
|
3516
|
+
}
|
|
3517
|
+
const D = 60 * 1e3;
|
|
3518
|
+
async function b() {
|
|
3519
|
+
if (C.debug("getAccessToken - Entry point"), t.value || (t.value = st()), !t.value)
|
|
3520
|
+
return C.debug("getAccessToken - No auth data available"), null;
|
|
3521
|
+
const m = Date.now(), T = t.value.expires_at, U = T ? m >= T - D : !1;
|
|
3522
|
+
if (C.debug("getAccessToken - Token status:", {
|
|
3523
3523
|
hasToken: !!t.value.access_token,
|
|
3524
|
-
expiresAt:
|
|
3525
|
-
now: new Date(
|
|
3526
|
-
shouldRefresh:
|
|
3524
|
+
expiresAt: T ? new Date(T).toISOString() : "not set",
|
|
3525
|
+
now: new Date(m).toISOString(),
|
|
3526
|
+
shouldRefresh: U,
|
|
3527
3527
|
hasRefreshToken: !!t.value.refresh_token
|
|
3528
|
-
}),
|
|
3529
|
-
|
|
3530
|
-
const
|
|
3528
|
+
}), U && t.value.refresh_token) {
|
|
3529
|
+
C.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
3530
|
+
const A = await ye({
|
|
3531
3531
|
grant_type: "refresh_token",
|
|
3532
3532
|
refresh_token: t.value.refresh_token,
|
|
3533
3533
|
scope: "offline_access"
|
|
3534
3534
|
});
|
|
3535
|
-
|
|
3536
|
-
expiresAt:
|
|
3537
|
-
})) :
|
|
3535
|
+
A ? (A.refresh_token = A.refresh_token ?? t.value.refresh_token, t.value = A, Ee(t.value), C.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3536
|
+
expiresAt: A.expires_at ? new Date(A.expires_at).toISOString() : "not set"
|
|
3537
|
+
})) : C.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3538
3538
|
}
|
|
3539
3539
|
return t.value?.access_token ?? t.value?.token ?? null;
|
|
3540
3540
|
}
|
|
3541
3541
|
return {
|
|
3542
|
-
user:
|
|
3543
|
-
loading:
|
|
3544
|
-
isAdministrator:
|
|
3542
|
+
user: d(() => e.value),
|
|
3543
|
+
loading: d(() => i.value),
|
|
3544
|
+
isAdministrator: d(() => e.value?.isAdministrator),
|
|
3545
3545
|
isAuthenticated: o,
|
|
3546
|
-
loadUser:
|
|
3547
|
-
signIn:
|
|
3548
|
-
signOut:
|
|
3546
|
+
loadUser: w,
|
|
3547
|
+
signIn: g,
|
|
3548
|
+
signOut: h,
|
|
3549
3549
|
validateToken: l,
|
|
3550
3550
|
validatePassword: c,
|
|
3551
|
-
resetPasswordByToken:
|
|
3552
|
-
requestPasswordReset:
|
|
3553
|
-
changeUserPassword:
|
|
3554
|
-
getLoginType:
|
|
3555
|
-
getAccessToken:
|
|
3551
|
+
resetPasswordByToken: p,
|
|
3552
|
+
requestPasswordReset: x,
|
|
3553
|
+
changeUserPassword: O,
|
|
3554
|
+
getLoginType: N,
|
|
3555
|
+
getAccessToken: b
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
3558
|
const lt = Me(ot), ut = () => {
|
|
@@ -3566,26 +3566,26 @@ const lt = Me(ot), ut = () => {
|
|
|
3566
3566
|
signOut: i.signOut,
|
|
3567
3567
|
getAccessToken: i.getAccessToken
|
|
3568
3568
|
};
|
|
3569
|
-
}, Oe = Symbol("BladeStack"), ct = Symbol("BladeMessaging"), ht = Symbol("BladeDescriptor"),
|
|
3569
|
+
}, Oe = Symbol("BladeStack"), ct = Symbol("BladeMessaging"), ht = Symbol("BladeDescriptor"), Ar = Symbol("BladeMaximized"), dt = Symbol("BladeData"), ft = Symbol("BladeBanners"), Pr = Symbol("BladeBackButton"), Or = Symbol("NotificationStore"), Ir = Symbol("WidgetService"), Rr = Symbol("DashboardService"), jr = Symbol("MenuService"), $r = Symbol("SettingsMenuService"), Nr = Symbol("AppBarWidgetService"), zr = Symbol("AppBarMobileButtonsService"), pt = Symbol("LanguageService"), mt = Symbol("ToolbarService"), Br = Symbol("DynamicModules"), kr = Symbol("ModulesReady"), Gr = Symbol("ModulesLoadError"), Fr = Symbol("AppRootElement"), vt = Symbol("EmbeddedMode"), Dr = Symbol("ShellIndicators"), ve = Symbol("AiAgentService"), Mr = Symbol("IsMobile"), Lr = Symbol("IsDesktop"), Jr = Symbol("IsPhone"), Wr = Symbol("IsTablet"), Vr = Symbol("IsTouch"), Kr = Symbol("BladeRoutes"), qr = Symbol("InternalRoutes"), Hr = Symbol("CloseSettingsMenu"), Zr = Symbol("BladeContext"), Xr = Symbol("WidgetScope"), Yr = Symbol("BladeForm"), Qr = Symbol("BladeLoading"), gt = {
|
|
3570
3570
|
url: "",
|
|
3571
3571
|
title: "Virto OZ",
|
|
3572
3572
|
width: 362,
|
|
3573
3573
|
expandedWidth: 500,
|
|
3574
3574
|
allowedOrigins: ["*"]
|
|
3575
|
-
},
|
|
3575
|
+
}, en = "APP_AI_AGENT_URL", tn = {
|
|
3576
3576
|
EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
|
|
3577
3577
|
AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
|
|
3578
3578
|
AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
|
|
3579
3579
|
AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
|
|
3580
|
-
},
|
|
3580
|
+
}, rn = {
|
|
3581
3581
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
3582
3582
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
3583
|
-
}, bt = "ai-agent-toggle", xt = "lucide-sparkles", Et = "AI Assistant",
|
|
3583
|
+
}, bt = "ai-agent-toggle", xt = "lucide-sparkles", Et = "AI Assistant", te = $("ai-agent-panel");
|
|
3584
3584
|
function yt() {
|
|
3585
|
-
const i =
|
|
3586
|
-
i.value === "closed" && (i.value = "open",
|
|
3585
|
+
const i = G("closed"), e = G(!1), t = d(() => i.value !== "closed"), n = d(() => i.value === "expanded"), r = () => {
|
|
3586
|
+
i.value === "closed" && (i.value = "open", te.debug("Panel opened"));
|
|
3587
3587
|
}, a = () => {
|
|
3588
|
-
i.value = "closed", e.value = !1,
|
|
3588
|
+
i.value = "closed", e.value = !1, te.debug("Panel closed, reset initialized state");
|
|
3589
3589
|
};
|
|
3590
3590
|
return {
|
|
3591
3591
|
panelState: i,
|
|
@@ -3598,17 +3598,17 @@ function yt() {
|
|
|
3598
3598
|
i.value === "closed" ? r() : a();
|
|
3599
3599
|
},
|
|
3600
3600
|
expand: () => {
|
|
3601
|
-
i.value === "open" && (i.value = "expanded",
|
|
3601
|
+
i.value === "open" && (i.value = "expanded", te.debug("Panel expanded"));
|
|
3602
3602
|
},
|
|
3603
3603
|
collapse: () => {
|
|
3604
|
-
i.value === "expanded" && (i.value = "open",
|
|
3604
|
+
i.value === "expanded" && (i.value = "open", te.debug("Panel collapsed"));
|
|
3605
3605
|
},
|
|
3606
3606
|
resetInitialized: () => {
|
|
3607
3607
|
e.value = !1;
|
|
3608
3608
|
}
|
|
3609
3609
|
};
|
|
3610
3610
|
}
|
|
3611
|
-
const de =
|
|
3611
|
+
const de = $("ai-agent-context");
|
|
3612
3612
|
function _e(i) {
|
|
3613
3613
|
return i ? {
|
|
3614
3614
|
id: i.id,
|
|
@@ -3618,9 +3618,9 @@ function _e(i) {
|
|
|
3618
3618
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
3619
3619
|
}
|
|
3620
3620
|
function _t(i) {
|
|
3621
|
-
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = i, a =
|
|
3622
|
-
const
|
|
3623
|
-
return
|
|
3621
|
+
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = i, a = G(/* @__PURE__ */ new Map()), o = () => {
|
|
3622
|
+
const x = t();
|
|
3623
|
+
return x ? a.value.get(x.id) ?? {
|
|
3624
3624
|
items: [],
|
|
3625
3625
|
type: "list",
|
|
3626
3626
|
suggestions: void 0
|
|
@@ -3629,127 +3629,87 @@ function _t(i) {
|
|
|
3629
3629
|
type: "list",
|
|
3630
3630
|
suggestions: void 0
|
|
3631
3631
|
};
|
|
3632
|
-
}, l =
|
|
3632
|
+
}, l = d(() => o().items), c = d(() => o().type), p = d(() => o().suggestions), g = d(() => l.value.length);
|
|
3633
3633
|
return {
|
|
3634
3634
|
contextItems: l,
|
|
3635
3635
|
contextType: c,
|
|
3636
|
-
contextSuggestions:
|
|
3637
|
-
totalItemsCount:
|
|
3638
|
-
setContextData: (
|
|
3639
|
-
const
|
|
3640
|
-
return
|
|
3636
|
+
contextSuggestions: p,
|
|
3637
|
+
totalItemsCount: g,
|
|
3638
|
+
setContextData: (x, O, N, D) => {
|
|
3639
|
+
const b = t()?.id || D;
|
|
3640
|
+
return b ? x.length === 0 && !N ? (a.value.delete(b), de.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (a.value.set(b, { items: x, type: O, suggestions: N }), de.debug(`Context set for blade: ${b}, items: ${x.length}, type: ${O}`), { cleared: !1 }) : (de.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
3641
3641
|
},
|
|
3642
3642
|
buildInitPayload: async () => {
|
|
3643
|
-
const
|
|
3643
|
+
const x = r ? await r() ?? void 0 : void 0;
|
|
3644
3644
|
return {
|
|
3645
3645
|
userId: e()?.id || "",
|
|
3646
3646
|
locale: n(),
|
|
3647
3647
|
blade: _e(t()),
|
|
3648
3648
|
contextType: c.value,
|
|
3649
|
-
items:
|
|
3650
|
-
suggestions:
|
|
3651
|
-
accessToken:
|
|
3649
|
+
items: ee(l.value),
|
|
3650
|
+
suggestions: p.value ? ee(p.value) : void 0,
|
|
3651
|
+
accessToken: x
|
|
3652
3652
|
};
|
|
3653
3653
|
},
|
|
3654
3654
|
buildUpdatePayload: async () => {
|
|
3655
|
-
const
|
|
3655
|
+
const x = r ? await r() ?? void 0 : void 0;
|
|
3656
3656
|
return {
|
|
3657
3657
|
blade: _e(t()),
|
|
3658
3658
|
contextType: c.value,
|
|
3659
|
-
items:
|
|
3660
|
-
suggestions:
|
|
3659
|
+
items: ee(l.value),
|
|
3660
|
+
suggestions: p.value ? ee(p.value) : void 0,
|
|
3661
3661
|
locale: n(),
|
|
3662
|
-
accessToken:
|
|
3662
|
+
accessToken: x
|
|
3663
3663
|
};
|
|
3664
3664
|
}
|
|
3665
3665
|
};
|
|
3666
3666
|
}
|
|
3667
|
-
const
|
|
3667
|
+
const J = $("ai-agent-transport");
|
|
3668
3668
|
function Ut(i) {
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
t[o] = e.charCodeAt(o);
|
|
3673
|
-
const n = new Blob([new Uint8Array(t)], { type: i.contentType }), r = URL.createObjectURL(n), a = document.createElement("a");
|
|
3674
|
-
a.href = r, a.download = i.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), G.debug(`File downloaded: ${i.filename}`);
|
|
3675
|
-
} catch (e) {
|
|
3676
|
-
G.error("Failed to download file:", e);
|
|
3677
|
-
}
|
|
3678
|
-
}
|
|
3679
|
-
function Ct(i) {
|
|
3680
|
-
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = i, a = ze(null), o = D(!1), l = D(!1), c = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set();
|
|
3681
|
-
function p(v, C) {
|
|
3682
|
-
switch (v) {
|
|
3683
|
-
case "PREVIEW_CHANGES": {
|
|
3684
|
-
const x = C;
|
|
3685
|
-
m.size === 0 && G.warn("No preview changes handlers registered!"), m.forEach((R) => {
|
|
3686
|
-
try {
|
|
3687
|
-
R(x);
|
|
3688
|
-
} catch (g) {
|
|
3689
|
-
G.error("Error in preview handler:", g);
|
|
3690
|
-
}
|
|
3691
|
-
});
|
|
3692
|
-
break;
|
|
3693
|
-
}
|
|
3669
|
+
const { getConfig: e, isEmbedded: t, navigateToBlade: n } = i, r = Be(null), a = G(!1), o = G(!1), l = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
|
3670
|
+
function p(h, y) {
|
|
3671
|
+
switch (h) {
|
|
3694
3672
|
case "NAVIGATE_TO_APP": {
|
|
3695
|
-
const x =
|
|
3696
|
-
n && x?.bladeName && (n(x.bladeName, x.param, x.options),
|
|
3697
|
-
break;
|
|
3698
|
-
}
|
|
3699
|
-
case "RELOAD_BLADE":
|
|
3700
|
-
r && (r(), G.debug("Blade reload requested"));
|
|
3701
|
-
break;
|
|
3702
|
-
case "DOWNLOAD_FILE": {
|
|
3703
|
-
const x = C;
|
|
3704
|
-
x && Ut(x);
|
|
3705
|
-
break;
|
|
3706
|
-
}
|
|
3707
|
-
case "APPLY_CHANGES": {
|
|
3708
|
-
const x = C;
|
|
3709
|
-
G.warn("APPLY_CHANGES received but not implemented:", x?.changes);
|
|
3710
|
-
break;
|
|
3711
|
-
}
|
|
3712
|
-
case "CHAT_ERROR": {
|
|
3713
|
-
const x = C;
|
|
3714
|
-
G.error(`Chatbot error [${x?.code}]: ${x?.message}`);
|
|
3673
|
+
const x = y;
|
|
3674
|
+
n && x?.bladeName && (n(x.bladeName, x.param, x.options), J.debug(`Navigation requested to: ${x.bladeName}`));
|
|
3715
3675
|
break;
|
|
3716
3676
|
}
|
|
3717
3677
|
}
|
|
3718
|
-
const
|
|
3719
|
-
type:
|
|
3720
|
-
payload:
|
|
3678
|
+
const w = {
|
|
3679
|
+
type: h,
|
|
3680
|
+
payload: y,
|
|
3721
3681
|
timestamp: Date.now()
|
|
3722
3682
|
};
|
|
3723
|
-
|
|
3683
|
+
l.forEach((x) => {
|
|
3724
3684
|
try {
|
|
3725
|
-
x(
|
|
3726
|
-
} catch (
|
|
3727
|
-
|
|
3685
|
+
x(w);
|
|
3686
|
+
} catch (O) {
|
|
3687
|
+
J.error("Handler error:", O);
|
|
3728
3688
|
}
|
|
3729
3689
|
});
|
|
3730
3690
|
}
|
|
3731
|
-
function
|
|
3732
|
-
const
|
|
3733
|
-
if (!
|
|
3691
|
+
function g(h) {
|
|
3692
|
+
const w = e().allowedOrigins || ["*"];
|
|
3693
|
+
if (!w.includes("*") && !w.includes(h.origin))
|
|
3734
3694
|
return;
|
|
3735
|
-
const x =
|
|
3695
|
+
const x = h.data;
|
|
3736
3696
|
if (!(!x?.type || typeof x.type != "string"))
|
|
3737
|
-
switch (
|
|
3697
|
+
switch (J.debug(`Message received: ${x.type}`), x.type) {
|
|
3738
3698
|
// Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
|
|
3739
3699
|
case "AI_CHAT_MESSAGE": {
|
|
3740
3700
|
if (t) {
|
|
3741
|
-
const
|
|
3742
|
-
|
|
3701
|
+
const O = x.payload;
|
|
3702
|
+
O?.type && p(O.type, O.payload);
|
|
3743
3703
|
}
|
|
3744
3704
|
return;
|
|
3745
3705
|
}
|
|
3746
3706
|
// Normal: chatbot signals it's ready
|
|
3747
3707
|
case "CHAT_READY":
|
|
3748
|
-
|
|
3708
|
+
c.forEach((O) => {
|
|
3749
3709
|
try {
|
|
3750
|
-
|
|
3751
|
-
} catch (
|
|
3752
|
-
|
|
3710
|
+
O();
|
|
3711
|
+
} catch (N) {
|
|
3712
|
+
J.error("ChatReady handler error:", N);
|
|
3753
3713
|
}
|
|
3754
3714
|
});
|
|
3755
3715
|
break;
|
|
@@ -3760,51 +3720,46 @@ function Ct(i) {
|
|
|
3760
3720
|
}
|
|
3761
3721
|
}
|
|
3762
3722
|
return {
|
|
3763
|
-
iframeRef:
|
|
3764
|
-
pendingInitContext:
|
|
3765
|
-
isListenerRegistered:
|
|
3766
|
-
setIframeRef(
|
|
3767
|
-
|
|
3723
|
+
iframeRef: r,
|
|
3724
|
+
pendingInitContext: a,
|
|
3725
|
+
isListenerRegistered: o,
|
|
3726
|
+
setIframeRef(h) {
|
|
3727
|
+
r.value = h, J.debug("Iframe ref set:", h ? "available" : "null");
|
|
3768
3728
|
},
|
|
3769
|
-
sendToIframe(
|
|
3770
|
-
if (!
|
|
3771
|
-
|
|
3729
|
+
sendToIframe(h) {
|
|
3730
|
+
if (!r.value?.contentWindow) {
|
|
3731
|
+
J.warn("Cannot send message: iframe not available");
|
|
3772
3732
|
return;
|
|
3773
3733
|
}
|
|
3774
|
-
const
|
|
3775
|
-
|
|
3734
|
+
const w = e().allowedOrigins?.[0] || "*";
|
|
3735
|
+
r.value.contentWindow.postMessage(h, w), J.debug(`Sent to iframe: ${h.type}`);
|
|
3776
3736
|
},
|
|
3777
|
-
sendToParent(
|
|
3737
|
+
sendToParent(h) {
|
|
3778
3738
|
if (!window.parent || window.parent === window) {
|
|
3779
|
-
|
|
3739
|
+
J.warn("Cannot send to parent: not in iframe");
|
|
3780
3740
|
return;
|
|
3781
3741
|
}
|
|
3782
|
-
window.parent.postMessage(
|
|
3742
|
+
window.parent.postMessage(h, "*"), J.debug(`Sent to parent: ${h.type}`);
|
|
3783
3743
|
},
|
|
3784
3744
|
startListening() {
|
|
3785
|
-
|
|
3745
|
+
o.value || (window.addEventListener("message", g), o.value = !0);
|
|
3786
3746
|
},
|
|
3787
3747
|
stopListening() {
|
|
3788
|
-
|
|
3789
|
-
},
|
|
3790
|
-
onChatReady(v) {
|
|
3791
|
-
return U.add(v), () => {
|
|
3792
|
-
U.delete(v);
|
|
3793
|
-
};
|
|
3748
|
+
o.value && (window.removeEventListener("message", g), o.value = !1);
|
|
3794
3749
|
},
|
|
3795
|
-
|
|
3796
|
-
return
|
|
3797
|
-
|
|
3750
|
+
onChatReady(h) {
|
|
3751
|
+
return c.add(h), () => {
|
|
3752
|
+
c.delete(h);
|
|
3798
3753
|
};
|
|
3799
3754
|
},
|
|
3800
|
-
onMessage(
|
|
3801
|
-
return
|
|
3802
|
-
|
|
3755
|
+
onMessage(h) {
|
|
3756
|
+
return l.add(h), () => {
|
|
3757
|
+
l.delete(h);
|
|
3803
3758
|
};
|
|
3804
3759
|
}
|
|
3805
3760
|
};
|
|
3806
3761
|
}
|
|
3807
|
-
const
|
|
3762
|
+
const re = $("ai-agent-service");
|
|
3808
3763
|
function Tt(i) {
|
|
3809
3764
|
const {
|
|
3810
3765
|
userGetter: e,
|
|
@@ -3812,107 +3767,104 @@ function Tt(i) {
|
|
|
3812
3767
|
localeGetter: n,
|
|
3813
3768
|
tokenGetter: r,
|
|
3814
3769
|
navigateToBlade: a,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
} = i, m = D({ ...gt, ...l }), U = yt(), p = _t({
|
|
3770
|
+
initialConfig: o,
|
|
3771
|
+
isEmbedded: l = !1
|
|
3772
|
+
} = i, c = G({ ...gt, ...o }), p = yt(), g = _t({
|
|
3819
3773
|
userGetter: e,
|
|
3820
3774
|
bladeGetter: t,
|
|
3821
3775
|
localeGetter: n,
|
|
3822
3776
|
tokenGetter: r
|
|
3823
|
-
}),
|
|
3824
|
-
getConfig: () =>
|
|
3825
|
-
isEmbedded:
|
|
3826
|
-
navigateToBlade: a
|
|
3827
|
-
|
|
3828
|
-
}), v = h(() => ({
|
|
3777
|
+
}), h = Ut({
|
|
3778
|
+
getConfig: () => c.value,
|
|
3779
|
+
isEmbedded: l,
|
|
3780
|
+
navigateToBlade: a
|
|
3781
|
+
}), y = d(() => ({
|
|
3829
3782
|
user: e(),
|
|
3830
3783
|
currentBlade: t(),
|
|
3831
|
-
items:
|
|
3832
|
-
})),
|
|
3833
|
-
if (
|
|
3834
|
-
|
|
3835
|
-
const
|
|
3836
|
-
|
|
3784
|
+
items: g.contextItems.value
|
|
3785
|
+
})), w = async () => {
|
|
3786
|
+
if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
|
|
3787
|
+
h.pendingInitContext.value = !1, p.isInitialized.value = !0;
|
|
3788
|
+
const m = await g.buildInitPayload();
|
|
3789
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), re.debug("Flushed pending INIT_CONTEXT");
|
|
3837
3790
|
}
|
|
3838
3791
|
};
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
})) : (
|
|
3843
|
-
}), H(
|
|
3844
|
-
() => ({ currentBlade:
|
|
3792
|
+
h.onChatReady(() => {
|
|
3793
|
+
h.iframeRef.value?.contentWindow ? (p.isInitialized.value = !0, g.buildInitPayload().then((m) => {
|
|
3794
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), re.info("Chatbot ready, sent INIT_CONTEXT");
|
|
3795
|
+
})) : (h.pendingInitContext.value = !0, re.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
3796
|
+
}), H(h.iframeRef, () => w()), H(
|
|
3797
|
+
() => ({ currentBlade: y.value.currentBlade, items: y.value.items }),
|
|
3845
3798
|
async () => {
|
|
3846
|
-
if (
|
|
3847
|
-
const
|
|
3848
|
-
|
|
3799
|
+
if (l) {
|
|
3800
|
+
const m = await g.buildInitPayload();
|
|
3801
|
+
h.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: m });
|
|
3849
3802
|
return;
|
|
3850
3803
|
}
|
|
3851
|
-
if (
|
|
3852
|
-
const
|
|
3853
|
-
|
|
3804
|
+
if (p.isOpen.value && p.isInitialized.value && h.iframeRef.value?.contentWindow) {
|
|
3805
|
+
const m = await g.buildUpdatePayload();
|
|
3806
|
+
h.sendToIframe({ type: "UPDATE_CONTEXT", payload: m });
|
|
3854
3807
|
}
|
|
3855
3808
|
},
|
|
3856
3809
|
{ deep: !0 }
|
|
3857
3810
|
);
|
|
3858
|
-
const
|
|
3859
|
-
|
|
3860
|
-
},
|
|
3861
|
-
const { cleared:
|
|
3862
|
-
|
|
3811
|
+
const x = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.open(), O = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.close(), N = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.toggle(), D = (m) => {
|
|
3812
|
+
h.setIframeRef(m), w();
|
|
3813
|
+
}, b = (m, T, U, A) => {
|
|
3814
|
+
const { cleared: F } = g.setContextData(m, T, U, A);
|
|
3815
|
+
l && F && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
3863
3816
|
};
|
|
3864
|
-
return
|
|
3817
|
+
return h.startListening(), l && (h.sendToParent({
|
|
3865
3818
|
type: "EMBEDDED_APP_READY",
|
|
3866
3819
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
3867
|
-
}),
|
|
3820
|
+
}), re.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
3868
3821
|
// State
|
|
3869
|
-
panelState:
|
|
3870
|
-
config:
|
|
3871
|
-
context:
|
|
3872
|
-
isOpen:
|
|
3873
|
-
isExpanded:
|
|
3874
|
-
totalItemsCount:
|
|
3822
|
+
panelState: p.panelState,
|
|
3823
|
+
config: c,
|
|
3824
|
+
context: y,
|
|
3825
|
+
isOpen: d(() => !l && p.isOpen.value),
|
|
3826
|
+
isExpanded: p.isExpanded,
|
|
3827
|
+
totalItemsCount: g.totalItemsCount,
|
|
3875
3828
|
// Panel control
|
|
3876
|
-
openPanel:
|
|
3877
|
-
closePanel:
|
|
3878
|
-
togglePanel:
|
|
3879
|
-
expandPanel: () =>
|
|
3880
|
-
collapsePanel: () =>
|
|
3829
|
+
openPanel: x,
|
|
3830
|
+
closePanel: O,
|
|
3831
|
+
togglePanel: N,
|
|
3832
|
+
expandPanel: () => p.expand(),
|
|
3833
|
+
collapsePanel: () => p.collapse(),
|
|
3881
3834
|
// Configuration
|
|
3882
|
-
setConfig: (
|
|
3883
|
-
|
|
3835
|
+
setConfig: (m) => {
|
|
3836
|
+
c.value = { ...c.value, ...m };
|
|
3884
3837
|
},
|
|
3885
3838
|
// Communication
|
|
3886
|
-
sendMessage: (
|
|
3887
|
-
|
|
3839
|
+
sendMessage: (m, T) => {
|
|
3840
|
+
h.sendToIframe({ type: m, payload: T });
|
|
3888
3841
|
},
|
|
3889
|
-
onMessage:
|
|
3842
|
+
onMessage: h.onMessage,
|
|
3890
3843
|
// Internal API
|
|
3891
|
-
iframeRef:
|
|
3892
|
-
_setIframeRef:
|
|
3893
|
-
_startListening:
|
|
3894
|
-
_stopListening:
|
|
3895
|
-
_setContextData:
|
|
3896
|
-
_onPreviewChanges: d.onPreviewChanges
|
|
3844
|
+
iframeRef: h.iframeRef,
|
|
3845
|
+
_setIframeRef: D,
|
|
3846
|
+
_startListening: h.startListening,
|
|
3847
|
+
_stopListening: h.stopListening,
|
|
3848
|
+
_setContextData: b
|
|
3897
3849
|
};
|
|
3898
3850
|
}
|
|
3899
3851
|
let Ie, Re, je, St;
|
|
3900
|
-
function
|
|
3852
|
+
function nn(i) {
|
|
3901
3853
|
Ie = i;
|
|
3902
3854
|
}
|
|
3903
|
-
function
|
|
3855
|
+
function an(i) {
|
|
3904
3856
|
Re = i;
|
|
3905
3857
|
}
|
|
3906
|
-
function
|
|
3858
|
+
function sn(i) {
|
|
3907
3859
|
je = i;
|
|
3908
3860
|
}
|
|
3909
|
-
function
|
|
3861
|
+
function on(i) {
|
|
3910
3862
|
St = i;
|
|
3911
3863
|
}
|
|
3912
3864
|
function Ue(i, e) {
|
|
3913
3865
|
if (e.length === 0)
|
|
3914
3866
|
return { path: i ? `/${i}` : "/", query: {} };
|
|
3915
|
-
const t = e[0], n =
|
|
3867
|
+
const t = e[0], n = Te(t.url);
|
|
3916
3868
|
let r;
|
|
3917
3869
|
for (let l = e.length - 1; l >= 1; l--)
|
|
3918
3870
|
if (e[l].visible) {
|
|
@@ -3921,7 +3873,7 @@ function Ue(i, e) {
|
|
|
3921
3873
|
}
|
|
3922
3874
|
let a = i ? `/${i}` : "";
|
|
3923
3875
|
if (n && (a += `/${n}`), r) {
|
|
3924
|
-
const l =
|
|
3876
|
+
const l = Te(r.url);
|
|
3925
3877
|
l && (a += `/${l}`), r.param && (a += `/${r.param}`);
|
|
3926
3878
|
}
|
|
3927
3879
|
const o = {};
|
|
@@ -3929,7 +3881,7 @@ function Ue(i, e) {
|
|
|
3929
3881
|
l.visible && l.query && Object.assign(o, l.query);
|
|
3930
3882
|
return { path: a || "/", query: o };
|
|
3931
3883
|
}
|
|
3932
|
-
function
|
|
3884
|
+
function ln(i, e) {
|
|
3933
3885
|
let t = i.split("/").filter(Boolean);
|
|
3934
3886
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
3935
3887
|
workspaceUrl: t[0],
|
|
@@ -3937,59 +3889,59 @@ function un(i, e) {
|
|
|
3937
3889
|
param: t[2]
|
|
3938
3890
|
};
|
|
3939
3891
|
}
|
|
3940
|
-
function
|
|
3892
|
+
function Te(i) {
|
|
3941
3893
|
if (i)
|
|
3942
3894
|
return i.replace(/^\/+|\/+$/g, "") || void 0;
|
|
3943
3895
|
}
|
|
3944
|
-
function
|
|
3896
|
+
function Se(i) {
|
|
3945
3897
|
const e = i.currentRoute.value.params;
|
|
3946
3898
|
return Object.values(e).find((t) => typeof t == "string" && t) || "";
|
|
3947
3899
|
}
|
|
3948
|
-
function
|
|
3900
|
+
function Ct(i, e) {
|
|
3949
3901
|
function t() {
|
|
3950
|
-
const { path: r, query: a } = Ue(
|
|
3902
|
+
const { path: r, query: a } = Ue(Se(i), e.blades.value);
|
|
3951
3903
|
i.push({ path: r, query: a });
|
|
3952
3904
|
}
|
|
3953
3905
|
function n() {
|
|
3954
|
-
const { path: r, query: a } = Ue(
|
|
3906
|
+
const { path: r, query: a } = Ue(Se(i), e.blades.value);
|
|
3955
3907
|
i.replace({ path: r, query: a });
|
|
3956
3908
|
}
|
|
3957
3909
|
return { syncUrlPush: t, syncUrlReplace: n };
|
|
3958
3910
|
}
|
|
3959
|
-
const
|
|
3960
|
-
function
|
|
3911
|
+
const wt = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
|
|
3912
|
+
function I(i) {
|
|
3961
3913
|
throw new Error(`[vc-shell] ${i} requires blade context.
|
|
3962
|
-
${
|
|
3914
|
+
${wt}`);
|
|
3963
3915
|
}
|
|
3964
|
-
function
|
|
3965
|
-
const i = (
|
|
3916
|
+
function At() {
|
|
3917
|
+
const i = (Q() ? L(Oe, void 0) : void 0) ?? Re, e = (Q() ? L(ct, void 0) : void 0) ?? je;
|
|
3966
3918
|
if (!i || !e)
|
|
3967
3919
|
throw new Error(
|
|
3968
3920
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
3969
3921
|
);
|
|
3970
|
-
const t = i, n = e, r =
|
|
3922
|
+
const t = i, n = e, r = Q() ? L(ht, void 0) : void 0, a = Q() ? L(ft, void 0) : void 0;
|
|
3971
3923
|
let o;
|
|
3972
3924
|
function l() {
|
|
3973
3925
|
if (o) return o;
|
|
3974
|
-
const
|
|
3975
|
-
return
|
|
3926
|
+
const E = Ie?.router;
|
|
3927
|
+
return E && (o = Ct(E, t)), o;
|
|
3976
3928
|
}
|
|
3977
|
-
const c =
|
|
3978
|
-
let
|
|
3979
|
-
function
|
|
3980
|
-
if (
|
|
3929
|
+
const c = d(() => (r || I("id"), r.value.id)), p = d(() => (r || I("param"), r.value.param)), g = d(() => (r || I("options"), r.value.options)), h = d(() => (r || I("query"), r.value.query)), y = d(() => (r || I("closable"), r.value.parentId !== void 0)), w = d(() => (r || I("expanded"), t.activeBlade.value?.id === r.value.id)), x = d(() => (r || I("name"), r.value.name));
|
|
3930
|
+
let O = !1;
|
|
3931
|
+
function N(E) {
|
|
3932
|
+
if (O) {
|
|
3981
3933
|
console.warn(
|
|
3982
3934
|
"[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
|
|
3983
3935
|
);
|
|
3984
3936
|
return;
|
|
3985
3937
|
}
|
|
3986
|
-
|
|
3987
|
-
const
|
|
3988
|
-
|
|
3938
|
+
O = !0;
|
|
3939
|
+
const B = ke(E) ? E : G(E);
|
|
3940
|
+
Ce(dt, B);
|
|
3989
3941
|
}
|
|
3990
|
-
async function
|
|
3991
|
-
const { isWorkspace:
|
|
3992
|
-
if (
|
|
3942
|
+
async function D(E) {
|
|
3943
|
+
const { isWorkspace: B, ...ue } = E;
|
|
3944
|
+
if (B)
|
|
3993
3945
|
await t.openWorkspace(ue);
|
|
3994
3946
|
else {
|
|
3995
3947
|
const be = r?.value.id;
|
|
@@ -3997,306 +3949,306 @@ function Pt() {
|
|
|
3997
3949
|
}
|
|
3998
3950
|
t.activeBlade.value?.url && l()?.syncUrlPush();
|
|
3999
3951
|
}
|
|
4000
|
-
async function
|
|
4001
|
-
r ||
|
|
4002
|
-
const
|
|
4003
|
-
return
|
|
3952
|
+
async function b() {
|
|
3953
|
+
r || I("closeSelf()");
|
|
3954
|
+
const E = await t.closeBlade(r.value.id);
|
|
3955
|
+
return E || l()?.syncUrlReplace(), E;
|
|
4004
3956
|
}
|
|
4005
|
-
async function
|
|
4006
|
-
r ||
|
|
3957
|
+
async function m() {
|
|
3958
|
+
r || I("closeChildren()"), await t.closeChildren(r.value.id), l()?.syncUrlReplace();
|
|
4007
3959
|
}
|
|
4008
|
-
async function E
|
|
4009
|
-
r ||
|
|
4010
|
-
...
|
|
3960
|
+
async function T(E) {
|
|
3961
|
+
r || I("replaceWith()"), await t.replaceCurrentBlade({
|
|
3962
|
+
...E,
|
|
4011
3963
|
parentId: r.value.parentId
|
|
4012
3964
|
}), t.activeBlade.value?.url && l()?.syncUrlReplace();
|
|
4013
3965
|
}
|
|
4014
|
-
async function
|
|
4015
|
-
r ||
|
|
4016
|
-
...
|
|
3966
|
+
async function U(E) {
|
|
3967
|
+
r || I("coverWith()"), await t.coverCurrentBlade({
|
|
3968
|
+
...E,
|
|
4017
3969
|
parentId: r.value.parentId
|
|
4018
3970
|
}), t.activeBlade.value?.url && l()?.syncUrlPush();
|
|
4019
3971
|
}
|
|
4020
|
-
async function
|
|
4021
|
-
return r ||
|
|
3972
|
+
async function A(E, B) {
|
|
3973
|
+
return r || I("callParent()"), n.callParent(r.value.id, E, B);
|
|
4022
3974
|
}
|
|
4023
|
-
function
|
|
4024
|
-
r ||
|
|
3975
|
+
function F(E) {
|
|
3976
|
+
r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, E);
|
|
4025
3977
|
}
|
|
4026
|
-
function
|
|
4027
|
-
r ||
|
|
3978
|
+
function le(E) {
|
|
3979
|
+
r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, E);
|
|
4028
3980
|
}
|
|
4029
|
-
function u(
|
|
4030
|
-
r ||
|
|
3981
|
+
function u(E) {
|
|
3982
|
+
r || I("setError()"), t.setBladeError(r.value.id, E);
|
|
4031
3983
|
}
|
|
4032
3984
|
function f() {
|
|
4033
|
-
r ||
|
|
3985
|
+
r || I("clearError()"), t.clearBladeError(r.value.id);
|
|
4034
3986
|
}
|
|
4035
|
-
let
|
|
4036
|
-
function
|
|
4037
|
-
a ||
|
|
4038
|
-
const
|
|
3987
|
+
let v = 0;
|
|
3988
|
+
function _(E) {
|
|
3989
|
+
a || I("addBanner()");
|
|
3990
|
+
const B = `banner-${r.value.id}-${++v}`;
|
|
4039
3991
|
return a.value.push({
|
|
4040
|
-
...
|
|
4041
|
-
id:
|
|
4042
|
-
dismissible:
|
|
4043
|
-
}),
|
|
3992
|
+
...E,
|
|
3993
|
+
id: B,
|
|
3994
|
+
dismissible: E.dismissible ?? !1
|
|
3995
|
+
}), B;
|
|
4044
3996
|
}
|
|
4045
|
-
function
|
|
4046
|
-
a ||
|
|
3997
|
+
function P(E) {
|
|
3998
|
+
a || I("removeBanner()"), a.value = a.value.filter((B) => B.id !== E);
|
|
4047
3999
|
}
|
|
4048
4000
|
function z() {
|
|
4049
|
-
a ||
|
|
4001
|
+
a || I("clearBanners()"), a.value = a.value.filter((E) => E._system);
|
|
4050
4002
|
}
|
|
4051
4003
|
let V = !1, ge = !1;
|
|
4052
|
-
function Ne(
|
|
4053
|
-
if (r ||
|
|
4004
|
+
function Ne(E) {
|
|
4005
|
+
if (r || I("onActivated()"), V) {
|
|
4054
4006
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
4055
4007
|
return;
|
|
4056
4008
|
}
|
|
4057
|
-
V = !0, H(
|
|
4058
|
-
|
|
4009
|
+
V = !0, H(w, (B) => {
|
|
4010
|
+
B && E();
|
|
4059
4011
|
});
|
|
4060
4012
|
}
|
|
4061
|
-
function
|
|
4062
|
-
if (r ||
|
|
4013
|
+
function ze(E) {
|
|
4014
|
+
if (r || I("onDeactivated()"), ge) {
|
|
4063
4015
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
4064
4016
|
return;
|
|
4065
4017
|
}
|
|
4066
|
-
ge = !0, H(
|
|
4067
|
-
|
|
4018
|
+
ge = !0, H(w, (B) => {
|
|
4019
|
+
B || E();
|
|
4068
4020
|
});
|
|
4069
4021
|
}
|
|
4070
4022
|
return {
|
|
4071
4023
|
id: c,
|
|
4072
|
-
param:
|
|
4073
|
-
options:
|
|
4074
|
-
query:
|
|
4075
|
-
closable:
|
|
4076
|
-
expanded:
|
|
4077
|
-
name:
|
|
4078
|
-
provideBladeData:
|
|
4079
|
-
openBlade:
|
|
4080
|
-
closeSelf:
|
|
4081
|
-
closeChildren:
|
|
4082
|
-
replaceWith:
|
|
4083
|
-
coverWith:
|
|
4084
|
-
callParent:
|
|
4085
|
-
exposeToChildren:
|
|
4086
|
-
onBeforeClose:
|
|
4024
|
+
param: p,
|
|
4025
|
+
options: g,
|
|
4026
|
+
query: h,
|
|
4027
|
+
closable: y,
|
|
4028
|
+
expanded: w,
|
|
4029
|
+
name: x,
|
|
4030
|
+
provideBladeData: N,
|
|
4031
|
+
openBlade: D,
|
|
4032
|
+
closeSelf: b,
|
|
4033
|
+
closeChildren: m,
|
|
4034
|
+
replaceWith: T,
|
|
4035
|
+
coverWith: U,
|
|
4036
|
+
callParent: A,
|
|
4037
|
+
exposeToChildren: F,
|
|
4038
|
+
onBeforeClose: le,
|
|
4087
4039
|
onActivated: Ne,
|
|
4088
|
-
onDeactivated:
|
|
4040
|
+
onDeactivated: ze,
|
|
4089
4041
|
setError: u,
|
|
4090
4042
|
clearError: f,
|
|
4091
|
-
addBanner:
|
|
4092
|
-
removeBanner:
|
|
4043
|
+
addBanner: _,
|
|
4044
|
+
removeBanner: P,
|
|
4093
4045
|
clearBanners: z
|
|
4094
4046
|
};
|
|
4095
4047
|
}
|
|
4096
|
-
let
|
|
4097
|
-
function
|
|
4098
|
-
return `blade_${++
|
|
4048
|
+
let Pt = 0;
|
|
4049
|
+
function ne() {
|
|
4050
|
+
return `blade_${++Pt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
4099
4051
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const t =
|
|
4052
|
+
function un(i, e) {
|
|
4053
|
+
const t = G([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = d(() => t.value[0]), l = d(() => t.value), c = d(() => {
|
|
4102
4054
|
for (let u = t.value.length - 1; u >= 0; u--)
|
|
4103
4055
|
if (t.value[u].visible) return t.value[u];
|
|
4104
4056
|
});
|
|
4105
|
-
function
|
|
4057
|
+
function p(u) {
|
|
4106
4058
|
n.delete(u), r.delete(u), a.delete(u);
|
|
4107
4059
|
}
|
|
4108
|
-
function
|
|
4060
|
+
function g(u) {
|
|
4109
4061
|
const f = i.getBlade(u);
|
|
4110
4062
|
if (f)
|
|
4111
4063
|
return f.route;
|
|
4112
4064
|
}
|
|
4113
|
-
async function
|
|
4065
|
+
async function h(u) {
|
|
4114
4066
|
for (let f = u.length - 1; f >= 0; f--) {
|
|
4115
|
-
const
|
|
4116
|
-
if (
|
|
4067
|
+
const v = n.get(u[f].id);
|
|
4068
|
+
if (v && await v())
|
|
4117
4069
|
return !0;
|
|
4118
4070
|
}
|
|
4119
4071
|
return !1;
|
|
4120
4072
|
}
|
|
4121
|
-
function
|
|
4073
|
+
function y(u) {
|
|
4122
4074
|
for (const f of u)
|
|
4123
|
-
a.get(f.id)?.(),
|
|
4075
|
+
a.get(f.id)?.(), p(f.id);
|
|
4124
4076
|
}
|
|
4125
|
-
async function
|
|
4077
|
+
async function w(u) {
|
|
4126
4078
|
if (o.value?.name === u.name) return;
|
|
4127
|
-
const
|
|
4128
|
-
if (!
|
|
4079
|
+
const v = i.getBlade(u.name);
|
|
4080
|
+
if (!v)
|
|
4129
4081
|
throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
|
|
4130
|
-
if (e &&
|
|
4082
|
+
if (e && v.permissions && !e(v.permissions)) {
|
|
4131
4083
|
console.warn(`[BladeStack] Access denied to workspace '${u.name}'`);
|
|
4132
4084
|
return;
|
|
4133
4085
|
}
|
|
4134
|
-
|
|
4135
|
-
const
|
|
4136
|
-
id:
|
|
4086
|
+
y([...t.value]);
|
|
4087
|
+
const _ = {
|
|
4088
|
+
id: ne(),
|
|
4137
4089
|
name: u.name,
|
|
4138
|
-
url:
|
|
4090
|
+
url: g(u.name),
|
|
4139
4091
|
// workspace blades don't have param when opened first
|
|
4140
4092
|
query: u.query,
|
|
4141
4093
|
options: u.options,
|
|
4142
4094
|
visible: !0
|
|
4143
4095
|
};
|
|
4144
|
-
t.value = [
|
|
4096
|
+
t.value = [_], u.onOpen && r.set(_.id, u.onOpen), u.onClose && a.set(_.id, u.onClose), u.onOpen?.();
|
|
4145
4097
|
}
|
|
4146
|
-
async function
|
|
4098
|
+
async function x(u) {
|
|
4147
4099
|
if (!i.getBlade(u.name))
|
|
4148
4100
|
throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
|
|
4149
4101
|
const f = u.parentId ?? c.value?.id ?? o.value?.id;
|
|
4150
4102
|
if (!f)
|
|
4151
4103
|
throw new Error("[BladeStack] Cannot open blade: no parent blade found");
|
|
4152
|
-
const
|
|
4153
|
-
if (
|
|
4104
|
+
const v = t.value.findIndex((z) => z.id === f);
|
|
4105
|
+
if (v === -1)
|
|
4154
4106
|
throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
|
|
4155
|
-
const
|
|
4156
|
-
if (
|
|
4107
|
+
const _ = t.value.slice(v + 1);
|
|
4108
|
+
if (_.length > 0 && await h(_))
|
|
4157
4109
|
return;
|
|
4158
|
-
|
|
4159
|
-
const
|
|
4160
|
-
id:
|
|
4110
|
+
y(_);
|
|
4111
|
+
const P = {
|
|
4112
|
+
id: ne(),
|
|
4161
4113
|
name: u.name,
|
|
4162
|
-
url:
|
|
4114
|
+
url: g(u.name),
|
|
4163
4115
|
param: u.param,
|
|
4164
4116
|
query: u.query,
|
|
4165
4117
|
options: u.options,
|
|
4166
4118
|
parentId: f,
|
|
4167
4119
|
visible: !0
|
|
4168
4120
|
};
|
|
4169
|
-
t.value = [...t.value.slice(0,
|
|
4121
|
+
t.value = [...t.value.slice(0, v + 1), P], u.onOpen && r.set(P.id, u.onOpen), u.onClose && a.set(P.id, u.onClose), u.onOpen?.();
|
|
4170
4122
|
}
|
|
4171
|
-
async function
|
|
4123
|
+
async function O(u) {
|
|
4172
4124
|
const f = t.value.findIndex((z) => z.id === u);
|
|
4173
4125
|
if (f === -1 || f === 0) return !1;
|
|
4174
|
-
const
|
|
4175
|
-
if (await
|
|
4176
|
-
|
|
4177
|
-
const
|
|
4178
|
-
if (
|
|
4126
|
+
const v = t.value.slice(f);
|
|
4127
|
+
if (await h(v)) return !0;
|
|
4128
|
+
y(v), t.value = t.value.slice(0, f);
|
|
4129
|
+
const P = t.value.length - 1;
|
|
4130
|
+
if (P > 0 && !t.value[P].visible) {
|
|
4179
4131
|
const z = [...t.value];
|
|
4180
|
-
z[
|
|
4132
|
+
z[P] = { ...z[P], visible: !0 }, t.value = z;
|
|
4181
4133
|
}
|
|
4182
4134
|
return !1;
|
|
4183
4135
|
}
|
|
4184
|
-
async function
|
|
4136
|
+
async function N(u) {
|
|
4185
4137
|
const f = c.value;
|
|
4186
4138
|
if (!f)
|
|
4187
4139
|
throw new Error("[BladeStack] No active blade to replace");
|
|
4188
4140
|
if (!i.getBlade(u.name))
|
|
4189
4141
|
throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
|
|
4190
|
-
const
|
|
4191
|
-
if (
|
|
4142
|
+
const v = t.value.findIndex((V) => V.id === f.id);
|
|
4143
|
+
if (v === -1)
|
|
4192
4144
|
throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
|
|
4193
|
-
const
|
|
4194
|
-
if (
|
|
4195
|
-
if (await
|
|
4196
|
-
|
|
4145
|
+
const _ = t.value.slice(v + 1);
|
|
4146
|
+
if (_.length > 0) {
|
|
4147
|
+
if (await h(_)) return;
|
|
4148
|
+
y(_);
|
|
4197
4149
|
}
|
|
4198
|
-
const
|
|
4199
|
-
id:
|
|
4150
|
+
const P = {
|
|
4151
|
+
id: ne(),
|
|
4200
4152
|
name: u.name,
|
|
4201
|
-
url:
|
|
4153
|
+
url: g(u.name),
|
|
4202
4154
|
param: u.param,
|
|
4203
4155
|
query: u.query,
|
|
4204
4156
|
options: u.options,
|
|
4205
4157
|
parentId: f.parentId,
|
|
4206
4158
|
visible: !0
|
|
4207
4159
|
};
|
|
4208
|
-
|
|
4209
|
-
const z = [...t.value.slice(0,
|
|
4210
|
-
t.value = z, u.onOpen && r.set(
|
|
4160
|
+
y([f]);
|
|
4161
|
+
const z = [...t.value.slice(0, v), P, ...t.value.slice(v + 1)];
|
|
4162
|
+
t.value = z, u.onOpen && r.set(P.id, u.onOpen), u.onClose && a.set(P.id, u.onClose), u.onOpen?.();
|
|
4211
4163
|
}
|
|
4212
|
-
async function
|
|
4164
|
+
async function D(u) {
|
|
4213
4165
|
const f = c.value;
|
|
4214
4166
|
if (!f)
|
|
4215
4167
|
throw new Error("[BladeStack] No active blade to cover");
|
|
4216
4168
|
if (!i.getBlade(u.name))
|
|
4217
4169
|
throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
|
|
4218
|
-
const
|
|
4219
|
-
if (
|
|
4170
|
+
const v = t.value.findIndex((V) => V.id === f.id);
|
|
4171
|
+
if (v === -1)
|
|
4220
4172
|
throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
|
|
4221
|
-
const
|
|
4222
|
-
if (
|
|
4223
|
-
if (await
|
|
4224
|
-
|
|
4173
|
+
const _ = t.value.slice(v + 1);
|
|
4174
|
+
if (_.length > 0) {
|
|
4175
|
+
if (await h(_)) return;
|
|
4176
|
+
y(_);
|
|
4225
4177
|
}
|
|
4226
|
-
const
|
|
4227
|
-
id:
|
|
4178
|
+
const P = {
|
|
4179
|
+
id: ne(),
|
|
4228
4180
|
name: u.name,
|
|
4229
|
-
url:
|
|
4181
|
+
url: g(u.name),
|
|
4230
4182
|
param: u.param,
|
|
4231
4183
|
query: u.query,
|
|
4232
4184
|
options: u.options,
|
|
4233
4185
|
parentId: f.id,
|
|
4234
4186
|
visible: !0
|
|
4235
|
-
}, z = t.value.slice(0,
|
|
4236
|
-
z.push({ ...f, visible: !1 }), z.push(
|
|
4187
|
+
}, z = t.value.slice(0, v);
|
|
4188
|
+
z.push({ ...f, visible: !1 }), z.push(P), t.value = z, u.onOpen && r.set(P.id, u.onOpen), u.onClose && a.set(P.id, u.onClose), u.onOpen?.();
|
|
4237
4189
|
}
|
|
4238
|
-
async function
|
|
4239
|
-
const f = t.value.findIndex((
|
|
4190
|
+
async function b(u) {
|
|
4191
|
+
const f = t.value.findIndex((P) => P.id === u);
|
|
4240
4192
|
if (f === -1) return;
|
|
4241
|
-
const
|
|
4242
|
-
|
|
4193
|
+
const v = t.value.slice(f + 1);
|
|
4194
|
+
v.length === 0 || await h(v) || (y(v), t.value = t.value.slice(0, f + 1));
|
|
4243
4195
|
}
|
|
4244
|
-
function
|
|
4196
|
+
function m(u, f) {
|
|
4245
4197
|
n.set(u, f);
|
|
4246
4198
|
}
|
|
4247
|
-
function
|
|
4199
|
+
function T(u) {
|
|
4248
4200
|
n.delete(u);
|
|
4249
4201
|
}
|
|
4250
|
-
function
|
|
4251
|
-
const
|
|
4252
|
-
if (
|
|
4253
|
-
const
|
|
4254
|
-
|
|
4202
|
+
function U(u, f) {
|
|
4203
|
+
const v = t.value.findIndex((P) => P.id === u);
|
|
4204
|
+
if (v === -1) return;
|
|
4205
|
+
const _ = [...t.value];
|
|
4206
|
+
_[v] = { ..._[v], error: f }, t.value = _;
|
|
4255
4207
|
}
|
|
4256
|
-
function
|
|
4257
|
-
const f = t.value.findIndex((
|
|
4208
|
+
function A(u) {
|
|
4209
|
+
const f = t.value.findIndex((_) => _.id === u);
|
|
4258
4210
|
if (f === -1) return;
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4211
|
+
const v = [...t.value];
|
|
4212
|
+
v[f] = { ...v[f], error: void 0 }, t.value = v;
|
|
4261
4213
|
}
|
|
4262
|
-
function
|
|
4263
|
-
const
|
|
4264
|
-
if (
|
|
4265
|
-
const
|
|
4266
|
-
|
|
4214
|
+
function F(u, f) {
|
|
4215
|
+
const v = t.value.findIndex((P) => P.id === u);
|
|
4216
|
+
if (v === -1 || t.value[v].title === f) return;
|
|
4217
|
+
const _ = [...t.value];
|
|
4218
|
+
_[v] = { ..._[v], title: f }, t.value = _;
|
|
4267
4219
|
}
|
|
4268
|
-
function
|
|
4220
|
+
function le(u) {
|
|
4269
4221
|
for (const f of t.value)
|
|
4270
|
-
|
|
4222
|
+
p(f.id);
|
|
4271
4223
|
t.value = u;
|
|
4272
4224
|
}
|
|
4273
4225
|
return {
|
|
4274
4226
|
workspace: o,
|
|
4275
4227
|
blades: l,
|
|
4276
4228
|
activeBlade: c,
|
|
4277
|
-
openWorkspace:
|
|
4278
|
-
openBlade:
|
|
4279
|
-
closeBlade:
|
|
4280
|
-
closeChildren:
|
|
4281
|
-
replaceCurrentBlade:
|
|
4282
|
-
coverCurrentBlade:
|
|
4283
|
-
registerBeforeClose:
|
|
4284
|
-
unregisterBeforeClose:
|
|
4285
|
-
setBladeError:
|
|
4286
|
-
clearBladeError:
|
|
4287
|
-
setBladeTitle:
|
|
4288
|
-
_restoreStack:
|
|
4229
|
+
openWorkspace: w,
|
|
4230
|
+
openBlade: x,
|
|
4231
|
+
closeBlade: O,
|
|
4232
|
+
closeChildren: b,
|
|
4233
|
+
replaceCurrentBlade: N,
|
|
4234
|
+
coverCurrentBlade: D,
|
|
4235
|
+
registerBeforeClose: m,
|
|
4236
|
+
unregisterBeforeClose: T,
|
|
4237
|
+
setBladeError: U,
|
|
4238
|
+
clearBladeError: A,
|
|
4239
|
+
setBladeTitle: F,
|
|
4240
|
+
_restoreStack: le
|
|
4289
4241
|
};
|
|
4290
4242
|
}
|
|
4291
|
-
function
|
|
4292
|
-
const i =
|
|
4243
|
+
function Ot() {
|
|
4244
|
+
const i = L(Oe);
|
|
4293
4245
|
if (!i)
|
|
4294
4246
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
4295
4247
|
return i;
|
|
4296
4248
|
}
|
|
4297
|
-
const q =
|
|
4298
|
-
function
|
|
4299
|
-
const e =
|
|
4249
|
+
const q = $("use-ai-agent");
|
|
4250
|
+
function cn(i) {
|
|
4251
|
+
const e = L(pt), { user: t, getAccessToken: n } = ut(), { openBlade: r } = At(), { blades: a, activeBlade: o } = Ot(), l = i?.isEmbedded, c = Tt({
|
|
4300
4252
|
userGetter: () => {
|
|
4301
4253
|
if (t.value)
|
|
4302
4254
|
return {
|
|
@@ -4307,59 +4259,46 @@ function hn(i) {
|
|
|
4307
4259
|
};
|
|
4308
4260
|
},
|
|
4309
4261
|
bladeGetter: () => {
|
|
4310
|
-
const
|
|
4311
|
-
return
|
|
4312
|
-
id:
|
|
4313
|
-
name:
|
|
4314
|
-
title:
|
|
4315
|
-
param:
|
|
4316
|
-
options:
|
|
4262
|
+
const g = o.value ?? a.value[a.value.length - 1];
|
|
4263
|
+
return g ? {
|
|
4264
|
+
id: g.id,
|
|
4265
|
+
name: g.name,
|
|
4266
|
+
title: g.title,
|
|
4267
|
+
param: g.param,
|
|
4268
|
+
options: g.options
|
|
4317
4269
|
} : null;
|
|
4318
4270
|
},
|
|
4319
4271
|
localeGetter: () => e?.currentLocale.value ?? "en",
|
|
4320
4272
|
tokenGetter: n,
|
|
4321
|
-
navigateToBlade: (
|
|
4322
|
-
r({ name:
|
|
4323
|
-
q.debug(`Navigated to blade: ${
|
|
4324
|
-
}).catch((
|
|
4325
|
-
q.warn(`Blade not found or cannot be opened: ${
|
|
4326
|
-
});
|
|
4327
|
-
},
|
|
4328
|
-
reloadBlade: () => {
|
|
4329
|
-
const p = o.value;
|
|
4330
|
-
p && l({
|
|
4331
|
-
name: p.name,
|
|
4332
|
-
param: p.param,
|
|
4333
|
-
query: p.query,
|
|
4334
|
-
options: p.options
|
|
4335
|
-
}).then(() => {
|
|
4336
|
-
q.debug("Current blade reloaded");
|
|
4337
|
-
}).catch((d) => {
|
|
4338
|
-
q.warn("Failed to reload current blade", d);
|
|
4273
|
+
navigateToBlade: (g, h, y) => {
|
|
4274
|
+
r({ name: g, param: h, options: y }).then(() => {
|
|
4275
|
+
q.debug(`Navigated to blade: ${g}`);
|
|
4276
|
+
}).catch((w) => {
|
|
4277
|
+
q.warn(`Blade not found or cannot be opened: ${g}`, w);
|
|
4339
4278
|
});
|
|
4340
4279
|
},
|
|
4341
4280
|
initialConfig: i?.config,
|
|
4342
|
-
isEmbedded:
|
|
4281
|
+
isEmbedded: l
|
|
4343
4282
|
});
|
|
4344
|
-
if (
|
|
4345
|
-
const
|
|
4346
|
-
|
|
4283
|
+
if (Ce(ve, c), q.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
|
|
4284
|
+
const g = L(mt, null);
|
|
4285
|
+
g ? (g.registerToolbarItem(
|
|
4347
4286
|
{
|
|
4348
4287
|
id: bt,
|
|
4349
4288
|
icon: xt,
|
|
4350
4289
|
title: Et,
|
|
4351
4290
|
clickHandler: () => {
|
|
4352
|
-
|
|
4291
|
+
c.togglePanel();
|
|
4353
4292
|
}
|
|
4354
4293
|
},
|
|
4355
4294
|
"*"
|
|
4356
4295
|
// Wildcard for all blades
|
|
4357
4296
|
), q.debug("Global AI toolbar button registered with wildcard '*'")) : q.warn("Toolbar service not available, AI button not registered");
|
|
4358
4297
|
}
|
|
4359
|
-
return
|
|
4298
|
+
return c;
|
|
4360
4299
|
}
|
|
4361
|
-
function
|
|
4362
|
-
const i =
|
|
4300
|
+
function hn() {
|
|
4301
|
+
const i = L(ve);
|
|
4363
4302
|
if (!i) {
|
|
4364
4303
|
q.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
|
|
4365
4304
|
return;
|
|
@@ -4385,7 +4324,7 @@ function dn() {
|
|
|
4385
4324
|
onMessage: i.onMessage
|
|
4386
4325
|
};
|
|
4387
4326
|
}
|
|
4388
|
-
function
|
|
4327
|
+
function dn(i) {
|
|
4389
4328
|
return {
|
|
4390
4329
|
id: "ai-agent-toggle",
|
|
4391
4330
|
icon: i?.icon ?? "lucide-sparkles",
|
|
@@ -4395,11 +4334,11 @@ function fn(i) {
|
|
|
4395
4334
|
}
|
|
4396
4335
|
};
|
|
4397
4336
|
}
|
|
4398
|
-
const
|
|
4337
|
+
const It = ["width", "height"], Rt = ["clip-path"], jt = {
|
|
4399
4338
|
key: 1,
|
|
4400
4339
|
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",
|
|
4401
4340
|
fill: "url(#virto-oz-gradient-animated)"
|
|
4402
|
-
},
|
|
4341
|
+
}, $t = ["id"], Nt = {
|
|
4403
4342
|
key: 1,
|
|
4404
4343
|
id: "virto-oz-gradient-animated",
|
|
4405
4344
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -4407,7 +4346,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4407
4346
|
y1: "0",
|
|
4408
4347
|
x2: "99",
|
|
4409
4348
|
y2: "108"
|
|
4410
|
-
}, $e = /* @__PURE__ */
|
|
4349
|
+
}, $e = /* @__PURE__ */ M({
|
|
4411
4350
|
__name: "VcVirtoOzLogo",
|
|
4412
4351
|
props: {
|
|
4413
4352
|
width: { default: 22 },
|
|
@@ -4415,8 +4354,8 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4415
4354
|
animated: { type: Boolean, default: !1 }
|
|
4416
4355
|
},
|
|
4417
4356
|
setup(i) {
|
|
4418
|
-
const e =
|
|
4419
|
-
return (t, n) => (
|
|
4357
|
+
const e = d(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
4358
|
+
return (t, n) => (S(), j("svg", {
|
|
4420
4359
|
width: i.width,
|
|
4421
4360
|
height: i.height,
|
|
4422
4361
|
viewBox: "0 0 99 108",
|
|
@@ -4424,22 +4363,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4424
4363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4425
4364
|
class: "vc-virto-oz-logo"
|
|
4426
4365
|
}, [
|
|
4427
|
-
n[3] || (n[3] =
|
|
4366
|
+
n[3] || (n[3] = R("path", {
|
|
4428
4367
|
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",
|
|
4429
4368
|
fill: "white"
|
|
4430
4369
|
}, null, -1)),
|
|
4431
|
-
i.animated ? (
|
|
4370
|
+
i.animated ? (S(), j("path", jt)) : (S(), j("g", {
|
|
4432
4371
|
key: 0,
|
|
4433
4372
|
"clip-path": `url(#${e.value})`
|
|
4434
4373
|
}, [...n[0] || (n[0] = [
|
|
4435
|
-
|
|
4436
|
-
|
|
4374
|
+
R("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
|
|
4375
|
+
R("foreignObject", {
|
|
4437
4376
|
x: "-334.01",
|
|
4438
4377
|
y: "-334.01",
|
|
4439
4378
|
width: "668.02",
|
|
4440
4379
|
height: "668.02"
|
|
4441
4380
|
}, [
|
|
4442
|
-
|
|
4381
|
+
R("div", {
|
|
4443
4382
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
4444
4383
|
style: { background: `conic-gradient(
|
|
4445
4384
|
from 90deg,
|
|
@@ -4453,46 +4392,46 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4453
4392
|
})
|
|
4454
4393
|
])
|
|
4455
4394
|
], -1)
|
|
4456
|
-
])], 8,
|
|
4457
|
-
n[4] || (n[4] =
|
|
4395
|
+
])], 8, Rt)),
|
|
4396
|
+
n[4] || (n[4] = R("path", {
|
|
4458
4397
|
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",
|
|
4459
4398
|
fill: "white"
|
|
4460
4399
|
}, null, -1)),
|
|
4461
|
-
n[5] || (n[5] =
|
|
4400
|
+
n[5] || (n[5] = R("ellipse", {
|
|
4462
4401
|
cx: "49.12",
|
|
4463
4402
|
cy: "54.09",
|
|
4464
4403
|
rx: "4.05",
|
|
4465
4404
|
ry: "4.05",
|
|
4466
4405
|
fill: "#6C6C6C"
|
|
4467
4406
|
}, null, -1)),
|
|
4468
|
-
n[6] || (n[6] =
|
|
4407
|
+
n[6] || (n[6] = R("ellipse", {
|
|
4469
4408
|
cx: "60.62",
|
|
4470
4409
|
cy: "54.09",
|
|
4471
4410
|
rx: "4.05",
|
|
4472
4411
|
ry: "4.05",
|
|
4473
4412
|
fill: "#6C6C6C"
|
|
4474
4413
|
}, null, -1)),
|
|
4475
|
-
n[7] || (n[7] =
|
|
4414
|
+
n[7] || (n[7] = R("ellipse", {
|
|
4476
4415
|
cx: "37.62",
|
|
4477
4416
|
cy: "54.09",
|
|
4478
4417
|
rx: "4.05",
|
|
4479
4418
|
ry: "4.05",
|
|
4480
4419
|
fill: "#6C6C6C"
|
|
4481
4420
|
}, null, -1)),
|
|
4482
|
-
|
|
4483
|
-
i.animated ? Z("", !0) : (
|
|
4421
|
+
R("defs", null, [
|
|
4422
|
+
i.animated ? Z("", !0) : (S(), j("clipPath", {
|
|
4484
4423
|
key: 0,
|
|
4485
4424
|
id: e.value
|
|
4486
4425
|
}, [...n[1] || (n[1] = [
|
|
4487
|
-
|
|
4488
|
-
])], 8,
|
|
4489
|
-
i.animated ? (
|
|
4426
|
+
R("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)
|
|
4427
|
+
])], 8, $t)),
|
|
4428
|
+
i.animated ? (S(), j("linearGradient", Nt, [...n[2] || (n[2] = [
|
|
4490
4429
|
Ge('<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)
|
|
4491
4430
|
])])) : Z("", !0)
|
|
4492
4431
|
])
|
|
4493
|
-
], 8,
|
|
4432
|
+
], 8, It));
|
|
4494
4433
|
}
|
|
4495
|
-
}), zt = /* @__PURE__ */
|
|
4434
|
+
}), zt = /* @__PURE__ */ M({
|
|
4496
4435
|
__name: "vc-material-icon",
|
|
4497
4436
|
props: {
|
|
4498
4437
|
icon: {},
|
|
@@ -4502,20 +4441,20 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4502
4441
|
customSize: {}
|
|
4503
4442
|
},
|
|
4504
4443
|
setup(i) {
|
|
4505
|
-
const e = i, t =
|
|
4506
|
-
return
|
|
4507
|
-
}), (r, a) => (
|
|
4444
|
+
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4445
|
+
return oe(() => {
|
|
4446
|
+
}), (r, a) => (S(), j("span", {
|
|
4508
4447
|
class: K([
|
|
4509
4448
|
"vc-material-icon",
|
|
4510
4449
|
"material-symbols-" + i.type,
|
|
4511
4450
|
!t.value && `vc-material-icon--${i.size}`,
|
|
4512
4451
|
i.variant ? `vc-material-icon--${i.variant}` : ""
|
|
4513
4452
|
]),
|
|
4514
|
-
style:
|
|
4453
|
+
style: Y(n.value),
|
|
4515
4454
|
"aria-hidden": "true"
|
|
4516
4455
|
}, pe(i.icon), 7));
|
|
4517
4456
|
}
|
|
4518
|
-
}),
|
|
4457
|
+
}), Bt = /* @__PURE__ */ M({
|
|
4519
4458
|
__name: "vc-bootstrap-icon",
|
|
4520
4459
|
props: {
|
|
4521
4460
|
icon: {},
|
|
@@ -4524,22 +4463,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4524
4463
|
customSize: {}
|
|
4525
4464
|
},
|
|
4526
4465
|
setup(i) {
|
|
4527
|
-
const e = i, t =
|
|
4528
|
-
|
|
4466
|
+
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4467
|
+
oe(() => {
|
|
4529
4468
|
});
|
|
4530
|
-
const r =
|
|
4531
|
-
return (a, o) => (
|
|
4469
|
+
const r = d(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
4470
|
+
return (a, o) => (S(), j("i", {
|
|
4532
4471
|
class: K([
|
|
4533
4472
|
"vc-bootstrap-icon",
|
|
4534
4473
|
!t.value && `vc-bootstrap-icon--${i.size}`,
|
|
4535
4474
|
r.value,
|
|
4536
4475
|
i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
|
|
4537
4476
|
]),
|
|
4538
|
-
style:
|
|
4477
|
+
style: Y(n.value),
|
|
4539
4478
|
"aria-hidden": "true"
|
|
4540
4479
|
}, null, 6));
|
|
4541
4480
|
}
|
|
4542
|
-
}),
|
|
4481
|
+
}), kt = /* @__PURE__ */ M({
|
|
4543
4482
|
__name: "vc-lucide-icon",
|
|
4544
4483
|
props: {
|
|
4545
4484
|
icon: {},
|
|
@@ -4549,18 +4488,18 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4549
4488
|
customSize: {}
|
|
4550
4489
|
},
|
|
4551
4490
|
setup(i) {
|
|
4552
|
-
const e =
|
|
4491
|
+
const e = $("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
|
|
4553
4492
|
if (!t.icon) return "HelpCircleIcon";
|
|
4554
4493
|
let l = t.icon;
|
|
4555
4494
|
return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
|
|
4556
|
-
}), a =
|
|
4495
|
+
}), a = d(() => {
|
|
4557
4496
|
const l = r.value, c = Le[l];
|
|
4558
4497
|
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : we(c);
|
|
4559
|
-
}), o =
|
|
4498
|
+
}), o = d(() => n.value && t.customSize ? {
|
|
4560
4499
|
width: `${t.customSize}px`,
|
|
4561
4500
|
height: `${t.customSize}px`
|
|
4562
4501
|
} : {});
|
|
4563
|
-
return (l, c) => a.value ? (
|
|
4502
|
+
return (l, c) => a.value ? (S(), X(fe(a.value), {
|
|
4564
4503
|
key: 0,
|
|
4565
4504
|
"stroke-width": t.strokeWidth,
|
|
4566
4505
|
class: K([
|
|
@@ -4568,16 +4507,16 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4568
4507
|
!n.value && `vc-lucide-icon--${i.size}`,
|
|
4569
4508
|
i.variant ? `vc-lucide-icon--${i.variant}` : ""
|
|
4570
4509
|
]),
|
|
4571
|
-
style:
|
|
4510
|
+
style: Y(o.value),
|
|
4572
4511
|
"aria-hidden": "true"
|
|
4573
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (
|
|
4512
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (S(), j("span", {
|
|
4574
4513
|
key: 1,
|
|
4575
4514
|
class: K(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
|
|
4576
4515
|
}, [...c[0] || (c[0] = [
|
|
4577
|
-
|
|
4516
|
+
R("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
4578
4517
|
])], 2));
|
|
4579
4518
|
}
|
|
4580
|
-
}),
|
|
4519
|
+
}), Gt = /* @__PURE__ */ M({
|
|
4581
4520
|
__name: "vc-fontawesome-icon",
|
|
4582
4521
|
props: {
|
|
4583
4522
|
icon: {},
|
|
@@ -4586,22 +4525,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4586
4525
|
customSize: {}
|
|
4587
4526
|
},
|
|
4588
4527
|
setup(i) {
|
|
4589
|
-
const e = i, t =
|
|
4590
|
-
|
|
4528
|
+
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4529
|
+
oe(() => {
|
|
4591
4530
|
});
|
|
4592
|
-
const r =
|
|
4593
|
-
return (a, o) => (
|
|
4531
|
+
const r = d(() => 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}`);
|
|
4532
|
+
return (a, o) => (S(), j("i", {
|
|
4594
4533
|
class: K([
|
|
4595
4534
|
"vc-fa-icon",
|
|
4596
4535
|
!t.value && `vc-fa-icon--${i.size}`,
|
|
4597
4536
|
r.value,
|
|
4598
4537
|
i.variant ? `vc-fa-icon--${i.variant}` : ""
|
|
4599
4538
|
]),
|
|
4600
|
-
style:
|
|
4539
|
+
style: Y(n.value),
|
|
4601
4540
|
"aria-hidden": "true"
|
|
4602
4541
|
}, null, 6));
|
|
4603
4542
|
}
|
|
4604
|
-
}),
|
|
4543
|
+
}), Ft = ["xlink:href"], Dt = /* @__PURE__ */ M({
|
|
4605
4544
|
inheritAttrs: !1,
|
|
4606
4545
|
__name: "vc-svg-icon",
|
|
4607
4546
|
props: {
|
|
@@ -4613,7 +4552,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4613
4552
|
strokeWidth: {}
|
|
4614
4553
|
},
|
|
4615
4554
|
setup(i) {
|
|
4616
|
-
const e = i, t =
|
|
4555
|
+
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => {
|
|
4617
4556
|
if (e.icon.startsWith("/") || e.icon.includes("://") || e.icon.startsWith("#"))
|
|
4618
4557
|
return e.icon;
|
|
4619
4558
|
const a = e.icon.indexOf("#");
|
|
@@ -4622,22 +4561,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4622
4561
|
return `${e.basePath}/${o}${l}`;
|
|
4623
4562
|
}
|
|
4624
4563
|
return `${e.basePath}/${e.icon}`;
|
|
4625
|
-
}), r =
|
|
4564
|
+
}), r = d(() => {
|
|
4626
4565
|
const a = {};
|
|
4627
4566
|
return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
|
|
4628
4567
|
});
|
|
4629
|
-
return (a, o) => (
|
|
4568
|
+
return (a, o) => (S(), j("svg", ae({
|
|
4630
4569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4631
4570
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
|
|
4632
4571
|
style: r.value
|
|
4633
4572
|
}, a.$attrs), [
|
|
4634
|
-
n.value ? (
|
|
4573
|
+
n.value ? (S(), j("use", {
|
|
4635
4574
|
key: 0,
|
|
4636
4575
|
"xlink:href": n.value
|
|
4637
|
-
}, null, 8,
|
|
4576
|
+
}, null, 8, Ft)) : Z("", !0)
|
|
4638
4577
|
], 16));
|
|
4639
4578
|
}
|
|
4640
|
-
}),
|
|
4579
|
+
}), Mt = ["aria-hidden", "aria-label", "role"], ie = /* @__PURE__ */ M({
|
|
4641
4580
|
__name: "vc-icon",
|
|
4642
4581
|
props: {
|
|
4643
4582
|
icon: { default: "lucide-square" },
|
|
@@ -4650,7 +4589,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4650
4589
|
},
|
|
4651
4590
|
setup(i) {
|
|
4652
4591
|
const e = i;
|
|
4653
|
-
|
|
4592
|
+
oe(() => {
|
|
4654
4593
|
});
|
|
4655
4594
|
const t = {
|
|
4656
4595
|
xs: 12,
|
|
@@ -4660,25 +4599,25 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4660
4599
|
xl: 22,
|
|
4661
4600
|
xxl: 30,
|
|
4662
4601
|
xxxl: 64
|
|
4663
|
-
}, n =
|
|
4602
|
+
}, n = d(() => typeof e.icon != "string" ? "custom" : e.icon.startsWith("fa-") || e.icon.includes("fa-") ? "fontawesome" : e.icon.startsWith("bi-") ? "bootstrap" : e.icon.startsWith("lucide-") ? "lucide" : e.icon.startsWith("material-") ? "material" : e.icon.startsWith("svg:") ? "svg" : e.icon.endsWith("Icon") ? "lucide" : "custom"), r = d(() => {
|
|
4664
4603
|
if (typeof e.icon != "string")
|
|
4665
4604
|
return e.icon;
|
|
4666
4605
|
if (n.value === "material" && e.icon.startsWith("material-"))
|
|
4667
4606
|
return e.icon.replace(/^material-/, "");
|
|
4668
4607
|
if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
|
|
4669
|
-
const
|
|
4670
|
-
return
|
|
4608
|
+
const b = e.icon.replace(/^lucide-/, "");
|
|
4609
|
+
return b.endsWith("Icon") ? b : `${b}Icon`;
|
|
4671
4610
|
}
|
|
4672
4611
|
return e.icon;
|
|
4673
|
-
}), a =
|
|
4612
|
+
}), a = d(() => n.value === "material"), o = d(() => n.value === "bootstrap"), l = d(() => n.value === "lucide"), c = d(() => n.value === "fontawesome"), p = d(() => {
|
|
4674
4613
|
if (typeof e.icon != "string")
|
|
4675
4614
|
return !0;
|
|
4676
4615
|
if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
|
|
4677
4616
|
return !1;
|
|
4678
4617
|
if (l.value)
|
|
4679
4618
|
try {
|
|
4680
|
-
const
|
|
4681
|
-
return ce(
|
|
4619
|
+
const b = typeof r.value == "string" ? r.value : String(r.value);
|
|
4620
|
+
return ce(b) !== b;
|
|
4682
4621
|
} catch {
|
|
4683
4622
|
return !1;
|
|
4684
4623
|
}
|
|
@@ -4687,23 +4626,23 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4687
4626
|
} catch {
|
|
4688
4627
|
return !1;
|
|
4689
4628
|
}
|
|
4690
|
-
}),
|
|
4629
|
+
}), g = d(() => {
|
|
4691
4630
|
if (typeof e.icon != "string")
|
|
4692
4631
|
return we(e.icon);
|
|
4693
4632
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
4694
4633
|
return "i";
|
|
4695
4634
|
try {
|
|
4696
|
-
const
|
|
4697
|
-
return
|
|
4635
|
+
const b = typeof r.value == "string" ? r.value : String(r.value), m = ce(b);
|
|
4636
|
+
return m !== b ? m : "i";
|
|
4698
4637
|
} catch {
|
|
4699
4638
|
return "i";
|
|
4700
4639
|
}
|
|
4701
|
-
}),
|
|
4702
|
-
const
|
|
4703
|
-
return
|
|
4704
|
-
}),
|
|
4640
|
+
}), h = d(() => a.value ? zt : o.value ? Bt : l.value ? kt : c.value ? Gt : N.value ? Dt : p.value ? g.value : "i"), y = d(() => e.customSize ? e.customSize : t[e.size]), w = d(() => {
|
|
4641
|
+
const b = {};
|
|
4642
|
+
return p.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
|
|
4643
|
+
}), x = d(() => e.customSize ? {
|
|
4705
4644
|
fontSize: `${e.customSize}px`
|
|
4706
|
-
} : {}),
|
|
4645
|
+
} : {}), O = d(() => a.value ? {
|
|
4707
4646
|
icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
|
|
4708
4647
|
size: e.size,
|
|
4709
4648
|
variant: e.variant,
|
|
@@ -4732,50 +4671,50 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4732
4671
|
variant: e.variant,
|
|
4733
4672
|
customSize: e.customSize
|
|
4734
4673
|
// Set custom size without scaling
|
|
4735
|
-
} :
|
|
4736
|
-
icon:
|
|
4674
|
+
} : N.value ? {
|
|
4675
|
+
icon: D.value,
|
|
4737
4676
|
size: e.size,
|
|
4738
4677
|
variant: e.variant,
|
|
4739
4678
|
customSize: e.customSize,
|
|
4740
4679
|
basePath: e.basePath
|
|
4741
|
-
} :
|
|
4680
|
+
} : p.value ? {
|
|
4742
4681
|
size: e.size,
|
|
4743
|
-
width:
|
|
4744
|
-
height:
|
|
4682
|
+
width: y.value,
|
|
4683
|
+
height: y.value,
|
|
4745
4684
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
4746
|
-
} : {}),
|
|
4747
|
-
return (
|
|
4685
|
+
} : {}), N = d(() => n.value === "svg"), D = d(() => !N.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
4686
|
+
return (b, m) => i.useContainer ? (S(), j("div", ae({
|
|
4748
4687
|
key: 0,
|
|
4749
4688
|
class: ["vc-icon-container", `vc-icon-container--${i.size}`],
|
|
4750
|
-
style:
|
|
4689
|
+
style: x.value,
|
|
4751
4690
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
4752
4691
|
"aria-label": i.ariaLabel || void 0,
|
|
4753
4692
|
role: i.ariaLabel ? "img" : void 0
|
|
4754
|
-
},
|
|
4755
|
-
(
|
|
4693
|
+
}, b.$attrs), [
|
|
4694
|
+
(S(), X(fe(h.value), ae({
|
|
4756
4695
|
class: [
|
|
4757
4696
|
"vc-icon",
|
|
4758
4697
|
`vc-icon--${i.size}`,
|
|
4759
4698
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
4760
|
-
!
|
|
4699
|
+
!p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
|
|
4761
4700
|
],
|
|
4762
|
-
style:
|
|
4763
|
-
},
|
|
4764
|
-
], 16,
|
|
4701
|
+
style: w.value
|
|
4702
|
+
}, O.value), null, 16, ["class", "style"]))
|
|
4703
|
+
], 16, Mt)) : (S(), X(fe(h.value), ae({
|
|
4765
4704
|
key: 1,
|
|
4766
4705
|
class: [
|
|
4767
4706
|
"vc-icon",
|
|
4768
4707
|
`vc-icon--${i.size}`,
|
|
4769
4708
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
4770
|
-
!
|
|
4709
|
+
!p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
|
|
4771
4710
|
],
|
|
4772
|
-
style:
|
|
4711
|
+
style: w.value,
|
|
4773
4712
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
4774
4713
|
"aria-label": i.ariaLabel || void 0,
|
|
4775
4714
|
role: i.ariaLabel ? "img" : void 0
|
|
4776
|
-
}, { ...
|
|
4715
|
+
}, { ...O.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
4777
4716
|
}
|
|
4778
|
-
}),
|
|
4717
|
+
}), Lt = { class: "vc-ai-agent-header" }, Jt = { class: "vc-ai-agent-header__icon" }, Wt = { class: "vc-ai-agent-header__wrapper" }, Vt = { class: "vc-ai-agent-header__content" }, Kt = { class: "vc-ai-agent-header__title" }, qt = { class: "vc-ai-agent-header__controls" }, Ht = /* @__PURE__ */ M({
|
|
4779
4718
|
__name: "VcAiAgentHeader",
|
|
4780
4719
|
props: {
|
|
4781
4720
|
title: {},
|
|
@@ -4784,78 +4723,78 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4784
4723
|
},
|
|
4785
4724
|
emits: ["close", "expand", "collapse"],
|
|
4786
4725
|
setup(i) {
|
|
4787
|
-
return (e, t) => (
|
|
4788
|
-
|
|
4726
|
+
return (e, t) => (S(), j("div", Lt, [
|
|
4727
|
+
R("div", Jt, [
|
|
4789
4728
|
W($e, {
|
|
4790
4729
|
width: 22,
|
|
4791
4730
|
height: 24,
|
|
4792
4731
|
"show-dots": ""
|
|
4793
4732
|
})
|
|
4794
4733
|
]),
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4734
|
+
R("div", Wt, [
|
|
4735
|
+
R("div", Vt, [
|
|
4736
|
+
R("div", Kt, pe(i.title), 1)
|
|
4798
4737
|
])
|
|
4799
4738
|
]),
|
|
4800
|
-
|
|
4801
|
-
i.isExpanded ? (
|
|
4739
|
+
R("div", qt, [
|
|
4740
|
+
i.isExpanded ? (S(), j("div", {
|
|
4802
4741
|
key: 0,
|
|
4803
4742
|
class: "vc-ai-agent-header__button",
|
|
4804
4743
|
title: "Collapse",
|
|
4805
4744
|
onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
|
|
4806
4745
|
}, [
|
|
4807
|
-
W(ie
|
|
4808
|
-
])) : (
|
|
4746
|
+
W(se(ie), { icon: "lucide-minus" })
|
|
4747
|
+
])) : (S(), j("div", {
|
|
4809
4748
|
key: 1,
|
|
4810
4749
|
class: "vc-ai-agent-header__button",
|
|
4811
4750
|
title: "Expand",
|
|
4812
4751
|
onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
|
|
4813
4752
|
}, [
|
|
4814
|
-
W(ie
|
|
4753
|
+
W(se(ie), { icon: "lucide-panel-top" })
|
|
4815
4754
|
])),
|
|
4816
|
-
|
|
4755
|
+
R("div", {
|
|
4817
4756
|
class: "vc-ai-agent-header__button",
|
|
4818
4757
|
title: "Close",
|
|
4819
4758
|
onClick: t[2] || (t[2] = (n) => e.$emit("close"))
|
|
4820
4759
|
}, [
|
|
4821
|
-
W(ie
|
|
4760
|
+
W(se(ie), { icon: "lucide-x" })
|
|
4822
4761
|
])
|
|
4823
4762
|
])
|
|
4824
4763
|
]));
|
|
4825
4764
|
}
|
|
4826
|
-
}),
|
|
4765
|
+
}), Zt = { class: "vc-ai-agent-loader" }, Xt = { class: "vc-ai-agent-loader__content" }, Yt = { class: "vc-ai-agent-loader__logo" }, Qt = {
|
|
4827
4766
|
key: 0,
|
|
4828
4767
|
class: "vc-ai-agent-loader__text"
|
|
4829
|
-
},
|
|
4768
|
+
}, er = /* @__PURE__ */ M({
|
|
4830
4769
|
__name: "VcAiAgentLoader",
|
|
4831
4770
|
props: {
|
|
4832
4771
|
text: {}
|
|
4833
4772
|
},
|
|
4834
4773
|
setup(i) {
|
|
4835
|
-
return (e, t) => (
|
|
4836
|
-
|
|
4837
|
-
|
|
4774
|
+
return (e, t) => (S(), j("div", Zt, [
|
|
4775
|
+
R("div", Xt, [
|
|
4776
|
+
R("div", Yt, [
|
|
4838
4777
|
W($e, {
|
|
4839
4778
|
width: 80,
|
|
4840
4779
|
height: 87,
|
|
4841
4780
|
animated: ""
|
|
4842
4781
|
})
|
|
4843
4782
|
]),
|
|
4844
|
-
i.text ? (
|
|
4783
|
+
i.text ? (S(), j("p", Qt, pe(i.text), 1)) : Z("", !0)
|
|
4845
4784
|
])
|
|
4846
4785
|
]));
|
|
4847
4786
|
}
|
|
4848
|
-
}),
|
|
4787
|
+
}), tr = { class: "vc-ai-agent-iframe" }, rr = ["src"], nr = {
|
|
4849
4788
|
key: 1,
|
|
4850
4789
|
class: "vc-ai-agent-iframe__placeholder"
|
|
4851
|
-
},
|
|
4790
|
+
}, ar = /* @__PURE__ */ M({
|
|
4852
4791
|
__name: "VcAiAgentIframe",
|
|
4853
4792
|
props: {
|
|
4854
4793
|
url: {}
|
|
4855
4794
|
},
|
|
4856
4795
|
emits: ["iframe-ready"],
|
|
4857
4796
|
setup(i, { emit: e }) {
|
|
4858
|
-
const t =
|
|
4797
|
+
const t = $("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
|
|
4859
4798
|
H(
|
|
4860
4799
|
a,
|
|
4861
4800
|
(c) => {
|
|
@@ -4871,17 +4810,17 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4871
4810
|
() => {
|
|
4872
4811
|
o.value = !0;
|
|
4873
4812
|
}
|
|
4874
|
-
), (c,
|
|
4813
|
+
), (c, p) => (S(), j("div", tr, [
|
|
4875
4814
|
W(Ae, { name: "fade" }, {
|
|
4876
4815
|
default: Pe(() => [
|
|
4877
|
-
o.value && i.url ? (
|
|
4816
|
+
o.value && i.url ? (S(), X(er, {
|
|
4878
4817
|
key: 0,
|
|
4879
4818
|
text: c.$t("AI_AGENT.LOADING")
|
|
4880
4819
|
}, null, 8, ["text"])) : Z("", !0)
|
|
4881
4820
|
]),
|
|
4882
4821
|
_: 1
|
|
4883
4822
|
}),
|
|
4884
|
-
i.url ? (
|
|
4823
|
+
i.url ? (S(), j("iframe", {
|
|
4885
4824
|
key: 0,
|
|
4886
4825
|
ref_key: "iframeRef",
|
|
4887
4826
|
ref: a,
|
|
@@ -4890,51 +4829,51 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4890
4829
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
4891
4830
|
allow: "clipboard-read; clipboard-write",
|
|
4892
4831
|
onLoad: l
|
|
4893
|
-
}, null, 42,
|
|
4894
|
-
W(ie
|
|
4832
|
+
}, null, 42, rr)) : (S(), j("div", nr, [
|
|
4833
|
+
W(se(ie), {
|
|
4895
4834
|
icon: "lucide-sparkles",
|
|
4896
4835
|
size: "xl",
|
|
4897
4836
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
4898
4837
|
}),
|
|
4899
|
-
|
|
4838
|
+
p[0] || (p[0] = R("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
|
|
4900
4839
|
]))
|
|
4901
4840
|
]));
|
|
4902
4841
|
}
|
|
4903
|
-
}),
|
|
4842
|
+
}), sr = { class: "vc-ai-agent-panel__content" }, fn = /* @__PURE__ */ M({
|
|
4904
4843
|
__name: "VcAiAgentPanel",
|
|
4905
4844
|
setup(i) {
|
|
4906
|
-
const e =
|
|
4845
|
+
const e = L(ve), t = L(vt, !1);
|
|
4907
4846
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
4908
|
-
const n =
|
|
4847
|
+
const n = d(
|
|
4909
4848
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
4910
|
-
), r =
|
|
4849
|
+
), r = d(() => !t && (e?.isOpen.value ?? !1)), a = d(() => e?.isExpanded.value ?? !1), o = d(() => e?.totalItemsCount.value ?? 0), l = d(() => ({
|
|
4911
4850
|
width: a.value ? `${n.value.expandedWidth ?? 500}px` : `${n.value.width ?? 362}px`
|
|
4912
|
-
})), c = () => e?.closePanel(),
|
|
4913
|
-
e?._setIframeRef(
|
|
4851
|
+
})), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (y) => {
|
|
4852
|
+
e?._setIframeRef(y);
|
|
4914
4853
|
};
|
|
4915
4854
|
return Fe(() => {
|
|
4916
4855
|
e?._setIframeRef(null);
|
|
4917
|
-
}), (
|
|
4856
|
+
}), (y, w) => (S(), X(Ae, { name: "ai-panel-slide" }, {
|
|
4918
4857
|
default: Pe(() => [
|
|
4919
|
-
r.value ? (
|
|
4858
|
+
r.value ? (S(), j("div", {
|
|
4920
4859
|
key: 0,
|
|
4921
4860
|
class: K(["vc-ai-agent-panel", {
|
|
4922
4861
|
"vc-ai-agent-panel--expanded": a.value
|
|
4923
4862
|
}]),
|
|
4924
|
-
style:
|
|
4863
|
+
style: Y(l.value)
|
|
4925
4864
|
}, [
|
|
4926
|
-
W(
|
|
4865
|
+
W(Ht, {
|
|
4927
4866
|
title: n.value.title,
|
|
4928
4867
|
"is-expanded": a.value,
|
|
4929
4868
|
"items-count": o.value,
|
|
4930
4869
|
onClose: c,
|
|
4931
|
-
onExpand:
|
|
4932
|
-
onCollapse:
|
|
4870
|
+
onExpand: p,
|
|
4871
|
+
onCollapse: g
|
|
4933
4872
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
4934
|
-
|
|
4935
|
-
W(
|
|
4873
|
+
R("div", sr, [
|
|
4874
|
+
W(ar, {
|
|
4936
4875
|
url: n.value.url,
|
|
4937
|
-
onIframeReady:
|
|
4876
|
+
onIframeReady: h
|
|
4938
4877
|
}, null, 8, ["url"])
|
|
4939
4878
|
])
|
|
4940
4879
|
], 6)) : Z("", !0)
|
|
@@ -4944,95 +4883,95 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4944
4883
|
}
|
|
4945
4884
|
});
|
|
4946
4885
|
export {
|
|
4947
|
-
|
|
4948
|
-
|
|
4886
|
+
pr as $,
|
|
4887
|
+
en as A,
|
|
4949
4888
|
ht as B,
|
|
4950
|
-
|
|
4889
|
+
Mr as C,
|
|
4951
4890
|
gt as D,
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4891
|
+
tn as E,
|
|
4892
|
+
Lr as F,
|
|
4893
|
+
Vr as G,
|
|
4894
|
+
rn as H,
|
|
4895
|
+
Jr as I,
|
|
4957
4896
|
Kr as J,
|
|
4958
|
-
|
|
4897
|
+
Nr as K,
|
|
4959
4898
|
pt as L,
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4899
|
+
kr as M,
|
|
4900
|
+
jr as N,
|
|
4901
|
+
$r as O,
|
|
4902
|
+
Or as P,
|
|
4964
4903
|
tt as Q,
|
|
4965
4904
|
zr as R,
|
|
4966
4905
|
Tr as S,
|
|
4967
4906
|
mt as T,
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4907
|
+
dr as U,
|
|
4908
|
+
qe as V,
|
|
4909
|
+
Ir as W,
|
|
4910
|
+
Fr as X,
|
|
4911
|
+
fr as Y,
|
|
4912
|
+
k as Z,
|
|
4913
|
+
ie as _,
|
|
4914
|
+
fn as a,
|
|
4915
|
+
Pr as a0,
|
|
4977
4916
|
ft as a1,
|
|
4978
4917
|
dt as a2,
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4918
|
+
Qr as a3,
|
|
4919
|
+
Ar as a4,
|
|
4920
|
+
mr as a5,
|
|
4921
|
+
Hr as a6,
|
|
4922
|
+
Rr as a7,
|
|
4923
|
+
vr as a8,
|
|
4924
|
+
gr as a9,
|
|
4925
|
+
cn as aA,
|
|
4926
|
+
Br as aa,
|
|
4927
|
+
br as ab,
|
|
4989
4928
|
He as ac,
|
|
4990
4929
|
vt as ad,
|
|
4991
4930
|
Ze as ae,
|
|
4992
4931
|
Ve as af,
|
|
4993
|
-
|
|
4994
|
-
|
|
4932
|
+
qr as ag,
|
|
4933
|
+
xr as ah,
|
|
4995
4934
|
Xe as ai,
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
4935
|
+
Er as aj,
|
|
4936
|
+
yr as ak,
|
|
4937
|
+
Gr as al,
|
|
4938
|
+
_r as am,
|
|
5000
4939
|
Ye as an,
|
|
5001
|
-
|
|
5002
|
-
|
|
4940
|
+
Ur as ao,
|
|
4941
|
+
Ke as ap,
|
|
5003
4942
|
Qe as aq,
|
|
5004
4943
|
Sr as ar,
|
|
5005
|
-
|
|
4944
|
+
Dr as as,
|
|
5006
4945
|
et as at,
|
|
5007
4946
|
ot as au,
|
|
5008
4947
|
lt as av,
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
4948
|
+
Cr as aw,
|
|
4949
|
+
wr as ax,
|
|
4950
|
+
Ot as ay,
|
|
5012
4951
|
ut as az,
|
|
5013
4952
|
ve as b,
|
|
5014
|
-
|
|
5015
|
-
|
|
4953
|
+
dn as c,
|
|
4954
|
+
$ as d,
|
|
5016
4955
|
Ue as e,
|
|
5017
|
-
|
|
4956
|
+
un as f,
|
|
5018
4957
|
Oe as g,
|
|
5019
4958
|
ct as h,
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
4959
|
+
sn as i,
|
|
4960
|
+
nn as j,
|
|
4961
|
+
on as k,
|
|
4962
|
+
Xr as l,
|
|
4963
|
+
Zr as m,
|
|
4964
|
+
At as n,
|
|
5026
4965
|
at as o,
|
|
5027
|
-
|
|
4966
|
+
ln as p,
|
|
5028
4967
|
Ie as q,
|
|
5029
4968
|
Re as r,
|
|
5030
|
-
|
|
4969
|
+
an as s,
|
|
5031
4970
|
St as t,
|
|
5032
|
-
|
|
4971
|
+
hn as u,
|
|
5033
4972
|
je as v,
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
4973
|
+
Se as w,
|
|
4974
|
+
Ct as x,
|
|
4975
|
+
Yr as y,
|
|
4976
|
+
Wr as z
|
|
5038
4977
|
};
|