maz-ui 3.32.2 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/components/MazDropdown.d.ts +7 -1
  2. package/components/MazDropdown.mjs +125 -119
  3. package/components/MazPagination.d.ts +98 -0
  4. package/components/MazPagination.mjs +4 -0
  5. package/components/MazPhoneNumberInput.mjs +1 -1
  6. package/components/MazSelect.mjs +1 -1
  7. package/components/MazTable.d.ts +2 -2
  8. package/components/MazTable.mjs +1 -1
  9. package/components/assets/MazDropdown.css +1 -1
  10. package/components/assets/MazPagination.css +1 -0
  11. package/components/assets/MazPhoneNumberInput.css +1 -1
  12. package/components/assets/MazSelect.css +1 -1
  13. package/components/assets/MazTable.css +1 -1
  14. package/components/chunks/{MazBtn-BSbEqTOO.mjs → MazBtn-BdEnwPnp.mjs} +2 -2
  15. package/components/chunks/{MazBtn-EtLqM2iD.mjs → MazBtn-DEM8T_xK.mjs} +2 -2
  16. package/components/chunks/{MazCheckbox-BPkflsJh.mjs → MazCheckbox-DDw-_poJ.mjs} +1 -1
  17. package/components/chunks/{MazCheckbox-CPcllL6q.mjs → MazCheckbox-DKvq4VIy.mjs} +1 -1
  18. package/components/chunks/{MazIcon-CtSznV7P.mjs → MazIcon-CSZF8Zgz.mjs} +1 -1
  19. package/components/chunks/MazPagination-Br-f0ZVV.mjs +389 -0
  20. package/components/chunks/{MazPhoneNumberInput-XtiVMdCD.mjs → MazPhoneNumberInput-srnmCNgX.mjs} +46 -45
  21. package/components/chunks/{MazSelect-DR7qJS0-.mjs → MazSelect-qw3H2BrO.mjs} +161 -160
  22. package/components/chunks/{MazSpinner-CzQz8yXB.mjs → MazSpinner-6_mdlWzG.mjs} +1 -1
  23. package/components/chunks/{MazSpinner-DqdhKhP4.mjs → MazSpinner-Ben5F7h9.mjs} +1 -1
  24. package/components/chunks/MazSpinner-DpeLSgmM.mjs +38 -0
  25. package/components/chunks/{MazSpinner-DB5-SHwJ.mjs → MazSpinner-Pnq_8QwR.mjs} +1 -1
  26. package/components/chunks/{MazTable-DX4Pdzt_.mjs → MazTable-BL_3hR2Z.mjs} +120 -119
  27. package/components/chunks/chevron-double-left-zoBBzOlh.mjs +30 -0
  28. package/components/chunks/ellipsis-horizontal-VGAsnCwV.mjs +30 -0
  29. package/components/index.d.ts +1 -0
  30. package/components/index.mjs +1 -0
  31. package/css/main.css +1 -1
  32. package/modules/chunks/{MazBtn-eN8rfU-2.cjs → MazBtn-Ds3ljkPz.cjs} +1 -1
  33. package/modules/chunks/{MazBtn-DzJx2DA3.mjs → MazBtn-slucsujG.mjs} +2 -2
  34. package/modules/chunks/{MazIcon-DaoNEj_U.cjs → MazIcon-BFDvFiQo.cjs} +1 -1
  35. package/modules/chunks/{MazIcon-e9fryb1P.mjs → MazIcon-DaJQEFh2.mjs} +1 -1
  36. package/modules/chunks/{MazSpinner-DvCq0zSA.cjs → MazSpinner-B2otf393.cjs} +1 -1
  37. package/modules/chunks/{MazSpinner-BHGuV2dF.mjs → MazSpinner-_fcsae1V.mjs} +1 -1
  38. package/modules/chunks/{index-DYwwNo_Y.cjs → index-B48OKfFt.cjs} +2 -2
  39. package/modules/chunks/{index-CcXCRwty.mjs → index-CWAO7a8o.mjs} +451 -440
  40. package/modules/index.cjs +1 -1
  41. package/modules/index.mjs +1 -1
  42. package/nuxt/index.json +1 -1
  43. package/package.json +15 -15
  44. package/types/components/MazDropdown.vue.d.ts +7 -1
  45. package/types/components/MazPagination.vue.d.ts +98 -0
  46. package/types/components/MazTable.vue.d.ts +2 -2
  47. package/types/components/index.d.ts +1 -0
  48. package/types/modules/composables/use-theme-handler.d.ts +1 -0
@@ -0,0 +1,30 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: "1em",
5
+ height: "1em",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24"
8
+ }, r = /* @__PURE__ */ t(
9
+ "path",
10
+ {
11
+ stroke: "currentColor",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ "stroke-width": "1.5",
15
+ d: "m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
16
+ },
17
+ null,
18
+ -1
19
+ /* HOISTED */
20
+ ), c = [
21
+ r
22
+ ];
23
+ function l(s, i) {
24
+ return e(), o("svg", n, [...c]);
25
+ }
26
+ const h = { render: l };
27
+ export {
28
+ h as default,
29
+ l as render
30
+ };
@@ -0,0 +1,30 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: "1em",
5
+ height: "1em",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24"
8
+ }, r = /* @__PURE__ */ t(
9
+ "path",
10
+ {
11
+ stroke: "currentColor",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ "stroke-width": "1.5",
15
+ d: "M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0"
16
+ },
17
+ null,
18
+ -1
19
+ /* HOISTED */
20
+ ), s = [
21
+ r
22
+ ];
23
+ function i(l, c) {
24
+ return e(), o("svg", n, [...s]);
25
+ }
26
+ const a = { render: i };
27
+ export {
28
+ a as default,
29
+ i as render
30
+ };
@@ -24,6 +24,7 @@ export { default as MazInputPrice } from './MazInputPrice.js';
24
24
  export { default as MazInputTags } from './MazInputTags.js';
25
25
  export { default as MazLazyImg } from './MazLazyImg.js';
26
26
  export { default as MazLoadingBar } from './MazLoadingBar.js';
27
+ export { default as MazPagination } from './MazPagination.js';
27
28
  export { default as MazPhoneNumberInput } from './MazPhoneNumberInput.js';
28
29
  export { default as MazPicker } from './MazPicker.js';
29
30
  export { default as MazPullToRefresh } from './MazPullToRefresh.js';
@@ -26,6 +26,7 @@ export { default as MazInputPrice } from './MazInputPrice.mjs'
26
26
  export { default as MazInputTags } from './MazInputTags.mjs'
27
27
  export { default as MazLazyImg } from './MazLazyImg.mjs'
28
28
  export { default as MazLoadingBar } from './MazLoadingBar.mjs'
29
+ export { default as MazPagination } from './MazPagination.mjs'
29
30
  export { default as MazPhoneNumberInput } from './MazPhoneNumberInput.mjs'
30
31
  export { default as MazPicker } from './MazPicker.mjs'
31
32
  export { default as MazPullToRefresh } from './MazPullToRefresh.mjs'
package/css/main.css CHANGED
@@ -1 +1 @@
1
- *,:after,:before{border:0 solid;-webkit-box-sizing:border-box;box-sizing:border-box}button{background-color:transparent}button,input,optgroup,select,textarea{font-family:inherit;font-size:1em;line-height:1.15;margin:0}:root{--maz-color-white:#fff;--maz-color-white-contrast:#000;--maz-color-black:#000;--maz-color-black-contrast:#fff;--maz-color-primary-50:#e6f2ff;--maz-color-primary-100:#bddeff;--maz-color-primary-200:#94c9ff;--maz-color-primary-300:#6bb5ff;--maz-color-primary-400:#47a3ff;--maz-color-primary:#1f8fff;--maz-color-primary-600:#1975d2;--maz-color-primary-700:#145ca3;--maz-color-primary-800:#0e4277;--maz-color-primary-900:#092b4e;--maz-color-primary-alpha:rgba(31,143,255,.6);--maz-color-primary-alpha-20:rgba(31,143,255,.2);--maz-color-primary-alpha-10:rgba(31,143,255,.1);--maz-color-primary-alpha-05:rgba(31,143,255,.05);--maz-color-primary-contrast:#fff;--maz-color-secondary-50:#e2f9f3;--maz-color-secondary-100:#bbf1e3;--maz-color-secondary-200:#95e9d3;--maz-color-secondary-300:#6be1c1;--maz-color-secondary-400:#45d9b1;--maz-color-secondary:#1cce9f;--maz-color-secondary-600:#17ab83;--maz-color-secondary-700:#128768;--maz-color-secondary-800:#0d634c;--maz-color-secondary-900:#083f31;--maz-color-secondary-alpha:rgba(28,206,159,.6);--maz-color-secondary-alpha-20:rgba(28,206,159,.2);--maz-color-secondary-alpha-10:rgba(28,206,159,.1);--maz-color-secondary-alpha-05:rgba(28,206,159,.05);--maz-color-secondary-contrast:#fff;--maz-color-info-50:#e4f4f7;--maz-color-info-100:#b8e3ea;--maz-color-info-200:#92d3dd;--maz-color-info-300:#67c2d0;--maz-color-info-400:#40b3c4;--maz-color-info:#17a4ba;--maz-color-info-600:#13889a;--maz-color-info-700:#0f6876;--maz-color-info-800:#0b4c56;--maz-color-info-900:#073036;--maz-color-info-alpha:rgba(23,164,186,.6);--maz-color-info-alpha-20:rgba(23,164,186,.2);--maz-color-info-alpha-10:rgba(23,164,186,.1);--maz-color-info-alpha-05:rgba(23,164,186,.05);--maz-color-info-contrast:#fff;--maz-color-success-50:#f3f9e6;--maz-color-success-100:#e1f0c1;--maz-color-success-200:#cee79d;--maz-color-success-300:#bedf7c;--maz-color-success-400:#acd657;--maz-color-success:#99cd32;--maz-color-success-600:#7ea829;--maz-color-success-700:#658722;--maz-color-success-800:#496218;--maz-color-success-900:#2e3e0f;--maz-color-success-alpha:rgba(153,205,50,.6);--maz-color-success-alpha-20:rgba(153,205,50,.2);--maz-color-success-alpha-10:rgba(153,205,50,.1);--maz-color-success-alpha-05:rgba(153,205,50,.05);--maz-color-success-contrast:#fff;--maz-color-warning-50:#fff7e6;--maz-color-warning-100:#feeac3;--maz-color-warning-200:#fede9f;--maz-color-warning-300:#fdd077;--maz-color-warning-400:#fdc553;--maz-color-warning:#fcb831;--maz-color-warning-600:#d29928;--maz-color-warning-700:#a27720;--maz-color-warning-800:#785817;--maz-color-warning-900:#4d380f;--maz-color-warning-alpha:rgba(252,184,49,.6);--maz-color-warning-alpha-20:rgba(252,184,49,.2);--maz-color-warning-alpha-10:rgba(252,184,49,.1);--maz-color-warning-alpha-05:rgba(252,184,49,.05);--maz-color-warning-contrast:#384252;--maz-color-danger-50:#ffebeb;--maz-color-danger-100:#ffd2d1;--maz-color-danger-200:#ffbab8;--maz-color-danger-300:#ffa09e;--maz-color-danger-400:#ff8785;--maz-color-danger:#ff6e6b;--maz-color-danger-600:#d25856;--maz-color-danger-700:#a54745;--maz-color-danger-800:#7b3332;--maz-color-danger-900:#4c2020;--maz-color-danger-alpha:hsla(1,100%,71%,.6);--maz-color-danger-alpha-20:hsla(1,100%,71%,.2);--maz-color-danger-alpha-10:hsla(1,100%,71%,.1);--maz-color-danger-alpha-05:hsla(1,100%,71%,.05);--maz-color-danger-contrast:#fff;--maz-color-text-light:#d9d9d9;--maz-color-muted-light:rgba(0,0,0,.54);--maz-color-text-dark:#212427;--maz-color-muted-dark:hsla(0,0%,89%,.54);--maz-bg-overlay:rgba(0,0,0,.3);--maz-bg-color-light:#fff;--maz-bg-color-light-light:#f0f0f0;--maz-bg-color-light-lighter:#f7f7f7;--maz-bg-color-dark:#20212c;--maz-bg-color-dark-light:#313245;--maz-bg-color-dark-lighter:#3b3c54;--maz-border-width:0.063rem;--maz-border-radius:0.7rem;--maz-font-family:system-ui,-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen,ubuntu,cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--maz-color-text:var(--maz-color-text-dark);--maz-color-muted:var(--maz-color-muted-light);--maz-color-bg:var(--maz-bg-color-light);--maz-color-bg-light:var(--maz-bg-color-light-light);--maz-color-bg-lighter:var(--maz-bg-color-light-lighter);--maz-color-bg-theme:var(--maz-bg-color-dark);--maz-color-bg-theme-hover:var(--maz-bg-color-dark-lighter)}[class~=dark]{--maz-color-text:var(--maz-color-text-light);--maz-color-muted:var(--maz-color-muted-dark);--maz-color-bg:var(--maz-bg-color-dark);--maz-color-bg-light:var(--maz-bg-color-dark-light);--maz-color-bg-lighter:var(--maz-bg-color-dark-lighter);--maz-color-bg-theme:var(--maz-bg-color-light);--maz-color-bg-theme-hover:var(--maz-bg-color-light-lighter)}:root{--maz-container-padding-mobile:1rem;--maz-container-padding-tablet:2rem;--maz-container-padding-desktop:2.5rem;--maz-container-padding-value:var(--maz-container-padding-mobile);--maz-container-width:calc(100% - var(--maz-container-padding-value)*2);--maz-container-padding:calc(50% - var(--maz-container-width)/2);--maz-container-max-width:1440px}@media only screen and (min-width:1520px){:root{--maz-container-width:var(--maz-container-max-width)}}@media (min-width:576px){:root{--maz-container-padding-value:var(--maz-container-padding-tablet)}}@media (min-width:1024px){:root{--maz-container-padding-value:var(--maz-container-padding-desktop)}}.maz-scale-enter-active,.maz-scale-leave-active{opacity:1;-webkit-transition:all .3s cubic-bezier(.4,.52,.26,.9);transition:all .3s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-enter-from,.maz-scale-leave-to{opacity:.4;-webkit-transform:scale(0);transform:scale(0);z-index:1}.maz-scale-fade-enter-active,.maz-scale-fade-leave-active{opacity:1;-webkit-transition:all .2s cubic-bezier(.4,.52,.26,.9);transition:all .2s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-fade-enter-from,.maz-scale-fade-leave-to{opacity:0;-webkit-transform:scale(.5);transform:scale(.5);z-index:1}.maz-scale-loading-enter-active,.maz-scale-loading-enter-active .app-loader__content,.maz-scale-loading-leave-active,.maz-scale-loading-leave-active .app-loader__content{opacity:1;-webkit-transition:all .5s cubic-bezier(.4,.52,.26,.9);transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-scale-loading-enter-active .app-loader__content,.maz-scale-loading-leave-active .app-loader__content{-webkit-transform:scale(1);transform:scale(1);z-index:1}.maz-scale-loading-enter-from .app-loader__content,.maz-scale-loading-leave-to .app-loader__content{opacity:.4;-webkit-transform:scale(0);transform:scale(0);z-index:1}.maz-scale-loading-enter-from,.maz-scale-loading-leave-to{opacity:0;-webkit-transition:all .5s cubic-bezier(.4,.52,.26,.9);transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-slidevnext-enter-active,.maz-slidevnext-leave-active,.maz-slidevprev-enter-active,.maz-slidevprev-leave-active{position:absolute;-webkit-transition:all .3s;transition:all .3s}.maz-slidevnext-enter-from,.maz-slidevprev-leave-to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.maz-slidevnext-leave-to,.maz-slidevprev-enter-from{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.maz-slide-enter-active,.maz-slide-leave-active{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:998}.maz-slide-enter-from,.maz-slide-leave-to{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px);z-index:998}.maz-slideinvert-enter-active,.maz-slideinvert-leave-active{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:998}.maz-slideinvert-enter-from,.maz-slideinvert-leave-to{opacity:0;-webkit-transform:translateY(40px);transform:translateY(40px);z-index:998}.maz-tags-enter-active,.maz-tags-leave-active{opacity:1;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,-webkit-transform .3s;transition:transform .3s,opacity .3s;transition:transform .3s,opacity .3s,-webkit-transform .3s}.maz-tags-enter-from,.maz-tags-leave-to{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.maz-tags-invert-enter-active,.maz-tags-invert-leave-active{opacity:1;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,-webkit-transform .3s;transition:transform .3s,opacity .3s;transition:transform .3s,opacity .3s,-webkit-transform .3s}.maz-tags-invert-enter-from,.maz-tags-invert-leave-to{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.maz-expand-enter-active,.maz-expand-leave-active{overflow:hidden;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;-webkit-transition-property:opacity,height;transition-property:opacity,height}.maz-expand-enter-from,.maz-expand-leave-to{height:0;opacity:0}.maz-tab-transition-enter-from{-webkit-transform:translate(100%);transform:translate(100%)}.maz-tab-transition-leave,.maz-tab-transition-leave-active{position:absolute!important;top:0}.maz-tab-transition-leave-to{position:absolute!important}.maz-tab-reverse-transition-enter-from,.maz-tab-transition-leave-to{-webkit-transform:translate(-100%);transform:translate(-100%)}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-active{position:absolute!important;top:0}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-to{position:absolute!important;top:0;-webkit-transform:translate(100%);transform:translate(100%)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-ms-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.maz-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.maz-invisible{visibility:hidden}.maz-fixed{position:fixed}.\!maz-absolute{position:absolute!important}.maz-absolute{position:absolute}.maz-relative{position:relative}.maz-inset-0{inset:0}.maz-inset-x-0{left:0;right:0}.maz-bottom-0{bottom:0}.maz-z-default-backdrop{z-index:1050}.\!maz-my-0{margin-bottom:0!important;margin-top:0!important}.maz-my-0{margin-bottom:0;margin-top:0}.maz-my-2{margin-bottom:.5rem;margin-top:.5rem}.maz-ml-1{margin-left:.25rem}.maz-ml-2{margin-left:.5rem}.maz-flex{display:-webkit-box;display:-ms-flexbox;display:flex}.maz-table{display:table}.maz-hidden{display:none}.maz-h-1{height:.25rem}.maz-h-16{height:4rem}.maz-h-6{height:1.5rem}.maz-h-8{height:2rem}.maz-h-full{height:100%}.maz-w-6{width:1.5rem}.maz-w-8{width:2rem}.maz-w-9{width:2.25rem}.maz-w-full{width:100%}.maz-min-w-0{min-width:0}.maz-max-w-full{max-width:100%}.maz-flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.maz-flex-none{-webkit-box-flex:0;-ms-flex:none;flex:none}.maz-rotate-180{--tw-rotate:180deg;-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.maz-cursor-zoom-in{cursor:-webkit-zoom-in;cursor:zoom-in}.maz-cursor-zoom-out{cursor:-webkit-zoom-out;cursor:zoom-out}.maz-flex-row{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.maz-flex-col,.maz-flex-row{-webkit-box-direction:normal}.maz-flex-col{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.maz-items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.maz-justify-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.maz-justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.maz-gap-1{gap:.25rem}.maz-gap-2{gap:.5rem}.maz-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.maz-overflow-hidden{overflow:hidden}.maz-overflow-x-auto{overflow-x:auto}.maz-truncate{overflow:hidden;text-overflow:ellipsis}.maz-truncate,.maz-whitespace-nowrap{white-space:nowrap}.maz-rounded{border-radius:var(--maz-border-radius)}.maz-rounded-xl{border-radius:.75rem}.maz-rounded-t{border-top-left-radius:var(--maz-border-radius);border-top-right-radius:var(--maz-border-radius)}.maz-border{border-width:var(--maz-border-width)}.maz-border-b{border-bottom-width:var(--maz-border-width)}.maz-border-t-2{border-top-width:2px}.maz-border-solid{border-style:solid}.\!maz-border-danger{border-color:var(--maz-color-danger)!important}.\!maz-border-success{border-color:var(--maz-color-success)!important}.\!maz-border-warning{border-color:var(--maz-color-warning)!important}.maz-border-black{border-color:var(--maz-color-black)}.maz-border-color-light{border-color:var(--maz-color-bg-light)}.maz-border-color-lighter{border-color:var(--maz-color-bg-lighter)}.maz-border-danger{border-color:var(--maz-color-danger)}.maz-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.maz-border-info{border-color:var(--maz-color-info)}.maz-border-primary{border-color:var(--maz-color-primary)}.maz-border-secondary{border-color:var(--maz-color-secondary)}.maz-border-success{border-color:var(--maz-color-success)}.maz-border-transparent{border-color:transparent}.maz-border-warning{border-color:var(--maz-color-warning)}.maz-border-white{border-color:var(--maz-color-white)}.maz-bg-color-light{background-color:var(--maz-color-bg-light)}.maz-bg-danger-700{background-color:var(--maz-color-danger-700)}.maz-bg-info-700{background-color:var(--maz-color-info-700)}.maz-bg-overlay{background-color:var(--maz-bg-overlay)}.maz-bg-secondary{background-color:var(--maz-color-secondary)}.maz-bg-success-700{background-color:var(--maz-color-success-700)}.maz-bg-warning-700{background-color:var(--maz-color-warning-700)}.maz-p-2{padding:.5rem}.maz-p-3{padding:.75rem}.maz-p-4{padding:1rem}.maz-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.maz-pb-1{padding-bottom:.25rem}.maz-text-left{text-align:left}.maz-text-center{text-align:center}.maz-text-right{text-align:right}.maz-text-2xl{font-size:1.5rem;line-height:2rem}.maz-text-3xl{font-size:1.875rem;line-height:2.25rem}.maz-text-base{font-size:1rem;line-height:1.5rem}.maz-text-lg{font-size:1.125rem;line-height:1.75rem}.maz-text-sm{font-size:.875rem;line-height:1.25rem}.maz-text-xl{font-size:1.25rem;line-height:1.75rem}.maz-text-xs{font-size:.75rem;line-height:1rem}.maz-font-semibold{font-weight:600}.maz-text-danger-600{color:var(--maz-color-danger-600)}.maz-text-muted{color:var(--maz-color-muted)}.maz-text-normal{color:var(--maz-color-text)}.maz-text-success-600{color:var(--maz-color-success-600)}.maz-text-warning-600{color:var(--maz-color-warning-600)}.maz-text-white{color:var(--maz-color-white)}.maz-backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.\!maz-transition-all{-webkit-transition-duration:.15s!important;transition-duration:.15s!important;-webkit-transition-property:all!important;transition-property:all!important;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.\!maz-duration-200{-webkit-transition-duration:.2s!important;transition-duration:.2s!important}.\!maz-ease-linear{-webkit-transition-timing-function:linear!important;transition-timing-function:linear!important}.maz-elevation{-webkit-box-shadow:0 5px 10px 0 rgba(0,0,0,.05);box-shadow:0 5px 10px 0 rgba(0,0,0,.05)}.maz-flex-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.maz-cap-f:first-letter{text-transform:capitalize}.first-letter\:maz-capitalize:first-letter{text-transform:capitalize}.maz-group:hover .group-hover\:maz-block{display:block}:is([class~=dark] .dark\:maz-border-color-lighter){border-color:var(--maz-color-bg-lighter)}@media (min-width:640px){.tab-s\:maz-block{display:block}}
1
+ *,:after,:before{border:0 solid;-webkit-box-sizing:border-box;box-sizing:border-box}button{background-color:transparent}button,input,optgroup,select,textarea{font-family:inherit;font-size:1em;line-height:1.15;margin:0}:root{--maz-color-white:#fff;--maz-color-white-contrast:#000;--maz-color-black:#000;--maz-color-black-contrast:#fff;--maz-color-primary-50:#e6f2ff;--maz-color-primary-100:#bddeff;--maz-color-primary-200:#94c9ff;--maz-color-primary-300:#6bb5ff;--maz-color-primary-400:#47a3ff;--maz-color-primary:#1f8fff;--maz-color-primary-600:#1975d2;--maz-color-primary-700:#145ca3;--maz-color-primary-800:#0e4277;--maz-color-primary-900:#092b4e;--maz-color-primary-alpha:rgba(31,143,255,.6);--maz-color-primary-alpha-20:rgba(31,143,255,.2);--maz-color-primary-alpha-10:rgba(31,143,255,.1);--maz-color-primary-alpha-05:rgba(31,143,255,.05);--maz-color-primary-contrast:#fff;--maz-color-secondary-50:#e2f9f3;--maz-color-secondary-100:#bbf1e3;--maz-color-secondary-200:#95e9d3;--maz-color-secondary-300:#6be1c1;--maz-color-secondary-400:#45d9b1;--maz-color-secondary:#1cce9f;--maz-color-secondary-600:#17ab83;--maz-color-secondary-700:#128768;--maz-color-secondary-800:#0d634c;--maz-color-secondary-900:#083f31;--maz-color-secondary-alpha:rgba(28,206,159,.6);--maz-color-secondary-alpha-20:rgba(28,206,159,.2);--maz-color-secondary-alpha-10:rgba(28,206,159,.1);--maz-color-secondary-alpha-05:rgba(28,206,159,.05);--maz-color-secondary-contrast:#fff;--maz-color-info-50:#e4f4f7;--maz-color-info-100:#b8e3ea;--maz-color-info-200:#92d3dd;--maz-color-info-300:#67c2d0;--maz-color-info-400:#40b3c4;--maz-color-info:#17a4ba;--maz-color-info-600:#13889a;--maz-color-info-700:#0f6876;--maz-color-info-800:#0b4c56;--maz-color-info-900:#073036;--maz-color-info-alpha:rgba(23,164,186,.6);--maz-color-info-alpha-20:rgba(23,164,186,.2);--maz-color-info-alpha-10:rgba(23,164,186,.1);--maz-color-info-alpha-05:rgba(23,164,186,.05);--maz-color-info-contrast:#fff;--maz-color-success-50:#f3f9e6;--maz-color-success-100:#e1f0c1;--maz-color-success-200:#cee79d;--maz-color-success-300:#bedf7c;--maz-color-success-400:#acd657;--maz-color-success:#99cd32;--maz-color-success-600:#7ea829;--maz-color-success-700:#658722;--maz-color-success-800:#496218;--maz-color-success-900:#2e3e0f;--maz-color-success-alpha:rgba(153,205,50,.6);--maz-color-success-alpha-20:rgba(153,205,50,.2);--maz-color-success-alpha-10:rgba(153,205,50,.1);--maz-color-success-alpha-05:rgba(153,205,50,.05);--maz-color-success-contrast:#fff;--maz-color-warning-50:#fff7e6;--maz-color-warning-100:#feeac3;--maz-color-warning-200:#fede9f;--maz-color-warning-300:#fdd077;--maz-color-warning-400:#fdc553;--maz-color-warning:#fcb831;--maz-color-warning-600:#d29928;--maz-color-warning-700:#a27720;--maz-color-warning-800:#785817;--maz-color-warning-900:#4d380f;--maz-color-warning-alpha:rgba(252,184,49,.6);--maz-color-warning-alpha-20:rgba(252,184,49,.2);--maz-color-warning-alpha-10:rgba(252,184,49,.1);--maz-color-warning-alpha-05:rgba(252,184,49,.05);--maz-color-warning-contrast:#384252;--maz-color-danger-50:#ffebeb;--maz-color-danger-100:#ffd2d1;--maz-color-danger-200:#ffbab8;--maz-color-danger-300:#ffa09e;--maz-color-danger-400:#ff8785;--maz-color-danger:#ff6e6b;--maz-color-danger-600:#d25856;--maz-color-danger-700:#a54745;--maz-color-danger-800:#7b3332;--maz-color-danger-900:#4c2020;--maz-color-danger-alpha:hsla(1,100%,71%,.6);--maz-color-danger-alpha-20:hsla(1,100%,71%,.2);--maz-color-danger-alpha-10:hsla(1,100%,71%,.1);--maz-color-danger-alpha-05:hsla(1,100%,71%,.05);--maz-color-danger-contrast:#fff;--maz-color-text-light:#d9d9d9;--maz-color-muted-light:rgba(0,0,0,.54);--maz-color-text-dark:#212427;--maz-color-muted-dark:hsla(0,0%,89%,.54);--maz-bg-overlay:rgba(0,0,0,.3);--maz-bg-color-light:#fff;--maz-bg-color-light-light:#f0f0f0;--maz-bg-color-light-lighter:#f7f7f7;--maz-bg-color-dark:#20212c;--maz-bg-color-dark-light:#313245;--maz-bg-color-dark-lighter:#3b3c54;--maz-border-width:0.063rem;--maz-border-radius:0.7rem;--maz-font-family:system-ui,-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen,ubuntu,cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--maz-color-text:var(--maz-color-text-dark);--maz-color-muted:var(--maz-color-muted-light);--maz-color-bg:var(--maz-bg-color-light);--maz-color-bg-light:var(--maz-bg-color-light-light);--maz-color-bg-lighter:var(--maz-bg-color-light-lighter);--maz-color-bg-theme:var(--maz-bg-color-dark);--maz-color-bg-theme-hover:var(--maz-bg-color-dark-lighter)}[class~=dark]{--maz-color-text:var(--maz-color-text-light);--maz-color-muted:var(--maz-color-muted-dark);--maz-color-bg:var(--maz-bg-color-dark);--maz-color-bg-light:var(--maz-bg-color-dark-light);--maz-color-bg-lighter:var(--maz-bg-color-dark-lighter);--maz-color-bg-theme:var(--maz-bg-color-light);--maz-color-bg-theme-hover:var(--maz-bg-color-light-lighter)}:root{--maz-container-padding-mobile:1rem;--maz-container-padding-tablet:2rem;--maz-container-padding-desktop:2.5rem;--maz-container-padding-value:var(--maz-container-padding-mobile);--maz-container-width:calc(100% - var(--maz-container-padding-value)*2);--maz-container-padding:calc(50% - var(--maz-container-width)/2);--maz-container-max-width:1440px}@media only screen and (min-width:1520px){:root{--maz-container-width:var(--maz-container-max-width)}}@media (min-width:576px){:root{--maz-container-padding-value:var(--maz-container-padding-tablet)}}@media (min-width:1024px){:root{--maz-container-padding-value:var(--maz-container-padding-desktop)}}.maz-scale-enter-active,.maz-scale-leave-active{opacity:1;-webkit-transition:all .3s cubic-bezier(.4,.52,.26,.9);transition:all .3s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-enter-from,.maz-scale-leave-to{opacity:.4;-webkit-transform:scale(0);transform:scale(0);z-index:1}.maz-scale-fade-enter-active,.maz-scale-fade-leave-active{opacity:1;-webkit-transition:all .2s cubic-bezier(.4,.52,.26,.9);transition:all .2s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-fade-enter-from,.maz-scale-fade-leave-to{opacity:0;-webkit-transform:scale(.5);transform:scale(.5);z-index:1}.maz-scale-loading-enter-active,.maz-scale-loading-enter-active .app-loader__content,.maz-scale-loading-leave-active,.maz-scale-loading-leave-active .app-loader__content{opacity:1;-webkit-transition:all .5s cubic-bezier(.4,.52,.26,.9);transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-scale-loading-enter-active .app-loader__content,.maz-scale-loading-leave-active .app-loader__content{-webkit-transform:scale(1);transform:scale(1);z-index:1}.maz-scale-loading-enter-from .app-loader__content,.maz-scale-loading-leave-to .app-loader__content{opacity:.4;-webkit-transform:scale(0);transform:scale(0);z-index:1}.maz-scale-loading-enter-from,.maz-scale-loading-leave-to{opacity:0;-webkit-transition:all .5s cubic-bezier(.4,.52,.26,.9);transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-slidevnext-enter-active,.maz-slidevnext-leave-active,.maz-slidevprev-enter-active,.maz-slidevprev-leave-active{position:absolute;-webkit-transition:all .3s;transition:all .3s}.maz-slidevnext-enter-from,.maz-slidevprev-leave-to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.maz-slidevnext-leave-to,.maz-slidevprev-enter-from{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.maz-slide-enter-active,.maz-slide-leave-active{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:998}.maz-slide-enter-from,.maz-slide-leave-to{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px);z-index:998}.maz-slideinvert-enter-active,.maz-slideinvert-leave-active{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:998}.maz-slideinvert-enter-from,.maz-slideinvert-leave-to{opacity:0;-webkit-transform:translateY(40px);transform:translateY(40px);z-index:998}.maz-tags-enter-active,.maz-tags-leave-active{opacity:1;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,-webkit-transform .3s;transition:transform .3s,opacity .3s;transition:transform .3s,opacity .3s,-webkit-transform .3s}.maz-tags-enter-from,.maz-tags-leave-to{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.maz-tags-invert-enter-active,.maz-tags-invert-leave-active{opacity:1;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,-webkit-transform .3s;transition:transform .3s,opacity .3s;transition:transform .3s,opacity .3s,-webkit-transform .3s}.maz-tags-invert-enter-from,.maz-tags-invert-leave-to{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.maz-expand-enter-active,.maz-expand-leave-active{overflow:hidden;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;-webkit-transition-property:opacity,height;transition-property:opacity,height}.maz-expand-enter-from,.maz-expand-leave-to{height:0;opacity:0}.maz-tab-transition-enter-from{-webkit-transform:translate(100%);transform:translate(100%)}.maz-tab-transition-leave,.maz-tab-transition-leave-active{position:absolute!important;top:0}.maz-tab-transition-leave-to{position:absolute!important}.maz-tab-reverse-transition-enter-from,.maz-tab-transition-leave-to{-webkit-transform:translate(-100%);transform:translate(-100%)}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-active{position:absolute!important;top:0}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-to{position:absolute!important;top:0;-webkit-transform:translate(100%);transform:translate(100%)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-ms-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.maz-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.maz-invisible{visibility:hidden}.maz-fixed{position:fixed}.\!maz-absolute{position:absolute!important}.maz-absolute{position:absolute}.maz-relative{position:relative}.maz-inset-0{inset:0}.maz-inset-x-0{left:0;right:0}.maz-bottom-0{bottom:0}.maz-z-default-backdrop{z-index:1050}.\!maz-my-0{margin-bottom:0!important;margin-top:0!important}.maz-my-0{margin-bottom:0;margin-top:0}.maz-my-2{margin-bottom:.5rem;margin-top:.5rem}.maz-ml-1{margin-left:.25rem}.maz-ml-2{margin-left:.5rem}.maz-flex{display:-webkit-box;display:-ms-flexbox;display:flex}.maz-table{display:table}.maz-hidden{display:none}.maz-h-1{height:.25rem}.maz-h-16{height:4rem}.maz-h-6{height:1.5rem}.maz-h-8{height:2rem}.maz-h-full{height:100%}.maz-w-6{width:1.5rem}.maz-w-8{width:2rem}.maz-w-9{width:2.25rem}.maz-w-full{width:100%}.maz-min-w-0{min-width:0}.maz-max-w-full{max-width:100%}.maz-flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.maz-flex-none{-webkit-box-flex:0;-ms-flex:none;flex:none}.-maz-rotate-180{--tw-rotate:-180deg}.-maz-rotate-180,.maz-rotate-180{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.maz-rotate-180{--tw-rotate:180deg}.maz-cursor-zoom-in{cursor:-webkit-zoom-in;cursor:zoom-in}.maz-cursor-zoom-out{cursor:-webkit-zoom-out;cursor:zoom-out}.maz-flex-row{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.maz-flex-col,.maz-flex-row{-webkit-box-direction:normal}.maz-flex-col{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.maz-items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.maz-justify-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.maz-justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.maz-gap-1{gap:.25rem}.maz-gap-2{gap:.5rem}.maz-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.maz-overflow-hidden{overflow:hidden}.maz-overflow-x-auto{overflow-x:auto}.maz-truncate{overflow:hidden;text-overflow:ellipsis}.maz-truncate,.maz-whitespace-nowrap{white-space:nowrap}.maz-rounded{border-radius:var(--maz-border-radius)}.maz-rounded-xl{border-radius:.75rem}.maz-rounded-t{border-top-left-radius:var(--maz-border-radius);border-top-right-radius:var(--maz-border-radius)}.maz-border{border-width:var(--maz-border-width)}.maz-border-b{border-bottom-width:var(--maz-border-width)}.maz-border-t-2{border-top-width:2px}.maz-border-solid{border-style:solid}.\!maz-border-danger{border-color:var(--maz-color-danger)!important}.\!maz-border-success{border-color:var(--maz-color-success)!important}.\!maz-border-warning{border-color:var(--maz-color-warning)!important}.maz-border-black{border-color:var(--maz-color-black)}.maz-border-color-light{border-color:var(--maz-color-bg-light)}.maz-border-color-lighter{border-color:var(--maz-color-bg-lighter)}.maz-border-danger{border-color:var(--maz-color-danger)}.maz-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.maz-border-info{border-color:var(--maz-color-info)}.maz-border-primary{border-color:var(--maz-color-primary)}.maz-border-secondary{border-color:var(--maz-color-secondary)}.maz-border-success{border-color:var(--maz-color-success)}.maz-border-transparent{border-color:transparent}.maz-border-warning{border-color:var(--maz-color-warning)}.maz-border-white{border-color:var(--maz-color-white)}.maz-bg-color-light{background-color:var(--maz-color-bg-light)}.maz-bg-danger-700{background-color:var(--maz-color-danger-700)}.maz-bg-info-700{background-color:var(--maz-color-info-700)}.maz-bg-overlay{background-color:var(--maz-bg-overlay)}.maz-bg-secondary{background-color:var(--maz-color-secondary)}.maz-bg-success-700{background-color:var(--maz-color-success-700)}.maz-bg-warning-700{background-color:var(--maz-color-warning-700)}.maz-p-2{padding:.5rem}.maz-p-3{padding:.75rem}.maz-p-4{padding:1rem}.maz-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.maz-pb-1{padding-bottom:.25rem}.maz-text-left{text-align:left}.maz-text-center{text-align:center}.maz-text-right{text-align:right}.maz-text-2xl{font-size:1.5rem;line-height:2rem}.maz-text-3xl{font-size:1.875rem;line-height:2.25rem}.maz-text-base{font-size:1rem;line-height:1.5rem}.maz-text-lg{font-size:1.125rem;line-height:1.75rem}.maz-text-sm{font-size:.875rem;line-height:1.25rem}.maz-text-xl{font-size:1.25rem;line-height:1.75rem}.maz-text-xs{font-size:.75rem;line-height:1rem}.maz-font-semibold{font-weight:600}.maz-text-danger-600{color:var(--maz-color-danger-600)}.maz-text-muted{color:var(--maz-color-muted)}.maz-text-normal{color:var(--maz-color-text)}.maz-text-success-600{color:var(--maz-color-success-600)}.maz-text-warning-600{color:var(--maz-color-warning-600)}.maz-text-white{color:var(--maz-color-white)}.maz-backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.\!maz-transition-all{-webkit-transition-duration:.15s!important;transition-duration:.15s!important;-webkit-transition-property:all!important;transition-property:all!important;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.\!maz-duration-200{-webkit-transition-duration:.2s!important;transition-duration:.2s!important}.\!maz-ease-linear{-webkit-transition-timing-function:linear!important;transition-timing-function:linear!important}.maz-elevation{-webkit-box-shadow:0 5px 10px 0 rgba(0,0,0,.05);box-shadow:0 5px 10px 0 rgba(0,0,0,.05)}.maz-flex-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.maz-cap-f:first-letter{text-transform:capitalize}.first-letter\:maz-capitalize:first-letter{text-transform:capitalize}.maz-group:hover .group-hover\:maz-block{display:block}:is([class~=dark] .dark\:maz-border-color-lighter){border-color:var(--maz-color-bg-lighter)}@media (min-width:640px){.tab-s\:maz-block{display:block}}
@@ -1,4 +1,4 @@
1
- var I=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("./index-DYwwNo_Y.cjs"),C=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},noLeading:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{default:void 0},leftIcon:{default:void 0},rightIcon:{default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},contentClass:{default:void 0}},setup(u){const d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-DvCq0zSA.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-DaoNEj_U.cjs"))),{href:m,to:p}=e.useAttrs(),a=e.useSlots(),n=u;e.onBeforeMount(()=>{n.icon&&!n.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const r=e.computed(()=>m?"a":p?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),i=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),v=e.computed(()=>i.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),t=e.computed(()=>n.loading&&n.variant==="button"),c=e.computed(()=>!!a["left-icon"]||n.leftIcon),s=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>c.value||s.value),B=e.computed(()=>n.fab&&(n.icon||!!a.icon)),k=e.computed(()=>r.value==="button"?n.type:void 0);return(o,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:i.value,class:e.normalizeClass(["m-btn",[`--${o.size}`,f.value,v.value,y.value,{"--block":o.block,"--no-underline":o.noUnderline,"--no-leading":o.noLeading,"--fab":o.fab,"--loading":o.loading,"--disabled":i.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:k.value},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":t.value}])},[e.createCommentVNode(`
1
+ var I=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("./index-B48OKfFt.cjs"),C=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},noLeading:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{default:void 0},leftIcon:{default:void 0},rightIcon:{default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},contentClass:{default:void 0}},setup(u){const d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-B2otf393.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-BFDvFiQo.cjs"))),{href:m,to:p}=e.useAttrs(),a=e.useSlots(),n=u;e.onBeforeMount(()=>{n.icon&&!n.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const r=e.computed(()=>m?"a":p?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),i=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),v=e.computed(()=>i.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),t=e.computed(()=>n.loading&&n.variant==="button"),c=e.computed(()=>!!a["left-icon"]||n.leftIcon),s=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>c.value||s.value),B=e.computed(()=>n.fab&&(n.icon||!!a.icon)),k=e.computed(()=>r.value==="button"?n.type:void 0);return(o,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:i.value,class:e.normalizeClass(["m-btn",[`--${o.size}`,f.value,v.value,y.value,{"--block":o.block,"--no-underline":o.noUnderline,"--no-leading":o.noLeading,"--fab":o.fab,"--loading":o.loading,"--disabled":i.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:k.value},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":t.value}])},[e.createCommentVNode(`
2
2
  @slot left-icon - The icon to display on the left of the button
3
3
  `),e.renderSlot(o.$slots,"left-icon",{},()=>[typeof o.leftIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.leftIcon},null,8,["name"])):o.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.leftIcon),{key:1})):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-invisible":t.value}])},[e.createCommentVNode(`
4
4
  @slot icon - The icon to display on the fab button
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
3
- import { _ as D } from "./index-CcXCRwty.mjs";
3
+ import { _ as D } from "./index-CWAO7a8o.mjs";
4
4
  const P = /* @__PURE__ */ E({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -26,7 +26,7 @@ const P = /* @__PURE__ */ E({
26
26
  contentClass: { default: void 0 }
27
27
  },
28
28
  setup(g) {
29
- const B = h(() => import("./MazSpinner-BHGuV2dF.mjs")), f = h(() => import("./MazIcon-e9fryb1P.mjs")), { href: k, to: I } = R(), p = S(), e = g;
29
+ const B = h(() => import("./MazSpinner-_fcsae1V.mjs")), f = h(() => import("./MazIcon-DaJQEFh2.mjs")), { href: k, to: I } = R(), p = S(), e = g;
30
30
  w(() => {
31
31
  e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
32
32
  });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-DYwwNo_Y.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-B48OKfFt.cjs"),T=["innerHTML"],b=t.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:a=>a}},emits:["loaded","unloaded","error"],setup(a,{emit:f}){const i={},s=t.ref(),d=t.ref(),g=()=>{try{return C.injectStrict("mazIconPath")}catch{return}},l=a,u=f,m=t.computed(()=>l.path??g()),p=t.computed(()=>l.src?l.src:m.value?`${m.value}/${l.name}.svg`:`/${l.name}.svg`);t.onMounted(()=>{!l.name&&!l.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});const h=(e,r)=>{const n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=r;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=r,e.append(o)}},S=e=>Object.keys(e).reduce((r,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(r[n]=e[n]),r),{}),y=e=>{const r={},n=e.attributes;if(!n)return r;for(let o=n.length-1;o>=0;o--)r[n[o].name]=n[o].value;return r},w=e=>{let r=e.cloneNode(!0);return r=l.transformSource(e),l.title&&h(r,l.title),e.innerHTML},E=async e=>{i[e]||(i[e]=M(e));try{s.value=await i[e],await t.nextTick(),u("loaded",d.value)}catch(r){s.value&&(s.value=void 0,u("unloaded")),delete i[e],u("error",r)}},M=e=>new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.addEventListener("load",()=>{if(o.status>=200&&o.status<400)try{let c=new DOMParser().parseFromString(o.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=l.transformSource(c),r(c)):n(new Error('Loaded file is not valid SVG"'))}catch(v){n(v)}else n(new Error("Error loading SVG"))}),o.addEventListener("error",()=>n()),o.send()});return t.watchEffect(()=>E(p.value)),(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable vue/no-v-html "),t.createCommentVNode(" eslint-disable vue/html-self-closing "),s.value?(t.openBlock(),t.createElementBlock("svg",t.mergeProps({key:0,ref_key:"svgElem",ref:d,width:"1em",height:"1em"},{...y(s.value),...S(e.$attrs)},{style:`font-size: ${a.size}`,innerHTML:w(s.value)}),null,16,T)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-enable vue/no-v-html "),t.createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}});exports.default=b;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
2
- import { i as q } from "./index-CcXCRwty.mjs";
2
+ import { i as q } from "./index-CWAO7a8o.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -1 +1 @@
1
- var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DYwwNo_Y.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-B48OKfFt.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-CcXCRwty.mjs";
3
+ import { _ as p } from "./index-CWAO7a8o.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" },
@@ -1,4 +1,4 @@
1
- var Re=Object.defineProperty;var Ye=(s,e,t)=>e in s?Re(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>(Ye(s,typeof e!="symbol"?e+"":e,t),t);var ts=require("../assets/index.css");const i=require("vue");function G(s,e){const t=i.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Ke(s,e){let t;return function(...n){clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function be(s){return!!s}function le(s,e){let t=e==null?void 0:e.element;function n(){t&&i.render(null,t)}const o=i.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:n}:{}},e==null?void 0:e.children);return e!=null&&e.app?(o.appContext=e.app._context,t?i.render(o,t):typeof document<"u"&&(t=document.createElement("div"),i.render(o,t))):(t=t??document.body,i.render(o,t)),{vNode:o,destroy:n,el:t}}function y(){return typeof document<"u"}class we{constructor(e,t){a(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});a(this,"options");a(this,"timeoutHandler");a(this,"isIdle",!1);a(this,"isDestroy",!1);a(this,"startTime",0);a(this,"remainingTime",0);a(this,"lastClientX",-1);a(this,"lastClientY",-1);a(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);a(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:n}=e;if(t===void 0&&n===void 0||t===this.lastClientX&&n===this.lastClientY)return;this.lastClientX=t,this.lastClientY=n}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},y()&&this.start()}get element(){return this.options.element??document.body}start(){if(!y()){console.warn("[IdleTimeout](start) you should run this method on client side");return}for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(!y()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class Ee{constructor(e,t){a(this,"eventHandlerFunction");a(this,"event","visibilitychange");a(this,"timeoutHandler");a(this,"options");a(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});a(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),y()&&this.start()}start(){if(!y()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const ze=s=>new Promise(e=>{setTimeout(e,s)});class Xe{constructor({src:e,identifier:t,once:n=!0,async:o=!0,defer:c=!0}){a(this,"src");a(this,"script");a(this,"once");a(this,"async");a(this,"defer");a(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=n,this.async=o,this.defer=c}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const n of t)this.removeTag(n);return this.injectScript()}injectScript(){const e=window;return new Promise((t,n)=>{try{const o=document.createElement("script");o.src=this.src,o.async=this.async,o.defer=this.defer,o.dataset.identifier=this.identifier,o.addEventListener("error",c=>n(new Error(`[ScriptLoader](injectScript) ${c.message}`))),o.addEventListener("load",c=>(this.script=c,e[this.identifier]=c,t(c))),document.head.append(o)}catch(o){throw new Error(`[ScriptLoader](init) ${o}`)}})}}function Ze(s){return[...s].map(e=>{const t=e.codePointAt(0);return t?t%32+127461:void 0}).filter(be).map(e=>String.fromCodePoint(e)).join("")}class Te{constructor(e){a(this,"defaultOptions",{preventDefaultOnTouchMove:!1,preventDefaultOnMouseWheel:!1,threshold:50,immediate:!1,triggerOnEnd:!1});a(this,"element");a(this,"xStart");a(this,"yStart");a(this,"xEnd");a(this,"yEnd");a(this,"xDiff");a(this,"yDiff");a(this,"onToucheStartCallback");a(this,"onToucheMoveCallback");a(this,"onToucheEndCallback");a(this,"onMouseWheelCallback");a(this,"options");if(this.inputOption=e,this.options={...this.defaultOptions,...e},!this.options.element)throw new Error("[SwipeHandler] Element should be provided. Its can be a string selector or an HTMLElement");if(typeof this.options.element=="string"){const t=document.querySelector(this.options.element);if(!(t instanceof HTMLElement))throw new TypeError("[SwipeHandler] String selector for element is not found");this.element=t}else this.element=this.options.element;this.onToucheStartCallback=this.toucheStartHandler.bind(this),this.onToucheMoveCallback=this.handleTouchMove.bind(this),this.onToucheEndCallback=this.handleTouchEnd.bind(this),this.onMouseWheelCallback=this.handleMouseWheel.bind(this),this.options.immediate&&this.start()}start(){this.element.addEventListener("touchstart",this.onToucheStartCallback,{passive:!0}),this.element.addEventListener("touchmove",this.onToucheMoveCallback,{passive:!0}),this.options.triggerOnEnd&&this.element.addEventListener("touchend",this.onToucheEndCallback,{passive:!0}),this.options.preventDefaultOnMouseWheel&&this.element.addEventListener("mousewheel",this.onMouseWheelCallback,{passive:!1})}stop(){this.element.removeEventListener("touchstart",this.onToucheStartCallback),this.element.removeEventListener("touchmove",this.onToucheMoveCallback),this.element.removeEventListener("touchend",this.onToucheEndCallback),this.options.preventDefaultOnMouseWheel&&this.element.removeEventListener("mousewheel",this.onMouseWheelCallback)}handleMouseWheel(e){e.preventDefault()}toucheStartHandler(e){this.xStart=e.touches[0].clientX,this.yStart=e.touches[0].clientY,this.emitValuesChanged()}emitValuesChanged(){var e,t;(t=(e=this.options).onValuesChanged)==null||t.call(e,{xStart:this.xStart,yStart:this.yStart,xEnd:this.xEnd,yEnd:this.yEnd,xDiff:this.xDiff,yDiff:this.yDiff})}handleTouchMove(e){this.options.preventDefaultOnTouchMove&&e.cancelable&&e.preventDefault(),this.xEnd=e.touches[0].clientX,this.yEnd=e.touches[0].clientY,!(!this.xStart||!this.yStart)&&(this.xDiff=this.xStart-this.xEnd,this.yDiff=this.yStart-this.yEnd,this.emitValuesChanged(),this.options.triggerOnEnd||this.runCallbacks(e))}handleTouchEnd(e){this.runCallbacks(e),this.emitValuesChanged()}runCallbacks(e){var t,n,o,c,l,u,h,g;typeof this.xDiff!="number"||typeof this.yDiff!="number"||Math.abs(this.xDiff)<this.options.threshold&&Math.abs(this.yDiff)<this.options.threshold||(Math.abs(this.xDiff)>Math.abs(this.yDiff)?this.xDiff>0?(n=(t=this.options).onLeft)==null||n.call(t,e):(c=(o=this.options).onRight)==null||c.call(o,e):this.yDiff>0?(u=(l=this.options).onUp)==null||u.call(l,e):(g=(h=this.options).onDown)==null||g.call(h,e),this.resetValues())}resetValues(){this.xStart=void 0,this.yStart=void 0,this.xEnd=void 0,this.yEnd=void 0,this.xDiff=void 0,this.yDiff=void 0,this.emitValuesChanged()}}function Qe(s,e){let t=0;return async function(){const n=Date.now();n-t>=e&&(await s(),t=n)}}const X="__vue_click_away__",Le=()=>document.ontouchstart===null?"touchstart":"click",Ie=async(s,e)=>{ke(s);const t=e.instance,n=e.value,o=typeof n=="function";if(!o)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await i.nextTick(),s[X]=l=>{if((!s||!s.contains(l.target))&&n&&o)return n.call(t,l)};const c=Le();document.addEventListener(c,s[X],!1)},ke=s=>{const e=Le();document.removeEventListener(e,s[X],!1),delete s[X]},Ge=(s,e)=>{e.value!==e.oldValue&&Ie(s,e)},ce={mounted:Ie,updated:Ge,unmounted:ke},Je={install:s=>{s.directive("click-outside",ce)}},Ce=(s,e,t,n)=>{s.stopPropagation();const{handler:o,exclude:c}=t.value;let l=!1;if(c&&c.length>0)for(const u of c)l||(l=n.context.$refs[u].contains(s.target));!e.contains(s.target)&&!l&&n.context[o]()},Se=()=>document.ontouchstart===null?"touchstart":"click",et=(s,e,t)=>{const n=Se();document.removeEventListener(n,o=>Ce(o,s,e,t))},tt=(s,e,t)=>{const n=Se();document.addEventListener(n,o=>Ce(o,s,e,t))},ue={mounted:tt,unmounted:et},st={install:s=>{s.directive("closable",ue)}},nt=`
1
+ var Re=Object.defineProperty;var Ye=(s,e,t)=>e in s?Re(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>(Ye(s,typeof e!="symbol"?e+"":e,t),t);var ts=require("../assets/index.css");const i=require("vue");function G(s,e){const t=i.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Ke(s,e){let t;return function(...n){clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function we(s){return!!s}function ce(s,e){let t=e==null?void 0:e.element;function n(){t&&i.render(null,t)}const o=i.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:n}:{}},e==null?void 0:e.children);return e!=null&&e.app?(o.appContext=e.app._context,t?i.render(o,t):typeof document<"u"&&(t=document.createElement("div"),i.render(o,t))):(t=t??document.body,i.render(o,t)),{vNode:o,destroy:n,el:t}}function y(){return typeof document<"u"}class Ee{constructor(e,t){a(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});a(this,"options");a(this,"timeoutHandler");a(this,"isIdle",!1);a(this,"isDestroy",!1);a(this,"startTime",0);a(this,"remainingTime",0);a(this,"lastClientX",-1);a(this,"lastClientY",-1);a(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);a(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:n}=e;if(t===void 0&&n===void 0||t===this.lastClientX&&n===this.lastClientY)return;this.lastClientX=t,this.lastClientY=n}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},y()&&this.start()}get element(){return this.options.element??document.body}start(){if(!y()){console.warn("[IdleTimeout](start) you should run this method on client side");return}for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(!y()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class ze{constructor(e,t){a(this,"eventHandlerFunction");a(this,"event","visibilitychange");a(this,"timeoutHandler");a(this,"options");a(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});a(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),y()&&this.start()}start(){if(!y()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const Le=s=>new Promise(e=>{setTimeout(e,s)});class Xe{constructor({src:e,identifier:t,once:n=!0,async:o=!0,defer:c=!0}){a(this,"src");a(this,"script");a(this,"once");a(this,"async");a(this,"defer");a(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=n,this.async=o,this.defer=c}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const n of t)this.removeTag(n);return this.injectScript()}injectScript(){const e=window;return new Promise((t,n)=>{try{const o=document.createElement("script");o.src=this.src,o.async=this.async,o.defer=this.defer,o.dataset.identifier=this.identifier,o.addEventListener("error",c=>n(new Error(`[ScriptLoader](injectScript) ${c.message}`))),o.addEventListener("load",c=>(this.script=c,e[this.identifier]=c,t(c))),document.head.append(o)}catch(o){throw new Error(`[ScriptLoader](init) ${o}`)}})}}function Ze(s){return[...s].map(e=>{const t=e.codePointAt(0);return t?t%32+127461:void 0}).filter(we).map(e=>String.fromCodePoint(e)).join("")}class Te{constructor(e){a(this,"defaultOptions",{preventDefaultOnTouchMove:!1,preventDefaultOnMouseWheel:!1,threshold:50,immediate:!1,triggerOnEnd:!1});a(this,"element");a(this,"xStart");a(this,"yStart");a(this,"xEnd");a(this,"yEnd");a(this,"xDiff");a(this,"yDiff");a(this,"onToucheStartCallback");a(this,"onToucheMoveCallback");a(this,"onToucheEndCallback");a(this,"onMouseWheelCallback");a(this,"options");if(this.inputOption=e,this.options={...this.defaultOptions,...e},!this.options.element)throw new Error("[SwipeHandler] Element should be provided. Its can be a string selector or an HTMLElement");if(typeof this.options.element=="string"){const t=document.querySelector(this.options.element);if(!(t instanceof HTMLElement))throw new TypeError("[SwipeHandler] String selector for element is not found");this.element=t}else this.element=this.options.element;this.onToucheStartCallback=this.toucheStartHandler.bind(this),this.onToucheMoveCallback=this.handleTouchMove.bind(this),this.onToucheEndCallback=this.handleTouchEnd.bind(this),this.onMouseWheelCallback=this.handleMouseWheel.bind(this),this.options.immediate&&this.start()}start(){this.element.addEventListener("touchstart",this.onToucheStartCallback,{passive:!0}),this.element.addEventListener("touchmove",this.onToucheMoveCallback,{passive:!0}),this.options.triggerOnEnd&&this.element.addEventListener("touchend",this.onToucheEndCallback,{passive:!0}),this.options.preventDefaultOnMouseWheel&&this.element.addEventListener("mousewheel",this.onMouseWheelCallback,{passive:!1})}stop(){this.element.removeEventListener("touchstart",this.onToucheStartCallback),this.element.removeEventListener("touchmove",this.onToucheMoveCallback),this.element.removeEventListener("touchend",this.onToucheEndCallback),this.options.preventDefaultOnMouseWheel&&this.element.removeEventListener("mousewheel",this.onMouseWheelCallback)}handleMouseWheel(e){e.preventDefault()}toucheStartHandler(e){this.xStart=e.touches[0].clientX,this.yStart=e.touches[0].clientY,this.emitValuesChanged()}emitValuesChanged(){var e,t;(t=(e=this.options).onValuesChanged)==null||t.call(e,{xStart:this.xStart,yStart:this.yStart,xEnd:this.xEnd,yEnd:this.yEnd,xDiff:this.xDiff,yDiff:this.yDiff})}handleTouchMove(e){this.options.preventDefaultOnTouchMove&&e.cancelable&&e.preventDefault(),this.xEnd=e.touches[0].clientX,this.yEnd=e.touches[0].clientY,!(!this.xStart||!this.yStart)&&(this.xDiff=this.xStart-this.xEnd,this.yDiff=this.yStart-this.yEnd,this.emitValuesChanged(),this.options.triggerOnEnd||this.runCallbacks(e))}handleTouchEnd(e){this.runCallbacks(e),this.emitValuesChanged()}runCallbacks(e){var t,n,o,c,l,u,h,g;typeof this.xDiff!="number"||typeof this.yDiff!="number"||Math.abs(this.xDiff)<this.options.threshold&&Math.abs(this.yDiff)<this.options.threshold||(Math.abs(this.xDiff)>Math.abs(this.yDiff)?this.xDiff>0?(n=(t=this.options).onLeft)==null||n.call(t,e):(c=(o=this.options).onRight)==null||c.call(o,e):this.yDiff>0?(u=(l=this.options).onUp)==null||u.call(l,e):(g=(h=this.options).onDown)==null||g.call(h,e),this.resetValues())}resetValues(){this.xStart=void 0,this.yStart=void 0,this.xEnd=void 0,this.yEnd=void 0,this.xDiff=void 0,this.yDiff=void 0,this.emitValuesChanged()}}function Qe(s,e){let t=0;return async function(){const n=Date.now();n-t>=e&&(await s(),t=n)}}const X="__vue_click_away__",Ie=()=>document.ontouchstart===null?"touchstart":"click",ke=async(s,e)=>{Ce(s);const t=e.instance,n=e.value,o=typeof n=="function";if(!o)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await i.nextTick(),s[X]=l=>{if((!s||!s.contains(l.target))&&n&&o)return n.call(t,l)};const c=Ie();document.addEventListener(c,s[X],!1)},Ce=s=>{const e=Ie();document.removeEventListener(e,s[X],!1),delete s[X]},Ge=(s,e)=>{e.value!==e.oldValue&&ke(s,e)},ue={mounted:ke,updated:Ge,unmounted:Ce},Je={install:s=>{s.directive("click-outside",ue)}},Se=(s,e,t,n)=>{s.stopPropagation();const{handler:o,exclude:c}=t.value;let l=!1;if(c&&c.length>0)for(const u of c)l||(l=n.context.$refs[u].contains(s.target));!e.contains(s.target)&&!l&&n.context[o]()},xe=()=>document.ontouchstart===null?"touchstart":"click",et=(s,e,t)=>{const n=xe();document.removeEventListener(n,o=>Se(o,s,e,t))},tt=(s,e,t)=>{const n=xe();document.addEventListener(n,o=>Se(o,s,e,t))},me={mounted:tt,unmounted:et},st={install:s=>{s.directive("closable",me)}},nt=`
2
2
  .maz-zoom-img {
3
3
  position: fixed;
4
4
  top: 0;
@@ -121,4 +121,4 @@ var Re=Object.defineProperty;var Ye=(s,e,t)=>e in s?Re(s,e,{enumerable:!0,config
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 it{constructor(e){a(this,"options");a(this,"loader");a(this,"wrapper");a(this,"img");a(this,"keydownHandler");a(this,"onImgLoadedCallback");a(this,"buttonsAdded");a(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(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(nt);const n=document.createElement("div");n.classList.add("maz-zoom-img"),n.setAttribute("id","MazImgPreviewFullsize"),n.addEventListener("click",o=>{n.isEqualNode(o.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),n.append(this.wrapper),document.body.append(n),this.keyboardEventHandler(!0),setTimeout(()=>{n&&n.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=[],n=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,n){const o=this.getButton("previous"),c=this.getButton("next");t.push(o,c)}this.wrapper.append(e),n&&(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"),n=document.querySelector(".maz-zoom-img-instance.maz-is-open");n&&n.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,n=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(n){const o=this.allInstances.indexOf(n),c=t?o+1:o-1,l=this.allInstances[this.getNewInstanceIndex(c)];l&&this.useNextInstance(n,l)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const n=t.getAttribute("data-zoom-src"),o=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,n&&this.img.setAttribute("src",n),o&&this.img.setAttribute("alt",o)}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 me={created(s,e){j=new it(e),j.create(s)},updated(s,e){j.update(e)},unmounted(s){j.remove(s)}},ot={install(s){s.directive("zoom-img",me)}},rt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ae={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={}){a(this,"observers",[]);a(this,"defaultOptions",ae);a(this,"options");a(this,"onImgLoadedCallback");a(this,"onImgErrorCallback");a(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-CLNgmzDi.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,n;this.addClass(e,this.options.loadingClass),(n=(t=this.options).onLoading)==null||n.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,n;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(n=(t=this.options).onLoaded)==null||n.call(t,e)}imageHasError(e){var t,n;this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(n=(t=this.options).onError)==null||n.call(t,e),this.setDefaultPhoto(e)}getSrc(e){return typeof e.value=="object"?e.value.src:e.value}getImageUrl(e,t){const n=this.getImgElement(e).getAttribute("data-lazy-src");return n||(t.value,this.getSrc(t))}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const n of t){const o=n.getAttribute("data-lazy-srcset");if(o)n.srcset=o;else return this.imageHasError(e)}else 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.fallbackSrc??this.options.errorPhoto;typeof t=="string"&&this.addClass(e,this.options.noPhotoClass);const n=t??await this.loadErrorPhoto(),o=e.querySelectorAll("source");if(o.length>0)for await(const c of o)c.srcset=n;else this.setImgSrc(e,n)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",n=>this.onImgErrorCallback(e,n),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const n=this.getImageUrl(e,t);if(!n)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${n}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,n))}}setImgSrc(e,t){const n=this.getImgElement(e);n.src=t}handleIntersectionObserver(e,t,n,o){var c,l;this.observers.push(o);for(const u of n)if(u.isIntersecting){if((l=(c=this.options).onIntersecting)==null||l.call(c,u.target),this.options.observerOnce&&o.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const n=(l,u)=>{this.handleIntersectionObserver(e,t,l,u)},o=this.options.observerOptions;new IntersectionObserver(n,o).observe(e)}async imageHandler(e,t,n){if(n==="update")for await(const o of this.observers)o.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,n){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,n)}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,rt),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 n of this.observers)n.unobserve(e);this.observers=[]}}let R;const Ae={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)}},at="lazy-img",lt={install(s,e={}){const t={...ae,...e,observerOptions:{...ae.observerOptions,...e.observerOptions}},n=new xe(t);s.directive(at,{created:n.add.bind(n),updated:n.update.bind(n),unmounted:n.remove.bind(n)})}},ct=["onKeypress"],ut={class:"m-fullscreen-img-scroller"},mt=["src","alt"],dt=i.defineComponent({__name:"MazFullscreenImg",props:{src:{},clickedElementBounds:{default:void 0},offset:{default:void 0},animation:{default:()=>({duration:300,easing:"ease-in-out"})},openInstanceClass:{default:"m-fullscreen-img-instance"},clickedElement:{},destroy:{type:Function,default:void 0},alt:{default:void 0},zoom:{type:Boolean,default:!0}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-DvCq0zSA.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),c=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-D2bYJFWX.cjs"))),l=s,u=i.ref(!1),h=i.ref(!1),g=i.ref(!1),b=i.ref(!1),v=i.ref(!1),p=i.ref(l.clickedElement),z=i.computed(()=>l.clickedElement.getBoundingClientRect()),P=i.computed(()=>z.value.height<z.value.width),k=i.ref(l.src),N=i.ref(l.alt),S=i.ref(),T=i.ref(),H=i.computed(()=>v.value?"--is-zoomed maz-cursor-zoom-out":"maz-cursor-zoom-in");function V(){u.value=!0,h.value=!1,g.value=!0}i.watch(()=>g.value,m=>{m&&ne()});function L(){t("before-close"),$()}function F(m){m.key==="Escape"&&(m.preventDefault(),L()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),D(m.key==="ArrowRight"?"next":"previous"))}function J(){document.documentElement.classList.add("--m-fullscreen-open")}function ee(){document.documentElement.classList.remove("--m-fullscreen-open")}function B(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function te(m,r){return r<0?m.length-1:r>=m.length?0:r}async function se(m,r){m.classList.remove(l.openInstanceClass),r.classList.add(l.openInstanceClass);const d=r.getAttribute("data-src"),f=r.getAttribute("data-alt");N.value=f,d&&(k.value=d),u.value=!1,u.value||(h.value=!0)}function D(m){const r=document.querySelector(`.m-fullscreen-img-instance.${l.openInstanceClass}`);if(r){const d=B(),f=d.indexOf(r),w=m==="next"?f+1:f-1,E=d[te(d,w)];p.value=E,E&&se(r,E),t(m),v.value?M(T.value):C()}}function M(m){P.value?(m.style.width=`${window.innerWidth}px`,m.style.removeProperty("height")):(m.style.height=`${window.innerHeight}px`,m.style.removeProperty("width")),m.style.removeProperty("top"),m.style.removeProperty("left")}async function _(){const m=T.value;v.value?(v.value=!v.value,C()):(v.value=!v.value,M(m))}function q(m){var r;return(r=T.value)==null?void 0:r.animate(m,{duration:l.animation.duration,easing:l.animation.easing})}function x(m=l.offset??0){const r=p.value instanceof HTMLImageElement?p.value.naturalWidth:p.value.clientWidth,d=p.value instanceof HTMLImageElement?p.value.naturalHeight:p.value.clientHeight,f=window.innerWidth,w=window.innerHeight,E=Math.min((f-2*m)/r,(w-2*m)/d),ie=(f-r*E)/2,oe=(w-d*E)/2;return{originalWidth:r,originalHeight:d,scale:E,centerX:ie,centerY:oe}}function U({trigger:m}){const{originalWidth:r,originalHeight:d,scale:f,centerX:w,centerY:E}=x(),{top:ie,left:oe,width:We,height:je}=z.value,fe=[{top:`${ie}px`,left:`${oe}px`,width:`${We}px`,height:`${je}px`,opacity:0},{top:`${E}px`,left:`${w}px`,width:`${r*f}px`,height:`${d*f}px`,opacity:1}];return{frames:m==="open"?fe:fe.reverse()}}function C(){const{centerX:m,centerY:r,originalHeight:d,originalWidth:f,scale:w}=x(),E={top:`${r}px`,left:`${m}px`,width:`${f*w}px`,height:`${d*w}px`};if(!T.value)throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");Object.assign(T.value.style,E)}function ne(){const{frames:m}=U({trigger:"open"}),r=q(m);if(!r)throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");r.onfinish=()=>{C()}}function $(){const{frames:m}=U({trigger:"close"}),r=q(m);if(!r)throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");r.onfinish=()=>{var d,f;t("close"),(d=S.value)==null||d.remove(),(f=l.destroy)==null||f.call(l)}}function W(){v.value||C()}return i.onMounted(()=>{h.value=!0,document.addEventListener("keydown",F),window.addEventListener("resize",W),J(),b.value=B().length>1}),i.onBeforeUnmount(()=>{document.removeEventListener("keydown",F),window.removeEventListener("resize",W),ee()}),(m,r)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:S,role:"button",class:"m-fullscreen-img",tabindex:"0",onClick:i.withModifiers(L,["stop"]),onKeypress:i.withKeys(i.withModifiers(L,["prevent"]),["esc"])},[i.withDirectives(i.createVNode(i.unref(n),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[i.vShow,h.value]]),g.value&&b.value?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:r[0]||(r[0]=i.withModifiers(d=>D("next"),["stop"]))},[i.createVNode(i.unref(c),{class:"maz-rotate-180 maz-text-3xl"})])):i.createCommentVNode("v-if",!0),g.value&&b.value?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:r[1]||(r[1]=i.withModifiers(d=>D("previous"),["stop"]))},[i.createVNode(i.unref(c),{class:"maz-text-3xl"})])):i.createCommentVNode("v-if",!0),i.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:L},[i.createVNode(i.unref(o),{class:"maz-text-3xl"})]),i.createElementVNode("div",ut,[i.createCommentVNode(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),i.createElementVNode("img",{ref_key:"ImgElement",ref:T,src:k.value,alt:N.value??void 0,tabindex:"0",class:i.normalizeClass([H.value]),onLoad:V,onClick:r[2]||(r[2]=i.withModifiers(d=>m.zoom?_():void 0,["stop"]))},null,42,mt)])],40,ct))}}),de=(s,e)=>{const t=s.__vccOpts||s;for(const[n,o]of e)t[n]=o;return t},ht=de(dt,[["__scopeId","data-v-4836a523"]]),ge="m-fullscreen-is-open";class ft{constructor(){a(this,"options");a(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,zoom:!0,offset:80,animation:{duration:300,easing:"ease-in-out"}});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(this,"renderPreviewListener")}buildOptions(e,t){const n=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},o=(n==null?void 0:n.src)??this.getImgSrc(e),c=(n==null?void 0:n.alt)??this.getImgAlt(e);return{...this.defaultOptions,...n,src:o,alt:c}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var n;const t=((n=this.options)==null?void 0:n.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 200ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const n=this.getImgAlt(e);n&&e.setAttribute("data-alt",n),this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener)}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),le(ht,{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.04)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let Y;const he={mounted(s,e){return Y=new ft,Y.create(s,e)},updated(s,e){return Y.update(s,e)},unmounted(s){return Y.remove(s)}},vt={install(s){s.directive("fullscreen-img",he)}},gt=[{name:"click-outside",directive:ce},{name:"closable",directive:ue},{name:"zoom-img",directive:me},{name:"lazy-img",directive:Ae},{name:"fullscreen-img",directive:he}],pt={install(s){for(const{name:e,directive:t}of gt)s.directive(e,t)}},Oe=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",yt={style:"currency",minimumFractionDigits:2,round:!1},bt=(s,e,t)=>{let n=Number(s);return t.round&&(n=Math.floor(n),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(n)},wt=(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.")},Pe=(s,e,t)=>{const n={...yt,...t};wt(s,e,n);try{return bt(s,e,n)}catch(o){throw new Error(`[maz-ui](FilterCurrency) ${o}`)}},Et={month:"short",day:"numeric",year:"numeric"},He=(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 n=t??Et;try{const o=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,n).format(o)}catch(o){throw new Error(`[maz-ui](FilterDate) ${o}`)}},zt={minimumFractionDigits:2},De=(s,e,t)=>{const n={...zt,...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,n).format(Number(s))}catch(o){throw new Error(`[maz-ui](FilterNumber) ${o}`)}},Tt={capitalize:Oe,currency:Pe,date:He,number:De},Lt={install(s){s.provide("filters",Tt)}},Me=({timeout:s,callback:e,remainingTimeUpdate:t=200})=>{const n=i.ref(s);let o;function c(){n.value=s,l()}function l(){o||(o=setInterval(()=>{n.value-=t,n.value<=0&&(g(),e==null||e())},t))}function u(){o&&(clearInterval(o),o=void 0)}function h(){!o&&n.value>0&&l()}function g(){n.value=s,u()}return{remainingTime:n,start:c,pause:u,resume:h,stop:g}},It={class:"m-toast__message-wrapper"},kt={class:"m-toast__message"},Ct={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},xt={class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},At=i.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=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-eN8rfU-2.cjs"))),n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-Kw3b5yYN.cjs"))),c=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-BhBdL4E2.cjs"))),l=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-Cw7wlH9H.cjs"))),u=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-i_xlqw0y.cjs"))),h=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-Bm2TJi5n.cjs"))),g=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-BbXTqAk3.cjs"))),b=i.ref(),v=s,p=i.computed(()=>{switch(v.type){case"danger":return c;case"info":return u;case"success":return h;case"warning":return l;default:return}}),z=e,P=i.computed(()=>v.position.includes("top")?"top":"bottom"),k=i.computed(()=>v.position.includes("left")?"left":v.position.includes("right")?"right":"center"),N=i.computed(()=>k.value!=="center"?k.value==="right"?"m-slide-right":"m-slide-left":P.value==="top"?"m-slide-top":"m-slide-bottom"),S=i.ref(!1),T=i.ref(!1),H=i.ref(),V=`m-toast-container --${P.value} --${k.value}`,L=`.${V.replaceAll(" ",".")}`,{start:F,stop:J,pause:ee,resume:B,remainingTime:te}=Me({callback:$,timeout:v.timeout});function se(){const r=document.querySelector(L);if(!r&&!r){const d=document.body,f=document.createElement("div");f.className=V,d.append(f)}}function D(){const r=document.querySelector(L);return!v.queue&&v.maxToasts===!1?!1:typeof v.maxToasts=="number"&&r?v.maxToasts<=r.childElementCount:r&&r.childElementCount>0}function M(){if(D()){H.value=setTimeout(M,250);return}const r=document.querySelector(L);b.value&&r&&r.prepend(b.value),T.value=!0,F()}const _=i.ref("100%");function q(){switch(v.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"}}i.watch(()=>te.value,r=>{if(typeof r=="number"){const d=100*r/v.timeout;_.value=`${d}%`,r<=0&&$()}});function x(r){z("click",r),v.persistent||$()}async function U(r,d){var f;S.value=!0,await r(),S.value=!1,(f=v.action)!=null&&f.closeToast&&x(d)}function C(r){v.noPauseOnHover||(r?ee():B())}function ne(){J(),H.value&&clearTimeout(H.value)}function $(){ne(),T.value=!1}function W(){z("open")}function m(){var d;z("close"),(d=b.value)==null||d.remove();const r=document.querySelector(L);r&&!(r!=null&&r.hasChildNodes())&&r.remove()}return i.onMounted(()=>{se(),M()}),(r,d)=>(i.openBlock(),i.createBlock(i.Transition,{name:N.value,onAfterLeave:m,onAfterEnter:W,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("button",{ref_key:"Toaster",ref:b,class:i.normalizeClass(["m-toast",[`--${s.type}`,`--${P.value}`,`--${k.value}`,{"maz-pb-1":s.timeout}]]),role:"alert",onMouseover:d[2]||(d[2]=f=>C(!0)),onMouseleave:d[3]||(d[3]=f=>C(!1)),onClick:d[4]||(d[4]=i.withModifiers(f=>{var w;return s.link&&!((w=s.link)!=null&&w.closeToast)?void 0:x(f)},["stop"]))},[p.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(p.value),{key:0,class:"maz-text-2xl"})):i.createCommentVNode("v-if",!0),i.createElementVNode("div",It,[i.createElementVNode("p",kt,i.toDisplayString(s.message),1)]),s.action?(i.openBlock(),i.createBlock(i.unref(t),{key:1,"data-test":"action-btn",color:s.type,pastel:"",loading:S.value,size:"sm",onClick:d[0]||(d[0]=i.withModifiers(f=>U(s.action.func,f),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):i.createCommentVNode("v-if",!0),s.link?(i.openBlock(),i.createBlock(i.unref(t),{key:2,"data-test":"link-btn",color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:i.withCtx(()=>{var f;return[i.createElementVNode("div",Ct,[s.link.text?(i.openBlock(),i.createElementBlock("span",St,i.toDisplayString(s.link.text),1)):i.createCommentVNode("v-if",!0),((f=s.link)==null?void 0:f.target)=="_blank"?(i.openBlock(),i.createBlock(i.unref(o),{key:1,class:"maz-text-xl"})):(i.openBlock(),i.createBlock(i.unref(g),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):i.createCommentVNode("v-if",!0),s.persistent?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("button",{key:3,class:"--close",onClick:d[1]||(d[1]=i.withModifiers(f=>x(f),["stop"]))},[i.createVNode(i.unref(n),{class:"--icon maz-text-xl"})])),i.createElementVNode("div",xt,[i.createElementVNode("div",{style:i.normalizeStyle({width:_.value}),class:i.normalizeClass(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",q()])},null,6)])],34),[[i.vShow,T.value]])]),_:1},8,["name"]))}}),Ot=de(At,[["__scopeId","data-v-2108a543"]]),Pt={position:"bottom-right",timeout:1e4,persistent:!1};class $e{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const n={message:e,...t},o={...Pt,...n,...this.globalOptions,...t};le(Ot,{props:o,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 Ht={install(s,e){exports.toastInstance=new $e(s,e),s.provide("toast",exports.toastInstance)}},A="",Dt=s=>s.filter((e,t,n)=>t===n.indexOf(e)),Mt=s=>(e=A)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),$t=s=>s.length>0,Nt=s=>(e=A)=>Dt([...s,e]),Vt=s=>(e=A)=>s.filter(t=>t!==e);class Ne{constructor(){a(this,"_loaders",i.ref([]))}get loaders(){return i.computed(()=>this._loaders.value)}stop(e=A){this._loaders.value=Vt(this._loaders.value)(e)}start(e=A){return this._loaders.value=Nt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return i.computed(()=>$t(this._loaders.value))}isLoading(e=A){return i.computed(()=>Mt(this._loaders.value)(e)).value}}const Ve=new Ne,Ft={install:s=>{s.provide("wait",Ve)}},re={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Fe{constructor(e){a(this,"options");this.options={delay:(e==null?void 0:e.delay)??re.delay,observer:{...re.observer,...e==null?void 0:e.observer},animation:{...re.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const n of e){const c=n.target.getAttribute("data-maz-aos-children")==="true",l=n.target.getAttribute("data-maz-aos")?[n.target]:[];if(c){const u=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(h=>h.getAttribute("data-maz-aos-anchor")===`#${n.target.id}`?h:void 0);for(const h of u)h&&l.push(h)}for(const u of l){const h=u.getAttribute("data-maz-aos-once"),g=typeof h=="string"?h==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&n.intersectionRatio>this.options.observer.threshold){const b=u.getAttribute("data-maz-aos-duration"),v=u.getAttribute("data-maz-aos-delay");if(b||(u.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{u.style.transitionDuration="0"},1e3)),v||(u.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{u.style.transitionDelay="0"},1e3)),u.classList.add("maz-aos-animate"),g){const p=u.getAttribute("data-maz-aos-anchor");if(p){const z=document.querySelector(p);z&&t.unobserve(z)}t.unobserve(u)}}else u.classList.remove("maz-aos-animate")}}}async handleObserver(){await ze(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const n=t.getAttribute("data-maz-aos-anchor");if(n){const o=document.querySelector(n);o?(o.setAttribute("data-maz-aos-children","true"),e.observe(o)):console.warn(`[maz-ui](aos) no element found with selector "${n}"`)}else e.observe(t)}}runAnimations(){if(y())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const Bt={install:(s,e)=>{exports.instance$1=new Fe(e),s.provide("aos",exports.instance$1),y()&&(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"},O=i.ref("system"),I=i.ref("system");function Z({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:n,setLocalStorageValue:o=!0,setSelectedTheme:c=!0}){y()&&(document.documentElement.classList.remove(e),document.documentElement.classList.add(s),O.value=n,c&&(I.value=n),o&&(localStorage[t]=n))}function Q({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:n,setLocalStorageValue:o=!0,setSelectedTheme:c=!0}){y()&&(document.documentElement.classList.remove(s),document.documentElement.classList.add(e),O.value=n,c&&(I.value=n),o&&(localStorage[t]=n))}function Be(s){y()&&(document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),O.value=s.storageThemeValueSystem,I.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),_e({...s,setSelectedTheme:!1}))}function K(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function _e(s){y()&&(s.onlyWithStoredValue?localStorage[s.storageThemeKey]===s.storageThemeValueDark||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&K()?Z({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):(localStorage[s.storageThemeKey]===s.storageThemeValueLight||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&!K())&&Q({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&K()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&K()?Z({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):Q({...s,setLocalStorageValue:!1,setSelectedTheme:!1}))}function ye({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Be(e):s?Z(e):Q(e)}function _t(s){return O.value===s.storageThemeValueDark?Q(s):Z(s)}function qt(s=pe){const e={...pe,...s},t=i.computed(()=>I.value===e.storageThemeValueDark),n=i.computed(()=>I.value===e.storageThemeValueLight),o=i.computed(()=>I.value===e.storageThemeValueSystem);return i.onMounted(()=>{localStorage[e.storageThemeKey]&&(O.value=localStorage[e.storageThemeKey],I.value=localStorage[e.storageThemeKey])}),{autoSetTheme:c=>_e({...e,...c}),toggleTheme:()=>_t(e),setSystemTheme:()=>Be({...e,setLocalStorageValue:!0}),setDarkTheme:()=>ye({...e,shouldSetDarkMode:!0}),setLightTheme:()=>ye({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:n,hasSystemTheme:o,theme:O,selectedTheme:I}}const Ut=({componentName:s,instance:e,providedId:t})=>i.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Wt=()=>G("aos"),jt=()=>G("wait"),Rt=()=>G("toast"),Yt=({callback:s,options:e})=>new we(s,e),Kt=({callback:s,options:e})=>new Ee(s,e);function qe(s={}){const{internalWindow:e=y()?window:void 0,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,includeScrollbar:o=!0}=s,c=i.ref(t),l=i.ref(n),u=()=>{e&&(o?(c.value=e.innerWidth,l.value=e.innerHeight):(c.value=e.document.documentElement.clientWidth,l.value=e.document.documentElement.clientHeight))};return u(),e&&window.addEventListener("resize",u,{passive:!0}),{width:c,height:l}}function Xt(s){const e={};for(const[t,n]of Object.entries(s))e[t]=Number.parseInt(n,10);return e}function Zt({initialWidth:s=0,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:o,breakpoints:c,mediumBreakPoint:l="md",largeBreakPoint:u="lg"}){const{width:h}=qe({initialWidth:s,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:o}),g=Xt(c),b=i.computed(()=>h.value>=g[u]),v=i.computed(()=>h.value>=g[l]&&h.value<g[u]),p=i.computed(()=>h.value>=0&&h.value<g[l]);return{width:h,numericBreakpoints:g,isSmallScreen:p,isLargeScreen:b,isMediumScreen:v,breakpoints:c}}function Qt(s){const e=new Te({...s,element:s.element,onValuesChanged(h){t.value=h.xDiff,n.value=h.yDiff,o.value=h.xStart,c.value=h.xEnd,l.value=h.yStart,u.value=h.yEnd}}),t=i.ref(),n=i.ref(),o=i.ref(),c=i.ref(),l=i.ref(),u=i.ref();return{xDiff:t,yDiff:n,xStart:o,xEnd:c,yStart:l,yEnd:u,start:e.start,stop:e.stop}}function Ue(s){const e=s.join(", ").match(/\b\w+\b/g);return e?e.length:0}function Gt(s,e=150){const t=Ue([s]);return Math.ceil(t/e)}function Jt(s){const e=i.computed(()=>{var l;return typeof s.velocity=="number"?s.velocity:((l=s.velocity)==null?void 0:l.value)??150}),t=i.computed(()=>{var l;return typeof s.contentSelector=="string"?s.contentSelector:(l=s.contentSelector)==null?void 0:l.value}),n=i.computed(()=>{var l,u,h;if(typeof((l=s.contentRef)==null?void 0:l.value)=="object")return(u=s.contentRef.value)==null?void 0:u.textContent;if(t.value&&typeof document<"u"){const g=document.querySelector(t.value);if(g)return g.textContent}return typeof s.content=="string"?s.content:(h=s.content)==null?void 0:h.value}),o=i.computed(()=>Gt(n.value,e.value)),c=i.computed(()=>Ue([n.value]));return{content:n,wordCount:c,velocity:e,duration:o}}exports.AosHandler=Fe;exports.IdleTimeout=we;exports.ScriptLoader=Xe;exports.Swipe=Te;exports.ToasterHandler=$e;exports.UserVisibility=Ee;exports.WaitHandler=Ne;exports._export_sfc=de;exports.capitalize=Oe;exports.countryCodeToUnicodeFlag=Ze;exports.currency=Pe;exports.date=He;exports.debounce=Ke;exports.directive=ce;exports.directive$1=ue;exports.injectStrict=G;exports.installDirectives=pt;exports.installFilters=Lt;exports.installToaster=Ht;exports.instance=Ve;exports.isClient=y;exports.mount=le;exports.number=De;exports.plugin=Je;exports.plugin$1=lt;exports.plugin$2=ot;exports.plugin$3=st;exports.plugin$4=Ft;exports.plugin$5=Bt;exports.sleep=ze;exports.throttle=Qe;exports.truthyFilter=be;exports.useAos=Wt;exports.useBreakpoints=Zt;exports.useIdleTimeout=Yt;exports.useInstanceUniqId=Ut;exports.useReadingTime=Jt;exports.useSwipe=Qt;exports.useThemeHandler=qt;exports.useTimer=Me;exports.useToast=Rt;exports.useUserVisibility=Kt;exports.useWait=jt;exports.useWindowSize=qe;exports.vFullscreenImg=he;exports.vFullscreenImgInstall=vt;exports.vLazyImg=Ae;exports.vZoomImg=me;
124
+ }`,ge={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 it{constructor(e){a(this,"options");a(this,"loader");a(this,"wrapper");a(this,"img");a(this,"keydownHandler");a(this,"onImgLoadedCallback");a(this,"buttonsAdded");a(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(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(nt);const n=document.createElement("div");n.classList.add("maz-zoom-img"),n.setAttribute("id","MazImgPreviewFullsize"),n.addEventListener("click",o=>{n.isEqualNode(o.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),n.append(this.wrapper),document.body.append(n),this.keyboardEventHandler(!0),setTimeout(()=>{n&&n.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=[],n=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,n){const o=this.getButton("previous"),c=this.getButton("next");t.push(o,c)}this.wrapper.append(e),n&&(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=ge.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=ge[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"),n=document.querySelector(".maz-zoom-img-instance.maz-is-open");n&&n.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,n=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(n){const o=this.allInstances.indexOf(n),c=t?o+1:o-1,l=this.allInstances[this.getNewInstanceIndex(c)];l&&this.useNextInstance(n,l)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const n=t.getAttribute("data-zoom-src"),o=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,n&&this.img.setAttribute("src",n),o&&this.img.setAttribute("alt",o)}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 de={created(s,e){j=new it(e),j.create(s)},updated(s,e){j.update(e)},unmounted(s){j.remove(s)}},ot={install(s){s.directive("zoom-img",de)}},rt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ae={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 Ae{constructor(e={}){a(this,"observers",[]);a(this,"defaultOptions",ae);a(this,"options");a(this,"onImgLoadedCallback");a(this,"onImgErrorCallback");a(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-CLNgmzDi.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,n;this.addClass(e,this.options.loadingClass),(n=(t=this.options).onLoading)==null||n.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,n;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(n=(t=this.options).onLoaded)==null||n.call(t,e)}imageHasError(e){var t,n;this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(n=(t=this.options).onError)==null||n.call(t,e),this.setDefaultPhoto(e)}getSrc(e){return typeof e.value=="object"?e.value.src:e.value}getImageUrl(e,t){const n=this.getImgElement(e).getAttribute("data-lazy-src");return n||(t.value,this.getSrc(t))}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const n of t){const o=n.getAttribute("data-lazy-srcset");if(o)n.srcset=o;else return this.imageHasError(e)}else 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.fallbackSrc??this.options.errorPhoto;typeof t=="string"&&this.addClass(e,this.options.noPhotoClass);const n=t??await this.loadErrorPhoto(),o=e.querySelectorAll("source");if(o.length>0)for await(const c of o)c.srcset=n;else this.setImgSrc(e,n)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",n=>this.onImgErrorCallback(e,n),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const n=this.getImageUrl(e,t);if(!n)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${n}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,n))}}setImgSrc(e,t){const n=this.getImgElement(e);n.src=t}handleIntersectionObserver(e,t,n,o){var c,l;this.observers.push(o);for(const u of n)if(u.isIntersecting){if((l=(c=this.options).onIntersecting)==null||l.call(c,u.target),this.options.observerOnce&&o.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const n=(l,u)=>{this.handleIntersectionObserver(e,t,l,u)},o=this.options.observerOptions;new IntersectionObserver(n,o).observe(e)}async imageHandler(e,t,n){if(n==="update")for await(const o of this.observers)o.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,n){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,n)}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,rt),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 n of this.observers)n.unobserve(e);this.observers=[]}}let R;const Oe={created(s,e){const t=typeof e.value=="object"?e.value:{};R=new Ae(t),R.add(s,e)},updated(s,e){R.update(s,e)},unmounted(s,e){R.remove(s,e)}},at="lazy-img",lt={install(s,e={}){const t={...ae,...e,observerOptions:{...ae.observerOptions,...e.observerOptions}},n=new Ae(t);s.directive(at,{created:n.add.bind(n),updated:n.update.bind(n),unmounted:n.remove.bind(n)})}},ct=["onKeypress"],ut={class:"m-fullscreen-img-scroller"},mt=["src","alt"],dt=i.defineComponent({__name:"MazFullscreenImg",props:{src:{},clickedElementBounds:{default:void 0},offset:{default:void 0},animation:{default:()=>({duration:300,easing:"ease-in-out"})},openInstanceClass:{default:"m-fullscreen-img-instance"},clickedElement:{},destroy:{type:Function,default:void 0},alt:{default:void 0},zoom:{type:Boolean,default:!0}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-B2otf393.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),c=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-D2bYJFWX.cjs"))),l=s,u=i.ref(!1),h=i.ref(!1),g=i.ref(!1),b=i.ref(!1),v=i.ref(!1),p=i.ref(l.clickedElement),z=i.computed(()=>l.clickedElement.getBoundingClientRect()),H=i.computed(()=>z.value.height<z.value.width),k=i.ref(l.src),N=i.ref(l.alt),S=i.ref(),L=i.ref(),P=i.computed(()=>v.value?"--is-zoomed maz-cursor-zoom-out":"maz-cursor-zoom-in");function V(){u.value=!0,h.value=!1,g.value=!0}i.watch(()=>g.value,m=>{m&&ne()});function T(){t("before-close"),$()}function F(m){m.key==="Escape"&&(m.preventDefault(),T()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),D(m.key==="ArrowRight"?"next":"previous"))}function J(){document.documentElement.classList.add("--m-fullscreen-open")}function ee(){document.documentElement.classList.remove("--m-fullscreen-open")}function B(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function te(m,r){return r<0?m.length-1:r>=m.length?0:r}async function se(m,r){m.classList.remove(l.openInstanceClass),r.classList.add(l.openInstanceClass);const d=r.getAttribute("data-src"),f=r.getAttribute("data-alt");N.value=f,d&&(k.value=d),u.value=!1,u.value||(h.value=!0)}function D(m){const r=document.querySelector(`.m-fullscreen-img-instance.${l.openInstanceClass}`);if(r){const d=B(),f=d.indexOf(r),w=m==="next"?f+1:f-1,E=d[te(d,w)];p.value=E,E&&se(r,E),t(m),v.value?M(L.value):C()}}function M(m){H.value?(m.style.width=`${window.innerWidth}px`,m.style.removeProperty("height")):(m.style.height=`${window.innerHeight}px`,m.style.removeProperty("width")),m.style.removeProperty("top"),m.style.removeProperty("left")}async function _(){const m=L.value;v.value?(v.value=!v.value,C()):(v.value=!v.value,M(m))}function q(m){var r;return(r=L.value)==null?void 0:r.animate(m,{duration:l.animation.duration,easing:l.animation.easing})}function x(m=l.offset??0){const r=p.value instanceof HTMLImageElement?p.value.naturalWidth:p.value.clientWidth,d=p.value instanceof HTMLImageElement?p.value.naturalHeight:p.value.clientHeight,f=window.innerWidth,w=window.innerHeight,E=Math.min((f-2*m)/r,(w-2*m)/d),ie=(f-r*E)/2,oe=(w-d*E)/2;return{originalWidth:r,originalHeight:d,scale:E,centerX:ie,centerY:oe}}function U({trigger:m}){const{originalWidth:r,originalHeight:d,scale:f,centerX:w,centerY:E}=x(),{top:ie,left:oe,width:We,height:je}=z.value,ve=[{top:`${ie}px`,left:`${oe}px`,width:`${We}px`,height:`${je}px`,opacity:0},{top:`${E}px`,left:`${w}px`,width:`${r*f}px`,height:`${d*f}px`,opacity:1}];return{frames:m==="open"?ve:ve.reverse()}}function C(){const{centerX:m,centerY:r,originalHeight:d,originalWidth:f,scale:w}=x(),E={top:`${r}px`,left:`${m}px`,width:`${f*w}px`,height:`${d*w}px`};if(!L.value)throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");Object.assign(L.value.style,E)}function ne(){const{frames:m}=U({trigger:"open"}),r=q(m);if(!r)throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");r.onfinish=()=>{C()}}function $(){const{frames:m}=U({trigger:"close"}),r=q(m);if(!r)throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");r.onfinish=()=>{var d,f;t("close"),(d=S.value)==null||d.remove(),(f=l.destroy)==null||f.call(l)}}function W(){v.value||C()}return i.onMounted(()=>{h.value=!0,document.addEventListener("keydown",F),window.addEventListener("resize",W),J(),b.value=B().length>1}),i.onBeforeUnmount(()=>{document.removeEventListener("keydown",F),window.removeEventListener("resize",W),ee()}),(m,r)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:S,role:"button",class:"m-fullscreen-img",tabindex:"0",onClick:i.withModifiers(T,["stop"]),onKeypress:i.withKeys(i.withModifiers(T,["prevent"]),["esc"])},[i.withDirectives(i.createVNode(i.unref(n),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[i.vShow,h.value]]),g.value&&b.value?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:r[0]||(r[0]=i.withModifiers(d=>D("next"),["stop"]))},[i.createVNode(i.unref(c),{class:"maz-rotate-180 maz-text-3xl"})])):i.createCommentVNode("v-if",!0),g.value&&b.value?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:r[1]||(r[1]=i.withModifiers(d=>D("previous"),["stop"]))},[i.createVNode(i.unref(c),{class:"maz-text-3xl"})])):i.createCommentVNode("v-if",!0),i.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:T},[i.createVNode(i.unref(o),{class:"maz-text-3xl"})]),i.createElementVNode("div",ut,[i.createCommentVNode(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),i.createElementVNode("img",{ref_key:"ImgElement",ref:L,src:k.value,alt:N.value??void 0,tabindex:"0",class:i.normalizeClass([P.value]),onLoad:V,onClick:r[2]||(r[2]=i.withModifiers(d=>m.zoom?_():void 0,["stop"]))},null,42,mt)])],40,ct))}}),he=(s,e)=>{const t=s.__vccOpts||s;for(const[n,o]of e)t[n]=o;return t},ht=he(dt,[["__scopeId","data-v-4836a523"]]),pe="m-fullscreen-is-open";class ft{constructor(){a(this,"options");a(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,zoom:!0,offset:80,animation:{duration:300,easing:"ease-in-out"}});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(this,"renderPreviewListener")}buildOptions(e,t){const n=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},o=(n==null?void 0:n.src)??this.getImgSrc(e),c=(n==null?void 0:n.alt)??this.getImgAlt(e);return{...this.defaultOptions,...n,src:o,alt:c}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var n;const t=((n=this.options)==null?void 0:n.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 200ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const n=this.getImgAlt(e);n&&e.setAttribute("data-alt",n),this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener)}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(pe),ce(ht,{props:{...this.options,openInstanceClass:pe,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.04)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let Y;const fe={mounted(s,e){return Y=new ft,Y.create(s,e)},updated(s,e){return Y.update(s,e)},unmounted(s){return Y.remove(s)}},vt={install(s){s.directive("fullscreen-img",fe)}},gt=[{name:"click-outside",directive:ue},{name:"closable",directive:me},{name:"zoom-img",directive:de},{name:"lazy-img",directive:Oe},{name:"fullscreen-img",directive:fe}],pt={install(s){for(const{name:e,directive:t}of gt)s.directive(e,t)}},He=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",yt={style:"currency",minimumFractionDigits:2,round:!1},bt=(s,e,t)=>{let n=Number(s);return t.round&&(n=Math.floor(n),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(n)},wt=(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.")},Pe=(s,e,t)=>{const n={...yt,...t};wt(s,e,n);try{return bt(s,e,n)}catch(o){throw new Error(`[maz-ui](FilterCurrency) ${o}`)}},Et={month:"short",day:"numeric",year:"numeric"},De=(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 n=t??Et;try{const o=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,n).format(o)}catch(o){throw new Error(`[maz-ui](FilterDate) ${o}`)}},zt={minimumFractionDigits:2},Me=(s,e,t)=>{const n={...zt,...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,n).format(Number(s))}catch(o){throw new Error(`[maz-ui](FilterNumber) ${o}`)}},Lt={capitalize:He,currency:Pe,date:De,number:Me},Tt={install(s){s.provide("filters",Lt)}},$e=({timeout:s,callback:e,remainingTimeUpdate:t=200})=>{const n=i.ref(s);let o;function c(){n.value=s,l()}function l(){o||(o=setInterval(()=>{n.value-=t,n.value<=0&&(g(),e==null||e())},t))}function u(){o&&(clearInterval(o),o=void 0)}function h(){!o&&n.value>0&&l()}function g(){n.value=s,u()}return{remainingTime:n,start:c,pause:u,resume:h,stop:g}},It={class:"m-toast__message-wrapper"},kt={class:"m-toast__message"},Ct={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},xt={class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},At=i.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=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-Ds3ljkPz.cjs"))),n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-Kw3b5yYN.cjs"))),c=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-BhBdL4E2.cjs"))),l=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-Cw7wlH9H.cjs"))),u=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-i_xlqw0y.cjs"))),h=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-Bm2TJi5n.cjs"))),g=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-BbXTqAk3.cjs"))),b=i.ref(),v=s,p=i.computed(()=>{switch(v.type){case"danger":return c;case"info":return u;case"success":return h;case"warning":return l;default:return}}),z=e,H=i.computed(()=>v.position.includes("top")?"top":"bottom"),k=i.computed(()=>v.position.includes("left")?"left":v.position.includes("right")?"right":"center"),N=i.computed(()=>k.value!=="center"?k.value==="right"?"m-slide-right":"m-slide-left":H.value==="top"?"m-slide-top":"m-slide-bottom"),S=i.ref(!1),L=i.ref(!1),P=i.ref(),V=`m-toast-container --${H.value} --${k.value}`,T=`.${V.replaceAll(" ",".")}`,{start:F,stop:J,pause:ee,resume:B,remainingTime:te}=$e({callback:$,timeout:v.timeout});function se(){const r=document.querySelector(T);if(!r&&!r){const d=document.body,f=document.createElement("div");f.className=V,d.append(f)}}function D(){const r=document.querySelector(T);return!v.queue&&v.maxToasts===!1?!1:typeof v.maxToasts=="number"&&r?v.maxToasts<=r.childElementCount:r&&r.childElementCount>0}function M(){if(D()){P.value=setTimeout(M,250);return}const r=document.querySelector(T);b.value&&r&&r.prepend(b.value),L.value=!0,F()}const _=i.ref("100%");function q(){switch(v.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"}}i.watch(()=>te.value,r=>{if(typeof r=="number"){const d=100*r/v.timeout;_.value=`${d}%`,r<=0&&$()}});function x(r){z("click",r),v.persistent||$()}async function U(r,d){var f;S.value=!0,await r(),S.value=!1,(f=v.action)!=null&&f.closeToast&&x(d)}function C(r){v.noPauseOnHover||(r?ee():B())}function ne(){J(),P.value&&clearTimeout(P.value)}function $(){ne(),L.value=!1}function W(){z("open")}function m(){var d;z("close"),(d=b.value)==null||d.remove();const r=document.querySelector(T);r&&!(r!=null&&r.hasChildNodes())&&r.remove()}return i.onMounted(()=>{se(),M()}),(r,d)=>(i.openBlock(),i.createBlock(i.Transition,{name:N.value,onAfterLeave:m,onAfterEnter:W,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("button",{ref_key:"Toaster",ref:b,class:i.normalizeClass(["m-toast",[`--${s.type}`,`--${H.value}`,`--${k.value}`,{"maz-pb-1":s.timeout}]]),role:"alert",onMouseover:d[2]||(d[2]=f=>C(!0)),onMouseleave:d[3]||(d[3]=f=>C(!1)),onClick:d[4]||(d[4]=i.withModifiers(f=>{var w;return s.link&&!((w=s.link)!=null&&w.closeToast)?void 0:x(f)},["stop"]))},[p.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(p.value),{key:0,class:"maz-text-2xl"})):i.createCommentVNode("v-if",!0),i.createElementVNode("div",It,[i.createElementVNode("p",kt,i.toDisplayString(s.message),1)]),s.action?(i.openBlock(),i.createBlock(i.unref(t),{key:1,"data-test":"action-btn",color:s.type,pastel:"",loading:S.value,size:"sm",onClick:d[0]||(d[0]=i.withModifiers(f=>U(s.action.func,f),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):i.createCommentVNode("v-if",!0),s.link?(i.openBlock(),i.createBlock(i.unref(t),{key:2,"data-test":"link-btn",color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:i.withCtx(()=>{var f;return[i.createElementVNode("div",Ct,[s.link.text?(i.openBlock(),i.createElementBlock("span",St,i.toDisplayString(s.link.text),1)):i.createCommentVNode("v-if",!0),((f=s.link)==null?void 0:f.target)=="_blank"?(i.openBlock(),i.createBlock(i.unref(o),{key:1,class:"maz-text-xl"})):(i.openBlock(),i.createBlock(i.unref(g),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):i.createCommentVNode("v-if",!0),s.persistent?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("button",{key:3,class:"--close",onClick:d[1]||(d[1]=i.withModifiers(f=>x(f),["stop"]))},[i.createVNode(i.unref(n),{class:"--icon maz-text-xl"})])),i.createElementVNode("div",xt,[i.createElementVNode("div",{style:i.normalizeStyle({width:_.value}),class:i.normalizeClass(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",q()])},null,6)])],34),[[i.vShow,L.value]])]),_:1},8,["name"]))}}),Ot=he(At,[["__scopeId","data-v-2108a543"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Ne{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const n={message:e,...t},o={...Ht,...n,...this.globalOptions,...t};ce(Ot,{props:o,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 Pt={install(s,e){exports.toastInstance=new Ne(s,e),s.provide("toast",exports.toastInstance)}},A="",Dt=s=>s.filter((e,t,n)=>t===n.indexOf(e)),Mt=s=>(e=A)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),$t=s=>s.length>0,Nt=s=>(e=A)=>Dt([...s,e]),Vt=s=>(e=A)=>s.filter(t=>t!==e);class Ve{constructor(){a(this,"_loaders",i.ref([]))}get loaders(){return i.computed(()=>this._loaders.value)}stop(e=A){this._loaders.value=Vt(this._loaders.value)(e)}start(e=A){return this._loaders.value=Nt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return i.computed(()=>$t(this._loaders.value))}isLoading(e=A){return i.computed(()=>Mt(this._loaders.value)(e)).value}}const Fe=new Ve,Ft={install:s=>{s.provide("wait",Fe)}},re={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Be{constructor(e){a(this,"options");this.options={delay:(e==null?void 0:e.delay)??re.delay,observer:{...re.observer,...e==null?void 0:e.observer},animation:{...re.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const n of e){const c=n.target.getAttribute("data-maz-aos-children")==="true",l=n.target.getAttribute("data-maz-aos")?[n.target]:[];if(c){const u=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(h=>h.getAttribute("data-maz-aos-anchor")===`#${n.target.id}`?h:void 0);for(const h of u)h&&l.push(h)}for(const u of l){const h=u.getAttribute("data-maz-aos-once"),g=typeof h=="string"?h==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&n.intersectionRatio>this.options.observer.threshold){const b=u.getAttribute("data-maz-aos-duration"),v=u.getAttribute("data-maz-aos-delay");if(b||(u.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{u.style.transitionDuration="0"},1e3)),v||(u.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{u.style.transitionDelay="0"},1e3)),u.classList.add("maz-aos-animate"),g){const p=u.getAttribute("data-maz-aos-anchor");if(p){const z=document.querySelector(p);z&&t.unobserve(z)}t.unobserve(u)}}else u.classList.remove("maz-aos-animate")}}}async handleObserver(){await Le(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const n=t.getAttribute("data-maz-aos-anchor");if(n){const o=document.querySelector(n);o?(o.setAttribute("data-maz-aos-children","true"),e.observe(o)):console.warn(`[maz-ui](aos) no element found with selector "${n}"`)}else e.observe(t)}}runAnimations(){if(y())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const Bt={install:(s,e)=>{exports.instance$1=new Be(e),s.provide("aos",exports.instance$1),y()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},ye={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system",watchChanges:!0},O=i.ref("system"),I=i.ref("system");function Z({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:n,setLocalStorageValue:o=!0,setSelectedTheme:c=!0}){y()&&(document.documentElement.classList.remove(e),document.documentElement.classList.add(s),O.value=n,c&&(I.value=n),o&&(localStorage[t]=n))}function Q({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:n,setLocalStorageValue:o=!0,setSelectedTheme:c=!0}){y()&&(document.documentElement.classList.remove(s),document.documentElement.classList.add(e),O.value=n,c&&(I.value=n),o&&(localStorage[t]=n))}function _e(s){y()&&(document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),O.value=s.storageThemeValueSystem,I.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),le({...s}))}function K(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function le(s){y()&&(s.onlyWithStoredValue?localStorage[s.storageThemeKey]===s.storageThemeValueDark||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&K()?Z({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):(localStorage[s.storageThemeKey]===s.storageThemeValueLight||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&!K())&&Q({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&K()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&K()?Z({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):Q({...s,setLocalStorageValue:!1,setSelectedTheme:!1}))}function be({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?_e(e):s?Z(e):Q(e)}function _t(s){return O.value===s.storageThemeValueDark?Q(s):Z(s)}function qt(s=ye){const e={...ye,...s},t=i.computed(()=>I.value===e.storageThemeValueDark),n=i.computed(()=>I.value===e.storageThemeValueLight),o=i.computed(()=>I.value===e.storageThemeValueSystem);function c(){le(e)}return i.onMounted(()=>{localStorage[e.storageThemeKey]&&(O.value=localStorage[e.storageThemeKey],I.value=localStorage[e.storageThemeKey]),e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",c)}),i.onBeforeUnmount(()=>{e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",c)}),{autoSetTheme:l=>le({...e,...l}),toggleTheme:()=>_t(e),setSystemTheme:()=>_e({...e,setLocalStorageValue:!0}),setDarkTheme:()=>be({...e,shouldSetDarkMode:!0}),setLightTheme:()=>be({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:n,hasSystemTheme:o,theme:O,selectedTheme:I}}const Ut=({componentName:s,instance:e,providedId:t})=>i.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Wt=()=>G("aos"),jt=()=>G("wait"),Rt=()=>G("toast"),Yt=({callback:s,options:e})=>new Ee(s,e),Kt=({callback:s,options:e})=>new ze(s,e);function qe(s={}){const{internalWindow:e=y()?window:void 0,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,includeScrollbar:o=!0}=s,c=i.ref(t),l=i.ref(n);function u(){e&&(o?(c.value=e.innerWidth,l.value=e.innerHeight):(c.value=e.document.documentElement.clientWidth,l.value=e.document.documentElement.clientHeight))}return u(),i.onMounted(()=>{e&&window.addEventListener("resize",u,{passive:!0})}),i.onUnmounted(()=>{e&&window.removeEventListener("resize",u)}),{width:c,height:l}}function Xt(s){const e={};for(const[t,n]of Object.entries(s))e[t]=Number.parseInt(n,10);return e}function Zt({initialWidth:s=0,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:o,breakpoints:c,mediumBreakPoint:l="md",largeBreakPoint:u="lg"}){const{width:h}=qe({initialWidth:s,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:o}),g=Xt(c),b=i.computed(()=>h.value>=g[u]),v=i.computed(()=>h.value>=g[l]&&h.value<g[u]),p=i.computed(()=>h.value>=0&&h.value<g[l]);return{width:h,numericBreakpoints:g,isSmallScreen:p,isLargeScreen:b,isMediumScreen:v,breakpoints:c}}function Qt(s){const e=new Te({...s,element:s.element,onValuesChanged(h){t.value=h.xDiff,n.value=h.yDiff,o.value=h.xStart,c.value=h.xEnd,l.value=h.yStart,u.value=h.yEnd}}),t=i.ref(),n=i.ref(),o=i.ref(),c=i.ref(),l=i.ref(),u=i.ref();return{xDiff:t,yDiff:n,xStart:o,xEnd:c,yStart:l,yEnd:u,start:e.start,stop:e.stop}}function Ue(s){const e=s.join(", ").match(/\b\w+\b/g);return e?e.length:0}function Gt(s,e=150){const t=Ue([s]);return Math.ceil(t/e)}function Jt(s){const e=i.computed(()=>{var l;return typeof s.velocity=="number"?s.velocity:((l=s.velocity)==null?void 0:l.value)??150}),t=i.computed(()=>{var l;return typeof s.contentSelector=="string"?s.contentSelector:(l=s.contentSelector)==null?void 0:l.value}),n=i.computed(()=>{var l,u,h;if(typeof((l=s.contentRef)==null?void 0:l.value)=="object")return(u=s.contentRef.value)==null?void 0:u.textContent;if(t.value&&typeof document<"u"){const g=document.querySelector(t.value);if(g)return g.textContent}return typeof s.content=="string"?s.content:(h=s.content)==null?void 0:h.value}),o=i.computed(()=>Gt(n.value,e.value)),c=i.computed(()=>Ue([n.value]));return{content:n,wordCount:c,velocity:e,duration:o}}exports.AosHandler=Be;exports.IdleTimeout=Ee;exports.ScriptLoader=Xe;exports.Swipe=Te;exports.ToasterHandler=Ne;exports.UserVisibility=ze;exports.WaitHandler=Ve;exports._export_sfc=he;exports.capitalize=He;exports.countryCodeToUnicodeFlag=Ze;exports.currency=Pe;exports.date=De;exports.debounce=Ke;exports.directive=ue;exports.directive$1=me;exports.injectStrict=G;exports.installDirectives=pt;exports.installFilters=Tt;exports.installToaster=Pt;exports.instance=Fe;exports.isClient=y;exports.mount=ce;exports.number=Me;exports.plugin=Je;exports.plugin$1=lt;exports.plugin$2=ot;exports.plugin$3=st;exports.plugin$4=Ft;exports.plugin$5=Bt;exports.sleep=Le;exports.throttle=Qe;exports.truthyFilter=we;exports.useAos=Wt;exports.useBreakpoints=Zt;exports.useIdleTimeout=Yt;exports.useInstanceUniqId=Ut;exports.useReadingTime=Jt;exports.useSwipe=Qt;exports.useThemeHandler=qt;exports.useTimer=$e;exports.useToast=Rt;exports.useUserVisibility=Kt;exports.useWait=jt;exports.useWindowSize=qe;exports.vFullscreenImg=fe;exports.vFullscreenImgInstall=vt;exports.vLazyImg=Oe;exports.vZoomImg=de;