primereact 10.0.2 → 10.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/README.md +1 -4
  2. package/autocomplete/autocomplete.cjs.js +4 -2
  3. package/autocomplete/autocomplete.cjs.min.js +1 -1
  4. package/autocomplete/autocomplete.esm.js +4 -2
  5. package/autocomplete/autocomplete.esm.min.js +1 -1
  6. package/autocomplete/autocomplete.js +4 -2
  7. package/autocomplete/autocomplete.min.js +1 -1
  8. package/blockui/blockui.cjs.js +3 -6
  9. package/blockui/blockui.cjs.min.js +1 -1
  10. package/blockui/blockui.esm.js +3 -6
  11. package/blockui/blockui.esm.min.js +1 -1
  12. package/blockui/blockui.js +3 -6
  13. package/blockui/blockui.min.js +1 -1
  14. package/calendar/calendar.cjs.js +11 -11
  15. package/calendar/calendar.cjs.min.js +1 -1
  16. package/calendar/calendar.esm.js +11 -11
  17. package/calendar/calendar.esm.min.js +1 -1
  18. package/calendar/calendar.js +11 -11
  19. package/calendar/calendar.min.js +1 -1
  20. package/carousel/carousel.cjs.js +3 -1
  21. package/carousel/carousel.cjs.min.js +1 -1
  22. package/carousel/carousel.esm.js +3 -1
  23. package/carousel/carousel.esm.min.js +1 -1
  24. package/carousel/carousel.js +3 -1
  25. package/carousel/carousel.min.js +1 -1
  26. package/checkbox/checkbox.d.ts +5 -5
  27. package/componentbase/componentbase.d.ts +8 -0
  28. package/contextmenu/contextmenu.cjs.js +4 -1
  29. package/contextmenu/contextmenu.cjs.min.js +1 -1
  30. package/contextmenu/contextmenu.esm.js +4 -1
  31. package/contextmenu/contextmenu.esm.min.js +1 -1
  32. package/contextmenu/contextmenu.js +4 -1
  33. package/contextmenu/contextmenu.min.js +1 -1
  34. package/core/core.js +288 -31
  35. package/core/core.min.js +8 -8
  36. package/datatable/datatable.cjs.js +92 -41
  37. package/datatable/datatable.cjs.min.js +1 -1
  38. package/datatable/datatable.d.ts +27 -0
  39. package/datatable/datatable.esm.js +92 -41
  40. package/datatable/datatable.esm.min.js +1 -1
  41. package/datatable/datatable.js +92 -41
  42. package/datatable/datatable.min.js +1 -1
  43. package/dataview/dataview.cjs.js +24 -22
  44. package/dataview/dataview.cjs.min.js +1 -1
  45. package/dataview/dataview.esm.js +24 -22
  46. package/dataview/dataview.esm.min.js +1 -1
  47. package/dataview/dataview.js +24 -22
  48. package/dataview/dataview.min.js +1 -1
  49. package/dialog/dialog.cjs.js +2 -4
  50. package/dialog/dialog.cjs.min.js +1 -1
  51. package/dialog/dialog.esm.js +2 -4
  52. package/dialog/dialog.esm.min.js +1 -1
  53. package/dialog/dialog.js +2 -4
  54. package/dialog/dialog.min.js +1 -1
  55. package/dropdown/dropdown.cjs.js +29 -17
  56. package/dropdown/dropdown.cjs.min.js +1 -1
  57. package/dropdown/dropdown.esm.js +29 -17
  58. package/dropdown/dropdown.esm.min.js +1 -1
  59. package/dropdown/dropdown.js +29 -17
  60. package/dropdown/dropdown.min.js +1 -1
  61. package/editor/editor.cjs.js +1 -1
  62. package/editor/editor.cjs.min.js +1 -1
  63. package/editor/editor.esm.js +1 -1
  64. package/editor/editor.esm.min.js +1 -1
  65. package/editor/editor.js +1 -1
  66. package/editor/editor.min.js +1 -1
  67. package/fieldset/fieldset.cjs.js +2 -2
  68. package/fieldset/fieldset.cjs.min.js +1 -1
  69. package/fieldset/fieldset.esm.js +2 -2
  70. package/fieldset/fieldset.esm.min.js +1 -1
  71. package/fieldset/fieldset.js +3 -3
  72. package/fieldset/fieldset.min.js +1 -1
  73. package/galleria/galleria.cjs.js +3 -5
  74. package/galleria/galleria.cjs.min.js +1 -1
  75. package/galleria/galleria.esm.js +3 -5
  76. package/galleria/galleria.esm.min.js +1 -1
  77. package/galleria/galleria.js +3 -5
  78. package/galleria/galleria.min.js +1 -1
  79. package/hooks/hooks.cjs.js +2 -1
  80. package/hooks/hooks.cjs.min.js +1 -1
  81. package/hooks/hooks.d.ts +1 -1
  82. package/hooks/hooks.esm.js +2 -1
  83. package/hooks/hooks.esm.min.js +1 -1
  84. package/hooks/hooks.js +2 -1
  85. package/hooks/hooks.min.js +1 -1
  86. package/icons/arrowdown/index.cjs.js +7 -0
  87. package/icons/arrowdown/index.esm.js +7 -0
  88. package/icons/arrowdown/index.js +7 -0
  89. package/icons/arrowup/index.cjs.js +7 -0
  90. package/icons/arrowup/index.esm.js +7 -0
  91. package/icons/arrowup/index.js +7 -0
  92. package/icons/ban/index.cjs.js +7 -0
  93. package/icons/ban/index.esm.js +7 -0
  94. package/icons/ban/index.js +7 -0
  95. package/icons/download/index.cjs.js +7 -0
  96. package/icons/download/index.esm.js +7 -0
  97. package/icons/download/index.js +7 -0
  98. package/icons/exclamationtriangle/index.cjs.js +7 -0
  99. package/icons/exclamationtriangle/index.esm.js +7 -0
  100. package/icons/exclamationtriangle/index.js +7 -0
  101. package/icons/eyeslash/index.cjs.js +7 -0
  102. package/icons/eyeslash/index.esm.js +7 -0
  103. package/icons/eyeslash/index.js +7 -0
  104. package/icons/filter/index.cjs.js +7 -0
  105. package/icons/filter/index.esm.js +7 -0
  106. package/icons/filter/index.js +7 -0
  107. package/icons/filterslash/index.cjs.js +7 -0
  108. package/icons/filterslash/index.esm.js +7 -0
  109. package/icons/filterslash/index.js +7 -0
  110. package/icons/infocircle/index.cjs.js +7 -0
  111. package/icons/infocircle/index.esm.js +7 -0
  112. package/icons/infocircle/index.js +7 -0
  113. package/icons/pencil/index.cjs.js +7 -0
  114. package/icons/pencil/index.esm.js +7 -0
  115. package/icons/pencil/index.js +7 -0
  116. package/icons/plus/index.cjs.js +7 -0
  117. package/icons/plus/index.esm.js +7 -0
  118. package/icons/plus/index.js +7 -0
  119. package/icons/refresh/index.cjs.js +7 -0
  120. package/icons/refresh/index.esm.js +7 -0
  121. package/icons/refresh/index.js +7 -0
  122. package/icons/search/index.cjs.js +7 -0
  123. package/icons/search/index.esm.js +7 -0
  124. package/icons/search/index.js +7 -0
  125. package/icons/searchminus/index.cjs.js +7 -0
  126. package/icons/searchminus/index.esm.js +7 -0
  127. package/icons/searchminus/index.js +7 -0
  128. package/icons/searchplus/index.cjs.js +7 -0
  129. package/icons/searchplus/index.esm.js +7 -0
  130. package/icons/searchplus/index.js +7 -0
  131. package/icons/sortalt/index.cjs.js +7 -0
  132. package/icons/sortalt/index.esm.js +7 -0
  133. package/icons/sortalt/index.js +7 -0
  134. package/icons/sortamountdown/index.cjs.js +7 -0
  135. package/icons/sortamountdown/index.esm.js +7 -0
  136. package/icons/sortamountdown/index.js +7 -0
  137. package/icons/sortamountupalt/index.cjs.js +7 -0
  138. package/icons/sortamountupalt/index.esm.js +7 -0
  139. package/icons/sortamountupalt/index.js +7 -0
  140. package/icons/spinner/index.cjs.js +7 -0
  141. package/icons/spinner/index.esm.js +7 -0
  142. package/icons/spinner/index.js +7 -0
  143. package/icons/star/index.cjs.js +7 -0
  144. package/icons/star/index.esm.js +7 -0
  145. package/icons/star/index.js +7 -0
  146. package/icons/starfill/index.cjs.js +7 -0
  147. package/icons/starfill/index.esm.js +7 -0
  148. package/icons/starfill/index.js +7 -0
  149. package/icons/thlarge/index.cjs.js +7 -0
  150. package/icons/thlarge/index.esm.js +7 -0
  151. package/icons/thlarge/index.js +7 -0
  152. package/icons/timescircle/index.cjs.js +7 -0
  153. package/icons/timescircle/index.esm.js +7 -0
  154. package/icons/timescircle/index.js +7 -0
  155. package/icons/trash/index.cjs.js +7 -0
  156. package/icons/trash/index.esm.js +7 -0
  157. package/icons/trash/index.js +7 -0
  158. package/icons/undo/index.cjs.js +7 -0
  159. package/icons/undo/index.esm.js +7 -0
  160. package/icons/undo/index.js +7 -0
  161. package/icons/upload/index.cjs.js +7 -0
  162. package/icons/upload/index.esm.js +7 -0
  163. package/icons/upload/index.js +7 -0
  164. package/icons/windowmaximize/index.cjs.js +7 -0
  165. package/icons/windowmaximize/index.esm.js +7 -0
  166. package/icons/windowmaximize/index.js +7 -0
  167. package/icons/windowminimize/index.cjs.js +7 -0
  168. package/icons/windowminimize/index.esm.js +7 -0
  169. package/icons/windowminimize/index.js +7 -0
  170. package/image/image.cjs.js +111 -106
  171. package/image/image.cjs.min.js +1 -1
  172. package/image/image.esm.js +111 -106
  173. package/image/image.esm.min.js +1 -1
  174. package/image/image.js +112 -107
  175. package/image/image.min.js +1 -1
  176. package/inputnumber/inputnumber.cjs.js +7 -4
  177. package/inputnumber/inputnumber.cjs.min.js +1 -1
  178. package/inputnumber/inputnumber.esm.js +7 -4
  179. package/inputnumber/inputnumber.esm.min.js +1 -1
  180. package/inputnumber/inputnumber.js +7 -4
  181. package/inputnumber/inputnumber.min.js +1 -1
  182. package/menu/menu.cjs.js +105 -1
  183. package/menu/menu.cjs.min.js +1 -1
  184. package/menu/menu.d.ts +5 -0
  185. package/menu/menu.esm.js +108 -4
  186. package/menu/menu.esm.min.js +1 -1
  187. package/menu/menu.js +105 -1
  188. package/menu/menu.min.js +1 -1
  189. package/message/message.cjs.js +1 -1
  190. package/message/message.cjs.min.js +1 -1
  191. package/message/message.esm.js +1 -1
  192. package/message/message.esm.min.js +1 -1
  193. package/message/message.js +1 -1
  194. package/message/message.min.js +1 -1
  195. package/messages/messages.cjs.js +4 -2
  196. package/messages/messages.cjs.min.js +1 -1
  197. package/messages/messages.esm.js +5 -3
  198. package/messages/messages.esm.min.js +1 -1
  199. package/messages/messages.js +4 -2
  200. package/messages/messages.min.js +1 -1
  201. package/multiselect/multiselect.cjs.js +26 -12
  202. package/multiselect/multiselect.cjs.min.js +1 -1
  203. package/multiselect/multiselect.d.ts +4 -0
  204. package/multiselect/multiselect.esm.js +26 -12
  205. package/multiselect/multiselect.esm.min.js +1 -1
  206. package/multiselect/multiselect.js +26 -12
  207. package/multiselect/multiselect.min.js +1 -1
  208. package/orderlist/orderlist.cjs.js +32 -34
  209. package/orderlist/orderlist.cjs.min.js +1 -1
  210. package/orderlist/orderlist.esm.js +32 -34
  211. package/orderlist/orderlist.esm.min.js +1 -1
  212. package/orderlist/orderlist.js +32 -34
  213. package/orderlist/orderlist.min.js +1 -1
  214. package/package.json +1 -1
  215. package/panel/panel.cjs.js +2 -2
  216. package/panel/panel.cjs.min.js +1 -1
  217. package/panel/panel.esm.js +2 -2
  218. package/panel/panel.esm.min.js +1 -1
  219. package/panel/panel.js +3 -3
  220. package/panel/panel.min.js +1 -1
  221. package/passthrough/tailwind/index.cjs.js +436 -373
  222. package/passthrough/tailwind/index.cjs.min.js +1 -1
  223. package/passthrough/tailwind/index.esm.js +436 -373
  224. package/passthrough/tailwind/index.esm.min.js +1 -1
  225. package/passthrough/tailwind/index.js +436 -373
  226. package/passthrough/tailwind/index.min.js +1 -1
  227. package/primereact.all.cjs.js +330 -191
  228. package/primereact.all.cjs.min.js +1 -1
  229. package/primereact.all.esm.js +330 -191
  230. package/primereact.all.esm.min.js +1 -1
  231. package/primereact.all.js +330 -191
  232. package/primereact.all.min.js +1 -1
  233. package/progressbar/progressbar.cjs.js +1 -1
  234. package/progressbar/progressbar.cjs.min.js +1 -1
  235. package/progressbar/progressbar.esm.js +1 -1
  236. package/progressbar/progressbar.esm.min.js +1 -1
  237. package/progressbar/progressbar.js +1 -1
  238. package/progressbar/progressbar.min.js +1 -1
  239. package/radiobutton/radiobutton.d.ts +3 -3
  240. package/resources/themes/arya-blue/theme.css +397 -518
  241. package/resources/themes/arya-green/theme.css +397 -518
  242. package/resources/themes/arya-orange/theme.css +397 -518
  243. package/resources/themes/arya-purple/theme.css +397 -518
  244. package/resources/themes/bootstrap4-dark-blue/theme.css +398 -518
  245. package/resources/themes/bootstrap4-dark-purple/theme.css +398 -518
  246. package/resources/themes/bootstrap4-light-blue/theme.css +398 -518
  247. package/resources/themes/bootstrap4-light-purple/theme.css +398 -518
  248. package/resources/themes/fluent-light/theme.css +424 -529
  249. package/resources/themes/lara-dark-blue/theme.css +402 -518
  250. package/resources/themes/lara-dark-indigo/theme.css +402 -518
  251. package/resources/themes/lara-dark-purple/theme.css +402 -518
  252. package/resources/themes/lara-dark-teal/theme.css +402 -518
  253. package/resources/themes/lara-light-blue/theme.css +571 -687
  254. package/resources/themes/lara-light-indigo/theme.css +409 -525
  255. package/resources/themes/lara-light-purple/theme.css +409 -525
  256. package/resources/themes/lara-light-teal/theme.css +409 -525
  257. package/resources/themes/luna-amber/theme.css +411 -531
  258. package/resources/themes/luna-blue/theme.css +411 -531
  259. package/resources/themes/luna-green/theme.css +411 -531
  260. package/resources/themes/luna-pink/theme.css +411 -531
  261. package/resources/themes/md-dark-deeppurple/theme.css +669 -739
  262. package/resources/themes/md-dark-indigo/theme.css +669 -739
  263. package/resources/themes/md-light-deeppurple/theme.css +574 -644
  264. package/resources/themes/md-light-indigo/theme.css +574 -644
  265. package/resources/themes/mdc-dark-deeppurple/theme.css +669 -739
  266. package/resources/themes/mdc-dark-indigo/theme.css +669 -739
  267. package/resources/themes/mdc-light-deeppurple/theme.css +574 -644
  268. package/resources/themes/mdc-light-indigo/theme.css +574 -644
  269. package/resources/themes/mira/theme.css +435 -525
  270. package/resources/themes/nano/theme.css +395 -518
  271. package/resources/themes/nova/theme.css +399 -518
  272. package/resources/themes/nova-accent/theme.css +396 -518
  273. package/resources/themes/nova-alt/theme.css +399 -518
  274. package/resources/themes/rhea/theme.css +396 -518
  275. package/resources/themes/saga-blue/theme.css +397 -518
  276. package/resources/themes/saga-green/theme.css +397 -518
  277. package/resources/themes/saga-orange/theme.css +397 -518
  278. package/resources/themes/saga-purple/theme.css +397 -518
  279. package/resources/themes/soho-dark/theme.css +428 -546
  280. package/resources/themes/soho-light/theme.css +407 -523
  281. package/resources/themes/tailwind-light/theme.css +432 -547
  282. package/resources/themes/vela-blue/theme.css +397 -518
  283. package/resources/themes/vela-green/theme.css +397 -518
  284. package/resources/themes/vela-orange/theme.css +397 -518
  285. package/resources/themes/vela-purple/theme.css +397 -518
  286. package/resources/themes/viva-dark/theme.css +421 -523
  287. package/resources/themes/viva-light/theme.css +421 -523
  288. package/scrollpanel/scrollpanel.cjs.js +33 -17
  289. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  290. package/scrollpanel/scrollpanel.esm.js +19 -3
  291. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  292. package/scrollpanel/scrollpanel.js +226 -210
  293. package/scrollpanel/scrollpanel.min.js +1 -1
  294. package/selectbutton/selectbutton.cjs.js +3 -2
  295. package/selectbutton/selectbutton.cjs.min.js +1 -1
  296. package/selectbutton/selectbutton.d.ts +6 -0
  297. package/selectbutton/selectbutton.esm.js +3 -2
  298. package/selectbutton/selectbutton.esm.min.js +1 -1
  299. package/selectbutton/selectbutton.js +4 -3
  300. package/selectbutton/selectbutton.min.js +1 -1
  301. package/sidebar/sidebar.cjs.js +87 -89
  302. package/sidebar/sidebar.cjs.min.js +1 -1
  303. package/sidebar/sidebar.esm.js +87 -89
  304. package/sidebar/sidebar.esm.min.js +1 -1
  305. package/sidebar/sidebar.js +88 -90
  306. package/sidebar/sidebar.min.js +1 -1
  307. package/slider/slider.cjs.js +3 -3
  308. package/slider/slider.cjs.min.js +1 -1
  309. package/slider/slider.esm.js +3 -3
  310. package/slider/slider.esm.min.js +1 -1
  311. package/slider/slider.js +3 -3
  312. package/slider/slider.min.js +1 -1
  313. package/toast/toast.cjs.js +7 -5
  314. package/toast/toast.cjs.min.js +1 -1
  315. package/toast/toast.esm.js +7 -5
  316. package/toast/toast.esm.min.js +1 -1
  317. package/toast/toast.js +8 -6
  318. package/toast/toast.min.js +1 -1
  319. package/tree/tree.cjs.js +24 -2
  320. package/tree/tree.cjs.min.js +1 -1
  321. package/tree/tree.esm.js +24 -2
  322. package/tree/tree.esm.min.js +1 -1
  323. package/tree/tree.js +24 -2
  324. package/tree/tree.min.js +1 -1
  325. package/treeselect/treeselect.d.ts +54 -4
  326. package/utils/utils.cjs.js +30 -0
  327. package/utils/utils.cjs.min.js +1 -1
  328. package/utils/utils.d.ts +3 -0
  329. package/utils/utils.esm.js +30 -0
  330. package/utils/utils.esm.min.js +1 -1
  331. package/utils/utils.js +30 -0
  332. package/utils/utils.min.js +1 -1
  333. package/web-types.json +29 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/api"),t=require("primereact/componentbase"),i=require("primereact/csstransition"),a=require("primereact/hooks"),r=require("primereact/icons/times"),l=require("primereact/portal"),o=require("primereact/ripple"),c=require("primereact/utils"),s=require("primereact/icons/chevronleft"),u=require("primereact/icons/chevronright"),m=require("primereact/icons/chevrondown"),p=require("primereact/icons/chevronup");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function h(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var f=h(e),g=d(n);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},v.apply(this,arguments)}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function I(e,n){if("object"!==b(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function y(e){var n=I(e,"string");return"symbol"===b(n)?n:String(n)}function x(e,n,t){return(n=y(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e){if(Array.isArray(e))return e}function P(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,r,l,o=[],c=!0,s=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=r.call(t)).done)&&(o.push(i.value),o.length!==n);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function S(e,n){if(e){if("string"==typeof e)return O(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,n):void 0}}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,n){return w(e)||P(e,n)||S(e,n)||N()}var C=t.ComponentBase.extend({defaultProps:{__TYPE:"Galleria",id:null,value:null,activeIndex:0,fullScreen:!1,item:null,thumbnail:null,indicator:null,caption:null,className:null,closeIcon:null,style:null,header:null,footer:null,numVisible:3,responsiveOptions:null,showItemNavigators:!1,showThumbnailNavigators:!0,showItemNavigatorsOnHover:!1,changeItemOnIndicatorHover:!1,circular:!1,autoPlay:!1,transitionInterval:4e3,showThumbnails:!0,itemNextIcon:null,itemPrevIcon:null,nextThumbnailIcon:null,prevThumbnailIcon:null,thumbnailsPosition:"bottom",verticalThumbnailViewPortHeight:"300px",showIndicators:!1,showIndicatorsOnItem:!1,indicatorsPosition:"bottom",baseZIndex:0,transitionOptions:null,onItemChange:null,children:void 0},css:{classes:{header:"p-galleria-header",footer:"p-galleria-footer",closeIcon:"p-galleria-close-icon",closeButton:"p-galleria-close p-link",root:function(e){var n=e.props,t=e.context;return c.classNames("p-galleria p-component",{"p-galleria-fullscreen":n.fullScreen,"p-galleria-indicator-onitem":n.showIndicatorsOnItem,"p-galleria-item-nav-onhover":n.showItemNavigatorsOnHover&&!n.fullScreen,"p-input-filled":t&&"filled"===t.inputStyle||"filled"===g.default.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===g.default.ripple},e.thumbnailsPosClassName,e.indicatorPosClassName)},content:"p-galleria-content",mask:function(e){return c.classNames("p-galleria-mask",{"p-galleria-visible":e.visibleState})},thumbnailItem:function(e){var n=e.subProps;return c.classNames("p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":n.current,"p-galleria-thumbnail-item-active":n.active,"p-galleria-thumbnail-item-start":n.start,"p-galleria-thumbnail-item-end":n.end})},thumbnailItemContent:"p-galleria-thumbnail-item-content",previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",previousThumbnailButton:function(e){return c.classNames("p-galleria-thumbnail-prev p-link",{"p-disabled":e.isDisabled})},nextThumbnailIcon:"p-galleria-thumbnail-next-icon",nextThumbnailButton:function(e){return c.classNames("p-galleria-thumbnail-next p-link",{"p-disabled":e.isDisabled})},thumbnailContainer:"p-galleria-thumbnail-container",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailWrapper:"p-galleria-thumbnail-wrapper",previousItemIcon:"p-galleria-item-prev-icon",previousItemButton:function(e){return c.classNames("p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},nextItemIcon:"p-galleria-item-next-icon",nextItemButton:function(e){return c.classNames("p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},caption:"p-galleria-caption",indicator:function(e){return c.classNames("p-galleria-indicator",{"p-highlight":e.isActive})},indicators:"p-galleria-indicators p-reset",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",item:"p-galleria-item",transition:"p-galleria"},styles:"\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n",inlineStyles:{thumbnailItemsContainer:function(e){return{height:e.height}}}}});function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var D=f.memo(f.forwardRef((function(e,n){var t=e.ptm,i=e.cx,r=function(n,i){return t(n,T({hostName:e.hostName},i))},l=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},m=function(n){l(),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:0!==e.activeItemIndex?e.activeItemIndex-1:0}),n&&n.cancelable&&n.preventDefault()},p=function(n){l(),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:e.activeItemIndex+1}),n&&n.cancelable&&n.preventDefault()},d=function(n){l(),e.onActiveItemChange({index:n})},h=function(n){e.changeItemOnIndicatorHover&&(l(),e.onActiveItemChange({index:n}))},g=function(n,t){13===n.which&&(l(),e.onActiveItemChange({index:t}))};a.useMountEffect((function(){e.autoPlay&&e.startSlideShow()}));var v=function(n){var t="p-galleria-indicator-"+n,a=e.activeItemIndex===n,l=e.indicator&&e.indicator(n),s=c.mergeProps({className:i("indicator",{isActive:a}),key:t,tabIndex:0,onClick:function(){return d(n)},onMouseEnter:function(){return h(n)},onKeyDown:function(e){return g(e,n)},"data-p-highlight":a},r("indicator"));return l||(l=f.createElement("button",{type:"button",tabIndex:-1,className:"p-link"},f.createElement(o.Ripple,null))),f.createElement("li",s,l)},b=e.itemTemplate&&e.itemTemplate(e.value[e.activeItemIndex]),I=function(){if(e.showItemNavigators){var n=!e.circular&&0===e.activeItemIndex,t=c.mergeProps({className:i("previousItemIcon")},r("previousItemIcon")),a=c.IconUtils.getJSXIcon(e.itemPrevIcon||f.createElement(s.ChevronLeftIcon,t),T({},t),{props:e}),l=c.mergeProps({type:"button",className:i("previousItemButton",{isDisabled:n}),onClick:m,disabled:n,"data-p-disabled":n},r("previousItemButton"));return f.createElement("button",l,a,f.createElement(o.Ripple,null))}return null}(),y=function(){if(e.showItemNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1,t=c.mergeProps({className:i("nextItemIcon")},r("nextItemIcon")),a=c.IconUtils.getJSXIcon(e.itemNextIcon||f.createElement(u.ChevronRightIcon,t),T({},t),{props:e}),l=c.mergeProps({type:"button",className:i("nextItemButton",{isDisabled:n}),onClick:p,disabled:n,"data-p-disabled":n},r("nextItemButton"));return f.createElement("button",l,a,f.createElement(o.Ripple,null))}return null}(),x=function(){var n=c.mergeProps({className:i("caption")},r("caption"));if(e.caption){var t=e.caption(e.value[e.activeItemIndex]);return f.createElement("div",n,t)}return null}(),w=function(){if(e.showIndicators){for(var n=[],t=c.mergeProps({className:c.classNames(e.indicatorsContentClassName,i("indicators"))},r("indicators")),a=0;a<e.value.length;a++)n.push(v(a));return f.createElement("ul",t,n)}return null}(),P=c.mergeProps({ref:n,className:i("itemWrapper")},r("itemWrapper")),O=c.mergeProps({className:i("itemContainer")},r("itemContainer")),S=c.mergeProps({className:i("item")},r("item"));return f.createElement("div",P,f.createElement("div",O,I,f.createElement("div",S,b),y,x),w)})));function k(e){if(Array.isArray(e))return O(e)}function A(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}D.displayName="GalleriaItem";var U=f.memo((function(e){var n=e.ptm,t=e.cx,i=function(t,i){return n(t,V({hostName:e.hostName},i))},a=e.active?0:null,r=e.template&&e.template(e.item),l=c.mergeProps({className:c.classNames(e.className,t("thumbnailItem",{subProps:e})),"data-p-galleria-thumbnail-item-current":e.current,"data-p-galleria-thumbnail-item-active":e.active,"data-p-galleria-thumbnail-item-start":e.start,"data-p-galleria-thumbnail-item-end":e.end},i("thumbnailItem")),o=c.mergeProps({className:t("thumbnailItemContent"),tabIndex:a,onClick:function(n){e.onItemClick({originalEvent:n,index:e.index})},onKeyDown:function(n){13===n.which&&e.onItemClick({originalEvent:n,index:e.index})}},i("thumbnailItemContent"));return f.createElement("div",l,f.createElement("div",o,r))})),B=f.memo(f.forwardRef((function(e,t){var i=E(f.useState(e.numVisible),2),r=i[0],l=i[1],d=E(f.useState(0),2),h=d[0],v=d[1],b=f.useRef(null),I=f.useRef(null),y=f.useRef(""),x=f.useRef(null),w=f.useRef(null),P=a.usePrevious(r),O=a.usePrevious(e.activeItemIndex),N=f.useContext(n.PrimeReactContext),C=e.ptm,j=e.cx,T=e.sx,D=function(n,t){return C(n,V({hostName:e.hostName},t))},R=E(a.useResizeListener({listener:function(){F()},when:e.responsiveOptions}),1)[0],B=function(n){var t=h+n;n<0&&-1*t+r>e.value.length-1?t=r-e.value.length:n>0&&t>0&&(t=0),e.circular&&(n<0&&e.value.length-1===e.activeItemIndex?t=0:n>0&&0===e.activeItemIndex&&(t=r-e.value.length)),b.current&&(c.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(t*(100/r),"%, 0)"):"translate3d(".concat(t*(100/r),"%, 0, 0)"),b.current.style.transition="transform 500ms ease 0s"),v(t)},q=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},M=function(){var e=Math.floor(r/2);return r%2?e:e-1},G=function(n){q();var t=0!==e.activeItemIndex?e.activeItemIndex-1:0;r-(t+h)-1>M()&&(-1*h!=0||e.circular)&&B(1),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:t}),n.cancelable&&n.preventDefault()},W=function(n){q();var t=e.activeItemIndex+1;t+h>M()&&(-1*h<K()-1||e.circular)&&B(-1),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:t}),n.cancelable&&n.preventDefault()},X=function(n){q();var t=n.index;if(t!==e.activeItemIndex){var i=t+h,a=0;t<e.activeItemIndex?(a=r-i-1-M())>0&&-1*h!=0&&B(a):(a=M()-i)<0&&-1*h<K()-1&&B(a),e.onActiveItemChange({index:t})}},Z=function(n){b.current&&"transform"===n.propertyName&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&c.DomHandler.addClass(b.current,"p-items-hidden"),b.current.style.transition="")},z=function(e){var n=e.changedTouches[0];I.current={x:n.pageX,y:n.pageY}},_=function(e){e.cancelable&&e.preventDefault()},J=function(n){var t=n.changedTouches[0];L(n,e.isVertical?t.pageY-I.current.y:t.pageX-I.current.x)},L=function(e,n){n<0?W(e):G(e)},K=function(){return e.value.length>r?e.value.length-r+1:0},Y=function(){x.current||(x.current=c.DomHandler.createInlineStyle(N&&N.nonce||g.default.nonce));var n,t='\n [data-pc-section="thumbnailitems"]['.concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/r,"%\n }\n } \n ");if(e.responsiveOptions){var i=c.ObjectUtils.localeComparator(N&&N.locale||g.default.locale);w.current=k(n=e.responsiveOptions)||A(n)||S(n)||H(),w.current.sort((function(e,n){return c.ObjectUtils.sort(e.breakpoint,n.breakpoint,-1,i,N&&N.nullSortOrder||g.default.nullSortOrder)}));for(var a=0;a<w.current.length;a++){var l=w.current[a];t+="\n @media screen and (max-width: ".concat(l.breakpoint,') {\n [data-pc-section="thumbnailitems"][').concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/l.numVisible,"%\n }\n } \n }\n ")}}x.current.innerHTML=t},F=function(){if(b.current&&w.current){for(var n=window.innerWidth,t={numVisible:e.numVisible},i=0;i<w.current.length;i++){var a=w.current[i];parseInt(a.breakpoint,10)>=n&&(t=a)}r!==t.numVisible&&l(t.numVisible)}};a.useMountEffect((function(){b.current&&(y.current=c.UniqueComponentId(),b.current.setAttribute(y.current,"")),Y(),F(),R()})),a.useUpdateEffect((function(){var n=h;P===r&&O===e.activeItemIndex||((n=e.activeItemIndex<=M()?0:e.value.length-r+M()<e.activeItemIndex?r-e.value.length:e.value.length-r<e.activeItemIndex&&r%2==0?-1*e.activeItemIndex+M()+1:-1*e.activeItemIndex+M())!==h&&v(n),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(n*(100/r),"%, 0)"):"translate3d(".concat(n*(100/r),"%, 0, 0)"),O!==e.activeItemIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&c.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transition="transform 500ms ease 0s"))}));var $,Q,ee,ne,te,ie,ae,re=function(){if(e.showThumbnailNavigators){var n=!e.circular&&0===e.activeItemIndex||e.value.length<=r,t=c.mergeProps({className:j("previousThumbnailIcon")},D("previousThumbnailIcon")),i=c.IconUtils.getJSXIcon(e.isVertical?e.prevThumbnailIcon||f.createElement(p.ChevronUpIcon,t):e.prevThumbnailIcon||f.createElement(s.ChevronLeftIcon,t),V({},t),{props:e}),a=c.mergeProps({className:j("previousThumbnailButton",{isDisabled:n}),onClick:G,disabled:n,"data-p-disabled":n},D("previousThumbnailButton"));return f.createElement("button",a,i,f.createElement(o.Ripple,null))}return null},le=function(){if(e.showThumbnailNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1||e.value.length<=r,t=c.mergeProps({className:j("nextThumbnailIcon")},D("nextThumbnailIcon")),i=c.IconUtils.getJSXIcon(e.isVertical?e.nextThumbnailIcon||f.createElement(m.ChevronDownIcon,t):e.nextThumbnailIcon||f.createElement(u.ChevronRightIcon,t),V({},t),{props:e}),a=c.mergeProps({className:j("nextThumbnailButton",{isDisabled:n}),onClick:W,disabled:n,"data-p-disabled":n},D("nextThumbnailButton"));return f.createElement("button",a,i,f.createElement(o.Ripple,null))}return null},oe=($=e.value.map((function(n,t){var i=-1*h,a=i+r-1;return f.createElement(U,{key:t,index:t,template:e.itemTemplate,item:n,active:i<=t&&a>=t,start:i===t,end:a===t,onItemClick:X,current:e.activeItemIndex===t,ptm:C,cx:j,sx:T})})),Q=e.isVertical?e.contentHeight:"",ee=re(),ne=le(),te=c.mergeProps({className:j("thumbnailContainer")},D("thumbnailContainer")),ie=c.mergeProps({className:j("thumbnailItemsContainer"),style:T("thumbnailItemsContainer",{height:Q})},D("thumbnailItemsContainer")),ae=c.mergeProps({ref:b,className:j("thumbnailItems"),onTransitionEnd:Z,onTouchStart:z,onTouchMove:_,onTouchEnd:J},D("thumbnailItems")),f.createElement("div",te,ee,f.createElement("div",ie,f.createElement("div",ae,$)),ne)),ce=c.mergeProps({className:j("thumbnailWrapper")},D("thumbnailWrapper"));return f.createElement("div",ce,oe)})));function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}U.displayName="GalleriaThumbnailItem",B.displayName="GalleriaThumbnails";var G=f.memo(f.forwardRef((function(e,s){var u=f.useContext(n.PrimeReactContext),m=C.getProps(e,u),p=E(f.useState(!1),2),d=p[0],h=p[1],b=E(f.useState(m.numVisible),2),I=b[0],y=b[1],x=E(f.useState(!1),2),w=x[0],P=x[1],O=E(f.useState(m.activeIndex),2),S=O[0],N=O[1],j=f.useRef(null),T=f.useRef(null),k=f.useRef(null),A=m.onItemChange?m.activeIndex:S,H="left"===m.thumbnailsPosition||"right"===m.thumbnailsPosition,R=C.setMetaData({props:m,state:{visible:d,numVisible:I,slideShowActive:w,activeIndex:S}}),V=R.ptm,U=R.cx,q=R.sx,G=R.isUnstyled;t.useHandleStyle(C.css.styles,G,{name:"galleria"}),a.useInterval((function(){W({index:m.circular&&m.value.length-1===A?0:A+1})}),m.transitionInterval,w);var W=function(e){e.index>=m.value.length?$():m.onItemChange?m.onItemChange(e):N(e.index)},X=function(){h(!0)},Z=function(){h(!1)},z=function(){c.DomHandler.addClass(document.body,"p-overflow-hidden"),document.body.style.setProperty("--scrollbar-width",c.DomHandler.calculateScrollbarWidth()+"px")},_=function(){c.ZIndexUtils.set("modal",k.current,u&&u.autoZIndex||g.default.autoZIndex,m.baseZIndex||u&&u.zIndex.modal||g.default.zIndex.modal),!G()&&c.DomHandler.addMultipleClasses(k.current,"p-component-overlay p-component-overlay-enter")},J=function(){m.onShow&&m.onShow()},L=function(){c.DomHandler.removeClass(document.body,"p-overflow-hidden"),document.body.style.removeProperty("--scrollbar-width"),!G()&&c.DomHandler.addClass(k.current,"p-component-overlay-leave")},K=function(){c.ZIndexUtils.clear(k.current),m.onHide&&m.onHide()},Y=function(){return w},F=function(){P(!0)},$=function(){P(!1)},Q=function(e,n){var t=["top","left","bottom","right"].find((function(e){return e===n}));return t?"".concat(e,"-").concat(t):""};f.useEffect((function(){m.value&&m.value.length<I&&y(m.value.length)}),[m.value,I]),f.useEffect((function(){y(m.numVisible)}),[m.numVisible]),a.useUnmountEffect((function(){w&&$(),c.ZIndexUtils.clear(k.current)})),f.useImperativeHandle(s,(function(){return{props:m,show:X,hide:Z,isAutoPlayActive:Y,startSlideShow:F,stopSlideShow:$,getElement:function(){return j.current},getPreviewContent:function(){return T.current}}}));return c.ObjectUtils.isNotEmpty(m.value)&&function(){var e,t,a,s,p,h,g,b,y,x,P,O,S=(a=m.showThumbnails&&Q("p-galleria-thumbnails",m.thumbnailsPosition),s=m.showIndicators&&Q("p-galleria-indicators",m.indicatorsPosition),p=c.mergeProps({className:U("closeIcon"),"aria-hidden":!0},V("closeIcon")),h=c.IconUtils.getJSXIcon(m.closeIcon||f.createElement(r.TimesIcon,p),M({},p),{props:m}),g=c.mergeProps({type:"button",className:U("closeButton"),"aria-label":n.localeOption("close"),onClick:Z},V("closeButton")),b=m.fullScreen&&f.createElement("button",g,h,f.createElement(o.Ripple,null)),e=c.mergeProps({className:U("header")},V("header")),y=m.header?f.createElement("div",e,m.header):null,t=c.mergeProps({className:U("footer")},V("footer")),x=m.footer?f.createElement("div",t,m.footer):null,P=c.mergeProps({ref:j,id:m.id,className:c.classNames(m.className,U("root",{context:u,thumbnailsPosClassName:a,indicatorPosClassName:s})),style:m.style},C.getOtherProps(m),V("root")),O=c.mergeProps({className:U("content")},V("content")),f.createElement("div",P,b,y,f.createElement("div",O,f.createElement(D,{hostName:"Galleria",ref:T,value:m.value,activeItemIndex:A,onActiveItemChange:W,itemTemplate:m.item,circular:m.circular,caption:m.caption,showIndicators:m.showIndicators,itemPrevIcon:m.itemPrevIcon,itemNextIcon:m.itemNextIcon,changeItemOnIndicatorHover:m.changeItemOnIndicatorHover,indicator:m.indicator,showItemNavigators:m.showItemNavigators,autoPlay:m.autoPlay,slideShowActive:w,startSlideShow:F,stopSlideShow:$,ptm:V,cx:U}),m.showThumbnails&&f.createElement(B,{hostName:"Galleria",value:m.value,activeItemIndex:A,onActiveItemChange:W,itemTemplate:m.thumbnail,numVisible:I,nextThumbnailIcon:m.nextThumbnailIcon,prevThumbnailIcon:m.prevThumbnailIcon,responsiveOptions:m.responsiveOptions,circular:m.circular,isVertical:H,contentHeight:m.verticalThumbnailViewPortHeight,showThumbnailNavigators:m.showThumbnailNavigators,autoPlay:m.autoPlay,slideShowActive:w,stopSlideShow:$,isUnstyled:G,ptm:V,cx:U,sx:q})),x));if(m.fullScreen){var N=c.mergeProps({className:U("mask",{visibleState:d})},V("mask")),E=c.mergeProps({classNames:U("transition"),in:d,timeout:{enter:150,exit:150},options:m.transitionOptions,unmountOnExit:!0,onEnter:z,onEntering:_,onEntered:J,onExit:L,onExited:K},V("transition")),R=f.createElement("div",v({ref:k},N),f.createElement(i.CSSTransition,v({nodeRef:j},E),S));return f.createElement(l.Portal,{element:R})}return S}()})));G.displayName="Galleria",exports.Galleria=G;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/api"),t=require("primereact/componentbase"),i=require("primereact/csstransition"),a=require("primereact/hooks"),r=require("primereact/icons/times"),l=require("primereact/portal"),o=require("primereact/ripple"),c=require("primereact/utils"),s=require("primereact/icons/chevronleft"),u=require("primereact/icons/chevronright"),m=require("primereact/icons/chevrondown"),p=require("primereact/icons/chevronup");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function h(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var f=h(e),g=d(n);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},v.apply(this,arguments)}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function I(e,n){if("object"!==b(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function y(e){var n=I(e,"string");return"symbol"===b(n)?n:String(n)}function x(e,n,t){return(n=y(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e){if(Array.isArray(e))return e}function P(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,r,l,o=[],c=!0,s=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=r.call(t)).done)&&(o.push(i.value),o.length!==n);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function S(e,n){if(e){if("string"==typeof e)return O(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,n):void 0}}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,n){return w(e)||P(e,n)||S(e,n)||N()}var C=t.ComponentBase.extend({defaultProps:{__TYPE:"Galleria",id:null,value:null,activeIndex:0,fullScreen:!1,item:null,thumbnail:null,indicator:null,caption:null,className:null,closeIcon:null,style:null,header:null,footer:null,numVisible:3,responsiveOptions:null,showItemNavigators:!1,showThumbnailNavigators:!0,showItemNavigatorsOnHover:!1,changeItemOnIndicatorHover:!1,circular:!1,autoPlay:!1,transitionInterval:4e3,showThumbnails:!0,itemNextIcon:null,itemPrevIcon:null,nextThumbnailIcon:null,prevThumbnailIcon:null,thumbnailsPosition:"bottom",verticalThumbnailViewPortHeight:"300px",showIndicators:!1,showIndicatorsOnItem:!1,indicatorsPosition:"bottom",baseZIndex:0,transitionOptions:null,onItemChange:null,children:void 0},css:{classes:{header:"p-galleria-header",footer:"p-galleria-footer",closeIcon:"p-galleria-close-icon",closeButton:"p-galleria-close p-link",root:function(e){var n=e.props,t=e.context;return c.classNames("p-galleria p-component",{"p-galleria-fullscreen":n.fullScreen,"p-galleria-indicator-onitem":n.showIndicatorsOnItem,"p-galleria-item-nav-onhover":n.showItemNavigatorsOnHover&&!n.fullScreen,"p-input-filled":t&&"filled"===t.inputStyle||"filled"===g.default.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===g.default.ripple},e.thumbnailsPosClassName,e.indicatorPosClassName)},content:"p-galleria-content",mask:function(e){return c.classNames("p-galleria-mask",{"p-galleria-visible":e.visibleState})},thumbnailItem:function(e){var n=e.subProps;return c.classNames("p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":n.current,"p-galleria-thumbnail-item-active":n.active,"p-galleria-thumbnail-item-start":n.start,"p-galleria-thumbnail-item-end":n.end})},thumbnailItemContent:"p-galleria-thumbnail-item-content",previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",previousThumbnailButton:function(e){return c.classNames("p-galleria-thumbnail-prev p-link",{"p-disabled":e.isDisabled})},nextThumbnailIcon:"p-galleria-thumbnail-next-icon",nextThumbnailButton:function(e){return c.classNames("p-galleria-thumbnail-next p-link",{"p-disabled":e.isDisabled})},thumbnailContainer:"p-galleria-thumbnail-container",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailWrapper:"p-galleria-thumbnail-wrapper",previousItemIcon:"p-galleria-item-prev-icon",previousItemButton:function(e){return c.classNames("p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},nextItemIcon:"p-galleria-item-next-icon",nextItemButton:function(e){return c.classNames("p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},caption:"p-galleria-caption",indicator:function(e){return c.classNames("p-galleria-indicator",{"p-highlight":e.isActive})},indicators:"p-galleria-indicators p-reset",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",item:"p-galleria-item",transition:"p-galleria"},styles:"\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n z-index: 1;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n",inlineStyles:{thumbnailItemsContainer:function(e){return{height:e.height}}}}});function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var D=f.memo(f.forwardRef((function(e,n){var t=e.ptm,i=e.cx,r=function(n,i){return t(n,T({hostName:e.hostName},i))},l=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},m=function(n){l(),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:0!==e.activeItemIndex?e.activeItemIndex-1:0}),n&&n.cancelable&&n.preventDefault()},p=function(n){l(),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:e.activeItemIndex+1}),n&&n.cancelable&&n.preventDefault()},d=function(n){l(),e.onActiveItemChange({index:n})},h=function(n){e.changeItemOnIndicatorHover&&(l(),e.onActiveItemChange({index:n}))},g=function(n,t){13===n.which&&(l(),e.onActiveItemChange({index:t}))};a.useMountEffect((function(){e.autoPlay&&e.startSlideShow()}));var v=function(n){var t="p-galleria-indicator-"+n,a=e.activeItemIndex===n,l=e.indicator&&e.indicator(n),s=c.mergeProps({className:i("indicator",{isActive:a}),key:t,tabIndex:0,onClick:function(){return d(n)},onMouseEnter:function(){return h(n)},onKeyDown:function(e){return g(e,n)},"data-p-highlight":a},r("indicator"));return l||(l=f.createElement("button",{type:"button",tabIndex:-1,className:"p-link"},f.createElement(o.Ripple,null))),f.createElement("li",s,l)},b=e.itemTemplate&&e.itemTemplate(e.value[e.activeItemIndex]),I=function(){if(e.showItemNavigators){var n=!e.circular&&0===e.activeItemIndex,t=c.mergeProps({className:i("previousItemIcon")},r("previousItemIcon")),a=c.IconUtils.getJSXIcon(e.itemPrevIcon||f.createElement(s.ChevronLeftIcon,t),T({},t),{props:e}),l=c.mergeProps({type:"button",className:i("previousItemButton",{isDisabled:n}),onClick:m,disabled:n,"data-p-disabled":n},r("previousItemButton"));return f.createElement("button",l,a,f.createElement(o.Ripple,null))}return null}(),y=function(){if(e.showItemNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1,t=c.mergeProps({className:i("nextItemIcon")},r("nextItemIcon")),a=c.IconUtils.getJSXIcon(e.itemNextIcon||f.createElement(u.ChevronRightIcon,t),T({},t),{props:e}),l=c.mergeProps({type:"button",className:i("nextItemButton",{isDisabled:n}),onClick:p,disabled:n,"data-p-disabled":n},r("nextItemButton"));return f.createElement("button",l,a,f.createElement(o.Ripple,null))}return null}(),x=function(){var n=c.mergeProps({className:i("caption")},r("caption"));if(e.caption){var t=e.caption(e.value[e.activeItemIndex]);return f.createElement("div",n,t)}return null}(),w=function(){if(e.showIndicators){for(var n=[],t=c.mergeProps({className:c.classNames(e.indicatorsContentClassName,i("indicators"))},r("indicators")),a=0;a<e.value.length;a++)n.push(v(a));return f.createElement("ul",t,n)}return null}(),P=c.mergeProps({ref:n,className:i("itemWrapper")},r("itemWrapper")),O=c.mergeProps({className:i("itemContainer")},r("itemContainer")),S=c.mergeProps({className:i("item")},r("item"));return f.createElement("div",P,f.createElement("div",O,I,f.createElement("div",S,b),y,x),w)})));function k(e){if(Array.isArray(e))return O(e)}function A(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}D.displayName="GalleriaItem";var U=f.memo((function(e){var n=e.ptm,t=e.cx,i=function(t,i){return n(t,V({hostName:e.hostName},i))},a=e.active?0:null,r=e.template&&e.template(e.item),l=c.mergeProps({className:c.classNames(e.className,t("thumbnailItem",{subProps:e})),"data-p-galleria-thumbnail-item-current":e.current,"data-p-galleria-thumbnail-item-active":e.active,"data-p-galleria-thumbnail-item-start":e.start,"data-p-galleria-thumbnail-item-end":e.end},i("thumbnailItem")),o=c.mergeProps({className:t("thumbnailItemContent"),tabIndex:a,onClick:function(n){e.onItemClick({originalEvent:n,index:e.index})},onKeyDown:function(n){13===n.which&&e.onItemClick({originalEvent:n,index:e.index})}},i("thumbnailItemContent"));return f.createElement("div",l,f.createElement("div",o,r))})),B=f.memo(f.forwardRef((function(e,t){var i=E(f.useState(e.numVisible),2),r=i[0],l=i[1],d=E(f.useState(0),2),h=d[0],v=d[1],b=f.useRef(null),I=f.useRef(null),y=f.useRef(""),x=f.useRef(null),w=f.useRef(null),P=a.usePrevious(r),O=a.usePrevious(e.activeItemIndex),N=f.useContext(n.PrimeReactContext),C=e.ptm,j=e.cx,T=e.sx,D=function(n,t){return C(n,V({hostName:e.hostName},t))},R=E(a.useResizeListener({listener:function(){F()},when:e.responsiveOptions}),1)[0],B=function(n){var t=h+n;n<0&&-1*t+r>e.value.length-1?t=r-e.value.length:n>0&&t>0&&(t=0),e.circular&&(n<0&&e.value.length-1===e.activeItemIndex?t=0:n>0&&0===e.activeItemIndex&&(t=r-e.value.length)),b.current&&(c.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(t*(100/r),"%, 0)"):"translate3d(".concat(t*(100/r),"%, 0, 0)"),b.current.style.transition="transform 500ms ease 0s"),v(t)},q=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},M=function(){var e=Math.floor(r/2);return r%2?e:e-1},G=function(n){q();var t=0!==e.activeItemIndex?e.activeItemIndex-1:0;r-(t+h)-1>M()&&(-1*h!=0||e.circular)&&B(1),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:t}),n.cancelable&&n.preventDefault()},z=function(n){q();var t=e.activeItemIndex+1;t+h>M()&&(-1*h<K()-1||e.circular)&&B(-1),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:t}),n.cancelable&&n.preventDefault()},W=function(n){q();var t=n.index;if(t!==e.activeItemIndex){var i=t+h,a=0;t<e.activeItemIndex?(a=r-i-1-M())>0&&-1*h!=0&&B(a):(a=M()-i)<0&&-1*h<K()-1&&B(a),e.onActiveItemChange({index:t})}},X=function(n){b.current&&"transform"===n.propertyName&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&c.DomHandler.addClass(b.current,"p-items-hidden"),b.current.style.transition="")},Z=function(e){var n=e.changedTouches[0];I.current={x:n.pageX,y:n.pageY}},_=function(e){e.cancelable&&e.preventDefault()},J=function(n){var t=n.changedTouches[0];L(n,e.isVertical?t.pageY-I.current.y:t.pageX-I.current.x)},L=function(e,n){n<0?z(e):G(e)},K=function(){return e.value.length>r?e.value.length-r+1:0},Y=function(){x.current||(x.current=c.DomHandler.createInlineStyle(N&&N.nonce||g.default.nonce));var n,t='\n [data-pc-section="thumbnailitems"]['.concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/r,"%\n }\n } \n ");if(e.responsiveOptions){var i=c.ObjectUtils.localeComparator(N&&N.locale||g.default.locale);w.current=k(n=e.responsiveOptions)||A(n)||S(n)||H(),w.current.sort((function(e,n){return c.ObjectUtils.sort(e.breakpoint,n.breakpoint,-1,i,N&&N.nullSortOrder||g.default.nullSortOrder)}));for(var a=0;a<w.current.length;a++){var l=w.current[a];t+="\n @media screen and (max-width: ".concat(l.breakpoint,') {\n [data-pc-section="thumbnailitems"][').concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/l.numVisible,"%\n }\n } \n }\n ")}}x.current.innerHTML=t},F=function(){if(b.current&&w.current){for(var n=window.innerWidth,t={numVisible:e.numVisible},i=0;i<w.current.length;i++){var a=w.current[i];parseInt(a.breakpoint,10)>=n&&(t=a)}r!==t.numVisible&&l(t.numVisible)}};a.useMountEffect((function(){b.current&&(y.current=c.UniqueComponentId(),b.current.setAttribute(y.current,"")),Y(),F(),R()})),a.useUpdateEffect((function(){var n=h;P===r&&O===e.activeItemIndex||((n=e.activeItemIndex<=M()?0:e.value.length-r+M()<e.activeItemIndex?r-e.value.length:e.value.length-r<e.activeItemIndex&&r%2==0?-1*e.activeItemIndex+M()+1:-1*e.activeItemIndex+M())!==h&&v(n),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(n*(100/r),"%, 0)"):"translate3d(".concat(n*(100/r),"%, 0, 0)"),O!==e.activeItemIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&c.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transition="transform 500ms ease 0s"))}));var $,Q,ee,ne,te,ie,ae,re=function(){if(e.showThumbnailNavigators){var n=!e.circular&&0===e.activeItemIndex||e.value.length<=r,t=c.mergeProps({className:j("previousThumbnailIcon")},D("previousThumbnailIcon")),i=c.IconUtils.getJSXIcon(e.isVertical?e.prevThumbnailIcon||f.createElement(p.ChevronUpIcon,t):e.prevThumbnailIcon||f.createElement(s.ChevronLeftIcon,t),V({},t),{props:e}),a=c.mergeProps({className:j("previousThumbnailButton",{isDisabled:n}),onClick:G,disabled:n,"data-p-disabled":n},D("previousThumbnailButton"));return f.createElement("button",a,i,f.createElement(o.Ripple,null))}return null},le=function(){if(e.showThumbnailNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1||e.value.length<=r,t=c.mergeProps({className:j("nextThumbnailIcon")},D("nextThumbnailIcon")),i=c.IconUtils.getJSXIcon(e.isVertical?e.nextThumbnailIcon||f.createElement(m.ChevronDownIcon,t):e.nextThumbnailIcon||f.createElement(u.ChevronRightIcon,t),V({},t),{props:e}),a=c.mergeProps({className:j("nextThumbnailButton",{isDisabled:n}),onClick:z,disabled:n,"data-p-disabled":n},D("nextThumbnailButton"));return f.createElement("button",a,i,f.createElement(o.Ripple,null))}return null},oe=($=e.value.map((function(n,t){var i=-1*h,a=i+r-1;return f.createElement(U,{key:t,index:t,template:e.itemTemplate,item:n,active:i<=t&&a>=t,start:i===t,end:a===t,onItemClick:W,current:e.activeItemIndex===t,ptm:C,cx:j,sx:T})})),Q=e.isVertical?e.contentHeight:"",ee=re(),ne=le(),te=c.mergeProps({className:j("thumbnailContainer")},D("thumbnailContainer")),ie=c.mergeProps({className:j("thumbnailItemsContainer"),style:T("thumbnailItemsContainer",{height:Q})},D("thumbnailItemsContainer")),ae=c.mergeProps({ref:b,className:j("thumbnailItems"),onTransitionEnd:X,onTouchStart:Z,onTouchMove:_,onTouchEnd:J},D("thumbnailItems")),f.createElement("div",te,ee,f.createElement("div",ie,f.createElement("div",ae,$)),ne)),ce=c.mergeProps({className:j("thumbnailWrapper")},D("thumbnailWrapper"));return f.createElement("div",ce,oe)})));function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}U.displayName="GalleriaThumbnailItem",B.displayName="GalleriaThumbnails";var G=f.memo(f.forwardRef((function(e,s){var u=f.useContext(n.PrimeReactContext),m=C.getProps(e,u),p=E(f.useState(!1),2),d=p[0],h=p[1],b=E(f.useState(m.numVisible),2),I=b[0],y=b[1],x=E(f.useState(!1),2),w=x[0],P=x[1],O=E(f.useState(m.activeIndex),2),S=O[0],N=O[1],j=f.useRef(null),T=f.useRef(null),k=f.useRef(null),A=m.onItemChange?m.activeIndex:S,H="left"===m.thumbnailsPosition||"right"===m.thumbnailsPosition,R=C.setMetaData({props:m,state:{visible:d,numVisible:I,slideShowActive:w,activeIndex:S}}),V=R.ptm,U=R.cx,q=R.sx,G=R.isUnstyled;t.useHandleStyle(C.css.styles,G,{name:"galleria"}),a.useInterval((function(){z({index:m.circular&&m.value.length-1===A?0:A+1})}),m.transitionInterval,w);var z=function(e){e.index>=m.value.length?$():m.onItemChange?m.onItemChange(e):N(e.index)},W=function(){h(!0)},X=function(){h(!1)},Z=function(){c.DomHandler.blockBodyScroll()},_=function(){c.ZIndexUtils.set("modal",k.current,u&&u.autoZIndex||g.default.autoZIndex,m.baseZIndex||u&&u.zIndex.modal||g.default.zIndex.modal),!G()&&c.DomHandler.addMultipleClasses(k.current,"p-component-overlay p-component-overlay-enter")},J=function(){m.onShow&&m.onShow()},L=function(){c.DomHandler.unblockBodyScroll(),!G()&&c.DomHandler.addClass(k.current,"p-component-overlay-leave")},K=function(){c.ZIndexUtils.clear(k.current),m.onHide&&m.onHide()},Y=function(){return w},F=function(){P(!0)},$=function(){P(!1)},Q=function(e,n){var t=["top","left","bottom","right"].find((function(e){return e===n}));return t?"".concat(e,"-").concat(t):""};f.useEffect((function(){m.value&&m.value.length<I&&y(m.value.length)}),[m.value,I]),f.useEffect((function(){y(m.numVisible)}),[m.numVisible]),a.useUnmountEffect((function(){w&&$(),c.ZIndexUtils.clear(k.current)})),f.useImperativeHandle(s,(function(){return{props:m,show:W,hide:X,isAutoPlayActive:Y,startSlideShow:F,stopSlideShow:$,getElement:function(){return j.current},getPreviewContent:function(){return T.current}}}));return c.ObjectUtils.isNotEmpty(m.value)&&function(){var e,t,a,s,p,h,g,b,y,x,P,O,S=(a=m.showThumbnails&&Q("p-galleria-thumbnails",m.thumbnailsPosition),s=m.showIndicators&&Q("p-galleria-indicators",m.indicatorsPosition),p=c.mergeProps({className:U("closeIcon"),"aria-hidden":!0},V("closeIcon")),h=c.IconUtils.getJSXIcon(m.closeIcon||f.createElement(r.TimesIcon,p),M({},p),{props:m}),g=c.mergeProps({type:"button",className:U("closeButton"),"aria-label":n.localeOption("close"),onClick:X},V("closeButton")),b=m.fullScreen&&f.createElement("button",g,h,f.createElement(o.Ripple,null)),e=c.mergeProps({className:U("header")},V("header")),y=m.header?f.createElement("div",e,m.header):null,t=c.mergeProps({className:U("footer")},V("footer")),x=m.footer?f.createElement("div",t,m.footer):null,P=c.mergeProps({ref:j,id:m.id,className:c.classNames(m.className,U("root",{context:u,thumbnailsPosClassName:a,indicatorPosClassName:s})),style:m.style},C.getOtherProps(m),V("root")),O=c.mergeProps({className:U("content")},V("content")),f.createElement("div",P,b,y,f.createElement("div",O,f.createElement(D,{hostName:"Galleria",ref:T,value:m.value,activeItemIndex:A,onActiveItemChange:z,itemTemplate:m.item,circular:m.circular,caption:m.caption,showIndicators:m.showIndicators,itemPrevIcon:m.itemPrevIcon,itemNextIcon:m.itemNextIcon,changeItemOnIndicatorHover:m.changeItemOnIndicatorHover,indicator:m.indicator,showItemNavigators:m.showItemNavigators,autoPlay:m.autoPlay,slideShowActive:w,startSlideShow:F,stopSlideShow:$,ptm:V,cx:U}),m.showThumbnails&&f.createElement(B,{hostName:"Galleria",value:m.value,activeItemIndex:A,onActiveItemChange:z,itemTemplate:m.thumbnail,numVisible:I,nextThumbnailIcon:m.nextThumbnailIcon,prevThumbnailIcon:m.prevThumbnailIcon,responsiveOptions:m.responsiveOptions,circular:m.circular,isVertical:H,contentHeight:m.verticalThumbnailViewPortHeight,showThumbnailNavigators:m.showThumbnailNavigators,autoPlay:m.autoPlay,slideShowActive:w,stopSlideShow:$,isUnstyled:G,ptm:V,cx:U,sx:q})),x));if(m.fullScreen){var N=c.mergeProps({className:U("mask",{visibleState:d})},V("mask")),E=c.mergeProps({classNames:U("transition"),in:d,timeout:{enter:150,exit:150},options:m.transitionOptions,unmountOnExit:!0,onEnter:Z,onEntering:_,onEntered:J,onExit:L,onExited:K},V("transition")),R=f.createElement("div",v({ref:k},N),f.createElement(i.CSSTransition,v({nodeRef:j},E),S));return f.createElement(l.Portal,{element:R})}return S}()})));G.displayName="Galleria",exports.Galleria=G;
@@ -204,7 +204,7 @@ var classes = {
204
204
  item: 'p-galleria-item',
205
205
  transition: 'p-galleria'
206
206
  };
207
- var styles = "\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n";
207
+ var styles = "\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n z-index: 1;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n";
208
208
  var inlineStyles = {
209
209
  thumbnailItemsContainer: function thumbnailItemsContainer(_ref9) {
210
210
  var height = _ref9.height;
@@ -892,8 +892,7 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
892
892
  setVisibleState(false);
893
893
  };
894
894
  var onEnter = function onEnter() {
895
- DomHandler.addClass(document.body, 'p-overflow-hidden');
896
- document.body.style.setProperty('--scrollbar-width', DomHandler.calculateScrollbarWidth() + 'px');
895
+ DomHandler.blockBodyScroll();
897
896
  };
898
897
  var onEntering = function onEntering() {
899
898
  ZIndexUtils.set('modal', maskRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, props.baseZIndex || context && context.zIndex['modal'] || PrimeReact.zIndex['modal']);
@@ -903,8 +902,7 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
903
902
  props.onShow && props.onShow();
904
903
  };
905
904
  var onExit = function onExit() {
906
- DomHandler.removeClass(document.body, 'p-overflow-hidden');
907
- document.body.style.removeProperty('--scrollbar-width');
905
+ DomHandler.unblockBodyScroll();
908
906
  !isUnstyled() && DomHandler.addClass(maskRef.current, 'p-component-overlay-leave');
909
907
  };
910
908
  var onExited = function onExited() {
@@ -1 +1 @@
1
- import*as e from"react";import n,{PrimeReactContext as t,localeOption as i}from"primereact/api";import{ComponentBase as a,useHandleStyle as r}from"primereact/componentbase";import{CSSTransition as l}from"primereact/csstransition";import{useMountEffect as o,usePrevious as c,useResizeListener as s,useUpdateEffect as u,useInterval as m,useUnmountEffect as p}from"primereact/hooks";import{TimesIcon as d}from"primereact/icons/times";import{Portal as h}from"primereact/portal";import{Ripple as f}from"primereact/ripple";import{classNames as v,mergeProps as b,IconUtils as g,UniqueComponentId as I,DomHandler as y,ObjectUtils as x,ZIndexUtils as w}from"primereact/utils";import{ChevronLeftIcon as O}from"primereact/icons/chevronleft";import{ChevronRightIcon as S}from"primereact/icons/chevronright";import{ChevronDownIcon as N}from"primereact/icons/chevrondown";import{ChevronUpIcon as E}from"primereact/icons/chevronup";function P(){return P=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P.apply(this,arguments)}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function j(e,n){if("object"!==C(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==C(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function T(e){var n=j(e,"string");return"symbol"===C(n)?n:String(n)}function k(e,n,t){return(n=T(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e){if(Array.isArray(e))return e}function D(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,r,l,o=[],c=!0,s=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=r.call(t)).done)&&(o.push(i.value),o.length!==n);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}function V(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function B(e,n){if(e){if("string"==typeof e)return V(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?V(e,n):void 0}}function H(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,n){return A(e)||D(e,n)||B(e,n)||H()}var W=a.extend({defaultProps:{__TYPE:"Galleria",id:null,value:null,activeIndex:0,fullScreen:!1,item:null,thumbnail:null,indicator:null,caption:null,className:null,closeIcon:null,style:null,header:null,footer:null,numVisible:3,responsiveOptions:null,showItemNavigators:!1,showThumbnailNavigators:!0,showItemNavigatorsOnHover:!1,changeItemOnIndicatorHover:!1,circular:!1,autoPlay:!1,transitionInterval:4e3,showThumbnails:!0,itemNextIcon:null,itemPrevIcon:null,nextThumbnailIcon:null,prevThumbnailIcon:null,thumbnailsPosition:"bottom",verticalThumbnailViewPortHeight:"300px",showIndicators:!1,showIndicatorsOnItem:!1,indicatorsPosition:"bottom",baseZIndex:0,transitionOptions:null,onItemChange:null,children:void 0},css:{classes:{header:"p-galleria-header",footer:"p-galleria-footer",closeIcon:"p-galleria-close-icon",closeButton:"p-galleria-close p-link",root:function(e){var t=e.props,i=e.context;return v("p-galleria p-component",{"p-galleria-fullscreen":t.fullScreen,"p-galleria-indicator-onitem":t.showIndicatorsOnItem,"p-galleria-item-nav-onhover":t.showItemNavigatorsOnHover&&!t.fullScreen,"p-input-filled":i&&"filled"===i.inputStyle||"filled"===n.inputStyle,"p-ripple-disabled":i&&!1===i.ripple||!1===n.ripple},e.thumbnailsPosClassName,e.indicatorPosClassName)},content:"p-galleria-content",mask:function(e){return v("p-galleria-mask",{"p-galleria-visible":e.visibleState})},thumbnailItem:function(e){var n=e.subProps;return v("p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":n.current,"p-galleria-thumbnail-item-active":n.active,"p-galleria-thumbnail-item-start":n.start,"p-galleria-thumbnail-item-end":n.end})},thumbnailItemContent:"p-galleria-thumbnail-item-content",previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",previousThumbnailButton:function(e){return v("p-galleria-thumbnail-prev p-link",{"p-disabled":e.isDisabled})},nextThumbnailIcon:"p-galleria-thumbnail-next-icon",nextThumbnailButton:function(e){return v("p-galleria-thumbnail-next p-link",{"p-disabled":e.isDisabled})},thumbnailContainer:"p-galleria-thumbnail-container",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailWrapper:"p-galleria-thumbnail-wrapper",previousItemIcon:"p-galleria-item-prev-icon",previousItemButton:function(e){return v("p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},nextItemIcon:"p-galleria-item-next-icon",nextItemButton:function(e){return v("p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},caption:"p-galleria-caption",indicator:function(e){return v("p-galleria-indicator",{"p-highlight":e.isActive})},indicators:"p-galleria-indicators p-reset",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",item:"p-galleria-item",transition:"p-galleria"},styles:"\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n",inlineStyles:{thumbnailItemsContainer:function(e){return{height:e.height}}}}});function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=e.memo(e.forwardRef((function(n,t){var i=n.ptm,a=n.cx,r=function(e,t){return i(e,M({hostName:n.hostName},t))},l=function(){n.slideShowActive&&n.stopSlideShow&&n.stopSlideShow()},c=function(e){l(),n.onActiveItemChange({index:n.circular&&0===n.activeItemIndex?n.value.length-1:0!==n.activeItemIndex?n.activeItemIndex-1:0}),e&&e.cancelable&&e.preventDefault()},s=function(e){l(),n.onActiveItemChange({index:n.circular&&n.value.length-1===n.activeItemIndex?0:n.activeItemIndex+1}),e&&e.cancelable&&e.preventDefault()},u=function(e){l(),n.onActiveItemChange({index:e})},m=function(e){n.changeItemOnIndicatorHover&&(l(),n.onActiveItemChange({index:e}))},p=function(e,t){13===e.which&&(l(),n.onActiveItemChange({index:t}))};o((function(){n.autoPlay&&n.startSlideShow()}));var d=function(t){var i="p-galleria-indicator-"+t,l=n.activeItemIndex===t,o=n.indicator&&n.indicator(t),c=b({className:a("indicator",{isActive:l}),key:i,tabIndex:0,onClick:function(){return u(t)},onMouseEnter:function(){return m(t)},onKeyDown:function(e){return p(e,t)},"data-p-highlight":l},r("indicator"));return o||(o=e.createElement("button",{type:"button",tabIndex:-1,className:"p-link"},e.createElement(f,null))),e.createElement("li",c,o)},h=n.itemTemplate&&n.itemTemplate(n.value[n.activeItemIndex]),I=function(){if(n.showItemNavigators){var t=!n.circular&&0===n.activeItemIndex,i=b({className:a("previousItemIcon")},r("previousItemIcon")),l=g.getJSXIcon(n.itemPrevIcon||e.createElement(O,i),M({},i),{props:n}),o=b({type:"button",className:a("previousItemButton",{isDisabled:t}),onClick:c,disabled:t,"data-p-disabled":t},r("previousItemButton"));return e.createElement("button",o,l,e.createElement(f,null))}return null}(),y=function(){if(n.showItemNavigators){var t=!n.circular&&n.activeItemIndex===n.value.length-1,i=b({className:a("nextItemIcon")},r("nextItemIcon")),l=g.getJSXIcon(n.itemNextIcon||e.createElement(S,i),M({},i),{props:n}),o=b({type:"button",className:a("nextItemButton",{isDisabled:t}),onClick:s,disabled:t,"data-p-disabled":t},r("nextItemButton"));return e.createElement("button",o,l,e.createElement(f,null))}return null}(),x=function(){var t=b({className:a("caption")},r("caption"));if(n.caption){var i=n.caption(n.value[n.activeItemIndex]);return e.createElement("div",t,i)}return null}(),w=function(){if(n.showIndicators){for(var t=[],i=b({className:v(n.indicatorsContentClassName,a("indicators"))},r("indicators")),l=0;l<n.value.length;l++)t.push(d(l));return e.createElement("ul",i,t)}return null}(),N=b({ref:t,className:a("itemWrapper")},r("itemWrapper")),E=b({className:a("itemContainer")},r("itemContainer")),P=b({className:a("item")},r("item"));return e.createElement("div",N,e.createElement("div",E,I,e.createElement("div",P,h),y,x),w)})));function J(e){if(Array.isArray(e))return V(e)}function U(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}X.displayName="GalleriaItem";var Y=e.memo((function(n){var t=n.ptm,i=n.cx,a=function(e,i){return t(e,K({hostName:n.hostName},i))},r=n.active?0:null,l=n.template&&n.template(n.item),o=b({className:v(n.className,i("thumbnailItem",{subProps:n})),"data-p-galleria-thumbnail-item-current":n.current,"data-p-galleria-thumbnail-item-active":n.active,"data-p-galleria-thumbnail-item-start":n.start,"data-p-galleria-thumbnail-item-end":n.end},a("thumbnailItem")),c=b({className:i("thumbnailItemContent"),tabIndex:r,onClick:function(e){n.onItemClick({originalEvent:e,index:n.index})},onKeyDown:function(e){13===e.which&&n.onItemClick({originalEvent:e,index:n.index})}},a("thumbnailItemContent"));return e.createElement("div",o,e.createElement("div",c,l))})),_=e.memo(e.forwardRef((function(i,a){var r=R(e.useState(i.numVisible),2),l=r[0],m=r[1],p=R(e.useState(0),2),d=p[0],h=p[1],v=e.useRef(null),w=e.useRef(null),P=e.useRef(""),C=e.useRef(null),j=e.useRef(null),T=c(l),k=c(i.activeItemIndex),A=e.useContext(t),D=i.ptm,V=i.cx,H=i.sx,W=function(e,n){return D(e,K({hostName:i.hostName},n))},G=R(s({listener:function(){ae()},when:i.responsiveOptions}),1)[0],M=function(e){var n=d+e;e<0&&-1*n+l>i.value.length-1?n=l-i.value.length:e>0&&n>0&&(n=0),i.circular&&(e<0&&i.value.length-1===i.activeItemIndex?n=0:e>0&&0===i.activeItemIndex&&(n=l-i.value.length)),v.current&&(y.removeClass(v.current,"p-items-hidden"),v.current.style.transform=i.isVertical?"translate3d(0, ".concat(n*(100/l),"%, 0)"):"translate3d(".concat(n*(100/l),"%, 0, 0)"),v.current.style.transition="transform 500ms ease 0s"),h(n)},X=function(){i.slideShowActive&&i.stopSlideShow&&i.stopSlideShow()},Z=function(){var e=Math.floor(l/2);return l%2?e:e-1},_=function(e){X();var n=0!==i.activeItemIndex?i.activeItemIndex-1:0;l-(n+d)-1>Z()&&(-1*d!=0||i.circular)&&M(1),i.onActiveItemChange({index:i.circular&&0===i.activeItemIndex?i.value.length-1:n}),e.cancelable&&e.preventDefault()},F=function(e){X();var n=i.activeItemIndex+1;n+d>Z()&&(-1*d<te()-1||i.circular)&&M(-1),i.onActiveItemChange({index:i.circular&&i.value.length-1===i.activeItemIndex?0:n}),e.cancelable&&e.preventDefault()},L=function(e){X();var n=e.index;if(n!==i.activeItemIndex){var t=n+d,a=0;n<i.activeItemIndex?(a=l-t-1-Z())>0&&-1*d!=0&&M(a):(a=Z()-t)<0&&-1*d<te()-1&&M(a),i.onActiveItemChange({index:n})}},$=function(e){v.current&&"transform"===e.propertyName&&(document.body.setAttribute("data-p-items-hidden","false"),!i.isUnstyled()&&y.addClass(v.current,"p-items-hidden"),v.current.style.transition="")},q=function(e){var n=e.changedTouches[0];w.current={x:n.pageX,y:n.pageY}},Q=function(e){e.cancelable&&e.preventDefault()},ee=function(e){var n=e.changedTouches[0];ne(e,i.isVertical?n.pageY-w.current.y:n.pageX-w.current.x)},ne=function(e,n){n<0?F(e):_(e)},te=function(){return i.value.length>l?i.value.length-l+1:0},ie=function(){C.current||(C.current=y.createInlineStyle(A&&A.nonce||n.nonce));var e,t='\n [data-pc-section="thumbnailitems"]['.concat(P.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/l,"%\n }\n } \n ");if(i.responsiveOptions){var a=x.localeComparator(A&&A.locale||n.locale);j.current=J(e=i.responsiveOptions)||U(e)||B(e)||z(),j.current.sort((function(e,t){return x.sort(e.breakpoint,t.breakpoint,-1,a,A&&A.nullSortOrder||n.nullSortOrder)}));for(var r=0;r<j.current.length;r++){var o=j.current[r];t+="\n @media screen and (max-width: ".concat(o.breakpoint,') {\n [data-pc-section="thumbnailitems"][').concat(P.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/o.numVisible,"%\n }\n } \n }\n ")}}C.current.innerHTML=t},ae=function(){if(v.current&&j.current){for(var e=window.innerWidth,n={numVisible:i.numVisible},t=0;t<j.current.length;t++){var a=j.current[t];parseInt(a.breakpoint,10)>=e&&(n=a)}l!==n.numVisible&&m(n.numVisible)}};o((function(){v.current&&(P.current=I(),v.current.setAttribute(P.current,"")),ie(),ae(),G()})),u((function(){var e=d;T===l&&k===i.activeItemIndex||((e=i.activeItemIndex<=Z()?0:i.value.length-l+Z()<i.activeItemIndex?l-i.value.length:i.value.length-l<i.activeItemIndex&&l%2==0?-1*i.activeItemIndex+Z()+1:-1*i.activeItemIndex+Z())!==d&&h(e),v.current.style.transform=i.isVertical?"translate3d(0, ".concat(e*(100/l),"%, 0)"):"translate3d(".concat(e*(100/l),"%, 0, 0)"),k!==i.activeItemIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!i.isUnstyled()&&y.removeClass(v.current,"p-items-hidden"),v.current.style.transition="transform 500ms ease 0s"))}));var re,le,oe,ce,se,ue,me,pe=function(){if(i.showThumbnailNavigators){var n=!i.circular&&0===i.activeItemIndex||i.value.length<=l,t=b({className:V("previousThumbnailIcon")},W("previousThumbnailIcon")),a=g.getJSXIcon(i.isVertical?i.prevThumbnailIcon||e.createElement(E,t):i.prevThumbnailIcon||e.createElement(O,t),K({},t),{props:i}),r=b({className:V("previousThumbnailButton",{isDisabled:n}),onClick:_,disabled:n,"data-p-disabled":n},W("previousThumbnailButton"));return e.createElement("button",r,a,e.createElement(f,null))}return null},de=function(){if(i.showThumbnailNavigators){var n=!i.circular&&i.activeItemIndex===i.value.length-1||i.value.length<=l,t=b({className:V("nextThumbnailIcon")},W("nextThumbnailIcon")),a=g.getJSXIcon(i.isVertical?i.nextThumbnailIcon||e.createElement(N,t):i.nextThumbnailIcon||e.createElement(S,t),K({},t),{props:i}),r=b({className:V("nextThumbnailButton",{isDisabled:n}),onClick:F,disabled:n,"data-p-disabled":n},W("nextThumbnailButton"));return e.createElement("button",r,a,e.createElement(f,null))}return null},he=(re=i.value.map((function(n,t){var a=-1*d,r=a+l-1;return e.createElement(Y,{key:t,index:t,template:i.itemTemplate,item:n,active:a<=t&&r>=t,start:a===t,end:r===t,onItemClick:L,current:i.activeItemIndex===t,ptm:D,cx:V,sx:H})})),le=i.isVertical?i.contentHeight:"",oe=pe(),ce=de(),se=b({className:V("thumbnailContainer")},W("thumbnailContainer")),ue=b({className:V("thumbnailItemsContainer"),style:H("thumbnailItemsContainer",{height:le})},W("thumbnailItemsContainer")),me=b({ref:v,className:V("thumbnailItems"),onTransitionEnd:$,onTouchStart:q,onTouchMove:Q,onTouchEnd:ee},W("thumbnailItems")),e.createElement("div",se,oe,e.createElement("div",ue,e.createElement("div",me,re)),ce)),fe=b({className:V("thumbnailWrapper")},W("thumbnailWrapper"));return e.createElement("div",fe,he)})));function F(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?F(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}Y.displayName="GalleriaThumbnailItem",_.displayName="GalleriaThumbnails";var $=e.memo(e.forwardRef((function(a,o){var c=e.useContext(t),s=W.getProps(a,c),u=R(e.useState(!1),2),I=u[0],O=u[1],S=R(e.useState(s.numVisible),2),N=S[0],E=S[1],C=R(e.useState(!1),2),j=C[0],T=C[1],k=R(e.useState(s.activeIndex),2),A=k[0],D=k[1],V=e.useRef(null),B=e.useRef(null),H=e.useRef(null),G=s.onItemChange?s.activeIndex:A,M="left"===s.thumbnailsPosition||"right"===s.thumbnailsPosition,J=W.setMetaData({props:s,state:{visible:I,numVisible:N,slideShowActive:j,activeIndex:A}}),U=J.ptm,z=J.cx,Z=J.sx,K=J.isUnstyled;r(W.css.styles,K,{name:"galleria"}),m((function(){Y({index:s.circular&&s.value.length-1===G?0:G+1})}),s.transitionInterval,j);var Y=function(e){e.index>=s.value.length?re():s.onItemChange?s.onItemChange(e):D(e.index)},F=function(){O(!0)},$=function(){O(!1)},q=function(){y.addClass(document.body,"p-overflow-hidden"),document.body.style.setProperty("--scrollbar-width",y.calculateScrollbarWidth()+"px")},Q=function(){w.set("modal",H.current,c&&c.autoZIndex||n.autoZIndex,s.baseZIndex||c&&c.zIndex.modal||n.zIndex.modal),!K()&&y.addMultipleClasses(H.current,"p-component-overlay p-component-overlay-enter")},ee=function(){s.onShow&&s.onShow()},ne=function(){y.removeClass(document.body,"p-overflow-hidden"),document.body.style.removeProperty("--scrollbar-width"),!K()&&y.addClass(H.current,"p-component-overlay-leave")},te=function(){w.clear(H.current),s.onHide&&s.onHide()},ie=function(){return j},ae=function(){T(!0)},re=function(){T(!1)},le=function(e,n){var t=["top","left","bottom","right"].find((function(e){return e===n}));return t?"".concat(e,"-").concat(t):""};e.useEffect((function(){s.value&&s.value.length<N&&E(s.value.length)}),[s.value,N]),e.useEffect((function(){E(s.numVisible)}),[s.numVisible]),p((function(){j&&re(),w.clear(H.current)})),e.useImperativeHandle(o,(function(){return{props:s,show:F,hide:$,isAutoPlayActive:ie,startSlideShow:ae,stopSlideShow:re,getElement:function(){return V.current},getPreviewContent:function(){return B.current}}}));return x.isNotEmpty(s.value)&&function(){var n,t,a,r,o,u,m,p,y,x,w,O,S=(a=s.showThumbnails&&le("p-galleria-thumbnails",s.thumbnailsPosition),r=s.showIndicators&&le("p-galleria-indicators",s.indicatorsPosition),o=b({className:z("closeIcon"),"aria-hidden":!0},U("closeIcon")),u=g.getJSXIcon(s.closeIcon||e.createElement(d,o),L({},o),{props:s}),m=b({type:"button",className:z("closeButton"),"aria-label":i("close"),onClick:$},U("closeButton")),p=s.fullScreen&&e.createElement("button",m,u,e.createElement(f,null)),n=b({className:z("header")},U("header")),y=s.header?e.createElement("div",n,s.header):null,t=b({className:z("footer")},U("footer")),x=s.footer?e.createElement("div",t,s.footer):null,w=b({ref:V,id:s.id,className:v(s.className,z("root",{context:c,thumbnailsPosClassName:a,indicatorPosClassName:r})),style:s.style},W.getOtherProps(s),U("root")),O=b({className:z("content")},U("content")),e.createElement("div",w,p,y,e.createElement("div",O,e.createElement(X,{hostName:"Galleria",ref:B,value:s.value,activeItemIndex:G,onActiveItemChange:Y,itemTemplate:s.item,circular:s.circular,caption:s.caption,showIndicators:s.showIndicators,itemPrevIcon:s.itemPrevIcon,itemNextIcon:s.itemNextIcon,changeItemOnIndicatorHover:s.changeItemOnIndicatorHover,indicator:s.indicator,showItemNavigators:s.showItemNavigators,autoPlay:s.autoPlay,slideShowActive:j,startSlideShow:ae,stopSlideShow:re,ptm:U,cx:z}),s.showThumbnails&&e.createElement(_,{hostName:"Galleria",value:s.value,activeItemIndex:G,onActiveItemChange:Y,itemTemplate:s.thumbnail,numVisible:N,nextThumbnailIcon:s.nextThumbnailIcon,prevThumbnailIcon:s.prevThumbnailIcon,responsiveOptions:s.responsiveOptions,circular:s.circular,isVertical:M,contentHeight:s.verticalThumbnailViewPortHeight,showThumbnailNavigators:s.showThumbnailNavigators,autoPlay:s.autoPlay,slideShowActive:j,stopSlideShow:re,isUnstyled:K,ptm:U,cx:z,sx:Z})),x));if(s.fullScreen){var E=b({className:z("mask",{visibleState:I})},U("mask")),C=b({classNames:z("transition"),in:I,timeout:{enter:150,exit:150},options:s.transitionOptions,unmountOnExit:!0,onEnter:q,onEntering:Q,onEntered:ee,onExit:ne,onExited:te},U("transition")),T=e.createElement("div",P({ref:H},E),e.createElement(l,P({nodeRef:V},C),S));return e.createElement(h,{element:T})}return S}()})));$.displayName="Galleria";export{$ as Galleria};
1
+ import*as e from"react";import n,{PrimeReactContext as t,localeOption as i}from"primereact/api";import{ComponentBase as a,useHandleStyle as r}from"primereact/componentbase";import{CSSTransition as l}from"primereact/csstransition";import{useMountEffect as o,usePrevious as c,useResizeListener as s,useUpdateEffect as u,useInterval as m,useUnmountEffect as p}from"primereact/hooks";import{TimesIcon as d}from"primereact/icons/times";import{Portal as h}from"primereact/portal";import{Ripple as f}from"primereact/ripple";import{classNames as v,mergeProps as g,IconUtils as b,UniqueComponentId as I,DomHandler as y,ObjectUtils as x,ZIndexUtils as w}from"primereact/utils";import{ChevronLeftIcon as O}from"primereact/icons/chevronleft";import{ChevronRightIcon as S}from"primereact/icons/chevronright";import{ChevronDownIcon as N}from"primereact/icons/chevrondown";import{ChevronUpIcon as E}from"primereact/icons/chevronup";function P(){return P=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P.apply(this,arguments)}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function j(e,n){if("object"!==C(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==C(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function T(e){var n=j(e,"string");return"symbol"===C(n)?n:String(n)}function k(e,n,t){return(n=T(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e){if(Array.isArray(e))return e}function D(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,r,l,o=[],c=!0,s=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=r.call(t)).done)&&(o.push(i.value),o.length!==n);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}function V(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function B(e,n){if(e){if("string"==typeof e)return V(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?V(e,n):void 0}}function H(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,n){return A(e)||D(e,n)||B(e,n)||H()}var G=a.extend({defaultProps:{__TYPE:"Galleria",id:null,value:null,activeIndex:0,fullScreen:!1,item:null,thumbnail:null,indicator:null,caption:null,className:null,closeIcon:null,style:null,header:null,footer:null,numVisible:3,responsiveOptions:null,showItemNavigators:!1,showThumbnailNavigators:!0,showItemNavigatorsOnHover:!1,changeItemOnIndicatorHover:!1,circular:!1,autoPlay:!1,transitionInterval:4e3,showThumbnails:!0,itemNextIcon:null,itemPrevIcon:null,nextThumbnailIcon:null,prevThumbnailIcon:null,thumbnailsPosition:"bottom",verticalThumbnailViewPortHeight:"300px",showIndicators:!1,showIndicatorsOnItem:!1,indicatorsPosition:"bottom",baseZIndex:0,transitionOptions:null,onItemChange:null,children:void 0},css:{classes:{header:"p-galleria-header",footer:"p-galleria-footer",closeIcon:"p-galleria-close-icon",closeButton:"p-galleria-close p-link",root:function(e){var t=e.props,i=e.context;return v("p-galleria p-component",{"p-galleria-fullscreen":t.fullScreen,"p-galleria-indicator-onitem":t.showIndicatorsOnItem,"p-galleria-item-nav-onhover":t.showItemNavigatorsOnHover&&!t.fullScreen,"p-input-filled":i&&"filled"===i.inputStyle||"filled"===n.inputStyle,"p-ripple-disabled":i&&!1===i.ripple||!1===n.ripple},e.thumbnailsPosClassName,e.indicatorPosClassName)},content:"p-galleria-content",mask:function(e){return v("p-galleria-mask",{"p-galleria-visible":e.visibleState})},thumbnailItem:function(e){var n=e.subProps;return v("p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":n.current,"p-galleria-thumbnail-item-active":n.active,"p-galleria-thumbnail-item-start":n.start,"p-galleria-thumbnail-item-end":n.end})},thumbnailItemContent:"p-galleria-thumbnail-item-content",previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",previousThumbnailButton:function(e){return v("p-galleria-thumbnail-prev p-link",{"p-disabled":e.isDisabled})},nextThumbnailIcon:"p-galleria-thumbnail-next-icon",nextThumbnailButton:function(e){return v("p-galleria-thumbnail-next p-link",{"p-disabled":e.isDisabled})},thumbnailContainer:"p-galleria-thumbnail-container",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailWrapper:"p-galleria-thumbnail-wrapper",previousItemIcon:"p-galleria-item-prev-icon",previousItemButton:function(e){return v("p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},nextItemIcon:"p-galleria-item-next-icon",nextItemButton:function(e){return v("p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},caption:"p-galleria-caption",indicator:function(e){return v("p-galleria-indicator",{"p-highlight":e.isActive})},indicators:"p-galleria-indicators p-reset",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",item:"p-galleria-item",transition:"p-galleria"},styles:"\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n z-index: 1;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n",inlineStyles:{thumbnailItemsContainer:function(e){return{height:e.height}}}}});function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=e.memo(e.forwardRef((function(n,t){var i=n.ptm,a=n.cx,r=function(e,t){return i(e,W({hostName:n.hostName},t))},l=function(){n.slideShowActive&&n.stopSlideShow&&n.stopSlideShow()},c=function(e){l(),n.onActiveItemChange({index:n.circular&&0===n.activeItemIndex?n.value.length-1:0!==n.activeItemIndex?n.activeItemIndex-1:0}),e&&e.cancelable&&e.preventDefault()},s=function(e){l(),n.onActiveItemChange({index:n.circular&&n.value.length-1===n.activeItemIndex?0:n.activeItemIndex+1}),e&&e.cancelable&&e.preventDefault()},u=function(e){l(),n.onActiveItemChange({index:e})},m=function(e){n.changeItemOnIndicatorHover&&(l(),n.onActiveItemChange({index:e}))},p=function(e,t){13===e.which&&(l(),n.onActiveItemChange({index:t}))};o((function(){n.autoPlay&&n.startSlideShow()}));var d=function(t){var i="p-galleria-indicator-"+t,l=n.activeItemIndex===t,o=n.indicator&&n.indicator(t),c=g({className:a("indicator",{isActive:l}),key:i,tabIndex:0,onClick:function(){return u(t)},onMouseEnter:function(){return m(t)},onKeyDown:function(e){return p(e,t)},"data-p-highlight":l},r("indicator"));return o||(o=e.createElement("button",{type:"button",tabIndex:-1,className:"p-link"},e.createElement(f,null))),e.createElement("li",c,o)},h=n.itemTemplate&&n.itemTemplate(n.value[n.activeItemIndex]),I=function(){if(n.showItemNavigators){var t=!n.circular&&0===n.activeItemIndex,i=g({className:a("previousItemIcon")},r("previousItemIcon")),l=b.getJSXIcon(n.itemPrevIcon||e.createElement(O,i),W({},i),{props:n}),o=g({type:"button",className:a("previousItemButton",{isDisabled:t}),onClick:c,disabled:t,"data-p-disabled":t},r("previousItemButton"));return e.createElement("button",o,l,e.createElement(f,null))}return null}(),y=function(){if(n.showItemNavigators){var t=!n.circular&&n.activeItemIndex===n.value.length-1,i=g({className:a("nextItemIcon")},r("nextItemIcon")),l=b.getJSXIcon(n.itemNextIcon||e.createElement(S,i),W({},i),{props:n}),o=g({type:"button",className:a("nextItemButton",{isDisabled:t}),onClick:s,disabled:t,"data-p-disabled":t},r("nextItemButton"));return e.createElement("button",o,l,e.createElement(f,null))}return null}(),x=function(){var t=g({className:a("caption")},r("caption"));if(n.caption){var i=n.caption(n.value[n.activeItemIndex]);return e.createElement("div",t,i)}return null}(),w=function(){if(n.showIndicators){for(var t=[],i=g({className:v(n.indicatorsContentClassName,a("indicators"))},r("indicators")),l=0;l<n.value.length;l++)t.push(d(l));return e.createElement("ul",i,t)}return null}(),N=g({ref:t,className:a("itemWrapper")},r("itemWrapper")),E=g({className:a("itemContainer")},r("itemContainer")),P=g({className:a("item")},r("item"));return e.createElement("div",N,e.createElement("div",E,I,e.createElement("div",P,h),y,x),w)})));function z(e){if(Array.isArray(e))return V(e)}function J(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function U(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}X.displayName="GalleriaItem";var Y=e.memo((function(n){var t=n.ptm,i=n.cx,a=function(e,i){return t(e,K({hostName:n.hostName},i))},r=n.active?0:null,l=n.template&&n.template(n.item),o=g({className:v(n.className,i("thumbnailItem",{subProps:n})),"data-p-galleria-thumbnail-item-current":n.current,"data-p-galleria-thumbnail-item-active":n.active,"data-p-galleria-thumbnail-item-start":n.start,"data-p-galleria-thumbnail-item-end":n.end},a("thumbnailItem")),c=g({className:i("thumbnailItemContent"),tabIndex:r,onClick:function(e){n.onItemClick({originalEvent:e,index:n.index})},onKeyDown:function(e){13===e.which&&n.onItemClick({originalEvent:e,index:n.index})}},a("thumbnailItemContent"));return e.createElement("div",o,e.createElement("div",c,l))})),_=e.memo(e.forwardRef((function(i,a){var r=R(e.useState(i.numVisible),2),l=r[0],m=r[1],p=R(e.useState(0),2),d=p[0],h=p[1],v=e.useRef(null),w=e.useRef(null),P=e.useRef(""),C=e.useRef(null),j=e.useRef(null),T=c(l),k=c(i.activeItemIndex),A=e.useContext(t),D=i.ptm,V=i.cx,H=i.sx,G=function(e,n){return D(e,K({hostName:i.hostName},n))},M=R(s({listener:function(){ae()},when:i.responsiveOptions}),1)[0],W=function(e){var n=d+e;e<0&&-1*n+l>i.value.length-1?n=l-i.value.length:e>0&&n>0&&(n=0),i.circular&&(e<0&&i.value.length-1===i.activeItemIndex?n=0:e>0&&0===i.activeItemIndex&&(n=l-i.value.length)),v.current&&(y.removeClass(v.current,"p-items-hidden"),v.current.style.transform=i.isVertical?"translate3d(0, ".concat(n*(100/l),"%, 0)"):"translate3d(".concat(n*(100/l),"%, 0, 0)"),v.current.style.transition="transform 500ms ease 0s"),h(n)},X=function(){i.slideShowActive&&i.stopSlideShow&&i.stopSlideShow()},Z=function(){var e=Math.floor(l/2);return l%2?e:e-1},_=function(e){X();var n=0!==i.activeItemIndex?i.activeItemIndex-1:0;l-(n+d)-1>Z()&&(-1*d!=0||i.circular)&&W(1),i.onActiveItemChange({index:i.circular&&0===i.activeItemIndex?i.value.length-1:n}),e.cancelable&&e.preventDefault()},F=function(e){X();var n=i.activeItemIndex+1;n+d>Z()&&(-1*d<te()-1||i.circular)&&W(-1),i.onActiveItemChange({index:i.circular&&i.value.length-1===i.activeItemIndex?0:n}),e.cancelable&&e.preventDefault()},L=function(e){X();var n=e.index;if(n!==i.activeItemIndex){var t=n+d,a=0;n<i.activeItemIndex?(a=l-t-1-Z())>0&&-1*d!=0&&W(a):(a=Z()-t)<0&&-1*d<te()-1&&W(a),i.onActiveItemChange({index:n})}},$=function(e){v.current&&"transform"===e.propertyName&&(document.body.setAttribute("data-p-items-hidden","false"),!i.isUnstyled()&&y.addClass(v.current,"p-items-hidden"),v.current.style.transition="")},q=function(e){var n=e.changedTouches[0];w.current={x:n.pageX,y:n.pageY}},Q=function(e){e.cancelable&&e.preventDefault()},ee=function(e){var n=e.changedTouches[0];ne(e,i.isVertical?n.pageY-w.current.y:n.pageX-w.current.x)},ne=function(e,n){n<0?F(e):_(e)},te=function(){return i.value.length>l?i.value.length-l+1:0},ie=function(){C.current||(C.current=y.createInlineStyle(A&&A.nonce||n.nonce));var e,t='\n [data-pc-section="thumbnailitems"]['.concat(P.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/l,"%\n }\n } \n ");if(i.responsiveOptions){var a=x.localeComparator(A&&A.locale||n.locale);j.current=z(e=i.responsiveOptions)||J(e)||B(e)||U(),j.current.sort((function(e,t){return x.sort(e.breakpoint,t.breakpoint,-1,a,A&&A.nullSortOrder||n.nullSortOrder)}));for(var r=0;r<j.current.length;r++){var o=j.current[r];t+="\n @media screen and (max-width: ".concat(o.breakpoint,') {\n [data-pc-section="thumbnailitems"][').concat(P.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/o.numVisible,"%\n }\n } \n }\n ")}}C.current.innerHTML=t},ae=function(){if(v.current&&j.current){for(var e=window.innerWidth,n={numVisible:i.numVisible},t=0;t<j.current.length;t++){var a=j.current[t];parseInt(a.breakpoint,10)>=e&&(n=a)}l!==n.numVisible&&m(n.numVisible)}};o((function(){v.current&&(P.current=I(),v.current.setAttribute(P.current,"")),ie(),ae(),M()})),u((function(){var e=d;T===l&&k===i.activeItemIndex||((e=i.activeItemIndex<=Z()?0:i.value.length-l+Z()<i.activeItemIndex?l-i.value.length:i.value.length-l<i.activeItemIndex&&l%2==0?-1*i.activeItemIndex+Z()+1:-1*i.activeItemIndex+Z())!==d&&h(e),v.current.style.transform=i.isVertical?"translate3d(0, ".concat(e*(100/l),"%, 0)"):"translate3d(".concat(e*(100/l),"%, 0, 0)"),k!==i.activeItemIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!i.isUnstyled()&&y.removeClass(v.current,"p-items-hidden"),v.current.style.transition="transform 500ms ease 0s"))}));var re,le,oe,ce,se,ue,me,pe=function(){if(i.showThumbnailNavigators){var n=!i.circular&&0===i.activeItemIndex||i.value.length<=l,t=g({className:V("previousThumbnailIcon")},G("previousThumbnailIcon")),a=b.getJSXIcon(i.isVertical?i.prevThumbnailIcon||e.createElement(E,t):i.prevThumbnailIcon||e.createElement(O,t),K({},t),{props:i}),r=g({className:V("previousThumbnailButton",{isDisabled:n}),onClick:_,disabled:n,"data-p-disabled":n},G("previousThumbnailButton"));return e.createElement("button",r,a,e.createElement(f,null))}return null},de=function(){if(i.showThumbnailNavigators){var n=!i.circular&&i.activeItemIndex===i.value.length-1||i.value.length<=l,t=g({className:V("nextThumbnailIcon")},G("nextThumbnailIcon")),a=b.getJSXIcon(i.isVertical?i.nextThumbnailIcon||e.createElement(N,t):i.nextThumbnailIcon||e.createElement(S,t),K({},t),{props:i}),r=g({className:V("nextThumbnailButton",{isDisabled:n}),onClick:F,disabled:n,"data-p-disabled":n},G("nextThumbnailButton"));return e.createElement("button",r,a,e.createElement(f,null))}return null},he=(re=i.value.map((function(n,t){var a=-1*d,r=a+l-1;return e.createElement(Y,{key:t,index:t,template:i.itemTemplate,item:n,active:a<=t&&r>=t,start:a===t,end:r===t,onItemClick:L,current:i.activeItemIndex===t,ptm:D,cx:V,sx:H})})),le=i.isVertical?i.contentHeight:"",oe=pe(),ce=de(),se=g({className:V("thumbnailContainer")},G("thumbnailContainer")),ue=g({className:V("thumbnailItemsContainer"),style:H("thumbnailItemsContainer",{height:le})},G("thumbnailItemsContainer")),me=g({ref:v,className:V("thumbnailItems"),onTransitionEnd:$,onTouchStart:q,onTouchMove:Q,onTouchEnd:ee},G("thumbnailItems")),e.createElement("div",se,oe,e.createElement("div",ue,e.createElement("div",me,re)),ce)),fe=g({className:V("thumbnailWrapper")},G("thumbnailWrapper"));return e.createElement("div",fe,he)})));function F(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?F(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}Y.displayName="GalleriaThumbnailItem",_.displayName="GalleriaThumbnails";var $=e.memo(e.forwardRef((function(a,o){var c=e.useContext(t),s=G.getProps(a,c),u=R(e.useState(!1),2),I=u[0],O=u[1],S=R(e.useState(s.numVisible),2),N=S[0],E=S[1],C=R(e.useState(!1),2),j=C[0],T=C[1],k=R(e.useState(s.activeIndex),2),A=k[0],D=k[1],V=e.useRef(null),B=e.useRef(null),H=e.useRef(null),M=s.onItemChange?s.activeIndex:A,W="left"===s.thumbnailsPosition||"right"===s.thumbnailsPosition,z=G.setMetaData({props:s,state:{visible:I,numVisible:N,slideShowActive:j,activeIndex:A}}),J=z.ptm,U=z.cx,Z=z.sx,K=z.isUnstyled;r(G.css.styles,K,{name:"galleria"}),m((function(){Y({index:s.circular&&s.value.length-1===M?0:M+1})}),s.transitionInterval,j);var Y=function(e){e.index>=s.value.length?re():s.onItemChange?s.onItemChange(e):D(e.index)},F=function(){O(!0)},$=function(){O(!1)},q=function(){y.blockBodyScroll()},Q=function(){w.set("modal",H.current,c&&c.autoZIndex||n.autoZIndex,s.baseZIndex||c&&c.zIndex.modal||n.zIndex.modal),!K()&&y.addMultipleClasses(H.current,"p-component-overlay p-component-overlay-enter")},ee=function(){s.onShow&&s.onShow()},ne=function(){y.unblockBodyScroll(),!K()&&y.addClass(H.current,"p-component-overlay-leave")},te=function(){w.clear(H.current),s.onHide&&s.onHide()},ie=function(){return j},ae=function(){T(!0)},re=function(){T(!1)},le=function(e,n){var t=["top","left","bottom","right"].find((function(e){return e===n}));return t?"".concat(e,"-").concat(t):""};e.useEffect((function(){s.value&&s.value.length<N&&E(s.value.length)}),[s.value,N]),e.useEffect((function(){E(s.numVisible)}),[s.numVisible]),p((function(){j&&re(),w.clear(H.current)})),e.useImperativeHandle(o,(function(){return{props:s,show:F,hide:$,isAutoPlayActive:ie,startSlideShow:ae,stopSlideShow:re,getElement:function(){return V.current},getPreviewContent:function(){return B.current}}}));return x.isNotEmpty(s.value)&&function(){var n,t,a,r,o,u,m,p,y,x,w,O,S=(a=s.showThumbnails&&le("p-galleria-thumbnails",s.thumbnailsPosition),r=s.showIndicators&&le("p-galleria-indicators",s.indicatorsPosition),o=g({className:U("closeIcon"),"aria-hidden":!0},J("closeIcon")),u=b.getJSXIcon(s.closeIcon||e.createElement(d,o),L({},o),{props:s}),m=g({type:"button",className:U("closeButton"),"aria-label":i("close"),onClick:$},J("closeButton")),p=s.fullScreen&&e.createElement("button",m,u,e.createElement(f,null)),n=g({className:U("header")},J("header")),y=s.header?e.createElement("div",n,s.header):null,t=g({className:U("footer")},J("footer")),x=s.footer?e.createElement("div",t,s.footer):null,w=g({ref:V,id:s.id,className:v(s.className,U("root",{context:c,thumbnailsPosClassName:a,indicatorPosClassName:r})),style:s.style},G.getOtherProps(s),J("root")),O=g({className:U("content")},J("content")),e.createElement("div",w,p,y,e.createElement("div",O,e.createElement(X,{hostName:"Galleria",ref:B,value:s.value,activeItemIndex:M,onActiveItemChange:Y,itemTemplate:s.item,circular:s.circular,caption:s.caption,showIndicators:s.showIndicators,itemPrevIcon:s.itemPrevIcon,itemNextIcon:s.itemNextIcon,changeItemOnIndicatorHover:s.changeItemOnIndicatorHover,indicator:s.indicator,showItemNavigators:s.showItemNavigators,autoPlay:s.autoPlay,slideShowActive:j,startSlideShow:ae,stopSlideShow:re,ptm:J,cx:U}),s.showThumbnails&&e.createElement(_,{hostName:"Galleria",value:s.value,activeItemIndex:M,onActiveItemChange:Y,itemTemplate:s.thumbnail,numVisible:N,nextThumbnailIcon:s.nextThumbnailIcon,prevThumbnailIcon:s.prevThumbnailIcon,responsiveOptions:s.responsiveOptions,circular:s.circular,isVertical:W,contentHeight:s.verticalThumbnailViewPortHeight,showThumbnailNavigators:s.showThumbnailNavigators,autoPlay:s.autoPlay,slideShowActive:j,stopSlideShow:re,isUnstyled:K,ptm:J,cx:U,sx:Z})),x));if(s.fullScreen){var E=g({className:U("mask",{visibleState:I})},J("mask")),C=g({classNames:U("transition"),in:I,timeout:{enter:150,exit:150},options:s.transitionOptions,unmountOnExit:!0,onEnter:q,onEntering:Q,onEntered:ee,onExit:ne,onExited:te},J("transition")),T=e.createElement("div",P({ref:H},E),e.createElement(l,P({nodeRef:V},C),S));return e.createElement(h,{element:T})}return S}()})));$.displayName="Galleria";export{$ as Galleria};
@@ -216,7 +216,7 @@ this.primereact.galleria = (function (exports, React, PrimeReact, componentbase,
216
216
  item: 'p-galleria-item',
217
217
  transition: 'p-galleria'
218
218
  };
219
- var styles = "\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n";
219
+ var styles = "\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n z-index: 1;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n";
220
220
  var inlineStyles = {
221
221
  thumbnailItemsContainer: function thumbnailItemsContainer(_ref9) {
222
222
  var height = _ref9.height;
@@ -904,8 +904,7 @@ this.primereact.galleria = (function (exports, React, PrimeReact, componentbase,
904
904
  setVisibleState(false);
905
905
  };
906
906
  var onEnter = function onEnter() {
907
- utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
908
- document.body.style.setProperty('--scrollbar-width', utils.DomHandler.calculateScrollbarWidth() + 'px');
907
+ utils.DomHandler.blockBodyScroll();
909
908
  };
910
909
  var onEntering = function onEntering() {
911
910
  utils.ZIndexUtils.set('modal', maskRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, props.baseZIndex || context && context.zIndex['modal'] || PrimeReact__default["default"].zIndex['modal']);
@@ -915,8 +914,7 @@ this.primereact.galleria = (function (exports, React, PrimeReact, componentbase,
915
914
  props.onShow && props.onShow();
916
915
  };
917
916
  var onExit = function onExit() {
918
- utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
919
- document.body.style.removeProperty('--scrollbar-width');
917
+ utils.DomHandler.unblockBodyScroll();
920
918
  !isUnstyled() && utils.DomHandler.addClass(maskRef.current, 'p-component-overlay-leave');
921
919
  };
922
920
  var onExited = function onExited() {
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.galleria=function(e,n,t,i,a,r,l,o,c,s,u,m,p,d){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var g=f(n),v=h(t);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},b.apply(this,arguments)}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function y(e,n){if("object"!==I(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==I(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function x(e){var n=y(e,"string");return"symbol"===I(n)?n:String(n)}function w(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){if(Array.isArray(e))return e}function O(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,r,l,o=[],c=!0,s=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=r.call(t)).done)&&(o.push(i.value),o.length!==n);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function N(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,n){return P(e)||O(e,n)||N(e,n)||E()}var j=i.ComponentBase.extend({defaultProps:{__TYPE:"Galleria",id:null,value:null,activeIndex:0,fullScreen:!1,item:null,thumbnail:null,indicator:null,caption:null,className:null,closeIcon:null,style:null,header:null,footer:null,numVisible:3,responsiveOptions:null,showItemNavigators:!1,showThumbnailNavigators:!0,showItemNavigatorsOnHover:!1,changeItemOnIndicatorHover:!1,circular:!1,autoPlay:!1,transitionInterval:4e3,showThumbnails:!0,itemNextIcon:null,itemPrevIcon:null,nextThumbnailIcon:null,prevThumbnailIcon:null,thumbnailsPosition:"bottom",verticalThumbnailViewPortHeight:"300px",showIndicators:!1,showIndicatorsOnItem:!1,indicatorsPosition:"bottom",baseZIndex:0,transitionOptions:null,onItemChange:null,children:void 0},css:{classes:{header:"p-galleria-header",footer:"p-galleria-footer",closeIcon:"p-galleria-close-icon",closeButton:"p-galleria-close p-link",root:function(e){var n=e.props,t=e.context;return s.classNames("p-galleria p-component",{"p-galleria-fullscreen":n.fullScreen,"p-galleria-indicator-onitem":n.showIndicatorsOnItem,"p-galleria-item-nav-onhover":n.showItemNavigatorsOnHover&&!n.fullScreen,"p-input-filled":t&&"filled"===t.inputStyle||"filled"===v.default.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===v.default.ripple},e.thumbnailsPosClassName,e.indicatorPosClassName)},content:"p-galleria-content",mask:function(e){return s.classNames("p-galleria-mask",{"p-galleria-visible":e.visibleState})},thumbnailItem:function(e){var n=e.subProps;return s.classNames("p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":n.current,"p-galleria-thumbnail-item-active":n.active,"p-galleria-thumbnail-item-start":n.start,"p-galleria-thumbnail-item-end":n.end})},thumbnailItemContent:"p-galleria-thumbnail-item-content",previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",previousThumbnailButton:function(e){return s.classNames("p-galleria-thumbnail-prev p-link",{"p-disabled":e.isDisabled})},nextThumbnailIcon:"p-galleria-thumbnail-next-icon",nextThumbnailButton:function(e){return s.classNames("p-galleria-thumbnail-next p-link",{"p-disabled":e.isDisabled})},thumbnailContainer:"p-galleria-thumbnail-container",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailWrapper:"p-galleria-thumbnail-wrapper",previousItemIcon:"p-galleria-item-prev-icon",previousItemButton:function(e){return s.classNames("p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},nextItemIcon:"p-galleria-item-next-icon",nextItemButton:function(e){return s.classNames("p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},caption:"p-galleria-caption",indicator:function(e){return s.classNames("p-galleria-indicator",{"p-highlight":e.isActive})},indicators:"p-galleria-indicators p-reset",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",item:"p-galleria-item",transition:"p-galleria"},styles:"\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n",inlineStyles:{thumbnailItemsContainer:function(e){return{height:e.height}}}}});function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=g.memo(g.forwardRef((function(e,n){var t=e.ptm,i=e.cx,a=function(n,i){return t(n,D({hostName:e.hostName},i))},l=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},o=function(n){l(),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:0!==e.activeItemIndex?e.activeItemIndex-1:0}),n&&n.cancelable&&n.preventDefault()},p=function(n){l(),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:e.activeItemIndex+1}),n&&n.cancelable&&n.preventDefault()},d=function(n){l(),e.onActiveItemChange({index:n})},h=function(n){e.changeItemOnIndicatorHover&&(l(),e.onActiveItemChange({index:n}))},f=function(n,t){13===n.which&&(l(),e.onActiveItemChange({index:t}))};r.useMountEffect((function(){e.autoPlay&&e.startSlideShow()}));var v=function(n){var t="p-galleria-indicator-"+n,r=e.activeItemIndex===n,l=e.indicator&&e.indicator(n),o=s.mergeProps({className:i("indicator",{isActive:r}),key:t,tabIndex:0,onClick:function(){return d(n)},onMouseEnter:function(){return h(n)},onKeyDown:function(e){return f(e,n)},"data-p-highlight":r},a("indicator"));return l||(l=g.createElement("button",{type:"button",tabIndex:-1,className:"p-link"},g.createElement(c.Ripple,null))),g.createElement("li",o,l)},b=e.itemTemplate&&e.itemTemplate(e.value[e.activeItemIndex]),I=function(){if(e.showItemNavigators){var n=!e.circular&&0===e.activeItemIndex,t=s.mergeProps({className:i("previousItemIcon")},a("previousItemIcon")),r=s.IconUtils.getJSXIcon(e.itemPrevIcon||g.createElement(u.ChevronLeftIcon,t),D({},t),{props:e}),l=s.mergeProps({type:"button",className:i("previousItemButton",{isDisabled:n}),onClick:o,disabled:n,"data-p-disabled":n},a("previousItemButton"));return g.createElement("button",l,r,g.createElement(c.Ripple,null))}return null}(),y=function(){if(e.showItemNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1,t=s.mergeProps({className:i("nextItemIcon")},a("nextItemIcon")),r=s.IconUtils.getJSXIcon(e.itemNextIcon||g.createElement(m.ChevronRightIcon,t),D({},t),{props:e}),l=s.mergeProps({type:"button",className:i("nextItemButton",{isDisabled:n}),onClick:p,disabled:n,"data-p-disabled":n},a("nextItemButton"));return g.createElement("button",l,r,g.createElement(c.Ripple,null))}return null}(),x=function(){var n=s.mergeProps({className:i("caption")},a("caption"));if(e.caption){var t=e.caption(e.value[e.activeItemIndex]);return g.createElement("div",n,t)}return null}(),w=function(){if(e.showIndicators){for(var n=[],t=s.mergeProps({className:s.classNames(e.indicatorsContentClassName,i("indicators"))},a("indicators")),r=0;r<e.value.length;r++)n.push(v(r));return g.createElement("ul",t,n)}return null}(),P=s.mergeProps({ref:n,className:i("itemWrapper")},a("itemWrapper")),O=s.mergeProps({className:i("itemContainer")},a("itemContainer")),S=s.mergeProps({className:i("item")},a("item"));return g.createElement("div",P,g.createElement("div",O,I,g.createElement("div",S,b),y,x),w)})));function A(e){if(Array.isArray(e))return S(e)}function H(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}k.displayName="GalleriaItem";var B=g.memo((function(e){var n=e.ptm,t=e.cx,i=function(t,i){return n(t,U({hostName:e.hostName},i))},a=e.active?0:null,r=e.template&&e.template(e.item),l=s.mergeProps({className:s.classNames(e.className,t("thumbnailItem",{subProps:e})),"data-p-galleria-thumbnail-item-current":e.current,"data-p-galleria-thumbnail-item-active":e.active,"data-p-galleria-thumbnail-item-start":e.start,"data-p-galleria-thumbnail-item-end":e.end},i("thumbnailItem")),o=s.mergeProps({className:t("thumbnailItemContent"),tabIndex:a,onClick:function(n){e.onItemClick({originalEvent:n,index:e.index})},onKeyDown:function(n){13===n.which&&e.onItemClick({originalEvent:n,index:e.index})}},i("thumbnailItemContent"));return g.createElement("div",l,g.createElement("div",o,r))})),M=g.memo(g.forwardRef((function(e,n){var i=C(g.useState(e.numVisible),2),a=i[0],l=i[1],o=C(g.useState(0),2),h=o[0],f=o[1],b=g.useRef(null),I=g.useRef(null),y=g.useRef(""),x=g.useRef(null),w=g.useRef(null),P=r.usePrevious(a),O=r.usePrevious(e.activeItemIndex),S=g.useContext(t.PrimeReactContext),E=e.ptm,j=e.cx,T=e.sx,D=function(n,t){return E(n,U({hostName:e.hostName},t))},k=C(r.useResizeListener({listener:function(){F()},when:e.responsiveOptions}),1)[0],V=function(n){var t=h+n;n<0&&-1*t+a>e.value.length-1?t=a-e.value.length:n>0&&t>0&&(t=0),e.circular&&(n<0&&e.value.length-1===e.activeItemIndex?t=0:n>0&&0===e.activeItemIndex&&(t=a-e.value.length)),b.current&&(s.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(t*(100/a),"%, 0)"):"translate3d(".concat(t*(100/a),"%, 0, 0)"),b.current.style.transition="transform 500ms ease 0s"),f(t)},M=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},G=function(){var e=Math.floor(a/2);return a%2?e:e-1},W=function(n){M();var t=0!==e.activeItemIndex?e.activeItemIndex-1:0;a-(t+h)-1>G()&&(-1*h!=0||e.circular)&&V(1),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:t}),n.cancelable&&n.preventDefault()},X=function(n){M();var t=e.activeItemIndex+1;t+h>G()&&(-1*h<Y()-1||e.circular)&&V(-1),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:t}),n.cancelable&&n.preventDefault()},Z=function(n){M();var t=n.index;if(t!==e.activeItemIndex){var i=t+h,r=0;t<e.activeItemIndex?(r=a-i-1-G())>0&&-1*h!=0&&V(r):(r=G()-i)<0&&-1*h<Y()-1&&V(r),e.onActiveItemChange({index:t})}},z=function(n){b.current&&"transform"===n.propertyName&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&s.DomHandler.addClass(b.current,"p-items-hidden"),b.current.style.transition="")},_=function(e){var n=e.changedTouches[0];I.current={x:n.pageX,y:n.pageY}},J=function(e){e.cancelable&&e.preventDefault()},L=function(n){var t=n.changedTouches[0];K(n,e.isVertical?t.pageY-I.current.y:t.pageX-I.current.x)},K=function(e,n){n<0?X(e):W(e)},Y=function(){return e.value.length>a?e.value.length-a+1:0},q=function(){x.current||(x.current=s.DomHandler.createInlineStyle(S&&S.nonce||v.default.nonce));var n,t='\n [data-pc-section="thumbnailitems"]['.concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/a,"%\n }\n } \n ");if(e.responsiveOptions){var i=s.ObjectUtils.localeComparator(S&&S.locale||v.default.locale);w.current=A(n=e.responsiveOptions)||H(n)||N(n)||R(),w.current.sort((function(e,n){return s.ObjectUtils.sort(e.breakpoint,n.breakpoint,-1,i,S&&S.nullSortOrder||v.default.nullSortOrder)}));for(var r=0;r<w.current.length;r++){var l=w.current[r];t+="\n @media screen and (max-width: ".concat(l.breakpoint,') {\n [data-pc-section="thumbnailitems"][').concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/l.numVisible,"%\n }\n } \n }\n ")}}x.current.innerHTML=t},F=function(){if(b.current&&w.current){for(var n=window.innerWidth,t={numVisible:e.numVisible},i=0;i<w.current.length;i++){var r=w.current[i];parseInt(r.breakpoint,10)>=n&&(t=r)}a!==t.numVisible&&l(t.numVisible)}};r.useMountEffect((function(){b.current&&(y.current=s.UniqueComponentId(),b.current.setAttribute(y.current,"")),q(),F(),k()})),r.useUpdateEffect((function(){var n=h;P===a&&O===e.activeItemIndex||((n=e.activeItemIndex<=G()?0:e.value.length-a+G()<e.activeItemIndex?a-e.value.length:e.value.length-a<e.activeItemIndex&&a%2==0?-1*e.activeItemIndex+G()+1:-1*e.activeItemIndex+G())!==h&&f(n),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(n*(100/a),"%, 0)"):"translate3d(".concat(n*(100/a),"%, 0, 0)"),O!==e.activeItemIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&s.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transition="transform 500ms ease 0s"))}));var $,Q,ee,ne,te,ie,ae,re=function(){if(e.showThumbnailNavigators){var n=!e.circular&&0===e.activeItemIndex||e.value.length<=a,t=s.mergeProps({className:j("previousThumbnailIcon")},D("previousThumbnailIcon")),i=s.IconUtils.getJSXIcon(e.isVertical?e.prevThumbnailIcon||g.createElement(d.ChevronUpIcon,t):e.prevThumbnailIcon||g.createElement(u.ChevronLeftIcon,t),U({},t),{props:e}),r=s.mergeProps({className:j("previousThumbnailButton",{isDisabled:n}),onClick:W,disabled:n,"data-p-disabled":n},D("previousThumbnailButton"));return g.createElement("button",r,i,g.createElement(c.Ripple,null))}return null},le=function(){if(e.showThumbnailNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1||e.value.length<=a,t=s.mergeProps({className:j("nextThumbnailIcon")},D("nextThumbnailIcon")),i=s.IconUtils.getJSXIcon(e.isVertical?e.nextThumbnailIcon||g.createElement(p.ChevronDownIcon,t):e.nextThumbnailIcon||g.createElement(m.ChevronRightIcon,t),U({},t),{props:e}),r=s.mergeProps({className:j("nextThumbnailButton",{isDisabled:n}),onClick:X,disabled:n,"data-p-disabled":n},D("nextThumbnailButton"));return g.createElement("button",r,i,g.createElement(c.Ripple,null))}return null},oe=($=e.value.map((function(n,t){var i=-1*h,r=i+a-1;return g.createElement(B,{key:t,index:t,template:e.itemTemplate,item:n,active:i<=t&&r>=t,start:i===t,end:r===t,onItemClick:Z,current:e.activeItemIndex===t,ptm:E,cx:j,sx:T})})),Q=e.isVertical?e.contentHeight:"",ee=re(),ne=le(),te=s.mergeProps({className:j("thumbnailContainer")},D("thumbnailContainer")),ie=s.mergeProps({className:j("thumbnailItemsContainer"),style:T("thumbnailItemsContainer",{height:Q})},D("thumbnailItemsContainer")),ae=s.mergeProps({ref:b,className:j("thumbnailItems"),onTransitionEnd:z,onTouchStart:_,onTouchMove:J,onTouchEnd:L},D("thumbnailItems")),g.createElement("div",te,ee,g.createElement("div",ie,g.createElement("div",ae,$)),ne)),ce=s.mergeProps({className:j("thumbnailWrapper")},D("thumbnailWrapper"));return g.createElement("div",ce,oe)})));function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}B.displayName="GalleriaThumbnailItem",M.displayName="GalleriaThumbnails";var X=g.memo(g.forwardRef((function(e,n){var u=g.useContext(t.PrimeReactContext),m=j.getProps(e,u),p=C(g.useState(!1),2),d=p[0],h=p[1],f=C(g.useState(m.numVisible),2),I=f[0],y=f[1],x=C(g.useState(!1),2),w=x[0],P=x[1],O=C(g.useState(m.activeIndex),2),S=O[0],N=O[1],E=g.useRef(null),T=g.useRef(null),D=g.useRef(null),A=m.onItemChange?m.activeIndex:S,H="left"===m.thumbnailsPosition||"right"===m.thumbnailsPosition,R=j.setMetaData({props:m,state:{visible:d,numVisible:I,slideShowActive:w,activeIndex:S}}),V=R.ptm,U=R.cx,B=R.sx,G=R.isUnstyled;i.useHandleStyle(j.css.styles,G,{name:"galleria"}),r.useInterval((function(){X({index:m.circular&&m.value.length-1===A?0:A+1})}),m.transitionInterval,w);var X=function(e){e.index>=m.value.length?$():m.onItemChange?m.onItemChange(e):N(e.index)},Z=function(){h(!0)},z=function(){h(!1)},_=function(){s.DomHandler.addClass(document.body,"p-overflow-hidden"),document.body.style.setProperty("--scrollbar-width",s.DomHandler.calculateScrollbarWidth()+"px")},J=function(){s.ZIndexUtils.set("modal",D.current,u&&u.autoZIndex||v.default.autoZIndex,m.baseZIndex||u&&u.zIndex.modal||v.default.zIndex.modal),!G()&&s.DomHandler.addMultipleClasses(D.current,"p-component-overlay p-component-overlay-enter")},L=function(){m.onShow&&m.onShow()},K=function(){s.DomHandler.removeClass(document.body,"p-overflow-hidden"),document.body.style.removeProperty("--scrollbar-width"),!G()&&s.DomHandler.addClass(D.current,"p-component-overlay-leave")},Y=function(){s.ZIndexUtils.clear(D.current),m.onHide&&m.onHide()},q=function(){return w},F=function(){P(!0)},$=function(){P(!1)},Q=function(e,n){var t=["top","left","bottom","right"].find((function(e){return e===n}));return t?"".concat(e,"-").concat(t):""};g.useEffect((function(){m.value&&m.value.length<I&&y(m.value.length)}),[m.value,I]),g.useEffect((function(){y(m.numVisible)}),[m.numVisible]),r.useUnmountEffect((function(){w&&$(),s.ZIndexUtils.clear(D.current)})),g.useImperativeHandle(n,(function(){return{props:m,show:Z,hide:z,isAutoPlayActive:q,startSlideShow:F,stopSlideShow:$,getElement:function(){return E.current},getPreviewContent:function(){return T.current}}}));return s.ObjectUtils.isNotEmpty(m.value)&&function(){var e,n,i,r,p,h,f,v,y,x,P,O,S=(i=m.showThumbnails&&Q("p-galleria-thumbnails",m.thumbnailsPosition),r=m.showIndicators&&Q("p-galleria-indicators",m.indicatorsPosition),p=s.mergeProps({className:U("closeIcon"),"aria-hidden":!0},V("closeIcon")),h=s.IconUtils.getJSXIcon(m.closeIcon||g.createElement(l.TimesIcon,p),W({},p),{props:m}),f=s.mergeProps({type:"button",className:U("closeButton"),"aria-label":t.localeOption("close"),onClick:z},V("closeButton")),v=m.fullScreen&&g.createElement("button",f,h,g.createElement(c.Ripple,null)),e=s.mergeProps({className:U("header")},V("header")),y=m.header?g.createElement("div",e,m.header):null,n=s.mergeProps({className:U("footer")},V("footer")),x=m.footer?g.createElement("div",n,m.footer):null,P=s.mergeProps({ref:E,id:m.id,className:s.classNames(m.className,U("root",{context:u,thumbnailsPosClassName:i,indicatorPosClassName:r})),style:m.style},j.getOtherProps(m),V("root")),O=s.mergeProps({className:U("content")},V("content")),g.createElement("div",P,v,y,g.createElement("div",O,g.createElement(k,{hostName:"Galleria",ref:T,value:m.value,activeItemIndex:A,onActiveItemChange:X,itemTemplate:m.item,circular:m.circular,caption:m.caption,showIndicators:m.showIndicators,itemPrevIcon:m.itemPrevIcon,itemNextIcon:m.itemNextIcon,changeItemOnIndicatorHover:m.changeItemOnIndicatorHover,indicator:m.indicator,showItemNavigators:m.showItemNavigators,autoPlay:m.autoPlay,slideShowActive:w,startSlideShow:F,stopSlideShow:$,ptm:V,cx:U}),m.showThumbnails&&g.createElement(M,{hostName:"Galleria",value:m.value,activeItemIndex:A,onActiveItemChange:X,itemTemplate:m.thumbnail,numVisible:I,nextThumbnailIcon:m.nextThumbnailIcon,prevThumbnailIcon:m.prevThumbnailIcon,responsiveOptions:m.responsiveOptions,circular:m.circular,isVertical:H,contentHeight:m.verticalThumbnailViewPortHeight,showThumbnailNavigators:m.showThumbnailNavigators,autoPlay:m.autoPlay,slideShowActive:w,stopSlideShow:$,isUnstyled:G,ptm:V,cx:U,sx:B})),x));if(m.fullScreen){var N=s.mergeProps({className:U("mask",{visibleState:d})},V("mask")),C=s.mergeProps({classNames:U("transition"),in:d,timeout:{enter:150,exit:150},options:m.transitionOptions,unmountOnExit:!0,onEnter:_,onEntering:J,onEntered:L,onExit:K,onExited:Y},V("transition")),R=g.createElement("div",b({ref:D},N),g.createElement(a.CSSTransition,b({nodeRef:E},C),S));return g.createElement(o.Portal,{element:R})}return S}()})));return X.displayName="Galleria",e.Galleria=X,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.icons.times,primereact.portal,primereact.ripple,primereact.utils,primereact.icons.chevronleft,primereact.icons.chevronright,primereact.icons.chevrondown,primereact.icons.chevronup);
1
+ this.primereact=this.primereact||{},this.primereact.galleria=function(e,n,t,i,a,r,l,o,c,s,u,m,p,d){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var g=f(n),v=h(t);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},b.apply(this,arguments)}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function y(e,n){if("object"!==I(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==I(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function x(e){var n=y(e,"string");return"symbol"===I(n)?n:String(n)}function w(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){if(Array.isArray(e))return e}function O(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,r,l,o=[],c=!0,s=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=r.call(t)).done)&&(o.push(i.value),o.length!==n);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function N(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,n){return P(e)||O(e,n)||N(e,n)||E()}var j=i.ComponentBase.extend({defaultProps:{__TYPE:"Galleria",id:null,value:null,activeIndex:0,fullScreen:!1,item:null,thumbnail:null,indicator:null,caption:null,className:null,closeIcon:null,style:null,header:null,footer:null,numVisible:3,responsiveOptions:null,showItemNavigators:!1,showThumbnailNavigators:!0,showItemNavigatorsOnHover:!1,changeItemOnIndicatorHover:!1,circular:!1,autoPlay:!1,transitionInterval:4e3,showThumbnails:!0,itemNextIcon:null,itemPrevIcon:null,nextThumbnailIcon:null,prevThumbnailIcon:null,thumbnailsPosition:"bottom",verticalThumbnailViewPortHeight:"300px",showIndicators:!1,showIndicatorsOnItem:!1,indicatorsPosition:"bottom",baseZIndex:0,transitionOptions:null,onItemChange:null,children:void 0},css:{classes:{header:"p-galleria-header",footer:"p-galleria-footer",closeIcon:"p-galleria-close-icon",closeButton:"p-galleria-close p-link",root:function(e){var n=e.props,t=e.context;return s.classNames("p-galleria p-component",{"p-galleria-fullscreen":n.fullScreen,"p-galleria-indicator-onitem":n.showIndicatorsOnItem,"p-galleria-item-nav-onhover":n.showItemNavigatorsOnHover&&!n.fullScreen,"p-input-filled":t&&"filled"===t.inputStyle||"filled"===v.default.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===v.default.ripple},e.thumbnailsPosClassName,e.indicatorPosClassName)},content:"p-galleria-content",mask:function(e){return s.classNames("p-galleria-mask",{"p-galleria-visible":e.visibleState})},thumbnailItem:function(e){var n=e.subProps;return s.classNames("p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":n.current,"p-galleria-thumbnail-item-active":n.active,"p-galleria-thumbnail-item-start":n.start,"p-galleria-thumbnail-item-end":n.end})},thumbnailItemContent:"p-galleria-thumbnail-item-content",previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",previousThumbnailButton:function(e){return s.classNames("p-galleria-thumbnail-prev p-link",{"p-disabled":e.isDisabled})},nextThumbnailIcon:"p-galleria-thumbnail-next-icon",nextThumbnailButton:function(e){return s.classNames("p-galleria-thumbnail-next p-link",{"p-disabled":e.isDisabled})},thumbnailContainer:"p-galleria-thumbnail-container",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailWrapper:"p-galleria-thumbnail-wrapper",previousItemIcon:"p-galleria-item-prev-icon",previousItemButton:function(e){return s.classNames("p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},nextItemIcon:"p-galleria-item-next-icon",nextItemButton:function(e){return s.classNames("p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":e.isDisabled})},caption:"p-galleria-caption",indicator:function(e){return s.classNames("p-galleria-indicator",{"p-highlight":e.isActive})},indicators:"p-galleria-indicators p-reset",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",item:"p-galleria-item",transition:"p-galleria"},styles:"\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n z-index: 1;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n",inlineStyles:{thumbnailItemsContainer:function(e){return{height:e.height}}}}});function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=g.memo(g.forwardRef((function(e,n){var t=e.ptm,i=e.cx,a=function(n,i){return t(n,D({hostName:e.hostName},i))},l=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},o=function(n){l(),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:0!==e.activeItemIndex?e.activeItemIndex-1:0}),n&&n.cancelable&&n.preventDefault()},p=function(n){l(),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:e.activeItemIndex+1}),n&&n.cancelable&&n.preventDefault()},d=function(n){l(),e.onActiveItemChange({index:n})},h=function(n){e.changeItemOnIndicatorHover&&(l(),e.onActiveItemChange({index:n}))},f=function(n,t){13===n.which&&(l(),e.onActiveItemChange({index:t}))};r.useMountEffect((function(){e.autoPlay&&e.startSlideShow()}));var v=function(n){var t="p-galleria-indicator-"+n,r=e.activeItemIndex===n,l=e.indicator&&e.indicator(n),o=s.mergeProps({className:i("indicator",{isActive:r}),key:t,tabIndex:0,onClick:function(){return d(n)},onMouseEnter:function(){return h(n)},onKeyDown:function(e){return f(e,n)},"data-p-highlight":r},a("indicator"));return l||(l=g.createElement("button",{type:"button",tabIndex:-1,className:"p-link"},g.createElement(c.Ripple,null))),g.createElement("li",o,l)},b=e.itemTemplate&&e.itemTemplate(e.value[e.activeItemIndex]),I=function(){if(e.showItemNavigators){var n=!e.circular&&0===e.activeItemIndex,t=s.mergeProps({className:i("previousItemIcon")},a("previousItemIcon")),r=s.IconUtils.getJSXIcon(e.itemPrevIcon||g.createElement(u.ChevronLeftIcon,t),D({},t),{props:e}),l=s.mergeProps({type:"button",className:i("previousItemButton",{isDisabled:n}),onClick:o,disabled:n,"data-p-disabled":n},a("previousItemButton"));return g.createElement("button",l,r,g.createElement(c.Ripple,null))}return null}(),y=function(){if(e.showItemNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1,t=s.mergeProps({className:i("nextItemIcon")},a("nextItemIcon")),r=s.IconUtils.getJSXIcon(e.itemNextIcon||g.createElement(m.ChevronRightIcon,t),D({},t),{props:e}),l=s.mergeProps({type:"button",className:i("nextItemButton",{isDisabled:n}),onClick:p,disabled:n,"data-p-disabled":n},a("nextItemButton"));return g.createElement("button",l,r,g.createElement(c.Ripple,null))}return null}(),x=function(){var n=s.mergeProps({className:i("caption")},a("caption"));if(e.caption){var t=e.caption(e.value[e.activeItemIndex]);return g.createElement("div",n,t)}return null}(),w=function(){if(e.showIndicators){for(var n=[],t=s.mergeProps({className:s.classNames(e.indicatorsContentClassName,i("indicators"))},a("indicators")),r=0;r<e.value.length;r++)n.push(v(r));return g.createElement("ul",t,n)}return null}(),P=s.mergeProps({ref:n,className:i("itemWrapper")},a("itemWrapper")),O=s.mergeProps({className:i("itemContainer")},a("itemContainer")),S=s.mergeProps({className:i("item")},a("item"));return g.createElement("div",P,g.createElement("div",O,I,g.createElement("div",S,b),y,x),w)})));function A(e){if(Array.isArray(e))return S(e)}function R(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}k.displayName="GalleriaItem";var B=g.memo((function(e){var n=e.ptm,t=e.cx,i=function(t,i){return n(t,U({hostName:e.hostName},i))},a=e.active?0:null,r=e.template&&e.template(e.item),l=s.mergeProps({className:s.classNames(e.className,t("thumbnailItem",{subProps:e})),"data-p-galleria-thumbnail-item-current":e.current,"data-p-galleria-thumbnail-item-active":e.active,"data-p-galleria-thumbnail-item-start":e.start,"data-p-galleria-thumbnail-item-end":e.end},i("thumbnailItem")),o=s.mergeProps({className:t("thumbnailItemContent"),tabIndex:a,onClick:function(n){e.onItemClick({originalEvent:n,index:e.index})},onKeyDown:function(n){13===n.which&&e.onItemClick({originalEvent:n,index:e.index})}},i("thumbnailItemContent"));return g.createElement("div",l,g.createElement("div",o,r))})),M=g.memo(g.forwardRef((function(e,n){var i=C(g.useState(e.numVisible),2),a=i[0],l=i[1],o=C(g.useState(0),2),h=o[0],f=o[1],b=g.useRef(null),I=g.useRef(null),y=g.useRef(""),x=g.useRef(null),w=g.useRef(null),P=r.usePrevious(a),O=r.usePrevious(e.activeItemIndex),S=g.useContext(t.PrimeReactContext),E=e.ptm,j=e.cx,T=e.sx,D=function(n,t){return E(n,U({hostName:e.hostName},t))},k=C(r.useResizeListener({listener:function(){F()},when:e.responsiveOptions}),1)[0],V=function(n){var t=h+n;n<0&&-1*t+a>e.value.length-1?t=a-e.value.length:n>0&&t>0&&(t=0),e.circular&&(n<0&&e.value.length-1===e.activeItemIndex?t=0:n>0&&0===e.activeItemIndex&&(t=a-e.value.length)),b.current&&(s.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(t*(100/a),"%, 0)"):"translate3d(".concat(t*(100/a),"%, 0, 0)"),b.current.style.transition="transform 500ms ease 0s"),f(t)},M=function(){e.slideShowActive&&e.stopSlideShow&&e.stopSlideShow()},G=function(){var e=Math.floor(a/2);return a%2?e:e-1},z=function(n){M();var t=0!==e.activeItemIndex?e.activeItemIndex-1:0;a-(t+h)-1>G()&&(-1*h!=0||e.circular)&&V(1),e.onActiveItemChange({index:e.circular&&0===e.activeItemIndex?e.value.length-1:t}),n.cancelable&&n.preventDefault()},W=function(n){M();var t=e.activeItemIndex+1;t+h>G()&&(-1*h<Y()-1||e.circular)&&V(-1),e.onActiveItemChange({index:e.circular&&e.value.length-1===e.activeItemIndex?0:t}),n.cancelable&&n.preventDefault()},X=function(n){M();var t=n.index;if(t!==e.activeItemIndex){var i=t+h,r=0;t<e.activeItemIndex?(r=a-i-1-G())>0&&-1*h!=0&&V(r):(r=G()-i)<0&&-1*h<Y()-1&&V(r),e.onActiveItemChange({index:t})}},Z=function(n){b.current&&"transform"===n.propertyName&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&s.DomHandler.addClass(b.current,"p-items-hidden"),b.current.style.transition="")},_=function(e){var n=e.changedTouches[0];I.current={x:n.pageX,y:n.pageY}},J=function(e){e.cancelable&&e.preventDefault()},L=function(n){var t=n.changedTouches[0];K(n,e.isVertical?t.pageY-I.current.y:t.pageX-I.current.x)},K=function(e,n){n<0?W(e):z(e)},Y=function(){return e.value.length>a?e.value.length-a+1:0},q=function(){x.current||(x.current=s.DomHandler.createInlineStyle(S&&S.nonce||v.default.nonce));var n,t='\n [data-pc-section="thumbnailitems"]['.concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/a,"%\n }\n } \n ");if(e.responsiveOptions){var i=s.ObjectUtils.localeComparator(S&&S.locale||v.default.locale);w.current=A(n=e.responsiveOptions)||R(n)||N(n)||H(),w.current.sort((function(e,n){return s.ObjectUtils.sort(e.breakpoint,n.breakpoint,-1,i,S&&S.nullSortOrder||v.default.nullSortOrder)}));for(var r=0;r<w.current.length;r++){var l=w.current[r];t+="\n @media screen and (max-width: ".concat(l.breakpoint,') {\n [data-pc-section="thumbnailitems"][').concat(y.current,'] {\n [data-pc-section="thumbnailitem"] {\n flex: 1 0 ').concat(100/l.numVisible,"%\n }\n } \n }\n ")}}x.current.innerHTML=t},F=function(){if(b.current&&w.current){for(var n=window.innerWidth,t={numVisible:e.numVisible},i=0;i<w.current.length;i++){var r=w.current[i];parseInt(r.breakpoint,10)>=n&&(t=r)}a!==t.numVisible&&l(t.numVisible)}};r.useMountEffect((function(){b.current&&(y.current=s.UniqueComponentId(),b.current.setAttribute(y.current,"")),q(),F(),k()})),r.useUpdateEffect((function(){var n=h;P===a&&O===e.activeItemIndex||((n=e.activeItemIndex<=G()?0:e.value.length-a+G()<e.activeItemIndex?a-e.value.length:e.value.length-a<e.activeItemIndex&&a%2==0?-1*e.activeItemIndex+G()+1:-1*e.activeItemIndex+G())!==h&&f(n),b.current.style.transform=e.isVertical?"translate3d(0, ".concat(n*(100/a),"%, 0)"):"translate3d(".concat(n*(100/a),"%, 0, 0)"),O!==e.activeItemIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!e.isUnstyled()&&s.DomHandler.removeClass(b.current,"p-items-hidden"),b.current.style.transition="transform 500ms ease 0s"))}));var $,Q,ee,ne,te,ie,ae,re=function(){if(e.showThumbnailNavigators){var n=!e.circular&&0===e.activeItemIndex||e.value.length<=a,t=s.mergeProps({className:j("previousThumbnailIcon")},D("previousThumbnailIcon")),i=s.IconUtils.getJSXIcon(e.isVertical?e.prevThumbnailIcon||g.createElement(d.ChevronUpIcon,t):e.prevThumbnailIcon||g.createElement(u.ChevronLeftIcon,t),U({},t),{props:e}),r=s.mergeProps({className:j("previousThumbnailButton",{isDisabled:n}),onClick:z,disabled:n,"data-p-disabled":n},D("previousThumbnailButton"));return g.createElement("button",r,i,g.createElement(c.Ripple,null))}return null},le=function(){if(e.showThumbnailNavigators){var n=!e.circular&&e.activeItemIndex===e.value.length-1||e.value.length<=a,t=s.mergeProps({className:j("nextThumbnailIcon")},D("nextThumbnailIcon")),i=s.IconUtils.getJSXIcon(e.isVertical?e.nextThumbnailIcon||g.createElement(p.ChevronDownIcon,t):e.nextThumbnailIcon||g.createElement(m.ChevronRightIcon,t),U({},t),{props:e}),r=s.mergeProps({className:j("nextThumbnailButton",{isDisabled:n}),onClick:W,disabled:n,"data-p-disabled":n},D("nextThumbnailButton"));return g.createElement("button",r,i,g.createElement(c.Ripple,null))}return null},oe=($=e.value.map((function(n,t){var i=-1*h,r=i+a-1;return g.createElement(B,{key:t,index:t,template:e.itemTemplate,item:n,active:i<=t&&r>=t,start:i===t,end:r===t,onItemClick:X,current:e.activeItemIndex===t,ptm:E,cx:j,sx:T})})),Q=e.isVertical?e.contentHeight:"",ee=re(),ne=le(),te=s.mergeProps({className:j("thumbnailContainer")},D("thumbnailContainer")),ie=s.mergeProps({className:j("thumbnailItemsContainer"),style:T("thumbnailItemsContainer",{height:Q})},D("thumbnailItemsContainer")),ae=s.mergeProps({ref:b,className:j("thumbnailItems"),onTransitionEnd:Z,onTouchStart:_,onTouchMove:J,onTouchEnd:L},D("thumbnailItems")),g.createElement("div",te,ee,g.createElement("div",ie,g.createElement("div",ae,$)),ne)),ce=s.mergeProps({className:j("thumbnailWrapper")},D("thumbnailWrapper"));return g.createElement("div",ce,oe)})));function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}B.displayName="GalleriaThumbnailItem",M.displayName="GalleriaThumbnails";var W=g.memo(g.forwardRef((function(e,n){var u=g.useContext(t.PrimeReactContext),m=j.getProps(e,u),p=C(g.useState(!1),2),d=p[0],h=p[1],f=C(g.useState(m.numVisible),2),I=f[0],y=f[1],x=C(g.useState(!1),2),w=x[0],P=x[1],O=C(g.useState(m.activeIndex),2),S=O[0],N=O[1],E=g.useRef(null),T=g.useRef(null),D=g.useRef(null),A=m.onItemChange?m.activeIndex:S,R="left"===m.thumbnailsPosition||"right"===m.thumbnailsPosition,H=j.setMetaData({props:m,state:{visible:d,numVisible:I,slideShowActive:w,activeIndex:S}}),V=H.ptm,U=H.cx,B=H.sx,G=H.isUnstyled;i.useHandleStyle(j.css.styles,G,{name:"galleria"}),r.useInterval((function(){W({index:m.circular&&m.value.length-1===A?0:A+1})}),m.transitionInterval,w);var W=function(e){e.index>=m.value.length?$():m.onItemChange?m.onItemChange(e):N(e.index)},X=function(){h(!0)},Z=function(){h(!1)},_=function(){s.DomHandler.blockBodyScroll()},J=function(){s.ZIndexUtils.set("modal",D.current,u&&u.autoZIndex||v.default.autoZIndex,m.baseZIndex||u&&u.zIndex.modal||v.default.zIndex.modal),!G()&&s.DomHandler.addMultipleClasses(D.current,"p-component-overlay p-component-overlay-enter")},L=function(){m.onShow&&m.onShow()},K=function(){s.DomHandler.unblockBodyScroll(),!G()&&s.DomHandler.addClass(D.current,"p-component-overlay-leave")},Y=function(){s.ZIndexUtils.clear(D.current),m.onHide&&m.onHide()},q=function(){return w},F=function(){P(!0)},$=function(){P(!1)},Q=function(e,n){var t=["top","left","bottom","right"].find((function(e){return e===n}));return t?"".concat(e,"-").concat(t):""};g.useEffect((function(){m.value&&m.value.length<I&&y(m.value.length)}),[m.value,I]),g.useEffect((function(){y(m.numVisible)}),[m.numVisible]),r.useUnmountEffect((function(){w&&$(),s.ZIndexUtils.clear(D.current)})),g.useImperativeHandle(n,(function(){return{props:m,show:X,hide:Z,isAutoPlayActive:q,startSlideShow:F,stopSlideShow:$,getElement:function(){return E.current},getPreviewContent:function(){return T.current}}}));return s.ObjectUtils.isNotEmpty(m.value)&&function(){var e,n,i,r,p,h,f,v,y,x,P,O,S=(i=m.showThumbnails&&Q("p-galleria-thumbnails",m.thumbnailsPosition),r=m.showIndicators&&Q("p-galleria-indicators",m.indicatorsPosition),p=s.mergeProps({className:U("closeIcon"),"aria-hidden":!0},V("closeIcon")),h=s.IconUtils.getJSXIcon(m.closeIcon||g.createElement(l.TimesIcon,p),z({},p),{props:m}),f=s.mergeProps({type:"button",className:U("closeButton"),"aria-label":t.localeOption("close"),onClick:Z},V("closeButton")),v=m.fullScreen&&g.createElement("button",f,h,g.createElement(c.Ripple,null)),e=s.mergeProps({className:U("header")},V("header")),y=m.header?g.createElement("div",e,m.header):null,n=s.mergeProps({className:U("footer")},V("footer")),x=m.footer?g.createElement("div",n,m.footer):null,P=s.mergeProps({ref:E,id:m.id,className:s.classNames(m.className,U("root",{context:u,thumbnailsPosClassName:i,indicatorPosClassName:r})),style:m.style},j.getOtherProps(m),V("root")),O=s.mergeProps({className:U("content")},V("content")),g.createElement("div",P,v,y,g.createElement("div",O,g.createElement(k,{hostName:"Galleria",ref:T,value:m.value,activeItemIndex:A,onActiveItemChange:W,itemTemplate:m.item,circular:m.circular,caption:m.caption,showIndicators:m.showIndicators,itemPrevIcon:m.itemPrevIcon,itemNextIcon:m.itemNextIcon,changeItemOnIndicatorHover:m.changeItemOnIndicatorHover,indicator:m.indicator,showItemNavigators:m.showItemNavigators,autoPlay:m.autoPlay,slideShowActive:w,startSlideShow:F,stopSlideShow:$,ptm:V,cx:U}),m.showThumbnails&&g.createElement(M,{hostName:"Galleria",value:m.value,activeItemIndex:A,onActiveItemChange:W,itemTemplate:m.thumbnail,numVisible:I,nextThumbnailIcon:m.nextThumbnailIcon,prevThumbnailIcon:m.prevThumbnailIcon,responsiveOptions:m.responsiveOptions,circular:m.circular,isVertical:R,contentHeight:m.verticalThumbnailViewPortHeight,showThumbnailNavigators:m.showThumbnailNavigators,autoPlay:m.autoPlay,slideShowActive:w,stopSlideShow:$,isUnstyled:G,ptm:V,cx:U,sx:B})),x));if(m.fullScreen){var N=s.mergeProps({className:U("mask",{visibleState:d})},V("mask")),C=s.mergeProps({classNames:U("transition"),in:d,timeout:{enter:150,exit:150},options:m.transitionOptions,unmountOnExit:!0,onEnter:_,onEntering:J,onEntered:L,onExit:K,onExited:Y},V("transition")),H=g.createElement("div",b({ref:D},N),g.createElement(a.CSSTransition,b({nodeRef:E},C),S));return g.createElement(o.Portal,{element:H})}return S}()})));return W.displayName="Galleria",e.Galleria=W,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.icons.times,primereact.portal,primereact.ripple,primereact.utils,primereact.icons.chevronleft,primereact.icons.chevronright,primereact.icons.chevrondown,primereact.icons.chevronup);