maz-ui 3.44.0 → 3.44.2
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/components/MazAccordion.mjs +25 -25
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +9 -9
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.mjs +22 -22
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazReadingProgressBar.mjs +1 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazAvatar-BU1nJFcV.mjs → MazAvatar-CoT6WIl0.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DUOIusEi.mjs → MazBottomSheet-DpI8wFgc.mjs} +1 -1
- package/components/chunks/MazBtn-BIVlttu0.mjs +150 -0
- package/components/chunks/MazBtn-BQ7aH6Qe.mjs +158 -0
- package/components/chunks/{MazBtn-5BSKOcqG.mjs → MazBtn-BXDpaXn1.mjs} +44 -44
- package/components/chunks/MazBtn-C7RDTnn-.mjs +150 -0
- package/components/chunks/{MazBtn-BY8WCtM7.mjs → MazBtn-CPkNymJj.mjs} +44 -44
- package/components/chunks/{MazBtn-C5G78zLg.mjs → MazBtn-CQSo596y.mjs} +44 -44
- package/components/chunks/MazBtn-D2tIsob2.mjs +150 -0
- package/components/chunks/MazBtn-DRTBFUgW.mjs +150 -0
- package/components/chunks/{MazBtn-f1mBXJeU.mjs → MazBtn-Dfz-5FeI.mjs} +23 -26
- package/components/chunks/{MazBtn-CeVwyYR5.mjs → MazBtn-Vas62hFD.mjs} +44 -44
- package/components/chunks/MazBtn-gE-drZkE.mjs +150 -0
- package/components/chunks/{MazCard-BWxV_Z-i.mjs → MazCard-BBwohtCJ.mjs} +1 -1
- package/components/chunks/{MazCarousel-D5EmW7Sa.mjs → MazCarousel-DJ_nQfy4.mjs} +1 -1
- package/components/chunks/{MazCheckbox-D3PXkt75.mjs → MazCheckbox-BK1MX0uq.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BWiMbecz.mjs → MazCheckbox-D3Fm-BFu.mjs} +1 -1
- package/components/chunks/{MazDialog-CLWKCphI.mjs → MazDialog-DXaeCp-b.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-DVOJwdVp.mjs → MazDialogPromise-Bgxjg9ss.mjs} +2 -2
- package/components/chunks/{MazDropzone-Dm2IirHm.mjs → MazDropzone-D0W0dlgY.mjs} +2 -3
- package/components/chunks/{MazGallery-Bn9p1gNb.mjs → MazGallery-CBE4wD7D.mjs} +3 -4
- package/components/chunks/{MazGallery-BlfPe8WG.mjs → MazGallery-Din0Z37d.mjs} +4 -5
- package/components/chunks/{MazIcon-D3umgnku.mjs → MazIcon-CTjWIkTp.mjs} +1 -1
- package/components/chunks/{MazIcon-B8A0hQAH.mjs → MazIcon-CUOwXGOK.mjs} +1 -1
- package/components/chunks/{MazInput-BpsE-mdg.mjs → MazInput-D177bUMh.mjs} +44 -44
- package/components/chunks/{MazInputNumber-DGBYbDSX.mjs → MazInputNumber-CstQGS8u.mjs} +121 -121
- package/components/chunks/{MazInputPrice-j2BNMeFp.mjs → MazInputPrice-Bp7ie9jm.mjs} +48 -48
- package/components/chunks/{MazInputTags-CJofVaj5.mjs → MazInputTags-C7nZucYu.mjs} +63 -63
- package/components/chunks/{MazLazyImg-Dboc6Xfz.mjs → MazLazyImg-DADMg49z.mjs} +3 -4
- package/components/chunks/{MazLazyImg-BFG6FIJZ.mjs → MazLazyImg-xLPMdfif.mjs} +4 -5
- package/components/chunks/{MazPagination-C6ZehQSZ.mjs → MazPagination-NbHR41CQ.mjs} +44 -44
- package/components/chunks/{MazPhoneNumberInput-DpWoNQfx.mjs → MazPhoneNumberInput-BGo-vcnD.mjs} +61 -61
- package/components/chunks/{MazPicker-ia2BEmm5.mjs → MazPicker-CJBezF2t.mjs} +173 -198
- package/components/chunks/{MazPickerMonthSwitcher-CKtfZ_m-.mjs → MazPickerMonthSwitcher-DZPHWTJt.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Cc9VoqBw.mjs → MazPickerShortcuts-CBEmYjPG.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-0b5Wrem9.mjs → MazPickerYearSwitcher-Ynp2qf3F.mjs} +1 -1
- package/components/chunks/{MazSelect-COJoKXbV.mjs → MazSelect-D4TuCHwj.mjs} +29 -29
- package/components/chunks/{MazSpinner-BaAMq7LI.mjs → MazSpinner--h9DYpGx.mjs} +1 -1
- package/components/chunks/{MazSpinner-BZOjTZBN.mjs → MazSpinner-6pxbKImG.mjs} +1 -1
- package/components/chunks/{MazSpinner-RvDGcBng.mjs → MazSpinner-BVd7-OTu.mjs} +1 -1
- package/components/chunks/MazSpinner-C6T_enKo.mjs +37 -0
- package/components/chunks/{MazSpinner-DkXequnp.mjs → MazSpinner-C8x7LsHq.mjs} +1 -1
- package/components/chunks/{MazSpinner-V-bFi71W.mjs → MazSpinner-CLz4ccD0.mjs} +1 -1
- package/components/chunks/MazSpinner-CmJlBqgH.mjs +37 -0
- package/components/chunks/MazSpinner-D4gpZ7vL.mjs +37 -0
- package/components/chunks/{MazSpinner-CNIlbDfg.mjs → MazSpinner-D8k_MENa.mjs} +1 -1
- package/components/chunks/MazSpinner-DGxqly6h.mjs +37 -0
- package/components/chunks/{MazSpinner-9Jue6cel.mjs → MazSpinner-DVkxyBoy.mjs} +1 -1
- package/components/chunks/{MazSpinner-BGPOws6a.mjs → MazSpinner-DjR5FVqo.mjs} +1 -1
- package/components/chunks/MazSpinner-DnVHWljy.mjs +37 -0
- package/components/chunks/{MazSpinner-C41VyUup.mjs → MazSpinner-DneKNmrs.mjs} +1 -1
- package/components/chunks/MazSpinner-Q02SOFkL.mjs +37 -0
- package/components/chunks/{MazSpinner-EA5ejB8F.mjs → MazSpinner-T1t1bpbm.mjs} +1 -1
- package/components/chunks/{MazSpinner-BWYdqSMP.mjs → MazSpinner-dFnsq52G.mjs} +1 -1
- package/components/chunks/MazSpinner-iA4Rz7K5.mjs +37 -0
- package/components/chunks/{MazSpinner-DHQH6Bhz.mjs → MazSpinner-rAqBu92m.mjs} +1 -1
- package/components/chunks/MazSpinner-va5G9enA.mjs +37 -0
- package/components/chunks/{MazTable-DRUj_PZp.mjs → MazTable-BPMuTZbS.mjs} +305 -305
- package/components/chunks/{MazTransitionExpand-B08cSrmL.mjs → MazTransitionExpand-CYyEf_hd.mjs} +1 -1
- package/css/main.css +2 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-1g7UvzQ_.mjs +150 -0
- package/modules/chunks/{MazBtn-BbCGGxkK.cjs → MazBtn-BKk3IsoH.cjs} +2 -2
- package/modules/chunks/{MazIcon-BDSXZYZ8.cjs → MazIcon-BEnQqDG6.cjs} +1 -1
- package/modules/chunks/{MazIcon-C2ch3jUS.mjs → MazIcon-BdDO3aVl.mjs} +1 -1
- package/modules/chunks/{MazSpinner-C9_xSbZZ.mjs → MazSpinner--BVvGFIO.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BiyFRA4w.cjs → MazSpinner-PMlxvkWb.cjs} +1 -1
- package/modules/chunks/index-D5F2dSFa.cjs +124 -0
- package/modules/chunks/{index-Cwbjspv3.mjs → index-D7R1dvsf.mjs} +347 -347
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +3 -3
- package/nuxt/index.mjs +1 -1
- package/nuxt/types.d.mts +6 -12
- package/nuxt/types.d.ts +6 -12
- package/package.json +10 -10
- package/types/modules/composables/use-timer.d.ts +6 -1
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
- package/components/chunks/MazBtn-B1-sTc7F.mjs +0 -155
- package/components/chunks/MazBtn-ColLVUca.mjs +0 -150
- package/components/chunks/MazBtn-DJhQqzja.mjs +0 -150
- package/components/chunks/MazBtn-DuY28-0U.mjs +0 -150
- package/components/chunks/MazBtn-h3WmmaEO.mjs +0 -150
- package/components/chunks/MazBtn-zyRLUViT.mjs +0 -150
- package/components/chunks/MazSpinner-Bad2n-0k.mjs +0 -37
- package/components/chunks/MazSpinner-C6StE-Mb.mjs +0 -37
- package/components/chunks/MazSpinner-Cz2DHV6g.mjs +0 -37
- package/components/chunks/MazSpinner-D4CdHpP2.mjs +0 -37
- package/components/chunks/MazSpinner-DRj2VpGA.mjs +0 -37
- package/components/chunks/MazSpinner-aPFlrc5E.mjs +0 -37
- package/components/chunks/MazSpinner-nOD-7_sU.mjs +0 -37
- package/components/chunks/MazSpinner-yZGK-AQe.mjs +0 -37
- package/modules/chunks/MazBtn-UBHTKqaN.mjs +0 -150
- package/modules/chunks/index-tnjajVkX.cjs +0 -124
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/index.css';var Ge = Object.defineProperty;
|
|
2
2
|
var Je = (s, e, t) => e in s ? Ge(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
-
var a = (s, e, t) =>
|
|
4
|
-
import { inject as et, createVNode as
|
|
3
|
+
var a = (s, e, t) => Je(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { inject as et, createVNode as U, render as re, nextTick as tt, defineComponent as De, defineAsyncComponent as k, ref as h, computed as f, watch as ke, onMounted as de, onBeforeUnmount as Me, openBlock as z, createElementBlock as W, withModifiers as H, withKeys as st, withDirectives as Pe, unref as O, vShow as $e, createCommentVNode as x, createElementVNode as D, normalizeClass as Ee, createBlock as q, Transition as nt, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as ot, normalizeStyle as rt, getCurrentInstance as at, onUnmounted as lt } from "vue";
|
|
5
5
|
function Se(s, e) {
|
|
6
6
|
const t = et(s, e);
|
|
7
7
|
if (!t)
|
|
@@ -22,16 +22,16 @@ function ct(s) {
|
|
|
22
22
|
function _e(s, e) {
|
|
23
23
|
let t = e == null ? void 0 : e.element;
|
|
24
24
|
function n() {
|
|
25
|
-
t &&
|
|
25
|
+
t && re(null, t);
|
|
26
26
|
}
|
|
27
|
-
const i =
|
|
27
|
+
const i = U(
|
|
28
28
|
s,
|
|
29
29
|
{ ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} },
|
|
30
30
|
e == null ? void 0 : e.children
|
|
31
31
|
);
|
|
32
|
-
return e != null && e.app ? (i.appContext = e.app._context, t ?
|
|
32
|
+
return e != null && e.app ? (i.appContext = e.app._context, t ? re(i, t) : typeof document < "u" && (t = document.createElement("div"), re(i, t))) : (t = t ?? document.body, re(i, t)), { vNode: i, destroy: n, el: t };
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function E() {
|
|
35
35
|
return typeof document < "u";
|
|
36
36
|
}
|
|
37
37
|
class ut {
|
|
@@ -82,13 +82,13 @@ class ut {
|
|
|
82
82
|
this.callback = e, this.options = {
|
|
83
83
|
...this.defaultOptions,
|
|
84
84
|
...t
|
|
85
|
-
},
|
|
85
|
+
}, E() && this.start();
|
|
86
86
|
}
|
|
87
87
|
get element() {
|
|
88
88
|
return this.options.element ?? document.body;
|
|
89
89
|
}
|
|
90
90
|
start() {
|
|
91
|
-
if (!
|
|
91
|
+
if (!E()) {
|
|
92
92
|
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
@@ -107,7 +107,7 @@ class ut {
|
|
|
107
107
|
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle });
|
|
108
108
|
}
|
|
109
109
|
destroy() {
|
|
110
|
-
if (!
|
|
110
|
+
if (!E()) {
|
|
111
111
|
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
@@ -156,10 +156,10 @@ class mt {
|
|
|
156
156
|
this.callback = e, this.options = {
|
|
157
157
|
...this.defaultOptions,
|
|
158
158
|
...t
|
|
159
|
-
}, this.eventHandlerFunction = this.eventHandler.bind(this),
|
|
159
|
+
}, this.eventHandlerFunction = this.eventHandler.bind(this), E() && this.start();
|
|
160
160
|
}
|
|
161
161
|
start() {
|
|
162
|
-
if (!
|
|
162
|
+
if (!E()) {
|
|
163
163
|
console.warn("[UserVisibility](start) you should run this method on client side");
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
@@ -301,8 +301,8 @@ class ht {
|
|
|
301
301
|
this.runCallbacks(e), this.emitValuesChanged();
|
|
302
302
|
}
|
|
303
303
|
runCallbacks(e) {
|
|
304
|
-
var t, n, i, o,
|
|
305
|
-
typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? (n = (t = this.options).onLeft) == null || n.call(t, e) : (o = (i = this.options).onRight) == null || o.call(i, e) : this.yDiff > 0 ? (c = (
|
|
304
|
+
var t, n, i, o, r, c, m, v;
|
|
305
|
+
typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? (n = (t = this.options).onLeft) == null || n.call(t, e) : (o = (i = this.options).onRight) == null || o.call(i, e) : this.yDiff > 0 ? (c = (r = this.options).onUp) == null || c.call(r, e) : (v = (m = this.options).onDown) == null || v.call(m, e), this.resetValues());
|
|
306
306
|
}
|
|
307
307
|
resetValues() {
|
|
308
308
|
this.xStart = void 0, this.yStart = void 0, this.xEnd = void 0, this.yEnd = void 0, this.xDiff = void 0, this.yDiff = void 0, this.emitValuesChanged();
|
|
@@ -381,7 +381,7 @@ function xe(s, e) {
|
|
|
381
381
|
i = i.normalize(o);
|
|
382
382
|
return i;
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const me = "__maz-click-outside__";
|
|
385
385
|
function Fe() {
|
|
386
386
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
387
387
|
}
|
|
@@ -391,12 +391,12 @@ async function Ne(s, e) {
|
|
|
391
391
|
const t = e.instance, n = e.value, i = typeof n == "function";
|
|
392
392
|
if (!i)
|
|
393
393
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
394
|
-
await tt(), s[
|
|
395
|
-
if ((!s ||
|
|
396
|
-
return n.call(t,
|
|
394
|
+
await tt(), s[me] = (r) => {
|
|
395
|
+
if ((!s || r.target && !s.contains(r.target)) && n && i)
|
|
396
|
+
return n.call(t, r);
|
|
397
397
|
};
|
|
398
398
|
const o = Fe();
|
|
399
|
-
document.addEventListener(o, s[
|
|
399
|
+
document.addEventListener(o, s[me], { passive: !0 });
|
|
400
400
|
} catch (t) {
|
|
401
401
|
console.error("[maz-ui](vClickOutside)", t);
|
|
402
402
|
}
|
|
@@ -404,7 +404,7 @@ async function Ne(s, e) {
|
|
|
404
404
|
function Ve(s) {
|
|
405
405
|
try {
|
|
406
406
|
const e = Fe();
|
|
407
|
-
document.removeEventListener(e, s[
|
|
407
|
+
document.removeEventListener(e, s[me], !1), delete s[me];
|
|
408
408
|
} catch (e) {
|
|
409
409
|
console.error("[maz-ui](vClickOutside)", e);
|
|
410
410
|
}
|
|
@@ -428,14 +428,14 @@ const pt = {
|
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
function Be(s, e, t) {
|
|
431
|
-
var
|
|
431
|
+
var r;
|
|
432
432
|
s.stopPropagation();
|
|
433
433
|
const n = typeof t.value == "function" ? t.value : t.value.handler, i = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
434
434
|
let o = !1;
|
|
435
435
|
if (i && i.length > 0) {
|
|
436
436
|
for (const c of i)
|
|
437
437
|
if (!o && s.target instanceof HTMLElement) {
|
|
438
|
-
const m = (
|
|
438
|
+
const m = (r = document.querySelector(c)) == null ? void 0 : r.getAttribute("id");
|
|
439
439
|
o = s.target.getAttribute("id") === m;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
@@ -498,17 +498,17 @@ class Ue {
|
|
|
498
498
|
e.removeAttribute("data-tooltip"), e.classList.remove("m-tooltip"), e.classList.remove("m-tooltip--top"), e.classList.remove("m-tooltip--bottom"), e.classList.remove("m-tooltip--left"), e.classList.remove("m-tooltip--right"), e.classList.remove("m-tooltip--open"), e.classList.remove(`m-tooltip--${this.getColor(t)}`);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
let
|
|
501
|
+
let ae;
|
|
502
502
|
const ks = {
|
|
503
503
|
beforeMount(s, e) {
|
|
504
504
|
const t = typeof e.value == "object" ? e.value : {};
|
|
505
|
-
return
|
|
505
|
+
return ae = new Ue(t), ae.create(s, e);
|
|
506
506
|
},
|
|
507
507
|
updated(s, e) {
|
|
508
|
-
return
|
|
508
|
+
return ae.update(s, e);
|
|
509
509
|
},
|
|
510
510
|
unmounted(s, e) {
|
|
511
|
-
return
|
|
511
|
+
return ae.remove(s, e);
|
|
512
512
|
}
|
|
513
513
|
}, Et = {
|
|
514
514
|
install: (s, e = Le) => {
|
|
@@ -755,8 +755,8 @@ class Tt {
|
|
|
755
755
|
".maz-zoom-img-instance.maz-is-open"
|
|
756
756
|
);
|
|
757
757
|
if (n) {
|
|
758
|
-
const i = this.allInstances.indexOf(n), o = t ? i + 1 : i - 1,
|
|
759
|
-
|
|
758
|
+
const i = this.allInstances.indexOf(n), o = t ? i + 1 : i - 1, r = this.allInstances[this.getNewInstanceIndex(o)];
|
|
759
|
+
r && this.useNextInstance(n, r);
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
useNextInstance(e, t) {
|
|
@@ -785,16 +785,16 @@ class Tt {
|
|
|
785
785
|
this.img.removeEventListener("load", this.onImgLoadedCallback);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
let
|
|
788
|
+
let le;
|
|
789
789
|
const It = {
|
|
790
790
|
created(s, e) {
|
|
791
|
-
|
|
791
|
+
le = new Tt(e), le.create(s);
|
|
792
792
|
},
|
|
793
793
|
updated(s, e) {
|
|
794
|
-
|
|
794
|
+
le.update(e);
|
|
795
795
|
},
|
|
796
796
|
unmounted(s) {
|
|
797
|
-
|
|
797
|
+
le.remove(s);
|
|
798
798
|
}
|
|
799
799
|
}, kt = {
|
|
800
800
|
install(s) {
|
|
@@ -927,25 +927,24 @@ class We {
|
|
|
927
927
|
n.src = t;
|
|
928
928
|
}
|
|
929
929
|
handleIntersectionObserver(e, t, n, i) {
|
|
930
|
-
var o,
|
|
930
|
+
var o, r;
|
|
931
931
|
this.observers.push(i);
|
|
932
932
|
for (const c of n)
|
|
933
933
|
if (c.isIntersecting) {
|
|
934
|
-
if ((
|
|
934
|
+
if ((r = (o = this.options).onIntersecting) == null || r.call(o, c.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
935
935
|
return;
|
|
936
936
|
this.loadImage(e, t);
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
createObserver(e, t) {
|
|
940
|
-
const n = (
|
|
941
|
-
this.handleIntersectionObserver(e, t,
|
|
940
|
+
const n = (r, c) => {
|
|
941
|
+
this.handleIntersectionObserver(e, t, r, c);
|
|
942
942
|
}, i = this.options.observerOptions;
|
|
943
943
|
new IntersectionObserver(n, i).observe(e);
|
|
944
944
|
}
|
|
945
945
|
async imageHandler(e, t, n) {
|
|
946
946
|
if (n === "update")
|
|
947
|
-
for await (const i of this.observers)
|
|
948
|
-
i.unobserve(e);
|
|
947
|
+
for await (const i of this.observers) i.unobserve(e);
|
|
949
948
|
window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
|
|
950
949
|
}
|
|
951
950
|
async bindUpdateHandler(e, t, n) {
|
|
@@ -968,17 +967,17 @@ class We {
|
|
|
968
967
|
this.observers = [];
|
|
969
968
|
}
|
|
970
969
|
}
|
|
971
|
-
let
|
|
970
|
+
let ce;
|
|
972
971
|
const Ss = {
|
|
973
972
|
created(s, e) {
|
|
974
973
|
const t = typeof e.value == "object" ? e.value : {};
|
|
975
|
-
|
|
974
|
+
ce = new We(t), ce.add(s, e);
|
|
976
975
|
},
|
|
977
976
|
updated(s, e) {
|
|
978
|
-
|
|
977
|
+
ce.update(s, e);
|
|
979
978
|
},
|
|
980
979
|
unmounted(s, e) {
|
|
981
|
-
|
|
980
|
+
ce.remove(s, e);
|
|
982
981
|
}
|
|
983
982
|
}, Ct = {
|
|
984
983
|
install(s, e = {}) {
|
|
@@ -1014,81 +1013,81 @@ const Ss = {
|
|
|
1014
1013
|
},
|
|
1015
1014
|
emits: ["close", "previous", "next", "before-close"],
|
|
1016
1015
|
setup(s, { emit: e }) {
|
|
1017
|
-
const t = s, n = e, i =
|
|
1016
|
+
const t = s, n = e, i = k(() => import("./MazSpinner--BVvGFIO.mjs")), o = k(() => import("./x-mark-BP8zWe_C.mjs")), r = k(() => import("./chevron-left-CcZaP3Rc.mjs")), c = h(!1), m = h(!1), v = h(!1), L = h(!1), b = h(!1), y = h(t.clickedElement), T = f(() => t.clickedElement.getBoundingClientRect()), ee = f(
|
|
1018
1017
|
() => T.value.height < T.value.width
|
|
1019
|
-
),
|
|
1020
|
-
function
|
|
1021
|
-
c.value = !0, m.value = !1,
|
|
1018
|
+
), _ = h(t.src), M = h(t.alt), te = h(), S = h(), R = f(() => b.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
|
|
1019
|
+
function Y() {
|
|
1020
|
+
c.value = !0, m.value = !1, v.value = !0;
|
|
1022
1021
|
}
|
|
1023
1022
|
ke(
|
|
1024
|
-
() =>
|
|
1025
|
-
(
|
|
1026
|
-
|
|
1023
|
+
() => v.value,
|
|
1024
|
+
(l) => {
|
|
1025
|
+
l && ve();
|
|
1027
1026
|
}
|
|
1028
1027
|
);
|
|
1029
|
-
function
|
|
1030
|
-
n("before-close"),
|
|
1028
|
+
function P() {
|
|
1029
|
+
n("before-close"), u();
|
|
1031
1030
|
}
|
|
1032
|
-
function
|
|
1033
|
-
|
|
1031
|
+
function $(l) {
|
|
1032
|
+
l.key === "Escape" && (l.preventDefault(), P()), (l.key === "ArrowLeft" || l.key === "ArrowRight") && (l.preventDefault(), K(l.key === "ArrowRight" ? "next" : "previous"));
|
|
1034
1033
|
}
|
|
1035
|
-
function
|
|
1034
|
+
function F() {
|
|
1036
1035
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
1037
1036
|
}
|
|
1038
|
-
function
|
|
1037
|
+
function he() {
|
|
1039
1038
|
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
1040
1039
|
}
|
|
1041
|
-
function
|
|
1040
|
+
function se() {
|
|
1042
1041
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
1043
1042
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return d < 0 ?
|
|
1043
|
+
function ne(l, d) {
|
|
1044
|
+
return d < 0 ? l.length - 1 : d >= l.length ? 0 : d;
|
|
1046
1045
|
}
|
|
1047
|
-
async function
|
|
1048
|
-
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1046
|
+
async function ie(l, d) {
|
|
1047
|
+
l.classList.remove(t.openInstanceClass), d.classList.add(t.openInstanceClass);
|
|
1048
|
+
const g = d.getAttribute("data-src"), w = d.getAttribute("data-alt");
|
|
1049
|
+
M.value = w, g && (_.value = g), c.value = !1, c.value || (m.value = !0);
|
|
1051
1050
|
}
|
|
1052
|
-
function
|
|
1051
|
+
function K(l) {
|
|
1053
1052
|
const d = document.querySelector(
|
|
1054
1053
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
1055
1054
|
);
|
|
1056
1055
|
if (d) {
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1056
|
+
const g = se(), w = g.indexOf(d), C = l === "next" ? w + 1 : w - 1, I = g[ne(g, C)];
|
|
1057
|
+
y.value = I, I && ie(d, I), n(l), b.value ? N(S.value) : B();
|
|
1059
1058
|
}
|
|
1060
1059
|
}
|
|
1061
|
-
function
|
|
1062
|
-
|
|
1060
|
+
function N(l) {
|
|
1061
|
+
ee.value ? (l.style.width = `${window.innerWidth}px`, l.style.removeProperty("height")) : (l.style.height = `${window.innerHeight}px`, l.style.removeProperty("width")), l.style.removeProperty("top"), l.style.removeProperty("left");
|
|
1063
1062
|
}
|
|
1064
|
-
async function
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1063
|
+
async function fe() {
|
|
1064
|
+
const l = S.value;
|
|
1065
|
+
b.value ? (b.value = !b.value, B()) : (b.value = !b.value, N(l));
|
|
1067
1066
|
}
|
|
1068
|
-
function
|
|
1067
|
+
function X(l) {
|
|
1069
1068
|
var d;
|
|
1070
|
-
return (d =
|
|
1069
|
+
return (d = S.value) == null ? void 0 : d.animate(l, {
|
|
1071
1070
|
duration: t.animation.duration,
|
|
1072
1071
|
// Durée de l'animation en millisecondes
|
|
1073
1072
|
easing: t.animation.easing
|
|
1074
1073
|
// Fonction d'interpolation pour l'animation inverse
|
|
1075
1074
|
});
|
|
1076
1075
|
}
|
|
1077
|
-
function
|
|
1078
|
-
const d = (
|
|
1079
|
-
(
|
|
1080
|
-
(
|
|
1081
|
-
), pe = (
|
|
1076
|
+
function oe(l = t.offset ?? 0) {
|
|
1077
|
+
const d = (y.value instanceof HTMLImageElement ? y.value.naturalWidth : y.value.clientWidth) || 1, g = (y.value instanceof HTMLImageElement ? y.value.naturalHeight : y.value.clientHeight) || 1, w = window.innerWidth, C = window.innerHeight, I = Math.min(
|
|
1078
|
+
(w - 2 * l) / d,
|
|
1079
|
+
(C - 2 * l) / g
|
|
1080
|
+
), pe = (w - d * I) / 2, ge = (C - g * I) / 2;
|
|
1082
1081
|
return {
|
|
1083
1082
|
centerX: pe,
|
|
1084
1083
|
centerY: ge,
|
|
1085
1084
|
originalWidth: d,
|
|
1086
|
-
originalHeight:
|
|
1087
|
-
scale:
|
|
1085
|
+
originalHeight: g,
|
|
1086
|
+
scale: I
|
|
1088
1087
|
};
|
|
1089
1088
|
}
|
|
1090
|
-
function
|
|
1091
|
-
const { originalWidth: d, originalHeight:
|
|
1089
|
+
function V({ trigger: l }) {
|
|
1090
|
+
const { originalWidth: d, originalHeight: g, scale: w, centerX: C, centerY: I } = oe(), { top: pe, left: ge, width: Ze, height: Qe } = T.value, Ce = [
|
|
1092
1091
|
{
|
|
1093
1092
|
top: `${pe}px`,
|
|
1094
1093
|
left: `${ge}px`,
|
|
@@ -1097,67 +1096,67 @@ const Ss = {
|
|
|
1097
1096
|
opacity: 0
|
|
1098
1097
|
},
|
|
1099
1098
|
{
|
|
1100
|
-
top: `${
|
|
1101
|
-
left: `${
|
|
1102
|
-
width: `${d *
|
|
1103
|
-
height: `${
|
|
1099
|
+
top: `${I}px`,
|
|
1100
|
+
left: `${C}px`,
|
|
1101
|
+
width: `${d * w}px`,
|
|
1102
|
+
height: `${g * w}px`,
|
|
1104
1103
|
opacity: 1
|
|
1105
1104
|
}
|
|
1106
1105
|
];
|
|
1107
1106
|
return {
|
|
1108
|
-
frames:
|
|
1107
|
+
frames: l === "open" ? Ce : Ce.reverse()
|
|
1109
1108
|
};
|
|
1110
1109
|
}
|
|
1111
|
-
function
|
|
1112
|
-
const { centerX:
|
|
1110
|
+
function B() {
|
|
1111
|
+
const { centerX: l, centerY: d, originalHeight: g, originalWidth: w, scale: C } = oe(), I = {
|
|
1113
1112
|
top: `${d}px`,
|
|
1114
|
-
left: `${
|
|
1115
|
-
width: `${
|
|
1116
|
-
height: `${
|
|
1113
|
+
left: `${l}px`,
|
|
1114
|
+
width: `${w * C}px`,
|
|
1115
|
+
height: `${g * C}px`
|
|
1117
1116
|
};
|
|
1118
|
-
if (!
|
|
1117
|
+
if (!S.value)
|
|
1119
1118
|
throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1120
|
-
Object.assign(
|
|
1119
|
+
Object.assign(S.value.style, I);
|
|
1121
1120
|
}
|
|
1122
|
-
function
|
|
1123
|
-
const { frames:
|
|
1121
|
+
function ve() {
|
|
1122
|
+
const { frames: l } = V({
|
|
1124
1123
|
trigger: "open"
|
|
1125
|
-
}), d =
|
|
1124
|
+
}), d = X(l);
|
|
1126
1125
|
if (!d)
|
|
1127
1126
|
throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");
|
|
1128
1127
|
d.onfinish = () => {
|
|
1129
|
-
|
|
1128
|
+
B();
|
|
1130
1129
|
};
|
|
1131
1130
|
}
|
|
1132
|
-
function
|
|
1133
|
-
const { frames:
|
|
1131
|
+
function u() {
|
|
1132
|
+
const { frames: l } = V({
|
|
1134
1133
|
trigger: "close"
|
|
1135
|
-
}), d =
|
|
1134
|
+
}), d = X(l);
|
|
1136
1135
|
if (!d)
|
|
1137
1136
|
throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
|
|
1138
1137
|
d.onfinish = () => {
|
|
1139
|
-
var
|
|
1140
|
-
n("close"), (
|
|
1138
|
+
var g, w;
|
|
1139
|
+
n("close"), (g = te.value) == null || g.remove(), (w = t.destroy) == null || w.call(t);
|
|
1141
1140
|
};
|
|
1142
1141
|
}
|
|
1143
|
-
function
|
|
1144
|
-
|
|
1142
|
+
function p() {
|
|
1143
|
+
b.value || B();
|
|
1145
1144
|
}
|
|
1146
|
-
return
|
|
1147
|
-
m.value = !0, document.addEventListener("keydown",
|
|
1145
|
+
return de(() => {
|
|
1146
|
+
m.value = !0, document.addEventListener("keydown", $), window.addEventListener("resize", p), F(), L.value = se().length > 1;
|
|
1148
1147
|
}), Me(() => {
|
|
1149
|
-
document.removeEventListener("keydown",
|
|
1150
|
-
}), (
|
|
1148
|
+
document.removeEventListener("keydown", $), window.removeEventListener("resize", p), he();
|
|
1149
|
+
}), (l, d) => (z(), W("div", {
|
|
1151
1150
|
ref_key: "FullscreenImgElement",
|
|
1152
|
-
ref:
|
|
1151
|
+
ref: te,
|
|
1153
1152
|
role: "button",
|
|
1154
1153
|
class: "m-fullscreen-img",
|
|
1155
1154
|
tabindex: "0",
|
|
1156
|
-
onClick:
|
|
1157
|
-
onKeypress: st(
|
|
1155
|
+
onClick: H(P, ["stop"]),
|
|
1156
|
+
onKeypress: st(H(P, ["prevent"]), ["esc"])
|
|
1158
1157
|
}, [
|
|
1159
|
-
Pe(
|
|
1160
|
-
|
|
1158
|
+
Pe(U(
|
|
1159
|
+
O(i),
|
|
1161
1160
|
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
1162
1161
|
null,
|
|
1163
1162
|
512
|
|
@@ -1165,40 +1164,40 @@ const Ss = {
|
|
|
1165
1164
|
), [
|
|
1166
1165
|
[$e, m.value]
|
|
1167
1166
|
]),
|
|
1168
|
-
|
|
1167
|
+
v.value && L.value ? (z(), W("button", {
|
|
1169
1168
|
key: 0,
|
|
1170
1169
|
type: "button",
|
|
1171
1170
|
class: "m-fullscreen-btn --next",
|
|
1172
|
-
onClick: d[0] || (d[0] =
|
|
1171
|
+
onClick: d[0] || (d[0] = H((g) => K("next"), ["stop"]))
|
|
1173
1172
|
}, [
|
|
1174
|
-
|
|
1175
|
-
])) :
|
|
1176
|
-
|
|
1173
|
+
U(O(r), { class: "maz-rotate-180 maz-text-3xl" })
|
|
1174
|
+
])) : x("v-if", !0),
|
|
1175
|
+
v.value && L.value ? (z(), W("button", {
|
|
1177
1176
|
key: 1,
|
|
1178
1177
|
type: "button",
|
|
1179
1178
|
class: "m-fullscreen-btn --previous",
|
|
1180
|
-
onClick: d[1] || (d[1] =
|
|
1179
|
+
onClick: d[1] || (d[1] = H((g) => K("previous"), ["stop"]))
|
|
1181
1180
|
}, [
|
|
1182
|
-
|
|
1183
|
-
])) :
|
|
1184
|
-
|
|
1181
|
+
U(O(r), { class: "maz-text-3xl" })
|
|
1182
|
+
])) : x("v-if", !0),
|
|
1183
|
+
D("button", {
|
|
1185
1184
|
type: "button",
|
|
1186
1185
|
class: "m-fullscreen-btn --close",
|
|
1187
|
-
onClick:
|
|
1186
|
+
onClick: P
|
|
1188
1187
|
}, [
|
|
1189
|
-
|
|
1188
|
+
U(O(o), { class: "maz-text-3xl" })
|
|
1190
1189
|
]),
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1190
|
+
D("div", At, [
|
|
1191
|
+
x(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
1192
|
+
D("img", {
|
|
1194
1193
|
ref_key: "ImgElement",
|
|
1195
|
-
ref:
|
|
1196
|
-
src:
|
|
1197
|
-
alt:
|
|
1194
|
+
ref: S,
|
|
1195
|
+
src: _.value,
|
|
1196
|
+
alt: M.value ?? void 0,
|
|
1198
1197
|
tabindex: "0",
|
|
1199
|
-
class: Ee([
|
|
1200
|
-
onLoad:
|
|
1201
|
-
onClick: d[2] || (d[2] =
|
|
1198
|
+
class: Ee([R.value]),
|
|
1199
|
+
onLoad: Y,
|
|
1200
|
+
onClick: d[2] || (d[2] = H((g) => l.zoom ? fe() : void 0, ["stop"]))
|
|
1202
1201
|
}, null, 42, Ot)
|
|
1203
1202
|
])
|
|
1204
1203
|
], 40, xt));
|
|
@@ -1283,16 +1282,16 @@ class Mt {
|
|
|
1283
1282
|
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
1284
1283
|
}
|
|
1285
1284
|
}
|
|
1286
|
-
let
|
|
1285
|
+
let ue;
|
|
1287
1286
|
const Pt = {
|
|
1288
1287
|
mounted(s, e) {
|
|
1289
|
-
return
|
|
1288
|
+
return ue = new Mt(), ue.create(s, e);
|
|
1290
1289
|
},
|
|
1291
1290
|
updated(s, e) {
|
|
1292
|
-
return
|
|
1291
|
+
return ue.update(s, e);
|
|
1293
1292
|
},
|
|
1294
1293
|
unmounted(s) {
|
|
1295
|
-
return
|
|
1294
|
+
return ue.remove(s);
|
|
1296
1295
|
}
|
|
1297
1296
|
}, $t = {
|
|
1298
1297
|
install(s) {
|
|
@@ -1393,32 +1392,32 @@ const Yt = {
|
|
|
1393
1392
|
s.provide("filters", Yt);
|
|
1394
1393
|
}
|
|
1395
1394
|
};
|
|
1396
|
-
function Kt({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200 }) {
|
|
1397
|
-
const
|
|
1398
|
-
let
|
|
1399
|
-
function
|
|
1400
|
-
typeof y == "number" && (
|
|
1395
|
+
function Kt({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
|
|
1396
|
+
const i = h(s), o = h(s);
|
|
1397
|
+
let r;
|
|
1398
|
+
function c(y) {
|
|
1399
|
+
typeof y == "number" && (o.value = y), typeof y == "number" && (i.value = y), m();
|
|
1401
1400
|
}
|
|
1402
|
-
function
|
|
1403
|
-
|
|
1404
|
-
|
|
1401
|
+
function m() {
|
|
1402
|
+
r || (r = setInterval(() => {
|
|
1403
|
+
o.value -= t, o.value <= 0 && (b(), setTimeout(() => e == null ? void 0 : e(), n));
|
|
1405
1404
|
}, t));
|
|
1406
1405
|
}
|
|
1407
|
-
function
|
|
1408
|
-
|
|
1406
|
+
function v() {
|
|
1407
|
+
r && (clearInterval(r), r = void 0);
|
|
1409
1408
|
}
|
|
1410
|
-
function
|
|
1411
|
-
!
|
|
1409
|
+
function L() {
|
|
1410
|
+
!r && o.value > 0 && m();
|
|
1412
1411
|
}
|
|
1413
|
-
function
|
|
1414
|
-
|
|
1412
|
+
function b() {
|
|
1413
|
+
setTimeout(() => o.value = i.value, n * 2), v();
|
|
1415
1414
|
}
|
|
1416
1415
|
return {
|
|
1417
|
-
remainingTime:
|
|
1418
|
-
start:
|
|
1419
|
-
pause:
|
|
1420
|
-
resume:
|
|
1421
|
-
stop:
|
|
1416
|
+
remainingTime: o,
|
|
1417
|
+
start: c,
|
|
1418
|
+
pause: v,
|
|
1419
|
+
resume: L,
|
|
1420
|
+
stop: b
|
|
1422
1421
|
};
|
|
1423
1422
|
}
|
|
1424
1423
|
const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__message" }, Qt = { class: "maz-flex maz-items-center maz-gap-2" }, Gt = { key: 0 }, Jt = {
|
|
@@ -1441,53 +1440,54 @@ const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__messag
|
|
|
1441
1440
|
},
|
|
1442
1441
|
emits: ["close", "click", "open"],
|
|
1443
1442
|
setup(s, { expose: e, emit: t }) {
|
|
1444
|
-
const n = s, i = t, o =
|
|
1443
|
+
const n = s, i = t, o = k(() => import("./MazBtn-1g7UvzQ_.mjs")), r = k(() => import("./x-mark-BP8zWe_C.mjs")), c = k(
|
|
1445
1444
|
() => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
|
|
1446
|
-
), m =
|
|
1445
|
+
), m = k(
|
|
1447
1446
|
() => import("./exclamation-triangle-BfZLmRbP.mjs")
|
|
1448
|
-
),
|
|
1447
|
+
), v = k(
|
|
1449
1448
|
() => import("./exclamation-circle-DzBJ8vGa.mjs")
|
|
1450
|
-
),
|
|
1449
|
+
), L = k(
|
|
1451
1450
|
() => import("./information-circle-C0pE_7kr.mjs")
|
|
1452
|
-
),
|
|
1451
|
+
), b = k(() => import("./check-circle-CtCMBYyp.mjs")), y = k(() => import("./link-D7FkvsK4.mjs")), T = h(), ee = f(() => {
|
|
1453
1452
|
if (n.icon)
|
|
1454
1453
|
switch (n.type) {
|
|
1455
1454
|
case "danger":
|
|
1456
1455
|
return m;
|
|
1457
1456
|
case "info":
|
|
1458
|
-
return
|
|
1457
|
+
return L;
|
|
1459
1458
|
case "success":
|
|
1460
|
-
return
|
|
1459
|
+
return b;
|
|
1461
1460
|
case "warning":
|
|
1462
|
-
return
|
|
1461
|
+
return v;
|
|
1463
1462
|
default:
|
|
1464
1463
|
return;
|
|
1465
1464
|
}
|
|
1466
|
-
}),
|
|
1467
|
-
callback:
|
|
1468
|
-
timeout: typeof n.timeout == "number" ? n.timeout : 0
|
|
1465
|
+
}), _ = f(() => n.position.includes("top") ? "top" : "bottom"), M = f(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), te = f(() => M.value !== "center" ? M.value === "right" ? "m-slide-right" : "m-slide-left" : _.value === "top" ? "m-slide-top" : "m-slide-bottom"), S = h(!1), R = h(!1), Y = h(), P = `m-toast-container --${_.value} --${M.value}`, $ = `.${P.replaceAll(" ", ".")}`, F = Kt({
|
|
1466
|
+
callback: V,
|
|
1467
|
+
timeout: typeof n.timeout == "number" ? n.timeout : 0,
|
|
1468
|
+
callbackOffsetTime: 200
|
|
1469
1469
|
});
|
|
1470
|
-
function
|
|
1471
|
-
const
|
|
1472
|
-
if (!
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1470
|
+
function he() {
|
|
1471
|
+
const u = document.querySelector($);
|
|
1472
|
+
if (!u && !u) {
|
|
1473
|
+
const p = document.body, l = document.createElement("div");
|
|
1474
|
+
l.className = P, p.append(l);
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1478
|
-
const
|
|
1479
|
-
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" &&
|
|
1477
|
+
function se() {
|
|
1478
|
+
const u = document.querySelector($);
|
|
1479
|
+
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && u ? n.maxToasts <= u.childElementCount : u && u.childElementCount > 0;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1482
|
-
if (
|
|
1483
|
-
|
|
1481
|
+
function ne() {
|
|
1482
|
+
if (se()) {
|
|
1483
|
+
Y.value = setTimeout(ne, 250);
|
|
1484
1484
|
return;
|
|
1485
1485
|
}
|
|
1486
|
-
const
|
|
1487
|
-
T.value &&
|
|
1486
|
+
const u = document.querySelector($);
|
|
1487
|
+
T.value && u && u.prepend(T.value), R.value = !0, typeof n.timeout == "number" && n.timeout > 0 && F.start();
|
|
1488
1488
|
}
|
|
1489
|
-
const
|
|
1490
|
-
function
|
|
1489
|
+
const ie = h("100%");
|
|
1490
|
+
function K() {
|
|
1491
1491
|
switch (n.type) {
|
|
1492
1492
|
case "danger":
|
|
1493
1493
|
return "maz-bg-danger-700";
|
|
@@ -1502,125 +1502,125 @@ const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__messag
|
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
ke(
|
|
1505
|
-
|
|
1506
|
-
(
|
|
1505
|
+
F.remainingTime,
|
|
1506
|
+
(u) => {
|
|
1507
1507
|
if (typeof n.timeout == "number") {
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1508
|
+
const p = 100 * u / n.timeout;
|
|
1509
|
+
ie.value = `${p}%`;
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
);
|
|
1513
|
-
function
|
|
1514
|
-
i("click",
|
|
1513
|
+
function N(u) {
|
|
1514
|
+
i("click", u), n.persistent || V();
|
|
1515
1515
|
}
|
|
1516
|
-
async function
|
|
1517
|
-
var
|
|
1518
|
-
|
|
1516
|
+
async function fe(u, p) {
|
|
1517
|
+
var l;
|
|
1518
|
+
S.value = !0, await u(), S.value = !1, (l = n.action) != null && l.closeToast && N(p);
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1521
|
-
n.noPauseOnHover || (
|
|
1520
|
+
function X(u) {
|
|
1521
|
+
n.noPauseOnHover || (u ? F.pause() : F.resume());
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
|
|
1523
|
+
function oe() {
|
|
1524
|
+
stop(), Y.value && clearTimeout(Y.value);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
|
|
1526
|
+
function V() {
|
|
1527
|
+
oe(), R.value = !1;
|
|
1528
1528
|
}
|
|
1529
|
-
e({
|
|
1530
|
-
function
|
|
1529
|
+
e({ closeToast: V });
|
|
1530
|
+
function B() {
|
|
1531
1531
|
i("open");
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1534
|
-
var
|
|
1535
|
-
i("close"), (
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1533
|
+
function ve() {
|
|
1534
|
+
var p;
|
|
1535
|
+
i("close"), (p = T.value) == null || p.remove();
|
|
1536
|
+
const u = document.querySelector($);
|
|
1537
|
+
u && !(u != null && u.hasChildNodes()) && u.remove();
|
|
1538
1538
|
}
|
|
1539
|
-
return
|
|
1540
|
-
|
|
1541
|
-
}), (
|
|
1542
|
-
name:
|
|
1543
|
-
onAfterLeave:
|
|
1544
|
-
onAfterEnter:
|
|
1539
|
+
return de(() => {
|
|
1540
|
+
he(), ne();
|
|
1541
|
+
}), (u, p) => (z(), q(nt, {
|
|
1542
|
+
name: te.value,
|
|
1543
|
+
onAfterLeave: ve,
|
|
1544
|
+
onAfterEnter: B,
|
|
1545
1545
|
persisted: ""
|
|
1546
1546
|
}, {
|
|
1547
1547
|
default: ye(() => [
|
|
1548
|
-
Pe(
|
|
1548
|
+
Pe(D(
|
|
1549
1549
|
"button",
|
|
1550
1550
|
{
|
|
1551
1551
|
ref_key: "Toaster",
|
|
1552
1552
|
ref: T,
|
|
1553
1553
|
class: Ee(["m-toast", [
|
|
1554
|
-
`--${
|
|
1555
|
-
`--${
|
|
1556
|
-
`--${
|
|
1557
|
-
{ "maz-pb-1": typeof
|
|
1554
|
+
`--${u.type}`,
|
|
1555
|
+
`--${_.value}`,
|
|
1556
|
+
`--${M.value}`,
|
|
1557
|
+
{ "maz-pb-1": typeof u.timeout == "number" && u.timeout > 0, "--persistent": u.persistent }
|
|
1558
1558
|
]]),
|
|
1559
1559
|
role: "alert",
|
|
1560
|
-
onMouseover:
|
|
1561
|
-
onMouseleave:
|
|
1562
|
-
onClick:
|
|
1563
|
-
var
|
|
1564
|
-
return
|
|
1560
|
+
onMouseover: p[2] || (p[2] = (l) => X(!0)),
|
|
1561
|
+
onMouseleave: p[3] || (p[3] = (l) => X(!1)),
|
|
1562
|
+
onClick: p[4] || (p[4] = H((l) => {
|
|
1563
|
+
var d;
|
|
1564
|
+
return u.link && !((d = u.link) != null && d.closeToast) ? void 0 : N(l);
|
|
1565
1565
|
}, ["stop"]))
|
|
1566
1566
|
},
|
|
1567
1567
|
[
|
|
1568
|
-
|
|
1568
|
+
ee.value ? (z(), q(it(ee.value), {
|
|
1569
1569
|
key: 0,
|
|
1570
1570
|
class: "maz-text-2xl"
|
|
1571
|
-
})) :
|
|
1572
|
-
|
|
1573
|
-
|
|
1571
|
+
})) : x("v-if", !0),
|
|
1572
|
+
D("div", Xt, [
|
|
1573
|
+
D(
|
|
1574
1574
|
"p",
|
|
1575
1575
|
Zt,
|
|
1576
|
-
be(
|
|
1576
|
+
be(u.message),
|
|
1577
1577
|
1
|
|
1578
1578
|
/* TEXT */
|
|
1579
1579
|
)
|
|
1580
1580
|
]),
|
|
1581
|
-
|
|
1581
|
+
u.action ? (z(), q(O(o), {
|
|
1582
1582
|
key: 1,
|
|
1583
1583
|
"data-test": "action-btn",
|
|
1584
|
-
color:
|
|
1584
|
+
color: u.type,
|
|
1585
1585
|
pastel: "",
|
|
1586
|
-
loading:
|
|
1586
|
+
loading: S.value,
|
|
1587
1587
|
size: "sm",
|
|
1588
|
-
onClick:
|
|
1588
|
+
onClick: p[0] || (p[0] = H((l) => u.action ? fe(u.action.func, l) : void 0, ["stop"]))
|
|
1589
1589
|
}, {
|
|
1590
1590
|
default: ye(() => [
|
|
1591
1591
|
ot(
|
|
1592
|
-
be(
|
|
1592
|
+
be(u.action.text),
|
|
1593
1593
|
1
|
|
1594
1594
|
/* TEXT */
|
|
1595
1595
|
)
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 1
|
|
1598
1598
|
/* STABLE */
|
|
1599
|
-
}, 8, ["color", "loading"])) :
|
|
1600
|
-
|
|
1599
|
+
}, 8, ["color", "loading"])) : x("v-if", !0),
|
|
1600
|
+
u.link ? (z(), q(O(o), {
|
|
1601
1601
|
key: 2,
|
|
1602
1602
|
"data-test": "link-btn",
|
|
1603
|
-
color:
|
|
1603
|
+
color: u.type,
|
|
1604
1604
|
pastel: "",
|
|
1605
1605
|
size: "xs",
|
|
1606
|
-
href:
|
|
1607
|
-
target:
|
|
1606
|
+
href: u.link.href,
|
|
1607
|
+
target: u.link.target ?? "_self"
|
|
1608
1608
|
}, {
|
|
1609
1609
|
default: ye(() => {
|
|
1610
|
-
var
|
|
1610
|
+
var l;
|
|
1611
1611
|
return [
|
|
1612
|
-
|
|
1613
|
-
|
|
1612
|
+
D("div", Qt, [
|
|
1613
|
+
u.link.text ? (z(), W(
|
|
1614
1614
|
"span",
|
|
1615
1615
|
Gt,
|
|
1616
|
-
be(
|
|
1616
|
+
be(u.link.text),
|
|
1617
1617
|
1
|
|
1618
1618
|
/* TEXT */
|
|
1619
|
-
)) :
|
|
1620
|
-
((
|
|
1619
|
+
)) : x("v-if", !0),
|
|
1620
|
+
((l = u.link) == null ? void 0 : l.target) === "_blank" ? (z(), q(O(c), {
|
|
1621
1621
|
key: 1,
|
|
1622
1622
|
class: "maz-text-xl"
|
|
1623
|
-
})) : (
|
|
1623
|
+
})) : (z(), q(O(y), {
|
|
1624
1624
|
key: 2,
|
|
1625
1625
|
class: "maz-text-xl"
|
|
1626
1626
|
}))
|
|
@@ -1629,40 +1629,40 @@ const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__messag
|
|
|
1629
1629
|
}),
|
|
1630
1630
|
_: 1
|
|
1631
1631
|
/* STABLE */
|
|
1632
|
-
}, 8, ["color", "href", "target"])) :
|
|
1633
|
-
|
|
1632
|
+
}, 8, ["color", "href", "target"])) : x("v-if", !0),
|
|
1633
|
+
u.persistent ? x("v-if", !0) : (z(), W("button", {
|
|
1634
1634
|
key: 3,
|
|
1635
1635
|
class: "--close",
|
|
1636
|
-
onClick:
|
|
1636
|
+
onClick: p[1] || (p[1] = H((l) => N(l), ["stop"]))
|
|
1637
1637
|
}, [
|
|
1638
|
-
|
|
1638
|
+
U(O(r), { class: "--icon maz-text-xl" })
|
|
1639
1639
|
])),
|
|
1640
|
-
typeof
|
|
1641
|
-
|
|
1640
|
+
typeof u.timeout == "number" && u.timeout > 0 ? (z(), W("div", Jt, [
|
|
1641
|
+
D(
|
|
1642
1642
|
"div",
|
|
1643
1643
|
{
|
|
1644
1644
|
style: rt({
|
|
1645
|
-
width:
|
|
1645
|
+
width: ie.value
|
|
1646
1646
|
}),
|
|
1647
|
-
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",
|
|
1647
|
+
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", K()])
|
|
1648
1648
|
},
|
|
1649
1649
|
null,
|
|
1650
1650
|
6
|
|
1651
1651
|
/* CLASS, STYLE */
|
|
1652
1652
|
)
|
|
1653
|
-
])) :
|
|
1653
|
+
])) : x("v-if", !0)
|
|
1654
1654
|
],
|
|
1655
1655
|
34
|
|
1656
1656
|
/* CLASS, NEED_HYDRATION */
|
|
1657
1657
|
), [
|
|
1658
|
-
[$e,
|
|
1658
|
+
[$e, R.value]
|
|
1659
1659
|
])
|
|
1660
1660
|
]),
|
|
1661
1661
|
_: 1
|
|
1662
1662
|
/* STABLE */
|
|
1663
1663
|
}, 8, ["name"]));
|
|
1664
1664
|
}
|
|
1665
|
-
}), ts = /* @__PURE__ */ je(es, [["__scopeId", "data-v-
|
|
1665
|
+
}), ts = /* @__PURE__ */ je(es, [["__scopeId", "data-v-cdb80f1f"]]), ss = {
|
|
1666
1666
|
position: "bottom-right",
|
|
1667
1667
|
timeout: 1e4,
|
|
1668
1668
|
persistent: !1,
|
|
@@ -1685,8 +1685,8 @@ class ns {
|
|
|
1685
1685
|
return {
|
|
1686
1686
|
destroy: i,
|
|
1687
1687
|
close: () => {
|
|
1688
|
-
var
|
|
1689
|
-
return (c = (
|
|
1688
|
+
var r, c;
|
|
1689
|
+
return (c = (r = o.component) == null ? void 0 : r.exposed) == null ? void 0 : c.closeToast();
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
}
|
|
@@ -1719,38 +1719,38 @@ const As = {
|
|
|
1719
1719
|
install(s, e) {
|
|
1720
1720
|
s.provide("toast", is(s, e));
|
|
1721
1721
|
}
|
|
1722
|
-
},
|
|
1722
|
+
}, j = "";
|
|
1723
1723
|
function os(s) {
|
|
1724
1724
|
return s.filter((e, t, n) => t === n.indexOf(e));
|
|
1725
1725
|
}
|
|
1726
1726
|
function rs(s) {
|
|
1727
|
-
return (e =
|
|
1727
|
+
return (e = j) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
|
|
1728
1728
|
}
|
|
1729
1729
|
const as = (s) => s.length > 0;
|
|
1730
1730
|
function ls(s) {
|
|
1731
|
-
return (e =
|
|
1731
|
+
return (e = j) => os([...s, e]);
|
|
1732
1732
|
}
|
|
1733
1733
|
function cs(s) {
|
|
1734
|
-
return (e =
|
|
1734
|
+
return (e = j) => s.filter((t) => t !== e);
|
|
1735
1735
|
}
|
|
1736
1736
|
class us {
|
|
1737
1737
|
constructor() {
|
|
1738
|
-
a(this, "_loaders",
|
|
1738
|
+
a(this, "_loaders", h([]));
|
|
1739
1739
|
}
|
|
1740
1740
|
get loaders() {
|
|
1741
|
-
return
|
|
1741
|
+
return f(() => this._loaders.value);
|
|
1742
1742
|
}
|
|
1743
|
-
stop(e =
|
|
1743
|
+
stop(e = j) {
|
|
1744
1744
|
this._loaders.value = cs(this._loaders.value)(e);
|
|
1745
1745
|
}
|
|
1746
|
-
start(e =
|
|
1746
|
+
start(e = j) {
|
|
1747
1747
|
return this._loaders.value = ls(this._loaders.value)(e), () => this.stop(e);
|
|
1748
1748
|
}
|
|
1749
1749
|
get anyLoading() {
|
|
1750
|
-
return
|
|
1750
|
+
return f(() => as(this._loaders.value));
|
|
1751
1751
|
}
|
|
1752
|
-
isLoading(e =
|
|
1753
|
-
return
|
|
1752
|
+
isLoading(e = j) {
|
|
1753
|
+
return f(() => rs(this._loaders.value)(e)).value;
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
const ms = new us(), Os = {
|
|
@@ -1787,26 +1787,26 @@ class ds {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
handleIntersect(e, t) {
|
|
1789
1789
|
for (const n of e) {
|
|
1790
|
-
const o = n.target.getAttribute("data-maz-aos-children") === "true",
|
|
1790
|
+
const o = n.target.getAttribute("data-maz-aos-children") === "true", r = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
1791
1791
|
if (o) {
|
|
1792
1792
|
const c = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
|
|
1793
1793
|
(m) => m.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? m : void 0
|
|
1794
1794
|
);
|
|
1795
1795
|
for (const m of c)
|
|
1796
|
-
m &&
|
|
1796
|
+
m && r.push(m);
|
|
1797
1797
|
}
|
|
1798
|
-
for (const c of
|
|
1799
|
-
const m = c.getAttribute("data-maz-aos-once"),
|
|
1798
|
+
for (const c of r) {
|
|
1799
|
+
const m = c.getAttribute("data-maz-aos-once"), v = typeof m == "string" ? m === "true" : this.options.animation.once;
|
|
1800
1800
|
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
1801
|
-
const
|
|
1802
|
-
if (
|
|
1801
|
+
const L = c.getAttribute("data-maz-aos-duration"), b = c.getAttribute("data-maz-aos-delay");
|
|
1802
|
+
if (L || (c.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
1803
1803
|
c.style.transitionDuration = "0";
|
|
1804
|
-
}, 1e3)),
|
|
1804
|
+
}, 1e3)), b || (c.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
1805
1805
|
c.style.transitionDelay = "0";
|
|
1806
|
-
}, 1e3)), c.classList.add("maz-aos-animate"),
|
|
1807
|
-
const
|
|
1808
|
-
if (
|
|
1809
|
-
const T = document.querySelector(
|
|
1806
|
+
}, 1e3)), c.classList.add("maz-aos-animate"), v) {
|
|
1807
|
+
const y = c.getAttribute("data-maz-aos-anchor");
|
|
1808
|
+
if (y) {
|
|
1809
|
+
const T = document.querySelector(y);
|
|
1810
1810
|
T && t.unobserve(T);
|
|
1811
1811
|
}
|
|
1812
1812
|
t.unobserve(c);
|
|
@@ -1831,21 +1831,21 @@ class ds {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
runAnimations() {
|
|
1834
|
-
if (
|
|
1834
|
+
if (E())
|
|
1835
1835
|
return this.handleObserver();
|
|
1836
1836
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
|
-
let
|
|
1839
|
+
let Z;
|
|
1840
1840
|
const Hs = {
|
|
1841
1841
|
install: (s, e) => {
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
}) :
|
|
1842
|
+
Z = new ds(e), s.provide("aos", Z), E() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
1843
|
+
Z.runAnimations();
|
|
1844
|
+
}) : Z.runAnimations());
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
function Ds() {
|
|
1848
|
-
return
|
|
1848
|
+
return Z;
|
|
1849
1849
|
}
|
|
1850
1850
|
const hs = {
|
|
1851
1851
|
darkClass: "dark",
|
|
@@ -1855,11 +1855,11 @@ const hs = {
|
|
|
1855
1855
|
storageThemeValueLight: "light",
|
|
1856
1856
|
storageThemeValueSystem: "system",
|
|
1857
1857
|
watchChanges: !0
|
|
1858
|
-
},
|
|
1858
|
+
}, Q = h("system"), A = h("system");
|
|
1859
1859
|
function He() {
|
|
1860
1860
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function G({
|
|
1863
1863
|
darkClass: s,
|
|
1864
1864
|
lightClass: e,
|
|
1865
1865
|
storageThemeKey: t,
|
|
@@ -1867,9 +1867,9 @@ function X({
|
|
|
1867
1867
|
setLocalStorageValue: i = !0,
|
|
1868
1868
|
setSelectedTheme: o = !0
|
|
1869
1869
|
}) {
|
|
1870
|
-
|
|
1870
|
+
E() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), Q.value = n, o && (A.value = n), i && (localStorage[t] = n));
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function J({
|
|
1873
1873
|
darkClass: s,
|
|
1874
1874
|
lightClass: e,
|
|
1875
1875
|
storageThemeKey: t,
|
|
@@ -1877,14 +1877,14 @@ function Z({
|
|
|
1877
1877
|
setLocalStorageValue: i = !0,
|
|
1878
1878
|
setSelectedTheme: o = !0
|
|
1879
1879
|
}) {
|
|
1880
|
-
|
|
1880
|
+
E() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), Q.value = n, o && (A.value = n), i && (localStorage[t] = n));
|
|
1881
1881
|
}
|
|
1882
1882
|
function Re({
|
|
1883
1883
|
setLocalStorageValue: s = !0,
|
|
1884
1884
|
...e
|
|
1885
1885
|
}) {
|
|
1886
|
-
if (
|
|
1887
|
-
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass),
|
|
1886
|
+
if (E())
|
|
1887
|
+
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), Q.value = e.storageThemeValueSystem, A.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), Ie(e);
|
|
1888
1888
|
}
|
|
1889
1889
|
function Ye(s) {
|
|
1890
1890
|
if (!s.defaultTheme)
|
|
@@ -1893,13 +1893,13 @@ function Ye(s) {
|
|
|
1893
1893
|
return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');
|
|
1894
1894
|
switch (s.defaultTheme) {
|
|
1895
1895
|
case "dark":
|
|
1896
|
-
return
|
|
1896
|
+
return G({
|
|
1897
1897
|
...s,
|
|
1898
1898
|
setLocalStorageValue: !1,
|
|
1899
1899
|
setSelectedTheme: !0
|
|
1900
1900
|
});
|
|
1901
1901
|
case "light":
|
|
1902
|
-
return
|
|
1902
|
+
return J({
|
|
1903
1903
|
...s,
|
|
1904
1904
|
setLocalStorageValue: !1,
|
|
1905
1905
|
setSelectedTheme: !0
|
|
@@ -1907,11 +1907,11 @@ function Ye(s) {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
}
|
|
1909
1909
|
function Ie(s) {
|
|
1910
|
-
return
|
|
1910
|
+
return E() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Ye(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && He() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && He() ? G({
|
|
1911
1911
|
...s,
|
|
1912
1912
|
setLocalStorageValue: !1,
|
|
1913
1913
|
setSelectedTheme: !1
|
|
1914
|
-
}) :
|
|
1914
|
+
}) : J({
|
|
1915
1915
|
...s,
|
|
1916
1916
|
setLocalStorageValue: !1,
|
|
1917
1917
|
setSelectedTheme: !1
|
|
@@ -1921,10 +1921,10 @@ function ze({
|
|
|
1921
1921
|
theme: s,
|
|
1922
1922
|
...e
|
|
1923
1923
|
}) {
|
|
1924
|
-
return s === "system" ? Re(e) : s === "dark" ?
|
|
1924
|
+
return s === "system" ? Re(e) : s === "dark" ? G(e) : J(e);
|
|
1925
1925
|
}
|
|
1926
1926
|
function fs(s) {
|
|
1927
|
-
return
|
|
1927
|
+
return Q.value === s.storageThemeValueDark ? J(s) : G(s);
|
|
1928
1928
|
}
|
|
1929
1929
|
function Ms(s) {
|
|
1930
1930
|
const e = {
|
|
@@ -1934,18 +1934,18 @@ function Ms(s) {
|
|
|
1934
1934
|
function t() {
|
|
1935
1935
|
Ie(e);
|
|
1936
1936
|
}
|
|
1937
|
-
return
|
|
1938
|
-
localStorage[e.storageThemeKey] && (
|
|
1937
|
+
return de(() => {
|
|
1938
|
+
localStorage[e.storageThemeKey] && (A.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
|
|
1939
1939
|
}), Me(() => {
|
|
1940
1940
|
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
|
|
1941
|
-
}), ke(
|
|
1941
|
+
}), ke(A, (n) => {
|
|
1942
1942
|
switch (localStorage[e.storageThemeKey] = n, n) {
|
|
1943
1943
|
case e.storageThemeValueDark: {
|
|
1944
|
-
|
|
1944
|
+
G(e);
|
|
1945
1945
|
break;
|
|
1946
1946
|
}
|
|
1947
1947
|
case e.storageThemeValueLight: {
|
|
1948
|
-
|
|
1948
|
+
J(e);
|
|
1949
1949
|
break;
|
|
1950
1950
|
}
|
|
1951
1951
|
case e.storageThemeValueSystem: {
|
|
@@ -1960,11 +1960,11 @@ function Ms(s) {
|
|
|
1960
1960
|
setDarkTheme: () => ze({ ...e, theme: "dark" }),
|
|
1961
1961
|
setLightTheme: () => ze({ ...e, theme: "light" }),
|
|
1962
1962
|
setDefaultTheme: () => Ye(e),
|
|
1963
|
-
hasDarkTheme:
|
|
1964
|
-
hasLightTheme:
|
|
1965
|
-
hasSystemTheme:
|
|
1966
|
-
theme:
|
|
1967
|
-
selectedTheme:
|
|
1963
|
+
hasDarkTheme: f(() => A.value === e.storageThemeValueDark),
|
|
1964
|
+
hasLightTheme: f(() => A.value === e.storageThemeValueLight),
|
|
1965
|
+
hasSystemTheme: f(() => A.value === e.storageThemeValueSystem),
|
|
1966
|
+
theme: Q,
|
|
1967
|
+
selectedTheme: A
|
|
1968
1968
|
};
|
|
1969
1969
|
}
|
|
1970
1970
|
function Ps({
|
|
@@ -1972,7 +1972,7 @@ function Ps({
|
|
|
1972
1972
|
providedId: e
|
|
1973
1973
|
}) {
|
|
1974
1974
|
const t = at();
|
|
1975
|
-
return
|
|
1975
|
+
return f(() => e ?? `${s}-${t == null ? void 0 : t.uid}`);
|
|
1976
1976
|
}
|
|
1977
1977
|
function $s() {
|
|
1978
1978
|
return Se("aos");
|
|
@@ -2003,19 +2003,19 @@ function vs(s) {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
function ps(s = {}) {
|
|
2005
2005
|
const {
|
|
2006
|
-
internalWindow: e =
|
|
2006
|
+
internalWindow: e = E() ? window : void 0,
|
|
2007
2007
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
2008
2008
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
2009
2009
|
includeScrollbar: i = !0
|
|
2010
|
-
} = s, o =
|
|
2010
|
+
} = s, o = h(t), r = h(n);
|
|
2011
2011
|
function c() {
|
|
2012
|
-
e && (i ? (o.value = e.innerWidth,
|
|
2012
|
+
e && (i ? (o.value = e.innerWidth, r.value = e.innerHeight) : (o.value = e.document.documentElement.clientWidth, r.value = e.document.documentElement.clientHeight));
|
|
2013
2013
|
}
|
|
2014
|
-
return c(),
|
|
2014
|
+
return c(), de(() => {
|
|
2015
2015
|
e && window.addEventListener("resize", c, { passive: !0 });
|
|
2016
2016
|
}), lt(() => {
|
|
2017
2017
|
e && window.removeEventListener("resize", c);
|
|
2018
|
-
}), { width: o, height:
|
|
2018
|
+
}), { width: o, height: r };
|
|
2019
2019
|
}
|
|
2020
2020
|
function Bs({
|
|
2021
2021
|
initialWidth: s = 0,
|
|
@@ -2024,7 +2024,7 @@ function Bs({
|
|
|
2024
2024
|
internalWindow: n,
|
|
2025
2025
|
listenOrientation: i,
|
|
2026
2026
|
breakpoints: o,
|
|
2027
|
-
mediumBreakPoint:
|
|
2027
|
+
mediumBreakPoint: r = "md",
|
|
2028
2028
|
largeBreakPoint: c = "lg"
|
|
2029
2029
|
}) {
|
|
2030
2030
|
const { width: m } = ps({
|
|
@@ -2034,24 +2034,24 @@ function Bs({
|
|
|
2034
2034
|
includeScrollbar: t,
|
|
2035
2035
|
internalWindow: n,
|
|
2036
2036
|
listenOrientation: i
|
|
2037
|
-
}),
|
|
2038
|
-
() => m.value >=
|
|
2039
|
-
),
|
|
2037
|
+
}), v = vs(o), L = f(() => m.value >= v[c]), b = f(
|
|
2038
|
+
() => m.value >= v[r] && m.value < v[c]
|
|
2039
|
+
), y = f(() => m.value >= 0 && m.value < v[r]);
|
|
2040
2040
|
return {
|
|
2041
2041
|
width: m,
|
|
2042
|
-
numericBreakpoints:
|
|
2043
|
-
isSmallScreen:
|
|
2044
|
-
isLargeScreen:
|
|
2045
|
-
isMediumScreen:
|
|
2042
|
+
numericBreakpoints: v,
|
|
2043
|
+
isSmallScreen: y,
|
|
2044
|
+
isLargeScreen: L,
|
|
2045
|
+
isMediumScreen: b,
|
|
2046
2046
|
breakpoints: o
|
|
2047
2047
|
};
|
|
2048
2048
|
}
|
|
2049
2049
|
function qs(s) {
|
|
2050
|
-
const e =
|
|
2050
|
+
const e = h(), t = h(), n = h(), i = h(), o = h(), r = h(), c = new ht({
|
|
2051
2051
|
...s,
|
|
2052
2052
|
element: s.element,
|
|
2053
2053
|
onValuesChanged(m) {
|
|
2054
|
-
e.value = m.xDiff, t.value = m.yDiff, n.value = m.xStart, i.value = m.xEnd, o.value = m.yStart,
|
|
2054
|
+
e.value = m.xDiff, t.value = m.yDiff, n.value = m.xStart, i.value = m.xEnd, o.value = m.yStart, r.value = m.yEnd;
|
|
2055
2055
|
}
|
|
2056
2056
|
});
|
|
2057
2057
|
return {
|
|
@@ -2060,7 +2060,7 @@ function qs(s) {
|
|
|
2060
2060
|
xStart: n,
|
|
2061
2061
|
xEnd: i,
|
|
2062
2062
|
yStart: o,
|
|
2063
|
-
yEnd:
|
|
2063
|
+
yEnd: r,
|
|
2064
2064
|
start: c.start,
|
|
2065
2065
|
stop: c.stop
|
|
2066
2066
|
};
|
|
@@ -2074,25 +2074,25 @@ function gs(s, e = 150) {
|
|
|
2074
2074
|
return Math.ceil(t / e);
|
|
2075
2075
|
}
|
|
2076
2076
|
function Us(s) {
|
|
2077
|
-
const e =
|
|
2077
|
+
const e = f(
|
|
2078
2078
|
() => {
|
|
2079
|
-
var
|
|
2080
|
-
return typeof s.velocity == "number" ? s.velocity : ((
|
|
2079
|
+
var r;
|
|
2080
|
+
return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
|
|
2081
2081
|
}
|
|
2082
|
-
), t =
|
|
2083
|
-
var
|
|
2084
|
-
return typeof s.contentSelector == "string" ? s.contentSelector : (
|
|
2085
|
-
}), n =
|
|
2086
|
-
var
|
|
2087
|
-
if (typeof ((
|
|
2082
|
+
), t = f(() => {
|
|
2083
|
+
var r;
|
|
2084
|
+
return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
|
|
2085
|
+
}), n = f(() => {
|
|
2086
|
+
var r, c, m;
|
|
2087
|
+
if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
|
|
2088
2088
|
return (c = s.contentRef.value) == null ? void 0 : c.textContent;
|
|
2089
2089
|
if (t.value && typeof document < "u") {
|
|
2090
|
-
const
|
|
2091
|
-
if (
|
|
2092
|
-
return
|
|
2090
|
+
const v = document.querySelector(t.value);
|
|
2091
|
+
if (v)
|
|
2092
|
+
return v.textContent;
|
|
2093
2093
|
}
|
|
2094
2094
|
return typeof s.content == "string" ? s.content : (m = s.content) == null ? void 0 : m.value;
|
|
2095
|
-
}), i =
|
|
2095
|
+
}), i = f(() => gs(n.value, e.value)), o = f(() => Ke([n.value]));
|
|
2096
2096
|
return {
|
|
2097
2097
|
content: n,
|
|
2098
2098
|
wordCount: o,
|
|
@@ -2107,12 +2107,12 @@ function ys(s, e) {
|
|
|
2107
2107
|
for (let o = 0; o <= n; o++)
|
|
2108
2108
|
i[0][o] = o;
|
|
2109
2109
|
for (let o = 1; o <= t; o++)
|
|
2110
|
-
for (let
|
|
2111
|
-
const c = s[o - 1] === e[
|
|
2112
|
-
i[o][
|
|
2113
|
-
i[o - 1][
|
|
2114
|
-
i[o][
|
|
2115
|
-
i[o - 1][
|
|
2110
|
+
for (let r = 1; r <= n; r++) {
|
|
2111
|
+
const c = s[o - 1] === e[r - 1] ? 0 : 1;
|
|
2112
|
+
i[o][r] = Math.min(
|
|
2113
|
+
i[o - 1][r] + 1,
|
|
2114
|
+
i[o][r - 1] + 1,
|
|
2115
|
+
i[o - 1][r - 1] + c
|
|
2116
2116
|
);
|
|
2117
2117
|
}
|
|
2118
2118
|
return i[t][n];
|
|
@@ -2125,16 +2125,16 @@ function bs(s, e, t = 0.75) {
|
|
|
2125
2125
|
return Xe(s, e) >= t;
|
|
2126
2126
|
}
|
|
2127
2127
|
function Ws(s, e, t = 0.75) {
|
|
2128
|
-
const n =
|
|
2128
|
+
const n = f(
|
|
2129
2129
|
() => xe(typeof s == "string" ? s : s.value)
|
|
2130
|
-
), i =
|
|
2130
|
+
), i = f(
|
|
2131
2131
|
() => xe(typeof e == "string" ? e : e.value)
|
|
2132
|
-
), o =
|
|
2132
|
+
), o = f(() => typeof t == "number" ? t : t.value), r = f(() => Xe(n.value, i.value));
|
|
2133
2133
|
return {
|
|
2134
|
-
isMatching:
|
|
2134
|
+
isMatching: f(
|
|
2135
2135
|
() => bs(n.value, i.value, o.value)
|
|
2136
2136
|
),
|
|
2137
|
-
score:
|
|
2137
|
+
score: r
|
|
2138
2138
|
};
|
|
2139
2139
|
}
|
|
2140
2140
|
export {
|
|
@@ -2165,7 +2165,7 @@ export {
|
|
|
2165
2165
|
Us as Y,
|
|
2166
2166
|
Ws as Z,
|
|
2167
2167
|
je as _,
|
|
2168
|
-
|
|
2168
|
+
E as a,
|
|
2169
2169
|
ht as b,
|
|
2170
2170
|
Ts as c,
|
|
2171
2171
|
Es as d,
|