@vc-shell/framework 2.0.3 → 2.0.4
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 +10 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Bgkc3--0.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CTHTF63Q.js} +423 -496
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CTHTF63Q.js.map +1 -0
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Df8FWaeV.js → VcTableAdapter.vue_vue_type_style_index_0_lang-dJW2U276.js} +8474 -8405
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-dJW2U276.js.map +1 -0
- package/dist/chunks/{index-BXwiMzC3.js → index-CYv6y-92.js} +1 -1
- package/dist/chunks/{index-BXwiMzC3.js.map → index-CYv6y-92.js.map} +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/framework.js +538 -538
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-Bgkc3--0.js.map +0 -1
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-Df8FWaeV.js.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeaderSkeleton.vue.d.ts +0 -4
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeaderSkeleton.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts +0 -4
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as D, computed as h, 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 D, computed as h, shallowRef as ke, watch as Z, getCurrentInstance as ee, inject as J, isRef as ze, provide as Ae, defineComponent as M, openBlock as w, createElementBlock as N, createElementVNode as $, createCommentVNode as X, createStaticVNode as Fe, onMounted as le, normalizeStyle as V, normalizeClass as H, toDisplayString as pe, markRaw as we, createBlock as Q, resolveDynamicComponent as fe, mergeProps as se, resolveComponent as ce, createVNode as W, unref as ie, Transition as Te, withCtx as Pe, onUnmounted as Ge } from "vue";
|
|
2
|
+
import { c as te } from "./vendor-lodash-es-CfnUOh0o.js";
|
|
3
|
+
import { u as De } from "./vendor-vueuse-core-CEdpDfzx.js";
|
|
4
|
+
import { j as Le } from "./vendor-vueuse-shared-BlCOXw5g.js";
|
|
5
|
+
import { L as Me } 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(s, 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 G {
|
|
|
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 G {
|
|
|
33
33
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
class
|
|
36
|
+
class Ke extends G {
|
|
37
37
|
http;
|
|
38
38
|
baseUrl;
|
|
39
39
|
constructor(e, t) {
|
|
@@ -132,7 +132,7 @@ class qe extends G {
|
|
|
132
132
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
class
|
|
135
|
+
class Er extends G {
|
|
136
136
|
http;
|
|
137
137
|
baseUrl;
|
|
138
138
|
constructor(e, t) {
|
|
@@ -162,7 +162,7 @@ class Sr extends G {
|
|
|
162
162
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
class
|
|
165
|
+
class _r extends G {
|
|
166
166
|
http;
|
|
167
167
|
baseUrl;
|
|
168
168
|
constructor(e, t) {
|
|
@@ -304,7 +304,7 @@ class yr extends G {
|
|
|
304
304
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
class
|
|
307
|
+
class Cr extends G {
|
|
308
308
|
http;
|
|
309
309
|
baseUrl;
|
|
310
310
|
constructor(e, t) {
|
|
@@ -475,7 +475,7 @@ class Ur extends G {
|
|
|
475
475
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
class
|
|
478
|
+
class Sr extends G {
|
|
479
479
|
http;
|
|
480
480
|
baseUrl;
|
|
481
481
|
constructor(e, t) {
|
|
@@ -504,7 +504,7 @@ class Ar extends G {
|
|
|
504
504
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
class
|
|
507
|
+
class yr extends G {
|
|
508
508
|
http;
|
|
509
509
|
baseUrl;
|
|
510
510
|
constructor(e, t) {
|
|
@@ -556,7 +556,7 @@ class wr extends G {
|
|
|
556
556
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class Ur extends G {
|
|
560
560
|
http;
|
|
561
561
|
baseUrl;
|
|
562
562
|
constructor(e, t) {
|
|
@@ -827,7 +827,7 @@ class Tr extends G {
|
|
|
827
827
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
-
class
|
|
830
|
+
class Ar extends G {
|
|
831
831
|
http;
|
|
832
832
|
baseUrl;
|
|
833
833
|
constructor(e, t) {
|
|
@@ -859,7 +859,7 @@ class Pr extends G {
|
|
|
859
859
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
class
|
|
862
|
+
class wr extends G {
|
|
863
863
|
http;
|
|
864
864
|
baseUrl;
|
|
865
865
|
constructor(e, t) {
|
|
@@ -959,7 +959,7 @@ class Or extends G {
|
|
|
959
959
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
|
-
class
|
|
962
|
+
class Tr extends G {
|
|
963
963
|
http;
|
|
964
964
|
baseUrl;
|
|
965
965
|
constructor(e, t) {
|
|
@@ -1225,7 +1225,7 @@ class Ir extends G {
|
|
|
1225
1225
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
class
|
|
1228
|
+
class Pr extends G {
|
|
1229
1229
|
http;
|
|
1230
1230
|
baseUrl;
|
|
1231
1231
|
constructor(e, t) {
|
|
@@ -1326,7 +1326,7 @@ class Rr extends G {
|
|
|
1326
1326
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
|
-
class
|
|
1329
|
+
class Or extends G {
|
|
1330
1330
|
http;
|
|
1331
1331
|
baseUrl;
|
|
1332
1332
|
constructor(e, t) {
|
|
@@ -1382,7 +1382,7 @@ class Br extends G {
|
|
|
1382
1382
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
class
|
|
1385
|
+
class qe extends G {
|
|
1386
1386
|
http;
|
|
1387
1387
|
baseUrl;
|
|
1388
1388
|
constructor(e, t) {
|
|
@@ -2466,7 +2466,7 @@ class He extends G {
|
|
|
2466
2466
|
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
|
-
class
|
|
2469
|
+
class Ir extends G {
|
|
2470
2470
|
http;
|
|
2471
2471
|
baseUrl;
|
|
2472
2472
|
constructor(e, t) {
|
|
@@ -2592,8 +2592,8 @@ class $r extends G {
|
|
|
2592
2592
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
|
-
var
|
|
2596
|
-
class
|
|
2595
|
+
var He = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(He || {}), Ze = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(Ze || {}), Xe = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(Xe || {}), Ye = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Ye || {}), Qe = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(Qe || {}), Ve = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Ve || {}), et = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(et || {}), tt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(tt || {}), rt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(rt || {}), nt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(nt || {}), at = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(at || {}), st = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(st || {}), it = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(it || {}), ot = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(ot || {});
|
|
2596
|
+
class lt extends Error {
|
|
2597
2597
|
message;
|
|
2598
2598
|
status;
|
|
2599
2599
|
response;
|
|
@@ -2608,21 +2608,21 @@ class ut extends Error {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
function i(s, e, t, n, r) {
|
|
2611
|
-
throw r ?? new
|
|
2611
|
+
throw r ?? new lt(s, e, t, n, null);
|
|
2612
2612
|
}
|
|
2613
|
-
const
|
|
2613
|
+
const xe = {
|
|
2614
2614
|
debug: 0,
|
|
2615
2615
|
info: 1,
|
|
2616
2616
|
warn: 2,
|
|
2617
2617
|
error: 3,
|
|
2618
2618
|
none: 4
|
|
2619
|
-
},
|
|
2619
|
+
}, ut = {
|
|
2620
2620
|
level: "warn",
|
|
2621
2621
|
prefix: "@vc-shell/framework",
|
|
2622
2622
|
enabled: !0
|
|
2623
2623
|
};
|
|
2624
|
-
function
|
|
2625
|
-
const e = { ...
|
|
2624
|
+
function j(s) {
|
|
2625
|
+
const e = { ...ut }, t = s ? `[${e.prefix}#${s}]` : `[${e.prefix}]`, n = (r) => e.enabled ? xe[r] >= xe[e.level] : !1;
|
|
2626
2626
|
return {
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Log debug messages (only in development)
|
|
@@ -2651,7 +2651,7 @@ function N(s) {
|
|
|
2651
2651
|
/**
|
|
2652
2652
|
* Create a child logger with additional context
|
|
2653
2653
|
*/
|
|
2654
|
-
child: (r) =>
|
|
2654
|
+
child: (r) => j(s ? `${s}:${r}` : r),
|
|
2655
2655
|
/**
|
|
2656
2656
|
* Set the log level for this logger instance
|
|
2657
2657
|
*/
|
|
@@ -2666,82 +2666,16 @@ function N(s) {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2670
|
-
core:
|
|
2671
|
-
ui:
|
|
2672
|
-
shared:
|
|
2673
|
-
plugins:
|
|
2674
|
-
services:
|
|
2675
|
-
composables:
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
super(e), this.code = t, this.context = n, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, M);
|
|
2680
|
-
}
|
|
2681
|
-
toJSON() {
|
|
2682
|
-
return {
|
|
2683
|
-
name: this.name,
|
|
2684
|
-
code: this.code,
|
|
2685
|
-
message: this.message,
|
|
2686
|
-
context: this.context,
|
|
2687
|
-
stack: this.stack
|
|
2688
|
-
};
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
class jr extends M {
|
|
2692
|
-
constructor(e, t) {
|
|
2693
|
-
super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
|
|
2694
|
-
}
|
|
2695
|
-
}
|
|
2696
|
-
class zr extends M {
|
|
2697
|
-
constructor(e, t) {
|
|
2698
|
-
super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
|
|
2699
|
-
}
|
|
2700
|
-
}
|
|
2701
|
-
class ht extends M {
|
|
2702
|
-
constructor(e, t) {
|
|
2703
|
-
super(`${e} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
2704
|
-
serviceName: e,
|
|
2705
|
-
...t
|
|
2706
|
-
}), this.name = "InjectionError";
|
|
2707
|
-
}
|
|
2708
|
-
}
|
|
2709
|
-
class Fr extends M {
|
|
2710
|
-
constructor(e, t, n) {
|
|
2711
|
-
super(`Failed to register '${e}': ${t}`, "REGISTRATION_ERROR", {
|
|
2712
|
-
componentName: e,
|
|
2713
|
-
...n
|
|
2714
|
-
}), this.name = "RegistrationError";
|
|
2715
|
-
}
|
|
2716
|
-
}
|
|
2717
|
-
class Gr extends M {
|
|
2718
|
-
constructor(e, t, n) {
|
|
2719
|
-
super(e, "BLADE_ERROR", {
|
|
2720
|
-
bladeId: t,
|
|
2721
|
-
...n
|
|
2722
|
-
}), this.name = "BladeError";
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
class Dr extends M {
|
|
2726
|
-
constructor(e, t, n) {
|
|
2727
|
-
super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
|
|
2728
|
-
moduleId: e,
|
|
2729
|
-
...n
|
|
2730
|
-
}), this.name = "ModuleLoadError";
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
function dt(s) {
|
|
2734
|
-
return s instanceof M;
|
|
2735
|
-
}
|
|
2736
|
-
function Lr(s, e = "UNKNOWN_ERROR") {
|
|
2737
|
-
return dt(s) ? s : s instanceof Error ? new M(s.message, e, {
|
|
2738
|
-
originalError: s.name,
|
|
2739
|
-
stack: s.stack
|
|
2740
|
-
}) : new M(String(s), e);
|
|
2741
|
-
}
|
|
2742
|
-
const de = N("use-external-provider"), ft = "externalSignIn", pt = () => {
|
|
2743
|
-
const s = new qe(), e = Le(
|
|
2744
|
-
ft,
|
|
2669
|
+
const Rr = j(), Br = {
|
|
2670
|
+
core: j("core"),
|
|
2671
|
+
ui: j("ui"),
|
|
2672
|
+
shared: j("shared"),
|
|
2673
|
+
plugins: j("plugins"),
|
|
2674
|
+
services: j("services"),
|
|
2675
|
+
composables: j("composables")
|
|
2676
|
+
}, he = j("use-external-provider"), ct = "externalSignIn", ht = () => {
|
|
2677
|
+
const s = new Ke(), e = De(
|
|
2678
|
+
ct,
|
|
2745
2679
|
{},
|
|
2746
2680
|
{
|
|
2747
2681
|
listenToStorageChanges: !0,
|
|
@@ -2760,7 +2694,7 @@ const de = N("use-external-provider"), ft = "externalSignIn", pt = () => {
|
|
|
2760
2694
|
const m = new URL("/externalsignin", u);
|
|
2761
2695
|
m.searchParams.set("authenticationType", o), m.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(m);
|
|
2762
2696
|
} catch (u) {
|
|
2763
|
-
throw
|
|
2697
|
+
throw he.error("External sign-in failed:", u), u;
|
|
2764
2698
|
}
|
|
2765
2699
|
}
|
|
2766
2700
|
async function r(o) {
|
|
@@ -2768,7 +2702,7 @@ const de = N("use-external-provider"), ft = "externalSignIn", pt = () => {
|
|
|
2768
2702
|
const u = window.location.origin, c = window.location.pathname ?? "/", m = new URL("/externalsignin/signout", u);
|
|
2769
2703
|
m.searchParams.set("authenticationType", o), m.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(m);
|
|
2770
2704
|
} catch (u) {
|
|
2771
|
-
throw
|
|
2705
|
+
throw he.error("External sign-out failed:", u), u;
|
|
2772
2706
|
}
|
|
2773
2707
|
}
|
|
2774
2708
|
async function a() {
|
|
@@ -2776,7 +2710,7 @@ const de = N("use-external-provider"), ft = "externalSignIn", pt = () => {
|
|
|
2776
2710
|
try {
|
|
2777
2711
|
o = await s.getExternalLoginProviders();
|
|
2778
2712
|
} catch (u) {
|
|
2779
|
-
|
|
2713
|
+
he.error("Failed to get external login providers:", u);
|
|
2780
2714
|
}
|
|
2781
2715
|
return o;
|
|
2782
2716
|
}
|
|
@@ -2786,10 +2720,10 @@ const de = N("use-external-provider"), ft = "externalSignIn", pt = () => {
|
|
|
2786
2720
|
signOut: r,
|
|
2787
2721
|
getProviders: a
|
|
2788
2722
|
};
|
|
2789
|
-
},
|
|
2790
|
-
function
|
|
2723
|
+
}, me = "vc_auth_data", T = j("use-user");
|
|
2724
|
+
function dt() {
|
|
2791
2725
|
try {
|
|
2792
|
-
const s = localStorage.getItem(
|
|
2726
|
+
const s = localStorage.getItem(me);
|
|
2793
2727
|
if (s)
|
|
2794
2728
|
return JSON.parse(s);
|
|
2795
2729
|
} catch (s) {
|
|
@@ -2797,21 +2731,21 @@ function mt() {
|
|
|
2797
2731
|
}
|
|
2798
2732
|
return null;
|
|
2799
2733
|
}
|
|
2800
|
-
function
|
|
2734
|
+
function Ee(s) {
|
|
2801
2735
|
try {
|
|
2802
|
-
T.debug("storeAuthData - Saving:", s), localStorage.setItem(
|
|
2736
|
+
T.debug("storeAuthData - Saving:", s), localStorage.setItem(me, JSON.stringify(s)), T.debug("storeAuthData - Saved successfully");
|
|
2803
2737
|
} catch (e) {
|
|
2804
2738
|
T.error("Failed to store auth data:", e);
|
|
2805
2739
|
}
|
|
2806
2740
|
}
|
|
2807
|
-
function
|
|
2741
|
+
function ft() {
|
|
2808
2742
|
try {
|
|
2809
|
-
localStorage.removeItem(
|
|
2743
|
+
localStorage.removeItem(me);
|
|
2810
2744
|
} catch (s) {
|
|
2811
2745
|
T.error("Failed to clear auth data:", s);
|
|
2812
2746
|
}
|
|
2813
2747
|
}
|
|
2814
|
-
async function
|
|
2748
|
+
async function _e(s) {
|
|
2815
2749
|
try {
|
|
2816
2750
|
const e = new URLSearchParams(s).toString(), t = await fetch("/connect/token", {
|
|
2817
2751
|
method: "POST",
|
|
@@ -2840,8 +2774,8 @@ async function Ce(s) {
|
|
|
2840
2774
|
return T.error("fetchToken - Exception:", e), null;
|
|
2841
2775
|
}
|
|
2842
2776
|
}
|
|
2843
|
-
function
|
|
2844
|
-
const s = D(!1), e = D(), t = D(null), { storage: n, signOut: r } =
|
|
2777
|
+
function pt() {
|
|
2778
|
+
const s = D(!1), e = D(), t = D(null), { storage: n, signOut: r } = ht(), a = new qe(), o = h(() => e.value?.userName != null);
|
|
2845
2779
|
async function u(C, E) {
|
|
2846
2780
|
let A = !1;
|
|
2847
2781
|
try {
|
|
@@ -2871,13 +2805,13 @@ function gt() {
|
|
|
2871
2805
|
if (T.debug("signIn - Cookie login completed:", A), !A.succeeded)
|
|
2872
2806
|
return A;
|
|
2873
2807
|
T.debug("signIn - Requesting token...");
|
|
2874
|
-
const P = await
|
|
2808
|
+
const P = await _e({
|
|
2875
2809
|
grant_type: "password",
|
|
2876
2810
|
username: C,
|
|
2877
2811
|
password: E,
|
|
2878
2812
|
scope: "offline_access"
|
|
2879
2813
|
});
|
|
2880
|
-
P && (t.value = P,
|
|
2814
|
+
P && (t.value = P, Ee(t.value), T.debug("signIn - Token saved:", t.value));
|
|
2881
2815
|
const L = await a.getCurrentUser();
|
|
2882
2816
|
if (L)
|
|
2883
2817
|
return e.value = L, A;
|
|
@@ -2897,7 +2831,7 @@ function gt() {
|
|
|
2897
2831
|
}
|
|
2898
2832
|
}
|
|
2899
2833
|
async function p() {
|
|
2900
|
-
T.debug("signOut - Entry point"), e.value = void 0,
|
|
2834
|
+
T.debug("signOut - Entry point"), e.value = void 0, ft(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
|
|
2901
2835
|
}
|
|
2902
2836
|
let d = null;
|
|
2903
2837
|
async function v() {
|
|
@@ -2940,7 +2874,7 @@ function gt() {
|
|
|
2940
2874
|
}
|
|
2941
2875
|
return A;
|
|
2942
2876
|
}
|
|
2943
|
-
async function
|
|
2877
|
+
async function x() {
|
|
2944
2878
|
let C = null;
|
|
2945
2879
|
try {
|
|
2946
2880
|
C = await a.getLoginTypes();
|
|
@@ -2951,7 +2885,7 @@ function gt() {
|
|
|
2951
2885
|
}
|
|
2952
2886
|
const R = 60 * 1e3;
|
|
2953
2887
|
async function g() {
|
|
2954
|
-
if (T.debug("getAccessToken - Entry point"), t.value || (t.value =
|
|
2888
|
+
if (T.debug("getAccessToken - Entry point"), t.value || (t.value = dt()), !t.value)
|
|
2955
2889
|
return T.debug("getAccessToken - No auth data available"), null;
|
|
2956
2890
|
const C = Date.now(), E = t.value.expires_at, A = E ? C >= E - R : !1;
|
|
2957
2891
|
if (T.debug("getAccessToken - Token status:", {
|
|
@@ -2962,12 +2896,12 @@ function gt() {
|
|
|
2962
2896
|
hasRefreshToken: !!t.value.refresh_token
|
|
2963
2897
|
}), A && t.value.refresh_token) {
|
|
2964
2898
|
T.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
2965
|
-
const P = await
|
|
2899
|
+
const P = await _e({
|
|
2966
2900
|
grant_type: "refresh_token",
|
|
2967
2901
|
refresh_token: t.value.refresh_token,
|
|
2968
2902
|
scope: "offline_access"
|
|
2969
2903
|
});
|
|
2970
|
-
P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P,
|
|
2904
|
+
P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, Ee(t.value), T.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
2971
2905
|
expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
|
|
2972
2906
|
})) : T.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
2973
2907
|
}
|
|
@@ -2986,12 +2920,12 @@ function gt() {
|
|
|
2986
2920
|
resetPasswordByToken: m,
|
|
2987
2921
|
requestPasswordReset: y,
|
|
2988
2922
|
changeUserPassword: I,
|
|
2989
|
-
getLoginType:
|
|
2923
|
+
getLoginType: x,
|
|
2990
2924
|
getAccessToken: g
|
|
2991
2925
|
};
|
|
2992
2926
|
}
|
|
2993
|
-
const
|
|
2994
|
-
const s =
|
|
2927
|
+
const mt = Le(pt), vt = () => {
|
|
2928
|
+
const s = mt();
|
|
2995
2929
|
return {
|
|
2996
2930
|
user: s.user,
|
|
2997
2931
|
loading: s.loading,
|
|
@@ -3001,26 +2935,26 @@ const xt = Me(gt), bt = () => {
|
|
|
3001
2935
|
signOut: s.signOut,
|
|
3002
2936
|
getAccessToken: s.getAccessToken
|
|
3003
2937
|
};
|
|
3004
|
-
},
|
|
2938
|
+
}, Oe = Symbol("BladeStack"), gt = Symbol("BladeMessaging"), bt = Symbol("BladeDescriptor"), $r = Symbol("BladeMaximized"), xt = Symbol("BladeData"), Et = Symbol("BladeBanners"), Nr = Symbol("BladeBackButton"), jr = Symbol("NotificationStore"), kr = Symbol("WidgetService"), zr = Symbol("DashboardService"), Fr = Symbol("MenuService"), Gr = Symbol("SettingsMenuService"), Dr = Symbol("AppBarWidgetService"), Lr = Symbol("AppBarMobileButtonsService"), _t = Symbol("LanguageService"), Ct = Symbol("ToolbarService"), Mr = Symbol("DynamicModules"), Jr = Symbol("ModulesReady"), Wr = Symbol("ModulesLoadError"), Kr = Symbol("AppRootElement"), St = Symbol("EmbeddedMode"), qr = Symbol("ShellIndicators"), ve = Symbol("AiAgentService"), Hr = Symbol("IsMobile"), Zr = Symbol("IsDesktop"), Xr = Symbol("IsPhone"), Yr = Symbol("IsTablet"), Qr = Symbol("IsTouch"), Vr = Symbol("BladeRoutes"), en = Symbol("InternalRoutes"), tn = Symbol("CloseSettingsMenu"), rn = Symbol("BladeContext"), nn = Symbol("WidgetScope"), an = Symbol("BladeForm"), sn = Symbol("BladeLoading"), yt = {
|
|
3005
2939
|
url: "",
|
|
3006
2940
|
title: "Virto OZ",
|
|
3007
2941
|
width: 362,
|
|
3008
2942
|
expandedWidth: 500,
|
|
3009
2943
|
allowedOrigins: ["*"]
|
|
3010
|
-
},
|
|
2944
|
+
}, on = "APP_AI_AGENT_URL", ln = {
|
|
3011
2945
|
EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
|
|
3012
2946
|
AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
|
|
3013
2947
|
AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
|
|
3014
2948
|
AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
|
|
3015
|
-
},
|
|
2949
|
+
}, un = {
|
|
3016
2950
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
3017
2951
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
3018
|
-
},
|
|
3019
|
-
function
|
|
2952
|
+
}, Ut = "ai-agent-toggle", At = "lucide-sparkles", wt = "AI Assistant", re = j("ai-agent-panel");
|
|
2953
|
+
function Tt() {
|
|
3020
2954
|
const s = D("closed"), e = D(!1), t = h(() => s.value !== "closed"), n = h(() => s.value === "expanded"), r = () => {
|
|
3021
|
-
s.value === "closed" && (s.value = "open",
|
|
2955
|
+
s.value === "closed" && (s.value = "open", re.debug("Panel opened"));
|
|
3022
2956
|
}, a = () => {
|
|
3023
|
-
s.value = "closed", e.value = !1,
|
|
2957
|
+
s.value = "closed", e.value = !1, re.debug("Panel closed, reset initialized state");
|
|
3024
2958
|
};
|
|
3025
2959
|
return {
|
|
3026
2960
|
panelState: s,
|
|
@@ -3033,18 +2967,18 @@ function It() {
|
|
|
3033
2967
|
s.value === "closed" ? r() : a();
|
|
3034
2968
|
},
|
|
3035
2969
|
expand: () => {
|
|
3036
|
-
s.value === "open" && (s.value = "expanded",
|
|
2970
|
+
s.value === "open" && (s.value = "expanded", re.debug("Panel expanded"));
|
|
3037
2971
|
},
|
|
3038
2972
|
collapse: () => {
|
|
3039
|
-
s.value === "expanded" && (s.value = "open",
|
|
2973
|
+
s.value === "expanded" && (s.value = "open", re.debug("Panel collapsed"));
|
|
3040
2974
|
},
|
|
3041
2975
|
resetInitialized: () => {
|
|
3042
2976
|
e.value = !1;
|
|
3043
2977
|
}
|
|
3044
2978
|
};
|
|
3045
2979
|
}
|
|
3046
|
-
const
|
|
3047
|
-
function
|
|
2980
|
+
const de = j("ai-agent-context");
|
|
2981
|
+
function Ce(s) {
|
|
3048
2982
|
return s ? {
|
|
3049
2983
|
id: s.id,
|
|
3050
2984
|
name: s.name,
|
|
@@ -3052,7 +2986,7 @@ function Se(s) {
|
|
|
3052
2986
|
param: s.param
|
|
3053
2987
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
3054
2988
|
}
|
|
3055
|
-
function
|
|
2989
|
+
function Pt(s) {
|
|
3056
2990
|
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a = D(/* @__PURE__ */ new Map()), o = () => {
|
|
3057
2991
|
const y = t();
|
|
3058
2992
|
return y ? a.value.get(y.id) ?? {
|
|
@@ -3070,37 +3004,37 @@ function Rt(s) {
|
|
|
3070
3004
|
contextType: c,
|
|
3071
3005
|
contextSuggestions: m,
|
|
3072
3006
|
totalItemsCount: S,
|
|
3073
|
-
setContextData: (y, I,
|
|
3007
|
+
setContextData: (y, I, x, R) => {
|
|
3074
3008
|
const g = t()?.id || R;
|
|
3075
|
-
return g ? y.length === 0 && !
|
|
3009
|
+
return g ? y.length === 0 && !x ? (a.value.delete(g), de.debug(`Context cleared for blade: ${g}`), { cleared: !0 }) : (a.value.set(g, { items: y, type: I, suggestions: x }), de.debug(`Context set for blade: ${g}, items: ${y.length}, type: ${I}`), { cleared: !1 }) : (de.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
3076
3010
|
},
|
|
3077
3011
|
buildInitPayload: async () => {
|
|
3078
3012
|
const y = r ? await r() ?? void 0 : void 0;
|
|
3079
3013
|
return {
|
|
3080
3014
|
userId: e()?.id || "",
|
|
3081
3015
|
locale: n(),
|
|
3082
|
-
blade:
|
|
3016
|
+
blade: Ce(t()),
|
|
3083
3017
|
contextType: c.value,
|
|
3084
|
-
items:
|
|
3085
|
-
suggestions: m.value ?
|
|
3018
|
+
items: te(u.value),
|
|
3019
|
+
suggestions: m.value ? te(m.value) : void 0,
|
|
3086
3020
|
accessToken: y
|
|
3087
3021
|
};
|
|
3088
3022
|
},
|
|
3089
3023
|
buildUpdatePayload: async () => {
|
|
3090
3024
|
const y = r ? await r() ?? void 0 : void 0;
|
|
3091
3025
|
return {
|
|
3092
|
-
blade:
|
|
3026
|
+
blade: Ce(t()),
|
|
3093
3027
|
contextType: c.value,
|
|
3094
|
-
items:
|
|
3095
|
-
suggestions: m.value ?
|
|
3028
|
+
items: te(u.value),
|
|
3029
|
+
suggestions: m.value ? te(m.value) : void 0,
|
|
3096
3030
|
locale: n(),
|
|
3097
3031
|
accessToken: y
|
|
3098
3032
|
};
|
|
3099
3033
|
}
|
|
3100
3034
|
};
|
|
3101
3035
|
}
|
|
3102
|
-
const F =
|
|
3103
|
-
function
|
|
3036
|
+
const F = j("ai-agent-transport");
|
|
3037
|
+
function Ot(s) {
|
|
3104
3038
|
try {
|
|
3105
3039
|
const e = atob(s.content), t = new Array(e.length);
|
|
3106
3040
|
for (let o = 0; o < e.length; o++)
|
|
@@ -3111,15 +3045,15 @@ function Bt(s) {
|
|
|
3111
3045
|
F.error("Failed to download file:", e);
|
|
3112
3046
|
}
|
|
3113
3047
|
}
|
|
3114
|
-
function
|
|
3115
|
-
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a =
|
|
3048
|
+
function It(s) {
|
|
3049
|
+
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = ke(null), o = D(!1), u = D(!1), c = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set();
|
|
3116
3050
|
function p(v, y) {
|
|
3117
3051
|
switch (v) {
|
|
3118
3052
|
case "PREVIEW_CHANGES": {
|
|
3119
|
-
const
|
|
3053
|
+
const x = y;
|
|
3120
3054
|
m.size === 0 && F.warn("No preview changes handlers registered!"), m.forEach((R) => {
|
|
3121
3055
|
try {
|
|
3122
|
-
R(
|
|
3056
|
+
R(x);
|
|
3123
3057
|
} catch (g) {
|
|
3124
3058
|
F.error("Error in preview handler:", g);
|
|
3125
3059
|
}
|
|
@@ -3127,26 +3061,26 @@ function $t(s) {
|
|
|
3127
3061
|
break;
|
|
3128
3062
|
}
|
|
3129
3063
|
case "NAVIGATE_TO_APP": {
|
|
3130
|
-
const
|
|
3131
|
-
n &&
|
|
3064
|
+
const x = y;
|
|
3065
|
+
n && x?.bladeName && (n(x.bladeName, x.param, x.options), F.debug(`Navigation requested to: ${x.bladeName}`));
|
|
3132
3066
|
break;
|
|
3133
3067
|
}
|
|
3134
3068
|
case "RELOAD_BLADE":
|
|
3135
3069
|
r && (r(), F.debug("Blade reload requested"));
|
|
3136
3070
|
break;
|
|
3137
3071
|
case "DOWNLOAD_FILE": {
|
|
3138
|
-
const
|
|
3139
|
-
|
|
3072
|
+
const x = y;
|
|
3073
|
+
x && Ot(x);
|
|
3140
3074
|
break;
|
|
3141
3075
|
}
|
|
3142
3076
|
case "APPLY_CHANGES": {
|
|
3143
|
-
const
|
|
3144
|
-
F.warn("APPLY_CHANGES received but not implemented:",
|
|
3077
|
+
const x = y;
|
|
3078
|
+
F.warn("APPLY_CHANGES received but not implemented:", x?.changes);
|
|
3145
3079
|
break;
|
|
3146
3080
|
}
|
|
3147
3081
|
case "CHAT_ERROR": {
|
|
3148
|
-
const
|
|
3149
|
-
F.error(`Chatbot error [${
|
|
3082
|
+
const x = y;
|
|
3083
|
+
F.error(`Chatbot error [${x?.code}]: ${x?.message}`);
|
|
3150
3084
|
break;
|
|
3151
3085
|
}
|
|
3152
3086
|
}
|
|
@@ -3155,9 +3089,9 @@ function $t(s) {
|
|
|
3155
3089
|
payload: y,
|
|
3156
3090
|
timestamp: Date.now()
|
|
3157
3091
|
};
|
|
3158
|
-
c.forEach((
|
|
3092
|
+
c.forEach((x) => {
|
|
3159
3093
|
try {
|
|
3160
|
-
|
|
3094
|
+
x(I);
|
|
3161
3095
|
} catch (R) {
|
|
3162
3096
|
F.error("Handler error:", R);
|
|
3163
3097
|
}
|
|
@@ -3167,13 +3101,13 @@ function $t(s) {
|
|
|
3167
3101
|
const I = e().allowedOrigins || ["*"];
|
|
3168
3102
|
if (!I.includes("*") && !I.includes(v.origin))
|
|
3169
3103
|
return;
|
|
3170
|
-
const
|
|
3171
|
-
if (!(!
|
|
3172
|
-
switch (F.debug(`Message received: ${
|
|
3104
|
+
const x = v.data;
|
|
3105
|
+
if (!(!x?.type || typeof x.type != "string"))
|
|
3106
|
+
switch (F.debug(`Message received: ${x.type}`), x.type) {
|
|
3173
3107
|
// Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
|
|
3174
3108
|
case "AI_CHAT_MESSAGE": {
|
|
3175
3109
|
if (t) {
|
|
3176
|
-
const R =
|
|
3110
|
+
const R = x.payload;
|
|
3177
3111
|
R?.type && p(R.type, R.payload);
|
|
3178
3112
|
}
|
|
3179
3113
|
return;
|
|
@@ -3190,7 +3124,7 @@ function $t(s) {
|
|
|
3190
3124
|
break;
|
|
3191
3125
|
// Normal: direct chat protocol messages
|
|
3192
3126
|
default:
|
|
3193
|
-
p(
|
|
3127
|
+
p(x.type, x.payload);
|
|
3194
3128
|
break;
|
|
3195
3129
|
}
|
|
3196
3130
|
}
|
|
@@ -3239,8 +3173,8 @@ function $t(s) {
|
|
|
3239
3173
|
}
|
|
3240
3174
|
};
|
|
3241
3175
|
}
|
|
3242
|
-
const
|
|
3243
|
-
function
|
|
3176
|
+
const ne = j("ai-agent-service");
|
|
3177
|
+
function Rt(s) {
|
|
3244
3178
|
const {
|
|
3245
3179
|
userGetter: e,
|
|
3246
3180
|
bladeGetter: t,
|
|
@@ -3250,12 +3184,12 @@ function kt(s) {
|
|
|
3250
3184
|
reloadBlade: o,
|
|
3251
3185
|
initialConfig: u,
|
|
3252
3186
|
isEmbedded: c = !1
|
|
3253
|
-
} = s, m = D({ ...
|
|
3187
|
+
} = s, m = D({ ...yt, ...u }), S = Tt(), p = Pt({
|
|
3254
3188
|
userGetter: e,
|
|
3255
3189
|
bladeGetter: t,
|
|
3256
3190
|
localeGetter: n,
|
|
3257
3191
|
tokenGetter: r
|
|
3258
|
-
}), d =
|
|
3192
|
+
}), d = It({
|
|
3259
3193
|
getConfig: () => m.value,
|
|
3260
3194
|
isEmbedded: c,
|
|
3261
3195
|
navigateToBlade: a,
|
|
@@ -3268,14 +3202,14 @@ function kt(s) {
|
|
|
3268
3202
|
if (d.pendingInitContext.value && d.iframeRef.value?.contentWindow) {
|
|
3269
3203
|
d.pendingInitContext.value = !1, S.isInitialized.value = !0;
|
|
3270
3204
|
const E = await p.buildInitPayload();
|
|
3271
|
-
d.sendToIframe({ type: "INIT_CONTEXT", payload: E }),
|
|
3205
|
+
d.sendToIframe({ type: "INIT_CONTEXT", payload: E }), ne.debug("Flushed pending INIT_CONTEXT");
|
|
3272
3206
|
}
|
|
3273
3207
|
};
|
|
3274
3208
|
d.onChatReady(() => {
|
|
3275
3209
|
d.iframeRef.value?.contentWindow ? (S.isInitialized.value = !0, p.buildInitPayload().then((E) => {
|
|
3276
|
-
d.sendToIframe({ type: "INIT_CONTEXT", payload: E }),
|
|
3277
|
-
})) : (d.pendingInitContext.value = !0,
|
|
3278
|
-
}),
|
|
3210
|
+
d.sendToIframe({ type: "INIT_CONTEXT", payload: E }), ne.info("Chatbot ready, sent INIT_CONTEXT");
|
|
3211
|
+
})) : (d.pendingInitContext.value = !0, ne.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
3212
|
+
}), Z(d.iframeRef, () => y()), Z(
|
|
3279
3213
|
() => ({ currentBlade: v.value.currentBlade, items: v.value.items }),
|
|
3280
3214
|
async () => {
|
|
3281
3215
|
if (c) {
|
|
@@ -3290,16 +3224,16 @@ function kt(s) {
|
|
|
3290
3224
|
},
|
|
3291
3225
|
{ deep: !0 }
|
|
3292
3226
|
);
|
|
3293
|
-
const I = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.open(),
|
|
3227
|
+
const I = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.open(), x = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.close(), R = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.toggle(), g = (E) => {
|
|
3294
3228
|
d.setIframeRef(E), y();
|
|
3295
3229
|
}, C = (E, A, P, L) => {
|
|
3296
|
-
const { cleared:
|
|
3297
|
-
c &&
|
|
3230
|
+
const { cleared: Y } = p.setContextData(E, A, P, L);
|
|
3231
|
+
c && Y && d.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
3298
3232
|
};
|
|
3299
3233
|
return d.startListening(), c && (d.sendToParent({
|
|
3300
3234
|
type: "EMBEDDED_APP_READY",
|
|
3301
3235
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
3302
|
-
}),
|
|
3236
|
+
}), ne.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
3303
3237
|
// State
|
|
3304
3238
|
panelState: S.panelState,
|
|
3305
3239
|
config: m,
|
|
@@ -3309,7 +3243,7 @@ function kt(s) {
|
|
|
3309
3243
|
totalItemsCount: p.totalItemsCount,
|
|
3310
3244
|
// Panel control
|
|
3311
3245
|
openPanel: I,
|
|
3312
|
-
closePanel:
|
|
3246
|
+
closePanel: x,
|
|
3313
3247
|
togglePanel: R,
|
|
3314
3248
|
expandPanel: () => S.expand(),
|
|
3315
3249
|
collapsePanel: () => S.collapse(),
|
|
@@ -3331,23 +3265,23 @@ function kt(s) {
|
|
|
3331
3265
|
_onPreviewChanges: d.onPreviewChanges
|
|
3332
3266
|
};
|
|
3333
3267
|
}
|
|
3334
|
-
let Re, Be,
|
|
3335
|
-
function
|
|
3268
|
+
let Ie, Re, Be, Bt;
|
|
3269
|
+
function cn(s) {
|
|
3270
|
+
Ie = s;
|
|
3271
|
+
}
|
|
3272
|
+
function hn(s) {
|
|
3336
3273
|
Re = s;
|
|
3337
3274
|
}
|
|
3338
|
-
function
|
|
3275
|
+
function dn(s) {
|
|
3339
3276
|
Be = s;
|
|
3340
3277
|
}
|
|
3341
|
-
function
|
|
3342
|
-
|
|
3278
|
+
function fn(s) {
|
|
3279
|
+
Bt = s;
|
|
3343
3280
|
}
|
|
3344
|
-
function
|
|
3345
|
-
Nt = s;
|
|
3346
|
-
}
|
|
3347
|
-
function ye(s, e) {
|
|
3281
|
+
function Se(s, e) {
|
|
3348
3282
|
if (e.length === 0)
|
|
3349
3283
|
return { path: s ? `/${s}` : "/", query: {} };
|
|
3350
|
-
const t = e[0], n =
|
|
3284
|
+
const t = e[0], n = ye(t.url);
|
|
3351
3285
|
let r;
|
|
3352
3286
|
for (let u = e.length - 1; u >= 1; u--)
|
|
3353
3287
|
if (e[u].visible) {
|
|
@@ -3356,7 +3290,7 @@ function ye(s, e) {
|
|
|
3356
3290
|
}
|
|
3357
3291
|
let a = s ? `/${s}` : "";
|
|
3358
3292
|
if (n && (a += `/${n}`), r) {
|
|
3359
|
-
const u =
|
|
3293
|
+
const u = ye(r.url);
|
|
3360
3294
|
u && (a += `/${u}`), r.param && (a += `/${r.param}`);
|
|
3361
3295
|
}
|
|
3362
3296
|
const o = {};
|
|
@@ -3364,7 +3298,7 @@ function ye(s, e) {
|
|
|
3364
3298
|
u.visible && u.query && Object.assign(o, u.query);
|
|
3365
3299
|
return { path: a || "/", query: o };
|
|
3366
3300
|
}
|
|
3367
|
-
function
|
|
3301
|
+
function pn(s, e) {
|
|
3368
3302
|
let t = s.split("/").filter(Boolean);
|
|
3369
3303
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
3370
3304
|
workspaceUrl: t[0],
|
|
@@ -3372,46 +3306,46 @@ function Sn(s, e) {
|
|
|
3372
3306
|
param: t[2]
|
|
3373
3307
|
};
|
|
3374
3308
|
}
|
|
3375
|
-
function
|
|
3309
|
+
function ye(s) {
|
|
3376
3310
|
if (s)
|
|
3377
3311
|
return s.replace(/^\/+|\/+$/g, "") || void 0;
|
|
3378
3312
|
}
|
|
3379
|
-
function
|
|
3313
|
+
function Ue(s) {
|
|
3380
3314
|
const e = s.currentRoute.value.params;
|
|
3381
3315
|
return Object.values(e).find((t) => typeof t == "string" && t) || "";
|
|
3382
3316
|
}
|
|
3383
|
-
function
|
|
3317
|
+
function $t(s, e) {
|
|
3384
3318
|
function t() {
|
|
3385
|
-
const { path: r, query: a } =
|
|
3319
|
+
const { path: r, query: a } = Se(Ue(s), e.blades.value);
|
|
3386
3320
|
s.push({ path: r, query: a });
|
|
3387
3321
|
}
|
|
3388
3322
|
function n() {
|
|
3389
|
-
const { path: r, query: a } =
|
|
3323
|
+
const { path: r, query: a } = Se(Ue(s), e.blades.value);
|
|
3390
3324
|
s.replace({ path: r, query: a });
|
|
3391
3325
|
}
|
|
3392
3326
|
return { syncUrlPush: t, syncUrlReplace: n };
|
|
3393
3327
|
}
|
|
3394
|
-
const
|
|
3328
|
+
const Nt = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
|
|
3395
3329
|
function B(s) {
|
|
3396
3330
|
throw new Error(`[vc-shell] ${s} requires blade context.
|
|
3397
|
-
${
|
|
3331
|
+
${Nt}`);
|
|
3398
3332
|
}
|
|
3399
|
-
function
|
|
3400
|
-
const s = (
|
|
3333
|
+
function jt() {
|
|
3334
|
+
const s = (ee() ? J(Oe, void 0) : void 0) ?? Re, e = (ee() ? J(gt, void 0) : void 0) ?? Be;
|
|
3401
3335
|
if (!s || !e)
|
|
3402
3336
|
throw new Error(
|
|
3403
3337
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
3404
3338
|
);
|
|
3405
|
-
const t = s, n = e, r =
|
|
3339
|
+
const t = s, n = e, r = ee() ? J(bt, void 0) : void 0, a = ee() ? J(Et, void 0) : void 0;
|
|
3406
3340
|
let o;
|
|
3407
3341
|
function u() {
|
|
3408
3342
|
if (o) return o;
|
|
3409
|
-
const _ =
|
|
3410
|
-
return _ && (o =
|
|
3343
|
+
const _ = Ie?.router;
|
|
3344
|
+
return _ && (o = $t(_, t)), o;
|
|
3411
3345
|
}
|
|
3412
3346
|
const c = h(() => (r || B("id"), r.value.id)), m = h(() => (r || B("param"), r.value.param)), S = h(() => (r || B("options"), r.value.options)), p = h(() => (r || B("query"), r.value.query)), d = h(() => (r || B("closable"), r.value.parentId !== void 0)), v = h(() => (r || B("expanded"), t.activeBlade.value?.id === r.value.id)), y = h(() => (r || B("name"), r.value.name));
|
|
3413
3347
|
let I = !1;
|
|
3414
|
-
function
|
|
3348
|
+
function x(_) {
|
|
3415
3349
|
if (I) {
|
|
3416
3350
|
console.warn(
|
|
3417
3351
|
"[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
|
|
@@ -3419,16 +3353,16 @@ function Ft() {
|
|
|
3419
3353
|
return;
|
|
3420
3354
|
}
|
|
3421
3355
|
I = !0;
|
|
3422
|
-
const z =
|
|
3423
|
-
|
|
3356
|
+
const z = ze(_) ? _ : D(_);
|
|
3357
|
+
Ae(xt, z);
|
|
3424
3358
|
}
|
|
3425
3359
|
async function R(_) {
|
|
3426
|
-
const { isWorkspace: z, ...
|
|
3360
|
+
const { isWorkspace: z, ...ue } = _;
|
|
3427
3361
|
if (z)
|
|
3428
|
-
await t.openWorkspace(
|
|
3362
|
+
await t.openWorkspace(ue);
|
|
3429
3363
|
else {
|
|
3430
3364
|
const be = r?.value.id;
|
|
3431
|
-
be ? await t.openBlade({ ...
|
|
3365
|
+
be ? await t.openBlade({ ...ue, parentId: be }) : await t.openBlade(ue);
|
|
3432
3366
|
}
|
|
3433
3367
|
t.activeBlade.value?.url && u()?.syncUrlPush();
|
|
3434
3368
|
}
|
|
@@ -3458,7 +3392,7 @@ function Ft() {
|
|
|
3458
3392
|
function L(_) {
|
|
3459
3393
|
r || B("exposeToChildren()"), n.exposeToChildren(r.value.id, _);
|
|
3460
3394
|
}
|
|
3461
|
-
function
|
|
3395
|
+
function Y(_) {
|
|
3462
3396
|
r || B("onBeforeClose()"), t.registerBeforeClose(r.value.id, _);
|
|
3463
3397
|
}
|
|
3464
3398
|
function l(_) {
|
|
@@ -3467,10 +3401,10 @@ function Ft() {
|
|
|
3467
3401
|
function f() {
|
|
3468
3402
|
r || B("clearError()"), t.clearBladeError(r.value.id);
|
|
3469
3403
|
}
|
|
3470
|
-
let
|
|
3404
|
+
let b = 0;
|
|
3471
3405
|
function U(_) {
|
|
3472
3406
|
a || B("addBanner()");
|
|
3473
|
-
const z = `banner-${r.value.id}-${++
|
|
3407
|
+
const z = `banner-${r.value.id}-${++b}`;
|
|
3474
3408
|
return a.value.push({
|
|
3475
3409
|
..._,
|
|
3476
3410
|
id: z,
|
|
@@ -3480,25 +3414,25 @@ function Ft() {
|
|
|
3480
3414
|
function O(_) {
|
|
3481
3415
|
a || B("removeBanner()"), a.value = a.value.filter((z) => z.id !== _);
|
|
3482
3416
|
}
|
|
3483
|
-
function
|
|
3417
|
+
function k() {
|
|
3484
3418
|
a || B("clearBanners()"), a.value = a.value.filter((_) => _._system);
|
|
3485
3419
|
}
|
|
3486
|
-
let
|
|
3420
|
+
let K = !1, ge = !1;
|
|
3487
3421
|
function Ne(_) {
|
|
3488
|
-
if (r || B("onActivated()"),
|
|
3422
|
+
if (r || B("onActivated()"), K) {
|
|
3489
3423
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
3490
3424
|
return;
|
|
3491
3425
|
}
|
|
3492
|
-
|
|
3426
|
+
K = !0, Z(v, (z) => {
|
|
3493
3427
|
z && _();
|
|
3494
3428
|
});
|
|
3495
3429
|
}
|
|
3496
3430
|
function je(_) {
|
|
3497
|
-
if (r || B("onDeactivated()"),
|
|
3431
|
+
if (r || B("onDeactivated()"), ge) {
|
|
3498
3432
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
3499
3433
|
return;
|
|
3500
3434
|
}
|
|
3501
|
-
|
|
3435
|
+
ge = !0, Z(v, (z) => {
|
|
3502
3436
|
z || _();
|
|
3503
3437
|
});
|
|
3504
3438
|
}
|
|
@@ -3510,7 +3444,7 @@ function Ft() {
|
|
|
3510
3444
|
closable: d,
|
|
3511
3445
|
expanded: v,
|
|
3512
3446
|
name: y,
|
|
3513
|
-
provideBladeData:
|
|
3447
|
+
provideBladeData: x,
|
|
3514
3448
|
openBlade: R,
|
|
3515
3449
|
closeSelf: g,
|
|
3516
3450
|
closeChildren: C,
|
|
@@ -3518,21 +3452,21 @@ function Ft() {
|
|
|
3518
3452
|
coverWith: A,
|
|
3519
3453
|
callParent: P,
|
|
3520
3454
|
exposeToChildren: L,
|
|
3521
|
-
onBeforeClose:
|
|
3455
|
+
onBeforeClose: Y,
|
|
3522
3456
|
onActivated: Ne,
|
|
3523
3457
|
onDeactivated: je,
|
|
3524
3458
|
setError: l,
|
|
3525
3459
|
clearError: f,
|
|
3526
3460
|
addBanner: U,
|
|
3527
3461
|
removeBanner: O,
|
|
3528
|
-
clearBanners:
|
|
3462
|
+
clearBanners: k
|
|
3529
3463
|
};
|
|
3530
3464
|
}
|
|
3531
|
-
let
|
|
3532
|
-
function
|
|
3533
|
-
return `blade_${++
|
|
3465
|
+
let kt = 0;
|
|
3466
|
+
function ae() {
|
|
3467
|
+
return `blade_${++kt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
3534
3468
|
}
|
|
3535
|
-
function
|
|
3469
|
+
function mn(s, e) {
|
|
3536
3470
|
const t = D([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = h(() => t.value[0]), u = h(() => t.value), c = h(() => {
|
|
3537
3471
|
for (let l = t.value.length - 1; l >= 0; l--)
|
|
3538
3472
|
if (t.value[l].visible) return t.value[l];
|
|
@@ -3547,8 +3481,8 @@ function yn(s, e) {
|
|
|
3547
3481
|
}
|
|
3548
3482
|
async function p(l) {
|
|
3549
3483
|
for (let f = l.length - 1; f >= 0; f--) {
|
|
3550
|
-
const
|
|
3551
|
-
if (
|
|
3484
|
+
const b = n.get(l[f].id);
|
|
3485
|
+
if (b && await b())
|
|
3552
3486
|
return !0;
|
|
3553
3487
|
}
|
|
3554
3488
|
return !1;
|
|
@@ -3559,16 +3493,16 @@ function yn(s, e) {
|
|
|
3559
3493
|
}
|
|
3560
3494
|
async function v(l) {
|
|
3561
3495
|
if (o.value?.name === l.name) return;
|
|
3562
|
-
const
|
|
3563
|
-
if (!
|
|
3496
|
+
const b = s.getBlade(l.name);
|
|
3497
|
+
if (!b)
|
|
3564
3498
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3565
|
-
if (e &&
|
|
3499
|
+
if (e && b.permissions && !e(b.permissions)) {
|
|
3566
3500
|
console.warn(`[BladeStack] Access denied to workspace '${l.name}'`);
|
|
3567
3501
|
return;
|
|
3568
3502
|
}
|
|
3569
3503
|
d([...t.value]);
|
|
3570
3504
|
const U = {
|
|
3571
|
-
id:
|
|
3505
|
+
id: ae(),
|
|
3572
3506
|
name: l.name,
|
|
3573
3507
|
url: S(l.name),
|
|
3574
3508
|
// workspace blades don't have param when opened first
|
|
@@ -3584,15 +3518,15 @@ function yn(s, e) {
|
|
|
3584
3518
|
const f = l.parentId ?? c.value?.id ?? o.value?.id;
|
|
3585
3519
|
if (!f)
|
|
3586
3520
|
throw new Error("[BladeStack] Cannot open blade: no parent blade found");
|
|
3587
|
-
const
|
|
3588
|
-
if (
|
|
3521
|
+
const b = t.value.findIndex((k) => k.id === f);
|
|
3522
|
+
if (b === -1)
|
|
3589
3523
|
throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
|
|
3590
|
-
const U = t.value.slice(
|
|
3524
|
+
const U = t.value.slice(b + 1);
|
|
3591
3525
|
if (U.length > 0 && await p(U))
|
|
3592
3526
|
return;
|
|
3593
3527
|
d(U);
|
|
3594
3528
|
const O = {
|
|
3595
|
-
id:
|
|
3529
|
+
id: ae(),
|
|
3596
3530
|
name: l.name,
|
|
3597
3531
|
url: S(l.name),
|
|
3598
3532
|
param: l.param,
|
|
@@ -3601,37 +3535,37 @@ function yn(s, e) {
|
|
|
3601
3535
|
parentId: f,
|
|
3602
3536
|
visible: !0
|
|
3603
3537
|
};
|
|
3604
|
-
t.value = [...t.value.slice(0,
|
|
3538
|
+
t.value = [...t.value.slice(0, b + 1), O], l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
|
|
3605
3539
|
}
|
|
3606
3540
|
async function I(l) {
|
|
3607
|
-
const f = t.value.findIndex((
|
|
3541
|
+
const f = t.value.findIndex((k) => k.id === l);
|
|
3608
3542
|
if (f === -1 || f === 0) return !1;
|
|
3609
|
-
const
|
|
3610
|
-
if (await p(
|
|
3611
|
-
d(
|
|
3543
|
+
const b = t.value.slice(f);
|
|
3544
|
+
if (await p(b)) return !0;
|
|
3545
|
+
d(b), t.value = t.value.slice(0, f);
|
|
3612
3546
|
const O = t.value.length - 1;
|
|
3613
3547
|
if (O > 0 && !t.value[O].visible) {
|
|
3614
|
-
const
|
|
3615
|
-
|
|
3548
|
+
const k = [...t.value];
|
|
3549
|
+
k[O] = { ...k[O], visible: !0 }, t.value = k;
|
|
3616
3550
|
}
|
|
3617
3551
|
return !1;
|
|
3618
3552
|
}
|
|
3619
|
-
async function
|
|
3553
|
+
async function x(l) {
|
|
3620
3554
|
const f = c.value;
|
|
3621
3555
|
if (!f)
|
|
3622
3556
|
throw new Error("[BladeStack] No active blade to replace");
|
|
3623
3557
|
if (!s.getBlade(l.name))
|
|
3624
3558
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3625
|
-
const
|
|
3626
|
-
if (
|
|
3559
|
+
const b = t.value.findIndex((K) => K.id === f.id);
|
|
3560
|
+
if (b === -1)
|
|
3627
3561
|
throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
|
|
3628
|
-
const U = t.value.slice(
|
|
3562
|
+
const U = t.value.slice(b + 1);
|
|
3629
3563
|
if (U.length > 0) {
|
|
3630
3564
|
if (await p(U)) return;
|
|
3631
3565
|
d(U);
|
|
3632
3566
|
}
|
|
3633
3567
|
const O = {
|
|
3634
|
-
id:
|
|
3568
|
+
id: ae(),
|
|
3635
3569
|
name: l.name,
|
|
3636
3570
|
url: S(l.name),
|
|
3637
3571
|
param: l.param,
|
|
@@ -3641,8 +3575,8 @@ function yn(s, e) {
|
|
|
3641
3575
|
visible: !0
|
|
3642
3576
|
};
|
|
3643
3577
|
d([f]);
|
|
3644
|
-
const
|
|
3645
|
-
t.value =
|
|
3578
|
+
const k = [...t.value.slice(0, b), O, ...t.value.slice(b + 1)];
|
|
3579
|
+
t.value = k, l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
|
|
3646
3580
|
}
|
|
3647
3581
|
async function R(l) {
|
|
3648
3582
|
const f = c.value;
|
|
@@ -3650,16 +3584,16 @@ function yn(s, e) {
|
|
|
3650
3584
|
throw new Error("[BladeStack] No active blade to cover");
|
|
3651
3585
|
if (!s.getBlade(l.name))
|
|
3652
3586
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3653
|
-
const
|
|
3654
|
-
if (
|
|
3587
|
+
const b = t.value.findIndex((K) => K.id === f.id);
|
|
3588
|
+
if (b === -1)
|
|
3655
3589
|
throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
|
|
3656
|
-
const U = t.value.slice(
|
|
3590
|
+
const U = t.value.slice(b + 1);
|
|
3657
3591
|
if (U.length > 0) {
|
|
3658
3592
|
if (await p(U)) return;
|
|
3659
3593
|
d(U);
|
|
3660
3594
|
}
|
|
3661
3595
|
const O = {
|
|
3662
|
-
id:
|
|
3596
|
+
id: ae(),
|
|
3663
3597
|
name: l.name,
|
|
3664
3598
|
url: S(l.name),
|
|
3665
3599
|
param: l.param,
|
|
@@ -3667,14 +3601,14 @@ function yn(s, e) {
|
|
|
3667
3601
|
options: l.options,
|
|
3668
3602
|
parentId: f.id,
|
|
3669
3603
|
visible: !0
|
|
3670
|
-
},
|
|
3671
|
-
|
|
3604
|
+
}, k = t.value.slice(0, b);
|
|
3605
|
+
k.push({ ...f, visible: !1 }), k.push(O), t.value = k, l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
|
|
3672
3606
|
}
|
|
3673
3607
|
async function g(l) {
|
|
3674
3608
|
const f = t.value.findIndex((O) => O.id === l);
|
|
3675
3609
|
if (f === -1) return;
|
|
3676
|
-
const
|
|
3677
|
-
|
|
3610
|
+
const b = t.value.slice(f + 1);
|
|
3611
|
+
b.length === 0 || await p(b) || (d(b), t.value = t.value.slice(0, f + 1));
|
|
3678
3612
|
}
|
|
3679
3613
|
function C(l, f) {
|
|
3680
3614
|
n.set(l, f);
|
|
@@ -3683,24 +3617,24 @@ function yn(s, e) {
|
|
|
3683
3617
|
n.delete(l);
|
|
3684
3618
|
}
|
|
3685
3619
|
function A(l, f) {
|
|
3686
|
-
const
|
|
3687
|
-
if (
|
|
3620
|
+
const b = t.value.findIndex((O) => O.id === l);
|
|
3621
|
+
if (b === -1) return;
|
|
3688
3622
|
const U = [...t.value];
|
|
3689
|
-
U[
|
|
3623
|
+
U[b] = { ...U[b], error: f }, t.value = U;
|
|
3690
3624
|
}
|
|
3691
3625
|
function P(l) {
|
|
3692
3626
|
const f = t.value.findIndex((U) => U.id === l);
|
|
3693
3627
|
if (f === -1) return;
|
|
3694
|
-
const
|
|
3695
|
-
|
|
3628
|
+
const b = [...t.value];
|
|
3629
|
+
b[f] = { ...b[f], error: void 0 }, t.value = b;
|
|
3696
3630
|
}
|
|
3697
3631
|
function L(l, f) {
|
|
3698
|
-
const
|
|
3699
|
-
if (
|
|
3632
|
+
const b = t.value.findIndex((O) => O.id === l);
|
|
3633
|
+
if (b === -1 || t.value[b].title === f) return;
|
|
3700
3634
|
const U = [...t.value];
|
|
3701
|
-
U[
|
|
3635
|
+
U[b] = { ...U[b], title: f }, t.value = U;
|
|
3702
3636
|
}
|
|
3703
|
-
function
|
|
3637
|
+
function Y(l) {
|
|
3704
3638
|
for (const f of t.value)
|
|
3705
3639
|
m(f.id);
|
|
3706
3640
|
t.value = l;
|
|
@@ -3713,25 +3647,25 @@ function yn(s, e) {
|
|
|
3713
3647
|
openBlade: y,
|
|
3714
3648
|
closeBlade: I,
|
|
3715
3649
|
closeChildren: g,
|
|
3716
|
-
replaceCurrentBlade:
|
|
3650
|
+
replaceCurrentBlade: x,
|
|
3717
3651
|
coverCurrentBlade: R,
|
|
3718
3652
|
registerBeforeClose: C,
|
|
3719
3653
|
unregisterBeforeClose: E,
|
|
3720
3654
|
setBladeError: A,
|
|
3721
3655
|
clearBladeError: P,
|
|
3722
3656
|
setBladeTitle: L,
|
|
3723
|
-
_restoreStack:
|
|
3657
|
+
_restoreStack: Y
|
|
3724
3658
|
};
|
|
3725
3659
|
}
|
|
3726
|
-
function
|
|
3727
|
-
const s =
|
|
3660
|
+
function zt() {
|
|
3661
|
+
const s = J(Oe);
|
|
3728
3662
|
if (!s)
|
|
3729
3663
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
3730
3664
|
return s;
|
|
3731
3665
|
}
|
|
3732
|
-
const
|
|
3733
|
-
function
|
|
3734
|
-
const e =
|
|
3666
|
+
const q = j("use-ai-agent");
|
|
3667
|
+
function vn(s) {
|
|
3668
|
+
const e = J(_t), { user: t, getAccessToken: n } = vt(), { openBlade: r } = jt(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = zt(), c = s?.isEmbedded, m = Rt({
|
|
3735
3669
|
userGetter: () => {
|
|
3736
3670
|
if (t.value)
|
|
3737
3671
|
return {
|
|
@@ -3755,9 +3689,9 @@ function Un(s) {
|
|
|
3755
3689
|
tokenGetter: n,
|
|
3756
3690
|
navigateToBlade: (p, d, v) => {
|
|
3757
3691
|
r({ name: p, param: d, options: v }).then(() => {
|
|
3758
|
-
|
|
3692
|
+
q.debug(`Navigated to blade: ${p}`);
|
|
3759
3693
|
}).catch((y) => {
|
|
3760
|
-
|
|
3694
|
+
q.warn(`Blade not found or cannot be opened: ${p}`, y);
|
|
3761
3695
|
});
|
|
3762
3696
|
},
|
|
3763
3697
|
reloadBlade: () => {
|
|
@@ -3768,35 +3702,37 @@ function Un(s) {
|
|
|
3768
3702
|
query: p.query,
|
|
3769
3703
|
options: p.options
|
|
3770
3704
|
}).then(() => {
|
|
3771
|
-
|
|
3705
|
+
q.debug("Current blade reloaded");
|
|
3772
3706
|
}).catch((d) => {
|
|
3773
|
-
|
|
3707
|
+
q.warn("Failed to reload current blade", d);
|
|
3774
3708
|
});
|
|
3775
3709
|
},
|
|
3776
3710
|
initialConfig: s?.config,
|
|
3777
3711
|
isEmbedded: c
|
|
3778
3712
|
});
|
|
3779
|
-
if (
|
|
3780
|
-
const p =
|
|
3713
|
+
if (Ae(ve, m), q.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
|
|
3714
|
+
const p = J(Ct, null);
|
|
3781
3715
|
p ? (p.registerToolbarItem(
|
|
3782
3716
|
{
|
|
3783
|
-
id:
|
|
3784
|
-
icon:
|
|
3785
|
-
title:
|
|
3717
|
+
id: Ut,
|
|
3718
|
+
icon: At,
|
|
3719
|
+
title: wt,
|
|
3786
3720
|
clickHandler: () => {
|
|
3787
3721
|
m.togglePanel();
|
|
3788
3722
|
}
|
|
3789
3723
|
},
|
|
3790
3724
|
"*"
|
|
3791
3725
|
// Wildcard for all blades
|
|
3792
|
-
),
|
|
3726
|
+
), q.debug("Global AI toolbar button registered with wildcard '*'")) : q.warn("Toolbar service not available, AI button not registered");
|
|
3793
3727
|
}
|
|
3794
3728
|
return m;
|
|
3795
3729
|
}
|
|
3796
|
-
function
|
|
3797
|
-
const s =
|
|
3798
|
-
if (!s)
|
|
3799
|
-
|
|
3730
|
+
function gn() {
|
|
3731
|
+
const s = J(ve);
|
|
3732
|
+
if (!s) {
|
|
3733
|
+
q.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
|
|
3734
|
+
return;
|
|
3735
|
+
}
|
|
3800
3736
|
return {
|
|
3801
3737
|
// State
|
|
3802
3738
|
panelState: s.panelState,
|
|
@@ -3818,7 +3754,7 @@ function An() {
|
|
|
3818
3754
|
onMessage: s.onMessage
|
|
3819
3755
|
};
|
|
3820
3756
|
}
|
|
3821
|
-
function
|
|
3757
|
+
function bn(s) {
|
|
3822
3758
|
return {
|
|
3823
3759
|
id: "ai-agent-toggle",
|
|
3824
3760
|
icon: s?.icon ?? "lucide-sparkles",
|
|
@@ -3828,11 +3764,11 @@ function wn(s) {
|
|
|
3828
3764
|
}
|
|
3829
3765
|
};
|
|
3830
3766
|
}
|
|
3831
|
-
const
|
|
3767
|
+
const Ft = ["width", "height"], Gt = ["clip-path"], Dt = {
|
|
3832
3768
|
key: 1,
|
|
3833
3769
|
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",
|
|
3834
3770
|
fill: "url(#virto-oz-gradient-animated)"
|
|
3835
|
-
},
|
|
3771
|
+
}, Lt = ["id"], Mt = {
|
|
3836
3772
|
key: 1,
|
|
3837
3773
|
id: "virto-oz-gradient-animated",
|
|
3838
3774
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -3840,7 +3776,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3840
3776
|
y1: "0",
|
|
3841
3777
|
x2: "99",
|
|
3842
3778
|
y2: "108"
|
|
3843
|
-
},
|
|
3779
|
+
}, $e = /* @__PURE__ */ M({
|
|
3844
3780
|
__name: "VcVirtoOzLogo",
|
|
3845
3781
|
props: {
|
|
3846
3782
|
width: { default: 22 },
|
|
@@ -3849,7 +3785,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3849
3785
|
},
|
|
3850
3786
|
setup(s) {
|
|
3851
3787
|
const e = h(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
3852
|
-
return (t, n) => (w(),
|
|
3788
|
+
return (t, n) => (w(), N("svg", {
|
|
3853
3789
|
width: s.width,
|
|
3854
3790
|
height: s.height,
|
|
3855
3791
|
viewBox: "0 0 99 108",
|
|
@@ -3861,7 +3797,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3861
3797
|
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",
|
|
3862
3798
|
fill: "white"
|
|
3863
3799
|
}, null, -1)),
|
|
3864
|
-
s.animated ? (w(),
|
|
3800
|
+
s.animated ? (w(), N("path", Dt)) : (w(), N("g", {
|
|
3865
3801
|
key: 0,
|
|
3866
3802
|
"clip-path": `url(#${e.value})`
|
|
3867
3803
|
}, [...n[0] || (n[0] = [
|
|
@@ -3886,7 +3822,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3886
3822
|
})
|
|
3887
3823
|
])
|
|
3888
3824
|
], -1)
|
|
3889
|
-
])], 8,
|
|
3825
|
+
])], 8, Gt)),
|
|
3890
3826
|
n[4] || (n[4] = $("path", {
|
|
3891
3827
|
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",
|
|
3892
3828
|
fill: "white"
|
|
@@ -3913,19 +3849,19 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3913
3849
|
fill: "#6C6C6C"
|
|
3914
3850
|
}, null, -1)),
|
|
3915
3851
|
$("defs", null, [
|
|
3916
|
-
s.animated ?
|
|
3852
|
+
s.animated ? X("", !0) : (w(), N("clipPath", {
|
|
3917
3853
|
key: 0,
|
|
3918
3854
|
id: e.value
|
|
3919
3855
|
}, [...n[1] || (n[1] = [
|
|
3920
3856
|
$("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)
|
|
3921
|
-
])], 8,
|
|
3922
|
-
s.animated ? (w(),
|
|
3923
|
-
|
|
3924
|
-
])])) :
|
|
3857
|
+
])], 8, Lt)),
|
|
3858
|
+
s.animated ? (w(), N("linearGradient", Mt, [...n[2] || (n[2] = [
|
|
3859
|
+
Fe('<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)
|
|
3860
|
+
])])) : X("", !0)
|
|
3925
3861
|
])
|
|
3926
|
-
], 8,
|
|
3862
|
+
], 8, Ft));
|
|
3927
3863
|
}
|
|
3928
|
-
}),
|
|
3864
|
+
}), Jt = /* @__PURE__ */ M({
|
|
3929
3865
|
__name: "vc-material-icon",
|
|
3930
3866
|
props: {
|
|
3931
3867
|
icon: {},
|
|
@@ -3936,19 +3872,19 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3936
3872
|
},
|
|
3937
3873
|
setup(s) {
|
|
3938
3874
|
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3939
|
-
return
|
|
3940
|
-
}), (r, a) => (w(),
|
|
3941
|
-
class:
|
|
3875
|
+
return le(() => {
|
|
3876
|
+
}), (r, a) => (w(), N("span", {
|
|
3877
|
+
class: H([
|
|
3942
3878
|
"vc-material-icon",
|
|
3943
3879
|
"material-symbols-" + s.type,
|
|
3944
3880
|
!t.value && `vc-material-icon--${s.size}`,
|
|
3945
3881
|
s.variant ? `vc-material-icon--${s.variant}` : ""
|
|
3946
3882
|
]),
|
|
3947
|
-
style:
|
|
3883
|
+
style: V(n.value),
|
|
3948
3884
|
"aria-hidden": "true"
|
|
3949
|
-
},
|
|
3885
|
+
}, pe(s.icon), 7));
|
|
3950
3886
|
}
|
|
3951
|
-
}),
|
|
3887
|
+
}), Wt = /* @__PURE__ */ M({
|
|
3952
3888
|
__name: "vc-bootstrap-icon",
|
|
3953
3889
|
props: {
|
|
3954
3890
|
icon: {},
|
|
@@ -3958,21 +3894,21 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3958
3894
|
},
|
|
3959
3895
|
setup(s) {
|
|
3960
3896
|
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3961
|
-
|
|
3897
|
+
le(() => {
|
|
3962
3898
|
});
|
|
3963
3899
|
const r = h(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
3964
|
-
return (a, o) => (w(),
|
|
3965
|
-
class:
|
|
3900
|
+
return (a, o) => (w(), N("i", {
|
|
3901
|
+
class: H([
|
|
3966
3902
|
"vc-bootstrap-icon",
|
|
3967
3903
|
!t.value && `vc-bootstrap-icon--${s.size}`,
|
|
3968
3904
|
r.value,
|
|
3969
3905
|
s.variant ? `vc-bootstrap-icon--${s.variant}` : ""
|
|
3970
3906
|
]),
|
|
3971
|
-
style:
|
|
3907
|
+
style: V(n.value),
|
|
3972
3908
|
"aria-hidden": "true"
|
|
3973
3909
|
}, null, 6));
|
|
3974
3910
|
}
|
|
3975
|
-
}),
|
|
3911
|
+
}), Kt = /* @__PURE__ */ M({
|
|
3976
3912
|
__name: "vc-lucide-icon",
|
|
3977
3913
|
props: {
|
|
3978
3914
|
icon: {},
|
|
@@ -3982,35 +3918,35 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
3982
3918
|
customSize: {}
|
|
3983
3919
|
},
|
|
3984
3920
|
setup(s) {
|
|
3985
|
-
const e =
|
|
3921
|
+
const e = j("vc-lucide-icon"), t = s, n = h(() => typeof t.customSize == "number" && t.customSize > 0), r = h(() => {
|
|
3986
3922
|
if (!t.icon) return "HelpCircleIcon";
|
|
3987
3923
|
let u = t.icon;
|
|
3988
3924
|
return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
|
|
3989
3925
|
}), a = h(() => {
|
|
3990
|
-
const u = r.value, c =
|
|
3991
|
-
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) :
|
|
3926
|
+
const u = r.value, c = Me[u];
|
|
3927
|
+
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : we(c);
|
|
3992
3928
|
}), o = h(() => n.value && t.customSize ? {
|
|
3993
3929
|
width: `${t.customSize}px`,
|
|
3994
3930
|
height: `${t.customSize}px`
|
|
3995
3931
|
} : {});
|
|
3996
|
-
return (u, c) => a.value ? (w(),
|
|
3932
|
+
return (u, c) => a.value ? (w(), Q(fe(a.value), {
|
|
3997
3933
|
key: 0,
|
|
3998
3934
|
"stroke-width": t.strokeWidth,
|
|
3999
|
-
class:
|
|
3935
|
+
class: H([
|
|
4000
3936
|
"vc-lucide-icon",
|
|
4001
3937
|
!n.value && `vc-lucide-icon--${s.size}`,
|
|
4002
3938
|
s.variant ? `vc-lucide-icon--${s.variant}` : ""
|
|
4003
3939
|
]),
|
|
4004
|
-
style:
|
|
3940
|
+
style: V(o.value),
|
|
4005
3941
|
"aria-hidden": "true"
|
|
4006
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (w(),
|
|
3942
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (w(), N("span", {
|
|
4007
3943
|
key: 1,
|
|
4008
|
-
class:
|
|
3944
|
+
class: H(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
|
|
4009
3945
|
}, [...c[0] || (c[0] = [
|
|
4010
3946
|
$("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
4011
3947
|
])], 2));
|
|
4012
3948
|
}
|
|
4013
|
-
}),
|
|
3949
|
+
}), qt = /* @__PURE__ */ M({
|
|
4014
3950
|
__name: "vc-fontawesome-icon",
|
|
4015
3951
|
props: {
|
|
4016
3952
|
icon: {},
|
|
@@ -4020,21 +3956,21 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4020
3956
|
},
|
|
4021
3957
|
setup(s) {
|
|
4022
3958
|
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4023
|
-
|
|
3959
|
+
le(() => {
|
|
4024
3960
|
});
|
|
4025
3961
|
const r = h(() => 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}`);
|
|
4026
|
-
return (a, o) => (w(),
|
|
4027
|
-
class:
|
|
3962
|
+
return (a, o) => (w(), N("i", {
|
|
3963
|
+
class: H([
|
|
4028
3964
|
"vc-fa-icon",
|
|
4029
3965
|
!t.value && `vc-fa-icon--${s.size}`,
|
|
4030
3966
|
r.value,
|
|
4031
3967
|
s.variant ? `vc-fa-icon--${s.variant}` : ""
|
|
4032
3968
|
]),
|
|
4033
|
-
style:
|
|
3969
|
+
style: V(n.value),
|
|
4034
3970
|
"aria-hidden": "true"
|
|
4035
3971
|
}, null, 6));
|
|
4036
3972
|
}
|
|
4037
|
-
}),
|
|
3973
|
+
}), Ht = ["xlink:href"], Zt = /* @__PURE__ */ M({
|
|
4038
3974
|
inheritAttrs: !1,
|
|
4039
3975
|
__name: "vc-svg-icon",
|
|
4040
3976
|
props: {
|
|
@@ -4059,18 +3995,18 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4059
3995
|
const a = {};
|
|
4060
3996
|
return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
|
|
4061
3997
|
});
|
|
4062
|
-
return (a, o) => (w(),
|
|
3998
|
+
return (a, o) => (w(), N("svg", se({
|
|
4063
3999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4064
4000
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${s.size}`, s.variant ? `vc-svg-icon--${s.variant}` : ""],
|
|
4065
4001
|
style: r.value
|
|
4066
4002
|
}, a.$attrs), [
|
|
4067
|
-
n.value ? (w(),
|
|
4003
|
+
n.value ? (w(), N("use", {
|
|
4068
4004
|
key: 0,
|
|
4069
4005
|
"xlink:href": n.value
|
|
4070
|
-
}, null, 8,
|
|
4006
|
+
}, null, 8, Ht)) : X("", !0)
|
|
4071
4007
|
], 16));
|
|
4072
4008
|
}
|
|
4073
|
-
}),
|
|
4009
|
+
}), Xt = ["aria-hidden", "aria-label", "role"], oe = /* @__PURE__ */ M({
|
|
4074
4010
|
__name: "vc-icon",
|
|
4075
4011
|
props: {
|
|
4076
4012
|
icon: { default: "lucide-square" },
|
|
@@ -4083,7 +4019,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4083
4019
|
},
|
|
4084
4020
|
setup(s) {
|
|
4085
4021
|
const e = s;
|
|
4086
|
-
|
|
4022
|
+
le(() => {
|
|
4087
4023
|
});
|
|
4088
4024
|
const t = {
|
|
4089
4025
|
xs: 12,
|
|
@@ -4111,27 +4047,27 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4111
4047
|
if (u.value)
|
|
4112
4048
|
try {
|
|
4113
4049
|
const g = typeof r.value == "string" ? r.value : String(r.value);
|
|
4114
|
-
return
|
|
4050
|
+
return ce(g) !== g;
|
|
4115
4051
|
} catch {
|
|
4116
4052
|
return !1;
|
|
4117
4053
|
}
|
|
4118
4054
|
try {
|
|
4119
|
-
return
|
|
4055
|
+
return ce(e.icon) !== e.icon;
|
|
4120
4056
|
} catch {
|
|
4121
4057
|
return !1;
|
|
4122
4058
|
}
|
|
4123
4059
|
}), S = h(() => {
|
|
4124
4060
|
if (typeof e.icon != "string")
|
|
4125
|
-
return
|
|
4061
|
+
return we(e.icon);
|
|
4126
4062
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
4127
4063
|
return "i";
|
|
4128
4064
|
try {
|
|
4129
|
-
const g = typeof r.value == "string" ? r.value : String(r.value), C =
|
|
4065
|
+
const g = typeof r.value == "string" ? r.value : String(r.value), C = ce(g);
|
|
4130
4066
|
return C !== g ? C : "i";
|
|
4131
4067
|
} catch {
|
|
4132
4068
|
return "i";
|
|
4133
4069
|
}
|
|
4134
|
-
}), p = h(() => a.value ?
|
|
4070
|
+
}), p = h(() => a.value ? Jt : o.value ? Wt : u.value ? Kt : c.value ? qt : x.value ? Zt : m.value ? S.value : "i"), d = h(() => e.customSize ? e.customSize : t[e.size]), v = h(() => {
|
|
4135
4071
|
const g = {};
|
|
4136
4072
|
return m.value && e.customSize && (g.width = `${e.customSize}px`, g.height = `${e.customSize}px`), g;
|
|
4137
4073
|
}), y = h(() => e.customSize ? {
|
|
@@ -4165,7 +4101,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4165
4101
|
variant: e.variant,
|
|
4166
4102
|
customSize: e.customSize
|
|
4167
4103
|
// Set custom size without scaling
|
|
4168
|
-
} :
|
|
4104
|
+
} : x.value ? {
|
|
4169
4105
|
icon: R.value,
|
|
4170
4106
|
size: e.size,
|
|
4171
4107
|
variant: e.variant,
|
|
@@ -4176,8 +4112,8 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4176
4112
|
width: d.value,
|
|
4177
4113
|
height: d.value,
|
|
4178
4114
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
4179
|
-
} : {}),
|
|
4180
|
-
return (g, C) => s.useContainer ? (w(),
|
|
4115
|
+
} : {}), x = h(() => n.value === "svg"), R = h(() => !x.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
4116
|
+
return (g, C) => s.useContainer ? (w(), N("div", se({
|
|
4181
4117
|
key: 0,
|
|
4182
4118
|
class: ["vc-icon-container", `vc-icon-container--${s.size}`],
|
|
4183
4119
|
style: y.value,
|
|
@@ -4185,7 +4121,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4185
4121
|
"aria-label": s.ariaLabel || void 0,
|
|
4186
4122
|
role: s.ariaLabel ? "img" : void 0
|
|
4187
4123
|
}, g.$attrs), [
|
|
4188
|
-
(w(),
|
|
4124
|
+
(w(), Q(fe(p.value), se({
|
|
4189
4125
|
class: [
|
|
4190
4126
|
"vc-icon",
|
|
4191
4127
|
`vc-icon--${s.size}`,
|
|
@@ -4194,7 +4130,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4194
4130
|
],
|
|
4195
4131
|
style: v.value
|
|
4196
4132
|
}, I.value), null, 16, ["class", "style"]))
|
|
4197
|
-
], 16,
|
|
4133
|
+
], 16, Xt)) : (w(), Q(fe(p.value), se({
|
|
4198
4134
|
key: 1,
|
|
4199
4135
|
class: [
|
|
4200
4136
|
"vc-icon",
|
|
@@ -4208,7 +4144,7 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4208
4144
|
role: s.ariaLabel ? "img" : void 0
|
|
4209
4145
|
}, { ...I.value, ...g.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
4210
4146
|
}
|
|
4211
|
-
}),
|
|
4147
|
+
}), Yt = { class: "vc-ai-agent-header" }, Qt = { class: "vc-ai-agent-header__icon" }, Vt = { class: "vc-ai-agent-header__wrapper" }, er = { class: "vc-ai-agent-header__content" }, tr = { class: "vc-ai-agent-header__title" }, rr = { class: "vc-ai-agent-header__controls" }, nr = /* @__PURE__ */ M({
|
|
4212
4148
|
__name: "VcAiAgentHeader",
|
|
4213
4149
|
props: {
|
|
4214
4150
|
title: {},
|
|
@@ -4217,79 +4153,79 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4217
4153
|
},
|
|
4218
4154
|
emits: ["close", "expand", "collapse"],
|
|
4219
4155
|
setup(s) {
|
|
4220
|
-
return (e, t) => (w(),
|
|
4221
|
-
$("div",
|
|
4222
|
-
|
|
4156
|
+
return (e, t) => (w(), N("div", Yt, [
|
|
4157
|
+
$("div", Qt, [
|
|
4158
|
+
W($e, {
|
|
4223
4159
|
width: 22,
|
|
4224
4160
|
height: 24,
|
|
4225
4161
|
"show-dots": ""
|
|
4226
4162
|
})
|
|
4227
4163
|
]),
|
|
4228
|
-
$("div",
|
|
4229
|
-
$("div",
|
|
4230
|
-
$("div",
|
|
4164
|
+
$("div", Vt, [
|
|
4165
|
+
$("div", er, [
|
|
4166
|
+
$("div", tr, pe(s.title), 1)
|
|
4231
4167
|
])
|
|
4232
4168
|
]),
|
|
4233
|
-
$("div",
|
|
4234
|
-
s.isExpanded ? (w(),
|
|
4169
|
+
$("div", rr, [
|
|
4170
|
+
s.isExpanded ? (w(), N("div", {
|
|
4235
4171
|
key: 0,
|
|
4236
4172
|
class: "vc-ai-agent-header__button",
|
|
4237
4173
|
title: "Collapse",
|
|
4238
4174
|
onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
|
|
4239
4175
|
}, [
|
|
4240
|
-
|
|
4241
|
-
])) : (w(),
|
|
4176
|
+
W(ie(oe), { icon: "lucide-minus" })
|
|
4177
|
+
])) : (w(), N("div", {
|
|
4242
4178
|
key: 1,
|
|
4243
4179
|
class: "vc-ai-agent-header__button",
|
|
4244
4180
|
title: "Expand",
|
|
4245
4181
|
onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
|
|
4246
4182
|
}, [
|
|
4247
|
-
|
|
4183
|
+
W(ie(oe), { icon: "lucide-panel-top" })
|
|
4248
4184
|
])),
|
|
4249
4185
|
$("div", {
|
|
4250
4186
|
class: "vc-ai-agent-header__button",
|
|
4251
4187
|
title: "Close",
|
|
4252
4188
|
onClick: t[2] || (t[2] = (n) => e.$emit("close"))
|
|
4253
4189
|
}, [
|
|
4254
|
-
|
|
4190
|
+
W(ie(oe), { icon: "lucide-x" })
|
|
4255
4191
|
])
|
|
4256
4192
|
])
|
|
4257
4193
|
]));
|
|
4258
4194
|
}
|
|
4259
|
-
}),
|
|
4195
|
+
}), ar = { class: "vc-ai-agent-loader" }, sr = { class: "vc-ai-agent-loader__content" }, ir = { class: "vc-ai-agent-loader__logo" }, or = {
|
|
4260
4196
|
key: 0,
|
|
4261
4197
|
class: "vc-ai-agent-loader__text"
|
|
4262
|
-
},
|
|
4198
|
+
}, lr = /* @__PURE__ */ M({
|
|
4263
4199
|
__name: "VcAiAgentLoader",
|
|
4264
4200
|
props: {
|
|
4265
4201
|
text: {}
|
|
4266
4202
|
},
|
|
4267
4203
|
setup(s) {
|
|
4268
|
-
return (e, t) => (w(),
|
|
4269
|
-
$("div",
|
|
4270
|
-
$("div",
|
|
4271
|
-
|
|
4204
|
+
return (e, t) => (w(), N("div", ar, [
|
|
4205
|
+
$("div", sr, [
|
|
4206
|
+
$("div", ir, [
|
|
4207
|
+
W($e, {
|
|
4272
4208
|
width: 80,
|
|
4273
4209
|
height: 87,
|
|
4274
4210
|
animated: ""
|
|
4275
4211
|
})
|
|
4276
4212
|
]),
|
|
4277
|
-
s.text ? (w(),
|
|
4213
|
+
s.text ? (w(), N("p", or, pe(s.text), 1)) : X("", !0)
|
|
4278
4214
|
])
|
|
4279
4215
|
]));
|
|
4280
4216
|
}
|
|
4281
|
-
}),
|
|
4217
|
+
}), ur = { class: "vc-ai-agent-iframe" }, cr = ["src"], hr = {
|
|
4282
4218
|
key: 1,
|
|
4283
4219
|
class: "vc-ai-agent-iframe__placeholder"
|
|
4284
|
-
},
|
|
4220
|
+
}, dr = /* @__PURE__ */ M({
|
|
4285
4221
|
__name: "VcAiAgentIframe",
|
|
4286
4222
|
props: {
|
|
4287
4223
|
url: {}
|
|
4288
4224
|
},
|
|
4289
4225
|
emits: ["iframe-ready"],
|
|
4290
4226
|
setup(s, { emit: e }) {
|
|
4291
|
-
const t =
|
|
4292
|
-
|
|
4227
|
+
const t = j("ai-agent-iframe"), n = s, r = e, a = D(null), o = D(!0);
|
|
4228
|
+
Z(
|
|
4293
4229
|
a,
|
|
4294
4230
|
(c) => {
|
|
4295
4231
|
c && r("iframe-ready", c);
|
|
@@ -4299,32 +4235,32 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4299
4235
|
const u = () => {
|
|
4300
4236
|
o.value = !1, t.debug("Iframe loaded");
|
|
4301
4237
|
};
|
|
4302
|
-
return
|
|
4238
|
+
return Z(
|
|
4303
4239
|
() => n.url,
|
|
4304
4240
|
() => {
|
|
4305
4241
|
o.value = !0;
|
|
4306
4242
|
}
|
|
4307
|
-
), (c, m) => (w(),
|
|
4308
|
-
|
|
4309
|
-
default:
|
|
4310
|
-
o.value && s.url ? (w(),
|
|
4243
|
+
), (c, m) => (w(), N("div", ur, [
|
|
4244
|
+
W(Te, { name: "fade" }, {
|
|
4245
|
+
default: Pe(() => [
|
|
4246
|
+
o.value && s.url ? (w(), Q(lr, {
|
|
4311
4247
|
key: 0,
|
|
4312
4248
|
text: c.$t("AI_AGENT.LOADING")
|
|
4313
|
-
}, null, 8, ["text"])) :
|
|
4249
|
+
}, null, 8, ["text"])) : X("", !0)
|
|
4314
4250
|
]),
|
|
4315
4251
|
_: 1
|
|
4316
4252
|
}),
|
|
4317
|
-
s.url ? (w(),
|
|
4253
|
+
s.url ? (w(), N("iframe", {
|
|
4318
4254
|
key: 0,
|
|
4319
4255
|
ref_key: "iframeRef",
|
|
4320
4256
|
ref: a,
|
|
4321
4257
|
src: s.url,
|
|
4322
|
-
class:
|
|
4258
|
+
class: H(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
|
|
4323
4259
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
4324
4260
|
allow: "clipboard-read; clipboard-write",
|
|
4325
4261
|
onLoad: u
|
|
4326
|
-
}, null, 42,
|
|
4327
|
-
|
|
4262
|
+
}, null, 42, cr)) : (w(), N("div", hr, [
|
|
4263
|
+
W(ie(oe), {
|
|
4328
4264
|
icon: "lucide-sparkles",
|
|
4329
4265
|
size: "xl",
|
|
4330
4266
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
@@ -4333,10 +4269,10 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4333
4269
|
]))
|
|
4334
4270
|
]));
|
|
4335
4271
|
}
|
|
4336
|
-
}),
|
|
4272
|
+
}), fr = { class: "vc-ai-agent-panel__content" }, xn = /* @__PURE__ */ M({
|
|
4337
4273
|
__name: "VcAiAgentPanel",
|
|
4338
4274
|
setup(s) {
|
|
4339
|
-
const e =
|
|
4275
|
+
const e = J(ve), t = J(St, !1);
|
|
4340
4276
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
4341
4277
|
const n = h(
|
|
4342
4278
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
@@ -4345,18 +4281,18 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4345
4281
|
})), c = () => e?.closePanel(), m = () => e?.expandPanel(), S = () => e?.collapsePanel(), p = (d) => {
|
|
4346
4282
|
e?._setIframeRef(d);
|
|
4347
4283
|
};
|
|
4348
|
-
return
|
|
4284
|
+
return Ge(() => {
|
|
4349
4285
|
e?._setIframeRef(null);
|
|
4350
|
-
}), (d, v) => (w(),
|
|
4351
|
-
default:
|
|
4352
|
-
r.value ? (w(),
|
|
4286
|
+
}), (d, v) => (w(), Q(Te, { name: "ai-panel-slide" }, {
|
|
4287
|
+
default: Pe(() => [
|
|
4288
|
+
r.value ? (w(), N("div", {
|
|
4353
4289
|
key: 0,
|
|
4354
|
-
class:
|
|
4290
|
+
class: H(["vc-ai-agent-panel", {
|
|
4355
4291
|
"vc-ai-agent-panel--expanded": a.value
|
|
4356
4292
|
}]),
|
|
4357
|
-
style:
|
|
4293
|
+
style: V(u.value)
|
|
4358
4294
|
}, [
|
|
4359
|
-
|
|
4295
|
+
W(nr, {
|
|
4360
4296
|
title: n.value.title,
|
|
4361
4297
|
"is-expanded": a.value,
|
|
4362
4298
|
"items-count": o.value,
|
|
@@ -4364,122 +4300,113 @@ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
|
|
|
4364
4300
|
onExpand: m,
|
|
4365
4301
|
onCollapse: S
|
|
4366
4302
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
4367
|
-
$("div",
|
|
4368
|
-
|
|
4303
|
+
$("div", fr, [
|
|
4304
|
+
W(dr, {
|
|
4369
4305
|
url: n.value.url,
|
|
4370
4306
|
onIframeReady: p
|
|
4371
4307
|
}, null, 8, ["url"])
|
|
4372
4308
|
])
|
|
4373
|
-
], 6)) :
|
|
4309
|
+
], 6)) : X("", !0)
|
|
4374
4310
|
]),
|
|
4375
4311
|
_: 1
|
|
4376
4312
|
}));
|
|
4377
4313
|
}
|
|
4378
4314
|
});
|
|
4379
4315
|
export {
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
at as am,
|
|
4447
|
-
Ye as an,
|
|
4448
|
-
Or as ao,
|
|
4449
|
-
Dr as ap,
|
|
4450
|
-
Ir as aq,
|
|
4451
|
-
en as ar,
|
|
4452
|
-
Rr as as,
|
|
4453
|
-
st as at,
|
|
4454
|
-
it as au,
|
|
4316
|
+
Et as $,
|
|
4317
|
+
on as A,
|
|
4318
|
+
bt as B,
|
|
4319
|
+
Hr as C,
|
|
4320
|
+
yt as D,
|
|
4321
|
+
ln as E,
|
|
4322
|
+
Zr as F,
|
|
4323
|
+
Qr as G,
|
|
4324
|
+
un as H,
|
|
4325
|
+
Xr as I,
|
|
4326
|
+
Vr as J,
|
|
4327
|
+
Dr as K,
|
|
4328
|
+
_t as L,
|
|
4329
|
+
Jr as M,
|
|
4330
|
+
Fr as N,
|
|
4331
|
+
Gr as O,
|
|
4332
|
+
jr as P,
|
|
4333
|
+
lt as Q,
|
|
4334
|
+
Lr as R,
|
|
4335
|
+
Ir as S,
|
|
4336
|
+
Ct as T,
|
|
4337
|
+
Kr as U,
|
|
4338
|
+
Er as V,
|
|
4339
|
+
kr as W,
|
|
4340
|
+
G as X,
|
|
4341
|
+
_r as Y,
|
|
4342
|
+
Nr as Z,
|
|
4343
|
+
oe as _,
|
|
4344
|
+
xn as a,
|
|
4345
|
+
xt as a0,
|
|
4346
|
+
sn as a1,
|
|
4347
|
+
$r as a2,
|
|
4348
|
+
Cr as a3,
|
|
4349
|
+
tn as a4,
|
|
4350
|
+
zr as a5,
|
|
4351
|
+
Sr as a6,
|
|
4352
|
+
yr as a7,
|
|
4353
|
+
Mr as a8,
|
|
4354
|
+
et as a9,
|
|
4355
|
+
mt as aA,
|
|
4356
|
+
Rr as aB,
|
|
4357
|
+
Br as aC,
|
|
4358
|
+
zt as aD,
|
|
4359
|
+
vt as aE,
|
|
4360
|
+
vn as aF,
|
|
4361
|
+
Ur as aa,
|
|
4362
|
+
rt as ab,
|
|
4363
|
+
He as ac,
|
|
4364
|
+
tt as ad,
|
|
4365
|
+
St as ae,
|
|
4366
|
+
Ze as af,
|
|
4367
|
+
Ke as ag,
|
|
4368
|
+
en as ah,
|
|
4369
|
+
Ar as ai,
|
|
4370
|
+
nt as aj,
|
|
4371
|
+
Xe as ak,
|
|
4372
|
+
wr as al,
|
|
4373
|
+
Tr as am,
|
|
4374
|
+
Wr as an,
|
|
4375
|
+
Pr as ao,
|
|
4376
|
+
at as ap,
|
|
4377
|
+
st as aq,
|
|
4378
|
+
Ye as ar,
|
|
4379
|
+
it as as,
|
|
4380
|
+
Or as at,
|
|
4381
|
+
qe as au,
|
|
4455
4382
|
Qe as av,
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4383
|
+
qr as aw,
|
|
4384
|
+
Ve as ax,
|
|
4385
|
+
ot as ay,
|
|
4386
|
+
pt as az,
|
|
4387
|
+
ve as b,
|
|
4388
|
+
bn as c,
|
|
4389
|
+
j as d,
|
|
4390
|
+
Se as e,
|
|
4391
|
+
mn as f,
|
|
4392
|
+
Oe as g,
|
|
4393
|
+
gt as h,
|
|
4394
|
+
dn as i,
|
|
4395
|
+
cn as j,
|
|
4396
|
+
fn as k,
|
|
4397
|
+
nn as l,
|
|
4398
|
+
rn as m,
|
|
4399
|
+
jt as n,
|
|
4400
|
+
ht as o,
|
|
4401
|
+
pn as p,
|
|
4402
|
+
Ie as q,
|
|
4403
|
+
Re as r,
|
|
4404
|
+
hn as s,
|
|
4405
|
+
Bt as t,
|
|
4406
|
+
gn as u,
|
|
4407
|
+
Be as v,
|
|
4408
|
+
Ue as w,
|
|
4409
|
+
$t as x,
|
|
4410
|
+
an as y,
|
|
4411
|
+
Yr as z
|
|
4485
4412
|
};
|