@quidgest/chatbot 0.6.1 → 0.6.3

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as ut, computed as w, inject as dt, ref as q, provide as an, defineComponent as V, openBlock as h, createElementBlock as x, normalizeClass as X, normalizeStyle as Ee, unref as f, toRef as Le, withModifiers as Ue, createVNode as D, createCommentVNode as O, createElementVNode as T, renderSlot as F, createTextVNode as Qe, toDisplayString as re, createBlock as Z, resolveDynamicComponent as Bt, h as at, mergeProps as de, useTemplateRef as Lt, withCtx as R, normalizeProps as Re, guardReactiveProps as je, mergeModels as be, useModel as Me, watch as se, createSlots as Rt, withDirectives as Mt, vModelDynamic as ln, useId as rn, onMounted as Te, onUnmounted as Tt, readonly as sn, customRef as cn, getCurrentScope as un, onScopeDispose as qt, shallowRef as lt, nextTick as De, toValue as pt, reactive as ze, onBeforeUnmount as dn, Fragment as ve, Teleport as pn, Transition as bt, renderList as qe, toHandlers as fn, vModelText as vn, resolveComponent as gn, withKeys as mn, onBeforeMount as bn } from "vue";
1
+ import { getCurrentInstance as ut, computed as w, inject as dt, ref as q, provide as an, defineComponent as V, openBlock as y, createElementBlock as x, normalizeClass as X, normalizeStyle as Ee, unref as f, toRef as Le, withModifiers as Ue, createVNode as D, createCommentVNode as U, createElementVNode as M, renderSlot as F, createTextVNode as Qe, toDisplayString as re, createBlock as Z, resolveDynamicComponent as Bt, h as at, mergeProps as pe, useTemplateRef as Lt, withCtx as R, normalizeProps as Re, guardReactiveProps as je, mergeModels as be, useModel as Te, watch as se, createSlots as Rt, withDirectives as Tt, vModelDynamic as ln, useId as rn, onMounted as Me, onUnmounted as Mt, readonly as sn, customRef as cn, getCurrentScope as un, onScopeDispose as qt, shallowRef as lt, nextTick as De, toValue as pt, reactive as ze, onBeforeUnmount as dn, Fragment as ve, Teleport as pn, Transition as bt, renderList as qe, toHandlers as fn, vModelText as vn, resolveComponent as gn, withKeys as mn, onBeforeMount as bn } from "vue";
2
2
  import Nt from "axios";
3
3
  import hn from "markdown-it";
4
4
  function it(e) {
@@ -52,7 +52,7 @@ const _n = ["id"], xn = /* @__PURE__ */ V({
52
52
  const n = e, t = w(() => ({
53
53
  "font-size": n.size !== 48 ? `${n.size}px` : void 0
54
54
  }));
55
- return (o, l) => (h(), x("div", {
55
+ return (o, l) => (y(), x("div", {
56
56
  id: n.id,
57
57
  class: X(["q-spinner-loader", n.class]),
58
58
  style: Ee(t.value)
@@ -78,10 +78,10 @@ function K(e) {
78
78
  const i = ut();
79
79
  if (i === null) return t(o, l);
80
80
  const r = new Proxy(o, {
81
- get(c, d) {
82
- var u;
83
- const s = Reflect.get(c, d), v = (u = a.value) == null ? void 0 : u[d];
84
- return typeof d == "string" && !An(i.vnode, d) ? v ?? s : s;
81
+ get(c, u) {
82
+ var d;
83
+ const s = Reflect.get(c, u), v = (d = a.value) == null ? void 0 : d[u];
84
+ return typeof u == "string" && !An(i.vnode, u) ? v ?? s : s;
85
85
  }
86
86
  });
87
87
  return t(r, l);
@@ -127,16 +127,16 @@ function Ot(e) {
127
127
  if (l === a)
128
128
  i = r = 0;
129
129
  else {
130
- const d = l - a;
131
- switch (r = c > 0.5 ? d / (2 - l - a) : d / (l + a), l) {
130
+ const u = l - a;
131
+ switch (r = c > 0.5 ? u / (2 - l - a) : u / (l + a), l) {
132
132
  case n:
133
- i = (t - o) / d + (t < o ? 6 : 0);
133
+ i = (t - o) / u + (t < o ? 6 : 0);
134
134
  break;
135
135
  case t:
136
- i = (o - n) / d + 2;
136
+ i = (o - n) / u + 2;
137
137
  break;
138
138
  case o:
139
- i = (n - t) / d + 4;
139
+ i = (n - t) / u + 4;
140
140
  break;
141
141
  }
142
142
  i /= 6;
@@ -168,16 +168,16 @@ function Xe(e, n, t) {
168
168
  function Rn(e) {
169
169
  return e > 50 ? "#000" : "#fff";
170
170
  }
171
- const Mn = Symbol.for("q-theme");
171
+ const Tn = Symbol.for("q-theme");
172
172
  function Ut() {
173
- const e = dt(Mn);
173
+ const e = dt(Tn);
174
174
  if (!e)
175
175
  throw new Error("[Quidgest UI] Could not find theme instance");
176
176
  return e;
177
177
  }
178
178
  function Gt(e) {
179
179
  const n = w(() => f(e)), t = w(
180
- () => n.value ? !Tn(n.value) : !1
180
+ () => n.value ? !Mn(n.value) : !1
181
181
  ), o = w(() => {
182
182
  const l = n.value;
183
183
  if (!l) return;
@@ -194,19 +194,19 @@ function Gt(e) {
194
194
  console.error("Failed to parse color:", v);
195
195
  return;
196
196
  }
197
- const c = Ot(r), d = Rn(c.l), u = Dn(r, 25), s = Bn(u);
197
+ const c = Ot(r), u = Rn(c.l), d = Dn(r, 25), s = Bn(d);
198
198
  return {
199
199
  mainColor: a,
200
200
  mainColorRgb: yt(r),
201
- onMainColor: d,
201
+ onMainColor: u,
202
202
  hoverColor: s,
203
- hoverColorRgb: yt(u),
204
- onHoverColor: d
203
+ hoverColorRgb: yt(d),
204
+ onHoverColor: u
205
205
  };
206
206
  });
207
207
  return { isUtilityColor: t, style: o };
208
208
  }
209
- function Tn(e) {
209
+ function Mn(e) {
210
210
  return e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl");
211
211
  }
212
212
  const qn = ["id", "disabled"], Nn = {
@@ -232,15 +232,15 @@ const qn = ["id", "disabled"], Nn = {
232
232
  emits: ["click"],
233
233
  setup(e, { emit: n }) {
234
234
  const t = e, o = n, l = w(() => t.disabled || t.loading);
235
- function a(u) {
236
- l.value || o("click", u);
235
+ function a(d) {
236
+ l.value || o("click", d);
237
237
  }
238
238
  const { isUtilityColor: i, style: r } = Gt(Le(t, "color")), c = w(() => {
239
- const u = i.value ? `q-button--${t.color}` : void 0, s = t.size !== "regular" ? `q-button--${t.size}` : void 0, v = t.iconPos !== "start" ? `q-button--icon-${t.iconPos}` : void 0;
239
+ const d = i.value ? `q-button--${t.color}` : void 0, s = t.size !== "regular" ? `q-button--${t.size}` : void 0, v = t.iconPos !== "start" ? `q-button--icon-${t.iconPos}` : void 0;
240
240
  return [
241
241
  "q-button",
242
242
  `q-button--${t.variant}`,
243
- u,
243
+ d,
244
244
  s,
245
245
  v,
246
246
  {
@@ -252,31 +252,31 @@ const qn = ["id", "disabled"], Nn = {
252
252
  },
253
253
  t.class
254
254
  ];
255
- }), d = w(() => {
256
- var u, s, v, b, y, _;
255
+ }), u = w(() => {
256
+ var d, s, v, b, h, _;
257
257
  if (!i.value)
258
258
  return {
259
- "--q-button-main-color": (u = r.value) == null ? void 0 : u.mainColor,
259
+ "--q-button-main-color": (d = r.value) == null ? void 0 : d.mainColor,
260
260
  "--q-button-main-color-rgb": (s = r.value) == null ? void 0 : s.mainColorRgb,
261
261
  "--q-button-on-main-color": (v = r.value) == null ? void 0 : v.onMainColor,
262
262
  "--q-button-hover-color": (b = r.value) == null ? void 0 : b.hoverColor,
263
- "--q-button-hover-color-rgb": (y = r.value) == null ? void 0 : y.hoverColorRgb,
263
+ "--q-button-hover-color-rgb": (h = r.value) == null ? void 0 : h.hoverColorRgb,
264
264
  "--q-button-on-hover-color": (_ = r.value) == null ? void 0 : _.onHoverColor
265
265
  };
266
266
  });
267
- return (u, s) => (h(), x("button", {
267
+ return (d, s) => (y(), x("button", {
268
268
  id: t.id,
269
269
  type: "button",
270
270
  class: X(c.value),
271
271
  disabled: l.value,
272
- style: Ee(d.value),
272
+ style: Ee(u.value),
273
273
  onClick: Ue(a, ["stop", "prevent"])
274
274
  }, [
275
- t.loading ? (h(), x("div", Nn, [
275
+ t.loading ? (y(), x("div", Nn, [
276
276
  D(f(En))
277
- ])) : O("v-if", !0),
278
- T("span", Fn, [
279
- F(u.$slots, "default"),
277
+ ])) : U("v-if", !0),
278
+ M("span", Fn, [
279
+ F(d.$slots, "default"),
280
280
  Qe(
281
281
  " " + re(t.label),
282
282
  1
@@ -314,7 +314,7 @@ const qn = ["id", "disabled"], Nn = {
314
314
  color: n.color !== void 0 && n.color !== "primary" ? (a = o.value) == null ? void 0 : a.mainColor : void 0
315
315
  };
316
316
  });
317
- return (a, i) => (h(), Z(Bt(t.value), {
317
+ return (a, i) => (y(), Z(Bt(t.value), {
318
318
  id: n.id,
319
319
  class: X(n.class),
320
320
  icon: n.icon,
@@ -332,7 +332,7 @@ const qn = ["id", "disabled"], Nn = {
332
332
  },
333
333
  setup(e) {
334
334
  const n = e, t = w(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = w(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon);
335
- return (l, a) => (h(), x("i", {
335
+ return (l, a) => (y(), x("i", {
336
336
  id: n.id,
337
337
  class: X(["q-icon", "q-icon__font", t.value, o.value, n.class])
338
338
  }, null, 10, Un));
@@ -346,7 +346,7 @@ const qn = ["id", "disabled"], Nn = {
346
346
  },
347
347
  setup(e) {
348
348
  const n = e;
349
- return (t, o) => (h(), x("img", {
349
+ return (t, o) => (y(), x("img", {
350
350
  id: n.id,
351
351
  src: n.icon,
352
352
  class: X(["q-icon", "q-icon__img", n.class])
@@ -497,7 +497,7 @@ const Wn = /* @__PURE__ */ V({
497
497
  function a() {
498
498
  o("unloaded");
499
499
  }
500
- return (i, r) => (h(), Z(f(Vn), {
500
+ return (i, r) => (y(), Z(f(Vn), {
501
501
  id: t.id,
502
502
  class: X(["q-icon", "q-icon__svg", t.class]),
503
503
  src: t.bundle,
@@ -527,7 +527,7 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
527
527
  disabled: Le(n, "disabled"),
528
528
  borderless: Le(n, "borderless")
529
529
  }
530
- }), (t, o) => (h(), x("div", {
530
+ }), (t, o) => (y(), x("div", {
531
531
  id: n.id,
532
532
  class: X([
533
533
  "q-button-group",
@@ -559,12 +559,12 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
559
559
  },
560
560
  n.class
561
561
  ]);
562
- return (o, l) => (h(), x("div", {
562
+ return (o, l) => (y(), x("div", {
563
563
  id: n.id,
564
564
  class: X(t.value)
565
565
  }, [
566
566
  F(o.$slots, "prepend"),
567
- T("label", de({
567
+ M("label", pe({
568
568
  for: n.for
569
569
  }, o.$attrs), [
570
570
  F(o.$slots, "default", {}, () => [
@@ -615,11 +615,11 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
615
615
  ]);
616
616
  return n({
617
617
  fieldRef: o
618
- }), (i, r) => (h(), x("div", {
618
+ }), (i, r) => (y(), x("div", {
619
619
  id: t.id,
620
620
  class: X(a.value)
621
621
  }, [
622
- t.label ? (h(), Z(f(zt), {
622
+ t.label ? (y(), Z(f(zt), {
623
623
  key: 0,
624
624
  class: "q-field__label",
625
625
  label: t.label,
@@ -634,30 +634,30 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
634
634
  ]),
635
635
  _: 3
636
636
  /* FORWARDED */
637
- }, 8, ["label", "for", "required"])) : O("v-if", !0),
637
+ }, 8, ["label", "for", "required"])) : U("v-if", !0),
638
638
  F(i.$slots, "control", {}, () => [
639
- T(
639
+ M(
640
640
  "div",
641
- de({
641
+ pe({
642
642
  ref: "field",
643
643
  class: "q-field__control"
644
644
  }, i.$attrs),
645
645
  [
646
- i.$slots.prepend ? (h(), x("div", lo, [
646
+ i.$slots.prepend ? (y(), x("div", lo, [
647
647
  F(i.$slots, "prepend")
648
- ])) : O("v-if", !0),
648
+ ])) : U("v-if", !0),
649
649
  F(i.$slots, "default"),
650
- i.$slots.append ? (h(), x("div", io, [
650
+ i.$slots.append ? (y(), x("div", io, [
651
651
  F(i.$slots, "append")
652
- ])) : O("v-if", !0)
652
+ ])) : U("v-if", !0)
653
653
  ],
654
654
  16
655
655
  /* FULL_PROPS */
656
656
  )
657
657
  ]),
658
- i.$slots.extras ? (h(), x("div", ro, [
658
+ i.$slots.extras ? (y(), x("div", ro, [
659
659
  F(i.$slots, "extras")
660
- ])) : O("v-if", !0)
660
+ ])) : U("v-if", !0)
661
661
  ], 10, ao));
662
662
  }
663
663
  }), Vt = K(so), co = {
@@ -680,7 +680,7 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
680
680
  function l(a) {
681
681
  o("click", a);
682
682
  }
683
- return (a, i) => (h(), Z(f(oe), {
683
+ return (a, i) => (y(), Z(f(oe), {
684
684
  id: t.id,
685
685
  class: X(["q-clear-btn", t.class]),
686
686
  "aria-label": t.texts.clearValue,
@@ -727,27 +727,27 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
727
727
  }),
728
728
  emits: /* @__PURE__ */ be(["click:clear"], ["update:modelValue"]),
729
729
  setup(e, { expose: n, emit: t }) {
730
- const o = e, l = t, a = Me(e, "modelValue"), i = w({
730
+ const o = e, l = t, a = Te(e, "modelValue"), i = w({
731
731
  get: () => a.value,
732
- set: (y) => {
732
+ set: (h) => {
733
733
  const _ = o.maxLength;
734
- a.value = _ ? y == null ? void 0 : y.slice(0, _) : y;
734
+ a.value = _ ? h == null ? void 0 : h.slice(0, _) : h;
735
735
  }
736
736
  });
737
- se(a, (y) => i.value = y, { immediate: !0 });
738
- const r = vt(o.id), c = q(null), d = q(null), u = w(
737
+ se(a, (h) => i.value = h, { immediate: !0 });
738
+ const r = vt(o.id), c = q(null), u = q(null), d = w(
739
739
  () => o.readonly || o.disabled ? void 0 : o.placeholder
740
740
  ), s = w(() => o.clearable && !o.readonly && !o.disabled), v = w(() => s.value && a.value);
741
- function b(y) {
742
- s.value && (a.value = "", l("click:clear", y));
741
+ function b(h) {
742
+ s.value && (a.value = "", l("click:clear", h));
743
743
  }
744
744
  return n({
745
745
  fieldRef: w(() => {
746
- var y;
747
- return (y = c.value) == null ? void 0 : y.fieldRef;
746
+ var h;
747
+ return (h = c.value) == null ? void 0 : h.fieldRef;
748
748
  }),
749
- inputRef: d
750
- }), (y, _) => (h(), Z(f(Vt), {
749
+ inputRef: u
750
+ }), (h, _) => (y(), Z(f(Vt), {
751
751
  ref_key: "fieldRef",
752
752
  ref: c,
753
753
  class: X(["q-text-field", o.class]),
@@ -760,55 +760,55 @@ const Kn = ["id"], eo = /* @__PURE__ */ V({
760
760
  invalid: o.invalid
761
761
  }, Rt({
762
762
  "label.prepend": R(() => [
763
- F(y.$slots, "label.prepend")
763
+ F(h.$slots, "label.prepend")
764
764
  ]),
765
765
  "label.append": R(() => [
766
- F(y.$slots, "label.append")
766
+ F(h.$slots, "label.append")
767
767
  ]),
768
768
  default: R(() => [
769
- Mt(T("input", de({
769
+ Tt(M("input", pe({
770
770
  id: f(r),
771
771
  ref_key: "inputRef",
772
- ref: d,
772
+ ref: u,
773
773
  "onUpdate:modelValue": _[0] || (_[0] = (j) => i.value = j),
774
774
  class: "q-text-field__input",
775
775
  type: o.type,
776
776
  maxlength: o.maxLength,
777
777
  required: o.required,
778
- placeholder: u.value,
778
+ placeholder: d.value,
779
779
  readonly: o.readonly,
780
780
  disabled: o.disabled
781
- }, y.$attrs), null, 16, vo), [
781
+ }, h.$attrs), null, 16, vo), [
782
782
  [ln, i.value]
783
783
  ])
784
784
  ]),
785
785
  _: 2
786
786
  /* DYNAMIC */
787
787
  }, [
788
- y.$slots.prepend ? {
788
+ h.$slots.prepend ? {
789
789
  name: "prepend",
790
790
  fn: R(() => [
791
- F(y.$slots, "prepend")
791
+ F(h.$slots, "prepend")
792
792
  ]),
793
793
  key: "0"
794
794
  } : void 0,
795
- y.$slots.append || v.value ? {
795
+ h.$slots.append || v.value ? {
796
796
  name: "append",
797
797
  fn: R(() => [
798
- F(y.$slots, "append"),
799
- v.value ? (h(), Z(f(fo), {
798
+ F(h.$slots, "append"),
799
+ v.value ? (y(), Z(f(fo), {
800
800
  key: 0,
801
801
  "data-testid": "q-text-field__clear-button",
802
802
  texts: o.texts,
803
803
  onClick: b
804
- }, null, 8, ["texts"])) : O("v-if", !0)
804
+ }, null, 8, ["texts"])) : U("v-if", !0)
805
805
  ]),
806
806
  key: "1"
807
807
  } : void 0,
808
- y.$slots.extras ? {
808
+ h.$slots.extras ? {
809
809
  name: "extras",
810
810
  fn: R(() => [
811
- F(y.$slots, "extras")
811
+ F(h.$slots, "extras")
812
812
  ]),
813
813
  key: "2"
814
814
  } : void 0
@@ -848,7 +848,7 @@ const ho = { ref: "layer" }, yo = /* @__PURE__ */ V({
848
848
  t("focus-outside", b), t("interact-outside", b), b.defaultPrevented || t("dismiss", b);
849
849
  }
850
850
  }
851
- function d(s) {
851
+ function u(s) {
852
852
  if (!o.value || !(a != null && a.isTop())) return;
853
853
  const v = s.target;
854
854
  if (!o.value.contains(v)) {
@@ -860,28 +860,28 @@ const ho = { ref: "layer" }, yo = /* @__PURE__ */ V({
860
860
  t("pointer-down-outside", b), t("interact-outside", b), b.defaultPrevented || t("dismiss", b);
861
861
  }
862
862
  }
863
- function u() {
863
+ function d() {
864
864
  ["mousedown", "touchstart"].forEach((s) => {
865
- document.addEventListener(s, d, {
865
+ document.addEventListener(s, u, {
866
866
  passive: !0,
867
867
  capture: !0
868
868
  // Use capture phase to ensure we catch the event
869
869
  }), i.push(() => {
870
- document.removeEventListener(s, d, {
870
+ document.removeEventListener(s, u, {
871
871
  capture: !0
872
872
  });
873
873
  });
874
874
  });
875
875
  }
876
- return Te(() => {
876
+ return Me(() => {
877
877
  a == null || a.register(), document.addEventListener("keydown", r), i.push(() => {
878
878
  document.removeEventListener("keydown", r);
879
879
  }), document.addEventListener("focusin", c), i.push(() => {
880
880
  document.removeEventListener("focusin", c);
881
- }), u();
882
- }), Tt(() => {
881
+ }), d();
882
+ }), Mt(() => {
883
883
  a == null || a.unregister(), i.forEach((s) => s()), i = [];
884
- }), (s, v) => (h(), x(
884
+ }), (s, v) => (y(), x(
885
885
  "div",
886
886
  ho,
887
887
  [
@@ -913,7 +913,7 @@ function rt(e) {
913
913
  }
914
914
  function $o() {
915
915
  const e = lt(!1), n = ut();
916
- return n && Te(() => {
916
+ return n && Me(() => {
917
917
  e.value = !0;
918
918
  }, n), e;
919
919
  }
@@ -929,7 +929,7 @@ function Eo(e, n, t = {}) {
929
929
  }, c = w(() => {
930
930
  const s = pt(e);
931
931
  return Array.isArray(s) ? s.map((v) => rt(v)) : [rt(s)];
932
- }), d = se(
932
+ }), u = se(
933
933
  c,
934
934
  (s) => {
935
935
  if (r(), i.value && o) {
@@ -939,12 +939,12 @@ function Eo(e, n, t = {}) {
939
939
  }
940
940
  },
941
941
  { immediate: !0, flush: "post" }
942
- ), u = () => {
943
- r(), d();
942
+ ), d = () => {
943
+ r(), u();
944
944
  };
945
- return _o(u), {
945
+ return _o(d), {
946
946
  isSupported: i,
947
- stop: u
947
+ stop: d
948
948
  };
949
949
  }
950
950
  function Io(e = gt, n) {
@@ -953,26 +953,26 @@ function Io(e = gt, n) {
953
953
  function Co(e = {}) {
954
954
  var n, t;
955
955
  const { window: o = gt } = e, l = wt(e == null ? void 0 : e.element), a = wt((n = e == null ? void 0 : e.input) != null ? n : ""), i = (t = e == null ? void 0 : e.styleProp) != null ? t : "height", r = lt(1), c = lt(0);
956
- function d() {
957
- var u;
956
+ function u() {
957
+ var d;
958
958
  if (!l.value)
959
959
  return;
960
960
  let s = "";
961
- l.value.style[i] = "1px", r.value = (u = l.value) == null ? void 0 : u.scrollHeight;
961
+ l.value.style[i] = "1px", r.value = (d = l.value) == null ? void 0 : d.scrollHeight;
962
962
  const v = pt(e == null ? void 0 : e.styleTarget);
963
963
  v ? v.style[i] = `${r.value}px` : s = `${r.value}px`, l.value.style[i] = s;
964
964
  }
965
- return se([a, l], () => De(d), { immediate: !0 }), se(r, () => {
966
- var u;
967
- return (u = e == null ? void 0 : e.onResize) == null ? void 0 : u.call(e);
968
- }), Eo(l, ([{ contentRect: u }]) => {
969
- c.value !== u.width && Io(o, () => {
970
- c.value = u.width, d();
965
+ return se([a, l], () => De(u), { immediate: !0 }), se(r, () => {
966
+ var d;
967
+ return (d = e == null ? void 0 : e.onResize) == null ? void 0 : d.call(e);
968
+ }), Eo(l, ([{ contentRect: d }]) => {
969
+ c.value !== d.width && Io(o, () => {
970
+ c.value = d.width, u();
971
971
  });
972
- }), e != null && e.watch && se(e.watch, d, { immediate: !0, deep: !0 }), {
972
+ }), e != null && e.watch && se(e.watch, u, { immediate: !0, deep: !0 }), {
973
973
  textarea: l,
974
974
  input: a,
975
- triggerResize: d
975
+ triggerResize: u
976
976
  };
977
977
  }
978
978
  /*!
@@ -1003,14 +1003,14 @@ var Zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1003
1003
  var i = a.shift();
1004
1004
  if (!Ze(i, !1))
1005
1005
  if (i.tagName === "SLOT") {
1006
- var r = i.assignedElements(), c = r.length ? r : i.children, d = e(c, !0, o);
1007
- o.flatten ? l.push.apply(l, d) : l.push({
1006
+ var r = i.assignedElements(), c = r.length ? r : i.children, u = e(c, !0, o);
1007
+ o.flatten ? l.push.apply(l, u) : l.push({
1008
1008
  scopeParent: i,
1009
- candidates: d
1009
+ candidates: u
1010
1010
  });
1011
1011
  } else {
1012
- var u = xe.call(i, Ve);
1013
- u && o.filter(i) && (t || !n.includes(i)) && l.push(i);
1012
+ var d = xe.call(i, Ve);
1013
+ d && o.filter(i) && (t || !n.includes(i)) && l.push(i);
1014
1014
  var s = i.shadowRoot || // check for an undisclosed shadow
1015
1015
  typeof o.getShadowRoot == "function" && o.getShadowRoot(i), v = !Ze(s, !1) && (!o.shadowRootFilter || o.shadowRootFilter(i));
1016
1016
  if (s && v) {
@@ -1044,11 +1044,11 @@ var Zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1044
1044
  return t.tagName === "SUMMARY";
1045
1045
  });
1046
1046
  return n;
1047
- }, Mo = function(e, n) {
1047
+ }, To = function(e, n) {
1048
1048
  for (var t = 0; t < e.length; t++)
1049
1049
  if (e[t].checked && e[t].form === n)
1050
1050
  return e[t];
1051
- }, To = function(e) {
1051
+ }, Mo = function(e) {
1052
1052
  if (!e.name)
1053
1053
  return !0;
1054
1054
  var n = e.form || He(e), t = function(a) {
@@ -1062,19 +1062,19 @@ var Zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1062
1062
  } catch (a) {
1063
1063
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1;
1064
1064
  }
1065
- var l = Mo(o, e.form);
1065
+ var l = To(o, e.form);
1066
1066
  return !l || l === e;
1067
1067
  }, qo = function(e) {
1068
1068
  return Xt(e) && e.type === "radio";
1069
1069
  }, No = function(e) {
1070
- return qo(e) && !To(e);
1070
+ return qo(e) && !Mo(e);
1071
1071
  }, Fo = function(e) {
1072
1072
  var n, t = e && He(e), o = (n = t) === null || n === void 0 ? void 0 : n.host, l = !1;
1073
1073
  if (t && t !== e) {
1074
1074
  var a, i, r;
1075
1075
  for (l = !!((a = o) !== null && a !== void 0 && (i = a.ownerDocument) !== null && i !== void 0 && i.contains(o) || e != null && (r = e.ownerDocument) !== null && r !== void 0 && r.contains(e)); !l && o; ) {
1076
- var c, d, u;
1077
- t = He(o), o = (c = t) === null || c === void 0 ? void 0 : c.host, l = !!((d = o) !== null && d !== void 0 && (u = d.ownerDocument) !== null && u !== void 0 && u.contains(o));
1076
+ var c, u, d;
1077
+ t = He(o), o = (c = t) === null || c === void 0 ? void 0 : c.host, l = !!((u = o) !== null && u !== void 0 && (d = u.ownerDocument) !== null && d !== void 0 && d.contains(o));
1078
1078
  }
1079
1079
  }
1080
1080
  return l;
@@ -1133,13 +1133,13 @@ var Zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1133
1133
  }, Go = function e(n) {
1134
1134
  var t = [], o = [];
1135
1135
  return n.forEach(function(l, a) {
1136
- var i = !!l.scopeParent, r = i ? l.scopeParent : l, c = Do(r, i), d = i ? e(l.candidates) : r;
1137
- c === 0 ? i ? t.push.apply(t, d) : t.push(r) : o.push({
1136
+ var i = !!l.scopeParent, r = i ? l.scopeParent : l, c = Do(r, i), u = i ? e(l.candidates) : r;
1137
+ c === 0 ? i ? t.push.apply(t, u) : t.push(r) : o.push({
1138
1138
  documentOrder: a,
1139
1139
  tabIndex: c,
1140
1140
  item: l,
1141
1141
  isScope: i,
1142
- content: d
1142
+ content: u
1143
1143
  });
1144
1144
  }), o.sort(Bo).reduce(function(l, a) {
1145
1145
  return a.isScope ? l.push.apply(l, a.content) : l.push(a.content), l;
@@ -1331,7 +1331,7 @@ var $t = {
1331
1331
  return I === p;
1332
1332
  });
1333
1333
  });
1334
- }, d = function(p) {
1334
+ }, u = function(p) {
1335
1335
  var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = m.hasFallback, N = k === void 0 ? !1 : k, L = m.params, C = L === void 0 ? [] : L, I = l[p];
1336
1336
  if (typeof I == "function" && (I = I.apply(void 0, Qo(C))), I === !0 && (I = void 0), !I) {
1337
1337
  if (I === void 0 || I === !1)
@@ -1342,15 +1342,15 @@ var $t = {
1342
1342
  if (typeof I == "string") {
1343
1343
  try {
1344
1344
  z = t.querySelector(I);
1345
- } catch (U) {
1346
- throw new Error("`".concat(p, '` appears to be an invalid selector; error="').concat(U.message, '"'));
1345
+ } catch (G) {
1346
+ throw new Error("`".concat(p, '` appears to be an invalid selector; error="').concat(G.message, '"'));
1347
1347
  }
1348
1348
  if (!z && !N)
1349
1349
  throw new Error("`".concat(p, "` as selector refers to no known node"));
1350
1350
  }
1351
1351
  return z;
1352
- }, u = function() {
1353
- var p = d("initialFocus", {
1352
+ }, d = function() {
1353
+ var p = u("initialFocus", {
1354
1354
  hasFallback: !0
1355
1355
  });
1356
1356
  if (p === !1)
@@ -1360,20 +1360,20 @@ var $t = {
1360
1360
  p = t.activeElement;
1361
1361
  else {
1362
1362
  var m = a.tabbableGroups[0], k = m && m.firstTabbableNode;
1363
- p = k || d("fallbackFocus");
1363
+ p = k || u("fallbackFocus");
1364
1364
  }
1365
- else p === null && (p = d("fallbackFocus"));
1365
+ else p === null && (p = u("fallbackFocus"));
1366
1366
  if (!p)
1367
1367
  throw new Error("Your focus-trap needs to have at least one focusable element");
1368
1368
  return p;
1369
1369
  }, s = function() {
1370
1370
  if (a.containerGroups = a.containers.map(function(p) {
1371
- var m = jo(p, l.tabbableOptions), k = zo(p, l.tabbableOptions), N = m.length > 0 ? m[0] : void 0, L = m.length > 0 ? m[m.length - 1] : void 0, C = k.find(function(U) {
1372
- return $e(U);
1373
- }), I = k.slice().reverse().find(function(U) {
1374
- return $e(U);
1375
- }), z = !!m.find(function(U) {
1376
- return _e(U) > 0;
1371
+ var m = jo(p, l.tabbableOptions), k = zo(p, l.tabbableOptions), N = m.length > 0 ? m[0] : void 0, L = m.length > 0 ? m[m.length - 1] : void 0, C = k.find(function(G) {
1372
+ return $e(G);
1373
+ }), I = k.slice().reverse().find(function(G) {
1374
+ return $e(G);
1375
+ }), z = !!m.find(function(G) {
1376
+ return _e(G) > 0;
1377
1377
  });
1378
1378
  return {
1379
1379
  container: p,
@@ -1404,18 +1404,18 @@ var $t = {
1404
1404
  * in reverse.
1405
1405
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
1406
1406
  */
1407
- nextTabbableNode: function(U) {
1408
- var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ce = m.indexOf(U);
1409
- return ce < 0 ? ae ? k.slice(k.indexOf(U) + 1).find(function(te) {
1407
+ nextTabbableNode: function(G) {
1408
+ var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ce = m.indexOf(G);
1409
+ return ce < 0 ? ae ? k.slice(k.indexOf(G) + 1).find(function(te) {
1410
1410
  return $e(te);
1411
- }) : k.slice(0, k.indexOf(U)).reverse().find(function(te) {
1411
+ }) : k.slice(0, k.indexOf(G)).reverse().find(function(te) {
1412
1412
  return $e(te);
1413
1413
  }) : m[ce + (ae ? 1 : -1)];
1414
1414
  }
1415
1415
  };
1416
1416
  }), a.tabbableGroups = a.containerGroups.filter(function(p) {
1417
1417
  return p.tabbableNodes.length > 0;
1418
- }), a.tabbableGroups.length <= 0 && !d("fallbackFocus"))
1418
+ }), a.tabbableGroups.length <= 0 && !u("fallbackFocus"))
1419
1419
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
1420
1420
  if (a.containerGroups.find(function(p) {
1421
1421
  return p.posTabIndexesFound;
@@ -1428,15 +1428,15 @@ var $t = {
1428
1428
  }, b = function(p) {
1429
1429
  if (p !== !1 && p !== v(document)) {
1430
1430
  if (!p || !p.focus) {
1431
- b(u());
1431
+ b(d());
1432
1432
  return;
1433
1433
  }
1434
1434
  p.focus({
1435
1435
  preventScroll: !!l.preventScroll
1436
1436
  }), a.mostRecentlyFocusedNode = p, ea(p) && p.select();
1437
1437
  }
1438
- }, y = function(p) {
1439
- var m = d("setReturnFocus", {
1438
+ }, h = function(p) {
1439
+ var m = u("setReturnFocus", {
1440
1440
  params: [p]
1441
1441
  });
1442
1442
  return m || (m === !1 ? !1 : p);
@@ -1449,12 +1449,12 @@ var $t = {
1449
1449
  if (I < 0)
1450
1450
  L ? C = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : C = a.tabbableGroups[0].firstTabbableNode;
1451
1451
  else if (L) {
1452
- var U = a.tabbableGroups.findIndex(function(me) {
1452
+ var G = a.tabbableGroups.findIndex(function(me) {
1453
1453
  var ye = me.firstTabbableNode;
1454
1454
  return m === ye;
1455
1455
  });
1456
- if (U < 0 && (z.container === m || Ke(m, l.tabbableOptions) && !$e(m, l.tabbableOptions) && !z.nextTabbableNode(m, !1)) && (U = I), U >= 0) {
1457
- var ae = U === 0 ? a.tabbableGroups.length - 1 : U - 1, ce = a.tabbableGroups[ae];
1456
+ if (G < 0 && (z.container === m || Ke(m, l.tabbableOptions) && !$e(m, l.tabbableOptions) && !z.nextTabbableNode(m, !1)) && (G = I), G >= 0) {
1457
+ var ae = G === 0 ? a.tabbableGroups.length - 1 : G - 1, ce = a.tabbableGroups[ae];
1458
1458
  C = _e(m) >= 0 ? ce.lastTabbableNode : ce.lastDomTabbableNode;
1459
1459
  } else Be(k) || (C = z.nextTabbableNode(m, !1));
1460
1460
  } else {
@@ -1468,7 +1468,7 @@ var $t = {
1468
1468
  } else Be(k) || (C = z.nextTabbableNode(m));
1469
1469
  }
1470
1470
  } else
1471
- C = d("fallbackFocus");
1471
+ C = u("fallbackFocus");
1472
1472
  return C;
1473
1473
  }, j = function(p) {
1474
1474
  var m = Fe(p);
@@ -1498,14 +1498,14 @@ var $t = {
1498
1498
  if (_e(a.mostRecentlyFocusedNode) > 0) {
1499
1499
  var C = c(a.mostRecentlyFocusedNode), I = a.containerGroups[C].tabbableNodes;
1500
1500
  if (I.length > 0) {
1501
- var z = I.findIndex(function(U) {
1502
- return U === a.mostRecentlyFocusedNode;
1501
+ var z = I.findIndex(function(G) {
1502
+ return G === a.mostRecentlyFocusedNode;
1503
1503
  });
1504
1504
  z >= 0 && (l.isKeyForward(a.recentNavEvent) ? z + 1 < I.length && (N = I[z + 1], L = !1) : z - 1 >= 0 && (N = I[z - 1], L = !1));
1505
1505
  }
1506
1506
  } else
1507
- a.containerGroups.some(function(U) {
1508
- return U.tabbableNodes.some(function(ae) {
1507
+ a.containerGroups.some(function(G) {
1508
+ return G.tabbableNodes.some(function(ae) {
1509
1509
  return _e(ae) > 0;
1510
1510
  });
1511
1511
  }) || (L = !1);
@@ -1516,10 +1516,10 @@ var $t = {
1516
1516
  // outside the trap causing the focus escape we're trying to fix)
1517
1517
  target: a.mostRecentlyFocusedNode,
1518
1518
  isBackward: l.isKeyBackward(a.recentNavEvent)
1519
- })), b(N || a.mostRecentlyFocusedNode || u());
1519
+ })), b(N || a.mostRecentlyFocusedNode || d());
1520
1520
  }
1521
1521
  a.recentNavEvent = void 0;
1522
- }, W = function(p) {
1522
+ }, J = function(p) {
1523
1523
  var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1524
1524
  a.recentNavEvent = p;
1525
1525
  var k = _({
@@ -1527,42 +1527,42 @@ var $t = {
1527
1527
  isBackward: m
1528
1528
  });
1529
1529
  k && (Be(p) && p.preventDefault(), b(k));
1530
- }, E = function(p) {
1531
- (l.isKeyForward(p) || l.isKeyBackward(p)) && W(p, l.isKeyBackward(p));
1530
+ }, A = function(p) {
1531
+ (l.isKeyForward(p) || l.isKeyBackward(p)) && J(p, l.isKeyBackward(p));
1532
1532
  }, P = function(p) {
1533
1533
  ta(p) && Se(l.escapeDeactivates, p) !== !1 && (p.preventDefault(), i.deactivate());
1534
- }, J = function(p) {
1534
+ }, Q = function(p) {
1535
1535
  var m = Fe(p);
1536
1536
  c(m, p) >= 0 || Se(l.clickOutsideDeactivates, p) || Se(l.allowOutsideClick, p) || (p.preventDefault(), p.stopImmediatePropagation());
1537
1537
  }, B = function() {
1538
1538
  if (a.active)
1539
1539
  return $t.activateTrap(o, i), a.delayInitialFocusTimer = l.delayInitialFocus ? At(function() {
1540
- b(u());
1541
- }) : b(u()), t.addEventListener("focusin", H, !0), t.addEventListener("mousedown", j, {
1540
+ b(d());
1541
+ }) : b(d()), t.addEventListener("focusin", H, !0), t.addEventListener("mousedown", j, {
1542
1542
  capture: !0,
1543
1543
  passive: !1
1544
1544
  }), t.addEventListener("touchstart", j, {
1545
1545
  capture: !0,
1546
1546
  passive: !1
1547
- }), t.addEventListener("click", J, {
1547
+ }), t.addEventListener("click", Q, {
1548
1548
  capture: !0,
1549
1549
  passive: !1
1550
- }), t.addEventListener("keydown", E, {
1550
+ }), t.addEventListener("keydown", A, {
1551
1551
  capture: !0,
1552
1552
  passive: !1
1553
1553
  }), t.addEventListener("keydown", P), i;
1554
1554
  }, $ = function() {
1555
1555
  if (a.active)
1556
- return t.removeEventListener("focusin", H, !0), t.removeEventListener("mousedown", j, !0), t.removeEventListener("touchstart", j, !0), t.removeEventListener("click", J, !0), t.removeEventListener("keydown", E, !0), t.removeEventListener("keydown", P), i;
1557
- }, M = function(p) {
1556
+ return t.removeEventListener("focusin", H, !0), t.removeEventListener("mousedown", j, !0), t.removeEventListener("touchstart", j, !0), t.removeEventListener("click", Q, !0), t.removeEventListener("keydown", A, !0), t.removeEventListener("keydown", P), i;
1557
+ }, T = function(p) {
1558
1558
  var m = p.some(function(k) {
1559
1559
  var N = Array.from(k.removedNodes);
1560
1560
  return N.some(function(L) {
1561
1561
  return L === a.mostRecentlyFocusedNode;
1562
1562
  });
1563
1563
  });
1564
- m && b(u());
1565
- }, ue = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(M) : void 0, ie = function() {
1564
+ m && b(d());
1565
+ }, ue = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(T) : void 0, ie = function() {
1566
1566
  ue && (ue.disconnect(), a.active && !a.paused && a.containers.map(function(p) {
1567
1567
  ue.observe(p, {
1568
1568
  subtree: !0,
@@ -1600,10 +1600,10 @@ var $t = {
1600
1600
  k == null || k();
1601
1601
  var I = function() {
1602
1602
  At(function() {
1603
- C && b(y(a.nodeFocusedBeforeActivation)), N == null || N();
1603
+ C && b(h(a.nodeFocusedBeforeActivation)), N == null || N();
1604
1604
  });
1605
1605
  };
1606
- return C && L ? (L(y(a.nodeFocusedBeforeActivation)).then(I, I), this) : (I(), this);
1606
+ return C && L ? (L(h(a.nodeFocusedBeforeActivation)).then(I, I), this) : (I(), this);
1607
1607
  },
1608
1608
  pause: function(p) {
1609
1609
  return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, p)) : this;
@@ -1667,10 +1667,10 @@ const ia = /* @__PURE__ */ V({
1667
1667
  }),
1668
1668
  emits: ["update:disabled"],
1669
1669
  setup(e) {
1670
- const n = e, t = Me(e, "disabled");
1671
- return (o, l) => t.value ? F(o.$slots, "default", { key: 0 }) : (h(), Z(
1670
+ const n = e, t = Te(e, "disabled");
1671
+ return (o, l) => t.value ? F(o.$slots, "default", { key: 0 }) : (y(), Z(
1672
1672
  f(ia),
1673
- Re(de({ key: 1 }, n)),
1673
+ Re(pe({ key: 1 }, n)),
1674
1674
  {
1675
1675
  default: R(() => [
1676
1676
  F(o.$slots, "default")
@@ -1732,7 +1732,7 @@ const ba = () => {
1732
1732
  const n = e, t = ba(), o = () => {
1733
1733
  const a = parseInt(document.body.getAttribute(Ae) || "0", 10);
1734
1734
  return isFinite(a) ? a : 0;
1735
- }, l = ({ left: a, top: i, right: r, gap: c }, d, u = "margin", s) => `
1735
+ }, l = ({ left: a, top: i, right: r, gap: c }, u, d = "margin", s) => `
1736
1736
  .${ca} {
1737
1737
  overflow: hidden ${s};
1738
1738
  padding-right: ${c}px ${s};
@@ -1741,8 +1741,8 @@ const ba = () => {
1741
1741
  overflow: hidden ${s};
1742
1742
  overscroll-behavior: contain;
1743
1743
  ${[
1744
- d && `position: relative ${s};`,
1745
- u === "margin" && `
1744
+ u && `position: relative ${s};`,
1745
+ d === "margin" && `
1746
1746
  padding-left: ${a}px;
1747
1747
  padding-top: ${i}px;
1748
1748
  padding-right: ${r}px;
@@ -1750,7 +1750,7 @@ const ba = () => {
1750
1750
  margin-top:0;
1751
1751
  margin-right: ${c}px ${s};
1752
1752
  `,
1753
- u === "padding" && `padding-right: ${c}px ${s};`
1753
+ d === "padding" && `padding-right: ${c}px ${s};`
1754
1754
  ].filter(Boolean).join("")}
1755
1755
  }
1756
1756
 
@@ -1774,27 +1774,27 @@ const ba = () => {
1774
1774
  ${ua}: ${c}px;
1775
1775
  }
1776
1776
  `;
1777
- return Te(() => {
1777
+ return Me(() => {
1778
1778
  document.body.setAttribute(Ae, (o() + 1).toString());
1779
1779
  const a = fa(n.gapMode);
1780
1780
  t.add(
1781
1781
  l(a, !n.noRelative, n.gapMode, n.noImportant ? "" : "!important")
1782
1782
  );
1783
- }), Tt(() => {
1783
+ }), Mt(() => {
1784
1784
  const a = o() - 1;
1785
1785
  a <= 0 ? document.body.removeAttribute(Ae) : document.body.setAttribute(Ae, a.toString()), t.remove();
1786
1786
  }), (a, i) => F(a.$slots, "default");
1787
1787
  }
1788
1788
  }), ya = K(ha);
1789
1789
  function wa(e, n, t, o) {
1790
- const l = (o == null ? void 0 : o.offset) ?? 0, a = (o == null ? void 0 : o.crossOffset) ?? 0, i = (o == null ? void 0 : o.placement) ?? "bottom", r = e.getBoundingClientRect(), c = n.getBoundingClientRect(), d = t == null ? void 0 : t.getBoundingClientRect(), u = _a(r, c, i, l), s = Ea(r, c, u), v = ka(s, u, l), b = $a(v, u, a), y = xa(b, c, u);
1790
+ const l = (o == null ? void 0 : o.offset) ?? 0, a = (o == null ? void 0 : o.crossOffset) ?? 0, i = (o == null ? void 0 : o.placement) ?? "bottom", r = e.getBoundingClientRect(), c = n.getBoundingClientRect(), u = t == null ? void 0 : t.getBoundingClientRect(), d = _a(r, c, i, l), s = Ea(r, c, d), v = ka(s, d, l), b = $a(v, d, a), h = xa(b, c, d);
1791
1791
  let _;
1792
1792
  if (o != null && o.arrow) {
1793
- if (!d)
1793
+ if (!u)
1794
1794
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
1795
- _ = Aa(y, r, c, d, u);
1795
+ _ = Aa(h, r, c, u, d);
1796
1796
  }
1797
- return { overlayCoords: y, arrowCoords: _, placement: u };
1797
+ return { overlayCoords: h, arrowCoords: _, placement: d };
1798
1798
  }
1799
1799
  function _a(e, n, t, o) {
1800
1800
  const l = Et(e, n, t, o);
@@ -1871,13 +1871,13 @@ function Ea(e, n, t) {
1871
1871
  }
1872
1872
  if (!l)
1873
1873
  return r;
1874
- const c = Je(t) === "y" ? "height" : "width", d = Je(t), u = e[c] / 2 - n[c] / 2;
1874
+ const c = Je(t) === "y" ? "height" : "width", u = Je(t), d = e[c] / 2 - n[c] / 2;
1875
1875
  switch (l) {
1876
1876
  case "start":
1877
- r[d] -= u;
1877
+ r[u] -= d;
1878
1878
  break;
1879
1879
  case "end":
1880
- r[d] += u;
1880
+ r[u] += d;
1881
1881
  break;
1882
1882
  default:
1883
1883
  throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
@@ -1961,7 +1961,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
1961
1961
  }),
1962
1962
  emits: /* @__PURE__ */ be(["enter", "leave"], ["update:modelValue"]),
1963
1963
  setup(e, { emit: n }) {
1964
- const t = e, o = n, l = Me(e, "modelValue"), { class: a } = Ut(), i = w(() => [
1964
+ const t = e, o = n, l = Te(e, "modelValue"), { class: a } = Ut(), i = w(() => [
1965
1965
  "q-overlay",
1966
1966
  `q-overlay--${Ie(s.placement)}`,
1967
1967
  a.value,
@@ -1971,7 +1971,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
1971
1971
  "q-overlay--center": t.centerVertically
1972
1972
  },
1973
1973
  t.class
1974
- ]), r = w(() => t.anchor === void 0), c = w(() => l.value && !t.nonModal), d = w(() => (l.value || s.animating) && t.scrollLock), u = w(() => !t.inline && (l.value || s.animating)), s = ze({
1974
+ ]), r = w(() => t.anchor === void 0), c = w(() => l.value && !t.nonModal), u = w(() => (l.value || s.animating) && t.scrollLock), d = w(() => !t.inline && (l.value || s.animating)), s = ze({
1975
1975
  animating: !1,
1976
1976
  top: 0,
1977
1977
  left: 0,
@@ -1985,13 +1985,13 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
1985
1985
  se(l, k);
1986
1986
  const b = w(() => {
1987
1987
  if (r.value) return;
1988
- const S = L(), pe = t.width === "anchor", g = pe ? S == null ? void 0 : S.getBoundingClientRect().width : void 0;
1988
+ const S = L(), fe = t.width === "anchor", g = fe ? S == null ? void 0 : S.getBoundingClientRect().width : void 0;
1989
1989
  return {
1990
1990
  top: `${s.top}px`,
1991
1991
  left: `${s.left}px`,
1992
1992
  width: g !== void 0 ? `${g}px` : void 0
1993
1993
  };
1994
- }), y = w(() => {
1994
+ }), h = w(() => {
1995
1995
  if (t.arrow)
1996
1996
  return {
1997
1997
  top: v.top !== void 0 ? `${v.top}px` : void 0,
@@ -1999,11 +1999,11 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
1999
1999
  opacity: v.hidden ? 0 : 1
2000
2000
  };
2001
2001
  }), _ = q(null), j = q(null), H = q(null);
2002
- function W() {
2002
+ function J() {
2003
2003
  const S = L();
2004
2004
  if (!S || !j.value)
2005
2005
  return;
2006
- const pe = {
2006
+ const fe = {
2007
2007
  placement: t.placement,
2008
2008
  width: t.width,
2009
2009
  offset: t.offset,
@@ -2013,34 +2013,34 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2013
2013
  S,
2014
2014
  j.value,
2015
2015
  (_ == null ? void 0 : _.value) ?? void 0,
2016
- pe
2016
+ fe
2017
2017
  );
2018
2018
  s.left = g.overlayCoords.x, s.top = g.overlayCoords.y, s.placement = g.placement, v.hidden = g.arrowCoords === void 0, g.arrowCoords && (v.top = g.arrowCoords.y, v.left = g.arrowCoords.x);
2019
2019
  }
2020
2020
  se(
2021
2021
  () => t.placement,
2022
- () => De(W)
2022
+ () => De(J)
2023
2023
  );
2024
- let E;
2024
+ let A;
2025
2025
  function P() {
2026
2026
  B(0);
2027
2027
  }
2028
- function J() {
2028
+ function Q() {
2029
2029
  B(t.delay);
2030
2030
  }
2031
2031
  function B(S) {
2032
- E && M(), E = window.setTimeout(() => {
2032
+ A && T(), A = window.setTimeout(() => {
2033
2033
  l.value = !0;
2034
2034
  }, S);
2035
2035
  }
2036
2036
  function $() {
2037
- if (E && M(), l.value = !1, t.anchor && t.trigger === "click") {
2037
+ if (A && T(), l.value = !1, t.anchor && t.trigger === "click") {
2038
2038
  const S = L();
2039
2039
  De(() => S == null ? void 0 : S.focus());
2040
2040
  }
2041
2041
  }
2042
- function M() {
2043
- clearTimeout(E), E = void 0;
2042
+ function T() {
2043
+ clearTimeout(A), A = void 0;
2044
2044
  }
2045
2045
  function ue() {
2046
2046
  De(ye), o("enter");
@@ -2067,15 +2067,15 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2067
2067
  t.persistent && S.preventDefault();
2068
2068
  }
2069
2069
  function I(S) {
2070
- var pe;
2070
+ var fe;
2071
2071
  if (t.persistent) {
2072
2072
  S.preventDefault();
2073
2073
  return;
2074
2074
  }
2075
2075
  let g = !1;
2076
2076
  S.defaultPrevented || S.detail.originalEvent.type === "pointerdown" && (g = !0);
2077
- const A = S.detail.originalEvent.target;
2078
- if ((pe = L()) != null && pe.contains(A)) {
2077
+ const E = S.detail.originalEvent.target;
2078
+ if ((fe = L()) != null && fe.contains(E)) {
2079
2079
  S.preventDefault();
2080
2080
  return;
2081
2081
  }
@@ -2084,11 +2084,11 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2084
2084
  function z() {
2085
2085
  $();
2086
2086
  }
2087
- let U;
2087
+ let G;
2088
2088
  function ae() {
2089
2089
  const S = L();
2090
2090
  if (S)
2091
- switch (U = new MutationObserver(W), U.observe(S, {
2091
+ switch (G = new MutationObserver(J), G.observe(S, {
2092
2092
  attributes: !1,
2093
2093
  childList: !0,
2094
2094
  characterData: !0,
@@ -2098,47 +2098,47 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2098
2098
  S.addEventListener("click", P);
2099
2099
  break;
2100
2100
  case "hover":
2101
- S.addEventListener("mouseenter", J), S.addEventListener("mouseleave", $), S.addEventListener("focusin", P), S.addEventListener("focusout", $);
2101
+ S.addEventListener("mouseenter", Q), S.addEventListener("mouseleave", $), S.addEventListener("focusin", P), S.addEventListener("focusout", $);
2102
2102
  break;
2103
2103
  }
2104
2104
  }
2105
2105
  function ce() {
2106
2106
  const S = L();
2107
2107
  if (S)
2108
- switch (U == null || U.disconnect(), t.trigger) {
2108
+ switch (G == null || G.disconnect(), t.trigger) {
2109
2109
  case "click":
2110
2110
  S.removeEventListener("click", P);
2111
2111
  break;
2112
2112
  case "hover":
2113
- S.removeEventListener("mouseenter", J), S.removeEventListener("mouseleave", $), S.removeEventListener("focusin", P), S.removeEventListener("focusout", $);
2113
+ S.removeEventListener("mouseenter", Q), S.removeEventListener("mouseleave", $), S.removeEventListener("focusin", P), S.removeEventListener("focusout", $);
2114
2114
  break;
2115
2115
  }
2116
2116
  }
2117
2117
  function te() {
2118
- window.addEventListener("resize", W), t.scrollLock || window.addEventListener("scroll", W);
2118
+ window.addEventListener("resize", J), t.scrollLock || window.addEventListener("scroll", J);
2119
2119
  }
2120
2120
  function he() {
2121
- window.removeEventListener("resize", W), t.scrollLock || window.removeEventListener("scroll", W);
2121
+ window.removeEventListener("resize", J), t.scrollLock || window.removeEventListener("scroll", J);
2122
2122
  }
2123
2123
  let ge;
2124
2124
  function me() {
2125
- L() ? (W(), ge = window.setTimeout(me, 100)) : $();
2125
+ L() ? (J(), ge = window.setTimeout(me, 100)) : $();
2126
2126
  }
2127
2127
  function ye() {
2128
2128
  var S;
2129
- r.value || (te(), t.spy ? me() : W()), (r.value || t.trigger === "click") && ((S = j.value) == null || S.focus());
2129
+ r.value || (te(), t.spy ? me() : J()), (r.value || t.trigger === "click") && ((S = j.value) == null || S.focus());
2130
2130
  }
2131
2131
  function Ne() {
2132
2132
  r.value || he(), t.spy && (clearTimeout(ge), ge = void 0);
2133
2133
  }
2134
- return Te(() => {
2134
+ return Me(() => {
2135
2135
  De(ae);
2136
- }), dn(ce), (S, pe) => (h(), x(
2136
+ }), dn(ce), (S, fe) => (y(), x(
2137
2137
  ve,
2138
2138
  null,
2139
2139
  [
2140
- (h(), Z(pn, {
2141
- disabled: !u.value,
2140
+ (y(), Z(pn, {
2141
+ disabled: !d.value,
2142
2142
  to: t.attach
2143
2143
  }, [
2144
2144
  D(bt, {
@@ -2146,7 +2146,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2146
2146
  appear: ""
2147
2147
  }, {
2148
2148
  default: R(() => [
2149
- c.value ? (h(), x(
2149
+ c.value ? (y(), x(
2150
2150
  "div",
2151
2151
  {
2152
2152
  key: 0,
@@ -2159,7 +2159,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2159
2159
  null,
2160
2160
  2
2161
2161
  /* CLASS */
2162
- )) : O("v-if", !0)
2162
+ )) : U("v-if", !0)
2163
2163
  ]),
2164
2164
  _: 1
2165
2165
  /* STABLE */
@@ -2173,7 +2173,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2173
2173
  onAfterLeave: m
2174
2174
  }, {
2175
2175
  default: R(() => [
2176
- l.value ? (h(), x("div", {
2176
+ l.value ? (y(), x("div", {
2177
2177
  key: 0,
2178
2178
  id: t.id,
2179
2179
  ref_key: "overlayContainerRef",
@@ -2188,20 +2188,20 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2188
2188
  onPointerDownOutside: C
2189
2189
  }, {
2190
2190
  default: R(() => [
2191
- H.value ? (h(), Z(f(sa), {
2191
+ H.value ? (y(), Z(f(sa), {
2192
2192
  key: 0,
2193
2193
  disabled: t.nonModal || !l.value,
2194
2194
  options: { fallbackFocus: H.value }
2195
2195
  }, {
2196
2196
  default: R(() => [
2197
- T("div", de({
2197
+ M("div", pe({
2198
2198
  ref_key: "overlayRef",
2199
2199
  ref: j,
2200
2200
  class: "q-overlay__content",
2201
2201
  tabindex: "-1",
2202
2202
  role: c.value ? "dialog" : void 0
2203
2203
  }, S.$attrs), [
2204
- t.arrow ? (h(), x(
2204
+ t.arrow ? (y(), x(
2205
2205
  "div",
2206
2206
  {
2207
2207
  key: 0,
@@ -2209,35 +2209,35 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2209
2209
  ref: _,
2210
2210
  role: "presentation",
2211
2211
  class: "q-overlay__arrow",
2212
- style: Ee(y.value)
2212
+ style: Ee(h.value)
2213
2213
  },
2214
2214
  null,
2215
2215
  4
2216
2216
  /* STYLE */
2217
- )) : O("v-if", !0),
2217
+ )) : U("v-if", !0),
2218
2218
  F(S.$slots, "default")
2219
2219
  ], 16, La)
2220
2220
  ]),
2221
2221
  _: 3
2222
2222
  /* FORWARDED */
2223
- }, 8, ["disabled", "options"])) : O("v-if", !0)
2223
+ }, 8, ["disabled", "options"])) : U("v-if", !0)
2224
2224
  ]),
2225
2225
  _: 3
2226
2226
  /* FORWARDED */
2227
2227
  })
2228
- ], 14, Ba)) : O("v-if", !0)
2228
+ ], 14, Ba)) : U("v-if", !0)
2229
2229
  ]),
2230
2230
  _: 3
2231
2231
  /* FORWARDED */
2232
2232
  }, 8, ["name"])
2233
2233
  ], 8, ["disabled", "to"])),
2234
- d.value ? (h(), Z(f(ya), { key: 0 })) : O("v-if", !0)
2234
+ u.value ? (y(), Z(f(ya), { key: 0 })) : U("v-if", !0)
2235
2235
  ],
2236
2236
  64
2237
2237
  /* STABLE_FRAGMENT */
2238
2238
  ));
2239
2239
  }
2240
- }), Ma = K(Ra), Ta = [
2240
+ }), Ta = K(Ra), Ma = [
2241
2241
  {
2242
2242
  id: "button",
2243
2243
  icon: {
@@ -2283,7 +2283,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2283
2283
  title: {},
2284
2284
  text: {},
2285
2285
  icon: { default: () => qa },
2286
- buttons: { default: () => Ta },
2286
+ buttons: { default: () => Ma },
2287
2287
  attach: { default: "body" },
2288
2288
  inline: { type: Boolean },
2289
2289
  backdropBlur: { type: Boolean, default: !0 },
@@ -2299,18 +2299,18 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2299
2299
  }),
2300
2300
  emits: /* @__PURE__ */ be(["enter", "leave"], ["update:modelValue"]),
2301
2301
  setup(e, { emit: n }) {
2302
- const t = e, o = n, l = Me(e, "modelValue"), a = q(""), i = q(""), r = w(() => ["q-dialog", t.class]), c = w(() => `q-overlay--${t.size}`);
2303
- function d() {
2302
+ const t = e, o = n, l = Te(e, "modelValue"), a = q(""), i = q(""), r = w(() => ["q-dialog", t.class]), c = w(() => `q-overlay--${t.size}`);
2303
+ function u() {
2304
2304
  l.value = !1;
2305
2305
  }
2306
- function u(b) {
2307
- var y, _;
2306
+ function d(b) {
2307
+ var h, _;
2308
2308
  if (b.action) {
2309
- if ((y = t.input) != null && y.validator && (i.value = t.input.validator(f(a)), f(i)))
2309
+ if ((h = t.input) != null && h.validator && (i.value = t.input.validator(f(a)), f(i)))
2310
2310
  return;
2311
2311
  (_ = b.action) == null || _.call(b, f(a));
2312
2312
  }
2313
- d();
2313
+ u();
2314
2314
  }
2315
2315
  function s() {
2316
2316
  o("enter");
@@ -2318,10 +2318,10 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2318
2318
  function v() {
2319
2319
  o("leave");
2320
2320
  }
2321
- return (b, y) => (h(), Z(f(Ma), {
2321
+ return (b, h) => (y(), Z(f(Ta), {
2322
2322
  id: t.id,
2323
2323
  modelValue: l.value,
2324
- "onUpdate:modelValue": y[1] || (y[1] = (_) => l.value = _),
2324
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => l.value = _),
2325
2325
  "backdrop-class": "q-dialog__underlay",
2326
2326
  "scroll-lock": "",
2327
2327
  persistent: "",
@@ -2334,31 +2334,31 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2334
2334
  onLeave: v
2335
2335
  }, {
2336
2336
  default: R(() => [
2337
- T(
2337
+ M(
2338
2338
  "div",
2339
2339
  {
2340
2340
  class: X(r.value)
2341
2341
  },
2342
2342
  [
2343
- t.title || b.$slots.header || b.$slots["header.prepend"] || b.$slots["header.append"] ? (h(), x("div", Fa, [
2343
+ t.title || b.$slots.header || b.$slots["header.prepend"] || b.$slots["header.append"] ? (y(), x("div", Fa, [
2344
2344
  F(b.$slots, "header", {}, () => [
2345
2345
  F(b.$slots, "header.prepend"),
2346
- t.title ? (h(), x(
2346
+ t.title ? (y(), x(
2347
2347
  "span",
2348
2348
  Pa,
2349
2349
  re(t.title),
2350
2350
  1
2351
2351
  /* TEXT */
2352
- )) : O("v-if", !0),
2352
+ )) : U("v-if", !0),
2353
2353
  F(b.$slots, "header.append")
2354
2354
  ])
2355
- ])) : O("v-if", !0),
2356
- t.icon || t.text || b.$slots.body ? (h(), x("div", Oa, [
2355
+ ])) : U("v-if", !0),
2356
+ t.icon || t.text || b.$slots.body ? (y(), x("div", Oa, [
2357
2357
  F(b.$slots, "body", {}, () => {
2358
2358
  var _;
2359
2359
  return [
2360
2360
  F(b.$slots, "body.icon", {}, () => [
2361
- t.icon ? (h(), x("span", Ua, [
2361
+ t.icon ? (y(), x("span", Ua, [
2362
2362
  D(
2363
2363
  f(Y),
2364
2364
  Re(je(t.icon)),
@@ -2366,13 +2366,13 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2366
2366
  16
2367
2367
  /* FULL_PROPS */
2368
2368
  )
2369
- ])) : O("v-if", !0)
2369
+ ])) : U("v-if", !0)
2370
2370
  ]),
2371
- T("div", Ga, [
2372
- t.html ? (h(), x("div", {
2371
+ M("div", Ga, [
2372
+ t.html ? (y(), x("div", {
2373
2373
  key: 0,
2374
2374
  innerHTML: t.text
2375
- }, null, 8, ja)) : (h(), x(
2375
+ }, null, 8, ja)) : (y(), x(
2376
2376
  "div",
2377
2377
  za,
2378
2378
  re(t.text),
@@ -2380,19 +2380,19 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2380
2380
  /* TEXT */
2381
2381
  ))
2382
2382
  ]),
2383
- t.input ? (h(), x("div", Va, [
2383
+ t.input ? (y(), x("div", Va, [
2384
2384
  D(f(Ht), {
2385
2385
  modelValue: a.value,
2386
- "onUpdate:modelValue": y[0] || (y[0] = (j) => a.value = j),
2386
+ "onUpdate:modelValue": h[0] || (h[0] = (j) => a.value = j),
2387
2387
  invalid: !!i.value,
2388
2388
  placeholder: (_ = t.input) == null ? void 0 : _.placeholder,
2389
2389
  size: "block"
2390
2390
  }, {
2391
2391
  extras: R(() => [
2392
- i.value ? (h(), Z(f(Y), {
2392
+ i.value ? (y(), Z(f(Y), {
2393
2393
  key: 0,
2394
2394
  icon: "exclamation-sign"
2395
- })) : O("v-if", !0),
2395
+ })) : U("v-if", !0),
2396
2396
  Qe(
2397
2397
  " " + re(i.value),
2398
2398
  1
@@ -2402,31 +2402,31 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2402
2402
  _: 1
2403
2403
  /* STABLE */
2404
2404
  }, 8, ["modelValue", "invalid", "placeholder"])
2405
- ])) : O("v-if", !0),
2405
+ ])) : U("v-if", !0),
2406
2406
  F(b.$slots, "body.append")
2407
2407
  ];
2408
2408
  })
2409
- ])) : O("v-if", !0),
2410
- t.buttons || b.$slots["footer.append"] ? (h(), x("div", Ha, [
2411
- t.buttons ? (h(), x("span", Za, [
2412
- (h(!0), x(
2409
+ ])) : U("v-if", !0),
2410
+ t.buttons || b.$slots["footer.append"] ? (y(), x("div", Ha, [
2411
+ t.buttons ? (y(), x("span", Za, [
2412
+ (y(!0), x(
2413
2413
  ve,
2414
2414
  null,
2415
- qe(t.buttons, (_) => (h(), Z(f(oe), de({ ref_for: !0 }, _.props, {
2415
+ qe(t.buttons, (_) => (y(), Z(f(oe), pe({ ref_for: !0 }, _.props, {
2416
2416
  key: _.id,
2417
- onClick: () => u(_)
2417
+ onClick: () => d(_)
2418
2418
  }), {
2419
2419
  default: R(() => [
2420
- _.icon ? (h(), Z(
2420
+ _.icon ? (y(), Z(
2421
2421
  f(Y),
2422
- de({
2422
+ pe({
2423
2423
  key: 0,
2424
2424
  ref_for: !0
2425
2425
  }, _.icon),
2426
2426
  null,
2427
2427
  16
2428
2428
  /* FULL_PROPS */
2429
- )) : O("v-if", !0)
2429
+ )) : U("v-if", !0)
2430
2430
  ]),
2431
2431
  _: 2
2432
2432
  /* DYNAMIC */
@@ -2434,14 +2434,14 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2434
2434
  128
2435
2435
  /* KEYED_FRAGMENT */
2436
2436
  ))
2437
- ])) : O("v-if", !0),
2437
+ ])) : U("v-if", !0),
2438
2438
  F(b.$slots, "footer.append")
2439
- ])) : O("v-if", !0),
2440
- t.dismissible ? (h(), Z(f(oe), {
2439
+ ])) : U("v-if", !0),
2440
+ t.dismissible ? (y(), Z(f(oe), {
2441
2441
  key: 3,
2442
2442
  class: "q-dialog__close",
2443
2443
  variant: "text",
2444
- onClick: d
2444
+ onClick: u
2445
2445
  }, {
2446
2446
  default: R(() => [
2447
2447
  D(
@@ -2454,7 +2454,7 @@ const Ba = ["id"], La = ["role"], Ra = /* @__PURE__ */ V({
2454
2454
  ]),
2455
2455
  _: 1
2456
2456
  /* STABLE */
2457
- })) : O("v-if", !0)
2457
+ })) : U("v-if", !0)
2458
2458
  ],
2459
2459
  2
2460
2460
  /* CLASS */
@@ -2492,16 +2492,16 @@ const Qa = /* @__PURE__ */ V({
2492
2492
  function i(r) {
2493
2493
  a(r), o("leave", r);
2494
2494
  }
2495
- return (r, c) => (h(!0), x(
2495
+ return (r, c) => (y(!0), x(
2496
2496
  ve,
2497
2497
  null,
2498
- qe(f(l), (d) => (h(), Z(f(Kt), de({
2499
- key: d.id,
2498
+ qe(f(l), (u) => (y(), Z(f(Kt), pe({
2499
+ key: u.id,
2500
2500
  ref_for: !0
2501
- }, d.props, {
2501
+ }, u.props, {
2502
2502
  "model-value": "",
2503
2503
  inline: t.inline,
2504
- onLeave: () => i(d.id)
2504
+ onLeave: () => i(u.id)
2505
2505
  }), null, 16, ["inline", "onLeave"]))),
2506
2506
  128
2507
2507
  /* KEYED_FRAGMENT */
@@ -2535,21 +2535,21 @@ const Ya = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2535
2535
  }),
2536
2536
  emits: ["update:modelValue"],
2537
2537
  setup(e) {
2538
- const n = e, t = Me(e, "modelValue"), o = w({
2538
+ const n = e, t = Te(e, "modelValue"), o = w({
2539
2539
  get: () => t.value,
2540
- set: (d) => {
2541
- const u = n.maxLength;
2542
- t.value = u ? d == null ? void 0 : d.slice(0, u) : d;
2540
+ set: (u) => {
2541
+ const d = n.maxLength;
2542
+ t.value = d ? u == null ? void 0 : u.slice(0, d) : u;
2543
2543
  }
2544
2544
  });
2545
- se(t, (d) => o.value = d, { immediate: !0 });
2545
+ se(t, (u) => o.value = u, { immediate: !0 });
2546
2546
  const l = vt(n.id), a = w(
2547
2547
  () => n.readonly || n.disabled ? void 0 : n.placeholder
2548
2548
  ), i = w(() => ({ input: n.autosize ? c : null })), r = q(), { triggerResize: c } = Co({
2549
2549
  element: w(() => n.autosize ? r.value : void 0),
2550
2550
  styleProp: "minHeight"
2551
2551
  });
2552
- return (d, u) => (h(), Z(f(Vt), {
2552
+ return (u, d) => (y(), Z(f(Vt), {
2553
2553
  class: X(["q-text-area", n.class]),
2554
2554
  for: f(l),
2555
2555
  label: n.label,
@@ -2559,17 +2559,17 @@ const Ya = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2559
2559
  required: n.required
2560
2560
  }, Rt({
2561
2561
  "label.prepend": R(() => [
2562
- F(d.$slots, "label.prepend")
2562
+ F(u.$slots, "label.prepend")
2563
2563
  ]),
2564
2564
  "label.append": R(() => [
2565
- F(d.$slots, "label.append")
2565
+ F(u.$slots, "label.append")
2566
2566
  ]),
2567
2567
  default: R(() => [
2568
- Mt(T("textarea", de({
2568
+ Tt(M("textarea", pe({
2569
2569
  id: f(l),
2570
2570
  ref_key: "textareaRef",
2571
2571
  ref: r,
2572
- "onUpdate:modelValue": u[0] || (u[0] = (s) => o.value = s),
2572
+ "onUpdate:modelValue": d[0] || (d[0] = (s) => o.value = s),
2573
2573
  class: "q-text-area__input",
2574
2574
  required: n.required,
2575
2575
  placeholder: a.value,
@@ -2580,31 +2580,31 @@ const Ya = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2580
2580
  cols: n.cols,
2581
2581
  resize: n.resize,
2582
2582
  wrap: n.wrap
2583
- }, d.$attrs, fn(i.value, !0)), null, 16, Ya), [
2583
+ }, u.$attrs, fn(i.value, !0)), null, 16, Ya), [
2584
2584
  [vn, o.value]
2585
2585
  ])
2586
2586
  ]),
2587
2587
  _: 2
2588
2588
  /* DYNAMIC */
2589
2589
  }, [
2590
- d.$slots.prepend ? {
2590
+ u.$slots.prepend ? {
2591
2591
  name: "prepend",
2592
2592
  fn: R(() => [
2593
- F(d.$slots, "prepend")
2593
+ F(u.$slots, "prepend")
2594
2594
  ]),
2595
2595
  key: "0"
2596
2596
  } : void 0,
2597
- d.$slots.append ? {
2597
+ u.$slots.append ? {
2598
2598
  name: "append",
2599
2599
  fn: R(() => [
2600
- F(d.$slots, "append")
2600
+ F(u.$slots, "append")
2601
2601
  ]),
2602
2602
  key: "1"
2603
2603
  } : void 0,
2604
- d.$slots.extras ? {
2604
+ u.$slots.extras ? {
2605
2605
  name: "extras",
2606
2606
  fn: R(() => [
2607
- F(d.$slots, "extras")
2607
+ F(u.$slots, "extras")
2608
2608
  ]),
2609
2609
  key: "2"
2610
2610
  } : void 0
@@ -2645,7 +2645,7 @@ function ke() {
2645
2645
  };
2646
2646
  }
2647
2647
  async function Ct(e, n) {
2648
- var d, u, s, v, b, y, _;
2648
+ var u, d, s, v, b, h, _;
2649
2649
  const t = new AbortController(), o = t.signal, a = (await Nt({
2650
2650
  ...e,
2651
2651
  headers: {
@@ -2662,46 +2662,46 @@ async function Ct(e, n) {
2662
2662
  for (; ; ) {
2663
2663
  const { done: j, value: H } = await i.read();
2664
2664
  if (j) {
2665
- (d = n.onDone) == null || d.call(n);
2665
+ (u = n.onDone) == null || u.call(n);
2666
2666
  break;
2667
2667
  }
2668
- const W = r.decode(H, { stream: !0 });
2669
- c += W;
2670
- const E = c.split(/\n\n+/);
2671
- c = E.pop() || "";
2672
- for (const P of E) {
2673
- const J = P.trim().split(`
2668
+ const J = r.decode(H, { stream: !0 });
2669
+ c += J;
2670
+ const A = c.split(/\n\n+/);
2671
+ c = A.pop() || "";
2672
+ for (const P of A) {
2673
+ const Q = P.trim().split(`
2674
2674
  `);
2675
2675
  let B = "", $ = "";
2676
- for (const M of J)
2677
- M.startsWith("event:") ? B = M.replace("event:", "").trim() : M.startsWith("data:") && ($ = M.replace("data:", "").trim());
2676
+ for (const T of Q)
2677
+ T.startsWith("event:") ? B = T.replace("event:", "").trim() : T.startsWith("data:") && ($ = T.replace("data:", "").trim());
2678
2678
  if (B || (B = "message"), !!$)
2679
2679
  try {
2680
- const M = JSON.parse($);
2680
+ const T = JSON.parse($);
2681
2681
  switch (B) {
2682
2682
  case "message":
2683
- (u = n.onMessage) == null || u.call(n, M.value);
2683
+ (d = n.onMessage) == null || d.call(n, T.value);
2684
2684
  break;
2685
2685
  case "tool-status":
2686
2686
  (s = n.onToolStatus) == null || s.call(
2687
2687
  n,
2688
- M
2688
+ T
2689
2689
  );
2690
2690
  break;
2691
2691
  case "error":
2692
- (v = n.onError) == null || v.call(n, new Error(M.value));
2692
+ (v = n.onError) == null || v.call(n, new Error(T.value));
2693
2693
  break;
2694
2694
  case "field_metadata":
2695
- (b = n.onFieldMetadata) == null || b.call(n, M);
2695
+ (b = n.onFieldMetadata) == null || b.call(n, T);
2696
2696
  break;
2697
2697
  case "done":
2698
- (y = n.onDone) == null || y.call(n);
2698
+ (h = n.onDone) == null || h.call(n);
2699
2699
  break;
2700
2700
  default:
2701
2701
  console.warn(`Unknown event type: ${B}`);
2702
2702
  }
2703
- } catch (M) {
2704
- (_ = n.onError) == null || _.call(n, M), console.error("Error processing event:", M);
2703
+ } catch (T) {
2704
+ (_ = n.onError) == null || _.call(n, T), console.error("Error processing event:", T);
2705
2705
  continue;
2706
2706
  } finally {
2707
2707
  j && (i.releaseLock(), t.abort());
@@ -2711,11 +2711,11 @@ async function Ct(e, n) {
2711
2711
  }
2712
2712
  function en(e) {
2713
2713
  const n = q(!1), t = q(null);
2714
- async function o(u) {
2714
+ async function o(d) {
2715
2715
  n.value = !0, t.value = null;
2716
2716
  try {
2717
2717
  return { data: (await Nt({
2718
- ...u,
2718
+ ...d,
2719
2719
  baseURL: e
2720
2720
  })).data, error: null };
2721
2721
  } catch (s) {
@@ -2726,26 +2726,26 @@ function en(e) {
2726
2726
  }
2727
2727
  return { data: null, error: new Error("Unknown error occurred in baseRequest") };
2728
2728
  }
2729
- async function l(u, s, v, b) {
2729
+ async function l(d, s, v, b) {
2730
2730
  return await o({
2731
2731
  method: "POST",
2732
2732
  url: "/prompt/load",
2733
2733
  data: {
2734
- username: u,
2734
+ username: d,
2735
2735
  project: s,
2736
2736
  agentID: v,
2737
2737
  formId: b
2738
2738
  }
2739
2739
  });
2740
2740
  }
2741
- async function a(u, s, v, b, y) {
2741
+ async function a(d, s, v, b, h) {
2742
2742
  n.value = !0;
2743
2743
  try {
2744
2744
  return await Ct(
2745
2745
  {
2746
2746
  method: "POST",
2747
2747
  url: `${e}/prompt/submit`,
2748
- data: u
2748
+ data: d
2749
2749
  },
2750
2750
  {
2751
2751
  onMessage: (_) => {
@@ -2755,7 +2755,7 @@ function en(e) {
2755
2755
  v == null || v(_);
2756
2756
  },
2757
2757
  onDone: () => {
2758
- n.value = !1, y == null || y();
2758
+ n.value = !1, h == null || h();
2759
2759
  }
2760
2760
  }
2761
2761
  );
@@ -2763,16 +2763,16 @@ function en(e) {
2763
2763
  throw n.value = !1, b == null || b(_), console.error("Error in sendPrompt:", _), _;
2764
2764
  }
2765
2765
  }
2766
- async function i(u) {
2766
+ async function i(d) {
2767
2767
  return await o({
2768
2768
  method: "POST",
2769
2769
  url: "/prompt/cancel-execution",
2770
2770
  data: {
2771
- sessionId: u
2771
+ sessionId: d
2772
2772
  }
2773
2773
  });
2774
2774
  }
2775
- async function r(u, s, v, b) {
2775
+ async function r(d, s, v, b) {
2776
2776
  n.value = !0;
2777
2777
  try {
2778
2778
  return await Ct(
@@ -2780,38 +2780,39 @@ function en(e) {
2780
2780
  method: "POST",
2781
2781
  url: `${e}/get-job-result`,
2782
2782
  data: {
2783
- jobId: u
2783
+ jobId: d
2784
2784
  }
2785
2785
  },
2786
2786
  {
2787
- onMessage: (y) => s(y),
2788
- onFieldMetadata: (y) => v(y),
2787
+ onMessage: (h) => s(h),
2788
+ onFieldMetadata: (h) => v(h),
2789
2789
  onDone: () => n.value = !1
2790
2790
  }
2791
2791
  );
2792
- } catch (y) {
2793
- t.value = y, b == null || b(y), n.value = !1;
2792
+ } catch (h) {
2793
+ t.value = h, b == null || b(h), n.value = !1;
2794
2794
  }
2795
2795
  }
2796
- async function c(u, s, v, b) {
2796
+ async function c(d, s, v, b, h) {
2797
2797
  return await o({
2798
2798
  method: "POST",
2799
2799
  url: "/prompt/clear",
2800
2800
  data: {
2801
- username: u,
2801
+ username: d,
2802
2802
  project: s,
2803
- agentID: v,
2804
- formId: b
2803
+ agentId: v,
2804
+ formId: b,
2805
+ sessionId: h
2805
2806
  }
2806
2807
  });
2807
2808
  }
2808
- async function d(u, s, v) {
2809
+ async function u(d, s, v) {
2809
2810
  return await o({
2810
2811
  method: "POST",
2811
2812
  url: "/prompt/feedback",
2812
2813
  data: {
2813
2814
  messageSessionID: v,
2814
- feedbackValue: u,
2815
+ feedbackValue: d,
2815
2816
  feedbackComment: s
2816
2817
  }
2817
2818
  });
@@ -2824,7 +2825,7 @@ function en(e) {
2824
2825
  getJobResultData: r,
2825
2826
  sendPrompt: a,
2826
2827
  cancelExecution: i,
2827
- handleFeedback: d
2828
+ handleFeedback: u
2828
2829
  };
2829
2830
  }
2830
2831
  const el = ["innerHTML"], tl = {
@@ -2848,51 +2849,51 @@ const el = ["innerHTML"], tl = {
2848
2849
  ...n.options ?? {}
2849
2850
  })
2850
2851
  );
2851
- n.plugins && n.plugins.forEach((u) => t.value.use(u));
2852
+ n.plugins && n.plugins.forEach((d) => t.value.use(d));
2852
2853
  const o = w(() => t.value.render(n.source)), l = w(() => n.source.includes('data-type="execution-plan"')), a = w(() => {
2853
2854
  if (!l.value) return "";
2854
2855
  const s = n.source.split(/\n|<br>/).find((v) => v.includes('data-type="execution-plan"'));
2855
2856
  return s ? t.value.render(s) : "";
2856
2857
  }), i = w(() => {
2857
2858
  if (!l.value) return "";
2858
- const u = n.source.split(/\n|<br>/), s = u.findIndex((b) => b.includes('data-type="execution-plan"'));
2859
+ const d = n.source.split(/\n|<br>/), s = d.findIndex((b) => b.includes('data-type="execution-plan"'));
2859
2860
  if (s === -1) return "";
2860
- const v = u.slice(s + 1).join(`
2861
+ const v = d.slice(s + 1).join(`
2861
2862
  `);
2862
2863
  return t.value.render(v);
2863
2864
  }), r = w(() => n.source.includes('data-type="execution-progress"')), c = w(() => {
2864
2865
  if (!r.value) return "";
2865
2866
  const s = n.source.split(/\n|<br>/).find((v) => v.includes('data-type="execution-progress"'));
2866
2867
  return s ? t.value.render(s) : "";
2867
- }), d = w(() => {
2868
+ }), u = w(() => {
2868
2869
  if (!r.value) return "";
2869
- const u = n.source.split(/\n|<br>/), s = u.findIndex(
2870
+ const d = n.source.split(/\n|<br>/), s = d.findIndex(
2870
2871
  (b) => b.includes('data-type="execution-progress"')
2871
2872
  );
2872
2873
  if (s === -1) return "";
2873
- const v = u.slice(s + 1).join(`
2874
+ const v = d.slice(s + 1).join(`
2874
2875
  `);
2875
2876
  return t.value.render(v);
2876
2877
  });
2877
- return (u, s) => !l.value && !r.value ? (h(), x("div", {
2878
+ return (d, s) => !l.value && !r.value ? (y(), x("div", {
2878
2879
  key: 0,
2879
2880
  class: "markdown-renderer",
2880
2881
  innerHTML: o.value
2881
- }, null, 8, el)) : l.value ? (h(), x("div", tl, [
2882
- T("div", { innerHTML: a.value }, null, 8, nl),
2883
- i.value ? (h(), x("div", {
2882
+ }, null, 8, el)) : l.value ? (y(), x("div", tl, [
2883
+ M("div", { innerHTML: a.value }, null, 8, nl),
2884
+ i.value ? (y(), x("div", {
2884
2885
  key: 0,
2885
2886
  class: "markdown-renderer__execution-plan-content",
2886
2887
  innerHTML: i.value
2887
- }, null, 8, ol)) : O("", !0)
2888
- ])) : r.value ? (h(), x("div", al, [
2889
- T("div", { innerHTML: c.value }, null, 8, ll),
2890
- d.value ? (h(), x("div", {
2888
+ }, null, 8, ol)) : U("", !0)
2889
+ ])) : r.value ? (y(), x("div", al, [
2890
+ M("div", { innerHTML: c.value }, null, 8, ll),
2891
+ u.value ? (y(), x("div", {
2891
2892
  key: 0,
2892
2893
  class: "markdown-renderer__execution-progress-content",
2893
- innerHTML: d.value
2894
- }, null, 8, il)) : O("", !0)
2895
- ])) : O("", !0);
2894
+ innerHTML: u.value
2895
+ }, null, 8, il)) : U("", !0)
2896
+ ])) : U("", !0);
2896
2897
  }
2897
2898
  });
2898
2899
  function tn(e, n) {
@@ -2921,38 +2922,38 @@ const sl = ["data-testid"], cl = { class: "q-field-preview__toolbar" }, ul = { c
2921
2922
  },
2922
2923
  emits: ["apply", "regenerate"],
2923
2924
  setup(e, { emit: n }) {
2924
- const t = e, o = n, l = ke(), a = q(t.applied), i = q(!1), r = w(() => t.disabled || a.value), c = w(() => t.disabled || i.value), d = w(() => t.type === "text" || t.type === "multiline_text" ? Ge : "div"), u = w(() => {
2925
- const y = {};
2926
- return d.value === Ge ? y.source = t.text : y.innerHTML = t.text, y;
2925
+ const t = e, o = n, l = ke(), a = q(t.applied), i = q(!1), r = w(() => t.disabled || a.value), c = w(() => t.disabled || i.value), u = w(() => t.type === "text" || t.type === "multiline_text" ? Ge : "div"), d = w(() => {
2926
+ const h = {};
2927
+ return u.value === Ge ? h.source = t.text : h.innerHTML = t.text, h;
2927
2928
  }), s = w(() => {
2928
- const y = ["q-field-preview__content"];
2929
- return d.value !== Ge && y.push("preserve-whitespace"), y;
2929
+ const h = ["q-field-preview__content"];
2930
+ return u.value !== Ge && h.push("preserve-whitespace"), h;
2930
2931
  });
2931
2932
  function v() {
2932
2933
  if (a.value) return;
2933
2934
  a.value = !0;
2934
- const y = tn(t.type, t.text);
2935
- o("apply", y);
2935
+ const h = tn(t.type, t.text);
2936
+ o("apply", h);
2936
2937
  }
2937
2938
  function b() {
2938
2939
  i.value || (i.value = !0, o("regenerate", t.name));
2939
2940
  }
2940
- return (y, _) => (h(), x("div", {
2941
+ return (h, _) => (y(), x("div", {
2941
2942
  class: "q-field-preview",
2942
2943
  "data-testid": f(rl)(t.name)
2943
2944
  }, [
2944
- T("div", cl, [
2945
- T("span", null, [
2945
+ M("div", cl, [
2946
+ M("span", null, [
2946
2947
  Qe(re(f(l).suggestionsForField) + " ", 1),
2947
- T("b", null, re(t.name), 1)
2948
+ M("b", null, re(t.name), 1)
2948
2949
  ])
2949
2950
  ]),
2950
- T("div", {
2951
+ M("div", {
2951
2952
  class: X(s.value)
2952
2953
  }, [
2953
- (h(), Z(Bt(d.value), Re(je(u.value)), null, 16))
2954
+ (y(), Z(Bt(u.value), Re(je(d.value)), null, 16))
2954
2955
  ], 2),
2955
- T("div", ul, [
2956
+ M("div", ul, [
2956
2957
  D(f(jt), { borderless: "" }, {
2957
2958
  default: R(() => [
2958
2959
  D(f(oe), {
@@ -2992,13 +2993,13 @@ const sl = ["data-testid"], cl = { class: "q-field-preview__toolbar" }, ul = { c
2992
2993
  },
2993
2994
  setup(e) {
2994
2995
  const n = e, t = [1, 2, 3], o = ke(), l = w(() => n.text || o.generatingResponse);
2995
- return (a, i) => (h(), x("div", pl, [
2996
- T("span", {
2996
+ return (a, i) => (y(), x("div", pl, [
2997
+ M("span", {
2997
2998
  class: "generating-text",
2998
2999
  innerHTML: l.value
2999
3000
  }, null, 8, fl),
3000
- T("div", vl, [
3001
- (h(), x(ve, null, qe(t, (r, c) => T("span", {
3001
+ M("div", vl, [
3002
+ (y(), x(ve, null, qe(t, (r, c) => M("span", {
3002
3003
  key: c,
3003
3004
  class: "dot",
3004
3005
  style: Ee({ animationDelay: c * 0.2 + "s" })
@@ -3041,106 +3042,106 @@ const sl = ["data-testid"], cl = { class: "q-field-preview__toolbar" }, ul = { c
3041
3042
  emits: ["apply-fields", "regenerate", "send-message", "cancel-execution"],
3042
3043
  setup(e, { emit: n }) {
3043
3044
  const t = e, o = n, l = ke(), { handleFeedback: a } = en(t.apiEndpoint), i = w(() => t.sender === "bot" && !Object.values(l || {}).includes(t.message || "") && !t.isWelcomeMessage), r = w(() => {
3044
- var E;
3045
- return ((E = t.file) == null ? void 0 : E.fileData.type.startsWith("image/")) ?? !1;
3045
+ var A;
3046
+ return ((A = t.file) == null ? void 0 : A.fileData.type.startsWith("image/")) ?? !1;
3046
3047
  }), c = w(
3047
3048
  () => t.sender === "bot" ? t.chatbotImage : t.userImage
3048
- ), d = w(() => {
3049
+ ), u = w(() => {
3049
3050
  var P;
3050
- const E = (P = t.message) == null ? void 0 : P.match(/<span data-type="tool-calling">(.*?)<\/span>/);
3051
- return E ? E[1] : "";
3052
- }), u = w(
3051
+ const A = (P = t.message) == null ? void 0 : P.match(/<span data-type="tool-calling">(.*?)<\/span>/);
3052
+ return A ? A[1] : "";
3053
+ }), d = w(
3053
3054
  () => {
3054
- var E;
3055
- return ((E = t.message) == null ? void 0 : E.replace(/<span data-type="tool-calling">.*?<\/span>/, "")) ?? "";
3055
+ var A;
3056
+ return ((A = t.message) == null ? void 0 : A.replace(/<span data-type="tool-calling">.*?<\/span>/, "")) ?? "";
3056
3057
  }
3057
3058
  ), s = w(() => {
3058
- var P, J;
3059
- return (P = t.file) != null && P.fileData ? ((J = t.file.fileData.name.split(".").pop()) == null ? void 0 : J.toUpperCase()) ?? "" : "";
3059
+ var P, Q;
3060
+ return (P = t.file) != null && P.fileData ? ((Q = t.file.fileData.name.split(".").pop()) == null ? void 0 : Q.toUpperCase()) ?? "" : "";
3060
3061
  }), v = w(() => {
3061
- var E;
3062
- return ((E = t.message) == null ? void 0 : E.includes('data-type="execution-plan"')) ?? !1;
3062
+ var A;
3063
+ return ((A = t.message) == null ? void 0 : A.includes('data-type="execution-plan"')) ?? !1;
3063
3064
  });
3064
3065
  function b() {
3065
3066
  o("send-message", l.approveProceedPlan);
3066
3067
  }
3067
- function y() {
3068
+ function h() {
3068
3069
  o("cancel-execution");
3069
3070
  }
3070
3071
  function _() {
3071
3072
  t.message && navigator.clipboard.writeText(t.message).then(() => {
3072
3073
  console.log("Response copied to clipboard");
3073
- }).catch((E) => {
3074
- console.error("Failed to copy response: ", E);
3074
+ }).catch((A) => {
3075
+ console.error("Failed to copy response: ", A);
3075
3076
  });
3076
3077
  }
3077
- function j(E, P) {
3078
- o("apply-fields", [{ id: P.id, text: E }]);
3078
+ function j(A, P) {
3079
+ o("apply-fields", [{ id: P.id, text: A }]);
3079
3080
  }
3080
3081
  function H() {
3081
3082
  if (!t.fields || t.fields.length === 0) return;
3082
- const E = t.fields.map((P) => ({
3083
+ const A = t.fields.map((P) => ({
3083
3084
  id: P.id,
3084
3085
  text: tn(P.type, P.text)
3085
3086
  }));
3086
- o("apply-fields", E);
3087
+ o("apply-fields", A);
3087
3088
  }
3088
- function W(E, P) {
3089
- E === null || P === null || !t.sessionID || a(E, P, t.sessionID);
3089
+ function J(A, P) {
3090
+ A === null || P === null || !t.sessionID || a(A, P, t.sessionID);
3090
3091
  }
3091
- return (E, P) => {
3092
- var J, B, $;
3093
- return h(), x("div", gl, [
3092
+ return (A, P) => {
3093
+ var Q, B, $;
3094
+ return y(), x("div", gl, [
3094
3095
  D(f(Y), {
3095
3096
  type: "img",
3096
3097
  icon: c.value,
3097
3098
  alt: f(l).senderImage,
3098
3099
  class: "q-chatbot__profile"
3099
3100
  }, null, 8, ["icon", "alt"]),
3100
- T("div", ml, [
3101
- r.value ? (h(), x("div", bl, [
3102
- T("img", {
3103
- src: (J = t.file) == null ? void 0 : J.previewUrl,
3101
+ M("div", ml, [
3102
+ r.value ? (y(), x("div", bl, [
3103
+ M("img", {
3104
+ src: (Q = t.file) == null ? void 0 : Q.previewUrl,
3104
3105
  alt: f(l).imagePreview
3105
3106
  }, null, 8, hl)
3106
- ])) : (B = t.file) != null && B.fileData && !r.value ? (h(), x("div", yl, [
3107
- T("div", wl, [
3107
+ ])) : (B = t.file) != null && B.fileData && !r.value ? (y(), x("div", yl, [
3108
+ M("div", wl, [
3108
3109
  D(f(Y), {
3109
3110
  icon: "file",
3110
3111
  class: "q-chatbot__file-icon"
3111
3112
  })
3112
3113
  ]),
3113
- T("div", _l, [
3114
- T("span", xl, re(($ = t.file) == null ? void 0 : $.fileData.name), 1),
3115
- T("span", kl, re(s.value), 1)
3114
+ M("div", _l, [
3115
+ M("span", xl, re(($ = t.file) == null ? void 0 : $.fileData.name), 1),
3116
+ M("span", kl, re(s.value), 1)
3116
3117
  ])
3117
- ])) : O("", !0),
3118
- T("div", $l, [
3119
- E.loading ? (h(), Z(St, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (h(!0), x(ve, { key: 1 }, qe(t.fields, (M, ue) => (h(), Z(f(dl), {
3118
+ ])) : U("", !0),
3119
+ M("div", $l, [
3120
+ A.loading ? (y(), Z(St, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (y(!0), x(ve, { key: 1 }, qe(t.fields, (T, ue) => (y(), Z(f(dl), {
3120
3121
  key: ue,
3121
3122
  class: "q-chatbot__text",
3122
- text: M.text || "",
3123
- name: M.name,
3124
- type: M.type,
3125
- disabled: E.loading,
3126
- onRegenerate: () => o("regenerate", M.name),
3127
- onApply: (ie) => j(ie, M)
3128
- }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (h(), x(ve, { key: 2 }, [
3129
- t.sender === "bot" ? (h(), Z(f(Ge), {
3123
+ text: T.text || "",
3124
+ name: T.name,
3125
+ type: T.type,
3126
+ disabled: A.loading,
3127
+ onRegenerate: () => o("regenerate", T.name),
3128
+ onApply: (ie) => j(ie, T)
3129
+ }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (y(), x(ve, { key: 2 }, [
3130
+ t.sender === "bot" ? (y(), Z(f(Ge), {
3130
3131
  key: 0,
3131
3132
  class: "q-chatbot__text",
3132
- source: u.value || ""
3133
- }, null, 8, ["source"])) : (h(), x("div", Al, re(t.message), 1))
3133
+ source: d.value || ""
3134
+ }, null, 8, ["source"])) : (y(), x("div", Al, re(t.message), 1))
3134
3135
  ], 64))
3135
3136
  ]),
3136
- d.value ? (h(), x("div", El, [
3137
+ u.value ? (y(), x("div", El, [
3137
3138
  D(St, {
3138
3139
  class: "q-chatbot__text",
3139
- text: d.value
3140
+ text: u.value
3140
3141
  }, null, 8, ["text"])
3141
- ])) : O("", !0)
3142
+ ])) : U("", !0)
3142
3143
  ]),
3143
- D(f(Tl), {
3144
+ D(f(Ml), {
3144
3145
  "show-buttons": i.value,
3145
3146
  loading: t.loading,
3146
3147
  "date-format": t.dateFormat,
@@ -3150,10 +3151,10 @@ const sl = ["data-testid"], cl = { class: "q-field-preview__toolbar" }, ul = { c
3150
3151
  "show-cancel-execution": t.showCancelExecution,
3151
3152
  "cancel-execution-disabled": t.cancelExecutionDisabled,
3152
3153
  onCopyResponse: _,
3153
- onSubmitFeedback: W,
3154
+ onSubmitFeedback: J,
3154
3155
  onApplyAll: H,
3155
3156
  onApproveProceedPlan: b,
3156
- onCancelExecution: y
3157
+ onCancelExecution: h
3157
3158
  }, null, 8, ["show-buttons", "loading", "date-format", "is-last-message", "is-execution-plan", "is-streaming", "show-cancel-execution", "cancel-execution-disabled"])
3158
3159
  ]);
3159
3160
  };
@@ -3187,18 +3188,18 @@ function nn(e, n, t) {
3187
3188
  }
3188
3189
  const we = q([]), Oe = q(1);
3189
3190
  function on() {
3190
- function e(a, i, r, c, d) {
3191
- const u = {
3191
+ function e(a, i, r, c, u) {
3192
+ const d = {
3192
3193
  id: Oe.value++,
3193
3194
  message: a,
3194
3195
  date: /* @__PURE__ */ new Date(),
3195
3196
  sender: i || "bot",
3196
3197
  sessionID: c || nn(),
3197
3198
  file: r,
3198
- isWelcomeMessage: d,
3199
+ isWelcomeMessage: u,
3199
3200
  fields: []
3200
3201
  };
3201
- return we.value.push(u), u;
3202
+ return we.value.push(d), d;
3202
3203
  }
3203
3204
  function n() {
3204
3205
  return we.value.find((a) => a.id === Oe.value - 1);
@@ -3225,7 +3226,7 @@ function on() {
3225
3226
  const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3226
3227
  key: 0,
3227
3228
  class: "q-chatbot__feedback-buttons"
3228
- }, Ml = { class: "q-chatbot__sender" }, Tl = /* @__PURE__ */ V({
3229
+ }, Tl = { class: "q-chatbot__sender" }, Ml = /* @__PURE__ */ V({
3229
3230
  __name: "ChatBotMessageButtons",
3230
3231
  props: {
3231
3232
  loading: { type: Boolean },
@@ -3240,7 +3241,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3240
3241
  },
3241
3242
  emits: ["submit-feedback", "copy-response", "apply-all", "approve-proceed-plan", "cancel-execution"],
3242
3243
  setup(e, { emit: n }) {
3243
- const t = e, o = n, l = ke(), { getLastMessage: a } = on(), i = q(!1), r = q(""), c = q(null), d = q(!1), u = q(!1), s = q(!1), v = w(() => t.loading || d.value), b = w(() => u.value || !t.isLastMessage || t.loading || t.isStreaming), y = w(() => s.value || t.cancelExecutionDisabled || !t.isLastMessage || t.loading), _ = t.date || /* @__PURE__ */ new Date(), j = a(), H = w(() => j ? j.fields && j.fields.length > 1 : !1), W = w(() => t.isExecutionPlan), E = w(() => t.showCancelExecution), P = [
3244
+ const t = e, o = n, l = ke(), { getLastMessage: a } = on(), i = q(!1), r = q(""), c = q(null), u = q(!1), d = q(!1), s = q(!1), v = w(() => t.loading || u.value), b = w(() => d.value || !t.isLastMessage || t.loading || t.isStreaming), h = w(() => s.value || t.cancelExecutionDisabled || !t.isLastMessage || t.loading), _ = t.date || /* @__PURE__ */ new Date(), j = a(), H = w(() => j ? j.fields && j.fields.length > 1 : !1), J = w(() => t.isExecutionPlan), A = w(() => t.showCancelExecution), P = [
3244
3245
  {
3245
3246
  id: "confirm-btn",
3246
3247
  action: N,
@@ -3262,25 +3263,25 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3262
3263
  icon: "cancel"
3263
3264
  }
3264
3265
  }
3265
- ], J = w(() => t.dateFormat ? $(_, "HH:mm") : _.toLocaleString()), B = w(() => `${J.value}`);
3266
+ ], Q = w(() => t.dateFormat ? $(_, "HH:mm") : _.toLocaleString()), B = w(() => `${Q.value}`);
3266
3267
  function $(C, I) {
3267
- const z = C.getDate().toString().padStart(2, "0"), U = (C.getMonth() + 1).toString().padStart(2, "0"), ae = C.getFullYear().toString().padStart(2, "0"), ce = C.getHours().toString().padStart(2, "0"), te = C.getMinutes().toString().padStart(2, "0"), he = C.getSeconds().toString().padStart(2, "0");
3268
- return I.replace("dd", z).replace("MM", U).replace("yyyy", ae).replace("HH", ce).replace("mm", te).replace("ss", he);
3268
+ const z = C.getDate().toString().padStart(2, "0"), G = (C.getMonth() + 1).toString().padStart(2, "0"), ae = C.getFullYear().toString().padStart(2, "0"), ce = C.getHours().toString().padStart(2, "0"), te = C.getMinutes().toString().padStart(2, "0"), he = C.getSeconds().toString().padStart(2, "0");
3269
+ return I.replace("dd", z).replace("MM", G).replace("yyyy", ae).replace("HH", ce).replace("mm", te).replace("ss", he);
3269
3270
  }
3270
- function M(C) {
3271
+ function T(C) {
3271
3272
  i.value = !0, r.value = "", c.value = C;
3272
3273
  }
3273
3274
  function ue() {
3274
- M(0);
3275
+ T(0);
3275
3276
  }
3276
3277
  function ie() {
3277
- M(1);
3278
+ T(1);
3278
3279
  }
3279
3280
  function p() {
3280
- d.value || (d.value = !0, o("apply-all"));
3281
+ u.value || (u.value = !0, o("apply-all"));
3281
3282
  }
3282
3283
  function m() {
3283
- u.value || (u.value = !0, o("approve-proceed-plan"));
3284
+ d.value || (d.value = !0, o("approve-proceed-plan"));
3284
3285
  }
3285
3286
  function k() {
3286
3287
  s.value || (s.value = !0, o("cancel-execution"));
@@ -3291,7 +3292,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3291
3292
  function L() {
3292
3293
  o("copy-response");
3293
3294
  }
3294
- return (C, I) => (h(), x(ve, null, [
3295
+ return (C, I) => (y(), x(ve, null, [
3295
3296
  D(f(Kt), {
3296
3297
  modelValue: i.value,
3297
3298
  "onUpdate:modelValue": I[1] || (I[1] = (z) => i.value = z),
@@ -3299,7 +3300,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3299
3300
  buttons: P
3300
3301
  }, {
3301
3302
  body: R(() => [
3302
- T("div", Ll, re(f(l).commentDialogTitle), 1),
3303
+ M("div", Ll, re(f(l).commentDialogTitle), 1),
3303
3304
  D(f(Ht), {
3304
3305
  modelValue: r.value,
3305
3306
  "onUpdate:modelValue": I[0] || (I[0] = (z) => r.value = z),
@@ -3311,7 +3312,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3311
3312
  ]),
3312
3313
  _: 1
3313
3314
  }, 8, ["modelValue"]),
3314
- C.showButtons ? (h(), x("div", Rl, [
3315
+ C.showButtons ? (y(), x("div", Rl, [
3315
3316
  D(f(jt), null, {
3316
3317
  default: R(() => [
3317
3318
  D(f(oe), {
@@ -3350,7 +3351,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3350
3351
  ]),
3351
3352
  _: 1
3352
3353
  }, 8, ["title", "disabled"]),
3353
- H.value ? (h(), Z(f(oe), {
3354
+ H.value ? (y(), Z(f(oe), {
3354
3355
  key: 0,
3355
3356
  title: v.value ? void 0 : f(l).applyAll,
3356
3357
  class: "q-chatbot__apply-all-button",
@@ -3365,8 +3366,8 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3365
3366
  D(f(Y), { icon: "apply" })
3366
3367
  ]),
3367
3368
  _: 1
3368
- }, 8, ["title", "disabled", "readonly", "label"])) : O("", !0),
3369
- W.value ? (h(), Z(f(oe), {
3369
+ }, 8, ["title", "disabled", "readonly", "label"])) : U("", !0),
3370
+ J.value ? (y(), Z(f(oe), {
3370
3371
  key: 1,
3371
3372
  title: b.value ? void 0 : f(l).approveProceed,
3372
3373
  class: "q-chatbot__approve-proceed-plan-button",
@@ -3381,14 +3382,14 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3381
3382
  D(f(Y), { icon: "apply" })
3382
3383
  ]),
3383
3384
  _: 1
3384
- }, 8, ["title", "disabled", "readonly", "label"])) : O("", !0),
3385
- E.value ? (h(), Z(f(oe), {
3385
+ }, 8, ["title", "disabled", "readonly", "label"])) : U("", !0),
3386
+ A.value ? (y(), Z(f(oe), {
3386
3387
  key: 2,
3387
- title: y.value ? void 0 : f(l).cancelButton,
3388
+ title: h.value ? void 0 : f(l).cancelButton,
3388
3389
  class: "q-chatbot__cancel-execution-button",
3389
3390
  borderless: "",
3390
- disabled: y.value,
3391
- readonly: y.value,
3391
+ disabled: h.value,
3392
+ readonly: h.value,
3392
3393
  label: f(l).cancelButton,
3393
3394
  onClick: k
3394
3395
  }, {
@@ -3396,12 +3397,12 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3396
3397
  D(f(Y), { icon: "cancel" })
3397
3398
  ]),
3398
3399
  _: 1
3399
- }, 8, ["title", "disabled", "readonly", "label"])) : O("", !0)
3400
+ }, 8, ["title", "disabled", "readonly", "label"])) : U("", !0)
3400
3401
  ]),
3401
3402
  _: 1
3402
3403
  })
3403
- ])) : O("", !0),
3404
- T("div", Ml, re(B.value), 1)
3404
+ ])) : U("", !0),
3405
+ M("div", Tl, re(B.value), 1)
3405
3406
  ], 64));
3406
3407
  }
3407
3408
  }), ql = { class: "q-chatbot__tools" }, Nl = { class: "q-chatbot__tools__select" }, Fl = /* @__PURE__ */ V({
@@ -3433,10 +3434,10 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3433
3434
  }));
3434
3435
  return s == null || s.push(a), s || [a];
3435
3436
  });
3436
- function d() {
3437
+ function u() {
3437
3438
  o("clear");
3438
3439
  }
3439
- function u(s) {
3440
+ function d(s) {
3440
3441
  const v = c.value.find((b) => b.key === s);
3441
3442
  if (v) {
3442
3443
  if (v.key === a.key) {
@@ -3448,28 +3449,28 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3448
3449
  }
3449
3450
  return (s, v) => {
3450
3451
  const b = gn("q-select");
3451
- return h(), x("div", ql, [
3452
- T("div", Nl, [
3453
- i.value ? (h(), Z(b, {
3452
+ return y(), x("div", ql, [
3453
+ M("div", Nl, [
3454
+ i.value ? (y(), Z(b, {
3454
3455
  key: 0,
3455
3456
  modelValue: r.value,
3456
3457
  "onUpdate:modelValue": [
3457
- v[0] || (v[0] = (y) => r.value = y),
3458
- u
3458
+ v[0] || (v[0] = (h) => r.value = h),
3459
+ d
3459
3460
  ],
3460
3461
  inline: "",
3461
3462
  required: "",
3462
3463
  class: "q-chatbot__tools-select-input",
3463
3464
  size: "medium",
3464
3465
  items: c.value
3465
- }, null, 8, ["modelValue", "items"])) : O("", !0)
3466
+ }, null, 8, ["modelValue", "items"])) : U("", !0)
3466
3467
  ]),
3467
3468
  D(f(oe), {
3468
3469
  title: f(l),
3469
3470
  disabled: t.disabled,
3470
3471
  class: "q-chatbot__tools-clear",
3471
3472
  borderless: "",
3472
- onClick: d
3473
+ onClick: u
3473
3474
  }, {
3474
3475
  default: R(() => [
3475
3476
  D(f(Y), { icon: "bin" })
@@ -3496,11 +3497,11 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3496
3497
  },
3497
3498
  emits: ["send-message"],
3498
3499
  setup(e, { emit: n }) {
3499
- const t = e, o = n, l = ke(), a = q(null), i = q(null), r = q(""), c = q(!1), d = w(() => ".png,.jpeg,.jpg,.svg,.webp,.pdf,.doc,.docx"), u = w(() => i.value ? i.value.type.startsWith("image/") ?? !1 : !1), s = q(t.userPrompt ?? ""), v = w(() => t.disabled || t.loading || s.value.trim().length === 0);
3500
+ const t = e, o = n, l = ke(), a = q(null), i = q(null), r = q(""), c = q(!1), u = w(() => ".png,.jpeg,.jpg,.svg,.webp,.pdf,.doc,.docx"), d = w(() => i.value ? i.value.type.startsWith("image/") ?? !1 : !1), s = q(t.userPrompt ?? ""), v = w(() => t.disabled || t.loading || s.value.trim().length === 0);
3500
3501
  function b(B) {
3501
3502
  B.preventDefault(), t.disabled || (c.value = !0);
3502
3503
  }
3503
- const y = w(() => ({
3504
+ const h = w(() => ({
3504
3505
  "q-chatbot__footer-disabled": t.disabled,
3505
3506
  "drag-over": c.value && !i.value
3506
3507
  }));
@@ -3508,90 +3509,90 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3508
3509
  B.preventDefault(), c.value = !1;
3509
3510
  }
3510
3511
  function j(B) {
3511
- var M;
3512
+ var T;
3512
3513
  if (B.preventDefault(), c.value = !1, t.disabled || i.value) return;
3513
- const $ = (M = B.dataTransfer) == null ? void 0 : M.files;
3514
+ const $ = (T = B.dataTransfer) == null ? void 0 : T.files;
3514
3515
  $ && H($[0]);
3515
3516
  }
3516
3517
  function H(B) {
3517
3518
  i.value = B, B.type.startsWith("image/") ? r.value = URL.createObjectURL(B) : r.value = "";
3518
3519
  }
3519
- function W() {
3520
+ function J() {
3520
3521
  if (!(s.value.trim() === "" || t.loading || t.disabled)) {
3521
3522
  if (i.value) {
3522
3523
  const B = {
3523
3524
  fileData: i.value,
3524
3525
  previewUrl: r.value ?? ""
3525
3526
  };
3526
- o("send-message", s.value, B), E();
3527
+ o("send-message", s.value, B), A();
3527
3528
  } else o("send-message", s.value);
3528
3529
  s.value = "";
3529
3530
  }
3530
3531
  }
3531
- function E() {
3532
+ function A() {
3532
3533
  i.value = null, r.value = "", a.value && (a.value.value = "", a.value.files = null);
3533
3534
  }
3534
3535
  function P() {
3535
3536
  var B;
3536
3537
  (B = a.value) == null || B.click();
3537
3538
  }
3538
- function J(B) {
3539
- var M;
3539
+ function Q(B) {
3540
+ var T;
3540
3541
  const $ = B.target;
3541
- (M = $.files) != null && M[0] && H($.files[0]);
3542
+ (T = $.files) != null && T[0] && H($.files[0]);
3542
3543
  }
3543
- return (B, $) => (h(), x(ve, null, [
3544
+ return (B, $) => (y(), x(ve, null, [
3544
3545
  D(f(zt), {
3545
3546
  label: f(l).inputLabel
3546
3547
  }, null, 8, ["label"]),
3547
- T("div", {
3548
- class: X(["q-chatbot__footer", y.value]),
3548
+ M("div", {
3549
+ class: X(["q-chatbot__footer", h.value]),
3549
3550
  onDragover: Ue(b, ["prevent"]),
3550
3551
  onDragleave: Ue(_, ["prevent"]),
3551
3552
  onDrop: Ue(j, ["prevent"])
3552
3553
  }, [
3553
- T("div", Pl, [
3554
- i.value ? (h(), x("div", Ol, [
3555
- u.value ? (h(), x("img", {
3554
+ M("div", Pl, [
3555
+ i.value ? (y(), x("div", Ol, [
3556
+ d.value ? (y(), x("img", {
3556
3557
  key: 0,
3557
3558
  class: "q-chatbot__image-preview",
3558
3559
  src: r.value,
3559
3560
  tabindex: "0",
3560
3561
  alt: f(l).imagePreview
3561
- }, null, 8, Ul)) : (h(), x("div", Gl, [
3562
+ }, null, 8, Ul)) : (y(), x("div", Gl, [
3562
3563
  D(f(Y), {
3563
3564
  icon: "file",
3564
3565
  class: "q-chatbot__file-icon"
3565
3566
  }),
3566
- T("span", jl, re(i.value.name), 1)
3567
+ M("span", jl, re(i.value.name), 1)
3567
3568
  ])),
3568
3569
  D(f(oe), {
3569
3570
  class: "q-chatbot__remove-file",
3570
3571
  tabindex: "0",
3571
3572
  flat: "",
3572
3573
  round: "",
3573
- onClick: E
3574
+ onClick: A
3574
3575
  }, {
3575
3576
  default: R(() => [
3576
3577
  D(f(Y), { icon: "remove" })
3577
3578
  ]),
3578
3579
  _: 1
3579
3580
  })
3580
- ])) : O("", !0),
3581
- T("div", zl, [
3581
+ ])) : U("", !0),
3582
+ M("div", zl, [
3582
3583
  D(f(Ka), {
3583
3584
  id: "chatbot-input",
3584
3585
  modelValue: s.value,
3585
- "onUpdate:modelValue": $[0] || ($[0] = (M) => s.value = M),
3586
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => s.value = T),
3586
3587
  size: "block",
3587
3588
  autosize: "",
3588
3589
  resize: "none",
3589
3590
  rows: 2,
3590
3591
  disabled: t.disabled,
3591
- onKeyup: mn(W, ["enter"])
3592
+ onKeyup: mn(J, ["enter"])
3592
3593
  }, null, 8, ["modelValue", "disabled"])
3593
3594
  ]),
3594
- T("div", Vl, [
3595
+ M("div", Vl, [
3595
3596
  D(f(oe), {
3596
3597
  title: f(l).imageUpload,
3597
3598
  class: "q-chatbot__upload",
@@ -3603,14 +3604,14 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3603
3604
  ]),
3604
3605
  _: 1
3605
3606
  }, 8, ["title", "disabled"]),
3606
- T("input", {
3607
+ M("input", {
3607
3608
  id: "file-upload",
3608
3609
  ref_key: "fileInput",
3609
3610
  ref: a,
3610
3611
  type: "file",
3611
- accept: d.value,
3612
+ accept: u.value,
3612
3613
  class: "hidden-input",
3613
- onChange: J
3614
+ onChange: Q
3614
3615
  }, null, 40, Hl),
3615
3616
  D(f(oe), {
3616
3617
  title: f(l).sendMessage,
@@ -3618,7 +3619,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3618
3619
  class: "q-chatbot__send",
3619
3620
  disabled: v.value,
3620
3621
  readonly: v.value,
3621
- onClick: W
3622
+ onClick: J
3622
3623
  }, {
3623
3624
  default: R(() => [
3624
3625
  D(f(Y), { icon: "send" })
@@ -3650,31 +3651,31 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3650
3651
  },
3651
3652
  emits: ["apply-fields", "direct-agent-chat"],
3652
3653
  setup(e, { emit: n }) {
3653
- const t = e, o = n, l = q(!0), a = q(null), i = q(!0), r = q(t.agentData.id), c = q(t.agentData.formId), d = ke(), { isLoading: u, clearChatData: s, getChatData: v, getJobResultData: b, sendPrompt: y, cancelExecution: _ } = en(t.apiEndpoint), { messages: j, addChatMessage: H, clearMessages: W, getLastMessage: E, deleteMessageById: P } = on(), J = w(() => l.value || u.value), B = /<span data-type="tool-calling">.*?<\/span>/, $ = ze({
3654
+ const t = e, o = n, l = q(!0), a = q(null), i = q(!0), r = q(t.agentData.id), c = q(t.agentData.formId), u = ke(), { isLoading: d, clearChatData: s, getChatData: v, getJobResultData: b, sendPrompt: h, cancelExecution: _ } = en(t.apiEndpoint), { messages: j, addChatMessage: H, clearMessages: J, getLastMessage: A, deleteMessageById: P } = on(), Q = w(() => l.value || d.value), B = /<span data-type="tool-calling">.*?<\/span>/, $ = ze({
3654
3655
  active: !1,
3655
3656
  sessionId: "",
3656
3657
  cancelling: !1,
3657
3658
  cancelled: !1,
3658
3659
  callingTools: !1
3659
3660
  });
3660
- function M(g) {
3661
+ function T(g) {
3661
3662
  return g.includes('data-type="execution-progress"');
3662
3663
  }
3663
3664
  function ue(g) {
3664
- return !M(g) || $.cancelling || $.cancelled || !$.active || !$.callingTools;
3665
+ return !T(g) || $.cancelling || $.cancelled || !$.active || !$.callingTools;
3665
3666
  }
3666
3667
  async function ie() {
3667
3668
  if (!$.sessionId || $.cancelling) return;
3668
3669
  $.cancelling = !0;
3669
- const g = E();
3670
+ const g = A();
3670
3671
  if (g) {
3671
- const A = '<span data-type="tool-calling">Cancelling</span>';
3672
- B.test(g.message) && (g.message = g.message.replace(B, A));
3672
+ const E = '<span data-type="tool-calling">Cancelling</span>';
3673
+ B.test(g.message) && (g.message = g.message.replace(B, E));
3673
3674
  }
3674
3675
  try {
3675
3676
  await _($.sessionId), $.cancelled = !0;
3676
- } catch (A) {
3677
- console.error("Error cancelling execution: ", A);
3677
+ } catch (E) {
3678
+ console.error("Error cancelling execution: ", E);
3678
3679
  } finally {
3679
3680
  $.cancelling = !1;
3680
3681
  }
@@ -3685,17 +3686,17 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3685
3686
  function m() {
3686
3687
  $.active = !1, $.sessionId = "", $.cancelling = !1;
3687
3688
  }
3688
- function k(g, A) {
3689
- const Q = `<span data-type="tool-calling">${A.replace(/<br\s*\/?>/gi, "")}</span>`;
3689
+ function k(g, E) {
3690
+ const W = `<span data-type="tool-calling">${E.replace(/<br\s*\/?>/gi, "")}</span>`;
3690
3691
  if (B.test(g.message))
3691
- g.message = g.message.replace(B, Q);
3692
+ g.message = g.message.replace(B, W);
3692
3693
  else {
3693
3694
  const ne = g.message.indexOf(Kl);
3694
- ne !== -1 ? g.message = g.message.slice(0, ne) + Q + g.message.slice(ne) : g.message = Q + g.message;
3695
+ ne !== -1 ? g.message = g.message.slice(0, ne) + W + g.message.slice(ne) : g.message = W + g.message;
3695
3696
  }
3696
3697
  }
3697
- function N(g, A) {
3698
- g.message.endsWith("<br>") || (g.message += "<br>"), g.message += `${A}<br>`;
3698
+ function N(g, E) {
3699
+ g.message.endsWith("<br>") || (g.message += "<br>"), g.message += `${E}<br>`;
3699
3700
  }
3700
3701
  function L(g) {
3701
3702
  g.message = g.message.replace(B, "");
@@ -3703,7 +3704,7 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3703
3704
  bn(() => {
3704
3705
  var g;
3705
3706
  (g = a.value) == null || g.removeEventListener("scroll", ce);
3706
- }), Te(() => {
3707
+ }), Me(() => {
3707
3708
  I();
3708
3709
  });
3709
3710
  function C(g) {
@@ -3713,128 +3714,129 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3713
3714
  try {
3714
3715
  await z();
3715
3716
  } catch (g) {
3716
- H(d.loginError), console.error("Error logging in: " + g);
3717
+ H(u.loginError), console.error("Error logging in: " + g);
3717
3718
  }
3718
3719
  }
3719
3720
  async function z() {
3720
3721
  C(!0);
3721
- const { data: g, error: A } = await v(
3722
+ const { data: g, error: E } = await v(
3722
3723
  t.username,
3723
3724
  t.projectPath,
3724
3725
  r.value,
3725
3726
  c.value
3726
3727
  );
3727
- if (A || !g || !g.success) {
3728
- C(!0), H(d.botIsSick), console.log("Error loading chat data: " + A);
3728
+ if (E || !g || !g.success) {
3729
+ C(!0), H(u.botIsSick), console.log("Error loading chat data: " + E);
3729
3730
  return;
3730
3731
  }
3731
- C(!1), U(), g.history.forEach(async (G) => {
3732
+ C(!1), G(), g.history.forEach(async (O) => {
3732
3733
  H(
3733
- G.content,
3734
- G.type === "ai" ? "bot" : "user",
3734
+ O.content,
3735
+ O.type === "ai" ? "bot" : "user",
3735
3736
  void 0,
3736
3737
  // At this point we don't have preview URLs for past messages
3737
- G.sessionID
3738
+ O.sessionID
3738
3739
  );
3739
3740
  });
3740
3741
  }
3741
- function U() {
3742
- const g = d.initialMessage;
3742
+ function G() {
3743
+ const g = u.initialMessage;
3743
3744
  H(g, "bot", void 0, void 0, !0);
3744
3745
  }
3745
3746
  function ae() {
3746
- W(), C(!1), i.value = !0, m();
3747
+ J(), C(!1), i.value = !0, m();
3747
3748
  }
3748
3749
  function ce() {
3749
3750
  if (a.value) {
3750
- const { scrollTop: A, clientHeight: G, scrollHeight: Q } = a.value;
3751
- i.value = A + G >= Q - 20;
3751
+ const { scrollTop: E, clientHeight: O, scrollHeight: W } = a.value;
3752
+ i.value = E + O >= W - 20;
3752
3753
  }
3753
3754
  }
3754
- async function te(g, A) {
3755
+ async function te(g, E) {
3755
3756
  a.value && a.value.scrollTo({
3756
3757
  top: a.value.scrollHeight,
3757
3758
  behavior: "smooth"
3758
- }), H(g, "user", A), ge(g, A == null ? void 0 : A.fileData);
3759
+ }), H(g, "user", E), ge(g, E == null ? void 0 : E.fileData);
3759
3760
  }
3760
3761
  async function he(g) {
3761
3762
  a.value && a.value.scrollTo({
3762
3763
  top: a.value.scrollHeight,
3763
3764
  behavior: "smooth"
3764
3765
  }), H("", "bot");
3765
- const A = E();
3766
- A && await b(
3766
+ const E = A();
3767
+ E && await b(
3767
3768
  g,
3768
- (G) => {
3769
- if (A.message += G, A.fields || (A.fields = []), A.fields.length > 0) {
3770
- const Q = A.fields[A.fields.length - 1];
3771
- Q.text = A.message;
3769
+ (O) => {
3770
+ if (E.message += O, E.fields || (E.fields = []), E.fields.length > 0) {
3771
+ const W = E.fields[E.fields.length - 1];
3772
+ W.text = E.message;
3772
3773
  }
3773
3774
  },
3774
- (G) => {
3775
+ (O) => {
3775
3776
  var ne;
3776
- A.message = "";
3777
- const Q = G;
3778
- (ne = A.fields) == null || ne.push({
3779
- id: Q.id,
3780
- type: Q.type,
3781
- name: Q.name,
3782
- text: Q.text
3777
+ E.message = "";
3778
+ const W = O;
3779
+ (ne = E.fields) == null || ne.push({
3780
+ id: W.id,
3781
+ type: W.type,
3782
+ name: W.name,
3783
+ text: W.text
3783
3784
  });
3784
3785
  },
3785
- (G) => {
3786
- C(!0), H(d.botIsSick), console.error("Error getting job result: " + G), P(A.id);
3786
+ (O) => {
3787
+ C(!0), H(u.botIsSick), console.error("Error getting job result: " + O), P(E.id);
3787
3788
  }
3788
3789
  );
3789
3790
  }
3790
- async function ge(g, A) {
3791
- const G = nn(), Q = g.trim().toLowerCase() === d.approveProceedPlan.toLowerCase(), ne = new FormData();
3792
- if (A && ne.append("file", A), ne.append("message", g), ne.append("project", t.projectPath), ne.append("user", t.username), ne.append("sessionID", G), r.value !== "")
3791
+ async function ge(g, E) {
3792
+ const O = nn(), W = g.trim().toLowerCase() === u.approveProceedPlan.toLowerCase(), ne = new FormData();
3793
+ if (E && ne.append("file", E), ne.append("message", g), ne.append("project", t.projectPath), ne.append("user", t.username), ne.append("sessionID", O), r.value !== "")
3793
3794
  o("direct-agent-chat", r.value, g);
3794
3795
  else {
3795
3796
  H("", "bot");
3796
- const fe = E();
3797
- if (!fe) return;
3798
- Q && p(G);
3797
+ const de = A();
3798
+ if (!de) return;
3799
+ W && p(O);
3799
3800
  let Ye = null;
3800
3801
  try {
3801
- await y(
3802
+ await h(
3802
3803
  ne,
3803
3804
  (le) => {
3804
- fe && (Ye === "tools" && le.trim() && (L(fe), Ye = "text", $.callingTools = !1), fe.message += le);
3805
+ de && (Ye === "tools" && le.trim() && (L(de), Ye = "text", $.callingTools = !1), de.message += le);
3805
3806
  },
3806
3807
  (le) => {
3807
3808
  var mt;
3808
- (mt = le == null ? void 0 : le.data) != null && mt.html && (le.event === "tool_start" ? (k(fe, le.data.html), Ye = "tools", $.callingTools = !0) : le.event === "tool_end" && N(fe, le.data.html));
3809
+ (mt = le == null ? void 0 : le.data) != null && mt.html && (le.event === "tool_start" ? (k(de, le.data.html), Ye = "tools", $.callingTools = !0) : le.event === "tool_end" && (N(de, le.data.html), k(de, u.generatingResponse), $.callingTools = !0));
3809
3810
  },
3810
3811
  (le) => {
3811
- C(!0), H(d.botIsSick), console.error("Error sending message: " + le), P(fe.id), Q && m();
3812
+ C(!0), H(u.botIsSick), console.error("Error sending message: " + le), P(de.id), W && m();
3812
3813
  },
3813
3814
  () => {
3814
- L(fe), Q && m();
3815
+ L(de), W && m();
3815
3816
  }
3816
3817
  );
3817
3818
  } catch (le) {
3818
- Q && m(), console.error("Error sending prompt: ", le);
3819
+ W && m(), console.error("Error sending prompt: ", le);
3819
3820
  }
3820
3821
  }
3821
3822
  }
3822
3823
  async function me() {
3823
- const { data: g, error: A } = await s(
3824
+ const g = A(), E = g == null ? void 0 : g.sessionID, { data: O, error: W } = await s(
3824
3825
  t.username,
3825
3826
  t.projectPath,
3826
3827
  r.value,
3827
- c.value
3828
+ c.value,
3829
+ E
3828
3830
  );
3829
- if (A || !g || !g.success) {
3830
- C(!0), H(d.loginError), console.log("Error clearing chat: " + A);
3831
+ if (W || !O || !O.success) {
3832
+ C(!0), H(u.loginError), console.log("Error clearing chat: " + W);
3831
3833
  return;
3832
3834
  }
3833
- ae(), U();
3835
+ ae(), G();
3834
3836
  }
3835
3837
  function ye(g) {
3836
- const A = ["q-chatbot__messages-wrapper"];
3837
- return g === "user" && A.push("q-chatbot__messages-wrapper_right"), A;
3838
+ const E = ["q-chatbot__messages-wrapper"];
3839
+ return g === "user" && E.push("q-chatbot__messages-wrapper_right"), E;
3838
3840
  }
3839
3841
  async function Ne(g) {
3840
3842
  r.value = g.key, c.value = g.formId, ae(), await I();
@@ -3842,21 +3844,21 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3842
3844
  function S(g) {
3843
3845
  !g || g.length === 0 || o("apply-fields", g);
3844
3846
  }
3845
- function pe(g) {
3846
- const A = d.regenerateResponsePrompt.replace("{0}", g);
3847
- o("direct-agent-chat", r.value, A);
3847
+ function fe(g) {
3848
+ const E = u.regenerateResponsePrompt.replace("{0}", g);
3849
+ o("direct-agent-chat", r.value, E);
3848
3850
  }
3849
3851
  return se(
3850
3852
  () => t.availableAgents,
3851
- (g, A) => {
3852
- g.length === 0 && A.length > 0 && (r.value = "", c.value = "", ae(), I());
3853
+ (g, E) => {
3854
+ g.length === 0 && E.length > 0 && (r.value = "", c.value = "", ae(), I());
3853
3855
  }
3854
3856
  ), se(
3855
3857
  () => t.agentData,
3856
- async (g, A) => {
3857
- if (J.value) return;
3858
- const G = g.jobId, Q = A.jobId, ne = G !== Q;
3859
- g.id !== r.value && await Ne({ formId: g.formId, key: g.id }), G && ne && await he(G);
3858
+ async (g, E) => {
3859
+ if (Q.value) return;
3860
+ const O = g.jobId, W = E.jobId, ne = O !== W;
3861
+ g.id !== r.value && await Ne({ formId: g.formId, key: g.id }), O && ne && await he(O);
3860
3862
  },
3861
3863
  { deep: !0 }
3862
3864
  ), se(
@@ -3865,39 +3867,39 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3865
3867
  i.value && a.value && (await new Promise((g) => setTimeout(g, 0)), a.value.scrollTop = a.value.scrollHeight);
3866
3868
  },
3867
3869
  { deep: !0, flush: "post" }
3868
- ), (g, A) => (h(), x("div", Ql, [
3869
- T("div", Yl, [
3870
+ ), (g, E) => (y(), x("div", Ql, [
3871
+ M("div", Yl, [
3870
3872
  D(f(Fl), {
3871
- disabled: J.value,
3873
+ disabled: Q.value,
3872
3874
  "available-agents": t.availableAgents,
3873
3875
  "selected-agent-key": r.value,
3874
3876
  onClear: me,
3875
3877
  onChangeChat: Ne
3876
3878
  }, null, 8, ["disabled", "available-agents", "selected-agent-key"]),
3877
- T("div", {
3879
+ M("div", {
3878
3880
  ref_key: "messagesContainer",
3879
3881
  ref: a,
3880
3882
  class: "q-chatbot__messages-container",
3881
3883
  onScroll: ce
3882
3884
  }, [
3883
- (h(!0), x(ve, null, qe(f(j), (G, Q) => (h(), x("div", {
3884
- key: G.id,
3885
- class: X(ye(G.sender))
3885
+ (y(!0), x(ve, null, qe(f(j), (O, W) => (y(), x("div", {
3886
+ key: O.id,
3887
+ class: X(ye(O.sender))
3886
3888
  }, [
3887
- D(f(Il), de({ ref_for: !0 }, G, {
3889
+ D(f(Il), pe({ ref_for: !0 }, O, {
3888
3890
  "date-format": t.dateFormat,
3889
3891
  "user-image": t.userImage,
3890
3892
  "chatbot-image": t.chatbotImage,
3891
- loading: f(u) && !G.message,
3892
- file: G.file,
3893
+ loading: f(d) && !O.message,
3894
+ file: O.file,
3893
3895
  "api-endpoint": t.apiEndpoint,
3894
- "session-i-d": G.sessionID,
3895
- fields: G.fields,
3896
- "is-last-message": Q === f(j).length - 1,
3897
- "is-streaming": f(u),
3898
- "show-cancel-execution": M(G.message),
3899
- "cancel-execution-disabled": ue(G.message),
3900
- onRegenerate: pe,
3896
+ "session-i-d": O.sessionID,
3897
+ fields: O.fields,
3898
+ "is-last-message": W === f(j).length - 1,
3899
+ "is-streaming": f(d),
3900
+ "show-cancel-execution": T(O.message),
3901
+ "cancel-execution-disabled": ue(O.message),
3902
+ onRegenerate: fe,
3901
3903
  onApplyFields: S,
3902
3904
  onSendMessage: te,
3903
3905
  onCancelExecution: ie
@@ -3905,10 +3907,10 @@ const Ll = { class: "q-chatbot__dialog-title" }, Rl = {
3905
3907
  ], 2))), 128))
3906
3908
  ], 544)
3907
3909
  ]),
3908
- T("div", Xl, [
3910
+ M("div", Xl, [
3909
3911
  D(f(Zl), {
3910
- disabled: J.value,
3911
- loading: f(u),
3912
+ disabled: Q.value,
3913
+ loading: f(d),
3912
3914
  onSendMessage: te
3913
3915
  }, null, 8, ["disabled", "loading"])
3914
3916
  ])