maz-ui 3.40.2 → 3.40.4
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/README.md +1 -1
- package/components/MazAccordion.mjs +121 -104
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +2 -2
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +8 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +41 -2
- package/components/MazCardSpotlight.mjs +56 -39
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +32 -32
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazDropzone.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazAvatar-CfJSw4Yv.mjs → MazAvatar-QDlH6tvz.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-uKxvK85D.mjs → MazBottomSheet-CIlIdn-2.mjs} +1 -1
- package/components/chunks/{MazBtn-Cf6bpPps.mjs → MazBtn-78ToUjeK.mjs} +38 -38
- package/components/chunks/MazBtn-BKtYocJV.mjs +151 -0
- package/components/chunks/{MazBtn-C1Hevhzu.mjs → MazBtn-BydIwD1J.mjs} +5 -5
- package/components/chunks/MazBtn-Bz4-bhWf.mjs +151 -0
- package/components/chunks/{MazBtn-DBGIZYN0.mjs → MazBtn-CPyDRy19.mjs} +38 -38
- package/components/chunks/MazBtn-CauvhLv6.mjs +151 -0
- package/components/chunks/{MazBtn-WxZqpFgw.mjs → MazBtn-Ccvl1ZWv.mjs} +5 -5
- package/components/chunks/MazBtn-DWDitOvL.mjs +151 -0
- package/components/chunks/{MazBtn-Ct6j9jc6.mjs → MazBtn-Da5Nh9ga.mjs} +38 -38
- package/components/chunks/MazBtn-Dnq16gKt.mjs +151 -0
- package/components/chunks/MazBtn-Ng8Jql0R.mjs +151 -0
- package/components/chunks/MazBtn-_NGDIlQK.mjs +151 -0
- package/components/chunks/{MazCard-EXkymtQk.mjs → MazCard-DCz1q6wT.mjs} +70 -69
- package/components/chunks/{MazCarousel-iKzlrVVy.mjs → MazCarousel-DZZilIAg.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Dqw5B6BC.mjs → MazCheckbox-C1O-MBZa.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CZdX-eyY.mjs → MazCheckbox-PgXh8RSO.mjs} +1 -1
- package/components/chunks/{MazDialog-4Th-Xut5.mjs → MazDialog-wPf8YzO5.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-CJsnYYpX.mjs → MazDialogPromise-C4xTbUi9.mjs} +2 -2
- package/components/chunks/{MazGallery-D7CXzxIH.mjs → MazGallery-CaZnMqiM.mjs} +2 -2
- package/components/chunks/{MazIcon-DgT8iWEh.mjs → MazIcon-BfD79t7M.mjs} +1 -1
- package/components/chunks/{MazIcon-B-UuPklS.mjs → MazIcon-DAWEYUs6.mjs} +1 -1
- package/components/chunks/{MazInput-DDZFdad5.mjs → MazInput-BZBaDBjc.mjs} +1 -1
- package/components/chunks/{MazInputNumber-Cu15o5vo.mjs → MazInputNumber-DsSRD1TO.mjs} +64 -64
- package/components/chunks/{MazInputPrice-B7l9-xh2.mjs → MazInputPrice-BjI2ZK_A.mjs} +1 -1
- package/components/chunks/{MazInputTags-CNEK5pfK.mjs → MazInputTags-CUV1HRPI.mjs} +5 -5
- package/components/chunks/{MazLazyImg-BImCTi5K.mjs → MazLazyImg-BGK0RZe2.mjs} +2 -2
- package/components/chunks/{MazPagination-C4p_B9Dg.mjs → MazPagination-CfLOeWuj.mjs} +41 -41
- package/components/chunks/{MazPhoneNumberInput-DGf04XP4.mjs → MazPhoneNumberInput-CsBXHpCq.mjs} +2 -2
- package/components/chunks/{MazPicker-DzOi-CWS.mjs → MazPicker-_ndeWiCy.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-BZyGvAzQ.mjs → MazPickerCalendar-BXadlngJ.mjs} +7 -7
- package/components/chunks/{MazPickerHeader-CgoLWXed.mjs → MazPickerHeader-BpNxHXI2.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-BzxzHg15.mjs → MazPickerMonthSwitcher-BzEZ5x7j.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-CUfm1E2A.mjs → MazPickerShortcuts-BreMu-Sy.mjs} +2 -2
- package/components/chunks/{MazPickerTime-BRb6pDOe.mjs → MazPickerTime-Cc2hHJlp.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-CJY_QYpN.mjs → MazPickerYearSwitcher-B2Dk5iso.mjs} +3 -3
- package/components/chunks/{MazSelect-BsWij77Q.mjs → MazSelect-CraB8U5x.mjs} +2 -2
- package/components/chunks/{MazSpinner-3KgM7Cpe.mjs → MazSpinner-8VnYwZdB.mjs} +1 -1
- package/components/chunks/{MazSpinner-O0WGwdtL.mjs → MazSpinner-B_WP-2kr.mjs} +1 -1
- package/components/chunks/MazSpinner-BmOvvC7W.mjs +38 -0
- package/components/chunks/{MazSpinner-DHAlXW-A.mjs → MazSpinner-BtpIL60X.mjs} +1 -1
- package/components/chunks/{MazSpinner-CkigTMVl.mjs → MazSpinner-BxYAlebs.mjs} +1 -1
- package/components/chunks/MazSpinner-C-lFmcUR.mjs +38 -0
- package/components/chunks/MazSpinner-CTm1URNC.mjs +38 -0
- package/components/chunks/{MazSpinner-BxTf8_F4.mjs → MazSpinner-CXoCX_ho.mjs} +1 -1
- package/components/chunks/{MazSpinner-DUmQCQu_.mjs → MazSpinner-CZBhl7ce.mjs} +1 -1
- package/components/chunks/{MazSpinner-B_yl5MqC.mjs → MazSpinner-DWts_Ogu.mjs} +1 -1
- package/components/chunks/{MazSpinner-DzWvDo6x.mjs → MazSpinner-DYkIZhje.mjs} +1 -1
- package/components/chunks/MazSpinner-DibP0zFm.mjs +38 -0
- package/components/chunks/MazSpinner-DkLBbDGC.mjs +38 -0
- package/components/chunks/MazSpinner-DpOv_AqU.mjs +38 -0
- package/components/chunks/{MazSpinner-BazLgFW3.mjs → MazSpinner-Dt5ax5Hn.mjs} +1 -1
- package/components/chunks/MazSpinner-RodpKP96.mjs +38 -0
- package/components/chunks/MazSpinner-bGMoZfcX.mjs +38 -0
- package/components/chunks/{MazStepper-BvKEjtJo.mjs → MazStepper-CV4dwvS9.mjs} +22 -22
- package/components/chunks/{MazTable-Ds_9n2ph.mjs → MazTable-Cr4kGAth.mjs} +119 -119
- package/components/chunks/{MazTransitionExpand-F8UmMAin.mjs → MazTransitionExpand-Bxl5ajH4.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-C6uOt--l.mjs → MazTransitionExpand-DLMtNsk_.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-CJkDV-lC.cjs +9 -0
- package/{components/chunks/MazBtn-CuUu5chG.mjs → modules/chunks/MazBtn-Dv9nwclG.mjs} +38 -38
- package/modules/chunks/{MazIcon-Bm9aj2GA.cjs → MazIcon-C8crlYdE.cjs} +1 -1
- package/modules/chunks/{MazIcon-qdhBwo_3.mjs → MazIcon-CRXUvqjd.mjs} +1 -1
- package/modules/chunks/{MazSpinner-DCWCHgly.mjs → MazSpinner-AmAmgKgK.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BFGq9o4c.cjs → MazSpinner-C7r_jjn3.cjs} +1 -1
- package/modules/chunks/{index-Cl2Z9oxB.cjs → index-95nXhooW.cjs} +1 -1
- package/modules/chunks/{index-BRqo10xg.mjs → index-B99VOYdM.mjs} +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/MazBtn.vue.d.ts +2 -2
- package/types/components/MazCard.vue.d.ts +8 -2
- package/types/components/MazCardSpotlight.vue.d.ts +41 -2
- package/components/chunks/MazBtn-DWZMLLYY.mjs +0 -151
- package/components/chunks/MazBtn-DgWU7Vzx.mjs +0 -151
- package/components/chunks/MazBtn-Dp7XmWvD.mjs +0 -151
- package/components/chunks/MazBtn-Ds_0Y11U.mjs +0 -151
- package/components/chunks/MazBtn-qHhaccbJ.mjs +0 -151
- package/components/chunks/MazBtn-yFDtvtao.mjs +0 -151
- package/components/chunks/MazSpinner-CPFxMAVg.mjs +0 -38
- package/components/chunks/MazSpinner-DQTSh25q.mjs +0 -38
- package/components/chunks/MazSpinner-Dhgoim8I.mjs +0 -38
- package/components/chunks/MazSpinner-DuQDsXrM.mjs +0 -38
- package/components/chunks/MazSpinner-S7b1mVEd.mjs +0 -38
- package/components/chunks/MazSpinner-YQWKVqVa.mjs +0 -38
- package/components/chunks/MazSpinner-v_h1kbbd.mjs +0 -38
- package/components/chunks/MazSpinner-zKKOOicV.mjs +0 -38
- package/modules/chunks/MazBtn-0K3jTP4n.cjs +0 -9
- package/modules/chunks/MazBtn-D7GTVnKj.mjs +0 -151
|
@@ -121,4 +121,4 @@ require('../assets/index.css');"use strict";var Qe=Object.defineProperty;var Ge=
|
|
|
121
121
|
|
|
122
122
|
.maz-zoom-img .maz-zoom-btn:hover {
|
|
123
123
|
background-color: hsl(0, 0%, 0%);
|
|
124
|
-
}`,de={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 at{constructor(e){c(this,"options");c(this,"loader");c(this,"wrapper");c(this,"img");c(this,"keydownHandler");c(this,"onImgLoadedCallback");c(this,"buttonsAdded");c(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(rt);const s=document.createElement("div");s.classList.add("maz-zoom-img"),s.setAttribute("id","MazImgPreviewFullsize"),s.addEventListener("click",i=>{s.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),s.append(this.wrapper),document.body.append(s),this.keyboardEventHandler(!0),setTimeout(()=>{s&&s.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=[],s=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,s){const i=this.getButton("previous"),r=this.getButton("next");t.push(i,r)}this.wrapper.append(e),s&&(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=de.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=de[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"),s=document.querySelector(".maz-zoom-img-instance.maz-is-open");s&&s.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,s=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(s){const i=this.allInstances.indexOf(s),r=t?i+1:i-1,a=this.allInstances[this.getNewInstanceIndex(r)];a&&this.useNextInstance(s,a)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const s=t.getAttribute("data-zoom-src"),i=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,s&&this.img.setAttribute("src",s),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 Ae={created(n,e){j=new at(e),j.create(n)},updated(n,e){j.update(e)},unmounted(n){j.remove(n)}},Oe={install(n){n.directive("zoom-img",Ae)}},lt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ae={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class He{constructor(e={}){c(this,"observers",[]);c(this,"defaultOptions",ae);c(this,"options");c(this,"onImgLoadedCallback");c(this,"onImgErrorCallback");c(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-CLNgmzDi.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,s;this.addClass(e,this.options.loadingClass),(s=(t=this.options).onLoading)==null||s.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,s;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(s=(t=this.options).onLoaded)==null||s.call(t,e)}imageHasError(e){var t,s;this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(s=(t=this.options).onError)==null||s.call(t,e),this.setDefaultPhoto(e)}getSrc(e){return typeof e.value=="object"?e.value.src:e.value}getImageUrl(e,t){const s=this.getImgElement(e).getAttribute("data-lazy-src");return s||(t.value,this.getSrc(t))}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const s of t){const i=s.getAttribute("data-lazy-srcset");if(i)s.srcset=i;else return this.imageHasError(e)}else this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.fallbackSrc??this.options.errorPhoto;typeof t=="string"&&this.addClass(e,this.options.noPhotoClass);const s=t??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const r of i)r.srcset=s;else this.setImgSrc(e,s)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",s=>this.onImgErrorCallback(e,s),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const s=this.getImageUrl(e,t);if(!s)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${s}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,s))}}setImgSrc(e,t){const s=this.getImgElement(e);s.src=t}handleIntersectionObserver(e,t,s,i){var r,a;this.observers.push(i);for(const u of s)if(u.isIntersecting){if((a=(r=this.options).onIntersecting)==null||a.call(r,u.target),this.options.observerOnce&&i.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const s=(a,u)=>{this.handleIntersectionObserver(e,t,a,u)},i=this.options.observerOptions;new IntersectionObserver(s,i).observe(e)}async imageHandler(e,t,s){if(s==="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,s){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,s)}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 s of this.observers)s.unobserve(e);this.observers=[]}}let R;const ct={created(n,e){const t=typeof e.value=="object"?e.value:{};R=new He(t),R.add(n,e)},updated(n,e){R.update(n,e)},unmounted(n,e){R.remove(n,e)}},Me={install(n,e={}){const t={...ae,...e,observerOptions:{...ae.observerOptions,...e.observerOptions}},s=new He(t);n.directive("lazy-img",{created:s.add.bind(s),updated:s.update.bind(s),unmounted:s.remove.bind(s)})}},ut=["onKeypress"],mt={class:"m-fullscreen-img-scroller"},dt=["src","alt"],ht=o.defineComponent({__name:"MazFullscreenImg",props:{src:{},clickedElementBounds:{default:void 0},offset:{default:void 0},animation:{default:()=>({duration:300,easing:"ease-in-out"})},openInstanceClass:{default:"m-fullscreen-img-instance"},clickedElement:{},destroy:{type:Function,default:void 0},alt:{default:void 0},zoom:{type:Boolean,default:!0}},emits:["close","previous","next","before-close"],setup(n,{emit:e}){const t=e,s=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-BFGq9o4c.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),r=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-D2bYJFWX.cjs"))),a=n,u=o.ref(!1),d=o.ref(!1),g=o.ref(!1),E=o.ref(!1),y=o.ref(!1),v=o.ref(a.clickedElement),T=o.computed(()=>a.clickedElement.getBoundingClientRect()),M=o.computed(()=>T.value.height<T.value.width),x=o.ref(a.src),I=o.ref(a.alt),B=o.ref(),z=o.ref(),D=o.computed(()=>y.value?"--is-zoomed maz-cursor-zoom-out":"maz-cursor-zoom-in");function P(){u.value=!0,d.value=!1,g.value=!0}o.watch(()=>g.value,m=>{m&&W()});function k(){t("before-close"),ne()}function C(m){m.key==="Escape"&&(m.preventDefault(),k()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),$(m.key==="ArrowRight"?"next":"previous"))}function G(){document.documentElement.classList.add("--m-fullscreen-open")}function J(){document.documentElement.classList.remove("--m-fullscreen-open")}function V(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function ee(m,h){return h<0?m.length-1:h>=m.length?0:h}async function te(m,h){m.classList.remove(a.openInstanceClass),h.classList.add(a.openInstanceClass);const l=h.getAttribute("data-src"),f=h.getAttribute("data-alt");I.value=f,l&&(x.value=l),u.value=!1,u.value||(d.value=!0)}function $(m){const h=document.querySelector(`.m-fullscreen-img-instance.${a.openInstanceClass}`);if(h){const l=V(),f=l.indexOf(h),p=m==="next"?f+1:f-1,b=l[ee(l,p)];v.value=b,b&&te(h,b),t(m),y.value?F(z.value):O()}}function F(m){M.value?(m.style.width=`${window.innerWidth}px`,m.style.removeProperty("height")):(m.style.height=`${window.innerHeight}px`,m.style.removeProperty("width")),m.style.removeProperty("top"),m.style.removeProperty("left")}async function q(){const m=z.value;y.value?(y.value=!y.value,O()):(y.value=!y.value,F(m))}function N(m){var h;return(h=z.value)==null?void 0:h.animate(m,{duration:a.animation.duration,easing:a.animation.easing})}function U(m=a.offset??0){const h=(v.value instanceof HTMLImageElement?v.value.naturalWidth:v.value.clientWidth)||1,l=(v.value instanceof HTMLImageElement?v.value.naturalHeight:v.value.clientHeight)||1,f=window.innerWidth,p=window.innerHeight,b=Math.min((f-2*m)/h,(p-2*m)/l),se=(f-h*b)/2,oe=(p-l*b)/2;return{centerX:se,centerY:oe,originalWidth:h,originalHeight:l,scale:b}}function A({trigger:m}){const{originalWidth:h,originalHeight:l,scale:f,centerX:p,centerY:b}=U(),{top:se,left:oe,width:Ke,height:Ze}=T.value,me=[{top:`${se}px`,left:`${oe}px`,width:`${Ke}px`,height:`${Ze}px`,opacity:0},{top:`${b}px`,left:`${p}px`,width:`${h*f}px`,height:`${l*f}px`,opacity:1}];return{frames:m==="open"?me:me.reverse()}}function O(){const{centerX:m,centerY:h,originalHeight:l,originalWidth:f,scale:p}=U(),b={top:`${h}px`,left:`${m}px`,width:`${f*p}px`,height:`${l*p}px`};if(!z.value)throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");Object.assign(z.value.style,b)}function W(){const{frames:m}=A({trigger:"open"}),h=N(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");h.onfinish=()=>{O()}}function ne(){const{frames:m}=A({trigger:"close"}),h=N(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");h.onfinish=()=>{var l,f;t("close"),(l=B.value)==null||l.remove(),(f=a.destroy)==null||f.call(a)}}function S(){y.value||O()}return o.onMounted(()=>{d.value=!0,document.addEventListener("keydown",C),window.addEventListener("resize",S),G(),E.value=V().length>1}),o.onBeforeUnmount(()=>{document.removeEventListener("keydown",C),window.removeEventListener("resize",S),J()}),(m,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:B,role:"button",class:"m-fullscreen-img",tabindex:"0",onClick:o.withModifiers(k,["stop"]),onKeypress:o.withKeys(o.withModifiers(k,["prevent"]),["esc"])},[o.withDirectives(o.createVNode(o.unref(s),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[o.vShow,d.value]]),g.value&&E.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:h[0]||(h[0]=o.withModifiers(l=>$("next"),["stop"]))},[o.createVNode(o.unref(r),{class:"maz-rotate-180 maz-text-3xl"})])):o.createCommentVNode("v-if",!0),g.value&&E.value?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:h[1]||(h[1]=o.withModifiers(l=>$("previous"),["stop"]))},[o.createVNode(o.unref(r),{class:"maz-text-3xl"})])):o.createCommentVNode("v-if",!0),o.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:k},[o.createVNode(o.unref(i),{class:"maz-text-3xl"})]),o.createElementVNode("div",mt,[o.createCommentVNode(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),o.createElementVNode("img",{ref_key:"ImgElement",ref:z,src:x.value,alt:I.value??void 0,tabindex:"0",class:o.normalizeClass([D.value]),onLoad:P,onClick:h[2]||(h[2]=o.withModifiers(l=>m.zoom?q():void 0,["stop"]))},null,42,dt)])],40,ut))}}),ue=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t},ft=ue(ht,[["__scopeId","data-v-d975dba3"]]),he="m-fullscreen-is-open";class vt{constructor(){c(this,"options");c(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,zoom:!0,offset:80,animation:{duration:300,easing:"ease-in-out"}});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(this,"renderPreviewListener")}buildOptions(e,t){const s=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},i=(s==null?void 0:s.src)??this.getImgSrc(e),r=(s==null?void 0:s.alt)??this.getImgAlt(e);return{...this.defaultOptions,...s,src:i,alt:r}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var s;const t=((s=this.options)==null?void 0:s.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 200ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const s=this.getImgAlt(e);s&&e.setAttribute("data-alt",s),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(he),ce(ft,{props:{...this.options,openInstanceClass:he,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.04)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let Y;const De={mounted(n,e){return Y=new vt,Y.create(n,e)},updated(n,e){return Y.update(n,e)},unmounted(n){return Y.remove(n)}},Pe={install(n){n.directive("fullscreen-img",De)}},pt=[xe,Oe,Me,Ie,Pe],gt={install(n){for(const e of pt)e.install(n,{})}},$e=n=>n?(n=n.toString(),n.charAt(0).toUpperCase()+n.slice(1)):"",yt={style:"currency",minimumFractionDigits:2,round:!1},bt=(n,e,t)=>{let s=Number(n);return t.round&&(s=Math.floor(s),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(s)},wt=(n,e,t)=>{if(n===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.")},Ne=(n,e,t)=>{const s={...yt,...t};wt(n,e,s);try{return bt(n,e,s)}catch(i){throw new Error(`[maz-ui](FilterCurrency) ${i}`)}},Et={month:"short",day:"numeric",year:"numeric"},_e=(n,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 s=t??Et;try{const i=n instanceof Date?n:new Date(n);return new Intl.DateTimeFormat(e,s).format(i)}catch(i){throw new Error(`[maz-ui](FilterDate) ${i}`)}},zt={minimumFractionDigits:2},Be=(n,e,t)=>{const s={...zt,...t};if(n===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,s).format(Number(n))}catch(i){throw new Error(`[maz-ui](FilterNumber) ${i}`)}},Tt={capitalize:$e,currency:Ne,date:_e,number:Be},Lt={install(n){n.provide("filters",Tt)}};function Ve({timeout:n=1e3,callback:e,remainingTimeUpdate:t=200}){const s=o.ref(n),i=o.ref(n);let r;function a(y){typeof y=="number"&&(i.value=y),typeof y=="number"&&(s.value=y),u()}function u(){r||(r=setInterval(()=>{i.value-=t,i.value<=0&&(E(),e==null||e())},t))}function d(){r&&(clearInterval(r),r=void 0)}function g(){!r&&i.value>0&&u()}function E(){i.value=s.value,d()}return{remainingTime:i,start:a,pause:d,resume:g,stop:E}}const It={class:"m-toast__message-wrapper"},kt={class:"m-toast__message"},Ct={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},xt={key:4,class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},At=o.defineComponent({__name:"MazToast",props:{message:{default:void 0},position:{default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:[Number,Boolean],default:1e4},queue:{type:Boolean},noPauseOnHover:{type:Boolean},type:{default:"info"},link:{default:void 0},action:{default:void 0},persistent:{type:Boolean},icon:{type:Boolean,default:!0}},emits:["close","click","open"],setup(n,{expose:e,emit:t}){const s=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-0K3jTP4n.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),r=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-Kw3b5yYN.cjs"))),a=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-BhBdL4E2.cjs"))),u=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-Cw7wlH9H.cjs"))),d=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-i_xlqw0y.cjs"))),g=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-Bm2TJi5n.cjs"))),E=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-BbXTqAk3.cjs"))),y=o.ref(),v=n,T=o.computed(()=>{if(v.icon)switch(v.type){case"danger":return a;case"info":return d;case"success":return g;case"warning":return u;default:return}}),M=t,x=o.computed(()=>v.position.includes("top")?"top":"bottom"),I=o.computed(()=>v.position.includes("left")?"left":v.position.includes("right")?"right":"center"),B=o.computed(()=>I.value!=="center"?I.value==="right"?"m-slide-right":"m-slide-left":x.value==="top"?"m-slide-top":"m-slide-bottom"),z=o.ref(!1),D=o.ref(!1),P=o.ref(),k=`m-toast-container --${x.value} --${I.value}`,C=`.${k.replaceAll(" ",".")}`,{start:G,stop:J,pause:V,resume:ee,remainingTime:te}=Ve({callback:S,timeout:typeof v.timeout=="number"?v.timeout:0});function $(){const l=document.querySelector(C);if(!l&&!l){const f=document.body,p=document.createElement("div");p.className=k,f.append(p)}}function F(){const l=document.querySelector(C);return!v.queue&&v.maxToasts===!1?!1:typeof v.maxToasts=="number"&&l?v.maxToasts<=l.childElementCount:l&&l.childElementCount>0}function q(){if(F()){P.value=setTimeout(q,250);return}const l=document.querySelector(C);y.value&&l&&l.prepend(y.value),D.value=!0,typeof v.timeout=="number"&&v.timeout>0&&G()}const N=o.ref("100%");function U(){switch(v.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}o.watch(()=>te.value,l=>{if(typeof l=="number"&&typeof v.timeout=="number"){const f=100*l/v.timeout;N.value=`${f}%`,l<=0&&S()}});function A(l){M("click",l),v.persistent||S()}async function O(l,f){var p;z.value=!0,await l(),z.value=!1,(p=v.action)!=null&&p.closeToast&&A(f)}function W(l){v.noPauseOnHover||(l?V():ee())}function ne(){J(),P.value&&clearTimeout(P.value)}function S(){ne(),D.value=!1}e({close:S});function m(){M("open")}function h(){var f;M("close"),(f=y.value)==null||f.remove();const l=document.querySelector(C);l&&!(l!=null&&l.hasChildNodes())&&l.remove()}return o.onMounted(()=>{$(),q()}),(l,f)=>(o.openBlock(),o.createBlock(o.Transition,{name:B.value,onAfterLeave:h,onAfterEnter:m,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("button",{ref_key:"Toaster",ref:y,class:o.normalizeClass(["m-toast",[`--${l.type}`,`--${x.value}`,`--${I.value}`,{"maz-pb-1":typeof l.timeout=="number"&&l.timeout>0,"--persistent":l.persistent}]]),role:"alert",onMouseover:f[2]||(f[2]=p=>W(!0)),onMouseleave:f[3]||(f[3]=p=>W(!1)),onClick:f[4]||(f[4]=o.withModifiers(p=>{var b;return l.link&&!((b=l.link)!=null&&b.closeToast)?void 0:A(p)},["stop"]))},[T.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(T.value),{key:0,class:"maz-text-2xl"})):o.createCommentVNode("v-if",!0),o.createElementVNode("div",It,[o.createElementVNode("p",kt,o.toDisplayString(l.message),1)]),l.action?(o.openBlock(),o.createBlock(o.unref(s),{key:1,"data-test":"action-btn",color:l.type,pastel:"",loading:z.value,size:"sm",onClick:f[0]||(f[0]=o.withModifiers(p=>l.action?O(l.action.func,p):void 0,["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.action.text),1)]),_:1},8,["color","loading"])):o.createCommentVNode("v-if",!0),l.link?(o.openBlock(),o.createBlock(o.unref(s),{key:2,"data-test":"link-btn",color:l.type,pastel:"",size:"xs",href:l.link.href,target:l.link.target??"_self"},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",Ct,[l.link.text?(o.openBlock(),o.createElementBlock("span",St,o.toDisplayString(l.link.text),1)):o.createCommentVNode("v-if",!0),((p=l.link)==null?void 0:p.target)=="_blank"?(o.openBlock(),o.createBlock(o.unref(r),{key:1,class:"maz-text-xl"})):(o.openBlock(),o.createBlock(o.unref(E),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):o.createCommentVNode("v-if",!0),l.persistent?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("button",{key:3,class:"--close",onClick:f[1]||(f[1]=o.withModifiers(p=>A(p),["stop"]))},[o.createVNode(o.unref(i),{class:"--icon maz-text-xl"})])),typeof l.timeout=="number"&&l.timeout>0?(o.openBlock(),o.createElementBlock("div",xt,[o.createElementVNode("div",{style:o.normalizeStyle({width:N.value}),class:o.normalizeClass(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",U()])},null,6)])):o.createCommentVNode("v-if",!0)],34),[[o.vShow,D.value]])]),_:1},8,["name"]))}}),Ot=ue(At,[["__scopeId","data-v-b7764b1b"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1,icon:!0};class Fe{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const s={...Ht,...this.globalOptions,...t,message:e},{destroy:i,vNode:r}=ce(Ot,{props:s,app:this.app});return{destroy:i,close:()=>{var a,u;return(u=(a=r.component)==null?void 0:a.exposed)==null?void 0:u.close()}}}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Mt={install(n,e){exports.toastInstance=new Fe(n,e),n.provide("toast",exports.toastInstance)}},H="",Dt=n=>n.filter((e,t,s)=>t===s.indexOf(e)),Pt=n=>(e=H)=>typeof e=="function"?n.findIndex((...t)=>e(...t))>-1:n.includes(e),$t=n=>n.length>0,Nt=n=>(e=H)=>Dt([...n,e]),_t=n=>(e=H)=>n.filter(t=>t!==e);class qe{constructor(){c(this,"_loaders",o.ref([]))}get loaders(){return o.computed(()=>this._loaders.value)}stop(e=H){this._loaders.value=_t(this._loaders.value)(e)}start(e=H){return this._loaders.value=Nt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return o.computed(()=>$t(this._loaders.value))}isLoading(e=H){return o.computed(()=>Pt(this._loaders.value)(e)).value}}const Ue=new qe,Bt={install:n=>{n.provide("wait",Ue)}},ie={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class We{constructor(e){c(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 s of e){const r=s.target.getAttribute("data-maz-aos-children")==="true",a=s.target.getAttribute("data-maz-aos")?[s.target]:[];if(r){const u=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(d=>d.getAttribute("data-maz-aos-anchor")===`#${s.target.id}`?d:void 0);for(const d of u)d&&a.push(d)}for(const u of a){const d=u.getAttribute("data-maz-aos-once"),g=typeof d=="string"?d==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&s.intersectionRatio>this.options.observer.threshold){const E=u.getAttribute("data-maz-aos-duration"),y=u.getAttribute("data-maz-aos-delay");if(E||(u.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{u.style.transitionDuration="0"},1e3)),y||(u.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{u.style.transitionDelay="0"},1e3)),u.classList.add("maz-aos-animate"),g){const v=u.getAttribute("data-maz-aos-anchor");if(v){const T=document.querySelector(v);T&&t.unobserve(T)}t.unobserve(u)}}else u.classList.remove("maz-aos-animate")}}}async handleObserver(){await be(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const s=t.getAttribute("data-maz-aos-anchor");if(s){const i=document.querySelector(s);i?(i.setAttribute("data-maz-aos-children","true"),e.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${s}"`)}else e.observe(t)}}runAnimations(){if(w())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const Vt={install:(n,e)=>{exports.instance$1=new We(e),n.provide("aos",exports.instance$1),w()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},Ft={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system",watchChanges:!0},_=o.ref("system"),L=o.ref("system");function fe(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function Z({darkClass:n,lightClass:e,storageThemeKey:t,storageThemeValueDark:s,setLocalStorageValue:i=!0,setSelectedTheme:r=!0}){w()&&(document.documentElement.classList.remove(e),document.documentElement.classList.add(n),_.value=s,r&&(L.value=s),i&&(localStorage[t]=s))}function Q({darkClass:n,lightClass:e,storageThemeKey:t,storageThemeValueLight:s,setLocalStorageValue:i=!0,setSelectedTheme:r=!0}){w()&&(document.documentElement.classList.remove(n),document.documentElement.classList.add(e),_.value=s,r&&(L.value=s),i&&(localStorage[t]=s))}function qt({setLocalStorageValue:n=!0,...e}){if(w())return document.documentElement.classList.remove(e.darkClass),document.documentElement.classList.remove(e.lightClass),_.value=e.storageThemeValueSystem,L.value=e.storageThemeValueSystem,n&&(localStorage[e.storageThemeKey]=e.storageThemeValueSystem),le(e)}function je(n){if(!n.defaultTheme)return console.error("[maz-ui](useThemeHandler) No default theme set");if(!["light","dark"].includes(n.defaultTheme))return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');switch(n.defaultTheme){case"dark":return Z({...n,setLocalStorageValue:!1,setSelectedTheme:!0});case"light":return Q({...n,setLocalStorageValue:!1,setSelectedTheme:!0})}}function le(n){return w()?!localStorage[n.storageThemeKey]&&n.defaultTheme?je(n):localStorage[n.storageThemeKey]===n.storageThemeValueDark||!localStorage[n.storageThemeKey]&&fe()||localStorage[n.storageThemeKey]===n.storageThemeValueSystem&&fe()?Z({...n,setLocalStorageValue:!1,setSelectedTheme:!1}):Q({...n,setLocalStorageValue:!1,setSelectedTheme:!1}):void 0}function re({theme:n,...e}){return n==="system"?qt(e):n==="dark"?Z(e):Q(e)}function Ut(n){return _.value===n.storageThemeValueDark?Q(n):Z(n)}function Wt(n){const e={...Ft,...n};function t(){le(e)}return o.onMounted(()=>{localStorage[e.storageThemeKey]&&(L.value=localStorage[e.storageThemeKey]),e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t)}),o.onBeforeUnmount(()=>{e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}),{autoSetTheme:()=>le(e),toggleTheme:()=>Ut(e),setSystemTheme:()=>re({...e,theme:"system"}),setDarkTheme:()=>re({...e,theme:"dark"}),setLightTheme:()=>re({...e,theme:"light"}),setDefaultTheme:()=>je(e),hasDarkTheme:o.computed(()=>L.value===e.storageThemeValueDark),hasLightTheme:o.computed(()=>L.value===e.storageThemeValueLight),hasSystemTheme:o.computed(()=>L.value===e.storageThemeValueSystem),theme:_,selectedTheme:L}}function jt({componentName:n,providedId:e}){const t=o.getCurrentInstance();return o.computed(()=>e??`${n}-${t==null?void 0:t.uid}`)}function Rt(){return K("aos")}function Yt(){return K("wait")}function Xt(){return K("toast")}function Kt({callback:n,options:e}){return new ge(n,e)}function Zt({callback:n,options:e}){return new ye(n,e)}function Re(n={}){const{internalWindow:e=w()?window:void 0,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,includeScrollbar:i=!0}=n,r=o.ref(t),a=o.ref(s);function u(){e&&(i?(r.value=e.innerWidth,a.value=e.innerHeight):(r.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))}return u(),o.onMounted(()=>{e&&window.addEventListener("resize",u,{passive:!0})}),o.onUnmounted(()=>{e&&window.removeEventListener("resize",u)}),{width:r,height:a}}function Qt(n){const e={};for(const[t,s]of Object.entries(n))e[t]=Number.parseInt(s,10);return e}function Gt({initialWidth:n=0,initialHeight:e,includeScrollbar:t,internalWindow:s,listenOrientation:i,breakpoints:r,mediumBreakPoint:a="md",largeBreakPoint:u="lg"}){const{width:d}=Re({initialWidth:n,initialHeight:e,includeScrollbar:t,internalWindow:s,listenOrientation:i}),g=Qt(r),E=o.computed(()=>d.value>=g[u]),y=o.computed(()=>d.value>=g[a]&&d.value<g[u]),v=o.computed(()=>d.value>=0&&d.value<g[a]);return{width:d,numericBreakpoints:g,isSmallScreen:v,isLargeScreen:E,isMediumScreen:y,breakpoints:r}}function Jt(n){const e=new we({...n,element:n.element,onValuesChanged(d){t.value=d.xDiff,s.value=d.yDiff,i.value=d.xStart,r.value=d.xEnd,a.value=d.yStart,u.value=d.yEnd}}),t=o.ref(),s=o.ref(),i=o.ref(),r=o.ref(),a=o.ref(),u=o.ref();return{xDiff:t,yDiff:s,xStart:i,xEnd:r,yStart:a,yEnd:u,start:e.start,stop:e.stop}}function Ye(n){const e=n.join(", ").match(/\b\w+\b/g);return e?e.length:0}function en(n,e=150){const t=Ye([n]);return Math.ceil(t/e)}function tn(n){const e=o.computed(()=>{var a;return typeof n.velocity=="number"?n.velocity:((a=n.velocity)==null?void 0:a.value)??150}),t=o.computed(()=>{var a;return typeof n.contentSelector=="string"?n.contentSelector:(a=n.contentSelector)==null?void 0:a.value}),s=o.computed(()=>{var a,u,d;if(typeof((a=n.contentRef)==null?void 0:a.value)=="object")return(u=n.contentRef.value)==null?void 0:u.textContent;if(t.value&&typeof document<"u"){const g=document.querySelector(t.value);if(g)return g.textContent}return typeof n.content=="string"?n.content:(d=n.content)==null?void 0:d.value}),i=o.computed(()=>en(s.value,e.value)),r=o.computed(()=>Ye([s.value]));return{content:s,wordCount:r,velocity:e,duration:i}}function nn(n,e){const t=n.length,s=e.length,i=[];for(let r=0;r<=t;r++)i[r]=[r];for(let r=0;r<=s;r++)i[0][r]=r;for(let r=1;r<=t;r++)for(let a=1;a<=s;a++){const u=n[r-1]===e[a-1]?0:1;i[r][a]=Math.min(i[r-1][a]+1,i[r][a-1]+1,i[r-1][a-1]+u)}return i[t][s]}function ve(n){return n.normalize("NFD").replaceAll(/[\u0300-\u036F]/g,"").toLowerCase()}function Xe(n,e){const t=nn(n,e),s=Math.max(n.length,e.length);return 1-t/s}function sn(n,e,t=.75){return Xe(n,e)>=t}function on(n,e,t=.75){const s=o.computed(()=>ve(typeof n=="string"?n:n.value)),i=o.computed(()=>ve(typeof e=="string"?e:e.value)),r=o.computed(()=>typeof t=="number"?t:t.value),a=o.computed(()=>Xe(s.value,i.value));return{isMatching:o.computed(()=>sn(s.value,i.value,r.value)),score:a}}exports.AosHandler=We;exports.IdleTimeout=ge;exports.ScriptLoader=et;exports.Swipe=we;exports.ToasterHandler=Fe;exports.UserVisibility=ye;exports.WaitHandler=qe;exports._export_sfc=ue;exports.capitalize=$e;exports.countryCodeToUnicodeFlag=tt;exports.currency=Ne;exports.date=_e;exports.debounce=Je;exports.directive=Le;exports.directive$1=ct;exports.directive$2=De;exports.directive$3=Se;exports.injectStrict=K;exports.installFilters=Lt;exports.installToaster=Mt;exports.instance=Ue;exports.isClient=w;exports.mount=ce;exports.number=Be;exports.plugin=gt;exports.plugin$1=Ie;exports.plugin$2=Me;exports.plugin$3=Oe;exports.plugin$4=Pe;exports.plugin$5=xe;exports.plugin$6=Bt;exports.plugin$7=Vt;exports.sleep=be;exports.throttle=nt;exports.truthyFilter=pe;exports.useAos=Rt;exports.useBreakpoints=Gt;exports.useIdleTimeout=Kt;exports.useInstanceUniqId=jt;exports.useReadingTime=tn;exports.useStringMatching=on;exports.useSwipe=Jt;exports.useThemeHandler=Wt;exports.useTimer=Ve;exports.useToast=Xt;exports.useUserVisibility=Zt;exports.useWait=Yt;exports.useWindowSize=Re;exports.vZoomImg=Ae;
|
|
124
|
+
}`,de={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 at{constructor(e){c(this,"options");c(this,"loader");c(this,"wrapper");c(this,"img");c(this,"keydownHandler");c(this,"onImgLoadedCallback");c(this,"buttonsAdded");c(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(rt);const s=document.createElement("div");s.classList.add("maz-zoom-img"),s.setAttribute("id","MazImgPreviewFullsize"),s.addEventListener("click",i=>{s.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),s.append(this.wrapper),document.body.append(s),this.keyboardEventHandler(!0),setTimeout(()=>{s&&s.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=[],s=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,s){const i=this.getButton("previous"),r=this.getButton("next");t.push(i,r)}this.wrapper.append(e),s&&(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=de.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=de[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"),s=document.querySelector(".maz-zoom-img-instance.maz-is-open");s&&s.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,s=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(s){const i=this.allInstances.indexOf(s),r=t?i+1:i-1,a=this.allInstances[this.getNewInstanceIndex(r)];a&&this.useNextInstance(s,a)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const s=t.getAttribute("data-zoom-src"),i=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,s&&this.img.setAttribute("src",s),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 Ae={created(n,e){j=new at(e),j.create(n)},updated(n,e){j.update(e)},unmounted(n){j.remove(n)}},Oe={install(n){n.directive("zoom-img",Ae)}},lt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ae={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class He{constructor(e={}){c(this,"observers",[]);c(this,"defaultOptions",ae);c(this,"options");c(this,"onImgLoadedCallback");c(this,"onImgErrorCallback");c(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-CLNgmzDi.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,s;this.addClass(e,this.options.loadingClass),(s=(t=this.options).onLoading)==null||s.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,s;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(s=(t=this.options).onLoaded)==null||s.call(t,e)}imageHasError(e){var t,s;this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(s=(t=this.options).onError)==null||s.call(t,e),this.setDefaultPhoto(e)}getSrc(e){return typeof e.value=="object"?e.value.src:e.value}getImageUrl(e,t){const s=this.getImgElement(e).getAttribute("data-lazy-src");return s||(t.value,this.getSrc(t))}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const s of t){const i=s.getAttribute("data-lazy-srcset");if(i)s.srcset=i;else return this.imageHasError(e)}else this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.fallbackSrc??this.options.errorPhoto;typeof t=="string"&&this.addClass(e,this.options.noPhotoClass);const s=t??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const r of i)r.srcset=s;else this.setImgSrc(e,s)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",s=>this.onImgErrorCallback(e,s),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const s=this.getImageUrl(e,t);if(!s)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${s}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,s))}}setImgSrc(e,t){const s=this.getImgElement(e);s.src=t}handleIntersectionObserver(e,t,s,i){var r,a;this.observers.push(i);for(const u of s)if(u.isIntersecting){if((a=(r=this.options).onIntersecting)==null||a.call(r,u.target),this.options.observerOnce&&i.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const s=(a,u)=>{this.handleIntersectionObserver(e,t,a,u)},i=this.options.observerOptions;new IntersectionObserver(s,i).observe(e)}async imageHandler(e,t,s){if(s==="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,s){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,s)}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 s of this.observers)s.unobserve(e);this.observers=[]}}let R;const ct={created(n,e){const t=typeof e.value=="object"?e.value:{};R=new He(t),R.add(n,e)},updated(n,e){R.update(n,e)},unmounted(n,e){R.remove(n,e)}},Me={install(n,e={}){const t={...ae,...e,observerOptions:{...ae.observerOptions,...e.observerOptions}},s=new He(t);n.directive("lazy-img",{created:s.add.bind(s),updated:s.update.bind(s),unmounted:s.remove.bind(s)})}},ut=["onKeypress"],mt={class:"m-fullscreen-img-scroller"},dt=["src","alt"],ht=o.defineComponent({__name:"MazFullscreenImg",props:{src:{},clickedElementBounds:{default:void 0},offset:{default:void 0},animation:{default:()=>({duration:300,easing:"ease-in-out"})},openInstanceClass:{default:"m-fullscreen-img-instance"},clickedElement:{},destroy:{type:Function,default:void 0},alt:{default:void 0},zoom:{type:Boolean,default:!0}},emits:["close","previous","next","before-close"],setup(n,{emit:e}){const t=e,s=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-C7r_jjn3.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),r=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-D2bYJFWX.cjs"))),a=n,u=o.ref(!1),d=o.ref(!1),g=o.ref(!1),E=o.ref(!1),y=o.ref(!1),v=o.ref(a.clickedElement),T=o.computed(()=>a.clickedElement.getBoundingClientRect()),M=o.computed(()=>T.value.height<T.value.width),x=o.ref(a.src),I=o.ref(a.alt),B=o.ref(),z=o.ref(),D=o.computed(()=>y.value?"--is-zoomed maz-cursor-zoom-out":"maz-cursor-zoom-in");function P(){u.value=!0,d.value=!1,g.value=!0}o.watch(()=>g.value,m=>{m&&W()});function k(){t("before-close"),ne()}function C(m){m.key==="Escape"&&(m.preventDefault(),k()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),$(m.key==="ArrowRight"?"next":"previous"))}function G(){document.documentElement.classList.add("--m-fullscreen-open")}function J(){document.documentElement.classList.remove("--m-fullscreen-open")}function V(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function ee(m,h){return h<0?m.length-1:h>=m.length?0:h}async function te(m,h){m.classList.remove(a.openInstanceClass),h.classList.add(a.openInstanceClass);const l=h.getAttribute("data-src"),f=h.getAttribute("data-alt");I.value=f,l&&(x.value=l),u.value=!1,u.value||(d.value=!0)}function $(m){const h=document.querySelector(`.m-fullscreen-img-instance.${a.openInstanceClass}`);if(h){const l=V(),f=l.indexOf(h),p=m==="next"?f+1:f-1,b=l[ee(l,p)];v.value=b,b&&te(h,b),t(m),y.value?F(z.value):O()}}function F(m){M.value?(m.style.width=`${window.innerWidth}px`,m.style.removeProperty("height")):(m.style.height=`${window.innerHeight}px`,m.style.removeProperty("width")),m.style.removeProperty("top"),m.style.removeProperty("left")}async function q(){const m=z.value;y.value?(y.value=!y.value,O()):(y.value=!y.value,F(m))}function N(m){var h;return(h=z.value)==null?void 0:h.animate(m,{duration:a.animation.duration,easing:a.animation.easing})}function U(m=a.offset??0){const h=(v.value instanceof HTMLImageElement?v.value.naturalWidth:v.value.clientWidth)||1,l=(v.value instanceof HTMLImageElement?v.value.naturalHeight:v.value.clientHeight)||1,f=window.innerWidth,p=window.innerHeight,b=Math.min((f-2*m)/h,(p-2*m)/l),se=(f-h*b)/2,oe=(p-l*b)/2;return{centerX:se,centerY:oe,originalWidth:h,originalHeight:l,scale:b}}function A({trigger:m}){const{originalWidth:h,originalHeight:l,scale:f,centerX:p,centerY:b}=U(),{top:se,left:oe,width:Ke,height:Ze}=T.value,me=[{top:`${se}px`,left:`${oe}px`,width:`${Ke}px`,height:`${Ze}px`,opacity:0},{top:`${b}px`,left:`${p}px`,width:`${h*f}px`,height:`${l*f}px`,opacity:1}];return{frames:m==="open"?me:me.reverse()}}function O(){const{centerX:m,centerY:h,originalHeight:l,originalWidth:f,scale:p}=U(),b={top:`${h}px`,left:`${m}px`,width:`${f*p}px`,height:`${l*p}px`};if(!z.value)throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");Object.assign(z.value.style,b)}function W(){const{frames:m}=A({trigger:"open"}),h=N(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");h.onfinish=()=>{O()}}function ne(){const{frames:m}=A({trigger:"close"}),h=N(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");h.onfinish=()=>{var l,f;t("close"),(l=B.value)==null||l.remove(),(f=a.destroy)==null||f.call(a)}}function S(){y.value||O()}return o.onMounted(()=>{d.value=!0,document.addEventListener("keydown",C),window.addEventListener("resize",S),G(),E.value=V().length>1}),o.onBeforeUnmount(()=>{document.removeEventListener("keydown",C),window.removeEventListener("resize",S),J()}),(m,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:B,role:"button",class:"m-fullscreen-img",tabindex:"0",onClick:o.withModifiers(k,["stop"]),onKeypress:o.withKeys(o.withModifiers(k,["prevent"]),["esc"])},[o.withDirectives(o.createVNode(o.unref(s),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[o.vShow,d.value]]),g.value&&E.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:h[0]||(h[0]=o.withModifiers(l=>$("next"),["stop"]))},[o.createVNode(o.unref(r),{class:"maz-rotate-180 maz-text-3xl"})])):o.createCommentVNode("v-if",!0),g.value&&E.value?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:h[1]||(h[1]=o.withModifiers(l=>$("previous"),["stop"]))},[o.createVNode(o.unref(r),{class:"maz-text-3xl"})])):o.createCommentVNode("v-if",!0),o.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:k},[o.createVNode(o.unref(i),{class:"maz-text-3xl"})]),o.createElementVNode("div",mt,[o.createCommentVNode(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),o.createElementVNode("img",{ref_key:"ImgElement",ref:z,src:x.value,alt:I.value??void 0,tabindex:"0",class:o.normalizeClass([D.value]),onLoad:P,onClick:h[2]||(h[2]=o.withModifiers(l=>m.zoom?q():void 0,["stop"]))},null,42,dt)])],40,ut))}}),ue=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t},ft=ue(ht,[["__scopeId","data-v-d975dba3"]]),he="m-fullscreen-is-open";class vt{constructor(){c(this,"options");c(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,zoom:!0,offset:80,animation:{duration:300,easing:"ease-in-out"}});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(this,"renderPreviewListener")}buildOptions(e,t){const s=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},i=(s==null?void 0:s.src)??this.getImgSrc(e),r=(s==null?void 0:s.alt)??this.getImgAlt(e);return{...this.defaultOptions,...s,src:i,alt:r}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var s;const t=((s=this.options)==null?void 0:s.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 200ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const s=this.getImgAlt(e);s&&e.setAttribute("data-alt",s),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(he),ce(ft,{props:{...this.options,openInstanceClass:he,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.04)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let Y;const De={mounted(n,e){return Y=new vt,Y.create(n,e)},updated(n,e){return Y.update(n,e)},unmounted(n){return Y.remove(n)}},Pe={install(n){n.directive("fullscreen-img",De)}},pt=[xe,Oe,Me,Ie,Pe],gt={install(n){for(const e of pt)e.install(n,{})}},$e=n=>n?(n=n.toString(),n.charAt(0).toUpperCase()+n.slice(1)):"",yt={style:"currency",minimumFractionDigits:2,round:!1},bt=(n,e,t)=>{let s=Number(n);return t.round&&(s=Math.floor(s),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(s)},wt=(n,e,t)=>{if(n===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.")},Ne=(n,e,t)=>{const s={...yt,...t};wt(n,e,s);try{return bt(n,e,s)}catch(i){throw new Error(`[maz-ui](FilterCurrency) ${i}`)}},Et={month:"short",day:"numeric",year:"numeric"},_e=(n,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 s=t??Et;try{const i=n instanceof Date?n:new Date(n);return new Intl.DateTimeFormat(e,s).format(i)}catch(i){throw new Error(`[maz-ui](FilterDate) ${i}`)}},zt={minimumFractionDigits:2},Be=(n,e,t)=>{const s={...zt,...t};if(n===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,s).format(Number(n))}catch(i){throw new Error(`[maz-ui](FilterNumber) ${i}`)}},Tt={capitalize:$e,currency:Ne,date:_e,number:Be},Lt={install(n){n.provide("filters",Tt)}};function Ve({timeout:n=1e3,callback:e,remainingTimeUpdate:t=200}){const s=o.ref(n),i=o.ref(n);let r;function a(y){typeof y=="number"&&(i.value=y),typeof y=="number"&&(s.value=y),u()}function u(){r||(r=setInterval(()=>{i.value-=t,i.value<=0&&(E(),e==null||e())},t))}function d(){r&&(clearInterval(r),r=void 0)}function g(){!r&&i.value>0&&u()}function E(){i.value=s.value,d()}return{remainingTime:i,start:a,pause:d,resume:g,stop:E}}const It={class:"m-toast__message-wrapper"},kt={class:"m-toast__message"},Ct={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},xt={key:4,class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},At=o.defineComponent({__name:"MazToast",props:{message:{default:void 0},position:{default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:[Number,Boolean],default:1e4},queue:{type:Boolean},noPauseOnHover:{type:Boolean},type:{default:"info"},link:{default:void 0},action:{default:void 0},persistent:{type:Boolean},icon:{type:Boolean,default:!0}},emits:["close","click","open"],setup(n,{expose:e,emit:t}){const s=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-CJkDV-lC.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),r=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-Kw3b5yYN.cjs"))),a=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-BhBdL4E2.cjs"))),u=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-Cw7wlH9H.cjs"))),d=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-i_xlqw0y.cjs"))),g=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-Bm2TJi5n.cjs"))),E=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-BbXTqAk3.cjs"))),y=o.ref(),v=n,T=o.computed(()=>{if(v.icon)switch(v.type){case"danger":return a;case"info":return d;case"success":return g;case"warning":return u;default:return}}),M=t,x=o.computed(()=>v.position.includes("top")?"top":"bottom"),I=o.computed(()=>v.position.includes("left")?"left":v.position.includes("right")?"right":"center"),B=o.computed(()=>I.value!=="center"?I.value==="right"?"m-slide-right":"m-slide-left":x.value==="top"?"m-slide-top":"m-slide-bottom"),z=o.ref(!1),D=o.ref(!1),P=o.ref(),k=`m-toast-container --${x.value} --${I.value}`,C=`.${k.replaceAll(" ",".")}`,{start:G,stop:J,pause:V,resume:ee,remainingTime:te}=Ve({callback:S,timeout:typeof v.timeout=="number"?v.timeout:0});function $(){const l=document.querySelector(C);if(!l&&!l){const f=document.body,p=document.createElement("div");p.className=k,f.append(p)}}function F(){const l=document.querySelector(C);return!v.queue&&v.maxToasts===!1?!1:typeof v.maxToasts=="number"&&l?v.maxToasts<=l.childElementCount:l&&l.childElementCount>0}function q(){if(F()){P.value=setTimeout(q,250);return}const l=document.querySelector(C);y.value&&l&&l.prepend(y.value),D.value=!0,typeof v.timeout=="number"&&v.timeout>0&&G()}const N=o.ref("100%");function U(){switch(v.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}o.watch(()=>te.value,l=>{if(typeof l=="number"&&typeof v.timeout=="number"){const f=100*l/v.timeout;N.value=`${f}%`,l<=0&&S()}});function A(l){M("click",l),v.persistent||S()}async function O(l,f){var p;z.value=!0,await l(),z.value=!1,(p=v.action)!=null&&p.closeToast&&A(f)}function W(l){v.noPauseOnHover||(l?V():ee())}function ne(){J(),P.value&&clearTimeout(P.value)}function S(){ne(),D.value=!1}e({close:S});function m(){M("open")}function h(){var f;M("close"),(f=y.value)==null||f.remove();const l=document.querySelector(C);l&&!(l!=null&&l.hasChildNodes())&&l.remove()}return o.onMounted(()=>{$(),q()}),(l,f)=>(o.openBlock(),o.createBlock(o.Transition,{name:B.value,onAfterLeave:h,onAfterEnter:m,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("button",{ref_key:"Toaster",ref:y,class:o.normalizeClass(["m-toast",[`--${l.type}`,`--${x.value}`,`--${I.value}`,{"maz-pb-1":typeof l.timeout=="number"&&l.timeout>0,"--persistent":l.persistent}]]),role:"alert",onMouseover:f[2]||(f[2]=p=>W(!0)),onMouseleave:f[3]||(f[3]=p=>W(!1)),onClick:f[4]||(f[4]=o.withModifiers(p=>{var b;return l.link&&!((b=l.link)!=null&&b.closeToast)?void 0:A(p)},["stop"]))},[T.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(T.value),{key:0,class:"maz-text-2xl"})):o.createCommentVNode("v-if",!0),o.createElementVNode("div",It,[o.createElementVNode("p",kt,o.toDisplayString(l.message),1)]),l.action?(o.openBlock(),o.createBlock(o.unref(s),{key:1,"data-test":"action-btn",color:l.type,pastel:"",loading:z.value,size:"sm",onClick:f[0]||(f[0]=o.withModifiers(p=>l.action?O(l.action.func,p):void 0,["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.action.text),1)]),_:1},8,["color","loading"])):o.createCommentVNode("v-if",!0),l.link?(o.openBlock(),o.createBlock(o.unref(s),{key:2,"data-test":"link-btn",color:l.type,pastel:"",size:"xs",href:l.link.href,target:l.link.target??"_self"},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",Ct,[l.link.text?(o.openBlock(),o.createElementBlock("span",St,o.toDisplayString(l.link.text),1)):o.createCommentVNode("v-if",!0),((p=l.link)==null?void 0:p.target)=="_blank"?(o.openBlock(),o.createBlock(o.unref(r),{key:1,class:"maz-text-xl"})):(o.openBlock(),o.createBlock(o.unref(E),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):o.createCommentVNode("v-if",!0),l.persistent?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("button",{key:3,class:"--close",onClick:f[1]||(f[1]=o.withModifiers(p=>A(p),["stop"]))},[o.createVNode(o.unref(i),{class:"--icon maz-text-xl"})])),typeof l.timeout=="number"&&l.timeout>0?(o.openBlock(),o.createElementBlock("div",xt,[o.createElementVNode("div",{style:o.normalizeStyle({width:N.value}),class:o.normalizeClass(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",U()])},null,6)])):o.createCommentVNode("v-if",!0)],34),[[o.vShow,D.value]])]),_:1},8,["name"]))}}),Ot=ue(At,[["__scopeId","data-v-b7764b1b"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1,icon:!0};class Fe{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const s={...Ht,...this.globalOptions,...t,message:e},{destroy:i,vNode:r}=ce(Ot,{props:s,app:this.app});return{destroy:i,close:()=>{var a,u;return(u=(a=r.component)==null?void 0:a.exposed)==null?void 0:u.close()}}}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Mt={install(n,e){exports.toastInstance=new Fe(n,e),n.provide("toast",exports.toastInstance)}},H="",Dt=n=>n.filter((e,t,s)=>t===s.indexOf(e)),Pt=n=>(e=H)=>typeof e=="function"?n.findIndex((...t)=>e(...t))>-1:n.includes(e),$t=n=>n.length>0,Nt=n=>(e=H)=>Dt([...n,e]),_t=n=>(e=H)=>n.filter(t=>t!==e);class qe{constructor(){c(this,"_loaders",o.ref([]))}get loaders(){return o.computed(()=>this._loaders.value)}stop(e=H){this._loaders.value=_t(this._loaders.value)(e)}start(e=H){return this._loaders.value=Nt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return o.computed(()=>$t(this._loaders.value))}isLoading(e=H){return o.computed(()=>Pt(this._loaders.value)(e)).value}}const Ue=new qe,Bt={install:n=>{n.provide("wait",Ue)}},ie={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class We{constructor(e){c(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 s of e){const r=s.target.getAttribute("data-maz-aos-children")==="true",a=s.target.getAttribute("data-maz-aos")?[s.target]:[];if(r){const u=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(d=>d.getAttribute("data-maz-aos-anchor")===`#${s.target.id}`?d:void 0);for(const d of u)d&&a.push(d)}for(const u of a){const d=u.getAttribute("data-maz-aos-once"),g=typeof d=="string"?d==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&s.intersectionRatio>this.options.observer.threshold){const E=u.getAttribute("data-maz-aos-duration"),y=u.getAttribute("data-maz-aos-delay");if(E||(u.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{u.style.transitionDuration="0"},1e3)),y||(u.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{u.style.transitionDelay="0"},1e3)),u.classList.add("maz-aos-animate"),g){const v=u.getAttribute("data-maz-aos-anchor");if(v){const T=document.querySelector(v);T&&t.unobserve(T)}t.unobserve(u)}}else u.classList.remove("maz-aos-animate")}}}async handleObserver(){await be(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const s=t.getAttribute("data-maz-aos-anchor");if(s){const i=document.querySelector(s);i?(i.setAttribute("data-maz-aos-children","true"),e.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${s}"`)}else e.observe(t)}}runAnimations(){if(w())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const Vt={install:(n,e)=>{exports.instance$1=new We(e),n.provide("aos",exports.instance$1),w()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},Ft={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system",watchChanges:!0},_=o.ref("system"),L=o.ref("system");function fe(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function Z({darkClass:n,lightClass:e,storageThemeKey:t,storageThemeValueDark:s,setLocalStorageValue:i=!0,setSelectedTheme:r=!0}){w()&&(document.documentElement.classList.remove(e),document.documentElement.classList.add(n),_.value=s,r&&(L.value=s),i&&(localStorage[t]=s))}function Q({darkClass:n,lightClass:e,storageThemeKey:t,storageThemeValueLight:s,setLocalStorageValue:i=!0,setSelectedTheme:r=!0}){w()&&(document.documentElement.classList.remove(n),document.documentElement.classList.add(e),_.value=s,r&&(L.value=s),i&&(localStorage[t]=s))}function qt({setLocalStorageValue:n=!0,...e}){if(w())return document.documentElement.classList.remove(e.darkClass),document.documentElement.classList.remove(e.lightClass),_.value=e.storageThemeValueSystem,L.value=e.storageThemeValueSystem,n&&(localStorage[e.storageThemeKey]=e.storageThemeValueSystem),le(e)}function je(n){if(!n.defaultTheme)return console.error("[maz-ui](useThemeHandler) No default theme set");if(!["light","dark"].includes(n.defaultTheme))return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');switch(n.defaultTheme){case"dark":return Z({...n,setLocalStorageValue:!1,setSelectedTheme:!0});case"light":return Q({...n,setLocalStorageValue:!1,setSelectedTheme:!0})}}function le(n){return w()?!localStorage[n.storageThemeKey]&&n.defaultTheme?je(n):localStorage[n.storageThemeKey]===n.storageThemeValueDark||!localStorage[n.storageThemeKey]&&fe()||localStorage[n.storageThemeKey]===n.storageThemeValueSystem&&fe()?Z({...n,setLocalStorageValue:!1,setSelectedTheme:!1}):Q({...n,setLocalStorageValue:!1,setSelectedTheme:!1}):void 0}function re({theme:n,...e}){return n==="system"?qt(e):n==="dark"?Z(e):Q(e)}function Ut(n){return _.value===n.storageThemeValueDark?Q(n):Z(n)}function Wt(n){const e={...Ft,...n};function t(){le(e)}return o.onMounted(()=>{localStorage[e.storageThemeKey]&&(L.value=localStorage[e.storageThemeKey]),e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t)}),o.onBeforeUnmount(()=>{e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}),{autoSetTheme:()=>le(e),toggleTheme:()=>Ut(e),setSystemTheme:()=>re({...e,theme:"system"}),setDarkTheme:()=>re({...e,theme:"dark"}),setLightTheme:()=>re({...e,theme:"light"}),setDefaultTheme:()=>je(e),hasDarkTheme:o.computed(()=>L.value===e.storageThemeValueDark),hasLightTheme:o.computed(()=>L.value===e.storageThemeValueLight),hasSystemTheme:o.computed(()=>L.value===e.storageThemeValueSystem),theme:_,selectedTheme:L}}function jt({componentName:n,providedId:e}){const t=o.getCurrentInstance();return o.computed(()=>e??`${n}-${t==null?void 0:t.uid}`)}function Rt(){return K("aos")}function Yt(){return K("wait")}function Xt(){return K("toast")}function Kt({callback:n,options:e}){return new ge(n,e)}function Zt({callback:n,options:e}){return new ye(n,e)}function Re(n={}){const{internalWindow:e=w()?window:void 0,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,includeScrollbar:i=!0}=n,r=o.ref(t),a=o.ref(s);function u(){e&&(i?(r.value=e.innerWidth,a.value=e.innerHeight):(r.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))}return u(),o.onMounted(()=>{e&&window.addEventListener("resize",u,{passive:!0})}),o.onUnmounted(()=>{e&&window.removeEventListener("resize",u)}),{width:r,height:a}}function Qt(n){const e={};for(const[t,s]of Object.entries(n))e[t]=Number.parseInt(s,10);return e}function Gt({initialWidth:n=0,initialHeight:e,includeScrollbar:t,internalWindow:s,listenOrientation:i,breakpoints:r,mediumBreakPoint:a="md",largeBreakPoint:u="lg"}){const{width:d}=Re({initialWidth:n,initialHeight:e,includeScrollbar:t,internalWindow:s,listenOrientation:i}),g=Qt(r),E=o.computed(()=>d.value>=g[u]),y=o.computed(()=>d.value>=g[a]&&d.value<g[u]),v=o.computed(()=>d.value>=0&&d.value<g[a]);return{width:d,numericBreakpoints:g,isSmallScreen:v,isLargeScreen:E,isMediumScreen:y,breakpoints:r}}function Jt(n){const e=new we({...n,element:n.element,onValuesChanged(d){t.value=d.xDiff,s.value=d.yDiff,i.value=d.xStart,r.value=d.xEnd,a.value=d.yStart,u.value=d.yEnd}}),t=o.ref(),s=o.ref(),i=o.ref(),r=o.ref(),a=o.ref(),u=o.ref();return{xDiff:t,yDiff:s,xStart:i,xEnd:r,yStart:a,yEnd:u,start:e.start,stop:e.stop}}function Ye(n){const e=n.join(", ").match(/\b\w+\b/g);return e?e.length:0}function en(n,e=150){const t=Ye([n]);return Math.ceil(t/e)}function tn(n){const e=o.computed(()=>{var a;return typeof n.velocity=="number"?n.velocity:((a=n.velocity)==null?void 0:a.value)??150}),t=o.computed(()=>{var a;return typeof n.contentSelector=="string"?n.contentSelector:(a=n.contentSelector)==null?void 0:a.value}),s=o.computed(()=>{var a,u,d;if(typeof((a=n.contentRef)==null?void 0:a.value)=="object")return(u=n.contentRef.value)==null?void 0:u.textContent;if(t.value&&typeof document<"u"){const g=document.querySelector(t.value);if(g)return g.textContent}return typeof n.content=="string"?n.content:(d=n.content)==null?void 0:d.value}),i=o.computed(()=>en(s.value,e.value)),r=o.computed(()=>Ye([s.value]));return{content:s,wordCount:r,velocity:e,duration:i}}function nn(n,e){const t=n.length,s=e.length,i=[];for(let r=0;r<=t;r++)i[r]=[r];for(let r=0;r<=s;r++)i[0][r]=r;for(let r=1;r<=t;r++)for(let a=1;a<=s;a++){const u=n[r-1]===e[a-1]?0:1;i[r][a]=Math.min(i[r-1][a]+1,i[r][a-1]+1,i[r-1][a-1]+u)}return i[t][s]}function ve(n){return n.normalize("NFD").replaceAll(/[\u0300-\u036F]/g,"").toLowerCase()}function Xe(n,e){const t=nn(n,e),s=Math.max(n.length,e.length);return 1-t/s}function sn(n,e,t=.75){return Xe(n,e)>=t}function on(n,e,t=.75){const s=o.computed(()=>ve(typeof n=="string"?n:n.value)),i=o.computed(()=>ve(typeof e=="string"?e:e.value)),r=o.computed(()=>typeof t=="number"?t:t.value),a=o.computed(()=>Xe(s.value,i.value));return{isMatching:o.computed(()=>sn(s.value,i.value,r.value)),score:a}}exports.AosHandler=We;exports.IdleTimeout=ge;exports.ScriptLoader=et;exports.Swipe=we;exports.ToasterHandler=Fe;exports.UserVisibility=ye;exports.WaitHandler=qe;exports._export_sfc=ue;exports.capitalize=$e;exports.countryCodeToUnicodeFlag=tt;exports.currency=Ne;exports.date=_e;exports.debounce=Je;exports.directive=Le;exports.directive$1=ct;exports.directive$2=De;exports.directive$3=Se;exports.injectStrict=K;exports.installFilters=Lt;exports.installToaster=Mt;exports.instance=Ue;exports.isClient=w;exports.mount=ce;exports.number=Be;exports.plugin=gt;exports.plugin$1=Ie;exports.plugin$2=Me;exports.plugin$3=Oe;exports.plugin$4=Pe;exports.plugin$5=xe;exports.plugin$6=Bt;exports.plugin$7=Vt;exports.sleep=be;exports.throttle=nt;exports.truthyFilter=pe;exports.useAos=Rt;exports.useBreakpoints=Gt;exports.useIdleTimeout=Kt;exports.useInstanceUniqId=jt;exports.useReadingTime=tn;exports.useStringMatching=on;exports.useSwipe=Jt;exports.useThemeHandler=Wt;exports.useTimer=Ve;exports.useToast=Xt;exports.useUserVisibility=Zt;exports.useWait=Yt;exports.useWindowSize=Re;exports.vZoomImg=Ae;
|
|
@@ -886,7 +886,7 @@ const zs = {
|
|
|
886
886
|
},
|
|
887
887
|
emits: ["close", "previous", "next", "before-close"],
|
|
888
888
|
setup(s, { emit: e }) {
|
|
889
|
-
const t = e, n = T(() => import("./MazSpinner-
|
|
889
|
+
const t = e, n = T(() => import("./MazSpinner-AmAmgKgK.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), o = T(() => import("./chevron-left-CcZaP3Rc.mjs")), r = s, c = v(!1), m = v(!1), y = v(!1), z = v(!1), b = v(!1), f = v(r.clickedElement), k = g(() => r.clickedElement.getBoundingClientRect()), U = g(
|
|
890
890
|
() => k.value.height < k.value.width
|
|
891
891
|
), $ = v(r.src), H = v(r.alt), K = v(), I = v(), W = g(() => b.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
|
|
892
892
|
function j() {
|
|
@@ -1300,7 +1300,7 @@ const Wt = { class: "m-toast__message-wrapper" }, jt = { class: "m-toast__messag
|
|
|
1300
1300
|
},
|
|
1301
1301
|
emits: ["close", "click", "open"],
|
|
1302
1302
|
setup(s, { expose: e, emit: t }) {
|
|
1303
|
-
const n = T(() => import("./MazBtn-
|
|
1303
|
+
const n = T(() => import("./MazBtn-Dv9nwclG.mjs")), i = T(() => import("./x-mark-BP8zWe_C.mjs")), o = T(
|
|
1304
1304
|
() => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
|
|
1305
1305
|
), r = T(
|
|
1306
1306
|
() => import("./exclamation-triangle-BfZLmRbP.mjs")
|
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-95nXhooW.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.Swipe=e.Swipe;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$7;exports.installDirectives=e.plugin;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$6;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;exports.throttle=e.throttle;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useBreakpoints=e.useBreakpoints;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useReadingTime=e.useReadingTime;exports.useStringMatching=e.useStringMatching;exports.useSwipe=e.useSwipe;exports.useThemeHandler=e.useThemeHandler;exports.useTimer=e.useTimer;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.useWindowSize=e.useWindowSize;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin$1;exports.vClosable=e.directive$3;exports.vClosableInstall=e.plugin$5;exports.vFullscreenImg=e.directive$2;exports.vFullscreenImgInstall=e.plugin$4;exports.vLazyImg=e.directive$1;exports.vLazyImgInstall=e.plugin$2;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$3;exports.waitInstance=e.instance;
|
package/modules/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e, I as t, S as i, b as l, T as n, U as o, W as r, F as u, u as c, c as I, w as d, x as m, d as v, i as g, E as T, p, r as y, z as b, B as C, a as S, m as F, y as h, s as w, e as z, A as H, t as U, J as W, P as k, M as A, H as L, V as O, X as V, R as f, G as j, O as q, L as x, N as B, K as D, Q as M, f as R, g as Z, o as E, q as G, n as J, l as K, j as N, h as P, v as Q, k as X, C as Y } from "./chunks/index-
|
|
1
|
+
import { D as e, I as t, S as i, b as l, T as n, U as o, W as r, F as u, u as c, c as I, w as d, x as m, d as v, i as g, E as T, p, r as y, z as b, B as C, a as S, m as F, y as h, s as w, e as z, A as H, t as U, J as W, P as k, M as A, H as L, V as O, X as V, R as f, G as j, O as q, L as x, N as B, K as D, Q as M, f as R, g as Z, o as E, q as G, n as J, l as K, j as N, h as P, v as Q, k as X, C as Y } from "./chunks/index-B99VOYdM.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AosHandler,
|
|
4
4
|
t as IdleTimeout,
|
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -109,7 +109,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
109
109
|
leftIcon: undefined;
|
|
110
110
|
rightIcon: undefined;
|
|
111
111
|
contentClass: undefined;
|
|
112
|
-
roundedSize:
|
|
112
|
+
roundedSize: string;
|
|
113
113
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
114
114
|
variant: string;
|
|
115
115
|
size: string;
|
|
@@ -119,7 +119,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
119
119
|
leftIcon: undefined;
|
|
120
120
|
rightIcon: undefined;
|
|
121
121
|
contentClass: undefined;
|
|
122
|
-
roundedSize:
|
|
122
|
+
roundedSize: string;
|
|
123
123
|
}>>>, {
|
|
124
124
|
size: Size;
|
|
125
125
|
type: "button" | "reset" | "submit";
|
|
@@ -25,7 +25,7 @@ export type Props = {
|
|
|
25
25
|
elevation?: boolean;
|
|
26
26
|
/** Set radius to card */
|
|
27
27
|
radius?: boolean;
|
|
28
|
-
/** Set border to card */
|
|
28
|
+
/** Set border to card (in dark mode, the card is always bordered) */
|
|
29
29
|
bordered?: boolean;
|
|
30
30
|
/** Number of images shown in the gallery */
|
|
31
31
|
imagesShowCount?: number;
|
|
@@ -39,8 +39,14 @@ export type Props = {
|
|
|
39
39
|
noPadding?: boolean;
|
|
40
40
|
/** Hide overflow */
|
|
41
41
|
overflowHidden?: boolean;
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `collapsible` instead
|
|
44
|
+
*/
|
|
43
45
|
collapsable?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Card can be open and close
|
|
48
|
+
*/
|
|
49
|
+
collapsible?: boolean;
|
|
44
50
|
/** Card is open by default if `true` */
|
|
45
51
|
collapseOpen?: boolean;
|
|
46
52
|
/** Title of the card in header */
|
|
@@ -1,20 +1,59 @@
|
|
|
1
|
+
import { type HTMLAttributes, type StyleValue } from 'vue';
|
|
1
2
|
import type { Color } from './types';
|
|
2
3
|
export type { Color };
|
|
3
4
|
export type Props = {
|
|
4
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* The color of the component.
|
|
7
|
+
* @default primary
|
|
8
|
+
*/
|
|
5
9
|
color?: Color;
|
|
6
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Remove the elevation of the component
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
7
14
|
noElevation?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Add padding to the content
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
padding?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The classes to apply to the content div
|
|
22
|
+
*/
|
|
23
|
+
contentClass?: HTMLAttributes['class'];
|
|
24
|
+
/**
|
|
25
|
+
* Style apply to the content div
|
|
26
|
+
*/
|
|
27
|
+
contentStyle?: StyleValue;
|
|
28
|
+
/**
|
|
29
|
+
* The opacity of the inner div - should be between 0 and 1
|
|
30
|
+
* When 0 the spotlight is completely visible
|
|
31
|
+
* When 1 the spotlight is only visible on borders
|
|
32
|
+
* @default 0.95
|
|
33
|
+
*/
|
|
34
|
+
innerOpacity?: number;
|
|
8
35
|
};
|
|
9
36
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
10
37
|
noElevation: boolean;
|
|
11
38
|
color: string;
|
|
39
|
+
padding: boolean;
|
|
40
|
+
contentClass: undefined;
|
|
41
|
+
contentStyle: undefined;
|
|
42
|
+
innerOpacity: number;
|
|
12
43
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
13
44
|
noElevation: boolean;
|
|
14
45
|
color: string;
|
|
46
|
+
padding: boolean;
|
|
47
|
+
contentClass: undefined;
|
|
48
|
+
contentStyle: undefined;
|
|
49
|
+
innerOpacity: number;
|
|
15
50
|
}>>>, {
|
|
16
51
|
color: Color;
|
|
17
52
|
noElevation: boolean;
|
|
53
|
+
contentClass: any;
|
|
54
|
+
padding: boolean;
|
|
55
|
+
contentStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
56
|
+
innerOpacity: number;
|
|
18
57
|
}, {}>, {
|
|
19
58
|
default?(_: {}): any;
|
|
20
59
|
}>;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import '../assets/MazBtn.css';
|
|
2
|
-
import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as w, onBeforeMount as A, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as D, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
3
|
-
import { _ as L } from "./MazDialogPromise-CJsnYYpX.mjs";
|
|
4
|
-
const P = /* @__PURE__ */ E({
|
|
5
|
-
__name: "MazBtn",
|
|
6
|
-
props: {
|
|
7
|
-
variant: { default: "button" },
|
|
8
|
-
size: { default: "md" },
|
|
9
|
-
color: { default: "primary" },
|
|
10
|
-
type: { default: "button" },
|
|
11
|
-
rounded: { type: Boolean },
|
|
12
|
-
roundedSize: { default: void 0 },
|
|
13
|
-
noRounded: { type: Boolean },
|
|
14
|
-
outline: { type: Boolean },
|
|
15
|
-
pastel: { type: Boolean },
|
|
16
|
-
block: { type: Boolean },
|
|
17
|
-
noUnderline: { type: Boolean },
|
|
18
|
-
loading: { type: Boolean },
|
|
19
|
-
disabled: { type: Boolean },
|
|
20
|
-
fab: { type: Boolean },
|
|
21
|
-
icon: { default: void 0 },
|
|
22
|
-
leftIcon: { default: void 0 },
|
|
23
|
-
rightIcon: { default: void 0 },
|
|
24
|
-
noPadding: { type: Boolean },
|
|
25
|
-
noElevation: { type: Boolean },
|
|
26
|
-
contentClass: { default: void 0 }
|
|
27
|
-
},
|
|
28
|
-
setup(g) {
|
|
29
|
-
const k = h(() => import("./MazSpinner-B_yl5MqC.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: z, to: B } = R(), p = w(), e = g;
|
|
30
|
-
A(() => {
|
|
31
|
-
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
32
|
-
});
|
|
33
|
-
const v = l(() => z ? "a" : B ? "router-link" : "button"), I = l(
|
|
34
|
-
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
35
|
-
), b = l(
|
|
36
|
-
() => (e.loading || e.disabled) && v.value === "button"
|
|
37
|
-
), C = l(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), m = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => m.value || y.value), S = l(() => e.fab && (e.icon || !!p.icon)), T = l(() => v.value === "button" ? e.type : void 0);
|
|
38
|
-
return (o, U) => (n(), a(r(v.value), {
|
|
39
|
-
disabled: b.value,
|
|
40
|
-
class: s(["m-btn", [
|
|
41
|
-
`--${o.size}`,
|
|
42
|
-
`--rounded-${o.roundedSize}`,
|
|
43
|
-
I.value,
|
|
44
|
-
C.value,
|
|
45
|
-
$.value,
|
|
46
|
-
{
|
|
47
|
-
"--block": o.block,
|
|
48
|
-
"--no-underline": o.noUnderline,
|
|
49
|
-
"--fab": o.fab,
|
|
50
|
-
"--loading": o.loading,
|
|
51
|
-
"--disabled": b.value,
|
|
52
|
-
"--icon": M.value,
|
|
53
|
-
"--rounded": o.rounded,
|
|
54
|
-
"--no-rounded": o.noRounded,
|
|
55
|
-
"--no-padding": o.noPadding,
|
|
56
|
-
"--no-elevation": o.noElevation
|
|
57
|
-
}
|
|
58
|
-
]]),
|
|
59
|
-
type: T.value
|
|
60
|
-
}, {
|
|
61
|
-
default: D(() => [
|
|
62
|
-
m.value ? (n(), u(
|
|
63
|
-
"div",
|
|
64
|
-
{
|
|
65
|
-
key: 0,
|
|
66
|
-
class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
|
|
67
|
-
},
|
|
68
|
-
[
|
|
69
|
-
t(`
|
|
70
|
-
@slot left-icon - The icon to display on the left of the button
|
|
71
|
-
`),
|
|
72
|
-
d(o.$slots, "left-icon", {}, () => [
|
|
73
|
-
typeof o.leftIcon == "string" ? (n(), a(c(f), {
|
|
74
|
-
key: 0,
|
|
75
|
-
name: o.leftIcon
|
|
76
|
-
}, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
|
|
77
|
-
], !0)
|
|
78
|
-
],
|
|
79
|
-
2
|
|
80
|
-
/* CLASS */
|
|
81
|
-
)) : t("v-if", !0),
|
|
82
|
-
S.value ? (n(), u(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
key: 1,
|
|
86
|
-
class: s(["m-btn__icon", { "maz-invisible": i.value }])
|
|
87
|
-
},
|
|
88
|
-
[
|
|
89
|
-
t(`
|
|
90
|
-
@slot icon - The icon to display on the fab button
|
|
91
|
-
`),
|
|
92
|
-
d(o.$slots, "icon", {}, () => [
|
|
93
|
-
typeof o.icon == "string" ? (n(), a(c(f), {
|
|
94
|
-
key: 0,
|
|
95
|
-
name: o.icon
|
|
96
|
-
}, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
|
|
97
|
-
], !0)
|
|
98
|
-
],
|
|
99
|
-
2
|
|
100
|
-
/* CLASS */
|
|
101
|
-
)) : t("v-if", !0),
|
|
102
|
-
o.$slots.default ? (n(), u(
|
|
103
|
-
"span",
|
|
104
|
-
{
|
|
105
|
-
key: 2,
|
|
106
|
-
class: s([{ "maz-invisible": i.value }, o.contentClass])
|
|
107
|
-
},
|
|
108
|
-
[
|
|
109
|
-
t(`
|
|
110
|
-
@slot default - The content of the button
|
|
111
|
-
`),
|
|
112
|
-
d(o.$slots, "default", {}, void 0, !0)
|
|
113
|
-
],
|
|
114
|
-
2
|
|
115
|
-
/* CLASS */
|
|
116
|
-
)) : t("v-if", !0),
|
|
117
|
-
y.value ? (n(), u(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
key: 3,
|
|
121
|
-
class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
|
|
122
|
-
},
|
|
123
|
-
[
|
|
124
|
-
t(`
|
|
125
|
-
@slot right-icon - The icon to display on the right of the button
|
|
126
|
-
`),
|
|
127
|
-
d(o.$slots, "right-icon", {}, () => [
|
|
128
|
-
typeof o.rightIcon == "string" ? (n(), a(c(f), {
|
|
129
|
-
key: 0,
|
|
130
|
-
name: o.rightIcon
|
|
131
|
-
}, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
|
|
132
|
-
], !0)
|
|
133
|
-
],
|
|
134
|
-
2
|
|
135
|
-
/* CLASS */
|
|
136
|
-
)) : t("v-if", !0),
|
|
137
|
-
i.value ? (n(), a(c(k), {
|
|
138
|
-
key: 4,
|
|
139
|
-
class: "m-btn-loader",
|
|
140
|
-
size: "2em",
|
|
141
|
-
color: o.color
|
|
142
|
-
}, null, 8, ["color"])) : t("v-if", !0)
|
|
143
|
-
]),
|
|
144
|
-
_: 3
|
|
145
|
-
/* FORWARDED */
|
|
146
|
-
}, 8, ["disabled", "class", "type"]));
|
|
147
|
-
}
|
|
148
|
-
}), V = /* @__PURE__ */ L(P, [["__scopeId", "data-v-b67e7c92"]]);
|
|
149
|
-
export {
|
|
150
|
-
V as default
|
|
151
|
-
};
|