@quidgest/ui 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/index.d.ts +1590 -0
  2. package/dist/ui.esm.js +895 -1628
  3. package/dist/ui.esm.js.map +1 -1
  4. package/dist/ui.js +4 -4
  5. package/dist/ui.js.map +1 -1
  6. package/dist/ui.min.js +172 -362
  7. package/dist/ui.min.js.map +1 -1
  8. package/{lib/styles → dist}/ui.scss +1 -1
  9. package/package.json +23 -24
  10. package/lib/components/QButton/QButton.vue.d.ts +0 -128
  11. package/lib/components/QButton/QButton.vue.d.ts.map +0 -1
  12. package/lib/components/QButton/index.d.ts +0 -3
  13. package/lib/components/QButton/index.d.ts.map +0 -1
  14. package/lib/components/QButtonGroup/QButtonGroup.vue.d.ts +0 -36
  15. package/lib/components/QButtonGroup/QButtonGroup.vue.d.ts.map +0 -1
  16. package/lib/components/QButtonGroup/index.d.ts +0 -3
  17. package/lib/components/QButtonGroup/index.d.ts.map +0 -1
  18. package/lib/components/QButtonToggle/QButtonToggle.vue.d.ts +0 -57
  19. package/lib/components/QButtonToggle/QButtonToggle.vue.d.ts.map +0 -1
  20. package/lib/components/QButtonToggle/index.d.ts +0 -3
  21. package/lib/components/QButtonToggle/index.d.ts.map +0 -1
  22. package/lib/components/QIcon/InlineSvg.d.ts +0 -72
  23. package/lib/components/QIcon/InlineSvg.d.ts.map +0 -1
  24. package/lib/components/QIcon/QIcon.vue.d.ts +0 -46
  25. package/lib/components/QIcon/QIcon.vue.d.ts.map +0 -1
  26. package/lib/components/QIcon/QIconFont.vue.d.ts +0 -59
  27. package/lib/components/QIcon/QIconFont.vue.d.ts.map +0 -1
  28. package/lib/components/QIcon/QIconImg.vue.d.ts +0 -19
  29. package/lib/components/QIcon/QIconImg.vue.d.ts.map +0 -1
  30. package/lib/components/QIcon/QIconSvg.vue.d.ts +0 -38
  31. package/lib/components/QIcon/QIconSvg.vue.d.ts.map +0 -1
  32. package/lib/components/QIcon/index.d.ts +0 -8
  33. package/lib/components/QIcon/index.d.ts.map +0 -1
  34. package/lib/components/QInput/QInput.vue.d.ts +0 -43
  35. package/lib/components/QInput/QInput.vue.d.ts.map +0 -1
  36. package/lib/components/QInput/index.d.ts +0 -3
  37. package/lib/components/QInput/index.d.ts.map +0 -1
  38. package/lib/components/QLineLoader/QLineLoader.vue.d.ts +0 -3
  39. package/lib/components/QLineLoader/QLineLoader.vue.d.ts.map +0 -1
  40. package/lib/components/QLineLoader/index.d.ts +0 -3
  41. package/lib/components/QLineLoader/index.d.ts.map +0 -1
  42. package/lib/components/QList/QList.vue.d.ts +0 -66
  43. package/lib/components/QList/QList.vue.d.ts.map +0 -1
  44. package/lib/components/QList/QListItem.vue.d.ts +0 -80
  45. package/lib/components/QList/QListItem.vue.d.ts.map +0 -1
  46. package/lib/components/QList/QListItemGroup.vue.d.ts +0 -54
  47. package/lib/components/QList/QListItemGroup.vue.d.ts.map +0 -1
  48. package/lib/components/QList/index.d.ts +0 -7
  49. package/lib/components/QList/index.d.ts.map +0 -1
  50. package/lib/components/QOverlay/QOverlay.vue.d.ts +0 -143
  51. package/lib/components/QOverlay/QOverlay.vue.d.ts.map +0 -1
  52. package/lib/components/QOverlay/index.d.ts +0 -3
  53. package/lib/components/QOverlay/index.d.ts.map +0 -1
  54. package/lib/components/QPopover/QPopover.vue.d.ts +0 -97
  55. package/lib/components/QPopover/QPopover.vue.d.ts.map +0 -1
  56. package/lib/components/QPopover/index.d.ts +0 -3
  57. package/lib/components/QPopover/index.d.ts.map +0 -1
  58. package/lib/components/QSelect/QSelect.vue.d.ts +0 -135
  59. package/lib/components/QSelect/QSelect.vue.d.ts.map +0 -1
  60. package/lib/components/QSelect/index.d.ts +0 -3
  61. package/lib/components/QSelect/index.d.ts.map +0 -1
  62. package/lib/components/QSpinnerLoader/QSpinnerLoader.vue.d.ts +0 -15
  63. package/lib/components/QSpinnerLoader/QSpinnerLoader.vue.d.ts.map +0 -1
  64. package/lib/components/QSpinnerLoader/index.d.ts +0 -3
  65. package/lib/components/QSpinnerLoader/index.d.ts.map +0 -1
  66. package/lib/components/QTooltip/QTooltip.vue.d.ts +0 -99
  67. package/lib/components/QTooltip/QTooltip.vue.d.ts.map +0 -1
  68. package/lib/components/QTooltip/index.d.ts +0 -3
  69. package/lib/components/QTooltip/index.d.ts.map +0 -1
  70. package/lib/components/index.d.ts +0 -13
  71. package/lib/components/index.d.ts.map +0 -1
  72. package/lib/composables/defaults.d.ts +0 -7
  73. package/lib/composables/defaults.d.ts.map +0 -1
  74. package/lib/composables/index.d.ts +0 -4
  75. package/lib/composables/index.d.ts.map +0 -1
  76. package/lib/composables/overlay.d.ts +0 -14
  77. package/lib/composables/overlay.d.ts.map +0 -1
  78. package/lib/composables/theme.d.ts +0 -26
  79. package/lib/composables/theme.d.ts.map +0 -1
  80. package/lib/composables/uid.d.ts +0 -2
  81. package/lib/composables/uid.d.ts.map +0 -1
  82. package/lib/directives/click-outside/index.d.ts +0 -7
  83. package/lib/directives/click-outside/index.d.ts.map +0 -1
  84. package/lib/directives/index.d.ts +0 -2
  85. package/lib/directives/index.d.ts.map +0 -1
  86. package/lib/framework.d.ts +0 -9
  87. package/lib/framework.d.ts.map +0 -1
  88. package/lib/index.d.ts +0 -5
  89. package/lib/index.d.ts.map +0 -1
  90. package/lib/templates/index.d.ts +0 -2
  91. package/lib/templates/index.d.ts.map +0 -1
  92. package/lib/templates/theme.d.ts +0 -4
  93. package/lib/templates/theme.d.ts.map +0 -1
  94. package/lib/types/primitive.d.ts +0 -2
  95. package/lib/types/primitive.d.ts.map +0 -1
  96. package/lib/utils/color.d.ts +0 -74
  97. package/lib/utils/color.d.ts.map +0 -1
  98. package/lib/utils/defineComponent.d.ts +0 -4
  99. package/lib/utils/defineComponent.d.ts.map +0 -1
  100. package/lib/utils/getCurrentInstance.d.ts +0 -2
  101. package/lib/utils/getCurrentInstance.d.ts.map +0 -1
  102. package/lib/utils/getElement.d.ts +0 -7
  103. package/lib/utils/getElement.d.ts.map +0 -1
  104. /package/{lib/styles → dist}/ui.css +0 -0
  105. /package/{lib/styles → dist}/ui.min.css +0 -0
package/dist/ui.esm.js CHANGED
@@ -1,6 +1,257 @@
1
- import { defineComponent as O, computed as $, openBlock as c, createElementBlock as g, normalizeStyle as fe, createElementVNode as me, normalizeClass as M, withModifiers as oe, createVNode as ae, unref as k, createCommentVNode as S, Fragment as N, createTextVNode as se, toDisplayString as q, renderSlot as I, getCurrentInstance as jt, provide as yn, inject as At, toRef as Ae, ref as B, watch as z, createBlock as x, withCtx as L, renderList as Be, resolveDynamicComponent as Ct, h as Ze, normalizeProps as It, mergeProps as le, reactive as mn, onBeforeUnmount as vn, onMounted as _n, Teleport as $n, Transition as wn, nextTick as et, resolveDirective as Tn, createSlots as Sn, guardReactiveProps as On, withDirectives as kn } from "vue";
2
- const xn = /* @__PURE__ */ me("svg", { viewBox: "25 25 50 50" }, [
3
- /* @__PURE__ */ me("circle", {
1
+ import { provide as qe, inject as De, getCurrentInstance as pe, ref as D, watch as z, defineComponent as _, computed as y, openBlock as r, createElementBlock as f, normalizeStyle as W, createElementVNode as X, unref as g, normalizeClass as T, withModifiers as H, createVNode as N, createCommentVNode as b, Fragment as Q, createTextVNode as U, toDisplayString as C, renderSlot as L, toRef as j, createBlock as k, withCtx as E, renderList as P, resolveDynamicComponent as me, h as se, mergeProps as K, normalizeProps as he, reactive as Ee, onBeforeUnmount as Ie, onMounted as Te, Teleport as Ce, Transition as Ve, nextTick as le, createSlots as ze, guardReactiveProps as Qe, withDirectives as Ae } from "vue";
2
+ function re(t) {
3
+ return t !== null && typeof t == "object" && !Array.isArray(t);
4
+ }
5
+ function ye(t = {}, n = {}) {
6
+ const e = {};
7
+ for (const o in t)
8
+ e[o] = t[o];
9
+ for (const o in n) {
10
+ const a = t[o], s = n[o];
11
+ if (re(a) && re(s)) {
12
+ e[o] = ye(
13
+ a,
14
+ s
15
+ );
16
+ continue;
17
+ }
18
+ e[o] = s;
19
+ }
20
+ return e;
21
+ }
22
+ const te = "q-defaults";
23
+ function Oe() {
24
+ const t = pe();
25
+ if (!t)
26
+ throw new Error("[framework] useDefaults must be called from inside a setup function");
27
+ const n = t.type.name ?? t.type.__name;
28
+ if (!n)
29
+ throw new Error("[framework] Could not determine component name");
30
+ return ve()[n] || {};
31
+ }
32
+ function Fe(t) {
33
+ const n = structuredClone(ve()), e = ye(n, t);
34
+ qe(te, e);
35
+ }
36
+ function ve() {
37
+ return De(te, void 0) || {};
38
+ }
39
+ const ie = {
40
+ primary: "#00a1f8",
41
+ primaryLight: "#e5f6ff",
42
+ primaryDark: "#0079ba",
43
+ secondary: "#11294d",
44
+ secondaryLight: "#707f94",
45
+ secondaryDark: "#040a13",
46
+ highlight: "#DF640A",
47
+ background: "#fff",
48
+ container: "#fff",
49
+ info: "#17a2b8",
50
+ infoLight: "#bceff7",
51
+ infoDark: "#11798a",
52
+ success: "#28a745",
53
+ successLight: "#c2f0cd",
54
+ successDark: "#1e7d34",
55
+ warning: "#ffa900",
56
+ warningLight: "#ffeabf",
57
+ warningDark: "#bf7f00",
58
+ danger: "#b71c1c",
59
+ dangerLight: "#f5bebe",
60
+ dangerDark: "#891515",
61
+ onBackground: "#1e2436",
62
+ onPrimary: "#fff",
63
+ onSecondary: "#fff",
64
+ onHighlight: "#fff",
65
+ onSuccess: "#fff",
66
+ onWarning: "#fff",
67
+ onDanger: "#fff",
68
+ onInfo: "#fff"
69
+ }, Me = {
70
+ primary: "#018BD2",
71
+ primaryLight: "#cce7f6",
72
+ primaryDark: "#006fac",
73
+ secondary: "#11294d",
74
+ secondaryLight: "#707f94",
75
+ secondaryDark: "#040a13",
76
+ highlight: "#FFAD54",
77
+ background: "#1e2436",
78
+ container: "#21323d",
79
+ info: "#3DB6D1",
80
+ infoLight: "#5aa2bc",
81
+ infoDark: "#0c616a",
82
+ success: "#00C781",
83
+ successLight: "#6bae78",
84
+ successDark: "#0f3b16",
85
+ warning: "#FFD860",
86
+ warningLight: "#ffd07a",
87
+ warningDark: "#cc8000",
88
+ danger: "#FC4B6C",
89
+ dangerLight: "#FF7A88",
90
+ dangerDark: "#B21929",
91
+ onBackground: "#fff",
92
+ onPrimary: "#fff",
93
+ onSecondary: "#fff",
94
+ onHighlight: "#fff",
95
+ onSuccess: "#fff",
96
+ onWarning: "#fff",
97
+ onDanger: "#fff",
98
+ onInfo: "#fff"
99
+ };
100
+ function ge(t) {
101
+ if (!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t))
102
+ throw new Error("Invalid color format");
103
+ t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
104
+ const n = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), o = parseInt(t.slice(5, 7), 16);
105
+ return { r: n, g: e, b: o };
106
+ }
107
+ function Re(t, n) {
108
+ if (n < 0 || n > 100)
109
+ throw new Error("Amount must be in the range [0, 100]");
110
+ if (n === 0)
111
+ return t;
112
+ const e = be(t), o = n / 100;
113
+ return e.l = e.l + o * (100 - e.l), _e(e);
114
+ }
115
+ function He(t, n) {
116
+ if (n < 0 || n > 100)
117
+ throw new Error("Amount must be in the range [0, 100]");
118
+ if (n === 0)
119
+ return t;
120
+ const e = be(t), o = n / 100;
121
+ return e.l = e.l - o * e.l, _e(e);
122
+ }
123
+ function ce(t) {
124
+ const n = t.r.toString(16).padStart(2, "0"), e = t.g.toString(16).padStart(2, "0"), o = t.b.toString(16).padStart(2, "0");
125
+ return `#${n}${e}${o}`;
126
+ }
127
+ function be(t) {
128
+ const n = t.r / 255, e = t.g / 255, o = t.b / 255, a = Math.max(n, e, o), s = Math.min(n, e, o);
129
+ let l = 0, c;
130
+ const i = (a + s) / 2;
131
+ if (a === s)
132
+ l = c = 0;
133
+ else {
134
+ const p = a - s;
135
+ switch (c = i > 0.5 ? p / (2 - a - s) : p / (a + s), a) {
136
+ case n:
137
+ l = (e - o) / p + (e < o ? 6 : 0);
138
+ break;
139
+ case e:
140
+ l = (o - n) / p + 2;
141
+ break;
142
+ case o:
143
+ l = (n - e) / p + 4;
144
+ break;
145
+ }
146
+ l /= 6;
147
+ }
148
+ return {
149
+ h: Math.round(l * 360),
150
+ s: Math.round(c * 100),
151
+ l: Math.round(i * 100)
152
+ };
153
+ }
154
+ function _e(t) {
155
+ const n = t.h / 360, e = t.s / 100, o = t.l / 100;
156
+ let a, s, l;
157
+ if (e === 0)
158
+ a = s = l = o;
159
+ else {
160
+ const c = o < 0.5 ? o * (1 + e) : o + e - o * e, i = 2 * o - c;
161
+ a = J(i, c, n + 1 / 3), s = J(i, c, n), l = J(i, c, n - 1 / 3);
162
+ }
163
+ return {
164
+ r: Math.round(a * 255),
165
+ g: Math.round(s * 255),
166
+ b: Math.round(l * 255)
167
+ };
168
+ }
169
+ function J(t, n, e) {
170
+ return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? t + (n - t) * 6 * e : e < 1 / 2 ? n : e < 2 / 3 ? t + (n - t) * (2 / 3 - e) * 6 : t;
171
+ }
172
+ const ee = "q-theme";
173
+ function Ne(t, n) {
174
+ let e = null;
175
+ if (n)
176
+ for (const o of n.themes) {
177
+ const a = o.mode === "light" ? ie : Me;
178
+ if (o.colors) {
179
+ let s;
180
+ for (s in o.colors) {
181
+ const l = o.colors[s];
182
+ if (l && !s.startsWith("on") && !s.endsWith("Light") && !s.endsWith("Dark")) {
183
+ const c = ge(l), i = `${s}Light`, p = `${s}Dark`;
184
+ i in o.colors || (o.colors[i] = ce(Re(c, 85))), p in o.colors || (o.colors[p] = ce(He(c, 25)));
185
+ }
186
+ }
187
+ }
188
+ o.colors = Ue(a, o.colors), o.name === n.defaultTheme && (e = o);
189
+ }
190
+ else {
191
+ const o = "default";
192
+ e = {
193
+ name: o,
194
+ mode: "light",
195
+ colors: ie
196
+ }, n = {
197
+ defaultTheme: o,
198
+ themes: [e]
199
+ };
200
+ }
201
+ if (e) {
202
+ const o = D({
203
+ activeTheme: e.name,
204
+ themes: n.themes
205
+ });
206
+ z(
207
+ () => o.value.activeTheme,
208
+ (a) => {
209
+ const s = o.value.themes.find((l) => l.name === a);
210
+ s && Ke(s.colors);
211
+ },
212
+ { immediate: !0 }
213
+ ), t.provide(ee, o);
214
+ }
215
+ }
216
+ function Ue(t, n = {}) {
217
+ return { ...t, ...n };
218
+ }
219
+ function Ke(t) {
220
+ let n = document.getElementById(
221
+ ee
222
+ );
223
+ n || (n = document.createElement("style"), n.type = "text/css", n.id = ee, document.head.appendChild(n));
224
+ let e = `:root {
225
+ `, o;
226
+ for (o in t) {
227
+ const a = t[o];
228
+ if (a) {
229
+ e += ` ${ue(o)}: ${a};
230
+ `;
231
+ const s = ge(a);
232
+ e += ` ${ue(o)}-rgb: ${s.r} ${s.g} ${s.b};
233
+ `;
234
+ }
235
+ }
236
+ e += "}", n.textContent = e;
237
+ }
238
+ function ue(t) {
239
+ return t ? `--q-theme-${t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
240
+ }
241
+ function Tt(t = {}) {
242
+ return { install: (e) => {
243
+ const o = t.components || {};
244
+ for (const l in o)
245
+ e.component(l, o[l]);
246
+ const a = t.directives || {};
247
+ for (const l in a)
248
+ e.directive(l, a[l]);
249
+ const s = t.defaults || {};
250
+ e.provide(te, s), Ne(e, t.themes);
251
+ } };
252
+ }
253
+ const We = /* @__PURE__ */ X("svg", { viewBox: "25 25 50 50" }, [
254
+ /* @__PURE__ */ X("circle", {
4
255
  class: "path",
5
256
  cx: "50",
6
257
  cy: "50",
@@ -10,26 +261,53 @@ const xn = /* @__PURE__ */ me("svg", { viewBox: "25 25 50 50" }, [
10
261
  "stroke-width": "5",
11
262
  "stroke-miterlimit": "10"
12
263
  })
13
- ], -1), jn = [
14
- xn
15
- ], Ve = /* @__PURE__ */ O({
264
+ ], -1), Ge = [
265
+ We
266
+ ], ne = /* @__PURE__ */ _({
16
267
  __name: "QSpinnerLoader",
17
268
  props: {
18
269
  size: { default: 48 }
19
270
  },
20
- setup(e) {
21
- const t = e, n = $(() => ({
22
- "font-size": t.size !== 48 ? `${t.size}px` : void 0
271
+ setup(t) {
272
+ const n = t, e = y(() => ({
273
+ "font-size": n.size !== 48 ? `${n.size}px` : void 0
23
274
  }));
24
- return (r, o) => (c(), g("div", {
275
+ return (o, a) => (r(), f("div", {
25
276
  class: "q-spinner-loader",
26
- style: fe(n.value)
27
- }, jn, 4));
277
+ style: W(e.value)
278
+ }, Ge, 4));
28
279
  }
29
- }), An = ["disabled", "onClick"], Cn = {
280
+ });
281
+ function Ye(t) {
282
+ return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
283
+ }
284
+ function Xe(t, n) {
285
+ var e;
286
+ return typeof ((e = t.props) == null ? void 0 : e[n]) < "u";
287
+ }
288
+ function A(t) {
289
+ const n = t.setup;
290
+ return n && (t.setup = (e, o) => {
291
+ const a = Oe();
292
+ if (Ye(a))
293
+ return n(e, o);
294
+ const s = pe();
295
+ if (s === null)
296
+ return n(e, o);
297
+ const l = new Proxy(e, {
298
+ get(c, i) {
299
+ const p = Reflect.get(c, i), w = g(a[i]);
300
+ return i === "class" || i === "style" ? [w, p].filter((m) => m != null) : typeof i == "string" && !Xe(s.vnode, i) ? w ?? p : p;
301
+ }
302
+ });
303
+ return n(l, o);
304
+ }), t;
305
+ }
306
+ A(ne);
307
+ const Ze = ["disabled", "onClick"], je = {
30
308
  key: 0,
31
309
  class: "q-btn__spinner"
32
- }, In = { class: "q-btn__content" }, Et = /* @__PURE__ */ O({
310
+ }, Je = { class: "q-btn__content" }, Pe = /* @__PURE__ */ _({
33
311
  __name: "QButton",
34
312
  props: {
35
313
  active: { type: Boolean },
@@ -44,827 +322,47 @@ const xn = /* @__PURE__ */ me("svg", { viewBox: "25 25 50 50" }, [
44
322
  size: { default: "regular" }
45
323
  },
46
324
  emits: ["click"],
47
- setup(e, { emit: t }) {
48
- const n = e, r = $(() => n.disabled || n.loading);
49
- function o(i) {
50
- r.value || t("click", i);
325
+ setup(t, { emit: n }) {
326
+ const e = t, o = y(() => e.disabled || e.loading);
327
+ function a(l) {
328
+ o.value || n("click", l);
51
329
  }
52
- const a = $(() => {
53
- const i = $(() => n.bStyle ? `q-btn--${n.bStyle}` : void 0), s = $(() => n.size !== "regular" ? `q-btn--${n.size}` : void 0);
330
+ const s = y(() => {
331
+ const l = y(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), c = y(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
54
332
  return [
55
333
  "q-btn",
56
- i.value,
57
- s.value,
334
+ l.value,
335
+ c.value,
58
336
  {
59
- "q-btn--active": n.active,
60
- "q-btn--borderless": n.borderless,
61
- "q-btn--elevated": n.elevated,
62
- "q-btn--block": n.block,
63
- "q-btn--loading": n.loading
337
+ "q-btn--active": e.active,
338
+ "q-btn--borderless": e.borderless,
339
+ "q-btn--elevated": e.elevated,
340
+ "q-btn--block": e.block,
341
+ "q-btn--loading": e.loading
64
342
  }
65
343
  ];
66
344
  });
67
- return (i, s) => (c(), g("button", {
345
+ return (l, c) => (r(), f("button", {
68
346
  type: "button",
69
- class: M(a.value),
70
- disabled: r.value,
71
- onClick: oe(o, ["stop", "prevent"])
347
+ class: T(s.value),
348
+ disabled: o.value,
349
+ onClick: H(a, ["stop", "prevent"])
72
350
  }, [
73
- i.loading ? (c(), g("div", Cn, [
74
- ae(k(Ve), { size: 23 })
75
- ])) : S("", !0),
76
- me("span", In, [
77
- i.iconOnRight ? (c(), g(N, { key: 0 }, [
78
- se(q(n.label), 1)
79
- ], 64)) : S("", !0),
80
- I(i.$slots, "default"),
81
- i.iconOnRight ? S("", !0) : (c(), g(N, { key: 1 }, [
82
- se(q(n.label), 1)
351
+ l.loading ? (r(), f("div", je, [
352
+ N(g(ne), { size: 23 })
353
+ ])) : b("", !0),
354
+ X("span", Je, [
355
+ l.iconOnRight ? (r(), f(Q, { key: 0 }, [
356
+ U(C(e.label), 1)
357
+ ], 64)) : b("", !0),
358
+ L(l.$slots, "default"),
359
+ l.iconOnRight ? b("", !0) : (r(), f(Q, { key: 1 }, [
360
+ U(C(e.label), 1)
83
361
  ], 64))
84
362
  ])
85
- ], 10, An));
86
- }
87
- });
88
- var En = typeof global == "object" && global && global.Object === Object && global;
89
- const Bt = En;
90
- var Bn = typeof self == "object" && self && self.Object === Object && self, Ln = Bt || Bn || Function("return this")();
91
- const P = Ln;
92
- var Dn = P.Symbol;
93
- const X = Dn;
94
- var Lt = Object.prototype, Pn = Lt.hasOwnProperty, Mn = Lt.toString, ne = X ? X.toStringTag : void 0;
95
- function qn(e) {
96
- var t = Pn.call(e, ne), n = e[ne];
97
- try {
98
- e[ne] = void 0;
99
- var r = !0;
100
- } catch {
101
- }
102
- var o = Mn.call(e);
103
- return r && (t ? e[ne] = n : delete e[ne]), o;
104
- }
105
- var Fn = Object.prototype, Vn = Fn.toString;
106
- function zn(e) {
107
- return Vn.call(e);
108
- }
109
- var Nn = "[object Null]", Un = "[object Undefined]", tt = X ? X.toStringTag : void 0;
110
- function ee(e) {
111
- return e == null ? e === void 0 ? Un : Nn : tt && tt in Object(e) ? qn(e) : zn(e);
112
- }
113
- function H(e) {
114
- return e != null && typeof e == "object";
115
- }
116
- var Rn = Array.isArray;
117
- const J = Rn;
118
- function U(e) {
119
- var t = typeof e;
120
- return e != null && (t == "object" || t == "function");
121
- }
122
- function Dt(e) {
123
- return e;
124
- }
125
- var Qn = "[object AsyncFunction]", Hn = "[object Function]", Gn = "[object GeneratorFunction]", Kn = "[object Proxy]";
126
- function ze(e) {
127
- if (!U(e))
128
- return !1;
129
- var t = ee(e);
130
- return t == Hn || t == Gn || t == Qn || t == Kn;
131
- }
132
- var Wn = P["__core-js_shared__"];
133
- const Ce = Wn;
134
- var nt = function() {
135
- var e = /[^.]+$/.exec(Ce && Ce.keys && Ce.keys.IE_PROTO || "");
136
- return e ? "Symbol(src)_1." + e : "";
137
- }();
138
- function Yn(e) {
139
- return !!nt && nt in e;
140
- }
141
- var Xn = Function.prototype, Jn = Xn.toString;
142
- function G(e) {
143
- if (e != null) {
144
- try {
145
- return Jn.call(e);
146
- } catch {
147
- }
148
- try {
149
- return e + "";
150
- } catch {
151
- }
152
- }
153
- return "";
154
- }
155
- var Zn = /[\\^$.*+?()[\]{}|]/g, er = /^\[object .+?Constructor\]$/, tr = Function.prototype, nr = Object.prototype, rr = tr.toString, or = nr.hasOwnProperty, ar = RegExp(
156
- "^" + rr.call(or).replace(Zn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
157
- );
158
- function ir(e) {
159
- if (!U(e) || Yn(e))
160
- return !1;
161
- var t = ze(e) ? ar : er;
162
- return t.test(G(e));
163
- }
164
- function sr(e, t) {
165
- return e == null ? void 0 : e[t];
166
- }
167
- function K(e, t) {
168
- var n = sr(e, t);
169
- return ir(n) ? n : void 0;
170
- }
171
- var lr = K(P, "WeakMap");
172
- const Le = lr;
173
- var rt = Object.create, cr = function() {
174
- function e() {
175
- }
176
- return function(t) {
177
- if (!U(t))
178
- return {};
179
- if (rt)
180
- return rt(t);
181
- e.prototype = t;
182
- var n = new e();
183
- return e.prototype = void 0, n;
184
- };
185
- }();
186
- const ur = cr;
187
- function fr(e, t, n) {
188
- switch (n.length) {
189
- case 0:
190
- return e.call(t);
191
- case 1:
192
- return e.call(t, n[0]);
193
- case 2:
194
- return e.call(t, n[0], n[1]);
195
- case 3:
196
- return e.call(t, n[0], n[1], n[2]);
197
- }
198
- return e.apply(t, n);
199
- }
200
- function Pt(e, t) {
201
- var n = -1, r = e.length;
202
- for (t || (t = Array(r)); ++n < r; )
203
- t[n] = e[n];
204
- return t;
205
- }
206
- var dr = 800, pr = 16, hr = Date.now;
207
- function gr(e) {
208
- var t = 0, n = 0;
209
- return function() {
210
- var r = hr(), o = pr - (r - n);
211
- if (n = r, o > 0) {
212
- if (++t >= dr)
213
- return arguments[0];
214
- } else
215
- t = 0;
216
- return e.apply(void 0, arguments);
217
- };
218
- }
219
- function br(e) {
220
- return function() {
221
- return e;
222
- };
223
- }
224
- var yr = function() {
225
- try {
226
- var e = K(Object, "defineProperty");
227
- return e({}, "", {}), e;
228
- } catch {
229
- }
230
- }();
231
- const ve = yr;
232
- var mr = ve ? function(e, t) {
233
- return ve(e, "toString", {
234
- configurable: !0,
235
- enumerable: !1,
236
- value: br(t),
237
- writable: !0
238
- });
239
- } : Dt;
240
- const vr = mr;
241
- var _r = gr(vr);
242
- const $r = _r;
243
- function wr(e, t) {
244
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
245
- ;
246
- return e;
247
- }
248
- var Tr = 9007199254740991, Sr = /^(?:0|[1-9]\d*)$/;
249
- function Mt(e, t) {
250
- var n = typeof e;
251
- return t = t ?? Tr, !!t && (n == "number" || n != "symbol" && Sr.test(e)) && e > -1 && e % 1 == 0 && e < t;
252
- }
253
- function Ne(e, t, n) {
254
- t == "__proto__" && ve ? ve(e, t, {
255
- configurable: !0,
256
- enumerable: !0,
257
- value: n,
258
- writable: !0
259
- }) : e[t] = n;
260
- }
261
- function we(e, t) {
262
- return e === t || e !== e && t !== t;
263
- }
264
- var Or = Object.prototype, kr = Or.hasOwnProperty;
265
- function qt(e, t, n) {
266
- var r = e[t];
267
- (!(kr.call(e, t) && we(r, n)) || n === void 0 && !(t in e)) && Ne(e, t, n);
268
- }
269
- function de(e, t, n, r) {
270
- var o = !n;
271
- n || (n = {});
272
- for (var a = -1, i = t.length; ++a < i; ) {
273
- var s = t[a], l = r ? r(n[s], e[s], s, n, e) : void 0;
274
- l === void 0 && (l = e[s]), o ? Ne(n, s, l) : qt(n, s, l);
275
- }
276
- return n;
277
- }
278
- var ot = Math.max;
279
- function xr(e, t, n) {
280
- return t = ot(t === void 0 ? e.length - 1 : t, 0), function() {
281
- for (var r = arguments, o = -1, a = ot(r.length - t, 0), i = Array(a); ++o < a; )
282
- i[o] = r[t + o];
283
- o = -1;
284
- for (var s = Array(t + 1); ++o < t; )
285
- s[o] = r[o];
286
- return s[t] = n(i), fr(e, this, s);
287
- };
288
- }
289
- function jr(e, t) {
290
- return $r(xr(e, t, Dt), e + "");
291
- }
292
- var Ar = 9007199254740991;
293
- function Ft(e) {
294
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ar;
295
- }
296
- function pe(e) {
297
- return e != null && Ft(e.length) && !ze(e);
298
- }
299
- function Cr(e, t, n) {
300
- if (!U(n))
301
- return !1;
302
- var r = typeof t;
303
- return (r == "number" ? pe(n) && Mt(t, n.length) : r == "string" && t in n) ? we(n[t], e) : !1;
304
- }
305
- function Ir(e) {
306
- return jr(function(t, n) {
307
- var r = -1, o = n.length, a = o > 1 ? n[o - 1] : void 0, i = o > 2 ? n[2] : void 0;
308
- for (a = e.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && Cr(n[0], n[1], i) && (a = o < 3 ? void 0 : a, o = 1), t = Object(t); ++r < o; ) {
309
- var s = n[r];
310
- s && e(t, s, r, a);
311
- }
312
- return t;
313
- });
314
- }
315
- var Er = Object.prototype;
316
- function Te(e) {
317
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || Er;
318
- return e === n;
319
- }
320
- function Br(e, t) {
321
- for (var n = -1, r = Array(e); ++n < e; )
322
- r[n] = t(n);
323
- return r;
324
- }
325
- var Lr = "[object Arguments]";
326
- function at(e) {
327
- return H(e) && ee(e) == Lr;
328
- }
329
- var Vt = Object.prototype, Dr = Vt.hasOwnProperty, Pr = Vt.propertyIsEnumerable, Mr = at(function() {
330
- return arguments;
331
- }()) ? at : function(e) {
332
- return H(e) && Dr.call(e, "callee") && !Pr.call(e, "callee");
333
- };
334
- const _e = Mr;
335
- function qr() {
336
- return !1;
337
- }
338
- var zt = typeof exports == "object" && exports && !exports.nodeType && exports, it = zt && typeof module == "object" && module && !module.nodeType && module, Fr = it && it.exports === zt, st = Fr ? P.Buffer : void 0, Vr = st ? st.isBuffer : void 0, zr = Vr || qr;
339
- const Se = zr;
340
- var Nr = "[object Arguments]", Ur = "[object Array]", Rr = "[object Boolean]", Qr = "[object Date]", Hr = "[object Error]", Gr = "[object Function]", Kr = "[object Map]", Wr = "[object Number]", Yr = "[object Object]", Xr = "[object RegExp]", Jr = "[object Set]", Zr = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", no = "[object DataView]", ro = "[object Float32Array]", oo = "[object Float64Array]", ao = "[object Int8Array]", io = "[object Int16Array]", so = "[object Int32Array]", lo = "[object Uint8Array]", co = "[object Uint8ClampedArray]", uo = "[object Uint16Array]", fo = "[object Uint32Array]", m = {};
341
- m[ro] = m[oo] = m[ao] = m[io] = m[so] = m[lo] = m[co] = m[uo] = m[fo] = !0;
342
- m[Nr] = m[Ur] = m[to] = m[Rr] = m[no] = m[Qr] = m[Hr] = m[Gr] = m[Kr] = m[Wr] = m[Yr] = m[Xr] = m[Jr] = m[Zr] = m[eo] = !1;
343
- function po(e) {
344
- return H(e) && Ft(e.length) && !!m[ee(e)];
345
- }
346
- function Ue(e) {
347
- return function(t) {
348
- return e(t);
349
- };
350
- }
351
- var Nt = typeof exports == "object" && exports && !exports.nodeType && exports, ie = Nt && typeof module == "object" && module && !module.nodeType && module, ho = ie && ie.exports === Nt, Ie = ho && Bt.process, go = function() {
352
- try {
353
- var e = ie && ie.require && ie.require("util").types;
354
- return e || Ie && Ie.binding && Ie.binding("util");
355
- } catch {
356
- }
357
- }();
358
- const Z = go;
359
- var lt = Z && Z.isTypedArray, bo = lt ? Ue(lt) : po;
360
- const Re = bo;
361
- var yo = Object.prototype, mo = yo.hasOwnProperty;
362
- function Ut(e, t) {
363
- var n = J(e), r = !n && _e(e), o = !n && !r && Se(e), a = !n && !r && !o && Re(e), i = n || r || o || a, s = i ? Br(e.length, String) : [], l = s.length;
364
- for (var u in e)
365
- (t || mo.call(e, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
366
- (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
367
- o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
368
- a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
369
- Mt(u, l))) && s.push(u);
370
- return s;
371
- }
372
- function Rt(e, t) {
373
- return function(n) {
374
- return e(t(n));
375
- };
376
- }
377
- var vo = Rt(Object.keys, Object);
378
- const _o = vo;
379
- var $o = Object.prototype, wo = $o.hasOwnProperty;
380
- function Qt(e) {
381
- if (!Te(e))
382
- return _o(e);
383
- var t = [];
384
- for (var n in Object(e))
385
- wo.call(e, n) && n != "constructor" && t.push(n);
386
- return t;
387
- }
388
- function Qe(e) {
389
- return pe(e) ? Ut(e) : Qt(e);
390
- }
391
- function To(e) {
392
- var t = [];
393
- if (e != null)
394
- for (var n in Object(e))
395
- t.push(n);
396
- return t;
397
- }
398
- var So = Object.prototype, Oo = So.hasOwnProperty;
399
- function ko(e) {
400
- if (!U(e))
401
- return To(e);
402
- var t = Te(e), n = [];
403
- for (var r in e)
404
- r == "constructor" && (t || !Oo.call(e, r)) || n.push(r);
405
- return n;
406
- }
407
- function he(e) {
408
- return pe(e) ? Ut(e, !0) : ko(e);
409
- }
410
- var xo = K(Object, "create");
411
- const ce = xo;
412
- function jo() {
413
- this.__data__ = ce ? ce(null) : {}, this.size = 0;
414
- }
415
- function Ao(e) {
416
- var t = this.has(e) && delete this.__data__[e];
417
- return this.size -= t ? 1 : 0, t;
418
- }
419
- var Co = "__lodash_hash_undefined__", Io = Object.prototype, Eo = Io.hasOwnProperty;
420
- function Bo(e) {
421
- var t = this.__data__;
422
- if (ce) {
423
- var n = t[e];
424
- return n === Co ? void 0 : n;
425
- }
426
- return Eo.call(t, e) ? t[e] : void 0;
427
- }
428
- var Lo = Object.prototype, Do = Lo.hasOwnProperty;
429
- function Po(e) {
430
- var t = this.__data__;
431
- return ce ? t[e] !== void 0 : Do.call(t, e);
432
- }
433
- var Mo = "__lodash_hash_undefined__";
434
- function qo(e, t) {
435
- var n = this.__data__;
436
- return this.size += this.has(e) ? 0 : 1, n[e] = ce && t === void 0 ? Mo : t, this;
437
- }
438
- function Q(e) {
439
- var t = -1, n = e == null ? 0 : e.length;
440
- for (this.clear(); ++t < n; ) {
441
- var r = e[t];
442
- this.set(r[0], r[1]);
443
- }
444
- }
445
- Q.prototype.clear = jo;
446
- Q.prototype.delete = Ao;
447
- Q.prototype.get = Bo;
448
- Q.prototype.has = Po;
449
- Q.prototype.set = qo;
450
- function Fo() {
451
- this.__data__ = [], this.size = 0;
452
- }
453
- function Oe(e, t) {
454
- for (var n = e.length; n--; )
455
- if (we(e[n][0], t))
456
- return n;
457
- return -1;
458
- }
459
- var Vo = Array.prototype, zo = Vo.splice;
460
- function No(e) {
461
- var t = this.__data__, n = Oe(t, e);
462
- if (n < 0)
463
- return !1;
464
- var r = t.length - 1;
465
- return n == r ? t.pop() : zo.call(t, n, 1), --this.size, !0;
466
- }
467
- function Uo(e) {
468
- var t = this.__data__, n = Oe(t, e);
469
- return n < 0 ? void 0 : t[n][1];
470
- }
471
- function Ro(e) {
472
- return Oe(this.__data__, e) > -1;
473
- }
474
- function Qo(e, t) {
475
- var n = this.__data__, r = Oe(n, e);
476
- return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
477
- }
478
- function F(e) {
479
- var t = -1, n = e == null ? 0 : e.length;
480
- for (this.clear(); ++t < n; ) {
481
- var r = e[t];
482
- this.set(r[0], r[1]);
483
- }
484
- }
485
- F.prototype.clear = Fo;
486
- F.prototype.delete = No;
487
- F.prototype.get = Uo;
488
- F.prototype.has = Ro;
489
- F.prototype.set = Qo;
490
- var Ho = K(P, "Map");
491
- const ue = Ho;
492
- function Go() {
493
- this.size = 0, this.__data__ = {
494
- hash: new Q(),
495
- map: new (ue || F)(),
496
- string: new Q()
497
- };
498
- }
499
- function Ko(e) {
500
- var t = typeof e;
501
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
502
- }
503
- function ke(e, t) {
504
- var n = e.__data__;
505
- return Ko(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
506
- }
507
- function Wo(e) {
508
- var t = ke(this, e).delete(e);
509
- return this.size -= t ? 1 : 0, t;
510
- }
511
- function Yo(e) {
512
- return ke(this, e).get(e);
513
- }
514
- function Xo(e) {
515
- return ke(this, e).has(e);
516
- }
517
- function Jo(e, t) {
518
- var n = ke(this, e), r = n.size;
519
- return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
520
- }
521
- function te(e) {
522
- var t = -1, n = e == null ? 0 : e.length;
523
- for (this.clear(); ++t < n; ) {
524
- var r = e[t];
525
- this.set(r[0], r[1]);
526
- }
527
- }
528
- te.prototype.clear = Go;
529
- te.prototype.delete = Wo;
530
- te.prototype.get = Yo;
531
- te.prototype.has = Xo;
532
- te.prototype.set = Jo;
533
- function Ht(e, t) {
534
- for (var n = -1, r = t.length, o = e.length; ++n < r; )
535
- e[o + n] = t[n];
536
- return e;
537
- }
538
- var Zo = Rt(Object.getPrototypeOf, Object);
539
- const He = Zo;
540
- var ea = "[object Object]", ta = Function.prototype, na = Object.prototype, Gt = ta.toString, ra = na.hasOwnProperty, oa = Gt.call(Object);
541
- function aa(e) {
542
- if (!H(e) || ee(e) != ea)
543
- return !1;
544
- var t = He(e);
545
- if (t === null)
546
- return !0;
547
- var n = ra.call(t, "constructor") && t.constructor;
548
- return typeof n == "function" && n instanceof n && Gt.call(n) == oa;
549
- }
550
- function ia() {
551
- this.__data__ = new F(), this.size = 0;
552
- }
553
- function sa(e) {
554
- var t = this.__data__, n = t.delete(e);
555
- return this.size = t.size, n;
556
- }
557
- function la(e) {
558
- return this.__data__.get(e);
559
- }
560
- function ca(e) {
561
- return this.__data__.has(e);
562
- }
563
- var ua = 200;
564
- function fa(e, t) {
565
- var n = this.__data__;
566
- if (n instanceof F) {
567
- var r = n.__data__;
568
- if (!ue || r.length < ua - 1)
569
- return r.push([e, t]), this.size = ++n.size, this;
570
- n = this.__data__ = new te(r);
571
- }
572
- return n.set(e, t), this.size = n.size, this;
573
- }
574
- function W(e) {
575
- var t = this.__data__ = new F(e);
576
- this.size = t.size;
577
- }
578
- W.prototype.clear = ia;
579
- W.prototype.delete = sa;
580
- W.prototype.get = la;
581
- W.prototype.has = ca;
582
- W.prototype.set = fa;
583
- function da(e, t) {
584
- return e && de(t, Qe(t), e);
585
- }
586
- function pa(e, t) {
587
- return e && de(t, he(t), e);
588
- }
589
- var Kt = typeof exports == "object" && exports && !exports.nodeType && exports, ct = Kt && typeof module == "object" && module && !module.nodeType && module, ha = ct && ct.exports === Kt, ut = ha ? P.Buffer : void 0, ft = ut ? ut.allocUnsafe : void 0;
590
- function Wt(e, t) {
591
- if (t)
592
- return e.slice();
593
- var n = e.length, r = ft ? ft(n) : new e.constructor(n);
594
- return e.copy(r), r;
595
- }
596
- function ga(e, t) {
597
- for (var n = -1, r = e == null ? 0 : e.length, o = 0, a = []; ++n < r; ) {
598
- var i = e[n];
599
- t(i, n, e) && (a[o++] = i);
600
- }
601
- return a;
602
- }
603
- function Yt() {
604
- return [];
605
- }
606
- var ba = Object.prototype, ya = ba.propertyIsEnumerable, dt = Object.getOwnPropertySymbols, ma = dt ? function(e) {
607
- return e == null ? [] : (e = Object(e), ga(dt(e), function(t) {
608
- return ya.call(e, t);
609
- }));
610
- } : Yt;
611
- const Ge = ma;
612
- function va(e, t) {
613
- return de(e, Ge(e), t);
614
- }
615
- var _a = Object.getOwnPropertySymbols, $a = _a ? function(e) {
616
- for (var t = []; e; )
617
- Ht(t, Ge(e)), e = He(e);
618
- return t;
619
- } : Yt;
620
- const Xt = $a;
621
- function wa(e, t) {
622
- return de(e, Xt(e), t);
623
- }
624
- function Jt(e, t, n) {
625
- var r = t(e);
626
- return J(e) ? r : Ht(r, n(e));
627
- }
628
- function Ta(e) {
629
- return Jt(e, Qe, Ge);
630
- }
631
- function Sa(e) {
632
- return Jt(e, he, Xt);
633
- }
634
- var Oa = K(P, "DataView");
635
- const De = Oa;
636
- var ka = K(P, "Promise");
637
- const Pe = ka;
638
- var xa = K(P, "Set");
639
- const Me = xa;
640
- var pt = "[object Map]", ja = "[object Object]", ht = "[object Promise]", gt = "[object Set]", bt = "[object WeakMap]", yt = "[object DataView]", Aa = G(De), Ca = G(ue), Ia = G(Pe), Ea = G(Me), Ba = G(Le), R = ee;
641
- (De && R(new De(new ArrayBuffer(1))) != yt || ue && R(new ue()) != pt || Pe && R(Pe.resolve()) != ht || Me && R(new Me()) != gt || Le && R(new Le()) != bt) && (R = function(e) {
642
- var t = ee(e), n = t == ja ? e.constructor : void 0, r = n ? G(n) : "";
643
- if (r)
644
- switch (r) {
645
- case Aa:
646
- return yt;
647
- case Ca:
648
- return pt;
649
- case Ia:
650
- return ht;
651
- case Ea:
652
- return gt;
653
- case Ba:
654
- return bt;
655
- }
656
- return t;
657
- });
658
- const xe = R;
659
- var La = Object.prototype, Da = La.hasOwnProperty;
660
- function Pa(e) {
661
- var t = e.length, n = new e.constructor(t);
662
- return t && typeof e[0] == "string" && Da.call(e, "index") && (n.index = e.index, n.input = e.input), n;
663
- }
664
- var Ma = P.Uint8Array;
665
- const mt = Ma;
666
- function Ke(e) {
667
- var t = new e.constructor(e.byteLength);
668
- return new mt(t).set(new mt(e)), t;
669
- }
670
- function qa(e, t) {
671
- var n = t ? Ke(e.buffer) : e.buffer;
672
- return new e.constructor(n, e.byteOffset, e.byteLength);
673
- }
674
- var Fa = /\w*$/;
675
- function Va(e) {
676
- var t = new e.constructor(e.source, Fa.exec(e));
677
- return t.lastIndex = e.lastIndex, t;
678
- }
679
- var vt = X ? X.prototype : void 0, _t = vt ? vt.valueOf : void 0;
680
- function za(e) {
681
- return _t ? Object(_t.call(e)) : {};
682
- }
683
- function Zt(e, t) {
684
- var n = t ? Ke(e.buffer) : e.buffer;
685
- return new e.constructor(n, e.byteOffset, e.length);
686
- }
687
- var Na = "[object Boolean]", Ua = "[object Date]", Ra = "[object Map]", Qa = "[object Number]", Ha = "[object RegExp]", Ga = "[object Set]", Ka = "[object String]", Wa = "[object Symbol]", Ya = "[object ArrayBuffer]", Xa = "[object DataView]", Ja = "[object Float32Array]", Za = "[object Float64Array]", ei = "[object Int8Array]", ti = "[object Int16Array]", ni = "[object Int32Array]", ri = "[object Uint8Array]", oi = "[object Uint8ClampedArray]", ai = "[object Uint16Array]", ii = "[object Uint32Array]";
688
- function si(e, t, n) {
689
- var r = e.constructor;
690
- switch (t) {
691
- case Ya:
692
- return Ke(e);
693
- case Na:
694
- case Ua:
695
- return new r(+e);
696
- case Xa:
697
- return qa(e, n);
698
- case Ja:
699
- case Za:
700
- case ei:
701
- case ti:
702
- case ni:
703
- case ri:
704
- case oi:
705
- case ai:
706
- case ii:
707
- return Zt(e, n);
708
- case Ra:
709
- return new r();
710
- case Qa:
711
- case Ka:
712
- return new r(e);
713
- case Ha:
714
- return Va(e);
715
- case Ga:
716
- return new r();
717
- case Wa:
718
- return za(e);
719
- }
720
- }
721
- function en(e) {
722
- return typeof e.constructor == "function" && !Te(e) ? ur(He(e)) : {};
723
- }
724
- var li = "[object Map]";
725
- function ci(e) {
726
- return H(e) && xe(e) == li;
727
- }
728
- var $t = Z && Z.isMap, ui = $t ? Ue($t) : ci;
729
- const fi = ui;
730
- var di = "[object Set]";
731
- function pi(e) {
732
- return H(e) && xe(e) == di;
733
- }
734
- var wt = Z && Z.isSet, hi = wt ? Ue(wt) : pi;
735
- const gi = hi;
736
- var bi = 1, yi = 2, mi = 4, tn = "[object Arguments]", vi = "[object Array]", _i = "[object Boolean]", $i = "[object Date]", wi = "[object Error]", nn = "[object Function]", Ti = "[object GeneratorFunction]", Si = "[object Map]", Oi = "[object Number]", rn = "[object Object]", ki = "[object RegExp]", xi = "[object Set]", ji = "[object String]", Ai = "[object Symbol]", Ci = "[object WeakMap]", Ii = "[object ArrayBuffer]", Ei = "[object DataView]", Bi = "[object Float32Array]", Li = "[object Float64Array]", Di = "[object Int8Array]", Pi = "[object Int16Array]", Mi = "[object Int32Array]", qi = "[object Uint8Array]", Fi = "[object Uint8ClampedArray]", Vi = "[object Uint16Array]", zi = "[object Uint32Array]", y = {};
737
- y[tn] = y[vi] = y[Ii] = y[Ei] = y[_i] = y[$i] = y[Bi] = y[Li] = y[Di] = y[Pi] = y[Mi] = y[Si] = y[Oi] = y[rn] = y[ki] = y[xi] = y[ji] = y[Ai] = y[qi] = y[Fi] = y[Vi] = y[zi] = !0;
738
- y[wi] = y[nn] = y[Ci] = !1;
739
- function ye(e, t, n, r, o, a) {
740
- var i, s = t & bi, l = t & yi, u = t & mi;
741
- if (n && (i = o ? n(e, r, o, a) : n(e)), i !== void 0)
742
- return i;
743
- if (!U(e))
744
- return e;
745
- var h = J(e);
746
- if (h) {
747
- if (i = Pa(e), !s)
748
- return Pt(e, i);
749
- } else {
750
- var d = xe(e), v = d == nn || d == Ti;
751
- if (Se(e))
752
- return Wt(e, s);
753
- if (d == rn || d == tn || v && !o) {
754
- if (i = l || v ? {} : en(e), !s)
755
- return l ? wa(e, pa(i, e)) : va(e, da(i, e));
756
- } else {
757
- if (!y[d])
758
- return o ? e : {};
759
- i = si(e, d, s);
760
- }
363
+ ], 10, Ze));
761
364
  }
762
- a || (a = new W());
763
- var w = a.get(e);
764
- if (w)
765
- return w;
766
- a.set(e, i), gi(e) ? e.forEach(function(T) {
767
- i.add(ye(T, t, n, T, e, a));
768
- }) : fi(e) && e.forEach(function(T, f) {
769
- i.set(f, ye(T, t, n, f, e, a));
770
- });
771
- var D = u ? l ? Sa : Ta : l ? he : Qe, V = h ? void 0 : D(e);
772
- return wr(V || e, function(T, f) {
773
- V && (f = T, T = e[f]), qt(i, f, ye(T, t, n, f, e, a));
774
- }), i;
775
- }
776
- var Ni = 1, Ui = 4;
777
- function Ri(e) {
778
- return ye(e, Ni | Ui);
779
- }
780
- function Qi(e) {
781
- return function(t, n, r) {
782
- for (var o = -1, a = Object(t), i = r(t), s = i.length; s--; ) {
783
- var l = i[e ? s : ++o];
784
- if (n(a[l], l, a) === !1)
785
- break;
786
- }
787
- return t;
788
- };
789
- }
790
- var Hi = Qi();
791
- const Gi = Hi;
792
- function qe(e, t, n) {
793
- (n !== void 0 && !we(e[t], n) || n === void 0 && !(t in e)) && Ne(e, t, n);
794
- }
795
- function Ki(e) {
796
- return H(e) && pe(e);
797
- }
798
- function Fe(e, t) {
799
- if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
800
- return e[t];
801
- }
802
- function Wi(e) {
803
- return de(e, he(e));
804
- }
805
- function Yi(e, t, n, r, o, a, i) {
806
- var s = Fe(e, n), l = Fe(t, n), u = i.get(l);
807
- if (u) {
808
- qe(e, n, u);
809
- return;
810
- }
811
- var h = a ? a(s, l, n + "", e, t, i) : void 0, d = h === void 0;
812
- if (d) {
813
- var v = J(l), w = !v && Se(l), D = !v && !w && Re(l);
814
- h = l, v || w || D ? J(s) ? h = s : Ki(s) ? h = Pt(s) : w ? (d = !1, h = Wt(l, !0)) : D ? (d = !1, h = Zt(l, !0)) : h = [] : aa(l) || _e(l) ? (h = s, _e(s) ? h = Wi(s) : (!U(s) || ze(s)) && (h = en(l))) : d = !1;
815
- }
816
- d && (i.set(l, h), o(h, l, r, a, i), i.delete(l)), qe(e, n, h);
817
- }
818
- function on(e, t, n, r, o) {
819
- e !== t && Gi(t, function(a, i) {
820
- if (o || (o = new W()), U(a))
821
- Yi(e, t, i, n, on, r, o);
822
- else {
823
- var s = r ? r(Fe(e, i), a, i + "", e, t, o) : void 0;
824
- s === void 0 && (s = a), qe(e, i, s);
825
- }
826
- }, he);
827
- }
828
- var Xi = "[object Map]", Ji = "[object Set]", Zi = Object.prototype, es = Zi.hasOwnProperty;
829
- function ts(e) {
830
- if (e == null)
831
- return !0;
832
- if (pe(e) && (J(e) || typeof e == "string" || typeof e.splice == "function" || Se(e) || Re(e) || _e(e)))
833
- return !e.length;
834
- var t = xe(e);
835
- if (t == Xi || t == Ji)
836
- return !e.size;
837
- if (Te(e))
838
- return !Qt(e).length;
839
- for (var n in e)
840
- if (es.call(e, n))
841
- return !1;
842
- return !0;
843
- }
844
- var ns = Ir(function(e, t, n) {
845
- on(e, t, n);
846
- });
847
- const an = ns, We = "q-defaults";
848
- function rs() {
849
- const e = jt();
850
- if (!e)
851
- throw new Error("[framework] useDefaults must be called from inside a setup function");
852
- const t = e.type.name ?? e.type.__name;
853
- if (!t)
854
- throw new Error("[framework] Could not determine component name");
855
- return sn()[t] || {};
856
- }
857
- function os(e) {
858
- const t = Ri(sn()), n = an(t, e);
859
- yn(We, n);
860
- }
861
- function sn() {
862
- const e = At(We, void 0);
863
- if (!e)
864
- throw new Error("[framework] Could not find defaults instance");
865
- return e;
866
- }
867
- const ln = /* @__PURE__ */ O({
365
+ }), et = /* @__PURE__ */ _({
868
366
  __name: "QButtonGroup",
869
367
  props: {
870
368
  bStyle: {},
@@ -872,29 +370,29 @@ const ln = /* @__PURE__ */ O({
872
370
  borderless: { type: Boolean },
873
371
  elevated: { type: Boolean }
874
372
  },
875
- setup(e) {
876
- const t = e;
877
- os({
373
+ setup(t) {
374
+ const n = t;
375
+ Fe({
878
376
  QButton: {
879
- bStyle: Ae(t, "bStyle"),
880
- disabled: Ae(t, "disabled"),
881
- borderless: Ae(t, "borderless"),
377
+ bStyle: j(n, "bStyle"),
378
+ disabled: j(n, "disabled"),
379
+ borderless: j(n, "borderless"),
882
380
  elevated: !1
883
381
  }
884
382
  });
885
- const n = $(() => [
383
+ const e = y(() => [
886
384
  "q-btn-group",
887
385
  {
888
- "q-btn-group--elevated": t.elevated
386
+ "q-btn-group--elevated": n.elevated
889
387
  }
890
388
  ]);
891
- return (r, o) => (c(), g("div", {
892
- class: M(n.value)
389
+ return (o, a) => (r(), f("div", {
390
+ class: T(e.value)
893
391
  }, [
894
- I(r.$slots, "default")
392
+ L(o.$slots, "default")
895
393
  ], 2));
896
394
  }
897
- }), as = /* @__PURE__ */ O({
395
+ }), Ct = /* @__PURE__ */ _({
898
396
  __name: "QButtonToggle",
899
397
  props: {
900
398
  modelValue: {},
@@ -905,39 +403,39 @@ const ln = /* @__PURE__ */ O({
905
403
  mandatory: { type: Boolean }
906
404
  },
907
405
  emits: ["update:modelValue"],
908
- setup(e, { emit: t }) {
909
- const n = e, r = B(n.modelValue);
406
+ setup(t, { emit: n }) {
407
+ const e = t, o = D(e.modelValue);
910
408
  z(
911
- () => n.modelValue,
912
- (i) => r.value = i
409
+ () => e.modelValue,
410
+ (l) => o.value = l
913
411
  );
914
- const o = $({
412
+ const a = y({
915
413
  get() {
916
- return r.value;
414
+ return o.value;
917
415
  },
918
- set(i) {
919
- r.value = i, t("update:modelValue", i);
416
+ set(l) {
417
+ o.value = l, n("update:modelValue", l);
920
418
  }
921
419
  });
922
- function a(i) {
923
- o.value === i.key && !n.mandatory ? o.value = void 0 : o.value = i.key;
420
+ function s(l) {
421
+ a.value === l.key && !e.mandatory ? a.value = void 0 : a.value = l.key;
924
422
  }
925
- return (i, s) => (c(), x(k(ln), {
423
+ return (l, c) => (r(), k(g(et), {
926
424
  "b-style": "secondary",
927
- disabled: n.disabled,
928
- borderless: n.borderless,
929
- elevated: n.elevated
425
+ disabled: e.disabled,
426
+ borderless: e.borderless,
427
+ elevated: e.elevated
930
428
  }, {
931
- default: L(() => [
932
- (c(!0), g(N, null, Be(n.options, (l) => (c(), x(k(Et), {
933
- key: l.key,
934
- title: l.title,
935
- label: l.label,
936
- active: o.value === l.key,
937
- onClick: (u) => a(l)
429
+ default: E(() => [
430
+ (r(!0), f(Q, null, P(e.options, (i) => (r(), k(g(Pe), {
431
+ key: i.key,
432
+ title: i.title,
433
+ label: i.label,
434
+ active: a.value === i.key,
435
+ onClick: (p) => s(i)
938
436
  }, {
939
- default: L(() => [
940
- I(i.$slots, l.key)
437
+ default: E(() => [
438
+ L(l.$slots, i.key)
941
439
  ]),
942
440
  _: 2
943
441
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -945,21 +443,32 @@ const ln = /* @__PURE__ */ O({
945
443
  _: 3
946
444
  }, 8, ["disabled", "borderless", "elevated"]));
947
445
  }
948
- }), Y = /* @__PURE__ */ O({
446
+ }), O = /* @__PURE__ */ _({
949
447
  __name: "QIcon",
950
448
  props: {
951
449
  name: {},
952
450
  type: { default: "svg" },
953
451
  size: { default: void 0 }
954
452
  },
955
- setup(e) {
956
- const t = e;
957
- return (n, r) => (c(), x(Ct(`q-icon-${t.type}`), {
958
- icon: t.name,
959
- size: t.size
453
+ setup(t) {
454
+ const n = t, e = y(() => {
455
+ switch (n.type) {
456
+ case "svg":
457
+ return $e;
458
+ case "font":
459
+ return ke;
460
+ case "img":
461
+ return we;
462
+ default:
463
+ return;
464
+ }
465
+ });
466
+ return (o, a) => (r(), k(me(e.value), {
467
+ icon: n.name,
468
+ size: n.size
960
469
  }, null, 8, ["icon", "size"]));
961
470
  }
962
- }), is = /* @__PURE__ */ O({
471
+ }), ke = /* @__PURE__ */ _({
963
472
  __name: "QIconFont",
964
473
  props: {
965
474
  icon: {},
@@ -967,45 +476,45 @@ const ln = /* @__PURE__ */ O({
967
476
  variant: { default: "" },
968
477
  size: { default: void 0 }
969
478
  },
970
- setup(e) {
971
- const t = e, n = $(() => t.variant ? `${t.library}-${t.variant}` : t.library), r = $(() => ({
972
- "font-size": t.size !== void 0 ? `${t.size}px` : void 0
479
+ setup(t) {
480
+ const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => ({
481
+ "font-size": n.size !== void 0 ? `${n.size}px` : void 0
973
482
  }));
974
- return (o, a) => t.icon ? (c(), g("i", {
483
+ return (a, s) => n.icon ? (r(), f("i", {
975
484
  key: 0,
976
- class: M(["q-icon", "q-icon__font", n.value, `${t.library}-${t.icon}`]),
977
- style: fe(r.value)
978
- }, null, 6)) : S("", !0);
485
+ class: T(["q-icon", "q-icon__font", e.value, `${n.library}-${n.icon}`]),
486
+ style: W(o.value)
487
+ }, null, 6)) : b("", !0);
979
488
  }
980
- }), ss = ["src"], ls = /* @__PURE__ */ O({
489
+ }), tt = ["src"], we = /* @__PURE__ */ _({
981
490
  __name: "QIconImg",
982
491
  props: {
983
492
  icon: {},
984
493
  size: {}
985
494
  },
986
- setup(e) {
987
- const t = e, n = $(() => ({
988
- "font-size": t.size !== void 0 ? `${t.size}px` : void 0
495
+ setup(t) {
496
+ const n = t, e = y(() => ({
497
+ "font-size": n.size !== void 0 ? `${n.size}px` : void 0
989
498
  }));
990
- return (r, o) => t.icon ? (c(), g("img", {
499
+ return (o, a) => n.icon ? (r(), f("img", {
991
500
  key: 0,
992
- src: t.icon,
501
+ src: n.icon,
993
502
  class: "q-icon",
994
- style: fe(n.value)
995
- }, null, 12, ss)) : S("", !0);
503
+ style: W(e.value)
504
+ }, null, 12, tt)) : b("", !0);
996
505
  }
997
- }), re = {}, cs = O({
506
+ }), R = {}, nt = _({
998
507
  name: "InlineSvg",
999
508
  emits: ["loaded", "unloaded", "error"],
1000
509
  inheritAttrs: !1,
1001
510
  render() {
1002
511
  if (!this.svgElSource)
1003
512
  return null;
1004
- const e = this.getSvgContent(this.svgElSource);
1005
- if (!e)
1006
- return Ze("div", this.$attrs);
1007
- const t = {};
1008
- return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, e), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = e.innerHTML, Ze("svg", t);
513
+ const t = this.getSvgContent(this.svgElSource);
514
+ if (!t)
515
+ return se("div", this.$attrs);
516
+ const n = {};
517
+ return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, se("svg", n);
1009
518
  },
1010
519
  props: {
1011
520
  src: {
@@ -1039,30 +548,30 @@ const ln = /* @__PURE__ */ O({
1039
548
  await this.getSource(this.src);
1040
549
  },
1041
550
  methods: {
1042
- copySvgAttrs(e, t) {
1043
- const n = t.attributes;
1044
- if (n)
1045
- for (const r of n)
1046
- e[r.name] = r.value;
551
+ copySvgAttrs(t, n) {
552
+ const e = n.attributes;
553
+ if (e)
554
+ for (const o of e)
555
+ t[o.name] = o.value;
1047
556
  },
1048
- copyComponentAttrs(e, t) {
1049
- for (const [n, r] of Object.entries(t))
1050
- r !== !1 && r !== null && r !== void 0 && (e[n] = r);
557
+ copyComponentAttrs(t, n) {
558
+ for (const [e, o] of Object.entries(n))
559
+ o !== !1 && o !== null && o !== void 0 && (t[e] = o);
1051
560
  },
1052
- getSvgContent(e) {
1053
- return this.symbol && (e = e.getElementById(this.symbol), !e) ? null : (this.transformSource && (e = e.cloneNode(!0), e = this.transformSource(e)), this.title && (this.transformSource || (e = e.cloneNode(!0)), us(e, this.title)), e);
561
+ getSvgContent(t) {
562
+ 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)), ot(t, this.title)), t);
1054
563
  },
1055
564
  /**
1056
565
  * Get svgElSource
1057
566
  * @param {string} src
1058
567
  */
1059
- async getSource(e) {
568
+ async getSource(t) {
1060
569
  try {
1061
- re[e] || (re[e] = fs(this.download(e))), this.svgElSource && re[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
1062
- const t = await re[e];
1063
- this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
1064
- } catch (t) {
1065
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete re[e], this.$emit("error", t);
570
+ R[t] || (R[t] = at(this.download(t))), this.svgElSource && R[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
571
+ const n = await R[t];
572
+ this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
573
+ } catch (n) {
574
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete R[t], this.$emit("error", n);
1066
575
  }
1067
576
  },
1068
577
  /**
@@ -1070,44 +579,44 @@ const ln = /* @__PURE__ */ O({
1070
579
  * @param {string} url
1071
580
  * @returns {PromiseWithState<Element>}
1072
581
  */
1073
- async download(e) {
1074
- const t = await fetch(e);
1075
- if (!t.ok)
582
+ async download(t) {
583
+ const n = await fetch(t);
584
+ if (!n.ok)
1076
585
  throw new Error("Error loading SVG");
1077
- const n = await t.text(), a = new DOMParser().parseFromString(n, "text/xml").getElementsByTagName("svg")[0];
1078
- if (!a)
586
+ const e = await n.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
587
+ if (!s)
1079
588
  throw new Error("Loaded file is not a valid SVG");
1080
- return a;
589
+ return s;
1081
590
  }
1082
591
  },
1083
592
  watch: {
1084
- src(e) {
1085
- this.getSource(e);
593
+ src(t) {
594
+ this.getSource(t);
1086
595
  }
1087
596
  }
1088
597
  });
1089
- function us(e, t) {
1090
- const n = e.getElementsByTagName("title");
1091
- if (n.length)
1092
- n[0].textContent = t;
598
+ function ot(t, n) {
599
+ const e = t.getElementsByTagName("title");
600
+ if (e.length)
601
+ e[0].textContent = n;
1093
602
  else {
1094
- const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
1095
- r.textContent = t, e.insertBefore(r, e.firstChild);
603
+ const o = document.createElementNS("http://www.w3.org/2000/svg", "title");
604
+ o.textContent = n, t.insertBefore(o, t.firstChild);
1096
605
  }
1097
606
  }
1098
- function fs(e) {
1099
- if (e.getIsPending)
1100
- return e;
1101
- let t = !0;
1102
- const n = e.then(
1103
- (r) => (t = !1, r),
1104
- (r) => {
1105
- throw t = !1, r;
607
+ function at(t) {
608
+ if (t.getIsPending)
609
+ return t;
610
+ let n = !0;
611
+ const e = t.then(
612
+ (o) => (n = !1, o),
613
+ (o) => {
614
+ throw n = !1, o;
1106
615
  }
1107
616
  );
1108
- return n.getIsPending = () => t, n;
617
+ return e.getIsPending = () => n, e;
1109
618
  }
1110
- const ds = /* @__PURE__ */ O({
619
+ const $e = /* @__PURE__ */ _({
1111
620
  __name: "QIconSvg",
1112
621
  props: {
1113
622
  icon: {},
@@ -1115,135 +624,66 @@ const ds = /* @__PURE__ */ O({
1115
624
  size: { default: void 0 }
1116
625
  },
1117
626
  emits: ["loaded", "unloaded"],
1118
- setup(e, { emit: t }) {
1119
- const n = e, r = $(() => ({
1120
- "font-size": n.size !== void 0 ? `${n.size}px` : void 0
627
+ setup(t, { emit: n }) {
628
+ const e = t, o = y(() => ({
629
+ "font-size": e.size !== void 0 ? `${e.size}px` : void 0
1121
630
  }));
1122
- return (o, a) => n.icon ? (c(), x(k(cs), {
631
+ return (a, s) => e.icon ? (r(), k(g(nt), {
1123
632
  key: 0,
1124
633
  class: "q-icon q-icon__svg",
1125
- src: n.bundle,
1126
- symbol: n.icon,
1127
- style: fe(r.value),
1128
- onLoaded: a[0] || (a[0] = (i) => t("loaded", i)),
1129
- onUnloaded: a[1] || (a[1] = (i) => t("unloaded", i))
1130
- }, null, 8, ["src", "symbol", "style"])) : S("", !0);
634
+ src: e.bundle,
635
+ symbol: e.icon,
636
+ style: W(o.value),
637
+ onLoaded: s[0] || (s[0] = (l) => n("loaded", l)),
638
+ onUnloaded: s[1] || (s[1] = (l) => n("unloaded", l))
639
+ }, null, 8, ["src", "symbol", "style"])) : b("", !0);
1131
640
  }
1132
- }), ps = {
641
+ });
642
+ A(O);
643
+ A(ke);
644
+ A(we);
645
+ A($e);
646
+ const st = {
1133
647
  key: 0,
1134
648
  class: "q-input__prepend"
1135
- }, hs = {
649
+ }, lt = {
1136
650
  key: 1,
1137
651
  class: "q-input__append"
1138
- }, cn = /* @__PURE__ */ O({
652
+ }, rt = /* @__PURE__ */ _({
1139
653
  __name: "QInput",
1140
654
  props: {
1141
655
  size: { default: "medium" },
1142
656
  readonly: { type: Boolean, default: !1 },
1143
657
  disabled: { type: Boolean, default: !1 }
1144
658
  },
1145
- setup(e) {
1146
- const t = e;
1147
- return (n, r) => (c(), g("div", {
1148
- class: M([
659
+ setup(t) {
660
+ const n = t;
661
+ return (e, o) => (r(), f("div", {
662
+ class: T([
1149
663
  "q-input",
1150
- `q-input--${t.size}`,
1151
- { "q-input--readonly": t.readonly, "q-input--disabled": t.disabled }
664
+ `q-input--${n.size}`,
665
+ { "q-input--readonly": n.readonly, "q-input--disabled": n.disabled }
1152
666
  ])
1153
667
  }, [
1154
- n.$slots.prepend ? (c(), g("div", ps, [
1155
- I(n.$slots, "prepend")
1156
- ])) : S("", !0),
1157
- I(n.$slots, "default"),
1158
- n.$slots.append ? (c(), g("div", hs, [
1159
- I(n.$slots, "append")
1160
- ])) : S("", !0)
668
+ e.$slots.prepend ? (r(), f("div", st, [
669
+ L(e.$slots, "prepend")
670
+ ])) : b("", !0),
671
+ L(e.$slots, "default"),
672
+ e.$slots.append ? (r(), f("div", lt, [
673
+ L(e.$slots, "append")
674
+ ])) : b("", !0)
1161
675
  ], 2));
1162
676
  }
1163
- }), gs = (e, t) => {
1164
- const n = e.__vccOpts || e;
1165
- for (const [r, o] of t)
1166
- n[r] = o;
1167
- return n;
1168
- }, bs = {}, ys = { class: "q-line-loader" };
1169
- function ms(e, t) {
1170
- return c(), g("div", ys);
1171
- }
1172
- const vs = /* @__PURE__ */ gs(bs, [["render", ms]]), _s = ["tabindex", "aria-label", "aria-selected", "onClick"], $s = {
1173
- check: {
1174
- name: "check"
1175
- }
1176
- }, un = /* @__PURE__ */ O({
1177
- __name: "QListItem",
1178
- props: {
1179
- value: { type: [String, Number, Boolean, Symbol] },
1180
- label: {},
1181
- icon: { default: void 0 },
1182
- selected: { type: Boolean, default: !1 },
1183
- highlighted: { type: Boolean, default: !1 },
1184
- icons: { default: () => $s },
1185
- disabled: { type: Boolean, default: !1 }
1186
- },
1187
- emits: ["select"],
1188
- setup(e, { emit: t }) {
1189
- const n = e;
1190
- function r() {
1191
- n.disabled || t("select", n.value);
1192
- }
1193
- function o(a) {
1194
- a.key === "Tab" && r(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), r());
1195
- }
1196
- return (a, i) => (c(), g("li", {
1197
- role: "option",
1198
- tabindex: n.disabled ? void 0 : -2,
1199
- class: M([
1200
- "q-list-item",
1201
- {
1202
- "q-list-item--disabled": n.disabled,
1203
- "q-list-item--selected": n.selected,
1204
- "q-list-item--highlighted": n.highlighted
1205
- }
1206
- ]),
1207
- "aria-label": n.label,
1208
- "aria-selected": n.disabled ? void 0 : n.selected,
1209
- onKeydown: o,
1210
- onClick: oe(r, ["stop", "prevent"])
1211
- }, [
1212
- n.icon ? (c(), x(k(Y), It(le({ key: 0 }, n.icon)), null, 16)) : S("", !0),
1213
- se(" " + q(n.label) + " ", 1),
1214
- n.selected ? (c(), x(k(Y), le({ key: 1 }, n.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
1215
- ], 42, _s));
1216
- }
1217
- });
1218
- let ws = 0;
1219
- function Ts() {
1220
- return `uid-${++ws}`;
677
+ }), it = (t, n) => {
678
+ const e = t.__vccOpts || t;
679
+ for (const [o, a] of n)
680
+ e[o] = a;
681
+ return e;
682
+ }, ct = {}, ut = { class: "q-line-loader" };
683
+ function dt(t, n) {
684
+ return r(), f("div", ut);
1221
685
  }
1222
- const Ss = ["aria-labelledby"], Os = ["id"], fn = /* @__PURE__ */ O({
1223
- __name: "QListItemGroup",
1224
- props: {
1225
- id: { default: () => Ts() },
1226
- title: { default: "" },
1227
- disabled: { type: Boolean, default: !1 }
1228
- },
1229
- setup(e) {
1230
- const t = e;
1231
- return (n, r) => t.title ? (c(), g("ul", {
1232
- key: 1,
1233
- class: "q-list-item-group",
1234
- role: "group",
1235
- "aria-labelledby": t.id
1236
- }, [
1237
- t.title ? (c(), g("li", {
1238
- key: 0,
1239
- id: t.id,
1240
- class: "q-list-item-group__title",
1241
- role: "presentation"
1242
- }, q(t.title), 9, Os)) : S("", !0),
1243
- I(n.$slots, "default")
1244
- ], 8, Ss)) : I(n.$slots, "default", { key: 0 });
1245
- }
1246
- }), dn = /* @__PURE__ */ O({
686
+ const Vt = /* @__PURE__ */ it(ct, [["render", dt]]), Se = /* @__PURE__ */ _({
1247
687
  __name: "QList",
1248
688
  props: {
1249
689
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1254,91 +694,91 @@ const Ss = ["aria-labelledby"], Os = ["id"], fn = /* @__PURE__ */ O({
1254
694
  disabled: { type: Boolean }
1255
695
  },
1256
696
  emits: ["update:modelValue"],
1257
- setup(e, { expose: t, emit: n }) {
1258
- const r = e, o = B(r.modelValue), a = $(() => i.value.length > 1 ? "div" : "ul"), i = $(() => r.groups.length ? r.groups : [{ title: "" }]), s = B(null);
1259
- function l(f) {
1260
- o.value = f, n("update:modelValue", f);
697
+ setup(t, { expose: n, emit: e }) {
698
+ const o = t, a = D(o.modelValue), s = y(() => l.value.length > 1 ? "div" : "ul"), l = y(() => o.groups.length ? o.groups : [{ title: "" }]), c = D(null);
699
+ function i(d) {
700
+ a.value = d, e("update:modelValue", d);
1261
701
  }
1262
- function u() {
1263
- let f = 0;
1264
- o.value && (f = r.items.findIndex((j) => j[r.itemValue] === o.value)), v(f);
702
+ function p() {
703
+ let d = 0;
704
+ a.value && (d = o.items.findIndex(($) => $[o.itemValue] === a.value)), q(d);
1265
705
  }
1266
- function h(f) {
1267
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
706
+ function w(d) {
707
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && d.preventDefault(), d.key) {
1268
708
  case "ArrowDown":
1269
- d("next");
709
+ m("next");
1270
710
  break;
1271
711
  case "ArrowUp":
1272
- d("prev");
712
+ m("prev");
1273
713
  break;
1274
714
  case "Home":
1275
- d("first");
715
+ m("first");
1276
716
  break;
1277
717
  case "End":
1278
- d("last");
718
+ m("last");
1279
719
  break;
1280
720
  }
1281
721
  }
1282
- function d(f) {
1283
- switch (f) {
722
+ function m(d) {
723
+ switch (d) {
1284
724
  case "next":
1285
725
  case "prev":
1286
- v(V(f));
726
+ q(M(d));
1287
727
  break;
1288
728
  case "first":
1289
- v(0);
729
+ q(0);
1290
730
  break;
1291
731
  case "last":
1292
- v(-1);
732
+ q(-1);
1293
733
  break;
1294
734
  }
1295
735
  }
1296
- function v(f) {
1297
- var _;
1298
- (_ = w().at(f)) == null || _.focus();
736
+ function q(d) {
737
+ var v;
738
+ (v = I().at(d)) == null || v.focus();
1299
739
  }
1300
- function w() {
1301
- var _;
1302
- const f = (_ = s.value) == null ? void 0 : _.querySelectorAll("li");
1303
- return f ? Array.from(f).filter((E) => E.tabIndex !== -1) : [];
740
+ function I() {
741
+ var v;
742
+ const d = (v = c.value) == null ? void 0 : v.querySelectorAll("li");
743
+ return d ? Array.from(d).filter((x) => x.tabIndex !== -1) : [];
1304
744
  }
1305
- function D(f) {
1306
- return f.indexOf(document.activeElement);
745
+ function F(d) {
746
+ return d.indexOf(document.activeElement);
1307
747
  }
1308
- function V(f) {
1309
- const j = w(), _ = D(j);
1310
- return f === "next" ? _ === j.length - 1 ? _ : _ + 1 : _ === 0 ? 0 : _ - 1;
748
+ function M(d) {
749
+ const $ = I(), v = F($);
750
+ return d === "next" ? v === $.length - 1 ? v : v + 1 : v === 0 ? 0 : v - 1;
1311
751
  }
1312
- function T(f) {
1313
- return f ? r.items.filter((j) => j.group === f) : r.items;
752
+ function V(d) {
753
+ return d ? o.items.filter(($) => $.group === d) : o.items;
1314
754
  }
1315
755
  return z(
1316
- () => r.modelValue,
1317
- (f) => {
1318
- o.value = f;
756
+ () => o.modelValue,
757
+ (d) => {
758
+ a.value = d;
1319
759
  }
1320
- ), t({ focusItem: v }), (f, j) => (c(), x(Ct(a.value), {
760
+ ), n({ focusItem: q }), (d, $) => (r(), k(me(s.value), {
1321
761
  ref_key: "listRef",
1322
- ref: s,
1323
- class: M(["q-list", { "q-list--disabled": r.disabled }]),
762
+ ref: c,
763
+ class: T(["q-list", { "q-list--disabled": o.disabled }]),
1324
764
  role: "listbox",
1325
- tabindex: r.disabled ? -1 : 0,
1326
- onFocus: u,
1327
- onKeydown: h
765
+ tabindex: o.disabled ? -1 : 0,
766
+ onFocus: p,
767
+ onKeydown: w
1328
768
  }, {
1329
- default: L(() => [
1330
- (c(!0), g(N, null, Be(i.value, (_) => (c(), x(fn, le({
1331
- key: _.title
1332
- }, _), {
1333
- default: L(() => [
1334
- (c(!0), g(N, null, Be(T(_.title), (E) => (c(), x(un, {
1335
- key: E[r.itemValue],
1336
- value: E[r.itemValue],
1337
- label: E[r.itemLabel],
1338
- icon: E.icon,
1339
- disabled: r.disabled || E.disabled,
1340
- selected: o.value === E[r.itemValue],
1341
- onSelect: l
769
+ default: E(() => [
770
+ (r(!0), f(Q, null, P(l.value, (v) => (r(), k(g(Le), K({
771
+ key: v.title
772
+ }, v), {
773
+ default: E(() => [
774
+ (r(!0), f(Q, null, P(V(v.title), (x) => (r(), k(g(Be), {
775
+ key: x[o.itemValue],
776
+ value: x[o.itemValue],
777
+ label: x[o.itemLabel],
778
+ icon: x.icon,
779
+ disabled: o.disabled || x.disabled,
780
+ selected: a.value === x[o.itemValue],
781
+ onSelect: i
1342
782
  }, null, 8, ["value", "label", "icon", "disabled", "selected"]))), 128))
1343
783
  ]),
1344
784
  _: 2
@@ -1347,71 +787,148 @@ const Ss = ["aria-labelledby"], Os = ["id"], fn = /* @__PURE__ */ O({
1347
787
  _: 1
1348
788
  }, 40, ["class", "tabindex"]));
1349
789
  }
790
+ }), ft = ["tabindex", "aria-label", "aria-selected", "onClick"], pt = {
791
+ check: {
792
+ name: "check"
793
+ }
794
+ }, Be = /* @__PURE__ */ _({
795
+ __name: "QListItem",
796
+ props: {
797
+ value: { type: [String, Number, Boolean, Symbol] },
798
+ label: {},
799
+ icon: { default: void 0 },
800
+ selected: { type: Boolean, default: !1 },
801
+ highlighted: { type: Boolean, default: !1 },
802
+ icons: { default: () => pt },
803
+ disabled: { type: Boolean, default: !1 }
804
+ },
805
+ emits: ["select"],
806
+ setup(t, { emit: n }) {
807
+ const e = t;
808
+ function o() {
809
+ e.disabled || n("select", e.value);
810
+ }
811
+ function a(s) {
812
+ s.key === "Tab" && o(), (s.key === "Enter" || s.key === " ") && (s.preventDefault(), s.stopPropagation(), o());
813
+ }
814
+ return (s, l) => (r(), f("li", {
815
+ role: "option",
816
+ tabindex: e.disabled ? void 0 : -2,
817
+ class: T([
818
+ "q-list-item",
819
+ {
820
+ "q-list-item--disabled": e.disabled,
821
+ "q-list-item--selected": e.selected,
822
+ "q-list-item--highlighted": e.highlighted
823
+ }
824
+ ]),
825
+ "aria-label": e.label,
826
+ "aria-selected": e.disabled ? void 0 : e.selected,
827
+ onKeydown: a,
828
+ onClick: H(o, ["stop", "prevent"])
829
+ }, [
830
+ e.icon ? (r(), k(g(O), he(K({ key: 0 }, e.icon)), null, 16)) : b("", !0),
831
+ U(" " + C(e.label) + " ", 1),
832
+ e.selected ? (r(), k(g(O), K({ key: 1 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
833
+ ], 42, ft));
834
+ }
835
+ });
836
+ let mt = 0;
837
+ function ht() {
838
+ return `uid-${++mt}`;
839
+ }
840
+ const yt = ["aria-labelledby"], vt = ["id"], Le = /* @__PURE__ */ _({
841
+ __name: "QListItemGroup",
842
+ props: {
843
+ id: { default: () => ht() },
844
+ title: { default: "" },
845
+ disabled: { type: Boolean, default: !1 }
846
+ },
847
+ setup(t) {
848
+ const n = t;
849
+ return (e, o) => n.title ? (r(), f("ul", {
850
+ key: 1,
851
+ class: "q-list-item-group",
852
+ role: "group",
853
+ "aria-labelledby": n.id
854
+ }, [
855
+ n.title ? (r(), f("li", {
856
+ key: 0,
857
+ id: n.id,
858
+ class: "q-list-item-group__title",
859
+ role: "presentation"
860
+ }, C(n.title), 9, vt)) : b("", !0),
861
+ L(e.$slots, "default")
862
+ ], 8, yt)) : L(e.$slots, "default", { key: 0 });
863
+ }
1350
864
  });
1351
- function ks(e, t, n = "right", r) {
1352
- const o = e.getBoundingClientRect(), a = o.x + window.scrollX, i = o.y + window.scrollY, s = t == null ? void 0 : t.getBoundingClientRect(), l = (s == null ? void 0 : s.width) ?? 0, u = (s == null ? void 0 : s.height) ?? 0;
1353
- let h = n;
1354
- s && !pn(o, s, h) && (h = xs(o, s, h));
1355
- const d = { x: 0, y: 0, placement: h };
1356
- switch (h) {
865
+ A(Se);
866
+ A(Be);
867
+ A(Le);
868
+ function gt(t, n, e = "right", o) {
869
+ const a = t.getBoundingClientRect(), s = a.x + window.scrollX, l = a.y + window.scrollY, c = n == null ? void 0 : n.getBoundingClientRect(), i = (c == null ? void 0 : c.width) ?? 0, p = (c == null ? void 0 : c.height) ?? 0;
870
+ let w = e;
871
+ c && !xe(a, c, w) && (w = bt(a, c, w));
872
+ const m = { x: 0, y: 0, placement: w };
873
+ switch (w) {
1357
874
  case "top":
1358
- r === "anchor" ? d.x = a : d.x = a + (o.width - l) / 2, d.y = i - u;
875
+ o === "anchor" ? m.x = s : m.x = s + (a.width - i) / 2, m.y = l - p;
1359
876
  break;
1360
877
  case "bottom":
1361
- r === "anchor" ? d.x = a : d.x = a + (o.width - l) / 2, d.y = i + o.height;
878
+ o === "anchor" ? m.x = s : m.x = s + (a.width - i) / 2, m.y = l + a.height;
1362
879
  break;
1363
880
  case "left":
1364
- d.x = a - l, d.y = i + o.height / 2 - u / 2;
881
+ m.x = s - i, m.y = l + a.height / 2 - p / 2;
1365
882
  break;
1366
883
  case "right":
1367
- d.x = a + o.width, d.y = i + o.height / 2 - u / 2;
884
+ m.x = s + a.width, m.y = l + a.height / 2 - p / 2;
1368
885
  break;
1369
886
  }
1370
- return r === "anchor" && (d.width = o.width), d;
887
+ return o === "anchor" && (m.width = a.width), m;
1371
888
  }
1372
- function pn(e, t, n) {
1373
- let r = !1, o = !1;
1374
- switch (n) {
889
+ function xe(t, n, e) {
890
+ let o = !1, a = !1;
891
+ switch (e) {
1375
892
  case "top":
1376
- r = St(e, t), o = e.top > t.height;
893
+ o = fe(t, n), a = t.top > n.height;
1377
894
  break;
1378
895
  case "bottom":
1379
- r = St(e, t), o = window.innerHeight - e.top - e.height > t.height;
896
+ o = fe(t, n), a = window.innerHeight - t.top - t.height > n.height;
1380
897
  break;
1381
898
  case "left":
1382
- r = e.left > t.width, o = Tt(e, t);
899
+ o = t.left > n.width, a = de(t, n);
1383
900
  break;
1384
901
  case "right":
1385
- r = window.innerWidth - e.left - e.width > t.width, o = Tt(e, t);
902
+ o = window.innerWidth - t.left - t.width > n.width, a = de(t, n);
1386
903
  break;
1387
904
  }
1388
- return r && o;
905
+ return o && a;
1389
906
  }
1390
- function Tt(e, t) {
1391
- return window.innerHeight - e.top - e.height / 2 > t.height / 2 && e.top + e.height / 2 > t.height / 2;
907
+ function de(t, n) {
908
+ return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
1392
909
  }
1393
- function St(e, t) {
1394
- return window.innerWidth - e.left - e.width / 2 > t.width / 2 && e.left + e.width / 2 > t.width / 2;
910
+ function fe(t, n) {
911
+ return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
1395
912
  }
1396
- function xs(e, t, n) {
1397
- const r = {
913
+ function bt(t, n, e) {
914
+ const o = {
1398
915
  top: ["bottom", "left", "right"],
1399
916
  bottom: ["top", "left", "right"],
1400
917
  left: ["right", "top", "bottom"],
1401
918
  right: ["left", "top", "bottom"]
1402
919
  };
1403
- for (const o of r[n])
1404
- if (pn(e, t, o))
1405
- return o;
1406
- return n;
920
+ for (const a of o[e])
921
+ if (xe(t, n, a))
922
+ return a;
923
+ return e;
1407
924
  }
1408
- function be(e) {
1409
- return typeof e == "string" ? document.querySelector(e) : e && "$el" in e ? e.$el : e;
925
+ function Y(t) {
926
+ return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
1410
927
  }
1411
- const js = {
928
+ const _t = {
1412
929
  key: 0,
1413
930
  class: "q-overlay__arrow"
1414
- }, je = /* @__PURE__ */ O({
931
+ }, oe = /* @__PURE__ */ _({
1415
932
  __name: "QOverlay",
1416
933
  props: {
1417
934
  modelValue: { type: Boolean },
@@ -1430,154 +947,154 @@ const js = {
1430
947
  width: { default: "auto" }
1431
948
  },
1432
949
  emits: ["enter", "leave"],
1433
- setup(e, { emit: t }) {
1434
- const n = e, r = $(() => [
950
+ setup(t, { emit: n }) {
951
+ const e = t, o = y(() => [
1435
952
  "q-overlay",
1436
- `q-overlay--${o.placement}`,
1437
- { "q-overlay--inverted": n.appearance === "inverted" },
1438
- ...n.contentClasses
1439
- ]), o = mn({
1440
- visible: n.modelValue,
953
+ `q-overlay--${a.placement}`,
954
+ { "q-overlay--inverted": e.appearance === "inverted" },
955
+ ...e.contentClasses
956
+ ]), a = Ee({
957
+ visible: e.modelValue,
1441
958
  top: 0,
1442
959
  left: 0,
1443
960
  width: 0,
1444
- placement: n.placement
1445
- }), a = $(() => o.visible && !n.disabled);
961
+ placement: e.placement
962
+ }), s = y(() => a.visible && !e.disabled);
1446
963
  z(
1447
- () => n.modelValue,
1448
- () => o.visible = n.modelValue
964
+ () => e.modelValue,
965
+ () => a.visible = e.modelValue
1449
966
  );
1450
- const i = $(() => {
1451
- let b = 0, A = 0;
1452
- switch (o.placement) {
967
+ const l = y(() => {
968
+ let h = 0, S = 0;
969
+ switch (a.placement) {
1453
970
  case "top":
1454
- A = -(n.offset || 0);
971
+ S = -(e.offset || 0);
1455
972
  break;
1456
973
  case "bottom":
1457
- A = n.offset || 0;
974
+ S = e.offset || 0;
1458
975
  break;
1459
976
  case "left":
1460
- b = -(n.offset || 0);
977
+ h = -(e.offset || 0);
1461
978
  break;
1462
979
  case "right":
1463
- b = n.offset || 0;
980
+ h = e.offset || 0;
1464
981
  break;
1465
982
  }
1466
- const p = {
1467
- top: `${o.top + A}px`,
1468
- left: `${o.left + b}px`
983
+ const u = {
984
+ top: `${a.top + S}px`,
985
+ left: `${a.left + h}px`
1469
986
  };
1470
- return o.width !== void 0 && ["top", "bottom"].includes(o.placement) && (p.width = `${o.width}px`), p;
1471
- }), s = B(null);
1472
- function l() {
1473
- const b = be(n.anchor);
1474
- if (b) {
1475
- const A = ks(b, s.value, n.placement, n.width);
1476
- o.left = A.x, o.top = A.y, o.width = A.width, o.placement = A.placement;
987
+ return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (u.width = `${a.width}px`), u;
988
+ }), c = D(null);
989
+ function i() {
990
+ const h = Y(e.anchor);
991
+ if (h) {
992
+ const S = gt(h, c.value, e.placement, e.width);
993
+ a.left = S.x, a.top = S.y, a.width = S.width, a.placement = S.placement;
1477
994
  }
1478
995
  }
1479
- z([() => a.value, () => n.placement], l);
1480
- let u;
1481
- function h() {
1482
- const b = n.trigger === "hover" ? n.delay : 0;
1483
- u || (u = window.setTimeout(() => o.visible = !0, b));
996
+ z([() => s.value, () => e.placement], i);
997
+ let p;
998
+ function w() {
999
+ const h = e.trigger === "hover" ? e.delay : 0;
1000
+ p || (p = window.setTimeout(() => a.visible = !0, h));
1484
1001
  }
1485
- function d() {
1486
- clearTimeout(u), u = void 0, o.visible = !1;
1002
+ function m() {
1003
+ clearTimeout(p), p = void 0, a.visible = !1;
1487
1004
  }
1488
- function v() {
1489
- a.value ? d() : h();
1005
+ function q() {
1006
+ s.value ? m() : w();
1490
1007
  }
1491
- let w;
1492
- function D() {
1493
- et(() => {
1494
- const b = be(n.anchor);
1495
- if (b)
1496
- switch (n.trigger) {
1008
+ let I;
1009
+ function F() {
1010
+ le(() => {
1011
+ const h = Y(e.anchor);
1012
+ if (h)
1013
+ switch (e.trigger) {
1497
1014
  case "click":
1498
- b.addEventListener("click", v);
1015
+ h.addEventListener("click", q);
1499
1016
  break;
1500
1017
  case "hover":
1501
- b.addEventListener("mouseenter", h), b.addEventListener("mouseleave", d);
1018
+ h.addEventListener("mouseenter", w), h.addEventListener("mouseleave", m);
1502
1019
  break;
1503
1020
  }
1504
1021
  });
1505
1022
  }
1506
- function V() {
1507
- et(() => {
1508
- const b = be(n.anchor);
1509
- b && (window.addEventListener("scroll", l), window.addEventListener("resize", l), w = new MutationObserver(l), w.observe(b, {
1023
+ function M() {
1024
+ le(() => {
1025
+ const h = Y(e.anchor);
1026
+ h && (window.addEventListener("scroll", i), window.addEventListener("resize", i), I = new MutationObserver(i), I.observe(h, {
1510
1027
  attributes: !1,
1511
1028
  childList: !0,
1512
1029
  characterData: !0,
1513
1030
  subtree: !0
1514
- }), l());
1031
+ }), i());
1515
1032
  });
1516
1033
  }
1517
- function T() {
1518
- window.removeEventListener("scroll", l), window.removeEventListener("resize", l), w == null || w.disconnect();
1034
+ function V() {
1035
+ window.removeEventListener("scroll", i), window.removeEventListener("resize", i), I == null || I.disconnect();
1519
1036
  }
1520
- let f;
1521
- function j() {
1522
- be(n.anchor) ? (l(), f = window.setTimeout(j, 100)) : d();
1037
+ let d;
1038
+ function $() {
1039
+ Y(e.anchor) ? (i(), d = window.setTimeout($, 100)) : m();
1523
1040
  }
1524
- function _() {
1525
- V(), n.spy && j();
1041
+ function v() {
1042
+ M(), e.spy && $();
1526
1043
  }
1527
- function E() {
1528
- T(), n.spy && (clearTimeout(f), f = void 0);
1044
+ function x() {
1045
+ V(), e.spy && (clearTimeout(d), d = void 0);
1529
1046
  }
1530
- return vn(E), _n(l), z(
1531
- () => n.disabled,
1532
- (b) => {
1533
- b || D();
1047
+ return Ie(x), Te(i), z(
1048
+ () => e.disabled,
1049
+ (h) => {
1050
+ h || F();
1534
1051
  },
1535
1052
  { immediate: !0 }
1536
1053
  ), z(
1537
- () => a.value,
1538
- (b) => {
1539
- b ? _() : E();
1054
+ () => s.value,
1055
+ (h) => {
1056
+ h ? v() : x();
1540
1057
  },
1541
1058
  { immediate: !0 }
1542
- ), (b, A) => (c(), g(N, null, [
1543
- I(b.$slots, "trigger", { open: a.value }),
1544
- (c(), x($n, {
1545
- to: n.attach
1059
+ ), (h, S) => (r(), f(Q, null, [
1060
+ L(h.$slots, "trigger", { open: s.value }),
1061
+ (r(), k(Ce, {
1062
+ to: e.attach
1546
1063
  }, [
1547
- ae(wn, {
1548
- name: n.transition,
1064
+ N(Ve, {
1065
+ name: e.transition,
1549
1066
  appear: "",
1550
- onEnter: A[0] || (A[0] = (p) => t("enter")),
1551
- onLeave: A[1] || (A[1] = (p) => t("leave"))
1067
+ onEnter: S[0] || (S[0] = (u) => n("enter")),
1068
+ onLeave: S[1] || (S[1] = (u) => n("leave"))
1552
1069
  }, {
1553
- default: L(() => [
1554
- a.value ? (c(), g("div", {
1070
+ default: E(() => [
1071
+ s.value ? (r(), f("div", {
1555
1072
  key: 0,
1556
- class: M(r.value),
1557
- style: fe(i.value)
1073
+ class: T(o.value),
1074
+ style: W(l.value)
1558
1075
  }, [
1559
- me("div", {
1560
- class: M(["q-overlay__content"]),
1076
+ X("div", {
1077
+ class: T(["q-overlay__content"]),
1561
1078
  ref_key: "overlay",
1562
- ref: s
1079
+ ref: c
1563
1080
  }, [
1564
- n.arrow ? (c(), g("div", js)) : S("", !0),
1565
- I(b.$slots, "default")
1081
+ e.arrow ? (r(), f("div", _t)) : b("", !0),
1082
+ L(h.$slots, "default")
1566
1083
  ], 512)
1567
- ], 6)) : S("", !0)
1084
+ ], 6)) : b("", !0)
1568
1085
  ]),
1569
1086
  _: 3
1570
1087
  }, 8, ["name"])
1571
1088
  ], 8, ["to"]))
1572
1089
  ], 64));
1573
1090
  }
1574
- }), As = {
1091
+ }), kt = {
1575
1092
  key: 0,
1576
1093
  class: "q-popover__header"
1577
- }, Cs = {
1094
+ }, wt = {
1578
1095
  key: 1,
1579
1096
  class: "q-popover__body"
1580
- }, Is = ["innerHTML"], Es = { key: 1 }, Bs = /* @__PURE__ */ O({
1097
+ }, $t = ["innerHTML"], St = { key: 1 }, zt = /* @__PURE__ */ _({
1581
1098
  __name: "QPopover",
1582
1099
  props: {
1583
1100
  modelValue: { type: Boolean },
@@ -1591,48 +1108,58 @@ const js = {
1591
1108
  text: {},
1592
1109
  title: {}
1593
1110
  },
1594
- setup(e) {
1595
- const t = e;
1596
- return (n, r) => (c(), x(k(je), {
1597
- "model-value": t.modelValue,
1111
+ setup(t) {
1112
+ const n = t;
1113
+ return (e, o) => (r(), k(g(oe), {
1114
+ "model-value": n.modelValue,
1598
1115
  trigger: "click",
1599
- anchor: t.anchor,
1600
- arrow: t.arrow,
1601
- attach: t.attach,
1116
+ anchor: n.anchor,
1117
+ arrow: n.arrow,
1118
+ attach: n.attach,
1602
1119
  "content-classes": ["q-popover"],
1603
- disabled: t.disabled,
1604
- placement: t.placement,
1605
- spy: t.spy
1120
+ disabled: n.disabled,
1121
+ placement: n.placement,
1122
+ spy: n.spy
1606
1123
  }, {
1607
- default: L(() => [
1608
- t.title || n.$slots.header ? (c(), g("h3", As, [
1609
- se(q(t.title) + " ", 1),
1610
- I(n.$slots, "header")
1611
- ])) : S("", !0),
1612
- t.text || n.$slots.body ? (c(), g("div", Cs, [
1613
- t.html ? (c(), g("span", {
1124
+ default: E(() => [
1125
+ n.title || e.$slots.header ? (r(), f("h3", kt, [
1126
+ U(C(n.title) + " ", 1),
1127
+ L(e.$slots, "header")
1128
+ ])) : b("", !0),
1129
+ n.text || e.$slots.body ? (r(), f("div", wt, [
1130
+ n.html ? (r(), f("span", {
1614
1131
  key: 0,
1615
- innerHTML: t.text
1616
- }, null, 8, Is)) : (c(), g("span", Es, q(t.text), 1)),
1617
- I(n.$slots, "body")
1618
- ])) : S("", !0)
1132
+ innerHTML: n.text
1133
+ }, null, 8, $t)) : (r(), f("span", St, C(n.text), 1)),
1134
+ L(e.$slots, "body")
1135
+ ])) : b("", !0)
1619
1136
  ]),
1620
1137
  _: 3
1621
1138
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
1622
1139
  }
1623
- }), Ls = {
1140
+ }), Bt = {
1141
+ mounted(t, n) {
1142
+ t.clickOutsideEvent = function(e) {
1143
+ const o = e.target;
1144
+ n.arg ? t === o || t.contains(o) || o.closest(n.arg) || n.value(e, t) : t === o || t.contains(o) || n.value(e, t);
1145
+ }, document.addEventListener("click", t.clickOutsideEvent);
1146
+ },
1147
+ unmounted(t) {
1148
+ document.removeEventListener("click", t.clickOutsideEvent);
1149
+ }
1150
+ }, Lt = {
1624
1151
  key: 1,
1625
1152
  class: "q-select__placeholder"
1626
- }, Ds = {
1153
+ }, xt = {
1627
1154
  placeholder: "Choose..."
1628
- }, Ps = {
1155
+ }, qt = {
1629
1156
  chevron: {
1630
1157
  name: "chevron-down"
1631
1158
  },
1632
1159
  clear: {
1633
1160
  name: "close"
1634
1161
  }
1635
- }, Ms = /* @__PURE__ */ O({
1162
+ }, Qt = /* @__PURE__ */ _({
1636
1163
  __name: "QSelect",
1637
1164
  props: {
1638
1165
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1640,169 +1167,168 @@ const js = {
1640
1167
  readonly: { type: Boolean },
1641
1168
  disabled: { type: Boolean, default: !1 },
1642
1169
  loading: { type: Boolean, default: !1 },
1643
- icons: { default: () => Ps },
1170
+ icons: { default: () => qt },
1644
1171
  items: {},
1645
1172
  groups: { default: () => [] },
1646
1173
  itemValue: { default: "key" },
1647
1174
  itemLabel: { default: "label" },
1648
1175
  size: { default: "medium" },
1649
- texts: { default: () => Ds }
1176
+ texts: { default: () => xt }
1650
1177
  },
1651
1178
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1652
- setup(e, { emit: t }) {
1653
- const n = e, r = B(n.modelValue), o = B(!1), a = B(""), i = B(null), s = B(null), l = B(null), u = $(
1179
+ setup(t, { emit: n }) {
1180
+ const e = t, o = D(e.modelValue), a = D(!1), s = D(""), l = D(null), c = D(null), i = D(null), p = y(
1654
1181
  () => {
1655
- var p;
1656
- return (p = n.items) == null ? void 0 : p.find((C) => C[n.itemValue] === r.value);
1182
+ var u;
1183
+ return (u = e.items) == null ? void 0 : u.find((B) => B[e.itemValue] === o.value);
1657
1184
  }
1658
- ), h = $(
1659
- () => u.value ? u.value[n.itemLabel] : ""
1660
- ), d = $(
1661
- () => n.clearable && !n.readonly && !n.disabled && !n.loading
1185
+ ), w = y(
1186
+ () => p.value ? p.value[e.itemLabel] : ""
1187
+ ), m = y(
1188
+ () => e.clearable && !e.readonly && !e.disabled && !e.loading
1662
1189
  );
1663
- function v() {
1664
- d.value && (r.value = void 0, t("update:modelValue", r.value), T());
1190
+ function q() {
1191
+ m.value && (o.value = void 0, n("update:modelValue", o.value), V());
1665
1192
  }
1666
- function w() {
1667
- n.readonly || n.disabled || (o.value ? T() : V());
1193
+ function I() {
1194
+ e.readonly || e.disabled || (a.value ? V() : M());
1668
1195
  }
1669
- function D(p) {
1670
- var C;
1671
- (C = i.value) != null && C.$el.contains(p.target) || T();
1196
+ function F(u) {
1197
+ var B;
1198
+ (B = l.value) != null && B.$el.contains(u.target) || V();
1672
1199
  }
1673
- function V() {
1674
- o.value || (t("before-show"), o.value = !0);
1200
+ function M() {
1201
+ a.value || (n("before-show"), a.value = !0);
1675
1202
  }
1676
- function T() {
1677
- o.value && (t("before-hide"), o.value = !1);
1203
+ function V() {
1204
+ a.value && (n("before-hide"), a.value = !1);
1678
1205
  }
1679
- let f;
1680
- function j(p) {
1681
- if (!(!p.key || n.readonly || n.disabled)) {
1682
- if (window.clearTimeout(f), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && (p.preventDefault(), p.stopPropagation()), ["Enter", " "].includes(p.key) && (o.value = !0), ["Escape", "Tab"].includes(p.key) && (o.value ? o.value = !1 : n.clearable && p.key === "Escape" && v()), p.key === "Delete" && n.clearable && v(), /^[a-z]$/i.test(p.key)) {
1683
- a.value += p.key.toLowerCase();
1684
- for (let C = 0; C < n.items.length; C++)
1685
- if (n.items[C][n.itemLabel].toLowerCase().startsWith(a.value)) {
1686
- A(C);
1206
+ let d;
1207
+ function $(u) {
1208
+ if (!(!u.key || e.readonly || e.disabled)) {
1209
+ if (window.clearTimeout(d), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (a.value = !0), ["Escape", "Tab"].includes(u.key) && (a.value ? a.value = !1 : e.clearable && u.key === "Escape" && q()), u.key === "Delete" && e.clearable && q(), /^[a-z]$/i.test(u.key)) {
1210
+ s.value += u.key.toLowerCase();
1211
+ for (let B = 0; B < e.items.length; B++)
1212
+ if (e.items[B][e.itemLabel].toLowerCase().startsWith(s.value)) {
1213
+ S(B);
1687
1214
  break;
1688
1215
  }
1689
1216
  }
1690
- f = window.setTimeout(function() {
1691
- a.value = "";
1217
+ d = window.setTimeout(function() {
1218
+ s.value = "";
1692
1219
  }, 500);
1693
1220
  }
1694
1221
  }
1695
- function _() {
1696
- var p;
1697
- (p = s.value) == null || p.$el.focus(), t("show");
1222
+ function v() {
1223
+ var u;
1224
+ (u = c.value) == null || u.$el.focus(), n("show");
1698
1225
  }
1699
- function E() {
1700
- b(), t("hide");
1226
+ function x() {
1227
+ h(), n("hide");
1701
1228
  }
1702
- function b() {
1703
- var p;
1704
- (p = i.value) == null || p.$el.focus();
1229
+ function h() {
1230
+ var u;
1231
+ (u = l.value) == null || u.$el.focus();
1705
1232
  }
1706
- function A(p) {
1707
- var C;
1708
- (C = s.value) == null || C.focusItem(p);
1233
+ function S(u) {
1234
+ var B;
1235
+ (B = c.value) == null || B.focusItem(u);
1709
1236
  }
1710
1237
  return z(
1711
- () => n.modelValue,
1712
- (p) => {
1713
- r.value = p;
1238
+ () => e.modelValue,
1239
+ (u) => {
1240
+ o.value = u;
1714
1241
  }
1715
- ), (p, C) => {
1716
- var Xe, Je;
1717
- const Ye = Tn("click-outside");
1718
- return c(), g(N, null, [
1719
- ae(k(cn), {
1242
+ ), (u, B) => {
1243
+ var Z, ae;
1244
+ return r(), f(Q, null, [
1245
+ N(g(rt), {
1720
1246
  ref_key: "inputRef",
1721
- ref: i,
1247
+ ref: l,
1722
1248
  role: "combobox",
1723
1249
  tabindex: "0",
1724
- class: M([
1250
+ class: T([
1725
1251
  "q-select",
1726
1252
  {
1727
- "q-select--readonly": n.readonly,
1728
- "q-select--disabled": n.disabled,
1729
- "q-select--expanded": o.value
1253
+ "q-select--readonly": e.readonly,
1254
+ "q-select--disabled": e.disabled,
1255
+ "q-select--expanded": a.value
1730
1256
  }
1731
1257
  ]),
1732
1258
  readonly: "",
1733
- disabled: n.disabled,
1734
- "aria-expanded": o.value,
1259
+ disabled: e.disabled,
1260
+ "aria-expanded": a.value,
1735
1261
  "aria-haspopup": "listbox",
1736
- size: n.size,
1737
- onClick: w,
1738
- onKeydown: oe(j, ["stop"])
1739
- }, Sn({
1740
- append: L(() => [
1741
- d.value && r.value ? (c(), x(k(Y), le({ key: 0 }, n.icons.clear, {
1262
+ size: e.size,
1263
+ onClick: I,
1264
+ onKeydown: H($, ["stop"])
1265
+ }, ze({
1266
+ append: E(() => [
1267
+ m.value && o.value ? (r(), k(g(O), K({ key: 0 }, e.icons.clear, {
1742
1268
  class: "q-select__clear",
1743
- onClick: oe(v, ["stop", "prevent"])
1744
- }), null, 16, ["onClick"])) : S("", !0),
1745
- !n.readonly && !n.disabled ? (c(), x(k(Y), le({ key: 1 }, n.icons.chevron, { class: "q-select__chevron" }), null, 16)) : S("", !0)
1269
+ onClick: H(q, ["stop", "prevent"])
1270
+ }), null, 16, ["onClick"])) : b("", !0),
1271
+ !e.readonly && !e.disabled ? (r(), k(g(O), K({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : b("", !0)
1746
1272
  ]),
1747
- default: L(() => [
1748
- r.value ? (c(), g(N, { key: 0 }, [
1749
- se(q(h.value), 1)
1750
- ], 64)) : (c(), g("span", Ls, q(p.texts.placeholder), 1))
1273
+ default: E(() => [
1274
+ o.value ? (r(), f(Q, { key: 0 }, [
1275
+ U(C(w.value), 1)
1276
+ ], 64)) : (r(), f("span", Lt, C(u.texts.placeholder), 1))
1751
1277
  ]),
1752
1278
  _: 2
1753
1279
  }, [
1754
- (Xe = u.value) != null && Xe.icon ? {
1280
+ (Z = p.value) != null && Z.icon ? {
1755
1281
  name: "prepend",
1756
- fn: L(() => {
1757
- var ge;
1282
+ fn: E(() => {
1283
+ var G;
1758
1284
  return [
1759
- ae(k(Y), It(On((ge = u.value) == null ? void 0 : ge.icon)), null, 16)
1285
+ N(g(O), he(Qe((G = p.value) == null ? void 0 : G.icon)), null, 16)
1760
1286
  ];
1761
1287
  }),
1762
1288
  key: "0"
1763
1289
  } : void 0
1764
1290
  ]), 1032, ["class", "disabled", "aria-expanded", "size", "onKeydown"]),
1765
- ae(k(je), {
1766
- "model-value": o.value,
1291
+ N(g(oe), {
1292
+ "model-value": a.value,
1767
1293
  spy: "",
1768
1294
  trigger: "manual",
1769
1295
  placement: "bottom",
1770
1296
  width: "anchor",
1771
1297
  offset: 2,
1772
- anchor: (Je = i.value) == null ? void 0 : Je.$el,
1773
- onEnter: _,
1774
- onLeave: E
1298
+ anchor: (ae = l.value) == null ? void 0 : ae.$el,
1299
+ onEnter: v,
1300
+ onLeave: x
1775
1301
  }, {
1776
- default: L(() => [
1777
- kn((c(), g("div", {
1302
+ default: E(() => [
1303
+ Ae((r(), f("div", {
1778
1304
  ref_key: "contentRef",
1779
- ref: l,
1305
+ ref: i,
1780
1306
  class: "q-select__body"
1781
1307
  }, [
1782
- I(p.$slots, "body.prepend"),
1783
- n.loading ? (c(), x(k(Ve), {
1308
+ L(u.$slots, "body.prepend"),
1309
+ e.loading ? (r(), k(g(ne), {
1784
1310
  key: 0,
1785
1311
  class: "q-select__loader",
1786
1312
  size: 24
1787
- })) : (c(), x(k(dn), {
1313
+ })) : (r(), k(g(Se), {
1788
1314
  key: 1,
1789
1315
  ref_key: "listRef",
1790
- ref: s,
1316
+ ref: c,
1791
1317
  class: "q-select__items",
1792
- modelValue: r.value,
1318
+ modelValue: o.value,
1793
1319
  "onUpdate:modelValue": [
1794
- C[0] || (C[0] = (ge) => r.value = ge),
1795
- T
1320
+ B[0] || (B[0] = (G) => o.value = G),
1321
+ V
1796
1322
  ],
1797
- items: n.items,
1798
- groups: p.groups,
1799
- "item-label": n.itemLabel,
1800
- "item-value": n.itemValue,
1801
- onKeydown: oe(j, ["stop"])
1323
+ items: e.items,
1324
+ groups: u.groups,
1325
+ "item-label": e.itemLabel,
1326
+ "item-value": e.itemValue,
1327
+ onKeydown: H($, ["stop"])
1802
1328
  }, null, 8, ["modelValue", "items", "groups", "item-label", "item-value", "onKeydown"])),
1803
- I(p.$slots, "body.append")
1329
+ L(u.$slots, "body.append")
1804
1330
  ])), [
1805
- [Ye, D]
1331
+ [g(Bt), F]
1806
1332
  ])
1807
1333
  ]),
1808
1334
  _: 3
@@ -1810,7 +1336,7 @@ const js = {
1810
1336
  ], 64);
1811
1337
  };
1812
1338
  }
1813
- }), qs = ["innerHTML"], Fs = { key: 1 }, Vs = /* @__PURE__ */ O({
1339
+ }), Dt = ["innerHTML"], Et = { key: 1 }, At = /* @__PURE__ */ _({
1814
1340
  __name: "QTooltip",
1815
1341
  props: {
1816
1342
  modelValue: { type: Boolean },
@@ -1825,310 +1351,51 @@ const js = {
1825
1351
  text: {},
1826
1352
  trigger: { default: "hover" }
1827
1353
  },
1828
- setup(e) {
1829
- const t = e;
1830
- return (n, r) => (c(), x(k(je), {
1831
- "model-value": t.modelValue,
1832
- anchor: t.anchor,
1833
- appearance: t.appearance,
1834
- arrow: t.arrow,
1835
- attach: t.attach,
1354
+ setup(t) {
1355
+ const n = t;
1356
+ return (e, o) => (r(), k(g(oe), {
1357
+ "model-value": n.modelValue,
1358
+ anchor: n.anchor,
1359
+ appearance: n.appearance,
1360
+ arrow: n.arrow,
1361
+ attach: n.attach,
1836
1362
  "content-classes": ["q-tooltip"],
1837
- delay: t.delay,
1838
- disabled: t.disabled,
1839
- placement: t.placement,
1840
- trigger: t.trigger
1363
+ delay: n.delay,
1364
+ disabled: n.disabled,
1365
+ placement: n.placement,
1366
+ trigger: n.trigger
1841
1367
  }, {
1842
- default: L(() => [
1843
- t.html ? (c(), g("span", {
1368
+ default: E(() => [
1369
+ n.html ? (r(), f("span", {
1844
1370
  key: 0,
1845
- innerHTML: t.text
1846
- }, null, 8, qs)) : (c(), g("span", Fs, q(t.text), 1))
1371
+ innerHTML: n.text
1372
+ }, null, 8, Dt)) : (r(), f("span", Et, C(n.text), 1))
1847
1373
  ]),
1848
1374
  _: 1
1849
1375
  }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
1850
1376
  }
1851
- }), zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1852
- __proto__: null,
1853
- QButton: Et,
1854
- QButtonGroup: ln,
1855
- QButtonToggle: as,
1856
- QIcon: Y,
1857
- QIconFont: is,
1858
- QIconImg: ls,
1859
- QIconSvg: ds,
1860
- QInput: cn,
1861
- QLineLoader: vs,
1862
- QList: dn,
1863
- QListItem: un,
1864
- QListItemGroup: fn,
1865
- QOverlay: je,
1866
- QPopover: Bs,
1867
- QSelect: Ms,
1868
- QSpinnerLoader: Ve,
1869
- QTooltip: Vs
1870
- }, Symbol.toStringTag, { value: "Module" })), Ns = {
1871
- mounted(e, t) {
1872
- e.clickOutsideEvent = function(n) {
1873
- const r = n.target;
1874
- t.arg ? e === r || e.contains(r) || r.closest(t.arg) || t.value(n, e) : e === r || e.contains(r) || t.value(n, e);
1875
- }, document.addEventListener("click", e.clickOutsideEvent);
1876
- },
1877
- unmounted(e) {
1878
- document.removeEventListener("click", e.clickOutsideEvent);
1879
- }
1880
- }, Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1881
- __proto__: null,
1882
- clickOutside: Ns
1883
- }, Symbol.toStringTag, { value: "Module" })), Ot = {
1884
- primary: "#00a1f8",
1885
- primaryLight: "#e5f6ff",
1886
- primaryDark: "#0079ba",
1887
- secondary: "#11294d",
1888
- secondaryLight: "#707f94",
1889
- secondaryDark: "#040a13",
1890
- highlight: "#DF640A",
1891
- background: "#fff",
1892
- container: "#fff",
1893
- info: "#17a2b8",
1894
- infoLight: "#bceff7",
1895
- infoDark: "#11798a",
1896
- success: "#28a745",
1897
- successLight: "#c2f0cd",
1898
- successDark: "#1e7d34",
1899
- warning: "#ffa900",
1900
- warningLight: "#ffeabf",
1901
- warningDark: "#bf7f00",
1902
- danger: "#b71c1c",
1903
- dangerLight: "#f5bebe",
1904
- dangerDark: "#891515",
1905
- onBackground: "#1e2436",
1906
- onPrimary: "#fff",
1907
- onSecondary: "#fff",
1908
- onHighlight: "#fff",
1909
- onSuccess: "#fff",
1910
- onWarning: "#fff",
1911
- onDanger: "#fff",
1912
- onInfo: "#fff"
1913
- }, Rs = {
1914
- primary: "#018BD2",
1915
- primaryLight: "#cce7f6",
1916
- primaryDark: "#006fac",
1917
- secondary: "#11294d",
1918
- secondaryLight: "#707f94",
1919
- secondaryDark: "#040a13",
1920
- highlight: "#FFAD54",
1921
- background: "#1e2436",
1922
- container: "#21323d",
1923
- info: "#3DB6D1",
1924
- infoLight: "#5aa2bc",
1925
- infoDark: "#0c616a",
1926
- success: "#00C781",
1927
- successLight: "#6bae78",
1928
- successDark: "#0f3b16",
1929
- warning: "#FFD860",
1930
- warningLight: "#ffd07a",
1931
- warningDark: "#cc8000",
1932
- danger: "#FC4B6C",
1933
- dangerLight: "#FF7A88",
1934
- dangerDark: "#B21929",
1935
- onBackground: "#fff",
1936
- onPrimary: "#fff",
1937
- onSecondary: "#fff",
1938
- onHighlight: "#fff",
1939
- onSuccess: "#fff",
1940
- onWarning: "#fff",
1941
- onDanger: "#fff",
1942
- onInfo: "#fff"
1943
- };
1944
- function hn(e) {
1945
- if (!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(e))
1946
- throw new Error("Invalid color format");
1947
- e.length === 4 && (e = "#" + e[1] + e[1] + e[2] + e[2] + e[3] + e[3]);
1948
- const t = parseInt(e.slice(1, 3), 16), n = parseInt(e.slice(3, 5), 16), r = parseInt(e.slice(5, 7), 16);
1949
- return { r: t, g: n, b: r };
1950
- }
1951
- function Qs(e, t) {
1952
- if (t < 0 || t > 100)
1953
- throw new Error("Amount must be in the range [0, 100]");
1954
- if (t === 0)
1955
- return e;
1956
- const n = gn(e), r = t / 100;
1957
- return n.l = n.l + r * (100 - n.l), bn(n);
1958
- }
1959
- function Hs(e, t) {
1960
- if (t < 0 || t > 100)
1961
- throw new Error("Amount must be in the range [0, 100]");
1962
- if (t === 0)
1963
- return e;
1964
- const n = gn(e), r = t / 100;
1965
- return n.l = n.l - r * n.l, bn(n);
1966
- }
1967
- function kt(e) {
1968
- const t = e.r.toString(16).padStart(2, "0"), n = e.g.toString(16).padStart(2, "0"), r = e.b.toString(16).padStart(2, "0");
1969
- return `#${t}${n}${r}`;
1970
- }
1971
- function gn(e) {
1972
- const t = e.r / 255, n = e.g / 255, r = e.b / 255, o = Math.max(t, n, r), a = Math.min(t, n, r);
1973
- let i = 0, s;
1974
- const l = (o + a) / 2;
1975
- if (o === a)
1976
- i = s = 0;
1977
- else {
1978
- const u = o - a;
1979
- switch (s = l > 0.5 ? u / (2 - o - a) : u / (o + a), o) {
1980
- case t:
1981
- i = (n - r) / u + (n < r ? 6 : 0);
1982
- break;
1983
- case n:
1984
- i = (r - t) / u + 2;
1985
- break;
1986
- case r:
1987
- i = (t - n) / u + 4;
1988
- break;
1989
- }
1990
- i /= 6;
1991
- }
1992
- return {
1993
- h: Math.round(i * 360),
1994
- s: Math.round(s * 100),
1995
- l: Math.round(l * 100)
1996
- };
1997
- }
1998
- function bn(e) {
1999
- const t = e.h / 360, n = e.s / 100, r = e.l / 100;
2000
- let o, a, i;
2001
- if (n === 0)
2002
- o = a = i = r;
2003
- else {
2004
- const s = r < 0.5 ? r * (1 + n) : r + n - r * n, l = 2 * r - s;
2005
- o = Ee(l, s, t + 1 / 3), a = Ee(l, s, t), i = Ee(l, s, t - 1 / 3);
2006
- }
2007
- return {
2008
- r: Math.round(o * 255),
2009
- g: Math.round(a * 255),
2010
- b: Math.round(i * 255)
2011
- };
2012
- }
2013
- function Ee(e, t, n) {
2014
- return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
2015
- }
2016
- const $e = "q-theme";
2017
- function Zs() {
2018
- const e = At($e);
2019
- if (!e)
2020
- throw new Error("[framework] Could not find theme instance");
2021
- return e;
2022
- }
2023
- function Gs(e, t) {
2024
- let n = null;
2025
- if (t)
2026
- for (const r of t.themes) {
2027
- const o = r.mode === "light" ? Ot : Rs;
2028
- if (r.colors) {
2029
- let a;
2030
- for (a in r.colors) {
2031
- const i = r.colors[a];
2032
- if (i && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
2033
- const s = hn(i), l = `${a}Light`, u = `${a}Dark`;
2034
- l in r.colors || (r.colors[l] = kt(Qs(s, 85))), u in r.colors || (r.colors[u] = kt(Hs(s, 25)));
2035
- }
2036
- }
2037
- }
2038
- r.colors = an(o, r.colors), r.name === t.defaultTheme && (n = r);
2039
- }
2040
- else {
2041
- const r = "default";
2042
- n = {
2043
- name: r,
2044
- mode: "light",
2045
- colors: Ot
2046
- }, t = {
2047
- defaultTheme: r,
2048
- themes: [n]
2049
- };
2050
- }
2051
- if (n) {
2052
- const r = B({
2053
- activeTheme: n.name,
2054
- themes: t.themes
2055
- });
2056
- z(
2057
- () => r.value.activeTheme,
2058
- (o) => {
2059
- const a = r.value.themes.find((i) => i.name === o);
2060
- a && Ks(a.colors);
2061
- },
2062
- { immediate: !0 }
2063
- ), e.provide($e, r);
2064
- }
2065
- }
2066
- function Ks(e) {
2067
- let t = document.getElementById(
2068
- $e
2069
- );
2070
- t || (t = document.createElement("style"), t.type = "text/css", t.id = $e, document.head.appendChild(t));
2071
- let n = `:root {
2072
- `, r;
2073
- for (r in e) {
2074
- const o = e[r];
2075
- if (o) {
2076
- n += ` ${xt(r)}: ${o};
2077
- `;
2078
- const a = hn(o);
2079
- n += ` ${xt(r)}-rgb: ${a.r} ${a.g} ${a.b};
2080
- `;
2081
- }
2082
- }
2083
- n += "}", t.textContent = n;
2084
- }
2085
- function xt(e) {
2086
- return e ? `--q-theme-${e.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
2087
- }
2088
- function Ws(e, t) {
2089
- var n;
2090
- return typeof ((n = e.props) == null ? void 0 : n[t]) < "u";
2091
- }
2092
- function Ys(e) {
2093
- const t = e.setup;
2094
- return t && (e.setup = (n, r) => {
2095
- const o = rs();
2096
- if (ts(o))
2097
- return t(n, r);
2098
- const a = jt();
2099
- if (a === null)
2100
- return t(n, r);
2101
- const i = new Proxy(n, {
2102
- get(s, l) {
2103
- const u = Reflect.get(s, l), h = k(o[l]);
2104
- return l === "class" || l === "style" ? [h, u].filter((d) => d != null) : typeof l == "string" && !Ws(a.vnode, l) ? h ?? u : u;
2105
- }
2106
- });
2107
- return t(i, r);
2108
- }), e;
2109
- }
2110
- function Xs(e, t, n) {
2111
- return { install: (o) => {
2112
- for (const i in e)
2113
- o.component(i, Ys(e[i]));
2114
- for (const i in t)
2115
- o.directive(i, t[i]);
2116
- const a = (n == null ? void 0 : n.defaults) || {};
2117
- o.provide(We, a), Gs(o, n == null ? void 0 : n.themes);
2118
- } };
2119
- }
2120
- const el = (e) => Xs(zs, Us, e);
1377
+ });
2121
1378
  export {
2122
- We as DEFAULTS_SYMBOL,
2123
- $e as THEME_SYMBOL,
2124
- ks as computePosition,
2125
- el as createFramework,
2126
- Ks as generateRootStyle,
2127
- sn as injectDefaults,
2128
- Gs as installThemes,
2129
- os as provideDefaults,
2130
- xt as toProperty,
2131
- rs as useDefaults,
2132
- Zs as useTheme
1379
+ Pe as QButton,
1380
+ et as QButtonGroup,
1381
+ Ct as QButtonToggle,
1382
+ O as QIcon,
1383
+ ke as QIconFont,
1384
+ we as QIconImg,
1385
+ $e as QIconSvg,
1386
+ rt as QInput,
1387
+ Vt as QLineLoader,
1388
+ Se as QList,
1389
+ Be as QListItem,
1390
+ Le as QListItemGroup,
1391
+ oe as QOverlay,
1392
+ zt as QPopover,
1393
+ Qt as QSelect,
1394
+ ne as QSpinnerLoader,
1395
+ At as QTooltip,
1396
+ Bt as clickOutside,
1397
+ Tt as createFramework,
1398
+ Me as defaultDarkColorScheme,
1399
+ ie as defaultLightColorScheme
2133
1400
  };
2134
1401
  //# sourceMappingURL=ui.esm.js.map