@quidgest/chatbot 0.5.9 → 0.6.0

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 at, computed as w, inject as rt, ref as T, provide as Xt, defineComponent as O, openBlock as y, createElementBlock as A, normalizeClass as W, normalizeStyle as _e, unref as f, toRef as Se, withModifiers as Me, createVNode as S, createCommentVNode as G, createElementVNode as L, renderSlot as M, createTextVNode as je, toDisplayString as ae, createBlock as V, resolveDynamicComponent as At, h as Ye, mergeProps as de, useTemplateRef as xt, withCtx as C, normalizeProps as De, guardReactiveProps as Te, mergeModels as ve, useModel as Ee, watch as le, createSlots as It, withDirectives as St, vModelDynamic as Kt, useId as en, onMounted as Ce, onUnmounted as Dt, readonly as tn, customRef as nn, getCurrentScope as on, onScopeDispose as Et, shallowRef as Xe, nextTick as xe, toValue as it, reactive as Ke, onBeforeUnmount as an, Fragment as pe, Teleport as rn, Transition as dt, renderList as Be, toHandlers as ln, vModelText as sn, resolveComponent as cn, withKeys as un, onBeforeMount as dn } from "vue";
1
+ import { getCurrentInstance as at, computed as w, inject as rt, ref as q, provide as Xt, defineComponent as G, openBlock as b, createElementBlock as $, normalizeClass as X, normalizeStyle as _e, unref as f, toRef as Se, withModifiers as qe, createVNode as S, createCommentVNode as j, createElementVNode as L, renderSlot as M, createTextVNode as Ge, toDisplayString as oe, createBlock as Z, resolveDynamicComponent as At, h as Ye, mergeProps as de, useTemplateRef as xt, withCtx as R, normalizeProps as De, guardReactiveProps as Ne, mergeModels as ve, useModel as Ee, watch as ie, createSlots as It, withDirectives as St, vModelDynamic as Kt, useId as en, onMounted as Ce, onUnmounted as Dt, readonly as tn, customRef as nn, getCurrentScope as on, onScopeDispose as Et, shallowRef as Xe, nextTick as xe, toValue as it, reactive as Ke, onBeforeUnmount as an, Fragment as pe, Teleport as rn, Transition as dt, renderList as Be, toHandlers as ln, vModelText as sn, resolveComponent as cn, withKeys as un, onBeforeMount as dn } from "vue";
2
2
  import Ct from "axios";
3
3
  import pn from "markdown-it";
4
4
  function et(e) {
@@ -33,7 +33,7 @@ function fn() {
33
33
  }
34
34
  function vn(e) {
35
35
  if (et(e)) return;
36
- const n = Rt(), t = T(e), o = w(() => et(t.value) ? n.value : lt(n.value, t.value));
36
+ const n = Rt(), t = q(e), o = w(() => et(t.value) ? n.value : lt(n.value, t.value));
37
37
  Xt(Bt, o);
38
38
  }
39
39
  function Rt() {
@@ -41,7 +41,7 @@ function Rt() {
41
41
  if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
42
42
  return e;
43
43
  }
44
- const mn = ["id"], gn = /* @__PURE__ */ O({
44
+ const mn = ["id"], gn = /* @__PURE__ */ G({
45
45
  __name: "QSpinnerLoader",
46
46
  props: {
47
47
  id: {},
@@ -52,9 +52,9 @@ const mn = ["id"], gn = /* @__PURE__ */ O({
52
52
  const n = e, t = w(() => ({
53
53
  "font-size": n.size !== 48 ? `${n.size}px` : void 0
54
54
  }));
55
- return (o, r) => (y(), A("div", {
55
+ return (o, r) => (b(), $("div", {
56
56
  id: n.id,
57
- class: W(["q-spinner-loader", n.class]),
57
+ class: X(["q-spinner-loader", n.class]),
58
58
  style: _e(t.value)
59
59
  }, null, 14, mn));
60
60
  }
@@ -80,8 +80,8 @@ function K(e) {
80
80
  const l = new Proxy(o, {
81
81
  get(u, c) {
82
82
  var p;
83
- const s = Reflect.get(u, c), m = (p = a.value) == null ? void 0 : p[c];
84
- return typeof c == "string" && !yn(i.vnode, c) ? m ?? s : s;
83
+ const s = Reflect.get(u, c), g = (p = a.value) == null ? void 0 : p[c];
84
+ return typeof c == "string" && !yn(i.vnode, c) ? g ?? s : s;
85
85
  }
86
86
  });
87
87
  return t(l, r);
@@ -169,29 +169,29 @@ function Sn(e) {
169
169
  return e > 50 ? "#000" : "#fff";
170
170
  }
171
171
  const Dn = Symbol.for("q-theme");
172
- function qt() {
172
+ function Mt() {
173
173
  const e = rt(Dn);
174
174
  if (!e)
175
175
  throw new Error("[Quidgest UI] Could not find theme instance");
176
176
  return e;
177
177
  }
178
- function Mt(e) {
178
+ function qt(e) {
179
179
  const n = w(() => f(e)), t = w(
180
180
  () => n.value ? !En(n.value) : !1
181
181
  ), o = w(() => {
182
182
  const r = n.value;
183
183
  if (!r) return;
184
184
  let a = r;
185
- const i = qt();
185
+ const i = Mt();
186
186
  if (t.value) {
187
- const m = r;
188
- a = i.current.value.scheme[m] ?? r;
187
+ const g = r;
188
+ a = i.current.value.scheme[g] ?? r;
189
189
  }
190
190
  let l;
191
191
  try {
192
192
  if (l = $n(a), !l) return;
193
- } catch (m) {
194
- console.error("Failed to parse color:", m);
193
+ } catch (g) {
194
+ console.error("Failed to parse color:", g);
195
195
  return;
196
196
  }
197
197
  const u = Lt(l), c = Sn(u.l), p = An(l, 25), s = xn(p);
@@ -212,7 +212,7 @@ function En(e) {
212
212
  const Cn = ["id", "disabled"], Bn = {
213
213
  key: 0,
214
214
  class: "q-button__spinner"
215
- }, Rn = { class: "q-button__content" }, Ln = /* @__PURE__ */ O({
215
+ }, Rn = { class: "q-button__content" }, Ln = /* @__PURE__ */ G({
216
216
  __name: "QButton",
217
217
  props: {
218
218
  id: {},
@@ -235,14 +235,14 @@ const Cn = ["id", "disabled"], Bn = {
235
235
  function a(p) {
236
236
  r.value || o("click", p);
237
237
  }
238
- const { isUtilityColor: i, style: l } = Mt(Se(t, "color")), u = w(() => {
239
- const p = i.value ? `q-button--${t.color}` : void 0, s = t.size !== "regular" ? `q-button--${t.size}` : void 0, m = t.iconPos !== "start" ? `q-button--icon-${t.iconPos}` : void 0;
238
+ const { isUtilityColor: i, style: l } = qt(Se(t, "color")), u = w(() => {
239
+ const p = i.value ? `q-button--${t.color}` : void 0, s = t.size !== "regular" ? `q-button--${t.size}` : void 0, g = t.iconPos !== "start" ? `q-button--icon-${t.iconPos}` : void 0;
240
240
  return [
241
241
  "q-button",
242
242
  `q-button--${t.variant}`,
243
243
  p,
244
244
  s,
245
- m,
245
+ g,
246
246
  {
247
247
  "q-button--borderless": t.borderless,
248
248
  "q-button--elevated": t.elevated,
@@ -253,39 +253,39 @@ const Cn = ["id", "disabled"], Bn = {
253
253
  t.class
254
254
  ];
255
255
  }), c = w(() => {
256
- var p, s, m, g, b, _;
256
+ var p, s, g, m, y, I;
257
257
  if (!i.value)
258
258
  return {
259
259
  "--q-button-main-color": (p = l.value) == null ? void 0 : p.mainColor,
260
260
  "--q-button-main-color-rgb": (s = l.value) == null ? void 0 : s.mainColorRgb,
261
- "--q-button-on-main-color": (m = l.value) == null ? void 0 : m.onMainColor,
262
- "--q-button-hover-color": (g = l.value) == null ? void 0 : g.hoverColor,
263
- "--q-button-hover-color-rgb": (b = l.value) == null ? void 0 : b.hoverColorRgb,
264
- "--q-button-on-hover-color": (_ = l.value) == null ? void 0 : _.onHoverColor
261
+ "--q-button-on-main-color": (g = l.value) == null ? void 0 : g.onMainColor,
262
+ "--q-button-hover-color": (m = l.value) == null ? void 0 : m.hoverColor,
263
+ "--q-button-hover-color-rgb": (y = l.value) == null ? void 0 : y.hoverColorRgb,
264
+ "--q-button-on-hover-color": (I = l.value) == null ? void 0 : I.onHoverColor
265
265
  };
266
266
  });
267
- return (p, s) => (y(), A("button", {
267
+ return (p, s) => (b(), $("button", {
268
268
  id: t.id,
269
269
  type: "button",
270
- class: W(u.value),
270
+ class: X(u.value),
271
271
  disabled: r.value,
272
272
  style: _e(c.value),
273
- onClick: Me(a, ["stop", "prevent"])
273
+ onClick: qe(a, ["stop", "prevent"])
274
274
  }, [
275
- t.loading ? (y(), A("div", Bn, [
275
+ t.loading ? (b(), $("div", Bn, [
276
276
  S(f(wn))
277
- ])) : G("v-if", !0),
277
+ ])) : j("v-if", !0),
278
278
  L("span", Rn, [
279
279
  M(p.$slots, "default"),
280
- je(
281
- " " + ae(t.label),
280
+ Ge(
281
+ " " + oe(t.label),
282
282
  1
283
283
  /* TEXT */
284
284
  )
285
285
  ])
286
286
  ], 14, Cn));
287
287
  }
288
- }), re = K(Ln), qn = /* @__PURE__ */ O({
288
+ }), ne = K(Ln), Mn = /* @__PURE__ */ G({
289
289
  __name: "QIcon",
290
290
  props: {
291
291
  id: {},
@@ -301,27 +301,27 @@ const Cn = ["id", "disabled"], Bn = {
301
301
  case "svg":
302
302
  return Vn;
303
303
  case "font":
304
- return jn;
304
+ return Gn;
305
305
  case "img":
306
306
  return zn;
307
307
  default:
308
308
  return;
309
309
  }
310
- }), { style: o } = Mt(Se(n, "color")), r = w(() => {
310
+ }), { style: o } = qt(Se(n, "color")), r = w(() => {
311
311
  var a;
312
312
  return {
313
313
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0,
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) => (y(), V(At(t.value), {
317
+ return (a, i) => (b(), Z(At(t.value), {
318
318
  id: n.id,
319
- class: W(n.class),
319
+ class: X(n.class),
320
320
  icon: n.icon,
321
321
  style: _e(r.value)
322
322
  }, null, 8, ["id", "class", "icon", "style"]));
323
323
  }
324
- }), Mn = ["id"], Nn = /* @__PURE__ */ O({
324
+ }), qn = ["id"], Tn = /* @__PURE__ */ G({
325
325
  __name: "QIconFont",
326
326
  props: {
327
327
  id: {},
@@ -332,12 +332,12 @@ const Cn = ["id", "disabled"], Bn = {
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 (r, a) => (y(), A("i", {
335
+ return (r, a) => (b(), $("i", {
336
336
  id: n.id,
337
- class: W(["q-icon", "q-icon__font", t.value, o.value, n.class])
338
- }, null, 10, Mn));
337
+ class: X(["q-icon", "q-icon__font", t.value, o.value, n.class])
338
+ }, null, 10, qn));
339
339
  }
340
- }), Tn = ["id", "src"], Fn = /* @__PURE__ */ O({
340
+ }), Nn = ["id", "src"], Fn = /* @__PURE__ */ G({
341
341
  __name: "QIconImg",
342
342
  props: {
343
343
  id: {},
@@ -346,13 +346,13 @@ const Cn = ["id", "disabled"], Bn = {
346
346
  },
347
347
  setup(e) {
348
348
  const n = e;
349
- return (t, o) => (y(), A("img", {
349
+ return (t, o) => (b(), $("img", {
350
350
  id: n.id,
351
351
  src: n.icon,
352
- class: W(["q-icon", "q-icon__img", n.class])
353
- }, null, 10, Tn));
352
+ class: X(["q-icon", "q-icon__img", n.class])
353
+ }, null, 10, Nn));
354
354
  }
355
- }), $e = {}, On = O({
355
+ }), $e = {}, Pn = G({
356
356
  name: "InlineSvg",
357
357
  inheritAttrs: !1,
358
358
  props: {
@@ -423,7 +423,7 @@ const Cn = ["id", "disabled"], Bn = {
423
423
  o !== !1 && o !== null && o !== void 0 && (e[t] = o);
424
424
  },
425
425
  getSvgContent(e) {
426
- return this.symbol && (e = e.getElementById(this.symbol), !e) ? null : (this.transformSource && (e = e.cloneNode(!0), e = this.transformSource(e)), this.title && (this.transformSource || (e = e.cloneNode(!0)), Un(e, this.title)), e);
426
+ return this.symbol && (e = e.getElementById(this.symbol), !e) ? null : (this.transformSource && (e = e.cloneNode(!0), e = this.transformSource(e)), this.title && (this.transformSource || (e = e.cloneNode(!0)), On(e, this.title)), e);
427
427
  },
428
428
  /**
429
429
  * Get svgElSource
@@ -431,7 +431,7 @@ const Cn = ["id", "disabled"], Bn = {
431
431
  */
432
432
  async getSource(e) {
433
433
  try {
434
- $e[e] || ($e[e] = Pn(this.download(e))), this.svgElSource && $e[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
434
+ $e[e] || ($e[e] = Un(this.download(e))), this.svgElSource && $e[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
435
435
  const n = await $e[e];
436
436
  this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
437
437
  } catch (n) {
@@ -460,7 +460,7 @@ const Cn = ["id", "disabled"], Bn = {
460
460
  },
461
461
  expose: []
462
462
  });
463
- function Un(e, n) {
463
+ function On(e, n) {
464
464
  const t = e.getElementsByTagName("title");
465
465
  if (t.length)
466
466
  t[0].textContent = n;
@@ -469,7 +469,7 @@ function Un(e, n) {
469
469
  o.textContent = n, e.insertBefore(o, e.firstChild);
470
470
  }
471
471
  }
472
- function Pn(e) {
472
+ function Un(e) {
473
473
  if (e.getIsPending) return e;
474
474
  let n = !0;
475
475
  const t = e.then(
@@ -480,7 +480,7 @@ function Pn(e) {
480
480
  );
481
481
  return t.getIsPending = () => n, t;
482
482
  }
483
- const Gn = /* @__PURE__ */ O({
483
+ const jn = /* @__PURE__ */ G({
484
484
  __name: "QIconSvg",
485
485
  props: {
486
486
  id: {},
@@ -497,21 +497,21 @@ const Gn = /* @__PURE__ */ O({
497
497
  function a() {
498
498
  o("unloaded");
499
499
  }
500
- return (i, l) => (y(), V(f(On), {
500
+ return (i, l) => (b(), Z(f(Pn), {
501
501
  id: t.id,
502
- class: W(["q-icon", "q-icon__svg", t.class]),
502
+ class: X(["q-icon", "q-icon__svg", t.class]),
503
503
  src: t.bundle,
504
504
  symbol: t.icon,
505
505
  onLoaded: r,
506
506
  onUnloaded: a
507
507
  }, null, 8, ["id", "class", "src", "symbol"]));
508
508
  }
509
- }), X = K(qn), jn = K(Nn), zn = K(Fn), Vn = K(Gn);
509
+ }), Y = K(Mn), Gn = K(Tn), zn = K(Fn), Vn = K(jn);
510
510
  let Hn = 0;
511
511
  function st(e) {
512
512
  return f(e) || `uid-${++Hn}`;
513
513
  }
514
- const Zn = ["id"], Jn = /* @__PURE__ */ O({
514
+ const Zn = ["id"], Wn = /* @__PURE__ */ G({
515
515
  __name: "QButtonGroup",
516
516
  props: {
517
517
  id: {},
@@ -527,9 +527,9 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
527
527
  disabled: Se(n, "disabled"),
528
528
  borderless: Se(n, "borderless")
529
529
  }
530
- }), (t, o) => (y(), A("div", {
530
+ }), (t, o) => (b(), $("div", {
531
531
  id: n.id,
532
- class: W([
532
+ class: X([
533
533
  "q-button-group",
534
534
  {
535
535
  "q-button-group--elevated": n.elevated
@@ -541,7 +541,7 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
541
541
  M(t.$slots, "default")
542
542
  ], 10, Zn));
543
543
  }
544
- }), Nt = K(Jn), Qn = ["id"], Wn = ["for"], Yn = /* @__PURE__ */ O({
544
+ }), Tt = K(Wn), Jn = ["id"], Qn = ["for"], Yn = /* @__PURE__ */ G({
545
545
  inheritAttrs: !1,
546
546
  __name: "QLabel",
547
547
  props: {
@@ -559,26 +559,26 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
559
559
  },
560
560
  n.class
561
561
  ]);
562
- return (o, r) => (y(), A("div", {
562
+ return (o, r) => (b(), $("div", {
563
563
  id: n.id,
564
- class: W(t.value)
564
+ class: X(t.value)
565
565
  }, [
566
566
  M(o.$slots, "prepend"),
567
567
  L("label", de({
568
568
  for: n.for
569
569
  }, o.$attrs), [
570
570
  M(o.$slots, "default", {}, () => [
571
- je(
572
- ae(n.label),
571
+ Ge(
572
+ oe(n.label),
573
573
  1
574
574
  /* TEXT */
575
575
  )
576
576
  ])
577
- ], 16, Wn),
577
+ ], 16, Qn),
578
578
  M(o.$slots, "append")
579
- ], 10, Qn));
579
+ ], 10, Jn));
580
580
  }
581
- }), Tt = K(Yn), Xn = ["id"], Kn = {
581
+ }), Nt = K(Yn), Xn = ["id"], Kn = {
582
582
  key: 0,
583
583
  class: "q-field__prepend"
584
584
  }, eo = {
@@ -587,7 +587,7 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
587
587
  }, to = {
588
588
  key: 1,
589
589
  class: "q-field__extras"
590
- }, no = /* @__PURE__ */ O({
590
+ }, no = /* @__PURE__ */ G({
591
591
  inheritAttrs: !1,
592
592
  __name: "QField",
593
593
  props: {
@@ -615,26 +615,26 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
615
615
  ]);
616
616
  return n({
617
617
  fieldRef: o
618
- }), (i, l) => (y(), A("div", {
618
+ }), (i, l) => (b(), $("div", {
619
619
  id: t.id,
620
- class: W(a.value)
620
+ class: X(a.value)
621
621
  }, [
622
- t.label ? (y(), V(f(Tt), {
622
+ t.label ? (b(), Z(f(Nt), {
623
623
  key: 0,
624
624
  class: "q-field__label",
625
625
  label: t.label,
626
626
  for: t.for,
627
627
  required: t.required
628
628
  }, {
629
- prepend: C(() => [
629
+ prepend: R(() => [
630
630
  M(i.$slots, "label.prepend")
631
631
  ]),
632
- append: C(() => [
632
+ append: R(() => [
633
633
  M(i.$slots, "label.append")
634
634
  ]),
635
635
  _: 3
636
636
  /* FORWARDED */
637
- }, 8, ["label", "for", "required"])) : G("v-if", !0),
637
+ }, 8, ["label", "for", "required"])) : j("v-if", !0),
638
638
  M(i.$slots, "control", {}, () => [
639
639
  L(
640
640
  "div",
@@ -643,21 +643,21 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
643
643
  class: "q-field__control"
644
644
  }, i.$attrs),
645
645
  [
646
- i.$slots.prepend ? (y(), A("div", Kn, [
646
+ i.$slots.prepend ? (b(), $("div", Kn, [
647
647
  M(i.$slots, "prepend")
648
- ])) : G("v-if", !0),
648
+ ])) : j("v-if", !0),
649
649
  M(i.$slots, "default"),
650
- i.$slots.append ? (y(), A("div", eo, [
650
+ i.$slots.append ? (b(), $("div", eo, [
651
651
  M(i.$slots, "append")
652
- ])) : G("v-if", !0)
652
+ ])) : j("v-if", !0)
653
653
  ],
654
654
  16
655
655
  /* FULL_PROPS */
656
656
  )
657
657
  ]),
658
- i.$slots.extras ? (y(), A("div", to, [
658
+ i.$slots.extras ? (b(), $("div", to, [
659
659
  M(i.$slots, "extras")
660
- ])) : G("v-if", !0)
660
+ ])) : j("v-if", !0)
661
661
  ], 10, Xn));
662
662
  }
663
663
  }), Ft = K(no), oo = {
@@ -666,7 +666,7 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
666
666
  clear: {
667
667
  icon: "close"
668
668
  }
669
- }, ro = /* @__PURE__ */ O({
669
+ }, ro = /* @__PURE__ */ G({
670
670
  __name: "QClearButton",
671
671
  props: {
672
672
  id: {},
@@ -680,9 +680,9 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
680
680
  function r(a) {
681
681
  o("click", a);
682
682
  }
683
- return (a, i) => (y(), V(f(re), {
683
+ return (a, i) => (b(), Z(f(ne), {
684
684
  id: t.id,
685
- class: W(["q-clear-btn", t.class]),
685
+ class: X(["q-clear-btn", t.class]),
686
686
  "aria-label": t.texts.clearValue,
687
687
  variant: "ghost",
688
688
  color: "neutral",
@@ -690,10 +690,10 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
690
690
  tabindex: "-1",
691
691
  onClick: r
692
692
  }, {
693
- default: C(() => [
693
+ default: R(() => [
694
694
  S(
695
- f(X),
696
- De(Te(t.icons.clear)),
695
+ f(Y),
696
+ De(Ne(t.icons.clear)),
697
697
  null,
698
698
  16
699
699
  /* FULL_PROPS */
@@ -703,7 +703,7 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
703
703
  /* STABLE */
704
704
  }, 8, ["id", "class", "aria-label"]));
705
705
  }
706
- }), io = K(ro), lo = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], so = /* @__PURE__ */ O({
706
+ }), io = K(ro), lo = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], so = /* @__PURE__ */ G({
707
707
  inheritAttrs: !1,
708
708
  __name: "QTextField",
709
709
  props: /* @__PURE__ */ ve({
@@ -729,28 +729,28 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
729
729
  setup(e, { expose: n, emit: t }) {
730
730
  const o = e, r = t, a = Ee(e, "modelValue"), i = w({
731
731
  get: () => a.value,
732
- set: (b) => {
733
- const _ = o.maxLength;
734
- a.value = _ ? b == null ? void 0 : b.slice(0, _) : b;
732
+ set: (y) => {
733
+ const I = o.maxLength;
734
+ a.value = I ? y == null ? void 0 : y.slice(0, I) : y;
735
735
  }
736
736
  });
737
- le(a, (b) => i.value = b, { immediate: !0 });
738
- const l = st(o.id), u = T(null), c = T(null), p = w(
737
+ ie(a, (y) => i.value = y, { immediate: !0 });
738
+ const l = st(o.id), u = q(null), c = q(null), p = w(
739
739
  () => o.readonly || o.disabled ? void 0 : o.placeholder
740
- ), s = w(() => o.clearable && !o.readonly && !o.disabled), m = w(() => s.value && a.value);
741
- function g(b) {
742
- s.value && (a.value = "", r("click:clear", b));
740
+ ), s = w(() => o.clearable && !o.readonly && !o.disabled), g = w(() => s.value && a.value);
741
+ function m(y) {
742
+ s.value && (a.value = "", r("click:clear", y));
743
743
  }
744
744
  return n({
745
745
  fieldRef: w(() => {
746
- var b;
747
- return (b = u.value) == null ? void 0 : b.fieldRef;
746
+ var y;
747
+ return (y = u.value) == null ? void 0 : y.fieldRef;
748
748
  }),
749
749
  inputRef: c
750
- }), (b, _) => (y(), V(f(Ft), {
750
+ }), (y, I) => (b(), Z(f(Ft), {
751
751
  ref_key: "fieldRef",
752
752
  ref: u,
753
- class: W(["q-text-field", o.class]),
753
+ class: X(["q-text-field", o.class]),
754
754
  for: f(l),
755
755
  label: o.label,
756
756
  size: o.size,
@@ -759,18 +759,18 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
759
759
  required: o.required,
760
760
  invalid: o.invalid
761
761
  }, It({
762
- "label.prepend": C(() => [
763
- M(b.$slots, "label.prepend")
762
+ "label.prepend": R(() => [
763
+ M(y.$slots, "label.prepend")
764
764
  ]),
765
- "label.append": C(() => [
766
- M(b.$slots, "label.append")
765
+ "label.append": R(() => [
766
+ M(y.$slots, "label.append")
767
767
  ]),
768
- default: C(() => [
768
+ default: R(() => [
769
769
  St(L("input", de({
770
770
  id: f(l),
771
771
  ref_key: "inputRef",
772
772
  ref: c,
773
- "onUpdate:modelValue": _[0] || (_[0] = (E) => i.value = E),
773
+ "onUpdate:modelValue": I[0] || (I[0] = (A) => i.value = A),
774
774
  class: "q-text-field__input",
775
775
  type: o.type,
776
776
  maxlength: o.maxLength,
@@ -778,43 +778,43 @@ const Zn = ["id"], Jn = /* @__PURE__ */ O({
778
778
  placeholder: p.value,
779
779
  readonly: o.readonly,
780
780
  disabled: o.disabled
781
- }, b.$attrs), null, 16, lo), [
781
+ }, y.$attrs), null, 16, lo), [
782
782
  [Kt, i.value]
783
783
  ])
784
784
  ]),
785
785
  _: 2
786
786
  /* DYNAMIC */
787
787
  }, [
788
- b.$slots.prepend ? {
788
+ y.$slots.prepend ? {
789
789
  name: "prepend",
790
- fn: C(() => [
791
- M(b.$slots, "prepend")
790
+ fn: R(() => [
791
+ M(y.$slots, "prepend")
792
792
  ]),
793
793
  key: "0"
794
794
  } : void 0,
795
- b.$slots.append || m.value ? {
795
+ y.$slots.append || g.value ? {
796
796
  name: "append",
797
- fn: C(() => [
798
- M(b.$slots, "append"),
799
- m.value ? (y(), V(f(io), {
797
+ fn: R(() => [
798
+ M(y.$slots, "append"),
799
+ g.value ? (b(), Z(f(io), {
800
800
  key: 0,
801
801
  "data-testid": "q-text-field__clear-button",
802
802
  texts: o.texts,
803
- onClick: g
804
- }, null, 8, ["texts"])) : G("v-if", !0)
803
+ onClick: m
804
+ }, null, 8, ["texts"])) : j("v-if", !0)
805
805
  ]),
806
806
  key: "1"
807
807
  } : void 0,
808
- b.$slots.extras ? {
808
+ y.$slots.extras ? {
809
809
  name: "extras",
810
- fn: C(() => [
811
- M(b.$slots, "extras")
810
+ fn: R(() => [
811
+ M(y.$slots, "extras")
812
812
  ]),
813
813
  key: "2"
814
814
  } : void 0
815
815
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required", "invalid"]));
816
816
  }
817
- }), Ot = K(so), co = Symbol("DismissibleLayer");
817
+ }), Pt = K(so), co = Symbol("DismissibleLayer");
818
818
  function uo(e) {
819
819
  const n = rt(co);
820
820
  if (!n)
@@ -827,7 +827,7 @@ function uo(e) {
827
827
  isTop: () => n.isTop(e)
828
828
  };
829
829
  }
830
- const po = { ref: "layer" }, fo = /* @__PURE__ */ O({
830
+ const po = { ref: "layer" }, fo = /* @__PURE__ */ G({
831
831
  __name: "QDismissibleLayer",
832
832
  emits: ["escape-key-down", "pointer-down-outside", "focus-outside", "interact-outside", "dismiss"],
833
833
  setup(e, { emit: n }) {
@@ -838,26 +838,26 @@ const po = { ref: "layer" }, fo = /* @__PURE__ */ O({
838
838
  }
839
839
  function u(s) {
840
840
  if (!o.value) return;
841
- const m = s.target;
842
- if (!o.value.contains(m) && a != null && a.isTop()) {
843
- const g = new CustomEvent("focus-outside", {
841
+ const g = s.target;
842
+ if (!o.value.contains(g) && a != null && a.isTop()) {
843
+ const m = new CustomEvent("focus-outside", {
844
844
  bubbles: !1,
845
845
  cancelable: !0,
846
846
  detail: { originalEvent: s }
847
847
  });
848
- t("focus-outside", g), t("interact-outside", g), g.defaultPrevented || t("dismiss", g);
848
+ t("focus-outside", m), t("interact-outside", m), m.defaultPrevented || t("dismiss", m);
849
849
  }
850
850
  }
851
851
  function c(s) {
852
852
  if (!o.value || !(a != null && a.isTop())) return;
853
- const m = s.target;
854
- if (!o.value.contains(m)) {
855
- const g = new CustomEvent("pointer-down-outside", {
853
+ const g = s.target;
854
+ if (!o.value.contains(g)) {
855
+ const m = new CustomEvent("pointer-down-outside", {
856
856
  bubbles: !1,
857
857
  cancelable: !0,
858
858
  detail: { originalEvent: s }
859
859
  });
860
- t("pointer-down-outside", g), t("interact-outside", g), g.defaultPrevented || t("dismiss", g);
860
+ t("pointer-down-outside", m), t("interact-outside", m), m.defaultPrevented || t("dismiss", m);
861
861
  }
862
862
  }
863
863
  function p() {
@@ -881,7 +881,7 @@ const po = { ref: "layer" }, fo = /* @__PURE__ */ O({
881
881
  }), p();
882
882
  }), Dt(() => {
883
883
  a == null || a.unregister(), i.forEach((s) => s()), i = [];
884
- }), (s, m) => (y(), A(
884
+ }), (s, g) => (b(), $(
885
885
  "div",
886
886
  po,
887
887
  [
@@ -903,7 +903,7 @@ function vt(...e) {
903
903
  if (e.length !== 1)
904
904
  return Se(...e);
905
905
  const n = e[0];
906
- return typeof n == "function" ? tn(nn(() => ({ get: n, set: bo }))) : T(n);
906
+ return typeof n == "function" ? tn(nn(() => ({ get: n, set: bo }))) : q(n);
907
907
  }
908
908
  const ct = go ? window : void 0;
909
909
  function tt(e) {
@@ -928,14 +928,14 @@ function wo(e, n, t = {}) {
928
928
  a && (a.disconnect(), a = void 0);
929
929
  }, u = w(() => {
930
930
  const s = it(e);
931
- return Array.isArray(s) ? s.map((m) => tt(m)) : [tt(s)];
932
- }), c = le(
931
+ return Array.isArray(s) ? s.map((g) => tt(g)) : [tt(s)];
932
+ }), c = ie(
933
933
  u,
934
934
  (s) => {
935
935
  if (l(), i.value && o) {
936
936
  a = new ResizeObserver(n);
937
- for (const m of s)
938
- m && a.observe(m, r);
937
+ for (const g of s)
938
+ g && a.observe(g, r);
939
939
  }
940
940
  },
941
941
  { immediate: !0, flush: "post" }
@@ -959,17 +959,17 @@ function ko(e = {}) {
959
959
  return;
960
960
  let s = "";
961
961
  r.value.style[i] = "1px", l.value = (p = r.value) == null ? void 0 : p.scrollHeight;
962
- const m = it(e == null ? void 0 : e.styleTarget);
963
- m ? m.style[i] = `${l.value}px` : s = `${l.value}px`, r.value.style[i] = s;
962
+ const g = it(e == null ? void 0 : e.styleTarget);
963
+ g ? g.style[i] = `${l.value}px` : s = `${l.value}px`, r.value.style[i] = s;
964
964
  }
965
- return le([a, r], () => xe(c), { immediate: !0 }), le(l, () => {
965
+ return ie([a, r], () => xe(c), { immediate: !0 }), ie(l, () => {
966
966
  var p;
967
967
  return (p = e == null ? void 0 : e.onResize) == null ? void 0 : p.call(e);
968
968
  }), wo(r, ([{ contentRect: p }]) => {
969
969
  u.value !== p.width && _o(o, () => {
970
970
  u.value = p.width, c();
971
971
  });
972
- }), e != null && e.watch && le(e.watch, c, { immediate: !0, deep: !0 }), {
972
+ }), e != null && e.watch && ie(e.watch, c, { immediate: !0, deep: !0 }), {
973
973
  textarea: r,
974
974
  input: a,
975
975
  triggerResize: c
@@ -979,13 +979,13 @@ function ko(e = {}) {
979
979
  * tabbable 6.2.0
980
980
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
981
981
  */
982
- var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Fe = /* @__PURE__ */ Ut.join(","), Pt = typeof Element > "u", be = Pt ? function() {
983
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Oe = !Pt && Element.prototype.getRootNode ? function(e) {
982
+ var Ot = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Fe = /* @__PURE__ */ Ot.join(","), Ut = typeof Element > "u", be = Ut ? function() {
983
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Pe = !Ut && Element.prototype.getRootNode ? function(e) {
984
984
  var n;
985
985
  return e == null || (n = e.getRootNode) === null || n === void 0 ? void 0 : n.call(e);
986
986
  } : function(e) {
987
987
  return e == null ? void 0 : e.ownerDocument;
988
- }, Ue = function e(n, t) {
988
+ }, Oe = function e(n, t) {
989
989
  var o;
990
990
  t === void 0 && (t = !0);
991
991
  var r = n == null || (o = n.getAttribute) === null || o === void 0 ? void 0 : o.call(n, "inert"), a = r === "" || r === "true", i = a || t && n && e(n.parentNode);
@@ -993,15 +993,15 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
993
993
  }, $o = function(e) {
994
994
  var n, t = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
995
995
  return t === "" || t === "true";
996
- }, Gt = function(e, n, t) {
997
- if (Ue(e))
996
+ }, jt = function(e, n, t) {
997
+ if (Oe(e))
998
998
  return [];
999
999
  var o = Array.prototype.slice.apply(e.querySelectorAll(Fe));
1000
1000
  return n && be.call(e, Fe) && o.unshift(e), o = o.filter(t), o;
1001
- }, jt = function e(n, t, o) {
1001
+ }, Gt = function e(n, t, o) {
1002
1002
  for (var r = [], a = Array.from(n); a.length; ) {
1003
1003
  var i = a.shift();
1004
- if (!Ue(i, !1))
1004
+ if (!Oe(i, !1))
1005
1005
  if (i.tagName === "SLOT") {
1006
1006
  var l = i.assignedElements(), u = l.length ? l : i.children, c = e(u, !0, o);
1007
1007
  o.flatten ? r.push.apply(r, c) : r.push({
@@ -1012,12 +1012,12 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1012
1012
  var p = be.call(i, Fe);
1013
1013
  p && o.filter(i) && (t || !n.includes(i)) && r.push(i);
1014
1014
  var s = i.shadowRoot || // check for an undisclosed shadow
1015
- typeof o.getShadowRoot == "function" && o.getShadowRoot(i), m = !Ue(s, !1) && (!o.shadowRootFilter || o.shadowRootFilter(i));
1016
- if (s && m) {
1017
- var g = e(s === !0 ? i.children : s.children, !0, o);
1018
- o.flatten ? r.push.apply(r, g) : r.push({
1015
+ typeof o.getShadowRoot == "function" && o.getShadowRoot(i), g = !Oe(s, !1) && (!o.shadowRootFilter || o.shadowRootFilter(i));
1016
+ if (s && g) {
1017
+ var m = e(s === !0 ? i.children : s.children, !0, o);
1018
+ o.flatten ? r.push.apply(r, m) : r.push({
1019
1019
  scopeParent: i,
1020
- candidates: g
1020
+ candidates: m
1021
1021
  });
1022
1022
  } else
1023
1023
  a.unshift.apply(a, i.children);
@@ -1051,7 +1051,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1051
1051
  }, Eo = function(e) {
1052
1052
  if (!e.name)
1053
1053
  return !0;
1054
- var n = e.form || Oe(e), t = function(a) {
1054
+ var n = e.form || Pe(e), t = function(a) {
1055
1055
  return n.querySelectorAll('input[type="radio"][name="' + a + '"]');
1056
1056
  }, o;
1057
1057
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
@@ -1069,12 +1069,12 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1069
1069
  }, Bo = function(e) {
1070
1070
  return Co(e) && !Eo(e);
1071
1071
  }, Ro = function(e) {
1072
- var n, t = e && Oe(e), o = (n = t) === null || n === void 0 ? void 0 : n.host, r = !1;
1072
+ var n, t = e && Pe(e), o = (n = t) === null || n === void 0 ? void 0 : n.host, r = !1;
1073
1073
  if (t && t !== e) {
1074
1074
  var a, i, l;
1075
1075
  for (r = !!((a = o) !== null && a !== void 0 && (i = a.ownerDocument) !== null && i !== void 0 && i.contains(o) || e != null && (l = e.ownerDocument) !== null && l !== void 0 && l.contains(e)); !r && o; ) {
1076
1076
  var u, c, p;
1077
- t = Oe(o), o = (u = t) === null || u === void 0 ? void 0 : u.host, r = !!((c = o) !== null && c !== void 0 && (p = c.ownerDocument) !== null && p !== void 0 && p.contains(o));
1077
+ t = Pe(o), o = (u = t) === null || u === void 0 ? void 0 : u.host, r = !!((c = o) !== null && c !== void 0 && (p = c.ownerDocument) !== null && p !== void 0 && p.contains(o));
1078
1078
  }
1079
1079
  }
1080
1080
  return r;
@@ -1091,7 +1091,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1091
1091
  if (!t || t === "full" || t === "legacy-full") {
1092
1092
  if (typeof o == "function") {
1093
1093
  for (var i = e; e; ) {
1094
- var l = e.parentElement, u = Oe(e);
1094
+ var l = e.parentElement, u = Pe(e);
1095
1095
  if (l && !l.shadowRoot && o(l) === !0)
1096
1096
  return mt(e);
1097
1097
  e.assignedSlot ? e = e.assignedSlot : !l && u !== e.ownerDocument ? e = u.host : e = l;
@@ -1105,7 +1105,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1105
1105
  } else if (t === "non-zero-area")
1106
1106
  return mt(e);
1107
1107
  return !1;
1108
- }, qo = function(e) {
1108
+ }, Mo = function(e) {
1109
1109
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
1110
1110
  for (var n = e.parentElement; n; ) {
1111
1111
  if (n.tagName === "FIELDSET" && n.disabled) {
@@ -1119,18 +1119,18 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1119
1119
  n = n.parentElement;
1120
1120
  }
1121
1121
  return !1;
1122
- }, Pe = function(e, n) {
1122
+ }, Ue = function(e, n) {
1123
1123
  return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
1124
1124
  // because we're limited in the type of selectors we can use in JSDom (see related
1125
1125
  // note related to `candidateSelectors`)
1126
- Ue(n) || Io(n) || Lo(n, e) || // For a details element with a summary, the summary element gets the focus
1127
- So(n) || qo(n));
1126
+ Oe(n) || Io(n) || Lo(n, e) || // For a details element with a summary, the summary element gets the focus
1127
+ So(n) || Mo(n));
1128
1128
  }, nt = function(e, n) {
1129
- return !(Bo(n) || ge(n) < 0 || !Pe(e, n));
1130
- }, Mo = function(e) {
1129
+ return !(Bo(n) || ge(n) < 0 || !Ue(e, n));
1130
+ }, qo = function(e) {
1131
1131
  var n = parseInt(e.getAttribute("tabindex"), 10);
1132
1132
  return !!(isNaN(n) || n >= 0);
1133
- }, No = function e(n) {
1133
+ }, To = function e(n) {
1134
1134
  var t = [], o = [];
1135
1135
  return n.forEach(function(r, a) {
1136
1136
  var i = !!r.scopeParent, l = i ? r.scopeParent : r, u = Ao(l, i), c = i ? e(r.candidates) : l;
@@ -1144,31 +1144,31 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1144
1144
  }), o.sort(xo).reduce(function(r, a) {
1145
1145
  return a.isScope ? r.push.apply(r, a.content) : r.push(a.content), r;
1146
1146
  }, []).concat(t);
1147
- }, To = function(e, n) {
1147
+ }, No = function(e, n) {
1148
1148
  n = n || {};
1149
1149
  var t;
1150
- return n.getShadowRoot ? t = jt([e], n.includeContainer, {
1150
+ return n.getShadowRoot ? t = Gt([e], n.includeContainer, {
1151
1151
  filter: nt.bind(null, n),
1152
1152
  flatten: !1,
1153
1153
  getShadowRoot: n.getShadowRoot,
1154
- shadowRootFilter: Mo
1155
- }) : t = Gt(e, n.includeContainer, nt.bind(null, n)), No(t);
1154
+ shadowRootFilter: qo
1155
+ }) : t = jt(e, n.includeContainer, nt.bind(null, n)), To(t);
1156
1156
  }, Fo = function(e, n) {
1157
1157
  n = n || {};
1158
1158
  var t;
1159
- return n.getShadowRoot ? t = jt([e], n.includeContainer, {
1160
- filter: Pe.bind(null, n),
1159
+ return n.getShadowRoot ? t = Gt([e], n.includeContainer, {
1160
+ filter: Ue.bind(null, n),
1161
1161
  flatten: !0,
1162
1162
  getShadowRoot: n.getShadowRoot
1163
- }) : t = Gt(e, n.includeContainer, Pe.bind(null, n)), t;
1163
+ }) : t = jt(e, n.includeContainer, Ue.bind(null, n)), t;
1164
1164
  }, ye = function(e, n) {
1165
1165
  if (n = n || {}, !e)
1166
1166
  throw new Error("No node provided");
1167
1167
  return be.call(e, Fe) === !1 ? !1 : nt(n, e);
1168
- }, Oo = /* @__PURE__ */ Ut.concat("iframe").join(","), He = function(e, n) {
1168
+ }, Po = /* @__PURE__ */ Ot.concat("iframe").join(","), He = function(e, n) {
1169
1169
  if (n = n || {}, !e)
1170
1170
  throw new Error("No node provided");
1171
- return be.call(e, Oo) === !1 ? !1 : Pe(n, e);
1171
+ return be.call(e, Po) === !1 ? !1 : Ue(n, e);
1172
1172
  };
1173
1173
  /*!
1174
1174
  * focus-trap 7.6.4
@@ -1179,10 +1179,10 @@ function ot(e, n) {
1179
1179
  for (var t = 0, o = Array(n); t < n; t++) o[t] = e[t];
1180
1180
  return o;
1181
1181
  }
1182
- function Uo(e) {
1182
+ function Oo(e) {
1183
1183
  if (Array.isArray(e)) return ot(e);
1184
1184
  }
1185
- function Po(e, n, t) {
1185
+ function Uo(e, n, t) {
1186
1186
  return (n = Ho(n)) in e ? Object.defineProperty(e, n, {
1187
1187
  value: t,
1188
1188
  enumerable: !0,
@@ -1190,10 +1190,10 @@ function Po(e, n, t) {
1190
1190
  writable: !0
1191
1191
  }) : e[n] = t, e;
1192
1192
  }
1193
- function Go(e) {
1193
+ function jo(e) {
1194
1194
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1195
1195
  }
1196
- function jo() {
1196
+ function Go() {
1197
1197
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1198
1198
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1199
1199
  }
@@ -1211,7 +1211,7 @@ function bt(e) {
1211
1211
  for (var n = 1; n < arguments.length; n++) {
1212
1212
  var t = arguments[n] != null ? arguments[n] : {};
1213
1213
  n % 2 ? gt(Object(t), !0).forEach(function(o) {
1214
- Po(e, o, t[o]);
1214
+ Uo(e, o, t[o]);
1215
1215
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : gt(Object(t)).forEach(function(o) {
1216
1216
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
1217
1217
  });
@@ -1219,7 +1219,7 @@ function bt(e) {
1219
1219
  return e;
1220
1220
  }
1221
1221
  function zo(e) {
1222
- return Uo(e) || Go(e) || Zo(e) || jo();
1222
+ return Oo(e) || jo(e) || Zo(e) || Go();
1223
1223
  }
1224
1224
  function Vo(e, n) {
1225
1225
  if (typeof e != "object" || !e) return e;
@@ -1255,13 +1255,13 @@ var ht = {
1255
1255
  var t = e.indexOf(n);
1256
1256
  t !== -1 && e.splice(t, 1), e.length > 0 && !e[e.length - 1]._isManuallyPaused() && e[e.length - 1]._setPausedState(!1);
1257
1257
  }
1258
- }, Jo = function(e) {
1258
+ }, Wo = function(e) {
1259
1259
  return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
1260
- }, Qo = function(e) {
1260
+ }, Jo = function(e) {
1261
1261
  return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
1262
1262
  }, Ie = function(e) {
1263
1263
  return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
1264
- }, Wo = function(e) {
1264
+ }, Qo = function(e) {
1265
1265
  return Ie(e) && !e.shiftKey;
1266
1266
  }, Yo = function(e) {
1267
1267
  return Ie(e) && e.shiftKey;
@@ -1278,7 +1278,7 @@ var ht = {
1278
1278
  returnFocusOnDeactivate: !0,
1279
1279
  escapeDeactivates: !0,
1280
1280
  delayInitialFocus: !0,
1281
- isKeyForward: Wo,
1281
+ isKeyForward: Qo,
1282
1282
  isKeyBackward: Yo
1283
1283
  }, n), a = {
1284
1284
  // containers given to createFocusTrap()
@@ -1317,35 +1317,35 @@ var ht = {
1317
1317
  delayInitialFocusTimer: void 0,
1318
1318
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
1319
1319
  recentNavEvent: void 0
1320
- }, i, l = function(d, v, $) {
1321
- return d && d[v] !== void 0 ? d[v] : r[$ || v];
1320
+ }, i, l = function(d, v, _) {
1321
+ return d && d[v] !== void 0 ? d[v] : r[_ || v];
1322
1322
  }, u = function(d, v) {
1323
- var $ = typeof (v == null ? void 0 : v.composedPath) == "function" ? v.composedPath() : void 0;
1324
- return a.containerGroups.findIndex(function(q) {
1325
- var I = q.container, U = q.tabbableNodes;
1326
- return I.contains(d) || // fall back to explicit tabbable search which will take into consideration any
1323
+ var _ = typeof (v == null ? void 0 : v.composedPath) == "function" ? v.composedPath() : void 0;
1324
+ return a.containerGroups.findIndex(function(C) {
1325
+ var D = C.container, P = C.tabbableNodes;
1326
+ return D.contains(d) || // fall back to explicit tabbable search which will take into consideration any
1327
1327
  // web components if the `tabbableOptions.getShadowRoot` option was used for
1328
1328
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
1329
1329
  // look inside web components even if open)
1330
- ($ == null ? void 0 : $.includes(I)) || U.find(function(R) {
1331
- return R === d;
1330
+ (_ == null ? void 0 : _.includes(D)) || P.find(function(B) {
1331
+ return B === d;
1332
1332
  });
1333
1333
  });
1334
1334
  }, c = function(d) {
1335
- var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, $ = v.hasFallback, q = $ === void 0 ? !1 : $, I = v.params, U = I === void 0 ? [] : I, R = r[d];
1336
- if (typeof R == "function" && (R = R.apply(void 0, zo(U))), R === !0 && (R = void 0), !R) {
1337
- if (R === void 0 || R === !1)
1338
- return R;
1335
+ var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = v.hasFallback, C = _ === void 0 ? !1 : _, D = v.params, P = D === void 0 ? [] : D, B = r[d];
1336
+ if (typeof B == "function" && (B = B.apply(void 0, zo(P))), B === !0 && (B = void 0), !B) {
1337
+ if (B === void 0 || B === !1)
1338
+ return B;
1339
1339
  throw new Error("`".concat(d, "` was specified but was not a node, or did not return a node"));
1340
1340
  }
1341
- var H = R;
1342
- if (typeof R == "string") {
1341
+ var H = B;
1342
+ if (typeof B == "string") {
1343
1343
  try {
1344
- H = t.querySelector(R);
1344
+ H = t.querySelector(B);
1345
1345
  } catch (h) {
1346
1346
  throw new Error("`".concat(d, '` appears to be an invalid selector; error="').concat(h.message, '"'));
1347
1347
  }
1348
- if (!H && !q)
1348
+ if (!H && !C)
1349
1349
  throw new Error("`".concat(d, "` as selector refers to no known node"));
1350
1350
  }
1351
1351
  return H;
@@ -1359,8 +1359,8 @@ var ht = {
1359
1359
  if (u(t.activeElement) >= 0)
1360
1360
  d = t.activeElement;
1361
1361
  else {
1362
- var v = a.tabbableGroups[0], $ = v && v.firstTabbableNode;
1363
- d = $ || c("fallbackFocus");
1362
+ var v = a.tabbableGroups[0], _ = v && v.firstTabbableNode;
1363
+ d = _ || c("fallbackFocus");
1364
1364
  }
1365
1365
  else d === null && (d = c("fallbackFocus"));
1366
1366
  if (!d)
@@ -1368,9 +1368,9 @@ var ht = {
1368
1368
  return d;
1369
1369
  }, s = function() {
1370
1370
  if (a.containerGroups = a.containers.map(function(d) {
1371
- var v = To(d, r.tabbableOptions), $ = Fo(d, r.tabbableOptions), q = v.length > 0 ? v[0] : void 0, I = v.length > 0 ? v[v.length - 1] : void 0, U = $.find(function(h) {
1371
+ var v = No(d, r.tabbableOptions), _ = Fo(d, r.tabbableOptions), C = v.length > 0 ? v[0] : void 0, D = v.length > 0 ? v[v.length - 1] : void 0, P = _.find(function(h) {
1372
1372
  return ye(h);
1373
- }), R = $.slice().reverse().find(function(h) {
1373
+ }), B = _.slice().reverse().find(function(h) {
1374
1374
  return ye(h);
1375
1375
  }), H = !!v.find(function(h) {
1376
1376
  return ge(h) > 0;
@@ -1378,13 +1378,13 @@ var ht = {
1378
1378
  return {
1379
1379
  container: d,
1380
1380
  tabbableNodes: v,
1381
- focusableNodes: $,
1381
+ focusableNodes: _,
1382
1382
  /** True if at least one node with positive `tabindex` was found in this container. */
1383
1383
  posTabIndexesFound: H,
1384
1384
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
1385
- firstTabbableNode: q,
1385
+ firstTabbableNode: C,
1386
1386
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
1387
- lastTabbableNode: I,
1387
+ lastTabbableNode: D,
1388
1388
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
1389
1389
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
1390
1390
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -1393,9 +1393,9 @@ var ht = {
1393
1393
  // "close enough most of the time" alternative for positive tabindexes which should generally
1394
1394
  // be avoided anyway...
1395
1395
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
1396
- firstDomTabbableNode: U,
1396
+ firstDomTabbableNode: P,
1397
1397
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
1398
- lastDomTabbableNode: R,
1398
+ lastDomTabbableNode: B,
1399
1399
  /**
1400
1400
  * Finds the __tabbable__ node that follows the given node in the specified direction,
1401
1401
  * in this container, if any.
@@ -1405,12 +1405,12 @@ var ht = {
1405
1405
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
1406
1406
  */
1407
1407
  nextTabbableNode: function(h) {
1408
- var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, N = v.indexOf(h);
1409
- return N < 0 ? x ? $.slice($.indexOf(h) + 1).find(function(F) {
1410
- return ye(F);
1411
- }) : $.slice(0, $.indexOf(h)).reverse().find(function(F) {
1412
- return ye(F);
1413
- }) : v[N + (x ? 1 : -1)];
1408
+ var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, T = v.indexOf(h);
1409
+ return T < 0 ? x ? _.slice(_.indexOf(h) + 1).find(function(N) {
1410
+ return ye(N);
1411
+ }) : _.slice(0, _.indexOf(h)).reverse().find(function(N) {
1412
+ return ye(N);
1413
+ }) : v[T + (x ? 1 : -1)];
1414
1414
  }
1415
1415
  };
1416
1416
  }), a.tabbableGroups = a.containerGroups.filter(function(d) {
@@ -1421,56 +1421,56 @@ var ht = {
1421
1421
  return d.posTabIndexesFound;
1422
1422
  }) && a.containerGroups.length > 1)
1423
1423
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
1424
- }, m = function(d) {
1424
+ }, g = function(d) {
1425
1425
  var v = d.activeElement;
1426
1426
  if (v)
1427
- return v.shadowRoot && v.shadowRoot.activeElement !== null ? m(v.shadowRoot) : v;
1428
- }, g = function(d) {
1429
- if (d !== !1 && d !== m(document)) {
1427
+ return v.shadowRoot && v.shadowRoot.activeElement !== null ? g(v.shadowRoot) : v;
1428
+ }, m = function(d) {
1429
+ if (d !== !1 && d !== g(document)) {
1430
1430
  if (!d || !d.focus) {
1431
- g(p());
1431
+ m(p());
1432
1432
  return;
1433
1433
  }
1434
1434
  d.focus({
1435
1435
  preventScroll: !!r.preventScroll
1436
- }), a.mostRecentlyFocusedNode = d, Jo(d) && d.select();
1436
+ }), a.mostRecentlyFocusedNode = d, Wo(d) && d.select();
1437
1437
  }
1438
- }, b = function(d) {
1438
+ }, y = function(d) {
1439
1439
  var v = c("setReturnFocus", {
1440
1440
  params: [d]
1441
1441
  });
1442
1442
  return v || (v === !1 ? !1 : d);
1443
- }, _ = function(d) {
1444
- var v = d.target, $ = d.event, q = d.isBackward, I = q === void 0 ? !1 : q;
1445
- v = v || Re($), s();
1446
- var U = null;
1443
+ }, I = function(d) {
1444
+ var v = d.target, _ = d.event, C = d.isBackward, D = C === void 0 ? !1 : C;
1445
+ v = v || Re(_), s();
1446
+ var P = null;
1447
1447
  if (a.tabbableGroups.length > 0) {
1448
- var R = u(v, $), H = R >= 0 ? a.containerGroups[R] : void 0;
1449
- if (R < 0)
1450
- I ? U = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : U = a.tabbableGroups[0].firstTabbableNode;
1451
- else if (I) {
1448
+ var B = u(v, _), H = B >= 0 ? a.containerGroups[B] : void 0;
1449
+ if (B < 0)
1450
+ D ? P = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : P = a.tabbableGroups[0].firstTabbableNode;
1451
+ else if (D) {
1452
1452
  var h = a.tabbableGroups.findIndex(function(fe) {
1453
- var ie = fe.firstTabbableNode;
1454
- return v === ie;
1453
+ var re = fe.firstTabbableNode;
1454
+ return v === re;
1455
1455
  });
1456
- if (h < 0 && (H.container === v || He(v, r.tabbableOptions) && !ye(v, r.tabbableOptions) && !H.nextTabbableNode(v, !1)) && (h = R), h >= 0) {
1457
- var x = h === 0 ? a.tabbableGroups.length - 1 : h - 1, N = a.tabbableGroups[x];
1458
- U = ge(v) >= 0 ? N.lastTabbableNode : N.lastDomTabbableNode;
1459
- } else Ie($) || (U = H.nextTabbableNode(v, !1));
1456
+ if (h < 0 && (H.container === v || He(v, r.tabbableOptions) && !ye(v, r.tabbableOptions) && !H.nextTabbableNode(v, !1)) && (h = B), h >= 0) {
1457
+ var x = h === 0 ? a.tabbableGroups.length - 1 : h - 1, T = a.tabbableGroups[x];
1458
+ P = ge(v) >= 0 ? T.lastTabbableNode : T.lastDomTabbableNode;
1459
+ } else Ie(_) || (P = H.nextTabbableNode(v, !1));
1460
1460
  } else {
1461
- var F = a.tabbableGroups.findIndex(function(fe) {
1462
- var ie = fe.lastTabbableNode;
1463
- return v === ie;
1461
+ var N = a.tabbableGroups.findIndex(function(fe) {
1462
+ var re = fe.lastTabbableNode;
1463
+ return v === re;
1464
1464
  });
1465
- if (F < 0 && (H.container === v || He(v, r.tabbableOptions) && !ye(v, r.tabbableOptions) && !H.nextTabbableNode(v)) && (F = R), F >= 0) {
1466
- var J = F === a.tabbableGroups.length - 1 ? 0 : F + 1, se = a.tabbableGroups[J];
1467
- U = ge(v) >= 0 ? se.firstTabbableNode : se.firstDomTabbableNode;
1468
- } else Ie($) || (U = H.nextTabbableNode(v));
1465
+ if (N < 0 && (H.container === v || He(v, r.tabbableOptions) && !ye(v, r.tabbableOptions) && !H.nextTabbableNode(v)) && (N = B), N >= 0) {
1466
+ var Q = N === a.tabbableGroups.length - 1 ? 0 : N + 1, se = a.tabbableGroups[Q];
1467
+ P = ge(v) >= 0 ? se.firstTabbableNode : se.firstDomTabbableNode;
1468
+ } else Ie(_) || (P = H.nextTabbableNode(v));
1469
1469
  }
1470
1470
  } else
1471
- U = c("fallbackFocus");
1472
- return U;
1473
- }, E = function(d) {
1471
+ P = c("fallbackFocus");
1472
+ return P;
1473
+ }, A = function(d) {
1474
1474
  var v = Re(d);
1475
1475
  if (!(u(v, d) >= 0)) {
1476
1476
  if (Ae(r.clickOutsideDeactivates, d)) {
@@ -1487,84 +1487,84 @@ var ht = {
1487
1487
  }
1488
1488
  Ae(r.allowOutsideClick, d) || d.preventDefault();
1489
1489
  }
1490
- }, Y = function(d) {
1491
- var v = Re(d), $ = u(v, d) >= 0;
1492
- if ($ || v instanceof Document)
1493
- $ && (a.mostRecentlyFocusedNode = v);
1490
+ }, O = function(d) {
1491
+ var v = Re(d), _ = u(v, d) >= 0;
1492
+ if (_ || v instanceof Document)
1493
+ _ && (a.mostRecentlyFocusedNode = v);
1494
1494
  else {
1495
1495
  d.stopImmediatePropagation();
1496
- var q, I = !0;
1496
+ var C, D = !0;
1497
1497
  if (a.mostRecentlyFocusedNode)
1498
1498
  if (ge(a.mostRecentlyFocusedNode) > 0) {
1499
- var U = u(a.mostRecentlyFocusedNode), R = a.containerGroups[U].tabbableNodes;
1500
- if (R.length > 0) {
1501
- var H = R.findIndex(function(h) {
1499
+ var P = u(a.mostRecentlyFocusedNode), B = a.containerGroups[P].tabbableNodes;
1500
+ if (B.length > 0) {
1501
+ var H = B.findIndex(function(h) {
1502
1502
  return h === a.mostRecentlyFocusedNode;
1503
1503
  });
1504
- H >= 0 && (r.isKeyForward(a.recentNavEvent) ? H + 1 < R.length && (q = R[H + 1], I = !1) : H - 1 >= 0 && (q = R[H - 1], I = !1));
1504
+ H >= 0 && (r.isKeyForward(a.recentNavEvent) ? H + 1 < B.length && (C = B[H + 1], D = !1) : H - 1 >= 0 && (C = B[H - 1], D = !1));
1505
1505
  }
1506
1506
  } else
1507
1507
  a.containerGroups.some(function(h) {
1508
1508
  return h.tabbableNodes.some(function(x) {
1509
1509
  return ge(x) > 0;
1510
1510
  });
1511
- }) || (I = !1);
1511
+ }) || (D = !1);
1512
1512
  else
1513
- I = !1;
1514
- I && (q = _({
1513
+ D = !1;
1514
+ D && (C = I({
1515
1515
  // move FROM the MRU node, not event-related node (which will be the node that is
1516
1516
  // outside the trap causing the focus escape we're trying to fix)
1517
1517
  target: a.mostRecentlyFocusedNode,
1518
1518
  isBackward: r.isKeyBackward(a.recentNavEvent)
1519
- })), g(q || a.mostRecentlyFocusedNode || p());
1519
+ })), m(C || a.mostRecentlyFocusedNode || p());
1520
1520
  }
1521
1521
  a.recentNavEvent = void 0;
1522
1522
  }, z = function(d) {
1523
1523
  var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1524
1524
  a.recentNavEvent = d;
1525
- var $ = _({
1525
+ var _ = I({
1526
1526
  event: d,
1527
1527
  isBackward: v
1528
1528
  });
1529
- $ && (Ie(d) && d.preventDefault(), g($));
1530
- }, j = function(d) {
1529
+ _ && (Ie(d) && d.preventDefault(), m(_));
1530
+ }, W = function(d) {
1531
1531
  (r.isKeyForward(d) || r.isKeyBackward(d)) && z(d, r.isKeyBackward(d));
1532
- }, Q = function(d) {
1533
- Qo(d) && Ae(r.escapeDeactivates, d) !== !1 && (d.preventDefault(), i.deactivate());
1534
- }, Z = function(d) {
1532
+ }, J = function(d) {
1533
+ Jo(d) && Ae(r.escapeDeactivates, d) !== !1 && (d.preventDefault(), i.deactivate());
1534
+ }, V = function(d) {
1535
1535
  var v = Re(d);
1536
1536
  u(v, d) >= 0 || Ae(r.clickOutsideDeactivates, d) || Ae(r.allowOutsideClick, d) || (d.preventDefault(), d.stopImmediatePropagation());
1537
- }, B = function() {
1537
+ }, E = function() {
1538
1538
  if (a.active)
1539
1539
  return ht.activateTrap(o, i), a.delayInitialFocusTimer = r.delayInitialFocus ? yt(function() {
1540
- g(p());
1541
- }) : g(p()), t.addEventListener("focusin", Y, !0), t.addEventListener("mousedown", E, {
1540
+ m(p());
1541
+ }) : m(p()), t.addEventListener("focusin", O, !0), t.addEventListener("mousedown", A, {
1542
1542
  capture: !0,
1543
1543
  passive: !1
1544
- }), t.addEventListener("touchstart", E, {
1544
+ }), t.addEventListener("touchstart", A, {
1545
1545
  capture: !0,
1546
1546
  passive: !1
1547
- }), t.addEventListener("click", Z, {
1547
+ }), t.addEventListener("click", V, {
1548
1548
  capture: !0,
1549
1549
  passive: !1
1550
- }), t.addEventListener("keydown", j, {
1550
+ }), t.addEventListener("keydown", W, {
1551
1551
  capture: !0,
1552
1552
  passive: !1
1553
- }), t.addEventListener("keydown", Q), i;
1554
- }, P = function() {
1553
+ }), t.addEventListener("keydown", J), i;
1554
+ }, U = function() {
1555
1555
  if (a.active)
1556
- return t.removeEventListener("focusin", Y, !0), t.removeEventListener("mousedown", E, !0), t.removeEventListener("touchstart", E, !0), t.removeEventListener("click", Z, !0), t.removeEventListener("keydown", j, !0), t.removeEventListener("keydown", Q), i;
1557
- }, D = function(d) {
1558
- var v = d.some(function($) {
1559
- var q = Array.from($.removedNodes);
1560
- return q.some(function(I) {
1561
- return I === a.mostRecentlyFocusedNode;
1556
+ return t.removeEventListener("focusin", O, !0), t.removeEventListener("mousedown", A, !0), t.removeEventListener("touchstart", A, !0), t.removeEventListener("click", V, !0), t.removeEventListener("keydown", W, !0), t.removeEventListener("keydown", J), i;
1557
+ }, F = function(d) {
1558
+ var v = d.some(function(_) {
1559
+ var C = Array.from(_.removedNodes);
1560
+ return C.some(function(D) {
1561
+ return D === a.mostRecentlyFocusedNode;
1562
1562
  });
1563
1563
  });
1564
- v && g(p());
1565
- }, te = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(D) : void 0, ne = function() {
1566
- te && (te.disconnect(), a.active && !a.paused && a.containers.map(function(d) {
1567
- te.observe(d, {
1564
+ v && m(p());
1565
+ }, le = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(F) : void 0, ae = function() {
1566
+ le && (le.disconnect(), a.active && !a.paused && a.containers.map(function(d) {
1567
+ le.observe(d, {
1568
1568
  subtree: !0,
1569
1569
  childList: !0
1570
1570
  });
@@ -1580,12 +1580,12 @@ var ht = {
1580
1580
  activate: function(d) {
1581
1581
  if (a.active)
1582
1582
  return this;
1583
- var v = l(d, "onActivate"), $ = l(d, "onPostActivate"), q = l(d, "checkCanFocusTrap");
1584
- q || s(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = t.activeElement, v == null || v();
1585
- var I = function() {
1586
- q && s(), B(), ne(), $ == null || $();
1583
+ var v = l(d, "onActivate"), _ = l(d, "onPostActivate"), C = l(d, "checkCanFocusTrap");
1584
+ C || s(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = t.activeElement, v == null || v();
1585
+ var D = function() {
1586
+ C && s(), E(), ae(), _ == null || _();
1587
1587
  };
1588
- return q ? (q(a.containers.concat()).then(I, I), this) : (I(), this);
1588
+ return C ? (C(a.containers.concat()).then(D, D), this) : (D(), this);
1589
1589
  },
1590
1590
  deactivate: function(d) {
1591
1591
  if (!a.active)
@@ -1595,15 +1595,15 @@ var ht = {
1595
1595
  onPostDeactivate: r.onPostDeactivate,
1596
1596
  checkCanReturnFocus: r.checkCanReturnFocus
1597
1597
  }, d);
1598
- clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, P(), a.active = !1, a.paused = !1, ne(), ht.deactivateTrap(o, i);
1599
- var $ = l(v, "onDeactivate"), q = l(v, "onPostDeactivate"), I = l(v, "checkCanReturnFocus"), U = l(v, "returnFocus", "returnFocusOnDeactivate");
1600
- $ == null || $();
1601
- var R = function() {
1598
+ clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, U(), a.active = !1, a.paused = !1, ae(), ht.deactivateTrap(o, i);
1599
+ var _ = l(v, "onDeactivate"), C = l(v, "onPostDeactivate"), D = l(v, "checkCanReturnFocus"), P = l(v, "returnFocus", "returnFocusOnDeactivate");
1600
+ _ == null || _();
1601
+ var B = function() {
1602
1602
  yt(function() {
1603
- U && g(b(a.nodeFocusedBeforeActivation)), q == null || q();
1603
+ P && m(y(a.nodeFocusedBeforeActivation)), C == null || C();
1604
1604
  });
1605
1605
  };
1606
- return U && I ? (I(b(a.nodeFocusedBeforeActivation)).then(R, R), this) : (R(), this);
1606
+ return P && D ? (D(y(a.nodeFocusedBeforeActivation)).then(B, B), this) : (B(), this);
1607
1607
  },
1608
1608
  pause: function(d) {
1609
1609
  return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, d)) : this;
@@ -1613,9 +1613,9 @@ var ht = {
1613
1613
  },
1614
1614
  updateContainerElements: function(d) {
1615
1615
  var v = [].concat(d).filter(Boolean);
1616
- return a.containers = v.map(function($) {
1617
- return typeof $ == "string" ? t.querySelector($) : $;
1618
- }), a.active && s(), ne(), this;
1616
+ return a.containers = v.map(function(_) {
1617
+ return typeof _ == "string" ? t.querySelector(_) : _;
1618
+ }), a.active && s(), ae(), this;
1619
1619
  }
1620
1620
  }, Object.defineProperties(i, {
1621
1621
  _isManuallyPaused: {
@@ -1628,24 +1628,24 @@ var ht = {
1628
1628
  if (a.paused === d)
1629
1629
  return this;
1630
1630
  if (a.paused = d, d) {
1631
- var $ = l(v, "onPause"), q = l(v, "onPostPause");
1632
- $ == null || $(), P(), ne(), q == null || q();
1631
+ var _ = l(v, "onPause"), C = l(v, "onPostPause");
1632
+ _ == null || _(), U(), ae(), C == null || C();
1633
1633
  } else {
1634
- var I = l(v, "onUnpause"), U = l(v, "onPostUnpause");
1635
- I == null || I(), s(), B(), ne(), U == null || U();
1634
+ var D = l(v, "onUnpause"), P = l(v, "onPostUnpause");
1635
+ D == null || D(), s(), E(), ae(), P == null || P();
1636
1636
  }
1637
1637
  return this;
1638
1638
  }
1639
1639
  }
1640
1640
  }), i.updateContainerElements(e), i;
1641
1641
  };
1642
- const ea = /* @__PURE__ */ O({
1642
+ const ea = /* @__PURE__ */ G({
1643
1643
  name: "UseFocusTrap",
1644
1644
  props: ["as", "options"],
1645
1645
  setup(e, { slots: n }) {
1646
1646
  let t;
1647
- const o = T(), r = () => t && t.activate(), a = () => t && t.deactivate();
1648
- return le(
1647
+ const o = q(), r = () => t && t.activate(), a = () => t && t.deactivate();
1648
+ return ie(
1649
1649
  () => tt(o),
1650
1650
  (i) => {
1651
1651
  i && (t = Ko(i, e.options || {}), r());
@@ -1656,7 +1656,7 @@ const ea = /* @__PURE__ */ O({
1656
1656
  return Ye(e.as || "div", { ref: o }, n.default());
1657
1657
  };
1658
1658
  }
1659
- }), ta = /* @__PURE__ */ O({
1659
+ }), ta = /* @__PURE__ */ G({
1660
1660
  __name: "QFocusTrap",
1661
1661
  props: /* @__PURE__ */ ve({
1662
1662
  options: {},
@@ -1668,11 +1668,11 @@ const ea = /* @__PURE__ */ O({
1668
1668
  emits: ["update:disabled"],
1669
1669
  setup(e) {
1670
1670
  const n = e, t = Ee(e, "disabled");
1671
- return (o, r) => t.value ? M(o.$slots, "default", { key: 0 }) : (y(), V(
1671
+ return (o, r) => t.value ? M(o.$slots, "default", { key: 0 }) : (b(), Z(
1672
1672
  f(ea),
1673
1673
  De(de({ key: 1 }, n)),
1674
1674
  {
1675
- default: C(() => [
1675
+ default: R(() => [
1676
1676
  M(o.$slots, "default")
1677
1677
  ]),
1678
1678
  _: 3
@@ -1682,14 +1682,14 @@ const ea = /* @__PURE__ */ O({
1682
1682
  /* FULL_PROPS */
1683
1683
  ));
1684
1684
  }
1685
- }), na = K(ta), we = "data-scroll-locked", Ze = "right-scroll-bar-position", Je = "width-before-scroll-bar", oa = "with-scroll-bars-hidden", aa = "--removed-body-scroll-bar-size", ra = {
1685
+ }), na = K(ta), we = "data-scroll-locked", Ze = "right-scroll-bar-position", We = "width-before-scroll-bar", oa = "with-scroll-bars-hidden", aa = "--removed-body-scroll-bar-size", ra = {
1686
1686
  left: 0,
1687
1687
  top: 0,
1688
1688
  right: 0,
1689
1689
  gap: 0
1690
- }, Qe = (e) => parseInt(e || "", 10) || 0, ia = (e) => {
1690
+ }, Je = (e) => parseInt(e || "", 10) || 0, ia = (e) => {
1691
1691
  const n = window.getComputedStyle(document.body), t = n[e === "padding" ? "paddingLeft" : "marginLeft"], o = n[e === "padding" ? "paddingTop" : "marginTop"], r = n[e === "padding" ? "paddingRight" : "marginRight"];
1692
- return [Qe(t), Qe(o), Qe(r)];
1692
+ return [Je(t), Je(o), Je(r)];
1693
1693
  }, la = (e = "margin") => {
1694
1694
  if (typeof window > "u")
1695
1695
  return ra;
@@ -1721,7 +1721,7 @@ const da = () => {
1721
1721
  e--, !e && n && ((t = n.parentNode) == null || t.removeChild(n), n = null);
1722
1722
  }
1723
1723
  };
1724
- }, pa = /* @__PURE__ */ O({
1724
+ }, pa = /* @__PURE__ */ G({
1725
1725
  __name: "QRemoveScrollBar",
1726
1726
  props: {
1727
1727
  noRelative: { type: Boolean },
@@ -1758,7 +1758,7 @@ const da = () => {
1758
1758
  right: ${u}px ${s};
1759
1759
  }
1760
1760
 
1761
- .${Je} {
1761
+ .${We} {
1762
1762
  margin-right: ${u}px ${s};
1763
1763
  }
1764
1764
 
@@ -1766,7 +1766,7 @@ const da = () => {
1766
1766
  right: 0 ${s};
1767
1767
  }
1768
1768
 
1769
- .${Je} .${Je} {
1769
+ .${We} .${We} {
1770
1770
  margin-right: 0 ${s};
1771
1771
  }
1772
1772
 
@@ -1787,14 +1787,14 @@ const da = () => {
1787
1787
  }
1788
1788
  }), fa = K(pa);
1789
1789
  function va(e, n, t, o) {
1790
- const r = (o == null ? void 0 : o.offset) ?? 0, a = (o == null ? void 0 : o.crossOffset) ?? 0, i = (o == null ? void 0 : o.placement) ?? "bottom", l = e.getBoundingClientRect(), u = n.getBoundingClientRect(), c = t == null ? void 0 : t.getBoundingClientRect(), p = ma(l, u, i, r), s = wa(l, u, p), m = ba(s, p, r), g = ha(m, p, a), b = ga(g, u, p);
1791
- let _;
1790
+ const r = (o == null ? void 0 : o.offset) ?? 0, a = (o == null ? void 0 : o.crossOffset) ?? 0, i = (o == null ? void 0 : o.placement) ?? "bottom", l = e.getBoundingClientRect(), u = n.getBoundingClientRect(), c = t == null ? void 0 : t.getBoundingClientRect(), p = ma(l, u, i, r), s = wa(l, u, p), g = ba(s, p, r), m = ha(g, p, a), y = ga(m, u, p);
1791
+ let I;
1792
1792
  if (o != null && o.arrow) {
1793
1793
  if (!c)
1794
1794
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
1795
- _ = ya(b, l, u, c, p);
1795
+ I = ya(y, l, u, c, p);
1796
1796
  }
1797
- return { overlayCoords: b, arrowCoords: _, placement: p };
1797
+ return { overlayCoords: y, arrowCoords: I, placement: p };
1798
1798
  }
1799
1799
  function ma(e, n, t, o) {
1800
1800
  const r = wt(e, n, t, o);
@@ -1818,7 +1818,7 @@ function ma(e, n, t, o) {
1818
1818
  return t;
1819
1819
  }
1820
1820
  function ga(e, n, t) {
1821
- const o = Ge(t), r = (i, l, u) => Math.min(Math.max(i, l), u), a = { ...e };
1821
+ const o = je(t), r = (i, l, u) => Math.min(Math.max(i, l), u), a = { ...e };
1822
1822
  return o === "x" ? a.x = r(e.x, 8, window.innerWidth - n.width - 8) : a.y = r(e.y, 8, window.innerHeight - n.height - 8), a;
1823
1823
  }
1824
1824
  function ba(e, n, t) {
@@ -1836,7 +1836,7 @@ function ha(e, n, t) {
1836
1836
  };
1837
1837
  }
1838
1838
  function ya(e, n, t, o, r) {
1839
- if (Ge(r) === "y") {
1839
+ if (je(r) === "y") {
1840
1840
  const a = n.top + n.height / 2, i = e.y + t.height / 2, l = i - a, u = t.height / 2 - l - o.height / 2 + 2;
1841
1841
  if (u > 0 && u < t.height - o.height)
1842
1842
  return {
@@ -1871,7 +1871,7 @@ function wa(e, n, t) {
1871
1871
  }
1872
1872
  if (!r)
1873
1873
  return l;
1874
- const u = Ge(t) === "y" ? "height" : "width", c = Ge(t), p = e[u] / 2 - n[u] / 2;
1874
+ const u = je(t) === "y" ? "height" : "width", c = je(t), p = e[u] / 2 - n[u] / 2;
1875
1875
  switch (r) {
1876
1876
  case "start":
1877
1877
  l[c] -= p;
@@ -1912,7 +1912,7 @@ function ka(e) {
1912
1912
  const n = ke(e);
1913
1913
  return ["left", "right"].includes(n) ? "x" : "y";
1914
1914
  }
1915
- function Ge(e) {
1915
+ function je(e) {
1916
1916
  return _a(ka(e));
1917
1917
  }
1918
1918
  function ke(e) {
@@ -1929,7 +1929,7 @@ function _t(e) {
1929
1929
  function Aa(e) {
1930
1930
  return typeof e == "string" ? document.querySelector(e) : e;
1931
1931
  }
1932
- const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
1932
+ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ G({
1933
1933
  inheritAttrs: !1,
1934
1934
  __name: "QOverlay",
1935
1935
  props: /* @__PURE__ */ ve({
@@ -1961,7 +1961,7 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
1961
1961
  }),
1962
1962
  emits: /* @__PURE__ */ ve(["enter", "leave"], ["update:modelValue"]),
1963
1963
  setup(e, { emit: n }) {
1964
- const t = e, o = n, r = Ee(e, "modelValue"), { class: a } = qt(), i = w(() => [
1964
+ const t = e, o = n, r = Ee(e, "modelValue"), { class: a } = Mt(), i = w(() => [
1965
1965
  "q-overlay",
1966
1966
  `q-overlay--${ke(s.placement)}`,
1967
1967
  a.value,
@@ -1977,31 +1977,31 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
1977
1977
  left: 0,
1978
1978
  width: 0,
1979
1979
  placement: t.placement
1980
- }), m = Ke({
1980
+ }), g = Ke({
1981
1981
  top: void 0,
1982
1982
  left: void 0,
1983
1983
  hidden: !0
1984
1984
  });
1985
- le(r, $);
1986
- const g = w(() => {
1985
+ ie(r, _);
1986
+ const m = w(() => {
1987
1987
  if (l.value) return;
1988
- const k = I(), ce = t.width === "anchor", oe = ce ? k == null ? void 0 : k.getBoundingClientRect().width : void 0;
1988
+ const k = D(), ce = t.width === "anchor", te = ce ? k == null ? void 0 : k.getBoundingClientRect().width : void 0;
1989
1989
  return {
1990
1990
  top: `${s.top}px`,
1991
1991
  left: `${s.left}px`,
1992
- width: oe !== void 0 ? `${oe}px` : void 0
1992
+ width: te !== void 0 ? `${te}px` : void 0
1993
1993
  };
1994
- }), b = w(() => {
1994
+ }), y = w(() => {
1995
1995
  if (t.arrow)
1996
1996
  return {
1997
- top: m.top !== void 0 ? `${m.top}px` : void 0,
1998
- left: m.left !== void 0 ? `${m.left}px` : void 0,
1999
- opacity: m.hidden ? 0 : 1
1997
+ top: g.top !== void 0 ? `${g.top}px` : void 0,
1998
+ left: g.left !== void 0 ? `${g.left}px` : void 0,
1999
+ opacity: g.hidden ? 0 : 1
2000
2000
  };
2001
- }), _ = T(null), E = T(null), Y = T(null);
2001
+ }), I = q(null), A = q(null), O = q(null);
2002
2002
  function z() {
2003
- const k = I();
2004
- if (!k || !E.value)
2003
+ const k = D();
2004
+ if (!k || !A.value)
2005
2005
  return;
2006
2006
  const ce = {
2007
2007
  placement: t.placement,
@@ -2009,84 +2009,84 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2009
2009
  offset: t.offset,
2010
2010
  crossOffset: t.crossOffset,
2011
2011
  arrow: t.arrow
2012
- }, oe = va(
2012
+ }, te = va(
2013
2013
  k,
2014
- E.value,
2015
- (_ == null ? void 0 : _.value) ?? void 0,
2014
+ A.value,
2015
+ (I == null ? void 0 : I.value) ?? void 0,
2016
2016
  ce
2017
2017
  );
2018
- s.left = oe.overlayCoords.x, s.top = oe.overlayCoords.y, s.placement = oe.placement, m.hidden = oe.arrowCoords === void 0, oe.arrowCoords && (m.top = oe.arrowCoords.y, m.left = oe.arrowCoords.x);
2018
+ s.left = te.overlayCoords.x, s.top = te.overlayCoords.y, s.placement = te.placement, g.hidden = te.arrowCoords === void 0, te.arrowCoords && (g.top = te.arrowCoords.y, g.left = te.arrowCoords.x);
2019
2019
  }
2020
- le(
2020
+ ie(
2021
2021
  () => t.placement,
2022
2022
  () => xe(z)
2023
2023
  );
2024
- let j;
2025
- function Q() {
2026
- B(0);
2024
+ let W;
2025
+ function J() {
2026
+ E(0);
2027
2027
  }
2028
- function Z() {
2029
- B(t.delay);
2028
+ function V() {
2029
+ E(t.delay);
2030
2030
  }
2031
- function B(k) {
2032
- j && D(), j = window.setTimeout(() => {
2031
+ function E(k) {
2032
+ W && F(), W = window.setTimeout(() => {
2033
2033
  r.value = !0;
2034
2034
  }, k);
2035
2035
  }
2036
- function P() {
2037
- if (j && D(), r.value = !1, t.anchor && t.trigger === "click") {
2038
- const k = I();
2036
+ function U() {
2037
+ if (W && F(), r.value = !1, t.anchor && t.trigger === "click") {
2038
+ const k = D();
2039
2039
  xe(() => k == null ? void 0 : k.focus());
2040
2040
  }
2041
2041
  }
2042
- function D() {
2043
- clearTimeout(j), j = void 0;
2042
+ function F() {
2043
+ clearTimeout(W), W = void 0;
2044
2044
  }
2045
- function te() {
2046
- xe(ie), o("enter");
2045
+ function le() {
2046
+ xe(re), o("enter");
2047
2047
  }
2048
- function ne() {
2049
- q();
2048
+ function ae() {
2049
+ C();
2050
2050
  }
2051
2051
  function d() {
2052
2052
  o("leave");
2053
2053
  }
2054
2054
  function v() {
2055
- q(), ze();
2055
+ C(), ze();
2056
2056
  }
2057
- function $() {
2057
+ function _() {
2058
2058
  s.animating = !0;
2059
2059
  }
2060
- function q() {
2060
+ function C() {
2061
2061
  s.animating = !1;
2062
2062
  }
2063
- function I() {
2063
+ function D() {
2064
2064
  return t.anchor ? Aa(t.anchor) : null;
2065
2065
  }
2066
- function U(k) {
2066
+ function P(k) {
2067
2067
  t.persistent && k.preventDefault();
2068
2068
  }
2069
- function R(k) {
2069
+ function B(k) {
2070
2070
  var ce;
2071
2071
  if (t.persistent) {
2072
2072
  k.preventDefault();
2073
2073
  return;
2074
2074
  }
2075
- let oe = !1;
2076
- k.defaultPrevented || k.detail.originalEvent.type === "pointerdown" && (oe = !0);
2075
+ let te = !1;
2076
+ k.defaultPrevented || k.detail.originalEvent.type === "pointerdown" && (te = !0);
2077
2077
  const ue = k.detail.originalEvent.target;
2078
- if ((ce = I()) != null && ce.contains(ue)) {
2078
+ if ((ce = D()) != null && ce.contains(ue)) {
2079
2079
  k.preventDefault();
2080
2080
  return;
2081
2081
  }
2082
- k.detail.originalEvent.type === "focusin" && oe && k.preventDefault();
2082
+ k.detail.originalEvent.type === "focusin" && te && k.preventDefault();
2083
2083
  }
2084
2084
  function H() {
2085
- P();
2085
+ U();
2086
2086
  }
2087
2087
  let h;
2088
2088
  function x() {
2089
- const k = I();
2089
+ const k = D();
2090
2090
  if (k)
2091
2091
  switch (h = new MutationObserver(z), h.observe(k, {
2092
2092
  attributes: !1,
@@ -2095,49 +2095,49 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2095
2095
  subtree: !0
2096
2096
  }), t.trigger) {
2097
2097
  case "click":
2098
- k.addEventListener("click", Q);
2098
+ k.addEventListener("click", J);
2099
2099
  break;
2100
2100
  case "hover":
2101
- k.addEventListener("mouseenter", Z), k.addEventListener("mouseleave", P), k.addEventListener("focusin", Q), k.addEventListener("focusout", P);
2101
+ k.addEventListener("mouseenter", V), k.addEventListener("mouseleave", U), k.addEventListener("focusin", J), k.addEventListener("focusout", U);
2102
2102
  break;
2103
2103
  }
2104
2104
  }
2105
- function N() {
2106
- const k = I();
2105
+ function T() {
2106
+ const k = D();
2107
2107
  if (k)
2108
2108
  switch (h == null || h.disconnect(), t.trigger) {
2109
2109
  case "click":
2110
- k.removeEventListener("click", Q);
2110
+ k.removeEventListener("click", J);
2111
2111
  break;
2112
2112
  case "hover":
2113
- k.removeEventListener("mouseenter", Z), k.removeEventListener("mouseleave", P), k.removeEventListener("focusin", Q), k.removeEventListener("focusout", P);
2113
+ k.removeEventListener("mouseenter", V), k.removeEventListener("mouseleave", U), k.removeEventListener("focusin", J), k.removeEventListener("focusout", U);
2114
2114
  break;
2115
2115
  }
2116
2116
  }
2117
- function F() {
2117
+ function N() {
2118
2118
  window.addEventListener("resize", z), t.scrollLock || window.addEventListener("scroll", z);
2119
2119
  }
2120
- function J() {
2120
+ function Q() {
2121
2121
  window.removeEventListener("resize", z), t.scrollLock || window.removeEventListener("scroll", z);
2122
2122
  }
2123
2123
  let se;
2124
2124
  function fe() {
2125
- I() ? (z(), se = window.setTimeout(fe, 100)) : P();
2125
+ D() ? (z(), se = window.setTimeout(fe, 100)) : U();
2126
2126
  }
2127
- function ie() {
2127
+ function re() {
2128
2128
  var k;
2129
- l.value || (F(), t.spy ? fe() : z()), (l.value || t.trigger === "click") && ((k = E.value) == null || k.focus());
2129
+ l.value || (N(), t.spy ? fe() : z()), (l.value || t.trigger === "click") && ((k = A.value) == null || k.focus());
2130
2130
  }
2131
2131
  function ze() {
2132
- l.value || J(), t.spy && (clearTimeout(se), se = void 0);
2132
+ l.value || Q(), t.spy && (clearTimeout(se), se = void 0);
2133
2133
  }
2134
2134
  return Ce(() => {
2135
2135
  xe(x);
2136
- }), an(N), (k, ce) => (y(), A(
2136
+ }), an(T), (k, ce) => (b(), $(
2137
2137
  pe,
2138
2138
  null,
2139
2139
  [
2140
- (y(), V(rn, {
2140
+ (b(), Z(rn, {
2141
2141
  disabled: !p.value,
2142
2142
  to: t.attach
2143
2143
  }, [
@@ -2145,12 +2145,12 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2145
2145
  name: "fade",
2146
2146
  appear: ""
2147
2147
  }, {
2148
- default: C(() => [
2149
- u.value ? (y(), A(
2148
+ default: R(() => [
2149
+ u.value ? (b(), $(
2150
2150
  "div",
2151
2151
  {
2152
2152
  key: 0,
2153
- class: W([
2153
+ class: X([
2154
2154
  t.backdropClass,
2155
2155
  "q-overlay__underlay",
2156
2156
  { "q-overlay__underlay--blur": t.backdropBlur }
@@ -2159,7 +2159,7 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2159
2159
  null,
2160
2160
  2
2161
2161
  /* CLASS */
2162
- )) : G("v-if", !0)
2162
+ )) : j("v-if", !0)
2163
2163
  ]),
2164
2164
  _: 1
2165
2165
  /* STABLE */
@@ -2167,71 +2167,71 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2167
2167
  S(dt, {
2168
2168
  name: t.transition,
2169
2169
  appear: "",
2170
- onEnter: te,
2171
- onAfterEnter: ne,
2170
+ onEnter: le,
2171
+ onAfterEnter: ae,
2172
2172
  onLeave: d,
2173
2173
  onAfterLeave: v
2174
2174
  }, {
2175
- default: C(() => [
2176
- r.value ? (y(), A("div", {
2175
+ default: R(() => [
2176
+ r.value ? (b(), $("div", {
2177
2177
  key: 0,
2178
2178
  id: t.id,
2179
2179
  ref_key: "overlayContainerRef",
2180
- ref: Y,
2180
+ ref: O,
2181
2181
  tabindex: "-1",
2182
- class: W(i.value),
2183
- style: _e(g.value)
2182
+ class: X(i.value),
2183
+ style: _e(m.value)
2184
2184
  }, [
2185
2185
  S(f(vo), {
2186
2186
  onDismiss: H,
2187
- onInteractOutside: R,
2188
- onPointerDownOutside: U
2187
+ onInteractOutside: B,
2188
+ onPointerDownOutside: P
2189
2189
  }, {
2190
- default: C(() => [
2191
- Y.value ? (y(), V(f(na), {
2190
+ default: R(() => [
2191
+ O.value ? (b(), Z(f(na), {
2192
2192
  key: 0,
2193
2193
  disabled: t.nonModal || !r.value,
2194
- options: { fallbackFocus: Y.value }
2194
+ options: { fallbackFocus: O.value }
2195
2195
  }, {
2196
- default: C(() => [
2196
+ default: R(() => [
2197
2197
  L("div", de({
2198
2198
  ref_key: "overlayRef",
2199
- ref: E,
2199
+ ref: A,
2200
2200
  class: "q-overlay__content",
2201
2201
  tabindex: "-1",
2202
2202
  role: u.value ? "dialog" : void 0
2203
2203
  }, k.$attrs), [
2204
- t.arrow ? (y(), A(
2204
+ t.arrow ? (b(), $(
2205
2205
  "div",
2206
2206
  {
2207
2207
  key: 0,
2208
2208
  ref_key: "arrowRef",
2209
- ref: _,
2209
+ ref: I,
2210
2210
  role: "presentation",
2211
2211
  class: "q-overlay__arrow",
2212
- style: _e(b.value)
2212
+ style: _e(y.value)
2213
2213
  },
2214
2214
  null,
2215
2215
  4
2216
2216
  /* STYLE */
2217
- )) : G("v-if", !0),
2217
+ )) : j("v-if", !0),
2218
2218
  M(k.$slots, "default")
2219
2219
  ], 16, Ia)
2220
2220
  ]),
2221
2221
  _: 3
2222
2222
  /* FORWARDED */
2223
- }, 8, ["disabled", "options"])) : G("v-if", !0)
2223
+ }, 8, ["disabled", "options"])) : j("v-if", !0)
2224
2224
  ]),
2225
2225
  _: 3
2226
2226
  /* FORWARDED */
2227
2227
  })
2228
- ], 14, xa)) : G("v-if", !0)
2228
+ ], 14, xa)) : j("v-if", !0)
2229
2229
  ]),
2230
2230
  _: 3
2231
2231
  /* FORWARDED */
2232
2232
  }, 8, ["name"])
2233
2233
  ], 8, ["disabled", "to"])),
2234
- c.value ? (y(), V(f(fa), { key: 0 })) : G("v-if", !0)
2234
+ c.value ? (b(), Z(f(fa), { key: 0 })) : j("v-if", !0)
2235
2235
  ],
2236
2236
  64
2237
2237
  /* STABLE_FRAGMENT */
@@ -2260,22 +2260,22 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2260
2260
  }, La = {
2261
2261
  key: 0,
2262
2262
  class: "q-dialog__header-title"
2263
- }, qa = {
2263
+ }, Ma = {
2264
2264
  key: 1,
2265
2265
  class: "q-dialog__body"
2266
- }, Ma = {
2266
+ }, qa = {
2267
2267
  key: 0,
2268
2268
  class: "q-dialog__body-icon"
2269
- }, Na = { class: "q-dialog__body-text" }, Ta = ["innerHTML"], Fa = { key: 1 }, Oa = {
2269
+ }, Ta = { class: "q-dialog__body-text" }, Na = ["innerHTML"], Fa = { key: 1 }, Pa = {
2270
2270
  key: 0,
2271
2271
  class: "q-dialog__input"
2272
- }, Ua = {
2272
+ }, Oa = {
2273
2273
  key: 2,
2274
2274
  class: "q-dialog__footer"
2275
- }, Pa = {
2275
+ }, Ua = {
2276
2276
  key: 0,
2277
2277
  class: "q-dialog__footer-buttons"
2278
- }, Ga = /* @__PURE__ */ O({
2278
+ }, ja = /* @__PURE__ */ G({
2279
2279
  __name: "QDialog",
2280
2280
  props: /* @__PURE__ */ ve({
2281
2281
  id: {},
@@ -2299,29 +2299,29 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2299
2299
  }),
2300
2300
  emits: /* @__PURE__ */ ve(["enter", "leave"], ["update:modelValue"]),
2301
2301
  setup(e, { emit: n }) {
2302
- const t = e, o = n, r = Ee(e, "modelValue"), a = T(""), i = T(""), l = w(() => ["q-dialog", t.class]), u = w(() => `q-overlay--${t.size}`);
2302
+ const t = e, o = n, r = Ee(e, "modelValue"), a = q(""), i = q(""), l = w(() => ["q-dialog", t.class]), u = w(() => `q-overlay--${t.size}`);
2303
2303
  function c() {
2304
2304
  r.value = !1;
2305
2305
  }
2306
- function p(g) {
2307
- var b, _;
2308
- if (g.action) {
2309
- if ((b = t.input) != null && b.validator && (i.value = t.input.validator(f(a)), f(i)))
2306
+ function p(m) {
2307
+ var y, I;
2308
+ if (m.action) {
2309
+ if ((y = t.input) != null && y.validator && (i.value = t.input.validator(f(a)), f(i)))
2310
2310
  return;
2311
- (_ = g.action) == null || _.call(g, f(a));
2311
+ (I = m.action) == null || I.call(m, f(a));
2312
2312
  }
2313
2313
  c();
2314
2314
  }
2315
2315
  function s() {
2316
2316
  o("enter");
2317
2317
  }
2318
- function m() {
2318
+ function g() {
2319
2319
  o("leave");
2320
2320
  }
2321
- return (g, b) => (y(), V(f(Da), {
2321
+ return (m, y) => (b(), Z(f(Da), {
2322
2322
  id: t.id,
2323
2323
  modelValue: r.value,
2324
- "onUpdate:modelValue": b[1] || (b[1] = (_) => r.value = _),
2324
+ "onUpdate:modelValue": y[1] || (y[1] = (I) => r.value = I),
2325
2325
  "backdrop-class": "q-dialog__underlay",
2326
2326
  "scroll-lock": "",
2327
2327
  persistent: "",
@@ -2329,72 +2329,72 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2329
2329
  attach: t.attach,
2330
2330
  "backdrop-blur": t.backdropBlur,
2331
2331
  "center-vertically": t.centerVertically,
2332
- class: W(u.value),
2332
+ class: X(u.value),
2333
2333
  onEnter: s,
2334
- onLeave: m
2334
+ onLeave: g
2335
2335
  }, {
2336
- default: C(() => [
2336
+ default: R(() => [
2337
2337
  L(
2338
2338
  "div",
2339
2339
  {
2340
- class: W(l.value)
2340
+ class: X(l.value)
2341
2341
  },
2342
2342
  [
2343
- t.title || g.$slots.header || g.$slots["header.prepend"] || g.$slots["header.append"] ? (y(), A("div", Ra, [
2344
- M(g.$slots, "header", {}, () => [
2345
- M(g.$slots, "header.prepend"),
2346
- t.title ? (y(), A(
2343
+ t.title || m.$slots.header || m.$slots["header.prepend"] || m.$slots["header.append"] ? (b(), $("div", Ra, [
2344
+ M(m.$slots, "header", {}, () => [
2345
+ M(m.$slots, "header.prepend"),
2346
+ t.title ? (b(), $(
2347
2347
  "span",
2348
2348
  La,
2349
- ae(t.title),
2349
+ oe(t.title),
2350
2350
  1
2351
2351
  /* TEXT */
2352
- )) : G("v-if", !0),
2353
- M(g.$slots, "header.append")
2352
+ )) : j("v-if", !0),
2353
+ M(m.$slots, "header.append")
2354
2354
  ])
2355
- ])) : G("v-if", !0),
2356
- t.icon || t.text || g.$slots.body ? (y(), A("div", qa, [
2357
- M(g.$slots, "body", {}, () => {
2358
- var _;
2355
+ ])) : j("v-if", !0),
2356
+ t.icon || t.text || m.$slots.body ? (b(), $("div", Ma, [
2357
+ M(m.$slots, "body", {}, () => {
2358
+ var I;
2359
2359
  return [
2360
- M(g.$slots, "body.icon", {}, () => [
2361
- t.icon ? (y(), A("span", Ma, [
2360
+ M(m.$slots, "body.icon", {}, () => [
2361
+ t.icon ? (b(), $("span", qa, [
2362
2362
  S(
2363
- f(X),
2364
- De(Te(t.icon)),
2363
+ f(Y),
2364
+ De(Ne(t.icon)),
2365
2365
  null,
2366
2366
  16
2367
2367
  /* FULL_PROPS */
2368
2368
  )
2369
- ])) : G("v-if", !0)
2369
+ ])) : j("v-if", !0)
2370
2370
  ]),
2371
- L("div", Na, [
2372
- t.html ? (y(), A("div", {
2371
+ L("div", Ta, [
2372
+ t.html ? (b(), $("div", {
2373
2373
  key: 0,
2374
2374
  innerHTML: t.text
2375
- }, null, 8, Ta)) : (y(), A(
2375
+ }, null, 8, Na)) : (b(), $(
2376
2376
  "div",
2377
2377
  Fa,
2378
- ae(t.text),
2378
+ oe(t.text),
2379
2379
  1
2380
2380
  /* TEXT */
2381
2381
  ))
2382
2382
  ]),
2383
- t.input ? (y(), A("div", Oa, [
2384
- S(f(Ot), {
2383
+ t.input ? (b(), $("div", Pa, [
2384
+ S(f(Pt), {
2385
2385
  modelValue: a.value,
2386
- "onUpdate:modelValue": b[0] || (b[0] = (E) => a.value = E),
2386
+ "onUpdate:modelValue": y[0] || (y[0] = (A) => a.value = A),
2387
2387
  invalid: !!i.value,
2388
- placeholder: (_ = t.input) == null ? void 0 : _.placeholder,
2388
+ placeholder: (I = t.input) == null ? void 0 : I.placeholder,
2389
2389
  size: "block"
2390
2390
  }, {
2391
- extras: C(() => [
2392
- i.value ? (y(), V(f(X), {
2391
+ extras: R(() => [
2392
+ i.value ? (b(), Z(f(Y), {
2393
2393
  key: 0,
2394
2394
  icon: "exclamation-sign"
2395
- })) : G("v-if", !0),
2396
- je(
2397
- " " + ae(i.value),
2395
+ })) : j("v-if", !0),
2396
+ Ge(
2397
+ " " + oe(i.value),
2398
2398
  1
2399
2399
  /* TEXT */
2400
2400
  )
@@ -2402,31 +2402,31 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2402
2402
  _: 1
2403
2403
  /* STABLE */
2404
2404
  }, 8, ["modelValue", "invalid", "placeholder"])
2405
- ])) : G("v-if", !0),
2406
- M(g.$slots, "body.append")
2405
+ ])) : j("v-if", !0),
2406
+ M(m.$slots, "body.append")
2407
2407
  ];
2408
2408
  })
2409
- ])) : G("v-if", !0),
2410
- t.buttons || g.$slots["footer.append"] ? (y(), A("div", Ua, [
2411
- t.buttons ? (y(), A("span", Pa, [
2412
- (y(!0), A(
2409
+ ])) : j("v-if", !0),
2410
+ t.buttons || m.$slots["footer.append"] ? (b(), $("div", Oa, [
2411
+ t.buttons ? (b(), $("span", Ua, [
2412
+ (b(!0), $(
2413
2413
  pe,
2414
2414
  null,
2415
- Be(t.buttons, (_) => (y(), V(f(re), de({ ref_for: !0 }, _.props, {
2416
- key: _.id,
2417
- onClick: () => p(_)
2415
+ Be(t.buttons, (I) => (b(), Z(f(ne), de({ ref_for: !0 }, I.props, {
2416
+ key: I.id,
2417
+ onClick: () => p(I)
2418
2418
  }), {
2419
- default: C(() => [
2420
- _.icon ? (y(), V(
2421
- f(X),
2419
+ default: R(() => [
2420
+ I.icon ? (b(), Z(
2421
+ f(Y),
2422
2422
  de({
2423
2423
  key: 0,
2424
2424
  ref_for: !0
2425
- }, _.icon),
2425
+ }, I.icon),
2426
2426
  null,
2427
2427
  16
2428
2428
  /* FULL_PROPS */
2429
- )) : G("v-if", !0)
2429
+ )) : j("v-if", !0)
2430
2430
  ]),
2431
2431
  _: 2
2432
2432
  /* DYNAMIC */
@@ -2434,19 +2434,19 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2434
2434
  128
2435
2435
  /* KEYED_FRAGMENT */
2436
2436
  ))
2437
- ])) : G("v-if", !0),
2438
- M(g.$slots, "footer.append")
2439
- ])) : G("v-if", !0),
2440
- t.dismissible ? (y(), V(f(re), {
2437
+ ])) : j("v-if", !0),
2438
+ M(m.$slots, "footer.append")
2439
+ ])) : j("v-if", !0),
2440
+ t.dismissible ? (b(), Z(f(ne), {
2441
2441
  key: 3,
2442
2442
  class: "q-dialog__close",
2443
2443
  variant: "text",
2444
2444
  onClick: c
2445
2445
  }, {
2446
- default: C(() => [
2446
+ default: R(() => [
2447
2447
  S(
2448
- f(X),
2449
- De(Te(t.icons.close)),
2448
+ f(Y),
2449
+ De(Ne(t.icons.close)),
2450
2450
  null,
2451
2451
  16
2452
2452
  /* FULL_PROPS */
@@ -2454,7 +2454,7 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2454
2454
  ]),
2455
2455
  _: 1
2456
2456
  /* STABLE */
2457
- })) : G("v-if", !0)
2457
+ })) : j("v-if", !0)
2458
2458
  ],
2459
2459
  2
2460
2460
  /* CLASS */
@@ -2465,7 +2465,7 @@ const xa = ["id"], Ia = ["role"], Sa = /* @__PURE__ */ O({
2465
2465
  }, 8, ["id", "modelValue", "inline", "attach", "backdrop-blur", "center-vertically", "class"]));
2466
2466
  }
2467
2467
  }), Le = Ke({ dialogs: [] });
2468
- function ja() {
2468
+ function Ga() {
2469
2469
  function e(t, o, r) {
2470
2470
  const a = st(o);
2471
2471
  return Le.dialogs.push({ id: a, props: t, options: r }), a;
@@ -2480,7 +2480,7 @@ function ja() {
2480
2480
  removeDialog: n
2481
2481
  };
2482
2482
  }
2483
- const za = /* @__PURE__ */ O({
2483
+ const za = /* @__PURE__ */ G({
2484
2484
  inheritAttrs: !1,
2485
2485
  __name: "QDialogProvider",
2486
2486
  props: {
@@ -2488,14 +2488,14 @@ const za = /* @__PURE__ */ O({
2488
2488
  },
2489
2489
  emits: ["leave"],
2490
2490
  setup(e, { emit: n }) {
2491
- const t = e, o = n, { dialogs: r, removeDialog: a } = ja();
2491
+ const t = e, o = n, { dialogs: r, removeDialog: a } = Ga();
2492
2492
  function i(l) {
2493
2493
  a(l), o("leave", l);
2494
2494
  }
2495
- return (l, u) => (y(!0), A(
2495
+ return (l, u) => (b(!0), $(
2496
2496
  pe,
2497
2497
  null,
2498
- Be(f(r), (c) => (y(), V(f(Ht), de({
2498
+ Be(f(r), (c) => (b(), Z(f(Ht), de({
2499
2499
  key: c.id,
2500
2500
  ref_for: !0
2501
2501
  }, c.props, {
@@ -2507,9 +2507,9 @@ const za = /* @__PURE__ */ O({
2507
2507
  /* KEYED_FRAGMENT */
2508
2508
  ));
2509
2509
  }
2510
- }), Ht = K(Ga);
2510
+ }), Ht = K(ja);
2511
2511
  K(za);
2512
- const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], Ha = /* @__PURE__ */ O({
2512
+ const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], Ha = /* @__PURE__ */ G({
2513
2513
  inheritAttrs: !1,
2514
2514
  __name: "QTextArea",
2515
2515
  props: /* @__PURE__ */ ve({
@@ -2542,15 +2542,15 @@ const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2542
2542
  t.value = p ? c == null ? void 0 : c.slice(0, p) : c;
2543
2543
  }
2544
2544
  });
2545
- le(t, (c) => o.value = c, { immediate: !0 });
2545
+ ie(t, (c) => o.value = c, { immediate: !0 });
2546
2546
  const r = st(n.id), a = w(
2547
2547
  () => n.readonly || n.disabled ? void 0 : n.placeholder
2548
- ), i = w(() => ({ input: n.autosize ? u : null })), l = T(), { triggerResize: u } = ko({
2548
+ ), i = w(() => ({ input: n.autosize ? u : null })), l = q(), { triggerResize: u } = ko({
2549
2549
  element: w(() => n.autosize ? l.value : void 0),
2550
2550
  styleProp: "minHeight"
2551
2551
  });
2552
- return (c, p) => (y(), V(f(Ft), {
2553
- class: W(["q-text-area", n.class]),
2552
+ return (c, p) => (b(), Z(f(Ft), {
2553
+ class: X(["q-text-area", n.class]),
2554
2554
  for: f(r),
2555
2555
  label: n.label,
2556
2556
  size: n.size,
@@ -2558,13 +2558,13 @@ const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2558
2558
  disabled: n.disabled,
2559
2559
  required: n.required
2560
2560
  }, It({
2561
- "label.prepend": C(() => [
2561
+ "label.prepend": R(() => [
2562
2562
  M(c.$slots, "label.prepend")
2563
2563
  ]),
2564
- "label.append": C(() => [
2564
+ "label.append": R(() => [
2565
2565
  M(c.$slots, "label.append")
2566
2566
  ]),
2567
- default: C(() => [
2567
+ default: R(() => [
2568
2568
  St(L("textarea", de({
2569
2569
  id: f(r),
2570
2570
  ref_key: "textareaRef",
@@ -2589,21 +2589,21 @@ const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2589
2589
  }, [
2590
2590
  c.$slots.prepend ? {
2591
2591
  name: "prepend",
2592
- fn: C(() => [
2592
+ fn: R(() => [
2593
2593
  M(c.$slots, "prepend")
2594
2594
  ]),
2595
2595
  key: "0"
2596
2596
  } : void 0,
2597
2597
  c.$slots.append ? {
2598
2598
  name: "append",
2599
- fn: C(() => [
2599
+ fn: R(() => [
2600
2600
  M(c.$slots, "append")
2601
2601
  ]),
2602
2602
  key: "1"
2603
2603
  } : void 0,
2604
2604
  c.$slots.extras ? {
2605
2605
  name: "extras",
2606
- fn: C(() => [
2606
+ fn: R(() => [
2607
2607
  M(c.$slots, "extras")
2608
2608
  ]),
2609
2609
  key: "2"
@@ -2639,11 +2639,13 @@ function he() {
2639
2639
  regenerateResponse: "Regenerate response",
2640
2640
  generatingResponse: "Generating",
2641
2641
  suggestionsForField: "Suggestions for field:",
2642
- fileUpload: "Upload File"
2642
+ fileUpload: "Upload File",
2643
+ approveProceed: "Approve & proceed",
2644
+ approveProceedPlan: "Approve & proceed with plan"
2643
2645
  };
2644
2646
  }
2645
2647
  async function kt(e, n) {
2646
- var c, p, s, m, g, b, _;
2648
+ var c, p, s, g, m, y, I;
2647
2649
  const t = new AbortController(), o = t.signal, a = (await Ct({
2648
2650
  ...e,
2649
2651
  headers: {
@@ -2658,57 +2660,57 @@ async function kt(e, n) {
2658
2660
  const i = a.getReader(), l = new TextDecoder();
2659
2661
  let u = "";
2660
2662
  for (; ; ) {
2661
- const { done: E, value: Y } = await i.read();
2662
- if (E) {
2663
+ const { done: A, value: O } = await i.read();
2664
+ if (A) {
2663
2665
  (c = n.onDone) == null || c.call(n);
2664
2666
  break;
2665
2667
  }
2666
- const z = l.decode(Y, { stream: !0 });
2668
+ const z = l.decode(O, { stream: !0 });
2667
2669
  u += z;
2668
- const j = u.split(/\n\n+/);
2669
- u = j.pop() || "";
2670
- for (const Q of j) {
2671
- const Z = Q.trim().split(`
2670
+ const W = u.split(/\n\n+/);
2671
+ u = W.pop() || "";
2672
+ for (const J of W) {
2673
+ const V = J.trim().split(`
2672
2674
  `);
2673
- let B = "", P = "";
2674
- for (const D of Z)
2675
- D.startsWith("event:") ? B = D.replace("event:", "").trim() : D.startsWith("data:") && (P = D.replace("data:", "").trim());
2676
- if (B || (B = "message"), !!P)
2675
+ let E = "", U = "";
2676
+ for (const F of V)
2677
+ F.startsWith("event:") ? E = F.replace("event:", "").trim() : F.startsWith("data:") && (U = F.replace("data:", "").trim());
2678
+ if (E || (E = "message"), !!U)
2677
2679
  try {
2678
- const D = JSON.parse(P);
2679
- switch (B) {
2680
+ const F = JSON.parse(U);
2681
+ switch (E) {
2680
2682
  case "message":
2681
- (p = n.onMessage) == null || p.call(n, D.value);
2683
+ (p = n.onMessage) == null || p.call(n, F.value);
2682
2684
  break;
2683
2685
  case "tool-status":
2684
2686
  (s = n.onToolStatus) == null || s.call(
2685
2687
  n,
2686
- D
2688
+ F
2687
2689
  );
2688
2690
  break;
2689
2691
  case "error":
2690
- (m = n.onError) == null || m.call(n, new Error(D.value));
2692
+ (g = n.onError) == null || g.call(n, new Error(F.value));
2691
2693
  break;
2692
2694
  case "field_metadata":
2693
- (g = n.onFieldMetadata) == null || g.call(n, D);
2695
+ (m = n.onFieldMetadata) == null || m.call(n, F);
2694
2696
  break;
2695
2697
  case "done":
2696
- (b = n.onDone) == null || b.call(n);
2698
+ (y = n.onDone) == null || y.call(n);
2697
2699
  break;
2698
2700
  default:
2699
- console.warn(`Unknown event type: ${B}`);
2701
+ console.warn(`Unknown event type: ${E}`);
2700
2702
  }
2701
- } catch (D) {
2702
- (_ = n.onError) == null || _.call(n, D), console.error("Error processing event:", D);
2703
+ } catch (F) {
2704
+ (I = n.onError) == null || I.call(n, F), console.error("Error processing event:", F);
2703
2705
  continue;
2704
2706
  } finally {
2705
- E && (i.releaseLock(), t.abort());
2707
+ A && (i.releaseLock(), t.abort());
2706
2708
  }
2707
2709
  }
2708
2710
  }
2709
2711
  }
2710
2712
  function Zt(e) {
2711
- const n = T(!1), t = T(null);
2713
+ const n = q(!1), t = q(null);
2712
2714
  async function o(c) {
2713
2715
  n.value = !0, t.value = null;
2714
2716
  try {
@@ -2724,7 +2726,7 @@ function Zt(e) {
2724
2726
  }
2725
2727
  return { data: null, error: new Error("Unknown error occurred in baseRequest") };
2726
2728
  }
2727
- async function r(c, p, s, m) {
2729
+ async function r(c, p, s, g) {
2728
2730
  return await o({
2729
2731
  method: "POST",
2730
2732
  url: "/prompt/load",
@@ -2732,11 +2734,11 @@ function Zt(e) {
2732
2734
  username: c,
2733
2735
  project: p,
2734
2736
  agentID: s,
2735
- formId: m
2737
+ formId: g
2736
2738
  }
2737
2739
  });
2738
2740
  }
2739
- async function a(c, p, s, m) {
2741
+ async function a(c, p, s, g) {
2740
2742
  n.value = !0;
2741
2743
  try {
2742
2744
  return await kt(
@@ -2746,20 +2748,20 @@ function Zt(e) {
2746
2748
  data: c
2747
2749
  },
2748
2750
  {
2749
- onMessage: (g) => {
2750
- p(g);
2751
+ onMessage: (m) => {
2752
+ p(m);
2751
2753
  },
2752
- onToolStatus: (g) => {
2753
- s == null || s(g);
2754
+ onToolStatus: (m) => {
2755
+ s == null || s(m);
2754
2756
  },
2755
2757
  onDone: () => n.value = !1
2756
2758
  }
2757
2759
  );
2758
- } catch (g) {
2759
- throw n.value = !1, m == null || m(g), console.error("Error in sendPrompt:", g), g;
2760
+ } catch (m) {
2761
+ throw n.value = !1, g == null || g(m), console.error("Error in sendPrompt:", m), m;
2760
2762
  }
2761
2763
  }
2762
- async function i(c, p, s, m) {
2764
+ async function i(c, p, s, g) {
2763
2765
  n.value = !0;
2764
2766
  try {
2765
2767
  return await kt(
@@ -2771,16 +2773,16 @@ function Zt(e) {
2771
2773
  }
2772
2774
  },
2773
2775
  {
2774
- onMessage: (g) => p(g),
2775
- onFieldMetadata: (g) => s(g),
2776
+ onMessage: (m) => p(m),
2777
+ onFieldMetadata: (m) => s(m),
2776
2778
  onDone: () => n.value = !1
2777
2779
  }
2778
2780
  );
2779
- } catch (g) {
2780
- t.value = g, m == null || m(g), n.value = !1;
2781
+ } catch (m) {
2782
+ t.value = m, g == null || g(m), n.value = !1;
2781
2783
  }
2782
2784
  }
2783
- async function l(c, p, s, m) {
2785
+ async function l(c, p, s, g) {
2784
2786
  return await o({
2785
2787
  method: "POST",
2786
2788
  url: "/prompt/clear",
@@ -2788,7 +2790,7 @@ function Zt(e) {
2788
2790
  username: c,
2789
2791
  project: p,
2790
2792
  agentID: s,
2791
- formId: m
2793
+ formId: g
2792
2794
  }
2793
2795
  });
2794
2796
  }
@@ -2813,7 +2815,10 @@ function Zt(e) {
2813
2815
  handleFeedback: u
2814
2816
  };
2815
2817
  }
2816
- const Ja = ["innerHTML"], Ne = /* @__PURE__ */ O({
2818
+ const Wa = ["innerHTML"], Ja = {
2819
+ key: 1,
2820
+ class: "markdown-renderer"
2821
+ }, Qa = ["innerHTML"], Ya = ["innerHTML"], Te = /* @__PURE__ */ G({
2817
2822
  __name: "MarkdownRender",
2818
2823
  props: {
2819
2824
  source: {},
@@ -2821,22 +2826,45 @@ const Ja = ["innerHTML"], Ne = /* @__PURE__ */ O({
2821
2826
  plugins: {}
2822
2827
  },
2823
2828
  setup(e) {
2824
- const n = e, t = T(
2829
+ const n = e, t = q(
2825
2830
  new pn({
2826
2831
  html: !0,
2827
2832
  breaks: !0,
2828
2833
  ...n.options ?? {}
2829
2834
  })
2830
2835
  );
2831
- n.plugins && n.plugins.forEach((r) => t.value.use(r));
2832
- const o = w(() => t.value.render(n.source));
2833
- return (r, a) => (y(), A("div", {
2836
+ n.plugins && n.plugins.forEach((l) => t.value.use(l));
2837
+ const o = w(() => t.value.render(n.source)), r = w(() => n.source.toLowerCase().includes("**execution plan**")), a = w(() => {
2838
+ if (!r.value) return "";
2839
+ const u = n.source.split(`
2840
+ `).find((c) => c.toLowerCase().includes("**execution plan**"));
2841
+ return u ? t.value.render(u) : "";
2842
+ }), i = w(() => {
2843
+ if (!r.value) return "";
2844
+ const l = n.source.split(`
2845
+ `), u = l.findIndex(
2846
+ (p) => p.toLowerCase().includes("**execution plan**")
2847
+ );
2848
+ if (u === -1) return "";
2849
+ const c = l.slice(u + 1).join(`
2850
+ `);
2851
+ return t.value.render(c);
2852
+ });
2853
+ return (l, u) => r.value ? (b(), $("div", Ja, [
2854
+ L("div", { innerHTML: a.value }, null, 8, Qa),
2855
+ i.value ? (b(), $("div", {
2856
+ key: 0,
2857
+ class: "markdown-renderer__execution-plan-content",
2858
+ innerHTML: i.value
2859
+ }, null, 8, Ya)) : j("", !0)
2860
+ ])) : (b(), $("div", {
2861
+ key: 0,
2834
2862
  class: "markdown-renderer",
2835
2863
  innerHTML: o.value
2836
- }, null, 8, Ja));
2864
+ }, null, 8, Wa));
2837
2865
  }
2838
2866
  });
2839
- function Jt(e, n) {
2867
+ function Wt(e, n) {
2840
2868
  switch (e) {
2841
2869
  case "date":
2842
2870
  return new Date(n).toLocaleDateString();
@@ -2848,10 +2876,10 @@ function Jt(e, n) {
2848
2876
  return n.toString();
2849
2877
  }
2850
2878
  }
2851
- function Qa(e) {
2879
+ function Xa(e) {
2852
2880
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
2853
2881
  }
2854
- const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { class: "q-field-preview__footer" }, Ka = /* @__PURE__ */ O({
2882
+ const Ka = ["data-testid"], er = { class: "q-field-preview__toolbar" }, tr = { class: "q-field-preview__footer" }, nr = /* @__PURE__ */ G({
2855
2883
  __name: "FieldPreview",
2856
2884
  props: {
2857
2885
  name: {},
@@ -2862,61 +2890,61 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2862
2890
  },
2863
2891
  emits: ["apply", "regenerate"],
2864
2892
  setup(e, { emit: n }) {
2865
- const t = e, o = n, r = he(), a = T(t.applied), i = T(!1), l = w(() => t.disabled || a.value), u = w(() => t.disabled || i.value), c = w(() => t.type === "text" || t.type === "multiline_text" ? Ne : "div"), p = w(() => {
2866
- const b = {};
2867
- return c.value === Ne ? b.source = t.text : b.innerHTML = t.text, b;
2893
+ const t = e, o = n, r = he(), a = q(t.applied), i = q(!1), l = w(() => t.disabled || a.value), u = w(() => t.disabled || i.value), c = w(() => t.type === "text" || t.type === "multiline_text" ? Te : "div"), p = w(() => {
2894
+ const y = {};
2895
+ return c.value === Te ? y.source = t.text : y.innerHTML = t.text, y;
2868
2896
  }), s = w(() => {
2869
- const b = ["q-field-preview__content"];
2870
- return c.value !== Ne && b.push("preserve-whitespace"), b;
2897
+ const y = ["q-field-preview__content"];
2898
+ return c.value !== Te && y.push("preserve-whitespace"), y;
2871
2899
  });
2872
- function m() {
2900
+ function g() {
2873
2901
  if (a.value) return;
2874
2902
  a.value = !0;
2875
- const b = Jt(t.type, t.text);
2876
- o("apply", b);
2903
+ const y = Wt(t.type, t.text);
2904
+ o("apply", y);
2877
2905
  }
2878
- function g() {
2906
+ function m() {
2879
2907
  i.value || (i.value = !0, o("regenerate", t.name));
2880
2908
  }
2881
- return (b, _) => (y(), A("div", {
2909
+ return (y, I) => (b(), $("div", {
2882
2910
  class: "q-field-preview",
2883
- "data-testid": f(Qa)(t.name)
2911
+ "data-testid": f(Xa)(t.name)
2884
2912
  }, [
2885
- L("div", Ya, [
2913
+ L("div", er, [
2886
2914
  L("span", null, [
2887
- je(ae(f(r).suggestionsForField) + " ", 1),
2888
- L("b", null, ae(t.name), 1)
2915
+ Ge(oe(f(r).suggestionsForField) + " ", 1),
2916
+ L("b", null, oe(t.name), 1)
2889
2917
  ])
2890
2918
  ]),
2891
2919
  L("div", {
2892
- class: W(s.value)
2920
+ class: X(s.value)
2893
2921
  }, [
2894
- (y(), V(At(c.value), De(Te(p.value)), null, 16))
2922
+ (b(), Z(At(c.value), De(Ne(p.value)), null, 16))
2895
2923
  ], 2),
2896
- L("div", Xa, [
2897
- S(f(Nt), { borderless: "" }, {
2898
- default: C(() => [
2899
- S(f(re), {
2924
+ L("div", tr, [
2925
+ S(f(Tt), { borderless: "" }, {
2926
+ default: R(() => [
2927
+ S(f(ne), {
2900
2928
  title: f(r).regenerateResponse,
2901
2929
  disabled: u.value,
2902
2930
  readonly: u.value,
2903
2931
  borderless: "",
2904
- onClick: g
2932
+ onClick: m
2905
2933
  }, {
2906
- default: C(() => [
2907
- S(f(X), { icon: "reset" })
2934
+ default: R(() => [
2935
+ S(f(Y), { icon: "reset" })
2908
2936
  ]),
2909
2937
  _: 1
2910
2938
  }, 8, ["title", "disabled", "readonly"]),
2911
- S(f(re), {
2939
+ S(f(ne), {
2912
2940
  label: f(r).apply,
2913
2941
  "data-testid": "apply-button",
2914
2942
  disabled: l.value,
2915
2943
  readonly: l.value,
2916
- onClick: m
2944
+ onClick: g
2917
2945
  }, {
2918
- default: C(() => [
2919
- S(f(X), { icon: "apply" })
2946
+ default: R(() => [
2947
+ S(f(Y), { icon: "apply" })
2920
2948
  ]),
2921
2949
  _: 1
2922
2950
  }, 8, ["label", "disabled", "readonly"])
@@ -2924,16 +2952,16 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2924
2952
  _: 1
2925
2953
  })
2926
2954
  ])
2927
- ], 8, Wa));
2955
+ ], 8, Ka));
2928
2956
  }
2929
- }), er = { class: "pulsing-dots" }, tr = { class: "generating-text" }, nr = { class: "dots-container" }, or = /* @__PURE__ */ O({
2957
+ }), or = { class: "pulsing-dots" }, ar = { class: "generating-text" }, rr = { class: "dots-container" }, ir = /* @__PURE__ */ G({
2930
2958
  __name: "PulseDots",
2931
2959
  setup(e) {
2932
2960
  const n = [1, 2, 3], t = he();
2933
- return (o, r) => (y(), A("div", er, [
2934
- L("span", tr, ae(f(t).generatingResponse), 1),
2935
- L("div", nr, [
2936
- (y(), A(pe, null, Be(n, (a, i) => L("span", {
2961
+ return (o, r) => (b(), $("div", or, [
2962
+ L("span", ar, oe(f(t).generatingResponse), 1),
2963
+ L("div", rr, [
2964
+ (b(), $(pe, null, Be(n, (a, i) => L("span", {
2937
2965
  key: i,
2938
2966
  class: "dot",
2939
2967
  style: _e({ animationDelay: i * 0.2 + "s" })
@@ -2941,16 +2969,16 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2941
2969
  ])
2942
2970
  ]));
2943
2971
  }
2944
- }), ar = { class: "q-chatbot__message-container" }, rr = { class: "q-chatbot__message-wrapper" }, ir = {
2972
+ }), lr = { class: "q-chatbot__message-container" }, sr = { class: "q-chatbot__message-wrapper" }, cr = {
2945
2973
  key: 0,
2946
2974
  class: "q-chatbot__image-preview"
2947
- }, lr = ["src", "alt"], sr = {
2975
+ }, ur = ["src", "alt"], dr = {
2948
2976
  key: 1,
2949
2977
  class: "q-chatbot__file-preview-container"
2950
- }, cr = { class: "q-chatbot__file-icon-container" }, ur = { class: "q-chatbot__file-info" }, dr = { class: "q-chatbot__file-name" }, pr = { class: "q-chatbot__file-extension" }, fr = { class: "q-chatbot__message" }, vr = {
2978
+ }, pr = { class: "q-chatbot__file-icon-container" }, fr = { class: "q-chatbot__file-info" }, vr = { class: "q-chatbot__file-name" }, mr = { class: "q-chatbot__file-extension" }, gr = { class: "q-chatbot__message" }, br = {
2951
2979
  key: 1,
2952
2980
  class: "q-chatbot__text q-chatbot__user-text"
2953
- }, mr = /* @__PURE__ */ O({
2981
+ }, hr = /* @__PURE__ */ G({
2954
2982
  __name: "ChatBotMessage",
2955
2983
  props: {
2956
2984
  sender: { default: "user" },
@@ -2964,133 +2992,140 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2964
2992
  userImage: { default: void 0 },
2965
2993
  chatbotImage: {},
2966
2994
  isWelcomeMessage: { type: Boolean },
2967
- fields: { default: () => [] }
2995
+ fields: { default: () => [] },
2996
+ isLastMessage: { type: Boolean, default: !1 }
2968
2997
  },
2969
- emits: ["apply-fields", "regenerate"],
2998
+ emits: ["apply-fields", "regenerate", "send-message"],
2970
2999
  setup(e, { emit: n }) {
2971
3000
  const t = e, o = n, r = he(), { handleFeedback: a } = Zt(t.apiEndpoint), i = w(() => t.sender === "bot" && !Object.values(r || {}).includes(t.message || "") && !t.isWelcomeMessage), l = w(() => {
2972
- var b;
2973
- return ((b = t.file) == null ? void 0 : b.fileData.type.startsWith("image/")) ?? !1;
3001
+ var A;
3002
+ return ((A = t.file) == null ? void 0 : A.fileData.type.startsWith("image/")) ?? !1;
2974
3003
  }), u = w(
2975
3004
  () => t.sender === "bot" ? t.chatbotImage : t.userImage
2976
3005
  ), c = w(() => {
2977
- var _, E;
2978
- return (_ = t.file) != null && _.fileData ? ((E = t.file.fileData.name.split(".").pop()) == null ? void 0 : E.toUpperCase()) ?? "" : "";
2979
- });
2980
- function p() {
3006
+ var O, z;
3007
+ return (O = t.file) != null && O.fileData ? ((z = t.file.fileData.name.split(".").pop()) == null ? void 0 : z.toUpperCase()) ?? "" : "";
3008
+ }), p = w(() => t.sender === "bot" && !t.isWelcomeMessage && !!t.message && t.message.toLowerCase().includes("**execution plan**"));
3009
+ function s() {
3010
+ o("send-message", r.approveProceedPlan);
3011
+ }
3012
+ function g() {
2981
3013
  t.message && navigator.clipboard.writeText(t.message).then(() => {
2982
3014
  console.log("Response copied to clipboard");
2983
- }).catch((b) => {
2984
- console.error("Failed to copy response: ", b);
3015
+ }).catch((A) => {
3016
+ console.error("Failed to copy response: ", A);
2985
3017
  });
2986
3018
  }
2987
- function s(b, _) {
2988
- o("apply-fields", [{ id: _.id, text: b }]);
3019
+ function m(A, O) {
3020
+ o("apply-fields", [{ id: O.id, text: A }]);
2989
3021
  }
2990
- function m() {
3022
+ function y() {
2991
3023
  if (!t.fields || t.fields.length === 0) return;
2992
- const b = t.fields.map((_) => ({
2993
- id: _.id,
2994
- text: Jt(_.type, _.text)
3024
+ const A = t.fields.map((O) => ({
3025
+ id: O.id,
3026
+ text: Wt(O.type, O.text)
2995
3027
  }));
2996
- o("apply-fields", b);
3028
+ o("apply-fields", A);
2997
3029
  }
2998
- function g(b, _) {
2999
- b === null || _ === null || !t.sessionID || a(b, _, t.sessionID);
3030
+ function I(A, O) {
3031
+ A === null || O === null || !t.sessionID || a(A, O, t.sessionID);
3000
3032
  }
3001
- return (b, _) => {
3002
- var E, Y, z;
3003
- return y(), A("div", ar, [
3004
- S(f(X), {
3033
+ return (A, O) => {
3034
+ var z, W, J;
3035
+ return b(), $("div", lr, [
3036
+ S(f(Y), {
3005
3037
  type: "img",
3006
3038
  icon: u.value,
3007
3039
  alt: f(r).senderImage,
3008
3040
  class: "q-chatbot__profile"
3009
3041
  }, null, 8, ["icon", "alt"]),
3010
- L("div", rr, [
3011
- l.value ? (y(), A("div", ir, [
3042
+ L("div", sr, [
3043
+ l.value ? (b(), $("div", cr, [
3012
3044
  L("img", {
3013
- src: (E = t.file) == null ? void 0 : E.previewUrl,
3045
+ src: (z = t.file) == null ? void 0 : z.previewUrl,
3014
3046
  alt: f(r).imagePreview
3015
- }, null, 8, lr)
3016
- ])) : (Y = t.file) != null && Y.fileData && !l.value ? (y(), A("div", sr, [
3017
- L("div", cr, [
3018
- S(f(X), {
3047
+ }, null, 8, ur)
3048
+ ])) : (W = t.file) != null && W.fileData && !l.value ? (b(), $("div", dr, [
3049
+ L("div", pr, [
3050
+ S(f(Y), {
3019
3051
  icon: "file",
3020
3052
  class: "q-chatbot__file-icon"
3021
3053
  })
3022
3054
  ]),
3023
- L("div", ur, [
3024
- L("span", dr, ae((z = t.file) == null ? void 0 : z.fileData.name), 1),
3025
- L("span", pr, ae(c.value), 1)
3055
+ L("div", fr, [
3056
+ L("span", vr, oe((J = t.file) == null ? void 0 : J.fileData.name), 1),
3057
+ L("span", mr, oe(c.value), 1)
3026
3058
  ])
3027
- ])) : G("", !0),
3028
- L("div", fr, [
3029
- b.loading ? (y(), V(or, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (y(!0), A(pe, { key: 1 }, Be(t.fields, (j, Q) => (y(), V(f(Ka), {
3030
- key: Q,
3059
+ ])) : j("", !0),
3060
+ L("div", gr, [
3061
+ A.loading ? (b(), Z(ir, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (b(!0), $(pe, { key: 1 }, Be(t.fields, (V, E) => (b(), Z(f(nr), {
3062
+ key: E,
3031
3063
  class: "q-chatbot__text",
3032
- text: j.text || "",
3033
- name: j.name,
3034
- type: j.type,
3035
- disabled: b.loading,
3036
- onRegenerate: () => o("regenerate", j.name),
3037
- onApply: (Z) => s(Z, j)
3038
- }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (y(), A(pe, { key: 2 }, [
3039
- t.sender === "bot" ? (y(), V(f(Ne), {
3064
+ text: V.text || "",
3065
+ name: V.name,
3066
+ type: V.type,
3067
+ disabled: A.loading,
3068
+ onRegenerate: () => o("regenerate", V.name),
3069
+ onApply: (U) => m(U, V)
3070
+ }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (b(), $(pe, { key: 2 }, [
3071
+ t.sender === "bot" ? (b(), Z(f(Te), {
3040
3072
  key: 0,
3041
3073
  class: "q-chatbot__text",
3042
3074
  source: t.message || ""
3043
- }, null, 8, ["source"])) : (y(), A("div", vr, ae(t.message), 1))
3075
+ }, null, 8, ["source"])) : (b(), $("div", br, oe(t.message), 1))
3044
3076
  ], 64))
3045
3077
  ])
3046
3078
  ]),
3047
- S(f($r), {
3079
+ S(f(Ir), {
3048
3080
  "show-buttons": i.value,
3049
3081
  loading: t.loading,
3050
3082
  "date-format": t.dateFormat,
3051
- onCopyResponse: p,
3052
- onSubmitFeedback: g,
3053
- onApplyAll: m
3054
- }, null, 8, ["show-buttons", "loading", "date-format"])
3083
+ "is-execution-plan": p.value,
3084
+ "is-last-message": t.isLastMessage,
3085
+ onCopyResponse: g,
3086
+ onSubmitFeedback: I,
3087
+ onApplyAll: y,
3088
+ onApproveProceedPlan: s
3089
+ }, null, 8, ["show-buttons", "loading", "date-format", "is-execution-plan", "is-last-message"])
3055
3090
  ]);
3056
3091
  };
3057
3092
  }
3058
3093
  }), ee = [];
3059
3094
  for (let e = 0; e < 256; ++e)
3060
3095
  ee.push((e + 256).toString(16).slice(1));
3061
- function gr(e, n = 0) {
3096
+ function yr(e, n = 0) {
3062
3097
  return (ee[e[n + 0]] + ee[e[n + 1]] + ee[e[n + 2]] + ee[e[n + 3]] + "-" + ee[e[n + 4]] + ee[e[n + 5]] + "-" + ee[e[n + 6]] + ee[e[n + 7]] + "-" + ee[e[n + 8]] + ee[e[n + 9]] + "-" + ee[e[n + 10]] + ee[e[n + 11]] + ee[e[n + 12]] + ee[e[n + 13]] + ee[e[n + 14]] + ee[e[n + 15]]).toLowerCase();
3063
3098
  }
3064
- let We;
3065
- const br = new Uint8Array(16);
3066
- function hr() {
3067
- if (!We) {
3099
+ let Qe;
3100
+ const wr = new Uint8Array(16);
3101
+ function _r() {
3102
+ if (!Qe) {
3068
3103
  if (typeof crypto > "u" || !crypto.getRandomValues)
3069
3104
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3070
- We = crypto.getRandomValues.bind(crypto);
3105
+ Qe = crypto.getRandomValues.bind(crypto);
3071
3106
  }
3072
- return We(br);
3107
+ return Qe(wr);
3073
3108
  }
3074
- const yr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), $t = { randomUUID: yr };
3075
- function Qt(e, n, t) {
3109
+ const kr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), $t = { randomUUID: kr };
3110
+ function Jt(e, n, t) {
3076
3111
  var r;
3077
3112
  if ($t.randomUUID && !n && !e)
3078
3113
  return $t.randomUUID();
3079
3114
  e = e || {};
3080
- const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? hr();
3115
+ const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? _r();
3081
3116
  if (o.length < 16)
3082
3117
  throw new Error("Random bytes length must be >= 16");
3083
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, gr(o);
3118
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, yr(o);
3084
3119
  }
3085
- const me = T([]), qe = T(1);
3086
- function Wt() {
3120
+ const me = q([]), Me = q(1);
3121
+ function Qt() {
3087
3122
  function e(a, i, l, u, c) {
3088
3123
  const p = {
3089
- id: qe.value++,
3124
+ id: Me.value++,
3090
3125
  message: a,
3091
3126
  date: /* @__PURE__ */ new Date(),
3092
3127
  sender: i || "bot",
3093
- sessionID: u || Qt(),
3128
+ sessionID: u || Jt(),
3094
3129
  file: l,
3095
3130
  isWelcomeMessage: c,
3096
3131
  fields: []
@@ -3098,10 +3133,10 @@ function Wt() {
3098
3133
  return me.value.push(p), p;
3099
3134
  }
3100
3135
  function n() {
3101
- return me.value.find((a) => a.id === qe.value - 1);
3136
+ return me.value.find((a) => a.id === Me.value - 1);
3102
3137
  }
3103
3138
  function t() {
3104
- me.value = [], qe.value = 1;
3139
+ me.value = [], Me.value = 1;
3105
3140
  }
3106
3141
  function o(a) {
3107
3142
  me.value = me.value.filter((i) => i.id !== a);
@@ -3111,7 +3146,7 @@ function Wt() {
3111
3146
  }
3112
3147
  return {
3113
3148
  messages: me,
3114
- nextMessageId: qe,
3149
+ nextMessageId: Me,
3115
3150
  addChatMessage: e,
3116
3151
  getLastMessage: n,
3117
3152
  clearMessages: t,
@@ -3119,23 +3154,25 @@ function Wt() {
3119
3154
  deleteMessageById: o
3120
3155
  };
3121
3156
  }
3122
- const wr = { class: "q-chatbot__dialog-title" }, _r = {
3157
+ const $r = { class: "q-chatbot__dialog-title" }, Ar = {
3123
3158
  key: 0,
3124
3159
  class: "q-chatbot__feedback-buttons"
3125
- }, kr = { class: "q-chatbot__sender" }, $r = /* @__PURE__ */ O({
3160
+ }, xr = { class: "q-chatbot__sender" }, Ir = /* @__PURE__ */ G({
3126
3161
  __name: "ChatBotMessageButtons",
3127
3162
  props: {
3128
3163
  loading: { type: Boolean },
3129
3164
  showButtons: { type: Boolean },
3130
3165
  dateFormat: {},
3131
- date: {}
3166
+ date: {},
3167
+ isExecutionPlan: { type: Boolean },
3168
+ isLastMessage: { type: Boolean }
3132
3169
  },
3133
- emits: ["submit-feedback", "copy-response", "apply-all"],
3170
+ emits: ["submit-feedback", "copy-response", "apply-all", "approve-proceed-plan"],
3134
3171
  setup(e, { emit: n }) {
3135
- const t = e, o = n, r = he(), { getLastMessage: a } = Wt(), i = T(!1), l = T(""), u = T(null), c = T(!1), p = w(() => t.loading || c.value), s = t.date || /* @__PURE__ */ new Date(), m = a(), g = w(() => m ? m.fields && m.fields.length > 1 : !1), b = [
3172
+ const t = e, o = n, r = he(), { getLastMessage: a } = Qt(), i = q(!1), l = q(""), u = q(null), c = q(!1), p = q(!1), s = w(() => t.loading || c.value), g = w(() => t.loading || p.value || !t.isLastMessage), m = t.date || /* @__PURE__ */ new Date(), y = a(), I = w(() => y ? y.fields && y.fields.length > 1 : !1), A = w(() => t.isExecutionPlan), O = [
3136
3173
  {
3137
3174
  id: "confirm-btn",
3138
- action: B,
3175
+ action: ae,
3139
3176
  props: {
3140
3177
  label: r.submitButton,
3141
3178
  class: "q-chatbot__dialog-confirm-button"
@@ -3154,41 +3191,44 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3154
3191
  icon: "cancel"
3155
3192
  }
3156
3193
  }
3157
- ], _ = w(() => t.dateFormat ? Y(s, "HH:mm") : s.toLocaleString()), E = w(() => `${_.value}`);
3158
- function Y(D, te) {
3159
- const ne = D.getDate().toString().padStart(2, "0"), d = (D.getMonth() + 1).toString().padStart(2, "0"), v = D.getFullYear().toString().padStart(2, "0"), $ = D.getHours().toString().padStart(2, "0"), q = D.getMinutes().toString().padStart(2, "0"), I = D.getSeconds().toString().padStart(2, "0");
3160
- return te.replace("dd", ne).replace("MM", d).replace("yyyy", v).replace("HH", $).replace("mm", q).replace("ss", I);
3194
+ ], z = w(() => t.dateFormat ? J(m, "HH:mm") : m.toLocaleString()), W = w(() => `${z.value}`);
3195
+ function J(v, _) {
3196
+ const C = v.getDate().toString().padStart(2, "0"), D = (v.getMonth() + 1).toString().padStart(2, "0"), P = v.getFullYear().toString().padStart(2, "0"), B = v.getHours().toString().padStart(2, "0"), H = v.getMinutes().toString().padStart(2, "0"), h = v.getSeconds().toString().padStart(2, "0");
3197
+ return _.replace("dd", C).replace("MM", D).replace("yyyy", P).replace("HH", B).replace("mm", H).replace("ss", h);
3161
3198
  }
3162
- function z(D) {
3163
- i.value = !0, l.value = "", u.value = D;
3199
+ function V(v) {
3200
+ i.value = !0, l.value = "", u.value = v;
3164
3201
  }
3165
- function j() {
3166
- z(0);
3202
+ function E() {
3203
+ V(0);
3167
3204
  }
3168
- function Q() {
3169
- z(1);
3205
+ function U() {
3206
+ V(1);
3170
3207
  }
3171
- function Z() {
3208
+ function F() {
3172
3209
  c.value || (c.value = !0, o("apply-all"));
3173
3210
  }
3174
- function B() {
3211
+ function le() {
3212
+ p.value || (p.value = !0, o("approve-proceed-plan"));
3213
+ }
3214
+ function ae() {
3175
3215
  u.value && (o("submit-feedback", u.value, l.value), i.value = !1, l.value = "", u.value = null);
3176
3216
  }
3177
- function P() {
3217
+ function d() {
3178
3218
  o("copy-response");
3179
3219
  }
3180
- return (D, te) => (y(), A(pe, null, [
3220
+ return (v, _) => (b(), $(pe, null, [
3181
3221
  S(f(Ht), {
3182
3222
  modelValue: i.value,
3183
- "onUpdate:modelValue": te[1] || (te[1] = (ne) => i.value = ne),
3223
+ "onUpdate:modelValue": _[1] || (_[1] = (C) => i.value = C),
3184
3224
  inline: "",
3185
- buttons: b
3225
+ buttons: O
3186
3226
  }, {
3187
- body: C(() => [
3188
- L("div", wr, ae(f(r).commentDialogTitle), 1),
3189
- S(f(Ot), {
3227
+ body: R(() => [
3228
+ L("div", $r, oe(f(r).commentDialogTitle), 1),
3229
+ S(f(Pt), {
3190
3230
  modelValue: l.value,
3191
- "onUpdate:modelValue": te[0] || (te[0] = (ne) => l.value = ne),
3231
+ "onUpdate:modelValue": _[0] || (_[0] = (C) => l.value = C),
3192
3232
  class: "q-chatbot__dialog-comment-input",
3193
3233
  "max-length": 150,
3194
3234
  size: "large",
@@ -3197,68 +3237,85 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3197
3237
  ]),
3198
3238
  _: 1
3199
3239
  }, 8, ["modelValue"]),
3200
- D.showButtons ? (y(), A("div", _r, [
3201
- S(f(Nt), null, {
3202
- default: C(() => [
3203
- S(f(re), {
3240
+ v.showButtons ? (b(), $("div", Ar, [
3241
+ S(f(Tt), null, {
3242
+ default: R(() => [
3243
+ S(f(ne), {
3204
3244
  title: f(r).goodResponse,
3205
3245
  class: "q-chatbot__good-response-button",
3206
3246
  borderless: "",
3207
3247
  disabled: t.loading,
3208
- onClick: Q
3248
+ onClick: U
3209
3249
  }, {
3210
- default: C(() => [
3211
- S(f(X), { icon: "thumb-up" })
3250
+ default: R(() => [
3251
+ S(f(Y), { icon: "thumb-up" })
3212
3252
  ]),
3213
3253
  _: 1
3214
3254
  }, 8, ["title", "disabled"]),
3215
- S(f(re), {
3255
+ S(f(ne), {
3216
3256
  title: f(r).badResponse,
3217
3257
  class: "q-chatbot__bad-response-button",
3218
3258
  borderless: "",
3219
3259
  disabled: t.loading,
3220
- onClick: j
3260
+ onClick: E
3221
3261
  }, {
3222
- default: C(() => [
3223
- S(f(X), { icon: "thumb-down" })
3262
+ default: R(() => [
3263
+ S(f(Y), { icon: "thumb-down" })
3224
3264
  ]),
3225
3265
  _: 1
3226
3266
  }, 8, ["title", "disabled"]),
3227
- S(f(re), {
3267
+ S(f(ne), {
3228
3268
  title: f(r).copyResponse,
3229
3269
  class: "q-chatbot__copy-button",
3230
3270
  borderless: "",
3231
3271
  disabled: t.loading,
3232
- onClick: P
3272
+ onClick: d
3233
3273
  }, {
3234
- default: C(() => [
3235
- S(f(X), { icon: "copy-content" })
3274
+ default: R(() => [
3275
+ S(f(Y), { icon: "copy-content" })
3236
3276
  ]),
3237
3277
  _: 1
3238
3278
  }, 8, ["title", "disabled"]),
3239
- g.value ? (y(), V(f(re), {
3279
+ I.value ? (b(), Z(f(ne), {
3240
3280
  key: 0,
3241
- title: f(r).applyAll,
3281
+ title: s.value ? void 0 : f(r).applyAll,
3242
3282
  class: "q-chatbot__apply-all-button",
3283
+ variant: "bold",
3243
3284
  borderless: "",
3244
- disabled: p.value,
3245
- readonly: p.value,
3285
+ disabled: s.value,
3286
+ readonly: s.value,
3246
3287
  label: f(r).applyAll,
3247
- onClick: Z
3288
+ onClick: F
3289
+ }, {
3290
+ default: R(() => [
3291
+ S(f(Y), { icon: "apply" })
3292
+ ]),
3293
+ _: 1
3294
+ }, 8, ["title", "disabled", "readonly", "label"])) : j("", !0),
3295
+ A.value ? (b(), Z(f(ne), {
3296
+ key: 1,
3297
+ title: g.value ? void 0 : f(r).approveProceed,
3298
+ class: "q-chatbot__approve-proceed-plan-button",
3299
+ variant: "bold",
3300
+ borderless: "",
3301
+ disabled: g.value,
3302
+ readonly: g.value,
3303
+ label: f(r).approveProceed,
3304
+ onClick: le
3248
3305
  }, {
3249
- default: C(() => [
3250
- S(f(X), { icon: "apply-all" })
3306
+ default: R(() => [
3307
+ S(f(Y), { icon: "apply" })
3251
3308
  ]),
3252
3309
  _: 1
3253
- }, 8, ["title", "disabled", "readonly", "label"])) : G("", !0)
3310
+ }, 8, ["title", "disabled", "readonly", "label"])) : j("", !0)
3254
3311
  ]),
3255
3312
  _: 1
3256
3313
  })
3257
- ])) : G("", !0),
3258
- L("div", kr, ae(E.value), 1)
3314
+ ])) : j("", !0),
3315
+ L("div", xr, oe(W.value), 1)
3259
3316
  ], 64));
3260
3317
  }
3261
- }), Ar = { class: "q-chatbot__tools" }, xr = { class: "q-chatbot__tools__select" }, Ir = /* @__PURE__ */ O({
3318
+ }), Sr = { class: "q-chatbot__tools" }, Dr = { class: "q-chatbot__tools__select" }, Er = /* @__PURE__ */ G({
3262
3319
  __name: "ChatToolBar",
3263
3320
  props: {
3264
3321
  disabled: { type: Boolean },
@@ -3271,19 +3328,19 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3271
3328
  key: "",
3272
3329
  value: "Default Chat",
3273
3330
  formId: ""
3274
- }, i = w(() => t.availableAgents && t.availableAgents.length > 0), l = T(t.selectedAgentKey || a.key);
3275
- le(
3331
+ }, i = w(() => t.availableAgents && t.availableAgents.length > 0), l = q(t.selectedAgentKey || a.key);
3332
+ ie(
3276
3333
  () => t.selectedAgentKey,
3277
3334
  (s) => {
3278
3335
  l.value = s || a.key;
3279
3336
  }
3280
3337
  );
3281
3338
  const u = w(() => {
3282
- var m;
3283
- const s = (m = t.availableAgents) == null ? void 0 : m.map((g) => ({
3284
- key: g.key,
3285
- value: g.value,
3286
- formId: g.formId
3339
+ var g;
3340
+ const s = (g = t.availableAgents) == null ? void 0 : g.map((m) => ({
3341
+ key: m.key,
3342
+ value: m.value,
3343
+ formId: m.formId
3287
3344
  }));
3288
3345
  return s == null || s.push(a), s || [a];
3289
3346
  });
@@ -3291,24 +3348,24 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3291
3348
  o("clear");
3292
3349
  }
3293
3350
  function p(s) {
3294
- const m = u.value.find((g) => g.key === s);
3295
- if (m) {
3296
- if (m.key === a.key) {
3351
+ const g = u.value.find((m) => m.key === s);
3352
+ if (g) {
3353
+ if (g.key === a.key) {
3297
3354
  o("change-chat", { key: "", formId: "" });
3298
3355
  return;
3299
3356
  }
3300
- o("change-chat", m);
3357
+ o("change-chat", g);
3301
3358
  }
3302
3359
  }
3303
- return (s, m) => {
3304
- const g = cn("q-select");
3305
- return y(), A("div", Ar, [
3306
- L("div", xr, [
3307
- i.value ? (y(), V(g, {
3360
+ return (s, g) => {
3361
+ const m = cn("q-select");
3362
+ return b(), $("div", Sr, [
3363
+ L("div", Dr, [
3364
+ i.value ? (b(), Z(m, {
3308
3365
  key: 0,
3309
3366
  modelValue: l.value,
3310
3367
  "onUpdate:modelValue": [
3311
- m[0] || (m[0] = (b) => l.value = b),
3368
+ g[0] || (g[0] = (y) => l.value = y),
3312
3369
  p
3313
3370
  ],
3314
3371
  inline: "",
@@ -3316,31 +3373,31 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3316
3373
  class: "q-chatbot__tools-select-input",
3317
3374
  size: "medium",
3318
3375
  items: u.value
3319
- }, null, 8, ["modelValue", "items"])) : G("", !0)
3376
+ }, null, 8, ["modelValue", "items"])) : j("", !0)
3320
3377
  ]),
3321
- S(f(re), {
3378
+ S(f(ne), {
3322
3379
  title: f(r),
3323
3380
  disabled: t.disabled,
3324
3381
  class: "q-chatbot__tools-clear",
3325
3382
  borderless: "",
3326
3383
  onClick: c
3327
3384
  }, {
3328
- default: C(() => [
3329
- S(f(X), { icon: "bin" })
3385
+ default: R(() => [
3386
+ S(f(Y), { icon: "bin" })
3330
3387
  ]),
3331
3388
  _: 1
3332
3389
  }, 8, ["title", "disabled"])
3333
3390
  ]);
3334
3391
  };
3335
3392
  }
3336
- }), Sr = { class: "q-chatbot__input-wrapper" }, Dr = {
3393
+ }), Cr = { class: "q-chatbot__input-wrapper" }, Br = {
3337
3394
  key: 0,
3338
3395
  class: "q-chatbot__file-preview"
3339
- }, Er = ["src", "alt"], Cr = {
3396
+ }, Rr = ["src", "alt"], Lr = {
3340
3397
  key: 1,
3341
3398
  class: "q-chatbot__file-preview",
3342
3399
  tabindex: "0"
3343
- }, Br = { class: "q-chatbot__file-name" }, Rr = { class: "q-chatbot__input" }, Lr = { class: "q-chatbot__send-container" }, qr = ["accept"], Mr = /* @__PURE__ */ O({
3400
+ }, Mr = { class: "q-chatbot__file-name" }, qr = { class: "q-chatbot__input" }, Tr = { class: "q-chatbot__send-container" }, Nr = ["accept"], Fr = /* @__PURE__ */ G({
3344
3401
  __name: "ChatBotInput",
3345
3402
  props: {
3346
3403
  disabled: { type: Boolean },
@@ -3350,93 +3407,93 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3350
3407
  },
3351
3408
  emits: ["send-message"],
3352
3409
  setup(e, { emit: n }) {
3353
- const t = e, o = n, r = he(), a = T(null), i = T(null), l = T(""), u = T(!1), c = w(() => ".png,.jpeg,.jpg,.svg,.webp,.pdf,.doc,.docx"), p = w(() => i.value ? i.value.type.startsWith("image/") ?? !1 : !1), s = T(t.userPrompt ?? ""), m = w(() => t.disabled || t.loading || s.value.trim().length === 0);
3354
- function g(B) {
3355
- B.preventDefault(), t.disabled || (u.value = !0);
3410
+ const t = e, o = n, r = he(), a = q(null), i = q(null), l = q(""), u = q(!1), c = w(() => ".png,.jpeg,.jpg,.svg,.webp,.pdf,.doc,.docx"), p = w(() => i.value ? i.value.type.startsWith("image/") ?? !1 : !1), s = q(t.userPrompt ?? ""), g = w(() => t.disabled || t.loading || s.value.trim().length === 0);
3411
+ function m(E) {
3412
+ E.preventDefault(), t.disabled || (u.value = !0);
3356
3413
  }
3357
- const b = w(() => ({
3414
+ const y = w(() => ({
3358
3415
  "q-chatbot__footer-disabled": t.disabled,
3359
3416
  "drag-over": u.value && !i.value
3360
3417
  }));
3361
- function _(B) {
3362
- B.preventDefault(), u.value = !1;
3418
+ function I(E) {
3419
+ E.preventDefault(), u.value = !1;
3363
3420
  }
3364
- function E(B) {
3365
- var D;
3366
- if (B.preventDefault(), u.value = !1, t.disabled || i.value) return;
3367
- const P = (D = B.dataTransfer) == null ? void 0 : D.files;
3368
- P && Y(P[0]);
3421
+ function A(E) {
3422
+ var F;
3423
+ if (E.preventDefault(), u.value = !1, t.disabled || i.value) return;
3424
+ const U = (F = E.dataTransfer) == null ? void 0 : F.files;
3425
+ U && O(U[0]);
3369
3426
  }
3370
- function Y(B) {
3371
- i.value = B, B.type.startsWith("image/") ? l.value = URL.createObjectURL(B) : l.value = "";
3427
+ function O(E) {
3428
+ i.value = E, E.type.startsWith("image/") ? l.value = URL.createObjectURL(E) : l.value = "";
3372
3429
  }
3373
3430
  function z() {
3374
3431
  if (!(s.value.trim() === "" || t.loading || t.disabled)) {
3375
3432
  if (i.value) {
3376
- const B = {
3433
+ const E = {
3377
3434
  fileData: i.value,
3378
3435
  previewUrl: l.value ?? ""
3379
3436
  };
3380
- o("send-message", s.value, B), j();
3437
+ o("send-message", s.value, E), W();
3381
3438
  } else o("send-message", s.value);
3382
3439
  s.value = "";
3383
3440
  }
3384
3441
  }
3385
- function j() {
3442
+ function W() {
3386
3443
  i.value = null, l.value = "", a.value && (a.value.value = "", a.value.files = null);
3387
3444
  }
3388
- function Q() {
3389
- var B;
3390
- (B = a.value) == null || B.click();
3445
+ function J() {
3446
+ var E;
3447
+ (E = a.value) == null || E.click();
3391
3448
  }
3392
- function Z(B) {
3393
- var D;
3394
- const P = B.target;
3395
- (D = P.files) != null && D[0] && Y(P.files[0]);
3449
+ function V(E) {
3450
+ var F;
3451
+ const U = E.target;
3452
+ (F = U.files) != null && F[0] && O(U.files[0]);
3396
3453
  }
3397
- return (B, P) => (y(), A(pe, null, [
3398
- S(f(Tt), {
3454
+ return (E, U) => (b(), $(pe, null, [
3455
+ S(f(Nt), {
3399
3456
  label: f(r).inputLabel
3400
3457
  }, null, 8, ["label"]),
3401
3458
  L("div", {
3402
- class: W(["q-chatbot__footer", b.value]),
3403
- onDragover: Me(g, ["prevent"]),
3404
- onDragleave: Me(_, ["prevent"]),
3405
- onDrop: Me(E, ["prevent"])
3459
+ class: X(["q-chatbot__footer", y.value]),
3460
+ onDragover: qe(m, ["prevent"]),
3461
+ onDragleave: qe(I, ["prevent"]),
3462
+ onDrop: qe(A, ["prevent"])
3406
3463
  }, [
3407
- L("div", Sr, [
3408
- i.value ? (y(), A("div", Dr, [
3409
- p.value ? (y(), A("img", {
3464
+ L("div", Cr, [
3465
+ i.value ? (b(), $("div", Br, [
3466
+ p.value ? (b(), $("img", {
3410
3467
  key: 0,
3411
3468
  class: "q-chatbot__image-preview",
3412
3469
  src: l.value,
3413
3470
  tabindex: "0",
3414
3471
  alt: f(r).imagePreview
3415
- }, null, 8, Er)) : (y(), A("div", Cr, [
3416
- S(f(X), {
3472
+ }, null, 8, Rr)) : (b(), $("div", Lr, [
3473
+ S(f(Y), {
3417
3474
  icon: "file",
3418
3475
  class: "q-chatbot__file-icon"
3419
3476
  }),
3420
- L("span", Br, ae(i.value.name), 1)
3477
+ L("span", Mr, oe(i.value.name), 1)
3421
3478
  ])),
3422
- S(f(re), {
3479
+ S(f(ne), {
3423
3480
  class: "q-chatbot__remove-file",
3424
3481
  tabindex: "0",
3425
3482
  flat: "",
3426
3483
  round: "",
3427
- onClick: j
3484
+ onClick: W
3428
3485
  }, {
3429
- default: C(() => [
3430
- S(f(X), { icon: "remove" })
3486
+ default: R(() => [
3487
+ S(f(Y), { icon: "remove" })
3431
3488
  ]),
3432
3489
  _: 1
3433
3490
  })
3434
- ])) : G("", !0),
3435
- L("div", Rr, [
3491
+ ])) : j("", !0),
3492
+ L("div", qr, [
3436
3493
  S(f(Za), {
3437
3494
  id: "chatbot-input",
3438
3495
  modelValue: s.value,
3439
- "onUpdate:modelValue": P[0] || (P[0] = (D) => s.value = D),
3496
+ "onUpdate:modelValue": U[0] || (U[0] = (F) => s.value = F),
3440
3497
  size: "block",
3441
3498
  autosize: "",
3442
3499
  resize: "none",
@@ -3445,15 +3502,15 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3445
3502
  onKeyup: un(z, ["enter"])
3446
3503
  }, null, 8, ["modelValue", "disabled"])
3447
3504
  ]),
3448
- L("div", Lr, [
3449
- S(f(re), {
3505
+ L("div", Tr, [
3506
+ S(f(ne), {
3450
3507
  title: f(r).imageUpload,
3451
3508
  class: "q-chatbot__upload",
3452
3509
  disabled: t.disabled || t.loading || !!i.value,
3453
- onClick: Q
3510
+ onClick: J
3454
3511
  }, {
3455
- default: C(() => [
3456
- S(f(X), { icon: "upload" })
3512
+ default: R(() => [
3513
+ S(f(Y), { icon: "upload" })
3457
3514
  ]),
3458
3515
  _: 1
3459
3516
  }, 8, ["title", "disabled"]),
@@ -3464,18 +3521,18 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3464
3521
  type: "file",
3465
3522
  accept: c.value,
3466
3523
  class: "hidden-input",
3467
- onChange: Z
3468
- }, null, 40, qr),
3469
- S(f(re), {
3524
+ onChange: V
3525
+ }, null, 40, Nr),
3526
+ S(f(ne), {
3470
3527
  title: f(r).sendMessage,
3471
3528
  variant: "bold",
3472
3529
  class: "q-chatbot__send",
3473
- disabled: m.value,
3474
- readonly: m.value,
3530
+ disabled: g.value,
3531
+ readonly: g.value,
3475
3532
  onClick: z
3476
3533
  }, {
3477
- default: C(() => [
3478
- S(f(X), { icon: "send" })
3534
+ default: R(() => [
3535
+ S(f(Y), { icon: "send" })
3479
3536
  ]),
3480
3537
  _: 1
3481
3538
  }, 8, ["title", "disabled", "readonly"])
@@ -3484,7 +3541,7 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3484
3541
  ], 34)
3485
3542
  ], 64));
3486
3543
  }
3487
- }), Nr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20126.25%20110.36'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='45.24'%20cy='38.05'%20fx='45.24'%20fy='38.05'%20r='59.09'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2331319e'/%3e%3cstop%20offset='.19'%20stop-color='%232e2e97'/%3e%3cstop%20offset='.45'%20stop-color='%23292985'/%3e%3cstop%20offset='.75'%20stop-color='%23202067'/%3e%3cstop%20offset='1'%20stop-color='%2317174a'/%3e%3c/radialGradient%3e%3clinearGradient%20id='linear-gradient'%20x1='82.65'%20y1='50.41'%20x2='82.65'%20y2='77.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.02'%20stop-color='%2366ebfe'/%3e%3cstop%20offset='.96'%20stop-color='%2300bfdb'/%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='44.6'%20y1='50.01'%20x2='44.6'%20y2='77.1'%20xlink:href='%23linear-gradient'/%3e%3c/defs%3e%3cg%20isolation='isolate'%3e%3cg%20id='Layer_1'%3e%3cpath%20d='M126.2,61.4c-.2-3.69-2.61-17.39-5.92-22.09-2.42-3.44-5.89-4.03-7.96-4.38-.13-.02-.27-.05-.41-.07-.16-.28-.32-.58-.45-.81-.63-1.14-1.03-1.87-1.44-2.44-6.96-9.88-14.91-16.51-24.85-20.69-.25-2.29-.84-5.24-3.37-7.44-2.93-2.55-7.58-2.9-11.68-3.21-.93-.07-1.82-.14-2.4-.22l-.33-.05h-8.61l-.36.05c-.65.1-1.61.17-2.63.24-3.75.27-8.01.57-10.98,2.85-2.94,2.26-3.58,5.55-3.79,7.84-9.71,3.94-17.86,10.71-24.85,20.62-.4.57-.81,1.3-1.43,2.44-.13.23-.29.53-.45.81-.14.02-.28.05-.4.07-2.07.35-5.54.94-7.96,4.39-2.25,3.19-3.84,9.89-4.58,13.59-.6,2.97-1.9,10.3-1.08,14.26.79,3.78,3.66,5.6,5.37,6.68.12.08.26.16.39.25,1.65,10.03,6.98,18.56,15.52,24.77,9.23,6.72,20.2,9.43,27.78,10.52,4.49.65,9.15.97,13.85.97,9.67,0,23.77-1.39,36-8.02,11.58-6.27,18.81-16,21.04-28.24,4.52-2.76,6.36-5.67,5.98-12.71Z'%20fill='%2317174a'/%3e%3cpath%20d='M67.15,4.69c2.98.42,9.31.31,11.62,2.31,1.99,1.73,1.65,4.82,2.06,7.22,10.77,3.89,18.73,10.59,25.39,20.04.64.91,2.13,3.95,2.58,4.33,1.71,1.46,5.54.35,7.67,3.37,2.29,3.25,4.83,15.41,5.06,19.59.31,5.82-.76,6.9-5.58,9.44-3.28,26.16-29.7,34.5-52.68,34.5-4.6,0-9.06-.33-13.17-.93-18.13-2.61-37.11-12.11-39.51-33.08-1.7-1.92-4.96-2.54-5.55-5.39-.95-4.56,2.21-20.32,4.89-24.14,2.13-3.02,5.96-1.91,7.67-3.37.46-.39,1.94-3.42,2.58-4.33,6.54-9.28,14.55-16.22,25.21-19.87.85-.87-.3-5.45,2.43-7.55,2.52-1.94,8.35-1.69,11.42-2.16h7.91'%20fill='%23fff'/%3e%3cpath%20d='M121.86,61.51c-.22-4.2-2.78-16.43-5.07-19.7-1.77-2.51-4.71-2.18-6.64-2.83.1,1.18.16,2.37.16,3.57,0,26.85-25.96,48.61-57.98,48.61-15.83,0-30.17-5.32-40.63-13.94,4.91,17.1,22.06,25.14,38.51,27.52,4.12.59,8.6.93,13.21.93,23.06,0,49.57-8.38,52.85-34.68,4.83-2.56,5.91-3.63,5.6-9.49Z'%20fill='%23d0d7e2'%20mix-blend-mode='multiply'%20opacity='.4'/%3e%3cpath%20d='M62.91,97.68c5.82,0,11.67-.53,16.72-1.56,13.1-2.67,22.09-8.06,26.72-16.03,4.43-7.63,4.75-17.33.96-28.84-4.28-13-13.22-22.77-24.7-27.89-.13,4.51-3.84,8.16-8.38,8.16h-20.89c-4.61,0-8.39-3.78-8.39-8.39v-.14c-5.36,2.25-10.29,5.49-14.5,9.61-8.23,8.06-13.16,19.02-13.9,30.84-.59,9.44,2.67,17.53,9.43,23.42,6.27,5.46,15.68,9.02,27.2,10.3,3.13.35,6.43.52,9.73.52'%20fill='url(%23radial-gradient)'/%3e%3crect%20x='74.34'%20y='50.41'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient)'/%3e%3crect%20x='36.29'%20y='50.01'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient-2)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Tr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4b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qxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Fr = { class: "q-chatbot" }, Or = { class: "q-chatbot__content" }, Ur = { class: "q-chatbot__footer-container" }, zr = /* @__PURE__ */ O({
3544
+ }), Pr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20126.25%20110.36'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='45.24'%20cy='38.05'%20fx='45.24'%20fy='38.05'%20r='59.09'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2331319e'/%3e%3cstop%20offset='.19'%20stop-color='%232e2e97'/%3e%3cstop%20offset='.45'%20stop-color='%23292985'/%3e%3cstop%20offset='.75'%20stop-color='%23202067'/%3e%3cstop%20offset='1'%20stop-color='%2317174a'/%3e%3c/radialGradient%3e%3clinearGradient%20id='linear-gradient'%20x1='82.65'%20y1='50.41'%20x2='82.65'%20y2='77.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.02'%20stop-color='%2366ebfe'/%3e%3cstop%20offset='.96'%20stop-color='%2300bfdb'/%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='44.6'%20y1='50.01'%20x2='44.6'%20y2='77.1'%20xlink:href='%23linear-gradient'/%3e%3c/defs%3e%3cg%20isolation='isolate'%3e%3cg%20id='Layer_1'%3e%3cpath%20d='M126.2,61.4c-.2-3.69-2.61-17.39-5.92-22.09-2.42-3.44-5.89-4.03-7.96-4.38-.13-.02-.27-.05-.41-.07-.16-.28-.32-.58-.45-.81-.63-1.14-1.03-1.87-1.44-2.44-6.96-9.88-14.91-16.51-24.85-20.69-.25-2.29-.84-5.24-3.37-7.44-2.93-2.55-7.58-2.9-11.68-3.21-.93-.07-1.82-.14-2.4-.22l-.33-.05h-8.61l-.36.05c-.65.1-1.61.17-2.63.24-3.75.27-8.01.57-10.98,2.85-2.94,2.26-3.58,5.55-3.79,7.84-9.71,3.94-17.86,10.71-24.85,20.62-.4.57-.81,1.3-1.43,2.44-.13.23-.29.53-.45.81-.14.02-.28.05-.4.07-2.07.35-5.54.94-7.96,4.39-2.25,3.19-3.84,9.89-4.58,13.59-.6,2.97-1.9,10.3-1.08,14.26.79,3.78,3.66,5.6,5.37,6.68.12.08.26.16.39.25,1.65,10.03,6.98,18.56,15.52,24.77,9.23,6.72,20.2,9.43,27.78,10.52,4.49.65,9.15.97,13.85.97,9.67,0,23.77-1.39,36-8.02,11.58-6.27,18.81-16,21.04-28.24,4.52-2.76,6.36-5.67,5.98-12.71Z'%20fill='%2317174a'/%3e%3cpath%20d='M67.15,4.69c2.98.42,9.31.31,11.62,2.31,1.99,1.73,1.65,4.82,2.06,7.22,10.77,3.89,18.73,10.59,25.39,20.04.64.91,2.13,3.95,2.58,4.33,1.71,1.46,5.54.35,7.67,3.37,2.29,3.25,4.83,15.41,5.06,19.59.31,5.82-.76,6.9-5.58,9.44-3.28,26.16-29.7,34.5-52.68,34.5-4.6,0-9.06-.33-13.17-.93-18.13-2.61-37.11-12.11-39.51-33.08-1.7-1.92-4.96-2.54-5.55-5.39-.95-4.56,2.21-20.32,4.89-24.14,2.13-3.02,5.96-1.91,7.67-3.37.46-.39,1.94-3.42,2.58-4.33,6.54-9.28,14.55-16.22,25.21-19.87.85-.87-.3-5.45,2.43-7.55,2.52-1.94,8.35-1.69,11.42-2.16h7.91'%20fill='%23fff'/%3e%3cpath%20d='M121.86,61.51c-.22-4.2-2.78-16.43-5.07-19.7-1.77-2.51-4.71-2.18-6.64-2.83.1,1.18.16,2.37.16,3.57,0,26.85-25.96,48.61-57.98,48.61-15.83,0-30.17-5.32-40.63-13.94,4.91,17.1,22.06,25.14,38.51,27.52,4.12.59,8.6.93,13.21.93,23.06,0,49.57-8.38,52.85-34.68,4.83-2.56,5.91-3.63,5.6-9.49Z'%20fill='%23d0d7e2'%20mix-blend-mode='multiply'%20opacity='.4'/%3e%3cpath%20d='M62.91,97.68c5.82,0,11.67-.53,16.72-1.56,13.1-2.67,22.09-8.06,26.72-16.03,4.43-7.63,4.75-17.33.96-28.84-4.28-13-13.22-22.77-24.7-27.89-.13,4.51-3.84,8.16-8.38,8.16h-20.89c-4.61,0-8.39-3.78-8.39-8.39v-.14c-5.36,2.25-10.29,5.49-14.5,9.61-8.23,8.06-13.16,19.02-13.9,30.84-.59,9.44,2.67,17.53,9.43,23.42,6.27,5.46,15.68,9.02,27.2,10.3,3.13.35,6.43.52,9.73.52'%20fill='url(%23radial-gradient)'/%3e%3crect%20x='74.34'%20y='50.41'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient)'/%3e%3crect%20x='36.29'%20y='50.01'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient-2)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Or = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LW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ApirpHi3Rn3/AnAUuuDySUA2xK/fYBaV99XS/k5Ev/w+6IPetTo6+TraP74MnZHnFWClkuK/Zfbv8+j6UYcaR8xh6JOAB9eovwIYH0VoU2QP5F3P7wxMRj9BiarSSzuwCvjA/L3VtdrFvPYE9ie6qqYb0Omgfh3VKcvIIy5czz8YfQbnFJpLbegDeZGmjqxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Ur = { class: "q-chatbot" }, jr = { class: "q-chatbot__content" }, Gr = { class: "q-chatbot__footer-container" }, Zr = /* @__PURE__ */ G({
3488
3545
  name: "ChatBot",
3489
3546
  __name: "ChatBot",
3490
3547
  props: {
@@ -3492,8 +3549,8 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3492
3549
  controllerEndpoint: {},
3493
3550
  username: {},
3494
3551
  projectPath: {},
3495
- userImage: { default: Tr },
3496
- chatbotImage: { default: Nr },
3552
+ userImage: { default: Or },
3553
+ chatbotImage: { default: Pr },
3497
3554
  dateFormat: {},
3498
3555
  agentData: { default: () => ({
3499
3556
  id: "",
@@ -3504,124 +3561,124 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3504
3561
  },
3505
3562
  emits: ["apply-fields", "direct-agent-chat"],
3506
3563
  setup(e, { emit: n }) {
3507
- const t = e, o = n, r = T(!0), a = T(null), i = T(!0), l = T(t.agentData.id), u = T(t.agentData.formId), c = he(), { isLoading: p, clearChatData: s, getChatData: m, getJobResultData: g, sendPrompt: b } = Zt(
3564
+ const t = e, o = n, r = q(!0), a = q(null), i = q(!0), l = q(t.agentData.id), u = q(t.agentData.formId), c = he(), { isLoading: p, clearChatData: s, getChatData: g, getJobResultData: m, sendPrompt: y } = Zt(
3508
3565
  t.apiEndpoint
3509
- ), { messages: _, addChatMessage: E, clearMessages: Y, getLastMessage: z, deleteMessageById: j } = Wt(), Q = w(() => r.value || p.value);
3566
+ ), { messages: I, addChatMessage: A, clearMessages: O, getLastMessage: z, deleteMessageById: W } = Qt(), J = w(() => r.value || p.value);
3510
3567
  dn(() => {
3511
3568
  var h;
3512
- (h = a.value) == null || h.removeEventListener("scroll", ne);
3569
+ (h = a.value) == null || h.removeEventListener("scroll", ae);
3513
3570
  }), Ce(() => {
3514
- B();
3571
+ E();
3515
3572
  });
3516
- function Z(h) {
3573
+ function V(h) {
3517
3574
  r.value = h;
3518
3575
  }
3519
- async function B() {
3576
+ async function E() {
3520
3577
  try {
3521
- await P();
3578
+ await U();
3522
3579
  } catch (h) {
3523
- E(c.loginError), console.error("Error logging in: " + h);
3580
+ A(c.loginError), console.error("Error logging in: " + h);
3524
3581
  }
3525
3582
  }
3526
- async function P() {
3527
- Z(!0);
3528
- const { data: h, error: x } = await m(
3583
+ async function U() {
3584
+ V(!0);
3585
+ const { data: h, error: x } = await g(
3529
3586
  t.username,
3530
3587
  t.projectPath,
3531
3588
  l.value,
3532
3589
  u.value
3533
3590
  );
3534
3591
  if (x || !h || !h.success) {
3535
- Z(!0), E(c.botIsSick), console.log("Error loading chat data: " + x);
3592
+ V(!0), A(c.botIsSick), console.log("Error loading chat data: " + x);
3536
3593
  return;
3537
3594
  }
3538
- Z(!1), D(), h.history.forEach(async (N) => {
3539
- E(
3540
- N.content,
3541
- N.type === "ai" ? "bot" : "user",
3595
+ V(!1), F(), h.history.forEach(async (T) => {
3596
+ A(
3597
+ T.content,
3598
+ T.type === "ai" ? "bot" : "user",
3542
3599
  void 0,
3543
3600
  // At this point we don't have preview URLs for past messages
3544
- N.sessionID
3601
+ T.sessionID
3545
3602
  );
3546
3603
  });
3547
3604
  }
3548
- function D() {
3605
+ function F() {
3549
3606
  const h = c.initialMessage;
3550
- E(h, "bot", void 0, void 0, !0);
3607
+ A(h, "bot", void 0, void 0, !0);
3551
3608
  }
3552
- function te() {
3553
- Y(), Z(!1), i.value = !0;
3609
+ function le() {
3610
+ O(), V(!1), i.value = !0;
3554
3611
  }
3555
- function ne() {
3612
+ function ae() {
3556
3613
  if (a.value) {
3557
- const { scrollTop: x, clientHeight: N, scrollHeight: F } = a.value;
3558
- i.value = x + N >= F - 20;
3614
+ const { scrollTop: x, clientHeight: T, scrollHeight: N } = a.value;
3615
+ i.value = x + T >= N - 20;
3559
3616
  }
3560
3617
  }
3561
3618
  async function d(h, x) {
3562
3619
  a.value && a.value.scrollTo({
3563
3620
  top: a.value.scrollHeight,
3564
3621
  behavior: "smooth"
3565
- }), E(h, "user", x), $(h, x == null ? void 0 : x.fileData);
3622
+ }), A(h, "user", x), _(h, x == null ? void 0 : x.fileData);
3566
3623
  }
3567
3624
  async function v(h) {
3568
3625
  a.value && a.value.scrollTo({
3569
3626
  top: a.value.scrollHeight,
3570
3627
  behavior: "smooth"
3571
- }), E("", "bot");
3628
+ }), A("", "bot");
3572
3629
  const x = z();
3573
- x && await g(
3630
+ x && await m(
3574
3631
  h,
3575
- (N) => {
3576
- if (x.message += N, x.fields || (x.fields = []), x.fields.length > 0) {
3577
- const F = x.fields[x.fields.length - 1];
3578
- F.text = x.message;
3632
+ (T) => {
3633
+ if (x.message += T, x.fields || (x.fields = []), x.fields.length > 0) {
3634
+ const N = x.fields[x.fields.length - 1];
3635
+ N.text = x.message;
3579
3636
  }
3580
3637
  },
3581
- (N) => {
3582
- var J;
3638
+ (T) => {
3639
+ var Q;
3583
3640
  x.message = "";
3584
- const F = N;
3585
- (J = x.fields) == null || J.push({
3586
- id: F.id,
3587
- type: F.type,
3588
- name: F.name,
3589
- text: F.text
3641
+ const N = T;
3642
+ (Q = x.fields) == null || Q.push({
3643
+ id: N.id,
3644
+ type: N.type,
3645
+ name: N.name,
3646
+ text: N.text
3590
3647
  });
3591
3648
  },
3592
- (N) => {
3593
- Z(!0), E(c.botIsSick), console.error("Error getting job result: " + N), j(x.id);
3649
+ (T) => {
3650
+ V(!0), A(c.botIsSick), console.error("Error getting job result: " + T), W(x.id);
3594
3651
  }
3595
3652
  );
3596
3653
  }
3597
- async function $(h, x) {
3598
- const N = Qt(), F = new FormData();
3599
- if (x && F.append("file", x), F.append("message", h), F.append("project", t.projectPath), F.append("user", t.username), F.append("sessionID", N), l.value !== "")
3654
+ async function _(h, x) {
3655
+ const T = Jt(), N = new FormData();
3656
+ if (x && N.append("file", x), N.append("message", h), N.append("project", t.projectPath), N.append("user", t.username), N.append("sessionID", T), l.value !== "")
3600
3657
  o("direct-agent-chat", l.value, h);
3601
3658
  else {
3602
- E("", "bot");
3603
- const J = z();
3604
- if (!J) return;
3659
+ A("", "bot");
3660
+ const Q = z();
3661
+ if (!Q) return;
3605
3662
  const se = /* @__PURE__ */ new Map(), fe = 1e3;
3606
- await b(
3607
- F,
3608
- (ie) => {
3609
- J && (J.message += ie);
3663
+ await y(
3664
+ N,
3665
+ (re) => {
3666
+ Q && (Q.message += re);
3610
3667
  },
3611
- (ie) => {
3612
- if (!J || !ie) return;
3613
- const { event: ze, data: k } = ie;
3668
+ (re) => {
3669
+ if (!Q || !re) return;
3670
+ const { event: ze, data: k } = re;
3614
3671
  if (!k || !k.id) return;
3615
3672
  const ce = (ue) => {
3616
- J.message && !J.message.endsWith(`
3673
+ Q.message && !Q.message.endsWith(`
3617
3674
 
3618
- `) && (J.message += `
3675
+ `) && (Q.message += `
3619
3676
 
3620
- `), J.message += `${ue}
3677
+ `), Q.message += `${ue}
3621
3678
 
3622
3679
  `;
3623
- }, oe = (ue) => {
3624
- J.message = J.message.replace(ue.html, k.html), se.delete(k.id);
3680
+ }, te = (ue) => {
3681
+ Q.message = Q.message.replace(ue.html, k.html), se.delete(k.id);
3625
3682
  };
3626
3683
  switch (ze) {
3627
3684
  case "tool_start": {
@@ -3632,20 +3689,20 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3632
3689
  const ue = se.get(k.id);
3633
3690
  if (ue) {
3634
3691
  const Yt = Date.now() - ue.startedAt, ut = Math.max(0, fe - Yt);
3635
- ut > 0 ? setTimeout(() => oe(ue), ut) : oe(ue);
3692
+ ut > 0 ? setTimeout(() => te(ue), ut) : te(ue);
3636
3693
  } else
3637
3694
  ce(k.html);
3638
3695
  break;
3639
3696
  }
3640
3697
  }
3641
3698
  },
3642
- (ie) => {
3643
- Z(!0), E(c.botIsSick), console.error("Error sending message: " + ie), j(J.id);
3699
+ (re) => {
3700
+ V(!0), A(c.botIsSick), console.error("Error sending message: " + re), W(Q.id);
3644
3701
  }
3645
3702
  );
3646
3703
  }
3647
3704
  }
3648
- async function q() {
3705
+ async function C() {
3649
3706
  const { data: h, error: x } = await s(
3650
3707
  t.username,
3651
3708
  t.projectPath,
@@ -3653,75 +3710,77 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3653
3710
  u.value
3654
3711
  );
3655
3712
  if (x || !h || !h.success) {
3656
- Z(!0), E(c.loginError), console.log("Error clearing chat: " + x);
3713
+ V(!0), A(c.loginError), console.log("Error clearing chat: " + x);
3657
3714
  return;
3658
3715
  }
3659
- te(), D();
3716
+ le(), F();
3660
3717
  }
3661
- function I(h) {
3718
+ function D(h) {
3662
3719
  const x = ["q-chatbot__messages-wrapper"];
3663
3720
  return h === "user" && x.push("q-chatbot__messages-wrapper_right"), x;
3664
3721
  }
3665
- async function U(h) {
3666
- l.value = h.key, u.value = h.formId, te(), await B();
3722
+ async function P(h) {
3723
+ l.value = h.key, u.value = h.formId, le(), await E();
3667
3724
  }
3668
- function R(h) {
3725
+ function B(h) {
3669
3726
  !h || h.length === 0 || o("apply-fields", h);
3670
3727
  }
3671
3728
  function H(h) {
3672
3729
  const x = c.regenerateResponsePrompt.replace("{0}", h);
3673
3730
  o("direct-agent-chat", l.value, x);
3674
3731
  }
3675
- return le(
3732
+ return ie(
3676
3733
  () => t.availableAgents,
3677
3734
  (h, x) => {
3678
- h.length === 0 && x.length > 0 && (l.value = "", u.value = "", te(), B());
3735
+ h.length === 0 && x.length > 0 && (l.value = "", u.value = "", le(), E());
3679
3736
  }
3680
- ), le(
3737
+ ), ie(
3681
3738
  () => t.agentData,
3682
3739
  async (h, x) => {
3683
- if (Q.value) return;
3684
- const N = h.jobId, F = x.jobId, J = N !== F;
3685
- h.id !== l.value && await U({ formId: h.formId, key: h.id }), N && J && await v(N);
3740
+ if (J.value) return;
3741
+ const T = h.jobId, N = x.jobId, Q = T !== N;
3742
+ h.id !== l.value && await P({ formId: h.formId, key: h.id }), T && Q && await v(T);
3686
3743
  },
3687
3744
  { deep: !0 }
3688
- ), (h, x) => (y(), A("div", Fr, [
3689
- L("div", Or, [
3690
- S(f(Ir), {
3691
- disabled: Q.value,
3745
+ ), (h, x) => (b(), $("div", Ur, [
3746
+ L("div", jr, [
3747
+ S(f(Er), {
3748
+ disabled: J.value,
3692
3749
  "available-agents": t.availableAgents,
3693
3750
  "selected-agent-key": l.value,
3694
- onClear: q,
3695
- onChangeChat: U
3751
+ onClear: C,
3752
+ onChangeChat: P
3696
3753
  }, null, 8, ["disabled", "available-agents", "selected-agent-key"]),
3697
3754
  L("div", {
3698
3755
  ref_key: "messagesContainer",
3699
3756
  ref: a,
3700
3757
  class: "q-chatbot__messages-container",
3701
- onScroll: ne
3758
+ onScroll: ae
3702
3759
  }, [
3703
- (y(!0), A(pe, null, Be(f(_), (N) => (y(), A("div", {
3704
- key: N.id,
3705
- class: W(I(N.sender))
3760
+ (b(!0), $(pe, null, Be(f(I), (T, N) => (b(), $("div", {
3761
+ key: T.id,
3762
+ class: X(D(T.sender))
3706
3763
  }, [
3707
- S(f(mr), de({ ref_for: !0 }, N, {
3764
+ S(f(hr), de({ ref_for: !0 }, T, {
3708
3765
  "date-format": t.dateFormat,
3709
3766
  "user-image": t.userImage,
3710
3767
  "chatbot-image": t.chatbotImage,
3711
- loading: f(p) && !N.message,
3712
- file: N.file,
3768
+ loading: f(p) && !T.message,
3769
+ file: T.file,
3713
3770
  "api-endpoint": t.apiEndpoint,
3714
- "session-i-d": N.sessionID,
3715
- fields: N.fields,
3771
+ "session-i-d": T.sessionID,
3772
+ fields: T.fields,
3773
+ "is-last-message": N === f(I).length - 1,
3716
3774
  onRegenerate: H,
3717
- onApplyFields: R
3718
- }), null, 16, ["date-format", "user-image", "chatbot-image", "loading", "file", "api-endpoint", "session-i-d", "fields"])
3775
+ onApplyFields: B,
3776
+ onSendMessage: d
3777
+ }), null, 16, ["date-format", "user-image", "chatbot-image", "loading", "file", "api-endpoint", "session-i-d", "fields", "is-last-message"])
3719
3778
  ], 2))), 128))
3720
3779
  ], 544)
3721
3780
  ]),
3722
- L("div", Ur, [
3723
- S(f(Mr), {
3724
- disabled: Q.value,
3781
+ L("div", Gr, [
3782
+ S(f(Fr), {
3783
+ disabled: J.value,
3725
3784
  loading: f(p),
3726
3785
  onSendMessage: d
3727
3786
  }, null, 8, ["disabled", "loading"])
@@ -3730,5 +3789,5 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3730
3789
  }
3731
3790
  });
3732
3791
  export {
3733
- zr as default
3792
+ Zr as default
3734
3793
  };