@verdnatura/vn-front-lib 0.0.9 → 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 (51) 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 +5 -0
  23. package/lib/components/models/VnFetch.vue +65 -0
  24. package/lib/components/models/VnForm.vue +492 -0
  25. package/lib/composables/index.js +7 -0
  26. package/lib/composables/tMobile.js +8 -0
  27. package/lib/composables/useArrayData.js +451 -0
  28. package/lib/composables/useForm.js +12 -0
  29. package/lib/composables/useNotify.js +24 -0
  30. package/lib/composables/useObjectComparison.js +67 -0
  31. package/lib/composables/useQueryResolver.js +306 -0
  32. package/lib/composables/useState.js +81 -0
  33. package/lib/filters/filterPanel.js +95 -0
  34. package/lib/filters/getDifferences.js +18 -0
  35. package/lib/filters/getUpdatedValues.js +6 -0
  36. package/lib/filters/index.js +5 -0
  37. package/lib/filters/isDialogOpened.js +3 -0
  38. package/lib/filters/onBeforeSave.js +9 -0
  39. package/lib/stores/index.js +2 -0
  40. package/lib/stores/useArrayDataStore.js +82 -0
  41. package/lib/stores/useStateStore.js +84 -0
  42. package/lib/utils/advancedFilters.js +125 -0
  43. package/lib/utils/index.js +2 -0
  44. package/lib/utils/trackAnalytics.js +18 -0
  45. package/package.json +9 -2
  46. package/dist/components-BLui5eyq.cjs +0 -1
  47. package/dist/components-Dl-Ieazh.js +0 -2466
  48. package/dist/useRequired-BqsSq8Mw.cjs +0 -1
  49. package/dist/useRequired-CTxBp3qy.js +0 -58
  50. package/dist/useValidationsStore-8JX1-oLO.cjs +0 -1
  51. package/dist/useValidationsStore-9Fxtj_pd.js +0 -12
@@ -0,0 +1,3278 @@
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, X as S, Y as C, _ as w, b as T, d as E, f as ee, g as te, h as D, j as O, k, m as ne, p as A, q as j, t as M, u as N, v as P, w as F, x as I, y as re, z as L } from "./composables-DUOUI4DI.js";
2
+ import { useStateStore as ie } from "./stores.js";
3
+ import { onBeforeSave as R } from "./filters.js";
4
+ import { Fragment as ae, Teleport as oe, Transition as se, computed as z, createBlock as B, createCommentVNode as V, createElementBlock as ce, createElementVNode as le, createSlots as ue, createTextVNode as de, createVNode as H, getCurrentInstance as U, h as W, inject as fe, mergeModels as pe, mergeProps as me, nextTick as G, normalizeClass as he, normalizeStyle as ge, onActivated as _e, onBeforeUnmount as K, onBeforeUpdate as ve, onDeactivated as ye, onMounted as q, onUnmounted as be, openBlock as J, provide as xe, ref as Y, renderSlot as Se, toDisplayString as Ce, unref as X, useAttrs as we, useModel as Te, watch as Z, withCtx as Q, withModifiers as Ee } from "vue";
5
+ import { useI18n as De } from "vue-i18n";
6
+ import Oe from "axios";
7
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/space/QSpace.js
8
+ var ke = l({
9
+ name: "QSpace",
10
+ setup() {
11
+ let e = W("div", { class: "q-space" });
12
+ return () => e;
13
+ }
14
+ }), Ae = l({
15
+ name: "QCardSection",
16
+ props: {
17
+ tag: {
18
+ type: String,
19
+ default: "div"
20
+ },
21
+ horizontal: Boolean
22
+ },
23
+ setup(e, { slots: t }) {
24
+ let n = z(() => `q-card__section q-card__section--${e.horizontal ? "horiz row no-wrap" : "vert"}`);
25
+ return () => W(e.tag, { class: n.value }, j(t.default));
26
+ }
27
+ }), je = l({
28
+ name: "QCardActions",
29
+ props: {
30
+ ...f,
31
+ vertical: Boolean
32
+ },
33
+ setup(e, { slots: t }) {
34
+ let n = O(e), r = z(() => `q-card__actions ${n.value} q-card__actions--${e.vertical ? "vert column" : "horiz row"}`);
35
+ return () => W("div", { class: r.value }, j(t.default));
36
+ }
37
+ }), Me = { dark: {
38
+ type: Boolean,
39
+ default: null
40
+ } };
41
+ function Ne(e, t) {
42
+ return z(() => e.dark === null ? t.dark.isActive : e.dark);
43
+ }
44
+ //#endregion
45
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/card/QCard.js
46
+ var Pe = l({
47
+ name: "QCard",
48
+ props: {
49
+ ...Me,
50
+ tag: {
51
+ type: String,
52
+ default: "div"
53
+ },
54
+ square: Boolean,
55
+ flat: Boolean,
56
+ bordered: Boolean
57
+ },
58
+ setup(e, { slots: t }) {
59
+ let { proxy: { $q: n } } = U(), r = Ne(e, n), i = z(() => "q-card" + (r.value ? " q-card--dark q-dark" : "") + (e.bordered ? " q-card--bordered" : "") + (e.square ? " q-card--square no-border-radius" : "") + (e.flat ? " q-card--flat no-shadow" : ""));
60
+ return () => W(e.tag, { class: i.value }, j(t.default));
61
+ }
62
+ });
63
+ //#endregion
64
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-history/use-history.js
65
+ function Fe(e, t, n) {
66
+ let r;
67
+ function i() {
68
+ r !== void 0 && (F.remove(r), r = void 0);
69
+ }
70
+ return K(() => {
71
+ e.value && i();
72
+ }), {
73
+ removeFromHistory: i,
74
+ addToHistory() {
75
+ r = {
76
+ condition: () => n.value,
77
+ handler: t
78
+ }, F.add(r);
79
+ }
80
+ };
81
+ }
82
+ //#endregion
83
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-timeout/use-timeout.js
84
+ function Ie() {
85
+ let t = null, n = U();
86
+ function r() {
87
+ t !== null && (clearTimeout(t), t = null);
88
+ }
89
+ return ye(r), K(r), {
90
+ removeTimeout: r,
91
+ registerTimeout(i, a) {
92
+ r(), e(n) || (t = setTimeout(() => {
93
+ t = null, i();
94
+ }, a));
95
+ }
96
+ };
97
+ }
98
+ //#endregion
99
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-tick/use-tick.js
100
+ function Le() {
101
+ let t, n = U();
102
+ function r() {
103
+ t = void 0;
104
+ }
105
+ return ye(r), K(r), {
106
+ removeTick: r,
107
+ registerTick(r) {
108
+ t = r, G(() => {
109
+ t === r && (e(n) || t(), t = void 0);
110
+ });
111
+ }
112
+ };
113
+ }
114
+ //#endregion
115
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js
116
+ var Re = {
117
+ modelValue: {
118
+ type: Boolean,
119
+ default: null
120
+ },
121
+ "onUpdate:modelValue": [Function, Array]
122
+ }, ze = [
123
+ "beforeShow",
124
+ "show",
125
+ "beforeHide",
126
+ "hide"
127
+ ];
128
+ function Be({ showing: e, canShow: t, hideOnRouteChange: n, handleShow: r, handleHide: i, handleRouteChange: a, processOnMount: o }) {
129
+ let s = U(), { props: c, emit: l, proxy: u } = s, d;
130
+ function f(t) {
131
+ e.value ? h(t) : p(t);
132
+ }
133
+ function p(e) {
134
+ if (c.disable || e?.qAnchorHandled === !0 || t !== void 0 && !t(e)) return;
135
+ let n = c["onUpdate:modelValue"] !== void 0;
136
+ n && (l("update:modelValue", !0), d = e, G(() => {
137
+ d === e && (d = void 0);
138
+ })), (c.modelValue === null || !n) && m(e);
139
+ }
140
+ function m(t) {
141
+ e.value || (e.value = !0, l("beforeShow", t), r === void 0 ? l("show", t) : r(t));
142
+ }
143
+ function h(e) {
144
+ if (c.disable) return;
145
+ let t = c["onUpdate:modelValue"] !== void 0;
146
+ t && (l("update:modelValue", !1), d = e, G(() => {
147
+ d === e && (d = void 0);
148
+ })), (c.modelValue === null || !t) && g(e);
149
+ }
150
+ function g(t) {
151
+ e.value && (e.value = !1, l("beforeHide", t), i === void 0 ? l("hide", t) : i(t));
152
+ }
153
+ function _(t) {
154
+ c.disable && t ? c["onUpdate:modelValue"] !== void 0 && l("update:modelValue", !1) : t === !0 !== e.value && (t ? m : g)(d);
155
+ }
156
+ Z(() => c.modelValue, _), n !== void 0 && k(s) && Z(() => u.$route.fullPath, () => {
157
+ n.value && e.value && (a?.(), h());
158
+ }), o && q(() => {
159
+ _(c.modelValue);
160
+ });
161
+ let v = {
162
+ show: p,
163
+ hide: h,
164
+ toggle: f
165
+ };
166
+ return Object.assign(u, v), v;
167
+ }
168
+ //#endregion
169
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-transition/use-transition.js
170
+ var Ve = {
171
+ transitionShow: {
172
+ type: String,
173
+ default: "fade"
174
+ },
175
+ transitionHide: {
176
+ type: String,
177
+ default: "fade"
178
+ },
179
+ transitionDuration: {
180
+ type: [String, Number],
181
+ default: 300
182
+ }
183
+ };
184
+ function He(e, t = () => {}, n = () => {}) {
185
+ return {
186
+ transitionProps: z(() => {
187
+ let r = `q-transition--${e.transitionShow || t()}`, i = `q-transition--${e.transitionHide || n()}`;
188
+ return {
189
+ appear: !0,
190
+ enterFromClass: `${r}-enter-from`,
191
+ enterActiveClass: `${r}-enter-active`,
192
+ enterToClass: `${r}-enter-to`,
193
+ leaveFromClass: `${i}-leave-from`,
194
+ leaveActiveClass: `${i}-leave-active`,
195
+ leaveToClass: `${i}-leave-to`
196
+ };
197
+ }),
198
+ transitionStyle: z(() => `--q-transition-duration: ${e.transitionDuration}ms`)
199
+ };
200
+ }
201
+ //#endregion
202
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.portal/portal.js
203
+ var Ue = [], We = [], Ge = [];
204
+ function Ke(e) {
205
+ Ge = Ge.filter((t) => t !== e);
206
+ }
207
+ function qe(e) {
208
+ Ke(e), Ge.push(e);
209
+ }
210
+ function Je(e) {
211
+ Ke(e), Ge.length === 0 && We.length !== 0 && (We.at(-1)(), We = []);
212
+ }
213
+ function Ye(e) {
214
+ Ge.length === 0 ? e() : We.push(e);
215
+ }
216
+ function Xe(e) {
217
+ We = We.filter((t) => t !== e);
218
+ }
219
+ //#endregion
220
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-portal/use-portal.js
221
+ var Ze = l({
222
+ name: "QPortal",
223
+ setup(e, { slots: t }) {
224
+ return () => t.default();
225
+ }
226
+ });
227
+ function Qe(e) {
228
+ for (e = e.parent; e != null;) {
229
+ if (e.type.name === "QGlobalDialog") return !0;
230
+ if (e.type.name === "QDialog" || e.type.name === "QMenu") return !1;
231
+ e = e.parent;
232
+ }
233
+ return !1;
234
+ }
235
+ function $e(e, t, r, i) {
236
+ let a = Y(!1), o = Y(!1), s = null, c = {}, l = i === "dialog" && Qe(e);
237
+ function u(t) {
238
+ if (t) {
239
+ Je(c), o.value = !0;
240
+ return;
241
+ }
242
+ o.value = !1, a.value || (!l && s === null && (s = _(!1, i)), a.value = !0, Ue.push(e.proxy), qe(c));
243
+ }
244
+ function d(t) {
245
+ if (o.value = !1, !t) return;
246
+ Je(c), a.value = !1;
247
+ let r = Ue.indexOf(e.proxy);
248
+ r !== -1 && Ue.splice(r, 1), s !== null && (n(s), s = null);
249
+ }
250
+ return be(() => {
251
+ d(!0);
252
+ }), e.proxy.__qPortal = !0, C(e.proxy, "contentEl", () => t.value), {
253
+ showPortal: u,
254
+ hidePortal: d,
255
+ portalIsActive: a,
256
+ portalIsAccessible: o,
257
+ renderPortal: () => l ? r() : a.value ? [W(oe, { to: s }, W(Ze, r))] : void 0
258
+ };
259
+ }
260
+ //#endregion
261
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/scroll.js
262
+ var et = [Element, String], tt = [
263
+ null,
264
+ document,
265
+ document.body,
266
+ document.scrollingElement,
267
+ document.documentElement
268
+ ];
269
+ function nt(e, t) {
270
+ let n = y(t);
271
+ if (n === void 0) {
272
+ if (e == null) return window;
273
+ n = e.closest(".scroll,.scroll-y,.overflow-auto");
274
+ }
275
+ return tt.includes(n) ? window : n;
276
+ }
277
+ function rt(e) {
278
+ return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
279
+ }
280
+ function it(e) {
281
+ return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
282
+ }
283
+ var at;
284
+ function ot() {
285
+ if (at !== void 0) return at;
286
+ let e = document.createElement("p"), t = document.createElement("div");
287
+ s(e, {
288
+ width: "100%",
289
+ height: "200px"
290
+ }), s(t, {
291
+ position: "absolute",
292
+ top: "0px",
293
+ left: "0px",
294
+ visibility: "hidden",
295
+ width: "200px",
296
+ height: "150px",
297
+ overflow: "hidden"
298
+ }), t.append(e), document.body.append(t);
299
+ let n = e.offsetWidth;
300
+ t.style.overflow = "scroll";
301
+ let r = e.offsetWidth;
302
+ return n === r && (r = t.clientWidth), t.remove(), at = n - r, at;
303
+ }
304
+ //#endregion
305
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/prevent-scroll.js
306
+ var st = 0, ct, lt, ut, dt = !1, ft, pt, mt, ht = null;
307
+ function gt(e) {
308
+ e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
309
+ }
310
+ function _t(e) {
311
+ dt || (dt = !0, requestAnimationFrame(() => {
312
+ dt = !1;
313
+ let { height: t } = e.target, { clientHeight: n, scrollTop: r } = document.scrollingElement;
314
+ (ut === void 0 || t !== window.innerHeight) && (ut = n - t, document.scrollingElement.scrollTop = r), r > ut && (document.scrollingElement.scrollTop -= Math.ceil((r - ut) / 8));
315
+ }));
316
+ }
317
+ function vt(e) {
318
+ let t = document.body, n = window.visualViewport !== void 0;
319
+ if (e === "add") {
320
+ let { overflowY: e, overflowX: r } = window.getComputedStyle(t);
321
+ ct = it(window), lt = rt(window), ft = t.style.left, pt = t.style.top, mt = window.location.pathname, t.style.left = `-${ct}px`, t.style.top = `-${lt}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"), document.documentElement.classList.add("q-document--prevent-scroll"), document.qScrollPrevented = !0, i.is.ios && (n ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", _t, d.passiveCapture), window.visualViewport.addEventListener("scroll", _t, d.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", gt, d.passiveCapture));
322
+ } else i.is.ios && (n ? (window.visualViewport.removeEventListener("resize", _t, d.passiveCapture), window.visualViewport.removeEventListener("scroll", _t, d.passiveCapture)) : window.removeEventListener("scroll", gt, d.passiveCapture)), document.documentElement.classList.remove("q-document--prevent-scroll"), t.classList.remove("q-body--force-scrollbar-x", "q-body--force-scrollbar-y"), document.qScrollPrevented = !1, t.style.left = ft, t.style.top = pt, window.location.pathname === mt && window.scrollTo(ct, lt), ut = void 0;
323
+ }
324
+ function yt(e) {
325
+ let t = "add";
326
+ if (e === !0) {
327
+ if (st++, ht !== null) {
328
+ clearTimeout(ht), ht = null;
329
+ return;
330
+ }
331
+ if (st > 1) return;
332
+ } else {
333
+ if (st === 0 || (st--, st > 0)) return;
334
+ if (t = "remove", i.is.ios && i.is.nativeMobile) {
335
+ ht !== null && clearTimeout(ht), ht = setTimeout(() => {
336
+ vt(t), ht = null;
337
+ }, 100);
338
+ return;
339
+ }
340
+ }
341
+ vt(t);
342
+ }
343
+ //#endregion
344
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-prevent-scroll/use-prevent-scroll.js
345
+ function bt() {
346
+ let e;
347
+ return { preventBodyScroll(t) {
348
+ t !== e && (e !== void 0 || t) && (e = t, yt(t));
349
+ } };
350
+ }
351
+ //#endregion
352
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/escape-key.js
353
+ var xt = [], St;
354
+ function Ct(e) {
355
+ e.keyCode === 27 && (St = !0);
356
+ }
357
+ function wt() {
358
+ St &&= !1;
359
+ }
360
+ function Tt(e) {
361
+ St && p(e, 27) && (St = !1, xt.at(-1)(e));
362
+ }
363
+ function Et(e) {
364
+ window[e]("keydown", Ct), window[e]("blur", wt), window[e]("keyup", Tt), St = !1;
365
+ }
366
+ function Dt(e) {
367
+ i.is.desktop && (xt.push(e), xt.length === 1 && Et("addEventListener"));
368
+ }
369
+ function Ot(e) {
370
+ let t = xt.indexOf(e);
371
+ t !== -1 && (xt.splice(t, 1), xt.length === 0 && Et("removeEventListener"));
372
+ }
373
+ //#endregion
374
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.focus/focusout.js
375
+ var kt = [];
376
+ function At(e) {
377
+ kt.at(-1)(e);
378
+ }
379
+ function jt(e) {
380
+ i.is.desktop && (kt.push(e), kt.length === 1 && document.body.addEventListener("focusin", At));
381
+ }
382
+ function Mt(e) {
383
+ let t = kt.indexOf(e);
384
+ t !== -1 && (kt.splice(t, 1), kt.length === 0 && document.body.removeEventListener("focusin", At));
385
+ }
386
+ //#endregion
387
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/dialog/QDialog.js
388
+ var Nt = 0, Pt = {
389
+ standard: "fixed-full flex-center",
390
+ top: "fixed-top justify-center",
391
+ bottom: "fixed-bottom justify-center",
392
+ right: "fixed-right items-center",
393
+ left: "fixed-left items-center"
394
+ }, Ft = {
395
+ standard: ["scale", "scale"],
396
+ top: ["slide-down", "slide-up"],
397
+ bottom: ["slide-up", "slide-down"],
398
+ right: ["slide-left", "slide-right"],
399
+ left: ["slide-right", "slide-left"]
400
+ }, It = l({
401
+ name: "QDialog",
402
+ inheritAttrs: !1,
403
+ props: {
404
+ ...Re,
405
+ ...Ve,
406
+ transitionShow: String,
407
+ transitionHide: String,
408
+ persistent: Boolean,
409
+ autoClose: Boolean,
410
+ allowFocusOutside: Boolean,
411
+ noEscDismiss: Boolean,
412
+ noBackdropDismiss: Boolean,
413
+ noRouteDismiss: Boolean,
414
+ noRefocus: Boolean,
415
+ noFocus: Boolean,
416
+ noShake: Boolean,
417
+ seamless: Boolean,
418
+ maximized: Boolean,
419
+ fullWidth: Boolean,
420
+ fullHeight: Boolean,
421
+ square: Boolean,
422
+ backdropFilter: String,
423
+ position: {
424
+ type: String,
425
+ default: "standard",
426
+ validator: (e) => [
427
+ "standard",
428
+ "top",
429
+ "bottom",
430
+ "left",
431
+ "right"
432
+ ].includes(e)
433
+ }
434
+ },
435
+ emits: [
436
+ ...ze,
437
+ "shake",
438
+ "click",
439
+ "escapeKey"
440
+ ],
441
+ setup(e, { slots: t, emit: n, attrs: r }) {
442
+ let i = U(), a = Y(null), o = Y(!1), s = Y(!1), c = null, l = null, u = !1, d = !1, f = z(() => !e.persistent && !e.noRouteDismiss && !e.seamless), { preventBodyScroll: p } = bt(), { registerTimeout: m } = Ie(), { registerTick: h, removeTick: g } = Le(), { transitionProps: _, transitionStyle: v } = He(e, () => Ft[e.position][0], () => Ft[e.position][1]), y = z(() => v.value + (e.backdropFilter === void 0 ? "" : `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)), { showPortal: x, hidePortal: S, portalIsAccessible: C, renderPortal: w } = $e(i, a, ae, "dialog"), { hide: T } = Be({
443
+ showing: o,
444
+ hideOnRouteChange: f,
445
+ handleShow: ne,
446
+ handleHide: A,
447
+ handleRouteChange: M,
448
+ processOnMount: !0
449
+ }), { addToHistory: E, removeFromHistory: ee } = Fe(o, T, f), te = z(() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Pt[e.position]}` + (s.value ? " q-dialog__inner--animating" : "") + (e.fullWidth ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight ? " q-dialog__inner--fullheight" : "") + (e.square ? " q-dialog__inner--square" : "")), D = z(() => o.value && !e.seamless), O = z(() => e.autoClose ? { onClick: L } : {}), k = z(() => [`q-dialog fullscreen no-pointer-events q-dialog--${D.value ? "modal" : "seamless"}`, r.class]);
450
+ Z(() => e.maximized, (e) => {
451
+ o.value && re(e);
452
+ }), Z(D, (e) => {
453
+ p(e), e ? (jt(R), Dt(F)) : (Mt(R), Ot(F));
454
+ });
455
+ function ne(t) {
456
+ E(), l = !e.noRefocus && document.activeElement !== null ? document.activeElement : null, re(e.maximized), x(), s.value = !0, e.noFocus ? g() : (document.activeElement?.blur(), h(N)), m(() => {
457
+ if (i.proxy.$q.platform.is.ios) {
458
+ if (!e.seamless && document.activeElement) {
459
+ let { top: e, bottom: t } = document.activeElement.getBoundingClientRect(), { innerHeight: n } = window, r = window.visualViewport === void 0 ? n : window.visualViewport.height;
460
+ 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();
461
+ }
462
+ d = !0, a.value.click(), d = !1;
463
+ }
464
+ x(!0), s.value = !1, n("show", t);
465
+ }, e.transitionDuration);
466
+ }
467
+ function A(t) {
468
+ if (g(), ee(), I(!0), s.value = !0, S(), l !== null) {
469
+ let e = (t?.type.indexOf("key") === 0 ? l.closest("[tabindex]:not([tabindex^=\"-\"])") : void 0) || l;
470
+ l = null, Ye(() => {
471
+ e.isConnected && e.focus();
472
+ });
473
+ }
474
+ m(() => {
475
+ S(!0), s.value = !1, n("hide", t);
476
+ }, e.transitionDuration);
477
+ }
478
+ function M() {
479
+ l = null;
480
+ }
481
+ function N(e) {
482
+ Ye(() => {
483
+ let t = a.value;
484
+ if (t !== null) {
485
+ if (e !== void 0) {
486
+ let n = t.querySelector(e);
487
+ if (n !== null) {
488
+ n.focus({ preventScroll: !0 });
489
+ return;
490
+ }
491
+ }
492
+ t.contains(document.activeElement) || (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 }));
493
+ }
494
+ });
495
+ }
496
+ function P(e) {
497
+ e && typeof e.focus == "function" ? e.focus({ preventScroll: !0 }) : N(), n("shake");
498
+ let t = a.value;
499
+ t !== null && (t.classList.remove("q-animate--scale"), t.classList.add("q-animate--scale"), c !== null && clearTimeout(c), c = setTimeout(() => {
500
+ c = null, a.value !== null && (t.classList.remove("q-animate--scale"), N());
501
+ }, 170));
502
+ }
503
+ function F() {
504
+ e.seamless || (e.persistent || e.noEscDismiss ? !e.maximized && !e.noShake && P() : (n("escapeKey"), T()));
505
+ }
506
+ function I(t) {
507
+ c !== null && (clearTimeout(c), c = null), (t || o.value) && (re(!1), e.seamless || (p(!1), Mt(R), Ot(F))), t || (l = null);
508
+ }
509
+ function re(e) {
510
+ e ? u ||= (Nt < 1 && document.body.classList.add("q-body--dialog"), Nt++, !0) : u &&= (Nt < 2 && document.body.classList.remove("q-body--dialog"), Nt--, !1);
511
+ }
512
+ function L(e) {
513
+ d || (T(e), n("click", e));
514
+ }
515
+ function ie(t) {
516
+ !e.persistent && !e.noBackdropDismiss ? T(t) : e.noShake || P();
517
+ }
518
+ function R(t) {
519
+ !e.allowFocusOutside && C.value && !b(a.value, t.target) && N("[tabindex]:not([tabindex=\"-1\"])");
520
+ }
521
+ Object.assign(i.proxy, {
522
+ focus: N,
523
+ shake: P,
524
+ __updateRefocusTarget(e) {
525
+ l = e || null;
526
+ }
527
+ }), K(I);
528
+ function ae() {
529
+ return W("div", {
530
+ role: "dialog",
531
+ "aria-modal": D.value ? "true" : "false",
532
+ ...r,
533
+ class: k.value
534
+ }, [W(se, {
535
+ name: "q-transition--fade",
536
+ appear: !0
537
+ }, () => D.value ? W("div", {
538
+ class: "q-dialog__backdrop fixed-full",
539
+ style: y.value,
540
+ "aria-hidden": "true",
541
+ onClick: ie
542
+ }) : null), W(se, _.value, () => o.value ? W("div", {
543
+ ref: a,
544
+ class: te.value,
545
+ style: v.value,
546
+ tabindex: -1,
547
+ ...O.value
548
+ }, j(t.default)) : null)]);
549
+ }
550
+ return w;
551
+ }
552
+ }), Lt = () => !0;
553
+ function Rt(e) {
554
+ let t = {};
555
+ return e.forEach((e) => {
556
+ t[e] = Lt;
557
+ }), t;
558
+ }
559
+ //#endregion
560
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-dialog-plugin-component/use-dialog-plugin-component.js
561
+ function zt() {
562
+ let { emit: e, proxy: t } = U(), n = Y(null);
563
+ function r() {
564
+ n.value.show();
565
+ }
566
+ function i() {
567
+ n.value.hide();
568
+ }
569
+ function a(t) {
570
+ e("ok", t), i();
571
+ }
572
+ function o() {
573
+ e("hide");
574
+ }
575
+ return Object.assign(t, {
576
+ show: r,
577
+ hide: i
578
+ }), {
579
+ dialogRef: n,
580
+ onDialogHide: o,
581
+ onDialogOK: a,
582
+ onDialogCancel: i
583
+ };
584
+ }
585
+ var Bt = ["ok", "hide"];
586
+ zt.emits = Bt, zt.emitsObject = Rt(Bt);
587
+ //#endregion
588
+ //#region lib/components/dialogs/VnConfirm.vue?vue&type=i18n&index=0&lang.i18n
589
+ function Vt(e) {
590
+ let t = e;
591
+ t.__i18n = t.__i18n || [], t.__i18n.push({
592
+ locale: "",
593
+ resource: { es: {
594
+ Confirm: {
595
+ t: 0,
596
+ b: {
597
+ t: 2,
598
+ i: [{ t: 3 }],
599
+ s: "Confirmar"
600
+ }
601
+ },
602
+ "Are you sure you want to continue?": {
603
+ t: 0,
604
+ b: {
605
+ t: 2,
606
+ i: [{ t: 3 }],
607
+ s: "¿Seguro que quieres continuar?"
608
+ }
609
+ }
610
+ } }
611
+ });
612
+ }
613
+ //#endregion
614
+ //#region \0plugin-vue:export-helper
615
+ var Ht = (e, t) => {
616
+ let n = e.__vccOpts || e;
617
+ for (let [e, r] of t) n[e] = r;
618
+ return n;
619
+ }, Ut = { class: "text-h6" }, Wt = ["innerHTML"], Gt = {
620
+ __name: "VnConfirm",
621
+ props: {
622
+ icon: {
623
+ type: String,
624
+ default: null
625
+ },
626
+ title: {
627
+ type: String,
628
+ default: null
629
+ },
630
+ message: {
631
+ type: [String, Boolean],
632
+ default: null
633
+ },
634
+ data: {
635
+ type: Object,
636
+ required: !1,
637
+ default: null
638
+ },
639
+ promise: {
640
+ type: Function,
641
+ required: !1,
642
+ default: null
643
+ },
644
+ persistent: {
645
+ type: Boolean,
646
+ default: !1
647
+ },
648
+ closable: {
649
+ type: Boolean,
650
+ default: !0
651
+ },
652
+ cardClass: {
653
+ type: String,
654
+ default: null
655
+ }
656
+ },
657
+ emits: [
658
+ "confirm",
659
+ "cancel",
660
+ ...zt.emits
661
+ ],
662
+ setup(e, { expose: t, emit: n }) {
663
+ let { t: r } = De(), i = e, a = n;
664
+ t({
665
+ show: () => s.value.show(),
666
+ hide: () => s.value.hide()
667
+ });
668
+ let { dialogRef: s, onDialogHide: c, onDialogOK: l, onDialogCancel: u } = zt(), d = i.title || r("Confirm"), f = i.message || i.message !== !1 && r("Are you sure you want to continue?"), p = Y(!1);
669
+ async function h() {
670
+ if (p.value = !0, i.promise) try {
671
+ await i.promise(i.data);
672
+ } finally {
673
+ p.value = !1;
674
+ }
675
+ l(i.data);
676
+ }
677
+ function g() {
678
+ a("cancel"), u();
679
+ }
680
+ return (t, n) => (J(), B(It, {
681
+ ref_key: "dialogRef",
682
+ ref: s,
683
+ persistent: e.persistent,
684
+ onHide: X(c)
685
+ }, {
686
+ default: Q(() => [H(Pe, { class: he(["q-pa-sm", e.cardClass]) }, {
687
+ default: Q(() => [
688
+ H(Ae, { class: "row items-center q-pb-none" }, {
689
+ default: Q(() => [
690
+ e.icon ? (J(), B(o, {
691
+ key: 0,
692
+ icon: e.icon,
693
+ color: "primary",
694
+ "text-color": "white",
695
+ size: "xl"
696
+ }, null, 8, ["icon"])) : V("", !0),
697
+ le("span", Ut, Ce(X(d)), 1),
698
+ H(ke),
699
+ e.closable ? (J(), B(m, {
700
+ key: 1,
701
+ icon: "close",
702
+ disable: p.value,
703
+ flat: "",
704
+ round: "",
705
+ dense: "",
706
+ onClick: n[0] ||= (e) => g()
707
+ }, null, 8, ["disable"])) : V("", !0)
708
+ ]),
709
+ _: 1
710
+ }),
711
+ H(Ae, {
712
+ class: "q-pb-none",
713
+ "data-cy": "VnConfirm_message"
714
+ }, {
715
+ default: Q(() => [X(f) === !1 ? V("", !0) : (J(), ce("span", {
716
+ key: 0,
717
+ innerHTML: X(f)
718
+ }, null, 8, Wt))]),
719
+ _: 1
720
+ }),
721
+ H(Ae, { class: "row items-center q-pt-none" }, {
722
+ default: Q(() => [Se(t.$slots, "custom-html", {}, void 0, !0)]),
723
+ _: 3
724
+ }),
725
+ t.$slots.actions ? (J(), B(je, {
726
+ key: 0,
727
+ align: "right"
728
+ }, {
729
+ default: Q(() => [Se(t.$slots, "actions", { actions: {
730
+ confirm: h,
731
+ cancel: g
732
+ } }, void 0, !0)]),
733
+ _: 3
734
+ })) : (J(), B(je, {
735
+ key: 1,
736
+ align: "right"
737
+ }, {
738
+ default: Q(() => [H(m, {
739
+ label: X(r)("globals.cancel"),
740
+ color: "primary",
741
+ disable: p.value,
742
+ flat: "",
743
+ onClick: n[1] ||= (e) => g(),
744
+ "data-cy": "VnConfirm_cancel"
745
+ }, null, 8, ["label", "disable"]), H(m, {
746
+ label: X(r)("globals.confirm"),
747
+ title: X(r)("globals.confirm"),
748
+ color: "primary",
749
+ loading: p.value,
750
+ onClick: n[2] ||= (e) => h(),
751
+ unelevated: "",
752
+ autofocus: "",
753
+ "data-cy": "VnConfirm_confirm"
754
+ }, null, 8, [
755
+ "label",
756
+ "title",
757
+ "loading"
758
+ ])]),
759
+ _: 1
760
+ }))
761
+ ]),
762
+ _: 3
763
+ }, 8, ["class"])]),
764
+ _: 3
765
+ }, 8, ["persistent", "onHide"]));
766
+ }
767
+ };
768
+ typeof Vt == "function" && Vt(Gt);
769
+ var Kt = /*#__PURE__*/ Ht(Gt, [["__scopeId", "data-v-f01eb4e4"]]), qt = [
770
+ "text",
771
+ "rect",
772
+ "circle",
773
+ "QBtn",
774
+ "QBadge",
775
+ "QChip",
776
+ "QToolbar",
777
+ "QCheckbox",
778
+ "QRadio",
779
+ "QToggle",
780
+ "QSlider",
781
+ "QRange",
782
+ "QInput",
783
+ "QAvatar"
784
+ ], Jt = [
785
+ "wave",
786
+ "pulse",
787
+ "pulse-x",
788
+ "pulse-y",
789
+ "fade",
790
+ "blink",
791
+ "none"
792
+ ], Yt = l({
793
+ name: "QSkeleton",
794
+ props: {
795
+ ...Me,
796
+ tag: {
797
+ type: String,
798
+ default: "div"
799
+ },
800
+ type: {
801
+ type: String,
802
+ validator: (e) => qt.includes(e),
803
+ default: "rect"
804
+ },
805
+ animation: {
806
+ type: String,
807
+ validator: (e) => Jt.includes(e),
808
+ default: "wave"
809
+ },
810
+ animationSpeed: {
811
+ type: [String, Number],
812
+ default: 1500
813
+ },
814
+ square: Boolean,
815
+ bordered: Boolean,
816
+ size: String,
817
+ width: String,
818
+ height: String
819
+ },
820
+ setup(e, { slots: t }) {
821
+ let n = Ne(e, U().proxy.$q), r = z(() => {
822
+ let t = e.size === void 0 ? [e.width, e.height] : [e.size, e.size];
823
+ return {
824
+ "--q-skeleton-speed": `${e.animationSpeed}ms`,
825
+ width: t[0],
826
+ height: t[1]
827
+ };
828
+ }), i = z(() => `q-skeleton q-skeleton--${n.value ? "dark" : "light"} q-skeleton--type-${e.type}` + (e.animation === "none" ? "" : ` q-skeleton--anim q-skeleton--anim-${e.animation}`) + (e.square ? " q-skeleton--square" : "") + (e.bordered ? " q-skeleton--bordered" : ""));
829
+ return () => W(e.tag, {
830
+ class: i.value,
831
+ style: r.value
832
+ }, j(t.default));
833
+ }
834
+ }), Xt = {}, Zt = { class: "row q-gutter-md q-mb-md" }, Qt = { class: "row q-gutter-md q-mb-md" }, $t = { class: "row q-gutter-md q-mb-md" };
835
+ function en(e, t) {
836
+ return J(), ce(ae, null, [
837
+ le("div", Zt, [H(Yt, {
838
+ type: "QInput",
839
+ class: "col",
840
+ square: ""
841
+ }), H(Yt, {
842
+ type: "QInput",
843
+ class: "col",
844
+ square: ""
845
+ })]),
846
+ le("div", Qt, [H(Yt, {
847
+ type: "QInput",
848
+ class: "col",
849
+ square: ""
850
+ }), H(Yt, {
851
+ type: "QInput",
852
+ class: "col",
853
+ square: ""
854
+ })]),
855
+ le("div", $t, [H(Yt, {
856
+ type: "QInput",
857
+ class: "col",
858
+ square: ""
859
+ }), H(Yt, {
860
+ type: "QInput",
861
+ class: "col",
862
+ square: ""
863
+ })])
864
+ ], 64);
865
+ }
866
+ var tn = /*#__PURE__*/ Ht(Xt, [["render", en]]), nn = /*#__PURE__*/ Ht({
867
+ __name: "VnSpinner",
868
+ props: {
869
+ size: {
870
+ type: String,
871
+ default: "40px"
872
+ },
873
+ noTransition: {
874
+ type: Boolean,
875
+ default: !1
876
+ }
877
+ },
878
+ setup(e) {
879
+ let t = {
880
+ xs: "16px",
881
+ sm: "24px",
882
+ md: "40px",
883
+ lg: "56px",
884
+ xl: "72px"
885
+ };
886
+ return (n, r) => e.noTransition ? (J(), ce("div", {
887
+ key: 1,
888
+ class: "vn-spinner",
889
+ style: ge({
890
+ width: t[e.size] || e.size,
891
+ height: t[e.size] || e.size
892
+ })
893
+ }, null, 4)) : (J(), B(se, {
894
+ key: 0,
895
+ name: "vn-spinner-fade",
896
+ appear: ""
897
+ }, {
898
+ default: Q(() => [le("div", {
899
+ class: "vn-spinner",
900
+ style: ge({
901
+ width: t[e.size] || e.size,
902
+ height: t[e.size] || e.size
903
+ })
904
+ }, null, 4)]),
905
+ _: 1
906
+ }));
907
+ }
908
+ }, [["__scopeId", "data-v-e5edebae"]]);
909
+ //#endregion
910
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.selection/selection.js
911
+ function rn() {
912
+ if (window.getSelection !== void 0) {
913
+ let e = window.getSelection();
914
+ e.empty === void 0 ? e.removeAllRanges !== void 0 && (e.removeAllRanges(), v.is.mobile || e.addRange(document.createRange())) : e.empty();
915
+ } else document.selection !== void 0 && document.selection.empty();
916
+ }
917
+ //#endregion
918
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js
919
+ var an = {
920
+ target: {
921
+ type: [
922
+ Boolean,
923
+ String,
924
+ Element
925
+ ],
926
+ default: !0
927
+ },
928
+ noParentEvent: Boolean
929
+ };
930
+ ({ ...an });
931
+ function on({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
932
+ let { props: r, proxy: i, emit: o } = U(), s = Y(null), l = null;
933
+ function u(e) {
934
+ return s.value === null ? !1 : e === void 0 || e.touches === void 0 || e.touches.length <= 1;
935
+ }
936
+ let d = {};
937
+ n === void 0 && (Object.assign(d, {
938
+ hide(e) {
939
+ i.hide(e);
940
+ },
941
+ toggle(e) {
942
+ i.toggle(e), e.qAnchorHandled = !0;
943
+ },
944
+ toggleKey(e) {
945
+ p(e, 13) && d.toggle(e);
946
+ },
947
+ contextClick(e) {
948
+ i.hide(e), g(e), G(() => {
949
+ i.show(e), e.qAnchorHandled = !0;
950
+ });
951
+ },
952
+ prevent: g,
953
+ mobileTouch(e) {
954
+ if (d.mobileCleanup(e), !u(e)) return;
955
+ i.hide(e), s.value.classList.add("non-selectable");
956
+ let t = e.target;
957
+ a(d, "anchor", [
958
+ [
959
+ t,
960
+ "touchmove",
961
+ "mobileCleanup",
962
+ "passive"
963
+ ],
964
+ [
965
+ t,
966
+ "touchend",
967
+ "mobileCleanup",
968
+ "passive"
969
+ ],
970
+ [
971
+ t,
972
+ "touchcancel",
973
+ "mobileCleanup",
974
+ "passive"
975
+ ],
976
+ [
977
+ s.value,
978
+ "contextmenu",
979
+ "prevent",
980
+ "notPassive"
981
+ ]
982
+ ]), l = setTimeout(() => {
983
+ l = null, i.show(e), e.qAnchorHandled = !0;
984
+ }, 300);
985
+ },
986
+ mobileCleanup(t) {
987
+ s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), e.value && t !== void 0 && rn();
988
+ }
989
+ }), n = function(e = r.contextMenu) {
990
+ if (r.noParentEvent || s.value === null) return;
991
+ let t = e ? i.$q.platform.is.mobile ? [[
992
+ s.value,
993
+ "touchstart",
994
+ "mobileTouch",
995
+ "passive"
996
+ ]] : [[
997
+ s.value,
998
+ "mousedown",
999
+ "hide",
1000
+ "passive"
1001
+ ], [
1002
+ s.value,
1003
+ "contextmenu",
1004
+ "contextClick",
1005
+ "notPassive"
1006
+ ]] : [[
1007
+ s.value,
1008
+ "click",
1009
+ "toggle",
1010
+ "passive"
1011
+ ], [
1012
+ s.value,
1013
+ "keyup",
1014
+ "toggleKey",
1015
+ "passive"
1016
+ ]];
1017
+ a(d, "anchor", t);
1018
+ });
1019
+ function f() {
1020
+ c(d, "anchor");
1021
+ }
1022
+ function m(e) {
1023
+ for (s.value = e; s.value.classList.contains("q-anchor--skip");) s.value = s.value.parentNode;
1024
+ n();
1025
+ }
1026
+ function h() {
1027
+ if (r.target === !1 || r.target === "" || i.$el.parentNode === null) s.value = null;
1028
+ else if (r.target === !0) m(i.$el.parentNode);
1029
+ else {
1030
+ let e = r.target;
1031
+ if (typeof r.target == "string") try {
1032
+ e = document.querySelector(r.target);
1033
+ } catch {
1034
+ e = void 0;
1035
+ }
1036
+ e == null ? (s.value = null, console.error(`Anchor: target "${r.target}" not found`)) : (s.value = e.$el || e, n());
1037
+ }
1038
+ }
1039
+ return Z(() => r.contextMenu, (e) => {
1040
+ s.value !== null && (f(), n(e));
1041
+ }), Z(() => r.target, () => {
1042
+ s.value !== null && f(), h();
1043
+ }), Z(() => r.noParentEvent, (e) => {
1044
+ s.value !== null && (e ? f() : n());
1045
+ }), q(() => {
1046
+ h(), !t && r.modelValue && s.value === null && o("update:modelValue", !1);
1047
+ }), K(() => {
1048
+ l !== null && clearTimeout(l), f();
1049
+ }), {
1050
+ anchorEl: s,
1051
+ canShow: u,
1052
+ anchorEvents: d
1053
+ };
1054
+ }
1055
+ //#endregion
1056
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-scroll-target/use-scroll-target.js
1057
+ function sn(e, t) {
1058
+ let n = Y(null), r;
1059
+ function i(e, t) {
1060
+ let n = `${t === void 0 ? "remove" : "add"}EventListener`, i = t === void 0 ? r : t;
1061
+ e !== window && e[n]("scroll", i, d.passive), window[n]("scroll", i, d.passive), r = t;
1062
+ }
1063
+ function a() {
1064
+ n.value !== null && (i(n.value), n.value = null);
1065
+ }
1066
+ let o = Z(() => e.noParentEvent, () => {
1067
+ n.value !== null && (a(), t());
1068
+ });
1069
+ return K(o), {
1070
+ localScrollTarget: n,
1071
+ unconfigureScrollTarget: a,
1072
+ changeScrollEvent: i
1073
+ };
1074
+ }
1075
+ //#endregion
1076
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/uid/uid.js
1077
+ function cn() {
1078
+ if (typeof crypto > "u") return () => {
1079
+ throw Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.");
1080
+ };
1081
+ if (crypto.randomUUID) return () => crypto.randomUUID();
1082
+ let e = Array.from({ length: 256 }, (e, t) => (t + 256).toString(16).slice(1)), t, n;
1083
+ return () => {
1084
+ (t === void 0 || n + 16 > 4096) && (n = 0, t = /* @__PURE__ */ new Uint8Array(4096), crypto.getRandomValues(t));
1085
+ let r = n;
1086
+ 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]];
1087
+ };
1088
+ }
1089
+ var ln = cn();
1090
+ //#endregion
1091
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-id/use-id.js
1092
+ function un(e) {
1093
+ return e ?? null;
1094
+ }
1095
+ function dn(e, t) {
1096
+ return e ?? (t ? `f_${ln()}` : null);
1097
+ }
1098
+ function fn({ getValue: e, required: t = !0 } = {}) {
1099
+ if (r.value) {
1100
+ let n = Y(e === void 0 ? null : un(e()));
1101
+ return t && n.value === null && q(() => {
1102
+ n.value = `f_${ln()}`;
1103
+ }), e !== void 0 && Z(e, (e) => {
1104
+ n.value = dn(e, t);
1105
+ }), n;
1106
+ }
1107
+ return e === void 0 ? Y(`f_${ln()}`) : z(() => dn(e(), t));
1108
+ }
1109
+ //#endregion
1110
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.click-outside/click-outside.js
1111
+ var pn = null, { notPassiveCapture: mn } = d, hn = [];
1112
+ function gn(e) {
1113
+ pn !== null && (clearTimeout(pn), pn = null);
1114
+ let t = e.target;
1115
+ if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events")) return;
1116
+ let n = null, r = !1;
1117
+ for (let e = Ue.length - 1; e >= 0; e--) {
1118
+ let t = Ue[e].$, i = t.type.name;
1119
+ if (i !== "QTooltip") {
1120
+ if (i === "QDialog") {
1121
+ if (t.props.seamless !== !0) {
1122
+ if (r === !1) return;
1123
+ n = new Set(Ue.slice(e + 1).map((e) => e.contentEl));
1124
+ break;
1125
+ }
1126
+ continue;
1127
+ }
1128
+ r = !0;
1129
+ }
1130
+ }
1131
+ for (let r = hn.length - 1; r >= 0; r--) {
1132
+ let i = hn[r];
1133
+ if (n !== null && !n.has(i.innerRef.value)) return;
1134
+ 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);
1135
+ else return;
1136
+ }
1137
+ }
1138
+ function _n(e) {
1139
+ hn.push(e), hn.length === 1 && (document.addEventListener("mousedown", gn, mn), document.addEventListener("touchstart", gn, mn));
1140
+ }
1141
+ function vn(e) {
1142
+ let t = hn.indexOf(e);
1143
+ t !== -1 && (hn.splice(t, 1), hn.length === 0 && (pn !== null && (clearTimeout(pn), pn = null), document.removeEventListener("mousedown", gn, mn), document.removeEventListener("touchstart", gn, mn)));
1144
+ }
1145
+ //#endregion
1146
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.position-engine/position-engine.js
1147
+ var yn, bn, xn = [
1148
+ "top",
1149
+ "center",
1150
+ "bottom"
1151
+ ], Sn = [
1152
+ "left",
1153
+ "middle",
1154
+ "right",
1155
+ "start",
1156
+ "end"
1157
+ ];
1158
+ function Cn(e) {
1159
+ let t = e.split(" ");
1160
+ return t.length === 2 ? xn.includes(t[0]) ? Sn.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;
1161
+ }
1162
+ function wn(e) {
1163
+ return !e || e.length === 2 && typeof e[0] == "number" && typeof e[1] == "number";
1164
+ }
1165
+ var Tn = {
1166
+ "start#ltr": "left",
1167
+ "start#rtl": "right",
1168
+ "end#ltr": "right",
1169
+ "end#rtl": "left"
1170
+ };
1171
+ [
1172
+ "left",
1173
+ "middle",
1174
+ "right"
1175
+ ].forEach((e) => {
1176
+ Tn[`${e}#ltr`] = e, Tn[`${e}#rtl`] = e;
1177
+ });
1178
+ function En(e, t) {
1179
+ let n = e.split(" ");
1180
+ return {
1181
+ vertical: n[0],
1182
+ horizontal: Tn[`${n[1]}#${t ? "rtl" : "ltr"}`]
1183
+ };
1184
+ }
1185
+ function Dn(e, t) {
1186
+ let { top: n, left: r, right: i, bottom: a, width: o, height: s } = e.getBoundingClientRect();
1187
+ return t !== void 0 && (n -= t[1], r -= t[0], a += t[1], i += t[0], o += t[0], s += t[1]), {
1188
+ top: n,
1189
+ bottom: a,
1190
+ height: s,
1191
+ left: r,
1192
+ right: i,
1193
+ width: o,
1194
+ middle: r + (i - r) / 2,
1195
+ center: n + (a - n) / 2
1196
+ };
1197
+ }
1198
+ function On(e, t, n) {
1199
+ let { top: r, left: i } = e.getBoundingClientRect();
1200
+ return r += t.top, i += t.left, n !== void 0 && (r += n[1], i += n[0]), {
1201
+ top: r,
1202
+ bottom: r + 1,
1203
+ height: 1,
1204
+ left: i,
1205
+ right: i + 1,
1206
+ width: 1,
1207
+ middle: i,
1208
+ center: r
1209
+ };
1210
+ }
1211
+ function kn(e, t) {
1212
+ return {
1213
+ top: 0,
1214
+ center: t / 2,
1215
+ bottom: t,
1216
+ left: 0,
1217
+ middle: e / 2,
1218
+ right: e
1219
+ };
1220
+ }
1221
+ function An(e, t, n, r) {
1222
+ return {
1223
+ top: e[n.vertical] - t[r.vertical],
1224
+ left: e[n.horizontal] - t[r.horizontal]
1225
+ };
1226
+ }
1227
+ function jn(e, t = 0) {
1228
+ if (e.targetEl === null || e.anchorEl === null || t > 5) return;
1229
+ if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
1230
+ setTimeout(() => {
1231
+ jn(e, t + 1);
1232
+ }, 10);
1233
+ return;
1234
+ }
1235
+ let { targetEl: n, offset: r, anchorEl: a, anchorOrigin: o, selfOrigin: s, absoluteOffset: c, fit: l, cover: u, maxHeight: d, maxWidth: f } = e;
1236
+ if (i.is.ios && window.visualViewport !== void 0) {
1237
+ let e = document.body.style, { offsetLeft: t, offsetTop: n } = window.visualViewport;
1238
+ t !== yn && (e.setProperty("--q-pe-left", t + "px"), yn = t), n !== bn && (e.setProperty("--q-pe-top", n + "px"), bn = n);
1239
+ }
1240
+ let { scrollLeft: p, scrollTop: m } = n, h = c === void 0 ? Dn(a, u ? [0, 0] : r) : On(a, c, r);
1241
+ Object.assign(n.style, {
1242
+ top: 0,
1243
+ left: 0,
1244
+ minWidth: null,
1245
+ minHeight: null,
1246
+ maxWidth: f,
1247
+ maxHeight: d,
1248
+ visibility: "visible"
1249
+ });
1250
+ let { offsetWidth: g, offsetHeight: _ } = n, { elWidth: v, elHeight: y } = l || u ? {
1251
+ elWidth: Math.max(h.width, g),
1252
+ elHeight: u ? Math.max(h.height, _) : _
1253
+ } : {
1254
+ elWidth: g,
1255
+ elHeight: _
1256
+ }, b = {
1257
+ maxWidth: f,
1258
+ maxHeight: d
1259
+ };
1260
+ (l || u) && (b.minWidth = h.width + "px", u && (b.minHeight = h.height + "px")), Object.assign(n.style, b);
1261
+ let x = kn(v, y), S = An(h, x, o, s);
1262
+ if (c === void 0 || r === void 0) Mn(S, h, x, o, s);
1263
+ else {
1264
+ let { top: e, left: t } = S;
1265
+ Mn(S, h, x, o, s);
1266
+ let n = !1;
1267
+ if (S.top !== e) {
1268
+ n = !0;
1269
+ let e = 2 * r[1];
1270
+ h.center = h.top -= e, h.bottom -= e + 2;
1271
+ }
1272
+ if (S.left !== t) {
1273
+ n = !0;
1274
+ let e = 2 * r[0];
1275
+ h.middle = h.left -= e, h.right -= e + 2;
1276
+ }
1277
+ n && (S = An(h, x, o, s), Mn(S, h, x, o, s));
1278
+ }
1279
+ b = {
1280
+ top: S.top + "px",
1281
+ left: S.left + "px"
1282
+ }, S.maxHeight !== void 0 && (b.maxHeight = S.maxHeight + "px", h.height > S.maxHeight && (b.minHeight = b.maxHeight)), S.maxWidth !== void 0 && (b.maxWidth = S.maxWidth + "px", h.width > S.maxWidth && (b.minWidth = b.maxWidth)), Object.assign(n.style, b), n.scrollTop !== m && (n.scrollTop = m), n.scrollLeft !== p && (n.scrollLeft = p);
1283
+ }
1284
+ function Mn(e, t, n, r, i) {
1285
+ let a = n.bottom, o = n.right, s = ot(), c = window.innerHeight - s, l = document.body.clientWidth;
1286
+ if (e.top < 0 || e.top + a > c) {
1287
+ if (i.vertical === "center") e.top = t[r.vertical] > c / 2 ? Math.max(0, c - a) : 0, e.maxHeight = Math.min(a, c);
1288
+ else if (t[r.vertical] > c / 2) {
1289
+ let n = Math.min(c, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.bottom : t.top);
1290
+ e.maxHeight = Math.min(a, n), e.top = Math.max(0, n - a);
1291
+ } 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);
1292
+ }
1293
+ if (e.left < 0 || e.left + o > l) {
1294
+ if (e.maxWidth = Math.min(o, l), i.horizontal === "middle") e.left = t[r.horizontal] > l / 2 ? Math.max(0, l - o) : 0;
1295
+ else if (t[r.horizontal] > l / 2) {
1296
+ let n = Math.min(l, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.right : t.left);
1297
+ e.maxWidth = Math.min(o, n), e.left = Math.max(0, n - e.maxWidth);
1298
+ } 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);
1299
+ }
1300
+ }
1301
+ //#endregion
1302
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/tooltip/QTooltip.js
1303
+ var Nn = 0, Pn = l({
1304
+ name: "QTooltip",
1305
+ inheritAttrs: !1,
1306
+ props: {
1307
+ ...an,
1308
+ ...Re,
1309
+ ...Ve,
1310
+ maxHeight: {
1311
+ type: String,
1312
+ default: null
1313
+ },
1314
+ maxWidth: {
1315
+ type: String,
1316
+ default: null
1317
+ },
1318
+ transitionShow: {
1319
+ ...Ve.transitionShow,
1320
+ default: "jump-down"
1321
+ },
1322
+ transitionHide: {
1323
+ ...Ve.transitionHide,
1324
+ default: "jump-up"
1325
+ },
1326
+ anchor: {
1327
+ type: String,
1328
+ default: "bottom middle",
1329
+ validator: Cn
1330
+ },
1331
+ self: {
1332
+ type: String,
1333
+ default: "top middle",
1334
+ validator: Cn
1335
+ },
1336
+ offset: {
1337
+ type: Array,
1338
+ default: () => [14, 14],
1339
+ validator: wn
1340
+ },
1341
+ scrollTarget: et,
1342
+ delay: {
1343
+ type: Number,
1344
+ default: 0
1345
+ },
1346
+ hideDelay: {
1347
+ type: Number,
1348
+ default: 0
1349
+ },
1350
+ persistent: Boolean
1351
+ },
1352
+ emits: [...ze],
1353
+ setup(e, { slots: n, emit: r, attrs: i }) {
1354
+ let o, s, l, u = !1, d, f = U(), { proxy: { $q: p } } = f, m = Y(null), h = Y(!1), g = fn(), _ = z(() => i.id || g.value), v = z(() => En(e.anchor, p.lang.rtl)), y = z(() => En(e.self, p.lang.rtl)), b = z(() => !e.persistent), { registerTick: x, removeTick: S } = Le(), { registerTimeout: C } = Ie(), { transitionProps: w, transitionStyle: T } = He(e), { localScrollTarget: E, changeScrollEvent: ee, unconfigureScrollTarget: te } = sn(e, ue), { anchorEl: D, canShow: O, anchorEvents: k } = on({
1355
+ showing: h,
1356
+ configureAnchorEl: B
1357
+ }), { show: ne, hide: A } = Be({
1358
+ showing: h,
1359
+ canShow: O,
1360
+ handleShow: F,
1361
+ handleHide: I,
1362
+ hideOnRouteChange: b,
1363
+ processOnMount: !0
1364
+ });
1365
+ Object.assign(k, {
1366
+ delayShow: ie,
1367
+ delayHide: R,
1368
+ onFocusin: ae
1369
+ });
1370
+ let { showPortal: M, hidePortal: N, renderPortal: P } = $e(f, m, H, "tooltip");
1371
+ if (p.platform.is.mobile) {
1372
+ let n = {
1373
+ anchorEl: D,
1374
+ innerRef: m,
1375
+ onClickOutside(e) {
1376
+ return A(e), e.target.classList.contains("q-dialog__backdrop") && t(e), !0;
1377
+ }
1378
+ }, r = z(() => e.modelValue === null && !e.persistent && h.value);
1379
+ Z(r, (e) => {
1380
+ (e ? _n : vn)(n);
1381
+ }), K(() => {
1382
+ vn(n);
1383
+ });
1384
+ } else Z(() => (e.modelValue === null || e["onUpdate:modelValue"]) && h.value === !0 && e.persistent !== !0, (e) => {
1385
+ (e === !0 ? Dt : Ot)(oe);
1386
+ });
1387
+ function F(t) {
1388
+ M(), ce(), x(() => {
1389
+ if (s?.disconnect(), m.value === null) {
1390
+ s = void 0;
1391
+ return;
1392
+ }
1393
+ s = new MutationObserver(() => L()), s.observe(m.value, {
1394
+ attributes: !1,
1395
+ childList: !0,
1396
+ characterData: !0,
1397
+ subtree: !0
1398
+ }), L(), ue();
1399
+ }), o === void 0 && (o = Z(() => p.screen.width + "|" + p.screen.height + "|" + e.self + "|" + e.anchor + "|" + p.lang.rtl, L)), C(() => {
1400
+ M(!0), r("show", t);
1401
+ }, e.transitionDuration);
1402
+ }
1403
+ function I(t) {
1404
+ S(), N(), re(), C(() => {
1405
+ N(!0), r("hide", t);
1406
+ }, e.transitionDuration);
1407
+ }
1408
+ function re() {
1409
+ s !== void 0 && (s.disconnect(), s = void 0), o !== void 0 && (o(), o = void 0), te(), Ot(oe), c(k, "tooltipTemp"), le(), V(!1);
1410
+ }
1411
+ function L() {
1412
+ jn({
1413
+ targetEl: m.value,
1414
+ offset: e.offset,
1415
+ anchorEl: D.value,
1416
+ anchorOrigin: v.value,
1417
+ selfOrigin: y.value,
1418
+ maxHeight: e.maxHeight,
1419
+ maxWidth: e.maxWidth
1420
+ });
1421
+ }
1422
+ function ie(t) {
1423
+ if (p.platform.is.mobile) {
1424
+ l !== void 0 && (clearTimeout(l), l = void 0), rn(), V(!0);
1425
+ let e = D.value, t = [
1426
+ "touchmove",
1427
+ "touchcancel",
1428
+ "touchend",
1429
+ "click"
1430
+ ].map((t) => [
1431
+ e,
1432
+ t,
1433
+ "delayHide",
1434
+ "passiveCapture"
1435
+ ]);
1436
+ a(k, "tooltipTemp", t);
1437
+ }
1438
+ C(() => {
1439
+ ne(t);
1440
+ }, e.delay);
1441
+ }
1442
+ function R(t) {
1443
+ p.platform.is.mobile && (c(k, "tooltipTemp"), rn(), l = setTimeout(() => {
1444
+ l = void 0, V(!1);
1445
+ }, 10)), C(() => {
1446
+ A(t);
1447
+ }, e.hideDelay);
1448
+ }
1449
+ function ae(e) {
1450
+ let t = e.target;
1451
+ if (t) {
1452
+ try {
1453
+ if (t.matches(":focus-visible") === !1) return;
1454
+ } catch {}
1455
+ ie(e);
1456
+ }
1457
+ }
1458
+ function oe(e) {
1459
+ A(e);
1460
+ }
1461
+ function B() {
1462
+ if (e.noParentEvent || D.value === null) return;
1463
+ let t = p.platform.is.mobile ? [[
1464
+ D.value,
1465
+ "touchstart",
1466
+ "delayShow",
1467
+ "passive"
1468
+ ]] : [
1469
+ [
1470
+ D.value,
1471
+ "mouseenter",
1472
+ "delayShow",
1473
+ "passive"
1474
+ ],
1475
+ [
1476
+ D.value,
1477
+ "mouseleave",
1478
+ "delayHide",
1479
+ "passive"
1480
+ ],
1481
+ [
1482
+ D.value,
1483
+ "focusin",
1484
+ "onFocusin",
1485
+ "passive"
1486
+ ],
1487
+ [
1488
+ D.value,
1489
+ "focusout",
1490
+ "delayHide",
1491
+ "passive"
1492
+ ]
1493
+ ];
1494
+ a(k, "anchor", t);
1495
+ }
1496
+ function V(e) {
1497
+ u !== e && (u = e, Nn += e ? 1 : -1, document.body.classList.toggle("non-selectable", Nn > 0), !e && l !== void 0 && (clearTimeout(l), l = void 0));
1498
+ }
1499
+ function ce() {
1500
+ let e = D.value, t = _.value;
1501
+ if (e === null || t === void 0) return;
1502
+ let n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean);
1503
+ d = {
1504
+ el: e,
1505
+ id: t,
1506
+ added: !n.includes(t)
1507
+ }, d.added && (n.push(t), e.setAttribute("aria-describedby", n.join(" ")));
1508
+ }
1509
+ function le() {
1510
+ if (d?.added === !0) {
1511
+ let { el: e, id: t } = d, n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter((e) => e !== "" && e !== t);
1512
+ n.length === 0 ? e.removeAttribute("aria-describedby") : e.setAttribute("aria-describedby", n.join(" "));
1513
+ }
1514
+ d = void 0;
1515
+ }
1516
+ function ue() {
1517
+ if (D.value !== null || e.scrollTarget !== void 0) {
1518
+ E.value = nt(D.value, e.scrollTarget);
1519
+ let t = e.noParentEvent ? L : A;
1520
+ ee(E.value, t);
1521
+ }
1522
+ }
1523
+ function de() {
1524
+ return h.value ? W("div", {
1525
+ ...i,
1526
+ id: _.value,
1527
+ ref: m,
1528
+ class: ["q-tooltip q-tooltip--style q-position-engine no-pointer-events", i.class],
1529
+ style: [i.style, T.value],
1530
+ role: "tooltip"
1531
+ }, j(n.default)) : null;
1532
+ }
1533
+ function H() {
1534
+ return W(se, w.value, de);
1535
+ }
1536
+ return K(re), Object.assign(f.proxy, { updatePosition: L }), P;
1537
+ }
1538
+ }), Fn = /^on[A-Z]/;
1539
+ function In() {
1540
+ let e = U(), { attrs: t } = e, n = {
1541
+ listeners: Y({}),
1542
+ attributes: Y({})
1543
+ };
1544
+ function r() {
1545
+ let r = {}, i = {};
1546
+ for (let e in t) e !== "class" && e !== "style" && !Fn.test(e) && (r[e] = t[e]);
1547
+ for (let t in e.vnode.props) Fn.test(t) && (i[t] = e.vnode.props[t]);
1548
+ n.attributes.value = r, n.listeners.value = i;
1549
+ }
1550
+ return ve(r), r(), n;
1551
+ }
1552
+ //#endregion
1553
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/use-form-child.js
1554
+ function Ln({ validate: e, resetValidation: t, requiresQForm: n }) {
1555
+ let r = fe(I, !1);
1556
+ if (r !== !1) {
1557
+ let { props: n, proxy: i } = U();
1558
+ Object.assign(i, {
1559
+ validate: e,
1560
+ resetValidation: t
1561
+ }), Z(() => n.disable, (e) => {
1562
+ e ? (typeof t == "function" && t(), r.unbindComponent(i)) : r.bindComponent(i);
1563
+ }), q(() => {
1564
+ n.disable || r.bindComponent(i);
1565
+ }), K(() => {
1566
+ n.disable || r.unbindComponent(i);
1567
+ });
1568
+ } else n && console.error("Parent QForm not found on useFormChild()!");
1569
+ }
1570
+ //#endregion
1571
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/patterns/patterns.js
1572
+ var Rn = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, zn = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Bn = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Vn = /^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])\)$/, Hn = /^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+)?)\)$/, Un = /^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/, Wn = /^([0-1]?\d|2[0-3]):[0-5]\d$/, Gn = /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/, Kn = /^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/, qn = /^(([^<>()[\]\\.,;:\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,}))$/, Jn = {
1573
+ date: (e) => Un.test(e),
1574
+ time: (e) => Wn.test(e),
1575
+ fulltime: (e) => Gn.test(e),
1576
+ timeOrFulltime: (e) => Kn.test(e),
1577
+ email: (e) => qn.test(e),
1578
+ hexColor: (e) => Rn.test(e),
1579
+ hexaColor: (e) => zn.test(e),
1580
+ hexOrHexaColor: (e) => Bn.test(e),
1581
+ rgbColor: (e) => Vn.test(e),
1582
+ rgbaColor: (e) => Hn.test(e),
1583
+ rgbOrRgbaColor: (e) => Vn.test(e) || Hn.test(e),
1584
+ hexOrRgbColor: (e) => Rn.test(e) || Vn.test(e),
1585
+ hexaOrRgbaColor: (e) => zn.test(e) || Hn.test(e),
1586
+ anyColor: (e) => Bn.test(e) || Vn.test(e) || Hn.test(e)
1587
+ }, Yn = [
1588
+ !0,
1589
+ !1,
1590
+ "ondemand"
1591
+ ], Xn = {
1592
+ modelValue: {},
1593
+ error: {
1594
+ type: Boolean,
1595
+ default: null
1596
+ },
1597
+ errorMessage: String,
1598
+ noErrorIcon: Boolean,
1599
+ rules: Array,
1600
+ reactiveRules: Boolean,
1601
+ lazyRules: {
1602
+ type: [Boolean, String],
1603
+ default: !1,
1604
+ validator: (e) => Yn.includes(e)
1605
+ }
1606
+ };
1607
+ function Zn(e, t) {
1608
+ let { props: n, proxy: r } = U(), i = Y(!1), a = Y(null), o = Y(!1);
1609
+ Ln({
1610
+ validate: h,
1611
+ resetValidation: m
1612
+ });
1613
+ let s = 0, c, l = z(() => n.rules !== void 0 && n.rules !== null && n.rules.length !== 0), u = z(() => !n.disable && l.value && !t.value), d = z(() => n.error === !0 || i.value), f = z(() => typeof n.errorMessage == "string" && n.errorMessage.length !== 0 ? n.errorMessage : a.value);
1614
+ Z(() => n.modelValue, () => {
1615
+ o.value = !0, u.value && n.lazyRules === !1 && g();
1616
+ });
1617
+ function p() {
1618
+ n.lazyRules !== "ondemand" && u.value && o.value && g();
1619
+ }
1620
+ Z(() => n.reactiveRules, (e) => {
1621
+ e ? c === void 0 && (c = Z(() => n.rules, p, {
1622
+ immediate: !0,
1623
+ deep: !0
1624
+ })) : c !== void 0 && (c(), c = void 0);
1625
+ }, { immediate: !0 }), Z(() => n.lazyRules, p), Z(e, (e) => {
1626
+ e ? o.value = !0 : u.value && n.lazyRules !== "ondemand" && g();
1627
+ });
1628
+ function m() {
1629
+ s++, t.value = !1, o.value = !1, i.value = !1, a.value = null, g.cancel();
1630
+ }
1631
+ function h(e = n.modelValue) {
1632
+ if (n.disable || !l.value) return !0;
1633
+ let r = ++s, c = t.value ? () => {} : () => {
1634
+ o.value = !0;
1635
+ }, u = (e, n) => {
1636
+ e && c(), i.value = e, a.value = n || null, t.value = !1;
1637
+ }, d = [];
1638
+ for (let t = 0; t < n.rules.length; t++) {
1639
+ let r = n.rules[t], i;
1640
+ if (typeof r == "function" ? i = r(e, Jn) : typeof r == "string" && Jn[r] !== void 0 && (i = Jn[r](e)), i === !1 || typeof i == "string") return u(!0, i), !1;
1641
+ i !== !0 && i !== void 0 && d.push(i);
1642
+ }
1643
+ return d.length === 0 ? (u(!1), !0) : (t.value = !0, Promise.all(d).then((e) => {
1644
+ if (e === void 0 || !Array.isArray(e) || e.length === 0) return r === s && u(!1), !0;
1645
+ let t = e.find((e) => e === !1 || typeof e == "string");
1646
+ return r === s && u(t !== void 0, t), t === void 0;
1647
+ }, (e) => (r === s && (console.error(e), u(!0)), !1)));
1648
+ }
1649
+ let g = T(h, 0);
1650
+ return K(() => {
1651
+ c?.(), g.cancel();
1652
+ }), Object.assign(r, {
1653
+ resetValidation: m,
1654
+ validate: h
1655
+ }), C(r, "hasError", () => d.value), {
1656
+ isDirtyModel: o,
1657
+ hasRules: l,
1658
+ hasError: d,
1659
+ errorMessage: f,
1660
+ validate: h,
1661
+ resetValidation: m
1662
+ };
1663
+ }
1664
+ //#endregion
1665
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-field/use-field.js
1666
+ function Qn(e) {
1667
+ return e != null && String(e).length !== 0;
1668
+ }
1669
+ var $n = {
1670
+ ...Me,
1671
+ ...Xn,
1672
+ label: String,
1673
+ stackLabel: Boolean,
1674
+ hint: String,
1675
+ hideHint: Boolean,
1676
+ prefix: String,
1677
+ suffix: String,
1678
+ labelColor: String,
1679
+ color: String,
1680
+ bgColor: String,
1681
+ filled: Boolean,
1682
+ outlined: Boolean,
1683
+ borderless: Boolean,
1684
+ standout: [Boolean, String],
1685
+ square: Boolean,
1686
+ loading: Boolean,
1687
+ labelSlot: Boolean,
1688
+ bottomSlots: Boolean,
1689
+ hideBottomSpace: Boolean,
1690
+ rounded: Boolean,
1691
+ dense: Boolean,
1692
+ itemAligned: Boolean,
1693
+ counter: Boolean,
1694
+ clearable: Boolean,
1695
+ clearIcon: String,
1696
+ disable: Boolean,
1697
+ readonly: Boolean,
1698
+ autofocus: Boolean,
1699
+ for: String,
1700
+ maxlength: [Number, String]
1701
+ }, er = [
1702
+ "update:modelValue",
1703
+ "clear",
1704
+ "focus",
1705
+ "blur"
1706
+ ];
1707
+ function tr({ requiredForAttr: e = !0, tagProp: t, changeEvent: n = !1 } = {}) {
1708
+ let { props: r, proxy: i } = U(), a = Ne(r, i.$q), o = fn({
1709
+ required: e,
1710
+ getValue: () => r.for
1711
+ });
1712
+ return {
1713
+ requiredForAttr: e,
1714
+ changeEvent: n,
1715
+ tag: t ? z(() => r.tag) : { value: "label" },
1716
+ isDark: a,
1717
+ editable: z(() => !r.disable && !r.readonly),
1718
+ innerLoading: Y(!1),
1719
+ focused: Y(!1),
1720
+ hasPopupOpen: !1,
1721
+ splitAttrs: In(),
1722
+ targetUid: o,
1723
+ rootRef: Y(null),
1724
+ targetRef: Y(null),
1725
+ controlRef: Y(null)
1726
+ };
1727
+ }
1728
+ function nr(e, t) {
1729
+ return t === null ? null : W("div", {
1730
+ key: e,
1731
+ class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
1732
+ }, t);
1733
+ }
1734
+ function rr(e) {
1735
+ let { props: n, emit: r, slots: i, attrs: a, proxy: o } = U(), { $q: s } = o, c = null;
1736
+ e.hasValue === void 0 && (e.hasValue = z(() => Qn(n.modelValue))), e.emitValue === void 0 && (e.emitValue = (e) => {
1737
+ r("update:modelValue", e);
1738
+ }), e.controlEvents === void 0 && (e.controlEvents = {
1739
+ onFocusin: D,
1740
+ onFocusout: O
1741
+ }), Object.assign(e, {
1742
+ clearValue: k,
1743
+ onControlFocusin: D,
1744
+ onControlFocusout: O,
1745
+ focus: ee
1746
+ }), e.computedCounter === void 0 && (e.computedCounter = z(() => {
1747
+ if (n.counter) {
1748
+ let e = typeof n.modelValue == "string" || typeof n.modelValue == "number" ? String(n.modelValue).length : Array.isArray(n.modelValue) ? n.modelValue.length : 0, t = n.maxlength === void 0 ? n.maxValues : n.maxlength;
1749
+ return e + (t === void 0 ? "" : " / " + t);
1750
+ }
1751
+ }));
1752
+ let { isDirtyModel: l, hasRules: d, hasError: f, errorMessage: p, resetValidation: m } = Zn(e.focused, e.innerLoading), h = e.floatingLabel === void 0 ? z(() => n.stackLabel || e.focused.value || e.hasValue.value) : z(() => n.stackLabel || e.focused.value || e.floatingLabel.value), _ = z(() => n.bottomSlots || n.hint !== void 0 || d.value || n.counter || n.error !== null), v = z(() => n.filled ? "filled" : n.outlined ? "outlined" : n.borderless ? "borderless" : n.standout ? "standout" : "standard"), y = z(() => `q-field row no-wrap items-start q-field--${v.value}` + (e.fieldClass === void 0 ? "" : ` ${e.fieldClass.value}`) + (n.rounded ? " q-field--rounded" : "") + (n.square ? " q-field--square" : "") + (h.value ? " q-field--float" : "") + (S.value ? " q-field--labeled" : "") + (n.dense ? " q-field--dense" : "") + (n.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" : "") + (f.value ? " q-field--error" : "") + (f.value || e.focused.value ? " q-field--highlighted" : "") + (!n.hideBottomSpace && _.value ? " q-field--with-bottom" : "") + (n.disable ? " q-field--disabled" : n.readonly ? " q-field--readonly" : "")), b = z(() => "q-field__control relative-position row no-wrap" + (n.bgColor === void 0 ? "" : ` bg-${n.bgColor}`) + (f.value ? " text-negative" : typeof n.standout == "string" && n.standout.length !== 0 && e.focused.value ? ` ${n.standout}` : n.color === void 0 ? "" : ` text-${n.color}`)), S = z(() => n.labelSlot || n.label !== void 0), C = z(() => "q-field__label no-pointer-events absolute ellipsis" + (n.labelColor !== void 0 && !f.value ? ` text-${n.labelColor}` : "")), w = z(() => ({
1753
+ id: e.targetUid.value,
1754
+ editable: e.editable.value,
1755
+ focused: e.focused.value,
1756
+ floatingLabel: h.value,
1757
+ modelValue: n.modelValue,
1758
+ emitValue: e.emitValue
1759
+ })), T = z(() => {
1760
+ let t = {};
1761
+ return e.targetUid.value && (t.for = e.targetUid.value), n.disable && (t["aria-disabled"] = "true"), t;
1762
+ });
1763
+ function E() {
1764
+ let t = document.activeElement, n = e.targetRef?.value;
1765
+ n && (t === null || t.id !== e.targetUid.value) && (n.hasAttribute("tabindex") || (n = n.querySelector("[tabindex]")), n !== t && n?.focus({ preventScroll: !0 }));
1766
+ }
1767
+ function ee() {
1768
+ Ye(E);
1769
+ }
1770
+ function te() {
1771
+ Xe(E);
1772
+ let t = document.activeElement;
1773
+ t !== null && e.rootRef.value.contains(t) && t.blur();
1774
+ }
1775
+ function D(t) {
1776
+ c !== null && (clearTimeout(c), c = null), e.editable.value && !e.focused.value && (e.focused.value = !0, r("focus", t));
1777
+ }
1778
+ function O(t, n) {
1779
+ c !== null && clearTimeout(c), c = setTimeout(() => {
1780
+ c = 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, r("blur", t)), n?.());
1781
+ }, 0);
1782
+ }
1783
+ function k(i) {
1784
+ t(i), s.platform.is.mobile ? e.rootRef.value.contains(document.activeElement) && document.activeElement.blur() : (e.targetRef?.value || e.rootRef.value).focus(), n.type === "file" && (e.inputRef.value.value = null), e.onClear?.(), r("update:modelValue", null), e.changeEvent && r("change", null), r("clear", n.modelValue), G(() => {
1785
+ let e = l.value;
1786
+ m(), l.value = e;
1787
+ });
1788
+ }
1789
+ function ne(e) {
1790
+ [13, 32].includes(e.keyCode) && k(e);
1791
+ }
1792
+ function A() {
1793
+ let t = [];
1794
+ return i.prepend !== void 0 && t.push(W("div", {
1795
+ class: "q-field__prepend q-field__marginal row no-wrap items-center",
1796
+ key: "prepend",
1797
+ onClick: g
1798
+ }, i.prepend())), t.push(W("div", { class: "q-field__control-container col relative-position row no-wrap q-anchor--skip" }, M())), f.value && !n.noErrorIcon && t.push(nr("error", [W(u, {
1799
+ name: s.iconSet.field.error,
1800
+ color: "negative"
1801
+ })])), n.loading || e.innerLoading.value ? t.push(nr("inner-loading-append", i.loading === void 0 ? [W(x, { color: n.color })] : i.loading())) : n.clearable && e.hasValue.value && e.editable.value && t.push(nr("inner-clearable-append", [W(u, {
1802
+ class: "q-field__focusable-action",
1803
+ name: n.clearIcon || s.iconSet.field.clear,
1804
+ tabindex: 0,
1805
+ role: "button",
1806
+ "aria-hidden": "false",
1807
+ "aria-label": s.lang.label.clear,
1808
+ onKeyup: ne,
1809
+ onClick: k
1810
+ })])), i.append !== void 0 && t.push(W("div", {
1811
+ class: "q-field__append q-field__marginal row no-wrap items-center",
1812
+ key: "append",
1813
+ onClick: g
1814
+ }, i.append())), e.getInnerAppend !== void 0 && t.push(nr("inner-append", e.getInnerAppend())), e.getControlChild !== void 0 && t.push(e.getControlChild()), t;
1815
+ }
1816
+ function M() {
1817
+ let t = [];
1818
+ return n.prefix !== void 0 && n.prefix !== null && t.push(W("div", { class: "q-field__prefix no-pointer-events row items-center" }, n.prefix)), e.getShadowControl !== void 0 && e.hasShadow.value && t.push(e.getShadowControl()), S.value && t.push(W("div", { class: C.value }, j(i.label, n.label))), e.getControl === void 0 ? i.rawControl === void 0 ? i.control !== void 0 && t.push(W("div", {
1819
+ ref: e.targetRef,
1820
+ class: "q-field__native row",
1821
+ tabindex: -1,
1822
+ ...e.splitAttrs.attributes.value,
1823
+ "data-autofocus": n.autofocus || void 0
1824
+ }, i.control(w.value))) : t.push(i.rawControl()) : t.push(e.getControl()), n.suffix !== void 0 && n.suffix !== null && t.push(W("div", { class: "q-field__suffix no-pointer-events row items-center" }, n.suffix)), t.concat(j(i.default));
1825
+ }
1826
+ function N() {
1827
+ let t, r;
1828
+ f.value ? p.value === null ? (t = j(i.error), r = "q--slot-error") : (t = [W("div", { role: "alert" }, p.value)], r = `q--slot-error-${p.value}`) : (!n.hideHint || e.focused.value) && (n.hint === void 0 ? (t = j(i.hint), r = "q--slot-hint") : (t = [W("div", n.hint)], r = `q--slot-hint-${n.hint}`));
1829
+ let a = n.counter || i.counter !== void 0;
1830
+ if (n.hideBottomSpace && !a && t === void 0) return;
1831
+ let o = W("div", {
1832
+ key: r,
1833
+ class: "q-field__messages col"
1834
+ }, t);
1835
+ return W("div", {
1836
+ class: "q-field__bottom row items-start q-field__bottom--" + (n.hideBottomSpace ? "stale" : "animated"),
1837
+ onClick: g
1838
+ }, [n.hideBottomSpace ? o : W(se, { name: "q-transition--field-message" }, () => o), a ? W("div", { class: "q-field__counter" }, i.counter === void 0 ? e.computedCounter.value : i.counter()) : null]);
1839
+ }
1840
+ let P = !1;
1841
+ return ye(() => {
1842
+ P = !0;
1843
+ }), _e(() => {
1844
+ P && n.autofocus && o.focus();
1845
+ }), n.autofocus && q(() => {
1846
+ o.focus();
1847
+ }), K(() => {
1848
+ c !== null && clearTimeout(c);
1849
+ }), Object.assign(o, {
1850
+ focus: ee,
1851
+ blur: te
1852
+ }), function() {
1853
+ let t = e.getControl === void 0 && i.control === void 0 ? {
1854
+ ...e.splitAttrs.attributes.value,
1855
+ "data-autofocus": n.autofocus || void 0,
1856
+ ...T.value
1857
+ } : T.value;
1858
+ return W(e.tag.value, {
1859
+ ref: e.rootRef,
1860
+ class: [y.value, a.class],
1861
+ style: a.style,
1862
+ ...t
1863
+ }, [
1864
+ i.before === void 0 ? null : W("div", {
1865
+ class: "q-field__before q-field__marginal row no-wrap items-center",
1866
+ onClick: g
1867
+ }, i.before()),
1868
+ W("div", { class: "q-field__inner relative-position col self-stretch" }, [W("div", {
1869
+ ref: e.controlRef,
1870
+ class: b.value,
1871
+ tabindex: -1,
1872
+ ...e.controlEvents
1873
+ }, A()), _.value ? N() : null]),
1874
+ i.after === void 0 ? null : W("div", {
1875
+ class: "q-field__after q-field__marginal row no-wrap items-center",
1876
+ onClick: g
1877
+ }, i.after())
1878
+ ]);
1879
+ };
1880
+ }
1881
+ //#endregion
1882
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/use-mask.js
1883
+ var ir = {
1884
+ date: "####/##/##",
1885
+ datetime: "####/##/## ##:##",
1886
+ time: "##:##",
1887
+ fulltime: "##:##:##",
1888
+ phone: "(###) ### - ####",
1889
+ card: "#### #### #### ####"
1890
+ }, { tokenMap: ar, tokenKeys: or } = sr({
1891
+ "#": {
1892
+ pattern: "[\\d]",
1893
+ negate: "[^\\d]"
1894
+ },
1895
+ S: {
1896
+ pattern: "[a-zA-Z]",
1897
+ negate: "[^a-zA-Z]"
1898
+ },
1899
+ N: {
1900
+ pattern: "[0-9a-zA-Z]",
1901
+ negate: "[^0-9a-zA-Z]"
1902
+ },
1903
+ A: {
1904
+ pattern: "[a-zA-Z]",
1905
+ negate: "[^a-zA-Z]",
1906
+ transform: (e) => e.toLocaleUpperCase()
1907
+ },
1908
+ a: {
1909
+ pattern: "[a-zA-Z]",
1910
+ negate: "[^a-zA-Z]",
1911
+ transform: (e) => e.toLocaleLowerCase()
1912
+ },
1913
+ X: {
1914
+ pattern: "[0-9a-zA-Z]",
1915
+ negate: "[^0-9a-zA-Z]",
1916
+ transform: (e) => e.toLocaleUpperCase()
1917
+ },
1918
+ x: {
1919
+ pattern: "[0-9a-zA-Z]",
1920
+ negate: "[^0-9a-zA-Z]",
1921
+ transform: (e) => e.toLocaleLowerCase()
1922
+ }
1923
+ });
1924
+ function sr(e) {
1925
+ let t = Object.keys(e), n = {};
1926
+ return t.forEach((t) => {
1927
+ let r = e[t];
1928
+ n[t] = {
1929
+ ...r,
1930
+ regex: new RegExp(r.pattern)
1931
+ };
1932
+ }), {
1933
+ tokenMap: n,
1934
+ tokenKeys: t
1935
+ };
1936
+ }
1937
+ function cr(e) {
1938
+ return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + e.join("") + "])|(.)", "g");
1939
+ }
1940
+ var lr = /[.*+?^${}()|[\]\\]/g, ur = cr(or), $ = String.fromCodePoint(1), dr = {
1941
+ mask: String,
1942
+ reverseFillMask: Boolean,
1943
+ fillMask: [Boolean, String],
1944
+ unmaskedValue: Boolean,
1945
+ maskTokens: Object
1946
+ };
1947
+ function fr(e, t, n, r) {
1948
+ let i, a, o, s, c, l, u = z(() => {
1949
+ if (e.maskTokens === void 0 || e.maskTokens === null) return {
1950
+ tokenMap: ar,
1951
+ tokenRegexMask: ur
1952
+ };
1953
+ let { tokenMap: t } = sr(e.maskTokens), n = {
1954
+ ...ar,
1955
+ ...t
1956
+ };
1957
+ return {
1958
+ tokenMap: n,
1959
+ tokenRegexMask: cr(Object.keys(n))
1960
+ };
1961
+ }), d = Y(null), f = Y(m());
1962
+ function p() {
1963
+ return e.autogrow || [
1964
+ "textarea",
1965
+ "text",
1966
+ "search",
1967
+ "url",
1968
+ "tel",
1969
+ "password"
1970
+ ].includes(e.type);
1971
+ }
1972
+ Z(() => e.type + e.autogrow, _), Z(() => e.mask, (n) => {
1973
+ if (n !== void 0) v(f.value, !0);
1974
+ else {
1975
+ let n = T(f.value);
1976
+ _(), e.modelValue !== n && t("update:modelValue", n);
1977
+ }
1978
+ }), Z(() => e.fillMask + e.reverseFillMask, () => {
1979
+ d.value && v(f.value, !0);
1980
+ }), Z(() => e.unmaskedValue, () => {
1981
+ d.value && v(f.value);
1982
+ }), Z(() => e.maskTokens, () => {
1983
+ d.value && v(f.value, !0);
1984
+ }, { deep: !0 });
1985
+ function m() {
1986
+ if (_(), d.value) {
1987
+ let t = C(T(e.modelValue));
1988
+ return e.fillMask === !1 ? t : E(t);
1989
+ }
1990
+ return e.modelValue;
1991
+ }
1992
+ function g(e) {
1993
+ if (e < i.length) return i.slice(-e);
1994
+ let t = "", n = i, r = n.indexOf($);
1995
+ if (r !== -1) {
1996
+ for (let r = e - n.length; r > 0; r--) t += $;
1997
+ n = n.slice(0, r) + t + n.slice(r);
1998
+ }
1999
+ return n;
2000
+ }
2001
+ function _() {
2002
+ if (d.value = e.mask !== void 0 && e.mask.length !== 0 && p(), !d.value) {
2003
+ s = void 0, i = "", a = "";
2004
+ return;
2005
+ }
2006
+ let t = ir[e.mask] === void 0 ? e.mask : ir[e.mask], n = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", r = n.replace(lr, String.raw`\$&`), c = [], l = [], f = [], m = e.reverseFillMask, h = "", g = "";
2007
+ t.replace(u.value.tokenRegexMask, (e, t, n, r, i) => {
2008
+ if (r !== void 0) {
2009
+ let e = u.value.tokenMap[r];
2010
+ f.push(e), g = e.negate, m &&= (l.push("(?:" + g + "+)?(" + e.pattern + "+)?(?:" + g + "+)?(" + e.pattern + "+)?"), !1), l.push("(?:" + g + "+)?(" + e.pattern + ")?");
2011
+ return;
2012
+ }
2013
+ if (n !== void 0) h = "\\" + (n === "\\" ? "" : n), f.push(n);
2014
+ else {
2015
+ let e = t === void 0 ? i : t;
2016
+ h = e === "\\" ? String.raw`\\\\` : e.replace(lr, String.raw`\\$&`), f.push(e);
2017
+ }
2018
+ c.push("([^" + h + "]+)?" + h + "?");
2019
+ });
2020
+ let _ = RegExp("^" + c.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));
2021
+ o = f, s = (t) => {
2022
+ let n = _.exec(e.reverseFillMask ? t : t.slice(0, f.length + 1));
2023
+ n !== null && (t = n.slice(1).join(""));
2024
+ let r = [], i = y.length;
2025
+ for (let e = 0, n = t; e < i; e++) {
2026
+ let t = y[e].exec(n);
2027
+ if (t === null) break;
2028
+ n = n.slice(t.shift().length), r.push(...t);
2029
+ }
2030
+ return r.length === 0 ? t : r.join("");
2031
+ }, i = f.map((e) => typeof e == "string" ? e : $).join(""), a = i.split($).join(n);
2032
+ }
2033
+ function v(t, o, s) {
2034
+ let l = r.value, u = l?.selectionEnd ?? 0, d = l === null ? 0 : l.value.length - u, p = T(t);
2035
+ o === !0 && _();
2036
+ let m = C(p, o), h = e.fillMask === !1 ? m : E(m), g = f.value !== h;
2037
+ l !== null && l.value !== h && (l.value = h), g && (f.value = h), l !== null && document.activeElement === l && G(() => {
2038
+ if (h === a) {
2039
+ let t = e.reverseFillMask ? a.length : 0;
2040
+ l.setSelectionRange(t, t, "forward");
2041
+ return;
2042
+ }
2043
+ if (s === "insertFromPaste" && !e.reverseFillMask) {
2044
+ let e = l.selectionEnd, t = u - 1;
2045
+ for (let n = c; n <= t && n < e; n++) i[n] !== $ && t++;
2046
+ b.right(l, t);
2047
+ return;
2048
+ }
2049
+ if (["deleteContentBackward", "deleteContentForward"].includes(s)) {
2050
+ let t = e.reverseFillMask ? u === 0 ? +(h.length > m.length) : Math.max(0, h.length - (h === a ? 0 : Math.min(m.length, d) + 1)) + 1 : u;
2051
+ l.setSelectionRange(t, t, "forward");
2052
+ return;
2053
+ }
2054
+ if (e.reverseFillMask) {
2055
+ if (g) {
2056
+ let e = Math.max(0, h.length - (h === a ? 0 : Math.min(m.length, d + 1)));
2057
+ e === 1 && u === 1 ? l.setSelectionRange(e, e, "forward") : b.rightReverse(l, e);
2058
+ } else {
2059
+ let e = h.length - d;
2060
+ l.setSelectionRange(e, e, "backward");
2061
+ }
2062
+ } else if (g) {
2063
+ let e = Math.max(0, i.indexOf($), Math.min(m.length, u) - 1);
2064
+ b.right(l, e);
2065
+ } else {
2066
+ let e = u - 1;
2067
+ b.right(l, e);
2068
+ }
2069
+ });
2070
+ let v = e.unmaskedValue ? T(h) : h;
2071
+ String(e.modelValue) !== v && (e.modelValue !== null || v !== "") && n(v, !0);
2072
+ }
2073
+ function y(e, t, n) {
2074
+ let r = C(T(e.value));
2075
+ t = Math.max(0, i.indexOf($), Math.min(r.length, t)), c = t, e.setSelectionRange(t, n, "forward");
2076
+ }
2077
+ let b = {
2078
+ left(e, t) {
2079
+ let n = !i.slice(t - 1).includes($), r = Math.max(0, t - 1);
2080
+ for (; r >= 0; r--) if (i[r] === $) {
2081
+ t = r, n && t++;
2082
+ break;
2083
+ }
2084
+ if (r < 0 && i[t] !== void 0 && i[t] !== $) return b.right(e, 0);
2085
+ t >= 0 && e.setSelectionRange(t, t, "backward");
2086
+ },
2087
+ right(e, t) {
2088
+ let n = e.value.length, r = Math.min(n, t + 1);
2089
+ for (; r <= n; r++) if (i[r] === $) {
2090
+ t = r;
2091
+ break;
2092
+ } else i[r - 1] === $ && (t = r);
2093
+ if (r > n && i[t - 1] !== void 0 && i[t - 1] !== $) return b.left(e, n);
2094
+ e.setSelectionRange(t, t, "forward");
2095
+ },
2096
+ leftReverse(e, t) {
2097
+ let n = g(e.value.length), r = Math.max(0, t - 1);
2098
+ for (; r >= 0; r--) if (n[r - 1] === $) {
2099
+ t = r;
2100
+ break;
2101
+ } else if (n[r] === $ && (t = r, r === 0)) break;
2102
+ if (r < 0 && n[t] !== void 0 && n[t] !== $) return b.rightReverse(e, 0);
2103
+ t >= 0 && e.setSelectionRange(t, t, "backward");
2104
+ },
2105
+ rightReverse(e, t) {
2106
+ let n = e.value.length, r = g(n), i = !r.slice(0, t + 1).includes($), a = Math.min(n, t + 1);
2107
+ for (; a <= n; a++) if (r[a - 1] === $) {
2108
+ t = a, t > 0 && i && t--;
2109
+ break;
2110
+ }
2111
+ if (a > n && r[t - 1] !== void 0 && r[t - 1] !== $) return b.leftReverse(e, n);
2112
+ e.setSelectionRange(t, t, "forward");
2113
+ }
2114
+ };
2115
+ function x(e) {
2116
+ t("click", e), l = void 0;
2117
+ }
2118
+ function S(n) {
2119
+ if (t("keydown", n), h(n) || n.altKey) return;
2120
+ let i = r.value, a = i.selectionStart, o = i.selectionEnd;
2121
+ if (n.shiftKey || (l = void 0), n.keyCode === 37 || n.keyCode === 39) {
2122
+ n.shiftKey && l === void 0 && (l = i.selectionDirection === "forward" ? a : o);
2123
+ let t = b[(n.keyCode === 39 ? "right" : "left") + (e.reverseFillMask ? "Reverse" : "")];
2124
+ if (n.preventDefault(), t(i, l === a ? o : a), n.shiftKey) {
2125
+ let e = i.selectionStart;
2126
+ i.setSelectionRange(Math.min(l, e), Math.max(l, e), "forward");
2127
+ }
2128
+ } else n.keyCode === 8 && !e.reverseFillMask && a === o ? (b.left(i, a), i.setSelectionRange(i.selectionStart, o, "backward")) : n.keyCode === 46 && e.reverseFillMask && a === o && (b.rightReverse(i, o), i.setSelectionRange(a, i.selectionEnd, "forward"));
2129
+ }
2130
+ function C(t, n) {
2131
+ if (t == null || t === "") return "";
2132
+ if (e.reverseFillMask) return w(t, n);
2133
+ let r = o, i = 0, a = "";
2134
+ for (let e = 0; e < r.length; e++) {
2135
+ let o = t[i], s = r[e];
2136
+ if (typeof s == "string") a += s, n === !0 && o === s && i++;
2137
+ else if (o !== void 0 && s.regex.test(o)) a += s.transform === void 0 ? o : s.transform(o), i++;
2138
+ else return a;
2139
+ }
2140
+ return a;
2141
+ }
2142
+ function w(e, t) {
2143
+ let n = o, r = i.indexOf($), a = e.length - 1, s = "";
2144
+ for (let i = n.length - 1; i >= 0 && a !== -1; i--) {
2145
+ let o = n[i], c = e[a];
2146
+ if (typeof o == "string") s = o + s, t === !0 && c === o && a--;
2147
+ else if (c !== void 0 && o.regex.test(c)) do
2148
+ s = (o.transform === void 0 ? c : o.transform(c)) + s, a--, c = e[a];
2149
+ while (r === i && c !== void 0 && o.regex.test(c));
2150
+ else return s;
2151
+ }
2152
+ return s;
2153
+ }
2154
+ function T(e) {
2155
+ return typeof e != "string" || s === void 0 ? typeof e == "number" ? s(String(e)) : e : s(e);
2156
+ }
2157
+ function E(t) {
2158
+ return a.length - t.length <= 0 ? t : e.reverseFillMask && t.length !== 0 ? a.slice(0, -t.length) + t : t + a.slice(t.length);
2159
+ }
2160
+ return {
2161
+ innerValue: f,
2162
+ hasMask: d,
2163
+ moveCursorForPaste: y,
2164
+ updateMaskValue: v,
2165
+ onMaskedKeydown: S,
2166
+ onMaskedClick: x
2167
+ };
2168
+ }
2169
+ //#endregion
2170
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/private.use-form.js
2171
+ var pr = { name: String };
2172
+ function mr(e) {
2173
+ return z(() => e.name || e.for);
2174
+ }
2175
+ //#endregion
2176
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js
2177
+ function hr(e, t) {
2178
+ function n() {
2179
+ let t = e.modelValue;
2180
+ try {
2181
+ let e = "DataTransfer" in window ? new DataTransfer() : "ClipboardEvent" in window ? new ClipboardEvent("").clipboardData : void 0;
2182
+ return Object(t) === t && ("length" in t ? [...t] : [t]).forEach((t) => {
2183
+ e.items.add(t);
2184
+ }), { files: e.files };
2185
+ } catch {
2186
+ return { files: void 0 };
2187
+ }
2188
+ }
2189
+ return z(t ? () => {
2190
+ if (e.type === "file") return n();
2191
+ } : n);
2192
+ }
2193
+ //#endregion
2194
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-key-composition/use-key-composition.js
2195
+ var gr = /[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/, _r = /[\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, vr = /[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/, yr = /[a-z0-9_ -]$/i;
2196
+ function br(e) {
2197
+ return function(t) {
2198
+ if (t.type === "compositionend" || t.type === "change") {
2199
+ if (!t.target.qComposing) return;
2200
+ t.target.qComposing = !1, e(t);
2201
+ } else t.type === "compositionupdate" && !t.target.qComposing && typeof t.data == "string" && (i.is.firefox ? !yr.test(t.data) : gr.test(t.data) || _r.test(t.data) || vr.test(t.data)) && (t.target.qComposing = !0);
2202
+ };
2203
+ }
2204
+ //#endregion
2205
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/QInput.js
2206
+ var xr = l({
2207
+ name: "QInput",
2208
+ inheritAttrs: !1,
2209
+ props: {
2210
+ ...$n,
2211
+ ...dr,
2212
+ ...pr,
2213
+ modelValue: [
2214
+ String,
2215
+ Number,
2216
+ FileList
2217
+ ],
2218
+ modelModifiers: Object,
2219
+ shadowText: String,
2220
+ type: {
2221
+ type: String,
2222
+ default: "text"
2223
+ },
2224
+ debounce: [String, Number],
2225
+ autogrow: Boolean,
2226
+ inputClass: [
2227
+ Array,
2228
+ String,
2229
+ Object
2230
+ ],
2231
+ inputStyle: [
2232
+ Array,
2233
+ String,
2234
+ Object
2235
+ ]
2236
+ },
2237
+ emits: [
2238
+ ...er,
2239
+ "paste",
2240
+ "change",
2241
+ "keydown",
2242
+ "click",
2243
+ "animationend"
2244
+ ],
2245
+ setup(e, { emit: t, attrs: n }) {
2246
+ let { proxy: r } = U(), { $q: i } = r, a = {}, o = NaN, s = !1, c = !1, l = null, u, d = Y(null), f = mr(e), { innerValue: p, hasMask: m, moveCursorForPaste: h, updateMaskValue: g, onMaskedKeydown: _, onMaskedClick: v } = fr(e, t, M, d), y = hr(e, !0), b = z(() => Qn(p.value)), x = br(A), S = tr({ changeEvent: !0 }), w = z(() => e.type === "textarea" || e.autogrow), T = z(() => w.value || [
2247
+ "text",
2248
+ "search",
2249
+ "url",
2250
+ "tel",
2251
+ "password"
2252
+ ].includes(e.type)), E = z(() => {
2253
+ let t = {
2254
+ ...S.splitAttrs.listeners.value,
2255
+ onInput: A,
2256
+ onPaste: ne,
2257
+ onChange: I,
2258
+ onBlur: re,
2259
+ onFocus: L
2260
+ };
2261
+ return t.onCompositionstart = t.onCompositionupdate = t.onCompositionend = x, m.value && (t.onKeydown = _, t.onClick = v), e.autogrow && (t.onAnimationend = j), t;
2262
+ }), ee = z(() => {
2263
+ let t = {
2264
+ tabindex: 0,
2265
+ "data-autofocus": e.autofocus || void 0,
2266
+ rows: e.type === "textarea" ? 6 : void 0,
2267
+ "aria-label": e.label,
2268
+ name: f.value,
2269
+ ...S.splitAttrs.attributes.value,
2270
+ id: S.targetUid.value,
2271
+ maxlength: e.maxlength,
2272
+ disabled: e.disable,
2273
+ readonly: e.readonly
2274
+ };
2275
+ return w.value || (t.type = e.type), e.autogrow && (t.rows = 1), t;
2276
+ });
2277
+ Z(() => e.type, () => {
2278
+ d.value && (d.value.value = e.modelValue);
2279
+ }), Z(() => e.modelValue, (t) => {
2280
+ if (l !== null && (N(), s = !1, c = !1, delete a.value), m.value) {
2281
+ if (c && (c = !1, String(t) === o)) return;
2282
+ g(t);
2283
+ } else p.value !== t && (p.value = t, e.type === "number" && Object.hasOwn(a, "value") && (s ? s = !1 : delete a.value), e.modelModifiers?.trim === !0 && Object.hasOwn(a, "value") && (typeof a.value != "string" || a.value.trim() !== t) && delete a.value);
2284
+ e.autogrow && G(F);
2285
+ }), Z(() => e.autogrow, (e) => {
2286
+ e ? G(F) : d.value !== null && n.rows > 0 && (d.value.style.height = "auto");
2287
+ }), Z(() => e.dense, () => {
2288
+ e.autogrow && G(F);
2289
+ });
2290
+ function te() {
2291
+ let e = document.activeElement;
2292
+ d.value !== null && d.value !== e && (e === null || e.id !== S.targetUid.value) && d.value.focus({ preventScroll: !0 });
2293
+ }
2294
+ function D() {
2295
+ Ye(te);
2296
+ }
2297
+ function O() {
2298
+ Xe(te);
2299
+ let e = document.activeElement;
2300
+ e !== null && S.rootRef.value.contains(e) && e.blur();
2301
+ }
2302
+ function k() {
2303
+ d.value?.select();
2304
+ }
2305
+ function ne(n) {
2306
+ if (m.value && e.reverseFillMask !== !0) {
2307
+ let e = n.target;
2308
+ h(e, e.selectionStart, e.selectionEnd);
2309
+ }
2310
+ t("paste", n);
2311
+ }
2312
+ function A(n) {
2313
+ if (!n || !n.target) return;
2314
+ if (e.type === "file") {
2315
+ t("update:modelValue", n.target.files);
2316
+ return;
2317
+ }
2318
+ let r = n.target.value;
2319
+ if (n.target.qComposing) {
2320
+ a.value = r;
2321
+ return;
2322
+ }
2323
+ if (m.value) g(r, !1, n.inputType);
2324
+ else if (e.modelModifiers?.trim === !0 && (a.value = r), M(r), T.value && n.target === document.activeElement) {
2325
+ let { selectionStart: e, selectionEnd: t } = n.target;
2326
+ e !== void 0 && t !== void 0 && G(() => {
2327
+ n.target === document.activeElement && r.indexOf(n.target.value) === 0 && n.target.setSelectionRange(e, t);
2328
+ });
2329
+ }
2330
+ e.autogrow && F();
2331
+ }
2332
+ function j(e) {
2333
+ t("animationend", e), F();
2334
+ }
2335
+ function M(n, r) {
2336
+ u = () => {
2337
+ l = null, e.type !== "number" && (e.modelModifiers?.trim !== !0 || m.value) && Object.hasOwn(a, "value") && delete a.value, e.modelValue !== n && o !== n && (o = n, r === !0 && (c = !0), t("update:modelValue", n), G(() => {
2338
+ o === n && (o = NaN);
2339
+ })), u = void 0;
2340
+ }, e.type === "number" && (s = !0, a.value = n), e.debounce === void 0 ? u() : (l !== null && clearTimeout(l), a.value = n, l = setTimeout(u, e.debounce));
2341
+ }
2342
+ function N() {
2343
+ l !== null && (clearTimeout(l), l = null), u = void 0;
2344
+ }
2345
+ function P() {
2346
+ N(), s = !1, c = !1, delete a.value;
2347
+ }
2348
+ function F() {
2349
+ requestAnimationFrame(() => {
2350
+ let e = d.value;
2351
+ if (e !== null) {
2352
+ let t = e.parentNode.style, { scrollTop: n } = e, { overflowY: r, maxHeight: a } = i.platform.is.firefox ? {} : window.getComputedStyle(e), o = r !== void 0 && r !== "scroll";
2353
+ 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(a, 10) < e.scrollHeight ? "auto" : "hidden"), t.marginBottom = "", e.scrollTop = n;
2354
+ }
2355
+ });
2356
+ }
2357
+ function I(e) {
2358
+ x(e), l !== null && (clearTimeout(l), l = null), u?.(), t("change", e.target.value);
2359
+ }
2360
+ function re(t) {
2361
+ t !== void 0 && L(t), l !== null && (clearTimeout(l), l = null), u?.(), s = !1, c = !1, delete a.value, e.type !== "file" && setTimeout(() => {
2362
+ d.value !== null && (d.value.value = p.value === void 0 ? "" : p.value);
2363
+ }, 0);
2364
+ }
2365
+ function ie() {
2366
+ return Object.hasOwn(a, "value") ? a.value : p.value === void 0 ? "" : p.value;
2367
+ }
2368
+ K(() => {
2369
+ re();
2370
+ }), q(() => {
2371
+ e.autogrow && F();
2372
+ }), Object.assign(S, {
2373
+ innerValue: p,
2374
+ fieldClass: z(() => `q-${w.value ? "textarea" : "input"}` + (e.autogrow ? " q-textarea--autogrow" : "")),
2375
+ hasShadow: z(() => e.type !== "file" && typeof e.shadowText == "string" && e.shadowText.length !== 0),
2376
+ inputRef: d,
2377
+ emitValue: M,
2378
+ onClear: P,
2379
+ hasValue: b,
2380
+ floatingLabel: z(() => b.value && (e.type !== "number" || Number.isFinite(Number(p.value))) || Qn(e.displayValue)),
2381
+ getControl: () => W(w.value ? "textarea" : "input", {
2382
+ ref: d,
2383
+ class: ["q-field__native q-placeholder", e.inputClass],
2384
+ style: e.inputStyle,
2385
+ ...ee.value,
2386
+ ...E.value,
2387
+ ...e.type === "file" ? y.value : { value: ie() }
2388
+ }),
2389
+ getShadowControl: () => W("div", { class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (w.value ? "" : " text-no-wrap") }, [W("span", { class: "invisible" }, ie()), W("span", e.shadowText)])
2390
+ });
2391
+ let R = rr(S);
2392
+ return Object.assign(r, {
2393
+ focus: D,
2394
+ blur: O,
2395
+ select: k,
2396
+ getNativeElement: () => d.value
2397
+ }), C(r, "nativeEl", () => d.value), R;
2398
+ }
2399
+ });
2400
+ //#endregion
2401
+ //#region lib/components/inputs/VnInput.vue?vue&type=i18n&index=0&lang.i18n
2402
+ function Sr(e) {
2403
+ let t = e;
2404
+ t.__i18n = t.__i18n || [], t.__i18n.push({
2405
+ locale: "",
2406
+ resource: {
2407
+ en: {
2408
+ inputMin: {
2409
+ t: 0,
2410
+ b: {
2411
+ t: 2,
2412
+ i: [{
2413
+ t: 3,
2414
+ v: "Must be more than "
2415
+ }, {
2416
+ t: 4,
2417
+ k: "value"
2418
+ }]
2419
+ }
2420
+ },
2421
+ maxLength: {
2422
+ t: 0,
2423
+ b: {
2424
+ t: 2,
2425
+ i: [
2426
+ {
2427
+ t: 3,
2428
+ v: "The value exceeds "
2429
+ },
2430
+ {
2431
+ t: 4,
2432
+ k: "value"
2433
+ },
2434
+ {
2435
+ t: 3,
2436
+ v: " characters"
2437
+ }
2438
+ ]
2439
+ }
2440
+ },
2441
+ inputMax: {
2442
+ t: 0,
2443
+ b: {
2444
+ t: 2,
2445
+ i: [{
2446
+ t: 3,
2447
+ v: "Must be less than "
2448
+ }, {
2449
+ t: 4,
2450
+ k: "value"
2451
+ }]
2452
+ }
2453
+ }
2454
+ },
2455
+ es: {
2456
+ inputMin: {
2457
+ t: 0,
2458
+ b: {
2459
+ t: 2,
2460
+ i: [{
2461
+ t: 3,
2462
+ v: "Debe ser mayor a "
2463
+ }, {
2464
+ t: 4,
2465
+ k: "value"
2466
+ }]
2467
+ }
2468
+ },
2469
+ maxLength: {
2470
+ t: 0,
2471
+ b: {
2472
+ t: 2,
2473
+ i: [
2474
+ {
2475
+ t: 3,
2476
+ v: "El valor excede los "
2477
+ },
2478
+ {
2479
+ t: 4,
2480
+ k: "value"
2481
+ },
2482
+ {
2483
+ t: 3,
2484
+ v: " carácteres"
2485
+ }
2486
+ ]
2487
+ }
2488
+ },
2489
+ inputMax: {
2490
+ t: 0,
2491
+ b: {
2492
+ t: 2,
2493
+ i: [{
2494
+ t: 3,
2495
+ v: "Debe ser menor a "
2496
+ }, {
2497
+ t: 4,
2498
+ k: "value"
2499
+ }]
2500
+ }
2501
+ },
2502
+ "Convert to uppercase": {
2503
+ t: 0,
2504
+ b: {
2505
+ t: 2,
2506
+ i: [{ t: 3 }],
2507
+ s: "Convertir a mayúsculas"
2508
+ }
2509
+ },
2510
+ Remove: {
2511
+ t: 0,
2512
+ b: {
2513
+ t: 2,
2514
+ i: [{ t: 3 }],
2515
+ s: "Eliminar"
2516
+ }
2517
+ }
2518
+ }
2519
+ }
2520
+ });
2521
+ }
2522
+ //#endregion
2523
+ //#region lib/components/inputs/VnInput.vue
2524
+ var Cr = {
2525
+ __name: "VnInput",
2526
+ props: /*@__PURE__*/ pe({
2527
+ isOutlined: {
2528
+ type: Boolean,
2529
+ default: !1
2530
+ },
2531
+ info: {
2532
+ type: String,
2533
+ default: ""
2534
+ },
2535
+ clearable: {
2536
+ type: Boolean,
2537
+ default: !0
2538
+ },
2539
+ emptyToNull: {
2540
+ type: Boolean,
2541
+ default: !0
2542
+ },
2543
+ insertable: {
2544
+ type: Boolean,
2545
+ default: !1
2546
+ },
2547
+ maxlength: {
2548
+ type: Number,
2549
+ default: null
2550
+ },
2551
+ uppercase: {
2552
+ type: Boolean,
2553
+ default: !1
2554
+ }
2555
+ }, {
2556
+ modelValue: { default: null },
2557
+ modelModifiers: {}
2558
+ }),
2559
+ emits: /*@__PURE__*/ pe(["remove"], ["update:modelValue"]),
2560
+ setup(e, { expose: t, emit: n }) {
2561
+ let r = we(), { isRequired: i, requiredFieldRule: a } = P(r), { t: o } = De(), s = n, c = e, l = Te(e, "modelValue"), d = [
2562
+ "number",
2563
+ "search",
2564
+ "tel",
2565
+ "url",
2566
+ "password"
2567
+ ], f = (e) => {
2568
+ let t = e;
2569
+ c.emptyToNull && t === "" && (t = null), l.value = t;
2570
+ }, p = Y(null), m = Y(!1), h = z(() => c.isOutlined ? {
2571
+ dense: !0,
2572
+ outlined: !0,
2573
+ rounded: !0
2574
+ } : {}), g = (e) => {
2575
+ p.value?.focus(e);
2576
+ }, _ = (e) => {
2577
+ G(() => {
2578
+ let t = e.target || p.value?.$el?.querySelector("input"), n = e.target.type || t?.getAttribute("type");
2579
+ if (n !== "email") {
2580
+ if (!d.includes(n)) {
2581
+ if (t?.setSelectionRange) {
2582
+ let e = t.value?.length ?? 0;
2583
+ t.setSelectionRange(e, e);
2584
+ }
2585
+ return;
2586
+ }
2587
+ t?.select?.();
2588
+ }
2589
+ });
2590
+ };
2591
+ t({
2592
+ focus: g,
2593
+ vnInputRef: p
2594
+ });
2595
+ let v = z(() => [
2596
+ a,
2597
+ ...r.rules ?? [],
2598
+ (e) => {
2599
+ let t = c.maxlength;
2600
+ if (t && +e?.length > t) return o("maxLength", { value: t });
2601
+ let { min: n, max: i } = r, a = n === void 0 ? void 0 : Number(n), s = i === void 0 ? void 0 : Number(i);
2602
+ return a !== void 0 && a >= 0 && Math.floor(e) < a ? o("inputMin", { value: a }) : s !== void 0 && s > 0 && Math.floor(e) > s ? o("inputMax", { value: s }) : !0;
2603
+ }
2604
+ ]), y = (e) => {
2605
+ e.key !== "Backspace" && c.insertable && e.key.match(/[0-9]/) && b(e);
2606
+ }, b = (e) => {
2607
+ e.preventDefault();
2608
+ let t = e.target, n = t.selectionStart, r = c.maxlength, i = l.value;
2609
+ i ||= e.key;
2610
+ let a = e.key;
2611
+ a && !isNaN(a) && n < r && f(i.substring(0, n) + a + i.substring(n + 1)), G(() => {
2612
+ t.setSelectionRange(n + 1, n + 1);
2613
+ });
2614
+ }, x = () => {
2615
+ l.value = l.value?.toUpperCase() || "";
2616
+ };
2617
+ return q(() => {
2618
+ r.autofocus && g();
2619
+ }), (t, n) => (J(), ce("div", {
2620
+ onMouseover: n[1] ||= (e) => m.value = !0,
2621
+ onMouseleave: n[2] ||= (e) => m.value = !1
2622
+ }, [H(xr, me({
2623
+ ref_key: "vnInputRef",
2624
+ ref: p,
2625
+ "model-value": X(l),
2626
+ "onUpdate:modelValue": f
2627
+ }, {
2628
+ ...X(r),
2629
+ ...h.value
2630
+ }, {
2631
+ class: { required: X(i) },
2632
+ onKeydown: y,
2633
+ onFocus: _,
2634
+ clearable: !1,
2635
+ rules: v.value,
2636
+ "lazy-rules": !0,
2637
+ "hide-bottom-space": "",
2638
+ "data-cy": (X(r)["data-cy"] ?? X(r).label) + "_input",
2639
+ dense: ""
2640
+ }), ue({
2641
+ append: Q(() => [
2642
+ H(u, {
2643
+ name: "close",
2644
+ size: "xs",
2645
+ class: "cursor-pointer",
2646
+ style: ge({ visibility: m.value && X(l) && !X(r).disabled && !X(r).readonly && c.clearable ? "visible" : "hidden" }),
2647
+ onClick: n[0] ||= () => {
2648
+ f(null), p.value?.focus(), s("remove");
2649
+ }
2650
+ }, {
2651
+ default: Q(() => [H(Pn, null, {
2652
+ default: Q(() => [de(Ce(X(o)("Remove")), 1)]),
2653
+ _: 1
2654
+ })]),
2655
+ _: 1
2656
+ }, 8, ["style"]),
2657
+ !X(r).disabled && !X(r).readonly && c.uppercase ? (J(), B(u, {
2658
+ key: 0,
2659
+ name: "match_case",
2660
+ size: "xs",
2661
+ onClick: x,
2662
+ class: "uppercase-icon"
2663
+ }, {
2664
+ default: Q(() => [H(Pn, null, {
2665
+ default: Q(() => [de(Ce(X(o)("Convert to uppercase")), 1)]),
2666
+ _: 1
2667
+ })]),
2668
+ _: 1
2669
+ })) : V("", !0),
2670
+ t.$slots.append && !X(r).disabled ? Se(t.$slots, "append", {}, void 0, void 0, 1) : V("", !0),
2671
+ e.info ? (J(), B(u, {
2672
+ key: 2,
2673
+ name: "info"
2674
+ }, {
2675
+ default: Q(() => [H(Pn, { "max-width": "350px" }, {
2676
+ default: Q(() => [de(Ce(e.info), 1)]),
2677
+ _: 1
2678
+ })]),
2679
+ _: 1
2680
+ })) : V("", !0)
2681
+ ]),
2682
+ _: 2
2683
+ }, [t.$slots.hint ? {
2684
+ name: "hint",
2685
+ fn: Q(() => [Se(t.$slots, "hint")]),
2686
+ key: "0"
2687
+ } : void 0, t.$slots.prepend ? {
2688
+ name: "prepend",
2689
+ fn: Q(() => [Se(t.$slots, "prepend")]),
2690
+ key: "1"
2691
+ } : void 0]), 1040, [
2692
+ "model-value",
2693
+ "class",
2694
+ "rules",
2695
+ "data-cy"
2696
+ ])], 32));
2697
+ }
2698
+ };
2699
+ typeof Sr == "function" && Sr(Cr);
2700
+ //#endregion
2701
+ //#region lib/components/models/VnFetch.vue
2702
+ var wr = {
2703
+ __name: "VnFetch",
2704
+ props: {
2705
+ autoLoad: {
2706
+ type: Boolean,
2707
+ default: !1
2708
+ },
2709
+ url: {
2710
+ type: String,
2711
+ default: ""
2712
+ },
2713
+ filter: {
2714
+ type: Object,
2715
+ default: null
2716
+ },
2717
+ where: {
2718
+ type: Object,
2719
+ default: null
2720
+ },
2721
+ sortBy: {
2722
+ type: String,
2723
+ default: ""
2724
+ },
2725
+ limit: {
2726
+ type: [String, Number],
2727
+ default: ""
2728
+ },
2729
+ params: {
2730
+ type: Object,
2731
+ default: null
2732
+ }
2733
+ },
2734
+ emits: ["onFetch"],
2735
+ setup(e, { expose: t, emit: n }) {
2736
+ let r = e, i = n;
2737
+ t({ fetch: a }), q(async () => {
2738
+ r.autoLoad && await a();
2739
+ });
2740
+ async function a(e = {}) {
2741
+ try {
2742
+ let t = {
2743
+ ...e,
2744
+ ...r.filter
2745
+ };
2746
+ r.where && !e.where && (t.where = r.where), r.sortBy && (t.order = r.sortBy), r.limit && (t.limit = r.limit);
2747
+ let { data: n } = await Oe.get(r.url, { params: {
2748
+ filter: JSON.stringify(t),
2749
+ ...r.params
2750
+ } });
2751
+ return i("onFetch", n), n;
2752
+ } catch {}
2753
+ }
2754
+ return (e, t) => (J(), ce("template"));
2755
+ }
2756
+ }, Tr = l({
2757
+ name: "QInnerLoading",
2758
+ props: {
2759
+ ...Me,
2760
+ ...Ve,
2761
+ showing: Boolean,
2762
+ color: String,
2763
+ size: {
2764
+ type: [String, Number],
2765
+ default: "42px"
2766
+ },
2767
+ label: String,
2768
+ labelClass: String,
2769
+ labelStyle: [
2770
+ String,
2771
+ Array,
2772
+ Object
2773
+ ]
2774
+ },
2775
+ setup(e, { slots: t }) {
2776
+ let n = Ne(e, U().proxy.$q), { transitionProps: r, transitionStyle: i } = He(e), a = z(() => "q-inner-loading q--avoid-card-border absolute-full column flex-center" + (n.value ? " q-inner-loading--dark" : "")), o = z(() => "q-inner-loading__label" + (e.labelClass === void 0 ? "" : ` ${e.labelClass}`));
2777
+ function s() {
2778
+ let t = [W(x, {
2779
+ size: e.size,
2780
+ color: e.color
2781
+ })];
2782
+ return e.label !== void 0 && t.push(W("div", {
2783
+ class: o.value,
2784
+ style: e.labelStyle
2785
+ }, [e.label])), t;
2786
+ }
2787
+ function c() {
2788
+ return e.showing ? W("div", {
2789
+ class: a.value,
2790
+ style: i.value
2791
+ }, t.default === void 0 ? s() : t.default()) : null;
2792
+ }
2793
+ return () => W(se, r.value, c);
2794
+ }
2795
+ });
2796
+ //#endregion
2797
+ //#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/form/QForm.js
2798
+ function Er(e) {
2799
+ let t = e.validate();
2800
+ return typeof t.then == "function" ? t.then((t) => ({
2801
+ valid: t,
2802
+ comp: e
2803
+ }), (t) => ({
2804
+ valid: !1,
2805
+ comp: e,
2806
+ err: t
2807
+ })) : Promise.resolve({
2808
+ valid: t,
2809
+ comp: e
2810
+ });
2811
+ }
2812
+ var Dr = l({
2813
+ name: "QForm",
2814
+ props: {
2815
+ autofocus: Boolean,
2816
+ noErrorFocus: Boolean,
2817
+ noResetFocus: Boolean,
2818
+ greedy: Boolean,
2819
+ onSubmit: Function
2820
+ },
2821
+ emits: [
2822
+ "reset",
2823
+ "validationSuccess",
2824
+ "validationError"
2825
+ ],
2826
+ setup(n, { slots: r, emit: i }) {
2827
+ let a = U(), o = Y(null), s = 0, c = [];
2828
+ function l(t) {
2829
+ let r = typeof t == "boolean" ? t : !n.noErrorFocus, a = ++s, o = (e, t) => {
2830
+ i(`validation${e ? "Success" : "Error"}`, t);
2831
+ };
2832
+ return (n.greedy ? Promise.all(c.map(Er)).then((e) => e.filter((e) => !e.valid)) : c.reduce((e, t) => e.then(() => Er(t)).then((e) => {
2833
+ if (!e.valid) throw e;
2834
+ }), Promise.resolve()).catch((e) => [e])).then((t) => {
2835
+ if (t === void 0 || t.length === 0) return a === s && o(!0), !0;
2836
+ if (a === s) {
2837
+ let { comp: n, err: i } = t[0];
2838
+ if (i !== void 0 && console.error(i), o(!1, n), r) {
2839
+ let n = t.find(({ comp: t }) => typeof t.focus == "function" && !e(t.$));
2840
+ n !== void 0 && n.comp.focus();
2841
+ }
2842
+ }
2843
+ return !1;
2844
+ });
2845
+ }
2846
+ function u() {
2847
+ s++, c.forEach((e) => {
2848
+ typeof e.resetValidation == "function" && e.resetValidation();
2849
+ });
2850
+ }
2851
+ function d(e) {
2852
+ e !== void 0 && t(e);
2853
+ let r = s + 1;
2854
+ l().then((t) => {
2855
+ r === s && t && (n.onSubmit === void 0 ? e?.target !== void 0 && typeof e.target.submit == "function" && e.target.submit() : i("submit", e));
2856
+ });
2857
+ }
2858
+ function f(e) {
2859
+ e !== void 0 && t(e), i("reset"), G(() => {
2860
+ u(), n.autofocus && !n.noResetFocus && p();
2861
+ });
2862
+ }
2863
+ function p() {
2864
+ Ye(() => {
2865
+ o.value !== null && (o.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || o.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || o.value.querySelector("[autofocus], [data-autofocus]") || Array.prototype.find.call(o.value.querySelectorAll("[tabindex]"), (e) => e.tabIndex !== -1))?.focus({ preventScroll: !0 });
2866
+ });
2867
+ }
2868
+ xe(I, {
2869
+ bindComponent(e) {
2870
+ c.push(e);
2871
+ },
2872
+ unbindComponent(e) {
2873
+ let t = c.indexOf(e);
2874
+ t !== -1 && c.splice(t, 1);
2875
+ }
2876
+ });
2877
+ let m = !1;
2878
+ return ye(() => {
2879
+ m = !0;
2880
+ }), _e(() => {
2881
+ m && n.autofocus && p();
2882
+ }), q(() => {
2883
+ n.autofocus && p();
2884
+ }), Object.assign(a.proxy, {
2885
+ validate: l,
2886
+ resetValidation: u,
2887
+ submit: d,
2888
+ reset: f,
2889
+ focus: p,
2890
+ getValidationComponents: () => c
2891
+ }), () => W("form", {
2892
+ class: "q-form",
2893
+ ref: o,
2894
+ onSubmit: d,
2895
+ onReset: f
2896
+ }, j(r.default));
2897
+ }
2898
+ }), Or = l({
2899
+ name: "QBtnGroup",
2900
+ props: {
2901
+ unelevated: Boolean,
2902
+ outline: Boolean,
2903
+ flat: Boolean,
2904
+ rounded: Boolean,
2905
+ square: Boolean,
2906
+ push: Boolean,
2907
+ stretch: Boolean,
2908
+ glossy: Boolean,
2909
+ spread: Boolean
2910
+ },
2911
+ setup(e, { slots: t }) {
2912
+ let n = z(() => {
2913
+ let t = [
2914
+ "unelevated",
2915
+ "outline",
2916
+ "flat",
2917
+ "rounded",
2918
+ "square",
2919
+ "push",
2920
+ "stretch",
2921
+ "glossy"
2922
+ ].filter((t) => e[t]).map((e) => `q-btn-group--${e}`).join(" ");
2923
+ return `q-btn-group row no-wrap${t.length === 0 ? "" : " " + t}` + (e.spread ? " q-btn-group--spread" : " inline");
2924
+ });
2925
+ return () => W("div", { class: n.value }, j(t.default));
2926
+ }
2927
+ }), kr = {
2928
+ class: "column items-center full-width",
2929
+ style: { position: "relative" }
2930
+ }, Ar = ["textContent"], jr = /*#__PURE__*/ Ht({
2931
+ __name: "VnForm",
2932
+ props: {
2933
+ url: {
2934
+ type: String,
2935
+ default: ""
2936
+ },
2937
+ model: {
2938
+ type: String,
2939
+ default: null
2940
+ },
2941
+ filter: {
2942
+ type: Object,
2943
+ default: null
2944
+ },
2945
+ urlUpdate: {
2946
+ type: String,
2947
+ default: null
2948
+ },
2949
+ urlCreate: {
2950
+ type: String,
2951
+ default: null
2952
+ },
2953
+ defaultActions: {
2954
+ type: Boolean,
2955
+ default: !0
2956
+ },
2957
+ defaultButtons: {
2958
+ type: Object,
2959
+ default: () => {}
2960
+ },
2961
+ autoLoad: {
2962
+ type: Boolean,
2963
+ default: !1
2964
+ },
2965
+ formInitialData: {
2966
+ type: Object,
2967
+ default: () => {}
2968
+ },
2969
+ observeFormChanges: {
2970
+ type: Boolean,
2971
+ default: !0,
2972
+ description: "Esto se usa principalmente para permitir guardar sin hacer cambios (Útil para la feature de clonar ya que en este caso queremos poder guardar de primeras)"
2973
+ },
2974
+ mapper: {
2975
+ type: Function,
2976
+ default: R
2977
+ },
2978
+ clearStoreOnUnmount: {
2979
+ type: Boolean,
2980
+ default: !0
2981
+ },
2982
+ saveFn: {
2983
+ type: Function,
2984
+ default: null
2985
+ },
2986
+ goTo: {
2987
+ type: String,
2988
+ default: "",
2989
+ description: "It is used for redirect on click \"save and continue\""
2990
+ },
2991
+ reload: {
2992
+ type: Boolean,
2993
+ default: !0
2994
+ },
2995
+ defaultTrim: {
2996
+ type: Boolean,
2997
+ default: !0
2998
+ },
2999
+ maxWidth: {
3000
+ type: [String, Boolean],
3001
+ default: "800px"
3002
+ },
3003
+ onDataSaved: {
3004
+ type: Function,
3005
+ default: () => {}
3006
+ },
3007
+ preventSubmit: {
3008
+ type: Boolean,
3009
+ default: !1
3010
+ },
3011
+ customMethod: {
3012
+ type: String,
3013
+ default: null
3014
+ },
3015
+ formUrl: {
3016
+ type: [String, Boolean],
3017
+ default: "createForm"
3018
+ },
3019
+ paddingClass: {
3020
+ type: String,
3021
+ default: "q-pa-md"
3022
+ },
3023
+ showTitle: {
3024
+ type: Boolean,
3025
+ default: !1
3026
+ },
3027
+ title: {
3028
+ type: String,
3029
+ default: null
3030
+ }
3031
+ },
3032
+ emits: [
3033
+ "onFetch",
3034
+ "onDataSaved",
3035
+ "onDataSaveFail",
3036
+ "submit"
3037
+ ],
3038
+ setup(e, { expose: t, emit: n }) {
3039
+ let { push: r } = te(), i = ne(), a = M(), o = ie(), { t: s } = De(), { validate: c, validations: l } = re(), { notify: u } = N(), d = D(), f = Y(null), p = e, h = n, g = z(() => p.model ?? `formModel_${d?.meta?.title ?? d.name}`).value, _ = Y(!1), v = ee(g), y = Y(!1), b = Y(!1), x = Y(!p.observeFormChanges), S = {}, C = z(() => a.get(g)), T = Y(), O = z(() => f.value?.$el), k = z(() => ({
3040
+ save: {
3041
+ dataCy: "saveDefaultBtn",
3042
+ color: "primary",
3043
+ icon: "save",
3044
+ label: "globals.save",
3045
+ click: async (e) => j(e),
3046
+ type: "submit"
3047
+ },
3048
+ reset: {
3049
+ dataCy: "resetDefaultBtn",
3050
+ color: "primary",
3051
+ icon: "restart_alt",
3052
+ label: "globals.reset",
3053
+ click: () => R()
3054
+ },
3055
+ ...p.defaultButtons
3056
+ })), j = async (e) => {
3057
+ await f.value.validate() && await I(e);
3058
+ };
3059
+ function P() {
3060
+ S = p.formUrl ? JSON.parse(d?.query[p.formUrl] ?? "{}") : void 0;
3061
+ }
3062
+ q(async () => {
3063
+ !v.store.url && p.url && v.setOptions({
3064
+ url: p.url,
3065
+ filter: p.filter
3066
+ }), P(), G(() => _.value = !0), p.formInitialData && S && a.set(g, {
3067
+ ...p.formInitialData,
3068
+ ...S
3069
+ }), p.formInitialData || (p.autoLoad && p.url ? await F() : v.store.data && ue("onFetch", { val: v.store.data })), p.observeFormChanges && Z(() => T.value, (e, t) => {
3070
+ t && (x.value = !b.value && JSON.stringify(e) !== JSON.stringify(C.value), b.value = !1);
3071
+ }, { deep: !0 });
3072
+ }), p.url || Z(() => v.store.data, (e) => ue("onFetch", { val: e })), Z(C, async (e) => {
3073
+ e && (T.value = JSON.parse(JSON.stringify(e))), await G(), O.value && E(O.value);
3074
+ }, { immediate: !0 }), Z(() => [p.url, p.filter], async () => {
3075
+ a.set(g, null), R(), await F();
3076
+ }), p.formInitialData && Z(() => p.formInitialData, (e) => {
3077
+ e && a.set(g, {
3078
+ ...e,
3079
+ ...S
3080
+ });
3081
+ }), w((e, t, n) => {
3082
+ x.value && p.observeFormChanges ? i.dialog({
3083
+ component: Kt,
3084
+ componentProps: {
3085
+ title: s("globals.unsavedPopup.title"),
3086
+ message: s("globals.unsavedPopup.subtitle"),
3087
+ promise: () => n()
3088
+ }
3089
+ }) : n();
3090
+ }), be(() => {
3091
+ if (x.value) return a.set(g, C.value);
3092
+ p.clearStoreOnUnmount && a.unset(g);
3093
+ });
3094
+ async function F() {
3095
+ try {
3096
+ let e;
3097
+ e = p.model ? (await v.addFilter({ filter: p.filter })).response?.data : (await Oe.get(p.url, { params: { filter: JSON.stringify(p.filter) } })).data, Array.isArray(e) && (e = e[0] ?? {}), ue("onFetch", { val: e });
3098
+ } catch (e) {
3099
+ throw a.set(g, {}), e;
3100
+ }
3101
+ }
3102
+ async function I() {
3103
+ if (p.observeFormChanges && !x.value) return u("globals.noChanges", "negative");
3104
+ y.value = !0;
3105
+ try {
3106
+ T.value = de(T.value);
3107
+ let e = p.urlCreate ? "post" : "patch", t = e === "post" ? p.mapper(T.value) : p.mapper(T.value, C.value), n = p.urlCreate || p.urlUpdate || p.url || v.store.url, r = await Promise.resolve(p.saveFn ? p.saveFn(t) : Oe[p.customMethod ?? e](n, t));
3108
+ p.urlCreate && u("globals.dataCreated", "positive"), x.value = !1, ue("onDataSaved", {
3109
+ val: T.value,
3110
+ res: r?.data,
3111
+ old: C.value,
3112
+ rawRes: r
3113
+ }), p.reload && await v.fetch({});
3114
+ } catch (e) {
3115
+ throw h("onDataSaveFail", T.value), e;
3116
+ } finally {
3117
+ y.value = !1;
3118
+ }
3119
+ }
3120
+ async function L() {
3121
+ await I(!0), r({ path: p.goTo });
3122
+ }
3123
+ function R() {
3124
+ T.value = JSON.parse(JSON.stringify(C.value)), ue("onFetch", { val: C.value }), p.observeFormChanges && (x.value = !1, b.value = !0);
3125
+ }
3126
+ function se(e, t, n) {
3127
+ t(() => {
3128
+ let { options: t, filterFn: r } = n;
3129
+ t.value = r(t, e);
3130
+ }, (e) => {
3131
+ e.setOptionIndex(-1), e.moveOptionSelection(1, !0);
3132
+ });
3133
+ }
3134
+ async function ue(e, { val: t, res: n, old: r, rawRes: i } = {
3135
+ val: null,
3136
+ res: null,
3137
+ old: null,
3138
+ rawRes: null
3139
+ }) {
3140
+ a.set(g, t), p.url || (v.store.data = t), h(e, a.get(g), n, r, T, i), O.value && E(O.value);
3141
+ }
3142
+ function de(e) {
3143
+ if (!p.defaultTrim) return e;
3144
+ for (let t in e) typeof e[t] == "string" && (e[t] = e[t].trim());
3145
+ return e;
3146
+ }
3147
+ async function U(e) {
3148
+ if (e.key === "Enter" && !p.preventSubmit && x.value) {
3149
+ let t = e.target;
3150
+ if (t.type == "textarea" && e.shiftKey) {
3151
+ let { selectionStart: e, selectionEnd: n } = t;
3152
+ t.value = t.value.substring(0, e) + "\n" + t.value.substring(n), e = n = e + 1;
3153
+ return;
3154
+ }
3155
+ await f.value.submit(e);
3156
+ }
3157
+ }
3158
+ return t({
3159
+ submitForm: j,
3160
+ myForm: f,
3161
+ save: I,
3162
+ isLoading: y,
3163
+ hasChanges: x,
3164
+ reset: R,
3165
+ fetch: F,
3166
+ formData: T
3167
+ }), (t, n) => (J(), ce(ae, null, [le("div", kr, [H(Tr, {
3168
+ showing: y.value,
3169
+ label: X(s)("globals.pleaseWait"),
3170
+ color: "primary",
3171
+ style: { "min-width": "100%" }
3172
+ }, {
3173
+ default: Q(() => [H(X(nn), { size: "md" })]),
3174
+ _: 1
3175
+ }, 8, ["showing", "label"]), T.value ? (J(), B(Dr, me({
3176
+ key: 0,
3177
+ id: "vnForm"
3178
+ }, t.$attrs, {
3179
+ ref_key: "myForm",
3180
+ ref: f,
3181
+ onSubmit: Ee(I, ["prevent"]),
3182
+ onKeyup: Ee(U, ["prevent"]),
3183
+ onReset: R,
3184
+ class: ["full-width", [e.paddingClass]],
3185
+ style: {
3186
+ maxWidth: e.maxWidth || "none",
3187
+ width: "100%"
3188
+ }
3189
+ }), {
3190
+ default: Q(() => [H(Pe, { class: "q-pa-none" }, {
3191
+ default: Q(() => [e.showTitle ? (J(), B(Ae, {
3192
+ key: 0,
3193
+ class: "vn-basic-data__header q-px-none q-pb-none"
3194
+ }, {
3195
+ default: Q(() => [le("span", {
3196
+ class: "text-h6",
3197
+ textContent: Ce(e.title || t.$t("globals.pageTitles.basicData"))
3198
+ }, null, 8, Ar)]),
3199
+ _: 1
3200
+ })) : V("", !0), T.value ? Se(t.$slots, "form", {
3201
+ data: T.value,
3202
+ validate: X(c),
3203
+ validations: X(l)(),
3204
+ filter: se
3205
+ }, void 0, !0, 1) : (J(), B(X(tn), { key: 2 }))]),
3206
+ _: 3
3207
+ })]),
3208
+ _: 3
3209
+ }, 16, ["class", "style"])) : V("", !0)]), p.defaultActions && X(o)?.isSubToolbarShown() && _.value ? (J(), B(oe, {
3210
+ key: 0,
3211
+ to: "#st-actions"
3212
+ }, [H(Or, {
3213
+ push: "",
3214
+ class: "q-gutter-x-sm"
3215
+ }, {
3216
+ default: Q(() => [
3217
+ Se(t.$slots, "moreActions", {}, void 0, !0),
3218
+ H(m, {
3219
+ label: X(A)(k.value.reset.label),
3220
+ color: k.value.reset.color,
3221
+ icon: k.value.reset.icon,
3222
+ flat: "",
3223
+ onClick: k.value.reset.click,
3224
+ disable: !x.value,
3225
+ title: X(s)(k.value.reset.label),
3226
+ "data-cy": "resetDefaultBtn"
3227
+ }, null, 8, [
3228
+ "label",
3229
+ "color",
3230
+ "icon",
3231
+ "onClick",
3232
+ "disable",
3233
+ "title"
3234
+ ]),
3235
+ H(m, {
3236
+ "data-cy": "saveDefaultBtn",
3237
+ label: X(A)("globals.save"),
3238
+ color: "primary",
3239
+ icon: "save",
3240
+ onClick: k.value.save.click,
3241
+ disable: !x.value,
3242
+ title: X(s)(k.value.save.label),
3243
+ flat: !!p.goTo
3244
+ }, null, 8, [
3245
+ "label",
3246
+ "onClick",
3247
+ "disable",
3248
+ "title",
3249
+ "flat"
3250
+ ]),
3251
+ p.goTo ? (J(), B(m, {
3252
+ key: 0,
3253
+ "data-cy": "saveAndContinueDefaultBtn",
3254
+ onClick: L,
3255
+ label: X(A)("globals.saveAndContinue") + " " + X(s)("globals." + p.goTo.split("/").pop()),
3256
+ title: X(s)("globals.saveAndContinue") + " " + X(s)("globals." + p.goTo.split("/").pop()),
3257
+ disable: !x.value,
3258
+ color: "primary",
3259
+ icon: "save"
3260
+ }, null, 8, [
3261
+ "label",
3262
+ "title",
3263
+ "disable"
3264
+ ])) : V("", !0)
3265
+ ]),
3266
+ _: 3
3267
+ })])) : V("", !0)], 64));
3268
+ }
3269
+ }, [["__scopeId", "data-v-ffc76361"]]), Mr = /* @__PURE__ */ S({
3270
+ VnConfirm: () => Kt,
3271
+ VnFetch: () => wr,
3272
+ VnForm: () => jr,
3273
+ VnInput: () => Cr,
3274
+ VnSkeletonForm: () => tn,
3275
+ VnSpinner: () => nn
3276
+ });
3277
+ //#endregion
3278
+ export { nn as a, Cr as i, jr as n, tn as o, wr as r, Kt as s, Mr as t };