maz-ui 3.25.0 → 3.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazBadge.mjs +6 -6
- package/components/MazCard.d.ts +3 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCheckbox.mjs +10 -10
- package/components/MazDropdown.mjs +13 -13
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTabsBar.d.ts +3 -3
- package/components/MazTabsBar.mjs +104 -2
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBtn-V74h4t6N.mjs → MazBtn-E_7uvjFN.mjs} +2 -2
- package/components/chunks/{MazBtn-8jL2kd1s.mjs → MazBtn-fgZZAln0.mjs} +2 -2
- package/components/chunks/{MazBtn-JxVNeBVQ.mjs → MazBtn-wAxVJRSU.mjs} +2 -2
- package/components/chunks/{MazCard-kNaVJd_g.mjs → MazCard-AcRp4dYY.mjs} +17 -15
- package/components/chunks/{MazCheckbox-jW6eRxo-.mjs → MazCheckbox-Ur6iYj4S.mjs} +9 -9
- package/components/chunks/{MazCheckbox-PPOcnk4M.mjs → MazCheckbox-jGECM3j3.mjs} +9 -9
- package/components/chunks/{MazGallery-FIb-5maS.mjs → MazGallery-p-vm15yn.mjs} +1 -1
- package/components/chunks/{MazPhoneNumberInput--P0rJeR6.mjs → MazPhoneNumberInput-UpZj2xCt.mjs} +2 -2
- package/components/chunks/{MazSelect-mFss30EN.mjs → MazSelect-0T1qVxT5.mjs} +2 -2
- package/components/chunks/{MazSpinner-hj4vBKGe.mjs → MazSpinner-0anK9siv.mjs} +1 -1
- package/components/chunks/{MazSpinner-0_bDB0ly.mjs → MazSpinner-GDyFbUT-.mjs} +1 -1
- package/components/chunks/{MazSpinner-e-wVuIa6.mjs → MazSpinner-ymiFQY_u.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-k3LqGgNc.mjs → MazTransitionExpand-H8rF9skG.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/chunks/{MazBtn-Dh9CWXCs.mjs → MazBtn-JRiYAnNE.mjs} +2 -2
- package/modules/chunks/{MazBtn-7fc6CaEx.cjs → MazBtn-XlYmCiY7.cjs} +1 -1
- package/modules/chunks/{MazIcon-rmruhJWI.cjs → MazIcon-1rUbp3IR.cjs} +1 -1
- package/modules/chunks/{MazIcon-O2qhlLgd.mjs → MazIcon-jN7MCOTm.mjs} +1 -1
- package/modules/chunks/{MazSpinner-D_vmUW7o.cjs → MazSpinner-9nuTFEMU.cjs} +1 -1
- package/modules/chunks/{MazSpinner-NY1ndqV7.mjs → MazSpinner-U-92TzUo.mjs} +1 -1
- package/modules/chunks/{index-A4ZKAAN1.mjs → index-0wbCxej8.mjs} +3 -3
- package/modules/chunks/{index-4-P6-Fmb.cjs → index-fNfaYOpu.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCard.vue.d.ts +3 -1
- package/types/components/MazTabsBar.vue.d.ts +3 -3
- package/components/chunks/MazBtn-Qa9DSsQk.mjs +0 -152
- package/components/chunks/MazIcon-4RyBw86a.mjs +0 -96
- package/components/chunks/MazSpinner-o7NBR-qR.mjs +0 -38
- package/components/chunks/MazTabsBar-WKO9upP5.mjs +0 -131
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ue=Object.create;var
|
|
1
|
+
var Ue=Object.create;var ne=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var Ye=(s,e,t)=>e in s?ne(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Xe=(s,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Re(e))!Ke.call(s,i)&&i!==t&&ne(s,i,{get:()=>e[i],enumerable:!(o=je(e,i))||o.enumerable});return s};var Ze=(s,e,t)=>(t=s!=null?Ue(We(s)):{},Xe(e||!s||!s.__esModule?ne(t,"default",{value:s,enumerable:!0}):t,s));var l=(s,e,t)=>(Ye(s,typeof e!="symbol"?e+"":e,t),t);var ts=require("../assets/index.css");const n=require("vue");function Y(s,e){const t=n.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Qe(s,e){let t;return function(...o){clearTimeout(t),t=setTimeout(()=>{s.apply(this,o)},e)}}function ze(s){return!!s}function ae(s,e){let t=e==null?void 0:e.element;function o(){t&&n.render(null,t)}const i=n.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:o}:{}},e==null?void 0:e.children);return e!=null&&e.app?(i.appContext=e.app._context,t?n.render(i,t):typeof document<"u"&&(t=document.createElement("div"),n.render(i,t))):(t=t??document.body,n.render(i,t)),{vNode:i,destroy:o,el:t}}function I(){return typeof document<"u"}class Ee{constructor(e,t){l(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});l(this,"options");l(this,"timeoutHandler");l(this,"isIdle",!1);l(this,"isDestroy",!1);l(this,"startTime",0);l(this,"remainingTime",0);l(this,"lastClientX",-1);l(this,"lastClientY",-1);l(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);l(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:o}=e;if(t===void 0&&o===void 0||t===this.lastClientX&&o===this.lastClientY)return;this.lastClientX=t,this.lastClientY=o}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},I()&&this.start()}get element(){return this.options.element??document.body}start(){if(!I()){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(!I()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class Le{constructor(e,t){l(this,"eventHandlerFunction");l(this,"event","visibilitychange");l(this,"timeoutHandler");l(this,"options");l(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});l(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),I()&&this.start()}start(){if(!I()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const H=s=>new Promise(e=>{setTimeout(e,s)});class Ge{constructor({src:e,identifier:t,once:o=!0,async:i=!0,defer:d=!0}){l(this,"src");l(this,"script");l(this,"once");l(this,"async");l(this,"defer");l(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=o,this.async=i,this.defer=d}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const o of t)this.removeTag(o);return this.injectScript()}injectScript(){const e=window;return new Promise((t,o)=>{try{const i=document.createElement("script");i.src=this.src,i.async=this.async,i.defer=this.defer,i.dataset.identifier=this.identifier,i.addEventListener("error",d=>o(new Error(`[ScriptLoader](injectScript) ${d.message}`))),i.addEventListener("load",d=>(this.script=d,e[this.identifier]=d,t(d))),document.head.append(i)}catch(i){throw new Error(`[ScriptLoader](init) ${i}`)}})}}function Je(s){return[...s].map(e=>{const t=e.codePointAt(0);return t?t%32+127461:void 0}).filter(ze).map(e=>String.fromCodePoint(e)).join("")}const K="__vue_click_away__",Ie=()=>document.ontouchstart===null?"touchstart":"click",Te=async(s,e)=>{ke(s);const t=e.instance,o=e.value,i=typeof o=="function";if(!i)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await n.nextTick(),s[K]=h=>{if((!s||!s.contains(h.target))&&o&&i)return o.call(t,h)};const d=Ie();document.addEventListener(d,s[K],!1)},ke=s=>{const e=Ie();document.removeEventListener(e,s[K],!1),delete s[K]},et=(s,e)=>{e.value!==e.oldValue&&Te(s,e)},le={mounted:Te,updated:et,unmounted:ke},tt={install:s=>{s.directive("click-outside",le)}},Ce=(s,e,t,o)=>{s.stopPropagation();const{handler:i,exclude:d}=t.value;let h=!1;if(d&&d.length>0)for(const c of d)h||(h=o.context.$refs[c].contains(s.target));!e.contains(s.target)&&!h&&o.context[i]()},Ae=()=>document.ontouchstart===null?"touchstart":"click",st=(s,e,t)=>{const o=Ae();document.removeEventListener(o,i=>Ce(i,s,e,t))},ot=(s,e,t)=>{const o=Ae();document.addEventListener(o,i=>Ce(i,s,e,t))},ce={mounted:ot,unmounted:st},nt={install:s=>{s.directive("closable",ce)}},it=`
|
|
2
2
|
.maz-zoom-img {
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -121,4 +121,4 @@ var Ue=Object.create;var ie=Object.defineProperty;var je=Object.getOwnPropertyDe
|
|
|
121
121
|
|
|
122
122
|
.maz-zoom-img .maz-zoom-btn:hover {
|
|
123
123
|
background-color: hsl(0, 0%, 0%);
|
|
124
|
-
}`,ve={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};class rt{constructor(e){l(this,"options");l(this,"loader");l(this,"wrapper");l(this,"img");l(this,"keydownHandler");l(this,"onImgLoadedCallback");l(this,"buttonsAdded");l(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(nt);const o=document.createElement("div");o.classList.add("maz-zoom-img"),o.setAttribute("id","MazImgPreviewFullsize"),o.addEventListener("click",n=>{o.isEqualNode(n.target)&&this.closePreview()}),typeof t=="object"&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),o.append(this.wrapper),document.body.append(o),this.keyboardEventHandler(!0),setTimeout(()=>{o&&o.classList.add("maz-animate")},100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],o=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,o){const n=this.getButton("previous"),d=this.getButton("next");t.push(n,d)}this.wrapper.append(e),o&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ve.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),(e.key==="Escape"||e.key===" ")&&this.closePreview(),(e.key==="ArrowLeft"||e.key==="ArrowRight")&&this.nextPreviousImage(e.key==="ArrowRight")}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=ve[e],t.addEventListener("click",()=>{e==="close"?this.closePreview():this.allInstances&&this.nextPreviousImage(e==="next")}),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),o=document.querySelector(".maz-zoom-img-instance.maz-is-open");o&&o.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout(()=>{e&&e.remove(),t&&t.remove()},300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,o=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(o){const n=this.allInstances.indexOf(o),d=t?n+1:n-1,h=this.allInstances[this.getNewInstanceIndex(d)];h&&this.useNextInstance(o,h)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const o=t.getAttribute("data-zoom-src"),n=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,o&&this.img.setAttribute("src",o),n&&this.img.setAttribute("alt",n)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let j;const ue={created(s,e){j=new rt(e),j.create(s)},updated(s,e){j.update(e)},unmounted(s){j.remove(s)}},at={install(s){s.directive("zoom-img",ue)}},lt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",re={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class xe{constructor(e={}){l(this,"observers",[]);l(this,"defaultOptions",re);l(this,"options");l(this,"onImgLoadedCallback");l(this,"onImgErrorCallback");l(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-AVNubSve.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,o;this.addClass(e,this.options.loadingClass),(o=(t=this.options).onLoading)==null||o.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,o;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(o=(t=this.options).onLoaded)==null||o.call(t,e)}imageHasError(e,t){var o,n;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(n=(o=this.options).onError)==null||n.call(o,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const o=this.getImgElement(e).getAttribute("data-lazy-src");if(o)return o;t.value;const n=typeof t.value=="object"?t.value.src:t.value;return n||console.warn("[maz-ui][MazLazyImg] src url is not defined"),n}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const o of t){const n=o.getAttribute("data-lazy-srcset");n?o.srcset=n:console.warn('[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),o=e.querySelectorAll("source");if(o.length>0)for await(const n of o)n.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",o=>this.onImgErrorCallback(e,o),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const o=this.getImageUrl(e,t);if(!o)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${o}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,o))}}setImgSrc(e,t){const o=this.getImgElement(e);o.src=t}handleIntersectionObserver(e,t,o,n){var d,h;this.observers.push(n);for(const c of o)if(c.isIntersecting){if((h=(d=this.options).onIntersecting)==null||h.call(d,c.target),this.options.observerOnce&&n.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const o=(h,c)=>{this.handleIntersectionObserver(e,t,h,c)},n=this.options.observerOptions;new IntersectionObserver(o,n).observe(e)}async imageHandler(e,t,o){if(o==="update")for await(const n of this.observers)n.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,o){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,o)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);setTimeout(()=>this.setBaseClass(e),0),e.getAttribute("src")||this.setImgSrc(e,lt),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const o of this.observers)o.unobserve(e);this.observers=[]}}let R;const Se={created(s,e){const t=typeof e.value=="object"?e.value:{};R=new xe(t),R.add(s,e)},updated(s,e){R.update(s,e)},unmounted(s,e){R.remove(s,e)}},ct="lazy-img",ut={install(s,e={}){const t={...re,...e,observerOptions:{...re.observerOptions,...e.observerOptions}},o=new xe(t);s.directive(ct,{created:o.add.bind(o),updated:o.update.bind(o),unmounted:o.remove.bind(o)})}},mt=["onClick","onKeypress"],dt={class:"m-fullscreen-img-scroller"},ht=["src","alt"],ft=i.defineComponent({__name:"MazFullscreenImg",props:{destroy:{type:Function,default:void 0},src:{},alt:{default:void 0},openInstanceClass:{},zoom:{type:Boolean,default:!0},disabled:{type:Boolean},clickedElementBounds:{},clickedElement:{},animated:{type:Boolean,default:!0},scaleAnimation:{type:Boolean}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-D_vmUW7o.cjs"))),n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),d=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-8yB0sLIf.cjs")));let h;i.onBeforeMount(async()=>{h=await import("vue-scrollto")});const c=s,v=i.ref(!1),g=i.ref(!1),p=i.ref(!1),f=i.ref(!1),A=i.ref(!1),w=i.ref(!1),b=i.ref(!1),T=i.ref(c.clickedElement instanceof HTMLImageElement),q=i.ref(c.src),x=i.ref(c.alt),S=i.ref(),u=i.ref(),z=i.computed(()=>T.value&&c.animated&&!c.scaleAnimation),P=i.computed(()=>(T.value||!c.animated)&&!c.scaleAnimation),O=i.ref(!1),X=i.computed(()=>w.value?`--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${O.value?"maz-h-screen maz-w-auto":"maz-h-auto maz-w-screen"}`:`cursor-zoom-out ${O.value?"maz-w-screen maz-h-screen --is-landscape":"maz-h-screen maz-w-auto"}`);function Z(){g.value=!0,p.value=!1,f.value=!0}function $(){t("before-close"),v.value=!1}function _(a){a.key==="Escape"&&(a.preventDefault(),$()),(a.key==="ArrowLeft"||a.key==="ArrowRight")&&(a.preventDefault(),k(a.key==="ArrowRight"))}function Q(){document.documentElement.classList.add("--m-fullscreen-open")}function G(){document.documentElement.classList.remove("--m-fullscreen-open")}function N(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function U(a,r){return r<0?a.length-1:r>=a.length?0:r}async function J(a,r){a.classList.remove(c.openInstanceClass),r.classList.add(c.openInstanceClass);const m=r.getAttribute("data-src"),y=r.getAttribute("data-alt");x.value=y??void 0,m&&(q.value=m),g.value=!1,await H(300),g.value||(p.value=!0)}function k(a){const r=document.querySelector(`.m-fullscreen-img-instance.${c.openInstanceClass}`);if(r){const m=N(),y=m.indexOf(r),C=a?y+1:y-1,E=m[U(m,C)];E&&J(r,E),t(a?"next":"previous")}}async function ee(a){const r=a.target;r.style.width=`${r.clientWidth}px`,r.style.height=`${r.clientHeight}px`,await H(0),w.value=!w.value,r.style.removeProperty("width"),r.style.removeProperty("height"),await H(0);const m=r.clientWidth/a.clientY,C=window.innerWidth/m-window.innerHeight/2;h.scrollTo(r,200,{container:r.parentElement,easing:"linear",offset:w.value?C:0})}i.onMounted(async()=>{await i.nextTick(),document.addEventListener("keydown",_),v.value=!0,p.value=!0,Q(),A.value=N().length>1,u.value&&(O.value=c.clickedElementBounds.height<c.clickedElementBounds.width)});function F(){u.value&&(b.value=!0,u.value.style.removeProperty("margin-left"),u.value.style.removeProperty("margin-right"),u.value.style.opacity="0.5",u.value.style.width=`${c.clickedElementBounds.width}px`,u.value.style.height=`${c.clickedElementBounds.height}px`,u.value.style.top=`${c.clickedElementBounds.top}px`,u.value.style.left=`${c.clickedElementBounds.left}px`)}async function te(){if(await H(0),u.value){u.value.style.opacity="1",u.value.style.removeProperty("height"),u.value.style.removeProperty("width"),u.value.style.removeProperty("transform");const a=window.innerWidth,r=window.innerHeight,m=c.clickedElementBounds.height,y=c.clickedElementBounds.width;if(O.value){u.value.style.left="0px";const C=m*a/y,E=(r-C)/2;u.value.style.top=`${E<=0?0:E}px`}else{u.value.style.top="0px";const C=y*r/m,E=(a-C)/2;u.value.style.left=`${E<=0?0:E}px`}}}function V(){u.value&&(u.value.style.removeProperty("top"),u.value.style.removeProperty("left"),u.value.style.marginLeft="auto",u.value.style.marginRight="auto",u.value.style.removeProperty("opacity")),b.value=!1}function se(){if(u.value){const{left:a,top:r}=u.value.getBoundingClientRect();u.value.style.left=`${a}px`,u.value.style.top=`${r}px`,u.value.style.width=`${u.value.width}px`,u.value.style.height=`${u.value.height}px`,b.value=!0}}function oe(){var a,r;t("close"),(a=S.value)==null||a.remove(),(r=c.destroy)==null||r.call(c)}return i.onBeforeUnmount(()=>{document.removeEventListener("keydown",_),G()}),(a,r)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:S,role:"button",class:i.normalizeClass(["m-fullscreen-img",{"--animation-active":b.value}]),tabindex:"0",onClick:i.withModifiers($,["self"]),onKeypress:i.withKeys(i.withModifiers($,["prevent"]),["esc"])},[i.withDirectives(i.createVNode(i.unref(o),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[i.vShow,p.value]]),f.value&&A.value?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:r[0]||(r[0]=i.withModifiers(m=>k(!0),["stop"]))},[i.createVNode(i.unref(d),{class:"maz-rotate-90 maz-text-2xl"})])):i.createCommentVNode("v-if",!0),v.value&&f.value&&A.value?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:r[1]||(r[1]=i.withModifiers(m=>k(!1),["stop"]))},[i.createVNode(i.unref(d),{class:"maz-text-2xl"})])):i.createCommentVNode("v-if",!0),i.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:$},[i.createVNode(i.unref(n),{class:"maz-text-2xl"})]),i.createElementVNode("div",dt,[i.createVNode(i.Transition,{name:P.value?void 0:"maz-scale-fade",onBeforeEnter:r[3]||(r[3]=m=>z.value&&F()),onEnter:r[4]||(r[4]=m=>z.value&&te()),onAfterEnter:r[5]||(r[5]=m=>z.value&&V()),onBeforeLeave:r[6]||(r[6]=m=>z.value&&se()),onLeave:r[7]||(r[7]=m=>z.value&&F()),onAfterLeave:oe,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("img",{id:"ZvImgElement",ref_key:"ImgElement",ref:u,src:q.value,alt:x.value,tabindex:"0",class:i.normalizeClass([{zoomable:a.zoom},X.value]),onLoad:Z,onClick:r[2]||(r[2]=m=>a.zoom?ee(m):void 0)},null,42,ht),[[i.vShow,v.value]])]),_:1},8,["name"])])],42,mt))}}),me=(s,e)=>{const t=s.__vccOpts||s;for(const[o,n]of e)t[o]=n;return t},vt=me(ft,[["__scopeId","data-v-d0c959c7"]]),ge="m-fullscreen-is-open";class gt{constructor(){l(this,"options");l(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,animated:!0,zoom:!0,scaleAnimation:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener")}buildOptions(e,t){const o=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},n=(o==null?void 0:o.src)??this.getImgSrc(e),d=(o==null?void 0:o.alt)??this.getImgAlt(e);return{...this.defaultOptions,...o,src:n,alt:d}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var o;const t=((o=this.options)==null?void 0:o.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 300ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const o=this.getImgAlt(e);o&&e.setAttribute("data-alt",o),this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener)}update(e,t){this.options=this.buildOptions(e,t)}remove(e){e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("m-fullscreen-img-instance"),e.style.cursor=""}renderPreview(e){return e.classList.add(ge),ae(vt,{props:{...this.options,openInstanceClass:ge,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.05)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let W;const de={mounted(s,e){return W=new gt,W.create(s,e)},updated(s,e){return W.update(s,e)},unmounted(s){return W.remove(s)}},pt={install(s){s.directive("fullscreen-img",de)}},yt=[{name:"click-outside",directive:le},{name:"closable",directive:ce},{name:"zoom-img",directive:ue},{name:"lazy-img",directive:Se},{name:"fullscreen-img",directive:de}],wt={install(s){for(const{name:e,directive:t}of yt)s.directive(e,t)}},Pe=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",bt={style:"currency",minimumFractionDigits:2,round:!1},zt=(s,e,t)=>{let o=Number(s);return t.round&&(o=Math.floor(o),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(o)},Et=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Oe=(s,e,t)=>{const o={...bt,...t};Et(s,e,o);try{return zt(s,e,o)}catch(n){throw new Error(`[maz-ui](FilterCurrency) ${n}`)}},Lt={month:"short",day:"numeric",year:"numeric"},$e=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const o=t??Lt;try{const n=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,o).format(n)}catch(n){throw new Error(`[maz-ui](FilterDate) ${n}`)}},It={minimumFractionDigits:2},He=(s,e,t)=>{const o={...It,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,o).format(Number(s))}catch(n){throw new Error(`[maz-ui](FilterNumber) ${n}`)}},Tt={capitalize:Pe,currency:Oe,date:$e,number:He},kt={install(s){s.provide("filters",Tt)}},Be=({timeout:s,callback:e,remainingTimeUpdate:t=200})=>{const o=i.ref(s);let n;function d(){o.value=s,h()}function h(){n||(n=setInterval(()=>{o.value-=t,o.value<=0&&(g(),e==null||e())},t))}function c(){n&&(clearInterval(n),n=void 0)}function v(){!n&&o.value>0&&h()}function g(){c()}return i.onBeforeUnmount(()=>{g()}),{remainingTime:o,start:d,pause:c,resume:v,stop:g}},Ct={class:"m-toast__message-wrapper"},At={class:"m-toast__message"},xt={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},Pt={class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},Ot=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-7fc6CaEx.cjs"))),o=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),n=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-jZfbSH7Z.cjs"))),d=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-C9PjyHbK.cjs"))),h=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-s2sf_lGK.cjs"))),c=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-8YPnkfv6.cjs"))),v=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-il8LazeB.cjs"))),g=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-3xy7UuBg.cjs"))),p=i.ref(),f=s,A=i.computed(()=>{switch(f.type){case"danger":return d;case"info":return c;case"success":return v;case"warning":return h;default:return}}),w=e,b=i.computed(()=>f.position.includes("top")?"top":"bottom"),T=i.computed(()=>f.position.includes("left")?"left":f.position.includes("right")?"right":"center"),q=i.computed(()=>T.value!=="center"?T.value==="right"?"m-slide-right":"m-slide-left":b.value==="top"?"m-slide-top":"m-slide-bottom"),x=i.ref(!1),S=i.ref(!1),u=i.ref(),z=`m-toast-container --${b.value} --${T.value}`,P=`.${z.replaceAll(" ",".")}`,{start:O,stop:X,pause:Z,resume:$,remainingTime:_}=Be({callback:V,timeout:f.timeout});function Q(){const a=document.querySelector(P);if(!a&&!a){const r=document.body,m=document.createElement("div");m.className=z,r.append(m)}}function G(){const a=document.querySelector(P);return!f.queue&&f.maxToasts===!1?!1:typeof f.maxToasts=="number"&&a?f.maxToasts<=a.childElementCount:a&&a.childElementCount>0}function N(){if(G()){u.value=setTimeout(N,250);return}const a=document.querySelector(P);p.value&&a&&a.prepend(p.value),S.value=!0,O()}const U=i.ref("100%");function J(){switch(f.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}i.watch(()=>_.value,a=>{if(typeof a=="number"){const r=100*a/f.timeout;U.value=`${r}%`,a<=0&&V()}});function k(a){w("click",a),f.persistent||V()}async function ee(a,r){var m;x.value=!0,await a(),x.value=!1,(m=f.action)!=null&&m.closeToast&&k(r)}function F(a){f.noPauseOnHover||(a?Z():$())}function te(){X(),u.value&&clearTimeout(u.value)}function V(){te(),S.value=!1}function se(){w("open")}function oe(){var r;w("close"),(r=p.value)==null||r.remove();const a=document.querySelector(P);a&&!(a!=null&&a.hasChildNodes())&&a.remove()}return i.onMounted(()=>{Q(),N()}),(a,r)=>(i.openBlock(),i.createBlock(i.Transition,{name:q.value,onAfterLeave:oe,onAfterEnter:se,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("button",{ref_key:"Toaster",ref:p,class:i.normalizeClass(["m-toast",[`--${s.type}`,`--${b.value}`,`--${T.value}`,{"maz-pb-1":s.timeout}]]),role:"alert",onMouseover:r[2]||(r[2]=m=>F(!0)),onMouseleave:r[3]||(r[3]=m=>F(!1)),onClick:r[4]||(r[4]=i.withModifiers(m=>{var y;return s.link&&!((y=s.link)!=null&&y.closeToast)?void 0:k(m)},["stop"]))},[A.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A.value),{key:0,class:"maz-text-2xl"})):i.createCommentVNode("v-if",!0),i.createElementVNode("div",Ct,[i.createElementVNode("p",At,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:x.value,size:"sm",onClick:r[0]||(r[0]=i.withModifiers(m=>ee(s.action.func,m),["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 m;return[i.createElementVNode("div",xt,[s.link.text?(i.openBlock(),i.createElementBlock("span",St,i.toDisplayString(s.link.text),1)):i.createCommentVNode("v-if",!0),((m=s.link)==null?void 0:m.target)=="_blank"?(i.openBlock(),i.createBlock(i.unref(n),{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:r[1]||(r[1]=i.withModifiers(m=>k(m),["stop"]))},[i.createVNode(i.unref(o),{class:"--icon maz-text-xl"})])),i.createElementVNode("div",Pt,[i.createElementVNode("div",{style:i.normalizeStyle({width:U.value}),class:i.normalizeClass(["maz-h-full maz-transition-all maz-duration-200 maz-ease-linear",J()])},null,6)])],34),[[i.vShow,S.value]])]),_:1},8,["name"]))}}),$t=me(Ot,[["__scopeId","data-v-ee210f61"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Me{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const o={message:e,...t},n={...Ht,...o,...this.globalOptions,...t};ae($t,{props:n,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Bt={install(s,e){exports.toastInstance=new Me(s,e),s.provide("toast",exports.toastInstance)}},B="",Mt=s=>s.filter((e,t,o)=>t===o.indexOf(e)),Dt=s=>(e=B)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Nt=s=>s.length>0,Ft=s=>(e=B)=>Mt([...s,e]),Vt=s=>(e=B)=>s.filter(t=>t!==e);class De{constructor(){l(this,"_loaders",i.ref([]))}get loaders(){return i.computed(()=>this._loaders.value)}stop(e=B){this._loaders.value=Vt(this._loaders.value)(e)}start(e=B){return this._loaders.value=Ft(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return i.computed(()=>Nt(this._loaders.value))}isLoading(e=B){return i.computed(()=>Dt(this._loaders.value)(e)).value}}const Ne=new De,qt={install:s=>{s.provide("wait",Ne)}},ne={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Fe{constructor(e){l(this,"options");this.options={delay:(e==null?void 0:e.delay)??ne.delay,observer:{...ne.observer,...e==null?void 0:e.observer},animation:{...ne.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const o of e){const d=o.target.getAttribute("data-maz-aos-children")==="true",h=o.target.getAttribute("data-maz-aos")?[o.target]:[];if(d){const c=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(v=>v.getAttribute("data-maz-aos-anchor")===`#${o.target.id}`?v:void 0);for(const v of c)v&&h.push(v)}for(const c of h){const v=c.getAttribute("data-maz-aos-once"),g=typeof v=="string"?v==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&o.intersectionRatio>this.options.observer.threshold){const p=c.getAttribute("data-maz-aos-duration"),f=c.getAttribute("data-maz-aos-delay");p||(c.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{c.style.transitionDuration="0"},1e3)),f||(c.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{c.style.transitionDelay="0"},1e3)),c.classList.add("maz-aos-animate"),g&&t.unobserve(c)}else c.classList.remove("maz-aos-animate")}}}async handleObserver(){await H(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const o=t.getAttribute("data-maz-aos-anchor");if(o){const n=document.querySelector(o);n?(n.setAttribute("data-maz-aos-children","true"),e.observe(n)):console.warn(`[maz-ui](aos) no element found with selector "${o}"`)}else e.observe(t)}}runAnimations(){if(I())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const _t={install:(s,e)=>{exports.instance$1=new Fe(e),s.provide("aos",exports.instance$1),I()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},pe={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system"},D=i.ref("system"),L=i.ref("system");function he({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:o,setLocalStorageValue:n=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(e),document.documentElement.classList.add(s),D.value=o,d&&(L.value=o),n&&(localStorage[t]=o)}function fe({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:o,setLocalStorageValue:n=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(s),document.documentElement.classList.add(e),D.value=o,d&&(L.value=o),n&&(localStorage[t]=o)}function Ve(s){document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),D.value=s.storageThemeValueSystem,L.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),qe({...s,setSelectedTheme:!1})}function ye(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function qe(s){localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&ye()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&ye()?he({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):fe({...s,setLocalStorageValue:!1,setSelectedTheme:!1})}function we({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Ve(e):s?he(e):fe(e)}function Ut(s){return D.value===s.storageThemeValueDark?fe(s):he(s)}function jt(s=pe){const e={...pe,...s},t=i.computed(()=>L.value===e.storageThemeValueDark),o=i.computed(()=>L.value===e.storageThemeValueLight),n=i.computed(()=>L.value===e.storageThemeValueSystem);return i.onMounted(()=>{localStorage[e.storageThemeKey]&&(D.value=localStorage[e.storageThemeKey],L.value=localStorage[e.storageThemeKey])}),{autoSetTheme:()=>qe(e),toggleTheme:()=>Ut(e),setSystemTheme:()=>Ve({...e,setLocalStorageValue:!0}),setDarkTheme:()=>we({...e,shouldSetDarkMode:!0}),setLightTheme:()=>we({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:o,hasSystemTheme:n,theme:D,selectedTheme:L}}const Rt=({componentName:s,instance:e,providedId:t})=>i.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Wt=()=>Y("aos"),Kt=()=>Y("wait"),Yt=()=>Y("toast"),Xt=({callback:s,options:e})=>new Ee(s,e),Zt=({callback:s,options:e})=>new Le(s,e),Qt=i.ref(),M=i.ref([]),Gt=(s,e)=>new Promise((t,o)=>{M.value=[...M.value,{id:s,isActive:!0,resolve:async()=>{await(e==null?void 0:e()),t(!0)},reject:o}]}),_e=s=>(M.value=M.value.filter(({id:e})=>e!==s),M.value),be=(s,e,t=!1)=>{var o;e&&((o=e[s])==null||o.call(e,t),e.isActive=!1,setTimeout(()=>{_e(e.id)},500))},Jt=()=>({confirmDialogData:Qt,dialogState:M,showDialogAndWaitChoice:Gt,removeDialogFromState:_e,rejectDialog:(s,e=!1)=>be("reject",s,e),resolveDialog:(s,e=!1)=>be("resolve",s,e)});exports.AosHandler=Fe;exports.IdleTimeout=Ee;exports.ScriptLoader=Ge;exports.ToasterHandler=Me;exports.UserVisibility=Le;exports.WaitHandler=De;exports._export_sfc=me;exports.capitalize=Pe;exports.countryCodeToUnicodeFlag=Je;exports.currency=Oe;exports.date=$e;exports.debounce=Qe;exports.directive=le;exports.directive$1=ce;exports.injectStrict=Y;exports.installDirectives=wt;exports.installFilters=kt;exports.installToaster=Bt;exports.instance=Ne;exports.isClient=I;exports.mount=ae;exports.number=He;exports.plugin=tt;exports.plugin$1=ut;exports.plugin$2=at;exports.plugin$3=it;exports.plugin$4=qt;exports.plugin$5=_t;exports.sleep=H;exports.truthyFilter=ze;exports.useAos=Wt;exports.useIdleTimeout=Xt;exports.useInstanceUniqId=Rt;exports.useMazDialogPromise=Jt;exports.useThemeHandler=jt;exports.useTimer=Be;exports.useToast=Yt;exports.useUserVisibility=Zt;exports.useWait=Kt;exports.vFullscreenImg=de;exports.vFullscreenImgInstall=pt;exports.vLazyImg=Se;exports.vZoomImg=ue;
|
|
124
|
+
}`,ve={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};class rt{constructor(e){l(this,"options");l(this,"loader");l(this,"wrapper");l(this,"img");l(this,"keydownHandler");l(this,"onImgLoadedCallback");l(this,"buttonsAdded");l(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(it);const o=document.createElement("div");o.classList.add("maz-zoom-img"),o.setAttribute("id","MazImgPreviewFullsize"),o.addEventListener("click",i=>{o.isEqualNode(i.target)&&this.closePreview()}),typeof t=="object"&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),o.append(this.wrapper),document.body.append(o),this.keyboardEventHandler(!0),setTimeout(()=>{o&&o.classList.add("maz-animate")},100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],o=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,o){const i=this.getButton("previous"),d=this.getButton("next");t.push(i,d)}this.wrapper.append(e),o&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ve.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),(e.key==="Escape"||e.key===" ")&&this.closePreview(),(e.key==="ArrowLeft"||e.key==="ArrowRight")&&this.nextPreviousImage(e.key==="ArrowRight")}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=ve[e],t.addEventListener("click",()=>{e==="close"?this.closePreview():this.allInstances&&this.nextPreviousImage(e==="next")}),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),o=document.querySelector(".maz-zoom-img-instance.maz-is-open");o&&o.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout(()=>{e&&e.remove(),t&&t.remove()},300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,o=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(o){const i=this.allInstances.indexOf(o),d=t?i+1:i-1,h=this.allInstances[this.getNewInstanceIndex(d)];h&&this.useNextInstance(o,h)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const o=t.getAttribute("data-zoom-src"),i=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,o&&this.img.setAttribute("src",o),i&&this.img.setAttribute("alt",i)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let j;const ue={created(s,e){j=new rt(e),j.create(s)},updated(s,e){j.update(e)},unmounted(s){j.remove(s)}},at={install(s){s.directive("zoom-img",ue)}},lt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",re={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class xe{constructor(e={}){l(this,"observers",[]);l(this,"defaultOptions",re);l(this,"options");l(this,"onImgLoadedCallback");l(this,"onImgErrorCallback");l(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-AVNubSve.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,o;this.addClass(e,this.options.loadingClass),(o=(t=this.options).onLoading)==null||o.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,o;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(o=(t=this.options).onLoaded)==null||o.call(t,e)}imageHasError(e,t){var o,i;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(i=(o=this.options).onError)==null||i.call(o,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const o=this.getImgElement(e).getAttribute("data-lazy-src");if(o)return o;t.value;const i=typeof t.value=="object"?t.value.src:t.value;return i||console.warn("[maz-ui][MazLazyImg] src url is not defined"),i}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const o of t){const i=o.getAttribute("data-lazy-srcset");i?o.srcset=i:console.warn('[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),o=e.querySelectorAll("source");if(o.length>0)for await(const i of o)i.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",o=>this.onImgErrorCallback(e,o),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const o=this.getImageUrl(e,t);if(!o)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${o}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,o))}}setImgSrc(e,t){const o=this.getImgElement(e);o.src=t}handleIntersectionObserver(e,t,o,i){var d,h;this.observers.push(i);for(const c of o)if(c.isIntersecting){if((h=(d=this.options).onIntersecting)==null||h.call(d,c.target),this.options.observerOnce&&i.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const o=(h,c)=>{this.handleIntersectionObserver(e,t,h,c)},i=this.options.observerOptions;new IntersectionObserver(o,i).observe(e)}async imageHandler(e,t,o){if(o==="update")for await(const i of this.observers)i.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,o){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,o)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);setTimeout(()=>this.setBaseClass(e),0),e.getAttribute("src")||this.setImgSrc(e,lt),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const o of this.observers)o.unobserve(e);this.observers=[]}}let R;const Se={created(s,e){const t=typeof e.value=="object"?e.value:{};R=new xe(t),R.add(s,e)},updated(s,e){R.update(s,e)},unmounted(s,e){R.remove(s,e)}},ct="lazy-img",ut={install(s,e={}){const t={...re,...e,observerOptions:{...re.observerOptions,...e.observerOptions}},o=new xe(t);s.directive(ct,{created:o.add.bind(o),updated:o.update.bind(o),unmounted:o.remove.bind(o)})}},mt=["onClick","onKeypress"],dt={class:"m-fullscreen-img-scroller"},ht=["src","alt"],ft=n.defineComponent({__name:"MazFullscreenImg",props:{destroy:{type:Function,default:void 0},src:{},alt:{default:void 0},openInstanceClass:{},zoom:{type:Boolean,default:!0},disabled:{type:Boolean},clickedElementBounds:{},clickedElement:{},animated:{type:Boolean,default:!0},scaleAnimation:{type:Boolean}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-9nuTFEMU.cjs"))),i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),d=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-8yB0sLIf.cjs")));let h;n.onBeforeMount(async()=>{h=await import("vue-scrollto")});const c=s,v=n.ref(!1),g=n.ref(!1),p=n.ref(!1),f=n.ref(!1),A=n.ref(!1),w=n.ref(!1),b=n.ref(!1),T=n.ref(c.clickedElement instanceof HTMLImageElement),q=n.ref(c.src),x=n.ref(c.alt),S=n.ref(),u=n.ref(),z=n.computed(()=>T.value&&c.animated&&!c.scaleAnimation),P=n.computed(()=>(T.value||!c.animated)&&!c.scaleAnimation),O=n.ref(!1),X=n.computed(()=>w.value?`--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${O.value?"maz-h-screen maz-w-auto":"maz-h-auto maz-w-screen"}`:`cursor-zoom-out ${O.value?"maz-w-screen maz-h-screen --is-landscape":"maz-h-screen maz-w-auto"}`);function Z(){g.value=!0,p.value=!1,f.value=!0}function $(){t("before-close"),v.value=!1}function _(a){a.key==="Escape"&&(a.preventDefault(),$()),(a.key==="ArrowLeft"||a.key==="ArrowRight")&&(a.preventDefault(),k(a.key==="ArrowRight"))}function Q(){document.documentElement.classList.add("--m-fullscreen-open")}function G(){document.documentElement.classList.remove("--m-fullscreen-open")}function N(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function U(a,r){return r<0?a.length-1:r>=a.length?0:r}async function J(a,r){a.classList.remove(c.openInstanceClass),r.classList.add(c.openInstanceClass);const m=r.getAttribute("data-src"),y=r.getAttribute("data-alt");x.value=y??void 0,m&&(q.value=m),g.value=!1,await H(300),g.value||(p.value=!0)}function k(a){const r=document.querySelector(`.m-fullscreen-img-instance.${c.openInstanceClass}`);if(r){const m=N(),y=m.indexOf(r),C=a?y+1:y-1,E=m[U(m,C)];E&&J(r,E),t(a?"next":"previous")}}async function ee(a){const r=a.target;r.style.width=`${r.clientWidth}px`,r.style.height=`${r.clientHeight}px`,await H(0),w.value=!w.value,r.style.removeProperty("width"),r.style.removeProperty("height"),await H(0);const m=r.clientWidth/a.clientY,C=window.innerWidth/m-window.innerHeight/2;h.scrollTo(r,200,{container:r.parentElement,easing:"linear",offset:w.value?C:0})}n.onMounted(async()=>{await n.nextTick(),document.addEventListener("keydown",_),v.value=!0,p.value=!0,Q(),A.value=N().length>1,u.value&&(O.value=c.clickedElementBounds.height<c.clickedElementBounds.width)});function F(){u.value&&(b.value=!0,u.value.style.removeProperty("margin-left"),u.value.style.removeProperty("margin-right"),u.value.style.opacity="0.5",u.value.style.width=`${c.clickedElementBounds.width}px`,u.value.style.height=`${c.clickedElementBounds.height}px`,u.value.style.top=`${c.clickedElementBounds.top}px`,u.value.style.left=`${c.clickedElementBounds.left}px`)}async function te(){if(await H(0),u.value){u.value.style.opacity="1",u.value.style.removeProperty("height"),u.value.style.removeProperty("width"),u.value.style.removeProperty("transform");const a=window.innerWidth,r=window.innerHeight,m=c.clickedElementBounds.height,y=c.clickedElementBounds.width;if(O.value){u.value.style.left="0px";const C=m*a/y,E=(r-C)/2;u.value.style.top=`${E<=0?0:E}px`}else{u.value.style.top="0px";const C=y*r/m,E=(a-C)/2;u.value.style.left=`${E<=0?0:E}px`}}}function V(){u.value&&(u.value.style.removeProperty("top"),u.value.style.removeProperty("left"),u.value.style.marginLeft="auto",u.value.style.marginRight="auto",u.value.style.removeProperty("opacity")),b.value=!1}function se(){if(u.value){const{left:a,top:r}=u.value.getBoundingClientRect();u.value.style.left=`${a}px`,u.value.style.top=`${r}px`,u.value.style.width=`${u.value.width}px`,u.value.style.height=`${u.value.height}px`,b.value=!0}}function oe(){var a,r;t("close"),(a=S.value)==null||a.remove(),(r=c.destroy)==null||r.call(c)}return n.onBeforeUnmount(()=>{document.removeEventListener("keydown",_),G()}),(a,r)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:S,role:"button",class:n.normalizeClass(["m-fullscreen-img",{"--animation-active":b.value}]),tabindex:"0",onClick:n.withModifiers($,["self"]),onKeypress:n.withKeys(n.withModifiers($,["prevent"]),["esc"])},[n.withDirectives(n.createVNode(n.unref(o),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[n.vShow,p.value]]),f.value&&A.value?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:r[0]||(r[0]=n.withModifiers(m=>k(!0),["stop"]))},[n.createVNode(n.unref(d),{class:"maz-rotate-90 maz-text-2xl"})])):n.createCommentVNode("v-if",!0),v.value&&f.value&&A.value?(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:r[1]||(r[1]=n.withModifiers(m=>k(!1),["stop"]))},[n.createVNode(n.unref(d),{class:"maz-text-2xl"})])):n.createCommentVNode("v-if",!0),n.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:$},[n.createVNode(n.unref(i),{class:"maz-text-2xl"})]),n.createElementVNode("div",dt,[n.createVNode(n.Transition,{name:P.value?void 0:"maz-scale-fade",onBeforeEnter:r[3]||(r[3]=m=>z.value&&F()),onEnter:r[4]||(r[4]=m=>z.value&&te()),onAfterEnter:r[5]||(r[5]=m=>z.value&&V()),onBeforeLeave:r[6]||(r[6]=m=>z.value&&se()),onLeave:r[7]||(r[7]=m=>z.value&&F()),onAfterLeave:oe,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("img",{id:"ZvImgElement",ref_key:"ImgElement",ref:u,src:q.value,alt:x.value,tabindex:"0",class:n.normalizeClass([{zoomable:a.zoom},X.value]),onLoad:Z,onClick:r[2]||(r[2]=m=>a.zoom?ee(m):void 0)},null,42,ht),[[n.vShow,v.value]])]),_:1},8,["name"])])],42,mt))}}),me=(s,e)=>{const t=s.__vccOpts||s;for(const[o,i]of e)t[o]=i;return t},vt=me(ft,[["__scopeId","data-v-d0c959c7"]]),ge="m-fullscreen-is-open";class gt{constructor(){l(this,"options");l(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,animated:!0,zoom:!0,scaleAnimation:!1});l(this,"mouseEnterListener");l(this,"mouseLeaveListener");l(this,"renderPreviewListener")}buildOptions(e,t){const o=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},i=(o==null?void 0:o.src)??this.getImgSrc(e),d=(o==null?void 0:o.alt)??this.getImgAlt(e);return{...this.defaultOptions,...o,src:i,alt:d}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var o;const t=((o=this.options)==null?void 0:o.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 300ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const o=this.getImgAlt(e);o&&e.setAttribute("data-alt",o),this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener)}update(e,t){this.options=this.buildOptions(e,t)}remove(e){e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("m-fullscreen-img-instance"),e.style.cursor=""}renderPreview(e){return e.classList.add(ge),ae(vt,{props:{...this.options,openInstanceClass:ge,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.05)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let W;const de={mounted(s,e){return W=new gt,W.create(s,e)},updated(s,e){return W.update(s,e)},unmounted(s){return W.remove(s)}},pt={install(s){s.directive("fullscreen-img",de)}},yt=[{name:"click-outside",directive:le},{name:"closable",directive:ce},{name:"zoom-img",directive:ue},{name:"lazy-img",directive:Se},{name:"fullscreen-img",directive:de}],wt={install(s){for(const{name:e,directive:t}of yt)s.directive(e,t)}},Pe=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",bt={style:"currency",minimumFractionDigits:2,round:!1},zt=(s,e,t)=>{let o=Number(s);return t.round&&(o=Math.floor(o),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(o)},Et=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Oe=(s,e,t)=>{const o={...bt,...t};Et(s,e,o);try{return zt(s,e,o)}catch(i){throw new Error(`[maz-ui](FilterCurrency) ${i}`)}},Lt={month:"short",day:"numeric",year:"numeric"},$e=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const o=t??Lt;try{const i=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,o).format(i)}catch(i){throw new Error(`[maz-ui](FilterDate) ${i}`)}},It={minimumFractionDigits:2},He=(s,e,t)=>{const o={...It,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,o).format(Number(s))}catch(i){throw new Error(`[maz-ui](FilterNumber) ${i}`)}},Tt={capitalize:Pe,currency:Oe,date:$e,number:He},kt={install(s){s.provide("filters",Tt)}},Be=({timeout:s,callback:e,remainingTimeUpdate:t=200})=>{const o=n.ref(s);let i;function d(){o.value=s,h()}function h(){i||(i=setInterval(()=>{o.value-=t,o.value<=0&&(g(),e==null||e())},t))}function c(){i&&(clearInterval(i),i=void 0)}function v(){!i&&o.value>0&&h()}function g(){o.value=s,c()}return n.onBeforeUnmount(()=>{g()}),{remainingTime:o,start:d,pause:c,resume:v,stop:g}},Ct={class:"m-toast__message-wrapper"},At={class:"m-toast__message"},xt={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},Pt={class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},Ot=n.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info"},message:{type:String,required:!0},link:{type:Object,default:void 0},action:{type:Object,default:void 0},persistent:{type:Boolean,default:!1}},emits:["close","click","open"],setup(s,{emit:e}){const t=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-XlYmCiY7.cjs"))),o=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-SZLMLvjQ.cjs"))),i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-jZfbSH7Z.cjs"))),d=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-C9PjyHbK.cjs"))),h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-s2sf_lGK.cjs"))),c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-8YPnkfv6.cjs"))),v=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-il8LazeB.cjs"))),g=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-3xy7UuBg.cjs"))),p=n.ref(),f=s,A=n.computed(()=>{switch(f.type){case"danger":return d;case"info":return c;case"success":return v;case"warning":return h;default:return}}),w=e,b=n.computed(()=>f.position.includes("top")?"top":"bottom"),T=n.computed(()=>f.position.includes("left")?"left":f.position.includes("right")?"right":"center"),q=n.computed(()=>T.value!=="center"?T.value==="right"?"m-slide-right":"m-slide-left":b.value==="top"?"m-slide-top":"m-slide-bottom"),x=n.ref(!1),S=n.ref(!1),u=n.ref(),z=`m-toast-container --${b.value} --${T.value}`,P=`.${z.replaceAll(" ",".")}`,{start:O,stop:X,pause:Z,resume:$,remainingTime:_}=Be({callback:V,timeout:f.timeout});function Q(){const a=document.querySelector(P);if(!a&&!a){const r=document.body,m=document.createElement("div");m.className=z,r.append(m)}}function G(){const a=document.querySelector(P);return!f.queue&&f.maxToasts===!1?!1:typeof f.maxToasts=="number"&&a?f.maxToasts<=a.childElementCount:a&&a.childElementCount>0}function N(){if(G()){u.value=setTimeout(N,250);return}const a=document.querySelector(P);p.value&&a&&a.prepend(p.value),S.value=!0,O()}const U=n.ref("100%");function J(){switch(f.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}n.watch(()=>_.value,a=>{if(typeof a=="number"){const r=100*a/f.timeout;U.value=`${r}%`,a<=0&&V()}});function k(a){w("click",a),f.persistent||V()}async function ee(a,r){var m;x.value=!0,await a(),x.value=!1,(m=f.action)!=null&&m.closeToast&&k(r)}function F(a){f.noPauseOnHover||(a?Z():$())}function te(){X(),u.value&&clearTimeout(u.value)}function V(){te(),S.value=!1}function se(){w("open")}function oe(){var r;w("close"),(r=p.value)==null||r.remove();const a=document.querySelector(P);a&&!(a!=null&&a.hasChildNodes())&&a.remove()}return n.onMounted(()=>{Q(),N()}),(a,r)=>(n.openBlock(),n.createBlock(n.Transition,{name:q.value,onAfterLeave:oe,onAfterEnter:se,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("button",{ref_key:"Toaster",ref:p,class:n.normalizeClass(["m-toast",[`--${s.type}`,`--${b.value}`,`--${T.value}`,{"maz-pb-1":s.timeout}]]),role:"alert",onMouseover:r[2]||(r[2]=m=>F(!0)),onMouseleave:r[3]||(r[3]=m=>F(!1)),onClick:r[4]||(r[4]=n.withModifiers(m=>{var y;return s.link&&!((y=s.link)!=null&&y.closeToast)?void 0:k(m)},["stop"]))},[A.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(A.value),{key:0,class:"maz-text-2xl"})):n.createCommentVNode("v-if",!0),n.createElementVNode("div",Ct,[n.createElementVNode("p",At,n.toDisplayString(s.message),1)]),s.action?(n.openBlock(),n.createBlock(n.unref(t),{key:1,"data-test":"action-btn",color:s.type,pastel:"",loading:x.value,size:"sm",onClick:r[0]||(r[0]=n.withModifiers(m=>ee(s.action.func,m),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):n.createCommentVNode("v-if",!0),s.link?(n.openBlock(),n.createBlock(n.unref(t),{key:2,"data-test":"link-btn",color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:n.withCtx(()=>{var m;return[n.createElementVNode("div",xt,[s.link.text?(n.openBlock(),n.createElementBlock("span",St,n.toDisplayString(s.link.text),1)):n.createCommentVNode("v-if",!0),((m=s.link)==null?void 0:m.target)=="_blank"?(n.openBlock(),n.createBlock(n.unref(i),{key:1,class:"maz-text-xl"})):(n.openBlock(),n.createBlock(n.unref(g),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):n.createCommentVNode("v-if",!0),s.persistent?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("button",{key:3,class:"--close",onClick:r[1]||(r[1]=n.withModifiers(m=>k(m),["stop"]))},[n.createVNode(n.unref(o),{class:"--icon maz-text-xl"})])),n.createElementVNode("div",Pt,[n.createElementVNode("div",{style:n.normalizeStyle({width:U.value}),class:n.normalizeClass(["maz-h-full maz-transition-all maz-duration-200 maz-ease-linear",J()])},null,6)])],34),[[n.vShow,S.value]])]),_:1},8,["name"]))}}),$t=me(Ot,[["__scopeId","data-v-ee210f61"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Me{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const o={message:e,...t},i={...Ht,...o,...this.globalOptions,...t};ae($t,{props:i,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Bt={install(s,e){exports.toastInstance=new Me(s,e),s.provide("toast",exports.toastInstance)}},B="",Mt=s=>s.filter((e,t,o)=>t===o.indexOf(e)),Dt=s=>(e=B)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Nt=s=>s.length>0,Ft=s=>(e=B)=>Mt([...s,e]),Vt=s=>(e=B)=>s.filter(t=>t!==e);class De{constructor(){l(this,"_loaders",n.ref([]))}get loaders(){return n.computed(()=>this._loaders.value)}stop(e=B){this._loaders.value=Vt(this._loaders.value)(e)}start(e=B){return this._loaders.value=Ft(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return n.computed(()=>Nt(this._loaders.value))}isLoading(e=B){return n.computed(()=>Dt(this._loaders.value)(e)).value}}const Ne=new De,qt={install:s=>{s.provide("wait",Ne)}},ie={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Fe{constructor(e){l(this,"options");this.options={delay:(e==null?void 0:e.delay)??ie.delay,observer:{...ie.observer,...e==null?void 0:e.observer},animation:{...ie.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const o of e){const d=o.target.getAttribute("data-maz-aos-children")==="true",h=o.target.getAttribute("data-maz-aos")?[o.target]:[];if(d){const c=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(v=>v.getAttribute("data-maz-aos-anchor")===`#${o.target.id}`?v:void 0);for(const v of c)v&&h.push(v)}for(const c of h){const v=c.getAttribute("data-maz-aos-once"),g=typeof v=="string"?v==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&o.intersectionRatio>this.options.observer.threshold){const p=c.getAttribute("data-maz-aos-duration"),f=c.getAttribute("data-maz-aos-delay");p||(c.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{c.style.transitionDuration="0"},1e3)),f||(c.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{c.style.transitionDelay="0"},1e3)),c.classList.add("maz-aos-animate"),g&&t.unobserve(c)}else c.classList.remove("maz-aos-animate")}}}async handleObserver(){await H(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const o=t.getAttribute("data-maz-aos-anchor");if(o){const i=document.querySelector(o);i?(i.setAttribute("data-maz-aos-children","true"),e.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${o}"`)}else e.observe(t)}}runAnimations(){if(I())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const _t={install:(s,e)=>{exports.instance$1=new Fe(e),s.provide("aos",exports.instance$1),I()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},pe={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system"},D=n.ref("system"),L=n.ref("system");function he({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:o,setLocalStorageValue:i=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(e),document.documentElement.classList.add(s),D.value=o,d&&(L.value=o),i&&(localStorage[t]=o)}function fe({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:o,setLocalStorageValue:i=!0,setSelectedTheme:d=!0}){document.documentElement.classList.remove(s),document.documentElement.classList.add(e),D.value=o,d&&(L.value=o),i&&(localStorage[t]=o)}function Ve(s){document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),D.value=s.storageThemeValueSystem,L.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),qe({...s,setSelectedTheme:!1})}function ye(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function qe(s){localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&ye()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&ye()?he({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):fe({...s,setLocalStorageValue:!1,setSelectedTheme:!1})}function we({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Ve(e):s?he(e):fe(e)}function Ut(s){return D.value===s.storageThemeValueDark?fe(s):he(s)}function jt(s=pe){const e={...pe,...s},t=n.computed(()=>L.value===e.storageThemeValueDark),o=n.computed(()=>L.value===e.storageThemeValueLight),i=n.computed(()=>L.value===e.storageThemeValueSystem);return n.onMounted(()=>{localStorage[e.storageThemeKey]&&(D.value=localStorage[e.storageThemeKey],L.value=localStorage[e.storageThemeKey])}),{autoSetTheme:()=>qe(e),toggleTheme:()=>Ut(e),setSystemTheme:()=>Ve({...e,setLocalStorageValue:!0}),setDarkTheme:()=>we({...e,shouldSetDarkMode:!0}),setLightTheme:()=>we({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:o,hasSystemTheme:i,theme:D,selectedTheme:L}}const Rt=({componentName:s,instance:e,providedId:t})=>n.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Wt=()=>Y("aos"),Kt=()=>Y("wait"),Yt=()=>Y("toast"),Xt=({callback:s,options:e})=>new Ee(s,e),Zt=({callback:s,options:e})=>new Le(s,e),Qt=n.ref(),M=n.ref([]),Gt=(s,e)=>new Promise((t,o)=>{M.value=[...M.value,{id:s,isActive:!0,resolve:async()=>{await(e==null?void 0:e()),t(!0)},reject:o}]}),_e=s=>(M.value=M.value.filter(({id:e})=>e!==s),M.value),be=(s,e,t=!1)=>{var o;e&&((o=e[s])==null||o.call(e,t),e.isActive=!1,setTimeout(()=>{_e(e.id)},500))},Jt=()=>({confirmDialogData:Qt,dialogState:M,showDialogAndWaitChoice:Gt,removeDialogFromState:_e,rejectDialog:(s,e=!1)=>be("reject",s,e),resolveDialog:(s,e=!1)=>be("resolve",s,e)});exports.AosHandler=Fe;exports.IdleTimeout=Ee;exports.ScriptLoader=Ge;exports.ToasterHandler=Me;exports.UserVisibility=Le;exports.WaitHandler=De;exports._export_sfc=me;exports.capitalize=Pe;exports.countryCodeToUnicodeFlag=Je;exports.currency=Oe;exports.date=$e;exports.debounce=Qe;exports.directive=le;exports.directive$1=ce;exports.injectStrict=Y;exports.installDirectives=wt;exports.installFilters=kt;exports.installToaster=Bt;exports.instance=Ne;exports.isClient=I;exports.mount=ae;exports.number=He;exports.plugin=tt;exports.plugin$1=ut;exports.plugin$2=at;exports.plugin$3=nt;exports.plugin$4=qt;exports.plugin$5=_t;exports.sleep=H;exports.truthyFilter=ze;exports.useAos=Wt;exports.useIdleTimeout=Xt;exports.useInstanceUniqId=Rt;exports.useMazDialogPromise=Jt;exports.useThemeHandler=jt;exports.useTimer=Be;exports.useToast=Yt;exports.useUserVisibility=Zt;exports.useWait=Kt;exports.vFullscreenImg=de;exports.vFullscreenImgInstall=pt;exports.vLazyImg=Se;exports.vZoomImg=ue;
|
package/modules/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-fNfaYOpu.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$5;exports.installDirectives=e.installDirectives;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$4;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useMazDialogPromise=e.useMazDialogPromise;exports.useThemeHandler=e.useThemeHandler;exports.useTimer=e.useTimer;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$3;exports.vFullscreenImg=e.vFullscreenImg;exports.vFullscreenImgInstall=e.vFullscreenImgInstall;exports.vLazyImg=e.vLazyImg;exports.vLazyImgInstall=e.plugin$1;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$2;exports.waitInstance=e.instance;
|
package/modules/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as T, o as y, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, N as S, J as f, L as j, H as q, e as w, p as x, l as M, n as O, j as V, k as Z, v as B, f as E, g as G, h as J, A as K } from "./chunks/index-
|
|
1
|
+
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as T, o as y, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, N as S, J as f, L as j, H as q, e as w, p as x, l as M, n as O, j as V, k as Z, v as B, f as E, g as G, h as J, A as K } from "./chunks/index-0wbCxej8.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AosHandler,
|
|
4
4
|
l as IdleTimeout,
|
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
75
|
};
|
|
76
76
|
/** add classes to wrapper */
|
|
77
77
|
wrapperClass: {
|
|
78
|
+
type: PropType<any>;
|
|
78
79
|
default: undefined;
|
|
79
80
|
};
|
|
80
81
|
/** Remove padding from content wrapper */
|
|
@@ -171,6 +172,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
171
172
|
};
|
|
172
173
|
/** add classes to wrapper */
|
|
173
174
|
wrapperClass: {
|
|
175
|
+
type: PropType<any>;
|
|
174
176
|
default: undefined;
|
|
175
177
|
};
|
|
176
178
|
/** Remove padding from content wrapper */
|
|
@@ -209,7 +211,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
209
211
|
elevation: boolean;
|
|
210
212
|
radius: boolean;
|
|
211
213
|
imagesShowCount: number;
|
|
212
|
-
wrapperClass:
|
|
214
|
+
wrapperClass: any;
|
|
213
215
|
overflowHidden: boolean;
|
|
214
216
|
collapsable: boolean;
|
|
215
217
|
collapseOpen: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
type: PropType<Color>;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
block: {
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
@@ -34,13 +34,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: PropType<Color>;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
block: {
|
|
38
38
|
type: BooleanConstructor;
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
41
|
}>>, {
|
|
42
42
|
color: Color;
|
|
43
|
-
|
|
43
|
+
block: boolean;
|
|
44
44
|
useAnchor: boolean;
|
|
45
45
|
}, {}>;
|
|
46
46
|
export default _default;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import "../assets/MazBtn.css";
|
|
2
|
-
import { defineComponent as M, defineAsyncComponent as z, useAttrs as E, useSlots as L, onBeforeMount as R, computed as t, openBlock as o, createBlock as i, resolveDynamicComponent as w, normalizeClass as u, withCtx as A, createElementBlock as v, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
-
import { _ as N } from "./MazTabsBar-WKO9upP5.mjs";
|
|
4
|
-
const P = /* @__PURE__ */ M({
|
|
5
|
-
__name: "MazBtn",
|
|
6
|
-
props: {
|
|
7
|
-
variant: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "button",
|
|
10
|
-
validator: (e) => ["button", "link"].includes(e)
|
|
11
|
-
},
|
|
12
|
-
size: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "md",
|
|
15
|
-
validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
|
|
16
|
-
},
|
|
17
|
-
color: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "primary"
|
|
20
|
-
},
|
|
21
|
-
type: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "button",
|
|
24
|
-
validator: (e) => ["button", "submit", "reset"].includes(e)
|
|
25
|
-
},
|
|
26
|
-
rounded: { type: Boolean, default: !1 },
|
|
27
|
-
noRounded: { type: Boolean, default: !1 },
|
|
28
|
-
outline: { type: Boolean, default: !1 },
|
|
29
|
-
pastel: { type: Boolean, default: !1 },
|
|
30
|
-
block: { type: Boolean, default: !1 },
|
|
31
|
-
noUnderline: { type: Boolean, default: !1 },
|
|
32
|
-
noLeading: { type: Boolean, default: !1 },
|
|
33
|
-
loading: { type: Boolean, default: !1 },
|
|
34
|
-
disabled: { type: Boolean, default: !1 },
|
|
35
|
-
fab: { type: Boolean, default: !1 },
|
|
36
|
-
icon: { type: String, default: void 0 },
|
|
37
|
-
leftIcon: { type: String, default: void 0 },
|
|
38
|
-
rightIcon: { type: String, default: void 0 },
|
|
39
|
-
noPadding: { type: Boolean, default: !1 },
|
|
40
|
-
noElevation: { type: Boolean, default: !1 }
|
|
41
|
-
},
|
|
42
|
-
setup(e) {
|
|
43
|
-
const p = z(() => import("./MazSpinner-hj4vBKGe.mjs")), c = z(() => import("./MazIcon-4RyBw86a.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
|
-
R(() => {
|
|
45
|
-
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
|
-
});
|
|
47
|
-
const f = t(() => B ? "a" : h ? "router-link" : "button"), k = t(
|
|
48
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
49
|
-
), m = t(
|
|
50
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
51
|
-
), I = t(() => m.value ? "--cursor-default" : "--cursor-pointer"), x = t(() => `--is-${n.variant}`), l = t(() => n.loading && n.variant === "button"), y = t(() => !!b["left-icon"] || n.leftIcon), g = t(() => !!b["right-icon"] || n.rightIcon), C = t(() => y.value || g.value), S = t(() => n.fab && n.icon), $ = t(() => f.value === "button" ? n.type : void 0);
|
|
52
|
-
return (s, U) => (o(), i(w(f.value), {
|
|
53
|
-
disabled: m.value,
|
|
54
|
-
class: u(["m-btn", [
|
|
55
|
-
`--${e.size}`,
|
|
56
|
-
k.value,
|
|
57
|
-
I.value,
|
|
58
|
-
x.value,
|
|
59
|
-
{
|
|
60
|
-
"--block": e.block,
|
|
61
|
-
"--no-underline": e.noUnderline,
|
|
62
|
-
"--no-leading": e.noLeading,
|
|
63
|
-
"--fab": e.fab,
|
|
64
|
-
"--loading": e.loading,
|
|
65
|
-
"--disabled": m.value,
|
|
66
|
-
"--icon": C.value,
|
|
67
|
-
"--rounded": e.rounded,
|
|
68
|
-
"--no-rounded": e.noRounded,
|
|
69
|
-
"--no-padding": e.noPadding,
|
|
70
|
-
"--no-elevation": e.noElevation
|
|
71
|
-
}
|
|
72
|
-
]]),
|
|
73
|
-
type: $.value
|
|
74
|
-
}, {
|
|
75
|
-
default: A(() => [
|
|
76
|
-
y.value ? (o(), v(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
key: 0,
|
|
80
|
-
class: u(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
81
|
-
},
|
|
82
|
-
[
|
|
83
|
-
r(s.$slots, "left-icon", {}, () => [
|
|
84
|
-
e.leftIcon ? (o(), i(d(c), {
|
|
85
|
-
key: 0,
|
|
86
|
-
name: e.leftIcon
|
|
87
|
-
}, null, 8, ["name"])) : a("v-if", !0)
|
|
88
|
-
], !0)
|
|
89
|
-
],
|
|
90
|
-
2
|
|
91
|
-
/* CLASS */
|
|
92
|
-
)) : a("v-if", !0),
|
|
93
|
-
S.value ? (o(), v(
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
key: 1,
|
|
97
|
-
class: u(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
98
|
-
},
|
|
99
|
-
[
|
|
100
|
-
r(s.$slots, "icon", {}, () => [
|
|
101
|
-
e.icon ? (o(), i(d(c), {
|
|
102
|
-
key: 0,
|
|
103
|
-
name: e.icon
|
|
104
|
-
}, null, 8, ["name"])) : a("v-if", !0)
|
|
105
|
-
], !0)
|
|
106
|
-
],
|
|
107
|
-
2
|
|
108
|
-
/* CLASS */
|
|
109
|
-
)) : a("v-if", !0),
|
|
110
|
-
D(
|
|
111
|
-
"span",
|
|
112
|
-
{
|
|
113
|
-
class: u(["maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
114
|
-
},
|
|
115
|
-
[
|
|
116
|
-
r(s.$slots, "default", {}, void 0, !0)
|
|
117
|
-
],
|
|
118
|
-
2
|
|
119
|
-
/* CLASS */
|
|
120
|
-
),
|
|
121
|
-
g.value ? (o(), v(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
key: 2,
|
|
125
|
-
class: u(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
126
|
-
},
|
|
127
|
-
[
|
|
128
|
-
r(s.$slots, "right-icon", {}, () => [
|
|
129
|
-
e.rightIcon ? (o(), i(d(c), {
|
|
130
|
-
key: 0,
|
|
131
|
-
name: e.rightIcon
|
|
132
|
-
}, null, 8, ["name"])) : a("v-if", !0)
|
|
133
|
-
], !0)
|
|
134
|
-
],
|
|
135
|
-
2
|
|
136
|
-
/* CLASS */
|
|
137
|
-
)) : a("v-if", !0),
|
|
138
|
-
l.value ? (o(), i(d(p), {
|
|
139
|
-
key: 3,
|
|
140
|
-
size: "2em",
|
|
141
|
-
color: e.color,
|
|
142
|
-
class: "maz-absolute"
|
|
143
|
-
}, null, 8, ["color"])) : a("v-if", !0)
|
|
144
|
-
]),
|
|
145
|
-
_: 3
|
|
146
|
-
/* FORWARDED */
|
|
147
|
-
}, 8, ["disabled", "class", "type"]));
|
|
148
|
-
}
|
|
149
|
-
}), j = /* @__PURE__ */ N(P, [["__scopeId", "data-v-78782cb0"]]);
|
|
150
|
-
export {
|
|
151
|
-
j as default
|
|
152
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
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 "./MazTabsBar-WKO9upP5.mjs";
|
|
3
|
-
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
|
-
__name: "MazIcon",
|
|
5
|
-
props: {
|
|
6
|
-
src: { type: String, default: void 0 },
|
|
7
|
-
path: { type: String, default: void 0 },
|
|
8
|
-
name: { type: String, default: void 0 },
|
|
9
|
-
size: { type: String, default: void 0 },
|
|
10
|
-
title: { type: String, default: void 0 },
|
|
11
|
-
transformSource: {
|
|
12
|
-
type: Function,
|
|
13
|
-
default: (a) => a
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: ["loaded", "unloaded", "error"],
|
|
17
|
-
setup(a, { emit: S }) {
|
|
18
|
-
const i = {}, l = f(), d = f(), w = () => {
|
|
19
|
-
try {
|
|
20
|
-
return q("mazIconPath");
|
|
21
|
-
} catch {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
}, o = a, c = S, m = g(() => o.path ?? w()), y = g(() => o.src ? o.src : m.value ? `${m.value}/${o.name}.svg` : `/${o.name}.svg`);
|
|
25
|
-
P(() => {
|
|
26
|
-
!o.name && !o.src && console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop');
|
|
27
|
-
});
|
|
28
|
-
const E = (e, n) => {
|
|
29
|
-
const t = e.querySelectorAll("title");
|
|
30
|
-
if (t.length > 0)
|
|
31
|
-
t[0].textContent = n;
|
|
32
|
-
else {
|
|
33
|
-
const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
34
|
-
r.textContent = n, e.append(r);
|
|
35
|
-
}
|
|
36
|
-
}, M = (e) => Object.keys(e).reduce((n, t) => (e[t] !== !1 && e[t] !== null && e[t] !== void 0 && (n[t] = e[t]), n), {}), z = (e) => {
|
|
37
|
-
const n = {}, t = e.attributes;
|
|
38
|
-
if (!t)
|
|
39
|
-
return n;
|
|
40
|
-
for (let r = t.length - 1; r >= 0; r--)
|
|
41
|
-
n[t[r].name] = t[r].value;
|
|
42
|
-
return n;
|
|
43
|
-
}, T = (e) => {
|
|
44
|
-
let n = e.cloneNode(!0);
|
|
45
|
-
return n = o.transformSource(e), o.title && E(n, o.title), e.innerHTML;
|
|
46
|
-
}, x = async (e) => {
|
|
47
|
-
i[e] || (i[e] = L(e));
|
|
48
|
-
try {
|
|
49
|
-
l.value = await i[e], await $(), c("loaded", d.value);
|
|
50
|
-
} catch (n) {
|
|
51
|
-
l.value && (l.value = void 0, c("unloaded")), delete i[e], c("error", n);
|
|
52
|
-
}
|
|
53
|
-
}, L = (e) => new Promise((n, t) => {
|
|
54
|
-
const r = new XMLHttpRequest();
|
|
55
|
-
r.open("GET", e, !0), r.addEventListener("load", () => {
|
|
56
|
-
if (r.status >= 200 && r.status < 400)
|
|
57
|
-
try {
|
|
58
|
-
let u = new DOMParser().parseFromString(r.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
59
|
-
u ? (u = o.transformSource(u), n(u)) : t(new Error('Loaded file is not valid SVG"'));
|
|
60
|
-
} catch (v) {
|
|
61
|
-
t(v);
|
|
62
|
-
}
|
|
63
|
-
else
|
|
64
|
-
t(new Error("Error loading SVG"));
|
|
65
|
-
}), r.addEventListener("error", () => t()), r.send();
|
|
66
|
-
});
|
|
67
|
-
return _(() => x(y.value)), (e, n) => (p(), h(
|
|
68
|
-
A,
|
|
69
|
-
null,
|
|
70
|
-
[
|
|
71
|
-
s(" eslint-disable vue/no-v-html "),
|
|
72
|
-
s(" eslint-disable vue/html-self-closing "),
|
|
73
|
-
l.value ? (p(), h("svg", C({
|
|
74
|
-
key: 0,
|
|
75
|
-
ref_key: "svgElem",
|
|
76
|
-
ref: d,
|
|
77
|
-
width: "1em",
|
|
78
|
-
height: "1em"
|
|
79
|
-
}, {
|
|
80
|
-
...z(l.value),
|
|
81
|
-
...M(e.$attrs)
|
|
82
|
-
}, {
|
|
83
|
-
style: `font-size: ${a.size}`,
|
|
84
|
-
innerHTML: T(l.value)
|
|
85
|
-
}), null, 16, H)) : s("v-if", !0),
|
|
86
|
-
s(" eslint-enable vue/no-v-html "),
|
|
87
|
-
s(" eslint-enable vue/html-self-closing ")
|
|
88
|
-
],
|
|
89
|
-
2112
|
|
90
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
91
|
-
));
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
G as default
|
|
96
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import "../assets/MazSpinner.css";
|
|
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 "./MazPhoneNumberInput--P0rJeR6.mjs";
|
|
4
|
-
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
|
-
"path",
|
|
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" },
|
|
7
|
-
null,
|
|
8
|
-
-1
|
|
9
|
-
/* HOISTED */
|
|
10
|
-
)), m = [
|
|
11
|
-
l
|
|
12
|
-
], h = /* @__PURE__ */ t({
|
|
13
|
-
__name: "MazSpinner",
|
|
14
|
-
props: {
|
|
15
|
-
size: { type: String, default: "2em" },
|
|
16
|
-
color: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "primary"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(e) {
|
|
22
|
-
return (_, u) => (o(), c("svg", {
|
|
23
|
-
width: e.size,
|
|
24
|
-
height: e.size,
|
|
25
|
-
version: "1.1",
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
x: "0px",
|
|
28
|
-
y: "0px",
|
|
29
|
-
viewBox: "0 0 50 50",
|
|
30
|
-
"xml:space": "preserve",
|
|
31
|
-
class: n(["m-spinner", `m-spinner--${e.color}`]),
|
|
32
|
-
style: { "enable-background": "new 0 0 50 50" }
|
|
33
|
-
}, m, 10, d));
|
|
34
|
-
}
|
|
35
|
-
}), g = /* @__PURE__ */ p(h, [["__scopeId", "data-v-c67298ec"]]);
|
|
36
|
-
export {
|
|
37
|
-
g as default
|
|
38
|
-
};
|