@reinosoft-ui/core 0.1.71 → 0.1.72
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/reinosoft-ui.es.js +306 -298
- package/dist/reinosoft-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/reinosoft-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as M, computed as V, watch as ee, onMounted as de, createElementBlock as b, openBlock as v, normalizeStyle as Ie, normalizeClass as fe, renderSlot as Y, createCommentVNode as q, withDirectives as
|
|
1
|
+
import { defineComponent as Z, ref as M, computed as V, watch as ee, onMounted as de, createElementBlock as b, openBlock as v, normalizeStyle as Ie, normalizeClass as fe, renderSlot as Y, createCommentVNode as q, withDirectives as Re, createElementVNode as $, vShow as ot, mergeProps as ye, mergeModels as ue, useModel as ke, withKeys as be, withModifiers as ve, onUnmounted as Ve, Fragment as ce, unref as E, toDisplayString as K, renderList as Ce, nextTick as $e, onBeforeUnmount as _e, createBlock as oe, Teleport as Oe, createVNode as P, Transition as Ee, withCtx as te, useId as he, provide as He, createTextVNode as Me, resolveDynamicComponent as Ze, inject as me, useAttrs as lt, h as j, useSlots as rt, resolveComponent as _t, vModelRadio as Et, vModelDynamic as Zt, reactive as Lt, TransitionGroup as zt, createApp as Nt, shallowRef as qt, vModelText as Ge } from "vue";
|
|
2
2
|
import { routerKey as Ft } from "vue-router";
|
|
3
3
|
const Ot = ["aria-busy"], Pt = ["aria-label"], Kt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Ut = /* @__PURE__ */ Z({
|
|
4
4
|
__name: "Image",
|
|
@@ -54,7 +54,7 @@ const Ot = ["aria-busy"], Pt = ["aria-label"], Kt = ["src", "srcset", "sizes", "
|
|
|
54
54
|
"aria-label": e.decorative ? void 0 : e.alt
|
|
55
55
|
}, "Image not available", 8, Pt)
|
|
56
56
|
], !0) : q("", !0),
|
|
57
|
-
|
|
57
|
+
Re($("img", {
|
|
58
58
|
ref_key: "imgRef",
|
|
59
59
|
ref: i,
|
|
60
60
|
class: "ui-image__img",
|
|
@@ -77,9 +77,9 @@ const Ot = ["aria-busy"], Pt = ["aria-label"], Kt = ["src", "srcset", "sizes", "
|
|
|
77
77
|
for (const [a, o] of n)
|
|
78
78
|
t[a] = o;
|
|
79
79
|
return t;
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
e.component("Image",
|
|
80
|
+
}, Te = /* @__PURE__ */ W(Ut, [["__scopeId", "data-v-4c5a40da"]]);
|
|
81
|
+
Te.install = (e) => {
|
|
82
|
+
e.component("Image", Te);
|
|
83
83
|
};
|
|
84
84
|
const jt = /* @__PURE__ */ Z({
|
|
85
85
|
__name: "Button",
|
|
@@ -211,15 +211,15 @@ const xt = (e) => {
|
|
|
211
211
|
}, c = (d) => {
|
|
212
212
|
const f = window.getSelection();
|
|
213
213
|
if (!f || f.rangeCount === 0 || f.isCollapsed) return !1;
|
|
214
|
-
const y = f.getRangeAt(0),
|
|
215
|
-
if (!
|
|
216
|
-
const U = u(y,
|
|
214
|
+
const y = f.getRangeAt(0), R = e;
|
|
215
|
+
if (!R) return !1;
|
|
216
|
+
const U = u(y, R), se = [];
|
|
217
217
|
if (U.forEach((X) => {
|
|
218
218
|
const G = X === y.startContainer ? y.startOffset : 0, ie = X === y.endContainer ? y.endOffset : X.textContent.length;
|
|
219
219
|
if (G === ie) return;
|
|
220
220
|
let re;
|
|
221
221
|
G === 0 && ie === X.textContent.length ? re = X : (re = X.splitText(G), ie - G < re.textContent.length && re.splitText(ie - G));
|
|
222
|
-
const ge = Xt(re, d,
|
|
222
|
+
const ge = Xt(re, d, R);
|
|
223
223
|
if (ge)
|
|
224
224
|
Gt(ge), se.push(re);
|
|
225
225
|
else {
|
|
@@ -235,8 +235,8 @@ const xt = (e) => {
|
|
|
235
235
|
return S(), I(d);
|
|
236
236
|
}, u = (d, f) => {
|
|
237
237
|
if (!d || !f || !(f instanceof HTMLElement)) return [];
|
|
238
|
-
const y = d.commonAncestorContainer,
|
|
239
|
-
|
|
238
|
+
const y = d.commonAncestorContainer, R = f.contains(y) ? f : y.nodeType === 3 ? y.parentNode : y, U = document.createTreeWalker(
|
|
239
|
+
R,
|
|
240
240
|
NodeFilter.SHOW_TEXT,
|
|
241
241
|
{
|
|
242
242
|
acceptNode(G) {
|
|
@@ -250,11 +250,11 @@ const xt = (e) => {
|
|
|
250
250
|
}, h = (d) => {
|
|
251
251
|
const f = window.getSelection();
|
|
252
252
|
if (!f || f.rangeCount === 0) return !1;
|
|
253
|
-
const y = f.getRangeAt(0),
|
|
254
|
-
if (!
|
|
255
|
-
const se =
|
|
256
|
-
for (se === "blockquote" && X.setAttribute("class", "rs-blockquote"), X.dataset.block = "true";
|
|
257
|
-
|
|
253
|
+
const y = f.getRangeAt(0), R = m(y.startContainer);
|
|
254
|
+
if (!R) return !1;
|
|
255
|
+
const se = R.tagName.toLowerCase() === d.toLowerCase() ? "p" : d.toLowerCase(), X = document.createElement(se);
|
|
256
|
+
for (se === "blockquote" && X.setAttribute("class", "rs-blockquote"), X.dataset.block = "true"; R.firstChild; ) X.appendChild(R.firstChild);
|
|
257
|
+
R.replaceWith(X);
|
|
258
258
|
const G = document.createRange();
|
|
259
259
|
return G.selectNodeContents(X), f.removeAllRanges(), f.addRange(G), s(), S(), k(d);
|
|
260
260
|
}, m = (d) => {
|
|
@@ -277,18 +277,18 @@ const xt = (e) => {
|
|
|
277
277
|
if (d.key !== "Enter" || d.shiftKey) return;
|
|
278
278
|
const f = window.getSelection();
|
|
279
279
|
if (!f || f.rangeCount === 0) return;
|
|
280
|
-
const y = f.getRangeAt(0),
|
|
281
|
-
if (!
|
|
280
|
+
const y = f.getRangeAt(0), R = p(y.startContainer, "li");
|
|
281
|
+
if (!R) return;
|
|
282
282
|
d.preventDefault(), d.stopPropagation();
|
|
283
|
-
const U =
|
|
283
|
+
const U = R.parentElement;
|
|
284
284
|
if (!U) return;
|
|
285
|
-
if (
|
|
285
|
+
if (R.textContent?.trim() === "") {
|
|
286
286
|
const G = document.createElement("p");
|
|
287
|
-
G.dataset.block = "true", G.innerHTML = "<br>", U.after(G),
|
|
287
|
+
G.dataset.block = "true", G.innerHTML = "<br>", U.after(G), R.remove(), U.children.length === 0 && U.remove(), L(G);
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
const X = document.createElement("li");
|
|
291
|
-
X.innerHTML = "<br>",
|
|
291
|
+
X.innerHTML = "<br>", R.after(X), L(X);
|
|
292
292
|
}, L = (d) => {
|
|
293
293
|
const f = document.createRange(), y = window.getSelection();
|
|
294
294
|
f.selectNodeContents(d), f.collapse(!0), y?.removeAllRanges(), y?.addRange(f);
|
|
@@ -296,8 +296,8 @@ const xt = (e) => {
|
|
|
296
296
|
const d = e;
|
|
297
297
|
if (!d) return;
|
|
298
298
|
d.querySelectorAll("p[data-block]").forEach((y) => {
|
|
299
|
-
y.childNodes.forEach((
|
|
300
|
-
|
|
299
|
+
y.childNodes.forEach((R) => {
|
|
300
|
+
R.nodeType === 3 && !R.textContent?.trim() && R.remove();
|
|
301
301
|
});
|
|
302
302
|
}), d.querySelectorAll("p[data-block]").forEach((y) => {
|
|
303
303
|
!y.querySelector("iframe") && y.hasAttribute("style") && y.removeAttribute("style");
|
|
@@ -309,9 +309,9 @@ const xt = (e) => {
|
|
|
309
309
|
if (!f) return !1;
|
|
310
310
|
let y = f.startContainer;
|
|
311
311
|
y.nodeType === Node.TEXT_NODE && (y = y.parentNode);
|
|
312
|
-
const
|
|
313
|
-
if (!
|
|
314
|
-
for (; y && y !==
|
|
312
|
+
const R = e;
|
|
313
|
+
if (!R) return !1;
|
|
314
|
+
for (; y && y !== R; ) {
|
|
315
315
|
if (y instanceof HTMLElement && y.tagName.toLowerCase() === d.toLowerCase()) return !0;
|
|
316
316
|
y = y.parentNode;
|
|
317
317
|
}
|
|
@@ -321,9 +321,9 @@ const xt = (e) => {
|
|
|
321
321
|
if (!f) return !1;
|
|
322
322
|
let y = f.startContainer;
|
|
323
323
|
y.nodeType === Node.TEXT_NODE && (y = y.parentNode);
|
|
324
|
-
const
|
|
325
|
-
if (!
|
|
326
|
-
for (; y && y !==
|
|
324
|
+
const R = e;
|
|
325
|
+
if (!R) return !1;
|
|
326
|
+
for (; y && y !== R; ) {
|
|
327
327
|
if (y instanceof HTMLElement && y.dataset.block !== void 0 && y.tagName.toLowerCase() === d.toLowerCase()) return !0;
|
|
328
328
|
y = y.parentNode;
|
|
329
329
|
}
|
|
@@ -336,17 +336,17 @@ const xt = (e) => {
|
|
|
336
336
|
if (!d || !t.value || !d || !d.contains(t.value.commonAncestorContainer)) return;
|
|
337
337
|
const f = window.getSelection();
|
|
338
338
|
f && (f.removeAllRanges(), f.addRange(t.value));
|
|
339
|
-
},
|
|
339
|
+
}, _ = () => r.value?.focusFirstButton?.(), N = (d) => {
|
|
340
340
|
const f = window.getSelection();
|
|
341
341
|
if (!f || f.rangeCount === 0) return;
|
|
342
|
-
const y = f.getRangeAt(0),
|
|
343
|
-
if (!
|
|
342
|
+
const y = f.getRangeAt(0), R = m(y.startContainer);
|
|
343
|
+
if (!R) return;
|
|
344
344
|
const U = y.cloneRange();
|
|
345
|
-
U.selectNodeContents(
|
|
345
|
+
U.selectNodeContents(R), U.setEnd(y.startContainer, y.startOffset);
|
|
346
346
|
const se = U.toString().length, X = y.cloneRange();
|
|
347
|
-
X.selectNodeContents(
|
|
348
|
-
const G = X.toString().length, ie = y.collapsed, re = d(
|
|
349
|
-
|
|
347
|
+
X.selectNodeContents(R), X.setEnd(y.endContainer, y.endOffset);
|
|
348
|
+
const G = X.toString().length, ie = y.collapsed, re = d(R);
|
|
349
|
+
R.replaceWith(re);
|
|
350
350
|
const ge = document.createTreeWalker(
|
|
351
351
|
re,
|
|
352
352
|
NodeFilter.SHOW_TEXT,
|
|
@@ -357,8 +357,8 @@ const xt = (e) => {
|
|
|
357
357
|
const Ye = ge.currentNode, Xe = Ye.textContent?.length ?? 0;
|
|
358
358
|
!ze && xe + Xe >= se && (ze = Ye, Pe = se - xe), !Be && xe + Xe >= G && (Be = Ye, Ae = G - xe), xe += Xe;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
361
|
-
ze ?
|
|
360
|
+
const De = document.createRange();
|
|
361
|
+
ze ? De.setStart(ze, Pe) : De.setStart(re, 0), !ie && Be ? De.setEnd(Be, Ae) : De.collapse(!0), f.removeAllRanges(), f.addRange(De), s(), S();
|
|
362
362
|
}, J = (d) => {
|
|
363
363
|
const f = e.parentElement?.querySelector("#editor-status");
|
|
364
364
|
f && (f.textContent = d, setTimeout(() => f.textContent = "", 2e3));
|
|
@@ -375,39 +375,39 @@ const xt = (e) => {
|
|
|
375
375
|
ae(d);
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
const y = f.getRangeAt(0),
|
|
379
|
-
if (!
|
|
378
|
+
const y = f.getRangeAt(0), R = m(y.startContainer);
|
|
379
|
+
if (!R) {
|
|
380
380
|
ae(d);
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
R.insertAdjacentHTML("afterend", d), S(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
384
384
|
}, A = (d) => {
|
|
385
385
|
const f = document.createElement("span");
|
|
386
386
|
f.className = "img-resizable", f.style.display = "inline-block", f.style.position = "relative", f.style.width = "100%";
|
|
387
387
|
const y = document.createElement("img");
|
|
388
388
|
y.src = d, y.loading = "lazy";
|
|
389
|
-
const
|
|
390
|
-
|
|
389
|
+
const R = document.createElement("span");
|
|
390
|
+
R.className = "resize-handle", f.append(y, R), ne(f.outerHTML);
|
|
391
391
|
}, x = (d) => {
|
|
392
392
|
const f = document.createElement("span");
|
|
393
393
|
f.className = "img-resizable", f.style.display = "inline-block", f.style.position = "relative", f.style.width = "100%";
|
|
394
394
|
const y = document.createElement("img");
|
|
395
395
|
y.src = d, y.alt = "", y.loading = "lazy";
|
|
396
|
-
const
|
|
397
|
-
|
|
396
|
+
const R = document.createElement("span");
|
|
397
|
+
R.className = "resize-handle", f.append(y, R), F(f.outerHTML);
|
|
398
398
|
}, H = (d) => {
|
|
399
399
|
const f = d.closest(".img-resizable");
|
|
400
400
|
if (!f) return;
|
|
401
401
|
const y = f.querySelector(".resize-handle");
|
|
402
402
|
if (!y || f.dataset.resizableInitialized === "true") return;
|
|
403
403
|
f.dataset.resizableInitialized = "true", f.style.display = "inline-block", f.style.position = "relative", d.style.display = "block", d.style.width = "100%", y.style.display = "none";
|
|
404
|
-
const
|
|
404
|
+
const R = () => {
|
|
405
405
|
f.classList.add("active"), y.style.display = "block";
|
|
406
406
|
}, U = () => {
|
|
407
407
|
f.classList.remove("active"), y.style.display = "none";
|
|
408
408
|
};
|
|
409
409
|
d.addEventListener("click", (ie) => {
|
|
410
|
-
ie.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((re) => re.classList.remove("selected")), f.classList.add("selected"),
|
|
410
|
+
ie.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((re) => re.classList.remove("selected")), f.classList.add("selected"), R();
|
|
411
411
|
}), document.addEventListener("click", (ie) => {
|
|
412
412
|
const re = ie.target;
|
|
413
413
|
re.closest(".img-resizable") || e.querySelectorAll(".img-resizable.selected").forEach((ge) => ge.classList.remove("selected")), f.contains(re) || U();
|
|
@@ -419,8 +419,8 @@ const xt = (e) => {
|
|
|
419
419
|
const Pe = (xe instanceof TouchEvent ? xe.touches[0].clientX : xe.clientX) - se, Be = f.parentElement?.clientWidth || window.innerWidth;
|
|
420
420
|
let Ae = X + Pe;
|
|
421
421
|
Ae > Be && (Ae = Be), Ae < 40 && (Ae = 40);
|
|
422
|
-
const
|
|
423
|
-
f.style.width =
|
|
422
|
+
const De = Ae / Be * 100;
|
|
423
|
+
f.style.width = De + "%";
|
|
424
424
|
}, ge = () => {
|
|
425
425
|
document.removeEventListener("mousemove", re), document.removeEventListener("mouseup", ge), document.removeEventListener("touchmove", re), document.removeEventListener("touchend", ge);
|
|
426
426
|
};
|
|
@@ -465,17 +465,17 @@ const xt = (e) => {
|
|
|
465
465
|
if (d.key !== "Backspace" && d.key !== "Delete") return;
|
|
466
466
|
const f = window.getSelection();
|
|
467
467
|
if (!f || f.rangeCount === 0) return;
|
|
468
|
-
const y = f.getRangeAt(0),
|
|
469
|
-
if (!
|
|
470
|
-
const U =
|
|
471
|
-
U && (d.preventDefault(), d.stopPropagation(), U.remove(),
|
|
468
|
+
const y = f.getRangeAt(0), R = m(y.startContainer);
|
|
469
|
+
if (!R) return;
|
|
470
|
+
const U = R.querySelector("iframe");
|
|
471
|
+
U && (d.preventDefault(), d.stopPropagation(), U.remove(), R.removeAttribute("style"), R.replaceChildren(document.createElement("br")), L(R));
|
|
472
472
|
}, ne = (d, f) => {
|
|
473
473
|
const y = e;
|
|
474
474
|
if (!y) return;
|
|
475
|
-
const
|
|
475
|
+
const R = window.getSelection();
|
|
476
476
|
let U = null;
|
|
477
|
-
if (
|
|
478
|
-
const G =
|
|
477
|
+
if (R && R.rangeCount > 0) {
|
|
478
|
+
const G = R.getRangeAt(0);
|
|
479
479
|
U = m(G.startContainer);
|
|
480
480
|
}
|
|
481
481
|
const se = U && !U.textContent?.trim() && U.querySelectorAll("img, iframe").length === 0;
|
|
@@ -489,7 +489,7 @@ const xt = (e) => {
|
|
|
489
489
|
ie.dataset.block = "true", ie.replaceChildren(document.createElement("br")), U ? (U.after(G), G.after(ie)) : y.append(G, ie), X = ie;
|
|
490
490
|
}
|
|
491
491
|
y.querySelectorAll(".img-resizable img").forEach((G) => H(G)), X && L(X), S(), y.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
492
|
-
},
|
|
492
|
+
}, D = (d) => {
|
|
493
493
|
const f = d.match(/(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);
|
|
494
494
|
return f && typeof f[1] == "string" ? f[1] : null;
|
|
495
495
|
}, w = async (d) => {
|
|
@@ -511,13 +511,13 @@ const xt = (e) => {
|
|
|
511
511
|
}
|
|
512
512
|
const y = d.clipboardData?.getData("text/plain")?.trim();
|
|
513
513
|
if (!y) return;
|
|
514
|
-
const
|
|
515
|
-
if (!
|
|
514
|
+
const R = D(y), U = T(y);
|
|
515
|
+
if (!R && !U) return;
|
|
516
516
|
d.preventDefault();
|
|
517
517
|
const se = window.getSelection();
|
|
518
518
|
if (!se || se.rangeCount === 0) return;
|
|
519
519
|
const X = se.getRangeAt(0), G = m(X.startContainer);
|
|
520
|
-
if (G && G.textContent?.trim() === y && (G.innerHTML = "<br>"),
|
|
520
|
+
if (G && G.textContent?.trim() === y && (G.innerHTML = "<br>"), R) {
|
|
521
521
|
le(y);
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
@@ -528,7 +528,7 @@ const xt = (e) => {
|
|
|
528
528
|
}
|
|
529
529
|
A(y);
|
|
530
530
|
}
|
|
531
|
-
},
|
|
531
|
+
}, T = (d) => {
|
|
532
532
|
try {
|
|
533
533
|
const f = new URL(d);
|
|
534
534
|
return /\.(png|jpe?g|gif|webp|svg|avif)$/i.test(f.pathname);
|
|
@@ -538,8 +538,8 @@ const xt = (e) => {
|
|
|
538
538
|
}, Q = (d) => i ? new Promise((f) => {
|
|
539
539
|
const y = new Image();
|
|
540
540
|
y.onload = () => {
|
|
541
|
-
const
|
|
542
|
-
f(
|
|
541
|
+
const R = y.naturalWidth >= i.width || y.naturalHeight >= i.height;
|
|
542
|
+
f(R);
|
|
543
543
|
}, y.onerror = () => f(!1), y.src = d;
|
|
544
544
|
}) : Promise.resolve(!0);
|
|
545
545
|
return e.addEventListener("keydown", O, { capture: !0 }), e.addEventListener("paste", w), {
|
|
@@ -553,7 +553,7 @@ const xt = (e) => {
|
|
|
553
553
|
isBlockActive: k,
|
|
554
554
|
focus: B,
|
|
555
555
|
toolbarRef: r,
|
|
556
|
-
focusFirstToolbarButton:
|
|
556
|
+
focusFirstToolbarButton: _,
|
|
557
557
|
replaceCurrentBlock: N,
|
|
558
558
|
buttons: a,
|
|
559
559
|
announce: J,
|
|
@@ -1086,7 +1086,7 @@ const xt = (e) => {
|
|
|
1086
1086
|
fill: "currentColor"
|
|
1087
1087
|
}
|
|
1088
1088
|
]
|
|
1089
|
-
},
|
|
1089
|
+
}, R1 = {
|
|
1090
1090
|
viewBox: "0 0 24 24",
|
|
1091
1091
|
paths: [
|
|
1092
1092
|
{
|
|
@@ -1099,7 +1099,7 @@ const xt = (e) => {
|
|
|
1099
1099
|
"stroke-linejoin": "round"
|
|
1100
1100
|
}
|
|
1101
1101
|
]
|
|
1102
|
-
},
|
|
1102
|
+
}, D1 = {
|
|
1103
1103
|
viewBox: "0 0 24 24",
|
|
1104
1104
|
paths: [
|
|
1105
1105
|
{
|
|
@@ -1134,7 +1134,7 @@ const xt = (e) => {
|
|
|
1134
1134
|
"stroke-width": 2
|
|
1135
1135
|
}
|
|
1136
1136
|
]
|
|
1137
|
-
},
|
|
1137
|
+
}, T1 = {
|
|
1138
1138
|
viewBox: "0 0 24 24",
|
|
1139
1139
|
paths: [
|
|
1140
1140
|
{
|
|
@@ -1147,7 +1147,7 @@ const xt = (e) => {
|
|
|
1147
1147
|
"stroke-linejoin": "round"
|
|
1148
1148
|
}
|
|
1149
1149
|
]
|
|
1150
|
-
},
|
|
1150
|
+
}, _1 = {
|
|
1151
1151
|
viewBox: "0 0 24 24",
|
|
1152
1152
|
paths: [
|
|
1153
1153
|
{
|
|
@@ -2114,12 +2114,12 @@ const xt = (e) => {
|
|
|
2114
2114
|
heart: z1,
|
|
2115
2115
|
oList: B1,
|
|
2116
2116
|
uList: A1,
|
|
2117
|
-
close:
|
|
2118
|
-
clock:
|
|
2117
|
+
close: R1,
|
|
2118
|
+
clock: D1,
|
|
2119
2119
|
login: S1,
|
|
2120
|
-
image:
|
|
2120
|
+
image: _1,
|
|
2121
2121
|
phone: E1,
|
|
2122
|
-
trash:
|
|
2122
|
+
trash: T1,
|
|
2123
2123
|
share: Z1,
|
|
2124
2124
|
spotfy: q1,
|
|
2125
2125
|
church: F1,
|
|
@@ -2167,7 +2167,7 @@ const xt = (e) => {
|
|
|
2167
2167
|
shoppingBag: Va,
|
|
2168
2168
|
directionDown: Ba,
|
|
2169
2169
|
shoppingBasket: Aa
|
|
2170
|
-
},
|
|
2170
|
+
}, Ra = ["viewBox", "transform", "width", "height"], Da = /* @__PURE__ */ Z({
|
|
2171
2171
|
__name: "Icon",
|
|
2172
2172
|
props: {
|
|
2173
2173
|
name: {},
|
|
@@ -2211,9 +2211,9 @@ const xt = (e) => {
|
|
|
2211
2211
|
ref_for: !0
|
|
2212
2212
|
}, a), null, 16)) : q("", !0)
|
|
2213
2213
|
], 64))), 128))
|
|
2214
|
-
], 10,
|
|
2214
|
+
], 10, Ra));
|
|
2215
2215
|
}
|
|
2216
|
-
}), pe = /* @__PURE__ */ W(
|
|
2216
|
+
}), pe = /* @__PURE__ */ W(Da, [["__scopeId", "data-v-dd8423eb"]]), Sa = ["aria-controls"], Ta = ["aria-pressed", "onMousedown", "aria-label"], _a = { key: 1 }, Qe = 8, Ea = 6, Za = /* @__PURE__ */ Z({
|
|
2217
2217
|
__name: "FloatingToolbar",
|
|
2218
2218
|
props: {
|
|
2219
2219
|
editor: {},
|
|
@@ -2236,10 +2236,10 @@ const xt = (e) => {
|
|
|
2236
2236
|
const m = () => {
|
|
2237
2237
|
const g = window.getSelection();
|
|
2238
2238
|
if (!g || g.rangeCount === 0) return {};
|
|
2239
|
-
const
|
|
2240
|
-
if (!
|
|
2239
|
+
const _ = t.editor?.rootElement;
|
|
2240
|
+
if (!_) return {};
|
|
2241
2241
|
const N = g.getRangeAt(0);
|
|
2242
|
-
if (!
|
|
2242
|
+
if (!_.contains(
|
|
2243
2243
|
N.commonAncestorContainer.nodeType === 3 ? N.commonAncestorContainer.parentNode : N.commonAncestorContainer
|
|
2244
2244
|
) || g.isCollapsed) return {};
|
|
2245
2245
|
const J = N.getClientRects().item(0) ?? N.getBoundingClientRect();
|
|
@@ -2253,15 +2253,15 @@ const xt = (e) => {
|
|
|
2253
2253
|
top: `${z}px`
|
|
2254
2254
|
};
|
|
2255
2255
|
}, p = (g) => {
|
|
2256
|
-
let
|
|
2256
|
+
let _ = 0;
|
|
2257
2257
|
const N = () => {
|
|
2258
|
-
cancelAnimationFrame(
|
|
2258
|
+
cancelAnimationFrame(_), _ = requestAnimationFrame(g);
|
|
2259
2259
|
}, J = N, ae = N;
|
|
2260
2260
|
return window.addEventListener("scroll", J, { capture: !0, passive: !0 }), window.addEventListener("resize", ae, { passive: !0 }), () => {
|
|
2261
|
-
cancelAnimationFrame(
|
|
2261
|
+
cancelAnimationFrame(_), window.removeEventListener("scroll", J, { capture: !0 }), window.removeEventListener("resize", ae);
|
|
2262
2262
|
};
|
|
2263
|
-
}, C = (g,
|
|
2264
|
-
g && (i.value[
|
|
2263
|
+
}, C = (g, _) => {
|
|
2264
|
+
g && (i.value[_] = g);
|
|
2265
2265
|
};
|
|
2266
2266
|
ee(o, () => {
|
|
2267
2267
|
i.value = [];
|
|
@@ -2324,18 +2324,18 @@ const xt = (e) => {
|
|
|
2324
2324
|
]), I = async () => {
|
|
2325
2325
|
await $e(), i.value[0]?.focus();
|
|
2326
2326
|
}, k = (g) => {
|
|
2327
|
-
const
|
|
2327
|
+
const _ = i.value, N = _.indexOf(document.activeElement);
|
|
2328
2328
|
if (g.key === "ArrowRight") {
|
|
2329
2329
|
g.preventDefault();
|
|
2330
|
-
const J = N <
|
|
2331
|
-
|
|
2330
|
+
const J = N < _.length - 1 ? N + 1 : 0;
|
|
2331
|
+
_[J]?.focus();
|
|
2332
2332
|
}
|
|
2333
2333
|
if (g.key === "ArrowLeft") {
|
|
2334
2334
|
g.preventDefault();
|
|
2335
|
-
const J = N > 0 ? N - 1 :
|
|
2336
|
-
|
|
2335
|
+
const J = N > 0 ? N - 1 : _.length - 1;
|
|
2336
|
+
_[J]?.focus();
|
|
2337
2337
|
}
|
|
2338
|
-
g.key === "Home" && (g.preventDefault(),
|
|
2338
|
+
g.key === "Home" && (g.preventDefault(), _[0]?.focus()), g.key === "End" && (g.preventDefault(), _[_.length - 1]?.focus()), g.key === "Escape" && (g.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
|
|
2339
2339
|
}, B = () => {
|
|
2340
2340
|
cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
2341
2341
|
const g = window.getSelection();
|
|
@@ -2343,19 +2343,19 @@ const xt = (e) => {
|
|
|
2343
2343
|
o.value && (o.value = !1);
|
|
2344
2344
|
return;
|
|
2345
2345
|
}
|
|
2346
|
-
const
|
|
2347
|
-
if (!
|
|
2348
|
-
const N = g.getRangeAt(0), J = N.commonAncestorContainer.nodeType === 3 ? N.commonAncestorContainer.parentNode ?? N.commonAncestorContainer : N.commonAncestorContainer, ae =
|
|
2346
|
+
const _ = t.editor?.rootElement;
|
|
2347
|
+
if (!_) return;
|
|
2348
|
+
const N = g.getRangeAt(0), J = N.commonAncestorContainer.nodeType === 3 ? N.commonAncestorContainer.parentNode ?? N.commonAncestorContainer : N.commonAncestorContainer, ae = _.contains(J) && !g.isCollapsed;
|
|
2349
2349
|
o.value !== ae && (o.value = ae);
|
|
2350
2350
|
});
|
|
2351
2351
|
};
|
|
2352
2352
|
return de(() => {
|
|
2353
2353
|
document.addEventListener("selectionchange", B);
|
|
2354
|
-
}),
|
|
2354
|
+
}), _e(() => {
|
|
2355
2355
|
c?.(), s?.disconnect(), s = null, cancelAnimationFrame(u), document.removeEventListener("selectionchange", B);
|
|
2356
2356
|
}), n({
|
|
2357
2357
|
focusFirstButton: I
|
|
2358
|
-
}), (g,
|
|
2358
|
+
}), (g, _) => (v(), oe(Oe, { to: "body" }, [
|
|
2359
2359
|
P(Ee, { name: "tooltip-fade" }, {
|
|
2360
2360
|
default: te(() => [
|
|
2361
2361
|
o.value ? (v(), b("div", {
|
|
@@ -2370,7 +2370,7 @@ const xt = (e) => {
|
|
|
2370
2370
|
tabindex: "-1",
|
|
2371
2371
|
onKeydown: k
|
|
2372
2372
|
}, [
|
|
2373
|
-
|
|
2373
|
+
_[0] || (_[0] = $("div", { class: "arrow" }, null, -1)),
|
|
2374
2374
|
(v(!0), b(ce, null, Ce(S.value, (N, J) => (v(), b("button", {
|
|
2375
2375
|
key: N.key ?? J,
|
|
2376
2376
|
type: "button",
|
|
@@ -2385,8 +2385,8 @@ const xt = (e) => {
|
|
|
2385
2385
|
key: 0,
|
|
2386
2386
|
name: N.label,
|
|
2387
2387
|
size: N.size ?? 14
|
|
2388
|
-
}, null, 8, ["name", "size"])) : (v(), b("span",
|
|
2389
|
-
], 42,
|
|
2388
|
+
}, null, 8, ["name", "size"])) : (v(), b("span", _a, K(N.label), 1))
|
|
2389
|
+
], 42, Ta))), 128))
|
|
2390
2390
|
], 44, Sa)) : q("", !0)
|
|
2391
2391
|
]),
|
|
2392
2392
|
_: 1
|
|
@@ -2415,7 +2415,15 @@ const xt = (e) => {
|
|
|
2415
2415
|
(s) => {
|
|
2416
2416
|
const c = r.value?.getRoot()?.value;
|
|
2417
2417
|
c && c.innerHTML !== s && (c.innerHTML = s, l.value?.normalize());
|
|
2418
|
-
}
|
|
2418
|
+
},
|
|
2419
|
+
{ immediate: !0 }
|
|
2420
|
+
), ee(
|
|
2421
|
+
() => r.value,
|
|
2422
|
+
() => {
|
|
2423
|
+
const s = r.value?.getRoot()?.value;
|
|
2424
|
+
!s || !t.value || t.value.trim().length === 0 || s.innerHTML !== t.value && (s.innerHTML = t.value, l.value?.normalize());
|
|
2425
|
+
},
|
|
2426
|
+
{ immediate: !0 }
|
|
2419
2427
|
), de(() => {
|
|
2420
2428
|
const c = r.value?.getRoot()?.value;
|
|
2421
2429
|
if (!c) return;
|
|
@@ -2543,7 +2551,7 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2543
2551
|
}
|
|
2544
2552
|
};
|
|
2545
2553
|
o("upload", x, le);
|
|
2546
|
-
},
|
|
2554
|
+
}, _ = (x) => {
|
|
2547
2555
|
x.controller && (x.controller.abort(), x.status = "canceled", x.controller = void 0, F(`Canceled uploading ${x.file.name}`), J());
|
|
2548
2556
|
}, N = (x) => {
|
|
2549
2557
|
x.status !== "error" && x.status !== "canceled" || g(x);
|
|
@@ -2618,7 +2626,7 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2618
2626
|
Y(x.$slots, "file", {
|
|
2619
2627
|
file: z,
|
|
2620
2628
|
remove: () => A(z),
|
|
2621
|
-
cancel: () =>
|
|
2629
|
+
cancel: () => _(z),
|
|
2622
2630
|
retry: () => N(z)
|
|
2623
2631
|
}, () => [
|
|
2624
2632
|
$("div", Pa, [
|
|
@@ -2642,7 +2650,7 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2642
2650
|
key: 0,
|
|
2643
2651
|
type: "button",
|
|
2644
2652
|
class: "btn-danger btn-xs",
|
|
2645
|
-
onClick: ve((le) =>
|
|
2653
|
+
onClick: ve((le) => _(z), ["stop"])
|
|
2646
2654
|
}, {
|
|
2647
2655
|
default: te(() => [...H[8] || (H[8] = [
|
|
2648
2656
|
Me(" Cancel ", -1)
|
|
@@ -2738,7 +2746,7 @@ const nn = (e) => {
|
|
|
2738
2746
|
return;
|
|
2739
2747
|
}
|
|
2740
2748
|
await $e(), C(), c = nn(C), u = new ResizeObserver(C), l.value && u.observe(l.value), i.value && u.observe(i.value);
|
|
2741
|
-
}),
|
|
2749
|
+
}), _e(() => {
|
|
2742
2750
|
c?.(), u?.disconnect();
|
|
2743
2751
|
}), (L, S) => (v(), b(ce, null, [
|
|
2744
2752
|
$("span", {
|
|
@@ -2896,11 +2904,11 @@ const cn = {
|
|
|
2896
2904
|
const k = Object.keys(o.value), B = k[k.length - 1];
|
|
2897
2905
|
B && m(B);
|
|
2898
2906
|
}, L = (k) => {
|
|
2899
|
-
const B = Object.keys(o.value), g = I(k),
|
|
2900
|
-
g >= 0 && g < B.length - 1 &&
|
|
2907
|
+
const B = Object.keys(o.value), g = I(k), _ = B[g + 1];
|
|
2908
|
+
g >= 0 && g < B.length - 1 && _ && m(_);
|
|
2901
2909
|
}, S = (k) => {
|
|
2902
|
-
const B = Object.keys(o.value), g = I(k),
|
|
2903
|
-
g > 0 &&
|
|
2910
|
+
const B = Object.keys(o.value), g = I(k), _ = B[g - 1];
|
|
2911
|
+
g > 0 && _ && m(_);
|
|
2904
2912
|
}, I = (k) => Object.keys(o.value).indexOf(k);
|
|
2905
2913
|
return He("DropdownContext", {
|
|
2906
2914
|
open: s,
|
|
@@ -3092,11 +3100,11 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3092
3100
|
return e.invalid && e.errorMessage && o.push(t), n.hint && o.push(a), o.length > 0 ? o.join(" ") : void 0;
|
|
3093
3101
|
}), Ke = (e) => V(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Bn = (e) => V(() => e.disabled === !0 ? "true" : void 0), An = (e, n, t) => {
|
|
3094
3102
|
n && (n.classList.add("focused"), t("focus", e));
|
|
3095
|
-
},
|
|
3103
|
+
}, Rn = (e, n, t, a) => {
|
|
3096
3104
|
at(n, t), t && (t?.classList.remove("focused"), a("blur", e));
|
|
3097
3105
|
}, at = (e, n) => {
|
|
3098
3106
|
!e || !n || (e.value.length > 0 ? n.classList.add("filled") : n.classList.remove("filled"));
|
|
3099
|
-
},
|
|
3107
|
+
}, Dn = ["id"], it = /* @__PURE__ */ Z({
|
|
3100
3108
|
__name: "Hint",
|
|
3101
3109
|
props: {
|
|
3102
3110
|
hintId: {}
|
|
@@ -3108,7 +3116,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3108
3116
|
class: "visually-hidden"
|
|
3109
3117
|
}, [
|
|
3110
3118
|
Y(n.$slots, "default")
|
|
3111
|
-
], 8,
|
|
3119
|
+
], 8, Dn)) : q("", !0);
|
|
3112
3120
|
}
|
|
3113
3121
|
}), Sn = ["id"], ut = /* @__PURE__ */ Z({
|
|
3114
3122
|
__name: "RequiredHint",
|
|
@@ -3123,7 +3131,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3123
3131
|
class: "visually-hidden"
|
|
3124
3132
|
}, " Required field ", 8, Sn)) : q("", !0);
|
|
3125
3133
|
}
|
|
3126
|
-
}),
|
|
3134
|
+
}), Tn = ["id"], ct = /* @__PURE__ */ Z({
|
|
3127
3135
|
__name: "ErrorMessage",
|
|
3128
3136
|
props: {
|
|
3129
3137
|
errorId: {},
|
|
@@ -3136,9 +3144,9 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3136
3144
|
id: e.errorId,
|
|
3137
3145
|
class: "error-text",
|
|
3138
3146
|
role: "alert"
|
|
3139
|
-
}, K(e.errorMessage), 9,
|
|
3147
|
+
}, K(e.errorMessage), 9, Tn)) : q("", !0);
|
|
3140
3148
|
}
|
|
3141
|
-
}),
|
|
3149
|
+
}), _n = ["for"], En = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Zn = /* @__PURE__ */ Z({
|
|
3142
3150
|
__name: "Input",
|
|
3143
3151
|
props: /* @__PURE__ */ ue({
|
|
3144
3152
|
id: {},
|
|
@@ -3160,57 +3168,57 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3160
3168
|
const t = ke(e, "modelValue"), a = e, o = n, i = lt(), l = M(null), r = he(), s = `${r}-error`, c = `${r}-hint`, u = Ke(i).value, h = M(!1), m = M(""), p = M(!1), C = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), L = V(() => u ? `${c} ${r}-required-hint` : c), S = V(() => a.invalid === !0 && a.errorMessage ? s : void 0), I = V(() => a.type === "password" ? p.value ? "text" : "password" : a.type), k = V(() => {
|
|
3161
3169
|
const { type: O, ...ne } = i;
|
|
3162
3170
|
return ne;
|
|
3163
|
-
}), B = V(() => a.currency ? t.value === null || t.value === void 0 || t.value === "" ? "" : J(m.value) : a.mask ? gt(String(t.value ?? ""), a.mask) : String(t.value ?? "")), g = V(() => a.mask ? Fe(a.mask).filter((O) => O.type !== "literal").length : 0),
|
|
3171
|
+
}), B = V(() => a.currency ? t.value === null || t.value === void 0 || t.value === "" ? "" : J(m.value) : a.mask ? gt(String(t.value ?? ""), a.mask) : String(t.value ?? "")), g = V(() => a.mask ? Fe(a.mask).filter((O) => O.type !== "literal").length : 0), _ = V(() => a.currency ? new Intl.NumberFormat(a.locale ?? "en-US", {
|
|
3164
3172
|
style: "currency",
|
|
3165
3173
|
currency: a.currency
|
|
3166
3174
|
}) : null), N = V(() => ({
|
|
3167
3175
|
input: !0,
|
|
3168
3176
|
"input-currency": !!a.currency
|
|
3169
3177
|
})), J = (O) => {
|
|
3170
|
-
if (!
|
|
3178
|
+
if (!_.value) return O;
|
|
3171
3179
|
const ne = Number(O || "0") / 100;
|
|
3172
|
-
return
|
|
3180
|
+
return _.value.format(ne);
|
|
3173
3181
|
}, ae = () => p.value = !p.value, F = (O) => {
|
|
3174
3182
|
if (!a.mask && !a.currency) return;
|
|
3175
3183
|
if (a.currency) {
|
|
3176
|
-
const w = O.target,
|
|
3184
|
+
const w = O.target, T = le(w.value);
|
|
3177
3185
|
l.value = {
|
|
3178
|
-
rawCaret:
|
|
3186
|
+
rawCaret: T.length,
|
|
3179
3187
|
inputType: O.inputType
|
|
3180
3188
|
};
|
|
3181
3189
|
return;
|
|
3182
3190
|
}
|
|
3183
|
-
const ne = O.target,
|
|
3191
|
+
const ne = O.target, D = ne.selectionStart ?? 0;
|
|
3184
3192
|
l.value = {
|
|
3185
|
-
rawCaret: In(ne.value,
|
|
3193
|
+
rawCaret: In(ne.value, D),
|
|
3186
3194
|
inputType: O.inputType
|
|
3187
3195
|
};
|
|
3188
3196
|
}, A = (O) => {
|
|
3189
3197
|
const ne = O.target;
|
|
3190
3198
|
if (a.currency) {
|
|
3191
|
-
let
|
|
3192
|
-
l.value?.inputType === "deleteContentBackward" && (
|
|
3199
|
+
let T = le(ne.value);
|
|
3200
|
+
l.value?.inputType === "deleteContentBackward" && (T = m.value.slice(0, -1)), m.value = T;
|
|
3193
3201
|
const Q = J(m.value);
|
|
3194
3202
|
ne.value = Q, t.value = Number(m.value || "0") / 100, l.value = null;
|
|
3195
3203
|
return;
|
|
3196
3204
|
}
|
|
3197
|
-
let
|
|
3198
|
-
a.mask && (
|
|
3199
|
-
const w = a.mask ? gt(
|
|
3200
|
-
if (ne.value = w, t.value = a.type === "number" ? Number(
|
|
3201
|
-
let { rawCaret:
|
|
3202
|
-
Q.startsWith("insert") &&
|
|
3203
|
-
let d = Hn(w,
|
|
3205
|
+
let D = a.mask ? $n(ne.value, a.mask) : ne.value;
|
|
3206
|
+
a.mask && (D = D.slice(0, g.value));
|
|
3207
|
+
const w = a.mask ? gt(D, a.mask) : D;
|
|
3208
|
+
if (ne.value = w, t.value = a.type === "number" ? Number(D) : D, a.mask && l.value) {
|
|
3209
|
+
let { rawCaret: T, inputType: Q } = l.value;
|
|
3210
|
+
Q.startsWith("insert") && T++, Q === "deleteContentBackward" && (T = Math.max(0, T - 1));
|
|
3211
|
+
let d = Hn(w, T);
|
|
3204
3212
|
d = Vn(a.mask, d, 1), ne.setSelectionRange(d, d);
|
|
3205
3213
|
}
|
|
3206
3214
|
l.value = null;
|
|
3207
3215
|
}, x = (O) => {
|
|
3208
3216
|
if (!a.mask || a.currency || O.key !== "Backspace") return;
|
|
3209
3217
|
const ne = O.target;
|
|
3210
|
-
let
|
|
3218
|
+
let D = ne.selectionStart ?? 0;
|
|
3211
3219
|
const w = Fe(a.mask);
|
|
3212
|
-
for (;
|
|
3213
|
-
requestAnimationFrame(() => ne.setSelectionRange(
|
|
3220
|
+
for (; D > 0 && w[D - 1]?.type === "literal"; ) D--;
|
|
3221
|
+
requestAnimationFrame(() => ne.setSelectionRange(D, D));
|
|
3214
3222
|
}, H = (O) => {
|
|
3215
3223
|
h.value = !0, o("focus", O);
|
|
3216
3224
|
}, z = (O) => {
|
|
@@ -3230,7 +3238,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3230
3238
|
$("label", {
|
|
3231
3239
|
for: e.id,
|
|
3232
3240
|
class: "label"
|
|
3233
|
-
}, K(e.label), 9,
|
|
3241
|
+
}, K(e.label), 9, _n),
|
|
3234
3242
|
$("input", ye({
|
|
3235
3243
|
id: e.id,
|
|
3236
3244
|
type: I.value
|
|
@@ -3305,7 +3313,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3305
3313
|
"aria-label": a.value ? void 0 : i.value,
|
|
3306
3314
|
"aria-busy": t.value === "loading" || void 0
|
|
3307
3315
|
}, [
|
|
3308
|
-
a.value ? (v(), oe(
|
|
3316
|
+
a.value ? (v(), oe(Te, {
|
|
3309
3317
|
key: 0,
|
|
3310
3318
|
src: e.src,
|
|
3311
3319
|
alt: e.alt ?? "",
|
|
@@ -3334,10 +3342,10 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3334
3342
|
emits: /* @__PURE__ */ ue(["focus", "blur", "change", "click"], ["update:modelValue"]),
|
|
3335
3343
|
setup(e, { emit: n }) {
|
|
3336
3344
|
const t = ke(e, "modelValue"), a = e, o = n, i = M(!1);
|
|
3337
|
-
ee(i, (
|
|
3338
|
-
|
|
3345
|
+
ee(i, (D) => {
|
|
3346
|
+
D ? document.addEventListener("mousedown", O) : document.removeEventListener("mousedown", O);
|
|
3339
3347
|
});
|
|
3340
|
-
const l = lt(), r = M(!1), s = M(null), c = V(() => a.id ?? he()), u = `${c.value}-label`, h = `${c.value}-listbox`, m = `${c.value}-error`, p = `${c.value}-hint`, C = `${c.value}-value`, L = M(null), S = M(null), I = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = V(() => L.value !== null ? `${h}-option-${L.value}` : void 0), B = Ke(l).value, g = V(() => B ? `${p} ${c.value}-required-hint` : p),
|
|
3348
|
+
const l = lt(), r = M(!1), s = M(null), c = V(() => a.id ?? he()), u = `${c.value}-label`, h = `${c.value}-listbox`, m = `${c.value}-error`, p = `${c.value}-hint`, C = `${c.value}-value`, L = M(null), S = M(null), I = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = V(() => L.value !== null ? `${h}-option-${L.value}` : void 0), B = Ke(l).value, g = V(() => B ? `${p} ${c.value}-required-hint` : p), _ = V(() => i.value && k.value ? k.value : void 0), N = V(() => S.value !== null ? a.options[S.value]?.value : "");
|
|
3341
3349
|
ee(
|
|
3342
3350
|
() => t.value,
|
|
3343
3351
|
() => ne()
|
|
@@ -3346,56 +3354,56 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3346
3354
|
() => ne(),
|
|
3347
3355
|
{ deep: !0 }
|
|
3348
3356
|
);
|
|
3349
|
-
const J = (
|
|
3350
|
-
r.value = !0, o("focus",
|
|
3351
|
-
}, ae = (
|
|
3352
|
-
const w =
|
|
3353
|
-
!
|
|
3354
|
-
}, F = (
|
|
3355
|
-
i.value = !i.value, i.value && t.value.toString().length > 0 && (L.value = L.value ?? a.options.findIndex((w) => !w.disabled)), !(!a.options || a.options.length === 0) && o("click",
|
|
3356
|
-
}, A = (
|
|
3357
|
-
const
|
|
3358
|
-
!
|
|
3359
|
-
}, x = (
|
|
3360
|
-
if (!i.value && ["ArrowDown", "ArrowUp"].includes(
|
|
3361
|
-
i.value = !0, L.value = L.value ?? a.options.findIndex((w) => !w.disabled),
|
|
3357
|
+
const J = (D) => {
|
|
3358
|
+
r.value = !0, o("focus", D);
|
|
3359
|
+
}, ae = (D) => {
|
|
3360
|
+
const w = D.relatedTarget, T = s.value;
|
|
3361
|
+
!T || T?.contains(w) || (r.value = !1, i.value = !1, o("blur", D));
|
|
3362
|
+
}, F = (D) => {
|
|
3363
|
+
i.value = !i.value, i.value && t.value.toString().length > 0 && (L.value = L.value ?? a.options.findIndex((w) => !w.disabled)), !(!a.options || a.options.length === 0) && o("click", D);
|
|
3364
|
+
}, A = (D, w) => {
|
|
3365
|
+
const T = s.value;
|
|
3366
|
+
!T || D.disabled || (S.value = w, L.value = w, D && D.key && D.key.toString().length > 0 ? T.classList.add("filled") : T.classList.remove("filled"), t.value = D.key, o("change", D.key));
|
|
3367
|
+
}, x = (D) => {
|
|
3368
|
+
if (!i.value && ["ArrowDown", "ArrowUp"].includes(D.key)) {
|
|
3369
|
+
i.value = !0, L.value = L.value ?? a.options.findIndex((w) => !w.disabled), D.preventDefault();
|
|
3362
3370
|
return;
|
|
3363
3371
|
}
|
|
3364
3372
|
if (i.value) {
|
|
3365
|
-
if (
|
|
3373
|
+
if (D.key === "ArrowDown" && (H(1), D.preventDefault()), D.key === "ArrowUp" && (H(-1), D.preventDefault()), D.key === "Home") {
|
|
3366
3374
|
const w = z();
|
|
3367
|
-
w >= 0 && (L.value = w),
|
|
3375
|
+
w >= 0 && (L.value = w), D.preventDefault();
|
|
3368
3376
|
}
|
|
3369
|
-
if (
|
|
3377
|
+
if (D.key === "End") {
|
|
3370
3378
|
const w = le();
|
|
3371
|
-
w >= 0 && (L.value = w),
|
|
3379
|
+
w >= 0 && (L.value = w), D.preventDefault();
|
|
3372
3380
|
}
|
|
3373
|
-
if (
|
|
3381
|
+
if (D.key === "Enter" || D.key === " ") {
|
|
3374
3382
|
if (L.value === null) return;
|
|
3375
3383
|
const w = a.options[L.value];
|
|
3376
3384
|
if (!w || w.disabled) return;
|
|
3377
|
-
A(w, L.value), i.value = !1,
|
|
3385
|
+
A(w, L.value), i.value = !1, D.preventDefault();
|
|
3378
3386
|
}
|
|
3379
|
-
|
|
3387
|
+
D.key === "Escape" && (i.value = !1);
|
|
3380
3388
|
}
|
|
3381
|
-
}, H = (
|
|
3389
|
+
}, H = (D) => {
|
|
3382
3390
|
if (L.value === null) return;
|
|
3383
3391
|
let w = L.value;
|
|
3384
3392
|
do
|
|
3385
|
-
w +=
|
|
3393
|
+
w += D;
|
|
3386
3394
|
while (w >= 0 && w < a.options.length && a.options[w]?.disabled);
|
|
3387
3395
|
w >= 0 && w < a.options.length && (L.value = w);
|
|
3388
|
-
}, z = () => a.options.findIndex((
|
|
3396
|
+
}, z = () => a.options.findIndex((D) => !D.disabled), le = () => [...a.options].reverse().findIndex((D) => !D.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((D) => !D.disabled) : -1, O = (D) => {
|
|
3389
3397
|
const w = s.value;
|
|
3390
|
-
!w || w.contains(
|
|
3398
|
+
!w || w.contains(D.target) || (i.value = !1);
|
|
3391
3399
|
};
|
|
3392
|
-
|
|
3400
|
+
_e(() => {
|
|
3393
3401
|
document.removeEventListener("mousedown", O);
|
|
3394
3402
|
});
|
|
3395
3403
|
const ne = () => {
|
|
3396
|
-
const
|
|
3397
|
-
if (
|
|
3398
|
-
S.value =
|
|
3404
|
+
const D = a.options.findIndex((w) => w.key === t.value);
|
|
3405
|
+
if (D > -1) {
|
|
3406
|
+
S.value = D, L.value = D;
|
|
3399
3407
|
const w = s.value;
|
|
3400
3408
|
w && w.classList.add("filled");
|
|
3401
3409
|
}
|
|
@@ -3405,25 +3413,25 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3405
3413
|
if (!a.options || a.options.length === 0) return;
|
|
3406
3414
|
ne();
|
|
3407
3415
|
}
|
|
3408
|
-
}), (
|
|
3416
|
+
}), (D, w) => (v(), b("div", {
|
|
3409
3417
|
ref_key: "selectRef",
|
|
3410
3418
|
ref: s,
|
|
3411
|
-
class: fe(["select-box", { required: Object.keys(
|
|
3419
|
+
class: fe(["select-box", { required: Object.keys(D.$attrs).includes("required"), error: e.invalid, filled: I.value, focused: r.value }])
|
|
3412
3420
|
}, [
|
|
3413
3421
|
$("button", ye({
|
|
3414
3422
|
id: c.value,
|
|
3415
3423
|
class: "select-btn",
|
|
3416
3424
|
role: "combobox",
|
|
3417
3425
|
type: "button"
|
|
3418
|
-
},
|
|
3426
|
+
}, D.$attrs, {
|
|
3419
3427
|
"aria-haspopup": "listbox",
|
|
3420
3428
|
"aria-expanded": i.value,
|
|
3421
3429
|
"aria-controls": h,
|
|
3422
3430
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3423
3431
|
"aria-labelledby": `${u} ${C}`,
|
|
3424
3432
|
"aria-required": E(B),
|
|
3425
|
-
"aria-describedby": E(st)(
|
|
3426
|
-
"aria-activedescendant":
|
|
3433
|
+
"aria-describedby": E(st)(D.$props, D.$slots, m, g.value).value,
|
|
3434
|
+
"aria-activedescendant": _.value,
|
|
3427
3435
|
"aria-disabled": E(l).disabled ? "true" : void 0,
|
|
3428
3436
|
onBlur: ae,
|
|
3429
3437
|
onFocus: J,
|
|
@@ -3449,23 +3457,23 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3449
3457
|
], 16, On),
|
|
3450
3458
|
P(Ee, { name: "select" }, {
|
|
3451
3459
|
default: te(() => [
|
|
3452
|
-
|
|
3460
|
+
Re($("ul", {
|
|
3453
3461
|
id: h,
|
|
3454
3462
|
role: "listbox",
|
|
3455
3463
|
class: "options"
|
|
3456
3464
|
}, [
|
|
3457
|
-
(v(!0), b(ce, null, Ce(e.options, (
|
|
3465
|
+
(v(!0), b(ce, null, Ce(e.options, (T, Q) => (v(), b("li", {
|
|
3458
3466
|
id: `${h}-option-${Q}`,
|
|
3459
3467
|
key: Q,
|
|
3460
3468
|
role: "option",
|
|
3461
3469
|
class: fe(["option", { "focus-visible": L.value === Q }]),
|
|
3462
|
-
"aria-disabled":
|
|
3470
|
+
"aria-disabled": T.disabled,
|
|
3463
3471
|
"aria-selected": S.value === Q,
|
|
3464
|
-
onClick: (d) => !
|
|
3472
|
+
onClick: (d) => !T.disabled && A(T, Q)
|
|
3465
3473
|
}, [
|
|
3466
3474
|
$("div", {
|
|
3467
3475
|
class: "option-value",
|
|
3468
|
-
innerHTML:
|
|
3476
|
+
innerHTML: T.value
|
|
3469
3477
|
}, null, 8, Un)
|
|
3470
3478
|
], 10, Kn))), 128))
|
|
3471
3479
|
], 512), [
|
|
@@ -3476,7 +3484,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3476
3484
|
}),
|
|
3477
3485
|
P(it, { hintId: p }, {
|
|
3478
3486
|
default: te(() => [
|
|
3479
|
-
Y(
|
|
3487
|
+
Y(D.$slots, "hint", {}, void 0, !0)
|
|
3480
3488
|
]),
|
|
3481
3489
|
_: 3
|
|
3482
3490
|
}),
|
|
@@ -3572,7 +3580,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3572
3580
|
onAfterEnter: I
|
|
3573
3581
|
}, {
|
|
3574
3582
|
default: te(() => [
|
|
3575
|
-
h.value ? (v(), oe(
|
|
3583
|
+
h.value ? (v(), oe(Te, {
|
|
3576
3584
|
key: h.value.src,
|
|
3577
3585
|
src: h.value.src,
|
|
3578
3586
|
alt: h.value.alt || "",
|
|
@@ -3592,20 +3600,20 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3592
3600
|
class: "rs-gallery-caption"
|
|
3593
3601
|
}, K(h.value.title), 1)) : q("", !0),
|
|
3594
3602
|
e.showThumbnails ? (v(), b("ul", Xn, [
|
|
3595
|
-
(v(!0), b(ce, null, Ce(e.images, (g,
|
|
3603
|
+
(v(!0), b(ce, null, Ce(e.images, (g, _) => (v(), b("li", {
|
|
3596
3604
|
key: g.src,
|
|
3597
3605
|
ref_for: !0,
|
|
3598
|
-
ref: (N) => m(N,
|
|
3599
|
-
"aria-selected": u.value ===
|
|
3606
|
+
ref: (N) => m(N, _),
|
|
3607
|
+
"aria-selected": u.value === _
|
|
3600
3608
|
}, [
|
|
3601
3609
|
$("button", {
|
|
3602
3610
|
type: "button",
|
|
3603
|
-
class: fe(["rs-gallery-thumb", { active: u.value ===
|
|
3604
|
-
onClick: (N) => p(
|
|
3611
|
+
class: fe(["rs-gallery-thumb", { active: u.value === _ }]),
|
|
3612
|
+
onClick: (N) => p(_)
|
|
3605
3613
|
}, [
|
|
3606
|
-
P(
|
|
3614
|
+
P(Te, {
|
|
3607
3615
|
src: g.src,
|
|
3608
|
-
alt: `Select image ${
|
|
3616
|
+
alt: `Select image ${_ + 1}`,
|
|
3609
3617
|
transform: e.transformThumbnails
|
|
3610
3618
|
}, null, 8, ["src", "alt", "transform"])
|
|
3611
3619
|
], 10, Jn)
|
|
@@ -3640,7 +3648,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
|
|
|
3640
3648
|
class: "grid-item",
|
|
3641
3649
|
onClick: (i) => n.$emit("change", o)
|
|
3642
3650
|
}, [
|
|
3643
|
-
P(
|
|
3651
|
+
P(Te, {
|
|
3644
3652
|
src: a.src,
|
|
3645
3653
|
alt: a.alt || "",
|
|
3646
3654
|
transform: e.transform
|
|
@@ -3771,7 +3779,7 @@ const nt = Z({
|
|
|
3771
3779
|
setup(e, { slots: n }) {
|
|
3772
3780
|
return () => j("div", { class: "modal-header" }, n.default?.());
|
|
3773
3781
|
}
|
|
3774
|
-
}),
|
|
3782
|
+
}), Rt = Z({
|
|
3775
3783
|
name: "ModalBody",
|
|
3776
3784
|
setup(e, { slots: n }) {
|
|
3777
3785
|
return () => j("div", { class: "modal-body" }, n.default?.());
|
|
@@ -3781,7 +3789,7 @@ const nt = Z({
|
|
|
3781
3789
|
setup(e, { slots: n }) {
|
|
3782
3790
|
return () => j("div", { class: "modal-footer" }, n.default?.());
|
|
3783
3791
|
}
|
|
3784
|
-
}),
|
|
3792
|
+
}), Dt = Z({
|
|
3785
3793
|
name: "ModalClose",
|
|
3786
3794
|
setup() {
|
|
3787
3795
|
const e = me(Ue);
|
|
@@ -3800,7 +3808,7 @@ const nt = Z({
|
|
|
3800
3808
|
});
|
|
3801
3809
|
Object.assign(nt, {
|
|
3802
3810
|
install(e) {
|
|
3803
|
-
e.component("Modal", nt), e.component("ModalBody",
|
|
3811
|
+
e.component("Modal", nt), e.component("ModalBody", Rt), e.component("ModalTitle", Bt), e.component("ModalClose", Dt), e.component("ModalHeader", At), e.component("ModalContent", Vt);
|
|
3804
3812
|
}
|
|
3805
3813
|
});
|
|
3806
3814
|
const n2 = /* @__PURE__ */ Z({
|
|
@@ -3845,11 +3853,11 @@ const n2 = /* @__PURE__ */ Z({
|
|
|
3845
3853
|
])]),
|
|
3846
3854
|
_: 1
|
|
3847
3855
|
}),
|
|
3848
|
-
P(E(
|
|
3856
|
+
P(E(Dt))
|
|
3849
3857
|
]),
|
|
3850
3858
|
_: 1
|
|
3851
3859
|
}),
|
|
3852
|
-
P(E(
|
|
3860
|
+
P(E(Rt), null, {
|
|
3853
3861
|
default: te(() => [
|
|
3854
3862
|
P(It, {
|
|
3855
3863
|
modelValue: n.value,
|
|
@@ -3890,7 +3898,7 @@ const n2 = /* @__PURE__ */ Z({
|
|
|
3890
3898
|
key: a.src,
|
|
3891
3899
|
class: "masonry-item"
|
|
3892
3900
|
}, [
|
|
3893
|
-
P(
|
|
3901
|
+
P(Te, {
|
|
3894
3902
|
src: a.src,
|
|
3895
3903
|
alt: a.alt || "",
|
|
3896
3904
|
transform: e.transform
|
|
@@ -4121,7 +4129,7 @@ const u2 = ["aria-busy"], c2 = {
|
|
|
4121
4129
|
$("textarea", ye({ id: e.id }, I.$attrs, {
|
|
4122
4130
|
class: "custom-textarea",
|
|
4123
4131
|
onFocus: k[0] || (k[0] = (B) => E(An)(B, s.value, i)),
|
|
4124
|
-
onBlur: k[1] || (k[1] = (B) => E(
|
|
4132
|
+
onBlur: k[1] || (k[1] = (B) => E(Rn)(B, r.value, s.value, i)),
|
|
4125
4133
|
onInput: L,
|
|
4126
4134
|
value: t.value,
|
|
4127
4135
|
required: E(m),
|
|
@@ -4148,7 +4156,7 @@ const u2 = ["aria-busy"], c2 = {
|
|
|
4148
4156
|
}, null, 8, ["invalid", "errorMessage"])
|
|
4149
4157
|
], 2));
|
|
4150
4158
|
}
|
|
4151
|
-
}),
|
|
4159
|
+
}), Rl = /* @__PURE__ */ W(k2, [["__scopeId", "data-v-3615613f"]]), w2 = { key: 0 }, M2 = { key: 1 }, L2 = /* @__PURE__ */ Z({
|
|
4152
4160
|
__name: "Highlight",
|
|
4153
4161
|
props: {
|
|
4154
4162
|
text: {},
|
|
@@ -4191,7 +4199,7 @@ const u2 = ["aria-busy"], c2 = {
|
|
|
4191
4199
|
label: "The passwords must match.",
|
|
4192
4200
|
validator: (e, n) => e === n && e.length > 0
|
|
4193
4201
|
}
|
|
4194
|
-
], I2 = { class: "password-validation" }, H2 = { class: "password-rules" }, V2 = ["data-rule"], B2 = { class: "strength-meter" }, A2 = { class: "strength-top" },
|
|
4202
|
+
], I2 = { class: "password-validation" }, H2 = { class: "password-rules" }, V2 = ["data-rule"], B2 = { class: "strength-meter" }, A2 = { class: "strength-top" }, R2 = /* @__PURE__ */ Z({
|
|
4195
4203
|
__name: "PasswordValidator",
|
|
4196
4204
|
props: {
|
|
4197
4205
|
id: {},
|
|
@@ -4272,31 +4280,31 @@ const u2 = ["aria-busy"], c2 = {
|
|
|
4272
4280
|
])
|
|
4273
4281
|
]));
|
|
4274
4282
|
}
|
|
4275
|
-
}), bt = /* @__PURE__ */ W(
|
|
4283
|
+
}), bt = /* @__PURE__ */ W(R2, [["__scopeId", "data-v-e7569cc0"]]);
|
|
4276
4284
|
bt.install = (e) => {
|
|
4277
4285
|
e.component("PasswordValidator", bt);
|
|
4278
4286
|
};
|
|
4279
|
-
const
|
|
4287
|
+
const D2 = {
|
|
4280
4288
|
class: "ui-breadcrumb",
|
|
4281
4289
|
"aria-label": "Breadcrumb"
|
|
4282
|
-
}, S2 = { class: "ui-breadcrumb__list" },
|
|
4290
|
+
}, S2 = { class: "ui-breadcrumb__list" }, T2 = {
|
|
4283
4291
|
key: 0,
|
|
4284
4292
|
class: "ui-breadcrumb__separator",
|
|
4285
4293
|
"aria-hidden": "true"
|
|
4286
|
-
},
|
|
4294
|
+
}, _2 = /* @__PURE__ */ Z({
|
|
4287
4295
|
__name: "Breadcrumb",
|
|
4288
4296
|
props: {
|
|
4289
4297
|
items: {},
|
|
4290
4298
|
separator: { default: "/" }
|
|
4291
4299
|
},
|
|
4292
4300
|
setup(e) {
|
|
4293
|
-
const n = e, t = me(Ft), a = (r) => r === n.items.length - 1, o = (r, s) => i(r, s), i = (r, s) => a(s) || r.disabled ? "span" : r.to && t ?
|
|
4301
|
+
const n = e, t = me(Ft), a = (r) => r === n.items.length - 1, o = (r, s) => i(r, s), i = (r, s) => a(s) || r.disabled ? "span" : r.to && t ? _t("RouterLink") : r.href ? "a" : "span", l = (r, s) => a(s) || r.disabled ? { "data-disabled": r.disabled || void 0 } : r.to ? { to: r.to } : r.href ? {
|
|
4294
4302
|
href: r.href,
|
|
4295
4303
|
target: r.external ? "_blank" : void 0,
|
|
4296
4304
|
rel: r.external ? "noopener noreferrer" : void 0,
|
|
4297
4305
|
"aria-label": r.external ? `${r.label} (opens in a new tab)` : void 0
|
|
4298
4306
|
} : {};
|
|
4299
|
-
return (r, s) => (v(), b("nav",
|
|
4307
|
+
return (r, s) => (v(), b("nav", D2, [
|
|
4300
4308
|
$("ol", S2, [
|
|
4301
4309
|
(v(!0), b(ce, null, Ce(e.items, (c, u) => (v(), b("li", {
|
|
4302
4310
|
key: c.to ?? c.href ?? `${c.label}-${u}`,
|
|
@@ -4313,7 +4321,7 @@ const R2 = {
|
|
|
4313
4321
|
]),
|
|
4314
4322
|
_: 2
|
|
4315
4323
|
}, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
|
|
4316
|
-
a(u) ? q("", !0) : (v(), b("span",
|
|
4324
|
+
a(u) ? q("", !0) : (v(), b("span", T2, [
|
|
4317
4325
|
Y(r.$slots, "separator", {}, () => [
|
|
4318
4326
|
Me(K(e.separator), 1)
|
|
4319
4327
|
], !0)
|
|
@@ -4322,7 +4330,7 @@ const R2 = {
|
|
|
4322
4330
|
])
|
|
4323
4331
|
]));
|
|
4324
4332
|
}
|
|
4325
|
-
}),
|
|
4333
|
+
}), Dl = /* @__PURE__ */ W(_2, [["__scopeId", "data-v-baed1592"]]), E2 = ["aria-invalid", "aria-required", "disabled"], Z2 = { class: "sr-only" }, z2 = ["name", "value", "disabled", "required"], N2 = {
|
|
4326
4334
|
key: 0,
|
|
4327
4335
|
class: "radio-control",
|
|
4328
4336
|
"aria-hidden": "true"
|
|
@@ -4356,7 +4364,7 @@ const R2 = {
|
|
|
4356
4364
|
key: s.key,
|
|
4357
4365
|
class: fe(["radio", { checked: t.value === s.key, disabled: e.disabled || s.disabled }])
|
|
4358
4366
|
}, [
|
|
4359
|
-
|
|
4367
|
+
Re($("input", {
|
|
4360
4368
|
type: "radio",
|
|
4361
4369
|
class: "radio-input",
|
|
4362
4370
|
name: e.name,
|
|
@@ -4424,7 +4432,7 @@ const R2 = {
|
|
|
4424
4432
|
const t = e, a = n, o = ke(e, "modelValue"), i = M(null), l = M(""), r = M(!1), s = M([]), c = M(null), u = M(null), h = V(() => t.id ? `${t.id}-search-history` : "search-history"), p = `${he()}-list`, C = M(!1), L = V(() => o.value !== null && o.value !== void 0 && o.value !== ""), S = V(() => c.value !== null ? `${p}-option-${c.value}` : void 0), I = V(() => r.value && S.value ? S.value : void 0), k = V(() => s.value.length > 0), B = V(() => {
|
|
4425
4433
|
if (!t.filterable) return t.options;
|
|
4426
4434
|
const w = l.value.toLowerCase();
|
|
4427
|
-
return t.options.filter((
|
|
4435
|
+
return t.options.filter((T) => t.getValue(T).toLowerCase().includes(w));
|
|
4428
4436
|
}), g = Ke(t).value;
|
|
4429
4437
|
ee(
|
|
4430
4438
|
() => h.value,
|
|
@@ -4454,57 +4462,57 @@ const R2 = {
|
|
|
4454
4462
|
o.value || (u.value = null, c.value = null);
|
|
4455
4463
|
}
|
|
4456
4464
|
);
|
|
4457
|
-
const
|
|
4465
|
+
const _ = (w) => {
|
|
4458
4466
|
l.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), C.value = !0, a("focus", w);
|
|
4459
4467
|
}, N = (w) => {
|
|
4460
|
-
const
|
|
4461
|
-
i.value?.contains(
|
|
4462
|
-
}, J = (w,
|
|
4468
|
+
const T = w.relatedTarget;
|
|
4469
|
+
i.value?.contains(T) || (r.value = !1, o.value ? x() : l.value = "", C.value = !1, a("blur", w));
|
|
4470
|
+
}, J = (w, T) => {
|
|
4463
4471
|
const Q = i.value;
|
|
4464
4472
|
if (!Q || t.isDisabled(w)) return;
|
|
4465
|
-
r.value = !1, z(l.value), u.value =
|
|
4473
|
+
r.value = !1, z(l.value), u.value = T, c.value = T;
|
|
4466
4474
|
const d = t.getKey(w);
|
|
4467
4475
|
d && d.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), l.value = t.getValue(w), o.value = d, a("select", d);
|
|
4468
4476
|
}, ae = (w) => {
|
|
4469
4477
|
if (!r.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
|
|
4470
|
-
r.value = !0, c.value = c.value ?? B.value.findIndex((
|
|
4478
|
+
r.value = !0, c.value = c.value ?? B.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
|
|
4471
4479
|
return;
|
|
4472
4480
|
}
|
|
4473
4481
|
if (r.value) {
|
|
4474
4482
|
if (w.key === "ArrowDown" && (F(1), w.preventDefault()), w.key === "ArrowUp" && (F(-1), w.preventDefault()), w.key === "Home") {
|
|
4475
|
-
const
|
|
4476
|
-
|
|
4483
|
+
const T = ne();
|
|
4484
|
+
T >= 0 && (c.value = T), w.preventDefault();
|
|
4477
4485
|
}
|
|
4478
4486
|
if (w.key === "End") {
|
|
4479
|
-
const
|
|
4480
|
-
|
|
4487
|
+
const T = D();
|
|
4488
|
+
T >= 0 && (c.value = T), w.preventDefault();
|
|
4481
4489
|
}
|
|
4482
4490
|
if (w.key === "Enter") {
|
|
4483
4491
|
if (c.value === null) return;
|
|
4484
|
-
const
|
|
4485
|
-
if (!
|
|
4486
|
-
J(
|
|
4492
|
+
const T = B.value[c.value];
|
|
4493
|
+
if (!T || t.isDisabled(T)) return;
|
|
4494
|
+
J(T, c.value), r.value = !1, w.preventDefault();
|
|
4487
4495
|
}
|
|
4488
4496
|
w.key === "Escape" && (r.value = !1);
|
|
4489
4497
|
}
|
|
4490
4498
|
}, F = (w) => {
|
|
4491
4499
|
if (c.value === null) return;
|
|
4492
|
-
let
|
|
4500
|
+
let T = c.value;
|
|
4493
4501
|
do
|
|
4494
|
-
|
|
4495
|
-
while (
|
|
4496
|
-
|
|
4502
|
+
T += w;
|
|
4503
|
+
while (T >= 0 && T < B.value.length && t.isDisabled(B.value[T]));
|
|
4504
|
+
T >= 0 && T < B.value.length && (c.value = T);
|
|
4497
4505
|
}, A = () => {
|
|
4498
4506
|
l.value.length === 0 && (o.value = ""), l.value.length >= t.minChars ? (a("change", l.value), r.value = !0) : r.value = !1;
|
|
4499
4507
|
}, x = () => {
|
|
4500
4508
|
if (o.value.toString().length === 0) return;
|
|
4501
|
-
const w = t.options.findIndex((
|
|
4509
|
+
const w = t.options.findIndex((T) => t.getKey(T) === o.value);
|
|
4502
4510
|
w > -1 ? (c.value = w, u.value = w, l.value = t.getValue(t.options[w])) : l.value = o.value.toString();
|
|
4503
4511
|
};
|
|
4504
4512
|
ee(
|
|
4505
4513
|
[() => t.options.length, () => o.value],
|
|
4506
|
-
async ([w,
|
|
4507
|
-
|
|
4514
|
+
async ([w, T]) => {
|
|
4515
|
+
T && (await $e(), x());
|
|
4508
4516
|
},
|
|
4509
4517
|
{ flush: "post", immediate: !0 }
|
|
4510
4518
|
);
|
|
@@ -4513,18 +4521,18 @@ const R2 = {
|
|
|
4513
4521
|
}, z = (w) => {
|
|
4514
4522
|
!w || w.trim().length === 0 || (s.value = [
|
|
4515
4523
|
w,
|
|
4516
|
-
...s.value.filter((
|
|
4524
|
+
...s.value.filter((T) => T !== w)
|
|
4517
4525
|
].slice(0, t.suggestionsLimit), localStorage.setItem(h.value, JSON.stringify(s.value)));
|
|
4518
4526
|
}, le = (w) => {
|
|
4519
4527
|
l.value = w, A();
|
|
4520
4528
|
}, O = () => {
|
|
4521
4529
|
const w = ne();
|
|
4522
4530
|
w >= 0 && (c.value = w);
|
|
4523
|
-
}, ne = () => B.value.findIndex((w) => !t.isDisabled(w)),
|
|
4531
|
+
}, ne = () => B.value.findIndex((w) => !t.isDisabled(w)), D = () => {
|
|
4524
4532
|
for (let w = B.value.length - 1; w >= 0; w--) if (!t.isDisabled(B.value[w])) return w;
|
|
4525
4533
|
return -1;
|
|
4526
4534
|
};
|
|
4527
|
-
return de(() => x()), (w,
|
|
4535
|
+
return de(() => x()), (w, T) => (v(), b("div", {
|
|
4528
4536
|
class: fe(["autocomplete", { required: E(g), error: e.invalid, "has-icon": Object.keys(w.$slots).includes("icon"), filled: L.value, focused: C.value }]),
|
|
4529
4537
|
ref_key: "autocompleteRef",
|
|
4530
4538
|
ref: i
|
|
@@ -4533,7 +4541,7 @@ const R2 = {
|
|
|
4533
4541
|
for: e.id,
|
|
4534
4542
|
class: "label"
|
|
4535
4543
|
}, K(e.label), 9, O2),
|
|
4536
|
-
|
|
4544
|
+
Re($("input", ye({
|
|
4537
4545
|
id: e.id,
|
|
4538
4546
|
type: e.type
|
|
4539
4547
|
}, w.$attrs, {
|
|
@@ -4546,8 +4554,8 @@ const R2 = {
|
|
|
4546
4554
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
4547
4555
|
disabled: e.disabled ? !0 : void 0,
|
|
4548
4556
|
"aria-disabled": e.disabled ? !0 : void 0,
|
|
4549
|
-
"onUpdate:modelValue":
|
|
4550
|
-
onFocus:
|
|
4557
|
+
"onUpdate:modelValue": T[0] || (T[0] = (Q) => l.value = Q),
|
|
4558
|
+
onFocus: _,
|
|
4551
4559
|
onBlur: N,
|
|
4552
4560
|
onInput: A,
|
|
4553
4561
|
onKeydown: ae
|
|
@@ -4556,7 +4564,7 @@ const R2 = {
|
|
|
4556
4564
|
]),
|
|
4557
4565
|
P(Ee, { name: "select" }, {
|
|
4558
4566
|
default: te(() => [
|
|
4559
|
-
|
|
4567
|
+
Re($("ul", {
|
|
4560
4568
|
id: p,
|
|
4561
4569
|
role: "listbox",
|
|
4562
4570
|
class: "options"
|
|
@@ -4568,7 +4576,7 @@ const R2 = {
|
|
|
4568
4576
|
class: fe(["option", { "focus-visible": c.value === d }]),
|
|
4569
4577
|
"aria-disabled": t.isDisabled(Q) || void 0,
|
|
4570
4578
|
"aria-selected": d === u.value,
|
|
4571
|
-
onMousedown:
|
|
4579
|
+
onMousedown: T[1] || (T[1] = ve(() => {
|
|
4572
4580
|
}, ["prevent"])),
|
|
4573
4581
|
onClick: (f) => !t.isDisabled(Q) && J(Q, d)
|
|
4574
4582
|
}, [
|
|
@@ -4592,7 +4600,7 @@ const R2 = {
|
|
|
4592
4600
|
])
|
|
4593
4601
|
], !0),
|
|
4594
4602
|
$("div", j2, K(e.getValue(Q)), 1)
|
|
4595
|
-
], 42, K2))), 128)) : B.value.length === 0 && !e.loading ? (v(), b("li", W2, [...
|
|
4603
|
+
], 42, K2))), 128)) : B.value.length === 0 && !e.loading ? (v(), b("li", W2, [...T[3] || (T[3] = [
|
|
4596
4604
|
$("div", { class: "option-value" }, "No results found", -1)
|
|
4597
4605
|
])])) : (v(), oe(St, {
|
|
4598
4606
|
key: 2,
|
|
@@ -4600,7 +4608,7 @@ const R2 = {
|
|
|
4600
4608
|
role: "status",
|
|
4601
4609
|
message: "Loading"
|
|
4602
4610
|
})),
|
|
4603
|
-
k.value ? (v(), b("li", Y2, [...
|
|
4611
|
+
k.value ? (v(), b("li", Y2, [...T[4] || (T[4] = [
|
|
4604
4612
|
$("div", { class: "option-value" }, " Recents ", -1)
|
|
4605
4613
|
])])) : q("", !0),
|
|
4606
4614
|
(v(!0), b(ce, null, Ce(s.value, (Q) => (v(), b("li", {
|
|
@@ -4629,7 +4637,7 @@ const R2 = {
|
|
|
4629
4637
|
"aria-label": "Clear search query",
|
|
4630
4638
|
title: "Clear search query",
|
|
4631
4639
|
"\\": "",
|
|
4632
|
-
onMousedown:
|
|
4640
|
+
onMousedown: T[2] || (T[2] = ve(() => {
|
|
4633
4641
|
}, ["prevent"])),
|
|
4634
4642
|
onClick: H
|
|
4635
4643
|
}, {
|
|
@@ -4645,7 +4653,7 @@ const R2 = {
|
|
|
4645
4653
|
})) : q("", !0)
|
|
4646
4654
|
], 2));
|
|
4647
4655
|
}
|
|
4648
|
-
}),
|
|
4656
|
+
}), Tl = /* @__PURE__ */ W(Q2, [["__scopeId", "data-v-7b61315b"]]), eo = 5, we = Lt({
|
|
4649
4657
|
toasts: []
|
|
4650
4658
|
});
|
|
4651
4659
|
let to = 0;
|
|
@@ -4657,7 +4665,7 @@ const Se = (e, n = "info") => {
|
|
|
4657
4665
|
variant: n
|
|
4658
4666
|
};
|
|
4659
4667
|
return we.toasts.push(t), we.toasts.length > eo && we.toasts.shift(), t.id;
|
|
4660
|
-
}, ao = (e, n) => we.toasts = we.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t),
|
|
4668
|
+
}, ao = (e, n) => we.toasts = we.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t), _l = Object.assign(
|
|
4661
4669
|
(e) => Se(e),
|
|
4662
4670
|
{
|
|
4663
4671
|
update: ao,
|
|
@@ -4709,7 +4717,7 @@ const Se = (e, n = "info") => {
|
|
|
4709
4717
|
const c = () => {
|
|
4710
4718
|
cancelAnimationFrame(l), a.value = "closing", setTimeout(() => we.toasts = we.toasts.filter((u) => u.id !== n.id), ro);
|
|
4711
4719
|
};
|
|
4712
|
-
return de(() => n.variant === "error" && n.focus && t.value?.focus()),
|
|
4720
|
+
return de(() => n.variant === "error" && n.focus && t.value?.focus()), _e(() => cancelAnimationFrame(l)), (u, h) => (v(), b("div", {
|
|
4713
4721
|
ref_key: "rootRef",
|
|
4714
4722
|
ref: t,
|
|
4715
4723
|
tabindex: "-1",
|
|
@@ -4938,16 +4946,16 @@ const El = {
|
|
|
4938
4946
|
}));
|
|
4939
4947
|
}, k = () => {
|
|
4940
4948
|
if (!o.value || !i.value) return;
|
|
4941
|
-
const g = i.value.getBoundingClientRect(),
|
|
4949
|
+
const g = i.value.getBoundingClientRect(), _ = t.stepsRef.value.getBoundingClientRect(), N = t.orientation === "vertical" ? g.top + g.height / 2 - _.top : g.left + g.width / 2 - _.left;
|
|
4942
4950
|
t.registerIndicatorCenter(c, N);
|
|
4943
4951
|
}, B = (g) => {
|
|
4944
|
-
const
|
|
4952
|
+
const _ = t.orientation === "horizontal", N = t.orientation === "vertical";
|
|
4945
4953
|
switch (g.key) {
|
|
4946
4954
|
case "ArrowRight":
|
|
4947
|
-
|
|
4955
|
+
_ && t.focusNext();
|
|
4948
4956
|
break;
|
|
4949
4957
|
case "ArrowLeft":
|
|
4950
|
-
|
|
4958
|
+
_ && t.focusPrev();
|
|
4951
4959
|
break;
|
|
4952
4960
|
case "ArrowDown":
|
|
4953
4961
|
N && t.focusNext();
|
|
@@ -4974,7 +4982,7 @@ const El = {
|
|
|
4974
4982
|
}), s.observe(o.value), s.observe(i.value), t.stepsRef.value && s.observe(t.stepsRef.value), t.registerStep(o.value));
|
|
4975
4983
|
}), Ve(() => {
|
|
4976
4984
|
s?.disconnect(), t.unregisterStep(o.value), r != null && cancelAnimationFrame(r);
|
|
4977
|
-
}), (g,
|
|
4985
|
+
}), (g, _) => (v(), b("li", {
|
|
4978
4986
|
ref_key: "stepRef",
|
|
4979
4987
|
ref: o,
|
|
4980
4988
|
class: fe(["step", `step__${L.value}`]),
|
|
@@ -5005,12 +5013,12 @@ const El = {
|
|
|
5005
5013
|
name: m.value,
|
|
5006
5014
|
class: "icon"
|
|
5007
5015
|
}, null, 8, ["name"])) : q("", !0),
|
|
5008
|
-
u.value === "completed" ? (v(), b("svg", bo, [...
|
|
5016
|
+
u.value === "completed" ? (v(), b("svg", bo, [..._[0] || (_[0] = [
|
|
5009
5017
|
$("path", {
|
|
5010
5018
|
d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
|
|
5011
5019
|
fill: "currentColor"
|
|
5012
5020
|
}, null, -1)
|
|
5013
|
-
])])) : u.value === "error" ? (v(), b("svg", ko, [...
|
|
5021
|
+
])])) : u.value === "error" ? (v(), b("svg", ko, [..._[1] || (_[1] = [
|
|
5014
5022
|
$("path", {
|
|
5015
5023
|
d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
|
|
5016
5024
|
fill: "currentColor"
|
|
@@ -5053,7 +5061,7 @@ const El = {
|
|
|
5053
5061
|
"aria-live": "polite",
|
|
5054
5062
|
"aria-atomic": "true",
|
|
5055
5063
|
class: "sr-only"
|
|
5056
|
-
},
|
|
5064
|
+
}, Ro = /* @__PURE__ */ Z({
|
|
5057
5065
|
__name: "Steps",
|
|
5058
5066
|
props: /* @__PURE__ */ ue({
|
|
5059
5067
|
orientation: { default: "horizontal" },
|
|
@@ -5117,7 +5125,7 @@ const El = {
|
|
|
5117
5125
|
function g(F) {
|
|
5118
5126
|
F < 0 || F >= i.value.length || (o.value = F, i.value[F]?.focus());
|
|
5119
5127
|
}
|
|
5120
|
-
function
|
|
5128
|
+
function _() {
|
|
5121
5129
|
g(o.value + 1);
|
|
5122
5130
|
}
|
|
5123
5131
|
function N() {
|
|
@@ -5147,7 +5155,7 @@ const El = {
|
|
|
5147
5155
|
registerIndicatorCenter: I,
|
|
5148
5156
|
registerStep: k,
|
|
5149
5157
|
unregisterStep: B,
|
|
5150
|
-
focusNext:
|
|
5158
|
+
focusNext: _,
|
|
5151
5159
|
focusPrev: N,
|
|
5152
5160
|
focusFirst: J,
|
|
5153
5161
|
focusLast: ae,
|
|
@@ -5191,7 +5199,7 @@ const El = {
|
|
|
5191
5199
|
$("div", Ao, " Step " + K(r.value + 1) + " of " + K(t.value) + ": " + K(m.value), 1)
|
|
5192
5200
|
], 64));
|
|
5193
5201
|
}
|
|
5194
|
-
}), Ol = /* @__PURE__ */ W(
|
|
5202
|
+
}), Ol = /* @__PURE__ */ W(Ro, [["__scopeId", "data-v-2fa0f578"]]), Do = ["data-align"], So = /* @__PURE__ */ Z({
|
|
5195
5203
|
__name: "Timeline",
|
|
5196
5204
|
props: {
|
|
5197
5205
|
align: { default: "left" }
|
|
@@ -5203,9 +5211,9 @@ const El = {
|
|
|
5203
5211
|
"data-align": e.align
|
|
5204
5212
|
}, [
|
|
5205
5213
|
Y(t.$slots, "default", {}, void 0, !0)
|
|
5206
|
-
], 8,
|
|
5214
|
+
], 8, Do));
|
|
5207
5215
|
}
|
|
5208
|
-
}), Pl = /* @__PURE__ */ W(So, [["__scopeId", "data-v-d56deb2b"]]),
|
|
5216
|
+
}), Pl = /* @__PURE__ */ W(So, [["__scopeId", "data-v-d56deb2b"]]), To = ["data-align", "aria-labelledby", "aria-describedby"], _o = { class: "ui-timeline-content" }, Eo = ["datetime"], Zo = { class: "ui-timeline-date--month" }, zo = { class: "ui-timeline-date--day" }, No = { class: "ui-timeline-date--year" }, qo = ["data-direction"], Fo = { class: "info" }, Oo = ["id"], Po = { class: "addons" }, Ko = /* @__PURE__ */ Z({
|
|
5209
5217
|
__name: "TimelineItem",
|
|
5210
5218
|
props: {
|
|
5211
5219
|
date: {},
|
|
@@ -5233,7 +5241,7 @@ const El = {
|
|
|
5233
5241
|
class: "ui-timeline-marker",
|
|
5234
5242
|
"aria-hidden": "true"
|
|
5235
5243
|
}, null, -1)),
|
|
5236
|
-
$("div",
|
|
5244
|
+
$("div", _o, [
|
|
5237
5245
|
e.date ? (v(), b("time", {
|
|
5238
5246
|
key: 0,
|
|
5239
5247
|
class: "ui-timeline-date",
|
|
@@ -5272,7 +5280,7 @@ const El = {
|
|
|
5272
5280
|
])
|
|
5273
5281
|
], 8, qo)
|
|
5274
5282
|
])
|
|
5275
|
-
], 10,
|
|
5283
|
+
], 10, To));
|
|
5276
5284
|
}
|
|
5277
5285
|
}), Kl = /* @__PURE__ */ W(Ko, [["__scopeId", "data-v-10599410"]]), Uo = ["aria-label", "aria-activedescendant"], jo = { class: "carousel-viewport" }, Wo = {
|
|
5278
5286
|
class: "sr-only",
|
|
@@ -5309,7 +5317,7 @@ const El = {
|
|
|
5309
5317
|
() => n.value,
|
|
5310
5318
|
(d) => C.value = d
|
|
5311
5319
|
);
|
|
5312
|
-
const B = V(() => m.value[C.value] ?? void 0), g = V(() => Math.floor(C.value / p.value)),
|
|
5320
|
+
const B = V(() => m.value[C.value] ?? void 0), g = V(() => Math.floor(C.value / p.value)), _ = V(() => Math.ceil(le.value / p.value)), N = V(() => Math.max(0, le.value - p.value)), J = V(() => {
|
|
5313
5321
|
const d = C.value * (100 / p.value), f = u.value && S.value ? i.value / S.value.clientWidth * 100 : 0;
|
|
5314
5322
|
return {
|
|
5315
5323
|
transform: `translateX(calc(-${d}% + ${f}%))`,
|
|
@@ -5318,8 +5326,8 @@ const El = {
|
|
|
5318
5326
|
}), ae = (d) => {
|
|
5319
5327
|
let f = d;
|
|
5320
5328
|
if (t.loop) {
|
|
5321
|
-
const y = Math.round(d / p.value),
|
|
5322
|
-
f = (y %
|
|
5329
|
+
const y = Math.round(d / p.value), R = _.value;
|
|
5330
|
+
f = (y % R + R) % R * p.value;
|
|
5323
5331
|
} else
|
|
5324
5332
|
f = Math.min(
|
|
5325
5333
|
Math.max(d, 0),
|
|
@@ -5334,19 +5342,19 @@ const El = {
|
|
|
5334
5342
|
}, t.autoplayDelay));
|
|
5335
5343
|
}, ne = () => {
|
|
5336
5344
|
I !== null && (clearInterval(I), I = null);
|
|
5337
|
-
},
|
|
5345
|
+
}, D = (d) => {
|
|
5338
5346
|
if (typeof t.itemsPerView == "number")
|
|
5339
5347
|
return t.itemsPerView;
|
|
5340
|
-
const f = Object.entries(t.itemsPerView).map(([
|
|
5348
|
+
const f = Object.entries(t.itemsPerView).map(([R, U]) => [Number(R), U]).sort((R, U) => R[0] - U[0]);
|
|
5341
5349
|
let y = f[0]?.[1] ?? 1;
|
|
5342
|
-
for (const [
|
|
5350
|
+
for (const [R, U] of f) d >= R && (y = U);
|
|
5343
5351
|
return y;
|
|
5344
5352
|
}, w = (d) => {
|
|
5345
5353
|
d.button === 0 && (u.value = !0, o.value = d.clientX, a.value = d.clientX, s.value = d.clientX, i.value = 0, l.value = performance.now(), r.value = 0, h.value = C.value, S.value?.setPointerCapture(d.pointerId), ne(), S.value.style.userSelect = "");
|
|
5346
|
-
},
|
|
5354
|
+
}, T = (d) => {
|
|
5347
5355
|
if (!u.value) return;
|
|
5348
|
-
const f = performance.now(), y = d.clientX - a.value,
|
|
5349
|
-
|
|
5356
|
+
const f = performance.now(), y = d.clientX - a.value, R = f - l.value;
|
|
5357
|
+
R > 0 && (r.value = y / R), a.value = d.clientX, l.value = f, s.value = d.clientX, i.value = s.value - o.value;
|
|
5350
5358
|
}, Q = (d) => {
|
|
5351
5359
|
if (!u.value) return;
|
|
5352
5360
|
u.value = !1, S.value?.releasePointerCapture(d.pointerId), S.value.style.userSelect = "";
|
|
@@ -5356,7 +5364,7 @@ const El = {
|
|
|
5356
5364
|
return de(() => {
|
|
5357
5365
|
O(), L.value && (k = new ResizeObserver((d) => {
|
|
5358
5366
|
const f = d[0]?.contentRect.width;
|
|
5359
|
-
f !== void 0 && (p.value =
|
|
5367
|
+
f !== void 0 && (p.value = D(f));
|
|
5360
5368
|
}), k.observe(L.value));
|
|
5361
5369
|
}), Ve(() => {
|
|
5362
5370
|
ne(), k?.disconnect();
|
|
@@ -5400,14 +5408,14 @@ const El = {
|
|
|
5400
5408
|
class: "carousel-track",
|
|
5401
5409
|
style: Ie(J.value),
|
|
5402
5410
|
onPointerdown: w,
|
|
5403
|
-
onPointermove:
|
|
5411
|
+
onPointermove: T,
|
|
5404
5412
|
onPointerup: Q,
|
|
5405
5413
|
onPointercancel: Q
|
|
5406
5414
|
}, [
|
|
5407
5415
|
Y(d.$slots, "default", {}, void 0, !0)
|
|
5408
5416
|
], 36)
|
|
5409
5417
|
]),
|
|
5410
|
-
$("span", Wo, " Slide " + K(Math.floor(C.value / p.value) + 1) + " of " + K(
|
|
5418
|
+
$("span", Wo, " Slide " + K(Math.floor(C.value / p.value) + 1) + " of " + K(_.value), 1),
|
|
5411
5419
|
$("button", {
|
|
5412
5420
|
type: "button",
|
|
5413
5421
|
class: "carousel-control prev",
|
|
@@ -5425,18 +5433,18 @@ const El = {
|
|
|
5425
5433
|
P(pe, { name: "directionDown" })
|
|
5426
5434
|
]),
|
|
5427
5435
|
e.showIndicators ? (v(), b("div", Yo, [
|
|
5428
|
-
(v(!0), b(ce, null, Ce(
|
|
5436
|
+
(v(!0), b(ce, null, Ce(_.value, (y, R) => (v(), b("button", {
|
|
5429
5437
|
role: "tab",
|
|
5430
5438
|
type: "button",
|
|
5431
|
-
key:
|
|
5432
|
-
class: fe(["indicator", { active:
|
|
5433
|
-
"aria-label": `Go to slide ${
|
|
5434
|
-
"aria-selected":
|
|
5435
|
-
"aria-current":
|
|
5436
|
-
onClick: (U) => ae(
|
|
5439
|
+
key: R,
|
|
5440
|
+
class: fe(["indicator", { active: R === Math.floor(C.value / p.value) }]),
|
|
5441
|
+
"aria-label": `Go to slide ${R + 1}`,
|
|
5442
|
+
"aria-selected": R === g.value,
|
|
5443
|
+
"aria-current": R === g.value,
|
|
5444
|
+
onClick: (U) => ae(R * p.value),
|
|
5437
5445
|
onKeydown: [
|
|
5438
|
-
be(ve((U) => ae((
|
|
5439
|
-
be(ve((U) => ae((
|
|
5446
|
+
be(ve((U) => ae((R - 1 + _.value) % _.value * p.value), ["prevent"]), ["left"]),
|
|
5447
|
+
be(ve((U) => ae((R + 1) % _.value * p.value), ["prevent"]), ["right"])
|
|
5440
5448
|
]
|
|
5441
5449
|
}, null, 42, Xo))), 128))
|
|
5442
5450
|
])) : q("", !0)
|
|
@@ -5712,7 +5720,7 @@ const El = {
|
|
|
5712
5720
|
prevMonth: () => o.value = new Date(o.value.getFullYear(), o.value.getMonth() - 1, 1),
|
|
5713
5721
|
select: (m) => a.value = m
|
|
5714
5722
|
};
|
|
5715
|
-
},
|
|
5723
|
+
}, Tt = /(DD|MM|YYYY|HH|mm|ss)/g, tt = (e, n) => {
|
|
5716
5724
|
const t = {
|
|
5717
5725
|
DD: String(e.getDate()).padStart(2, "0"),
|
|
5718
5726
|
MM: String(e.getMonth() + 1).padStart(2, "0"),
|
|
@@ -5736,7 +5744,7 @@ function ol(e, n, t, a = 1900, o = 2100) {
|
|
|
5736
5744
|
return l.getFullYear() === t && l.getMonth() === n - 1 && l.getDate() === e;
|
|
5737
5745
|
}
|
|
5738
5746
|
const ll = (e, n) => {
|
|
5739
|
-
const t = e.replace(/\D/g, ""), a = n.match(
|
|
5747
|
+
const t = e.replace(/\D/g, ""), a = n.match(Tt);
|
|
5740
5748
|
if (!a) return e;
|
|
5741
5749
|
let o = "", i = 0;
|
|
5742
5750
|
for (const l of a) {
|
|
@@ -5749,7 +5757,7 @@ const ll = (e, n) => {
|
|
|
5749
5757
|
}
|
|
5750
5758
|
return o;
|
|
5751
5759
|
}, rl = (e) => {
|
|
5752
|
-
const n = e.match(
|
|
5760
|
+
const n = e.match(Tt);
|
|
5753
5761
|
return n ? n.reduce((t, a) => t + a.length, 0) : 0;
|
|
5754
5762
|
}, sl = ["for"], il = ["id", "value", "required", "aria-invalid", "disabled", "data-disabled", "placeholder"], ul = {
|
|
5755
5763
|
key: 0,
|
|
@@ -5818,23 +5826,23 @@ const ll = (e, n) => {
|
|
|
5818
5826
|
if (!A) return "";
|
|
5819
5827
|
const x = [];
|
|
5820
5828
|
return c.value && B(A, c.value) && x.push("dp-selected"), B(A, l) && x.push("dp-today"), x.join(" ");
|
|
5821
|
-
}, B = (A, x) => A.getFullYear() === x.getFullYear() && A.getMonth() === x.getMonth() && A.getDate() === x.getDate(), g = (A) => A.key === "Escape" && (i.value = !1),
|
|
5829
|
+
}, B = (A, x) => A.getFullYear() === x.getFullYear() && A.getMonth() === x.getMonth() && A.getDate() === x.getDate(), g = (A) => A.key === "Escape" && (i.value = !1), _ = (A) => {
|
|
5822
5830
|
A.key === "Backspace" || A.key === "Delete" || A.key === "ArrowLeft" || A.key === "ArrowRight" || A.key === "Tab" || /[0-9]/.test(A.key) || A.preventDefault();
|
|
5823
5831
|
}, N = (A) => {
|
|
5824
5832
|
const x = A.target, H = x.selectionStart ?? 0, le = x.value.slice(0, H).replace(/\D/g, "").length;
|
|
5825
5833
|
let O = x.value.replace(/\D/g, "");
|
|
5826
5834
|
const ne = rl(o.format);
|
|
5827
5835
|
O = O.slice(0, ne);
|
|
5828
|
-
const
|
|
5829
|
-
r.value =
|
|
5830
|
-
let w = 0,
|
|
5831
|
-
for (let d = 0; d <
|
|
5832
|
-
if (/\d/.test(
|
|
5836
|
+
const D = ll(O, o.format);
|
|
5837
|
+
r.value = D, x.value = D;
|
|
5838
|
+
let w = 0, T = 0;
|
|
5839
|
+
for (let d = 0; d < D.length; d++)
|
|
5840
|
+
if (/\d/.test(D[d] ?? "") && T++, T >= le) {
|
|
5833
5841
|
w = d + 1;
|
|
5834
5842
|
break;
|
|
5835
5843
|
}
|
|
5836
5844
|
requestAnimationFrame(() => x.setSelectionRange(w, w));
|
|
5837
|
-
const Q = Mt(
|
|
5845
|
+
const Q = Mt(D, o.format);
|
|
5838
5846
|
Q && (c.value = Q, t.value = Q);
|
|
5839
5847
|
}, J = () => {
|
|
5840
5848
|
i.value || (i.value = !0, a("update:open", !0));
|
|
@@ -5844,7 +5852,7 @@ const ll = (e, n) => {
|
|
|
5844
5852
|
const A = Mt(r.value, o.format);
|
|
5845
5853
|
!A && !c.value ? (r.value = "", t.value = null, c.value = null) : A && (c.value = A, t.value = A, r.value = tt(A, o.format));
|
|
5846
5854
|
};
|
|
5847
|
-
return de(() => document.addEventListener("mousedown", ae)),
|
|
5855
|
+
return de(() => document.addEventListener("mousedown", ae)), _e(() => document.removeEventListener("mousedown", ae)), (A, x) => (v(), b("div", {
|
|
5848
5856
|
ref_key: "root",
|
|
5849
5857
|
ref: s,
|
|
5850
5858
|
class: fe(["dp", { required: Object.keys(A.$attrs).includes("required"), error: e.invalid }])
|
|
@@ -5859,7 +5867,7 @@ const ll = (e, n) => {
|
|
|
5859
5867
|
value: r.value,
|
|
5860
5868
|
onBlur: F,
|
|
5861
5869
|
onInput: N,
|
|
5862
|
-
onKeydown:
|
|
5870
|
+
onKeydown: _,
|
|
5863
5871
|
onMousedown: J,
|
|
5864
5872
|
required: Object.keys(A.$attrs).includes("required") || void 0,
|
|
5865
5873
|
"aria-invalid": !c.value && r.value !== "",
|
|
@@ -5993,7 +6001,7 @@ const ll = (e, n) => {
|
|
|
5993
6001
|
};
|
|
5994
6002
|
return de(() => {
|
|
5995
6003
|
document.addEventListener("mousedown", p);
|
|
5996
|
-
}),
|
|
6004
|
+
}), _e(() => {
|
|
5997
6005
|
document.removeEventListener("mousedown", p);
|
|
5998
6006
|
}), (I, k) => (v(), b("div", {
|
|
5999
6007
|
class: "dtp",
|
|
@@ -6015,7 +6023,7 @@ const ll = (e, n) => {
|
|
|
6015
6023
|
}), {
|
|
6016
6024
|
time: te(() => [
|
|
6017
6025
|
o.value ? (v(), b("div", hl, [
|
|
6018
|
-
l.value ?
|
|
6026
|
+
l.value ? Re((v(), b("input", {
|
|
6019
6027
|
key: 0,
|
|
6020
6028
|
id: `hour_${E(a)}`,
|
|
6021
6029
|
type: "number",
|
|
@@ -6036,7 +6044,7 @@ const ll = (e, n) => {
|
|
|
6036
6044
|
]
|
|
6037
6045
|
]) : q("", !0),
|
|
6038
6046
|
l.value && r.value ? (v(), b("span", yl, ":")) : q("", !0),
|
|
6039
|
-
r.value ?
|
|
6047
|
+
r.value ? Re((v(), b("input", {
|
|
6040
6048
|
key: 2,
|
|
6041
6049
|
id: `minute_${E(a)}`,
|
|
6042
6050
|
type: "number",
|
|
@@ -6057,7 +6065,7 @@ const ll = (e, n) => {
|
|
|
6057
6065
|
]
|
|
6058
6066
|
]) : q("", !0),
|
|
6059
6067
|
(l.value || r.value) && s.value ? (v(), b("span", kl, ":")) : q("", !0),
|
|
6060
|
-
s.value ?
|
|
6068
|
+
s.value ? Re((v(), b("input", {
|
|
6061
6069
|
key: 4,
|
|
6062
6070
|
id: `second_${E(a)}`,
|
|
6063
6071
|
type: "number",
|
|
@@ -6376,7 +6384,7 @@ const ll = (e, n) => {
|
|
|
6376
6384
|
};
|
|
6377
6385
|
return de(() => {
|
|
6378
6386
|
a.value && t.registerHeader(a.value);
|
|
6379
|
-
}),
|
|
6387
|
+
}), _e(() => {
|
|
6380
6388
|
a.value && t.unregisterHeader(a.value);
|
|
6381
6389
|
}), () => j(
|
|
6382
6390
|
"button",
|
|
@@ -6438,9 +6446,9 @@ export {
|
|
|
6438
6446
|
nr as AccordionHeader,
|
|
6439
6447
|
ar as AccordionItem,
|
|
6440
6448
|
or as AccordionPanel,
|
|
6441
|
-
|
|
6449
|
+
Tl as Autocomplete,
|
|
6442
6450
|
Hl as Avatar,
|
|
6443
|
-
|
|
6451
|
+
Dl as Breadcrumb,
|
|
6444
6452
|
Le as Button,
|
|
6445
6453
|
ht as ButtonMenu,
|
|
6446
6454
|
Zl as Card,
|
|
@@ -6459,13 +6467,13 @@ export {
|
|
|
6459
6467
|
mt as Editor,
|
|
6460
6468
|
x2 as Highlight,
|
|
6461
6469
|
pe as Icon,
|
|
6462
|
-
|
|
6470
|
+
Te as Image,
|
|
6463
6471
|
yt as ImageGallery,
|
|
6464
6472
|
Il as Input,
|
|
6465
6473
|
$l as Link,
|
|
6466
6474
|
nt as Modal,
|
|
6467
|
-
|
|
6468
|
-
|
|
6475
|
+
Rt as ModalBody,
|
|
6476
|
+
Dt as ModalClose,
|
|
6469
6477
|
Vt as ModalContent,
|
|
6470
6478
|
Bl as ModalFooter,
|
|
6471
6479
|
At as ModalHeader,
|
|
@@ -6482,7 +6490,7 @@ export {
|
|
|
6482
6490
|
Yl as TabsList,
|
|
6483
6491
|
Xl as TabsTrigger,
|
|
6484
6492
|
mn as Tag,
|
|
6485
|
-
|
|
6493
|
+
Rl as Textarea,
|
|
6486
6494
|
Pl as Timeline,
|
|
6487
6495
|
Kl as TimelineItem,
|
|
6488
6496
|
El as ToastPlugin,
|
|
@@ -6490,5 +6498,5 @@ export {
|
|
|
6490
6498
|
dt as Toggle,
|
|
6491
6499
|
Ct as Tooltip,
|
|
6492
6500
|
pt as Upload,
|
|
6493
|
-
|
|
6501
|
+
_l as toast
|
|
6494
6502
|
};
|