@quidgest/ui 0.7.13 → 0.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as Ve, computed as k, ref as q, provide as Ne, inject as De, watch as z, defineComponent as x, openBlock as u, createElementBlock as m, normalizeClass as D, normalizeStyle as ae, createElementVNode as N, withModifiers as ee, createVNode as te, unref as _, createCommentVNode as L, Fragment as Z, createTextVNode as re, toDisplayString as H, renderSlot as h, toRef as pe, createBlock as B, withCtx as $, renderList as ve, resolveDynamicComponent as Te, h as $e, normalizeProps as de, mergeProps as ne, reactive as He, onBeforeUnmount as Ke, onMounted as Ee, Teleport as We, Transition as Ge, nextTick as J, createSlots as be, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as he } from "vue";
1
+ import { getCurrentInstance as Ve, computed as g, ref as q, provide as Ne, inject as De, watch as C, defineComponent as x, openBlock as d, createElementBlock as v, normalizeClass as D, normalizeStyle as ae, createElementVNode as N, withModifiers as ee, createVNode as te, unref as k, createCommentVNode as S, Fragment as Z, createTextVNode as re, toDisplayString as H, renderSlot as y, toRef as pe, createBlock as B, withCtx as $, renderList as ve, resolveDynamicComponent as Te, h as $e, normalizeProps as de, mergeProps as ne, reactive as He, onBeforeUnmount as Ke, onMounted as Ee, Teleport as We, Transition as Ge, nextTick as J, createSlots as be, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as he } from "vue";
2
2
  function ye(n) {
3
3
  return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
4
4
  }
@@ -6,21 +6,21 @@ function Ie(n) {
6
6
  return n !== null && typeof n == "object" && !Array.isArray(n);
7
7
  }
8
8
  function ze(n = {}, t = {}) {
9
- const l = {};
9
+ const o = {};
10
10
  for (const e in n)
11
- l[e] = n[e];
11
+ o[e] = n[e];
12
12
  for (const e in t) {
13
- const o = n[e], a = t[e];
14
- if (Ie(o) && Ie(a)) {
15
- l[e] = ze(
16
- o,
13
+ const l = n[e], a = t[e];
14
+ if (Ie(l) && Ie(a)) {
15
+ o[e] = ze(
16
+ l,
17
17
  a
18
18
  );
19
19
  continue;
20
20
  }
21
- l[e] = a;
21
+ o[e] = a;
22
22
  }
23
- return l;
23
+ return o;
24
24
  }
25
25
  const ge = "q-defaults";
26
26
  function Ye() {
@@ -30,16 +30,16 @@ function Ye() {
30
30
  const t = n.type.name ?? n.type.__name;
31
31
  if (!t)
32
32
  throw new Error("[Quidgest UI] Could not determine component name");
33
- const l = Fe();
34
- return k(() => {
33
+ const o = Fe();
34
+ return g(() => {
35
35
  var e;
36
- return (e = l.value) == null ? void 0 : e[t];
36
+ return (e = o.value) == null ? void 0 : e[t];
37
37
  });
38
38
  }
39
39
  function Ce(n) {
40
40
  if (ye(n))
41
41
  return;
42
- const t = Fe(), l = q(n), e = k(() => ye(l.value) ? t.value : ze(t.value, l.value));
42
+ const t = Fe(), o = q(n), e = g(() => ye(o.value) ? t.value : ze(t.value, o.value));
43
43
  Ne(ge, e);
44
44
  }
45
45
  function Fe() {
@@ -113,73 +113,73 @@ function Ae(n) {
113
113
  if (!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n))
114
114
  throw new Error("Invalid color format");
115
115
  n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
116
- const t = parseInt(n.slice(1, 3), 16), l = parseInt(n.slice(3, 5), 16), e = parseInt(n.slice(5, 7), 16);
117
- return { r: t, g: l, b: e };
116
+ const t = parseInt(n.slice(1, 3), 16), o = parseInt(n.slice(3, 5), 16), e = parseInt(n.slice(5, 7), 16);
117
+ return { r: t, g: o, b: e };
118
118
  }
119
119
  function Ze(n, t) {
120
120
  if (t < 0 || t > 100)
121
121
  throw new Error("Amount must be in the range [0, 100]");
122
122
  if (t === 0)
123
123
  return n;
124
- const l = Qe(n), e = t / 100;
125
- return l.l = l.l + e * (100 - l.l), Re(l);
124
+ const o = Qe(n), e = t / 100;
125
+ return o.l = o.l + e * (100 - o.l), Re(o);
126
126
  }
127
127
  function Je(n, t) {
128
128
  if (t < 0 || t > 100)
129
129
  throw new Error("Amount must be in the range [0, 100]");
130
130
  if (t === 0)
131
131
  return n;
132
- const l = Qe(n), e = t / 100;
133
- return l.l = l.l - e * l.l, Re(l);
132
+ const o = Qe(n), e = t / 100;
133
+ return o.l = o.l - e * o.l, Re(o);
134
134
  }
135
135
  function Se(n) {
136
- const t = n.r.toString(16).padStart(2, "0"), l = n.g.toString(16).padStart(2, "0"), e = n.b.toString(16).padStart(2, "0");
137
- return `#${t}${l}${e}`;
136
+ const t = n.r.toString(16).padStart(2, "0"), o = n.g.toString(16).padStart(2, "0"), e = n.b.toString(16).padStart(2, "0");
137
+ return `#${t}${o}${e}`;
138
138
  }
139
139
  function Qe(n) {
140
- const t = n.r / 255, l = n.g / 255, e = n.b / 255, o = Math.max(t, l, e), a = Math.min(t, l, e);
141
- let c = 0, i;
142
- const p = (o + a) / 2;
143
- if (o === a)
144
- c = i = 0;
140
+ const t = n.r / 255, o = n.g / 255, e = n.b / 255, l = Math.max(t, o, e), a = Math.min(t, o, e);
141
+ let u = 0, i;
142
+ const f = (l + a) / 2;
143
+ if (l === a)
144
+ u = i = 0;
145
145
  else {
146
- const d = o - a;
147
- switch (i = p > 0.5 ? d / (2 - o - a) : d / (o + a), o) {
146
+ const p = l - a;
147
+ switch (i = f > 0.5 ? p / (2 - l - a) : p / (l + a), l) {
148
148
  case t:
149
- c = (l - e) / d + (l < e ? 6 : 0);
149
+ u = (o - e) / p + (o < e ? 6 : 0);
150
150
  break;
151
- case l:
152
- c = (e - t) / d + 2;
151
+ case o:
152
+ u = (e - t) / p + 2;
153
153
  break;
154
154
  case e:
155
- c = (t - l) / d + 4;
155
+ u = (t - o) / p + 4;
156
156
  break;
157
157
  }
158
- c /= 6;
158
+ u /= 6;
159
159
  }
160
160
  return {
161
- h: Math.round(c * 360),
161
+ h: Math.round(u * 360),
162
162
  s: Math.round(i * 100),
163
- l: Math.round(p * 100)
163
+ l: Math.round(f * 100)
164
164
  };
165
165
  }
166
166
  function Re(n) {
167
- const t = n.h / 360, l = n.s / 100, e = n.l / 100;
168
- let o, a, c;
169
- if (l === 0)
170
- o = a = c = e;
167
+ const t = n.h / 360, o = n.s / 100, e = n.l / 100;
168
+ let l, a, u;
169
+ if (o === 0)
170
+ l = a = u = e;
171
171
  else {
172
- const i = e < 0.5 ? e * (1 + l) : e + l - e * l, p = 2 * e - i;
173
- o = me(p, i, t + 1 / 3), a = me(p, i, t), c = me(p, i, t - 1 / 3);
172
+ const i = e < 0.5 ? e * (1 + o) : e + o - e * o, f = 2 * e - i;
173
+ l = me(f, i, t + 1 / 3), a = me(f, i, t), u = me(f, i, t - 1 / 3);
174
174
  }
175
175
  return {
176
- r: Math.round(o * 255),
176
+ r: Math.round(l * 255),
177
177
  g: Math.round(a * 255),
178
- b: Math.round(c * 255)
178
+ b: Math.round(u * 255)
179
179
  };
180
180
  }
181
- function me(n, t, l) {
182
- return l < 0 && (l += 1), l > 1 && (l -= 1), l < 1 / 6 ? n + (t - n) * 6 * l : l < 1 / 2 ? t : l < 2 / 3 ? n + (t - n) * (2 / 3 - l) * 6 : n;
181
+ function me(n, t, o) {
182
+ return o < 0 && (o += 1), o > 1 && (o -= 1), o < 1 / 6 ? n + (t - n) * 6 * o : o < 1 / 2 ? t : o < 2 / 3 ? n + (t - n) * (2 / 3 - o) * 6 : n;
183
183
  }
184
184
  const ue = "q-theme";
185
185
  function $n() {
@@ -189,42 +189,42 @@ function $n() {
189
189
  return n;
190
190
  }
191
191
  function et(n, t) {
192
- let l = null;
192
+ let o = null;
193
193
  if (t)
194
194
  for (const e of t.themes) {
195
- const o = e.mode === "light" ? qe : Pe;
195
+ const l = e.mode === "light" ? qe : Pe;
196
196
  if (e.colors) {
197
197
  let a;
198
198
  for (a in e.colors) {
199
- const c = e.colors[a];
200
- if (c && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
- const i = Ae(c), p = `${a}Light`, d = `${a}Dark`;
202
- p in e.colors || (e.colors[p] = Se(Ze(i, 85))), d in e.colors || (e.colors[d] = Se(Je(i, 25)));
199
+ const u = e.colors[a];
200
+ if (u && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
+ const i = Ae(u), f = `${a}Light`, p = `${a}Dark`;
202
+ f in e.colors || (e.colors[f] = Se(Ze(i, 85))), p in e.colors || (e.colors[p] = Se(Je(i, 25)));
203
203
  }
204
204
  }
205
205
  }
206
- e.colors = tt(o, e.colors), e.name === t.defaultTheme && (l = e);
206
+ e.colors = tt(l, e.colors), e.name === t.defaultTheme && (o = e);
207
207
  }
208
208
  else {
209
209
  const e = "default";
210
- l = {
210
+ o = {
211
211
  name: e,
212
212
  mode: "light",
213
213
  colors: qe
214
214
  }, t = {
215
215
  defaultTheme: e,
216
- themes: [l]
216
+ themes: [o]
217
217
  };
218
218
  }
219
- if (l) {
219
+ if (o) {
220
220
  const e = q({
221
- activeTheme: l.name,
221
+ activeTheme: o.name,
222
222
  themes: t.themes
223
223
  });
224
- z(
224
+ C(
225
225
  () => e.value.activeTheme,
226
- (o) => {
227
- const a = e.value.themes.find((c) => c.name === o);
226
+ (l) => {
227
+ const a = e.value.themes.find((u) => u.name === l);
228
228
  a && nt(a.colors);
229
229
  },
230
230
  { immediate: !0 }
@@ -239,30 +239,30 @@ function nt(n) {
239
239
  ue
240
240
  );
241
241
  t || (t = document.createElement("style"), t.type = "text/css", t.id = ue, document.head.appendChild(t));
242
- let l = `:root {
242
+ let o = `:root {
243
243
  `, e;
244
244
  for (e in n) {
245
- const o = n[e];
246
- if (o) {
247
- l += ` ${Le(e)}: ${o};
245
+ const l = n[e];
246
+ if (l) {
247
+ o += ` ${Le(e)}: ${l};
248
248
  `;
249
- const a = Ae(o);
250
- l += ` ${Le(e)}-rgb: ${a.r} ${a.g} ${a.b};
249
+ const a = Ae(l);
250
+ o += ` ${Le(e)}-rgb: ${a.r} ${a.g} ${a.b};
251
251
  `;
252
252
  }
253
253
  }
254
- l += "}", t.textContent = l;
254
+ o += "}", t.textContent = o;
255
255
  }
256
256
  function Le(n) {
257
257
  return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
258
258
  }
259
259
  function In(n = {}) {
260
- return { install: (l) => {
260
+ return { install: (o) => {
261
261
  const e = n.components || {};
262
262
  for (const a in e)
263
- l.component(a, e[a]);
264
- const o = n.defaults || {};
265
- l.provide(ge, q(o)), et(l, n.themes);
263
+ o.component(a, e[a]);
264
+ const l = n.defaults || {};
265
+ o.provide(ge, q(l)), et(o, n.themes);
266
266
  } };
267
267
  }
268
268
  const lt = /* @__PURE__ */ N("svg", { viewBox: "25 25 50 50" }, [
@@ -285,36 +285,36 @@ const lt = /* @__PURE__ */ N("svg", { viewBox: "25 25 50 50" }, [
285
285
  class: { default: void 0 }
286
286
  },
287
287
  setup(n) {
288
- const t = n, l = k(() => ({
288
+ const t = n, o = g(() => ({
289
289
  "font-size": t.size !== 48 ? `${t.size}px` : void 0
290
290
  }));
291
- return (e, o) => (u(), m("div", {
291
+ return (e, l) => (d(), v("div", {
292
292
  class: D(["q-spinner-loader", t.class]),
293
- style: ae(l.value)
293
+ style: ae(o.value)
294
294
  }, ot, 6));
295
295
  }
296
296
  });
297
297
  function st(n, t) {
298
- var l;
299
- return typeof ((l = n.props) == null ? void 0 : l[t]) < "u";
298
+ var o;
299
+ return typeof ((o = n.props) == null ? void 0 : o[t]) < "u";
300
300
  }
301
301
  function V(n) {
302
302
  const t = n.setup;
303
- return t && (n.setup = (l, e) => {
304
- const o = Ye();
305
- if (ye(o.value))
306
- return t(l, e);
303
+ return t && (n.setup = (o, e) => {
304
+ const l = Ye();
305
+ if (ye(l.value))
306
+ return t(o, e);
307
307
  const a = Ve();
308
308
  if (a === null)
309
- return t(l, e);
310
- const c = new Proxy(l, {
311
- get(i, p) {
309
+ return t(o, e);
310
+ const u = new Proxy(o, {
311
+ get(i, f) {
312
312
  var w;
313
- const d = Reflect.get(i, p), y = (w = o.value) == null ? void 0 : w[p];
314
- return typeof p == "string" && !st(a.vnode, p) ? y ?? d : d;
313
+ const p = Reflect.get(i, f), m = (w = l.value) == null ? void 0 : w[f];
314
+ return typeof f == "string" && !st(a.vnode, f) ? m ?? p : p;
315
315
  }
316
316
  });
317
- return t(c, e);
317
+ return t(u, e);
318
318
  }), n;
319
319
  }
320
320
  const _e = V(at), it = ["disabled"], rt = {
@@ -337,11 +337,11 @@ const _e = V(at), it = ["disabled"], rt = {
337
337
  },
338
338
  emits: ["click"],
339
339
  setup(n, { emit: t }) {
340
- const l = t, e = n, o = k(() => e.disabled || e.loading);
340
+ const o = t, e = n, l = g(() => e.disabled || e.loading);
341
341
  function a(i) {
342
- o.value || l("click", i);
342
+ l.value || o("click", i);
343
343
  }
344
- const c = k(() => {
344
+ const u = g(() => {
345
345
  const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
346
346
  return [
347
347
  "q-btn",
@@ -357,21 +357,21 @@ const _e = V(at), it = ["disabled"], rt = {
357
357
  e.class
358
358
  ];
359
359
  });
360
- return (i, p) => (u(), m("button", {
360
+ return (i, f) => (d(), v("button", {
361
361
  type: "button",
362
- class: D(c.value),
363
- disabled: o.value,
362
+ class: D(u.value),
363
+ disabled: l.value,
364
364
  onClick: ee(a, ["stop", "prevent"])
365
365
  }, [
366
- i.loading ? (u(), m("div", rt, [
367
- te(_(_e), { size: 23 })
368
- ])) : L("", !0),
366
+ i.loading ? (d(), v("div", rt, [
367
+ te(k(_e), { size: 23 })
368
+ ])) : S("", !0),
369
369
  N("span", dt, [
370
- i.iconOnRight ? (u(), m(Z, { key: 0 }, [
370
+ i.iconOnRight ? (d(), v(Z, { key: 0 }, [
371
371
  re(H(e.label), 1)
372
- ], 64)) : L("", !0),
373
- h(i.$slots, "default"),
374
- i.iconOnRight ? L("", !0) : (u(), m(Z, { key: 1 }, [
372
+ ], 64)) : S("", !0),
373
+ y(i.$slots, "default"),
374
+ i.iconOnRight ? S("", !0) : (d(), v(Z, { key: 1 }, [
375
375
  re(H(e.label), 1)
376
376
  ], 64))
377
377
  ])
@@ -395,7 +395,7 @@ const _e = V(at), it = ["disabled"], rt = {
395
395
  borderless: pe(t, "borderless"),
396
396
  elevated: !1
397
397
  }
398
- }), (l, e) => (u(), m("div", {
398
+ }), (o, e) => (d(), v("div", {
399
399
  class: D([
400
400
  "q-btn-group",
401
401
  {
@@ -404,7 +404,7 @@ const _e = V(at), it = ["disabled"], rt = {
404
404
  t.class
405
405
  ])
406
406
  }, [
407
- h(l.$slots, "default")
407
+ y(o.$slots, "default")
408
408
  ], 2));
409
409
  }
410
410
  }), pt = V(ft), mt = /* @__PURE__ */ x({
@@ -420,23 +420,23 @@ const _e = V(at), it = ["disabled"], rt = {
420
420
  },
421
421
  emits: ["update:modelValue"],
422
422
  setup(n, { emit: t }) {
423
- const l = t, e = n, o = q(e.modelValue);
424
- z(
423
+ const o = t, e = n, l = q(e.modelValue);
424
+ C(
425
425
  () => e.modelValue,
426
- (i) => o.value = i
426
+ (i) => l.value = i
427
427
  );
428
- const a = k({
428
+ const a = g({
429
429
  get() {
430
- return o.value;
430
+ return l.value;
431
431
  },
432
432
  set(i) {
433
- o.value = i, l("update:modelValue", i);
433
+ l.value = i, o("update:modelValue", i);
434
434
  }
435
435
  });
436
- function c(i) {
436
+ function u(i) {
437
437
  a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
438
438
  }
439
- return (i, p) => (u(), B(_(pt), {
439
+ return (i, f) => (d(), B(k(pt), {
440
440
  "b-style": "secondary",
441
441
  class: D(e.class),
442
442
  disabled: e.disabled,
@@ -444,15 +444,15 @@ const _e = V(at), it = ["disabled"], rt = {
444
444
  elevated: e.elevated
445
445
  }, {
446
446
  default: $(() => [
447
- (u(!0), m(Z, null, ve(e.options, (d) => (u(), B(_(ct), {
448
- key: d.key,
449
- title: d.title,
450
- label: d.label,
451
- active: a.value === d.key,
452
- onClick: () => c(d)
447
+ (d(!0), v(Z, null, ve(e.options, (p) => (d(), B(k(ct), {
448
+ key: p.key,
449
+ title: p.title,
450
+ label: p.label,
451
+ active: a.value === p.key,
452
+ onClick: () => u(p)
453
453
  }, {
454
454
  default: $(() => [
455
- h(i.$slots, d.key)
455
+ y(i.$slots, p.key)
456
456
  ]),
457
457
  _: 2
458
458
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -469,7 +469,7 @@ const _e = V(at), it = ["disabled"], rt = {
469
469
  class: { default: void 0 }
470
470
  },
471
471
  setup(n) {
472
- const t = n, l = k(() => {
472
+ const t = n, o = g(() => {
473
473
  switch (t.type) {
474
474
  case "svg":
475
475
  return qt;
@@ -481,7 +481,7 @@ const _e = V(at), it = ["disabled"], rt = {
481
481
  return;
482
482
  }
483
483
  });
484
- return (e, o) => (u(), B(Te(l.value), {
484
+ return (e, l) => (d(), B(Te(o.value), {
485
485
  class: D(t.class),
486
486
  icon: t.icon,
487
487
  size: t.size
@@ -497,12 +497,12 @@ const _e = V(at), it = ["disabled"], rt = {
497
497
  class: { default: void 0 }
498
498
  },
499
499
  setup(n) {
500
- const t = n, l = k(() => t.variant ? `${t.library}-${t.variant}` : t.library), e = k(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), o = k(() => ({
500
+ const t = n, o = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), e = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
501
501
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
502
502
  }));
503
- return (a, c) => (u(), m("i", {
504
- class: D(["q-icon", "q-icon__font", l.value, e.value, t.class]),
505
- style: ae(o.value)
503
+ return (a, u) => (d(), v("i", {
504
+ class: D(["q-icon", "q-icon__font", o.value, e.value, t.class]),
505
+ style: ae(l.value)
506
506
  }, null, 6));
507
507
  }
508
508
  }), yt = ["src"], bt = /* @__PURE__ */ x({
@@ -513,13 +513,13 @@ const _e = V(at), it = ["disabled"], rt = {
513
513
  class: {}
514
514
  },
515
515
  setup(n) {
516
- const t = n, l = k(() => ({
516
+ const t = n, o = g(() => ({
517
517
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
518
518
  }));
519
- return (e, o) => (u(), m("img", {
519
+ return (e, l) => (d(), v("img", {
520
520
  src: t.icon,
521
521
  class: D(["q-icon", "q-icon__img", t.class]),
522
- style: ae(l.value)
522
+ style: ae(o.value)
523
523
  }, null, 14, yt));
524
524
  }
525
525
  }), oe = {}, gt = x({
@@ -568,14 +568,14 @@ const _e = V(at), it = ["disabled"], rt = {
568
568
  },
569
569
  methods: {
570
570
  copySvgAttrs(n, t) {
571
- const l = t.attributes;
572
- if (l)
573
- for (const e of l)
571
+ const o = t.attributes;
572
+ if (o)
573
+ for (const e of o)
574
574
  n[e.name] = e.value;
575
575
  },
576
576
  copyComponentAttrs(n, t) {
577
- for (const [l, e] of Object.entries(t))
578
- e !== !1 && e !== null && e !== void 0 && (n[l] = e);
577
+ for (const [o, e] of Object.entries(t))
578
+ e !== !1 && e !== null && e !== void 0 && (n[o] = e);
579
579
  },
580
580
  getSvgContent(n) {
581
581
  return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), _t(n, this.title)), n);
@@ -602,7 +602,7 @@ const _e = V(at), it = ["disabled"], rt = {
602
602
  const t = await fetch(n);
603
603
  if (!t.ok)
604
604
  throw new Error("Error loading SVG");
605
- const l = await t.text(), a = new DOMParser().parseFromString(l, "text/xml").getElementsByTagName("svg")[0];
605
+ const o = await t.text(), a = new DOMParser().parseFromString(o, "text/xml").getElementsByTagName("svg")[0];
606
606
  if (!a)
607
607
  throw new Error("Loaded file is not a valid SVG");
608
608
  return a;
@@ -615,9 +615,9 @@ const _e = V(at), it = ["disabled"], rt = {
615
615
  }
616
616
  });
617
617
  function _t(n, t) {
618
- const l = n.getElementsByTagName("title");
619
- if (l.length)
620
- l[0].textContent = t;
618
+ const o = n.getElementsByTagName("title");
619
+ if (o.length)
620
+ o[0].textContent = t;
621
621
  else {
622
622
  const e = document.createElementNS("http://www.w3.org/2000/svg", "title");
623
623
  e.textContent = t, n.insertBefore(e, n.firstChild);
@@ -627,13 +627,13 @@ function kt(n) {
627
627
  if (n.getIsPending)
628
628
  return n;
629
629
  let t = !0;
630
- const l = n.then(
630
+ const o = n.then(
631
631
  (e) => (t = !1, e),
632
632
  (e) => {
633
633
  throw t = !1, e;
634
634
  }
635
635
  );
636
- return l.getIsPending = () => t, l;
636
+ return o.getIsPending = () => t, o;
637
637
  }
638
638
  const wt = /* @__PURE__ */ x({
639
639
  __name: "QIconSvg",
@@ -645,22 +645,22 @@ const wt = /* @__PURE__ */ x({
645
645
  },
646
646
  emits: ["loaded", "unloaded"],
647
647
  setup(n, { emit: t }) {
648
- const l = t, e = n, o = k(() => ({
648
+ const o = t, e = n, l = g(() => ({
649
649
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
650
650
  }));
651
651
  function a(i) {
652
- l("loaded", i);
652
+ o("loaded", i);
653
653
  }
654
- function c() {
655
- l("unloaded");
654
+ function u() {
655
+ o("unloaded");
656
656
  }
657
- return (i, p) => (u(), B(_(gt), {
657
+ return (i, f) => (d(), B(k(gt), {
658
658
  class: D(["q-icon", "q-icon__svg", e.class]),
659
659
  src: e.bundle,
660
660
  symbol: e.icon,
661
- style: ae(o.value),
661
+ style: ae(l.value),
662
662
  onLoaded: a,
663
- onUnloaded: c
663
+ onUnloaded: u
664
664
  }, null, 8, ["class", "src", "symbol", "style"]));
665
665
  }
666
666
  }), P = V(vt), $t = V(ht), It = V(bt), qt = V(wt), St = /* @__PURE__ */ x({
@@ -676,25 +676,25 @@ const wt = /* @__PURE__ */ x({
676
676
  class: { default: void 0 }
677
677
  },
678
678
  emits: ["update:modelValue"],
679
- setup(n, { expose: t, emit: l }) {
680
- const e = l, o = n, a = q(o.modelValue), c = q(!1), i = k(() => p.value.length > 1 ? "div" : "ul"), p = k(() => o.groups.length ? o.groups : [{ id: "", title: "" }]), d = q(null);
681
- function y(r) {
679
+ setup(n, { expose: t, emit: o }) {
680
+ const e = o, l = n, a = q(l.modelValue), u = q(!1), i = g(() => f.value.length > 1 ? "div" : "ul"), f = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), p = q(null);
681
+ function m(r) {
682
682
  a.value = r, e("update:modelValue", r);
683
683
  }
684
684
  function w() {
685
- c.value = !0;
685
+ u.value = !0;
686
686
  }
687
- function C() {
688
- c.value = !1;
687
+ function z() {
688
+ u.value = !1;
689
689
  }
690
690
  function F(r) {
691
- var S;
692
- if ((S = d.value) != null && S.contains(r.relatedTarget))
691
+ var L;
692
+ if ((L = p.value) != null && L.contains(r.relatedTarget))
693
693
  return;
694
- let v;
695
- a.value ? v = o.items.findIndex((G) => G[o.itemValue] === a.value) : v = Q();
696
- const I = c.value;
697
- O(v, I);
694
+ let h;
695
+ a.value ? h = l.items.findIndex((G) => G[l.itemValue] === a.value) : h = Q();
696
+ const I = u.value;
697
+ O(h, I);
698
698
  }
699
699
  function A(r) {
700
700
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && r.preventDefault(), r.key) {
@@ -726,13 +726,13 @@ const wt = /* @__PURE__ */ x({
726
726
  break;
727
727
  }
728
728
  }
729
- function O(r, v = !1) {
730
- var S;
731
- (S = E()[r]) == null || S.focus({ preventScroll: v });
729
+ function O(r, h = !1) {
730
+ var L;
731
+ (L = E()[r]) == null || L.focus({ preventScroll: h });
732
732
  }
733
733
  function E() {
734
- var v;
735
- const r = (v = d.value) == null ? void 0 : v.querySelectorAll("li");
734
+ var h;
735
+ const r = (h = p.value) == null ? void 0 : h.querySelectorAll("li");
736
736
  return r ? Array.from(r) : [];
737
737
  }
738
738
  function K(r) {
@@ -742,40 +742,40 @@ const wt = /* @__PURE__ */ x({
742
742
  return E().indexOf(document.activeElement);
743
743
  }
744
744
  function Q() {
745
- const r = E(), v = r.find((I) => b(I));
746
- return v ? r.indexOf(v) : -1;
745
+ const r = E(), h = r.find((I) => b(I));
746
+ return h ? r.indexOf(h) : -1;
747
747
  }
748
748
  function M() {
749
- const r = E(), v = [...r].reverse().find((I) => b(I));
750
- return v ? r.indexOf(v) : -1;
749
+ const r = E(), h = [...r].reverse().find((I) => b(I));
750
+ return h ? r.indexOf(h) : -1;
751
751
  }
752
- function U(r, v, I) {
753
- return v === "prev" && r === 0 || v === "next" && r === I.length - 1;
752
+ function U(r, h, I) {
753
+ return h === "prev" && r === 0 || h === "next" && r === I.length - 1;
754
754
  }
755
755
  function X(r) {
756
- const v = j();
757
- return W(v, r);
756
+ const h = j();
757
+ return W(h, r);
758
758
  }
759
- function W(r, v) {
759
+ function W(r, h) {
760
760
  const I = E();
761
- if (U(r, v, I))
761
+ if (U(r, h, I))
762
762
  return r;
763
- let S = r + (v === "next" ? 1 : -1);
764
- for (; !b(I[S]); ) {
765
- if (U(S, v, I))
763
+ let L = r + (h === "next" ? 1 : -1);
764
+ for (; !b(I[L]); ) {
765
+ if (U(L, h, I))
766
766
  return r;
767
- S += v === "next" ? 1 : -1;
767
+ L += h === "next" ? 1 : -1;
768
768
  }
769
- return S;
769
+ return L;
770
770
  }
771
771
  function b(r) {
772
772
  return r.tabIndex === -2;
773
773
  }
774
- function f(r) {
775
- return r ? o.items.filter((v) => v.group === r) : o.items;
774
+ function c(r) {
775
+ return r ? l.items.filter((h) => h.group === r) : l.items;
776
776
  }
777
- return z(
778
- () => o.modelValue,
777
+ return C(
778
+ () => l.modelValue,
779
779
  (r) => {
780
780
  a.value = r;
781
781
  }
@@ -785,36 +785,36 @@ const wt = /* @__PURE__ */ x({
785
785
  getAdjacentItemIndex: W,
786
786
  getFirstFocusableItemIndex: Q,
787
787
  getLastFocusableItemIndex: M
788
- }), (r, v) => (u(), B(Te(i.value), {
788
+ }), (r, h) => (d(), B(Te(i.value), {
789
789
  ref_key: "listRef",
790
- ref: d,
791
- class: D(["q-list", { "q-list--disabled": o.disabled }, o.class]),
790
+ ref: p,
791
+ class: D(["q-list", { "q-list--disabled": l.disabled }, l.class]),
792
792
  role: "listbox",
793
- tabindex: o.disabled ? -1 : 0,
793
+ tabindex: l.disabled ? -1 : 0,
794
794
  onFocus: F,
795
795
  onMousedown: w,
796
- onMouseup: C,
796
+ onMouseup: z,
797
797
  onKeydown: A
798
798
  }, {
799
799
  default: $(() => [
800
- (u(!0), m(Z, null, ve(p.value, (I) => (u(), B(_(Ft), {
800
+ (d(!0), v(Z, null, ve(f.value, (I) => (d(), B(k(Ft), {
801
801
  key: I.id,
802
802
  title: I.title,
803
803
  disabled: I.disabled
804
804
  }, {
805
805
  default: $(() => [
806
- (u(!0), m(Z, null, ve(f(I.id), (S) => (u(), B(_(Ct), {
807
- key: S[o.itemValue],
808
- value: S[o.itemValue],
809
- label: S[o.itemLabel],
810
- icon: S.icon,
811
- disabled: o.disabled || S.disabled,
812
- highlighted: o.highlighted === S[o.itemValue],
813
- selected: a.value === S[o.itemValue],
814
- onSelect: y
806
+ (d(!0), v(Z, null, ve(c(I.id), (L) => (d(), B(k(Ct), {
807
+ key: L[l.itemValue],
808
+ value: L[l.itemValue],
809
+ label: L[l.itemLabel],
810
+ icon: L.icon,
811
+ disabled: l.disabled || L.disabled,
812
+ highlighted: l.highlighted === L[l.itemValue],
813
+ selected: a.value === L[l.itemValue],
814
+ onSelect: m
815
815
  }, {
816
816
  default: $(() => [
817
- h(r.$slots, "item", { item: S })
817
+ y(r.$slots, "item", { item: L })
818
818
  ]),
819
819
  _: 2
820
820
  }, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -847,15 +847,15 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
847
847
  },
848
848
  emits: ["select"],
849
849
  setup(n, { emit: t }) {
850
- const l = t, e = n, o = le();
850
+ const o = t, e = n, l = le();
851
851
  function a() {
852
- e.disabled || l("select", e.value);
852
+ e.disabled || o("select", e.value);
853
853
  }
854
- function c(i) {
854
+ function u(i) {
855
855
  i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
856
856
  }
857
- return (i, p) => (u(), m("li", {
858
- id: _(o),
857
+ return (i, f) => (d(), v("li", {
858
+ id: k(l),
859
859
  role: "option",
860
860
  tabindex: e.disabled ? void 0 : -2,
861
861
  class: D([
@@ -868,15 +868,15 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
868
868
  ]),
869
869
  "aria-label": e.label,
870
870
  "aria-selected": e.disabled ? void 0 : e.selected,
871
- onKeydown: c,
871
+ onKeydown: u,
872
872
  onClick: ee(a, ["stop", "prevent"])
873
873
  }, [
874
- h(i.$slots, "default", {}, () => [
875
- e.icon ? (u(), B(_(P), de(ne({ key: 0 }, e.icon)), null, 16)) : L("", !0),
874
+ y(i.$slots, "default", {}, () => [
875
+ e.icon ? (d(), B(k(P), de(ne({ key: 0 }, e.icon)), null, 16)) : S("", !0),
876
876
  re(" " + H(e.label), 1)
877
877
  ]),
878
878
  N("div", xt, [
879
- e.selected ? (u(), B(_(P), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
879
+ e.selected ? (d(), B(k(P), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
880
880
  ])
881
881
  ], 42, Bt));
882
882
  }
@@ -887,60 +887,60 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
887
887
  disabled: { type: Boolean }
888
888
  },
889
889
  setup(n) {
890
- const t = n, l = le();
891
- return (e, o) => (u(), m("ul", {
890
+ const t = n, o = le();
891
+ return (e, l) => (d(), v("ul", {
892
892
  class: "q-list-item-group",
893
893
  role: "group",
894
- "aria-labelledby": t.title ? _(l) : void 0
894
+ "aria-labelledby": t.title ? k(o) : void 0
895
895
  }, [
896
- t.title ? (u(), m("li", {
896
+ t.title ? (d(), v("li", {
897
897
  key: 0,
898
- id: _(l),
898
+ id: k(o),
899
899
  class: "q-list-item-group__title",
900
900
  role: "presentation"
901
- }, H(t.title), 9, Et)) : L("", !0),
902
- h(e.$slots, "default")
901
+ }, H(t.title), 9, Et)) : S("", !0),
902
+ y(e.$slots, "default")
903
903
  ], 8, Tt));
904
904
  }
905
905
  }), Me = V(St), Ct = V(Dt), Ft = V(zt);
906
- function At(n, t, l = "right", e) {
907
- const o = n.getBoundingClientRect(), a = o.x + window.scrollX, c = o.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), p = (i == null ? void 0 : i.width) ?? 0, d = (i == null ? void 0 : i.height) ?? 0;
908
- let y = l;
909
- i && !Oe(o, i, y) && (y = Qt(o, i, y));
910
- const w = { x: 0, y: 0, placement: y };
911
- switch (y) {
906
+ function At(n, t, o = "right", e) {
907
+ const l = n.getBoundingClientRect(), a = l.x + window.scrollX, u = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, p = (i == null ? void 0 : i.height) ?? 0;
908
+ let m = o;
909
+ i && !Oe(l, i, m) && (m = Qt(l, i, m));
910
+ const w = { x: 0, y: 0, placement: m };
911
+ switch (m) {
912
912
  case "top":
913
- e === "anchor" ? w.x = a : w.x = a + (o.width - p) / 2, w.y = c - d;
913
+ e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u - p;
914
914
  break;
915
915
  case "bottom":
916
- e === "anchor" ? w.x = a : w.x = a + (o.width - p) / 2, w.y = c + o.height;
916
+ e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u + l.height;
917
917
  break;
918
918
  case "left":
919
- w.x = a - p, w.y = c + o.height / 2 - d / 2;
919
+ w.x = a - f, w.y = u + l.height / 2 - p / 2;
920
920
  break;
921
921
  case "right":
922
- w.x = a + o.width, w.y = c + o.height / 2 - d / 2;
922
+ w.x = a + l.width, w.y = u + l.height / 2 - p / 2;
923
923
  break;
924
924
  }
925
- return e === "anchor" && o.width >= p && (w.width = o.width), w;
925
+ return e === "anchor" && l.width >= f && (w.width = l.width), w;
926
926
  }
927
- function Oe(n, t, l) {
928
- let e = !1, o = !1;
929
- switch (l) {
927
+ function Oe(n, t, o) {
928
+ let e = !1, l = !1;
929
+ switch (o) {
930
930
  case "top":
931
- e = xe(n, t), o = n.top > t.height;
931
+ e = xe(n, t), l = n.top > t.height;
932
932
  break;
933
933
  case "bottom":
934
- e = xe(n, t), o = window.innerHeight - n.top - n.height > t.height;
934
+ e = xe(n, t), l = window.innerHeight - n.top - n.height > t.height;
935
935
  break;
936
936
  case "left":
937
- e = n.left > t.width, o = Be(n, t);
937
+ e = n.left > t.width, l = Be(n, t);
938
938
  break;
939
939
  case "right":
940
- e = window.innerWidth - n.left - n.width > t.width, o = Be(n, t);
940
+ e = window.innerWidth - n.left - n.width > t.width, l = Be(n, t);
941
941
  break;
942
942
  }
943
- return e && o;
943
+ return e && l;
944
944
  }
945
945
  function Be(n, t) {
946
946
  return window.innerHeight - n.top - n.height / 2 > t.height / 2 && n.top + n.height / 2 > t.height / 2;
@@ -948,17 +948,17 @@ function Be(n, t) {
948
948
  function xe(n, t) {
949
949
  return window.innerWidth - n.left - n.width / 2 > t.width / 2 && n.left + n.width / 2 > t.width / 2;
950
950
  }
951
- function Qt(n, t, l) {
951
+ function Qt(n, t, o) {
952
952
  const e = {
953
953
  top: ["bottom", "left", "right"],
954
954
  bottom: ["top", "left", "right"],
955
955
  left: ["right", "top", "bottom"],
956
956
  right: ["left", "top", "bottom"]
957
957
  };
958
- for (const o of e[l])
959
- if (Oe(n, t, o))
960
- return o;
961
- return l;
958
+ for (const l of e[o])
959
+ if (Oe(n, t, l))
960
+ return l;
961
+ return o;
962
962
  }
963
963
  function ie(n) {
964
964
  return typeof n == "string" ? document.querySelector(n) : n && "$el" in n ? n.$el : n;
@@ -987,7 +987,7 @@ const Rt = {
987
987
  },
988
988
  emits: ["enter", "leave"],
989
989
  setup(n, { emit: t }) {
990
- const l = t, e = n, o = k(() => [
990
+ const o = t, e = n, l = g(() => [
991
991
  "q-overlay",
992
992
  `q-overlay--${a.placement}`,
993
993
  { "q-overlay--inverted": e.appearance === "inverted" },
@@ -999,22 +999,22 @@ const Rt = {
999
999
  left: 0,
1000
1000
  width: 0,
1001
1001
  placement: e.placement
1002
- }), c = k(() => a.visible && !e.disabled);
1003
- z(
1002
+ }), u = g(() => a.visible && !e.disabled);
1003
+ C(
1004
1004
  () => e.modelValue,
1005
1005
  () => a.visible = e.modelValue
1006
- ), z(
1006
+ ), C(
1007
1007
  () => a.visible,
1008
1008
  () => a.animating = !0
1009
1009
  );
1010
- const i = k(() => {
1011
- let b = 0, f = 0;
1010
+ const i = g(() => {
1011
+ let b = 0, c = 0;
1012
1012
  switch (a.placement) {
1013
1013
  case "top":
1014
- f = -(e.offset || 0);
1014
+ c = -(e.offset || 0);
1015
1015
  break;
1016
1016
  case "bottom":
1017
- f = e.offset || 0;
1017
+ c = e.offset || 0;
1018
1018
  break;
1019
1019
  case "left":
1020
1020
  b = -(e.offset || 0);
@@ -1024,36 +1024,36 @@ const Rt = {
1024
1024
  break;
1025
1025
  }
1026
1026
  const r = {
1027
- top: `${a.top + f}px`,
1027
+ top: `${a.top + c}px`,
1028
1028
  left: `${a.left + b}px`
1029
1029
  };
1030
1030
  return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (r.width = `${a.width}px`), r;
1031
- }), p = q(null);
1032
- function d() {
1031
+ }), f = q(null);
1032
+ function p() {
1033
1033
  const b = ie(e.anchor);
1034
1034
  if (b) {
1035
- const f = At(b, p.value, e.placement, e.width);
1036
- a.left = f.x, a.top = f.y, a.width = f.width, a.placement = f.placement;
1035
+ const c = At(b, f.value, e.placement, e.width);
1036
+ a.left = c.x, a.top = c.y, a.width = c.width, a.placement = c.placement;
1037
1037
  }
1038
1038
  }
1039
- z([() => c.value, () => e.placement], d);
1040
- let y;
1039
+ C([() => u.value, () => e.placement], p);
1040
+ let m;
1041
1041
  function w() {
1042
1042
  const b = e.trigger === "hover" ? e.delay : 0;
1043
- y || (y = window.setTimeout(() => a.visible = !0, b));
1043
+ m || (m = window.setTimeout(() => a.visible = !0, b));
1044
1044
  }
1045
- function C() {
1046
- clearTimeout(y), y = void 0, a.visible = !1;
1045
+ function z() {
1046
+ clearTimeout(m), m = void 0, a.visible = !1;
1047
1047
  }
1048
1048
  function F() {
1049
- c.value ? C() : w();
1049
+ u.value ? z() : w();
1050
1050
  }
1051
1051
  let A;
1052
1052
  function R() {
1053
- l("enter");
1053
+ o("enter");
1054
1054
  }
1055
1055
  function O() {
1056
- window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), l("leave");
1056
+ window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), o("leave");
1057
1057
  }
1058
1058
  let E;
1059
1059
  function K() {
@@ -1065,7 +1065,7 @@ const Rt = {
1065
1065
  b.addEventListener("click", F);
1066
1066
  break;
1067
1067
  case "hover":
1068
- b.addEventListener("mouseenter", w), b.addEventListener("mouseleave", C);
1068
+ b.addEventListener("mouseenter", w), b.addEventListener("mouseleave", z);
1069
1069
  break;
1070
1070
  }
1071
1071
  });
@@ -1073,20 +1073,20 @@ const Rt = {
1073
1073
  function j() {
1074
1074
  J(() => {
1075
1075
  const b = ie(e.anchor);
1076
- b && (window.addEventListener("scroll", d), window.addEventListener("resize", d), E = new MutationObserver(d), E.observe(b, {
1076
+ b && (window.addEventListener("scroll", p), window.addEventListener("resize", p), E = new MutationObserver(p), E.observe(b, {
1077
1077
  attributes: !1,
1078
1078
  childList: !0,
1079
1079
  characterData: !0,
1080
1080
  subtree: !0
1081
- }), d());
1081
+ }), p());
1082
1082
  });
1083
1083
  }
1084
1084
  function Q() {
1085
- window.removeEventListener("scroll", d), window.removeEventListener("resize", d), E == null || E.disconnect();
1085
+ window.removeEventListener("scroll", p), window.removeEventListener("resize", p), E == null || E.disconnect();
1086
1086
  }
1087
1087
  let M;
1088
1088
  function U() {
1089
- ie(e.anchor) ? (d(), M = window.setTimeout(U, 100)) : C();
1089
+ ie(e.anchor) ? (p(), M = window.setTimeout(U, 100)) : z();
1090
1090
  }
1091
1091
  function X() {
1092
1092
  j(), e.spy && U();
@@ -1094,21 +1094,21 @@ const Rt = {
1094
1094
  function W() {
1095
1095
  Q(), e.spy && (clearTimeout(M), M = void 0);
1096
1096
  }
1097
- return Ke(W), Ee(d), z(
1097
+ return Ke(W), Ee(p), C(
1098
1098
  () => e.disabled,
1099
1099
  (b) => {
1100
1100
  b || K();
1101
1101
  },
1102
1102
  { immediate: !0 }
1103
- ), z(
1104
- () => c.value,
1103
+ ), C(
1104
+ () => u.value,
1105
1105
  (b) => {
1106
1106
  b ? X() : W();
1107
1107
  },
1108
1108
  { immediate: !0 }
1109
- ), (b, f) => (u(), m(Z, null, [
1110
- h(b.$slots, "trigger", { open: c.value }),
1111
- c.value || a.animating ? (u(), B(We, {
1109
+ ), (b, c) => (d(), v(Z, null, [
1110
+ y(b.$slots, "trigger", { open: u.value }),
1111
+ u.value || a.animating ? (d(), B(We, {
1112
1112
  key: 0,
1113
1113
  disabled: !e.attach,
1114
1114
  to: e.attach
@@ -1120,24 +1120,24 @@ const Rt = {
1120
1120
  onLeave: O
1121
1121
  }, {
1122
1122
  default: $(() => [
1123
- c.value ? (u(), m("div", {
1123
+ u.value ? (d(), v("div", {
1124
1124
  key: 0,
1125
- class: D(o.value),
1125
+ class: D(l.value),
1126
1126
  style: ae(i.value)
1127
1127
  }, [
1128
1128
  N("div", {
1129
1129
  class: "q-overlay__content",
1130
1130
  ref_key: "overlay",
1131
- ref: p
1131
+ ref: f
1132
1132
  }, [
1133
- e.arrow ? (u(), m("div", Rt)) : L("", !0),
1134
- h(b.$slots, "default")
1133
+ e.arrow ? (d(), v("div", Rt)) : S("", !0),
1134
+ y(b.$slots, "default")
1135
1135
  ], 512)
1136
- ], 6)) : L("", !0)
1136
+ ], 6)) : S("", !0)
1137
1137
  ]),
1138
1138
  _: 3
1139
1139
  }, 8, ["name"])
1140
- ], 8, ["disabled", "to"])) : L("", !0)
1140
+ ], 8, ["disabled", "to"])) : S("", !0)
1141
1141
  ], 64));
1142
1142
  }
1143
1143
  }), ce = V(Mt), Ot = ["id"], Ut = {
@@ -1165,47 +1165,47 @@ const Rt = {
1165
1165
  class: { default: void 0 }
1166
1166
  },
1167
1167
  setup(n, { expose: t }) {
1168
- const l = n, e = q(null), o = k(() => l.required && !l.readonly && !l.disabled);
1168
+ const o = n, e = q(null), l = g(() => o.required && !o.readonly && !o.disabled);
1169
1169
  return t({
1170
1170
  fieldRef: e
1171
- }), (a, c) => (u(), m("div", {
1172
- id: l.id,
1171
+ }), (a, u) => (d(), v("div", {
1172
+ id: o.id,
1173
1173
  class: D([
1174
1174
  "q-field",
1175
- `q-field--${l.size}`,
1175
+ `q-field--${o.size}`,
1176
1176
  {
1177
- "q-field--readonly": l.readonly,
1178
- "q-field--disabled": l.disabled,
1179
- "q-field--required": o.value
1177
+ "q-field--readonly": o.readonly,
1178
+ "q-field--disabled": o.disabled,
1179
+ "q-field--required": l.value
1180
1180
  },
1181
- l.class
1181
+ o.class
1182
1182
  ])
1183
1183
  }, [
1184
- l.label ? (u(), m("div", Ut, [
1185
- h(a.$slots, "label.prepend"),
1184
+ o.label ? (d(), v("div", Ut, [
1185
+ y(a.$slots, "label.prepend"),
1186
1186
  N("label", {
1187
- for: l.id
1188
- }, H(l.label), 9, Nt),
1189
- h(a.$slots, "label.append")
1190
- ])) : L("", !0),
1191
- h(a.$slots, "control", {}, () => [
1187
+ for: o.id
1188
+ }, H(o.label), 9, Nt),
1189
+ y(a.$slots, "label.append")
1190
+ ])) : S("", !0),
1191
+ y(a.$slots, "control", {}, () => [
1192
1192
  N("div", ne({
1193
1193
  class: "q-field__control",
1194
1194
  ref_key: "fieldRef",
1195
1195
  ref: e
1196
1196
  }, a.$attrs), [
1197
- a.$slots.prepend ? (u(), m("div", Ht, [
1198
- h(a.$slots, "prepend")
1199
- ])) : L("", !0),
1200
- h(a.$slots, "default"),
1201
- a.$slots.append ? (u(), m("div", Kt, [
1202
- h(a.$slots, "append")
1203
- ])) : L("", !0)
1197
+ a.$slots.prepend ? (d(), v("div", Ht, [
1198
+ y(a.$slots, "prepend")
1199
+ ])) : S("", !0),
1200
+ y(a.$slots, "default"),
1201
+ a.$slots.append ? (d(), v("div", Kt, [
1202
+ y(a.$slots, "append")
1203
+ ])) : S("", !0)
1204
1204
  ], 16)
1205
1205
  ]),
1206
- a.$slots.extras ? (u(), m("div", Wt, [
1207
- h(a.$slots, "extras")
1208
- ])) : L("", !0)
1206
+ a.$slots.extras ? (d(), v("div", Wt, [
1207
+ y(a.$slots, "extras")
1208
+ ])) : S("", !0)
1209
1209
  ], 10, Ot));
1210
1210
  }
1211
1211
  }), ke = V(Gt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ x({
@@ -1226,78 +1226,80 @@ const Rt = {
1226
1226
  class: { default: void 0 }
1227
1227
  },
1228
1228
  emits: ["update:modelValue"],
1229
- setup(n, { expose: t, emit: l }) {
1230
- const e = l, o = n, a = q(o.modelValue), c = q(null), i = q(null), p = k({
1229
+ setup(n, { expose: t, emit: o }) {
1230
+ const e = o, l = n, a = q(l.modelValue), u = q(null), i = q(null), f = g({
1231
1231
  get() {
1232
1232
  return a.value;
1233
1233
  },
1234
- set(d) {
1235
- a.value = d, e("update:modelValue", d);
1234
+ set(m) {
1235
+ a.value = m, e("update:modelValue", m);
1236
1236
  }
1237
- });
1238
- return z(
1239
- () => o.modelValue,
1240
- (d) => a.value = d
1237
+ }), p = g(
1238
+ () => l.readonly || l.disabled ? "" : l.placeholder
1239
+ );
1240
+ return C(
1241
+ () => l.modelValue,
1242
+ (m) => a.value = m
1241
1243
  ), t({
1242
- fieldRef: k(() => {
1243
- var d;
1244
- return (d = c.value) == null ? void 0 : d.fieldRef;
1244
+ fieldRef: g(() => {
1245
+ var m;
1246
+ return (m = u.value) == null ? void 0 : m.fieldRef;
1245
1247
  }),
1246
1248
  inputRef: i
1247
- }), (d, y) => (u(), B(_(ke), {
1249
+ }), (m, w) => (d(), B(k(ke), {
1248
1250
  ref_key: "fieldRef",
1249
- ref: c,
1250
- class: D(["q-text-field", o.class]),
1251
- id: o.id,
1252
- label: o.label,
1253
- size: o.size,
1254
- readonly: o.readonly,
1255
- disabled: o.disabled,
1256
- required: o.required
1251
+ ref: u,
1252
+ class: D(["q-text-field", l.class]),
1253
+ id: l.id,
1254
+ label: l.label,
1255
+ size: l.size,
1256
+ readonly: l.readonly,
1257
+ disabled: l.disabled,
1258
+ required: l.required
1257
1259
  }, be({
1258
1260
  "label.prepend": $(() => [
1259
- h(d.$slots, "label.prepend")
1261
+ y(m.$slots, "label.prepend")
1260
1262
  ]),
1261
1263
  "label.append": $(() => [
1262
- h(d.$slots, "label.append")
1264
+ y(m.$slots, "label.append")
1263
1265
  ]),
1264
1266
  default: $(() => [
1265
1267
  je(N("input", ne({
1266
- "onUpdate:modelValue": y[0] || (y[0] = (w) => p.value = w),
1268
+ "onUpdate:modelValue": w[0] || (w[0] = (z) => f.value = z),
1267
1269
  ref_key: "inputRef",
1268
1270
  ref: i,
1269
1271
  class: "q-text-field__input",
1270
- type: o.type,
1271
- role: o.role,
1272
- required: o.required,
1273
- placeholder: o.placeholder,
1274
- readonly: o.readonly,
1275
- disabled: o.disabled,
1276
- maxlength: o.maxLength
1277
- }, d.$attrs), null, 16, jt), [
1278
- [Xe, p.value]
1272
+ type: l.type,
1273
+ role: l.role,
1274
+ required: l.required,
1275
+ placeholder: p.value,
1276
+ readonly: l.readonly,
1277
+ disabled: l.disabled,
1278
+ maxlength: l.maxLength
1279
+ }, m.$attrs), null, 16, jt), [
1280
+ [Xe, f.value]
1279
1281
  ])
1280
1282
  ]),
1281
1283
  _: 2
1282
1284
  }, [
1283
- d.$slots.prepend ? {
1285
+ m.$slots.prepend ? {
1284
1286
  name: "prepend",
1285
1287
  fn: $(() => [
1286
- h(d.$slots, "prepend")
1288
+ y(m.$slots, "prepend")
1287
1289
  ]),
1288
1290
  key: "0"
1289
1291
  } : void 0,
1290
- d.$slots.append ? {
1292
+ m.$slots.append ? {
1291
1293
  name: "append",
1292
1294
  fn: $(() => [
1293
- h(d.$slots, "append")
1295
+ y(m.$slots, "append")
1294
1296
  ]),
1295
1297
  key: "1"
1296
1298
  } : void 0,
1297
- d.$slots.extras ? {
1299
+ m.$slots.extras ? {
1298
1300
  name: "extras",
1299
1301
  fn: $(() => [
1300
- h(d.$slots, "extras")
1302
+ y(m.$slots, "extras")
1301
1303
  ]),
1302
1304
  key: "2"
1303
1305
  } : void 0
@@ -1336,32 +1338,32 @@ const Rt = {
1336
1338
  class: { default: void 0 }
1337
1339
  },
1338
1340
  emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
1339
- setup(n, { expose: t, emit: l }) {
1340
- const e = l, o = n, a = q(o.modelValue), c = q(!1), i = q(""), p = q(void 0), d = q(null), y = q(null), w = q(null);
1341
+ setup(n, { expose: t, emit: o }) {
1342
+ const e = o, l = n, a = q(l.modelValue), u = q(!1), i = q(""), f = q(void 0), p = q(null), m = q(null), w = q(null);
1341
1343
  Ee(Q);
1342
- const C = k(
1343
- () => o.clearable && !o.readonly && !o.disabled && !o.loading
1344
- ), F = k(() => {
1344
+ const z = g(
1345
+ () => l.clearable && !l.readonly && !l.disabled && !l.loading
1346
+ ), F = g(() => {
1345
1347
  var s;
1346
- return o.filterMode === "manual" || !E.value ? o.items : (s = o.items) == null ? void 0 : s.filter(
1347
- (g) => g[o.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1348
+ return l.filterMode === "manual" || !E.value ? l.items : (s = l.items) == null ? void 0 : s.filter(
1349
+ (_) => _[l.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1348
1350
  );
1349
- }), A = k(() => {
1351
+ }), A = g(() => {
1350
1352
  var s;
1351
- return (s = o.items) == null ? void 0 : s.find((g) => g[o.itemValue] === a.value);
1352
- }), R = k(() => {
1353
- const s = p.value;
1353
+ return (s = l.items) == null ? void 0 : s.find((_) => _[l.itemValue] === a.value);
1354
+ }), R = g(() => {
1355
+ const s = f.value;
1354
1356
  if (s !== void 0 && F.value[s])
1355
1357
  return F.value[s];
1356
- }), O = k(() => {
1357
- var g;
1358
- if (p.value === void 0)
1358
+ }), O = g(() => {
1359
+ var _;
1360
+ if (f.value === void 0)
1359
1361
  return;
1360
- const s = (g = y.value) == null ? void 0 : g.getItem(p.value);
1362
+ const s = (_ = m.value) == null ? void 0 : _.getItem(f.value);
1361
1363
  return s == null ? void 0 : s.id;
1362
- }), E = k(() => {
1364
+ }), E = g(() => {
1363
1365
  var s;
1364
- return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[o.itemLabel]);
1366
+ return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[l.itemLabel]);
1365
1367
  });
1366
1368
  function K(s) {
1367
1369
  a.value = s, Q(), e("update:modelValue", s);
@@ -1371,16 +1373,16 @@ const Rt = {
1371
1373
  }
1372
1374
  function Q() {
1373
1375
  var s;
1374
- i.value = ((s = A.value) == null ? void 0 : s[o.itemLabel]) || "";
1376
+ i.value = ((s = A.value) == null ? void 0 : s[l.itemLabel]) || "";
1375
1377
  }
1376
1378
  function M() {
1377
- c.value || o.readonly || o.disabled || (e("before-show"), c.value = !0);
1379
+ u.value || l.readonly || l.disabled || (e("before-show"), u.value = !0);
1378
1380
  }
1379
1381
  function U() {
1380
- c.value && (e("before-hide"), c.value = !1, p.value = void 0);
1382
+ u.value && (e("before-hide"), u.value = !1, f.value = void 0);
1381
1383
  }
1382
1384
  function X() {
1383
- K(void 0), p.value = void 0;
1385
+ K(void 0), f.value = void 0;
1384
1386
  }
1385
1387
  function W() {
1386
1388
  if (M(), A.value !== void 0) {
@@ -1389,53 +1391,53 @@ const Rt = {
1389
1391
  }
1390
1392
  }
1391
1393
  function b(s) {
1392
- var g, T;
1393
- if (!(!s.key || o.readonly || o.disabled))
1394
+ var _, T;
1395
+ if (!(!s.key || l.readonly || l.disabled))
1394
1396
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
1395
- c.value ? U() : X();
1397
+ u.value ? U() : X();
1396
1398
  else if (["ArrowDown", "ArrowUp"].includes(s.key))
1397
- c.value ? J(() => {
1398
- if (p.value === void 0)
1399
- f();
1399
+ u.value ? J(() => {
1400
+ if (f.value === void 0)
1401
+ c();
1400
1402
  else {
1401
1403
  const Y = s.key === "ArrowDown" ? "next" : "prev";
1402
- v(p.value, Y);
1404
+ h(f.value, Y);
1403
1405
  }
1404
1406
  }) : (M(), J(() => {
1405
- s.key === "ArrowDown" ? f() : r();
1407
+ s.key === "ArrowDown" ? c() : r();
1406
1408
  }));
1407
1409
  else if (s.key === "Enter") {
1408
1410
  if (R.value === void 0)
1409
1411
  return;
1410
- j(R.value[o.itemValue]);
1412
+ j(R.value[l.itemValue]);
1411
1413
  } else
1412
- s.key === "Home" ? p.value = (g = y.value) == null ? void 0 : g.getFirstFocusableItemIndex() : s.key === "End" ? p.value = (T = y.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
1414
+ s.key === "Home" ? f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex() : s.key === "End" ? f.value = (T = m.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
1413
1415
  }
1414
- function f() {
1415
- var s, g;
1416
+ function c() {
1417
+ var s, _;
1416
1418
  if (a.value !== void 0) {
1417
1419
  const T = F.value.findIndex(
1418
- (Y) => Y[o.itemValue] === a.value
1420
+ (Y) => Y[l.itemValue] === a.value
1419
1421
  );
1420
- T === -1 ? p.value = (s = y.value) == null ? void 0 : s.getFirstFocusableItemIndex() : p.value = T;
1422
+ T === -1 ? f.value = (s = m.value) == null ? void 0 : s.getFirstFocusableItemIndex() : f.value = T;
1421
1423
  } else
1422
- p.value = (g = y.value) == null ? void 0 : g.getFirstFocusableItemIndex();
1424
+ f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex();
1423
1425
  }
1424
1426
  function r() {
1425
1427
  var s;
1426
- p.value = (s = y.value) == null ? void 0 : s.getLastFocusableItemIndex();
1428
+ f.value = (s = m.value) == null ? void 0 : s.getLastFocusableItemIndex();
1427
1429
  }
1428
- function v(s, g) {
1430
+ function h(s, _) {
1429
1431
  var T;
1430
- p.value = (T = y.value) == null ? void 0 : T.getAdjacentItemIndex(s, g);
1432
+ f.value = (T = m.value) == null ? void 0 : T.getAdjacentItemIndex(s, _);
1431
1433
  }
1432
1434
  function I(s) {
1433
- var g, T, Y;
1434
- !((g = w.value) != null && g.contains(s.relatedTarget)) && !((Y = (T = d.value) == null ? void 0 : T.fieldRef) != null && Y.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
1435
+ var _, T, Y;
1436
+ !((_ = w.value) != null && _.contains(s.relatedTarget)) && !((Y = (T = p.value) == null ? void 0 : T.fieldRef) != null && Y.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
1435
1437
  }
1436
- function S() {
1437
- var s, g;
1438
- (g = (s = d.value) == null ? void 0 : s.inputRef) == null || g.focus();
1438
+ function L() {
1439
+ var s, _;
1440
+ (_ = (s = p.value) == null ? void 0 : s.inputRef) == null || _.focus();
1439
1441
  }
1440
1442
  function G() {
1441
1443
  e("show");
@@ -1445,88 +1447,88 @@ const Rt = {
1445
1447
  }
1446
1448
  function we(s) {
1447
1449
  var T;
1448
- const g = (T = y.value) == null ? void 0 : T.getItem(s);
1449
- g == null || g.scrollIntoView({ block: "nearest", inline: "start" });
1450
+ const _ = (T = m.value) == null ? void 0 : T.getItem(s);
1451
+ _ == null || _.scrollIntoView({ block: "nearest", inline: "start" });
1450
1452
  }
1451
- return z(
1452
- () => o.modelValue,
1453
+ return C(
1454
+ () => l.modelValue,
1453
1455
  (s) => {
1454
1456
  a.value = s, Q();
1455
1457
  }
1456
- ), z(p, (s) => {
1458
+ ), C(f, (s) => {
1457
1459
  s !== void 0 && we(s);
1458
- }), z(i, (s) => {
1459
- !s && C.value ? X() : c.value && o.selectionMode === "automatic" && J(f), e("update:inputValue", s);
1460
+ }), C(i, (s) => {
1461
+ !s && z.value ? X() : u.value && l.selectionMode === "automatic" && J(c), e("update:inputValue", s);
1460
1462
  }), t({
1461
- triggerEl: d
1462
- }), (s, g) => {
1463
+ triggerEl: p
1464
+ }), (s, _) => {
1463
1465
  var T, Y;
1464
- return u(), m(Z, null, [
1465
- te(_(Yt), {
1466
+ return d(), v(Z, null, [
1467
+ te(k(Yt), {
1466
1468
  modelValue: i.value,
1467
- "onUpdate:modelValue": g[0] || (g[0] = (se) => i.value = se),
1468
- id: o.id,
1469
- label: o.label,
1470
- required: o.required,
1469
+ "onUpdate:modelValue": _[0] || (_[0] = (se) => i.value = se),
1470
+ id: l.id,
1471
+ label: l.label,
1472
+ required: l.required,
1471
1473
  ref_key: "triggerEl",
1472
- ref: d,
1474
+ ref: p,
1473
1475
  role: "combobox",
1474
- placeholder: o.placeholder,
1475
- class: D(["q-combobox", o.class]),
1476
- readonly: o.readonly,
1477
- disabled: o.disabled,
1478
- "aria-expanded": c.value,
1476
+ placeholder: l.placeholder,
1477
+ class: D(["q-combobox", l.class]),
1478
+ readonly: l.readonly,
1479
+ disabled: l.disabled,
1480
+ "aria-expanded": u.value,
1479
1481
  "aria-haspopup": "listbox",
1480
1482
  "aria-autocomplete": "list",
1481
1483
  "aria-activedescendant": O.value,
1482
- size: o.size,
1484
+ size: l.size,
1483
1485
  onClick: W,
1484
1486
  onFocusout: I,
1485
1487
  onKeydown: ee(b, ["stop"])
1486
1488
  }, be({
1487
1489
  "label.prepend": $(() => [
1488
- h(s.$slots, "label.prepend")
1490
+ y(s.$slots, "label.prepend")
1489
1491
  ]),
1490
1492
  "label.append": $(() => [
1491
- h(s.$slots, "label.append")
1493
+ y(s.$slots, "label.append")
1492
1494
  ]),
1493
1495
  _: 2
1494
1496
  }, [
1495
1497
  s.$slots.prepend ? {
1496
1498
  name: "prepend",
1497
1499
  fn: $(() => [
1498
- h(s.$slots, "prepend")
1500
+ y(s.$slots, "prepend")
1499
1501
  ]),
1500
1502
  key: "0"
1501
1503
  } : void 0,
1502
- C.value && i.value || s.$slots.append ? {
1504
+ z.value && i.value || s.$slots.append ? {
1503
1505
  name: "append",
1504
1506
  fn: $(() => [
1505
- C.value && i.value ? (u(), B(_(P), ne({ key: 0 }, o.icons.clear, {
1507
+ z.value && i.value ? (d(), B(k(P), ne({ key: 0 }, l.icons.clear, {
1506
1508
  class: "q-combobox__clear",
1507
1509
  onClick: ee(X, ["stop", "prevent"])
1508
- }), null, 16)) : L("", !0),
1509
- h(s.$slots, "append")
1510
+ }), null, 16)) : S("", !0),
1511
+ y(s.$slots, "append")
1510
1512
  ]),
1511
1513
  key: "1"
1512
1514
  } : void 0,
1513
1515
  s.$slots.extras ? {
1514
1516
  name: "extras",
1515
1517
  fn: $(() => [
1516
- h(s.$slots, "extras")
1518
+ y(s.$slots, "extras")
1517
1519
  ]),
1518
1520
  key: "2"
1519
1521
  } : void 0
1520
1522
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1521
- (T = d.value) != null && T.fieldRef ? (u(), B(_(ce), {
1523
+ (T = p.value) != null && T.fieldRef ? (d(), B(k(ce), {
1522
1524
  key: 0,
1523
- "model-value": c.value,
1525
+ "model-value": u.value,
1524
1526
  spy: "",
1525
1527
  trigger: "manual",
1526
1528
  placement: "bottom",
1527
1529
  width: "anchor",
1528
1530
  offset: 4,
1529
- anchor: (Y = d.value) == null ? void 0 : Y.fieldRef,
1531
+ anchor: (Y = p.value) == null ? void 0 : Y.fieldRef,
1530
1532
  onEnter: G,
1531
1533
  onLeave: Ue
1532
1534
  }, {
@@ -1539,39 +1541,39 @@ const Rt = {
1539
1541
  class: "q-select__body",
1540
1542
  onFocusout: I
1541
1543
  }, [
1542
- h(s.$slots, "body.prepend"),
1543
- o.loading ? (u(), B(_(_e), {
1544
+ y(s.$slots, "body.prepend"),
1545
+ l.loading ? (d(), B(k(_e), {
1544
1546
  key: 0,
1545
1547
  class: "q-select__loader",
1546
1548
  size: 24
1547
- })) : F.value.length ? (u(), B(_(Me), {
1549
+ })) : F.value.length ? (d(), B(k(Me), {
1548
1550
  key: 1,
1549
1551
  ref_key: "listRef",
1550
- ref: y,
1552
+ ref: m,
1551
1553
  class: "q-select__items",
1552
1554
  modelValue: a.value,
1553
1555
  "onUpdate:modelValue": [
1554
- g[1] || (g[1] = (fe) => a.value = fe),
1556
+ _[1] || (_[1] = (fe) => a.value = fe),
1555
1557
  j
1556
1558
  ],
1557
- highlighted: (se = R.value) == null ? void 0 : se[o.itemValue],
1559
+ highlighted: (se = R.value) == null ? void 0 : se[l.itemValue],
1558
1560
  items: F.value,
1559
1561
  groups: s.groups,
1560
- "item-label": o.itemLabel,
1561
- "item-value": o.itemValue,
1562
- onMouseup: S
1562
+ "item-label": l.itemLabel,
1563
+ "item-value": l.itemValue,
1564
+ onMouseup: L
1563
1565
  }, {
1564
1566
  item: $(({ item: fe }) => [
1565
- h(s.$slots, "item", { item: fe })
1567
+ y(s.$slots, "item", { item: fe })
1566
1568
  ]),
1567
1569
  _: 3
1568
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", Pt, H(s.texts.noData), 1)),
1569
- h(s.$slots, "body.append")
1570
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), v("div", Pt, H(s.texts.noData), 1)),
1571
+ y(s.$slots, "body.append")
1570
1572
  ], 544)
1571
1573
  ];
1572
1574
  }),
1573
1575
  _: 3
1574
- }, 8, ["model-value", "anchor"])) : L("", !0)
1576
+ }, 8, ["model-value", "anchor"])) : S("", !0)
1575
1577
  ], 64);
1576
1578
  };
1577
1579
  }
@@ -1600,7 +1602,7 @@ const Rt = {
1600
1602
  QField: {
1601
1603
  size: "block"
1602
1604
  }
1603
- }), (l, e) => (u(), B(_(ke), {
1605
+ }), (o, e) => (d(), B(k(ke), {
1604
1606
  id: t.id,
1605
1607
  class: D(t.class),
1606
1608
  label: t.label,
@@ -1611,19 +1613,19 @@ const Rt = {
1611
1613
  }, {
1612
1614
  control: $(() => [
1613
1615
  N("div", tn, [
1614
- l.$slots.prepend || t.prependIcon ? (u(), m("div", nn, [
1615
- t.prependIcon ? (u(), m("span", ln, [
1616
- te(_(P), de(he(t.prependIcon)), null, 16)
1617
- ])) : L("", !0),
1618
- h(l.$slots, "prepend")
1619
- ])) : L("", !0),
1620
- h(l.$slots, "default"),
1621
- l.$slots.append || t.appendIcon ? (u(), m("div", on, [
1622
- t.appendIcon ? (u(), m("span", an, [
1623
- te(_(P), de(he(t.appendIcon)), null, 16)
1624
- ])) : L("", !0),
1625
- h(l.$slots, "append")
1626
- ])) : L("", !0)
1616
+ o.$slots.prepend || t.prependIcon ? (d(), v("div", nn, [
1617
+ t.prependIcon ? (d(), v("span", ln, [
1618
+ te(k(P), de(he(t.prependIcon)), null, 16)
1619
+ ])) : S("", !0),
1620
+ y(o.$slots, "prepend")
1621
+ ])) : S("", !0),
1622
+ y(o.$slots, "default"),
1623
+ o.$slots.append || t.appendIcon ? (d(), v("div", on, [
1624
+ t.appendIcon ? (d(), v("span", an, [
1625
+ te(k(P), de(he(t.appendIcon)), null, 16)
1626
+ ])) : S("", !0),
1627
+ y(o.$slots, "append")
1628
+ ])) : S("", !0)
1627
1629
  ])
1628
1630
  ]),
1629
1631
  _: 3
@@ -1636,7 +1638,7 @@ const Rt = {
1636
1638
  },
1637
1639
  setup(n) {
1638
1640
  const t = n;
1639
- return (l, e) => (u(), m("div", {
1641
+ return (o, e) => (d(), v("div", {
1640
1642
  class: D(["q-line-loader", t.class])
1641
1643
  }, null, 2));
1642
1644
  }
@@ -1663,7 +1665,7 @@ const Rt = {
1663
1665
  },
1664
1666
  setup(n) {
1665
1667
  const t = n;
1666
- return (l, e) => (u(), B(_(ce), {
1668
+ return (o, e) => (d(), B(k(ce), {
1667
1669
  "model-value": t.modelValue,
1668
1670
  class: "q-popover",
1669
1671
  trigger: "click",
@@ -1675,17 +1677,17 @@ const Rt = {
1675
1677
  spy: t.spy
1676
1678
  }, {
1677
1679
  default: $(() => [
1678
- t.title || l.$slots.header ? (u(), m("h3", dn, [
1680
+ t.title || o.$slots.header ? (d(), v("h3", dn, [
1679
1681
  re(H(t.title) + " ", 1),
1680
- h(l.$slots, "header")
1681
- ])) : L("", !0),
1682
- t.text || l.$slots.body ? (u(), m("div", un, [
1683
- t.html ? (u(), m("span", {
1682
+ y(o.$slots, "header")
1683
+ ])) : S("", !0),
1684
+ t.text || o.$slots.body ? (d(), v("div", un, [
1685
+ t.html ? (d(), v("span", {
1684
1686
  key: 0,
1685
1687
  innerHTML: t.text
1686
- }, null, 8, cn)) : (u(), m("span", fn, H(t.text), 1)),
1687
- h(l.$slots, "body")
1688
- ])) : L("", !0)
1688
+ }, null, 8, cn)) : (d(), v("span", fn, H(t.text), 1)),
1689
+ y(o.$slots, "body")
1690
+ ])) : S("", !0)
1689
1691
  ]),
1690
1692
  _: 3
1691
1693
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
@@ -1727,84 +1729,84 @@ const Rt = {
1727
1729
  },
1728
1730
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1729
1731
  setup(n, { emit: t }) {
1730
- const l = t, e = n, o = q(e.modelValue), a = q(!1), c = q(""), i = q(null), p = q(null), d = q(null), y = k(
1732
+ const o = t, e = n, l = q(e.modelValue), a = q(!1), u = q(""), i = q(null), f = q(null), p = q(null), m = g(
1731
1733
  () => {
1732
- var f;
1733
- return (f = e.items) == null ? void 0 : f.find((r) => r[e.itemValue] === o.value);
1734
+ var c;
1735
+ return (c = e.items) == null ? void 0 : c.find((r) => r[e.itemValue] === l.value);
1734
1736
  }
1735
- ), w = k(
1736
- () => y.value ? y.value[e.itemLabel] : ""
1737
- ), C = k(
1737
+ ), w = g(
1738
+ () => m.value ? m.value[e.itemLabel] : ""
1739
+ ), z = g(
1738
1740
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1739
1741
  );
1740
- function F(f) {
1741
- o.value = f, l("update:modelValue", f), K();
1742
+ function F(c) {
1743
+ l.value = c, o("update:modelValue", c), K();
1742
1744
  }
1743
1745
  function A() {
1744
- C.value && F(void 0);
1746
+ z.value && F(void 0);
1745
1747
  }
1746
1748
  function R() {
1747
1749
  e.readonly || e.disabled || (a.value ? K() : E());
1748
1750
  }
1749
- function O(f) {
1750
- var r, v, I;
1751
- !((r = d.value) != null && r.contains(f.relatedTarget)) && !((I = (v = i.value) == null ? void 0 : v.fieldRef) != null && I.contains(f.relatedTarget)) && K();
1751
+ function O(c) {
1752
+ var r, h, I;
1753
+ !((r = p.value) != null && r.contains(c.relatedTarget)) && !((I = (h = i.value) == null ? void 0 : h.fieldRef) != null && I.contains(c.relatedTarget)) && K();
1752
1754
  }
1753
1755
  function E() {
1754
- a.value || (l("before-show"), a.value = !0);
1756
+ a.value || (o("before-show"), a.value = !0);
1755
1757
  }
1756
1758
  function K() {
1757
- a.value && (l("before-hide"), a.value = !1);
1759
+ a.value && (o("before-hide"), a.value = !1);
1758
1760
  }
1759
1761
  let j;
1760
- function Q(f) {
1761
- if (!(!f.key || e.readonly || e.disabled)) {
1762
- if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), ["Enter", " "].includes(f.key) && (a.value = !0), ["Escape", "Tab"].includes(f.key) && (a.value ? a.value = !1 : e.clearable && f.key === "Escape" && A()), f.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(f.key)) {
1763
- c.value += f.key.toLowerCase();
1762
+ function Q(c) {
1763
+ if (!(!c.key || e.readonly || e.disabled)) {
1764
+ if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (a.value = !0), ["Escape", "Tab"].includes(c.key) && (a.value ? a.value = !1 : e.clearable && c.key === "Escape" && A()), c.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(c.key)) {
1765
+ u.value += c.key.toLowerCase();
1764
1766
  for (let r = 0; r < e.items.length; r++)
1765
- if (e.items[r][e.itemLabel].toLowerCase().startsWith(c.value)) {
1767
+ if (e.items[r][e.itemLabel].toLowerCase().startsWith(u.value)) {
1766
1768
  b(r);
1767
1769
  break;
1768
1770
  }
1769
1771
  }
1770
1772
  j = window.setTimeout(function() {
1771
- c.value = "";
1773
+ u.value = "";
1772
1774
  }, 500);
1773
1775
  }
1774
1776
  }
1775
1777
  function M() {
1776
- var f;
1777
- e.loading ? (f = d.value) == null || f.focus() : W(), l("show");
1778
+ var c;
1779
+ e.loading ? (c = p.value) == null || c.focus() : W(), o("show");
1778
1780
  }
1779
1781
  function U() {
1780
- X(), l("hide");
1782
+ X(), o("hide");
1781
1783
  }
1782
1784
  function X() {
1783
- var f, r;
1784
- (r = (f = i.value) == null ? void 0 : f.fieldRef) == null || r.focus();
1785
+ var c, r;
1786
+ (r = (c = i.value) == null ? void 0 : c.fieldRef) == null || r.focus();
1785
1787
  }
1786
1788
  function W() {
1787
- var f;
1788
- (f = p.value) == null || f.$el.focus();
1789
+ var c;
1790
+ (c = f.value) == null || c.$el.focus();
1789
1791
  }
1790
- function b(f) {
1792
+ function b(c) {
1791
1793
  var r;
1792
- (r = p.value) == null || r.focusItem(f);
1794
+ (r = f.value) == null || r.focusItem(c);
1793
1795
  }
1794
- return z(
1796
+ return C(
1795
1797
  () => e.modelValue,
1796
- (f) => {
1797
- o.value = f;
1798
+ (c) => {
1799
+ l.value = c;
1798
1800
  }
1799
- ), z(
1801
+ ), C(
1800
1802
  () => e.loading,
1801
- (f) => {
1802
- !f && a.value && J(W);
1803
+ (c) => {
1804
+ !c && a.value && J(W);
1803
1805
  }
1804
- ), (f, r) => {
1805
- var v, I, S;
1806
- return u(), m(Z, null, [
1807
- te(_(ke), {
1806
+ ), (c, r) => {
1807
+ var h, I, L;
1808
+ return d(), v(Z, null, [
1809
+ te(k(ke), {
1808
1810
  id: e.id,
1809
1811
  label: e.label,
1810
1812
  required: e.required,
@@ -1830,29 +1832,29 @@ const Rt = {
1830
1832
  onKeydown: ee(Q, ["stop"])
1831
1833
  }, be({
1832
1834
  append: $(() => [
1833
- C.value && o.value ? (u(), B(_(P), ne({ key: 0 }, e.icons.clear, {
1835
+ z.value && l.value ? (d(), B(k(P), ne({ key: 0 }, e.icons.clear, {
1834
1836
  class: "q-select__clear",
1835
1837
  onClick: ee(A, ["stop", "prevent"])
1836
- }), null, 16)) : L("", !0),
1837
- !e.readonly && !e.disabled ? (u(), B(_(P), ne({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : L("", !0)
1838
+ }), null, 16)) : S("", !0),
1839
+ e.readonly ? S("", !0) : (d(), B(k(P), ne({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1838
1840
  ]),
1839
1841
  default: $(() => [
1840
- o.value ? (u(), m("span", mn, H(w.value), 1)) : (u(), m("span", vn, H(f.texts.placeholder), 1))
1842
+ l.value ? (d(), v("span", mn, H(w.value), 1)) : !e.readonly && !e.disabled ? (d(), v("span", vn, H(c.texts.placeholder), 1)) : S("", !0)
1841
1843
  ]),
1842
1844
  _: 2
1843
1845
  }, [
1844
- (v = y.value) != null && v.icon ? {
1846
+ (h = m.value) != null && h.icon ? {
1845
1847
  name: "prepend",
1846
1848
  fn: $(() => {
1847
1849
  var G;
1848
1850
  return [
1849
- te(_(P), de(he((G = y.value) == null ? void 0 : G.icon)), null, 16)
1851
+ te(k(P), de(he((G = m.value) == null ? void 0 : G.icon)), null, 16)
1850
1852
  ];
1851
1853
  }),
1852
1854
  key: "0"
1853
1855
  } : void 0
1854
1856
  ]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
1855
- (I = i.value) != null && I.fieldRef ? (u(), B(_(ce), {
1857
+ (I = i.value) != null && I.fieldRef ? (d(), B(k(ce), {
1856
1858
  key: 0,
1857
1859
  "model-value": a.value,
1858
1860
  spy: "",
@@ -1860,49 +1862,49 @@ const Rt = {
1860
1862
  placement: "bottom",
1861
1863
  width: "anchor",
1862
1864
  offset: 2,
1863
- anchor: (S = i.value) == null ? void 0 : S.fieldRef,
1865
+ anchor: (L = i.value) == null ? void 0 : L.fieldRef,
1864
1866
  onEnter: M,
1865
1867
  onLeave: U
1866
1868
  }, {
1867
1869
  default: $(() => [
1868
1870
  N("div", {
1869
1871
  ref_key: "contentRef",
1870
- ref: d,
1872
+ ref: p,
1871
1873
  class: "q-select__body",
1872
1874
  tabindex: "-1",
1873
1875
  onFocusout: O,
1874
1876
  onKeydown: ee(Q, ["stop"])
1875
1877
  }, [
1876
- h(f.$slots, "body.prepend"),
1877
- e.loading ? (u(), B(_(_e), {
1878
+ y(c.$slots, "body.prepend"),
1879
+ e.loading ? (d(), B(k(_e), {
1878
1880
  key: 0,
1879
1881
  class: "q-select__loader",
1880
1882
  size: 24
1881
- })) : (u(), B(_(Me), {
1883
+ })) : (d(), B(k(Me), {
1882
1884
  key: 1,
1883
1885
  ref_key: "listRef",
1884
- ref: p,
1886
+ ref: f,
1885
1887
  class: "q-select__items",
1886
- modelValue: o.value,
1888
+ modelValue: l.value,
1887
1889
  "onUpdate:modelValue": [
1888
- r[0] || (r[0] = (G) => o.value = G),
1890
+ r[0] || (r[0] = (G) => l.value = G),
1889
1891
  F
1890
1892
  ],
1891
1893
  items: e.items,
1892
- groups: f.groups,
1894
+ groups: c.groups,
1893
1895
  "item-label": e.itemLabel,
1894
1896
  "item-value": e.itemValue
1895
1897
  }, {
1896
1898
  item: $(({ item: G }) => [
1897
- h(f.$slots, "item", { item: G })
1899
+ y(c.$slots, "item", { item: G })
1898
1900
  ]),
1899
1901
  _: 3
1900
1902
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
1901
- h(f.$slots, "body.append")
1903
+ y(c.$slots, "body.append")
1902
1904
  ], 544)
1903
1905
  ]),
1904
1906
  _: 3
1905
- }, 8, ["model-value", "anchor"])) : L("", !0)
1907
+ }, 8, ["model-value", "anchor"])) : S("", !0)
1906
1908
  ], 64);
1907
1909
  };
1908
1910
  }
@@ -1924,7 +1926,7 @@ const Rt = {
1924
1926
  },
1925
1927
  setup(n) {
1926
1928
  const t = n;
1927
- return (l, e) => (u(), B(_(ce), {
1929
+ return (o, e) => (d(), B(k(ce), {
1928
1930
  "model-value": t.modelValue,
1929
1931
  anchor: t.anchor,
1930
1932
  appearance: t.appearance,
@@ -1937,10 +1939,10 @@ const Rt = {
1937
1939
  trigger: t.trigger
1938
1940
  }, {
1939
1941
  default: $(() => [
1940
- t.html ? (u(), m("span", {
1942
+ t.html ? (d(), v("span", {
1941
1943
  key: 0,
1942
1944
  innerHTML: t.text
1943
- }, null, 8, gn)) : (u(), m("span", _n, H(t.text), 1))
1945
+ }, null, 8, gn)) : (d(), v("span", _n, H(t.text), 1))
1944
1946
  ]),
1945
1947
  _: 1
1946
1948
  }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"]));