maz-ui 3.28.1 → 3.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/chunks/{MazBtn-BjjqJeyy.cjs → MazBtn-pl1zplR1.cjs} +1 -1
- package/modules/chunks/{MazBtn-i7A6854I.mjs → MazBtn-vQMWTV0k.mjs} +2 -2
- package/modules/chunks/{MazIcon-mZNgyUkv.cjs → MazIcon-PpF58JqR.cjs} +1 -1
- package/modules/chunks/{MazIcon-_zmW6Z2N.mjs → MazIcon-iHejQyeA.mjs} +1 -1
- package/modules/chunks/{MazSpinner-mn9MhxbV.cjs → MazSpinner-4FGq9uY1.cjs} +1 -1
- package/modules/chunks/{MazSpinner-zUQyynC3.mjs → MazSpinner-DJzZmr-v.mjs} +1 -1
- package/modules/chunks/{index-ezXyG63J.mjs → index-bXD69qtB.mjs} +111 -104
- package/modules/chunks/{index-DCZgntsf.cjs → index-eNQnoHF9.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var S=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-
|
|
1
|
+
var S=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-eNQnoHF9.cjs"),z=e.defineComponent({__name:"MazBtn",props:{variant:{type:String,default:"button",validator:t=>["button","link"].includes(t)},size:{type:String,default:"md",validator:t=>["mini","xs","sm","md","lg","xl"].includes(t)},color:{type:String,default:"primary"},type:{type:String,default:"button",validator:t=>["button","submit","reset"].includes(t)},rounded:{type:Boolean,default:!1},noRounded:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},pastel:{type:Boolean,default:!1},block:{type:Boolean,default:!1},noUnderline:{type:Boolean,default:!1},noLeading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fab:{type:Boolean,default:!1},icon:{type:String,default:void 0},leftIcon:{type:String,default:void 0},rightIcon:{type:String,default:void 0},noPadding:{type:Boolean,default:!1},noElevation:{type:Boolean,default:!1}},setup(t){const d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-4FGq9uY1.cjs"))),a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-PpF58JqR.cjs"))),{href:f,to:m}=e.useAttrs(),r=e.useSlots(),o=t;e.onBeforeMount(()=>{o.icon&&!o.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const i=e.computed(()=>f?"a":m?"router-link":"button"),v=e.computed(()=>o.pastel?`--${o.color}-pastel`:o.outline?`--${o.color}-outline`:`--${o.color}`),c=e.computed(()=>(o.loading||o.disabled)&&i.value==="button"),b=e.computed(()=>c.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${o.variant}`),n=e.computed(()=>o.loading&&o.variant==="button"),u=e.computed(()=>!!r["left-icon"]||o.leftIcon),s=e.computed(()=>!!r["right-icon"]||o.rightIcon),p=e.computed(()=>u.value||s.value),B=e.computed(()=>o.fab&&o.icon),g=e.computed(()=>i.value==="button"?o.type:void 0);return(l,h)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{disabled:c.value,class:e.normalizeClass(["m-btn",[`--${t.size}`,v.value,b.value,y.value,{"--block":t.block,"--no-underline":t.noUnderline,"--no-leading":t.noLeading,"--fab":t.fab,"--loading":t.loading,"--disabled":c.value,"--icon":p.value,"--rounded":t.rounded,"--no-rounded":t.noRounded,"--no-padding":t.noPadding,"--no-elevation":t.noElevation}]]),type:g.value},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":n.value}])},[e.renderSlot(l.$slots,"left-icon",{},()=>[t.leftIcon?(e.openBlock(),e.createBlock(e.unref(a),{key:0,name:t.leftIcon},null,8,["name"])):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),B.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["m-btn__icon maz-flex maz-flex-center",{"maz-invisible":n.value}])},[e.renderSlot(l.$slots,"icon",{},()=>[t.icon?(e.openBlock(),e.createBlock(e.unref(a),{key:0,name:t.icon},null,8,["name"])):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{class:e.normalizeClass(["maz-flex maz-flex-center",{"maz-invisible":n.value}])},[e.renderSlot(l.$slots,"default",{},void 0,!0)],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["m-btn__icon-right maz-flex maz-flex-center",{"maz-invisible":n.value}])},[e.renderSlot(l.$slots,"right-icon",{},()=>[t.rightIcon?(e.openBlock(),e.createBlock(e.unref(a),{key:0,name:t.rightIcon},null,8,["name"])):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),n.value?(e.openBlock(),e.createBlock(e.unref(d),{key:3,size:"2em",color:t.color,class:"maz-absolute"},null,8,["color"])):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","class","type"]))}}),C=k._export_sfc(z,[["__scopeId","data-v-3f2db58e"]]);exports.default=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent as M, defineAsyncComponent as z, useAttrs as E, useSlots as L, onBeforeMount as R, computed as t, openBlock as o, createBlock as i, resolveDynamicComponent as w, normalizeClass as u, withCtx as A, createElementBlock as v, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
-
import { _ as N } from "./index-
|
|
3
|
+
import { _ as N } from "./index-bXD69qtB.mjs";
|
|
4
4
|
const P = /* @__PURE__ */ M({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -40,7 +40,7 @@ const P = /* @__PURE__ */ M({
|
|
|
40
40
|
noElevation: { type: Boolean, default: !1 }
|
|
41
41
|
},
|
|
42
42
|
setup(e) {
|
|
43
|
-
const p = z(() => import("./MazSpinner-
|
|
43
|
+
const p = z(() => import("./MazSpinner-DJzZmr-v.mjs")), c = z(() => import("./MazIcon-iHejQyeA.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
44
|
R(() => {
|
|
45
45
|
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-eNQnoHF9.cjs"),T=["innerHTML"],b=t.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:a=>a}},emits:["loaded","unloaded","error"],setup(a,{emit:f}){const i={},s=t.ref(),d=t.ref(),g=()=>{try{return C.injectStrict("mazIconPath")}catch{return}},l=a,u=f,m=t.computed(()=>l.path??g()),p=t.computed(()=>l.src?l.src:m.value?`${m.value}/${l.name}.svg`:`/${l.name}.svg`);t.onMounted(()=>{!l.name&&!l.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});const h=(e,r)=>{const n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=r;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=r,e.append(o)}},S=e=>Object.keys(e).reduce((r,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(r[n]=e[n]),r),{}),y=e=>{const r={},n=e.attributes;if(!n)return r;for(let o=n.length-1;o>=0;o--)r[n[o].name]=n[o].value;return r},w=e=>{let r=e.cloneNode(!0);return r=l.transformSource(e),l.title&&h(r,l.title),e.innerHTML},E=async e=>{i[e]||(i[e]=M(e));try{s.value=await i[e],await t.nextTick(),u("loaded",d.value)}catch(r){s.value&&(s.value=void 0,u("unloaded")),delete i[e],u("error",r)}},M=e=>new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.addEventListener("load",()=>{if(o.status>=200&&o.status<400)try{let c=new DOMParser().parseFromString(o.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=l.transformSource(c),r(c)):n(new Error('Loaded file is not valid SVG"'))}catch(v){n(v)}else n(new Error("Error loading SVG"))}),o.addEventListener("error",()=>n()),o.send()});return t.watchEffect(()=>E(p.value)),(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable vue/no-v-html "),t.createCommentVNode(" eslint-disable vue/html-self-closing "),s.value?(t.openBlock(),t.createElementBlock("svg",t.mergeProps({key:0,ref_key:"svgElem",ref:d,width:"1em",height:"1em"},{...y(s.value),...S(e.$attrs)},{style:`font-size: ${a.size}`,innerHTML:w(s.value)}),null,16,T)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-enable vue/no-v-html "),t.createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}});exports.default=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./index-
|
|
2
|
+
import { i as q } from "./index-bXD69qtB.mjs";
|
|
3
3
|
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-eNQnoHF9.cjs"),n=e=>(t.pushScopeId("data-v-c67298ec"),e=e(),t.popScopeId(),e),o=["width","height"],s=n(()=>t.createElementVNode("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"},null,-1)),r=[s],i=t.defineComponent({__name:"MazSpinner",props:{size:{type:String,default:"2em"},color:{type:String,default:"primary"}},setup(e){return(p,d)=>(t.openBlock(),t.createElementBlock("svg",{width:e.size,height:e.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:t.normalizeClass(["m-spinner",`m-spinner--${e.color}`]),style:{"enable-background":"new 0 0 50 50"}},r,10,o))}}),a=c._export_sfc(i,[["__scopeId","data-v-c67298ec"]]);exports.default=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./index-
|
|
3
|
+
import { _ as p } from "./index-bXD69qtB.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ 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" },
|
|
@@ -2,7 +2,7 @@ var Qe = Object.defineProperty;
|
|
|
2
2
|
var Je = (s, e, t) => e in s ? Qe(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var a = (s, e, t) => (Je(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import "../assets/index.css";
|
|
5
|
-
import { inject as et, createVNode as
|
|
5
|
+
import { inject as et, createVNode as H, render as ee, nextTick as He, defineComponent as $e, defineAsyncComponent as z, onBeforeMount as tt, ref as h, computed as g, onMounted as Ee, onBeforeUnmount as De, openBlock as E, createElementBlock as Z, normalizeClass as re, withModifiers as D, withKeys as st, withDirectives as be, unref as T, vShow as we, createCommentVNode as $, createElementVNode as I, Transition as Me, withCtx as ne, watch as it, createBlock as U, resolveDynamicComponent as ot, toDisplayString as pe, createTextVNode as nt, normalizeStyle as rt } from "vue";
|
|
6
6
|
function Le(s, e) {
|
|
7
7
|
const t = et(s, e);
|
|
8
8
|
if (!t)
|
|
@@ -25,14 +25,14 @@ function Be(s, e) {
|
|
|
25
25
|
function i() {
|
|
26
26
|
t && ee(null, t);
|
|
27
27
|
}
|
|
28
|
-
const o =
|
|
28
|
+
const o = H(
|
|
29
29
|
s,
|
|
30
30
|
{ ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: i } : {} },
|
|
31
31
|
e == null ? void 0 : e.children
|
|
32
32
|
);
|
|
33
33
|
return e != null && e.app ? (o.appContext = e.app._context, t ? ee(o, t) : typeof document < "u" && (t = document.createElement("div"), ee(o, t))) : (t = t ?? document.body, ee(o, t)), { vNode: o, destroy: i, el: t };
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function M() {
|
|
36
36
|
return typeof document < "u";
|
|
37
37
|
}
|
|
38
38
|
class lt {
|
|
@@ -83,13 +83,13 @@ class lt {
|
|
|
83
83
|
this.callback = e, this.options = {
|
|
84
84
|
...this.defaultOptions,
|
|
85
85
|
...t
|
|
86
|
-
},
|
|
86
|
+
}, M() && this.start();
|
|
87
87
|
}
|
|
88
88
|
get element() {
|
|
89
89
|
return this.options.element ?? document.body;
|
|
90
90
|
}
|
|
91
91
|
start() {
|
|
92
|
-
if (!
|
|
92
|
+
if (!M()) {
|
|
93
93
|
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
@@ -108,7 +108,7 @@ class lt {
|
|
|
108
108
|
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle });
|
|
109
109
|
}
|
|
110
110
|
destroy() {
|
|
111
|
-
if (!
|
|
111
|
+
if (!M()) {
|
|
112
112
|
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -157,10 +157,10 @@ class ct {
|
|
|
157
157
|
this.callback = e, this.options = {
|
|
158
158
|
...this.defaultOptions,
|
|
159
159
|
...t
|
|
160
|
-
}, this.eventHandlerFunction = this.eventHandler.bind(this),
|
|
160
|
+
}, this.eventHandlerFunction = this.eventHandler.bind(this), M() && this.start();
|
|
161
161
|
}
|
|
162
162
|
start() {
|
|
163
|
-
if (!
|
|
163
|
+
if (!M()) {
|
|
164
164
|
console.warn("[UserVisibility](start) you should run this method on client side");
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
@@ -779,16 +779,16 @@ const gt = {
|
|
|
779
779
|
},
|
|
780
780
|
emits: ["close", "previous", "next", "before-close"],
|
|
781
781
|
setup(s, { emit: e }) {
|
|
782
|
-
const t = e, i =
|
|
782
|
+
const t = e, i = z(() => import("./MazSpinner-DJzZmr-v.mjs")), o = z(() => import("./x-mark-pPwcH6Hz.mjs")), m = z(() => import("./chevron-left-48sF6neb.mjs"));
|
|
783
783
|
let d;
|
|
784
784
|
tt(async () => {
|
|
785
785
|
d = await import("vue-scrollto");
|
|
786
786
|
});
|
|
787
|
-
const l = s, f = h(!1), p = h(!1), y = h(!1), v = h(!1),
|
|
788
|
-
() =>
|
|
787
|
+
const l = s, f = h(!1), p = h(!1), y = h(!1), v = h(!1), L = h(!1), b = h(!1), k = h(!1), S = h(l.clickedElement instanceof HTMLImageElement), G = h(l.src), B = h(l.alt), F = h(), c = h(), A = g(
|
|
788
|
+
() => S.value && l.animated && !l.scaleAnimation
|
|
789
789
|
), N = g(
|
|
790
|
-
() => (
|
|
791
|
-
), _ = h(!1), le = g(() =>
|
|
790
|
+
() => (S.value || !l.animated) && !l.scaleAnimation
|
|
791
|
+
), _ = h(!1), le = g(() => b.value ? `--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${_.value ? "maz-h-screen maz-w-auto" : "maz-h-auto maz-w-screen"}` : `cursor-zoom-out ${_.value ? "maz-w-screen maz-h-screen --is-landscape" : "maz-h-screen maz-w-auto"}`);
|
|
792
792
|
function ce() {
|
|
793
793
|
p.value = !0, y.value = !1, v.value = !0;
|
|
794
794
|
}
|
|
@@ -796,7 +796,7 @@ const gt = {
|
|
|
796
796
|
t("before-close"), f.value = !1;
|
|
797
797
|
}
|
|
798
798
|
function Q(r) {
|
|
799
|
-
r.key === "Escape" && (r.preventDefault(), q()), (r.key === "ArrowLeft" || r.key === "ArrowRight") && (r.preventDefault(),
|
|
799
|
+
r.key === "Escape" && (r.preventDefault(), q()), (r.key === "ArrowLeft" || r.key === "ArrowRight") && (r.preventDefault(), O(r.key === "ArrowRight"));
|
|
800
800
|
}
|
|
801
801
|
function ue() {
|
|
802
802
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
@@ -812,56 +812,56 @@ const gt = {
|
|
|
812
812
|
}
|
|
813
813
|
async function de(r, n) {
|
|
814
814
|
r.classList.remove(l.openInstanceClass), n.classList.add(l.openInstanceClass);
|
|
815
|
-
const u = n.getAttribute("data-src"),
|
|
816
|
-
B.value =
|
|
815
|
+
const u = n.getAttribute("data-src"), w = n.getAttribute("data-alt");
|
|
816
|
+
B.value = w ?? void 0, u && (G.value = u), p.value = !1, await X(300), p.value || (y.value = !0);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function O(r) {
|
|
819
819
|
const n = document.querySelector(
|
|
820
820
|
`.m-fullscreen-img-instance.${l.openInstanceClass}`
|
|
821
821
|
);
|
|
822
822
|
if (n) {
|
|
823
|
-
const u = W(),
|
|
824
|
-
|
|
823
|
+
const u = W(), w = u.indexOf(n), P = r ? w + 1 : w - 1, x = u[J(u, P)];
|
|
824
|
+
x && de(n, x), t(r ? "next" : "previous");
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
async function he(r) {
|
|
828
828
|
const n = r.target;
|
|
829
|
-
n.style.width = `${n.clientWidth}px`, n.style.height = `${n.clientHeight}px`, await X(0),
|
|
830
|
-
const u = n.clientWidth / r.clientY,
|
|
829
|
+
n.style.width = `${n.clientWidth}px`, n.style.height = `${n.clientHeight}px`, await X(0), b.value = !b.value, n.style.removeProperty("width"), n.style.removeProperty("height"), await X(0);
|
|
830
|
+
const u = n.clientWidth / r.clientY, P = window.innerWidth / u - window.innerHeight / 2;
|
|
831
831
|
d.scrollTo(n, 200, {
|
|
832
832
|
container: n.parentElement,
|
|
833
833
|
easing: "linear",
|
|
834
|
-
offset:
|
|
834
|
+
offset: b.value ? P : 0
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
837
|
Ee(async () => {
|
|
838
|
-
await He(), document.addEventListener("keydown", Q), f.value = !0, y.value = !0, ue(),
|
|
838
|
+
await He(), document.addEventListener("keydown", Q), f.value = !0, y.value = !0, ue(), L.value = W().length > 1, c.value && (_.value = l.clickedElementBounds.height < l.clickedElementBounds.width);
|
|
839
839
|
});
|
|
840
840
|
function K() {
|
|
841
|
-
c.value && (
|
|
841
|
+
c.value && (k.value = !0, c.value.style.removeProperty("margin-left"), c.value.style.removeProperty("margin-right"), c.value.style.opacity = "0.5", c.value.style.width = `${l.clickedElementBounds.width}px`, c.value.style.height = `${l.clickedElementBounds.height}px`, c.value.style.top = `${l.clickedElementBounds.top}px`, c.value.style.left = `${l.clickedElementBounds.left}px`);
|
|
842
842
|
}
|
|
843
843
|
async function ve() {
|
|
844
844
|
if (await X(0), c.value) {
|
|
845
845
|
c.value.style.opacity = "1", c.value.style.removeProperty("height"), c.value.style.removeProperty("width"), c.value.style.removeProperty("transform");
|
|
846
|
-
const r = window.innerWidth, n = window.innerHeight, u = l.clickedElementBounds.height,
|
|
846
|
+
const r = window.innerWidth, n = window.innerHeight, u = l.clickedElementBounds.height, w = l.clickedElementBounds.width;
|
|
847
847
|
if (_.value) {
|
|
848
848
|
c.value.style.left = "0px";
|
|
849
|
-
const
|
|
850
|
-
c.value.style.top = `${
|
|
849
|
+
const P = u * r / w, x = (n - P) / 2;
|
|
850
|
+
c.value.style.top = `${x <= 0 ? 0 : x}px`;
|
|
851
851
|
} else {
|
|
852
852
|
c.value.style.top = "0px";
|
|
853
|
-
const
|
|
854
|
-
c.value.style.left = `${
|
|
853
|
+
const P = w * n / u, x = (r - P) / 2;
|
|
854
|
+
c.value.style.left = `${x <= 0 ? 0 : x}px`;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
function Y() {
|
|
859
|
-
c.value && (c.value.style.removeProperty("top"), c.value.style.removeProperty("left"), c.value.style.marginLeft = "auto", c.value.style.marginRight = "auto", c.value.style.removeProperty("opacity")),
|
|
859
|
+
c.value && (c.value.style.removeProperty("top"), c.value.style.removeProperty("left"), c.value.style.marginLeft = "auto", c.value.style.marginRight = "auto", c.value.style.removeProperty("opacity")), k.value = !1;
|
|
860
860
|
}
|
|
861
861
|
function fe() {
|
|
862
862
|
if (c.value) {
|
|
863
863
|
const { left: r, top: n } = c.value.getBoundingClientRect();
|
|
864
|
-
c.value.style.left = `${r}px`, c.value.style.top = `${n}px`, c.value.style.width = `${c.value.width}px`, c.value.style.height = `${c.value.height}px`,
|
|
864
|
+
c.value.style.left = `${r}px`, c.value.style.top = `${n}px`, c.value.style.width = `${c.value.width}px`, c.value.style.height = `${c.value.height}px`, k.value = !0;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
function ge() {
|
|
@@ -870,17 +870,17 @@ const gt = {
|
|
|
870
870
|
}
|
|
871
871
|
return De(() => {
|
|
872
872
|
document.removeEventListener("keydown", Q), me();
|
|
873
|
-
}), (r, n) => (
|
|
873
|
+
}), (r, n) => (E(), Z("div", {
|
|
874
874
|
ref_key: "FullscreenImgElement",
|
|
875
875
|
ref: F,
|
|
876
876
|
role: "button",
|
|
877
|
-
class: re(["m-fullscreen-img", { "--animation-active":
|
|
877
|
+
class: re(["m-fullscreen-img", { "--animation-active": k.value }]),
|
|
878
878
|
tabindex: "0",
|
|
879
|
-
onClick:
|
|
880
|
-
onKeypress: st(
|
|
879
|
+
onClick: D(q, ["self"]),
|
|
880
|
+
onKeypress: st(D(q, ["prevent"]), ["esc"])
|
|
881
881
|
}, [
|
|
882
|
-
be(
|
|
883
|
-
|
|
882
|
+
be(H(
|
|
883
|
+
T(i),
|
|
884
884
|
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
885
885
|
null,
|
|
886
886
|
512
|
|
@@ -888,42 +888,42 @@ const gt = {
|
|
|
888
888
|
), [
|
|
889
889
|
[we, y.value]
|
|
890
890
|
]),
|
|
891
|
-
v.value &&
|
|
891
|
+
v.value && L.value ? (E(), Z("button", {
|
|
892
892
|
key: 0,
|
|
893
893
|
type: "button",
|
|
894
894
|
class: "m-fullscreen-btn --next",
|
|
895
|
-
onClick: n[0] || (n[0] =
|
|
895
|
+
onClick: n[0] || (n[0] = D((u) => O(!0), ["stop"]))
|
|
896
896
|
}, [
|
|
897
|
-
|
|
898
|
-
])) :
|
|
899
|
-
f.value && v.value &&
|
|
897
|
+
H(T(m), { class: "maz-rotate-90 maz-text-2xl" })
|
|
898
|
+
])) : $("v-if", !0),
|
|
899
|
+
f.value && v.value && L.value ? (E(), Z("button", {
|
|
900
900
|
key: 1,
|
|
901
901
|
type: "button",
|
|
902
902
|
class: "m-fullscreen-btn --previous",
|
|
903
|
-
onClick: n[1] || (n[1] =
|
|
903
|
+
onClick: n[1] || (n[1] = D((u) => O(!1), ["stop"]))
|
|
904
904
|
}, [
|
|
905
|
-
|
|
906
|
-
])) :
|
|
907
|
-
|
|
905
|
+
H(T(m), { class: "maz-text-2xl" })
|
|
906
|
+
])) : $("v-if", !0),
|
|
907
|
+
I("button", {
|
|
908
908
|
type: "button",
|
|
909
909
|
class: "m-fullscreen-btn --close",
|
|
910
910
|
onClick: q
|
|
911
911
|
}, [
|
|
912
|
-
|
|
912
|
+
H(T(o), { class: "maz-text-2xl" })
|
|
913
913
|
]),
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
I("div", bt, [
|
|
915
|
+
H(Me, {
|
|
916
916
|
name: N.value ? void 0 : "maz-scale-fade",
|
|
917
|
-
onBeforeEnter: n[3] || (n[3] = (u) =>
|
|
918
|
-
onEnter: n[4] || (n[4] = (u) =>
|
|
919
|
-
onAfterEnter: n[5] || (n[5] = (u) =>
|
|
920
|
-
onBeforeLeave: n[6] || (n[6] = (u) =>
|
|
921
|
-
onLeave: n[7] || (n[7] = (u) =>
|
|
917
|
+
onBeforeEnter: n[3] || (n[3] = (u) => A.value && K()),
|
|
918
|
+
onEnter: n[4] || (n[4] = (u) => A.value && ve()),
|
|
919
|
+
onAfterEnter: n[5] || (n[5] = (u) => A.value && Y()),
|
|
920
|
+
onBeforeLeave: n[6] || (n[6] = (u) => A.value && fe()),
|
|
921
|
+
onLeave: n[7] || (n[7] = (u) => A.value && K()),
|
|
922
922
|
onAfterLeave: ge,
|
|
923
923
|
persisted: ""
|
|
924
924
|
}, {
|
|
925
925
|
default: ne(() => [
|
|
926
|
-
be(
|
|
926
|
+
be(I("img", {
|
|
927
927
|
id: "ZvImgElement",
|
|
928
928
|
ref_key: "ImgElement",
|
|
929
929
|
ref: c,
|
|
@@ -1182,15 +1182,15 @@ const Ye = {
|
|
|
1182
1182
|
},
|
|
1183
1183
|
emits: ["close", "click", "open"],
|
|
1184
1184
|
setup(s, { emit: e }) {
|
|
1185
|
-
const t =
|
|
1185
|
+
const t = z(() => import("./MazBtn-vQMWTV0k.mjs")), i = z(() => import("./x-mark-pPwcH6Hz.mjs")), o = z(
|
|
1186
1186
|
() => import("./arrow-top-right-on-square-JGWhrxDH.mjs")
|
|
1187
|
-
), m =
|
|
1187
|
+
), m = z(
|
|
1188
1188
|
() => import("./exclamation-triangle-KCpIguWV.mjs")
|
|
1189
|
-
), d =
|
|
1189
|
+
), d = z(
|
|
1190
1190
|
() => import("./exclamation-circle-AoEMgPzE.mjs")
|
|
1191
|
-
), l =
|
|
1191
|
+
), l = z(
|
|
1192
1192
|
() => import("./information-circle-5aSd26ke.mjs")
|
|
1193
|
-
), f =
|
|
1193
|
+
), f = z(() => import("./check-circle-JGd6LGss.mjs")), p = z(() => import("./link-CVsbXQMi.mjs")), y = h(), v = s, L = g(() => {
|
|
1194
1194
|
switch (v.type) {
|
|
1195
1195
|
case "danger":
|
|
1196
1196
|
return m;
|
|
@@ -1203,7 +1203,7 @@ const Ye = {
|
|
|
1203
1203
|
default:
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
|
-
}),
|
|
1206
|
+
}), b = e, k = g(() => v.position.includes("top") ? "top" : "bottom"), S = g(() => v.position.includes("left") ? "left" : v.position.includes("right") ? "right" : "center"), G = g(() => S.value !== "center" ? S.value === "right" ? "m-slide-right" : "m-slide-left" : k.value === "top" ? "m-slide-top" : "m-slide-bottom"), B = h(!1), F = h(!1), c = h(), A = `m-toast-container --${k.value} --${S.value}`, N = `.${A.replaceAll(" ", ".")}`, { start: _, stop: le, pause: ce, resume: q, remainingTime: Q } = Dt({
|
|
1207
1207
|
callback: Y,
|
|
1208
1208
|
timeout: v.timeout
|
|
1209
1209
|
});
|
|
@@ -1211,7 +1211,7 @@ const Ye = {
|
|
|
1211
1211
|
const r = document.querySelector(N);
|
|
1212
1212
|
if (!r && !r) {
|
|
1213
1213
|
const n = document.body, u = document.createElement("div");
|
|
1214
|
-
u.className =
|
|
1214
|
+
u.className = A, n.append(u);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
function me() {
|
|
@@ -1250,12 +1250,12 @@ const Ye = {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
);
|
|
1253
|
-
function
|
|
1254
|
-
|
|
1253
|
+
function O(r) {
|
|
1254
|
+
b("click", r), v.persistent || Y();
|
|
1255
1255
|
}
|
|
1256
1256
|
async function he(r, n) {
|
|
1257
1257
|
var u;
|
|
1258
|
-
B.value = !0, await r(), B.value = !1, (u = v.action) != null && u.closeToast &&
|
|
1258
|
+
B.value = !0, await r(), B.value = !1, (u = v.action) != null && u.closeToast && O(n);
|
|
1259
1259
|
}
|
|
1260
1260
|
function K(r) {
|
|
1261
1261
|
v.noPauseOnHover || (r ? ce() : q());
|
|
@@ -1267,44 +1267,44 @@ const Ye = {
|
|
|
1267
1267
|
ve(), F.value = !1;
|
|
1268
1268
|
}
|
|
1269
1269
|
function fe() {
|
|
1270
|
-
|
|
1270
|
+
b("open");
|
|
1271
1271
|
}
|
|
1272
1272
|
function ge() {
|
|
1273
1273
|
var n;
|
|
1274
|
-
|
|
1274
|
+
b("close"), (n = y.value) == null || n.remove();
|
|
1275
1275
|
const r = document.querySelector(N);
|
|
1276
1276
|
r && !(r != null && r.hasChildNodes()) && r.remove();
|
|
1277
1277
|
}
|
|
1278
1278
|
return Ee(() => {
|
|
1279
1279
|
ue(), W();
|
|
1280
|
-
}), (r, n) => (
|
|
1280
|
+
}), (r, n) => (E(), U(Me, {
|
|
1281
1281
|
name: G.value,
|
|
1282
1282
|
onAfterLeave: ge,
|
|
1283
1283
|
onAfterEnter: fe,
|
|
1284
1284
|
persisted: ""
|
|
1285
1285
|
}, {
|
|
1286
1286
|
default: ne(() => [
|
|
1287
|
-
be(
|
|
1287
|
+
be(I(
|
|
1288
1288
|
"button",
|
|
1289
1289
|
{
|
|
1290
1290
|
ref_key: "Toaster",
|
|
1291
1291
|
ref: y,
|
|
1292
|
-
class: re(["m-toast", [`--${s.type}`, `--${
|
|
1292
|
+
class: re(["m-toast", [`--${s.type}`, `--${k.value}`, `--${S.value}`, { "maz-pb-1": s.timeout }]]),
|
|
1293
1293
|
role: "alert",
|
|
1294
1294
|
onMouseover: n[2] || (n[2] = (u) => K(!0)),
|
|
1295
1295
|
onMouseleave: n[3] || (n[3] = (u) => K(!1)),
|
|
1296
|
-
onClick: n[4] || (n[4] =
|
|
1297
|
-
var
|
|
1298
|
-
return s.link && !((
|
|
1296
|
+
onClick: n[4] || (n[4] = D((u) => {
|
|
1297
|
+
var w;
|
|
1298
|
+
return s.link && !((w = s.link) != null && w.closeToast) ? void 0 : O(u);
|
|
1299
1299
|
}, ["stop"]))
|
|
1300
1300
|
},
|
|
1301
1301
|
[
|
|
1302
|
-
|
|
1302
|
+
L.value ? (E(), U(ot(L.value), {
|
|
1303
1303
|
key: 0,
|
|
1304
1304
|
class: "maz-text-2xl"
|
|
1305
|
-
})) :
|
|
1306
|
-
|
|
1307
|
-
|
|
1305
|
+
})) : $("v-if", !0),
|
|
1306
|
+
I("div", Mt, [
|
|
1307
|
+
I(
|
|
1308
1308
|
"p",
|
|
1309
1309
|
Bt,
|
|
1310
1310
|
pe(s.message),
|
|
@@ -1312,14 +1312,14 @@ const Ye = {
|
|
|
1312
1312
|
/* TEXT */
|
|
1313
1313
|
)
|
|
1314
1314
|
]),
|
|
1315
|
-
s.action ? (
|
|
1315
|
+
s.action ? (E(), U(T(t), {
|
|
1316
1316
|
key: 1,
|
|
1317
1317
|
"data-test": "action-btn",
|
|
1318
1318
|
color: s.type,
|
|
1319
1319
|
pastel: "",
|
|
1320
1320
|
loading: B.value,
|
|
1321
1321
|
size: "sm",
|
|
1322
|
-
onClick: n[0] || (n[0] =
|
|
1322
|
+
onClick: n[0] || (n[0] = D((u) => he(s.action.func, u), ["stop"]))
|
|
1323
1323
|
}, {
|
|
1324
1324
|
default: ne(() => [
|
|
1325
1325
|
nt(
|
|
@@ -1330,8 +1330,8 @@ const Ye = {
|
|
|
1330
1330
|
]),
|
|
1331
1331
|
_: 1
|
|
1332
1332
|
/* STABLE */
|
|
1333
|
-
}, 8, ["color", "loading"])) :
|
|
1334
|
-
s.link ? (
|
|
1333
|
+
}, 8, ["color", "loading"])) : $("v-if", !0),
|
|
1334
|
+
s.link ? (E(), U(T(t), {
|
|
1335
1335
|
key: 2,
|
|
1336
1336
|
"data-test": "link-btn",
|
|
1337
1337
|
color: s.type,
|
|
@@ -1343,18 +1343,18 @@ const Ye = {
|
|
|
1343
1343
|
default: ne(() => {
|
|
1344
1344
|
var u;
|
|
1345
1345
|
return [
|
|
1346
|
-
|
|
1347
|
-
s.link.text ? (
|
|
1346
|
+
I("div", Ft, [
|
|
1347
|
+
s.link.text ? (E(), Z(
|
|
1348
1348
|
"span",
|
|
1349
1349
|
Nt,
|
|
1350
1350
|
pe(s.link.text),
|
|
1351
1351
|
1
|
|
1352
1352
|
/* TEXT */
|
|
1353
|
-
)) :
|
|
1354
|
-
((u = s.link) == null ? void 0 : u.target) == "_blank" ? (
|
|
1353
|
+
)) : $("v-if", !0),
|
|
1354
|
+
((u = s.link) == null ? void 0 : u.target) == "_blank" ? (E(), U(T(o), {
|
|
1355
1355
|
key: 1,
|
|
1356
1356
|
class: "maz-text-xl"
|
|
1357
|
-
})) : (
|
|
1357
|
+
})) : (E(), U(T(p), {
|
|
1358
1358
|
key: 2,
|
|
1359
1359
|
class: "maz-text-xl"
|
|
1360
1360
|
}))
|
|
@@ -1363,16 +1363,16 @@ const Ye = {
|
|
|
1363
1363
|
}),
|
|
1364
1364
|
_: 1
|
|
1365
1365
|
/* STABLE */
|
|
1366
|
-
}, 8, ["color", "href", "target"])) :
|
|
1367
|
-
s.persistent ?
|
|
1366
|
+
}, 8, ["color", "href", "target"])) : $("v-if", !0),
|
|
1367
|
+
s.persistent ? $("v-if", !0) : (E(), Z("button", {
|
|
1368
1368
|
key: 3,
|
|
1369
1369
|
class: "--close",
|
|
1370
|
-
onClick: n[1] || (n[1] =
|
|
1370
|
+
onClick: n[1] || (n[1] = D((u) => O(u), ["stop"]))
|
|
1371
1371
|
}, [
|
|
1372
|
-
|
|
1372
|
+
H(T(i), { class: "--icon maz-text-xl" })
|
|
1373
1373
|
])),
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
I("div", _t, [
|
|
1375
|
+
I(
|
|
1376
1376
|
"div",
|
|
1377
1377
|
{
|
|
1378
1378
|
style: rt({
|
|
@@ -1511,11 +1511,18 @@ class Qt {
|
|
|
1511
1511
|
const f = l.getAttribute("data-maz-aos-once"), p = typeof f == "string" ? f === "true" : this.options.animation.once;
|
|
1512
1512
|
if (typeof this.options.observer.threshold == "number" && i.intersectionRatio > this.options.observer.threshold) {
|
|
1513
1513
|
const y = l.getAttribute("data-maz-aos-duration"), v = l.getAttribute("data-maz-aos-delay");
|
|
1514
|
-
y || (l.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
1514
|
+
if (y || (l.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
1515
1515
|
l.style.transitionDuration = "0";
|
|
1516
1516
|
}, 1e3)), v || (l.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
1517
1517
|
l.style.transitionDelay = "0";
|
|
1518
|
-
}, 1e3)), l.classList.add("maz-aos-animate"), p
|
|
1518
|
+
}, 1e3)), l.classList.add("maz-aos-animate"), p) {
|
|
1519
|
+
const L = l.getAttribute("data-maz-aos-anchor");
|
|
1520
|
+
if (L) {
|
|
1521
|
+
const b = document.querySelector(L);
|
|
1522
|
+
b && t.unobserve(b);
|
|
1523
|
+
}
|
|
1524
|
+
t.unobserve(l);
|
|
1525
|
+
}
|
|
1519
1526
|
} else
|
|
1520
1527
|
l.classList.remove("maz-aos-animate");
|
|
1521
1528
|
}
|
|
@@ -1536,7 +1543,7 @@ class Qt {
|
|
|
1536
1543
|
}
|
|
1537
1544
|
}
|
|
1538
1545
|
runAnimations() {
|
|
1539
|
-
if (
|
|
1546
|
+
if (M())
|
|
1540
1547
|
return this.handleObserver();
|
|
1541
1548
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
1542
1549
|
}
|
|
@@ -1544,7 +1551,7 @@ class Qt {
|
|
|
1544
1551
|
let oe;
|
|
1545
1552
|
const ps = {
|
|
1546
1553
|
install: (s, e) => {
|
|
1547
|
-
oe = new Qt(e), s.provide("aos", oe),
|
|
1554
|
+
oe = new Qt(e), s.provide("aos", oe), M() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
1548
1555
|
oe.runAnimations();
|
|
1549
1556
|
}) : oe.runAnimations());
|
|
1550
1557
|
}
|
|
@@ -1555,7 +1562,7 @@ const ps = {
|
|
|
1555
1562
|
storageThemeValueDark: "dark",
|
|
1556
1563
|
storageThemeValueLight: "light",
|
|
1557
1564
|
storageThemeValueSystem: "system"
|
|
1558
|
-
}, R = h("system"),
|
|
1565
|
+
}, R = h("system"), C = h("system");
|
|
1559
1566
|
function Ie({
|
|
1560
1567
|
darkClass: s,
|
|
1561
1568
|
lightClass: e,
|
|
@@ -1564,7 +1571,7 @@ function Ie({
|
|
|
1564
1571
|
setLocalStorageValue: o = !0,
|
|
1565
1572
|
setSelectedTheme: m = !0
|
|
1566
1573
|
}) {
|
|
1567
|
-
document.documentElement.classList.remove(e), document.documentElement.classList.add(s), R.value = i, m && (
|
|
1574
|
+
document.documentElement.classList.remove(e), document.documentElement.classList.add(s), R.value = i, m && (C.value = i), o && (localStorage[t] = i);
|
|
1568
1575
|
}
|
|
1569
1576
|
function Te({
|
|
1570
1577
|
darkClass: s,
|
|
@@ -1574,10 +1581,10 @@ function Te({
|
|
|
1574
1581
|
setLocalStorageValue: o = !0,
|
|
1575
1582
|
setSelectedTheme: m = !0
|
|
1576
1583
|
}) {
|
|
1577
|
-
document.documentElement.classList.remove(s), document.documentElement.classList.add(e), R.value = i, m && (
|
|
1584
|
+
document.documentElement.classList.remove(s), document.documentElement.classList.add(e), R.value = i, m && (C.value = i), o && (localStorage[t] = i);
|
|
1578
1585
|
}
|
|
1579
1586
|
function Xe(s) {
|
|
1580
|
-
document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), R.value = s.storageThemeValueSystem,
|
|
1587
|
+
document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), R.value = s.storageThemeValueSystem, C.value = s.storageThemeValueSystem, s.setLocalStorageValue && (localStorage[s.storageThemeKey] = s.storageThemeValueSystem), Ze({ ...s, setSelectedTheme: !1 });
|
|
1581
1588
|
}
|
|
1582
1589
|
function Se() {
|
|
1583
1590
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -1606,9 +1613,9 @@ function ys(s = Ce) {
|
|
|
1606
1613
|
const e = {
|
|
1607
1614
|
...Ce,
|
|
1608
1615
|
...s
|
|
1609
|
-
}, t = g(() =>
|
|
1616
|
+
}, t = g(() => C.value === e.storageThemeValueDark), i = g(() => C.value === e.storageThemeValueLight), o = g(() => C.value === e.storageThemeValueSystem);
|
|
1610
1617
|
return Ee(() => {
|
|
1611
|
-
localStorage[e.storageThemeKey] && (R.value = localStorage[e.storageThemeKey],
|
|
1618
|
+
localStorage[e.storageThemeKey] && (R.value = localStorage[e.storageThemeKey], C.value = localStorage[e.storageThemeKey]);
|
|
1612
1619
|
}), {
|
|
1613
1620
|
autoSetTheme: () => Ze(e),
|
|
1614
1621
|
toggleTheme: () => Jt(e),
|
|
@@ -1619,7 +1626,7 @@ function ys(s = Ce) {
|
|
|
1619
1626
|
hasLightTheme: i,
|
|
1620
1627
|
hasSystemTheme: o,
|
|
1621
1628
|
theme: R,
|
|
1622
|
-
selectedTheme:
|
|
1629
|
+
selectedTheme: C
|
|
1623
1630
|
};
|
|
1624
1631
|
}
|
|
1625
1632
|
const bs = ({
|
|
@@ -1677,7 +1684,7 @@ export {
|
|
|
1677
1684
|
ct as U,
|
|
1678
1685
|
Zt as W,
|
|
1679
1686
|
Ke as _,
|
|
1680
|
-
|
|
1687
|
+
M as a,
|
|
1681
1688
|
hs as b,
|
|
1682
1689
|
as as c,
|
|
1683
1690
|
ns as d,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ue=Object.create;var ne=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var Ye=(s,e,t)=>e in s?ne(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Xe=(s,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Re(e))!Ke.call(s,i)&&i!==t&&ne(s,i,{get:()=>e[i],enumerable:!(o=je(e,i))||o.enumerable});return s};var Ze=(s,e,t)=>(t=s!=null?Ue(We(s)):{},Xe(e||!s||!s.__esModule?ne(t,"default",{value:s,enumerable:!0}):t,s));var l=(s,e,t)=>(Ye(s,typeof e!="symbol"?e+"":e,t),t);var ts=require("../assets/index.css");const n=require("vue");function Y(s,e){const t=n.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Qe(s,e){let t;return function(...o){clearTimeout(t),t=setTimeout(()=>{s.apply(this,o)},e)}}function ze(s){return!!s}function ae(s,e){let t=e==null?void 0:e.element;function o(){t&&n.render(null,t)}const i=n.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:o}:{}},e==null?void 0:e.children);return e!=null&&e.app?(i.appContext=e.app._context,t?n.render(i,t):typeof document<"u"&&(t=document.createElement("div"),n.render(i,t))):(t=t??document.body,n.render(i,t)),{vNode:i,destroy:o,el:t}}function
|
|
1
|
+
var Ue=Object.create;var ne=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var Ye=(s,e,t)=>e in s?ne(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Xe=(s,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Re(e))!Ke.call(s,i)&&i!==t&&ne(s,i,{get:()=>e[i],enumerable:!(o=je(e,i))||o.enumerable});return s};var Ze=(s,e,t)=>(t=s!=null?Ue(We(s)):{},Xe(e||!s||!s.__esModule?ne(t,"default",{value:s,enumerable:!0}):t,s));var l=(s,e,t)=>(Ye(s,typeof e!="symbol"?e+"":e,t),t);var ts=require("../assets/index.css");const n=require("vue");function Y(s,e){const t=n.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Qe(s,e){let t;return function(...o){clearTimeout(t),t=setTimeout(()=>{s.apply(this,o)},e)}}function ze(s){return!!s}function ae(s,e){let t=e==null?void 0:e.element;function o(){t&&n.render(null,t)}const i=n.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:o}:{}},e==null?void 0:e.children);return e!=null&&e.app?(i.appContext=e.app._context,t?n.render(i,t):typeof document<"u"&&(t=document.createElement("div"),n.render(i,t))):(t=t??document.body,n.render(i,t)),{vNode:i,destroy:o,el:t}}function T(){return typeof document<"u"}class Ee{constructor(e,t){l(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});l(this,"options");l(this,"timeoutHandler");l(this,"isIdle",!1);l(this,"isDestroy",!1);l(this,"startTime",0);l(this,"remainingTime",0);l(this,"lastClientX",-1);l(this,"lastClientY",-1);l(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);l(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:o}=e;if(t===void 0&&o===void 0||t===this.lastClientX&&o===this.lastClientY)return;this.lastClientX=t,this.lastClientY=o}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},T()&&this.start()}get element(){return this.options.element??document.body}start(){if(!T()){console.warn("[IdleTimeout](start) you should run this method on client side");return}for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(!T()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class Le{constructor(e,t){l(this,"eventHandlerFunction");l(this,"event","visibilitychange");l(this,"timeoutHandler");l(this,"options");l(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});l(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),T()&&this.start()}start(){if(!T()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const H=s=>new Promise(e=>{setTimeout(e,s)});class Ge{constructor({src:e,identifier:t,once:o=!0,async:i=!0,defer:d=!0}){l(this,"src");l(this,"script");l(this,"once");l(this,"async");l(this,"defer");l(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=o,this.async=i,this.defer=d}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const o of t)this.removeTag(o);return this.injectScript()}injectScript(){const e=window;return new Promise((t,o)=>{try{const i=document.createElement("script");i.src=this.src,i.async=this.async,i.defer=this.defer,i.dataset.identifier=this.identifier,i.addEventListener("error",d=>o(new Error(`[ScriptLoader](injectScript) ${d.message}`))),i.addEventListener("load",d=>(this.script=d,e[this.identifier]=d,t(d))),document.head.append(i)}catch(i){throw new Error(`[ScriptLoader](init) ${i}`)}})}}function Je(s){return[...s].map(e=>{const t=e.codePointAt(0);return t?t%32+127461:void 0}).filter(ze).map(e=>String.fromCodePoint(e)).join("")}const K="__vue_click_away__",Ie=()=>document.ontouchstart===null?"touchstart":"click",Te=async(s,e)=>{ke(s);const t=e.instance,o=e.value,i=typeof o=="function";if(!i)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await n.nextTick(),s[K]=h=>{if((!s||!s.contains(h.target))&&o&&i)return o.call(t,h)};const d=Ie();document.addEventListener(d,s[K],!1)},ke=s=>{const e=Ie();document.removeEventListener(e,s[K],!1),delete s[K]},et=(s,e)=>{e.value!==e.oldValue&&Te(s,e)},le={mounted:Te,updated:et,unmounted:ke},tt={install:s=>{s.directive("click-outside",le)}},Ae=(s,e,t,o)=>{s.stopPropagation();const{handler:i,exclude:d}=t.value;let h=!1;if(d&&d.length>0)for(const c of d)h||(h=o.context.$refs[c].contains(s.target));!e.contains(s.target)&&!h&&o.context[i]()},Ce=()=>document.ontouchstart===null?"touchstart":"click",st=(s,e,t)=>{const o=Ce();document.removeEventListener(o,i=>Ae(i,s,e,t))},ot=(s,e,t)=>{const o=Ce();document.addEventListener(o,i=>Ae(i,s,e,t))},ce={mounted:ot,unmounted:st},nt={install:s=>{s.directive("closable",ce)}},it=`
|
|
2
2
|
.maz-zoom-img {
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -121,4 +121,4 @@ var Ue=Object.create;var ne=Object.defineProperty;var je=Object.getOwnPropertyDe
|
|
|
121
121
|
|
|
122
122
|
.maz-zoom-img .maz-zoom-btn:hover {
|
|
123
123
|
background-color: hsl(0, 0%, 0%);
|
|
124
|
-
}`,ve={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>',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>',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>',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>'};class rt{constructor(e){l(this,"options");l(this,"loader");l(this,"wrapper");l(this,"img");l(this,"keydownHandler");l(this,"onImgLoadedCallback");l(this,"buttonsAdded");l(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(it);const o=document.createElement("div");o.classList.add("maz-zoom-img"),o.setAttribute("id","MazImgPreviewFullsize"),o.addEventListener("click",i=>{o.isEqualNode(i.target)&&this.closePreview()}),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),o.append(this.wrapper),document.body.append(o),this.keyboardEventHandler(!0),setTimeout(()=>{o&&o.classList.add("maz-animate")},100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],o=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,o){const i=this.getButton("previous"),d=this.getButton("next");t.push(i,d)}this.wrapper.append(e),o&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ve.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),(e.key==="Escape"||e.key===" ")&&this.closePreview(),(e.key==="ArrowLeft"||e.key==="ArrowRight")&&this.nextPreviousImage(e.key==="ArrowRight")}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=ve[e],t.addEventListener("click",()=>{e==="close"?this.closePreview():this.allInstances&&this.nextPreviousImage(e==="next")}),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),o=document.querySelector(".maz-zoom-img-instance.maz-is-open");o&&o.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout(()=>{e&&e.remove(),t&&t.remove()},300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,o=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(o){const i=this.allInstances.indexOf(o),d=t?i+1:i-1,h=this.allInstances[this.getNewInstanceIndex(d)];h&&this.useNextInstance(o,h)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const o=t.getAttribute("data-zoom-src"),i=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,o&&this.img.setAttribute("src",o),i&&this.img.setAttribute("alt",i)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let j;const ue={created(s,e){j=new rt(e),j.create(s)},updated(s,e){j.update(e)},unmounted(s){j.remove(s)}},at={install(s){s.directive("zoom-img",ue)}},lt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",re={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class xe{constructor(e={}){l(this,"observers",[]);l(this,"defaultOptions",re);l(this,"options");l(this,"onImgLoadedCallback");l(this,"onImgErrorCallback");l(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-AVNubSve.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,o;this.addClass(e,this.options.loadingClass),(o=(t=this.options).onLoading)==null||o.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,o;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(o=(t=this.options).onLoaded)==null||o.call(t,e)}imageHasError(e,t){var o,i;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(i=(o=this.options).onError)==null||i.call(o,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const o=this.getImgElement(e).getAttribute("data-lazy-src");if(o)return o;t.value;const i=typeof t.value=="object"?t.value.src:t.value;return i||console.warn("[maz-ui][MazLazyImg] src url is not defined"),i}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const o of t){const i=o.getAttribute("data-lazy-srcset");i?o.srcset=i:console.warn('[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),o=e.querySelectorAll("source");if(o.length>0)for await(const i of o)i.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",o=>this.onImgErrorCallback(e,o),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const o=this.getImageUrl(e,t);if(!o)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${o}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,o))}}setImgSrc(e,t){const o=this.getImgElement(e);o.src=t}handleIntersectionObserver(e,t,o,i){var d,h;this.observers.push(i);for(const c of o)if(c.isIntersecting){if((h=(d=this.options).onIntersecting)==null||h.call(d,c.target),this.options.observerOnce&&i.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const o=(h,c)=>{this.handleIntersectionObserver(e,t,h,c)},i=this.options.observerOptions;new IntersectionObserver(o,i).observe(e)}async imageHandler(e,t,o){if(o==="update")for await(const i of this.observers)i.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,o){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,o)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);setTimeout(()=>this.setBaseClass(e),0),e.getAttribute("src")||this.setImgSrc(e,lt),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const o of this.observers)o.unobserve(e);this.observers=[]}}let R;const Se={created(s,e){const t=typeof e.value=="object"?e.value:{};R=new xe(t),R.add(s,e)},updated(s,e){R.update(s,e)},unmounted(s,e){R.remove(s,e)}},ct="lazy-img",ut={install(s,e={}){const t={...re,...e,observerOptions:{...re.observerOptions,...e.observerOptions}},o=new xe(t);s.directive(ct,{created:o.add.bind(o),updated:o.update.bind(o),unmounted:o.remove.bind(o)})}},mt=["onClick","onKeypress"],dt={class:"m-fullscreen-img-scroller"},ht=["src","alt"],ft=n.defineComponent({__name:"MazFullscreenImg",props:{destroy:{type:Function,default:void 0},src:{},alt:{default:void 0},openInstanceClass:{},zoom:{type:Boolean,default:!0},disabled:{type:Boolean},clickedElementBounds:{},clickedElement:{},animated:{type:Boolean,default:!0},scaleAnimation:{type:Boolean}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-mn9MhxbV.cjs"))),i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),d=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-8yB0sLIf.cjs")));let h;n.onBeforeMount(async()=>{h=await import("vue-scrollto")});const c=s,v=n.ref(!1),g=n.ref(!1),p=n.ref(!1),f=n.ref(!1),A=n.ref(!1),w=n.ref(!1),b=n.ref(!1),T=n.ref(c.clickedElement instanceof HTMLImageElement),q=n.ref(c.src),x=n.ref(c.alt),S=n.ref(),u=n.ref(),z=n.computed(()=>T.value&&c.animated&&!c.scaleAnimation),P=n.computed(()=>(T.value||!c.animated)&&!c.scaleAnimation),O=n.ref(!1),X=n.computed(()=>w.value?`--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${O.value?"maz-h-screen maz-w-auto":"maz-h-auto maz-w-screen"}`:`cursor-zoom-out ${O.value?"maz-w-screen maz-h-screen --is-landscape":"maz-h-screen maz-w-auto"}`);function Z(){g.value=!0,p.value=!1,f.value=!0}function $(){t("before-close"),v.value=!1}function _(a){a.key==="Escape"&&(a.preventDefault(),$()),(a.key==="ArrowLeft"||a.key==="ArrowRight")&&(a.preventDefault(),k(a.key==="ArrowRight"))}function Q(){document.documentElement.classList.add("--m-fullscreen-open")}function G(){document.documentElement.classList.remove("--m-fullscreen-open")}function N(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function U(a,r){return r<0?a.length-1:r>=a.length?0:r}async function J(a,r){a.classList.remove(c.openInstanceClass),r.classList.add(c.openInstanceClass);const m=r.getAttribute("data-src"),y=r.getAttribute("data-alt");x.value=y??void 0,m&&(q.value=m),g.value=!1,await H(300),g.value||(p.value=!0)}function k(a){const r=document.querySelector(`.m-fullscreen-img-instance.${c.openInstanceClass}`);if(r){const m=N(),y=m.indexOf(r),C=a?y+1:y-1,E=m[U(m,C)];E&&J(r,E),t(a?"next":"previous")}}async function ee(a){const r=a.target;r.style.width=`${r.clientWidth}px`,r.style.height=`${r.clientHeight}px`,await H(0),w.value=!w.value,r.style.removeProperty("width"),r.style.removeProperty("height"),await H(0);const m=r.clientWidth/a.clientY,C=window.innerWidth/m-window.innerHeight/2;h.scrollTo(r,200,{container:r.parentElement,easing:"linear",offset:w.value?C:0})}n.onMounted(async()=>{await n.nextTick(),document.addEventListener("keydown",_),v.value=!0,p.value=!0,Q(),A.value=N().length>1,u.value&&(O.value=c.clickedElementBounds.height<c.clickedElementBounds.width)});function F(){u.value&&(b.value=!0,u.value.style.removeProperty("margin-left"),u.value.style.removeProperty("margin-right"),u.value.style.opacity="0.5",u.value.style.width=`${c.clickedElementBounds.width}px`,u.value.style.height=`${c.clickedElementBounds.height}px`,u.value.style.top=`${c.clickedElementBounds.top}px`,u.value.style.left=`${c.clickedElementBounds.left}px`)}async function te(){if(await H(0),u.value){u.value.style.opacity="1",u.value.style.removeProperty("height"),u.value.style.removeProperty("width"),u.value.style.removeProperty("transform");const a=window.innerWidth,r=window.innerHeight,m=c.clickedElementBounds.height,y=c.clickedElementBounds.width;if(O.value){u.value.style.left="0px";const C=m*a/y,E=(r-C)/2;u.value.style.top=`${E<=0?0:E}px`}else{u.value.style.top="0px";const C=y*r/m,E=(a-C)/2;u.value.style.left=`${E<=0?0:E}px`}}}function V(){u.value&&(u.value.style.removeProperty("top"),u.value.style.removeProperty("left"),u.value.style.marginLeft="auto",u.value.style.marginRight="auto",u.value.style.removeProperty("opacity")),b.value=!1}function se(){if(u.value){const{left:a,top:r}=u.value.getBoundingClientRect();u.value.style.left=`${a}px`,u.value.style.top=`${r}px`,u.value.style.width=`${u.value.width}px`,u.value.style.height=`${u.value.height}px`,b.value=!0}}function oe(){var a,r;t("close"),(a=S.value)==null||a.remove(),(r=c.destroy)==null||r.call(c)}return n.onBeforeUnmount(()=>{document.removeEventListener("keydown",_),G()}),(a,r)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:S,role:"button",class:n.normalizeClass(["m-fullscreen-img",{"--animation-active":b.value}]),tabindex:"0",onClick:n.withModifiers($,["self"]),onKeypress:n.withKeys(n.withModifiers($,["prevent"]),["esc"])},[n.withDirectives(n.createVNode(n.unref(o),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[n.vShow,p.value]]),f.value&&A.value?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:r[0]||(r[0]=n.withModifiers(m=>k(!0),["stop"]))},[n.createVNode(n.unref(d),{class:"maz-rotate-90 maz-text-2xl"})])):n.createCommentVNode("v-if",!0),v.value&&f.value&&A.value?(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:r[1]||(r[1]=n.withModifiers(m=>k(!1),["stop"]))},[n.createVNode(n.unref(d),{class:"maz-text-2xl"})])):n.createCommentVNode("v-if",!0),n.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:$},[n.createVNode(n.unref(i),{class:"maz-text-2xl"})]),n.createElementVNode("div",dt,[n.createVNode(n.Transition,{name:P.value?void 0:"maz-scale-fade",onBeforeEnter:r[3]||(r[3]=m=>z.value&&F()),onEnter:r[4]||(r[4]=m=>z.value&&te()),onAfterEnter:r[5]||(r[5]=m=>z.value&&V()),onBeforeLeave:r[6]||(r[6]=m=>z.value&&se()),onLeave:r[7]||(r[7]=m=>z.value&&F()),onAfterLeave:oe,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("img",{id:"ZvImgElement",ref_key:"ImgElement",ref:u,src:q.value,alt:x.value,tabindex:"0",class:n.normalizeClass([{zoomable:a.zoom},X.value]),onLoad:Z,onClick:r[2]||(r[2]=m=>a.zoom?ee(m):void 0)},null,42,ht),[[n.vShow,v.value]])]),_:1},8,["name"])])],42,mt))}}),me=(s,e)=>{const t=s.__vccOpts||s;for(const[o,i]of e)t[o]=i;return t},vt=me(ft,[["__scopeId","data-v-d0c959c7"]]),ge="m-fullscreen-is-open";class gt{constructor(){l(this,"options");l(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,animated:!0,zoom:!0,scaleAnimation:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener")}buildOptions(e,t){const o=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},i=(o==null?void 0:o.src)??this.getImgSrc(e),d=(o==null?void 0:o.alt)??this.getImgAlt(e);return{...this.defaultOptions,...o,src:i,alt:d}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var o;const t=((o=this.options)==null?void 0:o.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 300ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const o=this.getImgAlt(e);o&&e.setAttribute("data-alt",o),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)}update(e,t){this.options=this.buildOptions(e,t)}remove(e){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=""}renderPreview(e){return e.classList.add(ge),ae(vt,{props:{...this.options,openInstanceClass:ge,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.05)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let W;const de={mounted(s,e){return W=new gt,W.create(s,e)},updated(s,e){return W.update(s,e)},unmounted(s){return W.remove(s)}},pt={install(s){s.directive("fullscreen-img",de)}},yt=[{name:"click-outside",directive:le},{name:"closable",directive:ce},{name:"zoom-img",directive:ue},{name:"lazy-img",directive:Se},{name:"fullscreen-img",directive:de}],wt={install(s){for(const{name:e,directive:t}of yt)s.directive(e,t)}},Pe=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",bt={style:"currency",minimumFractionDigits:2,round:!1},zt=(s,e,t)=>{let o=Number(s);return t.round&&(o=Math.floor(o),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(o)},Et=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Oe=(s,e,t)=>{const o={...bt,...t};Et(s,e,o);try{return zt(s,e,o)}catch(i){throw new Error(`[maz-ui](FilterCurrency) ${i}`)}},Lt={month:"short",day:"numeric",year:"numeric"},$e=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const o=t??Lt;try{const i=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,o).format(i)}catch(i){throw new Error(`[maz-ui](FilterDate) ${i}`)}},It={minimumFractionDigits:2},He=(s,e,t)=>{const o={...It,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,o).format(Number(s))}catch(i){throw new Error(`[maz-ui](FilterNumber) ${i}`)}},Tt={capitalize:Pe,currency:Oe,date:$e,number:He},kt={install(s){s.provide("filters",Tt)}},Be=({timeout:s,callback:e,remainingTimeUpdate:t=200})=>{const o=n.ref(s);let i;function d(){o.value=s,h()}function h(){i||(i=setInterval(()=>{o.value-=t,o.value<=0&&(g(),e==null||e())},t))}function c(){i&&(clearInterval(i),i=void 0)}function v(){!i&&o.value>0&&h()}function g(){o.value=s,c()}return n.onBeforeUnmount(()=>{g()}),{remainingTime:o,start:d,pause:c,resume:v,stop:g}},Ct={class:"m-toast__message-wrapper"},At={class:"m-toast__message"},xt={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},Pt={class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},Ot=n.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info"},message:{type:String,required:!0},link:{type:Object,default:void 0},action:{type:Object,default:void 0},persistent:{type:Boolean,default:!1}},emits:["close","click","open"],setup(s,{emit:e}){const t=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-BjjqJeyy.cjs"))),o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-jZfbSH7Z.cjs"))),d=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-Kk2Ygepb.cjs"))),h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-kdNsgBlF.cjs"))),c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-x2Q9nLP2.cjs"))),v=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-i22ikksA.cjs"))),g=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-3xy7UuBg.cjs"))),p=n.ref(),f=s,A=n.computed(()=>{switch(f.type){case"danger":return d;case"info":return c;case"success":return v;case"warning":return h;default:return}}),w=e,b=n.computed(()=>f.position.includes("top")?"top":"bottom"),T=n.computed(()=>f.position.includes("left")?"left":f.position.includes("right")?"right":"center"),q=n.computed(()=>T.value!=="center"?T.value==="right"?"m-slide-right":"m-slide-left":b.value==="top"?"m-slide-top":"m-slide-bottom"),x=n.ref(!1),S=n.ref(!1),u=n.ref(),z=`m-toast-container --${b.value} --${T.value}`,P=`.${z.replaceAll(" ",".")}`,{start:O,stop:X,pause:Z,resume:$,remainingTime:_}=Be({callback:V,timeout:f.timeout});function Q(){const a=document.querySelector(P);if(!a&&!a){const r=document.body,m=document.createElement("div");m.className=z,r.append(m)}}function G(){const a=document.querySelector(P);return!f.queue&&f.maxToasts===!1?!1:typeof f.maxToasts=="number"&&a?f.maxToasts<=a.childElementCount:a&&a.childElementCount>0}function N(){if(G()){u.value=setTimeout(N,250);return}const a=document.querySelector(P);p.value&&a&&a.prepend(p.value),S.value=!0,O()}const U=n.ref("100%");function J(){switch(f.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}n.watch(()=>_.value,a=>{if(typeof a=="number"){const r=100*a/f.timeout;U.value=`${r}%`,a<=0&&V()}});function k(a){w("click",a),f.persistent||V()}async function ee(a,r){var m;x.value=!0,await a(),x.value=!1,(m=f.action)!=null&&m.closeToast&&k(r)}function F(a){f.noPauseOnHover||(a?Z():$())}function te(){X(),u.value&&clearTimeout(u.value)}function V(){te(),S.value=!1}function se(){w("open")}function oe(){var r;w("close"),(r=p.value)==null||r.remove();const a=document.querySelector(P);a&&!(a!=null&&a.hasChildNodes())&&a.remove()}return n.onMounted(()=>{Q(),N()}),(a,r)=>(n.openBlock(),n.createBlock(n.Transition,{name:q.value,onAfterLeave:oe,onAfterEnter:se,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("button",{ref_key:"Toaster",ref:p,class:n.normalizeClass(["m-toast",[`--${s.type}`,`--${b.value}`,`--${T.value}`,{"maz-pb-1":s.timeout}]]),role:"alert",onMouseover:r[2]||(r[2]=m=>F(!0)),onMouseleave:r[3]||(r[3]=m=>F(!1)),onClick:r[4]||(r[4]=n.withModifiers(m=>{var y;return s.link&&!((y=s.link)!=null&&y.closeToast)?void 0:k(m)},["stop"]))},[A.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(A.value),{key:0,class:"maz-text-2xl"})):n.createCommentVNode("v-if",!0),n.createElementVNode("div",Ct,[n.createElementVNode("p",At,n.toDisplayString(s.message),1)]),s.action?(n.openBlock(),n.createBlock(n.unref(t),{key:1,"data-test":"action-btn",color:s.type,pastel:"",loading:x.value,size:"sm",onClick:r[0]||(r[0]=n.withModifiers(m=>ee(s.action.func,m),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):n.createCommentVNode("v-if",!0),s.link?(n.openBlock(),n.createBlock(n.unref(t),{key:2,"data-test":"link-btn",color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:n.withCtx(()=>{var m;return[n.createElementVNode("div",xt,[s.link.text?(n.openBlock(),n.createElementBlock("span",St,n.toDisplayString(s.link.text),1)):n.createCommentVNode("v-if",!0),((m=s.link)==null?void 0:m.target)=="_blank"?(n.openBlock(),n.createBlock(n.unref(i),{key:1,class:"maz-text-xl"})):(n.openBlock(),n.createBlock(n.unref(g),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):n.createCommentVNode("v-if",!0),s.persistent?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("button",{key:3,class:"--close",onClick:r[1]||(r[1]=n.withModifiers(m=>k(m),["stop"]))},[n.createVNode(n.unref(o),{class:"--icon maz-text-xl"})])),n.createElementVNode("div",Pt,[n.createElementVNode("div",{style:n.normalizeStyle({width:U.value}),class:n.normalizeClass(["maz-h-full maz-transition-all maz-duration-200 maz-ease-linear",J()])},null,6)])],34),[[n.vShow,S.value]])]),_:1},8,["name"]))}}),$t=me(Ot,[["__scopeId","data-v-ee210f61"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Me{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const o={message:e,...t},i={...Ht,...o,...this.globalOptions,...t};ae($t,{props:i,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Bt={install(s,e){exports.toastInstance=new Me(s,e),s.provide("toast",exports.toastInstance)}},B="",Mt=s=>s.filter((e,t,o)=>t===o.indexOf(e)),Dt=s=>(e=B)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Nt=s=>s.length>0,Ft=s=>(e=B)=>Mt([...s,e]),Vt=s=>(e=B)=>s.filter(t=>t!==e);class De{constructor(){l(this,"_loaders",n.ref([]))}get loaders(){return n.computed(()=>this._loaders.value)}stop(e=B){this._loaders.value=Vt(this._loaders.value)(e)}start(e=B){return this._loaders.value=Ft(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return n.computed(()=>Nt(this._loaders.value))}isLoading(e=B){return n.computed(()=>Dt(this._loaders.value)(e)).value}}const Ne=new De,qt={install:s=>{s.provide("wait",Ne)}},ie={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Fe{constructor(e){l(this,"options");this.options={delay:(e==null?void 0:e.delay)??ie.delay,observer:{...ie.observer,...e==null?void 0:e.observer},animation:{...ie.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const o of e){const d=o.target.getAttribute("data-maz-aos-children")==="true",h=o.target.getAttribute("data-maz-aos")?[o.target]:[];if(d){const c=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(v=>v.getAttribute("data-maz-aos-anchor")===`#${o.target.id}`?v:void 0);for(const v of c)v&&h.push(v)}for(const c of h){const v=c.getAttribute("data-maz-aos-once"),g=typeof v=="string"?v==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&o.intersectionRatio>this.options.observer.threshold){const p=c.getAttribute("data-maz-aos-duration"),f=c.getAttribute("data-maz-aos-delay");p||(c.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{c.style.transitionDuration="0"},1e3)),f||(c.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{c.style.transitionDelay="0"},1e3)),c.classList.add("maz-aos-animate"),g&&t.unobserve(c)}else c.classList.remove("maz-aos-animate")}}}async handleObserver(){await H(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const o=t.getAttribute("data-maz-aos-anchor");if(o){const i=document.querySelector(o);i?(i.setAttribute("data-maz-aos-children","true"),e.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${o}"`)}else e.observe(t)}}runAnimations(){if(I())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const _t={install:(s,e)=>{exports.instance$1=new Fe(e),s.provide("aos",exports.instance$1),I()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},pe={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system"},D=n.ref("system"),L=n.ref("system");function he({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:o,setLocalStorageValue:i=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(e),document.documentElement.classList.add(s),D.value=o,d&&(L.value=o),i&&(localStorage[t]=o)}function fe({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:o,setLocalStorageValue:i=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(s),document.documentElement.classList.add(e),D.value=o,d&&(L.value=o),i&&(localStorage[t]=o)}function Ve(s){document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),D.value=s.storageThemeValueSystem,L.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),qe({...s,setSelectedTheme:!1})}function ye(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function qe(s){localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&ye()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&ye()?he({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):fe({...s,setLocalStorageValue:!1,setSelectedTheme:!1})}function we({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Ve(e):s?he(e):fe(e)}function Ut(s){return D.value===s.storageThemeValueDark?fe(s):he(s)}function jt(s=pe){const e={...pe,...s},t=n.computed(()=>L.value===e.storageThemeValueDark),o=n.computed(()=>L.value===e.storageThemeValueLight),i=n.computed(()=>L.value===e.storageThemeValueSystem);return n.onMounted(()=>{localStorage[e.storageThemeKey]&&(D.value=localStorage[e.storageThemeKey],L.value=localStorage[e.storageThemeKey])}),{autoSetTheme:()=>qe(e),toggleTheme:()=>Ut(e),setSystemTheme:()=>Ve({...e,setLocalStorageValue:!0}),setDarkTheme:()=>we({...e,shouldSetDarkMode:!0}),setLightTheme:()=>we({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:o,hasSystemTheme:i,theme:D,selectedTheme:L}}const Rt=({componentName:s,instance:e,providedId:t})=>n.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Wt=()=>Y("aos"),Kt=()=>Y("wait"),Yt=()=>Y("toast"),Xt=({callback:s,options:e})=>new Ee(s,e),Zt=({callback:s,options:e})=>new Le(s,e),Qt=n.ref(),M=n.ref([]),Gt=(s,e)=>new Promise((t,o)=>{M.value=[...M.value,{id:s,isActive:!0,resolve:async()=>{await(e==null?void 0:e()),t(!0)},reject:o}]}),_e=s=>(M.value=M.value.filter(({id:e})=>e!==s),M.value),be=(s,e,t=!1)=>{var o;e&&((o=e[s])==null||o.call(e,t),e.isActive=!1,setTimeout(()=>{_e(e.id)},500))},Jt=()=>({confirmDialogData:Qt,dialogState:M,showDialogAndWaitChoice:Gt,removeDialogFromState:_e,rejectDialog:(s,e=!1)=>be("reject",s,e),resolveDialog:(s,e=!1)=>be("resolve",s,e)});exports.AosHandler=Fe;exports.IdleTimeout=Ee;exports.ScriptLoader=Ge;exports.ToasterHandler=Me;exports.UserVisibility=Le;exports.WaitHandler=De;exports._export_sfc=me;exports.capitalize=Pe;exports.countryCodeToUnicodeFlag=Je;exports.currency=Oe;exports.date=$e;exports.debounce=Qe;exports.directive=le;exports.directive$1=ce;exports.injectStrict=Y;exports.installDirectives=wt;exports.installFilters=kt;exports.installToaster=Bt;exports.instance=Ne;exports.isClient=I;exports.mount=ae;exports.number=He;exports.plugin=tt;exports.plugin$1=ut;exports.plugin$2=at;exports.plugin$3=nt;exports.plugin$4=qt;exports.plugin$5=_t;exports.sleep=H;exports.truthyFilter=ze;exports.useAos=Wt;exports.useIdleTimeout=Xt;exports.useInstanceUniqId=Rt;exports.useMazDialogPromise=Jt;exports.useThemeHandler=jt;exports.useTimer=Be;exports.useToast=Yt;exports.useUserVisibility=Zt;exports.useWait=Kt;exports.vFullscreenImg=de;exports.vFullscreenImgInstall=pt;exports.vLazyImg=Se;exports.vZoomImg=ue;
|
|
124
|
+
}`,ve={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>',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>',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>',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>'};class rt{constructor(e){l(this,"options");l(this,"loader");l(this,"wrapper");l(this,"img");l(this,"keydownHandler");l(this,"onImgLoadedCallback");l(this,"buttonsAdded");l(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(it);const o=document.createElement("div");o.classList.add("maz-zoom-img"),o.setAttribute("id","MazImgPreviewFullsize"),o.addEventListener("click",i=>{o.isEqualNode(i.target)&&this.closePreview()}),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),o.append(this.wrapper),document.body.append(o),this.keyboardEventHandler(!0),setTimeout(()=>{o&&o.classList.add("maz-animate")},100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],o=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,o){const i=this.getButton("previous"),d=this.getButton("next");t.push(i,d)}this.wrapper.append(e),o&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ve.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),(e.key==="Escape"||e.key===" ")&&this.closePreview(),(e.key==="ArrowLeft"||e.key==="ArrowRight")&&this.nextPreviousImage(e.key==="ArrowRight")}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=ve[e],t.addEventListener("click",()=>{e==="close"?this.closePreview():this.allInstances&&this.nextPreviousImage(e==="next")}),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),o=document.querySelector(".maz-zoom-img-instance.maz-is-open");o&&o.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout(()=>{e&&e.remove(),t&&t.remove()},300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,o=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(o){const i=this.allInstances.indexOf(o),d=t?i+1:i-1,h=this.allInstances[this.getNewInstanceIndex(d)];h&&this.useNextInstance(o,h)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const o=t.getAttribute("data-zoom-src"),i=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,o&&this.img.setAttribute("src",o),i&&this.img.setAttribute("alt",i)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let j;const ue={created(s,e){j=new rt(e),j.create(s)},updated(s,e){j.update(e)},unmounted(s){j.remove(s)}},at={install(s){s.directive("zoom-img",ue)}},lt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",re={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class xe{constructor(e={}){l(this,"observers",[]);l(this,"defaultOptions",re);l(this,"options");l(this,"onImgLoadedCallback");l(this,"onImgErrorCallback");l(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-AVNubSve.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,o;this.addClass(e,this.options.loadingClass),(o=(t=this.options).onLoading)==null||o.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,o;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(o=(t=this.options).onLoaded)==null||o.call(t,e)}imageHasError(e,t){var o,i;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(i=(o=this.options).onError)==null||i.call(o,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const o=this.getImgElement(e).getAttribute("data-lazy-src");if(o)return o;t.value;const i=typeof t.value=="object"?t.value.src:t.value;return i||console.warn("[maz-ui][MazLazyImg] src url is not defined"),i}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const o of t){const i=o.getAttribute("data-lazy-srcset");i?o.srcset=i:console.warn('[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),o=e.querySelectorAll("source");if(o.length>0)for await(const i of o)i.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",o=>this.onImgErrorCallback(e,o),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const o=this.getImageUrl(e,t);if(!o)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${o}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,o))}}setImgSrc(e,t){const o=this.getImgElement(e);o.src=t}handleIntersectionObserver(e,t,o,i){var d,h;this.observers.push(i);for(const c of o)if(c.isIntersecting){if((h=(d=this.options).onIntersecting)==null||h.call(d,c.target),this.options.observerOnce&&i.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const o=(h,c)=>{this.handleIntersectionObserver(e,t,h,c)},i=this.options.observerOptions;new IntersectionObserver(o,i).observe(e)}async imageHandler(e,t,o){if(o==="update")for await(const i of this.observers)i.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,o){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,o)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);setTimeout(()=>this.setBaseClass(e),0),e.getAttribute("src")||this.setImgSrc(e,lt),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const o of this.observers)o.unobserve(e);this.observers=[]}}let R;const Se={created(s,e){const t=typeof e.value=="object"?e.value:{};R=new xe(t),R.add(s,e)},updated(s,e){R.update(s,e)},unmounted(s,e){R.remove(s,e)}},ct="lazy-img",ut={install(s,e={}){const t={...re,...e,observerOptions:{...re.observerOptions,...e.observerOptions}},o=new xe(t);s.directive(ct,{created:o.add.bind(o),updated:o.update.bind(o),unmounted:o.remove.bind(o)})}},mt=["onClick","onKeypress"],dt={class:"m-fullscreen-img-scroller"},ht=["src","alt"],ft=n.defineComponent({__name:"MazFullscreenImg",props:{destroy:{type:Function,default:void 0},src:{},alt:{default:void 0},openInstanceClass:{},zoom:{type:Boolean,default:!0},disabled:{type:Boolean},clickedElementBounds:{},clickedElement:{},animated:{type:Boolean,default:!0},scaleAnimation:{type:Boolean}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-4FGq9uY1.cjs"))),i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),d=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-8yB0sLIf.cjs")));let h;n.onBeforeMount(async()=>{h=await import("vue-scrollto")});const c=s,v=n.ref(!1),g=n.ref(!1),p=n.ref(!1),f=n.ref(!1),b=n.ref(!1),y=n.ref(!1),z=n.ref(!1),k=n.ref(c.clickedElement instanceof HTMLImageElement),q=n.ref(c.src),x=n.ref(c.alt),S=n.ref(),u=n.ref(),E=n.computed(()=>k.value&&c.animated&&!c.scaleAnimation),P=n.computed(()=>(k.value||!c.animated)&&!c.scaleAnimation),O=n.ref(!1),X=n.computed(()=>y.value?`--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${O.value?"maz-h-screen maz-w-auto":"maz-h-auto maz-w-screen"}`:`cursor-zoom-out ${O.value?"maz-w-screen maz-h-screen --is-landscape":"maz-h-screen maz-w-auto"}`);function Z(){g.value=!0,p.value=!1,f.value=!0}function $(){t("before-close"),v.value=!1}function _(a){a.key==="Escape"&&(a.preventDefault(),$()),(a.key==="ArrowLeft"||a.key==="ArrowRight")&&(a.preventDefault(),A(a.key==="ArrowRight"))}function Q(){document.documentElement.classList.add("--m-fullscreen-open")}function G(){document.documentElement.classList.remove("--m-fullscreen-open")}function N(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function U(a,r){return r<0?a.length-1:r>=a.length?0:r}async function J(a,r){a.classList.remove(c.openInstanceClass),r.classList.add(c.openInstanceClass);const m=r.getAttribute("data-src"),w=r.getAttribute("data-alt");x.value=w??void 0,m&&(q.value=m),g.value=!1,await H(300),g.value||(p.value=!0)}function A(a){const r=document.querySelector(`.m-fullscreen-img-instance.${c.openInstanceClass}`);if(r){const m=N(),w=m.indexOf(r),C=a?w+1:w-1,L=m[U(m,C)];L&&J(r,L),t(a?"next":"previous")}}async function ee(a){const r=a.target;r.style.width=`${r.clientWidth}px`,r.style.height=`${r.clientHeight}px`,await H(0),y.value=!y.value,r.style.removeProperty("width"),r.style.removeProperty("height"),await H(0);const m=r.clientWidth/a.clientY,C=window.innerWidth/m-window.innerHeight/2;h.scrollTo(r,200,{container:r.parentElement,easing:"linear",offset:y.value?C:0})}n.onMounted(async()=>{await n.nextTick(),document.addEventListener("keydown",_),v.value=!0,p.value=!0,Q(),b.value=N().length>1,u.value&&(O.value=c.clickedElementBounds.height<c.clickedElementBounds.width)});function F(){u.value&&(z.value=!0,u.value.style.removeProperty("margin-left"),u.value.style.removeProperty("margin-right"),u.value.style.opacity="0.5",u.value.style.width=`${c.clickedElementBounds.width}px`,u.value.style.height=`${c.clickedElementBounds.height}px`,u.value.style.top=`${c.clickedElementBounds.top}px`,u.value.style.left=`${c.clickedElementBounds.left}px`)}async function te(){if(await H(0),u.value){u.value.style.opacity="1",u.value.style.removeProperty("height"),u.value.style.removeProperty("width"),u.value.style.removeProperty("transform");const a=window.innerWidth,r=window.innerHeight,m=c.clickedElementBounds.height,w=c.clickedElementBounds.width;if(O.value){u.value.style.left="0px";const C=m*a/w,L=(r-C)/2;u.value.style.top=`${L<=0?0:L}px`}else{u.value.style.top="0px";const C=w*r/m,L=(a-C)/2;u.value.style.left=`${L<=0?0:L}px`}}}function V(){u.value&&(u.value.style.removeProperty("top"),u.value.style.removeProperty("left"),u.value.style.marginLeft="auto",u.value.style.marginRight="auto",u.value.style.removeProperty("opacity")),z.value=!1}function se(){if(u.value){const{left:a,top:r}=u.value.getBoundingClientRect();u.value.style.left=`${a}px`,u.value.style.top=`${r}px`,u.value.style.width=`${u.value.width}px`,u.value.style.height=`${u.value.height}px`,z.value=!0}}function oe(){var a,r;t("close"),(a=S.value)==null||a.remove(),(r=c.destroy)==null||r.call(c)}return n.onBeforeUnmount(()=>{document.removeEventListener("keydown",_),G()}),(a,r)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:S,role:"button",class:n.normalizeClass(["m-fullscreen-img",{"--animation-active":z.value}]),tabindex:"0",onClick:n.withModifiers($,["self"]),onKeypress:n.withKeys(n.withModifiers($,["prevent"]),["esc"])},[n.withDirectives(n.createVNode(n.unref(o),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[n.vShow,p.value]]),f.value&&b.value?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:r[0]||(r[0]=n.withModifiers(m=>A(!0),["stop"]))},[n.createVNode(n.unref(d),{class:"maz-rotate-90 maz-text-2xl"})])):n.createCommentVNode("v-if",!0),v.value&&f.value&&b.value?(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:r[1]||(r[1]=n.withModifiers(m=>A(!1),["stop"]))},[n.createVNode(n.unref(d),{class:"maz-text-2xl"})])):n.createCommentVNode("v-if",!0),n.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:$},[n.createVNode(n.unref(i),{class:"maz-text-2xl"})]),n.createElementVNode("div",dt,[n.createVNode(n.Transition,{name:P.value?void 0:"maz-scale-fade",onBeforeEnter:r[3]||(r[3]=m=>E.value&&F()),onEnter:r[4]||(r[4]=m=>E.value&&te()),onAfterEnter:r[5]||(r[5]=m=>E.value&&V()),onBeforeLeave:r[6]||(r[6]=m=>E.value&&se()),onLeave:r[7]||(r[7]=m=>E.value&&F()),onAfterLeave:oe,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("img",{id:"ZvImgElement",ref_key:"ImgElement",ref:u,src:q.value,alt:x.value,tabindex:"0",class:n.normalizeClass([{zoomable:a.zoom},X.value]),onLoad:Z,onClick:r[2]||(r[2]=m=>a.zoom?ee(m):void 0)},null,42,ht),[[n.vShow,v.value]])]),_:1},8,["name"])])],42,mt))}}),me=(s,e)=>{const t=s.__vccOpts||s;for(const[o,i]of e)t[o]=i;return t},vt=me(ft,[["__scopeId","data-v-d0c959c7"]]),ge="m-fullscreen-is-open";class gt{constructor(){l(this,"options");l(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,animated:!0,zoom:!0,scaleAnimation:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener")}buildOptions(e,t){const o=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},i=(o==null?void 0:o.src)??this.getImgSrc(e),d=(o==null?void 0:o.alt)??this.getImgAlt(e);return{...this.defaultOptions,...o,src:i,alt:d}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var o;const t=((o=this.options)==null?void 0:o.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 300ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const o=this.getImgAlt(e);o&&e.setAttribute("data-alt",o),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)}update(e,t){this.options=this.buildOptions(e,t)}remove(e){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=""}renderPreview(e){return e.classList.add(ge),ae(vt,{props:{...this.options,openInstanceClass:ge,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.05)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let W;const de={mounted(s,e){return W=new gt,W.create(s,e)},updated(s,e){return W.update(s,e)},unmounted(s){return W.remove(s)}},pt={install(s){s.directive("fullscreen-img",de)}},yt=[{name:"click-outside",directive:le},{name:"closable",directive:ce},{name:"zoom-img",directive:ue},{name:"lazy-img",directive:Se},{name:"fullscreen-img",directive:de}],wt={install(s){for(const{name:e,directive:t}of yt)s.directive(e,t)}},Pe=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",bt={style:"currency",minimumFractionDigits:2,round:!1},zt=(s,e,t)=>{let o=Number(s);return t.round&&(o=Math.floor(o),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(o)},Et=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Oe=(s,e,t)=>{const o={...bt,...t};Et(s,e,o);try{return zt(s,e,o)}catch(i){throw new Error(`[maz-ui](FilterCurrency) ${i}`)}},Lt={month:"short",day:"numeric",year:"numeric"},$e=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const o=t??Lt;try{const i=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,o).format(i)}catch(i){throw new Error(`[maz-ui](FilterDate) ${i}`)}},It={minimumFractionDigits:2},He=(s,e,t)=>{const o={...It,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,o).format(Number(s))}catch(i){throw new Error(`[maz-ui](FilterNumber) ${i}`)}},Tt={capitalize:Pe,currency:Oe,date:$e,number:He},kt={install(s){s.provide("filters",Tt)}},Be=({timeout:s,callback:e,remainingTimeUpdate:t=200})=>{const o=n.ref(s);let i;function d(){o.value=s,h()}function h(){i||(i=setInterval(()=>{o.value-=t,o.value<=0&&(g(),e==null||e())},t))}function c(){i&&(clearInterval(i),i=void 0)}function v(){!i&&o.value>0&&h()}function g(){o.value=s,c()}return n.onBeforeUnmount(()=>{g()}),{remainingTime:o,start:d,pause:c,resume:v,stop:g}},At={class:"m-toast__message-wrapper"},Ct={class:"m-toast__message"},xt={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},Pt={class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},Ot=n.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info"},message:{type:String,required:!0},link:{type:Object,default:void 0},action:{type:Object,default:void 0},persistent:{type:Boolean,default:!1}},emits:["close","click","open"],setup(s,{emit:e}){const t=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-pl1zplR1.cjs"))),o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-jZfbSH7Z.cjs"))),d=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-Kk2Ygepb.cjs"))),h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-kdNsgBlF.cjs"))),c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-x2Q9nLP2.cjs"))),v=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-i22ikksA.cjs"))),g=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-3xy7UuBg.cjs"))),p=n.ref(),f=s,b=n.computed(()=>{switch(f.type){case"danger":return d;case"info":return c;case"success":return v;case"warning":return h;default:return}}),y=e,z=n.computed(()=>f.position.includes("top")?"top":"bottom"),k=n.computed(()=>f.position.includes("left")?"left":f.position.includes("right")?"right":"center"),q=n.computed(()=>k.value!=="center"?k.value==="right"?"m-slide-right":"m-slide-left":z.value==="top"?"m-slide-top":"m-slide-bottom"),x=n.ref(!1),S=n.ref(!1),u=n.ref(),E=`m-toast-container --${z.value} --${k.value}`,P=`.${E.replaceAll(" ",".")}`,{start:O,stop:X,pause:Z,resume:$,remainingTime:_}=Be({callback:V,timeout:f.timeout});function Q(){const a=document.querySelector(P);if(!a&&!a){const r=document.body,m=document.createElement("div");m.className=E,r.append(m)}}function G(){const a=document.querySelector(P);return!f.queue&&f.maxToasts===!1?!1:typeof f.maxToasts=="number"&&a?f.maxToasts<=a.childElementCount:a&&a.childElementCount>0}function N(){if(G()){u.value=setTimeout(N,250);return}const a=document.querySelector(P);p.value&&a&&a.prepend(p.value),S.value=!0,O()}const U=n.ref("100%");function J(){switch(f.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}n.watch(()=>_.value,a=>{if(typeof a=="number"){const r=100*a/f.timeout;U.value=`${r}%`,a<=0&&V()}});function A(a){y("click",a),f.persistent||V()}async function ee(a,r){var m;x.value=!0,await a(),x.value=!1,(m=f.action)!=null&&m.closeToast&&A(r)}function F(a){f.noPauseOnHover||(a?Z():$())}function te(){X(),u.value&&clearTimeout(u.value)}function V(){te(),S.value=!1}function se(){y("open")}function oe(){var r;y("close"),(r=p.value)==null||r.remove();const a=document.querySelector(P);a&&!(a!=null&&a.hasChildNodes())&&a.remove()}return n.onMounted(()=>{Q(),N()}),(a,r)=>(n.openBlock(),n.createBlock(n.Transition,{name:q.value,onAfterLeave:oe,onAfterEnter:se,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("button",{ref_key:"Toaster",ref:p,class:n.normalizeClass(["m-toast",[`--${s.type}`,`--${z.value}`,`--${k.value}`,{"maz-pb-1":s.timeout}]]),role:"alert",onMouseover:r[2]||(r[2]=m=>F(!0)),onMouseleave:r[3]||(r[3]=m=>F(!1)),onClick:r[4]||(r[4]=n.withModifiers(m=>{var w;return s.link&&!((w=s.link)!=null&&w.closeToast)?void 0:A(m)},["stop"]))},[b.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.value),{key:0,class:"maz-text-2xl"})):n.createCommentVNode("v-if",!0),n.createElementVNode("div",At,[n.createElementVNode("p",Ct,n.toDisplayString(s.message),1)]),s.action?(n.openBlock(),n.createBlock(n.unref(t),{key:1,"data-test":"action-btn",color:s.type,pastel:"",loading:x.value,size:"sm",onClick:r[0]||(r[0]=n.withModifiers(m=>ee(s.action.func,m),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):n.createCommentVNode("v-if",!0),s.link?(n.openBlock(),n.createBlock(n.unref(t),{key:2,"data-test":"link-btn",color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:n.withCtx(()=>{var m;return[n.createElementVNode("div",xt,[s.link.text?(n.openBlock(),n.createElementBlock("span",St,n.toDisplayString(s.link.text),1)):n.createCommentVNode("v-if",!0),((m=s.link)==null?void 0:m.target)=="_blank"?(n.openBlock(),n.createBlock(n.unref(i),{key:1,class:"maz-text-xl"})):(n.openBlock(),n.createBlock(n.unref(g),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):n.createCommentVNode("v-if",!0),s.persistent?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("button",{key:3,class:"--close",onClick:r[1]||(r[1]=n.withModifiers(m=>A(m),["stop"]))},[n.createVNode(n.unref(o),{class:"--icon maz-text-xl"})])),n.createElementVNode("div",Pt,[n.createElementVNode("div",{style:n.normalizeStyle({width:U.value}),class:n.normalizeClass(["maz-h-full maz-transition-all maz-duration-200 maz-ease-linear",J()])},null,6)])],34),[[n.vShow,S.value]])]),_:1},8,["name"]))}}),$t=me(Ot,[["__scopeId","data-v-ee210f61"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Me{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const o={message:e,...t},i={...Ht,...o,...this.globalOptions,...t};ae($t,{props:i,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Bt={install(s,e){exports.toastInstance=new Me(s,e),s.provide("toast",exports.toastInstance)}},B="",Mt=s=>s.filter((e,t,o)=>t===o.indexOf(e)),Dt=s=>(e=B)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Nt=s=>s.length>0,Ft=s=>(e=B)=>Mt([...s,e]),Vt=s=>(e=B)=>s.filter(t=>t!==e);class De{constructor(){l(this,"_loaders",n.ref([]))}get loaders(){return n.computed(()=>this._loaders.value)}stop(e=B){this._loaders.value=Vt(this._loaders.value)(e)}start(e=B){return this._loaders.value=Ft(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return n.computed(()=>Nt(this._loaders.value))}isLoading(e=B){return n.computed(()=>Dt(this._loaders.value)(e)).value}}const Ne=new De,qt={install:s=>{s.provide("wait",Ne)}},ie={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Fe{constructor(e){l(this,"options");this.options={delay:(e==null?void 0:e.delay)??ie.delay,observer:{...ie.observer,...e==null?void 0:e.observer},animation:{...ie.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const o of e){const d=o.target.getAttribute("data-maz-aos-children")==="true",h=o.target.getAttribute("data-maz-aos")?[o.target]:[];if(d){const c=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(v=>v.getAttribute("data-maz-aos-anchor")===`#${o.target.id}`?v:void 0);for(const v of c)v&&h.push(v)}for(const c of h){const v=c.getAttribute("data-maz-aos-once"),g=typeof v=="string"?v==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&o.intersectionRatio>this.options.observer.threshold){const p=c.getAttribute("data-maz-aos-duration"),f=c.getAttribute("data-maz-aos-delay");if(p||(c.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{c.style.transitionDuration="0"},1e3)),f||(c.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{c.style.transitionDelay="0"},1e3)),c.classList.add("maz-aos-animate"),g){const b=c.getAttribute("data-maz-aos-anchor");if(b){const y=document.querySelector(b);y&&t.unobserve(y)}t.unobserve(c)}}else c.classList.remove("maz-aos-animate")}}}async handleObserver(){await H(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const o=t.getAttribute("data-maz-aos-anchor");if(o){const i=document.querySelector(o);i?(i.setAttribute("data-maz-aos-children","true"),e.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${o}"`)}else e.observe(t)}}runAnimations(){if(T())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const _t={install:(s,e)=>{exports.instance$1=new Fe(e),s.provide("aos",exports.instance$1),T()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},pe={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system"},D=n.ref("system"),I=n.ref("system");function he({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:o,setLocalStorageValue:i=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(e),document.documentElement.classList.add(s),D.value=o,d&&(I.value=o),i&&(localStorage[t]=o)}function fe({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:o,setLocalStorageValue:i=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(s),document.documentElement.classList.add(e),D.value=o,d&&(I.value=o),i&&(localStorage[t]=o)}function Ve(s){document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),D.value=s.storageThemeValueSystem,I.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),qe({...s,setSelectedTheme:!1})}function ye(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function qe(s){localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&ye()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&ye()?he({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):fe({...s,setLocalStorageValue:!1,setSelectedTheme:!1})}function we({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Ve(e):s?he(e):fe(e)}function Ut(s){return D.value===s.storageThemeValueDark?fe(s):he(s)}function jt(s=pe){const e={...pe,...s},t=n.computed(()=>I.value===e.storageThemeValueDark),o=n.computed(()=>I.value===e.storageThemeValueLight),i=n.computed(()=>I.value===e.storageThemeValueSystem);return n.onMounted(()=>{localStorage[e.storageThemeKey]&&(D.value=localStorage[e.storageThemeKey],I.value=localStorage[e.storageThemeKey])}),{autoSetTheme:()=>qe(e),toggleTheme:()=>Ut(e),setSystemTheme:()=>Ve({...e,setLocalStorageValue:!0}),setDarkTheme:()=>we({...e,shouldSetDarkMode:!0}),setLightTheme:()=>we({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:o,hasSystemTheme:i,theme:D,selectedTheme:I}}const Rt=({componentName:s,instance:e,providedId:t})=>n.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Wt=()=>Y("aos"),Kt=()=>Y("wait"),Yt=()=>Y("toast"),Xt=({callback:s,options:e})=>new Ee(s,e),Zt=({callback:s,options:e})=>new Le(s,e),Qt=n.ref(),M=n.ref([]),Gt=(s,e)=>new Promise((t,o)=>{M.value=[...M.value,{id:s,isActive:!0,resolve:async()=>{await(e==null?void 0:e()),t(!0)},reject:o}]}),_e=s=>(M.value=M.value.filter(({id:e})=>e!==s),M.value),be=(s,e,t=!1)=>{var o;e&&((o=e[s])==null||o.call(e,t),e.isActive=!1,setTimeout(()=>{_e(e.id)},500))},Jt=()=>({confirmDialogData:Qt,dialogState:M,showDialogAndWaitChoice:Gt,removeDialogFromState:_e,rejectDialog:(s,e=!1)=>be("reject",s,e),resolveDialog:(s,e=!1)=>be("resolve",s,e)});exports.AosHandler=Fe;exports.IdleTimeout=Ee;exports.ScriptLoader=Ge;exports.ToasterHandler=Me;exports.UserVisibility=Le;exports.WaitHandler=De;exports._export_sfc=me;exports.capitalize=Pe;exports.countryCodeToUnicodeFlag=Je;exports.currency=Oe;exports.date=$e;exports.debounce=Qe;exports.directive=le;exports.directive$1=ce;exports.injectStrict=Y;exports.installDirectives=wt;exports.installFilters=kt;exports.installToaster=Bt;exports.instance=Ne;exports.isClient=T;exports.mount=ae;exports.number=He;exports.plugin=tt;exports.plugin$1=ut;exports.plugin$2=at;exports.plugin$3=nt;exports.plugin$4=qt;exports.plugin$5=_t;exports.sleep=H;exports.truthyFilter=ze;exports.useAos=Wt;exports.useIdleTimeout=Xt;exports.useInstanceUniqId=Rt;exports.useMazDialogPromise=Jt;exports.useThemeHandler=jt;exports.useTimer=Be;exports.useToast=Yt;exports.useUserVisibility=Zt;exports.useWait=Kt;exports.vFullscreenImg=de;exports.vFullscreenImgInstall=pt;exports.vLazyImg=Se;exports.vZoomImg=ue;
|
package/modules/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-eNQnoHF9.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$5;exports.installDirectives=e.installDirectives;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$4;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useMazDialogPromise=e.useMazDialogPromise;exports.useThemeHandler=e.useThemeHandler;exports.useTimer=e.useTimer;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$3;exports.vFullscreenImg=e.vFullscreenImg;exports.vFullscreenImgInstall=e.vFullscreenImgInstall;exports.vLazyImg=e.vLazyImg;exports.vLazyImgInstall=e.plugin$1;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$2;exports.waitInstance=e.instance;
|
package/modules/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as T, o as y, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, N as S, J as f, L as j, H as q, e as w, p as x, l as M, n as O, j as V, k as Z, v as B, f as E, g as G, h as J, A as K } from "./chunks/index-
|
|
1
|
+
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as T, o as y, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, N as S, J as f, L as j, H as q, e as w, p as x, l as M, n as O, j as V, k as Z, v as B, f as E, g as G, h as J, A as K } from "./chunks/index-bXD69qtB.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AosHandler,
|
|
4
4
|
l as IdleTimeout,
|
package/nuxt/index.json
CHANGED