@quidgest/chatbot 0.5.3-dev.0 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/components/ChatBot/__tests__/ChatBot.spec.d.ts +1 -0
  2. package/dist/components/ChatBot/types.d.ts +3 -1
  3. package/dist/components/ChatBotInput/ChatBotInput.vue.d.ts +3 -3
  4. package/dist/components/ChatBotInput/index.d.ts +2 -2
  5. package/dist/components/ChatBotInput/types.d.ts +4 -4
  6. package/dist/components/ChatBotMessage/__tests__/ChatBotMessage.spec.d.ts +1 -0
  7. package/dist/components/ChatBotMessage/types.d.ts +3 -2
  8. package/dist/composables/useChatMessages.d.ts +2 -1
  9. package/dist/composables/useTexts.d.ts +1 -0
  10. package/dist/index.js +18 -18
  11. package/dist/index.mjs +1200 -1165
  12. package/dist/style.css +1 -1
  13. package/package.json +2 -1
  14. package/src/assets/styles/preview-file.scss +70 -0
  15. package/src/assets/styles/styles.scss +9 -33
  16. package/src/components/ChatBot/ChatBot.vue +10 -14
  17. package/src/components/ChatBot/__tests__/ChatBot.spec.ts +52 -0
  18. package/src/components/ChatBot/__tests__/__snapshots__/ChatBot.spec.ts.snap +39 -0
  19. package/src/components/ChatBot/types.ts +3 -1
  20. package/src/components/ChatBotInput/ChatBotInput.vue +81 -74
  21. package/src/components/ChatBotInput/__tests__/ChatBotInput.spec.ts +29 -42
  22. package/src/components/ChatBotInput/__tests__/__snapshots__/ChatBotInput.spec.ts.snap +5 -5
  23. package/src/components/ChatBotInput/index.ts +2 -2
  24. package/src/components/ChatBotInput/types.ts +4 -4
  25. package/src/components/ChatBotMessage/ChatBotMessage.vue +31 -3
  26. package/src/components/ChatBotMessage/ChatBotMessageButtons.vue +1 -0
  27. package/src/components/ChatBotMessage/__tests__/ChatBotMessage.spec.ts +260 -0
  28. package/src/components/ChatBotMessage/__tests__/__snapshots__/ChatBotMessage.spec.ts.snap +35 -0
  29. package/src/components/ChatBotMessage/types.ts +4 -3
  30. package/src/components/FieldPreview/__tests__/__snapshots__/FieldPreview.spec.ts.snap +1 -1
  31. package/src/composables/useChatMessages.ts +3 -2
  32. package/src/composables/useTexts.ts +2 -1
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as nt, computed as w, inject as ot, ref as M, provide as Wt, defineComponent as U, openBlock as h, createElementBlock as $, normalizeClass as Z, normalizeStyle as ye, unref as v, toRef as Ie, withModifiers as Me, createVNode as S, createCommentVNode as j, createElementVNode as F, renderSlot as R, createTextVNode as je, toDisplayString as le, createBlock as G, resolveDynamicComponent as kt, h as Qe, mergeProps as se, useTemplateRef as _t, withCtx as E, normalizeProps as Se, guardReactiveProps as Te, mergeModels as ue, useModel as Ee, watch as re, createSlots as $t, withDirectives as At, vModelDynamic as Yt, useId as Xt, onMounted as De, onUnmounted as xt, readonly as Kt, customRef as en, getCurrentScope as tn, onScopeDispose as It, shallowRef as We, nextTick as Ae, toValue as at, reactive as Ye, onBeforeUnmount as nn, Fragment as ce, Teleport as on, Transition as st, renderList as Ce, toHandlers as an, vModelText as rn, resolveComponent as ln, withKeys as sn, onBeforeMount as cn } from "vue";
1
+ import { getCurrentInstance as nt, computed as w, inject as ot, ref as N, provide as Wt, defineComponent as T, openBlock as y, createElementBlock as $, normalizeClass as Q, normalizeStyle as ye, unref as f, toRef as Ie, withModifiers as Le, createVNode as D, createCommentVNode as P, createElementVNode as R, renderSlot as L, createTextVNode as Ge, toDisplayString as ne, createBlock as H, resolveDynamicComponent as _t, h as Qe, mergeProps as se, useTemplateRef as kt, withCtx as E, normalizeProps as Se, guardReactiveProps as Ne, mergeModels as ue, useModel as De, watch as ie, createSlots as $t, withDirectives as At, vModelDynamic as Yt, useId as Xt, onMounted as Ee, onUnmounted as xt, readonly as Kt, customRef as en, getCurrentScope as tn, onScopeDispose as It, shallowRef as We, nextTick as Ae, toValue as at, reactive as Ye, onBeforeUnmount as nn, Fragment as ce, Teleport as on, Transition as st, renderList as Ce, toHandlers as an, vModelText as rn, resolveComponent as ln, withKeys as sn, onBeforeMount as cn } from "vue";
2
2
  import St from "axios";
3
3
  import un from "markdown-it";
4
4
  function Xe(e) {
@@ -20,7 +20,7 @@ function rt(e = {}, n = {}) {
20
20
  }
21
21
  return t;
22
22
  }
23
- const Et = "q-defaults";
23
+ const Dt = "q-defaults";
24
24
  function dn() {
25
25
  var e, n;
26
26
  const t = nt();
@@ -28,20 +28,20 @@ function dn() {
28
28
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
29
29
  const o = t.type.name ?? t.type.__name;
30
30
  if (!o) throw new Error("[Quidgest UI] Could not determine component name");
31
- const r = Dt(), a = (e = r.value) == null ? void 0 : e.Global, i = (n = r.value) == null ? void 0 : n[o];
31
+ const r = Et(), a = (e = r.value) == null ? void 0 : e.Global, i = (n = r.value) == null ? void 0 : n[o];
32
32
  return w(() => rt(a, i));
33
33
  }
34
34
  function pn(e) {
35
35
  if (Xe(e)) return;
36
- const n = Dt(), t = M(e), o = w(() => Xe(t.value) ? n.value : rt(n.value, t.value));
37
- Wt(Et, o);
36
+ const n = Et(), t = N(e), o = w(() => Xe(t.value) ? n.value : rt(n.value, t.value));
37
+ Wt(Dt, o);
38
38
  }
39
- function Dt() {
40
- const e = ot(Et, void 0);
39
+ function Et() {
40
+ const e = ot(Dt, void 0);
41
41
  if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
42
42
  return e;
43
43
  }
44
- const fn = ["id"], vn = /* @__PURE__ */ U({
44
+ const fn = ["id"], vn = /* @__PURE__ */ T({
45
45
  __name: "QSpinnerLoader",
46
46
  props: {
47
47
  id: {},
@@ -52,9 +52,9 @@ const fn = ["id"], vn = /* @__PURE__ */ U({
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) => (h(), $("div", {
55
+ return (o, r) => (y(), $("div", {
56
56
  id: n.id,
57
- class: Z(["q-spinner-loader", n.class]),
57
+ class: Q(["q-spinner-loader", n.class]),
58
58
  style: ye(t.value)
59
59
  }, null, 14, fn));
60
60
  }
@@ -70,7 +70,7 @@ function bn(e, n) {
70
70
  const o = gn(n);
71
71
  return o ? typeof ((t = e.props) == null ? void 0 : t[o]) < "u" : !1;
72
72
  }
73
- function J(e) {
73
+ function X(e) {
74
74
  const n = e, t = n.setup;
75
75
  return t && (n.setup = (o, r) => {
76
76
  const a = dn();
@@ -78,16 +78,16 @@ function J(e) {
78
78
  const i = nt();
79
79
  if (i === null) return t(o, r);
80
80
  const l = new Proxy(o, {
81
- get(u, s) {
82
- var d;
83
- const c = Reflect.get(u, s), f = (d = a.value) == null ? void 0 : d[s];
84
- return typeof s == "string" && !bn(i.vnode, s) ? f ?? c : c;
81
+ get(u, c) {
82
+ var p;
83
+ const s = Reflect.get(u, c), v = (p = a.value) == null ? void 0 : p[c];
84
+ return typeof c == "string" && !bn(i.vnode, c) ? v ?? s : s;
85
85
  }
86
86
  });
87
87
  return t(l, r);
88
88
  }), e;
89
89
  }
90
- const hn = J(vn);
90
+ const hn = X(vn);
91
91
  function yn(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
  }
@@ -98,7 +98,7 @@ function wn(e) {
98
98
  return { r: t, g: o, b: r };
99
99
  }
100
100
  }
101
- function kn(e) {
101
+ function _n(e) {
102
102
  if (yn(e)) {
103
103
  e.length === 4 && (e = "#" + e[1] + e[1] + e[2] + e[2] + e[3] + e[3]);
104
104
  const n = parseInt(e.slice(1, 3), 16), t = parseInt(e.slice(3, 5), 16), o = parseInt(e.slice(5, 7), 16);
@@ -109,7 +109,7 @@ function kn(e) {
109
109
  }
110
110
  throw new Error("Invalid color format");
111
111
  }
112
- function _n(e, n) {
112
+ function kn(e, n) {
113
113
  const t = Ct(e), o = n / 100;
114
114
  return t.l = t.l - o * t.l, An(t);
115
115
  }
@@ -127,16 +127,16 @@ function Ct(e) {
127
127
  if (r === a)
128
128
  i = l = 0;
129
129
  else {
130
- const s = r - a;
131
- switch (l = u > 0.5 ? s / (2 - r - a) : s / (r + a), r) {
130
+ const c = r - a;
131
+ switch (l = u > 0.5 ? c / (2 - r - a) : c / (r + a), r) {
132
132
  case n:
133
- i = (t - o) / s + (t < o ? 6 : 0);
133
+ i = (t - o) / c + (t < o ? 6 : 0);
134
134
  break;
135
135
  case t:
136
- i = (o - n) / s + 2;
136
+ i = (o - n) / c + 2;
137
137
  break;
138
138
  case o:
139
- i = (n - t) / s + 4;
139
+ i = (n - t) / c + 4;
140
140
  break;
141
141
  }
142
142
  i /= 6;
@@ -154,7 +154,7 @@ function An(e) {
154
154
  r = a = i = o;
155
155
  else {
156
156
  const l = o < 0.5 ? o * (1 + t) : o + t - o * t, u = 2 * o - l;
157
- r = Ge(u, l, n + 1 / 3), a = Ge(u, l, n), i = Ge(u, l, n - 1 / 3);
157
+ r = je(u, l, n + 1 / 3), a = je(u, l, n), i = je(u, l, n - 1 / 3);
158
158
  }
159
159
  return {
160
160
  r: Math.round(r * 255),
@@ -162,7 +162,7 @@ function An(e) {
162
162
  b: Math.round(i * 255)
163
163
  };
164
164
  }
165
- function Ge(e, n, t) {
165
+ function je(e, n, t) {
166
166
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (n - e) * 6 * t : t < 1 / 2 ? n : t < 2 / 3 ? e + (n - e) * (2 / 3 - t) * 6 : e;
167
167
  }
168
168
  function xn(e) {
@@ -176,7 +176,7 @@ function Bt() {
176
176
  return e;
177
177
  }
178
178
  function Rt(e) {
179
- const n = w(() => v(e)), t = w(
179
+ const n = w(() => f(e)), t = w(
180
180
  () => n.value ? !Sn(n.value) : !1
181
181
  ), o = w(() => {
182
182
  const r = n.value;
@@ -184,24 +184,24 @@ function Rt(e) {
184
184
  let a = r;
185
185
  const i = Bt();
186
186
  if (t.value) {
187
- const f = r;
188
- a = i.current.value.scheme[f] ?? r;
187
+ const v = r;
188
+ a = i.current.value.scheme[v] ?? r;
189
189
  }
190
190
  let l;
191
191
  try {
192
- if (l = kn(a), !l) return;
193
- } catch (f) {
194
- console.error("Failed to parse color:", f);
192
+ if (l = _n(a), !l) return;
193
+ } catch (v) {
194
+ console.error("Failed to parse color:", v);
195
195
  return;
196
196
  }
197
- const u = Ct(l), s = xn(u.l), d = _n(l, 25), c = $n(d);
197
+ const u = Ct(l), c = xn(u.l), p = kn(l, 25), s = $n(p);
198
198
  return {
199
199
  mainColor: a,
200
200
  mainColorRgb: ut(l),
201
- onMainColor: s,
202
- hoverColor: c,
203
- hoverColorRgb: ut(d),
204
- onHoverColor: s
201
+ onMainColor: c,
202
+ hoverColor: s,
203
+ hoverColorRgb: ut(p),
204
+ onHoverColor: c
205
205
  };
206
206
  });
207
207
  return { isUtilityColor: t, style: o };
@@ -209,10 +209,10 @@ function Rt(e) {
209
209
  function Sn(e) {
210
210
  return e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl");
211
211
  }
212
- const En = ["id", "disabled"], Dn = {
212
+ const Dn = ["id", "disabled"], En = {
213
213
  key: 0,
214
214
  class: "q-button__spinner"
215
- }, Cn = { class: "q-button__content" }, Bn = /* @__PURE__ */ U({
215
+ }, Cn = { class: "q-button__content" }, Bn = /* @__PURE__ */ T({
216
216
  __name: "QButton",
217
217
  props: {
218
218
  id: {},
@@ -232,17 +232,17 @@ const En = ["id", "disabled"], Dn = {
232
232
  emits: ["click"],
233
233
  setup(e, { emit: n }) {
234
234
  const t = e, o = n, r = w(() => t.disabled || t.loading);
235
- function a(d) {
236
- r.value || o("click", d);
235
+ function a(p) {
236
+ r.value || o("click", p);
237
237
  }
238
238
  const { isUtilityColor: i, style: l } = Rt(Ie(t, "color")), u = w(() => {
239
- const d = i.value ? `q-button--${t.color}` : void 0, c = t.size !== "regular" ? `q-button--${t.size}` : void 0, f = t.iconPos !== "start" ? `q-button--icon-${t.iconPos}` : void 0;
239
+ const p = i.value ? `q-button--${t.color}` : void 0, s = t.size !== "regular" ? `q-button--${t.size}` : void 0, v = t.iconPos !== "start" ? `q-button--icon-${t.iconPos}` : void 0;
240
240
  return [
241
241
  "q-button",
242
242
  `q-button--${t.variant}`,
243
- d,
244
- c,
245
- f,
243
+ p,
244
+ s,
245
+ v,
246
246
  {
247
247
  "q-button--borderless": t.borderless,
248
248
  "q-button--elevated": t.elevated,
@@ -252,40 +252,40 @@ const En = ["id", "disabled"], Dn = {
252
252
  },
253
253
  t.class
254
254
  ];
255
- }), s = w(() => {
256
- var d, c, f, g, y, A;
255
+ }), c = w(() => {
256
+ var p, s, v, b, g, _;
257
257
  if (!i.value)
258
258
  return {
259
- "--q-button-main-color": (d = l.value) == null ? void 0 : d.mainColor,
260
- "--q-button-main-color-rgb": (c = l.value) == null ? void 0 : c.mainColorRgb,
261
- "--q-button-on-main-color": (f = l.value) == null ? void 0 : f.onMainColor,
262
- "--q-button-hover-color": (g = l.value) == null ? void 0 : g.hoverColor,
263
- "--q-button-hover-color-rgb": (y = l.value) == null ? void 0 : y.hoverColorRgb,
264
- "--q-button-on-hover-color": (A = l.value) == null ? void 0 : A.onHoverColor
259
+ "--q-button-main-color": (p = l.value) == null ? void 0 : p.mainColor,
260
+ "--q-button-main-color-rgb": (s = l.value) == null ? void 0 : s.mainColorRgb,
261
+ "--q-button-on-main-color": (v = l.value) == null ? void 0 : v.onMainColor,
262
+ "--q-button-hover-color": (b = l.value) == null ? void 0 : b.hoverColor,
263
+ "--q-button-hover-color-rgb": (g = l.value) == null ? void 0 : g.hoverColorRgb,
264
+ "--q-button-on-hover-color": (_ = l.value) == null ? void 0 : _.onHoverColor
265
265
  };
266
266
  });
267
- return (d, c) => (h(), $("button", {
267
+ return (p, s) => (y(), $("button", {
268
268
  id: t.id,
269
269
  type: "button",
270
- class: Z(u.value),
270
+ class: Q(u.value),
271
271
  disabled: r.value,
272
- style: ye(s.value),
273
- onClick: Me(a, ["stop", "prevent"])
272
+ style: ye(c.value),
273
+ onClick: Le(a, ["stop", "prevent"])
274
274
  }, [
275
- t.loading ? (h(), $("div", Dn, [
276
- S(v(hn))
277
- ])) : j("v-if", !0),
278
- F("span", Cn, [
279
- R(d.$slots, "default"),
280
- je(
281
- " " + le(t.label),
275
+ t.loading ? (y(), $("div", En, [
276
+ D(f(hn))
277
+ ])) : P("v-if", !0),
278
+ R("span", Cn, [
279
+ L(p.$slots, "default"),
280
+ Ge(
281
+ " " + ne(t.label),
282
282
  1
283
283
  /* TEXT */
284
284
  )
285
285
  ])
286
- ], 14, En));
286
+ ], 14, Dn));
287
287
  }
288
- }), ae = J(Bn), Rn = /* @__PURE__ */ U({
288
+ }), re = X(Bn), Rn = /* @__PURE__ */ T({
289
289
  __name: "QIcon",
290
290
  props: {
291
291
  id: {},
@@ -299,11 +299,11 @@ const En = ["id", "disabled"], Dn = {
299
299
  const n = e, t = w(() => {
300
300
  switch (n.type) {
301
301
  case "svg":
302
- return Gn;
302
+ return jn;
303
303
  case "font":
304
304
  return Pn;
305
305
  case "img":
306
- return jn;
306
+ return Gn;
307
307
  default:
308
308
  return;
309
309
  }
@@ -314,14 +314,14 @@ const En = ["id", "disabled"], Dn = {
314
314
  color: n.color !== void 0 && n.color !== "primary" ? (a = o.value) == null ? void 0 : a.mainColor : void 0
315
315
  };
316
316
  });
317
- return (a, i) => (h(), G(kt(t.value), {
317
+ return (a, i) => (y(), H(_t(t.value), {
318
318
  id: n.id,
319
- class: Z(n.class),
319
+ class: Q(n.class),
320
320
  icon: n.icon,
321
321
  style: ye(r.value)
322
322
  }, null, 8, ["id", "class", "icon", "style"]));
323
323
  }
324
- }), Ln = ["id"], Mn = /* @__PURE__ */ U({
324
+ }), qn = ["id"], Ln = /* @__PURE__ */ T({
325
325
  __name: "QIconFont",
326
326
  props: {
327
327
  id: {},
@@ -332,12 +332,12 @@ const En = ["id", "disabled"], Dn = {
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) => (h(), $("i", {
335
+ return (r, a) => (y(), $("i", {
336
336
  id: n.id,
337
- class: Z(["q-icon", "q-icon__font", t.value, o.value, n.class])
338
- }, null, 10, Ln));
337
+ class: Q(["q-icon", "q-icon__font", t.value, o.value, n.class])
338
+ }, null, 10, qn));
339
339
  }
340
- }), Nn = ["id", "src"], Tn = /* @__PURE__ */ U({
340
+ }), Mn = ["id", "src"], Nn = /* @__PURE__ */ T({
341
341
  __name: "QIconImg",
342
342
  props: {
343
343
  id: {},
@@ -346,13 +346,13 @@ const En = ["id", "disabled"], Dn = {
346
346
  },
347
347
  setup(e) {
348
348
  const n = e;
349
- return (t, o) => (h(), $("img", {
349
+ return (t, o) => (y(), $("img", {
350
350
  id: n.id,
351
351
  src: n.icon,
352
- class: Z(["q-icon", "q-icon__img", n.class])
353
- }, null, 10, Nn));
352
+ class: Q(["q-icon", "q-icon__img", n.class])
353
+ }, null, 10, Mn));
354
354
  }
355
- }), _e = {}, qn = U({
355
+ }), ke = {}, Fn = T({
356
356
  name: "InlineSvg",
357
357
  inheritAttrs: !1,
358
358
  props: {
@@ -423,7 +423,7 @@ const En = ["id", "disabled"], Dn = {
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)), Fn(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)), Tn(e, this.title)), e);
427
427
  },
428
428
  /**
429
429
  * Get svgElSource
@@ -431,11 +431,11 @@ const En = ["id", "disabled"], Dn = {
431
431
  */
432
432
  async getSource(e) {
433
433
  try {
434
- _e[e] || (_e[e] = On(this.download(e))), this.svgElSource && _e[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
435
- const n = await _e[e];
434
+ ke[e] || (ke[e] = On(this.download(e))), this.svgElSource && ke[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
435
+ const n = await ke[e];
436
436
  this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
437
437
  } catch (n) {
438
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete _e[e], this.$emit("error", n);
438
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ke[e], this.$emit("error", n);
439
439
  }
440
440
  },
441
441
  /**
@@ -460,7 +460,7 @@ const En = ["id", "disabled"], Dn = {
460
460
  },
461
461
  expose: []
462
462
  });
463
- function Fn(e, n) {
463
+ function Tn(e, n) {
464
464
  const t = e.getElementsByTagName("title");
465
465
  if (t.length)
466
466
  t[0].textContent = n;
@@ -480,7 +480,7 @@ function On(e) {
480
480
  );
481
481
  return t.getIsPending = () => n, t;
482
482
  }
483
- const Un = /* @__PURE__ */ U({
483
+ const Un = /* @__PURE__ */ T({
484
484
  __name: "QIconSvg",
485
485
  props: {
486
486
  id: {},
@@ -497,21 +497,21 @@ const Un = /* @__PURE__ */ U({
497
497
  function a() {
498
498
  o("unloaded");
499
499
  }
500
- return (i, l) => (h(), G(v(qn), {
500
+ return (i, l) => (y(), H(f(Fn), {
501
501
  id: t.id,
502
- class: Z(["q-icon", "q-icon__svg", t.class]),
502
+ class: Q(["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
- }), ee = J(Rn), Pn = J(Mn), jn = J(Tn), Gn = J(Un);
509
+ }), Y = X(Rn), Pn = X(Ln), Gn = X(Nn), jn = X(Un);
510
510
  let zn = 0;
511
511
  function it(e) {
512
- return v(e) || `uid-${++zn}`;
512
+ return f(e) || `uid-${++zn}`;
513
513
  }
514
- const Vn = ["id"], Hn = /* @__PURE__ */ U({
514
+ const Vn = ["id"], Hn = /* @__PURE__ */ T({
515
515
  __name: "QButtonGroup",
516
516
  props: {
517
517
  id: {},
@@ -527,9 +527,9 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
527
527
  disabled: Ie(n, "disabled"),
528
528
  borderless: Ie(n, "borderless")
529
529
  }
530
- }), (t, o) => (h(), $("div", {
530
+ }), (t, o) => (y(), $("div", {
531
531
  id: n.id,
532
- class: Z([
532
+ class: Q([
533
533
  "q-button-group",
534
534
  {
535
535
  "q-button-group--elevated": n.elevated
@@ -538,10 +538,10 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
538
538
  ]),
539
539
  role: "group"
540
540
  }, [
541
- R(t.$slots, "default")
541
+ L(t.$slots, "default")
542
542
  ], 10, Vn));
543
543
  }
544
- }), Lt = J(Hn), Zn = ["id"], Jn = ["for"], Qn = /* @__PURE__ */ U({
544
+ }), qt = X(Hn), Zn = ["id"], Jn = ["for"], Qn = /* @__PURE__ */ T({
545
545
  inheritAttrs: !1,
546
546
  __name: "QLabel",
547
547
  props: {
@@ -559,26 +559,26 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
559
559
  },
560
560
  n.class
561
561
  ]);
562
- return (o, r) => (h(), $("div", {
562
+ return (o, r) => (y(), $("div", {
563
563
  id: n.id,
564
- class: Z(t.value)
564
+ class: Q(t.value)
565
565
  }, [
566
- R(o.$slots, "prepend"),
567
- F("label", se({
566
+ L(o.$slots, "prepend"),
567
+ R("label", se({
568
568
  for: n.for
569
569
  }, o.$attrs), [
570
- R(o.$slots, "default", {}, () => [
571
- je(
572
- le(n.label),
570
+ L(o.$slots, "default", {}, () => [
571
+ Ge(
572
+ ne(n.label),
573
573
  1
574
574
  /* TEXT */
575
575
  )
576
576
  ])
577
577
  ], 16, Jn),
578
- R(o.$slots, "append")
578
+ L(o.$slots, "append")
579
579
  ], 10, Zn));
580
580
  }
581
- }), Mt = J(Qn), Wn = ["id"], Yn = {
581
+ }), Lt = X(Qn), Wn = ["id"], Yn = {
582
582
  key: 0,
583
583
  class: "q-field__prepend"
584
584
  }, Xn = {
@@ -587,7 +587,7 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
587
587
  }, Kn = {
588
588
  key: 1,
589
589
  class: "q-field__extras"
590
- }, eo = /* @__PURE__ */ U({
590
+ }, eo = /* @__PURE__ */ T({
591
591
  inheritAttrs: !1,
592
592
  __name: "QField",
593
593
  props: {
@@ -602,7 +602,7 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
602
602
  invalid: { type: Boolean }
603
603
  },
604
604
  setup(e, { expose: n }) {
605
- const t = e, o = _t("field"), r = w(() => t.required && !t.readonly && !t.disabled), a = w(() => [
605
+ const t = e, o = kt("field"), r = w(() => t.required && !t.readonly && !t.disabled), a = w(() => [
606
606
  "q-field",
607
607
  `q-field--${t.size}`,
608
608
  {
@@ -615,11 +615,11 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
615
615
  ]);
616
616
  return n({
617
617
  fieldRef: o
618
- }), (i, l) => (h(), $("div", {
618
+ }), (i, l) => (y(), $("div", {
619
619
  id: t.id,
620
- class: Z(a.value)
620
+ class: Q(a.value)
621
621
  }, [
622
- t.label ? (h(), G(v(Mt), {
622
+ t.label ? (y(), H(f(Lt), {
623
623
  key: 0,
624
624
  class: "q-field__label",
625
625
  label: t.label,
@@ -627,46 +627,46 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
627
627
  required: t.required
628
628
  }, {
629
629
  prepend: E(() => [
630
- R(i.$slots, "label.prepend")
630
+ L(i.$slots, "label.prepend")
631
631
  ]),
632
632
  append: E(() => [
633
- R(i.$slots, "label.append")
633
+ L(i.$slots, "label.append")
634
634
  ]),
635
635
  _: 3
636
636
  /* FORWARDED */
637
- }, 8, ["label", "for", "required"])) : j("v-if", !0),
638
- R(i.$slots, "control", {}, () => [
639
- F(
637
+ }, 8, ["label", "for", "required"])) : P("v-if", !0),
638
+ L(i.$slots, "control", {}, () => [
639
+ R(
640
640
  "div",
641
641
  se({
642
642
  ref: "field",
643
643
  class: "q-field__control"
644
644
  }, i.$attrs),
645
645
  [
646
- i.$slots.prepend ? (h(), $("div", Yn, [
647
- R(i.$slots, "prepend")
648
- ])) : j("v-if", !0),
649
- R(i.$slots, "default"),
650
- i.$slots.append ? (h(), $("div", Xn, [
651
- R(i.$slots, "append")
652
- ])) : j("v-if", !0)
646
+ i.$slots.prepend ? (y(), $("div", Yn, [
647
+ L(i.$slots, "prepend")
648
+ ])) : P("v-if", !0),
649
+ L(i.$slots, "default"),
650
+ i.$slots.append ? (y(), $("div", Xn, [
651
+ L(i.$slots, "append")
652
+ ])) : P("v-if", !0)
653
653
  ],
654
654
  16
655
655
  /* FULL_PROPS */
656
656
  )
657
657
  ]),
658
- i.$slots.extras ? (h(), $("div", Kn, [
659
- R(i.$slots, "extras")
660
- ])) : j("v-if", !0)
658
+ i.$slots.extras ? (y(), $("div", Kn, [
659
+ L(i.$slots, "extras")
660
+ ])) : P("v-if", !0)
661
661
  ], 10, Wn));
662
662
  }
663
- }), Nt = J(eo), to = {
663
+ }), Mt = X(eo), to = {
664
664
  clearValue: "Clear value"
665
665
  }, no = {
666
666
  clear: {
667
667
  icon: "close"
668
668
  }
669
- }, oo = /* @__PURE__ */ U({
669
+ }, oo = /* @__PURE__ */ T({
670
670
  __name: "QClearButton",
671
671
  props: {
672
672
  id: {},
@@ -680,9 +680,9 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
680
680
  function r(a) {
681
681
  o("click", a);
682
682
  }
683
- return (a, i) => (h(), G(v(ae), {
683
+ return (a, i) => (y(), H(f(re), {
684
684
  id: t.id,
685
- class: Z(["q-clear-btn", t.class]),
685
+ class: Q(["q-clear-btn", t.class]),
686
686
  "aria-label": t.texts.clearValue,
687
687
  variant: "ghost",
688
688
  color: "neutral",
@@ -691,9 +691,9 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
691
691
  onClick: r
692
692
  }, {
693
693
  default: E(() => [
694
- S(
695
- v(ee),
696
- Se(Te(t.icons.clear)),
694
+ D(
695
+ f(Y),
696
+ Se(Ne(t.icons.clear)),
697
697
  null,
698
698
  16
699
699
  /* FULL_PROPS */
@@ -703,7 +703,7 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
703
703
  /* STABLE */
704
704
  }, 8, ["id", "class", "aria-label"]));
705
705
  }
706
- }), ao = J(oo), ro = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], io = /* @__PURE__ */ U({
706
+ }), ao = X(oo), ro = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], io = /* @__PURE__ */ T({
707
707
  inheritAttrs: !1,
708
708
  __name: "QTextField",
709
709
  props: /* @__PURE__ */ ue({
@@ -727,31 +727,31 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
727
727
  }),
728
728
  emits: /* @__PURE__ */ ue(["click:clear"], ["update:modelValue"]),
729
729
  setup(e, { expose: n, emit: t }) {
730
- const o = e, r = t, a = Ee(e, "modelValue"), i = w({
730
+ const o = e, r = t, a = De(e, "modelValue"), i = w({
731
731
  get: () => a.value,
732
- set: (y) => {
733
- const A = o.maxLength;
734
- a.value = A ? y == null ? void 0 : y.slice(0, A) : y;
732
+ set: (g) => {
733
+ const _ = o.maxLength;
734
+ a.value = _ ? g == null ? void 0 : g.slice(0, _) : g;
735
735
  }
736
736
  });
737
- re(a, (y) => i.value = y, { immediate: !0 });
738
- const l = it(o.id), u = M(null), s = M(null), d = w(
737
+ ie(a, (g) => i.value = g, { immediate: !0 });
738
+ const l = it(o.id), u = N(null), c = N(null), p = w(
739
739
  () => o.readonly || o.disabled ? void 0 : o.placeholder
740
- ), c = w(() => o.clearable && !o.readonly && !o.disabled), f = w(() => c.value && a.value);
741
- function g(y) {
742
- c.value && (a.value = "", r("click:clear", y));
740
+ ), s = w(() => o.clearable && !o.readonly && !o.disabled), v = w(() => s.value && a.value);
741
+ function b(g) {
742
+ s.value && (a.value = "", r("click:clear", g));
743
743
  }
744
744
  return n({
745
745
  fieldRef: w(() => {
746
- var y;
747
- return (y = u.value) == null ? void 0 : y.fieldRef;
746
+ var g;
747
+ return (g = u.value) == null ? void 0 : g.fieldRef;
748
748
  }),
749
- inputRef: s
750
- }), (y, A) => (h(), G(v(Nt), {
749
+ inputRef: c
750
+ }), (g, _) => (y(), H(f(Mt), {
751
751
  ref_key: "fieldRef",
752
752
  ref: u,
753
- class: Z(["q-text-field", o.class]),
754
- for: v(l),
753
+ class: Q(["q-text-field", o.class]),
754
+ for: f(l),
755
755
  label: o.label,
756
756
  size: o.size,
757
757
  readonly: o.readonly,
@@ -760,61 +760,61 @@ const Vn = ["id"], Hn = /* @__PURE__ */ U({
760
760
  invalid: o.invalid
761
761
  }, $t({
762
762
  "label.prepend": E(() => [
763
- R(y.$slots, "label.prepend")
763
+ L(g.$slots, "label.prepend")
764
764
  ]),
765
765
  "label.append": E(() => [
766
- R(y.$slots, "label.append")
766
+ L(g.$slots, "label.append")
767
767
  ]),
768
768
  default: E(() => [
769
- At(F("input", se({
770
- id: v(l),
769
+ At(R("input", se({
770
+ id: f(l),
771
771
  ref_key: "inputRef",
772
- ref: s,
773
- "onUpdate:modelValue": A[0] || (A[0] = (N) => i.value = N),
772
+ ref: c,
773
+ "onUpdate:modelValue": _[0] || (_[0] = (B) => i.value = B),
774
774
  class: "q-text-field__input",
775
775
  type: o.type,
776
776
  maxlength: o.maxLength,
777
777
  required: o.required,
778
- placeholder: d.value,
778
+ placeholder: p.value,
779
779
  readonly: o.readonly,
780
780
  disabled: o.disabled
781
- }, y.$attrs), null, 16, ro), [
781
+ }, g.$attrs), null, 16, ro), [
782
782
  [Yt, i.value]
783
783
  ])
784
784
  ]),
785
785
  _: 2
786
786
  /* DYNAMIC */
787
787
  }, [
788
- y.$slots.prepend ? {
788
+ g.$slots.prepend ? {
789
789
  name: "prepend",
790
790
  fn: E(() => [
791
- R(y.$slots, "prepend")
791
+ L(g.$slots, "prepend")
792
792
  ]),
793
793
  key: "0"
794
794
  } : void 0,
795
- y.$slots.append || f.value ? {
795
+ g.$slots.append || v.value ? {
796
796
  name: "append",
797
797
  fn: E(() => [
798
- R(y.$slots, "append"),
799
- f.value ? (h(), G(v(ao), {
798
+ L(g.$slots, "append"),
799
+ v.value ? (y(), H(f(ao), {
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"])) : j("v-if", !0)
803
+ onClick: b
804
+ }, null, 8, ["texts"])) : P("v-if", !0)
805
805
  ]),
806
806
  key: "1"
807
807
  } : void 0,
808
- y.$slots.extras ? {
808
+ g.$slots.extras ? {
809
809
  name: "extras",
810
810
  fn: E(() => [
811
- R(y.$slots, "extras")
811
+ L(g.$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
- }), Tt = J(io), lo = Symbol("DismissibleLayer");
817
+ }), Nt = X(io), lo = Symbol("DismissibleLayer");
818
818
  function so(e) {
819
819
  const n = ot(lo);
820
820
  if (!n)
@@ -827,71 +827,71 @@ function so(e) {
827
827
  isTop: () => n.isTop(e)
828
828
  };
829
829
  }
830
- const co = { ref: "layer" }, uo = /* @__PURE__ */ U({
830
+ const co = { ref: "layer" }, uo = /* @__PURE__ */ T({
831
831
  __name: "QDismissibleLayer",
832
832
  emits: ["escape-key-down", "pointer-down-outside", "focus-outside", "interact-outside", "dismiss"],
833
833
  setup(e, { emit: n }) {
834
- const t = n, o = _t("layer"), r = Xt(), a = so(r);
834
+ const t = n, o = kt("layer"), r = Xt(), a = so(r);
835
835
  let i = [];
836
- function l(c) {
837
- c.key === "Escape" && a != null && a.isTop() && (t("escape-key-down", c), c.defaultPrevented || t("dismiss", c));
836
+ function l(s) {
837
+ s.key === "Escape" && a != null && a.isTop() && (t("escape-key-down", s), s.defaultPrevented || t("dismiss", s));
838
838
  }
839
- function u(c) {
839
+ function u(s) {
840
840
  if (!o.value) return;
841
- const f = c.target;
842
- if (!o.value.contains(f) && a != null && a.isTop()) {
843
- const g = new CustomEvent("focus-outside", {
841
+ const v = s.target;
842
+ if (!o.value.contains(v) && a != null && a.isTop()) {
843
+ const b = new CustomEvent("focus-outside", {
844
844
  bubbles: !1,
845
845
  cancelable: !0,
846
- detail: { originalEvent: c }
846
+ detail: { originalEvent: s }
847
847
  });
848
- t("focus-outside", g), t("interact-outside", g), g.defaultPrevented || t("dismiss", g);
848
+ t("focus-outside", b), t("interact-outside", b), b.defaultPrevented || t("dismiss", b);
849
849
  }
850
850
  }
851
- function s(c) {
851
+ function c(s) {
852
852
  if (!o.value || !(a != null && a.isTop())) return;
853
- const f = c.target;
854
- if (!o.value.contains(f)) {
855
- const g = new CustomEvent("pointer-down-outside", {
853
+ const v = s.target;
854
+ if (!o.value.contains(v)) {
855
+ const b = new CustomEvent("pointer-down-outside", {
856
856
  bubbles: !1,
857
857
  cancelable: !0,
858
- detail: { originalEvent: c }
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", b), t("interact-outside", b), b.defaultPrevented || t("dismiss", b);
861
861
  }
862
862
  }
863
- function d() {
864
- ["mousedown", "touchstart"].forEach((c) => {
865
- document.addEventListener(c, s, {
863
+ function p() {
864
+ ["mousedown", "touchstart"].forEach((s) => {
865
+ document.addEventListener(s, c, {
866
866
  passive: !0,
867
867
  capture: !0
868
868
  // Use capture phase to ensure we catch the event
869
869
  }), i.push(() => {
870
- document.removeEventListener(c, s, {
870
+ document.removeEventListener(s, c, {
871
871
  capture: !0
872
872
  });
873
873
  });
874
874
  });
875
875
  }
876
- return De(() => {
876
+ return Ee(() => {
877
877
  a == null || a.register(), document.addEventListener("keydown", l), i.push(() => {
878
878
  document.removeEventListener("keydown", l);
879
879
  }), document.addEventListener("focusin", u), i.push(() => {
880
880
  document.removeEventListener("focusin", u);
881
- }), d();
881
+ }), p();
882
882
  }), xt(() => {
883
- a == null || a.unregister(), i.forEach((c) => c()), i = [];
884
- }), (c, f) => (h(), $(
883
+ a == null || a.unregister(), i.forEach((s) => s()), i = [];
884
+ }), (s, v) => (y(), $(
885
885
  "div",
886
886
  co,
887
887
  [
888
- R(c.$slots, "default")
888
+ L(s.$slots, "default")
889
889
  ],
890
890
  512
891
891
  /* NEED_PATCH */
892
892
  ));
893
893
  }
894
- }), po = J(uo);
894
+ }), po = X(uo);
895
895
  function fo(e) {
896
896
  return tn() ? (It(e), !0) : !1;
897
897
  }
@@ -903,7 +903,7 @@ function dt(...e) {
903
903
  if (e.length !== 1)
904
904
  return Ie(...e);
905
905
  const n = e[0];
906
- return typeof n == "function" ? Kt(en(() => ({ get: n, set: mo }))) : M(n);
906
+ return typeof n == "function" ? Kt(en(() => ({ get: n, set: mo }))) : N(n);
907
907
  }
908
908
  const lt = vo ? window : void 0;
909
909
  function Ke(e) {
@@ -913,7 +913,7 @@ function Ke(e) {
913
913
  }
914
914
  function go() {
915
915
  const e = We(!1), n = nt();
916
- return n && De(() => {
916
+ return n && Ee(() => {
917
917
  e.value = !0;
918
918
  }, n), e;
919
919
  }
@@ -927,24 +927,24 @@ function ho(e, n, t = {}) {
927
927
  const i = bo(() => o && "ResizeObserver" in o), l = () => {
928
928
  a && (a.disconnect(), a = void 0);
929
929
  }, u = w(() => {
930
- const c = at(e);
931
- return Array.isArray(c) ? c.map((f) => Ke(f)) : [Ke(c)];
932
- }), s = re(
930
+ const s = at(e);
931
+ return Array.isArray(s) ? s.map((v) => Ke(v)) : [Ke(s)];
932
+ }), c = ie(
933
933
  u,
934
- (c) => {
934
+ (s) => {
935
935
  if (l(), i.value && o) {
936
936
  a = new ResizeObserver(n);
937
- for (const f of c)
938
- f && a.observe(f, r);
937
+ for (const v of s)
938
+ v && a.observe(v, r);
939
939
  }
940
940
  },
941
941
  { immediate: !0, flush: "post" }
942
- ), d = () => {
943
- l(), s();
942
+ ), p = () => {
943
+ l(), c();
944
944
  };
945
- return fo(d), {
945
+ return fo(p), {
946
946
  isSupported: i,
947
- stop: d
947
+ stop: p
948
948
  };
949
949
  }
950
950
  function yo(e = lt, n) {
@@ -953,34 +953,34 @@ function yo(e = lt, n) {
953
953
  function wo(e = {}) {
954
954
  var n, t;
955
955
  const { window: o = lt } = e, r = dt(e == null ? void 0 : e.element), a = dt((n = e == null ? void 0 : e.input) != null ? n : ""), i = (t = e == null ? void 0 : e.styleProp) != null ? t : "height", l = We(1), u = We(0);
956
- function s() {
957
- var d;
956
+ function c() {
957
+ var p;
958
958
  if (!r.value)
959
959
  return;
960
- let c = "";
961
- r.value.style[i] = "1px", l.value = (d = r.value) == null ? void 0 : d.scrollHeight;
962
- const f = at(e == null ? void 0 : e.styleTarget);
963
- f ? f.style[i] = `${l.value}px` : c = `${l.value}px`, r.value.style[i] = c;
964
- }
965
- return re([a, r], () => Ae(s), { immediate: !0 }), re(l, () => {
966
- var d;
967
- return (d = e == null ? void 0 : e.onResize) == null ? void 0 : d.call(e);
968
- }), ho(r, ([{ contentRect: d }]) => {
969
- u.value !== d.width && yo(o, () => {
970
- u.value = d.width, s();
960
+ let s = "";
961
+ r.value.style[i] = "1px", l.value = (p = r.value) == null ? void 0 : p.scrollHeight;
962
+ const v = at(e == null ? void 0 : e.styleTarget);
963
+ v ? v.style[i] = `${l.value}px` : s = `${l.value}px`, r.value.style[i] = s;
964
+ }
965
+ return ie([a, r], () => Ae(c), { immediate: !0 }), ie(l, () => {
966
+ var p;
967
+ return (p = e == null ? void 0 : e.onResize) == null ? void 0 : p.call(e);
968
+ }), ho(r, ([{ contentRect: p }]) => {
969
+ u.value !== p.width && yo(o, () => {
970
+ u.value = p.width, c();
971
971
  });
972
- }), e != null && e.watch && re(e.watch, s, { 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
- triggerResize: s
975
+ triggerResize: c
976
976
  };
977
977
  }
978
978
  /*!
979
979
  * tabbable 6.2.0
980
980
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
981
981
  */
982
- var qt = ["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])"], qe = /* @__PURE__ */ qt.join(","), Ft = typeof Element > "u", ve = Ft ? function() {
983
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Fe = !Ft && Element.prototype.getRootNode ? function(e) {
982
+ var Ft = ["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__ */ Ft.join(","), Tt = typeof Element > "u", ve = Tt ? function() {
983
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Te = !Tt && 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) {
@@ -990,34 +990,34 @@ var qt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
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);
992
992
  return i;
993
- }, ko = function(e) {
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
996
  }, Ot = function(e, n, t) {
997
997
  if (Oe(e))
998
998
  return [];
999
- var o = Array.prototype.slice.apply(e.querySelectorAll(qe));
1000
- return n && ve.call(e, qe) && o.unshift(e), o = o.filter(t), o;
999
+ var o = Array.prototype.slice.apply(e.querySelectorAll(Fe));
1000
+ return n && ve.call(e, Fe) && o.unshift(e), o = o.filter(t), o;
1001
1001
  }, Ut = function e(n, t, o) {
1002
1002
  for (var r = [], a = Array.from(n); a.length; ) {
1003
1003
  var i = a.shift();
1004
1004
  if (!Oe(i, !1))
1005
1005
  if (i.tagName === "SLOT") {
1006
- var l = i.assignedElements(), u = l.length ? l : i.children, s = e(u, !0, o);
1007
- o.flatten ? r.push.apply(r, s) : r.push({
1006
+ var l = i.assignedElements(), u = l.length ? l : i.children, c = e(u, !0, o);
1007
+ o.flatten ? r.push.apply(r, c) : r.push({
1008
1008
  scopeParent: i,
1009
- candidates: s
1009
+ candidates: c
1010
1010
  });
1011
1011
  } else {
1012
- var d = ve.call(i, qe);
1013
- d && o.filter(i) && (t || !n.includes(i)) && r.push(i);
1014
- var c = i.shadowRoot || // check for an undisclosed shadow
1015
- typeof o.getShadowRoot == "function" && o.getShadowRoot(i), f = !Oe(c, !1) && (!o.shadowRootFilter || o.shadowRootFilter(i));
1016
- if (c && f) {
1017
- var g = e(c === !0 ? i.children : c.children, !0, o);
1018
- o.flatten ? r.push.apply(r, g) : r.push({
1012
+ var p = ve.call(i, Fe);
1013
+ p && o.filter(i) && (t || !n.includes(i)) && r.push(i);
1014
+ var s = i.shadowRoot || // check for an undisclosed shadow
1015
+ typeof o.getShadowRoot == "function" && o.getShadowRoot(i), v = !Oe(s, !1) && (!o.shadowRootFilter || o.shadowRootFilter(i));
1016
+ if (s && v) {
1017
+ var b = e(s === !0 ? i.children : s.children, !0, o);
1018
+ o.flatten ? r.push.apply(r, b) : r.push({
1019
1019
  scopeParent: i,
1020
- candidates: g
1020
+ candidates: b
1021
1021
  });
1022
1022
  } else
1023
1023
  a.unshift.apply(a, i.children);
@@ -1029,16 +1029,16 @@ var qt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1029
1029
  }, fe = function(e) {
1030
1030
  if (!e)
1031
1031
  throw new Error("No node provided");
1032
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || ko(e)) && !Pt(e) ? 0 : e.tabIndex;
1033
- }, _o = function(e, n) {
1032
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || _o(e)) && !Pt(e) ? 0 : e.tabIndex;
1033
+ }, ko = function(e, n) {
1034
1034
  var t = fe(e);
1035
1035
  return t < 0 && n && !Pt(e) ? 0 : t;
1036
1036
  }, $o = function(e, n) {
1037
1037
  return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
1038
- }, jt = function(e) {
1038
+ }, Gt = function(e) {
1039
1039
  return e.tagName === "INPUT";
1040
1040
  }, Ao = function(e) {
1041
- return jt(e) && e.type === "hidden";
1041
+ return Gt(e) && e.type === "hidden";
1042
1042
  }, xo = function(e) {
1043
1043
  var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(t) {
1044
1044
  return t.tagName === "SUMMARY";
@@ -1051,7 +1051,7 @@ var qt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1051
1051
  }, So = function(e) {
1052
1052
  if (!e.name)
1053
1053
  return !0;
1054
- var n = e.form || Fe(e), t = function(a) {
1054
+ var n = e.form || Te(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")
@@ -1064,17 +1064,17 @@ var qt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1064
1064
  }
1065
1065
  var r = Io(o, e.form);
1066
1066
  return !r || r === e;
1067
- }, Eo = function(e) {
1068
- return jt(e) && e.type === "radio";
1069
1067
  }, Do = function(e) {
1070
- return Eo(e) && !So(e);
1068
+ return Gt(e) && e.type === "radio";
1069
+ }, Eo = function(e) {
1070
+ return Do(e) && !So(e);
1071
1071
  }, Co = function(e) {
1072
- var n, t = e && Fe(e), o = (n = t) === null || n === void 0 ? void 0 : n.host, r = !1;
1072
+ var n, t = e && Te(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
- var u, s, d;
1077
- t = Fe(o), o = (u = t) === null || u === void 0 ? void 0 : u.host, r = !!((s = o) !== null && s !== void 0 && (d = s.ownerDocument) !== null && d !== void 0 && d.contains(o));
1076
+ var u, c, p;
1077
+ t = Te(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 qt = ["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 = Fe(e);
1094
+ var l = e.parentElement, u = Te(e);
1095
1095
  if (l && !l.shadowRoot && o(l) === !0)
1096
1096
  return pt(e);
1097
1097
  e.assignedSlot ? e = e.assignedSlot : !l && u !== e.ownerDocument ? e = u.host : e = l;
@@ -1126,34 +1126,34 @@ var qt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1126
1126
  Oe(n) || Ao(n) || Bo(n, e) || // For a details element with a summary, the summary element gets the focus
1127
1127
  xo(n) || Ro(n));
1128
1128
  }, et = function(e, n) {
1129
- return !(Do(n) || fe(n) < 0 || !Ue(e, n));
1130
- }, Lo = function(e) {
1129
+ return !(Eo(n) || fe(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
- }, Mo = function e(n) {
1133
+ }, Lo = function e(n) {
1134
1134
  var t = [], o = [];
1135
1135
  return n.forEach(function(r, a) {
1136
- var i = !!r.scopeParent, l = i ? r.scopeParent : r, u = _o(l, i), s = i ? e(r.candidates) : l;
1137
- u === 0 ? i ? t.push.apply(t, s) : t.push(l) : o.push({
1136
+ var i = !!r.scopeParent, l = i ? r.scopeParent : r, u = ko(l, i), c = i ? e(r.candidates) : l;
1137
+ u === 0 ? i ? t.push.apply(t, c) : t.push(l) : o.push({
1138
1138
  documentOrder: a,
1139
1139
  tabIndex: u,
1140
1140
  item: r,
1141
1141
  isScope: i,
1142
- content: s
1142
+ content: c
1143
1143
  });
1144
1144
  }), o.sort($o).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
- }, No = function(e, n) {
1147
+ }, Mo = function(e, n) {
1148
1148
  n = n || {};
1149
1149
  var t;
1150
1150
  return n.getShadowRoot ? t = Ut([e], n.includeContainer, {
1151
1151
  filter: et.bind(null, n),
1152
1152
  flatten: !1,
1153
1153
  getShadowRoot: n.getShadowRoot,
1154
- shadowRootFilter: Lo
1155
- }) : t = Ot(e, n.includeContainer, et.bind(null, n)), Mo(t);
1156
- }, To = function(e, n) {
1154
+ shadowRootFilter: qo
1155
+ }) : t = Ot(e, n.includeContainer, et.bind(null, n)), Lo(t);
1156
+ }, No = function(e, n) {
1157
1157
  n = n || {};
1158
1158
  var t;
1159
1159
  return n.getShadowRoot ? t = Ut([e], n.includeContainer, {
@@ -1164,11 +1164,11 @@ var qt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1164
1164
  }, be = function(e, n) {
1165
1165
  if (n = n || {}, !e)
1166
1166
  throw new Error("No node provided");
1167
- return ve.call(e, qe) === !1 ? !1 : et(n, e);
1168
- }, qo = /* @__PURE__ */ qt.concat("iframe").join(","), ze = function(e, n) {
1167
+ return ve.call(e, Fe) === !1 ? !1 : et(n, e);
1168
+ }, Fo = /* @__PURE__ */ Ft.concat("iframe").join(","), ze = function(e, n) {
1169
1169
  if (n = n || {}, !e)
1170
1170
  throw new Error("No node provided");
1171
- return ve.call(e, qo) === !1 ? !1 : Ue(n, e);
1171
+ return ve.call(e, Fo) === !1 ? !1 : Ue(n, e);
1172
1172
  };
1173
1173
  /*!
1174
1174
  * focus-trap 7.6.4
@@ -1179,7 +1179,7 @@ function tt(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 Fo(e) {
1182
+ function To(e) {
1183
1183
  if (Array.isArray(e)) return tt(e);
1184
1184
  }
1185
1185
  function Oo(e, n, t) {
@@ -1218,10 +1218,10 @@ function vt(e) {
1218
1218
  }
1219
1219
  return e;
1220
1220
  }
1221
- function jo(e) {
1222
- return Fo(e) || Uo(e) || Vo(e) || Po();
1221
+ function Go(e) {
1222
+ return To(e) || Uo(e) || Vo(e) || Po();
1223
1223
  }
1224
- function Go(e, n) {
1224
+ function jo(e, n) {
1225
1225
  if (typeof e != "object" || !e) return e;
1226
1226
  var t = e[Symbol.toPrimitive];
1227
1227
  if (t !== void 0) {
@@ -1232,7 +1232,7 @@ function Go(e, n) {
1232
1232
  return (n === "string" ? String : Number)(e);
1233
1233
  }
1234
1234
  function zo(e) {
1235
- var n = Go(e, "string");
1235
+ var n = jo(e, "string");
1236
1236
  return typeof n == "symbol" ? n : n + "";
1237
1237
  }
1238
1238
  function Vo(e, n) {
@@ -1317,74 +1317,74 @@ var mt = {
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(p, m, k) {
1321
- return p && p[m] !== void 0 ? p[m] : r[k || m];
1322
- }, u = function(p, m) {
1320
+ }, i, l = function(d, m, k) {
1321
+ return d && d[m] !== void 0 ? d[m] : r[k || m];
1322
+ }, u = function(d, m) {
1323
1323
  var k = typeof (m == null ? void 0 : m.composedPath) == "function" ? m.composedPath() : void 0;
1324
- return a.containerGroups.findIndex(function(B) {
1325
- var I = B.container, P = B.tabbableNodes;
1326
- return I.contains(p) || // fall back to explicit tabbable search which will take into consideration any
1324
+ return a.containerGroups.findIndex(function(q) {
1325
+ var S = q.container, O = q.tabbableNodes;
1326
+ return S.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
- (k == null ? void 0 : k.includes(I)) || P.find(function(D) {
1331
- return D === p;
1330
+ (k == null ? void 0 : k.includes(S)) || O.find(function(C) {
1331
+ return C === d;
1332
1332
  });
1333
1333
  });
1334
- }, s = function(p) {
1335
- var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = m.hasFallback, B = k === void 0 ? !1 : k, I = m.params, P = I === void 0 ? [] : I, D = r[p];
1336
- if (typeof D == "function" && (D = D.apply(void 0, jo(P))), D === !0 && (D = void 0), !D) {
1337
- if (D === void 0 || D === !1)
1338
- return D;
1339
- throw new Error("`".concat(p, "` was specified but was not a node, or did not return a node"));
1340
- }
1341
- var z = D;
1342
- if (typeof D == "string") {
1334
+ }, c = function(d) {
1335
+ var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = m.hasFallback, q = k === void 0 ? !1 : k, S = m.params, O = S === void 0 ? [] : S, C = r[d];
1336
+ if (typeof C == "function" && (C = C.apply(void 0, Go(O))), C === !0 && (C = void 0), !C) {
1337
+ if (C === void 0 || C === !1)
1338
+ return C;
1339
+ throw new Error("`".concat(d, "` was specified but was not a node, or did not return a node"));
1340
+ }
1341
+ var J = C;
1342
+ if (typeof C == "string") {
1343
1343
  try {
1344
- z = t.querySelector(D);
1345
- } catch (b) {
1346
- throw new Error("`".concat(p, '` appears to be an invalid selector; error="').concat(b.message, '"'));
1344
+ J = t.querySelector(C);
1345
+ } catch (h) {
1346
+ throw new Error("`".concat(d, '` appears to be an invalid selector; error="').concat(h.message, '"'));
1347
1347
  }
1348
- if (!z && !B)
1349
- throw new Error("`".concat(p, "` as selector refers to no known node"));
1348
+ if (!J && !q)
1349
+ throw new Error("`".concat(d, "` as selector refers to no known node"));
1350
1350
  }
1351
- return z;
1352
- }, d = function() {
1353
- var p = s("initialFocus", {
1351
+ return J;
1352
+ }, p = function() {
1353
+ var d = c("initialFocus", {
1354
1354
  hasFallback: !0
1355
1355
  });
1356
- if (p === !1)
1356
+ if (d === !1)
1357
1357
  return !1;
1358
- if (p === void 0 || p && !ze(p, r.tabbableOptions))
1358
+ if (d === void 0 || d && !ze(d, r.tabbableOptions))
1359
1359
  if (u(t.activeElement) >= 0)
1360
- p = t.activeElement;
1360
+ d = t.activeElement;
1361
1361
  else {
1362
1362
  var m = a.tabbableGroups[0], k = m && m.firstTabbableNode;
1363
- p = k || s("fallbackFocus");
1363
+ d = k || c("fallbackFocus");
1364
1364
  }
1365
- else p === null && (p = s("fallbackFocus"));
1366
- if (!p)
1365
+ else d === null && (d = c("fallbackFocus"));
1366
+ if (!d)
1367
1367
  throw new Error("Your focus-trap needs to have at least one focusable element");
1368
- return p;
1369
- }, c = function() {
1370
- if (a.containerGroups = a.containers.map(function(p) {
1371
- var m = No(p, r.tabbableOptions), k = To(p, r.tabbableOptions), B = m.length > 0 ? m[0] : void 0, I = m.length > 0 ? m[m.length - 1] : void 0, P = k.find(function(b) {
1372
- return be(b);
1373
- }), D = k.slice().reverse().find(function(b) {
1374
- return be(b);
1375
- }), z = !!m.find(function(b) {
1376
- return fe(b) > 0;
1368
+ return d;
1369
+ }, s = function() {
1370
+ if (a.containerGroups = a.containers.map(function(d) {
1371
+ var m = Mo(d, r.tabbableOptions), k = No(d, r.tabbableOptions), q = m.length > 0 ? m[0] : void 0, S = m.length > 0 ? m[m.length - 1] : void 0, O = k.find(function(h) {
1372
+ return be(h);
1373
+ }), C = k.slice().reverse().find(function(h) {
1374
+ return be(h);
1375
+ }), J = !!m.find(function(h) {
1376
+ return fe(h) > 0;
1377
1377
  });
1378
1378
  return {
1379
- container: p,
1379
+ container: d,
1380
1380
  tabbableNodes: m,
1381
1381
  focusableNodes: k,
1382
1382
  /** True if at least one node with positive `tabindex` was found in this container. */
1383
- posTabIndexesFound: z,
1383
+ posTabIndexesFound: J,
1384
1384
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
1385
- firstTabbableNode: B,
1385
+ firstTabbableNode: q,
1386
1386
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
1387
- lastTabbableNode: I,
1387
+ lastTabbableNode: S,
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 mt = {
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: P,
1396
+ firstDomTabbableNode: O,
1397
1397
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
1398
- lastDomTabbableNode: D,
1398
+ lastDomTabbableNode: C,
1399
1399
  /**
1400
1400
  * Finds the __tabbable__ node that follows the given node in the specified direction,
1401
1401
  * in this container, if any.
@@ -1404,76 +1404,76 @@ var mt = {
1404
1404
  * in reverse.
1405
1405
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
1406
1406
  */
1407
- nextTabbableNode: function(b) {
1408
- var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, C = m.indexOf(b);
1409
- return C < 0 ? _ ? k.slice(k.indexOf(b) + 1).find(function(q) {
1410
- return be(q);
1411
- }) : k.slice(0, k.indexOf(b)).reverse().find(function(q) {
1412
- return be(q);
1413
- }) : m[C + (_ ? 1 : -1)];
1407
+ nextTabbableNode: function(h) {
1408
+ var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, M = m.indexOf(h);
1409
+ return M < 0 ? A ? k.slice(k.indexOf(h) + 1).find(function(F) {
1410
+ return be(F);
1411
+ }) : k.slice(0, k.indexOf(h)).reverse().find(function(F) {
1412
+ return be(F);
1413
+ }) : m[M + (A ? 1 : -1)];
1414
1414
  }
1415
1415
  };
1416
- }), a.tabbableGroups = a.containerGroups.filter(function(p) {
1417
- return p.tabbableNodes.length > 0;
1418
- }), a.tabbableGroups.length <= 0 && !s("fallbackFocus"))
1416
+ }), a.tabbableGroups = a.containerGroups.filter(function(d) {
1417
+ return d.tabbableNodes.length > 0;
1418
+ }), a.tabbableGroups.length <= 0 && !c("fallbackFocus"))
1419
1419
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
1420
- if (a.containerGroups.find(function(p) {
1421
- return p.posTabIndexesFound;
1420
+ if (a.containerGroups.find(function(d) {
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
- }, f = function(p) {
1425
- var m = p.activeElement;
1424
+ }, v = function(d) {
1425
+ var m = d.activeElement;
1426
1426
  if (m)
1427
- return m.shadowRoot && m.shadowRoot.activeElement !== null ? f(m.shadowRoot) : m;
1428
- }, g = function(p) {
1429
- if (p !== !1 && p !== f(document)) {
1430
- if (!p || !p.focus) {
1431
- g(d());
1427
+ return m.shadowRoot && m.shadowRoot.activeElement !== null ? v(m.shadowRoot) : m;
1428
+ }, b = function(d) {
1429
+ if (d !== !1 && d !== v(document)) {
1430
+ if (!d || !d.focus) {
1431
+ b(p());
1432
1432
  return;
1433
1433
  }
1434
- p.focus({
1434
+ d.focus({
1435
1435
  preventScroll: !!r.preventScroll
1436
- }), a.mostRecentlyFocusedNode = p, Ho(p) && p.select();
1436
+ }), a.mostRecentlyFocusedNode = d, Ho(d) && d.select();
1437
1437
  }
1438
- }, y = function(p) {
1439
- var m = s("setReturnFocus", {
1440
- params: [p]
1438
+ }, g = function(d) {
1439
+ var m = c("setReturnFocus", {
1440
+ params: [d]
1441
1441
  });
1442
- return m || (m === !1 ? !1 : p);
1443
- }, A = function(p) {
1444
- var m = p.target, k = p.event, B = p.isBackward, I = B === void 0 ? !1 : B;
1445
- m = m || Be(k), c();
1446
- var P = null;
1442
+ return m || (m === !1 ? !1 : d);
1443
+ }, _ = function(d) {
1444
+ var m = d.target, k = d.event, q = d.isBackward, S = q === void 0 ? !1 : q;
1445
+ m = m || Be(k), s();
1446
+ var O = null;
1447
1447
  if (a.tabbableGroups.length > 0) {
1448
- var D = u(m, k), z = D >= 0 ? a.containerGroups[D] : void 0;
1449
- if (D < 0)
1450
- I ? P = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : P = a.tabbableGroups[0].firstTabbableNode;
1451
- else if (I) {
1452
- var b = a.tabbableGroups.findIndex(function(ge) {
1453
- var ke = ge.firstTabbableNode;
1454
- return m === ke;
1448
+ var C = u(m, k), J = C >= 0 ? a.containerGroups[C] : void 0;
1449
+ if (C < 0)
1450
+ S ? O = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : O = a.tabbableGroups[0].firstTabbableNode;
1451
+ else if (S) {
1452
+ var h = a.tabbableGroups.findIndex(function(ge) {
1453
+ var _e = ge.firstTabbableNode;
1454
+ return m === _e;
1455
1455
  });
1456
- if (b < 0 && (z.container === m || ze(m, r.tabbableOptions) && !be(m, r.tabbableOptions) && !z.nextTabbableNode(m, !1)) && (b = D), b >= 0) {
1457
- var _ = b === 0 ? a.tabbableGroups.length - 1 : b - 1, C = a.tabbableGroups[_];
1458
- P = fe(m) >= 0 ? C.lastTabbableNode : C.lastDomTabbableNode;
1459
- } else xe(k) || (P = z.nextTabbableNode(m, !1));
1456
+ if (h < 0 && (J.container === m || ze(m, r.tabbableOptions) && !be(m, r.tabbableOptions) && !J.nextTabbableNode(m, !1)) && (h = C), h >= 0) {
1457
+ var A = h === 0 ? a.tabbableGroups.length - 1 : h - 1, M = a.tabbableGroups[A];
1458
+ O = fe(m) >= 0 ? M.lastTabbableNode : M.lastDomTabbableNode;
1459
+ } else xe(k) || (O = J.nextTabbableNode(m, !1));
1460
1460
  } else {
1461
- var q = a.tabbableGroups.findIndex(function(ge) {
1462
- var ke = ge.lastTabbableNode;
1463
- return m === ke;
1461
+ var F = a.tabbableGroups.findIndex(function(ge) {
1462
+ var _e = ge.lastTabbableNode;
1463
+ return m === _e;
1464
1464
  });
1465
- if (q < 0 && (z.container === m || ze(m, r.tabbableOptions) && !be(m, r.tabbableOptions) && !z.nextTabbableNode(m)) && (q = D), q >= 0) {
1466
- var ne = q === a.tabbableGroups.length - 1 ? 0 : q + 1, ie = a.tabbableGroups[ne];
1467
- P = fe(m) >= 0 ? ie.firstTabbableNode : ie.firstDomTabbableNode;
1468
- } else xe(k) || (P = z.nextTabbableNode(m));
1465
+ if (F < 0 && (J.container === m || ze(m, r.tabbableOptions) && !be(m, r.tabbableOptions) && !J.nextTabbableNode(m)) && (F = C), F >= 0) {
1466
+ var oe = F === a.tabbableGroups.length - 1 ? 0 : F + 1, le = a.tabbableGroups[oe];
1467
+ O = fe(m) >= 0 ? le.firstTabbableNode : le.firstDomTabbableNode;
1468
+ } else xe(k) || (O = J.nextTabbableNode(m));
1469
1469
  }
1470
1470
  } else
1471
- P = s("fallbackFocus");
1472
- return P;
1473
- }, N = function(p) {
1474
- var m = Be(p);
1475
- if (!(u(m, p) >= 0)) {
1476
- if ($e(r.clickOutsideDeactivates, p)) {
1471
+ O = c("fallbackFocus");
1472
+ return O;
1473
+ }, B = function(d) {
1474
+ var m = Be(d);
1475
+ if (!(u(m, d) >= 0)) {
1476
+ if ($e(r.clickOutsideDeactivates, d)) {
1477
1477
  i.deactivate({
1478
1478
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
1479
1479
  // which will result in the outside click setting focus to the node
@@ -1485,86 +1485,86 @@ var mt = {
1485
1485
  });
1486
1486
  return;
1487
1487
  }
1488
- $e(r.allowOutsideClick, p) || p.preventDefault();
1488
+ $e(r.allowOutsideClick, d) || d.preventDefault();
1489
1489
  }
1490
- }, te = function(p) {
1491
- var m = Be(p), k = u(m, p) >= 0;
1490
+ }, W = function(d) {
1491
+ var m = Be(d), k = u(m, d) >= 0;
1492
1492
  if (k || m instanceof Document)
1493
1493
  k && (a.mostRecentlyFocusedNode = m);
1494
1494
  else {
1495
- p.stopImmediatePropagation();
1496
- var B, I = !0;
1495
+ d.stopImmediatePropagation();
1496
+ var q, S = !0;
1497
1497
  if (a.mostRecentlyFocusedNode)
1498
1498
  if (fe(a.mostRecentlyFocusedNode) > 0) {
1499
- var P = u(a.mostRecentlyFocusedNode), D = a.containerGroups[P].tabbableNodes;
1500
- if (D.length > 0) {
1501
- var z = D.findIndex(function(b) {
1502
- return b === a.mostRecentlyFocusedNode;
1499
+ var O = u(a.mostRecentlyFocusedNode), C = a.containerGroups[O].tabbableNodes;
1500
+ if (C.length > 0) {
1501
+ var J = C.findIndex(function(h) {
1502
+ return h === a.mostRecentlyFocusedNode;
1503
1503
  });
1504
- z >= 0 && (r.isKeyForward(a.recentNavEvent) ? z + 1 < D.length && (B = D[z + 1], I = !1) : z - 1 >= 0 && (B = D[z - 1], I = !1));
1504
+ J >= 0 && (r.isKeyForward(a.recentNavEvent) ? J + 1 < C.length && (q = C[J + 1], S = !1) : J - 1 >= 0 && (q = C[J - 1], S = !1));
1505
1505
  }
1506
1506
  } else
1507
- a.containerGroups.some(function(b) {
1508
- return b.tabbableNodes.some(function(_) {
1509
- return fe(_) > 0;
1507
+ a.containerGroups.some(function(h) {
1508
+ return h.tabbableNodes.some(function(A) {
1509
+ return fe(A) > 0;
1510
1510
  });
1511
- }) || (I = !1);
1511
+ }) || (S = !1);
1512
1512
  else
1513
- I = !1;
1514
- I && (B = A({
1513
+ S = !1;
1514
+ S && (q = _({
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(B || a.mostRecentlyFocusedNode || d());
1519
+ })), b(q || a.mostRecentlyFocusedNode || p());
1520
1520
  }
1521
1521
  a.recentNavEvent = void 0;
1522
- }, H = function(p) {
1522
+ }, G = function(d) {
1523
1523
  var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1524
- a.recentNavEvent = p;
1525
- var k = A({
1526
- event: p,
1524
+ a.recentNavEvent = d;
1525
+ var k = _({
1526
+ event: d,
1527
1527
  isBackward: m
1528
1528
  });
1529
- k && (xe(p) && p.preventDefault(), g(k));
1530
- }, Q = function(p) {
1531
- (r.isKeyForward(p) || r.isKeyBackward(p)) && H(p, r.isKeyBackward(p));
1532
- }, L = function(p) {
1533
- Zo(p) && $e(r.escapeDeactivates, p) !== !1 && (p.preventDefault(), i.deactivate());
1534
- }, T = function(p) {
1535
- var m = Be(p);
1536
- u(m, p) >= 0 || $e(r.clickOutsideDeactivates, p) || $e(r.allowOutsideClick, p) || (p.preventDefault(), p.stopImmediatePropagation());
1537
- }, O = function() {
1529
+ k && (xe(d) && d.preventDefault(), b(k));
1530
+ }, j = function(d) {
1531
+ (r.isKeyForward(d) || r.isKeyBackward(d)) && G(d, r.isKeyBackward(d));
1532
+ }, z = function(d) {
1533
+ Zo(d) && $e(r.escapeDeactivates, d) !== !1 && (d.preventDefault(), i.deactivate());
1534
+ }, V = function(d) {
1535
+ var m = Be(d);
1536
+ u(m, d) >= 0 || $e(r.clickOutsideDeactivates, d) || $e(r.allowOutsideClick, d) || (d.preventDefault(), d.stopImmediatePropagation());
1537
+ }, x = function() {
1538
1538
  if (a.active)
1539
1539
  return mt.activateTrap(o, i), a.delayInitialFocusTimer = r.delayInitialFocus ? gt(function() {
1540
- g(d());
1541
- }) : g(d()), t.addEventListener("focusin", te, !0), t.addEventListener("mousedown", N, {
1540
+ b(p());
1541
+ }) : b(p()), t.addEventListener("focusin", W, !0), t.addEventListener("mousedown", B, {
1542
1542
  capture: !0,
1543
1543
  passive: !1
1544
- }), t.addEventListener("touchstart", N, {
1544
+ }), t.addEventListener("touchstart", B, {
1545
1545
  capture: !0,
1546
1546
  passive: !1
1547
- }), t.addEventListener("click", T, {
1547
+ }), t.addEventListener("click", V, {
1548
1548
  capture: !0,
1549
1549
  passive: !1
1550
- }), t.addEventListener("keydown", Q, {
1550
+ }), t.addEventListener("keydown", j, {
1551
1551
  capture: !0,
1552
1552
  passive: !1
1553
- }), t.addEventListener("keydown", L), i;
1554
- }, Y = function() {
1553
+ }), t.addEventListener("keydown", z), i;
1554
+ }, Z = function() {
1555
1555
  if (a.active)
1556
- return t.removeEventListener("focusin", te, !0), t.removeEventListener("mousedown", N, !0), t.removeEventListener("touchstart", N, !0), t.removeEventListener("click", T, !0), t.removeEventListener("keydown", Q, !0), t.removeEventListener("keydown", L), i;
1557
- }, V = function(p) {
1558
- var m = p.some(function(k) {
1559
- var B = Array.from(k.removedNodes);
1560
- return B.some(function(I) {
1561
- return I === a.mostRecentlyFocusedNode;
1556
+ return t.removeEventListener("focusin", W, !0), t.removeEventListener("mousedown", B, !0), t.removeEventListener("touchstart", B, !0), t.removeEventListener("click", V, !0), t.removeEventListener("keydown", j, !0), t.removeEventListener("keydown", z), i;
1557
+ }, U = function(d) {
1558
+ var m = d.some(function(k) {
1559
+ var q = Array.from(k.removedNodes);
1560
+ return q.some(function(S) {
1561
+ return S === a.mostRecentlyFocusedNode;
1562
1562
  });
1563
1563
  });
1564
- m && g(d());
1565
- }, X = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(V) : void 0, K = function() {
1566
- X && (X.disconnect(), a.active && !a.paused && a.containers.map(function(p) {
1567
- X.observe(p, {
1564
+ m && b(p());
1565
+ }, ee = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(U) : void 0, te = function() {
1566
+ ee && (ee.disconnect(), a.active && !a.paused && a.containers.map(function(d) {
1567
+ ee.observe(d, {
1568
1568
  subtree: !0,
1569
1569
  childList: !0
1570
1570
  });
@@ -1577,45 +1577,45 @@ var mt = {
1577
1577
  get paused() {
1578
1578
  return a.paused;
1579
1579
  },
1580
- activate: function(p) {
1580
+ activate: function(d) {
1581
1581
  if (a.active)
1582
1582
  return this;
1583
- var m = l(p, "onActivate"), k = l(p, "onPostActivate"), B = l(p, "checkCanFocusTrap");
1584
- B || c(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = t.activeElement, m == null || m();
1585
- var I = function() {
1586
- B && c(), O(), K(), k == null || k();
1583
+ var m = l(d, "onActivate"), k = l(d, "onPostActivate"), q = l(d, "checkCanFocusTrap");
1584
+ q || s(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = t.activeElement, m == null || m();
1585
+ var S = function() {
1586
+ q && s(), x(), te(), k == null || k();
1587
1587
  };
1588
- return B ? (B(a.containers.concat()).then(I, I), this) : (I(), this);
1588
+ return q ? (q(a.containers.concat()).then(S, S), this) : (S(), this);
1589
1589
  },
1590
- deactivate: function(p) {
1590
+ deactivate: function(d) {
1591
1591
  if (!a.active)
1592
1592
  return this;
1593
1593
  var m = vt({
1594
1594
  onDeactivate: r.onDeactivate,
1595
1595
  onPostDeactivate: r.onPostDeactivate,
1596
1596
  checkCanReturnFocus: r.checkCanReturnFocus
1597
- }, p);
1598
- clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, Y(), a.active = !1, a.paused = !1, K(), mt.deactivateTrap(o, i);
1599
- var k = l(m, "onDeactivate"), B = l(m, "onPostDeactivate"), I = l(m, "checkCanReturnFocus"), P = l(m, "returnFocus", "returnFocusOnDeactivate");
1597
+ }, d);
1598
+ clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, Z(), a.active = !1, a.paused = !1, te(), mt.deactivateTrap(o, i);
1599
+ var k = l(m, "onDeactivate"), q = l(m, "onPostDeactivate"), S = l(m, "checkCanReturnFocus"), O = l(m, "returnFocus", "returnFocusOnDeactivate");
1600
1600
  k == null || k();
1601
- var D = function() {
1601
+ var C = function() {
1602
1602
  gt(function() {
1603
- P && g(y(a.nodeFocusedBeforeActivation)), B == null || B();
1603
+ O && b(g(a.nodeFocusedBeforeActivation)), q == null || q();
1604
1604
  });
1605
1605
  };
1606
- return P && I ? (I(y(a.nodeFocusedBeforeActivation)).then(D, D), this) : (D(), this);
1606
+ return O && S ? (S(g(a.nodeFocusedBeforeActivation)).then(C, C), this) : (C(), this);
1607
1607
  },
1608
- pause: function(p) {
1609
- return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, p)) : this;
1608
+ pause: function(d) {
1609
+ return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, d)) : this;
1610
1610
  },
1611
- unpause: function(p) {
1612
- return a.active ? (a.manuallyPaused = !1, o[o.length - 1] !== this ? this : this._setPausedState(!1, p)) : this;
1611
+ unpause: function(d) {
1612
+ return a.active ? (a.manuallyPaused = !1, o[o.length - 1] !== this ? this : this._setPausedState(!1, d)) : this;
1613
1613
  },
1614
- updateContainerElements: function(p) {
1615
- var m = [].concat(p).filter(Boolean);
1614
+ updateContainerElements: function(d) {
1615
+ var m = [].concat(d).filter(Boolean);
1616
1616
  return a.containers = m.map(function(k) {
1617
1617
  return typeof k == "string" ? t.querySelector(k) : k;
1618
- }), a.active && c(), K(), this;
1618
+ }), a.active && s(), te(), this;
1619
1619
  }
1620
1620
  }, Object.defineProperties(i, {
1621
1621
  _isManuallyPaused: {
@@ -1624,28 +1624,28 @@ var mt = {
1624
1624
  }
1625
1625
  },
1626
1626
  _setPausedState: {
1627
- value: function(p, m) {
1628
- if (a.paused === p)
1627
+ value: function(d, m) {
1628
+ if (a.paused === d)
1629
1629
  return this;
1630
- if (a.paused = p, p) {
1631
- var k = l(m, "onPause"), B = l(m, "onPostPause");
1632
- k == null || k(), Y(), K(), B == null || B();
1630
+ if (a.paused = d, d) {
1631
+ var k = l(m, "onPause"), q = l(m, "onPostPause");
1632
+ k == null || k(), Z(), te(), q == null || q();
1633
1633
  } else {
1634
- var I = l(m, "onUnpause"), P = l(m, "onPostUnpause");
1635
- I == null || I(), c(), O(), K(), P == null || P();
1634
+ var S = l(m, "onUnpause"), O = l(m, "onPostUnpause");
1635
+ S == null || S(), s(), x(), te(), O == null || O();
1636
1636
  }
1637
1637
  return this;
1638
1638
  }
1639
1639
  }
1640
1640
  }), i.updateContainerElements(e), i;
1641
1641
  };
1642
- const Xo = /* @__PURE__ */ U({
1642
+ const Xo = /* @__PURE__ */ T({
1643
1643
  name: "UseFocusTrap",
1644
1644
  props: ["as", "options"],
1645
1645
  setup(e, { slots: n }) {
1646
1646
  let t;
1647
- const o = M(), r = () => t && t.activate(), a = () => t && t.deactivate();
1648
- return re(
1647
+ const o = N(), r = () => t && t.activate(), a = () => t && t.deactivate();
1648
+ return ie(
1649
1649
  () => Ke(o),
1650
1650
  (i) => {
1651
1651
  i && (t = Yo(i, e.options || {}), r());
@@ -1656,7 +1656,7 @@ const Xo = /* @__PURE__ */ U({
1656
1656
  return Qe(e.as || "div", { ref: o }, n.default());
1657
1657
  };
1658
1658
  }
1659
- }), Ko = /* @__PURE__ */ U({
1659
+ }), Ko = /* @__PURE__ */ T({
1660
1660
  __name: "QFocusTrap",
1661
1661
  props: /* @__PURE__ */ ue({
1662
1662
  options: {},
@@ -1667,13 +1667,13 @@ const Xo = /* @__PURE__ */ U({
1667
1667
  }),
1668
1668
  emits: ["update:disabled"],
1669
1669
  setup(e) {
1670
- const n = e, t = Ee(e, "disabled");
1671
- return (o, r) => t.value ? R(o.$slots, "default", { key: 0 }) : (h(), G(
1672
- v(Xo),
1670
+ const n = e, t = De(e, "disabled");
1671
+ return (o, r) => t.value ? L(o.$slots, "default", { key: 0 }) : (y(), H(
1672
+ f(Xo),
1673
1673
  Se(se({ key: 1 }, n)),
1674
1674
  {
1675
1675
  default: E(() => [
1676
- R(o.$slots, "default")
1676
+ L(o.$slots, "default")
1677
1677
  ]),
1678
1678
  _: 3
1679
1679
  /* FORWARDED */
@@ -1682,7 +1682,7 @@ const Xo = /* @__PURE__ */ U({
1682
1682
  /* FULL_PROPS */
1683
1683
  ));
1684
1684
  }
1685
- }), ea = J(Ko), he = "data-scroll-locked", Ve = "right-scroll-bar-position", He = "width-before-scroll-bar", ta = "with-scroll-bars-hidden", na = "--removed-body-scroll-bar-size", oa = {
1685
+ }), ea = X(Ko), he = "data-scroll-locked", Ve = "right-scroll-bar-position", He = "width-before-scroll-bar", ta = "with-scroll-bars-hidden", na = "--removed-body-scroll-bar-size", oa = {
1686
1686
  left: 0,
1687
1687
  top: 0,
1688
1688
  right: 0,
@@ -1721,7 +1721,7 @@ const ca = () => {
1721
1721
  e--, !e && n && ((t = n.parentNode) == null || t.removeChild(n), n = null);
1722
1722
  }
1723
1723
  };
1724
- }, ua = /* @__PURE__ */ U({
1724
+ }, ua = /* @__PURE__ */ T({
1725
1725
  __name: "QRemoveScrollBar",
1726
1726
  props: {
1727
1727
  noRelative: { type: Boolean },
@@ -1732,49 +1732,49 @@ const ca = () => {
1732
1732
  const n = e, t = ca(), o = () => {
1733
1733
  const a = parseInt(document.body.getAttribute(he) || "0", 10);
1734
1734
  return isFinite(a) ? a : 0;
1735
- }, r = ({ left: a, top: i, right: l, gap: u }, s, d = "margin", c) => `
1735
+ }, r = ({ left: a, top: i, right: l, gap: u }, c, p = "margin", s) => `
1736
1736
  .${ta} {
1737
- overflow: hidden ${c};
1738
- padding-right: ${u}px ${c};
1737
+ overflow: hidden ${s};
1738
+ padding-right: ${u}px ${s};
1739
1739
  }
1740
1740
  body[${he}] {
1741
- overflow: hidden ${c};
1741
+ overflow: hidden ${s};
1742
1742
  overscroll-behavior: contain;
1743
1743
  ${[
1744
- s && `position: relative ${c};`,
1745
- d === "margin" && `
1744
+ c && `position: relative ${s};`,
1745
+ p === "margin" && `
1746
1746
  padding-left: ${a}px;
1747
1747
  padding-top: ${i}px;
1748
1748
  padding-right: ${l}px;
1749
1749
  margin-left:0;
1750
1750
  margin-top:0;
1751
- margin-right: ${u}px ${c};
1751
+ margin-right: ${u}px ${s};
1752
1752
  `,
1753
- d === "padding" && `padding-right: ${u}px ${c};`
1753
+ p === "padding" && `padding-right: ${u}px ${s};`
1754
1754
  ].filter(Boolean).join("")}
1755
1755
  }
1756
1756
 
1757
1757
  .${Ve} {
1758
- right: ${u}px ${c};
1758
+ right: ${u}px ${s};
1759
1759
  }
1760
1760
 
1761
1761
  .${He} {
1762
- margin-right: ${u}px ${c};
1762
+ margin-right: ${u}px ${s};
1763
1763
  }
1764
1764
 
1765
1765
  .${Ve} .${Ve} {
1766
- right: 0 ${c};
1766
+ right: 0 ${s};
1767
1767
  }
1768
1768
 
1769
1769
  .${He} .${He} {
1770
- margin-right: 0 ${c};
1770
+ margin-right: 0 ${s};
1771
1771
  }
1772
1772
 
1773
1773
  body[${he}] {
1774
1774
  ${na}: ${u}px;
1775
1775
  }
1776
1776
  `;
1777
- return De(() => {
1777
+ return Ee(() => {
1778
1778
  document.body.setAttribute(he, (o() + 1).toString());
1779
1779
  const a = ra(n.gapMode);
1780
1780
  t.add(
@@ -1783,18 +1783,18 @@ const ca = () => {
1783
1783
  }), xt(() => {
1784
1784
  const a = o() - 1;
1785
1785
  a <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, a.toString()), t.remove();
1786
- }), (a, i) => R(a.$slots, "default");
1786
+ }), (a, i) => L(a.$slots, "default");
1787
1787
  }
1788
- }), da = J(ua);
1788
+ }), da = X(ua);
1789
1789
  function pa(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(), s = t == null ? void 0 : t.getBoundingClientRect(), d = fa(l, u, i, r), c = ha(l, u, d), f = ma(c, d, r), g = ga(f, d, a), y = va(g, u, d);
1791
- let A;
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 = fa(l, u, i, r), s = ha(l, u, p), v = ma(s, p, r), b = ga(v, p, a), g = va(b, u, p);
1791
+ let _;
1792
1792
  if (o != null && o.arrow) {
1793
- if (!s)
1793
+ if (!c)
1794
1794
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
1795
- A = ba(y, l, u, s, d);
1795
+ _ = ba(g, l, u, c, p);
1796
1796
  }
1797
- return { overlayCoords: y, arrowCoords: A, placement: d };
1797
+ return { overlayCoords: g, arrowCoords: _, placement: p };
1798
1798
  }
1799
1799
  function fa(e, n, t, o) {
1800
1800
  const r = bt(e, n, t, o);
@@ -1812,7 +1812,7 @@ function fa(e, n, t, o) {
1812
1812
  );
1813
1813
  if (ht(l))
1814
1814
  return t;
1815
- const u = ka(t);
1815
+ const u = _a(t);
1816
1816
  return u ? `${i}-${u}` : i;
1817
1817
  }
1818
1818
  return t;
@@ -1871,13 +1871,13 @@ function ha(e, n, t) {
1871
1871
  }
1872
1872
  if (!r)
1873
1873
  return l;
1874
- const u = Pe(t) === "y" ? "height" : "width", s = Pe(t), d = e[u] / 2 - n[u] / 2;
1874
+ const u = Pe(t) === "y" ? "height" : "width", c = Pe(t), p = e[u] / 2 - n[u] / 2;
1875
1875
  switch (r) {
1876
1876
  case "start":
1877
- l[s] -= d;
1877
+ l[c] -= p;
1878
1878
  break;
1879
1879
  case "end":
1880
- l[s] += d;
1880
+ l[c] += p;
1881
1881
  break;
1882
1882
  default:
1883
1883
  throw new Error(`[Quidgest UI] Invalid alignment value: ${r}`);
@@ -1919,17 +1919,17 @@ function we(e) {
1919
1919
  const [n] = e.split("-");
1920
1920
  return n;
1921
1921
  }
1922
- function ka(e) {
1922
+ function _a(e) {
1923
1923
  const [, n] = e.split("-");
1924
1924
  return n;
1925
1925
  }
1926
1926
  function ht(e) {
1927
1927
  return e < 0;
1928
1928
  }
1929
- function _a(e) {
1929
+ function ka(e) {
1930
1930
  return typeof e == "string" ? document.querySelector(e) : e;
1931
1931
  }
1932
- const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
1932
+ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
1933
1933
  inheritAttrs: !1,
1934
1934
  __name: "QOverlay",
1935
1935
  props: /* @__PURE__ */ ue({
@@ -1961,9 +1961,9 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
1961
1961
  }),
1962
1962
  emits: /* @__PURE__ */ ue(["enter", "leave"], ["update:modelValue"]),
1963
1963
  setup(e, { emit: n }) {
1964
- const t = e, o = n, r = Ee(e, "modelValue"), { class: a } = Bt(), i = w(() => [
1964
+ const t = e, o = n, r = De(e, "modelValue"), { class: a } = Bt(), i = w(() => [
1965
1965
  "q-overlay",
1966
- `q-overlay--${we(c.placement)}`,
1966
+ `q-overlay--${we(s.placement)}`,
1967
1967
  a.value,
1968
1968
  {
1969
1969
  "q-overlay--independent": l.value,
@@ -1971,37 +1971,37 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
1971
1971
  "q-overlay--center": t.centerVertically
1972
1972
  },
1973
1973
  t.class
1974
- ]), l = w(() => t.anchor === void 0), u = w(() => r.value && !t.nonModal), s = w(() => (r.value || c.animating) && t.scrollLock), d = w(() => !t.inline && (r.value || c.animating)), c = Ye({
1974
+ ]), l = w(() => t.anchor === void 0), u = w(() => r.value && !t.nonModal), c = w(() => (r.value || s.animating) && t.scrollLock), p = w(() => !t.inline && (r.value || s.animating)), s = Ye({
1975
1975
  animating: !1,
1976
1976
  top: 0,
1977
1977
  left: 0,
1978
1978
  width: 0,
1979
1979
  placement: t.placement
1980
- }), f = Ye({
1980
+ }), v = Ye({
1981
1981
  top: void 0,
1982
1982
  left: void 0,
1983
1983
  hidden: !0
1984
1984
  });
1985
- re(r, k);
1986
- const g = w(() => {
1985
+ ie(r, k);
1986
+ const b = w(() => {
1987
1987
  if (l.value) return;
1988
- const x = I(), de = t.width === "anchor", oe = de ? x == null ? void 0 : x.getBoundingClientRect().width : void 0;
1988
+ const I = S(), de = t.width === "anchor", ae = de ? I == null ? void 0 : I.getBoundingClientRect().width : void 0;
1989
1989
  return {
1990
- top: `${c.top}px`,
1991
- left: `${c.left}px`,
1992
- width: oe !== void 0 ? `${oe}px` : void 0
1990
+ top: `${s.top}px`,
1991
+ left: `${s.left}px`,
1992
+ width: ae !== void 0 ? `${ae}px` : void 0
1993
1993
  };
1994
- }), y = w(() => {
1994
+ }), g = w(() => {
1995
1995
  if (t.arrow)
1996
1996
  return {
1997
- top: f.top !== void 0 ? `${f.top}px` : void 0,
1998
- left: f.left !== void 0 ? `${f.left}px` : void 0,
1999
- opacity: f.hidden ? 0 : 1
1997
+ top: v.top !== void 0 ? `${v.top}px` : void 0,
1998
+ left: v.left !== void 0 ? `${v.left}px` : void 0,
1999
+ opacity: v.hidden ? 0 : 1
2000
2000
  };
2001
- }), A = M(null), N = M(null), te = M(null);
2002
- function H() {
2003
- const x = I();
2004
- if (!x || !N.value)
2001
+ }), _ = N(null), B = N(null), W = N(null);
2002
+ function G() {
2003
+ const I = S();
2004
+ if (!I || !B.value)
2005
2005
  return;
2006
2006
  const de = {
2007
2007
  placement: t.placement,
@@ -2009,148 +2009,148 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2009
2009
  offset: t.offset,
2010
2010
  crossOffset: t.crossOffset,
2011
2011
  arrow: t.arrow
2012
- }, oe = pa(
2013
- x,
2014
- N.value,
2015
- (A == null ? void 0 : A.value) ?? void 0,
2012
+ }, ae = pa(
2013
+ I,
2014
+ B.value,
2015
+ (_ == null ? void 0 : _.value) ?? void 0,
2016
2016
  de
2017
2017
  );
2018
- c.left = oe.overlayCoords.x, c.top = oe.overlayCoords.y, c.placement = oe.placement, f.hidden = oe.arrowCoords === void 0, oe.arrowCoords && (f.top = oe.arrowCoords.y, f.left = oe.arrowCoords.x);
2018
+ s.left = ae.overlayCoords.x, s.top = ae.overlayCoords.y, s.placement = ae.placement, v.hidden = ae.arrowCoords === void 0, ae.arrowCoords && (v.top = ae.arrowCoords.y, v.left = ae.arrowCoords.x);
2019
2019
  }
2020
- re(
2020
+ ie(
2021
2021
  () => t.placement,
2022
- () => Ae(H)
2022
+ () => Ae(G)
2023
2023
  );
2024
- let Q;
2025
- function L() {
2026
- O(0);
2024
+ let j;
2025
+ function z() {
2026
+ x(0);
2027
2027
  }
2028
- function T() {
2029
- O(t.delay);
2028
+ function V() {
2029
+ x(t.delay);
2030
2030
  }
2031
- function O(x) {
2032
- Q && V(), Q = window.setTimeout(() => {
2031
+ function x(I) {
2032
+ j && U(), j = window.setTimeout(() => {
2033
2033
  r.value = !0;
2034
- }, x);
2034
+ }, I);
2035
2035
  }
2036
- function Y() {
2037
- if (Q && V(), r.value = !1, t.anchor && t.trigger === "click") {
2038
- const x = I();
2039
- Ae(() => x == null ? void 0 : x.focus());
2036
+ function Z() {
2037
+ if (j && U(), r.value = !1, t.anchor && t.trigger === "click") {
2038
+ const I = S();
2039
+ Ae(() => I == null ? void 0 : I.focus());
2040
2040
  }
2041
2041
  }
2042
- function V() {
2043
- clearTimeout(Q), Q = void 0;
2042
+ function U() {
2043
+ clearTimeout(j), j = void 0;
2044
2044
  }
2045
- function X() {
2046
- Ae(ke), o("enter");
2045
+ function ee() {
2046
+ Ae(_e), o("enter");
2047
2047
  }
2048
- function K() {
2049
- B();
2048
+ function te() {
2049
+ q();
2050
2050
  }
2051
- function p() {
2051
+ function d() {
2052
2052
  o("leave");
2053
2053
  }
2054
2054
  function m() {
2055
- B(), Jt();
2055
+ q(), Jt();
2056
2056
  }
2057
2057
  function k() {
2058
- c.animating = !0;
2058
+ s.animating = !0;
2059
2059
  }
2060
- function B() {
2061
- c.animating = !1;
2060
+ function q() {
2061
+ s.animating = !1;
2062
2062
  }
2063
- function I() {
2064
- return t.anchor ? _a(t.anchor) : null;
2063
+ function S() {
2064
+ return t.anchor ? ka(t.anchor) : null;
2065
2065
  }
2066
- function P(x) {
2067
- t.persistent && x.preventDefault();
2066
+ function O(I) {
2067
+ t.persistent && I.preventDefault();
2068
2068
  }
2069
- function D(x) {
2069
+ function C(I) {
2070
2070
  var de;
2071
2071
  if (t.persistent) {
2072
- x.preventDefault();
2072
+ I.preventDefault();
2073
2073
  return;
2074
2074
  }
2075
- let oe = !1;
2076
- x.defaultPrevented || x.detail.originalEvent.type === "pointerdown" && (oe = !0);
2077
- const Qt = x.detail.originalEvent.target;
2078
- if ((de = I()) != null && de.contains(Qt)) {
2079
- x.preventDefault();
2075
+ let ae = !1;
2076
+ I.defaultPrevented || I.detail.originalEvent.type === "pointerdown" && (ae = !0);
2077
+ const Qt = I.detail.originalEvent.target;
2078
+ if ((de = S()) != null && de.contains(Qt)) {
2079
+ I.preventDefault();
2080
2080
  return;
2081
2081
  }
2082
- x.detail.originalEvent.type === "focusin" && oe && x.preventDefault();
2082
+ I.detail.originalEvent.type === "focusin" && ae && I.preventDefault();
2083
2083
  }
2084
- function z() {
2085
- Y();
2084
+ function J() {
2085
+ Z();
2086
2086
  }
2087
- let b;
2088
- function _() {
2089
- const x = I();
2090
- if (x)
2091
- switch (b = new MutationObserver(H), b.observe(x, {
2087
+ let h;
2088
+ function A() {
2089
+ const I = S();
2090
+ if (I)
2091
+ switch (h = new MutationObserver(G), h.observe(I, {
2092
2092
  attributes: !1,
2093
2093
  childList: !0,
2094
2094
  characterData: !0,
2095
2095
  subtree: !0
2096
2096
  }), t.trigger) {
2097
2097
  case "click":
2098
- x.addEventListener("click", L);
2098
+ I.addEventListener("click", z);
2099
2099
  break;
2100
2100
  case "hover":
2101
- x.addEventListener("mouseenter", T), x.addEventListener("mouseleave", Y), x.addEventListener("focusin", L), x.addEventListener("focusout", Y);
2101
+ I.addEventListener("mouseenter", V), I.addEventListener("mouseleave", Z), I.addEventListener("focusin", z), I.addEventListener("focusout", Z);
2102
2102
  break;
2103
2103
  }
2104
2104
  }
2105
- function C() {
2106
- const x = I();
2107
- if (x)
2108
- switch (b == null || b.disconnect(), t.trigger) {
2105
+ function M() {
2106
+ const I = S();
2107
+ if (I)
2108
+ switch (h == null || h.disconnect(), t.trigger) {
2109
2109
  case "click":
2110
- x.removeEventListener("click", L);
2110
+ I.removeEventListener("click", z);
2111
2111
  break;
2112
2112
  case "hover":
2113
- x.removeEventListener("mouseenter", T), x.removeEventListener("mouseleave", Y), x.removeEventListener("focusin", L), x.removeEventListener("focusout", Y);
2113
+ I.removeEventListener("mouseenter", V), I.removeEventListener("mouseleave", Z), I.removeEventListener("focusin", z), I.removeEventListener("focusout", Z);
2114
2114
  break;
2115
2115
  }
2116
2116
  }
2117
- function q() {
2118
- window.addEventListener("resize", H), t.scrollLock || window.addEventListener("scroll", H);
2117
+ function F() {
2118
+ window.addEventListener("resize", G), t.scrollLock || window.addEventListener("scroll", G);
2119
2119
  }
2120
- function ne() {
2121
- window.removeEventListener("resize", H), t.scrollLock || window.removeEventListener("scroll", H);
2120
+ function oe() {
2121
+ window.removeEventListener("resize", G), t.scrollLock || window.removeEventListener("scroll", G);
2122
2122
  }
2123
- let ie;
2123
+ let le;
2124
2124
  function ge() {
2125
- I() ? (H(), ie = window.setTimeout(ge, 100)) : Y();
2125
+ S() ? (G(), le = window.setTimeout(ge, 100)) : Z();
2126
2126
  }
2127
- function ke() {
2128
- var x;
2129
- l.value || (q(), t.spy ? ge() : H()), (l.value || t.trigger === "click") && ((x = N.value) == null || x.focus());
2127
+ function _e() {
2128
+ var I;
2129
+ l.value || (F(), t.spy ? ge() : G()), (l.value || t.trigger === "click") && ((I = B.value) == null || I.focus());
2130
2130
  }
2131
2131
  function Jt() {
2132
- l.value || ne(), t.spy && (clearTimeout(ie), ie = void 0);
2132
+ l.value || oe(), t.spy && (clearTimeout(le), le = void 0);
2133
2133
  }
2134
- return De(() => {
2135
- Ae(_);
2136
- }), nn(C), (x, de) => (h(), $(
2134
+ return Ee(() => {
2135
+ Ae(A);
2136
+ }), nn(M), (I, de) => (y(), $(
2137
2137
  ce,
2138
2138
  null,
2139
2139
  [
2140
- (h(), G(on, {
2141
- disabled: !d.value,
2140
+ (y(), H(on, {
2141
+ disabled: !p.value,
2142
2142
  to: t.attach
2143
2143
  }, [
2144
- S(st, {
2144
+ D(st, {
2145
2145
  name: "fade",
2146
2146
  appear: ""
2147
2147
  }, {
2148
2148
  default: E(() => [
2149
- u.value ? (h(), $(
2149
+ u.value ? (y(), $(
2150
2150
  "div",
2151
2151
  {
2152
2152
  key: 0,
2153
- class: Z([
2153
+ class: Q([
2154
2154
  t.backdropClass,
2155
2155
  "q-overlay__underlay",
2156
2156
  { "q-overlay__underlay--blur": t.backdropBlur }
@@ -2159,85 +2159,85 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2159
2159
  null,
2160
2160
  2
2161
2161
  /* CLASS */
2162
- )) : j("v-if", !0)
2162
+ )) : P("v-if", !0)
2163
2163
  ]),
2164
2164
  _: 1
2165
2165
  /* STABLE */
2166
2166
  }),
2167
- S(st, {
2167
+ D(st, {
2168
2168
  name: t.transition,
2169
2169
  appear: "",
2170
- onEnter: X,
2171
- onAfterEnter: K,
2172
- onLeave: p,
2170
+ onEnter: ee,
2171
+ onAfterEnter: te,
2172
+ onLeave: d,
2173
2173
  onAfterLeave: m
2174
2174
  }, {
2175
2175
  default: E(() => [
2176
- r.value ? (h(), $("div", {
2176
+ r.value ? (y(), $("div", {
2177
2177
  key: 0,
2178
2178
  id: t.id,
2179
2179
  ref_key: "overlayContainerRef",
2180
- ref: te,
2180
+ ref: W,
2181
2181
  tabindex: "-1",
2182
- class: Z(i.value),
2183
- style: ye(g.value)
2182
+ class: Q(i.value),
2183
+ style: ye(b.value)
2184
2184
  }, [
2185
- S(v(po), {
2186
- onDismiss: z,
2187
- onInteractOutside: D,
2188
- onPointerDownOutside: P
2185
+ D(f(po), {
2186
+ onDismiss: J,
2187
+ onInteractOutside: C,
2188
+ onPointerDownOutside: O
2189
2189
  }, {
2190
2190
  default: E(() => [
2191
- te.value ? (h(), G(v(ea), {
2191
+ W.value ? (y(), H(f(ea), {
2192
2192
  key: 0,
2193
2193
  disabled: t.nonModal || !r.value,
2194
- options: { fallbackFocus: te.value }
2194
+ options: { fallbackFocus: W.value }
2195
2195
  }, {
2196
2196
  default: E(() => [
2197
- F("div", se({
2197
+ R("div", se({
2198
2198
  ref_key: "overlayRef",
2199
- ref: N,
2199
+ ref: B,
2200
2200
  class: "q-overlay__content",
2201
2201
  tabindex: "-1",
2202
2202
  role: u.value ? "dialog" : void 0
2203
- }, x.$attrs), [
2204
- t.arrow ? (h(), $(
2203
+ }, I.$attrs), [
2204
+ t.arrow ? (y(), $(
2205
2205
  "div",
2206
2206
  {
2207
2207
  key: 0,
2208
2208
  ref_key: "arrowRef",
2209
- ref: A,
2209
+ ref: _,
2210
2210
  role: "presentation",
2211
2211
  class: "q-overlay__arrow",
2212
- style: ye(y.value)
2212
+ style: ye(g.value)
2213
2213
  },
2214
2214
  null,
2215
2215
  4
2216
2216
  /* STYLE */
2217
- )) : j("v-if", !0),
2218
- R(x.$slots, "default")
2217
+ )) : P("v-if", !0),
2218
+ L(I.$slots, "default")
2219
2219
  ], 16, Aa)
2220
2220
  ]),
2221
2221
  _: 3
2222
2222
  /* FORWARDED */
2223
- }, 8, ["disabled", "options"])) : j("v-if", !0)
2223
+ }, 8, ["disabled", "options"])) : P("v-if", !0)
2224
2224
  ]),
2225
2225
  _: 3
2226
2226
  /* FORWARDED */
2227
2227
  })
2228
- ], 14, $a)) : j("v-if", !0)
2228
+ ], 14, $a)) : P("v-if", !0)
2229
2229
  ]),
2230
2230
  _: 3
2231
2231
  /* FORWARDED */
2232
2232
  }, 8, ["name"])
2233
2233
  ], 8, ["disabled", "to"])),
2234
- s.value ? (h(), G(v(da), { key: 0 })) : j("v-if", !0)
2234
+ c.value ? (y(), H(f(da), { key: 0 })) : P("v-if", !0)
2235
2235
  ],
2236
2236
  64
2237
2237
  /* STABLE_FRAGMENT */
2238
2238
  ));
2239
2239
  }
2240
- }), Ia = J(xa), Sa = [
2240
+ }), Ia = X(xa), Sa = [
2241
2241
  {
2242
2242
  id: "button",
2243
2243
  icon: {
@@ -2248,9 +2248,9 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2248
2248
  label: "Ok"
2249
2249
  }
2250
2250
  }
2251
- ], Ea = {
2251
+ ], Da = {
2252
2252
  icon: "check-circle-outline"
2253
- }, Da = {
2253
+ }, Ea = {
2254
2254
  close: {
2255
2255
  icon: "close"
2256
2256
  }
@@ -2263,33 +2263,33 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2263
2263
  }, Ra = {
2264
2264
  key: 1,
2265
2265
  class: "q-dialog__body"
2266
- }, La = {
2266
+ }, qa = {
2267
2267
  key: 0,
2268
2268
  class: "q-dialog__body-icon"
2269
- }, Ma = { class: "q-dialog__body-text" }, Na = ["innerHTML"], Ta = { key: 1 }, qa = {
2269
+ }, La = { class: "q-dialog__body-text" }, Ma = ["innerHTML"], Na = { key: 1 }, Fa = {
2270
2270
  key: 0,
2271
2271
  class: "q-dialog__input"
2272
- }, Fa = {
2272
+ }, Ta = {
2273
2273
  key: 2,
2274
2274
  class: "q-dialog__footer"
2275
2275
  }, Oa = {
2276
2276
  key: 0,
2277
2277
  class: "q-dialog__footer-buttons"
2278
- }, Ua = /* @__PURE__ */ U({
2278
+ }, Ua = /* @__PURE__ */ T({
2279
2279
  __name: "QDialog",
2280
2280
  props: /* @__PURE__ */ ue({
2281
2281
  id: {},
2282
2282
  class: {},
2283
2283
  title: {},
2284
2284
  text: {},
2285
- icon: { default: () => Ea },
2285
+ icon: { default: () => Da },
2286
2286
  buttons: { default: () => Sa },
2287
2287
  attach: { default: "body" },
2288
2288
  inline: { type: Boolean },
2289
2289
  backdropBlur: { type: Boolean, default: !0 },
2290
2290
  dismissible: { type: Boolean },
2291
2291
  html: { type: Boolean, default: !0 },
2292
- icons: { default: () => Da },
2292
+ icons: { default: () => Ea },
2293
2293
  size: { default: "small" },
2294
2294
  centerVertically: { type: Boolean },
2295
2295
  input: {}
@@ -2299,29 +2299,29 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2299
2299
  }),
2300
2300
  emits: /* @__PURE__ */ ue(["enter", "leave"], ["update:modelValue"]),
2301
2301
  setup(e, { emit: n }) {
2302
- const t = e, o = n, r = Ee(e, "modelValue"), a = M(""), i = M(""), l = w(() => ["q-dialog", t.class]), u = w(() => `q-overlay--${t.size}`);
2303
- function s() {
2302
+ const t = e, o = n, r = De(e, "modelValue"), a = N(""), i = N(""), l = w(() => ["q-dialog", t.class]), u = w(() => `q-overlay--${t.size}`);
2303
+ function c() {
2304
2304
  r.value = !1;
2305
2305
  }
2306
- function d(g) {
2307
- var y, A;
2308
- if (g.action) {
2309
- if ((y = t.input) != null && y.validator && (i.value = t.input.validator(v(a)), v(i)))
2306
+ function p(b) {
2307
+ var g, _;
2308
+ if (b.action) {
2309
+ if ((g = t.input) != null && g.validator && (i.value = t.input.validator(f(a)), f(i)))
2310
2310
  return;
2311
- (A = g.action) == null || A.call(g, v(a));
2311
+ (_ = b.action) == null || _.call(b, f(a));
2312
2312
  }
2313
- s();
2313
+ c();
2314
2314
  }
2315
- function c() {
2315
+ function s() {
2316
2316
  o("enter");
2317
2317
  }
2318
- function f() {
2318
+ function v() {
2319
2319
  o("leave");
2320
2320
  }
2321
- return (g, y) => (h(), G(v(Ia), {
2321
+ return (b, g) => (y(), H(f(Ia), {
2322
2322
  id: t.id,
2323
2323
  modelValue: r.value,
2324
- "onUpdate:modelValue": y[1] || (y[1] = (A) => r.value = A),
2324
+ "onUpdate:modelValue": g[1] || (g[1] = (_) => r.value = _),
2325
2325
  "backdrop-class": "q-dialog__underlay",
2326
2326
  "scroll-lock": "",
2327
2327
  persistent: "",
@@ -2329,72 +2329,72 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2329
2329
  attach: t.attach,
2330
2330
  "backdrop-blur": t.backdropBlur,
2331
2331
  "center-vertically": t.centerVertically,
2332
- class: Z(u.value),
2333
- onEnter: c,
2334
- onLeave: f
2332
+ class: Q(u.value),
2333
+ onEnter: s,
2334
+ onLeave: v
2335
2335
  }, {
2336
2336
  default: E(() => [
2337
- F(
2337
+ R(
2338
2338
  "div",
2339
2339
  {
2340
- class: Z(l.value)
2340
+ class: Q(l.value)
2341
2341
  },
2342
2342
  [
2343
- t.title || g.$slots.header || g.$slots["header.prepend"] || g.$slots["header.append"] ? (h(), $("div", Ca, [
2344
- R(g.$slots, "header", {}, () => [
2345
- R(g.$slots, "header.prepend"),
2346
- t.title ? (h(), $(
2343
+ t.title || b.$slots.header || b.$slots["header.prepend"] || b.$slots["header.append"] ? (y(), $("div", Ca, [
2344
+ L(b.$slots, "header", {}, () => [
2345
+ L(b.$slots, "header.prepend"),
2346
+ t.title ? (y(), $(
2347
2347
  "span",
2348
2348
  Ba,
2349
- le(t.title),
2349
+ ne(t.title),
2350
2350
  1
2351
2351
  /* TEXT */
2352
- )) : j("v-if", !0),
2353
- R(g.$slots, "header.append")
2352
+ )) : P("v-if", !0),
2353
+ L(b.$slots, "header.append")
2354
2354
  ])
2355
- ])) : j("v-if", !0),
2356
- t.icon || t.text || g.$slots.body ? (h(), $("div", Ra, [
2357
- R(g.$slots, "body", {}, () => {
2358
- var A;
2355
+ ])) : P("v-if", !0),
2356
+ t.icon || t.text || b.$slots.body ? (y(), $("div", Ra, [
2357
+ L(b.$slots, "body", {}, () => {
2358
+ var _;
2359
2359
  return [
2360
- R(g.$slots, "body.icon", {}, () => [
2361
- t.icon ? (h(), $("span", La, [
2362
- S(
2363
- v(ee),
2364
- Se(Te(t.icon)),
2360
+ L(b.$slots, "body.icon", {}, () => [
2361
+ t.icon ? (y(), $("span", qa, [
2362
+ D(
2363
+ f(Y),
2364
+ Se(Ne(t.icon)),
2365
2365
  null,
2366
2366
  16
2367
2367
  /* FULL_PROPS */
2368
2368
  )
2369
- ])) : j("v-if", !0)
2369
+ ])) : P("v-if", !0)
2370
2370
  ]),
2371
- F("div", Ma, [
2372
- t.html ? (h(), $("div", {
2371
+ R("div", La, [
2372
+ t.html ? (y(), $("div", {
2373
2373
  key: 0,
2374
2374
  innerHTML: t.text
2375
- }, null, 8, Na)) : (h(), $(
2375
+ }, null, 8, Ma)) : (y(), $(
2376
2376
  "div",
2377
- Ta,
2378
- le(t.text),
2377
+ Na,
2378
+ ne(t.text),
2379
2379
  1
2380
2380
  /* TEXT */
2381
2381
  ))
2382
2382
  ]),
2383
- t.input ? (h(), $("div", qa, [
2384
- S(v(Tt), {
2383
+ t.input ? (y(), $("div", Fa, [
2384
+ D(f(Nt), {
2385
2385
  modelValue: a.value,
2386
- "onUpdate:modelValue": y[0] || (y[0] = (N) => a.value = N),
2386
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => a.value = B),
2387
2387
  invalid: !!i.value,
2388
- placeholder: (A = t.input) == null ? void 0 : A.placeholder,
2388
+ placeholder: (_ = t.input) == null ? void 0 : _.placeholder,
2389
2389
  size: "block"
2390
2390
  }, {
2391
2391
  extras: E(() => [
2392
- i.value ? (h(), G(v(ee), {
2392
+ i.value ? (y(), H(f(Y), {
2393
2393
  key: 0,
2394
2394
  icon: "exclamation-sign"
2395
- })) : j("v-if", !0),
2396
- je(
2397
- " " + le(i.value),
2395
+ })) : P("v-if", !0),
2396
+ Ge(
2397
+ " " + ne(i.value),
2398
2398
  1
2399
2399
  /* TEXT */
2400
2400
  )
@@ -2402,31 +2402,31 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2402
2402
  _: 1
2403
2403
  /* STABLE */
2404
2404
  }, 8, ["modelValue", "invalid", "placeholder"])
2405
- ])) : j("v-if", !0),
2406
- R(g.$slots, "body.append")
2405
+ ])) : P("v-if", !0),
2406
+ L(b.$slots, "body.append")
2407
2407
  ];
2408
2408
  })
2409
- ])) : j("v-if", !0),
2410
- t.buttons || g.$slots["footer.append"] ? (h(), $("div", Fa, [
2411
- t.buttons ? (h(), $("span", Oa, [
2412
- (h(!0), $(
2409
+ ])) : P("v-if", !0),
2410
+ t.buttons || b.$slots["footer.append"] ? (y(), $("div", Ta, [
2411
+ t.buttons ? (y(), $("span", Oa, [
2412
+ (y(!0), $(
2413
2413
  ce,
2414
2414
  null,
2415
- Ce(t.buttons, (A) => (h(), G(v(ae), se({ ref_for: !0 }, A.props, {
2416
- key: A.id,
2417
- onClick: () => d(A)
2415
+ Ce(t.buttons, (_) => (y(), H(f(re), se({ ref_for: !0 }, _.props, {
2416
+ key: _.id,
2417
+ onClick: () => p(_)
2418
2418
  }), {
2419
2419
  default: E(() => [
2420
- A.icon ? (h(), G(
2421
- v(ee),
2420
+ _.icon ? (y(), H(
2421
+ f(Y),
2422
2422
  se({
2423
2423
  key: 0,
2424
2424
  ref_for: !0
2425
- }, A.icon),
2425
+ }, _.icon),
2426
2426
  null,
2427
2427
  16
2428
2428
  /* FULL_PROPS */
2429
- )) : j("v-if", !0)
2429
+ )) : P("v-if", !0)
2430
2430
  ]),
2431
2431
  _: 2
2432
2432
  /* DYNAMIC */
@@ -2434,19 +2434,19 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2434
2434
  128
2435
2435
  /* KEYED_FRAGMENT */
2436
2436
  ))
2437
- ])) : j("v-if", !0),
2438
- R(g.$slots, "footer.append")
2439
- ])) : j("v-if", !0),
2440
- t.dismissible ? (h(), G(v(ae), {
2437
+ ])) : P("v-if", !0),
2438
+ L(b.$slots, "footer.append")
2439
+ ])) : P("v-if", !0),
2440
+ t.dismissible ? (y(), H(f(re), {
2441
2441
  key: 3,
2442
2442
  class: "q-dialog__close",
2443
2443
  variant: "text",
2444
- onClick: s
2444
+ onClick: c
2445
2445
  }, {
2446
2446
  default: E(() => [
2447
- S(
2448
- v(ee),
2449
- Se(Te(t.icons.close)),
2447
+ D(
2448
+ f(Y),
2449
+ Se(Ne(t.icons.close)),
2450
2450
  null,
2451
2451
  16
2452
2452
  /* FULL_PROPS */
@@ -2454,7 +2454,7 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ U({
2454
2454
  ]),
2455
2455
  _: 1
2456
2456
  /* STABLE */
2457
- })) : j("v-if", !0)
2457
+ })) : P("v-if", !0)
2458
2458
  ],
2459
2459
  2
2460
2460
  /* CLASS */
@@ -2480,7 +2480,7 @@ function Pa() {
2480
2480
  removeDialog: n
2481
2481
  };
2482
2482
  }
2483
- const ja = /* @__PURE__ */ U({
2483
+ const Ga = /* @__PURE__ */ T({
2484
2484
  inheritAttrs: !1,
2485
2485
  __name: "QDialogProvider",
2486
2486
  props: {
@@ -2492,24 +2492,24 @@ const ja = /* @__PURE__ */ U({
2492
2492
  function i(l) {
2493
2493
  a(l), o("leave", l);
2494
2494
  }
2495
- return (l, u) => (h(!0), $(
2495
+ return (l, u) => (y(!0), $(
2496
2496
  ce,
2497
2497
  null,
2498
- Ce(v(r), (s) => (h(), G(v(Gt), se({
2499
- key: s.id,
2498
+ Ce(f(r), (c) => (y(), H(f(jt), se({
2499
+ key: c.id,
2500
2500
  ref_for: !0
2501
- }, s.props, {
2501
+ }, c.props, {
2502
2502
  "model-value": "",
2503
2503
  inline: t.inline,
2504
- onLeave: () => i(s.id)
2504
+ onLeave: () => i(c.id)
2505
2505
  }), null, 16, ["inline", "onLeave"]))),
2506
2506
  128
2507
2507
  /* KEYED_FRAGMENT */
2508
2508
  ));
2509
2509
  }
2510
- }), Gt = J(Ua);
2511
- J(ja);
2512
- const Ga = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], za = /* @__PURE__ */ U({
2510
+ }), jt = X(Ua);
2511
+ X(Ga);
2512
+ const ja = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], za = /* @__PURE__ */ T({
2513
2513
  inheritAttrs: !1,
2514
2514
  __name: "QTextArea",
2515
2515
  props: /* @__PURE__ */ ue({
@@ -2535,23 +2535,23 @@ const Ga = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2535
2535
  }),
2536
2536
  emits: ["update:modelValue"],
2537
2537
  setup(e) {
2538
- const n = e, t = Ee(e, "modelValue"), o = w({
2538
+ const n = e, t = De(e, "modelValue"), o = w({
2539
2539
  get: () => t.value,
2540
- set: (s) => {
2541
- const d = n.maxLength;
2542
- t.value = d ? s == null ? void 0 : s.slice(0, d) : s;
2540
+ set: (c) => {
2541
+ const p = n.maxLength;
2542
+ t.value = p ? c == null ? void 0 : c.slice(0, p) : c;
2543
2543
  }
2544
2544
  });
2545
- re(t, (s) => o.value = s, { immediate: !0 });
2545
+ ie(t, (c) => o.value = c, { immediate: !0 });
2546
2546
  const r = it(n.id), a = w(
2547
2547
  () => n.readonly || n.disabled ? void 0 : n.placeholder
2548
- ), i = w(() => ({ input: n.autosize ? u : null })), l = M(), { triggerResize: u } = wo({
2548
+ ), i = w(() => ({ input: n.autosize ? u : null })), l = N(), { triggerResize: u } = wo({
2549
2549
  element: w(() => n.autosize ? l.value : void 0),
2550
2550
  styleProp: "minHeight"
2551
2551
  });
2552
- return (s, d) => (h(), G(v(Nt), {
2553
- class: Z(["q-text-area", n.class]),
2554
- for: v(r),
2552
+ return (c, p) => (y(), H(f(Mt), {
2553
+ class: Q(["q-text-area", n.class]),
2554
+ for: f(r),
2555
2555
  label: n.label,
2556
2556
  size: n.size,
2557
2557
  readonly: n.readonly,
@@ -2559,17 +2559,17 @@ const Ga = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2559
2559
  required: n.required
2560
2560
  }, $t({
2561
2561
  "label.prepend": E(() => [
2562
- R(s.$slots, "label.prepend")
2562
+ L(c.$slots, "label.prepend")
2563
2563
  ]),
2564
2564
  "label.append": E(() => [
2565
- R(s.$slots, "label.append")
2565
+ L(c.$slots, "label.append")
2566
2566
  ]),
2567
2567
  default: E(() => [
2568
- At(F("textarea", se({
2569
- id: v(r),
2568
+ At(R("textarea", se({
2569
+ id: f(r),
2570
2570
  ref_key: "textareaRef",
2571
2571
  ref: l,
2572
- "onUpdate:modelValue": d[0] || (d[0] = (c) => o.value = c),
2572
+ "onUpdate:modelValue": p[0] || (p[0] = (s) => o.value = s),
2573
2573
  class: "q-text-area__input",
2574
2574
  required: n.required,
2575
2575
  placeholder: a.value,
@@ -2580,37 +2580,37 @@ const Ga = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
2580
2580
  cols: n.cols,
2581
2581
  resize: n.resize,
2582
2582
  wrap: n.wrap
2583
- }, s.$attrs, an(i.value, !0)), null, 16, Ga), [
2583
+ }, c.$attrs, an(i.value, !0)), null, 16, ja), [
2584
2584
  [rn, o.value]
2585
2585
  ])
2586
2586
  ]),
2587
2587
  _: 2
2588
2588
  /* DYNAMIC */
2589
2589
  }, [
2590
- s.$slots.prepend ? {
2590
+ c.$slots.prepend ? {
2591
2591
  name: "prepend",
2592
2592
  fn: E(() => [
2593
- R(s.$slots, "prepend")
2593
+ L(c.$slots, "prepend")
2594
2594
  ]),
2595
2595
  key: "0"
2596
2596
  } : void 0,
2597
- s.$slots.append ? {
2597
+ c.$slots.append ? {
2598
2598
  name: "append",
2599
2599
  fn: E(() => [
2600
- R(s.$slots, "append")
2600
+ L(c.$slots, "append")
2601
2601
  ]),
2602
2602
  key: "1"
2603
2603
  } : void 0,
2604
- s.$slots.extras ? {
2604
+ c.$slots.extras ? {
2605
2605
  name: "extras",
2606
2606
  fn: E(() => [
2607
- R(s.$slots, "extras")
2607
+ L(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
- }), Va = J(za);
2613
+ }), Va = X(za);
2614
2614
  function me() {
2615
2615
  return {
2616
2616
  copy: "Copy",
@@ -2638,11 +2638,12 @@ function me() {
2638
2638
  regenerateResponsePrompt: "Regenerate a new response for field {0}",
2639
2639
  regenerateResponse: "Regenerate response",
2640
2640
  generatingResponse: "Generating",
2641
- suggestionsForField: "Suggestions for field"
2641
+ suggestionsForField: "Suggestions for field:",
2642
+ fileUpload: "Upload File"
2642
2643
  };
2643
2644
  }
2644
2645
  async function yt(e, n) {
2645
- var u, s, d, c, f, g;
2646
+ var u, c, p, s, v, b;
2646
2647
  const t = new AbortController(), o = t.signal, a = (await St({
2647
2648
  ...e,
2648
2649
  headers: {
@@ -2656,96 +2657,96 @@ async function yt(e, n) {
2656
2657
  throw new Error("Invalid stream response");
2657
2658
  const i = a.getReader(), l = new TextDecoder();
2658
2659
  for (; ; ) {
2659
- const { done: y, value: A } = await i.read();
2660
- if (y) {
2660
+ const { done: g, value: _ } = await i.read();
2661
+ if (g) {
2661
2662
  (u = n.onDone) == null || u.call(n);
2662
2663
  break;
2663
2664
  }
2664
- const te = l.decode(A, { stream: !0 }).split(/\n\n+/);
2665
- for (const H of te) {
2666
- const Q = H.trim().split(`
2665
+ const W = l.decode(_, { stream: !0 }).split(/\n\n+/);
2666
+ for (const G of W) {
2667
+ const j = G.trim().split(`
2667
2668
  `);
2668
- let L = "", T = "";
2669
- for (const O of Q)
2670
- O.startsWith("event:") ? L = O.replace("event:", "").trim() : O.startsWith("data:") && (T = O.replace("data:", "").trim());
2671
- if (L || (L = "message"), !!T)
2669
+ let z = "", V = "";
2670
+ for (const x of j)
2671
+ x.startsWith("event:") ? z = x.replace("event:", "").trim() : x.startsWith("data:") && (V = x.replace("data:", "").trim());
2672
+ if (z || (z = "message"), !!V)
2672
2673
  try {
2673
- const O = JSON.parse(T);
2674
- switch (L) {
2674
+ const x = JSON.parse(V);
2675
+ switch (z) {
2675
2676
  case "message":
2676
- (s = n.onMessage) == null || s.call(n, O.value);
2677
+ (c = n.onMessage) == null || c.call(n, x.value);
2677
2678
  break;
2678
2679
  case "error":
2679
- (d = n.onError) == null || d.call(n, new Error(O.value));
2680
+ (p = n.onError) == null || p.call(n, new Error(x.value));
2680
2681
  break;
2681
2682
  case "field_metadata":
2682
- (c = n.onFieldMetadata) == null || c.call(n, O);
2683
+ (s = n.onFieldMetadata) == null || s.call(n, x);
2683
2684
  break;
2684
2685
  case "done":
2685
- (f = n.onDone) == null || f.call(n);
2686
+ (v = n.onDone) == null || v.call(n);
2686
2687
  break;
2687
2688
  default:
2688
- console.warn(`Unknown event type: ${L}`);
2689
+ console.warn(`Unknown event type: ${z}`);
2689
2690
  }
2690
- } catch (O) {
2691
- (g = n.onError) == null || g.call(n, O), console.error("Error processing event:", O);
2691
+ } catch (x) {
2692
+ (b = n.onError) == null || b.call(n, x), console.error("Error processing event:", x);
2692
2693
  continue;
2693
2694
  } finally {
2694
- y && (i.releaseLock(), t.abort());
2695
+ g && (i.releaseLock(), t.abort());
2695
2696
  }
2696
2697
  }
2697
2698
  }
2698
2699
  }
2699
2700
  function zt(e) {
2700
- const n = M(!1), t = M(null);
2701
- async function o(s) {
2701
+ const n = N(!1), t = N(null);
2702
+ async function o(c) {
2702
2703
  n.value = !0, t.value = null;
2703
2704
  try {
2704
2705
  return { data: (await St({
2705
- ...s,
2706
+ ...c,
2706
2707
  baseURL: e
2707
2708
  })).data, error: null };
2708
- } catch (d) {
2709
- if (d instanceof Error)
2710
- return t.value = d, console.error("Error in API request:", d), { data: null, error: d };
2709
+ } catch (p) {
2710
+ if (p instanceof Error)
2711
+ return t.value = p, console.error("Error in API request:", p), { data: null, error: p };
2711
2712
  } finally {
2712
2713
  n.value = !1;
2713
2714
  }
2714
2715
  return { data: null, error: new Error("Unknown error occurred in baseRequest") };
2715
2716
  }
2716
- async function r(s, d, c, f) {
2717
+ async function r(c, p, s, v) {
2717
2718
  return await o({
2718
2719
  method: "POST",
2719
2720
  url: "/prompt/load",
2720
2721
  data: {
2721
- username: s,
2722
- project: d,
2723
- agentID: c,
2724
- formId: f
2722
+ username: c,
2723
+ project: p,
2724
+ agentID: s,
2725
+ formId: v
2725
2726
  }
2726
2727
  });
2727
2728
  }
2728
- async function a(s, d, c) {
2729
+ async function a(c, p, s) {
2729
2730
  n.value = !0;
2730
2731
  try {
2731
2732
  return await yt(
2732
2733
  {
2733
2734
  method: "POST",
2734
2735
  url: `${e}/prompt/submit`,
2735
- data: s
2736
+ data: c
2736
2737
  },
2737
2738
  {
2738
- onMessage: (f) => {
2739
- d(f);
2739
+ onMessage: (v) => {
2740
+ p(v);
2740
2741
  },
2741
2742
  onDone: () => n.value = !1
2742
2743
  }
2743
2744
  );
2744
- } catch (f) {
2745
- throw n.value = !1, c == null || c(f), console.error("Error in sendPrompt:", f), f;
2745
+ } catch (v) {
2746
+ throw n.value = !1, s == null || s(v), console.error("Error in sendPrompt:", v), v;
2746
2747
  }
2747
2748
  }
2748
- async function i(s, d, c, f) {
2749
+ async function i(c, p, s, v) {
2749
2750
  n.value = !0;
2750
2751
  try {
2751
2752
  return await yt(
@@ -2753,39 +2754,39 @@ function zt(e) {
2753
2754
  method: "POST",
2754
2755
  url: `${e}/get-job-result`,
2755
2756
  data: {
2756
- jobId: s
2757
+ jobId: c
2757
2758
  }
2758
2759
  },
2759
2760
  {
2760
- onMessage: (g) => d(g),
2761
- onFieldMetadata: (g) => c(g),
2761
+ onMessage: (b) => p(b),
2762
+ onFieldMetadata: (b) => s(b),
2762
2763
  onDone: () => n.value = !1
2763
2764
  }
2764
2765
  );
2765
- } catch (g) {
2766
- t.value = g, f == null || f(g), n.value = !1;
2766
+ } catch (b) {
2767
+ t.value = b, v == null || v(b), n.value = !1;
2767
2768
  }
2768
2769
  }
2769
- async function l(s, d, c, f) {
2770
+ async function l(c, p, s, v) {
2770
2771
  return await o({
2771
2772
  method: "POST",
2772
2773
  url: "/prompt/clear",
2773
2774
  data: {
2774
- username: s,
2775
- project: d,
2776
- agentID: c,
2777
- formId: f
2775
+ username: c,
2776
+ project: p,
2777
+ agentID: s,
2778
+ formId: v
2778
2779
  }
2779
2780
  });
2780
2781
  }
2781
- async function u(s, d, c) {
2782
+ async function u(c, p, s) {
2782
2783
  return await o({
2783
2784
  method: "POST",
2784
2785
  url: "/prompt/feedback",
2785
2786
  data: {
2786
- messageSessionID: c,
2787
- feedbackValue: s,
2788
- feedbackComment: d
2787
+ messageSessionID: s,
2788
+ feedbackValue: c,
2789
+ feedbackComment: p
2789
2790
  }
2790
2791
  });
2791
2792
  }
@@ -2799,7 +2800,7 @@ function zt(e) {
2799
2800
  handleFeedback: u
2800
2801
  };
2801
2802
  }
2802
- const Ha = ["innerHTML"], Ne = /* @__PURE__ */ U({
2803
+ const Ha = ["innerHTML"], Me = /* @__PURE__ */ T({
2803
2804
  __name: "MarkdownRender",
2804
2805
  props: {
2805
2806
  source: {},
@@ -2807,7 +2808,7 @@ const Ha = ["innerHTML"], Ne = /* @__PURE__ */ U({
2807
2808
  plugins: {}
2808
2809
  },
2809
2810
  setup(e) {
2810
- const n = e, t = M(
2811
+ const n = e, t = N(
2811
2812
  new un({
2812
2813
  html: !0,
2813
2814
  breaks: !0,
@@ -2816,7 +2817,7 @@ const Ha = ["innerHTML"], Ne = /* @__PURE__ */ U({
2816
2817
  );
2817
2818
  n.plugins && n.plugins.forEach((r) => t.value.use(r));
2818
2819
  const o = w(() => t.value.render(n.source));
2819
- return (r, a) => (h(), $("div", {
2820
+ return (r, a) => (y(), $("div", {
2820
2821
  class: "markdown-renderer",
2821
2822
  innerHTML: o.value
2822
2823
  }, null, 8, Ha));
@@ -2834,7 +2835,7 @@ function Vt(e, n) {
2834
2835
  return n.toString();
2835
2836
  }
2836
2837
  }
2837
- const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar" }, Qa = { class: "q-field-preview__footer" }, Wa = /* @__PURE__ */ U({
2838
+ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar" }, Qa = { class: "q-field-preview__footer" }, Wa = /* @__PURE__ */ T({
2838
2839
  __name: "FieldPreview",
2839
2840
  props: {
2840
2841
  name: {},
@@ -2845,58 +2846,58 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
2845
2846
  },
2846
2847
  emits: ["apply", "regenerate"],
2847
2848
  setup(e, { emit: n }) {
2848
- const t = e, o = n, r = me(), a = M(t.applied), i = M(!1), l = w(() => t.disabled || a.value), u = w(() => t.disabled || i.value), s = w(() => t.type === "text" || t.type === "multiline_text" ? Ne : "div"), d = w(() => {
2849
- const y = {};
2850
- return s.value === Ne ? y.source = t.text : y.innerHTML = t.text, y;
2851
- }), c = w(() => {
2852
- const y = ["q-field-preview__content"];
2853
- return s.value !== Ne && y.push("preserve-whitespace"), y;
2849
+ const t = e, o = n, r = me(), a = N(t.applied), i = N(!1), l = w(() => t.disabled || a.value), u = w(() => t.disabled || i.value), c = w(() => t.type === "text" || t.type === "multiline_text" ? Me : "div"), p = w(() => {
2850
+ const g = {};
2851
+ return c.value === Me ? g.source = t.text : g.innerHTML = t.text, g;
2852
+ }), s = w(() => {
2853
+ const g = ["q-field-preview__content"];
2854
+ return c.value !== Me && g.push("preserve-whitespace"), g;
2854
2855
  });
2855
- function f() {
2856
+ function v() {
2856
2857
  if (a.value) return;
2857
2858
  a.value = !0;
2858
- const y = Vt(t.type, t.text);
2859
- o("apply", y);
2859
+ const g = Vt(t.type, t.text);
2860
+ o("apply", g);
2860
2861
  }
2861
- function g() {
2862
+ function b() {
2862
2863
  i.value || (i.value = !0, o("regenerate", t.name));
2863
2864
  }
2864
- return (y, A) => (h(), $("div", Za, [
2865
- F("div", Ja, [
2866
- F("span", null, [
2867
- je(le(v(r).suggestionsForField) + " ", 1),
2868
- F("b", null, le(t.name), 1)
2865
+ return (g, _) => (y(), $("div", Za, [
2866
+ R("div", Ja, [
2867
+ R("span", null, [
2868
+ Ge(ne(f(r).suggestionsForField) + " ", 1),
2869
+ R("b", null, ne(t.name), 1)
2869
2870
  ])
2870
2871
  ]),
2871
- F("div", {
2872
- class: Z(c.value)
2872
+ R("div", {
2873
+ class: Q(s.value)
2873
2874
  }, [
2874
- (h(), G(kt(s.value), Se(Te(d.value)), null, 16))
2875
+ (y(), H(_t(c.value), Se(Ne(p.value)), null, 16))
2875
2876
  ], 2),
2876
- F("div", Qa, [
2877
- S(v(Lt), { borderless: "" }, {
2877
+ R("div", Qa, [
2878
+ D(f(qt), { borderless: "" }, {
2878
2879
  default: E(() => [
2879
- S(v(ae), {
2880
- title: v(r).regenerateResponse,
2880
+ D(f(re), {
2881
+ title: f(r).regenerateResponse,
2881
2882
  disabled: u.value,
2882
2883
  readonly: u.value,
2883
2884
  borderless: "",
2884
- onClick: g
2885
+ onClick: b
2885
2886
  }, {
2886
2887
  default: E(() => [
2887
- S(v(ee), { icon: "reset" })
2888
+ D(f(Y), { icon: "reset" })
2888
2889
  ]),
2889
2890
  _: 1
2890
2891
  }, 8, ["title", "disabled", "readonly"]),
2891
- S(v(ae), {
2892
- label: v(r).apply,
2892
+ D(f(re), {
2893
+ label: f(r).apply,
2893
2894
  "data-testid": "apply-button",
2894
2895
  disabled: l.value,
2895
2896
  readonly: l.value,
2896
- onClick: f
2897
+ onClick: v
2897
2898
  }, {
2898
2899
  default: E(() => [
2899
- S(v(ee), { icon: "apply" })
2900
+ D(f(Y), { icon: "apply" })
2900
2901
  ]),
2901
2902
  _: 1
2902
2903
  }, 8, ["label", "disabled", "readonly"])
@@ -2906,14 +2907,14 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
2906
2907
  ])
2907
2908
  ]));
2908
2909
  }
2909
- }), Ya = { class: "pulsing-dots" }, Xa = { class: "generating-text" }, Ka = { class: "dots-container" }, er = /* @__PURE__ */ U({
2910
+ }), Ya = { class: "pulsing-dots" }, Xa = { class: "generating-text" }, Ka = { class: "dots-container" }, er = /* @__PURE__ */ T({
2910
2911
  __name: "PulseDots",
2911
2912
  setup(e) {
2912
2913
  const n = [1, 2, 3], t = me();
2913
- return (o, r) => (h(), $("div", Ya, [
2914
- F("span", Xa, le(v(t).generatingResponse), 1),
2915
- F("div", Ka, [
2916
- (h(), $(ce, null, Ce(n, (a, i) => F("span", {
2914
+ return (o, r) => (y(), $("div", Ya, [
2915
+ R("span", Xa, ne(f(t).generatingResponse), 1),
2916
+ R("div", Ka, [
2917
+ (y(), $(ce, null, Ce(n, (a, i) => R("span", {
2917
2918
  key: i,
2918
2919
  class: "dot",
2919
2920
  style: ye({ animationDelay: i * 0.2 + "s" })
@@ -2924,10 +2925,13 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
2924
2925
  }), tr = { class: "q-chatbot__message-container" }, nr = { class: "q-chatbot__message-wrapper" }, or = {
2925
2926
  key: 0,
2926
2927
  class: "q-chatbot__image-preview"
2927
- }, ar = ["src", "alt"], rr = { class: "q-chatbot__message" }, ir = {
2928
+ }, ar = ["src", "alt"], rr = {
2929
+ key: 1,
2930
+ class: "q-chatbot__file-preview-container"
2931
+ }, ir = { class: "q-chatbot__file-icon-container" }, lr = { class: "q-chatbot__file-info" }, sr = { class: "q-chatbot__file-name" }, cr = { class: "q-chatbot__file-extension" }, ur = { class: "q-chatbot__message" }, dr = {
2928
2932
  key: 1,
2929
- class: "q-chatbot__text"
2930
- }, lr = /* @__PURE__ */ U({
2933
+ class: "q-chatbot__text q-chatbot__user-text"
2934
+ }, pr = /* @__PURE__ */ T({
2931
2935
  __name: "ChatBotMessage",
2932
2936
  props: {
2933
2937
  sender: { default: "user" },
@@ -2935,7 +2939,7 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
2935
2939
  date: { default: () => /* @__PURE__ */ new Date() },
2936
2940
  loading: { type: Boolean },
2937
2941
  dateFormat: {},
2938
- imagePreviewUrl: {},
2942
+ file: {},
2939
2943
  apiEndpoint: {},
2940
2944
  sessionID: {},
2941
2945
  userImage: { default: void 0 },
@@ -2945,120 +2949,140 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
2945
2949
  },
2946
2950
  emits: ["apply-fields", "regenerate"],
2947
2951
  setup(e, { emit: n }) {
2948
- const t = e, o = n, r = me(), { handleFeedback: a } = zt(t.apiEndpoint), i = w(() => t.sender === "bot" && !Object.values(r || {}).includes(t.message || "") && !t.isWelcomeMessage), l = w(
2952
+ const t = e, o = n, r = me(), { handleFeedback: a } = zt(t.apiEndpoint), i = w(() => t.sender === "bot" && !Object.values(r || {}).includes(t.message || "") && !t.isWelcomeMessage), l = w(() => {
2953
+ var g;
2954
+ return ((g = t.file) == null ? void 0 : g.fileData.type.startsWith("image/")) ?? !1;
2955
+ }), u = w(
2949
2956
  () => t.sender === "bot" ? t.chatbotImage : t.userImage
2950
- );
2951
- function u() {
2957
+ ), c = w(() => {
2958
+ var _, B;
2959
+ return (_ = t.file) != null && _.fileData ? ((B = t.file.fileData.name.split(".").pop()) == null ? void 0 : B.toUpperCase()) ?? "" : "";
2960
+ });
2961
+ function p() {
2952
2962
  t.message && navigator.clipboard.writeText(t.message).then(() => {
2953
2963
  console.log("Response copied to clipboard");
2954
- }).catch((f) => {
2955
- console.error("Failed to copy response: ", f);
2964
+ }).catch((g) => {
2965
+ console.error("Failed to copy response: ", g);
2956
2966
  });
2957
2967
  }
2958
- function s(f, g) {
2959
- o("apply-fields", [{ id: g.id, text: f }]);
2968
+ function s(g, _) {
2969
+ o("apply-fields", [{ id: _.id, text: g }]);
2960
2970
  }
2961
- function d() {
2971
+ function v() {
2962
2972
  if (!t.fields || t.fields.length === 0) return;
2963
- const f = t.fields.map((g) => ({
2964
- id: g.id,
2965
- text: Vt(g.type, g.text)
2973
+ const g = t.fields.map((_) => ({
2974
+ id: _.id,
2975
+ text: Vt(_.type, _.text)
2966
2976
  }));
2967
- o("apply-fields", f);
2968
- }
2969
- function c(f, g) {
2970
- f === null || g === null || !t.sessionID || a(f, g, t.sessionID);
2971
- }
2972
- return (f, g) => (h(), $("div", tr, [
2973
- S(v(ee), {
2974
- type: "img",
2975
- icon: l.value,
2976
- alt: v(r).senderImage,
2977
- class: "q-chatbot__profile"
2978
- }, null, 8, ["icon", "alt"]),
2979
- F("div", nr, [
2980
- t.imagePreviewUrl && t.imagePreviewUrl.length > 0 ? (h(), $("div", or, [
2981
- F("img", {
2982
- src: t.imagePreviewUrl,
2983
- alt: v(r).imagePreview
2984
- }, null, 8, ar)
2985
- ])) : j("", !0),
2986
- F("div", rr, [
2987
- f.loading ? (h(), G(er, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (h(!0), $(ce, { key: 1 }, Ce(t.fields, (y, A) => (h(), G(v(Wa), {
2988
- key: A,
2989
- class: "q-chatbot__text",
2990
- text: y.text || "",
2991
- name: y.name,
2992
- type: y.type,
2993
- disabled: f.loading,
2994
- onRegenerate: () => o("regenerate", y.name),
2995
- onApply: (N) => s(N, y)
2996
- }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (h(), $(ce, { key: 2 }, [
2997
- t.sender === "bot" ? (h(), G(v(Ne), {
2998
- key: 0,
2977
+ o("apply-fields", g);
2978
+ }
2979
+ function b(g, _) {
2980
+ g === null || _ === null || !t.sessionID || a(g, _, t.sessionID);
2981
+ }
2982
+ return (g, _) => {
2983
+ var B, W, G;
2984
+ return y(), $("div", tr, [
2985
+ D(f(Y), {
2986
+ type: "img",
2987
+ icon: u.value,
2988
+ alt: f(r).senderImage,
2989
+ class: "q-chatbot__profile"
2990
+ }, null, 8, ["icon", "alt"]),
2991
+ R("div", nr, [
2992
+ l.value ? (y(), $("div", or, [
2993
+ R("img", {
2994
+ src: (B = t.file) == null ? void 0 : B.previewUrl,
2995
+ alt: f(r).imagePreview
2996
+ }, null, 8, ar)
2997
+ ])) : (W = t.file) != null && W.fileData && !l.value ? (y(), $("div", rr, [
2998
+ R("div", ir, [
2999
+ D(f(Y), {
3000
+ icon: "file",
3001
+ class: "q-chatbot__file-icon"
3002
+ })
3003
+ ]),
3004
+ R("div", lr, [
3005
+ R("span", sr, ne((G = t.file) == null ? void 0 : G.fileData.name), 1),
3006
+ R("span", cr, ne(c.value), 1)
3007
+ ])
3008
+ ])) : P("", !0),
3009
+ R("div", ur, [
3010
+ g.loading ? (y(), H(er, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (y(!0), $(ce, { key: 1 }, Ce(t.fields, (j, z) => (y(), H(f(Wa), {
3011
+ key: z,
2999
3012
  class: "q-chatbot__text",
3000
- source: t.message || ""
3001
- }, null, 8, ["source"])) : (h(), $("div", ir, le(t.message), 1))
3002
- ], 64))
3003
- ])
3004
- ]),
3005
- S(v(mr), {
3006
- "show-buttons": i.value,
3007
- loading: t.loading,
3008
- "date-format": t.dateFormat,
3009
- onCopyResponse: u,
3010
- onSubmitFeedback: c,
3011
- onApplyAll: d
3012
- }, null, 8, ["show-buttons", "loading", "date-format"])
3013
- ]));
3013
+ text: j.text || "",
3014
+ name: j.name,
3015
+ type: j.type,
3016
+ disabled: g.loading,
3017
+ onRegenerate: () => o("regenerate", j.name),
3018
+ onApply: (V) => s(V, j)
3019
+ }, null, 8, ["text", "name", "type", "disabled", "onRegenerate", "onApply"]))), 128)) : (y(), $(ce, { key: 2 }, [
3020
+ t.sender === "bot" ? (y(), H(f(Me), {
3021
+ key: 0,
3022
+ class: "q-chatbot__text",
3023
+ source: t.message || ""
3024
+ }, null, 8, ["source"])) : (y(), $("div", dr, ne(t.message), 1))
3025
+ ], 64))
3026
+ ])
3027
+ ]),
3028
+ D(f(wr), {
3029
+ "show-buttons": i.value,
3030
+ loading: t.loading,
3031
+ "date-format": t.dateFormat,
3032
+ onCopyResponse: p,
3033
+ onSubmitFeedback: b,
3034
+ onApplyAll: v
3035
+ }, null, 8, ["show-buttons", "loading", "date-format"])
3036
+ ]);
3037
+ };
3014
3038
  }
3015
- }), W = [];
3039
+ }), K = [];
3016
3040
  for (let e = 0; e < 256; ++e)
3017
- W.push((e + 256).toString(16).slice(1));
3018
- function sr(e, n = 0) {
3019
- return (W[e[n + 0]] + W[e[n + 1]] + W[e[n + 2]] + W[e[n + 3]] + "-" + W[e[n + 4]] + W[e[n + 5]] + "-" + W[e[n + 6]] + W[e[n + 7]] + "-" + W[e[n + 8]] + W[e[n + 9]] + "-" + W[e[n + 10]] + W[e[n + 11]] + W[e[n + 12]] + W[e[n + 13]] + W[e[n + 14]] + W[e[n + 15]]).toLowerCase();
3041
+ K.push((e + 256).toString(16).slice(1));
3042
+ function fr(e, n = 0) {
3043
+ return (K[e[n + 0]] + K[e[n + 1]] + K[e[n + 2]] + K[e[n + 3]] + "-" + K[e[n + 4]] + K[e[n + 5]] + "-" + K[e[n + 6]] + K[e[n + 7]] + "-" + K[e[n + 8]] + K[e[n + 9]] + "-" + K[e[n + 10]] + K[e[n + 11]] + K[e[n + 12]] + K[e[n + 13]] + K[e[n + 14]] + K[e[n + 15]]).toLowerCase();
3020
3044
  }
3021
3045
  let Je;
3022
- const cr = new Uint8Array(16);
3023
- function ur() {
3046
+ const vr = new Uint8Array(16);
3047
+ function mr() {
3024
3048
  if (!Je) {
3025
3049
  if (typeof crypto > "u" || !crypto.getRandomValues)
3026
3050
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3027
3051
  Je = crypto.getRandomValues.bind(crypto);
3028
3052
  }
3029
- return Je(cr);
3053
+ return Je(vr);
3030
3054
  }
3031
- const dr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), wt = { randomUUID: dr };
3055
+ const gr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), wt = { randomUUID: gr };
3032
3056
  function Ht(e, n, t) {
3033
3057
  var r;
3034
3058
  if (wt.randomUUID && !n && !e)
3035
3059
  return wt.randomUUID();
3036
3060
  e = e || {};
3037
- const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? ur();
3061
+ const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? mr();
3038
3062
  if (o.length < 16)
3039
3063
  throw new Error("Random bytes length must be >= 16");
3040
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, sr(o);
3064
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, fr(o);
3041
3065
  }
3042
- const pe = M([]), Le = M(1);
3066
+ const pe = N([]), qe = N(1);
3043
3067
  function Zt() {
3044
- function e(a, i, l, u, s) {
3045
- const d = {
3046
- id: Le.value++,
3068
+ function e(a, i, l, u, c) {
3069
+ const p = {
3070
+ id: qe.value++,
3047
3071
  message: a,
3048
3072
  date: /* @__PURE__ */ new Date(),
3049
3073
  sender: i || "bot",
3050
3074
  sessionID: u || Ht(),
3051
- imagePreviewUrl: l || void 0,
3052
- isWelcomeMessage: s,
3075
+ file: l,
3076
+ isWelcomeMessage: c,
3053
3077
  fields: []
3054
3078
  };
3055
- return pe.value.push(d), d;
3079
+ return pe.value.push(p), p;
3056
3080
  }
3057
3081
  function n() {
3058
- return pe.value.find((a) => a.id === Le.value - 1);
3082
+ return pe.value.find((a) => a.id === qe.value - 1);
3059
3083
  }
3060
3084
  function t() {
3061
- pe.value = [], Le.value = 1;
3085
+ pe.value = [], qe.value = 1;
3062
3086
  }
3063
3087
  function o(a) {
3064
3088
  pe.value = pe.value.filter((i) => i.id !== a);
@@ -3068,7 +3092,7 @@ function Zt() {
3068
3092
  }
3069
3093
  return {
3070
3094
  messages: pe,
3071
- nextMessageId: Le,
3095
+ nextMessageId: qe,
3072
3096
  addChatMessage: e,
3073
3097
  getLastMessage: n,
3074
3098
  clearMessages: t,
@@ -3076,10 +3100,10 @@ function Zt() {
3076
3100
  deleteMessageById: o
3077
3101
  };
3078
3102
  }
3079
- const pr = { class: "q-chatbot__dialog-title" }, fr = {
3103
+ const br = { class: "q-chatbot__dialog-title" }, hr = {
3080
3104
  key: 0,
3081
3105
  class: "q-chatbot__feedback-buttons"
3082
- }, vr = { class: "q-chatbot__sender" }, mr = /* @__PURE__ */ U({
3106
+ }, yr = { class: "q-chatbot__sender" }, wr = /* @__PURE__ */ T({
3083
3107
  __name: "ChatBotMessageButtons",
3084
3108
  props: {
3085
3109
  loading: { type: Boolean },
@@ -3089,10 +3113,10 @@ const pr = { class: "q-chatbot__dialog-title" }, fr = {
3089
3113
  },
3090
3114
  emits: ["submit-feedback", "copy-response", "apply-all"],
3091
3115
  setup(e, { emit: n }) {
3092
- const t = e, o = n, r = me(), { getLastMessage: a } = Zt(), i = M(!1), l = M(""), u = M(null), s = M(!1), d = w(() => t.loading || s.value), c = t.date || /* @__PURE__ */ new Date(), f = a(), g = w(() => f ? f.fields && f.fields.length > 1 : !1), y = [
3116
+ const t = e, o = n, r = me(), { getLastMessage: a } = Zt(), i = N(!1), l = N(""), u = N(null), c = N(!1), p = w(() => t.loading || c.value), s = t.date || /* @__PURE__ */ new Date(), v = a(), b = w(() => v ? v.fields && v.fields.length > 1 : !1), g = [
3093
3117
  {
3094
3118
  id: "confirm-btn",
3095
- action: O,
3119
+ action: x,
3096
3120
  props: {
3097
3121
  label: r.submitButton,
3098
3122
  class: "q-chatbot__dialog-confirm-button"
@@ -3111,110 +3135,111 @@ const pr = { class: "q-chatbot__dialog-title" }, fr = {
3111
3135
  icon: "cancel"
3112
3136
  }
3113
3137
  }
3114
- ], A = w(() => t.dateFormat ? te(c, "HH:mm") : c.toLocaleString()), N = w(() => `${A.value}`);
3115
- function te(V, X) {
3116
- const K = V.getDate().toString().padStart(2, "0"), p = (V.getMonth() + 1).toString().padStart(2, "0"), m = V.getFullYear().toString().padStart(2, "0"), k = V.getHours().toString().padStart(2, "0"), B = V.getMinutes().toString().padStart(2, "0"), I = V.getSeconds().toString().padStart(2, "0");
3117
- return X.replace("dd", K).replace("MM", p).replace("yyyy", m).replace("HH", k).replace("mm", B).replace("ss", I);
3138
+ ], _ = w(() => t.dateFormat ? W(s, "HH:mm") : s.toLocaleString()), B = w(() => `${_.value}`);
3139
+ function W(U, ee) {
3140
+ const te = U.getDate().toString().padStart(2, "0"), d = (U.getMonth() + 1).toString().padStart(2, "0"), m = U.getFullYear().toString().padStart(2, "0"), k = U.getHours().toString().padStart(2, "0"), q = U.getMinutes().toString().padStart(2, "0"), S = U.getSeconds().toString().padStart(2, "0");
3141
+ return ee.replace("dd", te).replace("MM", d).replace("yyyy", m).replace("HH", k).replace("mm", q).replace("ss", S);
3118
3142
  }
3119
- function H(V) {
3120
- i.value = !0, l.value = "", u.value = V;
3143
+ function G(U) {
3144
+ i.value = !0, l.value = "", u.value = U;
3121
3145
  }
3122
- function Q() {
3123
- H(0);
3146
+ function j() {
3147
+ G(0);
3124
3148
  }
3125
- function L() {
3126
- H(1);
3149
+ function z() {
3150
+ G(1);
3127
3151
  }
3128
- function T() {
3129
- s.value || (s.value = !0, o("apply-all"));
3152
+ function V() {
3153
+ c.value || (c.value = !0, o("apply-all"));
3130
3154
  }
3131
- function O() {
3155
+ function x() {
3132
3156
  u.value && (o("submit-feedback", u.value, l.value), i.value = !1, l.value = "", u.value = null);
3133
3157
  }
3134
- function Y() {
3158
+ function Z() {
3135
3159
  o("copy-response");
3136
3160
  }
3137
- return (V, X) => (h(), $(ce, null, [
3138
- S(v(Gt), {
3161
+ return (U, ee) => (y(), $(ce, null, [
3162
+ D(f(jt), {
3139
3163
  modelValue: i.value,
3140
- "onUpdate:modelValue": X[1] || (X[1] = (K) => i.value = K),
3164
+ "onUpdate:modelValue": ee[1] || (ee[1] = (te) => i.value = te),
3141
3165
  inline: "",
3142
- buttons: y
3166
+ buttons: g
3143
3167
  }, {
3144
3168
  body: E(() => [
3145
- F("div", pr, le(v(r).commentDialogTitle), 1),
3146
- S(v(Tt), {
3169
+ R("div", br, ne(f(r).commentDialogTitle), 1),
3170
+ D(f(Nt), {
3147
3171
  modelValue: l.value,
3148
- "onUpdate:modelValue": X[0] || (X[0] = (K) => l.value = K),
3172
+ "onUpdate:modelValue": ee[0] || (ee[0] = (te) => l.value = te),
3149
3173
  class: "q-chatbot__dialog-comment-input",
3150
3174
  "max-length": 150,
3151
3175
  size: "large",
3152
- placeholder: v(r).commentPlaceholder
3176
+ placeholder: f(r).commentPlaceholder
3153
3177
  }, null, 8, ["modelValue", "placeholder"])
3154
3178
  ]),
3155
3179
  _: 1
3156
3180
  }, 8, ["modelValue"]),
3157
- V.showButtons ? (h(), $("div", fr, [
3158
- S(v(Lt), null, {
3181
+ U.showButtons ? (y(), $("div", hr, [
3182
+ D(f(qt), null, {
3159
3183
  default: E(() => [
3160
- S(v(ae), {
3161
- title: v(r).goodResponse,
3184
+ D(f(re), {
3185
+ title: f(r).goodResponse,
3162
3186
  class: "q-chatbot__good-response-button",
3163
3187
  borderless: "",
3164
3188
  disabled: t.loading,
3165
- onClick: L
3189
+ onClick: z
3166
3190
  }, {
3167
3191
  default: E(() => [
3168
- S(v(ee), { icon: "thumb-up" })
3192
+ D(f(Y), { icon: "thumb-up" })
3169
3193
  ]),
3170
3194
  _: 1
3171
3195
  }, 8, ["title", "disabled"]),
3172
- S(v(ae), {
3173
- title: v(r).badResponse,
3196
+ D(f(re), {
3197
+ title: f(r).badResponse,
3174
3198
  class: "q-chatbot__bad-response-button",
3175
3199
  borderless: "",
3176
3200
  disabled: t.loading,
3177
- onClick: Q
3201
+ onClick: j
3178
3202
  }, {
3179
3203
  default: E(() => [
3180
- S(v(ee), { icon: "thumb-down" })
3204
+ D(f(Y), { icon: "thumb-down" })
3181
3205
  ]),
3182
3206
  _: 1
3183
3207
  }, 8, ["title", "disabled"]),
3184
- S(v(ae), {
3185
- title: v(r).copyResponse,
3208
+ D(f(re), {
3209
+ title: f(r).copyResponse,
3186
3210
  class: "q-chatbot__copy-button",
3187
3211
  borderless: "",
3188
3212
  disabled: t.loading,
3189
- onClick: Y
3213
+ onClick: Z
3190
3214
  }, {
3191
3215
  default: E(() => [
3192
- S(v(ee), { icon: "copy-content" })
3216
+ D(f(Y), { icon: "copy-content" })
3193
3217
  ]),
3194
3218
  _: 1
3195
3219
  }, 8, ["title", "disabled"]),
3196
- g.value ? (h(), G(v(ae), {
3220
+ b.value ? (y(), H(f(re), {
3197
3221
  key: 0,
3198
- title: v(r).applyAll,
3222
+ title: f(r).applyAll,
3199
3223
  class: "q-chatbot__apply-all-button",
3200
3224
  borderless: "",
3201
- disabled: d.value,
3202
- readonly: d.value,
3203
- onClick: T
3225
+ disabled: p.value,
3226
+ readonly: p.value,
3227
+ label: f(r).applyAll,
3228
+ onClick: V
3204
3229
  }, {
3205
3230
  default: E(() => [
3206
- S(v(ee), { icon: "apply-all" })
3231
+ D(f(Y), { icon: "apply-all" })
3207
3232
  ]),
3208
3233
  _: 1
3209
- }, 8, ["title", "disabled", "readonly"])) : j("", !0)
3234
+ }, 8, ["title", "disabled", "readonly", "label"])) : P("", !0)
3210
3235
  ]),
3211
3236
  _: 1
3212
3237
  })
3213
- ])) : j("", !0),
3214
- F("div", vr, le(N.value), 1)
3238
+ ])) : P("", !0),
3239
+ R("div", yr, ne(B.value), 1)
3215
3240
  ], 64));
3216
3241
  }
3217
- }), gr = { class: "q-chatbot__tools" }, br = { class: "q-chatbot__tools__select" }, hr = /* @__PURE__ */ U({
3242
+ }), _r = { class: "q-chatbot__tools" }, kr = { class: "q-chatbot__tools__select" }, $r = /* @__PURE__ */ T({
3218
3243
  __name: "ChatToolBar",
3219
3244
  props: {
3220
3245
  disabled: { type: Boolean },
@@ -3227,71 +3252,75 @@ const pr = { class: "q-chatbot__dialog-title" }, fr = {
3227
3252
  key: "",
3228
3253
  value: "Default Chat",
3229
3254
  formId: ""
3230
- }, i = w(() => t.availableAgents && t.availableAgents.length > 0), l = M(t.selectedAgentKey || a.key);
3231
- re(
3255
+ }, i = w(() => t.availableAgents && t.availableAgents.length > 0), l = N(t.selectedAgentKey || a.key);
3256
+ ie(
3232
3257
  () => t.selectedAgentKey,
3233
- (c) => {
3234
- l.value = c || a.key;
3258
+ (s) => {
3259
+ l.value = s || a.key;
3235
3260
  }
3236
3261
  );
3237
3262
  const u = w(() => {
3238
- var f;
3239
- const c = (f = t.availableAgents) == null ? void 0 : f.map((g) => ({
3240
- key: g.key,
3241
- value: g.value,
3242
- formId: g.formId
3263
+ var v;
3264
+ const s = (v = t.availableAgents) == null ? void 0 : v.map((b) => ({
3265
+ key: b.key,
3266
+ value: b.value,
3267
+ formId: b.formId
3243
3268
  }));
3244
- return c == null || c.push(a), c || [a];
3269
+ return s == null || s.push(a), s || [a];
3245
3270
  });
3246
- function s() {
3271
+ function c() {
3247
3272
  o("clear");
3248
3273
  }
3249
- function d(c) {
3250
- const f = u.value.find((g) => g.key === c);
3251
- if (f) {
3252
- if (f.key === a.key) {
3274
+ function p(s) {
3275
+ const v = u.value.find((b) => b.key === s);
3276
+ if (v) {
3277
+ if (v.key === a.key) {
3253
3278
  o("change-chat", { key: "", formId: "" });
3254
3279
  return;
3255
3280
  }
3256
- o("change-chat", f);
3281
+ o("change-chat", v);
3257
3282
  }
3258
3283
  }
3259
- return (c, f) => {
3260
- const g = ln("q-select");
3261
- return h(), $("div", gr, [
3262
- F("div", br, [
3263
- i.value ? (h(), G(g, {
3284
+ return (s, v) => {
3285
+ const b = ln("q-select");
3286
+ return y(), $("div", _r, [
3287
+ R("div", kr, [
3288
+ i.value ? (y(), H(b, {
3264
3289
  key: 0,
3265
3290
  modelValue: l.value,
3266
3291
  "onUpdate:modelValue": [
3267
- f[0] || (f[0] = (y) => l.value = y),
3268
- d
3292
+ v[0] || (v[0] = (g) => l.value = g),
3293
+ p
3269
3294
  ],
3270
3295
  inline: "",
3271
3296
  class: "q-chatbot__tools-select-input",
3272
3297
  size: "medium",
3273
3298
  items: u.value
3274
- }, null, 8, ["modelValue", "items"])) : j("", !0)
3299
+ }, null, 8, ["modelValue", "items"])) : P("", !0)
3275
3300
  ]),
3276
- S(v(ae), {
3277
- title: v(r),
3301
+ D(f(re), {
3302
+ title: f(r),
3278
3303
  disabled: t.disabled,
3279
3304
  class: "q-chatbot__tools-clear",
3280
3305
  borderless: "",
3281
- onClick: s
3306
+ onClick: c
3282
3307
  }, {
3283
3308
  default: E(() => [
3284
- S(v(ee), { icon: "bin" })
3309
+ D(f(Y), { icon: "bin" })
3285
3310
  ]),
3286
3311
  _: 1
3287
3312
  }, 8, ["title", "disabled"])
3288
3313
  ]);
3289
3314
  };
3290
3315
  }
3291
- }), yr = { class: "q-chatbot__input-wrapper" }, wr = {
3316
+ }), Ar = { class: "q-chatbot__input-wrapper" }, xr = {
3292
3317
  key: 0,
3293
- class: "q-chatbot__image-preview"
3294
- }, kr = ["src", "alt"], _r = { class: "q-chatbot__input" }, $r = { class: "q-chatbot__send-container" }, Ar = ["accept"], xr = /* @__PURE__ */ U({
3318
+ class: "q-chatbot__file-preview"
3319
+ }, Ir = ["src", "alt"], Sr = {
3320
+ key: 1,
3321
+ class: "q-chatbot__file-preview",
3322
+ tabindex: "0"
3323
+ }, Dr = { class: "q-chatbot__file-name" }, Er = { class: "q-chatbot__input" }, Cr = { class: "q-chatbot__send-container" }, Br = ["accept"], Rr = /* @__PURE__ */ T({
3295
3324
  __name: "ChatBotInput",
3296
3325
  props: {
3297
3326
  disabled: { type: Boolean },
@@ -3301,134 +3330,140 @@ const pr = { class: "q-chatbot__dialog-title" }, fr = {
3301
3330
  },
3302
3331
  emits: ["send-message"],
3303
3332
  setup(e, { emit: n }) {
3304
- const t = e, o = n, r = me(), a = M(null), i = M(""), l = w(() => ".png, .jpeg, .jpg, .svg, .webp"), u = M(!1), s = M(!1), d = M(t.userPrompt ?? ""), c = w(() => t.disabled || t.loading || d.value.trim().length === 0);
3305
- function f(L) {
3306
- L.preventDefault(), t.disabled || (s.value = !0);
3333
+ const t = e, o = n, r = me(), a = N(null), i = N(null), l = N(""), u = N(!1), c = w(() => ".png,.jpeg,.jpg,.svg,.webp,.pdf,.doc,.docx"), p = w(() => i.value ? i.value.type.startsWith("image/") ?? !1 : !1), s = N(t.userPrompt ?? ""), v = w(() => t.disabled || t.loading || s.value.trim().length === 0);
3334
+ function b(x) {
3335
+ x.preventDefault(), t.disabled || (u.value = !0);
3307
3336
  }
3308
3337
  const g = w(() => ({
3309
3338
  "q-chatbot__footer-disabled": t.disabled,
3310
- "drag-over": s.value && !u.value
3339
+ "drag-over": u.value && !i.value
3311
3340
  }));
3312
- function y(L) {
3313
- L.preventDefault(), s.value = !1;
3314
- }
3315
- function A(L) {
3316
- var Y;
3317
- if (L.preventDefault(), s.value = !1, t.disabled || u.value) return;
3318
- const T = (Y = L.dataTransfer) == null ? void 0 : Y.files;
3319
- if (!T) return;
3320
- const O = T[0];
3321
- if (O.type.startsWith("image/")) {
3322
- if (!a.value) return;
3323
- const V = new DataTransfer();
3324
- V.items.add(O), a.value.files = V.files, i.value = URL.createObjectURL(O), u.value = !0;
3325
- }
3326
- }
3327
- function N() {
3328
- if (!(d.value.trim() === "" || t.loading || t.disabled)) {
3329
- if (a.value && a.value.files && a.value.files.length > 0) {
3330
- const T = {
3331
- file: a.value.files[0],
3332
- previewUrl: i.value
3341
+ function _(x) {
3342
+ x.preventDefault(), u.value = !1;
3343
+ }
3344
+ function B(x) {
3345
+ var U;
3346
+ if (x.preventDefault(), u.value = !1, t.disabled || i.value) return;
3347
+ const Z = (U = x.dataTransfer) == null ? void 0 : U.files;
3348
+ Z && W(Z[0]);
3349
+ }
3350
+ function W(x) {
3351
+ i.value = x, x.type.startsWith("image/") ? l.value = URL.createObjectURL(x) : l.value = "";
3352
+ }
3353
+ function G() {
3354
+ if (!(s.value.trim() === "" || t.loading || t.disabled)) {
3355
+ if (i.value) {
3356
+ const x = {
3357
+ fileData: i.value,
3358
+ previewUrl: l.value ?? ""
3333
3359
  };
3334
- o("send-message", d.value, T), te();
3335
- } else o("send-message", d.value);
3336
- d.value = "";
3360
+ o("send-message", s.value, x), j();
3361
+ } else o("send-message", s.value);
3362
+ s.value = "";
3337
3363
  }
3338
3364
  }
3339
- function te() {
3340
- i.value = "", a.value && (a.value.value = "", a.value.files = null), u.value = !1;
3365
+ function j() {
3366
+ i.value = null, l.value = "", a.value && (a.value.value = "", a.value.files = null);
3341
3367
  }
3342
- function H() {
3343
- var L;
3344
- (L = a.value) == null || L.click();
3368
+ function z() {
3369
+ var x;
3370
+ (x = a.value) == null || x.click();
3345
3371
  }
3346
- function Q(L) {
3347
- const T = L.target;
3348
- a.value = T, T.files && T.files[0] && (i.value = URL.createObjectURL(T.files[0]), u.value = !0);
3372
+ function V(x) {
3373
+ var U;
3374
+ const Z = x.target;
3375
+ (U = Z.files) != null && U[0] && W(Z.files[0]);
3349
3376
  }
3350
- return (L, T) => (h(), $(ce, null, [
3351
- S(v(Mt), {
3352
- label: v(r).inputLabel
3377
+ return (x, Z) => (y(), $(ce, null, [
3378
+ D(f(Lt), {
3379
+ label: f(r).inputLabel
3353
3380
  }, null, 8, ["label"]),
3354
- F("div", {
3355
- class: Z(["q-chatbot__footer", g.value]),
3356
- onDragover: Me(f, ["prevent"]),
3357
- onDragleave: Me(y, ["prevent"]),
3358
- onDrop: Me(A, ["prevent"])
3381
+ R("div", {
3382
+ class: Q(["q-chatbot__footer", g.value]),
3383
+ onDragover: Le(b, ["prevent"]),
3384
+ onDragleave: Le(_, ["prevent"]),
3385
+ onDrop: Le(B, ["prevent"])
3359
3386
  }, [
3360
- F("div", yr, [
3361
- i.value ? (h(), $("div", wr, [
3362
- F("img", {
3363
- src: i.value,
3387
+ R("div", Ar, [
3388
+ i.value ? (y(), $("div", xr, [
3389
+ p.value ? (y(), $("img", {
3390
+ key: 0,
3391
+ class: "q-chatbot__image-preview",
3392
+ src: l.value,
3364
3393
  tabindex: "0",
3365
- alt: v(r).imagePreview
3366
- }, null, 8, kr),
3367
- S(v(ae), {
3368
- class: "q-chatbot__remove-image",
3394
+ alt: f(r).imagePreview
3395
+ }, null, 8, Ir)) : (y(), $("div", Sr, [
3396
+ D(f(Y), {
3397
+ icon: "file",
3398
+ class: "q-chatbot__file-icon"
3399
+ }),
3400
+ R("span", Dr, ne(i.value.name), 1)
3401
+ ])),
3402
+ D(f(re), {
3403
+ class: "q-chatbot__remove-file",
3369
3404
  tabindex: "0",
3370
3405
  flat: "",
3371
3406
  round: "",
3372
- onClick: te
3407
+ onClick: j
3373
3408
  }, {
3374
3409
  default: E(() => [
3375
- S(v(ee), { icon: "bin" })
3410
+ D(f(Y), { icon: "remove" })
3376
3411
  ]),
3377
3412
  _: 1
3378
3413
  })
3379
- ])) : j("", !0),
3380
- F("div", _r, [
3381
- S(v(Va), {
3382
- modelValue: d.value,
3383
- "onUpdate:modelValue": T[0] || (T[0] = (O) => d.value = O),
3414
+ ])) : P("", !0),
3415
+ R("div", Er, [
3416
+ D(f(Va), {
3417
+ modelValue: s.value,
3418
+ "onUpdate:modelValue": Z[0] || (Z[0] = (U) => s.value = U),
3384
3419
  size: "block",
3385
3420
  autosize: "",
3386
3421
  resize: "none",
3387
3422
  rows: 2,
3388
3423
  disabled: t.disabled,
3389
- onKeyup: sn(N, ["enter"])
3424
+ onKeyup: sn(G, ["enter"])
3390
3425
  }, null, 8, ["modelValue", "disabled"])
3426
+ ]),
3427
+ R("div", Cr, [
3428
+ D(f(re), {
3429
+ title: f(r).imageUpload,
3430
+ class: "q-chatbot__upload",
3431
+ disabled: t.disabled || t.loading || !!i.value,
3432
+ onClick: z
3433
+ }, {
3434
+ default: E(() => [
3435
+ D(f(Y), { icon: "upload" })
3436
+ ]),
3437
+ _: 1
3438
+ }, 8, ["title", "disabled"]),
3439
+ R("input", {
3440
+ id: "file-upload",
3441
+ ref_key: "fileInput",
3442
+ ref: a,
3443
+ type: "file",
3444
+ accept: c.value,
3445
+ class: "hidden-input",
3446
+ onChange: V
3447
+ }, null, 40, Br),
3448
+ D(f(re), {
3449
+ title: f(r).sendMessage,
3450
+ variant: "bold",
3451
+ class: "q-chatbot__send",
3452
+ disabled: v.value,
3453
+ readonly: v.value,
3454
+ onClick: G
3455
+ }, {
3456
+ default: E(() => [
3457
+ D(f(Y), { icon: "send" })
3458
+ ]),
3459
+ _: 1
3460
+ }, 8, ["title", "disabled", "readonly"])
3391
3461
  ])
3392
- ]),
3393
- F("div", $r, [
3394
- S(v(ae), {
3395
- title: v(r).imageUpload,
3396
- class: "q-chatbot__upload",
3397
- disabled: t.disabled || t.loading || u.value,
3398
- onClick: H
3399
- }, {
3400
- default: E(() => [
3401
- S(v(ee), { icon: "upload" })
3402
- ]),
3403
- _: 1
3404
- }, 8, ["title", "disabled"]),
3405
- F("input", {
3406
- id: "image-upload",
3407
- ref_key: "imageInput",
3408
- ref: a,
3409
- type: "file",
3410
- accept: l.value,
3411
- class: "hidden-input",
3412
- onChange: Q
3413
- }, null, 40, Ar),
3414
- S(v(ae), {
3415
- title: v(r).sendMessage,
3416
- variant: "bold",
3417
- class: "q-chatbot__send",
3418
- disabled: c.value,
3419
- readonly: c.value,
3420
- onClick: N
3421
- }, {
3422
- default: E(() => [
3423
- S(v(ee), { icon: "send" })
3424
- ]),
3425
- _: 1
3426
- }, 8, ["title", "disabled", "readonly"])
3427
3462
  ])
3428
3463
  ], 34)
3429
3464
  ], 64));
3430
3465
  }
3431
- }), Ir = "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", Sr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJl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SrgdOUFKGe1XZqdNG9gFlUX+NoC/A34A7gSVsOgpsCWcOAi4GTQrDji8CpSorQz4Y5NTRCd+Bes5UKQ2+bVfdDwHP1qH7mev5X0CklziW8WhfTgO8G9VDVHXAHo0w0i44wa0PkzMh+ApirpHi3Rn3/AnAUuuDySUA2xK/fYBaV99XS/k5Ev/w+6IPetTo6+TraP74MnZHnFWClkuK/Zfbv8+j6UYcaR8xh6JOAB9eovwIYH0VoU2QP5F3P7wxMRj9BiarSSzuwCvjA/L3VtdrFvPYE9ie6qqYb0Omgfh3VKcvIIy5czz8YfQbnFJpLbegDeZGmjqxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Er = { class: "q-chatbot" }, Dr = { class: "q-chatbot__content" }, Cr = { class: "q-chatbot__footer-container" }, Mr = /* @__PURE__ */ U({
3466
+ }), qr = "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='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vUyGfW5LOZFcDwyv4eH9gfDqTVYV8blmDwT0LeBxToKoCTVJSTK22H06IFzQBmFrFtP80cJmSYmnMwfYDfgscX+FXbAYuUFL8MYz+OCFf3AizSqw0B/UnwP3ATR2Dt2MC1kWfjDy/iplxg9llPB5Wv5waXOhQ4BGqq2/wMfAH4FYlxauWg/0icDn66Gg18eSrgdOUFKGe1XZqdNG9gFlUX+NoC/A34A7gSVsOgpsCWcOAi4GTQrDji8CpSorQz4Y5NTRCd+Bes5UKQ2+bVfdDwHP1qH7mev5X0CklziW8WhfTgO8G9VDVHXAHo0w0i44wa0PkzMh+ApirpHi3Rn3/AnAUuuDySUA2xK/fYBaV99XS/k5Ev/w+6IPetTo6+TraP74MnZHnFWClkuK/Zfbv8+j6UYcaR8xh6JOAB9eovwIYH0VoU2QP5F3P7wxMRj9BiarSSzuwCvjA/L3VtdrFvPYE9ie6qqYb0Omgfh3VKcvIIy5czz8YfQbnFJpLbegDeZGmjqxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Mr = { class: "q-chatbot" }, Nr = { class: "q-chatbot__content" }, Fr = { class: "q-chatbot__footer-container" }, Pr = /* @__PURE__ */ T({
3432
3467
  name: "ChatBot",
3433
3468
  __name: "ChatBot",
3434
3469
  props: {
@@ -3436,8 +3471,8 @@ const pr = { class: "q-chatbot__dialog-title" }, fr = {
3436
3471
  controllerEndpoint: {},
3437
3472
  username: {},
3438
3473
  projectPath: {},
3439
- userImage: { default: Sr },
3440
- chatbotImage: { default: Ir },
3474
+ userImage: { default: Lr },
3475
+ chatbotImage: { default: qr },
3441
3476
  dateFormat: {},
3442
3477
  agentData: { default: () => ({
3443
3478
  id: "",
@@ -3448,199 +3483,199 @@ const pr = { class: "q-chatbot__dialog-title" }, fr = {
3448
3483
  },
3449
3484
  emits: ["apply-fields", "direct-agent-chat"],
3450
3485
  setup(e, { emit: n }) {
3451
- const t = e, o = n, r = M(!0), a = M(null), i = M(!0), l = M(t.agentData.id), u = M(t.agentData.formId), s = me(), { isLoading: d, clearChatData: c, getChatData: f, getJobResultData: g, sendPrompt: y } = zt(
3486
+ const t = e, o = n, r = N(!0), a = N(null), i = N(!0), l = N(t.agentData.id), u = N(t.agentData.formId), c = me(), { isLoading: p, clearChatData: s, getChatData: v, getJobResultData: b, sendPrompt: g } = zt(
3452
3487
  t.apiEndpoint
3453
- ), { messages: A, addChatMessage: N, clearMessages: te, getLastMessage: H, deleteMessageById: Q } = Zt(), L = w(() => r.value || d.value);
3488
+ ), { messages: _, addChatMessage: B, clearMessages: W, getLastMessage: G, deleteMessageById: j } = Zt(), z = w(() => r.value || p.value);
3454
3489
  cn(() => {
3455
- var b;
3456
- (b = a.value) == null || b.removeEventListener("scroll", K);
3457
- }), De(() => {
3458
- O();
3490
+ var h;
3491
+ (h = a.value) == null || h.removeEventListener("scroll", te);
3492
+ }), Ee(() => {
3493
+ x();
3459
3494
  });
3460
- function T(b) {
3461
- r.value = b;
3495
+ function V(h) {
3496
+ r.value = h;
3462
3497
  }
3463
- async function O() {
3498
+ async function x() {
3464
3499
  try {
3465
- await Y();
3466
- } catch (b) {
3467
- N(s.loginError), console.error("Error logging in: " + b);
3500
+ await Z();
3501
+ } catch (h) {
3502
+ B(c.loginError), console.error("Error logging in: " + h);
3468
3503
  }
3469
3504
  }
3470
- async function Y() {
3471
- T(!0);
3472
- const { data: b, error: _ } = await f(
3505
+ async function Z() {
3506
+ V(!0);
3507
+ const { data: h, error: A } = await v(
3473
3508
  t.username,
3474
3509
  t.projectPath,
3475
3510
  l.value,
3476
3511
  u.value
3477
3512
  );
3478
- if (_ || !b || !b.success) {
3479
- T(!0), N(s.botIsSick), console.log("Error loading chat data: " + _);
3513
+ if (A || !h || !h.success) {
3514
+ V(!0), B(c.botIsSick), console.log("Error loading chat data: " + A);
3480
3515
  return;
3481
3516
  }
3482
- T(!1), V(), b.history.forEach(async (C) => {
3483
- const q = C.imageUrl ? t.controllerEndpoint + C.imageUrl : void 0;
3484
- N(
3485
- C.content,
3486
- C.type === "ai" ? "bot" : "user",
3487
- q,
3488
- C.sessionID
3517
+ V(!1), U(), h.history.forEach(async (M) => {
3518
+ B(
3519
+ M.content,
3520
+ M.type === "ai" ? "bot" : "user",
3521
+ void 0,
3522
+ // At this point we don't have preview URLs for past messages
3523
+ M.sessionID
3489
3524
  );
3490
3525
  });
3491
3526
  }
3492
- function V() {
3493
- const b = s.initialMessage;
3494
- N(b, "bot", null, void 0, !0);
3527
+ function U() {
3528
+ const h = c.initialMessage;
3529
+ B(h, "bot", void 0, void 0, !0);
3495
3530
  }
3496
- function X() {
3497
- te(), T(!1), i.value = !0;
3531
+ function ee() {
3532
+ W(), V(!1), i.value = !0;
3498
3533
  }
3499
- function K() {
3534
+ function te() {
3500
3535
  if (a.value) {
3501
- const { scrollTop: _, clientHeight: C, scrollHeight: q } = a.value;
3502
- i.value = _ + C >= q - 20;
3536
+ const { scrollTop: A, clientHeight: M, scrollHeight: F } = a.value;
3537
+ i.value = A + M >= F - 20;
3503
3538
  }
3504
3539
  }
3505
- async function p(b, _) {
3540
+ async function d(h, A) {
3506
3541
  a.value && a.value.scrollTo({
3507
3542
  top: a.value.scrollHeight,
3508
3543
  behavior: "smooth"
3509
- }), N(b, "user", _ == null ? void 0 : _.previewUrl), k(b, _ == null ? void 0 : _.file);
3544
+ }), B(h, "user", A), k(h, A == null ? void 0 : A.fileData);
3510
3545
  }
3511
- async function m(b) {
3546
+ async function m(h) {
3512
3547
  a.value && a.value.scrollTo({
3513
3548
  top: a.value.scrollHeight,
3514
3549
  behavior: "smooth"
3515
- }), N("", "bot");
3516
- const _ = H();
3517
- _ && await g(
3518
- b,
3519
- (C) => {
3520
- if (_.message += C, _.fields || (_.fields = []), _.fields.length > 0) {
3521
- const q = _.fields[_.fields.length - 1];
3522
- q.text = _.message;
3550
+ }), B("", "bot");
3551
+ const A = G();
3552
+ A && await b(
3553
+ h,
3554
+ (M) => {
3555
+ if (A.message += M, A.fields || (A.fields = []), A.fields.length > 0) {
3556
+ const F = A.fields[A.fields.length - 1];
3557
+ F.text = A.message;
3523
3558
  }
3524
3559
  },
3525
- (C) => {
3526
- var ne;
3527
- _.message = "";
3528
- const q = C;
3529
- (ne = _.fields) == null || ne.push({
3530
- id: q.id,
3531
- type: q.type,
3532
- name: q.name,
3533
- text: q.text
3560
+ (M) => {
3561
+ var oe;
3562
+ A.message = "";
3563
+ const F = M;
3564
+ (oe = A.fields) == null || oe.push({
3565
+ id: F.id,
3566
+ type: F.type,
3567
+ name: F.name,
3568
+ text: F.text
3534
3569
  });
3535
3570
  },
3536
- (C) => {
3537
- T(!0), N(s.botIsSick), console.error("Error getting job result: " + C), Q(_.id);
3571
+ (M) => {
3572
+ V(!0), B(c.botIsSick), console.error("Error getting job result: " + M), j(A.id);
3538
3573
  }
3539
3574
  );
3540
3575
  }
3541
- async function k(b, _) {
3542
- const C = Ht(), q = new FormData();
3543
- if (_ && q.append("image", _), q.append("message", b), q.append("project", t.projectPath), q.append("user", t.username), q.append("sessionID", C), l.value !== "")
3544
- o("direct-agent-chat", l.value, b);
3576
+ async function k(h, A) {
3577
+ const M = Ht(), F = new FormData();
3578
+ if (A && F.append("file", A), F.append("message", h), F.append("project", t.projectPath), F.append("user", t.username), F.append("sessionID", M), l.value !== "")
3579
+ o("direct-agent-chat", l.value, h);
3545
3580
  else {
3546
- N("", "bot");
3547
- const ne = H();
3548
- if (!ne) return;
3549
- await y(
3550
- q,
3551
- (ie) => {
3552
- ne && (ne.message += ie);
3581
+ B("", "bot");
3582
+ const oe = G();
3583
+ if (!oe) return;
3584
+ await g(
3585
+ F,
3586
+ (le) => {
3587
+ oe && (oe.message += le);
3553
3588
  },
3554
- (ie) => {
3555
- T(!0), N(s.botIsSick), console.error("Error sending message: " + ie), Q(ne.id);
3589
+ (le) => {
3590
+ V(!0), B(c.botIsSick), console.error("Error sending message: " + le), j(oe.id);
3556
3591
  }
3557
3592
  );
3558
3593
  }
3559
3594
  }
3560
- async function B() {
3561
- const { data: b, error: _ } = await c(
3595
+ async function q() {
3596
+ const { data: h, error: A } = await s(
3562
3597
  t.username,
3563
3598
  t.projectPath,
3564
3599
  l.value,
3565
3600
  u.value
3566
3601
  );
3567
- if (_ || !b || !b.success) {
3568
- T(!0), N(s.loginError), console.log("Error clearing chat: " + _);
3602
+ if (A || !h || !h.success) {
3603
+ V(!0), B(c.loginError), console.log("Error clearing chat: " + A);
3569
3604
  return;
3570
3605
  }
3571
- X(), V();
3606
+ ee(), U();
3572
3607
  }
3573
- function I(b) {
3574
- const _ = ["q-chatbot__messages-wrapper"];
3575
- return b === "user" && _.push("q-chatbot__messages-wrapper_right"), _;
3608
+ function S(h) {
3609
+ const A = ["q-chatbot__messages-wrapper"];
3610
+ return h === "user" && A.push("q-chatbot__messages-wrapper_right"), A;
3576
3611
  }
3577
- async function P(b) {
3578
- l.value = b.key, u.value = b.formId, X(), await O();
3612
+ async function O(h) {
3613
+ l.value = h.key, u.value = h.formId, ee(), await x();
3579
3614
  }
3580
- function D(b) {
3581
- !b || b.length === 0 || o("apply-fields", b);
3615
+ function C(h) {
3616
+ !h || h.length === 0 || o("apply-fields", h);
3582
3617
  }
3583
- function z(b) {
3584
- const _ = s.regenerateResponsePrompt.replace("{0}", b);
3585
- o("direct-agent-chat", l.value, _);
3618
+ function J(h) {
3619
+ const A = c.regenerateResponsePrompt.replace("{0}", h);
3620
+ o("direct-agent-chat", l.value, A);
3586
3621
  }
3587
- return re(
3622
+ return ie(
3588
3623
  () => t.availableAgents,
3589
- (b, _) => {
3590
- b.length === 0 && _.length > 0 && (l.value = "", u.value = "", X(), O());
3624
+ (h, A) => {
3625
+ h.length === 0 && A.length > 0 && (l.value = "", u.value = "", ee(), x());
3591
3626
  }
3592
- ), re(
3627
+ ), ie(
3593
3628
  () => t.agentData,
3594
- async (b, _) => {
3595
- if (L.value) return;
3596
- const C = b.jobId, q = _.jobId, ne = C !== q;
3597
- b.id !== l.value && await P({ formId: b.formId, key: b.id }), C && ne && await m(C);
3629
+ async (h, A) => {
3630
+ if (z.value) return;
3631
+ const M = h.jobId, F = A.jobId, oe = M !== F;
3632
+ h.id !== l.value && await O({ formId: h.formId, key: h.id }), M && oe && await m(M);
3598
3633
  },
3599
3634
  { deep: !0 }
3600
- ), (b, _) => (h(), $("div", Er, [
3601
- F("div", Dr, [
3602
- S(v(hr), {
3603
- disabled: L.value,
3635
+ ), (h, A) => (y(), $("div", Mr, [
3636
+ R("div", Nr, [
3637
+ D(f($r), {
3638
+ disabled: z.value,
3604
3639
  "available-agents": t.availableAgents,
3605
3640
  "selected-agent-key": l.value,
3606
- onClear: B,
3607
- onChangeChat: P
3641
+ onClear: q,
3642
+ onChangeChat: O
3608
3643
  }, null, 8, ["disabled", "available-agents", "selected-agent-key"]),
3609
- F("div", {
3644
+ R("div", {
3610
3645
  ref_key: "messagesContainer",
3611
3646
  ref: a,
3612
3647
  class: "q-chatbot__messages-container",
3613
- onScroll: K
3648
+ onScroll: te
3614
3649
  }, [
3615
- (h(!0), $(ce, null, Ce(v(A), (C) => (h(), $("div", {
3616
- key: C.id,
3617
- class: Z(I(C.sender))
3650
+ (y(!0), $(ce, null, Ce(f(_), (M) => (y(), $("div", {
3651
+ key: M.id,
3652
+ class: Q(S(M.sender))
3618
3653
  }, [
3619
- S(v(lr), se({ ref_for: !0 }, C, {
3654
+ D(f(pr), se({ ref_for: !0 }, M, {
3620
3655
  "date-format": t.dateFormat,
3621
3656
  "user-image": t.userImage,
3622
3657
  "chatbot-image": t.chatbotImage,
3623
- loading: v(d) && !C.message,
3624
- "image-preview-url": C.imagePreviewUrl,
3658
+ loading: f(p) && !M.message,
3659
+ file: M.file,
3625
3660
  "api-endpoint": t.apiEndpoint,
3626
- "session-i-d": C.sessionID,
3627
- fields: C.fields,
3628
- onRegenerate: z,
3629
- onApplyFields: D
3630
- }), null, 16, ["date-format", "user-image", "chatbot-image", "loading", "image-preview-url", "api-endpoint", "session-i-d", "fields"])
3661
+ "session-i-d": M.sessionID,
3662
+ fields: M.fields,
3663
+ onRegenerate: J,
3664
+ onApplyFields: C
3665
+ }), null, 16, ["date-format", "user-image", "chatbot-image", "loading", "file", "api-endpoint", "session-i-d", "fields"])
3631
3666
  ], 2))), 128))
3632
3667
  ], 544)
3633
3668
  ]),
3634
- F("div", Cr, [
3635
- S(v(xr), {
3636
- disabled: L.value,
3637
- loading: v(d),
3638
- onSendMessage: p
3669
+ R("div", Fr, [
3670
+ D(f(Rr), {
3671
+ disabled: z.value,
3672
+ loading: f(p),
3673
+ onSendMessage: d
3639
3674
  }, null, 8, ["disabled", "loading"])
3640
3675
  ])
3641
3676
  ]));
3642
3677
  }
3643
3678
  });
3644
3679
  export {
3645
- Mr as default
3680
+ Pr as default
3646
3681
  };