@orangesk/orange-design-system 2.0.0-alpha.1 → 2.0.0-alpha.2

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 (1122) hide show
  1. package/build/404.html +1 -1
  2. package/build/_next/static/BGy4QLZfZPwswIZT7YGE2/_buildManifest.js +1 -0
  3. package/build/_next/static/chunks/1206-59e86c9be0c6edc8.js +1 -0
  4. package/build/_next/static/chunks/1684-f3cca2440b2d04c9.js +1 -0
  5. package/build/_next/static/chunks/1790-42537fde486481dc.js +1 -0
  6. package/build/_next/static/chunks/1856-87fba6dedcfa51f4.js +1 -0
  7. package/build/_next/static/chunks/2355.4c3c65d46ce6edf1.js +1 -0
  8. package/build/_next/static/chunks/2366-ccdf9c167d62c230.js +1 -0
  9. package/build/_next/static/chunks/2511.d334cb67ac6af21d.js +1 -0
  10. package/build/_next/static/chunks/2735.7a75728bb235d0d4.js +1 -0
  11. package/build/_next/static/chunks/3557.53c406667aa62240.js +1 -0
  12. package/build/_next/static/chunks/4bd1b696-63246a30a5dafad8.js +1 -0
  13. package/build/_next/static/chunks/5426-60b8df37a33e8cf3.js +1 -0
  14. package/build/_next/static/chunks/579-22f1eb9ccb4fc983.js +1 -0
  15. package/build/_next/static/chunks/6729-c9c23d280815e7ae.js +1 -0
  16. package/build/_next/static/chunks/7916.f1f5aa6f1d094885.js +1 -0
  17. package/build/_next/static/chunks/7998-4f9ee8dd2d772e13.js +1 -0
  18. package/build/_next/static/chunks/9186-7ca86a881bc0fae7.js +4 -0
  19. package/build/_next/static/chunks/app/_not-found/page-a9506bc9a3364319.js +1 -0
  20. package/build/_next/static/chunks/app/components/accordion/page-aa200fabd855563b.js +1 -0
  21. package/build/_next/static/chunks/app/components/alert/page-7c67ea9c86227082.js +1 -0
  22. package/build/_next/static/chunks/app/components/bar/page-c30f8fd11c4651d6.js +1 -0
  23. package/build/_next/static/chunks/app/components/block-action/page-7274174a43629f9f.js +1 -0
  24. package/build/_next/static/chunks/app/components/body-banner/page-15ff1f59b2aa843d.js +1 -0
  25. package/build/_next/static/chunks/app/components/button/page-0e30b9dfcecf1399.js +1 -0
  26. package/build/_next/static/chunks/app/components/buttons/page-fffd250aa886c49b.js +1 -0
  27. package/build/_next/static/chunks/app/components/card/page-cd4cf793507e5671.js +1 -0
  28. package/build/_next/static/chunks/app/components/carousel/page-b365266404937787.js +1 -0
  29. package/build/_next/static/chunks/app/components/carousel-promotions/page-a44240a70a405853.js +1 -0
  30. package/build/_next/static/chunks/app/components/cart-table/page-c33464d94e85aacb.js +1 -0
  31. package/build/_next/static/chunks/app/components/controls/page-ab8a0113b4b2e54b.js +1 -0
  32. package/build/_next/static/chunks/app/components/cover/page-c5a39a466cf72302.js +1 -0
  33. package/build/_next/static/chunks/app/components/divider/page-048e0ea7f0f61c9f.js +1 -0
  34. package/build/_next/static/chunks/app/components/dropdown/page-86dc20ead95d1104.js +1 -0
  35. package/build/_next/static/chunks/app/components/expander/page-37e9fdf98c038541.js +1 -0
  36. package/build/_next/static/chunks/app/components/feature-accordion/page-994e106b83948b2a.js +1 -0
  37. package/build/_next/static/chunks/app/components/footer/page-39f76624a4c5435a.js +1 -0
  38. package/build/_next/static/chunks/app/components/forms/addons/page-b819ad9999952653.js +1 -0
  39. package/build/_next/static/chunks/app/components/forms/autocomplete/page-0cfae5a356eefe59.js +1 -0
  40. package/build/_next/static/chunks/app/components/forms/captions/hint/page-36a64250bd583aca.js +1 -0
  41. package/build/_next/static/chunks/app/components/forms/captions/label/page-84cb1a7b98fb64c8.js +1 -0
  42. package/build/_next/static/chunks/app/components/forms/captions/message/page-c22889abedb1d070.js +1 -0
  43. package/build/_next/static/chunks/app/components/forms/checkbox/page-8428d9a5becd0678.js +1 -0
  44. package/build/_next/static/chunks/app/components/forms/field/page-3c75a0c1a8f4867a.js +1 -0
  45. package/build/_next/static/chunks/app/components/forms/fieldset/page-5e7316fdf0310e1e.js +1 -0
  46. package/build/_next/static/chunks/app/components/forms/file/page-a83e9d5be583038b.js +1 -0
  47. package/build/_next/static/chunks/app/components/forms/inputstepper/page-2a61408ee3dd66a3.js +1 -0
  48. package/build/_next/static/chunks/app/components/forms/radio/page-d25e81a49e31fd5f.js +1 -0
  49. package/build/_next/static/chunks/app/components/forms/rangeslider/page-2b516b597dabcdde.js +1 -0
  50. package/build/_next/static/chunks/app/components/forms/select/page-28d631ad9ea28a9c.js +1 -0
  51. package/build/_next/static/chunks/app/components/forms/text-area/page-167de9c3a457c62a.js +1 -0
  52. package/build/_next/static/chunks/app/components/forms/text-input/page-5798b254c725bec1.js +1 -0
  53. package/build/_next/static/chunks/app/components/gauge/page-8299bca301ad707b.js +1 -0
  54. package/build/_next/static/chunks/app/components/icon/page-3d2696eb1415bbb8.js +1 -0
  55. package/build/_next/static/chunks/app/components/link/page-5691bc96657b379e.js +1 -0
  56. package/build/_next/static/chunks/app/components/list/page-93428135db5e0f50.js +1 -0
  57. package/build/_next/static/chunks/app/components/loader/page-60a3331abd258bde.js +1 -0
  58. package/build/_next/static/chunks/app/components/modal/page-193e4d93ab10dc9a.js +1 -0
  59. package/build/_next/static/chunks/app/components/pagination/page-dd52f805ef5196de.js +1 -0
  60. package/build/_next/static/chunks/app/components/progress/page-4ac45801c7ec5663.js +1 -0
  61. package/build/_next/static/chunks/app/components/skeleton/page-71307720865ef677.js +1 -0
  62. package/build/_next/static/chunks/app/components/sticker/page-c79c492044c10f40.js +1 -0
  63. package/build/_next/static/chunks/app/components/table/page-9dc77bc63b3b5895.js +1 -0
  64. package/build/_next/static/chunks/app/components/tabs/page-dcc36f18992b00f9.js +1 -0
  65. package/build/_next/static/chunks/app/components/tag/page-ba00a3d16f7f6d11.js +1 -0
  66. package/build/_next/static/chunks/app/components/testimonial/page-a3615b0a32c32fe1.js +1 -0
  67. package/build/_next/static/chunks/app/components/tile/page-b354dd7941df8670.js +1 -0
  68. package/build/_next/static/chunks/app/components/tooltip/page-9861cd4f82830d82.js +1 -0
  69. package/build/_next/static/chunks/app/javascript/toggle/page-8b83ddce80f9d755.js +1 -0
  70. package/build/_next/static/chunks/app/layout-41aa6f28da614a69.js +1 -0
  71. package/build/_next/static/chunks/app/page-e1799527aabeb98a.js +1 -0
  72. package/build/_next/static/chunks/app/utilities/horizontal-scroll/page-c6ee529373c337f9.js +1 -0
  73. package/build/_next/static/chunks/framework-fda66049c8bbcca5.js +1 -0
  74. package/build/_next/static/chunks/main-3e6405259d828a22.js +1 -0
  75. package/build/_next/static/chunks/main-app-a265e200b32683f1.js +1 -0
  76. package/build/_next/static/chunks/pages/{_app-da15c11dea942c36.js → _app-eb694f3fd49020c8.js} +1 -1
  77. package/build/_next/static/chunks/pages/_error-2b3482c094a540b4.js +1 -0
  78. package/build/_next/static/chunks/webpack-1a128887cf981885.js +1 -0
  79. package/build/_next/static/css/05453e813192b05b.css +1 -0
  80. package/build/_next/static/css/05c85c9ea7e2ea58.css +1 -0
  81. package/build/_next/static/css/0e5de495ff48931f.css +1 -0
  82. package/build/_next/static/css/1139a47c85362386.css +1 -0
  83. package/build/_next/static/css/1b3f28cfd13039ad.css +1 -0
  84. package/build/_next/static/css/1fdf8ee56483471a.css +1 -0
  85. package/build/_next/static/css/286405eb07784ddd.css +1 -0
  86. package/build/_next/static/css/2cb6b1436172662a.css +1 -0
  87. package/build/_next/static/css/33a9af3bd42f0314.css +1 -0
  88. package/build/_next/static/css/3632d2fdde580dcb.css +1 -0
  89. package/build/_next/static/css/37365c3a0857a3c5.css +1 -0
  90. package/build/_next/static/css/412dd278760dc9fc.css +1 -0
  91. package/build/_next/static/css/417edeeaaadbac4d.css +1 -0
  92. package/build/_next/static/css/43c66157c59241c2.css +1 -0
  93. package/build/_next/static/css/57b0c84bbf7d7098.css +1 -0
  94. package/build/_next/static/css/5b55b50737ef7662.css +1 -0
  95. package/build/_next/static/css/5ec7df8d7719c810.css +1 -0
  96. package/build/_next/static/css/62680b6eacd53665.css +1 -0
  97. package/build/_next/static/css/645dada84db193d4.css +1 -0
  98. package/build/_next/static/css/7058542e728d5b05.css +1 -0
  99. package/build/_next/static/css/7108a96a607fe7c5.css +1 -0
  100. package/build/_next/static/css/7202aa220abab0eb.css +1 -0
  101. package/build/_next/static/css/75e15d3944ffd4f3.css +1 -0
  102. package/build/_next/static/css/77590e66868bf291.css +1 -0
  103. package/build/_next/static/css/7c62e057927bfe3a.css +1 -0
  104. package/build/_next/static/css/7d4c59347b15c45f.css +1 -0
  105. package/build/_next/static/css/7f570791ca140154.css +1 -0
  106. package/build/_next/static/css/8ed102a331809889.css +1 -0
  107. package/build/_next/static/css/a88042aa83a2c354.css +1 -0
  108. package/build/_next/static/css/a9a58f4c38bee2fd.css +1 -0
  109. package/build/_next/static/css/ac1d2e9b77b16926.css +1 -0
  110. package/build/_next/static/css/ae4b3848536f0c88.css +1 -0
  111. package/build/_next/static/css/b0ab7f81488aec78.css +1 -0
  112. package/build/_next/static/css/b853a4f8d045643a.css +1 -0
  113. package/build/_next/static/css/bcaa5e7fd24949ed.css +1 -0
  114. package/build/_next/static/css/d38343a4cf5388d8.css +1 -0
  115. package/build/_next/static/css/d829c1a3f2fcd594.css +1 -0
  116. package/build/_next/static/css/dbfffa33262d63c5.css +1 -0
  117. package/build/_next/static/css/dfae3c27eaeb27f7.css +1 -0
  118. package/build/_next/static/css/e0b468ba3d618325.css +1 -0
  119. package/build/_next/static/css/e5e018b7f5cf6e41.css +1 -0
  120. package/build/_next/static/css/e6a4dfa3d63d18c0.css +1 -0
  121. package/build/_next/static/css/ee49dfd49ae395ac.css +1 -0
  122. package/build/_next/static/css/ef46db3751d8e999.css +0 -0
  123. package/build/_next/static/css/f2867b2bd265a443.css +1 -0
  124. package/build/_next/static/media/phones.a832cbb3.png +0 -0
  125. package/build/components/Accordion/index.js +3 -1157
  126. package/build/components/Accordion/index.js.map +1 -1
  127. package/build/components/Accordion/style.css +1 -1
  128. package/build/components/Accordion/style.css.map +1 -1
  129. package/build/components/Alert/index.js +3 -1907
  130. package/build/components/Alert/index.js.map +1 -1
  131. package/build/components/Alert/style.css +1 -1
  132. package/build/components/Alert/style.css.map +1 -1
  133. package/build/components/Bar/index.js +16 -0
  134. package/build/components/Bar/index.js.map +1 -0
  135. package/build/components/Bar/style.css +2 -0
  136. package/build/components/Bar/style.css.map +1 -0
  137. package/build/components/BlockAction/index.js +16 -0
  138. package/build/components/BlockAction/index.js.map +1 -0
  139. package/build/components/BlockAction/style.css +2 -0
  140. package/build/components/BlockAction/style.css.map +1 -0
  141. package/build/components/BodyBanner/index.js +16 -0
  142. package/build/components/BodyBanner/index.js.map +1 -0
  143. package/build/components/BodyBanner/style.css +2 -0
  144. package/build/components/BodyBanner/style.css.map +1 -0
  145. package/build/components/Breadcrumbs/index.js +3 -674
  146. package/build/components/Breadcrumbs/index.js.map +1 -1
  147. package/build/components/Breadcrumbs/style.css +1 -1
  148. package/build/components/Breadcrumbs/style.css.map +1 -1
  149. package/build/components/Button/index.js +3 -721
  150. package/build/components/Button/index.js.map +1 -1
  151. package/build/components/Button/style.css +1 -1
  152. package/build/components/Button/style.css.map +1 -1
  153. package/build/components/Buttons/index.js +3 -601
  154. package/build/components/Buttons/index.js.map +1 -1
  155. package/build/components/Buttons/style.css +1 -1
  156. package/build/components/Buttons/style.css.map +1 -1
  157. package/build/components/Card/index.js +16 -0
  158. package/build/components/Card/index.js.map +1 -0
  159. package/build/components/Card/style.css +2 -0
  160. package/build/components/Card/style.css.map +1 -0
  161. package/build/components/Carousel/index.js +31 -0
  162. package/build/components/Carousel/index.js.map +1 -0
  163. package/build/components/Carousel/style.css +2 -0
  164. package/build/components/Carousel/style.css.map +1 -0
  165. package/build/components/CarouselPromotions/index.js +16 -0
  166. package/build/components/CarouselPromotions/index.js.map +1 -0
  167. package/build/components/CarouselPromotions/style.css +2 -0
  168. package/build/components/CarouselPromotions/style.css.map +1 -0
  169. package/build/components/CartTable/index.js +16 -0
  170. package/build/components/CartTable/index.js.map +1 -0
  171. package/build/components/CartTable/style.css +2 -0
  172. package/build/components/CartTable/style.css.map +1 -0
  173. package/build/components/Container/index.js +3 -598
  174. package/build/components/Container/index.js.map +1 -1
  175. package/build/components/Container/style.css +1 -1
  176. package/build/components/Container/style.css.map +1 -1
  177. package/build/components/Controls/index.js +16 -0
  178. package/build/components/Controls/index.js.map +1 -0
  179. package/build/components/Controls/style.css +2 -0
  180. package/build/components/Controls/style.css.map +1 -0
  181. package/build/components/Cover/index.js +16 -0
  182. package/build/components/Cover/index.js.map +1 -0
  183. package/build/components/Cover/style.css +2 -0
  184. package/build/components/Cover/style.css.map +1 -0
  185. package/build/components/Divider/index.js +16 -0
  186. package/build/components/Divider/index.js.map +1 -0
  187. package/build/components/Divider/style.css +2 -0
  188. package/build/components/Divider/style.css.map +1 -0
  189. package/build/components/Dropdown/index.js +16 -0
  190. package/build/components/Dropdown/index.js.map +1 -0
  191. package/build/components/Dropdown/style.css +2 -0
  192. package/build/components/Dropdown/style.css.map +1 -0
  193. package/build/components/Expander/index.js +16 -0
  194. package/build/components/Expander/index.js.map +1 -0
  195. package/build/components/Expander/style.css +2 -0
  196. package/build/components/Expander/style.css.map +1 -0
  197. package/build/components/FeatureAccordion/index.js +16 -0
  198. package/build/components/FeatureAccordion/index.js.map +1 -0
  199. package/build/components/FeatureAccordion/style.css +2 -0
  200. package/build/components/FeatureAccordion/style.css.map +1 -0
  201. package/build/components/Footer/index.js +16 -0
  202. package/build/components/Footer/index.js.map +1 -0
  203. package/build/components/Footer/style.css +2 -0
  204. package/build/components/Footer/style.css.map +1 -0
  205. package/build/components/Forms/index.js +18 -0
  206. package/build/components/Forms/index.js.map +1 -0
  207. package/build/components/Forms/style.css +2 -0
  208. package/build/components/Forms/style.css.map +1 -0
  209. package/build/components/Gauge/index.js +16 -0
  210. package/build/components/Gauge/index.js.map +1 -0
  211. package/build/components/Gauge/style.css +2 -0
  212. package/build/components/Gauge/style.css.map +1 -0
  213. package/build/components/Grid/index.js +3 -1069
  214. package/build/components/Grid/index.js.map +1 -1
  215. package/build/components/Grid/style.css +1 -1
  216. package/build/components/Grid/style.css.map +1 -1
  217. package/build/components/Icon/index.js +2 -619
  218. package/build/components/Icon/index.js.map +1 -1
  219. package/build/components/Icon/style.css +1 -1
  220. package/build/components/Icon/style.css.map +1 -1
  221. package/build/components/Image/index.js +3 -646
  222. package/build/components/Image/index.js.map +1 -1
  223. package/build/components/Image/style.css +1 -1
  224. package/build/components/Image/style.css.map +1 -1
  225. package/build/components/Link/index.js +2 -168
  226. package/build/components/Link/index.js.map +1 -1
  227. package/build/components/Link/style.css +1 -1
  228. package/build/components/Link/style.css.map +1 -1
  229. package/build/components/List/index.js +16 -0
  230. package/build/components/List/index.js.map +1 -0
  231. package/build/components/List/style.css +2 -0
  232. package/build/components/List/style.css.map +1 -0
  233. package/build/components/Loader/index.js +16 -0
  234. package/build/components/Loader/index.js.map +1 -0
  235. package/build/components/Loader/style.css +2 -0
  236. package/build/components/Loader/style.css.map +1 -0
  237. package/build/components/Modal/index.js +4 -3154
  238. package/build/components/Modal/index.js.map +1 -1
  239. package/build/components/Modal/style.css +1 -1
  240. package/build/components/Modal/style.css.map +1 -1
  241. package/build/components/Pagination/index.js +16 -0
  242. package/build/components/Pagination/index.js.map +1 -0
  243. package/build/components/Pagination/style.css +2 -0
  244. package/build/components/Pagination/style.css.map +1 -0
  245. package/build/components/Progress/index.js +16 -0
  246. package/build/components/Progress/index.js.map +1 -0
  247. package/build/components/Progress/style.css +2 -0
  248. package/build/components/Progress/style.css.map +1 -0
  249. package/build/components/Section/index.js +3 -619
  250. package/build/components/Section/index.js.map +1 -1
  251. package/build/components/Section/style.css +1 -1
  252. package/build/components/Section/style.css.map +1 -1
  253. package/build/components/Skeleton/index.js +16 -0
  254. package/build/components/Skeleton/index.js.map +1 -0
  255. package/build/components/Skeleton/style.css +2 -0
  256. package/build/components/Skeleton/style.css.map +1 -0
  257. package/build/components/Sticker/index.js +16 -0
  258. package/build/components/Sticker/index.js.map +1 -0
  259. package/build/components/Sticker/style.css +2 -0
  260. package/build/components/Sticker/style.css.map +1 -0
  261. package/build/components/Table/index.js +16 -0
  262. package/build/components/Table/index.js.map +1 -0
  263. package/build/components/Table/style.css +2 -0
  264. package/build/components/Table/style.css.map +1 -0
  265. package/build/components/Tabs/index.js +3 -1043
  266. package/build/components/Tabs/index.js.map +1 -1
  267. package/build/components/Tabs/style.css +1 -1
  268. package/build/components/Tabs/style.css.map +1 -1
  269. package/build/components/Tag/index.js +16 -0
  270. package/build/components/Tag/index.js.map +1 -0
  271. package/build/components/Tag/style.css +2 -0
  272. package/build/components/Tag/style.css.map +1 -0
  273. package/build/components/Testimonial/index.js +16 -0
  274. package/build/components/Testimonial/index.js.map +1 -0
  275. package/build/components/Testimonial/style.css +2 -0
  276. package/build/components/Testimonial/style.css.map +1 -0
  277. package/build/components/Tile/index.js +16 -0
  278. package/build/components/Tile/index.js.map +1 -0
  279. package/build/components/Tile/style.css +2 -0
  280. package/build/components/Tile/style.css.map +1 -0
  281. package/build/components/Tooltip/index.js +16 -0
  282. package/build/components/Tooltip/index.js.map +1 -0
  283. package/build/components/Tooltip/style.css +2 -0
  284. package/build/components/Tooltip/style.css.map +1 -0
  285. package/build/components/accordion.html +18 -0
  286. package/build/components/accordion.txt +28 -0
  287. package/build/components/alert.html +4 -2
  288. package/build/components/alert.txt +13 -11
  289. package/build/components/bar.html +10 -0
  290. package/build/components/bar.txt +27 -0
  291. package/build/components/block-action.html +4 -0
  292. package/build/components/block-action.txt +26 -0
  293. package/build/components/body-banner.html +1 -0
  294. package/build/components/body-banner.txt +28 -0
  295. package/build/components/button.html +2 -2
  296. package/build/components/button.txt +10 -8
  297. package/build/components/buttons.html +1 -1
  298. package/build/components/buttons.txt +10 -8
  299. package/build/components/card.html +20 -0
  300. package/build/components/card.txt +35 -0
  301. package/build/components/carousel-promotions.html +20 -0
  302. package/build/components/carousel-promotions.txt +31 -0
  303. package/build/components/carousel.html +5 -0
  304. package/build/components/carousel.txt +32 -0
  305. package/build/components/cart-table.html +39 -0
  306. package/build/components/cart-table.txt +35 -0
  307. package/build/components/controls.html +2 -0
  308. package/build/components/controls.txt +29 -0
  309. package/build/components/cover.html +1 -0
  310. package/build/components/cover.txt +26 -0
  311. package/build/components/divider.html +6 -0
  312. package/build/components/divider.txt +29 -0
  313. package/build/components/dropdown.html +18 -0
  314. package/build/components/dropdown.txt +36 -0
  315. package/build/components/expander.html +1 -0
  316. package/build/components/expander.txt +27 -0
  317. package/build/components/feature-accordion.html +1 -0
  318. package/build/components/feature-accordion.txt +31 -0
  319. package/build/components/footer.html +2 -0
  320. package/build/components/footer.txt +31 -0
  321. package/build/components/forms/addons.html +2 -0
  322. package/build/components/forms/addons.txt +26 -0
  323. package/build/components/forms/autocomplete.html +2 -0
  324. package/build/components/forms/autocomplete.txt +27 -0
  325. package/build/components/forms/captions/hint.html +4 -0
  326. package/build/components/forms/captions/hint.txt +26 -0
  327. package/build/components/forms/captions/label.html +4 -0
  328. package/build/components/forms/captions/label.txt +24 -0
  329. package/build/components/forms/captions/message.html +1 -0
  330. package/build/components/forms/captions/message.txt +24 -0
  331. package/build/components/forms/checkbox.html +2 -0
  332. package/build/components/forms/checkbox.txt +27 -0
  333. package/build/components/forms/field.html +3 -0
  334. package/build/components/forms/field.txt +24 -0
  335. package/build/components/forms/fieldset.html +2 -0
  336. package/build/components/forms/fieldset.txt +26 -0
  337. package/build/components/forms/file.html +1 -0
  338. package/build/components/forms/file.txt +24 -0
  339. package/build/components/forms/inputstepper.html +2 -0
  340. package/build/components/forms/inputstepper.txt +26 -0
  341. package/build/components/forms/radio.html +1 -0
  342. package/build/components/forms/radio.txt +37 -0
  343. package/build/components/forms/rangeslider.html +2 -0
  344. package/build/components/forms/rangeslider.txt +26 -0
  345. package/build/components/forms/select.html +1 -0
  346. package/build/components/forms/select.txt +24 -0
  347. package/build/components/forms/text-area.html +1 -0
  348. package/build/components/forms/text-area.txt +24 -0
  349. package/build/components/forms/text-input.html +1 -0
  350. package/build/components/forms/text-input.txt +24 -0
  351. package/build/components/gauge.html +15 -0
  352. package/build/components/gauge.txt +28 -0
  353. package/build/components/icon.html +1 -1
  354. package/build/components/icon.txt +5 -4
  355. package/build/components/index.css +2 -1
  356. package/build/components/index.css.map +1 -1
  357. package/build/components/index.js +19 -3660
  358. package/build/components/index.js.map +1 -1
  359. package/build/components/link.html +6 -0
  360. package/build/components/link.txt +29 -0
  361. package/build/components/list.html +1 -0
  362. package/build/components/list.txt +30 -0
  363. package/build/components/loader.html +18 -0
  364. package/build/components/loader.txt +32 -0
  365. package/build/components/modal.html +2 -1
  366. package/build/components/modal.txt +26 -22
  367. package/build/components/pagination.html +1 -0
  368. package/build/components/pagination.txt +27 -0
  369. package/build/components/progress.html +1 -0
  370. package/build/components/progress.txt +33 -0
  371. package/build/components/skeleton.html +13 -0
  372. package/build/components/skeleton.txt +30 -0
  373. package/build/components/static.css +2 -0
  374. package/build/components/static.css.map +1 -0
  375. package/build/components/static.js +4 -2440
  376. package/build/components/static.js.map +1 -1
  377. package/build/components/sticker.html +1 -0
  378. package/build/components/sticker.txt +27 -0
  379. package/build/components/table.html +2 -0
  380. package/build/components/table.txt +30 -0
  381. package/build/components/tabs.html +2 -1
  382. package/build/components/tabs.txt +10 -8
  383. package/build/components/tag.html +7 -0
  384. package/build/components/tag.txt +30 -0
  385. package/build/components/testimonial.html +1 -0
  386. package/build/components/testimonial.txt +28 -0
  387. package/build/components/tile.html +19 -0
  388. package/build/components/tile.txt +37 -0
  389. package/build/components/tooltip.html +4 -0
  390. package/build/components/tooltip.txt +26 -0
  391. package/build/components/types/components/Accordion/Accordion.d.ts +17 -0
  392. package/build/components/types/components/Accordion/Accordion.static.d.ts +17 -0
  393. package/build/components/types/components/Accordion/AccordionHeader.d.ts +15 -0
  394. package/build/components/types/components/Accordion/AccordionItem.d.ts +19 -0
  395. package/build/components/types/components/Accordion/HeadingContext.d.ts +2 -0
  396. package/build/components/types/components/Accordion/index.d.ts +3 -0
  397. package/build/components/types/components/Alert/Alert.d.ts +2 -2
  398. package/build/components/types/components/Bar/Bar.d.ts +22 -0
  399. package/build/components/types/components/Bar/BarBreak.d.ts +12 -0
  400. package/build/components/types/components/Bar/BarItem.d.ts +16 -0
  401. package/build/components/types/components/Bar/index.d.ts +4 -0
  402. package/build/components/types/components/BlockAction/BlockAction.d.ts +9 -0
  403. package/build/components/types/components/BlockAction/BlockActionControl.d.ts +9 -0
  404. package/build/components/types/components/BlockAction/BlockActionIndicator.d.ts +9 -0
  405. package/build/components/types/components/BlockAction/CloneElementWithClassName.d.ts +8 -0
  406. package/build/components/types/components/BlockAction/Context.d.ts +13 -0
  407. package/build/components/types/components/BlockAction/index.d.ts +16 -0
  408. package/build/components/types/components/BodyBanner/BodyBanner.d.ts +20 -0
  409. package/build/components/types/components/BodyBanner/index.d.ts +2 -0
  410. package/build/components/types/components/Breadcrumbs/BreadcrumbItem.d.ts +15 -0
  411. package/build/components/types/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  412. package/build/components/types/components/Breadcrumbs/index.d.ts +2 -0
  413. package/build/components/types/components/Button/Button.d.ts +1 -1
  414. package/build/components/types/components/Card/Card.d.ts +13 -0
  415. package/build/components/types/components/Card/CardProductHeader.d.ts +9 -0
  416. package/build/components/types/components/Card/CardSection.d.ts +14 -0
  417. package/build/components/types/components/Card/index.d.ts +4 -0
  418. package/build/components/types/components/Carousel/Carousel.d.ts +12 -0
  419. package/build/components/types/components/Carousel/Carousel.static.d.ts +58 -0
  420. package/build/components/types/components/Carousel/CarouselItem.d.ts +7 -0
  421. package/build/components/types/components/Carousel/constants.d.ts +16 -0
  422. package/build/components/types/components/Carousel/index.d.ts +3 -0
  423. package/build/components/types/components/CarouselPromotions/CarouselPromotions.d.ts +10 -0
  424. package/build/components/types/components/CarouselPromotions/CarouselPromotions.static.d.ts +47 -0
  425. package/build/components/types/components/CarouselPromotions/CarouselPromotionsItem.d.ts +12 -0
  426. package/build/components/types/components/CarouselPromotions/constants.d.ts +18 -0
  427. package/build/components/types/components/CarouselPromotions/index.d.ts +3 -0
  428. package/build/components/types/components/CartTable/CartTable.d.ts +13 -0
  429. package/build/components/types/components/CartTable/FooterNameColumn.d.ts +7 -0
  430. package/build/components/types/components/CartTable/FooterPriceColumn.d.ts +9 -0
  431. package/build/components/types/components/CartTable/Price.d.ts +10 -0
  432. package/build/components/types/components/CartTable/generateFooter.d.ts +22 -0
  433. package/build/components/types/components/CartTable/generateRow.d.ts +21 -0
  434. package/build/components/types/components/CartTable/generateTotal.d.ts +45 -0
  435. package/build/components/types/components/CartTable/index.d.ts +2 -0
  436. package/build/components/types/components/Container/Container.d.ts +3 -6
  437. package/build/components/types/components/Container/index.d.ts +2 -3
  438. package/build/components/types/components/Controls/Controls.d.ts +16 -0
  439. package/build/components/types/components/Controls/index.d.ts +2 -0
  440. package/build/components/types/components/Cover/Cover.d.ts +42 -0
  441. package/build/components/types/components/Cover/index.d.ts +3 -0
  442. package/build/components/types/components/Divider/Divider.d.ts +13 -0
  443. package/build/components/types/components/Divider/index.d.ts +2 -0
  444. package/build/components/types/components/Dropdown/Dropdown.d.ts +20 -0
  445. package/build/components/types/components/Dropdown/Dropdown.static.d.ts +28 -0
  446. package/build/components/types/components/Dropdown/DropdownDivider.d.ts +3 -0
  447. package/build/components/types/components/Dropdown/DropdownItem.d.ts +9 -0
  448. package/build/components/types/components/Dropdown/DropdownToggleButton.d.ts +7 -0
  449. package/build/components/types/components/Dropdown/index.d.ts +5 -0
  450. package/build/components/types/components/Expander/Expander.d.ts +22 -0
  451. package/build/components/types/components/Expander/Expander.static.d.ts +13 -0
  452. package/build/components/types/components/FeatureAccordion/FeatureAccordion.d.ts +11 -0
  453. package/build/components/types/components/FeatureAccordion/FeatureAccordion.static.d.ts +23 -0
  454. package/build/components/types/components/FeatureAccordion/FeatureAccordionItem.d.ts +11 -0
  455. package/build/components/types/components/FeatureAccordion/index.d.ts +2 -0
  456. package/build/components/types/components/Footer/Footer.d.ts +12 -0
  457. package/build/components/types/components/Footer/data.d.ts +15 -0
  458. package/build/components/types/components/Footer/index.d.ts +1 -0
  459. package/build/components/types/components/Forms/Autocomplete/Autocomplete.d.ts +17 -0
  460. package/build/components/types/components/Forms/Autocomplete/Autocomplete.static.d.ts +21 -0
  461. package/build/components/types/components/Forms/Autocomplete/index.d.ts +2 -0
  462. package/build/components/types/components/Forms/Checkbox/Checkbox.d.ts +21 -0
  463. package/build/components/types/components/Forms/Checkbox/index.d.ts +2 -0
  464. package/build/components/types/components/Forms/Field/Control.d.ts +6 -0
  465. package/build/components/types/components/Forms/Field/Description.d.ts +7 -0
  466. package/build/components/types/components/Forms/Field/Field.d.ts +17 -0
  467. package/build/components/types/components/Forms/Field/FieldContext.d.ts +18 -0
  468. package/build/components/types/components/Forms/Field/Label.d.ts +11 -0
  469. package/build/components/types/components/Forms/Field/Messages.d.ts +12 -0
  470. package/build/components/types/components/Forms/Field/Tooltip.d.ts +11 -0
  471. package/build/components/types/components/Forms/Field/index.d.ts +2 -0
  472. package/build/components/types/components/Forms/Field/utils.d.ts +16 -0
  473. package/build/components/types/components/Forms/Fieldset/Fieldset.d.ts +16 -0
  474. package/build/components/types/components/Forms/Fieldset/FieldsetContext.d.ts +7 -0
  475. package/build/components/types/components/Forms/Fieldset/index.d.ts +2 -0
  476. package/build/components/types/components/Forms/File/File.d.ts +17 -0
  477. package/build/components/types/components/Forms/File/File.static.d.ts +27 -0
  478. package/build/components/types/components/Forms/File/index.d.ts +2 -0
  479. package/build/components/types/components/Forms/Group/Group.d.ts +14 -0
  480. package/build/components/types/components/Forms/Group/Item.d.ts +8 -0
  481. package/build/components/types/components/Forms/Group/index.d.ts +2 -0
  482. package/build/components/types/components/Forms/Hint/Hint.d.ts +7 -0
  483. package/build/components/types/components/Forms/Hint/index.d.ts +2 -0
  484. package/build/components/types/components/Forms/InputStepper/InputStepper.d.ts +20 -0
  485. package/build/components/types/components/Forms/InputStepper/InputStepper.static.d.ts +24 -0
  486. package/build/components/types/components/Forms/InputStepper/index.d.ts +2 -0
  487. package/build/components/types/components/Forms/Label/Label.d.ts +8 -0
  488. package/build/components/types/components/Forms/Label/index.d.ts +2 -0
  489. package/build/components/types/components/Forms/Message/Message.d.ts +12 -0
  490. package/build/components/types/components/Forms/Message/index.d.ts +2 -0
  491. package/build/components/types/components/Forms/Radio/Radio.d.ts +21 -0
  492. package/build/components/types/components/Forms/Radio/index.d.ts +2 -0
  493. package/build/components/types/components/Forms/RangeSlider/RangeSlider.d.ts +38 -0
  494. package/build/components/types/components/Forms/RangeSlider/RangeSlider.static.d.ts +24 -0
  495. package/build/components/types/components/Forms/RangeSlider/data.d.ts +49 -0
  496. package/build/components/types/components/Forms/RangeSlider/index.d.ts +2 -0
  497. package/build/components/types/components/Forms/Select/Select.d.ts +33 -0
  498. package/build/components/types/components/Forms/Select/index.d.ts +4 -0
  499. package/build/components/types/components/Forms/TextArea/TextArea.d.ts +29 -0
  500. package/build/components/types/components/Forms/TextArea/index.d.ts +2 -0
  501. package/build/components/types/components/Forms/TextInput/TextInput.d.ts +32 -0
  502. package/build/components/types/components/Forms/TextInput/index.d.ts +2 -0
  503. package/build/components/types/components/Forms/index.d.ts +15 -0
  504. package/build/components/types/components/Gauge/Gauge.d.ts +11 -0
  505. package/build/components/types/components/Gauge/index.d.ts +2 -0
  506. package/build/components/types/components/Grid/Grid.d.ts +14 -0
  507. package/build/components/types/components/Grid/GridCol.d.ts +12 -0
  508. package/build/components/types/components/Grid/index.d.ts +3 -0
  509. package/build/components/types/components/Icon/Icon.d.ts +2 -2
  510. package/build/components/types/components/Image/Image.d.ts +20 -0
  511. package/build/components/types/components/Image/index.d.ts +2 -0
  512. package/build/components/types/components/Link/Link.d.ts +18 -0
  513. package/build/components/types/components/Link/index.d.ts +2 -0
  514. package/build/components/types/components/List/ClickableControl.d.ts +9 -0
  515. package/build/components/types/components/List/List.d.ts +13 -0
  516. package/build/components/types/components/List/ListItem.d.ts +16 -0
  517. package/build/components/types/components/List/index.d.ts +3 -0
  518. package/build/components/types/components/Loader/Loader.d.ts +14 -0
  519. package/build/components/types/components/Loader/Loader.static.d.ts +19 -0
  520. package/build/components/types/components/Loader/index.d.ts +2 -0
  521. package/build/components/types/components/Modal/Modal.d.ts +2 -0
  522. package/build/components/types/components/Pagination/Pagination.d.ts +28 -0
  523. package/build/components/types/components/Pagination/PaginationItem.d.ts +21 -0
  524. package/build/components/types/components/Pagination/Separator.d.ts +6 -0
  525. package/build/components/types/components/Pagination/helpers.d.ts +23 -0
  526. package/build/components/types/components/Pagination/index.d.ts +4 -0
  527. package/build/components/types/components/Progress/Progress.d.ts +15 -0
  528. package/build/components/types/components/Progress/index.d.ts +2 -0
  529. package/build/components/types/components/Skeleton/Skeleton.d.ts +3 -0
  530. package/build/components/types/components/Skeleton/index.d.ts +2 -0
  531. package/build/components/types/components/Sticker/Sticker.d.ts +10 -0
  532. package/build/components/types/components/Sticker/index.d.ts +3 -0
  533. package/build/components/types/components/Table/Cell.d.ts +11 -0
  534. package/build/components/types/components/Table/Footer.d.ts +3 -0
  535. package/build/components/types/components/Table/Header.d.ts +3 -0
  536. package/build/components/types/components/Table/Row.d.ts +10 -0
  537. package/build/components/types/components/Table/Rows.d.ts +3 -0
  538. package/build/components/types/components/Table/Table.d.ts +24 -0
  539. package/build/components/types/components/Table/Table.static.d.ts +23 -0
  540. package/build/components/types/components/Table/TableContext.d.ts +4 -0
  541. package/build/components/types/components/Table/index.d.ts +3 -0
  542. package/build/components/types/components/Table/types.d.ts +34 -0
  543. package/build/components/types/components/Tabs/Tabs.d.ts +1 -3
  544. package/build/components/types/components/Tag/Tag.d.ts +24 -0
  545. package/build/components/types/components/Tag/TagButton.d.ts +12 -0
  546. package/build/components/types/components/Tag/index.d.ts +4 -0
  547. package/build/components/types/components/Testimonial/Testimonial.d.ts +10 -0
  548. package/build/components/types/components/Testimonial/index.d.ts +2 -0
  549. package/build/components/types/components/Tile/Tile.d.ts +23 -0
  550. package/build/components/types/components/Tile/index.d.ts +2 -0
  551. package/build/components/types/components/Tooltip/InfoTooltip.d.ts +8 -0
  552. package/build/components/types/components/Tooltip/Tooltip.d.ts +25 -0
  553. package/build/components/types/components/Tooltip/Tooltip.static.d.ts +26 -0
  554. package/build/components/types/components/Tooltip/index.d.ts +3 -0
  555. package/build/components/types/components/index.d.ts +34 -2
  556. package/build/components/types/docs/utils/ToggleButton.d.ts +9 -0
  557. package/build/components/types/scripts/modules/Toggle.d.ts +39 -0
  558. package/build/components/types/scripts/modules/toggleUtil.d.ts +13 -0
  559. package/build/components/types/styles/export/breakpoint.d.ts +9 -0
  560. package/build/components/types/utils/ConditionalWrapper.d.ts +9 -12
  561. package/build/components/types/utils/classes.d.ts +5 -0
  562. package/build/components/types/utils/color.d.ts +20 -0
  563. package/build/components/types/utils/helpers.d.ts +11 -0
  564. package/build/components/types/utils/hooks.d.ts +2 -1
  565. package/build/components/types/utils/index.d.ts +5 -0
  566. package/build/images/product-1.svg +10 -0
  567. package/build/images/product-2.svg +14 -0
  568. package/build/images/product-3.svg +9 -0
  569. package/build/index.html +57 -3
  570. package/build/index.txt +5 -4
  571. package/build/javascript/toggle.html +1 -0
  572. package/build/javascript/toggle.txt +29 -0
  573. package/build/lib/after-components.css +1 -1
  574. package/build/lib/after-components.css.map +1 -1
  575. package/build/lib/before-components.css +2 -1
  576. package/build/lib/before-components.css.map +1 -1
  577. package/build/lib/components.css +1 -1
  578. package/build/lib/components.css.map +1 -1
  579. package/build/lib/scripts.css +2 -0
  580. package/build/lib/scripts.css.map +1 -0
  581. package/build/lib/scripts.js +4 -2442
  582. package/build/lib/scripts.js.map +1 -1
  583. package/build/lib/style.css +2 -1
  584. package/build/lib/style.css.map +1 -1
  585. package/build/logo.svg +1 -0
  586. package/build/utilities/horizontal-scroll.html +4 -0
  587. package/build/utilities/horizontal-scroll.txt +26 -0
  588. package/package.json +12 -2
  589. package/src/components/Accordion/Accordion.mdx +2 -2
  590. package/src/components/Accordion/Accordion.tsx +12 -20
  591. package/src/components/Accordion/AccordionItem.tsx +16 -26
  592. package/src/components/Accordion/index.ts +3 -3
  593. package/src/components/Accordion/styles/mixins.scss +11 -11
  594. package/src/components/Accordion/styles/style.scss +34 -32
  595. package/src/components/Accordion/tests/Accordion.unit.test.js +2 -2
  596. package/src/components/Alert/Alert.tsx +6 -5
  597. package/src/components/Alert/CHANGELOG.md +33 -0
  598. package/src/components/Alert/styles/config.scss +2 -41
  599. package/src/components/Alert/styles/mixins.scss +20 -8
  600. package/src/components/Alert/styles/style.scss +22 -30
  601. package/src/components/Alert/tests/Alert.test.js +26 -0
  602. package/src/components/Bar/Bar.mdx +203 -0
  603. package/src/components/Bar/Bar.tsx +58 -0
  604. package/src/components/Bar/BarBreak.tsx +29 -0
  605. package/src/components/Bar/BarItem.tsx +50 -0
  606. package/src/components/Bar/index.ts +5 -0
  607. package/src/components/Bar/styles/config.scss +10 -0
  608. package/src/components/Bar/styles/mixins.scss +84 -0
  609. package/src/components/Bar/styles/style.scss +62 -0
  610. package/src/components/Bar/tests/Bar.conformance.test.js +29 -0
  611. package/src/components/Bar/tests/Bar.unit.test.js +58 -0
  612. package/src/components/Bar/tests/BarBreak.unit.test.js +32 -0
  613. package/src/components/Bar/tests/BarItem.unit.test.js +51 -0
  614. package/src/components/BlockAction/BlockAction.mdx +244 -0
  615. package/src/components/BlockAction/BlockAction.static.ts +104 -0
  616. package/src/components/BlockAction/BlockAction.tsx +27 -0
  617. package/src/components/BlockAction/BlockActionControl.tsx +32 -0
  618. package/src/components/BlockAction/BlockActionIndicator.tsx +32 -0
  619. package/src/components/BlockAction/CloneElementWithClassName.tsx +23 -0
  620. package/src/components/BlockAction/Context.tsx +39 -0
  621. package/src/components/BlockAction/index.tsx +29 -0
  622. package/src/components/BlockAction/styles/config.scss +10 -0
  623. package/src/components/BlockAction/styles/mixins.scss +33 -0
  624. package/src/components/BlockAction/styles/style.scss +35 -0
  625. package/src/components/BlockAction/tests/BlockAction.conformance.test.js +117 -0
  626. package/src/components/BlockAction/tests/BlockAction.unit.test.js +44 -0
  627. package/src/components/BlockAction/tests/BlockActionControl.unit.test.js +146 -0
  628. package/src/components/BlockAction/tests/BlockActionIndicator.unit.test.js +68 -0
  629. package/src/components/BlockAction/tests/CloneElementWithClassName.unit.test.js +33 -0
  630. package/src/components/BodyBanner/BodyBanner.mdx +268 -0
  631. package/src/components/BodyBanner/BodyBanner.tsx +102 -0
  632. package/src/components/BodyBanner/index.tsx +3 -0
  633. package/src/components/BodyBanner/styles/mixins.scss +106 -0
  634. package/src/components/BodyBanner/styles/style.scss +41 -0
  635. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +13 -13
  636. package/src/components/Breadcrumbs/Breadcrumbs.tsx +16 -15
  637. package/src/components/Breadcrumbs/index.ts +2 -4
  638. package/src/components/Breadcrumbs/styles/style.scss +25 -23
  639. package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +1 -2
  640. package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.js +16 -17
  641. package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +5 -5
  642. package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +1 -2
  643. package/src/components/Button/Button.tsx +4 -3
  644. package/src/components/Button/styles/config.scss +34 -127
  645. package/src/components/Button/styles/mixins.scss +2 -11
  646. package/src/components/Button/styles/style.scss +28 -48
  647. package/src/components/Button/tests/Button.test.js +8 -3
  648. package/src/components/Buttons/styles/style.scss +6 -4
  649. package/src/components/Card/CHANGELOG.md +19 -0
  650. package/src/components/Card/Card.mdx +334 -0
  651. package/src/components/Card/Card.tsx +35 -0
  652. package/src/components/Card/CardProductHeader.tsx +34 -0
  653. package/src/components/Card/CardSection.tsx +44 -0
  654. package/src/components/Card/index.ts +5 -0
  655. package/src/components/Card/styles/config.scss +16 -0
  656. package/src/components/Card/styles/mixins.scss +68 -0
  657. package/src/components/Card/styles/style.scss +37 -0
  658. package/src/components/Card/tests/Card.conformance.test.js +31 -0
  659. package/src/components/Card/tests/Card.unit.test.js +47 -0
  660. package/src/components/Card/tests/CardProductHeader.unit.test.js +51 -0
  661. package/src/components/Card/tests/CardSection.unit.test.js +61 -0
  662. package/src/components/Card/tests/data.ts +44 -0
  663. package/src/components/Carousel/Carousel.mdx +163 -0
  664. package/src/components/Carousel/Carousel.static.ts +227 -0
  665. package/src/components/Carousel/Carousel.tsx +93 -0
  666. package/src/components/Carousel/CarouselItem.tsx +29 -0
  667. package/src/components/Carousel/constants.ts +18 -0
  668. package/src/components/Carousel/index.ts +4 -0
  669. package/src/components/Carousel/styles/config.scss +44 -0
  670. package/src/components/Carousel/styles/mixins.scss +231 -0
  671. package/src/components/Carousel/styles/style.scss +64 -0
  672. package/src/components/Carousel/tests/Carousel.conformance.test.js +26 -0
  673. package/src/components/Carousel/tests/Carousel.unit.test.js +150 -0
  674. package/src/components/Carousel/tests/CarouselItem.unit.test.js +27 -0
  675. package/src/components/CarouselPromotions/CarouselPromotions.mdx +246 -0
  676. package/src/components/CarouselPromotions/CarouselPromotions.static.ts +254 -0
  677. package/src/components/CarouselPromotions/CarouselPromotions.tsx +63 -0
  678. package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +53 -0
  679. package/src/components/CarouselPromotions/constants.ts +21 -0
  680. package/src/components/CarouselPromotions/index.ts +4 -0
  681. package/src/components/CarouselPromotions/styles/config.scss +65 -0
  682. package/src/components/CarouselPromotions/styles/mixins.scss +286 -0
  683. package/src/components/CarouselPromotions/styles/style.scss +51 -0
  684. package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.js +30 -0
  685. package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +94 -0
  686. package/src/components/CarouselPromotions/tests/CarouselPromotionsItem.unit.test.js +33 -0
  687. package/src/components/CartTable/CartTable.mdx +129 -0
  688. package/src/components/CartTable/CartTable.tsx +111 -0
  689. package/src/components/CartTable/FooterNameColumn.tsx +32 -0
  690. package/src/components/CartTable/FooterPriceColumn.tsx +50 -0
  691. package/src/components/CartTable/Price.tsx +48 -0
  692. package/src/components/CartTable/data.ts +147 -0
  693. package/src/components/CartTable/generateFooter.tsx +97 -0
  694. package/src/components/CartTable/generateRow.tsx +196 -0
  695. package/src/components/CartTable/generateTotal.ts +157 -0
  696. package/src/components/CartTable/index.ts +3 -0
  697. package/src/components/CartTable/styles/config.scss +19 -0
  698. package/src/components/CartTable/styles/mixins.scss +141 -0
  699. package/src/components/CartTable/styles/style.scss +37 -0
  700. package/src/components/CartTable/tests/CartTable.conformance.test.js +16 -0
  701. package/src/components/Container/Container.tsx +11 -9
  702. package/src/components/Container/index.ts +2 -4
  703. package/src/components/Container/styles/style.scss +5 -3
  704. package/src/components/Container/tests/Container.conformance.test.js +59 -53
  705. package/src/components/Container/tests/Container.unit.test.js +131 -131
  706. package/src/components/Controls/Controls.mdx +469 -0
  707. package/src/components/Controls/Controls.tsx +50 -0
  708. package/src/components/Controls/index.ts +3 -0
  709. package/src/components/Controls/styles/config.scss +61 -0
  710. package/src/components/Controls/styles/mixins.scss +70 -0
  711. package/src/components/Controls/styles/style.scss +16 -0
  712. package/src/components/Controls/tests/Controls.test.js +479 -0
  713. package/src/components/Cover/Cover.mdx +87 -0
  714. package/src/components/Cover/Cover.tsx +81 -0
  715. package/src/components/Cover/index.ts +5 -0
  716. package/src/components/Cover/styles/config.scss +55 -0
  717. package/src/components/Cover/styles/mixins.scss +43 -0
  718. package/src/components/Cover/styles/style.scss +32 -0
  719. package/src/components/Cover/tests/Cover.conformance.test.js +28 -0
  720. package/src/components/Cover/tests/Cover.unit.test.js +116 -0
  721. package/src/components/Divider/Divider.mdx +65 -0
  722. package/src/components/Divider/Divider.tsx +57 -0
  723. package/src/components/Divider/index.ts +3 -0
  724. package/src/components/Divider/styles/config.scss +27 -0
  725. package/src/components/Divider/styles/mixins.scss +45 -0
  726. package/src/components/Divider/styles/style.scss +33 -0
  727. package/src/components/{Badge/tests/Badge.conformance.test.js → Divider/tests/Divider.conformance.test.js} +5 -8
  728. package/src/components/Divider/tests/Divider.unit.test.js +80 -0
  729. package/src/components/Dropdown/Dropdown.mdx +260 -0
  730. package/src/components/Dropdown/Dropdown.static.ts +198 -0
  731. package/src/components/Dropdown/Dropdown.tsx +107 -0
  732. package/src/components/Dropdown/DropdownDivider.tsx +17 -0
  733. package/src/components/Dropdown/DropdownItem.tsx +43 -0
  734. package/src/components/Dropdown/DropdownToggleButton.tsx +37 -0
  735. package/src/components/Dropdown/index.ts +6 -0
  736. package/src/components/Dropdown/styles/config.scss +43 -0
  737. package/src/components/Dropdown/styles/mixins.scss +79 -0
  738. package/src/components/Dropdown/styles/style.scss +33 -0
  739. package/src/components/Dropdown/tests/Dropdown.conformance.test.js +48 -0
  740. package/src/components/Dropdown/tests/Dropdown.unit.test.js +69 -0
  741. package/src/components/Expander/Expander.mdx +153 -0
  742. package/src/components/Expander/Expander.static.ts +59 -0
  743. package/src/components/Expander/Expander.tsx +99 -0
  744. package/src/components/Expander/index.ts +3 -0
  745. package/src/components/Expander/styles/style.scss +63 -0
  746. package/src/components/Expander/tests/Expander.conformance.test.js +59 -0
  747. package/src/components/Expander/tests/Expander.unit.test.js +124 -0
  748. package/src/components/FeatureAccordion/FeatureAccordion.mdx +33 -0
  749. package/src/components/FeatureAccordion/FeatureAccordion.static.ts +121 -0
  750. package/src/components/FeatureAccordion/FeatureAccordion.tsx +116 -0
  751. package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +31 -0
  752. package/src/components/FeatureAccordion/index.ts +2 -0
  753. package/src/components/FeatureAccordion/styles/mixins.scss +74 -0
  754. package/src/components/FeatureAccordion/styles/style.scss +21 -0
  755. package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +92 -0
  756. package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +80 -0
  757. package/src/components/Footer/Footer.tsx +93 -0
  758. package/src/components/Footer/data.ts +71 -0
  759. package/src/components/Footer/index.ts +1 -0
  760. package/src/components/Footer/tests/Footer.conformance.test.js +13 -0
  761. package/src/components/Footer/tests/Footer.unit.test.js +66 -0
  762. package/src/components/Forms/Autocomplete/Autocomplete.mdx +198 -0
  763. package/src/components/Forms/Autocomplete/Autocomplete.static.ts +90 -0
  764. package/src/components/Forms/Autocomplete/Autocomplete.tsx +66 -0
  765. package/src/components/Forms/Autocomplete/index.ts +3 -0
  766. package/src/components/Forms/Autocomplete/styles/config.scss +7 -0
  767. package/src/components/Forms/Autocomplete/styles/mixins.scss +77 -0
  768. package/src/components/Forms/Autocomplete/styles/style.scss +66 -0
  769. package/src/components/Forms/Checkbox/Checkbox.mdx +139 -0
  770. package/src/components/Forms/Checkbox/Checkbox.tsx +75 -0
  771. package/src/components/Forms/Checkbox/index.ts +3 -0
  772. package/src/components/Forms/Checkbox/styles/config.scss +25 -0
  773. package/src/components/Forms/Checkbox/styles/mixins.scss +2 -0
  774. package/src/components/Forms/Checkbox/styles/style.scss +89 -0
  775. package/src/components/Forms/Checkbox/tests/Checkbox.unit.test.js +95 -0
  776. package/src/components/Forms/Field/Control.tsx +129 -0
  777. package/src/components/Forms/Field/Description.tsx +40 -0
  778. package/src/components/Forms/Field/Field.mdx +383 -0
  779. package/src/components/Forms/Field/Field.tsx +102 -0
  780. package/src/components/Forms/Field/FieldContext.tsx +24 -0
  781. package/src/components/Forms/Field/Label.tsx +71 -0
  782. package/src/components/Forms/Field/Messages.tsx +36 -0
  783. package/src/components/Forms/Field/Tooltip.tsx +35 -0
  784. package/src/components/Forms/Field/index.ts +3 -0
  785. package/src/components/Forms/Field/styles/config.scss +25 -0
  786. package/src/components/Forms/Field/styles/mixins.scss +43 -0
  787. package/src/components/Forms/Field/styles/style.scss +37 -0
  788. package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +52 -0
  789. package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +43 -0
  790. package/src/components/Forms/Field/tests/Field.unit.test.js +11 -0
  791. package/src/components/Forms/Field/tests/File.Field.conformance.test.js +47 -0
  792. package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +47 -0
  793. package/src/components/Forms/Field/tests/Label.unit.test.js +163 -0
  794. package/src/components/Forms/Field/tests/Messages.unit.test.js +102 -0
  795. package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +43 -0
  796. package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +60 -0
  797. package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +45 -0
  798. package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +43 -0
  799. package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +43 -0
  800. package/src/components/Forms/Field/tests/Tooltip.unit.test.js +38 -0
  801. package/src/components/Forms/Field/utils.ts +36 -0
  802. package/src/components/Forms/Fieldset/Fieldset.mdx +178 -0
  803. package/src/components/Forms/Fieldset/Fieldset.tsx +62 -0
  804. package/src/components/Forms/Fieldset/FieldsetContext.ts +13 -0
  805. package/src/components/Forms/Fieldset/docsData.ts +75 -0
  806. package/src/components/Forms/Fieldset/index.ts +3 -0
  807. package/src/components/Forms/Fieldset/styles/mixins.scss +6 -0
  808. package/src/components/Forms/Fieldset/styles/style.scss +10 -0
  809. package/src/components/Forms/Fieldset/tests/Fieldset.unit.test.js +63 -0
  810. package/src/components/Forms/File/File.mdx +88 -0
  811. package/src/components/Forms/File/File.static.ts +164 -0
  812. package/src/components/Forms/File/File.tsx +77 -0
  813. package/src/components/Forms/File/index.ts +3 -0
  814. package/src/components/Forms/File/styles/config.scss +12 -0
  815. package/src/components/Forms/File/styles/mixins.scss +87 -0
  816. package/src/components/Forms/File/styles/style.scss +51 -0
  817. package/src/components/Forms/FormTooltip.mdx +51 -0
  818. package/src/components/Forms/Forms.mdx +48 -0
  819. package/src/components/Forms/Group/CHANGELOG.md +5 -0
  820. package/src/components/Forms/Group/Group.mdx +146 -0
  821. package/src/components/Forms/Group/Group.tsx +74 -0
  822. package/src/components/Forms/Group/Item.tsx +35 -0
  823. package/src/components/Forms/Group/index.ts +3 -0
  824. package/src/components/Forms/Group/styles/config.scss +9 -0
  825. package/src/components/Forms/Group/styles/mixins.scss +54 -0
  826. package/src/components/Forms/Group/styles/style.scss +19 -0
  827. package/src/components/Forms/Group/tests/Group.unit.test.js +171 -0
  828. package/src/components/Forms/Group/tests/Item.unit.test.js +31 -0
  829. package/src/components/Forms/Hint/Hint.mdx +40 -0
  830. package/src/components/Forms/Hint/Hint.tsx +21 -0
  831. package/src/components/Forms/Hint/index.ts +3 -0
  832. package/src/components/Forms/Hint/styles/config.scss +5 -0
  833. package/src/components/Forms/Hint/styles/mixins.scss +6 -0
  834. package/src/components/Forms/Hint/styles/style.scss +7 -0
  835. package/src/components/Forms/Hint/tests/Hint.unit.test.js +35 -0
  836. package/src/components/Forms/InputStepper/InputStepper.mdx +147 -0
  837. package/src/components/Forms/InputStepper/InputStepper.static.ts +187 -0
  838. package/src/components/Forms/InputStepper/InputStepper.tsx +86 -0
  839. package/src/components/Forms/InputStepper/index.ts +3 -0
  840. package/src/components/Forms/InputStepper/styles/style.scss +210 -0
  841. package/src/components/Forms/InputStepper/tests/InputStepper.unit.test.js +54 -0
  842. package/src/components/Forms/Label/Label.mdx +95 -0
  843. package/src/components/Forms/Label/Label.tsx +26 -0
  844. package/src/components/Forms/Label/index.ts +3 -0
  845. package/src/components/Forms/Label/styles/config.scss +4 -0
  846. package/src/components/Forms/Label/styles/mixins.scss +6 -0
  847. package/src/components/Forms/Label/styles/style.scss +11 -0
  848. package/src/components/Forms/Label/tests/Label.unit.test.js +42 -0
  849. package/src/components/Forms/Message/Message.mdx +40 -0
  850. package/src/components/Forms/Message/Message.tsx +64 -0
  851. package/src/components/Forms/Message/index.ts +3 -0
  852. package/src/components/Forms/Message/styles/config.scss +21 -0
  853. package/src/components/Forms/Message/styles/mixins.scss +20 -0
  854. package/src/components/Forms/Message/styles/style.scss +12 -0
  855. package/src/components/Forms/Message/tests/Message.unit.test.js +83 -0
  856. package/src/components/Forms/Radio/Radio.mdx +98 -0
  857. package/src/components/Forms/Radio/Radio.tsx +70 -0
  858. package/src/components/Forms/Radio/index.ts +3 -0
  859. package/src/components/Forms/Radio/styles/config.scss +25 -0
  860. package/src/components/Forms/Radio/styles/mixins.scss +6 -0
  861. package/src/components/Forms/Radio/styles/style.scss +25 -0
  862. package/src/components/Forms/Radio/tests/Radio.unit.test.js +105 -0
  863. package/src/components/Forms/RangeSlider/RangeSlider.mdx +304 -0
  864. package/src/components/Forms/RangeSlider/RangeSlider.static.ts +121 -0
  865. package/src/components/Forms/RangeSlider/RangeSlider.tsx +98 -0
  866. package/src/components/Forms/RangeSlider/data.ts +50 -0
  867. package/src/components/Forms/RangeSlider/index.ts +3 -0
  868. package/src/components/Forms/RangeSlider/styles/config.scss +32 -0
  869. package/src/components/Forms/RangeSlider/styles/mixins.scss +139 -0
  870. package/src/components/Forms/RangeSlider/styles/style.scss +97 -0
  871. package/src/components/Forms/Select/Select.mdx +106 -0
  872. package/src/components/Forms/Select/Select.tsx +97 -0
  873. package/src/components/Forms/Select/index.tsx +9 -0
  874. package/src/components/Forms/Select/styles/config.scss +53 -0
  875. package/src/components/Forms/Select/styles/mixins.scss +34 -0
  876. package/src/components/Forms/Select/styles/style.scss +22 -0
  877. package/src/components/Forms/Select/tests/Select.unit.test.js +98 -0
  878. package/src/components/Forms/TextArea/TextArea.mdx +109 -0
  879. package/src/components/Forms/TextArea/TextArea.tsx +84 -0
  880. package/src/components/Forms/TextArea/index.ts +3 -0
  881. package/src/components/Forms/TextArea/styles/config.scss +35 -0
  882. package/src/components/Forms/TextArea/styles/mixins.scss +48 -0
  883. package/src/components/Forms/TextArea/styles/style.scss +22 -0
  884. package/src/components/Forms/TextArea/tests/TextArea.unit.test.js +127 -0
  885. package/src/components/Forms/TextInput/TextInput.mdx +153 -0
  886. package/src/components/Forms/TextInput/TextInput.tsx +101 -0
  887. package/src/components/Forms/TextInput/index.ts +3 -0
  888. package/src/components/Forms/TextInput/styles/config.scss +60 -0
  889. package/src/components/Forms/TextInput/styles/mixins.scss +80 -0
  890. package/src/components/Forms/TextInput/styles/style.scss +30 -0
  891. package/src/components/Forms/TextInput/tests/TextInput.unit.test.js +108 -0
  892. package/src/components/Forms/index.ts +16 -0
  893. package/src/components/Forms/styles/config.scss +41 -0
  894. package/src/components/Forms/styles/mixins.scss +44 -0
  895. package/src/components/Gauge/Gauge.mdx +35 -0
  896. package/src/components/Gauge/Gauge.tsx +72 -0
  897. package/src/components/Gauge/GaugeMaker.tsx +90 -0
  898. package/src/components/Gauge/index.ts +3 -0
  899. package/src/components/Gauge/styles/style.scss +34 -0
  900. package/src/components/Gauge/tests/Gauge.conformance.test.js +25 -0
  901. package/src/components/Gauge/tests/Gauge.unit.test.js +35 -0
  902. package/src/components/Grid/Grid.mdx +20 -19
  903. package/src/components/Grid/Grid.tsx +27 -22
  904. package/src/components/Grid/index.ts +3 -5
  905. package/src/components/Grid/styles/style.scss +29 -27
  906. package/src/components/Icon/Icon.tsx +2 -2
  907. package/src/components/Icon/styles/config.scss +5 -5
  908. package/src/components/Icon/styles/style.scss +12 -10
  909. package/src/components/Image/Image.mdx +29 -20
  910. package/src/components/Image/Image.tsx +12 -13
  911. package/src/components/Image/index.ts +2 -6
  912. package/src/components/Image/styles/style.scss +9 -6
  913. package/src/components/Image/tests/Image.conformance.test.js +1 -1
  914. package/src/components/Image/tests/Image.unit.test.js +166 -188
  915. package/src/components/Link/CHANGELOG.md +25 -0
  916. package/src/components/Link/Link.tsx +14 -9
  917. package/src/components/Link/styles/mixins.scss +8 -17
  918. package/src/components/Link/styles/style.scss +37 -54
  919. package/src/components/Link/tests/Link.conformance.test.js +7 -25
  920. package/src/components/Link/tests/Link.unit.test.js +20 -33
  921. package/src/components/List/ClickableControl.tsx +33 -0
  922. package/src/components/List/List.mdx +216 -0
  923. package/src/components/List/List.tsx +40 -0
  924. package/src/components/List/ListItem.tsx +44 -0
  925. package/src/components/List/index.ts +5 -0
  926. package/src/components/List/styles/config.scss +38 -0
  927. package/src/components/List/styles/mixins.scss +99 -0
  928. package/src/components/List/styles/style.scss +48 -0
  929. package/src/components/List/tests/ClickableControl.unit.test.js +100 -0
  930. package/src/components/List/tests/List.conformance.test.js +69 -0
  931. package/src/components/List/tests/List.unit.test.js +47 -0
  932. package/src/components/List/tests/ListItem.unit.test.js +104 -0
  933. package/src/components/Loader/Loader.mdx +148 -0
  934. package/src/components/Loader/Loader.static.ts +85 -0
  935. package/src/components/Loader/Loader.tsx +75 -0
  936. package/src/components/Loader/index.ts +3 -0
  937. package/src/components/Loader/styles/config.scss +16 -0
  938. package/src/components/Loader/styles/mixins.scss +66 -0
  939. package/src/components/Loader/styles/style.scss +38 -0
  940. package/src/components/Loader/tests/Loader.conformance.test.js +22 -0
  941. package/src/components/Loader/tests/Loader.unit.test.js +59 -0
  942. package/src/components/Loader/tests/test.scss +5 -0
  943. package/src/components/Modal/Modal.mdx +86 -86
  944. package/src/components/Modal/Modal.tsx +5 -0
  945. package/src/components/Modal/styles/config.scss +7 -8
  946. package/src/components/Modal/styles/mixins.scss +2 -2
  947. package/src/components/Modal/styles/style.scss +65 -63
  948. package/src/components/Modal/tests/Modal.unit.test.js +22 -0
  949. package/src/components/Pagination/Pagination.mdx +45 -0
  950. package/src/components/Pagination/Pagination.tsx +86 -0
  951. package/src/components/Pagination/PaginationItem.tsx +61 -0
  952. package/src/components/Pagination/Separator.tsx +19 -0
  953. package/src/components/Pagination/helpers.ts +71 -0
  954. package/src/components/Pagination/index.ts +5 -0
  955. package/src/components/Pagination/styles/mixins.scss +43 -0
  956. package/src/components/Pagination/styles/style.scss +28 -0
  957. package/src/components/Pagination/tests/Item.unit.test.js +96 -0
  958. package/src/components/Pagination/tests/Pagination.conformance.test.js +41 -0
  959. package/src/components/Pagination/tests/Pagination.unit.test.js +108 -0
  960. package/src/components/Pagination/tests/Separator.unit.test.js +25 -0
  961. package/src/components/Pagination/tests/utils.js +12 -0
  962. package/src/components/Progress/Progress.mdx +119 -0
  963. package/src/components/Progress/Progress.tsx +60 -0
  964. package/src/components/Progress/index.ts +3 -0
  965. package/src/components/Progress/styles/config.scss +19 -0
  966. package/src/components/Progress/styles/mixins.scss +40 -0
  967. package/src/components/Progress/styles/style.scss +31 -0
  968. package/src/components/Progress/tests/Progress.conformance.test.js +27 -0
  969. package/src/components/Progress/tests/Progress.unit.test.js +108 -0
  970. package/src/components/Section/Section.tsx +1 -1
  971. package/src/components/Section/styles/style.scss +28 -26
  972. package/src/components/Skeleton/Skeleton.mdx +90 -0
  973. package/src/components/Skeleton/Skeleton.tsx +21 -0
  974. package/src/components/Skeleton/index.ts +3 -0
  975. package/src/components/Skeleton/styles/config.scss +31 -0
  976. package/src/components/Skeleton/styles/mixins.scss +22 -0
  977. package/src/components/Skeleton/styles/style.scss +7 -0
  978. package/src/components/Skeleton/tests/Skeleton.conformance.test.js +16 -0
  979. package/src/components/Skeleton/tests/Skeleton.unit.test.js +22 -0
  980. package/src/components/Sticker/Sticker.mdx +50 -0
  981. package/src/components/Sticker/Sticker.tsx +31 -0
  982. package/src/components/Sticker/index.ts +4 -0
  983. package/src/components/Sticker/styles/config.scss +31 -0
  984. package/src/components/Sticker/styles/mixins.scss +25 -0
  985. package/src/components/Sticker/styles/style.scss +22 -0
  986. package/src/components/Sticker/tests/Sticker.conformance.test.js +17 -0
  987. package/src/components/Sticker/tests/Sticker.unit.test.js +42 -0
  988. package/src/components/Table/Cell.tsx +22 -0
  989. package/src/components/Table/Footer.tsx +25 -0
  990. package/src/components/Table/Header.tsx +73 -0
  991. package/src/components/Table/Row.tsx +70 -0
  992. package/src/components/Table/Rows.tsx +36 -0
  993. package/src/components/Table/Table.mdx +199 -0
  994. package/src/components/Table/Table.static.ts +146 -0
  995. package/src/components/Table/Table.tsx +130 -0
  996. package/src/components/Table/TableContext.ts +9 -0
  997. package/src/components/Table/docsData.ts +210 -0
  998. package/src/components/Table/index.ts +4 -0
  999. package/src/components/Table/styles/config.scss +4 -0
  1000. package/src/components/Table/styles/mixins.scss +115 -0
  1001. package/src/components/Table/styles/style.scss +103 -0
  1002. package/src/components/Table/tests/Cell.unit.test.js +59 -0
  1003. package/src/components/Table/tests/Footer.unit.test.js +70 -0
  1004. package/src/components/Table/tests/Header.unit.test.js +120 -0
  1005. package/src/components/Table/tests/Row.unit.test.js +206 -0
  1006. package/src/components/Table/tests/Rows.unit.test.js +92 -0
  1007. package/src/components/Table/tests/Table.conformance.test.js +74 -0
  1008. package/src/components/Table/tests/Table.unit.test.js +296 -0
  1009. package/src/components/Table/types.ts +40 -0
  1010. package/src/components/Tabs/Tabs.tsx +4 -5
  1011. package/src/components/Tabs/styles/config.scss +29 -48
  1012. package/src/components/Tabs/styles/mixins.scss +20 -29
  1013. package/src/components/Tabs/styles/style.scss +34 -42
  1014. package/src/components/Tabs/tests/Tabs.unit.test.js +8 -0
  1015. package/src/components/Tag/CHANGELOG.md +93 -0
  1016. package/src/components/Tag/Tag.mdx +52 -0
  1017. package/src/components/Tag/Tag.tsx +118 -0
  1018. package/src/components/Tag/TagButton.tsx +67 -0
  1019. package/src/components/Tag/index.ts +5 -0
  1020. package/src/components/Tag/styles/config.scss +132 -0
  1021. package/src/components/Tag/styles/mixins.scss +54 -0
  1022. package/src/components/Tag/styles/style.scss +69 -0
  1023. package/src/components/Tag/tests/Tag.conformance.test.js +44 -0
  1024. package/src/components/Tag/tests/Tag.unit.test.js +93 -0
  1025. package/src/components/Tag/tests/TagButton.conformance.test.js +24 -0
  1026. package/src/components/Tag/tests/TagButton.unit.test.js +96 -0
  1027. package/src/components/Testimonial/Testimonial.mdx +41 -0
  1028. package/src/components/Testimonial/Testimonial.tsx +38 -0
  1029. package/src/components/Testimonial/index.ts +3 -0
  1030. package/src/components/Testimonial/styles/config.scss +39 -0
  1031. package/src/components/Testimonial/styles/mixins.scss +40 -0
  1032. package/src/components/Testimonial/styles/style.scss +16 -0
  1033. package/src/components/Testimonial/tests/Testimonial.conformance.test.js +17 -0
  1034. package/src/components/Testimonial/tests/Testimonial.unit.test.js +44 -0
  1035. package/src/components/Tile/CHANGELOG.md +14 -0
  1036. package/src/components/Tile/Tile.mdx +163 -0
  1037. package/src/components/Tile/Tile.tsx +86 -0
  1038. package/src/components/Tile/index.ts +3 -0
  1039. package/src/components/Tile/styles/config.scss +17 -0
  1040. package/src/components/Tile/styles/mixins.scss +78 -0
  1041. package/src/components/Tile/styles/style.scss +55 -0
  1042. package/src/components/Tile/tests/Tile.conformance.test.js +16 -0
  1043. package/src/components/Tile/tests/Tile.unit.test.js +126 -0
  1044. package/src/components/Tooltip/InfoTooltip.tsx +40 -0
  1045. package/src/components/Tooltip/TODO.md +1 -0
  1046. package/src/components/Tooltip/Tooltip.mdx +227 -0
  1047. package/src/components/Tooltip/Tooltip.static.ts +213 -0
  1048. package/src/components/Tooltip/Tooltip.tsx +107 -0
  1049. package/src/components/Tooltip/index.ts +4 -0
  1050. package/src/components/Tooltip/styles/config.scss +58 -0
  1051. package/src/components/Tooltip/styles/mixins.scss +94 -0
  1052. package/src/components/Tooltip/styles/style.scss +30 -0
  1053. package/src/components/Tooltip/tests/BaseWrapper.tsx +10 -0
  1054. package/src/components/Tooltip/tests/InfoTooltip.unit.test.js +98 -0
  1055. package/src/components/Tooltip/tests/Tooltip.conformance.test.js +44 -0
  1056. package/src/components/Tooltip/tests/Tooltip.unit.test.js +326 -0
  1057. package/src/components/index.ts +124 -3
  1058. package/src/components/static.ts +1 -1
  1059. package/src/styles/base/globals-forms.scss +15 -13
  1060. package/src/styles/base/globals.scss +132 -103
  1061. package/src/styles/before-components.scss +8 -4
  1062. package/src/styles/export/base.scss +1 -1
  1063. package/src/styles/export/color.scss +22 -22
  1064. package/src/styles/shame.scss +10 -8
  1065. package/src/styles/tokens/base.scss +4 -4
  1066. package/src/styles/tokens/color.scss +11 -11
  1067. package/src/styles/typography/mixins.scss +1 -1
  1068. package/src/styles/typography/style.scss +43 -41
  1069. package/src/styles/utilities/border.scss +16 -15
  1070. package/src/styles/utilities/color.scss +115 -95
  1071. package/src/styles/utilities/horizontal-scroll.scss +40 -36
  1072. package/src/styles/utilities/layout.scss +159 -157
  1073. package/src/styles/utilities/text.scss +98 -84
  1074. package/src/styles/utilities/visibility.scss +66 -62
  1075. package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_buildManifest.js +0 -1
  1076. package/build/_next/static/chunks/4bd1b696-40a218329c8ae32b.js +0 -1
  1077. package/build/_next/static/chunks/684-c72f8f73e7f2d568.js +0 -1
  1078. package/build/_next/static/chunks/925.75d0c8afa7ab7cfa.js +0 -1
  1079. package/build/_next/static/chunks/998-a45c3cf6f575e126.js +0 -1
  1080. package/build/_next/static/chunks/app/_not-found/page-c799b4c91b89a5c2.js +0 -1
  1081. package/build/_next/static/chunks/app/components/alert/page-d591b03a7394f81e.js +0 -1
  1082. package/build/_next/static/chunks/app/components/badge/page-bbcffd5558aeab06.js +0 -1
  1083. package/build/_next/static/chunks/app/components/button/page-b922a8f5114b0a69.js +0 -1
  1084. package/build/_next/static/chunks/app/components/buttons/page-0a5bf7e5ac7991fb.js +0 -1
  1085. package/build/_next/static/chunks/app/components/icon/page-dac6ba29b85d924d.js +0 -1
  1086. package/build/_next/static/chunks/app/components/modal/page-4a249b6d271eea91.js +0 -1
  1087. package/build/_next/static/chunks/app/components/tabs/page-7d82e8eafd25b86e.js +0 -1
  1088. package/build/_next/static/chunks/app/layout-f74d44a2772d8d63.js +0 -1
  1089. package/build/_next/static/chunks/app/page-9efa16a51ef59461.js +0 -1
  1090. package/build/_next/static/chunks/framework-f593a28cde54158e.js +0 -1
  1091. package/build/_next/static/chunks/main-43608b6b4bb05f8f.js +0 -1
  1092. package/build/_next/static/chunks/main-app-ce2a2222e012907f.js +0 -1
  1093. package/build/_next/static/chunks/pages/_error-cc3f077a18ea1793.js +0 -1
  1094. package/build/_next/static/chunks/webpack-623f6e616651e1c0.js +0 -1
  1095. package/build/_next/static/css/14f3a3e0186fb7a8.css +0 -3
  1096. package/build/_next/static/css/168dd2b7e791cf72.css +0 -1
  1097. package/build/_next/static/css/28a41a1d7dcdbfd9.css +0 -1
  1098. package/build/_next/static/css/291602d64f1f3570.css +0 -1
  1099. package/build/_next/static/css/4c4366b3963177f0.css +0 -1
  1100. package/build/_next/static/css/5481aeac9adca710.css +0 -1
  1101. package/build/_next/static/css/73b136688c14b891.css +0 -1
  1102. package/build/_next/static/css/91c8cf755bf9ff19.css +0 -1
  1103. package/build/_next/static/css/c1b0424033f305ff.css +0 -1
  1104. package/build/_next/static/css/eea9fd9ccdd56c76.css +0 -1
  1105. package/build/components/Badge/index.js +0 -619
  1106. package/build/components/Badge/index.js.map +0 -1
  1107. package/build/components/Badge/style.css +0 -2
  1108. package/build/components/Badge/style.css.map +0 -1
  1109. package/build/components/badge.html +0 -4
  1110. package/build/components/badge.txt +0 -24
  1111. package/build/components/types/components/Badge/Badge.d.ts +0 -12
  1112. package/build/components/types/components/Badge/index.d.ts +0 -2
  1113. package/src/components/Badge/Badge.mdx +0 -52
  1114. package/src/components/Badge/Badge.tsx +0 -47
  1115. package/src/components/Badge/index.ts +0 -3
  1116. package/src/components/Badge/styles/config.scss +0 -88
  1117. package/src/components/Badge/styles/mixins.scss +0 -26
  1118. package/src/components/Badge/styles/style.scss +0 -21
  1119. package/src/components/Badge/tests/Badge.unit.test.js +0 -50
  1120. package/src/components/Link/styles/config.scss +0 -85
  1121. package/src/components/Link/tests/Link.integration.test.js +0 -393
  1122. /package/build/_next/static/{CRhIjUFtohDOfdDfzvfXM → BGy4QLZfZPwswIZT7YGE2}/_ssgManifest.js +0 -0
@@ -1,283 +1,9 @@
1
- import React, { useContext, cloneElement, useRef, useEffect, useCallback } from 'react';
2
-
3
- function _arrayLikeToArray(r, a) {
4
- (null == a || a > r.length) && (a = r.length);
5
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
6
- return n;
7
- }
8
- function _arrayWithHoles(r) {
9
- if (Array.isArray(r)) return r;
10
- }
11
- function _classCallCheck(a, n) {
12
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
13
- }
14
- function _defineProperties(e, r) {
15
- for (var t = 0; t < r.length; t++) {
16
- var o = r[t];
17
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
18
- }
19
- }
20
- function _createClass(e, r, t) {
21
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
22
- writable: false
23
- }), e;
24
- }
25
- function _defineProperty(e, r, t) {
26
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
27
- value: t,
28
- enumerable: true,
29
- configurable: true,
30
- writable: true
31
- }) : e[r] = t, e;
32
- }
33
- function _iterableToArrayLimit(r, l) {
34
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
35
- if (null != t) {
36
- var e,
37
- n,
38
- i,
39
- u,
40
- a = [],
41
- f = true,
42
- o = false;
43
- try {
44
- if (i = (t = t.call(r)).next, 0 === l) {
45
- if (Object(t) !== t) return;
46
- f = !1;
47
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
48
- } catch (r) {
49
- o = true, n = r;
50
- } finally {
51
- try {
52
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
53
- } finally {
54
- if (o) throw n;
55
- }
56
- }
57
- return a;
58
- }
59
- }
60
- function _nonIterableRest() {
61
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
62
- }
63
- function ownKeys(e, r) {
64
- var t = Object.keys(e);
65
- if (Object.getOwnPropertySymbols) {
66
- var o = Object.getOwnPropertySymbols(e);
67
- r && (o = o.filter(function (r) {
68
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
69
- })), t.push.apply(t, o);
70
- }
71
- return t;
72
- }
73
- function _objectSpread2(e) {
74
- for (var r = 1; r < arguments.length; r++) {
75
- var t = null != arguments[r] ? arguments[r] : {};
76
- r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
77
- _defineProperty(e, r, t[r]);
78
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
79
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
80
- });
81
- }
82
- return e;
83
- }
84
- function _slicedToArray(r, e) {
85
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
86
- }
87
- function _toPrimitive(t, r) {
88
- if ("object" != typeof t || !t) return t;
89
- var e = t[Symbol.toPrimitive];
90
- if (void 0 !== e) {
91
- var i = e.call(t, r);
92
- if ("object" != typeof i) return i;
93
- throw new TypeError("@@toPrimitive must return a primitive value.");
94
- }
95
- return ("string" === r ? String : Number)(t);
96
- }
97
- function _toPropertyKey(t) {
98
- var i = _toPrimitive(t, "string");
99
- return "symbol" == typeof i ? i : i + "";
100
- }
101
- function _unsupportedIterableToArray(r, a) {
102
- if (r) {
103
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
104
- var t = {}.toString.call(r).slice(8, -1);
105
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
106
- }
107
- }
108
-
109
- /******************************************************************************
110
- Copyright (c) Microsoft Corporation.
111
-
112
- Permission to use, copy, modify, and/or distribute this software for any
113
- purpose with or without fee is hereby granted.
114
-
115
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
116
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
117
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
118
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
119
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
120
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
121
- PERFORMANCE OF THIS SOFTWARE.
122
- ***************************************************************************** */
123
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
124
-
125
-
126
- function __rest(s, e) {
127
- var t = {};
128
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
129
- t[p] = s[p];
130
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
131
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
132
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
133
- t[p[i]] = s[p[i]];
134
- }
135
- return t;
136
- }
137
-
138
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
139
- var e = new Error(message);
140
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
141
- };
142
-
143
- function getDefaultExportFromCjs (x) {
144
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
145
- }
146
-
147
- var classnames = {exports: {}};
148
-
1
+ import e,{createContext as t,useRef as n,useEffect as i,useCallback as r,useState as o,useContext as a,cloneElement as s,forwardRef as l,createElement as c,useId as u,useMemo as d}from"react";function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,w(i.key),i)}}function m(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||_(e,t)||function(){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 x(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){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 w(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function N(e){return N="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},N(e)}function _(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function S(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var j,E={exports:{}};
149
2
  /*!
150
3
  Copyright (c) 2018 Jed Watson.
151
4
  Licensed under the MIT License (MIT), see
152
5
  http://jedwatson.github.io/classnames
153
- */
154
-
155
- var hasRequiredClassnames;
156
-
157
- function requireClassnames () {
158
- if (hasRequiredClassnames) return classnames.exports;
159
- hasRequiredClassnames = 1;
160
- (function (module) {
161
- /* global define */
162
-
163
- (function () {
164
-
165
- var hasOwn = {}.hasOwnProperty;
166
-
167
- function classNames () {
168
- var classes = '';
169
-
170
- for (var i = 0; i < arguments.length; i++) {
171
- var arg = arguments[i];
172
- if (arg) {
173
- classes = appendClass(classes, parseValue(arg));
174
- }
175
- }
176
-
177
- return classes;
178
- }
179
-
180
- function parseValue (arg) {
181
- if (typeof arg === 'string' || typeof arg === 'number') {
182
- return arg;
183
- }
184
-
185
- if (typeof arg !== 'object') {
186
- return '';
187
- }
188
-
189
- if (Array.isArray(arg)) {
190
- return classNames.apply(null, arg);
191
- }
192
-
193
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
194
- return arg.toString();
195
- }
196
-
197
- var classes = '';
198
-
199
- for (var key in arg) {
200
- if (hasOwn.call(arg, key) && arg[key]) {
201
- classes = appendClass(classes, key);
202
- }
203
- }
204
-
205
- return classes;
206
- }
207
-
208
- function appendClass (value, newClass) {
209
- if (!newClass) {
210
- return value;
211
- }
212
-
213
- if (value) {
214
- return value + ' ' + newClass;
215
- }
216
-
217
- return value + newClass;
218
- }
219
-
220
- if (module.exports) {
221
- classNames.default = classNames;
222
- module.exports = classNames;
223
- } else {
224
- window.classNames = classNames;
225
- }
226
- }());
227
- } (classnames));
228
- return classnames.exports;
229
- }
230
-
231
- var classnamesExports = requireClassnames();
232
- var cx = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
233
-
234
- var jsxRuntime = {exports: {}};
235
-
236
- var reactJsxRuntime_production = {};
237
-
238
- /**
239
- * @license React
240
- * react-jsx-runtime.production.js
241
- *
242
- * Copyright (c) Meta Platforms, Inc. and affiliates.
243
- *
244
- * This source code is licensed under the MIT license found in the
245
- * LICENSE file in the root directory of this source tree.
246
- */
247
-
248
- var hasRequiredReactJsxRuntime_production;
249
-
250
- function requireReactJsxRuntime_production () {
251
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
252
- hasRequiredReactJsxRuntime_production = 1;
253
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
254
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
255
- function jsxProd(type, config, maybeKey) {
256
- var key = null;
257
- void 0 !== maybeKey && (key = "" + maybeKey);
258
- void 0 !== config.key && (key = "" + config.key);
259
- if ("key" in config) {
260
- maybeKey = {};
261
- for (var propName in config)
262
- "key" !== propName && (maybeKey[propName] = config[propName]);
263
- } else maybeKey = config;
264
- config = maybeKey.ref;
265
- return {
266
- $$typeof: REACT_ELEMENT_TYPE,
267
- type: type,
268
- key: key,
269
- ref: void 0 !== config ? config : null,
270
- props: maybeKey
271
- };
272
- }
273
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
274
- reactJsxRuntime_production.jsx = jsxProd;
275
- reactJsxRuntime_production.jsxs = jsxProd;
276
- return reactJsxRuntime_production;
277
- }
278
-
279
- var reactJsxRuntime_development = {};
280
-
6
+ */var O,A=k((j||(j=1,O=E,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,n(r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var o in n)e.call(n,o)&&n[o]&&(r=i(r,o));return r}function i(e,t){return t?e?e+" "+t:e+t:e}O.exports?(t.default=t,O.exports=t):window.classNames=t}()),E.exports)),C={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]},T=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{direction:"horizontal"};p(this,e),this.elems=t,this.config=n,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)},[{key:"init",value:function(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}},{key:"destroy",value:function(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}},{key:"update",value:function(e){this.elems=e}},{key:"onKeydown",value:function(e){var t=this.elems.indexOf(document.activeElement);(C.ARROWUP.includes(e.key)||C.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(C.ARROWLEFT.includes(e.key)||C.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((C.ARROWDOWN.includes(e.key)||C.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(C.ARROWUP.includes(e.key)||C.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),C.TAB.includes(e.key)&&this.destroy())}}])}(),D={activeClass:"is-active",settingsAttr:"data-toggle"},L=function(){function e(t,n){return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},D),n),this.settings=[],this.targets=[],this.handleClick=this.handleClick.bind(this),this.element.ODS_Toggle=this,this.init(),this}return m(e,[{key:"doToggle",value:function(e){var t=e.dispatchEvent,n=void 0===t||t,i=e.element,r=e.attribute,o=e.value,a=e.action,s=Object.assign({},e),l={trigger:this.element,element:i},c=r,u=i,d=o;"icon"===c&&(c="xlink:href",u=i.querySelector("use")),"text"===c&&(u=i.querySelector("[data-toggle-text-target]")||i),void 0===d&&(d=!1);var h=I({element:u,attribute:c,action:a,value:d,dispatchEvent:n,eventDetail:l});return null!==h&&(s.value=h),s}},{key:"init",value:function(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.element.addEventListener("click",this.handleClick),this.targets}},{key:"handleClick",value:function(){var e=this;this.targets=this.targets.map(function(t){return e.doToggle(t)}),this.element.dispatchEvent(new CustomEvent("toggleTrigger",{bubbles:!0}))}},{key:"destroy",value:function(){this.element.removeEventListener("click",this.handleClick),this.settings=[],this.targets=[]}},{key:"update",value:function(){this.removeNonExistentTargets(),this.addNewTargets()}},{key:"parseSettings",value:function(){var e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls"),n=[];try{e&&(n=JSON.parse(e))}catch(e){console.warn("Invalid JSON in data-toggle attribute",e)}if(t){var i=this.element.getAttribute("aria-expanded");n=[].concat(x(i?[{target:"self",attribute:"aria-expanded"}]:[]),[{target:t.split(" ").map(function(e){return"#".concat(e)}).join(","),attribute:"hidden"}],x(Array.isArray(n)?n:[]))}return n}},{key:"setupTargets",value:function(){var t=this.element;return this.settings.reduce(function(n,i){return i&&i.target?[].concat(x(n),x(i.target.split(",").reduce(function(n,r){return[].concat(x(n),x(e.getTargetElementsFromString({target:r,trigger:t}).map(function(e){return Object.assign(Object.assign({},i),{element:e})})))},[]))):n},[])}},{key:"removeNonExistentTargets",value:function(){this.targets=this.targets.filter(function(e){return document.contains(e.element)})}},{key:"addNewTargets",value:function(){var e=this,t=this.setupTargets().filter(function(t){return!e.targets.find(function(e){return e.element===t.element&&e.action===t.action})});this.targets=[].concat(x(this.targets),x(t))}}],[{key:"getTargetElementsFromString",value:function(e){var t=e.target,n=e.trigger,i=t.trim();return"self"===i?[n]:"parent"===i?[n.parentNode]:"previous"===i?[n.previousElementSibling]:"next"===i?[n.nextElementSibling]:"string"==typeof i?Array.from(document.querySelectorAll(i)):[]}},{key:"getInstance",value:function(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}])}();function I(e){var t=e.element,n=e.attribute,i=e.action,r=e.value,o=e.dispatchEvent,a=void 0===o||o,s=e.eventDetail,l=null;if(!(t&&t instanceof Element))return l;if("focus"===i&&setTimeout(function(){return t.focus()},20),"click"===i&&t.click(),"class"===n&&"string"==typeof r&&(t.classList.toggle(r),l=r),"text"===n){var c=t.textContent;t.textContent=(null==r?void 0:r.toString())||"",l=c}return"class"!==n&&"text"!==n&&void 0===i&&(l=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):r?t.setAttribute(n,String(r)):t.setAttribute(n,String(!("true"===l)))),a&&t.dispatchEvent(new CustomEvent("toggle",{detail:s,bubbles:!0})),l}var P={buttonSelector:"[data-accordion-toggle]"},R=function(){return m(function e(t,n){return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},P),n),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this},[{key:"onFocus",value:function(e){this.rovingTabindex.isActive||this.rovingTabindex.init();var t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}},{key:"init",value:function(){var e=this;this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new T(this.buttons,{direction:"vertical"}),this.buttons.forEach(function(t){t.addEventListener("focus",e.onFocus),t.getAttribute("data-toggle")||t.addEventListener("click",e.onClick)})}},{key:"onClick",value:function(e){var t=e.currentTarget,n=this.element.querySelector("#".concat(t.getAttribute("aria-controls")));I({element:t,attribute:"aria-expanded"}),I({element:n,attribute:"hidden"})}},{key:"destroy",value:function(){var e=this;this.rovingTabindex.destroy(),this.buttons.forEach(function(t){t.removeEventListener("focus",e.onFocus),t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}}])}(),M=t(null),z=0;function F(e){return"id".concat("","-").concat(z+=1)}var B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n(null),a=n(t);i(function(){a.current=null!=t?t:{}},[t]);var s=r(function(t){var n,i,r=a.current;t&&(null===o.current?o.current=new e(t,r):null===(i=(n=o.current).update)||void 0===i||i.call(n,r))},[e]);return i(function(){return function(){var e,t;o.current&&(null===(t=(e=o.current).destroy)||void 0===t||t.call(e),o.current=null)}},[]),[s,o]},U={current:0};var V,H={exports:{}},W={};var q,$,G={};
281
7
  /**
282
8
  * @license React
283
9
  * react-jsx-runtime.development.js
@@ -286,3393 +12,26 @@ var reactJsxRuntime_development = {};
286
12
  *
287
13
  * This source code is licensed under the MIT license found in the
288
14
  * LICENSE file in the root directory of this source tree.
289
- */
290
-
291
- var hasRequiredReactJsxRuntime_development;
292
-
293
- function requireReactJsxRuntime_development () {
294
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
295
- hasRequiredReactJsxRuntime_development = 1;
296
- "production" !== process.env.NODE_ENV &&
297
- (function () {
298
- function getComponentNameFromType(type) {
299
- if (null == type) return null;
300
- if ("function" === typeof type)
301
- return type.$$typeof === REACT_CLIENT_REFERENCE
302
- ? null
303
- : type.displayName || type.name || null;
304
- if ("string" === typeof type) return type;
305
- switch (type) {
306
- case REACT_FRAGMENT_TYPE:
307
- return "Fragment";
308
- case REACT_PROFILER_TYPE:
309
- return "Profiler";
310
- case REACT_STRICT_MODE_TYPE:
311
- return "StrictMode";
312
- case REACT_SUSPENSE_TYPE:
313
- return "Suspense";
314
- case REACT_SUSPENSE_LIST_TYPE:
315
- return "SuspenseList";
316
- case REACT_ACTIVITY_TYPE:
317
- return "Activity";
318
- }
319
- if ("object" === typeof type)
320
- switch (
321
- ("number" === typeof type.tag &&
322
- console.error(
323
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
324
- ),
325
- type.$$typeof)
326
- ) {
327
- case REACT_PORTAL_TYPE:
328
- return "Portal";
329
- case REACT_CONTEXT_TYPE:
330
- return (type.displayName || "Context") + ".Provider";
331
- case REACT_CONSUMER_TYPE:
332
- return (type._context.displayName || "Context") + ".Consumer";
333
- case REACT_FORWARD_REF_TYPE:
334
- var innerType = type.render;
335
- type = type.displayName;
336
- type ||
337
- ((type = innerType.displayName || innerType.name || ""),
338
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
339
- return type;
340
- case REACT_MEMO_TYPE:
341
- return (
342
- (innerType = type.displayName || null),
343
- null !== innerType
344
- ? innerType
345
- : getComponentNameFromType(type.type) || "Memo"
346
- );
347
- case REACT_LAZY_TYPE:
348
- innerType = type._payload;
349
- type = type._init;
350
- try {
351
- return getComponentNameFromType(type(innerType));
352
- } catch (x) {}
353
- }
354
- return null;
355
- }
356
- function testStringCoercion(value) {
357
- return "" + value;
358
- }
359
- function checkKeyStringCoercion(value) {
360
- try {
361
- testStringCoercion(value);
362
- var JSCompiler_inline_result = !1;
363
- } catch (e) {
364
- JSCompiler_inline_result = true;
365
- }
366
- if (JSCompiler_inline_result) {
367
- JSCompiler_inline_result = console;
368
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
369
- var JSCompiler_inline_result$jscomp$0 =
370
- ("function" === typeof Symbol &&
371
- Symbol.toStringTag &&
372
- value[Symbol.toStringTag]) ||
373
- value.constructor.name ||
374
- "Object";
375
- JSCompiler_temp_const.call(
376
- JSCompiler_inline_result,
377
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
378
- JSCompiler_inline_result$jscomp$0
379
- );
380
- return testStringCoercion(value);
381
- }
382
- }
383
- function getTaskName(type) {
384
- if (type === REACT_FRAGMENT_TYPE) return "<>";
385
- if (
386
- "object" === typeof type &&
387
- null !== type &&
388
- type.$$typeof === REACT_LAZY_TYPE
389
- )
390
- return "<...>";
391
- try {
392
- var name = getComponentNameFromType(type);
393
- return name ? "<" + name + ">" : "<...>";
394
- } catch (x) {
395
- return "<...>";
396
- }
397
- }
398
- function getOwner() {
399
- var dispatcher = ReactSharedInternals.A;
400
- return null === dispatcher ? null : dispatcher.getOwner();
401
- }
402
- function UnknownOwner() {
403
- return Error("react-stack-top-frame");
404
- }
405
- function hasValidKey(config) {
406
- if (hasOwnProperty.call(config, "key")) {
407
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
408
- if (getter && getter.isReactWarning) return false;
409
- }
410
- return void 0 !== config.key;
411
- }
412
- function defineKeyPropWarningGetter(props, displayName) {
413
- function warnAboutAccessingKey() {
414
- specialPropKeyWarningShown ||
415
- ((specialPropKeyWarningShown = true),
416
- console.error(
417
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
418
- displayName
419
- ));
420
- }
421
- warnAboutAccessingKey.isReactWarning = true;
422
- Object.defineProperty(props, "key", {
423
- get: warnAboutAccessingKey,
424
- configurable: true
425
- });
426
- }
427
- function elementRefGetterWithDeprecationWarning() {
428
- var componentName = getComponentNameFromType(this.type);
429
- didWarnAboutElementRef[componentName] ||
430
- ((didWarnAboutElementRef[componentName] = true),
431
- console.error(
432
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
433
- ));
434
- componentName = this.props.ref;
435
- return void 0 !== componentName ? componentName : null;
436
- }
437
- function ReactElement(
438
- type,
439
- key,
440
- self,
441
- source,
442
- owner,
443
- props,
444
- debugStack,
445
- debugTask
446
- ) {
447
- self = props.ref;
448
- type = {
449
- $$typeof: REACT_ELEMENT_TYPE,
450
- type: type,
451
- key: key,
452
- props: props,
453
- _owner: owner
454
- };
455
- null !== (void 0 !== self ? self : null)
456
- ? Object.defineProperty(type, "ref", {
457
- enumerable: false,
458
- get: elementRefGetterWithDeprecationWarning
459
- })
460
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
461
- type._store = {};
462
- Object.defineProperty(type._store, "validated", {
463
- configurable: false,
464
- enumerable: false,
465
- writable: true,
466
- value: 0
467
- });
468
- Object.defineProperty(type, "_debugInfo", {
469
- configurable: false,
470
- enumerable: false,
471
- writable: true,
472
- value: null
473
- });
474
- Object.defineProperty(type, "_debugStack", {
475
- configurable: false,
476
- enumerable: false,
477
- writable: true,
478
- value: debugStack
479
- });
480
- Object.defineProperty(type, "_debugTask", {
481
- configurable: false,
482
- enumerable: false,
483
- writable: true,
484
- value: debugTask
485
- });
486
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
487
- return type;
488
- }
489
- function jsxDEVImpl(
490
- type,
491
- config,
492
- maybeKey,
493
- isStaticChildren,
494
- source,
495
- self,
496
- debugStack,
497
- debugTask
498
- ) {
499
- var children = config.children;
500
- if (void 0 !== children)
501
- if (isStaticChildren)
502
- if (isArrayImpl(children)) {
503
- for (
504
- isStaticChildren = 0;
505
- isStaticChildren < children.length;
506
- isStaticChildren++
507
- )
508
- validateChildKeys(children[isStaticChildren]);
509
- Object.freeze && Object.freeze(children);
510
- } else
511
- console.error(
512
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
513
- );
514
- else validateChildKeys(children);
515
- if (hasOwnProperty.call(config, "key")) {
516
- children = getComponentNameFromType(type);
517
- var keys = Object.keys(config).filter(function (k) {
518
- return "key" !== k;
519
- });
520
- isStaticChildren =
521
- 0 < keys.length
522
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
523
- : "{key: someKey}";
524
- didWarnAboutKeySpread[children + isStaticChildren] ||
525
- ((keys =
526
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
527
- console.error(
528
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
529
- isStaticChildren,
530
- children,
531
- keys,
532
- children
533
- ),
534
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
535
- }
536
- children = null;
537
- void 0 !== maybeKey &&
538
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
539
- hasValidKey(config) &&
540
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
541
- if ("key" in config) {
542
- maybeKey = {};
543
- for (var propName in config)
544
- "key" !== propName && (maybeKey[propName] = config[propName]);
545
- } else maybeKey = config;
546
- children &&
547
- defineKeyPropWarningGetter(
548
- maybeKey,
549
- "function" === typeof type
550
- ? type.displayName || type.name || "Unknown"
551
- : type
552
- );
553
- return ReactElement(
554
- type,
555
- children,
556
- self,
557
- source,
558
- getOwner(),
559
- maybeKey,
560
- debugStack,
561
- debugTask
562
- );
563
- }
564
- function validateChildKeys(node) {
565
- "object" === typeof node &&
566
- null !== node &&
567
- node.$$typeof === REACT_ELEMENT_TYPE &&
568
- node._store &&
569
- (node._store.validated = 1);
570
- }
571
- var React$1 = React,
572
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
573
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
574
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
575
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
576
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
577
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
578
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
579
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
580
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
581
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
582
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
583
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
584
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
585
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
586
- ReactSharedInternals =
587
- React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
588
- hasOwnProperty = Object.prototype.hasOwnProperty,
589
- isArrayImpl = Array.isArray,
590
- createTask = console.createTask
591
- ? console.createTask
592
- : function () {
593
- return null;
594
- };
595
- React$1 = {
596
- "react-stack-bottom-frame": function (callStackForError) {
597
- return callStackForError();
598
- }
599
- };
600
- var specialPropKeyWarningShown;
601
- var didWarnAboutElementRef = {};
602
- var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
603
- React$1,
604
- UnknownOwner
605
- )();
606
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
607
- var didWarnAboutKeySpread = {};
608
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
609
- reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
610
- var trackActualOwner =
611
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
612
- return jsxDEVImpl(
613
- type,
614
- config,
615
- maybeKey,
616
- false,
617
- source,
618
- self,
619
- trackActualOwner
620
- ? Error("react-stack-top-frame")
621
- : unknownOwnerDebugStack,
622
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
623
- );
624
- };
625
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
626
- var trackActualOwner =
627
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
628
- return jsxDEVImpl(
629
- type,
630
- config,
631
- maybeKey,
632
- true,
633
- source,
634
- self,
635
- trackActualOwner
636
- ? Error("react-stack-top-frame")
637
- : unknownOwnerDebugStack,
638
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
639
- );
640
- };
641
- })();
642
- return reactJsxRuntime_development;
643
- }
644
-
645
- var hasRequiredJsxRuntime;
646
-
647
- function requireJsxRuntime () {
648
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
649
- hasRequiredJsxRuntime = 1;
650
-
651
- if (process.env.NODE_ENV === 'production') {
652
- jsxRuntime.exports = requireReactJsxRuntime_production();
653
- } else {
654
- jsxRuntime.exports = requireReactJsxRuntime_development();
655
- }
656
- return jsxRuntime.exports;
657
- }
658
-
659
- var jsxRuntimeExports = requireJsxRuntime();
660
-
661
- var SpritePathContext = /*#__PURE__*/React.createContext("/sprite.svg");
662
-
663
- var CLASS_ROOT$8 = "icon";
664
- var Icon = function Icon(_a) {
665
- var className = _a.className,
666
- alt = _a.alt,
667
- color = _a.color,
668
- name = _a.name,
669
- size = _a.size,
670
- _a$spritePath = _a.spritePath,
671
- spritePath = _a$spritePath === void 0 ? "/sprite.svg" : _a$spritePath,
672
- other = __rest(_a, ["className", "alt", "color", "name", "size", "spritePath"]);
673
- var contextPath = useContext(SpritePathContext);
674
- var classes = cx(CLASS_ROOT$8, _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$8, "--").concat(size), size), "".concat(CLASS_ROOT$8, "--").concat(color), color), className);
675
- return /*#__PURE__*/jsxRuntimeExports.jsxs("svg", _objectSpread2(_objectSpread2({
676
- className: classes,
677
- "aria-hidden": alt !== undefined ? undefined : "true",
678
- role: alt !== undefined ? "img" : undefined
679
- }, other), {}, {
680
- children: [alt !== undefined && alt.length > 0 && /*#__PURE__*/jsxRuntimeExports.jsx("title", {
681
- children: alt
682
- }), /*#__PURE__*/jsxRuntimeExports.jsx("use", {
683
- xlinkHref: spritePath !== "/sprite.svg" || typeof contextPath === "undefined" ? "".concat(spritePath, "#").concat(name) : "".concat(contextPath, "#").concat(name)
684
- })]
685
- }));
686
- };
687
- Icon.displayName = "Icon";
688
-
689
- var CLASS_ROOT$7 = "buttons";
690
- var Buttons = function Buttons(_a) {
691
- var isStackedOnXs = _a.isStackedOnXs,
692
- children = _a.children,
693
- className = _a.className,
694
- other = __rest(_a, ["isStackedOnXs", "children", "className"]);
695
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2(_objectSpread2({
696
- className: cx(CLASS_ROOT$7, _defineProperty({}, "".concat(CLASS_ROOT$7, "--stack-on-xs"), isStackedOnXs), className)
697
- }, other), {}, {
698
- children: children
699
- }));
700
- };
701
- Buttons.displayName = "Buttons";
702
-
703
- var propTypes$1 = {exports: {}};
704
-
705
- var reactIs = {exports: {}};
706
-
707
- var reactIs_production_min = {};
708
-
709
- /** @license React v16.13.1
710
- * react-is.production.min.js
711
- *
712
- * Copyright (c) Facebook, Inc. and its affiliates.
713
- *
714
- * This source code is licensed under the MIT license found in the
715
- * LICENSE file in the root directory of this source tree.
716
- */
717
-
718
- var hasRequiredReactIs_production_min;
719
-
720
- function requireReactIs_production_min () {
721
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
722
- hasRequiredReactIs_production_min = 1;
723
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
724
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
725
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
726
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
727
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
728
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
729
- return reactIs_production_min;
730
- }
731
-
732
- var reactIs_development = {};
733
-
734
- /** @license React v16.13.1
735
- * react-is.development.js
736
- *
737
- * Copyright (c) Facebook, Inc. and its affiliates.
738
- *
739
- * This source code is licensed under the MIT license found in the
740
- * LICENSE file in the root directory of this source tree.
741
- */
742
-
743
- var hasRequiredReactIs_development;
744
-
745
- function requireReactIs_development () {
746
- if (hasRequiredReactIs_development) return reactIs_development;
747
- hasRequiredReactIs_development = 1;
748
-
749
-
750
-
751
- if (process.env.NODE_ENV !== "production") {
752
- (function() {
753
-
754
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
755
- // nor polyfill, then a plain number is used for performance.
756
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
757
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
758
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
759
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
760
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
761
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
762
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
763
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
764
- // (unstable) APIs that have been removed. Can we remove the symbols?
765
-
766
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
767
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
768
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
769
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
770
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
771
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
772
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
773
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
774
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
775
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
776
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
777
-
778
- function isValidElementType(type) {
779
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
780
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
781
- }
782
-
783
- function typeOf(object) {
784
- if (typeof object === 'object' && object !== null) {
785
- var $$typeof = object.$$typeof;
786
-
787
- switch ($$typeof) {
788
- case REACT_ELEMENT_TYPE:
789
- var type = object.type;
790
-
791
- switch (type) {
792
- case REACT_ASYNC_MODE_TYPE:
793
- case REACT_CONCURRENT_MODE_TYPE:
794
- case REACT_FRAGMENT_TYPE:
795
- case REACT_PROFILER_TYPE:
796
- case REACT_STRICT_MODE_TYPE:
797
- case REACT_SUSPENSE_TYPE:
798
- return type;
799
-
800
- default:
801
- var $$typeofType = type && type.$$typeof;
802
-
803
- switch ($$typeofType) {
804
- case REACT_CONTEXT_TYPE:
805
- case REACT_FORWARD_REF_TYPE:
806
- case REACT_LAZY_TYPE:
807
- case REACT_MEMO_TYPE:
808
- case REACT_PROVIDER_TYPE:
809
- return $$typeofType;
810
-
811
- default:
812
- return $$typeof;
813
- }
814
-
815
- }
816
-
817
- case REACT_PORTAL_TYPE:
818
- return $$typeof;
819
- }
820
- }
821
-
822
- return undefined;
823
- } // AsyncMode is deprecated along with isAsyncMode
824
-
825
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
826
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
827
- var ContextConsumer = REACT_CONTEXT_TYPE;
828
- var ContextProvider = REACT_PROVIDER_TYPE;
829
- var Element = REACT_ELEMENT_TYPE;
830
- var ForwardRef = REACT_FORWARD_REF_TYPE;
831
- var Fragment = REACT_FRAGMENT_TYPE;
832
- var Lazy = REACT_LAZY_TYPE;
833
- var Memo = REACT_MEMO_TYPE;
834
- var Portal = REACT_PORTAL_TYPE;
835
- var Profiler = REACT_PROFILER_TYPE;
836
- var StrictMode = REACT_STRICT_MODE_TYPE;
837
- var Suspense = REACT_SUSPENSE_TYPE;
838
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
839
-
840
- function isAsyncMode(object) {
841
- {
842
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
843
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
844
-
845
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
846
- }
847
- }
848
-
849
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
850
- }
851
- function isConcurrentMode(object) {
852
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
853
- }
854
- function isContextConsumer(object) {
855
- return typeOf(object) === REACT_CONTEXT_TYPE;
856
- }
857
- function isContextProvider(object) {
858
- return typeOf(object) === REACT_PROVIDER_TYPE;
859
- }
860
- function isElement(object) {
861
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
862
- }
863
- function isForwardRef(object) {
864
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
865
- }
866
- function isFragment(object) {
867
- return typeOf(object) === REACT_FRAGMENT_TYPE;
868
- }
869
- function isLazy(object) {
870
- return typeOf(object) === REACT_LAZY_TYPE;
871
- }
872
- function isMemo(object) {
873
- return typeOf(object) === REACT_MEMO_TYPE;
874
- }
875
- function isPortal(object) {
876
- return typeOf(object) === REACT_PORTAL_TYPE;
877
- }
878
- function isProfiler(object) {
879
- return typeOf(object) === REACT_PROFILER_TYPE;
880
- }
881
- function isStrictMode(object) {
882
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
883
- }
884
- function isSuspense(object) {
885
- return typeOf(object) === REACT_SUSPENSE_TYPE;
886
- }
887
-
888
- reactIs_development.AsyncMode = AsyncMode;
889
- reactIs_development.ConcurrentMode = ConcurrentMode;
890
- reactIs_development.ContextConsumer = ContextConsumer;
891
- reactIs_development.ContextProvider = ContextProvider;
892
- reactIs_development.Element = Element;
893
- reactIs_development.ForwardRef = ForwardRef;
894
- reactIs_development.Fragment = Fragment;
895
- reactIs_development.Lazy = Lazy;
896
- reactIs_development.Memo = Memo;
897
- reactIs_development.Portal = Portal;
898
- reactIs_development.Profiler = Profiler;
899
- reactIs_development.StrictMode = StrictMode;
900
- reactIs_development.Suspense = Suspense;
901
- reactIs_development.isAsyncMode = isAsyncMode;
902
- reactIs_development.isConcurrentMode = isConcurrentMode;
903
- reactIs_development.isContextConsumer = isContextConsumer;
904
- reactIs_development.isContextProvider = isContextProvider;
905
- reactIs_development.isElement = isElement;
906
- reactIs_development.isForwardRef = isForwardRef;
907
- reactIs_development.isFragment = isFragment;
908
- reactIs_development.isLazy = isLazy;
909
- reactIs_development.isMemo = isMemo;
910
- reactIs_development.isPortal = isPortal;
911
- reactIs_development.isProfiler = isProfiler;
912
- reactIs_development.isStrictMode = isStrictMode;
913
- reactIs_development.isSuspense = isSuspense;
914
- reactIs_development.isValidElementType = isValidElementType;
915
- reactIs_development.typeOf = typeOf;
916
- })();
917
- }
918
- return reactIs_development;
919
- }
920
-
921
- var hasRequiredReactIs;
922
-
923
- function requireReactIs () {
924
- if (hasRequiredReactIs) return reactIs.exports;
925
- hasRequiredReactIs = 1;
926
-
927
- if (process.env.NODE_ENV === 'production') {
928
- reactIs.exports = requireReactIs_production_min();
929
- } else {
930
- reactIs.exports = requireReactIs_development();
931
- }
932
- return reactIs.exports;
933
- }
934
-
935
- /*
936
- object-assign
937
- (c) Sindre Sorhus
938
- @license MIT
939
- */
940
-
941
- var objectAssign;
942
- var hasRequiredObjectAssign;
943
-
944
- function requireObjectAssign () {
945
- if (hasRequiredObjectAssign) return objectAssign;
946
- hasRequiredObjectAssign = 1;
947
- /* eslint-disable no-unused-vars */
948
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
949
- var hasOwnProperty = Object.prototype.hasOwnProperty;
950
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
951
-
952
- function toObject(val) {
953
- if (val === null || val === undefined) {
954
- throw new TypeError('Object.assign cannot be called with null or undefined');
955
- }
956
-
957
- return Object(val);
958
- }
959
-
960
- function shouldUseNative() {
961
- try {
962
- if (!Object.assign) {
963
- return false;
964
- }
965
-
966
- // Detect buggy property enumeration order in older V8 versions.
967
-
968
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
969
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
970
- test1[5] = 'de';
971
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
972
- return false;
973
- }
974
-
975
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
976
- var test2 = {};
977
- for (var i = 0; i < 10; i++) {
978
- test2['_' + String.fromCharCode(i)] = i;
979
- }
980
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
981
- return test2[n];
982
- });
983
- if (order2.join('') !== '0123456789') {
984
- return false;
985
- }
986
-
987
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
988
- var test3 = {};
989
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
990
- test3[letter] = letter;
991
- });
992
- if (Object.keys(Object.assign({}, test3)).join('') !==
993
- 'abcdefghijklmnopqrst') {
994
- return false;
995
- }
996
-
997
- return true;
998
- } catch (err) {
999
- // We don't expect any of the above to throw, but better to be safe.
1000
- return false;
1001
- }
1002
- }
1003
-
1004
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
1005
- var from;
1006
- var to = toObject(target);
1007
- var symbols;
1008
-
1009
- for (var s = 1; s < arguments.length; s++) {
1010
- from = Object(arguments[s]);
1011
-
1012
- for (var key in from) {
1013
- if (hasOwnProperty.call(from, key)) {
1014
- to[key] = from[key];
1015
- }
1016
- }
1017
-
1018
- if (getOwnPropertySymbols) {
1019
- symbols = getOwnPropertySymbols(from);
1020
- for (var i = 0; i < symbols.length; i++) {
1021
- if (propIsEnumerable.call(from, symbols[i])) {
1022
- to[symbols[i]] = from[symbols[i]];
1023
- }
1024
- }
1025
- }
1026
- }
1027
-
1028
- return to;
1029
- };
1030
- return objectAssign;
1031
- }
1032
-
1033
- /**
1034
- * Copyright (c) 2013-present, Facebook, Inc.
1035
- *
1036
- * This source code is licensed under the MIT license found in the
1037
- * LICENSE file in the root directory of this source tree.
1038
- */
1039
-
1040
- var ReactPropTypesSecret_1;
1041
- var hasRequiredReactPropTypesSecret;
1042
-
1043
- function requireReactPropTypesSecret () {
1044
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
1045
- hasRequiredReactPropTypesSecret = 1;
1046
-
1047
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1048
-
1049
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
1050
- return ReactPropTypesSecret_1;
1051
- }
1052
-
1053
- var has;
1054
- var hasRequiredHas;
1055
-
1056
- function requireHas () {
1057
- if (hasRequiredHas) return has;
1058
- hasRequiredHas = 1;
1059
- has = Function.call.bind(Object.prototype.hasOwnProperty);
1060
- return has;
1061
- }
1062
-
1063
- /**
1064
- * Copyright (c) 2013-present, Facebook, Inc.
1065
- *
1066
- * This source code is licensed under the MIT license found in the
1067
- * LICENSE file in the root directory of this source tree.
1068
- */
1069
-
1070
- var checkPropTypes_1;
1071
- var hasRequiredCheckPropTypes;
1072
-
1073
- function requireCheckPropTypes () {
1074
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
1075
- hasRequiredCheckPropTypes = 1;
1076
-
1077
- var printWarning = function() {};
1078
-
1079
- if (process.env.NODE_ENV !== 'production') {
1080
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1081
- var loggedTypeFailures = {};
1082
- var has = requireHas();
1083
-
1084
- printWarning = function(text) {
1085
- var message = 'Warning: ' + text;
1086
- if (typeof console !== 'undefined') {
1087
- console.error(message);
1088
- }
1089
- try {
1090
- // --- Welcome to debugging React ---
1091
- // This error was thrown as a convenience so that you can use this stack
1092
- // to find the callsite that caused this warning to fire.
1093
- throw new Error(message);
1094
- } catch (x) { /**/ }
1095
- };
1096
- }
1097
-
1098
- /**
1099
- * Assert that the values match with the type specs.
1100
- * Error messages are memorized and will only be shown once.
1101
- *
1102
- * @param {object} typeSpecs Map of name to a ReactPropType
1103
- * @param {object} values Runtime values that need to be type-checked
1104
- * @param {string} location e.g. "prop", "context", "child context"
1105
- * @param {string} componentName Name of the component for error messages.
1106
- * @param {?Function} getStack Returns the component stack.
1107
- * @private
1108
- */
1109
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1110
- if (process.env.NODE_ENV !== 'production') {
1111
- for (var typeSpecName in typeSpecs) {
1112
- if (has(typeSpecs, typeSpecName)) {
1113
- var error;
1114
- // Prop type validation may throw. In case they do, we don't want to
1115
- // fail the render phase where it didn't fail before. So we log it.
1116
- // After these have been cleaned up, we'll let them throw.
1117
- try {
1118
- // This is intentionally an invariant that gets caught. It's the same
1119
- // behavior as without this statement except with a better message.
1120
- if (typeof typeSpecs[typeSpecName] !== 'function') {
1121
- var err = Error(
1122
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1123
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1124
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1125
- );
1126
- err.name = 'Invariant Violation';
1127
- throw err;
1128
- }
1129
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1130
- } catch (ex) {
1131
- error = ex;
1132
- }
1133
- if (error && !(error instanceof Error)) {
1134
- printWarning(
1135
- (componentName || 'React class') + ': type specification of ' +
1136
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1137
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1138
- 'You may have forgotten to pass an argument to the type checker ' +
1139
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1140
- 'shape all require an argument).'
1141
- );
1142
- }
1143
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1144
- // Only monitor this failure once because there tends to be a lot of the
1145
- // same error.
1146
- loggedTypeFailures[error.message] = true;
1147
-
1148
- var stack = getStack ? getStack() : '';
1149
-
1150
- printWarning(
1151
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1152
- );
1153
- }
1154
- }
1155
- }
1156
- }
1157
- }
1158
-
1159
- /**
1160
- * Resets warning cache when testing.
1161
- *
1162
- * @private
1163
- */
1164
- checkPropTypes.resetWarningCache = function() {
1165
- if (process.env.NODE_ENV !== 'production') {
1166
- loggedTypeFailures = {};
1167
- }
1168
- };
1169
-
1170
- checkPropTypes_1 = checkPropTypes;
1171
- return checkPropTypes_1;
1172
- }
1173
-
1174
- /**
1175
- * Copyright (c) 2013-present, Facebook, Inc.
1176
- *
1177
- * This source code is licensed under the MIT license found in the
1178
- * LICENSE file in the root directory of this source tree.
1179
- */
1180
-
1181
- var factoryWithTypeCheckers;
1182
- var hasRequiredFactoryWithTypeCheckers;
1183
-
1184
- function requireFactoryWithTypeCheckers () {
1185
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
1186
- hasRequiredFactoryWithTypeCheckers = 1;
1187
-
1188
- var ReactIs = requireReactIs();
1189
- var assign = requireObjectAssign();
1190
-
1191
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1192
- var has = requireHas();
1193
- var checkPropTypes = requireCheckPropTypes();
1194
-
1195
- var printWarning = function() {};
1196
-
1197
- if (process.env.NODE_ENV !== 'production') {
1198
- printWarning = function(text) {
1199
- var message = 'Warning: ' + text;
1200
- if (typeof console !== 'undefined') {
1201
- console.error(message);
1202
- }
1203
- try {
1204
- // --- Welcome to debugging React ---
1205
- // This error was thrown as a convenience so that you can use this stack
1206
- // to find the callsite that caused this warning to fire.
1207
- throw new Error(message);
1208
- } catch (x) {}
1209
- };
1210
- }
1211
-
1212
- function emptyFunctionThatReturnsNull() {
1213
- return null;
1214
- }
1215
-
1216
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1217
- /* global Symbol */
1218
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1219
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1220
-
1221
- /**
1222
- * Returns the iterator method function contained on the iterable object.
1223
- *
1224
- * Be sure to invoke the function with the iterable as context:
1225
- *
1226
- * var iteratorFn = getIteratorFn(myIterable);
1227
- * if (iteratorFn) {
1228
- * var iterator = iteratorFn.call(myIterable);
1229
- * ...
1230
- * }
1231
- *
1232
- * @param {?object} maybeIterable
1233
- * @return {?function}
1234
- */
1235
- function getIteratorFn(maybeIterable) {
1236
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1237
- if (typeof iteratorFn === 'function') {
1238
- return iteratorFn;
1239
- }
1240
- }
1241
-
1242
- /**
1243
- * Collection of methods that allow declaration and validation of props that are
1244
- * supplied to React components. Example usage:
1245
- *
1246
- * var Props = require('ReactPropTypes');
1247
- * var MyArticle = React.createClass({
1248
- * propTypes: {
1249
- * // An optional string prop named "description".
1250
- * description: Props.string,
1251
- *
1252
- * // A required enum prop named "category".
1253
- * category: Props.oneOf(['News','Photos']).isRequired,
1254
- *
1255
- * // A prop named "dialog" that requires an instance of Dialog.
1256
- * dialog: Props.instanceOf(Dialog).isRequired
1257
- * },
1258
- * render: function() { ... }
1259
- * });
1260
- *
1261
- * A more formal specification of how these methods are used:
1262
- *
1263
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1264
- * decl := ReactPropTypes.{type}(.isRequired)?
1265
- *
1266
- * Each and every declaration produces a function with the same signature. This
1267
- * allows the creation of custom validation functions. For example:
1268
- *
1269
- * var MyLink = React.createClass({
1270
- * propTypes: {
1271
- * // An optional string or URI prop named "href".
1272
- * href: function(props, propName, componentName) {
1273
- * var propValue = props[propName];
1274
- * if (propValue != null && typeof propValue !== 'string' &&
1275
- * !(propValue instanceof URI)) {
1276
- * return new Error(
1277
- * 'Expected a string or an URI for ' + propName + ' in ' +
1278
- * componentName
1279
- * );
1280
- * }
1281
- * }
1282
- * },
1283
- * render: function() {...}
1284
- * });
1285
- *
1286
- * @internal
1287
- */
1288
-
1289
- var ANONYMOUS = '<<anonymous>>';
1290
-
1291
- // Important!
1292
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1293
- var ReactPropTypes = {
1294
- array: createPrimitiveTypeChecker('array'),
1295
- bigint: createPrimitiveTypeChecker('bigint'),
1296
- bool: createPrimitiveTypeChecker('boolean'),
1297
- func: createPrimitiveTypeChecker('function'),
1298
- number: createPrimitiveTypeChecker('number'),
1299
- object: createPrimitiveTypeChecker('object'),
1300
- string: createPrimitiveTypeChecker('string'),
1301
- symbol: createPrimitiveTypeChecker('symbol'),
1302
-
1303
- any: createAnyTypeChecker(),
1304
- arrayOf: createArrayOfTypeChecker,
1305
- element: createElementTypeChecker(),
1306
- elementType: createElementTypeTypeChecker(),
1307
- instanceOf: createInstanceTypeChecker,
1308
- node: createNodeChecker(),
1309
- objectOf: createObjectOfTypeChecker,
1310
- oneOf: createEnumTypeChecker,
1311
- oneOfType: createUnionTypeChecker,
1312
- shape: createShapeTypeChecker,
1313
- exact: createStrictShapeTypeChecker,
1314
- };
1315
-
1316
- /**
1317
- * inlined Object.is polyfill to avoid requiring consumers ship their own
1318
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1319
- */
1320
- /*eslint-disable no-self-compare*/
1321
- function is(x, y) {
1322
- // SameValue algorithm
1323
- if (x === y) {
1324
- // Steps 1-5, 7-10
1325
- // Steps 6.b-6.e: +0 != -0
1326
- return x !== 0 || 1 / x === 1 / y;
1327
- } else {
1328
- // Step 6.a: NaN == NaN
1329
- return x !== x && y !== y;
1330
- }
1331
- }
1332
- /*eslint-enable no-self-compare*/
1333
-
1334
- /**
1335
- * We use an Error-like object for backward compatibility as people may call
1336
- * PropTypes directly and inspect their output. However, we don't use real
1337
- * Errors anymore. We don't inspect their stack anyway, and creating them
1338
- * is prohibitively expensive if they are created too often, such as what
1339
- * happens in oneOfType() for any type before the one that matched.
1340
- */
1341
- function PropTypeError(message, data) {
1342
- this.message = message;
1343
- this.data = data && typeof data === 'object' ? data: {};
1344
- this.stack = '';
1345
- }
1346
- // Make `instanceof Error` still work for returned errors.
1347
- PropTypeError.prototype = Error.prototype;
1348
-
1349
- function createChainableTypeChecker(validate) {
1350
- if (process.env.NODE_ENV !== 'production') {
1351
- var manualPropTypeCallCache = {};
1352
- var manualPropTypeWarningCount = 0;
1353
- }
1354
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1355
- componentName = componentName || ANONYMOUS;
1356
- propFullName = propFullName || propName;
1357
-
1358
- if (secret !== ReactPropTypesSecret) {
1359
- if (throwOnDirectAccess) {
1360
- // New behavior only for users of `prop-types` package
1361
- var err = new Error(
1362
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1363
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
1364
- 'Read more at http://fb.me/use-check-prop-types'
1365
- );
1366
- err.name = 'Invariant Violation';
1367
- throw err;
1368
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1369
- // Old behavior for people using React.PropTypes
1370
- var cacheKey = componentName + ':' + propName;
1371
- if (
1372
- !manualPropTypeCallCache[cacheKey] &&
1373
- // Avoid spamming the console because they are often not actionable except for lib authors
1374
- manualPropTypeWarningCount < 3
1375
- ) {
1376
- printWarning(
1377
- 'You are manually calling a React.PropTypes validation ' +
1378
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1379
- 'and will throw in the standalone `prop-types` package. ' +
1380
- 'You may be seeing this warning due to a third-party PropTypes ' +
1381
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1382
- );
1383
- manualPropTypeCallCache[cacheKey] = true;
1384
- manualPropTypeWarningCount++;
1385
- }
1386
- }
1387
- }
1388
- if (props[propName] == null) {
1389
- if (isRequired) {
1390
- if (props[propName] === null) {
1391
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1392
- }
1393
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1394
- }
1395
- return null;
1396
- } else {
1397
- return validate(props, propName, componentName, location, propFullName);
1398
- }
1399
- }
1400
-
1401
- var chainedCheckType = checkType.bind(null, false);
1402
- chainedCheckType.isRequired = checkType.bind(null, true);
1403
-
1404
- return chainedCheckType;
1405
- }
1406
-
1407
- function createPrimitiveTypeChecker(expectedType) {
1408
- function validate(props, propName, componentName, location, propFullName, secret) {
1409
- var propValue = props[propName];
1410
- var propType = getPropType(propValue);
1411
- if (propType !== expectedType) {
1412
- // `propValue` being instance of, say, date/regexp, pass the 'object'
1413
- // check, but we can offer a more precise error message here rather than
1414
- // 'of type `object`'.
1415
- var preciseType = getPreciseType(propValue);
1416
-
1417
- return new PropTypeError(
1418
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1419
- {expectedType: expectedType}
1420
- );
1421
- }
1422
- return null;
1423
- }
1424
- return createChainableTypeChecker(validate);
1425
- }
1426
-
1427
- function createAnyTypeChecker() {
1428
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1429
- }
1430
-
1431
- function createArrayOfTypeChecker(typeChecker) {
1432
- function validate(props, propName, componentName, location, propFullName) {
1433
- if (typeof typeChecker !== 'function') {
1434
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1435
- }
1436
- var propValue = props[propName];
1437
- if (!Array.isArray(propValue)) {
1438
- var propType = getPropType(propValue);
1439
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1440
- }
1441
- for (var i = 0; i < propValue.length; i++) {
1442
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1443
- if (error instanceof Error) {
1444
- return error;
1445
- }
1446
- }
1447
- return null;
1448
- }
1449
- return createChainableTypeChecker(validate);
1450
- }
1451
-
1452
- function createElementTypeChecker() {
1453
- function validate(props, propName, componentName, location, propFullName) {
1454
- var propValue = props[propName];
1455
- if (!isValidElement(propValue)) {
1456
- var propType = getPropType(propValue);
1457
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1458
- }
1459
- return null;
1460
- }
1461
- return createChainableTypeChecker(validate);
1462
- }
1463
-
1464
- function createElementTypeTypeChecker() {
1465
- function validate(props, propName, componentName, location, propFullName) {
1466
- var propValue = props[propName];
1467
- if (!ReactIs.isValidElementType(propValue)) {
1468
- var propType = getPropType(propValue);
1469
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1470
- }
1471
- return null;
1472
- }
1473
- return createChainableTypeChecker(validate);
1474
- }
1475
-
1476
- function createInstanceTypeChecker(expectedClass) {
1477
- function validate(props, propName, componentName, location, propFullName) {
1478
- if (!(props[propName] instanceof expectedClass)) {
1479
- var expectedClassName = expectedClass.name || ANONYMOUS;
1480
- var actualClassName = getClassName(props[propName]);
1481
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1482
- }
1483
- return null;
1484
- }
1485
- return createChainableTypeChecker(validate);
1486
- }
1487
-
1488
- function createEnumTypeChecker(expectedValues) {
1489
- if (!Array.isArray(expectedValues)) {
1490
- if (process.env.NODE_ENV !== 'production') {
1491
- if (arguments.length > 1) {
1492
- printWarning(
1493
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1494
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1495
- );
1496
- } else {
1497
- printWarning('Invalid argument supplied to oneOf, expected an array.');
1498
- }
1499
- }
1500
- return emptyFunctionThatReturnsNull;
1501
- }
1502
-
1503
- function validate(props, propName, componentName, location, propFullName) {
1504
- var propValue = props[propName];
1505
- for (var i = 0; i < expectedValues.length; i++) {
1506
- if (is(propValue, expectedValues[i])) {
1507
- return null;
1508
- }
1509
- }
1510
-
1511
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1512
- var type = getPreciseType(value);
1513
- if (type === 'symbol') {
1514
- return String(value);
1515
- }
1516
- return value;
1517
- });
1518
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1519
- }
1520
- return createChainableTypeChecker(validate);
1521
- }
1522
-
1523
- function createObjectOfTypeChecker(typeChecker) {
1524
- function validate(props, propName, componentName, location, propFullName) {
1525
- if (typeof typeChecker !== 'function') {
1526
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1527
- }
1528
- var propValue = props[propName];
1529
- var propType = getPropType(propValue);
1530
- if (propType !== 'object') {
1531
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1532
- }
1533
- for (var key in propValue) {
1534
- if (has(propValue, key)) {
1535
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1536
- if (error instanceof Error) {
1537
- return error;
1538
- }
1539
- }
1540
- }
1541
- return null;
1542
- }
1543
- return createChainableTypeChecker(validate);
1544
- }
1545
-
1546
- function createUnionTypeChecker(arrayOfTypeCheckers) {
1547
- if (!Array.isArray(arrayOfTypeCheckers)) {
1548
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1549
- return emptyFunctionThatReturnsNull;
1550
- }
1551
-
1552
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1553
- var checker = arrayOfTypeCheckers[i];
1554
- if (typeof checker !== 'function') {
1555
- printWarning(
1556
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1557
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1558
- );
1559
- return emptyFunctionThatReturnsNull;
1560
- }
1561
- }
1562
-
1563
- function validate(props, propName, componentName, location, propFullName) {
1564
- var expectedTypes = [];
1565
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1566
- var checker = arrayOfTypeCheckers[i];
1567
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1568
- if (checkerResult == null) {
1569
- return null;
1570
- }
1571
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1572
- expectedTypes.push(checkerResult.data.expectedType);
1573
- }
1574
- }
1575
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1576
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1577
- }
1578
- return createChainableTypeChecker(validate);
1579
- }
1580
-
1581
- function createNodeChecker() {
1582
- function validate(props, propName, componentName, location, propFullName) {
1583
- if (!isNode(props[propName])) {
1584
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1585
- }
1586
- return null;
1587
- }
1588
- return createChainableTypeChecker(validate);
1589
- }
1590
-
1591
- function invalidValidatorError(componentName, location, propFullName, key, type) {
1592
- return new PropTypeError(
1593
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1594
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1595
- );
1596
- }
1597
-
1598
- function createShapeTypeChecker(shapeTypes) {
1599
- function validate(props, propName, componentName, location, propFullName) {
1600
- var propValue = props[propName];
1601
- var propType = getPropType(propValue);
1602
- if (propType !== 'object') {
1603
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1604
- }
1605
- for (var key in shapeTypes) {
1606
- var checker = shapeTypes[key];
1607
- if (typeof checker !== 'function') {
1608
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1609
- }
1610
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1611
- if (error) {
1612
- return error;
1613
- }
1614
- }
1615
- return null;
1616
- }
1617
- return createChainableTypeChecker(validate);
1618
- }
1619
-
1620
- function createStrictShapeTypeChecker(shapeTypes) {
1621
- function validate(props, propName, componentName, location, propFullName) {
1622
- var propValue = props[propName];
1623
- var propType = getPropType(propValue);
1624
- if (propType !== 'object') {
1625
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1626
- }
1627
- // We need to check all keys in case some are required but missing from props.
1628
- var allKeys = assign({}, props[propName], shapeTypes);
1629
- for (var key in allKeys) {
1630
- var checker = shapeTypes[key];
1631
- if (has(shapeTypes, key) && typeof checker !== 'function') {
1632
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1633
- }
1634
- if (!checker) {
1635
- return new PropTypeError(
1636
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1637
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1638
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1639
- );
1640
- }
1641
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1642
- if (error) {
1643
- return error;
1644
- }
1645
- }
1646
- return null;
1647
- }
1648
-
1649
- return createChainableTypeChecker(validate);
1650
- }
1651
-
1652
- function isNode(propValue) {
1653
- switch (typeof propValue) {
1654
- case 'number':
1655
- case 'string':
1656
- case 'undefined':
1657
- return true;
1658
- case 'boolean':
1659
- return !propValue;
1660
- case 'object':
1661
- if (Array.isArray(propValue)) {
1662
- return propValue.every(isNode);
1663
- }
1664
- if (propValue === null || isValidElement(propValue)) {
1665
- return true;
1666
- }
1667
-
1668
- var iteratorFn = getIteratorFn(propValue);
1669
- if (iteratorFn) {
1670
- var iterator = iteratorFn.call(propValue);
1671
- var step;
1672
- if (iteratorFn !== propValue.entries) {
1673
- while (!(step = iterator.next()).done) {
1674
- if (!isNode(step.value)) {
1675
- return false;
1676
- }
1677
- }
1678
- } else {
1679
- // Iterator will provide entry [k,v] tuples rather than values.
1680
- while (!(step = iterator.next()).done) {
1681
- var entry = step.value;
1682
- if (entry) {
1683
- if (!isNode(entry[1])) {
1684
- return false;
1685
- }
1686
- }
1687
- }
1688
- }
1689
- } else {
1690
- return false;
1691
- }
1692
-
1693
- return true;
1694
- default:
1695
- return false;
1696
- }
1697
- }
1698
-
1699
- function isSymbol(propType, propValue) {
1700
- // Native Symbol.
1701
- if (propType === 'symbol') {
1702
- return true;
1703
- }
1704
-
1705
- // falsy value can't be a Symbol
1706
- if (!propValue) {
1707
- return false;
1708
- }
1709
-
1710
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1711
- if (propValue['@@toStringTag'] === 'Symbol') {
1712
- return true;
1713
- }
1714
-
1715
- // Fallback for non-spec compliant Symbols which are polyfilled.
1716
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1717
- return true;
1718
- }
1719
-
1720
- return false;
1721
- }
1722
-
1723
- // Equivalent of `typeof` but with special handling for array and regexp.
1724
- function getPropType(propValue) {
1725
- var propType = typeof propValue;
1726
- if (Array.isArray(propValue)) {
1727
- return 'array';
1728
- }
1729
- if (propValue instanceof RegExp) {
1730
- // Old webkits (at least until Android 4.0) return 'function' rather than
1731
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1732
- // passes PropTypes.object.
1733
- return 'object';
1734
- }
1735
- if (isSymbol(propType, propValue)) {
1736
- return 'symbol';
1737
- }
1738
- return propType;
1739
- }
1740
-
1741
- // This handles more types than `getPropType`. Only used for error messages.
1742
- // See `createPrimitiveTypeChecker`.
1743
- function getPreciseType(propValue) {
1744
- if (typeof propValue === 'undefined' || propValue === null) {
1745
- return '' + propValue;
1746
- }
1747
- var propType = getPropType(propValue);
1748
- if (propType === 'object') {
1749
- if (propValue instanceof Date) {
1750
- return 'date';
1751
- } else if (propValue instanceof RegExp) {
1752
- return 'regexp';
1753
- }
1754
- }
1755
- return propType;
1756
- }
1757
-
1758
- // Returns a string that is postfixed to a warning about an invalid type.
1759
- // For example, "undefined" or "of type array"
1760
- function getPostfixForTypeWarning(value) {
1761
- var type = getPreciseType(value);
1762
- switch (type) {
1763
- case 'array':
1764
- case 'object':
1765
- return 'an ' + type;
1766
- case 'boolean':
1767
- case 'date':
1768
- case 'regexp':
1769
- return 'a ' + type;
1770
- default:
1771
- return type;
1772
- }
1773
- }
1774
-
1775
- // Returns class name of the object, if any.
1776
- function getClassName(propValue) {
1777
- if (!propValue.constructor || !propValue.constructor.name) {
1778
- return ANONYMOUS;
1779
- }
1780
- return propValue.constructor.name;
1781
- }
1782
-
1783
- ReactPropTypes.checkPropTypes = checkPropTypes;
1784
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1785
- ReactPropTypes.PropTypes = ReactPropTypes;
1786
-
1787
- return ReactPropTypes;
1788
- };
1789
- return factoryWithTypeCheckers;
1790
- }
1791
-
1792
- /**
1793
- * Copyright (c) 2013-present, Facebook, Inc.
1794
- *
1795
- * This source code is licensed under the MIT license found in the
1796
- * LICENSE file in the root directory of this source tree.
1797
- */
1798
-
1799
- var factoryWithThrowingShims;
1800
- var hasRequiredFactoryWithThrowingShims;
1801
-
1802
- function requireFactoryWithThrowingShims () {
1803
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1804
- hasRequiredFactoryWithThrowingShims = 1;
1805
-
1806
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1807
-
1808
- function emptyFunction() {}
1809
- function emptyFunctionWithReset() {}
1810
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1811
-
1812
- factoryWithThrowingShims = function() {
1813
- function shim(props, propName, componentName, location, propFullName, secret) {
1814
- if (secret === ReactPropTypesSecret) {
1815
- // It is still safe when called from React.
1816
- return;
1817
- }
1818
- var err = new Error(
1819
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1820
- 'Use PropTypes.checkPropTypes() to call them. ' +
1821
- 'Read more at http://fb.me/use-check-prop-types'
1822
- );
1823
- err.name = 'Invariant Violation';
1824
- throw err;
1825
- } shim.isRequired = shim;
1826
- function getShim() {
1827
- return shim;
1828
- } // Important!
1829
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1830
- var ReactPropTypes = {
1831
- array: shim,
1832
- bigint: shim,
1833
- bool: shim,
1834
- func: shim,
1835
- number: shim,
1836
- object: shim,
1837
- string: shim,
1838
- symbol: shim,
1839
-
1840
- any: shim,
1841
- arrayOf: getShim,
1842
- element: shim,
1843
- elementType: shim,
1844
- instanceOf: getShim,
1845
- node: shim,
1846
- objectOf: getShim,
1847
- oneOf: getShim,
1848
- oneOfType: getShim,
1849
- shape: getShim,
1850
- exact: getShim,
1851
-
1852
- checkPropTypes: emptyFunctionWithReset,
1853
- resetWarningCache: emptyFunction
1854
- };
1855
-
1856
- ReactPropTypes.PropTypes = ReactPropTypes;
1857
-
1858
- return ReactPropTypes;
1859
- };
1860
- return factoryWithThrowingShims;
1861
- }
1862
-
1863
- /**
1864
- * Copyright (c) 2013-present, Facebook, Inc.
1865
- *
1866
- * This source code is licensed under the MIT license found in the
1867
- * LICENSE file in the root directory of this source tree.
1868
- */
1869
-
1870
- var hasRequiredPropTypes;
1871
-
1872
- function requirePropTypes () {
1873
- if (hasRequiredPropTypes) return propTypes$1.exports;
1874
- hasRequiredPropTypes = 1;
1875
- if (process.env.NODE_ENV !== 'production') {
1876
- var ReactIs = requireReactIs();
1877
-
1878
- // By explicitly using `prop-types` you are opting into new development behavior.
1879
- // http://fb.me/prop-types-in-prod
1880
- var throwOnDirectAccess = true;
1881
- propTypes$1.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1882
- } else {
1883
- // By explicitly using `prop-types` you are opting into new production behavior.
1884
- // http://fb.me/prop-types-in-prod
1885
- propTypes$1.exports = requireFactoryWithThrowingShims()();
1886
- }
1887
- return propTypes$1.exports;
1888
- }
1889
-
1890
- var propTypesExports = requirePropTypes();
1891
-
1892
- var propTypes = {
1893
- /** When to wrap children */
1894
- condition: propTypesExports.bool,
1895
- /** Wrapper element */
1896
- wrapper: propTypesExports.element
1897
- };
1898
- var ConditionalWrapper = function ConditionalWrapper(_ref) {
1899
- var condition = _ref.condition,
1900
- wrapper = _ref.wrapper,
1901
- children = _ref.children;
1902
- return condition ? /*#__PURE__*/cloneElement(wrapper, wrapper.props, children) : children;
1903
- };
1904
- ConditionalWrapper.propTypes = propTypes;
1905
-
1906
- var alertData = {
1907
- warning: "warning-important",
1908
- info: "info",
1909
- danger: "error-severe",
1910
- success: "checked"
1911
- };
1912
-
1913
- var CLASS_ROOT$6 = "alert";
1914
- var Alert = function Alert(_a) {
1915
- var className = _a.className,
1916
- _a$type = _a.type,
1917
- type = _a$type === void 0 ? "info" : _a$type,
1918
- title = _a.title,
1919
- renderTitle = _a.renderTitle,
1920
- description = _a.description,
1921
- _a$headingLevel = _a.headingLevel,
1922
- headingLevel = _a$headingLevel === void 0 ? 3 : _a$headingLevel,
1923
- actionButtons = _a.actionButtons,
1924
- isFullWidth = _a.isFullWidth,
1925
- isInverse = _a.isInverse,
1926
- onClose = _a.onClose,
1927
- other = __rest(_a, ["className", "type", "title", "renderTitle", "description", "headingLevel", "actionButtons", "isFullWidth", "isInverse", "onClose"]);
1928
- var HEADINGTAG = "h".concat(headingLevel);
1929
- var classes = cx(CLASS_ROOT$6, _defineProperty(_defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$6, "--").concat(type), type), "".concat(CLASS_ROOT$6, "--full-width"), isFullWidth), "".concat(CLASS_ROOT$6, "--inverse"), isInverse), className);
1930
- var alertTitle = renderTitle && renderTitle(Object.assign({
1931
- className: className,
1932
- type: type,
1933
- title: title,
1934
- renderTitle: renderTitle,
1935
- description: description,
1936
- headingLevel: headingLevel,
1937
- actionButtons: actionButtons,
1938
- isFullWidth: isFullWidth,
1939
- isInverse: isInverse,
1940
- onClose: onClose
1941
- }, other)) || title && /*#__PURE__*/React.createElement(HEADINGTAG, {
1942
- className: "".concat(CLASS_ROOT$6, "__title")
1943
- }, title);
1944
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", _objectSpread2(_objectSpread2({
1945
- className: classes
1946
- }, other), {}, {
1947
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
1948
- className: "".concat(CLASS_ROOT$6, "__icon"),
1949
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
1950
- name: alertData[type],
1951
- color: type,
1952
- size: "medium"
1953
- })
1954
- }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
1955
- className: "".concat(CLASS_ROOT$6, "__content"),
1956
- children: [alertTitle, description && /*#__PURE__*/jsxRuntimeExports.jsx(ConditionalWrapper, {
1957
- condition: typeof description === "string",
1958
- wrapper: /*#__PURE__*/jsxRuntimeExports.jsx("p", {}),
1959
- children: description
1960
- }), actionButtons && /*#__PURE__*/jsxRuntimeExports.jsx(ConditionalWrapper, {
1961
- condition: React.Children.count(actionButtons) > 1,
1962
- wrapper: /*#__PURE__*/jsxRuntimeExports.jsx(Buttons, {}),
1963
- children: React.Children.map(actionButtons, function (button) {
1964
- return button;
1965
- })
1966
- })]
1967
- }), onClose && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
1968
- className: "".concat(CLASS_ROOT$6, "__close"),
1969
- children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
1970
- onClick: onClose,
1971
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
1972
- name: "close",
1973
- size: "medium"
1974
- })
1975
- })
1976
- })]
1977
- }));
1978
- };
1979
- Alert.displayName = "Alert";
1980
-
1981
- var CLASS_ROOT$5 = "badge";
1982
- var Badge = function Badge(_a) {
1983
- var color = _a.color,
1984
- isDark = _a.isDark,
1985
- isRound = _a.isRound,
1986
- className = _a.className,
1987
- children = _a.children,
1988
- other = __rest(_a, ["color", "isDark", "isRound", "className", "children"]);
1989
- var classes = cx(CLASS_ROOT$5, className, _defineProperty(_defineProperty({
1990
- "badge--dark": isDark
1991
- }, "badge--".concat(color), color), "badge--round", isRound));
1992
- return /*#__PURE__*/jsxRuntimeExports.jsx("span", _objectSpread2(_objectSpread2({
1993
- className: classes
1994
- }, other), {}, {
1995
- children: children
1996
- }));
1997
- };
1998
- Badge.displayName = "Badge";
1999
-
2000
- var CLASS_ROOT$4 = "btn";
2001
- var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
2002
- var className = props.className,
2003
- children = props.children,
2004
- _props$htmlType = props.htmlType,
2005
- htmlType = _props$htmlType === void 0 ? "button" : _props$htmlType,
2006
- href = props.href,
2007
- isActive = props.isActive,
2008
- isDefault = props.isDefault,
2009
- isDisabled = props.isDisabled,
2010
- isInverse = props.isInverse,
2011
- size = props.size,
2012
- isSquare = props.isSquare,
2013
- type = props.type,
2014
- elemRef = props.elemRef,
2015
- other = __rest(props, ["className", "children", "htmlType", "href", "isActive", "isDefault", "isDisabled", "isInverse", "size", "isSquare", "type", "elemRef"]);
2016
- var classes = cx(CLASS_ROOT$4, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$4, "--square"), isSquare), "".concat(CLASS_ROOT$4, "--").concat(size), size), "".concat(CLASS_ROOT$4, "--").concat(type), type), "".concat(CLASS_ROOT$4, "--default"), isDefault), "".concat(CLASS_ROOT$4, "--inverse"), isInverse), "is-active", isActive), className);
2017
- if (href) {
2018
- // Anchor element
2019
- var anchorProps = other;
2020
- return /*#__PURE__*/jsxRuntimeExports.jsx("a", _objectSpread2(_objectSpread2({
2021
- href: href,
2022
- className: classes,
2023
- "aria-disabled": isDisabled ? "true" : undefined,
2024
- ref: elemRef || ref
2025
- }, anchorProps), {}, {
2026
- children: children
2027
- }));
2028
- } else {
2029
- // Button element
2030
- var buttonProps = other;
2031
- return /*#__PURE__*/jsxRuntimeExports.jsx("button", _objectSpread2(_objectSpread2({
2032
- type: htmlType,
2033
- className: classes,
2034
- disabled: isDisabled ? true : undefined,
2035
- "aria-disabled": isDisabled ? "true" : undefined,
2036
- ref: elemRef || ref
2037
- }, buttonProps), {}, {
2038
- children: children
2039
- }));
2040
- }
2041
- });
2042
- Button.displayName = "Button";
2043
-
2044
- var IconButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
2045
- var iconName = _a.iconName,
2046
- _a$iconPosition = _a.iconPosition,
2047
- iconPosition = _a$iconPosition === void 0 ? "left" : _a$iconPosition,
2048
- iconClassName = _a.iconClassName,
2049
- children = _a.children,
2050
- size = _a.size,
2051
- isSquare = _a.isSquare,
2052
- other = __rest(_a, ["iconName", "iconPosition", "iconClassName", "children", "size", "isSquare"]);
2053
- var IconComponent = function IconComponent(_a) {
2054
- var className = _a.className,
2055
- props = __rest(_a, ["className"]);
2056
- return /*#__PURE__*/jsxRuntimeExports.jsx(Icon, _objectSpread2({
2057
- name: iconName,
2058
- size: size !== null && size !== void 0 ? size : "medium",
2059
- className: cx(iconClassName, className)
2060
- }, props));
2061
- };
2062
- if (isSquare) {
2063
- return /*#__PURE__*/jsxRuntimeExports.jsxs(Button, _objectSpread2(_objectSpread2({
2064
- size: size,
2065
- isSquare: true
2066
- }, other), {}, {
2067
- ref: ref,
2068
- children: [/*#__PURE__*/jsxRuntimeExports.jsx(IconComponent, {}), /*#__PURE__*/jsxRuntimeExports.jsx("span", {
2069
- className: "visually-hidden",
2070
- children: children
2071
- })]
2072
- }));
2073
- }
2074
- return /*#__PURE__*/jsxRuntimeExports.jsxs(Button, _objectSpread2(_objectSpread2({
2075
- ref: ref,
2076
- size: size
2077
- }, other), {}, {
2078
- children: [iconPosition === "left" && /*#__PURE__*/jsxRuntimeExports.jsx(IconComponent, {
2079
- className: "btn__icon-left"
2080
- }), children, iconPosition === "right" && /*#__PURE__*/jsxRuntimeExports.jsx(IconComponent, {
2081
- className: "btn__icon-right"
2082
- })]
2083
- }));
2084
- });
2085
- IconButton.displayName = "IconButton";
2086
-
2087
- var ButtonPrimary = function ButtonPrimary(props) {
2088
- return /*#__PURE__*/jsxRuntimeExports.jsx(Button, _objectSpread2({
2089
- type: "primary"
2090
- }, props));
2091
- };
2092
- ButtonPrimary.displayName = "ButtonPrimary";
2093
- var ButtonFill = function ButtonFill(props) {
2094
- return /*#__PURE__*/jsxRuntimeExports.jsx(Button, _objectSpread2({
2095
- type: "fill"
2096
- }, props));
2097
- };
2098
- ButtonFill.displayName = "ButtonFill";
2099
- var ButtonGhost = function ButtonGhost(props) {
2100
- return /*#__PURE__*/jsxRuntimeExports.jsx(Button, _objectSpread2({
2101
- type: "ghost"
2102
- }, props));
2103
- };
2104
- ButtonGhost.displayName = "ButtonGhost";
2105
-
2106
- var idx = 0;
2107
- var uuid = function uuid() {
2108
- return idx += 1;
2109
- };
2110
- /**
2111
- * Generates a unique ID string with an optional name prefix
2112
- * @param name Optional prefix for the ID
2113
- * @returns A unique ID string
2114
- */
2115
- function generateId(name) {
2116
- return "id".concat('', "-").concat(uuid());
2117
- }
2118
-
2119
- /**
2120
- * A hook to create and manage an instance of a "static" class
2121
- * @param StaticClass The class to instantiate
2122
- * @param config Configuration options for the class
2123
- * @returns [ref callback, instance reference]
2124
- */
2125
- var useStatic = function useStatic(StaticClass) {
2126
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2127
- var instance = useRef(null);
2128
- var configRef = useRef(config);
2129
- useEffect(function () {
2130
- configRef.current = config !== null && config !== void 0 ? config : {};
2131
- }, [config]);
2132
- var ref = useCallback(function (node) {
2133
- var _a, _b;
2134
- // use latest config available
2135
- var currentConfig = configRef.current;
2136
- if (node) {
2137
- if (instance.current === null) {
2138
- instance.current = new StaticClass(node, currentConfig);
2139
- } else {
2140
- (_b = (_a = instance.current).update) === null || _b === void 0 ? void 0 : _b.call(_a, currentConfig);
2141
- }
2142
- }
2143
- }, [StaticClass]);
2144
- useEffect(function () {
2145
- return function () {
2146
- var _a, _b;
2147
- if (instance.current) {
2148
- (_b = (_a = instance.current).destroy) === null || _b === void 0 ? void 0 : _b.call(_a);
2149
- instance.current = null;
2150
- }
2151
- };
2152
- }, []);
2153
- return [ref, instance];
2154
- };
2155
-
2156
- const not = {
2157
- inert: ':not([inert]):not([inert] *)',
2158
- negTabIndex: ':not([tabindex^="-"])',
2159
- disabled: ':not(:disabled)',
2160
- };
2161
-
2162
- var focusableSelectors = [
2163
- `a[href]${not.inert}${not.negTabIndex}`,
2164
- `area[href]${not.inert}${not.negTabIndex}`,
2165
- `input:not([type="hidden"]):not([type="radio"])${not.inert}${not.negTabIndex}${not.disabled}`,
2166
- `input[type="radio"]${not.inert}${not.negTabIndex}${not.disabled}`,
2167
- `select${not.inert}${not.negTabIndex}${not.disabled}`,
2168
- `textarea${not.inert}${not.negTabIndex}${not.disabled}`,
2169
- `button${not.inert}${not.negTabIndex}${not.disabled}`,
2170
- `details${not.inert} > summary:first-of-type${not.negTabIndex}`,
2171
- // Discard until Firefox supports `:has()`
2172
- // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
2173
- // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
2174
- `iframe${not.inert}${not.negTabIndex}`,
2175
- `audio[controls]${not.inert}${not.negTabIndex}`,
2176
- `video[controls]${not.inert}${not.negTabIndex}`,
2177
- `[contenteditable]${not.inert}${not.negTabIndex}`,
2178
- `[tabindex]${not.inert}${not.negTabIndex}`,
2179
- ];
2180
-
2181
- /**
2182
- * Set the focus to the first element with `autofocus` with the element or the
2183
- * element itself.
2184
- */
2185
- function focus(el) {
2186
- (el.querySelector('[autofocus]') || el).focus();
2187
- }
2188
- /**
2189
- * Get the first and last focusable elements within a given element.
2190
- */
2191
- function getFocusableEdges(el) {
2192
- // Check for a focusable element within the subtree of the given element.
2193
- const firstEl = findFocusableEl(el, true);
2194
- // Only if we find the first element do we need to look for the last one. If
2195
- // there’s no last element, we set `lastEl` as a reference to `firstEl` so
2196
- // that the returned array is still always of length 2.
2197
- const lastEl = firstEl ? findFocusableEl(el, false) || firstEl : null;
2198
- return [firstEl, lastEl];
2199
- }
2200
- /**
2201
- * Find the first focusable element inside the given element if `forward` is
2202
- * truthy or the last focusable element otherwise.
2203
- */
2204
- function findFocusableEl(el, forward) {
2205
- // If we’re walking forward, check if this element is focusable, and return it
2206
- // immediately if it is.
2207
- if (forward && isFocusable(el))
2208
- return el;
2209
- // We should only search the subtree of this element if it can have focusable
2210
- // children.
2211
- if (canHaveFocusableChildren(el)) {
2212
- // Start walking the DOM tree, looking for focusable elements.
2213
- // Case 1: If this element has a shadow root, search it recursively.
2214
- if (el.shadowRoot) {
2215
- // Descend into this subtree.
2216
- let next = getNextChildEl(el.shadowRoot, forward);
2217
- // Traverse the siblings, searching the subtree of each one for focusable
2218
- // elements.
2219
- while (next) {
2220
- const focusableEl = findFocusableEl(next, forward);
2221
- if (focusableEl)
2222
- return focusableEl;
2223
- next = getNextSiblingEl(next, forward);
2224
- }
2225
- }
2226
- // Case 2: If this element is a slot for a Custom Element, search its
2227
- // assigned elements recursively.
2228
- else if (el.localName === 'slot') {
2229
- const assignedElements = el.assignedElements({
2230
- flatten: true,
2231
- });
2232
- if (!forward)
2233
- assignedElements.reverse();
2234
- for (const assignedElement of assignedElements) {
2235
- const focusableEl = findFocusableEl(assignedElement, forward);
2236
- if (focusableEl)
2237
- return focusableEl;
2238
- }
2239
- }
2240
- // Case 3: this is a regular Light DOM element. Search its subtree.
2241
- else {
2242
- // Descend into this subtree.
2243
- let next = getNextChildEl(el, forward);
2244
- // Traverse siblings, searching the subtree of each one
2245
- // for focusable elements.
2246
- while (next) {
2247
- const focusableEl = findFocusableEl(next, forward);
2248
- if (focusableEl)
2249
- return focusableEl;
2250
- next = getNextSiblingEl(next, forward);
2251
- }
2252
- }
2253
- }
2254
- // If we’re walking backward, we want to check the element’s entire subtree
2255
- // before checking the element itself. If this element is focusable, return
2256
- // it.
2257
- if (!forward && isFocusable(el))
2258
- return el;
2259
- return null;
2260
- }
2261
- function getNextChildEl(el, forward) {
2262
- return forward ? el.firstElementChild : el.lastElementChild;
2263
- }
2264
- function getNextSiblingEl(el, forward) {
2265
- return forward ? el.nextElementSibling : el.previousElementSibling;
2266
- }
2267
- /**
2268
- * Determine if an element is hidden from the user.
2269
- */
2270
- const isHidden$1 = (el) => {
2271
- // Browsers hide all non-<summary> descendants of closed <details> elements
2272
- // from user interaction, but those non-<summary> elements may still match our
2273
- // focusable-selectors and may still have dimensions, so we need a special
2274
- // case to ignore them.
2275
- if (el.matches('details:not([open]) *') &&
2276
- !el.matches('details>summary:first-of-type'))
2277
- return true;
2278
- // If this element has no painted dimensions, it's hidden.
2279
- return !(el.offsetWidth || el.offsetHeight || el.getClientRects().length);
2280
- };
2281
- /**
2282
- * Determine if an element is focusable and has user-visible painted dimensions.
2283
- */
2284
- const isFocusable = (el) => {
2285
- // A shadow host that delegates focus will never directly receive focus,
2286
- // even with `tabindex=0`. Consider our <fancy-button> custom element, which
2287
- // delegates focus to its shadow button:
2288
- //
2289
- // <fancy-button tabindex="0">
2290
- // #shadow-root
2291
- // <button><slot></slot></button>
2292
- // </fancy-button>
2293
- //
2294
- // The browser acts as as if there is only one focusable element – the shadow
2295
- // button. Our library should behave the same way.
2296
- if (el.shadowRoot?.delegatesFocus)
2297
- return false;
2298
- return el.matches(focusableSelectors.join(',')) && !isHidden$1(el);
2299
- };
2300
- /**
2301
- * Determine if an element can have focusable children. Useful for bailing out
2302
- * early when walking the DOM tree.
2303
- * @example
2304
- * This div is inert, so none of its children can be focused, even though they
2305
- * meet our criteria for what is focusable. Once we check the div, we can skip
2306
- * the rest of the subtree.
2307
- * ```html
2308
- * <div inert>
2309
- * <button>Button</button>
2310
- * <a href="#">Link</a>
2311
- * </div>
2312
- * ```
2313
- */
2314
- function canHaveFocusableChildren(el) {
2315
- // The browser will never send focus into a Shadow DOM if the host element
2316
- // has a negative tabindex. This applies to both slotted Light DOM Shadow DOM
2317
- // children
2318
- if (el.shadowRoot && el.getAttribute('tabindex') === '-1')
2319
- return false;
2320
- // Elemments matching this selector are either hidden entirely from the user,
2321
- // or are visible but unavailable for interaction. Their descentants can never
2322
- // receive focus.
2323
- return !el.matches(':disabled,[hidden],[inert]');
2324
- }
2325
- /**
2326
- * Get the active element, accounting for Shadow DOM subtrees.
2327
- * @author Cory LaViska
2328
- * @see: https://www.abeautifulsite.net/posts/finding-the-active-element-in-a-shadow-root/
2329
- */
2330
- function getActiveEl(root = document) {
2331
- const activeEl = root.activeElement;
2332
- if (!activeEl)
2333
- return null;
2334
- // If there’s a shadow root, recursively find the active element within it.
2335
- // If the recursive call returns null, return the active element
2336
- // of the top-level Document.
2337
- if (activeEl.shadowRoot)
2338
- return getActiveEl(activeEl.shadowRoot) || document.activeElement;
2339
- // If not, we can just return the active element
2340
- return activeEl;
2341
- }
2342
- /**
2343
- * Trap the focus inside the given element
2344
- */
2345
- function trapTabKey(el, event) {
2346
- const [firstFocusableEl, lastFocusableEl] = getFocusableEdges(el);
2347
- // If there are no focusable children in the dialog, prevent the user from
2348
- // tabbing out of it
2349
- if (!firstFocusableEl)
2350
- return event.preventDefault();
2351
- const activeEl = getActiveEl();
2352
- // If the SHIFT key is pressed while tabbing (moving backwards) and the
2353
- // currently focused item is the first one, move the focus to the last
2354
- // focusable item from the dialog element
2355
- if (event.shiftKey && activeEl === firstFocusableEl) {
2356
- // @ts-ignore: we know that `lastFocusableEl` is not null here
2357
- lastFocusableEl.focus();
2358
- event.preventDefault();
2359
- }
2360
- // If the SHIFT key is not pressed (moving forwards) and the currently focused
2361
- // item is the last one, move the focus to the first focusable item from the
2362
- // dialog element
2363
- else if (!event.shiftKey && activeEl === lastFocusableEl) {
2364
- firstFocusableEl.focus();
2365
- event.preventDefault();
2366
- }
2367
- }
2368
- /**
2369
- * Find the closest element to the given element matching the given selector,
2370
- * accounting for Shadow DOM subtrees.
2371
- * @author Louis St-Amour
2372
- * @see: https://stackoverflow.com/a/56105394
2373
- */
2374
- function closest(selector, base) {
2375
- function from(el) {
2376
- if (!el || el === document || el === window)
2377
- return null;
2378
- // Reading the `assignedSlot` property from the element (as suggested by the
2379
- // aforementioned StackOverflow answer) is not enough, because it does not
2380
- // take into consideration elements nested deeply within a <slot>. For these
2381
- // elements, the `assignedSlot` property is `null` as it is only specified
2382
- // for top-level elements within a <slot>. To still find the closest <slot>,
2383
- // we walk up the tree looking for the `assignedSlot` property.
2384
- const slot = findAssignedSlot(el);
2385
- if (slot)
2386
- el = slot;
2387
- return (el.closest(selector) ||
2388
- from(el.getRootNode().host));
2389
- }
2390
- return from(base);
2391
- }
2392
- function findAssignedSlot(node) {
2393
- return (node.assignedSlot ||
2394
- (node.parentNode ? findAssignedSlot(node.parentNode) : null));
2395
- }
15
+ */function K(){return q||(q=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case m:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case x:return"SuspenseList";case _:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case h:return"Portal";case g:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case b:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case N:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function i(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var i=(t=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),n(e)}}function r(e){if(e===p)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===N)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return A[e]||(A[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,n,r,o,s,u,h,p){var f,m=n.children;if(void 0!==m)if(o)if(E(m)){for(o=0;o<m.length;o++)l(m[o]);Object.freeze&&Object.freeze(m)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(m);if(j.call(n,"key")){m=t(e);var v=Object.keys(n).filter(function(e){return"key"!==e});o=0<v.length?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}",D[m+o]||(v=0<v.length?"{"+v.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,m,v,m),D[m+o]=!0)}if(m=null,void 0!==r&&(i(r),m=""+r),function(e){if(j.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(i(n.key),m=""+n.key),"key"in n)for(var g in r={},n)"key"!==g&&(r[g]=n[g]);else r=n;return m&&function(e,t){function n(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(r,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,n,i,r,o,s,l){return n=o.ref,e={$$typeof:d,type:e,key:t,props:o,_owner:r},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,u,0,null===(f=k.A)?null:f.getOwner(),r,h,p)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===d&&e._store&&(e._store.validated=1)}var c,u=e,d=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),k=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,E=Array.isArray,O=console.createTask?console.createTask:function(){return null},A={},C=(u={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(u,o)(),T=O(r(o)),D={};G.Fragment=p,G.jsx=function(e,t,n,i,o){var a=1e4>k.recentlyCreatedOwnerStacks++;return s(e,t,n,!1,0,o,a?Error("react-stack-top-frame"):C,a?O(r(e)):T)},G.jsxs=function(e,t,n,i,o){var a=1e4>k.recentlyCreatedOwnerStacks++;return s(e,t,n,!0,0,o,a?Error("react-stack-top-frame"):C,a?O(r(e)):T)}}()),G}function Y(){return $||($=1,"production"===process.env.NODE_ENV?H.exports=function(){if(V)return W;V=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,i){var r=null;if(void 0!==i&&(r=""+i),void 0!==n.key&&(r=""+n.key),"key"in n)for(var o in i={},n)"key"!==o&&(i[o]=n[o]);else i=n;return n=i.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:i}}return W.Fragment=t,W.jsx=n,W.jsxs=n,W}():H.exports=K()),H.exports}var X=Y(),J="accordion",Q=function(e){var t=e.className,n=e.children,i=e.headingLevel,r=void 0===i?3:i,o=e.size,a=e.isEnclosed,s=S(e,["className","children","headingLevel","size","isEnclosed"]),l=y(B(R),1)[0],c=A(J,v(v({},"".concat(J,"--").concat(o),o),"".concat(J,"--enclosed"),a),t);return X.jsx(M.Provider,{value:r,children:X.jsx("ul",b(b({className:c,ref:l,"data-accordion":"true"},s),{},{children:n}))})};Q.displayName="Accordion";var Z=e.createContext("/sprite.svg"),ee="icon",te=function(e){var t=e.className,n=e.alt,i=e.color,r=e.name,o=e.size,s=e.spritePath,l=void 0===s?"/sprite.svg":s,c=S(e,["className","alt","color","name","size","spritePath"]),u=a(Z),d=A(ee,v(v({},"".concat(ee,"--").concat(o),o),"".concat(ee,"--").concat(i),i),t);return X.jsxs("svg",b(b({className:d,"aria-hidden":void 0!==n?void 0:"true",role:void 0!==n?"img":void 0},c),{},{children:[void 0!==n&&n.length>0&&X.jsx("title",{children:n}),X.jsx("use",{xlinkHref:"/sprite.svg"!==l||void 0===u?"".concat(l,"#").concat(r):"".concat(u,"#").concat(r)})]}))};te.displayName="Icon";var ne="accordion",ie=function(t){var n=t.className,i=t.title,r=t.id,o=t.isActive,a=S(t,["className","title","id","isActive"]),s=e.useContext(M),l="h".concat(s||3);return X.jsx(l,{className:A("".concat(ne,"__header"),n),children:X.jsxs("button",b(b({type:"button","aria-expanded":o,className:"".concat(ne,"__button"),"aria-controls":"".concat(r,"-section"),id:r,"data-accordion-toggle":!0},a),{},{children:[X.jsx("span",{className:"accordion__title",children:i}),X.jsx(te,{className:"".concat(ne,"__icon"),name:"chevron-down",size:"medium"})]}))})};ie.displayName="AccordionHeader";var re=function(e){var t=e.id,n=e.isActive,i=e.title,r=e.renderHeader,o=e.children,a=e.className,s=S(e,["id","isActive","title","renderHeader","children","className"]),l=A("accordion__item",a),c=t||F();return X.jsxs("li",{className:l,children:[r?r(i,c,n||!1):X.jsx(ie,b({id:c,isActive:n,title:i},s)),X.jsx("div",b(b({id:"".concat(c,"-section"),"aria-labelledby":c,className:A("accordion__body",{"is-active":n})},n?{}:{hidden:!0}),{},{children:o}))]})};re.displayName="AccordionItem";var oe="buttons",ae=function(e){var t=e.isStackedOnXs,n=e.children,i=e.className,r=S(e,["isStackedOnXs","children","className"]);return X.jsx("div",b(b({className:A(oe,v({},"".concat(oe,"--stack-on-xs"),t),i)},r),{},{children:n}))};ae.displayName="Buttons";var se=function(e){var t=e.condition,n=e.wrapper,i=e.children;return t?s(n,void 0,i):i};se.displayName="ConditionalWrapper";var le={warning:"warning-important",info:"info",danger:"error-severe",success:"checked"},ce="alert",ue=function(t){var n=t.className,i=t.type,r=void 0===i?"info":i,o=t.title,a=t.renderTitle,s=t.description,l=t.headingLevel,c=void 0===l?3:l,u=t.actionButtons,d=t.isFullWidth,h=t.colorScheme,p=t.onClose,f=S(t,["className","type","title","renderTitle","description","headingLevel","actionButtons","isFullWidth","colorScheme","onClose"]),m="h".concat(c),g=A(ce,v(v(v(v({},"".concat(ce,"--").concat(r),r),"".concat(ce,"--full-width"),d),"is-dark","dark"===h),"is-light","light"===h),n),y=a&&a(Object.assign({className:n,type:r,title:o,renderTitle:a,description:s,headingLevel:c,actionButtons:u,isFullWidth:d,colorScheme:h,onClose:p},f))||o&&e.createElement(m,{className:"".concat(ce,"__title")},o);return X.jsxs("div",b(b({className:g},f),{},{children:[X.jsx("div",{className:"".concat(ce,"__icon"),children:X.jsx(te,{name:le[r],color:r,size:"medium"})}),X.jsxs("div",{className:"".concat(ce,"__content"),children:[y,s&&X.jsx(se,{condition:"string"==typeof s,wrapper:X.jsx("p",{}),children:s}),u&&X.jsx(se,{condition:e.Children.count(u)>1,wrapper:X.jsx(ae,{}),children:e.Children.map(u,function(e){return e})})]}),p&&X.jsx("div",{className:"".concat(ce,"__close"),children:X.jsx("button",{onClick:p,children:X.jsx(te,{name:"close",size:"medium"})})})]}))};ue.displayName="Alert";var de="tag",he=e.forwardRef(function(t,n){var i=t.color,r=t.size,o=t.isInverse,a=t.isDisabled,s=t.className,l=t.children,c=t.actionButton,u=S(t,["color","size","isInverse","isDisabled","className","children","actionButton"]),d=A(de,s,v(v({"tag--inverse":o},"tag--".concat(i),i),"tag--".concat(r),r));if("onClick"in t&&t.onClick){var h=u,p=h.onClick,f=S(h,["onClick"]);return X.jsx("button",b(b({type:"button",className:d,onClick:p,disabled:!!a||void 0,"aria-disabled":a?"true":void 0,ref:n},f),{},{children:l}))}if("actionButton"in t&&c){var m=u;return X.jsxs("div",{ref:n,className:"".concat(de,"__wrapper"),children:[X.jsx("span",b(b({className:d,"aria-disabled":a?"true":void 0},m),{},{children:l})),e.isValidElement(c)?e.cloneElement(c,{size:r,isDisabled:a}):c]})}var g=u;return X.jsxs("span",b(b({className:d,ref:n},g),{},{children:[l," ",c]}))});he.displayName="Tag";var pe="".concat(de,"__action"),fe=e.forwardRef(function(e,t){var n=e.className,i=e.onClick,r=e.isDisabled,o=e.iconName,a=e.ariaLabel,s=e.size,l=S(e,["className","onClick","isDisabled","iconName","ariaLabel","size"]),c=A(pe,v({},"".concat(pe,"--").concat(s),s),n);return X.jsx("button",b(b({type:"button",className:c,onClick:i,disabled:!!r||void 0,"aria-disabled":r?"true":void 0,"aria-label":a,ref:t},l),{},{children:X.jsx(te,{size:"large"===s?"medium":"small",name:o})}))});fe.displayName="TagButton";var me="bar",ve=e.forwardRef(function(e,t){var n=e.align,i=e.canWrap,r=void 0===i||i,o=e.isVertical,a=e.space,s=e.tag,l=void 0===s?"div":s,c=e.className,u=e.children,d=S(e,["align","canWrap","isVertical","space","tag","className","children"]),h=A(me,v(v(v(v({},"align-items-".concat(n),n),"".concat(me,"--vertical"),o),"".concat(me,"--nowrap"),!r),"".concat(me,"--space-").concat(a),a),c);return X.jsx(l,b(b({className:h,ref:t},d),{},{children:u}))});ve.displayName="Bar";var ge="bar__item",be=e.forwardRef(function(e,t){var n=e.className,i=e.tag,r=void 0===i?"div":i,o=e.isFilling,a=e.canShrink,s=e.children,l=S(e,["className","tag","isFilling","canShrink","children"]),c=r,u=A(ge,v(v({},"".concat(ge,"--fill"),o),"".concat(ge,"--shrinkable"),a),n);return X.jsx(c,b(b({className:u,ref:t},l),{},{children:s}))});be.displayName="BarItem";var ye=e.forwardRef(function(e,t){var n=e.className,i=e.tag,r=void 0===i?"div":i,o=e.children,a=S(e,["className","tag","children"]),s=A("bar__break",n);return X.jsx(r,b(b({className:s,ref:t},a),{},{children:o}))});ye.displayName="BarBreak";var xe=function(t){var n=t.className,i=t.children,r=S(t,["className","children"]);return e.cloneElement(i,Object.assign(Object.assign(Object.assign({},"object"===N(i.props)&&null!==i.props?i.props:{}),r),{className:A(i.props&&i.props.className,n)}))},we=e.createContext({isIndicating:!1,isActive:!1,setIsActive:function(){},setIsIndicating:function(){}}),Ne=function(e){var t=y(o(!1),2),n=t[0],i=t[1],r=y(o(!1),2),a=r[0],s=r[1];return X.jsx(we.Provider,{value:{isIndicating:n,setIsIndicating:i,isActive:a,setIsActive:s},children:e.children})},_e=function(e){return X.jsx(Ne,{children:X.jsx(xe,b(b({},e),{},{className:"block-action","data-block-action":!0}))})};_e.displayName="BlockAction";var Se=function(e){var t=a(we),n=t.isActive,i=t.setIsActive,r=t.setIsIndicating;return X.jsx(xe,b(b({},e),{},{className:"block-action__control",onMouseEnter:function(){return r(!0)},onMouseLeave:function(){return r(!1)},onFocus:function(){return r(!0)},onBlur:function(){return r(!1)},onClick:function(){return i(!n)}}))};Se.displayName="BlockActionControl";var ke=function(e){var t=a(we),n=t.isActive,i=t.isIndicating;return X.jsx(xe,b(b({},e),{},{className:A("block-action__indicator",e.className,{"is-indicating":i,"is-active":n})}))};ke.displayName="BlockActionIndicator";var je=function(e){return X.jsx(xe,b(b({},e),{},{className:"block-action__override"}))};function Ee(e){return e?"".concat("".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-").concat(e)):""}function Oe(e,t,n){return Object.keys(t).map(function(i){switch(N(t[i])){case"boolean":return"".concat(e).concat("xs"!==i?"--".concat(i):"-").concat(Ee(n));case"string":case"number":return"".concat(e).concat("xs"!==i?"--".concat(i):"-").concat(Ee(t[i])).concat(Ee(n));default:return null}}).join(" ")}function Ae(e,t,n){return["boolean"==typeof t?"".concat(e).concat(Ee(n,"--")):null,null!==t&&"object"===N(t)?Oe(e,t,n):null,v({},"".concat(e,"--").concat(t).concat(Ee(n)),"string"==typeof t||"number"==typeof t)]}je.displayName="BlockActionOverride";var Ce,Te={exports:{}};var De=k((Ce||(Ce=1,Te.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t){return e.slice(-1*t.length)===t}function r(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function o(e){return"number"==typeof e&&isFinite(e)}function a(e,t){return e=e.toString().split("e"),(+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))).toFixed(t)}function s(e,n,i,r,s,l,c,u,d,h,p,f){var m,v,g,b=f,y="",x="";return l&&(f=l(f)),!!o(f)&&(!1!==e&&0===parseFloat(f.toFixed(e))&&(f=0),f<0&&(m=!0,f=Math.abs(f)),!1!==e&&(f=a(f,e)),-1!==(f=f.toString()).indexOf(".")?(g=(v=f.split("."))[0],i&&(y=i+v[1])):g=f,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),m&&u&&(x+=u),r&&(x+=r),m&&d&&(x+=d),x+=g,x+=y,s&&(x+=s),h&&(x=h(x,b)),x)}function l(e,t,r,a,s,l,c,u,d,h,p,f){var m,v="";return p&&(f=p(f)),!(!f||"string"!=typeof f)&&(u&&n(f,u)&&(f=f.replace(u,""),m=!0),a&&n(f,a)&&(f=f.replace(a,"")),d&&n(f,d)&&(f=f.replace(d,""),m=!0),s&&i(f,s)&&(f=f.slice(0,-1*s.length)),t&&(f=f.split(t).join("")),r&&(f=f.replace(r,".")),m&&(v+="-"),""!==(v=(v+=f).replace(/[^0-9\.\-.]/g,""))&&(v=Number(v),c&&(v=c(v)),!!o(v)&&v))}function c(t){var n,i,o,a={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(o=t[i=e[n]]))"negative"!==i||a.negativeBefore?"mark"===i&&"."!==a.thousand?a[i]=".":a[i]=!1:a[i]="-";else if("decimals"===i){if(!(o>=0&&o<8))throw new Error(i);a[i]=o}else if("encoder"===i||"decoder"===i||"edit"===i||"undo"===i){if("function"!=typeof o)throw new Error(i);a[i]=o}else{if("string"!=typeof o)throw new Error(i);a[i]=o}return r(a,"mark","thousand"),r(a,"prefix","negative"),r(a,"prefix","negativeBefore"),a}function u(t,n,i){var r,o=[];for(r=0;r<e.length;r+=1)o.push(t[e[r]]);return o.push(i),n.apply("",o)}function d(e){if(!(this instanceof d))return new d(e);"object"==typeof e&&(e=c(e),this.to=function(t){return u(e,s,t)},this.from=function(t){return u(e,l,t)})}return d}()),Te.exports));function Le(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ie={decimals:2,mark:",",thousand:" ",suffix:" €"};function Pe(e,t){return De(b(b(b({},Ie),t),e%1==0?{decimals:0}:{})).to(e)}var Re="grid",Me=e.forwardRef(function(e,t){var n=e.className,i=e.hAlign,r=e.vAlign,o=e.tag,a=void 0===o?"div":o,s=e.justifyHeight,l=e.rowGapSize,c=e.columnGapSize,u=S(e,["className","hAlign","vAlign","tag","justifyHeight","rowGapSize","columnGapSize"]),d=A.apply(void 0,[Re,v(v(v(v({},"align-items-".concat(r),r),"justify-content-".concat(i),i),"".concat(Re,"--justify-height"),s),"".concat(Re,"--column-gap-").concat(c),c)].concat(x(Ae("".concat(Re,"-row-gap"),l)),[n])),h=a;return X.jsx(h,b({className:d,ref:t},u))});Me.displayName="Grid";var ze="grid__col",Fe=function(e){var t=e.className,n=e.align,i=e.tag,r=void 0===i?"div":i,o=e.size,a=S(e,["className","align","tag","size"]),s=Ae(ze,o),l=A.apply(void 0,[ze].concat(x(s.filter(Boolean)),[v({},"align-self-".concat(n),n),t])),c=r;return X.jsx(c,b({className:l},a))};Fe.displayName="GridCol";var Be="btn",Ue=e.forwardRef(function(e,t){var n=e.className,i=e.children,r=e.htmlType,o=void 0===r?"button":r,a=e.href,s=e.isActive,l=e.isDefault,c=e.isDisabled,u=e.colorScheme,d=e.size,h=e.isSquare,p=e.type,f=e.elemRef,m=S(e,["className","children","htmlType","href","isActive","isDefault","isDisabled","colorScheme","size","isSquare","type","elemRef"]),g=A(Be,v(v(v(v(v(v(v({},"".concat(Be,"--square"),h),"".concat(Be,"--").concat(d),d),"".concat(Be,"--").concat(p),p),"".concat(Be,"--default"),l),"is-dark","dark"===u),"is-light","light"===u),"is-active",s),n);if(a){var y=m;return X.jsx("a",b(b({href:a,className:g,"aria-disabled":c?"true":void 0,ref:f||t},y),{},{children:i}))}var x=m;return X.jsx("button",b(b({type:o,className:g,disabled:!!c||void 0,"aria-disabled":c?"true":void 0,ref:f||t},x),{},{children:i}))});Ue.displayName="Button";var Ve=Object.assign(Object.assign({},{xs:"0px",sm:"480px",md:"768px",lg:"992px",xl:"1240px",xxl:"1380px"}),{xxxl:"1920px"}),He=function(e){var t=e.className,n=e.src,i=e.alt,r=S(e,["className","src","alt"]),o=A("img",t);if("object"===N(n)){var a=Object.keys(n).sort(function(e,t){return parseInt(Ve[t])-parseInt(Ve[e])});return X.jsxs("picture",{className:o,children:[a.map(function(e){return"default"!==e&&X.jsx("source",{srcSet:n[e],media:"(min-width: ".concat(Ve[e],")")},e)}),X.jsx("img",b({src:n.default,alt:i},r))]})}return X.jsx("img",b({className:o,src:n,alt:i},r))};He.displayName="Image";var We=l(function(e,t){var n=e.className,i=S(e,["className"]),r=A("container",n);return X.jsx("div",b({className:r,ref:t},i))});We.displayName="Container";var qe="body-banner",$e=function(e){var t=e.className,n=e.colorScheme,i=e.size,r=e.color,o=e.imageUrl,a=e.title,s=e.description,l=e.buttonText,c=A(qe,{"is-dark":"dark"===n,"is-light":"light"===n,"is-small":"small"===i,"is-large":"large"===i,"is-gray":"gray"===r,"is-orange":"orange"===r},t);return X.jsx(We,{children:X.jsxs(Me,{className:c,children:[X.jsxs(Fe,{size:{xs:12,md:"small"===i?12:6},className:"".concat(qe,"__content"),children:["small"===i&&o&&X.jsx("div",{className:"".concat(qe,"__image"),children:X.jsx(He,{src:o||"",alt:"Body Banner"})}),X.jsxs("div",{className:"".concat(qe,"__content-inner ").concat("large"===i?"is-large":""),children:[X.jsxs("div",{children:[X.jsx("h3",{className:"mb-small",children:a}),X.jsx("p",{className:"h6 mb-none fullwidth",children:s})]}),X.jsx("div",{className:"".concat(qe,"__button ").concat("large"===i?"is-large":""),children:X.jsx(Ue,{size:"large",type:"fill",colorScheme:"light"===n?"light":"gray"!==r&&"orange"!==r?"dark":"light",className:"mb-none",children:l})})]})]}),"large"===i&&o&&X.jsx(Fe,{size:{xs:12,md:6},className:"".concat(qe,"__image"),children:X.jsx(He,{src:o||"",alt:"Body Banner",className:"is-large"})})]})})},Ge=function(e){var t=e.className,n=e.isCurrent,i=e.text,r=e.url,o=S(e,["className","isCurrent","text","url"]),a=A("osk-breadcrumbs__item",t);return r?X.jsx("li",{className:a,children:X.jsx("a",b(b(b({href:r,className:"osk-breadcrumbs__link"},n?{"aria-current":"page"}:{}),o),{},{children:i}))}):X.jsx("li",b(b({className:a},o),{},{children:i}))};Ge.displayName="BreadcrumbItem";var Ke="osk-breadcrumbs",Ye=function(e){var t=e.className,n=e.label,i=e.items,r=e.darkMode,o=S(e,["className","label","items","darkMode"]),a=A(Ke,t,{"osk-breadcrumbs--dark":r}),s=x(i).reverse().findIndex(function(e){return!!e.url}),l=-1===s?-1:i.length-1-s;return X.jsx("nav",b(b({"aria-label":n,className:a},o),{},{children:X.jsx("ol",{className:"".concat(Ke,"__container"),children:i.map(function(e,t){return c(Ge,b(b({},e),{},{key:e.text,isCurrent:!!e.url&&t===l}))})})}))};Ye.displayName="Breadcrumbs";var Xe=e.forwardRef(function(e,t){var n=e.iconName,i=e.iconPosition,r=void 0===i?"left":i,o=e.iconClassName,a=e.children,s=e.size,l=e.isSquare,c=S(e,["iconName","iconPosition","iconClassName","children","size","isSquare"]),u=function(e){var t=e.className,i=S(e,["className"]);return X.jsx(te,b({name:n,size:null!=s?s:"medium",className:A(o,t)},i))};return l?X.jsxs(Ue,b(b({size:s,isSquare:!0},c),{},{ref:t,children:[X.jsx(u,{}),X.jsx("span",{className:"visually-hidden",children:a})]})):X.jsxs(Ue,b(b({ref:t,size:s},c),{},{children:["left"===r&&X.jsx(u,{className:"btn__icon-left"}),a,"right"===r&&X.jsx(u,{className:"btn__icon-right"})]}))});Xe.displayName="IconButton";var Je=function(e){return X.jsx(Ue,b({type:"primary"},e))};Je.displayName="ButtonPrimary";var Qe=function(e){return X.jsx(Ue,b({type:"fill"},e))};Qe.displayName="ButtonFill";var Ze=function(e){return X.jsx(Ue,b({type:"ghost"},e))};Ze.displayName="ButtonGhost";var et="carousel",tt="".concat(et,"__viewport-wrapper"),nt="".concat(et,"__viewport"),it="".concat(et,"__blinds"),rt="".concat(et,"__track"),ot="".concat(et,"__slide"),at="".concat(et,"__prev"),st="".concat(et,"__next"),lt="".concat(et,"__pagination"),ct=".".concat(nt),ut=".".concat(rt),dt=".".concat(at),ht=".".concat(st),pt=".".concat(lt),ft=ot,mt=function(e){var t=e.className,n=e.children,i=S(e,["className","children"]),r=A(ft,t);return X.jsx("div",b(b({className:r},i),{},{children:n}))};mt.displayName="CarouselItem";var vt,gt={exports:{}};
16
+ /* @preserve
17
+ _____ __ _ __ _
18
+ / ___// /(_)___/ /___ ____ (_)___
19
+ / (_ // // // _ // -_)/ __/_ / /(_-<
20
+ \___//_//_/ \_,_/ \__//_/ (_)__/ //___/
21
+ |___/
2396
22
 
2397
- const SCOPE = 'data-a11y-dialog';
2398
- class A11yDialog {
2399
- $el;
2400
- id;
2401
- previouslyFocused;
2402
- shown;
2403
- constructor(element) {
2404
- this.$el = element;
2405
- this.id = this.$el.getAttribute(SCOPE) || this.$el.id;
2406
- this.previouslyFocused = null;
2407
- this.shown = false;
2408
- this.maintainFocus = this.maintainFocus.bind(this);
2409
- this.bindKeypress = this.bindKeypress.bind(this);
2410
- this.handleTriggerClicks = this.handleTriggerClicks.bind(this);
2411
- this.show = this.show.bind(this);
2412
- this.hide = this.hide.bind(this);
2413
- this.$el.setAttribute('aria-hidden', 'true');
2414
- this.$el.setAttribute('aria-modal', 'true');
2415
- this.$el.setAttribute('tabindex', '-1');
2416
- if (!this.$el.hasAttribute('role')) {
2417
- this.$el.setAttribute('role', 'dialog');
2418
- }
2419
- document.addEventListener('click', this.handleTriggerClicks, true);
2420
- }
2421
- /**
2422
- * Destroy the current instance (after making sure the dialog has been hidden)
2423
- * and remove all associated listeners from dialog openers and closers
2424
- */
2425
- destroy() {
2426
- // Dispatch a `destroy` event
2427
- const destroyEvent = this.fire('destroy');
2428
- // If the event was prevented, do not continue with the normal behavior
2429
- if (destroyEvent.defaultPrevented)
2430
- return this;
2431
- // Hide the dialog to avoid destroying an open instance
2432
- this.hide();
2433
- // Remove the click event delegates for our openers and closers
2434
- document.removeEventListener('click', this.handleTriggerClicks, true);
2435
- // Clone and replace the dialog element to prevent memory leaks caused by
2436
- // event listeners that the author might not have cleaned up.
2437
- this.$el.replaceWith(this.$el.cloneNode(true));
2438
- return this;
2439
- }
2440
- /**
2441
- * Show the dialog element, trap the current focus within it, listen for some
2442
- * specific key presses and fire all registered callbacks for `show` event
2443
- */
2444
- show(event) {
2445
- // If the dialog is already open, abort
2446
- if (this.shown)
2447
- return this;
2448
- // Dispatch a `show` event
2449
- const showEvent = this.fire('show', event);
2450
- // If the event was prevented, do not continue with the normal behavior
2451
- if (showEvent.defaultPrevented)
2452
- return this;
2453
- // Keep a reference to the currently focused element to be able to restore
2454
- // it later
2455
- this.shown = true;
2456
- this.$el.removeAttribute('aria-hidden');
2457
- this.previouslyFocused = getActiveEl();
2458
- // Due to a long lasting bug in Safari, clicking an interactive element
2459
- // (like a <button>) does *not* move the focus to that element, which means
2460
- // `document.activeElement` is whatever element is currently focused (like
2461
- // an <input>), or the <body> element otherwise. We can work around that
2462
- // problem by checking whether the focused element is the <body>, and if it,
2463
- // store the click event target.
2464
- // See: https://bugs.webkit.org/show_bug.cgi?id=22261
2465
- if (this.previouslyFocused?.tagName === 'BODY' && event?.target) {
2466
- this.previouslyFocused = event.target;
2467
- }
2468
- // Set the focus to the dialog element
2469
- // See: https://github.com/KittyGiraudel/a11y-dialog/pull/583
2470
- if (event?.type === 'focus') {
2471
- this.maintainFocus();
2472
- }
2473
- else {
2474
- focus(this.$el);
2475
- }
2476
- // Bind a focus event listener to the body element to make sure the focus
2477
- // stays trapped inside the dialog while open, and start listening for some
2478
- // specific key presses (TAB and ESC)
2479
- document.body.addEventListener('focus', this.maintainFocus, true);
2480
- this.$el.addEventListener('keydown', this.bindKeypress, true);
2481
- return this;
2482
- }
2483
- /**
2484
- * Hide the dialog element, restore the focus to the previously active
2485
- * element, stop listening for some specific key presses and fire all
2486
- * registered callbacks for `hide` event
2487
- */
2488
- hide(event) {
2489
- // If the dialog is already closed, abort
2490
- if (!this.shown)
2491
- return this;
2492
- // Dispatch a `hide` event
2493
- const hideEvent = this.fire('hide', event);
2494
- // If the event was prevented, do not continue with the normal behavior
2495
- if (hideEvent.defaultPrevented)
2496
- return this;
2497
- this.shown = false;
2498
- this.$el.setAttribute('aria-hidden', 'true');
2499
- // Remove the focus event listener to the body element and stop listening
2500
- // for specific key presses
2501
- document.body.removeEventListener('focus', this.maintainFocus, true);
2502
- this.$el.removeEventListener('keydown', this.bindKeypress, true);
2503
- // Ensure the previously focused element (if any) has a `focus` method
2504
- // before attempting to call it to account for SVG elements
2505
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/108
2506
- this.previouslyFocused?.focus?.();
2507
- return this;
2508
- }
2509
- /**
2510
- * Register a new callback for the given event type
2511
- */
2512
- on(type, handler, options) {
2513
- this.$el.addEventListener(type, handler, options);
2514
- return this;
2515
- }
2516
- /**
2517
- * Unregister an existing callback for the given event type
2518
- */
2519
- off(type, handler, options) {
2520
- this.$el.removeEventListener(type, handler, options);
2521
- return this;
2522
- }
2523
- /**
2524
- * Dispatch and return a custom event from the DOM element associated with
2525
- * this dialog; this allows authors to listen for and respond to the events
2526
- * in their own code
2527
- */
2528
- fire(type, event) {
2529
- const customEvent = new CustomEvent(type, {
2530
- detail: event,
2531
- cancelable: true,
2532
- });
2533
- this.$el.dispatchEvent(customEvent);
2534
- return customEvent;
2535
- }
2536
- /**
2537
- * Add a delegated event listener for when elememts that open or close the
2538
- * dialog are clicked, and call `show` or `hide`, respectively
2539
- */
2540
- handleTriggerClicks(event) {
2541
- // We need to retrieve the click target while accounting for Shadow DOM.
2542
- // When within a web component, `event.target` is the shadow root (e.g.
2543
- // `<my-dialog>`), so we need to use `event.composedPath()` to get the click
2544
- // target
2545
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/582
2546
- const target = event.composedPath()[0];
2547
- const opener = closest(`[${SCOPE}-show="${this.id}"]`, target);
2548
- const explicitCloser = closest(`[${SCOPE}-hide="${this.id}"]`, target);
2549
- const implicitCloser = closest(`[${SCOPE}-hide]`, target) &&
2550
- closest('[aria-modal="true"]', target) === this.$el;
2551
- // We use `closest(..)` (instead of `matches(..)`) so that clicking an
2552
- // element nested within a dialog opener does cause the dialog to open, and
2553
- // we use our custom `closest(..)` function so that it can cross shadow
2554
- // boundaries
2555
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/712
2556
- if (opener)
2557
- this.show(event);
2558
- if (explicitCloser || implicitCloser)
2559
- this.hide(event);
2560
- }
2561
- /**
2562
- * Private event handler used when listening to some specific key presses
2563
- * (namely ESC and TAB)
2564
- */
2565
- bindKeypress(event) {
2566
- // This is an escape hatch in case there are nested open dialogs, so that
2567
- // only the top most dialog gets interacted with (`closest` is basically
2568
- // `Element.prototype.closest()` accounting for Shadow DOM subtrees)
2569
- if (closest('[aria-modal="true"]', getActiveEl()) !== this.$el) {
2570
- return;
2571
- }
2572
- let hasOpenPopover = false;
2573
- try {
2574
- hasOpenPopover = !!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open');
2575
- }
2576
- catch {
2577
- // Run that DOM query in a try/catch because not all browsers support the
2578
- // `:popover-open` selector, which would cause the whole expression to
2579
- // fail
2580
- // See: https://caniuse.com/mdn-css_selectors_popover-open
2581
- // See: https://github.com/KittyGiraudel/a11y-dialog/pull/578#discussion_r1343215149
2582
- }
2583
- // If the dialog is shown and the ESC key is pressed, prevent any further
2584
- // effects from the ESC key and hide the dialog, unless:
2585
- // - its role is `alertdialog`, which means it should be modal
2586
- // - or it contains an open popover, in which case ESC should close it
2587
- if (event.key === 'Escape' &&
2588
- this.$el.getAttribute('role') !== 'alertdialog' &&
2589
- !hasOpenPopover) {
2590
- event.preventDefault();
2591
- this.hide(event);
2592
- }
2593
- // If the dialog is shown and the TAB key is pressed, make sure the focus
2594
- // stays trapped within the dialog element
2595
- if (event.key === 'Tab') {
2596
- trapTabKey(this.$el, event);
2597
- }
2598
- }
2599
- /**
2600
- * If the dialog is shown and the focus is not within a dialog element (either
2601
- * this one or another one in case of nested dialogs) or an element with the
2602
- * ignore attribute, move it back to the dialog container
2603
- * See: https://github.com/KittyGiraudel/a11y-dialog/issues/177
2604
- */
2605
- maintainFocus() {
2606
- // We use `getActiveEl()` and not `event.target` here because the latter can
2607
- // be a shadow root. This can happen when having a focusable element after
2608
- // slotted content: tabbing out of it causes this focus listener to trigger
2609
- // with the shadow root as a target event. In such a case, the focus would
2610
- // be incorrectly moved to the dialog, which shouldn’t happen. Getting the
2611
- // active element (while accounting for Shadow DOM) avoids that problem.
2612
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/778
2613
- const target = getActiveEl();
2614
- if (!closest(`[aria-modal="true"], [${SCOPE}-ignore-focus-trap]`, target)) {
2615
- focus(this.$el);
2616
- }
2617
- }
2618
- }
2619
-
2620
- function instantiateDialogs() {
2621
- for (const el of document.querySelectorAll('[data-a11y-dialog]')) {
2622
- new A11yDialog(el);
2623
- }
2624
- }
2625
- if (typeof document !== 'undefined') {
2626
- if (document.readyState === 'loading') {
2627
- document.addEventListener('DOMContentLoaded', instantiateDialogs);
2628
- }
2629
- else {
2630
- instantiateDialogs();
2631
- }
2632
- }
23
+ Version: 1.7.4
24
+ Author: Nick Piscitelli (pickykneee)
25
+ Website: https://nickpiscitelli.com
26
+ Documentation: http://nickpiscitelli.github.io/Glider.js
27
+ License: MIT License
28
+ Release Date: October 25th, 2018
2633
29
 
30
+ */var bt=(vt||(vt=1,gt.exports=function(){var e="undefined"!=typeof window?window:this,t=e.Glider=function(t,n){var i=this;if(t._glider)return t._glider;if(i.ele=t,i.ele._glider=i,i.opt=Object.assign({},{slidesToScroll:1,slidesToShow:1,resizeLock:!0,duration:.5,easing:function(e,t,n,i,r){return i*(t/=r)*t+n},classes:{glider:"glider",track:"glider-track",slide:"glider-slide",drag:"drag",draggable:"draggable",disabled:"disabled",active:"active",visible:"visible",dot:"glider-dot",dots:"glider-dots"}},n),i.animate_id=i.page=i.slide=0,i.arrows={},i._opt=i.opt,i.opt.skipTrack)i.track=i.ele.children[0];else for(i.track=document.createElement("div"),i.ele.appendChild(i.track);1!==i.ele.children.length;)i.track.appendChild(i.ele.children[0]);i.ele.classList.add(i.opt.classes.glider),i.track.classList.add(i.opt.classes.track),i.init(),i.resize=i.init.bind(i,!0),i.event(i.ele,"add",{scroll:i.updateControls.bind(i)}),i.event(e,"add",{resize:i.resize})},n=t.prototype;return n.init=function(e,t){var n=this,i=0,r=0;n.slides=n.track.children,[].forEach.call(n.slides,function(e,t){e.classList.add("glider-slide"),e.setAttribute("data-gslide",t)}),n.containerWidth=n.ele.clientWidth;var o=n.settingsBreakpoint();if(t||(t=o),"auto"===n.opt.slidesToShow||void 0!==n.opt._autoSlide){var a=n.containerWidth/n.opt.itemWidth;n.opt._autoSlide=n.opt.slidesToShow=n.opt.exactWidth?a:Math.max(1,Math.floor(a))}"auto"===n.opt.slidesToScroll&&(n.opt.slidesToScroll=Math.floor(n.opt.slidesToShow)),n.itemWidth=n.opt.exactWidth?n.opt.itemWidth:n.containerWidth/n.opt.slidesToShow,[].forEach.call(n.slides,function(e){e.style.height="auto",e.style.width=n.itemWidth+"px",i+=n.itemWidth,r=Math.max(e.offsetHeight,r)}),n.track.style.width=i+"px",n.trackWidth=i,n.isDrag=!1,n.preventClick=!1,n.opt.resizeLock&&n.scrollTo(n.slide*n.itemWidth,0),(o||t)&&(n.bindArrows(),n.buildDots(),n.bindDrag()),n.updateControls(),n.emit(e?"refresh":"loaded")},n.bindDrag=function(){var e=this;e.mouse=e.mouse||e.handleMouse.bind(e);var t=function(){e.mouseDown=void 0,e.ele.classList.remove(e.opt.classes.drag),e.isDrag&&(e.preventClick=!0),e.isDrag=!1},n={mouseup:t,mouseleave:t,mousedown:function(t){t.preventDefault(),t.stopPropagation(),e.mouseDown=t.clientX,e.ele.classList.add(e.opt.classes.drag)},mousemove:e.mouse,click:function(t){e.preventClick&&(t.preventDefault(),t.stopPropagation()),e.preventClick=!1}};e.ele.classList.toggle(e.opt.classes.draggable,!0===e.opt.draggable),e.event(e.ele,"remove",n),e.opt.draggable&&e.event(e.ele,"add",n)},n.buildDots=function(){var e=this;if(e.opt.dots){if("string"==typeof e.opt.dots?e.dots=document.querySelector(e.opt.dots):e.dots=e.opt.dots,e.dots){e.dots.innerHTML="",e.dots.classList.add(e.opt.classes.dots);for(var t=0;t<Math.ceil(e.slides.length/Math.floor(e.opt.slidesToShow));++t){var n=document.createElement("button");n.dataset.index=t,n.setAttribute("aria-label","Page "+(t+1)),n.setAttribute("role","tab"),n.className=e.opt.classes.dot+" "+(t?"":e.opt.classes.active),e.event(n,"add",{click:e.scrollItem.bind(e,t,!0)}),e.dots.appendChild(n)}}}else e.dots&&(e.dots.innerHTML="")},n.bindArrows=function(){var e=this;e.opt.arrows?["prev","next"].forEach(function(t){var n=e.opt.arrows[t];n&&("string"==typeof n&&(n=document.querySelector(n)),n&&(n._func=n._func||e.scrollItem.bind(e,t),e.event(n,"remove",{click:n._func}),e.event(n,"add",{click:n._func}),e.arrows[t]=n))}):Object.keys(e.arrows).forEach(function(t){var n=e.arrows[t];e.event(n,"remove",{click:n._func})})},n.updateControls=function(e){var t=this;e&&!t.opt.scrollPropagate&&e.stopPropagation();var n=t.containerWidth>=t.trackWidth;t.opt.rewind||(t.arrows.prev&&(t.arrows.prev.classList.toggle(t.opt.classes.disabled,t.ele.scrollLeft<=0||n),t.arrows.prev.classList.contains("disabled")?t.arrows.prev.setAttribute("aria-disabled",!0):t.arrows.prev.setAttribute("aria-disabled",!1)),t.arrows.next&&(t.arrows.next.classList.toggle(t.opt.classes.disabled,Math.ceil(t.ele.scrollLeft+t.containerWidth)>=Math.floor(t.trackWidth)||n),t.arrows.next.classList.contains("disabled")?t.arrows.next.setAttribute("aria-disabled",!0):t.arrows.next.setAttribute("aria-disabled",!1))),t.slide=Math.round(t.ele.scrollLeft/t.itemWidth),t.page=Math.round(t.ele.scrollLeft/(t.itemWidth*Math.floor(t.opt.slidesToShow)));var i=t.slide+Math.floor(Math.floor(t.opt.slidesToShow)/2),r=Math.floor(t.opt.slidesToShow)%2?0:i+1;1===Math.floor(t.opt.slidesToShow)&&(r=0),t.ele.scrollLeft+t.containerWidth>=Math.floor(t.trackWidth)&&(t.page=t.dots?t.dots.children.length-1:0),[].forEach.call(t.slides,function(e,n){var o=e.classList,a=o.contains(t.opt.classes.visible),s=t.ele.scrollLeft,l=t.ele.scrollLeft+t.containerWidth,c=t.itemWidth*n,u=c+t.itemWidth;[].forEach.call(o,function(e){/^left|right/.test(e)&&o.remove(e)}),o.toggle("active",t.slide===n),i===n||r&&r===n?o.add("center"):(o.remove("center"),o.add([n<i?"left":"right",Math.abs(n-(n<i?i:r||i))].join("-")));var d=Math.ceil(c)>=Math.floor(s)&&Math.floor(u)<=Math.ceil(l);o.toggle("visible",d),d!==a&&t.emit("slide-"+(d?"visible":"hidden"),{slide:n})}),t.dots&&[].forEach.call(t.dots.children,function(e,n){e.classList.toggle(t.opt.classes.active,t.page===n)}),e&&t.opt.scrollLock&&(clearTimeout(t.scrollLock),t.scrollLock=setTimeout(function(){clearTimeout(t.scrollLock),Math.abs(t.ele.scrollLeft/t.itemWidth-t.slide)>.02&&(t.mouseDown||t.trackWidth>t.containerWidth+t.ele.scrollLeft&&t.scrollItem(t.getCurrentSlide()))},t.opt.scrollLockDelay||250))},n.getCurrentSlide=function(){var e=this;return e.round(e.ele.scrollLeft/e.itemWidth)},n.scrollItem=function(e,t,n){n&&n.preventDefault();var i=this,r=e;if(++i.animate_id,!0===t)e*=Math.floor(i.opt.slidesToShow),e*=i.itemWidth;else{if("string"==typeof e){var o="prev"===e;if(e=i.opt.slidesToScroll%1||i.opt.slidesToShow%1?i.getCurrentSlide():i.slide,o?e-=i.opt.slidesToScroll:e+=i.opt.slidesToScroll,i.opt.rewind){var a=i.ele.scrollLeft;e=o&&!a?i.slides.length:!o&&a+i.containerWidth>=Math.floor(i.trackWidth)?0:e}}e=Math.max(Math.min(e,i.slides.length),0),i.slide=e,e=i.itemWidth*e}return i.scrollTo(e,i.opt.duration*Math.abs(i.ele.scrollLeft-e),function(){i.updateControls(),i.emit("animated",{value:r,type:"string"==typeof r?"arrow":t?"dot":"slide"})}),!1},n.settingsBreakpoint=function(){var t=this,n=t._opt.responsive;if(n){n.sort(function(e,t){return t.breakpoint-e.breakpoint});for(var i=0;i<n.length;++i){var r=n[i];if(e.innerWidth>=r.breakpoint)return t.breakpoint!==r.breakpoint&&(t.opt=Object.assign({},t._opt,r.settings),t.breakpoint=r.breakpoint,!0)}}var o=0!==t.breakpoint;return t.opt=Object.assign({},t._opt),t.breakpoint=0,o},n.scrollTo=function(t,n,i){var r=this,o=(new Date).getTime(),a=r.animate_id,s=function(){var l=(new Date).getTime()-o;r.ele.scrollLeft=r.ele.scrollLeft+(t-r.ele.scrollLeft)*r.opt.easing(0,l,0,1,n),l<n&&a===r.animate_id?e.requestAnimationFrame(s):(r.ele.scrollLeft=t,i&&i.call(r))};e.requestAnimationFrame(s)},n.removeItem=function(e){var t=this;t.slides.length&&(t.track.removeChild(t.slides[e]),t.refresh(!0),t.emit("remove"))},n.addItem=function(e){var t=this;t.track.appendChild(e),t.refresh(!0),t.emit("add")},n.handleMouse=function(e){var t=this;t.mouseDown&&(t.isDrag=!0,t.ele.scrollLeft+=(t.mouseDown-e.clientX)*(t.opt.dragVelocity||3.3),t.mouseDown=e.clientX)},n.round=function(e){var t=1/(this.opt.slidesToScroll%1||1);return Math.round(e*t)/t},n.refresh=function(e){this.init(!0,e)},n.setOption=function(e,t){var n=this;n.breakpoint&&!t?n._opt.responsive.forEach(function(t){t.breakpoint===n.breakpoint&&(t.settings=Object.assign({},t.settings,e))}):n._opt=Object.assign({},n._opt,e),n.breakpoint=0,n.settingsBreakpoint()},n.destroy=function(){var t=this,n=t.ele.cloneNode(!0),i=function(e){e.removeAttribute("style"),[].forEach.call(e.classList,function(t){/^glider/.test(t)&&e.classList.remove(t)})};n.children[0].outerHTML=n.children[0].innerHTML,i(n),[].forEach.call(n.getElementsByTagName("*"),i),t.ele.parentNode.replaceChild(n,t.ele),t.event(e,"remove",{resize:t.resize}),t.emit("destroy")},n.emit=function(t,n){var i=this,r=new e.CustomEvent("glider-"+t,{bubbles:!i.opt.eventPropagate,detail:n});i.ele.dispatchEvent(r)},n.event=function(e,t,n){var i=e[t+"EventListener"].bind(e);Object.keys(n).forEach(function(e){i(e,n[e])})},t}()),gt.exports),yt=k(bt),xt="top",wt="bottom",Nt="right",_t="left",St="auto",kt=[xt,wt,Nt,_t],jt="start",Et="end",Ot="viewport",At="popper",Ct=kt.reduce(function(e,t){return e.concat([t+"-"+jt,t+"-"+Et])},[]),Tt=[].concat(kt,[St]).reduce(function(e,t){return e.concat([t,t+"-"+jt,t+"-"+Et])},[]),Dt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Lt(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){return e instanceof It(e).Element||e instanceof Element}function Rt(e){return e instanceof It(e).HTMLElement||e instanceof HTMLElement}function Mt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof It(e).ShadowRoot||e instanceof ShadowRoot)}var zt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];Rt(r)&&Lt(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Rt(i)&&Lt(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ft(e){return e.split("-")[0]}var Bt=Math.max,Ut=Math.min,Vt=Math.round;function Ht(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wt(){return!/^((?!chrome|android).)*safari/i.test(Ht())}function qt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&Rt(e)&&(r=e.offsetWidth>0&&Vt(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Vt(i.height)/e.offsetHeight||1);var a=(Pt(e)?It(e):window).visualViewport,s=!Wt()&&n,l=(i.left+(s&&a?a.offsetLeft:0))/r,c=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function $t(e){var t=qt(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Gt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mt(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Kt(e){return It(e).getComputedStyle(e)}function Yt(e){return["table","td","th"].indexOf(Lt(e))>=0}function Xt(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jt(e){return"html"===Lt(e)?e:e.assignedSlot||e.parentNode||(Mt(e)?e.host:null)||Xt(e)}function Qt(e){return Rt(e)&&"fixed"!==Kt(e).position?e.offsetParent:null}function Zt(e){for(var t=It(e),n=Qt(e);n&&Yt(n)&&"static"===Kt(n).position;)n=Qt(n);return n&&("html"===Lt(n)||"body"===Lt(n)&&"static"===Kt(n).position)?t:n||function(e){var t=/firefox/i.test(Ht());if(/Trident/i.test(Ht())&&Rt(e)&&"fixed"===Kt(e).position)return null;var n=Jt(e);for(Mt(n)&&(n=n.host);Rt(n)&&["html","body"].indexOf(Lt(n))<0;){var i=Kt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function en(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tn(e,t,n){return Bt(e,Ut(t,n))}function nn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function rn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var on={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ft(n.placement),l=en(s),c=[_t,Nt].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return nn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:rn(e,kt))}(r.padding,n),d=$t(o),h="y"===l?xt:_t,p="y"===l?wt:Nt,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],v=Zt(o),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=f/2-m/2,y=u[h],x=g-d[c]-u[p],w=g/2-d[c]/2+b,N=tn(y,w,x),_=l;n.modifiersData[i]=((t={})[_]=N,t.centerOffset=N-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Gt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function an(e){return e.split("-")[1]}var sn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ln(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,p=void 0===h?0:h,f=a.y,m=void 0===f?0:f,v="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=_t,x=xt,w=window;if(c){var N=Zt(n),_="clientHeight",S="clientWidth";if(N===It(n)&&"static"!==Kt(N=Xt(n)).position&&"absolute"===s&&(_="scrollHeight",S="scrollWidth"),r===xt||(r===_t||r===Nt)&&o===Et)x=wt,m-=(d&&N===w&&w.visualViewport?w.visualViewport.height:N[_])-i.height,m*=l?1:-1;if(r===_t||(r===xt||r===wt)&&o===Et)y=Nt,p-=(d&&N===w&&w.visualViewport?w.visualViewport.width:N[S])-i.width,p*=l?1:-1}var k,j=Object.assign({position:s},c&&sn),E=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:Vt(n*r)/r||0,y:Vt(i*r)/r||0}}({x:p,y:m},It(n)):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},j,((k={})[x]=b?"0":"",k[y]=g?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},j,((t={})[x]=b?m+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var cn={passive:!0};var un={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(e){return e.replace(/left|right|bottom|top/g,function(e){return un[e]})}var hn={start:"end",end:"start"};function pn(e){return e.replace(/start|end/g,function(e){return hn[e]})}function fn(e){var t=It(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mn(e){return qt(Xt(e)).left+fn(e).scrollLeft}function vn(e){var t=Kt(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function gn(e){return["html","body","#document"].indexOf(Lt(e))>=0?e.ownerDocument.body:Rt(e)&&vn(e)?e:gn(Jt(e))}function bn(e,t){var n;void 0===t&&(t=[]);var i=gn(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=It(i),a=r?[o].concat(o.visualViewport||[],vn(i)?i:[]):i,s=t.concat(a);return r?s:s.concat(bn(Jt(a)))}function yn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xn(e,t,n){return t===Ot?yn(function(e,t){var n=It(e),i=Xt(e),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;var c=Wt();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s+mn(e),y:l}}(e,n)):Pt(t)?function(e,t){var n=qt(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):yn(function(e){var t,n=Xt(e),i=fn(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=Bt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Bt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+mn(e),l=-i.scrollTop;return"rtl"===Kt(r||n).direction&&(s+=Bt(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(Xt(e)))}function wn(e,t,n,i){var r="clippingParents"===t?function(e){var t=bn(Jt(e)),n=["absolute","fixed"].indexOf(Kt(e).position)>=0&&Rt(e)?Zt(e):e;return Pt(n)?t.filter(function(e){return Pt(e)&&Gt(e,n)&&"body"!==Lt(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(t,n){var r=xn(e,n,i);return t.top=Bt(r.top,t.top),t.right=Ut(r.right,t.right),t.bottom=Ut(r.bottom,t.bottom),t.left=Bt(r.left,t.left),t},xn(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Nn(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?Ft(r):null,a=r?an(r):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case xt:t={x:s,y:n.y-i.height};break;case wt:t={x:s,y:n.y+n.height};break;case Nt:t={x:n.x+n.width,y:l};break;case _t:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?en(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case jt:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Et:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function _n(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Ot:c,d=n.elementContext,h=void 0===d?At:d,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,v=void 0===m?0:m,g=nn("number"!=typeof v?v:rn(v,kt)),b=h===At?"reference":At,y=e.rects.popper,x=e.elements[f?b:h],w=wn(Pt(x)?x:x.contextElement||Xt(e.elements.popper),l,u,a),N=qt(e.elements.reference),_=Nn({reference:N,element:y,placement:r}),S=yn(Object.assign({},y,_)),k=h===At?S:N,j={top:w.top-k.top+g.top,bottom:k.bottom-w.bottom+g.bottom,left:w.left-k.left+g.left,right:k.right-w.right+g.right},E=e.modifiersData.offset;if(h===At&&E){var O=E[r];Object.keys(j).forEach(function(e){var t=[Nt,wt].indexOf(e)>=0?1:-1,n=[xt,wt].indexOf(e)>=0?"y":"x";j[e]+=O[n]*t})}return j}var Sn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=Ft(v),b=l||(g===v||!f?[dn(v)]:function(e){if(Ft(e)===St)return[];var t=dn(e);return[pn(e),t,pn(t)]}(v)),y=[v].concat(b).reduce(function(e,n){return e.concat(Ft(n)===St?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Tt:l,u=an(i),d=u?s?Ct:Ct.filter(function(e){return an(e)===u}):kt,h=d.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=d);var p=h.reduce(function(t,n){return t[n]=_n(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[Ft(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),x=t.rects.reference,w=t.rects.popper,N=new Map,_=!0,S=y[0],k=0;k<y.length;k++){var j=y[k],E=Ft(j),O=an(j)===jt,A=[xt,wt].indexOf(E)>=0,C=A?"width":"height",T=_n(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),D=A?O?Nt:_t:O?wt:xt;x[C]>w[C]&&(D=dn(D));var L=dn(D),I=[];if(o&&I.push(T[E]<=0),s&&I.push(T[D]<=0,T[L]<=0),I.every(function(e){return e})){S=j,_=!1;break}N.set(j,I)}if(_)for(var P=function(e){var t=y.find(function(t){var n=N.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function kn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function jn(e){return[xt,Nt,wt,_t].some(function(t){return e[t]>=0})}var En={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,a=Tt.reduce(function(e,n){return e[n]=function(e,t,n){var i=Ft(e),r=[_t,xt].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[_t,Nt].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}};var On={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,v=_n(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Ft(t.placement),b=an(t.placement),y=!b,x=en(g),w="x"===x?"y":"x",N=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,j="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(N){if(o){var A,C="y"===x?xt:_t,T="y"===x?wt:Nt,D="y"===x?"height":"width",L=N[x],I=L+v[C],P=L-v[T],R=p?-S[D]/2:0,M=b===jt?_[D]:S[D],z=b===jt?-S[D]:-_[D],F=t.elements.arrow,B=p&&F?$t(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=U[C],H=U[T],W=tn(0,_[D],B[D]),q=y?_[D]/2-R-W-V-j.mainAxis:M-W-V-j.mainAxis,$=y?-_[D]/2+R+W+H+j.mainAxis:z+W+H+j.mainAxis,G=t.elements.arrow&&Zt(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Y=null!=(A=null==E?void 0:E[x])?A:0,X=L+$-Y,J=tn(p?Ut(I,L+q-Y-K):I,L,p?Bt(P,X):P);N[x]=J,O[x]=J-L}if(s){var Q,Z="x"===x?xt:_t,ee="x"===x?wt:Nt,te=N[w],ne="y"===w?"height":"width",ie=te+v[Z],re=te-v[ee],oe=-1!==[xt,_t].indexOf(g),ae=null!=(Q=null==E?void 0:E[w])?Q:0,se=oe?ie:te-_[ne]-S[ne]-ae+j.altAxis,le=oe?te+_[ne]+S[ne]-ae-j.altAxis:re,ce=p&&oe?function(e,t,n){var i=tn(e,t,n);return i>n?n:i}(se,te,le):tn(p?se:ie,te,p?le:re);N[w]=ce,O[w]=ce-te}t.modifiersData[i]=O}},requiresIfExists:["offset"]};function An(e,t,n){void 0===n&&(n=!1);var i,r,o=Rt(t),a=Rt(t)&&function(e){var t=e.getBoundingClientRect(),n=Vt(t.width)/e.offsetWidth||1,i=Vt(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),s=Xt(t),l=qt(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==Lt(t)||vn(s))&&(c=(i=t)!==It(i)&&Rt(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:fn(i)),Rt(t)?((u=qt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=mn(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Cn(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var Tn={placement:"bottom",modifiers:[],strategy:"absolute"};function Dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Ln(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?Tn:r;return function(e,t,n){void 0===n&&(n=o);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tn,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},o,s.options,r),s.scrollParents={reference:Pt(e)?bn(e):e.contextElement?bn(e.contextElement):[],popper:bn(t)};var a,c,h=function(e){var t=Cn(e);return Dt.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,s.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=h.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:s,name:t,instance:u,options:i}),a=function(){};l.push(o||a)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Dn(t,n)){s.rects={reference:An(t,Zt(n),"fixed"===s.options.strategy),popper:$t(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options,l=void 0===a?{}:a,d=r.name;"function"==typeof o&&(s=o({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){d(),c=!0}};if(!Dn(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var In=Ln({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,l=It(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,cn)}),s&&l.addEventListener("resize",n.update,cn),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,cn)}),s&&l.removeEventListener("resize",n.update,cn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Nn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Ft(t.placement),variation:an(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ln(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ln(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},zt,En,Sn,On,on,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=_n(t,{elementContext:"reference"}),s=_n(t,{altBoundary:!0}),l=kn(a,i),c=kn(s,r,o),u=jn(l),d=jn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Pn({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:r="hidden",displayValue:o="block"}){if("timeout"===n&&"number"!=typeof i)return void console.error("\n When calling transitionHiddenElement with waitMode set to timeout,\n you must pass in a number for timeoutDuration.\n ");window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const a=t=>{t.target===e&&(s(),e.removeEventListener("transitionend",a))},s=()=>{"display"===r?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",a),this.timeout&&clearTimeout(this.timeout),"display"===r?e.style.display=o:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",a):"timeout"===n?this.timeout=setTimeout(()=>{s()},i):s(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,r=[...e.classList].includes(t);return n||i||!r},timeout:null}}var Rn={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:function(e){var t=e.placement;return t.includes("start")?[-10,0]:t.includes("end")?[10,0]:[0,0]}}}]}},Mn=function(){return m(function e(t,n){var i;return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},Rn),n),this.config.popperOptions=Object.assign(Object.assign({},Rn.popperOptions),(null==n?void 0:n.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(x(Rn.popperOptions.modifiers),x((null===(i=null==n?void 0:n.popperOptions)||void 0===i?void 0:i.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.element.ODS_Tooltip=this,this.init(),this},[{key:"wrapLastWordAndButton",value:function(){var e,t;if(this.element.hasAttribute("data-tooltip-keep-with-text")){var n=this.trigger.previousSibling;if(n&&n.nodeType===Node.TEXT_NODE){var i=((null===(e=n.textContent)||void 0===e?void 0:e.trim())||"").split(" "),r=i.pop(),o=i.join(" ");n.textContent=o+" ";var a=document.createElement("span");a.className="text-nowrap",a.innerHTML="".concat(r," ").concat(this.trigger.outerHTML),null===(t=this.trigger.parentNode)||void 0===t||t.replaceChild(a,this.trigger),this.trigger=a.querySelector("[data-tooltip-trigger]")}else console.warn("Previous sibling is not a text node.")}}},{key:"init",value:function(){this.trigger=document.querySelector("[data-tooltip-trigger][aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.trigger||console.warn("tooltip trigger element is not defined and the tooltip cannot be attached. Please provide an element with [aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer?this.rootContainer.appendChild(this.element):console.warn("rootContainer element is not defined. Tooltips will be placed inside content which can affect positioning. Please provide rootContainer element (should be placed outside of main content, usually in end of <body /> tag)");var e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=In(this.trigger,this.element,this.config.popperOptions),this.transitioner=Pn({element:this.element,visibleClass:"is-visible"}),this.trigger.addEventListener("mouseenter",this.handleVisibility),this.trigger.addEventListener("mouseleave",this.handleVisibility),this.trigger.addEventListener("focus",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}},{key:"handleVisibility",value:function(e){("mouseenter"!==e.type&&"focus"!==e.type||this.show(),"blur"===e.type&&this.hide(),"mouseleave"===e.type)&&(this.shouldClose(e)&&this.hide())}},{key:"shouldClose",value:function(e){var t=this,n=e.relatedreference||e.toElement||e.relatedTarget,i=function(e){var n=e.relatedreference||e.toElement||e.relatedTarget;t.element.removeEventListener("mouseleave",i),t.trigger.contains(n)||t.hide()};return!this.element.contains(n)||(this.element.addEventListener("mouseleave",i),!1)}},{key:"onKeydown",value:function(e){C.ESC.includes(e.key)&&this.hide()}},{key:"show",value:function(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.instance.forceUpdate(),document.addEventListener("keydown",this.onKeydown)}},{key:"hide",value:function(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),document.removeEventListener("keydown",this.onKeydown)}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("mouseenter",this.handleVisibility),this.trigger.removeEventListener("mouseleave",this.handleVisibility),this.trigger.removeEventListener("focus",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}}])}(),zn={arrows:{prev:dt,next:ht},slidesToShow:1.2,dots:pt,skipTrack:!0,classes:{glider:"carousel__viewport",track:"carousel__track",slide:"carousel__slide",drag:"is-dragging",draggable:"is-draggable",disabled:"is-disabled",active:"is-active",visible:"is-visible",dots:"carousel__pagination",dot:"carousel__pagination-item"}},Fn=function(){return m(function e(t,n){return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},zn),n),this.fixPaginationButtonType=this.fixPaginationButtonType.bind(this),this.handleScroll=this.handleScroll.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.element.ODS_Carousel=this,this.init(),this},[{key:"init",value:function(){this.getElements(),this.element.hasAttribute("data-glider-options")&&this.getCustomOptions(),this.element.addEventListener("glider-loaded",this.fixPaginationButtonType),this.element.addEventListener("glider-loaded",this.handleScroll),this.element.addEventListener("glider-refresh",this.fixPaginationButtonType),this.viewport.addEventListener("scroll",this.handleScroll),this.instance=new yt(this.viewport,this.config)}},{key:"getElements",value:function(){this.viewport=this.element.querySelector(ct),this.track=this.viewport.querySelector(ut);var e={arrows:{prev:this.element.querySelector(dt),next:this.element.querySelector(ht)},dots:this.element.querySelector(pt)};this.config=Object.assign(Object.assign({},this.config),e)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-glider-options");if(e){var t=JSON.parse(e);this.config=Object.assign(Object.assign({},this.config),t)}}},{key:"fixPaginationButtonType",value:function(){Array.from(this.element.querySelectorAll("".concat(pt," > *"))).forEach(function(e){return e.setAttribute("type","button")})}},{key:"handleScroll",value:function(){var e=this.track.querySelector(".active"),t=this.track.querySelectorAll(".glider-slide:not(.active)");e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t)}},{key:"updateTooltipPosition",value:function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=Mn.getInstance(n);i&&i.update()}}})}},{key:"hideAllTooltips",value:function(e){e.forEach(function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=Mn.getInstance(n);i&&(i.hide(),e.blur())}}})})}},{key:"destroy",value:function(){this.instance.destroy()}},{key:"update",value:function(){this.instance.refresh()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}}])}(),Bn=function(e){var t=e.className,n=e.gliderOptions,i=e.items,r=e.colorScheme,o=S(e,["className","gliderOptions","items","colorScheme"]),a=y(B(Fn),1)[0],s=i.map(function(e,t){return X.jsx(mt,{children:e},t.toString())}),l=A(et,t,{"is-dark":"dark"===r,"is-light":"light"===r}),c={prev:A(at),next:A(st),dots:A(lt,"show-md")};return X.jsxs("div",b(b(b({className:l,ref:a,"data-carousel":!0},n?{"data-glider-options":JSON.stringify(n)}:{}),o),{},{children:[X.jsxs("div",{className:tt,children:[X.jsx("div",{className:nt,children:X.jsx("div",{className:rt,children:s})}),X.jsx("div",{className:it}),X.jsx("button",{type:"button","aria-label":"Naspäť",className:c.prev,children:X.jsx(te,{size:"medium",name:"chevron-left"})}),X.jsx("button",{type:"button","aria-label":"Ďalej",className:c.next,children:X.jsx(te,{size:"medium",name:"chevron-right"})})]}),X.jsx("div",{role:"tablist",className:c.dots})]}))};Bn.displayName="Carousel";var Un="carousel-promotions",Vn="".concat(Un,"__viewport-wrapper"),Hn="".concat(Un,"__viewport"),Wn="".concat(Un,"__track"),qn="".concat(Un,"__next"),$n="".concat(Un,"__pagination"),Gn="".concat(Un,"__pagination-svg"),Kn="".concat(Un,"__pagination-circle"),Yn="".concat(Un,"--slide-inverted"),Xn="is-autoplay",Jn=".".concat(Hn),Qn=".".concat($n),Zn={slidesToShow:1,dots:Qn,skipTrack:!0,rewind:!0,interval:0,scrollLock:!0,classes:{glider:"carousel-promotions__viewport",track:"carousel-promotions__track",slide:"carousel-promotions__slide",drag:"is-dragging",draggable:"is-draggable",disabled:"is-disabled",active:"is-active",visible:"is-visible",dots:"carousel-promotions__pagination",dot:"carousel-promotions__pagination-item"}},ei=function(){function e(t,n){p(this,e),this.interval=0,this.element=t;var i=Object.assign(Object.assign({},Zn),n),r=i.interval,o=S(i,["interval"]);return this.config=o,this.interval=parseInt(String(r)),this.element.ODS_CarouselPromotions=this,this.gliderLoadedHandler=this.gliderLoadedHandler.bind(this),this.gliderRefreshHandler=this.gliderRefreshHandler.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}return m(e,[{key:"init",value:function(){var e=this;this.getElements(),this.element.hasAttribute("data-glider-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));var t=this.isIntervalValid();t?this.element.classList.add(Xn):this.interval=0,this.element.addEventListener("glider-loaded",this.gliderLoadedHandler),this.element.addEventListener("glider-refresh",this.gliderRefreshHandler),this.element.addEventListener("glider-slide-visible",function(t){(e.element.classList.remove(Yn),t.detail&&void 0!==t.detail.slide)&&(t.detail.slide%2==1&&e.element.classList.add(Yn))}),this.instance=new yt(this.viewport,this.config),this.instance&&this.instance.dots&&t&&(this.instance.dots.addEventListener("animationend",this.autoplayAnimationEnd),this.instance.dots.addEventListener("click",function(){e.stopAutoplay()}))}},{key:"stopAutoplay",value:function(){this.interval=0,this.element.classList.remove(Xn)}},{key:"autoplayAnimationEnd",value:function(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}},{key:"isAutoplayEnabled",get:function(){return this.interval>0}},{key:"isIntervalValid",value:function(){var e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}},{key:"scrollToNextSlide",value:function(){var e=this.instance.slides.length;if(!(e<0)){var t=this.instance.getCurrentSlide();this.instance.scrollItem((t+1)%e)}}},{key:"gliderLoadedHandler",value:function(){this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}},{key:"gliderRefreshHandler",value:function(){this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}},{key:"getElements",value:function(){this.viewport=this.element.querySelector(Jn);var e={dots:this.element.querySelector(Qn)};this.config=Object.assign(Object.assign({},this.config),e)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-glider-options");if(e){var t=JSON.parse(e);this.config=Object.assign(Object.assign({},this.config),t)}}},{key:"fixPaginationButtonType",value:function(){Array.from(this.element.querySelectorAll("".concat(Qn," > *"))).forEach(function(e){return e.setAttribute("type","button")})}},{key:"renderSvgDotsForAnimation",value:function(){var t=Array.from(this.element.querySelectorAll("".concat(Qn," > *"))),n=e.createSvgDot();n.querySelector("circle").style.animationDuration="".concat(this.interval,"ms"),t.forEach(function(e){e.innerHTML="",e.appendChild(n.cloneNode(!0))})}},{key:"destroy",value:function(){this.instance.destroy()}},{key:"update",value:function(){this.instance.refresh()}}],[{key:"createSvgDot",value:function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",Gn),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);var n=document.createElementNS(e,"circle");return n.setAttribute("class",Kn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}},{key:"getInstance",value:function(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}])}(),ti=function(e){var t=e.className,n=e.gliderOptions,i=e.isInverse,r=e.children,o=S(e,["className","gliderOptions","isInverse","children"]),a=y(B(ei),1)[0],s=A(Un,t,{"bg-black":i}),l={next:A(qn,"hide-lg"),dots:A($n)};return X.jsxs("div",b(b(b({className:s,ref:a,"data-carousel-promotions":!0},n?{"data-glider-options":JSON.stringify(n)}:{}),o),{},{children:[X.jsx("div",{className:Vn,children:X.jsx("div",{className:Hn,children:X.jsx("div",{className:Wn,children:r})})}),X.jsx("div",{role:"tablist",className:l.dots})]}))};ti.displayName="CarouselPromotions";var ni=e.createContext({headers:[],rows:[]}),ii=function(e){var t=e.tag,n=void 0===t?"td":t,i=S(e,["tag"]),r=n;return X.jsx(r,b({},i))};ii.displayName="TableCell";var ri=function(){var t,n=e.useContext(ni),i=n.headers,r=n.expandableRows,o={none:"zoradiť vzostupne podľa",ascending:"zoradiť zostupne podľa",descending:"vypnúť zoradenie poďľa"};return X.jsx("thead",{children:X.jsxs("tr",{children:[i.map(function(e,t){var n=e.isSortable,i=e.sort,r=void 0===i?"none":i,a=e.label,s=e.cellProps,l=e.headCellProps;return X.jsxs(ii,b(b(b(b({tag:"th"},s),l),n&&{"aria-sort":r}),{},{scope:"col",children:[a,n&&X.jsxs(X.Fragment,{children:[" ",X.jsx("button",{type:"button",className:"table__sort-button",children:X.jsxs("span",{className:"sr-only",children:[o[r]," ",a]})})]})]}),t.toString())}),(null==r?void 0:r.hasExpandableRows)&&X.jsx(ii,{tag:"th",scope:"col",className:"table__cell--shrink",children:X.jsx("span",{className:"sr-only",children:null===(t=null==r?void 0:r.expandableRowsCaptions)||void 0===t?void 0:t.header})})]})})};ri.displayName="TableHeader";var oi=function(t){var n=t.row,i=e.useContext(ni),r=i.headers,o=i.expandableRows;return r.map(function(t,i,r){var a,s,l,c=t.key,u=t.cellProps,d=n[c],h="object"===N(d)&&null!==d,p=h&&"value"in d?d.value:d,f=h&&"value"in d?Object.entries(d).filter(function(e){return"value"!==y(e,1)[0]}).reduce(function(e,t){var n=y(t,2),i=n[0],r=n[1];return Object.assign(Object.assign({},e),v({},i,r))},{}):{},m=(null===(a=null==n?void 0:n.expand)||void 0===a?void 0:a.length)||0;return X.jsxs(e.Fragment,{children:[X.jsx(ii,b(b(b({},u),f),{},{children:p||""})),i===r.length-1&&(null==o?void 0:o.hasExpandableRows)&&((null==n?void 0:n.expand)?X.jsx(ii,{className:"align-right table__cell--shrink table__cell--expand",children:X.jsxs(Ue,{type:"ghost",htmlType:"button",size:"small",isSquare:!0,className:"mb-none","data-subrow-toggle":!0,"aria-expanded":n.isExpanded?"true":"false","aria-controls":null===(s=n.expand)||void 0===s?void 0:s.map(function(e){return e.id}).join(" "),children:[X.jsx("span",{className:"visually-hidden",children:"Zobraziť ".concat(m," súvisiac").concat(m>4?"ich":m>1?"e":"i"," riad").concat(m>4?"kov":m>1?"ky":"ok")}),X.jsx(te,{name:"chevron-down",size:"large"})]})}):X.jsx(ii,{className:"align-right table__cell--shrink",children:X.jsx("span",{className:"sr-only",children:null===(l=null==o?void 0:o.expandableRowsCaptions)||void 0===l?void 0:l.emptyRow})}))]},c)})};oi.displayName="TableRow";var ai=function(){var t=e.useContext(ni).rows;return X.jsx("tbody",{children:t.map(function(t,n){var i;return X.jsxs(e.Fragment,{children:[X.jsx("tr",{children:X.jsx(oi,{row:t})}),null===(i=null==t?void 0:t.expand)||void 0===i?void 0:i.map(function(e,n){var i=e.id,r=S(e,["id"]);return X.jsx("tr",{id:i,className:"table__subrow",hidden:!t.isExpanded||void 0,children:X.jsx(oi,{row:r})},n.toString())})]},n.toString())})})};ai.displayName="TableRows";var si=function(){var t=e.useContext(ni).footers;return t?X.jsx("tfoot",{children:t.map(function(e,t){return X.jsx("tr",{children:X.jsx(oi,{row:e})},t.toString())})}):null};si.displayName="TableFooter";var li={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},ci=function(){return m(function e(t,n){var i=this;return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},li),n),this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(function(e){if(i.scrollableContainer){var t=i.scrollableContainer.getBoundingClientRect();e.forEach(function(e){var n,r;e.contentRect.width>t.width?null===(n=i.scrollableContainer)||void 0===n||n.setAttribute("tabindex","0"):null===(r=i.scrollableContainer)||void 0===r||r.removeAttribute("tabindex")})}}),this.init(),this},[{key:"addRole",value:function(e,t){Array.from(this.element.querySelectorAll(e)).forEach(function(e){e.setAttribute("role",t)})}},{key:"addARIA",value:function(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){console.log("Table.addARIA(): "+e)}}},{key:"onExpandClick",value:function(e){var t,n=e.currentTarget,i=null!==(t=n.getAttribute("aria-controls"))&&void 0!==t?t:"",r=this.element.querySelectorAll(i.split(" ").map(function(e){return"#".concat(e)}).join(","));I({element:n,attribute:"aria-expanded"}),r.forEach(function(e){I({element:e,attribute:"hidden"})})}},{key:"init",value:function(){var e=this;this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(function(t){t.addEventListener("click",e.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}},{key:"maybeInitScrollable",value:function(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}},{key:"destroy",value:function(){var e=this;this.expandButtons.forEach(function(t){t.removeEventListener("click",e.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Table?e.ODS_Table:null}}])}(),ui="table",di=function(e){var t=e.className,n=e.caption,i=e.headers,r=e.rows,o=e.footers,a=e.isCompact,s=e.isStriped,l=e.isScrollable,c=e.colorScheme,d=e.expandableRowsCaptions,h=void 0===d?{header:"Rozšíriteľný",emptyRow:"Nerozšíriteľný riadok"}:d,p=S(e,["className","caption","headers","rows","footers","isCompact","isStriped","isScrollable","colorScheme","expandableRowsCaptions"]),f=y(B(ci),1)[0],m=u(),g=A(ui,v(v(v(v({},"".concat(ui,"--striped"),s),"".concat(ui,"--compact"),a),"is-dark","dark"===c),"is-light","light"===c),t),x="".concat(m,"-caption"),w={hasExpandableRows:r.some(function(e){return e&&e.expand&&e.expand.length>0}),expandableRowsCaptions:h},N={headers:i,footers:o,rows:r.map(function(e,t){return e&&e.expand?Object.assign(Object.assign({},e),{expand:e.expand.map(function(e,n){return Object.assign(Object.assign({},e),{id:"".concat(m,"-row-").concat(t,"-").concat(n)})})}):e}),expandableRows:w};return X.jsx(ni.Provider,{value:N,children:X.jsx(se,{condition:l||!1,wrapper:X.jsx("div",b({className:"".concat(ui,"-scrollable"),role:"group"},n&&{"aria-labelledby":x})),children:X.jsxs("table",b(b({ref:f,className:g},p),{},{children:[n&&X.jsx("caption",b(b({},l&&{id:x}),{},{children:n})),X.jsx(ri,{}),X.jsx(ai,{}),X.jsx(si,{})]}))})})};di.displayName="Table";var hi=function(e){var t,r,a,s,l,c=e.dialog,u=e.id,d=e.placement,h=e.tag,p=void 0===h?"span":h,f=e.className,m=e.renderTrigger,v=e.children,g=e.colorScheme,x=S(e,["dialog","id","placement","tag","className","renderTrigger","children","colorScheme"]),w=(r=y(o(t=u),2),a=r[0],s=r[1],l=n(t),i(function(){if(!t){U.current+=1;var e="id-".concat(U.current);l.current=e,s(e)}},[t]),a||l.current||t||"id-0"),N=A("tooltip",{"is-dark":"dark"===g,"is-light":"light"===g},f),_=p,k=y(B(Mn,{removeDialogOnDestroy:!0}),1)[0],j={"data-tooltip-trigger":!0,"aria-describedby":w,"aria-owns":w,children:v};return X.jsxs(X.Fragment,{children:[m?m(j):X.jsx("button",b(b({type:"button"},j),{},{children:v})),X.jsxs(_,b(b({id:w,className:N,role:"tooltip",hidden:!0,ref:k,"data-tooltip":!0,"data-tooltip-placement":d},x),{},{children:[X.jsx(_,{className:"tooltip__arrow"}),X.jsx(_,{className:"tooltip__dialog",children:c})]}))]})};hi.displayName="Tooltip";var pi="info-tooltip",fi=function(e){var t=e.children,n=e.className,i=S(e,["children","className"]);return X.jsxs(hi,b(b({dialog:t,renderTrigger:function(e){return X.jsx("button",b({type:"button",className:pi},e))}},i),{},{children:[X.jsx(te,{name:"assistance",color:"info",className:A("".concat(pi,"__icon"),n)}),X.jsx("span",{className:"sr-only",children:"Info"})]}))};fi.displayName="InfoTooltip";var mi=function(e){var t=e.price,n=e.discount,i=e.freeLabel,r=e.label,o=e.discountMonthsCount,a=!t&&!!n;return void 0!==t||void 0!==n?X.jsxs(X.Fragment,{children:[n&&t&&X.jsxs(X.Fragment,{children:[X.jsx("del",{className:"color-gray",children:Pe(t)}),X.jsx("br",{})]}),X.jsxs(ve,{className:"bold justify-content-end mb-none",children:[X.jsx(be,{className:"hide-sm",children:o&&a?"1. – ".concat(o,". mesiac"):r}),X.jsx(be,{children:a?Pe(-n):t-(null!=n?n:0)===0?i:Pe(t-(null!=n?n:0))})]})]}):null},vi=function(e){var t=e.name,n=e.tooltip;return void 0===t?null:X.jsxs(X.Fragment,{children:[X.jsx("span",{className:"bold",children:t}),n&&X.jsxs(X.Fragment,{children:[" ",X.jsx(fi,{className:"icon--small",children:n})]})]})};vi.displayName="FooterNameColumn";var gi=function(e){var t=e.price,n=e.discount,i=void 0===n?0:n,r=e.label,o=e.size;return void 0===t?null:X.jsxs(X.Fragment,{children:[i>0&&X.jsx("del",{className:"color-gray",children:Pe(t)}),X.jsxs("div",{children:[X.jsx("div",{className:A("color-orange mb-none",{h4:"large"!==o,h2:"large"===o}),children:Pe(t-i)}),X.jsx("span",{className:A("color-orange mb-none",{h6:"large"!==o,h3:"large"===o}),children:r})]})]})};function bi(e,t,n){return e.reduce(function(e,i){var r,o,a,s,l,c,u,d=null!==(r=null==i?void 0:i.monthsFree)&&void 0!==r?r:0,h=(null!==(a=null===(o=null==i?void 0:i.discount)||void 0===o?void 0:o.monthsCount)&&void 0!==a?a:0)+d||n;return d&&t<=d?e+=null!==(l=null===(s=null==i?void 0:i.price)||void 0===s?void 0:s.monthly)&&void 0!==l?l:0:h>0&&t<=h&&(e+=null!==(u=null===(c=null==i?void 0:i.discount)||void 0===c?void 0:c.monthly)&&void 0!==u?u:0),e},0)}function yi(e,t){return e.reduce(function(e,n){var i,r,o,a;return e+=null!==(r=null===(i=null==n?void 0:n.price)||void 0===i?void 0:i[t])&&void 0!==r?r:0,e-=null!==(a=null===(o=null==n?void 0:n.discount)||void 0===o?void 0:o[t])&&void 0!==a?a:0},0)}gi.displayName="FooterPriceColumn";var xi=function(e,t,n,i,r){if(e.find(function(e){var t;return(null==e?void 0:e.monthsFree)||(null===(t=null==e?void 0:e.discount)||void 0===t?void 0:t.monthsCount)})){var o=function(e,t){for(var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:24,o=[],a=function(e){return e.reduce(function(e,t){var n,i;return e+(null!==(i=null===(n=null==t?void 0:t.price)||void 0===n?void 0:n.monthly)&&void 0!==i?i:0)},0)}(e),s=function(e){return e.reduce(function(e,t){var n,i,r,o;return(e+=null!==(i=null===(n=null==t?void 0:t.price)||void 0===n?void 0:n.upfront)&&void 0!==i?i:0)-(null!==(o=null===(r=null==t?void 0:t.discount)||void 0===r?void 0:r.upfront)&&void 0!==o?o:0)},0)}(e),l=1;l<r;l++){var c={upfront:s>0&&1===l?s:void 0,monthly:a},u={monthly:bi(e,l,r)},d=o.length-1;0!==o.length&&(null===(n=o[d].price)||void 0===n?void 0:n.upfront)===(null==c?void 0:c.upfront)&&(null===(i=o[d].discount)||void 0===i?void 0:i.monthly)===(null==u?void 0:u.monthly)||(o[d]&&(o[d].end=l-1),o=[].concat(x(o),[{start:l,end:r,price:c,discount:u}]))}return t&&(o.shift(),o[0]&&(o[0].start=1)),function(e){return e.map(function(t){var n=t.start,i=t.end,r=t.price,o=t.discount,a="";return e.length>1&&(a=n!==i?"".concat(n,". – ").concat(i,". mesiac"):"".concat(n,". mesiac")),{name:a,price:r,discount:o}})}(o)}(e,null==n?void 0:n.hideFirst);return o.map(function(e){var o=e.name,a=e.price,s=e.discount;return{col1:X.jsx(vi,{name:o,tooltip:null==n?void 0:n.tooltip}),col2:a&&void 0!==a.upfront&&a.upfront>0&&"upfront"!==t&&X.jsx(gi,{price:a.upfront,discount:s&&s.upfront,label:i.upfront,size:r}),col3:X.jsx(gi,{price:a.monthly,discount:s&&s.monthly,label:i.monthly,size:r})}})}return[{col1:(null==n?void 0:n.name)&&X.jsx(vi,{name:n.name,tooltip:n.tooltip}),col2:"upfront"!==t&&X.jsx(gi,{price:yi(e,"upfront"),label:i.upfront,size:r}),col3:X.jsx(gi,{price:yi(e,"monthly"),label:i.monthly,size:r})}]},wi="cart-table",Ni={monthly:"mesačne",upfront:"vopred",product:"produkt",remove:"odstrániť",add:"Pridať",free:"zadarmo"},_i=function(e){var t=e.items,n=void 0===t?[]:t,i=e.hideEmpty,r=void 0===i||i,o=e.isEditable,a=void 0!==o&&o,s=e.footer,l=e.labels,c=void 0===l?Ni:l,u=e.size,d=r?[" hide"," hide"]:["",""];return r&&n.forEach(function(e){var t=e.price,n=void 0===t?{}:t,i=e.discount,r=void 0===i?{}:i;void 0===n.upfront&&void 0===r.upfront||(d[0]=""),void 0===n.monthly&&void 0===r.monthly||(d[1]="")}),X.jsx(di,{className:A(wi,v({},"".concat(wi,"--large"),u)),headers:[{key:"col1",cellProps:{className:"cart-table__product"},label:Le(c.product)},{cellProps:{className:"align-right ".concat(wi,"__price").concat(d[0])},key:"col2",label:Le(c.upfront)},{cellProps:{className:"align-right ".concat(wi,"__price").concat(d[1])},key:"col3",label:Le(c.monthly)}].concat(x(a?[{cellProps:{className:"align-right"},key:"col4",label:""}]:[])),rows:n.map(function(e){return Object.assign({},function(e,t,n){var i=e.isSubitem,r=e.image,o=e.badge,a=e.name,s=e.tooltip,l=e.price,c=e.discount,u=e.description,d=e.icon,h=e.isMandatory,p=e.isOptional;return Object.assign(Object.assign({col1:X.jsxs(X.Fragment,{children:[X.jsxs(ve,{canWrap:!1,className:A("mb-none ",{"cart-table__subitem":i}),children:[i&&X.jsx(be,{children:X.jsx(te,{name:"add",size:"medium"})}),d&&X.jsx(be,{children:X.jsx(te,{name:d,size:"medium"})}),r&&X.jsx(be,{children:X.jsx(He,{src:r,alt:"",width:"24"})}),X.jsxs(be,{isFilling:!0,children:[o&&X.jsx(he,{color:"warning",children:o}),X.jsx(ve,{space:"small",children:X.jsxs(be,{canShrink:!0,className:A("bold",{"text-nowrap":s}),children:[X.jsx(se,{condition:!!s,wrapper:X.jsx("span",{className:"text-wrap",children:a}),children:a}),s&&" ",s&&X.jsx(fi,{className:"icon--small",placement:"right",children:s})]})}),u&&X.jsx("div",{children:"string"==typeof u?u:u.map(function(e){return X.jsx("p",{className:"mb-0",children:e},e)})})]}),!t||h||p?null:X.jsx(be,{className:"hide-sm",children:X.jsx(Xe,{iconName:"trash",isSquare:!0,size:"small","aria-label":n.remove})}),p&&X.jsx(be,{className:"hide-sm",children:X.jsx(Xe,{iconName:"add",isSquare:!0,size:"small","aria-label":n.add})})]}),!(null==l?void 0:l.monthly)&&(null==c?void 0:c.monthsCount)&&X.jsx("div",{children:X.jsx("p",{className:A("mb-none show-sm cart-table__discount--margin-top",{"cart-table__subitem":i,"cart-table__discount--padding-left":r||d||i}),children:"1. – ".concat(c.monthsCount,". mesiac")})})]}),col2:X.jsx(mi,{discount:null==c?void 0:c.upfront,freeLabel:n.free,label:n.upfront,price:null==l?void 0:l.upfront}),col3:X.jsx(mi,{discount:null==c?void 0:c.monthly,discountMonthsCount:null==c?void 0:c.monthsCount,freeLabel:n.free,label:n.monthly,price:null==l?void 0:l.monthly})},t&&!h&&!p&&{col4:X.jsx(Xe,{iconName:"trash",size:"small",className:"cart-table__button mb-none",children:X.jsx("span",{className:"show-md",children:n.remove})})}),p&&{col4:X.jsx(Xe,{iconName:"add",size:"small",className:"cart-table__button mb-none",children:X.jsx("span",{className:"show-md",children:n.add})})})}(e,a,c))}),footers:xi(n,"true",null!=s?s:{},c,"large"===u?"large":void 0)})};_i.displayName="CartTable";var Si=e.forwardRef(function(e,t){var n=e.elemRef,i=e.className,r=e.icon,o=e.colorScheme,a=e.isDisabled,s=S(e,["elemRef","className","icon","colorScheme","isDisabled"]),l=A("controls",{"is-dark":"dark"===o,"is-light":"light"===o},i),c=s;return X.jsx("button",b(b({type:"button",className:l,disabled:!!a||void 0,"aria-disabled":a?"true":void 0,ref:n||t},c),{},{children:X.jsx(te,{name:r})}))});Si.displayName="Controls";var ki="divider",ji=function(e){var t=e.className,n=e.color,i=e.icon,r=e.content,o=e.thinLine,a=S(e,["className","color","icon","content","thinLine"]),s=A(ki,v({},"".concat(ki,"--").concat(n),n),t),l=A("".concat(ki,"__line"),v({},"".concat(ki,"__line--thin"),o)),c="".concat(ki,"__content");return X.jsxs("div",b(b({className:s},a),{},{children:[X.jsx("div",{className:l}),(r||i)&&X.jsxs(X.Fragment,{children:[X.jsx("div",{className:c,children:null!=r?r:i&&X.jsx(te,{name:i,size:"medium"})}),X.jsx("div",{className:l})]})]}))};ji.displayName="Divider";var Ei={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},Oi=function(){return m(function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,e),t.ODS_Dropdown?t.ODS_Dropdown:(this.element=t,this.config=Object.assign(Object.assign({},Ei),i),this.config.popperOptions=Object.assign(Object.assign({},Ei.popperOptions),(null==i?void 0:i.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(x(Ei.popperOptions.modifiers||[]),x((null===(n=null==i?void 0:i.popperOptions)||void 0===n?void 0:n.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)},[{key:"init",value:function(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));var e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=In(this.trigger,this.element,this.config.popperOptions),this.transitioner=Pn({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}},{key:"handleVisibility",value:function(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}},{key:"handleClick",value:function(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}},{key:"handleKeyPress",value:function(e){if(C.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){var t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}},{key:"show",value:function(){var e=this;this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=function(){return e.update()}}},{key:"hide",value:function(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("click",this.handleVisibility),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}}])}(),Ai=function(e){var t=e.children,r=S(e,["children"]),o=n(null),a="string"==typeof r.iconName;return i(function(){if(o.current){var e=new L(o.current);return function(){e.destroy()}}},[]),a?X.jsx(Xe,b(b({ref:o},r),{},{children:t})):X.jsx(Ue,b(b({ref:o},r),{},{children:t}))},Ci=function(e){var t=e.className,n=e.id,i=S(e,["className","id"]);return X.jsx(Ai,b(b({"aria-expanded":!1,id:"btn-".concat(n),"data-toggle":JSON.stringify([{target:"self",attribute:"aria-expanded"}])},i),{},{className:A("".concat(Ti,"__button mb-none"),t)}))};Ci.displayName="DropdownToggleButton";var Ti="dropdown",Di={left:"bottom-start",center:"bottom",right:"bottom-end"},Li=function(e){var t=e.button,n=e.className,i=e.hasFocusTrap,r=void 0!==i&&i,o=e.hasSpacing,a=void 0===o||o,s=e.children,l=e.id,c=e.isInteractive,u=void 0!==c&&c,d=e.placement,h=void 0===d?"left":d,p=S(e,["button","className","hasFocusTrap","hasSpacing","children","id","isInteractive","placement"]),f=y(B(Oi),1)[0],m=A("dropdown",v({},"".concat(Ti,"-spacing"),a),n);return X.jsxs(X.Fragment,{children:[t&&X.jsx(Ci,b(b({},t),{},{id:l,className:t.className||""})),X.jsxs("div",b(b({ref:f,id:"dropdown-".concat(l),className:m,"data-dropdown":"","data-dropdown-placement":Di[h],"data-dropdown-interactive":u,"data-dropdown-focus-trap":r},p),{},{children:[r&&X.jsx(ve,{className:"mb-small justify-content-end",children:X.jsx(be,{children:X.jsx(Xe,{iconName:"delete",isSquare:!0,size:"small",className:"".concat(Ti,"__close"),"aria-label":"Zatvoriť",id:"close-btn-".concat(l),"data-toggle":JSON.stringify([{target:"#btn-".concat(l),action:"click"}])})})}),s]}))]})};Li.displayName="Dropdown";var Ii=function(e){var t=e.className,n=e.children,i=e.disabled,r=e.href,o=S(e,["className","children","disabled","href"]),a=A("dropdown__item",{disabled:i},t);return X.jsx("a",b(b({tabIndex:i?-1:0,href:r,className:a,"aria-disabled":i},o),{},{children:n}))};Ii.displayName="DropdownItem";var Pi=function(e){var t=e.className,n=S(e,["className"]),i=A("dropdown__divider",t);return X.jsx("div",b({className:i},n))};Pi.displayName="DropdownDivider";var Ri=function(){return m(function e(t){p(this,e),this.element=t,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()},[{key:"toggle",value:function(){console.log("Toggle event triggered");var e=this.element.querySelector("summary");if(e){var t=e.getAttribute("data-summary"),n=e.getAttribute("data-summary-opened");if(e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),n){var i="true"===e.getAttribute("aria-expanded")?n:t;i&&e.setAttribute("aria-label",i)}}}},{key:"init",value:function(){this.element.addEventListener("toggle",this.toggle)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){this.element.removeEventListener("toggle",this.toggle)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Expander?e.ODS_Expander:null}}])}(),Mi="expander",zi=function(e){var t=e.className,n=e.children,i=e.summary,r=e.summaryOpened,o=e.renderSummary,a=e.renderSummaryOpened,s=e.colorScheme,l=void 0===s?"light":s,c=S(e,["className","children","summary","summaryOpened","renderSummary","renderSummaryOpened","colorScheme"]),u=y(B(Ri),1)[0],h=A(Mi,{"is-dark":"dark"===l,"is-light":"light"===l},t),p=d(function(){return o?o(e):i&&X.jsxs(X.Fragment,{children:[i," ",X.jsx(te,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]})},[o,e,i]),f=d(function(){return a?a(e):r&&X.jsxs(X.Fragment,{children:[r," ",X.jsx(te,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]})},[a,e,r]);return X.jsxs("details",b(b({className:h,"data-expander":!0,ref:u},c),{},{children:[X.jsxs("summary",{"aria-expanded":"false","aria-label":i,"data-summary":i,"data-summary-opened":r,children:[X.jsx("div",{className:"".concat(Mi,"__summary"),children:p}),f&&X.jsx("div",{className:"".concat(Mi,"__summary--opened"),children:f})]}),X.jsx("div",{children:n})]}))};zi.displayName="Expander";var Fi={itemSelector:"[data-feature-accordion-item]",bodiesSelector:".accordion__body",buttonSelector:"[data-accordion-toggle]",imageSelector:"[data-feature-accordion-image]"},Bi=function(){return m(function e(t,n){var i=this;return p(this,e),this.items=[],this.bodies=[],this.buttons=[],this.images=[],this.activeId=null,this.onClick=function(e){var t=e.currentTarget.closest(i.config.itemSelector),n=(null==t?void 0:t.getAttribute("id"))||null;i.setActive(n)},this.element=t,this.config=Object.assign(Object.assign({},Fi),n),this.element.ODS_FeatureAccordion=this,this.init(),this},[{key:"init",value:function(){var e=this;this.items=Array.from(this.element.querySelectorAll(this.config.itemSelector)),this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll(this.config.imageSelector));var t=this.items[0]||null,n=(null==t?void 0:t.getAttribute("id"))||null;this.setActive(n),this.buttons.forEach(function(t){t.addEventListener("click",e.onClick)})}},{key:"setActive",value:function(e){if(e){this.activeId=e;var t=this.buttons.find(function(t){return t.getAttribute("id")===e}),n=null==t?void 0:t.getAttribute("aria-controls");this.bodies.forEach(function(e){e.id===n?e.removeAttribute("hidden"):e.setAttribute("hidden","")}),this.buttons.forEach(function(t){var n=t.getAttribute("id")===e,i=t.closest(".feature-accordion__item");null==i||i.classList.toggle("is-active",n),I({element:t,attribute:"aria-expanded",value:n?"true":"false"})}),this.images.forEach(function(t){var n=t.getAttribute("data-feature-accordion-image-for");t.classList.toggle("hide",n!==e)})}}},{key:"destroy",value:function(){var e=this;this.buttons.forEach(function(t){t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}}])}(),Ui="feature-accordion",Vi=function(t){var n=t.className,i=t.children,r=t.colorScheme,o=S(t,["className","children","colorScheme"]),a=y(B(Bi),1)[0],s=A(Ui,{"is-dark":"dark"===r,"is-light":"light"===r,"is-white":"white"===r},n),l=d(function(){return e.Children.toArray(i)},[i]);return X.jsxs(Me,b(b({className:s,"data-feature-accordion":!0,ref:a},o),{},{children:[X.jsx(Fe,{size:{xs:12,md:6},className:"".concat(Ui,"__accordion"),children:X.jsx(Q,{children:l.map(function(t){var n=t.props.id,i=t.props["data-image-url"]||t.props.imageUrl,r=t.props["data-image-alt"]||t.props.imageAlt;return i?e.cloneElement(t,{children:X.jsxs(X.Fragment,{children:[X.jsx("div",{className:"".concat(Ui,"__content"),children:t.props.children}),X.jsx("div",{className:A("".concat(Ui,"__preview"),"hide-md"),children:X.jsx(He,{"data-feature-accordion-image":!0,"data-feature-accordion-image-for":n,src:i,alt:r,className:"".concat(Ui,"__image--mobile")},n)})]})}):null})})}),X.jsx(Fe,{size:{xs:12,md:6},className:A("".concat(Ui,"__preview"),"hide","show-md"),children:l.map(function(e){var t=e.props.id,n=e.props["data-image-url"]||e.props.imageUrl,i=e.props["data-image-alt"]||e.props.imageAlt;return n?X.jsx(He,{"data-feature-accordion-image":!0,"data-feature-accordion-image-for":t,src:n,alt:i,className:"hide"},t):null})})]}))},Hi=function(e){var t=e.imageUrl,n=e.imageAlt,i=e.className,r=e.defaultOpen,o=S(e,["imageUrl","imageAlt","className","defaultOpen"]);return X.jsx(re,b({className:A("feature-accordion__item",i),"data-feature-accordion-item":!0,"data-image-url":t,"data-image-alt":n,isActive:r},o))};Hi.displayName="FeatureAccordionItem";var Wi="section",qi=function(e){var t=e.className,n=e.color,i=void 0===n?"white":n,r=e.spacing,o=e.tag,a=void 0===o?"div":o,s=e.children,l=S(e,["className","color","spacing","tag","children"]),c=A(Wi,v(v({},"".concat(Wi,"--").concat(r),r),"bg-".concat(i),"white"!==i),t);return X.jsx(a,b(b({className:c},l),{},{children:X.jsx(We,{children:s})}))};qi.displayName="Section";var $i=function(t){var n=t.className,i=t.children,r=t.colorScheme,o=t.isUnderline,a=t.isNormal,s=t.tag,l=void 0===s?"a":s,c=t.href,u=S(t,["className","children","colorScheme","isUnderline","isNormal","tag","href"]),d=A("link",{"is-dark":"dark"===r,"is-light":"light"===r,underline:o,normal:a},n);return"a"!==l||c||console.warn("Anchor element requires a valid address. Provide a valid, navigable address as the href value. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href"),e.createElement(l,Object.assign({href:c,className:d},u),i)};$i.displayName="Link";var Gi=(new Date).getFullYear(),Ki={columns:[{title:"Eshop",links:[{label:"Telefóny",url:"/eshop/telefony"},{label:"Prenos císla",url:"/eshop/prenos-cisla"},{label:"Akciové ponuky v e-shope",url:"/eshop/akciove-ponuky"},{label:"Sledovanie objednávky",url:"/eshop/sledovanie-objednavky"},{label:"Ponuka Love",url:"/eshop/ponuka-love"},{label:"Pevny internet",url:"/eshop/pevny-internet"},{label:"Orange TV",url:"/eshop/orange-tv"},{label:"Predajná brozúra",url:"/eshop/predajna-brozura"}]},{title:"Služby",links:[{label:"Porovnanie paušálov",url:"/sluzby/porovnanie-pausalov"},{label:"Mobilný internet",url:"/sluzby/mobilny-internet"},{label:"Pevný internet",url:"/sluzby/pevny-internet"},{label:"Televízia",url:"/sluzby/televizia"},{label:"Prima Voľba",url:"/sluzby/prima-volba"},{label:"Roaming",url:"/sluzby/roaming"},{label:"Ostatné doplnkové služby",url:"/sluzby/doplnkove-sluzby"},{label:"Môj Orange",url:"/sluzby/moj-orange"}]},{title:"Pomoc a podpora",links:[{label:"Cenník",url:"/podpora/cennik"},{label:"Expertlinka",url:"/podpora/expertlinka"},{label:"Dobitie kreditu",url:"/podpora/dobitie-kreditu"},{label:"Reklamácie a riešenie sporov",url:"/podpora/reklamacie"},{label:"Elektronický záručný list",url:"/podpora/zarucny-list"},{label:"Nariadenie GDPR",url:"/podpora/gdpr"},{label:"Telemarketing",url:"/podpora/telemarketing"},{label:"Mapa pokrytia",url:"/podpora/mapa-pokrytia"}]},{title:"O nás",links:[{label:"Kariéra",url:"/sluzby/kariera"},{label:"Tlačové správy",url:"/sluzby/tlacove-spravy"},{label:"Predajne",url:"/sluzby/predajne"},{label:"Spoločenská zodpovednosť",url:"/sluzby/zodpovednost"},{label:"Bez nástrah online",url:"/sluzby/bez-nastrah-online"},{label:"Nadácia Orange",url:"/sluzby/nadacia-orange"},{label:"Orange pre developerov",url:"/sluzby/pre-developerov"},{label:"Informácie pre stavebníkov",url:"/sluzby/pre-stavebnikov"}]}],bottomLinks:[{label:"Kontakt",url:"/kontakt"},{label:"Nastavenia cookies",url:"/nastavenia-cookies"},{label:"Správa osobných údajov",url:"/sprava-osobnych-udajov"},{label:"Všeobecné podmienky",url:"/vseobecne-podmienky"},{label:"Informácie pre koncových užívateľov",url:"/informacie-pre-uzivatelov"}],copyright:"© 1997 - ".concat(Gi," Orange")},Yi="footer",Xi=function(e){var t,n=e.className,i=e.isInverse,r=e.data,o=void 0===r?Ki:r,a=S(e,["className","isInverse","data"]),s=A(Yi,v({},"".concat(Yi,"--inverse"),i),n);return X.jsxs(qi,b(b({tag:"footer",className:s},a),{},{children:[X.jsx(He,{src:"/logo.svg",alt:"logo",className:"mb-xlarge"}),X.jsx(Me,{rowGapSize:"medium",children:o.columns.map(function(e,t){return X.jsxs(Fe,{size:{lg:3,md:4,sm:6,xs:12},children:[X.jsx("h5",{className:"mb-large",children:e.title}),X.jsx("ul",{className:"list-unstyled",children:e.links.map(function(e,n){return X.jsx("li",{className:"mb-small",children:X.jsx($i,{className:"".concat(Yi,"__link"),href:e.url,children:e.label})},"footer-link-".concat(t,"-").concat(n))})})]},"footer-column-".concat(t))})}),X.jsx("hr",{}),X.jsx("p",{className:"small",children:"Sledujte nás"}),X.jsx("hr",{}),X.jsxs(Me,{className:"align-items-end",rowGapSize:"xlarge",children:[X.jsx(Fe,{size:{xs:12,md:9},children:X.jsx(ve,{className:"mb-none",space:"small",children:null===(t=o.bottomLinks)||void 0===t?void 0:t.map(function(e,t){return X.jsx(be,{children:X.jsx($i,{href:e.url,isNormal:!0,children:e.label})},"footer-bottom-link-".concat(t))})})}),X.jsx(Fe,{size:{xs:12,md:3},children:o.copyright})]})]}))};Xi.displayName="Footer";var Ji="card",Qi=e.forwardRef(function(e,t){var n=e.className,i=e.color,r=void 0===i?"white":i,o=e.hasBorder,a=e.hasShadow,s=S(e,["className","color","hasBorder","hasShadow"]),l=A(Ji,v(v(v({},"bg-".concat(r),"white"!==r),"".concat(Ji,"--bordered"),o),"".concat(Ji,"--shadow"),a),n);return X.jsx("div",b({className:l,ref:t},s))});Qi.displayName="Card";var Zi="card__section",er=e.forwardRef(function(e,t){var n=e.className,i=e.color,r=e.isFilling,o=e.space,a=S(e,["className","color","isFilling","space"]),s=A(Zi,v(v(v({},"bg-".concat(i),i),"".concat(Zi,"--fill"),r),"".concat(Zi,"--space-small"),"small"===o),n);return X.jsx("div",b({className:s,ref:t},a))});er.displayName="CardSection";var tr="card__product-header",nr=e.forwardRef(function(e,t){var n=e.className,i=e.children,r=e.image,o=e.space,a=S(e,["className","children","image","space"]),s=A(tr,v({},"".concat(tr,"--space-small"),"small"===o),n);return X.jsxs("div",b(b({className:s,ref:t},a),{},{children:[X.jsx("div",{children:i}),r]}))});nr.displayName="CardProductHeader";var ir=function(e,t){var n=e;return"".concat(e/2*(t/100),", ").concat(n)},rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.min(Math.max(e,t),n)},or="gauge",ar=e.forwardRef(function(e,t){var n=e.children,i=e.className,r=e.percentage,o=void 0===r?0:r,a=S(e,["children","className","percentage"]),s=function(e){return Math.PI*(e+.22*e)*2}(100),l={r:100,cx:110,cy:110,strokeWidth:15,fill:"none",transform:"rotate(160, 110, 110)"};return X.jsxs("figure",b(b({ref:t,className:A("".concat(or),i)},a),{},{children:[X.jsxs("svg",{width:"220",height:"150",viewBox:"0 0 220 150",className:"".concat(or,"__dial"),children:[X.jsx("circle",b({className:"".concat(or,"__display"),strokeDasharray:ir(s,100)},l)),X.jsx("circle",b({className:"".concat(or,"__indicator"),strokeDasharray:ir(s,rr(o))},l))]}),X.jsx("figcaption",{className:"".concat(or,"__text"),children:n})]}))});ar.displayName="Gauge";var sr={cycleDuration:4e3,delay:5e3},lr=function(){return m(function e(t,n){p(this,e),this.element=t,this.config=Object.assign(Object.assign({},sr),n),this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()},[{key:"initBody",value:function(){var e,t=this.element.getAttribute("data-loader-messages");this.messages=t?JSON.parse(t):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,null!==(e=this.config.cycleDuration)&&void 0!==e?e:sr.cycleDuration))}},{key:"init",value:function(){var e,t=this;this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(function(){t.element.parentNode&&t.element.parentNode instanceof HTMLElement&&t.element.parentNode.classList.remove("hide"),t.initBody()},null!==(e=this.config.delay)&&void 0!==e?e:sr.delay):this.initBody()}},{key:"destroy",value:function(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}},{key:"cycleMessages",value:function(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}])}(),cr="loader",ur=function(e){var t=e.messages,n=e.size,i=void 0===n?"default":n,r=e.className,o=e.colour,a=void 0===o?"default":o,s=e.isDelayed,l=e.children,c=S(e,["messages","size","className","colour","isDelayed","children"]),u=y(B(lr,{messages:t,isDelayed:s}),1)[0],d=A(cr,v(v(v({},"".concat(cr,"--").concat(i),"default"!==i),"".concat(cr,"--").concat(a),"default"!==a),"hide",s),r);return X.jsxs("div",b(b({className:d},c),{},{children:[X.jsx("div",{className:A("".concat(cr,"__body"),v({},"".concat(cr,"__body--inverse"),"default"!==a)),children:X.jsx("div",{className:A("".concat(cr,"__line"),v({},"".concat(cr,"__line--inverse"),"default"!==a))})}),t&&X.jsx("div",{"data-loader":!0,"data-loader-delayed":s,"data-loader-messages":JSON.stringify(t),className:"".concat(cr,"__messages"),ref:u,children:l})]}))};ur.displayName="Loader";const dr=":not([inert]):not([inert] *)",hr=':not([tabindex^="-"])',pr=":not(:disabled)";var fr=[`a[href]${dr}${hr}`,`area[href]${dr}${hr}`,`input:not([type="hidden"]):not([type="radio"])${dr}${hr}${pr}`,`input[type="radio"]${dr}${hr}${pr}`,`select${dr}${hr}${pr}`,`textarea${dr}${hr}${pr}`,`button${dr}${hr}${pr}`,`details${dr} > summary:first-of-type${hr}`,`iframe${dr}${hr}`,`audio[controls]${dr}${hr}`,`video[controls]${dr}${hr}`,`[contenteditable]${dr}${hr}`,`[tabindex]${dr}${hr}`];function mr(e){(e.querySelector("[autofocus]")||e).focus()}function vr(e,t){if(t&&yr(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let n=gr(e.shadowRoot,t);for(;n;){const e=vr(n,t);if(e)return e;n=br(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=vr(e,t);if(n)return n}}else{let n=gr(e,t);for(;n;){const e=vr(n,t);if(e)return e;n=br(n,t)}}return!t&&yr(e)?e:null}function gr(e,t){return t?e.firstElementChild:e.lastElementChild}function br(e,t){return t?e.nextElementSibling:e.previousElementSibling}const yr=e=>!e.shadowRoot?.delegatesFocus&&(e.matches(fr.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e));function xr(e=document){const t=e.activeElement;return t?t.shadowRoot?xr(t.shadowRoot)||document.activeElement:t:null}function wr(e,t){const[n,i]=function(e){const t=vr(e,!0);return[t,t?vr(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const r=xr();t.shiftKey&&r===n?(i.focus(),t.preventDefault()):t.shiftKey||r!==i||(n.focus(),t.preventDefault())}function Nr(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=_r(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function _r(e){return e.assignedSlot||(e.parentNode?_r(e.parentNode):null)}const Sr="data-a11y-dialog";class kr{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(Sr)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){if(this.shown)return this;return this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=xr(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():mr(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){if(!this.shown)return this;return this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Nr(`[${Sr}-show="${this.id}"]`,t),i=Nr(`[${Sr}-hide="${this.id}"]`,t),r=Nr(`[${Sr}-hide]`,t)&&Nr('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||r)&&this.hide(e)}bindKeypress(e){if(Nr('[aria-modal="true"]',xr())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&wr(this.$el,e)}maintainFocus(){const e=xr();Nr(`[aria-modal="true"], [${Sr}-ignore-focus-trap]`,e)||mr(this.$el)}}function jr(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new kr(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",jr):jr());
2634
31
  /*!
2635
32
  * tabbable 6.2.0
2636
33
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2637
- */
2638
- // NOTE: separate `:not()` selectors has broader browser support than the newer
2639
- // `:not([inert], [inert] *)` (Feb 2023)
2640
- // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
2641
- // the entire query to fail, resulting in no nodes found, which will break a lot
2642
- // of things... so we have to rely on JS to identify nodes inside an inert container
2643
- var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
2644
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
2645
- var NoElement = typeof Element === 'undefined';
2646
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
2647
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
2648
- var _element$getRootNode;
2649
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
2650
- } : function (element) {
2651
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
2652
- };
2653
-
2654
- /**
2655
- * Determines if a node is inert or in an inert ancestor.
2656
- * @param {Element} [node]
2657
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
2658
- * see if any of them are inert. If false, only `node` itself is considered.
2659
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
2660
- * False if `node` is falsy.
2661
- */
2662
- var isInert = function isInert(node, lookUp) {
2663
- var _node$getAttribute;
2664
- if (lookUp === void 0) {
2665
- lookUp = true;
2666
- }
2667
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
2668
- // JS API property; we have to check the attribute, which can either be empty or 'true';
2669
- // if it's `null` (not specified) or 'false', it's an active element
2670
- var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
2671
- var inert = inertAtt === '' || inertAtt === 'true';
2672
-
2673
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
2674
- // if it weren't for `matches()` not being a function on shadow roots; the following
2675
- // code works for any kind of node
2676
- // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
2677
- // so it likely would not support `:is([inert] *)` either...
2678
- var result = inert || lookUp && node && isInert(node.parentNode); // recursive
2679
-
2680
- return result;
2681
- };
2682
-
2683
- /**
2684
- * Determines if a node's content is editable.
2685
- * @param {Element} [node]
2686
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
2687
- */
2688
- var isContentEditable = function isContentEditable(node) {
2689
- var _node$getAttribute2;
2690
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
2691
- // to use the attribute directly to check for this, which can either be empty or 'true';
2692
- // if it's `null` (not specified) or 'false', it's a non-editable element
2693
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
2694
- return attValue === '' || attValue === 'true';
2695
- };
2696
-
2697
- /**
2698
- * @private
2699
- * Determines if the node has an explicitly specified `tabindex` attribute.
2700
- * @param {HTMLElement} node
2701
- * @returns {boolean} True if so; false if not.
2702
- */
2703
- var hasTabIndex = function hasTabIndex(node) {
2704
- return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
2705
- };
2706
-
2707
- /**
2708
- * Determine the tab index of a given node.
2709
- * @param {HTMLElement} node
2710
- * @returns {number} Tab order (negative, 0, or positive number).
2711
- * @throws {Error} If `node` is falsy.
2712
- */
2713
- var getTabIndex = function getTabIndex(node) {
2714
- if (!node) {
2715
- throw new Error('No node provided');
2716
- }
2717
- if (node.tabIndex < 0) {
2718
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
2719
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
2720
- // yet they are still part of the regular tab order; in FF, they get a default
2721
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
2722
- // order, consider their tab index to be 0.
2723
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
2724
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
2725
- if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
2726
- return 0;
2727
- }
2728
- }
2729
- return node.tabIndex;
2730
- };
2731
- var isInput = function isInput(node) {
2732
- return node.tagName === 'INPUT';
2733
- };
2734
- var isHiddenInput = function isHiddenInput(node) {
2735
- return isInput(node) && node.type === 'hidden';
2736
- };
2737
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
2738
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
2739
- return child.tagName === 'SUMMARY';
2740
- });
2741
- return r;
2742
- };
2743
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
2744
- for (var i = 0; i < nodes.length; i++) {
2745
- if (nodes[i].checked && nodes[i].form === form) {
2746
- return nodes[i];
2747
- }
2748
- }
2749
- };
2750
- var isTabbableRadio = function isTabbableRadio(node) {
2751
- if (!node.name) {
2752
- return true;
2753
- }
2754
- var radioScope = node.form || getRootNode(node);
2755
- var queryRadios = function queryRadios(name) {
2756
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
2757
- };
2758
- var radioSet;
2759
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
2760
- radioSet = queryRadios(window.CSS.escape(node.name));
2761
- } else {
2762
- try {
2763
- radioSet = queryRadios(node.name);
2764
- } catch (err) {
2765
- // eslint-disable-next-line no-console
2766
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
2767
- return false;
2768
- }
2769
- }
2770
- var checked = getCheckedRadio(radioSet, node.form);
2771
- return !checked || checked === node;
2772
- };
2773
- var isRadio = function isRadio(node) {
2774
- return isInput(node) && node.type === 'radio';
2775
- };
2776
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
2777
- return isRadio(node) && !isTabbableRadio(node);
2778
- };
2779
-
2780
- // determines if a node is ultimately attached to the window's document
2781
- var isNodeAttached = function isNodeAttached(node) {
2782
- var _nodeRoot;
2783
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
2784
- // (but NOT _the_ document; see second 'If' comment below for more).
2785
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
2786
- // is attached, and the one we need to check if it's in the document or not (because the
2787
- // shadow, and all nodes it contains, is never considered in the document since shadows
2788
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
2789
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
2790
- // visibility, including all the nodes it contains). The host could be any normal node,
2791
- // or a custom element (i.e. web component). Either way, that's the one that is considered
2792
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
2793
- // tested).
2794
- // To further complicate things, we have to look all the way up until we find a shadow HOST
2795
- // that is attached (or find none) because the node might be in nested shadows...
2796
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
2797
- // document (per the docs) and while it's a Document-type object, that document does not
2798
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
2799
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
2800
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
2801
- // node is actually detached.
2802
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
2803
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
2804
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
2805
- // `ownerDocument` will be `null`, hence the optional chaining on it.
2806
- var nodeRoot = node && getRootNode(node);
2807
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
2808
-
2809
- // in some cases, a detached node will return itself as the root instead of a document or
2810
- // shadow root object, in which case, we shouldn't try to look further up the host chain
2811
- var attached = false;
2812
- if (nodeRoot && nodeRoot !== node) {
2813
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
2814
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
2815
- while (!attached && nodeRootHost) {
2816
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
2817
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
2818
- // which means we need to get the host's host and check if that parent host is contained
2819
- // in (i.e. attached to) the document
2820
- nodeRoot = getRootNode(nodeRootHost);
2821
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
2822
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
2823
- }
2824
- }
2825
- return attached;
2826
- };
2827
- var isZeroArea = function isZeroArea(node) {
2828
- var _node$getBoundingClie = node.getBoundingClientRect(),
2829
- width = _node$getBoundingClie.width,
2830
- height = _node$getBoundingClie.height;
2831
- return width === 0 && height === 0;
2832
- };
2833
- var isHidden = function isHidden(node, _ref) {
2834
- var displayCheck = _ref.displayCheck,
2835
- getShadowRoot = _ref.getShadowRoot;
2836
- // NOTE: visibility will be `undefined` if node is detached from the document
2837
- // (see notes about this further down), which means we will consider it visible
2838
- // (this is legacy behavior from a very long way back)
2839
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
2840
- // _visibility_ check, not a _display_ check
2841
- if (getComputedStyle(node).visibility === 'hidden') {
2842
- return true;
2843
- }
2844
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
2845
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
2846
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
2847
- return true;
2848
- }
2849
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
2850
- if (typeof getShadowRoot === 'function') {
2851
- // figure out if we should consider the node to be in an undisclosed shadow and use the
2852
- // 'non-zero-area' fallback
2853
- var originalNode = node;
2854
- while (node) {
2855
- var parentElement = node.parentElement;
2856
- var rootNode = getRootNode(node);
2857
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
2858
- ) {
2859
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
2860
- // fall back to a non-zero-area test
2861
- return isZeroArea(node);
2862
- } else if (node.assignedSlot) {
2863
- // iterate up slot
2864
- node = node.assignedSlot;
2865
- } else if (!parentElement && rootNode !== node.ownerDocument) {
2866
- // cross shadow boundary
2867
- node = rootNode.host;
2868
- } else {
2869
- // iterate up normal dom
2870
- node = parentElement;
2871
- }
2872
- }
2873
- node = originalNode;
2874
- }
2875
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
2876
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
2877
- // it might be a falsy value, which means shadow DOM support is disabled
2878
-
2879
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
2880
- // now we can just test to see if it would normally be visible or not, provided it's
2881
- // attached to the main document.
2882
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
2883
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
2884
-
2885
- if (isNodeAttached(node)) {
2886
- // this works wherever the node is: if there's at least one client rect, it's
2887
- // somehow displayed; it also covers the CSS 'display: contents' case where the
2888
- // node itself is hidden in place of its contents; and there's no need to search
2889
- // up the hierarchy either
2890
- return !node.getClientRects().length;
2891
- }
2892
-
2893
- // Else, the node isn't attached to the document, which means the `getClientRects()`
2894
- // API will __always__ return zero rects (this can happen, for example, if React
2895
- // is used to render nodes onto a detached tree, as confirmed in this thread:
2896
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
2897
- //
2898
- // It also means that even window.getComputedStyle(node).display will return `undefined`
2899
- // because styles are only computed for nodes that are in the document.
2900
- //
2901
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
2902
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
2903
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
2904
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
2905
- // considering __everything__ to be visible because of the innability to determine styles.
2906
- //
2907
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
2908
- // nodes as visible with the 'none' fallback.__
2909
- if (displayCheck !== 'legacy-full') {
2910
- return true; // hidden
2911
- }
2912
- // else, fallback to 'none' mode and consider the node visible
2913
- } else if (displayCheck === 'non-zero-area') {
2914
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
2915
- // whether it's displayed, and that a detached node will __always__ have a zero-area
2916
- // client rect, we don't special-case for whether the node is attached or not. In
2917
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
2918
- // times, and that includes attached or not.
2919
- return isZeroArea(node);
2920
- }
2921
-
2922
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
2923
- // it's visible
2924
- return false;
2925
- };
2926
-
2927
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
2928
- // unless they are in the _first_ <legend> element of the top-most disabled
2929
- // fieldset
2930
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
2931
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
2932
- var parentNode = node.parentElement;
2933
- // check if `node` is contained in a disabled <fieldset>
2934
- while (parentNode) {
2935
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
2936
- // look for the first <legend> among the children of the disabled <fieldset>
2937
- for (var i = 0; i < parentNode.children.length; i++) {
2938
- var child = parentNode.children.item(i);
2939
- // when the first <legend> (in document order) is found
2940
- if (child.tagName === 'LEGEND') {
2941
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
2942
- // return whether `node` is a descendant of its first <legend>
2943
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
2944
- }
2945
- }
2946
- // the disabled <fieldset> containing `node` has no <legend>
2947
- return true;
2948
- }
2949
- parentNode = parentNode.parentElement;
2950
- }
2951
- }
2952
-
2953
- // else, node's tabbable/focusable state should not be affected by a fieldset's
2954
- // enabled/disabled state
2955
- return false;
2956
- };
2957
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
2958
- if (node.disabled ||
2959
- // we must do an inert look up to filter out any elements inside an inert ancestor
2960
- // because we're limited in the type of selectors we can use in JSDom (see related
2961
- // note related to `candidateSelectors`)
2962
- isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
2963
- // For a details element with a summary, the summary element gets the focus
2964
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
2965
- return false;
2966
- }
2967
- return true;
2968
- };
2969
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
2970
- if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
2971
- return false;
2972
- }
2973
- return true;
2974
- };
2975
- var isTabbable = function isTabbable(node, options) {
2976
- options = options || {};
2977
- if (!node) {
2978
- throw new Error('No node provided');
2979
- }
2980
- if (matches.call(node, candidateSelector) === false) {
2981
- return false;
2982
- }
2983
- return isNodeMatchingSelectorTabbable(options, node);
2984
- };
2985
-
2986
- var defaultConfig$1 = function defaultConfig() {
2987
- return {
2988
- /** Class which indicates that modal is open */
2989
- classModalIsOpen: "is-active",
2990
- /** Class on body which indicates that modal is open */
2991
- classModalIsOpenBody: "has-modal",
2992
- /** Root of page content which should be hidden when modal is open */
2993
- root: "#root",
2994
- /** Move modal into this element selector (must be unique in DOM) */
2995
- modalsRoot: "#root-modals"
2996
- };
2997
- };
2998
- var Modal$1 = /*#__PURE__*/function () {
2999
- function Modal(element, config) {
3000
- _classCallCheck(this, Modal);
3001
- this.element = element;
3002
- this.config = Object.assign(Object.assign({}, defaultConfig$1()), config);
3003
- this.handleShow = this.handleShow.bind(this);
3004
- this.handleHide = this.handleHide.bind(this);
3005
- this.show = this.show.bind(this);
3006
- this.hide = this.hide.bind(this);
3007
- this.headerFirstItemSpacing = this.headerFirstItemSpacing.bind(this);
3008
- Modal.moveToModalRoot = Modal.moveToModalRoot.bind(this);
3009
- Modal.lockBody = Modal.lockBody.bind(this);
3010
- Modal.unlockBody = Modal.unlockBody.bind(this);
3011
- this.element.ODS_Modal = this;
3012
- this.init();
3013
- return this;
3014
- }
3015
- return _createClass(Modal, [{
3016
- key: "handleShow",
3017
- value: function handleShow(el) {
3018
- Modal.lockBody();
3019
- if (el) el.classList.add(this.config.classModalIsOpen);
3020
- // Long modals can have first focusabble element under the fold, so static content above the fold should be focused instead to prevent undesirable scrolling
3021
- var initialFocusEl = el.querySelector("[data-a11y-dialog-initial-focus]");
3022
- if (!initialFocusEl) {
3023
- return;
3024
- }
3025
- // set tabindex to -1 so element can't be focused via keyboard
3026
- if (!isTabbable(initialFocusEl)) {
3027
- initialFocusEl.setAttribute("tabindex", "-1");
3028
- }
3029
- initialFocusEl.focus();
3030
- }
3031
- }, {
3032
- key: "handleHide",
3033
- value: function handleHide(el) {
3034
- Modal.unlockBody();
3035
- if (el) el.classList.remove(this.config.classModalIsOpen);
3036
- }
3037
- }, {
3038
- key: "show",
3039
- value: function show() {
3040
- this.instance.show();
3041
- }
3042
- }, {
3043
- key: "hide",
3044
- value: function hide() {
3045
- this.instance.hide();
3046
- }
3047
- }, {
3048
- key: "headerFirstItemSpacing",
3049
- value: function headerFirstItemSpacing() {
3050
- /**
3051
- * Target the first element which is not .btn inside .modal__header and add margin-right 40px.
3052
- * css has its limitations and it is not possible with pseudo selectors
3053
- */
3054
- var modalHeader = this.element.querySelector(".modal__header");
3055
- if (modalHeader) {
3056
- var firstNonBtnElement = Array.from(modalHeader.children).find(function (child) {
3057
- return !child.classList.contains("btn");
3058
- });
3059
- if (firstNonBtnElement) {
3060
- firstNonBtnElement.style.marginRight = "40px";
3061
- }
3062
- }
3063
- }
3064
- }, {
3065
- key: "init",
3066
- value: function init() {
3067
- var _this = this;
3068
- if (this.config.modalsRoot) {
3069
- Modal.moveToModalRoot(this.element, document.querySelector(this.config.modalsRoot));
3070
- }
3071
- this.instance = new A11yDialog(this.element);
3072
- this.instance.on("show", function (event) {
3073
- var dialogEl = event.currentTarget;
3074
- _this.handleShow(dialogEl);
3075
- });
3076
- this.instance.on("hide", function (event) {
3077
- var dialogEl = event.currentTarget;
3078
- _this.handleHide(dialogEl);
3079
- });
3080
- this.headerFirstItemSpacing();
3081
- }
3082
- }, {
3083
- key: "destroy",
3084
- value: function destroy() {
3085
- this.instance.destroy();
3086
- this.element.ODS_Modal = this;
3087
- }
3088
- }, {
3089
- key: "update",
3090
- value: function update() {
3091
- this.destroy();
3092
- this.init();
3093
- }
3094
- }], [{
3095
- key: "getInstance",
3096
- value: function getInstance(el) {
3097
- if (!el) return null;
3098
- var modalEl = el;
3099
- return modalEl.ODS_Modal || null;
3100
- }
3101
- }, {
3102
- key: "moveToModalRoot",
3103
- value: function moveToModalRoot(el, container) {
3104
- var _a;
3105
- if (container) {
3106
- container.appendChild(el);
3107
- } else {
3108
- console.warn("`modalsRoot: ".concat((_a = this.config) === null || _a === void 0 ? void 0 : _a.modalsRoot, "` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide `modalsRoot` selector (should be placed outside of main contant, usualy in end of <body /> tag)"));
3109
- }
3110
- }
3111
- }, {
3112
- key: "lockBody",
3113
- value: function lockBody(className, root) {
3114
- var _a, _b;
3115
- var actualClassName = className || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.classModalIsOpenBody);
3116
- var actualRoot = root || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.root);
3117
- var container = document.querySelector(actualRoot);
3118
- // store current scrollTop value
3119
- var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
3120
- document.body.setAttribute("data-lock-scrolltop", scrollTop.toString());
3121
- // add locking styles to body
3122
- document.body.style.height = "100%";
3123
- document.body.style.width = "100%";
3124
- document.body.style.overflow = "hidden";
3125
- document.body.style.position = "fixed";
3126
- // add locking styles to scrollTop
3127
- if (container) {
3128
- container.style.height = "100%";
3129
- container.style.width = "100%";
3130
- container.style.overflow = "hidden";
3131
- container.style.position = "fixed";
3132
- // scroll page-container to scrollTop position
3133
- container.scrollTop = scrollTop;
3134
- }
3135
- // add modal class
3136
- document.body.classList.add(actualClassName);
3137
- // attempt to scroll top fixed position
3138
- window.requestAnimationFrame(function () {
3139
- window.scrollTo(0, scrollTop);
3140
- });
3141
- }
3142
- }, {
3143
- key: "unlockBody",
3144
- value: function unlockBody(className, root) {
3145
- var _a, _b;
3146
- var actualClassName = className || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.classModalIsOpenBody);
3147
- var actualRoot = root || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.root);
3148
- var container = document.querySelector(actualRoot);
3149
- var scrollTop = document.body.getAttribute("data-lock-scrolltop") || "0";
3150
- // remove locking styles from body
3151
- document.body.style.height = "";
3152
- document.body.style.width = "";
3153
- document.body.style.overflow = "";
3154
- document.body.style.position = "";
3155
- // add modal class
3156
- document.body.classList.remove(actualClassName);
3157
- // remove locking styles from page-container
3158
- if (container) {
3159
- container.style.height = "";
3160
- container.style.width = "";
3161
- container.style.overflow = "";
3162
- container.style.position = "";
3163
- }
3164
- // set scroll position back
3165
- window.requestAnimationFrame(function () {
3166
- window.scrollTo({
3167
- left: 0,
3168
- top: parseInt(scrollTop, 10),
3169
- behavior: "instant"
3170
- });
3171
- });
3172
- }
3173
- }]);
3174
- }();
3175
-
3176
- var ModalCloseButton = function ModalCloseButton(props) {
3177
- return /*#__PURE__*/jsxRuntimeExports.jsx(IconButton, _objectSpread2({
3178
- iconName: "delete",
3179
- type: "ghost",
3180
- isSquare: true,
3181
- size: "small",
3182
- className: "modal__close",
3183
- "data-a11y-dialog-hide": true,
3184
- "aria-label": "Zatvori\u0165"
3185
- }, props));
3186
- };
3187
- ModalCloseButton.displayName = "ModalCloseButton";
3188
-
3189
- var ModalTitle = function ModalTitle(_a) {
3190
- var size = _a.size,
3191
- className = _a.className,
3192
- children = _a.children,
3193
- other = __rest(_a, ["size", "className", "children"]);
3194
- return /*#__PURE__*/jsxRuntimeExports.jsx("h2", _objectSpread2(_objectSpread2({
3195
- className: cx(className, {
3196
- "display-3": size === "large",
3197
- h2: size === "small"
3198
- })
3199
- }, other), {}, {
3200
- children: children
3201
- }));
3202
- };
3203
- ModalTitle.displayName = "ModalTitle";
3204
-
3205
- var CLASS_ROOT$3 = "modal__body";
3206
- var ModalBody = function ModalBody(_a) {
3207
- var color = _a.color,
3208
- className = _a.className,
3209
- children = _a.children,
3210
- other = __rest(_a, ["color", "className", "children"]);
3211
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2(_objectSpread2({
3212
- className: cx(CLASS_ROOT$3, className, _defineProperty(_defineProperty({}, "bg-".concat(color), color), "".concat(CLASS_ROOT$3, "--colorful"), color))
3213
- }, other), {}, {
3214
- children: children
3215
- }));
3216
- };
3217
- ModalBody.displayName = "ModalBody";
3218
-
3219
- var CLASS_ROOT$2 = "modal";
3220
- var defaultProps = {
3221
- actions: [/*#__PURE__*/jsxRuntimeExports.jsx(Button, {
3222
- "data-a11y-dialog-hide": true,
3223
- children: "Zatvori\u0165"
3224
- }, "1")],
3225
- noInit: false
3226
- };
3227
- var Modal = function Modal(_a) {
3228
- var _a$actions = _a.actions,
3229
- actions = _a$actions === void 0 ? defaultProps.actions : _a$actions,
3230
- className = _a.className,
3231
- children = _a.children,
3232
- hasStickyFooter = _a.hasStickyFooter,
3233
- id = _a.id,
3234
- _a$noInit = _a.noInit,
3235
- noInit = _a$noInit === void 0 ? defaultProps.noInit : _a$noInit,
3236
- isActive = _a.isActive,
3237
- size = _a.size,
3238
- title = _a.title,
3239
- renderBody = _a.renderBody,
3240
- renderTitle = _a.renderTitle,
3241
- renderFooter = _a.renderFooter,
3242
- fullHeight = _a.fullHeight,
3243
- other = __rest(_a, ["actions", "className", "children", "hasStickyFooter", "id", "noInit", "isActive", "size", "title", "renderBody", "renderTitle", "renderFooter", "fullHeight"]);
3244
- var _useStatic = useStatic(Modal$1),
3245
- _useStatic2 = _slicedToArray(_useStatic, 2),
3246
- modalRef = _useStatic2[0],
3247
- instance = _useStatic2[1];
3248
- useEffect(function () {
3249
- if (isActive && instance && instance.current) {
3250
- instance.current.show();
3251
- }
3252
- }, [instance, isActive]);
3253
- var dialogClasses = cx("".concat(CLASS_ROOT$2, "__dialog"), _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$2, "__dialog--").concat(size), size), "".concat(CLASS_ROOT$2, "__dialog--full-height"), fullHeight), className);
3254
- var titleId = "".concat(id, "-title");
3255
- var dialogTitle = renderTitle ? renderTitle(id) : /*#__PURE__*/jsxRuntimeExports.jsx(ModalTitle, {
3256
- id: titleId,
3257
- size: size,
3258
- "data-a11y-dialog-initial-focus": true,
3259
- children: title
3260
- });
3261
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
3262
- id: id,
3263
- "data-modal": !noInit,
3264
- className: CLASS_ROOT$2,
3265
- ref: modalRef,
3266
- role: "dialog",
3267
- "aria-hidden": "true",
3268
- "aria-modal": "true",
3269
- "aria-labelledby": titleId,
3270
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
3271
- className: "modal__overlay",
3272
- tabIndex: -1,
3273
- "data-a11y-dialog-hide": true
3274
- }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", _objectSpread2(_objectSpread2({
3275
- className: dialogClasses,
3276
- role: "document"
3277
- }, other), {}, {
3278
- children: [/*#__PURE__*/jsxRuntimeExports.jsxs("div", {
3279
- className: "".concat(CLASS_ROOT$2, "__header"),
3280
- children: [/*#__PURE__*/jsxRuntimeExports.jsx(ModalCloseButton, {}), dialogTitle]
3281
- }), renderBody ? renderBody() : /*#__PURE__*/jsxRuntimeExports.jsx(ModalBody, {
3282
- children: children
3283
- }), /*#__PURE__*/jsxRuntimeExports.jsx("div", {
3284
- className: cx("".concat(CLASS_ROOT$2, "__footer"), _defineProperty({}, "".concat(CLASS_ROOT$2, "__footer--sticky"), hasStickyFooter)),
3285
- children: renderFooter ? renderFooter() : /*#__PURE__*/jsxRuntimeExports.jsx(ConditionalWrapper, {
3286
- condition: actions.length > 1,
3287
- wrapper: /*#__PURE__*/jsxRuntimeExports.jsx(Buttons, {}),
3288
- children: actions.map(function (action) {
3289
- return action;
3290
- })
3291
- })
3292
- })]
3293
- }))]
3294
- });
3295
- };
3296
- Modal.displayName = "Modal";
3297
-
3298
- var CLASS_ROOT$1 = 'container';
3299
- var Container = function Container(_a) {
3300
- var className = _a.className,
3301
- other = __rest(_a, ["className"]);
3302
- var classes = cx(CLASS_ROOT$1, className);
3303
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2({
3304
- className: classes
3305
- }, other));
3306
- };
3307
- Container.displayName = 'Container';
3308
-
3309
- var CLASS_ROOT = "section";
3310
- var Section = function Section(_a) {
3311
- var className = _a.className,
3312
- _a$color = _a.color,
3313
- color = _a$color === void 0 ? "white" : _a$color,
3314
- spacing = _a.spacing,
3315
- _a$tag = _a.tag,
3316
- Tag = _a$tag === void 0 ? "div" : _a$tag,
3317
- children = _a.children,
3318
- other = __rest(_a, ["className", "color", "spacing", "tag", "children"]);
3319
- var classes = cx(CLASS_ROOT, _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT, "--").concat(spacing), spacing), "bg-".concat(color), color !== "white"), className);
3320
- return /*#__PURE__*/jsxRuntimeExports.jsx(Tag, _objectSpread2(_objectSpread2({
3321
- className: classes
3322
- }, other), {}, {
3323
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Container, {
3324
- children: children
3325
- })
3326
- }));
3327
- };
3328
- Section.displayName = "Section";
3329
-
3330
- var CLASS_TABLIST_ITEM = "tab-list__item";
3331
- var CLASS_TABLIST_TAB = "tab-list__tab";
3332
- var Tab = function Tab(_a) {
3333
- var href = _a.href,
3334
- children = _a.children,
3335
- className = _a.className,
3336
- controls = _a.controls,
3337
- isDisabled = _a.isDisabled,
3338
- isActive = _a.isActive,
3339
- other = __rest(_a, ["href", "children", "className", "controls", "isDisabled", "isActive"]);
3340
- var tabClasses = cx(CLASS_TABLIST_TAB, className);
3341
- var tabindex = isActive ? 0 : -1;
3342
- var Tag = href ? "a" : "button";
3343
- return /*#__PURE__*/jsxRuntimeExports.jsx("li", {
3344
- className: CLASS_TABLIST_ITEM,
3345
- role: "presentation",
3346
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Tag, _objectSpread2(_objectSpread2({
3347
- type: href ? undefined : "button",
3348
- role: href ? undefined : "tab",
3349
- href: href,
3350
- className: tabClasses,
3351
- "aria-selected": isActive,
3352
- "aria-controls": controls || undefined,
3353
- tabIndex: tabindex,
3354
- "aria-disabled": isDisabled
3355
- }, other), {}, {
3356
- children: children
3357
- }))
3358
- });
3359
- };
3360
- Tab.displayName = "Tab";
3361
-
3362
- // we use array to include old browser key names like IE11
3363
- // ie. navigation keys https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#navigation_keys
3364
- var keys = {
3365
- TAB: ['Tab'],
3366
- ARROWLEFT: ['Left', 'ArrowLeft'],
3367
- ARROWUP: ['Up', 'ArrowUp'],
3368
- ARROWRIGHT: ['Right', 'ArrowRight'],
3369
- ARROWDOWN: ['Down', 'ArrowDown']
3370
- };
3371
-
3372
- var RovingTabindex = /*#__PURE__*/function () {
3373
- function RovingTabindex(elems) {
3374
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
3375
- direction: 'horizontal'
3376
- };
3377
- _classCallCheck(this, RovingTabindex);
3378
- this.elems = elems;
3379
- this.config = config;
3380
- this.isActive = false;
3381
- this.onKeydown = this.onKeydown.bind(this);
3382
- }
3383
- return _createClass(RovingTabindex, [{
3384
- key: "init",
3385
- value: function init() {
3386
- document.addEventListener('keydown', this.onKeydown);
3387
- this.isActive = true;
3388
- }
3389
- }, {
3390
- key: "destroy",
3391
- value: function destroy() {
3392
- document.removeEventListener('keydown', this.onKeydown);
3393
- this.isActive = false;
3394
- }
3395
- }, {
3396
- key: "update",
3397
- value: function update(elems) {
3398
- this.elems = elems;
3399
- }
3400
- }, {
3401
- key: "onKeydown",
3402
- value: function onKeydown(e) {
3403
- var activeElemIndex = this.elems.indexOf(document.activeElement);
3404
- if ((keys.ARROWUP.includes(e.key) || keys.ARROWDOWN.includes(e.key)) && this.config.direction === 'horizontal') {
3405
- return;
3406
- }
3407
- if ((keys.ARROWLEFT.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) && this.config.direction === 'vertical') {
3408
- return;
3409
- }
3410
- if (keys.ARROWDOWN.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) {
3411
- e.preventDefault();
3412
- if (activeElemIndex >= 0 && activeElemIndex < this.elems.length - 1) {
3413
- this.elems[activeElemIndex + 1].focus();
3414
- } else {
3415
- this.elems[0].focus();
3416
- }
3417
- }
3418
- if (keys.ARROWUP.includes(e.key) || keys.ARROWLEFT.includes(e.key)) {
3419
- e.preventDefault();
3420
- if (activeElemIndex >= 1) {
3421
- this.elems[activeElemIndex - 1].focus();
3422
- } else {
3423
- this.elems[this.elems.length - 1].focus();
3424
- }
3425
- }
3426
- if (keys.TAB.includes(e.key)) {
3427
- this.destroy();
3428
- }
3429
- }
3430
- }]);
3431
- }();
3432
-
3433
- var defaultConfig = {
3434
- tabSelector: '[role="tab"]'
3435
- };
3436
- var Tabs$1 = /*#__PURE__*/function () {
3437
- function Tabs(element, config) {
3438
- _classCallCheck(this, Tabs);
3439
- this.isActive = function (el) {
3440
- return el ? !el.hasAttribute("hidden") : false;
3441
- };
3442
- this.isSelected = function (el) {
3443
- return el.getAttribute("aria-selected") === "true";
3444
- };
3445
- this.element = element;
3446
- this.config = Object.assign(Object.assign({}, defaultConfig), config);
3447
- this.tabs = [];
3448
- this.tabPanels = [];
3449
- this.activeTabIndex = null;
3450
- this.rovingTabindex = null;
3451
- this.handleClick = this.handleClick.bind(this);
3452
- this.handleTabFocus = this.handleTabFocus.bind(this);
3453
- this.element.ODS_Tabs = this;
3454
- this.init();
3455
- return this;
3456
- }
3457
- return _createClass(Tabs, [{
3458
- key: "init",
3459
- value: function init() {
3460
- var _this = this;
3461
- this.tabs = Array.from(this.element.querySelectorAll(this.config.tabSelector));
3462
- this.tabs.map(function (tab, index) {
3463
- var controlId = tab.getAttribute("aria-controls");
3464
- _this.tabPanels.push(controlId ? document.getElementById(controlId) : null);
3465
- tab.addEventListener("click", _this.handleClick);
3466
- tab.addEventListener("focus", _this.handleTabFocus);
3467
- if (_this.isSelected(tab)) {
3468
- _this.activeTabIndex = index;
3469
- }
3470
- return tab;
3471
- });
3472
- if (!this.rovingTabindex) {
3473
- this.rovingTabindex = new RovingTabindex(this.tabs, {
3474
- direction: "any"
3475
- });
3476
- } else {
3477
- this.rovingTabindex.update(this.tabs);
3478
- }
3479
- if (this.activeTabIndex !== null) {
3480
- this.toggleTabPanel(this.tabPanels[this.activeTabIndex], "on");
3481
- } else if (this.tabs.length > 0) {
3482
- this.activateNthTab(0);
3483
- }
3484
- }
3485
- }, {
3486
- key: "destroy",
3487
- value: function destroy() {
3488
- var _this2 = this;
3489
- this.tabs.map(function (tab) {
3490
- tab.removeEventListener("click", _this2.handleClick);
3491
- tab.removeEventListener("focus", _this2.handleTabFocus);
3492
- return tab;
3493
- });
3494
- this.tabs = [];
3495
- this.tabPanels = [];
3496
- if (this.rovingTabindex) {
3497
- this.rovingTabindex.destroy();
3498
- }
3499
- this.element.ODS_Tabs = null;
3500
- }
3501
- }, {
3502
- key: "update",
3503
- value: function update() {
3504
- this.destroy();
3505
- this.init();
3506
- }
3507
- }, {
3508
- key: "handleClick",
3509
- value: function handleClick(e) {
3510
- var _this3 = this;
3511
- var clickedTab = e.currentTarget;
3512
- if (clickedTab.hasAttribute("aria-disabled")) {
3513
- e.preventDefault();
3514
- return;
3515
- }
3516
- this.tabs.map(function (tab, i) {
3517
- if (tab === clickedTab) {
3518
- _this3.activeTabIndex = i;
3519
- return _this3.toggleTab(tab, "on");
3520
- }
3521
- return _this3.toggleTab(tab, "off");
3522
- });
3523
- this.tabPanels.map(function (tabPanel) {
3524
- if (tabPanel && tabPanel.getAttribute("id") === clickedTab.getAttribute("aria-controls")) {
3525
- return _this3.toggleTabPanel(tabPanel, "on");
3526
- }
3527
- return _this3.toggleTabPanel(tabPanel, "off");
3528
- });
3529
- }
3530
- }, {
3531
- key: "toggleTab",
3532
- value: function toggleTab(el, state) {
3533
- var isActive = this.isSelected(el);
3534
- if (state === "on" && !isActive) {
3535
- el.setAttribute("aria-selected", "true");
3536
- el.setAttribute("tabindex", "0");
3537
- }
3538
- if (state === "off" && isActive) {
3539
- el.setAttribute("aria-selected", "false");
3540
- el.setAttribute("tabindex", "-1");
3541
- }
3542
- }
3543
- }, {
3544
- key: "toggleTabPanel",
3545
- value: function toggleTabPanel(el, state) {
3546
- if (!el) return;
3547
- var isActive = this.isActive(el);
3548
- if (state === "on" && !isActive) {
3549
- el.removeAttribute("hidden");
3550
- }
3551
- if (state === "off" && isActive) {
3552
- el.setAttribute("hidden", "");
3553
- }
3554
- }
3555
- }, {
3556
- key: "activateNthTab",
3557
- value: function activateNthTab(index) {
3558
- var _this4 = this;
3559
- this.tabs.map(function (tab, i) {
3560
- if (i === index) {
3561
- _this4.activeTabIndex = i;
3562
- return _this4.toggleTab(tab, "on");
3563
- }
3564
- return _this4.toggleTab(tab, "off");
3565
- });
3566
- this.tabPanels.map(function (tabPanel, i) {
3567
- if (i === index) {
3568
- return _this4.toggleTabPanel(tabPanel, "on");
3569
- }
3570
- return _this4.toggleTabPanel(tabPanel, "off");
3571
- });
3572
- }
3573
- }, {
3574
- key: "handleTabFocus",
3575
- value: function handleTabFocus() {
3576
- if (this.rovingTabindex && !this.rovingTabindex.isActive) {
3577
- this.rovingTabindex.init();
3578
- }
3579
- }
3580
- }], [{
3581
- key: "getInstance",
3582
- value: function getInstance(el) {
3583
- return el && el.ODS_Tabs ? el.ODS_Tabs : null;
3584
- }
3585
- }]);
3586
- }();
3587
-
3588
- var Tabs = function Tabs(_a) {
3589
- var _a$activeTabIndex = _a.activeTabIndex,
3590
- activeTabIndex = _a$activeTabIndex === void 0 ? 0 : _a$activeTabIndex,
3591
- className = _a.className,
3592
- classesTabNav = _a.classesTabNav,
3593
- _a$colour = _a.colour,
3594
- colour = _a$colour === void 0 ? "default" : _a$colour,
3595
- isFullWidth = _a.isFullWidth,
3596
- isLink = _a.isLink,
3597
- hasEqualTabWidth = _a.hasEqualTabWidth,
3598
- _a$variant = _a.variant,
3599
- variant = _a$variant === void 0 ? "standard" : _a$variant,
3600
- children = _a.children,
3601
- other = __rest(_a, ["activeTabIndex", "className", "classesTabNav", "colour", "isFullWidth", "isLink", "hasEqualTabWidth", "variant", "children"]);
3602
- var CLASS_TABNAV = "tab-list";
3603
- var tabNavClasses = cx(CLASS_TABNAV, _defineProperty({}, "".concat(CLASS_TABNAV, "--equal"), hasEqualTabWidth), _defineProperty({}, "".concat(CLASS_TABNAV, "--fullwidth"), isFullWidth), _defineProperty({}, "".concat(CLASS_TABNAV, "--inverse"), colour === "inverse"), _defineProperty({}, "".concat(CLASS_TABNAV, "--light"), variant === "light"), classesTabNav, className);
3604
- var _useStatic = useStatic(Tabs$1),
3605
- _useStatic2 = _slicedToArray(_useStatic, 1),
3606
- tabListRef = _useStatic2[0];
3607
- function getTabs() {
3608
- return children.map(function (tabPanel, i) {
3609
- var isActive = i === activeTabIndex;
3610
- var _tabPanel$props = tabPanel.props,
3611
- renderTab = _tabPanel$props.renderTab,
3612
- id = _tabPanel$props.id,
3613
- isDisabled = _tabPanel$props.isDisabled,
3614
- tab = _tabPanel$props.tab,
3615
- href = _tabPanel$props.href;
3616
- if (!renderTab) {
3617
- return /*#__PURE__*/React.createElement(Tab, {
3618
- key: id,
3619
- controls: !href ? id : "",
3620
- href: href,
3621
- isDisabled: isDisabled,
3622
- isActive: isActive
3623
- }, tab);
3624
- }
3625
- var renderedTab = renderTab(tabPanel.props);
3626
- return /*#__PURE__*/React.cloneElement(renderedTab, {
3627
- key: id,
3628
- isActive: isActive
3629
- });
3630
- });
3631
- }
3632
- function getPanels() {
3633
- return children.map(function (tabPanel, i) {
3634
- var isActive = i === activeTabIndex;
3635
- var id = tabPanel.props.id;
3636
- return /*#__PURE__*/React.cloneElement(tabPanel, {
3637
- key: id,
3638
- isActive: isActive,
3639
- tab: undefined
3640
- });
3641
- });
3642
- }
3643
- return /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
3644
- children: [/*#__PURE__*/jsxRuntimeExports.jsxs("ul", _objectSpread2(_objectSpread2({
3645
- className: tabNavClasses,
3646
- role: isLink ? "navigation" : "tablist",
3647
- ref: tabListRef,
3648
- "data-tabs": isLink ? undefined : "true"
3649
- }, other), {}, {
3650
- children: [getTabs(), isFullWidth && /*#__PURE__*/jsxRuntimeExports.jsx("li", {
3651
- role: "presentation",
3652
- className: "tab-list__hr"
3653
- })]
3654
- })), !isLink ? getPanels() : null]
3655
- });
3656
- };
3657
- Tabs.displayName = "Tabs";
3658
-
3659
- var TabPanel = function TabPanel(_a) {
3660
- var children = _a.children,
3661
- isActive = _a.isActive,
3662
- id = _a.id,
3663
- href = _a.href,
3664
- other = __rest(_a, ["children", "isActive", "id", "href"]);
3665
- var currentId = id || generateId();
3666
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2(_objectSpread2({
3667
- id: currentId,
3668
- role: href ? "" : "tabpanel",
3669
- tabIndex: 0,
3670
- hidden: !isActive
3671
- }, other), {}, {
3672
- children: children
3673
- }));
3674
- };
3675
- TabPanel.displayName = "TabPanel";
3676
-
3677
- export { Alert, Badge, Button, ButtonFill, ButtonGhost, ButtonPrimary, Buttons, Icon, IconButton, Modal, ModalBody, ModalCloseButton, ModalTitle, Section, Tab, TabPanel, Tabs };
34
+ */var Er=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Or="undefined"==typeof Element,Ar=Or?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Cr=!Or&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Tr=function e(t,n){var i;void 0===n&&(n=!0);var r=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},Dr=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex},Lr=function(e){return"INPUT"===e.tagName},Ir=function(e){return function(e){return Lr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Cr(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},Pr=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Rr=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=Ar.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Ar.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Pr(e)}else{if("function"==typeof i){for(var o=e;e;){var a=e.parentElement,s=Cr(e);if(a&&!a.shadowRoot&&!0===i(a))return Pr(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(function(e){var t,n,i,r,o=e&&Cr(e),a=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=o=Cr(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Mr=function(e,t){return!(t.disabled||Tr(t)||function(e){return Lr(e)&&"hidden"===e.type}(t)||Rr(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Ar.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},zr=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ar.call(e,Er)&&function(e,t){return!(Ir(t)||Dr(t)<0||!Mr(e,t))}(t,e)},Fr=function(){function e(t,n){return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},{classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals"}),n),this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),e.moveToModalRoot=e.moveToModalRoot.bind(this),e.lockBody=e.lockBody.bind(this),e.unlockBody=e.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}return m(e,[{key:"handleShow",value:function(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);var n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(zr(n)||n.setAttribute("tabindex","-1"),n.focus())}},{key:"handleHide",value:function(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}},{key:"show",value:function(){this.instance.show()}},{key:"hide",value:function(){this.instance.hide()}},{key:"headerFirstItemSpacing",value:function(){var e=this.element.querySelector(".modal__header");if(e){var t=Array.from(e.children).find(function(e){return!e.classList.contains("btn")});t&&(t.style.marginRight="40px")}}},{key:"init",value:function(){var t=this;this.config.modalsRoot&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new kr(this.element),this.instance.on("show",function(e){var n=e.currentTarget;t.handleShow(n)}),this.instance.on("hide",function(e){var n=e.currentTarget;t.handleHide(n)}),this.headerFirstItemSpacing()}},{key:"destroy",value:function(){this.instance.destroy(),this.element.ODS_Modal=this}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Modal||null}},{key:"moveToModalRoot",value:function(e,t){var n;t?t.appendChild(e):console.warn("`modalsRoot: ".concat(null===(n=this.config)||void 0===n?void 0:n.modalsRoot,"` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide `modalsRoot` selector (should be placed outside of main contant, usualy in end of <body /> tag)"))}},{key:"lockBody",value:function(e,t){var n,i,r=e||(null===(n=this.config)||void 0===n?void 0:n.classModalIsOpenBody),o=t||(null===(i=this.config)||void 0===i?void 0:i.root),a=document.querySelector(o),s=document.documentElement.scrollTop||document.body.scrollTop;document.body.setAttribute("data-lock-scrolltop",s.toString()),document.body.style.height="100%",document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.position="fixed",a&&(a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.position="fixed",a.scrollTop=s),document.body.classList.add(r),window.requestAnimationFrame(function(){window.scrollTo(0,s)})}},{key:"unlockBody",value:function(e,t){var n,i,r=e||(null===(n=this.config)||void 0===n?void 0:n.classModalIsOpenBody),o=t||(null===(i=this.config)||void 0===i?void 0:i.root),a=document.querySelector(o),s=document.body.getAttribute("data-lock-scrolltop")||"0";document.body.style.height="",document.body.style.width="",document.body.style.overflow="",document.body.style.position="",document.body.classList.remove(r),a&&(a.style.height="",a.style.width="",a.style.overflow="",a.style.position=""),window.requestAnimationFrame(function(){window.scrollTo({left:0,top:parseInt(s,10),behavior:"instant"})})}}])}(),Br=function(e){return X.jsx(Xe,b({iconName:"delete",type:"ghost",isSquare:!0,size:"small",className:"modal__close","data-a11y-dialog-hide":!0,"aria-label":"Zatvoriť"},e))};Br.displayName="ModalCloseButton";var Ur=function(e){var t=e.size,n=e.className,i=e.children,r=S(e,["size","className","children"]);return X.jsx("h2",b(b({className:A(n,{"display-3":"large"===t,h2:"small"===t})},r),{},{children:i}))};Ur.displayName="ModalTitle";var Vr="modal__body",Hr=function(e){var t=e.color,n=e.className,i=e.children,r=S(e,["color","className","children"]);return X.jsx("div",b(b({className:A(Vr,n,v(v({},"bg-".concat(t),t),"".concat(Vr,"--colorful"),t))},r),{},{children:i}))};Hr.displayName="ModalBody";var Wr="modal",qr={actions:[X.jsx(Ue,{"data-a11y-dialog-hide":!0,children:"Zatvoriť"},"1")],noInit:!1},$r=function(e){var t=e.actions,n=void 0===t?qr.actions:t,r=e.className,o=e.children,a=e.hasStickyFooter,s=e.id,l=e.noInit,c=void 0===l?qr.noInit:l,u=e.isActive,d=e.size,h=e.title,p=e.renderBody,f=e.renderTitle,m=e.renderFooter,g=e.fullHeight,x=e.colorScheme,w=S(e,["actions","className","children","hasStickyFooter","id","noInit","isActive","size","title","renderBody","renderTitle","renderFooter","fullHeight","colorScheme"]),N=y(B(Fr),2),_=N[0],k=N[1];i(function(){u&&k&&k.current&&k.current.show()},[k,u]);var j=A("".concat(Wr,"__dialog"),v(v(v(v({},"".concat(Wr,"__dialog--").concat(d),d),"".concat(Wr,"__dialog--full-height"),g),"is-dark","dark"===x),"is-light","light"===x),r),E="".concat(s,"-title"),O=f?f(s):X.jsx(Ur,{id:E,size:d,"data-a11y-dialog-initial-focus":!0,children:h});return X.jsxs("div",{id:s,"data-modal":!c,className:Wr,ref:_,role:"dialog","aria-hidden":"true","aria-modal":"true","aria-labelledby":E,children:[X.jsx("div",{className:"modal__overlay",tabIndex:-1,"data-a11y-dialog-hide":!0}),X.jsxs("div",b(b({className:j,role:"document"},w),{},{children:[X.jsxs("div",{className:"".concat(Wr,"__header"),children:[X.jsx(Br,{}),O]}),p?p():X.jsx(Hr,{children:o}),X.jsx("div",{className:A("".concat(Wr,"__footer"),v({},"".concat(Wr,"__footer--sticky"),a)),children:m?m():X.jsx(se,{condition:n.length>1,wrapper:X.jsx(ae,{}),children:n.map(function(e){return e})})})]}))]})};$r.displayName="Modal";var Gr="sticker",Kr=function(e){var t=e.color,n=e.size,i=e.children,r=e.className,o=S(e,["color","size","children","className"]),a=A(Gr,v(v({},"".concat(Gr,"--").concat(t),t),"".concat(Gr,"--").concat(n),n),r);return X.jsx("div",b(b({className:a},o),{},{children:i}))};Kr.displayName="Sticker";var Yr="list",Xr=function(e){var t=e.color,n=e.isEnclosed,i=e.size,r=e.className,o=e.children,a=S(e,["color","isEnclosed","size","className","children"]),s=A(Yr,v(v(v({},"".concat(Yr,"--").concat(i),i),"".concat(Yr,"--").concat(t),t),"".concat(Yr,"--enclosed"),n),r);return X.jsx("ul",b(b({className:s},a),{},{children:o}))},Jr=function(e){var t=e.href,n=e.className,i=e.children,r=S(e,["href","className","children"]),o=t?"a":"button",a="button"===o?"button":void 0,s=A("list__control",n);return X.jsxs(o,b(b({className:s,type:a,href:t},r),{},{children:[i,X.jsx(te,{name:"chevron-right",size:"medium",className:"list__indicator"})]}))};Jr.displayName="ListItemClickableControl";var Qr=function(e){var t=e.controlProps,n=e.className,i=e.children,r=S(e,["controlProps","className","children"]),o=A("list__item",n);return X.jsx("li",b(b({className:o},r),{},{children:X.jsx(se,{condition:void 0!==t,wrapper:X.jsx(Jr,b({},t)),children:i})}))};Qr.displayName="ListItem";var Zr="orange",eo="progress",to=function(e){var t=e.color,n=void 0===t?Zr:t,i=e.label,r=e.value,o=e.width,a=e.className,s=e.colorMode,l=S(e,["color","label","value","width","className","colorMode"]);return X.jsxs("div",b(b({className:A(eo,{"is-dark":"dark"===s,"is-light":"light"===s},a)},l),{},{children:[X.jsx("div",{className:"".concat(eo,"__label"),children:i}),X.jsx("div",{className:"".concat(eo,"__bar"),children:X.jsx("div",{className:A("".concat(eo,"__indicator"),v({},"".concat(eo,"__indicator--").concat(n),n!==Zr)),style:{width:"".concat(o?100*o:0,"%")}})}),X.jsx("div",{className:"".concat(eo,"__value"),children:r})]}))};to.displayName="Progress";var no="pagination__link",io=function(e){var t=e.ariaLabel,n=e.className,i=e.hasIcon,r=e.href,o=e.isActive,a=e.isFirst,s=e.isLast,l=e.label,c=S(e,["ariaLabel","className","hasIcon","href","isActive","isFirst","isLast","label"]),u=A("pagination__item",n),d=A(no,"btn btn--square",v({},"".concat(no,"--active"),o));return X.jsx("li",b(b({className:u},c),{},{children:X.jsxs("a",{href:r,className:d,"aria-current":o?"page":void 0,"aria-label":t,children:[i&&a&&X.jsx(te,{name:"chevron-start"}),!i&&l,i&&s&&X.jsx(te,{name:"chevron-end"})]})}))};io.displayName="PaginationItem";var ro=function(e){var t=e.className,n=S(e,["className"]),i=A("pagination__separator",t);return X.jsx("li",b(b({className:i},n),{},{children:"…"}))};ro.displayName="PaginationSeparator";var oo=function(t){var n=t.className,i=t.label,r=t.isCompact,o=t.colorScheme,a=void 0===o?"light":o,s=t.items,l=S(t,["className","label","isCompact","colorScheme","items"]),c=A("pagination",{"is-dark":"dark"===a,"is-light":"light"===a},n),u=d(function(){return s.findIndex(function(e){return e.isActive})},[s]);return X.jsx("nav",{"aria-label":i,children:X.jsx("ul",b(b({className:c},l),{},{children:s.map(function(t,n){var i=function(e){var t=e.activeIndex,n=e.items,i=e.isCompact,r=e.index,o=0===r,a=1===r,s=r===t,l=r===n.length-2,c=r===n.length-1,u=t===r-1||t===r+1,d=r<t+Math.floor(2.5)&&r>t||r>t-Math.floor(2.5)&&r<t,h=r<4&&t<3,p=r>n.length-5&&t>n.length-4,f=!(d||h||p||o||s||c),m=a&&f||l&&f;return{isFirst:o,isHidden:f,isLast:c,isSecond:a,isSecondFromEnd:l,hasIcon:i&&!s&&(o||c)&&!u&&!(n.length<=5),showSeparator:m}}({activeIndex:u,items:s,isCompact:r||!1,index:n}),o=i.isFirst,a=i.isHidden,l=i.isLast,c=i.isSecond,d=i.isSecondFromEnd,h=i.hasIcon,p=i.showSeparator;return X.jsxs(e.Fragment,{children:[!r&&p&&c&&X.jsx(ro,{}),X.jsx(io,b(b({},t),{},{ariaLabel:t.ariaLabel||t.label,isActive:t.isActive||!1,isFirst:o,isLast:l,className:A({hide:a}),hasIcon:h})),!r&&p&&d&&X.jsx(ro,{})]},n.toString())})}))})};oo.displayName="Pagination";var ao,so={exports:{}};var lo=k(ao?so.exports:(ao=1,window,so.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),r=n(6),o=n(7),a=n(16),s=n(18),l="prototype",c=function(e,t,n){var u,d,h,p,f=e&c.F,m=e&c.G,v=e&c.S,g=e&c.P,b=e&c.B,y=m?i:v?i[t]||(i[t]={}):(i[t]||{})[l],x=m?r:r[t]||(r[t]={}),w=x[l]||(x[l]={});for(u in m&&(n=t),n)h=((d=!f&&y&&void 0!==y[u])?y:n)[u],p=b&&d?s(h,i):g&&"function"==typeof h?s(Function.call,h):h,y&&a(y,u,h,e&c.U),x[u]!=h&&o(x,u,p),g&&w[u]!=h&&(w[u]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return s}),n.d(t,"createElement",function(){return s}),n.d(t,"cloneElement",function(){return u}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return P}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return r});var i=function(){},r={},o=[],a=[];function s(e,t){var n,s,l,c,u=a;for(c=arguments.length;2<c--;)o.push(arguments[c]);for(t&&null!=t.children&&(o.length||o.push(t.children),delete t.children);o.length;)if((s=o.pop())&&void 0!==s.pop)for(c=s.length;c--;)o.push(s[c]);else"boolean"==typeof s&&(s=null),(l="function"!=typeof e)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(l=!1)),l&&n?u[u.length-1]+=s:u===a?u=[s]:u.push(s),n=l;var d=new i;return d.nodeName=e,d.children=u,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==r.vnode&&r.vnode(d),d}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function u(e,t){return s(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(r.debounceRendering||c)(f)}function f(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&D(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||r)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(e.style[o]="");for(var o in i)e.style[o]="number"==typeof i[o]&&!1===d.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,a):e.removeEventListener(t,y,a),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var s=r&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](r.event&&r.event(e)||e)}var x=[],w=0,N=!1,_=!1;function S(){for(var e;e=x.pop();)r.afterMount&&r.afterMount(e),e.componentDidMount&&e.componentDidMount()}function k(e,t,n,i,r){var o=e,a=N;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(o=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(o,e),j(e,!0))),o.__preactattr_=!0,o;var s=t.nodeName;if("function"==typeof s)return function(e,t,n,i){for(var r=e&&e._component,o=r,a=e,s=r&&e._componentConstructor===t.nodeName,l=s,c=v(t);r&&!l&&(r=r._parentComponent);)l=r.constructor===t.nodeName;return r&&l&&(!i||r._component)?(T(r,c,3,n,i),e=r.base):(o&&!s&&(L(o),e=a=null),r=A(t.nodeName,c,n),e&&!r.nextBase&&(r.nextBase=e,a=null),T(r,c,1,n,i),e=r.base,a&&e!==a&&(a._component=null,j(a,!1))),e}(e,t,n,i);if(N="svg"===s||"foreignObject"!==s&&N,s=String(s),(!e||!m(e,s))&&(o=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(s,N),e)){for(;e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),j(e,!0)}var l=o.firstChild,c=o.__preactattr_,u=t.children;if(null==c){c=o.__preactattr_={};for(var d=o.attributes,h=d.length;h--;)c[d[h].name]=d[h].value}return!_&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,n,i,r){var o,a,s,l,c,u,d,h,p=e.childNodes,f=[],v={},b=0,y=0,x=p.length,w=0,N=t?t.length:0;if(0!==x)for(var _=0;_<x;_++){var S=p[_],E=S.__preactattr_;null!=(O=N&&E?S._component?S._component.__key:E.key:null)?(b++,v[O]=S):(E||(void 0!==S.splitText?!r||S.nodeValue.trim():r))&&(f[w++]=S)}if(0!==N)for(_=0;_<N;_++){var O;if(c=null,null!=(O=(l=t[_]).key))b&&void 0!==v[O]&&(c=v[O],v[O]=void 0,b--);else if(y<w)for(o=y;o<w;o++)if(void 0!==f[o]&&(u=a=f[o],h=r,"string"==typeof(d=l)||"number"==typeof d?void 0!==u.splitText:"string"==typeof d.nodeName?!u._componentConstructor&&m(u,d.nodeName):h||u._componentConstructor===d.nodeName)){c=a,f[o]=void 0,o===w-1&&w--,o===y&&y++;break}c=k(c,l,n,i),s=p[_],c&&c!==e&&c!==s&&(null==s?e.appendChild(c):c===s.nextSibling?g(s):e.insertBefore(c,s))}if(b)for(var _ in v)void 0!==v[_]&&j(v[_],!1);for(;y<=w;)void 0!==(c=f[w--])&&j(c,!1)}(o,u,n,i,_||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,N);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],N)}(o,t.attributes,c),N=a,o}function j(e,t){var n=e._component;n?L(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||g(e),E(e))}function E(e){for(e=e.lastChild;e;){var t=e.previousSibling;j(e,!0),e=t}}var O=[];function A(e,t,n){var i,r=O.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=C);r--;)if(O[r].constructor===e)return i.nextBase=O[r].nextBase,O.splice(r,1),i;return i}function C(e,t,n){return this.constructor(e,n)}function T(e,t,n,i,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&e.base?p(e):D(e,1,o)),e.__ref&&e.__ref(e))}function D(e,t,n,i){if(!e._disable){var o,a,s,c=e.props,u=e.state,d=e.context,h=e.prevProps||c,p=e.prevState||u,f=e.prevContext||d,m=e.base,g=e.nextBase,b=m||g,y=e._component,E=!1,O=f;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=h,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?E=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!E){o=e.render(c,u,d),e.getChildContext&&(d=l(l({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(O=e.getSnapshotBeforeUpdate(h,p));var C,I,P=o&&o.nodeName;if("function"==typeof P){var R=v(o);(a=y)&&a.constructor===P&&R.key==a.__key?T(a,R,1,d,!1):(C=a,e._component=a=A(P,R,d),a.nextBase=a.nextBase||g,a._parentComponent=e,T(a,R,0,d,!1),D(a,1,n,!0)),I=a.base}else s=b,(C=y)&&(s=e._component=null),(b||1===t)&&(s&&(s._component=null),I=function(e,t,n,i,r,o){w++||(N=null!=r&&void 0!==r.ownerSVGElement,_=null!=e&&!("__preactattr_"in e));var a=k(e,t,n,i,o);return r&&a.parentNode!==r&&r.appendChild(a),--w||(_=!1),a}(s,o,d,n||!m,b&&b.parentNode,!0));if(b&&I!==b&&a!==y){var M=b.parentNode;M&&I!==M&&(M.replaceChild(I,b),C||(b._component=null,j(b,!1)))}if(C&&L(C),(e.base=I)&&!i){for(var z=e,F=e;F=F._parentComponent;)(z=F).base=I;I._component=z,I._componentConstructor=z.constructor}}for(!m||n?x.unshift(e):E||(e.componentDidUpdate&&e.componentDidUpdate(h,p,O),r.afterUpdate&&r.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);w||i||S()}}function L(e){r.beforeUnmount&&r.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?L(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),g(e.nextBase=t),O.push(e),E(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function P(e,t,n){return function(e,t,n,i,r,o){w++||(N=null!=r&&void 0!==r.ownerSVGElement,_=null!=e&&!("__preactattr_"in e));var a=k(e,t,n,i,o);return r&&a.parentNode!==r&&r.appendChild(a),--w||(_=!1,S()),a}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),D(this,2)},render:function(){}});var R={h:s,createElement:s,cloneElement:u,Component:I,render:P,rerender:f,options:r};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),r=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),r=n(38),o=n(39),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),r=n(1).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var i=n(1),r=n(7),o=n(17),a=n(10)("src"),s="toString",l=Function[s],c=(""+l).split(s);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||r(n,a,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),r=n(28);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(11),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),r=n(24),o=n(43);e.exports=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){for(;u<c;)if((s=l[u++])!=s)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(25),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),r=n(10);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(6),r=n(1),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(3)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),r=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(18),r=n(11),o=n(29),a=n(24),s=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,p=t||s;return function(t,s,f){for(var m,v,g=o(t),b=r(g),y=i(s,f,3),x=a(b.length),w=0,N=n?p(t,x):l?p(t,0):void 0;w<x;w++)if((h||w in b)&&(v=y(m=b[w],w,g),e))if(n)N[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:N.push(m)}else if(u)return!1;return d?-1:c||u?u:N}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),r=n(10),o=n(1).Symbol,a="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),r=n(23)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n(13)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),r=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function o(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=a(e.source)),(0,i.render)((0,i.createElement)(r.default,e),e.element)}var a=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};o.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=n.textContent||n.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var i=document.createElement("div");e.selectElement.parentNode.insertBefore(i,e.selectElement),o(Object.assign({},e,{element:i})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var s=o;t.default=s},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),r=n(45),o=n(46),a=n(29),s=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=r.f,d=o.f;c<l;)for(var h,p=s(arguments[c++]),f=u?i(p).concat(u(p)):i(p),m=f.length,v=0;v<m;)d.call(p,h=f[v++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),r=n(21),o=n(23)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),r=n(33),o=n(34)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),r=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),r=a(n(60)),o=a(n(61));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var d=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,r=t.focused!==n;r&&!i&&this.elementReferences[n].focus();var o=-1===n,a=r&&null===t.focused;if(o&&a){var s=this.elementReferences[n];s.setSelectionRange(0,s.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,r=n.query,o=n.selected;this.props.confirmOnBlur?(t=e.query||r,this.props.onConfirm(i[o])):t=r,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,r=n.menuOpen,o=n.options,a=n.selected,s=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&s||!c&&!l){var d=r&&u()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:d,query:this.templateInputValue(o[a])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,r=t.options,o=t.query,a=t.selected,s=0<=n;if(u()&&!e.relatedTarget&&!s&&this.hasAutoselect()){var l=this.templateInputValue(r[a]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!s){var c=i&&u(),d=u()?o:this.templateInputValue(r[a]);this.handleComponentBlur({menuOpen:c,query:d})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,r=n.source,o=n.showAllValues,a=this.state.searchOnInteraction,s=this.hasAutoselect(),l=e.target.value,c=0===l.length,u=a||this.state.query.length!==l.length,d=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),o||!c&&u&&d?r(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:s&&n?0:-1,validChoiceMade:!1}})}):!c&&d||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,r=t.options,o=this.props.minLength,a=!i&&n.length>=o&&0<r.length;a?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:a||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){u()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,r=n.options,o=n.selected;o!==r.length-1&&i&&this.handleOptionFocus(o+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,o=n.cssNamespace,a=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,d=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,f=n.id,m=n.minLength,v=n.name,g=n.placeholder,b=n.required,y=n.showAllValues,x=n.tNoResults,w=n.tStatusQueryTooShort,N=n.tStatusNoResults,_=n.tStatusSelectedOption,S=n.tStatusResults,k=n.tAssistiveHint,j=n.dropdownArrow,E=this.state,O=E.focused,A=E.hovered,C=E.menuOpen,T=E.options,D=E.query,L=E.selected,I=E.ariaHint,P=E.validChoiceMade,R=this.hasAutoselect(),M=-1===O,z=0===T.length,F=0!==D.length,B=D.length>=m,U=this.props.showNoOptionsFound&&M&&z&&F&&B,V=o+"__wrapper"+(l?" "+l:""),H=o+"__input",W=null!==O?" "+H+"--focused":"",q=this.props.showAllValues?" "+H+"--show-all-values":" "+H+"--default",$=o+"__dropdown-arrow-down",G=-1!==O&&null!==O,K=o+"__menu",Y=K+"--"+h,X=K+"--"+(C||U?"visible":"hidden"),J=o+"__option",Q=o+"__hint",Z=this.templateInputValue(T[L]),ee=Z&&0===Z.toLowerCase().indexOf(D.toLowerCase())&&R?D+Z.substr(D.length):"",te=f+"__assistiveHint",ne=I?{"aria-describedby":te}:null;return y&&"string"==typeof(e=j({className:$}))&&(e=(0,i.createElement)("div",{className:o+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:V,onKeyDown:this.handleKeyDown},(0,i.createElement)(r.default,{id:f,length:T.length,queryLength:D.length,minQueryLength:m,selectedOption:this.templateInputValue(T[L]),selectedOptionIndex:L,validChoiceMade:P,isInFocus:null!==this.state.focused,tQueryTooShort:w,tNoResults:N,tSelectedOption:_,tResults:S}),ee&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:ee})),(0,i.createElement)("input",s({enterkeyhint:p||(u()&&this.hasAutoselect()?"done":""),"aria-expanded":C?"true":"false","aria-activedescendant":!!G&&f+"__option--"+O,"aria-owns":f+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ne,{autoComplete:"off",className:""+H+W+q+(a?" "+a:""),id:f,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:g,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:b,value:D})),e,(0,i.createElement)("ul",{className:K+" "+Y+" "+X+(d?" "+d:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:f+"__listbox",role:"listbox"},T.map(function(e,n){var r=(-1===O?L===n:O===n)&&null===A?" "+J+"--focused":"",o=n%2?" "+J+"--odd":"",a=u()?"<span id="+f+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+T.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+J+r+o+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+a},id:f+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":T.length})}),U&&(0,i.createElement)("li",{className:J+(c?" "+c:"")+" "+J+"--no-results"},x())),(0,i.createElement)("span",{id:te,style:{display:"none"}},k()))},t}(i.Component);(t.default=d).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:o.default}},function(e,t,n){var i=n(9),r=n(53),o=n(28),a=n(26)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=o.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(8),r=n(9),o=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,l=0;l<s;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),r=n(2),o=n(57),a=[].slice,s={};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),l=function(){var i=n.concat(a.call(arguments));return this instanceof l?function(e,t,n){if(!(t in s)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)}(t,i.length,i):o(t,i,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),r=n(16),o=n(4),a=n(12),s=n(34);e.exports=function(e,t,n){var l=s(e),c=n(a,l,""[e]),u=c[0],d=c[1];o(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,u),i(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),r=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,r=t.length,o=t.queryLength,a=t.minQueryLength,s=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,d=t.tSelectedOption,h=t.tResults,p=this.state,f=p.bump,m=p.debounced,v=p.silenced,g=o<a,b=0===r,y=s?d(s,r,l):"";return e=g?c(a):b?u():h(r,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!v&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},v||!m||f?"":e))},t}(i.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default)),co={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tAssistiveHint:function(){return"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."}},uo=function(){return m(function e(t,n){return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},co),n),this.onPageshow=this.onPageshow.bind(this),this.instance=null,this.element.ODS_Autocomplete=this,this.init(),this},[{key:"init",value:function(){var e=this.element.getAttribute("data-autocomplete-config"),t={};if(e)try{t=JSON.parse(e)}catch(e){}this.config=Object.assign(Object.assign({},this.config),t),"SELECT"===this.element.tagName?lo.enhanceSelectElement(Object.assign({selectElement:this.element},this.config)):lo(Object.assign({element:this.element},this.config)),window.addEventListener("pageshow",this.onPageshow)}},{key:"onPageshow",value:function(e){e.persisted&&window&&window.location.reload()}},{key:"destroy",value:function(){window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}}])}(),ho="select",po={size:"default",width:"default",options:[]},fo=function(e){var t=e.id,n=e.isDisabled,i=e.isInvalid,r=e.name,o=e.options,a=void 0===o?po.options:o,s=e.size,l=void 0===s?po.size:s,c=e.className,u=e.children,d=e.elemRef,h=e.width,p=void 0===h?po.width:h,f=S(e,["id","isDisabled","isInvalid","name","options","size","className","children","elemRef","width"]),m=A(ho,c,v(v({"is-invalid":i},"".concat(ho,"--").concat(l),l!==po.size),"".concat(ho,"--").concat(p),p!==po.width)),g=t||F(),y=r||g;return X.jsxs("select",b(b({id:g,name:y,className:m,disabled:n,ref:d},f),{},{children:[a.map(function(e){var t="string"==typeof e?{value:e,text:e}:e,n=t.value,i=t.text,r=S(t,["value","text"]);return X.jsx("option",b(b({value:n},r),{},{children:i}),i)}),u]}))};fo.displayName="Select";var mo=function(e){var t=e.className,n=e.options,i=void 0===n?[]:n,r=e.autocompleteConfig,o=e.placeholder,a=S(e,["className","options","autocompleteConfig","placeholder"]),s=y(B(uo,r),1)[0];return X.jsx(fo,b(b(b({className:A("autocomplete",t),"data-placeholder":o},i.length?{"data-autocomplete":!0}:{}),a),{},{elemRef:s,children:i&&i.map(function(e){return X.jsx("option",{label:"string"==typeof e&&0===e.length?" ":void 0,value:"string"==typeof e?e:e.value,children:"string"==typeof e?e:e.title},"string"==typeof e?e:e.value)})}))};mo.displayName="Autocomplete";var vo=Object.freeze({__proto__:null,Autocomplete:mo}),go="checkbox",bo="default",yo=function(e){var t=e.id,n=e.isChecked,i=e.isDisabled,r=e.isInvalid,o=e.isToggle,a=e.name,s=e.size,l=void 0===s?bo:s,c=e.className,u=S(e,["id","isChecked","isDisabled","isInvalid","isToggle","name","size","className"]),d=A(go,c,v(v({},"".concat(go,"--").concat(l),l!==bo),"is-invalid",r)),h=a||t,p=function(){return X.jsxs(X.Fragment,{children:[X.jsx("input",b({className:d,type:"checkbox",id:t,name:h,defaultChecked:n,disabled:i},u)),X.jsx("div",{className:"".concat(go,"-display")})]})};return o?X.jsx("div",{className:o?"checkbox--toggle":"",children:X.jsx(p,{})}):X.jsx(p,{})};yo.displayName="Checkbox";var xo=function(e){var t=e.htmlFor,n=e.className,i=e.children,r=S(e,["htmlFor","className","children"]);return X.jsx("label",b(b({htmlFor:t,className:A("label",n)},r),{},{children:i}))};xo.displayName="Label";var wo=t(null),No="form-field__label",_o=function(){var t,n=e.useContext(wo),i=null==n?void 0:n.control,r=null!==(t=null==n?void 0:n.controlId)&&void 0!==t?t:"",o=null==n?void 0:n.label,a=null==n?void 0:n.labelAfter;return X.jsx(X.Fragment,{children:a?X.jsxs("div",{className:No,children:["range"!==(null==i?void 0:i.type)?X.jsx(xo,{id:r?"".concat(r,"-label"):void 0,htmlFor:r,className:a?void 0:No,children:o}):X.jsx("span",{id:r?"".concat(r,"-label"):void 0,className:A("label",v({},No,!a)),children:o}),a&&X.jsxs(X.Fragment,{children:[" ",a]})]}):"range"!==(null==i?void 0:i.type)?X.jsx(xo,{id:r?"".concat(r,"-label"):void 0,htmlFor:r,className:No,children:o}):X.jsx("span",{id:r?"".concat(r,"-label"):void 0,className:A("label",v({},No,!a)),children:o})})},So=function(e){var t=e.id,n=e.children,i=e.placement,r=void 0===i?"right":i,o=S(e,["id","children","placement"]);return n?X.jsxs(X.Fragment,{children:[" ",X.jsx(fi,b(b({id:"".concat(t,"-tooltip"),className:"form-field__tooltip",placement:r},o),{},{children:n}))]}):null};So.displayName="FormTooltip";var ko={info:"info",warning:"warning-important",error:"error-severe"},jo={info:"info",warning:"warning",error:"danger"},Eo="message",Oo=function(e){var t=e.className,n=e.children,i=e.type,r=void 0===i?"info":i,o=S(e,["className","children","type"]),a=A(Eo,v({},"".concat(Eo,"--error"),"error"===r),t);return X.jsxs("p",b(b({className:a},o),{},{children:[r&&X.jsx(te,{name:ko[r],size:"medium",color:jo[r],className:"".concat(Eo,"__icon")}),n]}))};Oo.displayName="Message";var Ao,Co=t(null),To=function(t){var n,i=t.isMain,r=e.useContext(wo),o=e.useContext(Co),a=null!==(n=null!=r?r:o)&&void 0!==n?n:{},s=a.controlId,l=a.messages;return(void 0===l?[]:l).filter(function(e){return i===e.isMain}).map(function(e,t){return X.jsx(Oo,{id:"".concat(s,"-message-").concat(t),type:e.type,children:e.text},t.toString())})},Do={exports:{}},Lo={};function Io(){if(Ao)return Lo;return Ao=1,Lo._=function(e){return e&&e.__esModule?e:{default:e}},Lo}function Po(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ro,Mo,zo,Fo,Bo,Uo={},Vo={};function Ho(){return Mo||(Mo=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});const n=Io()._(e),i=(Ro||(Ro=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Io()._(e).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="LoadableContext")}(Vo)),Vo);const r=[],o=[];let a=!1;function s(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}function l(e,t){let s=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function u(){if(!l){const t=new c(e,s);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if("undefined"==typeof window&&r.push(u),!a&&"undefined"!=typeof window){const e=s.webpack&&"function"==typeof Po.resolveWeak?s.webpack():s.modules;e&&o.push(t=>{for(const n of e)if(t.includes(n))return u()})}function d(e,t){!function(){u();const e=n.default.useContext(i.LoadableContext);e&&Array.isArray(s.modules)&&s.modules.forEach(t=>{e(t)})}();const r=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{return r.loading||r.error?n.default.createElement(s.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?n.default.createElement((t=r.loaded)&&t.default?t.default:t,e):null;var t},[e,r])}return d.preload=()=>u(),d.displayName="LoadableComponent",n.default.forwardRef(d)}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return l(s,e)}function d(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{d(r).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{const n=()=>(a=!0,t());d(o,e).then(n,n)})),"undefined"!=typeof window&&(window.__NEXT_PRELOADREADY=u.preloadReady);const h=u}(Uo)),Uo}var Wo=Bo?Fo:(Bo=1,zo||(zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return s}});const n=Io(),i=Y(),r=n._(Ho()),o="undefined"==typeof window;function a(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){if(delete t.webpack,delete t.modules,!o)return e(t);const n=t.loading;return()=>(0,i.jsx)(n,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(e,t){let n=r.default,o={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;if(!r)return null;if("production"!==process.env.NODE_ENV){if(n)return null;if(t)return(0,i.jsxs)("p",{children:[t.message,(0,i.jsx)("br",{}),t.stack]})}return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e}),o={...o,...t};const l=o.loader;return o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr?n({...o,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete o.webpack,delete o.modules,s(n,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Do,Do.exports)),Fo=Do.exports),qo=k(Wo);
35
+ /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
36
+ const{entries:$o,setPrototypeOf:Go,isFrozen:Ko,getPrototypeOf:Yo,getOwnPropertyDescriptor:Xo}=Object;let{freeze:Jo,seal:Qo,create:Zo}=Object,{apply:ea,construct:ta}="undefined"!=typeof Reflect&&Reflect;Jo||(Jo=function(e){return e}),Qo||(Qo=function(e){return e}),ea||(ea=function(e,t,n){return e.apply(t,n)}),ta||(ta=function(e,t){return new e(...t)});const na=ga(Array.prototype.forEach),ia=ga(Array.prototype.lastIndexOf),ra=ga(Array.prototype.pop),oa=ga(Array.prototype.push),aa=ga(Array.prototype.splice),sa=ga(String.prototype.toLowerCase),la=ga(String.prototype.toString),ca=ga(String.prototype.match),ua=ga(String.prototype.replace),da=ga(String.prototype.indexOf),ha=ga(String.prototype.trim),pa=ga(Object.prototype.hasOwnProperty),fa=ga(RegExp.prototype.test),ma=(va=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ta(va,t)});var va;function ga(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ea(e,t,i)}}function ba(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sa;Go&&Go(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(Ko(t)||(t[i]=e),r=e)}e[r]=!0}return e}function ya(e){for(let t=0;t<e.length;t++){pa(e,t)||(e[t]=null)}return e}function xa(e){const t=Zo(null);for(const[n,i]of $o(e)){pa(e,n)&&(Array.isArray(i)?t[n]=ya(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=xa(i):t[n]=i)}return t}function wa(e,t){for(;null!==e;){const n=Xo(e,t);if(n){if(n.get)return ga(n.get);if("function"==typeof n.value)return ga(n.value)}e=Yo(e)}return function(){return null}}const Na=Jo(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_a=Jo(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sa=Jo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ka=Jo(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ja=Jo(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ea=Jo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Oa=Jo(["#text"]),Aa=Jo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ca=Jo(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ta=Jo(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Da=Jo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),La=Qo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ia=Qo(/<%[\w\W]*|[\w\W]*%>/gm),Pa=Qo(/\$\{[\w\W]*/gm),Ra=Qo(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ma=Qo(/^aria-[\-\w]+$/),za=Qo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fa=Qo(/^(?:\w+script|data):/i),Ba=Qo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ua=Qo(/^html$/i),Va=Qo(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ha=Object.freeze({__proto__:null,ARIA_ATTR:Ma,ATTR_WHITESPACE:Ba,CUSTOM_ELEMENT:Va,DATA_ATTR:Ra,DOCTYPE_NAME:Ua,ERB_EXPR:Ia,IS_ALLOWED_URI:za,IS_SCRIPT_OR_DATA:Fa,MUSTACHE_EXPR:La,TMPLIT_EXPR:Pa});const Wa=1,qa=3,$a=7,Ga=8,Ka=9,Ya=function(){return"undefined"==typeof window?null:window};var Xa=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ya();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Ka||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,m=c.prototype,v=wa(m,"cloneNode"),g=wa(m,"remove"),b=wa(m,"nextSibling"),y=wa(m,"childNodes"),x=wa(m,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,N="";const{implementation:_,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:j}=i,{importNode:E}=r;let O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof $o&&"function"==typeof x&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:C,TMPLIT_EXPR:T,DATA_ATTR:D,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=Ha;let{IS_ALLOWED_URI:M}=Ha,z=null;const F=ba({},[...Na,..._a,...Sa,...ja,...Oa]);let B=null;const U=ba({},[...Aa,...Ca,...Ta,...Da]);let V=Object.seal(Zo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,W=null,q=!0,$=!0,G=!1,K=!0,Y=!1,X=!0,J=!1,Q=!1,Z=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe=!0,ae=!1,se={},le=null;const ce=ba({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=ba({},["audio","video","img","source","image","track"]);let he=null;const pe=ba({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let ge=ve,be=!1,ye=null;const xe=ba({},[fe,me,ve],la);let we=ba({},["mi","mo","mn","ms","mtext"]),Ne=ba({},["annotation-xml"]);const _e=ba({},["title","style","font","a","script"]);let Se=null;const ke=["application/xhtml+xml","text/html"];let je=null,Ee=null;const Oe=i.createElement("form"),Ae=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=xa(e),Se=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,je="application/xhtml+xml"===Se?la:sa,z=pa(e,"ALLOWED_TAGS")?ba({},e.ALLOWED_TAGS,je):F,B=pa(e,"ALLOWED_ATTR")?ba({},e.ALLOWED_ATTR,je):U,ye=pa(e,"ALLOWED_NAMESPACES")?ba({},e.ALLOWED_NAMESPACES,la):xe,he=pa(e,"ADD_URI_SAFE_ATTR")?ba(xa(pe),e.ADD_URI_SAFE_ATTR,je):pe,ue=pa(e,"ADD_DATA_URI_TAGS")?ba(xa(de),e.ADD_DATA_URI_TAGS,je):de,le=pa(e,"FORBID_CONTENTS")?ba({},e.FORBID_CONTENTS,je):ce,H=pa(e,"FORBID_TAGS")?ba({},e.FORBID_TAGS,je):xa({}),W=pa(e,"FORBID_ATTR")?ba({},e.FORBID_ATTR,je):xa({}),se=!!pa(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||za,ge=e.NAMESPACE||ve,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,Ne=e.HTML_INTEGRATION_POINTS||Ne,V=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ae(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ae(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&($=!1),te&&(ee=!0),se&&(z=ba({},Oa),B=[],!0===se.html&&(ba(z,Na),ba(B,Aa)),!0===se.svg&&(ba(z,_a),ba(B,Ca),ba(B,Da)),!0===se.svgFilters&&(ba(z,Sa),ba(B,Ca),ba(B,Da)),!0===se.mathMl&&(ba(z,ja),ba(B,Ta),ba(B,Da))),e.ADD_TAGS&&(z===F&&(z=xa(z)),ba(z,e.ADD_TAGS,je)),e.ADD_ATTR&&(B===U&&(B=xa(B)),ba(B,e.ADD_ATTR,je)),e.ADD_URI_SAFE_ATTR&&ba(he,e.ADD_URI_SAFE_ATTR,je),e.FORBID_CONTENTS&&(le===ce&&(le=xa(le)),ba(le,e.FORBID_CONTENTS,je)),oe&&(z["#text"]=!0),J&&ba(z,["html","head","body"]),z.table&&(ba(z,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ma('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ma('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,N=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(f,o)),null!==w&&"string"==typeof N&&(N=w.createHTML(""));Jo&&Jo(e),Ee=e}},Te=ba({},[..._a,...Sa,...ka]),De=ba({},[...ja,...Ea]),Le=function(e){oa(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){g(e)}},Ie=function(e,t){try{oa(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){oa(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Pe=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=ca(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ge===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=w?w.createHTML(e):e;if(ge===ve)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=_.createDocument(ge,"template",null);try{t.documentElement.innerHTML=be?N:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ge===ve?j.call(t,J?"html":"body")[0]:J?t.documentElement:o},Re=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Me=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ze=function(e){return"function"==typeof l&&e instanceof l};function Fe(e,t,i){na(e,e=>{e.call(n,t,i,Ee)})}const Be=function(e){let t=null;if(Fe(O.beforeSanitizeElements,e,null),Me(e))return Le(e),!0;const i=je(e.nodeName);if(Fe(O.uponSanitizeElement,e,{tagName:i,allowedTags:z}),X&&e.hasChildNodes()&&!ze(e.firstElementChild)&&fa(/<[/\w!]/g,e.innerHTML)&&fa(/<[/\w!]/g,e.textContent))return Le(e),!0;if(e.nodeType===$a)return Le(e),!0;if(X&&e.nodeType===Ga&&fa(/<[/\w]/g,e.data))return Le(e),!0;if(!z[i]||H[i]){if(!H[i]&&Ve(i)){if(V.tagNameCheck instanceof RegExp&&fa(V.tagNameCheck,i))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(i))return!1}if(oe&&!le[i]){const t=x(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=v(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=sa(e.tagName),i=sa(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ve?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||we[i]):Boolean(Te[n]):e.namespaceURI===fe?t.namespaceURI===ve?"math"===n:t.namespaceURI===me?"math"===n&&Ne[i]:Boolean(De[n]):e.namespaceURI===ve?!(t.namespaceURI===me&&!Ne[i])&&!(t.namespaceURI===fe&&!we[i])&&!De[n]&&(_e[n]||!Te[n]):!("application/xhtml+xml"!==Se||!ye[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!fa(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===qa&&(t=e.textContent,na([A,C,T],e=>{t=ua(t,e," ")}),e.textContent!==t&&(oa(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(O.afterSanitizeElements,e,null),!1):(Le(e),!0)},Ue=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in Oe))return!1;if($&&!W[t]&&fa(D,t));else if(q&&fa(L,t));else if(!B[t]||W[t]){if(!(Ve(e)&&(V.tagNameCheck instanceof RegExp&&fa(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&fa(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&fa(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(he[t]);else if(fa(M,ua(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==da(n,"data:")||!ue[e]){if(G&&!fa(I,ua(n,P,"")));else if(n)return!1}else;return!0},Ve=function(e){return"annotation-xml"!==e&&ca(e,R)},He=function(e){Fe(O.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Me(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,c=je(a),u=l;let d="value"===a?u:ha(u);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,Fe(O.uponSanitizeAttribute,e,i),d=i.attrValue,!re||"id"!==c&&"name"!==c||(Ie(a,e),d="user-content-"+d),X&&fa(/((--!?|])>)|<\/(style|title)/i,d)){Ie(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ie(a,e);continue}if(!K&&fa(/\/>/i,d)){Ie(a,e);continue}Y&&na([A,C,T],e=>{d=ua(d,e," ")});const h=je(e.nodeName);if(Ue(h,c,d)){if(w&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Me(e)?Le(e):ra(n.removed)}catch(t){Ie(a,e)}}else Ie(a,e)}Fe(O.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const i=Re(t);for(Fe(O.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Fe(O.uponSanitizeShadowNode,n,null),Be(n),He(n),n.content instanceof a&&e(n.content);Fe(O.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)){if("function"!=typeof e.toString)throw ma("toString is not a function");if("string"!=typeof(e=e.toString()))throw ma("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Ce(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=je(e.nodeName);if(!z[t]||H[t])throw ma("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Pe("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===Wa&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!ee&&!Y&&!J&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(i=Pe(e),!i)return ee?null:ne?N:""}i&&Z&&Le(i.firstChild);const u=Re(ae?e:i);for(;s=u.nextNode();)Be(s),He(s),s.content instanceof a&&We(s.content);if(ae)return e;if(ee){if(te)for(c=k.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(B.shadowroot||B.shadowrootmode)&&(c=E.call(r,c,!0)),c}let d=J?i.outerHTML:i.innerHTML;return J&&z["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&fa(Ua,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Y&&na([A,C,T],e=>{d=ua(d,e," ")}),w&&ne?w.createHTML(d):d},n.setConfig=function(){Ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Ee=null,Q=!1},n.isValidAttribute=function(e,t,n){Ee||Ce({});const i=je(e),r=je(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&oa(O[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=ia(O[e],t);return-1===n?void 0:aa(O[e],n,1)[0]}return ra(O[e])},n.removeHooks=function(e){O[e]=[]},n.removeAllHooks=function(){O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Ja={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:function(e,t){return"\n <li>".concat(e,'&nbsp;<button type="button" data-file-delete="').concat(t,'" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ').concat(e,"</span>\n </button>\n </li>\n ")}},Qa=function(){return m(function e(t,n){return p(this,e),this.element=t,this.config=Object.assign(Object.assign({},Ja),n),this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this},[{key:"init",value:function(){var e=this;this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.preventDefaults,!1),document.body.addEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.addEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}},{key:"onInputChange",value:function(){var e,t=this;return!(!this.input||!this.results)&&(this.files=Array.from(null!==(e=this.input.files)&&void 0!==e?e:[]),!!this.files&&(this.results.innerHTML="",this.files.map(function(e,n){return t.config.fileTemplate(Xa.sanitize(e.name,{ALLOWED_TAGS:[]}),n)}).forEach(function(e){t.results.appendChild(Xa.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(function(e){return e.addEventListener("click",t.onRemoveButtonClick)})))}},{key:"onDrop",value:function(e){var t;this.input&&(this.input.files=(null===(t=null==e?void 0:e.dataTransfer)||void 0===t?void 0:t.files)||(new DataTransfer).files,this.onInputChange())}},{key:"onRemoveButtonClick",value:function(e){if(this.input){var t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(function(e){return t.items.add(e)}),this.input.files=t.files,this.onInputChange()}}},{key:"highlight",value:function(){this.element.classList.add(this.config.dragDropClassname)}},{key:"unhighlight",value:function(){this.element.classList.remove(this.config.dragDropClassname)}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"destroy",value:function(){var e=this;this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.preventDefaults,!1),document.body.removeEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.removeEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}},{key:"update",value:function(){this.destroy(),this.init()}}])}(),Za="file-input",es="default",ts=function(e){var t=e.id,n=e.isDisabled,i=e.name,r=e.size,o=void 0===r?es:r,a=e.className,s=S(e,["id","isDisabled","name","size","className"]),l=y(B(Qa),1)[0],c=t||F(),u=A(Za,v({},"".concat(Za,"--").concat(o),o!==es),a);return X.jsxs("div",{className:u,"data-file-input":!0,ref:l,children:[X.jsx("input",b({className:"".concat(Za,"__control"),id:c,name:i||t,disabled:n,type:"file"},s)),X.jsx("label",{size:o,htmlFor:c,"aria-hidden":"true",className:"".concat(Za,"__button"),children:"Vybrať súbor"}),X.jsx("ul",{className:"".concat(Za,"__files")})]})};ts.displayName="File";var ns="text-input",is="text",rs="default",os="default",as=e.forwardRef(function(e,t){var n=e.className,i=e.id,r=e.isDisabled,o=e.isInvalid,a=e.isValid,s=e.isReadonly,l=e.placeholder,c=e.size,u=void 0===c?rs:c,d=e.htmlType,h=void 0===d?is:d,p=e.width,f=void 0===p?os:p,m=e.name,g=S(e,["className","id","isDisabled","isInvalid","isValid","isReadonly","placeholder","size","htmlType","width","name"]),y=A(ns,v(v({"is-invalid":o,"is-valid":a},"".concat(ns,"--").concat(u),u!==rs),"".concat(ns,"--").concat(f),f!==os),n),x=m||i;return X.jsx("input",b({className:y,id:i,name:x,type:h,disabled:r,readOnly:s,placeholder:l,ref:t},g))});as.displayName="TextInput";var ss="control-group__item",ls="default",cs=function(e){var t=e.size,n=void 0===t?ls:t,i=e.className,r=e.children,o=S(e,["size","className","children"]),a=A(ss,i,v({},"".concat(ss,"--").concat(n),n!==ls));return X.jsx("div",b(b({className:a},o),{},{children:r}))};cs.displayName="GroupItem";var us=function(t){var n=t.control,i=t.addonPrefix,r=t.addonSuffix,o=t.size,a=t.className,s=S(t,["control","addonPrefix","addonSuffix","size","className"]),l=n.type,c=S(n,["type"]),u=function(e){return"select"===l?X.jsx(fo,b({},e)):X.jsx(as,b({},e))},d=function(t){return e.Children.map(t,function(t){if("string"==typeof t||t&&"string"==typeof t.type)return X.jsx(cs,{size:o,children:t});if(e.isValidElement(t)){var n=t.props&&"object"===N(t.props)&&"size"in t.props?{}:{size:o};return e.cloneElement(t,Object.assign(Object.assign({},t.props||{}),n))}return t})};return X.jsxs("div",b(b({className:A("control-group",a)},s),{},{children:[d(i),X.jsx(u,b(b({},c),{},{size:o})),d(r)]}))};us.displayName="ControlGroup";var ds,hs,ps="radio",fs="default",ms=function(e){var t=e.id,n=e.isChecked,i=e.isDisabled,r=e.isInvalid,o=e.name,a=e.size,s=void 0===a?fs:a,l=e.value,c=e.className,u=S(e,["id","isChecked","isDisabled","isInvalid","name","size","value","className"]),d=A(ps,c,v(v({},"".concat(ps,"--").concat(s),s!==fs),"is-invalid",r)),h=l||t;return X.jsxs(X.Fragment,{children:[X.jsx("input",b({className:d,type:"radio",id:t,name:o,defaultChecked:n,disabled:i,value:h},u)),X.jsx("div",{className:"".concat(ps,"-display")})]})};function vs(e){return"object"==typeof e&&"function"==typeof e.to}function gs(e){e.parentElement.removeChild(e)}function bs(e){return null!=e}function ys(e){e.preventDefault()}function xs(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function ws(e,t,n){n>0&&(ks(e,t),setTimeout(function(){js(e,t)},n))}function Ns(e){return Math.max(Math.min(e,100),0)}function _s(e){return Array.isArray(e)?e:[e]}function Ss(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function ks(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function js(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Es(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Os(e,t){return 100/(t-e)}function As(e,t,n){return 100*t/(e[n+1]-e[n])}function Cs(e,t){for(var n=1;e>=t[n];)n+=1;return n}function Ts(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=Cs(n,e),r=e[i-1],o=e[i],a=t[i-1],s=t[i];return a+function(e,t){return As(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([r,o],n)/Os(a,s)}function Ds(e,t,n,i){if(100===i)return i;var r=Cs(i,e),o=e[r-1],a=e[r];return n?i-o>(a-o)/2?a:o:t[r-1]?e[r-1]+function(e,t){return Math.round(e/t)*t}(i-e[r-1],t[r-1]):i}ms.displayName="Radio",function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(ds||(ds={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(hs||(hs={}));var Ls=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var r=[];for(Object.keys(e).forEach(function(t){r.push([_s(e[t]),t])}),r.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=As(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||e!==this.xPct[r+1]||r++,null===t&&(t=[]);var o=1,a=t[r],s=0,l=0,c=0,u=0;for(i=n?(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);a>0;)s=this.xPct[r+1+u]-this.xPct[r+u],t[r+u]*o+100-100*i>100?(l=s*i,o=(a-100*i)/t[r+u],i=1):(l=t[r+u]*s/100*o,o=0),n?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),a=t[r+u]*o;return e+c},e.prototype.toStepping=function(e){return e=Ts(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=Cs(n,t),r=e[i-1],o=e[i],a=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([r,o],(n-a)*Os(a,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=Ds(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=Cs(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=Cs(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(Ss);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!xs(n="min"===e?0:"max"===e?100:parseFloat(e))||!xs(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=As([this.xVal[e],this.xVal[e+1]],t,0)/Os(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),r=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=r}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),Is={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Ps={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Rs=".__tooltips",Ms=".__aria";function zs(e,t){if(!xs(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Fs(e,t){if(!xs(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function Bs(e,t){if(!xs(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function Us(e,t){if(!xs(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Vs(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Ls(t,e.snap||!1,e.singleStep)}function Hs(e,t){if(t=_s(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Ws(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function qs(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function $s(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Gs(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Ks(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Ys(e,t){if(!xs(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Xs(e,t){if(!xs(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Js(e,t){var n;if(!xs(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!xs(t[0])&&!xs(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],r=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Qs(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function Zs(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0,s=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Ys(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(s&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||o,drag:i,dragAll:c,smoothSteps:u,fixed:r,snap:o,hover:a,unconstrained:s,invertConnects:l}}function el(e,t){if(!1!==t)if(!0===t||vs(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=_s(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!vs(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function tl(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function nl(e,t){if(!vs(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function il(e,t){if(!function(e){return vs(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function rl(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function ol(e,t){e.documentElement=t}function al(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function sl(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function ll(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Is,format:Is},n={step:{r:!1,t:zs},keyboardPageMultiplier:{r:!1,t:Fs},keyboardMultiplier:{r:!1,t:Bs},keyboardDefaultStep:{r:!1,t:Us},start:{r:!0,t:Hs},connect:{r:!0,t:Gs},direction:{r:!0,t:Qs},snap:{r:!1,t:Ws},animate:{r:!1,t:qs},animationDuration:{r:!1,t:$s},range:{r:!0,t:Vs},orientation:{r:!1,t:Ks},margin:{r:!1,t:Ys},limit:{r:!1,t:Xs},padding:{r:!1,t:Js},behaviour:{r:!0,t:Zs},ariaFormat:{r:!1,t:nl},format:{r:!1,t:il},tooltips:{r:!1,t:el},keyboardSupport:{r:!0,t:rl},documentElement:{r:!1,t:ol},cssPrefix:{r:!0,t:al},cssClasses:{r:!0,t:sl},handleAttributes:{r:!1,t:tl}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Ps,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(r){if(bs(e[r])||void 0!==i[r])n[r].t(t,bs(e[r])?e[r]:i[r]);else if(n[r].r)throw new Error("noUiSlider: '"+r+"' is required.")}),t.pips=e.pips;var r=document.createElement("div"),o=void 0!==r.style.msTransform,a=void 0!==r.style.transform;t.transformRule=a?"transform":o?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function cl(e,t,n){var i,r,o,a,s,l,c,u=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},d=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),h=e,p=t.spectrum,f=[],m=[],v=[],g=0,b={},y=!1,x=e.ownerDocument,w=t.documentElement||x.documentElement,N=x.body,_="rtl"===x.dir||1===t.ort?0:100;function S(e,t){var n=x.createElement("div");return t&&ks(n,t),e.appendChild(n),n}function k(e,n){var i=S(e,t.cssClasses.origin),r=S(i,t.cssClasses.handle);if(S(r,t.cssClasses.touchArea),r.setAttribute("data-handle",String(n)),t.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(e){return function(e,n){if(O()||A(n))return!1;var i=["Left","Right"],r=["Down","Up"],o=["PageDown","PageUp"],a=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(r.reverse(),o.reverse());var s,l=e.key.replace("Arrow",""),c=l===o[0],u=l===o[1],d=l===r[0]||l===i[0]||c,h=l===r[1]||l===i[1]||u,v=l===a[0],g=l===a[1];if(!(d||h||v||g))return!0;if(e.preventDefault(),h||d){var b=d?0:1,y=se(n)[b];if(null===y)return!1;!1===y&&(y=p.getDefaultStep(m[n],d,t.keyboardDefaultStep)),y*=u||c?t.keyboardPageMultiplier:t.keyboardMultiplier,y=Math.max(y,1e-7),y*=d?-1:1,s=f[n]+y}else s=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return ne(n,p.toStepping(s),!0,!0),Y("slide",n),Y("update",n),Y("change",n),Y("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var o=t.handleAttributes[n];Object.keys(o).forEach(function(e){r.setAttribute(e,o[e])})}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?ks(r,t.cssClasses.handleLower):n===t.handles-1&&ks(r,t.cssClasses.handleUpper),i.handle=r,i}function j(e,n){return!!n&&S(e,t.cssClasses.connect)}function E(e,n){return!(!t.tooltips||!t.tooltips[n])&&S(e.firstChild,t.cssClasses.tooltip)}function O(){return h.hasAttribute("disabled")}function A(e){return o[e].hasAttribute("disabled")}function C(){l&&(K("update"+Rs),l.forEach(function(e){e&&gs(e)}),l=null)}function T(){C(),l=o.map(E),G("update"+Rs,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var r=e[n];!0!==t.tooltips[n]&&(r=t.tooltips[n].to(i[n])),l[n].innerHTML=r}})}function D(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function L(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===ds.Range||e.mode===ds.Steps)return p.xVal;if(e.mode===ds.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),D(i,e.stepped)}return e.mode===ds.Positions?D(e.values,e.stepped):e.mode===ds.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),r={},o=p.xVal[0],a=p.xVal[p.xVal.length-1],s=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),(i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==o&&(i.unshift(o),s=!0),i[i.length-1]!==a&&(i.push(a),l=!0),i.forEach(function(n,o){var a,u,d,h,f,m,v,g,b,y,x=n,w=i[o+1],N=e.mode===ds.Steps;for(N&&(a=p.xNumSteps[o]),a||(a=w-x),void 0===w&&(w=x),a=Math.max(a,1e-7),u=x;u<=w;u=t(u,a)){for(g=(f=(h=p.toStepping(u))-c)/(e.density||1),y=f/(b=Math.round(g)),d=1;d<=b;d+=1)r[(m=c+d*y).toFixed(5)]=[p.fromStepping(m),0];v=i.indexOf(u)>-1?hs.LargeValue:N?hs.SmallValue:hs.NoValue,!o&&s&&u!==w&&(v=0),u===w&&l||(r[h.toFixed(5)]=[u,v]),c=h}}),r}function I(e,n,i){var r,o,a=x.createElement("div"),s=((r={})[hs.None]="",r[hs.NoValue]=t.cssClasses.valueNormal,r[hs.LargeValue]=t.cssClasses.valueLarge,r[hs.SmallValue]=t.cssClasses.valueSub,r),l=((o={})[hs.None]="",o[hs.NoValue]=t.cssClasses.markerNormal,o[hs.LargeValue]=t.cssClasses.markerLarge,o[hs.SmallValue]=t.cssClasses.markerSub,o),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],u=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function d(e,n){var i=n===t.cssClasses.value,r=i?s:l;return n+" "+(i?c:u)[t.ort]+" "+r[e]}return ks(a,t.cssClasses.pips),ks(a,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r,o){if((o=n?n(r,o):o)!==hs.None){var s=S(a,!1);s.className=d(o,t.cssClasses.marker),s.style[t.style]=e+"%",o>hs.NoValue&&((s=S(a,!1)).className=d(o,t.cssClasses.value),s.setAttribute("data-value",String(r)),s.style[t.style]=e+"%",s.innerHTML=String(i.to(r)))}}(r,e[r][0],e[r][1])}),a}function P(){s&&(gs(s),s=null)}function R(e){P();var t=L(e),n=e.filter,i=e.format||{to:function(e){return String(Math.round(e))}};return s=h.appendChild(I(t,n,i))}function M(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function z(e,n,i,r){var o=function(o){var a,s,l=function(e,t,n){var i=0===e.type.indexOf("touch"),r=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),a=0,s=0;0===e.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;a=c[0].pageX,s=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;a=u.pageX,s=u.pageY}}t=t||Es(x),(r||o)&&(a=e.clientX+t.x,s=e.clientY+t.y);return e.pageOffset=t,e.points=[a,s],e.cursor=r||o,e}(o,r.pageOffset,r.target||n);return!!l&&(!(O()&&!r.doNotReject)&&(a=h,s=t.cssClasses.tap,!((a.classList?a.classList.contains(s):new RegExp("\\b"+s+"\\b").test(a.className))&&!r.doNotReject)&&(!(e===u.start&&void 0!==l.buttons&&l.buttons>1)&&((!r.hover||!l.buttons)&&(d||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,r))))))},a=[];return e.split(" ").forEach(function(e){n.addEventListener(e,o,!!d&&{passive:!0}),a.push([e,o])}),a}function F(e){var n,r,o,a,s,l,c=100*(e-(n=i,r=t.ort,o=n.getBoundingClientRect(),a=n.ownerDocument,s=a.documentElement,l=Es(a),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),r?o.top+l.y-s.clientTop:o.left+l.x-s.clientLeft))/M();return c=Ns(c),t.dir?100-c:c}function B(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&V(e,t)}function U(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return V(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);Q(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function V(e,n){n.handle&&(js(n.handle,t.cssClasses.active),g-=1),n.listeners.forEach(function(e){w.removeEventListener(e[0],e[1])}),0===g&&(js(h,t.cssClasses.drag),te(),e.cursor&&(N.style.cursor="",N.removeEventListener("selectstart",ys))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){ne(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){Y("update",e)})),n.handleNumbers.forEach(function(e){Y("change",e),Y("set",e),Y("end",e)})}function H(e,n){if(!n.handleNumbers.some(A)){var i;if(1===n.handleNumbers.length)i=o[n.handleNumbers[0]].children[0],g+=1,ks(i,t.cssClasses.active);e.stopPropagation();var r=[],a=z(u.move,w,U,{target:e.target,handle:i,connect:n.connect,listeners:r,startCalcPoint:e.calcPoint,baseSize:M(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),s=z(u.end,w,V,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers}),l=z("mouseout",w,B,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers});r.push.apply(r,a.concat(s,l)),e.cursor&&(N.style.cursor=getComputedStyle(e.target).cursor,o.length>1&&ks(h,t.cssClasses.drag),N.addEventListener("selectstart",ys,!1)),n.handleNumbers.forEach(function(e){Y("start",e)})}}function W(e){e.stopPropagation();var n=F(e.calcPoint),i=function(e){var t=100,n=!1;return o.forEach(function(i,r){if(!A(r)){var o=m[r],a=Math.abs(o-e);(a<t||a<=t&&e>o||100===a&&100===t)&&(n=r,t=a)}}),n}(n);!1!==i&&(t.events.snap||ws(h,t.cssClasses.tap,t.animationDuration),ne(i,n,!0,!0),te(),Y("slide",i,!0),Y("update",i,!0),t.events.snap?H(e,{handleNumbers:[i]}):(Y("change",i,!0),Y("set",i,!0)))}function q(e){var t=F(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(ce,i)})})}function $(e){e.fixed||o.forEach(function(e,t){z(u.start,e.children[0],H,{handleNumbers:[t]})}),e.tap&&z(u.start,i,W,{}),e.hover&&z(u.move,i,q,{hover:!0}),e.drag&&a.forEach(function(n,i){if(!1!==n&&0!==i&&i!==a.length-1){var r=o[i-1],s=o[i],l=[n],c=[r,s],d=[i-1,i];ks(n,t.cssClasses.draggable),e.fixed&&(l.push(r.children[0]),l.push(s.children[0])),e.dragAll&&(c=o,d=v),l.forEach(function(e){z(u.start,e,H,{handles:c,handleNumbers:d,connect:n})})}})}function G(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&o.forEach(function(e,t){Y("update",t)})}function K(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],r=e.substring(i.length);t&&t!==i||n&&n!==r||function(e){return e===Ms||e===Rs}(r)&&n!==r||delete b[e]})}function Y(e,n,i){Object.keys(b).forEach(function(r){var o=r.split(".")[0];e===o&&b[r].forEach(function(e){e.call(ce,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),ce)})})}function X(e,n,i,r,a,s,l){var c;return o.length>1&&!t.events.unconstrained&&(r&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),a&&n<o.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),o.length>1&&t.limit&&(r&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),a&&n<o.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===o.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=Ns(i))===e[n]&&!s)&&i}function J(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function Q(e,n,i,r,o){var a=i.slice(),s=r[0],l=t.events.smoothSteps,c=[!e,e],u=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,t){var i=X(a,e,a[e]+n,c[t],u[t],!1,l);!1===i?n=0:(n=i-a[e],a[e]=i)}):c=u=[!0];var d=!1;r.forEach(function(e,t){d=ne(e,i[e]+n,c[t],u[t],!1,l)||d}),d&&(r.forEach(function(e){Y("update",e),Y("slide",e)}),null!=o&&Y("drag",s))}function Z(e,n){return t.dir?100-e-n:e}function ee(e,n){m[e]=n,f[e]=p.fromStepping(n);var i="translate("+J(Z(n,0)-_+"%","0")+")";if(o[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var r=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!r)return y=!y,Gs(t,t.connect.map(function(e){return!e})),void le()}ie(e),ie(e+1),y&&(ie(e-1),ie(e+2))}function te(){v.forEach(function(e){var t=m[e]>50?-1:1,n=3+(o.length+t*e);o[e].style.zIndex=String(n)})}function ne(e,t,n,i,r,o){return r||(t=X(m,e,t,n,i,!1,o)),!1!==t&&(ee(e,t),!0)}function ie(e){if(a[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,r=100;0!==e&&(i=n[e-1]),e!==a.length-1&&(r=n[e]);var o=r-i,s="translate("+J(Z(i,o)+"%","0")+")",l="scale("+J(o/100,"1")+")";a[e].style[t.transformRule]=s+" "+l}}function re(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function oe(e,n,i){var r=_s(e),o=void 0===m[0];n=void 0===n||n,t.animate&&!o&&ws(h,t.cssClasses.tap,t.animationDuration),v.forEach(function(e){ne(e,re(r[e],e),!0,!1,i)});var a=1===v.length?0:1;if(o&&p.hasNoSize()&&(i=!0,m[0]=0,v.length>1)){var s=100/(v.length-1);v.forEach(function(e){m[e]=e*s})}for(;a<v.length;++a)v.forEach(function(e){ne(e,m[e],!0,!0,i)});te(),v.forEach(function(e){Y("update",e),null!==r[e]&&n&&Y("set",e)})}function ae(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=m[e],i=p.getNearbySteps(n),r=f[e],o=i.thisStep.step,a=null;if(t.snap)return[r-i.stepBefore.startValue||null,i.stepAfter.startValue-r||null];!1!==o&&r+o>i.stepAfter.startValue&&(o=i.stepAfter.startValue-r),a=r>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&r-i.stepBefore.highestStep,100===n?o=null:0===n&&(a=null);var s=p.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(s))),null!==a&&!1!==a&&(a=Number(a.toFixed(s))),[a,o]}function le(){for(;r.firstChild;)r.removeChild(r.firstChild);for(var e=0;e<=t.handles;e++)a[e]=j(r,t.connect[e]),ie(e);$({drag:t.events.drag,fixed:!0})}ks(c=h,t.cssClasses.target),0===t.dir?ks(c,t.cssClasses.ltr):ks(c,t.cssClasses.rtl),0===t.ort?ks(c,t.cssClasses.horizontal):ks(c,t.cssClasses.vertical),ks(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=S(c,t.cssClasses.base),function(e,n){r=S(n,t.cssClasses.connects),o=[],(a=[]).push(j(r,e[0]));for(var i=0;i<t.handles;i++)o.push(k(n,i)),v[i]=i,a.push(j(r,e[i+1]))}(t.connect,i),$(t.events),oe(t.start),t.pips&&R(t.pips),t.tooltips&&T(),K("update"+Ms),G("update"+Ms,function(e,n,i,r,a){v.forEach(function(e){var n=o[e],r=X(m,e,0,!0,!0,!0),s=X(m,e,100,!0,!0,!0),l=a[e],c=String(t.ariaFormat.to(i[e]));r=p.fromStepping(r).toFixed(1),s=p.fromStepping(s).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",r),n.children[0].setAttribute("aria-valuemax",s),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var ce={destroy:function(){for(K(Ms),K(Rs),Object.keys(t.cssClasses).forEach(function(e){js(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return v.map(se)},on:G,off:K,get:ae,set:oe,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<v.length))throw new Error("noUiSlider: invalid handle number, got: "+e);ne(e,re(t,e),!0,!0,i),Y("update",e),n&&Y("set",e)},reset:function(e){oe(t.start,e)},disable:function(e){null!=e?(o[e].setAttribute("disabled",""),o[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),o.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(o[e].removeAttribute("disabled"),o[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),o.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){Q(e,t,m,n)},options:n,updateOptions:function(e,i){var r=ae(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];o.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var a=ll(n);o.forEach(function(n){void 0!==e[n]&&(t[n]=a[n])}),p=a.spectrum,t.margin=a.margin,t.limit=a.limit,t.padding=a.padding,t.pips?R(t.pips):P(),t.tooltips?T():C(),m=[],oe(bs(e.start)?e.start:r,i),e.connect&&le()},target:h,removePips:P,removeTooltips:C,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return o},pips:R};return ce}var ul={__spectrum:Ls,cssClasses:Ps,create:function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=cl(e,ll(t),t);return e.noUiSlider=n,n}},dl={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},hl=function(){return m(function e(t,n){var i=this;return p(this,e),this.handleSliderUpdate=function(e,t){var n=e[t];if(i.inputs[t]&&(i.inputs[t].value=n),i.outputs[t]){var r=i.outputs[t];r&&r.format?r.element.innerText=r.format.to(i.config.format.from(n)):r&&(r.element.innerText=n)}},this.element=t,this.config=Object.assign(Object.assign({},dl),n),this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this},[{key:"init",value:function(){var e,t=this,n=this.element.getAttribute("data-rangeslider-config"),i={};if(n)try{i=JSON.parse(n)}catch(e){}if(this.config=Object.assign(Object.assign({},this.config),i),this.config.format=De(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,(null===(e=this.instance)||void 0===e?void 0:e.destroy)&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=ul.create(this.element,this.config),this.inputs=Array.from(document.querySelectorAll("input[name^=".concat(this.element.getAttribute("id"),"-]"))),this.outputs=this.inputs.map(function(e){var t=document.getElementById("".concat(e.getAttribute("id"),"-output"));if(t){var n=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&n?De(JSON.parse(n)):void 0}}return!1}),this.instance.on("update",function(e,n){t.handleSliderUpdate(e.map(String),n)})}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy(),this.init()}},{key:"destroy",value:function(){var e,t;null===(e=this.instance)||void 0===e||e.off("update"),null===(t=this.instance)||void 0===t||t.destroy(),this.element.ODS_RangeSlider=null}}],[{key:"getInstance",value:function(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}}])}(),pl="range-slider",fl=!0,ml="default",vl=function(e){var t=e.className,n=e.id,i=e.hasDataAttr,r=void 0===i?fl:i,o=e.config,a=e.elementBefore,s=e.elementAfter,l=e.width,c=void 0===l?ml:l,u=S(e,["className","id","hasDataAttr","config","elementBefore","elementAfter","width"]),d=y(B(hl),1)[0],h=null!=n?n:F(),p=A(pl,v({},"".concat(pl,"--").concat(c),c!==ml),t);return X.jsxs(X.Fragment,{children:[a,X.jsx("div",b({id:h,className:p,ref:d,"data-rangeslider":r,"data-rangeslider-config":JSON.stringify(o)},u)),o.start.map(function(e,t){var n="".concat(h,"-").concat(t);return X.jsx("input",{type:"hidden",id:n,name:n},n)}),s]})};vl.displayName="RangeSlider";var gl="textarea",bl="default",yl="default",xl=function(e){var t=e.children,n=e.className,i=e.id,r=e.isDisabled,o=e.isInvalid,a=e.isValid,s=e.isReadonly,l=e.placeholder,c=e.size,u=void 0===c?bl:c,d=e.width,h=void 0===d?yl:d,p=e.name,f=S(e,["children","className","id","isDisabled","isInvalid","isValid","isReadonly","placeholder","size","width","name"]),m=A(gl,v(v({"is-invalid":o,"is-valid":a},"".concat(gl,"--").concat(u),u!==bl),"".concat(gl,"--").concat(h),h!==yl),n),g=p||i;return X.jsx("textarea",b(b({className:m,id:i,name:g,disabled:r,readOnly:s,placeholder:l},f),{},{children:t}))};xl.displayName="TextArea";var wl={nonEditableInput:!1,min:1,max:999,defaultValue:1},Nl=function(){return m(function e(t,n){p(this,e),this.element=t,this.config=Object.assign(Object.assign({},wl),n),this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()},[{key:"handleInputClick",value:function(){this.input&&this.input.select()}},{key:"handleButtonState",value:function(){var e,t,n,i,r=this.config,o=r.min,a=r.max,s=this.config.nonEditableInput?parseInt(null!==(i=null===(n=this.numberDisplay)||void 0===n?void 0:n.textContent)&&void 0!==i?i:"0",10):parseInt(null!==(t=null===(e=this.input)||void 0===e?void 0:e.value)&&void 0!==t?t:"0",10);this.add&&"number"==typeof a&&s>=a?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof o&&s<=o?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}},{key:"handleInputChange",value:function(e){var t=this.config,n=t.min,i=t.max,r=e.target;r&&(n&&Number(r.value)<=n&&(r.value=String(n)),i&&Number(r.value)>=i&&(r.value=String(i)))}},{key:"handleButtonClick",value:function(e){var t,n,i,r,o=this.config,a=o.min,s=o.max,l=e.target,c=this.config.nonEditableInput?parseInt(null!==(r=null===(i=this.numberDisplay)||void 0===i?void 0:i.textContent)&&void 0!==r?r:"0",10):parseInt(null!==(n=null===(t=this.input)||void 0===t?void 0:t.value)&&void 0!==n?n:"0",10);if(l.classList.contains("input-stepper__button--minus")){if(a&&c<=a){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c-=1}if(l.classList.contains("input-stepper__button--plus")){if(s&&c>=s){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(c):this.numberDisplay&&(this.numberDisplay.textContent=String(c)),this.handleButtonState()}},{key:"init",value:function(){var e=this.element.getAttribute("data-inputstepper"),t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch(e){t={}}this.config=Object.assign(Object.assign({},this.config),t),this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");var n=this.config.defaultValue;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}])}(),_l="input-stepper",Sl=function(e){var t=e.className,n=e.inputClassName,i=e.id,r=e.config,o=e.isDisabled,a=e.isInverse,s=e.nonEditableInput,l=void 0!==s&&s,c=S(e,["className","inputClassName","id","config","isDisabled","isInverse","nonEditableInput"]),u=y(B(Nl,{nonEditableInput:l}),1)[0],d=c.name,h=void 0===d?i:d,p=S(c,["name"]),f=A("".concat(_l,"__field"),n);return X.jsxs("div",b(b({className:A(_l,t,v(v({},"".concat(_l,"--inverse"),a),"".concat(_l,"--disabled"),o)),ref:u,"data-inputstepper":!r||JSON.stringify(r)},p),{},{children:[X.jsx("button",{disabled:o,className:"".concat(_l,"__button ").concat(_l,"__button--minus"),"aria-label":"znížiť počet"}),l||(null==r?void 0:r.nonEditableInput)?X.jsx("p",{id:i,className:"".concat(_l,"__number")}):X.jsx(as,{className:f,id:i,name:h,disabled:o,htmlType:"number",inputMode:"numeric"}),X.jsx("button",{disabled:o,className:"".concat(_l,"__button ").concat(_l,"__button--plus"),"aria-label":"zvýšiť počet"})]}))};Sl.displayName="InputStepper";var kl=qo(function(){return Promise.resolve().then(function(){return vo}).then(function(e){return{default:e.Autocomplete}})}),jl="form-field__control",El=function(t){var n,i,r,o,a,s=t.className,l=e.useContext(wo),c=e.useContext(Co),u=null!==(n=null==l?void 0:l.controlId)&&void 0!==n?n:"",d=null!==(i=null==l?void 0:l.control)&&void 0!==i?i:{},h=null==l?void 0:l.isRadioCheck,p=null==l?void 0:l.hint,f=null!==(r=null==l?void 0:l.messages)&&void 0!==r?r:[],m=null==l?void 0:l.tooltip,g=null!==(o=null==c?void 0:c.messages)&&void 0!==o?o:[],y=d.type,w=d.control,N=d.renderControl,_=S(d,["type","control","renderControl"]),k=function(e,t,n,i){return[].concat(x(e?["".concat(i,"-hint")]:[]),x(t.map(function(e,t){return"".concat(i,"-message-").concat(t)})),x(n?["".concat(i,"-tooltip")]:[])).join(" ")}(p,f,m,u),j=h||"autocomplete"===y,E=function(e){switch(y){case"autocomplete":return X.jsx(kl,b({},e));case"checkbox":return X.jsx(yo,b({},e));case"file":return X.jsx(ts,b({},e));case"group":return X.jsx(us,b({},e));case"radio":return X.jsx(ms,b({},e));case"range":return X.jsx(vl,b({},e));case"select":return X.jsx(fo,b({},e));case"input-stepper":return X.jsx(Sl,b({},e));case"textarea":return X.jsx(xl,b({},e));default:return X.jsx(as,b({},e))}},O=_.isInvalid,C=_.isValid,T=null!=O?O:(g.some(function(e){return e.isMain})||f.some(function(e){return"error"===e.type}))&&!C,D=(a=Object.assign(Object.assign(Object.assign({id:u},k.length&&{"aria-describedby":k}),"file"===y&&{"aria-labelledby":"".concat(u,"-label")}),"text"===y?{isInvalid:T}:{}),"group"===y&&(a={control:Object.assign(Object.assign({type:y},w),a)}),Object.assign(Object.assign({},_),a));return N?N(D):X.jsx(se,{condition:j,wrapper:X.jsx("div",{className:A(jl,s)}),children:X.jsx(E,b(b({},D),{},{className:A(_.className,v({},"".concat(jl),!j))}))})},Ol=function(e){var t=e.className,n=e.children,i=S(e,["className","children"]);return n?X.jsx("p",b(b({className:A("hint",t)},i),{},{children:n})):null};Ol.displayName="Hint";var Al=function(t){var n,i=t.hideLabel,r=void 0!==i&&i,o=t.children,a=e.useContext(wo),s=null!==(n=null==a?void 0:a.controlId)&&void 0!==n?n:"",l=null==a?void 0:a.tooltip,c=null==a?void 0:a.hint;return X.jsxs("div",{className:"form-field__description",children:[r?null:X.jsxs(X.Fragment,{children:[X.jsx(_o,{}),X.jsx(So,{id:s,children:l})]}),X.jsx(Ol,{id:"".concat(s,"-hint"),className:"form-field__hint",children:c}),o]})},Cl="form-field",Tl=function(e){var t,n=e.className,i=e.control,r=e.hint,o=e.label,a=e.labelAfter,s=e.messages,l=void 0===s?[]:s,c=e.tooltip,u=S(e,["className","control","hint","label","labelAfter","messages","tooltip"]),d=["radio","checkbox"].includes(null!==(t=null==i?void 0:i.type)&&void 0!==t?t:""),h="checkbox"===(null==i?void 0:i.type)&&(null==i?void 0:i.isToggle),p=A(Cl,n,v({},"".concat(Cl,"--radiocheck"),d)),f=function(e){var t,n=e.id,i=e.control;return null!==(t=null!=n?n:i&&i.id)&&void 0!==t?t:F()}(null!=i?i:{}),m={control:i,hint:r,label:o,labelAfter:a,messages:l,tooltip:c,controlId:f,isRadioCheck:d};return X.jsx("div",b(b({className:p},u),{},{children:X.jsx(wo.Provider,{value:m,children:d?h?X.jsx(X.Fragment,{children:X.jsxs(ve,{space:"small",children:[X.jsx(be,{children:X.jsxs(ve,{canWrap:!1,children:[X.jsx(be,{children:X.jsx(El,{className:"mr-none"})}),X.jsxs(be,{canShrink:!0,children:[X.jsx(_o,{}),X.jsx(So,{id:f,children:c})]})]})}),X.jsx(ye,{}),X.jsx(be,{className:"mt-none",children:X.jsx(Al,{hideLabel:!0,children:X.jsx(To,{})})})]})}):X.jsxs(X.Fragment,{children:[X.jsx(El,{}),X.jsx(Al,{children:X.jsx(To,{})})]}):X.jsxs(X.Fragment,{children:[X.jsx(Al,{}),X.jsx(El,{}),X.jsx(To,{})]})})}))};Tl.displayName="Field";var Dl=function(e){var t=e.legend,n=e.legendProps,i=e.description,r=e.className,o=e.children,a=e.messages,s=S(e,["legend","legendProps","description","className","children","messages"]),l=A("fieldset",r);return X.jsxs("fieldset",b(b({className:l},s),{},{children:[X.jsx("legend",b(b({},n),{},{children:t})),i,a?X.jsxs(Co.Provider,{value:{messages:a},children:[X.jsx(To,{isMain:!0}),o,X.jsx(To,{})]}):o]}))};Dl.displayName="Fieldset";var Ll=function(e){var t=e.className,n=S(e,["className"]),i=A("skeleton",t);return X.jsx("span",b(b({className:i},n),{},{children:"‌"}))};Ll.displayName="Skeleton";var Il=function(e){var t=e.href,n=e.children,i=e.className,r=e.controls,o=e.isDisabled,a=e.isActive,s=S(e,["href","children","className","controls","isDisabled","isActive"]),l=A("tab-list__tab",i),c=a?0:-1,u=t?"a":"button";return X.jsx("li",{className:"tab-list__item",role:"presentation",children:X.jsx(u,b(b({type:t?void 0:"button",role:t?void 0:"tab",href:t,className:l,"aria-selected":a,"aria-controls":r||void 0,tabIndex:c,"aria-disabled":o},s),{},{children:n}))})};Il.displayName="Tab";var Pl={tabSelector:'[role="tab"]'},Rl=function(){return m(function e(t,n){return p(this,e),this.isActive=function(e){return!!e&&!e.hasAttribute("hidden")},this.isSelected=function(e){return"true"===e.getAttribute("aria-selected")},this.element=t,this.config=Object.assign(Object.assign({},Pl),n),this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.element.ODS_Tabs=this,this.init(),this},[{key:"init",value:function(){var e=this;this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map(function(t,n){var i=t.getAttribute("aria-controls");return e.tabPanels.push(i?document.getElementById(i):null),t.addEventListener("click",e.handleClick),t.addEventListener("focus",e.handleTabFocus),e.isSelected(t)&&(e.activeTabIndex=n),t}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new T(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.toggleTabPanel(this.tabPanels[this.activeTabIndex],"on"):this.tabs.length>0&&this.activateNthTab(0)}},{key:"destroy",value:function(){var e=this;this.tabs.map(function(t){return t.removeEventListener("click",e.handleClick),t.removeEventListener("focus",e.handleTabFocus),t}),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"handleClick",value:function(e){var t=this,n=e.currentTarget;n.hasAttribute("aria-disabled")?e.preventDefault():(this.tabs.map(function(e,i){return e===n?(t.activeTabIndex=i,t.toggleTab(e,"on")):t.toggleTab(e,"off")}),this.tabPanels.map(function(e){return e&&e.getAttribute("id")===n.getAttribute("aria-controls")?t.toggleTabPanel(e,"on"):t.toggleTabPanel(e,"off")}))}},{key:"toggleTab",value:function(e,t){var n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}},{key:"toggleTabPanel",value:function(e,t){if(e){var n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}}},{key:"activateNthTab",value:function(e){var t=this;this.tabs.map(function(n,i){return i===e?(t.activeTabIndex=i,t.toggleTab(n,"on")):t.toggleTab(n,"off")}),this.tabPanels.map(function(n,i){return i===e?t.toggleTabPanel(n,"on"):t.toggleTabPanel(n,"off")})}},{key:"handleTabFocus",value:function(){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}}])}(),Ml=function(t){var n=t.activeTabIndex,i=void 0===n?0:n,r=t.className,o=t.classesTabNav,a=t.isFullWidth,s=t.isLink,l=t.hasEqualTabWidth,c=t.variant,u=void 0===c?"standard":c,d=t.children,h=t.colorScheme,p=S(t,["activeTabIndex","className","classesTabNav","isFullWidth","isLink","hasEqualTabWidth","variant","children","colorScheme"]),f="tab-list",m=A(f,v({},"".concat(f,"--equal"),l),v({},"".concat(f,"--fullwidth"),a),v({},"".concat(f,"--light"),"light"===u),{"is-dark":"dark"===h},{"is-light":"light"===h},o,r),g=y(B(Rl),1)[0];return X.jsxs(X.Fragment,{children:[X.jsxs("ul",b(b({className:m,role:s?"navigation":"tablist",ref:g,"data-tabs":s?void 0:"true"},p),{},{children:[d.map(function(t,n){var r=n===i,o=t.props,a=o.renderTab,s=o.id,l=o.isDisabled,c=o.tab,u=o.href;if(!a)return e.createElement(Il,{key:s,controls:u?"":s,href:u,isDisabled:l,isActive:r},c);var d=a(t.props);return e.cloneElement(d,{key:s,isActive:r})}),a&&X.jsx("li",{role:"presentation",className:"tab-list__hr"})]})),s?null:d.map(function(t,n){var r=n===i,o=t.props.id;return e.cloneElement(t,{key:o,isActive:r,tab:void 0})})]})};Ml.displayName="Tabs";var zl=function(e){var t=e.children,n=e.isActive,i=e.id,r=e.href,o=S(e,["children","isActive","id","href"]),a=i||F();return X.jsx("div",b(b({id:a,role:r?"":"tabpanel",tabIndex:0,hidden:!n},o),{},{children:t}))};zl.displayName="TabPanel";var Fl="tile",Bl=function(e){var t=e.className,n=e.children,i=e.variant,r=e.backgroundImage,o=e.vAlign,a=e.hAlign,s=e.color,l=void 0===s?"default":s,c=e.space,u=S(e,["className","children","variant","backgroundImage","vAlign","hAlign","color","space"]),d=A(Fl,v(v({},"".concat(Fl,"--").concat(i),i),"tile--".concat(l),"default"!==l),t),h=A("".concat(Fl,"__body"),o&&"justify-content-".concat(o),a&&"align-items-".concat(a),c&&"".concat(Fl,"__body--space-").concat(c)),p="action"===i?{name:"chevron-right",size:"medium",color:"orange"}:null;return X.jsxs("div",b(b({className:d},u),{},{children:[X.jsxs("div",{className:h,children:[p&&X.jsx(te,b({},p)),n]}),r&&X.jsx(He,b(b({},r),{},{className:A("".concat(Fl,"__bg"),r.className)}))]}))};Bl.displayName="Tile";var Ul="cover",Vl=function(e){var t=e.className,n=e.children,i=e.contentClass,r=e.bgPosition,o=void 0===r?"center":r,a=e.bgSrc,s=e.size,l=S(e,["className","children","contentClass","bgPosition","bgSrc","size"]),c=A(Ul,v({},"".concat(Ul,"--").concat(s),s),t),u=A("".concat(Ul,"__content"),i),d=A("".concat(Ul,"__image"),v({},"".concat(Ul,"__image--").concat(o),"center"!==o));return X.jsxs("div",{className:c,children:[n&&X.jsx("div",{className:u,children:n}),X.jsx(He,b({src:a,className:d,alt:""},l))]})};Vl.displayName="Cover";var Hl=function(e){var t=e.className,n=e.children,i=e.color,r=void 0===i?"default":i,o=e.isDiv,a=void 0!==o&&o,s=S(e,["className","children","color","isDiv"]),l=a?"div":"p",c=A("testimonial",v({},"testimonial--".concat(r),"orange"===r),t);return X.jsx(l,b(b({className:c},s),{},{children:n}))};Hl.displayName="Testimonial";export{Q as Accordion,re as AccordionItem,ue as Alert,mo as Autocomplete,ve as Bar,ye as BarBreak,be as BarItem,_e as BlockAction,Se as BlockActionControl,ke as BlockActionIndicator,je as BlockActionOverride,$e as BodyBanner,Ye as Breadcrumbs,Ue as Button,Qe as ButtonFill,Ze as ButtonGhost,Je as ButtonPrimary,ae as Buttons,Qi as Card,nr as CardProductHeader,er as CardSection,Bn as Carousel,ti as CarouselPromotions,_i as CartTable,yo as Checkbox,We as Container,Si as Controls,Vl as Cover,ji as Divider,Li as Dropdown,Pi as DropdownDivider,Ii as DropdownItem,Ci as DropdownToggleButton,zi as Expander,Vi as FeatureAccordion,Hi as FeatureAccordionItem,Tl as Field,Dl as Fieldset,ts as File,Xi as Footer,ar as Gauge,Me as Grid,Fe as GridCol,us as Group,Ol as Hint,te as Icon,Xe as IconButton,He as Image,fi as InfoTooltip,Sl as InputStepper,xo as Label,$i as Link,Xr as List,Qr as ListItem,ur as Loader,Oo as Message,$r as Modal,Hr as ModalBody,Br as ModalCloseButton,Ur as ModalTitle,oo as Pagination,to as Progress,ms as Radio,vl as RangeSlider,qi as Section,fo as Select,Ll as Skeleton,Kr as Sticker,Il as Tab,zl as TabPanel,di as Table,Ml as Tabs,he as Tag,fe as TagButton,Hl as Testimonial,xl as TextArea,as as TextInput,Bl as Tile,hi as Tooltip};
3678
37
  //# sourceMappingURL=index.js.map