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