maz-ui 3.27.3 → 3.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/components/MazAvatar.mjs +1 -1
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCarousel.mjs +1 -1
  6. package/components/MazDialog.mjs +1 -1
  7. package/components/MazDialogPromise.mjs +1 -1
  8. package/components/MazDrawer.mjs +1 -1
  9. package/components/MazDropdown.mjs +1 -1
  10. package/components/MazInput.mjs +1 -1
  11. package/components/MazInputNumber.mjs +1 -1
  12. package/components/MazInputPrice.mjs +1 -1
  13. package/components/MazInputTags.mjs +1 -1
  14. package/components/MazLazyImg.mjs +1 -1
  15. package/components/MazPhoneNumberInput.mjs +1 -1
  16. package/components/MazPicker.mjs +1 -1
  17. package/components/MazSelect.mjs +1 -1
  18. package/components/MazTabsBar.mjs +23 -23
  19. package/components/assets/MazAccordion.css +1 -1
  20. package/components/assets/MazAvatar.css +1 -1
  21. package/components/assets/MazBtn.css +1 -1
  22. package/components/assets/MazInputTags.css +1 -1
  23. package/components/assets/MazLazyImg.css +1 -1
  24. package/components/assets/MazTabsBar.css +1 -1
  25. package/components/chunks/{MazAvatar-R8NMQtnF.mjs → MazAvatar-HJMP2asX.mjs} +2 -2
  26. package/components/chunks/{MazBottomSheet-drApWHKD.mjs → MazBottomSheet-lN1FCdEJ.mjs} +1 -1
  27. package/components/chunks/{MazBtn-IgbmV5Ee.mjs → MazBtn-1HG8e-TR.mjs} +3 -3
  28. package/components/chunks/{MazBtn-oJQ1RO5m.mjs → MazBtn-1wfj_m47.mjs} +2 -2
  29. package/components/chunks/{MazBtn-SGGl5Y2V.mjs → MazBtn-75uMWztZ.mjs} +3 -3
  30. package/components/chunks/MazBtn-Ho_JsY-3.mjs +152 -0
  31. package/components/chunks/{MazBtn-Em4ZfNtB.mjs → MazBtn-aeOcptVQ.mjs} +3 -3
  32. package/components/chunks/MazBtn-e7VeHVh0.mjs +152 -0
  33. package/components/chunks/MazBtn-hDvvJ5wM.mjs +152 -0
  34. package/components/chunks/{MazBtn-eAtf8962.mjs → MazBtn-hVmJi-uK.mjs} +3 -3
  35. package/components/chunks/{MazBtn-73oIPj7p.mjs → MazBtn-ihybeYfj.mjs} +3 -3
  36. package/components/chunks/{MazBtn-fZS7THSf.mjs → MazBtn-l5heH9BB.mjs} +3 -3
  37. package/components/chunks/MazBtn-q_j1isrL.mjs +152 -0
  38. package/components/chunks/{MazBtn-Y-4Wyhxt.mjs → MazBtn-sUd8NHwp.mjs} +3 -3
  39. package/components/chunks/{MazBtn-95KJ9tBu.mjs → MazBtn-tjMMZdlj.mjs} +1 -1
  40. package/components/chunks/{MazBtn-0G720KFq.mjs → MazBtn-xF3JhNDM.mjs} +2 -2
  41. package/components/chunks/{MazCard-znS4eBr9.mjs → MazCard-cwUZUG7s.mjs} +1 -1
  42. package/components/chunks/{MazCarousel-yAhPk8-A.mjs → MazCarousel-TalH9tUI.mjs} +1 -1
  43. package/components/chunks/{MazCheckbox-040sZ9b7.mjs → MazCheckbox-UsaGBQwX.mjs} +1 -1
  44. package/components/chunks/{MazCheckbox-BteTmQpl.mjs → MazCheckbox-bIUpH7sU.mjs} +1 -1
  45. package/components/chunks/{MazDialog-EZjFsf0O.mjs → MazDialog-4hwbB9Pu.mjs} +1 -1
  46. package/components/chunks/{MazDialogPromise-yoXSjvLK.mjs → MazDialogPromise-S5KZWzcc.mjs} +2 -2
  47. package/components/chunks/{MazDrawer-ZR2j8Mqv.mjs → MazDrawer-_GgnPn3R.mjs} +1 -1
  48. package/components/chunks/{MazGallery-jZ9ajNeH.mjs → MazGallery-Y-ol1_h4.mjs} +1 -1
  49. package/components/chunks/{MazInput-q3iDdMgc.mjs → MazInput-h4Rs2XYn.mjs} +1 -1
  50. package/components/chunks/{MazInput-zNyOjGAR.mjs → MazInput-yHHDCRaH.mjs} +1 -1
  51. package/components/chunks/{MazInput-LCCiCc7N.mjs → MazInput-ygxp70-3.mjs} +2 -2
  52. package/components/chunks/{MazInputPrice-ONXFfwa4.mjs → MazInputPrice-ZGeD_WE9.mjs} +1 -1
  53. package/components/chunks/{MazInputTags-w6pWjo55.mjs → MazInputTags-c_GGD8Rk.mjs} +2 -2
  54. package/components/chunks/{MazLazyImg-2j5YjrWS.mjs → MazLazyImg-440YmAhx.mjs} +2 -2
  55. package/components/chunks/{MazLazyImg-ZOc12h_Y.mjs → MazLazyImg-65QIsZ1B.mjs} +3 -3
  56. package/components/chunks/{MazPhoneNumberInput-4OkEx4jv.mjs → MazPhoneNumberInput-RJZxI6Ov.mjs} +2 -2
  57. package/components/chunks/{MazPicker-UBR0lHof.mjs → MazPicker--SpH1ACw.mjs} +2 -2
  58. package/components/chunks/{MazPickerCalendar-Xy4G6r6A.mjs → MazPickerCalendar-dq57Doac.mjs} +3 -3
  59. package/components/chunks/{MazPickerHeader-DiF0_JE9.mjs → MazPickerHeader-vADXyCp_.mjs} +1 -1
  60. package/components/chunks/{MazPickerMonthSwitcher-VndGziD8.mjs → MazPickerMonthSwitcher-aeRVlsoy.mjs} +2 -2
  61. package/components/chunks/{MazPickerShortcuts-8IpuBoq1.mjs → MazPickerShortcuts-2IhArlZ9.mjs} +2 -2
  62. package/components/chunks/{MazPickerTime-Qz5fvLJ-.mjs → MazPickerTime-ImYGbQI8.mjs} +2 -2
  63. package/components/chunks/{MazPickerYearSwitcher-zm5oZkNy.mjs → MazPickerYearSwitcher-pXTsByr2.mjs} +3 -3
  64. package/components/chunks/{MazSelect-5x7-tPsR.mjs → MazSelect-uJKJJNB9.mjs} +2 -2
  65. package/components/chunks/{MazSpinner-9u_-L8ML.mjs → MazSpinner-EmXW48S8.mjs} +1 -1
  66. package/components/chunks/{MazSpinner-7Vna5BJr.mjs → MazSpinner-PAKaV_kV.mjs} +1 -1
  67. package/components/chunks/MazSpinner-QH5vPuqi.mjs +38 -0
  68. package/components/chunks/MazSpinner-RhkqC4sZ.mjs +38 -0
  69. package/components/chunks/{MazSpinner-JXdItxJj.mjs → MazSpinner-W3TVtT8l.mjs} +1 -1
  70. package/components/chunks/MazSpinner-WyW51HfP.mjs +38 -0
  71. package/components/chunks/MazSpinner-_b04NIxo.mjs +38 -0
  72. package/components/chunks/{MazSpinner-2AK60imc.mjs → MazSpinner-n6W-1Z6P.mjs} +1 -1
  73. package/components/chunks/MazSpinner-o8W7u7BZ.mjs +38 -0
  74. package/components/chunks/{MazSpinner-nP10KfBk.mjs → MazSpinner-pzC3nmKA.mjs} +1 -1
  75. package/components/chunks/MazSpinner-qBW8Wt2P.mjs +38 -0
  76. package/components/chunks/{MazSpinner-JhfMzwsy.mjs → MazSpinner-qwEk1DME.mjs} +1 -1
  77. package/components/chunks/MazSpinner-rJ9z86Wt.mjs +38 -0
  78. package/components/chunks/MazSpinner-sGO8fGeU.mjs +38 -0
  79. package/components/chunks/{MazSpinner-A7gRQVNG.mjs → MazSpinner-tcjX1fe3.mjs} +1 -1
  80. package/components/chunks/{MazSpinner-OW4qLm4s.mjs → MazSpinner-wkIScBpQ.mjs} +1 -1
  81. package/components/chunks/{MazTransitionExpand-1uzTVgwH.mjs → MazTransitionExpand-wUHMfp4T.mjs} +1 -1
  82. package/modules/assets/MazBtn.css +1 -1
  83. package/modules/chunks/{MazBtn-3TYxMkGZ.cjs → MazBtn-BjjqJeyy.cjs} +1 -1
  84. package/modules/chunks/{MazBtn-wOqW0bFf.mjs → MazBtn-i7A6854I.mjs} +3 -3
  85. package/modules/chunks/{MazIcon-TFXJ2PBi.mjs → MazIcon-_zmW6Z2N.mjs} +1 -1
  86. package/modules/chunks/{MazIcon-32UkLi-M.cjs → MazIcon-mZNgyUkv.cjs} +1 -1
  87. package/modules/chunks/{MazSpinner-TJZrBgdd.cjs → MazSpinner-mn9MhxbV.cjs} +1 -1
  88. package/modules/chunks/{MazSpinner-6RF2OtIj.mjs → MazSpinner-zUQyynC3.mjs} +1 -1
  89. package/modules/chunks/{index-nQuj1wnX.cjs → index-DCZgntsf.cjs} +1 -1
  90. package/modules/chunks/{index-pnkqarBd.mjs → index-ezXyG63J.mjs} +2 -2
  91. package/modules/index.cjs +1 -1
  92. package/modules/index.mjs +1 -1
  93. package/nuxt/index.json +1 -1
  94. package/package.json +1 -1
  95. package/components/chunks/MazBtn-ggfhWpbM.mjs +0 -152
  96. package/components/chunks/MazBtn-sGPOyYvj.mjs +0 -152
  97. package/components/chunks/MazBtn-uw-YkQ80.mjs +0 -152
  98. package/components/chunks/MazBtn-wUxQs39Y.mjs +0 -152
  99. package/components/chunks/MazSpinner-Dn7COlhQ.mjs +0 -38
  100. package/components/chunks/MazSpinner-GJGAn0qK.mjs +0 -38
  101. package/components/chunks/MazSpinner-K1fdNrVH.mjs +0 -38
  102. package/components/chunks/MazSpinner-Vv3pXh18.mjs +0 -38
  103. package/components/chunks/MazSpinner-aqN2yL-8.mjs +0 -38
  104. package/components/chunks/MazSpinner-nDXJSe-h.mjs +0 -38
  105. package/components/chunks/MazSpinner-owcOzkqd.mjs +0 -38
  106. package/components/chunks/MazSpinner-rKuiVIIl.mjs +0 -38
@@ -1 +1 @@
1
- var S=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-nQuj1wnX.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-TJZrBgdd.cjs"))),a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-32UkLi-M.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-f1bac25e"]]);exports.default=C;
1
+ var S=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-DCZgntsf.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-mn9MhxbV.cjs"))),a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-mZNgyUkv.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-pnkqarBd.mjs";
3
+ import { _ as N } from "./index-ezXyG63J.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-6RF2OtIj.mjs")), c = z(() => import("./MazIcon-TFXJ2PBi.mjs")), { href: B, to: h } = E(), b = L(), n = e;
43
+ const p = z(() => import("./MazSpinner-zUQyynC3.mjs")), c = z(() => import("./MazIcon-_zmW6Z2N.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
  });
@@ -146,7 +146,7 @@ const P = /* @__PURE__ */ M({
146
146
  /* FORWARDED */
147
147
  }, 8, ["disabled", "class", "type"]));
148
148
  }
149
- }), j = /* @__PURE__ */ N(P, [["__scopeId", "data-v-f1bac25e"]]);
149
+ }), j = /* @__PURE__ */ N(P, [["__scopeId", "data-v-3f2db58e"]]);
150
150
  export {
151
151
  j as default
152
152
  };
@@ -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-pnkqarBd.mjs";
2
+ import { i as q } from "./index-ezXyG63J.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-nQuj1wnX.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-DCZgntsf.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 +1 @@
1
- var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-nQuj1wnX.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
+ var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DCZgntsf.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-pnkqarBd.mjs";
3
+ import { _ as p } from "./index-ezXyG63J.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" },
@@ -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-TJZrBgdd.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-3TYxMkGZ.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-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;
@@ -779,7 +779,7 @@ const gt = {
779
779
  },
780
780
  emits: ["close", "previous", "next", "before-close"],
781
781
  setup(s, { emit: e }) {
782
- const t = e, i = w(() => import("./MazSpinner-6RF2OtIj.mjs")), o = w(() => import("./x-mark-pPwcH6Hz.mjs")), m = w(() => import("./chevron-left-48sF6neb.mjs"));
782
+ const t = e, i = w(() => import("./MazSpinner-zUQyynC3.mjs")), o = w(() => import("./x-mark-pPwcH6Hz.mjs")), m = w(() => import("./chevron-left-48sF6neb.mjs"));
783
783
  let d;
784
784
  tt(async () => {
785
785
  d = await import("vue-scrollto");
@@ -1182,7 +1182,7 @@ const Ye = {
1182
1182
  },
1183
1183
  emits: ["close", "click", "open"],
1184
1184
  setup(s, { emit: e }) {
1185
- const t = w(() => import("./MazBtn-wOqW0bFf.mjs")), i = w(() => import("./x-mark-pPwcH6Hz.mjs")), o = w(
1185
+ const t = w(() => import("./MazBtn-i7A6854I.mjs")), i = w(() => import("./x-mark-pPwcH6Hz.mjs")), o = w(
1186
1186
  () => import("./arrow-top-right-on-square-JGWhrxDH.mjs")
1187
1187
  ), m = w(
1188
1188
  () => import("./exclamation-triangle-KCpIguWV.mjs")
package/modules/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-nQuj1wnX.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-DCZgntsf.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-pnkqarBd.mjs";
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-ezXyG63J.mjs";
2
2
  export {
3
3
  e as AosHandler,
4
4
  l as IdleTimeout,
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.27.3"
7
+ "version": "3.28.0"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.27.3",
3
+ "version": "3.28.0",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -1,152 +0,0 @@
1
- import "../assets/MazBtn.css";
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 "./MazCarousel-yAhPk8-A.mjs";
4
- const P = /* @__PURE__ */ M({
5
- __name: "MazBtn",
6
- props: {
7
- variant: {
8
- type: String,
9
- default: "button",
10
- validator: (e) => ["button", "link"].includes(e)
11
- },
12
- size: {
13
- type: String,
14
- default: "md",
15
- validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
16
- },
17
- color: {
18
- type: String,
19
- default: "primary"
20
- },
21
- type: {
22
- type: String,
23
- default: "button",
24
- validator: (e) => ["button", "submit", "reset"].includes(e)
25
- },
26
- rounded: { type: Boolean, default: !1 },
27
- noRounded: { type: Boolean, default: !1 },
28
- outline: { type: Boolean, default: !1 },
29
- pastel: { type: Boolean, default: !1 },
30
- block: { type: Boolean, default: !1 },
31
- noUnderline: { type: Boolean, default: !1 },
32
- noLeading: { type: Boolean, default: !1 },
33
- loading: { type: Boolean, default: !1 },
34
- disabled: { type: Boolean, default: !1 },
35
- fab: { type: Boolean, default: !1 },
36
- icon: { type: String, default: void 0 },
37
- leftIcon: { type: String, default: void 0 },
38
- rightIcon: { type: String, default: void 0 },
39
- noPadding: { type: Boolean, default: !1 },
40
- noElevation: { type: Boolean, default: !1 }
41
- },
42
- setup(e) {
43
- const p = z(() => import("./MazSpinner-2AK60imc.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
44
- R(() => {
45
- n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
46
- });
47
- const f = t(() => B ? "a" : h ? "router-link" : "button"), k = t(
48
- () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
49
- ), m = t(
50
- () => (n.loading || n.disabled) && f.value === "button"
51
- ), I = t(() => m.value ? "--cursor-default" : "--cursor-pointer"), x = t(() => `--is-${n.variant}`), l = t(() => n.loading && n.variant === "button"), y = t(() => !!b["left-icon"] || n.leftIcon), g = t(() => !!b["right-icon"] || n.rightIcon), C = t(() => y.value || g.value), S = t(() => n.fab && n.icon), $ = t(() => f.value === "button" ? n.type : void 0);
52
- return (s, U) => (o(), i(w(f.value), {
53
- disabled: m.value,
54
- class: u(["m-btn", [
55
- `--${e.size}`,
56
- k.value,
57
- I.value,
58
- x.value,
59
- {
60
- "--block": e.block,
61
- "--no-underline": e.noUnderline,
62
- "--no-leading": e.noLeading,
63
- "--fab": e.fab,
64
- "--loading": e.loading,
65
- "--disabled": m.value,
66
- "--icon": C.value,
67
- "--rounded": e.rounded,
68
- "--no-rounded": e.noRounded,
69
- "--no-padding": e.noPadding,
70
- "--no-elevation": e.noElevation
71
- }
72
- ]]),
73
- type: $.value
74
- }, {
75
- default: A(() => [
76
- y.value ? (o(), v(
77
- "div",
78
- {
79
- key: 0,
80
- class: u(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": l.value }])
81
- },
82
- [
83
- r(s.$slots, "left-icon", {}, () => [
84
- e.leftIcon ? (o(), i(d(c), {
85
- key: 0,
86
- name: e.leftIcon
87
- }, null, 8, ["name"])) : a("v-if", !0)
88
- ], !0)
89
- ],
90
- 2
91
- /* CLASS */
92
- )) : a("v-if", !0),
93
- S.value ? (o(), v(
94
- "div",
95
- {
96
- key: 1,
97
- class: u(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": l.value }])
98
- },
99
- [
100
- r(s.$slots, "icon", {}, () => [
101
- e.icon ? (o(), i(d(c), {
102
- key: 0,
103
- name: e.icon
104
- }, null, 8, ["name"])) : a("v-if", !0)
105
- ], !0)
106
- ],
107
- 2
108
- /* CLASS */
109
- )) : a("v-if", !0),
110
- D(
111
- "span",
112
- {
113
- class: u(["maz-flex maz-flex-center", { "maz-invisible": l.value }])
114
- },
115
- [
116
- r(s.$slots, "default", {}, void 0, !0)
117
- ],
118
- 2
119
- /* CLASS */
120
- ),
121
- g.value ? (o(), v(
122
- "div",
123
- {
124
- key: 2,
125
- class: u(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": l.value }])
126
- },
127
- [
128
- r(s.$slots, "right-icon", {}, () => [
129
- e.rightIcon ? (o(), i(d(c), {
130
- key: 0,
131
- name: e.rightIcon
132
- }, null, 8, ["name"])) : a("v-if", !0)
133
- ], !0)
134
- ],
135
- 2
136
- /* CLASS */
137
- )) : a("v-if", !0),
138
- l.value ? (o(), i(d(p), {
139
- key: 3,
140
- size: "2em",
141
- color: e.color,
142
- class: "maz-absolute"
143
- }, null, 8, ["color"])) : a("v-if", !0)
144
- ]),
145
- _: 3
146
- /* FORWARDED */
147
- }, 8, ["disabled", "class", "type"]));
148
- }
149
- }), j = /* @__PURE__ */ N(P, [["__scopeId", "data-v-f1bac25e"]]);
150
- export {
151
- j as default
152
- };