maz-ui 3.22.4 → 3.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/components/MazAvatar.mjs +2 -2
  2. package/components/MazBackdrop.mjs +67 -107
  3. package/components/MazBadge.mjs +41 -50
  4. package/components/MazBottomSheet.mjs +2 -2
  5. package/components/MazBtn.mjs +2 -2
  6. package/components/MazCard.mjs +2 -2
  7. package/components/MazCarousel.mjs +2 -2
  8. package/components/MazChart.mjs +53 -63
  9. package/components/MazCheckbox.mjs +84 -128
  10. package/components/MazDialog.mjs +2 -2
  11. package/components/MazDialogPromise.mjs +3 -3
  12. package/components/MazDrawer.mjs +2 -2
  13. package/components/MazDropdown.mjs +2 -2
  14. package/components/MazDropzone.mjs +2 -2
  15. package/components/MazFullscreenLoader.mjs +14 -18
  16. package/components/MazGallery.mjs +352 -558
  17. package/components/MazIcon.mjs +76 -140
  18. package/components/MazInput.mjs +2 -2
  19. package/components/MazInputNumber.mjs +72 -99
  20. package/components/MazInputPrice.mjs +2 -2
  21. package/components/MazInputTags.mjs +2 -2
  22. package/components/MazLazyImg.mjs +2 -2
  23. package/components/MazPhoneNumberInput.mjs +2 -2
  24. package/components/MazPicker.mjs +2 -2
  25. package/components/MazRadio.mjs +65 -94
  26. package/components/MazRadioButtons.mjs +64 -78
  27. package/components/MazSelect.mjs +2 -2
  28. package/components/MazSlider.mjs +213 -325
  29. package/components/MazSpinner.mjs +25 -34
  30. package/components/MazStepper.mjs +2 -2
  31. package/components/MazSwitch.mjs +43 -60
  32. package/components/MazTabs.mjs +16 -25
  33. package/components/MazTabsBar.mjs +2 -2
  34. package/components/MazTabsContent.mjs +34 -43
  35. package/components/MazTabsContentItem.mjs +49 -63
  36. package/components/MazTextarea.mjs +124 -169
  37. package/components/MazTransitionExpand.mjs +36 -54
  38. package/components/assets/MazBackdrop.css +1 -1
  39. package/components/assets/MazBottomSheet.css +1 -1
  40. package/components/assets/MazDialog.css +1 -1
  41. package/components/assets/MazDialogPromise.css +1 -1
  42. package/components/assets/MazDrawer.css +1 -1
  43. package/components/assets/MazPhoneNumberInput.css +1 -1
  44. package/components/assets/MazSelect.css +1 -1
  45. package/components/chunks/MazAvatar-1636f58b.mjs +126 -0
  46. package/components/chunks/MazBottomSheet-c24f92f8.mjs +217 -0
  47. package/components/chunks/MazBtn-124f3700.mjs +153 -0
  48. package/components/chunks/MazBtn-1e61862b.mjs +153 -0
  49. package/components/chunks/MazBtn-2d1d1ba5.mjs +153 -0
  50. package/components/chunks/MazBtn-3d74f737.mjs +153 -0
  51. package/components/chunks/MazBtn-4a447126.mjs +153 -0
  52. package/components/chunks/MazBtn-555928ed.mjs +153 -0
  53. package/components/chunks/MazBtn-571454f6.mjs +153 -0
  54. package/components/chunks/MazBtn-5e426592.mjs +153 -0
  55. package/components/chunks/MazBtn-683effc1.mjs +153 -0
  56. package/components/chunks/MazBtn-6905cc39.mjs +153 -0
  57. package/components/chunks/MazBtn-6ce4cfd3.mjs +153 -0
  58. package/components/chunks/MazBtn-74656d5b.mjs +153 -0
  59. package/components/chunks/MazBtn-7706b2da.mjs +158 -0
  60. package/components/chunks/MazBtn-a7a913dd.mjs +153 -0
  61. package/components/chunks/MazBtn-fb3c7af8.mjs +153 -0
  62. package/components/chunks/MazCard-bcc36489.mjs +214 -0
  63. package/components/chunks/MazCarousel-6da75122.mjs +107 -0
  64. package/components/chunks/MazCheckbox-040dc2c4.mjs +117 -0
  65. package/components/chunks/MazCheckbox-3a2b48b4.mjs +117 -0
  66. package/components/chunks/MazDialog-44eda544.mjs +250 -0
  67. package/components/chunks/MazDialogPromise-eec5acde.mjs +419 -0
  68. package/components/chunks/MazDrawer-b628b37e.mjs +206 -0
  69. package/components/chunks/MazDropdown-6f2248b0.mjs +345 -0
  70. package/components/chunks/MazDropzone-8cac10a6.mjs +242 -0
  71. package/components/chunks/MazGallery-6b8ecedf.mjs +617 -0
  72. package/components/chunks/MazIcon-52a76873.mjs +101 -0
  73. package/components/chunks/MazIcon-95e31ff8.mjs +96 -0
  74. package/components/chunks/MazInput-1ed4f946.mjs +283 -0
  75. package/components/chunks/MazInput-8a217995.mjs +271 -0
  76. package/components/chunks/MazInput-c51881ea.mjs +278 -0
  77. package/components/chunks/MazInputPrice-cd348d46.mjs +392 -0
  78. package/components/chunks/MazInputTags-aa95fae7.mjs +446 -0
  79. package/components/chunks/MazLazyImg-0412ab38.mjs +259 -0
  80. package/components/chunks/MazLazyImg-47d3449a.mjs +254 -0
  81. package/components/chunks/MazPhoneNumberInput-e1bf46f9.mjs +1216 -0
  82. package/components/chunks/MazPicker-e4620d8b.mjs +1140 -0
  83. package/components/chunks/MazPickerCalendar-da62262c.mjs +535 -0
  84. package/components/chunks/MazPickerHeader-a2e041eb.mjs +186 -0
  85. package/components/chunks/MazPickerMonthSwitcher-5bf8bd08.mjs +97 -0
  86. package/components/chunks/MazPickerShortcuts-7f95430e.mjs +74 -0
  87. package/components/chunks/MazPickerTime-717402ae.mjs +219 -0
  88. package/components/chunks/MazPickerYearSwitcher-85f97b6d.mjs +106 -0
  89. package/components/chunks/MazSelect-6ff6bb96.mjs +652 -0
  90. package/components/chunks/MazSpinner-054f948c.mjs +39 -0
  91. package/components/chunks/MazSpinner-059ee1d2.mjs +39 -0
  92. package/components/chunks/MazSpinner-08ee440b.mjs +39 -0
  93. package/components/chunks/MazSpinner-13403729.mjs +39 -0
  94. package/components/chunks/MazSpinner-44011019.mjs +39 -0
  95. package/components/chunks/MazSpinner-452a1534.mjs +39 -0
  96. package/components/chunks/MazSpinner-4c02cfd2.mjs +39 -0
  97. package/components/chunks/MazSpinner-51aa73ca.mjs +39 -0
  98. package/components/chunks/MazSpinner-6d1d24d5.mjs +39 -0
  99. package/components/chunks/MazSpinner-6e7c4705.mjs +39 -0
  100. package/components/chunks/MazSpinner-7895f54f.mjs +39 -0
  101. package/components/chunks/MazSpinner-7eee202e.mjs +39 -0
  102. package/components/chunks/MazSpinner-805e14a6.mjs +39 -0
  103. package/components/chunks/MazSpinner-85080b43.mjs +39 -0
  104. package/components/chunks/MazSpinner-a13a50c9.mjs +39 -0
  105. package/components/chunks/MazSpinner-a6d61cee.mjs +43 -0
  106. package/components/chunks/MazSpinner-c67b05bb.mjs +39 -0
  107. package/components/chunks/MazSpinner-caa33afc.mjs +39 -0
  108. package/components/chunks/MazSpinner-cb8fbe9a.mjs +39 -0
  109. package/components/chunks/MazSpinner-d9ef329f.mjs +39 -0
  110. package/components/chunks/MazStepper-39f018f3.mjs +191 -0
  111. package/components/chunks/MazTabsBar-27965f16.mjs +132 -0
  112. package/components/chunks/MazTransitionExpand-55cfbecb.mjs +41 -0
  113. package/components/chunks/MazTransitionExpand-cd24498f.mjs +41 -0
  114. package/components/chunks/_plugin-vue_export-helper-dad06003.mjs +9 -0
  115. package/components/chunks/check-31d7ba2f.mjs +30 -0
  116. package/components/chunks/check-c9b483c0.mjs +30 -0
  117. package/components/chunks/{check-circle-7acfa4c4.mjs → check-circle-59c383ed.mjs} +10 -12
  118. package/components/chunks/chevron-down-2b60111a.mjs +30 -0
  119. package/components/chunks/chevron-left-39b4621e.mjs +30 -0
  120. package/components/chunks/chevron-right-949a60fa.mjs +30 -0
  121. package/components/chunks/debounce-19c516b6.mjs +11 -0
  122. package/components/chunks/examples.mobile.json-f63d22fb.mjs +4 -0
  123. package/components/chunks/{exclamation-circle-2e115536.mjs → exclamation-circle-e2620aab.mjs} +10 -12
  124. package/components/chunks/{exclamation-triangle-10eb48dc.mjs → exclamation-triangle-21bf116a.mjs} +10 -12
  125. package/components/chunks/{eye-fbb13657.mjs → eye-dc12ce09.mjs} +12 -15
  126. package/components/chunks/{eye-slash-342420ff.mjs → eye-slash-fa42a017.mjs} +10 -12
  127. package/components/chunks/{magnifying-glass-5dffa35e.mjs → magnifying-glass-908981c0.mjs} +10 -12
  128. package/components/chunks/minus-e71140e1.mjs +30 -0
  129. package/components/chunks/no-photography-4c6c77cf.mjs +4 -0
  130. package/components/chunks/{no-photography-b0d08d6f.mjs → no-photography-be94ddda.mjs} +12 -15
  131. package/components/chunks/{no-symbol-975ce547.mjs → no-symbol-87477ad0.mjs} +10 -12
  132. package/components/chunks/{pencil-2f766dc8.mjs → pencil-4c35b4e7.mjs} +10 -12
  133. package/components/chunks/plus-c20544c3.mjs +30 -0
  134. package/components/chunks/x-mark-35f2f1e7.mjs +30 -0
  135. package/components/chunks/x-mark-7761acf4.mjs +29 -0
  136. package/modules/chunks/MazBtn-2f302422.cjs +1 -0
  137. package/modules/chunks/MazBtn-760c3b29.mjs +153 -0
  138. package/modules/chunks/MazIcon-0bd6b78e.mjs +96 -0
  139. package/modules/chunks/MazIcon-599a907f.cjs +1 -0
  140. package/modules/chunks/MazSpinner-03bd76bd.mjs +39 -0
  141. package/modules/chunks/MazSpinner-6ffa8db1.cjs +1 -0
  142. package/modules/chunks/{arrow-top-right-on-square-32bbe5a1.mjs → arrow-top-right-on-square-15191934.mjs} +10 -12
  143. package/modules/chunks/arrow-top-right-on-square-8e4ea6e2.cjs +1 -0
  144. package/modules/chunks/chevron-left-36731110.cjs +1 -0
  145. package/modules/chunks/chevron-left-39b4621e.mjs +30 -0
  146. package/modules/chunks/index-6a90ef88.mjs +1618 -0
  147. package/modules/chunks/index-794680d2.cjs +124 -0
  148. package/modules/chunks/{link-4eb05848.mjs → link-bb14441d.mjs} +10 -12
  149. package/modules/chunks/link-c7791a2a.cjs +1 -0
  150. package/modules/chunks/no-photography-0f6fcaf4.cjs +1 -0
  151. package/modules/chunks/no-photography-4c6c77cf.mjs +4 -0
  152. package/modules/chunks/x-mark-35f2f1e7.mjs +30 -0
  153. package/modules/chunks/x-mark-a28deca5.cjs +1 -0
  154. package/modules/index.cjs +1 -0
  155. package/modules/index.mjs +42 -42
  156. package/nuxt/index.json +1 -1
  157. package/package.json +14 -4
  158. package/types/resolvers/index.d.ts +1 -0
  159. package/types/resolvers/unplugin-vue-components-resolver.d.ts +8 -0
  160. package/types/utils/index.d.ts +3 -0
  161. package/components/chunks/MazAvatar-358d78d4.mjs +0 -138
  162. package/components/chunks/MazBottomSheet-61090f4a.mjs +0 -267
  163. package/components/chunks/MazBtn-0e02f0da.mjs +0 -184
  164. package/components/chunks/MazBtn-1daf9063.mjs +0 -184
  165. package/components/chunks/MazBtn-2f4fa942.mjs +0 -184
  166. package/components/chunks/MazBtn-31c6b731.mjs +0 -184
  167. package/components/chunks/MazBtn-48382169.mjs +0 -184
  168. package/components/chunks/MazBtn-4e1e116e.mjs +0 -184
  169. package/components/chunks/MazBtn-50abc4c5.mjs +0 -184
  170. package/components/chunks/MazBtn-84e12b6a.mjs +0 -184
  171. package/components/chunks/MazBtn-b42e3575.mjs +0 -184
  172. package/components/chunks/MazBtn-b56a7278.mjs +0 -184
  173. package/components/chunks/MazBtn-bbd6e9c8.mjs +0 -184
  174. package/components/chunks/MazBtn-cf0c8fcb.mjs +0 -184
  175. package/components/chunks/MazBtn-d92908b2.mjs +0 -191
  176. package/components/chunks/MazBtn-f48da79c.mjs +0 -184
  177. package/components/chunks/MazBtn-fec4c3b7.mjs +0 -184
  178. package/components/chunks/MazCard-4331dca0.mjs +0 -237
  179. package/components/chunks/MazCarousel-7825c7c9.mjs +0 -133
  180. package/components/chunks/MazCheckbox-ab5ddda2.mjs +0 -153
  181. package/components/chunks/MazCheckbox-e0bbe6ec.mjs +0 -153
  182. package/components/chunks/MazDialog-83e54b8c.mjs +0 -290
  183. package/components/chunks/MazDialogPromise-6967e821.mjs +0 -474
  184. package/components/chunks/MazDrawer-d778b3d2.mjs +0 -256
  185. package/components/chunks/MazDropdown-6f4482d7.mjs +0 -426
  186. package/components/chunks/MazDropzone-d1bb62dc.mjs +0 -325
  187. package/components/chunks/MazGallery-b2dc4286.mjs +0 -821
  188. package/components/chunks/MazIcon-b779da0a.mjs +0 -159
  189. package/components/chunks/MazIcon-bda198b4.mjs +0 -165
  190. package/components/chunks/MazInput-713b00d0.mjs +0 -326
  191. package/components/chunks/MazInput-b9386887.mjs +0 -341
  192. package/components/chunks/MazInput-c33627dd.mjs +0 -334
  193. package/components/chunks/MazInputPrice-452297f5.mjs +0 -481
  194. package/components/chunks/MazInputTags-7a463b81.mjs +0 -526
  195. package/components/chunks/MazLazyImg-6e395356.mjs +0 -336
  196. package/components/chunks/MazLazyImg-e0d8b6d0.mjs +0 -329
  197. package/components/chunks/MazPhoneNumberInput-48fe2445.mjs +0 -1536
  198. package/components/chunks/MazPicker-50fc11d1.mjs +0 -1352
  199. package/components/chunks/MazPickerCalendar-cacb361c.mjs +0 -689
  200. package/components/chunks/MazPickerHeader-63d45179.mjs +0 -216
  201. package/components/chunks/MazPickerMonthSwitcher-913c6e2c.mjs +0 -110
  202. package/components/chunks/MazPickerShortcuts-c6fabfc6.mjs +0 -88
  203. package/components/chunks/MazPickerTime-5e4475da.mjs +0 -301
  204. package/components/chunks/MazPickerYearSwitcher-dd4fa89c.mjs +0 -125
  205. package/components/chunks/MazSelect-2e5cd411.mjs +0 -850
  206. package/components/chunks/MazSpinner-022d7bee.mjs +0 -46
  207. package/components/chunks/MazSpinner-100c99b8.mjs +0 -46
  208. package/components/chunks/MazSpinner-191ad23b.mjs +0 -46
  209. package/components/chunks/MazSpinner-3155378b.mjs +0 -46
  210. package/components/chunks/MazSpinner-339a9006.mjs +0 -46
  211. package/components/chunks/MazSpinner-53979e96.mjs +0 -46
  212. package/components/chunks/MazSpinner-68d2f2ac.mjs +0 -46
  213. package/components/chunks/MazSpinner-6b563b22.mjs +0 -46
  214. package/components/chunks/MazSpinner-7cdc13e7.mjs +0 -46
  215. package/components/chunks/MazSpinner-8859d658.mjs +0 -46
  216. package/components/chunks/MazSpinner-8e180605.mjs +0 -52
  217. package/components/chunks/MazSpinner-9950424b.mjs +0 -46
  218. package/components/chunks/MazSpinner-c8270a93.mjs +0 -46
  219. package/components/chunks/MazSpinner-cb491238.mjs +0 -46
  220. package/components/chunks/MazSpinner-cb6f99f3.mjs +0 -46
  221. package/components/chunks/MazSpinner-ce4be8f1.mjs +0 -46
  222. package/components/chunks/MazSpinner-e5a9f319.mjs +0 -46
  223. package/components/chunks/MazSpinner-e92bd359.mjs +0 -46
  224. package/components/chunks/MazSpinner-eea9056d.mjs +0 -46
  225. package/components/chunks/MazSpinner-f1e69f29.mjs +0 -46
  226. package/components/chunks/MazStepper-4c19dbfc.mjs +0 -255
  227. package/components/chunks/MazTabsBar-3c2e2d69.mjs +0 -157
  228. package/components/chunks/MazTransitionExpand-474b00d4.mjs +0 -57
  229. package/components/chunks/MazTransitionExpand-f9e5a2d6.mjs +0 -57
  230. package/components/chunks/_plugin-vue_export-helper-cc2b3d55.mjs +0 -10
  231. package/components/chunks/check-8da249b1.mjs +0 -32
  232. package/components/chunks/check-f2fcce10.mjs +0 -32
  233. package/components/chunks/chevron-down-a78b9604.mjs +0 -32
  234. package/components/chunks/chevron-left-3365d59b.mjs +0 -32
  235. package/components/chunks/chevron-right-02f9e837.mjs +0 -32
  236. package/components/chunks/debounce-7d66ffa9.mjs +0 -12
  237. package/components/chunks/examples.mobile.json-618ba782.mjs +0 -4
  238. package/components/chunks/minus-c9cdee90.mjs +0 -32
  239. package/components/chunks/no-photography-7f2be516.mjs +0 -4
  240. package/components/chunks/plus-b1b0a5a8.mjs +0 -32
  241. package/components/chunks/x-mark-3b05101b.mjs +0 -31
  242. package/components/chunks/x-mark-c6ff45dd.mjs +0 -32
  243. package/modules/chunks/MazBtn-90ffd148.mjs +0 -184
  244. package/modules/chunks/MazIcon-988edef7.mjs +0 -159
  245. package/modules/chunks/MazSpinner-a16a3d8f.mjs +0 -46
  246. package/modules/chunks/chevron-left-3365d59b.mjs +0 -32
  247. package/modules/chunks/index-b1625fc2.mjs +0 -2315
  248. package/modules/chunks/no-photography-7f2be516.mjs +0 -4
  249. package/modules/chunks/x-mark-c6ff45dd.mjs +0 -32
@@ -0,0 +1,124 @@
1
+ var Ve=Object.create;var Z=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var je=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var We=(s,e,t)=>e in s?Z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Ke=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ue(e))!Re.call(s,n)&&n!==t&&Z(s,n,{get:()=>e[n],enumerable:!(i=qe(e,n))||i.enumerable});return s};var Ye=(s,e,t)=>(t=s!=null?Ve(je(s)):{},Ke(e||!s||!s.__esModule?Z(t,"default",{value:s,enumerable:!0}):t,s));var a=(s,e,t)=>(We(s,typeof e!="symbol"?e+"":e,t),t);var es=require("../assets/index.css");const o=require("vue");function K(s,e){const t=o.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Xe(s,e){let t;return function(...i){clearTimeout(t),t=setTimeout(()=>{s.apply(this,i)},e)}}function Ze(s){return!!s}function J(s,e){let t=e==null?void 0:e.element;function i(){t&&o.render(null,t)}const n=o.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:i}:{}},e==null?void 0:e.children);return e!=null&&e.app?(n.appContext=e.app._context,t?o.render(n,t):typeof document<"u"&&(t=document.createElement("div"),o.render(n,t))):(t=t??document.body,o.render(n,t)),{vNode:n,destroy:i,el:t}}function k(){return typeof document<"u"}class ve{constructor(e,t){a(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});a(this,"options");a(this,"timeoutHandler");a(this,"isIdle",!1);a(this,"isDestroy",!1);a(this,"startTime",0);a(this,"remainingTime",0);a(this,"lastClientX",-1);a(this,"lastClientY",-1);a(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);a(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:i}=e;if(t===void 0&&i===void 0||t===this.lastClientX&&i===this.lastClientY)return;this.lastClientX=t,this.lastClientY=i}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},k()&&this.start()}get element(){return this.options.element??document.body}start(){if(!k()){console.warn("[IdleTimeout](start) you should run this method on client side");return}for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(!k()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class fe{constructor(e,t){a(this,"eventHandlerFunction");a(this,"event","visibilitychange");a(this,"timeoutHandler");a(this,"options");a(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});a(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),k()&&this.start()}start(){if(!k()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const $=s=>new Promise(e=>{setTimeout(e,s)});class Qe{constructor({src:e,identifier:t,once:i=!0,async:n=!0,defer:c=!0}){a(this,"src");a(this,"script");a(this,"once");a(this,"async");a(this,"defer");a(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=i,this.async=n,this.defer=c}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const i of t)this.removeTag(i);return this.injectScript()}injectScript(){const e=window;return new Promise((t,i)=>{try{const n=document.createElement("script");n.src=this.src,n.async=this.async,n.defer=this.defer,n.dataset.identifier=this.identifier,n.addEventListener("error",c=>i(new Error(`[ScriptLoader](injectScript) ${c.message}`))),n.addEventListener("load",c=>(this.script=c,e[this.identifier]=c,t(c))),document.head.append(n)}catch(n){throw new Error(`[ScriptLoader](init) ${n}`)}})}}function Ge(s){return[...s].map(t=>t.charCodeAt(0)%32+127461).map(t=>String.fromCodePoint(t)).join("")}const W="__vue_click_away__",ge=()=>document.ontouchstart===null?"touchstart":"click",pe=async(s,e)=>{ye(s);const t=e.instance,i=e.value,n=typeof i=="function";if(!n)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await o.nextTick(),s[W]=h=>{if((!s||!s.contains(h.target))&&i&&n)return i.call(t,h)};const c=ge();document.addEventListener(c,s[W],!1)},ye=s=>{const e=ge();document.removeEventListener(e,s[W],!1),delete s[W]},Je=(s,e)=>{e.value!==e.oldValue&&pe(s,e)},ee={mounted:pe,updated:Je,unmounted:ye},et={install:s=>{s.directive("click-outside",ee)}},we=(s,e,t,i)=>{s.stopPropagation();const{handler:n,exclude:c}=t.value;let h=!1;if(c&&c.length>0)for(const r of c)h||(h=i.context.$refs[r].contains(s.target));!e.contains(s.target)&&!h&&i.context[n]()},be=()=>document.ontouchstart===null?"touchstart":"click",tt=(s,e,t)=>{const i=be();document.removeEventListener(i,n=>we(n,s,e,t))},st=(s,e,t)=>{const i=be();document.addEventListener(i,n=>we(n,s,e,t))},te={mounted:st,unmounted:tt},it={install:s=>{s.directive("closable",te)}},ot=`
2
+ .maz-zoom-img {
3
+ position: fixed;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ padding: 1rem;
9
+ z-index: 1050;
10
+ background-color: hsla(238, 15%, 40%, 0.7);
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ flex-direction: column;
15
+ }
16
+
17
+ .maz-zoom-img,
18
+ .maz-zoom-img * {
19
+ box-sizing: border-box;
20
+ }
21
+
22
+ .maz-zoom-img .maz-zoom-img__wrapper {
23
+ position: relative;
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ min-width: 0;
28
+ min-height: 0;
29
+ max-width: 100%;
30
+ max-height: 100%;
31
+ transition: all 300ms ease-in-out;
32
+ opacity: 0;
33
+ transform: scale(0.5);
34
+ }
35
+
36
+ .maz-zoom-img.maz-animate .maz-zoom-img__wrapper {
37
+ opacity: 1;
38
+ transform: scale(1);
39
+ }
40
+
41
+ .maz-zoom-img.maz-animate .maz-zoom-img__loader {
42
+ position: absolute;
43
+ top: 0;
44
+ bottom: 0;
45
+ left: 0;
46
+ right: 0;
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ background-color: hsla(238, 15%, 40%, 0.7);
51
+ border-radius: 1rem;
52
+ z-index: 2;
53
+ min-width: 60px;
54
+ min-height: 60px;
55
+ }
56
+ .maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {
57
+ display: none;
58
+ }
59
+
60
+ @-webkit-keyframes spin {
61
+ 0% { transform: rotate(0deg); }
62
+ 100% { transform: rotate(360deg); }
63
+ }
64
+
65
+ @keyframes spin {
66
+ 0% { transform: rotate(0deg); }
67
+ 100% { transform: rotate(360deg); }
68
+ }
69
+
70
+ .maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {
71
+ animation: spin .6s linear infinite;
72
+ }
73
+
74
+ .maz-zoom-img img {
75
+ max-width: 100%;
76
+ max-height: 100%;
77
+ min-width: 0;
78
+ border-radius: 1rem;
79
+ }
80
+
81
+ .maz-zoom-img .maz-zoom-btn {
82
+ margin: 0 auto;
83
+ border: none;
84
+ background-color: hsla(0, 0%, 7%, 0.5);
85
+ box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);
86
+ height: 2.2rem;
87
+ min-height: 2.2rem;
88
+ width: 2.2rem;
89
+ min-width: 2.2rem;
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ border-radius: 2.2rem;
94
+ cursor: pointer;
95
+ flex: 0 0 auto;
96
+ outline: none;
97
+ }
98
+
99
+ .maz-zoom-img .maz-zoom-btn svg {
100
+ fill: white;
101
+ }
102
+
103
+ .maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {
104
+ position: absolute;
105
+ top: 0.5rem;
106
+ right: 0.5rem;
107
+ z-index: 1;
108
+ }
109
+
110
+ .maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {
111
+ position: absolute;
112
+ left: 0.5rem;
113
+ z-index: 1;
114
+ }
115
+
116
+ .maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {
117
+ position: absolute;
118
+ right: 0.5rem;
119
+ z-index: 1;
120
+ }
121
+
122
+ .maz-zoom-img .maz-zoom-btn:hover {
123
+ background-color: hsl(0, 0%, 0%);
124
+ }`,le={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 nt{constructor(e){a(this,"options");a(this,"loader");a(this,"wrapper");a(this,"img");a(this,"keydownHandler");a(this,"onImgLoadedCallback");a(this,"buttonsAdded");a(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(ot);const i=document.createElement("div");i.classList.add("maz-zoom-img"),i.setAttribute("id","MazImgPreviewFullsize"),i.addEventListener("click",n=>{i.isEqualNode(n.target)&&this.closePreview()}),typeof t=="object"&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),i.append(this.wrapper),document.body.append(i),this.keyboardEventHandler(!0),setTimeout(()=>{i&&i.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=[],i=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,i){const n=this.getButton("previous"),c=this.getButton("next");t.push(n,c)}this.wrapper.append(e),i&&(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=le.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=le[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"),i=document.querySelector(".maz-zoom-img-instance.maz-is-open");i&&i.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,i=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(i){const n=this.allInstances.indexOf(i),c=t?n+1:n-1,h=this.allInstances[this.getNewInstanceIndex(c)];h&&this.useNextInstance(i,h)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const i=t.getAttribute("data-zoom-src"),n=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,i&&this.img.setAttribute("src",i),n&&this.img.setAttribute("alt",n)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let U;const se={created(s,e){U=new nt(e),U.create(s)},updated(s,e){U.update(e)},unmounted(s){U.remove(s)}},rt={install(s){s.directive("zoom-img",se)}},at="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",G={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 ze{constructor(e={}){a(this,"observers",[]);a(this,"defaultOptions",G);a(this,"options");a(this,"onImgLoadedCallback");a(this,"onImgErrorCallback");a(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-0f6fcaf4.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,i;this.addClass(e,this.options.loadingClass),(i=(t=this.options).onLoading)==null||i.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,i;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(i=(t=this.options).onLoaded)==null||i.call(t,e)}imageHasError(e,t){var i,n;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(n=(i=this.options).onError)==null||n.call(i,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const i=this.getImgElement(e).getAttribute("data-lazy-src");if(i)return i;t.value;const n=typeof t.value=="object"?t.value.src:t.value;return n||console.warn("[maz-ui][MazLazyImg] src url is not defined"),n}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const i of t){const n=i.getAttribute("data-lazy-srcset");n?i.srcset=n:console.warn('[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const n of i)n.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",i=>this.onImgErrorCallback(e,i),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const i=this.getImageUrl(e,t);if(!i)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${i}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,i))}}setImgSrc(e,t){const i=this.getImgElement(e);i.src=t}handleIntersectionObserver(e,t,i,n){var c,h;this.observers.push(n);for(const r of i)if(r.isIntersecting){if((h=(c=this.options).onIntersecting)==null||h.call(c,r.target),this.options.observerOnce&&n.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const i=(h,r)=>{this.handleIntersectionObserver(e,t,h,r)},n=this.options.observerOptions;new IntersectionObserver(i,n).observe(e)}async imageHandler(e,t,i){if(i==="update")for await(const n of this.observers)n.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,i){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,i)}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,at),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 i of this.observers)i.unobserve(e);this.observers=[]}}let j;const Ee={created(s,e){const t=typeof e.value=="object"?e.value:{};j=new ze(t),j.add(s,e)},updated(s,e){j.update(s,e)},unmounted(s,e){j.remove(s,e)}},lt="lazy-img",ct={install(s,e={}){const t={...G,...e,observerOptions:{...G.observerOptions,...e.observerOptions}},i=new ze(t);s.directive(lt,{created:i.add.bind(i),updated:i.update.bind(i),unmounted:i.remove.bind(i)})}},ut=["onClick","onKeypress"],mt={class:"m-fullscreen-img-scroller"},dt=["src","alt"],ht=o.defineComponent({__name:"MazFullscreenImg",props:{destroy:{type:Function,default:void 0},src:{},alt:{default:void 0},openInstanceClass:{},zoom:{type:Boolean,default:!0},disabled:{type:Boolean},clickedElementBounds:{},clickedElement:{},animated:{type:Boolean,default:!0},scaleAnimation:{type:Boolean}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-6ffa8db1.cjs"))),n=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-a28deca5.cjs"))),c=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-36731110.cjs")));let h;o.onBeforeMount(async()=>{h=await import("vue-scrollto")});const r=s,p=o.ref(!1),b=o.ref(!1),y=o.ref(!1),A=o.ref(!1),C=o.ref(!1),z=o.ref(!1),w=o.ref(!1),O=o.ref(r.clickedElement instanceof HTMLImageElement),D=o.ref(r.src),x=o.ref(r.alt),V=o.ref(),u=o.ref(),E=o.computed(()=>O.value&&r.animated&&!r.scaleAnimation),N=o.computed(()=>(O.value||!r.animated)&&!r.scaleAnimation),H=o.ref(!1),q=o.computed(()=>z.value?`--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${H.value?"maz-h-screen maz-w-auto":"maz-h-auto maz-w-screen"}`:`cursor-zoom-out ${H.value?"maz-w-screen maz-h-screen --is-landscape":"maz-h-screen maz-w-auto"}`);function Y(){b.value=!0,y.value=!1,A.value=!0}function S(){t("before-close"),p.value=!1}function d(m){m.key==="Escape"&&(m.preventDefault(),S()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),X(m.key==="ArrowRight"))}function f(){document.documentElement.classList.add("--m-fullscreen-open")}function g(){document.documentElement.classList.remove("--m-fullscreen-open")}function F(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function $e(m,l){return l<0?m.length-1:l>=m.length?0:l}async function _e(m,l){m.classList.remove(r.openInstanceClass),l.classList.add(r.openInstanceClass);const v=l.getAttribute("data-src"),L=l.getAttribute("data-alt");x.value=L??void 0,v&&(D.value=v),b.value=!1,await $(300),b.value||(y.value=!0)}function X(m){const l=document.querySelector(`.m-fullscreen-img-instance.${r.openInstanceClass}`);if(l){const v=F(),L=v.indexOf(l),P=m?L+1:L-1,I=v[$e(v,P)];I&&_e(l,I),t(m?"next":"previous")}}async function Be(m){const l=m.target;l.style.width=`${l.clientWidth}px`,l.style.height=`${l.clientHeight}px`,await $(0),z.value=!z.value,l.style.removeProperty("width"),l.style.removeProperty("height"),await $(0);const v=l.clientWidth/m.clientY,P=window.innerWidth/v-window.innerHeight/2;h.scrollTo(l,200,{container:l.parentElement,easing:"linear",offset:z.value?P:0})}o.onMounted(async()=>{await o.nextTick(),document.addEventListener("keydown",d),p.value=!0,y.value=!0,f(),C.value=F().length>1,u.value&&(H.value=r.clickedElementBounds.height<r.clickedElementBounds.width)});function ae(){u.value&&(w.value=!0,u.value.style.removeProperty("margin-left"),u.value.style.removeProperty("margin-right"),u.value.style.opacity="0.5",u.value.style.width=`${r.clickedElementBounds.width}px`,u.value.style.height=`${r.clickedElementBounds.height}px`,u.value.style.top=`${r.clickedElementBounds.top}px`,u.value.style.left=`${r.clickedElementBounds.left}px`)}async function Me(){if(await $(0),u.value){u.value.style.opacity="1",u.value.style.removeProperty("height"),u.value.style.removeProperty("width"),u.value.style.removeProperty("transform");const m=window.innerWidth,l=window.innerHeight,v=r.clickedElementBounds.height,L=r.clickedElementBounds.width;if(H.value){u.value.style.left="0px";const P=v*m/L,I=(l-P)/2;u.value.style.top=`${I<=0?0:I}px`}else{u.value.style.top="0px";const P=L*l/v,I=(m-P)/2;u.value.style.left=`${I<=0?0:I}px`}}}function De(){u.value&&(u.value.style.removeProperty("top"),u.value.style.removeProperty("left"),u.value.style.marginLeft="auto",u.value.style.marginRight="auto",u.value.style.removeProperty("opacity")),w.value=!1}function Ne(){if(u.value){const{left:m,top:l}=u.value.getBoundingClientRect();u.value.style.left=`${m}px`,u.value.style.top=`${l}px`,u.value.style.width=`${u.value.width}px`,u.value.style.height=`${u.value.height}px`,w.value=!0}}function Fe(){var m,l;t("close"),(m=V.value)==null||m.remove(),(l=r.destroy)==null||l.call(r)}return o.onBeforeUnmount(()=>{document.removeEventListener("keydown",d),g()}),(m,l)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:V,role:"button",class:o.normalizeClass(["m-fullscreen-img",{"--animation-active":w.value}]),tabindex:"0",onClick:o.withModifiers(S,["self"]),onKeypress:o.withKeys(o.withModifiers(S,["prevent"]),["esc"])},[o.withDirectives(o.createVNode(o.unref(i),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[o.vShow,y.value]]),A.value&&C.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:l[0]||(l[0]=o.withModifiers(v=>X(!0),["stop"]))},[o.createVNode(o.unref(c),{class:"maz-rotate-90 maz-text-2xl"})])):o.createCommentVNode("v-if",!0),p.value&&A.value&&C.value?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:l[1]||(l[1]=o.withModifiers(v=>X(!1),["stop"]))},[o.createVNode(o.unref(c),{class:"maz-text-2xl"})])):o.createCommentVNode("v-if",!0),o.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:S},[o.createVNode(o.unref(n),{class:"maz-text-2xl"})]),o.createElementVNode("div",mt,[o.createVNode(o.Transition,{name:N.value?void 0:"maz-scale-fade",onBeforeEnter:l[3]||(l[3]=v=>E.value&&ae()),onEnter:l[4]||(l[4]=v=>E.value&&Me()),onAfterEnter:l[5]||(l[5]=v=>E.value&&De()),onBeforeLeave:l[6]||(l[6]=v=>E.value&&Ne()),onLeave:l[7]||(l[7]=v=>E.value&&ae()),onAfterLeave:Fe,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("img",{id:"ZvImgElement",ref_key:"ImgElement",ref:u,src:D.value,alt:x.value,tabindex:"0",class:o.normalizeClass([{zoomable:m.zoom},q.value]),onLoad:Y,onClick:l[2]||(l[2]=v=>m.zoom?Be(v):void 0)},null,42,dt),[[o.vShow,p.value]])]),_:1},8,["name"])])],42,ut))}});const ie=(s,e)=>{const t=s.__vccOpts||s;for(const[i,n]of e)t[i]=n;return t},vt=ie(ht,[["__scopeId","data-v-1b5808d8"]]),ce="m-fullscreen-is-open";class ft{constructor(){a(this,"options");a(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,animated:!0,zoom:!0,scaleAnimation:!1});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(this,"renderPreviewListener")}buildOptions(e,t){const i=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},n=(i==null?void 0:i.src)??this.getImgSrc(e),c=(i==null?void 0:i.alt)??this.getImgAlt(e);return{...this.defaultOptions,...i,src:n,alt:c}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var i;const t=((i=this.options)==null?void 0:i.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 300ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const i=this.getImgAlt(e);i&&e.setAttribute("data-alt",i),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(ce),J(vt,{props:{...this.options,openInstanceClass:ce,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.05)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let R;const oe={mounted(s,e){return R=new ft,R.create(s,e)},updated(s,e){return R.update(s,e)},unmounted(s){return R.remove(s)}},gt={install(s){s.directive("fullscreen-img",oe)}},pt=[{name:"click-outside",directive:ee},{name:"closable",directive:te},{name:"zoom-img",directive:se},{name:"lazy-img",directive:Ee},{name:"fullscreen-img",directive:oe}],yt={install(s){for(const{name:e,directive:t}of pt)s.directive(e,t)}},Le=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",wt={style:"currency",minimumFractionDigits:2,round:!1},bt=(s,e,t)=>{let i=Number(s);return t.round&&(i=Math.floor(i),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(i)},zt=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Ie=(s,e,t)=>{const i={...wt,...t};zt(s,e,i);try{return bt(s,e,i)}catch(n){throw new Error(`[maz-ui](FilterCurrency) ${n}`)}},Et={month:"short",day:"numeric",year:"numeric"},Te=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const i=t??Et;try{const n=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,i).format(n)}catch(n){throw new Error(`[maz-ui](FilterDate) ${n}`)}},Lt={minimumFractionDigits:2},ke=(s,e,t)=>{const i={...Lt,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,i).format(Number(s))}catch(n){throw new Error(`[maz-ui](FilterNumber) ${n}`)}},It={capitalize:Le,currency:Ie,date:Te,number:ke},Tt={install(s){s.provide("filters",It)}};class kt{constructor(e,t){a(this,"callback");a(this,"delay");a(this,"timer");a(this,"startedAt");this.startedAt=Date.now(),this.callback=e,this.delay=t,this.start()}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.startedAt=Date.now(),this.start()}start(){this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const At={class:"m-toast__message-wrapper"},Ct={class:"m-toast__message"},xt={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},Pt=o.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info",validator:s=>["info","success","warning","danger"].includes(s)},message:{type:String,required:!0},link:{type:Object,default:void 0},action:{type:Object,default:void 0},persistent:{type:Boolean,default:!1}},emits:["close","click"],setup(s,{emit:e}){const t=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-a28deca5.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-8e4ea6e2.cjs"))),n=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-c7791a2a.cjs"))),c=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-2f302422.cjs"))),h=o.ref(),r=s,p=e,b=o.computed(()=>r.position.includes("top")?"top":"bottom"),y=o.computed(()=>r.position.includes("left")?"left":r.position.includes("right")?"right":"center"),A=o.computed(()=>y.value!=="center"?y.value==="right"?"m-slide-right":"m-slide-left":b.value==="top"?"m-slide-top":"m-slide-bottom"),C=o.ref(!1),z=o.ref(!1),w=o.ref(),O=o.ref(),D=`m-toast-container --${b.value} --${y.value}`,x=`.${D.replaceAll(" ",".")}`,V=()=>{const d=document.querySelector(x);if(!d&&!d){const f=document.body,g=document.createElement("div");g.className=D,f.append(g)}},u=()=>{const d=document.querySelector(x);return!r.queue&&r.maxToasts===!1?!1:typeof r.maxToasts=="number"&&d?r.maxToasts<=d.childElementCount:d&&d.childElementCount>0},E=()=>{if(u()){O.value=setTimeout(E,250);return}const d=document.querySelector(x);h.value&&d&&d.prepend(h.value),z.value=!0,w.value=r.timeout?new kt(S,r.timeout):void 0};function N(d){p("click",d),r.persistent||S()}async function H(d,f){var g;C.value=!0,await d(),C.value=!1,(g=r.action)!=null&&g.closeToast&&N(f)}const q=d=>{w.value&&!r.noPauseOnHover&&(d?w.value.pause():w.value.resume())},Y=()=>{w.value&&w.value.stop(),O.value&&clearTimeout(O.value)},S=()=>{Y(),z.value=!1,setTimeout(()=>{var f;p("close"),(f=h.value)==null||f.remove();const d=document.querySelector(x);d&&!(d!=null&&d.hasChildNodes())&&d.remove()},300)};return o.onMounted(()=>{V(),E()}),(d,f)=>(o.openBlock(),o.createBlock(o.Transition,{name:A.value,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("button",{ref_key:"Toaster",ref:h,class:o.normalizeClass(["m-toast",[`--${s.type}`,`--${b.value}`,`--${y.value}`]]),role:"alert",onMouseover:f[2]||(f[2]=g=>q(!0)),onMouseleave:f[3]||(f[3]=g=>q(!1)),onClick:f[4]||(f[4]=o.withModifiers(g=>{var F;return s.link&&!((F=s.link)!=null&&F.closeToast)?void 0:N(g)},["stop"]))},[o.createElementVNode("div",At,[o.createElementVNode("p",Ct,o.toDisplayString(s.message),1)]),s.action?(o.openBlock(),o.createBlock(o.unref(c),{key:0,color:s.type,pastel:"",loading:C.value,size:"sm",onClick:f[0]||(f[0]=o.withModifiers(g=>H(s.action.func,g),["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):o.createCommentVNode("v-if",!0),s.link?(o.openBlock(),o.createBlock(o.unref(c),{key:1,color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:o.withCtx(()=>{var g;return[o.createElementVNode("div",xt,[s.link.text?(o.openBlock(),o.createElementBlock("span",St,o.toDisplayString(s.link.text),1)):o.createCommentVNode("v-if",!0),((g=s.link)==null?void 0:g.target)=="_blank"?(o.openBlock(),o.createBlock(o.unref(i),{key:1,class:"maz-text-xl"})):(o.openBlock(),o.createBlock(o.unref(n),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):o.createCommentVNode("v-if",!0),s.persistent?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("button",{key:2,class:"--close",onClick:f[1]||(f[1]=o.withModifiers(g=>N(g),["stop"]))},[o.createVNode(o.unref(t),{class:"--icon maz-text-xl"})]))],34),[[o.vShow,z.value]])]),_:1},8,["name"]))}});const Ot=ie(Pt,[["__scopeId","data-v-27a7b86f"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Ae{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const i={message:e,...t},n={...Ht,...i,...this.globalOptions,...t};J(Ot,{props:n,app:this.app})}getLocalOptions(e,t){return{type:e,...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 $t={install(s,e){exports.toastInstance=new Ae(s,e),s.provide("toast",exports.toastInstance)}},_="",_t=s=>s.filter((e,t,i)=>t===i.indexOf(e)),Bt=s=>(e=_)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Mt=s=>s.length>0,Dt=s=>(e=_)=>_t([...s,e]),Nt=s=>(e=_)=>s.filter(t=>t!==e);class Ce{constructor(){a(this,"_loaders",o.ref([]))}get loaders(){return o.computed(()=>this._loaders.value)}stop(e=_){this._loaders.value=Nt(this._loaders.value)(e)}start(e=_){return this._loaders.value=Dt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return o.computed(()=>Mt(this._loaders.value))}isLoading(e=_){return o.computed(()=>Bt(this._loaders.value)(e)).value}}const xe=new Ce,Ft={install:s=>{s.provide("wait",xe)}},Q={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Se{constructor(e){a(this,"options");this.options={delay:(e==null?void 0:e.delay)??Q.delay,observer:{...Q.observer,...e==null?void 0:e.observer},animation:{...Q.animation,...e==null?void 0:e.animation}}}async handleObserver(){await $(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const i=t.getAttribute("data-maz-aos-anchor");if(i){const n=document.querySelector(i);n?(n.setAttribute("data-maz-aos-children","true"),e.observe(n)):console.warn(`[maz-ui](aos) no element found with selector "${i}"`)}else e.observe(t)}}runAnimations(){if(k())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}handleIntersect(e,t){for(const i of e){const c=i.target.getAttribute("data-maz-aos-children")==="true",h=i.target.getAttribute("data-maz-aos")?[i.target]:[];if(c){const r=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(p=>p.getAttribute("data-maz-aos-anchor")===`#${i.target.id}`?p:void 0);for(const p of r)p&&h.push(p)}for(const r of h){const p=r.getAttribute("data-maz-aos-once"),b=typeof p=="string"?p==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&i.intersectionRatio>this.options.observer.threshold){const y=r.getAttribute("data-maz-aos-duration"),A=r.getAttribute("data-maz-aos-delay");y||(r.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{r.style.transitionDuration="0"},1e3)),A||(r.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{r.style.transitionDelay="0"},1e3)),r.classList.add("maz-aos-animate"),b&&t.unobserve(r)}else r.classList.remove("maz-aos-animate")}}}}exports.instance$1=void 0;const Vt={install:(s,e)=>{exports.instance$1=new Se(e),s.provide("aos",exports.instance$1),k()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},ue={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system"},M=o.ref("system"),T=o.ref("system");function ne({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:i,setLocalStorageValue:n=!0,setSelectedTheme:c=!0}){document.documentElement.classList.remove(e),document.documentElement.classList.add(s),M.value=i,c&&(T.value=i),n&&(localStorage[t]=i)}function re({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:i,setLocalStorageValue:n=!0,setSelectedTheme:c=!0}){document.documentElement.classList.remove(s),document.documentElement.classList.add(e),M.value=i,c&&(T.value=i),n&&(localStorage[t]=i)}function Pe(s){document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),M.value=s.storageThemeValueSystem,T.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),Oe({...s,setSelectedTheme:!1})}function me(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function Oe(s){localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&me()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&me()?ne({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):re({...s,setLocalStorageValue:!1,setSelectedTheme:!1})}function de({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Pe(e):s?ne(e):re(e)}function qt(s){return M.value===s.storageThemeValueDark?re(s):ne(s)}function Ut(s=ue){const e={...ue,...s},t=o.computed(()=>T.value===e.storageThemeValueDark),i=o.computed(()=>T.value===e.storageThemeValueLight),n=o.computed(()=>T.value===e.storageThemeValueSystem);return o.onMounted(()=>{localStorage[e.storageThemeKey]&&(M.value=localStorage[e.storageThemeKey],T.value=localStorage[e.storageThemeKey])}),{autoSetTheme:()=>Oe(e),toggleTheme:()=>qt(e),setSystemTheme:()=>Pe({...e,setLocalStorageValue:!0}),setDarkTheme:()=>de({...e,shouldSetDarkMode:!0}),setLightTheme:()=>de({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:i,hasSystemTheme:n,theme:M,selectedTheme:T}}const jt=({componentName:s,instance:e,providedId:t})=>o.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Rt=()=>K("aos"),Wt=()=>K("wait"),Kt=()=>K("toast"),Yt=({callback:s,options:e})=>new ve(s,e),Xt=({callback:s,options:e})=>new fe(s,e),Zt=o.ref(),B=o.ref([]),Qt=(s,e)=>new Promise((t,i)=>{B.value=[...B.value,{id:s,isActive:!0,resolve:async()=>{await(e==null?void 0:e()),t(!0)},reject:i}]}),He=s=>(B.value=B.value.filter(({id:e})=>e!==s),B.value),he=(s,e,t=!1)=>{var i;e&&((i=e[s])==null||i.call(e,t),e.isActive=!1,setTimeout(()=>{He(e.id)},500))},Gt=()=>({confirmDialogData:Zt,dialogState:B,showDialogAndWaitChoice:Qt,removeDialogFromState:He,rejectDialog:(s,e=!1)=>he("reject",s,e),resolveDialog:(s,e=!1)=>he("resolve",s,e)});exports.AosHandler=Se;exports.IdleTimeout=ve;exports.ScriptLoader=Qe;exports.ToasterHandler=Ae;exports.UserVisibility=fe;exports.WaitHandler=Ce;exports._export_sfc=ie;exports.capitalize=Le;exports.countryCodeToUnicodeFlag=Ge;exports.currency=Ie;exports.date=Te;exports.debounce=Xe;exports.directive=ee;exports.directive$1=te;exports.injectStrict=K;exports.installDirectives=yt;exports.installFilters=Tt;exports.installToaster=$t;exports.instance=xe;exports.isClient=k;exports.mount=J;exports.number=ke;exports.plugin=et;exports.plugin$1=ct;exports.plugin$2=rt;exports.plugin$3=it;exports.plugin$4=Ft;exports.plugin$5=Vt;exports.sleep=$;exports.truthyFilter=Ze;exports.useAos=Rt;exports.useIdleTimeout=Yt;exports.useInstanceUniqId=jt;exports.useMazDialogPromise=Gt;exports.useThemeHandler=Ut;exports.useToast=Kt;exports.useUserVisibility=Xt;exports.useWait=Wt;exports.vFullscreenImg=oe;exports.vFullscreenImgInstall=gt;exports.vLazyImg=Ee;exports.vZoomImg=se;
@@ -1,12 +1,11 @@
1
- import { openBlock, createElementBlock, createElementVNode } from "vue";
2
- const _hoisted_1 = {
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
5
5
  height: "1em",
6
6
  fill: "none",
7
7
  viewBox: "0 0 24 24"
8
- };
9
- const _hoisted_2 = /* @__PURE__ */ createElementVNode(
8
+ }, r = /* @__PURE__ */ o(
10
9
  "path",
11
10
  {
12
11
  stroke: "currentColor",
@@ -18,15 +17,14 @@ const _hoisted_2 = /* @__PURE__ */ createElementVNode(
18
17
  null,
19
18
  -1
20
19
  /* HOISTED */
21
- );
22
- const _hoisted_3 = [
23
- _hoisted_2
20
+ ), l = [
21
+ r
24
22
  ];
25
- function render(_ctx, _cache) {
26
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._hoisted_3]);
23
+ function s(c, i) {
24
+ return e(), t("svg", n, [...l]);
27
25
  }
28
- const link = { render };
26
+ const a = { render: s };
29
27
  export {
30
- link as default,
31
- render
28
+ a as default,
29
+ s as render
32
30
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},null,-1),r=[n];function t(c,i){return e.openBlock(),e.createElementBlock("svg",o,[...r])}const l={render:t};exports.default=l;exports.render=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJub25lIiBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgZmlsbD0iY3VycmVudENvbG9yIgogIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8Zz4KICAgIDxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIgLz4KICAgIDxnPgogICAgICA8cGF0aAogICAgICAgIGQ9Ik04LjksNi4wN0w3LjQ4LDQuNjZMOSwzaDZsMS44MywySDIwYzEuMSwwLDIsMC45LDIsMnYxMmMwLDAuMDUtMC4wMSwwLjEtMC4wMiwwLjE2TDIwLDE3LjE3VjdoLTQuMDVsLTEuODMtMkg5Ljg4IEw4LjksNi4wN3ogTTIwLjQ5LDIzLjMxTDE4LjE3LDIxSDRjLTEuMSwwLTItMC45LTItMlY3YzAtMC41OSwwLjI3LTEuMTIsMC42OC0xLjQ5bC0yLTJMMi4xLDIuMWwxOS44LDE5LjhMMjAuNDksMjMuMzF6IE05LjE5LDEyLjAyQzkuMDgsMTIuMzMsOSwxMi42NSw5LDEzYzAsMS42NiwxLjM0LDMsMywzYzAuMzUsMCwwLjY3LTAuMDgsMC45OC0wLjE5TDkuMTksMTIuMDJ6IE0xNi4xNywxOWwtMS42OC0xLjY4IEMxMy43NiwxNy43NSwxMi45MSwxOCwxMiwxOGMtMi43NiwwLTUtMi4yNC01LTVjMC0wLjkxLDAuMjUtMS43NiwwLjY4LTIuNDlMNC4xNyw3SDR2MTJIMTYuMTd6IE0xNC44MSwxMS45OGwyLjA3LDIuMDcgQzE2Ljk2LDEzLjcxLDE3LDEzLjM2LDE3LDEzYzAtMi43Ni0yLjI0LTUtNS01Yy0wLjM2LDAtMC43MSwwLjA0LTEuMDYsMC4xMmwyLjA3LDIuMDdDMTMuODUsMTAuNDksMTQuNTEsMTEuMTUsMTQuODEsMTEuOTh6IiAvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+";exports.default=M;
@@ -0,0 +1,4 @@
1
+ const M = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJub25lIiBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgZmlsbD0iY3VycmVudENvbG9yIgogIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8Zz4KICAgIDxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIgLz4KICAgIDxnPgogICAgICA8cGF0aAogICAgICAgIGQ9Ik04LjksNi4wN0w3LjQ4LDQuNjZMOSwzaDZsMS44MywySDIwYzEuMSwwLDIsMC45LDIsMnYxMmMwLDAuMDUtMC4wMSwwLjEtMC4wMiwwLjE2TDIwLDE3LjE3VjdoLTQuMDVsLTEuODMtMkg5Ljg4IEw4LjksNi4wN3ogTTIwLjQ5LDIzLjMxTDE4LjE3LDIxSDRjLTEuMSwwLTItMC45LTItMlY3YzAtMC41OSwwLjI3LTEuMTIsMC42OC0xLjQ5bC0yLTJMMi4xLDIuMWwxOS44LDE5LjhMMjAuNDksMjMuMzF6IE05LjE5LDEyLjAyQzkuMDgsMTIuMzMsOSwxMi42NSw5LDEzYzAsMS42NiwxLjM0LDMsMywzYzAuMzUsMCwwLjY3LTAuMDgsMC45OC0wLjE5TDkuMTksMTIuMDJ6IE0xNi4xNywxOWwtMS42OC0xLjY4IEMxMy43NiwxNy43NSwxMi45MSwxOCwxMiwxOGMtMi43NiwwLTUtMi4yNC01LTVjMC0wLjkxLDAuMjUtMS43NiwwLjY4LTIuNDlMNC4xNyw3SDR2MTJIMTYuMTd6IE0xNC44MSwxMS45OGwyLjA3LDIuMDcgQzE2Ljk2LDEzLjcxLDE3LDEzLjM2LDE3LDEzYzAtMi43Ni0yLjI0LTUtNS01Yy0wLjM2LDAtMC43MSwwLjA0LTEuMDYsMC4xMmwyLjA3LDIuMDdDMTMuODUsMTAuNDksMTQuNTEsMTEuMTUsMTQuODEsMTEuOTh6IiAvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+";
2
+ export {
3
+ M as default
4
+ };
@@ -0,0 +1,30 @@
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: "1em",
5
+ height: "1em",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24"
8
+ }, r = /* @__PURE__ */ o(
9
+ "path",
10
+ {
11
+ stroke: "currentColor",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ "stroke-width": "1.5",
15
+ d: "M6 18 18 6M6 6l12 12"
16
+ },
17
+ null,
18
+ -1
19
+ /* HOISTED */
20
+ ), s = [
21
+ r
22
+ ];
23
+ function c(l, i) {
24
+ return e(), t("svg", n, [...s]);
25
+ }
26
+ const h = { render: c };
27
+ export {
28
+ h as default,
29
+ c as render
30
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},r=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M6 18 18 6M6 6l12 12"},null,-1),n=[r];function t(l,s){return e.openBlock(),e.createElementBlock("svg",o,[...n])}const c={render:t};exports.default=c;exports.render=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-794680d2.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$5;exports.installDirectives=e.installDirectives;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$4;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useMazDialogPromise=e.useMazDialogPromise;exports.useThemeHandler=e.useThemeHandler;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$3;exports.vFullscreenImg=e.vFullscreenImg;exports.vFullscreenImgInstall=e.vFullscreenImgInstall;exports.vLazyImg=e.vLazyImg;exports.vLazyImgInstall=e.plugin$1;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$2;exports.waitInstance=e.instance;
package/modules/index.mjs CHANGED
@@ -1,46 +1,46 @@
1
- import { B, I, S, T, U, W, D, q, c, r, u, d, i, C, b, o, x, z, a, m, w, s, y, t, G, K, F, M, E, J, L, H, e, p, l, n, j, k, v, f, g, h, A } from "./chunks/index-b1625fc2.mjs";
1
+ import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as y, o as T, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, J as S, L as f, H as j, e as q, p as w, l as x, n as M, j as O, k as V, v as Z, f as B, g as E, h as G, A as J } from "./chunks/index-6a90ef88.mjs";
2
2
  export {
3
- B as AosHandler,
4
- I as IdleTimeout,
5
- S as ScriptLoader,
6
- T as ToasterHandler,
7
- U as UserVisibility,
8
- W as WaitHandler,
9
- D as aosInstance,
10
- q as capitalize,
3
+ e as AosHandler,
4
+ l as IdleTimeout,
5
+ t as ScriptLoader,
6
+ i as ToasterHandler,
7
+ n as UserVisibility,
8
+ o as WaitHandler,
9
+ r as aosInstance,
10
+ u as capitalize,
11
11
  c as countryCodeToUnicodeFlag,
12
- r as currency,
13
- u as date,
12
+ I as currency,
13
+ m as date,
14
14
  d as debounce,
15
- i as injectStrict,
16
- C as installAos,
17
- b as installDirectives,
18
- o as installFilters,
19
- x as installToaster,
20
- z as installWait,
21
- a as isClient,
22
- m as mount,
23
- w as number,
24
- s as sleep,
25
- y as toastInstance,
26
- t as truthyFilter,
27
- G as useAos,
28
- K as useIdleTimeout,
29
- F as useInstanceUniqId,
30
- M as useMazDialogPromise,
31
- E as useThemeHandler,
32
- J as useToast,
33
- L as useUserVisibility,
34
- H as useWait,
35
- e as vClickOutside,
36
- p as vClickOutsideInstall,
37
- l as vClosable,
38
- n as vClosableInstall,
39
- j as vFullscreenImg,
40
- k as vFullscreenImgInstall,
41
- v as vLazyImg,
42
- f as vLazyImgInstall,
43
- g as vZoomImg,
44
- h as vZoomImgInstall,
45
- A as waitInstance
15
+ v as injectStrict,
16
+ g as installAos,
17
+ y as installDirectives,
18
+ T as installFilters,
19
+ b as installToaster,
20
+ C as installWait,
21
+ F as isClient,
22
+ p as mount,
23
+ z as number,
24
+ H as sleep,
25
+ U as toastInstance,
26
+ A as truthyFilter,
27
+ L as useAos,
28
+ W as useIdleTimeout,
29
+ h as useInstanceUniqId,
30
+ k as useMazDialogPromise,
31
+ D as useThemeHandler,
32
+ S as useToast,
33
+ f as useUserVisibility,
34
+ j as useWait,
35
+ q as vClickOutside,
36
+ w as vClickOutsideInstall,
37
+ x as vClosable,
38
+ M as vClosableInstall,
39
+ O as vFullscreenImg,
40
+ V as vFullscreenImgInstall,
41
+ Z as vLazyImg,
42
+ B as vLazyImgInstall,
43
+ E as vZoomImg,
44
+ G as vZoomImgInstall,
45
+ J as waitInstance
46
46
  };
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.22.4"
7
+ "version": "3.23.1"
8
8
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.22.4",
3
+ "version": "3.23.1",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
- "main": "./modules/index.mjs",
6
+ "main": "./modules/index.cjs",
7
7
  "module": "./modules/index.mjs",
8
8
  "types": "./types/modules/index.d.ts",
9
9
  "bin": {
@@ -13,12 +13,18 @@
13
13
  "exports": {
14
14
  ".": {
15
15
  "types": "./types/modules/index.d.ts",
16
- "default": "./modules/index.mjs"
16
+ "import": "./modules/index.mjs",
17
+ "require": "./modules/index.cjs"
17
18
  },
18
19
  "./components": {
19
20
  "types": "./types/components/index.d.ts",
20
21
  "default": "./components/index.mjs"
21
22
  },
23
+ "./resolvers": {
24
+ "types": "./types/resolvers/index.d.ts",
25
+ "import": "./resolvers/index.mjs",
26
+ "require": "./resolvers/index.cjs"
27
+ },
22
28
  "./components/*": {
23
29
  "types": "./types/components/*.vue.d.ts",
24
30
  "default": "./components/*"
@@ -56,6 +62,7 @@
56
62
  "dropzone": "^5.9.3",
57
63
  "libphonenumber-js": "^1.9.44",
58
64
  "nuxt": "^3.4.0",
65
+ "unplugin-vue-components": "^0.25.0",
59
66
  "vue": "^3.0.0",
60
67
  "vue-router": "^4.0.0",
61
68
  "vue-scrollto": "^2.0.0"
@@ -87,6 +94,9 @@
87
94
  },
88
95
  "defu": {
89
96
  "optional": true
97
+ },
98
+ "unplugin-vue-components": {
99
+ "optional": true
90
100
  }
91
101
  },
92
102
  "dependencies": {
@@ -142,7 +152,7 @@
142
152
  "stylelint-config-standard-scss": "^11.1.0",
143
153
  "stylelint-config-tailwindcss": "^0.0.7",
144
154
  "tailwindcss": "^3.3.5",
145
- "terser": "^5.24.0",
155
+ "unplugin-vue-components": "^0.25.2",
146
156
  "vite": "^4.5.0",
147
157
  "vite-plugin-css-injected-by-js": "^3.3.0",
148
158
  "vite-plugin-lib-inject-css": "^1.3.0",
@@ -0,0 +1 @@
1
+ export * from './unplugin-vue-components-resolver';
@@ -0,0 +1,8 @@
1
+ import { type ComponentResolver } from 'unplugin-vue-components';
2
+ /**
3
+ * Resolver for Maz-UI
4
+ *
5
+ * @author @louismazel
6
+ * @link https://louismazel.github.io/maz-ui-3
7
+ */
8
+ export declare function UnpluginVueComponentsResolver(): ComponentResolver;
@@ -0,0 +1,3 @@
1
+ export declare function camelCase(str: string): string;
2
+ export declare function capitalize(str: string): string;
3
+ export declare function pascalCase(str: string): string;
@@ -1,138 +0,0 @@
1
- import "../assets/MazAvatar.css";
2
- import { defineComponent, defineAsyncComponent, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementVNode, normalizeClass, unref, createCommentVNode, renderSlot, toDisplayString, createElementBlock, normalizeStyle, createVNode } from "vue";
3
- const _hoisted_1 = ["tabindex"];
4
- const _hoisted_2 = { class: "m-avatar__initial" };
5
- const _hoisted_3 = {
6
- key: 0,
7
- class: "m-avatar__caption"
8
- };
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "MazAvatar",
11
- props: {
12
- src: {
13
- type: String,
14
- default: void 0
15
- },
16
- caption: {
17
- type: String,
18
- default: void 0
19
- },
20
- href: { type: String, default: void 0 },
21
- to: { type: Object, default: void 0 },
22
- alt: { type: String, default: "avatar image" },
23
- target: { type: String, default: "_self" },
24
- size: { type: String, default: void 0 },
25
- bordered: { type: Boolean, default: false },
26
- clickable: { type: Boolean, default: false },
27
- square: { type: Boolean, default: false },
28
- noElevation: { type: Boolean, default: false },
29
- showCaption: { type: Boolean, default: false },
30
- imageHeightFull: { type: Boolean, default: false },
31
- noLoader: { type: Boolean, default: false },
32
- buttonColor: {
33
- type: String,
34
- default: "info"
35
- }
36
- },
37
- emits: ["click"],
38
- setup(__props) {
39
- const MazLazyImg = defineAsyncComponent(() => import("./MazLazyImg-e0d8b6d0.mjs"));
40
- const PencilIcon = defineAsyncComponent(() => import("./pencil-2f766dc8.mjs"));
41
- const props = __props;
42
- const componentType = computed(() => props.to ? "RouterLink" : props.href ? "a" : "div");
43
- const isLink = computed(() => !!props.to || !!props.href);
44
- return (_ctx, _cache) => {
45
- return openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps({
46
- style: { fontSize: __props.size },
47
- class: ["m-avatar", [
48
- {
49
- "--has-link": isLink.value
50
- }
51
- ]]
52
- }, _ctx.$attrs, {
53
- href: __props.href,
54
- to: __props.to,
55
- target: isLink.value ? __props.target : void 0
56
- }), {
57
- default: withCtx(() => [
58
- createElementVNode("div", {
59
- class: normalizeClass(["m-avatar__wrapper", {
60
- "--has-shadow": !__props.noElevation,
61
- "--bordered": __props.bordered,
62
- "--clickable": __props.clickable,
63
- "--square": __props.square,
64
- "--has-initial": !__props.src && __props.caption
65
- }]),
66
- tabindex: __props.clickable ? 0 : -1
67
- }, [
68
- __props.src ? (openBlock(), createBlock(unref(MazLazyImg), {
69
- key: 0,
70
- class: "m-avatar__picture maz-max-w-full",
71
- image: __props.src,
72
- alt: __props.alt,
73
- "image-height-full": "",
74
- "no-loader": __props.noLoader,
75
- onClick: _cache[0] || (_cache[0] = ($event) => __props.clickable ? _ctx.$emit("click", $event) : null)
76
- }, null, 8, ["image", "alt", "no-loader"])) : createCommentVNode("v-if", true),
77
- __props.caption && !__props.src ? renderSlot(_ctx.$slots, "round-text", { key: 1 }, () => {
78
- var _a;
79
- return [
80
- createElementVNode(
81
- "span",
82
- _hoisted_2,
83
- toDisplayString((_a = __props.caption) == null ? void 0 : _a.charAt(0)),
84
- 1
85
- /* TEXT */
86
- )
87
- ];
88
- }, true) : createCommentVNode("v-if", true),
89
- __props.clickable ? (openBlock(), createElementBlock(
90
- "button",
91
- {
92
- key: 2,
93
- type: "button",
94
- tabindex: "-1",
95
- class: "m-avatar__button",
96
- style: normalizeStyle({
97
- backgroundColor: __props.src ? `var(--maz-color-${__props.buttonColor}-alpha)` : `var(--maz-color-${__props.buttonColor})`
98
- }),
99
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", $event))
100
- },
101
- [
102
- renderSlot(_ctx.$slots, "icon", {}, () => [
103
- createVNode(unref(PencilIcon), { class: "m-avatar__button__icon" })
104
- ], true)
105
- ],
106
- 4
107
- /* STYLE */
108
- )) : createCommentVNode("v-if", true)
109
- ], 10, _hoisted_1),
110
- renderSlot(_ctx.$slots, "caption", {}, () => [
111
- __props.showCaption && __props.caption ? (openBlock(), createElementBlock(
112
- "p",
113
- _hoisted_3,
114
- toDisplayString(__props.caption),
115
- 1
116
- /* TEXT */
117
- )) : createCommentVNode("v-if", true)
118
- ], true)
119
- ]),
120
- _: 3
121
- /* FORWARDED */
122
- }, 16, ["style", "class", "href", "to", "target"]);
123
- };
124
- }
125
- });
126
- const MazAvatar_vue_vue_type_style_index_0_scoped_6cd62f95_lang = "";
127
- const _export_sfc = (sfc, props) => {
128
- const target = sfc.__vccOpts || sfc;
129
- for (const [key, val] of props) {
130
- target[key] = val;
131
- }
132
- return target;
133
- };
134
- const MazAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6cd62f95"]]);
135
- export {
136
- MazAvatar as M,
137
- _export_sfc as _
138
- };