@vc-shell/framework 2.6.0-pr373.ab1391d → 2.6.0-pr373.c782854
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_script_setup_true_lang-zKSC86F5.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CmsM1ooA.js} +91 -91
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CmsM1ooA.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-DZT181IY.js → VcScheduler.vue_vue_type_script_setup_true_lang-CmKZGfx9.js} +244 -244
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-CmKZGfx9.js.map +1 -0
- package/dist/chunks/{index-FAIrB1ID.js → index-_JlFbcuN.js} +1 -1
- package/dist/chunks/{index-FAIrB1ID.js.map → index-_JlFbcuN.js.map} +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/framework.js +9 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/components/shared/{HeaderControls.vue.d.ts → header-controls/header-controls.vue.d.ts} +1 -1
- package/dist/ui/components/shared/header-controls/header-controls.vue.d.ts.map +1 -0
- package/dist/ui/components/shared/header-controls/index.d.ts +2 -0
- package/dist/ui/components/shared/header-controls/index.d.ts.map +1 -0
- package/dist/ui/components/shared/shortcut-kbd/index.d.ts +2 -0
- package/dist/ui/components/shared/shortcut-kbd/index.d.ts.map +1 -0
- package/dist/ui/components/shared/{ShortcutKbd.vue.d.ts → shortcut-kbd/shortcut-kbd.vue.d.ts} +1 -1
- package/dist/ui/components/shared/shortcut-kbd/shortcut-kbd.vue.d.ts.map +1 -0
- package/dist/ui/components/shared/shortcut-tooltip/index.d.ts +2 -0
- package/dist/ui/components/shared/shortcut-tooltip/index.d.ts.map +1 -0
- package/dist/ui/components/shared/{ShortcutTooltip.vue.d.ts → shortcut-tooltip/shortcut-tooltip.vue.d.ts} +2 -2
- package/dist/ui/components/shared/shortcut-tooltip/shortcut-tooltip.vue.d.ts.map +1 -0
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-zKSC86F5.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-DZT181IY.js.map +0 -1
- package/dist/ui/components/shared/HeaderControls.vue.d.ts.map +0 -1
- package/dist/ui/components/shared/ShortcutKbd.vue.d.ts.map +0 -1
- package/dist/ui/components/shared/ShortcutTooltip.vue.d.ts.map +0 -1
package/dist/ai-agent/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, u as e } from "../chunks/index-
|
|
2
|
-
import { A as s, D as T, E as n, H as o, _ as D, c as S, u as i } from "../chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { a, u as e } from "../chunks/index-_JlFbcuN.js";
|
|
2
|
+
import { A as s, D as T, E as n, H as o, _ as D, c as S, u as i } from "../chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CmsM1ooA.js";
|
|
3
3
|
import "../chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
4
4
|
export {
|
|
5
5
|
s as AI_AGENT_URL_ENV_KEY,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as D, computed as b, shallowRef as ze, watch as
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
1
|
+
import { ref as D, computed as b, shallowRef as ze, watch as z, getCurrentInstance as ne, inject as M, isRef as We, provide as ke, defineComponent as R, openBlock as A, createElementBlock as k, createElementVNode as x, createCommentVNode as H, createStaticVNode as qe, Fragment as Ee, renderList as Se, toDisplayString as le, createBlock as ce, unref as V, withCtx as j, renderSlot as He, createTextVNode as Ze, createVNode as F, withKeys as we, withModifiers as Ae, Transition as Oe, normalizeClass as Pe, onUnmounted as Xe, normalizeStyle as Ye } from "vue";
|
|
2
|
+
import { c as Z, b as Le, d as je, B as Qe, e as Je, f as et, N as tt, A as be, L as nt, g as at, T as ot, a as rt, _ as De, E as it } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
3
|
+
import { c as ae } from "./vendor-lodash-es-D2n90GJy.js";
|
|
4
4
|
import { u as st } from "./vendor-vueuse-core-_wFDcFkI.js";
|
|
5
5
|
import { u as lt } from "./vendor-vue-i18n-LO-EJStU.js";
|
|
6
6
|
const ct = {
|
|
@@ -18,12 +18,12 @@ const ct = {
|
|
|
18
18
|
}, xn = {
|
|
19
19
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
20
20
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
21
|
-
}, dt = "ai-agent-toggle", ut = "lucide-sparkles", ft = "AI Assistant",
|
|
21
|
+
}, dt = "ai-agent-toggle", ut = "lucide-sparkles", ft = "AI Assistant", oe = Z("ai-agent-panel");
|
|
22
22
|
function pt() {
|
|
23
23
|
const e = D("closed"), i = D(!1), a = b(() => e.value !== "closed"), t = b(() => e.value === "expanded"), o = () => {
|
|
24
|
-
e.value === "closed" && (e.value = "open",
|
|
24
|
+
e.value === "closed" && (e.value = "open", oe.debug("Panel opened"));
|
|
25
25
|
}, l = () => {
|
|
26
|
-
e.value = "closed", i.value = !1,
|
|
26
|
+
e.value = "closed", i.value = !1, oe.debug("Panel closed, reset initialized state");
|
|
27
27
|
};
|
|
28
28
|
return {
|
|
29
29
|
panelState: e,
|
|
@@ -36,17 +36,17 @@ function pt() {
|
|
|
36
36
|
e.value === "closed" ? o() : l();
|
|
37
37
|
},
|
|
38
38
|
expand: () => {
|
|
39
|
-
e.value === "open" && (e.value = "expanded",
|
|
39
|
+
e.value === "open" && (e.value = "expanded", oe.debug("Panel expanded"));
|
|
40
40
|
},
|
|
41
41
|
collapse: () => {
|
|
42
|
-
e.value === "expanded" && (e.value = "open",
|
|
42
|
+
e.value === "expanded" && (e.value = "open", oe.debug("Panel collapsed"));
|
|
43
43
|
},
|
|
44
44
|
resetInitialized: () => {
|
|
45
45
|
i.value = !1;
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
const _e =
|
|
49
|
+
const _e = Z("ai-agent-context");
|
|
50
50
|
function ye(e) {
|
|
51
51
|
return e ? {
|
|
52
52
|
id: e.id,
|
|
@@ -84,8 +84,8 @@ function gt(e) {
|
|
|
84
84
|
locale: t(),
|
|
85
85
|
blade: ye(a()),
|
|
86
86
|
contextType: h.value,
|
|
87
|
-
items:
|
|
88
|
-
suggestions: v.value ?
|
|
87
|
+
items: ae(g.value),
|
|
88
|
+
suggestions: v.value ? ae(v.value) : void 0,
|
|
89
89
|
accessToken: p
|
|
90
90
|
};
|
|
91
91
|
},
|
|
@@ -94,15 +94,15 @@ function gt(e) {
|
|
|
94
94
|
return {
|
|
95
95
|
blade: ye(a()),
|
|
96
96
|
contextType: h.value,
|
|
97
|
-
items:
|
|
98
|
-
suggestions: v.value ?
|
|
97
|
+
items: ae(g.value),
|
|
98
|
+
suggestions: v.value ? ae(v.value) : void 0,
|
|
99
99
|
locale: t(),
|
|
100
100
|
accessToken: p
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
const O =
|
|
105
|
+
const O = Z("ai-agent-transport");
|
|
106
106
|
function vt(e) {
|
|
107
107
|
const { getConfig: i, isEmbedded: a, navigateToBlade: t, closePanel: o } = e, l = ze(null), f = D(!1), g = D(!1), h = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
|
|
108
108
|
function c(u, w) {
|
|
@@ -236,7 +236,7 @@ function vt(e) {
|
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
const
|
|
239
|
+
const re = Z("ai-agent-service");
|
|
240
240
|
function Ct(e) {
|
|
241
241
|
const {
|
|
242
242
|
userGetter: i,
|
|
@@ -264,14 +264,14 @@ function Ct(e) {
|
|
|
264
264
|
if (d.pendingInitContext.value && d.iframeRef.value?.contentWindow) {
|
|
265
265
|
d.pendingInitContext.value = !1, v.isInitialized.value = !0;
|
|
266
266
|
const B = await c.buildInitPayload();
|
|
267
|
-
d.sendToIframe({ type: "INIT_CONTEXT", payload: B }),
|
|
267
|
+
d.sendToIframe({ type: "INIT_CONTEXT", payload: B }), re.debug("Flushed pending INIT_CONTEXT");
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
d.onChatReady(() => {
|
|
271
271
|
d.iframeRef.value?.contentWindow ? (v.isInitialized.value = !0, c.buildInitPayload().then((B) => {
|
|
272
|
-
d.sendToIframe({ type: "INIT_CONTEXT", payload: B }),
|
|
273
|
-
})) : (d.pendingInitContext.value = !0,
|
|
274
|
-
}),
|
|
272
|
+
d.sendToIframe({ type: "INIT_CONTEXT", payload: B }), re.info("Chatbot ready, sent INIT_CONTEXT");
|
|
273
|
+
})) : (d.pendingInitContext.value = !0, re.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
274
|
+
}), z(d.iframeRef, () => w()), z(
|
|
275
275
|
() => ({ currentBlade: u.value.currentBlade, items: u.value.items }),
|
|
276
276
|
async () => {
|
|
277
277
|
if (g) {
|
|
@@ -288,14 +288,14 @@ function Ct(e) {
|
|
|
288
288
|
);
|
|
289
289
|
const p = () => g ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : v.open(), _ = () => g ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : v.close(), I = () => g ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : v.toggle(), P = (B) => {
|
|
290
290
|
d.setIframeRef(B), w();
|
|
291
|
-
}, L = (B, G,
|
|
292
|
-
const { cleared:
|
|
293
|
-
g &&
|
|
291
|
+
}, L = (B, G, X, N) => {
|
|
292
|
+
const { cleared: Y } = c.setContextData(B, G, X, N);
|
|
293
|
+
g && Y && d.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
294
294
|
};
|
|
295
295
|
return d.startListening(), g && (d.sendToParent({
|
|
296
296
|
type: "EMBEDDED_APP_READY",
|
|
297
297
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
298
|
-
}),
|
|
298
|
+
}), re.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
299
299
|
// State
|
|
300
300
|
panelState: v.panelState,
|
|
301
301
|
config: h,
|
|
@@ -338,7 +338,7 @@ function Me(e) {
|
|
|
338
338
|
}
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const q = Me({}), ie = { ctrl: "⌃", alt: "⌥", shift: "⇧", meta: "⌘" }, se = { ctrl: "Ctrl", alt: "Alt", shift: "Shift", meta: "Meta" }, xe = {
|
|
342
342
|
escape: "Esc",
|
|
343
343
|
enter: "Enter",
|
|
344
344
|
tab: "Tab",
|
|
@@ -377,7 +377,7 @@ function _t(e) {
|
|
|
377
377
|
}
|
|
378
378
|
function Fe(e, i) {
|
|
379
379
|
const a = !!e.ctrl || !!e.mod && !i, t = !!e.meta || !!e.mod && i, o = [], l = [];
|
|
380
|
-
i ? (a && o.push(
|
|
380
|
+
i ? (a && o.push(ie.ctrl), e.alt && o.push(ie.alt), e.shift && o.push(ie.shift), t && o.push(ie.meta)) : (a && o.push(se.ctrl), t && o.push(se.meta), e.alt && o.push(se.alt), e.shift && o.push(se.shift)), a && l.push("Control"), t && l.push("Meta"), e.alt && l.push("Alt"), e.shift && l.push("Shift"), o.push(ht(e.key));
|
|
381
381
|
const f = [...l, _t(e.key)].join("+");
|
|
382
382
|
return { parts: o, aria: f };
|
|
383
383
|
}
|
|
@@ -452,7 +452,7 @@ function Tt() {
|
|
|
452
452
|
function Ne() {
|
|
453
453
|
const e = Tt();
|
|
454
454
|
return {
|
|
455
|
-
hotkey:
|
|
455
|
+
hotkey: q,
|
|
456
456
|
isMac: e,
|
|
457
457
|
formatShortcut: (i) => Fe(i, e)
|
|
458
458
|
};
|
|
@@ -476,12 +476,12 @@ function y(e) {
|
|
|
476
476
|
${Ot}`);
|
|
477
477
|
}
|
|
478
478
|
function Pt() {
|
|
479
|
-
const e = (
|
|
479
|
+
const e = (ne() ? M(Le, void 0) : void 0) ?? $e, i = (ne() ? M(je, void 0) : void 0) ?? Re;
|
|
480
480
|
if (!e || !i)
|
|
481
481
|
throw new Error(
|
|
482
482
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
483
483
|
);
|
|
484
|
-
const a = e, t = i, o =
|
|
484
|
+
const a = e, t = i, o = ne() ? M(Qe, void 0) : void 0, l = ne() ? M(Je, void 0) : void 0, f = b(() => (o || y("id"), o.value.id)), g = b(() => (o || y("param"), o.value.param)), h = b(() => (o || y("options"), o.value.options)), v = b(() => (o || y("query"), o.value.query)), c = b(() => (o || y("closable"), o.value.parentId !== void 0)), d = b(() => (o || y("expanded"), a.activeBlade.value?.id === o.value.id)), u = b(() => (o || y("name"), o.value.name)), w = b(() => {
|
|
485
485
|
if (!o) return;
|
|
486
486
|
const m = o.value.id;
|
|
487
487
|
return a.blades.value.find((T) => T.parentId === m)?.param;
|
|
@@ -503,8 +503,8 @@ function Pt() {
|
|
|
503
503
|
if (T)
|
|
504
504
|
await a.openWorkspace(U);
|
|
505
505
|
else {
|
|
506
|
-
const
|
|
507
|
-
|
|
506
|
+
const te = o?.value.id;
|
|
507
|
+
te ? await a.openBlade({ ...U, parentId: te }) : await a.openBlade(U);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
async function P() {
|
|
@@ -525,13 +525,13 @@ function Pt() {
|
|
|
525
525
|
parentId: o.value.parentId
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
|
-
async function
|
|
528
|
+
async function X(m, T) {
|
|
529
529
|
return o || y("callParent()"), t.callParent(o.value.id, m, T);
|
|
530
530
|
}
|
|
531
531
|
function N(m) {
|
|
532
532
|
o || y("exposeToChildren()"), t.exposeToChildren(o.value.id, m);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Y(m) {
|
|
535
535
|
o || y("onBeforeClose()"), a.registerBeforeClose(o.value.id, m);
|
|
536
536
|
}
|
|
537
537
|
function de(m) {
|
|
@@ -550,28 +550,28 @@ function Pt() {
|
|
|
550
550
|
dismissible: m.dismissible ?? !1
|
|
551
551
|
}), T;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Q(m) {
|
|
554
554
|
l || y("removeBanner()"), l.value = l.value.filter((T) => T.id !== m);
|
|
555
555
|
}
|
|
556
556
|
function ge() {
|
|
557
557
|
l || y("clearBanners()"), l.value = l.value.filter((m) => m._system);
|
|
558
558
|
}
|
|
559
|
-
let
|
|
559
|
+
let J = !1, ee = !1;
|
|
560
560
|
function ve(m) {
|
|
561
|
-
if (o || y("onActivated()"),
|
|
561
|
+
if (o || y("onActivated()"), J) {
|
|
562
562
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
563
563
|
return;
|
|
564
564
|
}
|
|
565
|
-
|
|
565
|
+
J = !0, z(d, (T) => {
|
|
566
566
|
T && m();
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
function Ce(m) {
|
|
570
|
-
if (o || y("onDeactivated()"),
|
|
570
|
+
if (o || y("onDeactivated()"), ee) {
|
|
571
571
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
|
|
574
|
+
ee = !0, z(d, (T) => {
|
|
575
575
|
T || m();
|
|
576
576
|
});
|
|
577
577
|
}
|
|
@@ -590,15 +590,15 @@ function Pt() {
|
|
|
590
590
|
closeChildren: L,
|
|
591
591
|
replaceWith: B,
|
|
592
592
|
coverWith: G,
|
|
593
|
-
callParent:
|
|
593
|
+
callParent: X,
|
|
594
594
|
exposeToChildren: N,
|
|
595
|
-
onBeforeClose:
|
|
595
|
+
onBeforeClose: Y,
|
|
596
596
|
onActivated: ve,
|
|
597
597
|
onDeactivated: Ce,
|
|
598
598
|
setError: de,
|
|
599
599
|
clearError: ue,
|
|
600
600
|
addBanner: pe,
|
|
601
|
-
removeBanner:
|
|
601
|
+
removeBanner: Q,
|
|
602
602
|
clearBanners: ge
|
|
603
603
|
};
|
|
604
604
|
}
|
|
@@ -758,7 +758,7 @@ function On(e, i, a = tt) {
|
|
|
758
758
|
const E = Ft(n, r.id, w), S = t.value.slice(0, s);
|
|
759
759
|
return S.push({ ...r, visible: !1 }), S.push(E), t.value = S, n.onOpen && l.set(E.id, n.onOpen), n.onClose && f.set(E.id, n.onClose), n.onOpen?.(), !0;
|
|
760
760
|
}
|
|
761
|
-
async function
|
|
761
|
+
async function X(n) {
|
|
762
762
|
const r = t.value.findIndex((E) => E.id === n);
|
|
763
763
|
if (r === -1) return !1;
|
|
764
764
|
const s = t.value.slice(r + 1);
|
|
@@ -767,7 +767,7 @@ function On(e, i, a = tt) {
|
|
|
767
767
|
function N(n) {
|
|
768
768
|
c.value?.url && a[n]();
|
|
769
769
|
}
|
|
770
|
-
async function
|
|
770
|
+
async function Y(n) {
|
|
771
771
|
await I(n) && N("push");
|
|
772
772
|
}
|
|
773
773
|
async function de(n) {
|
|
@@ -783,16 +783,16 @@ function On(e, i, a = tt) {
|
|
|
783
783
|
const r = await L(n);
|
|
784
784
|
return r === "closed" && a.replace(), r === "prevented";
|
|
785
785
|
}
|
|
786
|
-
async function
|
|
787
|
-
await
|
|
786
|
+
async function Q(n) {
|
|
787
|
+
await X(n) && a.replace();
|
|
788
788
|
}
|
|
789
789
|
function ge(n, r) {
|
|
790
790
|
o.set(n, r);
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function J(n) {
|
|
793
793
|
o.delete(n);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function ee(n, r) {
|
|
796
796
|
const s = t.value.findIndex((E) => E.id === n);
|
|
797
797
|
if (s === -1) return;
|
|
798
798
|
const C = [...t.value];
|
|
@@ -816,7 +816,7 @@ function On(e, i, a = tt) {
|
|
|
816
816
|
id: s.id,
|
|
817
817
|
title: s.title ?? s.name,
|
|
818
818
|
clickHandler: async (C) => {
|
|
819
|
-
await
|
|
819
|
+
await Q(C);
|
|
820
820
|
}
|
|
821
821
|
}));
|
|
822
822
|
}
|
|
@@ -836,7 +836,7 @@ function On(e, i, a = tt) {
|
|
|
836
836
|
let r = g.get(n);
|
|
837
837
|
return r || (r = D(!1), g.set(n, r)), r;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function te(n) {
|
|
840
840
|
return g.get(n)?.value ?? !1;
|
|
841
841
|
}
|
|
842
842
|
function Ue(n, r) {
|
|
@@ -855,21 +855,21 @@ function On(e, i, a = tt) {
|
|
|
855
855
|
workspace: h,
|
|
856
856
|
blades: v,
|
|
857
857
|
activeBlade: c,
|
|
858
|
-
openWorkspace:
|
|
858
|
+
openWorkspace: Y,
|
|
859
859
|
openBlade: de,
|
|
860
860
|
closeBlade: pe,
|
|
861
|
-
closeChildren:
|
|
861
|
+
closeChildren: Q,
|
|
862
862
|
replaceCurrentBlade: ue,
|
|
863
863
|
coverCurrentBlade: fe,
|
|
864
864
|
registerBeforeClose: ge,
|
|
865
|
-
unregisterBeforeClose:
|
|
866
|
-
setBladeError:
|
|
865
|
+
unregisterBeforeClose: J,
|
|
866
|
+
setBladeError: ee,
|
|
867
867
|
clearBladeError: ve,
|
|
868
868
|
setBladeTitle: Ce,
|
|
869
869
|
trailFor: m,
|
|
870
870
|
updateBladeQuery: T,
|
|
871
871
|
getMaximizedRef: U,
|
|
872
|
-
isMaximized:
|
|
872
|
+
isMaximized: te,
|
|
873
873
|
setMaximized: Ue,
|
|
874
874
|
toggleMaximized: Ke,
|
|
875
875
|
_restoreStack: Ve
|
|
@@ -881,7 +881,7 @@ function Rt() {
|
|
|
881
881
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
882
882
|
return e;
|
|
883
883
|
}
|
|
884
|
-
const
|
|
884
|
+
const W = Z("use-ai-agent");
|
|
885
885
|
function Pn(e) {
|
|
886
886
|
const i = M(nt), { user: a, getAccessToken: t } = at(), { openBlade: o } = Pt(), { blades: l, activeBlade: f } = Rt(), g = e?.isEmbedded, h = Ct({
|
|
887
887
|
userGetter: () => {
|
|
@@ -907,36 +907,36 @@ function Pn(e) {
|
|
|
907
907
|
tokenGetter: t,
|
|
908
908
|
navigateToBlade: (c, d, u) => {
|
|
909
909
|
o({ name: c, param: d, options: u }).then(() => {
|
|
910
|
-
|
|
910
|
+
W.debug(`Navigated to blade: ${c}`);
|
|
911
911
|
}).catch((w) => {
|
|
912
|
-
|
|
912
|
+
W.warn(`Blade not found or cannot be opened: ${c}`, w);
|
|
913
913
|
});
|
|
914
914
|
},
|
|
915
915
|
initialConfig: e?.config,
|
|
916
916
|
isEmbedded: g
|
|
917
917
|
});
|
|
918
|
-
if (ke(be, h),
|
|
918
|
+
if (ke(be, h), W.debug("AiAgentService provided"), e?.addGlobalToolbarButton ?? !0) {
|
|
919
919
|
const c = M(ot, null);
|
|
920
920
|
c ? (c.registerToolbarItem(
|
|
921
921
|
{
|
|
922
922
|
id: dt,
|
|
923
923
|
icon: ut,
|
|
924
924
|
title: ft,
|
|
925
|
-
shortcut:
|
|
925
|
+
shortcut: q.mod.i,
|
|
926
926
|
clickHandler: () => {
|
|
927
927
|
h.togglePanel();
|
|
928
928
|
}
|
|
929
929
|
},
|
|
930
930
|
"*"
|
|
931
931
|
// Wildcard for all blades
|
|
932
|
-
),
|
|
932
|
+
), W.debug("Global AI toolbar button registered with wildcard '*'")) : W.warn("Toolbar service not available, AI button not registered");
|
|
933
933
|
}
|
|
934
934
|
return h;
|
|
935
935
|
}
|
|
936
936
|
function Ln() {
|
|
937
937
|
const e = M(be);
|
|
938
938
|
if (!e) {
|
|
939
|
-
|
|
939
|
+
W.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
|
|
940
940
|
return;
|
|
941
941
|
}
|
|
942
942
|
return {
|
|
@@ -1062,16 +1062,16 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1062
1062
|
x("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)
|
|
1063
1063
|
])], 8, Vt)),
|
|
1064
1064
|
e.animated ? (A(), k("linearGradient", zt, [...t[2] || (t[2] = [
|
|
1065
|
-
|
|
1065
|
+
qe('<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)
|
|
1066
1066
|
])])) : H("", !0)
|
|
1067
1067
|
])
|
|
1068
1068
|
], 8, Gt));
|
|
1069
1069
|
}
|
|
1070
|
-
}), Wt = { class: "vc-shortcut-kbd" },
|
|
1070
|
+
}), Wt = { class: "vc-shortcut-kbd" }, qt = {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "vc-shortcut-kbd__plus"
|
|
1073
|
-
},
|
|
1074
|
-
__name: "
|
|
1073
|
+
}, Ht = { class: "vc-shortcut-kbd__key" }, Zt = /* @__PURE__ */ R({
|
|
1074
|
+
__name: "shortcut-kbd",
|
|
1075
1075
|
props: {
|
|
1076
1076
|
parts: {},
|
|
1077
1077
|
separated: { type: Boolean, default: !1 }
|
|
@@ -1079,34 +1079,34 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1079
1079
|
setup(e) {
|
|
1080
1080
|
return (i, a) => (A(), k("span", Wt, [
|
|
1081
1081
|
(A(!0), k(Ee, null, Se(e.parts, (t, o) => (A(), k(Ee, { key: o }, [
|
|
1082
|
-
e.separated && o > 0 ? (A(), k("span",
|
|
1083
|
-
x("kbd",
|
|
1082
|
+
e.separated && o > 0 ? (A(), k("span", qt, "+")) : H("", !0),
|
|
1083
|
+
x("kbd", Ht, le(t), 1)
|
|
1084
1084
|
], 64))), 128))
|
|
1085
1085
|
]));
|
|
1086
1086
|
}
|
|
1087
1087
|
}), Xt = { class: "tw-inline-flex tw-items-center tw-gap-2" }, Yt = 500, jt = /* @__PURE__ */ R({
|
|
1088
|
-
__name: "
|
|
1088
|
+
__name: "shortcut-tooltip",
|
|
1089
1089
|
props: {
|
|
1090
1090
|
shortcut: {},
|
|
1091
1091
|
label: {}
|
|
1092
1092
|
},
|
|
1093
1093
|
setup(e) {
|
|
1094
1094
|
const i = e, { isMac: a } = Ne(), t = b(() => Fe(i.shortcut, a));
|
|
1095
|
-
return (o, l) => (A(), ce(
|
|
1095
|
+
return (o, l) => (A(), ce(V(rt), {
|
|
1096
1096
|
placement: "bottom",
|
|
1097
1097
|
delay: Yt
|
|
1098
1098
|
}, {
|
|
1099
|
-
tooltip:
|
|
1099
|
+
tooltip: j(() => [
|
|
1100
1100
|
x("span", Xt, [
|
|
1101
1101
|
Ze(le(e.label) + " ", 1),
|
|
1102
|
-
F(Zt, {
|
|
1102
|
+
F(V(Zt), {
|
|
1103
1103
|
parts: t.value.parts,
|
|
1104
|
-
separated: !
|
|
1104
|
+
separated: !V(a)
|
|
1105
1105
|
}, null, 8, ["parts", "separated"])
|
|
1106
1106
|
])
|
|
1107
1107
|
]),
|
|
1108
|
-
default:
|
|
1109
|
-
|
|
1108
|
+
default: j(() => [
|
|
1109
|
+
He(o.$slots, "default", {
|
|
1110
1110
|
aria: t.value.aria
|
|
1111
1111
|
})
|
|
1112
1112
|
]),
|
|
@@ -1114,7 +1114,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1114
1114
|
}));
|
|
1115
1115
|
}
|
|
1116
1116
|
}), Qt = ["data-blade-expand-control", "aria-label", "aria-keyshortcuts", "onClick", "onKeydown"], Jt = /* @__PURE__ */ R({
|
|
1117
|
-
__name: "
|
|
1117
|
+
__name: "header-controls",
|
|
1118
1118
|
props: {
|
|
1119
1119
|
maximized: { type: Boolean }
|
|
1120
1120
|
},
|
|
@@ -1126,20 +1126,20 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1126
1126
|
activate: () => t("collapse"),
|
|
1127
1127
|
icon: "lucide-minus",
|
|
1128
1128
|
label: o("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.RESTORE"),
|
|
1129
|
-
shortcut:
|
|
1129
|
+
shortcut: q.mod.backslash
|
|
1130
1130
|
} : {
|
|
1131
1131
|
key: "expand",
|
|
1132
1132
|
activate: () => t("expand"),
|
|
1133
1133
|
icon: "lucide-panel-top",
|
|
1134
1134
|
label: o("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.MAXIMIZE"),
|
|
1135
|
-
shortcut:
|
|
1135
|
+
shortcut: q.mod.backslash
|
|
1136
1136
|
},
|
|
1137
1137
|
{
|
|
1138
1138
|
key: "close",
|
|
1139
1139
|
activate: () => t("close"),
|
|
1140
1140
|
icon: "lucide-x",
|
|
1141
1141
|
label: o("COMPONENTS.ORGANISMS.VC_BLADE_HEADER.CLOSE"),
|
|
1142
|
-
shortcut:
|
|
1142
|
+
shortcut: q.escape
|
|
1143
1143
|
}
|
|
1144
1144
|
]), f = D(null);
|
|
1145
1145
|
function g() {
|
|
@@ -1147,7 +1147,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1147
1147
|
f.value?.querySelector("[data-blade-expand-control]")?.focus();
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return z(
|
|
1151
1151
|
() => a.maximized,
|
|
1152
1152
|
() => g()
|
|
1153
1153
|
), (h, v) => (A(), k("div", {
|
|
@@ -1155,12 +1155,12 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1155
1155
|
ref: f,
|
|
1156
1156
|
class: "vc-blade-header__controls"
|
|
1157
1157
|
}, [
|
|
1158
|
-
(A(!0), k(Ee, null, Se(l.value, (c) => (A(), ce(jt, {
|
|
1158
|
+
(A(!0), k(Ee, null, Se(l.value, (c) => (A(), ce(V(jt), {
|
|
1159
1159
|
key: c.key,
|
|
1160
1160
|
shortcut: c.shortcut,
|
|
1161
1161
|
label: c.label
|
|
1162
1162
|
}, {
|
|
1163
|
-
default:
|
|
1163
|
+
default: j(({ aria: d }) => [
|
|
1164
1164
|
x("div", {
|
|
1165
1165
|
class: "vc-blade-header__button",
|
|
1166
1166
|
role: "button",
|
|
@@ -1174,7 +1174,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1174
1174
|
we(Ae(c.activate, ["prevent"]), ["space"])
|
|
1175
1175
|
]
|
|
1176
1176
|
}, [
|
|
1177
|
-
F(
|
|
1177
|
+
F(V(De), {
|
|
1178
1178
|
icon: c.icon
|
|
1179
1179
|
}, null, 8, ["icon"])
|
|
1180
1180
|
], 40, Qt)
|
|
@@ -1205,7 +1205,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1205
1205
|
x("div", on, le(e.title), 1)
|
|
1206
1206
|
])
|
|
1207
1207
|
]),
|
|
1208
|
-
F(Jt, {
|
|
1208
|
+
F(V(Jt), {
|
|
1209
1209
|
maximized: e.isExpanded,
|
|
1210
1210
|
onExpand: a[0] || (a[0] = (t) => i.$emit("expand")),
|
|
1211
1211
|
onCollapse: a[1] || (a[1] = (t) => i.$emit("collapse")),
|
|
@@ -1245,8 +1245,8 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["iframe-ready"],
|
|
1247
1247
|
setup(e, { emit: i }) {
|
|
1248
|
-
const a =
|
|
1249
|
-
|
|
1248
|
+
const a = Z("ai-agent-iframe"), t = e, o = i, l = D(null), f = D(!0);
|
|
1249
|
+
z(
|
|
1250
1250
|
l,
|
|
1251
1251
|
(h) => {
|
|
1252
1252
|
h && o("iframe-ready", h);
|
|
@@ -1256,14 +1256,14 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1256
1256
|
const g = () => {
|
|
1257
1257
|
f.value = !1, a.debug("Iframe loaded");
|
|
1258
1258
|
};
|
|
1259
|
-
return
|
|
1259
|
+
return z(
|
|
1260
1260
|
() => t.url,
|
|
1261
1261
|
() => {
|
|
1262
1262
|
f.value = !0;
|
|
1263
1263
|
}
|
|
1264
1264
|
), (h, v) => (A(), k("div", fn, [
|
|
1265
1265
|
F(Oe, { name: "fade" }, {
|
|
1266
|
-
default:
|
|
1266
|
+
default: j(() => [
|
|
1267
1267
|
f.value && e.url ? (A(), ce(un, {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
text: h.$t("AI_AGENT.LOADING")
|
|
@@ -1281,7 +1281,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1281
1281
|
allow: "clipboard-read; clipboard-write",
|
|
1282
1282
|
onLoad: g
|
|
1283
1283
|
}, null, 42, pn)) : (A(), k("div", gn, [
|
|
1284
|
-
F(
|
|
1284
|
+
F(V(De), {
|
|
1285
1285
|
icon: "lucide-sparkles",
|
|
1286
1286
|
size: "xl",
|
|
1287
1287
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
@@ -1309,7 +1309,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1309
1309
|
p.preventDefault(), v();
|
|
1310
1310
|
return;
|
|
1311
1311
|
}
|
|
1312
|
-
if (Bt(
|
|
1312
|
+
if (Bt(q.mod.backslash, p, i)) {
|
|
1313
1313
|
const _ = document.activeElement;
|
|
1314
1314
|
if (!_ || !u.value?.contains(_)) return;
|
|
1315
1315
|
p.preventDefault(), f.value ? d() : c();
|
|
@@ -1322,7 +1322,7 @@ const Gt = ["width", "height"], Ut = ["clip-path"], Kt = {
|
|
|
1322
1322
|
return Xe(() => {
|
|
1323
1323
|
a?._setIframeRef(null);
|
|
1324
1324
|
}), (p, _) => (A(), ce(Oe, { name: "ai-panel-slide" }, {
|
|
1325
|
-
default:
|
|
1325
|
+
default: j(() => [
|
|
1326
1326
|
l.value ? (A(), k("div", {
|
|
1327
1327
|
key: 0,
|
|
1328
1328
|
ref_key: "panelRef",
|
|
@@ -1372,7 +1372,7 @@ export {
|
|
|
1372
1372
|
At as k,
|
|
1373
1373
|
yt as l,
|
|
1374
1374
|
Fe as m,
|
|
1375
|
-
|
|
1375
|
+
q as n,
|
|
1376
1376
|
Bn as o,
|
|
1377
1377
|
Bt as p,
|
|
1378
1378
|
Rt as q,
|