maz-ui 3.32.2 → 3.34.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/MazDropdown.d.ts +7 -1
- package/components/MazDropdown.mjs +125 -119
- package/components/MazPagination.d.ts +98 -0
- package/components/MazPagination.mjs +4 -0
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.d.ts +2 -2
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazPagination.css +1 -0
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBtn-BSbEqTOO.mjs → MazBtn-BdEnwPnp.mjs} +2 -2
- package/components/chunks/{MazBtn-EtLqM2iD.mjs → MazBtn-DEM8T_xK.mjs} +2 -2
- package/components/chunks/{MazCheckbox-BPkflsJh.mjs → MazCheckbox-DDw-_poJ.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CPcllL6q.mjs → MazCheckbox-DKvq4VIy.mjs} +1 -1
- package/components/chunks/{MazIcon-CtSznV7P.mjs → MazIcon-CSZF8Zgz.mjs} +1 -1
- package/components/chunks/MazPagination-Br-f0ZVV.mjs +389 -0
- package/components/chunks/{MazPhoneNumberInput-XtiVMdCD.mjs → MazPhoneNumberInput-srnmCNgX.mjs} +46 -45
- package/components/chunks/{MazSelect-DR7qJS0-.mjs → MazSelect-qw3H2BrO.mjs} +161 -160
- package/components/chunks/{MazSpinner-CzQz8yXB.mjs → MazSpinner-6_mdlWzG.mjs} +1 -1
- package/components/chunks/{MazSpinner-DqdhKhP4.mjs → MazSpinner-Ben5F7h9.mjs} +1 -1
- package/components/chunks/MazSpinner-DpeLSgmM.mjs +38 -0
- package/components/chunks/{MazSpinner-DB5-SHwJ.mjs → MazSpinner-Pnq_8QwR.mjs} +1 -1
- package/components/chunks/{MazTable-DX4Pdzt_.mjs → MazTable-BL_3hR2Z.mjs} +120 -119
- package/components/chunks/chevron-double-left-zoBBzOlh.mjs +30 -0
- package/components/chunks/ellipsis-horizontal-VGAsnCwV.mjs +30 -0
- package/components/index.d.ts +1 -0
- package/components/index.mjs +1 -0
- package/css/main.css +1 -1
- package/modules/chunks/{MazBtn-eN8rfU-2.cjs → MazBtn-Ds3ljkPz.cjs} +1 -1
- package/modules/chunks/{MazBtn-DzJx2DA3.mjs → MazBtn-slucsujG.mjs} +2 -2
- package/modules/chunks/{MazIcon-DaoNEj_U.cjs → MazIcon-BFDvFiQo.cjs} +1 -1
- package/modules/chunks/{MazIcon-e9fryb1P.mjs → MazIcon-DaJQEFh2.mjs} +1 -1
- package/modules/chunks/{MazSpinner-DvCq0zSA.cjs → MazSpinner-B2otf393.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BHGuV2dF.mjs → MazSpinner-_fcsae1V.mjs} +1 -1
- package/modules/chunks/{index-DYwwNo_Y.cjs → index-B48OKfFt.cjs} +2 -2
- package/modules/chunks/{index-CcXCRwty.mjs → index-CWAO7a8o.mjs} +451 -440
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +15 -15
- package/types/components/MazDropdown.vue.d.ts +7 -1
- package/types/components/MazPagination.vue.d.ts +98 -0
- package/types/components/MazTable.vue.d.ts +2 -2
- package/types/components/index.d.ts +1 -0
- package/types/modules/composables/use-theme-handler.d.ts +1 -0
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (s, e, t) => (
|
|
1
|
+
var Ge = Object.defineProperty;
|
|
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 r = (s, e, t) => (Je(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import "../assets/index.css";
|
|
5
|
-
import { inject as
|
|
6
|
-
function
|
|
7
|
-
const t =
|
|
5
|
+
import { inject as et, createVNode as N, render as te, nextTick as tt, defineComponent as Oe, defineAsyncComponent as L, ref as v, computed as p, watch as He, onMounted as ue, onBeforeUnmount as De, openBlock as T, createElementBlock as R, withModifiers as A, withKeys as st, withDirectives as Pe, unref as C, vShow as Me, createCommentVNode as O, createElementVNode as x, normalizeClass as Ee, createBlock as F, Transition as nt, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as ot, normalizeStyle as rt, onUnmounted as at } from "vue";
|
|
6
|
+
function Te(s, e) {
|
|
7
|
+
const t = et(s, e);
|
|
8
8
|
if (!t)
|
|
9
9
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function cs(s, e) {
|
|
13
13
|
let t;
|
|
14
|
-
return function(...
|
|
14
|
+
return function(...n) {
|
|
15
15
|
clearTimeout(t), t = setTimeout(() => {
|
|
16
|
-
s.apply(this,
|
|
16
|
+
s.apply(this, n);
|
|
17
17
|
}, e);
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function lt(s) {
|
|
21
21
|
return !!s;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function $e(s, e) {
|
|
24
24
|
let t = e == null ? void 0 : e.element;
|
|
25
|
-
function
|
|
25
|
+
function n() {
|
|
26
26
|
t && te(null, t);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const i = N(
|
|
29
29
|
s,
|
|
30
|
-
{ ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy:
|
|
30
|
+
{ ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} },
|
|
31
31
|
e == null ? void 0 : e.children
|
|
32
32
|
);
|
|
33
|
-
return e != null && e.app ? (
|
|
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
35
|
function E() {
|
|
36
36
|
return typeof document < "u";
|
|
37
37
|
}
|
|
38
|
-
class
|
|
38
|
+
class ct {
|
|
39
39
|
constructor(e, t) {
|
|
40
40
|
r(this, "defaultOptions", {
|
|
41
41
|
element: void 0,
|
|
@@ -70,10 +70,10 @@ class lt {
|
|
|
70
70
|
if (this.remainingTime > 0)
|
|
71
71
|
return;
|
|
72
72
|
if (e.type === "mousemove") {
|
|
73
|
-
const { clientX: t, clientY:
|
|
74
|
-
if (t === void 0 &&
|
|
73
|
+
const { clientX: t, clientY: n } = e;
|
|
74
|
+
if (t === void 0 && n === void 0 || t === this.lastClientX && n === this.lastClientY)
|
|
75
75
|
return;
|
|
76
|
-
this.lastClientX = t, this.lastClientY =
|
|
76
|
+
this.lastClientX = t, this.lastClientY = n;
|
|
77
77
|
}
|
|
78
78
|
this.resetTimeout(), this.callback({ isIdle: this.isIdle, eventType: e.type });
|
|
79
79
|
} catch (t) {
|
|
@@ -142,7 +142,7 @@ class lt {
|
|
|
142
142
|
e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle });
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
class
|
|
145
|
+
class ut {
|
|
146
146
|
constructor(e, t) {
|
|
147
147
|
r(this, "eventHandlerFunction");
|
|
148
148
|
r(this, "event", "visibilitychange");
|
|
@@ -188,11 +188,11 @@ class ct {
|
|
|
188
188
|
this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const mt = (s) => new Promise((e) => {
|
|
192
192
|
setTimeout(e, s);
|
|
193
193
|
});
|
|
194
|
-
class
|
|
195
|
-
constructor({ src: e, identifier: t, once:
|
|
194
|
+
class us {
|
|
195
|
+
constructor({ src: e, identifier: t, once: n = !0, async: i = !0, defer: l = !0 }) {
|
|
196
196
|
r(this, "src");
|
|
197
197
|
r(this, "script");
|
|
198
198
|
r(this, "once");
|
|
@@ -205,7 +205,7 @@ class cs {
|
|
|
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 =
|
|
208
|
+
this.src = e, this.identifier = t, this.once = n, this.async = i, this.defer = l;
|
|
209
209
|
}
|
|
210
210
|
removeTag(e) {
|
|
211
211
|
var t;
|
|
@@ -216,29 +216,29 @@ class cs {
|
|
|
216
216
|
if (this.once && e[this.identifier] && t.length > 0)
|
|
217
217
|
return this.script = e[this.identifier], Promise.resolve(this.script);
|
|
218
218
|
if (!this.once && t.length > 0)
|
|
219
|
-
for (const
|
|
220
|
-
this.removeTag(
|
|
219
|
+
for (const n of t)
|
|
220
|
+
this.removeTag(n);
|
|
221
221
|
return this.injectScript();
|
|
222
222
|
}
|
|
223
223
|
injectScript() {
|
|
224
224
|
const e = window;
|
|
225
|
-
return new Promise((t,
|
|
225
|
+
return new Promise((t, n) => {
|
|
226
226
|
try {
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
} catch (
|
|
230
|
-
throw new Error(`[ScriptLoader](init) ${
|
|
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", (l) => n(new Error(`[ScriptLoader](injectScript) ${l.message}`))), i.addEventListener("load", (l) => (this.script = l, e[this.identifier] = l, t(l))), document.head.append(i);
|
|
229
|
+
} catch (i) {
|
|
230
|
+
throw new Error(`[ScriptLoader](init) ${i}`);
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function ms(s) {
|
|
236
236
|
return [...s].map((e) => {
|
|
237
237
|
const t = e.codePointAt(0);
|
|
238
238
|
return t ? t % 32 + 127461 : void 0;
|
|
239
|
-
}).filter(
|
|
239
|
+
}).filter(lt).map((e) => String.fromCodePoint(e)).join("");
|
|
240
240
|
}
|
|
241
|
-
class
|
|
241
|
+
class dt {
|
|
242
242
|
constructor(e) {
|
|
243
243
|
r(this, "defaultOptions", {
|
|
244
244
|
preventDefaultOnTouchMove: !1,
|
|
@@ -302,72 +302,72 @@ class mt {
|
|
|
302
302
|
this.runCallbacks(e), this.emitValuesChanged();
|
|
303
303
|
}
|
|
304
304
|
runCallbacks(e) {
|
|
305
|
-
var t,
|
|
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 ? (
|
|
305
|
+
var t, n, i, l, a, c, d, g;
|
|
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) : (l = (i = this.options).onRight) == null || l.call(i, e) : this.yDiff > 0 ? (c = (a = this.options).onUp) == null || c.call(a, e) : (g = (d = this.options).onDown) == null || g.call(d, 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();
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function ds(s, e) {
|
|
313
313
|
let t = 0;
|
|
314
314
|
return async function() {
|
|
315
|
-
const
|
|
316
|
-
|
|
315
|
+
const n = Date.now();
|
|
316
|
+
n - t >= e && (await s(), t = n);
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
const ae = "__vue_click_away__",
|
|
320
|
-
|
|
321
|
-
const t = e.instance,
|
|
322
|
-
if (!
|
|
319
|
+
const ae = "__vue_click_away__", Fe = () => document.ontouchstart === null ? "touchstart" : "click", Ne = async (s, e) => {
|
|
320
|
+
_e(s);
|
|
321
|
+
const t = e.instance, n = e.value, i = typeof n == "function";
|
|
322
|
+
if (!i)
|
|
323
323
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
324
|
-
await
|
|
325
|
-
if ((!s || !s.contains(a.target)) &&
|
|
326
|
-
return
|
|
324
|
+
await tt(), s[ae] = (a) => {
|
|
325
|
+
if ((!s || !s.contains(a.target)) && n && i)
|
|
326
|
+
return n.call(t, a);
|
|
327
327
|
};
|
|
328
|
-
const l =
|
|
328
|
+
const l = Fe();
|
|
329
329
|
document.addEventListener(l, s[ae], !1);
|
|
330
|
-
},
|
|
331
|
-
const e =
|
|
330
|
+
}, _e = (s) => {
|
|
331
|
+
const e = Fe();
|
|
332
332
|
document.removeEventListener(e, s[ae], !1), delete s[ae];
|
|
333
|
-
},
|
|
334
|
-
e.value !== e.oldValue &&
|
|
335
|
-
},
|
|
336
|
-
mounted:
|
|
337
|
-
updated:
|
|
338
|
-
unmounted:
|
|
339
|
-
},
|
|
333
|
+
}, ht = (s, e) => {
|
|
334
|
+
e.value !== e.oldValue && Ne(s, e);
|
|
335
|
+
}, Ve = {
|
|
336
|
+
mounted: Ne,
|
|
337
|
+
updated: ht,
|
|
338
|
+
unmounted: _e
|
|
339
|
+
}, hs = {
|
|
340
340
|
install: (s) => {
|
|
341
|
-
s.directive("click-outside",
|
|
341
|
+
s.directive("click-outside", Ve);
|
|
342
342
|
}
|
|
343
|
-
},
|
|
343
|
+
}, Be = (s, e, t, n) => {
|
|
344
344
|
s.stopPropagation();
|
|
345
|
-
const { handler:
|
|
345
|
+
const { handler: i, exclude: l } = t.value;
|
|
346
346
|
let a = !1;
|
|
347
347
|
if (l && l.length > 0)
|
|
348
348
|
for (const c of l)
|
|
349
|
-
a || (a =
|
|
350
|
-
!e.contains(s.target) && !a &&
|
|
351
|
-
},
|
|
352
|
-
const
|
|
349
|
+
a || (a = n.context.$refs[c].contains(s.target));
|
|
350
|
+
!e.contains(s.target) && !a && n.context[i]();
|
|
351
|
+
}, qe = () => document.ontouchstart === null ? "touchstart" : "click", ft = (s, e, t) => {
|
|
352
|
+
const n = qe();
|
|
353
353
|
document.removeEventListener(
|
|
354
|
-
|
|
355
|
-
(
|
|
354
|
+
n,
|
|
355
|
+
(i) => Be(i, s, e, t)
|
|
356
356
|
);
|
|
357
|
-
},
|
|
358
|
-
const
|
|
357
|
+
}, vt = (s, e, t) => {
|
|
358
|
+
const n = qe();
|
|
359
359
|
document.addEventListener(
|
|
360
|
-
|
|
361
|
-
(
|
|
360
|
+
n,
|
|
361
|
+
(i) => Be(i, s, e, t)
|
|
362
362
|
);
|
|
363
|
-
},
|
|
364
|
-
mounted:
|
|
365
|
-
unmounted:
|
|
366
|
-
},
|
|
363
|
+
}, Ue = {
|
|
364
|
+
mounted: vt,
|
|
365
|
+
unmounted: ft
|
|
366
|
+
}, fs = {
|
|
367
367
|
install: (s) => {
|
|
368
|
-
s.directive("closable",
|
|
368
|
+
s.directive("closable", Ue);
|
|
369
369
|
}
|
|
370
|
-
},
|
|
370
|
+
}, gt = `
|
|
371
371
|
.maz-zoom-img {
|
|
372
372
|
position: fixed;
|
|
373
373
|
top: 0;
|
|
@@ -490,13 +490,13 @@ const ae = "__vue_click_away__", Me = () => document.ontouchstart === null ? "to
|
|
|
490
490
|
|
|
491
491
|
.maz-zoom-img .maz-zoom-btn:hover {
|
|
492
492
|
background-color: hsl(0, 0%, 0%);
|
|
493
|
-
}`,
|
|
493
|
+
}`, Se = {
|
|
494
494
|
close: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',
|
|
495
495
|
next: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',
|
|
496
496
|
previous: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',
|
|
497
497
|
spinner: '<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'
|
|
498
498
|
};
|
|
499
|
-
class
|
|
499
|
+
class pt {
|
|
500
500
|
constructor(e) {
|
|
501
501
|
r(this, "options");
|
|
502
502
|
r(this, "loader");
|
|
@@ -543,28 +543,28 @@ class gt {
|
|
|
543
543
|
e.classList.add(
|
|
544
544
|
"maz-is-open"
|
|
545
545
|
/* OPEN */
|
|
546
|
-
), this.addStyle(
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}), typeof t == "object" && (this.img.setAttribute("src", t.src), t.alt && this.img.setAttribute("alt", t.alt), this.img.id = "MazImgElement"), this.wrapper.append(this.img),
|
|
551
|
-
|
|
546
|
+
), this.addStyle(gt);
|
|
547
|
+
const n = document.createElement("div");
|
|
548
|
+
n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (i) => {
|
|
549
|
+
n.isEqualNode(i.target) && this.closePreview();
|
|
550
|
+
}), typeof t == "object" && (this.img.setAttribute("src", t.src), t.alt && this.img.setAttribute("alt", t.alt), this.img.id = "MazImgElement"), this.wrapper.append(this.img), n.append(this.wrapper), document.body.append(n), this.keyboardEventHandler(!0), setTimeout(() => {
|
|
551
|
+
n && n.classList.add("maz-animate");
|
|
552
552
|
}, 100);
|
|
553
553
|
}
|
|
554
554
|
onImgLoaded() {
|
|
555
555
|
this.wrapper.style.width = `${this.img.width}px`, this.wrapper.style.minWidth = "200px", this.loader.hidden = !0;
|
|
556
|
-
const e = this.getButton(), t = [],
|
|
556
|
+
const e = this.getButton(), t = [], n = this.allInstances.length > 1;
|
|
557
557
|
if (!this.buttonsAdded) {
|
|
558
|
-
if (this.buttonsAdded = !0,
|
|
559
|
-
const
|
|
560
|
-
t.push(
|
|
558
|
+
if (this.buttonsAdded = !0, n) {
|
|
559
|
+
const i = this.getButton("previous"), l = this.getButton("next");
|
|
560
|
+
t.push(i, l);
|
|
561
561
|
}
|
|
562
|
-
this.wrapper.append(e),
|
|
562
|
+
this.wrapper.append(e), n && (this.wrapper.prepend(t[0]), this.wrapper.append(t[1]));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
getLoader() {
|
|
566
566
|
const e = document.createElement("div");
|
|
567
|
-
return e.classList.add("maz-zoom-img__loader"), e.innerHTML =
|
|
567
|
+
return e.classList.add("maz-zoom-img__loader"), e.innerHTML = Se.spinner, e;
|
|
568
568
|
}
|
|
569
569
|
mouseLeave(e) {
|
|
570
570
|
this.options.scale && (e.style.transform = ""), this.options.blur && (e.style.filter = ""), e.style.zIndex = "";
|
|
@@ -577,15 +577,15 @@ class gt {
|
|
|
577
577
|
}
|
|
578
578
|
getButton(e = "close") {
|
|
579
579
|
const t = document.createElement("button");
|
|
580
|
-
return t.innerHTML =
|
|
580
|
+
return t.innerHTML = Se[e], t.addEventListener("click", () => {
|
|
581
581
|
e === "close" ? this.closePreview() : this.allInstances && this.nextPreviousImage(e === "next");
|
|
582
582
|
}), t.classList.add("maz-zoom-btn"), t.classList.add(`maz-zoom-btn--${e}`), t;
|
|
583
583
|
}
|
|
584
584
|
closePreview() {
|
|
585
|
-
const e = document.querySelector("#MazImgPreviewFullsize"), t = document.querySelector("#MazPreviewStyle"),
|
|
585
|
+
const e = document.querySelector("#MazImgPreviewFullsize"), t = document.querySelector("#MazPreviewStyle"), n = document.querySelector(
|
|
586
586
|
".maz-zoom-img-instance.maz-is-open"
|
|
587
587
|
);
|
|
588
|
-
|
|
588
|
+
n && n.classList.remove(
|
|
589
589
|
"maz-is-open"
|
|
590
590
|
/* OPEN */
|
|
591
591
|
), e && e.classList.remove("maz-animate"), this.keyboardEventHandler(!1), setTimeout(() => {
|
|
@@ -596,12 +596,12 @@ class gt {
|
|
|
596
596
|
return e < 0 ? this.allInstances.length - 1 : e >= this.allInstances.length ? 0 : e;
|
|
597
597
|
}
|
|
598
598
|
nextPreviousImage(e) {
|
|
599
|
-
const t = e,
|
|
599
|
+
const t = e, n = document.querySelector(
|
|
600
600
|
".maz-zoom-img-instance.maz-is-open"
|
|
601
601
|
);
|
|
602
|
-
if (
|
|
603
|
-
const
|
|
604
|
-
a && this.useNextInstance(
|
|
602
|
+
if (n) {
|
|
603
|
+
const i = this.allInstances.indexOf(n), l = t ? i + 1 : i - 1, a = this.allInstances[this.getNewInstanceIndex(l)];
|
|
604
|
+
a && this.useNextInstance(n, a);
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
useNextInstance(e, t) {
|
|
@@ -612,8 +612,8 @@ class gt {
|
|
|
612
612
|
"maz-is-open"
|
|
613
613
|
/* OPEN */
|
|
614
614
|
);
|
|
615
|
-
const
|
|
616
|
-
this.wrapper.style.width = "", this.loader.hidden = !1,
|
|
615
|
+
const n = t.getAttribute("data-zoom-src"), i = t.getAttribute("data-zoom-alt");
|
|
616
|
+
this.wrapper.style.width = "", this.loader.hidden = !1, n && this.img.setAttribute("src", n), i && this.img.setAttribute("alt", i);
|
|
617
617
|
}
|
|
618
618
|
addStyle(e) {
|
|
619
619
|
const t = document.createElement("style");
|
|
@@ -631,9 +631,9 @@ class gt {
|
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
let se;
|
|
634
|
-
const
|
|
634
|
+
const We = {
|
|
635
635
|
created(s, e) {
|
|
636
|
-
se = new
|
|
636
|
+
se = new pt(e), se.create(s);
|
|
637
637
|
},
|
|
638
638
|
updated(s, e) {
|
|
639
639
|
se.update(e);
|
|
@@ -641,11 +641,11 @@ const qe = {
|
|
|
641
641
|
unmounted(s) {
|
|
642
642
|
se.remove(s);
|
|
643
643
|
}
|
|
644
|
-
},
|
|
644
|
+
}, vs = {
|
|
645
645
|
install(s) {
|
|
646
|
-
s.directive("zoom-img",
|
|
646
|
+
s.directive("zoom-img", We);
|
|
647
647
|
}
|
|
648
|
-
},
|
|
648
|
+
}, yt = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", ze = {
|
|
649
649
|
baseClass: "m-lazy-img",
|
|
650
650
|
loadedClass: "m-lazy-loaded",
|
|
651
651
|
loadingClass: "m-lazy-loading",
|
|
@@ -659,10 +659,10 @@ const qe = {
|
|
|
659
659
|
threshold: 0.1
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
class
|
|
662
|
+
class je {
|
|
663
663
|
constructor(e = {}) {
|
|
664
664
|
r(this, "observers", []);
|
|
665
|
-
r(this, "defaultOptions",
|
|
665
|
+
r(this, "defaultOptions", ze);
|
|
666
666
|
r(this, "options");
|
|
667
667
|
r(this, "onImgLoadedCallback");
|
|
668
668
|
r(this, "onImgErrorCallback");
|
|
@@ -696,34 +696,34 @@ class Ue {
|
|
|
696
696
|
this.addClass(e, this.options.baseClass);
|
|
697
697
|
}
|
|
698
698
|
imageIsLoading(e) {
|
|
699
|
-
var t,
|
|
700
|
-
this.addClass(e, this.options.loadingClass), (
|
|
699
|
+
var t, n;
|
|
700
|
+
this.addClass(e, this.options.loadingClass), (n = (t = this.options).onLoading) == null || n.call(t, e);
|
|
701
701
|
}
|
|
702
702
|
imageHasNoPhoto(e) {
|
|
703
703
|
this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.noPhotoClass), this.setDefaultPhoto(e);
|
|
704
704
|
}
|
|
705
705
|
imageIsLoaded(e) {
|
|
706
|
-
var t,
|
|
707
|
-
this.hasImgLoaded = !0, this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.loadedClass), (
|
|
706
|
+
var t, n;
|
|
707
|
+
this.hasImgLoaded = !0, this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.loadedClass), (n = (t = this.options).onLoaded) == null || n.call(t, e);
|
|
708
708
|
}
|
|
709
709
|
imageHasError(e) {
|
|
710
|
-
var t,
|
|
711
|
-
this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.errorClass), (
|
|
710
|
+
var t, n;
|
|
711
|
+
this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.errorClass), (n = (t = this.options).onError) == null || n.call(t, e), this.setDefaultPhoto(e);
|
|
712
712
|
}
|
|
713
713
|
getSrc(e) {
|
|
714
714
|
return typeof e.value == "object" ? e.value.src : e.value;
|
|
715
715
|
}
|
|
716
716
|
getImageUrl(e, t) {
|
|
717
|
-
const
|
|
718
|
-
return
|
|
717
|
+
const n = this.getImgElement(e).getAttribute("data-lazy-src");
|
|
718
|
+
return n || (t.value, this.getSrc(t));
|
|
719
719
|
}
|
|
720
720
|
async setPictureSourceUrls(e) {
|
|
721
721
|
const t = e.querySelectorAll("source");
|
|
722
722
|
if (t.length > 0)
|
|
723
|
-
for await (const
|
|
724
|
-
const
|
|
725
|
-
if (
|
|
726
|
-
|
|
723
|
+
for await (const n of t) {
|
|
724
|
+
const i = n.getAttribute("data-lazy-srcset");
|
|
725
|
+
if (i)
|
|
726
|
+
n.srcset = i;
|
|
727
727
|
else
|
|
728
728
|
return this.imageHasError(e);
|
|
729
729
|
}
|
|
@@ -744,104 +744,104 @@ class Ue {
|
|
|
744
744
|
return;
|
|
745
745
|
const t = this.options.fallbackSrc ?? this.options.errorPhoto;
|
|
746
746
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
747
|
-
const
|
|
748
|
-
if (
|
|
749
|
-
for await (const l of
|
|
750
|
-
l.srcset =
|
|
747
|
+
const n = t ?? await this.loadErrorPhoto(), i = e.querySelectorAll("source");
|
|
748
|
+
if (i.length > 0)
|
|
749
|
+
for await (const l of i)
|
|
750
|
+
l.srcset = n;
|
|
751
751
|
else
|
|
752
|
-
this.setImgSrc(e,
|
|
752
|
+
this.setImgSrc(e, n);
|
|
753
753
|
}
|
|
754
754
|
addEventListenerToImg(e) {
|
|
755
755
|
const t = this.getImgElement(e);
|
|
756
756
|
t.addEventListener("load", () => this.onImgLoadedCallback(e), {
|
|
757
757
|
once: !0
|
|
758
|
-
}), t.addEventListener("error", (
|
|
758
|
+
}), t.addEventListener("error", (n) => this.onImgErrorCallback(e, n), { once: !0 });
|
|
759
759
|
}
|
|
760
760
|
async loadImage(e, t) {
|
|
761
761
|
if (this.imageIsLoading(e), this.isPictureElement(e))
|
|
762
762
|
this.addEventListenerToImg(e), await this.setPictureSourceUrls(e);
|
|
763
763
|
else {
|
|
764
|
-
const
|
|
765
|
-
if (!
|
|
764
|
+
const n = this.getImageUrl(e, t);
|
|
765
|
+
if (!n)
|
|
766
766
|
return this.imageHasError(e);
|
|
767
|
-
this.hasBgImgMode(t) ? (e.style.backgroundImage = `url('${
|
|
767
|
+
this.hasBgImgMode(t) ? (e.style.backgroundImage = `url('${n}')`, this.imageIsLoaded(e)) : (this.addEventListenerToImg(e), this.setImgSrc(e, n));
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
setImgSrc(e, t) {
|
|
771
|
-
const
|
|
772
|
-
|
|
771
|
+
const n = this.getImgElement(e);
|
|
772
|
+
n.src = t;
|
|
773
773
|
}
|
|
774
|
-
handleIntersectionObserver(e, t,
|
|
774
|
+
handleIntersectionObserver(e, t, n, i) {
|
|
775
775
|
var l, a;
|
|
776
|
-
this.observers.push(
|
|
777
|
-
for (const c of
|
|
776
|
+
this.observers.push(i);
|
|
777
|
+
for (const c of n)
|
|
778
778
|
if (c.isIntersecting) {
|
|
779
|
-
if ((a = (l = this.options).onIntersecting) == null || a.call(l, c.target), this.options.observerOnce &&
|
|
779
|
+
if ((a = (l = this.options).onIntersecting) == null || a.call(l, c.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
780
780
|
return;
|
|
781
781
|
this.loadImage(e, t);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
createObserver(e, t) {
|
|
785
|
-
const
|
|
785
|
+
const n = (a, c) => {
|
|
786
786
|
this.handleIntersectionObserver(e, t, a, c);
|
|
787
|
-
},
|
|
788
|
-
new IntersectionObserver(
|
|
787
|
+
}, i = this.options.observerOptions;
|
|
788
|
+
new IntersectionObserver(n, i).observe(e);
|
|
789
789
|
}
|
|
790
|
-
async imageHandler(e, t,
|
|
791
|
-
if (
|
|
792
|
-
for await (const
|
|
793
|
-
|
|
790
|
+
async imageHandler(e, t, n) {
|
|
791
|
+
if (n === "update")
|
|
792
|
+
for await (const i of this.observers)
|
|
793
|
+
i.unobserve(e);
|
|
794
794
|
window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
|
|
795
795
|
}
|
|
796
|
-
async bindUpdateHandler(e, t,
|
|
796
|
+
async bindUpdateHandler(e, t, n) {
|
|
797
797
|
if (this.options.noPhoto)
|
|
798
798
|
return this.imageHasNoPhoto(e);
|
|
799
|
-
await this.imageHandler(e, t,
|
|
799
|
+
await this.imageHandler(e, t, n);
|
|
800
800
|
}
|
|
801
801
|
async add(e, t) {
|
|
802
802
|
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
803
803
|
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
804
|
-
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e,
|
|
804
|
+
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, yt), await this.bindUpdateHandler(e, t, "bind");
|
|
805
805
|
}
|
|
806
806
|
async update(e, t) {
|
|
807
807
|
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
808
808
|
}
|
|
809
809
|
remove(e, t) {
|
|
810
810
|
this.hasImgLoaded = !1, this.hasBgImgMode(t) && (e.style.backgroundImage = ""), this.removeAllStateClasses(e);
|
|
811
|
-
for (const
|
|
812
|
-
|
|
811
|
+
for (const n of this.observers)
|
|
812
|
+
n.unobserve(e);
|
|
813
813
|
this.observers = [];
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
let
|
|
817
|
-
const
|
|
816
|
+
let ne;
|
|
817
|
+
const bt = {
|
|
818
818
|
created(s, e) {
|
|
819
819
|
const t = typeof e.value == "object" ? e.value : {};
|
|
820
|
-
|
|
820
|
+
ne = new je(t), ne.add(s, e);
|
|
821
821
|
},
|
|
822
822
|
updated(s, e) {
|
|
823
|
-
|
|
823
|
+
ne.update(s, e);
|
|
824
824
|
},
|
|
825
825
|
unmounted(s, e) {
|
|
826
|
-
|
|
826
|
+
ne.remove(s, e);
|
|
827
827
|
}
|
|
828
|
-
},
|
|
828
|
+
}, wt = "lazy-img", gs = {
|
|
829
829
|
install(s, e = {}) {
|
|
830
830
|
const t = {
|
|
831
|
-
...
|
|
831
|
+
...ze,
|
|
832
832
|
...e,
|
|
833
833
|
observerOptions: {
|
|
834
|
-
...
|
|
834
|
+
...ze.observerOptions,
|
|
835
835
|
...e.observerOptions
|
|
836
836
|
}
|
|
837
|
-
},
|
|
838
|
-
s.directive(
|
|
839
|
-
created:
|
|
840
|
-
updated:
|
|
841
|
-
unmounted:
|
|
837
|
+
}, n = new je(t);
|
|
838
|
+
s.directive(wt, {
|
|
839
|
+
created: n.add.bind(n),
|
|
840
|
+
updated: n.update.bind(n),
|
|
841
|
+
unmounted: n.remove.bind(n)
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
|
-
},
|
|
844
|
+
}, Et = ["onKeypress"], zt = { class: "m-fullscreen-img-scroller" }, Lt = ["src", "alt"], Tt = /* @__PURE__ */ Oe({
|
|
845
845
|
__name: "MazFullscreenImg",
|
|
846
846
|
props: {
|
|
847
847
|
src: {},
|
|
@@ -859,37 +859,37 @@ const yt = {
|
|
|
859
859
|
},
|
|
860
860
|
emits: ["close", "previous", "next", "before-close"],
|
|
861
861
|
setup(s, { emit: e }) {
|
|
862
|
-
const t = e,
|
|
862
|
+
const t = e, n = L(() => import("./MazSpinner-_fcsae1V.mjs")), i = L(() => import("./x-mark-BP8zWe_C.mjs")), l = L(() => import("./chevron-left-CcZaP3Rc.mjs")), a = s, c = v(!1), d = v(!1), g = v(!1), b = v(!1), f = v(!1), y = v(a.clickedElement), I = p(() => a.clickedElement.getBoundingClientRect()), B = p(
|
|
863
863
|
() => I.value.height < I.value.width
|
|
864
864
|
), D = v(a.src), K = v(a.alt), M = v(), S = v(), q = p(() => f.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
|
|
865
865
|
function Y() {
|
|
866
866
|
c.value = !0, d.value = !1, g.value = !0;
|
|
867
867
|
}
|
|
868
|
-
|
|
868
|
+
He(
|
|
869
869
|
() => g.value,
|
|
870
870
|
(u) => {
|
|
871
|
-
u &&
|
|
871
|
+
u && ve();
|
|
872
872
|
}
|
|
873
873
|
);
|
|
874
|
-
function
|
|
874
|
+
function k() {
|
|
875
875
|
t("before-close"), j();
|
|
876
876
|
}
|
|
877
877
|
function X(u) {
|
|
878
|
-
u.key === "Escape" && (u.preventDefault(),
|
|
878
|
+
u.key === "Escape" && (u.preventDefault(), k()), (u.key === "ArrowLeft" || u.key === "ArrowRight") && (u.preventDefault(), U(u.key === "ArrowRight" ? "next" : "previous"));
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function me() {
|
|
881
881
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function de() {
|
|
884
884
|
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
885
885
|
}
|
|
886
886
|
function Z() {
|
|
887
887
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function he(u, o) {
|
|
890
890
|
return o < 0 ? u.length - 1 : o >= u.length ? 0 : o;
|
|
891
891
|
}
|
|
892
|
-
async function
|
|
892
|
+
async function fe(u, o) {
|
|
893
893
|
u.classList.remove(a.openInstanceClass), o.classList.add(a.openInstanceClass);
|
|
894
894
|
const m = o.getAttribute("data-src"), h = o.getAttribute("data-alt");
|
|
895
895
|
K.value = h, m && (D.value = m), c.value = !1, c.value || (d.value = !0);
|
|
@@ -899,8 +899,8 @@ const yt = {
|
|
|
899
899
|
`.m-fullscreen-img-instance.${a.openInstanceClass}`
|
|
900
900
|
);
|
|
901
901
|
if (o) {
|
|
902
|
-
const m = Z(), h = m.indexOf(o), w = u === "next" ? h + 1 : h - 1, z = m[
|
|
903
|
-
y.value = z, z &&
|
|
902
|
+
const m = Z(), h = m.indexOf(o), w = u === "next" ? h + 1 : h - 1, z = m[he(m, w)];
|
|
903
|
+
y.value = z, z && fe(o, z), t(u), f.value ? W(S.value) : P();
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
function W(u) {
|
|
@@ -923,22 +923,22 @@ const yt = {
|
|
|
923
923
|
const o = y.value instanceof HTMLImageElement ? y.value.naturalWidth : y.value.clientWidth, m = y.value instanceof HTMLImageElement ? y.value.naturalHeight : y.value.clientHeight, h = window.innerWidth, w = window.innerHeight, z = Math.min(
|
|
924
924
|
(h - 2 * u) / o,
|
|
925
925
|
(w - 2 * u) / m
|
|
926
|
-
),
|
|
926
|
+
), ge = (h - o * z) / 2, pe = (w - m * z) / 2;
|
|
927
927
|
return {
|
|
928
928
|
originalWidth: o,
|
|
929
929
|
originalHeight: m,
|
|
930
930
|
scale: z,
|
|
931
|
-
centerX:
|
|
932
|
-
centerY:
|
|
931
|
+
centerX: ge,
|
|
932
|
+
centerY: pe
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
935
|
function J({ trigger: u }) {
|
|
936
|
-
const { originalWidth: o, originalHeight: m, scale: h, centerX: w, centerY: z } = $(), { top:
|
|
936
|
+
const { originalWidth: o, originalHeight: m, scale: h, centerX: w, centerY: z } = $(), { top: ge, left: pe, width: Ze, height: Qe } = I.value, Ie = [
|
|
937
937
|
{
|
|
938
|
-
top: `${
|
|
939
|
-
left: `${
|
|
940
|
-
width: `${
|
|
941
|
-
height: `${
|
|
938
|
+
top: `${ge}px`,
|
|
939
|
+
left: `${pe}px`,
|
|
940
|
+
width: `${Ze}px`,
|
|
941
|
+
height: `${Qe}px`,
|
|
942
942
|
opacity: 0
|
|
943
943
|
},
|
|
944
944
|
{
|
|
@@ -950,7 +950,7 @@ const yt = {
|
|
|
950
950
|
}
|
|
951
951
|
];
|
|
952
952
|
return {
|
|
953
|
-
frames: u === "open" ?
|
|
953
|
+
frames: u === "open" ? Ie : Ie.reverse()
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
function P() {
|
|
@@ -964,7 +964,7 @@ const yt = {
|
|
|
964
964
|
throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
965
965
|
Object.assign(S.value.style, z);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function ve() {
|
|
968
968
|
const { frames: u } = J({
|
|
969
969
|
trigger: "open"
|
|
970
970
|
}), o = G(u);
|
|
@@ -988,27 +988,27 @@ const yt = {
|
|
|
988
988
|
function ee() {
|
|
989
989
|
f.value || P();
|
|
990
990
|
}
|
|
991
|
-
return
|
|
992
|
-
d.value = !0, document.addEventListener("keydown", X), window.addEventListener("resize", ee),
|
|
993
|
-
}),
|
|
994
|
-
document.removeEventListener("keydown", X), window.removeEventListener("resize", ee),
|
|
991
|
+
return ue(() => {
|
|
992
|
+
d.value = !0, document.addEventListener("keydown", X), window.addEventListener("resize", ee), me(), b.value = Z().length > 1;
|
|
993
|
+
}), De(() => {
|
|
994
|
+
document.removeEventListener("keydown", X), window.removeEventListener("resize", ee), de();
|
|
995
995
|
}), (u, o) => (T(), R("div", {
|
|
996
996
|
ref_key: "FullscreenImgElement",
|
|
997
997
|
ref: M,
|
|
998
998
|
role: "button",
|
|
999
999
|
class: "m-fullscreen-img",
|
|
1000
1000
|
tabindex: "0",
|
|
1001
|
-
onClick: A(
|
|
1002
|
-
onKeypress: st(A(
|
|
1001
|
+
onClick: A(k, ["stop"]),
|
|
1002
|
+
onKeypress: st(A(k, ["prevent"]), ["esc"])
|
|
1003
1003
|
}, [
|
|
1004
|
-
|
|
1005
|
-
C(
|
|
1004
|
+
Pe(N(
|
|
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
|
-
[
|
|
1011
|
+
[Me, d.value]
|
|
1012
1012
|
]),
|
|
1013
1013
|
g.value && b.value ? (T(), R("button", {
|
|
1014
1014
|
key: 0,
|
|
@@ -1026,35 +1026,35 @@ const yt = {
|
|
|
1026
1026
|
}, [
|
|
1027
1027
|
N(C(l), { class: "maz-text-3xl" })
|
|
1028
1028
|
])) : O("v-if", !0),
|
|
1029
|
-
|
|
1029
|
+
x("button", {
|
|
1030
1030
|
type: "button",
|
|
1031
1031
|
class: "m-fullscreen-btn --close",
|
|
1032
|
-
onClick:
|
|
1032
|
+
onClick: k
|
|
1033
1033
|
}, [
|
|
1034
|
-
N(C(
|
|
1034
|
+
N(C(i), { class: "maz-text-3xl" })
|
|
1035
1035
|
]),
|
|
1036
|
-
|
|
1036
|
+
x("div", zt, [
|
|
1037
1037
|
O(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
1038
|
-
|
|
1038
|
+
x("img", {
|
|
1039
1039
|
ref_key: "ImgElement",
|
|
1040
1040
|
ref: S,
|
|
1041
1041
|
src: D.value,
|
|
1042
1042
|
alt: K.value ?? void 0,
|
|
1043
1043
|
tabindex: "0",
|
|
1044
|
-
class:
|
|
1044
|
+
class: Ee([q.value]),
|
|
1045
1045
|
onLoad: Y,
|
|
1046
1046
|
onClick: o[2] || (o[2] = A((m) => u.zoom ? Q() : void 0, ["stop"]))
|
|
1047
|
-
}, null, 42,
|
|
1047
|
+
}, null, 42, Lt)
|
|
1048
1048
|
])
|
|
1049
|
-
], 40,
|
|
1049
|
+
], 40, Et));
|
|
1050
1050
|
}
|
|
1051
|
-
}),
|
|
1051
|
+
}), Re = (s, e) => {
|
|
1052
1052
|
const t = s.__vccOpts || s;
|
|
1053
|
-
for (const [
|
|
1054
|
-
t[
|
|
1053
|
+
for (const [n, i] of e)
|
|
1054
|
+
t[n] = i;
|
|
1055
1055
|
return t;
|
|
1056
|
-
},
|
|
1057
|
-
class
|
|
1056
|
+
}, It = /* @__PURE__ */ Re(Tt, [["__scopeId", "data-v-4836a523"]]), ke = "m-fullscreen-is-open";
|
|
1057
|
+
class St {
|
|
1058
1058
|
constructor() {
|
|
1059
1059
|
r(this, "options");
|
|
1060
1060
|
r(this, "defaultOptions", {
|
|
@@ -1073,11 +1073,11 @@ class It {
|
|
|
1073
1073
|
r(this, "renderPreviewListener");
|
|
1074
1074
|
}
|
|
1075
1075
|
buildOptions(e, t) {
|
|
1076
|
-
const
|
|
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), l = (n == null ? void 0 : n.alt) ?? this.getImgAlt(e);
|
|
1077
1077
|
return {
|
|
1078
1078
|
...this.defaultOptions,
|
|
1079
|
-
...
|
|
1080
|
-
src:
|
|
1079
|
+
...n,
|
|
1080
|
+
src: i,
|
|
1081
1081
|
alt: l
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
@@ -1085,8 +1085,8 @@ class It {
|
|
|
1085
1085
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
1086
1086
|
}
|
|
1087
1087
|
getImgSrc(e) {
|
|
1088
|
-
var
|
|
1089
|
-
const t = ((
|
|
1088
|
+
var n;
|
|
1089
|
+
const t = ((n = this.options) == null ? void 0 : n.src) || e.getAttribute("src") || e.getAttribute("data-src");
|
|
1090
1090
|
if (!t)
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
'[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes'
|
|
@@ -1101,8 +1101,8 @@ class It {
|
|
|
1101
1101
|
if (this.options = this.buildOptions(e, t), this.options.disabled)
|
|
1102
1102
|
return;
|
|
1103
1103
|
e.style.cursor = "move", (this.options.scaleOnHover || this.options.blurOnHover) && (e.style.transition = "all 200ms ease-in-out"), e.classList.add("m-fullscreen-img-instance"), e.setAttribute("data-src", this.getImgSrc(e));
|
|
1104
|
-
const
|
|
1105
|
-
|
|
1104
|
+
const n = this.getImgAlt(e);
|
|
1105
|
+
n && e.setAttribute("data-alt", n), this.mouseEnterListener = () => this.mouseEnter(e), this.mouseLeaveListener = () => this.mouseLeave(e), this.renderPreviewListener = () => this.renderPreview(e), e.addEventListener("mouseenter", this.mouseEnterListener), e.addEventListener("mouseleave", this.mouseLeaveListener), e.addEventListener("click", this.renderPreviewListener);
|
|
1106
1106
|
}
|
|
1107
1107
|
update(e, t) {
|
|
1108
1108
|
this.options = this.buildOptions(e, t);
|
|
@@ -1111,10 +1111,10 @@ class It {
|
|
|
1111
1111
|
e.removeEventListener("mouseenter", this.mouseEnterListener), e.removeEventListener("mouseleave", this.mouseLeaveListener), e.removeEventListener("click", this.renderPreviewListener), e.classList.remove("m-fullscreen-img-instance"), e.style.cursor = "";
|
|
1112
1112
|
}
|
|
1113
1113
|
renderPreview(e) {
|
|
1114
|
-
return e.classList.add(
|
|
1114
|
+
return e.classList.add(ke), $e(It, {
|
|
1115
1115
|
props: {
|
|
1116
1116
|
...this.options,
|
|
1117
|
-
openInstanceClass:
|
|
1117
|
+
openInstanceClass: ke,
|
|
1118
1118
|
clickedElement: e,
|
|
1119
1119
|
clickedElementBounds: e.getBoundingClientRect()
|
|
1120
1120
|
},
|
|
@@ -1128,55 +1128,55 @@ class It {
|
|
|
1128
1128
|
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
let
|
|
1132
|
-
const
|
|
1131
|
+
let ie;
|
|
1132
|
+
const Ke = {
|
|
1133
1133
|
mounted(s, e) {
|
|
1134
|
-
return
|
|
1134
|
+
return ie = new St(), ie.create(s, e);
|
|
1135
1135
|
},
|
|
1136
1136
|
updated(s, e) {
|
|
1137
|
-
return
|
|
1137
|
+
return ie.update(s, e);
|
|
1138
1138
|
},
|
|
1139
1139
|
unmounted(s) {
|
|
1140
|
-
return
|
|
1140
|
+
return ie.remove(s);
|
|
1141
1141
|
}
|
|
1142
|
-
},
|
|
1142
|
+
}, ps = {
|
|
1143
1143
|
install(s) {
|
|
1144
|
-
s.directive("fullscreen-img",
|
|
1144
|
+
s.directive("fullscreen-img", Ke);
|
|
1145
1145
|
}
|
|
1146
|
-
},
|
|
1146
|
+
}, kt = [
|
|
1147
1147
|
{
|
|
1148
1148
|
name: "click-outside",
|
|
1149
|
-
directive:
|
|
1149
|
+
directive: Ve
|
|
1150
1150
|
},
|
|
1151
1151
|
{
|
|
1152
1152
|
name: "closable",
|
|
1153
|
-
directive:
|
|
1153
|
+
directive: Ue
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
1156
1156
|
name: "zoom-img",
|
|
1157
|
-
directive:
|
|
1157
|
+
directive: We
|
|
1158
1158
|
},
|
|
1159
1159
|
{
|
|
1160
1160
|
name: "lazy-img",
|
|
1161
|
-
directive:
|
|
1161
|
+
directive: bt
|
|
1162
1162
|
},
|
|
1163
1163
|
{
|
|
1164
1164
|
name: "fullscreen-img",
|
|
1165
|
-
directive:
|
|
1165
|
+
directive: Ke
|
|
1166
1166
|
}
|
|
1167
|
-
],
|
|
1167
|
+
], ys = {
|
|
1168
1168
|
install(s) {
|
|
1169
|
-
for (const { name: e, directive: t } of
|
|
1169
|
+
for (const { name: e, directive: t } of kt)
|
|
1170
1170
|
s.directive(e, t);
|
|
1171
1171
|
}
|
|
1172
|
-
}, xt = (s) => s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "",
|
|
1172
|
+
}, xt = (s) => s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "", Ct = {
|
|
1173
1173
|
style: "currency",
|
|
1174
1174
|
minimumFractionDigits: 2,
|
|
1175
1175
|
round: !1
|
|
1176
|
-
}, Ct = (s, e, t) => {
|
|
1177
|
-
let i = Number(s);
|
|
1178
|
-
return t.round && (i = Math.floor(i), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(i);
|
|
1179
1176
|
}, At = (s, e, t) => {
|
|
1177
|
+
let n = Number(s);
|
|
1178
|
+
return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
|
|
1179
|
+
}, Ot = (s, e, t) => {
|
|
1180
1180
|
if (s === void 0)
|
|
1181
1181
|
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
1182
1182
|
if (e === void 0)
|
|
@@ -1185,38 +1185,38 @@ const je = {
|
|
|
1185
1185
|
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");
|
|
1186
1186
|
if (t.currency === void 0)
|
|
1187
1187
|
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
1188
|
-
},
|
|
1189
|
-
const
|
|
1190
|
-
...
|
|
1188
|
+
}, Ht = (s, e, t) => {
|
|
1189
|
+
const n = {
|
|
1190
|
+
...Ct,
|
|
1191
1191
|
...t
|
|
1192
1192
|
};
|
|
1193
|
-
|
|
1193
|
+
Ot(s, e, n);
|
|
1194
1194
|
try {
|
|
1195
|
-
return
|
|
1196
|
-
} catch (
|
|
1197
|
-
throw new Error(`[maz-ui](FilterCurrency) ${
|
|
1195
|
+
return At(s, e, n);
|
|
1196
|
+
} catch (i) {
|
|
1197
|
+
throw new Error(`[maz-ui](FilterCurrency) ${i}`);
|
|
1198
1198
|
}
|
|
1199
|
-
},
|
|
1199
|
+
}, Dt = {
|
|
1200
1200
|
month: "short",
|
|
1201
1201
|
day: "numeric",
|
|
1202
1202
|
year: "numeric"
|
|
1203
|
-
},
|
|
1203
|
+
}, Pt = (s, e, t) => {
|
|
1204
1204
|
if (e === void 0)
|
|
1205
1205
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
1206
1206
|
if (typeof e != "string")
|
|
1207
1207
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
1208
|
-
const
|
|
1208
|
+
const n = t ?? Dt;
|
|
1209
1209
|
try {
|
|
1210
|
-
const
|
|
1211
|
-
return new Intl.DateTimeFormat(e,
|
|
1212
|
-
} catch (
|
|
1213
|
-
throw new Error(`[maz-ui](FilterDate) ${
|
|
1210
|
+
const i = s instanceof Date ? s : new Date(s);
|
|
1211
|
+
return new Intl.DateTimeFormat(e, n).format(i);
|
|
1212
|
+
} catch (i) {
|
|
1213
|
+
throw new Error(`[maz-ui](FilterDate) ${i}`);
|
|
1214
1214
|
}
|
|
1215
|
-
},
|
|
1215
|
+
}, Mt = {
|
|
1216
1216
|
minimumFractionDigits: 2
|
|
1217
|
-
},
|
|
1218
|
-
const
|
|
1219
|
-
...
|
|
1217
|
+
}, $t = (s, e, t) => {
|
|
1218
|
+
const n = {
|
|
1219
|
+
...Mt,
|
|
1220
1220
|
...t
|
|
1221
1221
|
};
|
|
1222
1222
|
if (s === void 0)
|
|
@@ -1226,47 +1226,47 @@ const je = {
|
|
|
1226
1226
|
if (typeof e != "string")
|
|
1227
1227
|
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");
|
|
1228
1228
|
try {
|
|
1229
|
-
return new Intl.NumberFormat(e,
|
|
1230
|
-
} catch (
|
|
1231
|
-
throw new Error(`[maz-ui](FilterNumber) ${
|
|
1229
|
+
return new Intl.NumberFormat(e, n).format(Number(s));
|
|
1230
|
+
} catch (i) {
|
|
1231
|
+
throw new Error(`[maz-ui](FilterNumber) ${i}`);
|
|
1232
1232
|
}
|
|
1233
|
-
},
|
|
1233
|
+
}, Ft = {
|
|
1234
1234
|
capitalize: xt,
|
|
1235
|
-
currency:
|
|
1236
|
-
date:
|
|
1237
|
-
number:
|
|
1238
|
-
},
|
|
1235
|
+
currency: Ht,
|
|
1236
|
+
date: Pt,
|
|
1237
|
+
number: $t
|
|
1238
|
+
}, bs = {
|
|
1239
1239
|
install(s) {
|
|
1240
|
-
s.provide("filters",
|
|
1240
|
+
s.provide("filters", Ft);
|
|
1241
1241
|
}
|
|
1242
|
-
},
|
|
1243
|
-
const
|
|
1244
|
-
let
|
|
1242
|
+
}, Nt = ({ timeout: s, callback: e, remainingTimeUpdate: t = 200 }) => {
|
|
1243
|
+
const n = v(s);
|
|
1244
|
+
let i;
|
|
1245
1245
|
function l() {
|
|
1246
|
-
|
|
1246
|
+
n.value = s, a();
|
|
1247
1247
|
}
|
|
1248
1248
|
function a() {
|
|
1249
|
-
|
|
1250
|
-
|
|
1249
|
+
i || (i = setInterval(() => {
|
|
1250
|
+
n.value -= t, n.value <= 0 && (g(), e == null || e());
|
|
1251
1251
|
}, t));
|
|
1252
1252
|
}
|
|
1253
1253
|
function c() {
|
|
1254
|
-
|
|
1254
|
+
i && (clearInterval(i), i = void 0);
|
|
1255
1255
|
}
|
|
1256
1256
|
function d() {
|
|
1257
|
-
!
|
|
1257
|
+
!i && n.value > 0 && a();
|
|
1258
1258
|
}
|
|
1259
1259
|
function g() {
|
|
1260
|
-
|
|
1260
|
+
n.value = s, c();
|
|
1261
1261
|
}
|
|
1262
1262
|
return {
|
|
1263
|
-
remainingTime:
|
|
1263
|
+
remainingTime: n,
|
|
1264
1264
|
start: l,
|
|
1265
1265
|
pause: c,
|
|
1266
1266
|
resume: d,
|
|
1267
1267
|
stop: g
|
|
1268
1268
|
};
|
|
1269
|
-
},
|
|
1269
|
+
}, _t = { class: "m-toast__message-wrapper" }, Vt = { class: "m-toast__message" }, Bt = { class: "maz-flex maz-items-center maz-gap-2" }, qt = { key: 0 }, Ut = { class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1" }, Wt = /* @__PURE__ */ Oe({
|
|
1270
1270
|
__name: "MazToast",
|
|
1271
1271
|
props: {
|
|
1272
1272
|
position: {
|
|
@@ -1288,7 +1288,7 @@ const je = {
|
|
|
1288
1288
|
},
|
|
1289
1289
|
emits: ["close", "click", "open"],
|
|
1290
1290
|
setup(s, { emit: e }) {
|
|
1291
|
-
const t = L(() => import("./MazBtn-
|
|
1291
|
+
const t = L(() => import("./MazBtn-slucsujG.mjs")), n = L(() => import("./x-mark-BP8zWe_C.mjs")), i = L(
|
|
1292
1292
|
() => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
|
|
1293
1293
|
), l = L(
|
|
1294
1294
|
() => import("./exclamation-triangle-BfZLmRbP.mjs")
|
|
@@ -1309,19 +1309,19 @@ const je = {
|
|
|
1309
1309
|
default:
|
|
1310
1310
|
return;
|
|
1311
1311
|
}
|
|
1312
|
-
}), I = e, B = p(() => f.position.includes("top") ? "top" : "bottom"), D = p(() => f.position.includes("left") ? "left" : f.position.includes("right") ? "right" : "center"), K = p(() => D.value !== "center" ? D.value === "right" ? "m-slide-right" : "m-slide-left" : B.value === "top" ? "m-slide-top" : "m-slide-bottom"), M = v(!1), S = v(!1), q = v(), Y = `m-toast-container --${B.value} --${D.value}`,
|
|
1312
|
+
}), I = e, B = p(() => f.position.includes("top") ? "top" : "bottom"), D = p(() => f.position.includes("left") ? "left" : f.position.includes("right") ? "right" : "center"), K = p(() => D.value !== "center" ? D.value === "right" ? "m-slide-right" : "m-slide-left" : B.value === "top" ? "m-slide-top" : "m-slide-bottom"), M = v(!1), S = v(!1), q = v(), Y = `m-toast-container --${B.value} --${D.value}`, k = `.${Y.replaceAll(" ", ".")}`, { start: X, stop: me, pause: de, resume: Z, remainingTime: he } = Nt({
|
|
1313
1313
|
callback: j,
|
|
1314
1314
|
timeout: f.timeout
|
|
1315
1315
|
});
|
|
1316
|
-
function
|
|
1317
|
-
const o = document.querySelector(
|
|
1316
|
+
function fe() {
|
|
1317
|
+
const o = document.querySelector(k);
|
|
1318
1318
|
if (!o && !o) {
|
|
1319
1319
|
const m = document.body, h = document.createElement("div");
|
|
1320
1320
|
h.className = Y, m.append(h);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
function U() {
|
|
1324
|
-
const o = document.querySelector(
|
|
1324
|
+
const o = document.querySelector(k);
|
|
1325
1325
|
return !f.queue && f.maxToasts === !1 ? !1 : typeof f.maxToasts == "number" && o ? f.maxToasts <= o.childElementCount : o && o.childElementCount > 0;
|
|
1326
1326
|
}
|
|
1327
1327
|
function W() {
|
|
@@ -1329,7 +1329,7 @@ const je = {
|
|
|
1329
1329
|
q.value = setTimeout(W, 250);
|
|
1330
1330
|
return;
|
|
1331
1331
|
}
|
|
1332
|
-
const o = document.querySelector(
|
|
1332
|
+
const o = document.querySelector(k);
|
|
1333
1333
|
b.value && o && o.prepend(b.value), S.value = !0, X();
|
|
1334
1334
|
}
|
|
1335
1335
|
const Q = v("100%");
|
|
@@ -1347,8 +1347,8 @@ const je = {
|
|
|
1347
1347
|
return "maz-bg-secondary";
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
|
|
1351
|
-
() =>
|
|
1350
|
+
He(
|
|
1351
|
+
() => he.value,
|
|
1352
1352
|
(o) => {
|
|
1353
1353
|
if (typeof o == "number") {
|
|
1354
1354
|
const m = 100 * o / f.timeout;
|
|
@@ -1364,13 +1364,13 @@ const je = {
|
|
|
1364
1364
|
M.value = !0, await o(), M.value = !1, (h = f.action) != null && h.closeToast && $(m);
|
|
1365
1365
|
}
|
|
1366
1366
|
function P(o) {
|
|
1367
|
-
f.noPauseOnHover || (o ?
|
|
1367
|
+
f.noPauseOnHover || (o ? de() : Z());
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1370
|
-
|
|
1369
|
+
function ve() {
|
|
1370
|
+
me(), q.value && clearTimeout(q.value);
|
|
1371
1371
|
}
|
|
1372
1372
|
function j() {
|
|
1373
|
-
|
|
1373
|
+
ve(), S.value = !1;
|
|
1374
1374
|
}
|
|
1375
1375
|
function ee() {
|
|
1376
1376
|
I("open");
|
|
@@ -1378,24 +1378,24 @@ const je = {
|
|
|
1378
1378
|
function u() {
|
|
1379
1379
|
var m;
|
|
1380
1380
|
I("close"), (m = b.value) == null || m.remove();
|
|
1381
|
-
const o = document.querySelector(
|
|
1381
|
+
const o = document.querySelector(k);
|
|
1382
1382
|
o && !(o != null && o.hasChildNodes()) && o.remove();
|
|
1383
1383
|
}
|
|
1384
|
-
return
|
|
1385
|
-
|
|
1386
|
-
}), (o, m) => (T(), F(
|
|
1384
|
+
return ue(() => {
|
|
1385
|
+
fe(), W();
|
|
1386
|
+
}), (o, m) => (T(), F(nt, {
|
|
1387
1387
|
name: K.value,
|
|
1388
1388
|
onAfterLeave: u,
|
|
1389
1389
|
onAfterEnter: ee,
|
|
1390
1390
|
persisted: ""
|
|
1391
1391
|
}, {
|
|
1392
|
-
default:
|
|
1393
|
-
|
|
1392
|
+
default: ye(() => [
|
|
1393
|
+
Pe(x(
|
|
1394
1394
|
"button",
|
|
1395
1395
|
{
|
|
1396
1396
|
ref_key: "Toaster",
|
|
1397
1397
|
ref: b,
|
|
1398
|
-
class:
|
|
1398
|
+
class: Ee(["m-toast", [`--${s.type}`, `--${B.value}`, `--${D.value}`, { "maz-pb-1": s.timeout }]]),
|
|
1399
1399
|
role: "alert",
|
|
1400
1400
|
onMouseover: m[2] || (m[2] = (h) => P(!0)),
|
|
1401
1401
|
onMouseleave: m[3] || (m[3] = (h) => P(!1)),
|
|
@@ -1405,15 +1405,15 @@ const je = {
|
|
|
1405
1405
|
}, ["stop"]))
|
|
1406
1406
|
},
|
|
1407
1407
|
[
|
|
1408
|
-
y.value ? (T(), F(
|
|
1408
|
+
y.value ? (T(), F(it(y.value), {
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
class: "maz-text-2xl"
|
|
1411
1411
|
})) : O("v-if", !0),
|
|
1412
|
-
|
|
1413
|
-
|
|
1412
|
+
x("div", _t, [
|
|
1413
|
+
x(
|
|
1414
1414
|
"p",
|
|
1415
|
-
|
|
1416
|
-
|
|
1415
|
+
Vt,
|
|
1416
|
+
be(s.message),
|
|
1417
1417
|
1
|
|
1418
1418
|
/* TEXT */
|
|
1419
1419
|
)
|
|
@@ -1427,9 +1427,9 @@ const je = {
|
|
|
1427
1427
|
size: "sm",
|
|
1428
1428
|
onClick: m[0] || (m[0] = A((h) => J(s.action.func, h), ["stop"]))
|
|
1429
1429
|
}, {
|
|
1430
|
-
default:
|
|
1430
|
+
default: ye(() => [
|
|
1431
1431
|
ot(
|
|
1432
|
-
|
|
1432
|
+
be(s.action.text),
|
|
1433
1433
|
1
|
|
1434
1434
|
/* TEXT */
|
|
1435
1435
|
)
|
|
@@ -1446,18 +1446,18 @@ const je = {
|
|
|
1446
1446
|
href: s.link.href,
|
|
1447
1447
|
target: s.link.target ?? "_self"
|
|
1448
1448
|
}, {
|
|
1449
|
-
default:
|
|
1449
|
+
default: ye(() => {
|
|
1450
1450
|
var h;
|
|
1451
1451
|
return [
|
|
1452
|
-
|
|
1452
|
+
x("div", Bt, [
|
|
1453
1453
|
s.link.text ? (T(), R(
|
|
1454
1454
|
"span",
|
|
1455
|
-
|
|
1456
|
-
|
|
1455
|
+
qt,
|
|
1456
|
+
be(s.link.text),
|
|
1457
1457
|
1
|
|
1458
1458
|
/* TEXT */
|
|
1459
1459
|
)) : O("v-if", !0),
|
|
1460
|
-
((h = s.link) == null ? void 0 : h.target) == "_blank" ? (T(), F(C(
|
|
1460
|
+
((h = s.link) == null ? void 0 : h.target) == "_blank" ? (T(), F(C(i), {
|
|
1461
1461
|
key: 1,
|
|
1462
1462
|
class: "maz-text-xl"
|
|
1463
1463
|
})) : (T(), F(C(g), {
|
|
@@ -1475,16 +1475,16 @@ const je = {
|
|
|
1475
1475
|
class: "--close",
|
|
1476
1476
|
onClick: m[1] || (m[1] = A((h) => $(h), ["stop"]))
|
|
1477
1477
|
}, [
|
|
1478
|
-
N(C(
|
|
1478
|
+
N(C(n), { class: "--icon maz-text-xl" })
|
|
1479
1479
|
])),
|
|
1480
|
-
|
|
1481
|
-
|
|
1480
|
+
x("div", Ut, [
|
|
1481
|
+
x(
|
|
1482
1482
|
"div",
|
|
1483
1483
|
{
|
|
1484
1484
|
style: rt({
|
|
1485
1485
|
width: Q.value
|
|
1486
1486
|
}),
|
|
1487
|
-
class:
|
|
1487
|
+
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", G()])
|
|
1488
1488
|
},
|
|
1489
1489
|
null,
|
|
1490
1490
|
6
|
|
@@ -1495,31 +1495,31 @@ const je = {
|
|
|
1495
1495
|
34
|
|
1496
1496
|
/* CLASS, NEED_HYDRATION */
|
|
1497
1497
|
), [
|
|
1498
|
-
[
|
|
1498
|
+
[Me, S.value]
|
|
1499
1499
|
])
|
|
1500
1500
|
]),
|
|
1501
1501
|
_: 1
|
|
1502
1502
|
/* STABLE */
|
|
1503
1503
|
}, 8, ["name"]));
|
|
1504
1504
|
}
|
|
1505
|
-
}),
|
|
1505
|
+
}), jt = /* @__PURE__ */ Re(Wt, [["__scopeId", "data-v-2108a543"]]), Rt = {
|
|
1506
1506
|
position: "bottom-right",
|
|
1507
1507
|
timeout: 1e4,
|
|
1508
1508
|
persistent: !1
|
|
1509
1509
|
};
|
|
1510
|
-
class
|
|
1510
|
+
class Kt {
|
|
1511
1511
|
constructor(e, t) {
|
|
1512
1512
|
this.app = e, this.globalOptions = t;
|
|
1513
1513
|
}
|
|
1514
1514
|
show(e, t) {
|
|
1515
|
-
const
|
|
1516
|
-
...
|
|
1517
|
-
...
|
|
1515
|
+
const n = { message: e, ...t }, i = {
|
|
1516
|
+
...Rt,
|
|
1517
|
+
...n,
|
|
1518
1518
|
...this.globalOptions,
|
|
1519
1519
|
...t
|
|
1520
1520
|
};
|
|
1521
|
-
|
|
1522
|
-
props:
|
|
1521
|
+
$e(jt, {
|
|
1522
|
+
props: i,
|
|
1523
1523
|
app: this.app
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
@@ -1546,12 +1546,12 @@ class Rt {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
1548
|
let xe;
|
|
1549
|
-
const
|
|
1549
|
+
const ws = {
|
|
1550
1550
|
install(s, e) {
|
|
1551
|
-
xe = new
|
|
1551
|
+
xe = new Kt(s, e), s.provide("toast", xe);
|
|
1552
1552
|
}
|
|
1553
|
-
}, _ = "",
|
|
1554
|
-
class
|
|
1553
|
+
}, _ = "", Yt = (s) => s.filter((e, t, n) => t === n.indexOf(e)), Xt = (s) => (e = _) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e), Zt = (s) => s.length > 0, Qt = (s) => (e = _) => Yt([...s, e]), Gt = (s) => (e = _) => s.filter((t) => t !== e);
|
|
1554
|
+
class Jt {
|
|
1555
1555
|
constructor() {
|
|
1556
1556
|
r(this, "_loaders", v([]));
|
|
1557
1557
|
}
|
|
@@ -1559,23 +1559,23 @@ class Gt {
|
|
|
1559
1559
|
return p(() => this._loaders.value);
|
|
1560
1560
|
}
|
|
1561
1561
|
stop(e = _) {
|
|
1562
|
-
this._loaders.value =
|
|
1562
|
+
this._loaders.value = Gt(this._loaders.value)(e);
|
|
1563
1563
|
}
|
|
1564
1564
|
start(e = _) {
|
|
1565
|
-
return this._loaders.value =
|
|
1565
|
+
return this._loaders.value = Qt(this._loaders.value)(e), () => this.stop(e);
|
|
1566
1566
|
}
|
|
1567
1567
|
get anyLoading() {
|
|
1568
|
-
return p(() =>
|
|
1568
|
+
return p(() => Zt(this._loaders.value));
|
|
1569
1569
|
}
|
|
1570
1570
|
isLoading(e = _) {
|
|
1571
|
-
return p(() =>
|
|
1571
|
+
return p(() => Xt(this._loaders.value)(e)).value;
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
const
|
|
1574
|
+
const es = new Jt(), Es = {
|
|
1575
1575
|
install: (s) => {
|
|
1576
|
-
s.provide("wait",
|
|
1576
|
+
s.provide("wait", es);
|
|
1577
1577
|
}
|
|
1578
|
-
},
|
|
1578
|
+
}, we = {
|
|
1579
1579
|
delay: 100,
|
|
1580
1580
|
observer: {
|
|
1581
1581
|
root: void 0,
|
|
@@ -1588,34 +1588,34 @@ const Jt = new Gt(), ws = {
|
|
|
1588
1588
|
delay: 0
|
|
1589
1589
|
}
|
|
1590
1590
|
};
|
|
1591
|
-
class
|
|
1591
|
+
class ts {
|
|
1592
1592
|
constructor(e) {
|
|
1593
1593
|
r(this, "options");
|
|
1594
1594
|
this.options = {
|
|
1595
|
-
delay: (e == null ? void 0 : e.delay) ??
|
|
1595
|
+
delay: (e == null ? void 0 : e.delay) ?? we.delay,
|
|
1596
1596
|
observer: {
|
|
1597
|
-
...
|
|
1597
|
+
...we.observer,
|
|
1598
1598
|
...e == null ? void 0 : e.observer
|
|
1599
1599
|
},
|
|
1600
1600
|
animation: {
|
|
1601
|
-
...
|
|
1601
|
+
...we.animation,
|
|
1602
1602
|
...e == null ? void 0 : e.animation
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
1605
|
}
|
|
1606
1606
|
handleIntersect(e, t) {
|
|
1607
|
-
for (const
|
|
1608
|
-
const l =
|
|
1607
|
+
for (const n of e) {
|
|
1608
|
+
const l = n.target.getAttribute("data-maz-aos-children") === "true", a = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
1609
1609
|
if (l) {
|
|
1610
1610
|
const c = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
|
|
1611
|
-
(d) => d.getAttribute("data-maz-aos-anchor") === `#${
|
|
1611
|
+
(d) => d.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? d : void 0
|
|
1612
1612
|
);
|
|
1613
1613
|
for (const d of c)
|
|
1614
1614
|
d && a.push(d);
|
|
1615
1615
|
}
|
|
1616
1616
|
for (const c of a) {
|
|
1617
1617
|
const d = c.getAttribute("data-maz-aos-once"), g = typeof d == "string" ? d === "true" : this.options.animation.once;
|
|
1618
|
-
if (typeof this.options.observer.threshold == "number" &&
|
|
1618
|
+
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
1619
1619
|
const b = c.getAttribute("data-maz-aos-duration"), f = c.getAttribute("data-maz-aos-delay");
|
|
1620
1620
|
if (b || (c.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
1621
1621
|
c.style.transitionDuration = "0";
|
|
@@ -1635,15 +1635,15 @@ class es {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
async handleObserver() {
|
|
1638
|
-
await
|
|
1638
|
+
await mt(this.options.delay);
|
|
1639
1639
|
const e = new IntersectionObserver(this.handleIntersect.bind(this), {
|
|
1640
1640
|
...this.options.observer
|
|
1641
1641
|
});
|
|
1642
1642
|
for (const t of document.querySelectorAll("[data-maz-aos]")) {
|
|
1643
|
-
const
|
|
1644
|
-
if (
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1643
|
+
const n = t.getAttribute("data-maz-aos-anchor");
|
|
1644
|
+
if (n) {
|
|
1645
|
+
const i = document.querySelector(n);
|
|
1646
|
+
i ? (i.setAttribute("data-maz-aos-children", "true"), e.observe(i)) : console.warn(`[maz-ui](aos) no element found with selector "${n}"`);
|
|
1647
1647
|
} else
|
|
1648
1648
|
e.observe(t);
|
|
1649
1649
|
}
|
|
@@ -1655,47 +1655,48 @@ class es {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
let oe;
|
|
1658
|
-
const
|
|
1658
|
+
const zs = {
|
|
1659
1659
|
install: (s, e) => {
|
|
1660
|
-
oe = new
|
|
1660
|
+
oe = new ts(e), s.provide("aos", oe), E() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
1661
1661
|
oe.runAnimations();
|
|
1662
1662
|
}) : oe.runAnimations());
|
|
1663
1663
|
}
|
|
1664
|
-
},
|
|
1664
|
+
}, Ce = {
|
|
1665
1665
|
darkClass: "dark",
|
|
1666
1666
|
lightClass: "light",
|
|
1667
1667
|
storageThemeKey: "theme",
|
|
1668
1668
|
storageThemeValueDark: "dark",
|
|
1669
1669
|
storageThemeValueLight: "light",
|
|
1670
|
-
storageThemeValueSystem: "system"
|
|
1670
|
+
storageThemeValueSystem: "system",
|
|
1671
|
+
watchChanges: !0
|
|
1671
1672
|
}, V = v("system"), H = v("system");
|
|
1672
1673
|
function le({
|
|
1673
1674
|
darkClass: s,
|
|
1674
1675
|
lightClass: e,
|
|
1675
1676
|
storageThemeKey: t,
|
|
1676
|
-
storageThemeValueDark:
|
|
1677
|
-
setLocalStorageValue:
|
|
1677
|
+
storageThemeValueDark: n,
|
|
1678
|
+
setLocalStorageValue: i = !0,
|
|
1678
1679
|
setSelectedTheme: l = !0
|
|
1679
1680
|
}) {
|
|
1680
|
-
E() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), V.value =
|
|
1681
|
+
E() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), V.value = n, l && (H.value = n), i && (localStorage[t] = n));
|
|
1681
1682
|
}
|
|
1682
1683
|
function ce({
|
|
1683
1684
|
darkClass: s,
|
|
1684
1685
|
lightClass: e,
|
|
1685
1686
|
storageThemeKey: t,
|
|
1686
|
-
storageThemeValueLight:
|
|
1687
|
-
setLocalStorageValue:
|
|
1687
|
+
storageThemeValueLight: n,
|
|
1688
|
+
setLocalStorageValue: i = !0,
|
|
1688
1689
|
setSelectedTheme: l = !0
|
|
1689
1690
|
}) {
|
|
1690
|
-
E() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), V.value =
|
|
1691
|
+
E() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), V.value = n, l && (H.value = n), i && (localStorage[t] = n));
|
|
1691
1692
|
}
|
|
1692
|
-
function
|
|
1693
|
-
E() && (document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), V.value = s.storageThemeValueSystem, H.value = s.storageThemeValueSystem, s.setLocalStorageValue && (localStorage[s.storageThemeKey] = s.storageThemeValueSystem),
|
|
1693
|
+
function Ye(s) {
|
|
1694
|
+
E() && (document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), V.value = s.storageThemeValueSystem, H.value = s.storageThemeValueSystem, s.setLocalStorageValue && (localStorage[s.storageThemeKey] = s.storageThemeValueSystem), Le({ ...s }));
|
|
1694
1695
|
}
|
|
1695
1696
|
function re() {
|
|
1696
1697
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1697
1698
|
}
|
|
1698
|
-
function
|
|
1699
|
+
function Le(s) {
|
|
1699
1700
|
E() && (s.onlyWithStoredValue ? localStorage[s.storageThemeKey] === s.storageThemeValueDark || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && re() ? le({
|
|
1700
1701
|
...s,
|
|
1701
1702
|
setLocalStorageValue: !1,
|
|
@@ -1714,82 +1715,92 @@ function Ke(s) {
|
|
|
1714
1715
|
setSelectedTheme: !1
|
|
1715
1716
|
}));
|
|
1716
1717
|
}
|
|
1717
|
-
function
|
|
1718
|
+
function Ae({
|
|
1718
1719
|
shouldSetDarkMode: s,
|
|
1719
1720
|
...e
|
|
1720
1721
|
}) {
|
|
1721
|
-
return typeof s != "boolean" ?
|
|
1722
|
+
return typeof s != "boolean" ? Ye(e) : s ? le(e) : ce(e);
|
|
1722
1723
|
}
|
|
1723
|
-
function
|
|
1724
|
+
function ss(s) {
|
|
1724
1725
|
return V.value === s.storageThemeValueDark ? ce(s) : le(s);
|
|
1725
1726
|
}
|
|
1726
|
-
function
|
|
1727
|
+
function Ls(s = Ce) {
|
|
1727
1728
|
const e = {
|
|
1728
|
-
...
|
|
1729
|
+
...Ce,
|
|
1729
1730
|
...s
|
|
1730
|
-
}, t = p(() => H.value === e.storageThemeValueDark),
|
|
1731
|
+
}, t = p(() => H.value === e.storageThemeValueDark), n = p(() => H.value === e.storageThemeValueLight), i = p(
|
|
1731
1732
|
() => H.value === e.storageThemeValueSystem
|
|
1732
1733
|
);
|
|
1733
|
-
|
|
1734
|
-
|
|
1734
|
+
function l() {
|
|
1735
|
+
Le(e);
|
|
1736
|
+
}
|
|
1737
|
+
return ue(() => {
|
|
1738
|
+
localStorage[e.storageThemeKey] && (V.value = localStorage[e.storageThemeKey], H.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", l);
|
|
1739
|
+
}), De(() => {
|
|
1740
|
+
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", l);
|
|
1735
1741
|
}), {
|
|
1736
|
-
autoSetTheme: (
|
|
1737
|
-
toggleTheme: () =>
|
|
1738
|
-
setSystemTheme: () =>
|
|
1739
|
-
setDarkTheme: () =>
|
|
1740
|
-
setLightTheme: () =>
|
|
1742
|
+
autoSetTheme: (a) => Le({ ...e, ...a }),
|
|
1743
|
+
toggleTheme: () => ss(e),
|
|
1744
|
+
setSystemTheme: () => Ye({ ...e, setLocalStorageValue: !0 }),
|
|
1745
|
+
setDarkTheme: () => Ae({ ...e, shouldSetDarkMode: !0 }),
|
|
1746
|
+
setLightTheme: () => Ae({ ...e, shouldSetDarkMode: !1 }),
|
|
1741
1747
|
hasDarkTheme: t,
|
|
1742
|
-
hasLightTheme:
|
|
1743
|
-
hasSystemTheme:
|
|
1748
|
+
hasLightTheme: n,
|
|
1749
|
+
hasSystemTheme: i,
|
|
1744
1750
|
theme: V,
|
|
1745
1751
|
selectedTheme: H
|
|
1746
1752
|
};
|
|
1747
1753
|
}
|
|
1748
|
-
const
|
|
1754
|
+
const Ts = ({
|
|
1749
1755
|
componentName: s,
|
|
1750
1756
|
instance: e,
|
|
1751
1757
|
providedId: t
|
|
1752
|
-
}) => p(() => t ?? `${s}-${e == null ? void 0 : e.uid}`),
|
|
1758
|
+
}) => p(() => t ?? `${s}-${e == null ? void 0 : e.uid}`), Is = () => Te("aos"), Ss = () => Te("wait"), ks = () => Te("toast"), xs = ({
|
|
1753
1759
|
callback: s,
|
|
1754
1760
|
options: e
|
|
1755
|
-
}) => new
|
|
1761
|
+
}) => new ct(s, e), Cs = ({
|
|
1756
1762
|
callback: s,
|
|
1757
1763
|
options: e
|
|
1758
|
-
}) => new
|
|
1759
|
-
function
|
|
1764
|
+
}) => new ut(s, e);
|
|
1765
|
+
function ns(s = {}) {
|
|
1760
1766
|
const {
|
|
1761
1767
|
internalWindow: e = E() ? window : void 0,
|
|
1762
1768
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
1763
|
-
initialHeight:
|
|
1764
|
-
includeScrollbar:
|
|
1765
|
-
} = s, l = v(t), a = v(
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
+
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
1770
|
+
includeScrollbar: i = !0
|
|
1771
|
+
} = s, l = v(t), a = v(n);
|
|
1772
|
+
function c() {
|
|
1773
|
+
e && (i ? (l.value = e.innerWidth, a.value = e.innerHeight) : (l.value = e.document.documentElement.clientWidth, a.value = e.document.documentElement.clientHeight));
|
|
1774
|
+
}
|
|
1775
|
+
return c(), ue(() => {
|
|
1776
|
+
e && window.addEventListener("resize", c, { passive: !0 });
|
|
1777
|
+
}), at(() => {
|
|
1778
|
+
e && window.removeEventListener("resize", c);
|
|
1779
|
+
}), { width: l, height: a };
|
|
1769
1780
|
}
|
|
1770
1781
|
function is(s) {
|
|
1771
1782
|
const e = {};
|
|
1772
|
-
for (const [t,
|
|
1773
|
-
e[t] = Number.parseInt(
|
|
1783
|
+
for (const [t, n] of Object.entries(s))
|
|
1784
|
+
e[t] = Number.parseInt(n, 10);
|
|
1774
1785
|
return e;
|
|
1775
1786
|
}
|
|
1776
|
-
function
|
|
1787
|
+
function As({
|
|
1777
1788
|
initialWidth: s = 0,
|
|
1778
1789
|
initialHeight: e,
|
|
1779
1790
|
includeScrollbar: t,
|
|
1780
|
-
internalWindow:
|
|
1781
|
-
listenOrientation:
|
|
1791
|
+
internalWindow: n,
|
|
1792
|
+
listenOrientation: i,
|
|
1782
1793
|
breakpoints: l,
|
|
1783
1794
|
mediumBreakPoint: a = "md",
|
|
1784
1795
|
largeBreakPoint: c = "lg"
|
|
1785
1796
|
}) {
|
|
1786
|
-
const { width: d } =
|
|
1797
|
+
const { width: d } = ns({
|
|
1787
1798
|
initialWidth: s,
|
|
1788
1799
|
// (SSR) mobile first
|
|
1789
1800
|
initialHeight: e,
|
|
1790
1801
|
includeScrollbar: t,
|
|
1791
|
-
internalWindow:
|
|
1792
|
-
listenOrientation:
|
|
1802
|
+
internalWindow: n,
|
|
1803
|
+
listenOrientation: i
|
|
1793
1804
|
}), g = is(l), b = p(() => d.value >= g[c]), f = p(
|
|
1794
1805
|
() => d.value >= g[a] && d.value < g[c]
|
|
1795
1806
|
), y = p(() => d.value >= 0 && d.value < g[a]);
|
|
@@ -1802,18 +1813,18 @@ function Cs({
|
|
|
1802
1813
|
breakpoints: l
|
|
1803
1814
|
};
|
|
1804
1815
|
}
|
|
1805
|
-
function
|
|
1806
|
-
const e = new
|
|
1816
|
+
function Os(s) {
|
|
1817
|
+
const e = new dt({
|
|
1807
1818
|
...s,
|
|
1808
1819
|
element: s.element,
|
|
1809
1820
|
onValuesChanged(d) {
|
|
1810
|
-
t.value = d.xDiff,
|
|
1821
|
+
t.value = d.xDiff, n.value = d.yDiff, i.value = d.xStart, l.value = d.xEnd, a.value = d.yStart, c.value = d.yEnd;
|
|
1811
1822
|
}
|
|
1812
|
-
}), t = v(),
|
|
1823
|
+
}), t = v(), n = v(), i = v(), l = v(), a = v(), c = v();
|
|
1813
1824
|
return {
|
|
1814
1825
|
xDiff: t,
|
|
1815
|
-
yDiff:
|
|
1816
|
-
xStart:
|
|
1826
|
+
yDiff: n,
|
|
1827
|
+
xStart: i,
|
|
1817
1828
|
xEnd: l,
|
|
1818
1829
|
yStart: a,
|
|
1819
1830
|
yEnd: c,
|
|
@@ -1821,15 +1832,15 @@ function As(s) {
|
|
|
1821
1832
|
stop: e.stop
|
|
1822
1833
|
};
|
|
1823
1834
|
}
|
|
1824
|
-
function
|
|
1835
|
+
function Xe(s) {
|
|
1825
1836
|
const e = s.join(", ").match(/\b\w+\b/g);
|
|
1826
1837
|
return e ? e.length : 0;
|
|
1827
1838
|
}
|
|
1828
|
-
function
|
|
1829
|
-
const t =
|
|
1839
|
+
function os(s, e = 150) {
|
|
1840
|
+
const t = Xe([s]);
|
|
1830
1841
|
return Math.ceil(t / e);
|
|
1831
1842
|
}
|
|
1832
|
-
function
|
|
1843
|
+
function Hs(s) {
|
|
1833
1844
|
const e = p(
|
|
1834
1845
|
() => {
|
|
1835
1846
|
var a;
|
|
@@ -1838,7 +1849,7 @@ function Os(s) {
|
|
|
1838
1849
|
), t = p(() => {
|
|
1839
1850
|
var a;
|
|
1840
1851
|
return typeof s.contentSelector == "string" ? s.contentSelector : (a = s.contentSelector) == null ? void 0 : a.value;
|
|
1841
|
-
}),
|
|
1852
|
+
}), n = p(() => {
|
|
1842
1853
|
var a, c, d;
|
|
1843
1854
|
if (typeof ((a = s.contentRef) == null ? void 0 : a.value) == "object")
|
|
1844
1855
|
return (c = s.contentRef.value) == null ? void 0 : c.textContent;
|
|
@@ -1848,63 +1859,63 @@ function Os(s) {
|
|
|
1848
1859
|
return g.textContent;
|
|
1849
1860
|
}
|
|
1850
1861
|
return typeof s.content == "string" ? s.content : (d = s.content) == null ? void 0 : d.value;
|
|
1851
|
-
}),
|
|
1862
|
+
}), i = p(() => os(n.value, e.value)), l = p(() => Xe([n.value]));
|
|
1852
1863
|
return {
|
|
1853
|
-
content:
|
|
1864
|
+
content: n,
|
|
1854
1865
|
wordCount: l,
|
|
1855
1866
|
velocity: e,
|
|
1856
|
-
duration:
|
|
1867
|
+
duration: i
|
|
1857
1868
|
};
|
|
1858
1869
|
}
|
|
1859
1870
|
export {
|
|
1860
1871
|
xe as A,
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1872
|
+
Es as B,
|
|
1873
|
+
es as C,
|
|
1874
|
+
ts as D,
|
|
1875
|
+
zs as E,
|
|
1865
1876
|
oe as F,
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1877
|
+
Ls as G,
|
|
1878
|
+
Ts as H,
|
|
1879
|
+
ct as I,
|
|
1880
|
+
Is as J,
|
|
1881
|
+
Ss as K,
|
|
1882
|
+
ks as L,
|
|
1872
1883
|
xs as M,
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
+
Cs as N,
|
|
1885
|
+
Nt as O,
|
|
1886
|
+
As as P,
|
|
1887
|
+
ns as Q,
|
|
1888
|
+
Os as R,
|
|
1889
|
+
us as S,
|
|
1890
|
+
Kt as T,
|
|
1891
|
+
ut as U,
|
|
1892
|
+
Hs as V,
|
|
1893
|
+
Jt as W,
|
|
1894
|
+
Re as _,
|
|
1884
1895
|
E as a,
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1896
|
+
dt as b,
|
|
1897
|
+
ms as c,
|
|
1898
|
+
cs as d,
|
|
1899
|
+
ds as e,
|
|
1900
|
+
ys as f,
|
|
1901
|
+
Ve as g,
|
|
1902
|
+
gs as h,
|
|
1903
|
+
Te as i,
|
|
1904
|
+
We as j,
|
|
1905
|
+
vs as k,
|
|
1906
|
+
Ke as l,
|
|
1907
|
+
$e as m,
|
|
1908
|
+
ps as n,
|
|
1909
|
+
Ue as o,
|
|
1910
|
+
hs as p,
|
|
1911
|
+
fs as q,
|
|
1912
|
+
bs as r,
|
|
1913
|
+
mt as s,
|
|
1914
|
+
lt as t,
|
|
1904
1915
|
xt as u,
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1916
|
+
bt as v,
|
|
1917
|
+
Ht as w,
|
|
1918
|
+
Pt as x,
|
|
1919
|
+
$t as y,
|
|
1920
|
+
ws as z
|
|
1910
1921
|
};
|