@quidgest/chatbot 0.5.8 → 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 R, renderSlot as M, createTextVNode as je, toDisplayString as ae, createBlock as H, resolveDynamicComponent as At, h as Ye, mergeProps as de, useTemplateRef as xt, withCtx as D, 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
  }
@@ -70,7 +70,7 @@ function yn(e, n) {
70
70
  const o = hn(n);
71
71
  return o ? typeof ((t = e.props) == null ? void 0 : t[o]) < "u" : !1;
72
72
  }
73
- function X(e) {
73
+ function K(e) {
74
74
  const n = e, t = n.setup;
75
75
  return t && (n.setup = (o, r) => {
76
76
  const a = fn();
@@ -80,14 +80,14 @@ function X(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);
88
88
  }), e;
89
89
  }
90
- const wn = X(gn);
90
+ const wn = K(gn);
91
91
  function _n(e, n = !1) {
92
92
  return n ? /^#[a-fA-F0-9]{6}$/.test(e) : /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(e);
93
93
  }
@@ -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),
278
- R("span", Rn, [
277
+ ])) : j("v-if", !0),
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 = X(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(), H(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(), H(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
- }), Y = X(qn), jn = X(Nn), zn = X(Fn), Vn = X(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 = X(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
- R("label", de({
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 = X(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,58 +615,58 @@ 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(), H(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: D(() => [
629
+ prepend: R(() => [
630
630
  M(i.$slots, "label.prepend")
631
631
  ]),
632
- append: D(() => [
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
- R(
639
+ L(
640
640
  "div",
641
641
  de({
642
642
  ref: "field",
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
- }), Ft = X(no), oo = {
663
+ }), Ft = K(no), oo = {
664
664
  clearValue: "Clear value"
665
665
  }, ao = {
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(), H(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: D(() => [
693
+ default: R(() => [
694
694
  S(
695
695
  f(Y),
696
- De(Te(t.icons.clear)),
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 = X(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(), H(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": D(() => [
763
- M(b.$slots, "label.prepend")
762
+ "label.prepend": R(() => [
763
+ M(y.$slots, "label.prepend")
764
764
  ]),
765
- "label.append": D(() => [
766
- M(b.$slots, "label.append")
765
+ "label.append": R(() => [
766
+ M(y.$slots, "label.append")
767
767
  ]),
768
- default: D(() => [
769
- St(R("input", de({
768
+ default: R(() => [
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: D(() => [
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: D(() => [
798
- M(b.$slots, "append"),
799
- m.value ? (y(), H(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: D(() => [
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 = X(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
  [
@@ -891,7 +891,7 @@ const po = { ref: "layer" }, fo = /* @__PURE__ */ O({
891
891
  /* NEED_PATCH */
892
892
  ));
893
893
  }
894
- }), vo = X(fo);
894
+ }), vo = K(fo);
895
895
  function mo(e) {
896
896
  return on() ? (Et(e), !0) : !1;
897
897
  }
@@ -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,38 +1317,38 @@ 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(C) {
1331
- return C === 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, C = r[d];
1336
- if (typeof C == "function" && (C = C.apply(void 0, zo(U))), C === !0 && (C = void 0), !C) {
1337
- if (C === void 0 || C === !1)
1338
- return C;
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 Z = C;
1342
- if (typeof C == "string") {
1341
+ var H = B;
1342
+ if (typeof B == "string") {
1343
1343
  try {
1344
- Z = t.querySelector(C);
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 (!Z && !q)
1348
+ if (!H && !C)
1349
1349
  throw new Error("`".concat(d, "` as selector refers to no known node"));
1350
1350
  }
1351
- return Z;
1351
+ return H;
1352
1352
  }, p = function() {
1353
1353
  var d = c("initialFocus", {
1354
1354
  hasFallback: !0
@@ -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,23 +1368,23 @@ 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
- }), C = $.slice().reverse().find(function(h) {
1373
+ }), B = _.slice().reverse().find(function(h) {
1374
1374
  return ye(h);
1375
- }), Z = !!v.find(function(h) {
1375
+ }), H = !!v.find(function(h) {
1376
1376
  return ge(h) > 0;
1377
1377
  });
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
- posTabIndexesFound: Z,
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: C,
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 C = u(v, $), Z = C >= 0 ? a.containerGroups[C] : void 0;
1449
- if (C < 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 && (Z.container === v || He(v, r.tabbableOptions) && !ye(v, r.tabbableOptions) && !Z.nextTabbableNode(v, !1)) && (h = C), 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 = Z.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 && (Z.container === v || He(v, r.tabbableOptions) && !ye(v, r.tabbableOptions) && !Z.nextTabbableNode(v)) && (F = C), 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 = Z.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
- }, K = 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), C = a.containerGroups[U].tabbableNodes;
1500
- if (C.length > 0) {
1501
- var Z = C.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
- Z >= 0 && (r.isKeyForward(a.recentNavEvent) ? Z + 1 < C.length && (q = C[Z + 1], I = !1) : Z - 1 >= 0 && (q = C[Z - 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
- }, V = 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
- }, j = 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
- }, L = 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", K, !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", j, {
1547
+ }), t.addEventListener("click", V, {
1548
1548
  capture: !0,
1549
1549
  passive: !1
1550
- }), t.addEventListener("keydown", V, {
1550
+ }), t.addEventListener("keydown", W, {
1551
1551
  capture: !0,
1552
1552
  passive: !1
1553
- }), t.addEventListener("keydown", Q), i;
1554
- }, B = function() {
1553
+ }), t.addEventListener("keydown", J), i;
1554
+ }, U = function() {
1555
1555
  if (a.active)
1556
- return t.removeEventListener("focusin", K, !0), t.removeEventListener("mousedown", E, !0), t.removeEventListener("touchstart", E, !0), t.removeEventListener("click", j, !0), t.removeEventListener("keydown", V, !0), t.removeEventListener("keydown", Q), i;
1557
- }, P = 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(P) : 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(), L(), 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, B(), 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 C = 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(C, C), this) : (C(), 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 || $(), B(), 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(), L(), 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(), H(
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: D(() => [
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 = X(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
 
@@ -1785,16 +1785,16 @@ const da = () => {
1785
1785
  a <= 0 ? document.body.removeAttribute(we) : document.body.setAttribute(we, a.toString()), t.remove();
1786
1786
  }), (a, i) => M(a.$slots, "default");
1787
1787
  }
1788
- }), fa = X(pa);
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), K = 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 V;
2025
- function Q() {
2026
- L(0);
2024
+ let W;
2025
+ function J() {
2026
+ E(0);
2027
2027
  }
2028
- function j() {
2029
- L(t.delay);
2028
+ function V() {
2029
+ E(t.delay);
2030
2030
  }
2031
- function L(k) {
2032
- V && P(), V = window.setTimeout(() => {
2031
+ function E(k) {
2032
+ W && F(), W = window.setTimeout(() => {
2033
2033
  r.value = !0;
2034
2034
  }, k);
2035
2035
  }
2036
- function B() {
2037
- if (V && P(), 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 P() {
2043
- clearTimeout(V), V = 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 C(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
- function Z() {
2085
- B();
2084
+ function H() {
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", j), k.addEventListener("mouseleave", B), k.addEventListener("focusin", Q), k.addEventListener("focusout", B);
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", j), k.removeEventListener("mouseleave", B), k.removeEventListener("focusin", Q), k.removeEventListener("focusout", B);
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)) : B();
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(), H(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: D(() => [
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,77 +2167,77 @@ 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: D(() => [
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: K,
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
- onDismiss: Z,
2187
- onInteractOutside: C,
2188
- onPointerDownOutside: U
2186
+ onDismiss: H,
2187
+ onInteractOutside: B,
2188
+ onPointerDownOutside: P
2189
2189
  }, {
2190
- default: D(() => [
2191
- K.value ? (y(), H(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: K.value }
2194
+ options: { fallbackFocus: O.value }
2195
2195
  }, {
2196
- default: D(() => [
2197
- R("div", de({
2196
+ default: R(() => [
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(), H(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 */
2238
2238
  ));
2239
2239
  }
2240
- }), Da = X(Sa), Ea = [
2240
+ }), Da = K(Sa), Ea = [
2241
2241
  {
2242
2242
  id: "button",
2243
2243
  icon: {
@@ -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(), H(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: D(() => [
2337
- R(
2336
+ default: R(() => [
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
2363
  f(Y),
2364
- De(Te(t.icon)),
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
- R("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: D(() => [
2392
- i.value ? (y(), H(f(Y), {
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(), H(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: D(() => [
2420
- _.icon ? (y(), H(
2419
+ default: R(() => [
2420
+ I.icon ? (b(), Z(
2421
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(), H(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: D(() => [
2446
+ default: R(() => [
2447
2447
  S(
2448
2448
  f(Y),
2449
- De(Te(t.icons.close)),
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(), H(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 = X(Ga);
2511
- X(za);
2512
- const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], Ha = /* @__PURE__ */ O({
2510
+ }), Ht = K(ja);
2511
+ K(za);
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(), H(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,14 +2558,14 @@ const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2558
2558
  disabled: n.disabled,
2559
2559
  required: n.required
2560
2560
  }, It({
2561
- "label.prepend": D(() => [
2561
+ "label.prepend": R(() => [
2562
2562
  M(c.$slots, "label.prepend")
2563
2563
  ]),
2564
- "label.append": D(() => [
2564
+ "label.append": R(() => [
2565
2565
  M(c.$slots, "label.append")
2566
2566
  ]),
2567
- default: D(() => [
2568
- St(R("textarea", de({
2567
+ default: R(() => [
2568
+ St(L("textarea", de({
2569
2569
  id: f(r),
2570
2570
  ref_key: "textareaRef",
2571
2571
  ref: l,
@@ -2589,28 +2589,28 @@ const Va = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2589
2589
  }, [
2590
2590
  c.$slots.prepend ? {
2591
2591
  name: "prepend",
2592
- fn: D(() => [
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: D(() => [
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: D(() => [
2606
+ fn: R(() => [
2607
2607
  M(c.$slots, "extras")
2608
2608
  ]),
2609
2609
  key: "2"
2610
2610
  } : void 0
2611
2611
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
2612
2612
  }
2613
- }), Za = X(Ha);
2613
+ }), Za = K(Ha);
2614
2614
  function he() {
2615
2615
  return {
2616
2616
  copy: "Copy",
@@ -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 u, 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: {
@@ -2656,55 +2658,59 @@ async function kt(e, n) {
2656
2658
  if (!a || !(a instanceof ReadableStream))
2657
2659
  throw new Error("Invalid stream response");
2658
2660
  const i = a.getReader(), l = new TextDecoder();
2661
+ let u = "";
2659
2662
  for (; ; ) {
2660
- const { done: _, value: E } = await i.read();
2661
- if (_) {
2662
- (u = n.onDone) == null || u.call(n);
2663
+ const { done: A, value: O } = await i.read();
2664
+ if (A) {
2665
+ (c = n.onDone) == null || c.call(n);
2663
2666
  break;
2664
2667
  }
2665
- const z = l.decode(E, { stream: !0 }).split(/\n\n+/);
2666
- for (const V of z) {
2667
- const Q = V.trim().split(`
2668
+ const z = l.decode(O, { stream: !0 });
2669
+ u += z;
2670
+ const W = u.split(/\n\n+/);
2671
+ u = W.pop() || "";
2672
+ for (const J of W) {
2673
+ const V = J.trim().split(`
2668
2674
  `);
2669
- let j = "", L = "";
2670
- for (const B of Q)
2671
- B.startsWith("event:") ? j = B.replace("event:", "").trim() : B.startsWith("data:") && (L = B.replace("data:", "").trim());
2672
- if (j || (j = "message"), !!L)
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)
2673
2679
  try {
2674
- const B = JSON.parse(L);
2675
- switch (j) {
2680
+ const F = JSON.parse(U);
2681
+ switch (E) {
2676
2682
  case "message":
2677
- (c = n.onMessage) == null || c.call(n, B.value);
2683
+ (p = n.onMessage) == null || p.call(n, F.value);
2678
2684
  break;
2679
2685
  case "tool-status":
2680
- (p = n.onToolStatus) == null || p.call(
2686
+ (s = n.onToolStatus) == null || s.call(
2681
2687
  n,
2682
- B
2688
+ F
2683
2689
  );
2684
2690
  break;
2685
2691
  case "error":
2686
- (s = n.onError) == null || s.call(n, new Error(B.value));
2692
+ (g = n.onError) == null || g.call(n, new Error(F.value));
2687
2693
  break;
2688
2694
  case "field_metadata":
2689
- (m = n.onFieldMetadata) == null || m.call(n, B);
2695
+ (m = n.onFieldMetadata) == null || m.call(n, F);
2690
2696
  break;
2691
2697
  case "done":
2692
- (g = n.onDone) == null || g.call(n);
2698
+ (y = n.onDone) == null || y.call(n);
2693
2699
  break;
2694
2700
  default:
2695
- console.warn(`Unknown event type: ${j}`);
2701
+ console.warn(`Unknown event type: ${E}`);
2696
2702
  }
2697
- } catch (B) {
2698
- (b = n.onError) == null || b.call(n, B), console.error("Error processing event:", B);
2703
+ } catch (F) {
2704
+ (I = n.onError) == null || I.call(n, F), console.error("Error processing event:", F);
2699
2705
  continue;
2700
2706
  } finally {
2701
- _ && (i.releaseLock(), t.abort());
2707
+ A && (i.releaseLock(), t.abort());
2702
2708
  }
2703
2709
  }
2704
2710
  }
2705
2711
  }
2706
2712
  function Zt(e) {
2707
- const n = T(!1), t = T(null);
2713
+ const n = q(!1), t = q(null);
2708
2714
  async function o(c) {
2709
2715
  n.value = !0, t.value = null;
2710
2716
  try {
@@ -2720,7 +2726,7 @@ function Zt(e) {
2720
2726
  }
2721
2727
  return { data: null, error: new Error("Unknown error occurred in baseRequest") };
2722
2728
  }
2723
- async function r(c, p, s, m) {
2729
+ async function r(c, p, s, g) {
2724
2730
  return await o({
2725
2731
  method: "POST",
2726
2732
  url: "/prompt/load",
@@ -2728,11 +2734,11 @@ function Zt(e) {
2728
2734
  username: c,
2729
2735
  project: p,
2730
2736
  agentID: s,
2731
- formId: m
2737
+ formId: g
2732
2738
  }
2733
2739
  });
2734
2740
  }
2735
- async function a(c, p, s, m) {
2741
+ async function a(c, p, s, g) {
2736
2742
  n.value = !0;
2737
2743
  try {
2738
2744
  return await kt(
@@ -2742,20 +2748,20 @@ function Zt(e) {
2742
2748
  data: c
2743
2749
  },
2744
2750
  {
2745
- onMessage: (g) => {
2746
- p(g);
2751
+ onMessage: (m) => {
2752
+ p(m);
2747
2753
  },
2748
- onToolStatus: (g) => {
2749
- s == null || s(g);
2754
+ onToolStatus: (m) => {
2755
+ s == null || s(m);
2750
2756
  },
2751
2757
  onDone: () => n.value = !1
2752
2758
  }
2753
2759
  );
2754
- } catch (g) {
2755
- 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;
2756
2762
  }
2757
2763
  }
2758
- async function i(c, p, s, m) {
2764
+ async function i(c, p, s, g) {
2759
2765
  n.value = !0;
2760
2766
  try {
2761
2767
  return await kt(
@@ -2767,16 +2773,16 @@ function Zt(e) {
2767
2773
  }
2768
2774
  },
2769
2775
  {
2770
- onMessage: (g) => p(g),
2771
- onFieldMetadata: (g) => s(g),
2776
+ onMessage: (m) => p(m),
2777
+ onFieldMetadata: (m) => s(m),
2772
2778
  onDone: () => n.value = !1
2773
2779
  }
2774
2780
  );
2775
- } catch (g) {
2776
- t.value = g, m == null || m(g), n.value = !1;
2781
+ } catch (m) {
2782
+ t.value = m, g == null || g(m), n.value = !1;
2777
2783
  }
2778
2784
  }
2779
- async function l(c, p, s, m) {
2785
+ async function l(c, p, s, g) {
2780
2786
  return await o({
2781
2787
  method: "POST",
2782
2788
  url: "/prompt/clear",
@@ -2784,7 +2790,7 @@ function Zt(e) {
2784
2790
  username: c,
2785
2791
  project: p,
2786
2792
  agentID: s,
2787
- formId: m
2793
+ formId: g
2788
2794
  }
2789
2795
  });
2790
2796
  }
@@ -2809,7 +2815,10 @@ function Zt(e) {
2809
2815
  handleFeedback: u
2810
2816
  };
2811
2817
  }
2812
- 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({
2813
2822
  __name: "MarkdownRender",
2814
2823
  props: {
2815
2824
  source: {},
@@ -2817,22 +2826,45 @@ const Ja = ["innerHTML"], Ne = /* @__PURE__ */ O({
2817
2826
  plugins: {}
2818
2827
  },
2819
2828
  setup(e) {
2820
- const n = e, t = T(
2829
+ const n = e, t = q(
2821
2830
  new pn({
2822
2831
  html: !0,
2823
2832
  breaks: !0,
2824
2833
  ...n.options ?? {}
2825
2834
  })
2826
2835
  );
2827
- n.plugins && n.plugins.forEach((r) => t.value.use(r));
2828
- const o = w(() => t.value.render(n.source));
2829
- 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,
2830
2862
  class: "markdown-renderer",
2831
2863
  innerHTML: o.value
2832
- }, null, 8, Ja));
2864
+ }, null, 8, Wa));
2833
2865
  }
2834
2866
  });
2835
- function Jt(e, n) {
2867
+ function Wt(e, n) {
2836
2868
  switch (e) {
2837
2869
  case "date":
2838
2870
  return new Date(n).toLocaleDateString();
@@ -2844,10 +2876,10 @@ function Jt(e, n) {
2844
2876
  return n.toString();
2845
2877
  }
2846
2878
  }
2847
- function Qa(e) {
2879
+ function Xa(e) {
2848
2880
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
2849
2881
  }
2850
- 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({
2851
2883
  __name: "FieldPreview",
2852
2884
  props: {
2853
2885
  name: {},
@@ -2858,60 +2890,60 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2858
2890
  },
2859
2891
  emits: ["apply", "regenerate"],
2860
2892
  setup(e, { emit: n }) {
2861
- 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(() => {
2862
- const b = {};
2863
- 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;
2864
2896
  }), s = w(() => {
2865
- const b = ["q-field-preview__content"];
2866
- 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;
2867
2899
  });
2868
- function m() {
2900
+ function g() {
2869
2901
  if (a.value) return;
2870
2902
  a.value = !0;
2871
- const b = Jt(t.type, t.text);
2872
- o("apply", b);
2903
+ const y = Wt(t.type, t.text);
2904
+ o("apply", y);
2873
2905
  }
2874
- function g() {
2906
+ function m() {
2875
2907
  i.value || (i.value = !0, o("regenerate", t.name));
2876
2908
  }
2877
- return (b, _) => (y(), A("div", {
2909
+ return (y, I) => (b(), $("div", {
2878
2910
  class: "q-field-preview",
2879
- "data-testid": f(Qa)(t.name)
2911
+ "data-testid": f(Xa)(t.name)
2880
2912
  }, [
2881
- R("div", Ya, [
2882
- R("span", null, [
2883
- je(ae(f(r).suggestionsForField) + " ", 1),
2884
- R("b", null, ae(t.name), 1)
2913
+ L("div", er, [
2914
+ L("span", null, [
2915
+ Ge(oe(f(r).suggestionsForField) + " ", 1),
2916
+ L("b", null, oe(t.name), 1)
2885
2917
  ])
2886
2918
  ]),
2887
- R("div", {
2888
- class: W(s.value)
2919
+ L("div", {
2920
+ class: X(s.value)
2889
2921
  }, [
2890
- (y(), H(At(c.value), De(Te(p.value)), null, 16))
2922
+ (b(), Z(At(c.value), De(Ne(p.value)), null, 16))
2891
2923
  ], 2),
2892
- R("div", Xa, [
2893
- S(f(Nt), { borderless: "" }, {
2894
- default: D(() => [
2895
- S(f(re), {
2924
+ L("div", tr, [
2925
+ S(f(Tt), { borderless: "" }, {
2926
+ default: R(() => [
2927
+ S(f(ne), {
2896
2928
  title: f(r).regenerateResponse,
2897
2929
  disabled: u.value,
2898
2930
  readonly: u.value,
2899
2931
  borderless: "",
2900
- onClick: g
2932
+ onClick: m
2901
2933
  }, {
2902
- default: D(() => [
2934
+ default: R(() => [
2903
2935
  S(f(Y), { icon: "reset" })
2904
2936
  ]),
2905
2937
  _: 1
2906
2938
  }, 8, ["title", "disabled", "readonly"]),
2907
- S(f(re), {
2939
+ S(f(ne), {
2908
2940
  label: f(r).apply,
2909
2941
  "data-testid": "apply-button",
2910
2942
  disabled: l.value,
2911
2943
  readonly: l.value,
2912
- onClick: m
2944
+ onClick: g
2913
2945
  }, {
2914
- default: D(() => [
2946
+ default: R(() => [
2915
2947
  S(f(Y), { icon: "apply" })
2916
2948
  ]),
2917
2949
  _: 1
@@ -2920,16 +2952,16 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2920
2952
  _: 1
2921
2953
  })
2922
2954
  ])
2923
- ], 8, Wa));
2955
+ ], 8, Ka));
2924
2956
  }
2925
- }), 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({
2926
2958
  __name: "PulseDots",
2927
2959
  setup(e) {
2928
2960
  const n = [1, 2, 3], t = he();
2929
- return (o, r) => (y(), A("div", er, [
2930
- R("span", tr, ae(f(t).generatingResponse), 1),
2931
- R("div", nr, [
2932
- (y(), A(pe, null, Be(n, (a, i) => R("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", {
2933
2965
  key: i,
2934
2966
  class: "dot",
2935
2967
  style: _e({ animationDelay: i * 0.2 + "s" })
@@ -2937,16 +2969,16 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2937
2969
  ])
2938
2970
  ]));
2939
2971
  }
2940
- }), 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 = {
2941
2973
  key: 0,
2942
2974
  class: "q-chatbot__image-preview"
2943
- }, lr = ["src", "alt"], sr = {
2975
+ }, ur = ["src", "alt"], dr = {
2944
2976
  key: 1,
2945
2977
  class: "q-chatbot__file-preview-container"
2946
- }, 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 = {
2947
2979
  key: 1,
2948
2980
  class: "q-chatbot__text q-chatbot__user-text"
2949
- }, mr = /* @__PURE__ */ O({
2981
+ }, hr = /* @__PURE__ */ G({
2950
2982
  __name: "ChatBotMessage",
2951
2983
  props: {
2952
2984
  sender: { default: "user" },
@@ -2960,133 +2992,140 @@ const Wa = ["data-testid"], Ya = { class: "q-field-preview__toolbar" }, Xa = { c
2960
2992
  userImage: { default: void 0 },
2961
2993
  chatbotImage: {},
2962
2994
  isWelcomeMessage: { type: Boolean },
2963
- fields: { default: () => [] }
2995
+ fields: { default: () => [] },
2996
+ isLastMessage: { type: Boolean, default: !1 }
2964
2997
  },
2965
- emits: ["apply-fields", "regenerate"],
2998
+ emits: ["apply-fields", "regenerate", "send-message"],
2966
2999
  setup(e, { emit: n }) {
2967
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(() => {
2968
- var b;
2969
- 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;
2970
3003
  }), u = w(
2971
3004
  () => t.sender === "bot" ? t.chatbotImage : t.userImage
2972
3005
  ), c = w(() => {
2973
- var _, E;
2974
- return (_ = t.file) != null && _.fileData ? ((E = t.file.fileData.name.split(".").pop()) == null ? void 0 : E.toUpperCase()) ?? "" : "";
2975
- });
2976
- 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() {
2977
3013
  t.message && navigator.clipboard.writeText(t.message).then(() => {
2978
3014
  console.log("Response copied to clipboard");
2979
- }).catch((b) => {
2980
- console.error("Failed to copy response: ", b);
3015
+ }).catch((A) => {
3016
+ console.error("Failed to copy response: ", A);
2981
3017
  });
2982
3018
  }
2983
- function s(b, _) {
2984
- o("apply-fields", [{ id: _.id, text: b }]);
3019
+ function m(A, O) {
3020
+ o("apply-fields", [{ id: O.id, text: A }]);
2985
3021
  }
2986
- function m() {
3022
+ function y() {
2987
3023
  if (!t.fields || t.fields.length === 0) return;
2988
- const b = t.fields.map((_) => ({
2989
- id: _.id,
2990
- text: Jt(_.type, _.text)
3024
+ const A = t.fields.map((O) => ({
3025
+ id: O.id,
3026
+ text: Wt(O.type, O.text)
2991
3027
  }));
2992
- o("apply-fields", b);
3028
+ o("apply-fields", A);
2993
3029
  }
2994
- function g(b, _) {
2995
- 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);
2996
3032
  }
2997
- return (b, _) => {
2998
- var E, K, z;
2999
- return y(), A("div", ar, [
3033
+ return (A, O) => {
3034
+ var z, W, J;
3035
+ return b(), $("div", lr, [
3000
3036
  S(f(Y), {
3001
3037
  type: "img",
3002
3038
  icon: u.value,
3003
3039
  alt: f(r).senderImage,
3004
3040
  class: "q-chatbot__profile"
3005
3041
  }, null, 8, ["icon", "alt"]),
3006
- R("div", rr, [
3007
- l.value ? (y(), A("div", ir, [
3008
- R("img", {
3009
- src: (E = t.file) == null ? void 0 : E.previewUrl,
3042
+ L("div", sr, [
3043
+ l.value ? (b(), $("div", cr, [
3044
+ L("img", {
3045
+ src: (z = t.file) == null ? void 0 : z.previewUrl,
3010
3046
  alt: f(r).imagePreview
3011
- }, null, 8, lr)
3012
- ])) : (K = t.file) != null && K.fileData && !l.value ? (y(), A("div", sr, [
3013
- R("div", cr, [
3047
+ }, null, 8, ur)
3048
+ ])) : (W = t.file) != null && W.fileData && !l.value ? (b(), $("div", dr, [
3049
+ L("div", pr, [
3014
3050
  S(f(Y), {
3015
3051
  icon: "file",
3016
3052
  class: "q-chatbot__file-icon"
3017
3053
  })
3018
3054
  ]),
3019
- R("div", ur, [
3020
- R("span", dr, ae((z = t.file) == null ? void 0 : z.fileData.name), 1),
3021
- R("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)
3022
3058
  ])
3023
- ])) : G("", !0),
3024
- R("div", fr, [
3025
- b.loading ? (y(), H(or, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (y(!0), A(pe, { key: 1 }, Be(t.fields, (V, Q) => (y(), H(f(Ka), {
3026
- 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,
3027
3063
  class: "q-chatbot__text",
3028
3064
  text: V.text || "",
3029
3065
  name: V.name,
3030
3066
  type: V.type,
3031
- disabled: b.loading,
3067
+ disabled: A.loading,
3032
3068
  onRegenerate: () => o("regenerate", V.name),
3033
- onApply: (j) => s(j, V)
3034
- }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (y(), A(pe, { key: 2 }, [
3035
- t.sender === "bot" ? (y(), H(f(Ne), {
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), {
3036
3072
  key: 0,
3037
3073
  class: "q-chatbot__text",
3038
3074
  source: t.message || ""
3039
- }, null, 8, ["source"])) : (y(), A("div", vr, ae(t.message), 1))
3075
+ }, null, 8, ["source"])) : (b(), $("div", br, oe(t.message), 1))
3040
3076
  ], 64))
3041
3077
  ])
3042
3078
  ]),
3043
- S(f($r), {
3079
+ S(f(Ir), {
3044
3080
  "show-buttons": i.value,
3045
3081
  loading: t.loading,
3046
3082
  "date-format": t.dateFormat,
3047
- onCopyResponse: p,
3048
- onSubmitFeedback: g,
3049
- onApplyAll: m
3050
- }, 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"])
3051
3090
  ]);
3052
3091
  };
3053
3092
  }
3054
3093
  }), ee = [];
3055
3094
  for (let e = 0; e < 256; ++e)
3056
3095
  ee.push((e + 256).toString(16).slice(1));
3057
- function gr(e, n = 0) {
3096
+ function yr(e, n = 0) {
3058
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();
3059
3098
  }
3060
- let We;
3061
- const br = new Uint8Array(16);
3062
- function hr() {
3063
- if (!We) {
3099
+ let Qe;
3100
+ const wr = new Uint8Array(16);
3101
+ function _r() {
3102
+ if (!Qe) {
3064
3103
  if (typeof crypto > "u" || !crypto.getRandomValues)
3065
3104
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3066
- We = crypto.getRandomValues.bind(crypto);
3105
+ Qe = crypto.getRandomValues.bind(crypto);
3067
3106
  }
3068
- return We(br);
3107
+ return Qe(wr);
3069
3108
  }
3070
- const yr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), $t = { randomUUID: yr };
3071
- 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) {
3072
3111
  var r;
3073
3112
  if ($t.randomUUID && !n && !e)
3074
3113
  return $t.randomUUID();
3075
3114
  e = e || {};
3076
- 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();
3077
3116
  if (o.length < 16)
3078
3117
  throw new Error("Random bytes length must be >= 16");
3079
- 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);
3080
3119
  }
3081
- const me = T([]), qe = T(1);
3082
- function Wt() {
3120
+ const me = q([]), Me = q(1);
3121
+ function Qt() {
3083
3122
  function e(a, i, l, u, c) {
3084
3123
  const p = {
3085
- id: qe.value++,
3124
+ id: Me.value++,
3086
3125
  message: a,
3087
3126
  date: /* @__PURE__ */ new Date(),
3088
3127
  sender: i || "bot",
3089
- sessionID: u || Qt(),
3128
+ sessionID: u || Jt(),
3090
3129
  file: l,
3091
3130
  isWelcomeMessage: c,
3092
3131
  fields: []
@@ -3094,10 +3133,10 @@ function Wt() {
3094
3133
  return me.value.push(p), p;
3095
3134
  }
3096
3135
  function n() {
3097
- return me.value.find((a) => a.id === qe.value - 1);
3136
+ return me.value.find((a) => a.id === Me.value - 1);
3098
3137
  }
3099
3138
  function t() {
3100
- me.value = [], qe.value = 1;
3139
+ me.value = [], Me.value = 1;
3101
3140
  }
3102
3141
  function o(a) {
3103
3142
  me.value = me.value.filter((i) => i.id !== a);
@@ -3107,7 +3146,7 @@ function Wt() {
3107
3146
  }
3108
3147
  return {
3109
3148
  messages: me,
3110
- nextMessageId: qe,
3149
+ nextMessageId: Me,
3111
3150
  addChatMessage: e,
3112
3151
  getLastMessage: n,
3113
3152
  clearMessages: t,
@@ -3115,23 +3154,25 @@ function Wt() {
3115
3154
  deleteMessageById: o
3116
3155
  };
3117
3156
  }
3118
- const wr = { class: "q-chatbot__dialog-title" }, _r = {
3157
+ const $r = { class: "q-chatbot__dialog-title" }, Ar = {
3119
3158
  key: 0,
3120
3159
  class: "q-chatbot__feedback-buttons"
3121
- }, kr = { class: "q-chatbot__sender" }, $r = /* @__PURE__ */ O({
3160
+ }, xr = { class: "q-chatbot__sender" }, Ir = /* @__PURE__ */ G({
3122
3161
  __name: "ChatBotMessageButtons",
3123
3162
  props: {
3124
3163
  loading: { type: Boolean },
3125
3164
  showButtons: { type: Boolean },
3126
3165
  dateFormat: {},
3127
- date: {}
3166
+ date: {},
3167
+ isExecutionPlan: { type: Boolean },
3168
+ isLastMessage: { type: Boolean }
3128
3169
  },
3129
- emits: ["submit-feedback", "copy-response", "apply-all"],
3170
+ emits: ["submit-feedback", "copy-response", "apply-all", "approve-proceed-plan"],
3130
3171
  setup(e, { emit: n }) {
3131
- 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 = [
3132
3173
  {
3133
3174
  id: "confirm-btn",
3134
- action: L,
3175
+ action: ae,
3135
3176
  props: {
3136
3177
  label: r.submitButton,
3137
3178
  class: "q-chatbot__dialog-confirm-button"
@@ -3150,41 +3191,44 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3150
3191
  icon: "cancel"
3151
3192
  }
3152
3193
  }
3153
- ], _ = w(() => t.dateFormat ? K(s, "HH:mm") : s.toLocaleString()), E = w(() => `${_.value}`);
3154
- function K(P, te) {
3155
- const ne = P.getDate().toString().padStart(2, "0"), d = (P.getMonth() + 1).toString().padStart(2, "0"), v = P.getFullYear().toString().padStart(2, "0"), $ = P.getHours().toString().padStart(2, "0"), q = P.getMinutes().toString().padStart(2, "0"), I = P.getSeconds().toString().padStart(2, "0");
3156
- 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);
3157
3198
  }
3158
- function z(P) {
3159
- i.value = !0, l.value = "", u.value = P;
3199
+ function V(v) {
3200
+ i.value = !0, l.value = "", u.value = v;
3160
3201
  }
3161
- function V() {
3162
- z(0);
3202
+ function E() {
3203
+ V(0);
3163
3204
  }
3164
- function Q() {
3165
- z(1);
3205
+ function U() {
3206
+ V(1);
3166
3207
  }
3167
- function j() {
3208
+ function F() {
3168
3209
  c.value || (c.value = !0, o("apply-all"));
3169
3210
  }
3170
- function L() {
3211
+ function le() {
3212
+ p.value || (p.value = !0, o("approve-proceed-plan"));
3213
+ }
3214
+ function ae() {
3171
3215
  u.value && (o("submit-feedback", u.value, l.value), i.value = !1, l.value = "", u.value = null);
3172
3216
  }
3173
- function B() {
3217
+ function d() {
3174
3218
  o("copy-response");
3175
3219
  }
3176
- return (P, te) => (y(), A(pe, null, [
3220
+ return (v, _) => (b(), $(pe, null, [
3177
3221
  S(f(Ht), {
3178
3222
  modelValue: i.value,
3179
- "onUpdate:modelValue": te[1] || (te[1] = (ne) => i.value = ne),
3223
+ "onUpdate:modelValue": _[1] || (_[1] = (C) => i.value = C),
3180
3224
  inline: "",
3181
- buttons: b
3225
+ buttons: O
3182
3226
  }, {
3183
- body: D(() => [
3184
- R("div", wr, ae(f(r).commentDialogTitle), 1),
3185
- S(f(Ot), {
3227
+ body: R(() => [
3228
+ L("div", $r, oe(f(r).commentDialogTitle), 1),
3229
+ S(f(Pt), {
3186
3230
  modelValue: l.value,
3187
- "onUpdate:modelValue": te[0] || (te[0] = (ne) => l.value = ne),
3231
+ "onUpdate:modelValue": _[0] || (_[0] = (C) => l.value = C),
3188
3232
  class: "q-chatbot__dialog-comment-input",
3189
3233
  "max-length": 150,
3190
3234
  size: "large",
@@ -3193,68 +3237,85 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3193
3237
  ]),
3194
3238
  _: 1
3195
3239
  }, 8, ["modelValue"]),
3196
- P.showButtons ? (y(), A("div", _r, [
3197
- S(f(Nt), null, {
3198
- default: D(() => [
3199
- S(f(re), {
3240
+ v.showButtons ? (b(), $("div", Ar, [
3241
+ S(f(Tt), null, {
3242
+ default: R(() => [
3243
+ S(f(ne), {
3200
3244
  title: f(r).goodResponse,
3201
3245
  class: "q-chatbot__good-response-button",
3202
3246
  borderless: "",
3203
3247
  disabled: t.loading,
3204
- onClick: Q
3248
+ onClick: U
3205
3249
  }, {
3206
- default: D(() => [
3250
+ default: R(() => [
3207
3251
  S(f(Y), { icon: "thumb-up" })
3208
3252
  ]),
3209
3253
  _: 1
3210
3254
  }, 8, ["title", "disabled"]),
3211
- S(f(re), {
3255
+ S(f(ne), {
3212
3256
  title: f(r).badResponse,
3213
3257
  class: "q-chatbot__bad-response-button",
3214
3258
  borderless: "",
3215
3259
  disabled: t.loading,
3216
- onClick: V
3260
+ onClick: E
3217
3261
  }, {
3218
- default: D(() => [
3262
+ default: R(() => [
3219
3263
  S(f(Y), { icon: "thumb-down" })
3220
3264
  ]),
3221
3265
  _: 1
3222
3266
  }, 8, ["title", "disabled"]),
3223
- S(f(re), {
3267
+ S(f(ne), {
3224
3268
  title: f(r).copyResponse,
3225
3269
  class: "q-chatbot__copy-button",
3226
3270
  borderless: "",
3227
3271
  disabled: t.loading,
3228
- onClick: B
3272
+ onClick: d
3229
3273
  }, {
3230
- default: D(() => [
3274
+ default: R(() => [
3231
3275
  S(f(Y), { icon: "copy-content" })
3232
3276
  ]),
3233
3277
  _: 1
3234
3278
  }, 8, ["title", "disabled"]),
3235
- g.value ? (y(), H(f(re), {
3279
+ I.value ? (b(), Z(f(ne), {
3236
3280
  key: 0,
3237
- title: f(r).applyAll,
3281
+ title: s.value ? void 0 : f(r).applyAll,
3238
3282
  class: "q-chatbot__apply-all-button",
3283
+ variant: "bold",
3239
3284
  borderless: "",
3240
- disabled: p.value,
3241
- readonly: p.value,
3285
+ disabled: s.value,
3286
+ readonly: s.value,
3242
3287
  label: f(r).applyAll,
3243
- onClick: j
3288
+ onClick: F
3244
3289
  }, {
3245
- default: D(() => [
3246
- S(f(Y), { icon: "apply-all" })
3290
+ default: R(() => [
3291
+ S(f(Y), { icon: "apply" })
3247
3292
  ]),
3248
3293
  _: 1
3249
- }, 8, ["title", "disabled", "readonly", "label"])) : G("", !0)
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
3305
+ }, {
3306
+ default: R(() => [
3307
+ S(f(Y), { icon: "apply" })
3308
+ ]),
3309
+ _: 1
3310
+ }, 8, ["title", "disabled", "readonly", "label"])) : j("", !0)
3250
3311
  ]),
3251
3312
  _: 1
3252
3313
  })
3253
- ])) : G("", !0),
3254
- R("div", kr, ae(E.value), 1)
3314
+ ])) : j("", !0),
3315
+ L("div", xr, oe(W.value), 1)
3255
3316
  ], 64));
3256
3317
  }
3257
- }), 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({
3258
3319
  __name: "ChatToolBar",
3259
3320
  props: {
3260
3321
  disabled: { type: Boolean },
@@ -3267,19 +3328,19 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3267
3328
  key: "",
3268
3329
  value: "Default Chat",
3269
3330
  formId: ""
3270
- }, i = w(() => t.availableAgents && t.availableAgents.length > 0), l = T(t.selectedAgentKey || a.key);
3271
- le(
3331
+ }, i = w(() => t.availableAgents && t.availableAgents.length > 0), l = q(t.selectedAgentKey || a.key);
3332
+ ie(
3272
3333
  () => t.selectedAgentKey,
3273
3334
  (s) => {
3274
3335
  l.value = s || a.key;
3275
3336
  }
3276
3337
  );
3277
3338
  const u = w(() => {
3278
- var m;
3279
- const s = (m = t.availableAgents) == null ? void 0 : m.map((g) => ({
3280
- key: g.key,
3281
- value: g.value,
3282
- 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
3283
3344
  }));
3284
3345
  return s == null || s.push(a), s || [a];
3285
3346
  });
@@ -3287,24 +3348,24 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3287
3348
  o("clear");
3288
3349
  }
3289
3350
  function p(s) {
3290
- const m = u.value.find((g) => g.key === s);
3291
- if (m) {
3292
- if (m.key === a.key) {
3351
+ const g = u.value.find((m) => m.key === s);
3352
+ if (g) {
3353
+ if (g.key === a.key) {
3293
3354
  o("change-chat", { key: "", formId: "" });
3294
3355
  return;
3295
3356
  }
3296
- o("change-chat", m);
3357
+ o("change-chat", g);
3297
3358
  }
3298
3359
  }
3299
- return (s, m) => {
3300
- const g = cn("q-select");
3301
- return y(), A("div", Ar, [
3302
- R("div", xr, [
3303
- i.value ? (y(), H(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, {
3304
3365
  key: 0,
3305
3366
  modelValue: l.value,
3306
3367
  "onUpdate:modelValue": [
3307
- m[0] || (m[0] = (b) => l.value = b),
3368
+ g[0] || (g[0] = (y) => l.value = y),
3308
3369
  p
3309
3370
  ],
3310
3371
  inline: "",
@@ -3312,16 +3373,16 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3312
3373
  class: "q-chatbot__tools-select-input",
3313
3374
  size: "medium",
3314
3375
  items: u.value
3315
- }, null, 8, ["modelValue", "items"])) : G("", !0)
3376
+ }, null, 8, ["modelValue", "items"])) : j("", !0)
3316
3377
  ]),
3317
- S(f(re), {
3378
+ S(f(ne), {
3318
3379
  title: f(r),
3319
3380
  disabled: t.disabled,
3320
3381
  class: "q-chatbot__tools-clear",
3321
3382
  borderless: "",
3322
3383
  onClick: c
3323
3384
  }, {
3324
- default: D(() => [
3385
+ default: R(() => [
3325
3386
  S(f(Y), { icon: "bin" })
3326
3387
  ]),
3327
3388
  _: 1
@@ -3329,14 +3390,14 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3329
3390
  ]);
3330
3391
  };
3331
3392
  }
3332
- }), Sr = { class: "q-chatbot__input-wrapper" }, Dr = {
3393
+ }), Cr = { class: "q-chatbot__input-wrapper" }, Br = {
3333
3394
  key: 0,
3334
3395
  class: "q-chatbot__file-preview"
3335
- }, Er = ["src", "alt"], Cr = {
3396
+ }, Rr = ["src", "alt"], Lr = {
3336
3397
  key: 1,
3337
3398
  class: "q-chatbot__file-preview",
3338
3399
  tabindex: "0"
3339
- }, 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({
3340
3401
  __name: "ChatBotInput",
3341
3402
  props: {
3342
3403
  disabled: { type: Boolean },
@@ -3346,93 +3407,93 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3346
3407
  },
3347
3408
  emits: ["send-message"],
3348
3409
  setup(e, { emit: n }) {
3349
- 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);
3350
- function g(L) {
3351
- L.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);
3352
3413
  }
3353
- const b = w(() => ({
3414
+ const y = w(() => ({
3354
3415
  "q-chatbot__footer-disabled": t.disabled,
3355
3416
  "drag-over": u.value && !i.value
3356
3417
  }));
3357
- function _(L) {
3358
- L.preventDefault(), u.value = !1;
3418
+ function I(E) {
3419
+ E.preventDefault(), u.value = !1;
3359
3420
  }
3360
- function E(L) {
3361
- var P;
3362
- if (L.preventDefault(), u.value = !1, t.disabled || i.value) return;
3363
- const B = (P = L.dataTransfer) == null ? void 0 : P.files;
3364
- B && K(B[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]);
3365
3426
  }
3366
- function K(L) {
3367
- i.value = L, L.type.startsWith("image/") ? l.value = URL.createObjectURL(L) : l.value = "";
3427
+ function O(E) {
3428
+ i.value = E, E.type.startsWith("image/") ? l.value = URL.createObjectURL(E) : l.value = "";
3368
3429
  }
3369
3430
  function z() {
3370
3431
  if (!(s.value.trim() === "" || t.loading || t.disabled)) {
3371
3432
  if (i.value) {
3372
- const L = {
3433
+ const E = {
3373
3434
  fileData: i.value,
3374
3435
  previewUrl: l.value ?? ""
3375
3436
  };
3376
- o("send-message", s.value, L), V();
3437
+ o("send-message", s.value, E), W();
3377
3438
  } else o("send-message", s.value);
3378
3439
  s.value = "";
3379
3440
  }
3380
3441
  }
3381
- function V() {
3442
+ function W() {
3382
3443
  i.value = null, l.value = "", a.value && (a.value.value = "", a.value.files = null);
3383
3444
  }
3384
- function Q() {
3385
- var L;
3386
- (L = a.value) == null || L.click();
3445
+ function J() {
3446
+ var E;
3447
+ (E = a.value) == null || E.click();
3387
3448
  }
3388
- function j(L) {
3389
- var P;
3390
- const B = L.target;
3391
- (P = B.files) != null && P[0] && K(B.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]);
3392
3453
  }
3393
- return (L, B) => (y(), A(pe, null, [
3394
- S(f(Tt), {
3454
+ return (E, U) => (b(), $(pe, null, [
3455
+ S(f(Nt), {
3395
3456
  label: f(r).inputLabel
3396
3457
  }, null, 8, ["label"]),
3397
- R("div", {
3398
- class: W(["q-chatbot__footer", b.value]),
3399
- onDragover: Me(g, ["prevent"]),
3400
- onDragleave: Me(_, ["prevent"]),
3401
- onDrop: Me(E, ["prevent"])
3458
+ L("div", {
3459
+ class: X(["q-chatbot__footer", y.value]),
3460
+ onDragover: qe(m, ["prevent"]),
3461
+ onDragleave: qe(I, ["prevent"]),
3462
+ onDrop: qe(A, ["prevent"])
3402
3463
  }, [
3403
- R("div", Sr, [
3404
- i.value ? (y(), A("div", Dr, [
3405
- p.value ? (y(), A("img", {
3464
+ L("div", Cr, [
3465
+ i.value ? (b(), $("div", Br, [
3466
+ p.value ? (b(), $("img", {
3406
3467
  key: 0,
3407
3468
  class: "q-chatbot__image-preview",
3408
3469
  src: l.value,
3409
3470
  tabindex: "0",
3410
3471
  alt: f(r).imagePreview
3411
- }, null, 8, Er)) : (y(), A("div", Cr, [
3472
+ }, null, 8, Rr)) : (b(), $("div", Lr, [
3412
3473
  S(f(Y), {
3413
3474
  icon: "file",
3414
3475
  class: "q-chatbot__file-icon"
3415
3476
  }),
3416
- R("span", Br, ae(i.value.name), 1)
3477
+ L("span", Mr, oe(i.value.name), 1)
3417
3478
  ])),
3418
- S(f(re), {
3479
+ S(f(ne), {
3419
3480
  class: "q-chatbot__remove-file",
3420
3481
  tabindex: "0",
3421
3482
  flat: "",
3422
3483
  round: "",
3423
- onClick: V
3484
+ onClick: W
3424
3485
  }, {
3425
- default: D(() => [
3486
+ default: R(() => [
3426
3487
  S(f(Y), { icon: "remove" })
3427
3488
  ]),
3428
3489
  _: 1
3429
3490
  })
3430
- ])) : G("", !0),
3431
- R("div", Rr, [
3491
+ ])) : j("", !0),
3492
+ L("div", qr, [
3432
3493
  S(f(Za), {
3433
3494
  id: "chatbot-input",
3434
3495
  modelValue: s.value,
3435
- "onUpdate:modelValue": B[0] || (B[0] = (P) => s.value = P),
3496
+ "onUpdate:modelValue": U[0] || (U[0] = (F) => s.value = F),
3436
3497
  size: "block",
3437
3498
  autosize: "",
3438
3499
  resize: "none",
@@ -3441,36 +3502,36 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3441
3502
  onKeyup: un(z, ["enter"])
3442
3503
  }, null, 8, ["modelValue", "disabled"])
3443
3504
  ]),
3444
- R("div", Lr, [
3445
- S(f(re), {
3505
+ L("div", Tr, [
3506
+ S(f(ne), {
3446
3507
  title: f(r).imageUpload,
3447
3508
  class: "q-chatbot__upload",
3448
3509
  disabled: t.disabled || t.loading || !!i.value,
3449
- onClick: Q
3510
+ onClick: J
3450
3511
  }, {
3451
- default: D(() => [
3512
+ default: R(() => [
3452
3513
  S(f(Y), { icon: "upload" })
3453
3514
  ]),
3454
3515
  _: 1
3455
3516
  }, 8, ["title", "disabled"]),
3456
- R("input", {
3517
+ L("input", {
3457
3518
  id: "file-upload",
3458
3519
  ref_key: "fileInput",
3459
3520
  ref: a,
3460
3521
  type: "file",
3461
3522
  accept: c.value,
3462
3523
  class: "hidden-input",
3463
- onChange: j
3464
- }, null, 40, qr),
3465
- S(f(re), {
3524
+ onChange: V
3525
+ }, null, 40, Nr),
3526
+ S(f(ne), {
3466
3527
  title: f(r).sendMessage,
3467
3528
  variant: "bold",
3468
3529
  class: "q-chatbot__send",
3469
- disabled: m.value,
3470
- readonly: m.value,
3530
+ disabled: g.value,
3531
+ readonly: g.value,
3471
3532
  onClick: z
3472
3533
  }, {
3473
- default: D(() => [
3534
+ default: R(() => [
3474
3535
  S(f(Y), { icon: "send" })
3475
3536
  ]),
3476
3537
  _: 1
@@ -3480,7 +3541,7 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3480
3541
  ], 34)
3481
3542
  ], 64));
3482
3543
  }
3483
- }), 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,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2Jl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AAASUVORK5CYII=", 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,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW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aR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Ur = { class: "q-chatbot" }, jr = { class: "q-chatbot__content" }, Gr = { class: "q-chatbot__footer-container" }, Zr = /* @__PURE__ */ G({
3484
3545
  name: "ChatBot",
3485
3546
  __name: "ChatBot",
3486
3547
  props: {
@@ -3488,8 +3549,8 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3488
3549
  controllerEndpoint: {},
3489
3550
  username: {},
3490
3551
  projectPath: {},
3491
- userImage: { default: Tr },
3492
- chatbotImage: { default: Nr },
3552
+ userImage: { default: Or },
3553
+ chatbotImage: { default: Pr },
3493
3554
  dateFormat: {},
3494
3555
  agentData: { default: () => ({
3495
3556
  id: "",
@@ -3500,124 +3561,124 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3500
3561
  },
3501
3562
  emits: ["apply-fields", "direct-agent-chat"],
3502
3563
  setup(e, { emit: n }) {
3503
- 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(
3504
3565
  t.apiEndpoint
3505
- ), { messages: _, addChatMessage: E, clearMessages: K, getLastMessage: z, deleteMessageById: V } = 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);
3506
3567
  dn(() => {
3507
3568
  var h;
3508
- (h = a.value) == null || h.removeEventListener("scroll", ne);
3569
+ (h = a.value) == null || h.removeEventListener("scroll", ae);
3509
3570
  }), Ce(() => {
3510
- L();
3571
+ E();
3511
3572
  });
3512
- function j(h) {
3573
+ function V(h) {
3513
3574
  r.value = h;
3514
3575
  }
3515
- async function L() {
3576
+ async function E() {
3516
3577
  try {
3517
- await B();
3578
+ await U();
3518
3579
  } catch (h) {
3519
- E(c.loginError), console.error("Error logging in: " + h);
3580
+ A(c.loginError), console.error("Error logging in: " + h);
3520
3581
  }
3521
3582
  }
3522
- async function B() {
3523
- j(!0);
3524
- const { data: h, error: x } = await m(
3583
+ async function U() {
3584
+ V(!0);
3585
+ const { data: h, error: x } = await g(
3525
3586
  t.username,
3526
3587
  t.projectPath,
3527
3588
  l.value,
3528
3589
  u.value
3529
3590
  );
3530
3591
  if (x || !h || !h.success) {
3531
- j(!0), E(c.botIsSick), console.log("Error loading chat data: " + x);
3592
+ V(!0), A(c.botIsSick), console.log("Error loading chat data: " + x);
3532
3593
  return;
3533
3594
  }
3534
- j(!1), P(), h.history.forEach(async (N) => {
3535
- E(
3536
- N.content,
3537
- 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",
3538
3599
  void 0,
3539
3600
  // At this point we don't have preview URLs for past messages
3540
- N.sessionID
3601
+ T.sessionID
3541
3602
  );
3542
3603
  });
3543
3604
  }
3544
- function P() {
3605
+ function F() {
3545
3606
  const h = c.initialMessage;
3546
- E(h, "bot", void 0, void 0, !0);
3607
+ A(h, "bot", void 0, void 0, !0);
3547
3608
  }
3548
- function te() {
3549
- K(), j(!1), i.value = !0;
3609
+ function le() {
3610
+ O(), V(!1), i.value = !0;
3550
3611
  }
3551
- function ne() {
3612
+ function ae() {
3552
3613
  if (a.value) {
3553
- const { scrollTop: x, clientHeight: N, scrollHeight: F } = a.value;
3554
- i.value = x + N >= F - 20;
3614
+ const { scrollTop: x, clientHeight: T, scrollHeight: N } = a.value;
3615
+ i.value = x + T >= N - 20;
3555
3616
  }
3556
3617
  }
3557
3618
  async function d(h, x) {
3558
3619
  a.value && a.value.scrollTo({
3559
3620
  top: a.value.scrollHeight,
3560
3621
  behavior: "smooth"
3561
- }), E(h, "user", x), $(h, x == null ? void 0 : x.fileData);
3622
+ }), A(h, "user", x), _(h, x == null ? void 0 : x.fileData);
3562
3623
  }
3563
3624
  async function v(h) {
3564
3625
  a.value && a.value.scrollTo({
3565
3626
  top: a.value.scrollHeight,
3566
3627
  behavior: "smooth"
3567
- }), E("", "bot");
3628
+ }), A("", "bot");
3568
3629
  const x = z();
3569
- x && await g(
3630
+ x && await m(
3570
3631
  h,
3571
- (N) => {
3572
- if (x.message += N, x.fields || (x.fields = []), x.fields.length > 0) {
3573
- const F = x.fields[x.fields.length - 1];
3574
- 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;
3575
3636
  }
3576
3637
  },
3577
- (N) => {
3578
- var J;
3638
+ (T) => {
3639
+ var Q;
3579
3640
  x.message = "";
3580
- const F = N;
3581
- (J = x.fields) == null || J.push({
3582
- id: F.id,
3583
- type: F.type,
3584
- name: F.name,
3585
- 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
3586
3647
  });
3587
3648
  },
3588
- (N) => {
3589
- j(!0), E(c.botIsSick), console.error("Error getting job result: " + N), V(x.id);
3649
+ (T) => {
3650
+ V(!0), A(c.botIsSick), console.error("Error getting job result: " + T), W(x.id);
3590
3651
  }
3591
3652
  );
3592
3653
  }
3593
- async function $(h, x) {
3594
- const N = Qt(), F = new FormData();
3595
- 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 !== "")
3596
3657
  o("direct-agent-chat", l.value, h);
3597
3658
  else {
3598
- E("", "bot");
3599
- const J = z();
3600
- if (!J) return;
3659
+ A("", "bot");
3660
+ const Q = z();
3661
+ if (!Q) return;
3601
3662
  const se = /* @__PURE__ */ new Map(), fe = 1e3;
3602
- await b(
3603
- F,
3604
- (ie) => {
3605
- J && (J.message += ie);
3663
+ await y(
3664
+ N,
3665
+ (re) => {
3666
+ Q && (Q.message += re);
3606
3667
  },
3607
- (ie) => {
3608
- if (!J || !ie) return;
3609
- const { event: ze, data: k } = ie;
3668
+ (re) => {
3669
+ if (!Q || !re) return;
3670
+ const { event: ze, data: k } = re;
3610
3671
  if (!k || !k.id) return;
3611
3672
  const ce = (ue) => {
3612
- J.message && !J.message.endsWith(`
3673
+ Q.message && !Q.message.endsWith(`
3613
3674
 
3614
- `) && (J.message += `
3675
+ `) && (Q.message += `
3615
3676
 
3616
- `), J.message += `${ue}
3677
+ `), Q.message += `${ue}
3617
3678
 
3618
3679
  `;
3619
- }, oe = (ue) => {
3620
- 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);
3621
3682
  };
3622
3683
  switch (ze) {
3623
3684
  case "tool_start": {
@@ -3628,20 +3689,20 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3628
3689
  const ue = se.get(k.id);
3629
3690
  if (ue) {
3630
3691
  const Yt = Date.now() - ue.startedAt, ut = Math.max(0, fe - Yt);
3631
- ut > 0 ? setTimeout(() => oe(ue), ut) : oe(ue);
3692
+ ut > 0 ? setTimeout(() => te(ue), ut) : te(ue);
3632
3693
  } else
3633
3694
  ce(k.html);
3634
3695
  break;
3635
3696
  }
3636
3697
  }
3637
3698
  },
3638
- (ie) => {
3639
- j(!0), E(c.botIsSick), console.error("Error sending message: " + ie), V(J.id);
3699
+ (re) => {
3700
+ V(!0), A(c.botIsSick), console.error("Error sending message: " + re), W(Q.id);
3640
3701
  }
3641
3702
  );
3642
3703
  }
3643
3704
  }
3644
- async function q() {
3705
+ async function C() {
3645
3706
  const { data: h, error: x } = await s(
3646
3707
  t.username,
3647
3708
  t.projectPath,
@@ -3649,75 +3710,77 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3649
3710
  u.value
3650
3711
  );
3651
3712
  if (x || !h || !h.success) {
3652
- j(!0), E(c.loginError), console.log("Error clearing chat: " + x);
3713
+ V(!0), A(c.loginError), console.log("Error clearing chat: " + x);
3653
3714
  return;
3654
3715
  }
3655
- te(), P();
3716
+ le(), F();
3656
3717
  }
3657
- function I(h) {
3718
+ function D(h) {
3658
3719
  const x = ["q-chatbot__messages-wrapper"];
3659
3720
  return h === "user" && x.push("q-chatbot__messages-wrapper_right"), x;
3660
3721
  }
3661
- async function U(h) {
3662
- l.value = h.key, u.value = h.formId, te(), await L();
3722
+ async function P(h) {
3723
+ l.value = h.key, u.value = h.formId, le(), await E();
3663
3724
  }
3664
- function C(h) {
3725
+ function B(h) {
3665
3726
  !h || h.length === 0 || o("apply-fields", h);
3666
3727
  }
3667
- function Z(h) {
3728
+ function H(h) {
3668
3729
  const x = c.regenerateResponsePrompt.replace("{0}", h);
3669
3730
  o("direct-agent-chat", l.value, x);
3670
3731
  }
3671
- return le(
3732
+ return ie(
3672
3733
  () => t.availableAgents,
3673
3734
  (h, x) => {
3674
- h.length === 0 && x.length > 0 && (l.value = "", u.value = "", te(), L());
3735
+ h.length === 0 && x.length > 0 && (l.value = "", u.value = "", le(), E());
3675
3736
  }
3676
- ), le(
3737
+ ), ie(
3677
3738
  () => t.agentData,
3678
3739
  async (h, x) => {
3679
- if (Q.value) return;
3680
- const N = h.jobId, F = x.jobId, J = N !== F;
3681
- 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);
3682
3743
  },
3683
3744
  { deep: !0 }
3684
- ), (h, x) => (y(), A("div", Fr, [
3685
- R("div", Or, [
3686
- S(f(Ir), {
3687
- disabled: Q.value,
3745
+ ), (h, x) => (b(), $("div", Ur, [
3746
+ L("div", jr, [
3747
+ S(f(Er), {
3748
+ disabled: J.value,
3688
3749
  "available-agents": t.availableAgents,
3689
3750
  "selected-agent-key": l.value,
3690
- onClear: q,
3691
- onChangeChat: U
3751
+ onClear: C,
3752
+ onChangeChat: P
3692
3753
  }, null, 8, ["disabled", "available-agents", "selected-agent-key"]),
3693
- R("div", {
3754
+ L("div", {
3694
3755
  ref_key: "messagesContainer",
3695
3756
  ref: a,
3696
3757
  class: "q-chatbot__messages-container",
3697
- onScroll: ne
3758
+ onScroll: ae
3698
3759
  }, [
3699
- (y(!0), A(pe, null, Be(f(_), (N) => (y(), A("div", {
3700
- key: N.id,
3701
- 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))
3702
3763
  }, [
3703
- S(f(mr), de({ ref_for: !0 }, N, {
3764
+ S(f(hr), de({ ref_for: !0 }, T, {
3704
3765
  "date-format": t.dateFormat,
3705
3766
  "user-image": t.userImage,
3706
3767
  "chatbot-image": t.chatbotImage,
3707
- loading: f(p) && !N.message,
3708
- file: N.file,
3768
+ loading: f(p) && !T.message,
3769
+ file: T.file,
3709
3770
  "api-endpoint": t.apiEndpoint,
3710
- "session-i-d": N.sessionID,
3711
- fields: N.fields,
3712
- onRegenerate: Z,
3713
- onApplyFields: C
3714
- }), null, 16, ["date-format", "user-image", "chatbot-image", "loading", "file", "api-endpoint", "session-i-d", "fields"])
3771
+ "session-i-d": T.sessionID,
3772
+ fields: T.fields,
3773
+ "is-last-message": N === f(I).length - 1,
3774
+ onRegenerate: H,
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"])
3715
3778
  ], 2))), 128))
3716
3779
  ], 544)
3717
3780
  ]),
3718
- R("div", Ur, [
3719
- S(f(Mr), {
3720
- disabled: Q.value,
3781
+ L("div", Gr, [
3782
+ S(f(Fr), {
3783
+ disabled: J.value,
3721
3784
  loading: f(p),
3722
3785
  onSendMessage: d
3723
3786
  }, null, 8, ["disabled", "loading"])
@@ -3726,5 +3789,5 @@ const wr = { class: "q-chatbot__dialog-title" }, _r = {
3726
3789
  }
3727
3790
  });
3728
3791
  export {
3729
- zr as default
3792
+ Zr as default
3730
3793
  };