@quidgest/ui 0.14.5 → 0.14.6

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 (39) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +163 -20
  3. package/dist/ui.esm.js +1115 -961
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +193 -180
  7. package/dist/ui.scss +176 -22
  8. package/esm/components/QAccordion/QAccordion.d.ts +26 -0
  9. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -0
  10. package/esm/components/QAccordion/QAccordion.vue.js +27 -0
  11. package/esm/components/QAccordion/QAccordion.vue2.js +4 -0
  12. package/esm/components/QAccordion/index.d.ts +4 -0
  13. package/esm/components/QAccordion/index.d.ts.map +1 -0
  14. package/esm/components/QAccordion/index.js +6 -0
  15. package/esm/components/QAccordion/types.d.ts +7 -0
  16. package/esm/components/QAccordion/types.d.ts.map +1 -0
  17. package/esm/components/QCard/QCard.d.ts +1 -1
  18. package/esm/components/QCollapsible/QCollapsible.d.ts +35 -0
  19. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -0
  20. package/esm/components/QCollapsible/QCollapsible.vue.js +143 -0
  21. package/esm/components/QCollapsible/QCollapsible.vue2.js +4 -0
  22. package/esm/components/QCollapsible/index.d.ts +6 -0
  23. package/esm/components/QCollapsible/index.d.ts.map +1 -0
  24. package/esm/components/QCollapsible/index.js +6 -0
  25. package/esm/components/QCollapsible/types.d.ts +43 -0
  26. package/esm/components/QCollapsible/types.d.ts.map +1 -0
  27. package/esm/components/QCollapsible/types.js +8 -0
  28. package/esm/components/QCombobox/QCombobox.d.ts +9 -9
  29. package/esm/components/QIcon/QIconFont.d.ts +1 -1
  30. package/esm/components/QTextField/QTextField.d.ts +1 -1
  31. package/esm/components/QTooltip/QTooltip.d.ts +1 -1
  32. package/esm/components/index.d.ts +2 -0
  33. package/esm/components/index.d.ts.map +1 -1
  34. package/esm/components/index.js +56 -52
  35. package/esm/composables/group.d.ts +16 -0
  36. package/esm/composables/group.d.ts.map +1 -0
  37. package/esm/composables/group.js +34 -0
  38. package/esm/index.d.ts +2 -0
  39. package/package.json +4 -1
package/dist/ui.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as S, computed as y, openBlock as r, createElementBlock as u, normalizeClass as T, normalizeStyle as pe, getCurrentInstance as He, ref as D, provide as Ge, inject as Re, withModifiers as ce, createVNode as M, unref as m, createCommentVNode as _, createElementVNode as x, Fragment as U, createTextVNode as ue, toDisplayString as A, renderSlot as v, createBlock as I, resolveDynamicComponent as xe, h as ze, withCtx as k, normalizeProps as j, guardReactiveProps as ne, toRef as Fe, mergeModels as Y, useModel as ee, renderList as he, useAttrs as ut, withKeys as Be, mergeProps as Z, reactive as Me, watch as oe, nextTick as le, onMounted as Ke, onBeforeUnmount as ft, Teleport as pt, Transition as mt, createSlots as Le, withDirectives as vt, vModelDynamic as ht } from "vue";
1
+ import { getCurrentInstance as Ke, computed as h, ref as A, provide as Te, inject as Ae, watch as ee, defineComponent as I, mergeModels as G, toRef as Ie, useModel as X, openBlock as r, createElementBlock as f, renderSlot as p, normalizeClass as V, normalizeStyle as pe, withModifiers as fe, createVNode as Q, unref as v, createCommentVNode as b, createElementVNode as w, Fragment as N, createTextVNode as de, toDisplayString as D, createBlock as B, resolveDynamicComponent as Le, h as Pe, withCtx as k, normalizeProps as Y, guardReactiveProps as ne, renderList as he, useAttrs as pt, withKeys as Se, mergeProps as H, reactive as Ue, nextTick as le, onMounted as je, onBeforeUnmount as vt, Teleport as mt, Transition as ht, createSlots as xe, withDirectives as yt, vModelDynamic as bt } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.14.5
4
- * (c) 2024 Quidgest - Consultores de Gestão, S.A.
3
+ * Quidgest UI v0.14.6
4
+ * (c) 2025 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
7
- const Se = {
7
+ const Ce = {
8
8
  primary: "#008ad2",
9
9
  primaryLight: "#cde5ff",
10
10
  primaryDark: "#006398",
@@ -35,7 +35,7 @@ const Se = {
35
35
  onWarning: "#fff",
36
36
  onDanger: "#fff",
37
37
  onInfo: "#fff"
38
- }, je = {
38
+ }, We = {
39
39
  primary: "#009ff5",
40
40
  primaryLight: "#ade2ff",
41
41
  primaryDark: "#164965",
@@ -66,40 +66,25 @@ const Se = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
- defaultDarkColorScheme: je,
72
- defaultLightColorScheme: Se
73
- }, Symbol.toStringTag, { value: "Module" })), yt = /* @__PURE__ */ S({
74
- __name: "QSpinnerLoader",
75
- props: {
76
- size: { default: 48 },
77
- class: { default: void 0 }
78
- },
79
- setup(o) {
80
- const t = o, e = y(() => ({
81
- "font-size": t.size !== 48 ? `${t.size}px` : void 0
82
- }));
83
- return (l, n) => (r(), u("div", {
84
- class: T(["q-spinner-loader", t.class]),
85
- style: pe(e.value)
86
- }, null, 6));
87
- }
88
- });
89
- function Ce(o) {
71
+ defaultDarkColorScheme: We,
72
+ defaultLightColorScheme: Ce
73
+ }, Symbol.toStringTag, { value: "Module" }));
74
+ function Ve(o) {
90
75
  return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
91
76
  }
92
- function Pe(o) {
77
+ function Ne(o) {
93
78
  return o !== null && typeof o == "object" && !Array.isArray(o);
94
79
  }
95
- function Te(o = {}, t = {}) {
80
+ function Ee(o = {}, t = {}) {
96
81
  const e = {};
97
82
  for (const l in o)
98
83
  e[l] = o[l];
99
84
  for (const l in t) {
100
85
  const n = o[l], s = t[l];
101
- if (Pe(n) && Pe(s)) {
102
- e[l] = Te(
86
+ if (Ne(n) && Ne(s)) {
87
+ e[l] = Ee(
103
88
  n,
104
89
  s
105
90
  );
@@ -109,56 +94,121 @@ function Te(o = {}, t = {}) {
109
94
  }
110
95
  return e;
111
96
  }
112
- const Ve = "q-defaults";
113
- function bt() {
97
+ const De = "q-defaults";
98
+ function gt() {
114
99
  var s, d;
115
- const o = He();
100
+ const o = Ke();
116
101
  if (!o)
117
102
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
103
  const t = o.type.name ?? o.type.__name;
119
104
  if (!t) throw new Error("[Quidgest UI] Could not determine component name");
120
105
  const e = Xe(), l = (s = e.value) == null ? void 0 : s.Global, n = (d = e.value) == null ? void 0 : d[t];
121
- return y(() => Te(l, n));
106
+ return h(() => Ee(l, n));
122
107
  }
123
- function We(o) {
124
- if (Ce(o)) return;
125
- const t = Xe(), e = D(o), l = y(() => Ce(e.value) ? t.value : Te(t.value, e.value));
126
- Ge(Ve, l);
108
+ function Qe(o) {
109
+ if (Ve(o)) return;
110
+ const t = Xe(), e = A(o), l = h(() => Ve(e.value) ? t.value : Ee(t.value, e.value));
111
+ Te(De, l);
127
112
  }
128
113
  function Xe() {
129
- const o = Re(Ve, void 0);
114
+ const o = Ae(De, void 0);
130
115
  if (!o) throw new Error("[Quidgest UI] Could not find defaults instance");
131
116
  return o;
132
117
  }
133
- function Ye(o) {
118
+ const Ye = "q-group";
119
+ function _t(o) {
120
+ var e, l;
121
+ const t = {
122
+ active: A(((e = o.active) == null ? void 0 : e.value) ?? ((l = o.multiple) == null ? void 0 : l.value) ? [] : null),
123
+ multiple: h(() => {
124
+ var n;
125
+ return ((n = o.multiple) == null ? void 0 : n.value) || !1;
126
+ })
127
+ };
128
+ return ee(
129
+ () => t.multiple.value,
130
+ (n) => {
131
+ n && t.active.value ? t.active.value = [t.active.value] : n ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
132
+ }
133
+ ), Te(Ye, t), t;
134
+ }
135
+ function kt(o) {
136
+ const t = Ae(Ye, void 0);
137
+ if (!t) return;
138
+ const e = h(() => {
139
+ var n;
140
+ return Array.isArray(t.active.value) ? (n = t.active.value) == null ? void 0 : n.includes(o) : t.active.value === o;
141
+ });
142
+ return { isActive: e, toggle: () => {
143
+ var n;
144
+ Array.isArray(t.active.value) ? e.value ? t.active.value = (n = t.active.value) == null ? void 0 : n.filter((s) => s !== o) : t.active.value.push(o) : t.active.value = o;
145
+ } };
146
+ }
147
+ const $t = { class: "q-accordion" }, wt = /* @__PURE__ */ I({
148
+ __name: "QAccordion",
149
+ props: /* @__PURE__ */ G({
150
+ variant: {}
151
+ }, {
152
+ modelValue: {},
153
+ modelModifiers: {}
154
+ }),
155
+ emits: ["update:modelValue"],
156
+ setup(o) {
157
+ Qe({
158
+ QCollapsible: {
159
+ variant: Ie(o, "variant")
160
+ }
161
+ });
162
+ const e = X(o, "modelValue");
163
+ return _t({ active: e }), (l, n) => (r(), f("div", $t, [
164
+ p(l.$slots, "default")
165
+ ]));
166
+ }
167
+ });
168
+ function Ze(o) {
134
169
  return o.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
135
170
  }
136
- function gt(o, t) {
171
+ function qt(o, t) {
137
172
  var l;
138
- const e = Ye(t);
173
+ const e = Ze(t);
139
174
  return e ? typeof ((l = o.props) == null ? void 0 : l[e]) < "u" : !1;
140
175
  }
141
- function C(o) {
176
+ function S(o) {
142
177
  const t = o.setup;
143
178
  return t && (o.setup = (e, l) => {
144
- const n = bt();
145
- if (Ce(n.value)) return t(e, l);
146
- const s = He();
179
+ const n = gt();
180
+ if (Ve(n.value)) return t(e, l);
181
+ const s = Ke();
147
182
  if (s === null) return t(e, l);
148
183
  const d = new Proxy(e, {
149
184
  get(a, i) {
150
- var B;
151
- const f = Reflect.get(a, i), $ = (B = n.value) == null ? void 0 : B[i];
152
- return typeof i == "string" && !gt(s.vnode, i) ? $ ?? f : f;
185
+ var C;
186
+ const c = Reflect.get(a, i), $ = (C = n.value) == null ? void 0 : C[i];
187
+ return typeof i == "string" && !qt(s.vnode, i) ? $ ?? c : c;
153
188
  }
154
189
  });
155
190
  return t(d, l);
156
191
  }), o;
157
192
  }
158
- const _e = C(yt), _t = ["disabled"], kt = {
193
+ const Lt = S(wt), xt = /* @__PURE__ */ I({
194
+ __name: "QSpinnerLoader",
195
+ props: {
196
+ size: { default: 48 },
197
+ class: { default: void 0 }
198
+ },
199
+ setup(o) {
200
+ const t = o, e = h(() => ({
201
+ "font-size": t.size !== 48 ? `${t.size}px` : void 0
202
+ }));
203
+ return (l, n) => (r(), f("div", {
204
+ class: V(["q-spinner-loader", t.class]),
205
+ style: pe(e.value)
206
+ }, null, 6));
207
+ }
208
+ }), _e = S(xt), Bt = ["disabled"], It = {
159
209
  key: 0,
160
210
  class: "q-btn__spinner"
161
- }, $t = { class: "q-btn__content" }, wt = /* @__PURE__ */ S({
211
+ }, St = { class: "q-btn__content" }, Ct = /* @__PURE__ */ I({
162
212
  __name: "QButton",
163
213
  props: {
164
214
  active: { type: Boolean },
@@ -175,11 +225,11 @@ const _e = C(yt), _t = ["disabled"], kt = {
175
225
  },
176
226
  emits: ["click"],
177
227
  setup(o, { emit: t }) {
178
- const e = o, l = t, n = y(() => e.disabled || e.loading);
228
+ const e = o, l = t, n = h(() => e.disabled || e.loading);
179
229
  function s(a) {
180
230
  n.value || l("click", a);
181
231
  }
182
- const d = y(() => {
232
+ const d = h(() => {
183
233
  const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
184
234
  return [
185
235
  "q-btn",
@@ -195,27 +245,27 @@ const _e = C(yt), _t = ["disabled"], kt = {
195
245
  e.class
196
246
  ];
197
247
  });
198
- return (a, i) => (r(), u("button", {
248
+ return (a, i) => (r(), f("button", {
199
249
  type: "button",
200
- class: T(d.value),
250
+ class: V(d.value),
201
251
  disabled: n.value,
202
- onClick: ce(s, ["stop", "prevent"])
252
+ onClick: fe(s, ["stop", "prevent"])
203
253
  }, [
204
- a.loading ? (r(), u("div", kt, [
205
- M(m(_e), { size: 20 })
206
- ])) : _("", !0),
207
- x("span", $t, [
208
- a.iconOnRight ? (r(), u(U, { key: 0 }, [
209
- ue(A(e.label), 1)
210
- ], 64)) : _("", !0),
211
- v(a.$slots, "default"),
212
- a.iconOnRight ? _("", !0) : (r(), u(U, { key: 1 }, [
213
- ue(A(e.label), 1)
254
+ a.loading ? (r(), f("div", It, [
255
+ Q(v(_e), { size: 20 })
256
+ ])) : b("", !0),
257
+ w("span", St, [
258
+ a.iconOnRight ? (r(), f(N, { key: 0 }, [
259
+ de(D(e.label), 1)
260
+ ], 64)) : b("", !0),
261
+ p(a.$slots, "default"),
262
+ a.iconOnRight ? b("", !0) : (r(), f(N, { key: 1 }, [
263
+ de(D(e.label), 1)
214
264
  ], 64))
215
265
  ])
216
- ], 10, _t));
266
+ ], 10, Bt));
217
267
  }
218
- }), re = C(wt), qt = /* @__PURE__ */ S({
268
+ }), se = S(Ct), Vt = /* @__PURE__ */ I({
219
269
  __name: "QIcon",
220
270
  props: {
221
271
  icon: {},
@@ -224,25 +274,25 @@ const _e = C(yt), _t = ["disabled"], kt = {
224
274
  type: { default: "svg" }
225
275
  },
226
276
  setup(o) {
227
- const t = o, e = y(() => {
277
+ const t = o, e = h(() => {
228
278
  switch (t.type) {
229
279
  case "svg":
230
- return et;
280
+ return tt;
231
281
  case "font":
232
- return Ze;
233
- case "img":
234
282
  return Je;
283
+ case "img":
284
+ return et;
235
285
  default:
236
286
  return;
237
287
  }
238
288
  });
239
- return (l, n) => (r(), I(xe(e.value), {
240
- class: T(t.class),
289
+ return (l, n) => (r(), B(Le(e.value), {
290
+ class: V(t.class),
241
291
  icon: t.icon,
242
292
  size: t.size
243
293
  }, null, 8, ["class", "icon", "size"]));
244
294
  }
245
- }), xt = /* @__PURE__ */ S({
295
+ }), Tt = /* @__PURE__ */ I({
246
296
  __name: "QIconFont",
247
297
  props: {
248
298
  icon: {},
@@ -252,15 +302,15 @@ const _e = C(yt), _t = ["disabled"], kt = {
252
302
  variant: { default: "" }
253
303
  },
254
304
  setup(o) {
255
- const t = o, e = y(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = y(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), n = y(() => ({
305
+ const t = o, e = h(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = h(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), n = h(() => ({
256
306
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
257
307
  }));
258
- return (s, d) => (r(), u("i", {
259
- class: T(["q-icon", "q-icon__font", e.value, l.value, t.class]),
308
+ return (s, d) => (r(), f("i", {
309
+ class: V(["q-icon", "q-icon__font", e.value, l.value, t.class]),
260
310
  style: pe(n.value)
261
311
  }, null, 6));
262
312
  }
263
- }), Lt = ["src"], It = /* @__PURE__ */ S({
313
+ }), At = ["src"], Et = /* @__PURE__ */ I({
264
314
  __name: "QIconImg",
265
315
  props: {
266
316
  icon: {},
@@ -268,16 +318,16 @@ const _e = C(yt), _t = ["disabled"], kt = {
268
318
  class: {}
269
319
  },
270
320
  setup(o) {
271
- const t = o, e = y(() => ({
321
+ const t = o, e = h(() => ({
272
322
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
273
323
  }));
274
- return (l, n) => (r(), u("img", {
324
+ return (l, n) => (r(), f("img", {
275
325
  src: t.icon,
276
- class: T(["q-icon", "q-icon__img", t.class]),
326
+ class: V(["q-icon", "q-icon__img", t.class]),
277
327
  style: pe(e.value)
278
- }, null, 14, Lt));
328
+ }, null, 14, At));
279
329
  }
280
- }), be = {}, Bt = S({
330
+ }), be = {}, Dt = I({
281
331
  name: "InlineSvg",
282
332
  emits: {
283
333
  loaded: (o) => typeof o == "object",
@@ -288,9 +338,9 @@ const _e = C(yt), _t = ["disabled"], kt = {
288
338
  render() {
289
339
  if (!this.svgElSource) return null;
290
340
  const o = this.getSvgContent(this.svgElSource);
291
- if (!o) return ze("div", this.$attrs);
341
+ if (!o) return Pe("div", this.$attrs);
292
342
  const t = {};
293
- return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, ze("svg", t);
343
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Pe("svg", t);
294
344
  },
295
345
  props: {
296
346
  /**
@@ -350,7 +400,7 @@ const _e = C(yt), _t = ["disabled"], kt = {
350
400
  l !== !1 && l !== null && l !== void 0 && (o[e] = l);
351
401
  },
352
402
  getSvgContent(o) {
353
- return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), St(o, this.title)), o);
403
+ return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), Qt(o, this.title)), o);
354
404
  },
355
405
  /**
356
406
  * Get svgElSource
@@ -358,7 +408,7 @@ const _e = C(yt), _t = ["disabled"], kt = {
358
408
  */
359
409
  async getSource(o) {
360
410
  try {
361
- be[o] || (be[o] = Ct(this.download(o))), this.svgElSource && be[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
411
+ be[o] || (be[o] = Mt(this.download(o))), this.svgElSource && be[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
362
412
  const t = await be[o];
363
413
  this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
364
414
  } catch (t) {
@@ -385,7 +435,7 @@ const _e = C(yt), _t = ["disabled"], kt = {
385
435
  },
386
436
  expose: []
387
437
  });
388
- function St(o, t) {
438
+ function Qt(o, t) {
389
439
  const e = o.getElementsByTagName("title");
390
440
  if (e.length)
391
441
  e[0].textContent = t;
@@ -394,7 +444,7 @@ function St(o, t) {
394
444
  l.textContent = t, o.insertBefore(l, o.firstChild);
395
445
  }
396
446
  }
397
- function Ct(o) {
447
+ function Mt(o) {
398
448
  if (o.getIsPending) return o;
399
449
  let t = !0;
400
450
  const e = o.then(
@@ -405,7 +455,7 @@ function Ct(o) {
405
455
  );
406
456
  return e.getIsPending = () => t, e;
407
457
  }
408
- const Tt = /* @__PURE__ */ S({
458
+ const zt = /* @__PURE__ */ I({
409
459
  __name: "QIconSvg",
410
460
  props: {
411
461
  icon: {},
@@ -415,7 +465,7 @@ const Tt = /* @__PURE__ */ S({
415
465
  },
416
466
  emits: ["loaded", "unloaded"],
417
467
  setup(o, { emit: t }) {
418
- const e = o, l = t, n = y(() => ({
468
+ const e = o, l = t, n = h(() => ({
419
469
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
420
470
  }));
421
471
  function s(a) {
@@ -424,8 +474,8 @@ const Tt = /* @__PURE__ */ S({
424
474
  function d() {
425
475
  l("unloaded");
426
476
  }
427
- return (a, i) => (r(), I(m(Bt), {
428
- class: T(["q-icon", "q-icon__svg", e.class]),
477
+ return (a, i) => (r(), B(v(Dt), {
478
+ class: V(["q-icon", "q-icon__svg", e.class]),
429
479
  src: e.bundle,
430
480
  symbol: e.icon,
431
481
  style: pe(n.value),
@@ -433,49 +483,49 @@ const Tt = /* @__PURE__ */ S({
433
483
  onUnloaded: d
434
484
  }, null, 8, ["class", "src", "symbol", "style"]));
435
485
  }
436
- }), N = C(qt), Ze = C(xt), Je = C(It), et = C(Tt), Vt = {
486
+ }), O = S(Vt), Je = S(Tt), et = S(Et), tt = S(zt), Ft = {
437
487
  remove: {
438
488
  icon: "close"
439
489
  }
440
490
  };
441
- function Et(o) {
491
+ function Ot(o) {
442
492
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(o);
443
493
  }
444
- function Dt(o) {
494
+ function Pt(o) {
445
495
  const t = o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
446
496
  if (t) {
447
497
  const e = parseInt(t[1], 10), l = parseInt(t[2], 10), n = parseInt(t[3], 10);
448
498
  return { r: e, g: l, b: n };
449
499
  }
450
500
  }
451
- function tt(o) {
452
- if (Et(o)) {
501
+ function ot(o) {
502
+ if (Ot(o)) {
453
503
  o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
454
504
  const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), l = parseInt(o.slice(5, 7), 16);
455
505
  return { r: t, g: e, b: l };
456
506
  } else {
457
- const t = Dt(o);
507
+ const t = Pt(o);
458
508
  if (t) return t;
459
509
  }
460
510
  throw new Error("Invalid color format");
461
511
  }
462
- function At(o) {
512
+ function Ut(o) {
463
513
  const t = o.r / 255, e = o.g / 255, l = o.b / 255, n = Math.max(t, e, l), s = Math.min(t, e, l);
464
514
  let d = 0, a;
465
515
  const i = (n + s) / 2;
466
516
  if (n === s)
467
517
  d = a = 0;
468
518
  else {
469
- const f = n - s;
470
- switch (a = i > 0.5 ? f / (2 - n - s) : f / (n + s), n) {
519
+ const c = n - s;
520
+ switch (a = i > 0.5 ? c / (2 - n - s) : c / (n + s), n) {
471
521
  case t:
472
- d = (e - l) / f + (e < l ? 6 : 0);
522
+ d = (e - l) / c + (e < l ? 6 : 0);
473
523
  break;
474
524
  case e:
475
- d = (l - t) / f + 2;
525
+ d = (l - t) / c + 2;
476
526
  break;
477
527
  case l:
478
- d = (t - e) / f + 4;
528
+ d = (t - e) / c + 4;
479
529
  break;
480
530
  }
481
531
  d /= 6;
@@ -486,51 +536,51 @@ function At(o) {
486
536
  l: Math.round(i * 100)
487
537
  };
488
538
  }
489
- function Qt(o) {
539
+ function Nt(o) {
490
540
  return o > 50 ? "#000" : "#fff";
491
541
  }
492
- const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
542
+ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
493
543
  __name: "QBadge",
494
544
  props: {
495
545
  color: { default: "primary" },
496
546
  variant: { default: "tonal" },
497
547
  removable: { type: Boolean },
498
548
  pill: { type: Boolean },
499
- icons: { default: () => Vt }
549
+ icons: { default: () => Ft }
500
550
  },
501
551
  emits: ["click:remove"],
502
552
  setup(o, { emit: t }) {
503
- const e = o, l = t, n = y(
553
+ const e = o, l = t, n = h(
504
554
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
505
- ), s = y(() => {
555
+ ), s = h(() => {
506
556
  const i = n.value ? `q-badge--${e.color}` : void 0;
507
557
  return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
508
- }), d = y(() => {
509
- let i, f;
558
+ }), d = h(() => {
559
+ let i, c;
510
560
  if (!n.value)
511
561
  if (i = e.color, e.variant === "tonal")
512
- f = e.color;
562
+ c = e.color;
513
563
  else {
514
- const $ = tt(i), B = At($);
515
- f = Qt(B.l);
564
+ const $ = ot(i), C = Ut($);
565
+ c = Nt(C.l);
516
566
  }
517
567
  return {
518
568
  "--q-badge-color": i,
519
- "--q-badge-text-color": f
569
+ "--q-badge-text-color": c
520
570
  };
521
571
  });
522
572
  function a() {
523
573
  l("click:remove");
524
574
  }
525
- return (i, f) => (r(), u("span", {
526
- class: T(s.value),
575
+ return (i, c) => (r(), f("span", {
576
+ class: V(s.value),
527
577
  role: "presentation",
528
578
  style: pe(d.value)
529
579
  }, [
530
- f[0] || (f[0] = x("div", { class: "q-badge__underlay" }, null, -1)),
531
- x("div", zt, [
532
- v(i.$slots, "default"),
533
- e.removable ? (r(), I(m(re), {
580
+ c[0] || (c[0] = w("div", { class: "q-badge__underlay" }, null, -1)),
581
+ w("div", Rt, [
582
+ p(i.$slots, "default"),
583
+ e.removable ? (r(), B(v(se), {
534
584
  key: 0,
535
585
  class: "q-badge__remove",
536
586
  borderless: "",
@@ -538,14 +588,14 @@ const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
538
588
  onClick: a
539
589
  }, {
540
590
  default: k(() => [
541
- M(m(N), j(ne(e.icons.remove)), null, 16)
591
+ Q(v(O), Y(ne(e.icons.remove)), null, 16)
542
592
  ]),
543
593
  _: 1
544
- })) : _("", !0)
594
+ })) : b("", !0)
545
595
  ])
546
596
  ], 6));
547
597
  }
548
- }), Mt = C(Ft), Pt = /* @__PURE__ */ S({
598
+ }), Ht = S(Gt), Kt = /* @__PURE__ */ I({
549
599
  __name: "QButtonGroup",
550
600
  props: {
551
601
  disabled: { type: Boolean },
@@ -555,15 +605,15 @@ const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
555
605
  },
556
606
  setup(o) {
557
607
  const t = o;
558
- return We({
608
+ return Qe({
559
609
  QButton: {
560
610
  bStyle: "secondary",
561
- disabled: Fe(t, "disabled"),
562
- borderless: Fe(t, "borderless"),
611
+ disabled: Ie(t, "disabled"),
612
+ borderless: Ie(t, "borderless"),
563
613
  elevated: !1
564
614
  }
565
- }), (e, l) => (r(), u("div", {
566
- class: T([
615
+ }), (e, l) => (r(), f("div", {
616
+ class: V([
567
617
  "q-btn-group",
568
618
  {
569
619
  "q-btn-group--elevated": t.elevated
@@ -571,12 +621,12 @@ const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
571
621
  t.class
572
622
  ])
573
623
  }, [
574
- v(e.$slots, "default")
624
+ p(e.$slots, "default")
575
625
  ], 2));
576
626
  }
577
- }), ot = C(Pt), Ot = /* @__PURE__ */ S({
627
+ }), lt = S(Kt), jt = /* @__PURE__ */ I({
578
628
  __name: "QButtonToggle",
579
- props: /* @__PURE__ */ Y({
629
+ props: /* @__PURE__ */ G({
580
630
  options: {},
581
631
  disabled: { type: Boolean },
582
632
  borderless: { type: Boolean },
@@ -589,20 +639,20 @@ const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
589
639
  }),
590
640
  emits: ["update:modelValue"],
591
641
  setup(o) {
592
- const t = o, e = ee(o, "modelValue");
642
+ const t = o, e = X(o, "modelValue");
593
643
  function l(n) {
594
644
  e.value === n.key && !t.required ? e.value = void 0 : e.value = n.key;
595
645
  }
596
- return (n, s) => (r(), I(m(ot), {
646
+ return (n, s) => (r(), B(v(lt), {
597
647
  "b-style": "secondary",
598
- class: T(t.class),
648
+ class: V(t.class),
599
649
  disabled: t.disabled,
600
650
  borderless: t.borderless,
601
651
  elevated: t.elevated,
602
652
  role: "listbox"
603
653
  }, {
604
654
  default: k(() => [
605
- (r(!0), u(U, null, he(t.options, (d) => (r(), I(m(re), {
655
+ (r(!0), f(N, null, he(t.options, (d) => (r(), B(v(se), {
606
656
  key: d.key,
607
657
  title: d.title,
608
658
  label: d.label,
@@ -612,7 +662,7 @@ const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
612
662
  onClick: () => l(d)
613
663
  }, {
614
664
  default: k(() => [
615
- v(n.$slots, d.key)
665
+ p(n.$slots, d.key)
616
666
  ]),
617
667
  _: 2
618
668
  }, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
@@ -620,26 +670,26 @@ const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
620
670
  _: 3
621
671
  }, 8, ["class", "disabled", "borderless", "elevated"]));
622
672
  }
623
- }), Ut = C(Ot);
624
- let Nt = 0;
625
- function fe(o) {
626
- return o || `uid-${++Nt}`;
673
+ }), Wt = S(jt);
674
+ let Xt = 0;
675
+ function ce(o) {
676
+ return o || `uid-${++Xt}`;
627
677
  }
628
- const Ht = { class: "q-card__header" }, Gt = {
678
+ const Yt = { class: "q-card__header" }, Zt = {
629
679
  key: 0,
630
680
  class: "q-card__header-content"
631
- }, Rt = { class: "q-card__header-text" }, Kt = {
681
+ }, Jt = { class: "q-card__header-text" }, eo = {
632
682
  key: 0,
633
683
  class: "q-card__title",
634
684
  role: "cell"
635
- }, jt = {
685
+ }, to = {
636
686
  key: 1,
637
687
  class: "q-card__subtitle",
638
688
  role: "cell"
639
- }, Wt = { class: "q-card__content" }, Xt = {
689
+ }, oo = { class: "q-card__content" }, lo = {
640
690
  key: 0,
641
691
  class: "q-card__footer"
642
- }, Yt = /* @__PURE__ */ S({
692
+ }, no = /* @__PURE__ */ I({
643
693
  __name: "QCard",
644
694
  props: {
645
695
  id: { default: void 0 },
@@ -654,12 +704,12 @@ const Ht = { class: "q-card__header" }, Gt = {
654
704
  width: { default: void 0 }
655
705
  },
656
706
  setup(o) {
657
- const t = o, e = ut(), l = fe(t.id), n = y(() => {
658
- const i = t.width ? `q-card--${t.width}` : void 0, f = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, $ = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
707
+ const t = o, e = pt(), l = ce(t.id), n = h(() => {
708
+ const i = t.width ? `q-card--${t.width}` : void 0, c = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, $ = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
659
709
  return [
660
710
  "q-card",
661
711
  i,
662
- f,
712
+ c,
663
713
  $,
664
714
  {
665
715
  "q-card--clickable": s.value,
@@ -668,63 +718,63 @@ const Ht = { class: "q-card__header" }, Gt = {
668
718
  "q-card--disabled": t.disabled
669
719
  }
670
720
  ];
671
- }), s = y(() => !!e.onClick || t.href), d = y(() => t.disabled || t.loading), a = (i) => {
721
+ }), s = h(() => !!e.onClick || t.href), d = h(() => t.disabled || t.loading), a = (i) => {
672
722
  d.value && i.stopImmediatePropagation();
673
723
  };
674
- return (i, f) => (r(), I(xe(t.href ? "a" : "div"), {
675
- id: m(l),
676
- class: T([...n.value, i.$attrs.class]),
724
+ return (i, c) => (r(), B(Le(t.href ? "a" : "div"), {
725
+ id: v(l),
726
+ class: V([...n.value, i.$attrs.class]),
677
727
  href: t.href && !d.value ? t.href : void 0,
678
728
  onClick: a
679
729
  }, {
680
730
  default: k(() => [
681
- t.loading ? (r(), I(m(_e), {
731
+ t.loading ? (r(), B(v(_e), {
682
732
  key: 0,
683
733
  size: 36
684
- })) : (r(), u(U, { key: 1 }, [
685
- x("div", Ht, [
686
- v(i.$slots, "header", {}, () => [
687
- v(i.$slots, "header.prepend"),
688
- i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), u("div", Gt, [
689
- v(i.$slots, "header.content.prepend"),
690
- x("div", Rt, [
691
- i.$slots.title || t.title ? (r(), u("p", Kt, [
692
- i.$slots.title ? v(i.$slots, "title", { key: 0 }) : (r(), u(U, { key: 1 }, [
693
- ue(A(i.$props.title), 1)
734
+ })) : (r(), f(N, { key: 1 }, [
735
+ w("div", Yt, [
736
+ p(i.$slots, "header", {}, () => [
737
+ p(i.$slots, "header.prepend"),
738
+ i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), f("div", Zt, [
739
+ p(i.$slots, "header.content.prepend"),
740
+ w("div", Jt, [
741
+ i.$slots.title || t.title ? (r(), f("p", eo, [
742
+ i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (r(), f(N, { key: 1 }, [
743
+ de(D(i.$props.title), 1)
694
744
  ], 64))
695
- ])) : _("", !0),
696
- i.$slots.subtitle || t.subtitle ? (r(), u("p", jt, [
697
- i.$slots.subtitle ? v(i.$slots, "subtitle", { key: 0 }) : (r(), u(U, { key: 1 }, [
698
- ue(A(i.$props.subtitle), 1)
745
+ ])) : b("", !0),
746
+ i.$slots.subtitle || t.subtitle ? (r(), f("p", to, [
747
+ i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (r(), f(N, { key: 1 }, [
748
+ de(D(i.$props.subtitle), 1)
699
749
  ], 64))
700
- ])) : _("", !0)
750
+ ])) : b("", !0)
701
751
  ]),
702
- v(i.$slots, "header.content.append")
703
- ])) : _("", !0),
704
- v(i.$slots, "header.append")
752
+ p(i.$slots, "header.content.append")
753
+ ])) : b("", !0),
754
+ p(i.$slots, "header.append")
705
755
  ])
706
756
  ]),
707
- x("div", Wt, [
708
- v(i.$slots, "default")
757
+ w("div", oo, [
758
+ p(i.$slots, "default")
709
759
  ]),
710
- i.$slots.footer ? (r(), u("div", Xt, [
711
- v(i.$slots, "footer")
712
- ])) : _("", !0)
760
+ i.$slots.footer ? (r(), f("div", lo, [
761
+ p(i.$slots, "footer")
762
+ ])) : b("", !0)
713
763
  ], 64))
714
764
  ]),
715
765
  _: 3
716
766
  }, 8, ["id", "class", "href"]));
717
767
  }
718
- }), Zt = C(Yt), Jt = {
768
+ }), nt = S(no), so = {
719
769
  checked: {
720
770
  icon: "check"
721
771
  },
722
772
  indeterminate: {
723
773
  icon: "minus"
724
774
  }
725
- }, eo = { key: 0 }, to = ["id", "aria-checked", "disabled", "onKeydown"], oo = { key: 1 }, lo = ["checked", "disabled"], no = /* @__PURE__ */ S({
775
+ }, ao = { key: 0 }, io = ["id", "aria-checked", "disabled", "onKeydown"], ro = { key: 1 }, co = ["checked", "disabled"], uo = /* @__PURE__ */ I({
726
776
  __name: "QCheckbox",
727
- props: /* @__PURE__ */ Y({
777
+ props: /* @__PURE__ */ G({
728
778
  id: { default: void 0 },
729
779
  label: { default: "" },
730
780
  labelPlacement: { default: "right" },
@@ -734,14 +784,14 @@ const Ht = { class: "q-card__header" }, Gt = {
734
784
  color: { default: "primary" },
735
785
  size: { default: "regular" },
736
786
  class: { default: void 0 },
737
- icons: { default: () => Jt }
787
+ icons: { default: () => so }
738
788
  }, {
739
789
  modelValue: { type: Boolean },
740
790
  modelModifiers: {}
741
791
  }),
742
792
  emits: ["update:modelValue"],
743
793
  setup(o) {
744
- const t = o, e = ee(o, "modelValue"), l = fe(t.id), n = y(() => [
794
+ const t = o, e = X(o, "modelValue"), l = ce(t.id), n = h(() => [
745
795
  "q-checkbox",
746
796
  `q-checkbox--${t.size}`,
747
797
  `q-checkbox--${t.color}`,
@@ -756,42 +806,144 @@ const Ht = { class: "q-card__header" }, Gt = {
756
806
  function s() {
757
807
  !t.disabled && !t.readonly && (e.value = !e.value);
758
808
  }
759
- return (d, a) => (r(), u(U, null, [
760
- x("label", {
761
- class: T(n.value)
809
+ return (d, a) => (r(), f(N, null, [
810
+ w("label", {
811
+ class: V(n.value)
762
812
  }, [
763
- t.labelPlacement !== "right" ? (r(), u("span", eo, A(t.label), 1)) : _("", !0),
764
- x("button", {
765
- id: m(l),
813
+ t.labelPlacement !== "right" ? (r(), f("span", ao, D(t.label), 1)) : b("", !0),
814
+ w("button", {
815
+ id: v(l),
766
816
  role: "checkbox",
767
817
  type: "button",
768
818
  "aria-checked": t.indeterminate ? "mixed" : e.value,
769
819
  disabled: t.disabled || t.readonly,
770
820
  class: "q-checkbox__input",
771
- onClick: ce(s, ["prevent"]),
821
+ onClick: fe(s, ["prevent"]),
772
822
  onKeydown: [
773
- Be(ce(s, ["prevent"]), ["space"]),
774
- a[0] || (a[0] = Be(ce(() => {
823
+ Se(fe(s, ["prevent"]), ["space"]),
824
+ a[0] || (a[0] = Se(fe(() => {
775
825
  }, ["prevent"]), ["enter"]))
776
826
  ]
777
827
  }, [
778
- e.value || d.indeterminate ? (r(), I(m(N), Z({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : _("", !0)
779
- ], 40, to),
780
- t.labelPlacement === "right" ? (r(), u("span", oo, A(t.label), 1)) : _("", !0)
828
+ e.value || d.indeterminate ? (r(), B(v(O), H({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : b("", !0)
829
+ ], 40, io),
830
+ t.labelPlacement === "right" ? (r(), f("span", ro, D(t.label), 1)) : b("", !0)
781
831
  ], 2),
782
- x("input", {
832
+ w("input", {
783
833
  type: "checkbox",
784
834
  tabindex: "-1",
785
835
  "aria-hidden": "true",
786
836
  class: "q-checkbox__native-input",
787
837
  checked: !!e.value,
788
838
  disabled: t.disabled || t.readonly
789
- }, null, 8, lo)
839
+ }, null, 8, co)
790
840
  ], 64));
791
841
  }
792
- }), so = C(no), ao = /* @__PURE__ */ S({
842
+ }), fo = S(uo), po = {
843
+ chevron: {
844
+ icon: "chevron-down"
845
+ }
846
+ }, vo = {
847
+ key: 0,
848
+ class: "q-collapsible__header"
849
+ }, mo = { class: "q-collapsible__title" }, ho = { class: "q-collapsible__title-text" }, yo = {
850
+ key: 1,
851
+ class: "q-collapsible--required"
852
+ }, bo = {
853
+ key: 0,
854
+ class: "q-collapsible__subtitle"
855
+ }, go = { class: "q-collapsible__content-inner" }, _o = { class: "q-collapsible__content" }, ko = /* @__PURE__ */ I({
856
+ __name: "QCollapsible",
857
+ props: /* @__PURE__ */ G({
858
+ id: { default: void 0 },
859
+ title: {},
860
+ subtitle: {},
861
+ width: { default: "fit-content" },
862
+ required: { type: Boolean },
863
+ spacing: {},
864
+ variant: {},
865
+ iconRight: { type: Boolean },
866
+ icons: { default: () => po }
867
+ }, {
868
+ modelValue: { type: Boolean },
869
+ modelModifiers: {}
870
+ }),
871
+ emits: ["update:modelValue"],
872
+ setup(o) {
873
+ const t = o, e = X(o, "modelValue"), l = ce(t.id), n = kt(l), s = h(() => t.width === "block" ? "block" : void 0), d = h(() => {
874
+ const c = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, $ = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
875
+ return [
876
+ "q-collapsible",
877
+ c,
878
+ $,
879
+ {
880
+ "q-collapsible--icon-right": t.iconRight,
881
+ "q-collapsible--expanded": e.value
882
+ }
883
+ ];
884
+ }), a = h(() => [
885
+ "q-collapsible__content-wrapper",
886
+ {
887
+ "q-collapsible__content-show": e.value
888
+ }
889
+ ]), i = () => {
890
+ e.value = !e.value, n == null || n.toggle();
891
+ };
892
+ return ee(
893
+ () => n == null ? void 0 : n.isActive.value,
894
+ () => e.value = n == null ? void 0 : n.isActive.value
895
+ ), (c, $) => (r(), B(v(nt), {
896
+ id: v(l),
897
+ class: V(d.value),
898
+ width: s.value
899
+ }, {
900
+ header: k(() => [
901
+ c.title ? (r(), f("div", vo, [
902
+ Q(v(se), {
903
+ "b-style": "tertiary",
904
+ class: "q-collapsible__btn",
905
+ onClick: i
906
+ }, {
907
+ default: k(() => [
908
+ w("div", mo, [
909
+ c.iconRight ? b("", !0) : p(c.$slots, "icon", { key: 0 }, () => [
910
+ Q(v(O), H({ class: "q-collapsible__chevron" }, t.icons.chevron), null, 16)
911
+ ]),
912
+ p(c.$slots, "title.prepend"),
913
+ w("h4", ho, D(c.title), 1),
914
+ t.required ? (r(), f("span", yo, " * ")) : b("", !0),
915
+ p(c.$slots, "title.append"),
916
+ c.iconRight ? p(c.$slots, "icon", { key: 2 }, () => [
917
+ Q(v(O), H({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, t.icons.chevron), null, 16)
918
+ ]) : b("", !0)
919
+ ]),
920
+ c.$slots.subtitle || c.subtitle ? (r(), f("div", bo, [
921
+ p(c.$slots, "subtitle", {}, () => [
922
+ de(D(c.subtitle), 1)
923
+ ])
924
+ ])) : b("", !0)
925
+ ]),
926
+ _: 3
927
+ })
928
+ ])) : b("", !0)
929
+ ]),
930
+ default: k(() => [
931
+ w("div", {
932
+ class: V(a.value)
933
+ }, [
934
+ w("div", go, [
935
+ w("div", _o, [
936
+ p(c.$slots, "default")
937
+ ])
938
+ ])
939
+ ], 2)
940
+ ]),
941
+ _: 3
942
+ }, 8, ["id", "class", "width"]));
943
+ }
944
+ }), $o = S(ko), wo = /* @__PURE__ */ I({
793
945
  __name: "QList",
794
- props: /* @__PURE__ */ Y({
946
+ props: /* @__PURE__ */ G({
795
947
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
796
948
  items: {},
797
949
  groups: { default: () => [] },
@@ -808,142 +960,142 @@ const Ht = { class: "q-card__header" }, Gt = {
808
960
  }),
809
961
  emits: ["update:modelValue"],
810
962
  setup(o, { expose: t }) {
811
- const e = o, l = ee(o, "modelValue"), n = D(!1), s = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => e.groups.length ? e.groups.filter(
812
- (h) => e.items.some((q) => q.group === h.id)
813
- ) : [{ id: "", title: "" }]), a = D(null);
814
- function i(h) {
815
- l.value = h;
963
+ const e = o, l = X(o, "modelValue"), n = A(!1), s = h(() => d.value.length > 1 ? "div" : "ul"), d = h(() => e.groups.length ? e.groups.filter(
964
+ (y) => e.items.some((L) => L.group === y.id)
965
+ ) : [{ id: "", title: "" }]), a = A(null);
966
+ function i(y) {
967
+ l.value = y;
816
968
  }
817
- function f() {
969
+ function c() {
818
970
  n.value = !0;
819
971
  }
820
972
  function $() {
821
973
  n.value = !1;
822
974
  }
823
- function B(h) {
824
- var g;
825
- if ((g = a.value) != null && g.contains(h.relatedTarget))
975
+ function C(y) {
976
+ var _;
977
+ if ((_ = a.value) != null && _.contains(y.relatedTarget))
826
978
  return;
827
- let q;
828
- l.value ? q = e.items.findIndex((R) => R[e.itemValue] === l.value) : q = z();
829
- const p = n.value;
830
- V(q, p);
979
+ let L;
980
+ l.value ? L = e.items.findIndex((j) => j[e.itemValue] === l.value) : L = z();
981
+ const m = n.value;
982
+ T(L, m);
831
983
  }
832
- function O(h) {
833
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(h.key) && h.preventDefault(), h.key) {
984
+ function U(y) {
985
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(y.key) && y.preventDefault(), y.key) {
834
986
  case "ArrowDown":
835
- Q("next");
987
+ M("next");
836
988
  break;
837
989
  case "ArrowUp":
838
- Q("prev");
990
+ M("prev");
839
991
  break;
840
992
  case "Home":
841
- Q("first");
993
+ M("first");
842
994
  break;
843
995
  case "End":
844
- Q("last");
996
+ M("last");
845
997
  break;
846
998
  }
847
999
  }
848
- function Q(h) {
849
- switch (h) {
1000
+ function M(y) {
1001
+ switch (y) {
850
1002
  case "next":
851
1003
  case "prev":
852
- V(W(h));
1004
+ T(Z(y));
853
1005
  break;
854
1006
  case "first":
855
- V(z());
1007
+ T(z());
856
1008
  break;
857
1009
  case "last":
858
- V(G());
1010
+ T(K());
859
1011
  break;
860
1012
  }
861
1013
  }
862
- function V(h, q = !1) {
863
- var g;
864
- (g = b()[h]) == null || g.focus({ preventScroll: q });
1014
+ function T(y, L = !1) {
1015
+ var _;
1016
+ (_ = g()[y]) == null || _.focus({ preventScroll: L });
865
1017
  }
866
- function b() {
867
- var q;
868
- const h = (q = a.value) == null ? void 0 : q.querySelectorAll("li");
869
- return h ? Array.from(h) : [];
1018
+ function g() {
1019
+ var L;
1020
+ const y = (L = a.value) == null ? void 0 : L.querySelectorAll("li");
1021
+ return y ? Array.from(y) : [];
870
1022
  }
871
- function E(h) {
872
- return b()[h];
1023
+ function E(y) {
1024
+ return g()[y];
873
1025
  }
874
1026
  function P() {
875
- return b().indexOf(document.activeElement);
1027
+ return g().indexOf(document.activeElement);
876
1028
  }
877
1029
  function z() {
878
- const h = b(), q = h.find((p) => H(p));
879
- return q ? h.indexOf(q) : -1;
880
- }
881
- function G() {
882
- const h = b(), q = [...h].reverse().find((p) => H(p));
883
- return q ? h.indexOf(q) : -1;
884
- }
885
- function se(h, q, p) {
886
- return q === "prev" && h === 0 || q === "next" && h === p.length - 1;
887
- }
888
- function W(h) {
889
- const q = P();
890
- return ae(q, h);
891
- }
892
- function ae(h, q) {
893
- const p = b();
894
- if (se(h, q, p))
895
- return h;
896
- let g = h + (q === "next" ? 1 : -1);
897
- for (; !H(p[g]); ) {
898
- if (se(g, q, p))
899
- return h;
900
- g += q === "next" ? 1 : -1;
1030
+ const y = g(), L = y.find((m) => R(m));
1031
+ return L ? y.indexOf(L) : -1;
1032
+ }
1033
+ function K() {
1034
+ const y = g(), L = [...y].reverse().find((m) => R(m));
1035
+ return L ? y.indexOf(L) : -1;
1036
+ }
1037
+ function ae(y, L, m) {
1038
+ return L === "prev" && y === 0 || L === "next" && y === m.length - 1;
1039
+ }
1040
+ function Z(y) {
1041
+ const L = P();
1042
+ return ie(L, y);
1043
+ }
1044
+ function ie(y, L) {
1045
+ const m = g();
1046
+ if (ae(y, L, m))
1047
+ return y;
1048
+ let _ = y + (L === "next" ? 1 : -1);
1049
+ for (; !R(m[_]); ) {
1050
+ if (ae(_, L, m))
1051
+ return y;
1052
+ _ += L === "next" ? 1 : -1;
901
1053
  }
902
- return g;
1054
+ return _;
903
1055
  }
904
- function H(h) {
905
- return h.tabIndex === -2;
1056
+ function R(y) {
1057
+ return y.tabIndex === -2;
906
1058
  }
907
- function J(h) {
908
- return h ? e.items.filter((q) => q.group === h) : e.items;
1059
+ function te(y) {
1060
+ return y ? e.items.filter((L) => L.group === y) : e.items;
909
1061
  }
910
1062
  return t({
911
- focusItem: V,
1063
+ focusItem: T,
912
1064
  getItem: E,
913
- getAdjacentItemIndex: ae,
1065
+ getAdjacentItemIndex: ie,
914
1066
  getFirstFocusableItemIndex: z,
915
- getLastFocusableItemIndex: G
916
- }), (h, q) => (r(), I(xe(s.value), {
1067
+ getLastFocusableItemIndex: K
1068
+ }), (y, L) => (r(), B(Le(s.value), {
917
1069
  ref_key: "listRef",
918
1070
  ref: a,
919
- class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
1071
+ class: V(["q-list", { "q-list--disabled": e.disabled }, e.class]),
920
1072
  role: "listbox",
921
1073
  tabindex: e.disabled ? -1 : 0,
922
- onFocus: B,
923
- onMousedown: f,
1074
+ onFocus: C,
1075
+ onMousedown: c,
924
1076
  onMouseup: $,
925
- onKeydown: O
1077
+ onKeydown: U
926
1078
  }, {
927
1079
  default: k(() => [
928
- (r(!0), u(U, null, he(d.value, (p) => (r(), I(m(nt), {
929
- key: p.id,
930
- id: p.id,
931
- title: d.value.length === 1 ? void 0 : p.title
1080
+ (r(!0), f(N, null, he(d.value, (m) => (r(), B(v(at), {
1081
+ key: m.id,
1082
+ id: m.id,
1083
+ title: d.value.length === 1 ? void 0 : m.title
932
1084
  }, {
933
1085
  default: k(() => [
934
- (r(!0), u(U, null, he(J(p.id), (g) => (r(), I(m(lt), {
935
- key: g[e.itemValue],
936
- value: g[e.itemValue],
937
- label: g[e.itemLabel],
938
- description: g.description,
939
- icon: g.icon,
940
- disabled: e.disabled || p.disabled || g.disabled,
941
- highlighted: e.highlighted === g[e.itemValue],
942
- selected: h.selectable && l.value === g[e.itemValue],
1086
+ (r(!0), f(N, null, he(te(m.id), (_) => (r(), B(v(st), {
1087
+ key: _[e.itemValue],
1088
+ value: _[e.itemValue],
1089
+ label: _[e.itemLabel],
1090
+ description: _.description,
1091
+ icon: _.icon,
1092
+ disabled: e.disabled || m.disabled || _.disabled,
1093
+ highlighted: e.highlighted === _[e.itemValue],
1094
+ selected: y.selectable && l.value === _[e.itemValue],
943
1095
  onSelect: i
944
1096
  }, {
945
1097
  default: k(() => [
946
- v(h.$slots, "item", { item: g })
1098
+ p(y.$slots, "item", { item: _ })
947
1099
  ]),
948
1100
  _: 2
949
1101
  }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -954,17 +1106,17 @@ const Ht = { class: "q-card__header" }, Gt = {
954
1106
  _: 3
955
1107
  }, 40, ["class", "tabindex"]));
956
1108
  }
957
- }), io = {
1109
+ }), qo = {
958
1110
  check: {
959
1111
  icon: "check"
960
1112
  },
961
1113
  description: {
962
1114
  icon: "information-outline"
963
1115
  }
964
- }, ro = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], co = { class: "q-list-item__container" }, uo = { class: "q-list-item__content" }, fo = {
1116
+ }, Lo = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], xo = { class: "q-list-item__container" }, Bo = { class: "q-list-item__content" }, Io = {
965
1117
  key: 0,
966
1118
  class: "q-list-item__description"
967
- }, po = { class: "q-list-item__check-container" }, mo = /* @__PURE__ */ S({
1119
+ }, So = { class: "q-list-item__check-container" }, Co = /* @__PURE__ */ I({
968
1120
  __name: "QListItem",
969
1121
  props: {
970
1122
  value: { type: [String, Number, Boolean, Symbol] },
@@ -974,23 +1126,23 @@ const Ht = { class: "q-card__header" }, Gt = {
974
1126
  highlighted: { type: Boolean },
975
1127
  disabled: { type: Boolean },
976
1128
  description: { default: void 0 },
977
- icons: { default: () => io }
1129
+ icons: { default: () => qo }
978
1130
  },
979
1131
  emits: ["select"],
980
1132
  setup(o, { emit: t }) {
981
- const e = o, l = t, n = fe();
1133
+ const e = o, l = t, n = ce();
982
1134
  function s() {
983
1135
  e.disabled || l("select", e.value);
984
1136
  }
985
1137
  function d(a) {
986
1138
  a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
987
1139
  }
988
- return (a, i) => (r(), u("li", {
989
- id: m(n),
1140
+ return (a, i) => (r(), f("li", {
1141
+ id: v(n),
990
1142
  "data-key": e.value,
991
1143
  role: "option",
992
1144
  tabindex: e.disabled ? void 0 : -2,
993
- class: T([
1145
+ class: V([
994
1146
  "q-list-item",
995
1147
  {
996
1148
  "q-list-item--disabled": e.disabled,
@@ -1001,107 +1153,107 @@ const Ht = { class: "q-card__header" }, Gt = {
1001
1153
  "aria-label": e.label,
1002
1154
  "aria-selected": e.disabled ? void 0 : e.selected,
1003
1155
  onKeydown: d,
1004
- onClick: ce(s, ["stop", "prevent"])
1156
+ onClick: fe(s, ["stop", "prevent"])
1005
1157
  }, [
1006
- x("div", co, [
1007
- x("div", uo, [
1008
- v(a.$slots, "default", {}, () => [
1009
- e.icon ? (r(), I(m(N), j(Z({ key: 0 }, e.icon)), null, 16)) : _("", !0),
1010
- ue(" " + A(e.label), 1)
1158
+ w("div", xo, [
1159
+ w("div", Bo, [
1160
+ p(a.$slots, "default", {}, () => [
1161
+ e.icon ? (r(), B(v(O), Y(H({ key: 0 }, e.icon)), null, 16)) : b("", !0),
1162
+ de(" " + D(e.label), 1)
1011
1163
  ])
1012
1164
  ]),
1013
- e.description ? (r(), u("div", fo, [
1014
- M(m(N), j(ne(e.icons.description)), null, 16),
1015
- x("span", null, A(e.description), 1)
1016
- ])) : _("", !0)
1165
+ e.description ? (r(), f("div", Io, [
1166
+ Q(v(O), Y(ne(e.icons.description)), null, 16),
1167
+ w("span", null, D(e.description), 1)
1168
+ ])) : b("", !0)
1017
1169
  ]),
1018
- x("div", po, [
1019
- e.selected ? (r(), I(m(N), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : _("", !0)
1170
+ w("div", So, [
1171
+ e.selected ? (r(), B(v(O), H({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
1020
1172
  ])
1021
- ], 42, ro));
1173
+ ], 42, Lo));
1022
1174
  }
1023
- }), vo = ["data-key", "aria-labelledby"], ho = ["id"], yo = /* @__PURE__ */ S({
1175
+ }), Vo = ["data-key", "aria-labelledby"], To = ["id"], Ao = /* @__PURE__ */ I({
1024
1176
  __name: "QListItemGroup",
1025
1177
  props: {
1026
1178
  id: {},
1027
1179
  title: { default: "" }
1028
1180
  },
1029
1181
  setup(o) {
1030
- const t = o, e = fe();
1031
- return (l, n) => (r(), u("ul", {
1182
+ const t = o, e = ce();
1183
+ return (l, n) => (r(), f("ul", {
1032
1184
  class: "q-list-item-group",
1033
1185
  role: "group",
1034
1186
  "data-key": t.id,
1035
- "aria-labelledby": t.title ? m(e) : void 0
1187
+ "aria-labelledby": t.title ? v(e) : void 0
1036
1188
  }, [
1037
- t.title ? (r(), u("li", {
1189
+ t.title ? (r(), f("li", {
1038
1190
  key: 0,
1039
- id: m(e),
1191
+ id: v(e),
1040
1192
  class: "q-list-item-group__title",
1041
1193
  role: "presentation"
1042
- }, A(t.title), 9, ho)) : _("", !0),
1043
- v(l.$slots, "default")
1044
- ], 8, vo));
1194
+ }, D(t.title), 9, To)) : b("", !0),
1195
+ p(l.$slots, "default")
1196
+ ], 8, Vo));
1045
1197
  }
1046
- }), Ee = C(ao), lt = C(mo), nt = C(yo), we = 8;
1047
- function bo(o, t, e, l) {
1048
- const n = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", d = o.getBoundingClientRect(), a = t.getBoundingClientRect(), i = e == null ? void 0 : e.getBoundingClientRect(), f = go(d, a, s, n), $ = wo(d, a, f), B = ko($, f, n), O = _o(B, a, f);
1049
- let Q;
1198
+ }), Me = S(wo), st = S(Co), at = S(Ao), we = 8;
1199
+ function Eo(o, t, e, l) {
1200
+ const n = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", d = o.getBoundingClientRect(), a = t.getBoundingClientRect(), i = e == null ? void 0 : e.getBoundingClientRect(), c = Do(d, a, s, n), $ = Fo(d, a, c), C = Mo($, c, n), U = Qo(C, a, c);
1201
+ let M;
1050
1202
  if (l != null && l.arrow) {
1051
1203
  if (!i)
1052
1204
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
1053
- Q = $o(O, d, a, i, f);
1205
+ M = zo(U, d, a, i, c);
1054
1206
  }
1055
- return { overlayCoords: O, arrowCoords: Q, placement: f };
1207
+ return { overlayCoords: U, arrowCoords: M, placement: c };
1056
1208
  }
1057
- function go(o, t, e, l) {
1058
- const n = Oe(o, t, e, l);
1059
- if (Ue(n)) {
1209
+ function Do(o, t, e, l) {
1210
+ const n = Re(o, t, e, l);
1211
+ if (Ge(n)) {
1060
1212
  const s = ke(e), a = {
1061
1213
  top: "bottom",
1062
1214
  bottom: "top",
1063
1215
  left: "right",
1064
1216
  right: "left"
1065
- }[s], i = Oe(
1217
+ }[s], i = Re(
1066
1218
  o,
1067
1219
  t,
1068
1220
  a,
1069
1221
  l
1070
1222
  );
1071
- if (Ue(i))
1223
+ if (Ge(i))
1072
1224
  return e;
1073
- const f = Lo(e);
1074
- return f ? `${a}-${f}` : a;
1225
+ const c = Uo(e);
1226
+ return c ? `${a}-${c}` : a;
1075
1227
  }
1076
1228
  return e;
1077
1229
  }
1078
- function _o(o, t, e) {
1230
+ function Qo(o, t, e) {
1079
1231
  const l = qe(e), n = (d, a, i) => Math.min(Math.max(d, a), i), s = { ...o };
1080
1232
  return l === "x" ? s.x = n(o.x, we, window.innerWidth - t.width - we) : s.y = n(o.y, we, window.innerHeight - t.height - we), s;
1081
1233
  }
1082
- function ko(o, t, e) {
1234
+ function Mo(o, t, e) {
1083
1235
  const l = ke(t);
1084
1236
  return {
1085
1237
  x: o.x + (l === "left" ? -e : l === "right" ? e : 0),
1086
1238
  y: o.y + (l === "top" ? -e : l === "bottom" ? e : 0)
1087
1239
  };
1088
1240
  }
1089
- function $o(o, t, e, l, n) {
1241
+ function zo(o, t, e, l, n) {
1090
1242
  if (qe(n) === "y") {
1091
- const d = t.top + t.height / 2, a = o.y + e.height / 2, i = a - d, f = e.height / 2 - i - l.height / 2 + 2;
1092
- if (f > 0 && f < e.height - l.height)
1243
+ const d = t.top + t.height / 2, a = o.y + e.height / 2, i = a - d, c = e.height / 2 - i - l.height / 2 + 2;
1244
+ if (c > 0 && c < e.height - l.height)
1093
1245
  return {
1094
- y: f
1246
+ y: c
1095
1247
  };
1096
1248
  } else {
1097
- const d = t.left + t.width / 2, a = o.x + e.width / 2, i = a - d, f = e.width / 2 - i - l.width / 2 + 2;
1098
- if (f > 0 && f < e.width - l.width)
1249
+ const d = t.left + t.width / 2, a = o.x + e.width / 2, i = a - d, c = e.width / 2 - i - l.width / 2 + 2;
1250
+ if (c > 0 && c < e.width - l.width)
1099
1251
  return {
1100
- x: f
1252
+ x: c
1101
1253
  };
1102
1254
  }
1103
1255
  }
1104
- function wo(o, t, e) {
1256
+ function Fo(o, t, e) {
1105
1257
  const [l, n] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, d = o.y + o.height / 2 - t.height / 2;
1106
1258
  let a;
1107
1259
  switch (l) {
@@ -1122,20 +1274,20 @@ function wo(o, t, e) {
1122
1274
  }
1123
1275
  if (!n)
1124
1276
  return a;
1125
- const f = qe(e) === "y" ? "height" : "width", $ = qe(e), B = o[f] / 2 - t[f] / 2;
1277
+ const c = qe(e) === "y" ? "height" : "width", $ = qe(e), C = o[c] / 2 - t[c] / 2;
1126
1278
  switch (n) {
1127
1279
  case "start":
1128
- a[$] -= B;
1280
+ a[$] -= C;
1129
1281
  break;
1130
1282
  case "end":
1131
- a[$] += B;
1283
+ a[$] += C;
1132
1284
  break;
1133
1285
  default:
1134
1286
  throw new Error(`[Quidgest UI] Invalid alignment value: ${n}`);
1135
1287
  }
1136
1288
  return a;
1137
1289
  }
1138
- function Oe(o, t, e, l) {
1290
+ function Re(o, t, e, l) {
1139
1291
  const n = ke(e);
1140
1292
  let s = 0;
1141
1293
  switch (n) {
@@ -1156,34 +1308,34 @@ function Oe(o, t, e, l) {
1156
1308
  }
1157
1309
  return s;
1158
1310
  }
1159
- function qo(o) {
1311
+ function Oo(o) {
1160
1312
  return o === "x" ? "y" : "x";
1161
1313
  }
1162
- function xo(o) {
1314
+ function Po(o) {
1163
1315
  const t = ke(o);
1164
1316
  return ["left", "right"].includes(t) ? "x" : "y";
1165
1317
  }
1166
1318
  function qe(o) {
1167
- return qo(xo(o));
1319
+ return Oo(Po(o));
1168
1320
  }
1169
1321
  function ke(o) {
1170
1322
  const [t] = o.split("-");
1171
1323
  return t;
1172
1324
  }
1173
- function Lo(o) {
1325
+ function Uo(o) {
1174
1326
  const [, t] = o.split("-");
1175
1327
  return t;
1176
1328
  }
1177
- function Ue(o) {
1329
+ function Ge(o) {
1178
1330
  return o < 0;
1179
1331
  }
1180
- function Io(o) {
1332
+ function No(o) {
1181
1333
  return typeof o == "string" ? document.querySelector(o) : o;
1182
1334
  }
1183
- const Bo = ["role"], So = /* @__PURE__ */ S({
1335
+ const Ro = ["role"], Go = /* @__PURE__ */ I({
1184
1336
  inheritAttrs: !1,
1185
1337
  __name: "QOverlay",
1186
- props: /* @__PURE__ */ Y({
1338
+ props: /* @__PURE__ */ G({
1187
1339
  anchor: { default: void 0 },
1188
1340
  appearance: { default: "regular" },
1189
1341
  arrow: { type: Boolean },
@@ -1206,9 +1358,9 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1206
1358
  modelValue: { type: Boolean },
1207
1359
  modelModifiers: {}
1208
1360
  }),
1209
- emits: /* @__PURE__ */ Y(["enter", "leave"], ["update:modelValue"]),
1361
+ emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
1210
1362
  setup(o, { emit: t }) {
1211
- const e = o, l = t, n = ee(o, "modelValue"), s = y(() => [
1363
+ const e = o, l = t, n = X(o, "modelValue"), s = h(() => [
1212
1364
  "q-overlay",
1213
1365
  `q-overlay--${ke(a.placement)}`,
1214
1366
  {
@@ -1216,208 +1368,208 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1216
1368
  "q-overlay--inverted": e.appearance === "inverted"
1217
1369
  },
1218
1370
  e.class
1219
- ]), d = y(() => (n.value || a.animating) && !e.nonModal), a = Me({
1371
+ ]), d = h(() => (n.value || a.animating) && !e.nonModal), a = Ue({
1220
1372
  animating: !1,
1221
1373
  top: 0,
1222
1374
  left: 0,
1223
1375
  width: 0,
1224
1376
  placement: e.placement
1225
- }), i = Me({
1377
+ }), i = Ue({
1226
1378
  top: void 0,
1227
1379
  left: void 0,
1228
1380
  hidden: !0
1229
- }), f = y(() => a.top !== 0 && a.left !== 0);
1230
- oe(n, () => a.animating = !0);
1231
- const $ = y(() => {
1381
+ }), c = h(() => a.top !== 0 && a.left !== 0);
1382
+ ee(n, () => a.animating = !0);
1383
+ const $ = h(() => {
1232
1384
  if (e.anchor === void 0) return;
1233
- const w = H(), me = e.width === "anchor", X = me ? w == null ? void 0 : w.getBoundingClientRect().width : void 0;
1385
+ const q = R(), ve = e.width === "anchor", J = ve ? q == null ? void 0 : q.getBoundingClientRect().width : void 0;
1234
1386
  return {
1235
1387
  top: `${a.top}px`,
1236
1388
  left: `${a.left}px`,
1237
- width: X !== void 0 ? `${X}px` : void 0
1389
+ width: J !== void 0 ? `${J}px` : void 0
1238
1390
  };
1239
- }), B = y(() => {
1391
+ }), C = h(() => {
1240
1392
  if (e.arrow)
1241
1393
  return {
1242
1394
  top: i.top !== void 0 ? `${i.top}px` : void 0,
1243
1395
  left: i.left !== void 0 ? `${i.left}px` : void 0,
1244
1396
  opacity: i.hidden ? 0 : 1
1245
1397
  };
1246
- }), O = D(null), Q = D(null);
1247
- function V() {
1248
- const w = H();
1249
- if (!w || !Q.value)
1398
+ }), U = A(null), M = A(null);
1399
+ function T() {
1400
+ const q = R();
1401
+ if (!q || !M.value)
1250
1402
  return;
1251
- const me = {
1403
+ const ve = {
1252
1404
  placement: e.placement,
1253
1405
  width: e.width,
1254
1406
  offset: e.offset,
1255
1407
  arrow: e.arrow
1256
- }, X = bo(
1257
- w,
1258
- Q.value,
1259
- (O == null ? void 0 : O.value) ?? void 0,
1260
- me
1408
+ }, J = Eo(
1409
+ q,
1410
+ M.value,
1411
+ (U == null ? void 0 : U.value) ?? void 0,
1412
+ ve
1261
1413
  );
1262
- a.left = X.overlayCoords.x, a.top = X.overlayCoords.y, a.placement = X.placement, i.hidden = X.arrowCoords === void 0, X.arrowCoords && (i.top = X.arrowCoords.y, i.left = X.arrowCoords.x);
1414
+ a.left = J.overlayCoords.x, a.top = J.overlayCoords.y, a.placement = J.placement, i.hidden = J.arrowCoords === void 0, J.arrowCoords && (i.top = J.arrowCoords.y, i.left = J.arrowCoords.x);
1263
1415
  }
1264
- oe(
1416
+ ee(
1265
1417
  () => e.placement,
1266
- () => le(V)
1418
+ () => le(T)
1267
1419
  );
1268
- let b;
1420
+ let g;
1269
1421
  function E() {
1270
1422
  z(0);
1271
1423
  }
1272
1424
  function P() {
1273
1425
  z(e.delay);
1274
1426
  }
1275
- function z(w) {
1276
- b || (b = window.setTimeout(() => {
1427
+ function z(q) {
1428
+ g || (g = window.setTimeout(() => {
1277
1429
  n.value = !0;
1278
- }, w));
1430
+ }, q));
1279
1431
  }
1280
- function G() {
1281
- if (clearTimeout(b), b = void 0, n.value = !1, e.anchor && e.trigger === "click") {
1282
- const w = H();
1283
- w == null || w.focus();
1432
+ function K() {
1433
+ if (clearTimeout(g), g = void 0, n.value = !1, e.anchor && e.trigger === "click") {
1434
+ const q = R();
1435
+ q == null || q.focus();
1284
1436
  }
1285
1437
  }
1286
- oe(f, () => le(se));
1287
- function se() {
1438
+ ee(c, () => le(ae));
1439
+ function ae() {
1288
1440
  l("enter");
1289
1441
  }
1290
- let W;
1291
- function ae() {
1292
- window.clearTimeout(W), W = window.setTimeout(() => a.animating = !1, 200), l("leave");
1442
+ let Z;
1443
+ function ie() {
1444
+ window.clearTimeout(Z), Z = window.setTimeout(() => a.animating = !1, 200), l("leave");
1293
1445
  }
1294
- function H() {
1295
- return e.anchor ? Io(e.anchor) : null;
1446
+ function R() {
1447
+ return e.anchor ? No(e.anchor) : null;
1296
1448
  }
1297
- let J;
1298
- function h() {
1299
- const w = H();
1300
- if (w)
1301
- switch (J = new MutationObserver(V), J.observe(w, {
1449
+ let te;
1450
+ function y() {
1451
+ const q = R();
1452
+ if (q)
1453
+ switch (te = new MutationObserver(T), te.observe(q, {
1302
1454
  attributes: !1,
1303
1455
  childList: !0,
1304
1456
  characterData: !0,
1305
1457
  subtree: !0
1306
1458
  }), e.trigger) {
1307
1459
  case "click":
1308
- w.addEventListener("click", E);
1460
+ q.addEventListener("click", E);
1309
1461
  break;
1310
1462
  case "hover":
1311
- w.addEventListener("mouseenter", P), w.addEventListener("mouseleave", G), w.addEventListener("focusin", E), w.addEventListener("focusout", G);
1463
+ q.addEventListener("mouseenter", P), q.addEventListener("mouseleave", K), q.addEventListener("focusin", E), q.addEventListener("focusout", K);
1312
1464
  break;
1313
1465
  }
1314
1466
  }
1315
- function q() {
1316
- const w = H();
1317
- if (w)
1318
- switch (J == null || J.disconnect(), e.trigger) {
1467
+ function L() {
1468
+ const q = R();
1469
+ if (q)
1470
+ switch (te == null || te.disconnect(), e.trigger) {
1319
1471
  case "click":
1320
- w.removeEventListener("click", E);
1472
+ q.removeEventListener("click", E);
1321
1473
  break;
1322
1474
  case "hover":
1323
- w.removeEventListener("mouseenter", P), w.removeEventListener("mouseleave", G), w.removeEventListener("focusin", E), w.removeEventListener("focusout", G);
1475
+ q.removeEventListener("mouseenter", P), q.removeEventListener("mouseleave", K), q.removeEventListener("focusin", E), q.removeEventListener("focusout", K);
1324
1476
  break;
1325
1477
  }
1326
1478
  }
1327
- function p() {
1328
- window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
1479
+ function m() {
1480
+ window.addEventListener("resize", T), e.scrollLock || window.addEventListener("scroll", T);
1329
1481
  }
1330
- function g() {
1331
- window.removeEventListener("resize", V), e.scrollLock || window.removeEventListener("scroll", V);
1482
+ function _() {
1483
+ window.removeEventListener("resize", T), e.scrollLock || window.removeEventListener("scroll", T);
1332
1484
  }
1333
- let R;
1334
- function ie() {
1335
- H() ? (V(), R = window.setTimeout(ie, 100)) : G();
1485
+ let j;
1486
+ function re() {
1487
+ R() ? (T(), j = window.setTimeout(re, 100)) : K();
1336
1488
  }
1337
- function te() {
1338
- p(), e.spy ? ie() : V(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && le(() => {
1339
- var w;
1340
- return (w = Q.value) == null ? void 0 : w.focus();
1489
+ function oe() {
1490
+ m(), e.spy ? re() : T(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && le(() => {
1491
+ var q;
1492
+ return (q = M.value) == null ? void 0 : q.focus();
1341
1493
  });
1342
1494
  }
1343
- function de() {
1344
- g(), e.spy && (clearTimeout(R), R = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1495
+ function ue() {
1496
+ _(), e.spy && (clearTimeout(j), j = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1345
1497
  }
1346
1498
  function $e() {
1347
- e.persistent || G();
1499
+ e.persistent || K();
1348
1500
  }
1349
- return Ke(() => {
1350
- le(h);
1351
- }), ft(() => {
1352
- q(), de();
1353
- }), oe(
1501
+ return je(() => {
1502
+ le(y);
1503
+ }), vt(() => {
1504
+ L(), ue();
1505
+ }), ee(
1354
1506
  n,
1355
- (w) => {
1356
- le(() => w ? te() : de());
1507
+ (q) => {
1508
+ le(() => q ? oe() : ue());
1357
1509
  },
1358
1510
  { immediate: !0 }
1359
- ), (w, me) => (r(), I(pt, {
1511
+ ), (q, ve) => (r(), B(mt, {
1360
1512
  disabled: !n.value && !a.animating || e.inline,
1361
1513
  to: e.attach
1362
1514
  }, [
1363
- d.value ? (r(), u("div", {
1515
+ d.value ? (r(), f("div", {
1364
1516
  key: 0,
1365
- class: T([
1517
+ class: V([
1366
1518
  e.backdropClass,
1367
1519
  "q-overlay__underlay",
1368
1520
  { "q-overlay__underlay--blur": e.backdropBlur }
1369
1521
  ])
1370
- }, null, 2)) : _("", !0),
1371
- M(mt, {
1522
+ }, null, 2)) : b("", !0),
1523
+ Q(ht, {
1372
1524
  name: e.transition,
1373
1525
  appear: "",
1374
- onLeave: ae
1526
+ onLeave: ie
1375
1527
  }, {
1376
1528
  default: k(() => [
1377
- n.value ? (r(), u("div", {
1529
+ n.value ? (r(), f("div", {
1378
1530
  key: 0,
1379
- class: T(s.value),
1531
+ class: V(s.value),
1380
1532
  style: pe($.value)
1381
1533
  }, [
1382
- x("div", Z({
1534
+ w("div", H({
1383
1535
  class: "q-overlay__content",
1384
1536
  ref_key: "overlayRef",
1385
- ref: Q,
1537
+ ref: M,
1386
1538
  tabindex: "-1",
1387
1539
  role: d.value ? "dialog" : void 0
1388
- }, w.$attrs, {
1389
- onKeydown: Be($e, ["escape"]),
1540
+ }, q.$attrs, {
1541
+ onKeydown: Se($e, ["escape"]),
1390
1542
  onBlur: $e
1391
1543
  }), [
1392
- e.arrow ? (r(), u("div", {
1544
+ e.arrow ? (r(), f("div", {
1393
1545
  key: 0,
1394
1546
  ref_key: "arrowRef",
1395
- ref: O,
1547
+ ref: U,
1396
1548
  role: "presentation",
1397
1549
  class: "q-overlay__arrow",
1398
- style: pe(B.value)
1399
- }, null, 4)) : _("", !0),
1400
- v(w.$slots, "default")
1401
- ], 16, Bo)
1402
- ], 6)) : _("", !0)
1550
+ style: pe(C.value)
1551
+ }, null, 4)) : b("", !0),
1552
+ p(q.$slots, "default")
1553
+ ], 16, Ro)
1554
+ ], 6)) : b("", !0)
1403
1555
  ]),
1404
1556
  _: 3
1405
1557
  }, 8, ["name"])
1406
1558
  ], 8, ["disabled", "to"]));
1407
1559
  }
1408
- }), ye = C(So), Co = ["id"], To = {
1560
+ }), ye = S(Go), Ho = ["id"], Ko = {
1409
1561
  key: 0,
1410
1562
  class: "q-field__label"
1411
- }, Vo = ["for"], Eo = {
1563
+ }, jo = ["for"], Wo = {
1412
1564
  key: 0,
1413
1565
  class: "q-field__prepend"
1414
- }, Do = {
1566
+ }, Xo = {
1415
1567
  key: 1,
1416
1568
  class: "q-field__append"
1417
- }, Ao = {
1569
+ }, Yo = {
1418
1570
  key: 1,
1419
1571
  class: "q-field__extras"
1420
- }, Qo = /* @__PURE__ */ S({
1572
+ }, Zo = /* @__PURE__ */ I({
1421
1573
  inheritAttrs: !1,
1422
1574
  __name: "QField",
1423
1575
  props: {
@@ -1431,12 +1583,12 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1431
1583
  class: { default: void 0 }
1432
1584
  },
1433
1585
  setup(o, { expose: t }) {
1434
- const e = o, l = fe(e.id), n = D(null), s = y(() => e.required && !e.readonly && !e.disabled);
1586
+ const e = o, l = ce(e.id), n = A(null), s = h(() => e.required && !e.readonly && !e.disabled);
1435
1587
  return t({
1436
1588
  fieldRef: n
1437
- }), (d, a) => (r(), u("div", {
1438
- id: m(l),
1439
- class: T([
1589
+ }), (d, a) => (r(), f("div", {
1590
+ id: v(l),
1591
+ class: V([
1440
1592
  "q-field",
1441
1593
  `q-field--${e.size}`,
1442
1594
  {
@@ -1447,37 +1599,37 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1447
1599
  e.class
1448
1600
  ])
1449
1601
  }, [
1450
- e.label ? (r(), u("div", To, [
1451
- v(d.$slots, "label.prepend"),
1452
- x("label", {
1602
+ e.label ? (r(), f("div", Ko, [
1603
+ p(d.$slots, "label.prepend"),
1604
+ w("label", {
1453
1605
  for: e.for
1454
- }, A(e.label), 9, Vo),
1455
- v(d.$slots, "label.append")
1456
- ])) : _("", !0),
1457
- v(d.$slots, "control", {}, () => [
1458
- x("div", Z({
1606
+ }, D(e.label), 9, jo),
1607
+ p(d.$slots, "label.append")
1608
+ ])) : b("", !0),
1609
+ p(d.$slots, "control", {}, () => [
1610
+ w("div", H({
1459
1611
  class: "q-field__control",
1460
1612
  ref_key: "fieldRef",
1461
1613
  ref: n
1462
1614
  }, d.$attrs), [
1463
- d.$slots.prepend ? (r(), u("div", Eo, [
1464
- v(d.$slots, "prepend")
1465
- ])) : _("", !0),
1466
- v(d.$slots, "default"),
1467
- d.$slots.append ? (r(), u("div", Do, [
1468
- v(d.$slots, "append")
1469
- ])) : _("", !0)
1615
+ d.$slots.prepend ? (r(), f("div", Wo, [
1616
+ p(d.$slots, "prepend")
1617
+ ])) : b("", !0),
1618
+ p(d.$slots, "default"),
1619
+ d.$slots.append ? (r(), f("div", Xo, [
1620
+ p(d.$slots, "append")
1621
+ ])) : b("", !0)
1470
1622
  ], 16)
1471
1623
  ]),
1472
- d.$slots.extras ? (r(), u("div", Ao, [
1473
- v(d.$slots, "extras")
1474
- ])) : _("", !0)
1475
- ], 10, Co));
1624
+ d.$slots.extras ? (r(), f("div", Yo, [
1625
+ p(d.$slots, "extras")
1626
+ ])) : b("", !0)
1627
+ ], 10, Ho));
1476
1628
  }
1477
- }), Ie = C(Qo), zo = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Fo = /* @__PURE__ */ S({
1629
+ }), Be = S(Zo), Jo = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], el = /* @__PURE__ */ I({
1478
1630
  inheritAttrs: !1,
1479
1631
  __name: "QTextField",
1480
- props: /* @__PURE__ */ Y({
1632
+ props: /* @__PURE__ */ G({
1481
1633
  id: { default: void 0 },
1482
1634
  placeholder: { default: "" },
1483
1635
  label: { default: "" },
@@ -1495,38 +1647,38 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1495
1647
  }),
1496
1648
  emits: ["update:modelValue"],
1497
1649
  setup(o, { expose: t }) {
1498
- const e = o, l = ee(o, "modelValue"), n = fe(e.id), s = D(null), d = D(null), a = y(
1650
+ const e = o, l = X(o, "modelValue"), n = ce(e.id), s = A(null), d = A(null), a = h(
1499
1651
  () => e.readonly || e.disabled ? "" : e.placeholder
1500
1652
  );
1501
1653
  return t({
1502
- fieldRef: y(() => {
1654
+ fieldRef: h(() => {
1503
1655
  var i;
1504
1656
  return (i = s.value) == null ? void 0 : i.fieldRef;
1505
1657
  }),
1506
1658
  inputRef: d
1507
- }), (i, f) => (r(), I(m(Ie), {
1659
+ }), (i, c) => (r(), B(v(Be), {
1508
1660
  ref_key: "fieldRef",
1509
1661
  ref: s,
1510
- class: T(["q-text-field", e.class]),
1511
- for: m(n),
1662
+ class: V(["q-text-field", e.class]),
1663
+ for: v(n),
1512
1664
  label: e.label,
1513
1665
  size: e.size,
1514
1666
  readonly: e.readonly,
1515
1667
  disabled: e.disabled,
1516
1668
  required: e.required
1517
- }, Le({
1669
+ }, xe({
1518
1670
  "label.prepend": k(() => [
1519
- v(i.$slots, "label.prepend")
1671
+ p(i.$slots, "label.prepend")
1520
1672
  ]),
1521
1673
  "label.append": k(() => [
1522
- v(i.$slots, "label.append")
1674
+ p(i.$slots, "label.append")
1523
1675
  ]),
1524
1676
  default: k(() => [
1525
- vt(x("input", Z({
1526
- "onUpdate:modelValue": f[0] || (f[0] = ($) => l.value = $),
1677
+ yt(w("input", H({
1678
+ "onUpdate:modelValue": c[0] || (c[0] = ($) => l.value = $),
1527
1679
  ref_key: "inputRef",
1528
1680
  ref: d,
1529
- id: m(n),
1681
+ id: v(n),
1530
1682
  class: "q-text-field__input",
1531
1683
  type: e.type,
1532
1684
  role: e.role,
@@ -1535,8 +1687,8 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1535
1687
  readonly: e.readonly,
1536
1688
  disabled: e.disabled,
1537
1689
  maxlength: e.maxLength
1538
- }, i.$attrs), null, 16, zo), [
1539
- [ht, l.value]
1690
+ }, i.$attrs), null, 16, Jo), [
1691
+ [bt, l.value]
1540
1692
  ])
1541
1693
  ]),
1542
1694
  _: 2
@@ -1544,47 +1696,47 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1544
1696
  i.$slots.prepend ? {
1545
1697
  name: "prepend",
1546
1698
  fn: k(() => [
1547
- v(i.$slots, "prepend")
1699
+ p(i.$slots, "prepend")
1548
1700
  ]),
1549
1701
  key: "0"
1550
1702
  } : void 0,
1551
1703
  i.$slots.append ? {
1552
1704
  name: "append",
1553
1705
  fn: k(() => [
1554
- v(i.$slots, "append")
1706
+ p(i.$slots, "append")
1555
1707
  ]),
1556
1708
  key: "1"
1557
1709
  } : void 0,
1558
1710
  i.$slots.extras ? {
1559
1711
  name: "extras",
1560
1712
  fn: k(() => [
1561
- v(i.$slots, "extras")
1713
+ p(i.$slots, "extras")
1562
1714
  ]),
1563
1715
  key: "2"
1564
1716
  } : void 0
1565
1717
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1566
1718
  }
1567
- }), st = C(Fo), Mo = {
1719
+ }), it = S(el), tl = {
1568
1720
  noData: "No data available",
1569
1721
  clearValue: "Clear value",
1570
1722
  showOptions: "Show options"
1571
- }, Po = {
1723
+ }, ol = {
1572
1724
  chevron: {
1573
1725
  icon: "chevron-down"
1574
1726
  },
1575
1727
  clear: {
1576
1728
  icon: "close"
1577
1729
  }
1578
- }, Oo = ["data-key"], Uo = {
1730
+ }, ll = ["data-key"], nl = {
1579
1731
  key: 0,
1580
1732
  class: "q-select__loader"
1581
- }, No = {
1733
+ }, sl = {
1582
1734
  key: 2,
1583
1735
  class: "q-select__loader"
1584
- }, Ho = /* @__PURE__ */ S({
1736
+ }, al = /* @__PURE__ */ I({
1585
1737
  inheritAttrs: !1,
1586
1738
  __name: "QCombobox",
1587
- props: /* @__PURE__ */ Y({
1739
+ props: /* @__PURE__ */ G({
1588
1740
  id: { default: void 0 },
1589
1741
  placeholder: { default: "" },
1590
1742
  selectionMode: { default: "automatic" },
@@ -1602,8 +1754,8 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1602
1754
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1603
1755
  size: { default: void 0 },
1604
1756
  class: { default: void 0 },
1605
- icons: { default: () => Po },
1606
- texts: { default: () => Mo }
1757
+ icons: { default: () => ol },
1758
+ texts: { default: () => tl }
1607
1759
  }, {
1608
1760
  modelValue: {
1609
1761
  type: [String, Number, Boolean, Symbol]
@@ -1614,156 +1766,156 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1614
1766
  search: { default: "" },
1615
1767
  searchModifiers: {}
1616
1768
  }),
1617
- emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1769
+ emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1618
1770
  setup(o, { expose: t, emit: e }) {
1619
- const l = o, n = e, s = ee(o, "modelValue"), d = ee(o, "open"), a = ee(o, "search"), i = D(void 0), f = D(null), $ = D(null), B = D(null), O = D(null);
1620
- Ke(W);
1621
- const Q = y(() => l.clearable && !l.readonly && !l.disabled), V = y(() => {
1622
- var c;
1623
- return l.filterMode === "manual" || !G.value ? l.items : (c = l.items) == null ? void 0 : c.filter(
1624
- (L) => L[l.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1771
+ const l = o, n = e, s = X(o, "modelValue"), d = X(o, "open"), a = X(o, "search"), i = A(void 0), c = A(null), $ = A(null), C = A(null), U = A(null);
1772
+ je(Z);
1773
+ const M = h(() => l.clearable && !l.readonly && !l.disabled), T = h(() => {
1774
+ var u;
1775
+ return l.filterMode === "manual" || !K.value ? l.items : (u = l.items) == null ? void 0 : u.filter(
1776
+ (x) => x[l.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1625
1777
  );
1626
- }), b = y(() => {
1627
- var c;
1628
- return (c = l.items) == null ? void 0 : c.find((L) => L[l.itemValue] === s.value);
1629
- }), E = y(() => b.value === void 0), P = y(() => {
1630
- const c = i.value;
1631
- if (c !== void 0 && V.value[c])
1632
- return V.value[c];
1633
- }), z = y(() => {
1634
- var L;
1778
+ }), g = h(() => {
1779
+ var u;
1780
+ return (u = l.items) == null ? void 0 : u.find((x) => x[l.itemValue] === s.value);
1781
+ }), E = h(() => g.value === void 0), P = h(() => {
1782
+ const u = i.value;
1783
+ if (u !== void 0 && T.value[u])
1784
+ return T.value[u];
1785
+ }), z = h(() => {
1786
+ var x;
1635
1787
  if (i.value === void 0)
1636
1788
  return;
1637
- const c = (L = $.value) == null ? void 0 : L.getItem(i.value);
1638
- return c == null ? void 0 : c.id;
1639
- }), G = y(() => {
1640
- var c;
1641
- return a.value.length > 0 && a.value !== ((c = b.value) == null ? void 0 : c[l.itemLabel]);
1789
+ const u = (x = $.value) == null ? void 0 : x.getItem(i.value);
1790
+ return u == null ? void 0 : u.id;
1791
+ }), K = h(() => {
1792
+ var u;
1793
+ return a.value.length > 0 && a.value !== ((u = g.value) == null ? void 0 : u[l.itemLabel]);
1642
1794
  });
1643
- function se(c) {
1644
- s.value = c, H();
1795
+ function ae(u) {
1796
+ s.value = u, R();
1645
1797
  }
1646
- function W() {
1647
- var L;
1648
- const c = ((L = b.value) == null ? void 0 : L[l.itemLabel]) || "";
1649
- a.value !== c && (a.value = c);
1798
+ function Z() {
1799
+ var x;
1800
+ const u = ((x = g.value) == null ? void 0 : x[l.itemLabel]) || "";
1801
+ a.value !== u && (a.value = u);
1650
1802
  }
1651
- function ae() {
1652
- d.value || l.readonly || l.disabled || (n("before-show"), d.value = !0, de());
1803
+ function ie() {
1804
+ d.value || l.readonly || l.disabled || (n("before-show"), d.value = !0, ue());
1653
1805
  }
1654
- function H() {
1806
+ function R() {
1655
1807
  d.value && (n("before-hide"), d.value = !1, i.value = void 0);
1656
1808
  }
1657
- function J() {
1658
- d.value ? H() : q();
1809
+ function te() {
1810
+ d.value ? R() : L();
1659
1811
  }
1660
- function h() {
1661
- Q.value && (s.value = l.emptyValue, i.value = void 0, de());
1812
+ function y() {
1813
+ M.value && (s.value = l.emptyValue, i.value = void 0, ue());
1662
1814
  }
1663
- function q() {
1664
- if (ae(), b.value !== void 0) {
1665
- const c = V.value.indexOf(b.value);
1666
- c !== -1 && le(() => X(c));
1815
+ function L() {
1816
+ if (ie(), g.value !== void 0) {
1817
+ const u = T.value.indexOf(g.value);
1818
+ u !== -1 && le(() => J(u));
1667
1819
  }
1668
1820
  }
1669
- function p(c) {
1670
- var L, F;
1671
- if (!(!c.key || l.readonly || l.disabled))
1672
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
1673
- W(), d.value && H();
1674
- else if (["ArrowDown", "ArrowUp"].includes(c.key))
1821
+ function m(u) {
1822
+ var x, F;
1823
+ if (!(!u.key || l.readonly || l.disabled))
1824
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), u.key === "Escape")
1825
+ Z(), d.value && R();
1826
+ else if (["ArrowDown", "ArrowUp"].includes(u.key))
1675
1827
  d.value ? le(() => {
1676
1828
  if (i.value === void 0)
1677
- g();
1829
+ _();
1678
1830
  else {
1679
- const K = c.key === "ArrowDown" ? "next" : "prev";
1680
- ie(i.value, K);
1831
+ const W = u.key === "ArrowDown" ? "next" : "prev";
1832
+ re(i.value, W);
1681
1833
  }
1682
- }) : (ae(), le(() => {
1683
- c.key === "ArrowDown" ? g() : R();
1834
+ }) : (ie(), le(() => {
1835
+ u.key === "ArrowDown" ? _() : j();
1684
1836
  }));
1685
- else if (c.key === "Enter") {
1837
+ else if (u.key === "Enter") {
1686
1838
  if (P.value === void 0) return;
1687
- se(P.value[l.itemValue]);
1688
- } else c.key === "Home" ? i.value = (L = $.value) == null ? void 0 : L.getFirstFocusableItemIndex() : c.key === "End" ? i.value = (F = $.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && ae();
1839
+ ae(P.value[l.itemValue]);
1840
+ } else u.key === "Home" ? i.value = (x = $.value) == null ? void 0 : x.getFirstFocusableItemIndex() : u.key === "End" ? i.value = (F = $.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(u.key) || u.key === "Backspace") && ie();
1689
1841
  }
1690
- function g() {
1691
- var c, L;
1842
+ function _() {
1843
+ var u, x;
1692
1844
  if (E.value)
1693
- i.value = (L = $.value) == null ? void 0 : L.getFirstFocusableItemIndex();
1845
+ i.value = (x = $.value) == null ? void 0 : x.getFirstFocusableItemIndex();
1694
1846
  else {
1695
- const F = V.value.findIndex(
1696
- (K) => K[l.itemValue] === s.value
1847
+ const F = T.value.findIndex(
1848
+ (W) => W[l.itemValue] === s.value
1697
1849
  );
1698
- F === -1 ? i.value = (c = $.value) == null ? void 0 : c.getFirstFocusableItemIndex() : i.value = F;
1850
+ F === -1 ? i.value = (u = $.value) == null ? void 0 : u.getFirstFocusableItemIndex() : i.value = F;
1699
1851
  }
1700
1852
  }
1701
- function R() {
1702
- var c;
1703
- i.value = (c = $.value) == null ? void 0 : c.getLastFocusableItemIndex();
1853
+ function j() {
1854
+ var u;
1855
+ i.value = (u = $.value) == null ? void 0 : u.getLastFocusableItemIndex();
1704
1856
  }
1705
- function ie(c, L) {
1857
+ function re(u, x) {
1706
1858
  var F;
1707
- i.value = (F = $.value) == null ? void 0 : F.getAdjacentItemIndex(c, L);
1859
+ i.value = (F = $.value) == null ? void 0 : F.getAdjacentItemIndex(u, x);
1708
1860
  }
1709
- function te(c) {
1710
- var ve, De, Ae, Qe;
1711
- const L = ((ve = B == null ? void 0 : B.value) == null ? void 0 : ve.$el) === c.relatedTarget, F = (Ae = (De = f == null ? void 0 : f.value) == null ? void 0 : De.$el) == null ? void 0 : Ae.contains(c.relatedTarget), K = (Qe = O == null ? void 0 : O.value) == null ? void 0 : Qe.contains(c.relatedTarget);
1712
- if (L || K || F) {
1713
- c.preventDefault(), c.stopPropagation();
1861
+ function oe(u) {
1862
+ var me, ze, Fe, Oe;
1863
+ const x = ((me = C == null ? void 0 : C.value) == null ? void 0 : me.$el) === u.relatedTarget, F = (Fe = (ze = c == null ? void 0 : c.value) == null ? void 0 : ze.$el) == null ? void 0 : Fe.contains(u.relatedTarget), W = (Oe = U == null ? void 0 : U.value) == null ? void 0 : Oe.contains(u.relatedTarget);
1864
+ if (x || W || F) {
1865
+ u.preventDefault(), u.stopPropagation();
1714
1866
  return;
1715
1867
  }
1716
- H(), Q.value && !a.value && (s.value = l.emptyValue), W();
1868
+ R(), M.value && !a.value && (s.value = l.emptyValue), Z();
1717
1869
  }
1718
- function de() {
1719
- var c, L;
1720
- (L = (c = f.value) == null ? void 0 : c.inputRef) == null || L.focus();
1870
+ function ue() {
1871
+ var u, x;
1872
+ (x = (u = c.value) == null ? void 0 : u.inputRef) == null || x.focus();
1721
1873
  }
1722
1874
  function $e() {
1723
- de();
1875
+ ue();
1724
1876
  }
1725
- function w() {
1877
+ function q() {
1726
1878
  n("show");
1727
1879
  }
1728
- function me() {
1880
+ function ve() {
1729
1881
  n("hide");
1730
1882
  }
1731
- function X(c) {
1883
+ function J(u) {
1732
1884
  var F;
1733
- const L = (F = $.value) == null ? void 0 : F.getItem(c);
1734
- $.value && ($.value.$el.scrollTop = L == null ? void 0 : L.offsetTop);
1885
+ const x = (F = $.value) == null ? void 0 : F.getItem(u);
1886
+ $.value && ($.value.$el.scrollTop = x == null ? void 0 : x.offsetTop);
1735
1887
  }
1736
- return oe(s, W), oe(
1888
+ return ee(s, Z), ee(
1737
1889
  () => l.items,
1738
- (c, L) => {
1890
+ (u, x) => {
1739
1891
  if (!E.value) {
1740
- const F = L.find((K) => K[l.itemValue] === s.value);
1741
- a.value === (F == null ? void 0 : F[l.itemLabel]) && W();
1892
+ const F = x.find((W) => W[l.itemValue] === s.value);
1893
+ a.value === (F == null ? void 0 : F[l.itemLabel]) && Z();
1742
1894
  }
1743
1895
  },
1744
1896
  { deep: !0 }
1745
- ), oe(i, (c) => {
1746
- c !== void 0 && X(c);
1747
- }), oe(a, (c) => {
1748
- c && d.value && l.selectionMode === "automatic" && le(g);
1749
- }), oe(
1897
+ ), ee(i, (u) => {
1898
+ u !== void 0 && J(u);
1899
+ }), ee(a, (u) => {
1900
+ u && d.value && l.selectionMode === "automatic" && le(_);
1901
+ }), ee(
1750
1902
  () => l.loading,
1751
- (c) => {
1752
- !c && d.value && le(g);
1903
+ (u) => {
1904
+ !u && d.value && le(_);
1753
1905
  }
1754
1906
  ), t({
1755
- triggerEl: f
1756
- }), (c, L) => {
1907
+ triggerEl: c
1908
+ }), (u, x) => {
1757
1909
  var F;
1758
- return r(), u(U, null, [
1759
- M(m(st), Z({
1910
+ return r(), f(N, null, [
1911
+ Q(v(it), H({
1760
1912
  modelValue: a.value,
1761
- "onUpdate:modelValue": L[0] || (L[0] = (K) => a.value = K),
1913
+ "onUpdate:modelValue": x[0] || (x[0] = (W) => a.value = W),
1762
1914
  id: l.id,
1763
1915
  label: l.label,
1764
1916
  required: l.required,
1765
1917
  ref_key: "triggerEl",
1766
- ref: f,
1918
+ ref: c,
1767
1919
  role: "combobox",
1768
1920
  placeholder: l.placeholder,
1769
1921
  class: [
@@ -1784,96 +1936,96 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1784
1936
  "aria-autocomplete": "list",
1785
1937
  "aria-activedescendant": z.value,
1786
1938
  size: l.size
1787
- }, c.$attrs, {
1788
- onClick: q,
1789
- onFocusout: te,
1790
- onKeydown: ce(p, ["stop"])
1791
- }), Le({
1939
+ }, u.$attrs, {
1940
+ onClick: L,
1941
+ onFocusout: oe,
1942
+ onKeydown: fe(m, ["stop"])
1943
+ }), xe({
1792
1944
  "label.prepend": k(() => [
1793
- v(c.$slots, "label.prepend")
1945
+ p(u.$slots, "label.prepend")
1794
1946
  ]),
1795
1947
  "label.append": k(() => [
1796
- v(c.$slots, "label.append")
1948
+ p(u.$slots, "label.append")
1797
1949
  ]),
1798
1950
  append: k(() => [
1799
- v(c.$slots, "append"),
1800
- Q.value && a.value ? (r(), I(m(re), {
1951
+ p(u.$slots, "append"),
1952
+ M.value && a.value ? (r(), B(v(se), {
1801
1953
  key: 0,
1802
1954
  class: "q-combobox__clear",
1803
1955
  "aria-label": l.texts.clearValue,
1804
1956
  "b-style": "plain",
1805
1957
  borderless: "",
1806
1958
  tabindex: "-1",
1807
- onClick: h
1959
+ onClick: y
1808
1960
  }, {
1809
1961
  default: k(() => [
1810
- M(m(N), j(ne(l.icons.clear)), null, 16)
1962
+ Q(v(O), Y(ne(l.icons.clear)), null, 16)
1811
1963
  ]),
1812
1964
  _: 1
1813
- }, 8, ["aria-label"])) : _("", !0),
1814
- l.readonly ? _("", !0) : (r(), I(m(re), {
1965
+ }, 8, ["aria-label"])) : b("", !0),
1966
+ l.readonly ? b("", !0) : (r(), B(v(se), {
1815
1967
  key: 1,
1816
1968
  ref_key: "toggleRef",
1817
- ref: B,
1969
+ ref: C,
1818
1970
  class: "q-combobox__chevron",
1819
1971
  "aria-label": l.texts.showOptions,
1820
1972
  "b-style": "plain",
1821
1973
  borderless: "",
1822
1974
  tabindex: "-1",
1823
1975
  disabled: l.disabled,
1824
- onMousedown: ce(J, ["stop", "prevent"])
1976
+ onMousedown: fe(te, ["stop", "prevent"])
1825
1977
  }, {
1826
1978
  default: k(() => [
1827
- M(m(N), j(ne(l.icons.chevron)), null, 16)
1979
+ Q(v(O), Y(ne(l.icons.chevron)), null, 16)
1828
1980
  ]),
1829
1981
  _: 1
1830
1982
  }, 8, ["aria-label", "disabled"]))
1831
1983
  ]),
1832
1984
  _: 2
1833
1985
  }, [
1834
- c.$slots.prepend ? {
1986
+ u.$slots.prepend ? {
1835
1987
  name: "prepend",
1836
1988
  fn: k(() => [
1837
- v(c.$slots, "prepend")
1989
+ p(u.$slots, "prepend")
1838
1990
  ]),
1839
1991
  key: "0"
1840
1992
  } : void 0,
1841
- c.$slots.extras ? {
1993
+ u.$slots.extras ? {
1842
1994
  name: "extras",
1843
1995
  fn: k(() => [
1844
- v(c.$slots, "extras")
1996
+ p(u.$slots, "extras")
1845
1997
  ]),
1846
1998
  key: "1"
1847
1999
  } : void 0
1848
2000
  ]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1849
- M(m(ye), {
2001
+ Q(v(ye), {
1850
2002
  modelValue: d.value,
1851
- "onUpdate:modelValue": L[2] || (L[2] = (K) => d.value = K),
2003
+ "onUpdate:modelValue": x[2] || (x[2] = (W) => d.value = W),
1852
2004
  spy: "",
1853
2005
  "non-modal": "",
1854
2006
  trigger: "manual",
1855
2007
  placement: "bottom-start",
1856
2008
  width: "anchor",
1857
2009
  offset: 4,
1858
- anchor: (F = f.value) == null ? void 0 : F.$el,
1859
- onEnter: w,
1860
- onLeave: me
2010
+ anchor: (F = c.value) == null ? void 0 : F.$el,
2011
+ onEnter: q,
2012
+ onLeave: ve
1861
2013
  }, {
1862
2014
  default: k(() => {
1863
- var K;
2015
+ var W;
1864
2016
  return [
1865
- x("div", {
2017
+ w("div", {
1866
2018
  ref_key: "contentRef",
1867
- ref: O,
2019
+ ref: U,
1868
2020
  class: "q-select__body",
1869
2021
  "data-testid": "combobox-dropdown",
1870
2022
  "data-key": l.id,
1871
- onFocusout: te
2023
+ onFocusout: oe
1872
2024
  }, [
1873
- v(c.$slots, "body.prepend"),
1874
- l.loading ? (r(), u("div", Uo, [
1875
- M(m(_e), { size: 24 })
1876
- ])) : V.value.length ? (r(), I(m(Ee), {
2025
+ p(u.$slots, "body.prepend"),
2026
+ l.loading ? (r(), f("div", nl, [
2027
+ Q(v(_e), { size: 24 })
2028
+ ])) : T.value.length ? (r(), B(v(Me), {
1877
2029
  key: 1,
1878
2030
  ref_key: "listRef",
1879
2031
  ref: $,
@@ -1881,23 +2033,23 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1881
2033
  selectable: "",
1882
2034
  modelValue: s.value,
1883
2035
  "onUpdate:modelValue": [
1884
- L[1] || (L[1] = (ve) => s.value = ve),
1885
- se
2036
+ x[1] || (x[1] = (me) => s.value = me),
2037
+ ae
1886
2038
  ],
1887
- highlighted: (K = P.value) == null ? void 0 : K[l.itemValue],
1888
- items: V.value,
1889
- groups: c.groups,
2039
+ highlighted: (W = P.value) == null ? void 0 : W[l.itemValue],
2040
+ items: T.value,
2041
+ groups: u.groups,
1890
2042
  "item-label": l.itemLabel,
1891
2043
  "item-value": l.itemValue,
1892
2044
  onMouseup: $e
1893
2045
  }, {
1894
- item: k(({ item: ve }) => [
1895
- v(c.$slots, "item", { item: ve })
2046
+ item: k(({ item: me }) => [
2047
+ p(u.$slots, "item", { item: me })
1896
2048
  ]),
1897
2049
  _: 3
1898
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), u("div", No, A(l.texts.noData), 1)),
1899
- v(c.$slots, "body.append")
1900
- ], 40, Oo)
2050
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), f("div", sl, D(l.texts.noData), 1)),
2051
+ p(u.$slots, "body.append")
2052
+ ], 40, ll)
1901
2053
  ];
1902
2054
  }),
1903
2055
  _: 3
@@ -1905,7 +2057,7 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1905
2057
  ], 64);
1906
2058
  };
1907
2059
  }
1908
- }), Go = C(Ho), Ro = [
2060
+ }), il = S(al), rl = [
1909
2061
  {
1910
2062
  id: "button",
1911
2063
  icon: {
@@ -1916,37 +2068,37 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1916
2068
  label: "Ok"
1917
2069
  }
1918
2070
  }
1919
- ], Ko = {
2071
+ ], dl = {
1920
2072
  icon: "check-circle-outline"
1921
- }, jo = {
2073
+ }, cl = {
1922
2074
  close: {
1923
2075
  icon: "close"
1924
2076
  }
1925
- }, Wo = { class: "q-dialog__header" }, Xo = { class: "q-dialog__header-title" }, Yo = { class: "q-dialog__body" }, Zo = {
2077
+ }, ul = { class: "q-dialog__header" }, fl = { class: "q-dialog__header-title" }, pl = { class: "q-dialog__body" }, vl = {
1926
2078
  key: 0,
1927
2079
  class: "q-dialog__body-icon"
1928
- }, Jo = { class: "q-dialog__body-text" }, el = ["innerHTML"], tl = { key: 1 }, ol = { class: "q-dialog__body-actions" }, ll = /* @__PURE__ */ S({
2080
+ }, ml = { class: "q-dialog__body-text" }, hl = ["innerHTML"], yl = { key: 1 }, bl = { class: "q-dialog__body-actions" }, gl = /* @__PURE__ */ I({
1929
2081
  __name: "QDialog",
1930
- props: /* @__PURE__ */ Y({
2082
+ props: /* @__PURE__ */ G({
1931
2083
  text: { default: "" },
1932
2084
  attach: { default: "body" },
1933
2085
  inline: { type: Boolean },
1934
2086
  backdropBlur: { type: Boolean, default: !0 },
1935
- buttons: { default: () => Ro },
2087
+ buttons: { default: () => rl },
1936
2088
  dismissible: { type: Boolean },
1937
2089
  html: { type: Boolean, default: !0 },
1938
- icon: { default: () => Ko },
2090
+ icon: { default: () => dl },
1939
2091
  id: { default: void 0 },
1940
2092
  title: { default: "" },
1941
2093
  class: { default: void 0 },
1942
- icons: { default: () => jo }
2094
+ icons: { default: () => cl }
1943
2095
  }, {
1944
2096
  modelValue: { type: Boolean },
1945
2097
  modelModifiers: {}
1946
2098
  }),
1947
2099
  emits: ["update:modelValue"],
1948
2100
  setup(o) {
1949
- const t = o, e = ee(o, "modelValue"), l = fe(t.id), n = y(() => ["q-dialog", t.class]);
2101
+ const t = o, e = X(o, "modelValue"), l = ce(t.id), n = h(() => ["q-dialog", t.class]);
1950
2102
  function s() {
1951
2103
  e.value = !1;
1952
2104
  }
@@ -1954,9 +2106,9 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1954
2106
  var i;
1955
2107
  (i = a.action) == null || i.call(a), s();
1956
2108
  }
1957
- return (a, i) => (r(), I(m(ye), {
2109
+ return (a, i) => (r(), B(v(ye), {
1958
2110
  "model-value": e.value,
1959
- id: m(l),
2111
+ id: v(l),
1960
2112
  inline: t.inline,
1961
2113
  attach: t.attach,
1962
2114
  "backdrop-blur": t.backdropBlur,
@@ -1965,48 +2117,48 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
1965
2117
  persistent: ""
1966
2118
  }, {
1967
2119
  default: k(() => [
1968
- x("div", {
1969
- class: T(n.value)
2120
+ w("div", {
2121
+ class: V(n.value)
1970
2122
  }, [
1971
- x("div", Wo, [
1972
- x("span", Xo, A(t.title), 1),
1973
- t.dismissible ? (r(), I(m(re), {
2123
+ w("div", ul, [
2124
+ w("span", fl, D(t.title), 1),
2125
+ t.dismissible ? (r(), B(v(se), {
1974
2126
  key: 0,
1975
2127
  "b-style": "tertiary",
1976
2128
  onClick: s
1977
2129
  }, {
1978
2130
  default: k(() => [
1979
- M(m(N), j(ne(t.icons.close)), null, 16)
2131
+ Q(v(O), Y(ne(t.icons.close)), null, 16)
1980
2132
  ]),
1981
2133
  _: 1
1982
- })) : _("", !0)
2134
+ })) : b("", !0)
1983
2135
  ]),
1984
- v(a.$slots, "body.content", {}, () => [
1985
- x("div", Yo, [
1986
- v(a.$slots, "body.icon", {}, () => [
1987
- t.icon ? (r(), u("span", Zo, [
1988
- M(m(N), j(ne(t.icon)), null, 16)
1989
- ])) : _("", !0)
2136
+ p(a.$slots, "body.content", {}, () => [
2137
+ w("div", pl, [
2138
+ p(a.$slots, "body.icon", {}, () => [
2139
+ t.icon ? (r(), f("span", vl, [
2140
+ Q(v(O), Y(ne(t.icon)), null, 16)
2141
+ ])) : b("", !0)
1990
2142
  ]),
1991
- x("div", Jo, [
1992
- t.html ? (r(), u("span", {
2143
+ w("div", ml, [
2144
+ t.html ? (r(), f("span", {
1993
2145
  key: 0,
1994
2146
  innerHTML: t.text
1995
- }, null, 8, el)) : (r(), u("span", tl, A(t.text), 1))
2147
+ }, null, 8, hl)) : (r(), f("span", yl, D(t.text), 1))
1996
2148
  ]),
1997
- v(a.$slots, "body.append")
2149
+ p(a.$slots, "body.append")
1998
2150
  ])
1999
2151
  ]),
2000
- x("div", ol, [
2001
- (r(!0), u(U, null, he(t.buttons, (f) => (r(), I(m(re), Z({ ref_for: !0 }, f.props, {
2002
- key: f.id,
2003
- onClick: () => d(f)
2152
+ w("div", bl, [
2153
+ (r(!0), f(N, null, he(t.buttons, (c) => (r(), B(v(se), H({ ref_for: !0 }, c.props, {
2154
+ key: c.id,
2155
+ onClick: () => d(c)
2004
2156
  }), {
2005
2157
  default: k(() => [
2006
- f.icon ? (r(), I(m(N), Z({
2158
+ c.icon ? (r(), B(v(O), H({
2007
2159
  key: 0,
2008
2160
  ref_for: !0
2009
- }, f.icon), null, 16)) : _("", !0)
2161
+ }, c.icon), null, 16)) : b("", !0)
2010
2162
  ]),
2011
2163
  _: 2
2012
2164
  }, 1040, ["onClick"]))), 128))
@@ -2016,13 +2168,13 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2016
2168
  _: 3
2017
2169
  }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
2018
2170
  }
2019
- }), nl = C(ll), sl = {
2171
+ }), _l = S(gl), kl = {
2020
2172
  key: 0,
2021
2173
  class: "q-input-group__prepend"
2022
- }, al = { key: 0 }, il = {
2174
+ }, $l = { key: 0 }, wl = {
2023
2175
  key: 1,
2024
2176
  class: "q-input-group__append"
2025
- }, rl = { key: 0 }, dl = /* @__PURE__ */ S({
2177
+ }, ql = { key: 0 }, Ll = /* @__PURE__ */ I({
2026
2178
  __name: "QInputGroup",
2027
2179
  props: {
2028
2180
  id: { default: void 0 },
@@ -2035,64 +2187,64 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2035
2187
  },
2036
2188
  setup(o) {
2037
2189
  const t = o;
2038
- return We({
2190
+ return Qe({
2039
2191
  QField: {
2040
2192
  size: "block"
2041
2193
  }
2042
- }), (e, l) => (r(), I(m(Ie), {
2194
+ }), (e, l) => (r(), B(v(Be), {
2043
2195
  id: t.id,
2044
- class: T(["q-input-group", t.class]),
2196
+ class: V(["q-input-group", t.class]),
2045
2197
  label: t.label,
2046
2198
  required: t.required,
2047
2199
  size: t.size
2048
- }, Le({
2200
+ }, xe({
2049
2201
  default: k(() => [
2050
- e.$slots.prepend || t.prependIcon ? (r(), u("div", sl, [
2051
- t.prependIcon ? (r(), u("span", al, [
2052
- M(m(N), j(ne(t.prependIcon)), null, 16)
2053
- ])) : _("", !0),
2054
- v(e.$slots, "prepend")
2055
- ])) : _("", !0),
2056
- v(e.$slots, "default"),
2057
- e.$slots.append || t.appendIcon ? (r(), u("div", il, [
2058
- t.appendIcon ? (r(), u("span", rl, [
2059
- M(m(N), j(ne(t.appendIcon)), null, 16)
2060
- ])) : _("", !0),
2061
- v(e.$slots, "append")
2062
- ])) : _("", !0)
2202
+ e.$slots.prepend || t.prependIcon ? (r(), f("div", kl, [
2203
+ t.prependIcon ? (r(), f("span", $l, [
2204
+ Q(v(O), Y(ne(t.prependIcon)), null, 16)
2205
+ ])) : b("", !0),
2206
+ p(e.$slots, "prepend")
2207
+ ])) : b("", !0),
2208
+ p(e.$slots, "default"),
2209
+ e.$slots.append || t.appendIcon ? (r(), f("div", wl, [
2210
+ t.appendIcon ? (r(), f("span", ql, [
2211
+ Q(v(O), Y(ne(t.appendIcon)), null, 16)
2212
+ ])) : b("", !0),
2213
+ p(e.$slots, "append")
2214
+ ])) : b("", !0)
2063
2215
  ]),
2064
2216
  _: 2
2065
2217
  }, [
2066
2218
  e.$slots.extras ? {
2067
2219
  name: "extras",
2068
2220
  fn: k(() => [
2069
- v(e.$slots, "extras")
2221
+ p(e.$slots, "extras")
2070
2222
  ]),
2071
2223
  key: "0"
2072
2224
  } : void 0
2073
2225
  ]), 1032, ["id", "class", "label", "required", "size"]));
2074
2226
  }
2075
- }), cl = C(dl), ul = /* @__PURE__ */ S({
2227
+ }), xl = S(Ll), Bl = /* @__PURE__ */ I({
2076
2228
  __name: "QLineLoader",
2077
2229
  props: {
2078
2230
  class: { default: void 0 }
2079
2231
  },
2080
2232
  setup(o) {
2081
2233
  const t = o;
2082
- return (e, l) => (r(), u("div", {
2083
- class: T(["q-line-loader", t.class])
2234
+ return (e, l) => (r(), f("div", {
2235
+ class: V(["q-line-loader", t.class])
2084
2236
  }, null, 2));
2085
2237
  }
2086
- }), fl = C(ul), pl = {
2238
+ }), Il = S(Bl), Sl = {
2087
2239
  key: 0,
2088
2240
  class: "q-popover__header"
2089
- }, ml = {
2241
+ }, Cl = {
2090
2242
  key: 1,
2091
2243
  class: "q-popover__body"
2092
- }, vl = ["innerHTML"], hl = { key: 1 }, yl = /* @__PURE__ */ S({
2244
+ }, Vl = ["innerHTML"], Tl = { key: 1 }, Al = /* @__PURE__ */ I({
2093
2245
  inheritAttrs: !1,
2094
2246
  __name: "QPopover",
2095
- props: /* @__PURE__ */ Y({
2247
+ props: /* @__PURE__ */ G({
2096
2248
  anchor: {},
2097
2249
  arrow: { type: Boolean, default: !0 },
2098
2250
  attach: { default: "body" },
@@ -2108,8 +2260,8 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2108
2260
  }),
2109
2261
  emits: ["update:modelValue"],
2110
2262
  setup(o) {
2111
- const t = o, e = ee(o, "modelValue");
2112
- return (l, n) => (r(), I(m(ye), {
2263
+ const t = o, e = X(o, "modelValue");
2264
+ return (l, n) => (r(), B(v(ye), {
2113
2265
  modelValue: e.value,
2114
2266
  "onUpdate:modelValue": n[0] || (n[0] = (s) => e.value = s),
2115
2267
  class: "q-popover",
@@ -2122,31 +2274,31 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2122
2274
  placement: t.placement
2123
2275
  }, {
2124
2276
  default: k(() => [
2125
- t.title || l.$slots.header ? (r(), u("h3", pl, [
2126
- ue(A(t.title) + " ", 1),
2127
- v(l.$slots, "header")
2128
- ])) : _("", !0),
2129
- t.text || l.$slots.body ? (r(), u("div", ml, [
2130
- t.html ? (r(), u("span", {
2277
+ t.title || l.$slots.header ? (r(), f("h3", Sl, [
2278
+ de(D(t.title) + " ", 1),
2279
+ p(l.$slots, "header")
2280
+ ])) : b("", !0),
2281
+ t.text || l.$slots.body ? (r(), f("div", Cl, [
2282
+ t.html ? (r(), f("span", {
2131
2283
  key: 0,
2132
2284
  innerHTML: t.text
2133
- }, null, 8, vl)) : (r(), u("span", hl, A(t.text), 1)),
2134
- v(l.$slots, "body")
2135
- ])) : _("", !0)
2285
+ }, null, 8, Vl)) : (r(), f("span", Tl, D(t.text), 1)),
2286
+ p(l.$slots, "body")
2287
+ ])) : b("", !0)
2136
2288
  ]),
2137
2289
  _: 3
2138
2290
  }, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
2139
2291
  }
2140
- }), bl = C(yl), at = {
2292
+ }), El = S(Al), rt = {
2141
2293
  emptyMessage: "Select a field to view details."
2142
- }, it = {
2294
+ }, dt = {
2143
2295
  open: {
2144
2296
  icon: "minus-box"
2145
2297
  },
2146
2298
  close: {
2147
2299
  icon: "plus-box"
2148
2300
  }
2149
- }, gl = { class: "q-property-list__table" }, _l = /* @__PURE__ */ S({
2301
+ }, Dl = { class: "q-property-list__table" }, Ql = /* @__PURE__ */ I({
2150
2302
  __name: "QPropertyList",
2151
2303
  props: {
2152
2304
  fields: { default: () => [] },
@@ -2156,33 +2308,33 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2156
2308
  groups: { default: () => [] },
2157
2309
  readonly: { type: Boolean },
2158
2310
  class: { default: void 0 },
2159
- icons: { default: () => it },
2160
- texts: { default: () => at }
2311
+ icons: { default: () => dt },
2312
+ texts: { default: () => rt }
2161
2313
  },
2162
2314
  emits: ["field-change"],
2163
2315
  setup(o, { emit: t }) {
2164
- const e = o, l = t, n = D(e.groups.map((b) => b.id)), s = D(void 0), d = D(null), a = y(() => e.groups.length ? e.groups.filter(
2165
- (b) => e.fields.some((E) => E.group === b.id)
2166
- ) : [{ id: "", title: "" }]), i = y(() => [
2316
+ const e = o, l = t, n = A(e.groups.map((g) => g.id)), s = A(void 0), d = A(null), a = h(() => e.groups.length ? e.groups.filter(
2317
+ (g) => e.fields.some((E) => E.group === g.id)
2318
+ ) : [{ id: "", title: "" }]), i = h(() => [
2167
2319
  e.class,
2168
2320
  {
2169
2321
  "q-property-list--side-panel": e.panelPosition === "right"
2170
2322
  }
2171
2323
  ]);
2172
- function f() {
2173
- var b;
2174
- (b = d.value) != null && b.contains(document.activeElement) || (s.value = void 0);
2324
+ function c() {
2325
+ var g;
2326
+ (g = d.value) != null && g.contains(document.activeElement) || (s.value = void 0);
2175
2327
  }
2176
- function $(b) {
2177
- return b ? e.fields.filter((E) => E.group === b) : e.fields;
2328
+ function $(g) {
2329
+ return g ? e.fields.filter((E) => E.group === g) : e.fields;
2178
2330
  }
2179
- function B(b) {
2180
- const E = n.value.indexOf(b);
2181
- E === -1 ? n.value.push(b) : n.value.splice(E, 1);
2331
+ function C(g) {
2332
+ const E = n.value.indexOf(g);
2333
+ E === -1 ? n.value.push(g) : n.value.splice(E, 1);
2182
2334
  }
2183
- function O(b) {
2335
+ function U(g) {
2184
2336
  var z;
2185
- const E = b.group && !n.value.includes(b.group), P = ((z = s.value) == null ? void 0 : z.id) === b.id;
2337
+ const E = g.group && !n.value.includes(g.group), P = ((z = s.value) == null ? void 0 : z.id) === g.id;
2186
2338
  return [
2187
2339
  {
2188
2340
  "q-property-list__row--closed": E,
@@ -2190,72 +2342,72 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2190
2342
  }
2191
2343
  ];
2192
2344
  }
2193
- function Q(b) {
2194
- s.value = b;
2345
+ function M(g) {
2346
+ s.value = g;
2195
2347
  }
2196
- function V(b, E) {
2197
- e.readonly || (b.props.readonly ?? !1) || (b.props.modelValue = E, l("field-change", b));
2348
+ function T(g, E) {
2349
+ e.readonly || (g.props.readonly ?? !1) || (g.props.modelValue = E, l("field-change", g));
2198
2350
  }
2199
- return (b, E) => (r(), u("div", {
2351
+ return (g, E) => (r(), f("div", {
2200
2352
  tabindex: "0",
2201
- class: T(["q-property-list", i.value]),
2353
+ class: V(["q-property-list", i.value]),
2202
2354
  ref_key: "componentRoot",
2203
2355
  ref: d,
2204
- onFocusout: f
2356
+ onFocusout: c
2205
2357
  }, [
2206
- x("table", gl, [
2207
- E[0] || (E[0] = x("thead", { class: "q-property-list__header" }, [
2208
- x("tr", null, [
2209
- x("th", { colspan: "2" })
2358
+ w("table", Dl, [
2359
+ E[0] || (E[0] = w("thead", { class: "q-property-list__header" }, [
2360
+ w("tr", null, [
2361
+ w("th", { colspan: "2" })
2210
2362
  ])
2211
2363
  ], -1)),
2212
- x("tbody", null, [
2213
- (r(!0), u(U, null, he(a.value, (P) => (r(), u(U, {
2364
+ w("tbody", null, [
2365
+ (r(!0), f(N, null, he(a.value, (P) => (r(), f(N, {
2214
2366
  key: P.id
2215
2367
  }, [
2216
- P.title ? (r(), I(m(dt), {
2368
+ P.title ? (r(), B(v(ut), {
2217
2369
  key: 0,
2218
2370
  id: P.id,
2219
2371
  title: P.title,
2220
2372
  icons: e.icons,
2221
2373
  "no-toggle": e.noToggle,
2222
- onToggleGroup: B
2223
- }, null, 8, ["id", "title", "icons", "no-toggle"])) : _("", !0),
2224
- (r(!0), u(U, null, he($(P.id), (z) => (r(), I(m(rt), {
2374
+ onToggleGroup: C
2375
+ }, null, 8, ["id", "title", "icons", "no-toggle"])) : b("", !0),
2376
+ (r(!0), f(N, null, he($(P.id), (z) => (r(), B(v(ct), {
2225
2377
  key: z.id,
2226
- class: T(O(z)),
2378
+ class: V(U(z)),
2227
2379
  field: z,
2228
2380
  readonly: e.readonly,
2229
- onFocus: Q,
2230
- onFieldChange: V
2381
+ onFocus: M,
2382
+ onFieldChange: T
2231
2383
  }, {
2232
2384
  default: k(() => [
2233
- v(b.$slots, z.id, { field: z })
2385
+ p(g.$slots, z.id, { field: z })
2234
2386
  ]),
2235
2387
  _: 2
2236
2388
  }, 1032, ["class", "field", "readonly"]))), 128))
2237
2389
  ], 64))), 128))
2238
2390
  ])
2239
2391
  ]),
2240
- e.noPanel ? _("", !0) : (r(), I(m(ct), {
2392
+ e.noPanel ? b("", !0) : (r(), B(v(ft), {
2241
2393
  key: 0,
2242
2394
  field: s.value,
2243
2395
  texts: e.texts
2244
2396
  }, {
2245
2397
  default: k(() => [
2246
- s.value ? v(b.$slots, "panel", {
2398
+ s.value ? p(g.$slots, "panel", {
2247
2399
  key: 0,
2248
2400
  field: s.value
2249
- }) : _("", !0)
2401
+ }) : b("", !0)
2250
2402
  ]),
2251
2403
  _: 3
2252
2404
  }, 8, ["field", "texts"]))
2253
2405
  ], 34));
2254
2406
  }
2255
- }), kl = {
2407
+ }), Ml = {
2256
2408
  key: 0,
2257
2409
  class: "q-property-list-field__container"
2258
- }, $l = /* @__PURE__ */ S({
2410
+ }, zl = /* @__PURE__ */ I({
2259
2411
  __name: "QPropertyListRow",
2260
2412
  props: {
2261
2413
  field: {},
@@ -2264,56 +2416,56 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2264
2416
  },
2265
2417
  emits: ["focus", "field-change"],
2266
2418
  setup(o, { emit: t }) {
2267
- const e = o, l = t, n = y(() => ["q-property-list__row", e.class]), s = y(() => {
2268
- var B;
2419
+ const e = o, l = t, n = h(() => ["q-property-list__row", e.class]), s = h(() => {
2420
+ var C;
2269
2421
  const $ = ["q-property-list__cell", "q-property-list__cell--label"];
2270
- return (B = e.field.props) != null && B.required && $.push("q-property-list__cell--required"), $;
2271
- }), d = y(() => e.readonly || (e.field.props.readonly ?? !1));
2422
+ return (C = e.field.props) != null && C.required && $.push("q-property-list__cell--required"), $;
2423
+ }), d = h(() => e.readonly || (e.field.props.readonly ?? !1));
2272
2424
  function a() {
2273
2425
  l("focus", e.field);
2274
2426
  }
2275
2427
  function i($) {
2276
2428
  l("field-change", e.field, $);
2277
2429
  }
2278
- const f = y(() => ({
2430
+ const c = h(() => ({
2279
2431
  ...e.field.props,
2280
2432
  readonly: d.value
2281
2433
  }));
2282
- return ($, B) => (r(), u("tr", {
2283
- class: T(n.value),
2434
+ return ($, C) => (r(), f("tr", {
2435
+ class: V(n.value),
2284
2436
  onFocusin: a
2285
2437
  }, [
2286
- x("td", {
2287
- class: T(s.value),
2438
+ w("td", {
2439
+ class: V(s.value),
2288
2440
  onClick: a
2289
- }, A(e.field.label), 3),
2290
- x("td", {
2441
+ }, D(e.field.label), 3),
2442
+ w("td", {
2291
2443
  class: "q-property-list__cell",
2292
2444
  onClick: a
2293
2445
  }, [
2294
- v($.$slots, "default", {}, () => [
2295
- e.field.component ? (r(), u("div", kl, [
2296
- (r(), I(xe(e.field.component), Z(f.value, {
2446
+ p($.$slots, "default", {}, () => [
2447
+ e.field.component ? (r(), f("div", Ml, [
2448
+ (r(), B(Le(e.field.component), H(c.value, {
2297
2449
  "model-value": e.field.props.modelValue,
2298
2450
  "onUpdate:modelValue": i
2299
2451
  }), null, 16, ["model-value"]))
2300
- ])) : _("", !0)
2452
+ ])) : b("", !0)
2301
2453
  ])
2302
2454
  ])
2303
2455
  ], 34));
2304
2456
  }
2305
- }), wl = ["data-key", "aria-labelledby"], ql = ["id"], xl = { class: "q-property-list-group__content" }, Ll = /* @__PURE__ */ S({
2457
+ }), Fl = ["data-key", "aria-labelledby"], Ol = ["id"], Pl = { class: "q-property-list-group__content" }, Ul = /* @__PURE__ */ I({
2306
2458
  __name: "QPropertyListGroup",
2307
2459
  props: {
2308
2460
  id: {},
2309
2461
  title: {},
2310
2462
  noToggle: { type: Boolean, default: !1 },
2311
- icons: { default: () => it },
2463
+ icons: { default: () => dt },
2312
2464
  texts: {}
2313
2465
  },
2314
2466
  emits: ["toggle-group"],
2315
2467
  setup(o, { emit: t }) {
2316
- const e = o, l = t, n = D(!0), s = fe(), d = y(() => n.value ? e.icons.open : e.icons.close), a = y(() => [
2468
+ const e = o, l = t, n = A(!0), s = ce(), d = h(() => n.value ? e.icons.open : e.icons.close), a = h(() => [
2317
2469
  "q-property-list-group",
2318
2470
  {
2319
2471
  "q-property-list-group--no-toggle": e.noToggle
@@ -2322,77 +2474,77 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2322
2474
  function i() {
2323
2475
  e.noToggle || (n.value = !n.value, l("toggle-group", e.id));
2324
2476
  }
2325
- return (f, $) => (r(), u("tr", {
2326
- class: T(a.value),
2477
+ return (c, $) => (r(), f("tr", {
2478
+ class: V(a.value),
2327
2479
  role: "group",
2328
2480
  "data-key": e.id,
2329
- "aria-labelledby": m(s),
2481
+ "aria-labelledby": v(s),
2330
2482
  onClick: i
2331
2483
  }, [
2332
- x("td", {
2333
- id: m(s),
2484
+ w("td", {
2485
+ id: v(s),
2334
2486
  colspan: "2"
2335
2487
  }, [
2336
- x("div", xl, [
2337
- e.noToggle ? _("", !0) : (r(), I(m(re), {
2488
+ w("div", Pl, [
2489
+ e.noToggle ? b("", !0) : (r(), B(v(se), {
2338
2490
  key: 0,
2339
2491
  "b-style": "tertiary",
2340
2492
  borderless: "",
2341
2493
  onClick: i
2342
2494
  }, {
2343
2495
  default: k(() => [
2344
- M(m(N), j(ne(d.value)), null, 16)
2496
+ Q(v(O), Y(ne(d.value)), null, 16)
2345
2497
  ]),
2346
2498
  _: 1
2347
2499
  })),
2348
- ue(" " + A(e.title), 1)
2500
+ de(" " + D(e.title), 1)
2349
2501
  ])
2350
- ], 8, ql)
2351
- ], 10, wl));
2502
+ ], 8, Ol)
2503
+ ], 10, Fl));
2352
2504
  }
2353
- }), Il = { class: "q-property-list-panel__container" }, Bl = { class: "q-property-list-panel__label" }, Sl = { class: "q-property-list-panel__description" }, Cl = {
2505
+ }), Nl = { class: "q-property-list-panel__container" }, Rl = { class: "q-property-list-panel__label" }, Gl = { class: "q-property-list-panel__description" }, Hl = {
2354
2506
  key: 1,
2355
2507
  class: "q-property-list-panel__empty"
2356
- }, Tl = /* @__PURE__ */ S({
2508
+ }, Kl = /* @__PURE__ */ I({
2357
2509
  __name: "QPropertyListPanel",
2358
2510
  props: {
2359
2511
  field: { default: void 0 },
2360
2512
  icons: {},
2361
- texts: { default: () => at }
2513
+ texts: { default: () => rt }
2362
2514
  },
2363
2515
  setup(o) {
2364
2516
  const t = o;
2365
- return (e, l) => (r(), u("div", Il, [
2366
- t.field ? v(e.$slots, "default", { key: 0 }, () => [
2367
- x("div", Bl, A(t.field.label), 1),
2368
- x("div", Sl, A(t.field.description), 1)
2369
- ]) : (r(), u("div", Cl, A(t.texts.emptyMessage), 1))
2517
+ return (e, l) => (r(), f("div", Nl, [
2518
+ t.field ? p(e.$slots, "default", { key: 0 }, () => [
2519
+ w("div", Rl, D(t.field.label), 1),
2520
+ w("div", Gl, D(t.field.description), 1)
2521
+ ]) : (r(), f("div", Hl, D(t.texts.emptyMessage), 1))
2370
2522
  ]));
2371
2523
  }
2372
- }), Vl = C(_l), rt = C($l), dt = C(Ll), ct = C(Tl), El = {
2524
+ }), jl = S(Ql), ct = S(zl), ut = S(Ul), ft = S(Kl), Wl = {
2373
2525
  placeholder: "Choose...",
2374
2526
  clearValue: "Clear value",
2375
2527
  showOptions: "Show options"
2376
- }, Dl = {
2528
+ }, Xl = {
2377
2529
  chevron: {
2378
2530
  icon: "chevron-down"
2379
2531
  },
2380
2532
  clear: {
2381
2533
  icon: "close"
2382
2534
  }
2383
- }, Al = {
2535
+ }, Yl = {
2384
2536
  key: 0,
2385
2537
  class: "q-select__value"
2386
- }, Ql = {
2538
+ }, Zl = {
2387
2539
  key: 1,
2388
2540
  class: "q-select__placeholder"
2389
- }, zl = ["data-key"], Fl = {
2541
+ }, Jl = ["data-key"], en = {
2390
2542
  key: 0,
2391
2543
  class: "q-select__loader"
2392
- }, Ml = /* @__PURE__ */ S({
2544
+ }, tn = /* @__PURE__ */ I({
2393
2545
  inheritAttrs: !1,
2394
2546
  __name: "QSelect",
2395
- props: /* @__PURE__ */ Y({
2547
+ props: /* @__PURE__ */ G({
2396
2548
  id: { default: void 0 },
2397
2549
  label: { default: "" },
2398
2550
  clearable: { type: Boolean },
@@ -2407,35 +2559,35 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2407
2559
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2408
2560
  size: { default: void 0 },
2409
2561
  class: { default: "" },
2410
- icons: { default: () => Dl },
2411
- texts: { default: () => El }
2562
+ icons: { default: () => Xl },
2563
+ texts: { default: () => Wl }
2412
2564
  }, {
2413
2565
  modelValue: {
2414
2566
  type: [String, Number, Boolean, Symbol]
2415
2567
  },
2416
2568
  modelModifiers: {}
2417
2569
  }),
2418
- emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2570
+ emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2419
2571
  setup(o, { emit: t }) {
2420
- const e = o, l = t, n = ee(o, "modelValue"), s = D(!1), d = D(""), a = D(null), i = D(null), f = D(null), $ = y(() => B.value === void 0), B = y(
2572
+ const e = o, l = t, n = X(o, "modelValue"), s = A(!1), d = A(""), a = A(null), i = A(null), c = A(null), $ = h(() => C.value === void 0), C = h(
2421
2573
  () => {
2422
- var p;
2423
- return (p = e.items) == null ? void 0 : p.find((g) => g[e.itemValue] === n.value);
2574
+ var m;
2575
+ return (m = e.items) == null ? void 0 : m.find((_) => _[e.itemValue] === n.value);
2424
2576
  }
2425
- ), O = y(
2426
- () => B.value ? B.value[e.itemLabel] : ""
2427
- ), Q = y(
2577
+ ), U = h(
2578
+ () => C.value ? C.value[e.itemLabel] : ""
2579
+ ), M = h(
2428
2580
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2429
2581
  );
2430
- function V(p) {
2431
- n.value = p, z();
2582
+ function T(m) {
2583
+ n.value = m, z();
2432
2584
  }
2433
- function b() {
2434
- Q.value && (V(e.emptyValue), J());
2585
+ function g() {
2586
+ M.value && (T(e.emptyValue), te());
2435
2587
  }
2436
- function E(p) {
2437
- var g, R, ie;
2438
- !((g = f.value) != null && g.contains(p.relatedTarget)) && !((ie = (R = a.value) == null ? void 0 : R.fieldRef) != null && ie.contains(p.relatedTarget)) && z();
2588
+ function E(m) {
2589
+ var _, j, re;
2590
+ !((_ = c.value) != null && _.contains(m.relatedTarget)) && !((re = (j = a.value) == null ? void 0 : j.fieldRef) != null && re.contains(m.relatedTarget)) && z();
2439
2591
  }
2440
2592
  function P() {
2441
2593
  s.value || (l("before-show"), s.value = !0);
@@ -2443,53 +2595,53 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2443
2595
  function z() {
2444
2596
  s.value && (l("before-hide"), s.value = !1);
2445
2597
  }
2446
- function G() {
2598
+ function K() {
2447
2599
  e.readonly || e.disabled || (s.value ? z() : P());
2448
2600
  }
2449
- let se;
2450
- function W(p) {
2451
- if (!(!p.key || e.readonly || e.disabled)) {
2452
- if (window.clearTimeout(se), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && (p.preventDefault(), p.stopPropagation()), ["Enter", " "].includes(p.key) && (s.value = !0), ["Escape", "Tab"].includes(p.key) && (s.value ? s.value = !1 : Q.value && p.key === "Escape" && b()), p.key === "Delete" && e.clearable && b(), /^[a-z]$/i.test(p.key)) {
2453
- d.value += p.key.toLowerCase();
2454
- for (let g = 0; g < e.items.length; g++)
2455
- if (e.items[g][e.itemLabel].toLowerCase().startsWith(d.value)) {
2456
- q(g);
2601
+ let ae;
2602
+ function Z(m) {
2603
+ if (!(!m.key || e.readonly || e.disabled)) {
2604
+ if (window.clearTimeout(ae), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(m.key) && (m.preventDefault(), m.stopPropagation()), ["Enter", " "].includes(m.key) && (s.value = !0), ["Escape", "Tab"].includes(m.key) && (s.value ? s.value = !1 : M.value && m.key === "Escape" && g()), m.key === "Delete" && e.clearable && g(), /^[a-z]$/i.test(m.key)) {
2605
+ d.value += m.key.toLowerCase();
2606
+ for (let _ = 0; _ < e.items.length; _++)
2607
+ if (e.items[_][e.itemLabel].toLowerCase().startsWith(d.value)) {
2608
+ L(_);
2457
2609
  break;
2458
2610
  }
2459
2611
  }
2460
- se = window.setTimeout(function() {
2612
+ ae = window.setTimeout(function() {
2461
2613
  d.value = "";
2462
2614
  }, 500);
2463
2615
  }
2464
2616
  }
2465
- function ae() {
2466
- var p;
2467
- e.loading ? (p = f.value) == null || p.focus() : h(), l("show");
2617
+ function ie() {
2618
+ var m;
2619
+ e.loading ? (m = c.value) == null || m.focus() : y(), l("show");
2468
2620
  }
2469
- function H() {
2470
- J(), l("hide");
2621
+ function R() {
2622
+ te(), l("hide");
2471
2623
  }
2472
- function J() {
2473
- var p, g;
2474
- (g = (p = a.value) == null ? void 0 : p.fieldRef) == null || g.focus();
2624
+ function te() {
2625
+ var m, _;
2626
+ (_ = (m = a.value) == null ? void 0 : m.fieldRef) == null || _.focus();
2475
2627
  }
2476
- function h() {
2477
- var p;
2478
- (p = i.value) == null || p.$el.focus();
2628
+ function y() {
2629
+ var m;
2630
+ (m = i.value) == null || m.$el.focus();
2479
2631
  }
2480
- function q(p) {
2481
- var g;
2482
- (g = i.value) == null || g.focusItem(p);
2632
+ function L(m) {
2633
+ var _;
2634
+ (_ = i.value) == null || _.focusItem(m);
2483
2635
  }
2484
- return oe(
2636
+ return ee(
2485
2637
  () => e.loading,
2486
- (p) => {
2487
- !p && s.value && le(h);
2638
+ (m) => {
2639
+ !m && s.value && le(y);
2488
2640
  }
2489
- ), (p, g) => {
2490
- var R, ie;
2491
- return r(), u(U, null, [
2492
- M(m(Ie), Z({
2641
+ ), (m, _) => {
2642
+ var j, re;
2643
+ return r(), f(N, null, [
2644
+ Q(v(Be), H({
2493
2645
  id: e.id,
2494
2646
  label: e.label,
2495
2647
  required: e.required,
@@ -2512,27 +2664,27 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2512
2664
  "aria-expanded": s.value,
2513
2665
  "aria-haspopup": "listbox",
2514
2666
  size: e.size
2515
- }, p.$attrs, {
2516
- onClick: G,
2517
- onKeydown: ce(W, ["stop"])
2518
- }), Le({
2667
+ }, m.$attrs, {
2668
+ onClick: K,
2669
+ onKeydown: fe(Z, ["stop"])
2670
+ }), xe({
2519
2671
  append: k(() => [
2520
- v(p.$slots, "append"),
2521
- Q.value && n.value ? (r(), I(m(re), {
2672
+ p(m.$slots, "append"),
2673
+ M.value && n.value ? (r(), B(v(se), {
2522
2674
  key: 0,
2523
2675
  class: "q-select__clear",
2524
2676
  "aria-label": e.texts.clearValue,
2525
2677
  "b-style": "plain",
2526
2678
  borderless: "",
2527
2679
  tabindex: "-1",
2528
- onClick: b
2680
+ onClick: g
2529
2681
  }, {
2530
2682
  default: k(() => [
2531
- M(m(N), j(ne(e.icons.clear)), null, 16)
2683
+ Q(v(O), Y(ne(e.icons.clear)), null, 16)
2532
2684
  ]),
2533
2685
  _: 1
2534
- }, 8, ["aria-label"])) : _("", !0),
2535
- e.readonly ? _("", !0) : (r(), I(m(re), {
2686
+ }, 8, ["aria-label"])) : b("", !0),
2687
+ e.readonly ? b("", !0) : (r(), B(v(se), {
2536
2688
  key: 1,
2537
2689
  class: "q-select__chevron",
2538
2690
  "aria-label": e.texts.showOptions,
@@ -2540,70 +2692,70 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2540
2692
  borderless: "",
2541
2693
  tabindex: "-1",
2542
2694
  disabled: e.disabled,
2543
- onClick: G
2695
+ onClick: K
2544
2696
  }, {
2545
2697
  default: k(() => [
2546
- M(m(N), j(ne(e.icons.chevron)), null, 16)
2698
+ Q(v(O), Y(ne(e.icons.chevron)), null, 16)
2547
2699
  ]),
2548
2700
  _: 1
2549
2701
  }, 8, ["aria-label", "disabled"]))
2550
2702
  ]),
2551
2703
  default: k(() => [
2552
- $.value ? (r(), u("span", Ql, [
2553
- !e.readonly && !e.disabled ? (r(), u(U, { key: 0 }, [
2554
- ue(A(e.texts.placeholder), 1)
2555
- ], 64)) : _("", !0)
2556
- ])) : (r(), u("span", Al, A(O.value), 1))
2704
+ $.value ? (r(), f("span", Zl, [
2705
+ !e.readonly && !e.disabled ? (r(), f(N, { key: 0 }, [
2706
+ de(D(e.texts.placeholder), 1)
2707
+ ], 64)) : b("", !0)
2708
+ ])) : (r(), f("span", Yl, D(U.value), 1))
2557
2709
  ]),
2558
2710
  _: 2
2559
2711
  }, [
2560
- (R = B.value) != null && R.icon || p.$slots.prepend ? {
2712
+ (j = C.value) != null && j.icon || m.$slots.prepend ? {
2561
2713
  name: "prepend",
2562
2714
  fn: k(() => {
2563
- var te, de;
2715
+ var oe, ue;
2564
2716
  return [
2565
- v(p.$slots, "prepend"),
2566
- (te = B.value) != null && te.icon ? (r(), I(m(N), j(Z({ key: 0 }, (de = B.value) == null ? void 0 : de.icon)), null, 16)) : _("", !0)
2717
+ p(m.$slots, "prepend"),
2718
+ (oe = C.value) != null && oe.icon ? (r(), B(v(O), Y(H({ key: 0 }, (ue = C.value) == null ? void 0 : ue.icon)), null, 16)) : b("", !0)
2567
2719
  ];
2568
2720
  }),
2569
2721
  key: "0"
2570
2722
  } : void 0,
2571
- p.$slots.extras ? {
2723
+ m.$slots.extras ? {
2572
2724
  name: "extras",
2573
2725
  fn: k(() => [
2574
- v(p.$slots, "extras")
2726
+ p(m.$slots, "extras")
2575
2727
  ]),
2576
2728
  key: "1"
2577
2729
  } : void 0
2578
2730
  ]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2579
- M(m(ye), {
2731
+ Q(v(ye), {
2580
2732
  modelValue: s.value,
2581
- "onUpdate:modelValue": g[0] || (g[0] = (te) => s.value = te),
2733
+ "onUpdate:modelValue": _[0] || (_[0] = (oe) => s.value = oe),
2582
2734
  spy: "",
2583
2735
  trigger: "manual",
2584
2736
  placement: "bottom-start",
2585
2737
  width: "anchor",
2586
2738
  "scroll-lock": "",
2587
- anchor: (ie = a.value) == null ? void 0 : ie.$el,
2739
+ anchor: (re = a.value) == null ? void 0 : re.$el,
2588
2740
  offset: 2,
2589
- onEnter: ae,
2590
- onLeave: H
2741
+ onEnter: ie,
2742
+ onLeave: R
2591
2743
  }, {
2592
2744
  default: k(() => [
2593
- x("div", {
2745
+ w("div", {
2594
2746
  ref_key: "contentRef",
2595
- ref: f,
2747
+ ref: c,
2596
2748
  "data-testid": "combobox-dropdown",
2597
2749
  "data-key": e.id,
2598
2750
  class: "q-select__body",
2599
2751
  tabindex: "-1",
2600
2752
  onFocusout: E,
2601
- onKeydown: ce(W, ["stop"])
2753
+ onKeydown: fe(Z, ["stop"])
2602
2754
  }, [
2603
- v(p.$slots, "body.prepend"),
2604
- e.loading ? (r(), u("div", Fl, [
2605
- M(m(_e), { size: 24 })
2606
- ])) : (r(), I(m(Ee), {
2755
+ p(m.$slots, "body.prepend"),
2756
+ e.loading ? (r(), f("div", en, [
2757
+ Q(v(_e), { size: 24 })
2758
+ ])) : (r(), B(v(Me), {
2607
2759
  key: 1,
2608
2760
  ref_key: "listRef",
2609
2761
  ref: i,
@@ -2611,25 +2763,25 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2611
2763
  selectable: "",
2612
2764
  "model-value": n.value,
2613
2765
  items: e.items,
2614
- groups: p.groups,
2766
+ groups: m.groups,
2615
2767
  "item-label": e.itemLabel,
2616
2768
  "item-value": e.itemValue,
2617
- "onUpdate:modelValue": V
2769
+ "onUpdate:modelValue": T
2618
2770
  }, {
2619
- item: k(({ item: te }) => [
2620
- v(p.$slots, "item", { item: te })
2771
+ item: k(({ item: oe }) => [
2772
+ p(m.$slots, "item", { item: oe })
2621
2773
  ]),
2622
2774
  _: 3
2623
2775
  }, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
2624
- v(p.$slots, "body.append")
2625
- ], 40, zl)
2776
+ p(m.$slots, "body.append")
2777
+ ], 40, Jl)
2626
2778
  ]),
2627
2779
  _: 3
2628
2780
  }, 8, ["modelValue", "anchor"])
2629
2781
  ], 64);
2630
2782
  };
2631
2783
  }
2632
- }), Pl = C(Ml), Ol = /* @__PURE__ */ S({
2784
+ }), on = S(tn), ln = /* @__PURE__ */ I({
2633
2785
  __name: "QSkeletonLoader",
2634
2786
  props: {
2635
2787
  type: { default: void 0 },
@@ -2637,36 +2789,36 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2637
2789
  height: { default: void 0 }
2638
2790
  },
2639
2791
  setup(o) {
2640
- const t = o, e = y(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), l = y(() => {
2792
+ const t = o, e = h(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), l = h(() => {
2641
2793
  const n = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
2642
2794
  return {
2643
2795
  width: n,
2644
2796
  height: s
2645
2797
  };
2646
2798
  });
2647
- return (n, s) => (r(), u("div", {
2648
- class: T(["q-skeleton-loader", e.value]),
2799
+ return (n, s) => (r(), f("div", {
2800
+ class: V(["q-skeleton-loader", e.value]),
2649
2801
  style: pe(l.value)
2650
2802
  }, s[0] || (s[0] = [
2651
- x("div", { class: "q-skeleton-loader__bone" }, null, -1)
2803
+ w("div", { class: "q-skeleton-loader__bone" }, null, -1)
2652
2804
  ]), 6));
2653
2805
  }
2654
- }), Ul = C(Ol), Nl = /* @__PURE__ */ S({
2806
+ }), nn = S(ln), sn = /* @__PURE__ */ I({
2655
2807
  __name: "QThemeProvider",
2656
2808
  props: {
2657
2809
  theme: {}
2658
2810
  },
2659
2811
  setup(o) {
2660
2812
  const t = o;
2661
- return (e, l) => (r(), u("div", {
2662
- class: T(["q-theme-provider", `q-theme--${t.theme}`])
2813
+ return (e, l) => (r(), f("div", {
2814
+ class: V(["q-theme-provider", `q-theme--${t.theme}`])
2663
2815
  }, [
2664
- v(e.$slots, "default")
2816
+ p(e.$slots, "default")
2665
2817
  ], 2));
2666
2818
  }
2667
- }), Hl = C(Nl), Gl = ["innerHTML"], Rl = /* @__PURE__ */ S({
2819
+ }), an = S(sn), rn = ["innerHTML"], dn = /* @__PURE__ */ I({
2668
2820
  __name: "QTooltip",
2669
- props: /* @__PURE__ */ Y({
2821
+ props: /* @__PURE__ */ G({
2670
2822
  id: { default: void 0 },
2671
2823
  anchor: { default: void 0 },
2672
2824
  appearance: { default: "inverted" },
@@ -2687,35 +2839,35 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2687
2839
  }),
2688
2840
  emits: ["update:modelValue"],
2689
2841
  setup(o) {
2690
- const t = o, e = ee(o, "modelValue"), l = fe(t.id);
2691
- return (n, s) => (r(), u(U, null, [
2692
- v(n.$slots, "anchor", {
2693
- props: { "aria-describedby": m(l) }
2842
+ const t = o, e = X(o, "modelValue"), l = ce(t.id);
2843
+ return (n, s) => (r(), f(N, null, [
2844
+ p(n.$slots, "anchor", {
2845
+ props: { "aria-describedby": v(l) }
2694
2846
  }),
2695
- M(m(ye), {
2847
+ Q(v(ye), {
2696
2848
  "model-value": e.value,
2697
2849
  anchor: t.anchor,
2698
2850
  role: "tooltip",
2699
2851
  "non-modal": "",
2700
- id: m(l),
2852
+ id: v(l),
2701
2853
  appearance: t.appearance,
2702
2854
  arrow: t.arrow,
2703
2855
  attach: t.attach,
2704
2856
  inline: t.inline,
2705
- class: T(["q-tooltip", t.class]),
2857
+ class: V(["q-tooltip", t.class]),
2706
2858
  delay: t.delay,
2707
2859
  disabled: t.disabled,
2708
2860
  placement: t.placement,
2709
2861
  trigger: t.trigger
2710
2862
  }, {
2711
2863
  default: k(() => [
2712
- v(n.$slots, "default", {}, () => [
2713
- t.icon ? (r(), I(m(N), j(Z({ key: 0 }, t.icon)), null, 16)) : _("", !0),
2714
- t.html ? (r(), u("span", {
2864
+ p(n.$slots, "default", {}, () => [
2865
+ t.icon ? (r(), B(v(O), Y(H({ key: 0 }, t.icon)), null, 16)) : b("", !0),
2866
+ t.html ? (r(), f("span", {
2715
2867
  key: 1,
2716
2868
  innerHTML: t.text
2717
- }, null, 8, Gl)) : (r(), u(U, { key: 2 }, [
2718
- ue(A(t.text), 1)
2869
+ }, null, 8, rn)) : (r(), f(N, { key: 2 }, [
2870
+ de(D(t.text), 1)
2719
2871
  ], 64))
2720
2872
  ])
2721
2873
  ]),
@@ -2723,59 +2875,61 @@ const Bo = ["role"], So = /* @__PURE__ */ S({
2723
2875
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2724
2876
  ], 64));
2725
2877
  }
2726
- }), Kl = C(Rl), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2878
+ }), cn = S(dn), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2727
2879
  __proto__: null,
2728
- QBadge: Mt,
2729
- QButton: re,
2730
- QButtonGroup: ot,
2731
- QButtonToggle: Ut,
2732
- QCard: Zt,
2733
- QCheckbox: so,
2734
- QCombobox: Go,
2735
- QDialog: nl,
2736
- QField: Ie,
2737
- QIcon: N,
2738
- QIconFont: Ze,
2739
- QIconImg: Je,
2740
- QIconSvg: et,
2741
- QInputGroup: cl,
2742
- QLineLoader: fl,
2743
- QList: Ee,
2744
- QListItem: lt,
2745
- QListItemGroup: nt,
2880
+ QAccordion: Lt,
2881
+ QBadge: Ht,
2882
+ QButton: se,
2883
+ QButtonGroup: lt,
2884
+ QButtonToggle: Wt,
2885
+ QCard: nt,
2886
+ QCheckbox: fo,
2887
+ QCollapsible: $o,
2888
+ QCombobox: il,
2889
+ QDialog: _l,
2890
+ QField: Be,
2891
+ QIcon: O,
2892
+ QIconFont: Je,
2893
+ QIconImg: et,
2894
+ QIconSvg: tt,
2895
+ QInputGroup: xl,
2896
+ QLineLoader: Il,
2897
+ QList: Me,
2898
+ QListItem: st,
2899
+ QListItemGroup: at,
2746
2900
  QOverlay: ye,
2747
- QPopover: bl,
2748
- QPropertyList: Vl,
2749
- QPropertyListGroup: dt,
2750
- QPropertyListPanel: ct,
2751
- QPropertyListRow: rt,
2752
- QSelect: Pl,
2753
- QSkeletonLoader: Ul,
2901
+ QPopover: El,
2902
+ QPropertyList: jl,
2903
+ QPropertyListGroup: ut,
2904
+ QPropertyListPanel: ft,
2905
+ QPropertyListRow: ct,
2906
+ QSelect: on,
2907
+ QSkeletonLoader: nn,
2754
2908
  QSpinnerLoader: _e,
2755
- QTextField: st,
2756
- QThemeProvider: Hl,
2757
- QTooltip: Kl
2909
+ QTextField: it,
2910
+ QThemeProvider: an,
2911
+ QTooltip: cn
2758
2912
  }, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
2759
- function Wl() {
2760
- const o = Re(ge);
2913
+ function fn() {
2914
+ const o = Ae(ge);
2761
2915
  if (!o)
2762
2916
  throw new Error("[Quidgest UI] Could not find theme instance");
2763
2917
  return o;
2764
2918
  }
2765
- function ln(o) {
2766
- const t = Wl(), e = {
2767
- activeTheme: D(o),
2919
+ function _n(o) {
2920
+ const t = fn(), e = {
2921
+ activeTheme: A(o),
2768
2922
  themes: t.themes
2769
2923
  };
2770
- return Ge(ge, e), e;
2924
+ return Te(ge, e), e;
2771
2925
  }
2772
- function Xl() {
2926
+ function pn() {
2773
2927
  let o = document.getElementById(
2774
2928
  ge
2775
2929
  );
2776
2930
  return o || (o = document.createElement("style"), o.id = ge, document.head.appendChild(o)), o;
2777
2931
  }
2778
- function Yl(o) {
2932
+ function vn(o) {
2779
2933
  let t = "";
2780
2934
  for (const l of o) {
2781
2935
  t += `.q-theme--${l.name} {
@@ -2785,43 +2939,43 @@ function Yl(o) {
2785
2939
  for (s in n) {
2786
2940
  const d = n[s];
2787
2941
  if (d) {
2788
- t += ` ${Ne(s)}: ${d};
2942
+ t += ` ${He(s)}: ${d};
2789
2943
  `;
2790
- const a = tt(d);
2791
- t += ` ${Ne(s)}-rgb: ${a.r} ${a.g} ${a.b};
2944
+ const a = ot(d);
2945
+ t += ` ${He(s)}-rgb: ${a.r} ${a.g} ${a.b};
2792
2946
  `;
2793
2947
  }
2794
2948
  }
2795
2949
  t += `}
2796
2950
  `;
2797
2951
  }
2798
- const e = Xl();
2952
+ const e = pn();
2799
2953
  e.textContent = t;
2800
2954
  }
2801
- function Ne(o) {
2802
- return o ? `--q-theme-${Ye(o)}` : "";
2955
+ function He(o) {
2956
+ return o ? `--q-theme-${Ze(o)}` : "";
2803
2957
  }
2804
- function Zl(o = {}) {
2958
+ function mn(o = {}) {
2805
2959
  return { install: (e) => {
2806
2960
  const l = o.components || {};
2807
2961
  for (const s in l)
2808
2962
  e.component(s, l[s]);
2809
2963
  const n = o.defaults || {};
2810
- e.provide(Ve, D(n)), Jl(e, o.themes);
2964
+ e.provide(De, A(n)), hn(e, o.themes);
2811
2965
  } };
2812
2966
  }
2813
- function Jl(o, t) {
2967
+ function hn(o, t) {
2814
2968
  const e = [];
2815
2969
  let l;
2816
2970
  if (!t)
2817
2971
  l = "default", e.push({
2818
2972
  name: l,
2819
2973
  mode: "light",
2820
- scheme: Se
2974
+ scheme: Ce
2821
2975
  });
2822
2976
  else
2823
2977
  for (const n of t.themes) {
2824
- const d = { ...n.mode === "light" ? Se : je, ...n.colors };
2978
+ const d = { ...n.mode === "light" ? Ce : We, ...n.colors };
2825
2979
  e.push({
2826
2980
  name: n.name,
2827
2981
  mode: n.mode,
@@ -2830,21 +2984,21 @@ function Jl(o, t) {
2830
2984
  }
2831
2985
  if (l) {
2832
2986
  const n = {
2833
- activeTheme: D(l),
2987
+ activeTheme: A(l),
2834
2988
  themes: e
2835
2989
  };
2836
- Yl(e), oe(n.activeTheme, en, { immediate: !0 }), o.provide(ge, n);
2990
+ vn(e), ee(n.activeTheme, yn, { immediate: !0 }), o.provide(ge, n);
2837
2991
  }
2838
2992
  }
2839
- function en(o) {
2993
+ function yn(o) {
2840
2994
  const t = document.documentElement, l = Array.from(t.classList).filter((n) => !n.startsWith("q-theme"));
2841
2995
  t.className = l.join(" "), t.classList.add(`q-theme--${o}`);
2842
2996
  }
2843
- const nn = (o = {}) => Zl({ components: jl, ...o });
2997
+ const kn = (o = {}) => mn({ components: un, ...o });
2844
2998
  export {
2845
- jl as components,
2846
- nn as createFramework,
2847
- ln as provideTheme,
2848
- on as templates,
2849
- Wl as useTheme
2999
+ un as components,
3000
+ kn as createFramework,
3001
+ _n as provideTheme,
3002
+ gn as templates,
3003
+ fn as useTheme
2850
3004
  };