@quidgest/ui 0.4.0 → 0.5.1

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 +1588 -0
  2. package/dist/ui.esm.js +892 -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 +170 -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,254 @@
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.directives || {};
244
+ for (const s in o)
245
+ e.directive(s, o[s]);
246
+ const a = t.defaults || {};
247
+ e.provide(te, a), Ne(e, t.themes);
248
+ } };
249
+ }
250
+ const We = /* @__PURE__ */ X("svg", { viewBox: "25 25 50 50" }, [
251
+ /* @__PURE__ */ X("circle", {
4
252
  class: "path",
5
253
  cx: "50",
6
254
  cy: "50",
@@ -10,26 +258,53 @@ const xn = /* @__PURE__ */ me("svg", { viewBox: "25 25 50 50" }, [
10
258
  "stroke-width": "5",
11
259
  "stroke-miterlimit": "10"
12
260
  })
13
- ], -1), jn = [
14
- xn
15
- ], Ve = /* @__PURE__ */ O({
261
+ ], -1), Ge = [
262
+ We
263
+ ], ne = /* @__PURE__ */ _({
16
264
  __name: "QSpinnerLoader",
17
265
  props: {
18
266
  size: { default: 48 }
19
267
  },
20
- setup(e) {
21
- const t = e, n = $(() => ({
22
- "font-size": t.size !== 48 ? `${t.size}px` : void 0
268
+ setup(t) {
269
+ const n = t, e = y(() => ({
270
+ "font-size": n.size !== 48 ? `${n.size}px` : void 0
23
271
  }));
24
- return (r, o) => (c(), g("div", {
272
+ return (o, a) => (r(), f("div", {
25
273
  class: "q-spinner-loader",
26
- style: fe(n.value)
27
- }, jn, 4));
274
+ style: W(e.value)
275
+ }, Ge, 4));
28
276
  }
29
- }), An = ["disabled", "onClick"], Cn = {
277
+ });
278
+ function Ye(t) {
279
+ return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
280
+ }
281
+ function Xe(t, n) {
282
+ var e;
283
+ return typeof ((e = t.props) == null ? void 0 : e[n]) < "u";
284
+ }
285
+ function A(t) {
286
+ const n = t.setup;
287
+ return n && (t.setup = (e, o) => {
288
+ const a = Oe();
289
+ if (Ye(a))
290
+ return n(e, o);
291
+ const s = pe();
292
+ if (s === null)
293
+ return n(e, o);
294
+ const l = new Proxy(e, {
295
+ get(c, i) {
296
+ const p = Reflect.get(c, i), w = g(a[i]);
297
+ return i === "class" || i === "style" ? [w, p].filter((m) => m != null) : typeof i == "string" && !Xe(s.vnode, i) ? w ?? p : p;
298
+ }
299
+ });
300
+ return n(l, o);
301
+ }), t;
302
+ }
303
+ A(ne);
304
+ const Ze = ["disabled", "onClick"], je = {
30
305
  key: 0,
31
306
  class: "q-btn__spinner"
32
- }, In = { class: "q-btn__content" }, Et = /* @__PURE__ */ O({
307
+ }, Je = { class: "q-btn__content" }, Pe = /* @__PURE__ */ _({
33
308
  __name: "QButton",
34
309
  props: {
35
310
  active: { type: Boolean },
@@ -44,827 +319,47 @@ const xn = /* @__PURE__ */ me("svg", { viewBox: "25 25 50 50" }, [
44
319
  size: { default: "regular" }
45
320
  },
46
321
  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);
322
+ setup(t, { emit: n }) {
323
+ const e = t, o = y(() => e.disabled || e.loading);
324
+ function a(l) {
325
+ o.value || n("click", l);
51
326
  }
52
- const a = $(() => {
53
- const i = $(() => n.bStyle ? `q-btn--${n.bStyle}` : void 0), s = $(() => n.size !== "regular" ? `q-btn--${n.size}` : void 0);
327
+ const s = y(() => {
328
+ const l = y(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), c = y(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
54
329
  return [
55
330
  "q-btn",
56
- i.value,
57
- s.value,
331
+ l.value,
332
+ c.value,
58
333
  {
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
334
+ "q-btn--active": e.active,
335
+ "q-btn--borderless": e.borderless,
336
+ "q-btn--elevated": e.elevated,
337
+ "q-btn--block": e.block,
338
+ "q-btn--loading": e.loading
64
339
  }
65
340
  ];
66
341
  });
67
- return (i, s) => (c(), g("button", {
342
+ return (l, c) => (r(), f("button", {
68
343
  type: "button",
69
- class: M(a.value),
70
- disabled: r.value,
71
- onClick: oe(o, ["stop", "prevent"])
344
+ class: T(s.value),
345
+ disabled: o.value,
346
+ onClick: H(a, ["stop", "prevent"])
72
347
  }, [
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)
348
+ l.loading ? (r(), f("div", je, [
349
+ N(g(ne), { size: 23 })
350
+ ])) : b("", !0),
351
+ X("span", Je, [
352
+ l.iconOnRight ? (r(), f(Q, { key: 0 }, [
353
+ U(C(e.label), 1)
354
+ ], 64)) : b("", !0),
355
+ L(l.$slots, "default"),
356
+ l.iconOnRight ? b("", !0) : (r(), f(Q, { key: 1 }, [
357
+ U(C(e.label), 1)
83
358
  ], 64))
84
359
  ])
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
- }
360
+ ], 10, Ze));
761
361
  }
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({
362
+ }), et = /* @__PURE__ */ _({
868
363
  __name: "QButtonGroup",
869
364
  props: {
870
365
  bStyle: {},
@@ -872,29 +367,29 @@ const ln = /* @__PURE__ */ O({
872
367
  borderless: { type: Boolean },
873
368
  elevated: { type: Boolean }
874
369
  },
875
- setup(e) {
876
- const t = e;
877
- os({
370
+ setup(t) {
371
+ const n = t;
372
+ Fe({
878
373
  QButton: {
879
- bStyle: Ae(t, "bStyle"),
880
- disabled: Ae(t, "disabled"),
881
- borderless: Ae(t, "borderless"),
374
+ bStyle: j(n, "bStyle"),
375
+ disabled: j(n, "disabled"),
376
+ borderless: j(n, "borderless"),
882
377
  elevated: !1
883
378
  }
884
379
  });
885
- const n = $(() => [
380
+ const e = y(() => [
886
381
  "q-btn-group",
887
382
  {
888
- "q-btn-group--elevated": t.elevated
383
+ "q-btn-group--elevated": n.elevated
889
384
  }
890
385
  ]);
891
- return (r, o) => (c(), g("div", {
892
- class: M(n.value)
386
+ return (o, a) => (r(), f("div", {
387
+ class: T(e.value)
893
388
  }, [
894
- I(r.$slots, "default")
389
+ L(o.$slots, "default")
895
390
  ], 2));
896
391
  }
897
- }), as = /* @__PURE__ */ O({
392
+ }), Ct = /* @__PURE__ */ _({
898
393
  __name: "QButtonToggle",
899
394
  props: {
900
395
  modelValue: {},
@@ -905,39 +400,39 @@ const ln = /* @__PURE__ */ O({
905
400
  mandatory: { type: Boolean }
906
401
  },
907
402
  emits: ["update:modelValue"],
908
- setup(e, { emit: t }) {
909
- const n = e, r = B(n.modelValue);
403
+ setup(t, { emit: n }) {
404
+ const e = t, o = D(e.modelValue);
910
405
  z(
911
- () => n.modelValue,
912
- (i) => r.value = i
406
+ () => e.modelValue,
407
+ (l) => o.value = l
913
408
  );
914
- const o = $({
409
+ const a = y({
915
410
  get() {
916
- return r.value;
411
+ return o.value;
917
412
  },
918
- set(i) {
919
- r.value = i, t("update:modelValue", i);
413
+ set(l) {
414
+ o.value = l, n("update:modelValue", l);
920
415
  }
921
416
  });
922
- function a(i) {
923
- o.value === i.key && !n.mandatory ? o.value = void 0 : o.value = i.key;
417
+ function s(l) {
418
+ a.value === l.key && !e.mandatory ? a.value = void 0 : a.value = l.key;
924
419
  }
925
- return (i, s) => (c(), x(k(ln), {
420
+ return (l, c) => (r(), k(g(et), {
926
421
  "b-style": "secondary",
927
- disabled: n.disabled,
928
- borderless: n.borderless,
929
- elevated: n.elevated
422
+ disabled: e.disabled,
423
+ borderless: e.borderless,
424
+ elevated: e.elevated
930
425
  }, {
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)
426
+ default: E(() => [
427
+ (r(!0), f(Q, null, P(e.options, (i) => (r(), k(g(Pe), {
428
+ key: i.key,
429
+ title: i.title,
430
+ label: i.label,
431
+ active: a.value === i.key,
432
+ onClick: (p) => s(i)
938
433
  }, {
939
- default: L(() => [
940
- I(i.$slots, l.key)
434
+ default: E(() => [
435
+ L(l.$slots, i.key)
941
436
  ]),
942
437
  _: 2
943
438
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -945,21 +440,32 @@ const ln = /* @__PURE__ */ O({
945
440
  _: 3
946
441
  }, 8, ["disabled", "borderless", "elevated"]));
947
442
  }
948
- }), Y = /* @__PURE__ */ O({
443
+ }), O = /* @__PURE__ */ _({
949
444
  __name: "QIcon",
950
445
  props: {
951
446
  name: {},
952
447
  type: { default: "svg" },
953
448
  size: { default: void 0 }
954
449
  },
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
450
+ setup(t) {
451
+ const n = t, e = y(() => {
452
+ switch (n.type) {
453
+ case "svg":
454
+ return $e;
455
+ case "font":
456
+ return ke;
457
+ case "img":
458
+ return we;
459
+ default:
460
+ return;
461
+ }
462
+ });
463
+ return (o, a) => (r(), k(me(e.value), {
464
+ icon: n.name,
465
+ size: n.size
960
466
  }, null, 8, ["icon", "size"]));
961
467
  }
962
- }), is = /* @__PURE__ */ O({
468
+ }), ke = /* @__PURE__ */ _({
963
469
  __name: "QIconFont",
964
470
  props: {
965
471
  icon: {},
@@ -967,45 +473,45 @@ const ln = /* @__PURE__ */ O({
967
473
  variant: { default: "" },
968
474
  size: { default: void 0 }
969
475
  },
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
476
+ setup(t) {
477
+ const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => ({
478
+ "font-size": n.size !== void 0 ? `${n.size}px` : void 0
973
479
  }));
974
- return (o, a) => t.icon ? (c(), g("i", {
480
+ return (a, s) => n.icon ? (r(), f("i", {
975
481
  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);
482
+ class: T(["q-icon", "q-icon__font", e.value, `${n.library}-${n.icon}`]),
483
+ style: W(o.value)
484
+ }, null, 6)) : b("", !0);
979
485
  }
980
- }), ss = ["src"], ls = /* @__PURE__ */ O({
486
+ }), tt = ["src"], we = /* @__PURE__ */ _({
981
487
  __name: "QIconImg",
982
488
  props: {
983
489
  icon: {},
984
490
  size: {}
985
491
  },
986
- setup(e) {
987
- const t = e, n = $(() => ({
988
- "font-size": t.size !== void 0 ? `${t.size}px` : void 0
492
+ setup(t) {
493
+ const n = t, e = y(() => ({
494
+ "font-size": n.size !== void 0 ? `${n.size}px` : void 0
989
495
  }));
990
- return (r, o) => t.icon ? (c(), g("img", {
496
+ return (o, a) => n.icon ? (r(), f("img", {
991
497
  key: 0,
992
- src: t.icon,
498
+ src: n.icon,
993
499
  class: "q-icon",
994
- style: fe(n.value)
995
- }, null, 12, ss)) : S("", !0);
500
+ style: W(e.value)
501
+ }, null, 12, tt)) : b("", !0);
996
502
  }
997
- }), re = {}, cs = O({
503
+ }), R = {}, nt = _({
998
504
  name: "InlineSvg",
999
505
  emits: ["loaded", "unloaded", "error"],
1000
506
  inheritAttrs: !1,
1001
507
  render() {
1002
508
  if (!this.svgElSource)
1003
509
  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);
510
+ const t = this.getSvgContent(this.svgElSource);
511
+ if (!t)
512
+ return se("div", this.$attrs);
513
+ const n = {};
514
+ return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, se("svg", n);
1009
515
  },
1010
516
  props: {
1011
517
  src: {
@@ -1039,30 +545,30 @@ const ln = /* @__PURE__ */ O({
1039
545
  await this.getSource(this.src);
1040
546
  },
1041
547
  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;
548
+ copySvgAttrs(t, n) {
549
+ const e = n.attributes;
550
+ if (e)
551
+ for (const o of e)
552
+ t[o.name] = o.value;
1047
553
  },
1048
- copyComponentAttrs(e, t) {
1049
- for (const [n, r] of Object.entries(t))
1050
- r !== !1 && r !== null && r !== void 0 && (e[n] = r);
554
+ copyComponentAttrs(t, n) {
555
+ for (const [e, o] of Object.entries(n))
556
+ o !== !1 && o !== null && o !== void 0 && (t[e] = o);
1051
557
  },
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);
558
+ getSvgContent(t) {
559
+ 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
560
  },
1055
561
  /**
1056
562
  * Get svgElSource
1057
563
  * @param {string} src
1058
564
  */
1059
- async getSource(e) {
565
+ async getSource(t) {
1060
566
  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);
567
+ R[t] || (R[t] = at(this.download(t))), this.svgElSource && R[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
568
+ const n = await R[t];
569
+ this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
570
+ } catch (n) {
571
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete R[t], this.$emit("error", n);
1066
572
  }
1067
573
  },
1068
574
  /**
@@ -1070,44 +576,44 @@ const ln = /* @__PURE__ */ O({
1070
576
  * @param {string} url
1071
577
  * @returns {PromiseWithState<Element>}
1072
578
  */
1073
- async download(e) {
1074
- const t = await fetch(e);
1075
- if (!t.ok)
579
+ async download(t) {
580
+ const n = await fetch(t);
581
+ if (!n.ok)
1076
582
  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)
583
+ const e = await n.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
584
+ if (!s)
1079
585
  throw new Error("Loaded file is not a valid SVG");
1080
- return a;
586
+ return s;
1081
587
  }
1082
588
  },
1083
589
  watch: {
1084
- src(e) {
1085
- this.getSource(e);
590
+ src(t) {
591
+ this.getSource(t);
1086
592
  }
1087
593
  }
1088
594
  });
1089
- function us(e, t) {
1090
- const n = e.getElementsByTagName("title");
1091
- if (n.length)
1092
- n[0].textContent = t;
595
+ function ot(t, n) {
596
+ const e = t.getElementsByTagName("title");
597
+ if (e.length)
598
+ e[0].textContent = n;
1093
599
  else {
1094
- const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
1095
- r.textContent = t, e.insertBefore(r, e.firstChild);
600
+ const o = document.createElementNS("http://www.w3.org/2000/svg", "title");
601
+ o.textContent = n, t.insertBefore(o, t.firstChild);
1096
602
  }
1097
603
  }
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;
604
+ function at(t) {
605
+ if (t.getIsPending)
606
+ return t;
607
+ let n = !0;
608
+ const e = t.then(
609
+ (o) => (n = !1, o),
610
+ (o) => {
611
+ throw n = !1, o;
1106
612
  }
1107
613
  );
1108
- return n.getIsPending = () => t, n;
614
+ return e.getIsPending = () => n, e;
1109
615
  }
1110
- const ds = /* @__PURE__ */ O({
616
+ const $e = /* @__PURE__ */ _({
1111
617
  __name: "QIconSvg",
1112
618
  props: {
1113
619
  icon: {},
@@ -1115,135 +621,66 @@ const ds = /* @__PURE__ */ O({
1115
621
  size: { default: void 0 }
1116
622
  },
1117
623
  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
624
+ setup(t, { emit: n }) {
625
+ const e = t, o = y(() => ({
626
+ "font-size": e.size !== void 0 ? `${e.size}px` : void 0
1121
627
  }));
1122
- return (o, a) => n.icon ? (c(), x(k(cs), {
628
+ return (a, s) => e.icon ? (r(), k(g(nt), {
1123
629
  key: 0,
1124
630
  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);
631
+ src: e.bundle,
632
+ symbol: e.icon,
633
+ style: W(o.value),
634
+ onLoaded: s[0] || (s[0] = (l) => n("loaded", l)),
635
+ onUnloaded: s[1] || (s[1] = (l) => n("unloaded", l))
636
+ }, null, 8, ["src", "symbol", "style"])) : b("", !0);
1131
637
  }
1132
- }), ps = {
638
+ });
639
+ A(O);
640
+ A(ke);
641
+ A(we);
642
+ A($e);
643
+ const st = {
1133
644
  key: 0,
1134
645
  class: "q-input__prepend"
1135
- }, hs = {
646
+ }, lt = {
1136
647
  key: 1,
1137
648
  class: "q-input__append"
1138
- }, cn = /* @__PURE__ */ O({
649
+ }, rt = /* @__PURE__ */ _({
1139
650
  __name: "QInput",
1140
651
  props: {
1141
652
  size: { default: "medium" },
1142
653
  readonly: { type: Boolean, default: !1 },
1143
654
  disabled: { type: Boolean, default: !1 }
1144
655
  },
1145
- setup(e) {
1146
- const t = e;
1147
- return (n, r) => (c(), g("div", {
1148
- class: M([
656
+ setup(t) {
657
+ const n = t;
658
+ return (e, o) => (r(), f("div", {
659
+ class: T([
1149
660
  "q-input",
1150
- `q-input--${t.size}`,
1151
- { "q-input--readonly": t.readonly, "q-input--disabled": t.disabled }
661
+ `q-input--${n.size}`,
662
+ { "q-input--readonly": n.readonly, "q-input--disabled": n.disabled }
1152
663
  ])
1153
664
  }, [
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)
665
+ e.$slots.prepend ? (r(), f("div", st, [
666
+ L(e.$slots, "prepend")
667
+ ])) : b("", !0),
668
+ L(e.$slots, "default"),
669
+ e.$slots.append ? (r(), f("div", lt, [
670
+ L(e.$slots, "append")
671
+ ])) : b("", !0)
1161
672
  ], 2));
1162
673
  }
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}`;
674
+ }), it = (t, n) => {
675
+ const e = t.__vccOpts || t;
676
+ for (const [o, a] of n)
677
+ e[o] = a;
678
+ return e;
679
+ }, ct = {}, ut = { class: "q-line-loader" };
680
+ function dt(t, n) {
681
+ return r(), f("div", ut);
1221
682
  }
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({
683
+ const Vt = /* @__PURE__ */ it(ct, [["render", dt]]), Se = /* @__PURE__ */ _({
1247
684
  __name: "QList",
1248
685
  props: {
1249
686
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1254,91 +691,91 @@ const Ss = ["aria-labelledby"], Os = ["id"], fn = /* @__PURE__ */ O({
1254
691
  disabled: { type: Boolean }
1255
692
  },
1256
693
  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);
694
+ setup(t, { expose: n, emit: e }) {
695
+ 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);
696
+ function i(d) {
697
+ a.value = d, e("update:modelValue", d);
1261
698
  }
1262
- function u() {
1263
- let f = 0;
1264
- o.value && (f = r.items.findIndex((j) => j[r.itemValue] === o.value)), v(f);
699
+ function p() {
700
+ let d = 0;
701
+ a.value && (d = o.items.findIndex(($) => $[o.itemValue] === a.value)), q(d);
1265
702
  }
1266
- function h(f) {
1267
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
703
+ function w(d) {
704
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && d.preventDefault(), d.key) {
1268
705
  case "ArrowDown":
1269
- d("next");
706
+ m("next");
1270
707
  break;
1271
708
  case "ArrowUp":
1272
- d("prev");
709
+ m("prev");
1273
710
  break;
1274
711
  case "Home":
1275
- d("first");
712
+ m("first");
1276
713
  break;
1277
714
  case "End":
1278
- d("last");
715
+ m("last");
1279
716
  break;
1280
717
  }
1281
718
  }
1282
- function d(f) {
1283
- switch (f) {
719
+ function m(d) {
720
+ switch (d) {
1284
721
  case "next":
1285
722
  case "prev":
1286
- v(V(f));
723
+ q(M(d));
1287
724
  break;
1288
725
  case "first":
1289
- v(0);
726
+ q(0);
1290
727
  break;
1291
728
  case "last":
1292
- v(-1);
729
+ q(-1);
1293
730
  break;
1294
731
  }
1295
732
  }
1296
- function v(f) {
1297
- var _;
1298
- (_ = w().at(f)) == null || _.focus();
733
+ function q(d) {
734
+ var v;
735
+ (v = I().at(d)) == null || v.focus();
1299
736
  }
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) : [];
737
+ function I() {
738
+ var v;
739
+ const d = (v = c.value) == null ? void 0 : v.querySelectorAll("li");
740
+ return d ? Array.from(d).filter((x) => x.tabIndex !== -1) : [];
1304
741
  }
1305
- function D(f) {
1306
- return f.indexOf(document.activeElement);
742
+ function F(d) {
743
+ return d.indexOf(document.activeElement);
1307
744
  }
1308
- function V(f) {
1309
- const j = w(), _ = D(j);
1310
- return f === "next" ? _ === j.length - 1 ? _ : _ + 1 : _ === 0 ? 0 : _ - 1;
745
+ function M(d) {
746
+ const $ = I(), v = F($);
747
+ return d === "next" ? v === $.length - 1 ? v : v + 1 : v === 0 ? 0 : v - 1;
1311
748
  }
1312
- function T(f) {
1313
- return f ? r.items.filter((j) => j.group === f) : r.items;
749
+ function V(d) {
750
+ return d ? o.items.filter(($) => $.group === d) : o.items;
1314
751
  }
1315
752
  return z(
1316
- () => r.modelValue,
1317
- (f) => {
1318
- o.value = f;
753
+ () => o.modelValue,
754
+ (d) => {
755
+ a.value = d;
1319
756
  }
1320
- ), t({ focusItem: v }), (f, j) => (c(), x(Ct(a.value), {
757
+ ), n({ focusItem: q }), (d, $) => (r(), k(me(s.value), {
1321
758
  ref_key: "listRef",
1322
- ref: s,
1323
- class: M(["q-list", { "q-list--disabled": r.disabled }]),
759
+ ref: c,
760
+ class: T(["q-list", { "q-list--disabled": o.disabled }]),
1324
761
  role: "listbox",
1325
- tabindex: r.disabled ? -1 : 0,
1326
- onFocus: u,
1327
- onKeydown: h
762
+ tabindex: o.disabled ? -1 : 0,
763
+ onFocus: p,
764
+ onKeydown: w
1328
765
  }, {
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
766
+ default: E(() => [
767
+ (r(!0), f(Q, null, P(l.value, (v) => (r(), k(g(Le), K({
768
+ key: v.title
769
+ }, v), {
770
+ default: E(() => [
771
+ (r(!0), f(Q, null, P(V(v.title), (x) => (r(), k(g(Be), {
772
+ key: x[o.itemValue],
773
+ value: x[o.itemValue],
774
+ label: x[o.itemLabel],
775
+ icon: x.icon,
776
+ disabled: o.disabled || x.disabled,
777
+ selected: a.value === x[o.itemValue],
778
+ onSelect: i
1342
779
  }, null, 8, ["value", "label", "icon", "disabled", "selected"]))), 128))
1343
780
  ]),
1344
781
  _: 2
@@ -1347,71 +784,148 @@ const Ss = ["aria-labelledby"], Os = ["id"], fn = /* @__PURE__ */ O({
1347
784
  _: 1
1348
785
  }, 40, ["class", "tabindex"]));
1349
786
  }
787
+ }), ft = ["tabindex", "aria-label", "aria-selected", "onClick"], pt = {
788
+ check: {
789
+ name: "check"
790
+ }
791
+ }, Be = /* @__PURE__ */ _({
792
+ __name: "QListItem",
793
+ props: {
794
+ value: { type: [String, Number, Boolean, Symbol] },
795
+ label: {},
796
+ icon: { default: void 0 },
797
+ selected: { type: Boolean, default: !1 },
798
+ highlighted: { type: Boolean, default: !1 },
799
+ icons: { default: () => pt },
800
+ disabled: { type: Boolean, default: !1 }
801
+ },
802
+ emits: ["select"],
803
+ setup(t, { emit: n }) {
804
+ const e = t;
805
+ function o() {
806
+ e.disabled || n("select", e.value);
807
+ }
808
+ function a(s) {
809
+ s.key === "Tab" && o(), (s.key === "Enter" || s.key === " ") && (s.preventDefault(), s.stopPropagation(), o());
810
+ }
811
+ return (s, l) => (r(), f("li", {
812
+ role: "option",
813
+ tabindex: e.disabled ? void 0 : -2,
814
+ class: T([
815
+ "q-list-item",
816
+ {
817
+ "q-list-item--disabled": e.disabled,
818
+ "q-list-item--selected": e.selected,
819
+ "q-list-item--highlighted": e.highlighted
820
+ }
821
+ ]),
822
+ "aria-label": e.label,
823
+ "aria-selected": e.disabled ? void 0 : e.selected,
824
+ onKeydown: a,
825
+ onClick: H(o, ["stop", "prevent"])
826
+ }, [
827
+ e.icon ? (r(), k(g(O), he(K({ key: 0 }, e.icon)), null, 16)) : b("", !0),
828
+ U(" " + C(e.label) + " ", 1),
829
+ e.selected ? (r(), k(g(O), K({ key: 1 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
830
+ ], 42, ft));
831
+ }
832
+ });
833
+ let mt = 0;
834
+ function ht() {
835
+ return `uid-${++mt}`;
836
+ }
837
+ const yt = ["aria-labelledby"], vt = ["id"], Le = /* @__PURE__ */ _({
838
+ __name: "QListItemGroup",
839
+ props: {
840
+ id: { default: () => ht() },
841
+ title: { default: "" },
842
+ disabled: { type: Boolean, default: !1 }
843
+ },
844
+ setup(t) {
845
+ const n = t;
846
+ return (e, o) => n.title ? (r(), f("ul", {
847
+ key: 1,
848
+ class: "q-list-item-group",
849
+ role: "group",
850
+ "aria-labelledby": n.id
851
+ }, [
852
+ n.title ? (r(), f("li", {
853
+ key: 0,
854
+ id: n.id,
855
+ class: "q-list-item-group__title",
856
+ role: "presentation"
857
+ }, C(n.title), 9, vt)) : b("", !0),
858
+ L(e.$slots, "default")
859
+ ], 8, yt)) : L(e.$slots, "default", { key: 0 });
860
+ }
1350
861
  });
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) {
862
+ A(Se);
863
+ A(Be);
864
+ A(Le);
865
+ function gt(t, n, e = "right", o) {
866
+ 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;
867
+ let w = e;
868
+ c && !xe(a, c, w) && (w = bt(a, c, w));
869
+ const m = { x: 0, y: 0, placement: w };
870
+ switch (w) {
1357
871
  case "top":
1358
- r === "anchor" ? d.x = a : d.x = a + (o.width - l) / 2, d.y = i - u;
872
+ o === "anchor" ? m.x = s : m.x = s + (a.width - i) / 2, m.y = l - p;
1359
873
  break;
1360
874
  case "bottom":
1361
- r === "anchor" ? d.x = a : d.x = a + (o.width - l) / 2, d.y = i + o.height;
875
+ o === "anchor" ? m.x = s : m.x = s + (a.width - i) / 2, m.y = l + a.height;
1362
876
  break;
1363
877
  case "left":
1364
- d.x = a - l, d.y = i + o.height / 2 - u / 2;
878
+ m.x = s - i, m.y = l + a.height / 2 - p / 2;
1365
879
  break;
1366
880
  case "right":
1367
- d.x = a + o.width, d.y = i + o.height / 2 - u / 2;
881
+ m.x = s + a.width, m.y = l + a.height / 2 - p / 2;
1368
882
  break;
1369
883
  }
1370
- return r === "anchor" && (d.width = o.width), d;
884
+ return o === "anchor" && (m.width = a.width), m;
1371
885
  }
1372
- function pn(e, t, n) {
1373
- let r = !1, o = !1;
1374
- switch (n) {
886
+ function xe(t, n, e) {
887
+ let o = !1, a = !1;
888
+ switch (e) {
1375
889
  case "top":
1376
- r = St(e, t), o = e.top > t.height;
890
+ o = fe(t, n), a = t.top > n.height;
1377
891
  break;
1378
892
  case "bottom":
1379
- r = St(e, t), o = window.innerHeight - e.top - e.height > t.height;
893
+ o = fe(t, n), a = window.innerHeight - t.top - t.height > n.height;
1380
894
  break;
1381
895
  case "left":
1382
- r = e.left > t.width, o = Tt(e, t);
896
+ o = t.left > n.width, a = de(t, n);
1383
897
  break;
1384
898
  case "right":
1385
- r = window.innerWidth - e.left - e.width > t.width, o = Tt(e, t);
899
+ o = window.innerWidth - t.left - t.width > n.width, a = de(t, n);
1386
900
  break;
1387
901
  }
1388
- return r && o;
902
+ return o && a;
1389
903
  }
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;
904
+ function de(t, n) {
905
+ return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
1392
906
  }
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;
907
+ function fe(t, n) {
908
+ return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
1395
909
  }
1396
- function xs(e, t, n) {
1397
- const r = {
910
+ function bt(t, n, e) {
911
+ const o = {
1398
912
  top: ["bottom", "left", "right"],
1399
913
  bottom: ["top", "left", "right"],
1400
914
  left: ["right", "top", "bottom"],
1401
915
  right: ["left", "top", "bottom"]
1402
916
  };
1403
- for (const o of r[n])
1404
- if (pn(e, t, o))
1405
- return o;
1406
- return n;
917
+ for (const a of o[e])
918
+ if (xe(t, n, a))
919
+ return a;
920
+ return e;
1407
921
  }
1408
- function be(e) {
1409
- return typeof e == "string" ? document.querySelector(e) : e && "$el" in e ? e.$el : e;
922
+ function Y(t) {
923
+ return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
1410
924
  }
1411
- const js = {
925
+ const _t = {
1412
926
  key: 0,
1413
927
  class: "q-overlay__arrow"
1414
- }, je = /* @__PURE__ */ O({
928
+ }, oe = /* @__PURE__ */ _({
1415
929
  __name: "QOverlay",
1416
930
  props: {
1417
931
  modelValue: { type: Boolean },
@@ -1430,154 +944,154 @@ const js = {
1430
944
  width: { default: "auto" }
1431
945
  },
1432
946
  emits: ["enter", "leave"],
1433
- setup(e, { emit: t }) {
1434
- const n = e, r = $(() => [
947
+ setup(t, { emit: n }) {
948
+ const e = t, o = y(() => [
1435
949
  "q-overlay",
1436
- `q-overlay--${o.placement}`,
1437
- { "q-overlay--inverted": n.appearance === "inverted" },
1438
- ...n.contentClasses
1439
- ]), o = mn({
1440
- visible: n.modelValue,
950
+ `q-overlay--${a.placement}`,
951
+ { "q-overlay--inverted": e.appearance === "inverted" },
952
+ ...e.contentClasses
953
+ ]), a = Ee({
954
+ visible: e.modelValue,
1441
955
  top: 0,
1442
956
  left: 0,
1443
957
  width: 0,
1444
- placement: n.placement
1445
- }), a = $(() => o.visible && !n.disabled);
958
+ placement: e.placement
959
+ }), s = y(() => a.visible && !e.disabled);
1446
960
  z(
1447
- () => n.modelValue,
1448
- () => o.visible = n.modelValue
961
+ () => e.modelValue,
962
+ () => a.visible = e.modelValue
1449
963
  );
1450
- const i = $(() => {
1451
- let b = 0, A = 0;
1452
- switch (o.placement) {
964
+ const l = y(() => {
965
+ let h = 0, S = 0;
966
+ switch (a.placement) {
1453
967
  case "top":
1454
- A = -(n.offset || 0);
968
+ S = -(e.offset || 0);
1455
969
  break;
1456
970
  case "bottom":
1457
- A = n.offset || 0;
971
+ S = e.offset || 0;
1458
972
  break;
1459
973
  case "left":
1460
- b = -(n.offset || 0);
974
+ h = -(e.offset || 0);
1461
975
  break;
1462
976
  case "right":
1463
- b = n.offset || 0;
977
+ h = e.offset || 0;
1464
978
  break;
1465
979
  }
1466
- const p = {
1467
- top: `${o.top + A}px`,
1468
- left: `${o.left + b}px`
980
+ const u = {
981
+ top: `${a.top + S}px`,
982
+ left: `${a.left + h}px`
1469
983
  };
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;
984
+ return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (u.width = `${a.width}px`), u;
985
+ }), c = D(null);
986
+ function i() {
987
+ const h = Y(e.anchor);
988
+ if (h) {
989
+ const S = gt(h, c.value, e.placement, e.width);
990
+ a.left = S.x, a.top = S.y, a.width = S.width, a.placement = S.placement;
1477
991
  }
1478
992
  }
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));
993
+ z([() => s.value, () => e.placement], i);
994
+ let p;
995
+ function w() {
996
+ const h = e.trigger === "hover" ? e.delay : 0;
997
+ p || (p = window.setTimeout(() => a.visible = !0, h));
1484
998
  }
1485
- function d() {
1486
- clearTimeout(u), u = void 0, o.visible = !1;
999
+ function m() {
1000
+ clearTimeout(p), p = void 0, a.visible = !1;
1487
1001
  }
1488
- function v() {
1489
- a.value ? d() : h();
1002
+ function q() {
1003
+ s.value ? m() : w();
1490
1004
  }
1491
- let w;
1492
- function D() {
1493
- et(() => {
1494
- const b = be(n.anchor);
1495
- if (b)
1496
- switch (n.trigger) {
1005
+ let I;
1006
+ function F() {
1007
+ le(() => {
1008
+ const h = Y(e.anchor);
1009
+ if (h)
1010
+ switch (e.trigger) {
1497
1011
  case "click":
1498
- b.addEventListener("click", v);
1012
+ h.addEventListener("click", q);
1499
1013
  break;
1500
1014
  case "hover":
1501
- b.addEventListener("mouseenter", h), b.addEventListener("mouseleave", d);
1015
+ h.addEventListener("mouseenter", w), h.addEventListener("mouseleave", m);
1502
1016
  break;
1503
1017
  }
1504
1018
  });
1505
1019
  }
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, {
1020
+ function M() {
1021
+ le(() => {
1022
+ const h = Y(e.anchor);
1023
+ h && (window.addEventListener("scroll", i), window.addEventListener("resize", i), I = new MutationObserver(i), I.observe(h, {
1510
1024
  attributes: !1,
1511
1025
  childList: !0,
1512
1026
  characterData: !0,
1513
1027
  subtree: !0
1514
- }), l());
1028
+ }), i());
1515
1029
  });
1516
1030
  }
1517
- function T() {
1518
- window.removeEventListener("scroll", l), window.removeEventListener("resize", l), w == null || w.disconnect();
1031
+ function V() {
1032
+ window.removeEventListener("scroll", i), window.removeEventListener("resize", i), I == null || I.disconnect();
1519
1033
  }
1520
- let f;
1521
- function j() {
1522
- be(n.anchor) ? (l(), f = window.setTimeout(j, 100)) : d();
1034
+ let d;
1035
+ function $() {
1036
+ Y(e.anchor) ? (i(), d = window.setTimeout($, 100)) : m();
1523
1037
  }
1524
- function _() {
1525
- V(), n.spy && j();
1038
+ function v() {
1039
+ M(), e.spy && $();
1526
1040
  }
1527
- function E() {
1528
- T(), n.spy && (clearTimeout(f), f = void 0);
1041
+ function x() {
1042
+ V(), e.spy && (clearTimeout(d), d = void 0);
1529
1043
  }
1530
- return vn(E), _n(l), z(
1531
- () => n.disabled,
1532
- (b) => {
1533
- b || D();
1044
+ return Ie(x), Te(i), z(
1045
+ () => e.disabled,
1046
+ (h) => {
1047
+ h || F();
1534
1048
  },
1535
1049
  { immediate: !0 }
1536
1050
  ), z(
1537
- () => a.value,
1538
- (b) => {
1539
- b ? _() : E();
1051
+ () => s.value,
1052
+ (h) => {
1053
+ h ? v() : x();
1540
1054
  },
1541
1055
  { 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
1056
+ ), (h, S) => (r(), f(Q, null, [
1057
+ L(h.$slots, "trigger", { open: s.value }),
1058
+ (r(), k(Ce, {
1059
+ to: e.attach
1546
1060
  }, [
1547
- ae(wn, {
1548
- name: n.transition,
1061
+ N(Ve, {
1062
+ name: e.transition,
1549
1063
  appear: "",
1550
- onEnter: A[0] || (A[0] = (p) => t("enter")),
1551
- onLeave: A[1] || (A[1] = (p) => t("leave"))
1064
+ onEnter: S[0] || (S[0] = (u) => n("enter")),
1065
+ onLeave: S[1] || (S[1] = (u) => n("leave"))
1552
1066
  }, {
1553
- default: L(() => [
1554
- a.value ? (c(), g("div", {
1067
+ default: E(() => [
1068
+ s.value ? (r(), f("div", {
1555
1069
  key: 0,
1556
- class: M(r.value),
1557
- style: fe(i.value)
1070
+ class: T(o.value),
1071
+ style: W(l.value)
1558
1072
  }, [
1559
- me("div", {
1560
- class: M(["q-overlay__content"]),
1073
+ X("div", {
1074
+ class: T(["q-overlay__content"]),
1561
1075
  ref_key: "overlay",
1562
- ref: s
1076
+ ref: c
1563
1077
  }, [
1564
- n.arrow ? (c(), g("div", js)) : S("", !0),
1565
- I(b.$slots, "default")
1078
+ e.arrow ? (r(), f("div", _t)) : b("", !0),
1079
+ L(h.$slots, "default")
1566
1080
  ], 512)
1567
- ], 6)) : S("", !0)
1081
+ ], 6)) : b("", !0)
1568
1082
  ]),
1569
1083
  _: 3
1570
1084
  }, 8, ["name"])
1571
1085
  ], 8, ["to"]))
1572
1086
  ], 64));
1573
1087
  }
1574
- }), As = {
1088
+ }), kt = {
1575
1089
  key: 0,
1576
1090
  class: "q-popover__header"
1577
- }, Cs = {
1091
+ }, wt = {
1578
1092
  key: 1,
1579
1093
  class: "q-popover__body"
1580
- }, Is = ["innerHTML"], Es = { key: 1 }, Bs = /* @__PURE__ */ O({
1094
+ }, $t = ["innerHTML"], St = { key: 1 }, zt = /* @__PURE__ */ _({
1581
1095
  __name: "QPopover",
1582
1096
  props: {
1583
1097
  modelValue: { type: Boolean },
@@ -1591,48 +1105,58 @@ const js = {
1591
1105
  text: {},
1592
1106
  title: {}
1593
1107
  },
1594
- setup(e) {
1595
- const t = e;
1596
- return (n, r) => (c(), x(k(je), {
1597
- "model-value": t.modelValue,
1108
+ setup(t) {
1109
+ const n = t;
1110
+ return (e, o) => (r(), k(g(oe), {
1111
+ "model-value": n.modelValue,
1598
1112
  trigger: "click",
1599
- anchor: t.anchor,
1600
- arrow: t.arrow,
1601
- attach: t.attach,
1113
+ anchor: n.anchor,
1114
+ arrow: n.arrow,
1115
+ attach: n.attach,
1602
1116
  "content-classes": ["q-popover"],
1603
- disabled: t.disabled,
1604
- placement: t.placement,
1605
- spy: t.spy
1117
+ disabled: n.disabled,
1118
+ placement: n.placement,
1119
+ spy: n.spy
1606
1120
  }, {
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", {
1121
+ default: E(() => [
1122
+ n.title || e.$slots.header ? (r(), f("h3", kt, [
1123
+ U(C(n.title) + " ", 1),
1124
+ L(e.$slots, "header")
1125
+ ])) : b("", !0),
1126
+ n.text || e.$slots.body ? (r(), f("div", wt, [
1127
+ n.html ? (r(), f("span", {
1614
1128
  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)
1129
+ innerHTML: n.text
1130
+ }, null, 8, $t)) : (r(), f("span", St, C(n.text), 1)),
1131
+ L(e.$slots, "body")
1132
+ ])) : b("", !0)
1619
1133
  ]),
1620
1134
  _: 3
1621
1135
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
1622
1136
  }
1623
- }), Ls = {
1137
+ }), Bt = {
1138
+ mounted(t, n) {
1139
+ t.clickOutsideEvent = function(e) {
1140
+ const o = e.target;
1141
+ n.arg ? t === o || t.contains(o) || o.closest(n.arg) || n.value(e, t) : t === o || t.contains(o) || n.value(e, t);
1142
+ }, document.addEventListener("click", t.clickOutsideEvent);
1143
+ },
1144
+ unmounted(t) {
1145
+ document.removeEventListener("click", t.clickOutsideEvent);
1146
+ }
1147
+ }, Lt = {
1624
1148
  key: 1,
1625
1149
  class: "q-select__placeholder"
1626
- }, Ds = {
1150
+ }, xt = {
1627
1151
  placeholder: "Choose..."
1628
- }, Ps = {
1152
+ }, qt = {
1629
1153
  chevron: {
1630
1154
  name: "chevron-down"
1631
1155
  },
1632
1156
  clear: {
1633
1157
  name: "close"
1634
1158
  }
1635
- }, Ms = /* @__PURE__ */ O({
1159
+ }, Qt = /* @__PURE__ */ _({
1636
1160
  __name: "QSelect",
1637
1161
  props: {
1638
1162
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1640,169 +1164,168 @@ const js = {
1640
1164
  readonly: { type: Boolean },
1641
1165
  disabled: { type: Boolean, default: !1 },
1642
1166
  loading: { type: Boolean, default: !1 },
1643
- icons: { default: () => Ps },
1167
+ icons: { default: () => qt },
1644
1168
  items: {},
1645
1169
  groups: { default: () => [] },
1646
1170
  itemValue: { default: "key" },
1647
1171
  itemLabel: { default: "label" },
1648
1172
  size: { default: "medium" },
1649
- texts: { default: () => Ds }
1173
+ texts: { default: () => xt }
1650
1174
  },
1651
1175
  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 = $(
1176
+ setup(t, { emit: n }) {
1177
+ const e = t, o = D(e.modelValue), a = D(!1), s = D(""), l = D(null), c = D(null), i = D(null), p = y(
1654
1178
  () => {
1655
- var p;
1656
- return (p = n.items) == null ? void 0 : p.find((C) => C[n.itemValue] === r.value);
1179
+ var u;
1180
+ return (u = e.items) == null ? void 0 : u.find((B) => B[e.itemValue] === o.value);
1657
1181
  }
1658
- ), h = $(
1659
- () => u.value ? u.value[n.itemLabel] : ""
1660
- ), d = $(
1661
- () => n.clearable && !n.readonly && !n.disabled && !n.loading
1182
+ ), w = y(
1183
+ () => p.value ? p.value[e.itemLabel] : ""
1184
+ ), m = y(
1185
+ () => e.clearable && !e.readonly && !e.disabled && !e.loading
1662
1186
  );
1663
- function v() {
1664
- d.value && (r.value = void 0, t("update:modelValue", r.value), T());
1187
+ function q() {
1188
+ m.value && (o.value = void 0, n("update:modelValue", o.value), V());
1665
1189
  }
1666
- function w() {
1667
- n.readonly || n.disabled || (o.value ? T() : V());
1190
+ function I() {
1191
+ e.readonly || e.disabled || (a.value ? V() : M());
1668
1192
  }
1669
- function D(p) {
1670
- var C;
1671
- (C = i.value) != null && C.$el.contains(p.target) || T();
1193
+ function F(u) {
1194
+ var B;
1195
+ (B = l.value) != null && B.$el.contains(u.target) || V();
1672
1196
  }
1673
- function V() {
1674
- o.value || (t("before-show"), o.value = !0);
1197
+ function M() {
1198
+ a.value || (n("before-show"), a.value = !0);
1675
1199
  }
1676
- function T() {
1677
- o.value && (t("before-hide"), o.value = !1);
1200
+ function V() {
1201
+ a.value && (n("before-hide"), a.value = !1);
1678
1202
  }
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);
1203
+ let d;
1204
+ function $(u) {
1205
+ if (!(!u.key || e.readonly || e.disabled)) {
1206
+ 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)) {
1207
+ s.value += u.key.toLowerCase();
1208
+ for (let B = 0; B < e.items.length; B++)
1209
+ if (e.items[B][e.itemLabel].toLowerCase().startsWith(s.value)) {
1210
+ S(B);
1687
1211
  break;
1688
1212
  }
1689
1213
  }
1690
- f = window.setTimeout(function() {
1691
- a.value = "";
1214
+ d = window.setTimeout(function() {
1215
+ s.value = "";
1692
1216
  }, 500);
1693
1217
  }
1694
1218
  }
1695
- function _() {
1696
- var p;
1697
- (p = s.value) == null || p.$el.focus(), t("show");
1219
+ function v() {
1220
+ var u;
1221
+ (u = c.value) == null || u.$el.focus(), n("show");
1698
1222
  }
1699
- function E() {
1700
- b(), t("hide");
1223
+ function x() {
1224
+ h(), n("hide");
1701
1225
  }
1702
- function b() {
1703
- var p;
1704
- (p = i.value) == null || p.$el.focus();
1226
+ function h() {
1227
+ var u;
1228
+ (u = l.value) == null || u.$el.focus();
1705
1229
  }
1706
- function A(p) {
1707
- var C;
1708
- (C = s.value) == null || C.focusItem(p);
1230
+ function S(u) {
1231
+ var B;
1232
+ (B = c.value) == null || B.focusItem(u);
1709
1233
  }
1710
1234
  return z(
1711
- () => n.modelValue,
1712
- (p) => {
1713
- r.value = p;
1235
+ () => e.modelValue,
1236
+ (u) => {
1237
+ o.value = u;
1714
1238
  }
1715
- ), (p, C) => {
1716
- var Xe, Je;
1717
- const Ye = Tn("click-outside");
1718
- return c(), g(N, null, [
1719
- ae(k(cn), {
1239
+ ), (u, B) => {
1240
+ var Z, ae;
1241
+ return r(), f(Q, null, [
1242
+ N(g(rt), {
1720
1243
  ref_key: "inputRef",
1721
- ref: i,
1244
+ ref: l,
1722
1245
  role: "combobox",
1723
1246
  tabindex: "0",
1724
- class: M([
1247
+ class: T([
1725
1248
  "q-select",
1726
1249
  {
1727
- "q-select--readonly": n.readonly,
1728
- "q-select--disabled": n.disabled,
1729
- "q-select--expanded": o.value
1250
+ "q-select--readonly": e.readonly,
1251
+ "q-select--disabled": e.disabled,
1252
+ "q-select--expanded": a.value
1730
1253
  }
1731
1254
  ]),
1732
1255
  readonly: "",
1733
- disabled: n.disabled,
1734
- "aria-expanded": o.value,
1256
+ disabled: e.disabled,
1257
+ "aria-expanded": a.value,
1735
1258
  "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, {
1259
+ size: e.size,
1260
+ onClick: I,
1261
+ onKeydown: H($, ["stop"])
1262
+ }, ze({
1263
+ append: E(() => [
1264
+ m.value && o.value ? (r(), k(g(O), K({ key: 0 }, e.icons.clear, {
1742
1265
  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)
1266
+ onClick: H(q, ["stop", "prevent"])
1267
+ }), null, 16, ["onClick"])) : b("", !0),
1268
+ !e.readonly && !e.disabled ? (r(), k(g(O), K({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : b("", !0)
1746
1269
  ]),
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))
1270
+ default: E(() => [
1271
+ o.value ? (r(), f(Q, { key: 0 }, [
1272
+ U(C(w.value), 1)
1273
+ ], 64)) : (r(), f("span", Lt, C(u.texts.placeholder), 1))
1751
1274
  ]),
1752
1275
  _: 2
1753
1276
  }, [
1754
- (Xe = u.value) != null && Xe.icon ? {
1277
+ (Z = p.value) != null && Z.icon ? {
1755
1278
  name: "prepend",
1756
- fn: L(() => {
1757
- var ge;
1279
+ fn: E(() => {
1280
+ var G;
1758
1281
  return [
1759
- ae(k(Y), It(On((ge = u.value) == null ? void 0 : ge.icon)), null, 16)
1282
+ N(g(O), he(Qe((G = p.value) == null ? void 0 : G.icon)), null, 16)
1760
1283
  ];
1761
1284
  }),
1762
1285
  key: "0"
1763
1286
  } : void 0
1764
1287
  ]), 1032, ["class", "disabled", "aria-expanded", "size", "onKeydown"]),
1765
- ae(k(je), {
1766
- "model-value": o.value,
1288
+ N(g(oe), {
1289
+ "model-value": a.value,
1767
1290
  spy: "",
1768
1291
  trigger: "manual",
1769
1292
  placement: "bottom",
1770
1293
  width: "anchor",
1771
1294
  offset: 2,
1772
- anchor: (Je = i.value) == null ? void 0 : Je.$el,
1773
- onEnter: _,
1774
- onLeave: E
1295
+ anchor: (ae = l.value) == null ? void 0 : ae.$el,
1296
+ onEnter: v,
1297
+ onLeave: x
1775
1298
  }, {
1776
- default: L(() => [
1777
- kn((c(), g("div", {
1299
+ default: E(() => [
1300
+ Ae((r(), f("div", {
1778
1301
  ref_key: "contentRef",
1779
- ref: l,
1302
+ ref: i,
1780
1303
  class: "q-select__body"
1781
1304
  }, [
1782
- I(p.$slots, "body.prepend"),
1783
- n.loading ? (c(), x(k(Ve), {
1305
+ L(u.$slots, "body.prepend"),
1306
+ e.loading ? (r(), k(g(ne), {
1784
1307
  key: 0,
1785
1308
  class: "q-select__loader",
1786
1309
  size: 24
1787
- })) : (c(), x(k(dn), {
1310
+ })) : (r(), k(g(Se), {
1788
1311
  key: 1,
1789
1312
  ref_key: "listRef",
1790
- ref: s,
1313
+ ref: c,
1791
1314
  class: "q-select__items",
1792
- modelValue: r.value,
1315
+ modelValue: o.value,
1793
1316
  "onUpdate:modelValue": [
1794
- C[0] || (C[0] = (ge) => r.value = ge),
1795
- T
1317
+ B[0] || (B[0] = (G) => o.value = G),
1318
+ V
1796
1319
  ],
1797
- items: n.items,
1798
- groups: p.groups,
1799
- "item-label": n.itemLabel,
1800
- "item-value": n.itemValue,
1801
- onKeydown: oe(j, ["stop"])
1320
+ items: e.items,
1321
+ groups: u.groups,
1322
+ "item-label": e.itemLabel,
1323
+ "item-value": e.itemValue,
1324
+ onKeydown: H($, ["stop"])
1802
1325
  }, null, 8, ["modelValue", "items", "groups", "item-label", "item-value", "onKeydown"])),
1803
- I(p.$slots, "body.append")
1326
+ L(u.$slots, "body.append")
1804
1327
  ])), [
1805
- [Ye, D]
1328
+ [g(Bt), F]
1806
1329
  ])
1807
1330
  ]),
1808
1331
  _: 3
@@ -1810,7 +1333,7 @@ const js = {
1810
1333
  ], 64);
1811
1334
  };
1812
1335
  }
1813
- }), qs = ["innerHTML"], Fs = { key: 1 }, Vs = /* @__PURE__ */ O({
1336
+ }), Dt = ["innerHTML"], Et = { key: 1 }, At = /* @__PURE__ */ _({
1814
1337
  __name: "QTooltip",
1815
1338
  props: {
1816
1339
  modelValue: { type: Boolean },
@@ -1825,310 +1348,51 @@ const js = {
1825
1348
  text: {},
1826
1349
  trigger: { default: "hover" }
1827
1350
  },
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,
1351
+ setup(t) {
1352
+ const n = t;
1353
+ return (e, o) => (r(), k(g(oe), {
1354
+ "model-value": n.modelValue,
1355
+ anchor: n.anchor,
1356
+ appearance: n.appearance,
1357
+ arrow: n.arrow,
1358
+ attach: n.attach,
1836
1359
  "content-classes": ["q-tooltip"],
1837
- delay: t.delay,
1838
- disabled: t.disabled,
1839
- placement: t.placement,
1840
- trigger: t.trigger
1360
+ delay: n.delay,
1361
+ disabled: n.disabled,
1362
+ placement: n.placement,
1363
+ trigger: n.trigger
1841
1364
  }, {
1842
- default: L(() => [
1843
- t.html ? (c(), g("span", {
1365
+ default: E(() => [
1366
+ n.html ? (r(), f("span", {
1844
1367
  key: 0,
1845
- innerHTML: t.text
1846
- }, null, 8, qs)) : (c(), g("span", Fs, q(t.text), 1))
1368
+ innerHTML: n.text
1369
+ }, null, 8, Dt)) : (r(), f("span", Et, C(n.text), 1))
1847
1370
  ]),
1848
1371
  _: 1
1849
1372
  }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
1850
1373
  }
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);
1374
+ });
2121
1375
  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
1376
+ Pe as QButton,
1377
+ et as QButtonGroup,
1378
+ Ct as QButtonToggle,
1379
+ O as QIcon,
1380
+ ke as QIconFont,
1381
+ we as QIconImg,
1382
+ $e as QIconSvg,
1383
+ rt as QInput,
1384
+ Vt as QLineLoader,
1385
+ Se as QList,
1386
+ Be as QListItem,
1387
+ Le as QListItemGroup,
1388
+ oe as QOverlay,
1389
+ zt as QPopover,
1390
+ Qt as QSelect,
1391
+ ne as QSpinnerLoader,
1392
+ At as QTooltip,
1393
+ Bt as clickOutside,
1394
+ Tt as createFramework,
1395
+ Me as defaultDarkColorScheme,
1396
+ ie as defaultLightColorScheme
2133
1397
  };
2134
1398
  //# sourceMappingURL=ui.esm.js.map