@vc-shell/framework 2.0.10-pr243.88977c0 → 2.0.10-pr244.2b4e603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CThvtYtw.js} +426 -431
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CThvtYtw.js.map} +1 -1
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Ce8MS8-S.js → VcTableAdapter.vue_vue_type_style_index_0_lang-DTAzXuNi.js} +4034 -4020
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Ce8MS8-S.js.map → VcTableAdapter.vue_vue_type_style_index_0_lang-DTAzXuNi.js.map} +1 -1
- package/dist/chunks/{index-DELXU1qy.js → index-0btrtSam.js} +1 -1
- package/dist/chunks/{index-DELXU1qy.js.map → index-0btrtSam.js.map} +1 -1
- package/dist/core/composables/useBlade/index.d.ts +0 -2
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/framework.js +9 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +14 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableSelectionV2.d.ts +6 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useTableSelectionV2.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as G, computed as d, shallowRef as
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { j as
|
|
5
|
-
import { L as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
if (typeof e == "string" &&
|
|
1
|
+
import { ref as G, computed as d, shallowRef as Be, watch as Z, getCurrentInstance as te, inject as J, isRef as ke, provide as Ae, defineComponent as L, openBlock as C, createElementBlock as j, createElementVNode as R, createCommentVNode as X, createStaticVNode as Ge, onMounted as ue, normalizeStyle as ee, normalizeClass as q, toDisplayString as ge, markRaw as Pe, createBlock as Q, resolveDynamicComponent as ve, mergeProps as ie, resolveComponent as fe, createVNode as K, unref as oe, Transition as Oe, withCtx as Ie, onUnmounted as Fe } from "vue";
|
|
2
|
+
import { c as re } from "./vendor-lodash-es-D2n90GJy.js";
|
|
3
|
+
import { u as De } from "./vendor-vueuse-core-CEdpDfzx.js";
|
|
4
|
+
import { j as Me } from "./vendor-vueuse-shared-BlCOXw5g.js";
|
|
5
|
+
import { L as Le } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
6
|
+
const Je = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
7
|
+
function We(i, e) {
|
|
8
|
+
if (typeof e == "string" && Je.test(e)) {
|
|
9
9
|
const t = new Date(e);
|
|
10
10
|
if (!isNaN(t.getTime()))
|
|
11
11
|
return t;
|
|
@@ -19,7 +19,7 @@ class k {
|
|
|
19
19
|
* Subclasses use this when parsing API responses.
|
|
20
20
|
* The dateReviver function is defined in File.Header.liquid template.
|
|
21
21
|
*/
|
|
22
|
-
jsonParseReviver =
|
|
22
|
+
jsonParseReviver = We;
|
|
23
23
|
constructor() {
|
|
24
24
|
}
|
|
25
25
|
// Enforce always return empty string as baseUrl
|
|
@@ -33,7 +33,7 @@ class k {
|
|
|
33
33
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
class
|
|
36
|
+
class Ve extends k {
|
|
37
37
|
http;
|
|
38
38
|
baseUrl;
|
|
39
39
|
constructor(e, t) {
|
|
@@ -140,7 +140,7 @@ class Ke extends k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 k {
|
|
|
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 Tr extends k {
|
|
|
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 k {
|
|
|
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
|
|
2829
|
+
class Tr extends k {
|
|
2830
2830
|
http;
|
|
2831
2831
|
baseUrl;
|
|
2832
2832
|
constructor(e, t) {
|
|
@@ -3223,8 +3223,8 @@ class Sr extends k {
|
|
|
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
|
|
3227
|
-
class
|
|
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
|
+
class tt extends Error {
|
|
3228
3228
|
message;
|
|
3229
3229
|
status;
|
|
3230
3230
|
response;
|
|
@@ -3239,21 +3239,21 @@ class rt extends Error {
|
|
|
3239
3239
|
}
|
|
3240
3240
|
}
|
|
3241
3241
|
function s(i, e, t, n, r) {
|
|
3242
|
-
throw r ?? new
|
|
3242
|
+
throw r ?? new tt(i, e, t, n, null);
|
|
3243
3243
|
}
|
|
3244
|
-
const
|
|
3244
|
+
const ye = {
|
|
3245
3245
|
debug: 0,
|
|
3246
3246
|
info: 1,
|
|
3247
3247
|
warn: 2,
|
|
3248
3248
|
error: 3,
|
|
3249
3249
|
none: 4
|
|
3250
|
-
},
|
|
3250
|
+
}, rt = {
|
|
3251
3251
|
level: "warn",
|
|
3252
3252
|
prefix: "@vc-shell/framework",
|
|
3253
3253
|
enabled: !0
|
|
3254
3254
|
};
|
|
3255
|
-
function
|
|
3256
|
-
const e = { ...
|
|
3255
|
+
function N(i) {
|
|
3256
|
+
const e = { ...rt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? ye[r] >= ye[e.level] : !1;
|
|
3257
3257
|
return {
|
|
3258
3258
|
/**
|
|
3259
3259
|
* Log debug messages (only in development)
|
|
@@ -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) => N(i ? `${i}:${r}` : r),
|
|
3286
3286
|
/**
|
|
3287
3287
|
* Set the log level for this logger instance
|
|
3288
3288
|
*/
|
|
@@ -3297,16 +3297,16 @@ function B(i) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
};
|
|
3299
3299
|
}
|
|
3300
|
-
const
|
|
3301
|
-
core:
|
|
3302
|
-
ui:
|
|
3303
|
-
shared:
|
|
3304
|
-
plugins:
|
|
3305
|
-
services:
|
|
3306
|
-
composables:
|
|
3307
|
-
},
|
|
3308
|
-
const i = new
|
|
3309
|
-
|
|
3300
|
+
const Cr = N(), wr = {
|
|
3301
|
+
core: N("core"),
|
|
3302
|
+
ui: N("ui"),
|
|
3303
|
+
shared: N("shared"),
|
|
3304
|
+
plugins: N("plugins"),
|
|
3305
|
+
services: N("services"),
|
|
3306
|
+
composables: N("composables")
|
|
3307
|
+
}, pe = N("use-external-provider"), nt = "externalSignIn", at = () => {
|
|
3308
|
+
const i = new Ve(), e = De(
|
|
3309
|
+
nt,
|
|
3310
3310
|
{},
|
|
3311
3311
|
{
|
|
3312
3312
|
listenToStorageChanges: !0,
|
|
@@ -3325,7 +3325,7 @@ const wr = B(), Ar = {
|
|
|
3325
3325
|
const p = new URL("/externalsignin", l);
|
|
3326
3326
|
p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(p);
|
|
3327
3327
|
} catch (l) {
|
|
3328
|
-
throw
|
|
3328
|
+
throw pe.error("External sign-in failed:", l), l;
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
async function r(o) {
|
|
@@ -3333,7 +3333,7 @@ const wr = B(), Ar = {
|
|
|
3333
3333
|
const l = window.location.origin, c = window.location.pathname ?? "/", p = new URL("/externalsignin/signout", l);
|
|
3334
3334
|
p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(p);
|
|
3335
3335
|
} catch (l) {
|
|
3336
|
-
throw
|
|
3336
|
+
throw pe.error("External sign-out failed:", l), l;
|
|
3337
3337
|
}
|
|
3338
3338
|
}
|
|
3339
3339
|
async function a() {
|
|
@@ -3341,7 +3341,7 @@ const wr = B(), Ar = {
|
|
|
3341
3341
|
try {
|
|
3342
3342
|
o = await i.getExternalLoginProviders();
|
|
3343
3343
|
} catch (l) {
|
|
3344
|
-
|
|
3344
|
+
pe.error("Failed to get external login providers:", l);
|
|
3345
3345
|
}
|
|
3346
3346
|
return o;
|
|
3347
3347
|
}
|
|
@@ -3351,10 +3351,10 @@ const wr = B(), Ar = {
|
|
|
3351
3351
|
signOut: r,
|
|
3352
3352
|
getProviders: a
|
|
3353
3353
|
};
|
|
3354
|
-
},
|
|
3355
|
-
function
|
|
3354
|
+
}, be = "vc_auth_data", w = N("use-user");
|
|
3355
|
+
function st() {
|
|
3356
3356
|
try {
|
|
3357
|
-
const i = localStorage.getItem(
|
|
3357
|
+
const i = localStorage.getItem(be);
|
|
3358
3358
|
if (i)
|
|
3359
3359
|
return JSON.parse(i);
|
|
3360
3360
|
} catch (i) {
|
|
@@ -3362,21 +3362,21 @@ function it() {
|
|
|
3362
3362
|
}
|
|
3363
3363
|
return null;
|
|
3364
3364
|
}
|
|
3365
|
-
function
|
|
3365
|
+
function _e(i) {
|
|
3366
3366
|
try {
|
|
3367
|
-
w.debug("storeAuthData - Saving:", i), localStorage.setItem(
|
|
3367
|
+
w.debug("storeAuthData - Saving:", i), localStorage.setItem(be, JSON.stringify(i)), w.debug("storeAuthData - Saved successfully");
|
|
3368
3368
|
} catch (e) {
|
|
3369
3369
|
w.error("Failed to store auth data:", e);
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
|
-
function
|
|
3372
|
+
function it() {
|
|
3373
3373
|
try {
|
|
3374
|
-
localStorage.removeItem(
|
|
3374
|
+
localStorage.removeItem(be);
|
|
3375
3375
|
} catch (i) {
|
|
3376
3376
|
w.error("Failed to clear auth data:", i);
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
|
-
async function
|
|
3379
|
+
async function Ue(i) {
|
|
3380
3380
|
try {
|
|
3381
3381
|
const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
|
|
3382
3382
|
method: "POST",
|
|
@@ -3405,13 +3405,13 @@ async function Te(i) {
|
|
|
3405
3405
|
return w.error("fetchToken - Exception:", e), null;
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3409
|
-
const i = G(!1), e = G(), t = G(null), { storage: n, signOut: r } =
|
|
3410
|
-
async function l(m,
|
|
3408
|
+
function ot() {
|
|
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, S) {
|
|
3411
3411
|
let T = !1;
|
|
3412
3412
|
try {
|
|
3413
3413
|
i.value = !0, T = await a.validatePasswordResetToken(m, {
|
|
3414
|
-
token:
|
|
3414
|
+
token: S
|
|
3415
3415
|
});
|
|
3416
3416
|
} catch {
|
|
3417
3417
|
} finally {
|
|
@@ -3422,27 +3422,27 @@ function lt() {
|
|
|
3422
3422
|
async function c(m) {
|
|
3423
3423
|
return a.validatePassword(m);
|
|
3424
3424
|
}
|
|
3425
|
-
async function p(m,
|
|
3425
|
+
async function p(m, S, T) {
|
|
3426
3426
|
return a.resetPasswordByToken(m, {
|
|
3427
|
-
newPassword:
|
|
3427
|
+
newPassword: S,
|
|
3428
3428
|
token: T
|
|
3429
3429
|
});
|
|
3430
3430
|
}
|
|
3431
|
-
async function g(m,
|
|
3431
|
+
async function g(m, S) {
|
|
3432
3432
|
w.debug("signIn - Entry point");
|
|
3433
3433
|
try {
|
|
3434
3434
|
i.value = !0;
|
|
3435
|
-
const T = await a.login({ userName: m, password:
|
|
3435
|
+
const T = await a.login({ userName: m, password: S });
|
|
3436
3436
|
if (w.debug("signIn - Cookie login completed:", T), !T.succeeded)
|
|
3437
3437
|
return T;
|
|
3438
3438
|
w.debug("signIn - Requesting token...");
|
|
3439
|
-
const P = await
|
|
3439
|
+
const P = await Ue({
|
|
3440
3440
|
grant_type: "password",
|
|
3441
3441
|
username: m,
|
|
3442
|
-
password:
|
|
3442
|
+
password: S,
|
|
3443
3443
|
scope: "offline_access"
|
|
3444
3444
|
});
|
|
3445
|
-
P && (t.value = P,
|
|
3445
|
+
P && (t.value = P, _e(t.value), w.debug("signIn - Token saved:", t.value));
|
|
3446
3446
|
const F = await a.getCurrentUser();
|
|
3447
3447
|
if (F)
|
|
3448
3448
|
return e.value = F, T;
|
|
@@ -3462,7 +3462,7 @@ function lt() {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
3464
|
async function h() {
|
|
3465
|
-
w.debug("signOut - Entry point"), e.value = void 0,
|
|
3465
|
+
w.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
3467
|
let _ = null;
|
|
3468
3468
|
async function A() {
|
|
@@ -3470,7 +3470,7 @@ function lt() {
|
|
|
3470
3470
|
w.debug("loadUser - Entry point");
|
|
3471
3471
|
try {
|
|
3472
3472
|
i.value = !0, performance.mark("vc:auth-start");
|
|
3473
|
-
const [m] = await Promise.all([a.getCurrentUser(),
|
|
3473
|
+
const [m] = await Promise.all([a.getCurrentUser(), x()]);
|
|
3474
3474
|
e.value = m, performance.mark("vc:auth-done"), w.debug("User details loaded:", e.value);
|
|
3475
3475
|
} catch (m) {
|
|
3476
3476
|
w.error("loadUser failed:", m);
|
|
@@ -3483,19 +3483,19 @@ function lt() {
|
|
|
3483
3483
|
async function E(m) {
|
|
3484
3484
|
try {
|
|
3485
3485
|
return i.value = !0, await a.requestPasswordReset(m), { succeeded: !0 };
|
|
3486
|
-
} catch (
|
|
3487
|
-
return { succeeded: !1, error:
|
|
3486
|
+
} catch (S) {
|
|
3487
|
+
return { succeeded: !1, error: S };
|
|
3488
3488
|
} finally {
|
|
3489
3489
|
i.value = !1;
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
async function O(m,
|
|
3492
|
+
async function O(m, S) {
|
|
3493
3493
|
let T;
|
|
3494
3494
|
try {
|
|
3495
3495
|
i.value = !0;
|
|
3496
3496
|
const P = {
|
|
3497
3497
|
oldPassword: m,
|
|
3498
|
-
newPassword:
|
|
3498
|
+
newPassword: S
|
|
3499
3499
|
};
|
|
3500
3500
|
T = await a.changeCurrentUserPassword(P);
|
|
3501
3501
|
} catch (P) {
|
|
@@ -3509,30 +3509,30 @@ function lt() {
|
|
|
3509
3509
|
let m = null;
|
|
3510
3510
|
try {
|
|
3511
3511
|
m = await a.getLoginTypes();
|
|
3512
|
-
} catch (
|
|
3513
|
-
throw w.error("getLoginType failed:",
|
|
3512
|
+
} catch (S) {
|
|
3513
|
+
throw w.error("getLoginType failed:", S), S;
|
|
3514
3514
|
}
|
|
3515
3515
|
return m;
|
|
3516
3516
|
}
|
|
3517
3517
|
const D = 60 * 1e3;
|
|
3518
|
-
async function
|
|
3519
|
-
if (w.debug("getAccessToken - Entry point"), t.value || (t.value =
|
|
3518
|
+
async function x() {
|
|
3519
|
+
if (w.debug("getAccessToken - Entry point"), t.value || (t.value = st()), !t.value)
|
|
3520
3520
|
return w.debug("getAccessToken - No auth data available"), null;
|
|
3521
|
-
const m = Date.now(),
|
|
3521
|
+
const m = Date.now(), S = t.value.expires_at, T = S ? m >= S - D : !1;
|
|
3522
3522
|
if (w.debug("getAccessToken - Token status:", {
|
|
3523
3523
|
hasToken: !!t.value.access_token,
|
|
3524
|
-
expiresAt:
|
|
3524
|
+
expiresAt: S ? new Date(S).toISOString() : "not set",
|
|
3525
3525
|
now: new Date(m).toISOString(),
|
|
3526
3526
|
shouldRefresh: T,
|
|
3527
3527
|
hasRefreshToken: !!t.value.refresh_token
|
|
3528
3528
|
}), T && t.value.refresh_token) {
|
|
3529
3529
|
w.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
3530
|
-
const P = await
|
|
3530
|
+
const P = await Ue({
|
|
3531
3531
|
grant_type: "refresh_token",
|
|
3532
3532
|
refresh_token: t.value.refresh_token,
|
|
3533
3533
|
scope: "offline_access"
|
|
3534
3534
|
});
|
|
3535
|
-
P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P,
|
|
3535
|
+
P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, _e(t.value), w.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3536
3536
|
expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
|
|
3537
3537
|
})) : w.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3538
3538
|
}
|
|
@@ -3552,11 +3552,11 @@ function lt() {
|
|
|
3552
3552
|
requestPasswordReset: E,
|
|
3553
3553
|
changeUserPassword: O,
|
|
3554
3554
|
getLoginType: z,
|
|
3555
|
-
getAccessToken:
|
|
3555
|
+
getAccessToken: x
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
const
|
|
3559
|
-
const i =
|
|
3558
|
+
const lt = Me(ot), ut = () => {
|
|
3559
|
+
const i = lt();
|
|
3560
3560
|
return {
|
|
3561
3561
|
user: i.user,
|
|
3562
3562
|
loading: i.loading,
|
|
@@ -3566,26 +3566,26 @@ const ut = Le(lt), ct = () => {
|
|
|
3566
3566
|
signOut: i.signOut,
|
|
3567
3567
|
getAccessToken: i.getAccessToken
|
|
3568
3568
|
};
|
|
3569
|
-
},
|
|
3569
|
+
}, Re = 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"), xe = 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
|
-
},
|
|
3584
|
-
function
|
|
3583
|
+
}, bt = "ai-agent-toggle", xt = "lucide-sparkles", Et = "AI Assistant", ne = N("ai-agent-panel");
|
|
3584
|
+
function yt() {
|
|
3585
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",
|
|
3586
|
+
i.value === "closed" && (i.value = "open", ne.debug("Panel opened"));
|
|
3587
3587
|
}, a = () => {
|
|
3588
|
-
i.value = "closed", e.value = !1,
|
|
3588
|
+
i.value = "closed", e.value = !1, ne.debug("Panel closed, reset initialized state");
|
|
3589
3589
|
};
|
|
3590
3590
|
return {
|
|
3591
3591
|
panelState: i,
|
|
@@ -3598,18 +3598,18 @@ function _t() {
|
|
|
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", ne.debug("Panel expanded"));
|
|
3602
3602
|
},
|
|
3603
3603
|
collapse: () => {
|
|
3604
|
-
i.value === "expanded" && (i.value = "open",
|
|
3604
|
+
i.value === "expanded" && (i.value = "open", ne.debug("Panel collapsed"));
|
|
3605
3605
|
},
|
|
3606
3606
|
resetInitialized: () => {
|
|
3607
3607
|
e.value = !1;
|
|
3608
3608
|
}
|
|
3609
3609
|
};
|
|
3610
3610
|
}
|
|
3611
|
-
const
|
|
3612
|
-
function
|
|
3611
|
+
const me = N("ai-agent-context");
|
|
3612
|
+
function Te(i) {
|
|
3613
3613
|
return i ? {
|
|
3614
3614
|
id: i.id,
|
|
3615
3615
|
name: i.name,
|
|
@@ -3617,7 +3617,7 @@ function Ce(i) {
|
|
|
3617
3617
|
param: i.param
|
|
3618
3618
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function _t(i) {
|
|
3621
3621
|
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = i, a = G(/* @__PURE__ */ new Map()), o = () => {
|
|
3622
3622
|
const E = t();
|
|
3623
3623
|
return E ? a.value.get(E.id) ?? {
|
|
@@ -3636,37 +3636,37 @@ function Ut(i) {
|
|
|
3636
3636
|
contextSuggestions: p,
|
|
3637
3637
|
totalItemsCount: g,
|
|
3638
3638
|
setContextData: (E, O, z, D) => {
|
|
3639
|
-
const
|
|
3640
|
-
return
|
|
3639
|
+
const x = t()?.id || D;
|
|
3640
|
+
return x ? E.length === 0 && !z ? (a.value.delete(x), me.debug(`Context cleared for blade: ${x}`), { cleared: !0 }) : (a.value.set(x, { items: E, type: O, suggestions: z }), me.debug(`Context set for blade: ${x}, items: ${E.length}, type: ${O}`), { cleared: !1 }) : (me.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
3641
3641
|
},
|
|
3642
3642
|
buildInitPayload: async () => {
|
|
3643
3643
|
const E = r ? await r() ?? void 0 : void 0;
|
|
3644
3644
|
return {
|
|
3645
3645
|
userId: e()?.id || "",
|
|
3646
3646
|
locale: n(),
|
|
3647
|
-
blade:
|
|
3647
|
+
blade: Te(t()),
|
|
3648
3648
|
contextType: c.value,
|
|
3649
|
-
items:
|
|
3650
|
-
suggestions: p.value ?
|
|
3649
|
+
items: re(l.value),
|
|
3650
|
+
suggestions: p.value ? re(p.value) : void 0,
|
|
3651
3651
|
accessToken: E
|
|
3652
3652
|
};
|
|
3653
3653
|
},
|
|
3654
3654
|
buildUpdatePayload: async () => {
|
|
3655
3655
|
const E = r ? await r() ?? void 0 : void 0;
|
|
3656
3656
|
return {
|
|
3657
|
-
blade:
|
|
3657
|
+
blade: Te(t()),
|
|
3658
3658
|
contextType: c.value,
|
|
3659
|
-
items:
|
|
3660
|
-
suggestions: p.value ?
|
|
3659
|
+
items: re(l.value),
|
|
3660
|
+
suggestions: p.value ? re(p.value) : void 0,
|
|
3661
3661
|
locale: n(),
|
|
3662
3662
|
accessToken: E
|
|
3663
3663
|
};
|
|
3664
3664
|
}
|
|
3665
3665
|
};
|
|
3666
3666
|
}
|
|
3667
|
-
const V =
|
|
3668
|
-
function
|
|
3669
|
-
const { getConfig: e, isEmbedded: t, navigateToBlade: n } = i, r =
|
|
3667
|
+
const V = N("ai-agent-transport");
|
|
3668
|
+
function Ut(i) {
|
|
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
3670
|
function p(h, _) {
|
|
3671
3671
|
switch (h) {
|
|
3672
3672
|
case "NAVIGATE_TO_APP": {
|
|
@@ -3759,8 +3759,8 @@ function Tt(i) {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
};
|
|
3761
3761
|
}
|
|
3762
|
-
const
|
|
3763
|
-
function
|
|
3762
|
+
const ae = N("ai-agent-service");
|
|
3763
|
+
function Tt(i) {
|
|
3764
3764
|
const {
|
|
3765
3765
|
userGetter: e,
|
|
3766
3766
|
bladeGetter: t,
|
|
@@ -3769,12 +3769,12 @@ function Ct(i) {
|
|
|
3769
3769
|
navigateToBlade: a,
|
|
3770
3770
|
initialConfig: o,
|
|
3771
3771
|
isEmbedded: l = !1
|
|
3772
|
-
} = i, c = G({ ...
|
|
3772
|
+
} = i, c = G({ ...gt, ...o }), p = yt(), g = _t({
|
|
3773
3773
|
userGetter: e,
|
|
3774
3774
|
bladeGetter: t,
|
|
3775
3775
|
localeGetter: n,
|
|
3776
3776
|
tokenGetter: r
|
|
3777
|
-
}), h =
|
|
3777
|
+
}), h = Ut({
|
|
3778
3778
|
getConfig: () => c.value,
|
|
3779
3779
|
isEmbedded: l,
|
|
3780
3780
|
navigateToBlade: a
|
|
@@ -3786,14 +3786,14 @@ function Ct(i) {
|
|
|
3786
3786
|
if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
|
|
3787
3787
|
h.pendingInitContext.value = !1, p.isInitialized.value = !0;
|
|
3788
3788
|
const m = await g.buildInitPayload();
|
|
3789
|
-
h.sendToIframe({ type: "INIT_CONTEXT", payload: m }),
|
|
3789
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), ae.debug("Flushed pending INIT_CONTEXT");
|
|
3790
3790
|
}
|
|
3791
3791
|
};
|
|
3792
3792
|
h.onChatReady(() => {
|
|
3793
3793
|
h.iframeRef.value?.contentWindow ? (p.isInitialized.value = !0, g.buildInitPayload().then((m) => {
|
|
3794
|
-
h.sendToIframe({ type: "INIT_CONTEXT", payload: m }),
|
|
3795
|
-
})) : (h.pendingInitContext.value = !0,
|
|
3796
|
-
}),
|
|
3794
|
+
h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), ae.info("Chatbot ready, sent INIT_CONTEXT");
|
|
3795
|
+
})) : (h.pendingInitContext.value = !0, ae.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
3796
|
+
}), Z(h.iframeRef, () => A()), Z(
|
|
3797
3797
|
() => ({ currentBlade: _.value.currentBlade, items: _.value.items }),
|
|
3798
3798
|
async () => {
|
|
3799
3799
|
if (l) {
|
|
@@ -3810,14 +3810,14 @@ function Ct(i) {
|
|
|
3810
3810
|
);
|
|
3811
3811
|
const E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.open(), O = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.close(), z = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.toggle(), D = (m) => {
|
|
3812
3812
|
h.setIframeRef(m), A();
|
|
3813
|
-
},
|
|
3814
|
-
const { cleared: F } = g.setContextData(m,
|
|
3813
|
+
}, x = (m, S, T, P) => {
|
|
3814
|
+
const { cleared: F } = g.setContextData(m, S, T, P);
|
|
3815
3815
|
l && F && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
3816
3816
|
};
|
|
3817
3817
|
return h.startListening(), l && (h.sendToParent({
|
|
3818
3818
|
type: "EMBEDDED_APP_READY",
|
|
3819
3819
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
3820
|
-
}),
|
|
3820
|
+
}), ae.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
3821
3821
|
// State
|
|
3822
3822
|
panelState: p.panelState,
|
|
3823
3823
|
config: c,
|
|
@@ -3836,8 +3836,8 @@ function Ct(i) {
|
|
|
3836
3836
|
c.value = { ...c.value, ...m };
|
|
3837
3837
|
},
|
|
3838
3838
|
// Communication
|
|
3839
|
-
sendMessage: (m,
|
|
3840
|
-
h.sendToIframe({ type: m, payload:
|
|
3839
|
+
sendMessage: (m, S) => {
|
|
3840
|
+
h.sendToIframe({ type: m, payload: S });
|
|
3841
3841
|
},
|
|
3842
3842
|
onMessage: h.onMessage,
|
|
3843
3843
|
// Internal API
|
|
@@ -3845,10 +3845,13 @@ function Ct(i) {
|
|
|
3845
3845
|
_setIframeRef: D,
|
|
3846
3846
|
_startListening: h.startListening,
|
|
3847
3847
|
_stopListening: h.stopListening,
|
|
3848
|
-
_setContextData:
|
|
3848
|
+
_setContextData: x
|
|
3849
3849
|
};
|
|
3850
3850
|
}
|
|
3851
|
-
let $e, Ne,
|
|
3851
|
+
let je, $e, Ne, St;
|
|
3852
|
+
function nn(i) {
|
|
3853
|
+
je = i;
|
|
3854
|
+
}
|
|
3852
3855
|
function an(i) {
|
|
3853
3856
|
$e = i;
|
|
3854
3857
|
}
|
|
@@ -3856,15 +3859,12 @@ function sn(i) {
|
|
|
3856
3859
|
Ne = i;
|
|
3857
3860
|
}
|
|
3858
3861
|
function on(i) {
|
|
3859
|
-
ze = i;
|
|
3860
|
-
}
|
|
3861
|
-
function ln(i) {
|
|
3862
3862
|
St = i;
|
|
3863
3863
|
}
|
|
3864
3864
|
function Se(i, e) {
|
|
3865
3865
|
if (e.length === 0)
|
|
3866
3866
|
return { path: i ? `/${i}` : "/", query: {} };
|
|
3867
|
-
const t = e[0], n =
|
|
3867
|
+
const t = e[0], n = Ce(t.url);
|
|
3868
3868
|
let r;
|
|
3869
3869
|
for (let l = e.length - 1; l >= 1; l--)
|
|
3870
3870
|
if (e[l].visible) {
|
|
@@ -3873,7 +3873,7 @@ function Se(i, e) {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
let a = i ? `/${i}` : "";
|
|
3875
3875
|
if (n && (a += `/${n}`), r) {
|
|
3876
|
-
const l =
|
|
3876
|
+
const l = Ce(r.url);
|
|
3877
3877
|
l && (a += `/${l}`), r.param && (a += `/${r.param}`);
|
|
3878
3878
|
}
|
|
3879
3879
|
const o = {};
|
|
@@ -3881,7 +3881,7 @@ function Se(i, e) {
|
|
|
3881
3881
|
l.visible && l.query && Object.assign(o, l.query);
|
|
3882
3882
|
return { path: a || "/", query: o };
|
|
3883
3883
|
}
|
|
3884
|
-
function
|
|
3884
|
+
function ln(i, e) {
|
|
3885
3885
|
let t = i.split("/").filter(Boolean);
|
|
3886
3886
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
3887
3887
|
workspaceUrl: t[0],
|
|
@@ -3889,172 +3889,167 @@ function un(i, e) {
|
|
|
3889
3889
|
param: t[2]
|
|
3890
3890
|
};
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3892
|
+
function Ce(i) {
|
|
3893
3893
|
if (i)
|
|
3894
3894
|
return i.replace(/^\/+|\/+$/g, "") || void 0;
|
|
3895
3895
|
}
|
|
3896
|
-
function
|
|
3896
|
+
function we(i) {
|
|
3897
3897
|
const e = i.currentRoute.value.params;
|
|
3898
3898
|
return Object.values(e).find((t) => typeof t == "string" && t) || "";
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function Ct(i, e) {
|
|
3901
3901
|
function t() {
|
|
3902
|
-
const { path: r, query: a } = Se(
|
|
3902
|
+
const { path: r, query: a } = Se(we(i), e.blades.value);
|
|
3903
3903
|
i.push({ path: r, query: a });
|
|
3904
3904
|
}
|
|
3905
3905
|
function n() {
|
|
3906
|
-
const { path: r, query: a } = Se(
|
|
3906
|
+
const { path: r, query: a } = Se(we(i), e.blades.value);
|
|
3907
3907
|
i.replace({ path: r, query: a });
|
|
3908
3908
|
}
|
|
3909
3909
|
return { syncUrlPush: t, syncUrlReplace: n };
|
|
3910
3910
|
}
|
|
3911
|
-
const
|
|
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
3912
|
function I(i) {
|
|
3913
3913
|
throw new Error(`[vc-shell] ${i} requires blade context.
|
|
3914
|
-
${
|
|
3914
|
+
${wt}`);
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3917
|
-
const i = (
|
|
3916
|
+
function At() {
|
|
3917
|
+
const i = (te() ? J(Re, void 0) : void 0) ?? $e, e = (te() ? J(ct, void 0) : void 0) ?? Ne;
|
|
3918
3918
|
if (!i || !e)
|
|
3919
3919
|
throw new Error(
|
|
3920
3920
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
3921
3921
|
);
|
|
3922
|
-
const t = i, n = e, r =
|
|
3922
|
+
const t = i, n = e, r = te() ? J(ht, void 0) : void 0, a = te() ? J(ft, void 0) : void 0;
|
|
3923
3923
|
let o;
|
|
3924
3924
|
function l() {
|
|
3925
3925
|
if (o) return o;
|
|
3926
|
-
const
|
|
3927
|
-
return
|
|
3926
|
+
const b = je?.router;
|
|
3927
|
+
return b && (o = Ct(b, t)), o;
|
|
3928
3928
|
}
|
|
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)), _ = d(() => (r || I("closable"), r.value.parentId !== void 0)), A = d(() => (r || I("expanded"), t.activeBlade.value?.id === r.value.id)), E = d(() => (r || I("name"), r.value.name))
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
});
|
|
3934
|
-
let z = !1;
|
|
3935
|
-
function D(x) {
|
|
3936
|
-
if (z) {
|
|
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)), _ = d(() => (r || I("closable"), r.value.parentId !== void 0)), A = d(() => (r || I("expanded"), t.activeBlade.value?.id === r.value.id)), E = d(() => (r || I("name"), r.value.name));
|
|
3930
|
+
let O = !1;
|
|
3931
|
+
function z(b) {
|
|
3932
|
+
if (O) {
|
|
3937
3933
|
console.warn(
|
|
3938
3934
|
"[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
|
|
3939
3935
|
);
|
|
3940
3936
|
return;
|
|
3941
3937
|
}
|
|
3942
|
-
|
|
3943
|
-
const
|
|
3944
|
-
|
|
3945
|
-
}
|
|
3946
|
-
async function b
|
|
3947
|
-
const { isWorkspace:
|
|
3948
|
-
if (
|
|
3949
|
-
await t.openWorkspace(
|
|
3938
|
+
O = !0;
|
|
3939
|
+
const B = ke(b) ? b : G(b);
|
|
3940
|
+
Ae(dt, B);
|
|
3941
|
+
}
|
|
3942
|
+
async function D(b) {
|
|
3943
|
+
const { isWorkspace: B, ...de } = b;
|
|
3944
|
+
if (B)
|
|
3945
|
+
await t.openWorkspace(de);
|
|
3950
3946
|
else {
|
|
3951
|
-
const
|
|
3952
|
-
|
|
3947
|
+
const Ee = r?.value.id;
|
|
3948
|
+
Ee ? await t.openBlade({ ...de, parentId: Ee }) : await t.openBlade(de);
|
|
3953
3949
|
}
|
|
3954
3950
|
t.activeBlade.value?.url && l()?.syncUrlPush();
|
|
3955
3951
|
}
|
|
3956
|
-
async function
|
|
3952
|
+
async function x() {
|
|
3957
3953
|
r || I("closeSelf()");
|
|
3958
|
-
const
|
|
3959
|
-
return
|
|
3954
|
+
const b = await t.closeBlade(r.value.id);
|
|
3955
|
+
return b || l()?.syncUrlReplace(), b;
|
|
3960
3956
|
}
|
|
3961
|
-
async function
|
|
3957
|
+
async function m() {
|
|
3962
3958
|
r || I("closeChildren()"), await t.closeChildren(r.value.id), l()?.syncUrlReplace();
|
|
3963
3959
|
}
|
|
3964
|
-
async function
|
|
3960
|
+
async function S(b) {
|
|
3965
3961
|
r || I("replaceWith()"), await t.replaceCurrentBlade({
|
|
3966
|
-
...
|
|
3962
|
+
...b,
|
|
3967
3963
|
parentId: r.value.parentId
|
|
3968
3964
|
}), t.activeBlade.value?.url && l()?.syncUrlReplace();
|
|
3969
3965
|
}
|
|
3970
|
-
async function
|
|
3966
|
+
async function T(b) {
|
|
3971
3967
|
r || I("coverWith()"), await t.coverCurrentBlade({
|
|
3972
|
-
...
|
|
3968
|
+
...b,
|
|
3973
3969
|
parentId: r.value.parentId
|
|
3974
3970
|
}), t.activeBlade.value?.url && l()?.syncUrlPush();
|
|
3975
3971
|
}
|
|
3976
|
-
async function
|
|
3977
|
-
return r || I("callParent()"), n.callParent(r.value.id,
|
|
3972
|
+
async function P(b, B) {
|
|
3973
|
+
return r || I("callParent()"), n.callParent(r.value.id, b, B);
|
|
3978
3974
|
}
|
|
3979
|
-
function
|
|
3980
|
-
r || I("exposeToChildren()"), n.exposeToChildren(r.value.id,
|
|
3975
|
+
function F(b) {
|
|
3976
|
+
r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, b);
|
|
3981
3977
|
}
|
|
3982
|
-
function
|
|
3983
|
-
r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id,
|
|
3978
|
+
function ce(b) {
|
|
3979
|
+
r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, b);
|
|
3984
3980
|
}
|
|
3985
|
-
function
|
|
3986
|
-
r || I("setError()"), t.setBladeError(r.value.id,
|
|
3981
|
+
function he(b) {
|
|
3982
|
+
r || I("setError()"), t.setBladeError(r.value.id, b);
|
|
3987
3983
|
}
|
|
3988
|
-
function
|
|
3984
|
+
function u() {
|
|
3989
3985
|
r || I("clearError()"), t.clearBladeError(r.value.id);
|
|
3990
3986
|
}
|
|
3991
|
-
let
|
|
3992
|
-
function
|
|
3987
|
+
let f = 0;
|
|
3988
|
+
function v(b) {
|
|
3993
3989
|
a || I("addBanner()");
|
|
3994
|
-
const
|
|
3990
|
+
const B = `banner-${r.value.id}-${++f}`;
|
|
3995
3991
|
return a.value.push({
|
|
3996
|
-
...
|
|
3997
|
-
id:
|
|
3998
|
-
dismissible:
|
|
3999
|
-
}),
|
|
3992
|
+
...b,
|
|
3993
|
+
id: B,
|
|
3994
|
+
dismissible: b.dismissible ?? !1
|
|
3995
|
+
}), B;
|
|
4000
3996
|
}
|
|
4001
|
-
function
|
|
4002
|
-
a || I("removeBanner()"), a.value = a.value.filter((
|
|
3997
|
+
function y(b) {
|
|
3998
|
+
a || I("removeBanner()"), a.value = a.value.filter((B) => B.id !== b);
|
|
4003
3999
|
}
|
|
4004
|
-
function
|
|
4005
|
-
a || I("clearBanners()"), a.value = a.value.filter((
|
|
4000
|
+
function U() {
|
|
4001
|
+
a || I("clearBanners()"), a.value = a.value.filter((b) => b._system);
|
|
4006
4002
|
}
|
|
4007
|
-
let
|
|
4008
|
-
function
|
|
4009
|
-
if (r || I("onActivated()"),
|
|
4003
|
+
let $ = !1, M = !1;
|
|
4004
|
+
function Y(b) {
|
|
4005
|
+
if (r || I("onActivated()"), $) {
|
|
4010
4006
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
4011
4007
|
return;
|
|
4012
4008
|
}
|
|
4013
|
-
|
|
4014
|
-
|
|
4009
|
+
$ = !0, Z(A, (B) => {
|
|
4010
|
+
B && b();
|
|
4015
4011
|
});
|
|
4016
4012
|
}
|
|
4017
|
-
function
|
|
4018
|
-
if (r || I("onDeactivated()"),
|
|
4013
|
+
function W(b) {
|
|
4014
|
+
if (r || I("onDeactivated()"), M) {
|
|
4019
4015
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
4020
4016
|
return;
|
|
4021
4017
|
}
|
|
4022
|
-
|
|
4023
|
-
|
|
4018
|
+
M = !0, Z(A, (B) => {
|
|
4019
|
+
B || b();
|
|
4024
4020
|
});
|
|
4025
4021
|
}
|
|
4026
4022
|
return {
|
|
4027
4023
|
id: c,
|
|
4028
4024
|
param: p,
|
|
4029
|
-
activeChildParam: O,
|
|
4030
4025
|
options: g,
|
|
4031
4026
|
query: h,
|
|
4032
4027
|
closable: _,
|
|
4033
4028
|
expanded: A,
|
|
4034
4029
|
name: E,
|
|
4035
|
-
provideBladeData:
|
|
4036
|
-
openBlade:
|
|
4037
|
-
closeSelf:
|
|
4038
|
-
closeChildren:
|
|
4039
|
-
replaceWith:
|
|
4040
|
-
coverWith:
|
|
4041
|
-
callParent:
|
|
4042
|
-
exposeToChildren:
|
|
4043
|
-
onBeforeClose:
|
|
4044
|
-
onActivated:
|
|
4045
|
-
onDeactivated:
|
|
4046
|
-
setError:
|
|
4047
|
-
clearError:
|
|
4048
|
-
addBanner:
|
|
4049
|
-
removeBanner:
|
|
4050
|
-
clearBanners:
|
|
4030
|
+
provideBladeData: z,
|
|
4031
|
+
openBlade: D,
|
|
4032
|
+
closeSelf: x,
|
|
4033
|
+
closeChildren: m,
|
|
4034
|
+
replaceWith: S,
|
|
4035
|
+
coverWith: T,
|
|
4036
|
+
callParent: P,
|
|
4037
|
+
exposeToChildren: F,
|
|
4038
|
+
onBeforeClose: ce,
|
|
4039
|
+
onActivated: Y,
|
|
4040
|
+
onDeactivated: W,
|
|
4041
|
+
setError: he,
|
|
4042
|
+
clearError: u,
|
|
4043
|
+
addBanner: v,
|
|
4044
|
+
removeBanner: y,
|
|
4045
|
+
clearBanners: U
|
|
4051
4046
|
};
|
|
4052
4047
|
}
|
|
4053
|
-
let
|
|
4054
|
-
function
|
|
4055
|
-
return `blade_${++
|
|
4048
|
+
let Pt = 0;
|
|
4049
|
+
function se() {
|
|
4050
|
+
return `blade_${++Pt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
4056
4051
|
}
|
|
4057
|
-
function
|
|
4052
|
+
function un(i, e) {
|
|
4058
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(() => {
|
|
4059
4054
|
for (let u = t.value.length - 1; u >= 0; u--)
|
|
4060
4055
|
if (t.value[u].visible) return t.value[u];
|
|
@@ -4090,7 +4085,7 @@ function cn(i, e) {
|
|
|
4090
4085
|
}
|
|
4091
4086
|
_([...t.value]);
|
|
4092
4087
|
const y = {
|
|
4093
|
-
id:
|
|
4088
|
+
id: se(),
|
|
4094
4089
|
name: u.name,
|
|
4095
4090
|
url: g(u.name),
|
|
4096
4091
|
// workspace blades don't have param when opened first
|
|
@@ -4114,7 +4109,7 @@ function cn(i, e) {
|
|
|
4114
4109
|
return;
|
|
4115
4110
|
_(y);
|
|
4116
4111
|
const U = {
|
|
4117
|
-
id:
|
|
4112
|
+
id: se(),
|
|
4118
4113
|
name: u.name,
|
|
4119
4114
|
url: g(u.name),
|
|
4120
4115
|
param: u.param,
|
|
@@ -4153,7 +4148,7 @@ function cn(i, e) {
|
|
|
4153
4148
|
_(y);
|
|
4154
4149
|
}
|
|
4155
4150
|
const U = {
|
|
4156
|
-
id:
|
|
4151
|
+
id: se(),
|
|
4157
4152
|
name: u.name,
|
|
4158
4153
|
url: g(u.name),
|
|
4159
4154
|
param: u.param,
|
|
@@ -4181,7 +4176,7 @@ function cn(i, e) {
|
|
|
4181
4176
|
_(y);
|
|
4182
4177
|
}
|
|
4183
4178
|
const U = {
|
|
4184
|
-
id:
|
|
4179
|
+
id: se(),
|
|
4185
4180
|
name: u.name,
|
|
4186
4181
|
url: g(u.name),
|
|
4187
4182
|
param: u.param,
|
|
@@ -4192,7 +4187,7 @@ function cn(i, e) {
|
|
|
4192
4187
|
}, $ = t.value.slice(0, v);
|
|
4193
4188
|
$.push({ ...f, visible: !1 }), $.push(U), t.value = $, u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
|
|
4194
4189
|
}
|
|
4195
|
-
async function
|
|
4190
|
+
async function x(u) {
|
|
4196
4191
|
const f = t.value.findIndex((U) => U.id === u);
|
|
4197
4192
|
if (f === -1) return;
|
|
4198
4193
|
const v = t.value.slice(f + 1);
|
|
@@ -4201,7 +4196,7 @@ function cn(i, e) {
|
|
|
4201
4196
|
function m(u, f) {
|
|
4202
4197
|
n.set(u, f);
|
|
4203
4198
|
}
|
|
4204
|
-
function
|
|
4199
|
+
function S(u) {
|
|
4205
4200
|
n.delete(u);
|
|
4206
4201
|
}
|
|
4207
4202
|
function T(u, f) {
|
|
@@ -4222,19 +4217,19 @@ function cn(i, e) {
|
|
|
4222
4217
|
const y = [...t.value];
|
|
4223
4218
|
y[v] = { ...y[v], title: f }, t.value = y;
|
|
4224
4219
|
}
|
|
4225
|
-
function
|
|
4220
|
+
function ce(u, f) {
|
|
4226
4221
|
const v = t.value.findIndex((W) => W.id === u);
|
|
4227
4222
|
if (v === -1) return;
|
|
4228
4223
|
const y = t.value[v].query ?? {}, U = { ...y };
|
|
4229
|
-
for (const [W,
|
|
4230
|
-
|
|
4224
|
+
for (const [W, b] of Object.entries(f))
|
|
4225
|
+
b === "" || b == null ? delete U[W] : U[W] = b;
|
|
4231
4226
|
const $ = Object.keys(y), M = Object.keys(U);
|
|
4232
4227
|
if ($.length === M.length && M.every((W) => y[W] === U[W]))
|
|
4233
4228
|
return;
|
|
4234
|
-
const
|
|
4235
|
-
|
|
4229
|
+
const Y = [...t.value];
|
|
4230
|
+
Y[v] = { ...Y[v], query: U }, t.value = Y;
|
|
4236
4231
|
}
|
|
4237
|
-
function
|
|
4232
|
+
function he(u) {
|
|
4238
4233
|
for (const f of t.value)
|
|
4239
4234
|
p(f.id);
|
|
4240
4235
|
t.value = u;
|
|
@@ -4246,27 +4241,27 @@ function cn(i, e) {
|
|
|
4246
4241
|
openWorkspace: A,
|
|
4247
4242
|
openBlade: E,
|
|
4248
4243
|
closeBlade: O,
|
|
4249
|
-
closeChildren:
|
|
4244
|
+
closeChildren: x,
|
|
4250
4245
|
replaceCurrentBlade: z,
|
|
4251
4246
|
coverCurrentBlade: D,
|
|
4252
4247
|
registerBeforeClose: m,
|
|
4253
|
-
unregisterBeforeClose:
|
|
4248
|
+
unregisterBeforeClose: S,
|
|
4254
4249
|
setBladeError: T,
|
|
4255
4250
|
clearBladeError: P,
|
|
4256
4251
|
setBladeTitle: F,
|
|
4257
|
-
updateBladeQuery:
|
|
4258
|
-
_restoreStack:
|
|
4252
|
+
updateBladeQuery: ce,
|
|
4253
|
+
_restoreStack: he
|
|
4259
4254
|
};
|
|
4260
4255
|
}
|
|
4261
|
-
function
|
|
4262
|
-
const i = J(
|
|
4256
|
+
function Ot() {
|
|
4257
|
+
const i = J(Re);
|
|
4263
4258
|
if (!i)
|
|
4264
4259
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
4265
4260
|
return i;
|
|
4266
4261
|
}
|
|
4267
|
-
const
|
|
4268
|
-
function
|
|
4269
|
-
const e = J(
|
|
4262
|
+
const H = N("use-ai-agent");
|
|
4263
|
+
function cn(i) {
|
|
4264
|
+
const e = J(pt), { user: t, getAccessToken: n } = ut(), { openBlade: r } = At(), { blades: a, activeBlade: o } = Ot(), l = i?.isEmbedded, c = Tt({
|
|
4270
4265
|
userGetter: () => {
|
|
4271
4266
|
if (t.value)
|
|
4272
4267
|
return {
|
|
@@ -4290,35 +4285,35 @@ function hn(i) {
|
|
|
4290
4285
|
tokenGetter: n,
|
|
4291
4286
|
navigateToBlade: (g, h, _) => {
|
|
4292
4287
|
r({ name: g, param: h, options: _ }).then(() => {
|
|
4293
|
-
|
|
4288
|
+
H.debug(`Navigated to blade: ${g}`);
|
|
4294
4289
|
}).catch((A) => {
|
|
4295
|
-
|
|
4290
|
+
H.warn(`Blade not found or cannot be opened: ${g}`, A);
|
|
4296
4291
|
});
|
|
4297
4292
|
},
|
|
4298
4293
|
initialConfig: i?.config,
|
|
4299
4294
|
isEmbedded: l
|
|
4300
4295
|
});
|
|
4301
|
-
if (
|
|
4302
|
-
const g = J(
|
|
4296
|
+
if (Ae(xe, c), H.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
|
|
4297
|
+
const g = J(mt, null);
|
|
4303
4298
|
g ? (g.registerToolbarItem(
|
|
4304
4299
|
{
|
|
4305
|
-
id:
|
|
4306
|
-
icon:
|
|
4307
|
-
title:
|
|
4300
|
+
id: bt,
|
|
4301
|
+
icon: xt,
|
|
4302
|
+
title: Et,
|
|
4308
4303
|
clickHandler: () => {
|
|
4309
4304
|
c.togglePanel();
|
|
4310
4305
|
}
|
|
4311
4306
|
},
|
|
4312
4307
|
"*"
|
|
4313
4308
|
// Wildcard for all blades
|
|
4314
|
-
),
|
|
4309
|
+
), H.debug("Global AI toolbar button registered with wildcard '*'")) : H.warn("Toolbar service not available, AI button not registered");
|
|
4315
4310
|
}
|
|
4316
4311
|
return c;
|
|
4317
4312
|
}
|
|
4318
|
-
function
|
|
4319
|
-
const i = J(
|
|
4313
|
+
function hn() {
|
|
4314
|
+
const i = J(xe);
|
|
4320
4315
|
if (!i) {
|
|
4321
|
-
|
|
4316
|
+
H.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
|
|
4322
4317
|
return;
|
|
4323
4318
|
}
|
|
4324
4319
|
return {
|
|
@@ -4342,7 +4337,7 @@ function dn() {
|
|
|
4342
4337
|
onMessage: i.onMessage
|
|
4343
4338
|
};
|
|
4344
4339
|
}
|
|
4345
|
-
function
|
|
4340
|
+
function dn(i) {
|
|
4346
4341
|
return {
|
|
4347
4342
|
id: "ai-agent-toggle",
|
|
4348
4343
|
icon: i?.icon ?? "lucide-sparkles",
|
|
@@ -4352,11 +4347,11 @@ function fn(i) {
|
|
|
4352
4347
|
}
|
|
4353
4348
|
};
|
|
4354
4349
|
}
|
|
4355
|
-
const
|
|
4350
|
+
const It = ["width", "height"], Rt = ["clip-path"], jt = {
|
|
4356
4351
|
key: 1,
|
|
4357
4352
|
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",
|
|
4358
4353
|
fill: "url(#virto-oz-gradient-animated)"
|
|
4359
|
-
},
|
|
4354
|
+
}, $t = ["id"], Nt = {
|
|
4360
4355
|
key: 1,
|
|
4361
4356
|
id: "virto-oz-gradient-animated",
|
|
4362
4357
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -4364,7 +4359,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4364
4359
|
y1: "0",
|
|
4365
4360
|
x2: "99",
|
|
4366
4361
|
y2: "108"
|
|
4367
|
-
},
|
|
4362
|
+
}, ze = /* @__PURE__ */ L({
|
|
4368
4363
|
__name: "VcVirtoOzLogo",
|
|
4369
4364
|
props: {
|
|
4370
4365
|
width: { default: 22 },
|
|
@@ -4373,7 +4368,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4373
4368
|
},
|
|
4374
4369
|
setup(i) {
|
|
4375
4370
|
const e = d(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
4376
|
-
return (t, n) => (
|
|
4371
|
+
return (t, n) => (C(), j("svg", {
|
|
4377
4372
|
width: i.width,
|
|
4378
4373
|
height: i.height,
|
|
4379
4374
|
viewBox: "0 0 99 108",
|
|
@@ -4385,7 +4380,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4385
4380
|
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",
|
|
4386
4381
|
fill: "white"
|
|
4387
4382
|
}, null, -1)),
|
|
4388
|
-
i.animated ? (
|
|
4383
|
+
i.animated ? (C(), j("path", jt)) : (C(), j("g", {
|
|
4389
4384
|
key: 0,
|
|
4390
4385
|
"clip-path": `url(#${e.value})`
|
|
4391
4386
|
}, [...n[0] || (n[0] = [
|
|
@@ -4410,7 +4405,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4410
4405
|
})
|
|
4411
4406
|
])
|
|
4412
4407
|
], -1)
|
|
4413
|
-
])], 8,
|
|
4408
|
+
])], 8, Rt)),
|
|
4414
4409
|
n[4] || (n[4] = R("path", {
|
|
4415
4410
|
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",
|
|
4416
4411
|
fill: "white"
|
|
@@ -4437,19 +4432,19 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4437
4432
|
fill: "#6C6C6C"
|
|
4438
4433
|
}, null, -1)),
|
|
4439
4434
|
R("defs", null, [
|
|
4440
|
-
i.animated ?
|
|
4435
|
+
i.animated ? X("", !0) : (C(), j("clipPath", {
|
|
4441
4436
|
key: 0,
|
|
4442
4437
|
id: e.value
|
|
4443
4438
|
}, [...n[1] || (n[1] = [
|
|
4444
4439
|
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)
|
|
4445
|
-
])], 8,
|
|
4446
|
-
i.animated ? (
|
|
4447
|
-
|
|
4448
|
-
])])) :
|
|
4440
|
+
])], 8, $t)),
|
|
4441
|
+
i.animated ? (C(), j("linearGradient", Nt, [...n[2] || (n[2] = [
|
|
4442
|
+
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)
|
|
4443
|
+
])])) : X("", !0)
|
|
4449
4444
|
])
|
|
4450
|
-
], 8,
|
|
4445
|
+
], 8, It));
|
|
4451
4446
|
}
|
|
4452
|
-
}),
|
|
4447
|
+
}), zt = /* @__PURE__ */ L({
|
|
4453
4448
|
__name: "vc-material-icon",
|
|
4454
4449
|
props: {
|
|
4455
4450
|
icon: {},
|
|
@@ -4460,19 +4455,19 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4460
4455
|
},
|
|
4461
4456
|
setup(i) {
|
|
4462
4457
|
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4463
|
-
return
|
|
4464
|
-
}), (r, a) => (
|
|
4458
|
+
return ue(() => {
|
|
4459
|
+
}), (r, a) => (C(), j("span", {
|
|
4465
4460
|
class: q([
|
|
4466
4461
|
"vc-material-icon",
|
|
4467
4462
|
"material-symbols-" + i.type,
|
|
4468
4463
|
!t.value && `vc-material-icon--${i.size}`,
|
|
4469
4464
|
i.variant ? `vc-material-icon--${i.variant}` : ""
|
|
4470
4465
|
]),
|
|
4471
|
-
style:
|
|
4466
|
+
style: ee(n.value),
|
|
4472
4467
|
"aria-hidden": "true"
|
|
4473
|
-
},
|
|
4468
|
+
}, ge(i.icon), 7));
|
|
4474
4469
|
}
|
|
4475
|
-
}),
|
|
4470
|
+
}), Bt = /* @__PURE__ */ L({
|
|
4476
4471
|
__name: "vc-bootstrap-icon",
|
|
4477
4472
|
props: {
|
|
4478
4473
|
icon: {},
|
|
@@ -4482,21 +4477,21 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4482
4477
|
},
|
|
4483
4478
|
setup(i) {
|
|
4484
4479
|
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4485
|
-
|
|
4480
|
+
ue(() => {
|
|
4486
4481
|
});
|
|
4487
4482
|
const r = d(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
4488
|
-
return (a, o) => (
|
|
4483
|
+
return (a, o) => (C(), j("i", {
|
|
4489
4484
|
class: q([
|
|
4490
4485
|
"vc-bootstrap-icon",
|
|
4491
4486
|
!t.value && `vc-bootstrap-icon--${i.size}`,
|
|
4492
4487
|
r.value,
|
|
4493
4488
|
i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
|
|
4494
4489
|
]),
|
|
4495
|
-
style:
|
|
4490
|
+
style: ee(n.value),
|
|
4496
4491
|
"aria-hidden": "true"
|
|
4497
4492
|
}, null, 6));
|
|
4498
4493
|
}
|
|
4499
|
-
}),
|
|
4494
|
+
}), kt = /* @__PURE__ */ L({
|
|
4500
4495
|
__name: "vc-lucide-icon",
|
|
4501
4496
|
props: {
|
|
4502
4497
|
icon: {},
|
|
@@ -4506,18 +4501,18 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4506
4501
|
customSize: {}
|
|
4507
4502
|
},
|
|
4508
4503
|
setup(i) {
|
|
4509
|
-
const e =
|
|
4504
|
+
const e = N("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
|
|
4510
4505
|
if (!t.icon) return "HelpCircleIcon";
|
|
4511
4506
|
let l = t.icon;
|
|
4512
4507
|
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";
|
|
4513
4508
|
}), a = d(() => {
|
|
4514
|
-
const l = r.value, c =
|
|
4515
|
-
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) :
|
|
4509
|
+
const l = r.value, c = Le[l];
|
|
4510
|
+
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : Pe(c);
|
|
4516
4511
|
}), o = d(() => n.value && t.customSize ? {
|
|
4517
4512
|
width: `${t.customSize}px`,
|
|
4518
4513
|
height: `${t.customSize}px`
|
|
4519
4514
|
} : {});
|
|
4520
|
-
return (l, c) => a.value ? (
|
|
4515
|
+
return (l, c) => a.value ? (C(), Q(ve(a.value), {
|
|
4521
4516
|
key: 0,
|
|
4522
4517
|
"stroke-width": t.strokeWidth,
|
|
4523
4518
|
class: q([
|
|
@@ -4525,16 +4520,16 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4525
4520
|
!n.value && `vc-lucide-icon--${i.size}`,
|
|
4526
4521
|
i.variant ? `vc-lucide-icon--${i.variant}` : ""
|
|
4527
4522
|
]),
|
|
4528
|
-
style:
|
|
4523
|
+
style: ee(o.value),
|
|
4529
4524
|
"aria-hidden": "true"
|
|
4530
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (
|
|
4525
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (C(), j("span", {
|
|
4531
4526
|
key: 1,
|
|
4532
4527
|
class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
|
|
4533
4528
|
}, [...c[0] || (c[0] = [
|
|
4534
4529
|
R("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
4535
4530
|
])], 2));
|
|
4536
4531
|
}
|
|
4537
|
-
}),
|
|
4532
|
+
}), Gt = /* @__PURE__ */ L({
|
|
4538
4533
|
__name: "vc-fontawesome-icon",
|
|
4539
4534
|
props: {
|
|
4540
4535
|
icon: {},
|
|
@@ -4544,21 +4539,21 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4544
4539
|
},
|
|
4545
4540
|
setup(i) {
|
|
4546
4541
|
const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4547
|
-
|
|
4542
|
+
ue(() => {
|
|
4548
4543
|
});
|
|
4549
4544
|
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}`);
|
|
4550
|
-
return (a, o) => (
|
|
4545
|
+
return (a, o) => (C(), j("i", {
|
|
4551
4546
|
class: q([
|
|
4552
4547
|
"vc-fa-icon",
|
|
4553
4548
|
!t.value && `vc-fa-icon--${i.size}`,
|
|
4554
4549
|
r.value,
|
|
4555
4550
|
i.variant ? `vc-fa-icon--${i.variant}` : ""
|
|
4556
4551
|
]),
|
|
4557
|
-
style:
|
|
4552
|
+
style: ee(n.value),
|
|
4558
4553
|
"aria-hidden": "true"
|
|
4559
4554
|
}, null, 6));
|
|
4560
4555
|
}
|
|
4561
|
-
}),
|
|
4556
|
+
}), Ft = ["xlink:href"], Dt = /* @__PURE__ */ L({
|
|
4562
4557
|
inheritAttrs: !1,
|
|
4563
4558
|
__name: "vc-svg-icon",
|
|
4564
4559
|
props: {
|
|
@@ -4583,18 +4578,18 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4583
4578
|
const a = {};
|
|
4584
4579
|
return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
|
|
4585
4580
|
});
|
|
4586
|
-
return (a, o) => (
|
|
4581
|
+
return (a, o) => (C(), j("svg", ie({
|
|
4587
4582
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4588
4583
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
|
|
4589
4584
|
style: r.value
|
|
4590
4585
|
}, a.$attrs), [
|
|
4591
|
-
n.value ? (
|
|
4586
|
+
n.value ? (C(), j("use", {
|
|
4592
4587
|
key: 0,
|
|
4593
4588
|
"xlink:href": n.value
|
|
4594
|
-
}, null, 8,
|
|
4589
|
+
}, null, 8, Ft)) : X("", !0)
|
|
4595
4590
|
], 16));
|
|
4596
4591
|
}
|
|
4597
|
-
}),
|
|
4592
|
+
}), Mt = ["aria-hidden", "aria-label", "role"], le = /* @__PURE__ */ L({
|
|
4598
4593
|
__name: "vc-icon",
|
|
4599
4594
|
props: {
|
|
4600
4595
|
icon: { default: "lucide-square" },
|
|
@@ -4607,7 +4602,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4607
4602
|
},
|
|
4608
4603
|
setup(i) {
|
|
4609
4604
|
const e = i;
|
|
4610
|
-
|
|
4605
|
+
ue(() => {
|
|
4611
4606
|
});
|
|
4612
4607
|
const t = {
|
|
4613
4608
|
xs: 12,
|
|
@@ -4623,8 +4618,8 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4623
4618
|
if (n.value === "material" && e.icon.startsWith("material-"))
|
|
4624
4619
|
return e.icon.replace(/^material-/, "");
|
|
4625
4620
|
if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
|
|
4626
|
-
const
|
|
4627
|
-
return
|
|
4621
|
+
const x = e.icon.replace(/^lucide-/, "");
|
|
4622
|
+
return x.endsWith("Icon") ? x : `${x}Icon`;
|
|
4628
4623
|
}
|
|
4629
4624
|
return e.icon;
|
|
4630
4625
|
}), a = d(() => n.value === "material"), o = d(() => n.value === "bootstrap"), l = d(() => n.value === "lucide"), c = d(() => n.value === "fontawesome"), p = d(() => {
|
|
@@ -4634,30 +4629,30 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4634
4629
|
return !1;
|
|
4635
4630
|
if (l.value)
|
|
4636
4631
|
try {
|
|
4637
|
-
const
|
|
4638
|
-
return
|
|
4632
|
+
const x = typeof r.value == "string" ? r.value : String(r.value);
|
|
4633
|
+
return fe(x) !== x;
|
|
4639
4634
|
} catch {
|
|
4640
4635
|
return !1;
|
|
4641
4636
|
}
|
|
4642
4637
|
try {
|
|
4643
|
-
return
|
|
4638
|
+
return fe(e.icon) !== e.icon;
|
|
4644
4639
|
} catch {
|
|
4645
4640
|
return !1;
|
|
4646
4641
|
}
|
|
4647
4642
|
}), g = d(() => {
|
|
4648
4643
|
if (typeof e.icon != "string")
|
|
4649
|
-
return
|
|
4644
|
+
return Pe(e.icon);
|
|
4650
4645
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
4651
4646
|
return "i";
|
|
4652
4647
|
try {
|
|
4653
|
-
const
|
|
4654
|
-
return m !==
|
|
4648
|
+
const x = typeof r.value == "string" ? r.value : String(r.value), m = fe(x);
|
|
4649
|
+
return m !== x ? m : "i";
|
|
4655
4650
|
} catch {
|
|
4656
4651
|
return "i";
|
|
4657
4652
|
}
|
|
4658
|
-
}), h = d(() => a.value ?
|
|
4659
|
-
const
|
|
4660
|
-
return p.value && e.customSize && (
|
|
4653
|
+
}), h = d(() => a.value ? zt : o.value ? Bt : l.value ? kt : c.value ? Gt : z.value ? Dt : p.value ? g.value : "i"), _ = d(() => e.customSize ? e.customSize : t[e.size]), A = d(() => {
|
|
4654
|
+
const x = {};
|
|
4655
|
+
return p.value && e.customSize && (x.width = `${e.customSize}px`, x.height = `${e.customSize}px`), x;
|
|
4661
4656
|
}), E = d(() => e.customSize ? {
|
|
4662
4657
|
fontSize: `${e.customSize}px`
|
|
4663
4658
|
} : {}), O = d(() => a.value ? {
|
|
@@ -4701,15 +4696,15 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4701
4696
|
height: _.value,
|
|
4702
4697
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
4703
4698
|
} : {}), z = d(() => n.value === "svg"), D = d(() => !z.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
4704
|
-
return (
|
|
4699
|
+
return (x, m) => i.useContainer ? (C(), j("div", ie({
|
|
4705
4700
|
key: 0,
|
|
4706
4701
|
class: ["vc-icon-container", `vc-icon-container--${i.size}`],
|
|
4707
4702
|
style: E.value,
|
|
4708
4703
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
4709
4704
|
"aria-label": i.ariaLabel || void 0,
|
|
4710
4705
|
role: i.ariaLabel ? "img" : void 0
|
|
4711
|
-
},
|
|
4712
|
-
(
|
|
4706
|
+
}, x.$attrs), [
|
|
4707
|
+
(C(), Q(ve(h.value), ie({
|
|
4713
4708
|
class: [
|
|
4714
4709
|
"vc-icon",
|
|
4715
4710
|
`vc-icon--${i.size}`,
|
|
@@ -4718,7 +4713,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4718
4713
|
],
|
|
4719
4714
|
style: A.value
|
|
4720
4715
|
}, O.value), null, 16, ["class", "style"]))
|
|
4721
|
-
], 16,
|
|
4716
|
+
], 16, Mt)) : (C(), Q(ve(h.value), ie({
|
|
4722
4717
|
key: 1,
|
|
4723
4718
|
class: [
|
|
4724
4719
|
"vc-icon",
|
|
@@ -4730,9 +4725,9 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4730
4725
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
4731
4726
|
"aria-label": i.ariaLabel || void 0,
|
|
4732
4727
|
role: i.ariaLabel ? "img" : void 0
|
|
4733
|
-
}, { ...O.value, ...
|
|
4728
|
+
}, { ...O.value, ...x.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
4734
4729
|
}
|
|
4735
|
-
}),
|
|
4730
|
+
}), 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__ */ L({
|
|
4736
4731
|
__name: "VcAiAgentHeader",
|
|
4737
4732
|
props: {
|
|
4738
4733
|
title: {},
|
|
@@ -4741,79 +4736,79 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4741
4736
|
},
|
|
4742
4737
|
emits: ["close", "expand", "collapse"],
|
|
4743
4738
|
setup(i) {
|
|
4744
|
-
return (e, t) => (
|
|
4745
|
-
R("div",
|
|
4746
|
-
K(
|
|
4739
|
+
return (e, t) => (C(), j("div", Lt, [
|
|
4740
|
+
R("div", Jt, [
|
|
4741
|
+
K(ze, {
|
|
4747
4742
|
width: 22,
|
|
4748
4743
|
height: 24,
|
|
4749
4744
|
"show-dots": ""
|
|
4750
4745
|
})
|
|
4751
4746
|
]),
|
|
4752
|
-
R("div",
|
|
4753
|
-
R("div",
|
|
4754
|
-
R("div",
|
|
4747
|
+
R("div", Wt, [
|
|
4748
|
+
R("div", Vt, [
|
|
4749
|
+
R("div", Kt, ge(i.title), 1)
|
|
4755
4750
|
])
|
|
4756
4751
|
]),
|
|
4757
|
-
R("div",
|
|
4758
|
-
i.isExpanded ? (
|
|
4752
|
+
R("div", qt, [
|
|
4753
|
+
i.isExpanded ? (C(), j("div", {
|
|
4759
4754
|
key: 0,
|
|
4760
4755
|
class: "vc-ai-agent-header__button",
|
|
4761
4756
|
title: "Collapse",
|
|
4762
4757
|
onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
|
|
4763
4758
|
}, [
|
|
4764
|
-
K(le
|
|
4765
|
-
])) : (
|
|
4759
|
+
K(oe(le), { icon: "lucide-minus" })
|
|
4760
|
+
])) : (C(), j("div", {
|
|
4766
4761
|
key: 1,
|
|
4767
4762
|
class: "vc-ai-agent-header__button",
|
|
4768
4763
|
title: "Expand",
|
|
4769
4764
|
onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
|
|
4770
4765
|
}, [
|
|
4771
|
-
K(le
|
|
4766
|
+
K(oe(le), { icon: "lucide-panel-top" })
|
|
4772
4767
|
])),
|
|
4773
4768
|
R("div", {
|
|
4774
4769
|
class: "vc-ai-agent-header__button",
|
|
4775
4770
|
title: "Close",
|
|
4776
4771
|
onClick: t[2] || (t[2] = (n) => e.$emit("close"))
|
|
4777
4772
|
}, [
|
|
4778
|
-
K(le
|
|
4773
|
+
K(oe(le), { icon: "lucide-x" })
|
|
4779
4774
|
])
|
|
4780
4775
|
])
|
|
4781
4776
|
]));
|
|
4782
4777
|
}
|
|
4783
|
-
}),
|
|
4778
|
+
}), Zt = { class: "vc-ai-agent-loader" }, Xt = { class: "vc-ai-agent-loader__content" }, Yt = { class: "vc-ai-agent-loader__logo" }, Qt = {
|
|
4784
4779
|
key: 0,
|
|
4785
4780
|
class: "vc-ai-agent-loader__text"
|
|
4786
|
-
},
|
|
4781
|
+
}, er = /* @__PURE__ */ L({
|
|
4787
4782
|
__name: "VcAiAgentLoader",
|
|
4788
4783
|
props: {
|
|
4789
4784
|
text: {}
|
|
4790
4785
|
},
|
|
4791
4786
|
setup(i) {
|
|
4792
|
-
return (e, t) => (
|
|
4793
|
-
R("div",
|
|
4794
|
-
R("div",
|
|
4795
|
-
K(
|
|
4787
|
+
return (e, t) => (C(), j("div", Zt, [
|
|
4788
|
+
R("div", Xt, [
|
|
4789
|
+
R("div", Yt, [
|
|
4790
|
+
K(ze, {
|
|
4796
4791
|
width: 80,
|
|
4797
4792
|
height: 87,
|
|
4798
4793
|
animated: ""
|
|
4799
4794
|
})
|
|
4800
4795
|
]),
|
|
4801
|
-
i.text ? (
|
|
4796
|
+
i.text ? (C(), j("p", Qt, ge(i.text), 1)) : X("", !0)
|
|
4802
4797
|
])
|
|
4803
4798
|
]));
|
|
4804
4799
|
}
|
|
4805
|
-
}),
|
|
4800
|
+
}), tr = { class: "vc-ai-agent-iframe" }, rr = ["src"], nr = {
|
|
4806
4801
|
key: 1,
|
|
4807
4802
|
class: "vc-ai-agent-iframe__placeholder"
|
|
4808
|
-
},
|
|
4803
|
+
}, ar = /* @__PURE__ */ L({
|
|
4809
4804
|
__name: "VcAiAgentIframe",
|
|
4810
4805
|
props: {
|
|
4811
4806
|
url: {}
|
|
4812
4807
|
},
|
|
4813
4808
|
emits: ["iframe-ready"],
|
|
4814
4809
|
setup(i, { emit: e }) {
|
|
4815
|
-
const t =
|
|
4816
|
-
|
|
4810
|
+
const t = N("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
|
|
4811
|
+
Z(
|
|
4817
4812
|
a,
|
|
4818
4813
|
(c) => {
|
|
4819
4814
|
c && r("iframe-ready", c);
|
|
@@ -4823,22 +4818,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4823
4818
|
const l = () => {
|
|
4824
4819
|
o.value = !1, t.debug("Iframe loaded");
|
|
4825
4820
|
};
|
|
4826
|
-
return
|
|
4821
|
+
return Z(
|
|
4827
4822
|
() => n.url,
|
|
4828
4823
|
() => {
|
|
4829
4824
|
o.value = !0;
|
|
4830
4825
|
}
|
|
4831
|
-
), (c, p) => (
|
|
4832
|
-
K(
|
|
4833
|
-
default:
|
|
4834
|
-
o.value && i.url ? (
|
|
4826
|
+
), (c, p) => (C(), j("div", tr, [
|
|
4827
|
+
K(Oe, { name: "fade" }, {
|
|
4828
|
+
default: Ie(() => [
|
|
4829
|
+
o.value && i.url ? (C(), Q(er, {
|
|
4835
4830
|
key: 0,
|
|
4836
4831
|
text: c.$t("AI_AGENT.LOADING")
|
|
4837
|
-
}, null, 8, ["text"])) :
|
|
4832
|
+
}, null, 8, ["text"])) : X("", !0)
|
|
4838
4833
|
]),
|
|
4839
4834
|
_: 1
|
|
4840
4835
|
}),
|
|
4841
|
-
i.url ? (
|
|
4836
|
+
i.url ? (C(), j("iframe", {
|
|
4842
4837
|
key: 0,
|
|
4843
4838
|
ref_key: "iframeRef",
|
|
4844
4839
|
ref: a,
|
|
@@ -4847,8 +4842,8 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4847
4842
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
4848
4843
|
allow: "clipboard-read; clipboard-write",
|
|
4849
4844
|
onLoad: l
|
|
4850
|
-
}, null, 42,
|
|
4851
|
-
K(le
|
|
4845
|
+
}, null, 42, rr)) : (C(), j("div", nr, [
|
|
4846
|
+
K(oe(le), {
|
|
4852
4847
|
icon: "lucide-sparkles",
|
|
4853
4848
|
size: "xl",
|
|
4854
4849
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
@@ -4857,10 +4852,10 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4857
4852
|
]))
|
|
4858
4853
|
]));
|
|
4859
4854
|
}
|
|
4860
|
-
}),
|
|
4855
|
+
}), sr = { class: "vc-ai-agent-panel__content" }, fn = /* @__PURE__ */ L({
|
|
4861
4856
|
__name: "VcAiAgentPanel",
|
|
4862
4857
|
setup(i) {
|
|
4863
|
-
const e = J(
|
|
4858
|
+
const e = J(xe), t = J(vt, !1);
|
|
4864
4859
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
4865
4860
|
const n = d(
|
|
4866
4861
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
@@ -4869,18 +4864,18 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4869
4864
|
})), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (_) => {
|
|
4870
4865
|
e?._setIframeRef(_);
|
|
4871
4866
|
};
|
|
4872
|
-
return
|
|
4867
|
+
return Fe(() => {
|
|
4873
4868
|
e?._setIframeRef(null);
|
|
4874
|
-
}), (_, A) => (
|
|
4875
|
-
default:
|
|
4876
|
-
r.value ? (
|
|
4869
|
+
}), (_, A) => (C(), Q(Oe, { name: "ai-panel-slide" }, {
|
|
4870
|
+
default: Ie(() => [
|
|
4871
|
+
r.value ? (C(), j("div", {
|
|
4877
4872
|
key: 0,
|
|
4878
4873
|
class: q(["vc-ai-agent-panel", {
|
|
4879
4874
|
"vc-ai-agent-panel--expanded": a.value
|
|
4880
4875
|
}]),
|
|
4881
|
-
style:
|
|
4876
|
+
style: ee(l.value)
|
|
4882
4877
|
}, [
|
|
4883
|
-
K(
|
|
4878
|
+
K(Ht, {
|
|
4884
4879
|
title: n.value.title,
|
|
4885
4880
|
"is-expanded": a.value,
|
|
4886
4881
|
"items-count": o.value,
|
|
@@ -4888,108 +4883,108 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4888
4883
|
onExpand: p,
|
|
4889
4884
|
onCollapse: g
|
|
4890
4885
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
4891
|
-
R("div",
|
|
4892
|
-
K(
|
|
4886
|
+
R("div", sr, [
|
|
4887
|
+
K(ar, {
|
|
4893
4888
|
url: n.value.url,
|
|
4894
4889
|
onIframeReady: h
|
|
4895
4890
|
}, null, 8, ["url"])
|
|
4896
4891
|
])
|
|
4897
|
-
], 6)) :
|
|
4892
|
+
], 6)) : X("", !0)
|
|
4898
4893
|
]),
|
|
4899
4894
|
_: 1
|
|
4900
4895
|
}));
|
|
4901
4896
|
}
|
|
4902
4897
|
});
|
|
4903
4898
|
export {
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4899
|
+
pr as $,
|
|
4900
|
+
en as A,
|
|
4901
|
+
ht as B,
|
|
4902
|
+
Mr as C,
|
|
4903
|
+
gt as D,
|
|
4904
|
+
tn as E,
|
|
4905
|
+
Lr as F,
|
|
4906
|
+
Vr as G,
|
|
4907
|
+
rn as H,
|
|
4908
|
+
Jr as I,
|
|
4909
|
+
Kr as J,
|
|
4910
|
+
Nr as K,
|
|
4911
|
+
pt as L,
|
|
4912
|
+
kr as M,
|
|
4913
|
+
jr as N,
|
|
4914
|
+
$r as O,
|
|
4915
|
+
Or as P,
|
|
4916
|
+
tt as Q,
|
|
4917
|
+
zr as R,
|
|
4918
|
+
Tr as S,
|
|
4919
|
+
mt as T,
|
|
4920
|
+
dr as U,
|
|
4921
|
+
qe as V,
|
|
4922
|
+
Ir as W,
|
|
4923
|
+
Fr as X,
|
|
4924
|
+
fr as Y,
|
|
4930
4925
|
k as Z,
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4926
|
+
le as _,
|
|
4927
|
+
fn as a,
|
|
4928
|
+
Pr as a0,
|
|
4929
|
+
ft as a1,
|
|
4930
|
+
dt as a2,
|
|
4931
|
+
Qr as a3,
|
|
4932
|
+
Ar as a4,
|
|
4933
|
+
mr as a5,
|
|
4934
|
+
Hr as a6,
|
|
4935
|
+
Rr as a7,
|
|
4936
|
+
vr as a8,
|
|
4937
|
+
gr as a9,
|
|
4938
|
+
cn as aA,
|
|
4939
|
+
Br as aa,
|
|
4940
|
+
br as ab,
|
|
4941
|
+
He as ac,
|
|
4942
|
+
vt as ad,
|
|
4943
|
+
Ze as ae,
|
|
4944
|
+
Ve as af,
|
|
4945
|
+
qr as ag,
|
|
4946
|
+
xr as ah,
|
|
4947
|
+
Xe as ai,
|
|
4948
|
+
Er as aj,
|
|
4949
|
+
yr as ak,
|
|
4950
|
+
Gr as al,
|
|
4951
|
+
_r as am,
|
|
4952
|
+
Ye as an,
|
|
4953
|
+
Ur as ao,
|
|
4954
|
+
Ke as ap,
|
|
4955
|
+
Qe as aq,
|
|
4961
4956
|
Sr as ar,
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4957
|
+
Dr as as,
|
|
4958
|
+
et as at,
|
|
4959
|
+
ot as au,
|
|
4960
|
+
lt as av,
|
|
4961
|
+
Cr as aw,
|
|
4962
|
+
wr as ax,
|
|
4963
|
+
Ot as ay,
|
|
4964
|
+
ut as az,
|
|
4965
|
+
xe as b,
|
|
4966
|
+
dn as c,
|
|
4967
|
+
N as d,
|
|
4973
4968
|
Se as e,
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4969
|
+
un as f,
|
|
4970
|
+
Re as g,
|
|
4971
|
+
ct as h,
|
|
4972
|
+
sn as i,
|
|
4973
|
+
nn as j,
|
|
4974
|
+
on as k,
|
|
4975
|
+
Xr as l,
|
|
4976
|
+
Zr as m,
|
|
4977
|
+
At as n,
|
|
4978
|
+
at as o,
|
|
4979
|
+
ln as p,
|
|
4980
|
+
je as q,
|
|
4981
|
+
$e as r,
|
|
4982
|
+
an as s,
|
|
4988
4983
|
St as t,
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4984
|
+
hn as u,
|
|
4985
|
+
Ne as v,
|
|
4986
|
+
we as w,
|
|
4987
|
+
Ct as x,
|
|
4988
|
+
Yr as y,
|
|
4989
|
+
Wr as z
|
|
4995
4990
|
};
|