buefy 3.0.5 → 3.0.7

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 (241) hide show
  1. package/dist/buefy.d.ts +63 -3
  2. package/dist/buefy.esm.js +209 -46
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +209 -44
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/{Autocomplete-DEUs3z7g.js → Autocomplete-b0JUESTO.js} +3 -3
  7. package/dist/cjs/{Button-Cq7yqI8p.js → Button-Dw6VG6n7.js} +2 -2
  8. package/dist/cjs/{Checkbox-GPzAMQqM.js → Checkbox-cujzPKDl.js} +31 -3
  9. package/dist/cjs/{CompatFallthroughMixin-hhK0Gkhr.js → CompatFallthroughMixin-DI5L88ey.js} +1 -1
  10. package/dist/cjs/{Datepicker-DhsJpauU.js → Datepicker-DVB975q3.js} +9 -9
  11. package/dist/cjs/{Dropdown-BAXMPUCZ.js → Dropdown-CFh_lLvm.js} +1 -1
  12. package/dist/cjs/{DropdownItem-BOAAPdrW.js → DropdownItem-D2Ky1QIH.js} +1 -1
  13. package/dist/cjs/{Field-19ZCJFF8.js → Field-Dy73xhhY.js} +1 -1
  14. package/dist/cjs/{FormElementMixin-DavX4iOv.js → FormElementMixin-17PQ7TPR.js} +1 -1
  15. package/dist/cjs/{Icon-lsDKE2wQ.js → Icon-DrFLI3Zg.js} +48 -6
  16. package/dist/cjs/{Image-CocPwU3n.js → Image-D4AGl_2Z.js} +1 -1
  17. package/dist/cjs/{Input-BcloGeZ3.js → Input-z4Vlmbj8.js} +4 -4
  18. package/dist/cjs/{Modal-D1aZUehE.js → Modal-CVyLPawO.js} +1 -1
  19. package/dist/cjs/{NoticeMixin--3RjH43z.js → NoticeMixin-BlwAiMRV.js} +1 -1
  20. package/dist/cjs/{Pagination-D1MVdiLp.js → Pagination-54NHaQvi.js} +2 -2
  21. package/dist/cjs/{Progress-DT9Qc8Id.js → Progress-BlXLJ3zb.js} +1 -1
  22. package/dist/cjs/{Select-DayPKwCY.js → Select-DRXaEjlP.js} +3 -3
  23. package/dist/cjs/{TabbedChildMixin-B3JUUwcf.js → TabbedChildMixin-BFHsIyg6.js} +1 -1
  24. package/dist/cjs/{Tag-BprnwJJ1.js → Tag-BdL2uH8x.js} +1 -1
  25. package/dist/cjs/{Timepicker-DDYkLeNV.js → Timepicker-ujQPxzDF.js} +6 -6
  26. package/dist/cjs/{TimepickerMixin-C9WVvcUL.js → TimepickerMixin-C9OA8jWF.js} +3 -3
  27. package/dist/cjs/{Tooltip-Cgighv0j.js → Tooltip-j_3eF7QD.js} +1 -1
  28. package/dist/cjs/autocomplete.js +7 -6
  29. package/dist/cjs/breadcrumb.js +2 -2
  30. package/dist/cjs/button.js +4 -3
  31. package/dist/cjs/carousel.js +4 -3
  32. package/dist/cjs/checkbox.js +3 -1
  33. package/dist/cjs/clockpicker.js +8 -7
  34. package/dist/cjs/colorpicker.js +12 -11
  35. package/dist/cjs/{config-DR826Ki2.js → config-CXSF5Vky.js} +2 -1
  36. package/dist/cjs/config.js +1 -1
  37. package/dist/cjs/datepicker.js +11 -10
  38. package/dist/cjs/datetimepicker.js +13 -12
  39. package/dist/cjs/dialog.js +5 -4
  40. package/dist/cjs/dropdown.js +3 -3
  41. package/dist/cjs/field.js +2 -2
  42. package/dist/cjs/icon.js +5 -2
  43. package/dist/cjs/iconAliases-DoayKo0q.js +100 -0
  44. package/dist/cjs/image.js +2 -2
  45. package/dist/cjs/{index-BkFyTNWp.js → index-N35FRTpu.js} +8 -8
  46. package/dist/cjs/index.js +27 -24
  47. package/dist/cjs/input.js +6 -5
  48. package/dist/cjs/menu.js +4 -3
  49. package/dist/cjs/message.js +4 -3
  50. package/dist/cjs/modal.js +2 -2
  51. package/dist/cjs/navbar.js +2 -2
  52. package/dist/cjs/notification.js +5 -4
  53. package/dist/cjs/numberinput.js +6 -5
  54. package/dist/cjs/pagination.js +4 -3
  55. package/dist/cjs/progress.js +2 -2
  56. package/dist/cjs/rate.js +3 -2
  57. package/dist/cjs/select.js +6 -5
  58. package/dist/cjs/sidebar.js +1 -1
  59. package/dist/cjs/slider.js +3 -3
  60. package/dist/cjs/snackbar.js +2 -2
  61. package/dist/cjs/steps.js +4 -3
  62. package/dist/cjs/switch.js +1 -1
  63. package/dist/cjs/table.js +9 -8
  64. package/dist/cjs/tabs.js +4 -3
  65. package/dist/cjs/tag.js +4 -3
  66. package/dist/cjs/taginput.js +8 -7
  67. package/dist/cjs/timepicker.js +12 -11
  68. package/dist/cjs/toast.js +2 -2
  69. package/dist/cjs/tooltip.js +2 -2
  70. package/dist/cjs/upload.js +3 -3
  71. package/dist/components/autocomplete/index.js +122 -6
  72. package/dist/components/autocomplete/index.min.js +2 -2
  73. package/dist/components/breadcrumb/index.js +1 -1
  74. package/dist/components/breadcrumb/index.min.js +1 -1
  75. package/dist/components/button/index.js +122 -6
  76. package/dist/components/button/index.min.js +2 -2
  77. package/dist/components/carousel/index.js +122 -6
  78. package/dist/components/carousel/index.min.js +2 -2
  79. package/dist/components/checkbox/index.js +106 -4
  80. package/dist/components/checkbox/index.min.js +2 -2
  81. package/dist/components/clockpicker/index.js +126 -10
  82. package/dist/components/clockpicker/index.min.js +2 -2
  83. package/dist/components/collapse/index.js +1 -1
  84. package/dist/components/collapse/index.min.js +1 -1
  85. package/dist/components/colorpicker/index.js +126 -10
  86. package/dist/components/colorpicker/index.min.js +2 -2
  87. package/dist/components/datepicker/index.js +134 -18
  88. package/dist/components/datepicker/index.min.js +2 -2
  89. package/dist/components/datetimepicker/index.js +126 -10
  90. package/dist/components/datetimepicker/index.min.js +2 -2
  91. package/dist/components/dialog/index.js +122 -6
  92. package/dist/components/dialog/index.min.js +2 -2
  93. package/dist/components/dropdown/index.js +1 -1
  94. package/dist/components/dropdown/index.min.js +1 -1
  95. package/dist/components/field/index.js +1 -1
  96. package/dist/components/field/index.min.js +1 -1
  97. package/dist/components/icon/index.js +124 -6
  98. package/dist/components/icon/index.min.js +2 -2
  99. package/dist/components/image/index.js +1 -1
  100. package/dist/components/image/index.min.js +1 -1
  101. package/dist/components/input/index.js +122 -6
  102. package/dist/components/input/index.min.js +2 -2
  103. package/dist/components/loading/index.js +1 -1
  104. package/dist/components/loading/index.min.js +1 -1
  105. package/dist/components/menu/index.js +124 -8
  106. package/dist/components/menu/index.min.js +2 -2
  107. package/dist/components/message/index.js +122 -6
  108. package/dist/components/message/index.min.js +2 -2
  109. package/dist/components/modal/index.js +1 -1
  110. package/dist/components/modal/index.min.js +1 -1
  111. package/dist/components/navbar/index.js +1 -1
  112. package/dist/components/navbar/index.min.js +1 -1
  113. package/dist/components/notification/index.js +122 -6
  114. package/dist/components/notification/index.min.js +2 -2
  115. package/dist/components/numberinput/index.js +122 -6
  116. package/dist/components/numberinput/index.min.js +2 -2
  117. package/dist/components/pagination/index.js +122 -6
  118. package/dist/components/pagination/index.min.js +2 -2
  119. package/dist/components/progress/index.js +1 -1
  120. package/dist/components/progress/index.min.js +1 -1
  121. package/dist/components/radio/index.js +1 -1
  122. package/dist/components/radio/index.min.js +1 -1
  123. package/dist/components/rate/index.js +122 -6
  124. package/dist/components/rate/index.min.js +2 -2
  125. package/dist/components/select/index.js +122 -6
  126. package/dist/components/select/index.min.js +2 -2
  127. package/dist/components/sidebar/index.js +1 -1
  128. package/dist/components/sidebar/index.min.js +1 -1
  129. package/dist/components/skeleton/index.js +1 -1
  130. package/dist/components/skeleton/index.min.js +1 -1
  131. package/dist/components/slider/index.js +1 -1
  132. package/dist/components/slider/index.min.js +1 -1
  133. package/dist/components/snackbar/index.js +1 -1
  134. package/dist/components/snackbar/index.min.js +1 -1
  135. package/dist/components/steps/index.js +122 -6
  136. package/dist/components/steps/index.min.js +2 -2
  137. package/dist/components/switch/index.js +1 -1
  138. package/dist/components/switch/index.min.js +1 -1
  139. package/dist/components/table/index.js +156 -13
  140. package/dist/components/table/index.min.js +2 -2
  141. package/dist/components/tabs/index.js +122 -6
  142. package/dist/components/tabs/index.min.js +2 -2
  143. package/dist/components/tag/index.js +122 -6
  144. package/dist/components/tag/index.min.js +2 -2
  145. package/dist/components/taginput/index.js +122 -6
  146. package/dist/components/taginput/index.min.js +2 -2
  147. package/dist/components/timepicker/index.js +134 -18
  148. package/dist/components/timepicker/index.min.js +2 -2
  149. package/dist/components/toast/index.js +1 -1
  150. package/dist/components/toast/index.min.js +1 -1
  151. package/dist/components/tooltip/index.js +1 -1
  152. package/dist/components/tooltip/index.min.js +1 -1
  153. package/dist/components/upload/index.js +1 -1
  154. package/dist/components/upload/index.min.js +1 -1
  155. package/dist/css/buefy.css +21 -38
  156. package/dist/css/buefy.css.map +1 -1
  157. package/dist/css/buefy.min.css +1 -1
  158. package/dist/css/versions/buefy-no-reset.css +21 -38
  159. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  160. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  161. package/dist/css/versions/buefy-standalone.css +21 -38
  162. package/dist/css/versions/buefy-standalone.css.map +1 -1
  163. package/dist/css/versions/buefy-standalone.min.css +1 -1
  164. package/dist/esm/{Autocomplete-HsHD-6pc.js → Autocomplete-BsBIH0Mj.js} +3 -3
  165. package/dist/esm/{Button-Bvib75up.js → Button-BTP__-p5.js} +2 -2
  166. package/dist/esm/{Checkbox-u861Rije.js → Checkbox-C6pO3IzG.js} +31 -3
  167. package/dist/esm/{CompatFallthroughMixin-C8LPuwDr.js → CompatFallthroughMixin-LfFRwwlz.js} +1 -1
  168. package/dist/esm/{Datepicker-BZ5ORu0F.js → Datepicker-CrVKrZBF.js} +9 -9
  169. package/dist/esm/{Dropdown-BLadix4L.js → Dropdown-GHauDDcD.js} +1 -1
  170. package/dist/esm/{DropdownItem-Crhb4RQp.js → DropdownItem-By3tSZk2.js} +1 -1
  171. package/dist/esm/{Field-DZCOQuRO.js → Field-CU8ZBgMh.js} +1 -1
  172. package/dist/esm/{FormElementMixin-Dd_wkBN5.js → FormElementMixin-CKI7b4I4.js} +1 -1
  173. package/dist/esm/{Icon-iqPKMem5.js → Icon-pQAdaqZb.js} +49 -7
  174. package/dist/esm/{Image-By9o7ryD.js → Image-COmzg-EK.js} +1 -1
  175. package/dist/esm/{Input-JL4LWKyL.js → Input-CErQ1Jyw.js} +4 -4
  176. package/dist/esm/{Modal-BF2kchNd.js → Modal-C13NJijf.js} +1 -1
  177. package/dist/esm/{NoticeMixin-ByNlva3T.js → NoticeMixin-TQEF1Kx6.js} +1 -1
  178. package/dist/esm/{Pagination-BWFVCGiz.js → Pagination-DvgzxH87.js} +2 -2
  179. package/dist/esm/{Progress-BxT2PFEw.js → Progress-AeKn1Ttq.js} +1 -1
  180. package/dist/esm/{Select-dYTVc9W4.js → Select-CbkuxvSQ.js} +3 -3
  181. package/dist/esm/{TabbedChildMixin-BsuDQmWE.js → TabbedChildMixin-Bdu5A4iY.js} +1 -1
  182. package/dist/esm/{Tag-BFgiw0Ac.js → Tag-Dx_-Tavp.js} +1 -1
  183. package/dist/esm/{Timepicker-CYqyLHE9.js → Timepicker-0ojuPkqd.js} +6 -6
  184. package/dist/esm/{TimepickerMixin-Bikh6_Fg.js → TimepickerMixin-oNahYGFZ.js} +3 -3
  185. package/dist/esm/{Tooltip-Ds5fe3ZP.js → Tooltip-BnzQFdnQ.js} +1 -1
  186. package/dist/esm/autocomplete.js +7 -6
  187. package/dist/esm/breadcrumb.js +2 -2
  188. package/dist/esm/button.js +4 -3
  189. package/dist/esm/carousel.js +4 -3
  190. package/dist/esm/checkbox.js +3 -1
  191. package/dist/esm/clockpicker.js +8 -7
  192. package/dist/esm/colorpicker.js +12 -11
  193. package/dist/esm/{config-CKuo-p6e.js → config-f4Dyy8TN.js} +2 -1
  194. package/dist/esm/config.js +1 -1
  195. package/dist/esm/datepicker.js +11 -10
  196. package/dist/esm/datetimepicker.js +13 -12
  197. package/dist/esm/dialog.js +5 -4
  198. package/dist/esm/dropdown.js +3 -3
  199. package/dist/esm/field.js +2 -2
  200. package/dist/esm/icon.js +3 -2
  201. package/dist/esm/iconAliases-B-CydxNj.js +97 -0
  202. package/dist/esm/image.js +2 -2
  203. package/dist/esm/{index-mnzTDKh9.js → index-BYVep8cv.js} +8 -8
  204. package/dist/esm/index.js +26 -25
  205. package/dist/esm/input.js +6 -5
  206. package/dist/esm/menu.js +4 -3
  207. package/dist/esm/message.js +4 -3
  208. package/dist/esm/modal.js +2 -2
  209. package/dist/esm/navbar.js +2 -2
  210. package/dist/esm/notification.js +5 -4
  211. package/dist/esm/numberinput.js +6 -5
  212. package/dist/esm/pagination.js +4 -3
  213. package/dist/esm/progress.js +2 -2
  214. package/dist/esm/rate.js +3 -2
  215. package/dist/esm/select.js +6 -5
  216. package/dist/esm/sidebar.js +1 -1
  217. package/dist/esm/slider.js +3 -3
  218. package/dist/esm/snackbar.js +2 -2
  219. package/dist/esm/steps.js +4 -3
  220. package/dist/esm/switch.js +1 -1
  221. package/dist/esm/table.js +9 -8
  222. package/dist/esm/tabs.js +4 -3
  223. package/dist/esm/tag.js +4 -3
  224. package/dist/esm/taginput.js +8 -7
  225. package/dist/esm/timepicker.js +12 -11
  226. package/dist/esm/toast.js +2 -2
  227. package/dist/esm/tooltip.js +2 -2
  228. package/dist/esm/upload.js +3 -3
  229. package/package.json +2 -2
  230. package/src/components/checkbox/Checkbox.spec.ts +56 -26
  231. package/src/components/checkbox/Checkbox.vue +25 -1
  232. package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +1 -1
  233. package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +2 -2
  234. package/src/components/icon/Icon.spec.ts +67 -0
  235. package/src/components/icon/Icon.vue +40 -5
  236. package/src/components/icon/__snapshots__/Icon.spec.ts.snap +1 -1
  237. package/src/components/icon/index.ts +10 -0
  238. package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +1 -1
  239. package/src/scss/components/_checkbox.scss +13 -15
  240. package/src/utils/config.ts +104 -2
  241. package/src/utils/iconAliases.ts +86 -0
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -73,6 +73,81 @@
73
73
  return icons;
74
74
  };
75
75
 
76
+ const defaultIconAliases = {
77
+ checkboxOn: {
78
+ type: "svg",
79
+ viewBox: "0 0 1 1",
80
+ path: "M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"
81
+ },
82
+ checkboxIndeterminate: {
83
+ type: "svg",
84
+ viewBox: "0 0 1 1",
85
+ path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
86
+ },
87
+ chevronLeft: {
88
+ type: "svg",
89
+ path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
90
+ },
91
+ chevronRight: {
92
+ type: "svg",
93
+ path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
94
+ },
95
+ chevronDown: {
96
+ type: "svg",
97
+ path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
98
+ },
99
+ chevronUp: {
100
+ type: "svg",
101
+ path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
102
+ },
103
+ menuDown: {
104
+ type: "svg",
105
+ path: "M7,10L12,15L17,10H7Z"
106
+ },
107
+ menuUp: {
108
+ type: "svg",
109
+ path: "M7,14L12,9L17,14H7Z"
110
+ },
111
+ check: {
112
+ type: "svg",
113
+ path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
114
+ },
115
+ alertCircle: {
116
+ type: "svg",
117
+ path: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
118
+ },
119
+ alert: {
120
+ type: "svg",
121
+ path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
122
+ },
123
+ information: {
124
+ type: "svg",
125
+ path: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
126
+ },
127
+ close: {
128
+ type: "svg",
129
+ path: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
130
+ },
131
+ closeCircle: {
132
+ type: "svg",
133
+ path: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
134
+ },
135
+ eye: {
136
+ type: "svg",
137
+ path: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
138
+ },
139
+ eyeOff: {
140
+ type: "svg",
141
+ path: "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"
142
+ }
143
+ };
144
+ function getIconAliases() {
145
+ return defaultIconAliases;
146
+ }
147
+ function resolveAlias(name) {
148
+ return getIconAliases()[name];
149
+ }
150
+
76
151
  var _sfc_main$1 = vue.defineComponent({
77
152
  name: "BIcon",
78
153
  props: {
@@ -81,8 +156,11 @@
81
156
  pack: String,
82
157
  icon: {
83
158
  type: String,
84
- required: true
159
+ required: false,
160
+ default: void 0
85
161
  },
162
+ /** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
163
+ alias: String,
86
164
  size: String,
87
165
  customSize: String,
88
166
  customClass: String,
@@ -90,6 +168,26 @@
90
168
  // This is used internally to show both MDI and FA icon
91
169
  },
92
170
  computed: {
171
+ resolvedAlias() {
172
+ var _a;
173
+ if (!this.alias) return null;
174
+ return (_a = resolveAlias(this.alias)) != null ? _a : null;
175
+ },
176
+ isSvgAlias() {
177
+ var _a;
178
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
179
+ },
180
+ isComponentAlias() {
181
+ var _a;
182
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
183
+ },
184
+ // Typed accessors used in the template
185
+ resolvedAliasSvg() {
186
+ return this.resolvedAlias;
187
+ },
188
+ resolvedAliasComponent() {
189
+ return this.resolvedAlias;
190
+ },
93
191
  iconConfig() {
94
192
  const allIcons = getIcons();
95
193
  return allIcons[this.newPack];
@@ -106,7 +204,8 @@
106
204
  * internal icons are always MDI.
107
205
  */
108
206
  newIcon() {
109
- return `${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`;
207
+ var _a;
208
+ return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
110
209
  },
111
210
  newPack() {
112
211
  return this.pack || config.defaultIconPack;
@@ -173,6 +272,8 @@
173
272
  return target;
174
273
  };
175
274
 
275
+ const _hoisted_1$1 = ["viewBox"];
276
+ const _hoisted_2$1 = ["d"];
176
277
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
177
278
  return vue.openBlock(), vue.createElementBlock(
178
279
  "span",
@@ -180,17 +281,32 @@
180
281
  class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
181
282
  },
182
283
  [
183
- !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
284
+ _ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
285
+ key: 0,
286
+ viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
287
+ xmlns: "http://www.w3.org/2000/svg",
288
+ class: vue.normalizeClass(_ctx.customClass),
289
+ "aria-hidden": "true"
290
+ }, [
291
+ vue.createElementVNode("path", {
292
+ fill: "currentColor",
293
+ d: _ctx.resolvedAliasSvg.path
294
+ }, null, 8, _hoisted_2$1)
295
+ ], 10, _hoisted_1$1)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
296
+ key: 1,
297
+ icon: _ctx.resolvedAliasComponent.icon,
298
+ class: vue.normalizeClass(_ctx.customClass)
299
+ }, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
184
300
  "i",
185
301
  {
186
- key: 0,
302
+ key: 2,
187
303
  class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
188
304
  },
189
305
  null,
190
306
  2
191
307
  /* CLASS */
192
308
  )) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
193
- key: 1,
309
+ key: 3,
194
310
  icon: [_ctx.newPack, _ctx.newIcon],
195
311
  size: _ctx.newCustomSize,
196
312
  class: vue.normalizeClass([_ctx.customClass])
@@ -1,2 +1,2 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
2
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Button={},e.Vue)}(this,(function(e,n){"use strict";let t={defaultIconPack:"mdi",defaultIconComponent:null,defaultButtonRounded:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};const i={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},o=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var s=(e,n)=>{const t=e.__vccOpts||e;for(const[e,i]of n)t[e]=i;return t};var c=s(n.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:i,fa:o(),fas:o(),far:o(),fad:o(),fab:o(),fal:o(),"fa-solid":o(),"fa-regular":o(),"fa-light":o(),"fa-thin":o(),"fa-duotone":o(),"fa-brands":o()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||t.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const n in this.type)if(this.type[n]){e=n.split("-");break}if(e.length<=1)return;const[,...n]=e;return`has-text-${n.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||t.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const n=this.iconConfig;return n&&n.internalIcons&&n.internalIcons[e]?n.internalIcons[e]:e}}}),[["render",function(e,t,i,o,s,c){return n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:n.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const l=["button","submit","reset"];var a=n.defineComponent({name:"BButton",components:{BIcon:c},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>t.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>l.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||t.defaultLinkTags.indexOf(e)>=0}},computed:{computedTag(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}});const r={key:1},u={key:2};var d=s(a,[["render",function(e,t,i,o,s,c){const l=n.resolveComponent("b-icon");return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.computedTag),n.mergeProps({class:"button"},e.$attrs,{type:"string"==typeof e.computedTag&&["button","input"].includes(e.computedTag)?e.nativeType:void 0,class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}]}),{default:n.withCtx((()=>[e.iconLeft?(n.openBlock(),n.createBlock(l,{key:0,pack:e.iconPack,icon:e.iconLeft,size:e.iconSize},null,8,["pack","icon","size"])):n.createCommentVNode("v-if",!0),e.label?(n.openBlock(),n.createElementBlock("span",r,n.toDisplayString(e.label),1)):e.$slots.default?(n.openBlock(),n.createElementBlock("span",u,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("v-if",!0),e.iconRight?(n.openBlock(),n.createBlock(l,{key:3,pack:e.iconPack,icon:e.iconRight,size:e.iconSize},null,8,["pack","icon","size"])):n.createCommentVNode("v-if",!0)])),_:3},16,["type","class"])}]]);const f={install(e){((e,n)=>{const t=n.name;if(null==t)throw new Error("Buefy.registerComponent: missing component name");e.component(t,n)})(e,d)}};e.BButton=d,e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Button={},e.Vue)}(this,(function(e,t){"use strict";let n={defaultIconPack:"mdi",defaultIconComponent:null,defaultButtonRounded:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};const o={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},i=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},s={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function l(e){return s[e]}var a=t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!1,default:void 0},alias:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{resolvedAlias(){var e;return this.alias&&null!=(e=l(this.alias))?e:null},isSvgAlias(){var e;return"svg"===(null==(e=this.resolvedAlias)?void 0:e.type)},isComponentAlias(){var e;return"component"===(null==(e=this.resolvedAlias)?void 0:e.type)},resolvedAliasSvg(){return this.resolvedAlias},resolvedAliasComponent(){return this.resolvedAlias},iconConfig(){return{mdi:o,fa:i(),fas:i(),far:i(),fad:i(),fab:i(),fal:i(),"fa-solid":i(),"fa-regular":i(),"fa-light":i(),"fa-thin":i(),"fa-duotone":i(),"fa-brands":i()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},newPack(){return this.pack||n.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||n.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),c=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const r=["viewBox"],u=["d"];var p=c(a,[["render",function(e,n,o,i,s,l){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.isSvgAlias?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.resolvedAliasSvg.viewBox||"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass(e.customClass),"aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.resolvedAliasSvg.path},null,8,u)],10,r)):e.isComponentAlias?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.resolvedAliasComponent.component),{key:1,icon:e.resolvedAliasComponent.icon,class:t.normalizeClass(e.customClass)},null,8,["icon","class"])):e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:3,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const d=["button","submit","reset"];var f=t.defineComponent({name:"BButton",components:{BIcon:p},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>n.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>d.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||n.defaultLinkTags.indexOf(e)>=0}},computed:{computedTag(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}});const m={key:1},h={key:2};var g=c(f,[["render",function(e,n,o,i,s,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.computedTag),t.mergeProps({class:"button"},e.$attrs,{type:"string"==typeof e.computedTag&&["button","input"].includes(e.computedTag)?e.nativeType:void 0,class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}]}),{default:t.withCtx((()=>[e.iconLeft?(t.openBlock(),t.createBlock(a,{key:0,pack:e.iconPack,icon:e.iconLeft,size:e.iconSize},null,8,["pack","icon","size"])):t.createCommentVNode("v-if",!0),e.label?(t.openBlock(),t.createElementBlock("span",m,t.toDisplayString(e.label),1)):e.$slots.default?(t.openBlock(),t.createElementBlock("span",h,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0),e.iconRight?(t.openBlock(),t.createBlock(a,{key:3,pack:e.iconPack,icon:e.iconRight,size:e.iconSize},null,8,["pack","icon","size"])):t.createCommentVNode("v-if",!0)])),_:3},16,["type","class"])}]]);const v={install(e){((e,t)=>{const n=t.name;if(null==n)throw new Error("Buefy.registerComponent: missing component name");e.component(n,t)})(e,g)}};e.BButton=g,e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -91,6 +91,81 @@
91
91
  return icons;
92
92
  };
93
93
 
94
+ const defaultIconAliases = {
95
+ checkboxOn: {
96
+ type: "svg",
97
+ viewBox: "0 0 1 1",
98
+ path: "M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"
99
+ },
100
+ checkboxIndeterminate: {
101
+ type: "svg",
102
+ viewBox: "0 0 1 1",
103
+ path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
104
+ },
105
+ chevronLeft: {
106
+ type: "svg",
107
+ path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
108
+ },
109
+ chevronRight: {
110
+ type: "svg",
111
+ path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
112
+ },
113
+ chevronDown: {
114
+ type: "svg",
115
+ path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
116
+ },
117
+ chevronUp: {
118
+ type: "svg",
119
+ path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
120
+ },
121
+ menuDown: {
122
+ type: "svg",
123
+ path: "M7,10L12,15L17,10H7Z"
124
+ },
125
+ menuUp: {
126
+ type: "svg",
127
+ path: "M7,14L12,9L17,14H7Z"
128
+ },
129
+ check: {
130
+ type: "svg",
131
+ path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
132
+ },
133
+ alertCircle: {
134
+ type: "svg",
135
+ path: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
136
+ },
137
+ alert: {
138
+ type: "svg",
139
+ path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
140
+ },
141
+ information: {
142
+ type: "svg",
143
+ path: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
144
+ },
145
+ close: {
146
+ type: "svg",
147
+ path: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
148
+ },
149
+ closeCircle: {
150
+ type: "svg",
151
+ path: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
152
+ },
153
+ eye: {
154
+ type: "svg",
155
+ path: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
156
+ },
157
+ eyeOff: {
158
+ type: "svg",
159
+ path: "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"
160
+ }
161
+ };
162
+ function getIconAliases() {
163
+ return defaultIconAliases;
164
+ }
165
+ function resolveAlias(name) {
166
+ return getIconAliases()[name];
167
+ }
168
+
94
169
  var _sfc_main$4 = vue.defineComponent({
95
170
  name: "BIcon",
96
171
  props: {
@@ -99,8 +174,11 @@
99
174
  pack: String,
100
175
  icon: {
101
176
  type: String,
102
- required: true
177
+ required: false,
178
+ default: void 0
103
179
  },
180
+ /** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
181
+ alias: String,
104
182
  size: String,
105
183
  customSize: String,
106
184
  customClass: String,
@@ -108,6 +186,26 @@
108
186
  // This is used internally to show both MDI and FA icon
109
187
  },
110
188
  computed: {
189
+ resolvedAlias() {
190
+ var _a;
191
+ if (!this.alias) return null;
192
+ return (_a = resolveAlias(this.alias)) != null ? _a : null;
193
+ },
194
+ isSvgAlias() {
195
+ var _a;
196
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
197
+ },
198
+ isComponentAlias() {
199
+ var _a;
200
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
201
+ },
202
+ // Typed accessors used in the template
203
+ resolvedAliasSvg() {
204
+ return this.resolvedAlias;
205
+ },
206
+ resolvedAliasComponent() {
207
+ return this.resolvedAlias;
208
+ },
111
209
  iconConfig() {
112
210
  const allIcons = getIcons();
113
211
  return allIcons[this.newPack];
@@ -124,7 +222,8 @@
124
222
  * internal icons are always MDI.
125
223
  */
126
224
  newIcon() {
127
- return `${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`;
225
+ var _a;
226
+ return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
128
227
  },
129
228
  newPack() {
130
229
  return this.pack || config.defaultIconPack;
@@ -191,6 +290,8 @@
191
290
  return target;
192
291
  };
193
292
 
293
+ const _hoisted_1$4 = ["viewBox"];
294
+ const _hoisted_2$2 = ["d"];
194
295
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
195
296
  return vue.openBlock(), vue.createElementBlock(
196
297
  "span",
@@ -198,17 +299,32 @@
198
299
  class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
199
300
  },
200
301
  [
201
- !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
302
+ _ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
303
+ key: 0,
304
+ viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
305
+ xmlns: "http://www.w3.org/2000/svg",
306
+ class: vue.normalizeClass(_ctx.customClass),
307
+ "aria-hidden": "true"
308
+ }, [
309
+ vue.createElementVNode("path", {
310
+ fill: "currentColor",
311
+ d: _ctx.resolvedAliasSvg.path
312
+ }, null, 8, _hoisted_2$2)
313
+ ], 10, _hoisted_1$4)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
314
+ key: 1,
315
+ icon: _ctx.resolvedAliasComponent.icon,
316
+ class: vue.normalizeClass(_ctx.customClass)
317
+ }, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
202
318
  "i",
203
319
  {
204
- key: 0,
320
+ key: 2,
205
321
  class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
206
322
  },
207
323
  null,
208
324
  2
209
325
  /* CLASS */
210
326
  )) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
211
- key: 1,
327
+ key: 3,
212
328
  icon: [_ctx.newPack, _ctx.newIcon],
213
329
  size: _ctx.newCustomSize,
214
330
  class: vue.normalizeClass([_ctx.customClass])
@@ -1,2 +1,2 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Carousel={},e.Vue)}(this,(function(e,t){"use strict";let i="mdi",s=null,r="chevron-left",o="chevron-right",n=3500,a=null,l=!0,c=!0,h=null;const d=Math.sign||function(e){return e<0?-1:e>0?1:0};function u(e,t){return(e&t)===t}function p(e,t){return(e%t+t)%t}function m(e,t,i){return Math.max(t,Math.min(i,e))}const f={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},g=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var v=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};var y=v(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:f,fa:g(),fas:g(),far:g(),fad:g(),fab:g(),fal:g(),"fa-solid":g(),"fa-regular":g(),"fa-light":g(),"fa-thin":g(),"fa-duotone":g(),"fa-brands":g()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||i},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||s}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),w=Object.defineProperty,b=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,S=(e,t,i)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var I=t.defineComponent({name:"BCarousel",components:{BIcon:y},mixins:[((e,t)=>{const i={provide(){return{["b"+e]:this}}};return u(t,1)&&(i.data=function(){return((e,t)=>{for(var i in t||(t={}))C.call(t,i)&&S(e,i,t[i]);if(b)for(var i of b(t))k.call(t,i)&&S(e,i,t[i]);return e})({childItems:[]},u(t,3)?{nextIndex:0}:{})},i.methods={_registerItem(e){u(t,3)&&(e.dynamicIndex=this.nextIndex,++this.nextIndex),this.childItems.push(e)},_unregisterItem(e){this.childItems=this.childItems.filter((t=>t.uniqueValue!==e.uniqueValue))}},u(t,3)&&(i.computed={sortedItems(){return this.childItems.slice().sort(((e,t)=>e.index-t.index))}})),i})("carousel",3)],props:{modelValue:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>r},iconNext:{type:String,default:()=>o},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},emits:{change:e=>!0,click:()=>!0,"update:modelValue":e=>!0},data(){return{transition:"next",activeChild:this.modelValue||0,isPause:!1,dragX:!1,timer:void 0}},computed:{indicatorClasses(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev(){return this.repeat||0!==this.activeChild},hasNext(){return this.repeat||this.activeChild<this.childItems.length-1},activeChildIndex(){const e=this.sortedItems[this.activeChild];return null!=e?e.index:void 0}},watch:{modelValue(e){this.changeActive(e)},sortedItems(e){this.activeChild>=e.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay(e){e?this.startTimer():this.pauseTimer()},repeat(e){e&&this.startTimer()}},methods:{startTimer(){this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((()=>{!this.repeat&&this.activeChild>=this.childItems.length-1?this.pauseTimer():this.next()}),this.interval||n))},pauseTimer(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=void 0)},restartTimer(){this.pauseTimer(),this.startTimer()},checkPause(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive(e,t=0){this.activeChild===e||isNaN(e)||(t=t||e-this.activeChild,e=this.repeat?p(e,this.childItems.length):m(e,0,this.childItems.length-1),this.transition=t>0?"prev":"next",this.activeChild=e,e!==this.modelValue&&this.$emit("update:modelValue",e),this.restartTimer(),this.$emit("change",e))},modeChange(e,t){if(this.indicatorMode===e)return this.changeActive(t)},prev(){this.changeActive(this.activeChild-1,-1)},next(){this.changeActive(this.activeChild+1,1)},dragStart(e){if(!this.hasDrag||!e.target.draggable)return;const t=e.touches;this.dragX=t?e.changedTouches[0].pageX:e.pageX,t?this.pauseTimer():e.preventDefault()},dragEnd(e){if(!1===this.dragX)return;const t=e.touches,i=(t?e.changedTouches[0].pageX:e.pageX)-this.dragX;Math.abs(i)>30?i<0?this.next():this.prev():(e.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t&&this.startTimer(),this.dragX=!1}},mounted(){this.startTimer()},beforeUnmount(){this.pauseTimer()}});const z=["value","max"],x={key:1,class:"carousel-pause"},B=["onMouseover","onClick"];var E=v(I,[["render",function(e,i,s,r,o,n){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel",{"is-overlay":e.overlay}]),onMouseenter:i[4]||(i[4]=(...t)=>e.checkPause&&e.checkPause(...t)),onMouseleave:i[5]||(i[5]=(...t)=>e.startTimer&&e.startTimer(...t))},[e.progress?(t.openBlock(),t.createElementBlock("progress",{key:0,class:t.normalizeClass(["progress",e.progressType]),value:e.activeChild,max:e.childItems.length-1},t.toDisplayString(e.childItems.length-1),11,z)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"carousel-items",onMousedown:i[0]||(i[0]=(...t)=>e.dragStart&&e.dragStart(...t)),onMouseup:i[1]||(i[1]=(...t)=>e.dragEnd&&e.dragEnd(...t)),onTouchstart:i[2]||(i[2]=t.withModifiers(((...t)=>e.dragStart&&e.dragStart(...t)),["stop"])),onTouchend:i[3]||(i[3]=t.withModifiers(((...t)=>e.dragEnd&&e.dragEnd(...t)),["stop"]))},[t.renderSlot(e.$slots,"default"),e.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["carousel-arrow",{"is-hovered":e.arrowHover}])},[t.withDirectives(t.createVNode(a,{class:"has-icons-left",onClick:e.prev,pack:e.iconPack,icon:e.iconPrev,size:e.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasPrev]]),t.withDirectives(t.createVNode(a,{class:"has-icons-right",onClick:e.next,pack:e.iconPack,icon:e.iconNext,size:e.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasNext]])],2)):t.createCommentVNode("v-if",!0)],32),e.autoplay&&e.pauseHover&&e.pauseInfo&&e.isPause?(t.openBlock(),t.createElementBlock("div",x,[t.createElementVNode("span",{class:t.normalizeClass(["tag",e.pauseInfoType])},t.toDisplayString(e.pauseText),3)])):t.createCommentVNode("v-if",!0),e.withCarouselList&&!e.indicator?t.renderSlot(e.$slots,"list",{key:2,active:e.activeChild,switch:e.changeActive}):t.createCommentVNode("v-if",!0),e.indicator?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(["carousel-indicator",e.indicatorClasses])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortedItems,((i,s)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["indicator-item",{"is-active":i.isActive}]),onMouseover:t=>e.modeChange("hover",s),onClick:t=>e.modeChange("click",s),key:i.uniqueValue},[t.renderSlot(e.$slots,"indicators",{i:s},(()=>[t.createElementVNode("span",{class:t.normalizeClass(["indicator-style",e.indicatorStyle])},null,2)]))],42,B)))),128))],2)):t.createCommentVNode("v-if",!0),e.overlay?t.renderSlot(e.$slots,"overlay",{key:4}):t.createCommentVNode("v-if",!0)],34)}]]),P=Object.defineProperty,T=Object.defineProperties,V=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,A=(e,t,i)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,L=(e,t)=>{for(var i in t||(t={}))$.call(t,i)&&A(e,i,t[i]);if(N)for(var i of N(t))O.call(t,i)&&A(e,i,t[i]);return e},W=(e,t)=>T(e,V(t));var M=t.defineComponent({name:"BCarouselItem",mixins:[((e,t)=>{const i={inject:{parent:{from:"b"+e,default:""}},props:{value:{type:String,default:null}},computed:{uniqueValue(){return null!=this.value?this.value:this.$.uid}},created(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!u(t,2))throw new Error("You should wrap "+this.$options.name+" in a "+e)},beforeUnmount(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return u(t,1)&&(i.props=W(L({},i.props),{order:{type:Number,required:!1}}),i.data=()=>({dynamicIndex:void 0}),i.computed=W(L({},i.computed),{index(){return null!=this.order?this.order:this.dynamicIndex}})),i})("carousel",1)],data:()=>({transitionName:null}),computed:{transition(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive(){return this.parent.activeChildIndex===this.index}}});const j={class:"carousel-item"};var F=v(M,[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createBlock(t.Transition,{name:e.transition,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",j,[t.renderSlot(e.$slots,"default")],512),[[t.vShow,e.isActive]])])),_:3},8,["name"])}]]),X=Object.defineProperty,D=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,R=(e,t,i)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;const H=["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"];function U(e){return-1!==H.indexOf(e)}var Q=t.defineComponent({name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:()=>a},lazy:{type:Boolean,default:()=>l},responsive:{type:Boolean,default:()=>c},ratio:{type:String,default:()=>h},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:(e,t,i)=>i.formatSrcset(e,t)},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},emits:{load:(e,t)=>!0,error:(e,t)=>!0},data:()=>({clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,loaded:!1,failed:!1}),computed:{ratioPattern:()=>/([0-9]+)by([0-9]+)/,hasRatio(){return null!=this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses(){const e={image:this.responsive};return this.hasRatio&&U(this.ratio)&&(e[`is-${this.ratio}`]=!0),e},figureStyles(){if(this.hasRatio&&!U(this.ratio)){const e=this.ratioPattern.exec(this.ratio);return{paddingTop:+e[2]/+e[1]*100+"%"}}},imgClasses(){return((e,t)=>{for(var i in t||(t={}))_.call(t,i)&&R(e,i,t[i]);if(D)for(var i of D(t))q.call(t,i)&&R(e,i,t[i]);return e})({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass?{[this.customClass]:!!this.customClass}:{})},srcExt(){return this.getExt(this.src)},isWepb(){return"webp"===this.srcExt},computedSrc(){let e=this.src;return this.failed&&this.srcFallback&&(e=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?e.replace(/\.webp/gi,`${this.webpFallback}`):this.webpFallback:e},computedWidth(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb(){return!!this.placeholder&&"webp"===this.placeholderExt},computedPlaceholder(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,`${this.webpFallback}`):this.placeholder},isPlaceholderDisplayed(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset(){return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,`${this.webpFallback}`):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((e=>`${this.srcsetFormatter(this.computedSrc,e,this)} ${e}w`)).join(","):void 0},computedSizes(){if(this.computedSrcset&&this.computedWidth)return`${this.computedWidth}px`},isCaptionFirst(){return this.$slots.caption&&this.captionFirst},isCaptionLast(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt(e,t=!0){if(e){return(t?e.split("?")[0]:e).split(".").pop()}return""},setWidth(){this.clientWidth=this.$el.clientWidth},formatSrcset(e,t){const i=this.getExt(e,!1);return`${e.split(".").slice(0,-1).join(".")}-${t}.${i}`},onLoad(e){this.loaded=!0,this.emitSrc(e,(t=>this.$emit("load",e,t)))},onError(e){this.emitSrc(e,(t=>this.$emit("error",e,t))),this.failed||(this.failed=!0)},emitSrc(e,t){const i=e.target;t(i.currentSrc||i.src||this.computedSrc)}},created(){if(this.isWepb&&new Promise((e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>e(1===t.width),t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((()=>!1)).then((e=>{this.webpSupportVerified=!0,this.webpSupported=e})),this.lazy){const e="undefined"!=typeof window&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,t="undefined"!=typeof window&&"IntersectionObserver"in window;!e&&t?this.observer=new IntersectionObserver((e=>{const{target:t,isIntersecting:i}=e[0];i&&!this.inViewPort&&(this.inViewPort=!0,this.observer.unobserve(t))})):this.useNativeLazy=!0}},mounted(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!=typeof window&&window.addEventListener("resize",this.setWidth)},beforeUnmount(){this.observer&&this.observer.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",this.setWidth)}});const G={key:0},J=["srcset","src","alt","width","sizes","loading"],K=["src","alt"],Y={key:1};var Z=v(Q,[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createElementBlock("figure",{class:t.normalizeClass(["b-image-wrapper",e.figureClasses]),style:t.normalizeStyle(e.figureStyles)},[e.isCaptionFirst?(t.openBlock(),t.createElementBlock("figcaption",G,[t.renderSlot(e.$slots,"caption")])):t.createCommentVNode("v-if",!0),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.isDisplayed?(t.openBlock(),t.createElementBlock("img",{key:0,srcset:e.computedSrcset,src:e.computedSrc,alt:e.alt,class:t.normalizeClass(e.imgClasses),width:e.computedWidth,sizes:e.computedSizes,loading:e.computedNativeLazy,onLoad:i[0]||(i[0]=(...t)=>e.onLoad&&e.onLoad(...t)),onError:i[1]||(i[1]=(...t)=>e.onError&&e.onError(...t))},null,42,J)):t.createCommentVNode("v-if",!0)])),_:1}),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.isPlaceholderDisplayed?t.renderSlot(e.$slots,"placeholder",{key:0},(()=>[t.createElementVNode("img",{src:e.computedPlaceholder,alt:e.alt,class:t.normalizeClass([e.imgClasses,"placeholder"])},null,10,K)])):t.createCommentVNode("v-if",!0)])),_:3}),e.isCaptionLast?(t.openBlock(),t.createElementBlock("figcaption",Y,[t.renderSlot(e.$slots,"caption")])):t.createCommentVNode("v-if",!0)],6)}]]),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,re=(e,t,i)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,oe=(e,t)=>{for(var i in t||(t={}))ie.call(t,i)&&re(e,i,t[i]);if(te)for(var i of te(t))se.call(t,i)&&re(e,i,t[i]);return e},ne=t.defineComponent({name:"BCarouselList",components:{BIcon:y,BImage:Z},props:{data:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>r},iconNext:{type:String,default:()=>o},breakpoints:{type:Object,default:()=>({})}},emits:{switch:e=>!0,"update:modelValue":e=>!0,"updated:scroll":e=>!0},data(){return{activeItem:this.modelValue,scrollIndex:this.asIndicator?this.scrollValue:this.modelValue,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging(){return!1!==this.dragX},listClass(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle(){return`width: ${this.itemWidth}px;`},translation(){return-m(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total(){return this.data.length-this.settings.itemsToShow},hasPrev(){return this.settings.repeat||this.scrollIndex>0},hasNext(){return this.settings.repeat||this.scrollIndex<this.total},breakpointKeys(){return Object.keys(this.breakpoints).sort(((e,t)=>+t-+e))},settings(){const e=this.breakpointKeys.filter((e=>this.windowWidth>=+e))[0];return e?oe(oe({},this.$props),this.breakpoints[+e]):this.$props},itemWidth(){if(this.windowWidth){this.refresh_;return this.$el.getBoundingClientRect().width/this.settings.itemsToShow}return 0}},watch:{modelValue(e){this.switchTo(this.asIndicator?e-(this.itemsToShow-3)/2:e),this.activeItem!==e&&(this.activeItem=m(e,0,this.data.length-1))},scrollValue(e){this.switchTo(e)}},methods:{resized(){this.windowWidth=window.innerWidth},switchTo(e){e===this.scrollIndex||isNaN(e)||(this.settings.repeat&&(e=p(e,this.total+1)),e=m(e,0,this.total),this.scrollIndex=e,this.asIndicator||this.modelValue===e?this.scrollIndex!==e&&this.$emit("updated:scroll",e):this.$emit("update:modelValue",e))},next(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator(e,t){if(!this.asIndicator)return;const i=t.changedTouches?t.changedTouches[0].clientX:t.clientX;this.hold-Date.now()>2e3||Math.abs(+this.dragX-i)>10||(this.dragX=!1,this.hold=0,t.preventDefault(),this.activeItem=e,this.$emit("switch",e))},dragStart(e){this.dragging||!this.settings.hasDrag||0!==e.button&&"touchstart"!==e.type||(this.hold=Date.now(),this.touch=!!e.touches,this.dragX=this.touch?e.touches[0].clientX:e.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove(e){if(!this.dragging)return;const t=e.touches?(e.changedTouches[0]||e.touches[0]).clientX:e.clientX;this.delta=+this.dragX-t,e.touches||e.preventDefault()},dragEnd(){if(this.dragging||this.hold){if(this.hold){const e=d(this.delta),t=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+e*t)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh(){this.$nextTick((()=>{this.refresh_++}))}},mounted(){if("undefined"!=typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeUnmount(){"undefined"!=typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}});const ae=["onMouseup","onTouchend"];var le=v(ne,[["render",function(e,i,s,r,o,n){const a=t.resolveComponent("b-image"),l=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel carousel-list",{"has-shadow":e.scrollIndex>0}]),onMousedown:i[0]||(i[0]=t.withModifiers(((...t)=>e.dragStart&&e.dragStart(...t)),["prevent"])),onTouchstart:i[1]||(i[1]=(...t)=>e.dragStart&&e.dragStart(...t))},[t.createElementVNode("div",{class:t.normalizeClass(["carousel-slides",e.listClass]),style:t.normalizeStyle("transform:translateX("+e.translation+"px)")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,((i,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel-slide",{"is-active":e.asIndicator?e.activeItem===s:e.scrollIndex===s}]),onMouseup:t=>e.checkAsIndicator(s,t),onTouchend:t=>e.checkAsIndicator(s,t),key:s,style:t.normalizeStyle(e.itemStyle)},[t.renderSlot(e.$slots,"item",t.mergeProps({index:s,active:e.activeItem,scroll:e.scrollIndex},i,{list:i}),(()=>[t.createVNode(a,t.mergeProps({src:i.image},i),null,16,["src"])]))],46,ae)))),128))],6),e.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["carousel-arrow",{"is-hovered":e.settings.arrowHover}])},[t.withDirectives(t.createVNode(l,{class:"has-icons-left",onClick:t.withModifiers(e.prev,["prevent"]),pack:e.settings.iconPack,icon:e.settings.iconPrev,size:e.settings.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasPrev]]),t.withDirectives(t.createVNode(l,{class:"has-icons-right",onClick:t.withModifiers(e.next,["prevent"]),pack:e.settings.iconPack,icon:e.settings.iconNext,size:e.settings.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasNext]])],2)):t.createCommentVNode("v-if",!0)],34)}]]);const ce=(e,t,i)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},he={install(e){ce(e,E),ce(e,F),ce(e,le)}};e.BCarousel=E,e.BCarouselItem=F,e.BCarouselList=le,e.default=he,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Carousel={},e.Vue)}(this,(function(e,t){"use strict";let i="mdi",s=null,r="chevron-left",o="chevron-right",n=3500,a=null,l=!0,c=!0,h=null;const d=Math.sign||function(e){return e<0?-1:e>0?1:0};function u(e,t){return(e&t)===t}function p(e,t){return(e%t+t)%t}function m(e,t,i){return Math.max(t,Math.min(i,e))}const g={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},v=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},f={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function y(e){return f[e]}var w=t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!1,default:void 0},alias:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{resolvedAlias(){var e;return this.alias&&null!=(e=y(this.alias))?e:null},isSvgAlias(){var e;return"svg"===(null==(e=this.resolvedAlias)?void 0:e.type)},isComponentAlias(){var e;return"component"===(null==(e=this.resolvedAlias)?void 0:e.type)},resolvedAliasSvg(){return this.resolvedAlias},resolvedAliasComponent(){return this.resolvedAlias},iconConfig(){return{mdi:g,fa:v(),fas:v(),far:v(),fad:v(),fab:v(),fal:v(),"fa-solid":v(),"fa-regular":v(),"fa-light":v(),"fa-thin":v(),"fa-duotone":v(),"fa-brands":v()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},newPack(){return this.pack||i},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||s}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),b=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};const C=["viewBox"],k=["d"];var S=b(w,[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.isSvgAlias?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.resolvedAliasSvg.viewBox||"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass(e.customClass),"aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.resolvedAliasSvg.path},null,8,k)],10,C)):e.isComponentAlias?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.resolvedAliasComponent.component),{key:1,icon:e.resolvedAliasComponent.icon,class:t.normalizeClass(e.customClass)},null,8,["icon","class"])):e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:3,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),L=Object.defineProperty,I=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,B=(e,t,i)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var A=t.defineComponent({name:"BCarousel",components:{BIcon:S},mixins:[((e,t)=>{const i={provide(){return{["b"+e]:this}}};return u(t,1)&&(i.data=function(){return((e,t)=>{for(var i in t||(t={}))x.call(t,i)&&B(e,i,t[i]);if(I)for(var i of I(t))z.call(t,i)&&B(e,i,t[i]);return e})({childItems:[]},u(t,3)?{nextIndex:0}:{})},i.methods={_registerItem(e){u(t,3)&&(e.dynamicIndex=this.nextIndex,++this.nextIndex),this.childItems.push(e)},_unregisterItem(e){this.childItems=this.childItems.filter((t=>t.uniqueValue!==e.uniqueValue))}},u(t,3)&&(i.computed={sortedItems(){return this.childItems.slice().sort(((e,t)=>e.index-t.index))}})),i})("carousel",3)],props:{modelValue:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>r},iconNext:{type:String,default:()=>o},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},emits:{change:e=>!0,click:()=>!0,"update:modelValue":e=>!0},data(){return{transition:"next",activeChild:this.modelValue||0,isPause:!1,dragX:!1,timer:void 0}},computed:{indicatorClasses(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev(){return this.repeat||0!==this.activeChild},hasNext(){return this.repeat||this.activeChild<this.childItems.length-1},activeChildIndex(){const e=this.sortedItems[this.activeChild];return null!=e?e.index:void 0}},watch:{modelValue(e){this.changeActive(e)},sortedItems(e){this.activeChild>=e.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay(e){e?this.startTimer():this.pauseTimer()},repeat(e){e&&this.startTimer()}},methods:{startTimer(){this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((()=>{!this.repeat&&this.activeChild>=this.childItems.length-1?this.pauseTimer():this.next()}),this.interval||n))},pauseTimer(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=void 0)},restartTimer(){this.pauseTimer(),this.startTimer()},checkPause(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive(e,t=0){this.activeChild===e||isNaN(e)||(t=t||e-this.activeChild,e=this.repeat?p(e,this.childItems.length):m(e,0,this.childItems.length-1),this.transition=t>0?"prev":"next",this.activeChild=e,e!==this.modelValue&&this.$emit("update:modelValue",e),this.restartTimer(),this.$emit("change",e))},modeChange(e,t){if(this.indicatorMode===e)return this.changeActive(t)},prev(){this.changeActive(this.activeChild-1,-1)},next(){this.changeActive(this.activeChild+1,1)},dragStart(e){if(!this.hasDrag||!e.target.draggable)return;const t=e.touches;this.dragX=t?e.changedTouches[0].pageX:e.pageX,t?this.pauseTimer():e.preventDefault()},dragEnd(e){if(!1===this.dragX)return;const t=e.touches,i=(t?e.changedTouches[0].pageX:e.pageX)-this.dragX;Math.abs(i)>30?i<0?this.next():this.prev():(e.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t&&this.startTimer(),this.dragX=!1}},mounted(){this.startTimer()},beforeUnmount(){this.pauseTimer()}});const E=["value","max"],P={key:1,class:"carousel-pause"},V=["onMouseover","onClick"];var T=b(A,[["render",function(e,i,s,r,o,n){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel",{"is-overlay":e.overlay}]),onMouseenter:i[4]||(i[4]=(...t)=>e.checkPause&&e.checkPause(...t)),onMouseleave:i[5]||(i[5]=(...t)=>e.startTimer&&e.startTimer(...t))},[e.progress?(t.openBlock(),t.createElementBlock("progress",{key:0,class:t.normalizeClass(["progress",e.progressType]),value:e.activeChild,max:e.childItems.length-1},t.toDisplayString(e.childItems.length-1),11,E)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"carousel-items",onMousedown:i[0]||(i[0]=(...t)=>e.dragStart&&e.dragStart(...t)),onMouseup:i[1]||(i[1]=(...t)=>e.dragEnd&&e.dragEnd(...t)),onTouchstart:i[2]||(i[2]=t.withModifiers(((...t)=>e.dragStart&&e.dragStart(...t)),["stop"])),onTouchend:i[3]||(i[3]=t.withModifiers(((...t)=>e.dragEnd&&e.dragEnd(...t)),["stop"]))},[t.renderSlot(e.$slots,"default"),e.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["carousel-arrow",{"is-hovered":e.arrowHover}])},[t.withDirectives(t.createVNode(a,{class:"has-icons-left",onClick:e.prev,pack:e.iconPack,icon:e.iconPrev,size:e.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasPrev]]),t.withDirectives(t.createVNode(a,{class:"has-icons-right",onClick:e.next,pack:e.iconPack,icon:e.iconNext,size:e.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasNext]])],2)):t.createCommentVNode("v-if",!0)],32),e.autoplay&&e.pauseHover&&e.pauseInfo&&e.isPause?(t.openBlock(),t.createElementBlock("div",P,[t.createElementVNode("span",{class:t.normalizeClass(["tag",e.pauseInfoType])},t.toDisplayString(e.pauseText),3)])):t.createCommentVNode("v-if",!0),e.withCarouselList&&!e.indicator?t.renderSlot(e.$slots,"list",{key:2,active:e.activeChild,switch:e.changeActive}):t.createCommentVNode("v-if",!0),e.indicator?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(["carousel-indicator",e.indicatorClasses])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortedItems,((i,s)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["indicator-item",{"is-active":i.isActive}]),onMouseover:t=>e.modeChange("hover",s),onClick:t=>e.modeChange("click",s),key:i.uniqueValue},[t.renderSlot(e.$slots,"indicators",{i:s},(()=>[t.createElementVNode("span",{class:t.normalizeClass(["indicator-style",e.indicatorStyle])},null,2)]))],42,V)))),128))],2)):t.createCommentVNode("v-if",!0),e.overlay?t.renderSlot(e.$slots,"overlay",{key:4}):t.createCommentVNode("v-if",!0)],34)}]]),M=Object.defineProperty,N=Object.defineProperties,$=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,D=(e,t,i)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,F=(e,t)=>{for(var i in t||(t={}))W.call(t,i)&&D(e,i,t[i]);if(O)for(var i of O(t))j.call(t,i)&&D(e,i,t[i]);return e},H=(e,t)=>N(e,$(t));var X=t.defineComponent({name:"BCarouselItem",mixins:[((e,t)=>{const i={inject:{parent:{from:"b"+e,default:""}},props:{value:{type:String,default:null}},computed:{uniqueValue(){return null!=this.value?this.value:this.$.uid}},created(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!u(t,2))throw new Error("You should wrap "+this.$options.name+" in a "+e)},beforeUnmount(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return u(t,1)&&(i.props=H(F({},i.props),{order:{type:Number,required:!1}}),i.data=()=>({dynamicIndex:void 0}),i.computed=H(F({},i.computed),{index(){return null!=this.order?this.order:this.dynamicIndex}})),i})("carousel",1)],data:()=>({transitionName:null}),computed:{transition(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive(){return this.parent.activeChildIndex===this.index}}});const _={class:"carousel-item"};var Z=b(X,[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createBlock(t.Transition,{name:e.transition,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",_,[t.renderSlot(e.$slots,"default")],512),[[t.vShow,e.isActive]])])),_:3},8,["name"])}]]),R=Object.defineProperty,q=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,G=(e,t,i)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;const J=["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"];function K(e){return-1!==J.indexOf(e)}var Y=t.defineComponent({name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:()=>a},lazy:{type:Boolean,default:()=>l},responsive:{type:Boolean,default:()=>c},ratio:{type:String,default:()=>h},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:(e,t,i)=>i.formatSrcset(e,t)},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},emits:{load:(e,t)=>!0,error:(e,t)=>!0},data:()=>({clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,loaded:!1,failed:!1}),computed:{ratioPattern:()=>/([0-9]+)by([0-9]+)/,hasRatio(){return null!=this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses(){const e={image:this.responsive};return this.hasRatio&&K(this.ratio)&&(e[`is-${this.ratio}`]=!0),e},figureStyles(){if(this.hasRatio&&!K(this.ratio)){const e=this.ratioPattern.exec(this.ratio);return{paddingTop:+e[2]/+e[1]*100+"%"}}},imgClasses(){return((e,t)=>{for(var i in t||(t={}))U.call(t,i)&&G(e,i,t[i]);if(q)for(var i of q(t))Q.call(t,i)&&G(e,i,t[i]);return e})({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass?{[this.customClass]:!!this.customClass}:{})},srcExt(){return this.getExt(this.src)},isWepb(){return"webp"===this.srcExt},computedSrc(){let e=this.src;return this.failed&&this.srcFallback&&(e=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?e.replace(/\.webp/gi,`${this.webpFallback}`):this.webpFallback:e},computedWidth(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb(){return!!this.placeholder&&"webp"===this.placeholderExt},computedPlaceholder(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,`${this.webpFallback}`):this.placeholder},isPlaceholderDisplayed(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset(){return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,`${this.webpFallback}`):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((e=>`${this.srcsetFormatter(this.computedSrc,e,this)} ${e}w`)).join(","):void 0},computedSizes(){if(this.computedSrcset&&this.computedWidth)return`${this.computedWidth}px`},isCaptionFirst(){return this.$slots.caption&&this.captionFirst},isCaptionLast(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt(e,t=!0){if(e){return(t?e.split("?")[0]:e).split(".").pop()}return""},setWidth(){this.clientWidth=this.$el.clientWidth},formatSrcset(e,t){const i=this.getExt(e,!1);return`${e.split(".").slice(0,-1).join(".")}-${t}.${i}`},onLoad(e){this.loaded=!0,this.emitSrc(e,(t=>this.$emit("load",e,t)))},onError(e){this.emitSrc(e,(t=>this.$emit("error",e,t))),this.failed||(this.failed=!0)},emitSrc(e,t){const i=e.target;t(i.currentSrc||i.src||this.computedSrc)}},created(){if(this.isWepb&&new Promise((e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>e(1===t.width),t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((()=>!1)).then((e=>{this.webpSupportVerified=!0,this.webpSupported=e})),this.lazy){const e="undefined"!=typeof window&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,t="undefined"!=typeof window&&"IntersectionObserver"in window;!e&&t?this.observer=new IntersectionObserver((e=>{const{target:t,isIntersecting:i}=e[0];i&&!this.inViewPort&&(this.inViewPort=!0,this.observer.unobserve(t))})):this.useNativeLazy=!0}},mounted(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!=typeof window&&window.addEventListener("resize",this.setWidth)},beforeUnmount(){this.observer&&this.observer.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",this.setWidth)}});const ee={key:0},te=["srcset","src","alt","width","sizes","loading"],ie=["src","alt"],se={key:1};var re=b(Y,[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createElementBlock("figure",{class:t.normalizeClass(["b-image-wrapper",e.figureClasses]),style:t.normalizeStyle(e.figureStyles)},[e.isCaptionFirst?(t.openBlock(),t.createElementBlock("figcaption",ee,[t.renderSlot(e.$slots,"caption")])):t.createCommentVNode("v-if",!0),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.isDisplayed?(t.openBlock(),t.createElementBlock("img",{key:0,srcset:e.computedSrcset,src:e.computedSrc,alt:e.alt,class:t.normalizeClass(e.imgClasses),width:e.computedWidth,sizes:e.computedSizes,loading:e.computedNativeLazy,onLoad:i[0]||(i[0]=(...t)=>e.onLoad&&e.onLoad(...t)),onError:i[1]||(i[1]=(...t)=>e.onError&&e.onError(...t))},null,42,te)):t.createCommentVNode("v-if",!0)])),_:1}),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.isPlaceholderDisplayed?t.renderSlot(e.$slots,"placeholder",{key:0},(()=>[t.createElementVNode("img",{src:e.computedPlaceholder,alt:e.alt,class:t.normalizeClass([e.imgClasses,"placeholder"])},null,10,ie)])):t.createCommentVNode("v-if",!0)])),_:3}),e.isCaptionLast?(t.openBlock(),t.createElementBlock("figcaption",se,[t.renderSlot(e.$slots,"caption")])):t.createCommentVNode("v-if",!0)],6)}]]),oe=Object.defineProperty,ne=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ce=(e,t,i)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,he=(e,t)=>{for(var i in t||(t={}))ae.call(t,i)&&ce(e,i,t[i]);if(ne)for(var i of ne(t))le.call(t,i)&&ce(e,i,t[i]);return e},de=t.defineComponent({name:"BCarouselList",components:{BIcon:S,BImage:re},props:{data:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>r},iconNext:{type:String,default:()=>o},breakpoints:{type:Object,default:()=>({})}},emits:{switch:e=>!0,"update:modelValue":e=>!0,"updated:scroll":e=>!0},data(){return{activeItem:this.modelValue,scrollIndex:this.asIndicator?this.scrollValue:this.modelValue,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging(){return!1!==this.dragX},listClass(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle(){return`width: ${this.itemWidth}px;`},translation(){return-m(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total(){return this.data.length-this.settings.itemsToShow},hasPrev(){return this.settings.repeat||this.scrollIndex>0},hasNext(){return this.settings.repeat||this.scrollIndex<this.total},breakpointKeys(){return Object.keys(this.breakpoints).sort(((e,t)=>+t-+e))},settings(){const e=this.breakpointKeys.filter((e=>this.windowWidth>=+e))[0];return e?he(he({},this.$props),this.breakpoints[+e]):this.$props},itemWidth(){if(this.windowWidth){this.refresh_;return this.$el.getBoundingClientRect().width/this.settings.itemsToShow}return 0}},watch:{modelValue(e){this.switchTo(this.asIndicator?e-(this.itemsToShow-3)/2:e),this.activeItem!==e&&(this.activeItem=m(e,0,this.data.length-1))},scrollValue(e){this.switchTo(e)}},methods:{resized(){this.windowWidth=window.innerWidth},switchTo(e){e===this.scrollIndex||isNaN(e)||(this.settings.repeat&&(e=p(e,this.total+1)),e=m(e,0,this.total),this.scrollIndex=e,this.asIndicator||this.modelValue===e?this.scrollIndex!==e&&this.$emit("updated:scroll",e):this.$emit("update:modelValue",e))},next(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator(e,t){if(!this.asIndicator)return;const i=t.changedTouches?t.changedTouches[0].clientX:t.clientX;this.hold-Date.now()>2e3||Math.abs(+this.dragX-i)>10||(this.dragX=!1,this.hold=0,t.preventDefault(),this.activeItem=e,this.$emit("switch",e))},dragStart(e){this.dragging||!this.settings.hasDrag||0!==e.button&&"touchstart"!==e.type||(this.hold=Date.now(),this.touch=!!e.touches,this.dragX=this.touch?e.touches[0].clientX:e.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove(e){if(!this.dragging)return;const t=e.touches?(e.changedTouches[0]||e.touches[0]).clientX:e.clientX;this.delta=+this.dragX-t,e.touches||e.preventDefault()},dragEnd(){if(this.dragging||this.hold){if(this.hold){const e=d(this.delta),t=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+e*t)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh(){this.$nextTick((()=>{this.refresh_++}))}},mounted(){if("undefined"!=typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeUnmount(){"undefined"!=typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}});const ue=["onMouseup","onTouchend"];var pe=b(de,[["render",function(e,i,s,r,o,n){const a=t.resolveComponent("b-image"),l=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel carousel-list",{"has-shadow":e.scrollIndex>0}]),onMousedown:i[0]||(i[0]=t.withModifiers(((...t)=>e.dragStart&&e.dragStart(...t)),["prevent"])),onTouchstart:i[1]||(i[1]=(...t)=>e.dragStart&&e.dragStart(...t))},[t.createElementVNode("div",{class:t.normalizeClass(["carousel-slides",e.listClass]),style:t.normalizeStyle("transform:translateX("+e.translation+"px)")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,((i,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel-slide",{"is-active":e.asIndicator?e.activeItem===s:e.scrollIndex===s}]),onMouseup:t=>e.checkAsIndicator(s,t),onTouchend:t=>e.checkAsIndicator(s,t),key:s,style:t.normalizeStyle(e.itemStyle)},[t.renderSlot(e.$slots,"item",t.mergeProps({index:s,active:e.activeItem,scroll:e.scrollIndex},i,{list:i}),(()=>[t.createVNode(a,t.mergeProps({src:i.image},i),null,16,["src"])]))],46,ue)))),128))],6),e.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["carousel-arrow",{"is-hovered":e.settings.arrowHover}])},[t.withDirectives(t.createVNode(l,{class:"has-icons-left",onClick:t.withModifiers(e.prev,["prevent"]),pack:e.settings.iconPack,icon:e.settings.iconPrev,size:e.settings.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasPrev]]),t.withDirectives(t.createVNode(l,{class:"has-icons-right",onClick:t.withModifiers(e.next,["prevent"]),pack:e.settings.iconPack,icon:e.settings.iconNext,size:e.settings.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasNext]])],2)):t.createCommentVNode("v-if",!0)],34)}]]);const me=(e,t,i)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},ge={install(e){me(e,T),me(e,Z),me(e,pe)}};e.BCarousel=T,e.BCarouselItem=Z,e.BCarouselList=pe,e.default=ge,Object.defineProperty(e,"__esModule",{value:!0})}));