@quidgest/ui 0.13.0 → 0.13.2

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 (45) hide show
  1. package/dist/ui.css +10 -2
  2. package/dist/ui.esm.js +645 -629
  3. package/dist/ui.js +6 -6
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +35 -35
  6. package/dist/ui.scss +10 -3
  7. package/esm/components/QBadge/QBadge.d.ts +12 -6
  8. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  9. package/esm/components/QBadge/QBadge.vue.js +6 -6
  10. package/esm/components/QBadge/index.d.ts +37 -15
  11. package/esm/components/QBadge/index.d.ts.map +1 -1
  12. package/esm/components/QCombobox/QCombobox.d.ts +22 -39
  13. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  14. package/esm/components/QCombobox/QCombobox.vue.js +29 -29
  15. package/esm/components/QCombobox/index.d.ts +48 -56
  16. package/esm/components/QCombobox/index.d.ts.map +1 -1
  17. package/esm/components/QDialog/QDialog.d.ts +29 -7
  18. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  19. package/esm/components/QDialog/QDialog.vue.js +121 -102
  20. package/esm/components/QDialog/index.d.ts +41 -7
  21. package/esm/components/QDialog/index.d.ts.map +1 -1
  22. package/esm/components/QList/QList.d.ts +10 -0
  23. package/esm/components/QList/QList.d.ts.map +1 -1
  24. package/esm/components/QList/QList.vue.js +23 -22
  25. package/esm/components/QList/QListItem.d.ts +14 -8
  26. package/esm/components/QList/QListItem.d.ts.map +1 -1
  27. package/esm/components/QList/QListItem.vue.js +17 -17
  28. package/esm/components/QList/index.d.ts +49 -15
  29. package/esm/components/QList/index.d.ts.map +1 -1
  30. package/esm/components/QOverlay/QOverlay.d.ts +13 -0
  31. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  32. package/esm/components/QOverlay/QOverlay.vue.js +2 -0
  33. package/esm/components/QOverlay/index.d.ts +19 -0
  34. package/esm/components/QOverlay/index.d.ts.map +1 -1
  35. package/esm/components/QSelect/QSelect.d.ts +22 -39
  36. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  37. package/esm/components/QSelect/QSelect.vue.js +37 -37
  38. package/esm/components/QSelect/index.d.ts +48 -56
  39. package/esm/components/QSelect/index.d.ts.map +1 -1
  40. package/esm/components/QTooltip/QTooltip.d.ts +15 -0
  41. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  42. package/esm/components/QTooltip/QTooltip.vue.js +44 -27
  43. package/esm/components/QTooltip/index.d.ts +20 -0
  44. package/esm/components/QTooltip/index.d.ts.map +1 -1
  45. package/package.json +1 -1
package/dist/ui.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, computed as k, openBlock as u, createElementBlock as m, normalizeClass as C, normalizeStyle as de, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as v, createCommentVNode as $, createElementVNode as A, Fragment as ae, createTextVNode as ye, toDisplayString as N, renderSlot as y, createBlock as I, resolveDynamicComponent as Ke, h as Ae, withCtx as _, normalizeProps as J, guardReactiveProps as ie, toRef as ze, mergeModels as R, useModel as ee, renderList as we, mergeProps as ue, reactive as Qe, watch as Y, nextTick as Z, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
1
+ import { defineComponent as L, computed as g, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as I, resolveDynamicComponent as Ke, h as Ae, withCtx as k, normalizeProps as G, guardReactiveProps as se, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.13.0
3
+ * Quidgest UI v0.13.2
4
4
  * (c) 2024 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
@@ -66,7 +66,7 @@ const Le = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
71
  defaultDarkColorScheme: Ge,
72
72
  defaultLightColorScheme: Le
@@ -76,28 +76,28 @@ const Le = {
76
76
  size: { default: 48 },
77
77
  class: { default: void 0 }
78
78
  },
79
- setup(t) {
80
- const o = t, e = k(() => ({
81
- "font-size": o.size !== 48 ? `${o.size}px` : void 0
79
+ setup(o) {
80
+ const t = o, e = g(() => ({
81
+ "font-size": t.size !== 48 ? `${t.size}px` : void 0
82
82
  }));
83
- return (n, l) => (u(), m("div", {
84
- class: C(["q-spinner-loader", o.class]),
85
- style: de(e.value)
83
+ return (n, l) => (u(), v("div", {
84
+ class: C(["q-spinner-loader", t.class]),
85
+ style: ue(e.value)
86
86
  }, null, 6));
87
87
  }
88
88
  });
89
- function Se(t) {
90
- return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
89
+ function Se(o) {
90
+ return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
91
91
  }
92
- function Me(t) {
93
- return t !== null && typeof t == "object" && !Array.isArray(t);
92
+ function Me(o) {
93
+ return o !== null && typeof o == "object" && !Array.isArray(o);
94
94
  }
95
- function Be(t = {}, o = {}) {
95
+ function Be(o = {}, t = {}) {
96
96
  const e = {};
97
- for (const n in t)
98
- e[n] = t[n];
99
- for (const n in o) {
100
- const l = t[n], s = o[n];
97
+ for (const n in o)
98
+ e[n] = o[n];
99
+ for (const n in t) {
100
+ const l = o[n], s = t[n];
101
101
  if (Me(l) && Me(s)) {
102
102
  e[n] = Be(
103
103
  l,
@@ -112,44 +112,44 @@ function Be(t = {}, o = {}) {
112
112
  const Ce = "q-defaults";
113
113
  function ft() {
114
114
  var s, i;
115
- const t = Pe();
116
- if (!t)
117
- throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
- const o = t.type.name ?? t.type.__name;
115
+ const o = Pe();
119
116
  if (!o)
117
+ throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
+ const t = o.type.name ?? o.type.__name;
119
+ if (!t)
120
120
  throw new Error("[Quidgest UI] Could not determine component name");
121
- const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[o];
122
- return k(() => Be(n, l));
121
+ const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
122
+ return g(() => Be(n, l));
123
123
  }
124
- function Re(t) {
125
- if (Se(t))
124
+ function Re(o) {
125
+ if (Se(o))
126
126
  return;
127
- const o = We(), e = V(t), n = k(() => Se(e.value) ? o.value : Be(o.value, e.value));
127
+ const t = We(), e = V(o), n = g(() => Se(e.value) ? t.value : Be(t.value, e.value));
128
128
  Ne(Ce, n);
129
129
  }
130
130
  function We() {
131
- const t = He(Ce, void 0);
132
- if (!t)
131
+ const o = He(Ce, void 0);
132
+ if (!o)
133
133
  throw new Error("[Quidgest UI] Could not find defaults instance");
134
- return t;
134
+ return o;
135
135
  }
136
- function Xe(t) {
137
- return t.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();
136
+ function Xe(o) {
137
+ 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();
138
138
  }
139
- function pt(t, o) {
139
+ function pt(o, t) {
140
140
  var n;
141
- const e = Xe(o);
142
- return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
141
+ const e = Xe(t);
142
+ return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
143
143
  }
144
- function B(t) {
145
- const o = t.setup;
146
- return o && (t.setup = (e, n) => {
144
+ function B(o) {
145
+ const t = o.setup;
146
+ return t && (o.setup = (e, n) => {
147
147
  const l = ft();
148
148
  if (Se(l.value))
149
- return o(e, n);
149
+ return t(e, n);
150
150
  const s = Pe();
151
151
  if (s === null)
152
- return o(e, n);
152
+ return t(e, n);
153
153
  const i = new Proxy(e, {
154
154
  get(a, r) {
155
155
  var x;
@@ -157,10 +157,10 @@ function B(t) {
157
157
  return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
158
158
  }
159
159
  });
160
- return o(i, n);
161
- }), t;
160
+ return t(i, n);
161
+ }), o;
162
162
  }
163
- const xe = B(ct), mt = ["disabled"], vt = {
163
+ const Ie = B(ct), mt = ["disabled"], vt = {
164
164
  key: 0,
165
165
  class: "q-btn__spinner"
166
166
  }, ht = { class: "q-btn__content" }, yt = /* @__PURE__ */ L({
@@ -179,12 +179,12 @@ const xe = B(ct), mt = ["disabled"], vt = {
179
179
  class: { default: void 0 }
180
180
  },
181
181
  emits: ["click"],
182
- setup(t, { emit: o }) {
183
- const e = t, n = o, l = k(() => e.disabled || e.loading);
182
+ setup(o, { emit: t }) {
183
+ const e = o, n = t, l = g(() => e.disabled || e.loading);
184
184
  function s(a) {
185
185
  l.value || n("click", a);
186
186
  }
187
- const i = k(() => {
187
+ const i = g(() => {
188
188
  const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
189
189
  return [
190
190
  "q-btn",
@@ -200,27 +200,27 @@ const xe = B(ct), mt = ["disabled"], vt = {
200
200
  e.class
201
201
  ];
202
202
  });
203
- return (a, r) => (u(), m("button", {
203
+ return (a, r) => (u(), v("button", {
204
204
  type: "button",
205
205
  class: C(i.value),
206
206
  disabled: l.value,
207
207
  onClick: pe(s, ["stop", "prevent"])
208
208
  }, [
209
- a.loading ? (u(), m("div", vt, [
210
- z(v(xe), { size: 20 })
209
+ a.loading ? (u(), v("div", vt, [
210
+ z(m(Ie), { size: 20 })
211
211
  ])) : $("", !0),
212
212
  A("span", ht, [
213
- a.iconOnRight ? (u(), m(ae, { key: 0 }, [
214
- ye(N(e.label), 1)
213
+ a.iconOnRight ? (u(), v(te, { key: 0 }, [
214
+ me(N(e.label), 1)
215
215
  ], 64)) : $("", !0),
216
216
  y(a.$slots, "default"),
217
- a.iconOnRight ? $("", !0) : (u(), m(ae, { key: 1 }, [
218
- ye(N(e.label), 1)
217
+ a.iconOnRight ? $("", !0) : (u(), v(te, { key: 1 }, [
218
+ me(N(e.label), 1)
219
219
  ], 64))
220
220
  ])
221
221
  ], 10, mt));
222
222
  }
223
- }), re = B(yt), bt = /* @__PURE__ */ L({
223
+ }), de = B(yt), bt = /* @__PURE__ */ L({
224
224
  __name: "QIcon",
225
225
  props: {
226
226
  icon: {},
@@ -228,9 +228,9 @@ const xe = B(ct), mt = ["disabled"], vt = {
228
228
  size: { default: void 0 },
229
229
  class: { default: void 0 }
230
230
  },
231
- setup(t) {
232
- const o = t, e = k(() => {
233
- switch (o.type) {
231
+ setup(o) {
232
+ const t = o, e = g(() => {
233
+ switch (t.type) {
234
234
  case "svg":
235
235
  return Je;
236
236
  case "font":
@@ -242,9 +242,9 @@ const xe = B(ct), mt = ["disabled"], vt = {
242
242
  }
243
243
  });
244
244
  return (n, l) => (u(), I(Ke(e.value), {
245
- class: C(o.class),
246
- icon: o.icon,
247
- size: o.size
245
+ class: C(t.class),
246
+ icon: t.icon,
247
+ size: t.size
248
248
  }, null, 8, ["class", "icon", "size"]));
249
249
  }
250
250
  }), gt = /* @__PURE__ */ L({
@@ -256,13 +256,13 @@ const xe = B(ct), mt = ["disabled"], vt = {
256
256
  size: { default: void 0 },
257
257
  class: { default: void 0 }
258
258
  },
259
- setup(t) {
260
- const o = t, e = k(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = k(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = k(() => ({
261
- "font-size": o.size !== void 0 ? `${o.size}px` : void 0
259
+ setup(o) {
260
+ const t = o, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
261
+ "font-size": t.size !== void 0 ? `${t.size}px` : void 0
262
262
  }));
263
- return (s, i) => (u(), m("i", {
264
- class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
265
- style: de(l.value)
263
+ return (s, i) => (u(), v("i", {
264
+ class: C(["q-icon", "q-icon__font", e.value, n.value, t.class]),
265
+ style: ue(l.value)
266
266
  }, null, 6));
267
267
  }
268
268
  }), _t = ["src"], kt = /* @__PURE__ */ L({
@@ -272,32 +272,32 @@ const xe = B(ct), mt = ["disabled"], vt = {
272
272
  size: {},
273
273
  class: {}
274
274
  },
275
- setup(t) {
276
- const o = t, e = k(() => ({
277
- "font-size": o.size !== void 0 ? `${o.size}px` : void 0
275
+ setup(o) {
276
+ const t = o, e = g(() => ({
277
+ "font-size": t.size !== void 0 ? `${t.size}px` : void 0
278
278
  }));
279
- return (n, l) => (u(), m("img", {
280
- src: o.icon,
281
- class: C(["q-icon", "q-icon__img", o.class]),
282
- style: de(e.value)
279
+ return (n, l) => (u(), v("img", {
280
+ src: t.icon,
281
+ class: C(["q-icon", "q-icon__img", t.class]),
282
+ style: ue(e.value)
283
283
  }, null, 14, _t));
284
284
  }
285
- }), he = {}, wt = L({
285
+ }), ye = {}, wt = L({
286
286
  name: "InlineSvg",
287
287
  emits: {
288
- loaded: (t) => typeof t == "object",
288
+ loaded: (o) => typeof o == "object",
289
289
  unloaded: () => !0,
290
- error: (t) => typeof t == "object"
290
+ error: (o) => typeof o == "object"
291
291
  },
292
292
  inheritAttrs: !1,
293
293
  render() {
294
294
  if (!this.svgElSource)
295
295
  return null;
296
- const t = this.getSvgContent(this.svgElSource);
297
- if (!t)
296
+ const o = this.getSvgContent(this.svgElSource);
297
+ if (!o)
298
298
  return Ae("div", this.$attrs);
299
- const o = {};
300
- return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, Ae("svg", o);
299
+ const t = {};
300
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Ae("svg", t);
301
301
  },
302
302
  props: {
303
303
  /**
@@ -348,30 +348,30 @@ const xe = B(ct), mt = ["disabled"], vt = {
348
348
  await this.getSource(this.src);
349
349
  },
350
350
  methods: {
351
- copySvgAttrs(t, o) {
352
- const e = o.attributes;
351
+ copySvgAttrs(o, t) {
352
+ const e = t.attributes;
353
353
  if (e)
354
354
  for (const n of e)
355
- t[n.name] = n.value;
355
+ o[n.name] = n.value;
356
356
  },
357
- copyComponentAttrs(t, o) {
358
- for (const [e, n] of Object.entries(o))
359
- n !== !1 && n !== null && n !== void 0 && (t[e] = n);
357
+ copyComponentAttrs(o, t) {
358
+ for (const [e, n] of Object.entries(t))
359
+ n !== !1 && n !== null && n !== void 0 && (o[e] = n);
360
360
  },
361
- getSvgContent(t) {
362
- return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), $t(t, this.title)), t);
361
+ getSvgContent(o) {
362
+ 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)), $t(o, this.title)), o);
363
363
  },
364
364
  /**
365
365
  * Get svgElSource
366
366
  * @param {string} src
367
367
  */
368
- async getSource(t) {
368
+ async getSource(o) {
369
369
  try {
370
- he[t] || (he[t] = qt(this.download(t))), this.svgElSource && he[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
371
- const o = await he[t];
372
- this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
373
- } catch (o) {
374
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete he[t], this.$emit("error", o);
370
+ ye[o] || (ye[o] = qt(this.download(o))), this.svgElSource && ye[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
371
+ const t = await ye[o];
372
+ this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
373
+ } catch (t) {
374
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[o], this.$emit("error", t);
375
375
  }
376
376
  },
377
377
  /**
@@ -379,45 +379,45 @@ const xe = B(ct), mt = ["disabled"], vt = {
379
379
  * @param {string} url
380
380
  * @returns {PromiseWithState<Element>}
381
381
  */
382
- async download(t) {
383
- const o = await fetch(t);
384
- if (!o.ok)
382
+ async download(o) {
383
+ const t = await fetch(o);
384
+ if (!t.ok)
385
385
  throw new Error("Error loading SVG");
386
- const e = await o.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
386
+ const e = await t.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
387
387
  if (!s)
388
388
  throw new Error("Loaded file is not a valid SVG");
389
389
  return s;
390
390
  }
391
391
  },
392
392
  watch: {
393
- src(t) {
394
- this.getSource(t);
393
+ src(o) {
394
+ this.getSource(o);
395
395
  }
396
396
  },
397
397
  expose: []
398
398
  });
399
- function $t(t, o) {
400
- const e = t.getElementsByTagName("title");
399
+ function $t(o, t) {
400
+ const e = o.getElementsByTagName("title");
401
401
  if (e.length)
402
- e[0].textContent = o;
402
+ e[0].textContent = t;
403
403
  else {
404
404
  const n = document.createElementNS("http://www.w3.org/2000/svg", "title");
405
- n.textContent = o, t.insertBefore(n, t.firstChild);
405
+ n.textContent = t, o.insertBefore(n, o.firstChild);
406
406
  }
407
407
  }
408
- function qt(t) {
409
- if (t.getIsPending)
410
- return t;
411
- let o = !0;
412
- const e = t.then(
413
- (n) => (o = !1, n),
408
+ function qt(o) {
409
+ if (o.getIsPending)
410
+ return o;
411
+ let t = !0;
412
+ const e = o.then(
413
+ (n) => (t = !1, n),
414
414
  (n) => {
415
- throw o = !1, n;
415
+ throw t = !1, n;
416
416
  }
417
417
  );
418
- return e.getIsPending = () => o, e;
418
+ return e.getIsPending = () => t, e;
419
419
  }
420
- const xt = /* @__PURE__ */ L({
420
+ const It = /* @__PURE__ */ L({
421
421
  __name: "QIconSvg",
422
422
  props: {
423
423
  icon: {},
@@ -426,8 +426,8 @@ const xt = /* @__PURE__ */ L({
426
426
  class: { default: void 0 }
427
427
  },
428
428
  emits: ["loaded", "unloaded"],
429
- setup(t, { emit: o }) {
430
- const e = t, n = o, l = k(() => ({
429
+ setup(o, { emit: t }) {
430
+ const e = o, n = t, l = g(() => ({
431
431
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
432
432
  }));
433
433
  function s(a) {
@@ -436,40 +436,40 @@ const xt = /* @__PURE__ */ L({
436
436
  function i() {
437
437
  n("unloaded");
438
438
  }
439
- return (a, r) => (u(), I(v(wt), {
439
+ return (a, r) => (u(), I(m(wt), {
440
440
  class: C(["q-icon", "q-icon__svg", e.class]),
441
441
  src: e.bundle,
442
442
  symbol: e.icon,
443
- style: de(l.value),
443
+ style: ue(l.value),
444
444
  onLoaded: s,
445
445
  onUnloaded: i
446
446
  }, null, 8, ["class", "src", "symbol", "style"]));
447
447
  }
448
- }), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(xt);
449
- function It(t) {
450
- return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
448
+ }), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(It);
449
+ function xt(o) {
450
+ return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(o);
451
451
  }
452
- function Lt(t) {
453
- const o = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
454
- if (o) {
455
- const e = parseInt(o[1], 10), n = parseInt(o[2], 10), l = parseInt(o[3], 10);
452
+ function Lt(o) {
453
+ const t = o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
454
+ if (t) {
455
+ const e = parseInt(t[1], 10), n = parseInt(t[2], 10), l = parseInt(t[3], 10);
456
456
  return { r: e, g: n, b: l };
457
457
  }
458
458
  }
459
- function et(t) {
460
- if (It(t)) {
461
- t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
462
- const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
463
- return { r: o, g: e, b: n };
459
+ function et(o) {
460
+ if (xt(o)) {
461
+ o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
462
+ const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), n = parseInt(o.slice(5, 7), 16);
463
+ return { r: t, g: e, b: n };
464
464
  } else {
465
- const o = Lt(t);
466
- if (o)
467
- return o;
465
+ const t = Lt(o);
466
+ if (t)
467
+ return t;
468
468
  }
469
469
  throw new Error("Invalid color format");
470
470
  }
471
- function St(t) {
472
- const o = t.r / 255, e = t.g / 255, n = t.b / 255, l = Math.max(o, e, n), s = Math.min(o, e, n);
471
+ function St(o) {
472
+ const t = o.r / 255, e = o.g / 255, n = o.b / 255, l = Math.max(t, e, n), s = Math.min(t, e, n);
473
473
  let i = 0, a;
474
474
  const r = (l + s) / 2;
475
475
  if (l === s)
@@ -477,14 +477,14 @@ function St(t) {
477
477
  else {
478
478
  const f = l - s;
479
479
  switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
480
- case o:
480
+ case t:
481
481
  i = (e - n) / f + (e < n ? 6 : 0);
482
482
  break;
483
483
  case e:
484
- i = (n - o) / f + 2;
484
+ i = (n - t) / f + 2;
485
485
  break;
486
486
  case n:
487
- i = (o - e) / f + 4;
487
+ i = (t - e) / f + 4;
488
488
  break;
489
489
  }
490
490
  i /= 6;
@@ -495,8 +495,8 @@ function St(t) {
495
495
  l: Math.round(r * 100)
496
496
  };
497
497
  }
498
- function Bt(t) {
499
- return t > 50 ? "#000" : "#fff";
498
+ function Bt(o) {
499
+ return o > 50 ? "#000" : "#fff";
500
500
  }
501
501
  const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Tt = { class: "q-badge__content" }, Vt = {
502
502
  remove: {
@@ -509,16 +509,16 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
509
509
  variant: { default: "tonal" },
510
510
  removable: { type: Boolean },
511
511
  pill: { type: Boolean },
512
- icons: { default: () => Vt }
512
+ internals: { default: () => ({ icons: Vt }) }
513
513
  },
514
514
  emits: ["click:remove"],
515
- setup(t, { emit: o }) {
516
- const e = t, n = o, l = k(
515
+ setup(o, { emit: t }) {
516
+ const e = o, n = t, l = g(
517
517
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
518
- ), s = k(() => {
518
+ ), s = g(() => {
519
519
  const r = l.value ? `q-badge--${e.color}` : void 0;
520
520
  return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
521
- }), i = k(() => {
521
+ }), i = g(() => {
522
522
  let r, f;
523
523
  if (!l.value)
524
524
  if (r = e.color, e.variant === "tonal")
@@ -535,23 +535,23 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
535
535
  function a() {
536
536
  n("click:remove");
537
537
  }
538
- return (r, f) => (u(), m("span", {
538
+ return (r, f) => (u(), v("span", {
539
539
  class: C(s.value),
540
540
  role: "presentation",
541
- style: de(i.value)
541
+ style: ue(i.value)
542
542
  }, [
543
543
  Ct,
544
544
  A("div", Tt, [
545
545
  y(r.$slots, "default"),
546
- e.removable ? (u(), I(v(re), {
546
+ e.removable ? (u(), I(m(de), {
547
547
  key: 0,
548
548
  class: "q-badge__remove",
549
549
  borderless: "",
550
550
  tabindex: "0",
551
551
  onClick: a
552
552
  }, {
553
- default: _(() => [
554
- z(v(F), J(ie(e.icons.remove)), null, 16)
553
+ default: k(() => [
554
+ z(m(F), G(se(e.internals.icons.remove)), null, 16)
555
555
  ]),
556
556
  _: 1
557
557
  })) : $("", !0)
@@ -566,22 +566,22 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
566
566
  elevated: { type: Boolean },
567
567
  class: { default: void 0 }
568
568
  },
569
- setup(t) {
570
- const o = t;
569
+ setup(o) {
570
+ const t = o;
571
571
  return Re({
572
572
  QButton: {
573
573
  bStyle: "secondary",
574
- disabled: ze(o, "disabled"),
575
- borderless: ze(o, "borderless"),
574
+ disabled: ze(t, "disabled"),
575
+ borderless: ze(t, "borderless"),
576
576
  elevated: !1
577
577
  }
578
- }), (e, n) => (u(), m("div", {
578
+ }), (e, n) => (u(), v("div", {
579
579
  class: C([
580
580
  "q-btn-group",
581
581
  {
582
- "q-btn-group--elevated": o.elevated
582
+ "q-btn-group--elevated": t.elevated
583
583
  },
584
- o.class
584
+ t.class
585
585
  ])
586
586
  }, [
587
587
  y(e.$slots, "default")
@@ -589,7 +589,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
589
589
  }
590
590
  }), tt = B(At), zt = /* @__PURE__ */ L({
591
591
  __name: "QButtonToggle",
592
- props: /* @__PURE__ */ R({
592
+ props: /* @__PURE__ */ X({
593
593
  options: {},
594
594
  disabled: { type: Boolean },
595
595
  borderless: { type: Boolean },
@@ -601,27 +601,27 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
601
601
  modelModifiers: {}
602
602
  }),
603
603
  emits: ["update:modelValue"],
604
- setup(t) {
605
- const o = t, e = ee(t, "modelValue");
604
+ setup(o) {
605
+ const t = o, e = ee(o, "modelValue");
606
606
  function n(l) {
607
- e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
607
+ e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
608
608
  }
609
- return (l, s) => (u(), I(v(tt), {
609
+ return (l, s) => (u(), I(m(tt), {
610
610
  "b-style": "secondary",
611
- class: C(o.class),
612
- disabled: o.disabled,
613
- borderless: o.borderless,
614
- elevated: o.elevated
611
+ class: C(t.class),
612
+ disabled: t.disabled,
613
+ borderless: t.borderless,
614
+ elevated: t.elevated
615
615
  }, {
616
- default: _(() => [
617
- (u(!0), m(ae, null, we(o.options, (i) => (u(), I(v(re), {
616
+ default: k(() => [
617
+ (u(!0), v(te, null, we(t.options, (i) => (u(), I(m(de), {
618
618
  key: i.key,
619
619
  title: i.title,
620
620
  label: i.label,
621
621
  active: e.value === i.key,
622
622
  onClick: () => n(i)
623
623
  }, {
624
- default: _(() => [
624
+ default: k(() => [
625
625
  y(l.$slots, i.key)
626
626
  ]),
627
627
  _: 2
@@ -632,14 +632,15 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
632
632
  }
633
633
  }), Qt = B(zt), Mt = /* @__PURE__ */ L({
634
634
  __name: "QList",
635
- props: /* @__PURE__ */ R({
635
+ props: /* @__PURE__ */ X({
636
636
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
637
637
  items: {},
638
638
  groups: { default: () => [] },
639
639
  itemValue: { default: "key" },
640
640
  itemLabel: { default: "label" },
641
641
  disabled: { type: Boolean },
642
- class: { default: void 0 }
642
+ class: { default: void 0 },
643
+ selectable: { type: Boolean }
643
644
  }, {
644
645
  modelValue: {
645
646
  type: [String, Number, Boolean, Symbol]
@@ -647,9 +648,9 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
647
648
  modelModifiers: {}
648
649
  }),
649
650
  emits: ["update:modelValue"],
650
- setup(t, { expose: o }) {
651
- const e = t, n = ee(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
652
- (p) => e.items.some((g) => g.group === p.id)
651
+ setup(o, { expose: t }) {
652
+ const e = o, n = ee(o, "modelValue"), l = V(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
653
+ (p) => e.items.some((_) => _.group === p.id)
653
654
  ) : [{ id: "", title: "" }]), a = V(null);
654
655
  function r(p) {
655
656
  n.value = p;
@@ -664,10 +665,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
664
665
  var h;
665
666
  if ((h = a.value) != null && h.contains(p.relatedTarget))
666
667
  return;
667
- let g;
668
- n.value ? g = e.items.findIndex((U) => U[e.itemValue] === n.value) : g = G();
668
+ let _;
669
+ n.value ? _ = e.items.findIndex((U) => U[e.itemValue] === n.value) : _ = R();
669
670
  const c = l.value;
670
- S(g, c);
671
+ S(_, c);
671
672
  }
672
673
  function M(p) {
673
674
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
@@ -692,68 +693,68 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
692
693
  S(H(p));
693
694
  break;
694
695
  case "first":
695
- S(G());
696
+ S(R());
696
697
  break;
697
698
  case "last":
698
699
  S(O());
699
700
  break;
700
701
  }
701
702
  }
702
- function S(p, g = !1) {
703
+ function S(p, _ = !1) {
703
704
  var h;
704
- (h = T()[p]) == null || h.focus({ preventScroll: g });
705
+ (h = T()[p]) == null || h.focus({ preventScroll: _ });
705
706
  }
706
707
  function T() {
707
- var g;
708
- const p = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
708
+ var _;
709
+ const p = (_ = a.value) == null ? void 0 : _.querySelectorAll("li");
709
710
  return p ? Array.from(p) : [];
710
711
  }
711
- function W(p) {
712
+ function Y(p) {
712
713
  return T()[p];
713
714
  }
714
- function te() {
715
+ function oe() {
715
716
  return T().indexOf(document.activeElement);
716
717
  }
717
- function G() {
718
- const p = T(), g = p.find((c) => Q(c));
719
- return g ? p.indexOf(g) : -1;
718
+ function R() {
719
+ const p = T(), _ = p.find((c) => Q(c));
720
+ return _ ? p.indexOf(_) : -1;
720
721
  }
721
722
  function O() {
722
- const p = T(), g = [...p].reverse().find((c) => Q(c));
723
- return g ? p.indexOf(g) : -1;
723
+ const p = T(), _ = [...p].reverse().find((c) => Q(c));
724
+ return _ ? p.indexOf(_) : -1;
724
725
  }
725
- function oe(p, g, c) {
726
- return g === "prev" && p === 0 || g === "next" && p === c.length - 1;
726
+ function ne(p, _, c) {
727
+ return _ === "prev" && p === 0 || _ === "next" && p === c.length - 1;
727
728
  }
728
729
  function H(p) {
729
- const g = te();
730
- return ne(g, p);
730
+ const _ = oe();
731
+ return le(_, p);
731
732
  }
732
- function ne(p, g) {
733
+ function le(p, _) {
733
734
  const c = T();
734
- if (oe(p, g, c))
735
+ if (ne(p, _, c))
735
736
  return p;
736
- let h = p + (g === "next" ? 1 : -1);
737
+ let h = p + (_ === "next" ? 1 : -1);
737
738
  for (; !Q(c[h]); ) {
738
- if (oe(h, g, c))
739
+ if (ne(h, _, c))
739
740
  return p;
740
- h += g === "next" ? 1 : -1;
741
+ h += _ === "next" ? 1 : -1;
741
742
  }
742
743
  return h;
743
744
  }
744
745
  function Q(p) {
745
746
  return p.tabIndex === -2;
746
747
  }
747
- function X(p) {
748
- return p ? e.items.filter((g) => g.group === p) : e.items;
748
+ function W(p) {
749
+ return p ? e.items.filter((_) => _.group === p) : e.items;
749
750
  }
750
- return o({
751
+ return t({
751
752
  focusItem: S,
752
- getItem: W,
753
- getAdjacentItemIndex: ne,
754
- getFirstFocusableItemIndex: G,
753
+ getItem: Y,
754
+ getAdjacentItemIndex: le,
755
+ getFirstFocusableItemIndex: R,
755
756
  getLastFocusableItemIndex: O
756
- }), (p, g) => (u(), I(Ke(s.value), {
757
+ }), (p, _) => (u(), I(Ke(s.value), {
757
758
  ref_key: "listRef",
758
759
  ref: a,
759
760
  class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
@@ -764,14 +765,14 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
764
765
  onMouseup: q,
765
766
  onKeydown: M
766
767
  }, {
767
- default: _(() => [
768
- (u(!0), m(ae, null, we(i.value, (c) => (u(), I(v(nt), {
768
+ default: k(() => [
769
+ (u(!0), v(te, null, we(i.value, (c) => (u(), I(m(nt), {
769
770
  key: c.id,
770
771
  id: c.id,
771
772
  title: i.value.length === 1 ? void 0 : c.title
772
773
  }, {
773
- default: _(() => [
774
- (u(!0), m(ae, null, we(X(c.id), (h) => (u(), I(v(ot), {
774
+ default: k(() => [
775
+ (u(!0), v(te, null, we(W(c.id), (h) => (u(), I(m(ot), {
775
776
  key: h[e.itemValue],
776
777
  value: h[e.itemValue],
777
778
  label: h[e.itemLabel],
@@ -779,10 +780,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
779
780
  icon: h.icon,
780
781
  disabled: e.disabled || c.disabled || h.disabled,
781
782
  highlighted: e.highlighted === h[e.itemValue],
782
- selected: n.value === h[e.itemValue],
783
+ selected: p.selectable && n.value === h[e.itemValue],
783
784
  onSelect: r
784
785
  }, {
785
- default: _(() => [
786
+ default: k(() => [
786
787
  y(p.$slots, "item", { item: h })
787
788
  ]),
788
789
  _: 2
@@ -796,8 +797,8 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
796
797
  }
797
798
  });
798
799
  let Ft = 0;
799
- function me(t) {
800
- return t || `uid-${++Ft}`;
800
+ function ve(o) {
801
+ return o || `uid-${++Ft}`;
801
802
  }
802
803
  const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
803
804
  key: 0,
@@ -817,21 +818,21 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
817
818
  icon: { default: void 0 },
818
819
  selected: { type: Boolean },
819
820
  highlighted: { type: Boolean },
820
- icons: { default: () => Kt },
821
821
  disabled: { type: Boolean },
822
- description: { default: void 0 }
822
+ description: { default: void 0 },
823
+ internals: { default: () => ({ icons: Kt }) }
823
824
  },
824
825
  emits: ["select"],
825
- setup(t, { emit: o }) {
826
- const e = t, n = o, l = me();
826
+ setup(o, { emit: t }) {
827
+ const e = o, n = t, l = ve();
827
828
  function s() {
828
829
  e.disabled || n("select", e.value);
829
830
  }
830
831
  function i(a) {
831
832
  a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
832
833
  }
833
- return (a, r) => (u(), m("li", {
834
- id: v(l),
834
+ return (a, r) => (u(), v("li", {
835
+ id: m(l),
835
836
  "data-key": e.value,
836
837
  role: "option",
837
838
  tabindex: e.disabled ? void 0 : -2,
@@ -851,17 +852,17 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
851
852
  A("div", Ut, [
852
853
  A("div", Pt, [
853
854
  y(a.$slots, "default", {}, () => [
854
- e.icon ? (u(), I(v(F), J(ue({ key: 0 }, e.icon)), null, 16)) : $("", !0),
855
- ye(" " + N(e.label), 1)
855
+ e.icon ? (u(), I(m(F), G(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
856
+ me(" " + N(e.label), 1)
856
857
  ])
857
858
  ]),
858
- e.description ? (u(), m("div", Nt, [
859
- z(v(F), J(ie(e.icons.description)), null, 16),
859
+ e.description ? (u(), v("div", Nt, [
860
+ z(m(F), G(se(e.internals.icons.description)), null, 16),
860
861
  A("span", null, N(e.description), 1)
861
862
  ])) : $("", !0)
862
863
  ]),
863
864
  A("div", Ht, [
864
- e.selected ? (u(), I(v(F), ue({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
865
+ e.selected ? (u(), I(m(F), re({ key: 0 }, e.internals.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
865
866
  ])
866
867
  ], 42, Ot));
867
868
  }
@@ -871,26 +872,26 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
871
872
  id: {},
872
873
  title: { default: "" }
873
874
  },
874
- setup(t) {
875
- const o = t, e = me();
876
- return (n, l) => (u(), m("ul", {
875
+ setup(o) {
876
+ const t = o, e = ve();
877
+ return (n, l) => (u(), v("ul", {
877
878
  class: "q-list-item-group",
878
879
  role: "group",
879
- "data-key": o.id,
880
- "aria-labelledby": o.title ? v(e) : void 0
880
+ "data-key": t.id,
881
+ "aria-labelledby": t.title ? m(e) : void 0
881
882
  }, [
882
- o.title ? (u(), m("li", {
883
+ t.title ? (u(), v("li", {
883
884
  key: 0,
884
- id: v(e),
885
+ id: m(e),
885
886
  class: "q-list-item-group__title",
886
887
  role: "presentation"
887
- }, N(o.title), 9, Rt)) : $("", !0),
888
+ }, N(t.title), 9, Rt)) : $("", !0),
888
889
  y(n.$slots, "default")
889
890
  ], 8, Gt));
890
891
  }
891
892
  }), Te = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
892
- function Xt(t, o, e, n) {
893
- const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), x = Jt(q, f, l), M = Zt(x, a, f);
893
+ function Xt(o, t, e, n) {
894
+ const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), x = Jt(q, f, l), M = Zt(x, a, f);
894
895
  let E;
895
896
  if (n != null && n.arrow) {
896
897
  if (!r)
@@ -899,8 +900,8 @@ function Xt(t, o, e, n) {
899
900
  }
900
901
  return { overlayCoords: M, arrowCoords: E, placement: f };
901
902
  }
902
- function Yt(t, o, e, n) {
903
- const l = Fe(t, o, e, n);
903
+ function Yt(o, t, e, n) {
904
+ const l = Fe(o, t, e, n);
904
905
  if (Oe(l)) {
905
906
  const s = ge(e), a = {
906
907
  top: "bottom",
@@ -908,8 +909,8 @@ function Yt(t, o, e, n) {
908
909
  left: "right",
909
910
  right: "left"
910
911
  }[s], r = Fe(
911
- t,
912
912
  o,
913
+ t,
913
914
  a,
914
915
  n
915
916
  );
@@ -920,54 +921,54 @@ function Yt(t, o, e, n) {
920
921
  }
921
922
  return e;
922
923
  }
923
- function Zt(t, o, e) {
924
- const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...t };
925
- return n === "x" ? s.x = l(t.x, ke, window.innerWidth - o.width - ke) : s.y = l(t.y, ke, window.innerHeight - o.height - ke), s;
924
+ function Zt(o, t, e) {
925
+ const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...o };
926
+ return n === "x" ? s.x = l(o.x, ke, window.innerWidth - t.width - ke) : s.y = l(o.y, ke, window.innerHeight - t.height - ke), s;
926
927
  }
927
- function Jt(t, o, e) {
928
- const n = ge(o);
928
+ function Jt(o, t, e) {
929
+ const n = ge(t);
929
930
  return {
930
- x: t.x + (n === "left" ? -e : n === "right" ? e : 0),
931
- y: t.y + (n === "top" ? -e : n === "bottom" ? e : 0)
931
+ x: o.x + (n === "left" ? -e : n === "right" ? e : 0),
932
+ y: o.y + (n === "top" ? -e : n === "bottom" ? e : 0)
932
933
  };
933
934
  }
934
- function eo(t, o, e, n, l) {
935
+ function eo(o, t, e, n, l) {
935
936
  if ($e(l) === "y") {
936
- const i = o.top + o.height / 2, a = t.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
937
+ const i = t.top + t.height / 2, a = o.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
937
938
  if (f > 0 && f < e.height - n.height)
938
939
  return {
939
940
  y: f
940
941
  };
941
942
  } else {
942
- const i = o.left + o.width / 2, a = t.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
943
+ const i = t.left + t.width / 2, a = o.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
943
944
  if (f > 0 && f < e.width - n.width)
944
945
  return {
945
946
  x: f
946
947
  };
947
948
  }
948
949
  }
949
- function to(t, o, e) {
950
- const [n, l] = e.split("-"), s = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2;
950
+ function to(o, t, e) {
951
+ const [n, l] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, i = o.y + o.height / 2 - t.height / 2;
951
952
  let a;
952
953
  switch (n) {
953
954
  case "top":
954
- a = { x: s, y: t.y - o.height };
955
+ a = { x: s, y: o.y - t.height };
955
956
  break;
956
957
  case "bottom":
957
- a = { x: s, y: t.y + t.height };
958
+ a = { x: s, y: o.y + o.height };
958
959
  break;
959
960
  case "left":
960
- a = { x: t.x - o.width, y: i };
961
+ a = { x: o.x - t.width, y: i };
961
962
  break;
962
963
  case "right":
963
- a = { x: t.x + t.width, y: i };
964
+ a = { x: o.x + o.width, y: i };
964
965
  break;
965
966
  default:
966
967
  throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
967
968
  }
968
969
  if (!l)
969
970
  return a;
970
- const f = $e(e) === "y" ? "height" : "width", q = $e(e), x = t[f] / 2 - o[f] / 2;
971
+ const f = $e(e) === "y" ? "height" : "width", q = $e(e), x = o[f] / 2 - t[f] / 2;
971
972
  switch (l) {
972
973
  case "start":
973
974
  a[q] -= x;
@@ -980,61 +981,62 @@ function to(t, o, e) {
980
981
  }
981
982
  return a;
982
983
  }
983
- function Fe(t, o, e, n) {
984
+ function Fe(o, t, e, n) {
984
985
  const l = ge(e);
985
986
  let s = 0;
986
987
  switch (l) {
987
988
  case "top":
988
- s = t.top - (o.height + n);
989
+ s = o.top - (t.height + n);
989
990
  break;
990
991
  case "bottom":
991
- s = window.innerHeight - t.bottom - (o.height + n);
992
+ s = window.innerHeight - o.bottom - (t.height + n);
992
993
  break;
993
994
  case "left":
994
- s = t.left - (o.width + n);
995
+ s = o.left - (t.width + n);
995
996
  break;
996
997
  case "right":
997
- s = window.innerWidth - t.right - (o.width + n);
998
+ s = window.innerWidth - o.right - (t.width + n);
998
999
  break;
999
1000
  default:
1000
1001
  throw new Error(`[Quidgest UI] Invalid side value: ${l}`);
1001
1002
  }
1002
1003
  return s;
1003
1004
  }
1004
- function oo(t) {
1005
- return t === "x" ? "y" : "x";
1005
+ function oo(o) {
1006
+ return o === "x" ? "y" : "x";
1006
1007
  }
1007
- function no(t) {
1008
- const o = ge(t);
1009
- return ["left", "right"].includes(o) ? "x" : "y";
1008
+ function no(o) {
1009
+ const t = ge(o);
1010
+ return ["left", "right"].includes(t) ? "x" : "y";
1010
1011
  }
1011
- function $e(t) {
1012
- return oo(no(t));
1012
+ function $e(o) {
1013
+ return oo(no(o));
1013
1014
  }
1014
- function ge(t) {
1015
- const [o] = t.split("-");
1016
- return o;
1015
+ function ge(o) {
1016
+ const [t] = o.split("-");
1017
+ return t;
1017
1018
  }
1018
- function lo(t) {
1019
- const [, o] = t.split("-");
1020
- return o;
1019
+ function lo(o) {
1020
+ const [, t] = o.split("-");
1021
+ return t;
1021
1022
  }
1022
- function Oe(t) {
1023
- return t < 0;
1023
+ function Oe(o) {
1024
+ return o < 0;
1024
1025
  }
1025
- function ao(t) {
1026
- return typeof t == "string" ? document.querySelector(t) : t;
1026
+ function ao(o) {
1027
+ return typeof o == "string" ? document.querySelector(o) : o;
1027
1028
  }
1028
1029
  const so = ["role"], io = /* @__PURE__ */ L({
1029
1030
  inheritAttrs: !1,
1030
1031
  __name: "QOverlay",
1031
- props: /* @__PURE__ */ R({
1032
+ props: /* @__PURE__ */ X({
1032
1033
  anchor: { default: void 0 },
1033
1034
  appearance: { default: "regular" },
1034
1035
  arrow: { type: Boolean },
1035
1036
  attach: { default: "body" },
1036
1037
  inline: { type: Boolean },
1037
1038
  backdropBlur: { type: Boolean },
1039
+ backdropClass: { default: void 0 },
1038
1040
  delay: { default: 500 },
1039
1041
  nonModal: { type: Boolean },
1040
1042
  scrollLock: { type: Boolean },
@@ -1050,9 +1052,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
1050
1052
  modelValue: { type: Boolean },
1051
1053
  modelModifiers: {}
1052
1054
  }),
1053
- emits: /* @__PURE__ */ R(["enter", "leave"], ["update:modelValue"]),
1054
- setup(t, { emit: o }) {
1055
- const e = t, n = o, l = ee(t, "modelValue"), s = k(() => [
1055
+ emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
1056
+ setup(o, { emit: t }) {
1057
+ const e = o, n = t, l = ee(o, "modelValue"), s = g(() => [
1056
1058
  "q-overlay",
1057
1059
  `q-overlay--${ge(a.placement)}`,
1058
1060
  {
@@ -1060,7 +1062,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1060
1062
  "q-overlay--inverted": e.appearance === "inverted"
1061
1063
  },
1062
1064
  e.class
1063
- ]), i = k(() => (l.value || a.animating) && !e.nonModal), a = Qe({
1065
+ ]), i = g(() => (l.value || a.animating) && !e.nonModal), a = Qe({
1064
1066
  animating: !1,
1065
1067
  top: 0,
1066
1068
  left: 0,
@@ -1070,9 +1072,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
1070
1072
  top: void 0,
1071
1073
  left: void 0,
1072
1074
  hidden: !0
1073
- }), f = k(() => a.top !== 0 && a.left !== 0);
1074
- Y(l, () => a.animating = !0);
1075
- const q = k(() => {
1075
+ }), f = g(() => a.top !== 0 && a.left !== 0);
1076
+ Z(l, () => a.animating = !0);
1077
+ const q = g(() => {
1076
1078
  if (e.anchor === void 0)
1077
1079
  return;
1078
1080
  const b = Q(), ce = e.width === "anchor", j = ce ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
@@ -1081,7 +1083,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1081
1083
  left: `${a.left}px`,
1082
1084
  width: j !== void 0 ? `${j}px` : void 0
1083
1085
  };
1084
- }), x = k(() => {
1086
+ }), x = g(() => {
1085
1087
  if (e.arrow)
1086
1088
  return {
1087
1089
  top: r.top !== void 0 ? `${r.top}px` : void 0,
@@ -1106,18 +1108,18 @@ const so = ["role"], io = /* @__PURE__ */ L({
1106
1108
  );
1107
1109
  a.left = j.overlayCoords.x, a.top = j.overlayCoords.y, a.placement = j.placement, r.hidden = j.arrowCoords === void 0, j.arrowCoords && (r.top = j.arrowCoords.y, r.left = j.arrowCoords.x);
1108
1110
  }
1109
- Y(
1111
+ Z(
1110
1112
  () => e.placement,
1111
- () => Z(S)
1113
+ () => J(S)
1112
1114
  );
1113
1115
  let T;
1114
- function W() {
1115
- G(0);
1116
+ function Y() {
1117
+ R(0);
1116
1118
  }
1117
- function te() {
1118
- G(e.delay);
1119
+ function oe() {
1120
+ R(e.delay);
1119
1121
  }
1120
- function G(b) {
1122
+ function R(b) {
1121
1123
  T || (T = window.setTimeout(() => {
1122
1124
  l.value = !0;
1123
1125
  }, b));
@@ -1128,44 +1130,44 @@ const so = ["role"], io = /* @__PURE__ */ L({
1128
1130
  b == null || b.focus();
1129
1131
  }
1130
1132
  }
1131
- Y(f, () => Z(oe));
1132
- function oe() {
1133
+ Z(f, () => J(ne));
1134
+ function ne() {
1133
1135
  n("enter");
1134
1136
  }
1135
1137
  let H;
1136
- function ne() {
1138
+ function le() {
1137
1139
  window.clearTimeout(H), H = window.setTimeout(() => a.animating = !1, 200), n("leave");
1138
1140
  }
1139
1141
  function Q() {
1140
1142
  return e.anchor ? ao(e.anchor) : null;
1141
1143
  }
1142
- let X;
1144
+ let W;
1143
1145
  function p() {
1144
1146
  const b = Q();
1145
1147
  if (b)
1146
- switch (X = new MutationObserver(S), X.observe(b, {
1148
+ switch (W = new MutationObserver(S), W.observe(b, {
1147
1149
  attributes: !1,
1148
1150
  childList: !0,
1149
1151
  characterData: !0,
1150
1152
  subtree: !0
1151
1153
  }), e.trigger) {
1152
1154
  case "click":
1153
- b.addEventListener("click", W);
1155
+ b.addEventListener("click", Y);
1154
1156
  break;
1155
1157
  case "hover":
1156
- b.addEventListener("mouseenter", te), b.addEventListener("mouseleave", O), b.addEventListener("focusin", W), b.addEventListener("focusout", O);
1158
+ b.addEventListener("mouseenter", oe), b.addEventListener("mouseleave", O), b.addEventListener("focusin", Y), b.addEventListener("focusout", O);
1157
1159
  break;
1158
1160
  }
1159
1161
  }
1160
- function g() {
1162
+ function _() {
1161
1163
  const b = Q();
1162
1164
  if (b)
1163
- switch (X == null || X.disconnect(), e.trigger) {
1165
+ switch (W == null || W.disconnect(), e.trigger) {
1164
1166
  case "click":
1165
- b.removeEventListener("click", W);
1167
+ b.removeEventListener("click", Y);
1166
1168
  break;
1167
1169
  case "hover":
1168
- b.removeEventListener("mouseenter", te), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", W), b.removeEventListener("focusout", O);
1170
+ b.removeEventListener("mouseenter", oe), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", Y), b.removeEventListener("focusout", O);
1169
1171
  break;
1170
1172
  }
1171
1173
  }
@@ -1176,38 +1178,39 @@ const so = ["role"], io = /* @__PURE__ */ L({
1176
1178
  window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
1177
1179
  }
1178
1180
  let U;
1179
- function le() {
1180
- Q() ? (S(), U = window.setTimeout(le, 100)) : O();
1181
+ function ae() {
1182
+ Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
1181
1183
  }
1182
1184
  function K() {
1183
- c(), e.spy ? le() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && Z(() => {
1185
+ c(), e.spy ? ae() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && J(() => {
1184
1186
  var b;
1185
1187
  return (b = E.value) == null ? void 0 : b.focus();
1186
1188
  });
1187
1189
  }
1188
- function se() {
1190
+ function ie() {
1189
1191
  h(), e.spy && (clearTimeout(U), U = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1190
1192
  }
1191
1193
  function _e() {
1192
1194
  e.persistent || O();
1193
1195
  }
1194
1196
  return je(() => {
1195
- Z(p);
1197
+ J(p);
1196
1198
  }), at(() => {
1197
- g(), se();
1198
- }), Y(
1199
+ _(), ie();
1200
+ }), Z(
1199
1201
  l,
1200
1202
  (b) => {
1201
- Z(() => b ? K() : se());
1203
+ J(() => b ? K() : ie());
1202
1204
  },
1203
1205
  { immediate: !0 }
1204
1206
  ), (b, ce) => (u(), I(st, {
1205
1207
  disabled: !l.value && !a.animating || e.inline,
1206
1208
  to: e.attach
1207
1209
  }, [
1208
- i.value ? (u(), m("div", {
1210
+ i.value ? (u(), v("div", {
1209
1211
  key: 0,
1210
1212
  class: C([
1213
+ e.backdropClass,
1211
1214
  "q-overlay__underlay",
1212
1215
  { "q-overlay__underlay--blur": e.backdropBlur }
1213
1216
  ])
@@ -1215,15 +1218,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
1215
1218
  z(it, {
1216
1219
  name: e.transition,
1217
1220
  appear: "",
1218
- onLeave: ne
1221
+ onLeave: le
1219
1222
  }, {
1220
- default: _(() => [
1221
- l.value ? (u(), m("div", {
1223
+ default: k(() => [
1224
+ l.value ? (u(), v("div", {
1222
1225
  key: 0,
1223
1226
  class: C(s.value),
1224
- style: de(q.value)
1227
+ style: ue(q.value)
1225
1228
  }, [
1226
- A("div", ue({
1229
+ A("div", re({
1227
1230
  class: "q-overlay__content",
1228
1231
  ref_key: "overlayRef",
1229
1232
  ref: E,
@@ -1233,13 +1236,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
1233
1236
  onKeydown: rt(_e, ["escape"]),
1234
1237
  onBlur: _e
1235
1238
  }), [
1236
- e.arrow ? (u(), m("div", {
1239
+ e.arrow ? (u(), v("div", {
1237
1240
  key: 0,
1238
1241
  ref_key: "arrowRef",
1239
1242
  ref: M,
1240
1243
  role: "presentation",
1241
1244
  class: "q-overlay__arrow",
1242
- style: de(x.value)
1245
+ style: ue(x.value)
1243
1246
  }, null, 4)) : $("", !0),
1244
1247
  y(b.$slots, "default")
1245
1248
  ], 16, so)
@@ -1249,7 +1252,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1249
1252
  }, 8, ["name"])
1250
1253
  ], 8, ["disabled", "to"]));
1251
1254
  }
1252
- }), ve = B(io), ro = ["id"], uo = {
1255
+ }), he = B(io), ro = ["id"], uo = {
1253
1256
  key: 0,
1254
1257
  class: "q-field__label"
1255
1258
  }, co = ["for"], fo = {
@@ -1274,12 +1277,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
1274
1277
  required: { type: Boolean },
1275
1278
  class: { default: void 0 }
1276
1279
  },
1277
- setup(t, { expose: o }) {
1278
- const e = t, n = me(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
1279
- return o({
1280
+ setup(o, { expose: t }) {
1281
+ const e = o, n = ve(e.id), l = V(null), s = g(() => e.required && !e.readonly && !e.disabled);
1282
+ return t({
1280
1283
  fieldRef: l
1281
- }), (i, a) => (u(), m("div", {
1282
- id: v(n),
1284
+ }), (i, a) => (u(), v("div", {
1285
+ id: m(n),
1283
1286
  class: C([
1284
1287
  "q-field",
1285
1288
  `q-field--${e.size}`,
@@ -1291,7 +1294,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1291
1294
  e.class
1292
1295
  ])
1293
1296
  }, [
1294
- e.label ? (u(), m("div", uo, [
1297
+ e.label ? (u(), v("div", uo, [
1295
1298
  y(i.$slots, "label.prepend"),
1296
1299
  A("label", {
1297
1300
  for: e.for
@@ -1299,29 +1302,29 @@ const so = ["role"], io = /* @__PURE__ */ L({
1299
1302
  y(i.$slots, "label.append")
1300
1303
  ])) : $("", !0),
1301
1304
  y(i.$slots, "control", {}, () => [
1302
- A("div", ue({
1305
+ A("div", re({
1303
1306
  class: "q-field__control",
1304
1307
  ref_key: "fieldRef",
1305
1308
  ref: l
1306
1309
  }, i.$attrs), [
1307
- i.$slots.prepend ? (u(), m("div", fo, [
1310
+ i.$slots.prepend ? (u(), v("div", fo, [
1308
1311
  y(i.$slots, "prepend")
1309
1312
  ])) : $("", !0),
1310
1313
  y(i.$slots, "default"),
1311
- i.$slots.append ? (u(), m("div", po, [
1314
+ i.$slots.append ? (u(), v("div", po, [
1312
1315
  y(i.$slots, "append")
1313
1316
  ])) : $("", !0)
1314
1317
  ], 16)
1315
1318
  ]),
1316
- i.$slots.extras ? (u(), m("div", mo, [
1319
+ i.$slots.extras ? (u(), v("div", mo, [
1317
1320
  y(i.$slots, "extras")
1318
1321
  ])) : $("", !0)
1319
1322
  ], 10, ro));
1320
1323
  }
1321
- }), Ie = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1324
+ }), xe = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1322
1325
  inheritAttrs: !1,
1323
1326
  __name: "QTextField",
1324
- props: /* @__PURE__ */ R({
1327
+ props: /* @__PURE__ */ X({
1325
1328
  id: { default: void 0 },
1326
1329
  placeholder: { default: "" },
1327
1330
  label: { default: "" },
@@ -1338,39 +1341,39 @@ const so = ["role"], io = /* @__PURE__ */ L({
1338
1341
  modelModifiers: {}
1339
1342
  }),
1340
1343
  emits: ["update:modelValue"],
1341
- setup(t, { expose: o }) {
1342
- const e = t, n = ee(t, "modelValue"), l = me(e.id), s = V(null), i = V(null), a = k(
1344
+ setup(o, { expose: t }) {
1345
+ const e = o, n = ee(o, "modelValue"), l = ve(e.id), s = V(null), i = V(null), a = g(
1343
1346
  () => e.readonly || e.disabled ? "" : e.placeholder
1344
1347
  );
1345
- return o({
1346
- fieldRef: k(() => {
1348
+ return t({
1349
+ fieldRef: g(() => {
1347
1350
  var r;
1348
1351
  return (r = s.value) == null ? void 0 : r.fieldRef;
1349
1352
  }),
1350
1353
  inputRef: i
1351
- }), (r, f) => (u(), I(v(Ie), {
1354
+ }), (r, f) => (u(), I(m(xe), {
1352
1355
  ref_key: "fieldRef",
1353
1356
  ref: s,
1354
1357
  class: C(["q-text-field", e.class]),
1355
- for: v(l),
1358
+ for: m(l),
1356
1359
  label: e.label,
1357
1360
  size: e.size,
1358
1361
  readonly: e.readonly,
1359
1362
  disabled: e.disabled,
1360
1363
  required: e.required
1361
1364
  }, qe({
1362
- "label.prepend": _(() => [
1365
+ "label.prepend": k(() => [
1363
1366
  y(r.$slots, "label.prepend")
1364
1367
  ]),
1365
- "label.append": _(() => [
1368
+ "label.append": k(() => [
1366
1369
  y(r.$slots, "label.append")
1367
1370
  ]),
1368
- default: _(() => [
1369
- dt(A("input", ue({
1371
+ default: k(() => [
1372
+ dt(A("input", re({
1370
1373
  "onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
1371
1374
  ref_key: "inputRef",
1372
1375
  ref: i,
1373
- id: v(l),
1376
+ id: m(l),
1374
1377
  class: "q-text-field__input",
1375
1378
  type: e.type,
1376
1379
  role: e.role,
@@ -1387,21 +1390,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
1387
1390
  }, [
1388
1391
  r.$slots.prepend ? {
1389
1392
  name: "prepend",
1390
- fn: _(() => [
1393
+ fn: k(() => [
1391
1394
  y(r.$slots, "prepend")
1392
1395
  ]),
1393
1396
  key: "0"
1394
1397
  } : void 0,
1395
1398
  r.$slots.append ? {
1396
1399
  name: "append",
1397
- fn: _(() => [
1400
+ fn: k(() => [
1398
1401
  y(r.$slots, "append")
1399
1402
  ]),
1400
1403
  key: "1"
1401
1404
  } : void 0,
1402
1405
  r.$slots.extras ? {
1403
1406
  name: "extras",
1404
- fn: _(() => [
1407
+ fn: k(() => [
1405
1408
  y(r.$slots, "extras")
1406
1409
  ]),
1407
1410
  key: "2"
@@ -1425,7 +1428,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1425
1428
  }
1426
1429
  }, $o = /* @__PURE__ */ L({
1427
1430
  __name: "QCombobox",
1428
- props: /* @__PURE__ */ R({
1431
+ props: /* @__PURE__ */ X({
1429
1432
  id: { default: void 0 },
1430
1433
  placeholder: { default: "" },
1431
1434
  selectionMode: { default: "automatic" },
@@ -1442,9 +1445,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
1442
1445
  itemLabel: { default: "label" },
1443
1446
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1444
1447
  size: { default: void 0 },
1445
- texts: { default: () => ko },
1446
- icons: { default: () => wo },
1447
- class: { default: void 0 }
1448
+ class: { default: void 0 },
1449
+ internals: { default: () => ({ icons: wo, texts: ko }) }
1448
1450
  }, {
1449
1451
  modelValue: {
1450
1452
  type: [String, Number, Boolean, Symbol]
@@ -1455,33 +1457,33 @@ const so = ["role"], io = /* @__PURE__ */ L({
1455
1457
  search: { default: "" },
1456
1458
  searchModifiers: {}
1457
1459
  }),
1458
- emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1459
- setup(t, { expose: o, emit: e }) {
1460
- const n = t, l = e, s = ee(t, "modelValue"), i = ee(t, "open"), a = ee(t, "search"), r = V(void 0), f = V(null), q = V(null), x = V(null), M = V(null);
1460
+ emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1461
+ setup(o, { expose: t, emit: e }) {
1462
+ const n = o, l = e, s = ee(o, "modelValue"), i = ee(o, "open"), a = ee(o, "search"), r = V(void 0), f = V(null), q = V(null), x = V(null), M = V(null);
1461
1463
  je(H);
1462
- const E = k(() => n.clearable && !n.readonly && !n.disabled), S = k(() => {
1464
+ const E = g(() => n.clearable && !n.readonly && !n.disabled), S = g(() => {
1463
1465
  var d;
1464
1466
  return n.filterMode === "manual" || !O.value ? n.items : (d = n.items) == null ? void 0 : d.filter(
1465
1467
  (w) => w[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1466
1468
  );
1467
- }), T = k(() => {
1469
+ }), T = g(() => {
1468
1470
  var d;
1469
1471
  return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
1470
- }), W = k(() => T.value === void 0), te = k(() => {
1472
+ }), Y = g(() => T.value === void 0), oe = g(() => {
1471
1473
  const d = r.value;
1472
1474
  if (d !== void 0 && S.value[d])
1473
1475
  return S.value[d];
1474
- }), G = k(() => {
1476
+ }), R = g(() => {
1475
1477
  var w;
1476
1478
  if (r.value === void 0)
1477
1479
  return;
1478
1480
  const d = (w = q.value) == null ? void 0 : w.getItem(r.value);
1479
1481
  return d == null ? void 0 : d.id;
1480
- }), O = k(() => {
1482
+ }), O = g(() => {
1481
1483
  var d;
1482
1484
  return a.value.length > 0 && a.value !== ((d = T.value) == null ? void 0 : d[n.itemLabel]);
1483
1485
  });
1484
- function oe(d) {
1486
+ function ne(d) {
1485
1487
  s.value = d, Q();
1486
1488
  }
1487
1489
  function H() {
@@ -1489,22 +1491,22 @@ const so = ["role"], io = /* @__PURE__ */ L({
1489
1491
  const d = ((w = T.value) == null ? void 0 : w[n.itemLabel]) || "";
1490
1492
  a.value !== d && (a.value = d);
1491
1493
  }
1492
- function ne() {
1493
- i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, se());
1494
+ function le() {
1495
+ i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, ie());
1494
1496
  }
1495
1497
  function Q() {
1496
1498
  i.value && (l("before-hide"), i.value = !1, r.value = void 0);
1497
1499
  }
1498
- function X() {
1499
- i.value ? Q() : g();
1500
+ function W() {
1501
+ i.value ? Q() : _();
1500
1502
  }
1501
1503
  function p() {
1502
- E.value && (s.value = n.emptyValue, r.value = void 0, se());
1504
+ E.value && (s.value = n.emptyValue, r.value = void 0, ie());
1503
1505
  }
1504
- function g() {
1505
- if (ne(), T.value !== void 0) {
1506
+ function _() {
1507
+ if (le(), T.value !== void 0) {
1506
1508
  const d = S.value.indexOf(T.value);
1507
- d !== -1 && Z(() => j(d));
1509
+ d !== -1 && J(() => j(d));
1508
1510
  }
1509
1511
  }
1510
1512
  function c(d) {
@@ -1513,26 +1515,26 @@ const so = ["role"], io = /* @__PURE__ */ L({
1513
1515
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), d.key === "Escape")
1514
1516
  H(), i.value && Q();
1515
1517
  else if (["ArrowDown", "ArrowUp"].includes(d.key))
1516
- i.value ? Z(() => {
1518
+ i.value ? J(() => {
1517
1519
  if (r.value === void 0)
1518
1520
  h();
1519
1521
  else {
1520
1522
  const P = d.key === "ArrowDown" ? "next" : "prev";
1521
- le(r.value, P);
1523
+ ae(r.value, P);
1522
1524
  }
1523
- }) : (ne(), Z(() => {
1525
+ }) : (le(), J(() => {
1524
1526
  d.key === "ArrowDown" ? h() : U();
1525
1527
  }));
1526
1528
  else if (d.key === "Enter") {
1527
- if (te.value === void 0)
1529
+ if (oe.value === void 0)
1528
1530
  return;
1529
- oe(te.value[n.itemValue]);
1531
+ ne(oe.value[n.itemValue]);
1530
1532
  } else
1531
- d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && ne();
1533
+ d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && le();
1532
1534
  }
1533
1535
  function h() {
1534
1536
  var d, w;
1535
- if (W.value)
1537
+ if (Y.value)
1536
1538
  r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1537
1539
  else {
1538
1540
  const D = S.value.findIndex(
@@ -1545,7 +1547,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1545
1547
  var d;
1546
1548
  r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
1547
1549
  }
1548
- function le(d, w) {
1550
+ function ae(d, w) {
1549
1551
  var D;
1550
1552
  r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
1551
1553
  }
@@ -1558,12 +1560,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
1558
1560
  }
1559
1561
  Q(), E.value && !a.value && (s.value = n.emptyValue), H();
1560
1562
  }
1561
- function se() {
1563
+ function ie() {
1562
1564
  var d, w;
1563
1565
  (w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
1564
1566
  }
1565
1567
  function _e() {
1566
- se();
1568
+ ie();
1567
1569
  }
1568
1570
  function b() {
1569
1571
  l("show");
@@ -1576,30 +1578,30 @@ const so = ["role"], io = /* @__PURE__ */ L({
1576
1578
  const w = (D = q.value) == null ? void 0 : D.getItem(d);
1577
1579
  q.value && (q.value.$el.scrollTop = w == null ? void 0 : w.offsetTop);
1578
1580
  }
1579
- return Y(s, H), Y(
1581
+ return Z(s, H), Z(
1580
1582
  () => n.items,
1581
1583
  (d, w) => {
1582
- if (!W.value) {
1584
+ if (!Y.value) {
1583
1585
  const D = w.find((P) => P[n.itemValue] === s.value);
1584
1586
  a.value === (D == null ? void 0 : D[n.itemLabel]) && H();
1585
1587
  }
1586
1588
  },
1587
1589
  { deep: !0 }
1588
- ), Y(r, (d) => {
1590
+ ), Z(r, (d) => {
1589
1591
  d !== void 0 && j(d);
1590
- }), Y(a, (d) => {
1591
- d && i.value && n.selectionMode === "automatic" && Z(h);
1592
- }), Y(
1592
+ }), Z(a, (d) => {
1593
+ d && i.value && n.selectionMode === "automatic" && J(h);
1594
+ }), Z(
1593
1595
  () => n.loading,
1594
1596
  (d) => {
1595
- !d && i.value && Z(h);
1597
+ !d && i.value && J(h);
1596
1598
  }
1597
- ), o({
1599
+ ), t({
1598
1600
  triggerEl: f
1599
1601
  }), (d, w) => {
1600
1602
  var D;
1601
- return u(), m(ae, null, [
1602
- z(v(lt), {
1603
+ return u(), v(te, null, [
1604
+ z(m(lt), {
1603
1605
  modelValue: a.value,
1604
1606
  "onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
1605
1607
  id: n.id,
@@ -1625,21 +1627,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
1625
1627
  "aria-expanded": i.value,
1626
1628
  "aria-haspopup": "listbox",
1627
1629
  "aria-autocomplete": "list",
1628
- "aria-activedescendant": G.value,
1630
+ "aria-activedescendant": R.value,
1629
1631
  size: n.size,
1630
- onClick: g,
1632
+ onClick: _,
1631
1633
  onFocusout: K,
1632
1634
  onKeydown: pe(c, ["stop"])
1633
1635
  }, qe({
1634
- "label.prepend": _(() => [
1636
+ "label.prepend": k(() => [
1635
1637
  y(d.$slots, "label.prepend")
1636
1638
  ]),
1637
- "label.append": _(() => [
1639
+ "label.append": k(() => [
1638
1640
  y(d.$slots, "label.append")
1639
1641
  ]),
1640
- append: _(() => [
1642
+ append: k(() => [
1641
1643
  y(d.$slots, "append"),
1642
- E.value && a.value ? (u(), I(v(re), {
1644
+ E.value && a.value ? (u(), I(m(de), {
1643
1645
  key: 0,
1644
1646
  class: "q-combobox__clear",
1645
1647
  "b-style": "plain",
@@ -1647,12 +1649,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
1647
1649
  tabindex: "-1",
1648
1650
  onClick: p
1649
1651
  }, {
1650
- default: _(() => [
1651
- z(v(F), J(ie(n.icons.clear)), null, 16)
1652
+ default: k(() => [
1653
+ z(m(F), G(se(n.internals.icons.clear)), null, 16)
1652
1654
  ]),
1653
1655
  _: 1
1654
1656
  })) : $("", !0),
1655
- n.readonly ? $("", !0) : (u(), I(v(re), {
1657
+ n.readonly ? $("", !0) : (u(), I(m(de), {
1656
1658
  key: 1,
1657
1659
  ref_key: "toggleRef",
1658
1660
  ref: x,
@@ -1661,10 +1663,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
1661
1663
  borderless: "",
1662
1664
  tabindex: "-1",
1663
1665
  disabled: n.disabled,
1664
- onMousedown: pe(X, ["stop", "prevent"])
1666
+ onMousedown: pe(W, ["stop", "prevent"])
1665
1667
  }, {
1666
- default: _(() => [
1667
- z(v(F), J(ie(n.icons.chevron)), null, 16)
1668
+ default: k(() => [
1669
+ z(m(F), G(se(n.internals.icons.chevron)), null, 16)
1668
1670
  ]),
1669
1671
  _: 1
1670
1672
  }, 8, ["disabled"]))
@@ -1673,20 +1675,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
1673
1675
  }, [
1674
1676
  d.$slots.prepend ? {
1675
1677
  name: "prepend",
1676
- fn: _(() => [
1678
+ fn: k(() => [
1677
1679
  y(d.$slots, "prepend")
1678
1680
  ]),
1679
1681
  key: "0"
1680
1682
  } : void 0,
1681
1683
  d.$slots.extras ? {
1682
1684
  name: "extras",
1683
- fn: _(() => [
1685
+ fn: k(() => [
1684
1686
  y(d.$slots, "extras")
1685
1687
  ]),
1686
1688
  key: "1"
1687
1689
  } : void 0
1688
1690
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1689
- z(v(ve), {
1691
+ z(m(he), {
1690
1692
  modelValue: i.value,
1691
1693
  "onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
1692
1694
  spy: "",
@@ -1699,7 +1701,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1699
1701
  onEnter: b,
1700
1702
  onLeave: ce
1701
1703
  }, {
1702
- default: _(() => {
1704
+ default: k(() => {
1703
1705
  var P;
1704
1706
  return [
1705
1707
  A("div", {
@@ -1711,30 +1713,31 @@ const so = ["role"], io = /* @__PURE__ */ L({
1711
1713
  onFocusout: K
1712
1714
  }, [
1713
1715
  y(d.$slots, "body.prepend"),
1714
- n.loading ? (u(), m("div", go, [
1715
- z(v(xe), { size: 24 })
1716
- ])) : S.value.length ? (u(), I(v(Te), {
1716
+ n.loading ? (u(), v("div", go, [
1717
+ z(m(Ie), { size: 24 })
1718
+ ])) : S.value.length ? (u(), I(m(Te), {
1717
1719
  key: 1,
1718
1720
  ref_key: "listRef",
1719
1721
  ref: q,
1720
1722
  class: "q-select__items",
1723
+ selectable: "",
1721
1724
  modelValue: s.value,
1722
1725
  "onUpdate:modelValue": [
1723
1726
  w[1] || (w[1] = (fe) => s.value = fe),
1724
- oe
1727
+ ne
1725
1728
  ],
1726
- highlighted: (P = te.value) == null ? void 0 : P[n.itemValue],
1729
+ highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
1727
1730
  items: S.value,
1728
1731
  groups: d.groups,
1729
1732
  "item-label": n.itemLabel,
1730
1733
  "item-value": n.itemValue,
1731
1734
  onMouseup: _e
1732
1735
  }, {
1733
- item: _(({ item: fe }) => [
1736
+ item: k(({ item: fe }) => [
1734
1737
  y(d.$slots, "item", { item: fe })
1735
1738
  ]),
1736
1739
  _: 3
1737
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", _o, N(d.texts.noData), 1)),
1740
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.internals.texts.noData), 1)),
1738
1741
  y(d.$slots, "body.append")
1739
1742
  ], 40, bo)
1740
1743
  ];
@@ -1744,106 +1747,113 @@ const so = ["role"], io = /* @__PURE__ */ L({
1744
1747
  ], 64);
1745
1748
  };
1746
1749
  }
1747
- }), qo = B($o), xo = { class: "q-dialog" }, Io = { class: "q-dialog__header" }, Lo = { class: "q-dialog__header-title" }, So = { class: "q-dialog__body" }, Bo = {
1750
+ }), qo = B($o), Io = { class: "q-dialog__header" }, xo = { class: "q-dialog__header-title" }, Lo = { class: "q-dialog__body" }, So = {
1748
1751
  key: 0,
1749
1752
  class: "q-dialog__body-icon"
1750
- }, Co = { class: "q-dialog__body-text" }, To = ["innerHTML"], Vo = { key: 1 }, Eo = { class: "q-dialog__body-actions" }, Do = [
1753
+ }, Bo = { class: "q-dialog__body-text" }, Co = ["innerHTML"], To = { key: 1 }, Vo = { class: "q-dialog__body-actions" }, Eo = [
1751
1754
  {
1752
1755
  id: "button",
1753
- bStyle: "primary",
1754
- label: "Ok",
1755
1756
  icon: {
1756
1757
  icon: "check"
1757
1758
  },
1758
- iconOnRight: !1,
1759
- action: void 0
1759
+ props: {
1760
+ bStyle: "primary",
1761
+ label: "Ok"
1762
+ }
1763
+ }
1764
+ ], Do = {
1765
+ icon: "check-circle-outline"
1766
+ }, Ao = {
1767
+ close: {
1768
+ icon: "close"
1760
1769
  }
1761
- ], Ao = {
1762
- icon: "check-circle-outline",
1763
- type: "svg"
1764
1770
  }, zo = /* @__PURE__ */ L({
1765
1771
  __name: "QDialog",
1766
- props: /* @__PURE__ */ R({
1772
+ props: /* @__PURE__ */ X({
1767
1773
  text: { default: "" },
1768
1774
  attach: { default: "body" },
1769
1775
  inline: { type: Boolean },
1770
1776
  backdropBlur: { type: Boolean, default: !0 },
1771
- buttons: { default: () => Do },
1772
- dismissible: { type: Boolean, default: !1 },
1777
+ buttons: { default: () => Eo },
1778
+ dismissible: { type: Boolean },
1773
1779
  html: { type: Boolean, default: !0 },
1774
- icon: { default: () => Ao },
1780
+ icon: { default: () => Do },
1775
1781
  id: { default: void 0 },
1776
1782
  title: { default: "" },
1777
- class: { default: void 0 }
1783
+ class: { default: void 0 },
1784
+ internals: { default: () => ({ icons: Ao }) }
1778
1785
  }, {
1779
1786
  modelValue: { type: Boolean },
1780
1787
  modelModifiers: {}
1781
1788
  }),
1782
1789
  emits: ["update:modelValue"],
1783
- setup(t) {
1784
- const o = t, e = ee(t, "modelValue"), n = me(o.id);
1785
- function l() {
1790
+ setup(o) {
1791
+ const t = o, e = ee(o, "modelValue"), n = ve(t.id), l = g(() => ["q-dialog", t.class]);
1792
+ function s() {
1786
1793
  e.value = !1;
1787
1794
  }
1788
- function s(i) {
1789
- var a;
1790
- (a = i.action) == null || a.call(i), l();
1795
+ function i(a) {
1796
+ var r;
1797
+ (r = a.action) == null || r.call(a), s();
1791
1798
  }
1792
- return (i, a) => (u(), I(v(ve), {
1799
+ return (a, r) => (u(), I(m(he), {
1793
1800
  "model-value": e.value,
1794
- id: v(n),
1795
- inline: o.inline,
1796
- attach: o.attach,
1797
- "backdrop-blur": o.backdropBlur,
1801
+ id: m(n),
1802
+ inline: t.inline,
1803
+ attach: t.attach,
1804
+ "backdrop-blur": t.backdropBlur,
1805
+ "backdrop-class": "q-dialog__underlay",
1798
1806
  "scroll-lock": "",
1799
1807
  persistent: ""
1800
1808
  }, {
1801
- default: _(() => [
1802
- A("div", xo, [
1809
+ default: k(() => [
1810
+ A("div", {
1811
+ class: C(l.value)
1812
+ }, [
1803
1813
  A("div", Io, [
1804
- A("span", Lo, N(o.title), 1),
1805
- o.dismissible ? (u(), I(v(re), {
1814
+ A("span", xo, N(t.title), 1),
1815
+ t.dismissible ? (u(), I(m(de), {
1806
1816
  key: 0,
1807
1817
  "b-style": "tertiary",
1808
- onClick: l
1818
+ onClick: s
1809
1819
  }, {
1810
- default: _(() => [
1811
- z(v(F), { icon: "close" })
1820
+ default: k(() => [
1821
+ z(m(F), G(se(t.internals.icons.close)), null, 16)
1812
1822
  ]),
1813
1823
  _: 1
1814
1824
  })) : $("", !0)
1815
1825
  ]),
1816
- y(i.$slots, "body.content", {}, () => [
1817
- A("div", So, [
1818
- y(i.$slots, "body.icon", {}, () => [
1819
- o.icon ? (u(), m("span", Bo, [
1820
- z(v(F), J(ie(o.icon)), null, 16)
1826
+ y(a.$slots, "body.content", {}, () => [
1827
+ A("div", Lo, [
1828
+ y(a.$slots, "body.icon", {}, () => [
1829
+ t.icon ? (u(), v("span", So, [
1830
+ z(m(F), G(se(t.icon)), null, 16)
1821
1831
  ])) : $("", !0)
1822
1832
  ]),
1823
- A("div", Co, [
1824
- o.html ? (u(), m("span", {
1833
+ A("div", Bo, [
1834
+ t.html ? (u(), v("span", {
1825
1835
  key: 0,
1826
- innerHTML: o.text
1827
- }, null, 8, To)) : (u(), m("span", Vo, N(o.text), 1))
1836
+ innerHTML: t.text
1837
+ }, null, 8, Co)) : (u(), v("span", To, N(t.text), 1))
1828
1838
  ]),
1829
- y(i.$slots, "body.append")
1839
+ y(a.$slots, "body.append")
1830
1840
  ])
1831
1841
  ]),
1832
- A("div", Eo, [
1833
- (u(!0), m(ae, null, we(o.buttons, (r) => (u(), I(v(re), ue({ ref_for: !0 }, r, {
1834
- key: r.id,
1835
- onClick: () => s(r)
1842
+ A("div", Vo, [
1843
+ (u(!0), v(te, null, we(t.buttons, (f) => (u(), I(m(de), re({ ref_for: !0 }, f.props, {
1844
+ key: f.id,
1845
+ onClick: () => i(f)
1836
1846
  }), {
1837
- default: _(() => [
1838
- r.icon ? (u(), I(v(F), ue({
1847
+ default: k(() => [
1848
+ f.icon ? (u(), I(m(F), re({
1839
1849
  key: 0,
1840
1850
  ref_for: !0
1841
- }, r.icon), null, 16)) : $("", !0)
1851
+ }, f.icon), null, 16)) : $("", !0)
1842
1852
  ]),
1843
1853
  _: 2
1844
1854
  }, 1040, ["onClick"]))), 128))
1845
1855
  ])
1846
- ])
1856
+ ], 2)
1847
1857
  ]),
1848
1858
  _: 3
1849
1859
  }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
@@ -1865,30 +1875,30 @@ const so = ["role"], io = /* @__PURE__ */ L({
1865
1875
  size: { default: "large" },
1866
1876
  class: { default: void 0 }
1867
1877
  },
1868
- setup(t) {
1869
- const o = t;
1878
+ setup(o) {
1879
+ const t = o;
1870
1880
  return Re({
1871
1881
  QField: {
1872
1882
  size: "block"
1873
1883
  }
1874
- }), (e, n) => (u(), I(v(Ie), {
1875
- id: o.id,
1876
- class: C(["q-input-group", o.class]),
1877
- label: o.label,
1878
- required: o.required,
1879
- size: o.size
1884
+ }), (e, n) => (u(), I(m(xe), {
1885
+ id: t.id,
1886
+ class: C(["q-input-group", t.class]),
1887
+ label: t.label,
1888
+ required: t.required,
1889
+ size: t.size
1880
1890
  }, qe({
1881
- default: _(() => [
1882
- e.$slots.prepend || o.prependIcon ? (u(), m("div", Mo, [
1883
- o.prependIcon ? (u(), m("span", Fo, [
1884
- z(v(F), J(ie(o.prependIcon)), null, 16)
1891
+ default: k(() => [
1892
+ e.$slots.prepend || t.prependIcon ? (u(), v("div", Mo, [
1893
+ t.prependIcon ? (u(), v("span", Fo, [
1894
+ z(m(F), G(se(t.prependIcon)), null, 16)
1885
1895
  ])) : $("", !0),
1886
1896
  y(e.$slots, "prepend")
1887
1897
  ])) : $("", !0),
1888
1898
  y(e.$slots, "default"),
1889
- e.$slots.append || o.appendIcon ? (u(), m("div", Oo, [
1890
- o.appendIcon ? (u(), m("span", Uo, [
1891
- z(v(F), J(ie(o.appendIcon)), null, 16)
1899
+ e.$slots.append || t.appendIcon ? (u(), v("div", Oo, [
1900
+ t.appendIcon ? (u(), v("span", Uo, [
1901
+ z(m(F), G(se(t.appendIcon)), null, 16)
1892
1902
  ])) : $("", !0),
1893
1903
  y(e.$slots, "append")
1894
1904
  ])) : $("", !0)
@@ -1897,7 +1907,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1897
1907
  }, [
1898
1908
  e.$slots.extras ? {
1899
1909
  name: "extras",
1900
- fn: _(() => [
1910
+ fn: k(() => [
1901
1911
  y(e.$slots, "extras")
1902
1912
  ]),
1903
1913
  key: "0"
@@ -1909,10 +1919,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
1909
1919
  props: {
1910
1920
  class: { default: void 0 }
1911
1921
  },
1912
- setup(t) {
1913
- const o = t;
1914
- return (e, n) => (u(), m("div", {
1915
- class: C(["q-line-loader", o.class])
1922
+ setup(o) {
1923
+ const t = o;
1924
+ return (e, n) => (u(), v("div", {
1925
+ class: C(["q-line-loader", t.class])
1916
1926
  }, null, 2));
1917
1927
  }
1918
1928
  }), Ko = B(Ho), jo = {
@@ -1924,7 +1934,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1924
1934
  }, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
1925
1935
  inheritAttrs: !1,
1926
1936
  __name: "QPopover",
1927
- props: /* @__PURE__ */ R({
1937
+ props: /* @__PURE__ */ X({
1928
1938
  anchor: {},
1929
1939
  arrow: { type: Boolean, default: !0 },
1930
1940
  attach: { default: "body" },
@@ -1939,29 +1949,29 @@ const so = ["role"], io = /* @__PURE__ */ L({
1939
1949
  modelModifiers: {}
1940
1950
  }),
1941
1951
  emits: ["update:modelValue"],
1942
- setup(t) {
1943
- const o = t, e = ee(t, "modelValue");
1944
- return (n, l) => (u(), I(v(ve), {
1952
+ setup(o) {
1953
+ const t = o, e = ee(o, "modelValue");
1954
+ return (n, l) => (u(), I(m(he), {
1945
1955
  "model-value": e.value,
1946
1956
  class: "q-popover",
1947
1957
  trigger: "click",
1948
- anchor: o.anchor,
1949
- arrow: o.arrow,
1950
- attach: o.attach,
1951
- inline: o.inline,
1952
- disabled: o.disabled,
1953
- placement: o.placement
1958
+ anchor: t.anchor,
1959
+ arrow: t.arrow,
1960
+ attach: t.attach,
1961
+ inline: t.inline,
1962
+ disabled: t.disabled,
1963
+ placement: t.placement
1954
1964
  }, {
1955
- default: _(() => [
1956
- o.title || n.$slots.header ? (u(), m("h3", jo, [
1957
- ye(N(o.title) + " ", 1),
1965
+ default: k(() => [
1966
+ t.title || n.$slots.header ? (u(), v("h3", jo, [
1967
+ me(N(t.title) + " ", 1),
1958
1968
  y(n.$slots, "header")
1959
1969
  ])) : $("", !0),
1960
- o.text || n.$slots.body ? (u(), m("div", Go, [
1961
- o.html ? (u(), m("span", {
1970
+ t.text || n.$slots.body ? (u(), v("div", Go, [
1971
+ t.html ? (u(), v("span", {
1962
1972
  key: 0,
1963
- innerHTML: o.text
1964
- }, null, 8, Ro)) : (u(), m("span", Wo, N(o.text), 1)),
1973
+ innerHTML: t.text
1974
+ }, null, 8, Ro)) : (u(), v("span", Wo, N(t.text), 1)),
1965
1975
  y(n.$slots, "body")
1966
1976
  ])) : $("", !0)
1967
1977
  ]),
@@ -1988,7 +1998,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1988
1998
  }
1989
1999
  }, ln = /* @__PURE__ */ L({
1990
2000
  __name: "QSelect",
1991
- props: /* @__PURE__ */ R({
2001
+ props: /* @__PURE__ */ X({
1992
2002
  id: { default: void 0 },
1993
2003
  label: { default: "" },
1994
2004
  clearable: { type: Boolean },
@@ -1996,76 +2006,75 @@ const so = ["role"], io = /* @__PURE__ */ L({
1996
2006
  disabled: { type: Boolean },
1997
2007
  required: { type: Boolean },
1998
2008
  loading: { type: Boolean },
1999
- icons: { default: () => nn },
2000
2009
  items: {},
2001
2010
  groups: { default: () => [] },
2002
2011
  itemValue: { default: "key" },
2003
2012
  itemLabel: { default: "label" },
2004
2013
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2005
2014
  size: { default: void 0 },
2006
- texts: { default: () => on },
2007
- class: { default: "" }
2015
+ class: { default: "" },
2016
+ internals: { default: () => ({ icons: nn, texts: on }) }
2008
2017
  }, {
2009
2018
  modelValue: {
2010
2019
  type: [String, Number, Boolean, Symbol]
2011
2020
  },
2012
2021
  modelModifiers: {}
2013
2022
  }),
2014
- emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2015
- setup(t, { emit: o }) {
2016
- const e = t, n = o, l = ee(t, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = k(() => x.value === void 0), x = k(
2023
+ emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2024
+ setup(o, { emit: t }) {
2025
+ const e = o, n = t, l = ee(o, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = g(() => x.value === void 0), x = g(
2017
2026
  () => {
2018
2027
  var c;
2019
2028
  return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
2020
2029
  }
2021
- ), M = k(
2030
+ ), M = g(
2022
2031
  () => x.value ? x.value[e.itemLabel] : ""
2023
- ), E = k(
2032
+ ), E = g(
2024
2033
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2025
2034
  );
2026
2035
  function S(c) {
2027
- l.value = c, G();
2036
+ l.value = c, R();
2028
2037
  }
2029
2038
  function T() {
2030
- E.value && S(e.emptyValue);
2039
+ E.value && (S(e.emptyValue), W());
2031
2040
  }
2032
- function W(c) {
2033
- var h, U, le;
2034
- !((h = f.value) != null && h.contains(c.relatedTarget)) && !((le = (U = a.value) == null ? void 0 : U.fieldRef) != null && le.contains(c.relatedTarget)) && G();
2041
+ function Y(c) {
2042
+ var h, U, ae;
2043
+ !((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && R();
2035
2044
  }
2036
- function te() {
2045
+ function oe() {
2037
2046
  s.value || (n("before-show"), s.value = !0);
2038
2047
  }
2039
- function G() {
2048
+ function R() {
2040
2049
  s.value && (n("before-hide"), s.value = !1);
2041
2050
  }
2042
2051
  function O() {
2043
- e.readonly || e.disabled || (s.value ? G() : te());
2052
+ e.readonly || e.disabled || (s.value ? R() : oe());
2044
2053
  }
2045
- let oe;
2054
+ let ne;
2046
2055
  function H(c) {
2047
2056
  if (!(!c.key || e.readonly || e.disabled)) {
2048
- if (window.clearTimeout(oe), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
2057
+ if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
2049
2058
  i.value += c.key.toLowerCase();
2050
2059
  for (let h = 0; h < e.items.length; h++)
2051
2060
  if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
2052
- g(h);
2061
+ _(h);
2053
2062
  break;
2054
2063
  }
2055
2064
  }
2056
- oe = window.setTimeout(function() {
2065
+ ne = window.setTimeout(function() {
2057
2066
  i.value = "";
2058
2067
  }, 500);
2059
2068
  }
2060
2069
  }
2061
- function ne() {
2070
+ function le() {
2062
2071
  var c;
2063
2072
  e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
2064
2073
  }
2065
2074
  function Q() {
2066
- X(), n("hide");
2075
+ W(), n("hide");
2067
2076
  }
2068
- function X() {
2077
+ function W() {
2069
2078
  var c, h;
2070
2079
  (h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
2071
2080
  }
@@ -2073,19 +2082,19 @@ const so = ["role"], io = /* @__PURE__ */ L({
2073
2082
  var c;
2074
2083
  (c = r.value) == null || c.$el.focus();
2075
2084
  }
2076
- function g(c) {
2085
+ function _(c) {
2077
2086
  var h;
2078
2087
  (h = r.value) == null || h.focusItem(c);
2079
2088
  }
2080
- return Y(
2089
+ return Z(
2081
2090
  () => e.loading,
2082
2091
  (c) => {
2083
- !c && s.value && Z(p);
2092
+ !c && s.value && J(p);
2084
2093
  }
2085
2094
  ), (c, h) => {
2086
- var U, le;
2087
- return u(), m(ae, null, [
2088
- z(v(Ie), {
2095
+ var U, ae;
2096
+ return u(), v(te, null, [
2097
+ z(m(xe), {
2089
2098
  id: e.id,
2090
2099
  label: e.label,
2091
2100
  required: e.required,
@@ -2111,9 +2120,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
2111
2120
  onClick: O,
2112
2121
  onKeydown: pe(H, ["stop"])
2113
2122
  }, qe({
2114
- append: _(() => [
2123
+ append: k(() => [
2115
2124
  y(c.$slots, "append"),
2116
- E.value && l.value ? (u(), I(v(re), {
2125
+ E.value && l.value ? (u(), I(m(de), {
2117
2126
  key: 0,
2118
2127
  class: "q-select__clear",
2119
2128
  "b-style": "plain",
@@ -2121,12 +2130,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
2121
2130
  tabindex: "-1",
2122
2131
  onClick: T
2123
2132
  }, {
2124
- default: _(() => [
2125
- z(v(F), J(ie(e.icons.clear)), null, 16)
2133
+ default: k(() => [
2134
+ z(m(F), G(se(e.internals.icons.clear)), null, 16)
2126
2135
  ]),
2127
2136
  _: 1
2128
2137
  })) : $("", !0),
2129
- e.readonly ? $("", !0) : (u(), I(v(re), {
2138
+ e.readonly ? $("", !0) : (u(), I(m(de), {
2130
2139
  key: 1,
2131
2140
  class: "q-select__chevron",
2132
2141
  "b-style": "plain",
@@ -2135,41 +2144,41 @@ const so = ["role"], io = /* @__PURE__ */ L({
2135
2144
  disabled: e.disabled,
2136
2145
  onClick: O
2137
2146
  }, {
2138
- default: _(() => [
2139
- z(v(F), J(ie(e.icons.chevron)), null, 16)
2147
+ default: k(() => [
2148
+ z(m(F), G(se(e.internals.icons.chevron)), null, 16)
2140
2149
  ]),
2141
2150
  _: 1
2142
2151
  }, 8, ["disabled"]))
2143
2152
  ]),
2144
- default: _(() => [
2145
- q.value ? (u(), m("span", Jo, [
2146
- !e.readonly && !e.disabled ? (u(), m(ae, { key: 0 }, [
2147
- ye(N(c.texts.placeholder), 1)
2153
+ default: k(() => [
2154
+ q.value ? (u(), v("span", Jo, [
2155
+ !e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
2156
+ me(N(c.internals.texts.placeholder), 1)
2148
2157
  ], 64)) : $("", !0)
2149
- ])) : (u(), m("span", Zo, N(M.value), 1))
2158
+ ])) : (u(), v("span", Zo, N(M.value), 1))
2150
2159
  ]),
2151
2160
  _: 2
2152
2161
  }, [
2153
2162
  (U = x.value) != null && U.icon || c.$slots.prepend ? {
2154
2163
  name: "prepend",
2155
- fn: _(() => {
2156
- var K, se;
2164
+ fn: k(() => {
2165
+ var K, ie;
2157
2166
  return [
2158
2167
  y(c.$slots, "prepend"),
2159
- (K = x.value) != null && K.icon ? (u(), I(v(F), J(ue({ key: 0 }, (se = x.value) == null ? void 0 : se.icon)), null, 16)) : $("", !0)
2168
+ (K = x.value) != null && K.icon ? (u(), I(m(F), G(re({ key: 0 }, (ie = x.value) == null ? void 0 : ie.icon)), null, 16)) : $("", !0)
2160
2169
  ];
2161
2170
  }),
2162
2171
  key: "0"
2163
2172
  } : void 0,
2164
2173
  c.$slots.extras ? {
2165
2174
  name: "extras",
2166
- fn: _(() => [
2175
+ fn: k(() => [
2167
2176
  y(c.$slots, "extras")
2168
2177
  ]),
2169
2178
  key: "1"
2170
2179
  } : void 0
2171
2180
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2172
- z(v(ve), {
2181
+ z(m(he), {
2173
2182
  modelValue: s.value,
2174
2183
  "onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
2175
2184
  spy: "",
@@ -2177,12 +2186,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
2177
2186
  placement: "bottom-start",
2178
2187
  width: "anchor",
2179
2188
  "scroll-lock": "",
2180
- anchor: (le = a.value) == null ? void 0 : le.$el,
2189
+ anchor: (ae = a.value) == null ? void 0 : ae.$el,
2181
2190
  offset: 2,
2182
- onEnter: ne,
2191
+ onEnter: le,
2183
2192
  onLeave: Q
2184
2193
  }, {
2185
- default: _(() => [
2194
+ default: k(() => [
2186
2195
  A("div", {
2187
2196
  ref_key: "contentRef",
2188
2197
  ref: f,
@@ -2190,17 +2199,18 @@ const so = ["role"], io = /* @__PURE__ */ L({
2190
2199
  "data-key": e.id,
2191
2200
  class: "q-select__body",
2192
2201
  tabindex: "-1",
2193
- onFocusout: W,
2202
+ onFocusout: Y,
2194
2203
  onKeydown: pe(H, ["stop"])
2195
2204
  }, [
2196
2205
  y(c.$slots, "body.prepend"),
2197
- e.loading ? (u(), m("div", tn, [
2198
- z(v(xe), { size: 24 })
2199
- ])) : (u(), I(v(Te), {
2206
+ e.loading ? (u(), v("div", tn, [
2207
+ z(m(Ie), { size: 24 })
2208
+ ])) : (u(), I(m(Te), {
2200
2209
  key: 1,
2201
2210
  ref_key: "listRef",
2202
2211
  ref: r,
2203
2212
  class: "q-select__items",
2213
+ selectable: "",
2204
2214
  modelValue: l.value,
2205
2215
  "onUpdate:modelValue": [
2206
2216
  h[0] || (h[0] = (K) => l.value = K),
@@ -2211,7 +2221,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2211
2221
  "item-label": e.itemLabel,
2212
2222
  "item-value": e.itemValue
2213
2223
  }, {
2214
- item: _(({ item: K }) => [
2224
+ item: k(({ item: K }) => [
2215
2225
  y(c.$slots, "item", { item: K })
2216
2226
  ]),
2217
2227
  _: 3
@@ -2233,17 +2243,17 @@ const so = ["role"], io = /* @__PURE__ */ L({
2233
2243
  width: { default: void 0 },
2234
2244
  height: { default: void 0 }
2235
2245
  },
2236
- setup(t) {
2237
- const o = t, e = k(() => o.type ? `q-skeleton-loader--${o.type}` : void 0), n = k(() => {
2238
- const l = typeof o.width == "number" ? `${o.width}px` : o.width, s = typeof o.height == "number" ? `${o.height}px` : o.height;
2246
+ setup(o) {
2247
+ const t = o, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = g(() => {
2248
+ const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
2239
2249
  return {
2240
2250
  width: l,
2241
2251
  height: s
2242
2252
  };
2243
2253
  });
2244
- return (l, s) => (u(), m("div", {
2254
+ return (l, s) => (u(), v("div", {
2245
2255
  class: C(["q-skeleton-loader", e.value]),
2246
- style: de(n.value)
2256
+ style: ue(n.value)
2247
2257
  }, rn, 6));
2248
2258
  }
2249
2259
  }), un = B(dn), cn = /* @__PURE__ */ L({
@@ -2251,17 +2261,17 @@ const so = ["role"], io = /* @__PURE__ */ L({
2251
2261
  props: {
2252
2262
  theme: {}
2253
2263
  },
2254
- setup(t) {
2255
- const o = t;
2256
- return (e, n) => (u(), m("div", {
2257
- class: C(["q-theme-provider", `q-theme--${o.theme}`])
2264
+ setup(o) {
2265
+ const t = o;
2266
+ return (e, n) => (u(), v("div", {
2267
+ class: C(["q-theme-provider", `q-theme--${t.theme}`])
2258
2268
  }, [
2259
2269
  y(e.$slots, "default")
2260
2270
  ], 2));
2261
2271
  }
2262
- }), fn = B(cn), pn = ["innerHTML"], mn = { key: 1 }, vn = /* @__PURE__ */ L({
2272
+ }), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
2263
2273
  __name: "QTooltip",
2264
- props: /* @__PURE__ */ R({
2274
+ props: /* @__PURE__ */ X({
2265
2275
  id: { default: void 0 },
2266
2276
  anchor: {},
2267
2277
  appearance: { default: "inverted" },
@@ -2273,6 +2283,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2273
2283
  html: { type: Boolean, default: !0 },
2274
2284
  placement: { default: "right" },
2275
2285
  text: {},
2286
+ icon: { default: void 0 },
2276
2287
  trigger: { default: "hover" },
2277
2288
  class: { default: void 0 }
2278
2289
  }, {
@@ -2280,47 +2291,52 @@ const so = ["role"], io = /* @__PURE__ */ L({
2280
2291
  modelModifiers: {}
2281
2292
  }),
2282
2293
  emits: ["update:modelValue"],
2283
- setup(t) {
2284
- const o = t, e = ee(t, "modelValue"), n = me(o.id);
2285
- return (l, s) => (u(), m(ae, null, [
2294
+ setup(o) {
2295
+ const t = o, e = ee(o, "modelValue"), n = ve(t.id);
2296
+ return (l, s) => (u(), v(te, null, [
2286
2297
  y(l.$slots, "anchor", {
2287
- props: { "aria-describedby": v(n) }
2298
+ props: { "aria-describedby": m(n) }
2288
2299
  }),
2289
- z(v(ve), {
2300
+ z(m(he), {
2290
2301
  "model-value": e.value,
2291
- anchor: o.anchor,
2302
+ anchor: t.anchor,
2292
2303
  role: "tooltip",
2293
2304
  "non-modal": "",
2294
- id: v(n),
2295
- appearance: o.appearance,
2296
- arrow: o.arrow,
2297
- attach: o.attach,
2298
- inline: o.inline,
2299
- class: C(["q-tooltip", o.class]),
2300
- delay: o.delay,
2301
- disabled: o.disabled,
2302
- placement: o.placement,
2303
- trigger: o.trigger
2305
+ id: m(n),
2306
+ appearance: t.appearance,
2307
+ arrow: t.arrow,
2308
+ attach: t.attach,
2309
+ inline: t.inline,
2310
+ class: C(["q-tooltip", t.class]),
2311
+ delay: t.delay,
2312
+ disabled: t.disabled,
2313
+ placement: t.placement,
2314
+ trigger: t.trigger
2304
2315
  }, {
2305
- default: _(() => [
2306
- o.html ? (u(), m("span", {
2307
- key: 0,
2308
- innerHTML: o.text
2309
- }, null, 8, pn)) : (u(), m("span", mn, N(o.text), 1))
2316
+ default: k(() => [
2317
+ y(l.$slots, "default", {}, () => [
2318
+ t.icon ? (u(), I(m(F), G(re({ key: 0 }, t.icon)), null, 16)) : $("", !0),
2319
+ t.html ? (u(), v("span", {
2320
+ key: 1,
2321
+ innerHTML: t.text
2322
+ }, null, 8, pn)) : (u(), v(te, { key: 2 }, [
2323
+ me(N(t.text), 1)
2324
+ ], 64))
2325
+ ])
2310
2326
  ]),
2311
- _: 1
2327
+ _: 3
2312
2328
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2313
2329
  ], 64));
2314
2330
  }
2315
- }), hn = B(vn), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2331
+ }), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2316
2332
  __proto__: null,
2317
2333
  QBadge: Dt,
2318
- QButton: re,
2334
+ QButton: de,
2319
2335
  QButtonGroup: tt,
2320
2336
  QButtonToggle: Qt,
2321
2337
  QCombobox: qo,
2322
2338
  QDialog: Qo,
2323
- QField: Ie,
2339
+ QField: xe,
2324
2340
  QIcon: F,
2325
2341
  QIconFont: Ye,
2326
2342
  QIconImg: Ze,
@@ -2330,104 +2346,104 @@ const so = ["role"], io = /* @__PURE__ */ L({
2330
2346
  QList: Te,
2331
2347
  QListItem: ot,
2332
2348
  QListItemGroup: nt,
2333
- QOverlay: ve,
2349
+ QOverlay: he,
2334
2350
  QPopover: Yo,
2335
2351
  QSelect: an,
2336
2352
  QSkeletonLoader: un,
2337
- QSpinnerLoader: xe,
2353
+ QSpinnerLoader: Ie,
2338
2354
  QTextField: lt,
2339
2355
  QThemeProvider: fn,
2340
- QTooltip: hn
2356
+ QTooltip: vn
2341
2357
  }, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
2342
- function bn() {
2343
- const t = He(be);
2344
- if (!t)
2358
+ function yn() {
2359
+ const o = He(be);
2360
+ if (!o)
2345
2361
  throw new Error("[Quidgest UI] Could not find theme instance");
2346
- return t;
2362
+ return o;
2347
2363
  }
2348
- function In(t) {
2349
- const o = bn(), e = {
2350
- activeTheme: V(t),
2351
- themes: o.themes
2364
+ function In(o) {
2365
+ const t = yn(), e = {
2366
+ activeTheme: V(o),
2367
+ themes: t.themes
2352
2368
  };
2353
2369
  return Ne(be, e), e;
2354
2370
  }
2355
- function gn() {
2356
- let t = document.getElementById(
2371
+ function bn() {
2372
+ let o = document.getElementById(
2357
2373
  be
2358
2374
  );
2359
- return t || (t = document.createElement("style"), t.id = be, document.head.appendChild(t)), t;
2375
+ return o || (o = document.createElement("style"), o.id = be, document.head.appendChild(o)), o;
2360
2376
  }
2361
- function _n(t) {
2362
- let o = "";
2363
- for (const n of t) {
2364
- o += `.q-theme--${n.name} {
2377
+ function gn(o) {
2378
+ let t = "";
2379
+ for (const n of o) {
2380
+ t += `.q-theme--${n.name} {
2365
2381
  `;
2366
2382
  const l = n.scheme;
2367
2383
  let s;
2368
2384
  for (s in l) {
2369
2385
  const i = l[s];
2370
2386
  if (i) {
2371
- o += ` ${Ue(s)}: ${i};
2387
+ t += ` ${Ue(s)}: ${i};
2372
2388
  `;
2373
2389
  const a = et(i);
2374
- o += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2390
+ t += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2375
2391
  `;
2376
2392
  }
2377
2393
  }
2378
- o += `}
2394
+ t += `}
2379
2395
  `;
2380
2396
  }
2381
- const e = gn();
2382
- e.textContent = o;
2397
+ const e = bn();
2398
+ e.textContent = t;
2383
2399
  }
2384
- function Ue(t) {
2385
- return t ? `--q-theme-${Xe(t)}` : "";
2400
+ function Ue(o) {
2401
+ return o ? `--q-theme-${Xe(o)}` : "";
2386
2402
  }
2387
- function kn(t = {}) {
2403
+ function _n(o = {}) {
2388
2404
  return { install: (e) => {
2389
- const n = t.components || {};
2405
+ const n = o.components || {};
2390
2406
  for (const s in n)
2391
2407
  e.component(s, n[s]);
2392
- const l = t.defaults || {};
2393
- e.provide(Ce, V(l)), wn(e, t.themes);
2408
+ const l = o.defaults || {};
2409
+ e.provide(Ce, V(l)), kn(e, o.themes);
2394
2410
  } };
2395
2411
  }
2396
- function wn(t, o) {
2412
+ function kn(o, t) {
2397
2413
  const e = [];
2398
2414
  let n;
2399
- if (!o)
2415
+ if (!t)
2400
2416
  n = "default", e.push({
2401
2417
  name: n,
2402
2418
  mode: "light",
2403
2419
  scheme: Le
2404
2420
  });
2405
2421
  else
2406
- for (const l of o.themes) {
2422
+ for (const l of t.themes) {
2407
2423
  const i = { ...l.mode === "light" ? Le : Ge, ...l.colors };
2408
2424
  e.push({
2409
2425
  name: l.name,
2410
2426
  mode: l.mode,
2411
2427
  scheme: i
2412
- }), l.name === o.defaultTheme && (n = l.name);
2428
+ }), l.name === t.defaultTheme && (n = l.name);
2413
2429
  }
2414
2430
  if (n) {
2415
2431
  const l = {
2416
2432
  activeTheme: V(n),
2417
2433
  themes: e
2418
2434
  };
2419
- _n(e), Y(l.activeTheme, $n, { immediate: !0 }), t.provide(be, l);
2435
+ gn(e), Z(l.activeTheme, wn, { immediate: !0 }), o.provide(be, l);
2420
2436
  }
2421
2437
  }
2422
- function $n(t) {
2423
- const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
2424
- o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
2438
+ function wn(o) {
2439
+ const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
2440
+ t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
2425
2441
  }
2426
- const Ln = (t = {}) => kn({ components: yn, ...t });
2442
+ const xn = (o = {}) => _n({ components: hn, ...o });
2427
2443
  export {
2428
- yn as components,
2429
- Ln as createFramework,
2444
+ hn as components,
2445
+ xn as createFramework,
2430
2446
  In as provideTheme,
2431
- xn as templates,
2432
- bn as useTheme
2447
+ qn as templates,
2448
+ yn as useTheme
2433
2449
  };