ecars-web-lib 1.0.0

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 (363) hide show
  1. package/README.md +50 -0
  2. package/dist/PaginationComponent-BM_GD3t6.cjs +2 -0
  3. package/dist/PaginationComponent-BM_GD3t6.cjs.map +1 -0
  4. package/dist/PaginationComponent-_iwGlFdM.js +65 -0
  5. package/dist/PaginationComponent-_iwGlFdM.js.map +1 -0
  6. package/dist/SelectComponent-CGBwJBns.cjs +2 -0
  7. package/dist/SelectComponent-CGBwJBns.cjs.map +1 -0
  8. package/dist/SelectComponent-DJi5yeVI.js +98 -0
  9. package/dist/SelectComponent-DJi5yeVI.js.map +1 -0
  10. package/dist/_commonjsHelpers-DKOUU3wS.cjs +2 -0
  11. package/dist/_commonjsHelpers-DKOUU3wS.cjs.map +1 -0
  12. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  13. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  14. package/dist/assets/index.css +1 -0
  15. package/dist/chunk-KNED5TY2-9zjBD6gF.js +1659 -0
  16. package/dist/chunk-KNED5TY2-9zjBD6gF.js.map +1 -0
  17. package/dist/chunk-KNED5TY2-BcFuRn3Q.cjs +13 -0
  18. package/dist/chunk-KNED5TY2-BcFuRn3Q.cjs.map +1 -0
  19. package/dist/components/Accordion/AccordionComponent.d.ts +9 -0
  20. package/dist/components/Accordion/AccordionComponent.js +6 -0
  21. package/dist/components/Accordion/AccordionComponent.js.map +1 -0
  22. package/dist/components/Accordion/AccordionComponent.test.d.ts +1 -0
  23. package/dist/components/Accordion/AccordionComponent.test.js +32 -0
  24. package/dist/components/Accordion/AccordionComponent.test.js.map +1 -0
  25. package/dist/components/Accordion/components/AccordionArrow.d.ts +2 -0
  26. package/dist/components/Accordion/components/AccordionArrow.js +7 -0
  27. package/dist/components/Accordion/components/AccordionArrow.js.map +1 -0
  28. package/dist/components/Accordion/components/AccordionBlock.d.ts +6 -0
  29. package/dist/components/Accordion/components/AccordionBlock.js +6 -0
  30. package/dist/components/Accordion/components/AccordionBlock.js.map +1 -0
  31. package/dist/components/Accordion/components/AccordionButton.d.ts +6 -0
  32. package/dist/components/Accordion/components/AccordionButton.js +14 -0
  33. package/dist/components/Accordion/components/AccordionButton.js.map +1 -0
  34. package/dist/components/Accordion/components/AccordionContent.d.ts +6 -0
  35. package/dist/components/Accordion/components/AccordionContent.js +24 -0
  36. package/dist/components/Accordion/components/AccordionContent.js.map +1 -0
  37. package/dist/components/Accordion/components/AccordionLayout.d.ts +7 -0
  38. package/dist/components/Accordion/components/AccordionLayout.js +17 -0
  39. package/dist/components/Accordion/components/AccordionLayout.js.map +1 -0
  40. package/dist/components/Accordion/components/AccordionTitle.d.ts +5 -0
  41. package/dist/components/Accordion/components/AccordionTitle.js +6 -0
  42. package/dist/components/Accordion/components/AccordionTitle.js.map +1 -0
  43. package/dist/components/Accordion/constants.d.ts +1 -0
  44. package/dist/components/Accordion/constants.js +5 -0
  45. package/dist/components/Accordion/constants.js.map +1 -0
  46. package/dist/components/Accordion/index.d.ts +8 -0
  47. package/dist/components/Accordion/index.js +10 -0
  48. package/dist/components/Accordion/index.js.map +1 -0
  49. package/dist/components/Button/Button.d.ts +14 -0
  50. package/dist/components/Button/Button.js +34 -0
  51. package/dist/components/Button/Button.js.map +1 -0
  52. package/dist/components/Button/Button.test.d.ts +1 -0
  53. package/dist/components/Button/Button.test.js +101 -0
  54. package/dist/components/Button/Button.test.js.map +1 -0
  55. package/dist/components/Button/constants.d.ts +15 -0
  56. package/dist/components/Button/constants.js +15 -0
  57. package/dist/components/Button/constants.js.map +1 -0
  58. package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +13 -0
  59. package/dist/components/ButtonWithIcon/ButtonWithIcon.js +37 -0
  60. package/dist/components/ButtonWithIcon/ButtonWithIcon.js.map +1 -0
  61. package/dist/components/ButtonWithIcon/ButtonWithIcon.test.d.ts +1 -0
  62. package/dist/components/ButtonWithIcon/ButtonWithIcon.test.js +55 -0
  63. package/dist/components/ButtonWithIcon/ButtonWithIcon.test.js.map +1 -0
  64. package/dist/components/ButtonWithIcon/constants.d.ts +2 -0
  65. package/dist/components/ButtonWithIcon/constants.js +6 -0
  66. package/dist/components/ButtonWithIcon/constants.js.map +1 -0
  67. package/dist/components/Category/Category.d.ts +8 -0
  68. package/dist/components/Category/Category.js +18 -0
  69. package/dist/components/Category/Category.js.map +1 -0
  70. package/dist/components/Category/Category.test.d.ts +1 -0
  71. package/dist/components/Category/Category.test.js +14 -0
  72. package/dist/components/Category/Category.test.js.map +1 -0
  73. package/dist/components/Category/constants.d.ts +7 -0
  74. package/dist/components/Category/constants.js +10 -0
  75. package/dist/components/Category/constants.js.map +1 -0
  76. package/dist/components/Checkbox/CheckboxComponent.d.ts +3 -0
  77. package/dist/components/Checkbox/CheckboxComponent.js +6 -0
  78. package/dist/components/Checkbox/CheckboxComponent.js.map +1 -0
  79. package/dist/components/Checkbox/CheckboxComponent.test.d.ts +1 -0
  80. package/dist/components/Checkbox/CheckboxComponent.test.js +31 -0
  81. package/dist/components/Checkbox/CheckboxComponent.test.js.map +1 -0
  82. package/dist/components/Checkbox/components/CheckboxBlock.d.ts +7 -0
  83. package/dist/components/Checkbox/components/CheckboxBlock.js +19 -0
  84. package/dist/components/Checkbox/components/CheckboxBlock.js.map +1 -0
  85. package/dist/components/Checkbox/components/CheckboxIndicator.d.ts +2 -0
  86. package/dist/components/Checkbox/components/CheckboxIndicator.js +7 -0
  87. package/dist/components/Checkbox/components/CheckboxIndicator.js.map +1 -0
  88. package/dist/components/Checkbox/components/CheckboxInput.d.ts +3 -0
  89. package/dist/components/Checkbox/components/CheckboxInput.js +34 -0
  90. package/dist/components/Checkbox/components/CheckboxInput.js.map +1 -0
  91. package/dist/components/Checkbox/constants.d.ts +11 -0
  92. package/dist/components/Checkbox/constants.js +6 -0
  93. package/dist/components/Checkbox/constants.js.map +1 -0
  94. package/dist/components/Checkbox/index.d.ts +5 -0
  95. package/dist/components/Checkbox/index.js +8 -0
  96. package/dist/components/Checkbox/index.js.map +1 -0
  97. package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
  98. package/dist/components/Dropdown/Dropdown.test.js +57 -0
  99. package/dist/components/Dropdown/Dropdown.test.js.map +1 -0
  100. package/dist/components/Dropdown/DropdownComponent.d.ts +9 -0
  101. package/dist/components/Dropdown/DropdownComponent.js +9 -0
  102. package/dist/components/Dropdown/DropdownComponent.js.map +1 -0
  103. package/dist/components/Dropdown/components/DropdownBlock.d.ts +5 -0
  104. package/dist/components/Dropdown/components/DropdownBlock.js +6 -0
  105. package/dist/components/Dropdown/components/DropdownBlock.js.map +1 -0
  106. package/dist/components/Dropdown/components/DropdownCategory.d.ts +7 -0
  107. package/dist/components/Dropdown/components/DropdownCategory.js +18 -0
  108. package/dist/components/Dropdown/components/DropdownCategory.js.map +1 -0
  109. package/dist/components/Dropdown/components/DropdownList.d.ts +3 -0
  110. package/dist/components/Dropdown/components/DropdownList.js +6 -0
  111. package/dist/components/Dropdown/components/DropdownList.js.map +1 -0
  112. package/dist/components/Dropdown/components/DropdownOption.d.ts +8 -0
  113. package/dist/components/Dropdown/components/DropdownOption.js +22 -0
  114. package/dist/components/Dropdown/components/DropdownOption.js.map +1 -0
  115. package/dist/components/Dropdown/constants.d.ts +11 -0
  116. package/dist/components/Dropdown/constants.js +5 -0
  117. package/dist/components/Dropdown/constants.js.map +1 -0
  118. package/dist/components/Dropdown/index.d.ts +6 -0
  119. package/dist/components/Dropdown/index.js +8 -0
  120. package/dist/components/Dropdown/index.js.map +1 -0
  121. package/dist/components/FavButton/FavButton.d.ts +11 -0
  122. package/dist/components/FavButton/FavButton.js +30 -0
  123. package/dist/components/FavButton/FavButton.js.map +1 -0
  124. package/dist/components/FavButton/FavButton.test.d.ts +1 -0
  125. package/dist/components/FavButton/FavButton.test.js +81 -0
  126. package/dist/components/FavButton/FavButton.test.js.map +1 -0
  127. package/dist/components/FavButton/constants.d.ts +6 -0
  128. package/dist/components/FavButton/constants.js +9 -0
  129. package/dist/components/FavButton/constants.js.map +1 -0
  130. package/dist/components/Field/FieldComponent.d.ts +9 -0
  131. package/dist/components/Field/FieldComponent.js +9 -0
  132. package/dist/components/Field/FieldComponent.js.map +1 -0
  133. package/dist/components/Field/FieldComponent.test.d.ts +1 -0
  134. package/dist/components/Field/FieldComponent.test.js +31 -0
  135. package/dist/components/Field/FieldComponent.test.js.map +1 -0
  136. package/dist/components/Field/components/FieldError.d.ts +5 -0
  137. package/dist/components/Field/components/FieldError.js +6 -0
  138. package/dist/components/Field/components/FieldError.js.map +1 -0
  139. package/dist/components/Field/components/FieldLabel.d.ts +6 -0
  140. package/dist/components/Field/components/FieldLabel.js +15 -0
  141. package/dist/components/Field/components/FieldLabel.js.map +1 -0
  142. package/dist/components/Field/constants.d.ts +2 -0
  143. package/dist/components/Field/constants.js +6 -0
  144. package/dist/components/Field/constants.js.map +1 -0
  145. package/dist/components/Field/index.d.ts +4 -0
  146. package/dist/components/Field/index.js +7 -0
  147. package/dist/components/Field/index.js.map +1 -0
  148. package/dist/components/FilterAccordion/FilterAccordionComponent.d.ts +9 -0
  149. package/dist/components/FilterAccordion/FilterAccordionComponent.js +7 -0
  150. package/dist/components/FilterAccordion/FilterAccordionComponent.js.map +1 -0
  151. package/dist/components/FilterAccordion/FilterAccordionComponent.test.d.ts +1 -0
  152. package/dist/components/FilterAccordion/FilterAccordionComponent.test.js +34 -0
  153. package/dist/components/FilterAccordion/FilterAccordionComponent.test.js.map +1 -0
  154. package/dist/components/FilterAccordion/components/FilterAccordionArrow.d.ts +5 -0
  155. package/dist/components/FilterAccordion/components/FilterAccordionArrow.js +14 -0
  156. package/dist/components/FilterAccordion/components/FilterAccordionArrow.js.map +1 -0
  157. package/dist/components/FilterAccordion/components/FilterAccordionBlock.d.ts +5 -0
  158. package/dist/components/FilterAccordion/components/FilterAccordionBlock.js +6 -0
  159. package/dist/components/FilterAccordion/components/FilterAccordionBlock.js.map +1 -0
  160. package/dist/components/FilterAccordion/components/FilterAccordionContent.d.ts +6 -0
  161. package/dist/components/FilterAccordion/components/FilterAccordionContent.js +18 -0
  162. package/dist/components/FilterAccordion/components/FilterAccordionContent.js.map +1 -0
  163. package/dist/components/FilterAccordion/components/FilterAccordionLayout.d.ts +7 -0
  164. package/dist/components/FilterAccordion/components/FilterAccordionLayout.js +17 -0
  165. package/dist/components/FilterAccordion/components/FilterAccordionLayout.js.map +1 -0
  166. package/dist/components/FilterAccordion/components/FilterAccordionReset.d.ts +3 -0
  167. package/dist/components/FilterAccordion/components/FilterAccordionReset.js +16 -0
  168. package/dist/components/FilterAccordion/components/FilterAccordionReset.js.map +1 -0
  169. package/dist/components/FilterAccordion/constants.d.ts +3 -0
  170. package/dist/components/FilterAccordion/constants.js +9 -0
  171. package/dist/components/FilterAccordion/constants.js.map +1 -0
  172. package/dist/components/FilterAccordion/index.d.ts +7 -0
  173. package/dist/components/FilterAccordion/index.js +10 -0
  174. package/dist/components/FilterAccordion/index.js.map +1 -0
  175. package/dist/components/FilterButton/FilterButton.d.ts +8 -0
  176. package/dist/components/FilterButton/FilterButton.js +20 -0
  177. package/dist/components/FilterButton/FilterButton.js.map +1 -0
  178. package/dist/components/FilterButton/FilterButton.test.d.ts +1 -0
  179. package/dist/components/FilterButton/FilterButton.test.js +18 -0
  180. package/dist/components/FilterButton/FilterButton.test.js.map +1 -0
  181. package/dist/components/Gallery/Gallery.d.ts +8 -0
  182. package/dist/components/Gallery/Gallery.js +1094 -0
  183. package/dist/components/Gallery/Gallery.js.map +1 -0
  184. package/dist/components/Gallery/Gallery.test.d.ts +0 -0
  185. package/dist/components/Gallery/Gallery.test.js +25 -0
  186. package/dist/components/Gallery/Gallery.test.js.map +1 -0
  187. package/dist/components/Gallery/constants.d.ts +1 -0
  188. package/dist/components/Gallery/constants.js +5 -0
  189. package/dist/components/Gallery/constants.js.map +1 -0
  190. package/dist/components/Input/Input.d.ts +15 -0
  191. package/dist/components/Input/Input.js +43 -0
  192. package/dist/components/Input/Input.js.map +1 -0
  193. package/dist/components/Input/Input.test.d.ts +1 -0
  194. package/dist/components/Input/Input.test.js +46 -0
  195. package/dist/components/Input/Input.test.js.map +1 -0
  196. package/dist/components/Input/constants.d.ts +1 -0
  197. package/dist/components/Input/constants.js +5 -0
  198. package/dist/components/Input/constants.js.map +1 -0
  199. package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +9 -0
  200. package/dist/components/LinkWithIcon/LinkWithIcon.js +19 -0
  201. package/dist/components/LinkWithIcon/LinkWithIcon.js.map +1 -0
  202. package/dist/components/LinkWithIcon/LinkWithIcon.test.d.ts +1 -0
  203. package/dist/components/LinkWithIcon/LinkWithIcon.test.js +55 -0
  204. package/dist/components/LinkWithIcon/LinkWithIcon.test.js.map +1 -0
  205. package/dist/components/LinkWithIcon/constants.d.ts +2 -0
  206. package/dist/components/LinkWithIcon/constants.js +6 -0
  207. package/dist/components/LinkWithIcon/constants.js.map +1 -0
  208. package/dist/components/NavLink/NavLink.d.ts +8 -0
  209. package/dist/components/NavLink/NavLink.js +20 -0
  210. package/dist/components/NavLink/NavLink.js.map +1 -0
  211. package/dist/components/NavLink/NavLink.test.d.ts +1 -0
  212. package/dist/components/NavLink/NavLink.test.js +30 -0
  213. package/dist/components/NavLink/NavLink.test.js.map +1 -0
  214. package/dist/components/NavLink/constants.d.ts +1 -0
  215. package/dist/components/NavLink/constants.js +5 -0
  216. package/dist/components/NavLink/constants.js.map +1 -0
  217. package/dist/components/Pagination/Pagination.test.d.ts +1 -0
  218. package/dist/components/Pagination/Pagination.test.js +79 -0
  219. package/dist/components/Pagination/Pagination.test.js.map +1 -0
  220. package/dist/components/Pagination/PaginationComponent.d.ts +6 -0
  221. package/dist/components/Pagination/PaginationComponent.js +8 -0
  222. package/dist/components/Pagination/PaginationComponent.js.map +1 -0
  223. package/dist/components/Pagination/components/PaginationArrow.d.ts +8 -0
  224. package/dist/components/Pagination/components/PaginationArrow.js +29 -0
  225. package/dist/components/Pagination/components/PaginationArrow.js.map +1 -0
  226. package/dist/components/Pagination/components/PaginationBody.d.ts +3 -0
  227. package/dist/components/Pagination/components/PaginationBody.js +6 -0
  228. package/dist/components/Pagination/components/PaginationBody.js.map +1 -0
  229. package/dist/components/Pagination/components/PaginationPage.d.ts +8 -0
  230. package/dist/components/Pagination/components/PaginationPage.js +17 -0
  231. package/dist/components/Pagination/components/PaginationPage.js.map +1 -0
  232. package/dist/components/Pagination/constants.d.ts +16 -0
  233. package/dist/components/Pagination/constants.js +11 -0
  234. package/dist/components/Pagination/constants.js.map +1 -0
  235. package/dist/components/Pagination/index.d.ts +5 -0
  236. package/dist/components/Pagination/index.js +7 -0
  237. package/dist/components/Pagination/index.js.map +1 -0
  238. package/dist/components/RangeSlider/RangeSlider.d.ts +7 -0
  239. package/dist/components/RangeSlider/RangeSlider.js +1072 -0
  240. package/dist/components/RangeSlider/RangeSlider.js.map +1 -0
  241. package/dist/components/RangeSlider/RangeSlider.test.d.ts +1 -0
  242. package/dist/components/RangeSlider/RangeSlider.test.js +15 -0
  243. package/dist/components/RangeSlider/RangeSlider.test.js.map +1 -0
  244. package/dist/components/RouterLink/RouterLink.d.ts +11 -0
  245. package/dist/components/RouterLink/RouterLink.js +32 -0
  246. package/dist/components/RouterLink/RouterLink.js.map +1 -0
  247. package/dist/components/RouterLink/RouterLink.test.d.ts +1 -0
  248. package/dist/components/RouterLink/RouterLink.test.js +68 -0
  249. package/dist/components/RouterLink/RouterLink.test.js.map +1 -0
  250. package/dist/components/RouterLink/constants.d.ts +8 -0
  251. package/dist/components/RouterLink/constants.js +11 -0
  252. package/dist/components/RouterLink/constants.js.map +1 -0
  253. package/dist/components/Select/Select.test.d.ts +1 -0
  254. package/dist/components/Select/Select.test.js +100 -0
  255. package/dist/components/Select/Select.test.js.map +1 -0
  256. package/dist/components/Select/SelectComponent.d.ts +13 -0
  257. package/dist/components/Select/SelectComponent.js +7 -0
  258. package/dist/components/Select/SelectComponent.js.map +1 -0
  259. package/dist/components/Select/components/SelectArrow.d.ts +2 -0
  260. package/dist/components/Select/components/SelectArrow.js +7 -0
  261. package/dist/components/Select/components/SelectArrow.js.map +1 -0
  262. package/dist/components/Select/components/SelectBlock.d.ts +6 -0
  263. package/dist/components/Select/components/SelectBlock.js +13 -0
  264. package/dist/components/Select/components/SelectBlock.js.map +1 -0
  265. package/dist/components/Select/components/SelectInput.d.ts +6 -0
  266. package/dist/components/Select/components/SelectInput.js +15 -0
  267. package/dist/components/Select/components/SelectInput.js.map +1 -0
  268. package/dist/components/Select/components/SelectList.d.ts +7 -0
  269. package/dist/components/Select/components/SelectList.js +6 -0
  270. package/dist/components/Select/components/SelectList.js.map +1 -0
  271. package/dist/components/Select/components/SelectOption.d.ts +7 -0
  272. package/dist/components/Select/components/SelectOption.js +16 -0
  273. package/dist/components/Select/components/SelectOption.js.map +1 -0
  274. package/dist/components/Select/components/SelectWrapper.d.ts +9 -0
  275. package/dist/components/Select/components/SelectWrapper.js +23 -0
  276. package/dist/components/Select/components/SelectWrapper.js.map +1 -0
  277. package/dist/components/Select/constants.d.ts +2 -0
  278. package/dist/components/Select/constants.js +8 -0
  279. package/dist/components/Select/constants.js.map +1 -0
  280. package/dist/components/Select/index.d.ts +8 -0
  281. package/dist/components/Select/index.js +10 -0
  282. package/dist/components/Select/index.js.map +1 -0
  283. package/dist/components/Slider/SliderComponent.d.ts +16 -0
  284. package/dist/components/Slider/SliderComponent.js +7 -0
  285. package/dist/components/Slider/SliderComponent.js.map +1 -0
  286. package/dist/components/Slider/constants.d.ts +4 -0
  287. package/dist/components/Slider/constants.js +2803 -0
  288. package/dist/components/Slider/constants.js.map +1 -0
  289. package/dist/components/SliderNavigate/SliderNavigate.d.ts +2 -0
  290. package/dist/components/SliderNavigate/SliderNavigate.js +21 -0
  291. package/dist/components/SliderNavigate/SliderNavigate.js.map +1 -0
  292. package/dist/components/SliderNavigate/SliderNavigate.test.d.ts +1 -0
  293. package/dist/components/SliderNavigate/SliderNavigate.test.js +24 -0
  294. package/dist/components/SliderNavigate/SliderNavigate.test.js.map +1 -0
  295. package/dist/components/SliderNavigate/components/NavigateButton.d.ts +7 -0
  296. package/dist/components/SliderNavigate/components/NavigateButton.js +19 -0
  297. package/dist/components/SliderNavigate/components/NavigateButton.js.map +1 -0
  298. package/dist/components/SliderNavigate/constants.d.ts +7 -0
  299. package/dist/components/SliderNavigate/constants.js +10 -0
  300. package/dist/components/SliderNavigate/constants.js.map +1 -0
  301. package/dist/iconBase-C4boY5mo.cjs +2 -0
  302. package/dist/iconBase-C4boY5mo.cjs.map +1 -0
  303. package/dist/iconBase-DSKTHwal.js +113 -0
  304. package/dist/iconBase-DSKTHwal.js.map +1 -0
  305. package/dist/index-6k1-qYX7.cjs +2 -0
  306. package/dist/index-6k1-qYX7.cjs.map +1 -0
  307. package/dist/index-BHJQkg-z.js +39 -0
  308. package/dist/index-BHJQkg-z.js.map +1 -0
  309. package/dist/index-BeUY6TnM.js +68 -0
  310. package/dist/index-BeUY6TnM.js.map +1 -0
  311. package/dist/index-C55-7-85.cjs +2 -0
  312. package/dist/index-C55-7-85.cjs.map +1 -0
  313. package/dist/index-C9UV8B4g.cjs +2 -0
  314. package/dist/index-C9UV8B4g.cjs.map +1 -0
  315. package/dist/index-CGl3Xo_k.js +19135 -0
  316. package/dist/index-CGl3Xo_k.js.map +1 -0
  317. package/dist/index-D9bMq-6v.cjs +2 -0
  318. package/dist/index-D9bMq-6v.cjs.map +1 -0
  319. package/dist/index-DgPeknFG.cjs +2 -0
  320. package/dist/index-DgPeknFG.cjs.map +1 -0
  321. package/dist/index-DpGIQZJ3.js +35 -0
  322. package/dist/index-DpGIQZJ3.js.map +1 -0
  323. package/dist/index-DtO1atyA.js +30 -0
  324. package/dist/index-DtO1atyA.js.map +1 -0
  325. package/dist/index-YTr4A0AR.js +25 -0
  326. package/dist/index-YTr4A0AR.js.map +1 -0
  327. package/dist/index-vOj_CXk2.cjs +175 -0
  328. package/dist/index-vOj_CXk2.cjs.map +1 -0
  329. package/dist/index.d.ts +1 -0
  330. package/dist/index.js +5 -0
  331. package/dist/index.js.map +1 -0
  332. package/dist/react.esm-C2dSWZxI.cjs +91 -0
  333. package/dist/react.esm-C2dSWZxI.cjs.map +1 -0
  334. package/dist/react.esm-DeOc63_l.js +11455 -0
  335. package/dist/react.esm-DeOc63_l.js.map +1 -0
  336. package/dist/services/helpers.d.ts +2 -0
  337. package/dist/services/helpers.js +21 -0
  338. package/dist/services/helpers.js.map +1 -0
  339. package/dist/services/hoc/withBlockClass.d.ts +7 -0
  340. package/dist/services/hoc/withBlockClass.js +22 -0
  341. package/dist/services/hoc/withBlockClass.js.map +1 -0
  342. package/dist/services/hooks/useAccordionHeight.d.ts +9 -0
  343. package/dist/services/hooks/useAccordionHeight.js +17 -0
  344. package/dist/services/hooks/useAccordionHeight.js.map +1 -0
  345. package/dist/services/hooks/useClickOutside.d.ts +5 -0
  346. package/dist/services/hooks/useClickOutside.js +17 -0
  347. package/dist/services/hooks/useClickOutside.js.map +1 -0
  348. package/dist/services/hooks/useMatchMedia.d.ts +1 -0
  349. package/dist/services/hooks/useMatchMedia.js +18 -0
  350. package/dist/services/hooks/useMatchMedia.js.map +1 -0
  351. package/dist/services/icons.d.ts +7 -0
  352. package/dist/services/icons.js +27 -0
  353. package/dist/services/icons.js.map +1 -0
  354. package/dist/services/mocks.d.ts +12 -0
  355. package/dist/services/mocks.js +21 -0
  356. package/dist/services/mocks.js.map +1 -0
  357. package/dist/services/types.d.ts +7 -0
  358. package/dist/services/types.js +2 -0
  359. package/dist/services/types.js.map +1 -0
  360. package/dist/setupTests.d.ts +0 -0
  361. package/dist/setupTests.js +10217 -0
  362. package/dist/setupTests.js.map +1 -0
  363. package/package.json +115 -0
@@ -0,0 +1,1094 @@
1
+ import { jsx as it } from "react/jsx-runtime";
2
+ import * as oe from "react";
3
+ var at = { 694: (r, e, t) => {
4
+ var n = t(925);
5
+ function a() {
6
+ }
7
+ function s() {
8
+ }
9
+ s.resetWarningCache = a, r.exports = function() {
10
+ function i(c, m, p, v, O, w) {
11
+ if (w !== n) {
12
+ var y = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
13
+ throw y.name = "Invariant Violation", y;
14
+ }
15
+ }
16
+ function o() {
17
+ return i;
18
+ }
19
+ i.isRequired = i;
20
+ var u = { array: i, bigint: i, bool: i, func: i, number: i, object: i, string: i, symbol: i, any: i, arrayOf: o, element: i, elementType: i, instanceOf: o, node: i, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: s, resetWarningCache: a };
21
+ return u.PropTypes = u, u;
22
+ };
23
+ }, 556: (r, e, t) => {
24
+ r.exports = t(694)();
25
+ }, 925: (r) => {
26
+ r.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
27
+ }, 115: (r) => {
28
+ var e = typeof Element < "u", t = typeof Map == "function", n = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
29
+ function s(i, o) {
30
+ if (i === o) return !0;
31
+ if (i && o && typeof i == "object" && typeof o == "object") {
32
+ if (i.constructor !== o.constructor) return !1;
33
+ var u, c, m, p;
34
+ if (Array.isArray(i)) {
35
+ if ((u = i.length) != o.length) return !1;
36
+ for (c = u; c-- != 0; ) if (!s(i[c], o[c])) return !1;
37
+ return !0;
38
+ }
39
+ if (t && i instanceof Map && o instanceof Map) {
40
+ if (i.size !== o.size) return !1;
41
+ for (p = i.entries(); !(c = p.next()).done; ) if (!o.has(c.value[0])) return !1;
42
+ for (p = i.entries(); !(c = p.next()).done; ) if (!s(c.value[1], o.get(c.value[0]))) return !1;
43
+ return !0;
44
+ }
45
+ if (n && i instanceof Set && o instanceof Set) {
46
+ if (i.size !== o.size) return !1;
47
+ for (p = i.entries(); !(c = p.next()).done; ) if (!o.has(c.value[0])) return !1;
48
+ return !0;
49
+ }
50
+ if (a && ArrayBuffer.isView(i) && ArrayBuffer.isView(o)) {
51
+ if ((u = i.length) != o.length) return !1;
52
+ for (c = u; c-- != 0; ) if (i[c] !== o[c]) return !1;
53
+ return !0;
54
+ }
55
+ if (i.constructor === RegExp) return i.source === o.source && i.flags === o.flags;
56
+ if (i.valueOf !== Object.prototype.valueOf && typeof i.valueOf == "function" && typeof o.valueOf == "function") return i.valueOf() === o.valueOf();
57
+ if (i.toString !== Object.prototype.toString && typeof i.toString == "function" && typeof o.toString == "function") return i.toString() === o.toString();
58
+ if ((u = (m = Object.keys(i)).length) !== Object.keys(o).length) return !1;
59
+ for (c = u; c-- != 0; ) if (!Object.prototype.hasOwnProperty.call(o, m[c])) return !1;
60
+ if (e && i instanceof Element) return !1;
61
+ for (c = u; c-- != 0; ) if ((m[c] !== "_owner" && m[c] !== "__v" && m[c] !== "__o" || !i.$$typeof) && !s(i[m[c]], o[m[c]])) return !1;
62
+ return !0;
63
+ }
64
+ return i != i && o != o;
65
+ }
66
+ r.exports = function(i, o) {
67
+ try {
68
+ return s(i, o);
69
+ } catch (u) {
70
+ if ((u.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
71
+ throw u;
72
+ }
73
+ };
74
+ } }, Oe = {};
75
+ function E(r) {
76
+ var e = Oe[r];
77
+ if (e !== void 0) return e.exports;
78
+ var t = Oe[r] = { exports: {} };
79
+ return at[r](t, t.exports, E), t.exports;
80
+ }
81
+ E.n = (r) => {
82
+ var e = r && r.__esModule ? () => r.default : () => r;
83
+ return E.d(e, { a: e }), e;
84
+ }, E.d = (r, e) => {
85
+ for (var t in e) E.o(e, t) && !E.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] });
86
+ }, E.g = function() {
87
+ if (typeof globalThis == "object") return globalThis;
88
+ try {
89
+ return this || new Function("return this")();
90
+ } catch {
91
+ if (typeof window == "object") return window;
92
+ }
93
+ }(), E.o = (r, e) => Object.prototype.hasOwnProperty.call(r, e);
94
+ var Ve = {};
95
+ function Ke(r) {
96
+ var e, t, n = "";
97
+ if (typeof r == "string" || typeof r == "number") n += r;
98
+ else if (typeof r == "object") if (Array.isArray(r)) {
99
+ var a = r.length;
100
+ for (e = 0; e < a; e++) r[e] && (t = Ke(r[e])) && (n && (n += " "), n += t);
101
+ } else for (t in r) r[t] && (n && (n += " "), n += t);
102
+ return n;
103
+ }
104
+ E.d(Ve, { A: () => Yt });
105
+ const N = function() {
106
+ for (var r, e, t = 0, n = "", a = arguments.length; t < a; t++) (r = arguments[t]) && (e = Ke(r)) && (n && (n += " "), n += e);
107
+ return n;
108
+ }, h = (Ee = { default: () => oe.default, useMemo: () => oe.useMemo, useRef: () => oe.useRef }, le = {}, E.d(le, Ee), le);
109
+ var Ee, le;
110
+ const Z = function(r) {
111
+ var e = typeof r;
112
+ return r != null && (e == "object" || e == "function");
113
+ }, st = typeof global == "object" && global && global.Object === Object && global;
114
+ var ot = typeof self == "object" && self && self.Object === Object && self;
115
+ const Xe = st || ot || Function("return this")(), ue = function() {
116
+ return Xe.Date.now();
117
+ };
118
+ var lt = /\s/, ut = /^\s+/;
119
+ const ct = function(r) {
120
+ return r && r.slice(0, function(e) {
121
+ for (var t = e.length; t-- && lt.test(e.charAt(t)); ) ;
122
+ return t;
123
+ }(r) + 1).replace(ut, "");
124
+ }, ee = Xe.Symbol;
125
+ var Ye = Object.prototype, ht = Ye.hasOwnProperty, dt = Ye.toString, X = ee ? ee.toStringTag : void 0, ft = Object.prototype.toString, ke = ee ? ee.toStringTag : void 0;
126
+ const pt = function(r) {
127
+ return r == null ? r === void 0 ? "[object Undefined]" : "[object Null]" : ke && ke in Object(r) ? function(e) {
128
+ var t = ht.call(e, X), n = e[X];
129
+ try {
130
+ e[X] = void 0;
131
+ var a = !0;
132
+ } catch {
133
+ }
134
+ var s = dt.call(e);
135
+ return a && (t ? e[X] = n : delete e[X]), s;
136
+ }(r) : function(e) {
137
+ return ft.call(e);
138
+ }(r);
139
+ };
140
+ var mt = /^[-+]0x[0-9a-f]+$/i, gt = /^0b[01]+$/i, bt = /^0o[0-7]+$/i, vt = parseInt;
141
+ const Ie = function(r) {
142
+ if (typeof r == "number") return r;
143
+ if (function(n) {
144
+ return typeof n == "symbol" || function(a) {
145
+ return a != null && typeof a == "object";
146
+ }(n) && pt(n) == "[object Symbol]";
147
+ }(r)) return NaN;
148
+ if (Z(r)) {
149
+ var e = typeof r.valueOf == "function" ? r.valueOf() : r;
150
+ r = Z(e) ? e + "" : e;
151
+ }
152
+ if (typeof r != "string") return r === 0 ? r : +r;
153
+ r = ct(r);
154
+ var t = gt.test(r);
155
+ return t || bt.test(r) ? vt(r.slice(2), t ? 2 : 8) : mt.test(r) ? NaN : +r;
156
+ };
157
+ var yt = Math.max, wt = Math.min;
158
+ const he = function(r, e, t) {
159
+ var n, a, s, i, o, u, c = 0, m = !1, p = !1, v = !0;
160
+ if (typeof r != "function") throw new TypeError("Expected a function");
161
+ function O(d) {
162
+ var b = n, S = a;
163
+ return n = a = void 0, c = d, i = r.apply(S, b);
164
+ }
165
+ function w(d) {
166
+ var b = d - u;
167
+ return u === void 0 || b >= e || b < 0 || p && d - c >= s;
168
+ }
169
+ function y() {
170
+ var d = ue();
171
+ if (w(d)) return f(d);
172
+ o = setTimeout(y, function(b) {
173
+ var S = e - (b - u);
174
+ return p ? wt(S, s - (b - c)) : S;
175
+ }(d));
176
+ }
177
+ function f(d) {
178
+ return o = void 0, v && n ? O(d) : (n = a = void 0, i);
179
+ }
180
+ function g() {
181
+ var d = ue(), b = w(d);
182
+ if (n = arguments, a = this, u = d, b) {
183
+ if (o === void 0) return function(S) {
184
+ return c = S, o = setTimeout(y, e), m ? O(S) : i;
185
+ }(u);
186
+ if (p) return clearTimeout(o), o = setTimeout(y, e), O(u);
187
+ }
188
+ return o === void 0 && (o = setTimeout(y, e)), i;
189
+ }
190
+ return e = Ie(e) || 0, Z(t) && (m = !!t.leading, s = (p = "maxWait" in t) ? yt(Ie(t.maxWait) || 0, e) : s, v = "trailing" in t ? !!t.trailing : v), g.cancel = function() {
191
+ o !== void 0 && clearTimeout(o), c = 0, n = u = a = o = void 0;
192
+ }, g.flush = function() {
193
+ return o === void 0 ? i : f(ue());
194
+ }, g;
195
+ }, xe = function(r, e, t) {
196
+ var n = !0, a = !0;
197
+ if (typeof r != "function") throw new TypeError("Expected a function");
198
+ return Z(t) && (n = "leading" in t ? !!t.leading : n, a = "trailing" in t ? !!t.trailing : a), he(r, e, { leading: n, maxWait: e, trailing: a });
199
+ };
200
+ var St = E(115), Tt = E.n(St), $e = function() {
201
+ if (typeof Map < "u") return Map;
202
+ function r(e, t) {
203
+ var n = -1;
204
+ return e.some(function(a, s) {
205
+ return a[0] === t && (n = s, !0);
206
+ }), n;
207
+ }
208
+ return function() {
209
+ function e() {
210
+ this.__entries__ = [];
211
+ }
212
+ return Object.defineProperty(e.prototype, "size", { get: function() {
213
+ return this.__entries__.length;
214
+ }, enumerable: !0, configurable: !0 }), e.prototype.get = function(t) {
215
+ var n = r(this.__entries__, t), a = this.__entries__[n];
216
+ return a && a[1];
217
+ }, e.prototype.set = function(t, n) {
218
+ var a = r(this.__entries__, t);
219
+ ~a ? this.__entries__[a][1] = n : this.__entries__.push([t, n]);
220
+ }, e.prototype.delete = function(t) {
221
+ var n = this.__entries__, a = r(n, t);
222
+ ~a && n.splice(a, 1);
223
+ }, e.prototype.has = function(t) {
224
+ return !!~r(this.__entries__, t);
225
+ }, e.prototype.clear = function() {
226
+ this.__entries__.splice(0);
227
+ }, e.prototype.forEach = function(t, n) {
228
+ n === void 0 && (n = null);
229
+ for (var a = 0, s = this.__entries__; a < s.length; a++) {
230
+ var i = s[a];
231
+ t.call(n, i[1], i[0]);
232
+ }
233
+ }, e;
234
+ }();
235
+ }(), de = typeof window < "u" && typeof document < "u" && window.document === document, te = E.g !== void 0 && E.g.Math === Math ? E.g : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(), Ot = typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(te) : function(r) {
236
+ return setTimeout(function() {
237
+ return r(Date.now());
238
+ }, 1e3 / 60);
239
+ }, Et = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], kt = typeof MutationObserver < "u", It = function() {
240
+ function r() {
241
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = /* @__PURE__ */ function(e) {
242
+ var t = !1, n = !1, a = 0;
243
+ function s() {
244
+ t && (t = !1, e()), n && o();
245
+ }
246
+ function i() {
247
+ Ot(s);
248
+ }
249
+ function o() {
250
+ var u = Date.now();
251
+ if (t) {
252
+ if (u - a < 2) return;
253
+ n = !0;
254
+ } else t = !0, n = !1, setTimeout(i, 20);
255
+ a = u;
256
+ }
257
+ return o;
258
+ }(this.refresh.bind(this));
259
+ }
260
+ return r.prototype.addObserver = function(e) {
261
+ ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
262
+ }, r.prototype.removeObserver = function(e) {
263
+ var t = this.observers_, n = t.indexOf(e);
264
+ ~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();
265
+ }, r.prototype.refresh = function() {
266
+ this.updateObservers_() && this.refresh();
267
+ }, r.prototype.updateObservers_ = function() {
268
+ var e = this.observers_.filter(function(t) {
269
+ return t.gatherActive(), t.hasActive();
270
+ });
271
+ return e.forEach(function(t) {
272
+ return t.broadcastActive();
273
+ }), e.length > 0;
274
+ }, r.prototype.connect_ = function() {
275
+ de && !this.connected_ && (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), kt ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0 })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
276
+ }, r.prototype.disconnect_ = function() {
277
+ de && this.connected_ && (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
278
+ }, r.prototype.onTransitionEnd_ = function(e) {
279
+ var t = e.propertyName, n = t === void 0 ? "" : t;
280
+ Et.some(function(a) {
281
+ return !!~n.indexOf(a);
282
+ }) && this.refresh();
283
+ }, r.getInstance = function() {
284
+ return this.instance_ || (this.instance_ = new r()), this.instance_;
285
+ }, r.instance_ = null, r;
286
+ }(), Pe = function(r, e) {
287
+ for (var t = 0, n = Object.keys(e); t < n.length; t++) {
288
+ var a = n[t];
289
+ Object.defineProperty(r, a, { value: e[a], enumerable: !1, writable: !1, configurable: !0 });
290
+ }
291
+ return r;
292
+ }, H = function(r) {
293
+ return r && r.ownerDocument && r.ownerDocument.defaultView || te;
294
+ }, je = ne(0, 0, 0, 0);
295
+ function Q(r) {
296
+ return parseFloat(r) || 0;
297
+ }
298
+ function _e(r) {
299
+ for (var e = [], t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
300
+ return e.reduce(function(n, a) {
301
+ return n + Q(r["border-" + a + "-width"]);
302
+ }, 0);
303
+ }
304
+ var xt = typeof SVGGraphicsElement < "u" ? function(r) {
305
+ return r instanceof H(r).SVGGraphicsElement;
306
+ } : function(r) {
307
+ return r instanceof H(r).SVGElement && typeof r.getBBox == "function";
308
+ };
309
+ function Pt(r) {
310
+ return de ? xt(r) ? function(e) {
311
+ var t = e.getBBox();
312
+ return ne(0, 0, t.width, t.height);
313
+ }(r) : function(e) {
314
+ var t = e.clientWidth, n = e.clientHeight;
315
+ if (!t && !n) return je;
316
+ var a = H(e).getComputedStyle(e), s = function(v) {
317
+ for (var O = {}, w = 0, y = ["top", "right", "bottom", "left"]; w < y.length; w++) {
318
+ var f = y[w], g = v["padding-" + f];
319
+ O[f] = Q(g);
320
+ }
321
+ return O;
322
+ }(a), i = s.left + s.right, o = s.top + s.bottom, u = Q(a.width), c = Q(a.height);
323
+ if (a.boxSizing === "border-box" && (Math.round(u + i) !== t && (u -= _e(a, "left", "right") + i), Math.round(c + o) !== n && (c -= _e(a, "top", "bottom") + o)), !function(v) {
324
+ return v === H(v).document.documentElement;
325
+ }(e)) {
326
+ var m = Math.round(u + i) - t, p = Math.round(c + o) - n;
327
+ Math.abs(m) !== 1 && (u -= m), Math.abs(p) !== 1 && (c -= p);
328
+ }
329
+ return ne(s.left, s.top, u, c);
330
+ }(r) : je;
331
+ }
332
+ function ne(r, e, t, n) {
333
+ return { x: r, y: e, width: t, height: n };
334
+ }
335
+ var jt = function() {
336
+ function r(e) {
337
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ne(0, 0, 0, 0), this.target = e;
338
+ }
339
+ return r.prototype.isActive = function() {
340
+ var e = Pt(this.target);
341
+ return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
342
+ }, r.prototype.broadcastRect = function() {
343
+ var e = this.contentRect_;
344
+ return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
345
+ }, r;
346
+ }(), _t = function(r, e) {
347
+ var t = function(n) {
348
+ var a = n.x, s = n.y, i = n.width, o = n.height, u = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, c = Object.create(u.prototype);
349
+ return Pe(c, { x: a, y: s, width: i, height: o, top: s, right: a + i, bottom: o + s, left: a }), c;
350
+ }(e);
351
+ Pe(this, { target: r, contentRect: t });
352
+ }, Rt = function() {
353
+ function r(e, t, n) {
354
+ if (this.activeObservations_ = [], this.observations_ = new $e(), typeof e != "function") throw new TypeError("The callback provided as parameter 1 is not a function.");
355
+ this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
356
+ }
357
+ return r.prototype.observe = function(e) {
358
+ if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
359
+ if (typeof Element < "u" && Element instanceof Object) {
360
+ if (!(e instanceof H(e).Element)) throw new TypeError('parameter 1 is not of type "Element".');
361
+ var t = this.observations_;
362
+ t.has(e) || (t.set(e, new jt(e)), this.controller_.addObserver(this), this.controller_.refresh());
363
+ }
364
+ }, r.prototype.unobserve = function(e) {
365
+ if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
366
+ if (typeof Element < "u" && Element instanceof Object) {
367
+ if (!(e instanceof H(e).Element)) throw new TypeError('parameter 1 is not of type "Element".');
368
+ var t = this.observations_;
369
+ t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
370
+ }
371
+ }, r.prototype.disconnect = function() {
372
+ this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
373
+ }, r.prototype.gatherActive = function() {
374
+ var e = this;
375
+ this.clearActive(), this.observations_.forEach(function(t) {
376
+ t.isActive() && e.activeObservations_.push(t);
377
+ });
378
+ }, r.prototype.broadcastActive = function() {
379
+ if (this.hasActive()) {
380
+ var e = this.callbackCtx_, t = this.activeObservations_.map(function(n) {
381
+ return new _t(n.target, n.broadcastRect());
382
+ });
383
+ this.callback_.call(e, t, e), this.clearActive();
384
+ }
385
+ }, r.prototype.clearActive = function() {
386
+ this.activeObservations_.splice(0);
387
+ }, r.prototype.hasActive = function() {
388
+ return this.activeObservations_.length > 0;
389
+ }, r;
390
+ }(), Je = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new $e(), Qe = function r(e) {
391
+ if (!(this instanceof r)) throw new TypeError("Cannot call a class as a function.");
392
+ if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
393
+ var t = It.getInstance(), n = new Rt(e, t, this);
394
+ Je.set(this, n);
395
+ };
396
+ ["observe", "unobserve", "disconnect"].forEach(function(r) {
397
+ Qe.prototype[r] = function() {
398
+ var e;
399
+ return (e = Je.get(this))[r].apply(e, arguments);
400
+ };
401
+ });
402
+ const Re = te.ResizeObserver !== void 0 ? te.ResizeObserver : Qe, R = "Left", L = "Right", M = "Up", D = "Down", U = { delta: 10, preventScrollOnSwipe: !1, rotationAngle: 0, trackMouse: !1, trackTouch: !0, swipeDuration: 1 / 0, touchEventOptions: { passive: !0 } }, ce = { first: !0, initial: [0, 0], start: 0, swiping: !1, xy: [0, 0] }, Le = "mousemove", Me = "mouseup";
403
+ function De(r, e) {
404
+ if (e === 0) return r;
405
+ const t = Math.PI / 180 * e;
406
+ return [r[0] * Math.cos(t) + r[1] * Math.sin(t), r[1] * Math.cos(t) - r[0] * Math.sin(t)];
407
+ }
408
+ function Lt(r) {
409
+ const { trackMouse: e } = r, t = h.useRef(Object.assign({}, ce)), n = h.useRef(Object.assign({}, U)), a = h.useRef(Object.assign({}, n.current));
410
+ let s;
411
+ for (s in a.current = Object.assign({}, n.current), n.current = Object.assign(Object.assign({}, U), r), U) n.current[s] === void 0 && (n.current[s] = U[s]);
412
+ const [i, o] = h.useMemo(() => function(u, c) {
413
+ const m = (f) => {
414
+ const g = "touches" in f;
415
+ g && f.touches.length > 1 || u((d, b) => {
416
+ b.trackMouse && !g && (document.addEventListener(Le, p), document.addEventListener(Me, O));
417
+ const { clientX: S, clientY: T } = g ? f.touches[0] : f, I = De([S, T], b.rotationAngle);
418
+ return b.onTouchStartOrOnMouseDown && b.onTouchStartOrOnMouseDown({ event: f }), Object.assign(Object.assign(Object.assign({}, d), ce), { initial: I.slice(), xy: I, start: f.timeStamp || 0 });
419
+ });
420
+ }, p = (f) => {
421
+ u((g, d) => {
422
+ const b = "touches" in f;
423
+ if (b && f.touches.length > 1) return g;
424
+ if (f.timeStamp - g.start > d.swipeDuration) return g.swiping ? Object.assign(Object.assign({}, g), { swiping: !1 }) : g;
425
+ const { clientX: S, clientY: T } = b ? f.touches[0] : f, [I, W] = De([S, T], d.rotationAngle), C = I - g.xy[0], x = W - g.xy[1], j = Math.abs(C), P = Math.abs(x), _ = (f.timeStamp || 0) - g.start, z = Math.sqrt(j * j + P * P) / (_ || 1), B = [C / (_ || 1), x / (_ || 1)], F = function(ie, ae, se, rt) {
426
+ return ie > ae ? se > 0 ? L : R : rt > 0 ? D : M;
427
+ }(j, P, C, x), k = typeof d.delta == "number" ? d.delta : d.delta[F.toLowerCase()] || U.delta;
428
+ if (j < k && P < k && !g.swiping) return g;
429
+ const A = { absX: j, absY: P, deltaX: C, deltaY: x, dir: F, event: f, first: g.first, initial: g.initial, velocity: z, vxvy: B };
430
+ A.first && d.onSwipeStart && d.onSwipeStart(A), d.onSwiping && d.onSwiping(A);
431
+ let K = !1;
432
+ return (d.onSwiping || d.onSwiped || d[`onSwiped${F}`]) && (K = !0), K && d.preventScrollOnSwipe && d.trackTouch && f.cancelable && f.preventDefault(), Object.assign(Object.assign({}, g), { first: !1, eventData: A, swiping: !0 });
433
+ });
434
+ }, v = (f) => {
435
+ u((g, d) => {
436
+ let b;
437
+ if (g.swiping && g.eventData) {
438
+ if (f.timeStamp - g.start < d.swipeDuration) {
439
+ b = Object.assign(Object.assign({}, g.eventData), { event: f }), d.onSwiped && d.onSwiped(b);
440
+ const S = d[`onSwiped${b.dir}`];
441
+ S && S(b);
442
+ }
443
+ } else d.onTap && d.onTap({ event: f });
444
+ return d.onTouchEndOrOnMouseUp && d.onTouchEndOrOnMouseUp({ event: f }), Object.assign(Object.assign(Object.assign({}, g), ce), { eventData: b });
445
+ });
446
+ }, O = (f) => {
447
+ document.removeEventListener(Le, p), document.removeEventListener(Me, O), v(f);
448
+ }, w = (f, g) => {
449
+ let d = () => {
450
+ };
451
+ if (f && f.addEventListener) {
452
+ const b = Object.assign(Object.assign({}, U.touchEventOptions), g.touchEventOptions), S = [["touchstart", m, b], ["touchmove", p, Object.assign(Object.assign({}, b), g.preventScrollOnSwipe ? { passive: !1 } : {})], ["touchend", v, b]];
453
+ S.forEach(([T, I, W]) => f.addEventListener(T, I, W)), d = () => S.forEach(([T, I]) => f.removeEventListener(T, I));
454
+ }
455
+ return d;
456
+ }, y = { ref: (f) => {
457
+ f !== null && u((g, d) => {
458
+ if (g.el === f) return g;
459
+ const b = {};
460
+ return g.el && g.el !== f && g.cleanUpTouch && (g.cleanUpTouch(), b.cleanUpTouch = void 0), d.trackTouch && f && (b.cleanUpTouch = w(f, d)), Object.assign(Object.assign(Object.assign({}, g), { el: f }), b);
461
+ });
462
+ } };
463
+ return c.trackMouse && (y.onMouseDown = m), [y, w];
464
+ }((u) => t.current = u(t.current, n.current), { trackMouse: e }), [e]);
465
+ return t.current = function(u, c, m, p) {
466
+ return c.trackTouch && u.el ? u.cleanUpTouch ? c.preventScrollOnSwipe !== m.preventScrollOnSwipe || c.touchEventOptions.passive !== m.touchEventOptions.passive ? (u.cleanUpTouch(), Object.assign(Object.assign({}, u), { cleanUpTouch: p(u.el, c) })) : u : Object.assign(Object.assign({}, u), { cleanUpTouch: p(u.el, c) }) : (u.cleanUpTouch && u.cleanUpTouch(), Object.assign(Object.assign({}, u), { cleanUpTouch: void 0 }));
467
+ }(t.current, n.current, a.current, o), i;
468
+ }
469
+ var l = E(556);
470
+ function Y(r) {
471
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
472
+ return typeof e;
473
+ } : function(e) {
474
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
475
+ }, Y(r);
476
+ }
477
+ function Ce(r, e) {
478
+ var t = Object.keys(r);
479
+ if (Object.getOwnPropertySymbols) {
480
+ var n = Object.getOwnPropertySymbols(r);
481
+ e && (n = n.filter(function(a) {
482
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
483
+ })), t.push.apply(t, n);
484
+ }
485
+ return t;
486
+ }
487
+ function We(r) {
488
+ for (var e = 1; e < arguments.length; e++) {
489
+ var t = arguments[e] != null ? arguments[e] : {};
490
+ e % 2 ? Ce(Object(t), !0).forEach(function(n) {
491
+ Mt(r, n, t[n]);
492
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ce(Object(t)).forEach(function(n) {
493
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
494
+ });
495
+ }
496
+ return r;
497
+ }
498
+ function Mt(r, e, t) {
499
+ return (e = function(n) {
500
+ var a = function(s) {
501
+ if (Y(s) != "object" || !s) return s;
502
+ var i = s[Symbol.toPrimitive];
503
+ if (i !== void 0) {
504
+ var o = i.call(s, "string");
505
+ if (Y(o) != "object") return o;
506
+ throw new TypeError("@@toPrimitive must return a primitive value.");
507
+ }
508
+ return String(s);
509
+ }(n);
510
+ return Y(a) == "symbol" ? a : a + "";
511
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
512
+ }
513
+ var Dt = { description: "", fullscreen: "", isFullscreen: !1, originalAlt: "", originalHeight: "", originalWidth: "", originalTitle: "", sizes: "", srcSet: "", loading: "eager" }, fe = h.default.memo(function(r) {
514
+ var e = We(We({}, Dt), r), t = e.description, n = e.fullscreen, a = e.handleImageLoaded, s = e.isFullscreen, i = e.onImageError, o = e.original, u = e.originalAlt, c = e.originalHeight, m = e.originalWidth, p = e.originalTitle, v = e.sizes, O = e.srcSet, w = e.loading, y = s && n || o;
515
+ return h.default.createElement(h.default.Fragment, null, h.default.createElement("img", { className: "image-gallery-image", src: y, alt: u, srcSet: O, height: c, width: m, sizes: v, title: p, onLoad: function(f) {
516
+ return a(f, o);
517
+ }, onError: i, loading: w }), t && h.default.createElement("span", { className: "image-gallery-description" }, t));
518
+ });
519
+ fe.displayName = "Item", fe.propTypes = { description: l.string, fullscreen: l.string, handleImageLoaded: l.func.isRequired, isFullscreen: l.bool, onImageError: l.func.isRequired, original: l.string.isRequired, originalAlt: l.string, originalHeight: l.string, originalWidth: l.string, originalTitle: l.string, sizes: l.string, srcSet: l.string, loading: l.string };
520
+ const Ct = fe;
521
+ function $(r) {
522
+ return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
523
+ return typeof e;
524
+ } : function(e) {
525
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
526
+ }, $(r);
527
+ }
528
+ function Fe(r, e) {
529
+ var t = Object.keys(r);
530
+ if (Object.getOwnPropertySymbols) {
531
+ var n = Object.getOwnPropertySymbols(r);
532
+ e && (n = n.filter(function(a) {
533
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
534
+ })), t.push.apply(t, n);
535
+ }
536
+ return t;
537
+ }
538
+ function Ne(r) {
539
+ for (var e = 1; e < arguments.length; e++) {
540
+ var t = arguments[e] != null ? arguments[e] : {};
541
+ e % 2 ? Fe(Object(t), !0).forEach(function(n) {
542
+ Wt(r, n, t[n]);
543
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Fe(Object(t)).forEach(function(n) {
544
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
545
+ });
546
+ }
547
+ return r;
548
+ }
549
+ function Wt(r, e, t) {
550
+ return (e = function(n) {
551
+ var a = function(s) {
552
+ if ($(s) != "object" || !s) return s;
553
+ var i = s[Symbol.toPrimitive];
554
+ if (i !== void 0) {
555
+ var o = i.call(s, "string");
556
+ if ($(o) != "object") return o;
557
+ throw new TypeError("@@toPrimitive must return a primitive value.");
558
+ }
559
+ return String(s);
560
+ }(n);
561
+ return $(a) == "symbol" ? a : a + "";
562
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
563
+ }
564
+ var Ft = { left: h.default.createElement("polyline", { points: "15 18 9 12 15 6" }), right: h.default.createElement("polyline", { points: "9 18 15 12 9 6" }), top: h.default.createElement("polyline", { points: "6 15 12 9 18 15" }), bottom: h.default.createElement("polyline", { points: "6 9 12 15 18 9" }), maximize: h.default.createElement("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }), minimize: h.default.createElement("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }), play: h.default.createElement("polygon", { points: "5 3 19 12 5 21 5 3" }), pause: h.default.createElement(h.default.Fragment, null, h.default.createElement("rect", { x: "6", y: "4", width: "4", height: "16" }), h.default.createElement("rect", { x: "14", y: "4", width: "4", height: "16" })) }, Nt = { strokeWidth: 1, viewBox: "0 0 24 24" }, Ze = function(r) {
565
+ var e = Ne(Ne({}, Nt), r), t = e.strokeWidth, n = e.viewBox, a = e.icon;
566
+ return h.default.createElement("svg", { className: "image-gallery-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: n, fill: "none", stroke: "currentColor", strokeWidth: t, strokeLinecap: "round", strokeLinejoin: "round" }, Ft[a]);
567
+ };
568
+ Ze.propTypes = { strokeWidth: l.number, viewBox: l.string, icon: (0, l.oneOf)(["left", "right", "top", "bottom", "maximize", "minimize", "play", "pause"]).isRequired };
569
+ const V = Ze;
570
+ var pe = h.default.memo(function(r) {
571
+ var e = r.isFullscreen, t = r.onClick;
572
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-fullscreen-button", onClick: t, "aria-label": "Open Fullscreen" }, h.default.createElement(V, { strokeWidth: 2, icon: e ? "minimize" : "maximize" }));
573
+ });
574
+ pe.displayName = "Fullscreen", pe.propTypes = { isFullscreen: l.bool.isRequired, onClick: l.func.isRequired };
575
+ const zt = pe;
576
+ var me = h.default.memo(function(r) {
577
+ var e = r.disabled, t = r.onClick;
578
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-left-nav", disabled: e, onClick: t, "aria-label": "Previous Slide" }, h.default.createElement(V, { icon: "left", viewBox: "6 0 12 24" }));
579
+ });
580
+ me.displayName = "LeftNav", me.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
581
+ const Bt = me;
582
+ var ge = h.default.memo(function(r) {
583
+ var e = r.disabled, t = r.onClick;
584
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-right-nav", disabled: e, onClick: t, "aria-label": "Next Slide" }, h.default.createElement(V, { icon: "right", viewBox: "6 0 12 24" }));
585
+ });
586
+ ge.displayName = "RightNav", ge.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
587
+ const At = ge;
588
+ var be = h.default.memo(function(r) {
589
+ var e = r.isPlaying, t = r.onClick;
590
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-play-button", onClick: t, "aria-label": "Play or Pause Slideshow" }, h.default.createElement(V, { strokeWidth: 2, icon: e ? "pause" : "play" }));
591
+ });
592
+ be.displayName = "PlayPause", be.propTypes = { isPlaying: l.bool.isRequired, onClick: l.func.isRequired };
593
+ const Ut = be;
594
+ function J(r) {
595
+ return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
596
+ return typeof e;
597
+ } : function(e) {
598
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
599
+ }, J(r);
600
+ }
601
+ function ve() {
602
+ return ve = Object.assign ? Object.assign.bind() : function(r) {
603
+ for (var e = 1; e < arguments.length; e++) {
604
+ var t = arguments[e];
605
+ for (var n in t) ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
606
+ }
607
+ return r;
608
+ }, ve.apply(null, arguments);
609
+ }
610
+ function ze(r, e) {
611
+ var t = Object.keys(r);
612
+ if (Object.getOwnPropertySymbols) {
613
+ var n = Object.getOwnPropertySymbols(r);
614
+ e && (n = n.filter(function(a) {
615
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
616
+ })), t.push.apply(t, n);
617
+ }
618
+ return t;
619
+ }
620
+ function Be(r) {
621
+ for (var e = 1; e < arguments.length; e++) {
622
+ var t = arguments[e] != null ? arguments[e] : {};
623
+ e % 2 ? ze(Object(t), !0).forEach(function(n) {
624
+ Gt(r, n, t[n]);
625
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : ze(Object(t)).forEach(function(n) {
626
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
627
+ });
628
+ }
629
+ return r;
630
+ }
631
+ function Gt(r, e, t) {
632
+ return (e = function(n) {
633
+ var a = function(s) {
634
+ if (J(s) != "object" || !s) return s;
635
+ var i = s[Symbol.toPrimitive];
636
+ if (i !== void 0) {
637
+ var o = i.call(s, "string");
638
+ if (J(o) != "object") return o;
639
+ throw new TypeError("@@toPrimitive must return a primitive value.");
640
+ }
641
+ return String(s);
642
+ }(n);
643
+ return J(a) == "symbol" ? a : a + "";
644
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
645
+ }
646
+ var qt = { className: "", delta: 0, onSwiping: function() {
647
+ }, onSwiped: function() {
648
+ } }, et = function(r) {
649
+ var e = Be(Be({}, qt), r), t = e.children, n = e.className, a = Lt({ delta: e.delta, onSwiping: e.onSwiping, onSwiped: e.onSwiped });
650
+ return h.default.createElement("div", ve({}, a, { className: n }), t);
651
+ };
652
+ et.propTypes = { children: l.node.isRequired, className: l.string, delta: l.number, onSwiped: l.func, onSwiping: l.func };
653
+ const Ae = et;
654
+ var ye = h.default.memo(function(r) {
655
+ var e = r.disabled, t = r.onClick;
656
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-top-nav", disabled: e, onClick: t, "aria-label": "Previous Slide" }, h.default.createElement(V, { icon: "top", viewBox: "6 0 12 24" }));
657
+ });
658
+ ye.displayName = "TopNav", ye.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
659
+ const Ht = ye;
660
+ var we = h.default.memo(function(r) {
661
+ var e = r.disabled, t = r.onClick;
662
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-bottom-nav", disabled: e, onClick: t, "aria-label": "Next Slide" }, h.default.createElement(V, { icon: "bottom", viewBox: "6 0 12 24" }));
663
+ });
664
+ we.displayName = "BottomNav", we.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
665
+ const Vt = we;
666
+ function q(r) {
667
+ return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
668
+ return typeof e;
669
+ } : function(e) {
670
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
671
+ }, q(r);
672
+ }
673
+ function Ue(r, e) {
674
+ var t = Object.keys(r);
675
+ if (Object.getOwnPropertySymbols) {
676
+ var n = Object.getOwnPropertySymbols(r);
677
+ e && (n = n.filter(function(a) {
678
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
679
+ })), t.push.apply(t, n);
680
+ }
681
+ return t;
682
+ }
683
+ function Ge(r) {
684
+ for (var e = 1; e < arguments.length; e++) {
685
+ var t = arguments[e] != null ? arguments[e] : {};
686
+ e % 2 ? Ue(Object(t), !0).forEach(function(n) {
687
+ G(r, n, t[n]);
688
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(n) {
689
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
690
+ });
691
+ }
692
+ return r;
693
+ }
694
+ function Kt(r, e) {
695
+ for (var t = 0; t < e.length; t++) {
696
+ var n = e[t];
697
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, nt(n.key), n);
698
+ }
699
+ }
700
+ function tt() {
701
+ try {
702
+ var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
703
+ }));
704
+ } catch {
705
+ }
706
+ return (tt = function() {
707
+ return !!r;
708
+ })();
709
+ }
710
+ function re(r) {
711
+ return re = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
712
+ return e.__proto__ || Object.getPrototypeOf(e);
713
+ }, re(r);
714
+ }
715
+ function Se(r, e) {
716
+ return Se = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
717
+ return t.__proto__ = n, t;
718
+ }, Se(r, e);
719
+ }
720
+ function G(r, e, t) {
721
+ return (e = nt(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
722
+ }
723
+ function nt(r) {
724
+ var e = function(t) {
725
+ if (q(t) != "object" || !t) return t;
726
+ var n = t[Symbol.toPrimitive];
727
+ if (n !== void 0) {
728
+ var a = n.call(t, "string");
729
+ if (q(a) != "object") return a;
730
+ throw new TypeError("@@toPrimitive must return a primitive value.");
731
+ }
732
+ return String(t);
733
+ }(r);
734
+ return q(e) == "symbol" ? e : e + "";
735
+ }
736
+ var qe = ["fullscreenchange", "MSFullscreenChange", "mozfullscreenchange", "webkitfullscreenchange"], Xt = (0, l.arrayOf)((0, l.shape)({ srcSet: l.string, media: l.string }));
737
+ function He(r) {
738
+ var e = parseInt(r.keyCode || r.which || 0, 10);
739
+ return e === 66 || e === 62;
740
+ }
741
+ var Te = function() {
742
+ function r(e) {
743
+ var t, n, a, s;
744
+ return function(i, o) {
745
+ if (!(i instanceof o)) throw new TypeError("Cannot call a class as a function");
746
+ }(this, r), G((n = this, s = [e], a = re(a = r), t = function(i, o) {
747
+ if (o && (q(o) == "object" || typeof o == "function")) return o;
748
+ if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
749
+ return function(u) {
750
+ if (u === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
751
+ return u;
752
+ }(i);
753
+ }(n, tt() ? Reflect.construct(a, s || [], re(n).constructor) : a.apply(n, s))), "onBulletClick", function(i, o) {
754
+ var u = t.props, c = u.onBulletClick, m = u.items, p = t.state.currentIndex;
755
+ i.target.blur(), p !== o && (m.length === 2 ? t.slideToIndexWithStyleReset(o, i) : t.slideToIndex(o, i)), c && c(i, o);
756
+ }), t.state = { currentIndex: e.startIndex, thumbsTranslate: 0, thumbsSwipedTranslate: 0, currentSlideOffset: 0, galleryWidth: 0, galleryHeight: 0, thumbnailsWrapperWidth: 0, thumbnailsWrapperHeight: 0, thumbsStyle: { transition: "all ".concat(e.slideDuration, "ms ease-out") }, isFullscreen: !1, isSwipingThumbnail: !1, isPlaying: !1 }, t.loadedImages = {}, t.imageGallery = h.default.createRef(), t.thumbnailsWrapper = h.default.createRef(), t.thumbnails = h.default.createRef(), t.imageGallerySlideWrapper = h.default.createRef(), t.handleImageLoaded = t.handleImageLoaded.bind(t), t.handleKeyDown = t.handleKeyDown.bind(t), t.handleMouseDown = t.handleMouseDown.bind(t), t.handleResize = t.handleResize.bind(t), t.handleOnSwiped = t.handleOnSwiped.bind(t), t.handleScreenChange = t.handleScreenChange.bind(t), t.handleSwiping = t.handleSwiping.bind(t), t.handleThumbnailSwiping = t.handleThumbnailSwiping.bind(t), t.handleOnThumbnailSwiped = t.handleOnThumbnailSwiped.bind(t), t.onThumbnailMouseLeave = t.onThumbnailMouseLeave.bind(t), t.handleImageError = t.handleImageError.bind(t), t.pauseOrPlay = t.pauseOrPlay.bind(t), t.renderThumbInner = t.renderThumbInner.bind(t), t.renderItem = t.renderItem.bind(t), t.slideLeft = t.slideLeft.bind(t), t.slideRight = t.slideRight.bind(t), t.toggleFullScreen = t.toggleFullScreen.bind(t), t.togglePlay = t.togglePlay.bind(t), t.unthrottledSlideToIndex = t.slideToIndex, t.slideToIndex = xe(t.unthrottledSlideToIndex, e.slideDuration, { trailing: !1 }), e.lazyLoad && (t.lazyLoaded = []), t;
757
+ }
758
+ return function(e, t) {
759
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
760
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Se(e, t);
761
+ }(r, h.default.Component), function(e, t) {
762
+ return t && Kt(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
763
+ }(r, [{ key: "componentDidMount", value: function() {
764
+ var e = this.props, t = e.autoPlay, n = e.useWindowKeyDown;
765
+ t && this.play(), n ? window.addEventListener("keydown", this.handleKeyDown) : this.imageGallery.current.addEventListener("keydown", this.handleKeyDown), window.addEventListener("mousedown", this.handleMouseDown), this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper), this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper), this.addScreenChangeEvent();
766
+ } }, { key: "componentDidUpdate", value: function(e, t) {
767
+ var n = this.props, a = n.items, s = n.lazyLoad, i = n.slideDuration, o = n.slideInterval, u = n.startIndex, c = n.thumbnailPosition, m = n.showThumbnails, p = n.useWindowKeyDown, v = this.state, O = v.currentIndex, w = v.isPlaying, y = e.items.length !== a.length, f = !Tt()(e.items, a), g = e.startIndex !== u, d = e.thumbnailPosition !== c, b = e.showThumbnails !== m;
768
+ o === e.slideInterval && i === e.slideDuration || w && (this.pause(), this.play()), d && (this.removeResizeObserver(), this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper), this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)), b && m && this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper), b && !m && this.removeThumbnailsResizeObserver(), (y || b) && this.handleResize(), t.currentIndex !== O && this.slideThumbnailBar(), e.slideDuration !== i && (this.slideToIndex = xe(this.unthrottledSlideToIndex, i, { trailing: !1 })), !s || e.lazyLoad && !f || (this.lazyLoaded = []), p !== e.useWindowKeyDown && (p ? (this.imageGallery.current.removeEventListener("keydown", this.handleKeyDown), window.addEventListener("keydown", this.handleKeyDown)) : (window.removeEventListener("keydown", this.handleKeyDown), this.imageGallery.current.addEventListener("keydown", this.handleKeyDown))), (g || f) && this.setState({ currentIndex: u, slideStyle: { transition: "none" } });
769
+ } }, { key: "componentWillUnmount", value: function() {
770
+ var e = this.props.useWindowKeyDown;
771
+ window.removeEventListener("mousedown", this.handleMouseDown), this.removeScreenChangeEvent(), this.removeResizeObserver(), this.playPauseIntervalId && (window.clearInterval(this.playPauseIntervalId), this.playPauseIntervalId = null), this.transitionTimer && window.clearTimeout(this.transitionTimer), e ? window.removeEventListener("keydown", this.handleKeyDown) : this.imageGallery.current.removeEventListener("keydown", this.handleKeyDown);
772
+ } }, { key: "onSliding", value: function() {
773
+ var e = this, t = this.state, n = t.currentIndex, a = t.isTransitioning, s = this.props, i = s.onSlide, o = s.slideDuration;
774
+ this.transitionTimer = window.setTimeout(function() {
775
+ a && (e.setState({ isTransitioning: !a, isSwipingThumbnail: !1 }), i && i(n));
776
+ }, o + 50);
777
+ } }, { key: "onThumbnailClick", value: function(e, t) {
778
+ var n = this.props, a = n.onThumbnailClick, s = n.items, i = this.state.currentIndex;
779
+ e.target.parentNode.parentNode.blur(), i !== t && (s.length === 2 ? this.slideToIndexWithStyleReset(t, e) : this.slideToIndex(t, e)), a && a(e, t);
780
+ } }, { key: "onThumbnailMouseOver", value: function(e, t) {
781
+ var n = this;
782
+ this.thumbnailMouseOverTimer && (window.clearTimeout(this.thumbnailMouseOverTimer), this.thumbnailMouseOverTimer = null), this.thumbnailMouseOverTimer = window.setTimeout(function() {
783
+ n.slideToIndex(t), n.pause();
784
+ }, 300);
785
+ } }, { key: "onThumbnailMouseLeave", value: function() {
786
+ if (this.thumbnailMouseOverTimer) {
787
+ var e = this.props.autoPlay;
788
+ window.clearTimeout(this.thumbnailMouseOverTimer), this.thumbnailMouseOverTimer = null, e && this.play();
789
+ }
790
+ } }, { key: "setThumbsTranslate", value: function(e) {
791
+ this.setState({ thumbsTranslate: e });
792
+ } }, { key: "setModalFullscreen", value: function(e) {
793
+ var t = this.props.onScreenChange;
794
+ this.setState({ modalFullscreen: e }), t && t(e);
795
+ } }, { key: "getThumbsTranslate", value: function(e) {
796
+ var t, n = this.props, a = n.disableThumbnailScroll, s = n.items, i = this.state, o = i.thumbnailsWrapperWidth, u = i.thumbnailsWrapperHeight, c = this.thumbnails && this.thumbnails.current;
797
+ if (a) return 0;
798
+ if (c) {
799
+ if (this.isThumbnailVertical()) {
800
+ if (c.scrollHeight <= u) return 0;
801
+ t = c.scrollHeight - u;
802
+ } else {
803
+ if (c.scrollWidth <= o || o <= 0) return 0;
804
+ t = c.scrollWidth - o;
805
+ }
806
+ return e * (t / (s.length - 1));
807
+ }
808
+ return 0;
809
+ } }, { key: "getThumbnailPositionClassName", value: function(e) {
810
+ switch (e) {
811
+ case "left":
812
+ e = " ".concat("image-gallery-thumbnails-left");
813
+ break;
814
+ case "right":
815
+ e = " ".concat("image-gallery-thumbnails-right");
816
+ break;
817
+ case "bottom":
818
+ e = " ".concat("image-gallery-thumbnails-bottom");
819
+ break;
820
+ case "top":
821
+ e = " ".concat("image-gallery-thumbnails-top");
822
+ }
823
+ return e;
824
+ } }, { key: "getAlignmentClassName", value: function(e) {
825
+ var t = this.state.currentIndex, n = this.props, a = n.infinite, s = n.items, i = "", o = "image-gallery-left", u = "image-gallery-right";
826
+ switch (e) {
827
+ case t - 1:
828
+ i = " ".concat(o);
829
+ break;
830
+ case t:
831
+ i = " ".concat("image-gallery-center");
832
+ break;
833
+ case t + 1:
834
+ i = " ".concat(u);
835
+ }
836
+ return s.length >= 3 && a && (e === 0 && t === s.length - 1 ? i = " ".concat(u) : e === s.length - 1 && t === 0 && (i = " ".concat(o))), i;
837
+ } }, { key: "getTranslateXForTwoSlide", value: function(e) {
838
+ var t = this.state, n = t.currentIndex, a = t.currentSlideOffset, s = t.previousIndex, i = n !== s, o = e === 0 && s === 0, u = e === 1 && s === 1, c = e === 0 && n === 1, m = e === 1 && n === 0, p = a === 0, v = -100 * n + 100 * e + a;
839
+ return a > 0 ? this.direction = "left" : a < 0 && (this.direction = "right"), m && a > 0 && (v = -100 + a), c && a < 0 && (v = 100 + a), i ? o && p && this.direction === "left" ? v = 100 : u && p && this.direction === "right" && (v = -100) : (m && p && this.direction === "left" && (v = -100), c && p && this.direction === "right" && (v = 100)), v;
840
+ } }, { key: "getThumbnailBarHeight", value: function() {
841
+ return this.isThumbnailVertical() ? { height: this.state.gallerySlideWrapperHeight } : {};
842
+ } }, { key: "getSlideStyle", value: function(e) {
843
+ var t = this.state, n = t.currentIndex, a = t.currentSlideOffset, s = t.slideStyle, i = this.props, o = i.infinite, u = i.items, c = i.useTranslate3D, m = i.isRTL, p = i.slideVertically, v = -100 * n, O = u.length - 1, w = (v + 100 * e) * (m ? -1 : 1) + a;
844
+ o && u.length > 2 && (n === 0 && e === O ? w = -100 * (m ? -1 : 1) + a : n === O && e === 0 && (w = 100 * (m ? -1 : 1) + a)), o && u.length === 2 && (w = this.getTranslateXForTwoSlide(e));
845
+ var y = p ? "translate(0, ".concat(w, "%)") : "translate(".concat(w, "%, 0)");
846
+ return c && (y = p ? "translate3d(0, ".concat(w, "%, 0)") : "translate3d(".concat(w, "%, 0, 0)")), Ge({ display: this.isSlideVisible(e) ? "inherit" : "none", WebkitTransform: y, MozTransform: y, msTransform: y, OTransform: y, transform: y }, s);
847
+ } }, { key: "getCurrentIndex", value: function() {
848
+ return this.state.currentIndex;
849
+ } }, { key: "getThumbnailStyle", value: function() {
850
+ var e, t = this.props, n = t.useTranslate3D, a = t.isRTL, s = this.state, i = s.thumbsTranslate, o = s.thumbsStyle, u = a ? -1 * i : i;
851
+ return this.isThumbnailVertical() ? (e = "translate(0, ".concat(i, "px)"), n && (e = "translate3d(0, ".concat(i, "px, 0)"))) : (e = "translate(".concat(u, "px, 0)"), n && (e = "translate3d(".concat(u, "px, 0, 0)"))), Ge({ WebkitTransform: e, MozTransform: e, msTransform: e, OTransform: e, transform: e }, o);
852
+ } }, { key: "getSlideItems", value: function() {
853
+ var e = this, t = this.state.currentIndex, n = this.props, a = n.items, s = n.slideOnThumbnailOver, i = n.onClick, o = n.lazyLoad, u = n.onTouchMove, c = n.onTouchEnd, m = n.onTouchStart, p = n.onMouseOver, v = n.onMouseLeave, O = n.renderItem, w = n.renderThumbInner, y = n.showThumbnails, f = n.showBullets, g = [], d = [], b = [];
854
+ return a.forEach(function(S, T) {
855
+ var I = e.getAlignmentClassName(T), W = S.originalClass ? " ".concat(S.originalClass) : "", C = S.thumbnailClass ? " ".concat(S.thumbnailClass) : "", x = S.renderItem || O || e.renderItem, j = S.renderThumbInner || w || e.renderThumbInner, P = !o || I || e.lazyLoaded[T];
856
+ P && o && !e.lazyLoaded[T] && (e.lazyLoaded[T] = !0);
857
+ var _ = e.getSlideStyle(T), z = h.default.createElement("div", { "aria-label": "Go to Slide ".concat(T + 1), key: "slide-".concat(T), tabIndex: "-1", className: "image-gallery-slide ".concat(I, " ").concat(W), style: _, onClick: i, onKeyUp: e.handleSlideKeyUp, onTouchMove: u, onTouchEnd: c, onTouchStart: m, onMouseOver: p, onFocus: p, onMouseLeave: v, role: "button" }, P ? x(S) : h.default.createElement("div", { style: { height: "100%" } }));
858
+ if (g.push(z), y && S.thumbnail) {
859
+ var B = N("image-gallery-thumbnail", C, { active: t === T });
860
+ d.push(h.default.createElement("button", { key: "thumbnail-".concat(T), type: "button", tabIndex: "0", "aria-pressed": t === T ? "true" : "false", "aria-label": "Go to Slide ".concat(T + 1), className: B, onMouseLeave: s ? e.onThumbnailMouseLeave : null, onMouseOver: function(k) {
861
+ return e.handleThumbnailMouseOver(k, T);
862
+ }, onFocus: function(k) {
863
+ return e.handleThumbnailMouseOver(k, T);
864
+ }, onKeyUp: function(k) {
865
+ return e.handleThumbnailKeyUp(k, T);
866
+ }, onClick: function(k) {
867
+ return e.onThumbnailClick(k, T);
868
+ } }, j(S)));
869
+ }
870
+ if (f) {
871
+ var F = N("image-gallery-bullet", S.bulletClass, { active: t === T });
872
+ b.push(h.default.createElement("button", { type: "button", key: "bullet-".concat(T), className: F, onClick: function(k) {
873
+ return e.onBulletClick(k, T);
874
+ }, "aria-pressed": t === T ? "true" : "false", "aria-label": "Go to Slide ".concat(T + 1) }));
875
+ }
876
+ }), { slides: g, thumbnails: d, bullets: b };
877
+ } }, { key: "ignoreIsTransitioning", value: function() {
878
+ var e = this.props.items, t = this.state, n = t.previousIndex, a = t.currentIndex, s = e.length - 1;
879
+ return Math.abs(n - a) > 1 && !(n === 0 && a === s) && !(n === s && a === 0);
880
+ } }, { key: "isFirstOrLastSlide", value: function(e) {
881
+ return e === this.props.items.length - 1 || e === 0;
882
+ } }, { key: "slideIsTransitioning", value: function(e) {
883
+ var t = this.state, n = t.isTransitioning, a = t.previousIndex, s = t.currentIndex;
884
+ return n && !(e === a || e === s);
885
+ } }, { key: "isSlideVisible", value: function(e) {
886
+ return !this.slideIsTransitioning(e) || this.ignoreIsTransitioning() && !this.isFirstOrLastSlide(e);
887
+ } }, { key: "slideThumbnailBar", value: function() {
888
+ var e = this.state, t = e.currentIndex, n = e.isSwipingThumbnail, a = -this.getThumbsTranslate(t);
889
+ n || (t === 0 ? this.setState({ thumbsTranslate: 0, thumbsSwipedTranslate: 0 }) : this.setState({ thumbsTranslate: a, thumbsSwipedTranslate: a }));
890
+ } }, { key: "canSlide", value: function() {
891
+ return this.props.items.length >= 2;
892
+ } }, { key: "canSlideLeft", value: function() {
893
+ var e = this.props, t = e.infinite, n = e.isRTL;
894
+ return t || (n ? this.canSlideNext() : this.canSlidePrevious());
895
+ } }, { key: "canSlideRight", value: function() {
896
+ var e = this.props, t = e.infinite, n = e.isRTL;
897
+ return t || (n ? this.canSlidePrevious() : this.canSlideNext());
898
+ } }, { key: "canSlidePrevious", value: function() {
899
+ return this.state.currentIndex > 0;
900
+ } }, { key: "canSlideNext", value: function() {
901
+ return this.state.currentIndex < this.props.items.length - 1;
902
+ } }, { key: "handleSwiping", value: function(e) {
903
+ var t = e.event, n = e.absX, a = e.absY, s = e.dir, i = this.props, o = i.disableSwipe, u = i.stopPropagation, c = i.swipingTransitionDuration, m = this.state, p = m.galleryWidth, v = m.galleryHeight, O = m.isTransitioning, w = m.swipingUpDown, y = m.swipingLeftRight, f = this.props.slideVertically;
904
+ if ((s !== M && s !== D && !w || y || (w || this.setState({ swipingUpDown: !0 }), f)) && (s !== R && s !== L || y || this.setState({ swipingLeftRight: !0 }), !o)) if (u && t.preventDefault(), O) this.setState({ currentSlideOffset: 0 });
905
+ else {
906
+ if ((s === R || s === L) && f || (s === M || s === D) && !f) return;
907
+ var g = G(G(G(G({}, R, -1), L, 1), M, -1), D, 1)[s], d = n / p * 100;
908
+ f && (d = a / v * 100), Math.abs(d) >= 100 && (d = 100);
909
+ var b = { transition: "transform ".concat(c, "ms ease-out") };
910
+ this.setState({ currentSlideOffset: g * d, slideStyle: b });
911
+ }
912
+ } }, { key: "handleThumbnailSwiping", value: function(e) {
913
+ var t = e.event, n = e.absX, a = e.absY, s = e.dir, i = this.props, o = i.stopPropagation, u = i.swipingThumbnailTransitionDuration, c = this.state, m = c.thumbsSwipedTranslate, p = c.thumbnailsWrapperHeight, v = c.thumbnailsWrapperWidth, O = c.swipingUpDown, w = c.swipingLeftRight;
914
+ if (this.isThumbnailVertical()) {
915
+ if ((s === R || s === L || w) && !O) return void (w || this.setState({ swipingLeftRight: !0 }));
916
+ s !== M && s !== D || O || this.setState({ swipingUpDown: !0 });
917
+ } else {
918
+ if ((s === M || s === D || O) && !w) return void (O || this.setState({ swipingUpDown: !0 }));
919
+ s !== R && s !== L || w || this.setState({ swipingLeftRight: !0 });
920
+ }
921
+ var y, f, g, d, b, S = this.thumbnails && this.thumbnails.current;
922
+ if (this.isThumbnailVertical() ? (y = m + (s === D ? a : -a), f = S.scrollHeight - p + 20, g = Math.abs(y) > f, d = y > 20, b = S.scrollHeight <= p) : (y = m + (s === L ? n : -n), f = S.scrollWidth - v + 20, g = Math.abs(y) > f, d = y > 20, b = S.scrollWidth <= v), !b && (s !== R && s !== M || !g) && (s !== L && s !== D || !d)) {
923
+ o && t.stopPropagation();
924
+ var T = { transition: "transform ".concat(u, "ms ease-out") };
925
+ this.setState({ thumbsTranslate: y, thumbsStyle: T });
926
+ }
927
+ } }, { key: "handleOnThumbnailSwiped", value: function() {
928
+ var e = this.state.thumbsTranslate, t = this.props.slideDuration;
929
+ this.resetSwipingDirection(), this.setState({ isSwipingThumbnail: !0, thumbsSwipedTranslate: e, thumbsStyle: { transition: "all ".concat(t, "ms ease-out") } });
930
+ } }, { key: "sufficientSwipe", value: function() {
931
+ var e = this.state.currentSlideOffset, t = this.props.swipeThreshold;
932
+ return Math.abs(e) > t;
933
+ } }, { key: "resetSwipingDirection", value: function() {
934
+ var e = this.state, t = e.swipingUpDown, n = e.swipingLeftRight;
935
+ t && this.setState({ swipingUpDown: !1 }), n && this.setState({ swipingLeftRight: !1 });
936
+ } }, { key: "handleOnSwiped", value: function(e) {
937
+ var t = e.event, n = e.dir, a = e.velocity, s = this.props, i = s.disableSwipe, o = s.stopPropagation, u = s.flickThreshold, c = this.props.slideVertically;
938
+ if (!i) {
939
+ var m = this.props.isRTL;
940
+ o && t.stopPropagation(), this.resetSwipingDirection();
941
+ var p = (n === R ? 1 : -1) * (m ? -1 : 1);
942
+ c && (p = n === M ? 1 : -1);
943
+ var v = c ? a > u && !(n === R || n === L) : a > u && !(n === M || n === D);
944
+ this.handleOnSwipedTo(p, v);
945
+ }
946
+ } }, { key: "handleOnSwipedTo", value: function(e, t) {
947
+ var n = this.state, a = n.currentIndex, s = n.isTransitioning, i = a;
948
+ !this.sufficientSwipe() && !t || s || (i += e), (e === -1 && !this.canSlideLeft() || e === 1 && !this.canSlideRight()) && (i = a), this.unthrottledSlideToIndex(i);
949
+ } }, { key: "handleMouseDown", value: function() {
950
+ this.imageGallery.current.classList.add("image-gallery-using-mouse");
951
+ } }, { key: "handleKeyDown", value: function(e) {
952
+ var t = this.props, n = t.disableKeyDown, a = t.useBrowserFullscreen, s = this.state.isFullscreen;
953
+ if (this.imageGallery.current.classList.remove("image-gallery-using-mouse"), !n) switch (parseInt(e.keyCode || e.which || 0, 10)) {
954
+ case 37:
955
+ this.canSlideLeft() && !this.playPauseIntervalId && this.slideLeft(e);
956
+ break;
957
+ case 39:
958
+ this.canSlideRight() && !this.playPauseIntervalId && this.slideRight(e);
959
+ break;
960
+ case 27:
961
+ s && !a && this.exitFullScreen();
962
+ }
963
+ } }, { key: "handleImageError", value: function(e) {
964
+ var t = this.props.onErrorImageURL;
965
+ t && e.target.src.indexOf(t) === -1 && (e.target.src = t);
966
+ } }, { key: "removeThumbnailsResizeObserver", value: function() {
967
+ this.resizeThumbnailWrapperObserver && this.thumbnailsWrapper && this.thumbnailsWrapper.current && (this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current), this.resizeThumbnailWrapperObserver = null);
968
+ } }, { key: "removeResizeObserver", value: function() {
969
+ this.resizeSlideWrapperObserver && this.imageGallerySlideWrapper && this.imageGallerySlideWrapper.current && (this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current), this.resizeSlideWrapperObserver = null), this.removeThumbnailsResizeObserver();
970
+ } }, { key: "handleResize", value: function() {
971
+ var e = this.state.currentIndex;
972
+ this.imageGallery && (this.imageGallery && this.imageGallery.current && this.setState({ galleryWidth: this.imageGallery.current.offsetWidth, galleryHeight: this.imageGallery.current.offsetHeight }), this.imageGallerySlideWrapper && this.imageGallerySlideWrapper.current && this.setState({ gallerySlideWrapperHeight: this.imageGallerySlideWrapper.current.offsetHeight }), this.setThumbsTranslate(-this.getThumbsTranslate(e)));
973
+ } }, { key: "initSlideWrapperResizeObserver", value: function(e) {
974
+ var t = this;
975
+ e && !e.current || (this.resizeSlideWrapperObserver = new Re(he(function(n) {
976
+ n && n.forEach(function(a) {
977
+ t.setState({ thumbnailsWrapperWidth: a.contentRect.width }, t.handleResize);
978
+ });
979
+ }, 50)), this.resizeSlideWrapperObserver.observe(e.current));
980
+ } }, { key: "initThumbnailWrapperResizeObserver", value: function(e) {
981
+ var t = this;
982
+ e && !e.current || (this.resizeThumbnailWrapperObserver = new Re(he(function(n) {
983
+ n && n.forEach(function(a) {
984
+ t.setState({ thumbnailsWrapperHeight: a.contentRect.height }, t.handleResize);
985
+ });
986
+ }, 50)), this.resizeThumbnailWrapperObserver.observe(e.current));
987
+ } }, { key: "toggleFullScreen", value: function() {
988
+ this.state.isFullscreen ? this.exitFullScreen() : this.fullScreen();
989
+ } }, { key: "togglePlay", value: function() {
990
+ this.playPauseIntervalId ? this.pause() : this.play();
991
+ } }, { key: "handleScreenChange", value: function() {
992
+ var e = this.props, t = e.onScreenChange, n = e.useBrowserFullscreen, a = document.fullscreenElement || document.msFullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement, s = this.imageGallery.current === a;
993
+ t && t(s), n && this.setState({ isFullscreen: s });
994
+ } }, { key: "slideToIndex", value: function(e, t) {
995
+ var n = this.state, a = n.currentIndex, s = n.isTransitioning, i = this.props, o = i.items, u = i.slideDuration, c = i.onBeforeSlide;
996
+ if (!s) {
997
+ t && this.playPauseIntervalId && (this.pause(!1), this.play(!1));
998
+ var m = o.length - 1, p = e;
999
+ e < 0 ? p = m : e > m && (p = 0), c && p !== a && c(p), this.setState({ previousIndex: a, currentIndex: p, isTransitioning: p !== a, currentSlideOffset: 0, slideStyle: { transition: "all ".concat(u, "ms ease-out") } }, this.onSliding);
1000
+ }
1001
+ } }, { key: "slideLeft", value: function(e) {
1002
+ var t = this.props.isRTL;
1003
+ this.slideTo(e, t ? "right" : "left");
1004
+ } }, { key: "slideRight", value: function(e) {
1005
+ var t = this.props.isRTL;
1006
+ this.slideTo(e, t ? "left" : "right");
1007
+ } }, { key: "slideTo", value: function(e, t) {
1008
+ var n = this.state, a = n.currentIndex, s = n.isTransitioning, i = this.props.items, o = a + (t === "left" ? -1 : 1);
1009
+ s || (i.length === 2 ? this.slideToIndexWithStyleReset(o, e) : this.slideToIndex(o, e));
1010
+ } }, { key: "slideToIndexWithStyleReset", value: function(e, t) {
1011
+ var n = this, a = this.state, s = a.currentIndex, i = a.currentSlideOffset;
1012
+ this.setState({ currentSlideOffset: i + (s > e ? 1e-3 : -1e-3), slideStyle: { transition: "none" } }, function() {
1013
+ window.setTimeout(function() {
1014
+ return n.slideToIndex(e, t);
1015
+ }, 25);
1016
+ });
1017
+ } }, { key: "handleThumbnailMouseOver", value: function(e, t) {
1018
+ this.props.slideOnThumbnailOver && this.onThumbnailMouseOver(e, t);
1019
+ } }, { key: "handleThumbnailKeyUp", value: function(e, t) {
1020
+ He(e) && this.onThumbnailClick(e, t);
1021
+ } }, { key: "handleSlideKeyUp", value: function(e) {
1022
+ He(e) && (0, this.props.onClick)(e);
1023
+ } }, { key: "isThumbnailVertical", value: function() {
1024
+ var e = this.props.thumbnailPosition;
1025
+ return e === "left" || e === "right";
1026
+ } }, { key: "addScreenChangeEvent", value: function() {
1027
+ var e = this;
1028
+ qe.forEach(function(t) {
1029
+ document.addEventListener(t, e.handleScreenChange);
1030
+ });
1031
+ } }, { key: "removeScreenChangeEvent", value: function() {
1032
+ var e = this;
1033
+ qe.forEach(function(t) {
1034
+ document.removeEventListener(t, e.handleScreenChange);
1035
+ });
1036
+ } }, { key: "fullScreen", value: function() {
1037
+ var e = this.props.useBrowserFullscreen, t = this.imageGallery.current;
1038
+ e ? t.requestFullscreen ? t.requestFullscreen() : t.msRequestFullscreen ? t.msRequestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.webkitRequestFullscreen ? t.webkitRequestFullscreen() : this.setModalFullscreen(!0) : this.setModalFullscreen(!0), this.setState({ isFullscreen: !0 });
1039
+ } }, { key: "exitFullScreen", value: function() {
1040
+ var e = this.state.isFullscreen, t = this.props.useBrowserFullscreen;
1041
+ e && (t ? document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.msExitFullscreen ? document.msExitFullscreen() : this.setModalFullscreen(!1) : this.setModalFullscreen(!1), this.setState({ isFullscreen: !1 }));
1042
+ } }, { key: "pauseOrPlay", value: function() {
1043
+ var e = this.props.infinite, t = this.state.currentIndex;
1044
+ e || this.canSlideRight() ? this.slideToIndex(t + 1) : this.pause();
1045
+ } }, { key: "play", value: function() {
1046
+ var e = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], t = this.props, n = t.onPlay, a = t.slideInterval, s = t.slideDuration, i = this.state.currentIndex;
1047
+ this.playPauseIntervalId || (this.setState({ isPlaying: !0 }), this.playPauseIntervalId = window.setInterval(this.pauseOrPlay, Math.max(a, s)), n && e && n(i));
1048
+ } }, { key: "pause", value: function() {
1049
+ var e = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], t = this.props.onPause, n = this.state.currentIndex;
1050
+ this.playPauseIntervalId && (window.clearInterval(this.playPauseIntervalId), this.playPauseIntervalId = null, this.setState({ isPlaying: !1 }), t && e && t(n));
1051
+ } }, { key: "isImageLoaded", value: function(e) {
1052
+ return !!this.loadedImages[e.original] || (this.loadedImages[e.original] = !0, !1);
1053
+ } }, { key: "handleImageLoaded", value: function(e, t) {
1054
+ var n = this.props.onImageLoad;
1055
+ !this.loadedImages[t] && n && (this.loadedImages[t] = !0, n(e));
1056
+ } }, { key: "renderItem", value: function(e) {
1057
+ var t = this.state.isFullscreen, n = this.props.onImageError || this.handleImageError;
1058
+ return h.default.createElement(Ct, { description: e.description, fullscreen: e.fullscreen, handleImageLoaded: this.handleImageLoaded, isFullscreen: t, onImageError: n, original: e.original, originalAlt: e.originalAlt, originalHeight: e.originalHeight, originalWidth: e.originalWidth, originalTitle: e.originalTitle, sizes: e.sizes, loading: e.loading, srcSet: e.srcSet });
1059
+ } }, { key: "renderThumbInner", value: function(e) {
1060
+ var t = this.props.onThumbnailError || this.handleImageError;
1061
+ return h.default.createElement("span", { className: "image-gallery-thumbnail-inner" }, h.default.createElement("img", { className: "image-gallery-thumbnail-image", src: e.thumbnail, height: e.thumbnailHeight, width: e.thumbnailWidth, alt: e.thumbnailAlt, title: e.thumbnailTitle, loading: e.thumbnailLoading, onError: t }), e.thumbnailLabel && h.default.createElement("div", { className: "image-gallery-thumbnail-label" }, e.thumbnailLabel));
1062
+ } }, { key: "render", value: function() {
1063
+ var e = this.state, t = e.currentIndex, n = e.isFullscreen, a = e.modalFullscreen, s = e.isPlaying, i = this.props, o = i.additionalClass, u = i.disableThumbnailSwipe, c = i.indexSeparator, m = i.isRTL, p = i.items, v = i.thumbnailPosition, O = i.renderFullscreenButton, w = i.renderCustomControls, y = i.renderLeftNav, f = i.renderRightNav, g = i.renderTopNav, d = i.renderBottomNav, b = i.showBullets, S = i.showFullscreenButton, T = i.showIndex, I = i.showThumbnails, W = i.showNav, C = i.showPlayButton, x = i.slideVertically, j = i.renderPlayPauseButton, P = this.getThumbnailStyle(), _ = this.getSlideItems(), z = _.slides, B = _.thumbnails, F = _.bullets, k = N("image-gallery-slide-wrapper", this.getThumbnailPositionClassName(v), { "image-gallery-rtl": m }), A = N("image-gallery-bullets", { "image-gallery-bullets-vertical": x }), K = h.default.createElement("div", { ref: this.imageGallerySlideWrapper, className: k }, w && w(), this.canSlide() ? h.default.createElement(h.default.Fragment, null, W && h.default.createElement(h.default.Fragment, null, x ? g(this.slideLeft, !this.canSlideLeft()) : y(this.slideLeft, !this.canSlideLeft()), x ? d(this.slideRight, !this.canSlideRight()) : f(this.slideRight, !this.canSlideRight())), h.default.createElement(Ae, { className: "image-gallery-swipe", delta: 0, onSwiping: this.handleSwiping, onSwiped: this.handleOnSwiped }, h.default.createElement("div", { className: "image-gallery-slides" }, z))) : h.default.createElement("div", { className: "image-gallery-slides" }, z), C && j(this.togglePlay, s), b && h.default.createElement("div", { className: A }, h.default.createElement("div", { className: "image-gallery-bullets-container", role: "navigation", "aria-label": "Bullet Navigation" }, F)), S && O(this.toggleFullScreen, n), T && h.default.createElement("div", { className: "image-gallery-index" }, h.default.createElement("span", { className: "image-gallery-index-current" }, t + 1), h.default.createElement("span", { className: "image-gallery-index-separator" }, c), h.default.createElement("span", { className: "image-gallery-index-total" }, p.length))), ie = N("image-gallery", o, { "fullscreen-modal": a }), ae = N("image-gallery-content", this.getThumbnailPositionClassName(v), { fullscreen: n }), se = N("image-gallery-thumbnails-wrapper", this.getThumbnailPositionClassName(v), { "thumbnails-wrapper-rtl": !this.isThumbnailVertical() && m }, { "thumbnails-swipe-horizontal": !this.isThumbnailVertical() && !u }, { "thumbnails-swipe-vertical": this.isThumbnailVertical() && !u });
1064
+ return h.default.createElement("div", { ref: this.imageGallery, className: ie, "aria-live": "polite" }, h.default.createElement("div", { className: ae }, (v === "bottom" || v === "right") && K, I && B.length > 0 ? h.default.createElement(Ae, { className: se, delta: 0, onSwiping: !u && this.handleThumbnailSwiping, onSwiped: !u && this.handleOnThumbnailSwiped }, h.default.createElement("div", { className: "image-gallery-thumbnails", ref: this.thumbnailsWrapper, style: this.getThumbnailBarHeight() }, h.default.createElement("nav", { ref: this.thumbnails, className: "image-gallery-thumbnails-container", style: P, "aria-label": "Thumbnail Navigation" }, B))) : null, (v === "top" || v === "left") && K));
1065
+ } }]);
1066
+ }();
1067
+ Te.propTypes = { flickThreshold: l.number, items: (0, l.arrayOf)((0, l.shape)({ bulletClass: l.string, bulletOnClick: l.func, description: l.string, original: l.string, originalHeight: l.number, originalWidth: l.number, loading: l.string, thumbnailHeight: l.number, thumbnailWidth: l.number, thumbnailLoading: l.string, fullscreen: l.string, originalAlt: l.string, originalTitle: l.string, thumbnail: l.string, thumbnailAlt: l.string, thumbnailLabel: l.string, thumbnailTitle: l.string, originalClass: l.string, thumbnailClass: l.string, renderItem: l.func, renderThumbInner: l.func, imageSet: Xt, srcSet: l.string, sizes: l.string })).isRequired, showNav: l.bool, autoPlay: l.bool, lazyLoad: l.bool, infinite: l.bool, showIndex: l.bool, showBullets: l.bool, showThumbnails: l.bool, showPlayButton: l.bool, showFullscreenButton: l.bool, disableThumbnailScroll: l.bool, disableKeyDown: l.bool, disableSwipe: l.bool, disableThumbnailSwipe: l.bool, useBrowserFullscreen: l.bool, onErrorImageURL: l.string, indexSeparator: l.string, thumbnailPosition: (0, l.oneOf)(["top", "bottom", "left", "right"]), startIndex: l.number, slideDuration: l.number, slideInterval: l.number, slideOnThumbnailOver: l.bool, swipeThreshold: l.number, swipingTransitionDuration: l.number, swipingThumbnailTransitionDuration: l.number, onSlide: l.func, onBeforeSlide: l.func, onScreenChange: l.func, onPause: l.func, onPlay: l.func, onClick: l.func, onImageLoad: l.func, onImageError: l.func, onTouchMove: l.func, onTouchEnd: l.func, onTouchStart: l.func, onMouseOver: l.func, onMouseLeave: l.func, onBulletClick: l.func, onThumbnailError: l.func, onThumbnailClick: l.func, renderCustomControls: l.func, renderLeftNav: l.func, renderRightNav: l.func, renderTopNav: l.func, renderBottomNav: l.func, renderPlayPauseButton: l.func, renderFullscreenButton: l.func, renderItem: l.func, renderThumbInner: l.func, stopPropagation: l.bool, additionalClass: l.string, useTranslate3D: l.bool, isRTL: l.bool, useWindowKeyDown: l.bool, slideVertically: l.bool }, Te.defaultProps = { onErrorImageURL: "", additionalClass: "", showNav: !0, autoPlay: !1, lazyLoad: !1, infinite: !0, showIndex: !1, showBullets: !1, showThumbnails: !0, showPlayButton: !0, showFullscreenButton: !0, disableThumbnailScroll: !1, disableKeyDown: !1, disableSwipe: !1, disableThumbnailSwipe: !1, useTranslate3D: !0, isRTL: !1, useBrowserFullscreen: !0, flickThreshold: 0.4, stopPropagation: !1, indexSeparator: " / ", thumbnailPosition: "bottom", startIndex: 0, slideDuration: 450, swipingTransitionDuration: 0, swipingThumbnailTransitionDuration: 0, onSlide: null, onBeforeSlide: null, onScreenChange: null, onPause: null, onPlay: null, onClick: null, onImageLoad: null, onImageError: null, onTouchMove: null, onTouchEnd: null, onTouchStart: null, onMouseOver: null, onMouseLeave: null, onBulletClick: null, onThumbnailError: null, onThumbnailClick: null, renderCustomControls: null, renderThumbInner: null, renderItem: null, slideInterval: 3e3, slideOnThumbnailOver: !1, swipeThreshold: 30, slideVertically: !1, renderLeftNav: function(r, e) {
1068
+ return h.default.createElement(Bt, { onClick: r, disabled: e });
1069
+ }, renderRightNav: function(r, e) {
1070
+ return h.default.createElement(At, { onClick: r, disabled: e });
1071
+ }, renderTopNav: function(r, e) {
1072
+ return h.default.createElement(Ht, { onClick: r, disabled: e });
1073
+ }, renderBottomNav: function(r, e) {
1074
+ return h.default.createElement(Vt, { onClick: r, disabled: e });
1075
+ }, renderPlayPauseButton: function(r, e) {
1076
+ return h.default.createElement(Ut, { onClick: r, isPlaying: e });
1077
+ }, renderFullscreenButton: function(r, e) {
1078
+ return h.default.createElement(zt, { onClick: r, isFullscreen: e });
1079
+ }, useWindowKeyDown: !0 };
1080
+ const Yt = Te;
1081
+ var $t = Ve.A;
1082
+ const Qt = ({ images: r, block: e }) => /* @__PURE__ */ it(
1083
+ $t,
1084
+ {
1085
+ items: r,
1086
+ additionalClass: e,
1087
+ showFullscreenButton: !1,
1088
+ showPlayButton: !1
1089
+ }
1090
+ );
1091
+ export {
1092
+ Qt as Gallery
1093
+ };
1094
+ //# sourceMappingURL=Gallery.js.map