maz-ui 3.35.2 → 3.36.0
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/assets/MazTabsBar.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-C7UJhdwD.mjs → MazBtn-BQCYLwIS.mjs} +2 -2
- package/modules/chunks/{MazBtn-CAqBCvkl.cjs → MazBtn-DeZaei8J.cjs} +1 -1
- package/modules/chunks/{MazIcon-D67r-mVk.cjs → MazIcon-20EEWOoS.cjs} +1 -1
- package/modules/chunks/{MazIcon-Do-AT_Gw.mjs → MazIcon-aceUoSZ8.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BGhcM5_9.mjs → MazSpinner-XnoDFuH-.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BwqMyVx2.cjs → MazSpinner-Zd3I5gif.cjs} +1 -1
- package/modules/chunks/{index-BvpGBt8_.cjs → index-CDU35ONK.cjs} +2 -2
- package/modules/chunks/{index-Cd939Pzv.mjs → index-DKgMLGti.mjs} +415 -406
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/modules/composables/use-timer.d.ts +14 -2
- package/types/modules/helpers/mount-component.d.ts +1 -1
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +54 -90
- package/types/modules/plugins/toaster/toaster-handler.d.ts +20 -5
- package/types/modules/plugins/toaster/types.d.ts +37 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
|
3
|
+
var l = (s, e, t) => (Je(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import "../assets/index.css";
|
|
5
|
-
import { inject as et, createVNode as
|
|
5
|
+
import { inject as et, createVNode as V, render as te, nextTick as tt, defineComponent as Oe, defineAsyncComponent as T, ref as v, computed as b, watch as He, onMounted as ue, onBeforeUnmount as De, openBlock as z, createElementBlock as B, withModifiers as x, withKeys as st, withDirectives as Pe, unref as C, vShow as Me, createCommentVNode as k, createElementVNode as A, normalizeClass as Ee, createBlock as N, Transition as nt, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as ot, normalizeStyle as rt, onUnmounted as at } from "vue";
|
|
6
6
|
function Te(s, e) {
|
|
7
7
|
const t = et(s, e);
|
|
8
8
|
if (!t)
|
|
@@ -25,34 +25,34 @@ function $e(s, e) {
|
|
|
25
25
|
function n() {
|
|
26
26
|
t && te(null, t);
|
|
27
27
|
}
|
|
28
|
-
const i =
|
|
28
|
+
const i = V(
|
|
29
29
|
s,
|
|
30
30
|
{ ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} },
|
|
31
31
|
e == null ? void 0 : e.children
|
|
32
32
|
);
|
|
33
33
|
return e != null && e.app ? (i.appContext = e.app._context, t ? te(i, t) : typeof document < "u" && (t = document.createElement("div"), te(i, t))) : (t = t ?? document.body, te(i, t)), { vNode: i, destroy: n, el: t };
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function L() {
|
|
36
36
|
return typeof document < "u";
|
|
37
37
|
}
|
|
38
38
|
class ct {
|
|
39
39
|
constructor(e, t) {
|
|
40
|
-
|
|
40
|
+
l(this, "defaultOptions", {
|
|
41
41
|
element: void 0,
|
|
42
42
|
timeout: 60 * 1e3 * 5,
|
|
43
43
|
// 5 minutes
|
|
44
44
|
once: !1,
|
|
45
45
|
immediate: !0
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
l(this, "options");
|
|
48
|
+
l(this, "timeoutHandler");
|
|
49
|
+
l(this, "isIdle", !1);
|
|
50
|
+
l(this, "isDestroy", !1);
|
|
51
|
+
l(this, "startTime", 0);
|
|
52
|
+
l(this, "remainingTime", 0);
|
|
53
|
+
l(this, "lastClientX", -1);
|
|
54
|
+
l(this, "lastClientY", -1);
|
|
55
|
+
l(this, "eventNames", [
|
|
56
56
|
"DOMMouseScroll",
|
|
57
57
|
"mousedown",
|
|
58
58
|
"mousemove",
|
|
@@ -65,7 +65,7 @@ class ct {
|
|
|
65
65
|
"wheel",
|
|
66
66
|
"click"
|
|
67
67
|
]);
|
|
68
|
-
|
|
68
|
+
l(this, "handleEvent", (e) => {
|
|
69
69
|
try {
|
|
70
70
|
if (this.remainingTime > 0)
|
|
71
71
|
return;
|
|
@@ -83,13 +83,13 @@ class ct {
|
|
|
83
83
|
this.callback = e, this.options = {
|
|
84
84
|
...this.defaultOptions,
|
|
85
85
|
...t
|
|
86
|
-
},
|
|
86
|
+
}, L() && this.start();
|
|
87
87
|
}
|
|
88
88
|
get element() {
|
|
89
89
|
return this.options.element ?? document.body;
|
|
90
90
|
}
|
|
91
91
|
start() {
|
|
92
|
-
if (!
|
|
92
|
+
if (!L()) {
|
|
93
93
|
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
@@ -108,7 +108,7 @@ class ct {
|
|
|
108
108
|
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle });
|
|
109
109
|
}
|
|
110
110
|
destroy() {
|
|
111
|
-
if (!
|
|
111
|
+
if (!L()) {
|
|
112
112
|
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -144,23 +144,23 @@ class ct {
|
|
|
144
144
|
}
|
|
145
145
|
class ut {
|
|
146
146
|
constructor(e, t) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
l(this, "eventHandlerFunction");
|
|
148
|
+
l(this, "event", "visibilitychange");
|
|
149
|
+
l(this, "timeoutHandler");
|
|
150
|
+
l(this, "options");
|
|
151
|
+
l(this, "defaultOptions", {
|
|
152
152
|
timeout: 5e3,
|
|
153
153
|
once: !1,
|
|
154
154
|
immediate: !0
|
|
155
155
|
});
|
|
156
|
-
|
|
156
|
+
l(this, "isVisible", !1);
|
|
157
157
|
this.callback = e, this.options = {
|
|
158
158
|
...this.defaultOptions,
|
|
159
159
|
...t
|
|
160
|
-
}, this.eventHandlerFunction = this.eventHandler.bind(this),
|
|
160
|
+
}, this.eventHandlerFunction = this.eventHandler.bind(this), L() && this.start();
|
|
161
161
|
}
|
|
162
162
|
start() {
|
|
163
|
-
if (!
|
|
163
|
+
if (!L()) {
|
|
164
164
|
console.warn("[UserVisibility](start) you should run this method on client side");
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
@@ -192,20 +192,20 @@ const mt = (s) => new Promise((e) => {
|
|
|
192
192
|
setTimeout(e, s);
|
|
193
193
|
});
|
|
194
194
|
class us {
|
|
195
|
-
constructor({ src: e, identifier: t, once: n = !0, async: i = !0, defer:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
195
|
+
constructor({ src: e, identifier: t, once: n = !0, async: i = !0, defer: r = !0 }) {
|
|
196
|
+
l(this, "src");
|
|
197
|
+
l(this, "script");
|
|
198
|
+
l(this, "once");
|
|
199
|
+
l(this, "async");
|
|
200
|
+
l(this, "defer");
|
|
201
|
+
l(this, "identifier");
|
|
202
202
|
if (typeof window > "u")
|
|
203
203
|
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
204
204
|
if (!e)
|
|
205
205
|
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
206
206
|
if (!t)
|
|
207
207
|
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
208
|
-
this.src = e, this.identifier = t, this.once = n, this.async = i, this.defer =
|
|
208
|
+
this.src = e, this.identifier = t, this.once = n, this.async = i, this.defer = r;
|
|
209
209
|
}
|
|
210
210
|
removeTag(e) {
|
|
211
211
|
var t;
|
|
@@ -225,7 +225,7 @@ class us {
|
|
|
225
225
|
return new Promise((t, n) => {
|
|
226
226
|
try {
|
|
227
227
|
const i = document.createElement("script");
|
|
228
|
-
i.src = this.src, i.async = this.async, i.defer = this.defer, i.dataset.identifier = this.identifier, i.addEventListener("error", (
|
|
228
|
+
i.src = this.src, i.async = this.async, i.defer = this.defer, i.dataset.identifier = this.identifier, i.addEventListener("error", (r) => n(new Error(`[ScriptLoader](injectScript) ${r.message}`))), i.addEventListener("load", (r) => (this.script = r, e[this.identifier] = r, t(r))), document.head.append(i);
|
|
229
229
|
} catch (i) {
|
|
230
230
|
throw new Error(`[ScriptLoader](init) ${i}`);
|
|
231
231
|
}
|
|
@@ -240,25 +240,25 @@ function ms(s) {
|
|
|
240
240
|
}
|
|
241
241
|
class dt {
|
|
242
242
|
constructor(e) {
|
|
243
|
-
|
|
243
|
+
l(this, "defaultOptions", {
|
|
244
244
|
preventDefaultOnTouchMove: !1,
|
|
245
245
|
preventDefaultOnMouseWheel: !1,
|
|
246
246
|
threshold: 50,
|
|
247
247
|
immediate: !1,
|
|
248
248
|
triggerOnEnd: !1
|
|
249
249
|
});
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
250
|
+
l(this, "element");
|
|
251
|
+
l(this, "xStart");
|
|
252
|
+
l(this, "yStart");
|
|
253
|
+
l(this, "xEnd");
|
|
254
|
+
l(this, "yEnd");
|
|
255
|
+
l(this, "xDiff");
|
|
256
|
+
l(this, "yDiff");
|
|
257
|
+
l(this, "onToucheStartCallback");
|
|
258
|
+
l(this, "onToucheMoveCallback");
|
|
259
|
+
l(this, "onToucheEndCallback");
|
|
260
|
+
l(this, "onMouseWheelCallback");
|
|
261
|
+
l(this, "options");
|
|
262
262
|
if (this.inputOption = e, this.options = { ...this.defaultOptions, ...e }, !this.options.element)
|
|
263
263
|
throw new Error(
|
|
264
264
|
"[SwipeHandler] Element should be provided. Its can be a string selector or an HTMLElement"
|
|
@@ -302,8 +302,8 @@ class dt {
|
|
|
302
302
|
this.runCallbacks(e), this.emitValuesChanged();
|
|
303
303
|
}
|
|
304
304
|
runCallbacks(e) {
|
|
305
|
-
var t, n, i,
|
|
306
|
-
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) : (
|
|
305
|
+
var t, n, i, r, a, c, m, p;
|
|
306
|
+
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) : (r = (i = this.options).onRight) == null || r.call(i, e) : this.yDiff > 0 ? (c = (a = this.options).onUp) == null || c.call(a, e) : (p = (m = this.options).onDown) == null || p.call(m, e), this.resetValues());
|
|
307
307
|
}
|
|
308
308
|
resetValues() {
|
|
309
309
|
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();
|
|
@@ -316,8 +316,8 @@ function ds(s, e) {
|
|
|
316
316
|
n - t >= e && (await s(), t = n);
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
const ae = "__vue_click_away__",
|
|
320
|
-
|
|
319
|
+
const ae = "__vue_click_away__", _e = () => document.ontouchstart === null ? "touchstart" : "click", Fe = async (s, e) => {
|
|
320
|
+
Ne(s);
|
|
321
321
|
const t = e.instance, n = e.value, i = typeof n == "function";
|
|
322
322
|
if (!i)
|
|
323
323
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
@@ -325,27 +325,27 @@ const ae = "__vue_click_away__", Fe = () => document.ontouchstart === null ? "to
|
|
|
325
325
|
if ((!s || !s.contains(a.target)) && n && i)
|
|
326
326
|
return n.call(t, a);
|
|
327
327
|
};
|
|
328
|
-
const
|
|
329
|
-
document.addEventListener(
|
|
330
|
-
},
|
|
331
|
-
const e =
|
|
328
|
+
const r = _e();
|
|
329
|
+
document.addEventListener(r, s[ae], !1);
|
|
330
|
+
}, Ne = (s) => {
|
|
331
|
+
const e = _e();
|
|
332
332
|
document.removeEventListener(e, s[ae], !1), delete s[ae];
|
|
333
333
|
}, ht = (s, e) => {
|
|
334
|
-
e.value !== e.oldValue &&
|
|
334
|
+
e.value !== e.oldValue && Fe(s, e);
|
|
335
335
|
}, Ve = {
|
|
336
|
-
mounted:
|
|
336
|
+
mounted: Fe,
|
|
337
337
|
updated: ht,
|
|
338
|
-
unmounted:
|
|
338
|
+
unmounted: Ne
|
|
339
339
|
}, hs = {
|
|
340
340
|
install: (s) => {
|
|
341
341
|
s.directive("click-outside", Ve);
|
|
342
342
|
}
|
|
343
343
|
}, Be = (s, e, t, n) => {
|
|
344
344
|
s.stopPropagation();
|
|
345
|
-
const { handler: i, exclude:
|
|
345
|
+
const { handler: i, exclude: r } = t.value;
|
|
346
346
|
let a = !1;
|
|
347
|
-
if (
|
|
348
|
-
for (const c of
|
|
347
|
+
if (r && r.length > 0)
|
|
348
|
+
for (const c of r)
|
|
349
349
|
a || (a = n.context.$refs[c].contains(s.target));
|
|
350
350
|
!e.contains(s.target) && !a && n.context[i]();
|
|
351
351
|
}, qe = () => document.ontouchstart === null ? "touchstart" : "click", ft = (s, e, t) => {
|
|
@@ -498,21 +498,21 @@ const ae = "__vue_click_away__", Fe = () => document.ontouchstart === null ? "to
|
|
|
498
498
|
};
|
|
499
499
|
class pt {
|
|
500
500
|
constructor(e) {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
501
|
+
l(this, "options");
|
|
502
|
+
l(this, "loader");
|
|
503
|
+
l(this, "wrapper");
|
|
504
|
+
l(this, "img");
|
|
505
|
+
l(this, "keydownHandler");
|
|
506
|
+
l(this, "onImgLoadedCallback");
|
|
507
|
+
l(this, "buttonsAdded");
|
|
508
|
+
l(this, "defaultOptions", {
|
|
509
509
|
scale: !0,
|
|
510
510
|
blur: !0,
|
|
511
511
|
disabled: !1
|
|
512
512
|
});
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
l(this, "mouseEnterListener");
|
|
514
|
+
l(this, "mouseLeaveListener");
|
|
515
|
+
l(this, "renderPreviewListener");
|
|
516
516
|
if (!e.value)
|
|
517
517
|
throw new Error(
|
|
518
518
|
'[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`'
|
|
@@ -556,8 +556,8 @@ class pt {
|
|
|
556
556
|
const e = this.getButton(), t = [], n = this.allInstances.length > 1;
|
|
557
557
|
if (!this.buttonsAdded) {
|
|
558
558
|
if (this.buttonsAdded = !0, n) {
|
|
559
|
-
const i = this.getButton("previous"),
|
|
560
|
-
t.push(i,
|
|
559
|
+
const i = this.getButton("previous"), r = this.getButton("next");
|
|
560
|
+
t.push(i, r);
|
|
561
561
|
}
|
|
562
562
|
this.wrapper.append(e), n && (this.wrapper.prepend(t[0]), this.wrapper.append(t[1]));
|
|
563
563
|
}
|
|
@@ -600,7 +600,7 @@ class pt {
|
|
|
600
600
|
".maz-zoom-img-instance.maz-is-open"
|
|
601
601
|
);
|
|
602
602
|
if (n) {
|
|
603
|
-
const i = this.allInstances.indexOf(n),
|
|
603
|
+
const i = this.allInstances.indexOf(n), r = t ? i + 1 : i - 1, a = this.allInstances[this.getNewInstanceIndex(r)];
|
|
604
604
|
a && this.useNextInstance(n, a);
|
|
605
605
|
}
|
|
606
606
|
}
|
|
@@ -661,12 +661,12 @@ const We = {
|
|
|
661
661
|
};
|
|
662
662
|
class je {
|
|
663
663
|
constructor(e = {}) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
664
|
+
l(this, "observers", []);
|
|
665
|
+
l(this, "defaultOptions", ze);
|
|
666
|
+
l(this, "options");
|
|
667
|
+
l(this, "onImgLoadedCallback");
|
|
668
|
+
l(this, "onImgErrorCallback");
|
|
669
|
+
l(this, "hasImgLoaded", !1);
|
|
670
670
|
this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
|
|
671
671
|
}
|
|
672
672
|
async loadErrorPhoto() {
|
|
@@ -746,8 +746,8 @@ class je {
|
|
|
746
746
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
747
747
|
const n = t ?? await this.loadErrorPhoto(), i = e.querySelectorAll("source");
|
|
748
748
|
if (i.length > 0)
|
|
749
|
-
for await (const
|
|
750
|
-
|
|
749
|
+
for await (const r of i)
|
|
750
|
+
r.srcset = n;
|
|
751
751
|
else
|
|
752
752
|
this.setImgSrc(e, n);
|
|
753
753
|
}
|
|
@@ -772,11 +772,11 @@ class je {
|
|
|
772
772
|
n.src = t;
|
|
773
773
|
}
|
|
774
774
|
handleIntersectionObserver(e, t, n, i) {
|
|
775
|
-
var
|
|
775
|
+
var r, a;
|
|
776
776
|
this.observers.push(i);
|
|
777
777
|
for (const c of n)
|
|
778
778
|
if (c.isIntersecting) {
|
|
779
|
-
if ((a = (
|
|
779
|
+
if ((a = (r = this.options).onIntersecting) == null || a.call(r, c.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
780
780
|
return;
|
|
781
781
|
this.loadImage(e, t);
|
|
782
782
|
}
|
|
@@ -859,23 +859,23 @@ const bt = {
|
|
|
859
859
|
},
|
|
860
860
|
emits: ["close", "previous", "next", "before-close"],
|
|
861
861
|
setup(s, { emit: e }) {
|
|
862
|
-
const t = e, n =
|
|
863
|
-
() =>
|
|
864
|
-
),
|
|
865
|
-
function
|
|
866
|
-
c.value = !0,
|
|
862
|
+
const t = e, n = T(() => import("./MazSpinner-XnoDFuH-.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), r = T(() => import("./chevron-left-CcZaP3Rc.mjs")), a = s, c = v(!1), m = v(!1), p = v(!1), E = v(!1), y = v(!1), f = v(a.clickedElement), S = b(() => a.clickedElement.getBoundingClientRect()), W = b(
|
|
863
|
+
() => S.value.height < S.value.width
|
|
864
|
+
), $ = v(a.src), H = v(a.alt), X = v(), I = v(), j = b(() => y.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
|
|
865
|
+
function R() {
|
|
866
|
+
c.value = !0, m.value = !1, p.value = !0;
|
|
867
867
|
}
|
|
868
868
|
He(
|
|
869
|
-
() =>
|
|
869
|
+
() => p.value,
|
|
870
870
|
(u) => {
|
|
871
|
-
u &&
|
|
871
|
+
u && ee();
|
|
872
872
|
}
|
|
873
873
|
);
|
|
874
|
-
function
|
|
875
|
-
t("before-close"),
|
|
874
|
+
function D() {
|
|
875
|
+
t("before-close"), ve();
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
u.key === "Escape" && (u.preventDefault(),
|
|
877
|
+
function P(u) {
|
|
878
|
+
u.key === "Escape" && (u.preventDefault(), D()), (u.key === "ArrowLeft" || u.key === "ArrowRight") && (u.preventDefault(), K(u.key === "ArrowRight" ? "next" : "previous"));
|
|
879
879
|
}
|
|
880
880
|
function me() {
|
|
881
881
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
@@ -886,54 +886,54 @@ const bt = {
|
|
|
886
886
|
function Z() {
|
|
887
887
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
888
888
|
}
|
|
889
|
-
function he(u,
|
|
890
|
-
return
|
|
889
|
+
function he(u, d) {
|
|
890
|
+
return d < 0 ? u.length - 1 : d >= u.length ? 0 : d;
|
|
891
891
|
}
|
|
892
|
-
async function fe(u,
|
|
893
|
-
u.classList.remove(a.openInstanceClass),
|
|
894
|
-
const
|
|
895
|
-
|
|
892
|
+
async function fe(u, d) {
|
|
893
|
+
u.classList.remove(a.openInstanceClass), d.classList.add(a.openInstanceClass);
|
|
894
|
+
const o = d.getAttribute("data-src"), h = d.getAttribute("data-alt");
|
|
895
|
+
H.value = h, o && ($.value = o), c.value = !1, c.value || (m.value = !0);
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
const
|
|
897
|
+
function K(u) {
|
|
898
|
+
const d = document.querySelector(
|
|
899
899
|
`.m-fullscreen-img-instance.${a.openInstanceClass}`
|
|
900
900
|
);
|
|
901
|
-
if (
|
|
902
|
-
const
|
|
903
|
-
|
|
901
|
+
if (d) {
|
|
902
|
+
const o = Z(), h = o.indexOf(d), g = u === "next" ? h + 1 : h - 1, w = o[he(o, g)];
|
|
903
|
+
f.value = w, w && fe(d, w), t(u), y.value ? Q(I.value) : F();
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
|
|
906
|
+
function Q(u) {
|
|
907
|
+
W.value ? (u.style.width = `${window.innerWidth}px`, u.style.removeProperty("height")) : (u.style.height = `${window.innerHeight}px`, u.style.removeProperty("width")), u.style.removeProperty("top"), u.style.removeProperty("left");
|
|
908
908
|
}
|
|
909
|
-
async function
|
|
910
|
-
const u =
|
|
911
|
-
|
|
909
|
+
async function G() {
|
|
910
|
+
const u = I.value;
|
|
911
|
+
y.value ? (y.value = !y.value, F()) : (y.value = !y.value, Q(u));
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
var
|
|
915
|
-
return (
|
|
913
|
+
function Y(u) {
|
|
914
|
+
var d;
|
|
915
|
+
return (d = I.value) == null ? void 0 : d.animate(u, {
|
|
916
916
|
duration: a.animation.duration,
|
|
917
917
|
// Durée de l'animation en millisecondes
|
|
918
918
|
easing: a.animation.easing
|
|
919
919
|
// Fonction d'interpolation pour l'animation inverse
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
const
|
|
924
|
-
(h - 2 * u) /
|
|
925
|
-
(
|
|
926
|
-
), ge = (h -
|
|
922
|
+
function J(u = a.offset ?? 0) {
|
|
923
|
+
const d = f.value instanceof HTMLImageElement ? f.value.naturalWidth : f.value.clientWidth, o = f.value instanceof HTMLImageElement ? f.value.naturalHeight : f.value.clientHeight, h = window.innerWidth, g = window.innerHeight, w = Math.min(
|
|
924
|
+
(h - 2 * u) / d,
|
|
925
|
+
(g - 2 * u) / o
|
|
926
|
+
), ge = (h - d * w) / 2, pe = (g - o * w) / 2;
|
|
927
927
|
return {
|
|
928
|
-
originalWidth:
|
|
929
|
-
originalHeight:
|
|
930
|
-
scale:
|
|
928
|
+
originalWidth: d,
|
|
929
|
+
originalHeight: o,
|
|
930
|
+
scale: w,
|
|
931
931
|
centerX: ge,
|
|
932
932
|
centerY: pe
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
const { originalWidth:
|
|
935
|
+
function _({ trigger: u }) {
|
|
936
|
+
const { originalWidth: d, originalHeight: o, scale: h, centerX: g, centerY: w } = J(), { top: ge, left: pe, width: Ze, height: Qe } = S.value, Ie = [
|
|
937
937
|
{
|
|
938
938
|
top: `${ge}px`,
|
|
939
939
|
left: `${pe}px`,
|
|
@@ -942,10 +942,10 @@ const bt = {
|
|
|
942
942
|
opacity: 0
|
|
943
943
|
},
|
|
944
944
|
{
|
|
945
|
-
top: `${
|
|
946
|
-
left: `${
|
|
947
|
-
width: `${
|
|
948
|
-
height: `${
|
|
945
|
+
top: `${w}px`,
|
|
946
|
+
left: `${g}px`,
|
|
947
|
+
width: `${d * h}px`,
|
|
948
|
+
height: `${o * h}px`,
|
|
949
949
|
opacity: 1
|
|
950
950
|
}
|
|
951
951
|
];
|
|
@@ -953,97 +953,97 @@ const bt = {
|
|
|
953
953
|
frames: u === "open" ? Ie : Ie.reverse()
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
const { centerX: u, centerY:
|
|
958
|
-
top: `${
|
|
956
|
+
function F() {
|
|
957
|
+
const { centerX: u, centerY: d, originalHeight: o, originalWidth: h, scale: g } = J(), w = {
|
|
958
|
+
top: `${d}px`,
|
|
959
959
|
left: `${u}px`,
|
|
960
|
-
width: `${h *
|
|
961
|
-
height: `${
|
|
960
|
+
width: `${h * g}px`,
|
|
961
|
+
height: `${o * g}px`
|
|
962
962
|
};
|
|
963
|
-
if (!
|
|
963
|
+
if (!I.value)
|
|
964
964
|
throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
965
|
-
Object.assign(
|
|
965
|
+
Object.assign(I.value.style, w);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
968
|
-
const { frames: u } =
|
|
967
|
+
function ee() {
|
|
968
|
+
const { frames: u } = _({
|
|
969
969
|
trigger: "open"
|
|
970
|
-
}),
|
|
971
|
-
if (!
|
|
970
|
+
}), d = Y(u);
|
|
971
|
+
if (!d)
|
|
972
972
|
throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");
|
|
973
|
-
|
|
974
|
-
|
|
973
|
+
d.onfinish = () => {
|
|
974
|
+
F();
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
const { frames: u } =
|
|
977
|
+
function ve() {
|
|
978
|
+
const { frames: u } = _({
|
|
979
979
|
trigger: "close"
|
|
980
|
-
}),
|
|
981
|
-
if (!
|
|
980
|
+
}), d = Y(u);
|
|
981
|
+
if (!d)
|
|
982
982
|
throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
|
|
983
|
-
|
|
984
|
-
var
|
|
985
|
-
t("close"), (
|
|
983
|
+
d.onfinish = () => {
|
|
984
|
+
var o, h;
|
|
985
|
+
t("close"), (o = X.value) == null || o.remove(), (h = a.destroy) == null || h.call(a);
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
|
|
988
|
+
function M() {
|
|
989
|
+
y.value || F();
|
|
990
990
|
}
|
|
991
991
|
return ue(() => {
|
|
992
|
-
|
|
992
|
+
m.value = !0, document.addEventListener("keydown", P), window.addEventListener("resize", M), me(), E.value = Z().length > 1;
|
|
993
993
|
}), De(() => {
|
|
994
|
-
document.removeEventListener("keydown",
|
|
995
|
-
}), (u,
|
|
994
|
+
document.removeEventListener("keydown", P), window.removeEventListener("resize", M), de();
|
|
995
|
+
}), (u, d) => (z(), B("div", {
|
|
996
996
|
ref_key: "FullscreenImgElement",
|
|
997
|
-
ref:
|
|
997
|
+
ref: X,
|
|
998
998
|
role: "button",
|
|
999
999
|
class: "m-fullscreen-img",
|
|
1000
1000
|
tabindex: "0",
|
|
1001
|
-
onClick:
|
|
1002
|
-
onKeypress: st(
|
|
1001
|
+
onClick: x(D, ["stop"]),
|
|
1002
|
+
onKeypress: st(x(D, ["prevent"]), ["esc"])
|
|
1003
1003
|
}, [
|
|
1004
|
-
Pe(
|
|
1004
|
+
Pe(V(
|
|
1005
1005
|
C(n),
|
|
1006
1006
|
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
1007
1007
|
null,
|
|
1008
1008
|
512
|
|
1009
1009
|
/* NEED_PATCH */
|
|
1010
1010
|
), [
|
|
1011
|
-
[Me,
|
|
1011
|
+
[Me, m.value]
|
|
1012
1012
|
]),
|
|
1013
|
-
|
|
1013
|
+
p.value && E.value ? (z(), B("button", {
|
|
1014
1014
|
key: 0,
|
|
1015
1015
|
type: "button",
|
|
1016
1016
|
class: "m-fullscreen-btn --next",
|
|
1017
|
-
onClick:
|
|
1017
|
+
onClick: d[0] || (d[0] = x((o) => K("next"), ["stop"]))
|
|
1018
1018
|
}, [
|
|
1019
|
-
|
|
1020
|
-
])) :
|
|
1021
|
-
|
|
1019
|
+
V(C(r), { class: "maz-rotate-180 maz-text-3xl" })
|
|
1020
|
+
])) : k("v-if", !0),
|
|
1021
|
+
p.value && E.value ? (z(), B("button", {
|
|
1022
1022
|
key: 1,
|
|
1023
1023
|
type: "button",
|
|
1024
1024
|
class: "m-fullscreen-btn --previous",
|
|
1025
|
-
onClick:
|
|
1025
|
+
onClick: d[1] || (d[1] = x((o) => K("previous"), ["stop"]))
|
|
1026
1026
|
}, [
|
|
1027
|
-
|
|
1028
|
-
])) :
|
|
1029
|
-
|
|
1027
|
+
V(C(r), { class: "maz-text-3xl" })
|
|
1028
|
+
])) : k("v-if", !0),
|
|
1029
|
+
A("button", {
|
|
1030
1030
|
type: "button",
|
|
1031
1031
|
class: "m-fullscreen-btn --close",
|
|
1032
|
-
onClick:
|
|
1032
|
+
onClick: D
|
|
1033
1033
|
}, [
|
|
1034
|
-
|
|
1034
|
+
V(C(i), { class: "maz-text-3xl" })
|
|
1035
1035
|
]),
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1036
|
+
A("div", zt, [
|
|
1037
|
+
k(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
1038
|
+
A("img", {
|
|
1039
1039
|
ref_key: "ImgElement",
|
|
1040
|
-
ref:
|
|
1041
|
-
src:
|
|
1042
|
-
alt:
|
|
1040
|
+
ref: I,
|
|
1041
|
+
src: $.value,
|
|
1042
|
+
alt: H.value ?? void 0,
|
|
1043
1043
|
tabindex: "0",
|
|
1044
|
-
class: Ee([
|
|
1045
|
-
onLoad:
|
|
1046
|
-
onClick:
|
|
1044
|
+
class: Ee([j.value]),
|
|
1045
|
+
onLoad: R,
|
|
1046
|
+
onClick: d[2] || (d[2] = x((o) => u.zoom ? G() : void 0, ["stop"]))
|
|
1047
1047
|
}, null, 42, Lt)
|
|
1048
1048
|
])
|
|
1049
1049
|
], 40, Et));
|
|
@@ -1056,8 +1056,8 @@ const bt = {
|
|
|
1056
1056
|
}, It = /* @__PURE__ */ Re(Tt, [["__scopeId", "data-v-4836a523"]]), ke = "m-fullscreen-is-open";
|
|
1057
1057
|
class St {
|
|
1058
1058
|
constructor() {
|
|
1059
|
-
|
|
1060
|
-
|
|
1059
|
+
l(this, "options");
|
|
1060
|
+
l(this, "defaultOptions", {
|
|
1061
1061
|
scaleOnHover: !1,
|
|
1062
1062
|
blurOnHover: !1,
|
|
1063
1063
|
disabled: !1,
|
|
@@ -1068,17 +1068,17 @@ class St {
|
|
|
1068
1068
|
easing: "ease-in-out"
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1071
|
+
l(this, "mouseEnterListener");
|
|
1072
|
+
l(this, "mouseLeaveListener");
|
|
1073
|
+
l(this, "renderPreviewListener");
|
|
1074
1074
|
}
|
|
1075
1075
|
buildOptions(e, t) {
|
|
1076
|
-
const n = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, i = (n == null ? void 0 : n.src) ?? this.getImgSrc(e),
|
|
1076
|
+
const n = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, i = (n == null ? void 0 : n.src) ?? this.getImgSrc(e), r = (n == null ? void 0 : n.alt) ?? this.getImgAlt(e);
|
|
1077
1077
|
return {
|
|
1078
1078
|
...this.defaultOptions,
|
|
1079
1079
|
...n,
|
|
1080
1080
|
src: i,
|
|
1081
|
-
alt:
|
|
1081
|
+
alt: r
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
1084
|
get allInstances() {
|
|
@@ -1169,7 +1169,7 @@ const Ke = {
|
|
|
1169
1169
|
for (const { name: e, directive: t } of kt)
|
|
1170
1170
|
s.directive(e, t);
|
|
1171
1171
|
}
|
|
1172
|
-
},
|
|
1172
|
+
}, Ct = (s) => s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "", xt = {
|
|
1173
1173
|
style: "currency",
|
|
1174
1174
|
minimumFractionDigits: 2,
|
|
1175
1175
|
round: !1
|
|
@@ -1187,7 +1187,7 @@ const Ke = {
|
|
|
1187
1187
|
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
1188
1188
|
}, Ht = (s, e, t) => {
|
|
1189
1189
|
const n = {
|
|
1190
|
-
...
|
|
1190
|
+
...xt,
|
|
1191
1191
|
...t
|
|
1192
1192
|
};
|
|
1193
1193
|
Ot(s, e, n);
|
|
@@ -1230,110 +1230,107 @@ const Ke = {
|
|
|
1230
1230
|
} catch (i) {
|
|
1231
1231
|
throw new Error(`[maz-ui](FilterNumber) ${i}`);
|
|
1232
1232
|
}
|
|
1233
|
-
},
|
|
1234
|
-
capitalize:
|
|
1233
|
+
}, _t = {
|
|
1234
|
+
capitalize: Ct,
|
|
1235
1235
|
currency: Ht,
|
|
1236
1236
|
date: Pt,
|
|
1237
1237
|
number: $t
|
|
1238
1238
|
}, bs = {
|
|
1239
1239
|
install(s) {
|
|
1240
|
-
s.provide("filters",
|
|
1240
|
+
s.provide("filters", _t);
|
|
1241
1241
|
}
|
|
1242
|
-
},
|
|
1243
|
-
const n = v(s);
|
|
1244
|
-
let
|
|
1245
|
-
function
|
|
1246
|
-
n.value =
|
|
1242
|
+
}, Ft = ({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200 }) => {
|
|
1243
|
+
const n = v(s), i = v(s);
|
|
1244
|
+
let r;
|
|
1245
|
+
function a(y) {
|
|
1246
|
+
typeof y == "number" && (i.value = y), typeof y == "number" && (n.value = y), c();
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1249
|
-
|
|
1250
|
-
|
|
1248
|
+
function c() {
|
|
1249
|
+
r || (r = setInterval(() => {
|
|
1250
|
+
i.value -= t, i.value <= 0 && (E(), e == null || e());
|
|
1251
1251
|
}, t));
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1254
|
-
|
|
1253
|
+
function m() {
|
|
1254
|
+
r && (clearInterval(r), r = void 0);
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
!
|
|
1256
|
+
function p() {
|
|
1257
|
+
!r && i.value > 0 && c();
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
|
|
1259
|
+
function E() {
|
|
1260
|
+
i.value = n.value, m();
|
|
1261
1261
|
}
|
|
1262
1262
|
return {
|
|
1263
|
-
remainingTime:
|
|
1264
|
-
start:
|
|
1265
|
-
pause:
|
|
1266
|
-
resume:
|
|
1267
|
-
stop:
|
|
1263
|
+
remainingTime: i,
|
|
1264
|
+
start: a,
|
|
1265
|
+
pause: m,
|
|
1266
|
+
resume: p,
|
|
1267
|
+
stop: E
|
|
1268
1268
|
};
|
|
1269
|
-
},
|
|
1269
|
+
}, Nt = { class: "m-toast__message-wrapper" }, Vt = { class: "m-toast__message" }, Bt = { class: "maz-flex maz-items-center maz-gap-2" }, qt = { key: 0 }, Ut = {
|
|
1270
|
+
key: 4,
|
|
1271
|
+
class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
|
|
1272
|
+
}, Wt = /* @__PURE__ */ Oe({
|
|
1270
1273
|
__name: "MazToast",
|
|
1271
1274
|
props: {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
default: "bottom-right"
|
|
1275
|
-
},
|
|
1275
|
+
message: { default: void 0 },
|
|
1276
|
+
position: { default: "bottom-right" },
|
|
1276
1277
|
maxToasts: { type: [Number, Boolean], default: !1 },
|
|
1277
|
-
timeout: { type: Number, default: 1e4 },
|
|
1278
|
-
queue: { type: Boolean
|
|
1279
|
-
noPauseOnHover: { type: Boolean
|
|
1280
|
-
type: {
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
}
|
|
1284
|
-
message: { type: String, required: !0 },
|
|
1285
|
-
link: { type: Object, default: void 0 },
|
|
1286
|
-
action: { type: Object, default: void 0 },
|
|
1287
|
-
persistent: { type: Boolean, default: !1 }
|
|
1278
|
+
timeout: { type: [Number, Boolean], default: 1e4 },
|
|
1279
|
+
queue: { type: Boolean },
|
|
1280
|
+
noPauseOnHover: { type: Boolean },
|
|
1281
|
+
type: { default: "info" },
|
|
1282
|
+
link: { default: void 0 },
|
|
1283
|
+
action: { default: void 0 },
|
|
1284
|
+
persistent: { type: Boolean }
|
|
1288
1285
|
},
|
|
1289
1286
|
emits: ["close", "click", "open"],
|
|
1290
|
-
setup(s, {
|
|
1291
|
-
const
|
|
1287
|
+
setup(s, { expose: e, emit: t }) {
|
|
1288
|
+
const n = T(() => import("./MazBtn-BQCYLwIS.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), r = T(
|
|
1292
1289
|
() => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
|
|
1293
|
-
),
|
|
1290
|
+
), a = T(
|
|
1294
1291
|
() => import("./exclamation-triangle-BfZLmRbP.mjs")
|
|
1295
|
-
),
|
|
1292
|
+
), c = T(
|
|
1296
1293
|
() => import("./exclamation-circle-DzBJ8vGa.mjs")
|
|
1297
|
-
),
|
|
1294
|
+
), m = T(
|
|
1298
1295
|
() => import("./information-circle-C0pE_7kr.mjs")
|
|
1299
|
-
),
|
|
1296
|
+
), p = T(() => import("./check-circle-CtCMBYyp.mjs")), E = T(() => import("./link-D7FkvsK4.mjs")), y = v(), f = s, S = b(() => {
|
|
1300
1297
|
switch (f.type) {
|
|
1301
1298
|
case "danger":
|
|
1302
|
-
return
|
|
1299
|
+
return a;
|
|
1303
1300
|
case "info":
|
|
1304
|
-
return
|
|
1301
|
+
return m;
|
|
1305
1302
|
case "success":
|
|
1306
|
-
return
|
|
1303
|
+
return p;
|
|
1307
1304
|
case "warning":
|
|
1308
|
-
return
|
|
1305
|
+
return c;
|
|
1309
1306
|
default:
|
|
1310
1307
|
return;
|
|
1311
1308
|
}
|
|
1312
|
-
}),
|
|
1313
|
-
callback:
|
|
1314
|
-
timeout: f.timeout
|
|
1309
|
+
}), W = t, $ = b(() => f.position.includes("top") ? "top" : "bottom"), H = b(() => f.position.includes("left") ? "left" : f.position.includes("right") ? "right" : "center"), X = b(() => H.value !== "center" ? H.value === "right" ? "m-slide-right" : "m-slide-left" : $.value === "top" ? "m-slide-top" : "m-slide-bottom"), I = v(!1), j = v(!1), R = v(), D = `m-toast-container --${$.value} --${H.value}`, P = `.${D.replaceAll(" ", ".")}`, { start: me, stop: de, pause: Z, resume: he, remainingTime: fe } = Ft({
|
|
1310
|
+
callback: M,
|
|
1311
|
+
timeout: typeof f.timeout == "number" ? f.timeout : 0
|
|
1315
1312
|
});
|
|
1316
|
-
function
|
|
1317
|
-
const o = document.querySelector(
|
|
1313
|
+
function K() {
|
|
1314
|
+
const o = document.querySelector(P);
|
|
1318
1315
|
if (!o && !o) {
|
|
1319
|
-
const
|
|
1320
|
-
|
|
1316
|
+
const h = document.body, g = document.createElement("div");
|
|
1317
|
+
g.className = D, h.append(g);
|
|
1321
1318
|
}
|
|
1322
1319
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const o = document.querySelector(
|
|
1320
|
+
function Q() {
|
|
1321
|
+
const o = document.querySelector(P);
|
|
1325
1322
|
return !f.queue && f.maxToasts === !1 ? !1 : typeof f.maxToasts == "number" && o ? f.maxToasts <= o.childElementCount : o && o.childElementCount > 0;
|
|
1326
1323
|
}
|
|
1327
|
-
function
|
|
1328
|
-
if (
|
|
1329
|
-
|
|
1324
|
+
function G() {
|
|
1325
|
+
if (Q()) {
|
|
1326
|
+
R.value = setTimeout(G, 250);
|
|
1330
1327
|
return;
|
|
1331
1328
|
}
|
|
1332
|
-
const o = document.querySelector(
|
|
1333
|
-
|
|
1329
|
+
const o = document.querySelector(P);
|
|
1330
|
+
y.value && o && o.prepend(y.value), j.value = !0, typeof f.timeout == "number" && f.timeout > 0 && me();
|
|
1334
1331
|
}
|
|
1335
|
-
const
|
|
1336
|
-
function
|
|
1332
|
+
const Y = v("100%");
|
|
1333
|
+
function J() {
|
|
1337
1334
|
switch (f.type) {
|
|
1338
1335
|
case "danger":
|
|
1339
1336
|
return "maz-bg-danger-700";
|
|
@@ -1348,119 +1345,125 @@ const Ke = {
|
|
|
1348
1345
|
}
|
|
1349
1346
|
}
|
|
1350
1347
|
He(
|
|
1351
|
-
() =>
|
|
1348
|
+
() => fe.value,
|
|
1352
1349
|
(o) => {
|
|
1353
|
-
if (typeof o == "number") {
|
|
1354
|
-
const
|
|
1355
|
-
|
|
1350
|
+
if (typeof o == "number" && typeof f.timeout == "number") {
|
|
1351
|
+
const h = 100 * o / f.timeout;
|
|
1352
|
+
Y.value = `${h}%`, o <= 0 && M();
|
|
1356
1353
|
}
|
|
1357
1354
|
}
|
|
1358
1355
|
);
|
|
1359
|
-
function
|
|
1360
|
-
|
|
1356
|
+
function _(o) {
|
|
1357
|
+
W("click", o), f.persistent || M();
|
|
1361
1358
|
}
|
|
1362
|
-
async function
|
|
1363
|
-
var
|
|
1364
|
-
|
|
1359
|
+
async function F(o, h) {
|
|
1360
|
+
var g;
|
|
1361
|
+
I.value = !0, await o(), I.value = !1, (g = f.action) != null && g.closeToast && _(h);
|
|
1365
1362
|
}
|
|
1366
|
-
function
|
|
1367
|
-
f.noPauseOnHover || (o ?
|
|
1363
|
+
function ee(o) {
|
|
1364
|
+
f.noPauseOnHover || (o ? Z() : he());
|
|
1368
1365
|
}
|
|
1369
1366
|
function ve() {
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1372
|
-
function j() {
|
|
1373
|
-
ve(), S.value = !1;
|
|
1367
|
+
de(), R.value && clearTimeout(R.value);
|
|
1374
1368
|
}
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1369
|
+
function M() {
|
|
1370
|
+
ve(), j.value = !1;
|
|
1377
1371
|
}
|
|
1372
|
+
e({ close: M });
|
|
1378
1373
|
function u() {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1374
|
+
W("open");
|
|
1375
|
+
}
|
|
1376
|
+
function d() {
|
|
1377
|
+
var h;
|
|
1378
|
+
W("close"), (h = y.value) == null || h.remove();
|
|
1379
|
+
const o = document.querySelector(P);
|
|
1382
1380
|
o && !(o != null && o.hasChildNodes()) && o.remove();
|
|
1383
1381
|
}
|
|
1384
1382
|
return ue(() => {
|
|
1385
|
-
|
|
1386
|
-
}), (o,
|
|
1387
|
-
name:
|
|
1388
|
-
onAfterLeave:
|
|
1389
|
-
onAfterEnter:
|
|
1383
|
+
K(), G();
|
|
1384
|
+
}), (o, h) => (z(), N(nt, {
|
|
1385
|
+
name: X.value,
|
|
1386
|
+
onAfterLeave: d,
|
|
1387
|
+
onAfterEnter: u,
|
|
1390
1388
|
persisted: ""
|
|
1391
1389
|
}, {
|
|
1392
1390
|
default: ye(() => [
|
|
1393
|
-
Pe(
|
|
1391
|
+
Pe(A(
|
|
1394
1392
|
"button",
|
|
1395
1393
|
{
|
|
1396
1394
|
ref_key: "Toaster",
|
|
1397
|
-
ref:
|
|
1398
|
-
class: Ee(["m-toast", [
|
|
1395
|
+
ref: y,
|
|
1396
|
+
class: Ee(["m-toast", [
|
|
1397
|
+
`--${o.type}`,
|
|
1398
|
+
`--${$.value}`,
|
|
1399
|
+
`--${H.value}`,
|
|
1400
|
+
{ "maz-pb-1": typeof o.timeout == "number" && o.timeout > 0, "--persistent": o.persistent }
|
|
1401
|
+
]]),
|
|
1399
1402
|
role: "alert",
|
|
1400
|
-
onMouseover:
|
|
1401
|
-
onMouseleave:
|
|
1402
|
-
onClick:
|
|
1403
|
+
onMouseover: h[2] || (h[2] = (g) => ee(!0)),
|
|
1404
|
+
onMouseleave: h[3] || (h[3] = (g) => ee(!1)),
|
|
1405
|
+
onClick: h[4] || (h[4] = x((g) => {
|
|
1403
1406
|
var w;
|
|
1404
|
-
return
|
|
1407
|
+
return o.link && !((w = o.link) != null && w.closeToast) ? void 0 : _(g);
|
|
1405
1408
|
}, ["stop"]))
|
|
1406
1409
|
},
|
|
1407
1410
|
[
|
|
1408
|
-
|
|
1411
|
+
S.value ? (z(), N(it(S.value), {
|
|
1409
1412
|
key: 0,
|
|
1410
1413
|
class: "maz-text-2xl"
|
|
1411
|
-
})) :
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
+
})) : k("v-if", !0),
|
|
1415
|
+
A("div", Nt, [
|
|
1416
|
+
A(
|
|
1414
1417
|
"p",
|
|
1415
1418
|
Vt,
|
|
1416
|
-
be(
|
|
1419
|
+
be(o.message),
|
|
1417
1420
|
1
|
|
1418
1421
|
/* TEXT */
|
|
1419
1422
|
)
|
|
1420
1423
|
]),
|
|
1421
|
-
|
|
1424
|
+
o.action ? (z(), N(C(n), {
|
|
1422
1425
|
key: 1,
|
|
1423
1426
|
"data-test": "action-btn",
|
|
1424
|
-
color:
|
|
1427
|
+
color: o.type,
|
|
1425
1428
|
pastel: "",
|
|
1426
|
-
loading:
|
|
1429
|
+
loading: I.value,
|
|
1427
1430
|
size: "sm",
|
|
1428
|
-
onClick:
|
|
1431
|
+
onClick: h[0] || (h[0] = x((g) => F(o.action.func, g), ["stop"]))
|
|
1429
1432
|
}, {
|
|
1430
1433
|
default: ye(() => [
|
|
1431
1434
|
ot(
|
|
1432
|
-
be(
|
|
1435
|
+
be(o.action.text),
|
|
1433
1436
|
1
|
|
1434
1437
|
/* TEXT */
|
|
1435
1438
|
)
|
|
1436
1439
|
]),
|
|
1437
1440
|
_: 1
|
|
1438
1441
|
/* STABLE */
|
|
1439
|
-
}, 8, ["color", "loading"])) :
|
|
1440
|
-
|
|
1442
|
+
}, 8, ["color", "loading"])) : k("v-if", !0),
|
|
1443
|
+
o.link ? (z(), N(C(n), {
|
|
1441
1444
|
key: 2,
|
|
1442
1445
|
"data-test": "link-btn",
|
|
1443
|
-
color:
|
|
1446
|
+
color: o.type,
|
|
1444
1447
|
pastel: "",
|
|
1445
1448
|
size: "xs",
|
|
1446
|
-
href:
|
|
1447
|
-
target:
|
|
1449
|
+
href: o.link.href,
|
|
1450
|
+
target: o.link.target ?? "_self"
|
|
1448
1451
|
}, {
|
|
1449
1452
|
default: ye(() => {
|
|
1450
|
-
var
|
|
1453
|
+
var g;
|
|
1451
1454
|
return [
|
|
1452
|
-
|
|
1453
|
-
|
|
1455
|
+
A("div", Bt, [
|
|
1456
|
+
o.link.text ? (z(), B(
|
|
1454
1457
|
"span",
|
|
1455
1458
|
qt,
|
|
1456
|
-
be(
|
|
1459
|
+
be(o.link.text),
|
|
1457
1460
|
1
|
|
1458
1461
|
/* TEXT */
|
|
1459
|
-
)) :
|
|
1460
|
-
((
|
|
1462
|
+
)) : k("v-if", !0),
|
|
1463
|
+
((g = o.link) == null ? void 0 : g.target) == "_blank" ? (z(), N(C(r), {
|
|
1461
1464
|
key: 1,
|
|
1462
1465
|
class: "maz-text-xl"
|
|
1463
|
-
})) : (
|
|
1466
|
+
})) : (z(), N(C(E), {
|
|
1464
1467
|
key: 2,
|
|
1465
1468
|
class: "maz-text-xl"
|
|
1466
1469
|
}))
|
|
@@ -1469,40 +1472,40 @@ const Ke = {
|
|
|
1469
1472
|
}),
|
|
1470
1473
|
_: 1
|
|
1471
1474
|
/* STABLE */
|
|
1472
|
-
}, 8, ["color", "href", "target"])) :
|
|
1473
|
-
|
|
1475
|
+
}, 8, ["color", "href", "target"])) : k("v-if", !0),
|
|
1476
|
+
o.persistent ? k("v-if", !0) : (z(), B("button", {
|
|
1474
1477
|
key: 3,
|
|
1475
1478
|
class: "--close",
|
|
1476
|
-
onClick:
|
|
1479
|
+
onClick: h[1] || (h[1] = x((g) => _(g), ["stop"]))
|
|
1477
1480
|
}, [
|
|
1478
|
-
|
|
1481
|
+
V(C(i), { class: "--icon maz-text-xl" })
|
|
1479
1482
|
])),
|
|
1480
|
-
|
|
1481
|
-
|
|
1483
|
+
typeof o.timeout == "number" && o.timeout > 0 ? (z(), B("div", Ut, [
|
|
1484
|
+
A(
|
|
1482
1485
|
"div",
|
|
1483
1486
|
{
|
|
1484
1487
|
style: rt({
|
|
1485
|
-
width:
|
|
1488
|
+
width: Y.value
|
|
1486
1489
|
}),
|
|
1487
|
-
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",
|
|
1490
|
+
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", J()])
|
|
1488
1491
|
},
|
|
1489
1492
|
null,
|
|
1490
1493
|
6
|
|
1491
1494
|
/* CLASS, STYLE */
|
|
1492
1495
|
)
|
|
1493
|
-
])
|
|
1496
|
+
])) : k("v-if", !0)
|
|
1494
1497
|
],
|
|
1495
1498
|
34
|
|
1496
1499
|
/* CLASS, NEED_HYDRATION */
|
|
1497
1500
|
), [
|
|
1498
|
-
[Me,
|
|
1501
|
+
[Me, j.value]
|
|
1499
1502
|
])
|
|
1500
1503
|
]),
|
|
1501
1504
|
_: 1
|
|
1502
1505
|
/* STABLE */
|
|
1503
1506
|
}, 8, ["name"]));
|
|
1504
1507
|
}
|
|
1505
|
-
}), jt = /* @__PURE__ */ Re(Wt, [["__scopeId", "data-v-
|
|
1508
|
+
}), jt = /* @__PURE__ */ Re(Wt, [["__scopeId", "data-v-09dcb8e0"]]), Rt = {
|
|
1506
1509
|
position: "bottom-right",
|
|
1507
1510
|
timeout: 1e4,
|
|
1508
1511
|
persistent: !1
|
|
@@ -1512,16 +1515,22 @@ class Kt {
|
|
|
1512
1515
|
this.app = e, this.globalOptions = t;
|
|
1513
1516
|
}
|
|
1514
1517
|
show(e, t) {
|
|
1515
|
-
const n = {
|
|
1518
|
+
const n = {
|
|
1516
1519
|
...Rt,
|
|
1517
|
-
...n,
|
|
1518
1520
|
...this.globalOptions,
|
|
1519
|
-
...t
|
|
1520
|
-
|
|
1521
|
-
$e(jt, {
|
|
1522
|
-
props:
|
|
1521
|
+
...t,
|
|
1522
|
+
message: e
|
|
1523
|
+
}, { destroy: i, vNode: r } = $e(jt, {
|
|
1524
|
+
props: n,
|
|
1523
1525
|
app: this.app
|
|
1524
1526
|
});
|
|
1527
|
+
return {
|
|
1528
|
+
destroy: i,
|
|
1529
|
+
close: () => {
|
|
1530
|
+
var a, c;
|
|
1531
|
+
return (c = (a = r.component) == null ? void 0 : a.exposed) == null ? void 0 : c.close();
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1525
1534
|
}
|
|
1526
1535
|
getLocalOptions(e, t) {
|
|
1527
1536
|
return {
|
|
@@ -1545,30 +1554,30 @@ class Kt {
|
|
|
1545
1554
|
return this.show(e, this.getLocalOptions("warning", t));
|
|
1546
1555
|
}
|
|
1547
1556
|
}
|
|
1548
|
-
let
|
|
1557
|
+
let Ce;
|
|
1549
1558
|
const ws = {
|
|
1550
1559
|
install(s, e) {
|
|
1551
|
-
|
|
1560
|
+
Ce = new Kt(s, e), s.provide("toast", Ce);
|
|
1552
1561
|
}
|
|
1553
|
-
},
|
|
1562
|
+
}, q = "", Yt = (s) => s.filter((e, t, n) => t === n.indexOf(e)), Xt = (s) => (e = q) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e), Zt = (s) => s.length > 0, Qt = (s) => (e = q) => Yt([...s, e]), Gt = (s) => (e = q) => s.filter((t) => t !== e);
|
|
1554
1563
|
class Jt {
|
|
1555
1564
|
constructor() {
|
|
1556
|
-
|
|
1565
|
+
l(this, "_loaders", v([]));
|
|
1557
1566
|
}
|
|
1558
1567
|
get loaders() {
|
|
1559
|
-
return
|
|
1568
|
+
return b(() => this._loaders.value);
|
|
1560
1569
|
}
|
|
1561
|
-
stop(e =
|
|
1570
|
+
stop(e = q) {
|
|
1562
1571
|
this._loaders.value = Gt(this._loaders.value)(e);
|
|
1563
1572
|
}
|
|
1564
|
-
start(e =
|
|
1573
|
+
start(e = q) {
|
|
1565
1574
|
return this._loaders.value = Qt(this._loaders.value)(e), () => this.stop(e);
|
|
1566
1575
|
}
|
|
1567
1576
|
get anyLoading() {
|
|
1568
|
-
return
|
|
1577
|
+
return b(() => Zt(this._loaders.value));
|
|
1569
1578
|
}
|
|
1570
|
-
isLoading(e =
|
|
1571
|
-
return
|
|
1579
|
+
isLoading(e = q) {
|
|
1580
|
+
return b(() => Xt(this._loaders.value)(e)).value;
|
|
1572
1581
|
}
|
|
1573
1582
|
}
|
|
1574
1583
|
const es = new Jt(), Es = {
|
|
@@ -1590,7 +1599,7 @@ const es = new Jt(), Es = {
|
|
|
1590
1599
|
};
|
|
1591
1600
|
class ts {
|
|
1592
1601
|
constructor(e) {
|
|
1593
|
-
|
|
1602
|
+
l(this, "options");
|
|
1594
1603
|
this.options = {
|
|
1595
1604
|
delay: (e == null ? void 0 : e.delay) ?? we.delay,
|
|
1596
1605
|
observer: {
|
|
@@ -1605,27 +1614,27 @@ class ts {
|
|
|
1605
1614
|
}
|
|
1606
1615
|
handleIntersect(e, t) {
|
|
1607
1616
|
for (const n of e) {
|
|
1608
|
-
const
|
|
1609
|
-
if (
|
|
1617
|
+
const r = n.target.getAttribute("data-maz-aos-children") === "true", a = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
1618
|
+
if (r) {
|
|
1610
1619
|
const c = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
|
|
1611
|
-
(
|
|
1620
|
+
(m) => m.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? m : void 0
|
|
1612
1621
|
);
|
|
1613
|
-
for (const
|
|
1614
|
-
|
|
1622
|
+
for (const m of c)
|
|
1623
|
+
m && a.push(m);
|
|
1615
1624
|
}
|
|
1616
1625
|
for (const c of a) {
|
|
1617
|
-
const
|
|
1626
|
+
const m = c.getAttribute("data-maz-aos-once"), p = typeof m == "string" ? m === "true" : this.options.animation.once;
|
|
1618
1627
|
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
1619
|
-
const
|
|
1620
|
-
if (
|
|
1628
|
+
const E = c.getAttribute("data-maz-aos-duration"), y = c.getAttribute("data-maz-aos-delay");
|
|
1629
|
+
if (E || (c.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
1621
1630
|
c.style.transitionDuration = "0";
|
|
1622
|
-
}, 1e3)),
|
|
1631
|
+
}, 1e3)), y || (c.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
1623
1632
|
c.style.transitionDelay = "0";
|
|
1624
|
-
}, 1e3)), c.classList.add("maz-aos-animate"),
|
|
1625
|
-
const
|
|
1626
|
-
if (
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1633
|
+
}, 1e3)), c.classList.add("maz-aos-animate"), p) {
|
|
1634
|
+
const f = c.getAttribute("data-maz-aos-anchor");
|
|
1635
|
+
if (f) {
|
|
1636
|
+
const S = document.querySelector(f);
|
|
1637
|
+
S && t.unobserve(S);
|
|
1629
1638
|
}
|
|
1630
1639
|
t.unobserve(c);
|
|
1631
1640
|
}
|
|
@@ -1649,7 +1658,7 @@ class ts {
|
|
|
1649
1658
|
}
|
|
1650
1659
|
}
|
|
1651
1660
|
runAnimations() {
|
|
1652
|
-
if (
|
|
1661
|
+
if (L())
|
|
1653
1662
|
return this.handleObserver();
|
|
1654
1663
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
1655
1664
|
}
|
|
@@ -1657,11 +1666,11 @@ class ts {
|
|
|
1657
1666
|
let oe;
|
|
1658
1667
|
const zs = {
|
|
1659
1668
|
install: (s, e) => {
|
|
1660
|
-
oe = new ts(e), s.provide("aos", oe),
|
|
1669
|
+
oe = new ts(e), s.provide("aos", oe), L() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
1661
1670
|
oe.runAnimations();
|
|
1662
1671
|
}) : oe.runAnimations());
|
|
1663
1672
|
}
|
|
1664
|
-
},
|
|
1673
|
+
}, xe = {
|
|
1665
1674
|
darkClass: "dark",
|
|
1666
1675
|
lightClass: "light",
|
|
1667
1676
|
storageThemeKey: "theme",
|
|
@@ -1669,16 +1678,16 @@ const zs = {
|
|
|
1669
1678
|
storageThemeValueLight: "light",
|
|
1670
1679
|
storageThemeValueSystem: "system",
|
|
1671
1680
|
watchChanges: !0
|
|
1672
|
-
},
|
|
1681
|
+
}, U = v("system"), O = v("system");
|
|
1673
1682
|
function le({
|
|
1674
1683
|
darkClass: s,
|
|
1675
1684
|
lightClass: e,
|
|
1676
1685
|
storageThemeKey: t,
|
|
1677
1686
|
storageThemeValueDark: n,
|
|
1678
1687
|
setLocalStorageValue: i = !0,
|
|
1679
|
-
setSelectedTheme:
|
|
1688
|
+
setSelectedTheme: r = !0
|
|
1680
1689
|
}) {
|
|
1681
|
-
|
|
1690
|
+
L() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), U.value = n, r && (O.value = n), i && (localStorage[t] = n));
|
|
1682
1691
|
}
|
|
1683
1692
|
function ce({
|
|
1684
1693
|
darkClass: s,
|
|
@@ -1686,18 +1695,18 @@ function ce({
|
|
|
1686
1695
|
storageThemeKey: t,
|
|
1687
1696
|
storageThemeValueLight: n,
|
|
1688
1697
|
setLocalStorageValue: i = !0,
|
|
1689
|
-
setSelectedTheme:
|
|
1698
|
+
setSelectedTheme: r = !0
|
|
1690
1699
|
}) {
|
|
1691
|
-
|
|
1700
|
+
L() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), U.value = n, r && (O.value = n), i && (localStorage[t] = n));
|
|
1692
1701
|
}
|
|
1693
1702
|
function Ye(s) {
|
|
1694
|
-
|
|
1703
|
+
L() && (document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), U.value = s.storageThemeValueSystem, O.value = s.storageThemeValueSystem, s.setLocalStorageValue && (localStorage[s.storageThemeKey] = s.storageThemeValueSystem), Le({ ...s }));
|
|
1695
1704
|
}
|
|
1696
1705
|
function re() {
|
|
1697
1706
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1698
1707
|
}
|
|
1699
1708
|
function Le(s) {
|
|
1700
|
-
|
|
1709
|
+
L() && (s.onlyWithStoredValue ? localStorage[s.storageThemeKey] === s.storageThemeValueDark || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && re() ? le({
|
|
1701
1710
|
...s,
|
|
1702
1711
|
setLocalStorageValue: !1,
|
|
1703
1712
|
setSelectedTheme: !1
|
|
@@ -1722,22 +1731,22 @@ function Ae({
|
|
|
1722
1731
|
return typeof s != "boolean" ? Ye(e) : s ? le(e) : ce(e);
|
|
1723
1732
|
}
|
|
1724
1733
|
function ss(s) {
|
|
1725
|
-
return
|
|
1734
|
+
return U.value === s.storageThemeValueDark ? ce(s) : le(s);
|
|
1726
1735
|
}
|
|
1727
|
-
function Ls(s =
|
|
1736
|
+
function Ls(s = xe) {
|
|
1728
1737
|
const e = {
|
|
1729
|
-
...
|
|
1738
|
+
...xe,
|
|
1730
1739
|
...s
|
|
1731
|
-
}, t =
|
|
1732
|
-
() =>
|
|
1740
|
+
}, t = b(() => O.value === e.storageThemeValueDark), n = b(() => O.value === e.storageThemeValueLight), i = b(
|
|
1741
|
+
() => O.value === e.storageThemeValueSystem
|
|
1733
1742
|
);
|
|
1734
|
-
function
|
|
1743
|
+
function r() {
|
|
1735
1744
|
Le(e);
|
|
1736
1745
|
}
|
|
1737
1746
|
return ue(() => {
|
|
1738
|
-
localStorage[e.storageThemeKey] && (
|
|
1747
|
+
localStorage[e.storageThemeKey] && (U.value = localStorage[e.storageThemeKey], O.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", r);
|
|
1739
1748
|
}), De(() => {
|
|
1740
|
-
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",
|
|
1749
|
+
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", r);
|
|
1741
1750
|
}), {
|
|
1742
1751
|
autoSetTheme: (a) => Le({ ...e, ...a }),
|
|
1743
1752
|
toggleTheme: () => ss(e),
|
|
@@ -1747,36 +1756,36 @@ function Ls(s = Ce) {
|
|
|
1747
1756
|
hasDarkTheme: t,
|
|
1748
1757
|
hasLightTheme: n,
|
|
1749
1758
|
hasSystemTheme: i,
|
|
1750
|
-
theme:
|
|
1751
|
-
selectedTheme:
|
|
1759
|
+
theme: U,
|
|
1760
|
+
selectedTheme: O
|
|
1752
1761
|
};
|
|
1753
1762
|
}
|
|
1754
1763
|
const Ts = ({
|
|
1755
1764
|
componentName: s,
|
|
1756
1765
|
instance: e,
|
|
1757
1766
|
providedId: t
|
|
1758
|
-
}) =>
|
|
1767
|
+
}) => b(() => t ?? `${s}-${e == null ? void 0 : e.uid}`), Is = () => Te("aos"), Ss = () => Te("wait"), ks = () => Te("toast"), Cs = ({
|
|
1759
1768
|
callback: s,
|
|
1760
1769
|
options: e
|
|
1761
|
-
}) => new ct(s, e),
|
|
1770
|
+
}) => new ct(s, e), xs = ({
|
|
1762
1771
|
callback: s,
|
|
1763
1772
|
options: e
|
|
1764
1773
|
}) => new ut(s, e);
|
|
1765
1774
|
function ns(s = {}) {
|
|
1766
1775
|
const {
|
|
1767
|
-
internalWindow: e =
|
|
1776
|
+
internalWindow: e = L() ? window : void 0,
|
|
1768
1777
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
1769
1778
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
1770
1779
|
includeScrollbar: i = !0
|
|
1771
|
-
} = s,
|
|
1780
|
+
} = s, r = v(t), a = v(n);
|
|
1772
1781
|
function c() {
|
|
1773
|
-
e && (i ? (
|
|
1782
|
+
e && (i ? (r.value = e.innerWidth, a.value = e.innerHeight) : (r.value = e.document.documentElement.clientWidth, a.value = e.document.documentElement.clientHeight));
|
|
1774
1783
|
}
|
|
1775
1784
|
return c(), ue(() => {
|
|
1776
1785
|
e && window.addEventListener("resize", c, { passive: !0 });
|
|
1777
1786
|
}), at(() => {
|
|
1778
1787
|
e && window.removeEventListener("resize", c);
|
|
1779
|
-
}), { width:
|
|
1788
|
+
}), { width: r, height: a };
|
|
1780
1789
|
}
|
|
1781
1790
|
function is(s) {
|
|
1782
1791
|
const e = {};
|
|
@@ -1790,42 +1799,42 @@ function As({
|
|
|
1790
1799
|
includeScrollbar: t,
|
|
1791
1800
|
internalWindow: n,
|
|
1792
1801
|
listenOrientation: i,
|
|
1793
|
-
breakpoints:
|
|
1802
|
+
breakpoints: r,
|
|
1794
1803
|
mediumBreakPoint: a = "md",
|
|
1795
1804
|
largeBreakPoint: c = "lg"
|
|
1796
1805
|
}) {
|
|
1797
|
-
const { width:
|
|
1806
|
+
const { width: m } = ns({
|
|
1798
1807
|
initialWidth: s,
|
|
1799
1808
|
// (SSR) mobile first
|
|
1800
1809
|
initialHeight: e,
|
|
1801
1810
|
includeScrollbar: t,
|
|
1802
1811
|
internalWindow: n,
|
|
1803
1812
|
listenOrientation: i
|
|
1804
|
-
}),
|
|
1805
|
-
() =>
|
|
1806
|
-
),
|
|
1813
|
+
}), p = is(r), E = b(() => m.value >= p[c]), y = b(
|
|
1814
|
+
() => m.value >= p[a] && m.value < p[c]
|
|
1815
|
+
), f = b(() => m.value >= 0 && m.value < p[a]);
|
|
1807
1816
|
return {
|
|
1808
|
-
width:
|
|
1809
|
-
numericBreakpoints:
|
|
1810
|
-
isSmallScreen:
|
|
1811
|
-
isLargeScreen:
|
|
1812
|
-
isMediumScreen:
|
|
1813
|
-
breakpoints:
|
|
1817
|
+
width: m,
|
|
1818
|
+
numericBreakpoints: p,
|
|
1819
|
+
isSmallScreen: f,
|
|
1820
|
+
isLargeScreen: E,
|
|
1821
|
+
isMediumScreen: y,
|
|
1822
|
+
breakpoints: r
|
|
1814
1823
|
};
|
|
1815
1824
|
}
|
|
1816
1825
|
function Os(s) {
|
|
1817
1826
|
const e = new dt({
|
|
1818
1827
|
...s,
|
|
1819
1828
|
element: s.element,
|
|
1820
|
-
onValuesChanged(
|
|
1821
|
-
t.value =
|
|
1829
|
+
onValuesChanged(m) {
|
|
1830
|
+
t.value = m.xDiff, n.value = m.yDiff, i.value = m.xStart, r.value = m.xEnd, a.value = m.yStart, c.value = m.yEnd;
|
|
1822
1831
|
}
|
|
1823
|
-
}), t = v(), n = v(), i = v(),
|
|
1832
|
+
}), t = v(), n = v(), i = v(), r = v(), a = v(), c = v();
|
|
1824
1833
|
return {
|
|
1825
1834
|
xDiff: t,
|
|
1826
1835
|
yDiff: n,
|
|
1827
1836
|
xStart: i,
|
|
1828
|
-
xEnd:
|
|
1837
|
+
xEnd: r,
|
|
1829
1838
|
yStart: a,
|
|
1830
1839
|
yEnd: c,
|
|
1831
1840
|
start: e.start,
|
|
@@ -1841,34 +1850,34 @@ function os(s, e = 150) {
|
|
|
1841
1850
|
return Math.ceil(t / e);
|
|
1842
1851
|
}
|
|
1843
1852
|
function Hs(s) {
|
|
1844
|
-
const e =
|
|
1853
|
+
const e = b(
|
|
1845
1854
|
() => {
|
|
1846
1855
|
var a;
|
|
1847
1856
|
return typeof s.velocity == "number" ? s.velocity : ((a = s.velocity) == null ? void 0 : a.value) ?? 150;
|
|
1848
1857
|
}
|
|
1849
|
-
), t =
|
|
1858
|
+
), t = b(() => {
|
|
1850
1859
|
var a;
|
|
1851
1860
|
return typeof s.contentSelector == "string" ? s.contentSelector : (a = s.contentSelector) == null ? void 0 : a.value;
|
|
1852
|
-
}), n =
|
|
1853
|
-
var a, c,
|
|
1861
|
+
}), n = b(() => {
|
|
1862
|
+
var a, c, m;
|
|
1854
1863
|
if (typeof ((a = s.contentRef) == null ? void 0 : a.value) == "object")
|
|
1855
1864
|
return (c = s.contentRef.value) == null ? void 0 : c.textContent;
|
|
1856
1865
|
if (t.value && typeof document < "u") {
|
|
1857
|
-
const
|
|
1858
|
-
if (
|
|
1859
|
-
return
|
|
1866
|
+
const p = document.querySelector(t.value);
|
|
1867
|
+
if (p)
|
|
1868
|
+
return p.textContent;
|
|
1860
1869
|
}
|
|
1861
|
-
return typeof s.content == "string" ? s.content : (
|
|
1862
|
-
}), i =
|
|
1870
|
+
return typeof s.content == "string" ? s.content : (m = s.content) == null ? void 0 : m.value;
|
|
1871
|
+
}), i = b(() => os(n.value, e.value)), r = b(() => Xe([n.value]));
|
|
1863
1872
|
return {
|
|
1864
1873
|
content: n,
|
|
1865
|
-
wordCount:
|
|
1874
|
+
wordCount: r,
|
|
1866
1875
|
velocity: e,
|
|
1867
1876
|
duration: i
|
|
1868
1877
|
};
|
|
1869
1878
|
}
|
|
1870
1879
|
export {
|
|
1871
|
-
|
|
1880
|
+
Ce as A,
|
|
1872
1881
|
Es as B,
|
|
1873
1882
|
es as C,
|
|
1874
1883
|
ts as D,
|
|
@@ -1880,9 +1889,9 @@ export {
|
|
|
1880
1889
|
Is as J,
|
|
1881
1890
|
Ss as K,
|
|
1882
1891
|
ks as L,
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1892
|
+
Cs as M,
|
|
1893
|
+
xs as N,
|
|
1894
|
+
Ft as O,
|
|
1886
1895
|
As as P,
|
|
1887
1896
|
ns as Q,
|
|
1888
1897
|
Os as R,
|
|
@@ -1892,7 +1901,7 @@ export {
|
|
|
1892
1901
|
Hs as V,
|
|
1893
1902
|
Jt as W,
|
|
1894
1903
|
Re as _,
|
|
1895
|
-
|
|
1904
|
+
L as a,
|
|
1896
1905
|
dt as b,
|
|
1897
1906
|
ms as c,
|
|
1898
1907
|
cs as d,
|
|
@@ -1912,7 +1921,7 @@ export {
|
|
|
1912
1921
|
bs as r,
|
|
1913
1922
|
mt as s,
|
|
1914
1923
|
lt as t,
|
|
1915
|
-
|
|
1924
|
+
Ct as u,
|
|
1916
1925
|
bt as v,
|
|
1917
1926
|
Ht as w,
|
|
1918
1927
|
Pt as x,
|