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
@@ -1,821 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
- import "../assets/MazGallery.css";
8
- import { defineComponent, useCssVars, defineAsyncComponent, onBeforeMount, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, withDirectives, unref, toDisplayString, createCommentVNode, createVNode } from "vue";
9
- import { _ as _export_sfc } from "./MazCard-4331dca0.mjs";
10
- const style = `
11
- .maz-zoom-img {
12
- position: fixed;
13
- top: 0;
14
- bottom: 0;
15
- left: 0;
16
- right: 0;
17
- padding: 1rem;
18
- z-index: 1050;
19
- background-color: hsla(238, 15%, 40%, 0.7);
20
- display: flex;
21
- align-items: center;
22
- justify-content: center;
23
- flex-direction: column;
24
- }
25
-
26
- .maz-zoom-img,
27
- .maz-zoom-img * {
28
- box-sizing: border-box;
29
- }
30
-
31
- .maz-zoom-img .maz-zoom-img__wrapper {
32
- position: relative;
33
- display: flex;
34
- justify-content: center;
35
- align-items: center;
36
- min-width: 0;
37
- min-height: 0;
38
- max-width: 100%;
39
- max-height: 100%;
40
- transition: all 300ms ease-in-out;
41
- opacity: 0;
42
- transform: scale(0.5);
43
- }
44
-
45
- .maz-zoom-img.maz-animate .maz-zoom-img__wrapper {
46
- opacity: 1;
47
- transform: scale(1);
48
- }
49
-
50
- .maz-zoom-img.maz-animate .maz-zoom-img__loader {
51
- position: absolute;
52
- top: 0;
53
- bottom: 0;
54
- left: 0;
55
- right: 0;
56
- display: flex;
57
- align-items: center;
58
- justify-content: center;
59
- background-color: hsla(238, 15%, 40%, 0.7);
60
- border-radius: 1rem;
61
- z-index: 2;
62
- min-width: 60px;
63
- min-height: 60px;
64
- }
65
- .maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {
66
- display: none;
67
- }
68
-
69
- @-webkit-keyframes spin {
70
- 0% { transform: rotate(0deg); }
71
- 100% { transform: rotate(360deg); }
72
- }
73
-
74
- @keyframes spin {
75
- 0% { transform: rotate(0deg); }
76
- 100% { transform: rotate(360deg); }
77
- }
78
-
79
- .maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {
80
- animation: spin .6s linear infinite;
81
- }
82
-
83
- .maz-zoom-img img {
84
- max-width: 100%;
85
- max-height: 100%;
86
- min-width: 0;
87
- border-radius: 1rem;
88
- }
89
-
90
- .maz-zoom-img .maz-zoom-btn {
91
- margin: 0 auto;
92
- border: none;
93
- background-color: hsla(0, 0%, 7%, 0.5);
94
- box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);
95
- height: 2.2rem;
96
- min-height: 2.2rem;
97
- width: 2.2rem;
98
- min-width: 2.2rem;
99
- display: flex;
100
- align-items: center;
101
- justify-content: center;
102
- border-radius: 2.2rem;
103
- cursor: pointer;
104
- flex: 0 0 auto;
105
- outline: none;
106
- }
107
-
108
- .maz-zoom-img .maz-zoom-btn svg {
109
- fill: white;
110
- }
111
-
112
- .maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {
113
- position: absolute;
114
- top: 0.5rem;
115
- right: 0.5rem;
116
- z-index: 1;
117
- }
118
-
119
- .maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {
120
- position: absolute;
121
- left: 0.5rem;
122
- z-index: 1;
123
- }
124
-
125
- .maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {
126
- position: absolute;
127
- right: 0.5rem;
128
- z-index: 1;
129
- }
130
-
131
- .maz-zoom-img .maz-zoom-btn:hover {
132
- background-color: hsl(0, 0%, 0%);
133
- }`;
134
- const svgs = {
135
- 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>',
136
- 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>',
137
- 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>',
138
- 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>'
139
- };
140
- class VueZoomImg {
141
- constructor(binding) {
142
- __publicField(this, "options");
143
- __publicField(this, "loader");
144
- __publicField(this, "wrapper");
145
- __publicField(this, "img");
146
- __publicField(this, "keydownHandler");
147
- __publicField(this, "onImgLoadedCallback");
148
- __publicField(this, "buttonsAdded");
149
- __publicField(this, "defaultOptions", {
150
- scale: true,
151
- blur: true,
152
- disabled: false
153
- });
154
- __publicField(this, "mouseEnterListener");
155
- __publicField(this, "mouseLeaveListener");
156
- __publicField(this, "renderPreviewListener");
157
- if (!binding.value) {
158
- throw new Error(
159
- '[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`'
160
- );
161
- }
162
- if (typeof binding.value === "object" && !binding.value.src) {
163
- throw new Error("[maz-ui](zoom-img) src of image must be provided");
164
- }
165
- this.buttonsAdded = false;
166
- this.options = this.buildOptions(binding);
167
- this.keydownHandler = this.keydownLister.bind(this);
168
- this.loader = this.getLoader();
169
- this.wrapper = document.createElement("div");
170
- this.wrapper.classList.add("maz-zoom-img__wrapper");
171
- this.wrapper.prepend(this.loader);
172
- this.img = document.createElement("img");
173
- this.onImgLoadedCallback = this.onImgLoaded.bind(this);
174
- this.imgEventHandler(true);
175
- }
176
- buildOptions(binding) {
177
- return {
178
- ...this.defaultOptions,
179
- ...typeof binding.value === "object" ? binding.value : { src: binding.value }
180
- };
181
- }
182
- get allInstances() {
183
- return [...document.querySelectorAll(".maz-zoom-img-instance")];
184
- }
185
- create(el) {
186
- if (this.options.disabled)
187
- return;
188
- el.style.cursor = "pointer";
189
- setTimeout(() => el.classList.add("maz-zoom-img-instance"));
190
- el.setAttribute("data-zoom-src", this.options.src);
191
- if (this.options.alt)
192
- el.setAttribute("data-zoom-alt", this.options.alt);
193
- el.style.transition = "all 300ms ease-in-out";
194
- this.mouseEnterListener = () => this.mouseEnter(el);
195
- this.mouseLeaveListener = () => this.mouseLeave(el);
196
- this.renderPreviewListener = () => this.renderPreview(el, this.options);
197
- el.addEventListener("mouseenter", this.mouseEnterListener);
198
- el.addEventListener("mouseleave", this.mouseLeaveListener);
199
- el.addEventListener("click", this.renderPreviewListener);
200
- }
201
- update(binding) {
202
- this.options = this.buildOptions(binding);
203
- }
204
- remove(el) {
205
- this.imgEventHandler(false);
206
- el.removeEventListener("mouseenter", this.mouseEnterListener);
207
- el.removeEventListener("mouseleave", this.mouseLeaveListener);
208
- el.removeEventListener("click", this.renderPreviewListener);
209
- el.classList.remove("maz-zoom-img-instance");
210
- el.removeAttribute("data-zoom-src");
211
- el.removeAttribute("data-zoom-alt");
212
- el.style.cursor = "";
213
- }
214
- renderPreview(el, options) {
215
- el.classList.add(
216
- "maz-is-open"
217
- /* OPEN */
218
- );
219
- this.addStyle(style);
220
- const container = document.createElement("div");
221
- container.classList.add("maz-zoom-img");
222
- container.setAttribute("id", "MazImgPreviewFullsize");
223
- container.addEventListener("click", (e) => {
224
- if (container.isEqualNode(e.target)) {
225
- this.closePreview();
226
- }
227
- });
228
- if (typeof options === "object") {
229
- this.img.setAttribute("src", options.src);
230
- if (options.alt)
231
- this.img.setAttribute("alt", options.alt);
232
- this.img.id = "MazImgElement";
233
- }
234
- this.wrapper.append(this.img);
235
- container.append(this.wrapper);
236
- document.body.append(container);
237
- this.keyboardEventHandler(true);
238
- setTimeout(() => {
239
- if (container)
240
- container.classList.add("maz-animate");
241
- }, 100);
242
- }
243
- onImgLoaded() {
244
- this.wrapper.style.width = `${this.img.width}px`;
245
- this.wrapper.style.minWidth = `200px`;
246
- this.loader.hidden = true;
247
- const closeButton = this.getButton();
248
- const buttons = [];
249
- const hasMultipleInstance = this.allInstances.length > 1;
250
- if (!this.buttonsAdded) {
251
- this.buttonsAdded = true;
252
- if (hasMultipleInstance) {
253
- const previousButton = this.getButton("previous");
254
- const nextButton = this.getButton("next");
255
- buttons.push(previousButton, nextButton);
256
- }
257
- this.wrapper.append(closeButton);
258
- if (hasMultipleInstance) {
259
- this.wrapper.prepend(buttons[0]);
260
- this.wrapper.append(buttons[1]);
261
- }
262
- }
263
- }
264
- getLoader() {
265
- const loader = document.createElement("div");
266
- loader.classList.add("maz-zoom-img__loader");
267
- loader.innerHTML = svgs.spinner;
268
- return loader;
269
- }
270
- mouseLeave(el) {
271
- if (this.options.scale)
272
- el.style.transform = "";
273
- if (this.options.blur)
274
- el.style.filter = "";
275
- el.style.zIndex = "";
276
- }
277
- mouseEnter(el) {
278
- el.style.zIndex = "1";
279
- if (this.options.scale)
280
- el.style.transform = "scale(1.1)";
281
- if (this.options.blur)
282
- el.style.filter = "blur(2px)";
283
- }
284
- keydownLister(e) {
285
- e.preventDefault();
286
- if (e.key === "Escape" || e.key === " ") {
287
- this.closePreview();
288
- }
289
- if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
290
- this.nextPreviousImage(e.key === "ArrowRight");
291
- }
292
- }
293
- getButton(iconName = "close") {
294
- const button = document.createElement("button");
295
- button.innerHTML = svgs[iconName];
296
- button.addEventListener("click", () => {
297
- iconName === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(iconName === "next") : null;
298
- });
299
- button.classList.add("maz-zoom-btn");
300
- button.classList.add(`maz-zoom-btn--${iconName}`);
301
- return button;
302
- }
303
- closePreview() {
304
- const container = document.querySelector("#MazImgPreviewFullsize");
305
- const style2 = document.querySelector("#MazPreviewStyle");
306
- const instance2 = document.querySelector(
307
- ".maz-zoom-img-instance.maz-is-open"
308
- );
309
- if (instance2)
310
- instance2.classList.remove(
311
- "maz-is-open"
312
- /* OPEN */
313
- );
314
- if (container)
315
- container.classList.remove("maz-animate");
316
- this.keyboardEventHandler(false);
317
- setTimeout(() => {
318
- if (container)
319
- container.remove();
320
- if (style2)
321
- style2.remove();
322
- }, 300);
323
- }
324
- getNewInstanceIndex(newInstanceIndex) {
325
- return newInstanceIndex < 0 ? this.allInstances.length - 1 : newInstanceIndex >= this.allInstances.length ? 0 : newInstanceIndex;
326
- }
327
- nextPreviousImage(isNext) {
328
- const selectNextInstance = isNext;
329
- const currentInstance = document.querySelector(
330
- ".maz-zoom-img-instance.maz-is-open"
331
- );
332
- if (currentInstance) {
333
- const currentInstanceIndex = this.allInstances.indexOf(currentInstance);
334
- const newInstanceIndex = selectNextInstance ? currentInstanceIndex + 1 : currentInstanceIndex - 1;
335
- const nextInstance = this.allInstances[this.getNewInstanceIndex(newInstanceIndex)];
336
- if (nextInstance) {
337
- this.useNextInstance(currentInstance, nextInstance);
338
- }
339
- }
340
- }
341
- useNextInstance(currentInstance, nextInstance) {
342
- currentInstance.classList.remove(
343
- "maz-is-open"
344
- /* OPEN */
345
- );
346
- nextInstance.classList.add(
347
- "maz-is-open"
348
- /* OPEN */
349
- );
350
- const src = nextInstance.getAttribute("data-zoom-src");
351
- const alt = nextInstance.getAttribute("data-zoom-alt");
352
- this.wrapper.style.width = "";
353
- this.loader.hidden = false;
354
- if (src)
355
- this.img.setAttribute("src", src);
356
- if (alt)
357
- this.img.setAttribute("alt", alt);
358
- }
359
- addStyle(styleString) {
360
- const style2 = document.createElement("style");
361
- style2.id = "MazPreviewStyle";
362
- style2.textContent = styleString;
363
- document.head.append(style2);
364
- }
365
- keyboardEventHandler(add) {
366
- if (add)
367
- return document.addEventListener("keydown", this.keydownHandler);
368
- document.removeEventListener("keydown", this.keydownHandler);
369
- }
370
- imgEventHandler(add) {
371
- if (add)
372
- return this.img.addEventListener("load", this.onImgLoadedCallback);
373
- this.img.removeEventListener("load", this.onImgLoadedCallback);
374
- }
375
- }
376
- let instance$1;
377
- const vZoomImg = {
378
- created(el, binding) {
379
- instance$1 = new VueZoomImg(binding);
380
- instance$1.create(el);
381
- },
382
- updated(_el, binding) {
383
- instance$1.update(binding);
384
- },
385
- unmounted(el) {
386
- instance$1.remove(el);
387
- }
388
- };
389
- const EMPTY_PHOTO = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
390
- const DEFAULT_OPTIONS = {
391
- baseClass: "m-lazy-img",
392
- loadedClass: "m-lazy-loaded",
393
- loadingClass: "m-lazy-loading",
394
- errorClass: "m-lazy-error",
395
- noPhotoClass: "m-lazy-no-photo",
396
- noPhoto: false,
397
- observerOnce: true,
398
- loadOnce: false,
399
- noUseErrorPhoto: false,
400
- observerOptions: {
401
- threshold: 0.1
402
- }
403
- };
404
- class LazyImg {
405
- constructor(opts = {}) {
406
- __publicField(this, "observers", []);
407
- __publicField(this, "defaultOptions", DEFAULT_OPTIONS);
408
- __publicField(this, "options");
409
- __publicField(this, "onImgLoadedCallback");
410
- __publicField(this, "onImgErrorCallback");
411
- __publicField(this, "hasImgLoaded", false);
412
- this.options = this.buildOptions(opts);
413
- this.onImgLoadedCallback = this.imageIsLoaded.bind(this);
414
- this.onImgErrorCallback = this.imageHasError.bind(this);
415
- }
416
- async loadErrorPhoto() {
417
- const { default: photo } = await import("./no-photography-7f2be516.mjs");
418
- return photo;
419
- }
420
- buildOptions(opts) {
421
- return {
422
- ...this.defaultOptions,
423
- ...opts,
424
- observerOptions: {
425
- ...this.defaultOptions.observerOptions,
426
- ...opts.observerOptions
427
- }
428
- };
429
- }
430
- removeClass(el, className) {
431
- el.classList.remove(className);
432
- }
433
- addClass(el, className) {
434
- el.classList.add(className);
435
- }
436
- removeAllStateClasses(el) {
437
- this.removeClass(el, this.options.loadedClass);
438
- this.removeClass(el, this.options.loadingClass);
439
- this.removeClass(el, this.options.errorClass);
440
- this.removeClass(el, this.options.noPhotoClass);
441
- }
442
- setBaseClass(el) {
443
- this.addClass(el, this.options.baseClass);
444
- }
445
- imageIsLoading(el) {
446
- var _a, _b;
447
- this.addClass(el, this.options.loadingClass);
448
- (_b = (_a = this.options).onLoading) == null ? void 0 : _b.call(_a, el);
449
- }
450
- imageHasNoPhoto(el) {
451
- this.removeClass(el, this.options.loadingClass);
452
- this.addClass(el, this.options.noPhotoClass);
453
- this.setDefaultPhoto(el);
454
- }
455
- imageIsLoaded(el) {
456
- var _a, _b;
457
- this.hasImgLoaded = true;
458
- this.removeClass(el, this.options.loadingClass);
459
- this.addClass(el, this.options.loadedClass);
460
- (_b = (_a = this.options).onLoaded) == null ? void 0 : _b.call(_a, el);
461
- }
462
- imageHasError(el, event) {
463
- var _a, _b;
464
- console.warn(`[maz-ui][MazLazyImg] Error while loading image`, event);
465
- this.removeClass(el, this.options.loadingClass);
466
- this.addClass(el, this.options.errorClass);
467
- (_b = (_a = this.options).onError) == null ? void 0 : _b.call(_a, el);
468
- this.setDefaultPhoto(el);
469
- }
470
- getImageUrl(el, binding) {
471
- const dataSrc = this.getImgElement(el).getAttribute("data-lazy-src");
472
- if (dataSrc)
473
- return dataSrc;
474
- binding.value;
475
- const bindingSrc = typeof binding.value === "object" ? binding.value.src : binding.value;
476
- if (!bindingSrc)
477
- console.warn(`[maz-ui][MazLazyImg] src url is not defined`);
478
- return bindingSrc;
479
- }
480
- async setPictureSourceUrls(el) {
481
- const sourceElements = el.querySelectorAll("source");
482
- if (sourceElements.length > 0) {
483
- for await (const source of sourceElements) {
484
- const srcSet = source.getAttribute("data-lazy-srcset");
485
- if (srcSet) {
486
- source.srcset = srcSet;
487
- } else {
488
- console.warn(
489
- '[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"'
490
- );
491
- }
492
- }
493
- } else {
494
- console.warn(
495
- '[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'
496
- );
497
- this.imageHasError(el);
498
- }
499
- }
500
- hasBgImgMode(binding) {
501
- return binding.arg === "bg-image";
502
- }
503
- isPictureElement(el) {
504
- return el instanceof HTMLPictureElement;
505
- }
506
- getImgElement(el) {
507
- const isPictureElement = this.isPictureElement(el);
508
- return isPictureElement ? el.querySelector("img") : el;
509
- }
510
- async setDefaultPhoto(el) {
511
- if (this.options.noUseErrorPhoto)
512
- return;
513
- const errorPhoto = this.options.errorPhoto ?? await this.loadErrorPhoto();
514
- const sourceElements = el.querySelectorAll("source");
515
- if (sourceElements.length > 0) {
516
- for await (const source of sourceElements) {
517
- source.srcset = errorPhoto;
518
- }
519
- } else {
520
- this.setImgSrc(el, errorPhoto);
521
- }
522
- }
523
- addEventListenerToImg(el) {
524
- const imgElement = this.getImgElement(el);
525
- imgElement.addEventListener("load", () => this.onImgLoadedCallback(el), {
526
- once: true
527
- });
528
- imgElement.addEventListener("error", (err) => this.onImgErrorCallback(el, err), { once: true });
529
- }
530
- async loadImage(el, binding) {
531
- this.imageIsLoading(el);
532
- if (this.isPictureElement(el)) {
533
- this.addEventListenerToImg(el);
534
- await this.setPictureSourceUrls(el);
535
- } else {
536
- const imageUrl = this.getImageUrl(el, binding);
537
- if (!imageUrl)
538
- return this.imageHasError(el);
539
- if (this.hasBgImgMode(binding)) {
540
- el.style.backgroundImage = `url('${imageUrl}')`;
541
- this.imageIsLoaded(el);
542
- } else {
543
- this.addEventListenerToImg(el);
544
- this.setImgSrc(el, imageUrl);
545
- }
546
- }
547
- }
548
- setImgSrc(el, src) {
549
- const imgElement = this.getImgElement(el);
550
- imgElement.src = src;
551
- }
552
- handleIntersectionObserver(el, binding, entries, observer) {
553
- var _a, _b;
554
- this.observers.push(observer);
555
- for (const entry of entries) {
556
- if (entry.isIntersecting) {
557
- (_b = (_a = this.options).onIntersecting) == null ? void 0 : _b.call(_a, entry.target);
558
- if (this.options.observerOnce) {
559
- observer.unobserve(el);
560
- }
561
- if (this.options.loadOnce && this.hasImgLoaded)
562
- return;
563
- this.loadImage(el, binding);
564
- }
565
- }
566
- }
567
- createObserver(el, binding) {
568
- const observerCallback = (entries, intersectionObserver) => {
569
- this.handleIntersectionObserver(el, binding, entries, intersectionObserver);
570
- };
571
- const observerOptions = this.options.observerOptions;
572
- const observer = new IntersectionObserver(observerCallback, observerOptions);
573
- observer.observe(el);
574
- }
575
- async imageHandler(el, binding, type) {
576
- if (type === "update") {
577
- for await (const observer of this.observers)
578
- observer.unobserve(el);
579
- }
580
- if (window.IntersectionObserver) {
581
- this.createObserver(el, binding);
582
- } else {
583
- this.loadImage(el, binding);
584
- }
585
- }
586
- async bindUpdateHandler(el, binding, type) {
587
- if (this.options.noPhoto)
588
- return this.imageHasNoPhoto(el);
589
- await this.imageHandler(el, binding, type);
590
- }
591
- async add(el, binding) {
592
- if (this.hasBgImgMode(binding) && this.isPictureElement(el)) {
593
- throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
594
- }
595
- setTimeout(() => this.setBaseClass(el), 0);
596
- if (!el.getAttribute("src"))
597
- this.setImgSrc(el, EMPTY_PHOTO);
598
- await this.bindUpdateHandler(el, binding, "bind");
599
- }
600
- async update(el, binding) {
601
- if (binding.value !== binding.oldValue) {
602
- this.hasImgLoaded = false;
603
- this.removeAllStateClasses(el);
604
- await this.bindUpdateHandler(el, binding, "update");
605
- }
606
- }
607
- remove(el, binding) {
608
- this.hasImgLoaded = false;
609
- if (this.hasBgImgMode(binding))
610
- el.style.backgroundImage = "";
611
- this.removeAllStateClasses(el);
612
- for (const observer of this.observers)
613
- observer.unobserve(el);
614
- this.observers = [];
615
- }
616
- }
617
- let instance;
618
- const vLazyImg = {
619
- created(el, binding) {
620
- const options = typeof binding.value === "object" ? binding.value : {};
621
- instance = new LazyImg(options);
622
- instance.add(el, binding);
623
- },
624
- updated(el, binding) {
625
- instance.update(el, binding);
626
- },
627
- unmounted(el, binding) {
628
- instance.remove(el, binding);
629
- }
630
- };
631
- const _hoisted_1 = { class: "m-gallery__wrapper maz-flex maz-flex-1" };
632
- const _hoisted_2 = ["alt"];
633
- const _hoisted_3 = {
634
- key: 0,
635
- class: "m-gallery__remaining-layer maz-flex maz-bg-overlay maz-flex-center"
636
- };
637
- const _hoisted_4 = { class: "maz-text-2xl maz-text-white" };
638
- const _sfc_main = /* @__PURE__ */ defineComponent({
639
- __name: "MazGallery",
640
- props: {
641
- /**
642
- * Array of string or object: `['https://via.placeholder.com/500', 'https://via.placeholder.com/600']` or `[{ slug: 'https://via.placeholder.com/500', alt: 'image descripton' }, { slug: 'https://via.placeholder.com/600', alt: 'image descripton' }]`
643
- * */
644
- images: {
645
- type: Array,
646
- default: () => []
647
- },
648
- /** Images count shown (max: 5) */
649
- imagesShownCount: { type: Number, default: 5 },
650
- /** Remove transparent layer with the remain count (ex: +2) */
651
- noRemaining: { type: Boolean, default: false },
652
- /** Height of gallery */
653
- height: { type: [Number, String], default: 150 },
654
- /** Remove default height */
655
- noHeight: { type: Boolean, default: false },
656
- /** Width of gallery */
657
- width: { type: [Number, String], default: "100%" },
658
- /** Remove default width */
659
- noWidth: { type: Boolean, default: false },
660
- /** Disable the border radius of the gallery */
661
- noRadius: { type: Boolean, default: false },
662
- /** Disable full size display when clicking on image */
663
- noZoom: { type: Boolean, default: false },
664
- /** Layer with photography icon when no images is provided */
665
- hasEmptyLayer: { type: Boolean, default: true },
666
- /** Lazy load image - if false, images are directly loaded */
667
- lazy: { type: Boolean, default: true },
668
- /** Disable blur effect on image hover */
669
- blur: { type: Boolean, default: true },
670
- /** Disable scale animation effect on image hover */
671
- scale: { type: Boolean, default: true },
672
- /** Choose color of borders between images - Should be a CSS color or CSS variable - Ex: `#000` or `var(--maz-color-bg-light)` */
673
- separatorColor: { type: String, default: "transparent" }
674
- },
675
- setup(__props) {
676
- useCssVars((_ctx) => ({
677
- "7a2c056e": __props.separatorColor
678
- }));
679
- const NoPhotographyIcon = defineAsyncComponent(() => import("./no-photography-b0d08d6f.mjs"));
680
- const props = __props;
681
- onBeforeMount(() => {
682
- if (props.imagesShownCount > 5)
683
- console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
684
- });
685
- const sizeStyle = computed(() => {
686
- const noWidth = props.noWidth;
687
- const width = props.width;
688
- const noHeight = props.noHeight;
689
- const height = props.height;
690
- return {
691
- ...noWidth ? {} : {
692
- flex: "0 0 " + typeof width === "number" ? `${width}px` : width,
693
- width: typeof width === "number" ? `${width}px` : width
694
- },
695
- ...noHeight ? {} : {
696
- height: typeof height === "number" ? `${height}px` : `${height}`,
697
- minHeight: typeof height === "number" ? `${height}px` : `${height}`
698
- }
699
- };
700
- });
701
- const imagesCount = computed(() => {
702
- return props.imagesShownCount <= 5 ? props.imagesShownCount : 5;
703
- });
704
- const numberImagesRemaining = computed(() => {
705
- return props.images.length - (props.images.length < imagesCount.value ? props.images.length : imagesCount.value);
706
- });
707
- const imagesNormalized = computed(() => {
708
- return props.images.map(
709
- (image) => typeof image === "object" ? { ...image, thumbnail: image.thumbnail ?? image.src } : { src: image, thumbnail: image, alt: void 0 }
710
- );
711
- });
712
- const imagesShown = computed(() => {
713
- return imagesNormalized.value.slice(0, imagesCount.value);
714
- });
715
- const imagesHidden = computed(() => {
716
- return imagesNormalized.value.slice(imagesCount.value, props.images.length);
717
- });
718
- const shouldHaveRemainingLayer = (index) => {
719
- return numberImagesRemaining.value && index + 1 === imagesShown.value.length && !props.noRemaining;
720
- };
721
- return (_ctx, _cache) => {
722
- return __props.images.length > 0 || __props.hasEmptyLayer ? (openBlock(), createElementBlock(
723
- "div",
724
- {
725
- key: 0,
726
- class: normalizeClass(["m-gallery maz-flex", { "maz-rounded": !__props.noRadius }]),
727
- style: normalizeStyle([sizeStyle.value])
728
- },
729
- [
730
- createElementVNode("section", _hoisted_1, [
731
- (openBlock(true), createElementBlock(
732
- Fragment,
733
- null,
734
- renderList(imagesShown.value, (image, i) => {
735
- return openBlock(), createElementBlock(
736
- "figure",
737
- {
738
- key: i,
739
- class: normalizeClass(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${i + 1}`]])
740
- },
741
- [
742
- withDirectives(createElementVNode("img", {
743
- class: "m-gallery__item__image maz-flex-1",
744
- src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
745
- alt: image.alt,
746
- loading: "lazy"
747
- }, null, 8, _hoisted_2), [
748
- [unref(vLazyImg), { src: image.thumbnail, disabled: !__props.lazy }, "bg-image"],
749
- [unref(vZoomImg), {
750
- src: image.src,
751
- alt: image.alt,
752
- disabled: __props.noZoom || shouldHaveRemainingLayer(i),
753
- blur: __props.blur,
754
- scale: __props.scale
755
- }]
756
- ]),
757
- shouldHaveRemainingLayer(i) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
758
- createElementVNode(
759
- "span",
760
- _hoisted_4,
761
- "+" + toDisplayString(numberImagesRemaining.value),
762
- 1
763
- /* TEXT */
764
- )
765
- ])), [
766
- [unref(vZoomImg), {
767
- src: image.src,
768
- alt: image.alt,
769
- disabled: __props.noZoom,
770
- blur: false,
771
- scale: __props.scale
772
- }]
773
- ]) : createCommentVNode("v-if", true)
774
- ],
775
- 2
776
- /* CLASS */
777
- );
778
- }),
779
- 128
780
- /* KEYED_FRAGMENT */
781
- )),
782
- __props.hasEmptyLayer && __props.images.length === 0 ? (openBlock(), createElementBlock(
783
- "div",
784
- {
785
- key: 0,
786
- class: normalizeClass(["empty-layer maz-flex maz-w-full maz-bg-color-light maz-text-normal maz-flex-center", { "maz-rounded-xl": !__props.noRadius }]),
787
- style: normalizeStyle([sizeStyle.value])
788
- },
789
- [
790
- createVNode(unref(NoPhotographyIcon), { class: "maz-h-8 maz-w-8" })
791
- ],
792
- 6
793
- /* CLASS, STYLE */
794
- )) : createCommentVNode("v-if", true)
795
- ]),
796
- (openBlock(true), createElementBlock(
797
- Fragment,
798
- null,
799
- renderList(imagesHidden.value, (image, i) => {
800
- return withDirectives((openBlock(), createElementBlock("div", {
801
- key: i,
802
- class: "m-gallery__hidden"
803
- })), [
804
- [unref(vZoomImg), { src: image.src, disabled: __props.noZoom }]
805
- ]);
806
- }),
807
- 128
808
- /* KEYED_FRAGMENT */
809
- ))
810
- ],
811
- 6
812
- /* CLASS, STYLE */
813
- )) : createCommentVNode("v-if", true);
814
- };
815
- }
816
- });
817
- const MazGallery_vue_vue_type_style_index_0_scoped_4e6fbc0c_lang = "";
818
- const MazGallery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e6fbc0c"]]);
819
- export {
820
- MazGallery as default
821
- };