@verdnatura/vn-front-lib 0.0.6 → 0.0.8

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.
@@ -1,10 +1,1929 @@
1
- import { n as e, t } from "./components-BK0ivbyE.js";
2
- import { n, t as r } from "./useRequired-CTxBp3qy.js";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as ee, Y as w, Z as T, _ as E, a as te, at as ne, b as D, c as O, ct as k, d as re, et as A, f as ie, g as ae, h as j, i as oe, it as M, j as se, k as N, l as P, lt as F, m as I, n as L, nt as ce, o as le, ot as ue, p as R, q as de, r as fe, rt as z, s as pe, st as B, t as me, tt as he, u as ge, v as _e, w as ve, x as V, y as ye, z as be } from "./components-DyCtjyed.js";
2
+ import { n as xe, t as Se } from "./useRequired-CTxBp3qy.js";
3
3
  import "./composables.js";
4
+ import { t as Ce } from "./utils-DEjhADAQ.js";
5
+ import { Transition as we, computed as H, getCurrentInstance as Te, h as U, nextTick as W, onActivated as Ee, onBeforeMount as G, onBeforeUnmount as De, onBeforeUpdate as Oe, onDeactivated as K, onUpdated as ke, ref as q, watch as J } from "vue";
6
+ //#region lib/utils/defaults/qInput.js
7
+ Ce(fe, "dense", !0);
8
+ //#endregion
9
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/field/QField.js
10
+ var Ae = x({
11
+ name: "QField",
12
+ inheritAttrs: !1,
13
+ props: {
14
+ ...P,
15
+ tag: {
16
+ type: String,
17
+ default: "label"
18
+ }
19
+ },
20
+ emits: O,
21
+ setup() {
22
+ return re(ge({ tagProp: !0 }));
23
+ }
24
+ });
25
+ //#endregion
26
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/throttle/throttle.js
27
+ function je(e, t = 250) {
28
+ let n = !1, r;
29
+ return function() {
30
+ return n === !1 && (n = !0, setTimeout(() => {
31
+ n = !1;
32
+ }, t), r = e.apply(this, arguments)), r;
33
+ };
34
+ }
35
+ //#endregion
36
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/directives/ripple/Ripple.js
37
+ function Me(e, t, n, r) {
38
+ n.modifiers.stop === !0 && B(e);
39
+ let i = n.modifiers.color, a = n.modifiers.center;
40
+ a = a === !0 || r === !0;
41
+ let s = document.createElement("span"), c = document.createElement("span"), l = ne(e), { left: u, top: d, width: f, height: p } = t.getBoundingClientRect(), m = Math.sqrt(f * f + p * p), h = m / 2, g = `${(f - m) / 2}px`, _ = a ? g : `${l.left - u - h}px`, v = `${(p - m) / 2}px`, y = a ? v : `${l.top - d - h}px`;
42
+ c.className = "q-ripple__inner", o(c, {
43
+ height: `${m}px`,
44
+ width: `${m}px`,
45
+ transform: `translate3d(${_},${y},0) scale3d(.2,.2,1)`,
46
+ opacity: 0
47
+ }), s.className = `q-ripple${i ? " text-" + i : ""}`, s.setAttribute("dir", "ltr"), s.appendChild(c), t.appendChild(s);
48
+ let b = () => {
49
+ s.remove(), clearTimeout(x);
50
+ };
51
+ n.abort.push(b);
52
+ let x = setTimeout(() => {
53
+ c.classList.add("q-ripple__inner--enter"), c.style.transform = `translate3d(${g},${v},0) scale3d(1,1,1)`, c.style.opacity = .2, x = setTimeout(() => {
54
+ c.classList.remove("q-ripple__inner--enter"), c.classList.add("q-ripple__inner--leave"), c.style.opacity = 0, x = setTimeout(() => {
55
+ s.remove(), n.abort.splice(n.abort.indexOf(b), 1);
56
+ }, 275);
57
+ }, 250);
58
+ }, 50);
59
+ }
60
+ function Ne(e, { modifiers: t, value: n, arg: r }) {
61
+ let i = Object.assign({}, e.cfg.ripple, t, n);
62
+ e.modifiers = {
63
+ early: i.early === !0,
64
+ stop: i.stop === !0,
65
+ center: i.center === !0,
66
+ color: i.color || r,
67
+ keyCodes: [].concat(i.keyCodes || 13)
68
+ };
69
+ }
70
+ var Pe = C({
71
+ name: "ripple",
72
+ beforeMount(e, t) {
73
+ let n = t.instance.$.appContext.config.globalProperties.$q.config || {};
74
+ if (n.ripple === !1) return;
75
+ let r = {
76
+ cfg: n,
77
+ enabled: t.value !== !1,
78
+ modifiers: {},
79
+ abort: [],
80
+ start(t) {
81
+ r.enabled === !0 && t.qSkipRipple !== !0 && t.type === (r.modifiers.early === !0 ? "pointerdown" : "click") && Me(t, e, r, t.qKeyEvent === !0);
82
+ },
83
+ keystart: je((t) => {
84
+ r.enabled === !0 && t.qSkipRipple !== !0 && _(t, r.modifiers.keyCodes) === !0 && t.type === `key${r.modifiers.early === !0 ? "down" : "up"}` && Me(t, e, r, !0);
85
+ }, 300)
86
+ };
87
+ Ne(r, t), e.__qripple = r, A(r, "main", [
88
+ [
89
+ e,
90
+ "pointerdown",
91
+ "start",
92
+ "passive"
93
+ ],
94
+ [
95
+ e,
96
+ "click",
97
+ "start",
98
+ "passive"
99
+ ],
100
+ [
101
+ e,
102
+ "keydown",
103
+ "keystart",
104
+ "passive"
105
+ ],
106
+ [
107
+ e,
108
+ "keyup",
109
+ "keystart",
110
+ "passive"
111
+ ]
112
+ ]);
113
+ },
114
+ updated(e, t) {
115
+ if (t.oldValue !== t.value) {
116
+ let n = e.__qripple;
117
+ n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && Ne(n, t));
118
+ }
119
+ },
120
+ beforeUnmount(e) {
121
+ let t = e.__qripple;
122
+ t !== void 0 && (t.abort.forEach((e) => {
123
+ e();
124
+ }), he(t, "main"), delete e._qripple);
125
+ }
126
+ }), Fe = {
127
+ xs: 8,
128
+ sm: 10,
129
+ md: 14,
130
+ lg: 20,
131
+ xl: 24
132
+ }, Ie = x({
133
+ name: "QChip",
134
+ props: {
135
+ ...R,
136
+ ...ae,
137
+ dense: Boolean,
138
+ icon: String,
139
+ iconRight: String,
140
+ iconRemove: String,
141
+ iconSelected: String,
142
+ label: [String, Number],
143
+ color: String,
144
+ textColor: String,
145
+ modelValue: {
146
+ type: Boolean,
147
+ default: !0
148
+ },
149
+ selected: {
150
+ type: Boolean,
151
+ default: null
152
+ },
153
+ square: Boolean,
154
+ outline: Boolean,
155
+ clickable: Boolean,
156
+ removable: Boolean,
157
+ removeAriaLabel: String,
158
+ tabindex: [String, Number],
159
+ disable: Boolean,
160
+ ripple: {
161
+ type: [Boolean, Object],
162
+ default: !0
163
+ }
164
+ },
165
+ emits: [
166
+ "update:modelValue",
167
+ "update:selected",
168
+ "remove",
169
+ "click"
170
+ ],
171
+ setup(e, { slots: t, emit: n }) {
172
+ let { proxy: { $q: r } } = Te(), i = I(e, r), o = E(e, Fe), s = H(() => e.selected === !0 || e.icon !== void 0), c = H(() => e.selected === !0 ? e.iconSelected || r.iconSet.chip.selected : e.icon), l = H(() => e.iconRemove || r.iconSet.chip.remove), u = H(() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)), d = H(() => {
173
+ let t = e.outline === !0 && e.color || e.textColor;
174
+ return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (t ? ` text-${t} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (u.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (i.value === !0 ? " q-chip--dark q-dark" : "");
175
+ }), f = H(() => {
176
+ let t = e.disable === !0 ? {
177
+ tabindex: -1,
178
+ "aria-disabled": "true"
179
+ } : { tabindex: e.tabindex || 0 };
180
+ return {
181
+ chip: t,
182
+ remove: {
183
+ ...t,
184
+ role: "button",
185
+ "aria-hidden": "false",
186
+ "aria-label": e.removeAriaLabel || r.lang.label.remove
187
+ }
188
+ };
189
+ });
190
+ function p(e) {
191
+ e.keyCode === 13 && m(e);
192
+ }
193
+ function m(t) {
194
+ e.disable || (n("update:selected", !e.selected), n("click", t));
195
+ }
196
+ function h(t) {
197
+ (t.keyCode === void 0 || t.keyCode === 13) && (k(t), e.disable === !1 && (n("update:modelValue", !1), n("remove")));
198
+ }
199
+ function g() {
200
+ let n = [];
201
+ u.value === !0 && n.push(U("div", { class: "q-focus-helper" })), s.value === !0 && n.push(U(j, {
202
+ class: "q-chip__icon q-chip__icon--left",
203
+ name: c.value
204
+ }));
205
+ let r = e.label === void 0 ? void 0 : [U("div", { class: "ellipsis" }, [e.label])];
206
+ return n.push(U("div", { class: "q-chip__content col row no-wrap items-center q-anchor--skip" }, a(t.default, r))), e.iconRight && n.push(U(j, {
207
+ class: "q-chip__icon q-chip__icon--right",
208
+ name: e.iconRight
209
+ })), e.removable === !0 && n.push(U(j, {
210
+ class: "q-chip__icon q-chip__icon--remove cursor-pointer",
211
+ name: l.value,
212
+ ...f.value.remove,
213
+ onClick: h,
214
+ onKeyup: h
215
+ })), n;
216
+ }
217
+ return () => {
218
+ if (e.modelValue === !1) return;
219
+ let t = {
220
+ class: d.value,
221
+ style: o.value
222
+ };
223
+ return u.value === !0 && Object.assign(t, f.value.chip, {
224
+ onClick: m,
225
+ onKeyup: p
226
+ }), ve("div", t, g(), "ripple", e.ripple !== !1 && e.disable !== !0, () => [[Pe, e.ripple]]);
227
+ };
228
+ }
229
+ });
230
+ //#endregion
231
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/composables/private.use-router-link/use-router-link.js
232
+ function Le(e) {
233
+ return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
234
+ }
235
+ function Re(e, t) {
236
+ return (e.aliasOf || e) === (t.aliasOf || t);
237
+ }
238
+ function ze(e, t) {
239
+ for (let n in t) {
240
+ let r = t[n], i = e[n];
241
+ if (typeof r == "string") {
242
+ if (r !== i) return !1;
243
+ } else if (Array.isArray(i) === !1 || i.length !== r.length || r.some((e, t) => e !== i[t])) return !1;
244
+ }
245
+ return !0;
246
+ }
247
+ function Be(e, t) {
248
+ return Array.isArray(t) === !0 ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
249
+ }
250
+ function Ve(e, t) {
251
+ return Array.isArray(e) === !0 ? Be(e, t) : Array.isArray(t) === !0 ? Be(t, e) : e === t;
252
+ }
253
+ function He(e, t) {
254
+ if (Object.keys(e).length !== Object.keys(t).length) return !1;
255
+ for (let n in e) if (Ve(e[n], t[n]) === !1) return !1;
256
+ return !0;
257
+ }
258
+ var Ue = {
259
+ to: [String, Object],
260
+ replace: Boolean,
261
+ href: String,
262
+ target: String,
263
+ disable: Boolean,
264
+ exact: Boolean,
265
+ activeClass: {
266
+ type: String,
267
+ default: "q-router-link--active"
268
+ },
269
+ exactActiveClass: {
270
+ type: String,
271
+ default: "q-router-link--exact-active"
272
+ }
273
+ };
274
+ function We({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
275
+ let n = Te(), { props: r, proxy: i, emit: a } = n, o = u(n), s = H(() => r.disable !== !0 && r.href !== void 0), c = H(t === !0 ? () => o === !0 && r.disable !== !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== "" : () => o === !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""), l = H(() => c.value === !0 ? y(r.to) : null), d = H(() => l.value !== null), f = H(() => s.value === !0 || d.value === !0), p = H(() => r.type === "a" || f.value === !0 ? "a" : r.tag || e || "div"), m = H(() => s.value === !0 ? {
276
+ href: r.href,
277
+ target: r.target
278
+ } : d.value === !0 ? {
279
+ href: l.value.href,
280
+ target: r.target
281
+ } : {}), h = H(() => {
282
+ if (d.value === !1) return -1;
283
+ let { matched: e } = l.value, { length: t } = e, n = e[t - 1];
284
+ if (n === void 0) return -1;
285
+ let r = i.$route.matched;
286
+ if (r.length === 0) return -1;
287
+ let a = r.findIndex(Re.bind(null, n));
288
+ if (a !== -1) return a;
289
+ let o = Le(e[t - 2]);
290
+ return t > 1 && Le(n) === o && r[r.length - 1].path !== o ? r.findIndex(Re.bind(null, e[t - 2])) : a;
291
+ }), g = H(() => d.value === !0 && h.value !== -1 && ze(i.$route.params, l.value.params)), _ = H(() => g.value === !0 && h.value === i.$route.matched.length - 1 && He(i.$route.params, l.value.params)), v = H(() => d.value === !0 ? _.value === !0 ? ` ${r.exactActiveClass} ${r.activeClass}` : r.exact === !0 ? "" : g.value === !0 ? ` ${r.activeClass}` : "" : "");
292
+ function y(e) {
293
+ try {
294
+ return i.$router.resolve(e);
295
+ } catch {}
296
+ return null;
297
+ }
298
+ function b(e, { returnRouterError: t, to: n = r.to, replace: a = r.replace } = {}) {
299
+ if (r.disable === !0) return e.preventDefault(), Promise.resolve(!1);
300
+ if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey || e.button !== void 0 && e.button !== 0 || r.target === "_blank") return Promise.resolve(!1);
301
+ e.preventDefault();
302
+ let o = i.$router[a === !0 ? "replace" : "push"](n);
303
+ return t === !0 ? o : o.then(() => {}).catch(() => {});
304
+ }
305
+ function x(e) {
306
+ if (d.value === !0) {
307
+ let t = (t) => b(e, t);
308
+ a("click", e, t), e.defaultPrevented !== !0 && t();
309
+ } else a("click", e);
310
+ }
311
+ return {
312
+ hasRouterLink: d,
313
+ hasHrefLink: s,
314
+ hasLink: f,
315
+ linkTag: p,
316
+ resolvedLink: l,
317
+ linkIsActive: g,
318
+ linkIsExactActive: _,
319
+ linkClass: v,
320
+ linkAttrs: m,
321
+ getLink: y,
322
+ navigateToRouterLink: b,
323
+ navigateOnClick: x
324
+ };
325
+ }
326
+ //#endregion
327
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/item/QItem.js
328
+ var Ge = x({
329
+ name: "QItem",
330
+ props: {
331
+ ...R,
332
+ ...Ue,
333
+ tag: {
334
+ type: String,
335
+ default: "div"
336
+ },
337
+ active: {
338
+ type: Boolean,
339
+ default: null
340
+ },
341
+ clickable: Boolean,
342
+ dense: Boolean,
343
+ insetLevel: Number,
344
+ tabindex: [String, Number],
345
+ focused: Boolean,
346
+ manualFocus: Boolean
347
+ },
348
+ emits: ["click", "keyup"],
349
+ setup(e, { slots: t, emit: n }) {
350
+ let { proxy: { $q: r } } = Te(), i = I(e, r), { hasLink: a, linkAttrs: o, linkClass: s, linkTag: c, navigateOnClick: l } = We(), u = q(null), d = q(null), f = H(() => e.clickable === !0 || a.value === !0 || e.tag === "label"), p = H(() => e.disable !== !0 && f.value === !0), m = H(() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (i.value === !0 ? " q-item--dark" : "") + (a.value === !0 && e.active === null ? s.value : e.active === !0 ? ` q-item--active${e.activeClass === void 0 ? "" : ` ${e.activeClass}`}` : "") + (e.disable === !0 ? " disabled" : "") + (p.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")), g = H(() => e.insetLevel === void 0 ? null : { ["padding" + (r.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px" });
351
+ function v(e) {
352
+ p.value === !0 && (d.value !== null && e.qAvoidFocus !== !0 && (e.qKeyEvent !== !0 && document.activeElement === u.value ? d.value.focus() : document.activeElement === d.value && u.value.focus()), l(e));
353
+ }
354
+ function y(e) {
355
+ if (p.value === !0 && _(e, [13, 32]) === !0) {
356
+ k(e), e.qKeyEvent = !0;
357
+ let t = new MouseEvent("click", e);
358
+ t.qKeyEvent = !0, u.value.dispatchEvent(t);
359
+ }
360
+ n("keyup", e);
361
+ }
362
+ function b() {
363
+ let e = h(t.default, []);
364
+ return p.value === !0 && e.unshift(U("div", {
365
+ class: "q-focus-helper",
366
+ tabindex: -1,
367
+ ref: d
368
+ })), e;
369
+ }
370
+ return () => {
371
+ let t = {
372
+ ref: u,
373
+ class: m.value,
374
+ style: g.value,
375
+ role: "listitem",
376
+ onClick: v,
377
+ onKeyup: y
378
+ };
379
+ return p.value === !0 ? (t.tabindex = e.tabindex || "0", Object.assign(t, o.value)) : f.value === !0 && (t["aria-disabled"] = "true"), U(c.value, t, b());
380
+ };
381
+ }
382
+ }), Ke = x({
383
+ name: "QItemSection",
384
+ props: {
385
+ avatar: Boolean,
386
+ thumbnail: Boolean,
387
+ side: Boolean,
388
+ top: Boolean,
389
+ noWrap: Boolean
390
+ },
391
+ setup(e, { slots: t }) {
392
+ let n = H(() => `q-item__section column q-item__section--${e.avatar === !0 || e.side === !0 || e.thumbnail === !0 ? "side" : "main"}` + (e.top === !0 ? " q-item__section--top justify-start" : " justify-center") + (e.avatar === !0 ? " q-item__section--avatar" : "") + (e.thumbnail === !0 ? " q-item__section--thumbnail" : "") + (e.noWrap === !0 ? " q-item__section--nowrap" : ""));
393
+ return () => U("div", { class: n.value }, i(t.default));
394
+ }
395
+ }), qe = x({
396
+ name: "QItemLabel",
397
+ props: {
398
+ overline: Boolean,
399
+ caption: Boolean,
400
+ header: Boolean,
401
+ lines: [Number, String]
402
+ },
403
+ setup(e, { slots: t }) {
404
+ let n = H(() => parseInt(e.lines, 10)), r = H(() => "q-item__label" + (e.overline === !0 ? " q-item__label--overline text-overline" : "") + (e.caption === !0 ? " q-item__label--caption text-caption" : "") + (e.header === !0 ? " q-item__label--header" : "") + (n.value === 1 ? " ellipsis" : "")), a = H(() => e.lines !== void 0 && n.value > 1 ? {
405
+ overflow: "hidden",
406
+ display: "-webkit-box",
407
+ "-webkit-box-orient": "vertical",
408
+ "-webkit-line-clamp": n.value
409
+ } : null);
410
+ return () => U("div", {
411
+ style: a.value,
412
+ class: r.value
413
+ }, i(t.default));
414
+ }
415
+ }), Y = [], Je;
416
+ function Ye(e) {
417
+ Je = e.keyCode === 27;
418
+ }
419
+ function Xe() {
420
+ Je === !0 && (Je = !1);
421
+ }
422
+ function Ze(e) {
423
+ Je === !0 && (Je = !1, _(e, 27) === !0 && Y[Y.length - 1](e));
424
+ }
425
+ function Qe(e) {
426
+ window[e]("keydown", Ye), window[e]("blur", Xe), window[e]("keyup", Ze), Je = !1;
427
+ }
428
+ function $e(e) {
429
+ F.is.desktop === !0 && (Y.push(e), Y.length === 1 && Qe("addEventListener"));
430
+ }
431
+ function et(e) {
432
+ let t = Y.indexOf(e);
433
+ t !== -1 && (Y.splice(t, 1), Y.length === 0 && Qe("removeEventListener"));
434
+ }
435
+ //#endregion
436
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/private.focus/focusout.js
437
+ var tt = [];
438
+ function nt(e) {
439
+ tt[tt.length - 1](e);
440
+ }
441
+ function rt(e) {
442
+ F.is.desktop === !0 && (tt.push(e), tt.length === 1 && document.body.addEventListener("focusin", nt));
443
+ }
444
+ function it(e) {
445
+ let t = tt.indexOf(e);
446
+ t !== -1 && (tt.splice(t, 1), tt.length === 0 && document.body.removeEventListener("focusin", nt));
447
+ }
448
+ //#endregion
449
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/menu/QMenu.js
450
+ var at = x({
451
+ name: "QMenu",
452
+ inheritAttrs: !1,
453
+ props: {
454
+ ...ee,
455
+ ...d,
456
+ ...R,
457
+ ...v,
458
+ persistent: Boolean,
459
+ autoClose: Boolean,
460
+ separateClosePopup: Boolean,
461
+ noEscDismiss: Boolean,
462
+ noRouteDismiss: Boolean,
463
+ noRefocus: Boolean,
464
+ noFocus: Boolean,
465
+ fit: Boolean,
466
+ cover: Boolean,
467
+ square: Boolean,
468
+ anchor: {
469
+ type: String,
470
+ validator: V
471
+ },
472
+ self: {
473
+ type: String,
474
+ validator: V
475
+ },
476
+ offset: {
477
+ type: Array,
478
+ validator: D
479
+ },
480
+ scrollTarget: m,
481
+ touchPosition: Boolean,
482
+ maxHeight: {
483
+ type: String,
484
+ default: null
485
+ },
486
+ maxWidth: {
487
+ type: String,
488
+ default: null
489
+ }
490
+ },
491
+ emits: [
492
+ ...s,
493
+ "click",
494
+ "escapeKey"
495
+ ],
496
+ setup(e, { slots: a, emit: o, attrs: s }) {
497
+ let u = null, d, p, m, h = Te(), { proxy: _ } = h, { $q: v } = _, b = q(null), x = q(!1), C = H(() => e.persistent !== !0 && e.noRouteDismiss !== !0), ee = I(e, v), { registerTick: E, removeTick: te } = f(), { registerTimeout: D } = l(), { transitionProps: O, transitionStyle: re } = be(e), { localScrollTarget: A, changeScrollEvent: ie, unconfigureScrollTarget: ae } = w(e, me), { anchorEl: j, canShow: oe } = T({ showing: x }), { hide: M } = de({
498
+ showing: x,
499
+ canShow: oe,
500
+ handleShow: z,
501
+ handleHide: pe,
502
+ hideOnRouteChange: C,
503
+ processOnMount: !0
504
+ }), { showPortal: se, hidePortal: N, renderPortal: P } = n(h, b, xe, "menu"), F = {
505
+ anchorEl: j,
506
+ innerRef: b,
507
+ onClickOutside(t) {
508
+ if (e.persistent !== !0 && x.value === !0) return M(t), (t.type === "touchstart" || t.target.classList.contains("q-dialog__backdrop")) && k(t), !0;
509
+ }
510
+ }, L = H(() => _e(e.anchor || (e.cover === !0 ? "center middle" : "bottom start"), v.lang.rtl)), ce = H(() => e.cover === !0 ? L.value : _e(e.self || "top start", v.lang.rtl)), le = H(() => (e.square === !0 ? " q-menu--square" : "") + (ee.value === !0 ? " q-menu--dark q-dark" : "")), ue = H(() => e.autoClose === !0 ? { onClick: he } : {}), R = H(() => x.value === !0 && e.persistent !== !0);
511
+ J(R, (e) => {
512
+ e === !0 ? ($e(ve), y(F)) : (et(ve), r(F));
513
+ });
514
+ function fe() {
515
+ c(() => {
516
+ let e = b.value;
517
+ e && e.contains(document.activeElement) !== !0 && (e = e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || e.querySelector("[autofocus], [data-autofocus]") || e, e.focus({ preventScroll: !0 }));
518
+ });
519
+ }
520
+ function z(t) {
521
+ if (u = e.noRefocus === !1 ? document.activeElement : null, rt(ge), se(), me(), d = void 0, t !== void 0 && (e.touchPosition || e.contextMenu)) {
522
+ let e = ne(t);
523
+ if (e.left !== void 0) {
524
+ let { top: t, left: n } = j.value.getBoundingClientRect();
525
+ d = {
526
+ left: e.left - n,
527
+ top: e.top - t
528
+ };
529
+ }
530
+ }
531
+ p === void 0 && (p = J(() => v.screen.width + "|" + v.screen.height + "|" + e.self + "|" + e.anchor + "|" + v.lang.rtl, V)), e.noFocus !== !0 && document.activeElement.blur(), E(() => {
532
+ V(), e.noFocus !== !0 && fe();
533
+ }), D(() => {
534
+ v.platform.is.ios === !0 && (m = e.autoClose, b.value.click()), V(), se(!0), o("show", t);
535
+ }, e.transitionDuration);
536
+ }
537
+ function pe(t) {
538
+ te(), N(), B(!0), u !== null && (t === void 0 || t.qClickOutside !== !0) && (((t?.type.indexOf("key") === 0 ? u.closest("[tabindex]:not([tabindex^=\"-\"])") : void 0) || u).focus(), u = null), D(() => {
539
+ N(!0), o("hide", t);
540
+ }, e.transitionDuration);
541
+ }
542
+ function B(e) {
543
+ d = void 0, p !== void 0 && (p(), p = void 0), (e === !0 || x.value === !0) && (it(ge), ae(), r(F), et(ve)), e !== !0 && (u = null);
544
+ }
545
+ function me() {
546
+ (j.value !== null || e.scrollTarget !== void 0) && (A.value = t(j.value, e.scrollTarget), ie(A.value, V));
547
+ }
548
+ function he(e) {
549
+ m === !0 ? m = !1 : (S(_, e), o("click", e));
550
+ }
551
+ function ge(t) {
552
+ R.value === !0 && e.noFocus !== !0 && g(b.value, t.target) !== !0 && fe();
553
+ }
554
+ function ve(t) {
555
+ e.noEscDismiss !== !0 && (o("escapeKey"), M(t));
556
+ }
557
+ function V() {
558
+ ye({
559
+ targetEl: b.value,
560
+ offset: e.offset,
561
+ anchorEl: j.value,
562
+ anchorOrigin: L.value,
563
+ selfOrigin: ce.value,
564
+ absoluteOffset: d,
565
+ fit: e.fit,
566
+ cover: e.cover,
567
+ maxHeight: e.maxHeight,
568
+ maxWidth: e.maxWidth
569
+ });
570
+ }
571
+ function xe() {
572
+ return U(we, O.value, () => x.value === !0 ? U("div", {
573
+ role: "menu",
574
+ ...s,
575
+ ref: b,
576
+ tabindex: -1,
577
+ class: ["q-menu q-position-engine scroll" + le.value, s.class],
578
+ style: [s.style, re.value],
579
+ ...ue.value
580
+ }, i(a.default)) : null);
581
+ }
582
+ return De(B), Object.assign(_, {
583
+ focus: fe,
584
+ updatePosition: V
585
+ }), P;
586
+ }
587
+ }), ot = () => !0;
588
+ function st(e) {
589
+ return typeof e == "string" && e !== "" && e !== "/" && e !== "#/";
590
+ }
591
+ function ct(e) {
592
+ return e.startsWith("#") === !0 && (e = e.substring(1)), e.startsWith("/") === !1 && (e = "/" + e), e.endsWith("/") === !0 && (e = e.substring(0, e.length - 1)), "#" + e;
593
+ }
594
+ function lt(e) {
595
+ if (e.backButtonExit === !1) return () => !1;
596
+ if (e.backButtonExit === "*") return ot;
597
+ let t = ["#/"];
598
+ return Array.isArray(e.backButtonExit) === !0 && t.push(...e.backButtonExit.filter(st).map(ct)), () => t.includes(window.location.hash);
599
+ }
600
+ var ut = {
601
+ __history: [],
602
+ add: M,
603
+ remove: M,
604
+ install({ $q: e }) {
605
+ if (this.__installed === !0) return;
606
+ let { cordova: t, capacitor: n } = F.is;
607
+ if (t !== !0 && n !== !0) return;
608
+ let r = e.config[t === !0 ? "cordova" : "capacitor"];
609
+ if (r?.backButton === !1 || n === !0 && (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)) return;
610
+ this.add = (e) => {
611
+ e.condition === void 0 && (e.condition = ot), this.__history.push(e);
612
+ }, this.remove = (e) => {
613
+ let t = this.__history.indexOf(e);
614
+ t >= 0 && this.__history.splice(t, 1);
615
+ };
616
+ let i = lt(Object.assign({ backButtonExit: !0 }, r)), a = () => {
617
+ if (this.__history.length) {
618
+ let e = this.__history[this.__history.length - 1];
619
+ e.condition() === !0 && (this.__history.pop(), e.handler());
620
+ } else i() === !0 ? navigator.app.exitApp() : window.history.back();
621
+ };
622
+ t === !0 ? document.addEventListener("deviceready", () => {
623
+ document.addEventListener("backbutton", a, !1);
624
+ }) : window.Capacitor.Plugins.App.addListener("backButton", a);
625
+ }
626
+ };
627
+ //#endregion
628
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/composables/private.use-history/use-history.js
629
+ function dt(e, t, n) {
630
+ let r;
631
+ function i() {
632
+ r !== void 0 && (ut.remove(r), r = void 0);
633
+ }
634
+ return De(() => {
635
+ e.value === !0 && i();
636
+ }), {
637
+ removeFromHistory: i,
638
+ addToHistory() {
639
+ r = {
640
+ condition: () => n.value === !0,
641
+ handler: t
642
+ }, ut.add(r);
643
+ }
644
+ };
645
+ }
646
+ //#endregion
647
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/scroll/prevent-scroll.js
648
+ var ft = 0, pt, mt, ht, X = !1, gt, Z, _t, Q = null;
649
+ function vt(e) {
650
+ yt(e) && k(e);
651
+ }
652
+ function yt(e) {
653
+ if (e.target === document.body || e.target.classList.contains("q-layout__backdrop")) return !0;
654
+ let t = ce(e), n = e.shiftKey && !e.deltaX, r = !n && Math.abs(e.deltaX) <= Math.abs(e.deltaY), i = n || r ? e.deltaY : e.deltaX;
655
+ for (let e = 0; e < t.length; e++) {
656
+ let n = t[e];
657
+ if (p(n, r)) return r ? i < 0 && n.scrollTop === 0 || i > 0 && n.scrollTop + n.clientHeight === n.scrollHeight : i < 0 && n.scrollLeft === 0 || i > 0 && n.scrollLeft + n.clientWidth === n.scrollWidth;
658
+ }
659
+ return !0;
660
+ }
661
+ function bt(e) {
662
+ e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
663
+ }
664
+ function xt(e) {
665
+ X !== !0 && (X = !0, requestAnimationFrame(() => {
666
+ X = !1;
667
+ let { height: t } = e.target, { clientHeight: n, scrollTop: r } = document.scrollingElement;
668
+ (ht === void 0 || t !== window.innerHeight) && (ht = n - t, document.scrollingElement.scrollTop = r), r > ht && (document.scrollingElement.scrollTop -= Math.ceil((r - ht) / 8));
669
+ }));
670
+ }
671
+ function St(e) {
672
+ let t = document.body, n = window.visualViewport !== void 0;
673
+ if (e === "add") {
674
+ let { overflowY: e, overflowX: r } = window.getComputedStyle(t);
675
+ pt = N(window), mt = se(window), gt = t.style.left, Z = t.style.top, _t = window.location.href, t.style.left = `-${pt}px`, t.style.top = `-${mt}px`, r !== "hidden" && (r === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), e !== "hidden" && (e === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, F.is.ios === !0 && (n === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", xt, z.passiveCapture), window.visualViewport.addEventListener("scroll", xt, z.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", bt, z.passiveCapture));
676
+ }
677
+ F.is.desktop === !0 && F.is.mac === !0 && window[`${e}EventListener`]("wheel", vt, z.notPassive), e === "remove" && (F.is.ios === !0 && (n === !0 ? (window.visualViewport.removeEventListener("resize", xt, z.passiveCapture), window.visualViewport.removeEventListener("scroll", xt, z.passiveCapture)) : window.removeEventListener("scroll", bt, z.passiveCapture)), t.classList.remove("q-body--prevent-scroll"), t.classList.remove("q-body--force-scrollbar-x"), t.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, t.style.left = gt, t.style.top = Z, window.location.href === _t && window.scrollTo(pt, mt), ht = void 0);
678
+ }
679
+ function Ct(e) {
680
+ let t = "add";
681
+ if (e === !0) {
682
+ if (ft++, Q !== null) {
683
+ clearTimeout(Q), Q = null;
684
+ return;
685
+ }
686
+ if (ft > 1) return;
687
+ } else {
688
+ if (ft === 0 || (ft--, ft > 0)) return;
689
+ if (t = "remove", F.is.ios === !0 && F.is.nativeMobile === !0) {
690
+ Q !== null && clearTimeout(Q), Q = setTimeout(() => {
691
+ St(t), Q = null;
692
+ }, 100);
693
+ return;
694
+ }
695
+ }
696
+ St(t);
697
+ }
698
+ //#endregion
699
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/composables/private.use-prevent-scroll/use-prevent-scroll.js
700
+ function wt() {
701
+ let e;
702
+ return { preventBodyScroll(t) {
703
+ t !== e && (e !== void 0 || t === !0) && (e = t, Ct(t));
704
+ } };
705
+ }
706
+ //#endregion
707
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/dialog/QDialog.js
708
+ var Tt = 0, Et = {
709
+ standard: "fixed-full flex-center",
710
+ top: "fixed-top justify-center",
711
+ bottom: "fixed-bottom justify-center",
712
+ right: "fixed-right items-center",
713
+ left: "fixed-left items-center"
714
+ }, Dt = {
715
+ standard: ["scale", "scale"],
716
+ top: ["slide-down", "slide-up"],
717
+ bottom: ["slide-up", "slide-down"],
718
+ right: ["slide-left", "slide-right"],
719
+ left: ["slide-right", "slide-left"]
720
+ }, Ot = x({
721
+ name: "QDialog",
722
+ inheritAttrs: !1,
723
+ props: {
724
+ ...d,
725
+ ...v,
726
+ transitionShow: String,
727
+ transitionHide: String,
728
+ persistent: Boolean,
729
+ autoClose: Boolean,
730
+ allowFocusOutside: Boolean,
731
+ noEscDismiss: Boolean,
732
+ noBackdropDismiss: Boolean,
733
+ noRouteDismiss: Boolean,
734
+ noRefocus: Boolean,
735
+ noFocus: Boolean,
736
+ noShake: Boolean,
737
+ seamless: Boolean,
738
+ maximized: Boolean,
739
+ fullWidth: Boolean,
740
+ fullHeight: Boolean,
741
+ square: Boolean,
742
+ backdropFilter: String,
743
+ position: {
744
+ type: String,
745
+ default: "standard",
746
+ validator: (e) => [
747
+ "standard",
748
+ "top",
749
+ "bottom",
750
+ "left",
751
+ "right"
752
+ ].includes(e)
753
+ }
754
+ },
755
+ emits: [
756
+ ...s,
757
+ "shake",
758
+ "click",
759
+ "escapeKey"
760
+ ],
761
+ setup(e, { slots: t, emit: r, attrs: a }) {
762
+ let o = Te(), s = q(null), u = q(!1), d = q(!1), p = null, m = null, h, _, v = H(() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0), { preventBodyScroll: y } = wt(), { registerTimeout: b } = l(), { registerTick: x, removeTick: S } = f(), { transitionProps: C, transitionStyle: ee } = be(e, () => Dt[e.position][0], () => Dt[e.position][1]), w = H(() => ee.value + (e.backdropFilter === void 0 ? "" : `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)), { showPortal: T, hidePortal: E, portalIsAccessible: te, renderPortal: ne } = n(o, s, le, "dialog"), { hide: D } = de({
763
+ showing: u,
764
+ hideOnRouteChange: v,
765
+ handleShow: j,
766
+ handleHide: oe,
767
+ processOnMount: !0
768
+ }), { addToHistory: O, removeFromHistory: k } = dt(u, D, v), re = H(() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Et[e.position]}` + (d.value === !0 ? " q-dialog__inner--animating" : "") + (e.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (e.square === !0 ? " q-dialog__inner--square" : "")), A = H(() => u.value === !0 && e.seamless !== !0), ie = H(() => e.autoClose === !0 ? { onClick: I } : {}), ae = H(() => [`q-dialog fullscreen no-pointer-events q-dialog--${A.value === !0 ? "modal" : "seamless"}`, a.class]);
769
+ J(() => e.maximized, (e) => {
770
+ u.value === !0 && F(e);
771
+ }), J(A, (e) => {
772
+ y(e), e === !0 ? (rt(ce), $e(N)) : (it(ce), et(N));
773
+ });
774
+ function j(t) {
775
+ O(), m = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, F(e.maximized), T(), d.value = !0, e.noFocus === !0 ? S() : (document.activeElement?.blur(), x(M)), b(() => {
776
+ if (o.proxy.$q.platform.is.ios === !0) {
777
+ if (e.seamless !== !0 && document.activeElement) {
778
+ let { top: e, bottom: t } = document.activeElement.getBoundingClientRect(), { innerHeight: n } = window, r = window.visualViewport === void 0 ? n : window.visualViewport.height;
779
+ e > 0 && t > r / 2 && (document.scrollingElement.scrollTop = Math.min(document.scrollingElement.scrollHeight - r, t >= n ? Infinity : Math.ceil(document.scrollingElement.scrollTop + t - r / 2))), document.activeElement.scrollIntoView();
780
+ }
781
+ _ = !0, s.value.click(), _ = !1;
782
+ }
783
+ T(!0), d.value = !1, r("show", t);
784
+ }, e.transitionDuration);
785
+ }
786
+ function oe(t) {
787
+ S(), k(), P(!0), d.value = !0, E(), m !== null && (((t?.type.indexOf("key") === 0 ? m.closest("[tabindex]:not([tabindex^=\"-\"])") : void 0) || m).focus(), m = null), b(() => {
788
+ E(!0), d.value = !1, r("hide", t);
789
+ }, e.transitionDuration);
790
+ }
791
+ function M(e) {
792
+ c(() => {
793
+ let t = s.value;
794
+ if (t !== null) {
795
+ if (e !== void 0) {
796
+ let n = t.querySelector(e);
797
+ if (n !== null) {
798
+ n.focus({ preventScroll: !0 });
799
+ return;
800
+ }
801
+ }
802
+ t.contains(document.activeElement) !== !0 && (t = t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || t.querySelector("[autofocus], [data-autofocus]") || t, t.focus({ preventScroll: !0 }));
803
+ }
804
+ });
805
+ }
806
+ function se(e) {
807
+ e && typeof e.focus == "function" ? e.focus({ preventScroll: !0 }) : M(), r("shake");
808
+ let t = s.value;
809
+ t !== null && (t.classList.remove("q-animate--scale"), t.classList.add("q-animate--scale"), p !== null && clearTimeout(p), p = setTimeout(() => {
810
+ p = null, s.value !== null && (t.classList.remove("q-animate--scale"), M());
811
+ }, 170));
812
+ }
813
+ function N() {
814
+ e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && se() : (r("escapeKey"), D()));
815
+ }
816
+ function P(t) {
817
+ p !== null && (clearTimeout(p), p = null), (t === !0 || u.value === !0) && (F(!1), e.seamless !== !0 && (y(!1), it(ce), et(N))), t !== !0 && (m = null);
818
+ }
819
+ function F(e) {
820
+ e === !0 ? h !== !0 && (Tt < 1 && document.body.classList.add("q-body--dialog"), Tt++, h = !0) : h === !0 && (Tt < 2 && document.body.classList.remove("q-body--dialog"), Tt--, h = !1);
821
+ }
822
+ function I(e) {
823
+ _ !== !0 && (D(e), r("click", e));
824
+ }
825
+ function L(t) {
826
+ e.persistent !== !0 && e.noBackdropDismiss !== !0 ? D(t) : e.noShake !== !0 && se();
827
+ }
828
+ function ce(t) {
829
+ e.allowFocusOutside !== !0 && te.value === !0 && g(s.value, t.target) !== !0 && M("[tabindex]:not([tabindex=\"-1\"])");
830
+ }
831
+ Object.assign(o.proxy, {
832
+ focus: M,
833
+ shake: se,
834
+ __updateRefocusTarget(e) {
835
+ m = e || null;
836
+ }
837
+ }), De(P);
838
+ function le() {
839
+ return U("div", {
840
+ role: "dialog",
841
+ "aria-modal": A.value === !0 ? "true" : "false",
842
+ ...a,
843
+ class: ae.value
844
+ }, [U(we, {
845
+ name: "q-transition--fade",
846
+ appear: !0
847
+ }, () => A.value === !0 ? U("div", {
848
+ class: "q-dialog__backdrop fixed-full",
849
+ style: w.value,
850
+ "aria-hidden": "true",
851
+ tabindex: -1,
852
+ onClick: L
853
+ }) : null), U(we, C.value, () => u.value === !0 ? U("div", {
854
+ ref: s,
855
+ class: re.value,
856
+ style: ee.value,
857
+ tabindex: -1,
858
+ ...ie.value
859
+ }, i(t.default)) : null)]);
860
+ }
861
+ return ne;
862
+ }
863
+ }), kt = !1;
864
+ {
865
+ let e = document.createElement("div");
866
+ e.setAttribute("dir", "rtl"), Object.assign(e.style, {
867
+ width: "1px",
868
+ height: "1px",
869
+ overflow: "auto"
870
+ });
871
+ let t = document.createElement("div");
872
+ Object.assign(t.style, {
873
+ width: "1000px",
874
+ height: "1px"
875
+ }), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, kt = e.scrollLeft >= 0, e.remove();
876
+ }
877
+ //#endregion
878
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/virtual-scroll/use-virtual-scroll.js
879
+ var $ = 1e3, At = [
880
+ "start",
881
+ "center",
882
+ "end",
883
+ "start-force",
884
+ "center-force",
885
+ "end-force"
886
+ ], jt = Array.prototype.filter, Mt = window.getComputedStyle(document.body).overflowAnchor === void 0 ? M : function(e, t) {
887
+ e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
888
+ if (e === null) return;
889
+ e._qOverflowAnimationFrame = void 0;
890
+ let n = e.children || [];
891
+ jt.call(n, (e) => e.dataset && e.dataset.qVsAnchor !== void 0).forEach((e) => {
892
+ delete e.dataset.qVsAnchor;
893
+ });
894
+ let r = n[t];
895
+ r?.dataset && (r.dataset.qVsAnchor = "");
896
+ }));
897
+ };
898
+ function Nt(e, t) {
899
+ return e + t;
900
+ }
901
+ function Pt(e, t, n, r, i, a, o, s) {
902
+ let c = e === window ? document.scrollingElement || document.documentElement : e, l = i === !0 ? "offsetWidth" : "offsetHeight", u = {
903
+ scrollStart: 0,
904
+ scrollViewSize: -o - s,
905
+ scrollMaxSize: 0,
906
+ offsetStart: -o,
907
+ offsetEnd: -s
908
+ };
909
+ if (i === !0 ? (e === window ? (u.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, u.scrollViewSize += document.documentElement.clientWidth) : (u.scrollStart = c.scrollLeft, u.scrollViewSize += c.clientWidth), u.scrollMaxSize = c.scrollWidth, a === !0 && (u.scrollStart = (kt === !0 ? u.scrollMaxSize - u.scrollViewSize : 0) - u.scrollStart)) : (e === window ? (u.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, u.scrollViewSize += document.documentElement.clientHeight) : (u.scrollStart = c.scrollTop, u.scrollViewSize += c.clientHeight), u.scrollMaxSize = c.scrollHeight), n !== null) for (let e = n.previousElementSibling; e !== null; e = e.previousElementSibling) e.classList.contains("q-virtual-scroll--skip") === !1 && (u.offsetStart += e[l]);
910
+ if (r !== null) for (let e = r.nextElementSibling; e !== null; e = e.nextElementSibling) e.classList.contains("q-virtual-scroll--skip") === !1 && (u.offsetEnd += e[l]);
911
+ if (t !== e) {
912
+ let n = c.getBoundingClientRect(), r = t.getBoundingClientRect();
913
+ i === !0 ? (u.offsetStart += r.left - n.left, u.offsetEnd -= r.width) : (u.offsetStart += r.top - n.top, u.offsetEnd -= r.height), e !== window && (u.offsetStart += u.scrollStart), u.offsetEnd += u.scrollMaxSize - u.offsetStart;
914
+ }
915
+ return u;
916
+ }
917
+ function Ft(e, t, n, r) {
918
+ t === "end" && (t = (e === window ? document.body : e)[n === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? n === !0 ? (r === !0 && (t = (kt === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - t), window.scrollTo(t, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, t) : n === !0 ? (r === !0 && (t = (kt === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
919
+ }
920
+ function It(e, t, n, r) {
921
+ if (n >= r) return 0;
922
+ let i = t.length, a = Math.floor(n / $), o = Math.floor((r - 1) / $) + 1, s = e.slice(a, o).reduce(Nt, 0);
923
+ return n % $ !== 0 && (s -= t.slice(a * $, n).reduce(Nt, 0)), r % $ !== 0 && r !== i && (s -= t.slice(r, o * $).reduce(Nt, 0)), s;
924
+ }
925
+ var Lt = {
926
+ virtualScrollSliceSize: {
927
+ type: [Number, String],
928
+ default: 10
929
+ },
930
+ virtualScrollSliceRatioBefore: {
931
+ type: [Number, String],
932
+ default: 1
933
+ },
934
+ virtualScrollSliceRatioAfter: {
935
+ type: [Number, String],
936
+ default: 1
937
+ },
938
+ virtualScrollItemSize: {
939
+ type: [Number, String],
940
+ default: 24
941
+ },
942
+ virtualScrollStickySizeStart: {
943
+ type: [Number, String],
944
+ default: 0
945
+ },
946
+ virtualScrollStickySizeEnd: {
947
+ type: [Number, String],
948
+ default: 0
949
+ },
950
+ tableColspan: [Number, String]
951
+ };
952
+ Object.keys(Lt);
953
+ var Rt = {
954
+ virtualScrollHorizontal: Boolean,
955
+ onVirtualScroll: Function,
956
+ ...Lt
957
+ };
958
+ function zt({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrollEl: n, virtualScrollItemSizeComputed: r }) {
959
+ let { props: i, emit: a, proxy: o } = Te(), { $q: s } = o, c, l, u, d = [], f, p = q(0), m = q(0), h = q({}), g = q(null), _ = q(null), v = q(null), y = q({
960
+ from: 0,
961
+ to: 0
962
+ }), b = H(() => i.tableColspan === void 0 ? 100 : i.tableColspan);
963
+ r === void 0 && (r = H(() => i.virtualScrollItemSize));
964
+ let x = H(() => r.value + ";" + i.virtualScrollHorizontal), S = H(() => x.value + ";" + i.virtualScrollSliceRatioBefore + ";" + i.virtualScrollSliceRatioAfter);
965
+ J(S, () => {
966
+ O();
967
+ }), J(x, C);
968
+ function C() {
969
+ D(l, !0);
970
+ }
971
+ function ee(e) {
972
+ D(e === void 0 ? l : e);
973
+ }
974
+ function w(r, a) {
975
+ let o = t();
976
+ if (o == null || o.nodeType === 8) return;
977
+ let c = Pt(o, n(), g.value, _.value, i.virtualScrollHorizontal, s.lang.rtl, i.virtualScrollStickySizeStart, i.virtualScrollStickySizeEnd);
978
+ u !== c.scrollViewSize && O(c.scrollViewSize), E(o, c, Math.min(e.value - 1, Math.max(0, parseInt(r, 10) || 0)), 0, At.indexOf(a) === -1 ? l !== -1 && r > l ? "end" : "start" : a);
979
+ }
980
+ function T() {
981
+ let r = t();
982
+ if (r == null || r.nodeType === 8) return;
983
+ let a = Pt(r, n(), g.value, _.value, i.virtualScrollHorizontal, s.lang.rtl, i.virtualScrollStickySizeStart, i.virtualScrollStickySizeEnd), o = e.value - 1, l = a.scrollMaxSize - a.offsetStart - a.offsetEnd - m.value;
984
+ if (c === a.scrollStart) return;
985
+ if (a.scrollMaxSize <= 0) {
986
+ E(r, a, 0, 0);
987
+ return;
988
+ }
989
+ u !== a.scrollViewSize && O(a.scrollViewSize), te(y.value.from);
990
+ let h = Math.floor(a.scrollMaxSize - Math.max(a.scrollViewSize, a.offsetEnd) - Math.min(f[o], a.scrollViewSize / 2));
991
+ if (h > 0 && Math.ceil(a.scrollStart) >= h) {
992
+ E(r, a, o, a.scrollMaxSize - a.offsetEnd - d.reduce(Nt, 0));
993
+ return;
994
+ }
995
+ let v = 0, b = a.scrollStart - a.offsetStart, x = b;
996
+ if (b <= l && b + a.scrollViewSize >= p.value) b -= p.value, v = y.value.from, x = b;
997
+ else for (let e = 0; b >= d[e] && v < o; e++) b -= d[e], v += $;
998
+ for (; b > 0 && v < o;) b -= f[v], b > -a.scrollViewSize ? (v++, x = b) : x = f[v] + b;
999
+ E(r, a, v, x);
1000
+ }
1001
+ function E(t, n, r, a, o) {
1002
+ let l = typeof o == "string" && o.indexOf("-force") !== -1, u = l === !0 ? o.replace("-force", "") : o, g = u === void 0 ? "start" : u, _ = Math.max(0, r - h.value[g]), b = _ + h.value.total;
1003
+ b > e.value && (b = e.value, _ = Math.max(0, b - h.value.total)), c = n.scrollStart;
1004
+ let x = _ !== y.value.from || b !== y.value.to;
1005
+ if (x === !1 && u === void 0) {
1006
+ re(r);
1007
+ return;
1008
+ }
1009
+ let { activeElement: S } = document, C = v.value;
1010
+ x === !0 && C !== null && C !== S && C.contains(S) === !0 && (C.addEventListener("focusout", ne), setTimeout(() => {
1011
+ C?.removeEventListener("focusout", ne);
1012
+ })), Mt(C, r - _);
1013
+ let ee = u === void 0 ? 0 : f.slice(_, r).reduce(Nt, 0);
1014
+ if (x === !0) {
1015
+ let t = b >= y.value.from && _ <= y.value.to ? y.value.to : b;
1016
+ y.value = {
1017
+ from: _,
1018
+ to: t
1019
+ }, p.value = It(d, f, 0, _), m.value = It(d, f, b, e.value), requestAnimationFrame(() => {
1020
+ y.value.to !== b && c === n.scrollStart && (y.value = {
1021
+ from: y.value.from,
1022
+ to: b
1023
+ }, m.value = It(d, f, b, e.value));
1024
+ });
1025
+ }
1026
+ requestAnimationFrame(() => {
1027
+ if (c !== n.scrollStart) return;
1028
+ x === !0 && te(_);
1029
+ let e = f.slice(_, r).reduce(Nt, 0), o = e + n.offsetStart + p.value, d = o + f[r], m = o + a;
1030
+ if (u !== void 0) {
1031
+ let t = e - ee, i = n.scrollStart + t;
1032
+ m = l !== !0 && i < o && d < i + n.scrollViewSize ? i : u === "end" ? d - n.scrollViewSize : o - (u === "start" ? 0 : Math.round((n.scrollViewSize - f[r]) / 2));
1033
+ }
1034
+ c = m, Ft(t, m, i.virtualScrollHorizontal, s.lang.rtl), re(r);
1035
+ });
1036
+ }
1037
+ function te(e) {
1038
+ let t = v.value;
1039
+ if (t) {
1040
+ let n = jt.call(t.children, (e) => e.classList && e.classList.contains("q-virtual-scroll--skip") === !1), r = n.length, a = i.virtualScrollHorizontal === !0 ? (e) => e.getBoundingClientRect().width : (e) => e.offsetHeight, o = e, s, c;
1041
+ for (let e = 0; e < r;) {
1042
+ for (s = a(n[e]), e++; e < r && n[e].classList.contains("q-virtual-scroll--with-prev") === !0;) s += a(n[e]), e++;
1043
+ c = s - f[o], c !== 0 && (f[o] += c, d[Math.floor(o / $)] += c), o++;
1044
+ }
1045
+ }
1046
+ }
1047
+ function ne() {
1048
+ v.value?.focus();
1049
+ }
1050
+ function D(t, n) {
1051
+ let i = 1 * r.value;
1052
+ (n === !0 || Array.isArray(f) === !1) && (f = []);
1053
+ let a = f.length;
1054
+ f.length = e.value;
1055
+ for (let t = e.value - 1; t >= a; t--) f[t] = i;
1056
+ let o = Math.floor((e.value - 1) / $);
1057
+ d = [];
1058
+ for (let t = 0; t <= o; t++) {
1059
+ let n = 0, r = Math.min((t + 1) * $, e.value);
1060
+ for (let e = t * $; e < r; e++) n += f[e];
1061
+ d.push(n);
1062
+ }
1063
+ l = -1, c = void 0, p.value = It(d, f, 0, y.value.from), m.value = It(d, f, y.value.to, e.value), t >= 0 ? (te(y.value.from), W(() => {
1064
+ w(t);
1065
+ })) : A();
1066
+ }
1067
+ function O(e) {
1068
+ if (e === void 0 && typeof window < "u") {
1069
+ let r = t();
1070
+ r != null && r.nodeType !== 8 && (e = Pt(r, n(), g.value, _.value, i.virtualScrollHorizontal, s.lang.rtl, i.virtualScrollStickySizeStart, i.virtualScrollStickySizeEnd).scrollViewSize);
1071
+ }
1072
+ u = e;
1073
+ let a = parseFloat(i.virtualScrollSliceRatioBefore) || 0, o = parseFloat(i.virtualScrollSliceRatioAfter) || 0, c = 1 + a + o, l = e === void 0 || e <= 0 ? 1 : Math.ceil(e / r.value), d = Math.max(1, l, Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / c));
1074
+ h.value = {
1075
+ total: Math.ceil(d * c),
1076
+ start: Math.ceil(d * a),
1077
+ center: Math.ceil(d * (.5 + a)),
1078
+ end: Math.ceil(d * (1 + a)),
1079
+ view: l
1080
+ };
1081
+ }
1082
+ function k(e, t) {
1083
+ let n = i.virtualScrollHorizontal === !0 ? "width" : "height", a = { ["--q-virtual-scroll-item-" + n]: r.value + "px" };
1084
+ return [
1085
+ e === "tbody" ? U(e, {
1086
+ class: "q-virtual-scroll__padding",
1087
+ key: "before",
1088
+ ref: g
1089
+ }, [U("tr", [U("td", {
1090
+ style: {
1091
+ [n]: `${p.value}px`,
1092
+ ...a
1093
+ },
1094
+ colspan: b.value
1095
+ })])]) : U(e, {
1096
+ class: "q-virtual-scroll__padding",
1097
+ key: "before",
1098
+ ref: g,
1099
+ style: {
1100
+ [n]: `${p.value}px`,
1101
+ ...a
1102
+ }
1103
+ }),
1104
+ U(e, {
1105
+ class: "q-virtual-scroll__content",
1106
+ key: "content",
1107
+ ref: v,
1108
+ tabindex: -1
1109
+ }, t.flat()),
1110
+ e === "tbody" ? U(e, {
1111
+ class: "q-virtual-scroll__padding",
1112
+ key: "after",
1113
+ ref: _
1114
+ }, [U("tr", [U("td", {
1115
+ style: {
1116
+ [n]: `${m.value}px`,
1117
+ ...a
1118
+ },
1119
+ colspan: b.value
1120
+ })])]) : U(e, {
1121
+ class: "q-virtual-scroll__padding",
1122
+ key: "after",
1123
+ ref: _,
1124
+ style: {
1125
+ [n]: `${m.value}px`,
1126
+ ...a
1127
+ }
1128
+ })
1129
+ ];
1130
+ }
1131
+ function re(e) {
1132
+ l !== e && (i.onVirtualScroll !== void 0 && a("virtualScroll", {
1133
+ index: e,
1134
+ from: y.value.from,
1135
+ to: y.value.to - 1,
1136
+ direction: e < l ? "decrease" : "increase",
1137
+ ref: o
1138
+ }), l = e);
1139
+ }
1140
+ O();
1141
+ let A = ie(T, s.platform.is.ios === !0 ? 120 : 35);
1142
+ G(() => {
1143
+ O();
1144
+ });
1145
+ let ae = !1;
1146
+ return K(() => {
1147
+ ae = !0;
1148
+ }), Ee(() => {
1149
+ if (ae !== !0) return;
1150
+ let e = t();
1151
+ c !== void 0 && e != null && e.nodeType !== 8 ? Ft(e, c, i.virtualScrollHorizontal, s.lang.rtl) : w(l);
1152
+ }), De(() => {
1153
+ A.cancel();
1154
+ }), Object.assign(o, {
1155
+ scrollTo: w,
1156
+ reset: C,
1157
+ refresh: ee
1158
+ }), {
1159
+ virtualScrollSliceRange: y,
1160
+ virtualScrollSliceSizeComputed: h,
1161
+ setVirtualScrollSize: O,
1162
+ onVirtualScrollEvt: A,
1163
+ localResetVirtualScroll: D,
1164
+ padVirtualScroll: k,
1165
+ scrollTo: w,
1166
+ reset: C,
1167
+ refresh: ee
1168
+ };
1169
+ }
1170
+ //#endregion
1171
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/is/is.js
1172
+ function Bt(e, t) {
1173
+ if (e === t) return !0;
1174
+ if (e !== null && t !== null && typeof e == "object" && typeof t == "object") {
1175
+ if (e.constructor !== t.constructor) return !1;
1176
+ let n, r;
1177
+ if (e.constructor === Array) {
1178
+ if (n = e.length, n !== t.length) return !1;
1179
+ for (r = n; r-- !== 0;) if (Bt(e[r], t[r]) !== !0) return !1;
1180
+ return !0;
1181
+ }
1182
+ if (e.constructor === Map) {
1183
+ if (e.size !== t.size) return !1;
1184
+ let n = e.entries();
1185
+ for (r = n.next(); r.done !== !0;) {
1186
+ if (t.has(r.value[0]) !== !0) return !1;
1187
+ r = n.next();
1188
+ }
1189
+ for (n = e.entries(), r = n.next(); r.done !== !0;) {
1190
+ if (Bt(r.value[1], t.get(r.value[0])) !== !0) return !1;
1191
+ r = n.next();
1192
+ }
1193
+ return !0;
1194
+ }
1195
+ if (e.constructor === Set) {
1196
+ if (e.size !== t.size) return !1;
1197
+ let n = e.entries();
1198
+ for (r = n.next(); r.done !== !0;) {
1199
+ if (t.has(r.value[0]) !== !0) return !1;
1200
+ r = n.next();
1201
+ }
1202
+ return !0;
1203
+ }
1204
+ if (e.buffer != null && e.buffer.constructor === ArrayBuffer) {
1205
+ if (n = e.length, n !== t.length) return !1;
1206
+ for (r = n; r-- !== 0;) if (e[r] !== t[r]) return !1;
1207
+ return !0;
1208
+ }
1209
+ if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
1210
+ if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
1211
+ if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
1212
+ let i = Object.keys(e).filter((t) => e[t] !== void 0);
1213
+ if (n = i.length, n !== Object.keys(t).filter((e) => t[e] !== void 0).length) return !1;
1214
+ for (r = n; r-- !== 0;) {
1215
+ let n = i[r];
1216
+ if (Bt(e[n], t[n]) !== !0) return !1;
1217
+ }
1218
+ return !0;
1219
+ }
1220
+ return e !== e && t !== t;
1221
+ }
1222
+ //#endregion
1223
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/format/format.js
1224
+ function Vt(e, t, n) {
1225
+ if (n <= t) return t;
1226
+ let r = n - t + 1, i = t + (e - t) % r;
1227
+ return i < t && (i = r + i), i === 0 ? 0 : i;
1228
+ }
1229
+ //#endregion
1230
+ //#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/select/QSelect.js
1231
+ var Ht = (e) => [
1232
+ "add",
1233
+ "add-unique",
1234
+ "toggle"
1235
+ ].includes(e), Ut = ".*+?^${}()|[]\\", Wt = Object.keys(P);
1236
+ function Gt(e, t) {
1237
+ if (typeof e == "function") return e;
1238
+ let n = e === void 0 ? t : e;
1239
+ return (e) => typeof e == "object" && e && n in e ? e[n] : e;
1240
+ }
1241
+ var Kt = x({
1242
+ name: "QSelect",
1243
+ inheritAttrs: !1,
1244
+ props: {
1245
+ ...Rt,
1246
+ ...le,
1247
+ ...P,
1248
+ modelValue: { required: !0 },
1249
+ multiple: Boolean,
1250
+ displayValue: [String, Number],
1251
+ displayValueHtml: Boolean,
1252
+ dropdownIcon: String,
1253
+ options: {
1254
+ type: Array,
1255
+ default: () => []
1256
+ },
1257
+ optionValue: [Function, String],
1258
+ optionLabel: [Function, String],
1259
+ optionDisable: [Function, String],
1260
+ hideSelected: Boolean,
1261
+ hideDropdownIcon: Boolean,
1262
+ fillInput: Boolean,
1263
+ maxValues: [Number, String],
1264
+ optionsDense: Boolean,
1265
+ optionsDark: {
1266
+ type: Boolean,
1267
+ default: null
1268
+ },
1269
+ optionsSelectedClass: String,
1270
+ optionsHtml: Boolean,
1271
+ optionsCover: Boolean,
1272
+ menuShrink: Boolean,
1273
+ menuAnchor: String,
1274
+ menuSelf: String,
1275
+ menuOffset: Array,
1276
+ popupContentClass: String,
1277
+ popupContentStyle: [
1278
+ String,
1279
+ Array,
1280
+ Object
1281
+ ],
1282
+ popupNoRouteDismiss: Boolean,
1283
+ useInput: Boolean,
1284
+ useChips: Boolean,
1285
+ newValueMode: {
1286
+ type: String,
1287
+ validator: Ht
1288
+ },
1289
+ mapOptions: Boolean,
1290
+ emitValue: Boolean,
1291
+ disableTabSelection: Boolean,
1292
+ inputDebounce: {
1293
+ type: [Number, String],
1294
+ default: 500
1295
+ },
1296
+ inputClass: [
1297
+ Array,
1298
+ String,
1299
+ Object
1300
+ ],
1301
+ inputStyle: [
1302
+ Array,
1303
+ String,
1304
+ Object
1305
+ ],
1306
+ tabindex: {
1307
+ type: [String, Number],
1308
+ default: 0
1309
+ },
1310
+ autocomplete: String,
1311
+ transitionShow: {},
1312
+ transitionHide: {},
1313
+ transitionDuration: {},
1314
+ behavior: {
1315
+ type: String,
1316
+ validator: (e) => [
1317
+ "default",
1318
+ "menu",
1319
+ "dialog"
1320
+ ].includes(e),
1321
+ default: "default"
1322
+ },
1323
+ virtualScrollItemSize: Rt.virtualScrollItemSize.type,
1324
+ onNewValue: Function,
1325
+ onFilter: Function
1326
+ },
1327
+ emits: [
1328
+ ...O,
1329
+ "add",
1330
+ "remove",
1331
+ "inputValue",
1332
+ "keyup",
1333
+ "keypress",
1334
+ "keydown",
1335
+ "popupShow",
1336
+ "popupHide",
1337
+ "filterAbort"
1338
+ ],
1339
+ setup(t, { slots: n, emit: r }) {
1340
+ let { proxy: i } = Te(), { $q: a } = i, o = q(!1), s = q(!1), c = q(-1), l = q(""), u = q(!1), d = q(!1), f = null, p = null, m, h, g, v = null, y, x, S, C, ee = q(null), w = q(null), T = q(null), E = q(null), ne = q(null), D = te(t), O = oe(nt), A = H(() => Array.isArray(t.options) ? t.options.length : 0), { virtualScrollSliceRange: ie, virtualScrollSliceSizeComputed: ae, localResetVirtualScroll: M, padVirtualScroll: se, onVirtualScrollEvt: N, scrollTo: P, setVirtualScrollSize: F } = zt({
1341
+ virtualScrollLength: A,
1342
+ getVirtualScrollTarget: Qe,
1343
+ getVirtualScrollEl: Ze,
1344
+ virtualScrollItemSizeComputed: H(() => t.virtualScrollItemSize === void 0 ? t.optionsDense === !0 ? 24 : 48 : t.virtualScrollItemSize)
1345
+ }), I = ge(), L = H(() => {
1346
+ let e = t.mapOptions === !0 && t.multiple !== !0, n = t.modelValue !== void 0 && (t.modelValue !== null || e === !0) ? t.multiple === !0 && Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue] : [];
1347
+ if (t.mapOptions === !0 && Array.isArray(t.options) === !0) {
1348
+ let r = t.mapOptions === !0 && m !== void 0 ? m : [], i = n.map((e) => He(e, r));
1349
+ return t.modelValue === null && e === !0 ? i.filter((e) => e !== null) : i;
1350
+ }
1351
+ return n;
1352
+ }), ce = H(() => {
1353
+ let e = {};
1354
+ return Wt.forEach((n) => {
1355
+ let r = t[n];
1356
+ r !== void 0 && (e[n] = r);
1357
+ }), e;
1358
+ }), le = H(() => t.optionsDark === null ? I.isDark.value : t.optionsDark), R = H(() => pe(L.value)), de = H(() => {
1359
+ let e = "q-field__input q-placeholder col";
1360
+ return t.hideSelected === !0 || L.value.length === 0 ? [e, t.inputClass] : (e += " q-field__input--padding", t.inputClass === void 0 ? e : [e, t.inputClass]);
1361
+ }), fe = H(() => (t.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (t.popupContentClass ? " " + t.popupContentClass : "")), z = H(() => A.value === 0), me = H(() => L.value.map((e) => K.value(e)).join(", ")), he = H(() => t.displayValue === void 0 ? me.value : t.displayValue), _e = H(() => t.optionsHtml === !0 ? () => !0 : (e) => e?.html === !0), ve = H(() => t.displayValueHtml === !0 || t.displayValue === void 0 && (t.optionsHtml === !0 || L.value.some(_e.value))), V = H(() => I.focused.value === !0 ? t.tabindex : -1), ye = H(() => {
1362
+ let e = {
1363
+ tabindex: t.tabindex,
1364
+ role: "combobox",
1365
+ "aria-label": t.label,
1366
+ "aria-readonly": t.readonly === !0 ? "true" : "false",
1367
+ "aria-autocomplete": t.useInput === !0 ? "list" : "none",
1368
+ "aria-expanded": o.value === !0 ? "true" : "false",
1369
+ "aria-controls": `${I.targetUid.value}_lb`
1370
+ };
1371
+ return c.value >= 0 && (e["aria-activedescendant"] = `${I.targetUid.value}_${c.value}`), e;
1372
+ }), be = H(() => ({
1373
+ id: `${I.targetUid.value}_lb`,
1374
+ role: "listbox",
1375
+ "aria-multiselectable": t.multiple === !0 ? "true" : "false"
1376
+ })), xe = H(() => L.value.map((e, t) => ({
1377
+ index: t,
1378
+ opt: e,
1379
+ html: _e.value(e),
1380
+ selected: !0,
1381
+ removeAtIndex: Le,
1382
+ toggleOption: ze,
1383
+ tabindex: V.value
1384
+ }))), Se = H(() => {
1385
+ if (A.value === 0) return [];
1386
+ let { from: e, to: n } = ie.value;
1387
+ return t.options.slice(e, n).map((n, r) => {
1388
+ let i = je.value(n) === !0, s = Ue(n) === !0, l = e + r, u = {
1389
+ clickable: !0,
1390
+ active: s,
1391
+ activeClass: Ee.value,
1392
+ manualFocus: !0,
1393
+ focused: !1,
1394
+ disable: i,
1395
+ tabindex: -1,
1396
+ dense: t.optionsDense,
1397
+ dark: le.value,
1398
+ role: "option",
1399
+ "aria-selected": s === !0 ? "true" : "false",
1400
+ id: `${I.targetUid.value}_${l}`,
1401
+ onClick: () => {
1402
+ ze(n);
1403
+ }
1404
+ };
1405
+ return i !== !0 && (c.value === l && (u.focused = !0), a.platform.is.desktop === !0 && (u.onMousemove = () => {
1406
+ o.value === !0 && Be(l);
1407
+ })), {
1408
+ index: l,
1409
+ opt: n,
1410
+ html: _e.value(n),
1411
+ label: K.value(n),
1412
+ selected: u.active,
1413
+ focused: u.focused,
1414
+ toggleOption: ze,
1415
+ setOptionIndex: Be,
1416
+ itemProps: u
1417
+ };
1418
+ });
1419
+ }), Ce = H(() => t.dropdownIcon === void 0 ? a.iconSet.arrow.dropdown : t.dropdownIcon), we = H(() => t.optionsCover === !1 && t.outlined !== !0 && t.standout !== !0 && t.borderless !== !0 && t.rounded !== !0), Ee = H(() => t.optionsSelectedClass === void 0 ? t.color === void 0 ? "" : `text-${t.color}` : t.optionsSelectedClass), G = H(() => Gt(t.optionValue, "value")), K = H(() => Gt(t.optionLabel, "label")), je = H(() => Gt(t.optionDisable, "disable")), Me = H(() => L.value.map(G.value)), Ne = H(() => {
1420
+ let e = {
1421
+ onInput: nt,
1422
+ onChange: O,
1423
+ onKeydown: Xe,
1424
+ onKeyup: Je,
1425
+ onKeypress: Ye,
1426
+ onFocus: We,
1427
+ onClick(e) {
1428
+ h === !0 && B(e);
1429
+ }
1430
+ };
1431
+ return e.onCompositionstart = e.onCompositionupdate = e.onCompositionend = O, e;
1432
+ });
1433
+ J(L, (e) => {
1434
+ m = e, t.useInput === !0 && t.fillInput === !0 && t.multiple !== !0 && I.innerLoading.value !== !0 && (s.value !== !0 && o.value !== !0 || R.value !== !0) && (g !== !0 && _t(), (s.value === !0 || o.value === !0) && ot(""));
1435
+ }, { immediate: !0 }), J(() => t.fillInput, _t), J(o, Q), J(A, vt);
1436
+ function Pe(e) {
1437
+ return t.emitValue === !0 ? G.value(e) : e;
1438
+ }
1439
+ function Fe(e) {
1440
+ if (e !== -1 && e < L.value.length) {
1441
+ if (t.multiple === !0) {
1442
+ let n = t.modelValue.slice();
1443
+ r("remove", {
1444
+ index: e,
1445
+ value: n.splice(e, 1)[0]
1446
+ }), r("update:modelValue", n);
1447
+ } else r("update:modelValue", null);
1448
+ }
1449
+ }
1450
+ function Le(e) {
1451
+ Fe(e), I.focus();
1452
+ }
1453
+ function Re(e, n) {
1454
+ let i = Pe(e);
1455
+ if (t.multiple !== !0) {
1456
+ t.fillInput === !0 && it(K.value(e), !0, !0), r("update:modelValue", i);
1457
+ return;
1458
+ }
1459
+ if (L.value.length === 0) {
1460
+ r("add", {
1461
+ index: 0,
1462
+ value: i
1463
+ }), r("update:modelValue", t.multiple === !0 ? [i] : i);
1464
+ return;
1465
+ }
1466
+ if (n === !0 && Ue(e) === !0 || t.maxValues !== void 0 && t.modelValue.length >= t.maxValues) return;
1467
+ let a = t.modelValue.slice();
1468
+ r("add", {
1469
+ index: a.length,
1470
+ value: i
1471
+ }), a.push(i), r("update:modelValue", a);
1472
+ }
1473
+ function ze(e, n) {
1474
+ if (I.editable.value !== !0 || e === void 0 || je.value(e) === !0) return;
1475
+ let i = G.value(e);
1476
+ if (t.multiple !== !0) {
1477
+ n !== !0 && (it(t.fillInput === !0 ? K.value(e) : "", !0, !0), Z()), w.value?.focus(), (L.value.length === 0 || Bt(G.value(L.value[0]), i) !== !0) && r("update:modelValue", t.emitValue === !0 ? i : e);
1478
+ return;
1479
+ }
1480
+ if ((h !== !0 || u.value === !0) && I.focus(), We(), L.value.length === 0) {
1481
+ let n = t.emitValue === !0 ? i : e;
1482
+ r("add", {
1483
+ index: 0,
1484
+ value: n
1485
+ }), r("update:modelValue", t.multiple === !0 ? [n] : n);
1486
+ return;
1487
+ }
1488
+ let a = t.modelValue.slice(), o = Me.value.findIndex((e) => Bt(e, i));
1489
+ if (o !== -1) r("remove", {
1490
+ index: o,
1491
+ value: a.splice(o, 1)[0]
1492
+ });
1493
+ else {
1494
+ if (t.maxValues !== void 0 && a.length >= t.maxValues) return;
1495
+ let n = t.emitValue === !0 ? i : e;
1496
+ r("add", {
1497
+ index: a.length,
1498
+ value: n
1499
+ }), a.push(n);
1500
+ }
1501
+ r("update:modelValue", a);
1502
+ }
1503
+ function Be(e) {
1504
+ if (a.platform.is.desktop !== !0) return;
1505
+ let t = e !== -1 && e < A.value ? e : -1;
1506
+ c.value !== t && (c.value = t);
1507
+ }
1508
+ function Ve(e = 1, n) {
1509
+ if (o.value === !0) {
1510
+ let r = c.value;
1511
+ do
1512
+ r = Vt(r + e, -1, A.value - 1);
1513
+ while (r !== -1 && r !== c.value && je.value(t.options[r]) === !0);
1514
+ c.value !== r && (Be(r), P(r), n !== !0 && t.useInput === !0 && t.fillInput === !0 && rt(r >= 0 ? K.value(t.options[r]) : y, !0));
1515
+ }
1516
+ }
1517
+ function He(e, n) {
1518
+ let r = (t) => Bt(G.value(t), e);
1519
+ return t.options.find(r) || n.find(r) || e;
1520
+ }
1521
+ function Ue(e) {
1522
+ let t = G.value(e);
1523
+ return Me.value.find((e) => Bt(e, t)) !== void 0;
1524
+ }
1525
+ function We(e) {
1526
+ t.useInput === !0 && w.value !== null && (e === void 0 || w.value === e.target && e.target.value === me.value) && w.value.select();
1527
+ }
1528
+ function Y(e) {
1529
+ _(e, 27) === !0 && o.value === !0 && (B(e), Z(), _t()), r("keyup", e);
1530
+ }
1531
+ function Je(e) {
1532
+ let { value: n } = e.target;
1533
+ if (e.keyCode !== void 0) {
1534
+ Y(e);
1535
+ return;
1536
+ }
1537
+ if (e.target.value = "", f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null), _t(), typeof n == "string" && n.length !== 0) {
1538
+ let e = n.toLocaleLowerCase(), r = (n) => {
1539
+ let r = t.options.find((t) => String(n.value(t)).toLocaleLowerCase() === e);
1540
+ return r !== void 0 && (L.value.indexOf(r) === -1 ? ze(r) : Z(), !0);
1541
+ }, i = (e) => {
1542
+ r(G) !== !0 && e !== !0 && r(K) !== !0 && ot(n, !0, () => i(!0));
1543
+ };
1544
+ i();
1545
+ } else I.clearValue(e);
1546
+ }
1547
+ function Ye(e) {
1548
+ r("keypress", e);
1549
+ }
1550
+ function Xe(n) {
1551
+ if (r("keydown", n), e(n) === !0) return;
1552
+ let i = l.value.length !== 0 && (t.newValueMode !== void 0 || t.onNewValue !== void 0), a = n.shiftKey !== !0 && t.disableTabSelection !== !0 && t.multiple !== !0 && (c.value !== -1 || i === !0);
1553
+ if (n.keyCode === 27) {
1554
+ ue(n);
1555
+ return;
1556
+ }
1557
+ if (n.keyCode === 9 && a === !1) {
1558
+ X();
1559
+ return;
1560
+ }
1561
+ if (n.target === void 0 || n.target.id !== I.targetUid.value || I.editable.value !== !0) return;
1562
+ if (n.keyCode === 40 && I.innerLoading.value !== !0 && o.value === !1) {
1563
+ k(n), gt();
1564
+ return;
1565
+ }
1566
+ if (n.keyCode === 8 && (t.useChips === !0 || t.clearable === !0) && t.hideSelected !== !0 && l.value.length === 0) {
1567
+ t.multiple === !0 && Array.isArray(t.modelValue) === !0 ? Fe(t.modelValue.length - 1) : t.multiple !== !0 && t.modelValue !== null && r("update:modelValue", null);
1568
+ return;
1569
+ }
1570
+ (n.keyCode === 35 || n.keyCode === 36) && (typeof l.value != "string" || l.value.length === 0) && (k(n), c.value = -1, Ve(n.keyCode === 36 ? 1 : -1, t.multiple)), (n.keyCode === 33 || n.keyCode === 34) && ae.value !== void 0 && (k(n), c.value = Math.max(-1, Math.min(A.value, c.value + (n.keyCode === 33 ? -1 : 1) * ae.value.view)), Ve(n.keyCode === 33 ? 1 : -1, t.multiple)), (n.keyCode === 38 || n.keyCode === 40) && (k(n), Ve(n.keyCode === 38 ? -1 : 1, t.multiple));
1571
+ let s = A.value;
1572
+ if ((S === void 0 || C < Date.now()) && (S = ""), s > 0 && t.useInput !== !0 && n.key !== void 0 && n.key.length === 1 && n.altKey === !1 && n.ctrlKey === !1 && n.metaKey === !1 && (n.keyCode !== 32 || S.length !== 0)) {
1573
+ o.value !== !0 && gt(n);
1574
+ let e = n.key.toLocaleLowerCase(), r = S.length === 1 && S[0] === e;
1575
+ C = Date.now() + 1500, r === !1 && (k(n), S += e);
1576
+ let i = RegExp("^" + S.split("").map((e) => Ut.indexOf(e) === -1 ? e : "\\" + e).join(".*"), "i"), a = c.value;
1577
+ if (r === !0 || a < 0 || i.test(K.value(t.options[a])) !== !0) do
1578
+ a = Vt(a + 1, -1, s - 1);
1579
+ while (a !== c.value && (je.value(t.options[a]) === !0 || i.test(K.value(t.options[a])) !== !0));
1580
+ c.value !== a && W(() => {
1581
+ Be(a), P(a), a >= 0 && t.useInput === !0 && t.fillInput === !0 && rt(K.value(t.options[a]), !0);
1582
+ });
1583
+ return;
1584
+ }
1585
+ if (n.keyCode === 13 || n.keyCode === 32 && t.useInput !== !0 && S === "" || n.keyCode === 9 && a !== !1) {
1586
+ if (n.keyCode !== 9 && k(n), c.value !== -1 && c.value < s) {
1587
+ ze(t.options[c.value]);
1588
+ return;
1589
+ }
1590
+ if (i === !0) {
1591
+ let e = (e, n) => {
1592
+ if (n) {
1593
+ if (Ht(n) !== !0) return;
1594
+ } else n = t.newValueMode;
1595
+ it("", t.multiple !== !0, !0), e != null && ((n === "toggle" ? ze : Re)(e, n === "add-unique"), t.multiple !== !0 && (w.value?.focus(), Z()));
1596
+ };
1597
+ if (t.onNewValue === void 0 ? e(l.value) : r("newValue", l.value, e), t.multiple !== !0) return;
1598
+ }
1599
+ o.value === !0 ? X() : I.innerLoading.value !== !0 && gt();
1600
+ }
1601
+ }
1602
+ function Ze() {
1603
+ return h === !0 ? ne.value : T.value !== null && T.value.contentEl !== null ? T.value.contentEl : void 0;
1604
+ }
1605
+ function Qe() {
1606
+ return Ze();
1607
+ }
1608
+ function $e() {
1609
+ return t.hideSelected === !0 ? [] : n["selected-item"] === void 0 ? n.selected === void 0 ? t.useChips === !0 ? xe.value.map((e, n) => U(Ie, {
1610
+ key: "option-" + n,
1611
+ removable: I.editable.value === !0 && je.value(e.opt) !== !0,
1612
+ dense: !0,
1613
+ textColor: t.color,
1614
+ tabindex: V.value,
1615
+ onRemove() {
1616
+ e.removeAtIndex(n);
1617
+ }
1618
+ }, () => U("span", {
1619
+ class: "ellipsis",
1620
+ [e.html === !0 ? "innerHTML" : "textContent"]: K.value(e.opt)
1621
+ }))) : [U("span", {
1622
+ class: "ellipsis",
1623
+ [ve.value === !0 ? "innerHTML" : "textContent"]: he.value
1624
+ })] : [].concat(n.selected()) : xe.value.map((e) => n["selected-item"](e)).slice();
1625
+ }
1626
+ function et() {
1627
+ if (z.value === !0) return n["no-option"] === void 0 ? void 0 : n["no-option"]({ inputValue: l.value });
1628
+ let e = n.option === void 0 ? (e) => U(Ge, {
1629
+ key: e.index,
1630
+ ...e.itemProps
1631
+ }, () => U(Ke, () => U(qe, () => U("span", { [e.html === !0 ? "innerHTML" : "textContent"]: e.label })))) : n.option, t = se("div", Se.value.map(e));
1632
+ return n["before-options"] !== void 0 && (t = n["before-options"]().concat(t)), b(n["after-options"], t);
1633
+ }
1634
+ function tt(e, n) {
1635
+ let r = n === !0 ? {
1636
+ ...ye.value,
1637
+ ...I.splitAttrs.attributes.value
1638
+ } : void 0, i = {
1639
+ ref: n === !0 ? w : void 0,
1640
+ key: "i_t",
1641
+ class: de.value,
1642
+ style: t.inputStyle,
1643
+ value: l.value === void 0 ? "" : l.value,
1644
+ type: "search",
1645
+ ...r,
1646
+ id: n === !0 ? I.targetUid.value : void 0,
1647
+ maxlength: t.maxlength,
1648
+ autocomplete: t.autocomplete,
1649
+ "data-autofocus": e === !0 || t.autofocus === !0 || void 0,
1650
+ disabled: t.disable === !0,
1651
+ readonly: t.readonly === !0,
1652
+ ...Ne.value
1653
+ };
1654
+ return e !== !0 && h === !0 && (Array.isArray(i.class) === !0 ? i.class = [...i.class, "no-pointer-events"] : i.class += " no-pointer-events"), U("input", i);
1655
+ }
1656
+ function nt(e) {
1657
+ f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null), !(e && e.target && e.target.qComposing === !0) && (rt(e.target.value || ""), g = !0, y = l.value, I.focused.value !== !0 && (h !== !0 || u.value === !0) && I.focus(), t.onFilter !== void 0 && (f = setTimeout(() => {
1658
+ f = null, ot(l.value);
1659
+ }, t.inputDebounce)));
1660
+ }
1661
+ function rt(e, n) {
1662
+ l.value !== e && (l.value = e, n === !0 || t.inputDebounce === 0 || t.inputDebounce === "0" ? r("inputValue", e) : p = setTimeout(() => {
1663
+ p = null, r("inputValue", e);
1664
+ }, t.inputDebounce));
1665
+ }
1666
+ function it(e, n, r) {
1667
+ g = r !== !0, t.useInput === !0 && (rt(e, !0), (n === !0 || r !== !0) && (y = e), n !== !0 && ot(e));
1668
+ }
1669
+ function ot(e, n, a) {
1670
+ if (t.onFilter === void 0 || n !== !0 && I.focused.value !== !0) return;
1671
+ I.innerLoading.value === !0 ? r("filterAbort") : (I.innerLoading.value = !0, d.value = !0), e !== "" && t.multiple !== !0 && L.value.length !== 0 && g !== !0 && e === K.value(L.value[0]) && (e = "");
1672
+ let s = setTimeout(() => {
1673
+ o.value === !0 && (o.value = !1);
1674
+ }, 10);
1675
+ v !== null && clearTimeout(v), v = s, r("filter", e, (e, t) => {
1676
+ (n === !0 || I.focused.value === !0) && v === s && (clearTimeout(v), typeof e == "function" && e(), d.value = !1, W(() => {
1677
+ I.innerLoading.value = !1, I.editable.value === !0 && (n === !0 ? o.value === !0 && Z() : o.value === !0 ? Q(!0) : o.value = !0), typeof t == "function" && W(() => {
1678
+ t(i);
1679
+ }), typeof a == "function" && W(() => {
1680
+ a(i);
1681
+ });
1682
+ }));
1683
+ }, () => {
1684
+ I.focused.value === !0 && v === s && (clearTimeout(v), I.innerLoading.value = !1, d.value = !1), o.value === !0 && (o.value = !1);
1685
+ });
1686
+ }
1687
+ function st() {
1688
+ return U(at, {
1689
+ ref: T,
1690
+ class: fe.value,
1691
+ style: t.popupContentStyle,
1692
+ modelValue: o.value,
1693
+ fit: t.menuShrink !== !0,
1694
+ cover: t.optionsCover === !0 && z.value !== !0 && t.useInput !== !0,
1695
+ anchor: t.menuAnchor,
1696
+ self: t.menuSelf,
1697
+ offset: t.menuOffset,
1698
+ dark: le.value,
1699
+ noParentEvent: !0,
1700
+ noRefocus: !0,
1701
+ noFocus: !0,
1702
+ noRouteDismiss: t.popupNoRouteDismiss,
1703
+ square: we.value,
1704
+ transitionShow: t.transitionShow,
1705
+ transitionHide: t.transitionHide,
1706
+ transitionDuration: t.transitionDuration,
1707
+ separateClosePopup: !0,
1708
+ ...be.value,
1709
+ onScrollPassive: N,
1710
+ onBeforeShow: bt,
1711
+ onBeforeHide: ct,
1712
+ onShow: lt
1713
+ }, et);
1714
+ }
1715
+ function ct(e) {
1716
+ xt(e), X();
1717
+ }
1718
+ function lt() {
1719
+ F();
1720
+ }
1721
+ function ut(e) {
1722
+ B(e), w.value?.focus(), u.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
1723
+ }
1724
+ function dt(e) {
1725
+ B(e), W(() => {
1726
+ u.value = !1;
1727
+ });
1728
+ }
1729
+ function ft() {
1730
+ let e = [U(Ae, {
1731
+ class: `col-auto ${I.fieldClass.value}`,
1732
+ ...ce.value,
1733
+ for: I.targetUid.value,
1734
+ dark: le.value,
1735
+ square: !0,
1736
+ loading: d.value,
1737
+ itemAligned: !1,
1738
+ filled: !0,
1739
+ stackLabel: l.value.length !== 0,
1740
+ ...I.splitAttrs.listeners.value,
1741
+ onFocus: ut,
1742
+ onBlur: dt
1743
+ }, {
1744
+ ...n,
1745
+ rawControl: () => I.getControl(!0),
1746
+ before: void 0,
1747
+ after: void 0
1748
+ })];
1749
+ return o.value === !0 && e.push(U("div", {
1750
+ ref: ne,
1751
+ class: fe.value + " scroll",
1752
+ style: t.popupContentStyle,
1753
+ ...be.value,
1754
+ onClick: ue,
1755
+ onScrollPassive: N
1756
+ }, et())), U(Ot, {
1757
+ ref: E,
1758
+ modelValue: s.value,
1759
+ position: t.useInput === !0 ? "top" : void 0,
1760
+ transitionShow: x,
1761
+ transitionHide: t.transitionHide,
1762
+ transitionDuration: t.transitionDuration,
1763
+ noRouteDismiss: t.popupNoRouteDismiss,
1764
+ onBeforeShow: bt,
1765
+ onBeforeHide: pt,
1766
+ onHide: mt,
1767
+ onShow: ht
1768
+ }, () => U("div", { class: "q-select__dialog" + (le.value === !0 ? " q-select__dialog--dark q-dark" : "") + (u.value === !0 ? " q-select__dialog--focused" : "") }, e));
1769
+ }
1770
+ function pt(e) {
1771
+ xt(e), E.value !== null && E.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")), I.focused.value = !1;
1772
+ }
1773
+ function mt(e) {
1774
+ Z(), I.focused.value === !1 && r("blur", e), _t();
1775
+ }
1776
+ function ht() {
1777
+ let e = document.activeElement;
1778
+ (e === null || e.id !== I.targetUid.value) && w.value !== null && w.value !== e && w.value.focus(), F();
1779
+ }
1780
+ function X() {
1781
+ s.value !== !0 && (c.value = -1, o.value === !0 && (o.value = !1), I.focused.value === !1 && (v !== null && (clearTimeout(v), v = null), I.innerLoading.value === !0 && (r("filterAbort"), I.innerLoading.value = !1, d.value = !1)));
1782
+ }
1783
+ function gt(e) {
1784
+ I.editable.value === !0 && (h === !0 ? (I.onControlFocusin(e), s.value = !0, W(() => {
1785
+ I.focus();
1786
+ })) : I.focus(), t.onFilter === void 0 ? (z.value !== !0 || n["no-option"] !== void 0) && (o.value = !0) : ot(l.value));
1787
+ }
1788
+ function Z() {
1789
+ s.value = !1, X();
1790
+ }
1791
+ function _t() {
1792
+ t.useInput === !0 && it(t.multiple !== !0 && t.fillInput === !0 && L.value.length !== 0 && K.value(L.value[0]) || "", !0, !0);
1793
+ }
1794
+ function Q(e) {
1795
+ let n = -1;
1796
+ if (e === !0) {
1797
+ if (L.value.length !== 0) {
1798
+ let e = G.value(L.value[0]);
1799
+ n = t.options.findIndex((t) => Bt(G.value(t), e));
1800
+ }
1801
+ M(n);
1802
+ }
1803
+ Be(n);
1804
+ }
1805
+ function vt(e, t) {
1806
+ o.value === !0 && I.innerLoading.value === !1 && (M(-1, !0), W(() => {
1807
+ o.value === !0 && I.innerLoading.value === !1 && (e > t ? M() : Q(!0));
1808
+ }));
1809
+ }
1810
+ function yt() {
1811
+ s.value === !1 && T.value !== null && T.value.updatePosition();
1812
+ }
1813
+ function bt(e) {
1814
+ e !== void 0 && B(e), r("popupShow", e), I.hasPopupOpen = !0, I.onControlFocusin(e);
1815
+ }
1816
+ function xt(e) {
1817
+ e !== void 0 && B(e), r("popupHide", e), I.hasPopupOpen = !1, I.onControlFocusout(e);
1818
+ }
1819
+ function St() {
1820
+ h = a.platform.is.mobile !== !0 && t.behavior !== "dialog" ? !1 : t.behavior !== "menu" && (t.useInput !== !0 || n["no-option"] !== void 0 || t.onFilter !== void 0 || z.value === !1), x = a.platform.is.ios === !0 && h === !0 && t.useInput === !0 ? "fade" : t.transitionShow;
1821
+ }
1822
+ return Oe(St), ke(yt), St(), De(() => {
1823
+ f !== null && clearTimeout(f), p !== null && clearTimeout(p);
1824
+ }), Object.assign(i, {
1825
+ showPopup: gt,
1826
+ hidePopup: Z,
1827
+ removeAtIndex: Fe,
1828
+ add: Re,
1829
+ toggleOption: ze,
1830
+ getOptionIndex: () => c.value,
1831
+ setOptionIndex: Be,
1832
+ moveOptionSelection: Ve,
1833
+ filter: ot,
1834
+ updateMenuPosition: yt,
1835
+ updateInputValue: it,
1836
+ isOptionSelected: Ue,
1837
+ getEmittingOptionValue: Pe,
1838
+ isOptionDisabled: (...e) => je.value.apply(null, e) === !0,
1839
+ getOptionValue: (...e) => G.value.apply(null, e),
1840
+ getOptionLabel: (...e) => K.value.apply(null, e)
1841
+ }), Object.assign(I, {
1842
+ innerValue: L,
1843
+ fieldClass: H(() => `q-select q-field--auto-height q-select--with${t.useInput === !0 ? "" : "out"}-input q-select--with${t.useChips === !0 ? "" : "out"}-chips q-select--${t.multiple === !0 ? "multiple" : "single"}`),
1844
+ inputRef: ee,
1845
+ targetRef: w,
1846
+ hasValue: R,
1847
+ showPopup: gt,
1848
+ floatingLabel: H(() => t.hideSelected !== !0 && R.value === !0 || typeof l.value == "number" || l.value.length !== 0 || pe(t.displayValue)),
1849
+ getControlChild: () => {
1850
+ if (I.editable.value !== !1 && (s.value === !0 || z.value !== !0 || n["no-option"] !== void 0)) return h === !0 ? ft() : st();
1851
+ I.hasPopupOpen === !0 && (I.hasPopupOpen = !1);
1852
+ },
1853
+ controlEvents: {
1854
+ onFocusin(e) {
1855
+ I.onControlFocusin(e);
1856
+ },
1857
+ onFocusout(e) {
1858
+ I.onControlFocusout(e, () => {
1859
+ _t(), X();
1860
+ });
1861
+ },
1862
+ onClick(e) {
1863
+ if (ue(e), h !== !0 && o.value === !0) {
1864
+ X(), w.value?.focus();
1865
+ return;
1866
+ }
1867
+ gt(e);
1868
+ }
1869
+ },
1870
+ getControl: (e) => {
1871
+ let n = $e(), r = e === !0 || s.value !== !0 || h !== !0;
1872
+ if (t.useInput === !0) n.push(tt(e, r));
1873
+ else if (I.editable.value === !0) {
1874
+ let i = r === !0 ? ye.value : void 0;
1875
+ n.push(U("input", {
1876
+ ref: r === !0 ? w : void 0,
1877
+ key: "d_t",
1878
+ class: "q-select__focus-target",
1879
+ id: r === !0 ? I.targetUid.value : void 0,
1880
+ value: he.value,
1881
+ readonly: !0,
1882
+ "data-autofocus": e === !0 || t.autofocus === !0 || void 0,
1883
+ ...i,
1884
+ onKeydown: Xe,
1885
+ onKeyup: Y,
1886
+ onKeypress: Ye
1887
+ })), r === !0 && typeof t.autocomplete == "string" && t.autocomplete.length !== 0 && n.push(U("input", {
1888
+ class: "q-select__autocomplete-input",
1889
+ autocomplete: t.autocomplete,
1890
+ tabindex: -1,
1891
+ onKeyup: Je
1892
+ }));
1893
+ }
1894
+ if (D.value !== void 0 && t.disable !== !0 && Me.value.length !== 0) {
1895
+ let e = Me.value.map((e) => U("option", {
1896
+ value: e,
1897
+ selected: !0
1898
+ }));
1899
+ n.push(U("select", {
1900
+ class: "hidden",
1901
+ name: D.value,
1902
+ multiple: t.multiple
1903
+ }, e));
1904
+ }
1905
+ let i = t.useInput === !0 || r !== !0 ? void 0 : I.splitAttrs.attributes.value;
1906
+ return U("div", {
1907
+ class: "q-field__native row items-center",
1908
+ ...i,
1909
+ ...I.splitAttrs.listeners.value
1910
+ }, n);
1911
+ },
1912
+ getInnerAppend: () => t.loading !== !0 && d.value !== !0 && t.hideDropdownIcon !== !0 ? [U(j, {
1913
+ class: "q-select__dropdown-icon" + (o.value === !0 ? " rotate-180" : ""),
1914
+ name: Ce.value
1915
+ })] : null
1916
+ }), re(I);
1917
+ }
1918
+ });
1919
+ //#endregion
1920
+ //#region lib/utils/defaults/qSelect.js
1921
+ Ce(Kt, "dense", !0);
1922
+ //#endregion
4
1923
  //#region lib/main.js
5
- function i(e) {
6
- for (let n in t) e.component(n, t[n]);
1924
+ function qt(e) {
1925
+ for (let t in me) e.component(t, me[t]);
7
1926
  }
8
- var a = { install: i };
1927
+ var Jt = { install: qt };
9
1928
  //#endregion
10
- export { e as VnInput, a as default, r as useRequired, n as useValidator };
1929
+ export { L as VnInput, Jt as default, Ce as setDefault, Se as useRequired, xe as useValidator };