maz-ui 3.35.2 → 3.36.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.
@@ -1 +1 @@
1
- html.--m-fullscreen-open{height:100vh;overflow:hidden}.m-fullscreen-img[data-v-4836a523]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;height:100vh;width:100vw;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--maz-bg-overlay);outline:2px solid transparent;outline-offset:2px;--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)}.m-fullscreen-img .m-fullscreen-img-scroller[data-v-4836a523]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100vh;width:100vw;overflow:auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-fullscreen-img img[data-v-4836a523]{position:fixed;z-index:1051;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;outline:2px solid transparent;outline-offset:2px}.m-fullscreen-img .m-fullscreen-img-loader[data-v-4836a523]{position:absolute;left:50%;top:50%;z-index:10;--tw-translate-x: -50%;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));font-size:3.75rem;line-height:1}.m-fullscreen-img .m-fullscreen-btn[data-v-4836a523]{position:absolute;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex;height:5rem;width:7%;min-width:5em;cursor:pointer;padding:1rem;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.2s;transition-duration:.2s}.m-fullscreen-img .m-fullscreen-btn.--close[data-v-4836a523]{right:0;top:0;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-fullscreen-img .m-fullscreen-btn.--previous[data-v-4836a523]{left:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.m-fullscreen-img .m-fullscreen-btn.--next[data-v-4836a523]{right:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.5rem;padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-2108a543],.m-toast *[data-v-2108a543]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-2108a543]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-item-align:center;align-self:center;overflow:hidden;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.m-toast.--left[data-v-2108a543],.m-toast.--right[data-v-2108a543]{width:22rem}.m-toast.--center[data-v-2108a543]{width:22rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-2108a543]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-2108a543]{margin:0;text-align:left;font-weight:500}.m-toast .--close[data-v-2108a543]{display:-webkit-box;display:-ms-flexbox;display:flex;height:2.25rem;width:2.25rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-2108a543]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-2108a543]{cursor:pointer}.m-toast.--info[data-v-2108a543]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-2108a543]:hover{background-color:var(--maz-color-info-400)}.m-toast.--success[data-v-2108a543]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-2108a543]:hover{background-color:var(--maz-color-success-400)}.m-toast.--warning[data-v-2108a543]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-2108a543]:hover{background-color:var(--maz-color-warning-400)}.m-toast.--danger[data-v-2108a543]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-2108a543]:hover{background-color:var(--maz-color-danger-400)}.m-toast.--theme[data-v-2108a543]{background-color:var(--maz-color-bg);color:var(--maz-color-text)}.m-toast.--theme[data-v-2108a543]:hover{background-color:var(--maz-color-bg-light)}:is([class~=dark] .m-toast.--theme[data-v-2108a543]){border-width:var(--maz-border-width);border-style:solid;border-color:var(--maz-color-bg-lighter)}.m-slide-top-enter-active[data-v-2108a543],.m-slide-top-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-2108a543],.m-slide-top-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-2108a543],.m-slide-bottom-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-2108a543],.m-slide-bottom-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-2108a543],.m-slide-right-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-2108a543],.m-slide-right-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-2108a543],.m-slide-left-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-2108a543],.m-slide-left-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}.m-tabs-bar[data-v-0c9a611c]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;max-width:100%;gap:.25rem;overflow-x:auto;border-radius:var(--maz-border-radius);padding:.5rem}:is([class~=dark] .m-tabs-bar[data-v-0c9a611c]){border-width:var(--maz-border-width);border-color:var(--maz-color-bg-lighter)}.m-tabs-bar.--elevation[data-v-0c9a611c]{-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}:is([class~=dark] .m-tabs-bar.--elevation[data-v-0c9a611c]){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.m-tabs-bar.--block[data-v-0c9a611c]{width:100%}.m-tabs-bar__item[data-v-0c9a611c]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:none;flex:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;border-radius:var(--maz-border-radius);padding:.5rem .75rem;text-align:center;font-weight:500;text-decoration-line:none;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-tabs-bar__item[data-v-0c9a611c]:not(.--disabled){cursor:pointer}.m-tabs-bar__item[data-v-0c9a611c]:not(.--disabled):hover{color:var(--maz-color-text)!important}.m-tabs-bar__item.--disabled[data-v-0c9a611c]{cursor:not-allowed;background-color:var(--maz-color-bg-lighter);--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is([class~=dark] .m-tabs-bar__item.--disabled[data-v-0c9a611c]){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.m-tabs-bar__indicator[data-v-0c9a611c]{position:absolute;left:0;border-radius:var(--maz-border-radius);background-color:var(--maz-color-bg-light);text-align:center}.m-tabs-bar__indicator.--animated[data-v-0c9a611c]{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}
1
+ html.--m-fullscreen-open{height:100vh;overflow:hidden}.m-fullscreen-img[data-v-4836a523]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;height:100vh;width:100vw;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--maz-bg-overlay);outline:2px solid transparent;outline-offset:2px;--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)}.m-fullscreen-img .m-fullscreen-img-scroller[data-v-4836a523]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100vh;width:100vw;overflow:auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-fullscreen-img img[data-v-4836a523]{position:fixed;z-index:1051;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;outline:2px solid transparent;outline-offset:2px}.m-fullscreen-img .m-fullscreen-img-loader[data-v-4836a523]{position:absolute;left:50%;top:50%;z-index:10;--tw-translate-x: -50%;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));font-size:3.75rem;line-height:1}.m-fullscreen-img .m-fullscreen-btn[data-v-4836a523]{position:absolute;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex;height:5rem;width:7%;min-width:5em;cursor:pointer;padding:1rem;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.2s;transition-duration:.2s}.m-fullscreen-img .m-fullscreen-btn.--close[data-v-4836a523]{right:0;top:0;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-fullscreen-img .m-fullscreen-btn.--previous[data-v-4836a523]{left:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.m-fullscreen-img .m-fullscreen-btn.--next[data-v-4836a523]{right:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.5rem;padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-09dcb8e0],.m-toast *[data-v-09dcb8e0]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-09dcb8e0]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:default;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-item-align:center;align-self:center;overflow:hidden;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-toast[data-v-09dcb8e0]:not(.--persistent){cursor:pointer}@media (min-width: 768px){.m-toast.--left[data-v-09dcb8e0],.m-toast.--right[data-v-09dcb8e0]{width:22rem}.m-toast.--center[data-v-09dcb8e0]{width:22rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-09dcb8e0]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-09dcb8e0]{margin:0;text-align:left;font-weight:500}.m-toast .--close[data-v-09dcb8e0]{display:-webkit-box;display:-ms-flexbox;display:flex;height:2.25rem;width:2.25rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-09dcb8e0]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-09dcb8e0]{cursor:pointer}.m-toast.--info[data-v-09dcb8e0]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-info-400)}.m-toast.--success[data-v-09dcb8e0]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-success-400)}.m-toast.--warning[data-v-09dcb8e0]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-warning-400)}.m-toast.--danger[data-v-09dcb8e0]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-danger-400)}.m-toast.--theme[data-v-09dcb8e0]{background-color:var(--maz-color-bg);color:var(--maz-color-text)}:is([class~=dark] .m-toast.--theme[data-v-09dcb8e0]){border-width:var(--maz-border-width);border-style:solid;border-color:var(--maz-color-bg-lighter)}.m-toast.--theme[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-bg-light)}.m-slide-top-enter-active[data-v-09dcb8e0],.m-slide-top-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-09dcb8e0],.m-slide-top-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-09dcb8e0],.m-slide-bottom-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-09dcb8e0],.m-slide-bottom-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-09dcb8e0],.m-slide-right-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-09dcb8e0],.m-slide-right-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-09dcb8e0],.m-slide-left-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-09dcb8e0],.m-slide-left-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}.m-tabs-bar[data-v-0c9a611c]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;max-width:100%;gap:.25rem;overflow-x:auto;border-radius:var(--maz-border-radius);padding:.5rem}:is([class~=dark] .m-tabs-bar[data-v-0c9a611c]){border-width:var(--maz-border-width);border-color:var(--maz-color-bg-lighter)}.m-tabs-bar.--elevation[data-v-0c9a611c]{-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}:is([class~=dark] .m-tabs-bar.--elevation[data-v-0c9a611c]){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.m-tabs-bar.--block[data-v-0c9a611c]{width:100%}.m-tabs-bar__item[data-v-0c9a611c]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:none;flex:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;border-radius:var(--maz-border-radius);padding:.5rem .75rem;text-align:center;font-weight:500;text-decoration-line:none;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-tabs-bar__item[data-v-0c9a611c]:not(.--disabled){cursor:pointer}.m-tabs-bar__item[data-v-0c9a611c]:not(.--disabled):hover{color:var(--maz-color-text)!important}.m-tabs-bar__item.--disabled[data-v-0c9a611c]{cursor:not-allowed;background-color:var(--maz-color-bg-lighter);--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is([class~=dark] .m-tabs-bar__item.--disabled[data-v-0c9a611c]){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.m-tabs-bar__indicator[data-v-0c9a611c]{position:absolute;left:0;border-radius:var(--maz-border-radius);background-color:var(--maz-color-bg-light);text-align:center}.m-tabs-bar__indicator.--animated[data-v-0c9a611c]{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}
@@ -1 +1 @@
1
- html.--m-fullscreen-open{height:100vh;overflow:hidden}.m-fullscreen-img[data-v-4836a523]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;height:100vh;width:100vw;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--maz-bg-overlay);outline:2px solid transparent;outline-offset:2px;--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)}.m-fullscreen-img .m-fullscreen-img-scroller[data-v-4836a523]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100vh;width:100vw;overflow:auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-fullscreen-img img[data-v-4836a523]{position:fixed;z-index:1051;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;outline:2px solid transparent;outline-offset:2px}.m-fullscreen-img .m-fullscreen-img-loader[data-v-4836a523]{position:absolute;left:50%;top:50%;z-index:10;--tw-translate-x: -50%;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));font-size:3.75rem;line-height:1}.m-fullscreen-img .m-fullscreen-btn[data-v-4836a523]{position:absolute;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex;height:5rem;width:7%;min-width:5em;cursor:pointer;padding:1rem;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.2s;transition-duration:.2s}.m-fullscreen-img .m-fullscreen-btn.--close[data-v-4836a523]{right:0;top:0;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-fullscreen-img .m-fullscreen-btn.--previous[data-v-4836a523]{left:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.m-fullscreen-img .m-fullscreen-btn.--next[data-v-4836a523]{right:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.5rem;padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-2108a543],.m-toast *[data-v-2108a543]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-2108a543]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-item-align:center;align-self:center;overflow:hidden;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.m-toast.--left[data-v-2108a543],.m-toast.--right[data-v-2108a543]{width:22rem}.m-toast.--center[data-v-2108a543]{width:22rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-2108a543]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-2108a543]{margin:0;text-align:left;font-weight:500}.m-toast .--close[data-v-2108a543]{display:-webkit-box;display:-ms-flexbox;display:flex;height:2.25rem;width:2.25rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-2108a543]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-2108a543]{cursor:pointer}.m-toast.--info[data-v-2108a543]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-2108a543]:hover{background-color:var(--maz-color-info-400)}.m-toast.--success[data-v-2108a543]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-2108a543]:hover{background-color:var(--maz-color-success-400)}.m-toast.--warning[data-v-2108a543]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-2108a543]:hover{background-color:var(--maz-color-warning-400)}.m-toast.--danger[data-v-2108a543]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-2108a543]:hover{background-color:var(--maz-color-danger-400)}.m-toast.--theme[data-v-2108a543]{background-color:var(--maz-color-bg);color:var(--maz-color-text)}.m-toast.--theme[data-v-2108a543]:hover{background-color:var(--maz-color-bg-light)}:is([class~=dark] .m-toast.--theme[data-v-2108a543]){border-width:var(--maz-border-width);border-style:solid;border-color:var(--maz-color-bg-lighter)}.m-slide-top-enter-active[data-v-2108a543],.m-slide-top-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-2108a543],.m-slide-top-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-2108a543],.m-slide-bottom-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-2108a543],.m-slide-bottom-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-2108a543],.m-slide-right-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-2108a543],.m-slide-right-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-2108a543],.m-slide-left-leave-active[data-v-2108a543]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-2108a543],.m-slide-left-leave-to[data-v-2108a543]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}
1
+ html.--m-fullscreen-open{height:100vh;overflow:hidden}.m-fullscreen-img[data-v-4836a523]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;height:100vh;width:100vw;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--maz-bg-overlay);outline:2px solid transparent;outline-offset:2px;--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)}.m-fullscreen-img .m-fullscreen-img-scroller[data-v-4836a523]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100vh;width:100vw;overflow:auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-fullscreen-img img[data-v-4836a523]{position:fixed;z-index:1051;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;outline:2px solid transparent;outline-offset:2px}.m-fullscreen-img .m-fullscreen-img-loader[data-v-4836a523]{position:absolute;left:50%;top:50%;z-index:10;--tw-translate-x: -50%;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));font-size:3.75rem;line-height:1}.m-fullscreen-img .m-fullscreen-btn[data-v-4836a523]{position:absolute;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex;height:5rem;width:7%;min-width:5em;cursor:pointer;padding:1rem;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.2s;transition-duration:.2s}.m-fullscreen-img .m-fullscreen-btn.--close[data-v-4836a523]{right:0;top:0;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-fullscreen-img .m-fullscreen-btn.--previous[data-v-4836a523]{left:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.m-fullscreen-img .m-fullscreen-btn.--next[data-v-4836a523]{right:0;top:50%;height:100vh;--tw-translate-y: -50%;-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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.5rem;padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-09dcb8e0],.m-toast *[data-v-09dcb8e0]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-09dcb8e0]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:default;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-item-align:center;align-self:center;overflow:hidden;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-toast[data-v-09dcb8e0]:not(.--persistent){cursor:pointer}@media (min-width: 768px){.m-toast.--left[data-v-09dcb8e0],.m-toast.--right[data-v-09dcb8e0]{width:22rem}.m-toast.--center[data-v-09dcb8e0]{width:22rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-09dcb8e0]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-09dcb8e0]{margin:0;text-align:left;font-weight:500}.m-toast .--close[data-v-09dcb8e0]{display:-webkit-box;display:-ms-flexbox;display:flex;height:2.25rem;width:2.25rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-09dcb8e0]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-09dcb8e0]{cursor:pointer}.m-toast.--info[data-v-09dcb8e0]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-info-400)}.m-toast.--success[data-v-09dcb8e0]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-success-400)}.m-toast.--warning[data-v-09dcb8e0]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-warning-400)}.m-toast.--danger[data-v-09dcb8e0]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-danger-400)}.m-toast.--theme[data-v-09dcb8e0]{background-color:var(--maz-color-bg);color:var(--maz-color-text)}:is([class~=dark] .m-toast.--theme[data-v-09dcb8e0]){border-width:var(--maz-border-width);border-style:solid;border-color:var(--maz-color-bg-lighter)}.m-toast.--theme[data-v-09dcb8e0]:not(.--persistent):hover{background-color:var(--maz-color-bg-light)}.m-slide-top-enter-active[data-v-09dcb8e0],.m-slide-top-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-09dcb8e0],.m-slide-top-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-09dcb8e0],.m-slide-bottom-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-09dcb8e0],.m-slide-bottom-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-09dcb8e0],.m-slide-right-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-09dcb8e0],.m-slide-right-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-09dcb8e0],.m-slide-left-leave-active[data-v-09dcb8e0]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-09dcb8e0],.m-slide-left-leave-to[data-v-09dcb8e0]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}
@@ -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-Cd939Pzv.mjs";
3
+ import { _ as D } from "./index-DKgMLGti.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-BGhcM5_9.mjs")), f = h(() => import("./MazIcon-Do-AT_Gw.mjs")), { href: k, to: I } = R(), p = S(), e = g;
29
+ const B = h(() => import("./MazSpinner-XnoDFuH-.mjs")), f = h(() => import("./MazIcon-aceUoSZ8.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,4 +1,4 @@
1
- var I=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("./index-BvpGBt8_.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-BwqMyVx2.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-D67r-mVk.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-CDU35ONK.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-Zd3I5gif.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-20EEWOoS.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-BvpGBt8_.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-CDU35ONK.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-Cd939Pzv.mjs";
2
+ import { i as q } from "./index-DKgMLGti.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -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-Cd939Pzv.mjs";
3
+ import { _ as p } from "./index-DKgMLGti.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 +1 @@
1
- var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BvpGBt8_.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-CDU35ONK.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,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 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=`
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 c=(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 w(){return typeof document<"u"}class Ee{constructor(e,t){c(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});c(this,"options");c(this,"timeoutHandler");c(this,"isIdle",!1);c(this,"isDestroy",!1);c(this,"startTime",0);c(this,"remainingTime",0);c(this,"lastClientX",-1);c(this,"lastClientY",-1);c(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);c(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},w()&&this.start()}get element(){return this.options.element??document.body}start(){if(!w()){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(!w()){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){c(this,"eventHandlerFunction");c(this,"event","visibilitychange");c(this,"timeoutHandler");c(this,"options");c(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});c(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),w()&&this.start()}start(){if(!w()){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:a=!0}){c(this,"src");c(this,"script");c(this,"once");c(this,"async");c(this,"defer");c(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=a}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",a=>n(new Error(`[ScriptLoader](injectScript) ${a.message}`))),o.addEventListener("load",a=>(this.script=a,e[this.identifier]=a,t(a))),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){c(this,"defaultOptions",{preventDefaultOnTouchMove:!1,preventDefaultOnMouseWheel:!1,threshold:50,immediate:!1,triggerOnEnd:!1});c(this,"element");c(this,"xStart");c(this,"yStart");c(this,"xEnd");c(this,"yEnd");c(this,"xDiff");c(this,"yDiff");c(this,"onToucheStartCallback");c(this,"onToucheMoveCallback");c(this,"onToucheEndCallback");c(this,"onMouseWheelCallback");c(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,a,l,u,d,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):(a=(o=this.options).onRight)==null||a.call(o,e):this.yDiff>0?(u=(l=this.options).onUp)==null||u.call(l,e):(g=(d=this.options).onDown)==null||g.call(d,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 a=Ie();document.addEventListener(a,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:a}=t.value;let l=!1;if(a&&a.length>0)for(const u of a)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
- }`,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-BwqMyVx2.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-CAqBCvkl.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;
124
+ }`,pe={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){c(this,"options");c(this,"loader");c(this,"wrapper");c(this,"img");c(this,"keydownHandler");c(this,"onImgLoadedCallback");c(this,"buttonsAdded");c(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(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"),a=this.getButton("next");t.push(o,a)}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=pe.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=pe[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),a=t?o+1:o-1,l=this.allInstances[this.getNewInstanceIndex(a)];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={}){c(this,"observers",[]);c(this,"defaultOptions",ae);c(this,"options");c(this,"onImgLoadedCallback");c(this,"onImgErrorCallback");c(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 a of o)a.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 a,l;this.observers.push(o);for(const u of n)if(u.isIntersecting){if((l=(a=this.options).onIntersecting)==null||l.call(a,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-Zd3I5gif.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),a=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-D2bYJFWX.cjs"))),l=s,u=i.ref(!1),d=i.ref(!1),g=i.ref(!1),E=i.ref(!1),y=i.ref(!1),v=i.ref(l.clickedElement),L=i.computed(()=>l.clickedElement.getBoundingClientRect()),D=i.computed(()=>L.value.height<L.value.width),x=i.ref(l.src),I=i.ref(l.alt),_=i.ref(),z=i.ref(),M=i.computed(()=>y.value?"--is-zoomed maz-cursor-zoom-out":"maz-cursor-zoom-in");function $(){u.value=!0,d.value=!1,g.value=!0}i.watch(()=>g.value,m=>{m&&W()});function k(){t("before-close"),ne()}function C(m){m.key==="Escape"&&(m.preventDefault(),k()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),N(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,h){return h<0?m.length-1:h>=m.length?0:h}async function se(m,h){m.classList.remove(l.openInstanceClass),h.classList.add(l.openInstanceClass);const r=h.getAttribute("data-src"),f=h.getAttribute("data-alt");I.value=f,r&&(x.value=r),u.value=!1,u.value||(d.value=!0)}function N(m){const h=document.querySelector(`.m-fullscreen-img-instance.${l.openInstanceClass}`);if(h){const r=B(),f=r.indexOf(h),p=m==="next"?f+1:f-1,b=r[te(r,p)];v.value=b,b&&se(h,b),t(m),y.value?F(z.value):O()}}function F(m){D.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 q(){const m=z.value;y.value?(y.value=!y.value,O()):(y.value=!y.value,F(m))}function V(m){var h;return(h=z.value)==null?void 0:h.animate(m,{duration:l.animation.duration,easing:l.animation.easing})}function U(m=l.offset??0){const h=v.value instanceof HTMLImageElement?v.value.naturalWidth:v.value.clientWidth,r=v.value instanceof HTMLImageElement?v.value.naturalHeight:v.value.clientHeight,f=window.innerWidth,p=window.innerHeight,b=Math.min((f-2*m)/h,(p-2*m)/r),ie=(f-h*b)/2,oe=(p-r*b)/2;return{originalWidth:h,originalHeight:r,scale:b,centerX:ie,centerY:oe}}function A({trigger:m}){const{originalWidth:h,originalHeight:r,scale:f,centerX:p,centerY:b}=U(),{top:ie,left:oe,width:We,height:je}=L.value,ve=[{top:`${ie}px`,left:`${oe}px`,width:`${We}px`,height:`${je}px`,opacity:0},{top:`${b}px`,left:`${p}px`,width:`${h*f}px`,height:`${r*f}px`,opacity:1}];return{frames:m==="open"?ve:ve.reverse()}}function O(){const{centerX:m,centerY:h,originalHeight:r,originalWidth:f,scale:p}=U(),b={top:`${h}px`,left:`${m}px`,width:`${f*p}px`,height:`${r*p}px`};if(!z.value)throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");Object.assign(z.value.style,b)}function W(){const{frames:m}=A({trigger:"open"}),h=V(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");h.onfinish=()=>{O()}}function ne(){const{frames:m}=A({trigger:"close"}),h=V(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");h.onfinish=()=>{var r,f;t("close"),(r=_.value)==null||r.remove(),(f=l.destroy)==null||f.call(l)}}function S(){y.value||O()}return i.onMounted(()=>{d.value=!0,document.addEventListener("keydown",C),window.addEventListener("resize",S),J(),E.value=B().length>1}),i.onBeforeUnmount(()=>{document.removeEventListener("keydown",C),window.removeEventListener("resize",S),ee()}),(m,h)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:_,role:"button",class:"m-fullscreen-img",tabindex:"0",onClick:i.withModifiers(k,["stop"]),onKeypress:i.withKeys(i.withModifiers(k,["prevent"]),["esc"])},[i.withDirectives(i.createVNode(i.unref(n),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[i.vShow,d.value]]),g.value&&E.value?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:h[0]||(h[0]=i.withModifiers(r=>N("next"),["stop"]))},[i.createVNode(i.unref(a),{class:"maz-rotate-180 maz-text-3xl"})])):i.createCommentVNode("v-if",!0),g.value&&E.value?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:h[1]||(h[1]=i.withModifiers(r=>N("previous"),["stop"]))},[i.createVNode(i.unref(a),{class:"maz-text-3xl"})])):i.createCommentVNode("v-if",!0),i.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:k},[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:z,src:x.value,alt:I.value??void 0,tabindex:"0",class:i.normalizeClass([M.value]),onLoad:$,onClick:h[2]||(h[2]=i.withModifiers(r=>m.zoom?q():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"]]),ge="m-fullscreen-is-open";class ft{constructor(){c(this,"options");c(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,zoom:!0,offset:80,animation:{duration:300,easing:"ease-in-out"}});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(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),a=(n==null?void 0:n.alt)??this.getImgAlt(e);return{...this.defaultOptions,...n,src:o,alt:a}}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),ce(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 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)}},pt=[{name:"click-outside",directive:ue},{name:"closable",directive:me},{name:"zoom-img",directive:de},{name:"lazy-img",directive:Oe},{name:"fullscreen-img",directive:fe}],gt={install(s){for(const{name:e,directive:t}of pt)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=1e3,callback:e,remainingTimeUpdate:t=200})=>{const n=i.ref(s),o=i.ref(s);let a;function l(y){typeof y=="number"&&(o.value=y),typeof y=="number"&&(n.value=y),u()}function u(){a||(a=setInterval(()=>{o.value-=t,o.value<=0&&(E(),e==null||e())},t))}function d(){a&&(clearInterval(a),a=void 0)}function g(){!a&&o.value>0&&u()}function E(){o.value=n.value,d()}return{remainingTime:o,start:l,pause:d,resume:g,stop:E}},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={key:4,class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},At=i.defineComponent({__name:"MazToast",props:{message:{default:void 0},position:{default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:[Number,Boolean],default:1e4},queue:{type:Boolean},noPauseOnHover:{type:Boolean},type:{default:"info"},link:{default:void 0},action:{default:void 0},persistent:{type:Boolean}},emits:["close","click","open"],setup(s,{expose:e,emit:t}){const n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-DeZaei8J.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),a=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-Kw3b5yYN.cjs"))),l=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-BhBdL4E2.cjs"))),u=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-Cw7wlH9H.cjs"))),d=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-i_xlqw0y.cjs"))),g=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-Bm2TJi5n.cjs"))),E=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-BbXTqAk3.cjs"))),y=i.ref(),v=s,L=i.computed(()=>{switch(v.type){case"danger":return l;case"info":return d;case"success":return g;case"warning":return u;default:return}}),D=t,x=i.computed(()=>v.position.includes("top")?"top":"bottom"),I=i.computed(()=>v.position.includes("left")?"left":v.position.includes("right")?"right":"center"),_=i.computed(()=>I.value!=="center"?I.value==="right"?"m-slide-right":"m-slide-left":x.value==="top"?"m-slide-top":"m-slide-bottom"),z=i.ref(!1),M=i.ref(!1),$=i.ref(),k=`m-toast-container --${x.value} --${I.value}`,C=`.${k.replaceAll(" ",".")}`,{start:J,stop:ee,pause:B,resume:te,remainingTime:se}=$e({callback:S,timeout:typeof v.timeout=="number"?v.timeout:0});function N(){const r=document.querySelector(C);if(!r&&!r){const f=document.body,p=document.createElement("div");p.className=k,f.append(p)}}function F(){const r=document.querySelector(C);return!v.queue&&v.maxToasts===!1?!1:typeof v.maxToasts=="number"&&r?v.maxToasts<=r.childElementCount:r&&r.childElementCount>0}function q(){if(F()){$.value=setTimeout(q,250);return}const r=document.querySelector(C);y.value&&r&&r.prepend(y.value),M.value=!0,typeof v.timeout=="number"&&v.timeout>0&&J()}const V=i.ref("100%");function U(){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(()=>se.value,r=>{if(typeof r=="number"&&typeof v.timeout=="number"){const f=100*r/v.timeout;V.value=`${f}%`,r<=0&&S()}});function A(r){D("click",r),v.persistent||S()}async function O(r,f){var p;z.value=!0,await r(),z.value=!1,(p=v.action)!=null&&p.closeToast&&A(f)}function W(r){v.noPauseOnHover||(r?B():te())}function ne(){ee(),$.value&&clearTimeout($.value)}function S(){ne(),M.value=!1}e({close:S});function m(){D("open")}function h(){var f;D("close"),(f=y.value)==null||f.remove();const r=document.querySelector(C);r&&!(r!=null&&r.hasChildNodes())&&r.remove()}return i.onMounted(()=>{N(),q()}),(r,f)=>(i.openBlock(),i.createBlock(i.Transition,{name:_.value,onAfterLeave:h,onAfterEnter:m,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("button",{ref_key:"Toaster",ref:y,class:i.normalizeClass(["m-toast",[`--${r.type}`,`--${x.value}`,`--${I.value}`,{"maz-pb-1":typeof r.timeout=="number"&&r.timeout>0,"--persistent":r.persistent}]]),role:"alert",onMouseover:f[2]||(f[2]=p=>W(!0)),onMouseleave:f[3]||(f[3]=p=>W(!1)),onClick:f[4]||(f[4]=i.withModifiers(p=>{var b;return r.link&&!((b=r.link)!=null&&b.closeToast)?void 0:A(p)},["stop"]))},[L.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(L.value),{key:0,class:"maz-text-2xl"})):i.createCommentVNode("v-if",!0),i.createElementVNode("div",It,[i.createElementVNode("p",kt,i.toDisplayString(r.message),1)]),r.action?(i.openBlock(),i.createBlock(i.unref(n),{key:1,"data-test":"action-btn",color:r.type,pastel:"",loading:z.value,size:"sm",onClick:f[0]||(f[0]=i.withModifiers(p=>O(r.action.func,p),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r.action.text),1)]),_:1},8,["color","loading"])):i.createCommentVNode("v-if",!0),r.link?(i.openBlock(),i.createBlock(i.unref(n),{key:2,"data-test":"link-btn",color:r.type,pastel:"",size:"xs",href:r.link.href,target:r.link.target??"_self"},{default:i.withCtx(()=>{var p;return[i.createElementVNode("div",Ct,[r.link.text?(i.openBlock(),i.createElementBlock("span",St,i.toDisplayString(r.link.text),1)):i.createCommentVNode("v-if",!0),((p=r.link)==null?void 0:p.target)=="_blank"?(i.openBlock(),i.createBlock(i.unref(a),{key:1,class:"maz-text-xl"})):(i.openBlock(),i.createBlock(i.unref(E),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):i.createCommentVNode("v-if",!0),r.persistent?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("button",{key:3,class:"--close",onClick:f[1]||(f[1]=i.withModifiers(p=>A(p),["stop"]))},[i.createVNode(i.unref(o),{class:"--icon maz-text-xl"})])),typeof r.timeout=="number"&&r.timeout>0?(i.openBlock(),i.createElementBlock("div",xt,[i.createElementVNode("div",{style:i.normalizeStyle({width:V.value}),class:i.normalizeClass(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",U()])},null,6)])):i.createCommentVNode("v-if",!0)],34),[[i.vShow,M.value]])]),_:1},8,["name"]))}}),Ot=he(At,[["__scopeId","data-v-09dcb8e0"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Ne{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const n={...Ht,...this.globalOptions,...t,message:e},{destroy:o,vNode:a}=ce(Ot,{props:n,app:this.app});return{destroy:o,close:()=>{var l,u;return(u=(l=a.component)==null?void 0:l.exposed)==null?void 0:u.close()}}}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)}},H="",Dt=s=>s.filter((e,t,n)=>t===n.indexOf(e)),Mt=s=>(e=H)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),$t=s=>s.length>0,Nt=s=>(e=H)=>Dt([...s,e]),Vt=s=>(e=H)=>s.filter(t=>t!==e);class Ve{constructor(){c(this,"_loaders",i.ref([]))}get loaders(){return i.computed(()=>this._loaders.value)}stop(e=H){this._loaders.value=Vt(this._loaders.value)(e)}start(e=H){return this._loaders.value=Nt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return i.computed(()=>$t(this._loaders.value))}isLoading(e=H){return i.computed(()=>Mt(this._loaders.value)(e)).value}}const _e=new Ve,_t={install:s=>{s.provide("wait",_e)}},re={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Be{constructor(e){c(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 a=n.target.getAttribute("data-maz-aos-children")==="true",l=n.target.getAttribute("data-maz-aos")?[n.target]:[];if(a){const u=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(d=>d.getAttribute("data-maz-aos-anchor")===`#${n.target.id}`?d:void 0);for(const d of u)d&&l.push(d)}for(const u of l){const d=u.getAttribute("data-maz-aos-once"),g=typeof d=="string"?d==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&n.intersectionRatio>this.options.observer.threshold){const E=u.getAttribute("data-maz-aos-duration"),y=u.getAttribute("data-maz-aos-delay");if(E||(u.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{u.style.transitionDuration="0"},1e3)),y||(u.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{u.style.transitionDelay="0"},1e3)),u.classList.add("maz-aos-animate"),g){const v=u.getAttribute("data-maz-aos-anchor");if(v){const L=document.querySelector(v);L&&t.unobserve(L)}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(w())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),w()&&(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},P=i.ref("system"),T=i.ref("system");function Z({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:n,setLocalStorageValue:o=!0,setSelectedTheme:a=!0}){w()&&(document.documentElement.classList.remove(e),document.documentElement.classList.add(s),P.value=n,a&&(T.value=n),o&&(localStorage[t]=n))}function Q({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:n,setLocalStorageValue:o=!0,setSelectedTheme:a=!0}){w()&&(document.documentElement.classList.remove(s),document.documentElement.classList.add(e),P.value=n,a&&(T.value=n),o&&(localStorage[t]=n))}function Fe(s){w()&&(document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),P.value=s.storageThemeValueSystem,T.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){w()&&(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"?Fe(e):s?Z(e):Q(e)}function Ft(s){return P.value===s.storageThemeValueDark?Q(s):Z(s)}function qt(s=ye){const e={...ye,...s},t=i.computed(()=>T.value===e.storageThemeValueDark),n=i.computed(()=>T.value===e.storageThemeValueLight),o=i.computed(()=>T.value===e.storageThemeValueSystem);function a(){le(e)}return i.onMounted(()=>{localStorage[e.storageThemeKey]&&(P.value=localStorage[e.storageThemeKey],T.value=localStorage[e.storageThemeKey]),e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a)}),i.onBeforeUnmount(()=>{e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",a)}),{autoSetTheme:l=>le({...e,...l}),toggleTheme:()=>Ft(e),setSystemTheme:()=>Fe({...e,setLocalStorageValue:!0}),setDarkTheme:()=>be({...e,shouldSetDarkMode:!0}),setLightTheme:()=>be({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:n,hasSystemTheme:o,theme:P,selectedTheme:T}}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=w()?window:void 0,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,includeScrollbar:o=!0}=s,a=i.ref(t),l=i.ref(n);function u(){e&&(o?(a.value=e.innerWidth,l.value=e.innerHeight):(a.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:a,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:a,mediumBreakPoint:l="md",largeBreakPoint:u="lg"}){const{width:d}=qe({initialWidth:s,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:o}),g=Xt(a),E=i.computed(()=>d.value>=g[u]),y=i.computed(()=>d.value>=g[l]&&d.value<g[u]),v=i.computed(()=>d.value>=0&&d.value<g[l]);return{width:d,numericBreakpoints:g,isSmallScreen:v,isLargeScreen:E,isMediumScreen:y,breakpoints:a}}function Qt(s){const e=new Te({...s,element:s.element,onValuesChanged(d){t.value=d.xDiff,n.value=d.yDiff,o.value=d.xStart,a.value=d.xEnd,l.value=d.yStart,u.value=d.yEnd}}),t=i.ref(),n=i.ref(),o=i.ref(),a=i.ref(),l=i.ref(),u=i.ref();return{xDiff:t,yDiff:n,xStart:o,xEnd:a,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,d;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:(d=s.content)==null?void 0:d.value}),o=i.computed(()=>Gt(n.value,e.value)),a=i.computed(()=>Ue([n.value]));return{content:n,wordCount:a,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=gt;exports.installFilters=Tt;exports.installToaster=Pt;exports.instance=_e;exports.isClient=w;exports.mount=ce;exports.number=Me;exports.plugin=Je;exports.plugin$1=lt;exports.plugin$2=ot;exports.plugin$3=st;exports.plugin$4=_t;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;