@adyen/adyen-platform-experience-web 0.1.2 → 1.0.0-beta

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 (784) hide show
  1. package/README.md +13 -13
  2. package/dist/AmountSkeleton.css +23 -0
  3. package/dist/BalanceAccountSelector.css +4 -0
  4. package/dist/BaseButton.css +14 -0
  5. package/dist/BaseList.css +5 -0
  6. package/dist/Button.css +114 -0
  7. package/dist/ButtonActions-eb064f69.mjs +46 -0
  8. package/dist/ButtonActions.css +28 -0
  9. package/dist/CalendarGrid.css +113 -0
  10. package/dist/CopyText.css +18 -0
  11. package/dist/DatePicker.css +64 -0
  12. package/dist/ErrorMessageDisplay.css +20 -0
  13. package/dist/ErrorPanel.css +15 -0
  14. package/dist/ExpandableCard.css +71 -0
  15. package/dist/FilterBar.css +40 -0
  16. package/dist/FilterButton.css +48 -0
  17. package/dist/Img.css +7 -0
  18. package/dist/InputBase.css +175 -0
  19. package/dist/Modal.css +110 -0
  20. package/dist/Pagination.css +25 -0
  21. package/dist/Popover.css +127 -0
  22. package/dist/PopoverDismissButton.css +12 -0
  23. package/dist/RangeSelection.css +26 -0
  24. package/dist/Select.css +149 -0
  25. package/dist/SkeletonBody.css +154 -0
  26. package/dist/Spinner.css +50 -0
  27. package/dist/SummaryItem.css +37 -0
  28. package/dist/Tag-6d02fd64.mjs +32 -0
  29. package/dist/Tag.css +34 -0
  30. package/dist/Tooltip.css +7 -0
  31. package/dist/TotalsCard.css +14 -0
  32. package/dist/TransactionDetails.css +74 -0
  33. package/dist/TransactionsDisplay.css +4 -0
  34. package/dist/TransactionsOverview.css +29 -0
  35. package/dist/TransactionsOverviewContainer.css +3 -0
  36. package/dist/TransactionsTable.css +18 -0
  37. package/dist/Typography-11b95870.mjs +68 -0
  38. package/dist/Typography.css +57 -0
  39. package/dist/cjs/ModalContent-f4990141.js +10 -0
  40. package/dist/cjs/ModalContent-f4990141.js.map +1 -0
  41. package/dist/cjs/index-8c098f20.js +10401 -0
  42. package/dist/cjs/index-8c098f20.js.map +1 -0
  43. package/dist/cjs/index.css +1709 -0
  44. package/dist/cjs/index.js +35 -1
  45. package/dist/cjs/index.js.map +1 -1
  46. package/dist/compat.module-a4d537ff.mjs +237 -0
  47. package/dist/en-US-1daadfc1.mjs +371 -0
  48. package/dist/es/components/external/BaseElement.js +89 -49
  49. package/dist/es/components/external/EventEmitter.js +28 -17
  50. package/dist/es/components/external/FormElement.js +78 -0
  51. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +20 -15
  52. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +43 -42
  53. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -10
  54. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +39 -28
  55. package/dist/es/components/external/TransactionDetails/index.js +4 -0
  56. package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +35 -0
  57. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +12 -0
  58. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +8 -0
  59. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +31 -0
  60. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +6 -0
  61. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +25 -0
  62. package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +41 -0
  63. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +56 -0
  64. package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +4 -0
  65. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +12 -0
  66. package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +12 -0
  67. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +33 -0
  68. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +15 -0
  69. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +27 -0
  70. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +13 -0
  71. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +31 -0
  72. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +11 -0
  73. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +60 -0
  74. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +22 -0
  75. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +16 -0
  76. package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +21 -0
  77. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +61 -0
  78. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +50 -0
  79. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +66 -0
  80. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +6 -0
  81. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +91 -0
  82. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +6 -0
  83. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +179 -0
  84. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +8 -0
  85. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +52 -0
  86. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +6 -0
  87. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +71 -0
  88. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +112 -0
  89. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +12 -0
  90. package/dist/es/components/external/{Transactions → TransactionsOverview}/components/utils.js +13 -7
  91. package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +41 -0
  92. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +16 -0
  93. package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +37 -0
  94. package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +33 -0
  95. package/dist/es/components/external/TransactionsOverview/index.js +6 -0
  96. package/dist/es/components/external/UIElement.js +51 -39
  97. package/dist/es/components/external/index.js +8 -0
  98. package/dist/es/components/index.js +11 -0
  99. package/dist/es/components/internal/BaseButton/BaseButton.js +22 -13
  100. package/dist/es/components/internal/BaseButton/constants.js +2 -2
  101. package/dist/es/components/internal/BaseButton/index.js +4 -0
  102. package/dist/es/components/internal/BaseList/BaseList.js +8 -5
  103. package/dist/es/components/internal/BaseList/constants.js +2 -2
  104. package/dist/es/components/internal/Button/Button.js +41 -39
  105. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +8 -27
  106. package/dist/es/components/internal/Button/constants.js +16 -9
  107. package/dist/es/components/internal/Button/hooks/useButton.js +16 -12
  108. package/dist/es/components/internal/Button/index.js +4 -0
  109. package/dist/es/components/internal/Calendar/Calendar.js +21 -20
  110. package/dist/es/components/internal/Calendar/calendar/constants.js +70 -35
  111. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +554 -317
  112. package/dist/es/components/internal/Calendar/calendar/facade/index.js +46 -37
  113. package/dist/es/components/internal/Calendar/calendar/index.js +4 -0
  114. package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +46 -34
  115. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +5 -31
  116. package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +16 -14
  117. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +221 -122
  118. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +418 -238
  119. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +197 -0
  120. package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +8 -0
  121. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +63 -40
  122. package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +139 -0
  123. package/dist/es/components/internal/Calendar/calendar/timerange/index.js +4 -0
  124. package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +14 -0
  125. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
  126. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +69 -0
  127. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +27 -16
  128. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +69 -0
  129. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
  130. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +108 -0
  131. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +23 -14
  132. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +29 -21
  133. package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +15 -0
  134. package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +19 -0
  135. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
  136. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +46 -0
  137. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
  138. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +85 -0
  139. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +13 -9
  140. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +49 -0
  141. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +83 -49
  142. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +61 -38
  143. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +21 -17
  144. package/dist/es/components/internal/Calendar/calendar/utils.js +22 -15
  145. package/dist/es/components/internal/Calendar/clock/clock.js +41 -23
  146. package/dist/es/components/internal/Calendar/clock/clock.test.js +43 -0
  147. package/dist/es/components/internal/Calendar/clock/index.js +7 -0
  148. package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +60 -0
  149. package/dist/es/components/internal/Calendar/clock/today.js +57 -37
  150. package/dist/es/components/internal/Calendar/clock/today.test.js +98 -0
  151. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +12 -7
  152. package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +4 -0
  153. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +29 -27
  154. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +58 -33
  155. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +40 -30
  156. package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +4 -0
  157. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +49 -44
  158. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +115 -84
  159. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +40 -35
  160. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +45 -23
  161. package/dist/es/components/internal/Calendar/index.js +4 -0
  162. package/dist/es/components/internal/CopyText/CopyText.js +41 -0
  163. package/dist/es/components/internal/DataGrid/DataGrid.js +10 -84
  164. package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
  165. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -31
  166. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +16 -14
  167. package/dist/es/components/internal/DataGrid/components/TableBody.js +26 -9
  168. package/dist/es/components/internal/DataGrid/components/TableCells.js +25 -17
  169. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +5 -76
  170. package/dist/es/components/internal/DataGrid/index.js +4 -0
  171. package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +190 -0
  172. package/dist/es/components/internal/DatePicker/DatePicker.js +62 -45
  173. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +46 -19
  174. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +7 -0
  175. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +85 -56
  176. package/dist/es/components/internal/DatePicker/index.js +4 -0
  177. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +53 -40
  178. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +74 -51
  179. package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +45 -0
  180. package/dist/es/components/internal/ExpandableCard/constants.js +20 -11
  181. package/dist/es/components/internal/FilterBar/FilterBar.js +46 -11
  182. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +17 -15
  183. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +68 -29
  184. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +68 -60
  185. package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +4 -0
  186. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +155 -99
  187. package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +4 -0
  188. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +10 -107
  189. package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +4 -0
  190. package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +8 -0
  191. package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +4 -0
  192. package/dist/es/components/internal/FilterBar/index.js +4 -0
  193. package/dist/es/components/internal/FormFields/InputBase.js +67 -54
  194. package/dist/es/components/internal/FormFields/InputText.js +6 -6
  195. package/dist/es/components/internal/FormFields/Select/Select.js +246 -182
  196. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +73 -69
  197. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +71 -49
  198. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +41 -37
  199. package/dist/es/components/internal/FormFields/Select/constants.js +49 -27
  200. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +35 -27
  201. package/dist/es/components/internal/FormFields/Select/index.js +4 -0
  202. package/dist/es/components/internal/FormFields/index.js +18 -0
  203. package/dist/es/components/internal/FormFields/utils.js +4 -0
  204. package/dist/es/components/internal/Image/Image.js +10 -10
  205. package/dist/es/components/internal/Img/Img.js +33 -19
  206. package/dist/es/components/internal/Img/index.js +4 -0
  207. package/dist/es/components/internal/Modal/Modal.js +78 -66
  208. package/dist/es/components/internal/Modal/index.js +4 -0
  209. package/dist/es/components/internal/Pagination/Pagination.js +61 -45
  210. package/dist/es/components/internal/Pagination/components/LimitSelect.js +1 -0
  211. package/dist/es/components/internal/Pagination/constants.js +6 -4
  212. package/dist/es/components/internal/Pagination/hooks/index.js +6 -0
  213. package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +8 -7
  214. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +30 -18
  215. package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +10 -0
  216. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +21 -14
  217. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +60 -52
  218. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +11 -78
  219. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +13 -12
  220. package/dist/es/components/internal/Pagination/hooks/usePagination.js +87 -41
  221. package/dist/es/components/internal/Pagination/index.js +4 -0
  222. package/dist/es/components/internal/Pagination/utils.js +5 -5
  223. package/dist/es/components/internal/Popover/Popover.js +160 -102
  224. package/dist/es/components/internal/Popover/Popover.test.js +119 -0
  225. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +22 -18
  226. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +10 -8
  227. package/dist/es/components/internal/Popover/constants.js +16 -7
  228. package/dist/es/components/internal/Popover/utils/popoverUtil.js +51 -0
  229. package/dist/es/components/internal/Popover/utils/utils.js +28 -22
  230. package/dist/es/components/internal/SVGIcons/CheckedBox.js +5 -5
  231. package/dist/es/components/internal/SVGIcons/Checkmark.js +6 -6
  232. package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
  233. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
  234. package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
  235. package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
  236. package/dist/es/components/internal/SVGIcons/Close.js +13 -0
  237. package/dist/es/components/internal/SVGIcons/Copy.js +5 -0
  238. package/dist/es/components/internal/SVGIcons/Filter.js +11 -0
  239. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +5 -5
  240. package/dist/es/components/internal/Spinner/Spinner.js +5 -4
  241. package/dist/es/components/internal/Spinner/index.js +4 -0
  242. package/dist/es/components/internal/Tag/Tag.js +5 -19
  243. package/dist/es/components/internal/Tooltip/Tooltip.js +48 -0
  244. package/dist/es/components/internal/Tooltip/useTooltipListeners.js +31 -0
  245. package/dist/es/components/internal/Typography/Typography.js +7 -33
  246. package/dist/es/components/internal/Typography/constants.js +2 -2
  247. package/dist/es/components/utils/transactionResourceErrorCodes.js +17 -13
  248. package/dist/es/components/utils/utils.js +34 -0
  249. package/dist/es/constants.js +8 -0
  250. package/dist/es/core/Analytics/Analytics.js +63 -0
  251. package/dist/es/core/Analytics/EventsQueue.js +22 -0
  252. package/dist/es/core/Analytics/index.js +4 -0
  253. package/dist/es/core/Auth/AuthContext.js +7 -5
  254. package/dist/es/core/Auth/AuthProvider.js +24 -5
  255. package/dist/es/core/Auth/useAuthContext.js +4 -4
  256. package/dist/es/core/Context/CoreContext.js +5 -5
  257. package/dist/es/core/Context/CoreProvider.js +23 -17
  258. package/dist/es/core/Context/useCoreContext.js +4 -4
  259. package/dist/es/core/Errors/AdyenPlatformExperienceError.js +21 -0
  260. package/dist/es/core/Errors/ErrorPanel.js +19 -0
  261. package/dist/es/core/Errors/constants.js +4 -2
  262. package/dist/es/core/Localization/Localization.js +12 -146
  263. package/dist/es/core/Localization/Localization.test.js +70 -0
  264. package/dist/es/core/Localization/amount/amount-util.js +42 -19
  265. package/dist/es/core/Localization/amount/amount-util.test.js +54 -0
  266. package/dist/es/core/Localization/constants/currency-codes.js +3 -3
  267. package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
  268. package/dist/es/core/Localization/constants/locale.js +7 -5
  269. package/dist/es/core/Localization/constants/localization.js +9 -6
  270. package/dist/es/core/Localization/datetime/restamper/constants.js +29 -20
  271. package/dist/es/core/Localization/datetime/restamper/index.js +9 -0
  272. package/dist/es/core/Localization/datetime/restamper/restamper.js +44 -32
  273. package/dist/es/core/Localization/datetime/restamper/restamper.test.js +179 -0
  274. package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +21 -0
  275. package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +27 -0
  276. package/dist/es/core/Localization/datetime/restamper/utils.js +44 -26
  277. package/dist/es/core/Localization/index.js +32 -0
  278. package/dist/es/core/Localization/localization-utils.js +7 -31
  279. package/dist/es/core/Localization/translations/index.js +356 -79
  280. package/dist/es/core/Localization/utils.js +72 -44
  281. package/dist/es/core/Localization/utils.test.js +215 -0
  282. package/dist/es/core/ProcessResponse/index.js +4 -0
  283. package/dist/es/core/ProcessResponse/process-response.js +40 -0
  284. package/dist/es/core/Services/analytics/collect-id.js +37 -0
  285. package/dist/es/core/Services/analytics/log-event.js +14 -0
  286. package/dist/es/core/Services/analytics/post-telemetry.js +22 -0
  287. package/dist/es/core/Services/data-set.js +1 -0
  288. package/dist/es/core/Services/get-dataset.js +13 -0
  289. package/dist/es/core/Services/requests/endpoints.js +9 -0
  290. package/dist/es/core/Services/requests/http.js +55 -28
  291. package/dist/es/core/Services/requests/utils.js +49 -34
  292. package/dist/es/core/Services/sessions/constants.js +2 -2
  293. package/dist/es/core/Services/sessions/setup-session.js +9 -9
  294. package/dist/es/core/Session/Session.js +38 -23
  295. package/dist/es/core/Session/index.js +4 -0
  296. package/dist/es/core/Session/utils.js +5 -5
  297. package/dist/es/core/config.js +6 -2
  298. package/dist/es/core/core.js +87 -45
  299. package/dist/es/core/index.js +36 -0
  300. package/dist/es/core/utils.js +10 -8
  301. package/dist/es/hooks/element/useClickOutside.js +75 -18
  302. package/dist/es/hooks/element/useDetachedRender.js +17 -15
  303. package/dist/es/hooks/element/useFocusCursor.js +18 -13
  304. package/dist/es/hooks/element/useFocusTrap.js +90 -47
  305. package/dist/es/hooks/element/useIdentifierString.js +61 -0
  306. package/dist/es/hooks/element/usePopoverPositioner.js +5 -69
  307. package/dist/es/hooks/element/useUniqueIdentifier.js +16 -12
  308. package/dist/es/hooks/useBooleanState/index.js +4 -0
  309. package/dist/es/hooks/useBooleanState/useBooleanState.js +8 -6
  310. package/dist/es/hooks/useCommitAction/index.js +6 -0
  311. package/dist/es/hooks/useCommitAction/useCommitAction.js +38 -27
  312. package/dist/es/hooks/useDefinedValue/index.js +4 -0
  313. package/dist/es/hooks/useDefinedValue/useDefinedValue.js +16 -0
  314. package/dist/es/hooks/useFetch/useFetch.js +37 -27
  315. package/dist/es/hooks/useImageUrl/useImageUrl.js +26 -22
  316. package/dist/es/hooks/useModalDetails/useModalDetails.js +37 -28
  317. package/dist/es/hooks/useMounted/index.js +4 -0
  318. package/dist/es/hooks/useMounted/useMounted.js +14 -8
  319. package/dist/es/hooks/useReactiveState/index.js +4 -0
  320. package/dist/es/hooks/useReactiveState/useReactiveState.js +53 -27
  321. package/dist/es/hooks/useReflex/constants.js +2 -2
  322. package/dist/es/hooks/useReflex/core/reflex.js +66 -47
  323. package/dist/es/hooks/useReflex/core/reflex.test.js +170 -0
  324. package/dist/es/hooks/useReflex/core/registry.js +68 -46
  325. package/dist/es/hooks/useReflex/core/registry.test.js +114 -0
  326. package/dist/es/hooks/useReflex/core/utils.js +18 -16
  327. package/dist/es/hooks/useReflex/core/utils.test.js +59 -0
  328. package/dist/es/hooks/useReflex/errors.js +6 -6
  329. package/dist/es/hooks/useReflex/hooks/useReflex.js +12 -7
  330. package/dist/es/hooks/useReflex/index.js +8 -0
  331. package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +37 -20
  332. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +26 -20
  333. package/dist/es/index.js +45 -41
  334. package/dist/es/utils/Storage.js +21 -17
  335. package/dist/es/utils/Validator/ValidationRuleResult.js +28 -0
  336. package/dist/es/utils/Validator/Validator.js +67 -0
  337. package/dist/es/utils/Validator/Validator.test.js +27 -0
  338. package/dist/es/utils/Validator/defaultRules.js +12 -0
  339. package/dist/es/utils/Validator/index.js +4 -0
  340. package/dist/es/utils/class-name-utils.js +11 -5
  341. package/dist/es/utils/common/constants.js +10 -6
  342. package/dist/es/utils/common/index.js +59 -32
  343. package/dist/es/utils/fixedForwardRef.js +3 -3
  344. package/dist/es/utils/get-image.js +12 -11
  345. package/dist/es/utils/get-image.test.js +38 -0
  346. package/dist/es/utils/idGenerator.js +6 -3
  347. package/dist/es/utils/memoComparator/index.js +4 -0
  348. package/dist/es/utils/memoComparator/memoComparator.js +26 -17
  349. package/dist/es/utils/regex.js +6 -0
  350. package/dist/es/utils/tabbable.js +109 -70
  351. package/dist/es/utils/useForm/index.js +4 -0
  352. package/dist/es/utils/useForm/reducer.js +153 -0
  353. package/dist/es/utils/useForm/useForm.js +85 -0
  354. package/dist/es/utils/useForm/useForm.test.js +107 -0
  355. package/dist/es/utils/uuid.js +5 -5
  356. package/dist/es/utils/uuid.test.js +13 -0
  357. package/dist/es/utils/validator-utils.js +44 -3
  358. package/dist/es/utils/watchable/constants.js +2 -2
  359. package/dist/es/utils/watchable/core/Watchable.js +83 -45
  360. package/dist/es/utils/watchable/core/Watchable.test.js +103 -0
  361. package/dist/es/utils/watchable/core/helpers.js +26 -19
  362. package/dist/es/utils/watchable/core/helpers.test.js +106 -0
  363. package/dist/es/utils/watchable/core/syncEffect.js +19 -15
  364. package/dist/es/utils/watchable/core/syncEffect.test.js +103 -0
  365. package/dist/es/utils/watchable/index.js +17 -16
  366. package/dist/flags-41c36e13.mjs +83 -0
  367. package/dist/hooks.module-8565d716.mjs +161 -0
  368. package/dist/index-2c0f6175.mjs +12069 -0
  369. package/dist/index-6e47f755.mjs +231 -0
  370. package/dist/index-944be685.mjs +6609 -0
  371. package/dist/index-c88cd37e.mjs +243 -0
  372. package/dist/index-f5bc0382.mjs +155 -0
  373. package/dist/index.css +65 -0
  374. package/dist/index2.css +4 -0
  375. package/dist/jsxRuntime.module-69493d81.mjs +15 -0
  376. package/dist/magic-string.es-219c273f.mjs +1146 -0
  377. package/dist/preact.module-38e5a571.mjs +323 -0
  378. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  379. package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -0
  380. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
  381. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -0
  382. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/constants.d.ts +4 -0
  383. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/constants.d.ts.map +1 -0
  384. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/types.d.ts.map +1 -0
  385. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/BalanceAccountSelector.d.ts +1 -0
  386. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -0
  387. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/index.d.ts.map +1 -0
  388. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -0
  389. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceItem/BalanceItem.d.ts +1 -1
  390. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -0
  391. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -0
  392. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/Balances/Balances.d.ts +4 -4
  393. package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -0
  394. package/dist/types/components/external/TransactionsOverview/components/Balances/constants.d.ts +2 -0
  395. package/dist/types/components/external/TransactionsOverview/components/Balances/constants.d.ts.map +1 -0
  396. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +4 -0
  397. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -0
  398. package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +7 -0
  399. package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -0
  400. package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -0
  401. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -0
  402. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/index.d.ts.map +1 -0
  403. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -0
  404. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +1 -0
  405. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -0
  406. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -0
  407. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -0
  408. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +4 -0
  409. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -0
  410. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +14 -0
  411. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -0
  412. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/constants.d.ts +8 -0
  413. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/constants.d.ts.map +1 -0
  414. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +36 -0
  415. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -0
  416. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +7 -0
  417. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -0
  418. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +3 -0
  419. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -0
  420. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionTotalItem/types.d.ts +2 -0
  421. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -0
  422. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +11 -0
  423. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -0
  424. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionTotals/TransactionTotals.d.ts +3 -1
  425. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -0
  426. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/constants.d.ts +3 -0
  427. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/constants.d.ts.map +1 -0
  428. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +5 -0
  429. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -0
  430. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/constants.d.ts +3 -0
  431. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/constants.d.ts.map +1 -0
  432. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +5 -0
  433. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -0
  434. package/dist/types/components/external/{Transactions/components → TransactionsOverview/components/TransactionsOverview}/TransactionsOverview.d.ts +2 -1
  435. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -0
  436. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/constants.d.ts +4 -0
  437. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/constants.d.ts.map +1 -0
  438. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.d.ts +6 -0
  439. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.d.ts.map +1 -0
  440. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.d.ts +3 -0
  441. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.d.ts.map +1 -0
  442. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -0
  443. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +5 -0
  444. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -0
  445. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +6 -0
  446. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -0
  447. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +18 -0
  448. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -0
  449. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/utils.d.ts +2 -2
  450. package/dist/types/components/external/TransactionsOverview/components/utils.d.ts.map +1 -0
  451. package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -0
  452. package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -0
  453. package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +26 -0
  454. package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -0
  455. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -0
  456. package/dist/types/components/external/TransactionsOverview/index.d.ts +3 -0
  457. package/dist/types/components/external/TransactionsOverview/index.d.ts.map +1 -0
  458. package/dist/types/components/external/{Transactions → TransactionsOverview}/types.d.ts +2 -15
  459. package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -0
  460. package/dist/types/components/external/index.d.ts +1 -1
  461. package/dist/types/components/external/index.d.ts.map +1 -1
  462. package/dist/types/components/internal/BaseButton/BaseButton.d.ts.map +1 -1
  463. package/dist/types/components/internal/BaseButton/constants.d.ts +1 -1
  464. package/dist/types/components/internal/BaseButton/types.d.ts +1 -0
  465. package/dist/types/components/internal/BaseButton/types.d.ts.map +1 -1
  466. package/dist/types/components/internal/BaseList/constants.d.ts +1 -1
  467. package/dist/types/components/internal/Button/constants.d.ts +1 -1
  468. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  469. package/dist/types/components/internal/CopyText/CopyText.d.ts +6 -0
  470. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -0
  471. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -0
  472. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
  473. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
  474. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  475. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  476. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  477. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -1
  478. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  479. package/dist/types/components/internal/DataGrid/types.d.ts +2 -0
  480. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  481. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  482. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +5 -1
  483. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  484. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts +1 -1
  485. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
  486. package/dist/types/components/internal/ExpandableCard/constants.d.ts +1 -1
  487. package/dist/types/components/internal/ExpandableCard/types.d.ts +5 -0
  488. package/dist/types/components/internal/ExpandableCard/types.d.ts.map +1 -1
  489. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  490. package/dist/types/components/internal/FilterBar/filters/AmountFilter/AmountFilter.d.ts.map +1 -1
  491. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts +1 -1
  492. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  493. package/dist/types/components/internal/FilterBar/filters/AmountFilter/constants.d.ts +2 -0
  494. package/dist/types/components/internal/FilterBar/filters/AmountFilter/constants.d.ts.map +1 -0
  495. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +0 -2
  496. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
  497. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts +0 -1
  498. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -1
  499. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
  500. package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
  501. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
  502. package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts.map +1 -1
  503. package/dist/types/components/internal/FormFields/Select/constants.d.ts +1 -1
  504. package/dist/types/components/internal/FormFields/Select/types.d.ts +9 -0
  505. package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
  506. package/dist/types/components/internal/FormFields/index.d.ts +3 -18
  507. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
  508. package/dist/types/components/internal/Img/types.d.ts +1 -1
  509. package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
  510. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  511. package/dist/types/components/internal/Pagination/constants.d.ts.map +1 -1
  512. package/dist/types/components/internal/Pagination/hooks/types.d.ts +3 -3
  513. package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
  514. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  515. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
  516. package/dist/types/components/internal/Pagination/types.d.ts +2 -1
  517. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
  518. package/dist/types/components/internal/Popover/Popover.d.ts +1 -2
  519. package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
  520. package/dist/types/components/internal/Popover/constants.d.ts +3 -1
  521. package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
  522. package/dist/types/components/internal/Popover/types.d.ts +6 -0
  523. package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
  524. package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts +7 -0
  525. package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts.map +1 -0
  526. package/dist/types/components/internal/SVGIcons/Close.d.ts +4 -0
  527. package/dist/types/components/internal/SVGIcons/Close.d.ts.map +1 -0
  528. package/dist/types/components/internal/SVGIcons/Copy.d.ts +4 -0
  529. package/dist/types/components/internal/SVGIcons/Copy.d.ts.map +1 -0
  530. package/dist/types/components/internal/SVGIcons/Filter.d.ts +4 -0
  531. package/dist/types/components/internal/SVGIcons/Filter.d.ts.map +1 -0
  532. package/dist/types/components/internal/Tooltip/Tooltip.d.ts +5 -0
  533. package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -0
  534. package/dist/types/components/internal/Tooltip/types.d.ts +13 -0
  535. package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -0
  536. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts +12 -0
  537. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -0
  538. package/dist/types/components/internal/Typography/constants.d.ts +1 -1
  539. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +6 -2
  540. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
  541. package/dist/types/constants.d.ts +6 -0
  542. package/dist/types/constants.d.ts.map +1 -0
  543. package/dist/types/core/Auth/AuthContext.d.ts +2 -2
  544. package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
  545. package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
  546. package/dist/types/core/Auth/types.d.ts +9 -2
  547. package/dist/types/core/Auth/types.d.ts.map +1 -1
  548. package/dist/types/core/Auth/useAuthContext.d.ts +1 -1
  549. package/dist/types/core/Auth/useAuthContext.d.ts.map +1 -1
  550. package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +9 -0
  551. package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -0
  552. package/dist/types/core/Localization/Localization.d.ts +7 -0
  553. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  554. package/dist/types/core/Localization/constants/locale.d.ts +17 -7
  555. package/dist/types/core/Localization/constants/locale.d.ts.map +1 -1
  556. package/dist/types/core/Localization/localization-utils.d.ts +1 -0
  557. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  558. package/dist/types/core/Localization/translations/index.d.ts +17 -7
  559. package/dist/types/core/Localization/translations/index.d.ts.map +1 -1
  560. package/dist/types/core/Localization/utils.d.ts +17 -7
  561. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  562. package/dist/types/core/Services/requests/http.d.ts.map +1 -1
  563. package/dist/types/core/Services/requests/types.d.ts +2 -0
  564. package/dist/types/core/Services/requests/types.d.ts.map +1 -1
  565. package/dist/types/core/Services/requests/utils.d.ts +2 -1
  566. package/dist/types/core/Services/requests/utils.d.ts.map +1 -1
  567. package/dist/types/core/core.d.ts +1 -0
  568. package/dist/types/core/core.d.ts.map +1 -1
  569. package/dist/types/core/types.d.ts +1 -0
  570. package/dist/types/core/types.d.ts.map +1 -1
  571. package/dist/types/hooks/element/useClickOutside.d.ts +5 -1
  572. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  573. package/dist/types/hooks/element/usePopoverPositioner.d.ts +2 -2
  574. package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
  575. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
  576. package/dist/types/index.d.ts +1 -1
  577. package/dist/types/index.d.ts.map +1 -1
  578. package/dist/types/utils/types.d.ts +1 -1
  579. package/dist/types/utils/types.d.ts.map +1 -1
  580. package/dist/types-0027b7c2.mjs +9 -0
  581. package/dist/types-0aaff3aa.mjs +19 -0
  582. package/dist/types-7ad6576a.mjs +10 -0
  583. package/dist/types-e4bbd37f.mjs +13 -0
  584. package/dist/types-e6a6a3ff.mjs +9 -0
  585. package/dist/usePaginatedRecords-63a69bf1.mjs +131 -0
  586. package/dist/usePopoverPositioner-882fea89.mjs +182 -0
  587. package/dist/vendor-vi.a3ff54b1-5e924357.mjs +22389 -0
  588. package/package.json +9 -8
  589. package/dist/ModalContent-e2777391.js +0 -2
  590. package/dist/ModalContent-e2777391.js.map +0 -1
  591. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +0 -4
  592. package/dist/es/components/external/Transactions/TransactionsOverviewElement.js +0 -28
  593. package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.js +0 -9
  594. package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.scss.js +0 -4
  595. package/dist/es/components/external/Transactions/components/AmountSkeleton/constants.js +0 -6
  596. package/dist/es/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.js +0 -23
  597. package/dist/es/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.js +0 -17
  598. package/dist/es/components/external/Transactions/components/BalanceItem/BalanceItem.js +0 -35
  599. package/dist/es/components/external/Transactions/components/Balances/Balances.js +0 -49
  600. package/dist/es/components/external/Transactions/components/Balances/constants.js +0 -4
  601. package/dist/es/components/external/Transactions/components/ModalContent.js +0 -12
  602. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.js +0 -25
  603. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +0 -24
  604. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +0 -21
  605. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +0 -9
  606. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.js +0 -42
  607. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.scss.js +0 -4
  608. package/dist/es/components/external/Transactions/components/SummaryItem/constants.js +0 -8
  609. package/dist/es/components/external/Transactions/components/TransactionList.js +0 -130
  610. package/dist/es/components/external/Transactions/components/TransactionList.scss.js +0 -4
  611. package/dist/es/components/external/Transactions/components/TransactionListError/TransactionListError.js +0 -20
  612. package/dist/es/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.js +0 -48
  613. package/dist/es/components/external/Transactions/components/TransactionTotals/TransactionTotals.js +0 -66
  614. package/dist/es/components/external/Transactions/components/TransactionTotals/constants.js +0 -4
  615. package/dist/es/components/external/Transactions/components/TransactionsOverview.js +0 -151
  616. package/dist/es/components/external/Transactions/components/TransactionsOverviewContainer.js +0 -36
  617. package/dist/es/components/external/Transactions/components/TransactionsOverviewDateFilter.js +0 -61
  618. package/dist/es/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.js +0 -22
  619. package/dist/es/components/external/Transactions/hooks/useMaxWidths.js +0 -15
  620. package/dist/es/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.js +0 -29
  621. package/dist/es/components/external/Transactions/types.js +0 -4
  622. package/dist/es/components/internal/BaseButton/BaseButton.scss.js +0 -4
  623. package/dist/es/components/internal/BaseList/BaseList.scss.js +0 -4
  624. package/dist/es/components/internal/Button/Button.scss.js +0 -4
  625. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +0 -4
  626. package/dist/es/components/internal/Button/ButtonActions/types.js +0 -7
  627. package/dist/es/components/internal/Button/types.js +0 -4
  628. package/dist/es/components/internal/Calendar/Calendar.scss.js +0 -4
  629. package/dist/es/components/internal/Calendar/calendar/types.js +0 -15
  630. package/dist/es/components/internal/Calendar/types.js +0 -4
  631. package/dist/es/components/internal/DataGrid/DataGrid.scss.js +0 -4
  632. package/dist/es/components/internal/DataGrid/types.js +0 -4
  633. package/dist/es/components/internal/DatePicker/DatePicker.scss.js +0 -4
  634. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +0 -4
  635. package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +0 -4
  636. package/dist/es/components/internal/FilterBar/FilterBar.scss.js +0 -4
  637. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +0 -4
  638. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +0 -4
  639. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.scss.js +0 -4
  640. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +0 -4
  641. package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +0 -4
  642. package/dist/es/components/internal/FormFields/FormFields.scss.js +0 -4
  643. package/dist/es/components/internal/FormFields/Select/Select.scss.js +0 -4
  644. package/dist/es/components/internal/Img/Img.scss.js +0 -4
  645. package/dist/es/components/internal/Modal/Modal.scss.js +0 -4
  646. package/dist/es/components/internal/Pagination/Pagination.scss.js +0 -4
  647. package/dist/es/components/internal/Pagination/types.js +0 -5
  648. package/dist/es/components/internal/Popover/Popover.scss.js +0 -4
  649. package/dist/es/components/internal/Popover/PopoverContainer.scss.js +0 -4
  650. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +0 -4
  651. package/dist/es/components/internal/Popover/types.js +0 -6
  652. package/dist/es/components/internal/Spinner/Spinner.scss.js +0 -4
  653. package/dist/es/components/internal/Tag/Tag.scss.js +0 -4
  654. package/dist/es/components/internal/Tag/types.js +0 -4
  655. package/dist/es/components/internal/Typography/Typography.scss.js +0 -4
  656. package/dist/es/components/internal/Typography/types.js +0 -6
  657. package/dist/es/components/shared.scss.js +0 -4
  658. package/dist/es/components/types.js +0 -4
  659. package/dist/es/core/Errors/AdyenFPError.js +0 -15
  660. package/dist/es/core/Localization/translations/ar.json.js +0 -4
  661. package/dist/es/core/Localization/translations/cs-CZ.json.js +0 -4
  662. package/dist/es/core/Localization/translations/da-DK.json.js +0 -4
  663. package/dist/es/core/Localization/translations/de-DE.json.js +0 -4
  664. package/dist/es/core/Localization/translations/el-GR.json.js +0 -4
  665. package/dist/es/core/Localization/translations/en-US.json.js +0 -358
  666. package/dist/es/core/Localization/translations/es-ES.json.js +0 -255
  667. package/dist/es/core/Localization/translations/fi-FI.json.js +0 -4
  668. package/dist/es/core/Localization/translations/fr-FR.json.js +0 -4
  669. package/dist/es/core/Localization/translations/hr-HR.json.js +0 -4
  670. package/dist/es/core/Localization/translations/hu-HU.json.js +0 -4
  671. package/dist/es/core/Localization/translations/it-IT.json.js +0 -4
  672. package/dist/es/core/Localization/translations/ja-JP.json.js +0 -4
  673. package/dist/es/core/Localization/translations/ko-KR.json.js +0 -4
  674. package/dist/es/core/Localization/translations/nl-NL.json.js +0 -4
  675. package/dist/es/core/Localization/translations/no-NO.json.js +0 -4
  676. package/dist/es/core/Localization/translations/pl-PL.json.js +0 -4
  677. package/dist/es/core/Localization/translations/pt-BR.json.js +0 -4
  678. package/dist/es/core/Localization/translations/pt-PT.json.js +0 -4
  679. package/dist/es/core/Localization/translations/ro-RO.json.js +0 -4
  680. package/dist/es/core/Localization/translations/ru-RU.json.js +0 -4
  681. package/dist/es/core/Localization/translations/sk-SK.json.js +0 -4
  682. package/dist/es/core/Localization/translations/sl-SI.json.js +0 -4
  683. package/dist/es/core/Localization/translations/sv-SE.json.js +0 -4
  684. package/dist/es/core/Localization/translations/zh-CN.json.js +0 -4
  685. package/dist/es/core/Localization/translations/zh-TW.json.js +0 -4
  686. package/dist/es/external/preact/compat/dist/compat.module.js +0 -253
  687. package/dist/es/external/preact/dist/preact.module.js +0 -309
  688. package/dist/es/external/preact/hooks/dist/hooks.module.js +0 -161
  689. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -19
  690. package/dist/es/hooks/useCommitAction/types.js +0 -4
  691. package/dist/es/hooks/useModalDetails/types.js +0 -6
  692. package/dist/es/images/no-data-female.svg.js +0 -4
  693. package/dist/es/images/no-results.svg.js +0 -4
  694. package/dist/es/style/index.scss.js +0 -4
  695. package/dist/index-0c9f4def.js +0 -12
  696. package/dist/index-0c9f4def.js.map +0 -1
  697. package/dist/style.css +0 -1
  698. package/dist/types/components/external/Transactions/TransactionsOverviewElement.d.ts.map +0 -1
  699. package/dist/types/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.d.ts.map +0 -1
  700. package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts +0 -4
  701. package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts.map +0 -1
  702. package/dist/types/components/external/Transactions/components/AmountSkeleton/types.d.ts.map +0 -1
  703. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +0 -1
  704. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/index.d.ts.map +0 -1
  705. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +0 -1
  706. package/dist/types/components/external/Transactions/components/BalanceItem/BalanceItem.d.ts.map +0 -1
  707. package/dist/types/components/external/Transactions/components/BalanceItem/types.d.ts.map +0 -1
  708. package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts.map +0 -1
  709. package/dist/types/components/external/Transactions/components/Balances/constants.d.ts +0 -2
  710. package/dist/types/components/external/Transactions/components/Balances/constants.d.ts.map +0 -1
  711. package/dist/types/components/external/Transactions/components/ModalContent.d.ts.map +0 -1
  712. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +0 -1
  713. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/index.d.ts.map +0 -1
  714. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +0 -1
  715. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +0 -1
  716. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +0 -1
  717. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +0 -1
  718. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +0 -1
  719. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts +0 -4
  720. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts.map +0 -1
  721. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts +0 -6
  722. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts.map +0 -1
  723. package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts +0 -20
  724. package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts.map +0 -1
  725. package/dist/types/components/external/Transactions/components/TransactionList.d.ts +0 -6
  726. package/dist/types/components/external/Transactions/components/TransactionList.d.ts.map +0 -1
  727. package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts +0 -7
  728. package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts.map +0 -1
  729. package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts +0 -3
  730. package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +0 -1
  731. package/dist/types/components/external/Transactions/components/TransactionTotalItem/types.d.ts.map +0 -1
  732. package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts.map +0 -1
  733. package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts +0 -2
  734. package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts.map +0 -1
  735. package/dist/types/components/external/Transactions/components/TransactionsOverview.d.ts.map +0 -1
  736. package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts +0 -6
  737. package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts.map +0 -1
  738. package/dist/types/components/external/Transactions/components/TransactionsOverviewDateFilter.d.ts.map +0 -1
  739. package/dist/types/components/external/Transactions/components/utils.d.ts.map +0 -1
  740. package/dist/types/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +0 -1
  741. package/dist/types/components/external/Transactions/hooks/useMaxWidths.d.ts.map +0 -1
  742. package/dist/types/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +0 -1
  743. package/dist/types/components/external/Transactions/index.d.ts +0 -3
  744. package/dist/types/components/external/Transactions/index.d.ts.map +0 -1
  745. package/dist/types/components/external/Transactions/types.d.ts.map +0 -1
  746. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +0 -22
  747. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts.map +0 -1
  748. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +0 -2
  749. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts.map +0 -1
  750. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +0 -3
  751. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts.map +0 -1
  752. package/dist/types/components/internal/FormFields/InputDate/index.d.ts +0 -2
  753. package/dist/types/components/internal/FormFields/InputDate/index.d.ts.map +0 -1
  754. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +0 -22
  755. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts.map +0 -1
  756. package/dist/types/components/internal/FormFields/InputEmail.d.ts +0 -3
  757. package/dist/types/components/internal/FormFields/InputEmail.d.ts.map +0 -1
  758. package/dist/types/components/internal/FormFields/InputTelephone.d.ts +0 -3
  759. package/dist/types/components/internal/FormFields/InputTelephone.d.ts.map +0 -1
  760. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +0 -11
  761. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts.map +0 -1
  762. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +0 -2
  763. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts.map +0 -1
  764. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +0 -19
  765. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts.map +0 -1
  766. package/dist/types/core/Errors/AdyenFPError.d.ts +0 -8
  767. package/dist/types/core/Errors/AdyenFPError.d.ts.map +0 -1
  768. /package/dist/types/components/external/{Transactions → TransactionsOverview}/TransactionsOverviewElement.d.ts +0 -0
  769. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/AmountSkeleton/types.d.ts +0 -0
  770. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/index.d.ts +0 -0
  771. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +0 -0
  772. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceItem/types.d.ts +0 -0
  773. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/ModalContent.d.ts +0 -0
  774. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +0 -0
  775. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/index.d.ts +0 -0
  776. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +0 -0
  777. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts +0 -0
  778. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +0 -0
  779. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +0 -0
  780. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +0 -0
  781. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionsOverviewDateFilter.d.ts +0 -0
  782. /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +0 -0
  783. /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useMaxWidths.d.ts +0 -0
  784. /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +0 -0
@@ -1,12 +0,0 @@
1
- "use strict";var _l=Object.defineProperty;var yl=(t,e,n)=>e in t?_l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var O=(t,e,n)=>(yl(t,typeof e!="symbol"?e+"":e,n),n),Yi=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var l=(t,e,n)=>(Yi(t,e,"read from private field"),n?n.call(t):e.get(t)),_=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},p=(t,e,n,s)=>(Yi(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n);var Ee=(t,e,n,s)=>({set _(i){p(t,e,i,n)},get _(){return l(t,e,s)}}),b=(t,e,n)=>(Yi(t,e,"access private method"),n);const G=require("classnames"),sr="https://platform-components-external-test.adyen.com/platform-components-external/api/";function Ml(t){return t&&{test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"}[t]||sr}const Tl=t=>t.endsWith("/")?t:`${t}/`,Nl=t=>t.startsWith("/")?t:`/${t}`,Ll="v1";class Sl extends Error{constructor(n,s,i){super(s);O(this,"type");O(this,"errorCode");this.type=n,this.name=n,this.errorCode=i}}const ta=Sl;var ea=(t=>(t.NETWORK_ERROR="NETWORK_ERROR",t.CANCEL="CANCEL",t.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",t.ERROR="ERROR",t.EXPIRED_TOKEN="EXPIRED_TOKEN",t))(ea||{});const Al=t=>{switch(t){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},El=(t,e)=>{const{headers:n=[],method:s="GET"}=t;return{method:s,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n},redirect:"follow",signal:t.signal,referrerPolicy:"no-referrer-when-downgrade",...s==="POST"&&e&&{body:JSON.stringify(e)}}};function Zi({message:t,level:e,errorCode:n,type:s="NETWORK_ERROR"}){switch(e){case"silent":break;case"info":case"warn":console[e](t);break;case"error":default:throw new ta(s,t,n)}}function Cl(t){return t&&t.errorCode&&t.type&&(t.detail||t.invalidFields)&&t.status}function Dl(t){const e=new URLSearchParams;for(const n of Object.keys(t)){const s=t[n];s!=null&&(Array.isArray(s)?s.forEach(i=>e.append(n,i)):e.set(n,String(s)))}return e}function na(t,e){const{errorLevel:n,loadingContext:s="",path:i}=t,r=El(t,e),o=new URL(`${Tl(s)}${Ll}${Nl(i)}`);return t.params&&t.params.forEach((a,c)=>{const u=decodeURIComponent(a);u&&o.searchParams.append(c,u)}),fetch(o,r).then(async a=>{const c=await a.json();if(a.ok)return await c;const u=Al(a.status);if(Cl(c))return t.errorHandler?t.errorHandler(c):Zi({message:c.detail,level:n,errorCode:c.errorCode,type:u});const f=t.errorMessage||`Service at ${o} is not available`;return Zi({message:f,level:n,errorCode:String(c.status),type:u})}).catch(a=>{if(a instanceof ta)throw a;const c=t.errorMessage||`Call to ${o} failed. Error= ${a}`;Zi({message:c,level:n})})}function bl(t,e){return na({...t,method:"POST"},e)}function vl(t,e){const n="/setup";return bl({errorLevel:"fatal",errorMessage:"ERROR: Invalid ClientKey",...e??{},loadingContext:t.loadingContext,path:n,headers:{Authorization:`Bearer ${t.token}`}},{})}class Ol{constructor(e,n=window.localStorage){O(this,"prefix","adyen-fp-");O(this,"key");O(this,"storage");this.storage=n,this.key=this.prefix+e}get(){const e=this.storage.getItem(this.key);if(e)try{return JSON.parse(e)}catch{return null}return null}set(e){this.storage.setItem(this.key,JSON.stringify(e))}remove(){this.storage.removeItem(this.key)}}const xl=Ol;function Rl(t){if(!t||!t.id||!t.token)throw new Error("Invalid session");return{id:t.id,token:t.token}}class jl{constructor(e,n){O(this,"session");O(this,"storage");O(this,"loadingContext");O(this,"configuration");const s=Rl(e);this.storage=new xl("session"),this.loadingContext=n,this.session=s,this.session.token?this.storeSession():this.session=this.getStoredSession()}get id(){return this.session.id}get token(){return this.session.token}updateSessionData(e){this.session.token=e,this.storeSession()}setupSession(e){return vl(this,e).then(n=>(n.endpoints&&(this.configuration={...n}),n)).catch(n=>{throw n})}getStoredSession(){const e=this.storage.get();return this.id===(e==null?void 0:e.id)?e:this.session}storeSession(){this.storage.set({id:this.session.id,token:this.session.token})}removeStoredSession(){this.storage.remove()}}const wl=jl,Pl={AED:"د.إ",AFN:"؋",ALL:"L",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"Bs.",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BYN:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"Fr.",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KYD:"$",KZT:"₸",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTL:"Lt",LVL:"Ls",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},sa=Pl,kl={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},Wl=kl,zl=t=>Wl[t]||100,Bl=t=>!!sa[t],$l=t=>Bl(t)?sa[t]:null,Fl=(t,e)=>{const n=zl(e);return parseInt(String(t),10)/n},Ul=(t,e,n,s=!1,i={})=>{const r=t.toString(),o=Fl(r,n),a=e.replace("_","-"),c={style:"currency",currency:n,currencyDisplay:"symbol",...i};try{return s?Hl(a,c,o):o.toLocaleString(a,c)}catch{return r}},Hl=(t,e,n)=>Intl.NumberFormat(t,e).formatToParts(n).filter(s=>s.type!=="currency").reduce((s,i)=>s+i.value,"").trim(),Gl="Payment ID",Yl="Transaction type",Zl="Account",Jl="Description",Ql="Amount",Vl="Creation time",Xl="Paginated navigation",Kl="Unable to load transactions",ql="(Not set)",tu="Edit filter",eu="Balance account",nu="Balance platform",su="Select a balance platform, a balance account or an account",iu="Reset",ru="Apply",ou="Reference for beneficiary",au="Category",cu="Reference",lu="Reference ID",uu="Transactions",du="Date range",hu="From",fu="To",mu="Balance account ID",gu="Default currency",Iu="Created",pu="Status",_u="Expand content",yu="Hide content",Mu="Store details",Tu="Preauthorize with",Nu="Continue to",Lu="Telephone number",Su="Infix",Au="First name",Eu="Last name",Cu="Date of birth",Du="Shopper email",bu="Male",vu="Female",Ou="Personal details",xu="Company details",Ru="Apartment suite",ju="State",wu="Address",Pu="Province or territory",ku="City town",Wu="Zip code",zu="Invalid format expects",Bu="Country",$u="Account holder",Fu="Legal entity",Uu="Legal entity ID",Hu="Balances",Gu="Current balance",Yu="Available balance",Zu="Reserved balance",Ju="Account configuration",Qu="Account HOLDER ID",Vu="Timezone",Xu="Sales day closing time",Ku="Settlement delay days",qu="Transaction details",td="Processing information",ed="transferID",nd="Type",sd="Incomplete field",id="Legal entity details",rd="No",od="Account identifier",ad="Transfer instrument ID",cd="Overview",ld="Transfer instruments",ud="ID",dd="Legal entity type",hd="Name",fd="Mobile",md="Fax",gd="Landline",Id="Email",pd="Residential address",_d="Country of residence",yd="Legal name of the company",Md="Company type",Td="Trading name",Nd="Registration number",Ld="Tax number",Sd="Tax exempt",Ad="Registered business address",Ed="Amount",Cd="Unable to load account holder",Dd="Unable to load balance account",bd="Unable to load legal entity",vd="Unable to load transaction",Od="Dismiss",xd="Organization",Rd="individual",jd="Original amount",wd="Instructed amount",Pd="Date",kd="Structured list",Wd="Tabs",zd="Value",Bd="Filter bar",$d="Contact details",Fd="Booked",Ud="Pending",Hd="Reversed",Gd="Transactions overview",Yd="Payment method",Zd="Currency",Jd="Incoming",Qd="Expense",Vd="Account Balance",Xd="close",Kd="There are no results",qd="We did not find any transaction.",th="There are no transactions for these particular requirements.",eh="Try again, please.",nh="No data",sh="There was an unexpected error",ih="Something went wrong.",rh="We could not load the transaction overview.",oh="Try to refresh the page or come back a little later.",ah="Seems like there’s a network error.",ch="An internal error happened",lh="Please, reach out to support for assistance.",uh="The request is missing required fields or contains invalid data.",dh="Entity was not found",hh="Transaction not found for the specified Account Holder",fh="No results found, seek support.",mh="Seems like there's an internal error",gh="Refresh the page",Ih="Reach out to support",ph="No negative numbers allowed",_h="To value should be equal or greater than the From value",ia={paymentId:Gl,transactionType:Yl,account:Zl,description:Jl,amount:Ql,creationTime:Vl,paginatedNavigation:Xl,"pagination.page":"Page","pagination.previousPage":"Previous page","pagination.nextPage":"Next page",unableToLoadTransactions:Kl,notSet:ql,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}","filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status","calendar.controls":"Calendar navigation controls","calendar.previousMonth":"Previous month","calendar.nextMonth":"Next month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})","button.clearAll":"Clear all",editFilter:tu,balanceAccount:eu,balancePlatform:nu,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",toStart:su,reset:iu,apply:ru,referenceForBeneficiary:ou,"status.booked":"Booked","status.active":"Active","status.inactive":"Inactive","status.pending":"Pending","status.closed":"Closed",category:au,"category.internal":"Internal",reference:cu,referenceID:lu,transactions:uu,dateRange:du,from:hu,to:fu,balanceAccountId:mu,defaultCurrency:gu,created:Iu,status:pu,expandContent:_u,hideContent:yu,storeDetails:Mu,preauthorizeWith:Tu,continueTo:Nu,telephoneNumber:Lu,infix:Su,firstName:Au,lastName:Eu,dateOfBirth:Cu,"dateOfBirth.format":"Format",shopperEmail:Du,"select.noOptionsFound":"No options match this search","select.filter.placeholder":"Placeholder","select.provinceOrTerritory":"Province or territory","select.state":"State","select.country":"Country",male:bu,female:vu,personalDetails:Ou,"field.valid":"Valid","field.invalid":"Invalid",companyDetails:xu,"companyDetails.name":"Name","companyDetails.registrationNumber":"Registration number","payButton.redirecting":"Redirecting",apartmentSuite:Ru,state:ju,address:wu,provinceOrTerritory:Pu,cityTown:ku,zipCode:Wu,"field.title.optional":"Optional",invalidFormatExpects:zu,country:Bu,accountHolder:$u,legalEntity:Fu,legalEntityID:Uu,balances:Hu,currentBalance:Gu,availableBalance:Yu,reservedBalance:Zu,accountConfiguration:Ju,accountHolderID:Qu,timezone:Vu,salesDayClosingTime:Xu,settlementDelayDays:Ku,transactionDetails:qu,processingInformation:td,transferID:ed,type:nd,incompleteField:sd,legalEntityDetails:id,no:rd,accountIdentifier:od,transferInstrumentId:ad,overview:cd,transferInstruments:ld,id:ud,legalEntityType:dd,name:hd,mobile:fd,fax:md,landline:gd,email:Id,residentialAddress:pd,countryOfResidence:_d,legalNameOfTheCompany:yd,companyType:Md,tradingName:Td,registrationNumber:Nd,taxNumber:Ld,taxExempt:Sd,registeredBusinessAddress:Ad,"txType.Payment":"Payment","txType.capture":"Capture","txType.captureReversal":"Capture reversal","txType.Refund":"Refund","txType.refundReversal":"Refund reversal","txType.Chargeback":"Chargeback","txType.chargebackReversal":"Chargeback reversal","txType.secondChargeback":"Second chargeback","txType.ATM":"ATM","txType.Capital":"Capital","txType.Correction":"Correction","txType.Transfer":"Transfer","txType.Other":"Other","txType.atmWithdrawal":"ATM withdrawal","txType.atmWithdrawalReversal":"ATM withdrawal reversal","txType.internalTransfer":"Internal transfer","txType.manualCorrection":"Manual correction","txType.invoiceDeduction":"Invoice deduction","txType.depositCorrection":"Deposit correction","txType.bankTransfer":"Bank transfer","txType.miscCost":"Misc cost","txType.paymentCost":"Payment cost","txType.Fee":"Fee","txType.leftover":"Leftover","txType.balanceAdjustment":"Balance adjustment","txType.balanceMigration":"Balance migration","txType.balanceRollover":"Balance rollover","txType.cardTransfer":"Card transfer","txType.cashOutFee":"Cash out fee","txType.cashOutFunding":"Cash out funding","txType.cashOutInstruction":"Cash out instruction","txType.chargebackCorrection":"Chargeback correction","txType.chargebackReversalCorrection":"Chargeback reversal correction","txType.grant":"Grant","txType.installment":"Installment","txType.installmentReversal":"Installment reversal","txType.repayment":"Repayment","txType.reserveAdjustment":"Reserve adjustment",txAmount:Ed,unableToLoadAccountHolder:Cd,"txType.secondChargebackCorrection":"Second chargeback correction",unableToLoadBalanceAccount:Dd,unableToLoadLegalEntity:bd,unableToLoadTransaction:vd,dismiss:Od,organization:xd,individual:Rd,originalAmount:jd,instructedAmount:wd,date:Pd,structuredList:kd,tabs:Wd,value:zd,filterBar:Bd,default:"Default",contactDetails:$d,Booked:Fd,Pending:Ud,Reversed:Hd,transactionsOverview:Gd,"rangePreset.custom":"Custom","rangePreset.last7Days":"Last 7 days","rangePreset.lastMonth":"Last month","rangePreset.lastWeek":"Last week","rangePreset.thisMonth":"This month","rangePreset.thisWeek":"This week","rangePreset.yearToDate":"Year to date",paymentMethod:Yd,currency:Zd,incoming:Jd,expense:Qd,accountBalance:Vd,closeIconLabel:Xd,thereAreNoResults:Kd,weDidNotFindAnyTransaction:qd,thereAreNoTransactionsForThisRequirements:th,tryAgainPlease:eh,noData:nh,thereWasAnUnexpectedError:sh,somethingWentWrong:ih,weCouldNotLoadTheTransactionsOverview:rh,tryToRefreshThePageOrComeBackLater:oh,seemsLikeThereIsANetworkError:ah,anInternalErrorHappened:ch,pleaseReachOutToSupportForAssistance:lh,theRequestIsMissingRequiredFieldsOrContainsInvalidData:uh,entityWasNotFound:dh,entityWasNotFoundDetail:hh,noResultsFoundSeekSupport:fh,seemsLikeThereIsAndInternalError:mh,refreshThePage:gh,reachOutToSupport:Ih,noNegativeNumbersAllowed:ph,secondValueShouldBeGreaterThanTheFirstOne:_h,export:"Export"},ve="en-US",yh=/^[a-z]{2}-[A-Z]{2}$/,ra=ia,Mh=["ar","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","fi-FI","fr-FR","hr-HR","hu-HU","it-IT","ja-JP","ko-KR","nl-NL","no-NO","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","sv-SE","zh-CN","zh-TW"],Th={year:"numeric",month:"2-digit",day:"2-digit"},Ps=Mh,Nh=["constructor","i18n","watch","preferredTranslations"],xr=Object.create,ir=()=>!0,Di={defineProperty:ir,set:ir},_t=Object.freeze([]),z=Object.freeze(xr(null)),bi=Function.prototype.bind.bind(Function.prototype.call),Z=bi(xr,void 0,null),vi=bi(xr,void 0),oa=bi(Object.prototype.toString),ce=bi(Object.prototype.hasOwnProperty),vt=new Proxy(()=>{},Di),tt=(t,e=!1)=>({writable:e===!0,enumerable:!0,value:t}),Lh=t=>t,$n=(t,e)=>typeof t=="boolean"?t:!!e,ln=(t,e,n)=>Math.max(t,Math.min(e,n)),aa=(t,e)=>t+Math.floor((e-t)/2),Rs=(t,e)=>(t%e+e)%e,X=t=>typeof t=="function",zn=t=>typeof t=="number",Ye=t=>zn(t)&&1/t===0,Vn=t=>zn(t)&&t===~~t,Bn=(t,e)=>t===e||!(t===t||e===e),Fn=(t,e,n)=>t.includes(e)?e:e==null?t[0]:t.includes(n)?n:t[0],Rr=t=>t&&typeof t!="boolean"&&(t!=null&&t.value)?!!(t!=null&&t.value):!!t,Sh=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:Ah,BASE_LOCALE:Eh,SYSTEM_TIMEZONE:ks,SYSTEM_TIMEZONE_FORMATTER:nn}=(()=>{const t="en-US",e="2-digit",n="numeric",o=Object.freeze({year:n,month:"short",day:n,hour:e,minute:e,second:e,fractionalSecondDigits:3,timeZoneName:"longOffset"});let a,c;try{c=new Intl.DateTimeFormat(t,o),a=c.resolvedOptions().timeZone}catch{a=void 0}return{BASE_FORMAT_OPTIONS:o,BASE_LOCALE:t,SYSTEM_TIMEZONE:a,SYSTEM_TIMEZONE_FORMATTER:c}})(),Ch=/\+(?=-)|([+-]00:00)/g,Dh=new RegExp("(?<=^\\D?)(\\d)$"),bh=([t,e])=>(Math.abs(t*60)+e)*(t<0?-1:1),vh=t=>Object.freeze([Math.floor(t/60),Rs(t,60)]),Oh=t=>parseInt(t,10)||0,xh=t=>`GMT+${vh(t).map(s=>`${s}`.replace(Dh,"0$1")).join(":")}`.replace(Ch,""),rr=t=>{var n;const e=((n=t==null?void 0:t.match(Sh))==null?void 0:n[0].split(":",2).map(Oh))??_t;return bh(e.concat(0,0).slice(0,2))},Rh=(t,e=nn)=>{const n=rr(nn==null?void 0:nn.format(t));return rr(e==null?void 0:e.format(t))-n},ca=(t,e,n=1)=>{const{offset:s,timestamp:i}=t(e),r=new Date(i);return r.setMinutes(r.getMinutes()-s*n)},Xs=(t,e)=>ca(t,e,1),la=(t,e)=>ca(t,e,-1),jh=(()=>{let t,e;ks!==void 0&&(t=function(){return this.TIMEZONE},e=function(s){if(s!=null)try{const i=new Intl.DateTimeFormat(Eh,{...Ah,timeZone:s}),r=i.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=i}catch{}else this.TIMEZONE=ks,this.formatter=nn});function n(...s){if(s.length===0)return n.call(this,Date.now());const i=s[0],r=new Date(i).getTime(),o=this.formatter??nn;return Object.freeze({formatted:o==null?void 0:o.format(r),offset:Rh(r,o),timestamp:r})}return()=>{const s={TIMEZONE:ks},i=e==null?void 0:e.bind(s),r=Z({current:{get:t==null?void 0:t.bind(s),set:i},system:{value:ks}});return Object.defineProperties(n.bind(s),{tz:{get:()=>r,set:i}})}})(),Oi=jh,ua={},da={},ha={},fa={},ma={},wh="ID de pago",Ph="Tipo de transacción",kh="Cuenta",Wh="Descripción",zh="Cantidad",Bh="Hora de creación",$h="Navegación paginada",Fh="No se pueden cargar las transacciones",Uh="(No establecido)",Hh="Editar filtro",Gh="Cuenta de saldo",Yh="Plataforma de saldo",Zh="Seleccione una plataforma de saldo, una cuenta de saldo o una cuenta",Jh="Limpiar",Qh="Aplicar",Vh="Referencia para el beneficiario",Xh="Categoría",Kh="Referencia",qh="Transacciones",tf="Rango de fechas",ef="Desde",nf="Hasta",sf="ID de cuenta de saldo",rf="Moneda predeterminada",of="Creado",af="Estado",cf="Expandir contenido",lf="Ocultar contenido",uf="Detalles de la tienda",df="Preautorizar con",hf="Continuar a",ff="Número de teléfono",mf="Infix",gf="Nombre",If="Apellido",pf="Fecha de nacimiento",_f="Correo electrónico del comprador",yf="Masculino",Mf="Femenino",Tf="Detalles personales",Nf="Detalles de la empresa",Lf="Apartamento",Sf="Estado",Af="Dirección",Ef="Provincia o territorio",Cf="Ciudad",Df="Código postal",bf="Formato inválido, se espera",vf="País",Of="Titular de la cuenta",xf="Entidad legal",Rf="ID de la entidad legal",jf="Saldos",wf="Saldo actual",Pf="Saldo disponible",kf="Saldo reservado",Wf="Configuración de la cuenta",zf="ID del titular de la cuenta",Bf="Zona horaria",$f="Hora de cierre del día de ventas",Ff="Días de demora en la liquidación",Uf="Detalles de la transacción",Hf="Información de procesamiento",Gf="ID de transferencia",Yf="Tipo",Zf="Campo incompleto",Jf="Detalles de la entidad legal",Qf="No",Vf="Identificador de cuenta",Xf="ID del instrumento de transferencia",Kf="Resumen",qf="Instrumentos de transferencia",tm="ID",em="Tipo de entidad legal",nm="Nombre",sm="Móvil",im="Fax",rm="Teléfono fijo",om="Correo electrónico",am="Dirección residencial",cm="País de residencia",lm="Nombre legal de la empresa",um="Tipo de empresa",dm="Nombre comercial",hm="Número de registro",fm="Número de identificación fiscal",mm="Exento de impuestos",gm="Dirección registrada de la empresa",Im="Incapaz de cargar el titular de la cuenta",pm="Incapaz de cargar la cuenta de saldo",_m="Incapaz de cargar la entidad legal",ym="Incapaz de cargar la transacción",Mm="Descartar",Tm="Organización",Nm="individual",Lm="Monto original",Sm="Monto instruido",Am="Fecha",Em="Lista estructurada",Cm="Pestañas",Dm="Valor",bm="Barra de filtro",ga={paymentId:wh,transactionType:Ph,account:kh,description:Wh,amount:zh,creationTime:Bh,paginatedNavigation:$h,"pagination.page":"Página","pagination.previousPage":"Página anterior","pagination.nextPage":"Página siguiente",unableToLoadTransactions:Fh,notSet:Uh,"filter.date.since":"Desde {date}","filter.date.until":"Hasta {date}","calendar.previousMonth":"Mes anterior","calendar.nextMonth":"Próximo mes","button.resetAll":"Restablecer todo",editFilter:Hh,balanceAccount:Gh,balancePlatform:Yh,toStart:Zh,clear:Jh,apply:Qh,referenceForBeneficiary:Vh,"status.booked":"Reservado","status.active":"Activo","status.inactive":"Inactivo","status.pending":"Pendiente",category:Xh,"category.internal":"Interno",reference:Kh,transactions:qh,dateRange:tf,from:ef,to:nf,balanceAccountId:sf,defaultCurrency:rf,created:of,status:af,expandContent:cf,hideContent:lf,storeDetails:uf,preauthorizeWith:df,continueTo:hf,telephoneNumber:ff,infix:mf,firstName:gf,lastName:If,dateOfBirth:pf,"dateOfBirth.format":"Formato",shopperEmail:_f,"select.noOptionsFound":"No se encontraron opciones","select.filter.placeholder":"Marcador de posición","select.provinceOrTerritory":"Provincia o territorio","select.state":"Estado","select.country":"País",male:yf,female:Mf,personalDetails:Tf,"field.valid":"Válido","field.invalid":"Inválido",companyDetails:Nf,"companyDetails.name":"Nombre","companyDetails.registrationNumber":"Número de registro","payButton.redirecting":"Redireccionando",apartmentSuite:Lf,state:Sf,address:Af,provinceOrTerritory:Ef,cityTown:Cf,zipCode:Df,"field.title.optional":"Opcional",invalidFormatExpects:bf,country:vf,accountHolder:Of,legalEntity:xf,legalEntityID:Rf,balances:jf,currentBalance:wf,availableBalance:Pf,reservedBalance:kf,accountConfiguration:Wf,accountHolderID:zf,timezone:Bf,salesDayClosingTime:$f,settlementDelayDays:Ff,transactionDetails:Uf,processingInformation:Hf,transferID:Gf,type:Yf,incompleteField:Zf,legalEntityDetails:Jf,no:Qf,accountIdentifier:Vf,transferInstrumentId:Xf,overview:Kf,transferInstruments:qf,id:tm,legalEntityType:em,name:nm,mobile:sm,fax:im,landline:rm,email:om,residentialAddress:am,countryOfResidence:cm,legalNameOfTheCompany:lm,companyType:um,tradingName:dm,registrationNumber:hm,taxNumber:fm,taxExempt:mm,registeredBusinessAddress:gm,"txType.payment":"Pago","txType.capture":"Captura","txType.captureReversal":"Reversión de captura","txType.refund":"Reembolso","txType.refundReversal":"Reversión de reembolso","txType.chargeback":"Contracargo","txType.chargebackReversal":"Reversión de contracargo","txType.secondChargeback":"Segundo contracargo","txType.atmWithdrawal":"Retiro de cajero automático","txType.atmWithdrawalReversal":"Reversión de retiro de cajero automático","txType.internalTransfer":"Transferencia interna","txType.manualCorrection":"Corrección manual","txType.invoiceDeduction":"Deducción de factura","txType.depositCorrection":"Corrección de depósito","txType.bankTransfer":"Transferencia bancaria","txType.miscCost":"Costo misceláneo","txType.paymentCost":"Costo de pago","txType.fee":"Cuota","txType.leftover":"Sobrante","txType.balanceAdjustment":"Ajuste de saldo",unableToLoadAccountHolder:Im,unableToLoadBalanceAccount:pm,unableToLoadLegalEntity:_m,unableToLoadTransaction:ym,dismiss:Mm,organization:Tm,individual:Nm,originalAmount:Lm,instructedAmount:Sm,date:Am,structuredList:Em,tabs:Cm,value:Dm,filterBar:bm,default:"Predeterminado"},Ia={},pa={},_a={},ya={},Ma={},Ta={},Na={},La={},Sa={},Aa={},Ea={},Ca={},Da={},ba={},va={},Oa={},xa={},Ra={},ja={},jr={en_US:ia},vm={ar:ua},Om={cs_CZ:da},xm={da_DK:ha},Rm={de_DE:fa},jm={el_GR:ma},wm={es_ES:ga},Pm={fi_FI:Ia},km={fr_FR:pa},Wm={hr_HR:_a},zm={hu_HU:ya},Bm={it_IT:Ma},$m={ja_JP:Ta},Fm={ko_KR:Na},Um={nl_NL:La},Hm={no_NO:Sa},Gm={pl_PL:Aa},Ym={pt_BR:Ea},Zm={pt_PT:Ca},Jm={ro_RO:Da},Qm={ru_RU:ba},Vm={sk_SK:va},Xm={sl_SI:Oa},Km={sv_SE:xa},qm={zh_CN:Ra},tg={zh_TW:ja},eg={zh_TW:ja,zh_CN:Ra,sv_SE:xa,sl_SI:Oa,sk_SK:va,ru_RU:ba,ro_RO:Da,pt_PT:Ca,pt_BR:Ea,pl_PL:Aa,no_NO:Sa,nl_NL:La,ko_KR:Na,ja_JP:Ta,it_IT:Ma,hu_HU:ya,hr_HR:_a,fr_FR:pa,fi_FI:Ia,es_ES:ga,el_GR:ma,de_DE:fa,da_DK:ha,cs_CZ:da,ar:ua},Ks=t=>t.substring(0,2).toLowerCase();function ng(t,e){if(!t)return null;const n=Ks(t);return e.find(s=>Ks(s)===n)||null}function wr(t){const e=t.replace("_","-");if(yh.test(e))return e;const[n,s]=e.split("-");if(!n||!s)return null;const i=`${n.toLowerCase()}-${s.toUpperCase()}`;return i.length===5?i:null}function Pr(t,e){const n=t.trim();if(!n||n.length<1||n.length>5)return ve;const s=wr(n);return s&&e.indexOf(s)>-1?s:ng(s??n,[...e])}function sg(t={},e){return Object.keys(t).reduce((n,s)=>{const i=wr(s)||Pr(s,e);return i&&t[s]&&(n[i]=t[s]),n},{})}const Ji=(t,e)=>t.replace(/%{(\w+)}/g,(n,s)=>(e==null?void 0:e[s])||""),ig=(t,e,n={values:{},count:0})=>{const s=n.count??0,i=`${e}__${s}`;if(ce(t,i)&&t[i])return Ji(t[i],n.values);const r=`${e}__plural`;return ce(t,r)&&s>1&&t[r]?Ji(t[r],n.values):ce(t,e)&&t[e]?Ji(t[e],n.values):null},rg=async(t,e,n={})=>{const s=e??{"en-US":jr.en_US},i=Pr(t,Object.keys(s))||ve,r=s[i];return{...ra,...r,...!!n[t]&&n[t]}};function og(){let t=this.locale,e=t,n=this.supportedLocales;return Z({load:{value:s=>rg(t,this.preferredTranslations,s)},locale:{get:()=>t,set:s=>{e=s,t=wr(s)||Pr(s,n)||ve}},supportedLocales:{get:()=>t,set(s){n=s,this.locale=e}}})}function ag(){const t={};for(const[e,n]of Object.entries(Object.getOwnPropertyDescriptors(xi.prototype)))Nh.includes(e)||(X(n.get)?t[e]={get:n.get.bind(this)}:X(n.value)?t[e]={value:n.value.bind(this)}:t[e]={get:()=>this[e]});return t}const cg=(()=>{const t=n=>n,e=Z();return n=>{if(n===void 0)return t;const s=[];return i=>(...r)=>{let o=e;try{return s.push(i),i(...r)}catch(a){throw o=a}finally{s.pop(),s.length===0&&o===e&&n()}}}})(),lg=cg,ug=(t={})=>{const e={};for(const n of Object.keys(t)){const{get:s,value:i}=Object.getOwnPropertyDescriptor(t,n);e[n]={enumerable:!0,get:s||(X(i)?i.bind(t):()=>i)}}return Z(e)},dg=()=>{const t={idle:vt,resume:vt},e={};for(const n of Object.keys(t))e[n]={get:()=>t[n],set:s=>{s==null?t[n]=vt:X(s)&&s!==t[n]&&(t[n]=s)}};return Z(e)},wa=Symbol();var xe,Re,xt,fn,At;class hg{constructor(e={}){_(this,xe,void 0);_(this,Re,void 0);_(this,xt,void 0);_(this,fn,new WeakMap);_(this,At,new Map);p(this,xe,dg()),p(this,Re,ug(e)),this.notifyWatchers=this.notifyWatchers.bind(this),this.watch=this.watch.bind(this)}get idle(){return l(this,At).size===0}get idleCallbacks(){return l(this,xe)}get snapshot(){return l(this,xt)??Object.freeze({...l(this,Re)})}notifyWatchers(e){if(l(this,At).size===0)return;if(e===wa)return l(this,At).forEach((s,i)=>i(e)),!0;const n=l(this,xt);p(this,xt,Object.freeze({...l(this,Re)}));for(const s of Object.keys(l(this,xt)))if(!Bn(l(this,xt)[s],n[s]))return l(this,At).forEach((i,r)=>r(l(this,xt))),!0;return!1}watch(e){if(!e)return vt;let n=l(this,fn).get(e);const s=l(this,At).get(e)||0,i=this.idle;if(!n){let r=()=>{const o=l(this,At).get(e)||0;o===1?(r=void 0,l(this,fn).delete(e),l(this,At).delete(e),l(this,At).size===0&&(p(this,xt,void 0),l(this,xe).idle())):o>1&&l(this,At).set(e,o-1)};l(this,fn).set(e,n=()=>r==null?void 0:r())}return l(this,At).set(e,s+1),i&&(p(this,xt,Object.freeze({...l(this,Re)})),l(this,xe).resume()),e(l(this,xt)),n}}xe=new WeakMap,Re=new WeakMap,xt=new WeakMap,fn=new WeakMap,At=new WeakMap;const fg=t=>{const e=new hg(t);return Z({callback:{value:e.idleCallbacks},idle:{get:()=>e.idle},notify:{value:e.notifyWatchers},snapshot:{get:()=>e.snapshot},watch:{value:e.watch}})},Ze=Object.defineProperties(fg,{UNWATCH:{value:wa},withSyncEffect:{value:lg}});var Gt,ss,is,mn,rs,ne,os,je,we,gn,Pe,as,or;class xi{constructor(e=ve,n){_(this,as);_(this,Gt,ve);_(this,ss,Ks(l(this,Gt)));_(this,is,Ps);_(this,mn,void 0);_(this,rs,ra);_(this,ne,og.call(this));_(this,os,Promise.resolve());_(this,je,void 0);_(this,we,void 0);_(this,gn,Ze({timestamp:()=>performance.now()}));_(this,Pe,Oi());O(this,"watch",l(this,gn).watch.bind(void 0));O(this,"i18n",Z(ag.call(this)));O(this,"preferredTranslations");this.watch(vt),this.preferredTranslations=n&&n.reduce((s,i)=>({...s,...i}),{[ve]:jr.en_US}),this.locale=e}get customTranslations(){return l(this,mn)??{}}set customTranslations(e){let n,s=[...Ps];if(e!=null){n=sg(e,Ps);const i=Object.keys(n);s=[...Ps,...i].filter((r,o,a)=>a.indexOf(r)===o)}l(this,ne).supportedLocales=s,b(this,as,or).call(this,n)}get languageCode(){return l(this,ss)}get lastRefreshTimestamp(){return l(this,gn).snapshot.timestamp}get locale(){return l(this,Gt)}set locale(e){if(e!=null){if(l(this,ne).locale=e,l(this,Gt)===l(this,ne).locale)return;b(this,as,or).call(this,l(this,mn))}else this.locale=ve}get ready(){return l(this,os)}get supportedLocales(){return l(this,is)}get timezone(){return l(this,Pe).tz.current}set timezone(e){l(this,Pe).tz=e}get(e,n){const s=ig(l(this,rs),e,n);return s!==null?s:e}amount(e,n,s){const{hideCurrency:i,...r}=s||{},o=Ul(e,l(this,Gt),n,i,{...r,currencyDisplay:"symbol",signDisplay:"never"});return e<0?`- ${o}`:o}date(e,n={}){const s={...Th,timeZone:l(this,Pe).tz.current,...n};return new Date(e).toLocaleDateString(l(this,Gt),s)}fullDate(e){const n=Xs(l(this,Pe),e),[,s,i,r,o]=new Date(n).toString().split(/\s+/g);return`${s} ${i}, ${r}, ${o}`}}Gt=new WeakMap,ss=new WeakMap,is=new WeakMap,mn=new WeakMap,rs=new WeakMap,ne=new WeakMap,os=new WeakMap,je=new WeakMap,we=new WeakMap,gn=new WeakMap,Pe=new WeakMap,as=new WeakSet,or=function(e){l(this,we)===void 0&&p(this,os,new Promise(i=>{p(this,we,()=>{i(l(this,je)),p(this,je,p(this,we,void 0))})}));const n=()=>{var i;l(this,je)===s&&((i=l(this,we))==null||i.call(this))},s=p(this,je,(async()=>{p(this,rs,await l(this,ne).load(e)),p(this,Gt,l(this,ne).locale),p(this,is,l(this,ne).supportedLocales),p(this,mn,e),p(this,ss,Ks(l(this,Gt))),l(this,gn).notify()})());s.then(n).catch(i=>{n(),console.error(i)})};const mg="test";class Pa{constructor(e){O(this,"session");O(this,"modules");O(this,"options");O(this,"components",[]);O(this,"localization");O(this,"loadingContext");O(this,"onSessionCreate");O(this,"sessionSetupError");O(this,"updateSession",async()=>{var e;try{if(this.options.onSessionCreate)return this.session=new wl(await this.options.onSessionCreate(),this.loadingContext),await((e=this.session)==null?void 0:e.setupSession(this.options)),await this.update({}),this}catch(n){return this.options.onError&&this.options.onError(n),this.sessionSetupError=!0,await this.update(),this}});O(this,"update",(e=z,n=!1)=>(this.setOptions(e),this.initialize(n).then(()=>(this.components.forEach(s=>s.update(this.getPropsForComponent(this.options))),this))));O(this,"remove",e=>(this.components=this.components.filter(n=>n._id!==e._id),e.unmount(),this));O(this,"registerComponent",e=>{this.components.push(e)});O(this,"setOptions",e=>{var n,s,i;return this.options={...this.options,...e},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(s=this.options)==null?void 0:s.translations,this.localization.timezone=(i=this.options)==null?void 0:i.timezone,this.onSessionCreate=this.options.onSessionCreate,this.modules={i18n:this.localization.i18n},this});this.options={environment:mg,...e},this.localization=new xi(e.locale,e.availableTranslations),this.loadingContext=Ml(this.options.environment),this.setOptions(e)}async initialize(e=!1){return!this.sessionSetupError&&(e||!this.session&&this.onSessionCreate)&&await this.updateSession(),Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(e){return{...e,i18n:this.modules.i18n,modules:this.modules,session:this.session,loadingContext:this.loadingContext,_parentInstance:this}}}O(Pa,"version",{version:"0.1.2",revision:"dd1e06a",branch:"main",buildId:"@adyen/adyen-fp-web-0a8cca55-50c0-42f1-8c0c-a713f57c131e"});const ka=Pa;var Ri,R,Wa,De,ro,za,ar,Ba,un={},$a=[],gg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ji=Array.isArray;function Te(t,e){for(var n in e)t[n]=e[n];return t}function Fa(t){var e=t.parentNode;e&&e.removeChild(t)}function Qe(t,e,n){var s,i,r,o={};for(r in e)r=="key"?s=e[r]:r=="ref"?i=e[r]:o[r]=e[r];if(arguments.length>2&&(o.children=arguments.length>3?Ri.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)o[r]===void 0&&(o[r]=t.defaultProps[r]);return zs(t,o,s,i,null)}function zs(t,e,n,s,i){var r={type:t,props:e,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Wa};return i==null&&R.vnode!=null&&R.vnode(r),r}function Q(t){return t.children}function le(t,e){this.props=t,this.context=e}function Xn(t,e){if(e==null)return t.__?Xn(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__d||n.__e;return typeof t.type=="function"?Xn(t):null}function Ua(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Ua(t)}}function cr(t){(!t.__d&&(t.__d=!0)&&De.push(t)&&!qs.__r++||ro!==R.debounceRendering)&&((ro=R.debounceRendering)||za)(qs)}function qs(){var t,e,n,s,i,r,o,a,c;for(De.sort(ar);t=De.shift();)t.__d&&(e=De.length,s=void 0,i=void 0,r=void 0,a=(o=(n=t).__v).__e,(c=n.__P)&&(s=[],i=[],(r=Te({},o)).__v=o.__v+1,kr(c,o,r,n.__n,c.ownerSVGElement!==void 0,o.__h!=null?[a]:null,s,a??Xn(o),o.__h,i),Za(s,o,i),o.__e!=a&&Ua(o)),De.length>e&&De.sort(ar));qs.__r=0}function Ha(t,e,n,s,i,r,o,a,c,u,f){var d,m,g,I,y,L,T,S,C,v=0,M=s&&s.__k||$a,x=M.length,w=x,k=e.length;for(n.__k=[],d=0;d<k;d++)(I=n.__k[d]=(I=e[d])==null||typeof I=="boolean"||typeof I=="function"?null:typeof I=="string"||typeof I=="number"||typeof I=="bigint"?zs(null,I,null,null,I):ji(I)?zs(Q,{children:I},null,null,null):I.__b>0?zs(I.type,I.props,I.key,I.ref?I.ref:null,I.__v):I)!=null?(I.__=n,I.__b=n.__b+1,(S=Ig(I,M,T=d+v,w))===-1?g=un:(g=M[S]||un,M[S]=void 0,w--),kr(t,I,g,i,r,o,a,c,u,f),y=I.__e,(m=I.ref)&&g.ref!=m&&(g.ref&&Wr(g.ref,null,I),f.push(m,I.__c||y,I)),y!=null&&(L==null&&(L=y),(C=g===un||g.__v===null)?S==-1&&v--:S!==T&&(S===T+1?v++:S>T?w>k-T?v+=S-T:v--:v=S<T&&S==T-1?S-T:0),T=d+v,typeof I.type!="function"||S===T&&g.__k!==I.__k?typeof I.type=="function"||S===T&&!C?I.__d!==void 0?(c=I.__d,I.__d=void 0):c=y.nextSibling:c=Ya(t,y,c):c=Ga(I,c,t),typeof n.type=="function"&&(n.__d=c))):(g=M[d])&&g.key==null&&g.__e&&(g.__e==c&&(g.__=s,c=Xn(g)),lr(g,g,!1),M[d]=null);for(n.__e=L,d=x;d--;)M[d]!=null&&(typeof n.type=="function"&&M[d].__e!=null&&M[d].__e==n.__d&&(n.__d=M[d].__e.nextSibling),lr(M[d],M[d]))}function Ga(t,e,n){for(var s,i=t.__k,r=0;i&&r<i.length;r++)(s=i[r])&&(s.__=t,e=typeof s.type=="function"?Ga(s,e,n):Ya(n,s.__e,e));return e}function Ve(t,e){return e=e||[],t==null||typeof t=="boolean"||(ji(t)?t.some(function(n){Ve(n,e)}):e.push(t)),e}function Ya(t,e,n){return n==null||n.parentNode!==t?t.insertBefore(e,null):e==n&&e.parentNode!=null||t.insertBefore(e,n),e.nextSibling}function Ig(t,e,n,s){var i=t.key,r=t.type,o=n-1,a=n+1,c=e[n];if(c===null||c&&i==c.key&&r===c.type)return n;if(s>(c!=null?1:0))for(;o>=0||a<e.length;){if(o>=0){if((c=e[o])&&i==c.key&&r===c.type)return o;o--}if(a<e.length){if((c=e[a])&&i==c.key&&r===c.type)return a;a++}}return-1}function pg(t,e,n,s,i){var r;for(r in n)r==="children"||r==="key"||r in e||ti(t,r,null,n[r],s);for(r in e)i&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===e[r]||ti(t,r,e[r],n[r],s)}function oo(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||gg.test(e)?n:n+"px"}function ti(t,e,n,s,i){var r;t:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof s=="string"&&(t.style.cssText=s=""),s)for(e in s)n&&e in n||oo(t.style,e,"");if(n)for(e in n)s&&n[e]===s[e]||oo(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?s?n.u=s.u:(n.u=Date.now(),t.addEventListener(e,r?co:ao,r)):t.removeEventListener(e,r?co:ao,r);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function ao(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(R.event?R.event(t):t)}function co(t){return this.l[t.type+!0](R.event?R.event(t):t)}function kr(t,e,n,s,i,r,o,a,c,u){var f,d,m,g,I,y,L,T,S,C,v,M,x,w,k,D=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,a=e.__e=n.__e,e.__h=null,r=[a]),(f=R.__b)&&f(e);t:if(typeof D=="function")try{if(T=e.props,S=(f=D.contextType)&&s[f.__c],C=f?S?S.props.value:f.__:s,n.__c?L=(d=e.__c=n.__c).__=d.__E:("prototype"in D&&D.prototype.render?e.__c=d=new D(T,C):(e.__c=d=new le(T,C),d.constructor=D,d.render=yg),S&&S.sub(d),d.props=T,d.state||(d.state={}),d.context=C,d.__n=s,m=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),D.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Te({},d.__s)),Te(d.__s,D.getDerivedStateFromProps(T,d.__s))),g=d.props,I=d.state,d.__v=e,m)D.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(D.getDerivedStateFromProps==null&&T!==g&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(T,C),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(T,d.__s,C)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=T,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(W){W&&(W.__=e)}),v=0;v<d._sb.length;v++)d.__h.push(d._sb[v]);d._sb=[],d.__h.length&&o.push(d);break t}d.componentWillUpdate!=null&&d.componentWillUpdate(T,d.__s,C),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(g,I,y)})}if(d.context=C,d.props=T,d.__P=t,d.__e=!1,M=R.__r,x=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,M&&M(e),f=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do d.__d=!1,M&&M(e),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++x<25);d.state=d.__s,d.getChildContext!=null&&(s=Te(Te({},s),d.getChildContext())),m||d.getSnapshotBeforeUpdate==null||(y=d.getSnapshotBeforeUpdate(g,I)),Ha(t,ji(k=f!=null&&f.type===Q&&f.key==null?f.props.children:f)?k:[k],e,n,s,i,r,o,a,c,u),d.base=e.__e,e.__h=null,d.__h.length&&o.push(d),L&&(d.__E=d.__=null)}catch(W){e.__v=null,(c||r!=null)&&(e.__e=a,e.__h=!!c,r[r.indexOf(a)]=null),R.__e(W,e,n)}else r==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=_g(n.__e,e,n,s,i,r,o,c,u);(f=R.diffed)&&f(e)}function Za(t,e,n){for(var s=0;s<n.length;s++)Wr(n[s],n[++s],n[++s]);R.__c&&R.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(r){r.call(i)})}catch(r){R.__e(r,i.__v)}})}function _g(t,e,n,s,i,r,o,a,c){var u,f,d,m=n.props,g=e.props,I=e.type,y=0;if(I==="svg"&&(i=!0),r!=null){for(;y<r.length;y++)if((u=r[y])&&"setAttribute"in u==!!I&&(I?u.localName===I:u.nodeType===3)){t=u,r[y]=null;break}}if(t==null){if(I===null)return document.createTextNode(g);t=i?document.createElementNS("http://www.w3.org/2000/svg",I):document.createElement(I,g.is&&g),r=null,a=!1}if(I===null)m===g||a&&t.data===g||(t.data=g);else{if(r=r&&Ri.call(t.childNodes),f=(m=n.props||un).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!a){if(r!=null)for(m={},y=0;y<t.attributes.length;y++)m[t.attributes[y].name]=t.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(pg(t,g,m,i,a),d)e.__k=[];else if(Ha(t,ji(y=e.props.children)?y:[y],e,n,s,i&&I!=="foreignObject",r,o,r?r[0]:n.__k&&Xn(n,0),a,c),r!=null)for(y=r.length;y--;)r[y]!=null&&Fa(r[y]);a||("value"in g&&(y=g.value)!==void 0&&(y!==t.value||I==="progress"&&!y||I==="option"&&y!==m.value)&&ti(t,"value",y,m.value,!1),"checked"in g&&(y=g.checked)!==void 0&&y!==t.checked&&ti(t,"checked",y,m.checked,!1))}return t}function Wr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(s){R.__e(s,n)}}function lr(t,e,n){var s,i;if(R.unmount&&R.unmount(t),(s=t.ref)&&(s.current&&s.current!==t.__e||Wr(s,null,e)),(s=t.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(r){R.__e(r,e)}s.base=s.__P=null,t.__c=void 0}if(s=t.__k)for(i=0;i<s.length;i++)s[i]&&lr(s[i],e,n||typeof t.type!="function");n||t.__e==null||Fa(t.__e),t.__=t.__e=t.__d=void 0}function yg(t,e,n){return this.constructor(t,n)}function sn(t,e,n){var s,i,r,o;R.__&&R.__(t,e),i=(s=typeof n=="function")?null:n&&n.__k||e.__k,r=[],o=[],kr(e,t=(!s&&n||e).__k=Qe(Q,null,[t]),i||un,un,e.ownerSVGElement!==void 0,!s&&n?[n]:i?null:e.firstChild?Ri.call(e.childNodes):null,r,!s&&n?n:i?i.__e:e.firstChild,s,o),Za(r,t,o)}function Ja(t,e){var n={__c:e="__cC"+Ba++,__:t,Consumer:function(s,i){return s.children(i)},Provider:function(s){var i,r;return this.getChildContext||(i=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(a){a.__e=!0,cr(a)})},this.sub=function(o){i.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),a&&a.call(o)}}),s.children}};return n.Provider.__=n.Consumer.contextType=n}Ri=$a.slice,R={__e:function(t,e,n,s){for(var i,r,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,s||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},Wa=0,le.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Te({},this.state),typeof t=="function"&&(t=t(Te({},n),this.props)),t&&Te(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),cr(this))},le.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),cr(this))},le.prototype.render=Q,De=[],za=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ar=function(t,e){return t.__v.__b-e.__v.__b},qs.__r=0,Ba=0;var Mg=0;function h(t,e,n,s,i,r){var o,a,c={};for(a in e)a=="ref"?o=e[a]:c[a]=e[a];var u={type:t,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Mg,__source:i,__self:r};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)c[a]===void 0&&(c[a]=o[a]);return R.vnode&&R.vnode(u),u}const Qa=Ja({token:"",endpoints:z}),Tg=({token:t,endpoints:e,children:n,updateCore:s,sessionSetupError:i})=>h(Qa.Provider,{value:{token:t,endpoints:e,updateCore:s,sessionSetupError:i},children:Ve(n)}),Ng=Tg;var Xe,et,Qi,lo,wn=0,Va=[],Bs=[],uo=R.__b,ho=R.__r,fo=R.diffed,mo=R.__c,go=R.unmount;function js(t,e){R.__h&&R.__h(et,t,wn||e),wn=0;var n=et.__H||(et.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Bs}),n.__[t]}function $(t){return wn=1,wi(qa,t)}function wi(t,e,n){var s=js(Xe++,2);if(s.t=t,!s.__c&&(s.__=[n?n(e):qa(void 0,e),function(a){var c=s.__N?s.__N[0]:s.__[0],u=s.t(c,a);c!==u&&(s.__N=[u,s.__[1]],s.__c.setState({}))}],s.__c=et,!et.u)){var i=function(a,c,u){if(!s.__c.__H)return!0;var f=s.__c.__H.__.filter(function(m){return m.__c});if(f.every(function(m){return!m.__N}))return!r||r.call(this,a,c,u);var d=!1;return f.forEach(function(m){if(m.__N){var g=m.__[0];m.__=m.__N,m.__N=void 0,g!==m.__[0]&&(d=!0)}}),!(!d&&s.__c.props===a)&&(!r||r.call(this,a,c,u))};et.u=!0;var r=et.shouldComponentUpdate,o=et.componentWillUpdate;et.componentWillUpdate=function(a,c,u){if(this.__e){var f=r;r=void 0,i(a,c,u),r=f}o&&o.call(this,a,c,u)},et.shouldComponentUpdate=i}return s.__N||s.__}function B(t,e){var n=js(Xe++,3);!R.__s&&zr(n.__H,e)&&(n.__=t,n.i=e,et.__H.__h.push(n))}function Xa(t,e){var n=js(Xe++,4);!R.__s&&zr(n.__H,e)&&(n.__=t,n.i=e,et.__h.push(n))}function j(t){return wn=5,N(function(){return{current:t}},[])}function Lg(t,e,n){wn=6,Xa(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function N(t,e){var n=js(Xe++,7);return zr(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function E(t,e){return wn=8,N(function(){return t},e)}function Ka(t){var e=et.context[t.__c],n=js(Xe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(et)),e.props.value):t.__}function Sg(){for(var t;t=Va.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach($s),t.__H.__h.forEach(ur),t.__H.__h=[]}catch(e){t.__H.__h=[],R.__e(e,t.__v)}}R.__b=function(t){et=null,uo&&uo(t)},R.__r=function(t){ho&&ho(t),Xe=0;var e=(et=t.__c).__H;e&&(Qi===et?(e.__h=[],et.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Bs,n.__N=n.i=void 0})):(e.__h.forEach($s),e.__h.forEach(ur),e.__h=[],Xe=0)),Qi=et},R.diffed=function(t){fo&&fo(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Va.push(e)!==1&&lo===R.requestAnimationFrame||((lo=R.requestAnimationFrame)||Ag)(Sg)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Bs&&(n.__=n.__V),n.i=void 0,n.__V=Bs})),Qi=et=null},R.__c=function(t,e){e.some(function(n){try{n.__h.forEach($s),n.__h=n.__h.filter(function(s){return!s.__||ur(s)})}catch(s){e.some(function(i){i.__h&&(i.__h=[])}),e=[],R.__e(s,n.__v)}}),mo&&mo(t,e)},R.unmount=function(t){go&&go(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(s){try{$s(s)}catch(i){e=i}}),n.__H=void 0,e&&R.__e(e,n.__v))};var Io=typeof requestAnimationFrame=="function";function Ag(t){var e,n=function(){clearTimeout(s),Io&&cancelAnimationFrame(e),setTimeout(t)},s=setTimeout(n,100);Io&&(e=requestAnimationFrame(n))}function $s(t){var e=et,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),et=e}function ur(t){var e=et;t.__c=t.__(),et=e}function zr(t,e){return!t||t.length!==e.length||e.some(function(n,s){return n!==t[s]})}function qa(t,e){return typeof e=="function"?e(t):e}const tc=Ja({i18n:new xi().i18n,loadingContext:"",commonProps:{}}),Eg=(t=!1)=>{const[e,n]=$(t),s=E(r=>n(r),[]),i=E(()=>n(r=>!r),[]);return[e,s,i]},ee=Eg,Cg=({i18n:t=new xi().i18n,children:e,commonProps:n,loadingContext:s})=>{const[i,r]=ee(!1),o=N(()=>n||{},[n]),a=N(()=>s??"",[s]);return B(()=>{(async()=>{await(t==null?void 0:t.ready),r(!0)})().catch()},[]),i?h(tc.Provider,{value:{i18n:t,commonProps:o,loadingContext:a},children:Ve(e)}):null},Dg=Cg;class bg{constructor(){O(this,"events",{});O(this,"on",(e,n)=>{var s;this.events[e]=this.events[e]||[],(s=this.events[e])==null||s.push(n)});O(this,"off",(e,n)=>{this.events[e]&&(this.events[e]=this.events[e].reduce((s,i)=>(i!==n&&s.push(i),s),[]))});O(this,"emit",(e,n)=>{var s;this.events[e]&&((s=this.events[e])==null||s.forEach(i=>{i(n)}))})}}const vg=bg;function ec(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Og=t=>!!(t==null||/^[\s]*$/.test(t)),Ne=t=>typeof t=="string"||t instanceof String;var Xo;class dr{constructor(e){O(this,"_id",`${(Xo=this.constructor)==null?void 0:Xo.type}-${ec()}`);O(this,"props");O(this,"state");O(this,"defaultProps",{});O(this,"_node");O(this,"_component");O(this,"eventEmitter",new vg);O(this,"_parentInstance");O(this,"sessionSetupError");O(this,"loadingContext");O(this,"i18n");O(this,"session");this.props=this.formatProps({...this==null?void 0:this.defaultProps,...e}),this._parentInstance=this.props._parentInstance,this._node=null,this.state={},this.loadingContext=this.props.core.loadingContext,this.i18n=this.props.core.modules.i18n,this.session=this.props.core.session,this.props.core.registerComponent(this)}formatProps(e){return e}formatData(){return{}}setState(e){this.state={...this.state,...e}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(e){var s,i;let n;if(Ne(e)?n=document.querySelector(e):n=e,!n)throw new Error("Component could not mount. Root node was not found.");return this._node?this.unmount():this.props.modules&&this.props.modules.analytics&&this.props.modules.analytics.send({containerWidth:n&&n.offsetWidth,component:((s=this.constructor)==null?void 0:s.analyticsType)??((i=this.constructor)==null?void 0:i.type),flavor:"components"}),this._node=n,this._component=this.render(),sn(this._component,n),this}update(e){return this.props=this.formatProps({...this.props,...e}),this.sessionSetupError=this.props.core.sessionSetupError,this.session=this.props.core.session,this._component=this.render(),this._node&&sn(this._component,this._node),this}remount(e){if(!this._node)throw new Error("Component is not mounted.");const n=e||this.render();return sn(n,this._node,void 0),this}unmount(){return this._node&&sn(null,this._node),this}remove(){this.unmount(),this._parentInstance&&this._parentInstance.remove(this)}}O(dr,"type"),O(dr,"analyticsType");const xg=dr,Rg=({name:t,loadingContext:e,imageFolder:n="",parentFolder:s="",extension:i,size:r="",subFolder:o=""})=>`${e}images/${n}${o}${s}${t}${r}.${i}`,jg=({loadingContext:t=sr,extension:e="svg",...n})=>s=>{const i={extension:e,loadingContext:t,imageFolder:"logos/",parentFolder:"",name:s,...n};return Rg(i)},wg=jg;class Pg extends xg{constructor(n){super(n);O(this,"componentRef");O(this,"elementRef");O(this,"onContactSupport");O(this,"componentToRender");O(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.componentRef=null,this.elementRef=this.props&&this.props.elementRef||this,this.componentToRender=null,this.sessionSetupError=this.props.core.sessionSetupError}get isValid(){return!!this.state.isValid}get icon(){var n;return wg({loadingContext:this.loadingContext})((n=this.constructor)==null?void 0:n.type)}get displayName(){var n;return this.props.name||((n=this.constructor)==null?void 0:n.type)}get accessibleName(){return this.displayName}get type(){return this.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,s){var i,r;return(i=this.componentRef)!=null&&i.setStatus?this.componentRef.setStatus(n,s):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){var n,s,i;return h(Ng,{endpoints:((s=(n=this.session)==null?void 0:n.configuration)==null?void 0:s.endpoints)||z,token:((i=this.session)==null?void 0:i.token)??"",updateCore:this.props.core.update.bind(this.props.core),sessionSetupError:this.sessionSetupError,children:h(Dg,{i18n:this.i18n,loadingContext:this.loadingContext,children:this.componentToRender&&h(Q,{children:this.componentToRender()})})})}}const nc=Pg;const kg=()=>Ka(Qa),Pi=kg,Wg=(()=>{let t,e;return n=>(n!==t&&(t=n,e=(s,i,r)=>na({...s,headers:{...s.headers,Authorization:`Bearer ${t}`},method:i},r)),e)})();function zg(){const{token:t,updateCore:e}=Pi();return{httpProvider:N(()=>{const s=Wg(t);return async(i,r,o)=>{try{return await s(i,r,o)}catch(a){if(a.type===ea.EXPIRED_TOKEN)return await(e==null?void 0:e(z,!0)),s(i,r,o);throw a}}},[t,e])}}const Bg=()=>Ka(tc),q=Bg,ws=t=>{const{endpoints:e}=Pi(),{loadingContext:n}=q(),{httpProvider:s}=zg();return E(async(...i)=>{const r=i[0],o=i[1]||z,a=e[t],c=o.path;let u=a.url;if(c){const f=Object.keys(c)[0];u=u.replace(`{${f}}`,c[f])}return s({loadingContext:n,path:u,...r,params:o.query&&Dl(o.query)},a.method??"GET")},[t,e,s,n])};function ki({fetchOptions:t={keepPrevData:!0},queryFn:e,params:n}){j(new Map);const s=j(!1),i={error:void 0,data:void 0,isFetching:t.enabled!==!1},r=(u,f)=>{switch(f.type){case"loading":return{...i,isFetching:!0,data:t.keepPrevData?u.data:void 0};case"fetched":return{...i,data:f.payload,isFetching:!1};case"error":return{...i,error:f.payload,isFetching:!1};default:return u}},[o,a]=wi(r,i),c=E(async()=>{a({type:"loading"});try{if(s.current)return;const u=await e();a({type:"fetched",payload:u})}catch(u){if(s.current)return;a({type:"error",payload:u})}},[a,e]);return B(()=>(s.current=!1,t.enabled!==!1&&c(),()=>{s.current=!0}),[t.enabled,c]),o}var Nt=(t=>(t.PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t.LINK="link",t))(Nt||{});const po=/^\s+|\s+(?=\s|$)/g,dn=(t,e)=>(e?typeof e=="string"?e:(e==null?void 0:e.value)??"":"").replace(po,"")||t.replace(po,"")||void 0,ei=(t,e,n)=>G(dn("",n),dn(dn("",e)||"",t)),Br=(t,e=[],n=[])=>G([...n,...e==null?void 0:e.map(s=>t?`${t}--${s}`:s)]),$r=(t,e,n,s,i)=>{const r=E(a=>{a.preventDefault(),s||i==null||i(a)},[s,i]);return{classes:N(()=>Br(n,e,[n,t]),[e,t]),click:r}},ue="adyen-fp-button",hr=`${ue}-actions`,$g=`${ue}--icon`,Fg=`${ue}--icon-content`,Ug=`${hr}__container-wrapper`,Hg=`${ue}__label`,Gg=`${ue}__icon-right`,Yg=`${ue}__icon-left`;var F=(t=>(t.CAPTION="caption",t.BODY="body",t.SUBTITLE="subtitle",t.TITLE="title",t))(F||{}),te=(t=>(t.WIDE="wide",t.STRONGER="stronger",t.STRONGER_WIDE="stronger-wide",t.STRONGEST="strongest",t.STRONGEST_WIDE="strongest-wide",t.MEDIUM="m",t.LARGE="l",t.MOBILE="mobile",t))(te||{}),Pn=(t=>(t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.DIV="div",t.PARAGRAPH="p",t.SPAN="span",t))(Pn||{});const Lt="adyen-fp-typography";function sc(t,e){for(var n in e)t[n]=e[n];return t}function fr(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var s in e)if(s!=="__source"&&t[s]!==e[s])return!0;return!1}function _o(t){this.props=t}function ft(t,e){function n(i){var r=this.props.ref,o=r==i.ref;return!o&&r&&(r.call?r(null):r.current=null),e?!e(this.props,i)||!o:fr(this.props,i)}function s(i){return this.shouldComponentUpdate=n,Qe(t,i)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s.__f=!0,s}(_o.prototype=new le).isPureReactComponent=!0,_o.prototype.shouldComponentUpdate=function(t,e){return fr(this.props,t)||fr(this.state,e)};var yo=R.__b;R.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),yo&&yo(t)};var Zg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vt(t){function e(n){var s=sc({},n);return delete s.ref,t(s,n.ref||null)}return e.$$typeof=Zg,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Jg=R.__e;R.__e=function(t,e,n,s){if(t.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Jg(t,e,n,s)};var Mo=R.unmount;function ic(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),t.__c.__H=null),(t=sc({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(s){return ic(s,e,n)})),t}function rc(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(s){return rc(s,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Fs(){this.__u=0,this.t=null,this.__b=null}function oc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Qg(t){var e,n,s;function i(r){if(e||(e=t()).then(function(o){n=o.default||o},function(o){s=o}),s)throw s;if(!n)throw e;return Qe(n,r)}return i.displayName="Lazy",i.__f=!0,i}function Ws(){this.u=null,this.o=null}R.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Mo&&Mo(t)},(Fs.prototype=new le).__c=function(t,e){var n=e.__c,s=this;s.t==null&&(s.t=[]),s.t.push(n);var i=oc(s.__v),r=!1,o=function(){r||(r=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--s.__u){if(s.state.__a){var u=s.state.__a;s.__v.__k[0]=rc(u,u.__c.__P,u.__c.__O)}var f;for(s.setState({__a:s.__b=null});f=s.t.pop();)f.forceUpdate()}},c=e.__h===!0;s.__u++||c||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(o,o)},Fs.prototype.componentWillUnmount=function(){this.t=[]},Fs.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),s=this.__v.__k[0].__c;this.__v.__k[0]=ic(this.__b,n,s.__O=s.__P)}this.__b=null}var i=e.__a&&Qe(Q,null,t.fallback);return i&&(i.__h=null),[Qe(Q,null,e.__a?null:t.children),i]};var To=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Vg(t){return this.getChildContext=function(){return t.context},t.children}function Xg(t){var e=this,n=t.i;e.componentWillUnmount=function(){sn(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(s){this.childNodes.push(s),e.i.appendChild(s)},insertBefore:function(s,i){this.childNodes.push(s),e.i.appendChild(s)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),e.i.removeChild(s)}}),sn(Qe(Vg,{context:e.context},t.__v),e.l)}function Kg(t,e){var n=Qe(Xg,{__v:t,i:e});return n.containerInfo=e,n}(Ws.prototype=new le).__a=function(t){var e=this,n=oc(e.__v),s=e.o.get(t);return s[0]++,function(i){var r=function(){e.props.revealOrder?(s.push(i),To(e,t,s)):i()};n?n(r):r()}},Ws.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ve(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ws.prototype.componentDidUpdate=Ws.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){To(t,n,e)})};var qg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,tI=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,eI=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nI=/[A-Z0-9]/g,sI=typeof document<"u",iI=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};le.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(le.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var No=R.event;function rI(){}function oI(){return this.cancelBubble}function aI(){return this.defaultPrevented}R.event=function(t){return No&&(t=No(t)),t.persist=rI,t.isPropagationStopped=oI,t.isDefaultPrevented=aI,t.nativeEvent=t};var cI={enumerable:!1,configurable:!0,get:function(){return this.class}},Lo=R.vnode;R.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,s=e.type,i={};for(var r in n){var o=n[r];if(!(r==="value"&&"defaultValue"in n&&o==null||sI&&r==="children"&&s==="noscript"||r==="class"||r==="className")){var a=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&o===!0?o="":a==="ondoubleclick"?r="ondblclick":a!=="onchange"||s!=="input"&&s!=="textarea"||iI(n.type)?a==="onfocus"?r="onfocusin":a==="onblur"?r="onfocusout":eI.test(r)?r=a:s.indexOf("-")===-1&&tI.test(r)?r=r.replace(nI,"-$&").toLowerCase():o===null&&(o=void 0):a=r="oninput",a==="oninput"&&i[r=a]&&(r="oninputCapture"),i[r]=o}}s=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ve(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),s=="select"&&i.defaultValue!=null&&(i.value=Ve(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",cI)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=qg,Lo&&Lo(t)};var So=R.__r;R.__r=function(t){So&&So(t),t.__c};var Ao=R.diffed;R.diffed=function(t){Ao&&Ao(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value)};function lI({el:t,className:e,stronger:n,strongest:s,variant:i,medium:r,large:o,wide:a,children:c}){const u=t||"p",f=N(()=>({[`${Lt}--${F.CAPTION}`]:i===F.CAPTION,[`${Lt}--${F.CAPTION}-${te.WIDE}`]:i===F.CAPTION&&a,[`${Lt}--${F.CAPTION}-${te.STRONGER}`]:i===F.CAPTION&&n,[`${Lt}--${F.BODY}`]:i===F.BODY,[`${Lt}--${F.BODY}-${te.WIDE}`]:i===F.BODY&&a,[`${Lt}--${F.BODY}-${te.STRONGER}`]:i===F.BODY&&n,[`${Lt}--${F.BODY}-${te.STRONGEST}`]:i===F.BODY&&s,[`${Lt}--${F.SUBTITLE}`]:i===F.SUBTITLE,[`${Lt}--${F.SUBTITLE}-${te.STRONGER}`]:i===F.SUBTITLE&&n,[`${Lt}--${F.TITLE}`]:i===F.TITLE&&!r&&!o,[`${Lt}--${F.TITLE}-${te.MEDIUM}`]:i===F.TITLE&&r,[`${Lt}--${F.TITLE}-${te.LARGE}`]:i===F.TITLE&&o}),[i,a,n,r,o,s]);return h(u,{className:G([`${Lt}`,f,e]),children:c})}const Jt=ft(lI);function uI({variant:t=Nt.PRIMARY,disabled:e=!1,onClick:n,classNameModifiers:s=[],iconLeft:i,iconRight:r,type:o="button",children:a,className:c,iconButton:u=!1,...f},d){const m=N(()=>dn("",c)||"",[c]),g=N(()=>Rr(e),[e]),{classes:I,click:y}=$r(m,[...s,t],ue,g,n);return h("button",{className:u?`${$g} ${I}`:I,type:o,disabled:e,onClick:y,ref:d,...f,children:u?h("div",{className:`${Fg}`,children:a}):h(Q,{children:[i&&h("span",{className:Yg,children:i}),h(Jt,{className:Hg,el:Pn.SPAN,variant:F.BODY,stronger:!0,children:a}),r&&h("span",{className:Gg,children:r})]})})}const Qt=Vt(uI);function dI(t){const{i18n:e}=q();return h("div",{"aria-label":e.get("filterBar"),className:"adyen-fp-filter-bar",children:[t.children,t.canResetFilters&&!!t.resetFilters&&h(Qt,{variant:Nt.TERTIARY,onClick:t.resetFilters,children:e.get("button.clearAll")})]})}var U=(t=>(t.CATEGORIES="categories",t.CURRENCIES="currencies",t.STATUSES="statuses",t.CREATED_SINCE="createdSince",t.CREATED_UNTIL="createdUntil",t.MIN_AMOUNT="minAmount",t.MAX_AMOUNT="maxAmount",t))(U||{});function hI(t){return!(!t||!("nodeType"in t))}function fI({title:t,children:e,classNameModifiers:n=[],isOpen:s,onClose:i,isDismissible:r=!0,headerWithBorder:o=!0,size:a="fluid",...c}){const u=j(null),{i18n:f}=q(),d=E(g=>{var I;r&&s&&hI(g.target)&&!((I=u==null?void 0:u.current)!=null&&I.contains(g.target))&&i()},[r,s,i]),m=E(g=>{g.key==="Escape"&&s&&r&&i()},[s,r,i]);return B(()=>(s?window.addEventListener("keydown",m):window.removeEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[s,m]),h(Q,{children:s&&h("div",{className:G("adyen-fp-modal-wrapper",n.map(g=>`adyen-fp-modal-wrapper--${g}`),{"adyen-fp-modal-wrapper--open":s,"adyen-fp-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,onClick:d,...c,children:h("div",{className:G("adyen-fp-modal",{"adyen-fp-modal--fluid":a==="fluid","adyen-fp-modal--small":a==="small","adyen-fp-modal--large":a==="large","adyen-fp-modal--extra-large":a==="extra-large","adyen-fp-modal--full-screen":a==="full-screen"}),ref:u,children:[h("div",{className:G("adyen-fp-modal__header",{"adyen-fp-modal__header--with-title":t,"adyen-fp-modal__header--with-border-bottom":o}),children:[t&&h("div",{className:"adyen-fp-modal__header__title",children:t}),r&&h(Qt,{onClick:i,variant:Nt.TERTIARY,className:"adyen-fp-modal__header-icon","aria-label":f.get("dismiss"),children:h("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6569 4.07112C14.0474 3.6806 14.0474 3.04743 13.6569 2.65691C13.2664 2.26638 12.6332 2.26638 12.2427 2.65691L8.00005 6.89954L3.75745 2.65694C3.36692 2.26641 2.73376 2.26641 2.34324 2.65694C1.95271 3.04746 1.95271 3.68063 2.34324 4.07115L6.58584 8.31375L2.34319 12.5564C1.95266 12.9469 1.95266 13.5801 2.34319 13.9706C2.73371 14.3611 3.36688 14.3611 3.7574 13.9706L8.00005 9.72796L12.2427 13.9706C12.6333 14.3612 13.2664 14.3612 13.6569 13.9706C14.0475 13.5801 14.0475 12.947 13.6569 12.5564L9.41426 8.31375L13.6569 4.07112Z",fill:"#000"})})})]}),h("div",{className:"adyen-fp-modal__content",children:e})]})})})}const mI=({inline:t=!1,size:e="large"})=>h("div",{className:`adyen-fp-spinner__wrapper ${t?"adyen-fp-spinner__wrapper--inline":""}`,children:h("div",{className:`adyen-fp-spinner adyen-fp-spinner--${e}`})}),gI=mI;function II(t){return"callback"in t}function pI(t){const[e,n]=$(null),s=E(o=>{var a;return o&&II(t[o.selection.type])?{callback:(a=t==null?void 0:t[o.selection.type])!=null&&a.callback?c=>{var u,f;return(f=(u=t[o.selection.type])==null?void 0:u.callback)==null?void 0:f.call(u,{showModal:()=>n(o),...c})}:()=>{var c;return((c=t[o.selection.type])==null?void 0:c.showDetails)&&n(o)}}:(n(o),{})},[t]),i=E(()=>n(null),[]),r=N(()=>{const o={};for(const a in t){const c=t[a];o[a]=!(c!=null&&c.showDetails)||!!c.callback}return o},[t]);return{selectedDetail:e,updateDetails:s,detailsToShow:r,resetDetails:i}}function Eo({children:t,...e}){return h("td",{role:"cell",className:"adyen-fp-data-grid__cell",...e,children:t})}const ac=({columns:t,customCells:e,item:n})=>h(Q,{children:t.map(({key:s})=>e!=null&&e[s]?h(Eo,{"aria-labelledby":String(s),children:e[s]({key:s,value:n[s],item:n})},s):h(Eo,{"aria-labelledby":String(s),children:n[s]},s))}),_I=({data:t,columns:e,customCells:n})=>h(Q,{children:t==null?void 0:t.map(s=>h("tr",{className:"adyen-fp-data-grid__row",children:h(ac,{columns:e,customCells:n,item:s})},s))}),Kn=Symbol("_ref");class cc extends Error{}class yI extends cc{}class MI extends cc{}function Fr(t){if(!X(t))throw new MI}const TI=t=>{try{if(X(t)&&ce(t,"current")&&ce(t,Kn)&&!Bn(t,t[Kn])){const e=t.actions.get(z),n=t.actions.size;return e===void 0&&Number.isInteger(n)&&n>=0}}catch{}return!1},qn=t=>TI(t)?qn(t[Kn]):t,NI=(()=>{const t=(s,i)=>{const r=s.get(i);if(!r)throw new yI;return r},e=(s,i,r)=>{let o,a;const c=qn(i);try{o=t(s,c)}catch{Fr(r)}if(o)[,a]=o;else{const u=X(c),f=u?g=>{c(m=g)}:g=>{c.current=g,m=c.current},d=g=>{if(a.size===0)return;const I=m;if(f(g),!Bn(m,I))for(const[y]of a)y(m,I)};let m=u?null:c.current;s.set(c,o=[d,a=new Map]),Object.defineProperties(d,{[Kn]:{value:c},actions:{value:Z({get:{value:a.get.bind(a)},size:{get:()=>a.size}})},current:{get:()=>m,set:u?void 0:d}})}return r&&a.set(r,1+(a.get(r)||0)),o[0]},n=(s,i,r)=>{const o=qn(i),[,a]=t(s,o),c=a.get(r)||0;c===1?a.delete(r):c>1&&a.set(r,c-1),a.size===0&&s.delete(o)};return()=>{const s=new WeakMap;return Z({bind:tt(e.bind(void 0,s)),unbind:tt(n.bind(void 0,s))})}})(),Vi=NI(),LI=t=>{Fr(t);const e=new WeakMap([[t,1]]),n=i=>{if(Bn(s,i))return;const r=s;t(s=i,r)};let s=null;return Object.defineProperties(n,{[Kn]:{value:n},actions:{value:Z({get:{value:e.get.bind(e)},size:{value:1}})},current:{get:()=>s,set:n}})},SI=()=>{let t,e=null,n,s=!1;const i=c=>{t=void 0,e=null,n=c,s=!1},r=()=>{s||(o(),s=!0)},o=()=>{try{if(!e)return;Vi.unbind(e,n)}catch{}};return Z({action:{get:()=>n},reflex:{get:()=>t},release:{value:r},update:{value:(c,u)=>{Fr(c),s&&i(c);const f=u??null;if(n===c&&e===f){if(t)return}else if(e){if(Bn(qn(e),qn(f))){t=Vi.bind(e,c),o(),n=c;return}o()}n=c,t=(e=f)?Vi.bind(e,n):LI(n)}}})},AI=(t,e)=>{const n=j(SI());return Xa(()=>n.current.release,[]),N(()=>(n.current.update(t,e),n.current.reflex),[t,e])},de=AI;var P=(t=>(t.ARROW_DOWN="ArrowDown",t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight",t.ARROW_UP="ArrowUp",t.BACKSPACE="Backspace",t.END="End",t.ENTER="Enter",t.ESCAPE="Escape",t.HOME="Home",t.PAGE_DOWN="PageDown",t.PAGE_UP="PageUp",t.SPACE="Space",t.TAB="Tab",t))(P||{});const EI=({totalRows:t})=>{const[e,n]=wi((o,a)=>{const c=t;if(c>1){const u=a.index;if(u<c&&u>=0)return a.type==="ACTIVE"?Object.freeze({...o,index:a.index??0,activeIndex:a.index}):Object.freeze({...o,index:a.index??0,activeIndex:-1})}return o},OI),s=de(E(o=>{var c;if(!(o instanceof Element))return;const a=Number((c=o.dataset)==null?void 0:c.index);e.activeIndex===-1&&a===0||a===e.index?o.setAttribute("tabindex","0"):o.setAttribute("tabindex","-1"),a===e.activeIndex&&(o==null||o.focus())},[e.activeIndex,e.index])),i=E(o=>{var c,u;if(!(((c=o.target)==null?void 0:c.localName)==="tr")){o.code===P.ARROW_LEFT&&n({type:"ACTIVE",index:e.index});return}switch(o.code){case P.ARROW_DOWN:case P.ARROW_UP:n({type:"ACTIVE",index:o.code===P.ARROW_DOWN?e.index+1:e.index-1});break;case P.HOME:n({type:"ACTIVE",index:0});break;case P.END:n({type:"ACTIVE",index:t-1});break;case P.ENTER:(u=o.currentTarget)==null||u.click();break;default:return}o.stopPropagation()},[t,e.index]),r=E(o=>a=>{var u;(!(((u=a.target)==null?void 0:u.localName)==="tr")||e.index===-1)&&n({type:"CURRENT",index:o})},[e.index]);return{listeners:{onKeyDownCapture:i,onFocusCapture:r},ref:s,activeIndex:e.activeIndex,currentIndex:e.index}},CI=({data:t,columns:e,onRowClick:n,customCells:s})=>{const i=E(c=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?c[n.retrievedField]:c),[n]),{currentIndex:r,listeners:o,ref:a}=EI({totalRows:(t==null?void 0:t.length)??0});return h(Q,{children:t==null?void 0:t.map((c,u)=>h("tr",{ref:a,"aria-selected":u===r,"data-index":u,className:"adyen-fp-data-grid__row adyen-fp-data-grid__row--clickable",onClick:i(c),onFocusCapture:o.onFocusCapture(u),onKeyDownCapture:o.onKeyDownCapture,children:h(ac,{columns:e,customCells:s,item:c})},c))})};var ni=(t=>(t.CENTER="center",t.RIGHT="right",t))(ni||{});const DI=({columnsNumber:t,loading:e,emptyMessageDisplay:n})=>{const s=Array.from({length:10},(r,o)=>o),i=Array.from({length:t},(r,o)=>o);return h(Q,{children:[s.map((r,o)=>h("tr",{className:"adyen-fp-data-grid__row",children:i.map((a,c)=>h("td",{className:"adyen-fp-data-grid__cell adyen-fp-data-grid__skeleton-cell",children:h("span",{className:G({"adyen-fp-data-grid__skeleton-cell-content adyen-fp-data-grid__skeleton-cell-content--loading":e,"adyen-fp-data-grid__empty-cell":!e})})},`adyen-fp-data-grid-skeleton-cell-${c}`))},`adyen-fp-data-grid-skeleton-row-${o}`)),!e&&n&&n]})};const bI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04LjcgMi4xIDYuNmMuMi42LjguOCAxLjQuNy42LS4xIDEtLjcuOC0xLjJsLTEuMy02LjggMi45LTQuOC01LjktNS41LTc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cgNC45bDIuNS0xNC4zIDIzLjctMS41LTkuNy0xMi41Ii8+CiAgICA8cGF0aCBmaWxsPSIjZmZmIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNNTcuNCAxLjRIMXYyOS40aDMzLjJMNDguOSA0NWwtLjItMTQuMmg4LjdWMS40WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjMDAxMTJDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0iTTIuMyAxNjhoMjE5LjQiLz4KICAgIDxwYXRoIGZpbGw9IiMwMDExMkMiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",Co={md:680,lg:1024},Wi=({title:t,message:e,imageDesktop:n,imageMobile:s,withImage:i,centered:r,refreshComponent:o,onContactSupport:a})=>{const{i18n:c}=q(),{updateCore:u}=Pi(),f=E(d=>Array.isArray(d)?d.map((m,g)=>g===0?c.get(m):h(Q,{children:[h("br",{}),c.get(m)]})):c.get(d),[c]);return h("div",{className:`adyen-fp-error-message-display ${r?"adyen-fp-error-message-display--centered":""}`,children:[(n||s||i)&&h("div",{className:"adyen-fp-error-message-display__illustration",children:h("picture",{children:[h("source",{type:"image/svg+xml",media:`(min-width: ${Co.md}px)`,srcSet:n}),h("source",{type:"image/svg+xml",media:`(max-width: ${Co.md}px)`,srcSet:s}),h("img",{srcSet:n??bI,alt:c.get("thereWasAnUnexpectedError")})]})}),h(Jt,{variant:F.TITLE,children:c.get(t)}),e&&h(Jt,{variant:F.BODY,children:f(e)}),(a||o)&&h("div",{className:"adyen-fp-error-message-display__button",children:[a&&h(Qt,{onClick:a,children:c.get("reachOutToSupport")}),!a&&o&&h(Qt,{onClick:()=>u==null?void 0:u(),children:c.get("refreshThePage")})]})]})},vI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xODkuMyAxMTMuN2MtMS0uMyAzNi4zIDI4LjYgNDcuNyAyNi40IDkuMy0xLjggMTQuMy01OSAxNC4zLTU5aC05LjlsLTEwLjggMzYuM3MtMzAuNC0yMi4zLTMxLjgtMjIuM2MtMS40IDAtOCAxOS4xLTkuNSAxOC42WiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzAwMTEyQyIgc3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LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",OI=Object.freeze({activeIndex:-1,index:-1});function si({errorDisplay:t,...e}){var o,a,c;const s=Ve(e.children).find(u=>(u==null?void 0:u.type)===lc),i=!e.loading&&((o=e.data)==null?void 0:o.length)===0&&!e.error,r=N(()=>!e.loading&&i||e.error,[i,e.error,e.loading]);return h("div",{className:G("adyen-fp-data-grid",{"adyen-fp-data-grid--condensed":e.condensed,"adyen-fp-data-grid--outline":e.outline,"adyen-fp-data-grid--scrollable":e.scrollable,"adyen-fp-data-grid--loading":e.loading,"adyen-fp-data-grid--empty":i||e.error}),children:h(Q,{children:[h("div",{className:"adyen-fp-data-grid__table-wrapper",children:[h("table",{className:"adyen-fp-data-grid__table",children:[h("thead",{className:"adyen-fp-data-grid__head",children:h("tr",{role:"rowheader",className:"adyen-fp-data-grid__row",children:e.columns.map(u=>h("th",{role:"columnheader",id:String(u.key),className:G("adyen-fp-data-grid__cell adyen-fp-data-grid__cell--heading",{"adyen-fp-data-grid__cell--right":u.position===ni.RIGHT,"adyen-fp-data-grid__cell--center":u.position===ni.CENTER}),children:u.label},u.key))})}),h(xI,{...e,emptyBody:i})]}),r&&(e.error&&t?t():h(Wi,{title:((a=e.emptyTableMessage)==null?void 0:a.title)??"thereAreNoResults",message:(c=e.emptyTableMessage)==null?void 0:c.message,imageDesktop:vI,centered:!0}))]}),s]})})}function xI(t){const e=N(()=>t.loading||t.emptyBody||t.error,[t.emptyBody,t.error,t.loading]);return h("tbody",{className:G("adyen-fp-data-grid__body"),children:e?h(DI,{columnsNumber:t.columns.length,loading:t.loading}):t.onRowClick?h(CI,{data:t.data,columns:t.columns,onRowClick:t.onRowClick,customCells:t.customCells}):h(_I,{data:t.data,customCells:t.customCells,columns:t.columns})})}si.Footer=lc;function lc({children:t}){return h("div",{className:"adyen-fp-data-grid__footer",children:t})}si.defaultProps={condensed:!1,outline:!0,scrollable:!0};const mr="-ariaError";var ht=(t=>(t[t.NONE=0]="NONE",t[t.APPLY=1]="APPLY",t[t.CLEAR=2]="CLEAR",t))(ht||{});const RI=({applyDisabled:t,applyTitle:e,resetDisabled:n,resetTitle:s}=z)=>{const{i18n:i}=q(),[r,o]=$(ht.NONE),[a,c]=$(r!==ht.NONE),u=E(()=>o(ht.APPLY),[o]),f=E(()=>o(ht.CLEAR),[o]),d=E(()=>o(ht.NONE),[o]),m=N(()=>({disabled:t===!0,event:u,title:(e==null?void 0:e.trim())||i.get("apply"),variant:Nt.PRIMARY}),[i,u,t,e]),g=N(()=>({disabled:n===!0,event:f,title:(s==null?void 0:s.trim())||i.get("reset"),variant:Nt.SECONDARY}),[i,f,n,s]),I=N(()=>[m,g],[m,g]);return B(()=>{switch(c(r!==ht.NONE),r){case ht.APPLY:case ht.CLEAR:d();break}},[r,c,d]),{commitAction:r,commitActionButtons:I,committing:a,resetCommitAction:d}},uc=RI,Do=t=>{t.stopImmediatePropagation()},Ur=(t,e)=>{const n=j(null),s=E(r=>{const o=r.composedPath();if(n&&n.current&&o.length){const a=o.some(c=>(c==null?void 0:c.isSameNode)&&c.isSameNode(n.current));e&&!a&&e(!0)}},[e]),i=j(s);return B(()=>(document.removeEventListener("click",i.current,!0),i.current=s,document.addEventListener("click",i.current,!0),()=>document.removeEventListener("click",i.current,!0)),[s]),de(E((r,o)=>{o instanceof Element&&o.removeEventListener("focusout",Do,!0),r instanceof Element&&r.addEventListener("focusout",Do,!0),n.current=r},[]),t)};function dc(t){const{backgroundUrl:e="",className:n="",classNameModifiers:s=[],src:i="",alt:r="",showOnError:o=!1}=t,[a,c]=$(!1),u=j(null),f=()=>{c(!0)},d=()=>{c(o)},m=G([n],"adyen-fp-image",{"adyen-fp-image--loaded":a},...s.map(g=>`adyen-fp-image--${g}`));return B(()=>{const g=e?new Image:u.current;g&&(g.src=e||i,g.onload=f),c(!!(g!=null&&g.complete))},[]),e?h("div",{style:{backgroundUrl:e},...t,className:m}):h("img",{...t,alt:r,ref:u,className:m,onError:d})}const jI=t=>Vt(t),Le=jI,wI=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&h("title",{children:t}),h("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.47 4.97c.3-.3.77-.3 1.06 0L8 9.44l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5c-.3.3-.77.3-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})]})),Hr=wI,kn="adyen-fp-dropdown",PI=Br(ue,[Nt.SECONDARY],[ue]),Xt=`${kn}__button`,kI=`${Xt}--active`,WI=`${Xt}-collapse-indicator`,zI=`${Xt}--has-selection`,BI=`${Xt}-icon`,$I=`${Xt}-multiselect-counter`,FI=`${Xt}--readonly`,UI=`${Xt}-text`,HI=`${Xt}--valid`,GI=`${Xt}--invalid`,he=`${kn}__element`,YI=`${he}--active`,ZI=`${he}-checkbox`,JI=`${he}-checkmark`,QI=`${he}-content`,VI=`${he}--disabled`,XI=`${he}-icon`,KI=`${he}--no-option`,hc=`${kn}__list`,qI=`${hc}--active`,tp=`${kn}--multiselect`,ep=({active:t,disabled:e,className:n,filterable:s,toggleButtonRef:i,...r})=>{const o=N(()=>s?G(PI,n):n,[n,s]);return s?h("div",{...r,className:o,ref:i}):h(Qt,{...r,className:o,disabled:e,variant:Nt.SECONDARY,ref:i})},np=t=>{var m;const{i18n:e}=q(),{active:n,filterable:s,multiSelect:i,placeholder:r,readonly:o,showList:a,withoutCollapseIndicator:c}=t,u=N(()=>(r==null?void 0:r.trim())||e.get("select.filter.placeholder"),[e,r]),f=N(()=>i===!0?void 0:n[0],[n,i]),d=N(()=>{var g;return((g=f==null?void 0:f.name)==null?void 0:g.trim())||u},[f,u]);return h(ep,{active:n,disabled:o,"aria-disabled":o,"aria-expanded":a,"aria-haspopup":"listbox",className:G(Xt,{[kI]:a,[zI]:!!n.length,[FI]:o,[GI]:t.isInvalid,[HI]:t.isValid}),filterable:s,onClick:o?void 0:t.toggleList,onKeyDown:o?void 0:t.onButtonKeyDown,role:s?"button":void 0,tabIndex:0,title:d,toggleButtonRef:t.toggleButtonRef,type:s?"":"button","aria-describedby":t.ariaDescribedBy,id:t.id??"",children:[a&&s?h("input",{"aria-autocomplete":"list","aria-controls":t.selectListId,"aria-expanded":a,"aria-owns":t.selectListId,autoComplete:"off",className:"adyen-fp-filter-input",onInput:t.onInput,placeholder:u,ref:t.filterInputRef,role:"combobox",type:"text"}):h(Q,{children:[(f==null?void 0:f.icon)&&h(dc,{className:BI,src:f.icon,alt:f.name.trim()}),h("span",{className:UI,children:((m=f==null?void 0:f.selectedOptionName)==null?void 0:m.trim())||(f==null?void 0:f.name.trim())||u}),i&&t.appliedFilterNumber>0&&h("div",{className:$I,children:h(Jt,{el:Pn.SPAN,variant:F.BODY,stronger:!0,children:t.appliedFilterNumber})})]}),!c&&h("span",{className:WI,children:h(Hr,{role:"presentation"})})]})},sp=np,ip=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&h("title",{children:t}),h("path",{fill:"currentColor",d:"M1.25 3.5c0-1.24 1-2.25 2.25-2.25h9c1.24 0 2.25 1 2.25 2.25v9c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25v-9ZM12.06 6 11 4.94l-4 4-2-2L3.94 8 7 11.06 12.06 6Z"})]})),rp=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&h("title",{children:t}),h("path",{stroke:"currentColor",d:"M.5 4C.5 2 2.1.5 4 .5h8c2 0 3.5 1.6 3.5 3.5v8c0 2-1.6 3.5-3.5 3.5H4C2 15.5.5 13.9.5 12V4Z"})]})),op=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[t&&h("title",{children:t}),h("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14.5 4.5a.7.7 0 0 0-1-1L6 10.9 2.5 7.5a.8.8 0 0 0-1 1l4 4a.8.8 0 0 0 1 0l8-8Z","clip-rule":"evenodd"})]})),ap=({iconClassName:t,item:e,multiSelect:n,selected:s})=>h(Q,{children:[n&&h("span",{className:ZI,children:s?h(ip,{role:"presentation"}):h(rp,{role:"presentation"})}),h("div",{className:QI,children:[e.icon&&h(dc,{className:t,alt:e.name,src:e.icon}),h("span",{children:e.name})]}),!n&&h("span",{className:JI,children:s&&h(op,{role:"presentation"})})]}),cp=({item:t,multiSelect:e,onKeyDown:n,onSelect:s,renderListItem:i,selected:r})=>{const o=!!t.disabled,a=t.disabled===!0||null,c=G(he,{[YI]:r,[VI]:o});return h("li",{"aria-disabled":o,"aria-selected":r,className:c,"data-disabled":a,"data-value":t.id,onClick:s,onKeyDown:n,title:t.name,role:"option",tabIndex:-1,children:i({item:t,multiSelect:e,selected:r,iconClassName:XI})})},lp=ft(cp);var Gr=(t=>(t.BUTTONS_END="buttons-end",t.FILL_CONTAINER="fill-container",t.SPACE_BETWEEN="space-between",t.VERTICAL_STACK="vertical-stack",t))(Gr||{}),fc=(t=>(t.BUTTONS_START="buttons-start",t))(fc||{});const up={...Gr,...fc};function dp({actions:t,layout:e=up.BUTTONS_END}){const n=()=>`${hr}--${e}`,s=r=>{const o=t.length-1;return r===o?Nt.PRIMARY:Nt.SECONDARY},i=N(()=>[...t].reverse(),[t]);return h("div",{className:hr,children:h("div",{className:`${Ug} ${n()}`,role:"group",children:i.map((r,o)=>h(Qt,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||s(o),onClick:r.event,children:r.title},o))})})}const hp=ft(dp),Ft="adyen-fp-popover",fp=`${Ft}-container`,bo=`${Ft}__header`,mp=`${Ft}__header-title`,Us=`${Ft}__content`,gp=`${Ft}__footer`;function Ip({image:t=!0,onClick:e}){const{i18n:n}=q();return h(Q,{children:h(Qt,{className:(()=>t?"adyen-fp-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Nt.TERTIARY,onClick:e,"aria-label":n.get("closeIconLabel"),children:h("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[h("title",{children:"dismiss"}),h("path",{fill:"#00112C",fillRule:"evenodd",d:"M11.4697 12.5303C11.7626 12.8232 12.2374 12.8232 12.5303 12.5303C12.8232 12.2374 12.8232 11.7626 12.5303 11.4697L9.06066 8L12.5303 4.53033C12.8232 4.23744 12.8232 3.76256 12.5303 3.46967C12.2374 3.17678 11.7626 3.17678 11.4697 3.46967L8 6.93934L4.53033 3.46967C4.23744 3.17678 3.76256 3.17678 3.46967 3.46967C3.17678 3.76256 3.17678 4.23744 3.46967 4.53033L6.93934 8L3.46967 11.4697C3.17678 11.7626 3.17678 12.2374 3.46967 12.5303C3.76256 12.8232 4.23744 12.8232 4.53033 12.5303L8 9.06066L11.4697 12.5303Z",clipRule:"evenodd"})]})})})}const pp=ft(Ip);function _p({title:t,isImageTitle:e=!1}){return h(Jt,{strongest:!e,variant:(()=>e?F.SUBTITLE:F.BODY)(),children:t})}const yp=ft(_p);var zi=(t=>(t.TOOLTIP="tooltip",t.POPOVER="popover",t))(zi||{}),yt=(t=>(t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t))(yt||{}),ts=(t=>(t.MEDIUM="medium",t.WIDE="wide",t))(ts||{});const Yr=`
2
- a[href],
3
- audio[controls],
4
- video[controls],
5
- button,
6
- input,
7
- select,
8
- textarea,
9
- [contenteditable],
10
- [tabindex]
11
- `.replace(/\s+/,""),Mp=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],vo=new Map,Oo=Function.prototype.call.bind(Array.prototype.some),mc=t=>t.tagName==="INPUT",Tp=t=>mc(t)&&t.type==="radio",Np=t=>{const e=t.name,n=t.form,s=vo.get(n);let i=s==null?void 0:s.get(e);return i===void 0&&n&&(i=n.querySelector(`input[type=radio][name='${e}']:checked`)||null,vo.set(n,(s||new Map).set(e,i))),i===t},Lp=(t,e)=>{for(const n of e)if(n.type!=="attributes"){if(Oo(n.addedNodes,s=>s instanceof Element&&gr(s))||Oo(n.removedNodes,s=>t.includes(s)))return!0}else{if(gr(n.target))return!0;if(t.includes(n.target))return!0}return!1},Zr=(t=document.body,e)=>{if(t===void 0)return!1;if(e==null)return!!document.activeElement&&Zr(t,document.activeElement);let n=e==null?void 0:e.parentNode;for(;n;){if(n===t)return!0;n=n==null?void 0:n.parentNode}return!1},Jr=t=>!(!t.matches(Yr)||t!=null&&t.disabled||/^(true)?$/.test(t.getAttribute("inert"))||mc(t)&&t.hidden),gr=t=>!(Tp(t)&&!Np(t)||(t==null?void 0:t.tabIndex)<0||!Jr(t)),Sp=()=>{const t=new MutationObserver(a=>Lp(e,a)&&r()),e=[];let n=-1,s=null;const i=a=>{var u;if(a<0)return;const c=Math.min(a,e.length-1);n!==c&&(n=c),(u=e[n])==null||u.focus()},r=()=>{e.length=0,s instanceof Element&&(s.querySelectorAll(Yr).forEach(a=>gr(a)&&e.push(a)),Zr(s)&&(o.current=document.activeElement))},o=Object.create(null,{current:{get:()=>e[n]??null,set:a=>{if(a){if(!zn(a))return i(e.indexOf(a));if(a===~~a)return i(Rs(n+a,e.length))}}},root:{get:()=>s,set:a=>{a!==s&&(s&&t.disconnect(),s=a instanceof Element?a:null,e.length=0,s&&(t.observe(s,{attributeFilter:Mp,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:e}});return o},Ap=(t,e)=>{const n=j(!1),s=j(null),i=j(!1),r=N(Sp,[]),o=N(()=>{let f=null,d;return m=>{d!==void 0&&cancelAnimationFrame(d);let g=m.target;for(;g&&g!==m.currentTarget;){if(Jr(g)){f=g,d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{var I;s.current!==f&&f instanceof HTMLElement&&((I=s.current=f)==null||I.focus()),f=null,d=void 0})});return}g=g.parentNode}}},[]),a=E(f=>{r.current=s.current=f.target},[]),c=E(f=>{r.tabbables.includes(f.relatedTarget)||Zr(f.currentTarget,f.relatedTarget)||i.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&e(n.current=!1)}))},[]),u=N(()=>{let f;return d=>{switch(d.code){case P.ARROW_DOWN:case P.ARROW_LEFT:case P.ARROW_RIGHT:case P.ARROW_UP:case P.END:case P.ESCAPE:case P.HOME:case P.PAGE_DOWN:case P.PAGE_UP:case P.TAB:cancelAnimationFrame(f),f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{i.current=!1,f=void 0})}),i.current=!0;break}d.code===P.TAB?(d.preventDefault(),r.current=d.shiftKey?-1:1):d.code===P.ESCAPE&&e(!0)}},[]);return de(E((f,d)=>{d instanceof Element&&(d.removeEventListener("keydown",u,!0),d.removeEventListener("focusin",a,!0),d.removeEventListener("focusout",c,!0),f.removeEventListener("click",o,!0)),f instanceof Element?(f.addEventListener("keydown",u,!0),f.addEventListener("focusin",a,!0),f.addEventListener("focusout",c,!0),f.addEventListener("click",o,!0),n.current=!1,r.root=f):r.root=null},[]),t)},Xi=(()=>{const t=new WeakMap,e=Z({remove:tt(function(){s(this.observerCallback)})}),n=i=>{let r=t.get(i);if(r===void 0){const o=new IntersectionObserver(a=>{a.forEach(c=>{i&&i(c)})},{root:null,rootMargin:"",threshold:[1]});r=vi(e,{observerCallback:tt(i),observer:tt(o)}),t.set(i,r)}return r},s=i=>{const r=t.get(i);r==null||r.observer.disconnect(),t.delete(i)};return n})(),Ep=(t,e,n,s)=>{if(e.length<3){const f=e.length;e.length=3,e.fill(0,f,3)}s||(s=yt.BOTTOM);let i=0,r=0,o=0;const a=n==null?void 0:n.current;switch(s){case yt.BOTTOM:i=(a==null?void 0:a.offsetLeft)+e[0],r=(a==null?void 0:a.offsetTop)+(a==null?void 0:a.offsetHeight)+e[1],o=e[2];break;case yt.TOP:i=(a==null?void 0:a.offsetLeft)+e[0],r=t!=null&&t.clientHeight?(a==null?void 0:a.offsetTop)-e[1]-(t==null?void 0:t.clientHeight):a==null?void 0:a.offsetTop,o=e[2];break;case yt.RIGHT:i=(a==null?void 0:a.offsetLeft)+(a==null?void 0:a.offsetWidth)+e[0],r=(a==null?void 0:a.offsetTop)+e[1],o=e[2];break;case yt.LEFT:i=t!=null&&t.clientWidth?(a==null?void 0:a.offsetLeft)-(t==null?void 0:t.clientWidth)-e[0]:0,r=(a==null?void 0:a.offsetTop)+e[1],o=e[2];break}return`position:absolute;inset:0 auto auto 0;margin: 0;z-index:10;transform: ${[i,r,o].reduce((f,d,m)=>m===0?f+`${d}px,`:m===e.length-1?f+` ${d}px)`:f+` ${d}px,`,"translate3d(")};visibility:hidden`},Cp=(t,e,n,s,i)=>{const[r,o]=$(!0),[a,c]=$(!s),[u,f]=$(s??yt.TOP),d=E(g=>{if(!r)if(g.intersectionRatio!==1)switch(u){case yt.TOP:f(yt.BOTTOM);break;case yt.BOTTOM:f(yt.RIGHT);break;case yt.RIGHT:f(yt.LEFT);break;case yt.LEFT:break}else c(!1)},[f,u,r,c]),m=j(d);return B(()=>{Xi(m.current).remove(),m.current=d},[d]),de(E((g,I)=>{var y;if(I&&!s&&Xi(d).observer.unobserve(I),g){if(s||Xi(d).observer.observe(g),!(g instanceof Element))return;const L=Ep(g,t,e,u),T=a?L:L+";visibility:visible";g.setAttribute("style",`${T}`),r&&o(!1),n&&n===zi.TOOLTIP&&((y=g.classList)==null||y.add(`popover-content-container--tooltip-${u}`))}},[i,t,e,u,s,n,d,o,a]),i)};const Dp=t=>{var s;let e;const n=(s=t.querySelector(`.${Us}`))==null?void 0:s.querySelectorAll(Yr);return Array.prototype.some.call(n,i=>{if(Jr(i))return e=i}),e};function gc({actions:t,disableFocusTrap:e=!1,actionsLayout:n=Gr.SPACE_BETWEEN,variant:s=zi.TOOLTIP,title:i,open:r,dismissible:o,modifiers:a,divider:c,fitContent:u,withoutSpace:f,containerSize:d,position:m,targetElement:g,dismiss:I,children:y,withContentPadding:L,...T}){const S=N(()=>X(I)&&o!==!1,[I,o]),C=j(),v=E(ct=>{var H;I&&I(),ct&&((H=g==null?void 0:g.current)==null||H.focus())},[I,g]),M=E(ct=>{ct.code===P.ESCAPE&&(I&&I(),(g==null?void 0:g.current).focus())},[I,g]),x=j(M),w=j(),k=Ur(Cp([0,15],g,s,yt.BOTTOM),I),D=Ap(e?null:k,v),W=de(E(ct=>{ct instanceof Element&&(cancelAnimationFrame(w.current),w.current=requestAnimationFrame(()=>{if(C.current===r||!(C.current=r))return;const H=Dp(ct);H==null||H.focus()}))},[]),e?k:D),K=N(()=>({[`${Ft}--medium`]:d===ts.MEDIUM,[`${Ft}--with-divider`]:!!c,[`${Ft}--wide`]:d===ts.WIDE,[`${Ft}--fit-content`]:u,[`${Ft}--without-space`]:f}),[d,c,f,u]);return B(()=>(document.removeEventListener("keydown",x.current),document.addEventListener("keydown",x.current=M),()=>document.removeEventListener("keydown",x.current)),[M]),h(Q,{children:r?h("div",{id:"popover",ref:W,...T,className:G(`${Ft} ${fp}`,K),style:{display:"none"},role:T.role??"dialog",children:[(i||S)&&h("div",{className:Br(bo,a,[bo]),children:[i&&h("div",{className:mp,children:h(yp,{title:i})}),S&&h(pp,{onClick:I})]}),y&&h("div",{className:L?`${Us} ${Us}--with-padding`:Us,children:y}),t&&h("div",{className:gp,children:h(hp,{actions:t,layout:n})})]}):null})}const bp=Le(({active:t,commitActions:e,items:n,multiSelect:s,onKeyDown:i,onSelect:r,renderListItem:o,selectListId:a,showList:c,textFilter:u,toggleButtonRef:f},d)=>{const{i18n:m}=q(),g=n.filter(S=>!u||S.name.toLowerCase().includes(u)),I=G(hc,{[qI]:c}),y=G(he,KI),L=N(()=>X(o)?o:ap,[o]),T=N(()=>s===!0,[s]);return c?h(gc,{actions:T?e:void 0,disableFocusTrap:!0,divider:!0,open:c,containerSize:ts.MEDIUM,variant:zi.POPOVER,targetElement:f,withContentPadding:!1,children:h("ul",{className:I,id:a,ref:d,role:"listbox","aria-multiselectable":T,children:g.length?g.map(S=>h(lp,{item:S,multiSelect:T,onKeyDown:i,onSelect:r,renderListItem:L,selected:t.includes(S)},S.id)):h("div",{className:y,children:m.get("select.noOptionsFound")})})}):null}),vp=ft(bp),Op=({items:t,multiSelect:e,selected:n})=>{const s=E((c=_t)=>{const u=_t.concat(c??_t).filter(Boolean),f=t.filter(m=>u.includes(m.id)),d=e?f:f.slice(0,1);return d.length?Object.freeze(d):_t},[t,e]),[i,r]=$(s(n)),o=E((c=_t)=>{const u=c.filter(f=>t.includes(f));r(u.length?Object.freeze(u):_t)},[t,r]),a=E(c=>{r(u=>{const f=u.indexOf(c);if(f<0)return Object.freeze((e?u:_t).concat(c));if(!e)return u;const d=[...u];return d.splice(f,1),d.length?Object.freeze(d):_t})},[e,r]);return B(()=>r(s(n)),[s,n,r]),{resetSelection:o,select:a,selection:i}},xp=Op;const Rp=({className:t,classNameModifiers:e=_t,items:n=_t,filterable:s=!1,multiSelect:i=!1,readonly:r=!1,onChange:o=vt,selected:a,name:c,isInvalid:u,isValid:f,placeholder:d,uniqueId:m,renderListItem:g,isCollatingErrors:I,withoutCollapseIndicator:y=!1})=>{const{resetSelection:L,select:T,selection:S}=xp({items:n,multiSelect:i,selected:a}),[C,v]=$(!1),[M,x]=$(""),w=j(null),k=j(null),D=j(null),W=j(`select-${ec()}`),[K,ct]=$(0),H=j(),J=j(!0),Tt=j(!1),gt=j(S),Ut=j(S),Se=Ur(j(null),E(()=>{x(""),v(!1),C&&(L(gt.current),J.current=!0)},[L,C,v,x])),Ae=N(()=>G([kn,{[tp]:i===!0},...e.map(Y=>`${kn}--${Y}`),t]),[t,e,i]),{commitAction:Kt,commitActionButtons:qt,committing:kt,resetCommitAction:fe}=uc({resetDisabled:!S.length}),st=E(()=>{var Y;x(""),v(!1),fe(),J.current?J.current=!1:(Y=D.current)==null||Y.focus()},[fe,v,x]),me=E(()=>{gt.current=S;const Y=`${S.map(({id:it})=>it)}`;o({target:{value:Y,name:c}})},[c,o,S]);B(()=>{switch(Kt){case ht.APPLY:me();break;case ht.CLEAR:L(),Tt.current=!0;break}},[Kt,me,L]);const Ke=E(Y=>{var rt;Y.preventDefault();const it=Y.currentTarget&&((rt=k==null?void 0:k.current)!=null&&rt.contains(Y.currentTarget))?Y.currentTarget:null;if(it&&!it.getAttribute("data-disabled")){const gl=it.getAttribute("data-value"),Il=n.find(pl=>pl.id===gl);T(Il)}},[n,T]);B(()=>{Ut.current!==S&&(Ut.current=S,(!i||Tt.current)&&(me(),st())),Tt.current=!1},[st,me,i,S]),B(()=>{kt&&(ct(S.length),st())},[kt,st,ct,S.length]);const dl=E(Y=>{switch(Y.code){case P.ESCAPE:case P.TAB:C&&st(),J.current=Y.key===P.TAB;return;case P.ENTER:case P.SPACE:if(s&&C){if(Y.key===P.ENTER)if(M)Ke(Y);else break;return}break;case P.ARROW_DOWN:case P.ARROW_UP:break;default:return}Y.preventDefault(),v(!0)},[st,s,Ke,C,v,M]);B(()=>{C&&(cancelAnimationFrame(H.current),H.current=requestAnimationFrame(()=>{var Y;t:{let it=(Y=k.current)==null?void 0:Y.firstElementChild,rt;for(;it;){if(!(it.dataset.disabled&&it.dataset.disabled==="true")){if(it.getAttribute("aria-selected")==="true"){it.focus();break t}rt=rt||it}it=it.nextElementSibling}rt&&rt.focus()}}))},[C]);const hl=E(Y=>{const it=Y.target;switch(Y.code){case P.ESCAPE:Y.preventDefault(),st();break;case P.ENTER:case P.SPACE:Ke(Y);break;case P.ARROW_DOWN:{Y.preventDefault();let rt=it.nextElementSibling;for(;rt;){if(!(rt.dataset.disabled&&rt.dataset.disabled==="true")){rt.focus();break}rt=rt.nextElementSibling}break}case P.ARROW_UP:{Y.preventDefault();t:{let rt=it.previousElementSibling;for(;rt;){if(!(rt.dataset.disabled&&rt.dataset.disabled==="true")){rt.focus();break t}rt=rt.previousElementSibling}s&&w.current&&w.current.focus()}break}case P.TAB:st();break}},[st,s,Ke]),fl=E(Y=>{const it=Y.target.value;x(it.toLowerCase())},[x]),ml=E(Y=>{Y.preventDefault(),v(it=>!it),C&&L(gt.current)},[v,C,L]);return B(()=>{var Y;C&&s&&((Y=w.current)==null||Y.focus())},[s,C]),h("div",{ref:Se,className:Ae,children:[h(sp,{id:m??void 0,appliedFilterNumber:K,active:S,filterInputRef:w,filterable:s,isInvalid:u,isValid:f,onButtonKeyDown:dl,onInput:fl,multiSelect:i,placeholder:d,readonly:r,selectListId:W.current,showList:C,toggleButtonRef:D,toggleList:ml,withoutCollapseIndicator:y,ariaDescribedBy:!I&&m?`${m}${mr}`:""}),h(vp,{active:S,commitActions:qt,items:n,multiSelect:i,onKeyDown:hl,onSelect:Ke,selectListId:W.current,ref:k,toggleButtonRef:D,renderListItem:g,showList:C,textFilter:M})]})},Bi=Rp,jp=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&h("title",{children:t}),h("path",{d:"M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",fill:e.disabled?"#8D95A3":"#00112C"})]})),wp=jp,Pp=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&h("title",{children:t}),h("path",{d:"M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",fill:e.disabled?"#8D95A3":"#00112C"})]})),kp=Pp;function Wp({next:t,hasNext:e,hasPrev:n,page:s,prev:i,limit:r,limitOptions:o,onLimitSelection:a}){const{i18n:c}=q(),u=N(()=>o&&Object.freeze(o.map(d=>({id:`${d}`,name:`${d}`}))),[o]),f=E(({target:d})=>{(d==null?void 0:d.value)!=null&&(a==null||a(+d.value))},[a]);return h("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-fp-pagination ${G({})}`,children:[h("div",{className:"adyen-fp-pagination__context",children:[h("span",{children:[c.get("pagination.page")," ",s]}),u&&a&&h("div",{className:"adyen-fp-pagination__limit-selector",children:h(Bi,{filterable:!1,multiSelect:!1,items:u,onChange:f,selected:`${r??""}`})})]}),h("div",{className:"adyen-fp-pagination__controls",children:[h(Qt,{"aria-label":c.get("pagination.previousPage"),variant:Nt.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?_t:"disabled"),onClick:i,children:h(wp,{disabled:!n})}),h(Qt,{"aria-label":c.get("pagination.nextPage"),variant:Nt.TERTIARY,disabled:!e,iconButton:!0,classNameModifiers:["circle"].concat(e?_t:"disabled"),onClick:t,children:h(kp,{disabled:!e})})]})]})}const zp={id:"paymentId",type:"type",creationDate:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",fee:"txType.Fee",capture:"txType.capture",leftover:"txType.leftover",manualCorrection:"txType.manualCorrection",internalTransfer:"txType.internalTransfer",balanceAdjustment:"txType.balanceAdjustment",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency"},Bp=t=>zp[t]||t,$p=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function Ic(t,e){return t.lastFourDigits?e==="detail"?"•••• •••• •••• "+t.lastFourDigits:t.lastFourDigits:$p[t.type]||t.type}var Mt=(t=>(t.DEFAULT="default",t.WARNING="warning",t.ERROR="error",t.SUCCESS="success",t.WHITE="white",t))(Mt||{});const Qn=ft(({variant:t=Mt.DEFAULT,label:e})=>h("div",{className:G("adyen-fp-tag",{"adyen-fp-tag--success":t===Mt.SUCCESS,"adyen-fp-tag--default":t===Mt.DEFAULT,"adyen-fp-tag--warning":t===Mt.WARNING,"adyen-fp-tag--error":t===Mt.ERROR,"adyen-fp-tag--white":t===Mt.WHITE}),children:e})),Fp="https://cdf6519016.cdn.adyen.com/checkoutshopper/",Up=({name:t,resourceContext:e,imageFolder:n="logos/",parentFolder:s="",extension:i="svg",size:r="",subFolder:o=""})=>{const a=`/images/${n}/${o}/${s}/${t}${r}.${i}`.replace(/\/+/g,"/");return`${e}${a}`},Hp=({options:t=z,name:e})=>{const{loadingContext:n}=q();return N(()=>Up({resourceContext:Fp,name:e,...t}),[n,e,t])},pc=({folder:t="components/",className:e,alt:n,name:s,extension:i})=>{const r=Hp({options:N(()=>({imageFolder:t,extension:i}),[i,t]),name:s});return h("img",{className:G("adyen-fp__image",e),alt:n,src:r})},xo={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},_c=(t,e)=>{if(!t)return xo;switch(t.errorCode){case void 0:return{title:"somethingWentWrong",message:["seemsLikeThereIsANetworkError","tryToRefreshThePageOrComeBackLater"],refreshComponent:!0};case"00_500":return{title:"noResultsFoundSeekSupport",message:["seemsLikeThereIsAndInternalError","pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:e};case"00_403":default:return xo}},Gp=({error:t,onContactSupport:e})=>{const{title:n,message:s,refreshComponent:i}=_c(t,e);return h(Wi,{title:n,message:s,withImage:!0,centered:!0,refreshComponent:i,onContactSupport:e})},Yp=Gp,Zp=Qg(()=>Promise.resolve().then(()=>require("./ModalContent-e2777391.js"))),Jp=["creationDate","status","paymentMethod","type","currency","amount"];function Qp({balanceAccountDescription:t,loading:e,transactions:n,onTransactionSelected:s,showPagination:i,showDetails:r,error:o,onContactSupport:a,availableCurrencies:c,...u}){const{i18n:f}=q(),d=c&&c.length>1,m=N(()=>Jp.map(M=>{const x=f.get(Bp(M));return M==="amount"?{key:M,label:d?x:`${x} ${c&&c[0]?`(${$l(c[0])})`:""}`,position:M==="amount"?ni.RIGHT:void 0}:{key:M,label:x}}),[c,d,f]),g=N(()=>({showDetails:r??!0,callback:s}),[r,s]),I=N(()=>({transaction:g}),[g]),{updateDetails:y,resetDetails:L,selectedDetail:T}=pI(I),S=E(M=>{y({selection:{type:"transaction",data:{...M,balanceAccountDescription:t}},modalSize:"small"}).callback({id:M.id})},[y,t]),C={title:"weDidNotFindAnyTransaction",message:["thereAreNoTransactionsForThisRequirements","tryAgainPlease"]},v=N(()=>()=>h(Yp,{error:o,onContactSupport:a}),[o,a]);return h(Q,{children:[h(si,{errorDisplay:v,error:o,columns:m,data:n,loading:e,outline:!1,onRowClick:{callback:S},emptyTableMessage:C,customCells:{status:({value:M})=>h(Qn,{label:f.get(M),variant:M==="Booked"?Mt.SUCCESS:M==="Reversed"?Mt.ERROR:Mt.DEFAULT}),type:({item:M})=>M.category?f.get(`txType.${M.category}`):null,creationDate:({value:M})=>f.fullDate(M),amount:({value:M})=>{const x=f.amount(M.value,M.currency,{hideCurrency:!d});return h("span",{className:G("adyen-fp-transactions__amount"),children:x})},paymentMethod:({item:M})=>{var x;return h(Q,{children:M.paymentMethod||M.bankAccount?h("div",{className:"adyen-fp-transactions__payment-method",children:[h("div",{className:"adyen-fp-transactions__payment-method-logo-container",children:h(pc,{name:M.paymentMethod?M.paymentMethod.type:"bankTransfer",alt:M.paymentMethod?M.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-fp-transactions__payment-method-logo"})}),M.paymentMethod?Ic(M.paymentMethod):(x=M.bankAccount)==null?void 0:x.accountNumberLastFourDigits]}):h(Qn,{label:f.get("noData"),variant:Mt.WHITE})})},currency:({item:M})=>h(Qn,{label:M.amount.currency})},children:i&&h(si.Footer,{children:h(Wp,{...u})})}),h(fI,{title:T!=null&&T.title?f.get(T.title):void 0,isOpen:!!T,"aria-label":f.get("transactionDetails"),onClose:L,isDismissible:!0,headerWithBorder:!1,size:(T==null?void 0:T.modalSize)??"large",children:T&&h(Fs,{fallback:h("span",{className:"adyen-fp-transactions__spinner-container",children:h(gI,{size:"medium"})}),children:h(Zp,{data:T.selection.data})})})]})}const Vp=Object.freeze([10,20,50,100]),Xp=100,Ir=10,pr=t=>{const e=~~t;return e===t&&e>0?Math.min(e,Xp):Math.max(e,0)},Kp=(t,e)=>{const n=t.length-1;if(n<0)return e;if(e<=t[0])return t[0];if(e>=t[n])return t[n];let s=0,i=0,r=n;for(;;){const o=t[s=aa(i,r)];if(i>r||e===o)return o;e>o?i=s+1:r=s-1}},qp=({preferredLimit:t=Ir,preferredLimitOptions:e})=>{const n=j(),s=j(),i=N(()=>{try{const o=new Set;for(const a of e){const c=pr(a);c>0&&o.add(c)}return Object.freeze([...o].sort((a,c)=>a-c))}catch{}},[e]);return{limit:N(()=>{let o=pr(t)||Ir;t:try{if(n.current===i)break t;const a=new Set(n.current=i);if(a.size===0){n.current=void 0;break t}if(s.current!==o)e:{if(a.size===a.add(o).size)break e;if(a.delete(o),a.size===a.add(s.current).size){if(zn(s.current)){o=s.current;break e}}else a.delete(s.current);o=Kp(n.current,o)}}catch{}return s.current=o},[i,t]),limitOptions:i}},t_=qp,e_=t=>{const e=j(!1),n=N(()=>t,[t]);return B(()=>(e.current=!0,()=>{e.current=!1,n&&n()}),[n]),e},Qr=e_,n_=(t,e,n)=>{const s=j(),i=j(),r=j(),o=j(),a=Qr(E(()=>{var D;(D=s.current)==null||D.abort(),s.current=void 0},[])),[c,u]=$(o.current),[f,d]=ee(!1),m=N(()=>pr(n),[n]),{getPageCount:g,getPageParams:I,resetPageCount:y,updatePagination:L}=t,T=N(()=>(y(),i.current=r.current=o.current=void 0,a.current&&u(o.current),e?D=>{var H;if(!(m&&Number.isInteger(D)))return;const W=g(),K=D<0?D+W+1:D;K>0&&(W?K<=W:K===1)&&((H=s.current)==null||H.abort(),s.current=new AbortController,a.current&&(((o.current=K)>1||W)&&u(o.current),(async()=>{const{signal:J}=s.current,Tt={...I(K,m),limit:m};try{const gt=await e(Tt,J);if(!gt||!a.current)return;const{size:Ut,...Se}=gt;L(K,m,Se),i.current=o.current&&Math.max(o.current,i.current||-1/0),o.current&&o.current===i.current&&(r.current=Ut),o.current===1&&Ut>0&&u(o.current),o.current=void 0,d(!0)}catch(gt){if(J.aborted)return;console.error(gt)}})()))}:vt),[m,e]),S=E(()=>{c&&T(Math.min(c+1,g()))},[T,c]),C=E(()=>{c&&T(Math.max(c-1,1))},[T,c]),v=N(()=>g()||c||void 0,[T,f]),M=N(()=>!!(c&&v)&&c<v,[c,v]),x=N(()=>!!c&&c>1,[c]),w=N(()=>i.current?(i.current-1)*m+(r.current||0):0,[T,f]),k=N(()=>m&&Math.min(m,w||1/0)%m,[m,w]);return B(()=>{a.current&&f&&d(!1)},[f]),{goto:T,hasNext:M,hasPrev:x,limit:m,next:S,page:c,pages:v,pageSize:k,prev:C,size:w}},yc=n_,s_=t=>Ne(t.next),i_=t=>Ne(t.prev),r_=(t,e)=>{const n=N(()=>{const s=[],i=()=>s.length,r=()=>{s.length=0},o=u=>({cursor:s[u-1]}),a=(u,f)=>{const d=s[f-1];(f===1||f===(s.length||1)+1)&&d===void 0&&(s[f-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:i,getPageParams:o,resetPageCount:r,updatePagination:(u,f,d)=>{s_(d)&&a(d.next,u+1),i_(d)&&a(d.prev,u-1)}}},[]);return yc(n,t,e)},o_=r_,a_=t=>t.next,c_=(t,e)=>{const n=N(()=>{let s=0;return{getPageCount:()=>s,getPageParams:(c,u)=>({offset:(c-1)*u}),resetPageCount:()=>{s=0},updatePagination:(c,u,f)=>{a_(f)&&f.next&&(s=Math.max(s,c+1))}}},[]);return yc(n,t,e)},l_=c_,u_=(t=z,e=!0)=>{const n=j(e),s=j(Object.freeze({...t})),i=j(new Set(Object.keys(s.current))),r=j(new Set),o=Qr(),[a,c]=N(()=>{const m=g=>{o.current&&f(g)};return[()=>m("reset"),g=>m(g)]},[o]),[u,f]=wi((m,g)=>{if(g==="reset")return r.current.clear(),s.current;const I={...g},y=[0];Object.keys(I).forEach((T,S)=>{if(!i.current.has(T))return;const C=m[T]??void 0,v=s.current[T]??void 0,M=I[T]??v;if(M===C)return;const x=Math.floor(S/32),w=1<<S%32;I[T]=M,y[x]|=w,r.current[M===v?"delete":"add"](T)});const L=y.some(T=>T)?n.current&&r.current.size===0?s.current:Object.freeze({...m,...I}):m;return n.current||(s.current=L,n.current=!0),L},s.current),d=N(()=>!!r.current.size,[]);return B(()=>{s.current=Object.freeze({...t}),i.current=new Set(Object.keys(s.current)),n.current=e,a()},[e,t,a]),{canResetState:d,defaultState:s.current,resetState:a,state:u,updateState:c}},d_=u_,h_=(t=z,e)=>{const{canResetState:n,defaultState:s,resetState:i,state:r,updateState:o}=d_(t,e);return{canResetFilters:n,defaultFilters:s,filters:r,resetFilters:i,updateFilters:o}},f_=h_;var es=(t=>(t.NEXT="next",t.PREV="prev",t))(es||{}),Vr=(t=>(t.CURSOR="cursor",t.OFFSET="offset",t))(Vr||{});const m_=[es.NEXT,es.PREV],g_=["hasNext","hasPrevious"],Mc=t=>{const e=Object.getOwnPropertyNames(t);return!g_.some(n=>e.includes(n))},I_=(t,e="data")=>{const n=t[e];if(Mc(t)){const s=Object.fromEntries(Object.entries(t||z).filter(([i,r])=>m_.includes(i)&&r));return{records:n,paginationData:s}}throw new TypeError("MALFORMED_PAGINATED_DATA")},p_=(t,e="data")=>{const n=t[e];if(!Mc(t)){const{hasNext:s,hasPrevious:i}=t,r={[es.NEXT]:s===!0,[es.PREV]:i===!0};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},__=({dataField:t="data",fetchRecords:e,filterParams:n=z,initialFiltersSameAsDefault:s=!0,initialize:i,onFiltersChanged:r,onLimitChanged:o,pagination:a,preferredLimit:c,preferredLimitOptions:u,enabled:f})=>{const[d,m]=$([]),[g,I]=ee(!0),[y,L]=$(),[T,S]=$(c),C=Qr(),v=j(!0),M=f_(n,s),{limit:x,limitOptions:w}=t_({preferredLimit:T,preferredLimitOptions:u}),{defaultFilters:k,filters:D,updateFilters:W,...K}=M,[ct,H]=N(()=>a===Vr.CURSOR?[I_,o_]:[p_,l_],[]),J=E(Ae=>S(Ae),[]),{goto:Tt,page:gt,pages:Ut,...Se}=H(E(async(Ae,Kt)=>{try{if(L(void 0),!C.current||I(!0))return;const qt=await e({...Ae,...D},Kt),{records:kt,paginationData:fe}=ct(qt,t);return v.current&&(i==null||i([kt,fe],M),v.current=!1),C.current&&(m(kt),I(!1)),{...fe,size:kt==null?void 0:kt.length}}catch(qt){if(Kt!=null&&Kt.aborted)return;I(!1),L(qt),console.error(qt)}},[e,D,x]),x);return N(()=>{v.current=!0},[n]),B(()=>{f&&Tt(1)},[Tt,f]),B(()=>{r==null||r(D)},[D]),B(()=>{o==null||o(x)},[x]),{error:y,fetching:g,filters:D,goto:Tt,limitOptions:w,page:gt,pages:Ut,records:d,updateFilters:W,updateLimit:J,...K,...Se}},y_=__,M_=t=>y_({...t,pagination:Vr.CURSOR}),T_=M_,N_=(()=>{let t=null,e;const n=(o,a,c)=>{const u=document.timeline.currentTime??performance.now(),f=m=>{const g=m-u,I=Math.round(g/o)*o,L=u+I+o-performance.now();setTimeout(()=>requestAnimationFrame(d),L)},d=m=>{a.aborted||(f(m),c())};f(u)},s=()=>{t=Date.now(),r.notify()},i=()=>t??Date.now(),r=Ze({timestamp:i});return r.callback.resume=()=>{e=new AbortController,t=Date.now(),n(1e3,e.signal,s)},r.callback.idle=()=>{e.abort(),t=null},Z({timestamp:{get:i},watch:{value:r.watch}})})(),Un=N_,L_=(()=>{const t=new Map,e=Oi(),n=(s=Un.timestamp)=>{const i=new Date(s),r=new Date(la(e,s)),o=i.getDate()-r.getDate();if(o){const u=o>1?-1:o<-1?1:o;i.setDate(i.getDate()-u)}const a=Xs(e,i.setHours(0,0,0,0)),c=Xs(e,i.setDate(i.getDate()+1));return[a,c-a]};return s=>{e.tz=s;const i=e.tz.current;return t.get(i)??(()=>{let r=null,o=null,a=null;const c=()=>(e.tz=i,r??n()[0]),u=(m=Un.timestamp)=>{e.tz=i,[r,o]=n(m)},f=Ze({timestamp:c});f.callback.resume=()=>{a=Un.watch(m=>{if(m!==Ze.UNWATCH){if(r===null||o===null)return u();Un.timestamp-r<o||(u(),f.notify())}})},f.callback.idle=()=>{a==null||a(),r=o=a=null};const d=Z({timestamp:{get:c},timezone:{value:i},watch:{value:f.watch}});return t.set(i,d),d})()}})(),Tc=L_,{getTimezoneTime:S_,getUsedTimezone:A_}=(()=>{const t=/(\d{2}):(\d{2})(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,e=/^GMT|0(?=\d:00)|:00/g,n=Oi();return{getTimezoneTime:(r,o=Date.now())=>{n.tz=r;const{formatted:a}=n(o),[c="",,,u=""]=(a==null?void 0:a.match(t))??_t,f=rr(a),d=`${c}${u&&` ${u}`}`,m=xh(f).replace(e,"");return[d,m]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),E_=({timezone:t,withClock:e=!1}=z)=>{const n=N(()=>e===!0,[e]),s=N(()=>A_(t),[t]),i=j(vt),[r,o]=$(Date.now()),[a,c]=N(()=>S_(s,r),[r,s]);return N(()=>{i.current(),i.current=n?Un.watch(u=>{typeof u!="symbol"&&o(u.timestamp)}):vt},[o,n]),{clockTime:a,GMTOffset:c,timestamp:r,timezone:s}},Ro=t=>oa(t).slice(8,-1)==="Object"?t:z,Hn=(t,e=!0)=>({enumerable:e!==!1,get:t}),C_=t=>Object.freeze({systemToTimezone:tt(e=>Xs(t,e)),timezoneToSystem:tt(e=>la(t,e)),timezoneOffset:tt(e=>t(e).offset)}),Nc=(t,e,n=t)=>{const s=(i,r)=>{let o=i;i==null?o=n:Vn(i)||(o=r??n);const a=ln(t,o,e);return a===o?a:r??n};return i=>{const r=Hn(()=>o);let o=s(i);return Z({value:r,descriptor:tt({...r,set(a){const c=o;o=s(a,o),c!==o&&(this.now=this.now)}})})}},D_=(t,e)=>n=>X(n)?n.call(t,e):n,b_=t=>!ce(t,"offsets"),v_=t=>ce(t,"from"),$i=({now:t})=>t,O_=(()=>{const t=new Map;return e=>{let n=t.get(e);return n===void 0&&(n=Object.freeze([0,0,e,0,0,0,-1]),t.set(e,n)),n}})(),qe=t=>{try{const e=t instanceof Date||+t===t?t:void 0,n=new Date(e).getTime();return isNaN(n)?void 0:n}catch{}},Fi=t=>t.setHours(0,0,0,0),x_=t=>(Fi(t),t.setDate(1)),R_=t=>(Fi(t),t.setMonth(0,1)),j_=(t,e=t)=>0+(-e%7+(t-7))%7,w_=(t=z,e=z)=>{const n=Ro(t),s=Ro(e);return()=>{const i=Oi(),r=Hn(()=>d),o=Hn(()=>i.tz.current),a=Z({now:r,timezone:o,...C_(i)}),c=D_(n,a);let{from:u,to:f,now:d}=z;const m=I=>{d=qe(I??Date.now())??d;t:{if(b_(n)){u=qe(c(n.from))??d,f=qe(c(n.to))??d;break t}let y,L,T;(T=v_(n))?(y=new Date(u=qe(c(n.from))??d),L=1):(y=new Date(f=qe(c(n.to))??d),L=-1),y=new Date(a.timezoneToSystem(y));const[S=0,C=0,v=0,M=0,x=0,w=0,k=0]=c(n.offsets);y.setFullYear(y.getFullYear()+S*L,y.getMonth()+C*L,y.getDate()+v*L),y.setHours(y.getHours()+M*L,y.getMinutes()+x*L,y.getSeconds()+w*L,y.getMilliseconds()+k*L);const D=qe(a.systemToTimezone(y))??d;T?f=D:u=D}u>f&&([u,f]=[f,u])},g=I=>{const y=i.tz,L=y.current;i.tz=I,y.current!==L&&m(d)};return m(),Z({...s,from:Hn(()=>u),now:{...r,set:m},timezone:{...o,set:g},to:Hn(()=>f)})}},Ui=w_,Xr=1,P_=O_(7),k_=Nc(0,6,Xr),W_=(t=0)=>{const e=~~ln(0,t,1/0)||0;return(n=Xr)=>{const s=e?{offsets:P_}:{to:$i},i=k_(n);return Ui({from:({now:r,systemToTimezone:o,timezoneToSystem:a})=>{const c=new Date(r),u=new Date(a(r)),f=c.getDay()-u.getDay();if(Fi(c),f){const m=f>1?-1:f<-1?1:f;c.setDate(c.getDate()-m)}const d=j_(i.value,c.getDay())-e*7;return c.setDate(c.getDate()+d),o(c)},...s},{firstWeekDay:i.descriptor})()}},Lc=W_,z_=Object.freeze([0,1,0,0,0,0,-1]),B_=(t=0)=>{const e=~~ln(0,t,1/0)||0;return Ui({from:({now:s,systemToTimezone:i,timezoneToSystem:r})=>{const o=new Date(s),a=new Date(r(s)),c=o.getMonth()-a.getMonth();let u=e;return c&&(u+=c>1?-1:c<-1?1:c),x_(o),o.setMonth(o.getMonth()-u),i(o)},...e?{offsets:z_}:{to:$i}})},Sc=B_,$_=Sc(1),F_=$_,U_=365,H_=1,G_=1,Y_=Nc(H_,U_,G_),Z_=t=>{const e=Y_(t);return Ui({from:({now:n,systemToTimezone:s,timezoneToSystem:i})=>{const r=new Date(n),o=new Date(i(n)),a=r.getDate()-o.getDate();let c=e.value-1;return a&&(c+=a>1?-1:a<-1?1:a),Fi(r),r.setDate(r.getDate()-c),s(r)},to:$i},{numberOfDays:e.descriptor})()},J_=Z_,Q_=Lc(1),V_=Q_,X_=Sc(0),K_=X_,q_=Lc(0),ty=q_,ey=Ui({from:({now:t,systemToTimezone:e,timezoneToSystem:n})=>{const s=new Date(t),i=new Date(n(t)),r=s.getFullYear()-i.getFullYear();return R_(s),s.setFullYear(s.getFullYear()-r),e(s)},to:$i}),ny=ey,sy=()=>Object.freeze({"rangePreset.last7Days":J_(7),"rangePreset.thisWeek":ty(),"rangePreset.lastWeek":V_(),"rangePreset.thisMonth":K_(),"rangePreset.lastMonth":F_(),"rangePreset.yearToDate":ny()}),iy=({now:t=Date.now(),options:e,selectedOption:n,timezone:s})=>{const{i18n:i}=q(),[r,o]=$(),[a,c]=$(),[u,f]=$(),d=j(),m=j(),[g,I,y]=N(()=>{const x=i.get("rangePreset.custom"),w=Object.keys(e),k=Object.freeze(w.map(W=>i.get(W)));return[x,(W,K=k)=>{const ct=K.findIndex(H=>H===W);return e[w[ct]]},k]},[i,e]),[L,T]=$(n===g),S=N(()=>Object.freeze([...y,g]),[g,y]),C=N(()=>L?S:y,[L,y,S]),v=E(x=>{const w=I(x,y);w&&(o(i.fullDate(w.from)),c(i.fullDate(w.to)),T(!1),f(x))},[i,g,I,u,y]),M=E(()=>{o(void 0),c(void 0),T(!0),f(g)},[g]);return N(()=>{n===g?f(g):v(n)},[]),N(()=>{var x;if(d.current!==t||m.current!==s){const w=Object.values(e);w.forEach(k=>{k.now=t,k.timezone=s}),d.current=t,m.current=(x=w[0])==null?void 0:x.timezone,v(u)}},[t,s,e]),{customSelection:M,from:r,onSelection:v,options:C,selectedOption:u,to:a}},ry=({calendarRef:t,onTimeRangeSelected:e,timestamp:n,...s})=>{const{customSelection:i,from:r,onSelection:o,options:a,selectedOption:c,to:u}=iy(s),f=N(()=>Object.freeze(a.map(I=>({id:I,name:I}))),[a]),d=E(({target:I})=>o(I==null?void 0:I.value),[o]),m=j(!0),g=j(n);return B(()=>{t!=null&&t.current&&r&&u&&(m.current=!0,t.current.from=new Date(r),t.current.to=new Date(u))},[t,r,u]),B(()=>{g.current!==n&&(g.current=n,m.current?m.current=!1:i())},[i,n]),B(()=>{c&&(e==null||e(c))},[c,e]),h(Bi,{items:f,filterable:!1,multiSelect:!1,onChange:d,selected:c})},oy=ry,Pt=(()=>{const t=s=>Object.freeze(Object.create(z,Object.fromEntries(Object.entries(s).map(([i,r])=>[i,{value:r}])))),e=s=>{try{return Object.getPrototypeOf(s)===z}catch{return!1}},n=(s,i)=>{if(!s)return t({enumerable:!0,writable:s!==!1,value:i});let r=i;return t({enumerable:!0,get:()=>r,set:o=>{r=s(o)}})};return Object.defineProperties(n,{is:{value:e},isObject:{value:s=>oa(s).slice(8,-1)==="Object"},immutable:{value:s=>n(!1,s)},mutable:{value:s=>n(void 0,s)},restricted:{value:()=>n(!1)}})})(),Ac=(()=>{const t=(n={},s=!1)=>{const i=Object.create(null);for(const[r,o]of Object.entries(n)){try{const a=Pt.is(o),c=Pt.isObject(o);if(a||c){Object.defineProperty(i,r,a?o:t(o,s));continue}else if(s){Object.defineProperty(i,r,Pt.immutable(o));continue}}catch{}i[r]=o}return Pt((r={})=>Object.assign(i,r),i)};return Object.defineProperties(t,{unwrapped:{value:(n={},s=!1)=>{const i=t(n,s);return Object.create(null,{P:i}).P}}})})();var Kr=(t=>(t[t.DATE=0]="DATE",t[t.DAY_OF_WEEK=1]="DAY_OF_WEEK",t[t.MONTH_HEADER=2]="MONTH_HEADER",t))(Kr||{});const ay=(()=>{const t=new Set,e=(s,i,r,o)=>{let a=o==null?void 0:o[r];return a=X(a)?a:Lh,!Bn(a(s[r]),a(i[r]))};return Object.defineProperty(s=>(i,r)=>{try{for(const o in i)if(t.add(o),e(i,r,o,s))return!1;for(const o in r)if(!t.has(o)&&(t.add(o),e(i,r,o,s)))return!1;return!0}finally{t.clear()}},"exclude",{value:vt})})(),ii=ay,Ec="adyen-fp-calendar__cell adyen-fp-calendar__cell--date",Cc="adyen-fp-calendar__date",cy=(t=z,e)=>{const n=Ac.unwrapped({childClassName:Pt.mutable(Cc),childProps:{children:Pt.restricted(),className:""},className:Pt.mutable(Ec),props:{...t,children:Pt.restricted(),className:""}},!0);return e==null||e(Kr.DATE,n),n},ly=Vt(({grid:t,prepare:e,datetime:n,flags:s,index:i,label:r,onlyCellsWithin:o},a)=>{const c=s.WITHIN_BLOCK,u={"data-cursor-position":i,"data-within-month":c,tabIndex:-1};if(c){const y=s.WITHIN_RANGE;u["data-today"]=s.CURRENT,u["data-first-week-day"]=s.LINE_START,u["data-last-week-day"]=s.LINE_END,u["data-weekend"]=s.WEEKEND,u["data-first-month-day"]=s.BLOCK_START,u["data-last-month-day"]=s.BLOCK_END,u["data-within-range"]=y,y&&(u["data-range-end"]=s.RANGE_END,u["data-range-start"]=s.RANGE_START,u["data-selection-end"]=s.SELECTION_END,u["data-selection-start"]=s.SELECTION_START,u["data-within-selection"]=s.WITHIN_SELECTION,u["aria-selected"]=`${!!(s.SELECTION_END||s.SELECTION_START||s.WITHIN_SELECTION)}`),i===+t.cursor&&(u.ref=a)}const f=cy(u,e),{children:d,className:m,...g}=f.props||z,I=ei(f.className,Ec,m);return h("td",{...g,...u,className:I,children:(!o||c)&&(()=>{const{children:y,className:L,...T}=f.childProps||z,S=ei(f.childClassName,Cc,L);return h("time",{...T,className:S,dateTime:n,children:r})})()})}),uy=ft(ly,ii({block:ii.exclude,flags:t=>+t})),Dc="adyen-fp-calendar__cell adyen-fp-calendar__cell--day-of-week",bc="adyen-fp-calendar__day-of-week",dy=(t=z,e)=>{const n=Ac.unwrapped({childClassName:Pt.mutable(bc),childProps:{children:Pt.restricted(),className:""},className:Pt.mutable(Dc),props:{...t,children:Pt.restricted(),className:""}},!0);return e==null||e(Kr.DAY_OF_WEEK,n),n},hy=({prepare:t,flags:e,labels:{long:n,short:s}})=>{const i={"aria-label":n,"data-first-week-day":e.LINE_START,"data-last-week-day":e.LINE_END,"data-weekend":e.WEEKEND,scope:"col"},r=dy(i,t),{children:o,className:a,...c}=r.props||z,u=ei(r.className,Dc,a),{children:f,className:d,...m}=r.childProps||z,g=ei(r.childClassName,bc,d);return h("th",{...c,...i,className:u,children:h("abbr",{...m,className:g,children:s})})},fy=ft(hy,ii({block:ii.exclude,flags:t=>+t}));const my=Vt(({cursorRootProps:t,onlyCellsWithin:e,prepare:n,grid:s},i)=>h("ol",{className:"adyen-fp-calendar",role:"none",...t,children:s.map(r=>h("li",{className:"adyen-fp-calendar__month",role:"none",children:[h("div",{className:"adyen-fp-calendar__month-name",role:"none",children:h("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),h("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-fp-calendar__grid",style:{"--adyen-fp-calendar-rowspan":s.rowspan},children:[h("thead",{children:h("tr",{className:"adyen-fp-calendar__row",children:s.weekdays.map((o,a)=>h(fy,{grid:s,block:r,prepare:n,cell:a,...o},o.labels.long))})}),h("tbody",{children:r.map((o,a)=>h("tr",{className:"adyen-fp-calendar__row",children:o.map((c,u)=>h(uy,{ref:i,grid:s,block:r,prepare:n,cell:u,onlyCellsWithin:e,row:a,...c},`${r.month}:${c.timestamp}`))},`${r.month}:${a}`))})]})]},r.datetime))})),gy=ft(my),Iy=864e5,py=["narrow","short","long"],vc=[0,1,6],hn=[1,2,3,4,6,12],jo=42,_y=[0,1],qr=Symbol(),to=Symbol(),eo=Symbol(),wo=[eo,to,qr],be=Symbol(),rn=Symbol(),on=Symbol(),yy=[rn,on,be],Oc=Symbol(),xc=Symbol(),Rc=Symbol(),jc=Symbol(),wc=Symbol(),Pc=Symbol(),kc=Symbol(),Wc=Symbol(),zc=Symbol(),Bc=Symbol(),no=Symbol(),so=Symbol(),$c=Symbol(),Po=Symbol(),mt=Symbol(),ko=Symbol(),Ot=Symbol(),Fc=Symbol(),Hs=Symbol(),Gs=Symbol(),_r=(()=>{const t=function*(s=r=>r,i){for(let r=0;r<this.length;r++)yield s.call(i,this[r],r,this)},e=Object.freeze(Z({[Symbol.iterator]:{value(){return t.call(this)}},map:{value(s,i){return[...t.call(this,s,i)]}}})),n=s=>(i,r,o)=>{if(Ne(r)){const a=+r;if(a>=0&&a<i.length)return s(a)}return Reflect.get(i,r,o)};return(s,i)=>X(s)?_r({length:{get:s}},i):zn(s)?_r({length:{value:s}},i):new Proxy(vi(e,s),{get:n(i),set:ir})})(),Oe=_r,Wo=(t,e)=>{if(e>=t)return t;let n=Math.max(1,hn.indexOf(t));for(;--n&&e<hn[n];);return hn[n]},My=t=>hn[Math.max(hn.indexOf(t),0)],zo=(t=0)=>Object.freeze(_y.map(e=>Rs(6-t+e,7))),an=t=>Ye(t)?0:t-new Date(t).setHours(0,0,0,0),Bo=t=>t===void 0?t:new Date(t),yr=(t,e)=>{if(Ye(t)||Ye(e))return 1/0;const n=new Date(t),s=new Date(e);return Math.abs(s.getMonth()-n.getMonth()+(s.getFullYear()-n.getFullYear())*12)},$o=(()=>{const t=[31,[29,28],31,30,31,30,31,31,30,31,30,31];return(e,n,s=0)=>{const i=e+s,r=Rs(i,12),o=n+Math.floor(i/12);return[r===1?t[1][(o%100?o%4:o%400)&&1]:t[r],r,o]}})();var cs,Et,Ct,In,pn;class Ty{constructor(...e){_(this,cs,1/0);_(this,Et,1/0);_(this,Ct,-1/0);_(this,In,0);_(this,pn,0);if(e.length>=2){let n=new Date(e[0]).getTime();if(typeof e[1]!="symbol")p(this,Ct,n||l(this,Ct)),p(this,Et,new Date(e[1]).getTime()||l(this,Et)),l(this,Et)<l(this,Ct)&&([Ee(this,Et)._,Ee(this,Ct)._]=[l(this,Ct),l(this,Et)]),p(this,pn,an(l(this,Ct))),p(this,In,an(l(this,Et))),p(this,cs,yr(l(this,Ct),l(this,Et))+1);else if(!isNaN(n))switch(e[1]){case so:p(this,Et,n),p(this,In,an(l(this,Et)));break;case no:default:p(this,Ct,n),p(this,pn,an(l(this,Ct)));break}}}get numberOfMonths(){return l(this,cs)}get endTimestamp(){return l(this,Et)}get endTimestampOffset(){return l(this,In)}get startTimestamp(){return l(this,Ct)}get startTimestampOffset(){return l(this,pn)}}cs=new WeakMap,Et=new WeakMap,Ct=new WeakMap,In=new WeakMap,pn=new WeakMap;const Hi=(...t)=>{const e=new Ty(...t);return Z({from:{value:e.startTimestamp},to:{value:e.endTimestamp},offsets:{value:Z({from:{value:e.startTimestampOffset},to:{value:e.endTimestampOffset}})},span:{value:e.numberOfMonths}})},ri=Hi(),Ny=()=>Hi(Date.now(),no),Ly=()=>Hi(Date.now(),so),Sy=(...t)=>t.length===0?ri:Hi(...t);var at=(t=>(t[t.CURRENT=1]="CURRENT",t[t.CURSOR=2]="CURSOR",t[t.WEEKEND=4]="WEEKEND",t[t.LINE_START=8]="LINE_START",t[t.LINE_END=16]="LINE_END",t[t.WITHIN_BLOCK=32]="WITHIN_BLOCK",t[t.BLOCK_START=64]="BLOCK_START",t[t.BLOCK_END=128]="BLOCK_END",t[t.WITHIN_RANGE=256]="WITHIN_RANGE",t[t.RANGE_START=512]="RANGE_START",t[t.RANGE_END=1024]="RANGE_END",t[t.WITHIN_SELECTION=2048]="WITHIN_SELECTION",t[t.SELECTION_START=4096]="SELECTION_START",t[t.SELECTION_END=8192]="SELECTION_END",t[t.ALL=16383]="ALL",t))(at||{}),tn=(t=>(t[t.PREV=1]="PREV",t[t.BLOCK=0]="BLOCK",t[t.FRAME=2]="FRAME",t[t.PERIOD=4]="PERIOD",t))(tn||{}),Mr=(t=>(t[t.PREV_PERIOD=5]="PREV_PERIOD",t[t.PREV_FRAME=3]="PREV_FRAME",t[t.PREV=1]="PREV",t[t.NEXT=0]="NEXT",t[t.NEXT_FRAME=2]="NEXT_FRAME",t[t.NEXT_PERIOD=4]="NEXT_PERIOD",t))(Mr||{});const Ay=(()=>{const t={},e=Object.keys(at).filter(s=>isNaN(+s)),n=s=>s!=="ALL"&&Ne(s)&&e.includes(s);return s=>{const i=s&at.ALL;return t[i]||(t[i]=new Proxy(Z({valueOf:{value:()=>i}}),{...Di,get:(r,o)=>{switch(o){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(o))return}return i&at[o]?1:void 0}})),t[i]}})(),Uc=Ay;var _n,It,ls,us,ds,hs,Wt,Dt,ke,yn,Mn,Tn,We,se,fs,lt,ot,ut,ge,Nn,Ie,ms,gs,pe,ie,Is,ps,oi,ai,ci,Hc,re,Ce,li,Gc,pt,St,ze,Gn,_s,Nr;const cn=class cn{constructor(){_(this,ci);_(this,re);_(this,li);_(this,pt);_(this,ze);_(this,_s);_(this,It,0);_(this,ls,void 0);_(this,us,void 0);_(this,ds,-1);_(this,hs,-1);_(this,Wt,void 0);_(this,Dt,void 0);_(this,ke,void 0);_(this,yn,!1);_(this,Mn,void 0);_(this,Tn,0);_(this,We,[]);_(this,se,l(cn,_n));_(this,fs,12);_(this,lt,void 0);_(this,ot,void 0);_(this,ut,1);_(this,ge,void 0);_(this,Nn,Tc());_(this,Ie,void 0);_(this,ms,-1/0);_(this,gs,1/0);_(this,pe,-1/0);_(this,ie,1/0);_(this,Is,1/0);_(this,ps,0);O(this,"daysInWeek",0);O(this,"origin");O(this,"originTimestamp");_(this,oi,Oe(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));_(this,ai,Oe(()=>l(this,ut),b(this,li,Gc).bind(this)))}get fromTimestamp(){return l(this,ms)}get toTimestamp(){return l(this,gs)}get numberOfBlocks(){return l(this,Is)}get blankSelection(){return l(this,lt)===l(this,ot)&&l(this,ot)===void 0}get cursor(){return l(this,Wt)??-1}get daysOfWeek(){return l(this,oi)}get dynamicBlockHeight(){return l(this,yn)}set dynamicBlockHeight(e){e==null?p(this,yn,!!e):e===!!e&&p(this,yn,e)}set effect(e){e==null?p(this,Mn,void 0):X(e)&&p(this,Mn,e)}get firstWeekDay(){return l(this,Tn)}set firstWeekDay(e){if(e!=null){if(!vc.includes(e)||l(this,Tn)===p(this,Tn,e))return}else this.firstWeekDay=0}get frameBlocks(){return l(this,ai)}get isAtEnd(){return!Ye(l(this,ie))&&l(this,ie)===l(this,ut)-1}get isAtStart(){return!Ye(l(this,pe))&&l(this,pe)===0}get locale(){return l(this,se)}set locale(e){const n=l(this,se);if(e==null)p(this,se,l(cn,_n));else if(typeof Intl<"u")try{p(this,se,new Intl.Locale(e).toString())}catch{p(this,se,l(cn,_n))}l(this,se)!==n&&this.refreshFrame(!0)}get selectionStart(){return l(this,lt)}get selectionEnd(){return l(this,ot)}get size(){return l(this,ut)}set size(e){const n=Math.min(e!=null&&My(e)||1,l(this,fs));l(this,ut)!==p(this,ut,n)&&(b(this,_s,Nr).call(this),this.refreshFrame())}get timeslice(){return l(this,ge)}set timeslice(e){if(e===l(this,ge)||e==null&&l(this,ge)===ri)return;const{from:n,to:s,span:i,offsets:r}=e;p(this,ge,e),p(this,ms,n-r.from),p(this,gs,s-r.to),p(this,Is,i);const o=l(this,lt)===void 0?l(this,lt):Math.max(l(this,lt),n),a=l(this,ot)===void 0?l(this,ot):Math.min(l(this,ot),s);o===l(this,lt)||a===l(this,ot)?(p(this,lt,o),p(this,ot,a)):p(this,lt,p(this,ot,void 0)),this.reslice(),p(this,fs,Wo(12,this.numberOfBlocks)),p(this,ut,Wo(l(this,ut),this.numberOfBlocks)),this.shiftFrameToTimestamp(l(this,ke))}set trackCurrentDay(e){e===!!e?e&&!l(this,Ie)?p(this,Ie,l(this,Nn).watch(this.refreshFrame.bind(this,!0))):!e&&l(this,Ie)&&(l(this,Ie).call(this),p(this,Ie,void 0)):e==null&&(this.trackCurrentDay=!1)}get units(){return l(this,ps)}initialize(){this.withCurrentDayTimestamp(l(this,Nn).timestamp),this.timeslice=ri}refreshFrame(e=!1){var n;if(l(this,We).length=0,!(l(this,Dt)===void 0||e)){const s=this.getFrameBlockAtIndex(l(this,It)),{from:i,to:r}=s.inner,[o]=b(this,re,Ce).call(this,this.getTimestampAtIndex(i+l(this,Dt)),!1);p(this,Dt,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(i),o));const a=i+l(this,Dt),c=ln(i,a,r);if(c>a)return p(this,Dt,this.getUnitsForFrameBlockAtIndex(--Ee(this,It)._)+a-c),l(this,It)>=0?this.refreshFrame():(p(this,It,l(this,ut)-1),this.shiftFrameByOffset(-1,Hs));if(c<a)return p(this,Dt,a-c-1),++Ee(this,It)._<l(this,ut)?this.refreshFrame():(p(this,It,0),this.shiftFrameByOffset(1,Hs));p(this,ls,i),p(this,us,r),p(this,ke,b(this,re,Ce).call(this,this.getTimestampAtIndex(a),!1)[0]),p(this,Dt,this.getCursorBlockOriginTimestampOffset(l(this,ke))),p(this,Wt,i+l(this,Dt));const u=l(this,It)>0?this.getFrameBlockAtIndex(0):s,f=l(this,It)<l(this,ut)-1?this.getFrameBlockAtIndex(l(this,ut)-1):s;p(this,ds,u.inner.from),p(this,hs,f.inner.to),p(this,ps,f.outer.to)}this.withCurrentDayTimestamp(l(this,Nn).timestamp),(n=l(this,Mn))==null||n.call(this)}shiftFrameByOffset(e,n){if(e&&Vn(e))switch(n){case Fc:return b(this,ze,Gn).call(this,e);case Gs:return b(this,ze,Gn).call(this,e*12);case Hs:default:return b(this,ze,Gn).call(this,e*l(this,ut))}}shiftFrameCursor(e){switch(e){case Oc:return b(this,pt,St).call(this,-1);case wc:return b(this,pt,St).call(this,1);case Bc:return b(this,pt,St).call(this,-this.rowspan);case jc:return b(this,pt,St).call(this,this.rowspan);case Rc:return b(this,pt,St).call(this,l(this,ls)-l(this,Wt));case xc:return b(this,pt,St).call(this,l(this,us)-l(this,Wt));case kc:return b(this,pt,St).call(this,-(l(this,Wt)%this.rowspan));case Pc:return b(this,pt,St).call(this,this.rowspan-(l(this,Wt)%this.rowspan+1));case zc:return b(this,pt,St).call(this,-this.getUnitsForFrameBlockAtIndex((l(this,It)??0)-1));case Wc:return b(this,pt,St).call(this,this.getUnitsForFrameBlockAtIndex(l(this,It)??0))}if(!(e<0)&&e>=l(this,ds)&&e<=l(this,hs))return b(this,pt,St).call(this,e-l(this,Wt))}shiftFrameToTimestamp(e){const n=b(this,re,Ce).call(this,e,!1)[0];p(this,Dt,this.getCursorBlockOriginTimestampOffset(p(this,ke,this.originTimestamp=n))),this.reoriginate(),[Ee(this,pe)._,Ee(this,ie)._]=this.getEdgeBlockOffsetsFromOrigin(),b(this,_s,Nr).call(this),this.refreshFrame(),b(this,pt,St).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(l(this,Wt)),n))}clearSelection(){this.blankSelection||(p(this,lt,p(this,ot,void 0)),this.refreshFrame(!0))}getCursorOrderForTimeRelativeToSelectionEdge(e,n=mt){let s,i=!1;switch(n){case mt:s=l(this,lt);break;case Ot:s=l(this,ot),i=!0;break}if(s===void 0)return 0;const r=b(this,re,Ce).call(this,e,!1).reduce((a,c)=>a+c,0),o=this.getUnitsOffsetForTimestamp(s,r)*(i?-1:1);return o&&(o>0?1:-1)}updateSelection(e,n){const s=l(this,lt),i=l(this,ot),r=b(this,re,Ce).call(this,e,!1).reduce((o,a)=>o+a,0);switch(n===Po&&(r<=s?n=Ot:r>=i&&(n=mt)),n){case mt:p(this,lt,r),p(this,ot,Math.max(l(this,lt),i??r));break;case Ot:p(this,ot,r),p(this,lt,Math.min(s??r,l(this,ot)));break;case Po:case ko:{let o=Math.abs(r-(s??r)),a=Math.abs(r-(i??r));n===ko&&([o,a]=[a,o]),o>a?p(this,lt,r):p(this,ot,r);break}case $c:default:p(this,lt,p(this,ot,r));break}(l(this,lt)!==s||l(this,ot)!==i)&&this.refreshFrame(!0)}};_n=new WeakMap,It=new WeakMap,ls=new WeakMap,us=new WeakMap,ds=new WeakMap,hs=new WeakMap,Wt=new WeakMap,Dt=new WeakMap,ke=new WeakMap,yn=new WeakMap,Mn=new WeakMap,Tn=new WeakMap,We=new WeakMap,se=new WeakMap,fs=new WeakMap,lt=new WeakMap,ot=new WeakMap,ut=new WeakMap,ge=new WeakMap,Nn=new WeakMap,Ie=new WeakMap,ms=new WeakMap,gs=new WeakMap,pe=new WeakMap,ie=new WeakMap,Is=new WeakMap,ps=new WeakMap,oi=new WeakMap,ai=new WeakMap,ci=new WeakSet,Hc=function(e){return ln(l(this,pe),e||0,l(this,ie)-l(this,ut)+1)},re=new WeakSet,Ce=function(e,n=!0){let s=new Date(e).getTime();if(isNaN(s))return b(this,re,Ce).call(this,Date.now());const{from:i,to:r}=l(this,ge),o=ln(i,s,r);o!==s&&n?(s=aa(i,r),(isNaN(s)||Ye(s))&&(s=o)):s=o;const a=an(s);return[s-a,a]},li=new WeakSet,Gc=function(e){if(Vn(e)&&e>=0&&e<l(this,ut)){if(!l(this,We)[e]){const n=this.getFrameBlockAtIndex(e);if(!n)return;const s=`${n.year}-${`0${1+n.month}`.slice(-2)}-01`,[i,r]=this.getFormattedDataForFrameBlock(new Date(s).setHours(12)),o=n.outer.from;l(this,We)[e]=Oe({datetime:tt(r),label:tt(i),length:tt(Math.ceil(n.outer.units/this.rowspan)),month:tt(n.month),year:tt(n.year)},a=>{const c=a*this.rowspan;return Oe(this.rowspan,u=>{const[f,d]=n[u+c],[m,g]=this.getFormattedDataForBlockCell(new Date(f).setHours(12));return Z({datetime:tt(g),flags:tt(Uc(d)),index:tt(o+u+c),label:tt(m),timestamp:tt(f)})})})}return l(this,We)[e]}},pt=new WeakSet,St=function(e){e!==0&&(p(this,Dt,l(this,Dt)+e),this.refreshFrame())},ze=new WeakSet,Gn=function(e){const n=b(this,ci,Hc).call(this,e);n&&(this.shiftOrigin(n),p(this,pe,l(this,pe)-n),p(this,ie,l(this,ie)-n),p(this,It,Rs(l(this,It)-n,l(this,ut))),this.refreshFrame())},_s=new WeakSet,Nr=function(){const e=l(this,ut)-1,n=Math.min(e-this.origin%l(this,ut),l(this,ie))-e;n&&b(this,ze,Gn).call(this,n)},_(cn,_n,"en-US");let Tr=cn;var Be,$e,Ln,ys,Sn,An,Ms,Ts,Ns,Ls,En,Cn,Dn,Ss,Lr,_e,en,bn,Ys;class Ey extends Tr{constructor(){super();_(this,Ss);_(this,_e);_(this,bn);_(this,Be,7);_(this,$e,[]);_(this,Ln,zo(this.firstWeekDay));_(this,ys,void 0);_(this,Sn,-1/0);_(this,An,1/0);_(this,Ms,1/0);_(this,Ts,void 0);_(this,Ns,void 0);_(this,Ls,void 0);_(this,En,void 0);_(this,Cn,void 0);_(this,Dn,void 0);O(this,"daysInWeek",l(this,Be));this.initialize()}get fromTimestamp(){return l(this,Sn)}get toTimestamp(){return l(this,An)}get numberOfBlocks(){return l(this,Ms)}get currentDayTimestamp(){return l(this,ys)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const s=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==s&&this.refreshFrame(!0)}get rowspan(){return l(this,Be)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const s=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==s&&(l(this,$e).length=0,p(this,Ln,zo(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return new Date(n).getDate()-1}getDayOfWeekAtIndex(n){if(!l(this,$e)[n]){const s=new Date(this.getTimestampAtIndex(n));let i=0;l(this,Ln).includes(n)&&(i|=at.WEEKEND),n===0?i|=at.LINE_START:n===6&&(i|=at.LINE_END);const r={};for(const o of py)r[o]=tt(s.toLocaleDateString(this.locale,{weekday:o}));l(this,$e)[n]=Z({flags:tt(Uc(i)),labels:tt(Z(r))})}return l(this,$e)[n]}getEdgeBlockOffsetsFromOrigin(){return[b(this,Ss,Lr).call(this,l(this,Sn)),b(this,Ss,Lr).call(this,l(this,An))]}getFormattedDataForBlockCell(n){const s=new Date(n).toISOString();return[Number(s.slice(8,10)).toLocaleString(this.locale),s.slice(0,10)]}getFormattedDataForFrameBlock(n){const s=new Date(n);return[s.toLocaleDateString(this.locale,{month:"long",year:"numeric"}),s.toISOString().slice(0,7)]}getFrameBlockAtIndex(n){const[s,i,r]=$o(this.origin,l(this,En),n),o=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:l(this,Ns),a=o+s-1,c=Math.floor(o/7)*7,u=this.dynamicBlockHeight?Math.ceil((a+1)/7)*7:c+jo,f=this.dynamicBlockHeight?u-c:jo,d=new Proxy(Z(),{...Di,get:(m,g,I)=>{if(Ne(g)){const y=+g;if(Vn(y)&&y>=0&&y<f){const L=c+y,T=this.getTimestampAtIndex(L),S=L%l(this,Be);let C=T===this.currentDayTimestamp?at.CURRENT:0;return L===this.cursor&&(C|=at.CURSOR),l(this,Ln).includes(S)&&(C|=at.WEEKEND),S===0?C|=at.LINE_START:S===l(this,Be)-1&&(C|=at.LINE_END),L>=o&&L<=a&&(L===o?C|=at.BLOCK_START:L===a&&(C|=at.BLOCK_END),C|=at.WITHIN_BLOCK),T>=this.fromTimestamp&&T<=this.toTimestamp&&(T===this.fromTimestamp&&(C|=at.RANGE_START),T===this.toTimestamp&&(C|=at.RANGE_END),C|=at.WITHIN_RANGE),T>=l(this,Cn)&&T<=l(this,Dn)&&(T===l(this,Cn)&&(C|=at.SELECTION_START),T===l(this,Dn)&&(C|=at.SELECTION_END),C|=at.WITHIN_SELECTION),[T,C]}}return Reflect.get(m,g,I)}});return vi(d,{inner:{value:Z({from:{value:o},to:{value:a},units:{value:s}})},month:{value:i},outer:{value:Z({from:{value:c},to:{value:u-1},units:{value:f}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return $o(this.origin,l(this,En),n)[0]}getUnitsOffsetForTimestamp(n,s){return Math.round((s-n)/Iy)}reoriginate(){const n=new Date(this.originTimestamp),s=(8-(n.getDate()-n.getDay()+this.firstWeekDay)%7)%7;this.origin=n.getMonth(),p(this,En,n.getFullYear()),this.originTimestamp=n.setDate(1),p(this,Ns,s),p(this,Ls,n.setDate(1-s)),p(this,Ts,n.getDate())}reslice(){b(this,bn,Ys).call(this),p(this,Sn,b(this,_e,en).call(this,super.fromTimestamp)),p(this,An,b(this,_e,en).call(this,super.toTimestamp)),p(this,Ms,yr(super.fromTimestamp,super.toTimestamp)+1)}shiftOrigin(n){this.originTimestamp=new Date(this.originTimestamp).setMonth(this.origin+n),this.reoriginate()}clearSelection(){super.clearSelection(),b(this,bn,Ys).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return new Date(l(this,Ls)).setDate(l(this,Ts)+n)}updateSelection(n,s){super.updateSelection(n,s),b(this,bn,Ys).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(n){p(this,ys,b(this,_e,en).call(this,n))}}Be=new WeakMap,$e=new WeakMap,Ln=new WeakMap,ys=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ms=new WeakMap,Ts=new WeakMap,Ns=new WeakMap,Ls=new WeakMap,En=new WeakMap,Cn=new WeakMap,Dn=new WeakMap,Ss=new WeakSet,Lr=function(n){const s=yr(n,this.originTimestamp);return n<this.originTimestamp?0-s:s},_e=new WeakSet,en=function(n){return n===void 0||Ye(n)?n:n-an(n)},bn=new WeakSet,Ys=function(){p(this,Cn,b(this,_e,en).call(this,this.selectionStart)),p(this,Dn,b(this,_e,en).call(this,this.selectionEnd))};var Ko,qo,nt,zt,A,Bt,Rt,$t,dt,Fe,bt,vn,oe,ae,jt,Yt,On,ui,ye,wt,di,Me,xn,Ue,As,hi,V,fi,mi,gi,Ii,pi,_i,yi,Yc,Mi,Zc,Ti,Jc,Ni,Rn,Zs,He,Yn,Es,Sr,Li,Qc,Si,Vc,Ai,Xc,Ei,Kc,Cs,Ar,Ci,qc,Ge,Zn,Ds,Er,jn,Js,bs,Cr,vs,Dr,Os,br,xs,vr;let Cy=(V=class{constructor(){_(this,He);_(this,Es);_(this,Li);_(this,Si);_(this,Ai);_(this,Ei);_(this,Cs);_(this,Ci);_(this,Ge);_(this,Ds);_(this,jn);_(this,bs);_(this,vs);_(this,Os);_(this,xs);O(this,"grid");O(this,"kill");_(this,nt,z);_(this,zt,!1);_(this,A,void 0);_(this,Bt,void 0);_(this,Rt,void 0);_(this,$t,!1);_(this,dt,rn);_(this,Fe,!1);_(this,bt,void 0);_(this,vn,(Ko=l(this,bt))==null?void 0:Ko.join(" "));_(this,oe,void 0);_(this,ae,void 0);_(this,jt,void 0);_(this,Yt,void 0);_(this,On,void 0);_(this,ui,Tc());_(this,ye,[]);_(this,wt,void 0);_(this,di,new Proxy(Oe(()=>{var e;return((e=l(this,wt))==null?void 0:e.length)??0},b(this,Cs,Ar).bind(this)),{...Di,get:(e,n,s)=>{var r,o;const i=((r=l(this,wt))==null?void 0:r.indexOf(n))??-1;return i>=0?(o=b(this,Cs,Ar).call(this,i))==null?void 0:o[1]:Reflect.get(e,n,s)}}));_(this,Me,Ze({blocks:()=>{var e;return(e=l(this,A))==null?void 0:e.size},cells:()=>{var e;return(e=l(this,A))==null?void 0:e.units},controls:()=>Fn(wo,l(this,nt).controls),cursor:()=>{var e;return(e=l(this,A))==null?void 0:e.cursor},from:()=>{var e;return(e=l(this,A))==null?void 0:e.selectionStart},highlight:()=>l(this,dt),locale:()=>{var e;return(e=l(this,A))==null?void 0:e.locale},minified:()=>$n(l(this,nt).minified),origin:()=>{var e;return(e=l(this,A))==null?void 0:e.getTimestampAtIndex(0)},to:()=>{var e;return(e=l(this,A))==null?void 0:e.selectionEnd},today:()=>l(this,ui).timestamp}));_(this,xn,(qo=l(this,Me))==null?void 0:qo.snapshot);_(this,Ue,Ze.withSyncEffect(()=>{var e;return l(this,jt)&&((e=l(this,Me))==null?void 0:e.notify())}));_(this,As,Ze.withSyncEffect(()=>{var e;return(e=l(this,jt))==null?void 0:e.call(l(this,He,Yn))}));_(this,hi,vi(Oe(()=>{var e;return((e=l(this,A))==null?void 0:e.size)??0},e=>{var n;return(n=l(this,A))==null?void 0:n.frameBlocks[e]}),{config:{value:Object.defineProperties(e=>(e&&b(this,Si,Vc).call(this,e),l(this,He,Yn)),{cursorIndex:{get:()=>l(this,oe),set:e=>{l(this,zt)||(e==null?p(this,oe,void 0):X(e)&&p(this,oe,e))}},shiftFactor:{get:()=>l(this,ae),set:e=>{l(this,zt)||(e==null?p(this,ae,void 0):X(e)&&p(this,ae,e))}},watch:{get:()=>l(this,jt),set:e=>{var n,s,i,r,o;if(!l(this,zt))if(X(e)){if(p(this,jt,e),!l(this,Yt)){const a=(n=l(this,Ue))==null?void 0:n.call(this,l(V,Ni).bind(this));a&&(p(this,Yt,(s=l(this,Ue))==null?void 0:s.call(this,vt)),p(this,On,(r=l(this,Me))==null?void 0:r.watch((i=l(this,As))==null?void 0:i.call(this,a))),l(this,A)&&(l(this,A).effect=l(this,Yt)))}if(!l(this,Fe))return;p(this,Fe,!1),(o=l(this,Yt))==null||o.call(this)}else e==null&&p(this,jt,void 0)}}})},controls:{value:l(this,di)},cursor:{value:Object.defineProperties(e=>b(V,Rn,Zs).call(this,n=>!!(n&&b(this,Ai,Xc).call(this,n)))(e),{valueOf:{value:()=>{var e;return((e=l(this,A))==null?void 0:e.cursor)??-1}}})},highlight:{value:(()=>{const e=()=>l(this,Bt)===l(this,Rt)&&l(this,Rt)===void 0,n=s=>i=>b(V,Rn,Zs).call(this,r=>{var o,a,c,u,f;if(!(l(this,zt)||!l(this,dt)||l(this,dt)===rn)){if(r==null)return b(this,Ds,Er).call(this);e()?(a=l(this,A))==null||a.updateSelection(r,$c):((o=l(this,A))==null||o.updateSelection(r,s),l(this,dt)===be&&l(this,bt)&&b(this,jn,Js).call(this,r,s===mt?Ot:mt,l(this,bt))),p(this,Bt,(c=l(this,A))==null?void 0:c.selectionStart),p(this,Rt,(u=l(this,A))==null?void 0:u.selectionEnd),(f=l(this,A))==null||f.shiftFrameToTimestamp(s===mt?l(this,Bt):l(this,Rt))}})(i);return Z({blank:{get:e},from:{get:()=>{var s;return((s=l(this,A))==null?void 0:s.selectionStart)??l(this,Bt)},set:n(mt)},to:{get:()=>{var s;return((s=l(this,A))==null?void 0:s.selectionEnd)??l(this,Rt)},set:n(Ot)}})})()},rowspan:{get:()=>{var e;return((e=l(this,A))==null?void 0:e.rowspan)??0}},weekdays:{get:()=>{var e;return((e=l(this,A))==null?void 0:e.daysOfWeek)??l(V,gi)}}}));this.grid=l(this,hi),this.kill=b(this,Ei,Kc).bind(this)}},nt=new WeakMap,zt=new WeakMap,A=new WeakMap,Bt=new WeakMap,Rt=new WeakMap,$t=new WeakMap,dt=new WeakMap,Fe=new WeakMap,bt=new WeakMap,vn=new WeakMap,oe=new WeakMap,ae=new WeakMap,jt=new WeakMap,Yt=new WeakMap,On=new WeakMap,ui=new WeakMap,ye=new WeakMap,wt=new WeakMap,di=new WeakMap,Me=new WeakMap,xn=new WeakMap,Ue=new WeakMap,As=new WeakMap,hi=new WeakMap,fi=new WeakMap,mi=new WeakMap,gi=new WeakMap,Ii=new WeakMap,pi=new WeakMap,_i=new WeakMap,yi=new WeakSet,Yc=function(e){if(!Ne(e)||!l(V,fi).test(e))return;const n=e.split(/\s+/);return Array.from({length:6},(s,i)=>parseInt(n[i]??"0"))},Mi=new WeakSet,Zc=function(e){switch(e&~tn.PREV){case tn.FRAME:return Hs;case tn.PERIOD:return Gs;case tn.BLOCK:default:return Fc}},Ti=new WeakSet,Jc=function(e){return e&tn.PREV?-1:1},Ni=new WeakMap,Rn=new WeakSet,Zs=function(e){var n;return((n=l(this,Ue))==null?void 0:n.call(this,e))??e},He=new WeakSet,Yn=function(){return{...l(this,nt)}},Es=new WeakSet,Sr=function(){return new Ey},Li=new WeakSet,Qc=function(e){return!!l(this,A)&&!(e>0?l(this,A).isAtEnd:l(this,A).isAtStart)},Si=new WeakSet,Vc=function(e){var i,r;if(l(this,zt))return;p(this,bt,void 0);const n=e==null?void 0:e.highlight,s=$n(l(this,nt).minified);if(Ne(n)?p(this,bt,b(i=V,yi,Yc).call(i,n))&&p(this,dt,be):p(this,dt,Fn(yy,n,l(this,dt))),p(this,nt,{...l(this,nt),...e,blocks:Fn(hn,e==null?void 0:e.blocks,l(this,nt).blocks),controls:Fn(wo,e==null?void 0:e.controls,l(this,nt).controls),firstWeekDay:Fn(vc,e==null?void 0:e.firstWeekDay,l(this,nt).firstWeekDay),fixedBlockHeight:$n(e==null?void 0:e.fixedBlockHeight,l(this,nt).fixedBlockHeight),highlight:l(this,dt),minified:$n(e==null?void 0:e.minified,l(this,nt).minified),trackCurrentDay:$n(e==null?void 0:e.trackCurrentDay,l(this,nt).trackCurrentDay)}),!X(l(this,jt))){l(this,A)?p(this,Fe,!0):(p(this,A,l(this,Es,Sr)),b(this,vs,Dr).call(this),b(this,xs,vr).call(this),b(this,Os,br).call(this));return}(!l(this,A)||s!==l(this,nt).minified)&&(p(this,A,l(this,Es,Sr)),l(this,A).effect=l(this,Yt)),b(this,vs,Dr).call(this),(r=l(this,Yt))==null||r.call(this)},Ai=new WeakSet,Xc=function(e){if(e&&l(this,A)&&X(l(this,jt))){if(e instanceof KeyboardEvent){switch(e.code){case P.ARROW_LEFT:l(this,A).shiftFrameCursor(Oc);break;case P.ARROW_RIGHT:l(this,A).shiftFrameCursor(wc);break;case P.ARROW_UP:l(this,A).shiftFrameCursor(Bc);break;case P.ARROW_DOWN:l(this,A).shiftFrameCursor(jc);break;case P.HOME:l(this,A).shiftFrameCursor(e.ctrlKey?Rc:kc);break;case P.END:l(this,A).shiftFrameCursor(e.ctrlKey?xc:Pc);break;case P.PAGE_UP:e.shiftKey?l(this,A).shiftFrameByOffset(-1,Gs):l(this,A).shiftFrameCursor(zc);break;case P.PAGE_DOWN:e.shiftKey?l(this,A).shiftFrameByOffset(1,Gs):l(this,A).shiftFrameCursor(Wc);break;case P.SPACE:case P.ENTER:return b(this,Ge,Zn).call(this),!0;default:return}return l(this,$t)&&b(this,Ge,Zn).call(this,z),!0}if(e instanceof MouseEvent&&l(V,mi).includes(e.type)&&X(l(this,oe))){const n=l(this,oe).call(l(this,He,Yn),e);if(!Vn(n))return;const s=e.type==="click";if(!(s||l(this,$t)))return;if(l(this,A).shiftFrameCursor(n),l(this,A).cursor===n)return s?b(this,Ge,Zn).call(this):b(this,Ge,Zn).call(this,z),!0}}},Ei=new WeakSet,Kc=function(){var e;l(this,zt)||((e=l(this,On))==null||e.call(this),p(this,Ue,p(this,As,p(this,oe,p(this,A,p(this,dt,p(this,vn,p(this,xn,p(this,bt,p(this,ae,p(this,On,p(this,Me,p(this,Yt,p(this,jt,void 0))))))))))))),p(this,nt,z),p(this,$t,p(this,Fe,!1)),p(this,zt,!0))},Cs=new WeakSet,Ar=function(e){var s,i;if(!l(this,wt)||e<0||e>=l(this,wt).length)return;const n=l(this,wt)[e];if(!l(this,ye)[e]){const r=Mr[n],o=b(s=V,Mi,Zc).call(s,r),a=b(i=V,Ti,Jc).call(i,r);l(this,ye)[e]=(...c)=>b(V,Rn,Zs).call(this,(...u)=>{var m;const f=b(this,Li,Qc).call(this,a);if(!(f&&u.length))return f;const d=b(this,Ci,qc).call(this,n,u[0]);return d===void 0?!1:((m=l(this,A))==null||m.shiftFrameByOffset(a*d,o),!0)})(...c)}return[n,l(this,ye)[e]]},Ci=new WeakSet,qc=function(e,n){if(!(l(this,A)&&X(l(this,jt))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!l(V,Ii).includes(n.code))return}else return;let s=1;if(X(l(this,ae))){const i=Number(l(this,ae).call(l(this,He,Yn),n,e));s=Number.isInteger(i)&&i>=1?i:s}return s},Ge=new WeakSet,Zn=function(e){if(l(this,zt)||!l(this,A))return;switch(l(this,dt)){case be:case on:break;case rn:default:return}const n=l(this,A).cursor,s=l(this,A).getTimestampAtIndex(n),i=l(this,A).getTimestampAtIndex(n+1)-1,r=l(this,bt);if(l(this,dt)===on||l(this,A).blankSelection||r)if(p(this,$t,!(l(this,dt)===on||r)),l(this,dt)===be&&r){const o=i>=l(this,A).selectionEnd?mt:Ot;o===mt?l(this,A).updateSelection(i,Ot):l(this,A).updateSelection(s,mt),b(this,jn,Js).call(this,o===mt?l(this,A).selectionEnd:l(this,A).selectionStart,o,r)}else l(this,A).updateSelection(s,mt),l(this,A).updateSelection(i,Ot);else{const o=e===z;if(o||p(this,$t,!1),s<=l(this,A).selectionStart?l(this,A).updateSelection(s,mt):l(this,A).updateSelection(i,Ot),o)return}p(this,Bt,l(this,A).selectionStart),p(this,Rt,l(this,A).selectionEnd)},Ds=new WeakSet,Er=function(){var e;(e=l(this,A))==null||e.clearSelection(),p(this,$t,!1),p(this,Bt,p(this,Rt,void 0))},jn=new WeakSet,Js=function(e,n,s){if(!l(this,A))return;const i=new Date(e),r=n===mt?-1:1,[o=0,a=0,c=0,u=0,f=0,d=0]=s??[];i.setFullYear(i.getFullYear()+o*r,i.getMonth()+a*r,i.getDate()+c*r),i.setHours(i.getHours()+u*r,i.getMinutes()+f*r,i.getSeconds()+d*r),l(this,A).updateSelection(i.getTime()-r,n)},bs=new WeakSet,Cr=function(){var e,n;l(this,Bt)&&((e=l(this,A))==null||e.updateSelection(l(this,Bt),mt)),l(this,Rt)&&((n=l(this,A))==null||n.updateSelection(l(this,Rt),Ot)),p(this,$t,!1)},vs=new WeakSet,Dr=function(){l(this,A)&&(l(this,A).timeslice=l(this,nt).timeslice,l(this,A).dynamicBlockHeight=!l(this,nt).fixedBlockHeight,l(this,A).firstWeekDay=l(this,nt).firstWeekDay,l(this,A).locale=l(this,nt).locale,l(this,A).size=l(this,nt).blocks,l(this,A).trackCurrentDay=l(this,nt).trackCurrentDay,b(this,bs,Cr).call(this))},Os=new WeakSet,br=function(){var e,n,s,i,r;switch(l(this,dt)){case be:((e=l(this,A))==null?void 0:e.blankSelection)===!1&&l(this,bt)&&b(this,jn,Js).call(this,(n=l(this,A))==null?void 0:n.selectionStart,Ot,l(this,bt));break;case on:((s=l(this,A))==null?void 0:s.blankSelection)===!1&&((r=l(this,A))==null||r.updateSelection(new Date((i=l(this,A))==null?void 0:i.selectionStart).setHours(23,59,59,999),Ot));break;case rn:default:b(this,Ds,Er).call(this);return}},xs=new WeakSet,vr=function(){var e,n;switch((e=l(this,Me))==null?void 0:e.snapshot.controls){case qr:p(this,wt,l(V,pi));break;case to:p(this,wt,l(V,_i));break;case eo:default:p(this,wt,void 0)}l(this,ye).length=0,l(this,ye).length=((n=l(this,wt))==null?void 0:n.length)??0},_(V,yi),_(V,Mi),_(V,Ti),_(V,Rn),_(V,fi,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),_(V,mi,["click","mouseover","pointerover"]),_(V,gi,Oe(0,vt)),_(V,Ii,[P.ENTER,P.SPACE]),_(V,pi,Object.keys(Mr).filter(e=>isNaN(+e))),_(V,_i,["PREV","NEXT"]),_(V,Ni,function(e){var o,a;if(typeof e=="symbol")return;let n=!1,s=!1,i=!1;const r=(o=l(this,bt))==null?void 0:o.join(" ");for(const c of Object.keys(e))e[c]!==((a=l(this,xn))==null?void 0:a[c])&&(c==="controls"?n=!0:c==="highlight"?s=!0:(c==="from"||c==="to")&&(i=!0));l(this,vn)!==r&&(p(this,vn,r),s=!0),p(this,xn,e),l(this,$t)&&!i&&b(this,bs,Cr).call(this),n&&b(this,xs,vr).call(this),s&&b(this,Os,br).call(this)}),V);const Dy=(()=>Object.defineProperties(e=>{const{grid:n,kill:s}=new Cy;return zn(e)?n.config({blocks:e}):X(e)?Promise.resolve().then(()=>{n.config.watch=e}):n.config(e),Z({grid:tt(n),kill:tt(s)})},{controls:{value:Z({ALL:{value:qr},MINIMAL:{value:to},NONE:{value:eo}})},highlight:{value:Z({ONE:{value:on},MANY:{value:be},NONE:{value:rn}})},slice:{value:Object.defineProperties(Sy.bind(null),{FROM:{value:no},TO:{value:so},UNBOUNDED:{value:ri},SINCE_NOW:{get:Ny},UNTIL_NOW:{get:Ly}})}}))(),Ht=Dy,by=({config:t,grid:{controls:e},renderer:n})=>t.controls===Ht.controls.NONE||!X(n)?null:h(Q,{children:e.map(([s,i])=>n(s,i))}),vy=ft(by),Oy=t=>{const e=E((n,s)=>{s instanceof Element&&s.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),Promise.resolve().then(()=>n==null?void 0:n.focus()))},[]);return de(E((n,s)=>{try{t==null||t(n,s)}finally{e(n,s)}},[t]))},xy=({blocks:t,controls:e,dynamicBlockRows:n,firstWeekDay:s,highlight:i,locale:r,onHighlight:o,originDate:a,renderControl:c,sinceDate:u,trackCurrentDay:f,untilDate:d,useYearView:m},g)=>{const{i18n:I}=q(),[y,L]=$(performance.now()),T=N(()=>Ht.slice(u,d),[u,d]),S=j(z),C=N(()=>e??(X(c)?Ht.controls.MINIMAL:Ht.controls.NONE),[e,c]),v=N(()=>i??(X(o)?Ht.highlight.ONE:Ht.highlight.NONE),[i,o]),{grid:M,kill:x}=N(()=>{const{grid:D,kill:W}=Ht(function(){L(performance.now()),S.current=this,!(K===D.highlight.from&&ct===D.highlight.to)&&(K=D.highlight.from,ct=D.highlight.to,o==null||o(K,ct))});let{from:K,to:ct}=D.highlight;return D.config.cursorIndex=H=>{let J=H.target;for(;J&&J!==H.currentTarget;){const Tt=Number(J.dataset.cursorPosition);if(Number.isFinite(Tt))return Tt;J=J.parentNode}},D.config.shiftFactor=function(H){if(this.controls===Ht.controls.MINIMAL)return H!=null&&H.shiftKey?12:H!=null&&H.altKey?this.blocks:1},{grid:D,kill:W}},[]),w=N(()=>{const D=W=>{M.cursor(W)};return{onClickCapture:D,onMouseOverCapture:D,onPointerOverCapture:D,onKeyDownCapture:W=>{M.cursor(W)&&W.preventDefault()}}},[M]),k=Oy(E((D,W)=>{W instanceof Element&&W.removeAttribute("aria-selected"),D instanceof Element&&D.setAttribute("aria-selected","true")},[]));return Lg(g,()=>{const{from:D,to:W}=(M==null?void 0:M.highlight)||z;return{clear:()=>{M!=null&&M.highlight&&(M.highlight.from=void 0)},get config(){return{...S.current??z}},get from(){return Bo(D)},set from(K){M!=null&&M.highlight&&K&&(M.highlight.from=K.getTime())},get to(){return Bo(W)},set to(K){M!=null&&M.highlight&&K&&(M.highlight.to=K.getTime())}}},[M,y]),B(()=>{M.config({blocks:t,controls:C,firstWeekDay:s,fixedBlockHeight:!n,highlight:v,locale:r??I.locale,minified:m,timeslice:T,trackCurrentDay:f})},[C,v,t,n,s,M,I,r,T,f,m]),B(()=>{const D=[].concat(a).slice(0,2).map(Number).filter(Boolean);return D[0]&&(M.highlight.from=+D[0]),D[1]&&(M.highlight.to=+D[1]),x},[]),{cursorElementRef:k,cursorRootProps:w,grid:M}},Ry=xy,jy=Vt((t,e)=>{const n=Ry(t,e),s=n.grid.config();return h("div",{role:"none",children:[h(vy,{config:s,grid:n.grid,renderer:t.renderControl}),h(gy,{ref:n.cursorElementRef,config:s,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:t.onlyCellsWithin,prepare:t.prepare})]})}),wy=ft(jy),Py=Le(({title:t,...e},n)=>h("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&h("title",{children:t}),h("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.53 11.03c-.3.3-.77.3-1.06 0L8 6.56l-4.47 4.47a.75.75 0 1 1-1.06-1.06l5-5c.3-.3.77-.3 1.06 0l5 5c.3.3.3.77 0 1.06Z",clipRule:"evenodd"})]})),tl=Py,ky=(t,e)=>{const[n,s]=$(),i=de(N(()=>{const r=o=>(...a)=>{const c=t(o,...a);return c&&Kg(c,o)};return s(void 0),o=>s(o instanceof Element?()=>r(o):void 0)},[t,e]),e);return[n,i]},Wy=ky,zy=t=>{const{i18n:e}=q();return Wy(E((n,s,i)=>{if(!(n instanceof HTMLElement))return null;if(X(t))return t(s,i);let r,o,a;switch(s){case"PREV":r="prev",o="previous",a=tl;break;case"NEXT":r=o="next",a=Hr;break;default:return null}const c=i();return c?h(Qt,{"aria-label":e.get(`calendar.${o}Month`),variant:Nt.TERTIARY,disabled:!c,classNameModifiers:["circle",r],iconButton:!0,onClick:i,children:h(a,{role:"presentation"})},s):null},[e,t]))},By=zy;const $y=Vt((t,e)=>{const{i18n:n}=q(),[s,i]=By(t.renderControl),[r,o]=$(performance.now()),a=N(()=>t.showTimezoneInfo!==!1,[t.showTimezoneInfo]),{clockTime:c,GMTOffset:u}=E_({timezone:t.timezone,withClock:a}),f=N(()=>G([{"adyen-fp-datepicker--with-timezone":a},"adyen-fp-datepicker"]),[a]),d=N(()=>a?{values:{offset:u,time:c}}:z,[u,c,a]),m=de(vt,e),g=E(()=>{var I,y,L,T,S;o(performance.now()),(I=m.current)!=null&&I.from&&((y=m.current)!=null&&y.to)&&((S=t.onHighlight)==null||S.call(t,+((L=m.current)==null?void 0:L.from),+((T=m.current)==null?void 0:T.to)))},[o,t.onHighlight]);return h("div",{className:f,children:[h("div",{className:"adyen-fp-datepicker__selector-container",children:h(oy,{now:t.now,calendarRef:m,onTimeRangeSelected:t.onPresetOptionSelected,options:t.timeRangePresetOptions,selectedOption:t.selectedPresetOption,timestamp:r,timezone:t.timezone})}),h("div",{ref:i,role:"group",className:"adyen-fp-datepicker__controls","aria-label":n.get("calendar.controls")}),h(wy,{...t,ref:m,firstWeekDay:Xr,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:t.controls??Ht.controls.MINIMAL,highlight:t.highlight??Ht.highlight.MANY,onHighlight:g,renderControl:s}),a&&h("div",{className:"adyen-fp-datepicker__timezone",children:n.get("calendar.timezone",d)})]})}),Fy=$y;const Uy="adyen-fp-filter-button";function Hy({className:t,classNameModifiers:e=[],children:n,disabled:s,onClick:i,...r},o){const a=N(()=>dn("",t)||"",[t]),c=N(()=>Rr(s),[s]),{classes:u,click:f}=$r(a,e,Uy,c,i);return h("button",{className:u,ref:o,onClick:f,...r,children:h(Jt,{el:Pn.SPAN,variant:F.BODY,stronger:!0,children:n})})}const Gy=Vt(Hy);let Fo=Date.now();const Yy=(t="field")=>(Fo+=1,`${t}-${Fo}`),Zy=t=>{const e=j();return de(E((n,s)=>{s instanceof Element&&s.id===e.current&&(s.id=""),n instanceof Element&&(n.id=e.current||(e.current=Yy("adyen-fp")))},[t]),t)};function el({onInput:t,onKeyUp:e,trimOnBlur:n,onBlurHandler:s,onBlur:i,onFocusHandler:r,errorMessage:o,...a},c){const{autoCorrect:u,classNameModifiers:f,isInvalid:d,isValid:m,readonly:g=!1,spellCheck:I,type:y,uniqueId:L,isCollatingErrors:T,disabled:S}=a;ce(a,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const C=E(J=>{t==null||t(J)},[t]),v=E(J=>{e&&e(J)},[e]),M=E(J=>{s==null||s(J),n&&(J.target.value=J.target.value.trim()),i==null||i(J)},[i,s,n]),x=E(J=>{r==null||r(J)},[r]),w=G("adyen-fp-input",[`adyen-fp-input--${y}`],a.className,{"adyen-fp-input--invalid":d,"adyen-fp-input--valid":m},f==null?void 0:f.map(J=>`adyen-fp-input--${J}`)),{classNameModifiers:k,uniqueId:D,isInvalid:W,isValid:K,isCollatingErrors:ct,...H}=a;return h(Q,{children:[h("input",{id:L,...H,type:y,className:w,readOnly:g,"aria-describedby":T?void 0:`${L}${mr}`,"aria-invalid":d,onInput:C,onBlur:M,onFocus:x,onKeyUp:v,disabled:S,ref:c}),d&&o&&h("span",{className:"adyen-fp-input__invalid-value",id:`${L}${mr}`,children:o})]})}el.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const Or=Vt(el),Jy=Vt(function(e,n){return h(Or,{classNameModifiers:e.classNameModifiers,...e,ref:n,"aria-required":e.required,type:"text"})});const Qy=t=>!t||Og(t),Vy=(()=>{const t=e=>{const{editAction:n,name:s,onChange:i,onValueUpdated:r}=e,[o,a]=$(e.value),c=E(u=>{const f=u.target.value.trim();a(f),r(f)},[r]);return B(()=>{if(n===ht.CLEAR){const u="";a(u),r(u),i(u)}n===ht.APPLY&&i(o??"")},[o,n,i,r]),h(Jy,{name:s,value:o,onInput:c})};return e=>h(t,{...e})})(),Xy=({render:t,...e})=>{var k;const[n,s]=ee(!1),[i,r]=ee(!1),o=N(()=>e.isValueEmpty??Qy,[e.isValueEmpty]),[a,c]=ee(o(e.value)),[u,f]=ee(!1),[d,m]=ee(!1),[g,I]=ee(o(e.value)),y=Zy(),L=N(()=>t??Vy,[t]),T=E(D=>{const W=o(D??void 0);c(W),I(D===null),m(u?D!==e.value:!W)},[o,c,I,m,u,e.value]),{commitAction:S,commitActionButtons:C,committing:v,resetCommitAction:M}=uc({applyDisabled:g||!d,resetDisabled:a}),[x,w]=N(()=>{const D=W=>()=>{W!==n&&(W&&(M(),m(!1),f(!1)),s(W),r(W))};return[D(!1),D(!0)]},[s,n,M,r,f,m]);return B(()=>{if(i){const D=o(e.value);r(!1),c(D),f(!D)}},[e.value,i,o,r,c,f]),B(()=>{v&&x(),c(a)},[v,x,c,a]),h(Q,{children:[h("div",{className:`adyen-fp-filter adyen-fp-filter--${e.type}`,children:N(()=>h(Gy,{classNameModifiers:[...e.appliedFilterAmount?["with-counter"]:[],...e.classNameModifiers??[],...n?["active"]:[],...a?[]:["has-selection"]],onClick:n?x:w,tabIndex:0,ref:y,children:h("div",{className:"adyen-fp-filter-button__default-container",children:[h(Jt,{el:Pn.SPAN,variant:F.BODY,stronger:!0,className:"adyen-fp-filter-button__label",children:e.label}),!!e.appliedFilterAmount&&h("div",{className:"adyen-fp-filter-button__counter-wrapper",children:h(Jt,{el:Pn.SPAN,variant:F.BODY,stronger:!0,className:"adyen-fp-filter-button__counter",children:e.appliedFilterAmount})})]})}),[e.appliedFilterAmount,e.classNameModifiers,e.label,n,a,x,w,y])}),n&&h(gc,{actions:C,title:(k=e.title)==null?void 0:k.trim(),modifiers:["filter"],open:n,"aria-label":`${e.label}`,dismiss:x,dismissible:!1,withContentPadding:e.withContentPadding??!0,divider:!0,targetElement:y,disableFocusTrap:!1,containerSize:e.containerSize,children:L({...e,editAction:S,onValueUpdated:T})})]})},nl=ft(Xy);var ns=(t=>(t.FROM="from",t.TO="to",t))(ns||{});const sl=(t,e,n)=>{const s=e&&t.fullDate(e),i=n&&t.fullDate(n);if(s&&i)return`${s} - ${i}`;if(s)return t.get("filter.date.since",{values:{date:s}});if(i)return t.get("filter.date.until",{values:{date:i}})},Zt=t=>{try{return new Date(t||"").toISOString()}catch{return""}},Ky=(()=>{const t=({editAction:e,from:n,to:s,now:i,onChange:r,onValueUpdated:o,showTimezoneInfo:a,selectedPresetOption:c,timeRangePresetOptions:u,timezone:f,sinceDate:d,untilDate:m})=>{const{i18n:g}=q(),[I,y]=$(c),L=N(()=>[new Date(n),new Date(s)],[n,s]),T=j(),S=E((C,v)=>{o(sl(g,Zt(C),Zt(v)))},[g,o]);return B(()=>{var C,v,M;switch(e){case ht.APPLY:r({selectedPresetOption:I,[ns.FROM]:Zt((C=T.current)==null?void 0:C.from),[ns.TO]:Zt((v=T.current)==null?void 0:v.to)});break;case ht.CLEAR:(M=T.current)==null||M.clear(),r()}},[e,r,I]),h(Fy,{ref:T,now:i,originDate:L,onHighlight:S,onPresetOptionSelected:y,selectedPresetOption:c,timeRangePresetOptions:u,timezone:f,showTimezoneInfo:a,sinceDate:Zt(d),untilDate:Zt(m)})};return e=>h(t,{...e})})();function qy({title:t,from:e,to:n,selectedPresetOption:s,...i}){const{i18n:r}=q(),[o,a]=$(),[c,u]=$(),[f,d]=$(),m=E(I=>{const{from:y,to:L,selectedPresetOption:T}=I??z;try{a(o??T),u(Zt(c??y)),d(Zt(f??L))}finally{i.onChange({from:y,to:L,selectedPresetOption:T})}},[o,c,f,i]);B(()=>a(s),[s]),B(()=>u(Zt(e||Date.now())),[e]),B(()=>d(Zt(n||Date.now())),[n]);const g=N(()=>s??i.label,[s,i.label]);return h(nl,{...i,from:e,to:n,type:"date",label:g,onChange:m,render:Ky,selectedPresetOption:s,value:sl(r,e,n),withContentPadding:!1})}const tM=({balanceAccount:t,canResetFilters:e,defaultParams:n,filters:s,nowTimestamp:i,refreshNowTimestamp:r,updateFilters:o})=>{const{i18n:a}=q(),c=N(()=>a.get(n.current.defaultTimeRange),[a]),[u,f]=$(c),d=E((m=z)=>{for(const[g,I]of Object.entries(m)){switch(g){case"selectedPresetOption":f(I||c);break;case ns.FROM:o({[U.CREATED_SINCE]:I||n.current.defaultFilterParams[U.CREATED_SINCE]});break;case ns.TO:o({[U.CREATED_UNTIL]:I||n.current.defaultFilterParams[U.CREATED_UNTIL]});break;default:return}r()}},[c,r,o]);return N(()=>!e&&f(c),[e,c]),h(qy,{label:a.get("dateRange"),name:U.CREATED_SINCE,untilDate:new Date(i).toString(),from:s[U.CREATED_SINCE],to:s[U.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:t==null?void 0:t.timeZone,onChange:d,showTimezoneInfo:!0,now:i})};const Gi="adyen-fp-expandable-card",Je=Gi+"__container",eM=Je+"--button",Ki=Je+"--filled",nM=Je+"--hidden",il=Je+"--overlay",qi=il,Qs=Gi+"__content",Uo=Qs+"--expandable",Ho=Gi+"__chevron",sM="adyen-fp-base-button";function iM({disabled:t=!1,onClick:e,classNameModifiers:n=[],type:s="button",children:i,className:r,...o},a){const c=N(()=>dn("",r)||"",[r]),u=N(()=>Rr(t),[t]),{classes:f,click:d}=$r(c,[...n],sM,u,e);return h("button",{className:f,type:s,disabled:t,onClick:d,ref:a,...o,children:i})}const Go=Vt(iM),rl=({renderHeader:t,children:e,filled:n})=>{const{i18n:s}=q(),[i,r]=$(!1),o=E(()=>r(d=>!d),[r]),a=j(null),c=j(!1),u=j(i),f=Ur(void 0,E(()=>{i&&(o(),c.current=!0)},[i,o]));return B(()=>{var d,m;i?(d=f.current)==null||d.focus():(u.current!==i&&!c.current&&((m=a.current)==null||m.focus()),c.current=!1),u.current=i},[i,f]),h("div",{className:Gi,children:e?h(Q,{children:[h(Go,{className:G(Je,eM,{[Ki]:n}),disabled:i,"aria-controls":qi,"aria-expanded":i,"aria-hidden":i,onClick:o,ref:a,"data-testid":"expand-button",children:[h("span",{className:"adyen-fp-sr-only",children:s.get("expandableCard.expand")}),h("div",{className:G(Qs,Uo),children:t}),h("div",{className:Ho,children:h(Hr,{role:"presentation"})})]}),h(Go,{id:qi,className:G(Je,il,{[Ki]:n,[nM]:!i}),disabled:!i,"aria-controls":qi,"aria-expanded":i,"aria-hidden":!i,onClick:o,ref:f,"data-testid":"collapse-button",children:[h("span",{className:"adyen-fp-sr-only",children:s.get("expandableCard.collapse")}),h("div",{className:G(Qs,Uo),children:[t,h("div",{children:e})]}),h("div",{className:Ho,children:h(tl,{role:"presentation"})})]})]}):h("div",{className:G(Je,{[Ki]:n}),children:h("div",{className:Qs,children:t})})})},rM="adyen-fp-transactions-totals";const io="adyen-fp-amount-skeleton",oM=io+"--has-margin",aM=io+"--loading";const cM=({hasMargin:t=!1,isLoading:e=!1,width:n})=>h("span",{className:G(io,{[aM]:e,[oM]:t}),style:{width:n}}),Wn="adyen-fp-summary-item",lM=Wn+"--body",Yo=Wn+"__label",uM=Wn+"__amount",dM=Wn+"__placeholder",ol=({columnConfigs:t,isHeader:e=!1,isSkeletonVisible:n=!1,isLoading:s=!1,widths:i,onWidthsSet:r,isEmpty:o})=>{const{i18n:a}=q();B(()=>{const u=t.map(f=>{var d,m;return((m=(d=f.ref)==null?void 0:d.current)==null?void 0:m.getBoundingClientRect().width)??0});r(u)},[r]);const c=u=>({width:i&&i[u]?i[u]:"auto"});return h("div",{className:G(Wn,{[lM]:!e}),children:t.map((u,f)=>h("div",{children:[e&&u.labelKey&&h(Jt,{variant:F.CAPTION,className:Yo,children:a.get(u.labelKey)}),n?h(cM,{isLoading:s,hasMargin:u.hasSkeletonMargin,width:u.skeletonWidth+"px"}):o?h("span",{className:G([Wn,dM])}):h("div",{ref:u.ref,style:c(f),children:h(Jt,{variant:u.valueHasLabelStyle?F.CAPTION:F.TITLE,className:G(uM,{[Yo]:u.valueHasLabelStyle}),children:u.getValue()})})]},f))})},Zo=({total:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:i,onWidthsSet:r})=>{const{i18n:o}=q(),a=j(null),c=j(null),u=j(null);return h(ol,{isEmpty:!t,columnConfigs:[{labelKey:"incoming",ref:a,skeletonWidth:80,getValue:()=>t&&o.amount(t.incomings,t.currency)},{labelKey:"expense",ref:c,skeletonWidth:80,getValue:()=>t&&o.amount(t.expenses,t.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}],isHeader:e,isSkeletonVisible:n,isLoading:s,widths:i,onWidthsSet:r})};const hM="adyen-fp-base-list",al=({children:t})=>h("ul",{className:hM,children:t}),cl=()=>{const[t,e]=$([]),n=E(s=>{e(i=>s.every(r=>!r)?s:s.map((r,o)=>{const a=i[o];return!a||r>a?r:a}))},[]);return[t,n]},fM=ft(({availableCurrencies:t,isAvailableCurrenciesFetching:e,balanceAccountId:n,createdSince:s,createdUntil:i,categories:r,statuses:o,maxAmount:a,minAmount:c,currencies:u})=>{const f=ws("getTransactionTotals"),d=E(async()=>f(z,{query:{createdSince:s,createdUntil:i,categories:r,statuses:o,maxAmount:a,minAmount:c,currencies:u,balanceAccountId:n}}),[n,r,s,i,u,f,a,c,o]),{data:m,isFetching:g}=ki({fetchOptions:N(()=>({enabled:!!n}),[n]),queryFn:d}),I=!n||g||e,y=E(()=>{if(!t||!m)return m==null?void 0:m.totals;const v=t.map(M=>m.totals.find(w=>w.currency===M)||{currency:M,incomings:0,expenses:0});return v.concat(m.totals.filter(M=>!v.includes(M)))},[t,m]),[L,...T]=y()??[],[S,C]=cl();return h("div",{className:rM,children:h(rl,{renderHeader:h(Zo,{total:L,widths:S,isHeader:!0,isSkeleton:I,isLoading:I,onWidthsSet:C}),children:!I&&T.length&&h(al,{children:T.map(v=>h("li",{children:h(Zo,{total:v,widths:S,onWidthsSet:C})},v.currency))})})})}),mM="adyen-fp-balances",Jo=({balance:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:i,onWidthsSet:r,isEmpty:o})=>{const{i18n:a}=q(),c=j(null),u=j(null);return h(ol,{isEmpty:o,columnConfigs:[{labelKey:"accountBalance",ref:c,skeletonWidth:80,getValue:()=>t&&a.amount(t.value,t.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}],isHeader:e,isSkeletonVisible:n,isLoading:s,widths:i,onWidthsSet:r})},gM=ft(({balanceAccountId:t,onCurrenciesChange:e})=>{const n=ws("getBalances"),s=E(async()=>n(z,{path:{balanceAccountId:t}}),[t,n]),{data:i,error:r,isFetching:o}=ki({fetchOptions:N(()=>({enabled:!!t}),[t]),queryFn:s}),a=!t||o,c=!!r||!(i!=null&&i.balances.length),u=i==null?void 0:i.balances.sort((I,y)=>I.currency.localeCompare(y.currency)),[f,...d]=u??[],[m,g]=cl();return B(()=>{const I=u==null?void 0:u.map(({currency:y})=>y);e(I,o)},[u,o,e]),h("div",{className:mM,children:h(rl,{renderHeader:h(Jo,{isEmpty:c,balance:f,widths:m,isHeader:!0,isSkeleton:a,isLoading:a,onWidthsSet:g}),filled:!0,children:d.length&&h(al,{children:d.map(I=>h("li",{children:h(Jo,{balance:I,widths:m,onWidthsSet:g})},I.currency))})})})}),IM=ft(({activeBalanceAccount:t,balanceAccountSelectionOptions:e,onBalanceAccountSelection:n})=>e&&e.length>1?h(Bi,{onChange:n,filterable:!1,multiSelect:!1,selected:t==null?void 0:t.id,withoutCollapseIndicator:!0,items:e}):null),pM=IM,_M=t=>{const[e,n]=$(0),s=E(()=>n(0),[n]),i=N(()=>t==null?void 0:t[e],[t,e]),r=N(()=>t&&t.length>1?Object.freeze(t.map(({id:a})=>({id:a,name:a}))):void 0,[t]),o=E(({target:a})=>{const c=a==null?void 0:a.value,u=t==null?void 0:t.findIndex(({id:f})=>f===c);u>=0&&n(u)},[t,n]);return{activeBalanceAccount:i,balanceAccountSelectionOptions:r,onBalanceAccountSelection:o,resetBalanceAccountSelection:s}},yM=_M,MM=ft(({placeholder:t,selection:e,selectionOptions:n,updateSelection:s})=>n&&n.length>1?h(Bi,{onChange:s,filterable:!1,multiSelect:!0,placeholder:t,selected:e,withoutCollapseIndicator:!0,items:n}):null),tr=MM,Jn=t=>{const e=`${t}`.trim();return e?e.split(/(?:\s*,\s*)+/).filter(Boolean):_t},TM=t=>Object.freeze(t.map(e=>({id:e,name:e}))),NM=({filterParam:t,filterValues:e,filters:n,defaultFilters:s,updateFilters:i})=>{const r=N(()=>Jn((n==null?void 0:n[t])??(s==null?void 0:s[t])??""),[s,n,t]),o=N(()=>e&&TM(e),[e]),a=E(({target:c})=>{i==null||i({[t]:(c==null?void 0:c.value)||""})},[i,t]);return{selection:r,selectionOptions:o,updateSelection:a}},er=NM,LM=[U.CURRENCIES,U.CATEGORIES,U.STATUSES],Vs=Object.freeze(Object.fromEntries(LM.map(t=>[t,""]))),SM=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],AM=["Booked","Pending","Reversed"],EM=()=>{const t=sy(),e="rangePreset.last7Days",{from:n,to:s}=t[e];return{defaultFilterParams:{...Vs,[U.CREATED_SINCE]:new Date(n).toISOString(),[U.CREATED_UNTIL]:new Date(s).toISOString(),[U.MIN_AMOUNT]:void 0,[U.MAX_AMOUNT]:void 0},defaultTimeRange:e,timeRangeOptions:t}},CM=t=>{const[e,n]=$(Date.now()),s=j(EM()),i=E(()=>n(Date.now()),[n]);return B(()=>{i()},[t,i]),{defaultParams:s,nowTimestamp:e,refreshNowTimestamp:i}},DM=CM,bM=(t,e)=>{const n=er({filterParam:U.CATEGORIES,filterValues:SM,defaultFilters:Vs,...t}),s=er({filterParam:U.STATUSES,filterValues:AM,defaultFilters:Vs,...t}),i=er({filterParam:U.CURRENCIES,filterValues:e,defaultFilters:Vs,...t});return{categoriesFilter:n,currenciesFilter:i,statusesFilter:s}},vM=bM;const OM=({onChange:t,editAction:e,onValueUpdated:n,selectedCurrencies:s,availableCurrencies:i,...r})=>{const{i18n:o}=q(),a=N(()=>(s==null?void 0:s.length)===1||(i==null?void 0:i.length)===1?!0:(((i==null?void 0:i.length)??0)>1,!1),[i==null?void 0:i.length,s==null?void 0:s.length]),c=E((L,T)=>{const S=new Intl.NumberFormat(o.locale);return T?o.amount(L,(s==null?void 0:s[0])||(i==null?void 0:i[0])||"EUR"):S.format(L)},[i,o,s]),[u,f]=$(r.minAmount!==void 0?parseFloat(r.minAmount):void 0),[d,m]=$(r.maxAmount!==void 0?parseFloat(r.maxAmount):void 0),g=N(()=>{if(u!==void 0&&u<0)return null;if(u!==void 0&&d!==void 0)return d<u?null:`${c(u,a)} to ${c(d,a)}`;if(u!==void 0)return`${o.get("from")} ${c(u,a)}`;if(d!==void 0)return`${o.get("to")} ${c(d,a)}`},[c,o,d,u,a]),I=E(()=>{t({minAmount:u,maxAmount:d,filterValue:g!==void 0?g:void 0})},[g,d,u,t]),y=E(()=>{t({minAmount:void 0,maxAmount:void 0,filterValue:void 0}),m(void 0),f(void 0)},[t]);return B(()=>{e===ht.APPLY&&I(),e===ht.CLEAR&&y()},[I,y,e]),B(()=>{n(g)},[g,n]),h("div",{className:"adyen-fp-range-selection-filter",children:[h("div",{className:"adyen-fp-range-selection-filter__input",children:[h("label",{htmlFor:"minValue",children:`${o.get("from")}:`}),h(Or,{lang:o.locale,name:"minValue",type:"number",value:u,onInput:L=>{L.currentTarget&&f(L.currentTarget.value!==""?parseFloat(L.currentTarget.value):void 0)},min:0,isInvalid:u?u<0:!1,errorMessage:o.get("noNegativeNumbersAllowed")})]}),h("div",{className:"adyen-fp-range-selection-filter__input",children:[h("label",{htmlFor:"maxValue",children:`${o.get("to")}:`}),h(Or,{lang:o.locale,name:"maxValue",type:"number",value:d,onInput:L=>{L.currentTarget&&m(L.currentTarget.value!==""?parseFloat(L.currentTarget.value):void 0)},min:u,isInvalid:d!==void 0&&u!==void 0?d<u:!1,errorMessage:o.get("secondValueShouldBeGreaterThanTheFirstOne")})]})]})},Qo=1e5,xM=({updateFilters:t,selectedCurrencies:e,availableCurrencies:n,...s})=>{const[i,r]=$(),o=E(a=>{r(a.filterValue);const{minAmount:c,maxAmount:u}=a??z;t({minAmount:c!==void 0?String(c*Qo):void 0,maxAmount:u!==void 0?String(u*Qo):void 0})},[t]);return h(nl,{...s,updateFilters:t,minAmount:s.minAmount,maxAmount:s.maxAmount,onChange:o,value:i,label:i||s.label,type:"text",containerSize:ts.MEDIUM,selectedCurrencies:e,availableCurrencies:n,render:OM})},RM=({onFiltersChanged:t,onLimitChanged:e,balanceAccounts:n,allowLimitSelection:s,preferredLimit:i=Ir,onTransactionSelected:r,showDetails:o,isLoadingBalanceAccount:a,onContactSupport:c})=>{const{i18n:u}=q(),f=ws("getTransactions"),{activeBalanceAccount:d,balanceAccountSelectionOptions:m,onBalanceAccountSelection:g}=yM(n),{defaultParams:I,nowTimestamp:y,refreshNowTimestamp:L}=DM(d),T=E(async(st,me)=>f({signal:me,errorLevel:"error"},{query:{...st,statuses:Jn(st[U.STATUSES]),categories:Jn(st[U.CATEGORIES]),currencies:Jn(st[U.CURRENCIES]),createdSince:st[U.CREATED_SINCE]??I.current.defaultFilterParams[U.CREATED_SINCE],createdUntil:st[U.CREATED_UNTIL]??I.current.defaultFilterParams[U.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(d==null?void 0:d.id)??"",minAmount:st.minAmount!==void 0?parseFloat(st.minAmount):void 0,maxAmount:st.maxAmount!==void 0?parseFloat(st.maxAmount):void 0}}),[d==null?void 0:d.id,I,f]),S=N(()=>X(t)?t:void 0,[t]),C=N(()=>X(e)?e:void 0,[e]),v=N(()=>s?Vp:void 0,[s]),{canResetFilters:M,error:x,fetching:w,filters:k,limit:D,limitOptions:W,records:K,resetFilters:ct,updateFilters:H,updateLimit:J,...Tt}=T_({fetchRecords:T,dataField:"transactions",filterParams:I.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onLimitChanged:C,onFiltersChanged:S,preferredLimit:i,preferredLimitOptions:v,enabled:!!(d!=null&&d.id)}),[gt,Ut]=$([]),[Se,Ae]=$(!1),Kt=E((st,me)=>{Ut(st),Ae(me)},[]),{categoriesFilter:qt,currenciesFilter:kt,statusesFilter:fe}=vM({filters:k,updateFilters:H},gt);return B(()=>{Ut(void 0),H({[U.CURRENCIES]:void 0})},[H,d==null?void 0:d.id]),B(()=>{L()},[k,L]),h(Q,{children:[h(dI,{children:[h(pM,{activeBalanceAccount:d,balanceAccountSelectionOptions:m,onBalanceAccountSelection:g}),h(tM,{canResetFilters:M,defaultParams:I,filters:k,nowTimestamp:y,refreshNowTimestamp:L,updateFilters:H}),h(tr,{...fe,placeholder:u.get("filterPlaceholder.status")}),h(tr,{...qt,placeholder:u.get("filterPlaceholder.category")}),h(xM,{availableCurrencies:gt,selectedCurrencies:Jn(k[U.CURRENCIES]),name:"range",label:u.get("amount"),minAmount:k[U.MIN_AMOUNT],maxAmount:k[U.MAX_AMOUNT],updateFilters:H,onChange:H}),h(tr,{...kt,placeholder:u.get("filterPlaceholder.currency")})]}),h("div",{className:"adyen-fp-transactions__balance-totals",children:[h(fM,{availableCurrencies:gt,isAvailableCurrenciesFetching:Se,balanceAccountId:d==null?void 0:d.id,statuses:fe.selection,categories:qt.selection,createdUntil:k[U.CREATED_UNTIL],createdSince:k[U.CREATED_SINCE],currencies:kt.selection,minAmount:k[U.MIN_AMOUNT]?parseFloat(k[U.MIN_AMOUNT]):void 0,maxAmount:k[U.MAX_AMOUNT]?parseFloat(k[U.MAX_AMOUNT]):void 0}),h(gM,{balanceAccountId:d==null?void 0:d.id,onCurrenciesChange:Kt})]}),h(Qp,{balanceAccounts:n,availableCurrencies:gt,loading:w||a||!n,transactions:K,onTransactionSelected:r,showPagination:!0,showDetails:o,balanceAccountDescription:(d==null?void 0:d.description)||"",limit:D,limitOptions:W,onContactSupport:c,onLimitSelection:J,error:x,...Tt})]})};function jM(t){const{sessionSetupError:e,endpoints:n}=Pi(),s=ws("getBalanceAccounts"),{data:i,isFetching:r}=ki({fetchOptions:{enabled:!!n.getBalanceAccounts,keepPrevData:!0},queryFn:E(async()=>s(z),[s])}),o=N(()=>i==null?void 0:i.balanceAccounts,[i==null?void 0:i.balanceAccounts]);return h("div",{className:G("adyen-fp-transactions",{"adyen-fp-transactions__with-error":e}),children:e?h(Wi,{withImage:!0,centered:!0,title:"somethingWentWrong",message:["weCouldNotLoadTheTransactionsOverview","tryToRefreshThePageOrComeBackLater"]}):h("div",{className:"adyen-fp-transactions__container",children:h(RM,{...t,balanceAccounts:o,isLoadingBalanceAccount:r})})})}var nr;let wM=(nr=class extends nc{constructor(n){super(n);O(this,"componentToRender",()=>h(jM,{...this.props,ref:n=>{this.componentRef=n},elementRef:this.elementRef}));this.elementRef=n&&n.elementRef||this,this.componentToRender=this.componentToRender.bind(this)}},O(nr,"type","transactions"),nr);const PM=wM,kM=({isLoading:t,skeletonRowNumber:e=0})=>{const n=N(()=>Array.from({length:e},(s,i)=>i),[e]);return h(Q,{children:n.map(s=>h("span",{className:G({"adyen-fp-transaction-data__skeleton":!0,"adyen-fp-transaction-data__skeleton-loading-content":t})},`transaction-data-skeleton-${s}`))})},WM=({transaction:t,isFetching:e})=>{var r;const{i18n:n}=q(),s=N(()=>t?n.date(new Date(t.creationDate),{weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"}).toString():"",[t,n]),i=(t==null?void 0:t.status)==="Booked"?"default":(t==null?void 0:t.status)==="Reversed"?"error":"pending";return h(Q,{children:t?h("div",{className:"adyen-fp-transaction-data",children:[h("div",{className:"adyen-fp-transaction-data__container",children:[((t==null?void 0:t.status)||(t==null?void 0:t.category))&&h("div",{className:"adyen-fp-transaction-data__section adyen-fp-transaction-data__tag-container",children:[(t==null?void 0:t.status)&&h(Qn,{label:n.get(t.status),variant:t.status==="Booked"?Mt.SUCCESS:t.status==="Reversed"?Mt.ERROR:Mt.DEFAULT}),t.category&&h(Qn,{label:n.get(`txType.${t.category}`),variant:Mt.DEFAULT})]}),h("div",{className:`adyen-fp-transaction-data__section adyen-fp-transaction-data__amount adyen-fp-transaction-data__amount--${i}`,children:t.amount?n.amount(t.amount.value,t.amount.currency,{currencyDisplay:"symbol"}):null}),((t==null?void 0:t.paymentMethod)||(t==null?void 0:t.bankAccount))&&h("div",{className:"adyen-fp-transaction-data__section adyen-fp-transaction-data__payment-method",children:[h("div",{className:"adyen-fp-transaction-data__payment-method-logo-container",children:h(pc,{name:t.paymentMethod?t.paymentMethod.type:"bankTransfer",alt:t.paymentMethod?t.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-fp-transactions__payment-method-logo"})}),h("div",{className:"adyen-fp-transaction-data__payment-method-detail",children:t!=null&&t.paymentMethod?Ic(t==null?void 0:t.paymentMethod,"detail"):(r=t==null?void 0:t.bankAccount)==null?void 0:r.accountNumberLastFourDigits})]}),h("div",{className:"adyen-fp-transaction-data__section adyen-fp-transaction-data__label",children:s})]}),(t==null?void 0:t.balanceAccountDescription)&&h("div",{className:"adyen-fp-transaction-data__container",children:[h("div",{className:"adyen-fp-transaction-data__label",children:n.get("account")}),h("div",{children:t.balanceAccountDescription})]}),h("div",{className:"adyen-fp-transaction-data__container",children:[h("div",{className:"adyen-fp-transaction-data__label",children:n.get("referenceID")}),h("div",{"aria-label":n.get("referenceID"),children:t.id})]})]}):h(kM,{isLoading:e,skeletonRowNumber:6})})};const Vo=t=>"transaction"in t;function ll(t){const e=N(()=>Vo(t)?t.transaction:null,[t]),n=N(()=>Vo(t)?null:t.transactionId,[t]),{i18n:s}=q(),i=ws("getTransaction"),r=E(async()=>{if(n)return i(z,{path:{transactionId:n}})},[i,n]),{data:o,error:a,isFetching:c}=ki({fetchOptions:N(()=>({enabled:!!n}),[n]),queryFn:r}),u=N(()=>{if(a)return _c(a,t.onContactSupport)},[a,t.onContactSupport]),f=e??o;return h("div",{className:"adyen-fp-transaction",children:[t.title&&h("div",{className:"adyen-fp-title",children:s.get(t.title)}),a&&u&&h("div",{className:"adyen-fp-transaction--error-container",children:h(Wi,{centered:!0,withImage:!0,...u})}),h(WM,{transaction:f,isFetching:c})]})}class ul extends nc{constructor(n){super(n);O(this,"componentToRender",()=>h(ll,{...this.props}));this.elementRef=n&&n.elementRef||this,this.componentToRender=this.componentToRender.bind(this)}}O(ul,"type","transactionsDetails");const zM=ul;async function BM(t){return await new ka(t).initialize()}exports.AdyenFP=BM;exports.Core=ka;exports.TransactionDetails=ll;exports.TransactionFilterParam=U;exports.TransactionsElement=PM;exports.TransactionsElement$1=zM;exports.all_locales=eg;exports.ar=vm;exports.cs_CZ=Om;exports.da_DK=xm;exports.de_DE=Rm;exports.el_GR=jm;exports.en_US=jr;exports.es_ES=wm;exports.fi_FI=Pm;exports.fr_FR=km;exports.hasOwnProperty=ce;exports.hr_HR=Wm;exports.hu_HU=zm;exports.it_IT=Bm;exports.ja_JP=$m;exports.k=Q;exports.ko_KR=Fm;exports.nl_NL=Um;exports.no_NO=Hm;exports.o=h;exports.pl_PL=Gm;exports.pt_BR=Ym;exports.pt_PT=Zm;exports.ro_RO=Jm;exports.ru_RU=Qm;exports.sk_SK=Vm;exports.sl_SI=Xm;exports.sv_SE=Km;exports.zh_CN=qm;exports.zh_TW=tg;
12
- //# sourceMappingURL=index-0c9f4def.js.map