@verdnatura/vn-front-lib 0.0.10 → 0.0.11

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 (50) hide show
  1. package/dist/components-BrEjZWQj.js +3278 -0
  2. package/dist/components-Dty6kM2e.cjs +2 -0
  3. package/dist/components.cjs +1 -1
  4. package/dist/components.js +2 -2
  5. package/dist/composables-DUOUI4DI.js +3558 -0
  6. package/dist/composables-ZxHJjJGN.cjs +4 -0
  7. package/dist/composables.cjs +1 -1
  8. package/dist/composables.js +2 -2
  9. package/dist/filters.cjs +1 -0
  10. package/dist/filters.js +62 -0
  11. package/dist/rolldown-runtime-DF3sbh8G.cjs +1 -0
  12. package/dist/stores.cjs +1 -1
  13. package/dist/stores.js +144 -2
  14. package/dist/utils.cjs +1 -0
  15. package/dist/utils.js +131 -0
  16. package/dist/vn-front-lib.cjs +1 -1
  17. package/dist/vn-front-lib.css +1 -1
  18. package/dist/vn-front-lib.js +6 -7
  19. package/lib/components/dialogs/VnConfirm.vue +142 -0
  20. package/lib/components/feedback/VnSkeletonForm.vue +14 -0
  21. package/lib/components/feedback/VnSpinner.vue +63 -0
  22. package/lib/components/index.js +4 -0
  23. package/lib/components/models/VnForm.vue +492 -0
  24. package/lib/composables/index.js +7 -0
  25. package/lib/composables/tMobile.js +8 -0
  26. package/lib/composables/useArrayData.js +451 -0
  27. package/lib/composables/useForm.js +12 -0
  28. package/lib/composables/useNotify.js +24 -0
  29. package/lib/composables/useObjectComparison.js +67 -0
  30. package/lib/composables/useQueryResolver.js +306 -0
  31. package/lib/composables/useState.js +81 -0
  32. package/lib/filters/filterPanel.js +95 -0
  33. package/lib/filters/getDifferences.js +18 -0
  34. package/lib/filters/getUpdatedValues.js +6 -0
  35. package/lib/filters/index.js +5 -0
  36. package/lib/filters/isDialogOpened.js +3 -0
  37. package/lib/filters/onBeforeSave.js +9 -0
  38. package/lib/stores/index.js +2 -0
  39. package/lib/stores/useArrayDataStore.js +82 -0
  40. package/lib/stores/useStateStore.js +84 -0
  41. package/lib/utils/advancedFilters.js +125 -0
  42. package/lib/utils/index.js +2 -0
  43. package/lib/utils/trackAnalytics.js +18 -0
  44. package/package.json +9 -2
  45. package/dist/components-bhz_GJoK.cjs +0 -1
  46. package/dist/components-vVkogsiW.js +0 -2532
  47. package/dist/useRequired-BviE2qpV.cjs +0 -1
  48. package/dist/useRequired-CTxBp3qy.js +0 -58
  49. package/dist/useValidationsStore-9Fxtj_pd.js +0 -12
  50. package/dist/useValidationsStore-BZZg24ZP.cjs +0 -1
@@ -1,2532 +0,0 @@
1
- import { t as e } from "./useRequired-CTxBp3qy.js";
2
- import { Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, inject as p, markRaw as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeStyle as v, onActivated as y, onBeforeUnmount as b, onBeforeUpdate as x, onDeactivated as S, onMounted as C, onUnmounted as w, openBlock as T, reactive as E, ref as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as ee, useModel as j, watch as M, withCtx as N } from "vue";
3
- import { useI18n as P } from "vue-i18n";
4
- import F from "axios";
5
- //#region \0rolldown/runtime.js
6
- var I = Object.defineProperty, L = (e, t) => {
7
- let n = {};
8
- for (var r in e) I(n, r, {
9
- get: e[r],
10
- enumerable: !0
11
- });
12
- return t || I(n, Symbol.toStringTag, { value: "Module" }), n;
13
- };
14
- //#endregion
15
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.inject-obj-prop/inject-obj-prop.js
16
- function R(e, t, n, r) {
17
- return Object.defineProperty(e, t, {
18
- get: n,
19
- set: r,
20
- enumerable: !0
21
- }), e;
22
- }
23
- //#endregion
24
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/platform/Platform.js
25
- var z = D(!1), B, te = 512;
26
- function V(e) {
27
- return typeof e == "string" ? e.slice(0, te).toLowerCase() : "";
28
- }
29
- var H = /(?:^|\s)version\/([\w.]+)/, ne = /(?:^|\s)applewebkit\/[\w.]+/, U = /(?:^|\s)safari\/[\w.]+/;
30
- function re(e) {
31
- let t = H.exec(e);
32
- return t !== null && ne.test(e) && U.test(e) ? {
33
- browser: "safari",
34
- version: t[1]
35
- } : null;
36
- }
37
- var ie = /(?:^|\s)opera\/([\w.]+)/, ae = /(?:^|\s)version\/([\w.]+)/;
38
- function oe(e) {
39
- let t = ie.exec(e);
40
- return t === null ? null : {
41
- browser: "opera",
42
- version: ae.exec(e)?.[1] || t[1]
43
- };
44
- }
45
- var se = /(edg|edge|edga|edgios)\/([\w.]+)/, ce = /(opr)[\/]([\w.]+)/, le = /(vivaldi)[\/]([\w.]+)/, ue = /(chrome|crios)[\/]([\w.]+)/, de = /(firefox|fxios)[\/]([\w.]+)/, fe = /(webkit)[\/]([\w.]+)/;
46
- function pe(e, t) {
47
- let n = se.exec(e) || ce.exec(e) || le.exec(e) || ue.exec(e);
48
- if (n === null) {
49
- let r = re(e);
50
- if (r !== null) return {
51
- ...r,
52
- platform: t[0] || ""
53
- };
54
- if (n = de.exec(e) || fe.exec(e), n === null) {
55
- let r = oe(e);
56
- if (r !== null) return {
57
- ...r,
58
- platform: t[0] || ""
59
- };
60
- n = [];
61
- }
62
- }
63
- return {
64
- browser: n[5] || n[3] || n[1] || "",
65
- version: n[4] || n[2] || "0",
66
- platform: t[0] || ""
67
- };
68
- }
69
- var me = /(ipad)/, he = /(ipod)/, ge = /(iphone)/, _e = /(windows phone)/, ve = /(kindle)/, ye = /(silk)/, be = /(android)/, xe = /(win)/, Se = /(mac)/, Ce = /(linux)/, we = /(cros)/;
70
- function Te(e) {
71
- return me.exec(e) || he.exec(e) || _e.exec(e) || ge.exec(e) || ve.exec(e) || ye.exec(e) || be.exec(e) || xe.exec(e) || Se.exec(e) || Ce.exec(e) || we.exec(e) || [];
72
- }
73
- var Ee = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
74
- function De(e) {
75
- let t = V(e), n = pe(t, Te(t)), r = {
76
- mobile: !1,
77
- desktop: !1,
78
- cordova: !1,
79
- capacitor: !1,
80
- nativeMobile: !1,
81
- electron: !1,
82
- bex: !1,
83
- linux: !1,
84
- mac: !1,
85
- win: !1,
86
- cros: !1,
87
- chrome: !1,
88
- firefox: !1,
89
- opera: !1,
90
- safari: !1,
91
- vivaldi: !1,
92
- edge: !1,
93
- edgeChromium: !1,
94
- ie: !1,
95
- webkit: !1,
96
- android: !1,
97
- ios: !1,
98
- ipad: !1,
99
- iphone: !1,
100
- ipod: !1,
101
- kindle: !1,
102
- winphone: !1,
103
- silk: !1
104
- };
105
- n.browser && (r[n.browser] = !0, r.version = n.version, r.versionNumber = Number.parseInt(n.version, 10)), n.platform && (r[n.platform] = !0), r["windows phone"] && (r.winphone = !0, delete r["windows phone"]);
106
- let i = r.android || r.ios || r.ipad || r.iphone || r.ipod || r.kindle || r.silk || r.winphone;
107
- if (i === !0 || t.includes("mobile") ? r.mobile = !0 : r.desktop = !0, r.edga || r.edgios || r.edg ? (r.edge = !0, n.browser = "edge") : r.crios ? (r.chrome = !0, n.browser = "chrome") : r.fxios && (r.firefox = !0, n.browser = "firefox"), (r.ipod || r.ipad || r.iphone) && (r.ios = !0), r.vivaldi &&= (n.browser = "vivaldi", !0), (r.chrome || r.opr || r.safari || r.vivaldi || r.mobile && !r.ios && !i) && (r.webkit = !0), r.opr && (n.browser = "opera", r.opera = !0), r.safari && (r.android ? (n.browser = "android", r.android = !0) : r.kindle ? (n.browser = "kindle", r.kindle = !0) : r.silk &&= (n.browser = "silk", !0)), r.name = n.browser, r.platform = n.platform, t.includes("electron")) r.electron = !0;
108
- else if (document.location.href.includes("-extension://")) r.bex = !0;
109
- else {
110
- if (window.Capacitor === void 0 ? (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova") : (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor"), z.value && (B = { is: { ...r } }), Ee && r.mac && (r.desktop && r.safari || r.nativeMobile && !r.android && !r.ios && !r.ipad)) {
111
- delete r.mac, delete r.desktop;
112
- let e = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
113
- Object.assign(r, {
114
- mobile: !0,
115
- ios: !0,
116
- platform: e,
117
- [e]: !0
118
- });
119
- }
120
- !r.mobile && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete r.desktop, r.mobile = !0);
121
- }
122
- return r;
123
- }
124
- var Oe = navigator.userAgent || navigator.vendor || window.opera, ke = {
125
- has: {
126
- touch: !1,
127
- webStorage: !1
128
- },
129
- within: { iframe: !1 }
130
- }, W = {
131
- userAgent: Oe,
132
- is: De(Oe),
133
- has: { touch: Ee },
134
- within: { iframe: window.self !== window.top }
135
- }, Ae = { install(e) {
136
- let { $q: t } = e;
137
- z.value ? (e.onSSRHydrated.push(() => {
138
- Object.assign(t.platform, W), z.value = !1;
139
- }), t.platform = E(this)) : t.platform = this;
140
- } };
141
- {
142
- let e;
143
- R(W.has, "webStorage", () => {
144
- if (e !== void 0) return e;
145
- try {
146
- if (window.localStorage) return e = !0, !0;
147
- } catch {}
148
- return e = !1, !1;
149
- }), Object.assign(Ae, W), z.value && (Object.assign(Ae, B, ke), B = null);
150
- }
151
- //#endregion
152
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.selection/selection.js
153
- function je() {
154
- if (window.getSelection !== void 0) {
155
- let e = window.getSelection();
156
- e.empty === void 0 ? e.removeAllRanges !== void 0 && (e.removeAllRanges(), Ae.is.mobile || e.addRange(document.createRange())) : e.empty();
157
- } else document.selection !== void 0 && document.selection.empty();
158
- }
159
- //#endregion
160
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/event/event.js
161
- var G = {
162
- hasPassive: !1,
163
- passiveCapture: !0,
164
- notPassiveCapture: !0
165
- };
166
- try {
167
- let e = Object.defineProperty({}, "passive", { get() {
168
- Object.assign(G, {
169
- hasPassive: !0,
170
- passive: { passive: !0 },
171
- notPassive: { passive: !1 },
172
- passiveCapture: {
173
- passive: !0,
174
- capture: !0
175
- },
176
- notPassiveCapture: {
177
- passive: !1,
178
- capture: !0
179
- }
180
- });
181
- } });
182
- window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
183
- } catch {}
184
- function Me(e) {
185
- e.stopPropagation();
186
- }
187
- function K(e) {
188
- e.cancelable !== !1 && e.preventDefault();
189
- }
190
- function Ne(e) {
191
- e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
192
- }
193
- function Pe(e, t, n) {
194
- let r = `__q_${t}_evt`;
195
- e[r] = [...e[r] ?? [], ...n], n.forEach((t) => {
196
- t[0].addEventListener(t[1], e[t[2]], G[t[3]]);
197
- });
198
- }
199
- function Fe(e, t) {
200
- let n = `__q_${t}_evt`;
201
- e[n] !== void 0 && (e[n].forEach((t) => {
202
- t[0].removeEventListener(t[1], e[t[2]], G[t[3]]);
203
- }), e[n] = void 0);
204
- }
205
- //#endregion
206
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/key-composition.js
207
- var Ie = !1;
208
- function Le(e) {
209
- return Ie || e !== Object(e) || e.isComposing || e.qKeyEvent;
210
- }
211
- function Re(e, t) {
212
- return !Le(e) && [t].flat().includes(e.keyCode);
213
- }
214
- //#endregion
215
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js
216
- var ze = {
217
- target: {
218
- type: [
219
- Boolean,
220
- String,
221
- Element
222
- ],
223
- default: !0
224
- },
225
- noParentEvent: Boolean
226
- };
227
- ({ ...ze });
228
- function Be({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
229
- let { props: r, proxy: i, emit: a } = d(), o = D(null), s = null;
230
- function c(e) {
231
- return o.value === null ? !1 : e === void 0 || e.touches === void 0 || e.touches.length <= 1;
232
- }
233
- let l = {};
234
- n === void 0 && (Object.assign(l, {
235
- hide(e) {
236
- i.hide(e);
237
- },
238
- toggle(e) {
239
- i.toggle(e), e.qAnchorHandled = !0;
240
- },
241
- toggleKey(e) {
242
- Re(e, 13) && l.toggle(e);
243
- },
244
- contextClick(e) {
245
- i.hide(e), K(e), _(() => {
246
- i.show(e), e.qAnchorHandled = !0;
247
- });
248
- },
249
- prevent: K,
250
- mobileTouch(e) {
251
- if (l.mobileCleanup(e), !c(e)) return;
252
- i.hide(e), o.value.classList.add("non-selectable");
253
- let t = e.target;
254
- Pe(l, "anchor", [
255
- [
256
- t,
257
- "touchmove",
258
- "mobileCleanup",
259
- "passive"
260
- ],
261
- [
262
- t,
263
- "touchend",
264
- "mobileCleanup",
265
- "passive"
266
- ],
267
- [
268
- t,
269
- "touchcancel",
270
- "mobileCleanup",
271
- "passive"
272
- ],
273
- [
274
- o.value,
275
- "contextmenu",
276
- "prevent",
277
- "notPassive"
278
- ]
279
- ]), s = setTimeout(() => {
280
- s = null, i.show(e), e.qAnchorHandled = !0;
281
- }, 300);
282
- },
283
- mobileCleanup(t) {
284
- o.value.classList.remove("non-selectable"), s !== null && (clearTimeout(s), s = null), e.value && t !== void 0 && je();
285
- }
286
- }), n = function(e = r.contextMenu) {
287
- if (r.noParentEvent || o.value === null) return;
288
- let t = e ? i.$q.platform.is.mobile ? [[
289
- o.value,
290
- "touchstart",
291
- "mobileTouch",
292
- "passive"
293
- ]] : [[
294
- o.value,
295
- "mousedown",
296
- "hide",
297
- "passive"
298
- ], [
299
- o.value,
300
- "contextmenu",
301
- "contextClick",
302
- "notPassive"
303
- ]] : [[
304
- o.value,
305
- "click",
306
- "toggle",
307
- "passive"
308
- ], [
309
- o.value,
310
- "keyup",
311
- "toggleKey",
312
- "passive"
313
- ]];
314
- Pe(l, "anchor", t);
315
- });
316
- function u() {
317
- Fe(l, "anchor");
318
- }
319
- function f(e) {
320
- for (o.value = e; o.value.classList.contains("q-anchor--skip");) o.value = o.value.parentNode;
321
- n();
322
- }
323
- function p() {
324
- if (r.target === !1 || r.target === "" || i.$el.parentNode === null) o.value = null;
325
- else if (r.target === !0) f(i.$el.parentNode);
326
- else {
327
- let e = r.target;
328
- if (typeof r.target == "string") try {
329
- e = document.querySelector(r.target);
330
- } catch {
331
- e = void 0;
332
- }
333
- e == null ? (o.value = null, console.error(`Anchor: target "${r.target}" not found`)) : (o.value = e.$el || e, n());
334
- }
335
- }
336
- return M(() => r.contextMenu, (e) => {
337
- o.value !== null && (u(), n(e));
338
- }), M(() => r.target, () => {
339
- o.value !== null && u(), p();
340
- }), M(() => r.noParentEvent, (e) => {
341
- o.value !== null && (e ? u() : n());
342
- }), C(() => {
343
- p(), !t && r.modelValue && o.value === null && a("update:modelValue", !1);
344
- }), b(() => {
345
- s !== null && clearTimeout(s), u();
346
- }), {
347
- anchorEl: o,
348
- canShow: c,
349
- anchorEvents: l
350
- };
351
- }
352
- //#endregion
353
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-scroll-target/use-scroll-target.js
354
- function Ve(e, t) {
355
- let n = D(null), r;
356
- function i(e, t) {
357
- let n = `${t === void 0 ? "remove" : "add"}EventListener`, i = t === void 0 ? r : t;
358
- e !== window && e[n]("scroll", i, G.passive), window[n]("scroll", i, G.passive), r = t;
359
- }
360
- function a() {
361
- n.value !== null && (i(n.value), n.value = null);
362
- }
363
- let o = M(() => e.noParentEvent, () => {
364
- n.value !== null && (a(), t());
365
- });
366
- return b(o), {
367
- localScrollTarget: n,
368
- unconfigureScrollTarget: a,
369
- changeScrollEvent: i
370
- };
371
- }
372
- //#endregion
373
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.vm/vm.js
374
- function He(e) {
375
- return e.appContext.config.globalProperties.$router !== void 0;
376
- }
377
- function Ue(e) {
378
- return e.isUnmounted === !0 || e.isDeactivated === !0;
379
- }
380
- //#endregion
381
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js
382
- var We = {
383
- modelValue: {
384
- type: Boolean,
385
- default: null
386
- },
387
- "onUpdate:modelValue": [Function, Array]
388
- }, Ge = [
389
- "beforeShow",
390
- "show",
391
- "beforeHide",
392
- "hide"
393
- ];
394
- function Ke({ showing: e, canShow: t, hideOnRouteChange: n, handleShow: r, handleHide: i, handleRouteChange: a, processOnMount: o }) {
395
- let s = d(), { props: c, emit: l, proxy: u } = s, f;
396
- function p(t) {
397
- e.value ? g(t) : m(t);
398
- }
399
- function m(e) {
400
- if (c.disable || e?.qAnchorHandled === !0 || t !== void 0 && !t(e)) return;
401
- let n = c["onUpdate:modelValue"] !== void 0;
402
- n && (l("update:modelValue", !0), f = e, _(() => {
403
- f === e && (f = void 0);
404
- })), (c.modelValue === null || !n) && h(e);
405
- }
406
- function h(t) {
407
- e.value || (e.value = !0, l("beforeShow", t), r === void 0 ? l("show", t) : r(t));
408
- }
409
- function g(e) {
410
- if (c.disable) return;
411
- let t = c["onUpdate:modelValue"] !== void 0;
412
- t && (l("update:modelValue", !1), f = e, _(() => {
413
- f === e && (f = void 0);
414
- })), (c.modelValue === null || !t) && v(e);
415
- }
416
- function v(t) {
417
- e.value && (e.value = !1, l("beforeHide", t), i === void 0 ? l("hide", t) : i(t));
418
- }
419
- function y(t) {
420
- c.disable && t ? c["onUpdate:modelValue"] !== void 0 && l("update:modelValue", !1) : t === !0 !== e.value && (t ? h : v)(f);
421
- }
422
- M(() => c.modelValue, y), n !== void 0 && He(s) && M(() => u.$route.fullPath, () => {
423
- n.value && e.value && (a?.(), g());
424
- }), o && C(() => {
425
- y(c.modelValue);
426
- });
427
- let b = {
428
- show: m,
429
- hide: g,
430
- toggle: p
431
- };
432
- return Object.assign(u, b), b;
433
- }
434
- //#endregion
435
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.create/create.js
436
- function qe(e) {
437
- return m(u(e));
438
- }
439
- //#endregion
440
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.portal/portal.js
441
- var q = [], J = [], Je = [];
442
- function Ye(e) {
443
- Je = Je.filter((t) => t !== e);
444
- }
445
- function Xe(e) {
446
- Ye(e), Je.push(e);
447
- }
448
- function Ze(e) {
449
- Ye(e), Je.length === 0 && J.length !== 0 && (J.at(-1)(), J = []);
450
- }
451
- function Qe(e) {
452
- Je.length === 0 ? e() : J.push(e);
453
- }
454
- function $e(e) {
455
- J = J.filter((t) => t !== e);
456
- }
457
- //#endregion
458
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.config/instance-config.js
459
- var et = {}, tt = [], nt = [], rt = 1, it = document.body;
460
- function at(e, t) {
461
- let n = document.createElement("div");
462
- if (n.id = t === void 0 ? e : `q-portal--${t}--${rt++}`, et.globalNodes !== void 0) {
463
- let e = et.globalNodes.class;
464
- e !== void 0 && (n.className = e);
465
- }
466
- return it.append(n), tt.push(n), nt.push(t), n;
467
- }
468
- function ot(e) {
469
- let t = tt.indexOf(e);
470
- t !== -1 && (tt.splice(t, 1), nt.splice(t, 1)), e.remove();
471
- }
472
- //#endregion
473
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-portal/use-portal.js
474
- var st = qe({
475
- name: "QPortal",
476
- setup(e, { slots: t }) {
477
- return () => t.default();
478
- }
479
- });
480
- function ct(e) {
481
- for (e = e.parent; e != null;) {
482
- if (e.type.name === "QGlobalDialog") return !0;
483
- if (e.type.name === "QDialog" || e.type.name === "QMenu") return !1;
484
- e = e.parent;
485
- }
486
- return !1;
487
- }
488
- function lt(e, n, r, i) {
489
- let a = D(!1), o = D(!1), s = null, c = {}, l = i === "dialog" && ct(e);
490
- function u(t) {
491
- if (t) {
492
- Ze(c), o.value = !0;
493
- return;
494
- }
495
- o.value = !1, a.value || (!l && s === null && (s = at(!1, i)), a.value = !0, q.push(e.proxy), Xe(c));
496
- }
497
- function d(t) {
498
- if (o.value = !1, !t) return;
499
- Ze(c), a.value = !1;
500
- let n = q.indexOf(e.proxy);
501
- n !== -1 && q.splice(n, 1), s !== null && (ot(s), s = null);
502
- }
503
- return w(() => {
504
- d(!0);
505
- }), e.proxy.__qPortal = !0, R(e.proxy, "contentEl", () => n.value), {
506
- showPortal: u,
507
- hidePortal: d,
508
- portalIsActive: a,
509
- portalIsAccessible: o,
510
- renderPortal: () => l ? r() : a.value ? [f(t, { to: s }, f(st, r))] : void 0
511
- };
512
- }
513
- //#endregion
514
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-transition/use-transition.js
515
- var ut = {
516
- transitionShow: {
517
- type: String,
518
- default: "fade"
519
- },
520
- transitionHide: {
521
- type: String,
522
- default: "fade"
523
- },
524
- transitionDuration: {
525
- type: [String, Number],
526
- default: 300
527
- }
528
- };
529
- function dt(e, t = () => {}, n = () => {}) {
530
- return {
531
- transitionProps: r(() => {
532
- let r = `q-transition--${e.transitionShow || t()}`, i = `q-transition--${e.transitionHide || n()}`;
533
- return {
534
- appear: !0,
535
- enterFromClass: `${r}-enter-from`,
536
- enterActiveClass: `${r}-enter-active`,
537
- enterToClass: `${r}-enter-to`,
538
- leaveFromClass: `${i}-leave-from`,
539
- leaveActiveClass: `${i}-leave-active`,
540
- leaveToClass: `${i}-leave-to`
541
- };
542
- }),
543
- transitionStyle: r(() => `--q-transition-duration: ${e.transitionDuration}ms`)
544
- };
545
- }
546
- //#endregion
547
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-tick/use-tick.js
548
- function ft() {
549
- let e, t = d();
550
- function n() {
551
- e = void 0;
552
- }
553
- return S(n), b(n), {
554
- removeTick: n,
555
- registerTick(n) {
556
- e = n, _(() => {
557
- e === n && (Ue(t) || e(), e = void 0);
558
- });
559
- }
560
- };
561
- }
562
- //#endregion
563
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-timeout/use-timeout.js
564
- function pt() {
565
- let e = null, t = d();
566
- function n() {
567
- e !== null && (clearTimeout(e), e = null);
568
- }
569
- return S(n), b(n), {
570
- removeTimeout: n,
571
- registerTimeout(r, i) {
572
- n(), Ue(t) || (e = setTimeout(() => {
573
- e = null, r();
574
- }, i));
575
- }
576
- };
577
- }
578
- //#endregion
579
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/uid/uid.js
580
- function mt() {
581
- if (typeof crypto > "u") return () => {
582
- throw Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.");
583
- };
584
- if (crypto.randomUUID) return () => crypto.randomUUID();
585
- let e = Array.from({ length: 256 }, (e, t) => (t + 256).toString(16).slice(1)), t, n;
586
- return () => {
587
- (t === void 0 || n + 16 > 4096) && (n = 0, t = /* @__PURE__ */ new Uint8Array(4096), crypto.getRandomValues(t));
588
- let r = n;
589
- return n += 16, t[r + 6] = t[r + 6] & 15 | 64, t[r + 8] = t[r + 8] & 63 | 128, e[t[r]] + e[t[r + 1]] + e[t[r + 2]] + e[t[r + 3]] + "-" + e[t[r + 4]] + e[t[r + 5]] + "-" + e[t[r + 6]] + e[t[r + 7]] + "-" + e[t[r + 8]] + e[t[r + 9]] + "-" + e[t[r + 10]] + e[t[r + 11]] + e[t[r + 12]] + e[t[r + 13]] + e[t[r + 14]] + e[t[r + 15]];
590
- };
591
- }
592
- var ht = mt();
593
- //#endregion
594
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-id/use-id.js
595
- function gt(e) {
596
- return e ?? null;
597
- }
598
- function _t(e, t) {
599
- return e ?? (t ? `f_${ht()}` : null);
600
- }
601
- function vt({ getValue: e, required: t = !0 } = {}) {
602
- if (z.value) {
603
- let n = D(e === void 0 ? null : gt(e()));
604
- return t && n.value === null && C(() => {
605
- n.value = `f_${ht()}`;
606
- }), e !== void 0 && M(e, (e) => {
607
- n.value = _t(e, t);
608
- }), n;
609
- }
610
- return e === void 0 ? D(`f_${ht()}`) : r(() => _t(e(), t));
611
- }
612
- //#endregion
613
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/dom/dom.js
614
- function yt(e, t) {
615
- let n = e.style;
616
- for (let e in t) n[e] = t[e];
617
- }
618
- function bt(e) {
619
- if (e == null) return;
620
- if (typeof e == "string") try {
621
- return document.querySelector(e) || void 0;
622
- } catch {
623
- return;
624
- }
625
- let t = A(e);
626
- if (t) return t.$el || t;
627
- }
628
- //#endregion
629
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/scroll.js
630
- var xt = [Element, String], St = [
631
- null,
632
- document,
633
- document.body,
634
- document.scrollingElement,
635
- document.documentElement
636
- ];
637
- function Ct(e, t) {
638
- let n = bt(t);
639
- if (n === void 0) {
640
- if (e == null) return window;
641
- n = e.closest(".scroll,.scroll-y,.overflow-auto");
642
- }
643
- return St.includes(n) ? window : n;
644
- }
645
- var wt;
646
- function Tt() {
647
- if (wt !== void 0) return wt;
648
- let e = document.createElement("p"), t = document.createElement("div");
649
- yt(e, {
650
- width: "100%",
651
- height: "200px"
652
- }), yt(t, {
653
- position: "absolute",
654
- top: "0px",
655
- left: "0px",
656
- visibility: "hidden",
657
- width: "200px",
658
- height: "150px",
659
- overflow: "hidden"
660
- }), t.append(e), document.body.append(t);
661
- let n = e.offsetWidth;
662
- t.style.overflow = "scroll";
663
- let r = e.offsetWidth;
664
- return n === r && (r = t.clientWidth), t.remove(), wt = n - r, wt;
665
- }
666
- //#endregion
667
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/escape-key.js
668
- var Y = [], Et;
669
- function Dt(e) {
670
- e.keyCode === 27 && (Et = !0);
671
- }
672
- function Ot() {
673
- Et &&= !1;
674
- }
675
- function kt(e) {
676
- Et && Re(e, 27) && (Et = !1, Y.at(-1)(e));
677
- }
678
- function At(e) {
679
- window[e]("keydown", Dt), window[e]("blur", Ot), window[e]("keyup", kt), Et = !1;
680
- }
681
- function jt(e) {
682
- W.is.desktop && (Y.push(e), Y.length === 1 && At("addEventListener"));
683
- }
684
- function Mt(e) {
685
- let t = Y.indexOf(e);
686
- t !== -1 && (Y.splice(t, 1), Y.length === 0 && At("removeEventListener"));
687
- }
688
- //#endregion
689
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.render/render.js
690
- function X(e, t) {
691
- return e === void 0 ? t : e() || t;
692
- }
693
- function Nt(e, t) {
694
- return e === void 0 ? t : t.concat(e());
695
- }
696
- //#endregion
697
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.click-outside/click-outside.js
698
- var Z = null, { notPassiveCapture: Pt } = G, Q = [];
699
- function Ft(e) {
700
- Z !== null && (clearTimeout(Z), Z = null);
701
- let t = e.target;
702
- if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events")) return;
703
- let n = null, r = !1;
704
- for (let e = q.length - 1; e >= 0; e--) {
705
- let t = q[e].$, i = t.type.name;
706
- if (i !== "QTooltip") {
707
- if (i === "QDialog") {
708
- if (t.props.seamless !== !0) {
709
- if (r === !1) return;
710
- n = new Set(q.slice(e + 1).map((e) => e.contentEl));
711
- break;
712
- }
713
- continue;
714
- }
715
- r = !0;
716
- }
717
- }
718
- for (let r = Q.length - 1; r >= 0; r--) {
719
- let i = Q[r];
720
- if (n !== null && !n.has(i.innerRef.value)) return;
721
- if ((i.anchorEl.value === null || !i.anchorEl.value.contains(t)) && (t === document.body || i.innerRef.value !== null && !i.innerRef.value.contains(t))) e.qClickOutside = !0, i.onClickOutside(e);
722
- else return;
723
- }
724
- }
725
- function It(e) {
726
- Q.push(e), Q.length === 1 && (document.addEventListener("mousedown", Ft, Pt), document.addEventListener("touchstart", Ft, Pt));
727
- }
728
- function Lt(e) {
729
- let t = Q.indexOf(e);
730
- t !== -1 && (Q.splice(t, 1), Q.length === 0 && (Z !== null && (clearTimeout(Z), Z = null), document.removeEventListener("mousedown", Ft, Pt), document.removeEventListener("touchstart", Ft, Pt)));
731
- }
732
- //#endregion
733
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.position-engine/position-engine.js
734
- var Rt, zt, Bt = [
735
- "top",
736
- "center",
737
- "bottom"
738
- ], Vt = [
739
- "left",
740
- "middle",
741
- "right",
742
- "start",
743
- "end"
744
- ];
745
- function Ht(e) {
746
- let t = e.split(" ");
747
- return t.length === 2 ? Bt.includes(t[0]) ? Vt.includes(t[1]) ? !0 : (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : !1;
748
- }
749
- function Ut(e) {
750
- return !e || e.length === 2 && typeof e[0] == "number" && typeof e[1] == "number";
751
- }
752
- var Wt = {
753
- "start#ltr": "left",
754
- "start#rtl": "right",
755
- "end#ltr": "right",
756
- "end#rtl": "left"
757
- };
758
- [
759
- "left",
760
- "middle",
761
- "right"
762
- ].forEach((e) => {
763
- Wt[`${e}#ltr`] = e, Wt[`${e}#rtl`] = e;
764
- });
765
- function Gt(e, t) {
766
- let n = e.split(" ");
767
- return {
768
- vertical: n[0],
769
- horizontal: Wt[`${n[1]}#${t ? "rtl" : "ltr"}`]
770
- };
771
- }
772
- function Kt(e, t) {
773
- let { top: n, left: r, right: i, bottom: a, width: o, height: s } = e.getBoundingClientRect();
774
- return t !== void 0 && (n -= t[1], r -= t[0], a += t[1], i += t[0], o += t[0], s += t[1]), {
775
- top: n,
776
- bottom: a,
777
- height: s,
778
- left: r,
779
- right: i,
780
- width: o,
781
- middle: r + (i - r) / 2,
782
- center: n + (a - n) / 2
783
- };
784
- }
785
- function qt(e, t, n) {
786
- let { top: r, left: i } = e.getBoundingClientRect();
787
- return r += t.top, i += t.left, n !== void 0 && (r += n[1], i += n[0]), {
788
- top: r,
789
- bottom: r + 1,
790
- height: 1,
791
- left: i,
792
- right: i + 1,
793
- width: 1,
794
- middle: i,
795
- center: r
796
- };
797
- }
798
- function Jt(e, t) {
799
- return {
800
- top: 0,
801
- center: t / 2,
802
- bottom: t,
803
- left: 0,
804
- middle: e / 2,
805
- right: e
806
- };
807
- }
808
- function Yt(e, t, n, r) {
809
- return {
810
- top: e[n.vertical] - t[r.vertical],
811
- left: e[n.horizontal] - t[r.horizontal]
812
- };
813
- }
814
- function Xt(e, t = 0) {
815
- if (e.targetEl === null || e.anchorEl === null || t > 5) return;
816
- if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
817
- setTimeout(() => {
818
- Xt(e, t + 1);
819
- }, 10);
820
- return;
821
- }
822
- let { targetEl: n, offset: r, anchorEl: i, anchorOrigin: a, selfOrigin: o, absoluteOffset: s, fit: c, cover: l, maxHeight: u, maxWidth: d } = e;
823
- if (W.is.ios && window.visualViewport !== void 0) {
824
- let e = document.body.style, { offsetLeft: t, offsetTop: n } = window.visualViewport;
825
- t !== Rt && (e.setProperty("--q-pe-left", t + "px"), Rt = t), n !== zt && (e.setProperty("--q-pe-top", n + "px"), zt = n);
826
- }
827
- let { scrollLeft: f, scrollTop: p } = n, m = s === void 0 ? Kt(i, l ? [0, 0] : r) : qt(i, s, r);
828
- Object.assign(n.style, {
829
- top: 0,
830
- left: 0,
831
- minWidth: null,
832
- minHeight: null,
833
- maxWidth: d,
834
- maxHeight: u,
835
- visibility: "visible"
836
- });
837
- let { offsetWidth: h, offsetHeight: g } = n, { elWidth: _, elHeight: v } = c || l ? {
838
- elWidth: Math.max(m.width, h),
839
- elHeight: l ? Math.max(m.height, g) : g
840
- } : {
841
- elWidth: h,
842
- elHeight: g
843
- }, y = {
844
- maxWidth: d,
845
- maxHeight: u
846
- };
847
- (c || l) && (y.minWidth = m.width + "px", l && (y.minHeight = m.height + "px")), Object.assign(n.style, y);
848
- let b = Jt(_, v), x = Yt(m, b, a, o);
849
- if (s === void 0 || r === void 0) Zt(x, m, b, a, o);
850
- else {
851
- let { top: e, left: t } = x;
852
- Zt(x, m, b, a, o);
853
- let n = !1;
854
- if (x.top !== e) {
855
- n = !0;
856
- let e = 2 * r[1];
857
- m.center = m.top -= e, m.bottom -= e + 2;
858
- }
859
- if (x.left !== t) {
860
- n = !0;
861
- let e = 2 * r[0];
862
- m.middle = m.left -= e, m.right -= e + 2;
863
- }
864
- n && (x = Yt(m, b, a, o), Zt(x, m, b, a, o));
865
- }
866
- y = {
867
- top: x.top + "px",
868
- left: x.left + "px"
869
- }, x.maxHeight !== void 0 && (y.maxHeight = x.maxHeight + "px", m.height > x.maxHeight && (y.minHeight = y.maxHeight)), x.maxWidth !== void 0 && (y.maxWidth = x.maxWidth + "px", m.width > x.maxWidth && (y.minWidth = y.maxWidth)), Object.assign(n.style, y), n.scrollTop !== p && (n.scrollTop = p), n.scrollLeft !== f && (n.scrollLeft = f);
870
- }
871
- function Zt(e, t, n, r, i) {
872
- let a = n.bottom, o = n.right, s = Tt(), c = window.innerHeight - s, l = document.body.clientWidth;
873
- if (e.top < 0 || e.top + a > c) {
874
- if (i.vertical === "center") e.top = t[r.vertical] > c / 2 ? Math.max(0, c - a) : 0, e.maxHeight = Math.min(a, c);
875
- else if (t[r.vertical] > c / 2) {
876
- let n = Math.min(c, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.bottom : t.top);
877
- e.maxHeight = Math.min(a, n), e.top = Math.max(0, n - a);
878
- } else e.top = Math.max(0, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.top : t.bottom), e.maxHeight = Math.min(a, c - e.top);
879
- }
880
- if (e.left < 0 || e.left + o > l) {
881
- if (e.maxWidth = Math.min(o, l), i.horizontal === "middle") e.left = t[r.horizontal] > l / 2 ? Math.max(0, l - o) : 0;
882
- else if (t[r.horizontal] > l / 2) {
883
- let n = Math.min(l, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.right : t.left);
884
- e.maxWidth = Math.min(o, n), e.left = Math.max(0, n - e.maxWidth);
885
- } else e.left = Math.max(0, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.left : t.right), e.maxWidth = Math.min(o, l - e.left);
886
- }
887
- }
888
- //#endregion
889
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/tooltip/QTooltip.js
890
- var Qt = 0, $t = qe({
891
- name: "QTooltip",
892
- inheritAttrs: !1,
893
- props: {
894
- ...ze,
895
- ...We,
896
- ...ut,
897
- maxHeight: {
898
- type: String,
899
- default: null
900
- },
901
- maxWidth: {
902
- type: String,
903
- default: null
904
- },
905
- transitionShow: {
906
- ...ut.transitionShow,
907
- default: "jump-down"
908
- },
909
- transitionHide: {
910
- ...ut.transitionHide,
911
- default: "jump-up"
912
- },
913
- anchor: {
914
- type: String,
915
- default: "bottom middle",
916
- validator: Ht
917
- },
918
- self: {
919
- type: String,
920
- default: "top middle",
921
- validator: Ht
922
- },
923
- offset: {
924
- type: Array,
925
- default: () => [14, 14],
926
- validator: Ut
927
- },
928
- scrollTarget: xt,
929
- delay: {
930
- type: Number,
931
- default: 0
932
- },
933
- hideDelay: {
934
- type: Number,
935
- default: 0
936
- },
937
- persistent: Boolean
938
- },
939
- emits: [...Ge],
940
- setup(e, { slots: t, emit: i, attrs: a }) {
941
- let o, s, c, l = !1, u, p = d(), { proxy: { $q: m } } = p, h = D(null), g = D(!1), _ = vt(), v = r(() => a.id || _.value), y = r(() => Gt(e.anchor, m.lang.rtl)), x = r(() => Gt(e.self, m.lang.rtl)), S = r(() => !e.persistent), { registerTick: C, removeTick: w } = ft(), { registerTimeout: T } = pt(), { transitionProps: E, transitionStyle: O } = dt(e), { localScrollTarget: k, changeScrollEvent: A, unconfigureScrollTarget: ee } = Ve(e, le), { anchorEl: j, canShow: N, anchorEvents: P } = Be({
942
- showing: g,
943
- configureAnchorEl: ae
944
- }), { show: F, hide: I } = Ke({
945
- showing: g,
946
- canShow: N,
947
- handleShow: B,
948
- handleHide: te,
949
- hideOnRouteChange: S,
950
- processOnMount: !0
951
- });
952
- Object.assign(P, {
953
- delayShow: ne,
954
- delayHide: U,
955
- onFocusin: re
956
- });
957
- let { showPortal: L, hidePortal: R, renderPortal: z } = lt(p, h, de, "tooltip");
958
- if (m.platform.is.mobile) {
959
- let t = {
960
- anchorEl: j,
961
- innerRef: h,
962
- onClickOutside(e) {
963
- return I(e), e.target.classList.contains("q-dialog__backdrop") && Ne(e), !0;
964
- }
965
- }, n = r(() => e.modelValue === null && !e.persistent && g.value);
966
- M(n, (e) => {
967
- (e ? It : Lt)(t);
968
- }), b(() => {
969
- Lt(t);
970
- });
971
- } else M(() => (e.modelValue === null || e["onUpdate:modelValue"]) && g.value === !0 && e.persistent !== !0, (e) => {
972
- (e === !0 ? jt : Mt)(ie);
973
- });
974
- function B(t) {
975
- L(), se(), C(() => {
976
- if (s?.disconnect(), h.value === null) {
977
- s = void 0;
978
- return;
979
- }
980
- s = new MutationObserver(() => H()), s.observe(h.value, {
981
- attributes: !1,
982
- childList: !0,
983
- characterData: !0,
984
- subtree: !0
985
- }), H(), le();
986
- }), o === void 0 && (o = M(() => m.screen.width + "|" + m.screen.height + "|" + e.self + "|" + e.anchor + "|" + m.lang.rtl, H)), T(() => {
987
- L(!0), i("show", t);
988
- }, e.transitionDuration);
989
- }
990
- function te(t) {
991
- w(), R(), V(), T(() => {
992
- R(!0), i("hide", t);
993
- }, e.transitionDuration);
994
- }
995
- function V() {
996
- s !== void 0 && (s.disconnect(), s = void 0), o !== void 0 && (o(), o = void 0), ee(), Mt(ie), Fe(P, "tooltipTemp"), ce(), oe(!1);
997
- }
998
- function H() {
999
- Xt({
1000
- targetEl: h.value,
1001
- offset: e.offset,
1002
- anchorEl: j.value,
1003
- anchorOrigin: y.value,
1004
- selfOrigin: x.value,
1005
- maxHeight: e.maxHeight,
1006
- maxWidth: e.maxWidth
1007
- });
1008
- }
1009
- function ne(t) {
1010
- if (m.platform.is.mobile) {
1011
- c !== void 0 && (clearTimeout(c), c = void 0), je(), oe(!0);
1012
- let e = j.value, t = [
1013
- "touchmove",
1014
- "touchcancel",
1015
- "touchend",
1016
- "click"
1017
- ].map((t) => [
1018
- e,
1019
- t,
1020
- "delayHide",
1021
- "passiveCapture"
1022
- ]);
1023
- Pe(P, "tooltipTemp", t);
1024
- }
1025
- T(() => {
1026
- F(t);
1027
- }, e.delay);
1028
- }
1029
- function U(t) {
1030
- m.platform.is.mobile && (Fe(P, "tooltipTemp"), je(), c = setTimeout(() => {
1031
- c = void 0, oe(!1);
1032
- }, 10)), T(() => {
1033
- I(t);
1034
- }, e.hideDelay);
1035
- }
1036
- function re(e) {
1037
- let t = e.target;
1038
- if (t) {
1039
- try {
1040
- if (t.matches(":focus-visible") === !1) return;
1041
- } catch {}
1042
- ne(e);
1043
- }
1044
- }
1045
- function ie(e) {
1046
- I(e);
1047
- }
1048
- function ae() {
1049
- if (e.noParentEvent || j.value === null) return;
1050
- let t = m.platform.is.mobile ? [[
1051
- j.value,
1052
- "touchstart",
1053
- "delayShow",
1054
- "passive"
1055
- ]] : [
1056
- [
1057
- j.value,
1058
- "mouseenter",
1059
- "delayShow",
1060
- "passive"
1061
- ],
1062
- [
1063
- j.value,
1064
- "mouseleave",
1065
- "delayHide",
1066
- "passive"
1067
- ],
1068
- [
1069
- j.value,
1070
- "focusin",
1071
- "onFocusin",
1072
- "passive"
1073
- ],
1074
- [
1075
- j.value,
1076
- "focusout",
1077
- "delayHide",
1078
- "passive"
1079
- ]
1080
- ];
1081
- Pe(P, "anchor", t);
1082
- }
1083
- function oe(e) {
1084
- l !== e && (l = e, Qt += e ? 1 : -1, document.body.classList.toggle("non-selectable", Qt > 0), !e && c !== void 0 && (clearTimeout(c), c = void 0));
1085
- }
1086
- function se() {
1087
- let e = j.value, t = v.value;
1088
- if (e === null || t === void 0) return;
1089
- let n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean);
1090
- u = {
1091
- el: e,
1092
- id: t,
1093
- added: !n.includes(t)
1094
- }, u.added && (n.push(t), e.setAttribute("aria-describedby", n.join(" ")));
1095
- }
1096
- function ce() {
1097
- if (u?.added === !0) {
1098
- let { el: e, id: t } = u, n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter((e) => e !== "" && e !== t);
1099
- n.length === 0 ? e.removeAttribute("aria-describedby") : e.setAttribute("aria-describedby", n.join(" "));
1100
- }
1101
- u = void 0;
1102
- }
1103
- function le() {
1104
- if (j.value !== null || e.scrollTarget !== void 0) {
1105
- k.value = Ct(j.value, e.scrollTarget);
1106
- let t = e.noParentEvent ? H : I;
1107
- A(k.value, t);
1108
- }
1109
- }
1110
- function ue() {
1111
- return g.value ? f("div", {
1112
- ...a,
1113
- id: v.value,
1114
- ref: h,
1115
- class: ["q-tooltip q-tooltip--style q-position-engine no-pointer-events", a.class],
1116
- style: [a.style, O.value],
1117
- role: "tooltip"
1118
- }, X(t.default)) : null;
1119
- }
1120
- function de() {
1121
- return f(n, E.value, ue);
1122
- }
1123
- return b(V), Object.assign(p.proxy, { updatePosition: H }), z;
1124
- }
1125
- }), en = {
1126
- xs: 18,
1127
- sm: 24,
1128
- md: 32,
1129
- lg: 38,
1130
- xl: 46
1131
- }, tn = { size: String };
1132
- function nn(e, t = en) {
1133
- return r(() => e.size === void 0 ? null : { fontSize: e.size in t ? `${t[e.size]}px` : e.size });
1134
- }
1135
- //#endregion
1136
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/icon/QIcon.js
1137
- var rn = "0 0 24 24", an = (e) => e, on = (e) => `ionicons ${e}`, sn = {
1138
- "mdi-": (e) => `mdi ${e}`,
1139
- "icon-": an,
1140
- "bt-": (e) => `bt ${e}`,
1141
- "eva-": (e) => `eva ${e}`,
1142
- "ion-md": on,
1143
- "ion-ios": on,
1144
- "ion-logo": on,
1145
- "iconfont ": an,
1146
- "ti-": (e) => `themify-icon ${e}`,
1147
- "bi-": (e) => `bootstrap-icons ${e}`,
1148
- "i-": an
1149
- }, cn = {
1150
- o_: "-outlined",
1151
- r_: "-round",
1152
- s_: "-sharp"
1153
- }, ln = {
1154
- sym_o_: "-outlined",
1155
- sym_r_: "-rounded",
1156
- sym_s_: "-sharp"
1157
- }, un = RegExp("^(" + Object.keys(sn).join("|") + ")"), dn = RegExp("^(" + Object.keys(cn).join("|") + ")"), fn = RegExp("^(" + Object.keys(ln).join("|") + ")"), pn = /^[Mm]\s?[-+]?\.?\d/, mn = /^img:/, hn = /^svguse:/, gn = /^ion-/, _n = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, vn = qe({
1158
- name: "QIcon",
1159
- props: {
1160
- ...tn,
1161
- tag: {
1162
- type: String,
1163
- default: "i"
1164
- },
1165
- name: String,
1166
- color: String,
1167
- left: Boolean,
1168
- right: Boolean
1169
- },
1170
- setup(e, { slots: t }) {
1171
- let { proxy: { $q: n } } = d(), i = nn(e), a = r(() => "q-icon" + (e.left ? " on-left" : "") + (e.right ? " on-right" : "") + (e.color === void 0 ? "" : ` text-${e.color}`)), o = r(() => {
1172
- let t, r = e.name;
1173
- if (r === "none" || !r) return { none: !0 };
1174
- if (n.iconMapFn !== null) {
1175
- let e = n.iconMapFn(r);
1176
- if (e !== void 0) {
1177
- if (e.icon !== void 0) {
1178
- if (r = e.icon, r === "none" || !r) return { none: !0 };
1179
- } else return {
1180
- cls: e.cls,
1181
- content: e.content === void 0 ? " " : e.content
1182
- };
1183
- }
1184
- }
1185
- if (pn.test(r)) {
1186
- let [e, t = rn] = r.split("|");
1187
- return {
1188
- svg: !0,
1189
- viewBox: t,
1190
- nodes: e.split("&&").map((e) => {
1191
- let [t, n, r] = e.split("@@");
1192
- return f("path", {
1193
- style: n,
1194
- d: t,
1195
- transform: r
1196
- });
1197
- })
1198
- };
1199
- }
1200
- if (mn.test(r)) return {
1201
- img: !0,
1202
- src: r.slice(4)
1203
- };
1204
- if (hn.test(r)) {
1205
- let [e, t = rn] = r.split("|");
1206
- return {
1207
- svguse: !0,
1208
- src: e.slice(7),
1209
- viewBox: t
1210
- };
1211
- }
1212
- let i = " ", a = r.match(un);
1213
- if (a !== null) t = sn[a[1]](r);
1214
- else if (_n.test(r)) t = r;
1215
- else if (gn.test(r)) t = `ionicons ion-${n.platform.is.ios ? "ios" : "md"}${r.slice(3)}`;
1216
- else if (fn.test(r)) {
1217
- t = "notranslate material-symbols";
1218
- let e = r.match(fn);
1219
- e !== null && (r = r.slice(6), t += ln[e[1]]), i = r;
1220
- } else {
1221
- t = "notranslate material-icons";
1222
- let e = r.match(dn);
1223
- e !== null && (r = r.slice(2), t += cn[e[1]]), i = r;
1224
- }
1225
- return {
1226
- cls: t,
1227
- content: i
1228
- };
1229
- });
1230
- return () => {
1231
- let n = {
1232
- class: a.value,
1233
- style: i.value,
1234
- "aria-hidden": "true"
1235
- };
1236
- return o.value.none ? f(e.tag, n, X(t.default)) : o.value.img ? f(e.tag, n, Nt(t.default, [f("img", { src: o.value.src })])) : o.value.svg ? f(e.tag, n, Nt(t.default, [f("svg", { viewBox: o.value.viewBox || "0 0 24 24" }, o.value.nodes)])) : o.value.svguse ? f(e.tag, n, Nt(t.default, [f("svg", { viewBox: o.value.viewBox }, [f("use", { "xlink:href": o.value.src })])])) : (o.value.cls !== void 0 && (n.class += " " + o.value.cls), f(e.tag, n, Nt(t.default, [o.value.content])));
1237
- };
1238
- }
1239
- }), yn = {
1240
- size: {
1241
- type: [String, Number],
1242
- default: "1em"
1243
- },
1244
- color: String
1245
- };
1246
- function bn(e) {
1247
- return {
1248
- cSize: r(() => e.size in en ? `${en[e.size]}px` : e.size),
1249
- classes: r(() => "q-spinner" + (e.color ? ` text-${e.color}` : ""))
1250
- };
1251
- }
1252
- //#endregion
1253
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/spinner/QSpinner.js
1254
- var xn = qe({
1255
- name: "QSpinner",
1256
- props: {
1257
- ...yn,
1258
- thickness: {
1259
- type: Number,
1260
- default: 5
1261
- }
1262
- },
1263
- setup(e) {
1264
- let { cSize: t, classes: n } = bn(e);
1265
- return () => f("svg", {
1266
- class: n.value + " q-spinner-mat",
1267
- width: t.value,
1268
- height: t.value,
1269
- viewBox: "25 25 50 50"
1270
- }, [f("circle", {
1271
- class: "path",
1272
- cx: "50",
1273
- cy: "50",
1274
- r: "20",
1275
- fill: "none",
1276
- stroke: "currentColor",
1277
- "stroke-width": e.thickness,
1278
- "stroke-miterlimit": "10"
1279
- })]);
1280
- }
1281
- }), Sn = /^on[A-Z]/;
1282
- function Cn() {
1283
- let e = d(), { attrs: t } = e, n = {
1284
- listeners: D({}),
1285
- attributes: D({})
1286
- };
1287
- function r() {
1288
- let r = {}, i = {};
1289
- for (let e in t) e !== "class" && e !== "style" && !Sn.test(e) && (r[e] = t[e]);
1290
- for (let t in e.vnode.props) Sn.test(t) && (i[t] = e.vnode.props[t]);
1291
- n.attributes.value = r, n.listeners.value = i;
1292
- }
1293
- return x(r), r(), n;
1294
- }
1295
- //#endregion
1296
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-dark/use-dark.js
1297
- var wn = { dark: {
1298
- type: Boolean,
1299
- default: null
1300
- } };
1301
- function Tn(e, t) {
1302
- return r(() => e.dark === null ? t.dark.isActive : e.dark);
1303
- }
1304
- //#endregion
1305
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.symbols/symbols.js
1306
- var En = "_q_fo_";
1307
- //#endregion
1308
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/use-form-child.js
1309
- function Dn({ validate: e, resetValidation: t, requiresQForm: n }) {
1310
- let r = p(En, !1);
1311
- if (r !== !1) {
1312
- let { props: n, proxy: i } = d();
1313
- Object.assign(i, {
1314
- validate: e,
1315
- resetValidation: t
1316
- }), M(() => n.disable, (e) => {
1317
- e ? (typeof t == "function" && t(), r.unbindComponent(i)) : r.bindComponent(i);
1318
- }), C(() => {
1319
- n.disable || r.bindComponent(i);
1320
- }), b(() => {
1321
- n.disable || r.unbindComponent(i);
1322
- });
1323
- } else n && console.error("Parent QForm not found on useFormChild()!");
1324
- }
1325
- //#endregion
1326
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/patterns/patterns.js
1327
- var On = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, kn = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, An = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, jn = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Mn = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0(\.[\d]+)?|1(\.0+)?)\)$/, Nn = /^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/, Pn = /^([0-1]?\d|2[0-3]):[0-5]\d$/, Fn = /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/, In = /^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/, Ln = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Rn = {
1328
- date: (e) => Nn.test(e),
1329
- time: (e) => Pn.test(e),
1330
- fulltime: (e) => Fn.test(e),
1331
- timeOrFulltime: (e) => In.test(e),
1332
- email: (e) => Ln.test(e),
1333
- hexColor: (e) => On.test(e),
1334
- hexaColor: (e) => kn.test(e),
1335
- hexOrHexaColor: (e) => An.test(e),
1336
- rgbColor: (e) => jn.test(e),
1337
- rgbaColor: (e) => Mn.test(e),
1338
- rgbOrRgbaColor: (e) => jn.test(e) || Mn.test(e),
1339
- hexOrRgbColor: (e) => On.test(e) || jn.test(e),
1340
- hexaOrRgbaColor: (e) => kn.test(e) || Mn.test(e),
1341
- anyColor: (e) => An.test(e) || jn.test(e) || Mn.test(e)
1342
- };
1343
- //#endregion
1344
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/debounce/debounce.js
1345
- function zn(e, t = 250, n) {
1346
- let r = null;
1347
- function i(...i) {
1348
- r === null ? n && e.apply(this, i) : clearTimeout(r), r = setTimeout(() => {
1349
- r = null, n || e.apply(this, i);
1350
- }, t);
1351
- }
1352
- return i.cancel = () => {
1353
- r !== null && (clearTimeout(r), r = null);
1354
- }, i;
1355
- }
1356
- //#endregion
1357
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-validate/use-validate.js
1358
- var Bn = [
1359
- !0,
1360
- !1,
1361
- "ondemand"
1362
- ], Vn = {
1363
- modelValue: {},
1364
- error: {
1365
- type: Boolean,
1366
- default: null
1367
- },
1368
- errorMessage: String,
1369
- noErrorIcon: Boolean,
1370
- rules: Array,
1371
- reactiveRules: Boolean,
1372
- lazyRules: {
1373
- type: [Boolean, String],
1374
- default: !1,
1375
- validator: (e) => Bn.includes(e)
1376
- }
1377
- };
1378
- function Hn(e, t) {
1379
- let { props: n, proxy: i } = d(), a = D(!1), o = D(null), s = D(!1);
1380
- Dn({
1381
- validate: _,
1382
- resetValidation: g
1383
- });
1384
- let c = 0, l, u = r(() => n.rules !== void 0 && n.rules !== null && n.rules.length !== 0), f = r(() => !n.disable && u.value && !t.value), p = r(() => n.error === !0 || a.value), m = r(() => typeof n.errorMessage == "string" && n.errorMessage.length !== 0 ? n.errorMessage : o.value);
1385
- M(() => n.modelValue, () => {
1386
- s.value = !0, f.value && n.lazyRules === !1 && v();
1387
- });
1388
- function h() {
1389
- n.lazyRules !== "ondemand" && f.value && s.value && v();
1390
- }
1391
- M(() => n.reactiveRules, (e) => {
1392
- e ? l === void 0 && (l = M(() => n.rules, h, {
1393
- immediate: !0,
1394
- deep: !0
1395
- })) : l !== void 0 && (l(), l = void 0);
1396
- }, { immediate: !0 }), M(() => n.lazyRules, h), M(e, (e) => {
1397
- e ? s.value = !0 : f.value && n.lazyRules !== "ondemand" && v();
1398
- });
1399
- function g() {
1400
- c++, t.value = !1, s.value = !1, a.value = !1, o.value = null, v.cancel();
1401
- }
1402
- function _(e = n.modelValue) {
1403
- if (n.disable || !u.value) return !0;
1404
- let r = ++c, i = t.value ? () => {} : () => {
1405
- s.value = !0;
1406
- }, l = (e, n) => {
1407
- e && i(), a.value = e, o.value = n || null, t.value = !1;
1408
- }, d = [];
1409
- for (let t = 0; t < n.rules.length; t++) {
1410
- let r = n.rules[t], i;
1411
- if (typeof r == "function" ? i = r(e, Rn) : typeof r == "string" && Rn[r] !== void 0 && (i = Rn[r](e)), i === !1 || typeof i == "string") return l(!0, i), !1;
1412
- i !== !0 && i !== void 0 && d.push(i);
1413
- }
1414
- return d.length === 0 ? (l(!1), !0) : (t.value = !0, Promise.all(d).then((e) => {
1415
- if (e === void 0 || !Array.isArray(e) || e.length === 0) return r === c && l(!1), !0;
1416
- let t = e.find((e) => e === !1 || typeof e == "string");
1417
- return r === c && l(t !== void 0, t), t === void 0;
1418
- }, (e) => (r === c && (console.error(e), l(!0)), !1)));
1419
- }
1420
- let v = zn(_, 0);
1421
- return b(() => {
1422
- l?.(), v.cancel();
1423
- }), Object.assign(i, {
1424
- resetValidation: g,
1425
- validate: _
1426
- }), R(i, "hasError", () => p.value), {
1427
- isDirtyModel: s,
1428
- hasRules: u,
1429
- hasError: p,
1430
- errorMessage: m,
1431
- validate: _,
1432
- resetValidation: g
1433
- };
1434
- }
1435
- //#endregion
1436
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-field/use-field.js
1437
- function Un(e) {
1438
- return e != null && String(e).length !== 0;
1439
- }
1440
- var Wn = {
1441
- ...wn,
1442
- ...Vn,
1443
- label: String,
1444
- stackLabel: Boolean,
1445
- hint: String,
1446
- hideHint: Boolean,
1447
- prefix: String,
1448
- suffix: String,
1449
- labelColor: String,
1450
- color: String,
1451
- bgColor: String,
1452
- filled: Boolean,
1453
- outlined: Boolean,
1454
- borderless: Boolean,
1455
- standout: [Boolean, String],
1456
- square: Boolean,
1457
- loading: Boolean,
1458
- labelSlot: Boolean,
1459
- bottomSlots: Boolean,
1460
- hideBottomSpace: Boolean,
1461
- rounded: Boolean,
1462
- dense: Boolean,
1463
- itemAligned: Boolean,
1464
- counter: Boolean,
1465
- clearable: Boolean,
1466
- clearIcon: String,
1467
- disable: Boolean,
1468
- readonly: Boolean,
1469
- autofocus: Boolean,
1470
- for: String,
1471
- maxlength: [Number, String]
1472
- }, Gn = [
1473
- "update:modelValue",
1474
- "clear",
1475
- "focus",
1476
- "blur"
1477
- ];
1478
- function Kn({ requiredForAttr: e = !0, tagProp: t, changeEvent: n = !1 } = {}) {
1479
- let { props: i, proxy: a } = d(), o = Tn(i, a.$q), s = vt({
1480
- required: e,
1481
- getValue: () => i.for
1482
- });
1483
- return {
1484
- requiredForAttr: e,
1485
- changeEvent: n,
1486
- tag: t ? r(() => i.tag) : { value: "label" },
1487
- isDark: o,
1488
- editable: r(() => !i.disable && !i.readonly),
1489
- innerLoading: D(!1),
1490
- focused: D(!1),
1491
- hasPopupOpen: !1,
1492
- splitAttrs: Cn(),
1493
- targetUid: s,
1494
- rootRef: D(null),
1495
- targetRef: D(null),
1496
- controlRef: D(null)
1497
- };
1498
- }
1499
- function qn(e, t) {
1500
- return t === null ? null : f("div", {
1501
- key: e,
1502
- class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
1503
- }, t);
1504
- }
1505
- function Jn(e) {
1506
- let { props: t, emit: i, slots: a, attrs: o, proxy: s } = d(), { $q: c } = s, l = null;
1507
- e.hasValue === void 0 && (e.hasValue = r(() => Un(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (e) => {
1508
- i("update:modelValue", e);
1509
- }), e.controlEvents === void 0 && (e.controlEvents = {
1510
- onFocusin: N,
1511
- onFocusout: P
1512
- }), Object.assign(e, {
1513
- clearValue: F,
1514
- onControlFocusin: N,
1515
- onControlFocusout: P,
1516
- focus: j
1517
- }), e.computedCounter === void 0 && (e.computedCounter = r(() => {
1518
- if (t.counter) {
1519
- let e = typeof t.modelValue == "string" || typeof t.modelValue == "number" ? String(t.modelValue).length : Array.isArray(t.modelValue) ? t.modelValue.length : 0, n = t.maxlength === void 0 ? t.maxValues : t.maxlength;
1520
- return e + (n === void 0 ? "" : " / " + n);
1521
- }
1522
- }));
1523
- let { isDirtyModel: u, hasRules: p, hasError: m, errorMessage: h, resetValidation: g } = Hn(e.focused, e.innerLoading), v = e.floatingLabel === void 0 ? r(() => t.stackLabel || e.focused.value || e.hasValue.value) : r(() => t.stackLabel || e.focused.value || e.floatingLabel.value), x = r(() => t.bottomSlots || t.hint !== void 0 || p.value || t.counter || t.error !== null), w = r(() => t.filled ? "filled" : t.outlined ? "outlined" : t.borderless ? "borderless" : t.standout ? "standout" : "standard"), T = r(() => `q-field row no-wrap items-start q-field--${w.value}` + (e.fieldClass === void 0 ? "" : ` ${e.fieldClass.value}`) + (t.rounded ? " q-field--rounded" : "") + (t.square ? " q-field--square" : "") + (v.value ? " q-field--float" : "") + (D.value ? " q-field--labeled" : "") + (t.dense ? " q-field--dense" : "") + (t.itemAligned ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value ? " q-field--focused" : "") + (m.value ? " q-field--error" : "") + (m.value || e.focused.value ? " q-field--highlighted" : "") + (!t.hideBottomSpace && x.value ? " q-field--with-bottom" : "") + (t.disable ? " q-field--disabled" : t.readonly ? " q-field--readonly" : "")), E = r(() => "q-field__control relative-position row no-wrap" + (t.bgColor === void 0 ? "" : ` bg-${t.bgColor}`) + (m.value ? " text-negative" : typeof t.standout == "string" && t.standout.length !== 0 && e.focused.value ? ` ${t.standout}` : t.color === void 0 ? "" : ` text-${t.color}`)), D = r(() => t.labelSlot || t.label !== void 0), O = r(() => "q-field__label no-pointer-events absolute ellipsis" + (t.labelColor !== void 0 && !m.value ? ` text-${t.labelColor}` : "")), k = r(() => ({
1524
- id: e.targetUid.value,
1525
- editable: e.editable.value,
1526
- focused: e.focused.value,
1527
- floatingLabel: v.value,
1528
- modelValue: t.modelValue,
1529
- emitValue: e.emitValue
1530
- })), A = r(() => {
1531
- let n = {};
1532
- return e.targetUid.value && (n.for = e.targetUid.value), t.disable && (n["aria-disabled"] = "true"), n;
1533
- });
1534
- function ee() {
1535
- let t = document.activeElement, n = e.targetRef?.value;
1536
- n && (t === null || t.id !== e.targetUid.value) && (n.hasAttribute("tabindex") || (n = n.querySelector("[tabindex]")), n !== t && n?.focus({ preventScroll: !0 }));
1537
- }
1538
- function j() {
1539
- Qe(ee);
1540
- }
1541
- function M() {
1542
- $e(ee);
1543
- let t = document.activeElement;
1544
- t !== null && e.rootRef.value.contains(t) && t.blur();
1545
- }
1546
- function N(t) {
1547
- l !== null && (clearTimeout(l), l = null), e.editable.value && !e.focused.value && (e.focused.value = !0, i("focus", t));
1548
- }
1549
- function P(t, n) {
1550
- l !== null && clearTimeout(l), l = setTimeout(() => {
1551
- l = null, !(document.hasFocus() && (e.hasPopupOpen || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement))) && (e.focused.value && (e.focused.value = !1, i("blur", t)), n?.());
1552
- }, 0);
1553
- }
1554
- function F(n) {
1555
- Ne(n), c.platform.is.mobile ? e.rootRef.value.contains(document.activeElement) && document.activeElement.blur() : (e.targetRef?.value || e.rootRef.value).focus(), t.type === "file" && (e.inputRef.value.value = null), e.onClear?.(), i("update:modelValue", null), e.changeEvent && i("change", null), i("clear", t.modelValue), _(() => {
1556
- let e = u.value;
1557
- g(), u.value = e;
1558
- });
1559
- }
1560
- function I(e) {
1561
- [13, 32].includes(e.keyCode) && F(e);
1562
- }
1563
- function L() {
1564
- let n = [];
1565
- return a.prepend !== void 0 && n.push(f("div", {
1566
- class: "q-field__prepend q-field__marginal row no-wrap items-center",
1567
- key: "prepend",
1568
- onClick: K
1569
- }, a.prepend())), n.push(f("div", { class: "q-field__control-container col relative-position row no-wrap q-anchor--skip" }, R())), m.value && !t.noErrorIcon && n.push(qn("error", [f(vn, {
1570
- name: c.iconSet.field.error,
1571
- color: "negative"
1572
- })])), t.loading || e.innerLoading.value ? n.push(qn("inner-loading-append", a.loading === void 0 ? [f(xn, { color: t.color })] : a.loading())) : t.clearable && e.hasValue.value && e.editable.value && n.push(qn("inner-clearable-append", [f(vn, {
1573
- class: "q-field__focusable-action",
1574
- name: t.clearIcon || c.iconSet.field.clear,
1575
- tabindex: 0,
1576
- role: "button",
1577
- "aria-hidden": "false",
1578
- "aria-label": c.lang.label.clear,
1579
- onKeyup: I,
1580
- onClick: F
1581
- })])), a.append !== void 0 && n.push(f("div", {
1582
- class: "q-field__append q-field__marginal row no-wrap items-center",
1583
- key: "append",
1584
- onClick: K
1585
- }, a.append())), e.getInnerAppend !== void 0 && n.push(qn("inner-append", e.getInnerAppend())), e.getControlChild !== void 0 && n.push(e.getControlChild()), n;
1586
- }
1587
- function R() {
1588
- let n = [];
1589
- return t.prefix !== void 0 && t.prefix !== null && n.push(f("div", { class: "q-field__prefix no-pointer-events row items-center" }, t.prefix)), e.getShadowControl !== void 0 && e.hasShadow.value && n.push(e.getShadowControl()), D.value && n.push(f("div", { class: O.value }, X(a.label, t.label))), e.getControl === void 0 ? a.rawControl === void 0 ? a.control !== void 0 && n.push(f("div", {
1590
- ref: e.targetRef,
1591
- class: "q-field__native row",
1592
- tabindex: -1,
1593
- ...e.splitAttrs.attributes.value,
1594
- "data-autofocus": t.autofocus || void 0
1595
- }, a.control(k.value))) : n.push(a.rawControl()) : n.push(e.getControl()), t.suffix !== void 0 && t.suffix !== null && n.push(f("div", { class: "q-field__suffix no-pointer-events row items-center" }, t.suffix)), n.concat(X(a.default));
1596
- }
1597
- function z() {
1598
- let r, i;
1599
- m.value ? h.value === null ? (r = X(a.error), i = "q--slot-error") : (r = [f("div", { role: "alert" }, h.value)], i = `q--slot-error-${h.value}`) : (!t.hideHint || e.focused.value) && (t.hint === void 0 ? (r = X(a.hint), i = "q--slot-hint") : (r = [f("div", t.hint)], i = `q--slot-hint-${t.hint}`));
1600
- let o = t.counter || a.counter !== void 0;
1601
- if (t.hideBottomSpace && !o && r === void 0) return;
1602
- let s = f("div", {
1603
- key: i,
1604
- class: "q-field__messages col"
1605
- }, r);
1606
- return f("div", {
1607
- class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace ? "stale" : "animated"),
1608
- onClick: K
1609
- }, [t.hideBottomSpace ? s : f(n, { name: "q-transition--field-message" }, () => s), o ? f("div", { class: "q-field__counter" }, a.counter === void 0 ? e.computedCounter.value : a.counter()) : null]);
1610
- }
1611
- let B = !1;
1612
- return S(() => {
1613
- B = !0;
1614
- }), y(() => {
1615
- B && t.autofocus && s.focus();
1616
- }), t.autofocus && C(() => {
1617
- s.focus();
1618
- }), b(() => {
1619
- l !== null && clearTimeout(l);
1620
- }), Object.assign(s, {
1621
- focus: j,
1622
- blur: M
1623
- }), function() {
1624
- let n = e.getControl === void 0 && a.control === void 0 ? {
1625
- ...e.splitAttrs.attributes.value,
1626
- "data-autofocus": t.autofocus || void 0,
1627
- ...A.value
1628
- } : A.value;
1629
- return f(e.tag.value, {
1630
- ref: e.rootRef,
1631
- class: [T.value, o.class],
1632
- style: o.style,
1633
- ...n
1634
- }, [
1635
- a.before === void 0 ? null : f("div", {
1636
- class: "q-field__before q-field__marginal row no-wrap items-center",
1637
- onClick: K
1638
- }, a.before()),
1639
- f("div", { class: "q-field__inner relative-position col self-stretch" }, [f("div", {
1640
- ref: e.controlRef,
1641
- class: E.value,
1642
- tabindex: -1,
1643
- ...e.controlEvents
1644
- }, L()), x.value ? z() : null]),
1645
- a.after === void 0 ? null : f("div", {
1646
- class: "q-field__after q-field__marginal row no-wrap items-center",
1647
- onClick: K
1648
- }, a.after())
1649
- ]);
1650
- };
1651
- }
1652
- //#endregion
1653
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/use-mask.js
1654
- var Yn = {
1655
- date: "####/##/##",
1656
- datetime: "####/##/## ##:##",
1657
- time: "##:##",
1658
- fulltime: "##:##:##",
1659
- phone: "(###) ### - ####",
1660
- card: "#### #### #### ####"
1661
- }, { tokenMap: Xn, tokenKeys: Zn } = Qn({
1662
- "#": {
1663
- pattern: "[\\d]",
1664
- negate: "[^\\d]"
1665
- },
1666
- S: {
1667
- pattern: "[a-zA-Z]",
1668
- negate: "[^a-zA-Z]"
1669
- },
1670
- N: {
1671
- pattern: "[0-9a-zA-Z]",
1672
- negate: "[^0-9a-zA-Z]"
1673
- },
1674
- A: {
1675
- pattern: "[a-zA-Z]",
1676
- negate: "[^a-zA-Z]",
1677
- transform: (e) => e.toLocaleUpperCase()
1678
- },
1679
- a: {
1680
- pattern: "[a-zA-Z]",
1681
- negate: "[^a-zA-Z]",
1682
- transform: (e) => e.toLocaleLowerCase()
1683
- },
1684
- X: {
1685
- pattern: "[0-9a-zA-Z]",
1686
- negate: "[^0-9a-zA-Z]",
1687
- transform: (e) => e.toLocaleUpperCase()
1688
- },
1689
- x: {
1690
- pattern: "[0-9a-zA-Z]",
1691
- negate: "[^0-9a-zA-Z]",
1692
- transform: (e) => e.toLocaleLowerCase()
1693
- }
1694
- });
1695
- function Qn(e) {
1696
- let t = Object.keys(e), n = {};
1697
- return t.forEach((t) => {
1698
- let r = e[t];
1699
- n[t] = {
1700
- ...r,
1701
- regex: new RegExp(r.pattern)
1702
- };
1703
- }), {
1704
- tokenMap: n,
1705
- tokenKeys: t
1706
- };
1707
- }
1708
- function $n(e) {
1709
- return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + e.join("") + "])|(.)", "g");
1710
- }
1711
- var er = /[.*+?^${}()|[\]\\]/g, tr = $n(Zn), $ = String.fromCodePoint(1), nr = {
1712
- mask: String,
1713
- reverseFillMask: Boolean,
1714
- fillMask: [Boolean, String],
1715
- unmaskedValue: Boolean,
1716
- maskTokens: Object
1717
- };
1718
- function rr(e, t, n, i) {
1719
- let a, o, s, c, l, u, d = r(() => {
1720
- if (e.maskTokens === void 0 || e.maskTokens === null) return {
1721
- tokenMap: Xn,
1722
- tokenRegexMask: tr
1723
- };
1724
- let { tokenMap: t } = Qn(e.maskTokens), n = {
1725
- ...Xn,
1726
- ...t
1727
- };
1728
- return {
1729
- tokenMap: n,
1730
- tokenRegexMask: $n(Object.keys(n))
1731
- };
1732
- }), f = D(null), p = D(h());
1733
- function m() {
1734
- return e.autogrow || [
1735
- "textarea",
1736
- "text",
1737
- "search",
1738
- "url",
1739
- "tel",
1740
- "password"
1741
- ].includes(e.type);
1742
- }
1743
- M(() => e.type + e.autogrow, v), M(() => e.mask, (n) => {
1744
- if (n !== void 0) y(p.value, !0);
1745
- else {
1746
- let n = E(p.value);
1747
- v(), e.modelValue !== n && t("update:modelValue", n);
1748
- }
1749
- }), M(() => e.fillMask + e.reverseFillMask, () => {
1750
- f.value && y(p.value, !0);
1751
- }), M(() => e.unmaskedValue, () => {
1752
- f.value && y(p.value);
1753
- }), M(() => e.maskTokens, () => {
1754
- f.value && y(p.value, !0);
1755
- }, { deep: !0 });
1756
- function h() {
1757
- if (v(), f.value) {
1758
- let t = w(E(e.modelValue));
1759
- return e.fillMask === !1 ? t : O(t);
1760
- }
1761
- return e.modelValue;
1762
- }
1763
- function g(e) {
1764
- if (e < a.length) return a.slice(-e);
1765
- let t = "", n = a, r = n.indexOf($);
1766
- if (r !== -1) {
1767
- for (let r = e - n.length; r > 0; r--) t += $;
1768
- n = n.slice(0, r) + t + n.slice(r);
1769
- }
1770
- return n;
1771
- }
1772
- function v() {
1773
- if (f.value = e.mask !== void 0 && e.mask.length !== 0 && m(), !f.value) {
1774
- c = void 0, a = "", o = "";
1775
- return;
1776
- }
1777
- let t = Yn[e.mask] === void 0 ? e.mask : Yn[e.mask], n = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", r = n.replace(er, String.raw`\$&`), i = [], l = [], u = [], p = e.reverseFillMask, h = "", g = "";
1778
- t.replace(d.value.tokenRegexMask, (e, t, n, r, a) => {
1779
- if (r !== void 0) {
1780
- let e = d.value.tokenMap[r];
1781
- u.push(e), g = e.negate, p &&= (l.push("(?:" + g + "+)?(" + e.pattern + "+)?(?:" + g + "+)?(" + e.pattern + "+)?"), !1), l.push("(?:" + g + "+)?(" + e.pattern + ")?");
1782
- return;
1783
- }
1784
- if (n !== void 0) h = "\\" + (n === "\\" ? "" : n), u.push(n);
1785
- else {
1786
- let e = t === void 0 ? a : t;
1787
- h = e === "\\" ? String.raw`\\\\` : e.replace(er, String.raw`\\$&`), u.push(e);
1788
- }
1789
- i.push("([^" + h + "]+)?" + h + "?");
1790
- });
1791
- let _ = RegExp("^" + i.join("") + "(" + (h === "" ? "." : "[^" + h + "]") + "+)?" + (h === "" ? "" : "[" + h + "]*") + "$"), v = l.length - 1, y = l.map((t, n) => n === 0 && e.reverseFillMask ? RegExp("^" + r + "*" + t) : RegExp(n === v ? "^" + t + "(" + (g === "" ? "." : g) + "+)?" + (e.reverseFillMask ? "$" : r + "*") : "^" + t));
1792
- s = u, c = (t) => {
1793
- let n = _.exec(e.reverseFillMask ? t : t.slice(0, u.length + 1));
1794
- n !== null && (t = n.slice(1).join(""));
1795
- let r = [], i = y.length;
1796
- for (let e = 0, n = t; e < i; e++) {
1797
- let t = y[e].exec(n);
1798
- if (t === null) break;
1799
- n = n.slice(t.shift().length), r.push(...t);
1800
- }
1801
- return r.length === 0 ? t : r.join("");
1802
- }, a = u.map((e) => typeof e == "string" ? e : $).join(""), o = a.split($).join(n);
1803
- }
1804
- function y(t, r, s) {
1805
- let c = i.value, u = c?.selectionEnd ?? 0, d = c === null ? 0 : c.value.length - u, f = E(t);
1806
- r === !0 && v();
1807
- let m = w(f, r), h = e.fillMask === !1 ? m : O(m), g = p.value !== h;
1808
- c !== null && c.value !== h && (c.value = h), g && (p.value = h), c !== null && document.activeElement === c && _(() => {
1809
- if (h === o) {
1810
- let t = e.reverseFillMask ? o.length : 0;
1811
- c.setSelectionRange(t, t, "forward");
1812
- return;
1813
- }
1814
- if (s === "insertFromPaste" && !e.reverseFillMask) {
1815
- let e = c.selectionEnd, t = u - 1;
1816
- for (let n = l; n <= t && n < e; n++) a[n] !== $ && t++;
1817
- x.right(c, t);
1818
- return;
1819
- }
1820
- if (["deleteContentBackward", "deleteContentForward"].includes(s)) {
1821
- let t = e.reverseFillMask ? u === 0 ? +(h.length > m.length) : Math.max(0, h.length - (h === o ? 0 : Math.min(m.length, d) + 1)) + 1 : u;
1822
- c.setSelectionRange(t, t, "forward");
1823
- return;
1824
- }
1825
- if (e.reverseFillMask) {
1826
- if (g) {
1827
- let e = Math.max(0, h.length - (h === o ? 0 : Math.min(m.length, d + 1)));
1828
- e === 1 && u === 1 ? c.setSelectionRange(e, e, "forward") : x.rightReverse(c, e);
1829
- } else {
1830
- let e = h.length - d;
1831
- c.setSelectionRange(e, e, "backward");
1832
- }
1833
- } else if (g) {
1834
- let e = Math.max(0, a.indexOf($), Math.min(m.length, u) - 1);
1835
- x.right(c, e);
1836
- } else {
1837
- let e = u - 1;
1838
- x.right(c, e);
1839
- }
1840
- });
1841
- let y = e.unmaskedValue ? E(h) : h;
1842
- String(e.modelValue) !== y && (e.modelValue !== null || y !== "") && n(y, !0);
1843
- }
1844
- function b(e, t, n) {
1845
- let r = w(E(e.value));
1846
- t = Math.max(0, a.indexOf($), Math.min(r.length, t)), l = t, e.setSelectionRange(t, n, "forward");
1847
- }
1848
- let x = {
1849
- left(e, t) {
1850
- let n = !a.slice(t - 1).includes($), r = Math.max(0, t - 1);
1851
- for (; r >= 0; r--) if (a[r] === $) {
1852
- t = r, n && t++;
1853
- break;
1854
- }
1855
- if (r < 0 && a[t] !== void 0 && a[t] !== $) return x.right(e, 0);
1856
- t >= 0 && e.setSelectionRange(t, t, "backward");
1857
- },
1858
- right(e, t) {
1859
- let n = e.value.length, r = Math.min(n, t + 1);
1860
- for (; r <= n; r++) if (a[r] === $) {
1861
- t = r;
1862
- break;
1863
- } else a[r - 1] === $ && (t = r);
1864
- if (r > n && a[t - 1] !== void 0 && a[t - 1] !== $) return x.left(e, n);
1865
- e.setSelectionRange(t, t, "forward");
1866
- },
1867
- leftReverse(e, t) {
1868
- let n = g(e.value.length), r = Math.max(0, t - 1);
1869
- for (; r >= 0; r--) if (n[r - 1] === $) {
1870
- t = r;
1871
- break;
1872
- } else if (n[r] === $ && (t = r, r === 0)) break;
1873
- if (r < 0 && n[t] !== void 0 && n[t] !== $) return x.rightReverse(e, 0);
1874
- t >= 0 && e.setSelectionRange(t, t, "backward");
1875
- },
1876
- rightReverse(e, t) {
1877
- let n = e.value.length, r = g(n), i = !r.slice(0, t + 1).includes($), a = Math.min(n, t + 1);
1878
- for (; a <= n; a++) if (r[a - 1] === $) {
1879
- t = a, t > 0 && i && t--;
1880
- break;
1881
- }
1882
- if (a > n && r[t - 1] !== void 0 && r[t - 1] !== $) return x.leftReverse(e, n);
1883
- e.setSelectionRange(t, t, "forward");
1884
- }
1885
- };
1886
- function S(e) {
1887
- t("click", e), u = void 0;
1888
- }
1889
- function C(n) {
1890
- if (t("keydown", n), Le(n) || n.altKey) return;
1891
- let r = i.value, a = r.selectionStart, o = r.selectionEnd;
1892
- if (n.shiftKey || (u = void 0), n.keyCode === 37 || n.keyCode === 39) {
1893
- n.shiftKey && u === void 0 && (u = r.selectionDirection === "forward" ? a : o);
1894
- let t = x[(n.keyCode === 39 ? "right" : "left") + (e.reverseFillMask ? "Reverse" : "")];
1895
- if (n.preventDefault(), t(r, u === a ? o : a), n.shiftKey) {
1896
- let e = r.selectionStart;
1897
- r.setSelectionRange(Math.min(u, e), Math.max(u, e), "forward");
1898
- }
1899
- } else n.keyCode === 8 && !e.reverseFillMask && a === o ? (x.left(r, a), r.setSelectionRange(r.selectionStart, o, "backward")) : n.keyCode === 46 && e.reverseFillMask && a === o && (x.rightReverse(r, o), r.setSelectionRange(a, r.selectionEnd, "forward"));
1900
- }
1901
- function w(t, n) {
1902
- if (t == null || t === "") return "";
1903
- if (e.reverseFillMask) return T(t, n);
1904
- let r = s, i = 0, a = "";
1905
- for (let e = 0; e < r.length; e++) {
1906
- let o = t[i], s = r[e];
1907
- if (typeof s == "string") a += s, n === !0 && o === s && i++;
1908
- else if (o !== void 0 && s.regex.test(o)) a += s.transform === void 0 ? o : s.transform(o), i++;
1909
- else return a;
1910
- }
1911
- return a;
1912
- }
1913
- function T(e, t) {
1914
- let n = s, r = a.indexOf($), i = e.length - 1, o = "";
1915
- for (let a = n.length - 1; a >= 0 && i !== -1; a--) {
1916
- let s = n[a], c = e[i];
1917
- if (typeof s == "string") o = s + o, t === !0 && c === s && i--;
1918
- else if (c !== void 0 && s.regex.test(c)) do
1919
- o = (s.transform === void 0 ? c : s.transform(c)) + o, i--, c = e[i];
1920
- while (r === a && c !== void 0 && s.regex.test(c));
1921
- else return o;
1922
- }
1923
- return o;
1924
- }
1925
- function E(e) {
1926
- return typeof e != "string" || c === void 0 ? typeof e == "number" ? c(String(e)) : e : c(e);
1927
- }
1928
- function O(t) {
1929
- return o.length - t.length <= 0 ? t : e.reverseFillMask && t.length !== 0 ? o.slice(0, -t.length) + t : t + o.slice(t.length);
1930
- }
1931
- return {
1932
- innerValue: p,
1933
- hasMask: f,
1934
- moveCursorForPaste: b,
1935
- updateMaskValue: y,
1936
- onMaskedKeydown: C,
1937
- onMaskedClick: S
1938
- };
1939
- }
1940
- //#endregion
1941
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/private.use-form.js
1942
- var ir = { name: String };
1943
- function ar(e) {
1944
- return r(() => e.name || e.for);
1945
- }
1946
- //#endregion
1947
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js
1948
- function or(e, t) {
1949
- function n() {
1950
- let t = e.modelValue;
1951
- try {
1952
- let e = "DataTransfer" in window ? new DataTransfer() : "ClipboardEvent" in window ? new ClipboardEvent("").clipboardData : void 0;
1953
- return Object(t) === t && ("length" in t ? [...t] : [t]).forEach((t) => {
1954
- e.items.add(t);
1955
- }), { files: e.files };
1956
- } catch {
1957
- return { files: void 0 };
1958
- }
1959
- }
1960
- return r(t ? () => {
1961
- if (e.type === "file") return n();
1962
- } : n);
1963
- }
1964
- //#endregion
1965
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-key-composition/use-key-composition.js
1966
- var sr = /[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/, cr = /[\u4E00-\u9FFF\u3400-\u4DBF\u{20000}-\u{2A6DF}\u{2A700}-\u{2B73F}\u{2B740}-\u{2B81F}\u{2B820}-\u{2CEAF}\uF900-\uFAFF\u3300-\u33FF\uFE30-\uFE4F\uF900-\uFAFF\u{2F800}-\u{2FA1F}]/u, lr = /[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/, ur = /[a-z0-9_ -]$/i;
1967
- function dr(e) {
1968
- return function(t) {
1969
- if (t.type === "compositionend" || t.type === "change") {
1970
- if (!t.target.qComposing) return;
1971
- t.target.qComposing = !1, e(t);
1972
- } else t.type === "compositionupdate" && !t.target.qComposing && typeof t.data == "string" && (W.is.firefox ? !ur.test(t.data) : sr.test(t.data) || cr.test(t.data) || lr.test(t.data)) && (t.target.qComposing = !0);
1973
- };
1974
- }
1975
- //#endregion
1976
- //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/QInput.js
1977
- var fr = qe({
1978
- name: "QInput",
1979
- inheritAttrs: !1,
1980
- props: {
1981
- ...Wn,
1982
- ...nr,
1983
- ...ir,
1984
- modelValue: [
1985
- String,
1986
- Number,
1987
- FileList
1988
- ],
1989
- modelModifiers: Object,
1990
- shadowText: String,
1991
- type: {
1992
- type: String,
1993
- default: "text"
1994
- },
1995
- debounce: [String, Number],
1996
- autogrow: Boolean,
1997
- inputClass: [
1998
- Array,
1999
- String,
2000
- Object
2001
- ],
2002
- inputStyle: [
2003
- Array,
2004
- String,
2005
- Object
2006
- ]
2007
- },
2008
- emits: [
2009
- ...Gn,
2010
- "paste",
2011
- "change",
2012
- "keydown",
2013
- "click",
2014
- "animationend"
2015
- ],
2016
- setup(e, { emit: t, attrs: n }) {
2017
- let { proxy: i } = d(), { $q: a } = i, o = {}, s = NaN, c = !1, l = !1, u = null, p, m = D(null), h = ar(e), { innerValue: g, hasMask: v, moveCursorForPaste: y, updateMaskValue: x, onMaskedKeydown: S, onMaskedClick: w } = rr(e, t, V, m), T = or(e, !0), E = r(() => Un(g.value)), O = dr(B), k = Kn({ changeEvent: !0 }), A = r(() => e.type === "textarea" || e.autogrow), ee = r(() => A.value || [
2018
- "text",
2019
- "search",
2020
- "url",
2021
- "tel",
2022
- "password"
2023
- ].includes(e.type)), j = r(() => {
2024
- let t = {
2025
- ...k.splitAttrs.listeners.value,
2026
- onInput: B,
2027
- onPaste: z,
2028
- onChange: re,
2029
- onBlur: ie,
2030
- onFocus: Me
2031
- };
2032
- return t.onCompositionstart = t.onCompositionupdate = t.onCompositionend = O, v.value && (t.onKeydown = S, t.onClick = w), e.autogrow && (t.onAnimationend = te), t;
2033
- }), N = r(() => {
2034
- let t = {
2035
- tabindex: 0,
2036
- "data-autofocus": e.autofocus || void 0,
2037
- rows: e.type === "textarea" ? 6 : void 0,
2038
- "aria-label": e.label,
2039
- name: h.value,
2040
- ...k.splitAttrs.attributes.value,
2041
- id: k.targetUid.value,
2042
- maxlength: e.maxlength,
2043
- disabled: e.disable,
2044
- readonly: e.readonly
2045
- };
2046
- return A.value || (t.type = e.type), e.autogrow && (t.rows = 1), t;
2047
- });
2048
- M(() => e.type, () => {
2049
- m.value && (m.value.value = e.modelValue);
2050
- }), M(() => e.modelValue, (t) => {
2051
- if (u !== null && (H(), c = !1, l = !1, delete o.value), v.value) {
2052
- if (l && (l = !1, String(t) === s)) return;
2053
- x(t);
2054
- } else g.value !== t && (g.value = t, e.type === "number" && Object.hasOwn(o, "value") && (c ? c = !1 : delete o.value), e.modelModifiers?.trim === !0 && Object.hasOwn(o, "value") && (typeof o.value != "string" || o.value.trim() !== t) && delete o.value);
2055
- e.autogrow && _(U);
2056
- }), M(() => e.autogrow, (e) => {
2057
- e ? _(U) : m.value !== null && n.rows > 0 && (m.value.style.height = "auto");
2058
- }), M(() => e.dense, () => {
2059
- e.autogrow && _(U);
2060
- });
2061
- function P() {
2062
- let e = document.activeElement;
2063
- m.value !== null && m.value !== e && (e === null || e.id !== k.targetUid.value) && m.value.focus({ preventScroll: !0 });
2064
- }
2065
- function F() {
2066
- Qe(P);
2067
- }
2068
- function I() {
2069
- $e(P);
2070
- let e = document.activeElement;
2071
- e !== null && k.rootRef.value.contains(e) && e.blur();
2072
- }
2073
- function L() {
2074
- m.value?.select();
2075
- }
2076
- function z(n) {
2077
- if (v.value && e.reverseFillMask !== !0) {
2078
- let e = n.target;
2079
- y(e, e.selectionStart, e.selectionEnd);
2080
- }
2081
- t("paste", n);
2082
- }
2083
- function B(n) {
2084
- if (!n || !n.target) return;
2085
- if (e.type === "file") {
2086
- t("update:modelValue", n.target.files);
2087
- return;
2088
- }
2089
- let r = n.target.value;
2090
- if (n.target.qComposing) {
2091
- o.value = r;
2092
- return;
2093
- }
2094
- if (v.value) x(r, !1, n.inputType);
2095
- else if (e.modelModifiers?.trim === !0 && (o.value = r), V(r), ee.value && n.target === document.activeElement) {
2096
- let { selectionStart: e, selectionEnd: t } = n.target;
2097
- e !== void 0 && t !== void 0 && _(() => {
2098
- n.target === document.activeElement && r.indexOf(n.target.value) === 0 && n.target.setSelectionRange(e, t);
2099
- });
2100
- }
2101
- e.autogrow && U();
2102
- }
2103
- function te(e) {
2104
- t("animationend", e), U();
2105
- }
2106
- function V(n, r) {
2107
- p = () => {
2108
- u = null, e.type !== "number" && (e.modelModifiers?.trim !== !0 || v.value) && Object.hasOwn(o, "value") && delete o.value, e.modelValue !== n && s !== n && (s = n, r === !0 && (l = !0), t("update:modelValue", n), _(() => {
2109
- s === n && (s = NaN);
2110
- })), p = void 0;
2111
- }, e.type === "number" && (c = !0, o.value = n), e.debounce === void 0 ? p() : (u !== null && clearTimeout(u), o.value = n, u = setTimeout(p, e.debounce));
2112
- }
2113
- function H() {
2114
- u !== null && (clearTimeout(u), u = null), p = void 0;
2115
- }
2116
- function ne() {
2117
- H(), c = !1, l = !1, delete o.value;
2118
- }
2119
- function U() {
2120
- requestAnimationFrame(() => {
2121
- let e = m.value;
2122
- if (e !== null) {
2123
- let t = e.parentNode.style, { scrollTop: n } = e, { overflowY: r, maxHeight: i } = a.platform.is.firefox ? {} : window.getComputedStyle(e), o = r !== void 0 && r !== "scroll";
2124
- o && (e.style.overflowY = "hidden"), t.marginBottom = e.scrollHeight - 1 + "px", e.style.height = "1px", e.style.height = e.scrollHeight + "px", o && (e.style.overflowY = Number.parseInt(i, 10) < e.scrollHeight ? "auto" : "hidden"), t.marginBottom = "", e.scrollTop = n;
2125
- }
2126
- });
2127
- }
2128
- function re(e) {
2129
- O(e), u !== null && (clearTimeout(u), u = null), p?.(), t("change", e.target.value);
2130
- }
2131
- function ie(t) {
2132
- t !== void 0 && Me(t), u !== null && (clearTimeout(u), u = null), p?.(), c = !1, l = !1, delete o.value, e.type !== "file" && setTimeout(() => {
2133
- m.value !== null && (m.value.value = g.value === void 0 ? "" : g.value);
2134
- }, 0);
2135
- }
2136
- function ae() {
2137
- return Object.hasOwn(o, "value") ? o.value : g.value === void 0 ? "" : g.value;
2138
- }
2139
- b(() => {
2140
- ie();
2141
- }), C(() => {
2142
- e.autogrow && U();
2143
- }), Object.assign(k, {
2144
- innerValue: g,
2145
- fieldClass: r(() => `q-${A.value ? "textarea" : "input"}` + (e.autogrow ? " q-textarea--autogrow" : "")),
2146
- hasShadow: r(() => e.type !== "file" && typeof e.shadowText == "string" && e.shadowText.length !== 0),
2147
- inputRef: m,
2148
- emitValue: V,
2149
- onClear: ne,
2150
- hasValue: E,
2151
- floatingLabel: r(() => E.value && (e.type !== "number" || Number.isFinite(Number(g.value))) || Un(e.displayValue)),
2152
- getControl: () => f(A.value ? "textarea" : "input", {
2153
- ref: m,
2154
- class: ["q-field__native q-placeholder", e.inputClass],
2155
- style: e.inputStyle,
2156
- ...N.value,
2157
- ...j.value,
2158
- ...e.type === "file" ? T.value : { value: ae() }
2159
- }),
2160
- getShadowControl: () => f("div", { class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (A.value ? "" : " text-no-wrap") }, [f("span", { class: "invisible" }, ae()), f("span", e.shadowText)])
2161
- });
2162
- let oe = Jn(k);
2163
- return Object.assign(i, {
2164
- focus: F,
2165
- blur: I,
2166
- select: L,
2167
- getNativeElement: () => m.value
2168
- }), R(i, "nativeEl", () => m.value), oe;
2169
- }
2170
- });
2171
- //#endregion
2172
- //#region lib/components/inputs/VnInput.vue?vue&type=i18n&index=0&lang.i18n
2173
- function pr(e) {
2174
- let t = e;
2175
- t.__i18n = t.__i18n || [], t.__i18n.push({
2176
- locale: "",
2177
- resource: {
2178
- en: {
2179
- inputMin: {
2180
- t: 0,
2181
- b: {
2182
- t: 2,
2183
- i: [{
2184
- t: 3,
2185
- v: "Must be more than "
2186
- }, {
2187
- t: 4,
2188
- k: "value"
2189
- }]
2190
- }
2191
- },
2192
- maxLength: {
2193
- t: 0,
2194
- b: {
2195
- t: 2,
2196
- i: [
2197
- {
2198
- t: 3,
2199
- v: "The value exceeds "
2200
- },
2201
- {
2202
- t: 4,
2203
- k: "value"
2204
- },
2205
- {
2206
- t: 3,
2207
- v: " characters"
2208
- }
2209
- ]
2210
- }
2211
- },
2212
- inputMax: {
2213
- t: 0,
2214
- b: {
2215
- t: 2,
2216
- i: [{
2217
- t: 3,
2218
- v: "Must be less than "
2219
- }, {
2220
- t: 4,
2221
- k: "value"
2222
- }]
2223
- }
2224
- }
2225
- },
2226
- es: {
2227
- inputMin: {
2228
- t: 0,
2229
- b: {
2230
- t: 2,
2231
- i: [{
2232
- t: 3,
2233
- v: "Debe ser mayor a "
2234
- }, {
2235
- t: 4,
2236
- k: "value"
2237
- }]
2238
- }
2239
- },
2240
- maxLength: {
2241
- t: 0,
2242
- b: {
2243
- t: 2,
2244
- i: [
2245
- {
2246
- t: 3,
2247
- v: "El valor excede los "
2248
- },
2249
- {
2250
- t: 4,
2251
- k: "value"
2252
- },
2253
- {
2254
- t: 3,
2255
- v: " carácteres"
2256
- }
2257
- ]
2258
- }
2259
- },
2260
- inputMax: {
2261
- t: 0,
2262
- b: {
2263
- t: 2,
2264
- i: [{
2265
- t: 3,
2266
- v: "Debe ser menor a "
2267
- }, {
2268
- t: 4,
2269
- k: "value"
2270
- }]
2271
- }
2272
- },
2273
- "Convert to uppercase": {
2274
- t: 0,
2275
- b: {
2276
- t: 2,
2277
- i: [{ t: 3 }],
2278
- s: "Convertir a mayúsculas"
2279
- }
2280
- },
2281
- Remove: {
2282
- t: 0,
2283
- b: {
2284
- t: 2,
2285
- i: [{ t: 3 }],
2286
- s: "Eliminar"
2287
- }
2288
- }
2289
- }
2290
- }
2291
- });
2292
- }
2293
- //#endregion
2294
- //#region lib/components/inputs/VnInput.vue
2295
- var mr = {
2296
- __name: "VnInput",
2297
- props: /*@__PURE__*/ h({
2298
- isOutlined: {
2299
- type: Boolean,
2300
- default: !1
2301
- },
2302
- info: {
2303
- type: String,
2304
- default: ""
2305
- },
2306
- clearable: {
2307
- type: Boolean,
2308
- default: !0
2309
- },
2310
- emptyToNull: {
2311
- type: Boolean,
2312
- default: !0
2313
- },
2314
- insertable: {
2315
- type: Boolean,
2316
- default: !1
2317
- },
2318
- maxlength: {
2319
- type: Number,
2320
- default: null
2321
- },
2322
- uppercase: {
2323
- type: Boolean,
2324
- default: !1
2325
- }
2326
- }, {
2327
- modelValue: { default: null },
2328
- modelModifiers: {}
2329
- }),
2330
- emits: /*@__PURE__*/ h(["remove"], ["update:modelValue"]),
2331
- setup(t, { expose: n, emit: u }) {
2332
- let d = ee(), { isRequired: f, requiredFieldRule: p } = e(d), { t: m } = P(), h = u, y = t, b = j(t, "modelValue"), x = [
2333
- "number",
2334
- "search",
2335
- "tel",
2336
- "url",
2337
- "password"
2338
- ], S = (e) => {
2339
- let t = e;
2340
- y.emptyToNull && t === "" && (t = null), b.value = t;
2341
- }, w = D(null), E = D(!1), M = r(() => y.isOutlined ? {
2342
- dense: !0,
2343
- outlined: !0,
2344
- rounded: !0
2345
- } : {}), F = (e) => {
2346
- w.value?.focus(e);
2347
- }, I = (e) => {
2348
- _(() => {
2349
- let t = e.target || w.value?.$el?.querySelector("input"), n = e.target.type || t?.getAttribute("type");
2350
- if (n !== "email") {
2351
- if (!x.includes(n)) {
2352
- if (t?.setSelectionRange) {
2353
- let e = t.value?.length ?? 0;
2354
- t.setSelectionRange(e, e);
2355
- }
2356
- return;
2357
- }
2358
- t?.select?.();
2359
- }
2360
- });
2361
- };
2362
- n({
2363
- focus: F,
2364
- vnInputRef: w
2365
- });
2366
- let L = r(() => [
2367
- p,
2368
- ...d.rules ?? [],
2369
- (e) => {
2370
- let t = y.maxlength;
2371
- if (t && +e?.length > t) return m("maxLength", { value: t });
2372
- let { min: n, max: r } = d, i = n === void 0 ? void 0 : Number(n), a = r === void 0 ? void 0 : Number(r);
2373
- return i !== void 0 && i >= 0 && Math.floor(e) < i ? m("inputMin", { value: i }) : a !== void 0 && a > 0 && Math.floor(e) > a ? m("inputMax", { value: a }) : !0;
2374
- }
2375
- ]), R = (e) => {
2376
- e.key !== "Backspace" && y.insertable && e.key.match(/[0-9]/) && z(e);
2377
- }, z = (e) => {
2378
- e.preventDefault();
2379
- let t = e.target, n = t.selectionStart, r = y.maxlength, i = b.value;
2380
- i ||= e.key;
2381
- let a = e.key;
2382
- a && !isNaN(a) && n < r && S(i.substring(0, n) + a + i.substring(n + 1)), _(() => {
2383
- t.setSelectionRange(n + 1, n + 1);
2384
- });
2385
- }, B = () => {
2386
- b.value = b.value?.toUpperCase() || "";
2387
- };
2388
- return C(() => {
2389
- d.autofocus && F();
2390
- }), (e, n) => (T(), o("div", {
2391
- onMouseover: n[1] ||= (e) => E.value = !0,
2392
- onMouseleave: n[2] ||= (e) => E.value = !1
2393
- }, [l(fr, g({
2394
- ref_key: "vnInputRef",
2395
- ref: w,
2396
- "model-value": A(b),
2397
- "onUpdate:modelValue": S
2398
- }, {
2399
- ...A(d),
2400
- ...M.value
2401
- }, {
2402
- class: { required: A(f) },
2403
- onKeydown: R,
2404
- onFocus: I,
2405
- clearable: !1,
2406
- rules: L.value,
2407
- "lazy-rules": !0,
2408
- "hide-bottom-space": "",
2409
- "data-cy": (A(d)["data-cy"] ?? A(d).label) + "_input",
2410
- dense: ""
2411
- }), s({
2412
- append: N(() => [
2413
- l(vn, {
2414
- name: "close",
2415
- size: "xs",
2416
- class: "cursor-pointer",
2417
- style: v({ visibility: E.value && A(b) && !A(d).disabled && !A(d).readonly && y.clearable ? "visible" : "hidden" }),
2418
- onClick: n[0] ||= () => {
2419
- S(null), w.value?.focus(), h("remove");
2420
- }
2421
- }, {
2422
- default: N(() => [l($t, null, {
2423
- default: N(() => [c(k(A(m)("Remove")), 1)]),
2424
- _: 1
2425
- })]),
2426
- _: 1
2427
- }, 8, ["style"]),
2428
- !A(d).disabled && !A(d).readonly && y.uppercase ? (T(), i(vn, {
2429
- key: 0,
2430
- name: "match_case",
2431
- size: "xs",
2432
- onClick: B,
2433
- class: "uppercase-icon"
2434
- }, {
2435
- default: N(() => [l($t, null, {
2436
- default: N(() => [c(k(A(m)("Convert to uppercase")), 1)]),
2437
- _: 1
2438
- })]),
2439
- _: 1
2440
- })) : a("", !0),
2441
- e.$slots.append && !A(d).disabled ? O(e.$slots, "append", {}, void 0, void 0, 1) : a("", !0),
2442
- t.info ? (T(), i(vn, {
2443
- key: 2,
2444
- name: "info"
2445
- }, {
2446
- default: N(() => [l($t, { "max-width": "350px" }, {
2447
- default: N(() => [c(k(t.info), 1)]),
2448
- _: 1
2449
- })]),
2450
- _: 1
2451
- })) : a("", !0)
2452
- ]),
2453
- _: 2
2454
- }, [e.$slots.hint ? {
2455
- name: "hint",
2456
- fn: N(() => [O(e.$slots, "hint")]),
2457
- key: "0"
2458
- } : void 0, e.$slots.prepend ? {
2459
- name: "prepend",
2460
- fn: N(() => [O(e.$slots, "prepend")]),
2461
- key: "1"
2462
- } : void 0]), 1040, [
2463
- "model-value",
2464
- "class",
2465
- "rules",
2466
- "data-cy"
2467
- ])], 32));
2468
- }
2469
- };
2470
- typeof pr == "function" && pr(mr);
2471
- //#endregion
2472
- //#region lib/components/models/VnFetch.vue
2473
- var hr = {
2474
- __name: "VnFetch",
2475
- props: {
2476
- autoLoad: {
2477
- type: Boolean,
2478
- default: !1
2479
- },
2480
- url: {
2481
- type: String,
2482
- default: ""
2483
- },
2484
- filter: {
2485
- type: Object,
2486
- default: null
2487
- },
2488
- where: {
2489
- type: Object,
2490
- default: null
2491
- },
2492
- sortBy: {
2493
- type: String,
2494
- default: ""
2495
- },
2496
- limit: {
2497
- type: [String, Number],
2498
- default: ""
2499
- },
2500
- params: {
2501
- type: Object,
2502
- default: null
2503
- }
2504
- },
2505
- emits: ["onFetch"],
2506
- setup(e, { expose: t, emit: n }) {
2507
- let r = e, i = n;
2508
- t({ fetch: a }), C(async () => {
2509
- r.autoLoad && await a();
2510
- });
2511
- async function a(e = {}) {
2512
- try {
2513
- let t = {
2514
- ...e,
2515
- ...r.filter
2516
- };
2517
- r.where && !e.where && (t.where = r.where), r.sortBy && (t.order = r.sortBy), r.limit && (t.limit = r.limit);
2518
- let { data: n } = await F.get(r.url, { params: {
2519
- filter: JSON.stringify(t),
2520
- ...r.params
2521
- } });
2522
- return i("onFetch", n), n;
2523
- } catch {}
2524
- }
2525
- return (e, t) => (T(), o("template"));
2526
- }
2527
- }, gr = /* @__PURE__ */ L({
2528
- VnFetch: () => hr,
2529
- VnInput: () => mr
2530
- });
2531
- //#endregion
2532
- export { hr as n, mr as r, gr as t };