maz-ui 3.47.2-beta.0 → 3.47.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAccordion.mjs +36 -37
- package/components/MazAnimatedCounter.mjs +14 -16
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +66 -71
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +162 -185
- package/components/MazExpandAnimation.mjs +20 -21
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +30 -31
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLink.mjs +18 -30
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +37 -42
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +107 -116
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +24 -28
- package/components/MazTable.d.ts +6 -6
- package/components/MazTable.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTextarea.mjs +32 -34
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBadge-CvIiiTdM.mjs → MazBadge-CqppWg2j.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-CGRvZmGd.mjs} +28 -29
- package/{modules/chunks/MazBtn-BSnVxud6.mjs → components/chunks/MazBtn-2VKM1wZu.mjs} +37 -49
- package/components/chunks/{MazBtn-DVkwISlp.mjs → MazBtn-40lm8-AL.mjs} +37 -49
- package/components/chunks/{MazBtn-DzBXfedt.mjs → MazBtn-BB1FyYWv.mjs} +35 -44
- package/components/chunks/{MazBtn-BO3G90L3.mjs → MazBtn-BMYXMZuX.mjs} +37 -49
- package/components/chunks/{MazBtn-DJOUeES7.mjs → MazBtn-BijEMn4r.mjs} +37 -49
- package/components/chunks/MazBtn-BmrcK2af.mjs +106 -0
- package/components/chunks/MazBtn-C72_1uvu.mjs +106 -0
- package/components/chunks/MazBtn-CWloP6MI.mjs +111 -0
- package/components/chunks/MazBtn-CcyV4DCc.mjs +106 -0
- package/components/chunks/MazBtn-DENEMy-c.mjs +106 -0
- package/components/chunks/MazBtn-DfqRZvbB.mjs +106 -0
- package/components/chunks/MazBtn-UnZQuu6P.mjs +106 -0
- package/components/chunks/MazBtn-cDJlUVVY.mjs +106 -0
- package/components/chunks/MazBtn-hUslV7wO.mjs +106 -0
- package/components/chunks/{MazCard-FSXmHyhj.mjs → MazCard-BYB8y1_u.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-DccWVW8H.mjs} +20 -21
- package/components/chunks/{MazCheckbox-2G4VkxDz.mjs → MazCheckbox-B22OcHt8.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Cq9gpTEw.mjs → MazCheckbox-DMogZVHl.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BmnqBHaY.mjs → MazCheckbox-Db6sPUbV.mjs} +1 -1
- package/components/chunks/{MazChecklist-CY1Cv70T.mjs → MazChecklist-C95Y4Hb-.mjs} +112 -118
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-khofH-7I.mjs} +66 -81
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +488 -0
- package/components/chunks/{MazExpandAnimation-Bkw_wFTi.mjs → MazExpandAnimation-MDimlZGj.mjs} +7 -8
- package/components/chunks/{MazGallery-BknvUeo1.mjs → MazGallery-CXQiXWFr.mjs} +32 -33
- package/components/chunks/{MazGallery-CZOokGAt.mjs → MazGallery-VTZUhBKC.mjs} +33 -34
- package/components/chunks/{MazIcon-z-jTiuyI.mjs → MazIcon-BF5TFzse.mjs} +1 -1
- package/components/chunks/{MazInput-oOA7gdLO.mjs → MazInput-DC3S-CVu.mjs} +44 -53
- package/components/chunks/{MazInput-BQoQSRyL.mjs → MazInput-DzWkS-g8.mjs} +40 -49
- package/components/chunks/{MazInput-CJQB68c-.mjs → MazInput-NE6H-10w.mjs} +42 -51
- package/components/chunks/{MazInputNumber-B4mQJcVB.mjs → MazInputNumber-DRXQXHRv.mjs} +168 -189
- package/components/chunks/{MazInputPrice-BrxE5WVf.mjs → MazInputPrice-DoTnDDIN.mjs} +49 -58
- package/components/chunks/{MazInputTags-BVCej_gW.mjs → MazInputTags-Dj3sW-e5.mjs} +181 -202
- package/components/chunks/{MazLink-Dl9ePCGm.mjs → MazLink-C_3Wya94.mjs} +19 -31
- package/components/chunks/{MazLoadingBar-Dwf55oHy.mjs → MazLoadingBar-DdjHRC7g.mjs} +1 -1
- package/components/chunks/MazPagination-BkT4_LLW.mjs +330 -0
- package/components/chunks/{MazPhoneNumberInput-Cd25AzXc.mjs → MazPhoneNumberInput-BbssOUzo.mjs} +500 -544
- package/components/chunks/{MazPicker-C78yxilJ.mjs → MazPicker-DwWiIYAR.mjs} +243 -264
- package/components/chunks/{MazPickerMonthSwitcher-CyHYx8TT.mjs → MazPickerMonthSwitcher-CmFFQoPA.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Bsi8cnox.mjs → MazPickerShortcuts-DaELz7aq.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DLUSMAtz.mjs → MazPickerYearSwitcher-m1_KXnpA.mjs} +1 -1
- package/components/chunks/{MazSelect-CQDoUpgp.mjs → MazSelect-BJ07NVXQ.mjs} +149 -170
- package/components/chunks/{MazSelect-uCJPMXF-.mjs → MazSelect-CDV9Fx6m.mjs} +124 -136
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-Bb3f2t6w.mjs} +1 -1
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BcB0szZB.mjs} +1 -1
- package/components/chunks/{MazSpinner-BT_717pD.mjs → MazSpinner-BpkPcfCt.mjs} +1 -1
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-BsYJDmi9.mjs} +1 -1
- package/components/chunks/{MazSpinner-B9OwpEP_.mjs → MazSpinner-BymqEMBk.mjs} +1 -1
- package/components/chunks/MazSpinner-C-64WJje.mjs +34 -0
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +34 -0
- package/components/chunks/{MazSpinner-EFo8dM46.mjs → MazSpinner-CfiIXW8y.mjs} +1 -1
- package/components/chunks/MazSpinner-CykRbNHD.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-D3-pqOh3.mjs} +1 -1
- package/components/chunks/MazSpinner-DS58mtzm.mjs +34 -0
- package/components/chunks/{MazSpinner-2D0ZmAQz.mjs → MazSpinner-DmiLBQgR.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1Ip-Dwh.mjs → MazSpinner-Dmkr_r9u.mjs} +1 -1
- package/components/chunks/MazSpinner-DoRGA1RI.mjs +34 -0
- package/components/chunks/MazSpinner-eC03bFP5.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-edxn0ncQ.mjs} +1 -1
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +34 -0
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +34 -0
- package/components/chunks/MazStepper-BREfkpUb.mjs +213 -0
- package/components/chunks/{MazTable-Cuz5QI08.mjs → MazTable-BJDPdIJB.mjs} +183 -227
- package/components/chunks/{MazTableCell-D_OTOJiy.mjs → MazTableCell-DILuUCTe.mjs} +1 -1
- package/components/chunks/{MazTableRow-BTcVAyOy.mjs → MazTableRow-D6H6-c8J.mjs} +1 -1
- package/components/chunks/{MazTableTitle-BDA9G6Zw.mjs → MazTableTitle-Ch-nyY1E.mjs} +1 -1
- package/components/chunks/MazTabsBar-CM-w7V97.mjs +193 -0
- package/components/chunks/{MazTransitionExpand-C-FHhOGB.mjs → MazTransitionExpand-PmUDa51_.mjs} +1 -1
- package/modules/chunks/MazBtn-QVmZ90t5.mjs +106 -0
- package/modules/chunks/MazBtn-R7z-Hxp-.cjs +1 -0
- package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-CKCoY05P.cjs} +1 -1
- package/modules/chunks/{MazIcon-DllGg8tw.mjs → MazIcon-DJfEPmBG.mjs} +1 -1
- package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-C95OqwKl.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-DYT43E6e.cjs} +1 -1
- package/modules/chunks/{index-x2F1l5sr.mjs → index-CjsYU5rv.mjs} +191 -226
- package/modules/chunks/{index-BPqjUr5e.cjs → index-oVi9-l4o.cjs} +2 -27
- 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/components/MazTable.vue.d.ts +6 -6
- package/types/modules/composables/useFormValidator/types.d.ts +5 -1
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +2 -2
- package/types/modules/composables/useFormValidator/utils.d.ts +12 -12
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-C87UEsVs.mjs +0 -118
- package/components/chunks/MazBtn-C_l3xuAh.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DadFupkY.mjs +0 -118
- package/components/chunks/MazBtn-GGcGrIH4.mjs +0 -118
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazSpinner-C23CZ_Za.mjs +0 -34
- package/components/chunks/MazSpinner-CViChjTw.mjs +0 -34
- package/components/chunks/MazSpinner-CZMBhCOJ.mjs +0 -34
- package/components/chunks/MazSpinner-D4C84xZe.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-u8WQTgUR.mjs +0 -34
- package/components/chunks/MazSpinner-w-S5uCxg.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTabsBar-JkRzMDM6.mjs +0 -203
- package/modules/chunks/MazBtn-Bf9Cq5M7.cjs +0 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '../assets/index.css';var Pt = Object.defineProperty;
|
|
2
2
|
var Mt = (s, e, t) => e in s ? Pt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var d = (s, e, t) => Mt(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { inject as ot, ref as y, onMounted as ue, onUnmounted as it, computed as f, toValue as ae, nextTick as Ue, getCurrentInstance as $t, watch as X, provide as Ht, useId as Vt, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ge, defineAsyncComponent as
|
|
4
|
+
import { inject as ot, ref as y, onMounted as ue, onUnmounted as it, computed as f, toValue as ae, nextTick as Ue, getCurrentInstance as $t, watch as X, provide as Ht, useId as Vt, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ge, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as _, withModifiers as Y, withKeys as Nt, unref as A, createCommentVNode as V, createElementVNode as B, normalizeClass as le, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as U, mergeProps as ee, renderSlot as q, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as Ut, resolveDynamicComponent as _t, normalizeStyle as qt } from "vue";
|
|
5
5
|
function Oe(s, e) {
|
|
6
6
|
const t = ot(s, e);
|
|
7
7
|
if (!t)
|
|
8
8
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);
|
|
9
9
|
return t;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Fn() {
|
|
12
12
|
return Oe("aos");
|
|
13
13
|
}
|
|
14
14
|
function Wt(s) {
|
|
@@ -17,12 +17,12 @@ function Wt(s) {
|
|
|
17
17
|
e[t] = Number.parseInt(n, 10);
|
|
18
18
|
return e;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function F() {
|
|
21
21
|
return typeof document < "u";
|
|
22
22
|
}
|
|
23
23
|
function Rt(s = {}) {
|
|
24
24
|
const {
|
|
25
|
-
internalWindow: e =
|
|
25
|
+
internalWindow: e = F() ? window : void 0,
|
|
26
26
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
27
27
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
28
28
|
includeScrollbar: o = !0
|
|
@@ -486,18 +486,18 @@ function _n(s, e) {
|
|
|
486
486
|
);
|
|
487
487
|
if (t.ref && be(["eager", "blur", "progressive"], l)) {
|
|
488
488
|
let T = [];
|
|
489
|
-
const
|
|
490
|
-
T = ss(
|
|
489
|
+
const M = (I) => {
|
|
490
|
+
T = ss(I), ns({
|
|
491
491
|
interactiveElements: T,
|
|
492
492
|
onBlurHandler: g,
|
|
493
493
|
mode: l
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
496
|
ue(() => {
|
|
497
|
-
const
|
|
498
|
-
ct(() =>
|
|
497
|
+
const I = qe(`useFormField of ${s}`);
|
|
498
|
+
ct(() => I.refs[t.ref], (c) => {
|
|
499
499
|
const b = c instanceof HTMLElement ? c : c == null ? void 0 : c.$el;
|
|
500
|
-
b &&
|
|
500
|
+
b && M(b);
|
|
501
501
|
}, {
|
|
502
502
|
errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
|
|
503
503
|
});
|
|
@@ -539,7 +539,7 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
|
539
539
|
payload: a.value,
|
|
540
540
|
options: i
|
|
541
541
|
})
|
|
542
|
-
), h = y(!1), g = y(!1), E = f(() => Object.values(l.value).every(({ valid: L }) => L)), T = f(() => Object.values(l.value).some(({ dirty: L }) => L)),
|
|
542
|
+
), h = y(!1), g = y(!1), E = f(() => Object.values(l.value).every(({ valid: L }) => L)), T = f(() => Object.values(l.value).some(({ dirty: L }) => L)), M = f(() => ts(l.value)), I = f(() => Gt(M.value, l.value));
|
|
543
543
|
t && X(
|
|
544
544
|
a,
|
|
545
545
|
(L) => {
|
|
@@ -573,9 +573,9 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
const b = [];
|
|
576
|
-
async function
|
|
576
|
+
async function O(L) {
|
|
577
577
|
await Ue();
|
|
578
|
-
const
|
|
578
|
+
const D = X(
|
|
579
579
|
() => a.value[L],
|
|
580
580
|
() => {
|
|
581
581
|
const j = l.value[L];
|
|
@@ -590,45 +590,45 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
|
590
590
|
},
|
|
591
591
|
{ deep: typeof u.value[L] == "object" }
|
|
592
592
|
);
|
|
593
|
-
b.push(
|
|
593
|
+
b.push(D);
|
|
594
594
|
}
|
|
595
595
|
function v() {
|
|
596
596
|
for (const L of b)
|
|
597
597
|
L();
|
|
598
598
|
for (const L of Object.keys(u.value))
|
|
599
|
-
|
|
599
|
+
O(L);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function S(L, D) {
|
|
602
602
|
return async (j) => {
|
|
603
603
|
if (j == null || j.preventDefault(), h.value)
|
|
604
604
|
return;
|
|
605
605
|
g.value = !0, h.value = !0, await c(!0);
|
|
606
|
-
const se = typeof
|
|
606
|
+
const se = typeof D == "string" ? D : i.scrollToError;
|
|
607
607
|
let G;
|
|
608
608
|
return E.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), h.value = !1, G;
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
const
|
|
611
|
+
const $ = {
|
|
612
612
|
fieldsStates: l,
|
|
613
613
|
payload: a,
|
|
614
614
|
options: i,
|
|
615
615
|
internalSchema: u,
|
|
616
|
-
errorMessages:
|
|
616
|
+
errorMessages: I,
|
|
617
617
|
isSubmitted: g
|
|
618
618
|
};
|
|
619
|
-
return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier,
|
|
619
|
+
return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier, $), Ht(i.identifier, $), v(), {
|
|
620
620
|
identifier: i.identifier,
|
|
621
621
|
isDirty: T,
|
|
622
622
|
isSubmitting: h,
|
|
623
623
|
isSubmitted: g,
|
|
624
624
|
isValid: E,
|
|
625
|
-
errors:
|
|
625
|
+
errors: M,
|
|
626
626
|
model: a,
|
|
627
627
|
fieldsStates: l,
|
|
628
628
|
validateForm: c,
|
|
629
629
|
scrollToError: Xe,
|
|
630
|
-
handleSubmit:
|
|
631
|
-
errorMessages:
|
|
630
|
+
handleSubmit: S,
|
|
631
|
+
errorMessages: I
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
class ms {
|
|
@@ -679,13 +679,13 @@ class ms {
|
|
|
679
679
|
this.callback = e, this.options = {
|
|
680
680
|
...this.defaultOptions,
|
|
681
681
|
...t
|
|
682
|
-
},
|
|
682
|
+
}, F() && this.start();
|
|
683
683
|
}
|
|
684
684
|
get element() {
|
|
685
685
|
return this.options.element ?? document.body;
|
|
686
686
|
}
|
|
687
687
|
start() {
|
|
688
|
-
if (!
|
|
688
|
+
if (!F()) {
|
|
689
689
|
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
@@ -704,7 +704,7 @@ class ms {
|
|
|
704
704
|
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
705
705
|
}
|
|
706
706
|
destroy() {
|
|
707
|
-
if (!
|
|
707
|
+
if (!F()) {
|
|
708
708
|
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
@@ -1202,7 +1202,7 @@ function Ee({
|
|
|
1202
1202
|
setLocalStorageValue: o = !0,
|
|
1203
1203
|
setSelectedTheme: i = !0
|
|
1204
1204
|
}) {
|
|
1205
|
-
|
|
1205
|
+
F() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), we.value = n, i && (K.value = n), o && (localStorage[t] = n));
|
|
1206
1206
|
}
|
|
1207
1207
|
function Te({
|
|
1208
1208
|
darkClass: s,
|
|
@@ -1212,14 +1212,14 @@ function Te({
|
|
|
1212
1212
|
setLocalStorageValue: o = !0,
|
|
1213
1213
|
setSelectedTheme: i = !0
|
|
1214
1214
|
}) {
|
|
1215
|
-
|
|
1215
|
+
F() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), we.value = n, i && (K.value = n), o && (localStorage[t] = n));
|
|
1216
1216
|
}
|
|
1217
1217
|
function wt({
|
|
1218
1218
|
setLocalStorageValue: s = !0,
|
|
1219
1219
|
...e
|
|
1220
1220
|
}) {
|
|
1221
|
-
if (
|
|
1222
|
-
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), we.value = e.storageThemeValueSystem, K.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem),
|
|
1221
|
+
if (F())
|
|
1222
|
+
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), we.value = e.storageThemeValueSystem, K.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), Ne(e);
|
|
1223
1223
|
}
|
|
1224
1224
|
function Et(s) {
|
|
1225
1225
|
if (!s.defaultTheme)
|
|
@@ -1241,8 +1241,8 @@ function Et(s) {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1244
|
+
function Ne(s) {
|
|
1245
|
+
return F() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Et(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && Qe() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && Qe() ? Ee({
|
|
1246
1246
|
...s,
|
|
1247
1247
|
setLocalStorageValue: !1,
|
|
1248
1248
|
setSelectedTheme: !1
|
|
@@ -1267,7 +1267,7 @@ function Gn(s) {
|
|
|
1267
1267
|
...s
|
|
1268
1268
|
};
|
|
1269
1269
|
function t() {
|
|
1270
|
-
|
|
1270
|
+
Ne(e);
|
|
1271
1271
|
}
|
|
1272
1272
|
return ue(() => {
|
|
1273
1273
|
localStorage[e.storageThemeKey] && (K.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
|
|
@@ -1289,7 +1289,7 @@ function Gn(s) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
1291
|
}), {
|
|
1292
|
-
autoSetTheme: () =>
|
|
1292
|
+
autoSetTheme: () => Ne(e),
|
|
1293
1293
|
toggleTheme: () => zs(e),
|
|
1294
1294
|
setSystemTheme: () => Ve({ ...e, theme: "system" }),
|
|
1295
1295
|
setDarkTheme: () => Ve({ ...e, theme: "dark" }),
|
|
@@ -1348,10 +1348,10 @@ class Is {
|
|
|
1348
1348
|
this.callback = e, this.options = {
|
|
1349
1349
|
...this.defaultOptions,
|
|
1350
1350
|
...t
|
|
1351
|
-
}, this.eventHandlerFunction = this.eventHandler.bind(this),
|
|
1351
|
+
}, this.eventHandlerFunction = this.eventHandler.bind(this), F() && this.start();
|
|
1352
1352
|
}
|
|
1353
1353
|
start() {
|
|
1354
|
-
if (!
|
|
1354
|
+
if (!F()) {
|
|
1355
1355
|
console.warn("[UserVisibility](start) you should run this method on client side");
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
@@ -1470,14 +1470,14 @@ const Ds = {
|
|
|
1470
1470
|
install: (s) => {
|
|
1471
1471
|
s.directive("closable", Ds);
|
|
1472
1472
|
}
|
|
1473
|
-
},
|
|
1473
|
+
}, Fe = {
|
|
1474
1474
|
position: "top"
|
|
1475
1475
|
};
|
|
1476
1476
|
class kt {
|
|
1477
1477
|
constructor(e = {}) {
|
|
1478
1478
|
d(this, "options");
|
|
1479
1479
|
this.options = {
|
|
1480
|
-
...
|
|
1480
|
+
...Fe,
|
|
1481
1481
|
...e
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
@@ -1518,9 +1518,9 @@ const to = {
|
|
|
1518
1518
|
return Ie.remove(s, e);
|
|
1519
1519
|
}
|
|
1520
1520
|
}, Ms = {
|
|
1521
|
-
install: (s, e =
|
|
1521
|
+
install: (s, e = Fe) => {
|
|
1522
1522
|
const t = {
|
|
1523
|
-
...
|
|
1523
|
+
...Fe,
|
|
1524
1524
|
...e
|
|
1525
1525
|
}, n = new kt(t);
|
|
1526
1526
|
s.directive("tooltip", {
|
|
@@ -1611,7 +1611,7 @@ function io(s, e) {
|
|
|
1611
1611
|
}, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
|
-
const Vs = ["onKeypress"],
|
|
1614
|
+
const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["src", "alt"], Fs = /* @__PURE__ */ ge({
|
|
1615
1615
|
__name: "MazFullscreenImg",
|
|
1616
1616
|
props: {
|
|
1617
1617
|
src: {},
|
|
@@ -1629,30 +1629,30 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1629
1629
|
},
|
|
1630
1630
|
emits: ["close", "previous", "next", "before-close"],
|
|
1631
1631
|
setup(s, { emit: e }) {
|
|
1632
|
-
const t = s, n = e, o =
|
|
1632
|
+
const t = s, n = e, o = H(() => import("./MazSpinner-C95OqwKl.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = y(!1), u = y(!1), l = y(!1), h = y(!1), g = y(!1), E = Bt({
|
|
1633
1633
|
running: !1,
|
|
1634
1634
|
ended: !1
|
|
1635
|
-
}), T = y(t.clickedElement),
|
|
1635
|
+
}), T = y(t.clickedElement), M = f(() => t.clickedElement.getBoundingClientRect()), I = y(), c = y(t.src), b = y(t.alt), O = y(), v = y(), S = y(!0), $ = f(() => ({
|
|
1636
1636
|
"--is-zoomed": g.value,
|
|
1637
|
-
"--invisible":
|
|
1637
|
+
"--invisible": S.value,
|
|
1638
1638
|
"--absolute": !g.value
|
|
1639
1639
|
}));
|
|
1640
1640
|
function L() {
|
|
1641
1641
|
var p, w;
|
|
1642
|
-
v.value && (
|
|
1642
|
+
v.value && (I.value = ((p = v.value) == null ? void 0 : p.naturalWidth) > ((w = v.value) == null ? void 0 : w.naturalHeight)), a.value = !0, u.value = !1, l.value = !0;
|
|
1643
1643
|
}
|
|
1644
1644
|
X(
|
|
1645
1645
|
l,
|
|
1646
1646
|
async (p) => {
|
|
1647
|
-
p &&
|
|
1647
|
+
p && k();
|
|
1648
1648
|
},
|
|
1649
1649
|
{ immediate: !0 }
|
|
1650
1650
|
);
|
|
1651
|
-
function
|
|
1652
|
-
n("before-close"),
|
|
1651
|
+
function D() {
|
|
1652
|
+
n("before-close"), x();
|
|
1653
1653
|
}
|
|
1654
1654
|
function j(p) {
|
|
1655
|
-
p.key === "Escape" && (p.preventDefault(),
|
|
1655
|
+
p.key === "Escape" && (p.preventDefault(), D()), (p.key === "ArrowLeft" || p.key === "ArrowRight") && (p.preventDefault(), me(p.key === "ArrowRight" ? "next" : "previous"));
|
|
1656
1656
|
}
|
|
1657
1657
|
function se() {
|
|
1658
1658
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
@@ -1668,18 +1668,18 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1668
1668
|
}
|
|
1669
1669
|
async function de(p, w) {
|
|
1670
1670
|
p.classList.remove(t.openInstanceClass), w.classList.add(t.openInstanceClass);
|
|
1671
|
-
const z = w.getAttribute("data-src"),
|
|
1672
|
-
b.value =
|
|
1671
|
+
const z = w.getAttribute("data-src"), P = w.getAttribute("data-alt");
|
|
1672
|
+
b.value = P, c.value = z ?? c.value;
|
|
1673
1673
|
}
|
|
1674
1674
|
function me(p) {
|
|
1675
|
-
|
|
1675
|
+
S.value = !0;
|
|
1676
1676
|
const w = document.querySelector(
|
|
1677
1677
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
1678
1678
|
);
|
|
1679
1679
|
if (w) {
|
|
1680
|
-
const z = ce(),
|
|
1680
|
+
const z = ce(), P = z.indexOf(w), W = p === "next" ? P + 1 : P - 1, R = z[De(z, W)];
|
|
1681
1681
|
T.value = R, R && de(w, R), n(p), a.value = !1, u.value = !0, ct(() => a.value === !0, () => {
|
|
1682
|
-
|
|
1682
|
+
S.value = !1, g.value ? fe() : m();
|
|
1683
1683
|
}, {
|
|
1684
1684
|
expectedValue: !0,
|
|
1685
1685
|
interval: 100,
|
|
@@ -1693,14 +1693,14 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1693
1693
|
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1694
1694
|
return;
|
|
1695
1695
|
}
|
|
1696
|
-
p.style.removeProperty("max-width"), p.style.removeProperty("max-height"), p == null || p.style.removeProperty("top"), p == null || p.style.removeProperty("left"),
|
|
1696
|
+
p.style.removeProperty("max-width"), p.style.removeProperty("max-height"), p == null || p.style.removeProperty("top"), p == null || p.style.removeProperty("left"), I.value ? (p.style.height = "100vh", p.style.removeProperty("width")) : (p.style.width = "100vw", p.style.removeProperty("height"));
|
|
1697
1697
|
}
|
|
1698
1698
|
async function Pe() {
|
|
1699
1699
|
g.value ? (g.value = !g.value, m()) : (g.value = !g.value, fe());
|
|
1700
1700
|
}
|
|
1701
1701
|
function ne(p) {
|
|
1702
1702
|
var z;
|
|
1703
|
-
E.running = !0,
|
|
1703
|
+
E.running = !0, S.value = !1;
|
|
1704
1704
|
const w = (z = v.value) == null ? void 0 : z.animate(p, {
|
|
1705
1705
|
duration: t.animation.duration,
|
|
1706
1706
|
easing: t.animation.easing
|
|
@@ -1712,10 +1712,10 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1712
1712
|
return w;
|
|
1713
1713
|
}
|
|
1714
1714
|
function Le(p = t.offset ?? 0) {
|
|
1715
|
-
const w = T.value.clientWidth || 1, z = T.value.clientHeight || 1,
|
|
1716
|
-
(
|
|
1715
|
+
const w = T.value.clientWidth || 1, z = T.value.clientHeight || 1, P = window.innerWidth, W = window.innerHeight, R = Math.min(
|
|
1716
|
+
(P - 2 * p) / w,
|
|
1717
1717
|
(W - 2 * p) / z
|
|
1718
|
-
), Me = (
|
|
1718
|
+
), Me = (P - w * R) / 2, $e = (W - z * R) / 2;
|
|
1719
1719
|
return {
|
|
1720
1720
|
centerX: Me,
|
|
1721
1721
|
centerY: $e,
|
|
@@ -1725,7 +1725,7 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1725
1725
|
};
|
|
1726
1726
|
}
|
|
1727
1727
|
function ze({ trigger: p }) {
|
|
1728
|
-
const { width: w, height: z, scale:
|
|
1728
|
+
const { width: w, height: z, scale: P, centerX: W, centerY: R } = Le(), { top: Me, left: $e, width: Ot, height: Dt } = M.value, Ke = [
|
|
1729
1729
|
{
|
|
1730
1730
|
top: `${Me}px`,
|
|
1731
1731
|
left: `${$e}px`,
|
|
@@ -1736,8 +1736,8 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1736
1736
|
{
|
|
1737
1737
|
top: `${R}px`,
|
|
1738
1738
|
left: `${W}px`,
|
|
1739
|
-
width: `${w *
|
|
1740
|
-
height: `${z *
|
|
1739
|
+
width: `${w * P}px`,
|
|
1740
|
+
height: `${z * P}px`,
|
|
1741
1741
|
opacity: 1
|
|
1742
1742
|
}
|
|
1743
1743
|
];
|
|
@@ -1746,7 +1746,7 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
1748
|
function m() {
|
|
1749
|
-
const { height: p, width: w, scale: z } = Le(),
|
|
1749
|
+
const { height: p, width: w, scale: z } = Le(), P = I.value ? {
|
|
1750
1750
|
width: `${w * z}px`,
|
|
1751
1751
|
maxHeight: `${p * z}px`
|
|
1752
1752
|
} : {
|
|
@@ -1757,9 +1757,9 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1757
1757
|
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1758
1758
|
return;
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1760
|
+
I.value ? (v.value.style.removeProperty("height"), v.value.style.removeProperty("maxHeight")) : (v.value.style.removeProperty("width"), v.value.style.removeProperty("maxWidth")), Object.assign(v.value.style, P);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function k() {
|
|
1763
1763
|
const { frames: p } = ze({
|
|
1764
1764
|
trigger: "open"
|
|
1765
1765
|
}), w = ne(p);
|
|
@@ -1771,13 +1771,13 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1771
1771
|
m(), E.running = !1, E.ended = !0;
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function x() {
|
|
1775
1775
|
const { frames: p } = ze({
|
|
1776
1776
|
trigger: "close"
|
|
1777
1777
|
}), w = ne(p);
|
|
1778
1778
|
function z() {
|
|
1779
|
-
var
|
|
1780
|
-
n("close"), (
|
|
1779
|
+
var P, W;
|
|
1780
|
+
n("close"), (P = O.value) == null || P.remove(), (W = t.destroy) == null || W.call(t), E.running = !1, E.ended = !0;
|
|
1781
1781
|
}
|
|
1782
1782
|
if (!w) {
|
|
1783
1783
|
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), z();
|
|
@@ -1794,12 +1794,12 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1794
1794
|
document.removeEventListener("keydown", j), window.removeEventListener("resize", he), G();
|
|
1795
1795
|
}), (p, w) => (C(), _("div", {
|
|
1796
1796
|
ref_key: "FullscreenImgElement",
|
|
1797
|
-
ref:
|
|
1797
|
+
ref: O,
|
|
1798
1798
|
role: "button",
|
|
1799
1799
|
class: "m-fullscreen-img",
|
|
1800
1800
|
tabindex: "0",
|
|
1801
|
-
onClick: Y(
|
|
1802
|
-
onKeypress:
|
|
1801
|
+
onClick: Y(D, ["stop"]),
|
|
1802
|
+
onKeypress: Nt(Y(D, ["prevent"]), ["esc"])
|
|
1803
1803
|
}, [
|
|
1804
1804
|
l.value && h.value ? (C(), _("button", {
|
|
1805
1805
|
key: 0,
|
|
@@ -1807,37 +1807,36 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1807
1807
|
class: "m-fullscreen-btn --next",
|
|
1808
1808
|
onClick: w[0] || (w[0] = Y((z) => me("next"), ["stop"]))
|
|
1809
1809
|
}, [
|
|
1810
|
-
J(
|
|
1811
|
-
])) :
|
|
1810
|
+
J(A(r), { class: "maz-rotate-180" })
|
|
1811
|
+
])) : V("v-if", !0),
|
|
1812
1812
|
l.value && h.value ? (C(), _("button", {
|
|
1813
1813
|
key: 1,
|
|
1814
1814
|
type: "button",
|
|
1815
1815
|
class: "m-fullscreen-btn --previous",
|
|
1816
1816
|
onClick: w[1] || (w[1] = Y((z) => me("previous"), ["stop"]))
|
|
1817
1817
|
}, [
|
|
1818
|
-
J(
|
|
1819
|
-
])) :
|
|
1820
|
-
|
|
1818
|
+
J(A(r))
|
|
1819
|
+
])) : V("v-if", !0),
|
|
1820
|
+
B("button", {
|
|
1821
1821
|
type: "button",
|
|
1822
1822
|
class: "m-fullscreen-btn --close",
|
|
1823
|
-
onClick:
|
|
1823
|
+
onClick: D
|
|
1824
1824
|
}, [
|
|
1825
|
-
J(
|
|
1825
|
+
J(A(i))
|
|
1826
1826
|
]),
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
F("img", {
|
|
1827
|
+
B("div", Bs, [
|
|
1828
|
+
B("img", {
|
|
1830
1829
|
ref_key: "ImgElement",
|
|
1831
1830
|
ref: v,
|
|
1832
1831
|
src: c.value,
|
|
1833
1832
|
alt: b.value ?? void 0,
|
|
1834
1833
|
tabindex: "0",
|
|
1835
|
-
class: le([
|
|
1834
|
+
class: le([$.value]),
|
|
1836
1835
|
onLoad: L,
|
|
1837
1836
|
onClick: w[2] || (w[2] = Y((z) => p.zoom && Pe(), ["stop"]))
|
|
1838
|
-
}, null, 42,
|
|
1837
|
+
}, null, 42, Ns),
|
|
1839
1838
|
at(J(
|
|
1840
|
-
|
|
1839
|
+
A(o),
|
|
1841
1840
|
{ class: "m-fullscreen-img-loader" },
|
|
1842
1841
|
null,
|
|
1843
1842
|
512
|
|
@@ -1853,7 +1852,7 @@ const Vs = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
|
|
|
1853
1852
|
for (const [n, o] of e)
|
|
1854
1853
|
t[n] = o;
|
|
1855
1854
|
return t;
|
|
1856
|
-
}, js = /* @__PURE__ */ Re(
|
|
1855
|
+
}, js = /* @__PURE__ */ Re(Fs, [["__scopeId", "data-v-b6e5fc28"]]), Je = "m-fullscreen-is-open";
|
|
1857
1856
|
class Us {
|
|
1858
1857
|
constructor() {
|
|
1859
1858
|
d(this, "options");
|
|
@@ -2510,7 +2509,7 @@ const ln = {
|
|
|
2510
2509
|
install(s) {
|
|
2511
2510
|
s.provide("filters", ln);
|
|
2512
2511
|
}
|
|
2513
|
-
},
|
|
2512
|
+
}, Be = {
|
|
2514
2513
|
delay: 100,
|
|
2515
2514
|
observer: {
|
|
2516
2515
|
root: void 0,
|
|
@@ -2527,13 +2526,13 @@ class un {
|
|
|
2527
2526
|
constructor(e) {
|
|
2528
2527
|
d(this, "options");
|
|
2529
2528
|
this.options = {
|
|
2530
|
-
delay: (e == null ? void 0 : e.delay) ??
|
|
2529
|
+
delay: (e == null ? void 0 : e.delay) ?? Be.delay,
|
|
2531
2530
|
observer: {
|
|
2532
|
-
...
|
|
2531
|
+
...Be.observer,
|
|
2533
2532
|
...e == null ? void 0 : e.observer
|
|
2534
2533
|
},
|
|
2535
2534
|
animation: {
|
|
2536
|
-
...
|
|
2535
|
+
...Be.animation,
|
|
2537
2536
|
...e == null ? void 0 : e.animation
|
|
2538
2537
|
}
|
|
2539
2538
|
};
|
|
@@ -2582,7 +2581,7 @@ class un {
|
|
|
2582
2581
|
}
|
|
2583
2582
|
}
|
|
2584
2583
|
runAnimations() {
|
|
2585
|
-
if (
|
|
2584
|
+
if (F())
|
|
2586
2585
|
return this.handleObserver();
|
|
2587
2586
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
2588
2587
|
}
|
|
@@ -2590,7 +2589,7 @@ class un {
|
|
|
2590
2589
|
let ve;
|
|
2591
2590
|
const uo = {
|
|
2592
2591
|
install: (s, e) => {
|
|
2593
|
-
ve = new un(e), s.provide("aos", ve),
|
|
2592
|
+
ve = new un(e), s.provide("aos", ve), F() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
2594
2593
|
ve.runAnimations();
|
|
2595
2594
|
}) : ve.runAnimations());
|
|
2596
2595
|
}
|
|
@@ -2632,7 +2631,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2632
2631
|
o("open");
|
|
2633
2632
|
}
|
|
2634
2633
|
function g() {
|
|
2635
|
-
o("update:model-value", !1), o("close"),
|
|
2634
|
+
o("update:model-value", !1), o("close"), I();
|
|
2636
2635
|
}
|
|
2637
2636
|
function E() {
|
|
2638
2637
|
n.persistent || u();
|
|
@@ -2640,18 +2639,18 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2640
2639
|
function T(c) {
|
|
2641
2640
|
!n.noCloseOnEscKey && c.key === "Escape" && !n.persistent && u();
|
|
2642
2641
|
}
|
|
2643
|
-
function
|
|
2642
|
+
function M() {
|
|
2644
2643
|
i(), document.addEventListener("keyup", T, !1);
|
|
2645
2644
|
}
|
|
2646
|
-
function
|
|
2645
|
+
function I() {
|
|
2647
2646
|
document.removeEventListener("keyup", T), r();
|
|
2648
2647
|
}
|
|
2649
2648
|
return ue(() => {
|
|
2650
|
-
n.modelValue ?
|
|
2649
|
+
n.modelValue ? M() : I();
|
|
2651
2650
|
}), X(
|
|
2652
2651
|
() => n.modelValue,
|
|
2653
2652
|
(c) => {
|
|
2654
|
-
a.value = c, c ?
|
|
2653
|
+
a.value = c, c ? M() : I();
|
|
2655
2654
|
}
|
|
2656
2655
|
), e({
|
|
2657
2656
|
onBackdropAnimationEnter: h,
|
|
@@ -2661,7 +2660,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2661
2660
|
present: a,
|
|
2662
2661
|
toggleModal: l,
|
|
2663
2662
|
onKeyPress: T
|
|
2664
|
-
}), (c, b) => (C(),
|
|
2663
|
+
}), (c, b) => (C(), N(Ft, { to: c.teleportSelector }, [
|
|
2665
2664
|
J(ut, {
|
|
2666
2665
|
appear: "",
|
|
2667
2666
|
name: c.transitionName,
|
|
@@ -2678,7 +2677,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2678
2677
|
role: "dialog"
|
|
2679
2678
|
},
|
|
2680
2679
|
[
|
|
2681
|
-
|
|
2680
|
+
B(
|
|
2682
2681
|
"button",
|
|
2683
2682
|
{
|
|
2684
2683
|
class: le(["m-backdrop-overlay", { "--disabled": c.persistent }]),
|
|
@@ -2689,7 +2688,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2689
2688
|
2
|
|
2690
2689
|
/* CLASS */
|
|
2691
2690
|
),
|
|
2692
|
-
|
|
2691
|
+
B(
|
|
2693
2692
|
"div",
|
|
2694
2693
|
ee({
|
|
2695
2694
|
class: ["m-backdrop-content", c.backdropContentClass]
|
|
@@ -2706,7 +2705,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2706
2705
|
],
|
|
2707
2706
|
2
|
|
2708
2707
|
/* CLASS */
|
|
2709
|
-
)) :
|
|
2708
|
+
)) : V("v-if", !0)
|
|
2710
2709
|
]),
|
|
2711
2710
|
_: 3
|
|
2712
2711
|
/* FORWARDED */
|
|
@@ -2743,7 +2742,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2743
2742
|
},
|
|
2744
2743
|
emits: ["open", "close", "update:model-value"],
|
|
2745
2744
|
setup(s, { expose: e }) {
|
|
2746
|
-
const t = s, n =
|
|
2745
|
+
const t = s, n = H(() => import("./MazBtn-QVmZ90t5.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = y();
|
|
2747
2746
|
e({
|
|
2748
2747
|
close: () => {
|
|
2749
2748
|
var l, h;
|
|
@@ -2758,7 +2757,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2758
2757
|
class: i.class,
|
|
2759
2758
|
style: i.style
|
|
2760
2759
|
}));
|
|
2761
|
-
return (l, h) => (C(),
|
|
2760
|
+
return (l, h) => (C(), N(cn, ee({ ...a.value, ...t }, {
|
|
2762
2761
|
ref_key: "backdrop",
|
|
2763
2762
|
ref: r,
|
|
2764
2763
|
persistent: l.persistent,
|
|
@@ -2771,7 +2770,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2771
2770
|
"onUpdate:modelValue": h[2] || (h[2] = (g) => l.$emit("update:model-value", g))
|
|
2772
2771
|
}), {
|
|
2773
2772
|
default: U(({ close: g }) => [
|
|
2774
|
-
|
|
2773
|
+
B(
|
|
2775
2774
|
"div",
|
|
2776
2775
|
ee({
|
|
2777
2776
|
class: ["m-dialog", { "--scrollable": l.scrollable }],
|
|
@@ -2780,21 +2779,14 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2780
2779
|
style: [{ width: l.width, maxWidth: l.maxWidth, maxHeight: l.maxHeight }]
|
|
2781
2780
|
}, u.value),
|
|
2782
2781
|
[
|
|
2783
|
-
I(`
|
|
2784
|
-
@slot Header slot
|
|
2785
|
-
@binding {Function} close close function
|
|
2786
|
-
`),
|
|
2787
2782
|
q(l.$slots, "header", { close: g }, () => [
|
|
2788
|
-
|
|
2783
|
+
B(
|
|
2789
2784
|
"div",
|
|
2790
2785
|
{
|
|
2791
2786
|
class: le(["m-dialog-header", { "--has-title": l.$slots.title || l.title }])
|
|
2792
2787
|
},
|
|
2793
2788
|
[
|
|
2794
2789
|
l.$slots.title || l.title ? (C(), _("h2", dn, [
|
|
2795
|
-
I(`
|
|
2796
|
-
@slot Title slot in the header
|
|
2797
|
-
`),
|
|
2798
2790
|
q(l.$slots, "title", {}, () => [
|
|
2799
2791
|
Q(
|
|
2800
2792
|
Z(l.title),
|
|
@@ -2802,34 +2794,26 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2802
2794
|
/* TEXT */
|
|
2803
2795
|
)
|
|
2804
2796
|
], !0)
|
|
2805
|
-
])) :
|
|
2806
|
-
!l.noClose && !l.persistent ? (C(),
|
|
2797
|
+
])) : V("v-if", !0),
|
|
2798
|
+
!l.noClose && !l.persistent ? (C(), N(A(n), {
|
|
2807
2799
|
key: 1,
|
|
2808
2800
|
class: "m-dialog-closebtn",
|
|
2809
2801
|
color: "transparent",
|
|
2810
2802
|
size: "sm",
|
|
2811
|
-
icon:
|
|
2803
|
+
icon: A(o),
|
|
2812
2804
|
onClick: g
|
|
2813
|
-
}, null, 8, ["icon", "onClick"])) :
|
|
2805
|
+
}, null, 8, ["icon", "onClick"])) : V("v-if", !0)
|
|
2814
2806
|
],
|
|
2815
2807
|
2
|
|
2816
2808
|
/* CLASS */
|
|
2817
2809
|
)
|
|
2818
2810
|
], !0),
|
|
2819
|
-
|
|
2820
|
-
I(`
|
|
2821
|
-
@slot Default content
|
|
2822
|
-
@binding {Function} close close function
|
|
2823
|
-
`),
|
|
2811
|
+
B("div", mn, [
|
|
2824
2812
|
q(l.$slots, "default", { close: g }, void 0, !0)
|
|
2825
2813
|
]),
|
|
2826
2814
|
l.$slots.footer ? (C(), _("div", fn, [
|
|
2827
|
-
I(`
|
|
2828
|
-
@slot Footer slot
|
|
2829
|
-
@binding {Function} close close function
|
|
2830
|
-
`),
|
|
2831
2815
|
q(l.$slots, "footer", { close: g }, void 0, !0)
|
|
2832
|
-
])) :
|
|
2816
|
+
])) : V("v-if", !0)
|
|
2833
2817
|
],
|
|
2834
2818
|
16
|
|
2835
2819
|
/* FULL_PROPS */
|
|
@@ -2915,7 +2899,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2915
2899
|
},
|
|
2916
2900
|
emits: ["open", "close"],
|
|
2917
2901
|
setup(s, { expose: e }) {
|
|
2918
|
-
const t = s, n =
|
|
2902
|
+
const t = s, n = H(() => import("./MazBtn-QVmZ90t5.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
|
|
2919
2903
|
var c;
|
|
2920
2904
|
return t.buttons ?? ((c = t.data) == null ? void 0 : c.buttons) ?? a.value.buttons;
|
|
2921
2905
|
}), l = f(() => ({
|
|
@@ -2923,30 +2907,30 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2923
2907
|
...a.value,
|
|
2924
2908
|
...t.data
|
|
2925
2909
|
})), h = f(() => {
|
|
2926
|
-
var
|
|
2927
|
-
if (!(((
|
|
2910
|
+
var O, v, S, $;
|
|
2911
|
+
if (!(((O = a.value) == null ? void 0 : O.cancelButton) ?? ((v = t.data) == null ? void 0 : v.cancelButton) ?? oe.cancelButton))
|
|
2928
2912
|
return;
|
|
2929
2913
|
const b = {
|
|
2930
2914
|
...oe.cancelButton,
|
|
2931
|
-
...(
|
|
2932
|
-
...(
|
|
2915
|
+
...(S = a.value) == null ? void 0 : S.cancelButton,
|
|
2916
|
+
...($ = t.data) == null ? void 0 : $.cancelButton
|
|
2933
2917
|
};
|
|
2934
2918
|
return {
|
|
2935
2919
|
...b,
|
|
2936
|
-
text: l.value.cancelText || b.text
|
|
2920
|
+
text: t.cancelText || l.value.cancelText || b.text
|
|
2937
2921
|
};
|
|
2938
2922
|
}), g = f(() => {
|
|
2939
|
-
var
|
|
2940
|
-
if (!(((
|
|
2923
|
+
var O, v, S, $;
|
|
2924
|
+
if (!(((O = a.value) == null ? void 0 : O.confirmButton) ?? ((v = t.data) == null ? void 0 : v.confirmButton) ?? oe.confirmButton))
|
|
2941
2925
|
return;
|
|
2942
2926
|
const b = {
|
|
2943
2927
|
...oe.confirmButton,
|
|
2944
|
-
...(
|
|
2945
|
-
...(
|
|
2928
|
+
...(S = a.value) == null ? void 0 : S.confirmButton,
|
|
2929
|
+
...($ = t.data) == null ? void 0 : $.confirmButton
|
|
2946
2930
|
};
|
|
2947
2931
|
return {
|
|
2948
2932
|
...b,
|
|
2949
|
-
text: l.value.confirmText || b.text
|
|
2933
|
+
text: t.confirmText || l.value.confirmText || b.text
|
|
2950
2934
|
};
|
|
2951
2935
|
}), E = f(
|
|
2952
2936
|
() => o.value.find(({ id: c }) => c === t.identifier)
|
|
@@ -2957,27 +2941,24 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2957
2941
|
return (b = (c = T.value) == null ? void 0 : c.close) == null ? void 0 : b.call(c);
|
|
2958
2942
|
}
|
|
2959
2943
|
});
|
|
2960
|
-
function
|
|
2944
|
+
function M(c) {
|
|
2961
2945
|
return "type" in c && (c.type === "resolve" || c.type === "reject");
|
|
2962
2946
|
}
|
|
2963
|
-
function
|
|
2964
|
-
return
|
|
2947
|
+
function I(c, b) {
|
|
2948
|
+
return M(b) ? b.type === "resolve" ? r(c, b.response) : i(c, b.response) : r(c, void 0, b.action);
|
|
2965
2949
|
}
|
|
2966
2950
|
return (c, b) => {
|
|
2967
|
-
var
|
|
2968
|
-
return C(),
|
|
2951
|
+
var O;
|
|
2952
|
+
return C(), N(vn, ee({
|
|
2969
2953
|
ref_key: "dialog",
|
|
2970
2954
|
ref: T
|
|
2971
2955
|
}, { ...c.$attrs, ...t }, {
|
|
2972
|
-
"model-value": ((
|
|
2956
|
+
"model-value": ((O = E.value) == null ? void 0 : O.isActive) ?? c.modelValue ?? !1,
|
|
2973
2957
|
onClose: b[2] || (b[2] = (v) => c.$emit("close", v)),
|
|
2974
2958
|
onOpen: b[3] || (b[3] = (v) => c.$emit("open", v)),
|
|
2975
|
-
"onUpdate:modelValue": b[4] || (b[4] = (v) =>
|
|
2959
|
+
"onUpdate:modelValue": b[4] || (b[4] = (v) => A(i)(E.value))
|
|
2976
2960
|
}), {
|
|
2977
2961
|
title: U(() => [
|
|
2978
|
-
I(`
|
|
2979
|
-
@slot title slot - Place your title
|
|
2980
|
-
`),
|
|
2981
2962
|
q(c.$slots, "title", {}, () => {
|
|
2982
2963
|
var v;
|
|
2983
2964
|
return [
|
|
@@ -2990,14 +2971,9 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2990
2971
|
})
|
|
2991
2972
|
]),
|
|
2992
2973
|
default: U(() => [
|
|
2993
|
-
I(`
|
|
2994
|
-
@slot Default slot - Place your content
|
|
2995
|
-
@binding {Function} resolve resolve function
|
|
2996
|
-
@binding {Function} reject reject function
|
|
2997
|
-
`),
|
|
2998
2974
|
q(c.$slots, "default", {
|
|
2999
|
-
resolve: (v) =>
|
|
3000
|
-
reject: (v) =>
|
|
2975
|
+
resolve: (v) => A(r)(E.value, v),
|
|
2976
|
+
reject: (v) => A(i)(E.value, v)
|
|
3001
2977
|
}, () => {
|
|
3002
2978
|
var v;
|
|
3003
2979
|
return [
|
|
@@ -3010,27 +2986,22 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3010
2986
|
})
|
|
3011
2987
|
]),
|
|
3012
2988
|
footer: U(() => [
|
|
3013
|
-
I(`
|
|
3014
|
-
@slot Footer slot
|
|
3015
|
-
@binding {Function} resolve resolve function
|
|
3016
|
-
@binding {Function} reject reject function
|
|
3017
|
-
`),
|
|
3018
2989
|
q(c.$slots, "footer-button", {
|
|
3019
|
-
resolve: (v) =>
|
|
3020
|
-
reject: (v) =>
|
|
2990
|
+
resolve: (v) => A(r)(E.value, v),
|
|
2991
|
+
reject: (v) => A(i)(E.value, v)
|
|
3021
2992
|
}, () => [
|
|
3022
|
-
|
|
2993
|
+
B("div", yn, [
|
|
3023
2994
|
u.value ? (C(!0), _(
|
|
3024
2995
|
Ye,
|
|
3025
2996
|
{ key: 0 },
|
|
3026
|
-
Ut(u.value, (v,
|
|
3027
|
-
key:
|
|
2997
|
+
Ut(u.value, (v, S) => (C(), N(A(n), ee({
|
|
2998
|
+
key: S,
|
|
3028
2999
|
ref_for: !0
|
|
3029
3000
|
}, {
|
|
3030
3001
|
...v,
|
|
3031
3002
|
type: "button"
|
|
3032
3003
|
}, {
|
|
3033
|
-
onClick: (
|
|
3004
|
+
onClick: ($) => I(E.value, v)
|
|
3034
3005
|
}), {
|
|
3035
3006
|
default: U(() => [
|
|
3036
3007
|
Q(
|
|
@@ -3048,16 +3019,13 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3048
3019
|
Ye,
|
|
3049
3020
|
{ key: 1 },
|
|
3050
3021
|
[
|
|
3051
|
-
h.value ? (C(),
|
|
3052
|
-
|
|
3022
|
+
h.value ? (C(), N(
|
|
3023
|
+
A(n),
|
|
3053
3024
|
ee({ key: 0 }, h.value, {
|
|
3054
|
-
onClick: b[0] || (b[0] = (v) =>
|
|
3025
|
+
onClick: b[0] || (b[0] = (v) => A(i)(E.value))
|
|
3055
3026
|
}),
|
|
3056
3027
|
{
|
|
3057
3028
|
default: U(() => [
|
|
3058
|
-
I(`
|
|
3059
|
-
@slot cancel-text slot - Place your cancel text
|
|
3060
|
-
`),
|
|
3061
3029
|
q(c.$slots, "cancel-text", {}, () => [
|
|
3062
3030
|
Q(
|
|
3063
3031
|
Z(h.value.text),
|
|
@@ -3071,17 +3039,14 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3071
3039
|
},
|
|
3072
3040
|
16
|
|
3073
3041
|
/* FULL_PROPS */
|
|
3074
|
-
)) :
|
|
3075
|
-
g.value ? (C(),
|
|
3076
|
-
|
|
3042
|
+
)) : V("v-if", !0),
|
|
3043
|
+
g.value ? (C(), N(
|
|
3044
|
+
A(n),
|
|
3077
3045
|
ee({ key: 1 }, g.value, {
|
|
3078
|
-
onClick: b[1] || (b[1] = (v) =>
|
|
3046
|
+
onClick: b[1] || (b[1] = (v) => A(r)(E.value))
|
|
3079
3047
|
}),
|
|
3080
3048
|
{
|
|
3081
3049
|
default: U(() => [
|
|
3082
|
-
I(`
|
|
3083
|
-
@slot confirm-text slot - Place your confirm text
|
|
3084
|
-
`),
|
|
3085
3050
|
q(c.$slots, "confirm-text", {}, () => [
|
|
3086
3051
|
Q(
|
|
3087
3052
|
Z(g.value.text),
|
|
@@ -3095,7 +3060,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3095
3060
|
},
|
|
3096
3061
|
16
|
|
3097
3062
|
/* FULL_PROPS */
|
|
3098
|
-
)) :
|
|
3063
|
+
)) : V("v-if", !0)
|
|
3099
3064
|
],
|
|
3100
3065
|
64
|
|
3101
3066
|
/* STABLE_FRAGMENT */
|
|
@@ -3163,15 +3128,15 @@ const mo = {
|
|
|
3163
3128
|
},
|
|
3164
3129
|
emits: ["close", "click", "open"],
|
|
3165
3130
|
setup(s, { expose: e, emit: t }) {
|
|
3166
|
-
const n = s, o = t, i =
|
|
3131
|
+
const n = s, o = t, i = H(() => import("./MazBtn-QVmZ90t5.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
|
|
3167
3132
|
() => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
|
|
3168
|
-
), u =
|
|
3133
|
+
), u = H(
|
|
3169
3134
|
() => import("./exclamation-triangle-Z6d0ygp8.mjs")
|
|
3170
|
-
), l =
|
|
3135
|
+
), l = H(
|
|
3171
3136
|
() => import("./exclamation-circle-CUk0ZajS.mjs")
|
|
3172
|
-
), h =
|
|
3137
|
+
), h = H(
|
|
3173
3138
|
() => import("./information-circle-C7e5b_nL.mjs")
|
|
3174
|
-
), g =
|
|
3139
|
+
), g = H(() => import("./check-circle-Bf7AGSQ-.mjs")), E = H(() => import("./link-Br1lfjTR.mjs")), T = y(), M = f(() => {
|
|
3175
3140
|
if (n.icon)
|
|
3176
3141
|
switch (n.type) {
|
|
3177
3142
|
case "danger":
|
|
@@ -3185,7 +3150,7 @@ const mo = {
|
|
|
3185
3150
|
default:
|
|
3186
3151
|
return;
|
|
3187
3152
|
}
|
|
3188
|
-
}),
|
|
3153
|
+
}), I = f(() => n.position.includes("top") ? "top" : "bottom"), c = f(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), b = f(() => c.value !== "center" ? c.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), O = y(!1), v = y(!1), S = y(), $ = `m-toast-container --${I.value} --${c.value}`, L = `.${$.replaceAll(" ", ".")}`, D = Cs({
|
|
3189
3154
|
callback: ne,
|
|
3190
3155
|
timeout: typeof n.timeout == "number" ? n.timeout : 0,
|
|
3191
3156
|
callbackOffsetTime: 200
|
|
@@ -3193,8 +3158,8 @@ const mo = {
|
|
|
3193
3158
|
function j() {
|
|
3194
3159
|
const m = document.querySelector(L);
|
|
3195
3160
|
if (!m && !m) {
|
|
3196
|
-
const
|
|
3197
|
-
|
|
3161
|
+
const k = document.body, x = document.createElement("div");
|
|
3162
|
+
x.className = $, k.append(x);
|
|
3198
3163
|
}
|
|
3199
3164
|
}
|
|
3200
3165
|
function se() {
|
|
@@ -3203,11 +3168,11 @@ const mo = {
|
|
|
3203
3168
|
}
|
|
3204
3169
|
function G() {
|
|
3205
3170
|
if (se()) {
|
|
3206
|
-
|
|
3171
|
+
S.value = setTimeout(G, 250);
|
|
3207
3172
|
return;
|
|
3208
3173
|
}
|
|
3209
3174
|
const m = document.querySelector(L);
|
|
3210
|
-
T.value && m && m.prepend(T.value), v.value = !0, typeof n.timeout == "number" && n.timeout > 0 &&
|
|
3175
|
+
T.value && m && m.prepend(T.value), v.value = !0, typeof n.timeout == "number" && n.timeout > 0 && D.start();
|
|
3211
3176
|
}
|
|
3212
3177
|
const ce = y("100%");
|
|
3213
3178
|
function De() {
|
|
@@ -3225,26 +3190,26 @@ const mo = {
|
|
|
3225
3190
|
}
|
|
3226
3191
|
}
|
|
3227
3192
|
X(
|
|
3228
|
-
|
|
3193
|
+
D.remainingTime,
|
|
3229
3194
|
(m) => {
|
|
3230
3195
|
if (typeof n.timeout == "number") {
|
|
3231
|
-
const
|
|
3232
|
-
ce.value = `${
|
|
3196
|
+
const k = 100 * m / n.timeout;
|
|
3197
|
+
ce.value = `${k}%`;
|
|
3233
3198
|
}
|
|
3234
3199
|
}
|
|
3235
3200
|
);
|
|
3236
3201
|
function de(m) {
|
|
3237
3202
|
o("click", m), n.persistent || ne();
|
|
3238
3203
|
}
|
|
3239
|
-
async function me(m,
|
|
3240
|
-
var
|
|
3241
|
-
|
|
3204
|
+
async function me(m, k) {
|
|
3205
|
+
var x;
|
|
3206
|
+
O.value = !0, await m(), O.value = !1, (x = n.action) != null && x.closeToast && de(k);
|
|
3242
3207
|
}
|
|
3243
3208
|
function fe(m) {
|
|
3244
|
-
n.noPauseOnHover || (m ?
|
|
3209
|
+
n.noPauseOnHover || (m ? D.pause() : D.resume());
|
|
3245
3210
|
}
|
|
3246
3211
|
function Pe() {
|
|
3247
|
-
|
|
3212
|
+
D.stop(), S.value && clearTimeout(S.value);
|
|
3248
3213
|
}
|
|
3249
3214
|
function ne() {
|
|
3250
3215
|
Pe(), v.value = !1;
|
|
@@ -3254,46 +3219,46 @@ const mo = {
|
|
|
3254
3219
|
o("open");
|
|
3255
3220
|
}
|
|
3256
3221
|
function ze() {
|
|
3257
|
-
var
|
|
3258
|
-
o("close"), (
|
|
3222
|
+
var k;
|
|
3223
|
+
o("close"), (k = T.value) == null || k.remove();
|
|
3259
3224
|
const m = document.querySelector(L);
|
|
3260
3225
|
m && !(m != null && m.hasChildNodes()) && m.remove();
|
|
3261
3226
|
}
|
|
3262
3227
|
return ue(() => {
|
|
3263
3228
|
j(), G();
|
|
3264
|
-
}), (m,
|
|
3229
|
+
}), (m, k) => (C(), N(ut, {
|
|
3265
3230
|
name: b.value,
|
|
3266
3231
|
onAfterLeave: ze,
|
|
3267
3232
|
onAfterEnter: Le,
|
|
3268
3233
|
persisted: ""
|
|
3269
3234
|
}, {
|
|
3270
3235
|
default: U(() => [
|
|
3271
|
-
at(
|
|
3236
|
+
at(B(
|
|
3272
3237
|
"button",
|
|
3273
3238
|
{
|
|
3274
3239
|
ref_key: "Toaster",
|
|
3275
3240
|
ref: T,
|
|
3276
3241
|
class: le(["m-toast", [
|
|
3277
3242
|
`--${m.type}`,
|
|
3278
|
-
`--${
|
|
3243
|
+
`--${I.value}`,
|
|
3279
3244
|
`--${c.value}`,
|
|
3280
3245
|
{ "maz-pb-1": typeof m.timeout == "number" && m.timeout > 0, "--persistent": m.persistent }
|
|
3281
3246
|
]]),
|
|
3282
3247
|
role: "alert",
|
|
3283
|
-
onMouseover:
|
|
3284
|
-
onMouseleave:
|
|
3285
|
-
onClick:
|
|
3248
|
+
onMouseover: k[2] || (k[2] = (x) => fe(!0)),
|
|
3249
|
+
onMouseleave: k[3] || (k[3] = (x) => fe(!1)),
|
|
3250
|
+
onClick: k[4] || (k[4] = Y((x) => {
|
|
3286
3251
|
var he;
|
|
3287
|
-
return m.link && !((he = m.link) != null && he.closeToast) ? void 0 : de(
|
|
3252
|
+
return m.link && !((he = m.link) != null && he.closeToast) ? void 0 : de(x);
|
|
3288
3253
|
}, ["stop"]))
|
|
3289
3254
|
},
|
|
3290
3255
|
[
|
|
3291
|
-
|
|
3256
|
+
M.value ? (C(), N(_t(M.value), {
|
|
3292
3257
|
key: 0,
|
|
3293
3258
|
class: "maz-text-2xl"
|
|
3294
|
-
})) :
|
|
3295
|
-
|
|
3296
|
-
|
|
3259
|
+
})) : V("v-if", !0),
|
|
3260
|
+
B("div", En, [
|
|
3261
|
+
B(
|
|
3297
3262
|
"p",
|
|
3298
3263
|
Tn,
|
|
3299
3264
|
Z(m.message),
|
|
@@ -3301,14 +3266,14 @@ const mo = {
|
|
|
3301
3266
|
/* TEXT */
|
|
3302
3267
|
)
|
|
3303
3268
|
]),
|
|
3304
|
-
m.action ? (C(),
|
|
3269
|
+
m.action ? (C(), N(A(i), {
|
|
3305
3270
|
key: 1,
|
|
3306
3271
|
"data-test": "action-btn",
|
|
3307
3272
|
color: m.type,
|
|
3308
3273
|
pastel: "",
|
|
3309
|
-
loading:
|
|
3274
|
+
loading: O.value,
|
|
3310
3275
|
size: "sm",
|
|
3311
|
-
onClick:
|
|
3276
|
+
onClick: k[0] || (k[0] = Y((x) => m.action ? me(m.action.func, x) : void 0, ["stop"]))
|
|
3312
3277
|
}, {
|
|
3313
3278
|
default: U(() => [
|
|
3314
3279
|
Q(
|
|
@@ -3319,8 +3284,8 @@ const mo = {
|
|
|
3319
3284
|
]),
|
|
3320
3285
|
_: 1
|
|
3321
3286
|
/* STABLE */
|
|
3322
|
-
}, 8, ["color", "loading"])) :
|
|
3323
|
-
m.link ? (C(),
|
|
3287
|
+
}, 8, ["color", "loading"])) : V("v-if", !0),
|
|
3288
|
+
m.link ? (C(), N(A(i), {
|
|
3324
3289
|
key: 2,
|
|
3325
3290
|
"data-test": "link-btn",
|
|
3326
3291
|
color: m.type,
|
|
@@ -3330,20 +3295,20 @@ const mo = {
|
|
|
3330
3295
|
target: m.link.target ?? "_self"
|
|
3331
3296
|
}, {
|
|
3332
3297
|
default: U(() => {
|
|
3333
|
-
var
|
|
3298
|
+
var x;
|
|
3334
3299
|
return [
|
|
3335
|
-
|
|
3300
|
+
B("div", Ln, [
|
|
3336
3301
|
m.link.text ? (C(), _(
|
|
3337
3302
|
"span",
|
|
3338
3303
|
zn,
|
|
3339
3304
|
Z(m.link.text),
|
|
3340
3305
|
1
|
|
3341
3306
|
/* TEXT */
|
|
3342
|
-
)) :
|
|
3343
|
-
((
|
|
3307
|
+
)) : V("v-if", !0),
|
|
3308
|
+
((x = m.link) == null ? void 0 : x.target) === "_blank" ? (C(), N(A(a), {
|
|
3344
3309
|
key: 1,
|
|
3345
3310
|
class: "maz-text-xl"
|
|
3346
|
-
})) : (C(),
|
|
3311
|
+
})) : (C(), N(A(E), {
|
|
3347
3312
|
key: 2,
|
|
3348
3313
|
class: "maz-text-xl"
|
|
3349
3314
|
}))
|
|
@@ -3352,16 +3317,16 @@ const mo = {
|
|
|
3352
3317
|
}),
|
|
3353
3318
|
_: 1
|
|
3354
3319
|
/* STABLE */
|
|
3355
|
-
}, 8, ["color", "href", "target"])) :
|
|
3356
|
-
m.persistent ?
|
|
3320
|
+
}, 8, ["color", "href", "target"])) : V("v-if", !0),
|
|
3321
|
+
m.persistent ? V("v-if", !0) : (C(), _("button", {
|
|
3357
3322
|
key: 3,
|
|
3358
3323
|
class: "--close",
|
|
3359
|
-
onClick:
|
|
3324
|
+
onClick: k[1] || (k[1] = Y((x) => de(x), ["stop"]))
|
|
3360
3325
|
}, [
|
|
3361
|
-
J(
|
|
3326
|
+
J(A(r), { class: "--icon maz-text-xl" })
|
|
3362
3327
|
])),
|
|
3363
3328
|
typeof m.timeout == "number" && m.timeout > 0 ? (C(), _("div", Cn, [
|
|
3364
|
-
|
|
3329
|
+
B(
|
|
3365
3330
|
"div",
|
|
3366
3331
|
{
|
|
3367
3332
|
style: qt({
|
|
@@ -3373,7 +3338,7 @@ const mo = {
|
|
|
3373
3338
|
6
|
|
3374
3339
|
/* CLASS, STYLE */
|
|
3375
3340
|
)
|
|
3376
|
-
])) :
|
|
3341
|
+
])) : V("v-if", !0)
|
|
3377
3342
|
],
|
|
3378
3343
|
34
|
|
3379
3344
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -3498,7 +3463,7 @@ export {
|
|
|
3498
3463
|
so as M,
|
|
3499
3464
|
no as N,
|
|
3500
3465
|
ms as O,
|
|
3501
|
-
|
|
3466
|
+
F as P,
|
|
3502
3467
|
We as Q,
|
|
3503
3468
|
Ge as R,
|
|
3504
3469
|
oo as S,
|
|
@@ -3537,7 +3502,7 @@ export {
|
|
|
3537
3502
|
Rt as r,
|
|
3538
3503
|
ao as s,
|
|
3539
3504
|
As as t,
|
|
3540
|
-
|
|
3505
|
+
Fn as u,
|
|
3541
3506
|
Ss as v,
|
|
3542
3507
|
Ds as w,
|
|
3543
3508
|
Ps as x,
|