@adyen/adyen-platform-experience-web 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/da-DK-a148e492.cjs +2 -0
  4. package/dist/da-DK-a148e492.cjs.map +1 -0
  5. package/dist/de-DE-a39a50e8.cjs +2 -0
  6. package/dist/de-DE-a39a50e8.cjs.map +1 -0
  7. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +41 -41
  8. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +93 -94
  9. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +76 -69
  10. package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +25 -0
  11. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +112 -0
  12. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +4 -0
  13. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/constants.js +5 -0
  14. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +30 -0
  15. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.js +4 -0
  16. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +149 -0
  17. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +4 -0
  18. package/dist/es/components/external/ReportsOverview/components/ReportsTable/constants.js +7 -0
  19. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +67 -46
  20. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +28 -17
  21. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +13 -13
  22. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +19 -14
  23. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +10 -10
  25. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +11 -11
  26. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +1 -1
  27. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +183 -164
  28. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +31 -24
  29. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +95 -89
  30. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -5
  31. package/dist/es/components/hooks/useCustomColumnsData.js +29 -0
  32. package/dist/es/components/hooks/useFreezePeriod.js +18 -0
  33. package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js +2 -2
  34. package/dist/es/components/hooks/useTableColumns.js +46 -0
  35. package/dist/es/components/internal/Accordion/Accordion.js +15 -15
  36. package/dist/es/components/internal/Alert/Alert.js +62 -0
  37. package/dist/es/components/internal/Alert/Alert.scss.js +4 -0
  38. package/dist/es/components/internal/Alert/types.js +4 -0
  39. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +81 -0
  40. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +4 -0
  41. package/dist/es/components/internal/Button/DownloadButton/useDownload.js +18 -0
  42. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +221 -211
  43. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +103 -94
  44. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +201 -200
  45. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +19 -18
  46. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -17
  47. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +17 -20
  48. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -12
  49. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -43
  50. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
  51. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +25 -26
  52. package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
  53. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +40 -38
  54. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  55. package/dist/es/components/internal/Card/Card.js +15 -15
  56. package/dist/es/components/internal/DataGrid/DataGrid.js +4 -4
  57. package/dist/es/components/internal/DataGrid/DataGridCell.js +12 -12
  58. package/dist/es/components/internal/DataGrid/components/Icon.js +17 -0
  59. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +7 -7
  60. package/dist/es/components/internal/DataGrid/components/TableCells.js +54 -37
  61. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
  62. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +54 -54
  63. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +45 -0
  64. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +4 -0
  65. package/dist/es/components/internal/DataOverviewDisplay/constants.js +30 -24
  66. package/dist/es/components/internal/DatePicker/DatePicker.js +17 -16
  67. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +13 -13
  68. package/dist/es/components/internal/FilterBar/FilterBar.js +50 -42
  69. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +7 -7
  70. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +14 -14
  71. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +58 -52
  72. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
  73. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +81 -76
  74. package/dist/es/components/internal/FormFields/InputBase.js +25 -25
  75. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +1 -1
  76. package/dist/es/components/internal/FormFields/Select/Select.js +5 -5
  77. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +5 -5
  78. package/dist/es/components/internal/Image/Image.js +6 -6
  79. package/dist/es/components/internal/Img/Img.js +4 -4
  80. package/dist/es/components/internal/Modal/Modal.js +6 -6
  81. package/dist/es/components/internal/Pagination/Pagination.js +17 -17
  82. package/dist/es/components/internal/Popover/Popover.js +11 -11
  83. package/dist/es/components/internal/SVGIcons/Download.js +21 -0
  84. package/dist/es/components/internal/SVGIcons/Warning.js +23 -0
  85. package/dist/es/components/internal/SVGIcons/WarningFilled.js +18 -0
  86. package/dist/es/components/internal/StructuredList/StructuredList.js +8 -8
  87. package/dist/es/components/internal/Tag/Tag.js +8 -8
  88. package/dist/es/components/internal/Tooltip/Tooltip.js +20 -20
  89. package/dist/es/components/internal/Typography/Typography.js +12 -12
  90. package/dist/es/components/utils/getLabel.js +6 -3
  91. package/dist/es/core/Http/http.js +34 -31
  92. package/dist/es/core/Http/utils.js +39 -30
  93. package/dist/es/core/Localization/Localization.js +74 -76
  94. package/dist/es/core/Localization/constants/localization.js +9 -6
  95. package/dist/es/core/Localization/datetime/restamper/utils.js +26 -26
  96. package/dist/es/core/Localization/localization-utils.js +11 -12
  97. package/dist/es/core/Localization/utils.js +45 -47
  98. package/dist/es/core/core.js +1 -1
  99. package/dist/es/index.js +14 -12
  100. package/dist/es/primitives/time/today/main.js +38 -43
  101. package/dist/es/translations/da-DK.json.js +2 -218
  102. package/dist/es/translations/de-DE.json.js +2 -218
  103. package/dist/es/translations/en-US.json.js +2 -218
  104. package/dist/es/translations/es-ES.json.js +2 -218
  105. package/dist/es/translations/fr-FR.json.js +2 -218
  106. package/dist/es/translations/index.js +39 -45
  107. package/dist/es/translations/it-IT.json.js +2 -218
  108. package/dist/es/translations/nl-NL.json.js +2 -218
  109. package/dist/es/translations/no-NO.json.js +2 -218
  110. package/dist/es/translations/pt-BR.json.js +2 -218
  111. package/dist/es/translations/sv-SE.json.js +2 -218
  112. package/dist/es/utils/preact/className.js +3 -3
  113. package/dist/es-ES-153e5f15.cjs +2 -0
  114. package/dist/es-ES-153e5f15.cjs.map +1 -0
  115. package/dist/fr-FR-69b3df0d.cjs +2 -0
  116. package/dist/fr-FR-69b3df0d.cjs.map +1 -0
  117. package/dist/it-IT-efca230f.cjs +2 -0
  118. package/dist/it-IT-efca230f.cjs.map +1 -0
  119. package/dist/nl-NL-ffbb8184.cjs +2 -0
  120. package/dist/nl-NL-ffbb8184.cjs.map +1 -0
  121. package/dist/no-NO-eaf65f6f.cjs +2 -0
  122. package/dist/no-NO-eaf65f6f.cjs.map +1 -0
  123. package/dist/pt-BR-590ccc53.cjs +2 -0
  124. package/dist/pt-BR-590ccc53.cjs.map +1 -0
  125. package/dist/style.css +1 -1
  126. package/dist/sv-SE-18f4e86e.cjs +2 -0
  127. package/dist/sv-SE-18f4e86e.cjs.map +1 -0
  128. package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
  129. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +2 -2
  130. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
  131. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +9 -0
  132. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -0
  133. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +8 -0
  134. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -0
  135. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts +3 -0
  136. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts.map +1 -0
  137. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts +4 -0
  138. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts.map +1 -0
  139. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts +2 -0
  140. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts.map +1 -0
  141. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +15 -0
  142. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -0
  143. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts +5 -0
  144. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts.map +1 -0
  145. package/dist/types/components/external/ReportsOverview/index.d.ts +2 -0
  146. package/dist/types/components/external/ReportsOverview/index.d.ts.map +1 -0
  147. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +20 -2
  148. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  149. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  150. package/dist/types/components/external/TransactionDetails/types.d.ts +5 -1
  151. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  152. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
  153. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +1 -1
  154. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
  155. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
  156. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  157. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
  158. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +3 -1
  159. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  160. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +1 -0
  161. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -1
  162. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +5 -0
  163. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
  164. package/dist/types/components/external/index.d.ts +1 -0
  165. package/dist/types/components/external/index.d.ts.map +1 -1
  166. package/dist/types/components/hooks/useCustomColumnsData.d.ts +13 -0
  167. package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +1 -0
  168. package/dist/types/components/hooks/useFreezePeriod.d.ts +6 -0
  169. package/dist/types/components/hooks/useFreezePeriod.d.ts.map +1 -0
  170. package/dist/types/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
  171. package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +1 -0
  172. package/dist/types/components/hooks/useTableColumns.d.ts +20 -0
  173. package/dist/types/components/hooks/useTableColumns.d.ts.map +1 -0
  174. package/dist/types/components/internal/Alert/Alert.d.ts +5 -0
  175. package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -0
  176. package/dist/types/components/internal/Alert/types.d.ts +17 -0
  177. package/dist/types/components/internal/Alert/types.d.ts.map +1 -0
  178. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts +16 -0
  179. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts.map +1 -0
  180. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +143 -0
  181. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -0
  182. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  183. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
  184. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
  185. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
  186. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
  187. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
  188. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
  189. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
  190. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
  191. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
  192. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
  193. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +0 -5
  194. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  195. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
  196. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
  197. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
  198. package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
  199. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
  200. package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
  201. package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
  202. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
  203. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
  204. package/dist/types/components/internal/Calendar/types.d.ts +1 -0
  205. package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
  206. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -5
  207. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
  208. package/dist/types/components/internal/DataGrid/components/Icon.d.ts +7 -0
  209. package/dist/types/components/internal/DataGrid/components/Icon.d.ts.map +1 -0
  210. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  211. package/dist/types/components/internal/DataGrid/types.d.ts +4 -3
  212. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  213. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts +1 -1
  214. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts.map +1 -1
  215. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
  216. package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -2
  217. package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
  218. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts +13 -0
  219. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts.map +1 -0
  220. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +3 -0
  221. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +1 -0
  222. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +5 -2
  223. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
  224. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
  225. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
  226. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  227. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +1 -1
  228. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
  229. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
  230. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  231. package/dist/types/components/internal/FilterBar/FilterBar.d.ts +9 -2
  232. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  233. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  234. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
  235. package/dist/types/components/internal/FilterBar/index.d.ts +1 -0
  236. package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -1
  237. package/dist/types/components/internal/FilterBar/types.d.ts +11 -1
  238. package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
  239. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  240. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  241. package/dist/types/components/internal/SVGIcons/Download.d.ts +4 -0
  242. package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -0
  243. package/dist/types/components/internal/SVGIcons/Warning.d.ts +4 -0
  244. package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -0
  245. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +4 -0
  246. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +1 -0
  247. package/dist/types/components/internal/StructuredList/types.d.ts +1 -1
  248. package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
  249. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +2 -2
  250. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
  251. package/dist/types/components/types.d.ts +33 -1
  252. package/dist/types/components/types.d.ts.map +1 -1
  253. package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
  254. package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
  255. package/dist/types/components/utils/getErrorMessage.d.ts +1 -1
  256. package/dist/types/components/utils/getErrorMessage.d.ts.map +1 -1
  257. package/dist/types/components/utils/getLabel.d.ts +4 -1
  258. package/dist/types/components/utils/getLabel.d.ts.map +1 -1
  259. package/dist/types/core/Auth/context.d.ts +8 -6
  260. package/dist/types/core/Auth/context.d.ts.map +1 -1
  261. package/dist/types/core/Auth/session/AuthSession.d.ts +8 -6
  262. package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
  263. package/dist/types/core/Auth/session/AuthSetupContext.d.ts +8 -6
  264. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
  265. package/dist/types/core/Http/http.d.ts.map +1 -1
  266. package/dist/types/core/Http/utils.d.ts +2 -0
  267. package/dist/types/core/Http/utils.d.ts.map +1 -1
  268. package/dist/types/core/Localization/Localization.d.ts +8 -10
  269. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  270. package/dist/types/core/Localization/constants/localization.d.ts +5 -2
  271. package/dist/types/core/Localization/constants/localization.d.ts.map +1 -1
  272. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  273. package/dist/types/core/Localization/localization-utils.d.ts +4 -4
  274. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  275. package/dist/types/core/Localization/types.d.ts +0 -19
  276. package/dist/types/core/Localization/types.d.ts.map +1 -1
  277. package/dist/types/core/Localization/utils.d.ts +7 -271
  278. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  279. package/dist/types/core/core.d.ts +2 -3
  280. package/dist/types/core/core.d.ts.map +1 -1
  281. package/dist/types/core/types.d.ts +5 -4
  282. package/dist/types/core/types.d.ts.map +1 -1
  283. package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
  284. package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
  285. package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
  286. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
  287. package/dist/types/index.d.ts +2 -3
  288. package/dist/types/index.d.ts.map +1 -1
  289. package/dist/types/primitives/time/today/main.d.ts.map +1 -1
  290. package/dist/types/translations/index.d.ts +44 -2529
  291. package/dist/types/translations/index.d.ts.map +1 -1
  292. package/dist/types/types/api/models/reports.d.ts +1 -1
  293. package/dist/types/types/api/models/reports.d.ts.map +1 -1
  294. package/dist/types/types/api/resources/ReportsResource.d.ts +18 -19
  295. package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
  296. package/dist/types/utils/types.d.ts +3 -0
  297. package/dist/types/utils/types.d.ts.map +1 -1
  298. package/package.json +8 -5
  299. package/dist/es/core/Localization/constants/locale.js +0 -7
  300. package/dist/types/components/external/TransactionsOverview/hooks/useResponsiveViewport.d.ts.map +0 -1
  301. package/dist/types/core/Localization/constants/locale.d.ts +0 -139
  302. package/dist/types/core/Localization/constants/locale.d.ts.map +0 -1
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Xu=Object.defineProperty;var Ku=(e,t,n)=>t in e?Xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w=(e,t,n)=>(Ku(e,typeof t!="symbol"?t+"":t,n),n),Lr=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var h=(e,t,n)=>(Lr(e,t,"read from private field"),n?n.call(e):t.get(e)),S=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_=(e,t,n,o)=>(Lr(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var zt=(e,t,n,o)=>({set _(s){_(e,t,s,n)},get _(){return h(e,t,o)}}),R=(e,t,n)=>(Lr(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("classnames"),kr="test",qu=e=>{var t;return(t=e==null?void 0:e.replace)==null?void 0:t.call(e,/([^\/])$/,"$1/")},ed=e=>e==null?void 0:e.replace(/^([^\/])/,"/$1"),td=(()=>{const e={test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"};return t=>e[t??kr]||e[kr]})(),dn=Function.prototype.bind.bind(Function.prototype.call),ri=e=>()=>e,nd=async()=>{},ya=e=>e,oe=()=>{},od=dn(Object.prototype.toString),sd=e=>od(e).slice(8,-1),jr=e=>e===!!e,K=e=>typeof e=="function",Ms=e=>e===null,ue=e=>e==null,ns=e=>typeof e=="number",or=e=>sd(e)==="Object",qe=e=>typeof e=="string",rd=e=>typeof e=="symbol",G=e=>e===void 0,on=(e,t,n)=>(Math.min(e,n)!==e&&([e,n]=[n,e]),Math.max(e,Math.min(t,n))),_o=e=>!rd(e)&&e===~~e,sn=e=>ns(e)&&1/e===0,mc=(e,t)=>{if(Number.isInteger(e)&&Number.isInteger(t))return e+Math.floor((t-e)/2);throw TypeError(`Expects 2 integer values: [${e}, ${t}]`)},os=(e,t)=>(e%t+t)%t,ai="abort",ad="signal is aborted without reason",pn=(e,t=e)=>jr(e)?e:!!t,xe=e=>e===!0,Pt=e=>e!==!1,id=e=>!1,Fr=e=>!0,x=(e,t=!1)=>({writable:xe(t),enumerable:!0,value:e}),ce=(e,t=!0)=>({enumerable:Pt(t),get:e}),it=dn(Object.prototype.hasOwnProperty),hn=(e,t)=>e===t||!(e===e||t===t);if(!it(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...ce(function(){return this.aborted?To():void 0},!0),configurable:!0})}catch{}it(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??To()});const To=(e=ad)=>new DOMException(e,"AbortError"),pc=(e,t)=>{if(!hn(e.reason,t))try{Object.defineProperty(e,"reason",x(t))}catch{}return e},cd=(e=To())=>{if("abort"in AbortSignal)return AbortSignal.abort(e);const t=new AbortController,n=G(e)?To():e,{signal:o}=t;return t.abort(n),pc(o,n),o},sr=e=>{if("any"in AbortSignal)return AbortSignal.any(e);let t=new Set,n=new AbortController;const{signal:o}=n;let s=function(){t.forEach(a=>a.removeEventListener(ai,s)),t.clear();const r=(this==null?void 0:this.reason)??To();n.abort(r),pc(o,r),n=t=s=void 0};e:{const r=Symbol("<NIL_EXCEPTION>");let a=r;t:{try{for(const i of e){if(!ss(i))throw new TypeError("Failed to convert value to 'AbortSignal'");if(i.aborted)break t;t.add(i)}}catch(i){a=i;break t}t.forEach(i=>i.addEventListener(ai,s));break e}if(s.call(o),a!==r)throw a}return o},ss=e=>e instanceof AbortSignal,Ce=Object.freeze([]),U=Object.freeze(Object.create(null)),rr=Promise.resolve();Promise.race(Ce);const ar=function(e,...t){return new Promise(n=>n(e.call(this,...t)))},ld=(e,t,n)=>{let o=t.get(e);return G(o)&&K(n)&&(G(o=n(e,t))||t.set(e,o)),o},uo=(e,t=Ce)=>{const n=`${e||""}`.trim(),o=n?n.split(/(?:\s*,\s*)+/).filter(ya):Ce;return o.length?o:t},lo=(e,t,n)=>e.includes(t)?t:ue(t)?e[0]:e.includes(n)?n:e[0],ii=dn(Array.prototype.some),fc=function e(t,n,o=new Set){for(const s of n)Array.isArray(s)?e(t,s,o):(t&&o.delete(s),o.add(s));return o};dn(fc,void 0,!1);dn(fc,void 0,!0);const ud=(...e)=>{const[t]=e,o=(e.length>=2?new Date(...e):t instanceof Date?t:new Date(qe(t)||Number.isFinite(t)?t:void 0)).getTime();return Number.isFinite(o)?o:void 0},dd=(()=>{let e=Date.now();return(t="adyen-pe")=>`${t}-${++e}`})(),Ia=(()=>{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>e.replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t=="x"?n:n&3|8).toString(16)})})(),Ao=(e,t=U)=>or(e)?e:Ao(t,U),oo=dn(Object.create,void 0),H=dn(oo,void 0,null),ir=(e=U)=>Object.freeze({...e,defineProperty:Fr,set:Fr}),hd=e=>e&&(e==null?void 0:e.length)>0?`${e[0].toUpperCase()}${e.slice(1)}`:e,gd=e=>ue(e)||qe(e)&&/^\s*$/.test(e),md="/setup",pd=xe(void 0),ci=(()=>{let e=0;if(Number.isFinite(e)&&(e=Math.max(0,~~e)))return e})();class fd extends Error{constructor(n,o,s,r){super(s);w(this,"type");w(this,"errorCode");w(this,"requestId");this.type=n,this.name=n,this.errorCode=r,this.requestId=o}}const yd=fd;var yc=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.CANCEL="CANCEL",e.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",e.ERROR="ERROR",e.EXPIRED_TOKEN="EXPIRED_TOKEN",e))(yc||{});const Id=e=>{switch(e){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},_d=(e,t)=>{const{headers:n=[],method:o="GET"}=e;return{method:o,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n,"SDK-Version":"1.0.2"},redirect:"follow",signal:e.signal,referrerPolicy:"no-referrer-when-downgrade",...o==="POST"&&t&&{body:JSON.stringify(t)}}};function Td({message:e,level:t,errorCode:n,type:o="NETWORK_ERROR",requestId:s}){switch(t){case"silent":break;case"info":case"warn":console[t](e);break;case"error":default:throw new yd(o,s,e,n)}}function Ad(e){return e&&e.errorCode&&e.type&&(e.detail||e.invalidFields)&&e.status}function Sd(e){const t=new URLSearchParams;for(const n of Object.keys(e)){const o=e[n];ue(o)||(Array.isArray(o)?o.forEach(s=>t.append(n,s)):t.set(n,String(o)))}return t}const Ic=e=>{let t,n,o;const s=()=>{if(G(t))return;const c=t.abort.bind(t);t=void 0,c()},r=()=>(o=new Promise((c,d)=>{if(n.addEventListener("abort",function g(){n.removeEventListener("abort",g),d(e)}),n.aborted)throw e}),o.catch(oe),o),a=()=>(G(t)&&(t=new AbortController,n=t.signal,o=r()),i),i=H({abort:x(s),promise:ce(()=>o),reason:x(e),refresh:x(a),signal:ce(()=>n)});return a()},Nd=()=>{let e,t,n;const o=()=>{const r=n??oe,a=new Promise((i,c)=>{n=i,t=c});return r(e=a),s},s=H({promise:ce(()=>e),refresh:x(o),reject:x(r=>t(r)),resolve:x(r=>n(r))});return o()},rs=e=>{const t=Ic(),n=Nd();let o;return Object.defineProperties(function(...r){G(o)?n.refresh():t.abort();const a=ar.call(this,e,t.refresh().signal,...r);return(async()=>{let i=o===(o=a);try{const c=await a.finally(()=>{i=o===a,i&&(o=void 0)});i&&n.resolve(c)}catch(c){i&&n.reject(c)}})(),a},{abort:x(t.abort),promise:ce(()=>n.promise),refresh:x(()=>void n.refresh())})};class Ld{constructor(t){w(this,"_endpoints",U);w(this,"_revokeEndpointsProxy",oe);w(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(oe)});w(this,"_refreshPromisor",rs((t,n)=>{const o=ss(n)?sr([n,t]):t;return this._fetchSetupEndpoint(o)}));this._session=t;let n;this.refresh=o=>(this._refreshPromisor(o).catch(oe),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:s})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(s)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(t){return this._session.http(null,{method:"POST",path:md,errorLevel:"fatal",loadingContext:this.loadingContext,signal:t})}_getEndpointsProxy(t){const n=new Set(Object.keys(t)),o=H();return Proxy.revocable(U,ir({get:(s,r,a)=>n.has(r)?(o[r]??(o[r]=(()=>{const{method:i="GET",url:c}=t[r];if(!G(c||void 0))return(...d)=>{const g=this._getHttpOptions(i,c,...d);return this._session.http(this._beforeHttp,g)}})()),o[r]):Reflect.get(s,r,a)}))}_getHttpOptions(t,n,...o){const{loadingContext:s}=this,[r,a]=o,{path:i,query:c}=Ao(a),d=c&&Sd(c);if(or(i))for(const g of Object.keys(i))n=n.replace(`{${g}}`,i[g]);return{loadingContext:s,...r,method:t,params:d,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=oe,this._endpoints=U}}const Cd=Ld,_c=Symbol("Error<SESSION_EXPIRED>"),Md=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),Ed=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),vd=Symbol("Error<SESSION_INVALID>"),Tc=Symbol("Error<SESSION_REFRESH_ABORTED>"),cr="_sessionExpired",Ac="_sessionReady",bd="_sessionRefreshed",Dd="_sessionRefreshingEnd",Od="_sessionRefreshingStart",Sc="_session.deadline",Nc="_session.ready",Lc="_session.refreshingEnd",Cc="_session.refreshingStart",$d=async e=>{const{specification:t}=e.context,n=await ar(async()=>{const o=t.autoRefresh;return K(o)?o.call(t,e.session):o}).catch(id);return xe(n)},Rd=e=>{let t=e.context.emitter.on(cr,()=>s(!1)),n,o=rs(async(i,c=!1)=>{n=i;const d=xe(c)||await $d(e);n===i&&d&&e.pending&&!e.refreshing&&e.refresh(n).catch(oe)}),s=(i=!1)=>{e.refreshing||o(i)},r=()=>{t(),o.abort(),o=n=t=void 0,s=r=oe};return Object.defineProperties((i=!1)=>s(i),{destruct:ce(()=>r,!1)})},li=1e3,xd=2147483647,wd=(e,t=li,n=!1)=>{var g;let o=new AbortController,s=on(0,~~t,xd),r=xe(n);Number.isFinite(s)||(s=li);const a=((g=document.timeline)==null?void 0:g.currentTime)??performance.now(),i=()=>{o==null||o.abort(),o=void 0},c=u=>{!o||o.signal.aborted||(d(u),e(u))},d=u=>{let p=0;if(!r){const m=u-a,y=Math.round(m/s)*s;p=a+y+s-performance.now()}setTimeout(()=>requestAnimationFrame(c),p)};return d(a),r=!1,H({cancel:x(i),delay:x(t),signal:x(o.signal)})},Pd=e=>{const t={},n=Object.getOwnPropertyDescriptors(e);for(const o of Object.keys(e)){const{get:s,value:r}=n[o];t[o]=ce(s||(K(r)?r.bind(e):()=>r))}return H(t)},kd=()=>{const e={idle:null,resume:null},t={};for(const n of Object.keys(e))t[n]={get:()=>e[n]??oe,set:o=>{ue(o)?e[n]=null:K(o)&&o!==e[n]&&(e[n]=o)}};return H(t)},Mc=Symbol("<<UNSUBSCRIBE>>"),so=e=>e===Mc,as=e=>{let t;const n=Pd(e),o=kd(),s=new Map,r=new WeakMap,a=()=>Object.freeze({...n}),i=()=>s.size===0,c=g=>{if(i())return;if(so(g)){const p=[];return s.forEach((m,y)=>{p.push(y);const f=r.get(y);for(;m--;)f==null||f()}),p.forEach(m=>m(g)),!0}const u=t;t=a();for(const p of Object.keys(t))if(!hn(t[p],u[p]))return s.forEach((m,y)=>y(t)),!0;return!1},d=g=>{if(!K(g))return oe;const u=ld(g,r,()=>{let m=()=>{const y=s.get(g)||0;y===1?(m=void 0,s.delete(g),r.delete(g),i()&&(t=void 0,o.idle())):y>1&&s.set(g,y-1)};return()=>{m==null||m()}}),p=i();return s.set(g,(s.get(g)||0)+1),p&&(t=a(),o.resume()),g(t),u};return H({idle:ce(i),on:x(o),cancelSubscriptions:x(()=>c(Mc)),requestNotification:x(()=>c()),snapshot:ce(()=>t??a()),subscribe:x(d)})},Ec=(()=>{let e;const{cancelSubscriptions:t,requestNotification:n,subscribe:o,on:s}=as({now:()=>Date.now()});return s.resume=()=>{e=wd(n,1e3,!1)},s.idle=()=>{e==null||e.cancel(),e=void 0},H({cancelSubscriptions:x(t),subscribe:x(o)})})(),vc=Ec,_a=()=>{const e=new class extends EventTarget{},t=(o,...s)=>{const[r]=s;s.length&&G(r)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const a=new CustomEvent(o,H({bubbles:x(!1),cancelable:x(!1),detail:x(r??null)}));return e.dispatchEvent(a)},n=(o,s)=>{if(!K(s))return oe;const r=a=>s.call(null,H({detail:x(a.detail),timeStamp:x(a.timeStamp),type:x(a.type)}));return e.addEventListener(o,r),()=>e.removeEventListener(o,r)};return H({emit:x(t),on:x(n)})},jd=(e,t)=>{let n,o=1/0,s,r;const a=Ic(),i=_a(),c=()=>{n==null||n.removeEventListener("abort",c),o=1/0,r==null||r(),a.refresh(),i.emit(Sc)},d=rs(async(u,p)=>{s=u;const m=await ar(()=>{const f=t.deadline;return K(f)?f.call(t,p,u):f}).catch(oe);if(s!==u)return;const y=(Array.isArray(m)?m:[m]).filter(f=>f||f===0);if(y.length>0){let f=!1,A=new Set;for(const I of y)if(ss(I)){if(f=I.aborted)break;A.add(I)}else if(o=Math.min(o,ud(I)??1/0),f=o<=Date.now())break;f||(f=A.size<1&&!Number.isFinite(o)),f?n??(n=cd()):(n=sr([...A,a.signal]),n.addEventListener("abort",c),g()),y.length=0,A.clear()}else n=void 0}),g=()=>{if(!Number.isFinite(o))return;let u=vc.subscribe(p=>{if(so(p))return c();p.now>=o&&a.abort()});r=()=>{u==null||u(),u=r=void 0}};return H({elapse:x(a.abort),elapsed:ce(()=>n&&n.aborted),on:x(i.on),refresh:x(d.bind(void 0)),signal:ce(()=>a.signal)})},Fd=(e,t)=>{let n=!1,o,s,r=!0,a;const i=Symbol("<next_session>"),c=_a();function d(m){var y;try{(y=t.assert)==null||y.call(t,m)}catch{throw vd}}function g(m){if(!K(m))throw Md}const u=rs((m,y)=>{if(!s)s=m;else return p(ss(y)?sr([y,m]):m)}),p=async m=>{let y=i;try{n=!1,s=m,r&&await(o??(o=(async()=>{await rr,r=!1,c.emit(Cc)})())),g(t.onRefresh),y=await ar(()=>t.onRefresh(a,m)).finally(()=>{if(m.aborted)throw Tc})}finally{if(s===m)try{y!==i&&(d(y),a=y,c.emit(Nc))}finally{o=void 0,r=!0,c.emit(Lc)}}};return e.on(cr,()=>n=!o),u(),H({context:x(H({emitter:x(e),specification:x(t)})),on:x(c.on),pending:ce(()=>n),promise:ce(()=>u.promise),refresh:x(u.bind(void 0)),refreshing:ce(()=>!!o),session:ce(()=>a),signal:ce(()=>s)})};class Wd{constructor(t){w(this,"_session");w(this,"_autofresh");w(this,"_deadline");w(this,"_refresher");w(this,"_eventEmitter",_a());this._specification=t,this._deadline=jd(this._eventEmitter,this._specification),this._refresher=Fd(this._eventEmitter,this._specification),this._autofresh=Rd(this._refresher),this._deadline.on(Sc,()=>this._eventEmitter.emit(cr)),this._refresher.on(Cc,()=>this._eventEmitter.emit(Od)),this._refresher.on(Lc,()=>this._eventEmitter.emit(Dd)),this._refresher.on(Nc,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(bd)),this._eventEmitter.emit(Ac)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(t){if(!K(t))throw Ed}async _sessionHttp(t,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(oe);const{signal:o}=this._deadline;return await(t==null?void 0:t(this._session,o,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,o,...n)}catch(o){if(o!==_c)throw o;if(this._refresher.pending)continue;this._deadline.elapse()}}}const Bd="v1",Cr=(e,t)=>{try{e==null||e(t)}catch{throw t}};async function zd(e,t){const{errorLevel:n,loadingContext:o="",path:s}=e,r=_d(e,t),a=new URL(`${qu(o)}${Bd}${ed(s)}`);return e.params&&e.params.forEach((i,c)=>{const d=decodeURIComponent(i);d&&a.searchParams.append(c,d)}),(async()=>{var d;let i=!1;const c={level:n};try{const g=await fetch(a,r);if(g.ok)try{switch((d=g.headers.get("Content-Type"))==null?void 0:d.split(";",1)[0]){case"application/json":return await g.json();default:return await g.blob()}}catch(p){throw i=!0,p}c.type=Id(g.status);const u=await g.json();c.message=e.errorMessage||`Service at ${a} not available`,c.errorCode=String(u.status),c.requestId=u==null?void 0:u.requestId,Ad(u)&&(c.message=u.detail,c.errorCode=u.errorCode),Cr(e.errorHandler,c)}catch(g){if(i)throw Cr(e.errorHandler,g),g;Cr(e.errorHandler,g),c.message=e.errorMessage||`Call to ${a} failed. Error: ${g}`}Td(c)})()}class Ud{constructor(t){w(this,"assert",t=>{if(or(t)){const n=qe(t.id)?t.id.trim():void 0,o=qe(t.token)?t.token.trim():void 0;if(n&&o)return}throw void 0});w(this,"deadline",t=>{const n=[];let o,s;try{({iat:o,exp:s}=JSON.parse(atob(t==null?void 0:t.token.split(".")[1]))),n.push(s)}catch{o=Date.now()}if(!G(ci)){const r=new Date(o);n.push(r.setMilliseconds(r.getMilliseconds()+ci))}return n});w(this,"http",async(t,n,o,s)=>{const{headers:r,signal:a,...i}=o;try{const c={...i,headers:{...r,...t&&{Authorization:`Bearer ${t.token}`}},errorHandler:this._errorHandler,signal:ss(a)?sr([n,a]):n};return await zd(c,s)}catch(c){throw(c==null?void 0:c.type)===yc.EXPIRED_TOKEN?_c:c}});this.onSessionCreate=t,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:x(pd),onRefresh:x((n,o)=>this.onSessionCreate(o))})}_errorHandler(t){try{this.errorHandler&&this.errorHandler(t)}catch{}throw t}}const Yd=Ud,ho=Symbol("<<NO_ERR>>");function Hd(e){/* istanbul ignore if -- @preserve */if(e===ho)throw new TypeError("Illegal error")}const Gd=()=>{let e=ho;const t=()=>{e=ho},n=o=>{Hd(o),e=o};return H({error:ce(()=>e===ho?void 0:e),hasError:ce(()=>e!==ho),reset:x(t),set:x(n)})};class Vd{constructor(){w(this,"_canSkipSessionRefresh",!1);w(this,"_refreshPromisorSignal");w(this,"_errorContainer",Gd());w(this,"_specification",new Yd);w(this,"_sessionContext",new Wd(this._specification));w(this,"_setupContext",new Cd(this._sessionContext));w(this,"_refreshPromisor",rs(async(t,n=!1)=>{let o=!this._refreshPromisorSignal,s=this._refreshPromisorSignal===(this._refreshPromisorSignal=t);const r=xe(n)&&this._canSkipSessionRefresh;o&&(o=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(r?this._setupContext:this._sessionContext).refresh(t).finally(()=>s=this._refreshPromisorSignal===t)}catch(a){if(!s)return;!t.aborted&&(r||a!==Tc)&&this._errorContainer.set(a),o=!r}finally{(o||r&&s)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));w(this,"_watchlist",as({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,http:ri(this._sessionContext.http.bind(this._sessionContext,null)),isExpired:()=>this._sessionContext.isExpired,refresh:ri(this._refresh.bind(this)),refreshing:()=>!!this._refreshPromisorSignal}));this.destroy=()=>{this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()},this.subscribe=this._watchlist.subscribe,this._watchlist.on.resume=()=>{const t=[this._sessionContext.on(cr,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(Ac,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,t.forEach(n=>n()),t.length=0},this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(t){this._setupContext.loadingContext=t}set errorHandler(t){this._specification.errorHandler=t}set onSessionCreate(t){this._specification.onSessionCreate!==t&&(this._specification.onSessionCreate=t,this._refreshPromisorSignal&&K(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(t=!1){this._refreshPromisor(t)}}const Zd={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$"},bc=Zd,Jd={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},Qd=Jd,Xd=e=>Qd[e]||100,Kd=e=>!!bc[e],Dc=e=>Kd(e)?bc[e]:null,qd=(e,t)=>{const n=Xd(t);return parseInt(String(e),10)/n},eh=(e,t,n,o=!1,s={})=>{const r=e.toString(),a=qd(r,n),i=t.replace("_","-"),c={style:"currency",currency:n,currencyDisplay:"symbol",...s};try{return o?th(i,c,a):a.toLocaleString(i,c)}catch{return r}},th=(e,t,n)=>Intl.NumberFormat(e,t).formatToParts(n).filter(o=>o.type!=="currency").reduce((o,s)=>o+s.value,"").trim(),nh="Account",oh="Account Balance",sh="Additions",rh="Adjustments",ah="Amount",ih="Apply",ch="Balance account",lh="Balance account ID",uh="Booked",dh="Captured",hh="Category",gh="Chargebacks",mh="Close",ph="Contact support for help and share error code %{requestId}",fh="Corrections",yh="Currency",Ih="Date",_h="Date range",Th="Description",Ah="Dismiss",Sh="Email",Nh="Entity was not found",Lh="Transaction not found for the specified Account Holder",Ch="Fees",Mh="Filter bar",Eh="From",vh="Funds captured",bh="Grant issued",Dh="Grant repayments",Oh="Hide content",$h="ID",Rh="Incomplete field",xh="Mobile",wh="Net payout",Ph="Next Payouts",kh="No data",jh="No negative numbers allowed",Fh="No payouts found",Wh="No transactions found",Bh="Other",zh="Paginated navigation",Uh="Payment ID",Yh="Payment method",Hh="Payout Details",Gh="Payouts",Vh="Pending",Zh="Please, reach out to support for assistance.",Jh="Reach out to support",Qh="Reference ID",Xh="Refresh",Kh="Refunds",qh="Remaining amount",eg="Reset",tg="Reversed",ng="Something went wrong.",og="Status",sg="Structured list",rg="Subtractions",ag="Tabs",ig="The error code is %{requestId}",cg="There are no results",lg="The request is missing required fields or contains invalid data.",ug="There was an unexpected error",dg="The selected balance account is incorrect",hg="Timezone",gg="To",mg="Total incoming",pg="Total outgoing",fg="To value should be equal or greater than the From value",yg="Transaction details",Ig="Transactions",_g="Transactions overview",Tg="Transaction type",Ag="Transfers",Sg="Try a different search or reset your filters, and we’ll try again.",Ng="Try refreshing the page or come back later.",Lg="Amount",Cg="Type",Mg="Value",Eg="We could not load the payouts overview.",vg="We could not load the transactions overview.",bg="We couldn’t load your balance accounts.",Dg="We could not load your payouts.",Og="We could not load your transactions.",Oc={account:nh,accountBalance:oh,additions:sh,adjustments:rh,amount:ah,apply:ih,balanceAccount:ch,balanceAccountId:lh,Booked:uh,"button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})",capture:dh,category:hh,chargeback:gh,closeIconLabel:mh,contactSupportForHelpAndShareErrorCode:ph,correction:fh,currency:yh,date:Ih,dateRange:_h,default:"Default",description:Th,dismiss:Ah,email:Sh,entityWasNotFound:Nh,entityWasNotFoundDetail:Lh,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",export:"Export",fee:Ch,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}",filterBar:Mh,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status",from:Eh,fundsCaptured:vh,grantIssued:bh,grantRepayment:Dh,hideContent:Oh,id:$h,incompleteField:Rh,mobile:xh,netPayout:wh,nextPayouts:Ph,noData:kh,noNegativeNumbersAllowed:jh,noPayoutsFound:Fh,noTransactionsFound:Wh,other:Bh,paginatedNavigation:zh,"pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing",paymentId:Uh,paymentMethod:Yh,payoutDetails:Hh,payoutsTitle:Gh,Pending:Vh,pleaseReachOutToSupportForAssistance:Zh,"rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","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",reachOutToSupport:Jh,referenceID:Qh,refresh:Xh,refund:Kh,remainingAmount:qh,reset:eg,Reversed:tg,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search",somethingWentWrong:ng,status:og,structuredList:sg,subtractions:rg,tabs:ag,theErrorCodeIs:ig,thereAreNoResults:cg,theRequestIsMissingRequiredFieldsOrContainsInvalidData:lg,thereWasAnUnexpectedError:ug,theSelectedBalanceAccountIsIncorrect:dg,timezone:hg,to:gg,"tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account",totalIncoming:mg,totalOutgoing:pg,toValueShouldBeGreaterThanTheFromValue:fg,transactionDetails:yg,transactions:Ig,transactionsOverviewTitle:_g,transactionType:Tg,transfer:Ag,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Sg,tryRefreshingThePageOrComeBackLater:Ng,txAmount:Lg,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer",type:Cg,value:Mg,weCouldNotLoadThePayoutsOverview:Eg,weCouldNotLoadTheTransactionsOverview:vg,weCouldNotLoadYourBalanceAccounts:bg,weCouldNotLoadYourPayouts:Dg,weCouldNotLoadYourTransactions:Og},wt="en-US",$g=/^[a-z]{2}-[A-Z]{2}$/,$c=Oc,Rg=["da-DK","de-DE","en-US","es-ES","fr-FR","it-IT","nl-NL","no-NO","pt-BR","sv-SE"],xg={year:"numeric",month:"2-digit",day:"2-digit"},hs=Rg,wg=["constructor","i18n","watch","preferredTranslations"],Pg=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:kg,BASE_LOCALE:jg,SYSTEM_TIMEZONE:gs,SYSTEM_TIMEZONE_FORMATTER:_n}=(()=>{const e="en-US",t="2-digit",n="numeric",a=Object.freeze({year:n,month:"short",day:n,hour:t,minute:t,second:t,fractionalSecondDigits:3,timeZoneName:"longOffset"});let i,c;try{c=new Intl.DateTimeFormat(e,a),i=c.resolvedOptions().timeZone}catch{i=void 0}return{BASE_FORMAT_OPTIONS:a,BASE_LOCALE:e,SYSTEM_TIMEZONE:i,SYSTEM_TIMEZONE_FORMATTER:c}})(),Fg=/\+(?=-)|([+-]00:00)/g,Wg=new RegExp("(?<=^\\D?)(\\d)$"),Bg=([e,t])=>(Math.abs(e*60)+t)*(e<0?-1:1),zg=e=>Object.freeze([Math.floor(e/60),os(e,60)]),Ug=e=>parseInt(e,10)||0,Yg=e=>`GMT+${zg(e).map(o=>`${o}`.replace(Wg,"0$1")).join(":")}`.replace(Fg,""),Wr=e=>{var n;const t=((n=e==null?void 0:e.match(Pg))==null?void 0:n[0].split(":",2).map(Ug))??Ce;return Bg(t.concat(0,0).slice(0,2))},Hg=(e,t=_n)=>{const n=Wr(_n==null?void 0:_n.format(e));return Wr(t==null?void 0:t.format(e))-n},Rc=(e,t,n=1)=>{const{offset:o,timestamp:s}=e(t),r=new Date(s);return r.setMinutes(r.getMinutes()-o*n)},Br=(e,t)=>Rc(e,t,1),xc=(e,t)=>Rc(e,t,-1),Gg=(()=>{let e,t;G(gs)||(e=function(){return this.TIMEZONE},t=function(o){if(ue(o))this.TIMEZONE=gs,this.formatter=_n;else try{const s=new Intl.DateTimeFormat(jg,{...kg,timeZone:o}),r=s.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=s}catch{}});function n(...o){if(o.length===0)return n.call(this,Date.now());const s=o[0],r=new Date(s).getTime(),a=this.formatter??_n;return Object.freeze({formatted:a==null?void 0:a.format(r),offset:Hg(r,a),timestamp:r})}return()=>{const o={TIMEZONE:gs},s=t==null?void 0:t.bind(o),r=H({current:{get:e==null?void 0:e.bind(o),set:s},system:{value:gs}});return Object.defineProperties(n.bind(o),{tz:{get:()=>r,set:s}})}})(),lr=Gg,Vg="Konto",Zg="Kontosaldo",Jg="Tilføjelser",Qg="Justeringer",Xg="Beløb",Kg="Anvend",qg="Saldokonto",em="Id for saldokonto",tm="Reserveret",nm="Indsamlet",om="Kategori",sm="Chargebacks",rm="Luk",am="Kontakt support for at få hjælp, og del fejlkode %{requestId}",im="Rettelser",cm="Valuta",lm="Dato",um="Datointerval",dm="Beskrivelse",hm="Afvis",gm="E-mail",mm="Enhed blev ikke fundet",pm="Transaktion blev ikke fundet for den angivne kontoindehaver",fm="Gebyrer",ym="Filterbjælke",Im="Fra",_m="Indsamlede midler",Tm="Bevilliget tilskud",Am="Tilbagebetaling af tilskud",Sm="Skjul indhold",Nm="ID",Lm="Ufuldstændigt felt",Cm="Mobil",Mm="Nettoudbetaling",Em="Næste udbetalinger",vm="Ingen data",bm="Ingen negative tal er tilladt",Dm="Ingen udbetalinger er fundet",Om="Ingen transaktioner er fundet",$m="Andet",Rm="Pagineret navigation",xm="Betalings-id",wm="Betalingsmetode",Pm="Oplysninger om udbetaling",km="Udbetalinger",jm="Afventer",Fm="Kontakt support for at få hjælp.",Wm="Ræk ud efter støtte",Bm="Reference-id",zm="Opdater",Um="Refunderinger",Ym="Resterende beløb",Hm="Nulstil",Gm="Tilbageført",Vm="Noget gik galt.",Zm="Status",Jm="Struktureret liste",Qm="Subtraktioner",Xm="Faner",Km="Fejlkoden er %{requestId}",qm="Der er ingen resultater",ep="Anmodningen mangler påkrævede felter eller indeholder ugyldige data.",tp="Der opstod en uventet fejl",np="Den valgte saldokonto er forkert",op="Tidszone",sp="Til",rp="Indgående i alt",ap="Udgående i alt",ip="Værdien til skal være lig med eller større end værdien fra",cp="Transaktionsoplysninger",lp="Transaktioner",up="Oversigt over transaktioner",dp="Transaktionstype",hp="Overførsler",gp="Prøv en anden søgning, eller nulstil dine filtre, så vi kan prøve igen.",mp="Prøv at opdatere siden, eller kom tilbage senere.",pp="Beløb",fp="Type",yp="Værdi",Ip="Vi kunne ikke indlæse oversigten over udbetalinger.",_p="Vi kunne ikke indlæse transaktionsoversigten.",Tp="Vi kunne ikke indlæse dine saldokonti.",Ap="Vi kunne ikke indlæse dine udbetalinger.",Sp="Vi kunne ikke indlæse dine transaktioner.",Np={account:Vg,accountBalance:Zg,additions:Jg,adjustments:Qg,amount:Xg,apply:Kg,balanceAccount:qg,balanceAccountId:em,Booked:tm,"button.clearAll":"Ryd alt","calendar.controls":"Kontrolelementer til kalendernavigation","calendar.nextMonth":"Næste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidszone er indstillet til: GMT%{offset} (%{time})",capture:nm,category:om,chargeback:sm,closeIconLabel:rm,contactSupportForHelpAndShareErrorCode:am,correction:im,currency:cm,date:lm,dateRange:um,default:"Standard",description:dm,dismiss:hm,email:gm,entityWasNotFound:mm,entityWasNotFoundDetail:pm,"expandableCard.collapse":"Skjul","expandableCard.expand":"Udvid",export:"Eksporter",fee:fm,"filter.date.since":"Siden %{date}","filter.date.until":"Indtil %{dato}",filterBar:ym,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:Im,fundsCaptured:_m,grantIssued:Tm,grantRepayment:Am,hideContent:Sm,id:Nm,incompleteField:Lm,mobile:Cm,netPayout:Mm,nextPayouts:Em,noData:vm,noNegativeNumbersAllowed:bm,noPayoutsFound:Dm,noTransactionsFound:Om,other:$m,paginatedNavigation:Rm,"pagination.nextPage":"Næste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:xm,paymentMethod:wm,payoutDetails:Pm,payoutsTitle:km,Pending:jm,pleaseReachOutToSupportForAssistance:Fm,"rangePreset.custom":"Tilpas","rangePreset.last30Days":"Sidste 30 dage","rangePreset.last7Days":"Sidste 7 dage","rangePreset.lastMonth":"Sidste måned","rangePreset.lastWeek":"Sidste uge","rangePreset.thisMonth":"Denne måned","rangePreset.thisWeek":"Denne uge","rangePreset.yearToDate":"År til dato",reachOutToSupport:Wm,referenceID:Bm,refresh:zm,refund:Um,remainingAmount:Ym,reset:Hm,Reversed:Gm,"select.filter.placeholder":"Pladsholder","select.noOptionsFound":"Ingen muligheder stemmer ikke overens med denne søgning",somethingWentWrong:Vm,status:Zm,structuredList:Jm,subtractions:Qm,tabs:Xm,theErrorCodeIs:Km,thereAreNoResults:qm,theRequestIsMissingRequiredFieldsOrContainsInvalidData:ep,thereWasAnUnexpectedError:tp,theSelectedBalanceAccountIsIncorrect:np,timezone:op,to:sp,"tooltip.ATM":"Penge hævet i en pengeautomat","tooltip.Capital":"Penge fra et indgående lånetilskud eller udgående tilbagebetaling af lån","tooltip.Chargeback":"Penge tilbage til en kunde efter en bestridt transaktion","tooltip.Correction":"Justeringer af dine midler, herunder tilbageførsler af transaktioner og korrektioner af indbetalinger","tooltip.Fee":"Transaktionsomkostninger og gebyrer for betalingsmetoder","tooltip.Other":"Transaktioner, der ikke er i en anden kategori, normalt en justering","tooltip.Payment":"Penge modtaget på din konto fra en salgstransaktion","tooltip.Refund":"Penge sendt tilbage til en kunde fra en refunderet transaktion","tooltip.totalIncoming":"Alle penge modtaget på din konto baseret på de valgte filtre","tooltip.totalOutgoing":"Alle gebyrer, tilbagebetalinger, udbetalinger og andre afgifter baseret på de valgte filtre","tooltip.Transfer":"Penge flyttet mellem din konto og en anden konto",totalIncoming:rp,totalOutgoing:ap,toValueShouldBeGreaterThanTheFromValue:ip,transactionDetails:cp,transactions:lp,transactionsOverviewTitle:up,transactionType:dp,transfer:hp,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:gp,tryRefreshingThePageOrComeBackLater:mp,txAmount:pp,"txType.ATM":"Pengeautomat","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Andet","txType.Payment":"Betaling","txType.Refund":"Refunderinger","txType.Transfer":"Overfør",type:fp,value:yp,weCouldNotLoadThePayoutsOverview:Ip,weCouldNotLoadTheTransactionsOverview:_p,weCouldNotLoadYourBalanceAccounts:Tp,weCouldNotLoadYourPayouts:Ap,weCouldNotLoadYourTransactions:Sp},Lp="Konto",Cp="Kontostand",Mp="Aufschläge",Ep="Anpassungen",vp="Betrag",bp="Bewerben",Dp="Guthabenkonto",Op="Guthabenkonto-ID",$p="Gebucht",Rp="Erfasst",xp="Kategorie",wp="Chargebacks",Pp="Schließen",kp="Kontaktieren Sie den Support, um Hilfe zu erhalten, und geben Sie den Fehlercode %{requestId} an.",jp="Korrekturen",Fp="Währung",Wp="Datum",Bp="Datumsbereich",zp="Beschreibung",Up="OK",Yp="E-Mail-Adresse",Hp="Entität wurde nicht gefunden",Gp="Transaktion für den angegebenen Kontoinhaber nicht gefunden",Vp="Gebühren",Zp="Filterleiste",Jp="Von",Qp="Erfasste Geldmittel",Xp="Zuschuss gewährt",Kp="Rückzahlungen von Zuschüssen",qp="Inhalt ausblenden",ef="ID",tf="Unvollständiges Feld",nf="Mobil",of="Netto-Auszahlung",sf="Nächste Auszahlungen",rf="Keine Daten",af="Keine negativen Zahlen erlaubt",cf="Keine Auszahlungen gefunden",lf="Keine Transaktionen gefunden",uf="Andere",df="Paginierte Navigation",hf="Zahlungs-ID",gf="Zahlungsart",mf="Auszahlungsdetails",pf="Auszahlungen",ff="Ausstehend",yf="Bitte wenden Sie sich an den Support, wenn Sie Hilfe benötigen.",If="Wenden Sie sich an den Support",_f="Referenz-ID",Tf="Aktualisieren",Af="Rückerstattungen",Sf="Restbetrag",Nf="Zurücksetzen",Lf="Rückgängig gemacht",Cf="Etwas ist schiefgelaufen.",Mf="Status",Ef="Strukturierte Liste",vf="Abzüge",bf="Registerkarten",Df="Der Fehlercode lautet %{requestId}",Of="Es sind keine Ergebnisse vorhanden.",$f="In der Anfrage fehlen Pflichtfelder oder sie enthält ungültige Daten.",Rf="Es ist ein unerwarteter Fehler aufgetreten.",xf="Das gewählte Guthabenkonto ist falsch.",wf="Zeitzone",Pf="Zu",kf="Gesamte Eingänge",jf="Gesamte Ausgänge",Ff="Der Bis-Wert sollte gleich oder größer sein als der Von-Wert",Wf="Details zur Transaktion",Bf="Transaktionen",zf="Übersicht über Transaktionen",Uf="Transaktionsart",Yf="Überweisungen",Hf="Versuchen Sie es mit einer anderen Suche oder setzen Sie Ihre Filter zurück und wir versuchen es erneut.",Gf="Versuchen Sie, die Seite zu aktualisieren, oder schauen Sie später noch einmal vorbei.",Vf="Betrag",Zf="Typ",Jf="Wert",Qf="Die Auszahlungsübersicht konnte nicht geladen werden.",Xf="Die Transaktionsübersicht konnte nicht geladen werden.",Kf="Ihre Guthabenkonten konnten nicht geladen werden.",qf="Ihre Auszahlungen konnten nicht geladen werden.",ey="Ihre Transaktionen konnten nicht geladen werden.",ty={account:Lp,accountBalance:Cp,additions:Mp,adjustments:Ep,amount:vp,apply:bp,balanceAccount:Dp,balanceAccountId:Op,Booked:$p,"button.clearAll":"Alles löschen","calendar.controls":"Steuerelemente für die Kalendernavigation","calendar.nextMonth":"Nächsten Monat","calendar.previousMonth":"Vorheriger Monat","calendar.timezone":"Die Zeitzone ist eingestellt auf: GMT%{offset} (%{time})",capture:Rp,category:xp,chargeback:wp,closeIconLabel:Pp,contactSupportForHelpAndShareErrorCode:kp,correction:jp,currency:Fp,date:Wp,dateRange:Bp,default:"Standard",description:zp,dismiss:Up,email:Yp,entityWasNotFound:Hp,entityWasNotFoundDetail:Gp,"expandableCard.collapse":"Ausblenden","expandableCard.expand":"Erweitern",export:"Exportieren",fee:Vp,"filter.date.since":"Seit %{date}","filter.date.until":"Bis %{date}",filterBar:Zp,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Währung","filterPlaceholder.status":"Status",from:Jp,fundsCaptured:Qp,grantIssued:Xp,grantRepayment:Kp,hideContent:qp,id:ef,incompleteField:tf,mobile:nf,netPayout:of,nextPayouts:sf,noData:rf,noNegativeNumbersAllowed:af,noPayoutsFound:cf,noTransactionsFound:lf,other:uf,paginatedNavigation:df,"pagination.nextPage":"Nächste Seite","pagination.previousPage":"Vorherige Seite","pagination.showing":"Wird angezeigt",paymentId:hf,paymentMethod:gf,payoutDetails:mf,payoutsTitle:pf,Pending:ff,pleaseReachOutToSupportForAssistance:yf,"rangePreset.custom":"Benutzerdefiniert","rangePreset.last30Days":"Letzte 30 Tage","rangePreset.last7Days":"Letzte 7 Tage","rangePreset.lastMonth":"Letzter Monat","rangePreset.lastWeek":"Letzte Woche","rangePreset.thisMonth":"Diesen Monat","rangePreset.thisWeek":"Diese Woche","rangePreset.yearToDate":"Jahr bis heute",reachOutToSupport:If,referenceID:_f,refresh:Tf,refund:Af,remainingAmount:Sf,reset:Nf,Reversed:Lf,"select.filter.placeholder":"Platzhalter","select.noOptionsFound":"Keine Optionen für diese Suche vorhanden",somethingWentWrong:Cf,status:Mf,structuredList:Ef,subtractions:vf,tabs:bf,theErrorCodeIs:Df,thereAreNoResults:Of,theRequestIsMissingRequiredFieldsOrContainsInvalidData:$f,thereWasAnUnexpectedError:Rf,theSelectedBalanceAccountIsIncorrect:xf,timezone:wf,to:Pf,"tooltip.ATM":"Geld, das an einem Geldautomaten abgehoben wird","tooltip.Capital":"Geld aus einem eingehenden Darlehenszuschuss oder einer ausgehenden Darlehensrückzahlung","tooltip.Chargeback":"Geld wurde einem Kunden nach einer angefochtenen Transaktion zurückerstattet","tooltip.Correction":"Anpassungen Ihrer Gelder, einschließlich Transaktionsstornierungen und Einzahlungskorrekturen","tooltip.Fee":"Transaktionskosten und Gebühren für Zahlungsmethoden","tooltip.Other":"Transaktionen, die nicht in eine andere Kategorie fallen, in der Regel eine Anpassung","tooltip.Payment":"Geld, das Sie durch eine Verkaufstransaktion auf Ihrem Konto erhalten haben","tooltip.Refund":"Geld, das von einer erstatteten Transaktion an einen Kunden zurückgeschickt wurde","tooltip.totalIncoming":"Alle auf Ihrem Konto eingegangenen Gelder basierend auf den ausgewählten Filtern","tooltip.totalOutgoing":"Alle Gebühren, Erstattungen, Auszahlungen und andere Abbuchungen basierend auf den ausgewählten Filtern","tooltip.Transfer":"Geld wurde zwischen Ihrem Konto und einem anderen Konto transferiert wurde",totalIncoming:kf,totalOutgoing:jf,toValueShouldBeGreaterThanTheFromValue:Ff,transactionDetails:Wf,transactions:Bf,transactionsOverviewTitle:zf,transactionType:Uf,transfer:Yf,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Hf,tryRefreshingThePageOrComeBackLater:Gf,txAmount:Vf,"txType.ATM":"Geldautomat","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektur","txType.Fee":"Gebühr","txType.Other":"Andere","txType.Payment":"Zahlung","txType.Refund":"Rückerstattung","txType.Transfer":"Überweisung",type:Zf,value:Jf,weCouldNotLoadThePayoutsOverview:Qf,weCouldNotLoadTheTransactionsOverview:Xf,weCouldNotLoadYourBalanceAccounts:Kf,weCouldNotLoadYourPayouts:qf,weCouldNotLoadYourTransactions:ey},ny="Cuenta",oy="Saldo de la cuenta",sy="Adiciones",ry="Ajustes",ay="cantidad",iy="Aplicar",cy="Cuenta de saldo",ly="ID de cuenta de saldo",uy="Reservado",dy="Capturado",hy="Categoría",gy="Contracargos",my="Cerrar",py="Contacta al equipo de soporte para obtener ayuda y comparte con ellos el código del error %{requestId}",fy="Correcciones",yy="Divisa",Iy="Fecha",_y="Intervalo de fechas",Ty="Descripción",Ay="Descartar",Sy="Correo electrónico",Ny="No se ha encontrado la entidad",Ly="No se ha encontrado la transacción para el titular especificado",Cy="Tasas",My="Barra de filtro",Ey="Desde",vy="Fondos capturados",by="Subvención concedida",Dy="Reembolsos de la subvención",Oy="Ocultar contenido",$y="Documento de identidad",Ry="Campo incompleto",xy="Móvil",wy="Pago neto",Py="Próximos pagos",ky="Sin datos",jy="No se permiten números negativos",Fy="No se ha encontrado ningún pago",Wy="No se han encontrado transacciones",By="Otro tipo",zy="Navegación por páginas",Uy="ID de pago",Yy="Método de pago",Hy="Detalles de pago",Gy="Pagos",Vy="Pendiente",Zy="Ponte en contacto con soporte para obtener ayuda.",Jy="Ponte en contacto con soporte",Qy="ID de referencia",Xy="Actualizar",Ky="Reembolsos",qy="Cantidad restante",eI="Restablecer",tI="Invertido",nI="Se ha producido un error.",oI="Estado",sI="Lista estructurada",rI="Sustracciones",aI="Pestañas",iI="El código de error es %{requestId}",cI="Sin resultados",lI="Faltan faltan campos obligatorios en la solicitud o esta contiene datos no válidos.",uI="Se ha producido un error inesperado",dI="La cuenta de saldo seleccionada es incorrecta",hI="Zona horaria",gI="Hasta",mI="Fondos entrantes totales",pI="Fondos salientes totales",fI="El valor Hasta debe ser igual o mayor que el valor Desde",yI="Detalles de la transacción",II="Transacciones",_I="Resumen de transacciones",TI="Tipo de transacción",AI="Transferencias",SI="Prueba con una búsqueda diferente o restablece los filtros para que lo intentemos de nuevo.",NI="Prueba a actualizar la página o inténtalo más tarde.",LI="cantidad",CI="Tipo",MI="Valor",EI="No hemos podido cargar el resumen de los pagos.",vI="No hemos podido cargar el resumen de las transacciones.",bI="No hemos podido cargar tus cuentas de saldo.",DI="No hemos podido cargar tus pagos.",OI="No hemos podido cargar tus transacciones.",$I={account:ny,accountBalance:oy,additions:sy,adjustments:ry,amount:ay,apply:iy,balanceAccount:cy,balanceAccountId:ly,Booked:uy,"button.clearAll":"Borrar todo","calendar.controls":"Controles de navegación del calendario","calendar.nextMonth":"Mes siguiente","calendar.previousMonth":"Mes anterior","calendar.timezone":"La zona horaria actual en: GMT%{offset} (%{time})",capture:dy,category:hy,chargeback:gy,closeIconLabel:my,contactSupportForHelpAndShareErrorCode:py,correction:fy,currency:yy,date:Iy,dateRange:_y,default:"Por defecto",description:Ty,dismiss:Ay,email:Sy,entityWasNotFound:Ny,entityWasNotFoundDetail:Ly,"expandableCard.collapse":"Contraer","expandableCard.expand":"Expandir",export:"Exportar",fee:Cy,"filter.date.since":"Desde: %{date}","filter.date.until":"Hasta: %{date}",filterBar:My,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Divisa","filterPlaceholder.status":"Estado",from:Ey,fundsCaptured:vy,grantIssued:by,grantRepayment:Dy,hideContent:Oy,id:$y,incompleteField:Ry,mobile:xy,netPayout:wy,nextPayouts:Py,noData:ky,noNegativeNumbersAllowed:jy,noPayoutsFound:Fy,noTransactionsFound:Wy,other:By,paginatedNavigation:zy,"pagination.nextPage":"Página siguiente","pagination.previousPage":"Página anterior","pagination.showing":"Visible",paymentId:Uy,paymentMethod:Yy,payoutDetails:Hy,payoutsTitle:Gy,Pending:Vy,pleaseReachOutToSupportForAssistance:Zy,"rangePreset.custom":"Personalizadas","rangePreset.last30Days":"Últimos 30 días","rangePreset.last7Days":"Últimos 7 días","rangePreset.lastMonth":"Mes pasado","rangePreset.lastWeek":"Última semana","rangePreset.thisMonth":"Este mes","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Este año hasta la fecha",reachOutToSupport:Jy,referenceID:Qy,refresh:Xy,refund:Ky,remainingAmount:qy,reset:eI,Reversed:tI,"select.filter.placeholder":"Marcador de posición","select.noOptionsFound":"No hay opciones que coincidan con esta búsqueda",somethingWentWrong:nI,status:oI,structuredList:sI,subtractions:rI,tabs:aI,theErrorCodeIs:iI,thereAreNoResults:cI,theRequestIsMissingRequiredFieldsOrContainsInvalidData:lI,thereWasAnUnexpectedError:uI,theSelectedBalanceAccountIsIncorrect:dI,timezone:hI,to:gI,"tooltip.ATM":"Dinero retirado en un cajero automático","tooltip.Capital":"Dinero de una concesión de préstamo entrante o de un reembolso de préstamo saliente","tooltip.Chargeback":"Dinero devuelto a un cliente después de una transacción en disputa","tooltip.Correction":"Ajustes a tus fondos, incluidas reversiones de transacciones y correcciones de depósitos","tooltip.Fee":"Costes de la transacción y comisiones del método de pago","tooltip.Other":"Transacciones que no pertenecen a otra categoría, normalmente un ajuste","tooltip.Payment":"Dinero recibido en tu cuenta de una transacción de venta","tooltip.Refund":"Dinero devuelto a un cliente por una transacción reembolsada","tooltip.totalIncoming":"Todo el dinero recibido en tu cuenta de acuerdo a los filtros seleccionados","tooltip.totalOutgoing":"Todas las comisiones, los reembolsos, los pagos y otros cargos de acuerdo a los filtros seleccionados","tooltip.Transfer":"Dinero movido entre tu cuenta y otra",totalIncoming:mI,totalOutgoing:pI,toValueShouldBeGreaterThanTheFromValue:fI,transactionDetails:yI,transactions:II,transactionsOverviewTitle:_I,transactionType:TI,transfer:AI,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:SI,tryRefreshingThePageOrComeBackLater:NI,txAmount:LI,"txType.ATM":"Cajero automático","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Corrección","txType.Fee":"Fee (Tasa)","txType.Other":"Otro tipo","txType.Payment":"Pago","txType.Refund":"Devolución","txType.Transfer":"Transferencia",type:CI,value:MI,weCouldNotLoadThePayoutsOverview:EI,weCouldNotLoadTheTransactionsOverview:vI,weCouldNotLoadYourBalanceAccounts:bI,weCouldNotLoadYourPayouts:DI,weCouldNotLoadYourTransactions:OI},RI="Compte",xI="Solde du compte",wI="Additions",PI="Ajustements",kI="Montant",jI="Postuler",FI="Compte de solde",WI="ID de compte de solde",BI="Réservé",zI="Capturé",UI="Catégorie",YI="Impayés",HI="Fermer",GI="Contactez l'assistance pour obtenir de l'aide et partagez le code d'erreur %{requestId}",VI="Corrections",ZI="Devise",JI="Date",QI="Plage de dates",XI="Description",KI="Ignorer",qI="E-mail",e_="L'entité n'a pas été trouvée",t_="Transaction introuvable pour le titulaire du compte spécifié",n_="Frais",o_="Barre de filtre",s_="De",r_="Fonds capturés",a_="Subvention accordée",i_="Remboursements de subventions",c_="Masquer le contenu",l_="ID",u_="Champ incomplet",d_="Mobile",h_="Reversement net",g_="Reversements suivants",m_="Pas de données",p_="Aucun chiffre négatif n'est autorisé",f_="Aucun reversement trouvé",y_="Aucune transaction trouvée",I_="Autre",__="Navigation paginée",T_="ID de paiement",A_="Mode de paiement",S_="Informations pour le reversement",N_="Reversements",L_="En attente",C_="Veuillez contacter l'assistance pour obtenir de l'aide.",M_="Contacter l'assistance",E_="ID de référence",v_="Actualiser",b_="Remboursements",D_="Montant restant",O_="Réinitialiser",$_="Inverse",R_="Une erreur s'est produite.",x_="Statut",w_="Liste structurée",P_="Soustractions",k_="Onglets",j_="Le code d'erreur est %{requestId}",F_="Il n'y a pas de résultats",W_="Dans la demande, des champs obligatoires sont manquants ou des données ne sont pas valides.",B_="Une erreur inattendue s'est produite",z_="Le compte de solde sélectionné est incorrect",U_="Fuseau horaire",Y_="À",H_="Total entrant",G_="Total sortant",V_="La valeur de À doit être égale ou supérieure à la valeur de De",Z_="Détails de la transaction",J_="Transactions",Q_="Aperçu des transactions",X_="Type de transaction",K_="Transferts",q_="Essayez une autre recherche ou réinitialisez vos filtres, et nous réessayerons.",eT="Réessayez en actualisant la page ou retentez plus tard.",tT="Montant",nT="Type",oT="Valeur",sT="Nous n'avons pas pu charger l'aperçu des reversements.",rT="Nous n'avons pas pu charger l'aperçu des transactions.",aT="Nous n'avons pas pu charger vos comptes de solde.",iT="Nous n'avons pas pu charger vos reversements.",cT="Nous n'avons pas pu charger vos transactions.",lT={account:RI,accountBalance:xI,additions:wI,adjustments:PI,amount:kI,apply:jI,balanceAccount:FI,balanceAccountId:WI,Booked:BI,"button.clearAll":"Tout effacer","calendar.controls":"Commandes de navigation dans le calendrier","calendar.nextMonth":"Mois suivant","calendar.previousMonth":"Mois précédent","calendar.timezone":"Le fuseau horaire est défini sur : GMT%{offset} (%{time})",capture:zI,category:UI,chargeback:YI,closeIconLabel:HI,contactSupportForHelpAndShareErrorCode:GI,correction:VI,currency:ZI,date:JI,dateRange:QI,default:"Par défaut",description:XI,dismiss:KI,email:qI,entityWasNotFound:e_,entityWasNotFoundDetail:t_,"expandableCard.collapse":"Réduire","expandableCard.expand":"Développer",export:"Exporter",fee:n_,"filter.date.since":"Depuis le %{date}","filter.date.until":"Jusqu'au %{date}",filterBar:o_,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Devise","filterPlaceholder.status":"Statut",from:s_,fundsCaptured:r_,grantIssued:a_,grantRepayment:i_,hideContent:c_,id:l_,incompleteField:u_,mobile:d_,netPayout:h_,nextPayouts:g_,noData:m_,noNegativeNumbersAllowed:p_,noPayoutsFound:f_,noTransactionsFound:y_,other:I_,paginatedNavigation:__,"pagination.nextPage":"Page suivante","pagination.previousPage":"Page précédente","pagination.showing":"Affichage",paymentId:T_,paymentMethod:A_,payoutDetails:S_,payoutsTitle:N_,Pending:L_,pleaseReachOutToSupportForAssistance:C_,"rangePreset.custom":"Personnalisé","rangePreset.last30Days":"30 derniers jours","rangePreset.last7Days":"7 derniers jours","rangePreset.lastMonth":"Mois dernier","rangePreset.lastWeek":"La semaine dernière","rangePreset.thisMonth":"Ce mois-ci","rangePreset.thisWeek":"Cette semaine","rangePreset.yearToDate":"Depuis le début de l'année",reachOutToSupport:M_,referenceID:E_,refresh:v_,refund:b_,remainingAmount:D_,reset:O_,Reversed:$_,"select.filter.placeholder":"Espace réservé","select.noOptionsFound":"Aucune option ne correspond à cette recherche",somethingWentWrong:R_,status:x_,structuredList:w_,subtractions:P_,tabs:k_,theErrorCodeIs:j_,thereAreNoResults:F_,theRequestIsMissingRequiredFieldsOrContainsInvalidData:W_,thereWasAnUnexpectedError:B_,theSelectedBalanceAccountIsIncorrect:z_,timezone:U_,to:Y_,"tooltip.ATM":"Argent retiré à un distributeur automatique","tooltip.Capital":"Argent provenant d’un prêt ou d’un remboursement de prêt","tooltip.Chargeback":"Argent remboursé à un client suite à une transaction contestée","tooltip.Correction":"Ajustements à vos fonds, y compris les annulations de transactions et les corrections de dépôts","tooltip.Fee":"Frais de transaction et frais liés au moyen de paiement","tooltip.Other":"Transactions n’appartenant pas à une autre catégorie, généralement un ajustement","tooltip.Payment":"Argent versé sur votre compte suite à une transaction de vente","tooltip.Refund":"Argent renvoyé à un client suite à une transaction remboursée","tooltip.totalIncoming":"Tout l'argent versé sur votre compte en fonction des filtres sélectionnés","tooltip.totalOutgoing":"Tous les frais, remboursements, reversements et autres dépenses basés sur les filtres sélectionnés","tooltip.Transfer":"Argent transféré de votre compte vers un autre compte",totalIncoming:H_,totalOutgoing:G_,toValueShouldBeGreaterThanTheFromValue:V_,transactionDetails:Z_,transactions:J_,transactionsOverviewTitle:Q_,transactionType:X_,transfer:K_,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:q_,tryRefreshingThePageOrComeBackLater:eT,txAmount:tT,"txType.ATM":"Distributeur automatique","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee (Frais)","txType.Other":"Autre","txType.Payment":"Transaction","txType.Refund":"Remboursement","txType.Transfer":"Transfert",type:nT,value:oT,weCouldNotLoadThePayoutsOverview:sT,weCouldNotLoadTheTransactionsOverview:rT,weCouldNotLoadYourBalanceAccounts:aT,weCouldNotLoadYourPayouts:iT,weCouldNotLoadYourTransactions:cT},uT="Account",dT="Saldo del conto",hT="Aggiunte",gT="Aggiustamenti",mT="Importo",pT="Applica",fT="Saldo del conto",yT="ID saldo del conto",IT="Prenotato",_T="Acquisito",TT="Categoria",AT="Chargeback",ST="Chiudi",NT="Contatta l'assistenza per un aiuto e condividi il codice di errore %{requestId}",LT="Correzioni",CT="Valuta",MT="Data",ET="Intervallo di date",vT="Descrizione",bT="Ignora",DT="E-mail",OT="L'entità non è stata trovata",$T="Transazione non trovata per il titolare del conto specificato",RT="Commissioni",xT="Barra dei filtri",wT="Da",PT="Fondi acquisiti",kT="Sovvenzione rilasciata",jT="Rimborsi delle sovvenzioni",FT="Nascondi contenuto",WT="Numero identificativo",BT="Campo incompleto",zT="Mobile",UT="Pagamento netto",YT="Prossimi pagamenti",HT="Nessun dato",GT="Non sono ammessi numeri negativi",VT="Nessun pagamento trovato",ZT="Nessuna transazione trovata",JT="Altro",QT="Navigazione a pagine",XT="ID di pagamento",KT="Metodo di pagamento",qT="Dettagli di pagamento",eA="Pagamenti",tA="In sospeso",nA="Contatta il supporto per ricevere assistenza.",oA="Contatta il supporto",sA="ID di riferimento",rA="Aggiorna",aA="Rimborsi",iA="Importo rimanente",cA="Reimposta",lA="Revocato",uA="Si è verificato un errore.",dA="Stato",hA="Elenco strutturato",gA="Sottrazioni",mA="Schede",pA="Il codice di errore è %{requestId}",fA="Nessun risultato",yA="Nella richiesta mancano i campi obbligatori o contiene dati non validi.",IA="Si è verificato un errore imprevisto",_A="Il saldo del conto selezionato non è corretto",TA="Fuso orario",AA="A",SA="Entrate totali",NA="Totale uscite",LA="Il valore A deve essere uguale o maggiore del valore Da",CA="Dettagli della transazione",MA="Transazioni",EA="Panoramica delle transazioni",vA="Tipo di transazione",bA="Trasferimenti",DA="Prova a effettuare una ricerca diversa o a reimpostare i filtri e ritenteremo.",OA="Prova ad aggiornare la pagina o torna più tardi.",$A="Importo",RA="Tipo",xA="Valore",wA="Non è stato possibile caricare la panoramica dei pagamenti.",PA="Non è stato possibile caricare la panoramica delle transazioni.",kA="Non è stato possibile caricare il saldo dei tuoi conti.",jA="Non è stato possibile caricare i tuoi pagamenti.",FA="Non è stato possibile caricare le tue transazioni.",WA={account:uT,accountBalance:dT,additions:hT,adjustments:gT,amount:mT,apply:pT,balanceAccount:fT,balanceAccountId:yT,Booked:IT,"button.clearAll":"Svuota tutto","calendar.controls":"Controlli di navigazione del calendario","calendar.nextMonth":"Prossimo mese","calendar.previousMonth":"Mese precedente","calendar.timezone":"Il fuso orario è impostato su: GMT%{offset} (%{time})",capture:_T,category:TT,chargeback:AT,closeIconLabel:ST,contactSupportForHelpAndShareErrorCode:NT,correction:LT,currency:CT,date:MT,dateRange:ET,default:"Default",description:vT,dismiss:bT,email:DT,entityWasNotFound:OT,entityWasNotFoundDetail:$T,"expandableCard.collapse":"Comprimi","expandableCard.expand":"Espandi",export:"Esporta",fee:RT,"filter.date.since":"Dal %{date}","filter.date.until":"Al %{date}",filterBar:xT,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Stato",from:wT,fundsCaptured:PT,grantIssued:kT,grantRepayment:jT,hideContent:FT,id:WT,incompleteField:BT,mobile:zT,netPayout:UT,nextPayouts:YT,noData:HT,noNegativeNumbersAllowed:GT,noPayoutsFound:VT,noTransactionsFound:ZT,other:JT,paginatedNavigation:QT,"pagination.nextPage":"Pagina successiva","pagination.previousPage":"Pagina precedente","pagination.showing":"Risultati:",paymentId:XT,paymentMethod:KT,payoutDetails:qT,payoutsTitle:eA,Pending:tA,pleaseReachOutToSupportForAssistance:nA,"rangePreset.custom":"Personalizzato","rangePreset.last30Days":"Ultimi 30 giorni","rangePreset.last7Days":"Ultimi 7 giorni","rangePreset.lastMonth":"Il mese scorso","rangePreset.lastWeek":"La scorsa settimana","rangePreset.thisMonth":"Questo mese","rangePreset.thisWeek":"Questa settimana","rangePreset.yearToDate":"Da inizio anno",reachOutToSupport:oA,referenceID:sA,refresh:rA,refund:aA,remainingAmount:iA,reset:cA,Reversed:lA,"select.filter.placeholder":"Segnaposto","select.noOptionsFound":"Nessuna opzione corrisponde a questa ricerca",somethingWentWrong:uA,status:dA,structuredList:hA,subtractions:gA,tabs:mA,theErrorCodeIs:pA,thereAreNoResults:fA,theRequestIsMissingRequiredFieldsOrContainsInvalidData:yA,thereWasAnUnexpectedError:IA,theSelectedBalanceAccountIsIncorrect:_A,timezone:TA,to:AA,"tooltip.ATM":"Denaro prelevato da uno sportello bancomat","tooltip.Capital":"Denaro derivante da una concessione di prestito in entrata o dal rimborso del prestito in uscita","tooltip.Chargeback":"Denaro restituito a un cliente dopo una transazione contestata","tooltip.Correction":"Aggiustamenti ai tuoi fondi, inclusi storni di transazioni e correzioni di depositi","tooltip.Fee":"Costi di transazione e commissioni sui metodi di pagamento","tooltip.Other":"Transazioni non appartenenti a un'altra categoria, di solito un aggiustamento","tooltip.Payment":"Denaro ricevuto sul tuo conto da una transazione di vendita","tooltip.Refund":"Denaro restituito a un cliente da una transazione rimborsata","tooltip.totalIncoming":"Tutto il denaro ricevuto sul conto in base ai filtri selezionati","tooltip.totalOutgoing":"Tutte le commissioni, i rimborsi, i pagamenti e le altre spese in base ai filtri selezionati","tooltip.Transfer":"Denaro trasferito tra il tuo conto e un altro conto",totalIncoming:SA,totalOutgoing:NA,toValueShouldBeGreaterThanTheFromValue:LA,transactionDetails:CA,transactions:MA,transactionsOverviewTitle:EA,transactionType:vA,transfer:bA,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:DA,tryRefreshingThePageOrComeBackLater:OA,txAmount:$A,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Riaccredito","txType.Correction":"Correzione","txType.Fee":"Commissione","txType.Other":"Altro","txType.Payment":"Pagamento","txType.Refund":"Rimborso","txType.Transfer":"Trasferimento",type:RA,value:xA,weCouldNotLoadThePayoutsOverview:wA,weCouldNotLoadTheTransactionsOverview:PA,weCouldNotLoadYourBalanceAccounts:kA,weCouldNotLoadYourPayouts:jA,weCouldNotLoadYourTransactions:FA},BA="Account",zA="Rekeningsaldo",UA="Aanvullingen",YA="Aanpassingen",HA="Bedrag",GA="Toepassen",VA="Saldorekening",ZA="ID saldorekening",JA="Geboekt",QA="Vastgehouden",XA="Categorie",KA="Chargebacks",qA="Sluiten",eS="Neem contact op met support voor hulp en vermeld de foutcode% {requestId}",tS="Correcties",nS="Valuta",oS="Datum",sS="Periode",rS="Beschrijving",aS="Negeren",iS="E-mailadres",cS="Entiteit is niet gevonden.",lS="Transactie niet gevonden voor de opgegeven rekeninghouder",uS="Kosten",dS="Filterbalk",hS="Van",gS="Vastgehouden bedrag",mS="Subsidie verleend",pS="Terugbetalingen van subsidies",fS="Inhoud verbergen",yS="ID",IS="Onvolledig veld",_S="Mobiel",TS="Netto uitbetaling",AS="Volgende uitbetalingen",SS="Geen gegevens",NS="Negatieve getallen zijn niet toegestaan",LS="Geen uitbetalingen gevonden",CS="Geen transacties gevonden",MS="Overige",ES="Gepagineerde navigatie",vS="Betalings-ID",bS="Betaalmethode",DS="Uitbetalingsgegevens",OS="Uitbetalingen",$S="In behandeling",RS="Neem contact op support voor ondersteuning.",xS="Neem contact met support",wS="Referentie-ID",PS="Vernieuwen",kS="Refunds",jS="Resterend bedrag",FS="Resetten",WS="Teruggestort",BS="Er is iets fout gegaan.",zS="Status",US="Gestructureerde lijst",YS="Aftrekkingen",HS="Tabs",GS="De foutcode is %{requestId}",VS="Er zijn geen resultaten",ZS="Er ontbreken verplichte velden in het verzoek of het bevat ongeldige gegevens.",JS="Er is een onverwachte fout opgetreden",QS="De geselecteerde saldorekening is onjuist",XS="Tijdzone",KS="Naar",qS="Totaal inkomend",eN="Totaal uitgaand",tN="De waarde moet gelijk zijn aan of groter zijn dan de Van-waarde",nN="Gegevens van de transactie",oN="Transacties",sN="Transactieoverzicht",rN="Soort transactie",aN="Overschrijvingen",iN="Probeer een andere zoekopdracht of stel uw filters opnieuw in, en we proberen het opnieuw.",cN="Probeer de pagina te vernieuwen of kom later terug.",lN="Bedrag",uN="Soort",dN="Waarde",hN="We konden het uitbetalingsoverzicht niet laden.",gN="We konden het transactieoverzicht niet laden.",mN="We kunnen uw saldorekeningen niet laden.",pN="We konden uw uitbetalingen niet laden.",fN="We konden uw transacties niet laden.",yN={account:BA,accountBalance:zA,additions:UA,adjustments:YA,amount:HA,apply:GA,balanceAccount:VA,balanceAccountId:ZA,Booked:JA,"button.clearAll":"Alles wissen","calendar.controls":"Bedieningselementen voor agendanavigatie","calendar.nextMonth":"Volgende maand","calendar.previousMonth":"Vorige maand","calendar.timezone":"Tijdzone is ingesteld op: GMT%{offset} (%{time})",capture:QA,category:XA,chargeback:KA,closeIconLabel:qA,contactSupportForHelpAndShareErrorCode:eS,correction:tS,currency:nS,date:oS,dateRange:sS,default:"Standaard",description:rS,dismiss:aS,email:iS,entityWasNotFound:cS,entityWasNotFoundDetail:lS,"expandableCard.collapse":"Samenvoegen","expandableCard.expand":"Uitvouwen",export:"Exporteren",fee:uS,"filter.date.since":"Sinds %{date}","filter.date.until":"Tot %{date}",filterBar:dS,"filterPlaceholder.category":"Soort","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:hS,fundsCaptured:gS,grantIssued:mS,grantRepayment:pS,hideContent:fS,id:yS,incompleteField:IS,mobile:_S,netPayout:TS,nextPayouts:AS,noData:SS,noNegativeNumbersAllowed:NS,noPayoutsFound:LS,noTransactionsFound:CS,other:MS,paginatedNavigation:ES,"pagination.nextPage":"Volgende pagina","pagination.previousPage":"Vorige pagina","pagination.showing":"Tonen",paymentId:vS,paymentMethod:bS,payoutDetails:DS,payoutsTitle:OS,Pending:$S,pleaseReachOutToSupportForAssistance:RS,"rangePreset.custom":"Aangepast","rangePreset.last30Days":"Laatste 30 dagen","rangePreset.last7Days":"Laatste 7 dagen","rangePreset.lastMonth":"Vorige maand","rangePreset.lastWeek":"Vorige week","rangePreset.thisMonth":"Deze maand","rangePreset.thisWeek":"Deze week","rangePreset.yearToDate":"Jaar tot heden",reachOutToSupport:xS,referenceID:wS,refresh:PS,refund:kS,remainingAmount:jS,reset:FS,Reversed:WS,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"Er zijn geen opties die overeenkomen met deze zoekopdracht",somethingWentWrong:BS,status:zS,structuredList:US,subtractions:YS,tabs:HS,theErrorCodeIs:GS,thereAreNoResults:VS,theRequestIsMissingRequiredFieldsOrContainsInvalidData:ZS,thereWasAnUnexpectedError:JS,theSelectedBalanceAccountIsIncorrect:QS,timezone:XS,to:KS,"tooltip.ATM":"Geld opgenomen bij een geldautomaat","tooltip.Capital":"Geld uit een binnenkomende lening of terugbetaling van een uitgaande lening","tooltip.Chargeback":"Geld teruggestort aan een klant na een betwiste transactie","tooltip.Correction":"Aanpassingen aan je geld, inclusief terugboekingen van transacties en correcties op stortingen","tooltip.Fee":"Transactiekosten en kosten voor betaalmethoden","tooltip.Other":"Transacties die niet in een andere categorie vallen, meestal een aanpassing","tooltip.Payment":"Geld dat op je rekening is ontvangen via een verkooptransactie","tooltip.Refund":"Geld dat is teruggestuurd naar een klant in het kader van een teruggestorte transactie","tooltip.totalIncoming":"Al het geld dat op uw rekening is ontvangen op basis van de geselecteerde filters","tooltip.totalOutgoing":"Alle vergoedingen, terugbetalingen, uitbetalingen en andere kosten op basis van de geselecteerde filters","tooltip.Transfer":"Geld dat tussen je rekening en een andere rekening is overgemaakt",totalIncoming:qS,totalOutgoing:eN,toValueShouldBeGreaterThanTheFromValue:tN,transactionDetails:nN,transactions:oN,transactionsOverviewTitle:sN,transactionType:rN,transfer:aN,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:iN,tryRefreshingThePageOrComeBackLater:cN,txAmount:lN,"txType.ATM":"Geldautomaat","txType.Capital":"Capital","txType.Chargeback":"Terugboeking","txType.Correction":"Correctie","txType.Fee":"Kost","txType.Other":"Overige","txType.Payment":"Betaling","txType.Refund":"Refund","txType.Transfer":"Overschrijving",type:uN,value:dN,weCouldNotLoadThePayoutsOverview:hN,weCouldNotLoadTheTransactionsOverview:gN,weCouldNotLoadYourBalanceAccounts:mN,weCouldNotLoadYourPayouts:pN,weCouldNotLoadYourTransactions:fN},IN="Konto",_N="Saldo på konto",TN="Tillegg",AN="Justeringer",SN="Beløp",NN="Bruk",LN="Saldokonto",CN="Saldokonto-ID",MN="Bestilt",EN="Registrert",vN="Kategori",bN="Chargebacks",DN="Lukk",ON="Kontakt brukerstøtten for hjelp og del feilkoden %{requestId}",$N="Rettelser",RN="Valuta",xN="Dato",wN="Datointervall",PN="Beskrivelse",kN="Avvis",jN="E-post",FN="Entiteten ble ikke funnet",WN="Transaksjon ble ikke funnet for den angitte kontoinnehaveren",BN="Gebyrer",zN="Filterlinje",UN="Fra",YN="Midler registrert",HN="Tilskudd utstedt",GN="Tilbakebetaling av tilskudd",VN="Skjul innhold",ZN="ID",JN="Ufullstendig felt",QN="Mobile",XN="Netto utbetaling",KN="Neste utbetalinger",qN="Ingen data",eL="Ingen negative tall tillatt",tL="Ingen utbetalinger funnet",nL="Ingen transaksjoner funnet",oL="Annet",sL="Sideformatert navigasjon",rL="Betalings-ID",aL="Betalingsmetode",iL="Detaljer om utbetaling",cL="Utbetalinger",lL="Avventer",uL="Ta kontakt med brukerstøtten for å få hjelp.",dL="Ta kontakt med brukerstøtten",hL="Referanse-ID",gL="Oppdater",mL="Refunderinger",pL="Gjenstående beløp",fL="Tilbakestill",yL="Omvendt",IL="Noe gikk galt.",_L="Status",TL="Strukturert liste",AL="Subtraksjoner",SL="Faner",NL="Feilkoden er %{requestID}",LL="Det finnes ingen resultater",CL="Forespørselen mangler obligatoriske felt eller inneholder ugyldige data.",ML="Det oppstod en uventet feil",EL="Den valgte saldokontoen er feil",vL="Tidssone",bL="Til",DL="Totalt innkommende",OL="Totalt utgående",$L="Til-verdien skal være lik eller større enn Fra-verdien",RL="Transaksjonsdetaljer",xL="Transaksjoner",wL="Transaksjonsoversikt",PL="Transaksjonstype",kL="Overføringer",jL="Prøv et annet søk eller tilbakestill filtrene dine, så prøver vi på nytt.",FL="Prøv å oppdatere siden, eller kom tilbake senere.",WL="Beløp",BL="Type",zL="Verdi",UL="Vi kunne ikke laste inn oversikten over utbetalinger.",YL="Vi kunne ikke laste inn transaksjonsoversikten.",HL="Vi kunne ikke laste inn saldokontoene dine.",GL="Vi kunne ikke laste inn utbetalingene dine.",VL="Vi kunne ikke laste inn transaksjonene dine.",ZL={account:IN,accountBalance:_N,additions:TN,adjustments:AN,amount:SN,apply:NN,balanceAccount:LN,balanceAccountId:CN,Booked:MN,"button.clearAll":"Fjern alle","calendar.controls":"Kontroller for kalendernavigasjon","calendar.nextMonth":"Neste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidssonen er satt til: GMT%{offset} (%{time})",capture:EN,category:vN,chargeback:bN,closeIconLabel:DN,contactSupportForHelpAndShareErrorCode:ON,correction:$N,currency:RN,date:xN,dateRange:wN,default:"Standard",description:PN,dismiss:kN,email:jN,entityWasNotFound:FN,entityWasNotFoundDetail:WN,"expandableCard.collapse":"Skjul","expandableCard.expand":"Utvid",export:"Eksportér",fee:BN,"filter.date.since":"Siden %{date}","filter.date.until":"Frem til %{date}",filterBar:zN,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:UN,fundsCaptured:YN,grantIssued:HN,grantRepayment:GN,hideContent:VN,id:ZN,incompleteField:JN,mobile:QN,netPayout:XN,nextPayouts:KN,noData:qN,noNegativeNumbersAllowed:eL,noPayoutsFound:tL,noTransactionsFound:nL,other:oL,paginatedNavigation:sL,"pagination.nextPage":"Neste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:rL,paymentMethod:aL,payoutDetails:iL,payoutsTitle:cL,Pending:lL,pleaseReachOutToSupportForAssistance:uL,"rangePreset.custom":"Tilpasset","rangePreset.last30Days":"Siste 30 dager","rangePreset.last7Days":"Siste 7 dager","rangePreset.lastMonth":"Forrige måned","rangePreset.lastWeek":"Forrige uke","rangePreset.thisMonth":"Denne måneden","rangePreset.thisWeek":"Denne uken","rangePreset.yearToDate":"Hittil i år",reachOutToSupport:dL,referenceID:hL,refresh:gL,refund:mL,remainingAmount:pL,reset:fL,Reversed:yL,"select.filter.placeholder":"Plassholder","select.noOptionsFound":"Ingen alternativer samsvarer med dette søket",somethingWentWrong:IL,status:_L,structuredList:TL,subtractions:AL,tabs:SL,theErrorCodeIs:NL,thereAreNoResults:LL,theRequestIsMissingRequiredFieldsOrContainsInvalidData:CL,thereWasAnUnexpectedError:ML,theSelectedBalanceAccountIsIncorrect:EL,timezone:vL,to:bL,"tooltip.ATM":"Penger tatt ut i minibank","tooltip.Capital":"Penger fra et innkommende lånetilskudd eller utgående tilbakebetaling av lån","tooltip.Chargeback":"Penger returnert til en kunde etter en bestridt transaksjon","tooltip.Correction":"Justeringer av midlene dine, inkludert reversering av transaksjoner og korrigering av innskudd","tooltip.Fee":"Transaksjonskostnader og gebyrer for betalingsmetode","tooltip.Other":"Transaksjoner som ikke hører til i en annen kategori, vanligvis en justering","tooltip.Payment":"Penger mottatt i kontoen din fra en salgstransaksjon","tooltip.Refund":"Penger sendt tilbake til en kunde fra en refundert transaksjon","tooltip.totalIncoming":"Alle penger mottatt på kontoen din basert på de valgte filtrene","tooltip.totalOutgoing":"Alle gebyrer, refusjoner, utbetalinger og andre kostnader basert på de valgte filtrene","tooltip.Transfer":"Penger som er flyttet mellom din konto og en annen konto",totalIncoming:DL,totalOutgoing:OL,toValueShouldBeGreaterThanTheFromValue:$L,transactionDetails:RL,transactions:xL,transactionsOverviewTitle:wL,transactionType:PL,transfer:kL,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:jL,tryRefreshingThePageOrComeBackLater:FL,txAmount:WL,"txType.ATM":"Minibank","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Annet","txType.Payment":"Betaling","txType.Refund":"Refundering","txType.Transfer":"Overføring",type:BL,value:zL,weCouldNotLoadThePayoutsOverview:UL,weCouldNotLoadTheTransactionsOverview:YL,weCouldNotLoadYourBalanceAccounts:HL,weCouldNotLoadYourPayouts:GL,weCouldNotLoadYourTransactions:VL},JL="Conta",QL="Conta",XL="Adições",KL="Ajustes",qL="Valor",eC="Aplicar",tC="Conta de saldo",nC="ID da conta do saldo",oC="Reservado",sC="Capturado",rC="Categoria",aC="Chargebacks",iC="Fechar",cC="Entre em contato com o suporte para obter ajuda e compartilhe o código de erro %{requestId}",lC="Correções",uC="Moeda",dC="Data",hC="Intervalo de datas",gC="Descrição",mC="Descartar",pC="E-mail",fC="Entidade não encontrada",yC="Transação não encontrada para o titular da conta especificado",IC="Taxas",_C="Barra de filtro",TC="De",AC="Fundos capturados",SC="Subsídio emitido",NC="Reembolsos de subsídios",LC="Ocultar conteúdo",CC="ID",MC="Campo incompleto",EC="Celular",vC="Repasse do pagamento líquido",bC="Próximos repasses do pagamentos",DC="Sem dados",OC="Números negativos não são permitidos",$C="Nenhum repasse do pagamento encontrado",RC="Nenhuma transação encontrada",xC="Outros",wC="Navegação por página",PC="ID do pagamento",kC="Método de pagamento",jC="Detalhes do repasse do pagamento",FC="Liquidação",WC="Pendente",BC="Entre em contato com o suporte para obter assistência.",zC="Entre em contato com o suporte",UC="ID de referência",YC="Atualizar",HC="Reembolsos",GC="Valor restante",VC="Reiniciar",ZC="Revertido",JC="Ocorreu algum erro.",QC="Status",XC="Lista estruturada",KC="Subtrações",qC="Abas",eM="O código de erro é %{requestId}",tM="Não há resultados",nM="A solicitação não apresenta alguns campos obrigatórios, ou contém dados inválidos.",oM="Ocorreu um erro inesperado",sM="A conta selecionada está incorreta",rM="Fuso horário",aM="Até",iM="Total de entrada",cM="Total de saída",lM="O valor deve ser igual ou maior que o valor em Origem",uM="Detalhes da transação",dM="Transações",hM="Visão geral das transações",gM="Tipo de transação",mM="Transferências",pM="Tente uma pesquisa diferente ou redefina seus filtros para tentarmos novamente.",fM="Tente atualizar a página, ou volte mais tarde.",yM="Valor",IM="Tipo",_M="Valor",TM="Não foi possível carregar a visão geral dos repasses de pagamentos.",AM="Não foi possível carregar a visão geral das transações.",SM="Não foi possível carregar suas contas.",NM="Não foi possível carregar seus repasses de pagamentos.",LM="Não foi possível carregar suas transações.",CM={account:JL,accountBalance:QL,additions:XL,adjustments:KL,amount:qL,apply:eC,balanceAccount:tC,balanceAccountId:nC,Booked:oC,"button.clearAll":"Limpar tudo","calendar.controls":"Controles de navegação do calendário","calendar.nextMonth":"Próximo mês","calendar.previousMonth":"Mês anterior","calendar.timezone":"O fuso horário está definido em: GMT%{offset} (%{time})",capture:sC,category:rC,chargeback:aC,closeIconLabel:iC,contactSupportForHelpAndShareErrorCode:cC,correction:lC,currency:uC,date:dC,dateRange:hC,default:"Padrão",description:gC,dismiss:mC,email:pC,entityWasNotFound:fC,entityWasNotFoundDetail:yC,"expandableCard.collapse":"Recolher","expandableCard.expand":"Expandir",export:"Exportar",fee:IC,"filter.date.since":"Desde %{date}","filter.date.until":"Até %{date}",filterBar:_C,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Moeda","filterPlaceholder.status":"Status",from:TC,fundsCaptured:AC,grantIssued:SC,grantRepayment:NC,hideContent:LC,id:CC,incompleteField:MC,mobile:EC,netPayout:vC,nextPayouts:bC,noData:DC,noNegativeNumbersAllowed:OC,noPayoutsFound:$C,noTransactionsFound:RC,other:xC,paginatedNavigation:wC,"pagination.nextPage":"Próxima página","pagination.previousPage":"Página anterior","pagination.showing":"Exibindo",paymentId:PC,paymentMethod:kC,payoutDetails:jC,payoutsTitle:FC,Pending:WC,pleaseReachOutToSupportForAssistance:BC,"rangePreset.custom":"Personalizado","rangePreset.last30Days":"Últimos 30 dias","rangePreset.last7Days":"Últimos 7 dias","rangePreset.lastMonth":"Último mês","rangePreset.lastWeek":"Semana passada","rangePreset.thisMonth":"Este mês","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Ano até o momento",reachOutToSupport:zC,referenceID:UC,refresh:YC,refund:HC,remainingAmount:GC,reset:VC,Reversed:ZC,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"A busca não retornou nenhuma opção",somethingWentWrong:JC,status:QC,structuredList:XC,subtractions:KC,tabs:qC,theErrorCodeIs:eM,thereAreNoResults:tM,theRequestIsMissingRequiredFieldsOrContainsInvalidData:nM,thereWasAnUnexpectedError:oM,theSelectedBalanceAccountIsIncorrect:sM,timezone:rM,to:aM,"tooltip.ATM":"Dinheiro sacado em um caixa eletrônico","tooltip.Capital":"Dinheiro recebido de um empréstimo ou enviado para pagamento de um empréstimo","tooltip.Chargeback":"Dinheiro devolvido a um cliente após uma transação contestada","tooltip.Correction":"Ajustes em seus fundos, incluindo reversões de transações e correções de depósitos","tooltip.Fee":"Custos de transação e taxas de métodos de pagamentos","tooltip.Other":"Transações que não estão em outra categoria, geralmente um ajuste","tooltip.Payment":"Dinheiro recebido em sua conta de uma transação de vendas","tooltip.Refund":"Dinheiro devolvido a um cliente após o reembolso de uma transação","tooltip.totalIncoming":"Todo o dinheiro recebido em sua conta com base nos filtros selecionados","tooltip.totalOutgoing":"Todas as taxas, os reembolsos, os repasses de pagamentos e outras cobranças com base nos filtros selecionados","tooltip.Transfer":"Dinheiro transferido de sua conta para outra",totalIncoming:iM,totalOutgoing:cM,toValueShouldBeGreaterThanTheFromValue:lM,transactionDetails:uM,transactions:dM,transactionsOverviewTitle:hM,transactionType:gM,transfer:mM,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:pM,tryRefreshingThePageOrComeBackLater:fM,txAmount:yM,"txType.ATM":"Caixa eletrônico","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correção","txType.Fee":"Taxa","txType.Other":"Outros","txType.Payment":"Pagamento","txType.Refund":"Reembolso","txType.Transfer":"Transferir",type:IM,value:_M,weCouldNotLoadThePayoutsOverview:TM,weCouldNotLoadTheTransactionsOverview:AM,weCouldNotLoadYourBalanceAccounts:SM,weCouldNotLoadYourPayouts:NM,weCouldNotLoadYourTransactions:LM},MM="Konto",EM="Kontosaldo",vM="Tillägg",bM="Justeringar",DM="Belopp",OM="Tillämpa",$M="Saldokonto",RM="ID för saldokonto",xM="Bokad",wM="Insamlad",PM="Kategori",kM="Chargebacks",jM="Stäng",FM="Kontakta supporten för hjälp och ange felkoden %{requestId}",WM="Rättelser",BM="Valuta",zM="Datum",UM="Datumintervall",YM="Beskrivning",HM="Avvisa",GM="E-post",VM="Enheten hittades inte",ZM="Transaktionen hittades inte för den angivna kontoinnehavaren",JM="Avgifter",QM="Filterfält",XM="Från",KM="Insamlade medel",qM="Beviljat bidrag",eE="Återbetalning av bidrag",tE="Dölj innehåll",nE="ID",oE="Ofullständigt fält",sE="Mobil",rE="Nettoutbetalning",aE="Nästa utbetalning",iE="Inga uppgifter",cE="Inga negativa tal tillåtna",lE="Inga utbetalningar hittades",uE="Inga transaktioner hittades",dE="Annat",hE="Paginerad navigering",gE="Betalnings-id",mE="Betalningsmetod",pE="Information om utbetalning",fE="Utbetalningar",yE="Väntande",IE="Kontakta supporten för att få hjälp.",_E="Kontakta supporten",TE="Referens-id",AE="Uppdatera",SE="Återbetalningar",NE="Återstående belopp",LE="Återställ",CE="Upphävt",ME="Något gick fel.",EE="Status",vE="Strukturerad lista",bE="Subtraktioner",DE="Flikar",OE="Felkoden är %{requestId}",$E="Det finns inga resultat",RE="Begäran saknar obligatoriska fält eller innehåller ogiltiga data.",xE="Det uppstod ett oväntat fel",wE="Det valda saldokontot är felaktigt",PE="Tidszon",kE="Till",jE="Totalt inkommande",FE="Totalt utgående",WE="Till-värdet ska vara lika med eller större än Från-värdet",BE="Transaktionsdetaljer",zE="Transaktioner",UE="Transaktionsöversikt",YE="Transaktionstyp",HE="Överföringar",GE="Försök med en annan sökning eller återställ dina filter, så försöker vi igen.",VE="Försök att uppdatera sidan eller kom tillbaka senare.",ZE="Belopp",JE="Typ",QE="Värde",XE="Vi kunde inte ladda utbetalningsöversikten.",KE="Vi kunde inte ladda transaktionsöversikten.",qE="Vi kunde inte ladda dina saldokonton.",ev="Vi kunde inte ladda dina utbetalningar.",tv="Vi kunde inte ladda dina transaktioner.",nv={account:MM,accountBalance:EM,additions:vM,adjustments:bM,amount:DM,apply:OM,balanceAccount:$M,balanceAccountId:RM,Booked:xM,"button.clearAll":"Rensa alla","calendar.controls":"Kontroller för kalendernavigering","calendar.nextMonth":"Nästa månad","calendar.previousMonth":"Föregående månad","calendar.timezone":"Tidszonen är inställd på: GMT%{offset} (%{time})",capture:wM,category:PM,chargeback:kM,closeIconLabel:jM,contactSupportForHelpAndShareErrorCode:FM,correction:WM,currency:BM,date:zM,dateRange:UM,default:"Standard",description:YM,dismiss:HM,email:GM,entityWasNotFound:VM,entityWasNotFoundDetail:ZM,"expandableCard.collapse":"Minimera","expandableCard.expand":"Expandera",export:"Exportera",fee:JM,"filter.date.since":"Sedan %{date}","filter.date.until":"Till %{date}",filterBar:QM,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:XM,fundsCaptured:KM,grantIssued:qM,grantRepayment:eE,hideContent:tE,id:nE,incompleteField:oE,mobile:sE,netPayout:rE,nextPayouts:aE,noData:iE,noNegativeNumbersAllowed:cE,noPayoutsFound:lE,noTransactionsFound:uE,other:dE,paginatedNavigation:hE,"pagination.nextPage":"Nästa sida","pagination.previousPage":"Föregående sida","pagination.showing":"Visar",paymentId:gE,paymentMethod:mE,payoutDetails:pE,payoutsTitle:fE,Pending:yE,pleaseReachOutToSupportForAssistance:IE,"rangePreset.custom":"Anpassat","rangePreset.last30Days":"Senaste 30 dagarna","rangePreset.last7Days":"Senaste 7 dagarna","rangePreset.lastMonth":"Förra månaden","rangePreset.lastWeek":"Förra veckan","rangePreset.thisMonth":"Den här månaden","rangePreset.thisWeek":"Denna vecka","rangePreset.yearToDate":"Hittills i år",reachOutToSupport:_E,referenceID:TE,refresh:AE,refund:SE,remainingAmount:NE,reset:LE,Reversed:CE,"select.filter.placeholder":"Platshållare","select.noOptionsFound":"Inga alternativ matchar denna sökning",somethingWentWrong:ME,status:EE,structuredList:vE,subtractions:bE,tabs:DE,theErrorCodeIs:OE,thereAreNoResults:$E,theRequestIsMissingRequiredFieldsOrContainsInvalidData:RE,thereWasAnUnexpectedError:xE,theSelectedBalanceAccountIsIncorrect:wE,timezone:PE,to:kE,"tooltip.ATM":"Pengar tas ut i en bankomat","tooltip.Capital":"Pengar från ett inkommande lånebidrag eller en utgående låneåterbetalning","tooltip.Chargeback":"Pengar returnerades till en kund efter en omtvistad transaktion","tooltip.Correction":"Justeringar av dina medel, inklusive återföringar av transaktioner och korrigeringar av insättningar","tooltip.Fee":"Transaktionskostnader och avgifter för betalningssätt","tooltip.Other":"Transaktioner som inte tillhör en annan kategori, vanligtvis en justering","tooltip.Payment":"Pengar som kommit in på ditt konto från en försäljningstransaktion","tooltip.Refund":"Pengar som skickats tillbaka till en kund från en återbetald transaktion","tooltip.totalIncoming":"Alla pengar som tagits emot på ditt konto baserat på de valda filtren","tooltip.totalOutgoing":"Alla avgifter, återbetalningar, utbetalningar och andra avgifter baserade på de valda filtren","tooltip.Transfer":"Pengar som flyttats mellan ditt konto och ett annat konto",totalIncoming:jE,totalOutgoing:FE,toValueShouldBeGreaterThanTheFromValue:WE,transactionDetails:BE,transactions:zE,transactionsOverviewTitle:UE,transactionType:YE,transfer:HE,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:GE,tryRefreshingThePageOrComeBackLater:VE,txAmount:ZE,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektion","txType.Fee":"Avgift","txType.Other":"Annat","txType.Payment":"Betalning","txType.Refund":"Återbetalning","txType.Transfer":"Överföring",type:JE,value:QE,weCouldNotLoadThePayoutsOverview:XE,weCouldNotLoadTheTransactionsOverview:KE,weCouldNotLoadYourBalanceAccounts:qE,weCouldNotLoadYourPayouts:ev,weCouldNotLoadYourTransactions:tv},wc={da_DK:Np},Pc={de_DE:ty},Ta={en_US:Oc},kc={es_ES:$I},jc={fr_FR:lT},Fc={it_IT:WA},Wc={nl_NL:yN},Bc={no_NO:ZL},zc={pt_BR:CM},Uc={sv_SE:nv},ov={...wc,...Pc,...kc,...jc,...Fc,...Wc,...Bc,...zc,...Uc},sv={values:U,count:0},rv={"en-US":Ta.en_US},Es=e=>e.substring(0,2).toLowerCase();function av(e,t){if(!e)return null;const n=Es(e);return t.find(o=>Es(o)===n)||null}function Aa(e){const t=e.replace("_","-");if($g.test(t))return t;const[n,o]=t.split("-");if(!n||!o)return null;const s=`${n.toLowerCase()}-${o.toUpperCase()}`;return s.length===5?s:null}function Sa(e,t){const n=e.trim();if(!n||n.length<1||n.length>5)return wt;const o=Aa(n);return o&&t.indexOf(o)>-1?o:av(o??n,[...t])}function iv(e=U,t){return e===U?e:Object.keys(e).reduce((n,o)=>{const s=Aa(o)||Sa(o,t);return s&&e[o]&&(n[s]=e[o]),n},{})}const Mr=(e,t)=>e.replace(/%{(\w+)}/g,(n,o)=>(t==null?void 0:t[o])||""),ui=(e,t,n=sv)=>{const o=n.count??0,s=`${t}__${o}`;if(it(e,s)&&e[s])return Mr(e[s],n.values);const r=`${t}__plural`;return it(e,r)&&o>1&&e[r]?Mr(e[r],n.values):it(e,t)&&e[t]?Mr(e[t],n.values):null},cv=async(e,t,n=U)=>{const o=t??rv,s=Sa(e,Object.keys(o))||wt,r=o[s]||o[wt];return{...$c,...r,...Ao(n==null?void 0:n[e])}};function lv(){let e=this.locale,t=e,n=[...this.supportedLocales];return H({load:{value:o=>cv(e,this.preferredTranslations,o)},locale:{get:()=>e,set:o=>{t=o,e=Aa(o)||Sa(o,n)||wt}},supportedLocales:{get:()=>n,set(o){n=o,this.locale=t}}})}function uv(){var t;const e={};for(const[n,o]of Object.entries(Object.getOwnPropertyDescriptors(ur.prototype)))wg.includes(n)||(K(o.get)?e[n]={get:o.get.bind(this),...n==="timezone"&&{set:(t=o.set)==null?void 0:t.bind(this)}}:K(o.value)?e[n]={value:o.value.bind(this)}:e[n]={get:()=>this[n]});return e}var dt,Eo,vo,bn,Dn,yt,bo,Gt,Vt,On,$n,Do,zr;class ur{constructor(t=wt,n){S(this,Do);S(this,dt,wt);S(this,Eo,Es(h(this,dt)));S(this,vo,hs);S(this,bn,void 0);S(this,Dn,$c);S(this,yt,lv.call(this));S(this,bo,rr);S(this,Gt,void 0);S(this,Vt,void 0);S(this,On,as({timestamp:()=>performance.now()}));S(this,$n,lr());w(this,"watch",h(this,On).subscribe.bind(void 0));w(this,"i18n",H(uv.call(this)));w(this,"preferredTranslations");this.watch(oe),this.preferredTranslations=n&&n.reduce((o,s)=>({...o,...s}),{[wt]:Ta.en_US}),this.locale=t}get customTranslations(){return h(this,bn)??{}}set customTranslations(t){let n,o=[...hs];if(!ue(t)){n=iv(t,hs);const s=Object.keys(n);o=[...hs,...s].filter((r,a,i)=>i.indexOf(r)===a)}h(this,yt).supportedLocales=o,R(this,Do,zr).call(this,n)}get languageCode(){return h(this,Eo)}get lastRefreshTimestamp(){return h(this,On).snapshot.timestamp}get locale(){return h(this,dt)}set locale(t){if(ue(t))this.locale=wt;else{if(h(this,yt).locale=t,h(this,dt)===h(this,yt).locale)return;R(this,Do,zr).call(this,h(this,bn))}}get ready(){return h(this,bo)}get supportedLocales(){return h(this,vo)}get timezone(){return h(this,$n).tz.current}set timezone(t){h(this,$n).tz=t}get(t,n){const o=ui(h(this,Dn),t,n);return Ms(o)?t:o}has(t,n){return!!ui(h(this,Dn),t,n)}amount(t,n,o){const{hideCurrency:s,...r}=o||{},a=eh(t,h(this,dt),n,s,{...r,currencyDisplay:"symbol",signDisplay:"never"});return t<0?`- ${a}`:a}date(t,n={}){const o={...xg,timeZone:h(this,$n).tz.current,...n};return new Date(t).toLocaleDateString(h(this,dt),o)}fullDate(t){return this.date(t,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}dt=new WeakMap,Eo=new WeakMap,vo=new WeakMap,bn=new WeakMap,Dn=new WeakMap,yt=new WeakMap,bo=new WeakMap,Gt=new WeakMap,Vt=new WeakMap,On=new WeakMap,$n=new WeakMap,Do=new WeakSet,zr=function(t){G(h(this,Vt))&&_(this,bo,new Promise(s=>{_(this,Vt,()=>{s(h(this,Gt)),_(this,Gt,_(this,Vt,void 0))})}));const n=()=>{var s;h(this,Gt)===o&&((s=h(this,Vt))==null||s.call(this))},o=_(this,Gt,(async()=>{_(this,Dn,await h(this,yt).load(t)),_(this,dt,h(this,yt).locale),_(this,vo,h(this,yt).supportedLocales),_(this,bn,t),_(this,Eo,Es(h(this,dt))),h(this,On).requestNotification()})());o.then(n).catch(s=>{n(),console.error(s)})};class Yc{constructor(t){w(this,"components",[]);w(this,"options");w(this,"localization");w(this,"loadingContext");w(this,"session",new Vd);w(this,"onError");w(this,"update",async(t=U)=>(this.setOptions(t),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));w(this,"remove",t=>(this.components=this.components.filter(n=>n._id!==t._id),t.unmount(),this));w(this,"registerComponent",t=>{t.props.core===this&&this.components.push(t)});w(this,"setOptions",t=>{var n,o;return this.options={...this.options,...t},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(o=this.options)==null?void 0:o.translations,this.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:kr,...t},this.localization=new ur(t.locale,t.availableTranslations),this.loadingContext=td(this.options.environment),this.setOptions(t)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(t){return{...t}}}w(Yc,"version","1.0.2");const Hc=Yc;var is,J,Gc,Vc,Yt,di,Zc,Ur,Na,Yr,Hr,Jc,So={},Qc=[],dv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dr=Array.isArray;function Nt(e,t){for(var n in t)e[n]=t[n];return e}function Xc(e){var t=e.parentNode;t&&t.removeChild(e)}function Kn(e,t,n){var o,s,r,a={};for(r in t)r=="key"?o=t[r]:r=="ref"?s=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?is.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)a[r]===void 0&&(a[r]=e.defaultProps[r]);return yo(e,a,o,s,null)}function yo(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Gc,__i:-1,__u:0};return s==null&&J.vnode!=null&&J.vnode(r),r}function Z(e){return e.children}function Ct(e,t){this.props=e,this.context=t}function an(e,t){if(t==null)return e.__?an(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?an(e):null}function Kc(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Kc(e)}}function Gr(e){(!e.__d&&(e.__d=!0)&&Yt.push(e)&&!vs.__r++||di!==J.debounceRendering)&&((di=J.debounceRendering)||Zc)(vs)}function vs(){var e,t,n,o,s,r,a,i;for(Yt.sort(Ur);e=Yt.shift();)e.__d&&(t=Yt.length,o=void 0,r=(s=(n=e).__v).__e,a=[],i=[],n.__P&&((o=Nt({},s)).__v=s.__v+1,J.vnode&&J.vnode(o),La(n.__P,o,s,n.__n,n.__P.ownerSVGElement!==void 0,32&s.__u?[r]:null,a,r??an(s),!!(32&s.__u),i),o.__v=s.__v,o.__.__k[o.__i]=o,tl(a,o,i),o.__e!=r&&Kc(o)),Yt.length>t&&Yt.sort(Ur));vs.__r=0}function qc(e,t,n,o,s,r,a,i,c,d,g){var u,p,m,y,f,A=o&&o.__k||Qc,I=t.length;for(n.__d=c,hv(n,t,A),c=n.__d,u=0;u<I;u++)(m=n.__k[u])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?So:A[m.__i]||So,m.__i=u,La(e,m,p,s,r,a,i,c,d,g),y=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Ca(p.ref,null,m),g.push(m.ref,m.__c||y,m)),f==null&&y!=null&&(f=y),65536&m.__u||p.__k===m.__k?(c&&!c.isConnected&&(c=an(p)),c=el(m,c,e)):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:y&&(c=y.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=f}function hv(e,t,n){var o,s,r,a,i,c=t.length,d=n.length,g=d,u=0;for(e.__k=[],o=0;o<c;o++)a=o+u,(s=e.__k[o]=(s=t[o])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?yo(null,s,null,null,null):dr(s)?yo(Z,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?yo(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,i=gv(s,n,a,g),s.__i=i,r=null,i!==-1&&(g--,(r=n[i])&&(r.__u|=131072)),r==null||r.__v===null?(i==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):i!==a&&(i===a+1?u++:i>a?g>c-a?u+=i-a:u--:i<a?i==a-1&&(u=i-a):u=0,i!==o+u&&(s.__u|=65536))):(r=n[a])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=an(r)),Vr(r,r,!1),n[a]=null,g--);if(g)for(o=0;o<d;o++)(r=n[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=an(r)),Vr(r,r))}function el(e,t,n){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=el(o[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function kt(e,t){return t=t||[],e==null||typeof e=="boolean"||(dr(e)?e.some(function(n){kt(n,t)}):t.push(e)),t}function gv(e,t,n,o){var s=e.key,r=e.type,a=n-1,i=n+1,c=t[n];if(c===null||c&&s==c.key&&r===c.type&&!(131072&c.__u))return n;if(o>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||i<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&r===c.type)return a;a--}if(i<t.length){if((c=t[i])&&!(131072&c.__u)&&s==c.key&&r===c.type)return i;i++}}return-1}function hi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||dv.test(t)?n:n+"px"}function ms(e,t,n,o,s){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||hi(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||hi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=Na,e.addEventListener(t,r?Hr:Yr,r)):e.removeEventListener(t,r?Hr:Yr,r);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function gi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Na++;else if(t.t<n.u)return;return n(J.event?J.event(t):t)}}}function La(e,t,n,o,s,r,a,i,c,d){var g,u,p,m,y,f,A,I,M,L,E,v,$,b,D,O=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),r=[i=t.__e=n.__e]),(g=J.__b)&&g(t);e:if(typeof O=="function")try{if(I=t.props,M=(g=O.contextType)&&o[g.__c],L=g?M?M.props.value:g.__:o,n.__c?A=(u=t.__c=n.__c).__=u.__E:("prototype"in O&&O.prototype.render?t.__c=u=new O(I,L):(t.__c=u=new Ct(I,L),u.constructor=O,u.render=pv),M&&M.sub(u),u.props=I,u.state||(u.state={}),u.context=L,u.__n=o,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Nt({},u.__s)),Nt(u.__s,O.getDerivedStateFromProps(I,u.__s))),m=u.props,y=u.state,u.__v=t,p)O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(O.getDerivedStateFromProps==null&&I!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(I,L),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(I,u.__s,L)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=I,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(j){j&&(j.__=t)}),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(I,u.__s,L),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,y,f)})}if(u.context=L,u.props=I,u.__P=e,u.__e=!1,v=J.__r,$=0,"prototype"in O&&O.prototype.render){for(u.state=u.__s,u.__d=!1,v&&v(t),g=u.render(u.props,u.state,u.context),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[]}else do u.__d=!1,v&&v(t),g=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++$<25);u.state=u.__s,u.getChildContext!=null&&(o=Nt(Nt({},o),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(f=u.getSnapshotBeforeUpdate(m,y)),qc(e,dr(D=g!=null&&g.type===Z&&g.key==null?g.props.children:g)?D:[D],t,n,o,s,r,a,i,c,d),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),A&&(u.__E=u.__=null)}catch(j){t.__v=null,c||r!=null?(t.__e=i,t.__u|=c?160:32,r[r.indexOf(i)]=null):(t.__e=n.__e,t.__k=n.__k),J.__e(j,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mv(n.__e,t,n,o,s,r,a,c,d);(g=J.diffed)&&g(t)}function tl(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)Ca(n[o],n[++o],n[++o]);J.__c&&J.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){J.__e(r,s.__v)}})}function mv(e,t,n,o,s,r,a,i,c){var d,g,u,p,m,y,f,A=n.props,I=t.props,M=t.type;if(M==="svg"&&(s=!0),r!=null){for(d=0;d<r.length;d++)if((m=r[d])&&"setAttribute"in m==!!M&&(M?m.localName===M:m.nodeType===3)){e=m,r[d]=null;break}}if(e==null){if(M===null)return document.createTextNode(I);e=s?document.createElementNS("http://www.w3.org/2000/svg",M):document.createElement(M,I.is&&I),r=null,i=!1}if(M===null)A===I||i&&e.data===I||(e.data=I);else{if(r=r&&is.call(e.childNodes),A=n.props||So,!i&&r!=null)for(A={},d=0;d<e.attributes.length;d++)A[(m=e.attributes[d]).name]=m.value;for(d in A)m=A[d],d=="children"||(d=="dangerouslySetInnerHTML"?u=m:d==="key"||d in I||ms(e,d,null,m,s));for(d in I)m=I[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?g=m:d=="value"?y=m:d=="checked"?f=m:d==="key"||i&&typeof m!="function"||A[d]===m||ms(e,d,m,A[d],s);if(g)i||u&&(g.__html===u.__html||g.__html===e.innerHTML)||(e.innerHTML=g.__html),t.__k=[];else if(u&&(e.innerHTML=""),qc(e,dr(p)?p:[p],t,n,o,s&&M!=="foreignObject",r,a,r?r[0]:n.__k&&an(n,0),i,c),r!=null)for(d=r.length;d--;)r[d]!=null&&Xc(r[d]);i||(d="value",y!==void 0&&(y!==e[d]||M==="progress"&&!y||M==="option"&&y!==A[d])&&ms(e,d,y,A[d],!1),d="checked",f!==void 0&&f!==e[d]&&ms(e,d,f,A[d],!1))}return e}function Ca(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){J.__e(o,n)}}function Vr(e,t,n){var o,s;if(J.unmount&&J.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Ca(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){J.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&Vr(o[s],t,n||typeof e.type!="function");n||e.__e==null||Xc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function pv(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var o,s,r,a;J.__&&J.__(e,t),s=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],a=[],La(t,e=(!o&&n||t).__k=Kn(Z,null,[e]),s||So,So,t.ownerSVGElement!==void 0,!o&&n?[n]:s?null:t.firstChild?is.call(t.childNodes):null,r,!o&&n?n:s?s.__e:t.firstChild,o,a),tl(r,e,a)}function nl(e,t,n){var o,s,r,a,i=Nt({},e.props);for(r in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)r=="key"?o=t[r]:r=="ref"?s=t[r]:i[r]=t[r]===void 0&&a!==void 0?a[r]:t[r];return arguments.length>2&&(i.children=arguments.length>3?is.call(arguments,2):n),yo(e.type,i,o||e.key,s||e.ref,null)}function Ma(e,t){var n={__c:t="__cC"+Jc++,__:e,Consumer:function(o,s){return o.children(s)},Provider:function(o){var s,r;return this.getChildContext||(s=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(i){i.__e=!0,Gr(i)})},this.sub=function(a){s.push(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),i&&i.call(a)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}is=Qc.slice,J={__e:function(e,t,n,o){for(var s,r,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),a=s.__d),a)return s.__E=s}catch(i){e=i}throw e}},Gc=0,Vc=function(e){return e!=null&&e.constructor==null},Ct.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),typeof e=="function"&&(e=e(Nt({},n),this.props)),e&&Nt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Gr(this))},Ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gr(this))},Ct.prototype.render=Z,Yt=[],Zc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ur=function(e,t){return e.__v.__b-t.__v.__b},vs.__r=0,Na=0,Yr=gi(!1),Hr=gi(!0),Jc=0;var cn,ie,Er,mi,qn=0,ol=[],fs=[],fe=J,pi=fe.__b,fi=fe.__r,yi=fe.diffed,Ii=fe.__c,_i=fe.unmount,Ti=fe.__;function cs(e,t){fe.__h&&fe.__h(ie,e,qn||t),qn=0;var n=ie.__H||(ie.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fs}),n.__[e]}function B(e){return qn=1,hr(rl,e)}function hr(e,t,n){var o=cs(cn++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):rl(void 0,t),function(i){var c=o.__N?o.__N[0]:o.__[0],d=o.t(c,i);c!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=ie,!ie.u)){var s=function(i,c,d){if(!o.__c.__H)return!0;var g=o.__c.__H.__.filter(function(p){return!!p.__c});if(g.every(function(p){return!p.__N}))return!r||r.call(this,i,c,d);var u=!1;return g.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(u=!0)}}),!(!u&&o.__c.props===i)&&(!r||r.call(this,i,c,d))};ie.u=!0;var r=ie.shouldComponentUpdate,a=ie.componentWillUpdate;ie.componentWillUpdate=function(i,c,d){if(this.__e){var g=r;r=void 0,s(i,c,d),r=g}a&&a.call(this,i,c,d)},ie.shouldComponentUpdate=s}return o.__N||o.__}function W(e,t){var n=cs(cn++,3);!fe.__s&&va(n.__H,t)&&(n.__=e,n.i=t,ie.__H.__h.push(n))}function sl(e,t){var n=cs(cn++,4);!fe.__s&&va(n.__H,t)&&(n.__=e,n.i=t,ie.__h.push(n))}function k(e){return qn=5,T(function(){return{current:e}},[])}function fv(e,t,n){qn=6,sl(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function T(e,t){var n=cs(cn++,7);return va(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function N(e,t){return qn=8,T(function(){return e},t)}function Ea(e){var t=ie.context[e.__c],n=cs(cn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ie)),t.props.value):e.__}function yv(){for(var e;e=ol.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ys),e.__H.__h.forEach(Zr),e.__H.__h=[]}catch(t){e.__H.__h=[],fe.__e(t,e.__v)}}fe.__b=function(e){ie=null,pi&&pi(e)},fe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ti&&Ti(e,t)},fe.__r=function(e){fi&&fi(e),cn=0;var t=(ie=e.__c).__H;t&&(Er===ie?(t.__h=[],ie.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=fs,n.__N=n.i=void 0})):(t.__h.forEach(ys),t.__h.forEach(Zr),t.__h=[],cn=0)),Er=ie},fe.diffed=function(e){yi&&yi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ol.push(t)!==1&&mi===fe.requestAnimationFrame||((mi=fe.requestAnimationFrame)||Iv)(yv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==fs&&(n.__=n.__V),n.i=void 0,n.__V=fs})),Er=ie=null},fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ys),n.__h=n.__h.filter(function(o){return!o.__||Zr(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],fe.__e(o,n.__v)}}),Ii&&Ii(e,t)},fe.unmount=function(e){_i&&_i(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{ys(o)}catch(s){t=s}}),n.__H=void 0,t&&fe.__e(t,n.__v))};var Ai=typeof requestAnimationFrame=="function";function Iv(e){var t,n=function(){clearTimeout(o),Ai&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Ai&&(t=requestAnimationFrame(n))}function ys(e){var t=ie,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ie=t}function Zr(e){var t=ie;e.__c=e.__(),ie=t}function va(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function rl(e,t){return typeof t=="function"?t(e):t}var _v=0;function l(e,t,n,o,s,r){var a,i,c={};for(i in t)i=="ref"?a=t[i]:c[i]=t[i];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--_v,__i:-1,__u:0,__source:s,__self:r};if(typeof e=="function"&&(a=e.defaultProps))for(i in a)c[i]===void 0&&(c[i]=a[i]);return J.vnode&&J.vnode(d),d}const al=Ma({endpoints:U,hasError:!1,http:nd,isExpired:void 0,refresh:oe,refreshing:!1}),Tv=({children:e,session:t})=>{const[,n]=B(0),[o,s]=B(0);return W(()=>t.subscribe(r=>{(so(r)?s:n)(i=>i+1)}),[o,t]),l(al.Provider,{value:t.context,children:kt(e)})},jt=()=>Ea(al);function gr({fetchOptions:e={keepPrevData:!0},queryFn:t,params:n}){k(new Map);const o=k(!1),s={error:void 0,data:void 0,isFetching:Pt(e.enabled)},r=(d,g)=>{switch(g.type){case"loading":return{...s,isFetching:!0,data:e.keepPrevData?d.data:void 0};case"fetched":return{...s,data:g.payload,isFetching:!1};case"error":return{...s,error:g.payload,isFetching:!1};default:return d}},[a,i]=hr(r,s),c=N(async()=>{i({type:"loading"});try{if(o.current)return;const d=await t();i({type:"fetched",payload:d})}catch(d){if(o.current)return;i({type:"error",payload:d})}},[i,t]);return W(()=>(o.current=!1,Pt(e.enabled)&&c(),()=>{o.current=!0}),[e.enabled,c]),a}const Av=(e,t)=>{const{getBalanceAccounts:n}=jt().endpoints,{data:o,isFetching:s,error:r}=gr(T(()=>({fetchOptions:{enabled:!!n&&(t??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(U)}),[n])),a=T(()=>o==null?void 0:o.data.filter(c=>e?c.id===e:!0),[o==null?void 0:o.data,e]),i=T(()=>!!e&&!!(o!=null&&o.data.length)&&(a==null?void 0:a.length)===0,[a==null?void 0:a.length,o==null?void 0:o.data.length,e]);return{balanceAccounts:a,isBalanceAccountIdWrong:i,isFetching:s,error:r}},ba=Av,Sv="adyen-pe-data-overview-container--with-error",je="adyen-pe-typography";var P=(e=>(e.CAPTION="caption",e.BODY="body",e.SUBTITLE="subtitle",e.TITLE="title",e))(P||{}),ft=(e=>(e.WIDE="wide",e.STRONGER="stronger",e.STRONGER_WIDE="stronger-wide",e.STRONGEST="strongest",e.STRONGEST_WIDE="strongest-wide",e.MEDIUM="m",e.LARGE="l",e.MOBILE="mobile",e))(ft||{}),eo=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.DIV="div",e.PARAGRAPH="p",e.SPAN="span",e))(eo||{});function il(e,t){for(var n in t)e[n]=t[n];return e}function Jr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function Si(e,t){this.props=e,this.context=t}function Se(e,t){function n(s){var r=this.props.ref,a=r==s.ref;return!a&&r&&(r.call?r(null):r.current=null),t?!t(this.props,s)||!a:Jr(this.props,s)}function o(s){return this.shouldComponentUpdate=n,Kn(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Si.prototype=new Ct).isPureReactComponent=!0,Si.prototype.shouldComponentUpdate=function(e,t){return Jr(this.props,e)||Jr(this.state,t)};var Ni=J.__b;J.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ni&&Ni(e)};var Nv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ro(e){function t(n){var o=il({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Nv,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Lv=J.__e;J.__e=function(e,t,n,o){if(e.then){for(var s,r=t;r=r.__;)if((s=r.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Lv(e,t,n,o)};var Li=J.unmount;function cl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=il({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return cl(o,t,n)})),e}function ll(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return ll(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function vr(){this.__u=0,this.t=null,this.__b=null}function ul(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ps(){this.u=null,this.o=null}J.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Li&&Li(e)},(vr.prototype=new Ct).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var s=ul(o.__v),r=!1,a=function(){r||(r=!0,n.__R=null,s?s(i):i())};n.__R=a;var i=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=ll(c,c.__c.__P,c.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.t.pop();)d.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},vr.prototype.componentWillUnmount=function(){this.t=[]},vr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=cl(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&Kn(Z,null,e.fallback);return s&&(s.__u&=-33),[Kn(Z,null,t.__a?null:e.children),s]};var Ci=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Cv(e){return this.getChildContext=function(){return e.context},e.children}function Mv(e){var t=this,n=e.i;t.componentWillUnmount=function(){Tn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(o){this.childNodes.push(o),t.i.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),t.i.appendChild(o)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.i.removeChild(o)}}),Tn(Kn(Cv,{context:t.context},e.__v),t.l)}function dl(e,t){var n=Kn(Mv,{__v:e,i:t});return n.containerInfo=t,n}(ps.prototype=new Ct).__a=function(e){var t=this,n=ul(t.__v),o=t.o.get(e);return o[0]++,function(s){var r=function(){t.props.revealOrder?(o.push(s),Ci(t,e,o)):s()};n?n(r):r()}},ps.prototype.render=function(e){this.u=null,this.o=new Map;var t=kt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ps.prototype.componentDidUpdate=ps.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ci(e,n,t)})};var Ev=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vv=/^(?: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]/,bv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Dv=/[A-Z0-9]/g,Ov=typeof document<"u",$v=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Mi=J.event;function Rv(){}function xv(){return this.cancelBubble}function wv(){return this.defaultPrevented}J.event=function(e){return Mi&&(e=Mi(e)),e.persist=Rv,e.isPropagationStopped=xv,e.isDefaultPrevented=wv,e.nativeEvent=e};var Pv={enumerable:!1,configurable:!0,get:function(){return this.class}},Ei=J.vnode;J.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,s={};for(var r in n){var a=n[r];if(!(r==="value"&&"defaultValue"in n&&a==null||Ov&&r==="children"&&o==="noscript"||r==="class"||r==="className")){var i=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&a===!0?a="":i==="translate"&&a==="no"?a=!1:i==="ondoubleclick"?r="ondblclick":i!=="onchange"||o!=="input"&&o!=="textarea"||$v(n.type)?i==="onfocus"?r="onfocusin":i==="onblur"?r="onfocusout":bv.test(r)?r=i:o.indexOf("-")===-1&&vv.test(r)?r=r.replace(Dv,"-$&").toLowerCase():a===null&&(a=void 0):i=r="oninput",i==="oninput"&&s[r=i]&&(r="oninputCapture"),s[r]=a}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=kt(n.children).forEach(function(c){c.props.selected=s.value.indexOf(c.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=kt(n.children).forEach(function(c){c.props.selected=s.multiple?s.defaultValue.indexOf(c.props.value)!=-1:s.defaultValue==c.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Pv)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Ev,Ei&&Ei(e)};var vi=J.__r;J.__r=function(e){vi&&vi(e),e.__c};var bi=J.diffed;J.diffed=function(e){bi&&bi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function kv({el:e,className:t,stronger:n,strongest:o,variant:s,medium:r,large:a,wide:i,children:c}){const d=e||"p",g=T(()=>({[`${je}--${P.CAPTION}`]:s===P.CAPTION,[`${je}--${P.CAPTION}-${ft.WIDE}`]:s===P.CAPTION&&i,[`${je}--${P.CAPTION}-${ft.STRONGER}`]:s===P.CAPTION&&n,[`${je}--${P.BODY}`]:s===P.BODY,[`${je}--${P.BODY}-${ft.WIDE}`]:s===P.BODY&&i,[`${je}--${P.BODY}-${ft.STRONGER}`]:s===P.BODY&&n,[`${je}--${P.BODY}-${ft.STRONGEST}`]:s===P.BODY&&o,[`${je}--${P.SUBTITLE}`]:s===P.SUBTITLE,[`${je}--${P.SUBTITLE}-${ft.STRONGER}`]:s===P.SUBTITLE&&n,[`${je}--${P.TITLE}`]:s===P.TITLE&&!r&&!a,[`${je}--${P.TITLE}-${ft.MEDIUM}`]:s===P.TITLE&&r,[`${je}--${P.TITLE}-${ft.LARGE}`]:s===P.TITLE&&a}),[s,i,n,r,a,o]);return l(d,{className:F([`${je}`,g,t]),children:c})}const X=Se(kv),hl=Ma({i18n:new ur().i18n,loadingContext:"",commonProps:{},updateCore:oe}),jv=()=>Ea(hl),Q=jv;const Fv="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04LjcgMi4xIDYuNmMuMi42LjguOCAxLjQuNy42LS4xIDEtLjcuOC0xLjJsLTEuMy02LjggMi45LTQuOC01LjktNS41LTcuNiA5IDUgNC43IDEgNi4yYzAgLjcuNyAxLjIgMS41IDFaIi8+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBkPSJNMzE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kMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNNTcuNCAxLjRIMXYyOS40aDMzLjJMNDguOSA0NWwtLjItMTQuMmg4LjdWMS40WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjMDAxMTJDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0iTTIuMyAxNjhoMjE5LjQiLz4KICAgIDxwYXRoIGZpbGw9IiMwMDExMkMiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",He=e=>ro(e),bs=(()=>{const e=new Set,t=(o,s,r,a)=>{let i=a==null?void 0:a[r];return i=K(i)?i:ya,!hn(i(o[r]),i(s[r]))};return Object.defineProperty(o=>(s,r)=>{try{for(const a in s)if(e.add(a),t(s,r,a,o))return!1;for(const a in r)if(!e.has(a)&&(e.add(a),t(s,r,a,o)))return!1;return!0}finally{e.clear()}},"exclude",{value:oe})})(),Di=/^\s+|\s+(?=\s|$)/g,Mn=(e,t)=>(t?typeof t=="string"?t:(t==null?void 0:t.value)??"":"").replace(Di,"")||e.replace(Di,"")||void 0,Ds=(e,t,n)=>F(Mn("",n),Mn(Mn("",t)||"",e)),Da=(e,t=[],n=[])=>F([...n,...t==null?void 0:t.map(o=>e?`${e}--${o}`:o)]),Oa=e=>pn(e,(e==null?void 0:e.value)??e),Wv=(e,t,n,o,s)=>{const r=N(i=>{i.preventDefault(),o||s==null||s(i)},[o,s]);return{classes:T(()=>Da(n,t,[n,e]),[t,e]),click:r}},$a=Wv,Mt="adyen-pe-button",Qr=`${Mt}-actions`,Bv=`${Mt}--icon`,zv=`${Mt}--icon-content`,Uv=`${Qr}__container-wrapper`,Yv=`${Mt}__label`,Hv=`${Mt}__icon-right`,Gv=`${Mt}__icon-left`;var Oe=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link",e))(Oe||{});function Vv({variant:e=Oe.PRIMARY,disabled:t=!1,onClick:n,classNameModifiers:o=[],iconLeft:s,iconRight:r,type:a="button",children:i,className:c,iconButton:d=!1,...g},u){const p=T(()=>Mn("",c)||"",[c]),m=T(()=>Oa(t),[t]),{classes:y,click:f}=$a(p,[...o,e],Mt,m,n);return l("button",{className:d?`${Bv} ${y}`:y,type:a,disabled:t,onClick:f,ref:u,...g,children:d?l("div",{className:`${zv}`,children:i}):l(Z,{children:[s&&l("span",{className:Gv,children:s}),l(X,{className:Yv,el:eo.SPAN,variant:P.BODY,stronger:!0,children:i}),r&&l("span",{className:Hv,children:r})]})})}const et=He(Vv),Oi={md:680,lg:1024},En=({title:e,message:t,imageDesktop:n,imageMobile:o,withImage:s,centered:r,refreshComponent:a,onContactSupport:i,translationValues:c})=>{const{i18n:d,updateCore:g}=Q(),u=N(p=>Array.isArray(p)?p.map((m,y)=>y===0?l(Z,{children:[d.get(m),c&&c[m]&&l(Z,{children:c[m]})]}):l(Z,{children:[l("br",{}),d.get(m),c&&c[m]&&l(Z,{children:c[m]})]})):d.get(p),[d,c]);return l("div",{className:`adyen-pe-error-message-display ${r?"adyen-pe-error-message-display--centered":""}`,children:[(n||o||s)&&l("div",{className:"adyen-pe-error-message-display__illustration",children:l("picture",{children:[l("source",{type:"image/svg+xml",media:`(min-width: ${Oi.md}px)`,srcSet:n}),l("source",{type:"image/svg+xml",media:`(max-width: ${Oi.md}px)`,srcSet:o}),l("img",{srcSet:n??Fv,alt:d.get("thereWasAnUnexpectedError")})]})}),l(X,{variant:P.TITLE,children:d.get(e)}),t&&l(X,{variant:P.BODY,children:u(t)}),(i||a)&&l("div",{className:"adyen-pe-error-message-display__button",children:[i&&l(et,{onClick:i,children:d.get("reachOutToSupport")}),!i&&a&&l(et,{onClick:g,children:d.get("refresh")})]})]})},Xr={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},Zv=(e,t)=>{if(!e)return null;switch(e.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:t};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:t};case"00_403":return Xr;default:return null}},Ge={sm:480,md:768,lg:1024},Jv=e=>{const t=T(()=>window.matchMedia(e),[e]),[n,o]=B(t.matches);return W(()=>{const s=r=>o(r.matches);return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),W(()=>{o(t.matches)},[t]),n},Te={up:{sm:`(min-width: ${Ge.sm}px)`,md:`(min-width: ${Ge.md}px)`,lg:`(min-width: ${Ge.lg}px)`},down:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(max-width: ${Ge.md-1}px)`,md:`(max-width: ${Ge.lg-1}px)`},only:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(min-width: ${Ge.sm}px) and (max-width: ${Ge.md-1}px)`,md:`(min-width: ${Ge.md}px) and (max-width: ${Ge.lg-1}px)`,lg:`(min-width: ${Ge.lg}px)`}},Ae=Jv;var Ra=(e=>(e.BUTTONS_END="buttons-end",e.FILL_CONTAINER="fill-container",e.SPACE_BETWEEN="space-between",e.VERTICAL_STACK="vertical-stack",e))(Ra||{}),gl=(e=>(e.BUTTONS_START="buttons-start",e))(gl||{});const Qv={...Ra,...gl};function Xv({actions:e,layout:t=Qv.BUTTONS_END}){const n=()=>`${Qr}--${t}`,o=r=>{const a=e.length-1;return r===a?Oe.PRIMARY:Oe.SECONDARY},s=T(()=>[...e].reverse(),[e]);return l("div",{className:Qr,children:l("div",{className:`${Uv} ${n()}`,role:"group",children:s.map((r,a)=>l(et,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||o(a),onClick:r.event,children:r.title},a))})})}const Kv=Se(Xv),Qe="adyen-pe-popover",ml="adyen-pe-tooltip",qv=`${Qe}-container`,$i=`${Qe}__header`,eb=`${Qe}__header-title`,br=`${Qe}__content`,pl=`${ml}__content`,tb=`${Qe}__footer`;function nb({image:e=!0,onClick:t}){const{i18n:n}=Q();return l(Z,{children:l(et,{className:(()=>e?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Oe.TERTIARY,onClick:t,"aria-label":n.get("closeIconLabel"),children:l("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[l("title",{children:"dismiss"}),l("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 ob=Se(nb);function sb({title:e,isImageTitle:t=!1}){return l(X,{strongest:!t,variant:(()=>t?P.SUBTITLE:P.BODY)(),children:e})}const rb=Se(sb);var De=(e=>(e.TOOLTIP="tooltip",e.POPOVER="popover",e))(De||{}),ae=(e=>(e.TOP="top",e.TOP_LEFT="top-left",e.RIGHT="right",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.LEFT="left",e))(ae||{}),No=(e=>(e.MEDIUM="medium",e.WIDE="wide",e))(No||{}),z=(e=>(e.ARROW_DOWN="ArrowDown",e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_UP="ArrowUp",e.BACKSPACE="Backspace",e.END="End",e.ENTER="Enter",e.ESCAPE="Escape",e.HOME="Home",e.PAGE_DOWN="PageDown",e.PAGE_UP="PageUp",e.SPACE="Space",e.TAB="Tab",e))(z||{}),V=(e=>(e.BALANCE_ACCOUNT="balanceAccount",e.CATEGORIES="categories",e.CURRENCIES="currencies",e.CREATED_SINCE="createdSince",e.CREATED_UNTIL="createdUntil",e.STATUSES="statuses",e.MIN_AMOUNT="minAmount",e.MAX_AMOUNT="maxAmount",e))(V||{});const go=(()=>{let e=[];const t=a=>{const i=a.reduce((c,d)=>{const g=d instanceof Node?e.findIndex(u=>{const p=u.element.getAttribute("id"),m=d&&(d!=null&&d.getAttribute)?d==null?void 0:d.getAttribute("id"):null;return p===m}):-1;return c===-1&&g!==-1?g:c},-1);i===-1?s(0):i+1<=e.length-1&&s(i+1)},n=a=>{const i=e.findIndex(c=>c.element.getAttribute("id")===a.getAttribute("id"));i>=0&&e.splice(i,1)},o=(a,i)=>{e.findIndex(d=>d.element.getAttribute("id")===a.getAttribute("id"))>=0||e.push({element:a,callback:i})},s=a=>{var c,d;const i=e.length;for(let g=a;g<i;g++)(d=(c=e==null?void 0:e[g])==null?void 0:c.callback)==null||d.call(c);e.splice(a)};return{add:o,remove:n,closeAll:()=>{e.forEach(a=>{var i;return(i=a==null?void 0:a.callback)==null?void 0:i.call(a)}),e=[]},closePopoversOutsideOfClick:t}})(),Lo=Symbol("_ref");class fl extends Error{}class ab extends fl{}class ib extends fl{}function xa(e){if(!K(e))throw new ib}const cb=e=>{try{if(K(e)&&it(e,"current")&&it(e,Lo)&&!hn(e,e[Lo])){const t=e.actions.get(U),n=e.actions.size;return G(t)&&Number.isInteger(n)&&n>=0}}catch{}return!1},Co=e=>cb(e)?Co(e[Lo]):e,lb=(()=>{const e=(o,s)=>{const r=o.get(s);if(!r)throw new ab;return r},t=(o,s,r)=>{let a,i;const c=Co(s);try{a=e(o,c)}catch{xa(r)}if(a)[,i]=a;else{const d=K(c),g=d?m=>{c(p=m)}:m=>{c.current=m,p=c.current},u=m=>{if(i.size===0)return;const y=p;if(g(m),!hn(p,y))for(const[f]of i)f(p,y)};let p=d?null:c.current;o.set(c,a=[u,i=new Map]),Object.defineProperties(u,{[Lo]:{value:c},actions:{value:H({get:{value:i.get.bind(i)},size:{get:()=>i.size}})},current:{get:()=>p,set:d?void 0:u}})}return r&&i.set(r,1+(i.get(r)||0)),a[0]},n=(o,s,r)=>{const a=Co(s),[,i]=e(o,a),c=i.get(r)||0;c===1?i.delete(r):c>1&&i.set(r,c-1),i.size===0&&o.delete(a)};return()=>{const o=new WeakMap;return H({bind:x(t.bind(void 0,o)),unbind:x(n.bind(void 0,o))})}})(),ub=lb(),db=e=>{xa(e);const t=new WeakMap([[e,1]]),n=s=>{if(hn(o,s))return;const r=o;e(o=s,r)};let o=null;return Object.defineProperties(n,{[Lo]:{value:n},actions:{value:H({get:{value:t.get.bind(t)},size:{value:1}})},current:{get:()=>o,set:n}})},hb=(e=ub)=>{let t,n=null,o,s=!1;const r=d=>{t=void 0,n=null,o=d,s=!1},a=()=>{s||(i(),s=!0)},i=()=>{try{if(!n)return;e.unbind(n,o)}catch{}};return H({action:{get:()=>o},reflex:{get:()=>t},release:{value:a},update:{value:(d,g)=>{xa(d),s&&r(d);const u=ue(g)?null:g;if(o===d&&n===u){if(t)return}else if(n){if(hn(Co(n),Co(u))){t=e.bind(n,d),i(),o=d;return}i()}o=d,t=(n=u)?e.bind(n,o):db(o)}}})},gb=(e,t)=>{const n=k(hb());return sl(()=>n.current.release,[]),T(()=>(n.current.update(e,t),n.current.reflex),[e,t])},Et=gb,An=Symbol("__control.Elem.");var yl=(e=>(e.POPOVER="POPOVER",e.DEFAULT="DEFAULT",e))(yl||{});const Ri=e=>{e.stopImmediatePropagation()},wa=(e,t,n,o)=>{const s=k(null),r=N(i=>{const c=i.composedPath();if(s&&s.current)if(o==="POPOVER")go.closePopoversOutsideOfClick(c);else{let d=0,g=!1,u=c[d];for(;u instanceof Element&&!(g||(g=u==null?void 0:u.isSameNode(s.current)));)u=c[++d]??u.parentElement,(u==null?void 0:u[An])instanceof Element&&(u=u[An],c.length=0);t&&!g&&t(!0)}},[s,t,o]),a=k(r);return W(()=>()=>{s.current&&go.remove(s.current),document.removeEventListener("click",a.current,!0)},[]),W(()=>(document.removeEventListener("click",a.current,!0),a.current=r,document.addEventListener("click",a.current,!0),o==="POPOVER"&&s.current instanceof Element&&go.add(s.current,t),()=>{s.current&&go.remove(s.current),document.removeEventListener("click",a.current,!0)}),[r,t,o]),W(()=>{n?document.removeEventListener("click",a.current,!0):document.addEventListener("click",a.current,!0)},[n]),Et(N((i,c)=>{c instanceof Element&&c.removeEventListener("focusout",Ri,!0),i instanceof Element&&(n||(i.addEventListener("focusout",Ri,!0),s.current=i))},[n,o]),e)},Pa=`
1
+ "use strict";var kd=Object.defineProperty;var Wd=(t,e,n)=>e in t?kd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var j=(t,e,n)=>(Wd(t,typeof e!="symbol"?e+"":e,n),n),$i=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var h=(t,e,n)=>($i(t,e,"read from private field"),n?n.call(t):e.get(t)),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)},A=(t,e,n,s)=>($i(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n);var Qe=(t,e,n,s)=>({set _(r){A(t,e,r,n)},get _(){return h(t,e,s)}}),w=(t,e,n)=>($i(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("classnames"),so="test",Bd=t=>{var e;return(e=t==null?void 0:t.replace)==null?void 0:e.call(t,/([^\/])$/,"$1/")},zd=t=>t==null?void 0:t.replace(/^([^\/])/,"/$1"),Fd=(()=>{const 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/"};return e=>t[e??so]||t[so]})(),pn=Function.prototype.bind.bind(Function.prototype.call),Fa=t=>()=>t,$d=async()=>{},yi=t=>t,st=()=>{},Ud=pn(Object.prototype.toString),Hd=t=>Ud(t).slice(8,-1),ro=t=>t===!!t,X=t=>typeof t=="function",Fr=t=>t===null,ht=t=>t==null,mr=t=>typeof t=="number",Si=t=>Hd(t)==="Object",Gt=t=>typeof t=="string",Yd=t=>typeof t=="symbol",Z=t=>t===void 0,hn=(t,e,n)=>(Math.min(t,n)!==t&&([t,n]=[n,t]),Math.max(t,Math.min(e,n))),Os=t=>!Yd(t)&&t===~~t,mn=t=>mr(t)&&1/t===0,tl=(t,e)=>{if(Number.isInteger(t)&&Number.isInteger(e))return t+Math.floor((e-t)/2);throw TypeError(`Expects 2 integer values: [${t}, ${e}]`)},fr=(t,e)=>(t%e+e)%e,$a="abort",Gd="signal is aborted without reason",En=(t,e=t)=>ro(t)?t:!!e,jt=t=>t===!0,Ye=t=>t!==!1,Zd=t=>!1,io=t=>!0,x=(t,e=!1)=>({writable:jt(e),enumerable:!0,value:t}),rt=(t,e=!0)=>({enumerable:Ye(e),get:t}),le=pn(Object.prototype.hasOwnProperty),yn=(t,e)=>t===e||!(t===t||e===e);if(!le(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...rt(function(){return this.aborted?bs():void 0},!0),configurable:!0})}catch{}le(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??bs()});const bs=(t=Gd)=>new DOMException(t,"AbortError"),el=(t,e)=>{if(!yn(t.reason,e))try{Object.defineProperty(t,"reason",x(e))}catch{}return t},Jd=(t=bs())=>{if("abort"in AbortSignal)return AbortSignal.abort(t);const e=new AbortController,n=Z(t)?bs():t,{signal:s}=e;return e.abort(n),el(s,n),s},Ai=t=>{if("any"in AbortSignal)return AbortSignal.any(t);let e=new Set,n=new AbortController;const{signal:s}=n;let r=function(){e.forEach(o=>o.removeEventListener($a,r)),e.clear();const i=(this==null?void 0:this.reason)??bs();n.abort(i),el(s,i),n=e=r=void 0};t:{const i=Symbol("<NIL_EXCEPTION>");let o=i;e:{try{for(const a of t){if(!_r(a))throw new TypeError("Failed to convert value to 'AbortSignal'");if(a.aborted)break e;e.add(a)}}catch(a){o=a;break e}e.forEach(a=>a.addEventListener($a,r));break t}if(r.call(s),o!==i)throw o}return s},_r=t=>t instanceof AbortSignal,Lt=Object.freeze([]),F=Object.freeze(Object.create(null)),Ti=Promise.resolve();Promise.race(Lt);const Ni=function(t,...e){return new Promise(n=>n(t.call(this,...e)))},Vd=(t,e,n)=>{let s=e.get(t);return Z(s)&&X(n)&&(Z(s=n(t,e))||e.set(t,s)),s},Ss=(t,e=Lt)=>{const n=`${t||""}`.trim(),s=n?n.split(/(?:\s*,\s*)+/).filter(yi):Lt;return s.length?s:e},ys=(t,e,n)=>t.includes(e)?e:ht(e)?t[0]:t.includes(n)?n:t[0],Ua=pn(Array.prototype.some),nl=function t(e,n,s=new Set){for(const r of n)Array.isArray(r)?t(e,r,s):(e&&s.delete(r),s.add(r));return s};pn(nl,void 0,!1);pn(nl,void 0,!0);const Qd=(...t)=>{const[e]=t,s=(t.length>=2?new Date(...t):e instanceof Date?e:new Date(Gt(e)||Number.isFinite(e)?e:void 0)).getTime();return Number.isFinite(s)?s:void 0},Xd=(()=>{let t=Date.now();return(e="adyen-pe")=>`${e}-${++t}`})(),Wo=(()=>{const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>t.replace(/[xy]/g,e=>{const n=Math.random()*16|0;return(e=="x"?n:n&3|8).toString(16)})})(),vs=(t,e=F)=>Si(t)?t:vs(e,F),_s=pn(Object.create,void 0),J=pn(_s,void 0,null),Li=(t=F)=>Object.freeze({...t,defineProperty:io,set:io}),Kd=t=>t&&(t==null?void 0:t.length)>0?`${t[0].toUpperCase()}${t.slice(1)}`:t,qd=t=>ht(t)||Gt(t)&&/^\s*$/.test(t),th="/setup",eh=jt(void 0),Ha=(()=>{let t=0;if(Number.isFinite(t)&&(t=Math.max(0,~~t)))return t})();class nh extends Error{constructor(n,s,r,i){super(r);j(this,"type");j(this,"errorCode");j(this,"requestId");this.type=n,this.name=n,this.errorCode=i,this.requestId=s}}const sh=nh,rh=/^[^]*?filename[^;\n]*=\s*(?:UTF-\d['"]*)?(?:(['"])([^]*?)\1|([^;\n]*))?[^]*?$/;var sl=(t=>(t.NETWORK_ERROR="NETWORK_ERROR",t.CANCEL="CANCEL",t.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",t.ERROR="ERROR",t.EXPIRED_TOKEN="EXPIRED_TOKEN",t))(sl||{});const ih=t=>{switch(t){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},oh=t=>{var e;return(e=t.headers.get("Content-Type"))==null?void 0:e.split(";",1)[0]},ah=t=>{const n=(t.headers.get("Content-Disposition")??"").replace(rh,"$2$3");return decodeURIComponent(n)},ch=(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,"SDK-Version":"1.1.0"},redirect:"follow",signal:t.signal,referrerPolicy:"no-referrer-when-downgrade",...s==="POST"&&e&&{body:JSON.stringify(e)}}};function lh({message:t,level:e,errorCode:n,type:s="NETWORK_ERROR",requestId:r}){switch(e){case"silent":break;case"info":case"warn":console[e](t);break;case"error":default:throw new sh(s,r,t,n)}}function uh(t){return t&&t.errorCode&&t.type&&(t.detail||t.invalidFields)&&t.status}function dh(t){const e=new URLSearchParams;for(const n of Object.keys(t)){const s=t[n];ht(s)||(Array.isArray(s)?s.forEach(r=>e.append(n,r)):e.set(n,String(s)))}return e}const rl=t=>{let e,n,s;const r=()=>{if(Z(e))return;const l=e.abort.bind(e);e=void 0,l()},i=()=>(s=new Promise((l,u)=>{if(n.addEventListener("abort",function m(){n.removeEventListener("abort",m),u(t)}),n.aborted)throw t}),s.catch(st),s),o=()=>(Z(e)&&(e=new AbortController,n=e.signal,s=i()),a),a=J({abort:x(r),promise:rt(()=>s),reason:x(t),refresh:x(o),signal:rt(()=>n)});return o()},hh=()=>{let t,e,n;const s=()=>{const i=n??st,o=new Promise((a,l)=>{n=a,e=l});return i(t=o),r},r=J({promise:rt(()=>t),refresh:x(s),reject:x(i=>e(i)),resolve:x(i=>n(i))});return s()},gr=t=>{const e=rl(),n=hh();let s;return Object.defineProperties(function(...i){Z(s)?n.refresh():e.abort();const o=Ni.call(this,t,e.refresh().signal,...i);return(async()=>{let a=s===(s=o);try{const l=await o.finally(()=>{a=s===o,a&&(s=void 0)});a&&n.resolve(l)}catch(l){a&&n.reject(l)}})(),o},{abort:x(e.abort),promise:rt(()=>n.promise),refresh:x(()=>void n.refresh())})};class mh{constructor(e){j(this,"_endpoints",F);j(this,"_revokeEndpointsProxy",st);j(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(st)});j(this,"_refreshPromisor",gr((e,n)=>{const s=_r(n)?Ai([n,e]):e;return this._fetchSetupEndpoint(s)}));this._session=e;let n;this.refresh=s=>(this._refreshPromisor(s).catch(st),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:r})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(r)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(e){return this._session.http(null,{method:"POST",path:th,errorLevel:"fatal",loadingContext:this.loadingContext,signal:e})}_getEndpointsProxy(e){const n=new Set(Object.keys(e)),s=J();return Proxy.revocable(F,Li({get:(r,i,o)=>n.has(i)?(s[i]??(s[i]=(()=>{const{method:a="GET",url:l}=e[i];if(!Z(l||void 0))return(...u)=>{const m=this._getHttpOptions(a,l,...u);return this._session.http(this._beforeHttp,m)}})()),s[i]):Reflect.get(r,i,o)}))}_getHttpOptions(e,n,...s){const{loadingContext:r}=this,[i,o]=s,{path:a,query:l}=vs(o),u=l&&dh(l);if(Si(a))for(const m of Object.keys(a))n=n.replace(`{${m}}`,a[m]);return{loadingContext:r,...i,method:e,params:u,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=st,this._endpoints=F}}const fh=mh,il=Symbol("Error<SESSION_EXPIRED>"),_h=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),gh=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),Ih=Symbol("Error<SESSION_INVALID>"),ol=Symbol("Error<SESSION_REFRESH_ABORTED>"),Ei="_sessionExpired",al="_sessionReady",ph="_sessionRefreshed",yh="_sessionRefreshingEnd",Sh="_sessionRefreshingStart",cl="_session.deadline",ll="_session.ready",ul="_session.refreshingEnd",dl="_session.refreshingStart",Ah=async t=>{const{specification:e}=t.context,n=await Ni(async()=>{const s=e.autoRefresh;return X(s)?s.call(e,t.session):s}).catch(Zd);return jt(n)},Th=t=>{let e=t.context.emitter.on(Ei,()=>r(!1)),n,s=gr(async(a,l=!1)=>{n=a;const u=jt(l)||await Ah(t);n===a&&u&&t.pending&&!t.refreshing&&t.refresh(n).catch(st)}),r=(a=!1)=>{t.refreshing||s(a)},i=()=>{e(),s.abort(),s=n=e=void 0,r=i=st};return Object.defineProperties((a=!1)=>r(a),{destruct:rt(()=>i,!1)})},Ya=1e3,Nh=2147483647,Lh=(t,e=Ya,n=!1)=>{var m;let s=new AbortController,r=hn(0,~~e,Nh),i=jt(n);Number.isFinite(r)||(r=Ya);const o=((m=document.timeline)==null?void 0:m.currentTime)??performance.now(),a=()=>{s==null||s.abort(),s=void 0},l=d=>{!s||s.signal.aborted||(u(d),t(d))},u=d=>{let _=0;if(!i){const f=d-o,I=Math.round(f/r)*r;_=o+I+r-performance.now()}setTimeout(()=>requestAnimationFrame(l),_)};return u(o),i=!1,J({cancel:x(a),delay:x(e),signal:x(s.signal)})},Eh=t=>{const e={},n=Object.getOwnPropertyDescriptors(t);for(const s of Object.keys(t)){const{get:r,value:i}=n[s];e[s]=rt(r||(X(i)?i.bind(t):()=>i))}return J(e)},Mh=()=>{const t={idle:null,resume:null},e={};for(const n of Object.keys(t))e[n]={get:()=>t[n]??st,set:s=>{ht(s)?t[n]=null:X(s)&&s!==t[n]&&(t[n]=s)}};return J(e)},hl=Symbol("<<UNSUBSCRIBE>>"),gs=t=>t===hl,Ir=t=>{let e;const n=Eh(t),s=Mh(),r=new Map,i=new WeakMap,o=()=>Object.freeze({...n}),a=()=>r.size===0,l=m=>{if(a())return;if(gs(m)){const _=[];return r.forEach((f,I)=>{_.push(I);const g=i.get(I);for(;f--;)g==null||g()}),_.forEach(f=>f(m)),!0}const d=e;e=o();for(const _ of Object.keys(e))if(!yn(e[_],d[_]))return r.forEach((f,I)=>I(e)),!0;return!1},u=m=>{if(!X(m))return st;const d=Vd(m,i,()=>{let f=()=>{const I=r.get(m)||0;I===1?(f=void 0,r.delete(m),i.delete(m),a()&&(e=void 0,s.idle())):I>1&&r.set(m,I-1)};return()=>{f==null||f()}}),_=a();return r.set(m,(r.get(m)||0)+1),_&&(e=o(),s.resume()),m(e),d};return J({idle:rt(a),on:x(s),cancelSubscriptions:x(()=>l(hl)),requestNotification:x(()=>l()),snapshot:rt(()=>e??o()),subscribe:x(u)})},ml=(()=>{let t;const{cancelSubscriptions:e,requestNotification:n,subscribe:s,on:r}=Ir({now:()=>Date.now()});return r.resume=()=>{t=Lh(n,1e3,!1)},r.idle=()=>{t==null||t.cancel(),t=void 0},J({cancelSubscriptions:x(e),subscribe:x(s)})})(),fl=ml,Bo=()=>{const t=new class extends EventTarget{},e=(s,...r)=>{const[i]=r;r.length&&Z(i)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const o=new CustomEvent(s,J({bubbles:x(!1),cancelable:x(!1),detail:x(i??null)}));return t.dispatchEvent(o)},n=(s,r)=>{if(!X(r))return st;const i=o=>r.call(null,J({detail:x(o.detail),timeStamp:x(o.timeStamp),type:x(o.type)}));return t.addEventListener(s,i),()=>t.removeEventListener(s,i)};return J({emit:x(e),on:x(n)})},Ch=(t,e)=>{let n,s=1/0,r,i;const o=rl(),a=Bo(),l=()=>{n==null||n.removeEventListener("abort",l),s=1/0,i==null||i(),o.refresh(),a.emit(cl)},u=gr(async(d,_)=>{r=d;const f=await Ni(()=>{const g=e.deadline;return X(g)?g.call(e,_,d):g}).catch(st);if(r!==d)return;const I=(Array.isArray(f)?f:[f]).filter(g=>g||g===0);if(I.length>0){let g=!1,S=new Set;for(const p of I)if(_r(p)){if(g=p.aborted)break;S.add(p)}else if(s=Math.min(s,Qd(p)??1/0),g=s<=Date.now())break;g||(g=S.size<1&&!Number.isFinite(s)),g?n??(n=Jd()):(n=Ai([...S,o.signal]),n.addEventListener("abort",l),m()),I.length=0,S.clear()}else n=void 0}),m=()=>{if(!Number.isFinite(s))return;let d=fl.subscribe(_=>{if(gs(_))return l();_.now>=s&&o.abort()});i=()=>{d==null||d(),d=i=void 0}};return J({elapse:x(o.abort),elapsed:rt(()=>n&&n.aborted),on:x(a.on),refresh:x(u.bind(void 0)),signal:rt(()=>o.signal)})},Dh=(t,e)=>{let n=!1,s,r,i=!0,o;const a=Symbol("<next_session>"),l=Bo();function u(f){var I;try{(I=e.assert)==null||I.call(e,f)}catch{throw Ih}}function m(f){if(!X(f))throw _h}const d=gr((f,I)=>{if(!r)r=f;else return _(_r(I)?Ai([I,f]):f)}),_=async f=>{let I=a;try{n=!1,r=f,i&&await(s??(s=(async()=>{await Ti,i=!1,l.emit(dl)})())),m(e.onRefresh),I=await Ni(()=>e.onRefresh(o,f)).finally(()=>{if(f.aborted)throw ol})}finally{if(r===f)try{I!==a&&(u(I),o=I,l.emit(ll))}finally{s=void 0,i=!0,l.emit(ul)}}};return t.on(Ei,()=>n=!s),d(),J({context:x(J({emitter:x(t),specification:x(e)})),on:x(l.on),pending:rt(()=>n),promise:rt(()=>d.promise),refresh:x(d.bind(void 0)),refreshing:rt(()=>!!s),session:rt(()=>o),signal:rt(()=>r)})};class Oh{constructor(e){j(this,"_session");j(this,"_autofresh");j(this,"_deadline");j(this,"_refresher");j(this,"_eventEmitter",Bo());this._specification=e,this._deadline=Ch(this._eventEmitter,this._specification),this._refresher=Dh(this._eventEmitter,this._specification),this._autofresh=Th(this._refresher),this._deadline.on(cl,()=>this._eventEmitter.emit(Ei)),this._refresher.on(dl,()=>this._eventEmitter.emit(Sh)),this._refresher.on(ul,()=>this._eventEmitter.emit(yh)),this._refresher.on(ll,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(ph)),this._eventEmitter.emit(al)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(e){if(!X(e))throw gh}async _sessionHttp(e,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(st);const{signal:s}=this._deadline;return await(e==null?void 0:e(this._session,s,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,s,...n)}catch(s){if(s!==il)throw s;if(this._refresher.pending)continue;this._deadline.elapse()}}}const bh="v1",Ui=(t,e)=>{try{t==null||t(e)}catch{throw e}};async function vh(t,e){const{errorLevel:n,loadingContext:s="",path:r}=t,i=ch(t,e),o=new URL(`${Bd(s)}${bh}${zd(r)}`);return t.params&&t.params.forEach((a,l)=>{const u=decodeURIComponent(a);u&&o.searchParams.append(l,u)}),(async()=>{let a=!1;const l={level:n};try{const u=await fetch(o,i);if(u.ok)try{switch(oh(u)){case"application/json":return await u.json();default:const _=await u.blob(),f=ah(u);return{blob:_,filename:f}}}catch(d){throw a=!0,d}l.type=ih(u.status);const m=await u.json();l.message=t.errorMessage||`Service at ${o} not available`,l.errorCode=String(m.status),l.requestId=m==null?void 0:m.requestId,uh(m)&&(l.message=m.detail,l.errorCode=m.errorCode),Ui(t.errorHandler,l)}catch(u){if(a)throw Ui(t.errorHandler,u),u;Ui(t.errorHandler,u),l.message=t.errorMessage||`Call to ${o} failed. Error: ${u}`}lh(l)})()}class Rh{constructor(e){j(this,"assert",e=>{if(Si(e)){const n=Gt(e.id)?e.id.trim():void 0,s=Gt(e.token)?e.token.trim():void 0;if(n&&s)return}throw void 0});j(this,"deadline",e=>{const n=[];let s,r;try{({iat:s,exp:r}=JSON.parse(atob(e==null?void 0:e.token.split(".")[1]))),n.push(r)}catch{s=Date.now()}if(!Z(Ha)){const i=new Date(s);n.push(i.setMilliseconds(i.getMilliseconds()+Ha))}return n});j(this,"http",async(e,n,s,r)=>{const{headers:i,signal:o,...a}=s;try{const l={...a,headers:{...i,...e&&{Authorization:`Bearer ${e.token}`}},errorHandler:this._errorHandler,signal:_r(o)?Ai([n,o]):n};return await vh(l,r)}catch(l){throw(l==null?void 0:l.type)===sl.EXPIRED_TOKEN?il:l}});this.onSessionCreate=e,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:x(eh),onRefresh:x((n,s)=>this.onSessionCreate(s))})}_errorHandler(e){try{this.errorHandler&&this.errorHandler(e)}catch{}throw e}}const wh=Rh,As=Symbol("<<NO_ERR>>");function xh(t){/* istanbul ignore if -- @preserve */if(t===As)throw new TypeError("Illegal error")}const jh=()=>{let t=As;const e=()=>{t=As},n=s=>{xh(s),t=s};return J({error:rt(()=>t===As?void 0:t),hasError:rt(()=>t!==As),reset:x(e),set:x(n)})};class Ph{constructor(){j(this,"_canSkipSessionRefresh",!1);j(this,"_refreshPromisorSignal");j(this,"_errorContainer",jh());j(this,"_specification",new wh);j(this,"_sessionContext",new Oh(this._specification));j(this,"_setupContext",new fh(this._sessionContext));j(this,"_refreshPromisor",gr(async(e,n=!1)=>{let s=!this._refreshPromisorSignal,r=this._refreshPromisorSignal===(this._refreshPromisorSignal=e);const i=jt(n)&&this._canSkipSessionRefresh;s&&(s=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(i?this._setupContext:this._sessionContext).refresh(e).finally(()=>r=this._refreshPromisorSignal===e)}catch(o){if(!r)return;!e.aborted&&(i||o!==ol)&&this._errorContainer.set(o),s=!i}finally{(s||i&&r)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));j(this,"_watchlist",Ir({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,http:Fa(this._sessionContext.http.bind(this._sessionContext,null)),isExpired:()=>this._sessionContext.isExpired,refresh:Fa(this._refresh.bind(this)),refreshing:()=>!!this._refreshPromisorSignal}));this.destroy=()=>{this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()},this.subscribe=this._watchlist.subscribe,this._watchlist.on.resume=()=>{const e=[this._sessionContext.on(Ei,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(al,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,e.forEach(n=>n()),e.length=0},this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(e){this._setupContext.loadingContext=e}set errorHandler(e){this._specification.errorHandler=e}set onSessionCreate(e){this._specification.onSessionCreate!==e&&(this._specification.onSessionCreate=e,this._refreshPromisorSignal&&X(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(e=!1){this._refreshPromisor(e)}}const kh=JSON.parse('{"account":"Account","accountBalance":"Account Balance","additions":"Additions","adjustments":"Adjustments","amount":"Amount","apply":"Apply","balanceAccount":"Balance account","balanceAccountId":"Balance account ID","Booked":"Booked","button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})","capture":"Captured","category":"Category","chargeback":"Chargebacks","closeIconLabel":"Close","contactSupportForHelpAndShareErrorCode":"Contact support for help and share error code %{requestId}","correction":"Corrections","currency":"Currency","date":"Date","dateRange":"Date range","default":"Default","description":"Description","dismiss":"Dismiss","download":"Download","downloading":"Downloading","email":"Email","entityWasNotFound":"Entity was not found","entityWasNotFoundDetail":"Transaction not found for the specified Account Holder","error.pleaseTryAgainLater":"Please try again later.","error.somethingWentWrongWithDownload":"Something went wrong with the download","expandableCard.collapse":"Collapse","expandableCard.expand":"Expand","export":"Export","fee":"Fees","file":"File","filter.date.since":"Since %{date}","filter.date.until":"Until %{date}","filterBar":"Filter bar","filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status","from":"From","fundsCaptured":"Funds captured","grantIssued":"Grant issued","grantRepayment":"Grant repayments","hideContent":"Hide content","id":"ID","incompleteField":"Incomplete field","mobile":"Mobile","netPayout":"Net payout","nextPayouts":"Next Payouts","noData":"No data","noNegativeNumbersAllowed":"No negative numbers allowed","noPayoutsFound":"No payouts found","noReportsFound":"No reports found","noTransactionsFound":"No transactions found","other":"Other","paginatedNavigation":"Paginated navigation","pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing","paymentId":"Payment ID","paymentMethod":"Payment method","payoutDetails":"Payout Details","payoutsTitle":"Payouts","Pending":"Pending","pleaseReachOutToSupportForAssistance":"Please, reach out to support for assistance.","rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","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","reachOutToSupport":"Reach out to support","referenceID":"Reference ID","refresh":"Refresh","refund":"Refunds","remainingAmount":"Remaining amount","report":"Report","reportsError.tooManyDownloads":"We could not download all the files. Please try again later.","reportsNotice":"Reports are generated each day at midnight, UTC time.","reportsTitle":"Reports","reportType.payout":"Payout","reset":"Reset","Reversed":"Reversed","select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search","somethingWentWrong":"Something went wrong.","status":"Status","structuredList":"Structured list","subtractions":"Subtractions","tabs":"Tabs","theErrorCodeIs":"The error code is %{requestId}","thereAreNoResults":"There are no results","theRequestIsMissingRequiredFieldsOrContainsInvalidData":"The request is missing required fields or contains invalid data.","thereWasAnUnexpectedError":"There was an unexpected error","theSelectedBalanceAccountIsIncorrect":"The selected balance account is incorrect","timezone":"Timezone","to":"To","tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account","totalIncoming":"Total incoming","totalOutgoing":"Total outgoing","toValueShouldBeGreaterThanTheFromValue":"To value should be equal or greater than the From value","transactionDetails":"Transaction details","transactions":"Transactions","transactionsOverviewTitle":"Transactions overview","transactionType":"Transaction type","transfer":"Transfers","tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain":"Try a different search or reset your filters, and we’ll try again.","tryRefreshingThePageOrComeBackLater":"Try refreshing the page or come back later.","txAmount":"Amount","txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer","type":"Type","value":"Value","weCouldNotLoadThePayoutsOverview":"We could not load the payouts overview.","weCouldNotLoadTheReportsOverview":"We could not load the reports overview.","weCouldNotLoadTheTransactionsOverview":"We could not load the transactions overview.","weCouldNotLoadYourBalanceAccounts":"We couldn’t load your balance accounts.","weCouldNotLoadYourPayouts":"We could not load your payouts.","weCouldNotLoadYourReports":"We could not load your reports.","weCouldNotLoadYourTransactions":"We could not load your transactions."}'),xe=t=>t.then(({default:e})=>e),_l={da_DK:()=>xe(Promise.resolve().then(()=>require("../da-DK-a148e492.cjs")))},gl={de_DE:()=>xe(Promise.resolve().then(()=>require("../de-DE-a39a50e8.cjs")))},Il={es_ES:()=>xe(Promise.resolve().then(()=>require("../es-ES-153e5f15.cjs")))},pl={fr_FR:()=>xe(Promise.resolve().then(()=>require("../fr-FR-69b3df0d.cjs")))},yl={it_IT:()=>xe(Promise.resolve().then(()=>require("../it-IT-efca230f.cjs")))},Sl={nl_NL:()=>xe(Promise.resolve().then(()=>require("../nl-NL-ffbb8184.cjs")))},Al={no_NO:()=>xe(Promise.resolve().then(()=>require("../no-NO-eaf65f6f.cjs")))},Tl={pt_BR:()=>xe(Promise.resolve().then(()=>require("../pt-BR-590ccc53.cjs")))},Nl={sv_SE:()=>xe(Promise.resolve().then(()=>require("../sv-SE-18f4e86e.cjs")))},$r={en_US:kh},zo={..._l,...gl,...$r,...Il,...pl,...yl,...Sl,...Al,...Tl,...Nl},qe="en-US",Ll=zo.en_US,Fo={year:"numeric",month:"2-digit",day:"2-digit"},Wh=["constructor","i18n","watch","preferredTranslations"],El=t=>[...new Set(Object.keys(t).map(e=>e.replace(/_/g,"-")).sort())],Bh=El(zo),zh={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$"},Ml=zh,Fh={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},$h=Fh,Uh=t=>$h[t]||100,Hh=t=>!!Ml[t],Cl=t=>Hh(t)?Ml[t]:null,Yh=(t,e)=>{const n=Uh(e);return parseInt(String(t),10)/n},Gh=(t,e,n,s=!1,r={})=>{const i=t.toString(),o=Yh(i,n),a=e.replace("_","-"),l={style:"currency",currency:n,currencyDisplay:"symbol",...r};try{return s?Zh(a,l,o):o.toLocaleString(a,l)}catch{return i}},Zh=(t,e,n)=>Intl.NumberFormat(t,e).formatToParts(n).filter(s=>s.type!=="currency").reduce((s,r)=>s+r.value,"").trim(),Jh=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:Dl,BASE_LOCALE:Mi,SYSTEM_TIMEZONE:Cr,SYSTEM_TIMEZONE_FORMATTER:bn}=(()=>{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,l;try{l=new Intl.DateTimeFormat(t,o),a=l.resolvedOptions().timeZone}catch{a=void 0}return{BASE_FORMAT_OPTIONS:o,BASE_LOCALE:t,SYSTEM_TIMEZONE:a,SYSTEM_TIMEZONE_FORMATTER:l}})(),Vh=/\+(?=-)|([+-]00:00)/g,Qh=new RegExp("(?<=^\\D?)(\\d)$"),Xh=([t,e])=>(Math.abs(t*60)+e)*(t<0?-1:1),Kh=t=>Object.freeze([Math.floor(t/60),fr(t,60)]),qh=t=>parseInt(t,10)||0,tm=t=>`GMT+${Kh(t).map(s=>`${s}`.replace(Qh,"0$1")).join(":")}`.replace(Vh,""),oo=t=>{var n;const e=((n=t==null?void 0:t.match(Jh))==null?void 0:n[0].split(":",2).map(qh))??Lt;return Xh(e.concat(0,0).slice(0,2))},em=(t,e=bn)=>{const n=oo(bn==null?void 0:bn.format(t));return oo(e==null?void 0:e.format(t))-n},Ol=(t,e,n=1)=>{const{offset:s,timestamp:r}=t(e);return r-s*n*6e4},Ie=(t,e)=>Ol(t,e,1),De=(t,e)=>Ol(t,e,-1),nm=(()=>{let t,e;Z(Cr)||(t=function(){return this.TIMEZONE},e=function(s){if(ht(s))this.TIMEZONE=Cr,this.formatter=bn;else try{const r=new Intl.DateTimeFormat(Mi,{...Dl,timeZone:s}),i=r.resolvedOptions().timeZone;if(this.TIMEZONE===i)return;this.TIMEZONE=i,this.formatter=r}catch{}});function n(...s){if(s.length===0)return n.call(this,Date.now());const r=s[0],i=new Date(r).getTime(),o=this.formatter??bn;return Object.freeze({formatted:o==null?void 0:o.format(i),offset:em(i,o),timestamp:i})}return()=>{const s={TIMEZONE:Cr},r=e==null?void 0:e.bind(s),i=J({current:{get:t==null?void 0:t.bind(s),set:r},system:{value:Cr}});return Object.defineProperties(n.bind(s),{tz:{get:()=>i,set:r}})}})(),pr=nm,sm={values:F,count:0},rm=/^[a-z]{2}-[A-Z]{2}$/,Ur=t=>t.substring(0,2).toLowerCase();function im(t,e){if(!t)return null;const n=Ur(t);return e.find(s=>Ur(s)===n)||null}function $o(t){const e=t.replace("_","-");if(rm.test(e))return e;const[n,s]=e.split("-");if(!n||!s)return null;const r=`${n.toLowerCase()}-${s.toUpperCase()}`;return r.length===5?r:null}function Uo(t,e){const n=t.trim();if(!n||n.length<1||n.length>5)return qe;const s=$o(n);return s&&e.includes(s)?s:im(s??n,e)}function om(t=F,e){return t===F?t:Object.keys(t).reduce((n,s)=>{const r=$o(s)||Uo(s,e);return r&&t[s]&&(n[r]=t[s]),n},{})}const Hi=(t,e)=>t.replace(/%{(\w+)}/g,(n,s)=>(e==null?void 0:e[s])||""),Ga=(t,e,n=sm)=>{const s=n.count??0,r=`${e}__${s}`;if(le(t,r)&&t[r])return Hi(t[r],n.values);const i=`${e}__plural`;return le(t,i)&&s>1&&t[i]?Hi(t[i],n.values):le(t,e)&&t[e]?Hi(t[e],n.values):null},am=async(t,e=F,n=F)=>{const s=Uo(t,Object.keys(e))||qe,r=e[s];return{...Ll,...await(X(r)?r():r)??F,...vs(n==null?void 0:n[t])}};function cm(){let t=this.locale,e=t,n=[...this.supportedLocales];return J({load:{value:s=>am(t,this.preferredTranslations,s)},locale:{get:()=>t,set:s=>{e=s,t=$o(s)||Uo(s,n)||qe}},supportedLocales:{get:()=>n,set(s){n=s,this.locale=e}}})}function lm(){var e;const t={};for(const[n,s]of Object.entries(Object.getOwnPropertyDescriptors(Ci.prototype)))Wh.includes(n)||(X(s.get)?t[n]={get:s.get.bind(this),...n==="timezone"&&{set:(e=s.set)==null?void 0:e.bind(this)}}:X(s.value)?t[n]={value:s.value.bind(this)}:t[n]={get:()=>this[n]});return t}var me,Ws,zn,Bs,Fn,$n,Ae,zs,tn,en,Un,Hn,Fs,ao;class Ci{constructor(e=qe,n){T(this,Fs);T(this,me,qe);T(this,Ws,Ur(h(this,me)));T(this,zn,[qe]);T(this,Bs,h(this,zn));T(this,Fn,void 0);T(this,$n,Ll);T(this,Ae,cm.call(this));T(this,zs,Ti);T(this,tn,void 0);T(this,en,void 0);T(this,Un,Ir({timestamp:()=>performance.now()}));T(this,Hn,pr());j(this,"watch",h(this,Un).subscribe.bind(void 0));j(this,"i18n",J(lm.call(this)));j(this,"preferredTranslations");this.watch(st),this.preferredTranslations=Object.freeze((n==null?void 0:n.reduce((s,r)=>({...s,...r}),$r))??{...$r}),A(this,zn,El(this.preferredTranslations)),this.locale=e}get customTranslations(){return h(this,Fn)??{}}set customTranslations(e){let n,s=[...h(this,zn)];if(!ht(e)){n=om(e,Bh);const r=Object.keys(n);s=[...s,...r].sort().filter((i,o,a)=>a.indexOf(i)===o)}h(this,Ae).supportedLocales=s,w(this,Fs,ao).call(this,n)}get languageCode(){return h(this,Ws)}get lastRefreshTimestamp(){return h(this,Un).snapshot.timestamp}get locale(){return h(this,me)}set locale(e){if(ht(e))this.locale=qe;else{if(h(this,Ae).locale=e,h(this,me)===h(this,Ae).locale)return;w(this,Fs,ao).call(this,h(this,Fn))}}get ready(){return h(this,zs)}get supportedLocales(){return h(this,Bs)}get timezone(){return h(this,Hn).tz.current}set timezone(e){h(this,Hn).tz=e}get(e,n){const s=Ga(h(this,$n),e,n);return Fr(s)?e:s}has(e,n){return!!Ga(h(this,$n),e,n)}amount(e,n,s){const{hideCurrency:r,...i}=s||{},o=Gh(e,h(this,me),n,r,{...i,currencyDisplay:"symbol",signDisplay:"never"});return e<0?`- ${o}`:o}date(e,n={}){const s={...Fo,timeZone:h(this,Hn).tz.current,...n};return new Date(e).toLocaleDateString(h(this,me),s)}fullDate(e){return this.date(e,{month:"short",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}me=new WeakMap,Ws=new WeakMap,zn=new WeakMap,Bs=new WeakMap,Fn=new WeakMap,$n=new WeakMap,Ae=new WeakMap,zs=new WeakMap,tn=new WeakMap,en=new WeakMap,Un=new WeakMap,Hn=new WeakMap,Fs=new WeakSet,ao=function(e){Z(h(this,en))&&A(this,zs,new Promise(r=>{A(this,en,()=>{r(h(this,tn)),A(this,tn,A(this,en,void 0))})}));const n=()=>{var r;h(this,tn)===s&&((r=h(this,en))==null||r.call(this))},s=A(this,tn,(async()=>{A(this,$n,await h(this,Ae).load(e)),A(this,me,h(this,Ae).locale),A(this,Bs,Object.freeze(h(this,Ae).supportedLocales)),A(this,Fn,e),A(this,Ws,Ur(h(this,me))),h(this,Un).requestNotification()})());s.then(n).catch(r=>{n(),console.error(r)})};class bl{constructor(e){j(this,"components",[]);j(this,"options");j(this,"localization");j(this,"loadingContext");j(this,"session",new Ph);j(this,"onError");j(this,"update",async(e=F)=>(this.setOptions(e),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));j(this,"remove",e=>(this.components=this.components.filter(n=>n._id!==e._id),e.unmount(),this));j(this,"registerComponent",e=>{e.props.core===this&&this.components.push(e)});j(this,"setOptions",e=>{var n,s;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.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:so,...e},this.localization=new Ci(e.locale,e.availableTranslations),this.loadingContext=Fd(this.options.environment),this.setOptions(e)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(e){return{...e}}}j(bl,"version","1.1.0");const vl=bl;var yr,K,Rl,wl,Xe,Za,xl,co,Ho,lo,uo,jl,Rs={},Pl=[],um=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Di=Array.isArray;function Oe(t,e){for(var n in e)t[n]=e[n];return t}function kl(t){var e=t.parentNode;e&&e.removeChild(t)}function hs(t,e,n){var s,r,i,o={};for(i in e)i=="key"?s=e[i]:i=="ref"?r=e[i]:o[i]=e[i];if(arguments.length>2&&(o.children=arguments.length>3?yr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)o[i]===void 0&&(o[i]=t.defaultProps[i]);return Ms(t,o,s,r,null)}function Ms(t,e,n,s,r){var i={type:t,props:e,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Rl,__i:-1,__u:0};return r==null&&K.vnode!=null&&K.vnode(i),i}function q(t){return t.children}function ve(t,e){this.props=t,this.context=e}function _n(t,e){if(e==null)return t.__?_n(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?_n(t):null}function Wl(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 Wl(t)}}function ho(t){(!t.__d&&(t.__d=!0)&&Xe.push(t)&&!Hr.__r++||Za!==K.debounceRendering)&&((Za=K.debounceRendering)||xl)(Hr)}function Hr(){var t,e,n,s,r,i,o,a;for(Xe.sort(co);t=Xe.shift();)t.__d&&(e=Xe.length,s=void 0,i=(r=(n=t).__v).__e,o=[],a=[],n.__P&&((s=Oe({},r)).__v=r.__v+1,K.vnode&&K.vnode(s),Yo(n.__P,s,r,n.__n,n.__P.ownerSVGElement!==void 0,32&r.__u?[i]:null,o,i??_n(r),!!(32&r.__u),a),s.__v=r.__v,s.__.__k[s.__i]=s,Fl(o,s,a),s.__e!=i&&Wl(s)),Xe.length>e&&Xe.sort(co));Hr.__r=0}function Bl(t,e,n,s,r,i,o,a,l,u,m){var d,_,f,I,g,S=s&&s.__k||Pl,p=e.length;for(n.__d=l,dm(n,e,S),l=n.__d,d=0;d<p;d++)(f=n.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(_=f.__i===-1?Rs:S[f.__i]||Rs,f.__i=d,Yo(t,f,_,r,i,o,a,l,u,m),I=f.__e,f.ref&&_.ref!=f.ref&&(_.ref&&Go(_.ref,null,f),m.push(f.ref,f.__c||I,f)),g==null&&I!=null&&(g=I),65536&f.__u||_.__k===f.__k?(l&&!l.isConnected&&(l=_n(_)),l=zl(f,l,t)):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:I&&(l=I.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=g}function dm(t,e,n){var s,r,i,o,a,l=e.length,u=n.length,m=u,d=0;for(t.__k=[],s=0;s<l;s++)o=s+d,(r=t.__k[s]=(r=e[s])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?Ms(null,r,null,null,null):Di(r)?Ms(q,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?Ms(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=t,r.__b=t.__b+1,a=hm(r,n,o,m),r.__i=a,i=null,a!==-1&&(m--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&d--,typeof r.type!="function"&&(r.__u|=65536)):a!==o&&(a===o+1?d++:a>o?m>l-o?d+=a-o:d--:a<o?a==o-1&&(d=a-o):d=0,a!==s+d&&(r.__u|=65536))):(i=n[o])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=_n(i)),mo(i,i,!1),n[o]=null,m--);if(m)for(s=0;s<u;s++)(i=n[s])!=null&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=_n(i)),mo(i,i))}function zl(t,e,n){var s,r;if(typeof t.type=="function"){for(s=t.__k,r=0;s&&r<s.length;r++)s[r]&&(s[r].__=t,e=zl(s[r],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function Ge(t,e){return e=e||[],t==null||typeof t=="boolean"||(Di(t)?t.some(function(n){Ge(n,e)}):e.push(t)),e}function hm(t,e,n,s){var r=t.key,i=t.type,o=n-1,a=n+1,l=e[n];if(l===null||l&&r==l.key&&i===l.type&&!(131072&l.__u))return n;if(s>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(131072&l.__u)&&r==l.key&&i===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&r==l.key&&i===l.type)return a;a++}}return-1}function Ja(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||um.test(e)?n:n+"px"}function Dr(t,e,n,s,r){var i;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||Ja(t.style,e,"");if(n)for(e in n)s&&n[e]===s[e]||Ja(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?s?n.u=s.u:(n.u=Ho,t.addEventListener(e,i?uo:lo,i)):t.removeEventListener(e,i?uo:lo,i);else{if(r)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 Va(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Ho++;else if(e.t<n.u)return;return n(K.event?K.event(e):e)}}}function Yo(t,e,n,s,r,i,o,a,l,u){var m,d,_,f,I,g,S,p,D,E,O,P,M,R,C,k=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=e.__e=n.__e]),(m=K.__b)&&m(e);t:if(typeof k=="function")try{if(p=e.props,D=(m=k.contextType)&&s[m.__c],E=m?D?D.props.value:m.__:s,n.__c?S=(d=e.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?e.__c=d=new k(p,E):(e.__c=d=new ve(p,E),d.constructor=k,d.render=fm),D&&D.sub(d),d.props=p,d.state||(d.state={}),d.context=E,d.__n=s,_=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Oe({},d.__s)),Oe(d.__s,k.getDerivedStateFromProps(p,d.__s))),f=d.props,I=d.state,d.__v=e,_)k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(k.getDerivedStateFromProps==null&&p!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(p,E),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(p,d.__s,E)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=p,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(v){v&&(v.__=e)}),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&o.push(d);break t}d.componentWillUpdate!=null&&d.componentWillUpdate(p,d.__s,E),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,I,g)})}if(d.context=E,d.props=p,d.__P=t,d.__e=!1,P=K.__r,M=0,"prototype"in k&&k.prototype.render){for(d.state=d.__s,d.__d=!1,P&&P(e),m=d.render(d.props,d.state,d.context),R=0;R<d._sb.length;R++)d.__h.push(d._sb[R]);d._sb=[]}else do d.__d=!1,P&&P(e),m=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++M<25);d.state=d.__s,d.getChildContext!=null&&(s=Oe(Oe({},s),d.getChildContext())),_||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(f,I)),Bl(t,Di(C=m!=null&&m.type===q&&m.key==null?m.props.children:m)?C:[C],e,n,s,r,i,o,a,l,u),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),S&&(d.__E=d.__=null)}catch(v){e.__v=null,l||i!=null?(e.__e=a,e.__u|=l?160:32,i[i.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),K.__e(v,e,n)}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=mm(n.__e,e,n,s,r,i,o,l,u);(m=K.diffed)&&m(e)}function Fl(t,e,n){e.__d=void 0;for(var s=0;s<n.length;s++)Go(n[s],n[++s],n[++s]);K.__c&&K.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(i){i.call(r)})}catch(i){K.__e(i,r.__v)}})}function mm(t,e,n,s,r,i,o,a,l){var u,m,d,_,f,I,g,S=n.props,p=e.props,D=e.type;if(D==="svg"&&(r=!0),i!=null){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!D&&(D?f.localName===D:f.nodeType===3)){t=f,i[u]=null;break}}if(t==null){if(D===null)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",D):document.createElement(D,p.is&&p),i=null,a=!1}if(D===null)S===p||a&&t.data===p||(t.data=p);else{if(i=i&&yr.call(t.childNodes),S=n.props||Rs,!a&&i!=null)for(S={},u=0;u<t.attributes.length;u++)S[(f=t.attributes[u]).name]=f.value;for(u in S)f=S[u],u=="children"||(u=="dangerouslySetInnerHTML"?d=f:u==="key"||u in p||Dr(t,u,null,f,r));for(u in p)f=p[u],u=="children"?_=f:u=="dangerouslySetInnerHTML"?m=f:u=="value"?I=f:u=="checked"?g=f:u==="key"||a&&typeof f!="function"||S[u]===f||Dr(t,u,f,S[u],r);if(m)a||d&&(m.__html===d.__html||m.__html===t.innerHTML)||(t.innerHTML=m.__html),e.__k=[];else if(d&&(t.innerHTML=""),Bl(t,Di(_)?_:[_],e,n,s,r&&D!=="foreignObject",i,o,i?i[0]:n.__k&&_n(n,0),a,l),i!=null)for(u=i.length;u--;)i[u]!=null&&kl(i[u]);a||(u="value",I!==void 0&&(I!==t[u]||D==="progress"&&!I||D==="option"&&I!==S[u])&&Dr(t,u,I,S[u],!1),u="checked",g!==void 0&&g!==t[u]&&Dr(t,u,g,S[u],!1))}return t}function Go(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(s){K.__e(s,n)}}function mo(t,e,n){var s,r;if(K.unmount&&K.unmount(t),(s=t.ref)&&(s.current&&s.current!==t.__e||Go(s,null,e)),(s=t.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(i){K.__e(i,e)}s.base=s.__P=null}if(s=t.__k)for(r=0;r<s.length;r++)s[r]&&mo(s[r],e,n||typeof t.type!="function");n||t.__e==null||kl(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function fm(t,e,n){return this.constructor(t,n)}function vn(t,e,n){var s,r,i,o;K.__&&K.__(t,e),r=(s=typeof n=="function")?null:n&&n.__k||e.__k,i=[],o=[],Yo(e,t=(!s&&n||e).__k=hs(q,null,[t]),r||Rs,Rs,e.ownerSVGElement!==void 0,!s&&n?[n]:r?null:e.firstChild?yr.call(e.childNodes):null,i,!s&&n?n:r?r.__e:e.firstChild,s,o),Fl(i,t,o)}function $l(t,e,n){var s,r,i,o,a=Oe({},t.props);for(i in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)i=="key"?s=e[i]:i=="ref"?r=e[i]:a[i]=e[i]===void 0&&o!==void 0?o[i]:e[i];return arguments.length>2&&(a.children=arguments.length>3?yr.call(arguments,2):n),Ms(t.type,a,s||t.key,r||t.ref,null)}function Zo(t,e){var n={__c:e="__cC"+jl++,__:t,Consumer:function(s,r){return s.children(r)},Provider:function(s){var r,i;return this.getChildContext||(r=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&r.some(function(a){a.__e=!0,ho(a)})},this.sub=function(o){r.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){r.splice(r.indexOf(o),1),a&&a.call(o)}}),s.children}};return n.Provider.__=n.Consumer.contextType=n}yr=Pl.slice,K={__e:function(t,e,n,s){for(var r,i,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(t)),o=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,s||{}),o=r.__d),o)return r.__E=r}catch(a){t=a}throw t}},Rl=0,wl=function(t){return t!=null&&t.constructor==null},ve.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Oe({},this.state),typeof t=="function"&&(t=t(Oe({},n),this.props)),t&&Oe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),ho(this))},ve.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),ho(this))},ve.prototype.render=q,Xe=[],xl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,co=function(t,e){return t.__v.__b-e.__v.__b},Hr.__r=0,Ho=0,lo=Va(!1),uo=Va(!0),jl=0;var gn,lt,Yi,Qa,ms=0,Ul=[],vr=[],It=K,Xa=It.__b,Ka=It.__r,qa=It.diffed,tc=It.__c,ec=It.unmount,nc=It.__;function Sr(t,e){It.__h&&It.__h(lt,t,ms||e),ms=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:vr}),n.__[t]}function $(t){return ms=1,Oi(Yl,t)}function Oi(t,e,n){var s=Sr(gn++,2);if(s.t=t,!s.__c&&(s.__=[n?n(e):Yl(void 0,e),function(a){var l=s.__N?s.__N[0]:s.__[0],u=s.t(l,a);l!==u&&(s.__N=[u,s.__[1]],s.__c.setState({}))}],s.__c=lt,!lt.u)){var r=function(a,l,u){if(!s.__c.__H)return!0;var m=s.__c.__H.__.filter(function(_){return!!_.__c});if(m.every(function(_){return!_.__N}))return!i||i.call(this,a,l,u);var d=!1;return m.forEach(function(_){if(_.__N){var f=_.__[0];_.__=_.__N,_.__N=void 0,f!==_.__[0]&&(d=!0)}}),!(!d&&s.__c.props===a)&&(!i||i.call(this,a,l,u))};lt.u=!0;var i=lt.shouldComponentUpdate,o=lt.componentWillUpdate;lt.componentWillUpdate=function(a,l,u){if(this.__e){var m=i;i=void 0,r(a,l,u),i=m}o&&o.call(this,a,l,u)},lt.shouldComponentUpdate=r}return s.__N||s.__}function B(t,e){var n=Sr(gn++,3);!It.__s&&Vo(n.__H,e)&&(n.__=t,n.i=e,lt.__H.__h.push(n))}function Hl(t,e){var n=Sr(gn++,4);!It.__s&&Vo(n.__H,e)&&(n.__=t,n.i=e,lt.__h.push(n))}function W(t){return ms=5,y(function(){return{current:t}},[])}function _m(t,e,n){ms=6,Hl(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 y(t,e){var n=Sr(gn++,7);return Vo(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function N(t,e){return ms=8,y(function(){return t},e)}function Jo(t){var e=lt.context[t.__c],n=Sr(gn++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(lt)),e.props.value):t.__}function gm(){for(var t;t=Ul.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Rr),t.__H.__h.forEach(fo),t.__H.__h=[]}catch(e){t.__H.__h=[],It.__e(e,t.__v)}}It.__b=function(t){lt=null,Xa&&Xa(t)},It.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),nc&&nc(t,e)},It.__r=function(t){Ka&&Ka(t),gn=0;var e=(lt=t.__c).__H;e&&(Yi===lt?(e.__h=[],lt.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=vr,n.__N=n.i=void 0})):(e.__h.forEach(Rr),e.__h.forEach(fo),e.__h=[],gn=0)),Yi=lt},It.diffed=function(t){qa&&qa(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ul.push(e)!==1&&Qa===It.requestAnimationFrame||((Qa=It.requestAnimationFrame)||Im)(gm)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==vr&&(n.__=n.__V),n.i=void 0,n.__V=vr})),Yi=lt=null},It.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Rr),n.__h=n.__h.filter(function(s){return!s.__||fo(s)})}catch(s){e.some(function(r){r.__h&&(r.__h=[])}),e=[],It.__e(s,n.__v)}}),tc&&tc(t,e)},It.unmount=function(t){ec&&ec(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(s){try{Rr(s)}catch(r){e=r}}),n.__H=void 0,e&&It.__e(e,n.__v))};var sc=typeof requestAnimationFrame=="function";function Im(t){var e,n=function(){clearTimeout(s),sc&&cancelAnimationFrame(e),setTimeout(t)},s=setTimeout(n,100);sc&&(e=requestAnimationFrame(n))}function Rr(t){var e=lt,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),lt=e}function fo(t){var e=lt;t.__c=t.__(),lt=e}function Vo(t,e){return!t||t.length!==e.length||e.some(function(n,s){return n!==t[s]})}function Yl(t,e){return typeof e=="function"?e(t):e}var pm=0;function c(t,e,n,s,r,i){var o,a,l={};for(a in e)a=="ref"?o=e[a]:l[a]=e[a];var u={type:t,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--pm,__i:-1,__u:0,__source:r,__self:i};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return K.vnode&&K.vnode(u),u}const Gl=Zo({endpoints:F,hasError:!1,http:$d,isExpired:void 0,refresh:st,refreshing:!1}),ym=({children:t,session:e})=>{const[,n]=$(0),[s,r]=$(0);return B(()=>e.subscribe(i=>{(gs(i)?r:n)(a=>a+1)}),[s,e]),c(Gl.Provider,{value:e.context,children:Ge(t)})},ue=()=>Jo(Gl);function Ar({fetchOptions:t={keepPrevData:!0},queryFn:e,params:n}){W(new Map);const s=W(!1),r={error:void 0,data:void 0,isFetching:Ye(t.enabled)},i=(u,m)=>{switch(m.type){case"loading":return{...r,isFetching:!0,data:t.keepPrevData?u.data:void 0};case"fetched":return{...r,data:m.payload,isFetching:!1};case"error":return{...r,error:m.payload,isFetching:!1};default:return u}},[o,a]=Oi(i,r),l=N(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,Ye(t.enabled)&&l(),()=>{s.current=!0}),[t.enabled,l]),o}const Sm=(t,e)=>{const{getBalanceAccounts:n}=ue().endpoints,{data:s,isFetching:r,error:i}=Ar(y(()=>({fetchOptions:{enabled:!!n&&(e??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(F)}),[n])),o=y(()=>s==null?void 0:s.data.filter(l=>t?l.id===t:!0),[s==null?void 0:s.data,t]),a=y(()=>!!t&&!!(s!=null&&s.data.length)&&(o==null?void 0:o.length)===0,[o==null?void 0:o.length,s==null?void 0:s.data.length,t]);return{balanceAccounts:o,isBalanceAccountIdWrong:a,isFetching:r,error:i}},bi=Sm,Am="adyen-pe-data-overview-container--with-error",zt="adyen-pe-typography";var b=(t=>(t.CAPTION="caption",t.BODY="body",t.SUBTITLE="subtitle",t.TITLE="title",t))(b||{}),Se=(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))(Se||{}),pe=(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))(pe||{});function Zl(t,e){for(var n in e)t[n]=e[n];return t}function _o(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 rc(t,e){this.props=t,this.context=e}function Et(t,e){function n(r){var i=this.props.ref,o=i==r.ref;return!o&&i&&(i.call?i(null):i.current=null),e?!e(this.props,r)||!o:_o(this.props,r)}function s(r){return this.shouldComponentUpdate=n,hs(t,r)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s.__f=!0,s}(rc.prototype=new ve).isPureReactComponent=!0,rc.prototype.shouldComponentUpdate=function(t,e){return _o(this.props,t)||_o(this.state,e)};var ic=K.__b;K.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ic&&ic(t)};var Tm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Is(t){function e(n){var s=Zl({},n);return delete s.ref,t(s,n.ref||null)}return e.$$typeof=Tm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Nm=K.__e;K.__e=function(t,e,n,s){if(t.then){for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}Nm(t,e,n,s)};var oc=K.unmount;function Jl(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=Zl({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(s){return Jl(s,e,n)})),t}function Vl(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(s){return Vl(s,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Gi(){this.__u=0,this.t=null,this.__b=null}function Ql(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Or(){this.u=null,this.o=null}K.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),oc&&oc(t)},(Gi.prototype=new ve).__c=function(t,e){var n=e.__c,s=this;s.t==null&&(s.t=[]),s.t.push(n);var r=Ql(s.__v),i=!1,o=function(){i||(i=!0,n.__R=null,r?r(a):a())};n.__R=o;var a=function(){if(!--s.__u){if(s.state.__a){var l=s.state.__a;s.__v.__k[0]=Vl(l,l.__c.__P,l.__c.__O)}var u;for(s.setState({__a:s.__b=null});u=s.t.pop();)u.forceUpdate()}};s.__u++||32&e.__u||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(o,o)},Gi.prototype.componentWillUnmount=function(){this.t=[]},Gi.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]=Jl(this.__b,n,s.__O=s.__P)}this.__b=null}var r=e.__a&&hs(q,null,t.fallback);return r&&(r.__u&=-33),[hs(q,null,e.__a?null:t.children),r]};var ac=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 Lm(t){return this.getChildContext=function(){return t.context},t.children}function Em(t){var e=this,n=t.i;e.componentWillUnmount=function(){vn(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,r){this.childNodes.push(s),e.i.appendChild(s)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),e.i.removeChild(s)}}),vn(hs(Lm,{context:e.context},t.__v),e.l)}function Xl(t,e){var n=hs(Em,{__v:t,i:e});return n.containerInfo=e,n}(Or.prototype=new ve).__a=function(t){var e=this,n=Ql(e.__v),s=e.o.get(t);return s[0]++,function(r){var i=function(){e.props.revealOrder?(s.push(r),ac(e,t,s)):r()};n?n(i):i()}},Or.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ge(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},Or.prototype.componentDidUpdate=Or.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ac(t,n,e)})};var Mm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Cm=/^(?: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]/,Dm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Om=/[A-Z0-9]/g,bm=typeof document<"u",vm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};ve.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ve.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var cc=K.event;function Rm(){}function wm(){return this.cancelBubble}function xm(){return this.defaultPrevented}K.event=function(t){return cc&&(t=cc(t)),t.persist=Rm,t.isPropagationStopped=wm,t.isDefaultPrevented=xm,t.nativeEvent=t};var jm={enumerable:!1,configurable:!0,get:function(){return this.class}},lc=K.vnode;K.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,s=e.type,r={};for(var i in n){var o=n[i];if(!(i==="value"&&"defaultValue"in n&&o==null||bm&&i==="children"&&s==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&o===!0?o="":a==="translate"&&o==="no"?o=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||s!=="input"&&s!=="textarea"||vm(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Dm.test(i)?i=a:s.indexOf("-")===-1&&Cm.test(i)?i=i.replace(Om,"-$&").toLowerCase():o===null&&(o=void 0):a=i="oninput",a==="oninput"&&r[i=a]&&(i="oninputCapture"),r[i]=o}}s=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ge(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),s=="select"&&r.defaultValue!=null&&(r.value=Ge(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",jm)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(t),t.$$typeof=Mm,lc&&lc(t)};var uc=K.__r;K.__r=function(t){uc&&uc(t),t.__c};var dc=K.diffed;K.diffed=function(t){dc&&dc(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 Pm({el:t,className:e,stronger:n,strongest:s,variant:r,medium:i,large:o,wide:a,children:l}){const u=t||"p",m=y(()=>({[`${zt}--${b.CAPTION}`]:r===b.CAPTION,[`${zt}--${b.CAPTION}-${Se.WIDE}`]:r===b.CAPTION&&a,[`${zt}--${b.CAPTION}-${Se.STRONGER}`]:r===b.CAPTION&&n,[`${zt}--${b.BODY}`]:r===b.BODY,[`${zt}--${b.BODY}-${Se.WIDE}`]:r===b.BODY&&a,[`${zt}--${b.BODY}-${Se.STRONGER}`]:r===b.BODY&&n,[`${zt}--${b.BODY}-${Se.STRONGEST}`]:r===b.BODY&&s,[`${zt}--${b.SUBTITLE}`]:r===b.SUBTITLE,[`${zt}--${b.SUBTITLE}-${Se.STRONGER}`]:r===b.SUBTITLE&&n,[`${zt}--${b.TITLE}`]:r===b.TITLE&&!i&&!o,[`${zt}--${b.TITLE}-${Se.MEDIUM}`]:r===b.TITLE&&i,[`${zt}--${b.TITLE}-${Se.LARGE}`]:r===b.TITLE&&o}),[r,a,n,i,o,s]);return c(u,{className:z([`${zt}`,m,e]),children:l})}const U=Et(Pm),Kl=Zo({i18n:new Ci().i18n,loadingContext:"",commonProps:{},updateCore:st}),km=()=>Jo(Kl),V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W1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",Zt=t=>Is(t),Yr=(()=>{const t=new Set,e=(s,r,i,o)=>{let a=o==null?void 0:o[i];return a=X(a)?a:yi,!yn(a(s[i]),a(r[i]))};return Object.defineProperty(s=>(r,i)=>{try{for(const o in r)if(t.add(o),e(r,i,o,s))return!1;for(const o in i)if(!t.has(o)&&(t.add(o),e(r,i,o,s)))return!1;return!0}finally{t.clear()}},"exclude",{value:st})})(),hc=/^\s+|\s+(?=\s|$)/g,kn=(t,e)=>(e?typeof e=="string"?e:(e==null?void 0:e.value)??"":"").replace(hc,"")||t.replace(hc,"")||void 0,Gr=(t,e,n)=>z(kn("",n),kn(kn("",e)||"",t)),Qo=(t,e=[],n=[])=>z([...n,...e==null?void 0:e.map(s=>t?`${t}--${s}`:s)]),Xo=t=>En(t,(t==null?void 0:t.value)??t),Bm=(t,e,n,s,r)=>{const i=N(a=>{a.preventDefault(),s||r==null||r(a)},[s,r]);return{classes:y(()=>Qo(n,e,[n,t]),[e,t]),click:i}},Ko=Bm,we="adyen-pe-button",go=`${we}-actions`,zm=`${we}--icon`,Fm=`${we}--icon-content`,$m=`${go}__container-wrapper`,Um=`${we}__label`,Hm=`${we}__icon-right`,Ym=`${we}__icon-left`;var Nt=(t=>(t.PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t.LINK="link",t))(Nt||{});function Gm({variant:t=Nt.PRIMARY,disabled:e=!1,onClick:n,classNameModifiers:s=[],iconLeft:r,iconRight:i,type:o="button",children:a,className:l,iconButton:u=!1,...m},d){const _=y(()=>kn("",l)||"",[l]),f=y(()=>Xo(e),[e]),{classes:I,click:g}=Ko(_,[...s,t],we,f,n);return c("button",{className:u?`${zm} ${I}`:I,type:o,disabled:e,onClick:g,ref:d,...m,children:u?c("div",{className:`${Fm}`,children:a}):c(q,{children:[r&&c("span",{className:Ym,children:r}),c(U,{className:Um,el:pe.SPAN,variant:b.BODY,stronger:!0,children:a}),i&&c("span",{className:Hm,children:i})]})})}const Pt=Zt(Gm),mc={md:680,lg:1024},Wn=({title:t,message:e,imageDesktop:n,imageMobile:s,withImage:r,centered:i,refreshComponent:o,onContactSupport:a,translationValues:l})=>{const{i18n:u,updateCore:m}=V(),d=N(_=>Array.isArray(_)?_.map((f,I)=>I===0?c(q,{children:[u.get(f),l&&l[f]&&c(q,{children:l[f]})]}):c(q,{children:[c("br",{}),u.get(f),l&&l[f]&&c(q,{children:l[f]})]})):u.get(_),[u,l]);return c("div",{className:`adyen-pe-error-message-display ${i?"adyen-pe-error-message-display--centered":""}`,children:[(n||s||r)&&c("div",{className:"adyen-pe-error-message-display__illustration",children:c("picture",{children:[c("source",{type:"image/svg+xml",media:`(min-width: ${mc.md}px)`,srcSet:n}),c("source",{type:"image/svg+xml",media:`(max-width: ${mc.md}px)`,srcSet:s}),c("img",{srcSet:n??Wm,alt:u.get("thereWasAnUnexpectedError")})]})}),c(U,{variant:b.TITLE,children:u.get(t)}),e&&c(U,{variant:b.BODY,children:d(e)}),(a||o)&&c("div",{className:"adyen-pe-error-message-display__button",children:[a&&c(Pt,{onClick:a,children:u.get("reachOutToSupport")}),!a&&o&&c(Pt,{onClick:m,children:u.get("refresh")})]})]})},Io={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},Zm=(t,e)=>{if(!t)return null;switch(t.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:e};case"00_403":return Io;default:return null}},Vt={sm:480,md:768,lg:1024},Jm=t=>{const e=y(()=>window.matchMedia(t),[t]),[n,s]=$(e.matches);return B(()=>{const r=i=>s(i.matches);return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[e]),B(()=>{s(e.matches)},[e]),n},mt={up:{sm:`(min-width: ${Vt.sm}px)`,md:`(min-width: ${Vt.md}px)`,lg:`(min-width: ${Vt.lg}px)`},down:{xs:`(max-width: ${Vt.sm-1}px)`,sm:`(max-width: ${Vt.md-1}px)`,md:`(max-width: ${Vt.lg-1}px)`},only:{xs:`(max-width: ${Vt.sm-1}px)`,sm:`(min-width: ${Vt.sm}px) and (max-width: ${Vt.md-1}px)`,md:`(min-width: ${Vt.md}px) and (max-width: ${Vt.lg-1}px)`,lg:`(min-width: ${Vt.lg}px)`}},ft=Jm;var qo=(t=>(t.BUTTONS_END="buttons-end",t.FILL_CONTAINER="fill-container",t.SPACE_BETWEEN="space-between",t.VERTICAL_STACK="vertical-stack",t))(qo||{}),ql=(t=>(t.BUTTONS_START="buttons-start",t))(ql||{});const Vm={...qo,...ql};function Qm({actions:t,layout:e=Vm.BUTTONS_END}){const n=()=>`${go}--${e}`,s=i=>{const o=t.length-1;return i===o?Nt.PRIMARY:Nt.SECONDARY},r=y(()=>[...t].reverse(),[t]);return c("div",{className:go,children:c("div",{className:`${$m} ${n()}`,role:"group",children:r.map((i,o)=>c(Pt,{"aria-label":i.title,disabled:i.disabled,variant:i.variant||s(o),onClick:i.event,children:i.title},o))})})}const Xm=Et(Qm),te="adyen-pe-popover",tu="adyen-pe-tooltip",Km=`${te}-container`,fc=`${te}__header`,qm=`${te}__header-title`,Zi=`${te}__content`,eu=`${tu}__content`,tf=`${te}__footer`;function ef({image:t=!0,onClick:e}){const{i18n:n}=V();return c(q,{children:c(Pt,{className:(()=>t?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Nt.TERTIARY,onClick:e,"aria-label":n.get("closeIconLabel"),children:c("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[c("title",{children:"dismiss"}),c("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 nf=Et(ef);function sf({title:t,isImageTitle:e=!1}){return c(U,{strongest:!e,variant:(()=>e?b.SUBTITLE:b.BODY)(),children:t})}const rf=Et(sf);var bt=(t=>(t.TOOLTIP="tooltip",t.POPOVER="popover",t))(bt||{}),at=(t=>(t.TOP="top",t.TOP_LEFT="top-left",t.RIGHT="right",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.LEFT="left",t))(at||{}),ws=(t=>(t.MEDIUM="medium",t.WIDE="wide",t))(ws||{}),H=(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))(H||{}),G=(t=>(t.BALANCE_ACCOUNT="balanceAccount",t.CATEGORIES="categories",t.CURRENCIES="currencies",t.CREATED_SINCE="createdSince",t.CREATED_UNTIL="createdUntil",t.STATUSES="statuses",t.MIN_AMOUNT="minAmount",t.MAX_AMOUNT="maxAmount",t))(G||{});const Ts=(()=>{let t=[];const e=o=>{const a=o.reduce((l,u)=>{const m=u instanceof Node?t.findIndex(d=>{const _=d.element.getAttribute("id"),f=u&&(u!=null&&u.getAttribute)?u==null?void 0:u.getAttribute("id"):null;return _===f}):-1;return l===-1&&m!==-1?m:l},-1);a===-1?r(0):a+1<=t.length-1&&r(a+1)},n=o=>{const a=t.findIndex(l=>l.element.getAttribute("id")===o.getAttribute("id"));a>=0&&t.splice(a,1)},s=(o,a)=>{t.findIndex(u=>u.element.getAttribute("id")===o.getAttribute("id"))>=0||t.push({element:o,callback:a})},r=o=>{var l,u;const a=t.length;for(let m=o;m<a;m++)(u=(l=t==null?void 0:t[m])==null?void 0:l.callback)==null||u.call(l);t.splice(o)};return{add:s,remove:n,closeAll:()=>{t.forEach(o=>{var a;return(a=o==null?void 0:o.callback)==null?void 0:a.call(o)}),t=[]},closePopoversOutsideOfClick:e}})(),xs=Symbol("_ref");class nu extends Error{}class of extends nu{}class af extends nu{}function ta(t){if(!X(t))throw new af}const cf=t=>{try{if(X(t)&&le(t,"current")&&le(t,xs)&&!yn(t,t[xs])){const e=t.actions.get(F),n=t.actions.size;return Z(e)&&Number.isInteger(n)&&n>=0}}catch{}return!1},js=t=>cf(t)?js(t[xs]):t,lf=(()=>{const t=(s,r)=>{const i=s.get(r);if(!i)throw new of;return i},e=(s,r,i)=>{let o,a;const l=js(r);try{o=t(s,l)}catch{ta(i)}if(o)[,a]=o;else{const u=X(l),m=u?f=>{l(_=f)}:f=>{l.current=f,_=l.current},d=f=>{if(a.size===0)return;const I=_;if(m(f),!yn(_,I))for(const[g]of a)g(_,I)};let _=u?null:l.current;s.set(l,o=[d,a=new Map]),Object.defineProperties(d,{[xs]:{value:l},actions:{value:J({get:{value:a.get.bind(a)},size:{get:()=>a.size}})},current:{get:()=>_,set:u?void 0:d}})}return i&&a.set(i,1+(a.get(i)||0)),o[0]},n=(s,r,i)=>{const o=js(r),[,a]=t(s,o),l=a.get(i)||0;l===1?a.delete(i):l>1&&a.set(i,l-1),a.size===0&&s.delete(o)};return()=>{const s=new WeakMap;return J({bind:x(e.bind(void 0,s)),unbind:x(n.bind(void 0,s))})}})(),uf=lf(),df=t=>{ta(t);const e=new WeakMap([[t,1]]),n=r=>{if(yn(s,r))return;const i=s;t(s=r,i)};let s=null;return Object.defineProperties(n,{[xs]:{value:n},actions:{value:J({get:{value:e.get.bind(e)},size:{value:1}})},current:{get:()=>s,set:n}})},hf=(t=uf)=>{let e,n=null,s,r=!1;const i=u=>{e=void 0,n=null,s=u,r=!1},o=()=>{r||(a(),r=!0)},a=()=>{try{if(!n)return;t.unbind(n,s)}catch{}};return J({action:{get:()=>s},reflex:{get:()=>e},release:{value:o},update:{value:(u,m)=>{ta(u),r&&i(u);const d=ht(m)?null:m;if(s===u&&n===d){if(e)return}else if(n){if(yn(js(n),js(d))){e=t.bind(n,u),a(),s=u;return}a()}s=u,e=(n=d)?t.bind(n,s):df(s)}}})},mf=(t,e)=>{const n=W(hf());return Hl(()=>n.current.release,[]),y(()=>(n.current.update(t,e),n.current.reflex),[t,e])},je=mf,Rn=Symbol("__control.Elem.");var su=(t=>(t.POPOVER="POPOVER",t.DEFAULT="DEFAULT",t))(su||{});const _c=t=>{t.stopImmediatePropagation()},ea=(t,e,n,s)=>{const r=W(null),i=N(a=>{const l=a.composedPath();if(r&&r.current)if(s==="POPOVER")Ts.closePopoversOutsideOfClick(l);else{let u=0,m=!1,d=l[u];for(;d instanceof Element&&!(m||(m=d==null?void 0:d.isSameNode(r.current)));)d=l[++u]??d.parentElement,(d==null?void 0:d[Rn])instanceof Element&&(d=d[Rn],l.length=0);e&&!m&&e(!0)}},[r,e,s]),o=W(i);return B(()=>()=>{r.current&&Ts.remove(r.current),document.removeEventListener("click",o.current,!0)},[]),B(()=>(document.removeEventListener("click",o.current,!0),o.current=i,document.addEventListener("click",o.current,!0),s==="POPOVER"&&r.current instanceof Element&&Ts.add(r.current,e),()=>{r.current&&Ts.remove(r.current),document.removeEventListener("click",o.current,!0)}),[i,e,s]),B(()=>{n?document.removeEventListener("click",o.current,!0):document.addEventListener("click",o.current,!0)},[n]),je(N((a,l)=>{l instanceof Element&&l.removeEventListener("focusout",_c,!0),a instanceof Element&&(n||(a.addEventListener("focusout",_c,!0),r.current=a))},[n,s]),t)},na=`
2
2
  a[href],
3
3
  audio[controls],
4
4
  video[controls],
@@ -8,5 +8,5 @@
8
8
  textarea,
9
9
  [contenteditable],
10
10
  [tabindex]
11
- `.replace(/\s+/,""),mb=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],xi=new Map,Il=e=>e.tagName==="INPUT",pb=e=>Il(e)&&e.type==="radio",fb=e=>{const t=e.name,n=e.form,o=xi.get(n);let s=o==null?void 0:o.get(t);return G(s)&&n&&(s=n.querySelector(`input[type=radio][name='${t}']:checked`)||null,xi.set(n,(o||new Map).set(t,s))),s===e},yb=(e,t)=>{for(const n of t)if(n.type!=="attributes"){if(ii(n.addedNodes,o=>o instanceof Element&&Kr(o))||ii(n.removedNodes,o=>e.includes(o)))return!0}else{if(Kr(n.target))return!0;if(e.includes(n.target))return!0}return!1},ka=(e=document.body,t)=>{if(G(e))return!1;if(ue(t))return!!document.activeElement&&ka(e,document.activeElement);let n=t==null?void 0:t.parentNode;for(;n;){if(n===e)return!0;n=n==null?void 0:n.parentNode}return!1},ja=e=>!(!e.matches(Pa)||e!=null&&e.disabled||/^(true)?$/.test(e.getAttribute("inert"))||Il(e)&&e.hidden),Kr=e=>!(pb(e)&&!fb(e)||(e==null?void 0:e.tabIndex)<0||!ja(e)),Ib=()=>{const e=new MutationObserver(i=>yb(t,i)&&r()),t=[];let n=-1,o=null;const s=i=>{var d;if(i<0)return;const c=Math.min(i,t.length-1);n!==c&&(n=c),(d=t[n])==null||d.focus()},r=()=>{t.length=0,o instanceof Element&&(o.querySelectorAll(Pa).forEach(i=>Kr(i)&&t.push(i)),ka(o)&&(a.current=document.activeElement))},a=Object.create(null,{current:{get:()=>t[n]??null,set:i=>{if(i){if(!ns(i))return s(t.indexOf(i));if(i===~~i)return s(os(n+i,t.length))}}},root:{get:()=>o,set:i=>{i!==o&&(o&&e.disconnect(),o=i instanceof Element?i:null,t.length=0,o&&(e.observe(o,{attributeFilter:mb,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:t}});return a},_b=Ib,Tb=(e,t)=>{const n=k(!1),o=k(null),s=k(!1),r=T(_b,[]),a=T(()=>{let g=null,u;return p=>{G(u)||cancelAnimationFrame(u);let m=p.target;for(;m&&m!==p.currentTarget;){if(ja(m)){g=m,u=requestAnimationFrame(()=>{u=requestAnimationFrame(()=>{var y;o.current!==g&&g instanceof HTMLElement&&((y=o.current=g)==null||y.focus()),g=null,u=void 0})});return}m=m.parentNode}}},[]),i=N(g=>{r.current=o.current=g.target},[]),c=N(g=>{r.tabbables.includes(g.relatedTarget)||ka(g.currentTarget,g.relatedTarget)||s.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&t(n.current=!1)}))},[]),d=T(()=>{let g;return u=>{switch(u.code){case z.ARROW_DOWN:case z.ARROW_LEFT:case z.ARROW_RIGHT:case z.ARROW_UP:case z.END:case z.ESCAPE:case z.HOME:case z.PAGE_DOWN:case z.PAGE_UP:case z.TAB:cancelAnimationFrame(g),g=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>{s.current=!1,g=void 0})}),s.current=!0;break}u.code===z.TAB?(u.preventDefault(),r.current=u.shiftKey?-1:1):u.code===z.ESCAPE&&t(!0)}},[]);return Et(N((g,u)=>{u instanceof Element&&(u.removeEventListener("keydown",d,!0),u.removeEventListener("focusin",i,!0),u.removeEventListener("focusout",c,!0),g.removeEventListener("click",a,!0)),g instanceof Element?(g.addEventListener("keydown",d,!0),g.addEventListener("focusin",i,!0),g.addEventListener("focusout",c,!0),g.addEventListener("click",a,!0),n.current=!1,r.root=g):r.root=null},[]),e)},Ab=Tb,Sb=(()=>{const e=new WeakMap,t=H({remove:x(function(){o(this.observerCallback)})}),n=s=>{let r=e.get(s);if(G(r)){const a=new IntersectionObserver(i=>{i.forEach(c=>{s&&s(c)})},{root:null,rootMargin:"",threshold:[1]});r=oo(t,{observerCallback:x(s),observer:x(a)}),e.set(s,r)}return r},o=s=>{const r=e.get(s);r==null||r.observer.disconnect(),e.delete(s)};return n})(),Dr=Sb,Nb=({popover:e,offset:t,targetElement:n,position:o,variant:s,fullWidth:r})=>{const a=n==null?void 0:n.current;let i=0,c=0;const d=a.getBoundingClientRect(),g=document.body.getBoundingClientRect(),u=e==null?void 0:e.firstChild,p=g.left+g.width/2-u.offsetWidth/2,m=d.left+d.width/2-u.offsetWidth/2,y=d.top+d.height/2-u.offsetHeight/2;switch(o){case ae.BOTTOM:i=r?p:s===De.TOOLTIP?m+window.scrollX:(d==null?void 0:d.left)+window.scrollX,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ae.BOTTOM_LEFT:i=(d==null?void 0:d.right)+window.scrollX-e.clientWidth,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ae.TOP:i=s===De.TOOLTIP?m+window.scrollX:d.left+window.scrollX,c=(d==null?void 0:d.top)-(u==null?void 0:u.clientHeight)+window.scrollY-t[0];break;case ae.RIGHT:i=d.left+d.width+window.scrollX+t[2],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)-(d==null?void 0:d.height)/2+window.scrollY;break;case ae.LEFT:i=(d==null?void 0:d.left)-(e==null?void 0:e.clientWidth)+window.scrollX-t[3],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)+window.scrollY-(d==null?void 0:d.height)/2;break}const f=[i,c,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${f.reduce((I,M,L)=>L===0?I+`${M}px,`:L===f.length-1?I+` ${M}px)`:I+` ${M}px,`,"translate3d(")};visibility:hidden`},Lb=(e,t,n,o,s,r,a,i,c)=>{const[d,g]=B(!0),[u,p]=B(i?!i:!!o),[m,y]=B(o||ae.TOP),[f,A]=B([]),I=N(L=>{if(L.intersectionRatio===1)return p(!0);if(!d&&L.intersectionRatio!==1){if(f&&f.length===(i?5:4)){const E=f.reduce((v,$)=>$[1]>v[1]?$:v,f[0]);y(E[0]),p(!0);return}switch(p(!1),m){case ae.TOP:A(E=>[...E,[ae.TOP,L.intersectionRatio]]),y(ae.BOTTOM);break;case ae.BOTTOM:A(E=>[...E,[ae.BOTTOM,L.intersectionRatio]]),y(i?ae.BOTTOM_LEFT:ae.RIGHT);break;case ae.BOTTOM_LEFT:A(E=>[...E,[ae.BOTTOM,L.intersectionRatio]]),y(ae.RIGHT);break;case ae.RIGHT:A(E=>[...E,[ae.RIGHT,L.intersectionRatio]]),y(ae.LEFT);break;case ae.LEFT:A(E=>[...E,[ae.LEFT,L.intersectionRatio]]),y(ae.TOP);break}}},[d,f,m,i]),M=k(I);return W(()=>{Dr(M.current).remove(),M.current=I},[I]),Et(N((L,E)=>{var v,$;if(E&&(!o||i)&&Dr(I).observer.unobserve(E),L&&t.current){if((!o||i)&&Dr(I).observer.observe(L),!(L instanceof Element))return;const b=Nb({popover:L,offset:e,targetElement:t,position:m,variant:n,fullWidth:a??!1}),D=u?b+";visibility:visible":b,O=r?D+";min-width:fit-content;width:"+((v=t.current)==null?void 0:v.clientWidth)+"px":D;L.setAttribute("style",`${O}`),d&&g(!1),n&&n===De.TOOLTIP&&s&&(($=s.current)==null||$.setAttribute("data-popover-placement",m))}},[e,t,m,o,n,I,u,d,r,s,a,i]),c)},Cb=Lb,Mb=e=>{const t=k();return Et(N((n,o)=>{o instanceof Element&&o.id===t.current&&(o.id=""),n instanceof Element&&(n.id=t.current||(t.current=dd()))},[e]),e)},Os=Mb;const Eb=e=>{var o;let t;const n=(o=e.querySelector(`.${pl}`))==null?void 0:o.querySelectorAll(Pa);return n?(Array.prototype.some.call(n,s=>{if(ja(s))return t=s}),t):null},vb=e=>e===De.TOOLTIP?[10,3,5,5]:[15,15,15,15];function Fa({actions:e,disableFocusTrap:t=!1,actionsLayout:n=Ra.SPACE_BETWEEN,variant:o=De.TOOLTIP,title:s,open:r,dismissible:a,modifiers:i,divider:c,fitContent:d,withoutSpace:g,containerSize:u,position:p,targetElement:m,setToTargetWidth:y,dismiss:f,children:A,withContentPadding:I,classNameModifiers:M,showOverlay:L=!1,fitPosition:E,...v}){const $=T(()=>K(f)&&Pt(a),[f,a]),b=Os(),D=k(),O=N(ye=>{var de;f&&f(),ye&&((de=m==null?void 0:m.current)==null||de.focus())},[f,m]),j=N(ye=>{ye.code===z.ESCAPE&&(f&&f(),(m==null?void 0:m.current).focus())},[f,m]),te=k(j),Y=k(),q=wa(Cb(vb(o),m,o,p,b,y,L,E),f,o===De.TOOLTIP&&!r,yl.POPOVER),ne=Ab(t?null:q,O),re=Et(N((ye,de)=>{de instanceof Element&&(de[An]=void 0,delete de[An]),ye instanceof Element&&(ye[An]=m.current,cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{if(D.current===r||!(D.current=r))return;const be=Eb(ye);be==null||be.focus()}))},[r,m]),t?q:ne),Pe=Os(re),Ee=T(()=>({[`${Qe}--medium`]:u===No.MEDIUM,[`${Qe}--with-divider`]:!!c,[`${Qe}--wide`]:u===No.WIDE,[`${Qe}--fit-content`]:d,[`${Qe}--without-space`]:g,[`${Qe}--auto-width`]:L}),[u,c,g,d,L]);W(()=>{re.current&&(re.current[An]=m.current)},[m]),W(()=>(document.removeEventListener("keydown",te.current),document.addEventListener("keydown",te.current=j),()=>document.removeEventListener("keydown",te.current)),[j]);const ve=o===De.TOOLTIP?ml:`${Qe} ${qv}`,ke=o===De.TOOLTIP?pl:`${br}`;return dl(l(Z,{children:r?l(Z,{children:[L&&l("div",{className:"adyen-pe-popover__overlay"}),l("div",{id:"popover",ref:Pe,...v,className:F(ve,Ee,M),style:{visibility:"hidden"},role:v.role??(o===De.POPOVER?"dialog":"tooltip"),children:[(s||$)&&l("div",{className:Da($i,i,[$i]),children:[s&&l("div",{className:eb,children:l(rb,{title:s})}),$&&l(ob,{onClick:f})]}),A&&l(Z,{children:[l("div",{className:F(ke,{[`${br}--with-padding`]:I,[`${br}--overlay`]:L}),children:A}),o===De.TOOLTIP&&l("span",{"data-popover-placement":"hidden",ref:b,className:"adyen-pe-tooltip__arrow"})]}),e&&l("div",{className:tb,children:l(Kv,{actions:e,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const bb=(e=!1)=>{const[t,n]=B(e),o=N(r=>n(r),[]),s=N(()=>n(r=>!r),[]);return[t,o,s]},gt=bb,Db=()=>{const[e,t]=gt(),n=N(()=>t(!0),[t]),o=N(()=>t(!1),[t]),s=N(r=>{switch(r.code){case z.ESCAPE:o();break}},[o]);return{listeners:{onfocusoutCapture:o,onMouseLeave:o,onKeyDown:s,onFocus:n,onMouseEnter:n},isVisible:e}};const Ob=e=>typeof e=="string",Wa=({content:e,children:t,triggerRef:n,showTooltip:o,position:s,isContainerHovered:r=!1})=>{var g,u,p;const a=Os(),i=Ae(Te.down.sm),{isVisible:c,listeners:d}=Db();return i?l(Z,{children:t}):l(Z,{children:[t?nl(t,{...t==null?void 0:t.props,role:"button",tabIndex:-1,ref:a,className:(g=t==null?void 0:t.props)!=null&&g.className?F(`${(u=t==null?void 0:t.props)==null?void 0:u.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":r}):F("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":r}),...d,"aria-describedby":`tooltip-${(p=a.current)==null?void 0:p.id}`}):null,(c||o)&&l(Fa,{variant:De.TOOLTIP,targetElement:n??a,position:s,open:c||o,children:l(Z,{children:e&&Ob(e)?l(X,{variant:P.CAPTION,children:e}):{content:e}})})]})},$b=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),Rb=$b;const xb=({text:e})=>{const[t,n]=B(e),o=N(async()=>{if(e)try{await navigator.clipboard.writeText(e),n("Copied")}catch(r){console.log(r)}},[e]),s=N(()=>{n(e)},[n,e]);return l(Wa,{content:t,children:l(et,{variant:Oe.TERTIARY,className:"adyen-pe-copy-text",onClick:o,onBlur:s,onMouseLeaveCapture:s,children:[l("span",{className:"adyen-pe-copy-text__information",children:e}),l(Rb,{fill:"#0070f5"})]})})},wb=xb,Ba=(e,t,n)=>{if(!e)return Xr;const o=Zv(e,n);if(o)return o;switch(e.errorCode){case void 0:return{title:"somethingWentWrong",message:[t,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const s=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[t,s],translationValues:{[s]:e.requestId?l(wb,{text:e.requestId}):null},onContactSupport:n}}default:return Xr}};function _l({balanceAccountsError:e,children:t,className:n,errorMessage:o,isBalanceAccountIdWrong:s,onContactSupport:r}){const{hasError:a}=jt();return l("div",{className:F(n,{[Sv]:a}),children:a?l(En,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):e?l(En,{withImage:!0,centered:!0,...Ba(e,"weCouldNotLoadYourBalanceAccounts",r)}):s?l(En,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"theSelectedBalanceAccountIsIncorrect"]}):l(Z,{children:t})})}const Pb=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{fill:"currentColor",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"})}),Tl=Pb;function kb({title:e,children:t,classNameModifiers:n=[],isOpen:o,onClose:s,isDismissible:r=!0,headerWithBorder:a=!0,size:i="fluid",...c}){const d=Ae(Te.down.xs),{i18n:g}=Q(),u=wa(null,s),p=N(m=>{m.key==="Escape"&&o&&r&&s()},[o,r,s]);return W(()=>(o?window.addEventListener("keydown",p):window.removeEventListener("keydown",p),()=>window.removeEventListener("keydown",p)),[o,p]),l(Z,{children:o&&l("div",{className:F("adyen-pe-modal-wrapper",n.map(m=>`adyen-pe-modal-wrapper--${m}`),{"adyen-pe-modal-wrapper--open":o,"adyen-pe-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,...c,children:l("div",{className:F("adyen-pe-modal",{"adyen-pe-modal--fluid":i==="fluid","adyen-pe-modal--small":i==="small","adyen-pe-modal--large":i==="large","adyen-pe-modal--extra-large":i==="extra-large","adyen-pe-modal--full-screen":i==="full-screen"||d}),ref:u,children:[l("div",{className:F("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":e,"adyen-pe-modal__header--with-border-bottom":a}),children:[e&&l("div",{className:"adyen-pe-modal__header__title",children:e}),r&&l(et,{onClick:s,variant:Oe.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":g.get("dismiss"),children:l(Tl,{})})]}),l("div",{className:"adyen-pe-modal__content",children:t})]})})})}const jb=He(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("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"})]})),mr=jb,Fb=He(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("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"})]})),za=Fb,Ua="adyen-pe-accordion",Ya=Ua+"__header",Wb=Ya+"-container",Bb=Ya+"-controller",zb=Ua+"__content";function wi({children:e,classNames:t,header:n,headerInformation:o}){var c;const[s,r]=B(!1),a=k(null),i=N(()=>{r(!s)},[s]);return l("div",{className:F(Ua,t),children:[l("h3",{className:Ya,children:[l("button",{id:"accordion-controller","aria-controls":"accordion-content",className:Wb,onClick:i,"aria-expanded":s,children:l("div",{className:Bb,children:[n,s?l(za,{height:8,width:15}):l(mr,{height:8,width:15})]})}),o&&l("div",{children:o})]}),l("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:s?(c=a==null?void 0:a.current)==null?void 0:c.offsetHeight:0},className:zb,children:l("div",{ref:a,children:e})})]})}const Ft="adyen-pe-card",Al=`${Ft}__body`,Sl=`${Ft}__header`,Ub=`${Ft}__title`,Yb=`${Ft}__subtitle`,Hb=`${Sl}-content`,Gb=`${Al}--with-title`,Vb=`${Ft}--no-outline`,Zb=`${Ft}--filled`,Jb=`${Ft}__footer`;const Qb=({title:e,subTitle:t,children:n,footer:o,el:s,renderHeader:r,renderFooter:a,filled:i,noOutline:c,classNameModifiers:d})=>{const g=s||"header";return l("section",{className:F(Ft,{[Zb]:i,[Vb]:c},d),children:[(e||r)&&l(g,{className:Sl,children:(e||r)&&l("div",{className:Hb,children:[r||l("span",{className:Ub,children:e}),t&&l("div",{className:Yb,children:t})]})}),l("div",{className:F(Al,{[Gb]:e||r}),children:n}),(o||a)&&l("footer",{className:Jb,children:a||o})]})},Or=Qb,Xb={month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1},Kb={weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"},qb={month:"long",day:"numeric",year:"numeric"},eD={weekday:"long",month:"long",day:"numeric",year:"numeric"},ls="adyen-pe-structured-list",Nl=`${ls}__item`,Pi=`${ls}__grid`,tD=`${ls}__content`,nD=`${ls}__label`,oD=`${Nl}--has-highlight`;const sD=e=>{const{i18n:t}=Q();return T(()=>e.map(n=>({key:n.key,value:n.value,id:Ia(),label:t.get(n.key)})),[t,e])},rD="6-6";function $r({items:e,highlightable:t,renderValue:n,renderLabel:o,layout:s=rD,grid:r=!0}){const[a,i]=T(()=>s.split("-").map(g=>`${Pi}--width-${g}-of-12`),[s]),c=sD(e),{i18n:d}=Q();return l("div",{"aria-label":d.get("structuredList"),className:ls,children:c.map(g=>l("dl",{className:F(Nl,{[oD]:t,[Pi]:r}),children:[l("dt",{className:F(nD,a),children:o?o(g.label):l(X,{variant:P.BODY,children:g.label})}),l("dd",{"aria-label":`${d.get(g.key)} ${d.get("value")}`,className:F(tD,i),children:n?n(g.value):l(X,{variant:P.BODY,children:g.value})})]},g.id))})}const aD=({isLoading:e,skeletonRowNumber:t=0})=>{const n=T(()=>Array.from({length:t},(o,s)=>s),[t]);return l(Z,{children:n.map(o=>l("span",{className:F({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":e})},`transaction-data-skeleton-${o}`))})},Ll=aD,qr=e=>{const{i18n:t}=Q();return N((...n)=>{const o=t.timezone;try{return e(...n)}finally{t.timezone=o}},[t,e])},iD=e=>{const{i18n:t}=Q(),n=qr(N(()=>(t.timezone=void 0,t.timezone=e,t.timezone),[t,e]));return T(n,[n])},cD=e=>{const{i18n:t}=Q(),n=iD(e),o=qr(N((...r)=>(t.timezone=n,t.date(...r)),[t,n])),s=qr(N((...r)=>(t.timezone=n,t.fullDate(...r)),[t,n]));return{dateFormat:o,fullDateFormat:s}},ao=cD;const us="adyen-pe-payout-data",lD=`${us}__title`,uD=`${us}__title--ba-id`,Ha=`${us}__content`,fn=`${Ha}--section`,Is=`${Ha}--card`,ki=`${Is}-title`,Io=`${fn}-amount`,ji=`${Io}-gross`,dD=`${Io}-net`,hD=`${us}--unpaid-amount`,gD=({balanceAccountId:e,balanceAccountDescription:t,payout:n,isFetching:o})=>{var g;const{payout:s}=n??U,{i18n:r}=Q(),{dateFormat:a}=ao("UTC"),i=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.adjustmentBreakdown)==null?void 0:m.reduce((y,f)=>{var E,v,$,b,D,O,j;const A=(E=f==null?void 0:f.amount)!=null&&E.value&&((v=f==null?void 0:f.amount)!=null&&v.currency)?r.amount(($=f==null?void 0:f.amount)==null?void 0:$.value,(b=f==null?void 0:f.amount)==null?void 0:b.currency,{hideCurrency:!0}):(((D=f==null?void 0:f.amount)==null?void 0:D.value)??"").toString(),I=`${f==null?void 0:f.category}`,M=r.get(I),L=f!=null&&f.category&&M!==I?M:f==null?void 0:f.category;return f!=null&&f.category&&A&&L&&y[(O=f==null?void 0:f.amount)!=null&&O.value&&((j=f==null?void 0:f.amount)==null?void 0:j.value)<0?"subtractions":"additions"].push({key:L,value:A}),y},{subtractions:[],additions:[]});return u==null||u.subtractions.sort((y,f)=>y.key.localeCompare(f.key)),u==null||u.additions.sort((y,f)=>y.key.localeCompare(f.key)),u},[r,n]),c=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.fundsCapturedBreakdown)==null?void 0:m.reduce((y,f)=>{var A,I,M,L;return((A=f==null?void 0:f.amount)==null?void 0:A.value)===0||(I=f==null?void 0:f.amount)!=null&&I.value&&f.category&&y.push({key:f.category,value:r.amount((M=f==null?void 0:f.amount)==null?void 0:M.value,(L=f==null?void 0:f.amount)==null?void 0:L.currency,{hideCurrency:!0})}),y},[]);return u==null||u.sort((y,f)=>y.key==="capture"?-1:f.key==="capture"?1:y.key.localeCompare(f.key)),u},[n,r]),d=T(()=>s!=null&&s.createdAt?a(new Date(s==null?void 0:s.createdAt),eD):"",[s,a]);return l(Z,{children:s?l("div",{className:us,children:[l("div",{className:lD,children:[l(X,{variant:P.SUBTITLE,stronger:!0,children:r.get("netPayout")}),l(X,{variant:P.TITLE,large:!0,children:`${r.amount(s.payoutAmount.value,s.payoutAmount.currency,{hideCurrency:!0})} ${s.payoutAmount.currency}`}),l(X,{variant:P.BODY,children:d}),l("div",{className:fn,children:[t&&l(X,{variant:P.CAPTION,stronger:!0,wide:!0,children:`${t}`}),l(X,{variant:P.CAPTION,className:uD,children:`${e}`})]})]}),l("div",{className:Ha,children:[l("div",{className:fn,children:(s==null?void 0:s.fundsCapturedAmount)&&(c&&Object.keys(c).length>0?l(wi,{header:l(X,{variant:P.BODY,children:r.get("fundsCaptured")}),headerInformation:l(X,{variant:P.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)}),children:l("div",{className:fn,children:l("div",{className:Is,children:l(Or,{children:l($r,{items:c})})})})}):l("div",{className:F(Io,ji),children:[l(X,{variant:P.BODY,children:r.get("fundsCaptured")}),l(X,{variant:P.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)})]}))}),l("div",{className:fn,children:i!=null&&i.subtractions&&Object.keys(i==null?void 0:i.subtractions).length>0||i!=null&&i.additions&&Object.keys(i==null?void 0:i.additions).length>0?l(wi,{header:l(X,{variant:P.BODY,children:r.get("adjustments")}),headerInformation:l(X,{variant:P.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)}),children:[(i==null?void 0:i.additions)&&Object.keys(i==null?void 0:i.additions).length>0&&l("div",{className:Is,children:l(Or,{renderHeader:l(X,{className:ki,variant:P.CAPTION,stronger:!0,children:r.get("additions")}),children:l($r,{items:i==null?void 0:i.additions})})}),(i==null?void 0:i.subtractions)&&Object.keys(i==null?void 0:i.subtractions).length>0&&l("div",{className:Is,children:l(Or,{renderHeader:l(X,{className:ki,variant:P.CAPTION,stronger:!0,children:r.get("subtractions")}),children:l($r,{items:i==null?void 0:i.subtractions})})})]}):l("div",{className:F(Io,ji),children:[l(X,{variant:P.BODY,children:r.get("adjustments")}),l(X,{variant:P.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)})]})}),l("div",{className:F(fn),children:l("div",{className:F(Io,dD),children:[l(X,{variant:P.BODY,stronger:!0,children:r.get("netPayout")}),l(X,{variant:P.BODY,stronger:!0,children:r.amount(s.payoutAmount.value,s.payoutAmount.currency)})]})})]}),((g=n==null?void 0:n.payout)==null?void 0:g.unpaidAmount)&&l("div",{className:hD,children:[l(X,{variant:P.BODY,children:r.get("remainingAmount")}),l(X,{variant:P.BODY,children:r.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):l(Ll,{isLoading:o,skeletonRowNumber:6})})},mD="https://cdf6519016.cdn.adyen.com/checkoutshopper/",pD=({name:e,resourceContext:t,imageFolder:n="logos/",parentFolder:o="",extension:s="svg",size:r="",subFolder:a=""})=>{const i=`/images/${n}/${a}/${o}/${e}${r}.${s}`.replace(/\/+/g,"/");return`${t}${i}`},fD=({options:e=U,name:t})=>{const{loadingContext:n}=Q();return T(()=>pD({resourceContext:mD,name:t,...e}),[n,t,e])},Cl=({folder:e="components/",className:t,alt:n,name:o,extension:s})=>{const r=fD({options:T(()=>({imageFolder:e,extension:s}),[s,e]),name:o});return l("img",{className:F("adyen-pe__image",t),alt:n,src:r})},yD=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function Ml(e,t){return e.lastFourDigits?t==="detail"?"•••• •••• •••• "+e.lastFourDigits:e.lastFourDigits:yD[e.type]||e.type}var Xe=(e=>(e.DEFAULT="default",e.WARNING="warning",e.ERROR="error",e.SUCCESS="success",e.WHITE="white",e))(Xe||{});const ea=Se(({variant:e=Xe.DEFAULT,label:t})=>l("div",{className:F("adyen-pe-tag",{"adyen-pe-tag--success":e===Xe.SUCCESS,"adyen-pe-tag--default":e===Xe.DEFAULT,"adyen-pe-tag--warning":e===Xe.WARNING,"adyen-pe-tag--error":e===Xe.ERROR,"adyen-pe-tag--primary":e===Xe.WHITE}),children:t}));const ID=({transaction:e,isFetching:t})=>{var a,i,c;const{i18n:n}=Q(),{dateFormat:o}=ao((a=e.balanceAccount)==null?void 0:a.timeZone),s=T(()=>e?o(new Date(e.createdAt),Kb):"",[e,o]),r=(e==null?void 0:e.status)==="Booked"?"default":(e==null?void 0:e.status)==="Reversed"?"error":"pending";return l(Z,{children:e?l("div",{className:"adyen-pe-transaction-data",children:[l("div",{className:"adyen-pe-transaction-data__container",children:[((e==null?void 0:e.status)||(e==null?void 0:e.category))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(e==null?void 0:e.status)&&l(ea,{label:n.get(e.status),variant:e.status==="Booked"?Xe.SUCCESS:e.status==="Reversed"?Xe.ERROR:Xe.DEFAULT}),e.category&&l(ea,{label:n.get(`txType.${e.category}`),variant:Xe.DEFAULT})]}),l("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${r}`,children:e.amount?`${n.amount(e.amount.value,e.amount.currency,{hideCurrency:!0})} ${e.amount.currency}`:null}),((e==null?void 0:e.paymentMethod)||(e==null?void 0:e.bankAccount))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[l("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:l(Cl,{name:e.paymentMethod?e.paymentMethod.type:"bankTransfer",alt:e.paymentMethod?e.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transaction-data__payment-method-logo"})}),l("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:e!=null&&e.paymentMethod?Ml(e==null?void 0:e.paymentMethod,"detail"):(i=e==null?void 0:e.bankAccount)==null?void 0:i.accountNumberLastFourDigits})]}),l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:s})]}),((c=e.balanceAccount)==null?void 0:c.description)&&l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("account")}),l("div",{children:e.balanceAccount.description})]}),l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("referenceID")}),l("div",{"aria-label":n.get("referenceID"),children:e.id})]})]}):l(Ll,{isLoading:t,skeletonRowNumber:6})})};const _D=({inline:e=!1,size:t="large"})=>l("div",{className:`adyen-pe-spinner__wrapper ${e?"adyen-pe-spinner__wrapper--inline":""}`,children:l("div",{className:`adyen-pe-spinner adyen-pe-spinner--${t}`})}),TD=_D,AD={transaction:"getTransaction",payout:"getPayout"},SD={transaction:"transactionDetails",payout:"payoutDetails"},Fi=e=>!("data"in e);function Ga(e){var y,f;const t=T(()=>Fi(e)?null:e.data,[e]),n=T(()=>Fi(e)?e.id:null,[e]),{i18n:o}=Q(),s=jt().endpoints[AD[e.type]],r=T(()=>SD[e.type],[e.type]),{data:a,error:i,isFetching:c}=gr(T(()=>({fetchOptions:{enabled:!!n&&!!s},queryFn:async()=>{const A=e.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:e.date}};return s(U,{...A})}}),[n,s,e])),d=e.type==="payout"?e.balanceAccountDescription:a==null?void 0:a.balanceAccountId,g=e.type==="payout"?e==null?void 0:e.balanceAccountDescription:(y=t==null?void 0:t.balanceAccount)==null?void 0:y.description,{balanceAccounts:u}=ba(d,!g),p=T(()=>{if(i)return Ba(i,"weCouldNotLoadYourTransactions",e.onContactSupport)},[i,e.onContactSupport]),m=t??a;return c?l(TD,{}):l("div",{className:"adyen-pe-overview-details",children:[!e.hideTitle&&l("div",{className:"adyen-pe-overview-details--title",children:l(X,{variant:P.TITLE,medium:!0,children:o.get(r)})}),i&&p&&l("div",{className:"adyen-pe-overview-details--error-container",children:l(En,{centered:!0,withImage:!0,...p})}),e.type==="transaction"&&m&&l(ID,{transaction:{...m,balanceAccount:(t==null?void 0:t.balanceAccount)||(u==null?void 0:u[0])},isFetching:c}),e.type==="payout"&&m&&l(gD,{balanceAccountId:n,payout:m,balanceAccountDescription:(e==null?void 0:e.balanceAccountDescription)||((f=u==null?void 0:u[0])==null?void 0:f.description),isFetching:c})]})}const ND={base:"adyen-pe-modal-content"},LD=e=>it(e,"id");function CD({type:e,data:t}){const n=T(()=>e==="payout"?{...t,type:"payout"}:LD(t)?{data:t,type:e}:{id:t,type:e},[t,e]);return l(Z,{children:n&&l("div",{className:ND.base,children:l(Ga,{...n})})})}const El=({children:e,className:t,selectedDetail:n,resetDetails:o})=>{const{i18n:s}=Q(),r=!!n;return W(()=>{r&&go.closeAll()},[r]),l("div",{className:t,children:[e,n&&l(kb,{title:n!=null&&n.title?s.get(n.title):void 0,isOpen:!!n,"aria-label":s.get("payoutDetails"),onClose:o,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&l(CD,{...n==null?void 0:n.selection})})]})};function MD({value:e,isContainerHovered:t}){const{i18n:n}=Q(),o=`tooltip.${e}`;return l(Z,{children:n.has(o)&&l(Wa,{content:n.get(o),isContainerHovered:t,children:l("span",{children:e})})})}const ED=({error:e,errorMessage:t,onContactSupport:n})=>{const{title:o,message:s,refreshComponent:r,translationValues:a,onContactSupport:i}=Ba(e,t,n);return l(En,{title:o,message:s,translationValues:a,withImage:!0,centered:!0,refreshComponent:r,onContactSupport:i})},vl=ED,vD={id:"paymentId",transactionType:"transactionType",createdAt:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency",fundsCapturedAmount:"fundsCaptured",payoutAmount:"netPayout",adjustmentAmount:"adjustments",dateAndPaymentMethod:"date"},bl=e=>vD[e]||e;const Dl=Ma(U),Va=()=>Ea(Dl);var ln=(e=>(e.CENTER="center",e.RIGHT="right",e))(ln||{});function Wi({children:e,column:t,position:n,...o}){const{registerCells:s}=Va(),r=k(null);return W(()=>{var a;r.current&&s({column:t,width:(a=r.current)==null?void 0:a.getBoundingClientRect().width})},[t,s]),l("div",{role:"cell",className:F("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===ln.RIGHT,"adyen-pe-data-grid__cell--center":n===ln.CENTER}),...o,children:e&&Vc(e)?nl(e,{...e==null?void 0:e.props,ref:r,style:{width:"min-content"}}):null})}const Ol=({columns:e,customCells:t,item:n,rowIndex:o})=>l(Z,{children:e.map(({key:s,position:r})=>t!=null&&t[s]?l(Wi,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{style:{width:"min-content"},children:t[s]({key:s,value:n[s],item:n,rowIndex:o})})},s):l(Wi,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{children:n[s]})},s))}),bD=({data:e,columns:t,customCells:n,onRowHover:o})=>{const{i18n:s}=Q();return l(Z,{children:e==null?void 0:e.map((r,a)=>l("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):oe,onFocus:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):oe,onMouseLeave:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():oe,onBlur:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():oe,children:l(Ol,{columns:t,customCells:n,item:r,rowIndex:a})},r))})},DD=({totalRows:e})=>{const[t,n]=hr((a,i)=>{const c=e;if(c>1){const d=i.index;if(d<c&&d>=0)return i.type==="ACTIVE"?Object.freeze({...a,index:i.index??0,activeIndex:i.index}):Object.freeze({...a,index:i.index??0,activeIndex:-1})}return a},kD),o=Et(N(a=>{var c;if(!(a instanceof Element))return;const i=Number((c=a.dataset)==null?void 0:c.index);t.activeIndex===-1&&i===0||i===t.index?a.setAttribute("tabindex","0"):a.setAttribute("tabindex","-1"),i===t.activeIndex&&(a==null||a.focus())},[t.activeIndex,t.index])),s=N(a=>{var c,d;if(!(((c=a.target)==null?void 0:c.getAttribute("role"))==="row")){a.code===z.ARROW_LEFT&&n({type:"ACTIVE",index:t.index});return}switch(a.code){case z.ARROW_DOWN:case z.ARROW_UP:n({type:"ACTIVE",index:a.code===z.ARROW_DOWN?t.index+1:t.index-1});break;case z.HOME:n({type:"ACTIVE",index:0});break;case z.END:n({type:"ACTIVE",index:e-1});break;case z.ENTER:(d=a.currentTarget)==null||d.click();break;default:return}a.stopPropagation()},[e,t.index]),r=N(a=>i=>{var d;(!(((d=i.target)==null?void 0:d.localName)==="tr")||t.index===-1)&&n({type:"CURRENT",index:a})},[t.index]);return{listeners:{onKeyDownCapture:s,onFocusCapture:r},ref:o,activeIndex:t.activeIndex,currentIndex:t.index}},OD=({data:e,columns:t,onRowClick:n,customCells:o,onRowHover:s})=>{const r=N(g=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?g[n.retrievedField]:g),[n]),{i18n:a}=Q(),{currentIndex:i,listeners:c,ref:d}=DD({totalRows:(e==null?void 0:e.length)??0});return l(Z,{children:e==null?void 0:e.map((g,u)=>l("div",{role:"row",tabIndex:0,onMouseEnter:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):oe,onFocus:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):oe,onMouseLeave:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():oe,onBlur:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():oe,ref:d,"aria-selected":u===i,"data-index":u,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:r(g),onFocusCapture:c.onFocusCapture(u),onKeyDownCapture:c.onKeyDownCapture,children:l(Ol,{columns:t,customCells:o,item:g,rowIndex:u})},g))})},$D=({columnsNumber:e,loading:t,emptyMessageDisplay:n})=>{const o=Array.from({length:10},(r,a)=>a),s=Array.from({length:e},(r,a)=>a);return l(Z,{children:[o.map((r,a)=>l("div",{className:"adyen-pe-data-grid__row",children:s.map((i,c)=>l("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:l("span",{className:F({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":t,"adyen-pe-data-grid__empty-cell":!t})})},`adyen-pe-data-grid-skeleton-cell-${c}`))},`adyen-pe-data-grid-skeleton-row-${a}`)),!t&&n&&n]})},RD=$D,xD="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoI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TExLjdhOTAuNyA5MC43IDAgMCAxIDQ2LjIgMjkuN2M0LjQgNS40IDIgOC43IDIgOC43bC03LjEgMTguOHMtMy42IDItMTUuNCAxLjdjLTE3LjQtLjUtMzguOC0yNi44LTM5LjUtMzAuNmE0OC4zIDQ4LjMgMCAwIDEgNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",wD=({children:e})=>{const t=T(()=>new Map,[]),n=N(({column:s,width:r})=>{if(t.has(s)){const a=t.get(s);r>a&&t.set(s,r)}else t.set(s,r)},[t]),o=N(s=>t.get(s),[t]);return l(Dl.Provider,{value:{registerCells:n,getMinWidthByColumn:o},children:kt(e)})},PD=({cellKey:e,position:t,label:n})=>{const{registerCells:o}=Va(),s=k(null);return W(()=>{var r;s.current&&o({column:e,width:(r=s.current)==null?void 0:r.getBoundingClientRect().width})},[e,o]),l("div",{role:"columnheader",id:String(e),className:F("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":t===ln.RIGHT,"adyen-pe-data-grid__cell--center":t===ln.CENTER}),children:l("div",{ref:s,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},kD=Object.freeze({activeIndex:-1,index:-1});function to({errorDisplay:e,...t}){return l("div",{style:{width:"100%"},children:l(wD,{children:l(jD,{...t,errorDisplay:e})})})}function jD({errorDisplay:e,...t}){var d,g;const n=T(()=>kt(t.children),[t.children]),o=T(()=>n.find(u=>(u==null?void 0:u.type)===$l),[n]),s=T(()=>{var u;return((u=t.data)==null?void 0:u.length)===0},[t.data]),r=T(()=>!t.loading&&(s||t.error),[s,t.error,t.loading]),{getMinWidthByColumn:a}=Va(),i=t.columns.filter(u=>u.visible!==!1).map(u=>({...u,minWidth:a(u.key)})),c=i.map(u=>`minmax(${(u.minWidth||100)+40}px, ${u.flex||1}fr)`).join(" ");return l("div",{className:F("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":t.condensed,"adyen-pe-data-grid--outline":t.outline,"adyen-pe-data-grid--scrollable":t.scrollable,"adyen-pe-data-grid--loading":t.loading,"adyen-pe-data-grid--empty":s||t.error}),style:`--adyen-pe-data-grid-cols: ${i.length}; --adyen-pe-data-grid-cells: ${c};`,children:l(Z,{children:[l("div",{className:"adyen-pe-data-grid__table-wrapper",children:[l("div",{role:"table",className:"adyen-pe-data-grid__table",children:[l("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:l("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:t.loading?{width:"100%"}:{},children:i.map(u=>l(PD,{label:u.label,position:u.position,cellKey:u.key},u.key))})}),l(FD,{...t,columns:i,emptyBody:s})]}),r&&(s&&!t.error?l(En,{title:((d=t.emptyTableMessage)==null?void 0:d.title)??"thereAreNoResults",message:(g=t.emptyTableMessage)==null?void 0:g.message,imageDesktop:xD,centered:!0}):t.error&&e?e():null)]}),o]})})}function FD(e){const t=T(()=>e.loading||e.emptyBody||e.error,[e.emptyBody,e.error,e.loading]);return l("div",{role:"rowgroup",className:F("adyen-pe-data-grid__body"),style:t&&{display:"grid",gridTemplateColumns:"1fr"},children:t?l(RD,{columnsNumber:e.columns.length,loading:e.loading}):e.onRowClick?l(OD,{onRowHover:e.onRowHover,data:e.data,columns:e.columns,onRowClick:e.onRowClick,customCells:e.customCells}):l(bD,{onRowHover:e.onRowHover,data:e.data,customCells:e.customCells,columns:e.columns})})}to.Footer=$l;function $l({children:e}){return l("div",{className:"adyen-pe-data-grid__footer",children:e})}to.defaultProps={condensed:!1,outline:!0,scrollable:!0};const ta="-ariaError";var Me=(e=>(e[e.NONE=0]="NONE",e[e.APPLY=1]="APPLY",e[e.CLEAR=2]="CLEAR",e))(Me||{});const WD=({applyDisabled:e,applyTitle:t,resetDisabled:n,resetTitle:o}=U)=>{const{i18n:s}=Q(),[r,a]=B(Me.NONE),[i,c]=B(r!==Me.NONE),d=N(()=>a(Me.APPLY),[a]),g=N(()=>a(Me.CLEAR),[a]),u=N(()=>a(Me.NONE),[a]),p=T(()=>({disabled:xe(e),event:d,title:(t==null?void 0:t.trim())||s.get("apply"),variant:Oe.PRIMARY}),[s,d,e,t]),m=T(()=>({disabled:xe(n),event:g,title:(o==null?void 0:o.trim())||s.get("reset"),variant:Oe.SECONDARY}),[s,g,n,o]),y=T(()=>[p,m],[p,m]);return W(()=>{switch(c(r!==Me.NONE),r){case Me.APPLY:case Me.CLEAR:u();break}},[r,c,u]),{commitAction:r,commitActionButtons:y,committing:i,resetCommitAction:u}},Rl=WD;function xl(e){const{backgroundUrl:t="",className:n="",classNameModifiers:o=[],src:s="",alt:r="",showOnError:a=!1}=e,[i,c]=B(!1),d=k(null),g=()=>{c(!0)},u=()=>{c(a)},p=F([n],"adyen-pe-image",{"adyen-pe-image--loaded":i},...o.map(m=>`adyen-pe-image--${m}`));return W(()=>{const m=t?new Image:d.current;m&&(m.src=t||s,m.onload=g),c(!!(m!=null&&m.complete))},[]),t?l("div",{style:{backgroundUrl:t},...e,className:p}):l("img",{...e,alt:r,ref:d,className:p,onError:u})}const no="adyen-pe-dropdown",BD=Da(Mt,[Oe.SECONDARY],[Mt]),pt=`${no}__button`,zD=`${pt}--active`,UD=`${pt}-collapse-indicator`,YD=`${pt}--has-selection`,HD=`${pt}-icon`,GD=`${pt}-multiselect-counter`,VD=`${pt}--readonly`,ZD=`${pt}-text`,JD=`${pt}--valid`,QD=`${pt}--invalid`,vt=`${no}__element`,XD=`${vt}--active`,KD=`${vt}-checkbox`,qD=`${vt}-checkmark`,e0=`${vt}-content`,t0=`${vt}--disabled`,n0=`${vt}-icon`,o0=`${vt}--no-option`,wl=`${no}__list`,s0=`${wl}--active`,r0=`${no}--multiselect`,a0=({active:e,disabled:t,className:n,filterable:o,toggleButtonRef:s,...r})=>{const a=T(()=>o?F(BD,n):n,[n,o]);return o?l("div",{...r,className:a,ref:s}):l(et,{...r,className:a,disabled:t,variant:Oe.SECONDARY,ref:s})},i0=e=>{var p;const{i18n:t}=Q(),{active:n,filterable:o,multiSelect:s,placeholder:r,readonly:a,showList:i,withoutCollapseIndicator:c}=e,d=T(()=>(r==null?void 0:r.trim())||t.get("select.filter.placeholder"),[t,r]),g=T(()=>xe(s)?void 0:n[0],[n,s]),u=T(()=>{var m;return((m=g==null?void 0:g.name)==null?void 0:m.trim())||d},[g,d]);return l(a0,{active:n,disabled:a,"aria-disabled":a,"aria-expanded":i,"aria-haspopup":"listbox",className:F(pt,{[zD]:i,[YD]:!!n.length,[VD]:a,[QD]:e.isInvalid,[JD]:e.isValid}),filterable:o,onClick:a?void 0:e.toggleList,onKeyDown:a?void 0:e.onButtonKeyDown,role:o?"button":void 0,tabIndex:0,title:u,toggleButtonRef:e.toggleButtonRef,type:o?"":"button","aria-describedby":e.ariaDescribedBy,id:e.id??"",children:[i&&o?l("input",{"aria-autocomplete":"list","aria-controls":e.selectListId,"aria-expanded":i,"aria-owns":e.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:e.onInput,placeholder:d,ref:e.filterInputRef,role:"combobox",type:"text"}):l(Z,{children:[(g==null?void 0:g.icon)&&l(xl,{className:HD,src:g.icon,alt:g.name.trim()}),l("span",{className:ZD,children:((p=g==null?void 0:g.selectedOptionName)==null?void 0:p.trim())||(g==null?void 0:g.name.trim())||d}),s&&e.appliedFilterNumber>0&&l("div",{className:GD,children:l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,children:e.appliedFilterNumber})})]}),!c&&l("span",{className:UD,children:l(mr,{role:"presentation"})})]})},c0=i0,l0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("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"})]})),u0=l0,d0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("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"})]})),h0=d0,g0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[e&&l("title",{children:e}),l("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"})]})),m0=g0,p0=e=>e.multiSelect?l("span",{className:KD,children:e.selected?l(u0,{role:"presentation"}):l(h0,{role:"presentation"})}):null,Pl=e=>e.multiSelect?null:l("span",{className:qD,children:e.selected&&l(m0,{role:"presentation"})}),f0=e=>l(Z,{children:[p0(e),l("div",{className:e.contentClassName,children:[e.item.icon&&l(xl,{className:e.iconClassName,alt:e.item.name,src:e.item.icon}),l("span",{children:e.item.name})]}),Pl(e)]}),y0=({item:e,multiSelect:t,onKeyDown:n,onSelect:o,renderListItem:s,selected:r})=>{const a=!!e.disabled,i=xe(e.disabled)||null,c=F(vt,{[XD]:r,[t0]:a});return l("li",{"aria-disabled":a,"aria-selected":r,className:c,"data-disabled":i,"data-value":e.id,onClick:o,onKeyDown:n,title:e.name,role:"option",tabIndex:-1,children:s({item:e,multiSelect:t,selected:r,contentClassName:e0,iconClassName:n0})})},I0=Se(y0),_0=He(({active:e,commitActions:t,items:n,multiSelect:o,onKeyDown:s,onSelect:r,renderListItem:a,selectListId:i,showList:c,textFilter:d,toggleButtonRef:g,dismissPopover:u,setToTargetWidth:p,popoverClassNameModifiers:m,showOverlay:y,fitPosition:f},A)=>{const{i18n:I}=Q(),M=Ae(Te.down.xs),L=n.filter(D=>!d||D.name.toLowerCase().includes(d)),E=F(wl,{[s0]:c}),v=F(vt,o0),$=T(()=>K(a)?a:f0,[a]),b=T(()=>xe(o),[o]);return c?l(Fa,{classNameModifiers:m,actions:b?t:void 0,disableFocusTrap:!0,divider:!0,dismiss:u,dismissible:!1,open:c,setToTargetWidth:p,containerSize:No.MEDIUM,variant:De.POPOVER,targetElement:g,withContentPadding:!1,position:ae.BOTTOM,showOverlay:y&&M,fitPosition:f,children:l("ul",{className:E,id:i,ref:A,role:"listbox","aria-multiselectable":b,children:L.length?L.map(D=>l(I0,{item:D,multiSelect:b,onKeyDown:s,onSelect:r,renderListItem:$,selected:e.includes(D)},D.id)):l("div",{className:v,children:I.get("select.noOptionsFound")})})}):null}),T0=Se(_0),A0=({items:e,multiSelect:t,selected:n})=>{const o=N((c=Ce)=>{const d=Ce.concat(c??Ce).filter(Boolean),g=e.filter(p=>d.includes(p.id)),u=t?g:g.slice(0,1);return u.length?Object.freeze(u):Ce},[e,t]),[s,r]=B(o(n)),a=N((c=Ce)=>{const d=c.filter(g=>e.includes(g));r(d.length?Object.freeze(d):Ce)},[e,r]),i=N(c=>{r(d=>{const g=d.indexOf(c);if(g<0)return Object.freeze((t?d:Ce).concat(c));if(!t)return d;const u=[...d];return u.splice(g,1),u.length?Object.freeze(u):Ce})},[t,r]);return W(()=>r(o(n)),[o,n,r]),{resetSelection:a,select:i,selection:s}},S0=A0;const N0=({className:e,classNameModifiers:t=Ce,popoverClassNameModifiers:n,items:o=Ce,filterable:s=!1,multiSelect:r=!1,readonly:a=!1,onChange:i=oe,selected:c,name:d,isInvalid:g,isValid:u,placeholder:p,uniqueId:m,renderListItem:y,isCollatingErrors:f,setToTargetWidth:A,withoutCollapseIndicator:I=!1,showOverlay:M=!1,fitPosition:L})=>{const{resetSelection:E,select:v,selection:$}=S0({items:o,multiSelect:r,selected:c}),[b,D]=B(!1),[O,j]=B(""),te=k(null),Y=k(null),q=k(null),ne=k(`select-${Ia()}`),[re,Pe]=B(0),Ee=k(),ve=k(!0),ke=k(!1),ye=k($),de=k($),be=N(()=>{j(""),D(!1),b&&(E(ye.current),ve.current=!0)},[E,D,j,b]),ct=T(()=>F([no,{[r0]:xe(r)},...t.map(ee=>`${no}--${ee}`),e]),[e,t,r]),{commitAction:lt,commitActionButtons:Wt,committing:ds,resetCommitAction:co}=Rl({resetDisabled:!$.length}),tt=N(()=>{var ee;j(""),D(!1),co(),ve.current?ve.current=!1:(ee=q.current)==null||ee.focus()},[co,D,j]),gn=N(()=>{ye.current=$;const ee=`${$.map(({id:he})=>he)}`;i({target:{value:ee,name:d}})},[d,i,$]);W(()=>{switch(lt){case Me.APPLY:gn();break;case Me.CLEAR:E(),ke.current=!0;break}},[lt,gn,E]);const Bt=N(ee=>{var ge;ee.preventDefault();const he=ee.currentTarget&&((ge=Y==null?void 0:Y.current)!=null&&ge.contains(ee.currentTarget))?ee.currentTarget:null;if(he&&!he.getAttribute("data-disabled")){const Zu=he.getAttribute("data-value"),Ju=o.find(Qu=>Qu.id===Zu);v(Ju)}},[o,v]);W(()=>{de.current!==$&&(de.current=$,(!r||ke.current)&&(gn(),tt())),ke.current=!1},[tt,gn,r,$]),W(()=>{ds&&(Pe($.length),tt())},[ds,tt,Pe,$.length]);const Sr=N(ee=>{switch(ee.code){case z.ESCAPE:case z.TAB:b&&tt(),ve.current=ee.key===z.TAB;return;case z.ENTER:case z.SPACE:if(s&&b){if(ee.key===z.ENTER)if(O)Bt(ee);else break;return}break;case z.ARROW_DOWN:case z.ARROW_UP:break;default:return}ee.preventDefault(),D(!0)},[tt,s,Bt,b,D,O]);W(()=>{b&&(cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(()=>{var ee;e:{let he=(ee=Y.current)==null?void 0:ee.firstElementChild,ge;for(;he;){if(!(he.dataset.disabled&&he.dataset.disabled==="true")){if(he.getAttribute("aria-selected")==="true"){he.focus();break e}ge=ge||he}he=he.nextElementSibling}ge&&ge.focus()}}))},[b]);const nt=N(ee=>{const he=ee.target;switch(ee.code){case z.ESCAPE:ee.preventDefault(),tt();break;case z.ENTER:case z.SPACE:Bt(ee);break;case z.ARROW_DOWN:{ee.preventDefault();let ge=he.nextElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break}ge=ge.nextElementSibling}break}case z.ARROW_UP:{ee.preventDefault();e:{let ge=he.previousElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break e}ge=ge.previousElementSibling}s&&te.current&&te.current.focus()}break}case z.TAB:tt();break}},[tt,s,Bt]),we=N(ee=>{const he=ee.target.value;j(he.toLowerCase())},[j]),Nr=N(ee=>{ee.preventDefault(),D(he=>!he),b&&E(ye.current)},[D,b,E]);return W(()=>{var ee;b&&s&&((ee=te.current)==null||ee.focus())},[s,b]),l("div",{className:ct,children:[l(c0,{id:m??void 0,appliedFilterNumber:re,active:$,filterInputRef:te,filterable:s,isInvalid:g,isValid:u,onButtonKeyDown:Sr,onInput:we,multiSelect:r,placeholder:p,readonly:a,selectListId:ne.current,showList:b,toggleButtonRef:q,toggleList:Nr,withoutCollapseIndicator:I,ariaDescribedBy:!f&&m?`${m}${ta}`:""}),l(T0,{popoverClassNameModifiers:n,setToTargetWidth:A,dismissPopover:be,active:$,commitActions:Wt,items:o,multiSelect:r,onKeyDown:nt,onSelect:Bt,selectListId:ne.current,ref:Y,toggleButtonRef:q,renderListItem:y,showList:b,showOverlay:M,textFilter:O,fitPosition:L})]})},pr=N0,L0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("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:t.disabled?"#8D95A3":"#00112C"})]})),C0=L0,M0=He(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("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:t.disabled?"#8D95A3":"#00112C"})]})),E0=M0;function kl({next:e,hasNext:t,hasPrev:n,page:o,prev:s,limit:r,limitOptions:a,onLimitSelection:i}){const{i18n:c}=Q(),d=T(()=>a&&Object.freeze(a.map(u=>({id:`${u}`,name:`${u}`}))),[a]),g=N(({target:u})=>{ue(u==null?void 0:u.value)||i==null||i(+u.value)},[i]);return l("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-pe-pagination ${F({})}`,children:[l("div",{className:"adyen-pe-pagination__context",children:[l("span",{children:[c.get("pagination.showing")," ",o]}),d&&i&&l("div",{className:"adyen-pe-pagination__limit-selector",children:l(pr,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:d,onChange:g,selected:`${r??""}`})})]}),l("div",{className:"adyen-pe-pagination__controls",children:[l(et,{"aria-label":c.get("pagination.previousPage"),variant:Oe.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Ce:"disabled"),onClick:s,children:l(C0,{disabled:!n})}),l(et,{"aria-label":c.get("pagination.nextPage"),variant:Oe.TERTIARY,disabled:!t,iconButton:!0,classNameModifiers:["circle"].concat(t?Ce:"disabled"),onClick:e,children:l(E0,{disabled:!t})})]})]})}const io="adyen-pe-transactions-table",v0=io+"__amount",b0=io+"__payment-method",D0=io+"__payment-method-logo-container",O0=io+"__payment-method-logo",Bi=io+"__date-and-payment-method";const $0=({paymentMethod:e,bankAccount:t})=>{const{i18n:n}=Q();return l("div",{className:b0,children:e||t?l(Z,{children:[l("div",{className:D0,children:l(Cl,{name:e?e.type:"bankTransfer",alt:e?e.type:"bankTransfer",folder:"logos/",className:O0})}),e?Ml(e):t==null?void 0:t.accountNumberLastFourDigits]}):l(ea,{label:n.get("noData"),variant:Xe.WHITE})})},zi=$0,R0=["dateAndPaymentMethod","createdAt","paymentMethod","transactionType","amount"],x0=({activeBalanceAccount:e,availableCurrencies:t,error:n,hasMultipleCurrencies:o,loading:s,onContactSupport:r,onRowClick:a,showDetails:i,showPagination:c,transactions:d,...g})=>{const{i18n:u}=Q(),{dateFormat:p,fullDateFormat:m}=ao(e==null?void 0:e.timeZone),[y,f]=B(),A=Ae(Te.up.sm),I=Ae(Te.up.md),M=Ae(Te.down.xs),L=T(()=>({dateAndPaymentMethod:M,createdAt:A,transactionType:I,paymentMethod:A}),[M,A,I]),E=T(()=>R0.map(D=>{const O=u.get(bl(D));return D==="amount"?{key:D,label:o?O:`${O} ${t&&t[0]?`(${Dc(t[0])})`:""}`,position:D==="amount"?ln.RIGHT:void 0,flex:A?1.5:void 0}:{key:D,label:O,visible:L[D]}}),[t,L,o,u,A]),v={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},$=N(D=>{f(D??void 0)},[f]),b=T(()=>()=>l(vl,{error:n,onContactSupport:r,errorMessage:"weCouldNotLoadYourTransactions"}),[n,r]);return l("div",{className:io,children:l(to,{errorDisplay:b,error:n,columns:E,data:d,loading:s,outline:!1,onRowClick:{callback:a},onRowHover:$,emptyTableMessage:v,customCells:{dateAndPaymentMethod:({item:D})=>l("div",{className:Bi,children:[l(zi,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount}),l("span",{className:Bi,children:p(D.createdAt,Xb)})]}),transactionType:({item:D,rowIndex:O})=>{const j=`tooltip.${D.category}`;return D.category?u.has(j)?l(MD,{value:D.category,isContainerHovered:O===y}):D.category:null},createdAt:({value:D})=>l("span",{children:m(D)}),amount:({value:D})=>{const O=u.amount(D.value,D.currency,{hideCurrency:!o});return l("span",{className:v0,children:O})},paymentMethod:({item:D})=>l(zi,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount})},children:c&&l(to.Footer,{children:l(kl,{...g})})})})},w0=e=>{const[t,n]=B(0),o=N(()=>n(0),[n]),s=T(()=>e==null?void 0:e[t],[e,t]),r=T(()=>e&&e.length>1?Object.freeze(e.map(({description:i,id:c})=>({id:c,name:hd(i)}))):void 0,[e]),a=N(({target:i})=>{const c=i==null?void 0:i.value,d=e==null?void 0:e.findIndex(({id:g})=>g===c);d>=0&&n(d)},[e,n]);return{activeBalanceAccount:s,balanceAccountSelectionOptions:r,onBalanceAccountSelection:a,resetBalanceAccountSelection:o}},jl=w0;const Za="adyen-pe-balance-account-selector",P0=`${Za}__account-id`,k0=`${Za}__account-label`,j0=Se(({activeBalanceAccount:e,balanceAccountSelectionOptions:t,onBalanceAccountSelection:n})=>{const o=Ae(Te.down.xs),s=N(r=>l(Z,{children:[l("div",{className:r.contentClassName,children:[r.item.name&&l("span",{className:k0,children:r.item.name}),l("span",{className:P0,children:r.item.id})]}),Pl(r)]}),[]);return t&&t.length>1?l(pr,{popoverClassNameModifiers:[Za],onChange:n,filterable:!1,multiSelect:!1,selected:e==null?void 0:e.id,withoutCollapseIndicator:!0,items:t,renderListItem:s,showOverlay:o}):null}),Fl=j0,{getTimezoneTime:F0,getUsedTimezone:W0}=(()=>{const e=/(\d{2}):(\d{2})(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,t=/^GMT|0(?=\d:00)|:00/g,n=lr();return{getTimezoneTime:(r,a=Date.now())=>{n.tz=r;const{formatted:i}=n(a),[c="",,,d=""]=(i==null?void 0:i.match(e))??Ce,g=Wr(i),u=`${c}${d&&` ${d}`}`,p=Yg(g).replace(t,"");return[u,p]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),B0=({timezone:e,withClock:t=!1}=U)=>{const n=T(()=>xe(t),[t]),o=T(()=>W0(e),[e]),s=k(oe),[r,a]=B(Date.now()),[i,c]=T(()=>F0(o,r),[r,o]);return T(()=>{s.current(),s.current=n?vc.subscribe(d=>{so(d)||a(d.now)}):oe},[a,n]),{clockTime:i,GMTOffset:c,timestamp:r,timezone:o}},z0=B0,U0=e=>Object.freeze({systemToTimezone:x(t=>Br(e,t)),timezoneToSystem:x(t=>xc(e,t)),timezoneOffset:x(t=>e(t).offset)}),Wl=(e,t,n=e)=>{const o=(s,r)=>{let a=s;ue(s)?a=n:_o(s)||(a=r??n);const i=on(e,a,t);return i===a?i:r??n};return s=>{const r=ce(()=>a);let a=o(s);return H({value:r,descriptor:x({...r,set(i){const c=a;a=o(i,a),c!==a&&(this.now=this.now)}})})}},Y0=(e,t)=>n=>K(n)?n.call(e,t):n,H0=e=>!it(e,"offsets"),G0=e=>it(e,"from"),fr=({now:e})=>e,V0=(()=>{const e=new Map;return t=>{let n=e.get(t);return G(n)&&(n=Object.freeze([0,0,t,0,0,0,-1]),e.set(t,n)),n}})(),mn=e=>{try{const t=e instanceof Date||+e===e?e:void 0,n=new Date(t).getTime();return isNaN(n)?void 0:n}catch{}},yr=e=>e.setHours(0,0,0,0),Z0=e=>(yr(e),e.setDate(1)),J0=e=>(yr(e),e.setMonth(0,1)),Q0=(e,t=e)=>0+(-t%7+(e-7))%7,X0=(e=U,t=U)=>{const n=Ao(e),o=Ao(t);return()=>{const s=lr(),r=ce(()=>u),a=ce(()=>s.tz.current),i=H({now:r,timezone:a,...U0(s)}),c=Y0(n,i);let{from:d,to:g,now:u}=U;const p=y=>{u=mn(y??Date.now())??u;e:{if(H0(n)){d=mn(c(n.from))??u,g=mn(c(n.to))??u;break e}let f,A,I;(I=G0(n))?(f=new Date(d=mn(c(n.from))??u),A=1):(f=new Date(g=mn(c(n.to))??u),A=-1),f=new Date(i.timezoneToSystem(f));const[M=0,L=0,E=0,v=0,$=0,b=0,D=0]=c(n.offsets);f.setFullYear(f.getFullYear()+M*A,f.getMonth()+L*A,f.getDate()+E*A),f.setHours(f.getHours()+v*A,f.getMinutes()+$*A,f.getSeconds()+b*A,f.getMilliseconds()+D*A);const O=mn(i.systemToTimezone(f))??u;I?g=O:d=O}d>g&&([d,g]=[g,d])},m=y=>{const f=s.tz,A=f.current;s.tz=y,f.current!==A&&p(u)};return p(),H({...o,from:ce(()=>d),now:{...r,set:p},timezone:{...a,set:m},to:ce(()=>g)})}},Ir=X0,Ja=1,K0=V0(7),q0=Wl(0,6,Ja),eO=(e=0)=>{const t=~~on(0,e,1/0)||0;return(n=Ja)=>{const o=t?{offsets:K0}:{to:fr},s=q0(n);return Ir({from:({now:r,systemToTimezone:a,timezoneToSystem:i})=>{const c=new Date(r),d=new Date(i(r)),g=c.getDay()-d.getDay();if(yr(c),g){const p=g>1?-1:g<-1?1:g;c.setDate(c.getDate()-p)}const u=Q0(s.value,c.getDay())-t*7;return c.setDate(c.getDate()+u),a(c)},...o},{firstWeekDay:s.descriptor})()}},Bl=eO,tO=Object.freeze([0,1,0,0,0,0,-1]),nO=(e=0)=>{const t=~~on(0,e,1/0)||0;return Ir({from:({now:o,systemToTimezone:s,timezoneToSystem:r})=>{const a=new Date(o),i=new Date(r(o)),c=a.getMonth()-i.getMonth();let d=t;return c&&(d+=c>1?-1:c<-1?1:c),Z0(a),a.setMonth(a.getMonth()-d),s(a)},...t?{offsets:tO}:{to:fr}})},zl=nO,oO=zl(1),sO=oO,rO=365,aO=1,iO=1,cO=Wl(aO,rO,iO),lO=e=>{const t=cO(e);return Ir({from:({now:n,systemToTimezone:o,timezoneToSystem:s})=>{const r=new Date(n),a=new Date(s(n)),i=r.getDate()-a.getDate();let c=t.value-1;return i&&(c+=i>1?-1:i<-1?1:i),yr(r),r.setDate(r.getDate()-c),o(r)},to:fr},{numberOfDays:t.descriptor})()},Ui=lO,uO=Bl(1),dO=uO,hO=zl(0),gO=hO,mO=Bl(0),pO=mO,fO=Ir({from:({now:e,systemToTimezone:t,timezoneToSystem:n})=>{const o=new Date(e),s=new Date(n(e)),r=o.getFullYear()-s.getFullYear();return J0(o),o.setFullYear(o.getFullYear()-r),t(o)},to:fr}),yO=fO,IO=()=>Object.freeze({"rangePreset.last7Days":Ui(7),"rangePreset.last30Days":Ui(30),"rangePreset.thisWeek":pO(),"rangePreset.lastWeek":dO(),"rangePreset.thisMonth":gO(),"rangePreset.lastMonth":sO(),"rangePreset.yearToDate":yO()}),_O=({now:e=Date.now(),options:t,selectedOption:n,timezone:o})=>{const{i18n:s}=Q(),[r,a]=B(),[i,c]=B(),[d,g]=B(),u=k(),p=k(),[m,y,f]=T(()=>{const $=s.get("rangePreset.custom"),b=Object.keys(t),D=Object.freeze(b.map(j=>s.get(j)));return[$,(j,te=D)=>{const Y=te.findIndex(q=>q===j);return t[b[Y]]},D]},[s,t]),[A,I]=B(n===m),M=T(()=>Object.freeze([...f,m]),[m,f]),L=T(()=>A?M:f,[A,f,M]),E=N($=>{const b=y($,f);b&&(a(b.from),c(b.to),I(!1),g($))},[m,y,d,f]),v=N(()=>{a(void 0),c(void 0),I(!0),g(m)},[m]);return T(()=>{n===m?g(m):E(n)},[]),T(()=>{var $;if(u.current!==e||p.current!==o){const b=Object.values(t);b.forEach(D=>{D.now=e,D.timezone=o}),u.current=e,p.current=($=b[0])==null?void 0:$.timezone,E(d)}},[e,o,t]),{customSelection:v,from:r,onSelection:E,options:L,selectedOption:d,to:i}},TO=({calendarRef:e,onTimeRangeSelected:t,timestamp:n,...o})=>{const{customSelection:s,from:r,onSelection:a,options:i,selectedOption:c,to:d}=_O(o),g=T(()=>Object.freeze(i.map(y=>({id:y,name:y}))),[i]),u=N(({target:y})=>a(y==null?void 0:y.value),[a]),p=k(!0),m=k(n);return W(()=>{e!=null&&e.current&&r&&d&&(p.current=!0,e.current.from=new Date(r),e.current.to=new Date(d))},[e,r,d]),W(()=>{m.current!==n&&(m.current=n,p.current?p.current=!1:s())},[s,n]),W(()=>{c&&(t==null||t(c))},[c,t]),l(pr,{setToTargetWidth:!0,items:g,filterable:!1,multiSelect:!1,onChange:u,selected:c})},AO=TO,Ke=(()=>{const e=o=>Object.freeze(oo(U,Object.fromEntries(Object.entries(o).map(([s,r])=>[s,{value:r}])))),t=o=>{try{return Object.getPrototypeOf(o)===U}catch{return!1}},n=(o,s)=>{if(!o)return e(x(s,Pt(o)));let r=s;return e({enumerable:!0,get:()=>r,set:a=>{r=o(a)}})};return Object.defineProperties(n,{is:{value:t},isObject:{value:or},immutable:{value:o=>n(!1,o)},mutable:{value:o=>n(void 0,o)},restricted:{value:()=>n(!1)}})})(),Ul=(()=>{const e=(n={},o=!1)=>{const s=H();for(const[r,a]of Object.entries(n)){try{const i=Ke.is(a),c=Ke.isObject(a);if(i||c){Object.defineProperty(s,r,i?a:e(a,o));continue}else if(o){Object.defineProperty(s,r,Ke.immutable(a));continue}}catch{}s[r]=a}return Ke((r={})=>Object.assign(s,r),s)};return Object.defineProperties(e,{unwrapped:{value:(n={},o=!1)=>{const s=e(n,o);return H({P:s}).P}}})})();var Qa=(e=>(e[e.DATE=0]="DATE",e[e.DAY_OF_WEEK=1]="DAY_OF_WEEK",e[e.MONTH_HEADER=2]="MONTH_HEADER",e))(Qa||{});const Yl="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",Hl="adyen-pe-calendar__date",SO=(e=U,t)=>{const n=Ul.unwrapped({childClassName:Ke.mutable(Hl),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(Yl),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(Qa.DATE,n),n},NO=He(({grid:e,prepare:t,datetime:n,flags:o,index:s,label:r,onlyCellsWithin:a},i)=>{const c=o.WITHIN_BLOCK,d={"data-cursor-position":s,"data-within-month":c,tabIndex:-1};if(c){const f=o.WITHIN_RANGE;d["data-today"]=o.CURRENT,d["data-first-week-day"]=o.LINE_START,d["data-last-week-day"]=o.LINE_END,d["data-weekend"]=o.WEEKEND,d["data-first-month-day"]=o.BLOCK_START,d["data-last-month-day"]=o.BLOCK_END,d["data-within-range"]=f,f&&(d["data-range-end"]=o.RANGE_END,d["data-range-start"]=o.RANGE_START,d["data-selection-end"]=o.SELECTION_END,d["data-selection-start"]=o.SELECTION_START,d["data-within-selection"]=o.WITHIN_SELECTION,d["aria-selected"]=`${!!(o.SELECTION_END||o.SELECTION_START||o.WITHIN_SELECTION)}`),s===+e.cursor&&(d.ref=i)}const g=SO(d,t),{children:u,className:p,...m}=g.props||U,y=Ds(g.className,Yl,p);return l("td",{...m,...d,className:y,children:(!a||c)&&(()=>{const{children:f,className:A,...I}=g.childProps||U,M=Ds(g.childClassName,Hl,A);return l("time",{...I,className:M,dateTime:n,children:r})})()})}),LO=Se(NO,bs({block:bs.exclude,flags:e=>+e})),Gl="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",Vl="adyen-pe-calendar__day-of-week",CO=(e=U,t)=>{const n=Ul.unwrapped({childClassName:Ke.mutable(Vl),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(Gl),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(Qa.DAY_OF_WEEK,n),n},MO=({prepare:e,flags:t,labels:{long:n,short:o}})=>{const s={"aria-label":n,"data-first-week-day":t.LINE_START,"data-last-week-day":t.LINE_END,"data-weekend":t.WEEKEND,scope:"col"},r=CO(s,e),{children:a,className:i,...c}=r.props||U,d=Ds(r.className,Gl,i),{children:g,className:u,...p}=r.childProps||U,m=Ds(r.childClassName,Vl,u);return l("th",{...c,...s,className:d,children:l("abbr",{...p,className:m,children:o})})},EO=Se(MO,bs({block:bs.exclude,flags:e=>+e}));const vO=ro(({cursorRootProps:e,onlyCellsWithin:t,prepare:n,grid:o},s)=>l("ol",{className:"adyen-pe-calendar",role:"none",...e,children:o.map(r=>l("li",{className:"adyen-pe-calendar__month",role:"none",children:[l("div",{className:"adyen-pe-calendar__month-name",role:"none",children:l("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),l("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":o.rowspan},children:[l("thead",{children:l("tr",{className:"adyen-pe-calendar__row",children:o.weekdays.map((a,i)=>l(EO,{grid:o,block:r,prepare:n,cell:i,...a},a.labels.long))})}),l("tbody",{children:r.map((a,i)=>l("tr",{className:"adyen-pe-calendar__row",children:a.map((c,d)=>l(LO,{ref:s,grid:o,block:r,prepare:n,cell:d,onlyCellsWithin:t,row:i,...c},`${r.month}:${c.timestamp}`))},`${r.month}:${i}`))})]})]},r.datetime))})),bO=Se(vO),DO=864e5,OO=["narrow","short","long"],Zl=[0,1,6],vn=[1,2,3,4,6,12],Yi=42,$O=[0,1],Xa=Symbol(),Ka=Symbol(),qa=Symbol(),Hi=[qa,Ka,Xa],Ht=Symbol(),Sn=Symbol(),Nn=Symbol(),RO=[Sn,Nn,Ht],Jl=Symbol(),Ql=Symbol(),Xl=Symbol(),Kl=Symbol(),ql=Symbol(),eu=Symbol(),tu=Symbol(),nu=Symbol(),ou=Symbol(),su=Symbol(),ei=Symbol(),ti=Symbol(),ru=Symbol(),Gi=Symbol(),Le=Symbol(),Vi=Symbol(),We=Symbol(),au=Symbol(),_s=Symbol(),Ts=Symbol(),xO=e=>(t,n,o)=>{if(qe(n)){const s=+n;if(s>=0&&s<t.length)return e(s)}return Reflect.get(t,n,o)},Zi=function*(e=ya,t){for(let n=0;n<this.length;n++)yield e.call(t,this[n],n,this)},wO=Object.freeze(H({[Symbol.iterator]:{value(){return Zi.call(this)}},map:{value(e,t){return[...Zi.call(this,e,t)]}}})),Lt=(e,t)=>K(e)?Lt({length:{get:e}},t):ns(e)?Lt({length:{value:e}},t):new Proxy(oo(wO,e),{get:xO(t),set:Fr}),Ji=Symbol("<<NO_EXCEPTION>>"),Qi=e=>{const t=[];return H({bind:x(o=>function(...s){let r=Ji;try{return t.push(o),o.call(this,...s)}catch(a){throw r=a}finally{t.pop(),t.length===0&&r===Ji&&e()}}),effect:x(e)})},PO=(()=>{const e=new Map,t=lr(),n=(o=Date.now())=>{const s=new Date(o),r=new Date(xc(t,o)),a=s.getDate()-r.getDate();if(a){const d=a>1?-1:a<-1?1:a;s.setDate(s.getDate()-d)}const i=Br(t,s.setHours(0,0,0,0)),c=Br(t,s.setDate(s.getDate()+1));return[i,c-i]};return o=>{t.tz=o;const s=t.tz.current;return e.get(s)??(()=>{let r=null,a=null,i=null;const c=()=>(t.tz=s,r??n()[0]),d=(f=Date.now())=>{t.tz=s,[r,a]=n(f)},{cancelSubscriptions:g,requestNotification:u,subscribe:p,on:m}=as({timestamp:c});m.resume=()=>{i=Ec.subscribe(f=>{if(so(f))return;const{now:A}=f;if(Ms(r)||Ms(a))return d(A);A-r<a||(d(A),u())})},m.idle=()=>{i==null||i(),r=a=i=null};const y=H({cancelSubscriptions:x(g),timestamp:ce(c),timezone:x(s),subscribe:x(p)});return e.set(s,y),y})()}})(),iu=PO,Xi=(e,t)=>{if(t>=e)return e;let n=Math.max(1,vn.indexOf(e));for(;--n&&t<vn[n];);return vn[n]},kO=e=>vn[Math.max(vn.indexOf(e),0)],Ki=(e=0)=>Object.freeze($O.map(t=>os(6-e+t,7))),Ln=e=>sn(e)?0:e-new Date(e).setHours(0,0,0,0),qi=e=>G(e)?e:new Date(e),na=(e,t)=>{if(sn(e)||sn(t))return 1/0;const n=new Date(e),o=new Date(t);return Math.abs(o.getMonth()-n.getMonth()+(o.getFullYear()-n.getFullYear())*12)},ec=(()=>{const e=[31,[29,28],31,30,31,30,31,31,30,31,30,31];return(t,n,o=0)=>{const s=t+o,r=os(s,12),a=n+Math.floor(s/12);return[r===1?e[1][(a%100?a%4:a%400)&&1]:e[r],r,a]}})();var Oo,Be,ze,Rn,xn;class jO{constructor(...t){S(this,Oo,1/0);S(this,Be,1/0);S(this,ze,-1/0);S(this,Rn,0);S(this,xn,0);if(t.length>=2){let n=new Date(t[0]).getTime();if(typeof t[1]!="symbol")_(this,ze,n||h(this,ze)),_(this,Be,new Date(t[1]).getTime()||h(this,Be)),h(this,Be)<h(this,ze)&&([zt(this,Be)._,zt(this,ze)._]=[h(this,ze),h(this,Be)]),_(this,xn,Ln(h(this,ze))),_(this,Rn,Ln(h(this,Be))),_(this,Oo,na(h(this,ze),h(this,Be))+1);else if(!isNaN(n))switch(t[1]){case ti:_(this,Be,n),_(this,Rn,Ln(h(this,Be)));break;case ei:default:_(this,ze,n),_(this,xn,Ln(h(this,ze)));break}}}get numberOfMonths(){return h(this,Oo)}get endTimestamp(){return h(this,Be)}get endTimestampOffset(){return h(this,Rn)}get startTimestamp(){return h(this,ze)}get startTimestampOffset(){return h(this,xn)}}Oo=new WeakMap,Be=new WeakMap,ze=new WeakMap,Rn=new WeakMap,xn=new WeakMap;const _r=(...e)=>{const t=new jO(...e);return H({from:{value:t.startTimestamp},to:{value:t.endTimestamp},offsets:{value:H({from:{value:t.startTimestampOffset},to:{value:t.endTimestampOffset}})},span:{value:t.numberOfMonths}})},$s=_r(),FO=()=>_r(Date.now(),ei),WO=()=>_r(Date.now(),ti),BO=(...e)=>e.length===0?$s:_r(...e);var pe=(e=>(e[e.CURRENT=1]="CURRENT",e[e.CURSOR=2]="CURSOR",e[e.WEEKEND=4]="WEEKEND",e[e.LINE_START=8]="LINE_START",e[e.LINE_END=16]="LINE_END",e[e.WITHIN_BLOCK=32]="WITHIN_BLOCK",e[e.BLOCK_START=64]="BLOCK_START",e[e.BLOCK_END=128]="BLOCK_END",e[e.WITHIN_RANGE=256]="WITHIN_RANGE",e[e.RANGE_START=512]="RANGE_START",e[e.RANGE_END=1024]="RANGE_END",e[e.WITHIN_SELECTION=2048]="WITHIN_SELECTION",e[e.SELECTION_START=4096]="SELECTION_START",e[e.SELECTION_END=8192]="SELECTION_END",e[e.ALL=16383]="ALL",e))(pe||{}),yn=(e=>(e[e.PREV=1]="PREV",e[e.BLOCK=0]="BLOCK",e[e.FRAME=2]="FRAME",e[e.PERIOD=4]="PERIOD",e))(yn||{}),oa=(e=>(e[e.PREV_PERIOD=5]="PREV_PERIOD",e[e.PREV_FRAME=3]="PREV_FRAME",e[e.PREV=1]="PREV",e[e.NEXT=0]="NEXT",e[e.NEXT_FRAME=2]="NEXT_FRAME",e[e.NEXT_PERIOD=4]="NEXT_PERIOD",e))(oa||{});const zO=(()=>{const e={},t=Object.keys(pe).filter(o=>isNaN(+o)),n=o=>o!=="ALL"&&qe(o)&&t.includes(o);return o=>{const s=o&pe.ALL;return e[s]||(e[s]=new Proxy(H({valueOf:{value:()=>s}}),ir({get:(r,a)=>{switch(a){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(a))return}return s&pe[a]?1:void 0}}))),e[s]}})(),cu=zO;var wn,$e,$o,Ro,xo,wo,ot,Ue,Zt,Pn,kn,jn,Jt,It,Po,Ie,me,_e,bt,Fn,Dt,ko,jo,Ot,_t,Fo,Wo,ws,Ps,ks,lu,Tt,Ut,js,uu,Re,Fe,Qt,mo,Bo,ra;const Cn=class Cn{constructor(){S(this,ks);S(this,Tt);S(this,js);S(this,Re);S(this,Qt);S(this,Bo);S(this,$e,0);S(this,$o,void 0);S(this,Ro,void 0);S(this,xo,-1);S(this,wo,-1);S(this,ot,void 0);S(this,Ue,void 0);S(this,Zt,void 0);S(this,Pn,!1);S(this,kn,void 0);S(this,jn,0);S(this,Jt,[]);S(this,It,h(Cn,wn));S(this,Po,12);S(this,Ie,void 0);S(this,me,void 0);S(this,_e,1);S(this,bt,void 0);S(this,Fn,iu());S(this,Dt,void 0);S(this,ko,-1/0);S(this,jo,1/0);S(this,Ot,-1/0);S(this,_t,1/0);S(this,Fo,1/0);S(this,Wo,0);w(this,"daysInWeek",0);w(this,"origin");w(this,"originTimestamp");S(this,ws,Lt(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));S(this,Ps,Lt(()=>h(this,_e),R(this,js,uu).bind(this)))}get fromTimestamp(){return h(this,ko)}get toTimestamp(){return h(this,jo)}get numberOfBlocks(){return h(this,Fo)}get blankSelection(){return h(this,Ie)===h(this,me)&&G(h(this,me))}get cursor(){return h(this,ot)??-1}get daysOfWeek(){return h(this,ws)}get dynamicBlockHeight(){return h(this,Pn)}set dynamicBlockHeight(t){ue(t)?_(this,Pn,!!t):jr(t)&&_(this,Pn,t)}set effect(t){ue(t)?_(this,kn,void 0):K(t)&&_(this,kn,t)}get firstWeekDay(){return h(this,jn)}set firstWeekDay(t){if(ue(t))this.firstWeekDay=0;else if(!Zl.includes(t)||h(this,jn)===_(this,jn,t))return}get frameBlocks(){return h(this,Ps)}get isAtEnd(){return!sn(h(this,_t))&&h(this,_t)===h(this,_e)-1}get isAtStart(){return!sn(h(this,Ot))&&h(this,Ot)===0}get locale(){return h(this,It)}set locale(t){const n=h(this,It);if(ue(t))_(this,It,h(Cn,wn));else if(typeof Intl<"u")try{_(this,It,new Intl.Locale(t).toString())}catch{_(this,It,h(Cn,wn))}h(this,It)!==n&&this.refreshFrame(!0)}get selectionStart(){return h(this,Ie)}get selectionEnd(){return h(this,me)}get size(){return h(this,_e)}set size(t){const n=Math.min(!ue(t)&&kO(t)||1,h(this,Po));h(this,_e)!==_(this,_e,n)&&(R(this,Bo,ra).call(this),this.refreshFrame())}get timeslice(){return h(this,bt)}set timeslice(t){if(t===h(this,bt)||ue(t)&&h(this,bt)===$s)return;const{from:n,to:o,span:s,offsets:r}=t;_(this,bt,t),_(this,ko,n-r.from),_(this,jo,o-r.to),_(this,Fo,s);const a=G(h(this,Ie))?h(this,Ie):Math.max(h(this,Ie),n),i=G(h(this,me))?h(this,me):Math.min(h(this,me),o);a===h(this,Ie)||i===h(this,me)?(_(this,Ie,a),_(this,me,i)):_(this,Ie,_(this,me,void 0)),this.reslice(),_(this,Po,Xi(12,this.numberOfBlocks)),_(this,_e,Xi(h(this,_e),this.numberOfBlocks)),this.shiftFrameToTimestamp(h(this,Zt))}set trackCurrentDay(t){jr(t)?t&&!h(this,Dt)?_(this,Dt,h(this,Fn).subscribe(this.refreshFrame.bind(this,!0))):!t&&h(this,Dt)&&(h(this,Dt).call(this),_(this,Dt,void 0)):ue(t)&&(this.trackCurrentDay=!1)}get units(){return h(this,Wo)}initialize(){this.withCurrentDayTimestamp(h(this,Fn).timestamp),this.timeslice=$s}refreshFrame(t=!1){var n;if(h(this,Jt).length=0,!(G(h(this,Ue))||t)){const o=this.getFrameBlockAtIndex(h(this,$e)),{from:s,to:r}=o.inner,[a]=R(this,Tt,Ut).call(this,this.getTimestampAtIndex(s+h(this,Ue)),!1);_(this,Ue,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(s),a));const i=s+h(this,Ue),c=on(s,i,r);if(c>i)return _(this,Ue,this.getUnitsForFrameBlockAtIndex(--zt(this,$e)._)+i-c),h(this,$e)>=0?this.refreshFrame():(_(this,$e,h(this,_e)-1),this.shiftFrameByOffset(-1,_s));if(c<i)return _(this,Ue,i-c-1),++zt(this,$e)._<h(this,_e)?this.refreshFrame():(_(this,$e,0),this.shiftFrameByOffset(1,_s));_(this,$o,s),_(this,Ro,r),_(this,Zt,R(this,Tt,Ut).call(this,this.getTimestampAtIndex(i),!1)[0]),_(this,Ue,this.getCursorBlockOriginTimestampOffset(h(this,Zt))),_(this,ot,s+h(this,Ue));const d=h(this,$e)>0?this.getFrameBlockAtIndex(0):o,g=h(this,$e)<h(this,_e)-1?this.getFrameBlockAtIndex(h(this,_e)-1):o;_(this,xo,d.inner.from),_(this,wo,g.inner.to),_(this,Wo,g.outer.to)}this.withCurrentDayTimestamp(h(this,Fn).timestamp),(n=h(this,kn))==null||n.call(this)}shiftFrameByOffset(t,n){if(t&&_o(t))switch(n){case au:return R(this,Qt,mo).call(this,t);case Ts:return R(this,Qt,mo).call(this,t*12);case _s:default:return R(this,Qt,mo).call(this,t*h(this,_e))}}shiftFrameCursor(t){switch(t){case Jl:return R(this,Re,Fe).call(this,-1);case ql:return R(this,Re,Fe).call(this,1);case su:return R(this,Re,Fe).call(this,-this.rowspan);case Kl:return R(this,Re,Fe).call(this,this.rowspan);case Xl:return R(this,Re,Fe).call(this,h(this,$o)-h(this,ot));case Ql:return R(this,Re,Fe).call(this,h(this,Ro)-h(this,ot));case tu:return R(this,Re,Fe).call(this,-(h(this,ot)%this.rowspan));case eu:return R(this,Re,Fe).call(this,this.rowspan-(h(this,ot)%this.rowspan+1));case ou:return R(this,Re,Fe).call(this,-this.getUnitsForFrameBlockAtIndex((h(this,$e)??0)-1));case nu:return R(this,Re,Fe).call(this,this.getUnitsForFrameBlockAtIndex(h(this,$e)??0))}if(!(t<0)&&t>=h(this,xo)&&t<=h(this,wo))return R(this,Re,Fe).call(this,t-h(this,ot))}shiftFrameToTimestamp(t){const n=R(this,Tt,Ut).call(this,t,!1)[0];_(this,Ue,this.getCursorBlockOriginTimestampOffset(_(this,Zt,this.originTimestamp=n))),this.reoriginate(),[zt(this,Ot)._,zt(this,_t)._]=this.getEdgeBlockOffsetsFromOrigin(),R(this,Bo,ra).call(this),this.refreshFrame(),R(this,Re,Fe).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(h(this,ot)),n))}clearSelection(){this.blankSelection||(_(this,Ie,_(this,me,void 0)),this.refreshFrame(!0))}getCursorOrderForTimeRelativeToSelectionEdge(t,n=Le){let o,s=!1;switch(n){case Le:o=h(this,Ie);break;case We:o=h(this,me),s=!0;break}if(G(o))return 0;const r=R(this,Tt,Ut).call(this,t,!1).reduce((i,c)=>i+c,0),a=this.getUnitsOffsetForTimestamp(o,r)*(s?-1:1);return a&&(a>0?1:-1)}updateSelection(t,n){const o=h(this,Ie),s=h(this,me),r=R(this,Tt,Ut).call(this,t,!1).reduce((a,i)=>a+i,0);switch(n===Gi&&(r<=o?n=We:r>=s&&(n=Le)),n){case Le:_(this,Ie,r),_(this,me,Math.max(h(this,Ie),s??r));break;case We:_(this,me,r),_(this,Ie,Math.min(o??r,h(this,me)));break;case Gi:case Vi:{let a=Math.abs(r-(o??r)),i=Math.abs(r-(s??r));n===Vi&&([a,i]=[i,a]),a>i?_(this,Ie,r):_(this,me,r);break}case ru:default:_(this,Ie,_(this,me,r));break}(h(this,Ie)!==o||h(this,me)!==s)&&this.refreshFrame(!0)}};wn=new WeakMap,$e=new WeakMap,$o=new WeakMap,Ro=new WeakMap,xo=new WeakMap,wo=new WeakMap,ot=new WeakMap,Ue=new WeakMap,Zt=new WeakMap,Pn=new WeakMap,kn=new WeakMap,jn=new WeakMap,Jt=new WeakMap,It=new WeakMap,Po=new WeakMap,Ie=new WeakMap,me=new WeakMap,_e=new WeakMap,bt=new WeakMap,Fn=new WeakMap,Dt=new WeakMap,ko=new WeakMap,jo=new WeakMap,Ot=new WeakMap,_t=new WeakMap,Fo=new WeakMap,Wo=new WeakMap,ws=new WeakMap,Ps=new WeakMap,ks=new WeakSet,lu=function(t){return on(h(this,Ot),t||0,h(this,_t)-h(this,_e)+1)},Tt=new WeakSet,Ut=function(t,n=!0){let o=new Date(t).getTime();if(isNaN(o))return R(this,Tt,Ut).call(this,Date.now());const{from:s,to:r}=h(this,bt),a=on(s,o,r);a!==o&&n?(o=mc(s,r),(isNaN(o)||sn(o))&&(o=a)):o=a;const i=Ln(o);return[o-i,i]},js=new WeakSet,uu=function(t){if(_o(t)&&t>=0&&t<h(this,_e)){if(!h(this,Jt)[t]){const n=this.getFrameBlockAtIndex(t);if(!n)return;const o=`${n.year}-${`0${1+n.month}`.slice(-2)}-01`,[s,r]=this.getFormattedDataForFrameBlock(new Date(o).setHours(12)),a=n.outer.from;h(this,Jt)[t]=Lt({datetime:x(r),label:x(s),length:x(Math.ceil(n.outer.units/this.rowspan)),month:x(n.month),year:x(n.year)},i=>{const c=i*this.rowspan;return Lt(this.rowspan,d=>{const[g,u]=n[d+c],[p,m]=this.getFormattedDataForBlockCell(new Date(g).setHours(12));return H({datetime:x(m),flags:x(cu(u)),index:x(a+d+c),label:x(p),timestamp:x(g)})})})}return h(this,Jt)[t]}},Re=new WeakSet,Fe=function(t){t!==0&&(_(this,Ue,h(this,Ue)+t),this.refreshFrame())},Qt=new WeakSet,mo=function(t){const n=R(this,ks,lu).call(this,t);n&&(this.shiftOrigin(n),_(this,Ot,h(this,Ot)-n),_(this,_t,h(this,_t)-n),_(this,$e,os(h(this,$e)-n,h(this,_e))),this.refreshFrame())},Bo=new WeakSet,ra=function(){const t=h(this,_e)-1,n=Math.min(t-this.origin%h(this,_e),h(this,_t))-t;n&&R(this,Qt,mo).call(this,n)},S(Cn,wn,"en-US");let sa=Cn;var Xt,Kt,Wn,zo,Bn,zn,Uo,Yo,Ho,Go,Un,Yn,Hn,Vo,aa,$t,In,Gn,As;class UO extends sa{constructor(){super();S(this,Vo);S(this,$t);S(this,Gn);S(this,Xt,7);S(this,Kt,[]);S(this,Wn,Ki(this.firstWeekDay));S(this,zo,void 0);S(this,Bn,-1/0);S(this,zn,1/0);S(this,Uo,1/0);S(this,Yo,void 0);S(this,Ho,void 0);S(this,Go,void 0);S(this,Un,void 0);S(this,Yn,void 0);S(this,Hn,void 0);w(this,"daysInWeek",h(this,Xt));this.initialize()}get fromTimestamp(){return h(this,Bn)}get toTimestamp(){return h(this,zn)}get numberOfBlocks(){return h(this,Uo)}get currentDayTimestamp(){return h(this,zo)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const o=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==o&&this.refreshFrame(!0)}get rowspan(){return h(this,Xt)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const o=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==o&&(h(this,Kt).length=0,_(this,Wn,Ki(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return new Date(n).getDate()-1}getDayOfWeekAtIndex(n){if(!h(this,Kt)[n]){const o=new Date(this.getTimestampAtIndex(n));let s=0;h(this,Wn).includes(n)&&(s|=pe.WEEKEND),n===0?s|=pe.LINE_START:n===6&&(s|=pe.LINE_END);const r={};for(const a of OO)r[a]=x(o.toLocaleDateString(this.locale,{weekday:a}));h(this,Kt)[n]=H({flags:x(cu(s)),labels:x(H(r))})}return h(this,Kt)[n]}getEdgeBlockOffsetsFromOrigin(){return[R(this,Vo,aa).call(this,h(this,Bn)),R(this,Vo,aa).call(this,h(this,zn))]}getFormattedDataForBlockCell(n){const o=new Date(n).toISOString();return[Number(o.slice(8,10)).toLocaleString(this.locale),o.slice(0,10)]}getFormattedDataForFrameBlock(n){const o=new Date(n);return[o.toLocaleDateString(this.locale,{month:"long",year:"numeric"}),o.toISOString().slice(0,7)]}getFrameBlockAtIndex(n){const[o,s,r]=ec(this.origin,h(this,Un),n),a=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:h(this,Ho),i=a+o-1,c=Math.floor(a/7)*7,d=this.dynamicBlockHeight?Math.ceil((i+1)/7)*7:c+Yi,g=this.dynamicBlockHeight?d-c:Yi,u=new Proxy(H(),ir({get:(p,m,y)=>{if(qe(m)){const f=+m;if(_o(f)&&f>=0&&f<g){const A=c+f,I=this.getTimestampAtIndex(A),M=A%h(this,Xt);let L=I===this.currentDayTimestamp?pe.CURRENT:0;return A===this.cursor&&(L|=pe.CURSOR),h(this,Wn).includes(M)&&(L|=pe.WEEKEND),M===0?L|=pe.LINE_START:M===h(this,Xt)-1&&(L|=pe.LINE_END),A>=a&&A<=i&&(A===a?L|=pe.BLOCK_START:A===i&&(L|=pe.BLOCK_END),L|=pe.WITHIN_BLOCK),I>=this.fromTimestamp&&I<=this.toTimestamp&&(I===this.fromTimestamp&&(L|=pe.RANGE_START),I===this.toTimestamp&&(L|=pe.RANGE_END),L|=pe.WITHIN_RANGE),I>=h(this,Yn)&&I<=h(this,Hn)&&(I===h(this,Yn)&&(L|=pe.SELECTION_START),I===h(this,Hn)&&(L|=pe.SELECTION_END),L|=pe.WITHIN_SELECTION),[I,L]}}return Reflect.get(p,m,y)}}));return oo(u,{inner:{value:H({from:{value:a},to:{value:i},units:{value:o}})},month:{value:s},outer:{value:H({from:{value:c},to:{value:d-1},units:{value:g}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return ec(this.origin,h(this,Un),n)[0]}getUnitsOffsetForTimestamp(n,o){return Math.round((o-n)/DO)}reoriginate(){const n=new Date(this.originTimestamp),o=(8-(n.getDate()-n.getDay()+this.firstWeekDay)%7)%7;this.origin=n.getMonth(),_(this,Un,n.getFullYear()),this.originTimestamp=n.setDate(1),_(this,Ho,o),_(this,Go,n.setDate(1-o)),_(this,Yo,n.getDate())}reslice(){R(this,Gn,As).call(this),_(this,Bn,R(this,$t,In).call(this,super.fromTimestamp)),_(this,zn,R(this,$t,In).call(this,super.toTimestamp)),_(this,Uo,na(super.fromTimestamp,super.toTimestamp)+1)}shiftOrigin(n){this.originTimestamp=new Date(this.originTimestamp).setMonth(this.origin+n),this.reoriginate()}clearSelection(){super.clearSelection(),R(this,Gn,As).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return new Date(h(this,Go)).setDate(h(this,Yo)+n)}updateSelection(n,o){super.updateSelection(n,o),R(this,Gn,As).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(n){_(this,zo,R(this,$t,In).call(this,n))}}Xt=new WeakMap,Kt=new WeakMap,Wn=new WeakMap,zo=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Uo=new WeakMap,Yo=new WeakMap,Ho=new WeakMap,Go=new WeakMap,Un=new WeakMap,Yn=new WeakMap,Hn=new WeakMap,Vo=new WeakSet,aa=function(n){const o=na(n,this.originTimestamp);return n<this.originTimestamp?0-o:o},$t=new WeakSet,In=function(n){return G(n)||sn(n)?n:n-Ln(n)},Gn=new WeakSet,As=function(){_(this,Yn,R(this,$t,In).call(this,this.selectionStart)),_(this,Hn,R(this,$t,In).call(this,this.selectionEnd))};var dc,hc,le,st,C,rt,Ve,at,Ne,qt,Ye,Vn,At,St,Ze,ht,Zn,Fs,Rt,Je,Ws,xt,Jn,en,Zo,Bs,se,zs,Us,Ys,Hs,Gs,Vs,Zs,du,Js,hu,Qs,gu,Xs,Qn,Ss,tn,po,Jo,ia,Ks,mu,qs,pu,er,fu,tr,yu,Qo,ca,nr,Iu,nn,fo,Xo,la,Xn,Ns,Ko,ua,qo,da,es,ha,ts,ga;let YO=(se=class{constructor(){S(this,tn);S(this,Jo);S(this,Ks);S(this,qs);S(this,er);S(this,tr);S(this,Qo);S(this,nr);S(this,nn);S(this,Xo);S(this,Xn);S(this,Ko);S(this,qo);S(this,es);S(this,ts);w(this,"grid");w(this,"kill");S(this,le,U);S(this,st,!1);S(this,C,void 0);S(this,rt,void 0);S(this,Ve,void 0);S(this,at,!1);S(this,Ne,Sn);S(this,qt,!1);S(this,Ye,void 0);S(this,Vn,(dc=h(this,Ye))==null?void 0:dc.join(" "));S(this,At,void 0);S(this,St,void 0);S(this,Ze,void 0);S(this,ht,void 0);S(this,Zn,void 0);S(this,Fs,iu());S(this,Rt,[]);S(this,Je,void 0);S(this,Ws,new Proxy(Lt(()=>{var t;return((t=h(this,Je))==null?void 0:t.length)??0},R(this,Qo,ca).bind(this)),ir({get:(t,n,o)=>{var r,a;const s=((r=h(this,Je))==null?void 0:r.indexOf(n))??-1;return s>=0?(a=R(this,Qo,ca).call(this,s))==null?void 0:a[1]:Reflect.get(t,n,o)}})));S(this,xt,as({blocks:()=>{var t;return(t=h(this,C))==null?void 0:t.size},cells:()=>{var t;return(t=h(this,C))==null?void 0:t.units},controls:()=>lo(Hi,h(this,le).controls),cursor:()=>{var t;return(t=h(this,C))==null?void 0:t.cursor},from:()=>{var t;return(t=h(this,C))==null?void 0:t.selectionStart},highlight:()=>h(this,Ne),locale:()=>{var t;return(t=h(this,C))==null?void 0:t.locale},minified:()=>pn(h(this,le).minified),origin:()=>{var t;return(t=h(this,C))==null?void 0:t.getTimestampAtIndex(0)},to:()=>{var t;return(t=h(this,C))==null?void 0:t.selectionEnd},today:()=>h(this,Fs).timestamp}));S(this,Jn,(hc=h(this,xt))==null?void 0:hc.snapshot);S(this,en,Qi(()=>{var t;return h(this,Ze)&&((t=h(this,xt))==null?void 0:t.requestNotification())}));S(this,Zo,Qi(()=>{var t;return(t=h(this,Ze))==null?void 0:t.call(h(this,tn,po))}));S(this,Bs,oo(Lt(()=>{var t;return((t=h(this,C))==null?void 0:t.size)??0},t=>{var n;return(n=h(this,C))==null?void 0:n.frameBlocks[t]}),{config:{value:Object.defineProperties(t=>(t&&R(this,qs,pu).call(this,t),h(this,tn,po)),{cursorIndex:{get:()=>h(this,At),set:t=>{h(this,st)||(ue(t)?_(this,At,void 0):K(t)&&_(this,At,t))}},shiftFactor:{get:()=>h(this,St),set:t=>{h(this,st)||(ue(t)?_(this,St,void 0):K(t)&&_(this,St,t))}},watch:{get:()=>h(this,Ze),set:t=>{var n,o,s,r,a;if(!h(this,st))if(K(t)){if(_(this,Ze,t),!h(this,ht)){const i=(n=h(this,en))==null?void 0:n.bind(h(se,Xs).bind(this));i&&(_(this,ht,(o=h(this,en))==null?void 0:o.bind(oe)),_(this,Zn,(r=h(this,xt))==null?void 0:r.subscribe((s=h(this,Zo))==null?void 0:s.bind(i))),h(this,C)&&(h(this,C).effect=h(this,ht)))}if(!h(this,qt))return;_(this,qt,!1),(a=h(this,ht))==null||a.call(this)}else ue(t)&&_(this,Ze,void 0)}}})},controls:{value:h(this,Ws)},cursor:{value:Object.defineProperties(t=>R(se,Qn,Ss).call(this,n=>!!(n&&R(this,er,fu).call(this,n)))(t),{valueOf:{value:()=>{var t;return((t=h(this,C))==null?void 0:t.cursor)??-1}}})},highlight:{value:(()=>{const t=()=>h(this,rt)===h(this,Ve)&&G(h(this,Ve)),n=o=>s=>R(se,Qn,Ss).call(this,r=>{var a,i,c,d,g;if(!(h(this,st)||!h(this,Ne)||h(this,Ne)===Sn)){if(ue(r))return R(this,Xo,la).call(this);t()?(i=h(this,C))==null||i.updateSelection(r,ru):((a=h(this,C))==null||a.updateSelection(r,o),h(this,Ne)===Ht&&h(this,Ye)&&R(this,Xn,Ns).call(this,r,o===Le?We:Le,h(this,Ye))),_(this,rt,(c=h(this,C))==null?void 0:c.selectionStart),_(this,Ve,(d=h(this,C))==null?void 0:d.selectionEnd),(g=h(this,C))==null||g.shiftFrameToTimestamp(o===Le?h(this,rt):h(this,Ve))}})(s);return H({blank:{get:t},from:{get:()=>{var o;return((o=h(this,C))==null?void 0:o.selectionStart)??h(this,rt)},set:n(Le)},to:{get:()=>{var o;return((o=h(this,C))==null?void 0:o.selectionEnd)??h(this,Ve)},set:n(We)}})})()},rowspan:{get:()=>{var t;return((t=h(this,C))==null?void 0:t.rowspan)??0}},weekdays:{get:()=>{var t;return((t=h(this,C))==null?void 0:t.daysOfWeek)??h(se,Ys)}}}));this.grid=h(this,Bs),this.kill=R(this,tr,yu).bind(this)}},le=new WeakMap,st=new WeakMap,C=new WeakMap,rt=new WeakMap,Ve=new WeakMap,at=new WeakMap,Ne=new WeakMap,qt=new WeakMap,Ye=new WeakMap,Vn=new WeakMap,At=new WeakMap,St=new WeakMap,Ze=new WeakMap,ht=new WeakMap,Zn=new WeakMap,Fs=new WeakMap,Rt=new WeakMap,Je=new WeakMap,Ws=new WeakMap,xt=new WeakMap,Jn=new WeakMap,en=new WeakMap,Zo=new WeakMap,Bs=new WeakMap,zs=new WeakMap,Us=new WeakMap,Ys=new WeakMap,Hs=new WeakMap,Gs=new WeakMap,Vs=new WeakMap,Zs=new WeakSet,du=function(t){if(!qe(t)||!h(se,zs).test(t))return;const n=t.split(/\s+/);return Array.from({length:6},(o,s)=>parseInt(n[s]??"0"))},Js=new WeakSet,hu=function(t){switch(t&~yn.PREV){case yn.FRAME:return _s;case yn.PERIOD:return Ts;case yn.BLOCK:default:return au}},Qs=new WeakSet,gu=function(t){return t&yn.PREV?-1:1},Xs=new WeakMap,Qn=new WeakSet,Ss=function(t){var n;return((n=h(this,en))==null?void 0:n.bind(t))??t},tn=new WeakSet,po=function(){return{...h(this,le)}},Jo=new WeakSet,ia=function(){return new UO},Ks=new WeakSet,mu=function(t){return!!h(this,C)&&!(t>0?h(this,C).isAtEnd:h(this,C).isAtStart)},qs=new WeakSet,pu=function(t){var s,r;if(h(this,st))return;_(this,Ye,void 0);const n=t==null?void 0:t.highlight,o=pn(h(this,le).minified);if(qe(n)?_(this,Ye,R(s=se,Zs,du).call(s,n))&&_(this,Ne,Ht):_(this,Ne,lo(RO,n,h(this,Ne))),_(this,le,{...h(this,le),...t,blocks:lo(vn,t==null?void 0:t.blocks,h(this,le).blocks),controls:lo(Hi,t==null?void 0:t.controls,h(this,le).controls),firstWeekDay:lo(Zl,t==null?void 0:t.firstWeekDay,h(this,le).firstWeekDay),fixedBlockHeight:pn(t==null?void 0:t.fixedBlockHeight,h(this,le).fixedBlockHeight),highlight:h(this,Ne),minified:pn(t==null?void 0:t.minified,h(this,le).minified),trackCurrentDay:pn(t==null?void 0:t.trackCurrentDay,h(this,le).trackCurrentDay)}),!K(h(this,Ze))){h(this,C)?_(this,qt,!0):(_(this,C,h(this,Jo,ia)),R(this,qo,da).call(this),R(this,ts,ga).call(this),R(this,es,ha).call(this));return}(!h(this,C)||o!==h(this,le).minified)&&(_(this,C,h(this,Jo,ia)),h(this,C).effect=h(this,ht)),R(this,qo,da).call(this),(r=h(this,ht))==null||r.call(this)},er=new WeakSet,fu=function(t){if(t&&h(this,C)&&K(h(this,Ze))){if(t instanceof KeyboardEvent){switch(t.code){case z.ARROW_LEFT:h(this,C).shiftFrameCursor(Jl);break;case z.ARROW_RIGHT:h(this,C).shiftFrameCursor(ql);break;case z.ARROW_UP:h(this,C).shiftFrameCursor(su);break;case z.ARROW_DOWN:h(this,C).shiftFrameCursor(Kl);break;case z.HOME:h(this,C).shiftFrameCursor(t.ctrlKey?Xl:tu);break;case z.END:h(this,C).shiftFrameCursor(t.ctrlKey?Ql:eu);break;case z.PAGE_UP:t.shiftKey?h(this,C).shiftFrameByOffset(-1,Ts):h(this,C).shiftFrameCursor(ou);break;case z.PAGE_DOWN:t.shiftKey?h(this,C).shiftFrameByOffset(1,Ts):h(this,C).shiftFrameCursor(nu);break;case z.SPACE:case z.ENTER:return R(this,nn,fo).call(this),!0;default:return}return h(this,at)&&R(this,nn,fo).call(this,U),!0}if(t instanceof MouseEvent&&h(se,Us).includes(t.type)&&K(h(this,At))){const n=h(this,At).call(h(this,tn,po),t);if(!_o(n))return;const o=t.type==="click";if(!(o||h(this,at)))return;if(h(this,C).shiftFrameCursor(n),h(this,C).cursor===n)return o?R(this,nn,fo).call(this):R(this,nn,fo).call(this,U),!0}}},tr=new WeakSet,yu=function(){var t;h(this,st)||((t=h(this,Zn))==null||t.call(this),_(this,en,_(this,Zo,_(this,At,_(this,C,_(this,Ne,_(this,Vn,_(this,Jn,_(this,Ye,_(this,St,_(this,Zn,_(this,xt,_(this,ht,_(this,Ze,void 0))))))))))))),_(this,le,U),_(this,at,_(this,qt,!1)),_(this,st,!0))},Qo=new WeakSet,ca=function(t){var o,s;if(!h(this,Je)||t<0||t>=h(this,Je).length)return;const n=h(this,Je)[t];if(!h(this,Rt)[t]){const r=oa[n],a=R(o=se,Js,hu).call(o,r),i=R(s=se,Qs,gu).call(s,r);h(this,Rt)[t]=(...c)=>R(se,Qn,Ss).call(this,(...d)=>{var p;const g=R(this,Ks,mu).call(this,i);if(!(g&&d.length))return g;const u=R(this,nr,Iu).call(this,n,d[0]);return G(u)?!1:((p=h(this,C))==null||p.shiftFrameByOffset(i*u,a),!0)})(...c)}return[n,h(this,Rt)[t]]},nr=new WeakSet,Iu=function(t,n){if(!(h(this,C)&&K(h(this,Ze))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!h(se,Hs).includes(n.code))return}else return;let o=1;if(K(h(this,St))){const s=Number(h(this,St).call(h(this,tn,po),n,t));o=Number.isInteger(s)&&s>=1?s:o}return o},nn=new WeakSet,fo=function(t){if(h(this,st)||!h(this,C))return;switch(h(this,Ne)){case Ht:case Nn:break;case Sn:default:return}const n=h(this,C).cursor,o=Math.max(h(this,C).getTimestampAtIndex(n),h(this,C).timeslice.from),s=Math.min(h(this,C).getTimestampAtIndex(n+1)-1,h(this,C).timeslice.to),r=h(this,Ye);if(h(this,Ne)===Nn||h(this,C).blankSelection||r)if(_(this,at,!(h(this,Ne)===Nn||r)),h(this,Ne)===Ht&&r){const a=s>=h(this,C).selectionEnd?Le:We;a===Le?h(this,C).updateSelection(s,We):h(this,C).updateSelection(o,Le),R(this,Xn,Ns).call(this,a===Le?h(this,C).selectionEnd:h(this,C).selectionStart,a,r)}else h(this,C).updateSelection(o,Le),h(this,C).updateSelection(s,We);else{const a=t===U;if(a||_(this,at,!1),o<=h(this,C).selectionStart){const i=new Date(h(this,C).selectionStart),c=Math.min(i.setDate(i.getDate()+1)-1,h(this,C).timeslice.to);o===h(this,C).selectionStart&&s<=c&&h(this,C).updateSelection(s,We),h(this,C).updateSelection(o,Le)}else{const i=new Date(h(this,C).selectionEnd),c=Math.max(i.setHours(0,0,0,0),h(this,C).timeslice.from);o<=h(this,C).selectionEnd&&o>=c&&h(this,C).updateSelection(o,Le),h(this,C).updateSelection(s,We)}if(a)return}_(this,rt,h(this,C).selectionStart),_(this,Ve,h(this,C).selectionEnd)},Xo=new WeakSet,la=function(){var t;(t=h(this,C))==null||t.clearSelection(),_(this,at,!1),_(this,rt,_(this,Ve,void 0))},Xn=new WeakSet,Ns=function(t,n,o){if(!h(this,C))return;const s=new Date(t),r=n===Le?-1:1,[a=0,i=0,c=0,d=0,g=0,u=0]=o??[];s.setFullYear(s.getFullYear()+a*r,s.getMonth()+i*r,s.getDate()+c*r),s.setHours(s.getHours()+d*r,s.getMinutes()+g*r,s.getSeconds()+u*r),h(this,C).updateSelection(s.getTime()-r,n)},Ko=new WeakSet,ua=function(){var t,n;h(this,rt)&&((t=h(this,C))==null||t.updateSelection(h(this,rt),Le)),h(this,Ve)&&((n=h(this,C))==null||n.updateSelection(h(this,Ve),We)),_(this,at,!1)},qo=new WeakSet,da=function(){h(this,C)&&(h(this,C).timeslice=h(this,le).timeslice,h(this,C).dynamicBlockHeight=!h(this,le).fixedBlockHeight,h(this,C).firstWeekDay=h(this,le).firstWeekDay,h(this,C).locale=h(this,le).locale,h(this,C).size=h(this,le).blocks,h(this,C).trackCurrentDay=h(this,le).trackCurrentDay,R(this,Ko,ua).call(this))},es=new WeakSet,ha=function(){var t,n,o,s,r;switch(h(this,Ne)){case Ht:!Pt((t=h(this,C))==null?void 0:t.blankSelection)&&h(this,Ye)&&R(this,Xn,Ns).call(this,(n=h(this,C))==null?void 0:n.selectionStart,We,h(this,Ye));break;case Nn:Pt((o=h(this,C))==null?void 0:o.blankSelection)||(r=h(this,C))==null||r.updateSelection(new Date((s=h(this,C))==null?void 0:s.selectionStart).setHours(23,59,59,999),We);break;case Sn:default:R(this,Xo,la).call(this);return}},ts=new WeakSet,ga=function(){var t,n;switch((t=h(this,xt))==null?void 0:t.snapshot.controls){case Xa:_(this,Je,h(se,Gs));break;case Ka:_(this,Je,h(se,Vs));break;case qa:default:_(this,Je,void 0)}h(this,Rt).length=0,h(this,Rt).length=((n=h(this,Je))==null?void 0:n.length)??0},S(se,Zs),S(se,Js),S(se,Qs),S(se,Qn),S(se,zs,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),S(se,Us,["click","mouseover","pointerover"]),S(se,Ys,Lt(0,oe)),S(se,Hs,[z.ENTER,z.SPACE]),S(se,Gs,Object.keys(oa).filter(t=>isNaN(+t))),S(se,Vs,["PREV","NEXT"]),S(se,Xs,function(t){var a,i;if(so(t))return;let n=!1,o=!1,s=!1;const r=(a=h(this,Ye))==null?void 0:a.join(" ");for(const c of Object.keys(t))t[c]!==((i=h(this,Jn))==null?void 0:i[c])&&(c==="controls"?n=!0:c==="highlight"?o=!0:(c==="from"||c==="to")&&(s=!0));h(this,Vn)!==r&&(_(this,Vn,r),o=!0),_(this,Jn,t),h(this,at)&&!s&&R(this,Ko,ua).call(this),n&&R(this,ts,ga).call(this),o&&R(this,es,ha).call(this)}),se);const HO=(()=>Object.defineProperties(t=>{const{grid:n,kill:o}=new YO;return ns(t)?n.config({blocks:t}):K(t)?rr.then(()=>{n.config.watch=t}):n.config(t),H({grid:x(n),kill:x(o)})},{controls:{value:H({ALL:{value:Xa},MINIMAL:{value:Ka},NONE:{value:qa}})},highlight:{value:H({ONE:{value:Nn},MANY:{value:Ht},NONE:{value:Sn}})},slice:{value:Object.defineProperties(BO.bind(null),{FROM:{value:ei},TO:{value:ti},UNBOUNDED:{value:$s},SINCE_NOW:{get:FO},UNTIL_NOW:{get:WO}})}}))(),ut=HO,GO=({config:e,grid:{controls:t},renderer:n})=>e.controls===ut.controls.NONE||!K(n)?null:l(Z,{children:t.map(([o,s])=>n(o,s))}),VO=Se(GO),ZO=e=>{const t=N((n,o)=>{o instanceof Element&&o.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),rr.then(()=>n==null?void 0:n.focus()))},[]);return Et(N((n,o)=>{try{e==null||e(n,o)}finally{t(n,o)}},[e]))},JO=ZO,QO=({blocks:e,controls:t,dynamicBlockRows:n,firstWeekDay:o,highlight:s,locale:r,onHighlight:a,originDate:i,renderControl:c,sinceDate:d,trackCurrentDay:g,untilDate:u,useYearView:p},m)=>{const{i18n:y}=Q(),[f,A]=B(performance.now()),I=T(()=>ut.slice(d,u),[d,u]),M=k(U),L=T(()=>t??(K(c)?ut.controls.MINIMAL:ut.controls.NONE),[t,c]),E=T(()=>s??(K(a)?ut.highlight.ONE:ut.highlight.NONE),[s,a]),{grid:v,kill:$}=T(()=>{const{grid:O,kill:j}=ut(function(){A(performance.now()),M.current=this,!(te===O.highlight.from&&Y===O.highlight.to)&&(te=O.highlight.from,Y=O.highlight.to,a==null||a(te,Y))});let{from:te,to:Y}=O.highlight;return O.config.cursorIndex=q=>{let ne=q.target;for(;ne&&ne!==q.currentTarget;){const re=Number(ne.dataset.cursorPosition);if(Number.isFinite(re))return re;ne=ne.parentNode}},O.config.shiftFactor=function(q){if(this.controls===ut.controls.MINIMAL)return q!=null&&q.shiftKey?12:q!=null&&q.altKey?this.blocks:1},{grid:O,kill:j}},[]),b=T(()=>{const O=j=>{v.cursor(j)};return{onClickCapture:O,onMouseOverCapture:O,onPointerOverCapture:O,onKeyDownCapture:j=>{v.cursor(j)&&j.preventDefault()}}},[v]),D=JO(N((O,j)=>{j instanceof Element&&j.removeAttribute("aria-selected"),O instanceof Element&&O.setAttribute("aria-selected","true")},[]));return fv(m,()=>{const{from:O,to:j}=(v==null?void 0:v.highlight)||U;return{clear:()=>{v!=null&&v.highlight&&(v.highlight.from=void 0)},get config(){return{...M.current??U}},get from(){return qi(O)},set from(te){v!=null&&v.highlight&&te&&(v.highlight.from=te.getTime())},get to(){return qi(j)},set to(te){v!=null&&v.highlight&&te&&(v.highlight.to=te.getTime())}}},[v,f]),W(()=>{v.config({blocks:e,controls:L,firstWeekDay:o,fixedBlockHeight:!n,highlight:E,locale:r??y.locale,minified:p,timeslice:I,trackCurrentDay:g})},[L,E,e,n,o,v,y,r,I,g,p]),W(()=>{const O=[].concat(i).slice(0,2).map(Number).filter(Boolean);return O[0]&&(v.highlight.from=+O[0]),O[1]&&(v.highlight.to=+O[1]),$},[]),{cursorElementRef:D,cursorRootProps:b,grid:v}},XO=QO,KO=ro((e,t)=>{const n=XO(e,t),o=n.grid.config();return l("div",{role:"none",children:[l(VO,{config:o,grid:n.grid,renderer:e.renderControl}),l(bO,{ref:n.cursorElementRef,config:o,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:e.onlyCellsWithin,prepare:e.prepare})]})}),qO=Se(KO),e$=(e,t)=>{const[n,o]=B(),s=Et(T(()=>{const r=a=>(...i)=>{const c=e(a,...i);return c&&dl(c,a)};return o(void 0),a=>o(a instanceof Element?()=>r(a):void 0)},[e,t]),t);return[n,s]},t$=e$,n$=e=>{const{i18n:t}=Q();return t$(N((n,o,s)=>{if(!(n instanceof HTMLElement))return null;if(K(e))return e(o,s);let r,a,i;switch(o){case"PREV":r="prev",a="previous",i=za;break;case"NEXT":r=a="next",i=mr;break;default:return null}const c=s();return c?l(et,{"aria-label":t.get(`calendar.${a}Month`),variant:Oe.TERTIARY,disabled:!c,classNameModifiers:["circle",r],iconButton:!0,onClick:s,children:l(i,{role:"presentation"})},o):null},[t,e]))},o$=n$;const s$=ro((e,t)=>{const{i18n:n}=Q(),[o,s]=o$(e.renderControl),[r,a]=B(performance.now()),i=T(()=>Pt(e.showTimezoneInfo),[e.showTimezoneInfo]),{clockTime:c,GMTOffset:d}=z0({timezone:e.timezone,withClock:i}),g=T(()=>F([{"adyen-pe-datepicker--with-timezone":i},"adyen-pe-datepicker"]),[i]),u=T(()=>i?{values:{offset:d,time:c}}:U,[d,c,i]),p=Et(oe,t),m=N(()=>{var y,f,A,I,M;a(performance.now()),(y=p.current)!=null&&y.from&&((f=p.current)!=null&&f.to)&&((M=e.onHighlight)==null||M.call(e,+((A=p.current)==null?void 0:A.from),+((I=p.current)==null?void 0:I.to)))},[a,e.onHighlight]);return l("div",{className:g,children:[l("div",{className:"adyen-pe-datepicker__selector-container",children:l(AO,{now:e.now,calendarRef:p,onTimeRangeSelected:e.onPresetOptionSelected,options:e.timeRangePresetOptions,selectedOption:e.selectedPresetOption,timestamp:r,timezone:e.timezone})}),l("div",{ref:s,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),l(qO,{...e,ref:p,firstWeekDay:Ja,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:e.controls??ut.controls.MINIMAL,highlight:e.highlight??ut.highlight.MANY,onHighlight:m,renderControl:o}),i&&l("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",u)})]})}),r$=s$;const a$="adyen-pe-filter-button";function i$({className:e,classNameModifiers:t=[],children:n,disabled:o,onClick:s,...r},a){const i=T(()=>Mn("",e)||"",[e]),c=T(()=>Oa(o),[o]),{classes:d,click:g}=$a(i,t,a$,c,s);return l("button",{className:d,ref:a,onClick:g,...r,children:l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,children:n})})}const c$=He(i$);function _u({onInput:e,onKeyUp:t,trimOnBlur:n,onBlurHandler:o,onBlur:s,onFocusHandler:r,errorMessage:a,...i},c){const{autoCorrect:d,classNameModifiers:g,isInvalid:u,isValid:p,readonly:m=!1,spellCheck:y,type:f,uniqueId:A,isCollatingErrors:I,disabled:M}=i;it(i,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const L=N(ne=>{e==null||e(ne)},[e]),E=N(ne=>{t&&t(ne)},[t]),v=N(ne=>{o==null||o(ne),n&&(ne.target.value=ne.target.value.trim()),s==null||s(ne)},[s,o,n]),$=N(ne=>{r==null||r(ne)},[r]),b=F("adyen-pe-input",[`adyen-pe-input--${f}`],i.className,{"adyen-pe-input--invalid":u,"adyen-pe-input--valid":p},g==null?void 0:g.map(ne=>`adyen-pe-input--${ne}`)),{classNameModifiers:D,uniqueId:O,isInvalid:j,isValid:te,isCollatingErrors:Y,...q}=i;return l(Z,{children:[l("input",{id:A,...q,type:f,className:b,readOnly:m,"aria-describedby":I?void 0:`${A}${ta}`,"aria-invalid":u,onInput:L,onBlur:v,onFocus:$,onKeyUp:E,disabled:M,ref:c}),u&&a&&l("span",{className:"adyen-pe-input__invalid-value",id:`${A}${ta}`,children:a})]})}_u.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const ma=ro(_u),l$=ro(function(t,n){return l(ma,{classNameModifiers:t.classNameModifiers,...t,ref:n,"aria-required":t.required,type:"text"})}),u$=e=>!e||gd(e),d$=(()=>{const e=t=>{const{editAction:n,name:o,onChange:s,onValueUpdated:r}=t,[a,i]=B(t.value),c=N(d=>{const g=d.target.value.trim();i(g),r(g)},[r]);return W(()=>{if(n===Me.CLEAR){const d="";i(d),r(d),s(d)}n===Me.APPLY&&s(a??"")},[a,n,s,r]),l(l$,{name:o,value:a,onInput:c})};return t=>l(e,{...t})})(),h$=({render:e,...t})=>{var te;const n=Ae(Te.down.xs),[o,s]=gt(!1),[r,a]=gt(!1),i=T(()=>t.isValueEmpty??u$,[t.isValueEmpty]),[c,d]=gt(i(t.value)),[g,u]=gt(!1),[p,m]=gt(!1),[y,f]=gt(i(t.value)),A=Os(),I=T(()=>e??d$,[e]),M=N(Y=>{const q=i(Y??void 0);d(q),f(Ms(Y)),m(g?Y!==t.value:!q)},[i,d,f,m,g,t.value]),{commitAction:L,commitActionButtons:E,committing:v,resetCommitAction:$}=Rl({applyDisabled:y||!p,resetDisabled:c}),[b,D]=T(()=>{const Y=q=>()=>{q!==o&&(q&&($(),m(!1),u(!1)),s(q),a(q))};return[Y(!1),Y(!0)]},[s,o,$,a,u,m]);W(()=>{if(r){const Y=i(t.value);a(!1),d(Y),u(!Y)}},[t.value,r,i,a,d,u]),W(()=>{v&&b(),d(c)},[v,b,d,c]);const O=Ae(Te.only.sm),j=Ae(Te.only.md);return l(Z,{children:[l("div",{className:`adyen-pe-filter adyen-pe-filter--${t.type}`,children:T(()=>l(c$,{classNameModifiers:[...t.appliedFilterAmount?["with-counter"]:[],...t.classNameModifiers??[],...o?["active"]:[],...c?[]:["has-selection"]],onClick:o?b:D,tabIndex:0,ref:A,children:l("div",{className:"adyen-pe-filter-button__default-container",children:[l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:t.label}),!!t.appliedFilterAmount&&l("div",{className:"adyen-pe-filter-button__counter-wrapper",children:l(X,{el:eo.SPAN,variant:P.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:t.appliedFilterAmount})})]})}),[t.appliedFilterAmount,t.classNameModifiers,t.label,o,c,b,D,A])}),o&&l(Fa,{actions:E,title:(te=t.title)==null?void 0:te.trim(),variant:De.POPOVER,modifiers:["filter"],open:o,"aria-label":`${t.label}`,dismiss:b,dismissible:!1,withContentPadding:t.withContentPadding??!0,divider:!0,targetElement:A,disableFocusTrap:!1,position:ae.BOTTOM,containerSize:t.containerSize,showOverlay:n,fitPosition:O||j,children:I({...t,editAction:L,onValueUpdated:M})})]})},Tu=Se(h$);var Mo=(e=>(e.FROM="from",e.TO="to",e))(Mo||{});const Au={month:"short",day:"numeric",year:"numeric"},g$=new Intl.DateTimeFormat("en-US",Au),Su=(e,t,n,o)=>{const s=n&&t(n),r=o&&t(o);if(s&&r)return`${s} - ${r}`;if(s)return e.get("filter.date.since",{values:{date:s}});if(r)return e.get("filter.date.until",{values:{date:r}})},mt=e=>{try{return new Date(e||"").toISOString()}catch{return""}},m$=(()=>{const e=({editAction:t,from:n,to:o,now:s,onChange:r,onValueUpdated:a,showTimezoneInfo:i,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,sinceDate:u,untilDate:p})=>{const{i18n:m}=Q(),{fullDateFormat:y}=ao(g),[f,A]=B(c),I=T(()=>[new Date(n),new Date(o)],[n,o]),M=k(),L=N((E,v)=>{a(Su(m,y,mt(E),mt(v)))},[m,y,a]);return W(()=>{var E,v,$;switch(t){case Me.APPLY:r({selectedPresetOption:f,[Mo.FROM]:mt((E=M.current)==null?void 0:E.from),[Mo.TO]:mt((v=M.current)==null?void 0:v.to)});break;case Me.CLEAR:($=M.current)==null||$.clear(),r()}},[t,r,f]),l(r$,{ref:M,now:s,originDate:I,onHighlight:L,onPresetOptionSelected:A,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,showTimezoneInfo:i,sinceDate:mt(u),untilDate:mt(p)})};return t=>l(e,{...t})})(),p$=(e,t,n)=>e.formatRange(t,n);function f$({title:e,from:t,to:n,selectedPresetOption:o,...s}){const{i18n:r}=Q(),{fullDateFormat:a}=ao(s.timezone),[i,c]=B(),[d,g]=B(),[u,p]=B(),m=N(I=>{const{from:M,to:L,selectedPresetOption:E}=I??U;try{c(i??E),g(mt(d??M)),p(mt(u??L))}finally{s.onChange({from:M,to:L,selectedPresetOption:E})}},[i,d,u,s]),[y,f]=T(()=>{let I=g$;try{I=new Intl.DateTimeFormat(r.locale,Au)}catch{}return[r.get("rangePreset.custom"),I]},[r]);W(()=>c(o),[o]),W(()=>g(mt(t||Date.now())),[t]),W(()=>p(mt(n||Date.now())),[n]);const A=T(()=>o===y&&d&&u?p$(f,new Date(d),new Date(u)):o??s.label,[y,f,d,u,o,s.label]);return l(Tu,{...s,from:t,to:n,type:"date",label:A,onChange:m,render:m$,selectedPresetOption:o,value:Su(r,a,t,n),withContentPadding:!1})}const y$=({timezone:e,canResetFilters:t,defaultParams:n,filters:o,nowTimestamp:s,refreshNowTimestamp:r,sinceDate:a,untilDate:i,updateFilters:c})=>{const{i18n:d}=Q(),g=T(()=>d.get(n.current.defaultTimeRange),[d]),[u,p]=B(g),m=N((y=U)=>{for(const[f,A]of Object.entries(y)){switch(f){case"selectedPresetOption":p(A||g);break;case Mo.FROM:c({[V.CREATED_SINCE]:A||n.current.defaultFilterParams[V.CREATED_SINCE]});break;case Mo.TO:c({[V.CREATED_UNTIL]:A||n.current.defaultFilterParams[V.CREATED_UNTIL]});break;default:return}r()}},[g,r,c]);return T(()=>!t&&p(g),[t,g]),l(f$,{label:d.get("dateRange"),name:V.CREATED_SINCE,sinceDate:a,untilDate:i??new Date(s).toString(),from:o[V.CREATED_SINCE],to:o[V.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:e,onChange:m,showTimezoneInfo:!0,now:s})},Nu=y$,I$=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),_$=I$;function Lu(e){const{i18n:t}=Q(),n=Ae(Te.down.xs),[o,s]=B(!n);return W(()=>{s(!n)},[n]),l(Z,{children:[n&&l("div",{className:"adyen-pe-filter-bar__header",children:[l(X,{variant:P.SUBTITLE,children:t.get("transactions")}),l(et,{className:"adyen-pe-filter-bar__header-icon",variant:Oe.SECONDARY,iconButton:!0,onClick:()=>s(r=>!r),children:o?l(Tl,{}):l(_$,{})})]}),o&&l("div",{"aria-label":t.get("filterBar"),className:F("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":n}),children:[e.children,e.canResetFilters&&!!e.resetFilters&&l(et,{variant:Oe.TERTIARY,onClick:e.resetFilters,children:t.get("button.clearAll")})]})]})}function T$(e){return"callback"in e}function Cu(e){const[t,n]=B(null),o=N(a=>{var i;return a&&T$(e[a.selection.type])?{callback:(i=e==null?void 0:e[a.selection.type])!=null&&i.callback?c=>{var d,g;return(g=(d=e[a.selection.type])==null?void 0:d.callback)==null?void 0:g.call(d,{showModal:()=>n(a),...c})}:()=>{var c;return((c=e[a.selection.type])==null?void 0:c.showDetails)&&n(a)}}:(n(a),{})},[e]),s=N(()=>n(null),[]),r=T(()=>{const a={};for(const i in e){const c=e[i];a[i]=!(c!=null&&c.showDetails)||!!c.callback}return a},[e]);return{selectedDetail:t,updateDetails:o,detailsToShow:r,resetDetails:s}}const Mu=Object.freeze([10,20]),A$=100,Rs=10,pa=e=>{const t=~~e;return t===e&&t>0?Math.min(t,A$):Math.max(t,0)},S$=(e,t)=>{const n=e.length-1;if(n<0)return t;if(t<=e[0])return e[0];if(t>=e[n])return e[n];let o=0,s=0,r=n;for(;;){const a=e[o=mc(s,r)];if(s>r||t===a)return a;t>a?s=o+1:r=o-1}},N$=({preferredLimit:e=Rs,preferredLimitOptions:t})=>{const n=k(),o=k(),s=T(()=>{try{const a=new Set;for(const i of t){const c=pa(i);c>0&&a.add(c)}return Object.freeze([...a].sort((i,c)=>i-c))}catch{}},[t]);return{limit:T(()=>{let a=pa(e)||Rs;e:try{if(n.current===s)break e;const i=new Set(n.current=s);if(i.size===0){n.current=void 0;break e}if(o.current!==a)t:{if(i.size===i.add(a).size)break t;if(i.delete(a),i.size===i.add(o.current).size){if(ns(o.current)){a=o.current;break t}}else i.delete(o.current);a=S$(n.current,a)}}catch{}return o.current=a},[s,e]),limitOptions:s}},L$=N$,C$=e=>{const t=k(!1),n=T(()=>e,[e]);return W(()=>(t.current=!0,()=>{t.current=!1,n&&n()}),[n]),t},ni=C$,M$=(e,t,n)=>{const o=k(),s=k(),r=k(),a=k(),i=ni(N(()=>{var j;(j=o.current)==null||j.abort(),o.current=void 0},[])),[c,d]=B(a.current),[g,u]=gt(!1),p=T(()=>pa(n),[n]),{getPageCount:m,getPageParams:y,resetPageCount:f,updatePagination:A}=e,I=T(()=>t?j=>{var ne;if(!(p&&Number.isInteger(j)))return;const te=m(),Y=j<0?j+te+1:j;Y>0&&(te?Y<=te:Y===1)&&((ne=o.current)==null||ne.abort(),o.current=new AbortController,i.current&&(((a.current=Y)>1||te)&&d(a.current),(async()=>{const{signal:re}=o.current,Pe={...y(Y,p),limit:p,page:Y};try{const Ee=await t(Pe,re);if(!Ee||!i.current)return;const{size:ve,...ke}=Ee;A(Y,p,ke),s.current=a.current&&Math.max(a.current,s.current||-1/0),a.current&&a.current===s.current&&(r.current=ve),a.current===1&&ve>0&&d(a.current),a.current=void 0,u(!0)}catch(Ee){if(re.aborted)return;console.error(Ee)}})()))}:oe,[p,t]),M=N(()=>{c&&I(Math.min(c+1,m()))},[I,c]),L=N(()=>{c&&I(Math.max(c-1,1))},[I,c]),E=T(()=>m()||c||void 0,[I,g]),v=T(()=>!!(c&&E)&&c<E,[c,E]),$=T(()=>!!c&&c>1,[c]),b=T(()=>s.current?(s.current-1)*p+(r.current||0):0,[I,g]),D=T(()=>p&&Math.min(p,b||1/0)%p,[p,b]),O=N(()=>{f(),s.current=r.current=a.current=void 0,i.current&&d(a.current)},[f]);return W(()=>{i.current&&g&&u(!1)},[g]),{goto:I,hasNext:v,hasPrev:$,limit:p,next:M,page:c,pages:E,pageSize:D,prev:L,resetPagination:O,size:b}},Eu=M$,E$=e=>qe(e.next),v$=e=>qe(e.prev),b$=(e,t)=>{const n=T(()=>{const o=[],s=()=>o.length,r=()=>{o.length=0},a=d=>({cursor:o[d-1]}),i=(d,g)=>{const u=o[g-1];(g===1||g===(o.length||1)+1)&&G(u)&&(o[g-1]=d?decodeURIComponent(d):void 0)};return{getPageCount:s,getPageParams:a,resetPageCount:r,updatePagination:(d,g,u)=>{E$(u)&&i(u.next,d+1),v$(u)&&i(u.prev,d-1)}}},[]);return Eu(n,e,t)},D$=b$,O$=e=>e.next,$$=(e,t)=>{const n=T(()=>{let o=0;return{getPageCount:()=>o,getPageParams:(c,d)=>({offset:(c-1)*d}),resetPageCount:()=>{o=0},updatePagination:(c,d,g)=>{O$(g)&&g.next&&(o=Math.max(o,c+1))}}},[]);return Eu(n,e,t)},R$=$$,x$=(e=U,t=!0)=>{const n=k(t),o=k(Object.freeze({...e})),s=k(new Set(Object.keys(o.current))),r=k(new Set),a=ni(),[i,c]=T(()=>{const p=m=>{a.current&&g(m)};return[()=>p("reset"),m=>p(m)]},[a]),[d,g]=hr((p,m)=>{if(m==="reset")return r.current.clear(),o.current;const y={...m},f=[0];Object.keys(y).forEach((I,M)=>{if(!s.current.has(I))return;const L=p[I]??void 0,E=o.current[I]??void 0,v=y[I]??E;if(v===L)return;const $=Math.floor(M/32),b=1<<M%32;y[I]=v,f[$]|=b,r.current[v===E?"delete":"add"](I)});const A=f.some(I=>I)?n.current&&r.current.size===0?o.current:Object.freeze({...p,...y}):p;return n.current||(o.current=A,n.current=!0),A},o.current),u=T(()=>!!r.current.size,[]);return W(()=>{o.current=Object.freeze({...e}),s.current=new Set(Object.keys(o.current)),n.current=t,i()},[t,e,i]),{canResetState:u,defaultState:o.current,resetState:i,state:d,updateState:c}},w$=x$,P$=(e=U,t)=>{const{canResetState:n,defaultState:o,resetState:s,state:r,updateState:a}=w$(e,t);return{canResetFilters:n,defaultFilters:o,filters:r,resetFilters:s,updateFilters:a}},k$=P$;var fa=(e=>(e.NEXT="next",e.PREV="prev",e))(fa||{}),oi=(e=>(e.CURSOR="cursor",e.OFFSET="offset",e))(oi||{});const j$=["hasNext","hasPrevious"],vu=e=>{const t=Object.getOwnPropertyNames(e);return!j$.some(n=>t.includes(n))},F$=(e,t="data")=>{const n=e[t];if(vu(e)){const o=Object.fromEntries(Object.entries(e._links).map(([s,r])=>[s,r.cursor]));return{records:n,paginationData:o}}throw new TypeError("MALFORMED_PAGINATED_DATA")},W$=(e,t="data")=>{const n=e[t];if(!vu(e)){const{hasNext:o,hasPrevious:s}=e,r={[fa.NEXT]:xe(o),[fa.PREV]:xe(s)};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},B$=({dataField:e="data",fetchRecords:t,filterParams:n=U,initialFiltersSameAsDefault:o=!0,initialize:s,onFiltersChanged:r,pagination:a,preferredLimit:i,preferredLimitOptions:c,enabled:d})=>{const[g,u]=B([]),[p,m]=gt(!0),[y,f]=B(),[A,I]=B(i),M=ni(),L=k(!0),E=k(1),v=k$(n,o),{limit:$,limitOptions:b}=L$({preferredLimit:A,preferredLimitOptions:c}),{defaultFilters:D,filters:O,updateFilters:j,...te}=v,[Y,q]=T(()=>a===oi.CURSOR?[F$,D$]:[W$,R$],[]),ne=N(ye=>I(ye),[]),{goto:re,page:Pe,pages:Ee,resetPagination:ve,...ke}=q(N(async({page:ye,...de},be)=>{try{if(f(void 0),E.current=ye,!M.current||m(!0))return;const ct=await t({...de,...O},be),{records:lt,paginationData:Wt}=Y(ct,e);return L.current&&(s==null||s([lt,Wt],v),L.current=!1),M.current&&(u(lt),m(!1)),{...Wt,size:lt==null?void 0:lt.length}}catch(ct){if(be!=null&&be.aborted)return;m(!1),f(ct),console.error(ct)}},[t,O,$]),$);return T(()=>{L.current=!0},[n]),T(()=>{ve(),E.current=1},[O,$,ve]),W(()=>{d&&re(E.current)},[re,d]),W(()=>{r==null||r(O)},[O]),{error:y,fetching:p,filters:O,goto:re,limitOptions:b,page:Pe,pages:Ee,records:g,updateFilters:j,updateLimit:ne,...te,...ke}},z$=B$,U$=e=>z$({...e,pagination:oi.CURSOR}),bu=U$,Y$="adyen-pe-transaction-totals",tc="adyen-pe-transaction-totals__item";const Tr="adyen-pe-expandable-card",rn=Tr+"__container",nc=rn+"--button",Rr=rn+"--filled",H$=rn+"--hidden",Du=rn+"--overlay",xr=Du,Ls=Tr+"__content",oc=Ls+"--expandable",sc=Tr+"__chevron",G$="adyen-pe-base-button";function V$({disabled:e=!1,onClick:t,classNameModifiers:n=[],type:o="button",children:s,className:r,fullWidth:a,...i},c){const d=T(()=>Mn("",r)||"",[r]),g=T(()=>Oa(e),[e]),{classes:u,click:p}=$a(d,[...n,...a?["full-width"]:[]],G$,g,t);return l("button",{className:u,type:o,disabled:e,onClick:p,ref:c,...i,children:s})}const rc=He(V$),Z$=({renderHeader:e,children:t,filled:n,fullWidth:o,...s})=>{const{i18n:r}=Q(),[a,i]=B(!1),c=N(()=>i(m=>!m),[i]),d=k(null),g=k(!1),u=k(a),p=wa(void 0,N(()=>{a&&(c(),g.current=!0)},[a,c]));return W(()=>{var m,y;a?(m=p.current)==null||m.focus():(u.current!==a&&!g.current&&((y=d.current)==null||y.focus()),g.current=!1),u.current=a},[a,p]),l("div",{className:Tr,children:t?l(Z,{children:[l(rc,{className:F(rn,nc,{[Rr]:n}),disabled:a,fullWidth:o,"aria-controls":xr,"aria-expanded":a,"aria-hidden":a,onClick:c,ref:d,"data-testid":"expand-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.expand")}),l("div",{className:F(Ls,oc),children:e}),l("div",{className:sc,children:l(mr,{role:"presentation"})})]}),l(rc,{id:xr,className:F(rn,nc,Du,{[Rr]:n,[H$]:!a}),disabled:!a,fullWidth:o,"aria-controls":xr,"aria-expanded":a,"aria-hidden":!a,onClick:c,ref:p,"data-testid":"collapse-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.collapse")}),l("div",{className:F(Ls,oc),children:[e,l("div",{children:t})]}),l("div",{className:sc,children:l(za,{role:"presentation"})})]})]}):l("div",{className:F(rn,{[Rr]:n}),...s,children:l("div",{className:Ls,children:e})})})},Ou=Z$,si="adyen-pe-amount-skeleton",J$=si+"--has-margin",Q$=si+"--loading";const X$=({hasMargin:e=!1,isLoading:t=!1,width:n})=>l("span",{className:F(si,{[Q$]:t,[J$]:e}),style:{width:n}}),K$=X$,un="adyen-pe-summary-item",$u=un+"__label-container",q$=$u+"--loading",eR=un+"--body",Ru=un+"__label",tR=un+"__placeholder",nR=un+"__amount",ac=He(({config:e,i18n:t,isSkeletonVisible:n,className:o,...s},r)=>l("span",{className:F($u,o,{[q$]:n}),style:{cursor:"default"},ref:r,...s,children:e.labelKey&&l(X,{variant:P.CAPTION,className:Ru,children:t.get(e.labelKey)})}));const xu=({columnConfigs:e,isHeader:t=!1,isHovered:n=!1,isSkeletonVisible:o=!1,isLoading:s=!1,widths:r,onWidthsSet:a,isEmpty:i})=>{const{i18n:c}=Q();W(()=>{const p=e.map(m=>{var y,f;return((f=(y=m.ref)==null?void 0:y.current)==null?void 0:f.getBoundingClientRect().width)??0});a(p)},[a]);const d=p=>({width:r&&r[p]?r[p]:"auto"}),g=Ae(Te.only.xs),u=N((p,m)=>p.valueHasLabelStyle?P.CAPTION:m&&!g?P.BODY:P.TITLE,[g]);return l("div",{className:F(un,{[eR]:!t}),children:e.map((p,m)=>{const y=p.getValue(),f=!!y&&y.length>12;return l("div",{children:[t&&(p.tooltipLabel?l(Wa,{content:c.get(`${p.tooltipLabel}`),isContainerHovered:n,children:l(ac,{config:p,i18n:c,isSkeletonVisible:o})}):l(ac,{config:p,i18n:c,isSkeletonVisible:o})),o?l(K$,{isLoading:s,hasMargin:p.hasSkeletonMargin,width:p.skeletonWidth+"px"}):i?l("span",{className:F([un,tR])}):l("div",{ref:p.ref,style:d(m),children:l(X,{variant:u(p,f),className:F({[Ru]:p.valueHasLabelStyle,[nR]:!p.valueHasLabelStyle}),children:y})})]},m)})})},ic=({total:e,hiddenField:t,isHeader:n=!1,isHovered:o=!1,isSkeleton:s=!1,isLoading:r=!1,widths:a,onWidthsSet:i})=>{const{i18n:c}=Q(),d=k(null),g=k(null),u=k(null),p=T(()=>{const m={labelKey:"totalIncoming",ref:d,skeletonWidth:80,getValue:()=>e&&c.amount(e.incomings,e.currency),tooltipLabel:"tooltip.totalIncoming"},y={labelKey:"totalOutgoing",ref:g,skeletonWidth:80,getValue:()=>e&&c.amount(e.expenses,e.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...t!=="incomings"?[m]:[],...t!=="expenses"?[y]:[],{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}]},[e,t,c]);return l(xu,{isHovered:o,isEmpty:!e,columnConfigs:p,isHeader:n,isSkeletonVisible:s,isLoading:r,widths:a,onWidthsSet:i})};const oR="adyen-pe-base-list",wu=({children:e})=>l("ul",{className:oR,children:e}),Pu=()=>{const[e,t]=B([]),n=N(o=>{t(s=>o.every(r=>!r)?o:o.map((r,a)=>{const i=s[a];return!i||r>i?r:i}))},[]);return[e,n]},wr=Se(({totals:e,isLoading:t,hiddenField:n,fullWidth:o})=>{const[s,r]=Pu(),[a,i]=B(!1),[c,...d]=T(()=>e.map(g=>(g.key=`${g.currency}-${Math.random()}`,g)),[e]);return l(Ou,{renderHeader:l(ic,{isHovered:a,total:c,hiddenField:n,widths:s,isHeader:!0,isSkeleton:t,isLoading:t,onWidthsSet:r}),fullWidth:o,onMouseEnter:()=>i(!0),onFocus:()=>i(!0),onMouseLeave:()=>i(!1),onBlur:()=>i(!1),children:!t&&d.length&&l(wu,{children:d.map(g=>l("li",{children:l(ic,{isHovered:a,total:g,hiddenField:n,widths:s,onWidthsSet:r})},g.key))})})}),sR=Se(({availableCurrencies:e,isAvailableCurrenciesFetching:t,balanceAccountId:n,createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,fullWidth:g})=>{const{getTransactionTotals:u}=jt().endpoints,p=N(async()=>u==null?void 0:u(U,{query:{createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,balanceAccountId:n}}),[n,r,o,s,d,u,i,c,a]),{data:m,isFetching:y}=gr({fetchOptions:T(()=>({enabled:!!n&&!!u}),[n,u]),queryFn:p}),f=!n||y||t,I=N(()=>{if(!e||!m)return m==null?void 0:m.data;const L=e.map(E=>m.data.find($=>$.currency===E)||{currency:E,incomings:0,expenses:0});return L.concat(m.data.filter(E=>!L.includes(E)))},[e,m])()??[],M=Ae(Te.only.xs);return l("div",{className:Y$,children:M?l(Z,{children:[l("div",{className:tc,children:l(wr,{totals:I,isLoading:f,hiddenField:"expenses",fullWidth:g})}),l("div",{className:tc,children:l(wr,{totals:I,isLoading:f,hiddenField:"incomings",fullWidth:g})})]}):l(wr,{totals:I,isLoading:f,fullWidth:g})})}),rR=sR,aR="adyen-pe-balances",cc=({balance:e,isHeader:t=!1,isSkeleton:n=!1,isLoading:o=!1,widths:s,onWidthsSet:r,isEmpty:a})=>{const{i18n:i}=Q(),c=k(null),d=k(null),g=T(()=>[{labelKey:"accountBalance",ref:c,skeletonWidth:80,getValue:()=>e&&i.amount(e.value,e.currency)},{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}],[e,c,i]);return l(xu,{isEmpty:a,columnConfigs:g,isHeader:t,isSkeletonVisible:n,isLoading:o,widths:s,onWidthsSet:r})},iR=Se(({balanceAccountId:e,defaultCurrencyCode:t,onCurrenciesChange:n,fullWidth:o})=>{const{getBalances:s}=jt().endpoints,r=N(async()=>s==null?void 0:s(U,{path:{balanceAccountId:e}}),[e,s]),{data:a,error:i,isFetching:c}=gr({fetchOptions:T(()=>({enabled:!!e&&!!s}),[e,s]),queryFn:r}),d=!e||c,g=!!i||!(a!=null&&a.data.length),u=T(()=>(a==null?void 0:a.data)&&[...a.data].sort(({currency:A},{currency:I})=>{if(t){if(A===t)return-1;if(I===t)return 1}return A.localeCompare(I)}),[a==null?void 0:a.data,t]),[p,...m]=T(()=>(u==null?void 0:u.map(A=>(A.key=`${A.currency}-${Math.random()}`,A)))??[],[u]),[y,f]=Pu();return W(()=>{const A=new Set((u==null?void 0:u.map(({currency:I})=>I))||[]);n(Array.from(A),c)},[u,c,n]),l("div",{className:aR,children:l(Ou,{renderHeader:l(cc,{isEmpty:g,balance:p,widths:y,isHeader:!0,isSkeleton:d,isLoading:d,onWidthsSet:f}),filled:!0,fullWidth:o,children:m.length&&l(wu,{children:m.map(A=>l("li",{children:l(cc,{balance:A,widths:y,onWidthsSet:f})},A.key))})})})}),cR=Se(({placeholder:e,selection:t,selectionOptions:n,updateSelection:o})=>{const s=Ae(Te.down.xs),r=Ae(Te.only.sm),a=Ae(Te.only.md);return n&&n.length>1?l(pr,{onChange:o,filterable:!1,multiSelect:!0,placeholder:e,selected:t,withoutCollapseIndicator:!0,items:n,showOverlay:s,fitPosition:a||r}):null}),lc=cR,lR=e=>Object.freeze(e.map(t=>({id:t,name:t}))),uR=({filterParam:e,filterValues:t,filters:n,defaultFilters:o,updateFilters:s})=>{const r=T(()=>uo((n==null?void 0:n[e])??(o==null?void 0:o[e])??""),[o,n,e]),a=T(()=>t&&lR(t),[t]),i=N(({target:c})=>{s==null||s({[e]:(c==null?void 0:c.value)||""})},[s,e]);return{selection:r,selectionOptions:a,updateSelection:i}},Pr=uR,dR=[V.CURRENCIES,V.CATEGORIES,V.STATUSES],Cs=Object.freeze(Object.fromEntries(dR.map(e=>[e,""]))),hR=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],gR=["Booked","Pending","Reversed"],mR=e=>{const t=IO(),n="rangePreset.last30Days",{from:o,to:s}=t[n];return{defaultFilterParams:{...e==="transactions"&&{...Cs,[V.MIN_AMOUNT]:void 0,[V.MAX_AMOUNT]:void 0},[V.BALANCE_ACCOUNT]:void 0,[V.CREATED_SINCE]:new Date(o).toISOString(),[V.CREATED_UNTIL]:new Date(s).toISOString()},defaultTimeRange:n,timeRangeOptions:t}},pR=(e,t)=>{const[n,o]=B(Date.now()),s=mR(e),r=k(s),a=N(()=>o(Date.now()),[o]);return W(()=>{a()},[t,a]),{defaultParams:r,nowTimestamp:n,refreshNowTimestamp:a}},ku=pR,fR=(e,t)=>{const n=Pr({filterParam:V.CATEGORIES,filterValues:hR,defaultFilters:Cs,...e}),o=Pr({filterParam:V.STATUSES,filterValues:gR,defaultFilters:Cs,...e}),s=Pr({filterParam:V.CURRENCIES,filterValues:t,defaultFilters:Cs,...e});return{categoriesFilter:n,currenciesFilter:s,statusesFilter:o}},yR=fR;const xs=1e5,IR=({onChange:e,editAction:t,onValueUpdated:n,selectedCurrencies:o,availableCurrencies:s,value:r,...a})=>{const{i18n:i}=Q(),[c,d]=B(G(a.minAmount)?void 0:parseFloat(a.minAmount)/xs),[g,u]=B(G(a.maxAmount)?void 0:parseFloat(a.maxAmount)/xs),p=N(()=>{e({minAmount:c,maxAmount:g})},[g,c,e]),m=N(()=>{e({minAmount:void 0,maxAmount:void 0}),u(void 0),d(void 0)},[e]);W(()=>{t===Me.APPLY&&p(),t===Me.CLEAR&&m()},[p,m,t]);const y=T(()=>({minAmount:c,maxAmount:g}),[g,c]);return W(()=>{y.minAmount||y.maxAmount?n(`${y.minAmount}-${y.maxAmount}`):n(null)},[y,n]),l("div",{className:"adyen-pe-range-selection-filter",children:[l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"minValue",children:`${i.get("from")}:`}),l(ma,{lang:i.locale,name:"minValue",type:"number",value:c,onInput:f=>{f.currentTarget&&d(f.currentTarget.value!==""?parseFloat(f.currentTarget.value):void 0)},min:0,isInvalid:c?c<0:!1,errorMessage:i.get("noNegativeNumbersAllowed")})]}),l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"maxValue",children:`${i.get("to")}:`}),l(ma,{lang:i.locale,name:"maxValue",type:"number",value:g,onInput:f=>{f.currentTarget&&u(f.currentTarget.value!==""?parseFloat(f.currentTarget.value):void 0)},min:c,isInvalid:!G(g)&&!G(c)&&g<c,errorMessage:i.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},_R=({updateFilters:e,selectedCurrencies:t,availableCurrencies:n,...o})=>{const{i18n:s}=Q(),[r,a]=B(),[i,c]=B(),d=T(()=>(t==null?void 0:t.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,t==null?void 0:t.length]),g=N((p,m)=>{const y=(t==null?void 0:t[0])||(n==null?void 0:n[0]),f=m&&y?{style:"currency",currency:y,currencyDisplay:"symbol"}:void 0;return p.toLocaleString(s.locale,f)},[n,s,t]),u=N(p=>{const{minAmount:m,maxAmount:y}=p??U;a({minAmount:m,maxAmount:y}),G(m)&&G(y)&&c(void 0),e({minAmount:G(m)?void 0:String(m*xs),maxAmount:G(y)?void 0:String(y*xs)})},[e]);if(r&&(r.minAmount||r.maxAmount)){const{minAmount:p,maxAmount:m}=r??{};!G(p)&&!G(m)&&p<=m?c(`${g(p,d)} ${s.get("to").toLowerCase()} ${g(m,d)}`):!G(p)&&G(m)&&p>=0?c(`${s.get("from")} ${g(p,d)}`):G(p)&&!G(m)?c(`${s.get("to")} ${g(m,d)}`):c(void 0)}return l(Tu,{...o,updateFilters:e,minAmount:o.minAmount,maxAmount:o.maxAmount,onChange:u,value:i,label:i||o.label,type:"text",containerSize:No.MEDIUM,selectedCurrencies:t,availableCurrencies:n,render:IR})},ju="adyen-pe-transactions",Fu=`${ju}-overview`,TR=`${ju}-details`,Wu=`${Fu}__summary`,uc=`${Wu}-item`,AR=24;const SR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Rs,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getTransactions:g}=jt().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=jl(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=ku("transactions",u),I=N(async({balanceAccount:nt,...we},Nr)=>g({signal:Nr,errorLevel:"error"},{query:{...we,statuses:uo(we[V.STATUSES]),categories:uo(we[V.CATEGORIES]),currencies:uo(we[V.CURRENCIES]),createdSince:we[V.CREATED_SINCE]??y.current.defaultFilterParams[V.CREATED_SINCE],createdUntil:we[V.CREATED_UNTIL]??y.current.defaultFilterParams[V.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(u==null?void 0:u.id)??"",minAmount:G(we.minAmount)?void 0:parseFloat(we.minAmount),maxAmount:G(we.maxAmount)?void 0:parseFloat(we.maxAmount)}}),[u==null?void 0:u.id,y,g]),M=T(()=>K(e)?e:void 0,[e]),L=T(()=>n?Mu:void 0,[n]),{canResetFilters:E,error:v,fetching:$,filters:b,limit:D,limitOptions:O,records:j,resetFilters:te,updateFilters:Y,updateLimit:q,...ne}=bu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:L,enabled:!!(u!=null&&u.id)&&!!g}),[re,Pe]=B([]),[Ee,ve]=B(!1),ke=N((nt,we)=>{Pe(nt),ve(we)},[]),{categoriesFilter:ye,currenciesFilter:de,statusesFilter:be}=yR({filters:b,updateFilters:Y},re);W(()=>{Pe(void 0),Y({[V.BALANCE_ACCOUNT]:u==null?void 0:u.id,[V.CURRENCIES]:void 0})},[Y,u==null?void 0:u.id]),W(()=>{A()},[b,A]),W(()=>{be.updateSelection({target:{value:"Booked",name:"status"}})},[be]);const ct=Ae(Te.down.sm),lt=!!re&&re.length>1,Wt=T(()=>({showDetails:r??!0,callback:s}),[r,s]),ds=T(()=>({transaction:Wt}),[Wt]),{updateDetails:co,resetDetails:tt,selectedDetail:gn}=Cu(ds),Bt=N(nt=>{co({selection:{type:"transaction",data:{...nt,balanceAccount:u}},modalSize:"small"}).callback({id:nt.id})},[co,u]),Sr=T(()=>{const nt=new Date(f);return nt.setMonth(nt.getMonth()-AR),nt.toString()},[f]);return l("div",{className:Fu,children:[!c&&l(X,{variant:P.TITLE,medium:!0,children:d.get("transactionsOverviewTitle")}),l(Lu,{children:[l(Fl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(Nu,{canResetFilters:E,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:Sr,timezone:u==null?void 0:u.timeZone,updateFilters:Y}),l(lc,{...ye,placeholder:d.get("filterPlaceholder.category")}),l(_R,{availableCurrencies:re,selectedCurrencies:uo(b[V.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:b[V.MIN_AMOUNT],maxAmount:b[V.MAX_AMOUNT],updateFilters:Y,onChange:Y}),l(lc,{...de,placeholder:d.get("filterPlaceholder.currency")})]}),l("div",{className:Wu,children:[l("div",{className:uc,children:l(rR,{availableCurrencies:re,isAvailableCurrenciesFetching:Ee,balanceAccountId:u==null?void 0:u.id,statuses:be.selection,categories:ye.selection,createdUntil:b[V.CREATED_UNTIL],createdSince:b[V.CREATED_SINCE],currencies:de.selection,minAmount:b[V.MIN_AMOUNT]?parseFloat(b[V.MIN_AMOUNT]):void 0,maxAmount:b[V.MAX_AMOUNT]?parseFloat(b[V.MAX_AMOUNT]):void 0,fullWidth:ct})}),l("div",{className:uc,children:l(iR,{balanceAccountId:u==null?void 0:u.id,onCurrenciesChange:ke,defaultCurrencyCode:u==null?void 0:u.defaultCurrencyCode,fullWidth:ct})})]}),l(El,{selectedDetail:gn,resetDetails:tt,className:TR,children:l(x0,{activeBalanceAccount:u,availableCurrencies:re,error:v,hasMultipleCurrencies:lt,limit:D,limitOptions:O,loading:$||a||!t,onContactSupport:i,onLimitSelection:q,onRowClick:Bt,showPagination:!0,transactions:j,...ne})})]})},NR="adyen-pe-transactions-overview-container";function LR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=ba(e.balanceAccountId);return l(_l,{balanceAccountsError:s,className:NR,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(SR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}const CR=({i18n:e=new ur().i18n,children:t,commonProps:n,loadingContext:o,updateCore:s,externalErrorHandler:r})=>{const[a,i]=gt(!1),c=T(()=>n||{},[n]),d=T(()=>o??"",[o]);return W(()=>{(async()=>{await(e==null?void 0:e.ready),i(!0)})().catch()},[]),a?l(hl.Provider,{value:{i18n:e,commonProps:c,loadingContext:d,updateCore:s,externalErrorHandler:r},children:kt(t)}):null},MR=CR;var gc;class Bu{constructor(t){w(this,"_component");w(this,"_node",null);w(this,"_id",`${(gc=this.constructor)==null?void 0:gc.type}-${Ia()}`);w(this,"defaultProps",{});w(this,"props");w(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...t}),this.props.core.registerComponent(this)}formatProps(t){return t}formatData(){return{}}setState(t){this.state={...this.state,...t}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(t){const n=qe(t)?document.querySelector(t):t;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),Tn(this._component,n),this}update(t){return this.props=this.formatProps({...this.props,...t}),this._component=this.render(),this._node&&Tn(this._component,this._node),this}remount(t){if(!this._node)throw new Error("Component is not mounted.");const n=t||this.render();return Tn(n,this._node),this}unmount(){return this._node&&Tn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}w(Bu,"type");const ER=Bu;class vR extends ER{constructor(n){super(n);w(this,"componentRef",null);w(this,"componentToRender",null);w(this,"elementRef");w(this,"onContactSupport");w(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.elementRef=this}get isValid(){return!!this.state.isValid}get displayName(){return this.type}get accessibleName(){return this.displayName}get type(){var n;return(n=this.constructor)==null?void 0:n.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,o){var s,r;return(s=this.componentRef)!=null&&s.setStatus?this.componentRef.setStatus(n,o):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){const n=this.props.core,o=n.update.bind(n),s=this.props.onError||n.onError||null;return n.session.errorHandler=s,l(Tv,{session:n.session,children:l(MR,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:o,externalErrorHandler:s,children:this.componentToRender&&l("div",{className:"adyen-pe-component",children:this.componentToRender()})})},performance.now())}}const Ar=vR;class zu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(LR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(zu,"type","transactions");const bR=zu;class Uu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(Ga,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(Uu,"type","transactionDetails");const DR=Uu,OR="adyen-pe-payouts-overview",$R="adyen-pe-payouts-details",RR=new Date("2024-04-16T00:00:00.000Z").toString(),Yu="adyen-pe-payouts-table",xR=`${Yu}__net-payout`;const Hu=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],wR=["createdAt",...Hu],PR=e=>Hu.includes(e),kR=({error:e,loading:t,onContactSupport:n,onRowClick:o,showDetails:s,showPagination:r,data:a,...i})=>{const{i18n:c}=Q(),{dateFormat:d}=ao("UTC"),{refreshing:g}=jt(),u=T(()=>t||g,[t,g]),p=Ae(Te.up.sm),m=T(()=>({fundsCapturedAmount:p,adjustmentAmount:p}),[p]),y=T(()=>wR.map(I=>{var L,E,v,$;const M=c.get(bl(I));return PR(I)?{key:I,label:(E=(L=a==null?void 0:a[0])==null?void 0:L[I])!=null&&E.currency?`${M} (${Dc(($=(v=a==null?void 0:a[0])==null?void 0:v[I])==null?void 0:$.currency)})`:M,visible:m[I],position:ln.RIGHT}:{key:I,label:M,visible:m[I]}}),[c,m,a]),f={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},A=T(()=>()=>l(vl,{error:e,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[e,n]);return l("div",{className:Yu,children:l(to,{errorDisplay:A,error:e,columns:y,data:a,loading:u,outline:!1,onRowClick:{callback:o},emptyTableMessage:f,customCells:{createdAt:({value:I})=>I?p?I&&d(I,qb):d(I,{month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1}):null,fundsCapturedAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),adjustmentAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),payoutAmount:({value:I})=>I&&l("span",{className:F({[`${xR}--strong`]:!p}),children:c.amount(I.value,I.currency,{hideCurrency:p})})},children:r&&l(to.Footer,{children:l(kl,{...i})})})})};const jR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Rs,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getPayouts:g}=jt().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=jl(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=ku("payouts",u),I=N(async(de,be)=>g({signal:be,errorLevel:"error"},{query:{...de,createdSince:de[V.CREATED_SINCE]??y.current.defaultFilterParams[V.CREATED_SINCE],createdUntil:de[V.CREATED_UNTIL]??y.current.defaultFilterParams[V.CREATED_UNTIL],balanceAccountId:(u==null?void 0:u.id)??""}}),[u==null?void 0:u.id,y,g]),M=T(()=>K(e)?e:void 0,[e]),L=T(()=>n?Mu:void 0,[n]),{canResetFilters:E,error:v,fetching:$,filters:b,limit:D,limitOptions:O,records:j,resetFilters:te,updateFilters:Y,updateLimit:q,...ne}=bu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:L,enabled:!!(u!=null&&u.id)&&!!g});W(()=>{A()},[b,A]);const re=T(()=>({showDetails:r??!0,callback:s}),[r,s]),Pe=T(()=>({payout:re}),[re]),{updateDetails:Ee,resetDetails:ve,selectedDetail:ke}=Cu(Pe),ye=N(de=>{Ee({selection:{type:"payout",data:{id:u==null?void 0:u.id,balanceAccountDescription:(u==null?void 0:u.description)||"",date:de.createdAt}},modalSize:"small"}).callback({balanceAccountId:(u==null?void 0:u.id)||"",date:de.createdAt})},[Ee,u]);return l("div",{className:OR,children:[!c&&l(X,{variant:P.TITLE,medium:!0,children:d.get("payoutsTitle")}),l(Lu,{children:[l(Fl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(Nu,{canResetFilters:E,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:RR,timezone:"UTC",updateFilters:Y})]}),l(El,{className:$R,onContactSupport:i,selectedDetail:ke,resetDetails:ve,children:l(kR,{loading:$||a||!t,data:j,showPagination:!0,onRowClick:ye,showDetails:r,limit:D,limitOptions:O,onContactSupport:i,onLimitSelection:q,error:v,...ne})})]})},FR="adyen-pe-payouts-overview-container";function WR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=ba(e.balanceAccountId);return l(_l,{balanceAccountsError:s,className:FR,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(jR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}class Gu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(WR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(Gu,"type","payouts");const BR=Gu;class Vu extends Ar{constructor(n){super(n);w(this,"componentToRender",()=>l(Ga,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}w(Vu,"type","payoutDetails");const zR=Vu;async function UR(e){return await new Hc(e).initialize()}exports.AdyenPlatformExperience=UR;exports.Core=Hc;exports.PayoutDetails=zR;exports.PayoutsOverview=BR;exports.TransactionDetails=DR;exports.TransactionsOverview=bR;exports.all_locales=ov;exports.da_DK=wc;exports.de_DE=Pc;exports.en_US=Ta;exports.es_ES=kc;exports.fr_FR=jc;exports.it_IT=Fc;exports.nl_NL=Wc;exports.no_NO=Bc;exports.pt_BR=zc;exports.sv_SE=Uc;
11
+ `.replace(/\s+/,""),ff=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],gc=new Map,ru=t=>t.tagName==="INPUT",_f=t=>ru(t)&&t.type==="radio",gf=t=>{const e=t.name,n=t.form,s=gc.get(n);let r=s==null?void 0:s.get(e);return Z(r)&&n&&(r=n.querySelector(`input[type=radio][name='${e}']:checked`)||null,gc.set(n,(s||new Map).set(e,r))),r===t},If=(t,e)=>{for(const n of e)if(n.type!=="attributes"){if(Ua(n.addedNodes,s=>s instanceof Element&&po(s))||Ua(n.removedNodes,s=>t.includes(s)))return!0}else{if(po(n.target))return!0;if(t.includes(n.target))return!0}return!1},sa=(t=document.body,e)=>{if(Z(t))return!1;if(ht(e))return!!document.activeElement&&sa(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},ra=t=>!(!t.matches(na)||t!=null&&t.disabled||/^(true)?$/.test(t.getAttribute("inert"))||ru(t)&&t.hidden),po=t=>!(_f(t)&&!gf(t)||(t==null?void 0:t.tabIndex)<0||!ra(t)),pf=()=>{const t=new MutationObserver(a=>If(e,a)&&i()),e=[];let n=-1,s=null;const r=a=>{var u;if(a<0)return;const l=Math.min(a,e.length-1);n!==l&&(n=l),(u=e[n])==null||u.focus()},i=()=>{e.length=0,s instanceof Element&&(s.querySelectorAll(na).forEach(a=>po(a)&&e.push(a)),sa(s)&&(o.current=document.activeElement))},o=Object.create(null,{current:{get:()=>e[n]??null,set:a=>{if(a){if(!mr(a))return r(e.indexOf(a));if(a===~~a)return r(fr(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:ff,attributes:!0,childList:!0,subtree:!0}),i()))}},tabbables:{value:e}});return o},yf=pf,Sf=(t,e)=>{const n=W(!1),s=W(null),r=W(!1),i=y(yf,[]),o=y(()=>{let m=null,d;return _=>{Z(d)||cancelAnimationFrame(d);let f=_.target;for(;f&&f!==_.currentTarget;){if(ra(f)){m=f,d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{var I;s.current!==m&&m instanceof HTMLElement&&((I=s.current=m)==null||I.focus()),m=null,d=void 0})});return}f=f.parentNode}}},[]),a=N(m=>{i.current=s.current=m.target},[]),l=N(m=>{i.tabbables.includes(m.relatedTarget)||sa(m.currentTarget,m.relatedTarget)||r.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&e(n.current=!1)}))},[]),u=y(()=>{let m;return d=>{switch(d.code){case H.ARROW_DOWN:case H.ARROW_LEFT:case H.ARROW_RIGHT:case H.ARROW_UP:case H.END:case H.ESCAPE:case H.HOME:case H.PAGE_DOWN:case H.PAGE_UP:case H.TAB:cancelAnimationFrame(m),m=requestAnimationFrame(()=>{m=requestAnimationFrame(()=>{r.current=!1,m=void 0})}),r.current=!0;break}d.code===H.TAB?(d.preventDefault(),i.current=d.shiftKey?-1:1):d.code===H.ESCAPE&&e(!0)}},[]);return je(N((m,d)=>{d instanceof Element&&(d.removeEventListener("keydown",u,!0),d.removeEventListener("focusin",a,!0),d.removeEventListener("focusout",l,!0),m.removeEventListener("click",o,!0)),m instanceof Element?(m.addEventListener("keydown",u,!0),m.addEventListener("focusin",a,!0),m.addEventListener("focusout",l,!0),m.addEventListener("click",o,!0),n.current=!1,i.root=m):i.root=null},[]),t)},Af=Sf,Tf=(()=>{const t=new WeakMap,e=J({remove:x(function(){s(this.observerCallback)})}),n=r=>{let i=t.get(r);if(Z(i)){const o=new IntersectionObserver(a=>{a.forEach(l=>{r&&r(l)})},{root:null,rootMargin:"",threshold:[1]});i=_s(e,{observerCallback:x(r),observer:x(o)}),t.set(r,i)}return i},s=r=>{const i=t.get(r);i==null||i.observer.disconnect(),t.delete(r)};return n})(),Ji=Tf,Nf=({popover:t,offset:e,targetElement:n,position:s,variant:r,fullWidth:i})=>{const o=n==null?void 0:n.current;let a=0,l=0;const u=o.getBoundingClientRect(),m=document.body.getBoundingClientRect(),d=t==null?void 0:t.firstChild,_=m.left+m.width/2-d.offsetWidth/2,f=u.left+u.width/2-d.offsetWidth/2,I=u.top+u.height/2-d.offsetHeight/2;switch(s){case at.BOTTOM:a=i?_:r===bt.TOOLTIP?f+window.scrollX:(u==null?void 0:u.left)+window.scrollX,l=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+e[1];break;case at.BOTTOM_LEFT:a=(u==null?void 0:u.right)+window.scrollX-t.clientWidth,l=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+e[1];break;case at.TOP:a=r===bt.TOOLTIP?f+window.scrollX:u.left+window.scrollX,l=(u==null?void 0:u.top)-(d==null?void 0:d.clientHeight)+window.scrollY-e[0];break;case at.RIGHT:a=u.left+u.width+window.scrollX+e[2],l=r===bt.TOOLTIP?I+window.scrollY:(u==null?void 0:u.top)-(u==null?void 0:u.height)/2+window.scrollY;break;case at.LEFT:a=(u==null?void 0:u.left)-(t==null?void 0:t.clientWidth)+window.scrollX-e[3],l=r===bt.TOOLTIP?I+window.scrollY:(u==null?void 0:u.top)+window.scrollY-(u==null?void 0:u.height)/2;break}const g=[a,l,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${g.reduce((p,D,E)=>E===0?p+`${D}px,`:E===g.length-1?p+` ${D}px)`:p+` ${D}px,`,"translate3d(")};visibility:hidden`},Lf=(t,e,n,s,r,i,o,a,l)=>{const[u,m]=$(!0),[d,_]=$(a?!a:!!s),[f,I]=$(s||at.TOP),[g,S]=$([]),p=N(E=>{if(E.intersectionRatio===1)return _(!0);if(!u&&E.intersectionRatio!==1){if(g&&g.length===(a?5:4)){const O=g.reduce((P,M)=>M[1]>P[1]?M:P,g[0]);I(O[0]),_(!0);return}switch(_(!1),f){case at.TOP:S(O=>[...O,[at.TOP,E.intersectionRatio]]),I(at.BOTTOM);break;case at.BOTTOM:S(O=>[...O,[at.BOTTOM,E.intersectionRatio]]),I(a?at.BOTTOM_LEFT:at.RIGHT);break;case at.BOTTOM_LEFT:S(O=>[...O,[at.BOTTOM,E.intersectionRatio]]),I(at.RIGHT);break;case at.RIGHT:S(O=>[...O,[at.RIGHT,E.intersectionRatio]]),I(at.LEFT);break;case at.LEFT:S(O=>[...O,[at.LEFT,E.intersectionRatio]]),I(at.TOP);break}}},[u,g,f,a]),D=W(p);return B(()=>{Ji(D.current).remove(),D.current=p},[p]),je(N((E,O)=>{var P,M;if(O&&(!s||a)&&Ji(p).observer.unobserve(O),E&&e.current){if((!s||a)&&Ji(p).observer.observe(E),!(E instanceof Element))return;const R=Nf({popover:E,offset:t,targetElement:e,position:f,variant:n,fullWidth:o??!1}),C=d?R+";visibility:visible":R,k=i?C+";min-width:fit-content;width:"+((P=e.current)==null?void 0:P.clientWidth)+"px":C;E.setAttribute("style",`${k}`),u&&m(!1),n&&n===bt.TOOLTIP&&r&&((M=r.current)==null||M.setAttribute("data-popover-placement",f))}},[t,e,f,s,n,p,d,u,i,r,o,a]),l)},Ef=Lf,Mf=t=>{const e=W();return je(N((n,s)=>{s instanceof Element&&s.id===e.current&&(s.id=""),n instanceof Element&&(n.id=e.current||(e.current=Xd()))},[t]),t)},Zr=Mf;const Cf=t=>{var s;let e;const n=(s=t.querySelector(`.${eu}`))==null?void 0:s.querySelectorAll(na);return n?(Array.prototype.some.call(n,r=>{if(ra(r))return e=r}),e):null},Df=t=>t===bt.TOOLTIP?[10,3,5,5]:[15,15,15,15];function ia({actions:t,disableFocusTrap:e=!1,actionsLayout:n=qo.SPACE_BETWEEN,variant:s=bt.TOOLTIP,title:r,open:i,dismissible:o,modifiers:a,divider:l,fitContent:u,withoutSpace:m,containerSize:d,position:_,targetElement:f,setToTargetWidth:I,dismiss:g,children:S,withContentPadding:p,classNameModifiers:D,showOverlay:E=!1,fitPosition:O,...P}){const M=y(()=>X(g)&&Ye(o),[g,o]),R=Zr(),C=W(),k=N(At=>{var pt;g&&g(),At&&((pt=f==null?void 0:f.current)==null||pt.focus())},[g,f]),v=N(At=>{At.code===H.ESCAPE&&(g&&g(),(f==null?void 0:f.current).focus())},[g,f]),Q=W(v),Y=W(),nt=ea(Ef(Df(s),f,s,_,R,I,E,O),g,s===bt.TOOLTIP&&!i,su.POPOVER),tt=Af(e?null:nt,k),it=je(N((At,pt)=>{pt instanceof Element&&(pt[Rn]=void 0,delete pt[Rn]),At instanceof Element&&(At[Rn]=f.current,cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{if(C.current===i||!(C.current=i))return;const Wt=Cf(At);Wt==null||Wt.focus()}))},[i,f]),e?nt:tt),vt=Zr(it),Dt=y(()=>({[`${te}--medium`]:d===ws.MEDIUM,[`${te}--with-divider`]:!!l,[`${te}--wide`]:d===ws.WIDE,[`${te}--fit-content`]:u,[`${te}--without-space`]:m,[`${te}--auto-width`]:E}),[d,l,m,u,E]);B(()=>{it.current&&(it.current[Rn]=f.current)},[f]),B(()=>(document.removeEventListener("keydown",Q.current),document.addEventListener("keydown",Q.current=v),()=>document.removeEventListener("keydown",Q.current)),[v]);const _t=s===bt.TOOLTIP?tu:`${te} ${Km}`,kt=s===bt.TOOLTIP?eu:`${Zi}`;return Xl(c(q,{children:i?c(q,{children:[E&&c("div",{className:"adyen-pe-popover__overlay"}),c("div",{id:"popover",ref:vt,...P,className:z(_t,Dt,D),style:{visibility:"hidden"},role:P.role??(s===bt.POPOVER?"dialog":"tooltip"),children:[(r||M)&&c("div",{className:Qo(fc,a,[fc]),children:[r&&c("div",{className:qm,children:c(rf,{title:r})}),M&&c(nf,{onClick:g})]}),S&&c(q,{children:[c("div",{className:z(kt,{[`${Zi}--with-padding`]:p,[`${Zi}--overlay`]:E}),children:S}),s===bt.TOOLTIP&&c("span",{"data-popover-placement":"hidden",ref:R,className:"adyen-pe-tooltip__arrow"})]}),t&&c("div",{className:tf,children:c(Xm,{actions:t,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const Of=(t=!1)=>{const[e,n]=$(t),s=N(i=>n(i),[]),r=N(()=>n(i=>!i),[]);return[e,s,r]},_e=Of,bf=()=>{const[t,e]=_e(),n=N(()=>e(!0),[e]),s=N(()=>e(!1),[e]),r=N(i=>{switch(i.code){case H.ESCAPE:s();break}},[s]);return{listeners:{onfocusoutCapture:s,onMouseLeave:s,onKeyDown:r,onFocus:n,onMouseEnter:n},isVisible:t}};const vf=t=>typeof t=="string",oa=({content:t,children:e,triggerRef:n,showTooltip:s,position:r,isContainerHovered:i=!1})=>{var m,d,_;const o=Zr(),a=ft(mt.down.sm),{isVisible:l,listeners:u}=bf();return a?c(q,{children:e}):c(q,{children:[e?$l(e,{...e==null?void 0:e.props,role:"button",tabIndex:-1,ref:o,className:(m=e==null?void 0:e.props)!=null&&m.className?z(`${(d=e==null?void 0:e.props)==null?void 0:d.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":i}):z("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":i}),...u,"aria-describedby":`tooltip-${(_=o.current)==null?void 0:_.id}`}):null,(l||s)&&c(ia,{variant:bt.TOOLTIP,targetElement:n??o,position:r,open:l||s,children:c(q,{children:t&&vf(t)?c(U,{variant:b.CAPTION,children:t}):{content:t}})})]})},Rf=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),wf=Rf;const xf=({text:t})=>{const[e,n]=$(t),s=N(async()=>{if(t)try{await navigator.clipboard.writeText(t),n("Copied")}catch(i){console.log(i)}},[t]),r=N(()=>{n(t)},[n,t]);return c(oa,{content:e,children:c(Pt,{variant:Nt.TERTIARY,className:"adyen-pe-copy-text",onClick:s,onBlur:r,onMouseLeaveCapture:r,children:[c("span",{className:"adyen-pe-copy-text__information",children:t}),c(wf,{fill:"#0070f5"})]})})},jf=xf,aa=(t,e,n)=>{if(!t)return Io;const s=Zm(t,n);if(s)return s;switch(t.errorCode){case void 0:return{title:"somethingWentWrong",message:[e,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const r=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[e,r],translationValues:{[r]:t.requestId?c(jf,{text:t.requestId}):null},onContactSupport:n}}default:return Io}};function ca({balanceAccountsError:t,children:e,className:n,errorMessage:s,isBalanceAccountIdWrong:r,onContactSupport:i}){const{hasError:o}=ue();return c("div",{className:z(n,{[Am]:o}),children:o?c(Wn,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[s,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):t?c(Wn,{withImage:!0,centered:!0,...aa(t,"weCouldNotLoadYourBalanceAccounts",i)}):r?c(Wn,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[s,"theSelectedBalanceAccountIsIncorrect"]}):c(q,{children:e})})}const Pf=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{fill:"currentColor",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"})}),la=Pf;function kf({title:t,children:e,classNameModifiers:n=[],isOpen:s,onClose:r,isDismissible:i=!0,headerWithBorder:o=!0,size:a="fluid",...l}){const u=ft(mt.down.xs),{i18n:m}=V(),d=ea(null,r),_=N(f=>{f.key==="Escape"&&s&&i&&r()},[s,i,r]);return B(()=>(s?window.addEventListener("keydown",_):window.removeEventListener("keydown",_),()=>window.removeEventListener("keydown",_)),[s,_]),c(q,{children:s&&c("div",{className:z("adyen-pe-modal-wrapper",n.map(f=>`adyen-pe-modal-wrapper--${f}`),{"adyen-pe-modal-wrapper--open":s,"adyen-pe-modal-wrapper--dismissible":i}),role:"dialog","aria-modal":"true","aria-hidden":!open,...l,children:c("div",{className:z("adyen-pe-modal",{"adyen-pe-modal--fluid":a==="fluid","adyen-pe-modal--small":a==="small","adyen-pe-modal--large":a==="large","adyen-pe-modal--extra-large":a==="extra-large","adyen-pe-modal--full-screen":a==="full-screen"||u}),ref:d,children:[c("div",{className:z("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":t,"adyen-pe-modal__header--with-border-bottom":o}),children:[t&&c("div",{className:"adyen-pe-modal__header__title",children:t}),i&&c(Pt,{onClick:r,variant:Nt.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":m.get("dismiss"),children:c(la,{})})]}),c("div",{className:"adyen-pe-modal__content",children:e})]})})})}const Wf=Zt(({title:t,...e},n)=>c("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[t&&c("title",{children:t}),c("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"})]})),vi=Wf,Bf=Zt(({title:t,...e},n)=>c("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[t&&c("title",{children:t}),c("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"})]})),ua=Bf,da="adyen-pe-accordion",ha=da+"__header",zf=ha+"-container",Ff=ha+"-controller",$f=da+"__content";function Ic({children:t,classNames:e,header:n,headerInformation:s}){var l;const[r,i]=$(!1),o=W(null),a=N(()=>{i(!r)},[r]);return c("div",{className:z(da,e),children:[c("h3",{className:ha,children:[c("button",{id:"accordion-controller","aria-controls":"accordion-content",className:zf,onClick:a,"aria-expanded":r,children:c("div",{className:Ff,children:[n,r?c(ua,{height:8,width:15}):c(vi,{height:8,width:15})]})}),s&&c("div",{children:s})]}),c("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:r?(l=o==null?void 0:o.current)==null?void 0:l.offsetHeight:0},className:$f,children:c("div",{ref:o,children:t})})]})}const Ve="adyen-pe-card",iu=`${Ve}__body`,ou=`${Ve}__header`,Uf=`${Ve}__title`,Hf=`${Ve}__subtitle`,Yf=`${ou}-content`,Gf=`${iu}--with-title`,Zf=`${Ve}--no-outline`,Jf=`${Ve}--filled`,Vf=`${Ve}__footer`;const Qf=({title:t,subTitle:e,children:n,footer:s,el:r,renderHeader:i,renderFooter:o,filled:a,noOutline:l,classNameModifiers:u})=>{const m=r||"header";return c("section",{className:z(Ve,{[Jf]:a,[Zf]:l},u),children:[(t||i)&&c(m,{className:ou,children:(t||i)&&c("div",{className:Yf,children:[i||c("span",{className:Uf,children:t}),e&&c("div",{className:Hf,children:e})]})}),c("div",{className:z(iu,{[Gf]:t||i}),children:n}),(s||o)&&c("footer",{className:Vf,children:o||s})]})},Vi=Qf,pc="2-digit",ma="long",yc="numeric",au="short",Xf="shortOffset",Tr={month:ma,day:yc,year:yc},cu={hour:pc,minute:pc},lu={...Tr,...cu,month:au,hour12:!1},uu={...lu,year:void 0},Kf=Tr,qf=uu,t_={...Tr,weekday:ma},Sc={...Tr,month:au},e_=lu,n_=uu,s_={...Tr,...cu,weekday:ma,timeZoneName:Xf},Nr="adyen-pe-structured-list",du=`${Nr}__item`,Ac=`${Nr}__grid`,r_=`${Nr}__content`,i_=`${Nr}__label`,o_=`${du}--has-highlight`;const a_=t=>{const{i18n:e}=V();return y(()=>t.map(n=>({key:n.key,value:n.value,id:Wo(),label:e.get(n.key)})),[e,t])},c_="6-6";function Qi({items:t,highlightable:e,renderValue:n,renderLabel:s,layout:r=c_,grid:i=!0}){const[o,a]=y(()=>r.split("-").map(m=>`${Ac}--width-${m}-of-12`),[r]),l=a_(t),{i18n:u}=V();return c("div",{"aria-label":u.get("structuredList"),className:Nr,children:l.map(m=>c("dl",{className:z(du,{[o_]:e,[Ac]:i}),children:[c("dt",{className:z(i_,o),children:s?s(m.label):c(U,{variant:b.BODY,children:m.label})}),c("dd",{"aria-label":`${u.get(m.key)} ${u.get("value")}`,className:z(r_,a),children:n?n(m.value):c(U,{variant:b.BODY,children:m.value})})]},m.id))})}const l_=({isLoading:t,skeletonRowNumber:e=0})=>{const n=y(()=>Array.from({length:e},(s,r)=>r),[e]);return c("div",{className:"adyen-pe-transaction-data__skeleton-container",children:[c("div",{className:"adyen-pe-transaction-data__status-skeleton",children:[c("span",{className:z("adyen-pe-transaction-data__skeleton",{"adyen-pe-transaction-data__skeleton-loading-content":t})}),c("span",{className:z("adyen-pe-transaction-data__skeleton",{"adyen-pe-transaction-data__skeleton-loading-content":t})})]}),n.map(s=>c("span",{className:z({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":t})},`transaction-data-skeleton-${s}`))]})},hu=l_,yo=t=>{const{i18n:e}=V();return N((...n)=>{const s=e.timezone;try{return t(...n)}finally{e.timezone=s}},[e,t])},u_=t=>{const{i18n:e}=V(),n=yo(N(()=>(e.timezone=void 0,e.timezone=t,e.timezone),[e,t]));return y(n,[n])},d_=t=>{const{i18n:e}=V(),n=u_(t),s=yo(N((...i)=>(e.timezone=n,e.date(...i)),[e,n])),r=yo(N((...i)=>(e.timezone=n,e.fullDate(...i)),[e,n]));return{dateFormat:s,fullDateFormat:r}},Sn=d_;const Lr="adyen-pe-payout-data",h_=`${Lr}__title`,m_=`${Lr}__title--ba-id`,fa=`${Lr}__content`,Mn=`${fa}--section`,wr=`${fa}--card`,Tc=`${wr}-title`,Cs=`${Mn}-amount`,Nc=`${Cs}-gross`,f_=`${Cs}-net`,__=`${Lr}--unpaid-amount`,g_=({balanceAccountId:t,balanceAccountDescription:e,payout:n,isFetching:s})=>{var m;const{payout:r}=n??F,{i18n:i}=V(),{dateFormat:o}=Sn("UTC"),a=y(()=>{var _,f;const d=(f=(_=n==null?void 0:n.amountBreakdowns)==null?void 0:_.adjustmentBreakdown)==null?void 0:f.reduce((I,g)=>{var O,P,M,R,C,k,v;const S=(O=g==null?void 0:g.amount)!=null&&O.value&&((P=g==null?void 0:g.amount)!=null&&P.currency)?i.amount((M=g==null?void 0:g.amount)==null?void 0:M.value,(R=g==null?void 0:g.amount)==null?void 0:R.currency,{hideCurrency:!0}):(((C=g==null?void 0:g.amount)==null?void 0:C.value)??"").toString(),p=`${g==null?void 0:g.category}`,D=i.get(p),E=g!=null&&g.category&&D!==p?D:g==null?void 0:g.category;return g!=null&&g.category&&S&&E&&I[(k=g==null?void 0:g.amount)!=null&&k.value&&((v=g==null?void 0:g.amount)==null?void 0:v.value)<0?"subtractions":"additions"].push({key:E,value:S}),I},{subtractions:[],additions:[]});return d==null||d.subtractions.sort((I,g)=>I.key.localeCompare(g.key)),d==null||d.additions.sort((I,g)=>I.key.localeCompare(g.key)),d},[i,n]),l=y(()=>{var _,f;const d=(f=(_=n==null?void 0:n.amountBreakdowns)==null?void 0:_.fundsCapturedBreakdown)==null?void 0:f.reduce((I,g)=>{var S,p,D,E;return((S=g==null?void 0:g.amount)==null?void 0:S.value)===0||(p=g==null?void 0:g.amount)!=null&&p.value&&g.category&&I.push({key:g.category,value:i.amount((D=g==null?void 0:g.amount)==null?void 0:D.value,(E=g==null?void 0:g.amount)==null?void 0:E.currency,{hideCurrency:!0})}),I},[]);return d==null||d.sort((I,g)=>I.key==="capture"?-1:g.key==="capture"?1:I.key.localeCompare(g.key)),d},[n,i]),u=y(()=>r!=null&&r.createdAt?o(new Date(r==null?void 0:r.createdAt),t_):"",[r,o]);return c(q,{children:r?c("div",{className:Lr,children:[c("div",{className:h_,children:[c(U,{variant:b.SUBTITLE,stronger:!0,children:i.get("netPayout")}),c(U,{variant:b.TITLE,large:!0,children:`${i.amount(r.payoutAmount.value,r.payoutAmount.currency,{hideCurrency:!0})} ${r.payoutAmount.currency}`}),c(U,{variant:b.BODY,children:u}),c("div",{className:Mn,children:[e&&c(U,{variant:b.CAPTION,stronger:!0,wide:!0,children:`${e}`}),c(U,{variant:b.CAPTION,className:m_,children:`${t}`})]})]}),c("div",{className:fa,children:[c("div",{className:Mn,children:(r==null?void 0:r.fundsCapturedAmount)&&(l&&Object.keys(l).length>0?c(Ic,{header:c(U,{variant:b.BODY,children:i.get("fundsCaptured")}),headerInformation:c(U,{variant:b.BODY,children:i.amount(r.fundsCapturedAmount.value,r.fundsCapturedAmount.currency)}),children:c("div",{className:Mn,children:c("div",{className:wr,children:c(Vi,{children:c(Qi,{items:l})})})})}):c("div",{className:z(Cs,Nc),children:[c(U,{variant:b.BODY,children:i.get("fundsCaptured")}),c(U,{variant:b.BODY,children:i.amount(r.fundsCapturedAmount.value,r.fundsCapturedAmount.currency)})]}))}),c("div",{className:Mn,children:a!=null&&a.subtractions&&Object.keys(a==null?void 0:a.subtractions).length>0||a!=null&&a.additions&&Object.keys(a==null?void 0:a.additions).length>0?c(Ic,{header:c(U,{variant:b.BODY,children:i.get("adjustments")}),headerInformation:c(U,{variant:b.BODY,children:i.amount(r.adjustmentAmount.value,r.adjustmentAmount.currency)}),children:[(a==null?void 0:a.additions)&&Object.keys(a==null?void 0:a.additions).length>0&&c("div",{className:wr,children:c(Vi,{renderHeader:c(U,{className:Tc,variant:b.CAPTION,stronger:!0,children:i.get("additions")}),children:c(Qi,{items:a==null?void 0:a.additions})})}),(a==null?void 0:a.subtractions)&&Object.keys(a==null?void 0:a.subtractions).length>0&&c("div",{className:wr,children:c(Vi,{renderHeader:c(U,{className:Tc,variant:b.CAPTION,stronger:!0,children:i.get("subtractions")}),children:c(Qi,{items:a==null?void 0:a.subtractions})})})]}):c("div",{className:z(Cs,Nc),children:[c(U,{variant:b.BODY,children:i.get("adjustments")}),c(U,{variant:b.BODY,children:i.amount(r.adjustmentAmount.value,r.adjustmentAmount.currency)})]})}),c("div",{className:z(Mn),children:c("div",{className:z(Cs,f_),children:[c(U,{variant:b.BODY,stronger:!0,children:i.get("netPayout")}),c(U,{variant:b.BODY,stronger:!0,children:i.amount(r.payoutAmount.value,r.payoutAmount.currency)})]})})]}),((m=n==null?void 0:n.payout)==null?void 0:m.unpaidAmount)&&c("div",{className:__,children:[c(U,{variant:b.BODY,children:i.get("remainingAmount")}),c(U,{variant:b.BODY,children:i.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):c(hu,{isLoading:s,skeletonRowNumber:6})})},I_="https://cdf6519016.cdn.adyen.com/checkoutshopper/",p_=({name:t,resourceContext:e,imageFolder:n="logos/",parentFolder:s="",extension:r="svg",size:i="",subFolder:o=""})=>{const a=`/images/${n}/${o}/${s}/${t}${i}.${r}`.replace(/\/+/g,"/");return`${e}${a}`},y_=({options:t=F,name:e})=>{const{loadingContext:n}=V();return y(()=>p_({resourceContext:I_,name:e,...t}),[n,e,t])},mu=({folder:t="components/",className:e,alt:n,name:s,extension:r})=>{const i=y_({options:y(()=>({imageFolder:t,extension:r}),[r,t]),name:s});return c("img",{className:z("adyen-pe__image",e),alt:n,src:i})},S_=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function fu(t,e){return t.lastFourDigits?e==="detail"?"•••• •••• •••• "+t.lastFourDigits:t.lastFourDigits:S_[t.type]||t.type}var ee=(t=>(t.DEFAULT="default",t.WARNING="warning",t.ERROR="error",t.SUCCESS="success",t.WHITE="white",t))(ee||{});const So=Et(({variant:t=ee.DEFAULT,label:e})=>c("div",{className:z("adyen-pe-tag",{"adyen-pe-tag--success":t===ee.SUCCESS,"adyen-pe-tag--default":t===ee.DEFAULT,"adyen-pe-tag--warning":t===ee.WARNING,"adyen-pe-tag--error":t===ee.ERROR,"adyen-pe-tag--primary":t===ee.WHITE}),children:e}));function A_({value:t,isContainerHovered:e}){const{i18n:n}=V(),s=`tooltip.${t}`;return c(q,{children:n.has(s)&&c(oa,{content:n.get(s),isContainerHovered:e,children:c("span",{children:c(U,{variant:b.BODY,children:t})})})})}const T_=({error:t,errorMessage:e,onContactSupport:n})=>{const{title:s,message:r,refreshComponent:i,translationValues:o,onContactSupport:a}=aa(t,e,n);return c(Wn,{title:s,message:r,translationValues:o,withImage:!0,centered:!0,refreshComponent:i,onContactSupport:a})},_a=T_;const _u=Zo(F),ga=()=>Jo(_u);var Ze=(t=>(t.CENTER="center",t.RIGHT="right",t))(Ze||{});function Lc({children:t,column:e,position:n,...s}){const{registerCells:r}=ga(),i=W(null);return B(()=>{var o;i.current&&r({column:e,width:(o=i.current)==null?void 0:o.getBoundingClientRect().width})},[e,r]),c("div",{role:"cell",className:z("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===Ze.RIGHT,"adyen-pe-data-grid__cell--center":n===Ze.CENTER}),...s,children:t&&wl(t)?$l(t,{...t==null?void 0:t.props,ref:i,style:{width:"min-content"}}):null})}const N_=({className:t,alt:e,url:n})=>c("div",{className:"adyen-pe-data-grid__icon-container",children:c("img",{className:z("adyen-pe-data-grid__icon",t),alt:e,src:n})}),L_=N_,E_=t=>!!t&&typeof t=="object"&&"value"in t,gu=({columns:t,customCells:e,item:n,rowIndex:s})=>c(q,{children:t.map(({key:r,position:i})=>{if(e!=null&&e[r])return c(Lc,{"aria-labelledby":String(r),column:r,position:i,children:c("div",{style:{width:"min-content"},children:e[r]({key:r,value:n[r],item:n,rowIndex:s})})},r);const{icon:o,value:a}=E_(n[r])?n[r]:{value:n[r],icon:void 0};return c(Lc,{"aria-labelledby":String(r),column:r,position:i,children:c("div",{className:"adyen-pe-data-grid__cell-value",children:[(o==null?void 0:o.url)&&c(L_,{...o}),c("div",{children:a})]})},r)})}),M_=({data:t,columns:e,customCells:n,onRowHover:s})=>{const{i18n:r}=V();return c(q,{children:t==null?void 0:t.map((i,o)=>c("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s(o):st,onFocus:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s(o):st,onMouseLeave:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s():st,onBlur:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s():st,children:c(gu,{columns:e,customCells:n,item:i,rowIndex:o})},i))})},C_=({totalRows:t})=>{const[e,n]=Oi((o,a)=>{const l=t;if(l>1){const u=a.index;if(u<l&&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},x_),s=je(N(o=>{var l;if(!(o instanceof Element))return;const a=Number((l=o.dataset)==null?void 0:l.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])),r=N(o=>{var l,u;if(!(((l=o.target)==null?void 0:l.getAttribute("role"))==="row")){o.code===H.ARROW_LEFT&&n({type:"ACTIVE",index:e.index});return}switch(o.code){case H.ARROW_DOWN:case H.ARROW_UP:n({type:"ACTIVE",index:o.code===H.ARROW_DOWN?e.index+1:e.index-1});break;case H.HOME:n({type:"ACTIVE",index:0});break;case H.END:n({type:"ACTIVE",index:t-1});break;case H.ENTER:(u=o.currentTarget)==null||u.click();break;default:return}o.stopPropagation()},[t,e.index]),i=N(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:r,onFocusCapture:i},ref:s,activeIndex:e.activeIndex,currentIndex:e.index}},D_=({data:t,columns:e,onRowClick:n,customCells:s,onRowHover:r})=>{const i=N(m=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?m[n.retrievedField]:m),[n]),{i18n:o}=V(),{currentIndex:a,listeners:l,ref:u}=C_({totalRows:(t==null?void 0:t.length)??0});return c(q,{children:t==null?void 0:t.map((m,d)=>c("div",{role:"row",tabIndex:0,onMouseEnter:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r(d):st,onFocus:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r(d):st,onMouseLeave:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r():st,onBlur:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r():st,ref:u,"aria-selected":d===a,"data-index":d,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:i(m),onFocusCapture:l.onFocusCapture(d),onKeyDownCapture:l.onKeyDownCapture,children:c(gu,{columns:e,customCells:s,item:m,rowIndex:d})},m))})},O_=({columnsNumber:t,loading:e,emptyMessageDisplay:n})=>{const s=Array.from({length:10},(i,o)=>o),r=Array.from({length:t},(i,o)=>o);return c(q,{children:[s.map((i,o)=>c("div",{className:"adyen-pe-data-grid__row",children:r.map((a,l)=>c("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:c("span",{className:z({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":e,"adyen-pe-data-grid__empty-cell":!e})})},`adyen-pe-data-grid-skeleton-cell-${l}`))},`adyen-pe-data-grid-skeleton-row-${o}`)),!e&&n&&n]})},b_=O_,v_="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva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MzguOC0yNi44LTM5LjUtMzAuNmE0OC4zIDQ4LjMgMCAwIDEgNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",R_=({children:t})=>{const e=y(()=>new Map,[]),n=N(({column:r,width:i})=>{if(e.has(r)){const o=e.get(r);i>o&&e.set(r,i)}else e.set(r,i)},[e]),s=N(r=>e.get(r),[e]);return c(_u.Provider,{value:{registerCells:n,getMinWidthByColumn:s},children:Ge(t)})},w_=({cellKey:t,position:e,label:n})=>{const{registerCells:s}=ga(),r=W(null);return B(()=>{var i;r.current&&s({column:t,width:(i=r.current)==null?void 0:i.getBoundingClientRect().width})},[t,s]),c("div",{role:"columnheader",id:String(t),className:z("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":e===Ze.RIGHT,"adyen-pe-data-grid__cell--center":e===Ze.CENTER}),children:c("div",{ref:r,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},x_=Object.freeze({activeIndex:-1,index:-1});function Je({errorDisplay:t,...e}){return c("div",{style:{width:"100%"},children:c(R_,{children:c(j_,{...e,errorDisplay:t})})})}function j_({errorDisplay:t,...e}){var u,m;const n=y(()=>Ge(e.children),[e.children]),s=y(()=>n.find(d=>(d==null?void 0:d.type)===Iu),[n]),r=y(()=>{var d;return((d=e.data)==null?void 0:d.length)===0},[e.data]),i=y(()=>!e.loading&&(r||e.error),[r,e.error,e.loading]),{getMinWidthByColumn:o}=ga(),a=e.columns.filter(d=>d.visible!==!1).map(d=>({...d,minWidth:o(d.key)})),l=a.map(d=>`minmax(${(d.minWidth||100)+40}px, ${d.flex||1}fr)`).join(" ");return c("div",{className:z("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":e.condensed,"adyen-pe-data-grid--outline":e.outline,"adyen-pe-data-grid--scrollable":e.scrollable,"adyen-pe-data-grid--loading":e.loading,"adyen-pe-data-grid--empty":r||e.error}),style:`--adyen-pe-data-grid-cols: ${a.length}; --adyen-pe-data-grid-cells: ${l};`,children:c(q,{children:[c("div",{className:"adyen-pe-data-grid__table-wrapper",children:[c("div",{role:"table",className:"adyen-pe-data-grid__table",children:[c("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:c("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:e.loading?{width:"100%"}:{},children:a.map(d=>c(w_,{label:d.label,position:d.position,cellKey:d.key},d.key))})}),c(P_,{...e,columns:a,emptyBody:r})]}),i&&(r&&!e.error?c(Wn,{title:((u=e.emptyTableMessage)==null?void 0:u.title)??"thereAreNoResults",message:(m=e.emptyTableMessage)==null?void 0:m.message,imageDesktop:v_,centered:!0}):e.error&&t?t():null)]}),s]})})}function P_(t){const e=y(()=>t.loading||t.emptyBody||t.error,[t.emptyBody,t.error,t.loading]);return c("div",{role:"rowgroup",className:z("adyen-pe-data-grid__body"),style:e&&{display:"grid",gridTemplateColumns:"1fr"},children:e?c(b_,{columnsNumber:t.columns.length,loading:t.loading}):t.onRowClick?c(D_,{onRowHover:t.onRowHover,data:t.data,columns:t.columns,onRowClick:t.onRowClick,customCells:t.customCells}):c(M_,{onRowHover:t.onRowHover,data:t.data,customCells:t.customCells,columns:t.columns})})}Je.Footer=Iu;function Iu({children:t}){return c("div",{className:"adyen-pe-data-grid__footer",children:t})}Je.defaultProps={condensed:!1,outline:!0,scrollable:!0};const Ao="-ariaError";var Ct=(t=>(t[t.NONE=0]="NONE",t[t.APPLY=1]="APPLY",t[t.CLEAR=2]="CLEAR",t))(Ct||{});const k_=({applyDisabled:t,applyTitle:e,resetDisabled:n,resetTitle:s}=F)=>{const{i18n:r}=V(),[i,o]=$(Ct.NONE),[a,l]=$(i!==Ct.NONE),u=N(()=>o(Ct.APPLY),[o]),m=N(()=>o(Ct.CLEAR),[o]),d=N(()=>o(Ct.NONE),[o]),_=y(()=>({disabled:jt(t),event:u,title:(e==null?void 0:e.trim())||r.get("apply"),variant:Nt.PRIMARY}),[r,u,t,e]),f=y(()=>({disabled:jt(n),event:m,title:(s==null?void 0:s.trim())||r.get("reset"),variant:Nt.SECONDARY}),[r,m,n,s]),I=y(()=>[_,f],[_,f]);return B(()=>{switch(l(i!==Ct.NONE),i){case Ct.APPLY:case Ct.CLEAR:d();break}},[i,l,d]),{commitAction:i,commitActionButtons:I,committing:a,resetCommitAction:d}},pu=k_;function yu(t){const{backgroundUrl:e="",className:n="",classNameModifiers:s=[],src:r="",alt:i="",showOnError:o=!1}=t,[a,l]=$(!1),u=W(null),m=()=>{l(!0)},d=()=>{l(o)},_=z([n],"adyen-pe-image",{"adyen-pe-image--loaded":a},...s.map(f=>`adyen-pe-image--${f}`));return B(()=>{const f=e?new Image:u.current;f&&(f.src=e||r,f.onload=m),l(!!(f!=null&&f.complete))},[]),e?c("div",{style:{backgroundUrl:e},...t,className:_}):c("img",{...t,alt:i,ref:u,className:_,onError:d})}const fs="adyen-pe-dropdown",W_=Qo(we,[Nt.SECONDARY],[we]),ye=`${fs}__button`,B_=`${ye}--active`,z_=`${ye}-collapse-indicator`,F_=`${ye}--has-selection`,$_=`${ye}-icon`,U_=`${ye}-multiselect-counter`,H_=`${ye}--readonly`,Y_=`${ye}-text`,G_=`${ye}--valid`,Z_=`${ye}--invalid`,Pe=`${fs}__element`,J_=`${Pe}--active`,V_=`${Pe}-checkbox`,Q_=`${Pe}-checkmark`,X_=`${Pe}-content`,K_=`${Pe}--disabled`,q_=`${Pe}-icon`,tg=`${Pe}--no-option`,Su=`${fs}__list`,eg=`${Su}--active`,ng=`${fs}--multiselect`,sg=({active:t,disabled:e,className:n,filterable:s,toggleButtonRef:r,...i})=>{const o=y(()=>s?z(W_,n):n,[n,s]);return s?c("div",{...i,className:o,ref:r}):c(Pt,{...i,className:o,disabled:e,variant:Nt.SECONDARY,ref:r})},rg=t=>{var _;const{i18n:e}=V(),{active:n,filterable:s,multiSelect:r,placeholder:i,readonly:o,showList:a,withoutCollapseIndicator:l}=t,u=y(()=>(i==null?void 0:i.trim())||e.get("select.filter.placeholder"),[e,i]),m=y(()=>jt(r)?void 0:n[0],[n,r]),d=y(()=>{var f;return((f=m==null?void 0:m.name)==null?void 0:f.trim())||u},[m,u]);return c(sg,{active:n,disabled:o,"aria-disabled":o,"aria-expanded":a,"aria-haspopup":"listbox",className:z(ye,{[B_]:a,[F_]:!!n.length,[H_]:o,[Z_]:t.isInvalid,[G_]: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?c("input",{"aria-autocomplete":"list","aria-controls":t.selectListId,"aria-expanded":a,"aria-owns":t.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:t.onInput,placeholder:u,ref:t.filterInputRef,role:"combobox",type:"text"}):c(q,{children:[(m==null?void 0:m.icon)&&c(yu,{className:$_,src:m.icon,alt:m.name.trim()}),c("span",{className:Y_,children:((_=m==null?void 0:m.selectedOptionName)==null?void 0:_.trim())||(m==null?void 0:m.name.trim())||u}),r&&t.appliedFilterNumber>0&&c("div",{className:U_,children:c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,children:t.appliedFilterNumber})})]}),!l&&c("span",{className:z_,children:c(vi,{role:"presentation"})})]})},ig=rg,og=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&c("title",{children:t}),c("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"})]})),ag=og,cg=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&c("title",{children:t}),c("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"})]})),lg=cg,ug=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[t&&c("title",{children:t}),c("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"})]})),dg=ug,hg=t=>t.multiSelect?c("span",{className:V_,children:t.selected?c(ag,{role:"presentation"}):c(lg,{role:"presentation"})}):null,Au=t=>t.multiSelect?null:c("span",{className:Q_,children:t.selected&&c(dg,{role:"presentation"})}),mg=t=>c(q,{children:[hg(t),c("div",{className:t.contentClassName,children:[t.item.icon&&c(yu,{className:t.iconClassName,alt:t.item.name,src:t.item.icon}),c("span",{children:t.item.name})]}),Au(t)]}),fg=({item:t,multiSelect:e,onKeyDown:n,onSelect:s,renderListItem:r,selected:i})=>{const o=!!t.disabled,a=jt(t.disabled)||null,l=z(Pe,{[J_]:i,[K_]:o});return c("li",{"aria-disabled":o,"aria-selected":i,className:l,"data-disabled":a,"data-value":t.id,onClick:s,onKeyDown:n,title:t.name,role:"option",tabIndex:-1,children:r({item:t,multiSelect:e,selected:i,contentClassName:X_,iconClassName:q_})})},_g=Et(fg),gg=Zt(({active:t,commitActions:e,items:n,multiSelect:s,onKeyDown:r,onSelect:i,renderListItem:o,selectListId:a,showList:l,textFilter:u,toggleButtonRef:m,dismissPopover:d,setToTargetWidth:_,popoverClassNameModifiers:f,showOverlay:I,fitPosition:g},S)=>{const{i18n:p}=V(),D=ft(mt.down.xs),E=n.filter(C=>!u||C.name.toLowerCase().includes(u)),O=z(Su,{[eg]:l}),P=z(Pe,tg),M=y(()=>X(o)?o:mg,[o]),R=y(()=>jt(s),[s]);return l?c(ia,{classNameModifiers:f,actions:R?e:void 0,disableFocusTrap:!0,divider:!0,dismiss:d,dismissible:!1,open:l,setToTargetWidth:_,containerSize:ws.MEDIUM,variant:bt.POPOVER,targetElement:m,withContentPadding:!1,position:at.BOTTOM,showOverlay:I&&D,fitPosition:g,children:c("ul",{className:O,id:a,ref:S,role:"listbox","aria-multiselectable":R,children:E.length?E.map(C=>c(_g,{item:C,multiSelect:R,onKeyDown:r,onSelect:i,renderListItem:M,selected:t.includes(C)},C.id)):c("div",{className:P,children:p.get("select.noOptionsFound")})})}):null}),Ig=Et(gg),pg=({items:t,multiSelect:e,selected:n})=>{const s=N((l=Lt)=>{const u=Lt.concat(l??Lt).filter(Boolean),m=t.filter(_=>u.includes(_.id)),d=e?m:m.slice(0,1);return d.length?Object.freeze(d):Lt},[t,e]),[r,i]=$(s(n)),o=N((l=Lt)=>{const u=l.filter(m=>t.includes(m));i(u.length?Object.freeze(u):Lt)},[t,i]),a=N(l=>{i(u=>{const m=u.indexOf(l);if(m<0)return Object.freeze((e?u:Lt).concat(l));if(!e)return u;const d=[...u];return d.splice(m,1),d.length?Object.freeze(d):Lt})},[e,i]);return B(()=>i(s(n)),[s,n,i]),{resetSelection:o,select:a,selection:r}},yg=pg;const Sg=({className:t,classNameModifiers:e=Lt,popoverClassNameModifiers:n,items:s=Lt,filterable:r=!1,multiSelect:i=!1,readonly:o=!1,onChange:a=st,selected:l,name:u,isInvalid:m,isValid:d,placeholder:_,uniqueId:f,renderListItem:I,isCollatingErrors:g,setToTargetWidth:S,withoutCollapseIndicator:p=!1,showOverlay:D=!1,fitPosition:E})=>{const{resetSelection:O,select:P,selection:M}=yg({items:s,multiSelect:i,selected:l}),[R,C]=$(!1),[k,v]=$(""),Q=W(null),Y=W(null),nt=W(null),tt=W(`select-${Wo()}`),[it,vt]=$(0),Dt=W(),_t=W(!0),kt=W(!1),At=W(M),pt=W(M),Wt=N(()=>{v(""),C(!1),R&&(O(At.current),_t.current=!0)},[O,C,v,R]),de=y(()=>z([fs,{[ng]:jt(i)},...e.map(et=>`${fs}--${et}`),t]),[t,e,i]),{commitAction:se,commitActionButtons:ke,committing:ps,resetCommitAction:Mr}=pu({resetDisabled:!M.length}),Jt=N(()=>{var et;v(""),C(!1),Mr(),_t.current?_t.current=!1:(et=nt.current)==null||et.focus()},[Mr,C,v]),Tn=N(()=>{At.current=M;const et=`${M.map(({id:ut})=>ut)}`;a({target:{value:et,name:u}})},[u,a,M]);B(()=>{switch(se){case Ct.APPLY:Tn();break;case Ct.CLEAR:O(),kt.current=!0;break}},[se,Tn,O]);const We=N(et=>{var dt;et.preventDefault();const ut=et.currentTarget&&((dt=Y==null?void 0:Y.current)!=null&&dt.contains(et.currentTarget))?et.currentTarget:null;if(ut&&!ut.getAttribute("data-disabled")){const Bt=ut.getAttribute("data-value"),Ot=s.find(Nn=>Nn.id===Bt);P(Ot)}},[s,P]);B(()=>{pt.current!==M&&(pt.current=M,(!i||kt.current)&&(Tn(),Jt())),kt.current=!1},[Jt,Tn,i,M]),B(()=>{ps&&(vt(M.length),Jt())},[ps,Jt,vt,M.length]);const Wi=N(et=>{switch(et.code){case H.ESCAPE:case H.TAB:R&&Jt(),_t.current=et.key===H.TAB;return;case H.ENTER:case H.SPACE:if(r&&R){if(et.key===H.ENTER)if(k)We(et);else break;return}break;case H.ARROW_DOWN:case H.ARROW_UP:break;default:return}et.preventDefault(),C(!0)},[Jt,r,We,R,C,k]);B(()=>{R&&(cancelAnimationFrame(Dt.current),Dt.current=requestAnimationFrame(()=>{var et;t:{let ut=(et=Y.current)==null?void 0:et.firstElementChild,dt;for(;ut;){if(!(ut.dataset.disabled&&ut.dataset.disabled==="true")){if(ut.getAttribute("aria-selected")==="true"){ut.focus();break t}dt=dt||ut}ut=ut.nextElementSibling}dt&&dt.focus()}}))},[R]);const Bi=N(et=>{const ut=et.target;switch(et.code){case H.ESCAPE:et.preventDefault(),Jt();break;case H.ENTER:case H.SPACE:We(et);break;case H.ARROW_DOWN:{et.preventDefault();let dt=ut.nextElementSibling;for(;dt;){if(!(dt.dataset.disabled&&dt.dataset.disabled==="true")){dt.focus();break}dt=dt.nextElementSibling}break}case H.ARROW_UP:{et.preventDefault();t:{let dt=ut.previousElementSibling;for(;dt;){if(!(dt.dataset.disabled&&dt.dataset.disabled==="true")){dt.focus();break t}dt=dt.previousElementSibling}r&&Q.current&&Q.current.focus()}break}case H.TAB:Jt();break}},[Jt,r,We]),zi=N(et=>{const ut=et.target.value;v(ut.toLowerCase())},[v]),Fi=N(et=>{et.preventDefault(),C(ut=>!ut),R&&O(At.current)},[C,R,O]);return B(()=>{var et;R&&r&&((et=Q.current)==null||et.focus())},[r,R]),c("div",{className:de,children:[c(ig,{id:f??void 0,appliedFilterNumber:it,active:M,filterInputRef:Q,filterable:r,isInvalid:m,isValid:d,onButtonKeyDown:Wi,onInput:zi,multiSelect:i,placeholder:_,readonly:o,selectListId:tt.current,showList:R,toggleButtonRef:nt,toggleList:Fi,withoutCollapseIndicator:p,ariaDescribedBy:!g&&f?`${f}${Ao}`:""}),c(Ig,{popoverClassNameModifiers:n,setToTargetWidth:S,dismissPopover:Wt,active:M,commitActions:ke,items:s,multiSelect:i,onKeyDown:Bi,onSelect:We,selectListId:tt.current,ref:Y,toggleButtonRef:nt,renderListItem:I,showList:R,showOverlay:D,textFilter:k,fitPosition:E})]})},Ri=Sg,Ag=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&c("title",{children:t}),c("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"})]})),Tg=Ag,Ng=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&c("title",{children:t}),c("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"})]})),Lg=Ng;function Ia({next:t,hasNext:e,hasPrev:n,page:s,prev:r,limit:i,limitOptions:o,onLimitSelection:a}){const{i18n:l}=V(),u=y(()=>o&&Object.freeze(o.map(d=>({id:`${d}`,name:`${d}`}))),[o]),m=N(({target:d})=>{ht(d==null?void 0:d.value)||a==null||a(+d.value)},[a]);return c("div",{"aria-label":l.get("paginatedNavigation"),className:`adyen-pe-pagination ${z({})}`,children:[c("div",{className:"adyen-pe-pagination__context",children:[c("span",{children:l.get("pagination.showing")}),u&&a&&c("div",{className:"adyen-pe-pagination__limit-selector",children:c(Ri,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:u,onChange:m,selected:`${i??""}`})})]}),c("div",{className:"adyen-pe-pagination__controls",children:[c(Pt,{"aria-label":l.get("pagination.previousPage"),variant:Nt.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Lt:"disabled"),onClick:r,children:c(Tg,{disabled:!n})}),c(Pt,{"aria-label":l.get("pagination.nextPage"),variant:Nt.TERTIARY,disabled:!e,iconButton:!0,classNameModifiers:["circle"].concat(e?Lt:"disabled"),onClick:t,children:c(Lg,{disabled:!e})})]})]})}const An="adyen-pe-transactions-table",Eg=An+"__amount",Mg=An+"__payment-method",Cg=An+"__payment-method-logo-container",Dg=An+"__payment-method-logo",Og=An+"__date-and-payment-method",bg=An+"__date-and-payment-method--date";const vg=({paymentMethod:t,bankAccount:e})=>{const{i18n:n}=V(),s=ft(mt.down.xs);return c("div",{className:Mg,children:t||e?c(q,{children:[c("div",{className:Cg,children:c(mu,{name:t?t.type:"bankTransfer",alt:t?t.type:"bankTransfer",folder:"logos/",className:Dg})}),c(U,{variant:b.BODY,stronger:s,children:t?fu(t):e==null?void 0:e.accountNumberLastFourDigits})]}):c(So,{label:n.get("noData"),variant:ee.WHITE})})},Ec=vg,Rg={id:"paymentId",transactionType:"transactionType",createdAt:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency",fundsCapturedAmount:"fundsCaptured",payoutAmount:"netPayout",adjustmentAmount:"adjustments",dateAndPaymentMethod:"date",dateAndReportType:"date",reportType:"report",reportFile:"file"},pa=t=>Rg[t]||t;function wg(t){let e={};for(const n of Object.keys(t))Z(t[n])||(e={...e,[n]:t[n]});return e}function xg(t){return t.every(Gt)}const Tu=({fields:t,customColumns:e,columnConfig:n})=>{const{i18n:s}=V(),r=y(()=>t.map(o=>({key:o})),[t]);return y(()=>((e?xg(e)?e.map(a=>({key:a})):e:void 0)||r).map(({key:a,flex:l})=>{const u=s.get(pa(a)),m=wg((n==null?void 0:n[a])||F);return{key:a,label:u,visible:!0,flex:l,...m||F}}),[n,e,s,r])},Nu=["createdAt","paymentMethod","transactionType","amount"],jg=({activeBalanceAccount:t,availableCurrencies:e,error:n,hasMultipleCurrencies:s,loading:r,onContactSupport:i,onRowClick:o,showDetails:a,showPagination:l,transactions:u,customColumns:m,...d})=>{const{i18n:_}=V(),{dateFormat:f}=Sn(t==null?void 0:t.timeZone),[I,g]=$(),S=ft(mt.up.sm),p=ft(mt.up.md),D=ft(mt.down.xs),E=_.get("amount"),O=Tu({fields:Nu,customColumns:m,columnConfig:{amount:{label:s?void 0:`${E} ${e&&e[0]?`(${Cl(e[0])})`:""}`,position:Ze.RIGHT,flex:S?1.5:void 0},transactionType:{visible:p},paymentMethod:{visible:S}}}),P={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},M=N(C=>{g(C??void 0)},[g]),R=y(()=>()=>c(_a,{error:n,onContactSupport:i,errorMessage:"weCouldNotLoadYourTransactions"}),[n,i]);return c("div",{className:An,children:c(Je,{errorDisplay:R,error:n,columns:O,data:u,loading:r,outline:!1,onRowClick:{callback:o},onRowHover:M,emptyTableMessage:P,customCells:{transactionType:({item:C,rowIndex:k})=>{const v=`tooltip.${C.category}`;return C.category?_.has(v)?c(A_,{isContainerHovered:k===I,value:C.category}):c(U,{variant:b.BODY,children:C.category}):null},amount:({value:C})=>{const k=_.amount(C.value,C.currency,{hideCurrency:!s});return c(U,{variant:b.BODY,className:Eg,children:k})},createdAt:({item:C,value:k})=>D?c("div",{className:Og,children:[c(Ec,{paymentMethod:C.paymentMethod,bankAccount:C.bankAccount}),c(U,{variant:b.BODY,className:bg,children:f(C.createdAt,n_)})]}):c(U,{variant:b.BODY,children:f(k,e_)}),paymentMethod:({item:C})=>c(Ec,{paymentMethod:C.paymentMethod,bankAccount:C.bankAccount})},children:l&&c(Je.Footer,{children:c(Ia,{...d})})})})},br=({children:t})=>c("div",{className:"adyen-pe-transaction-data__container",children:t}),Pg=["status","category","paymentMethod","bankAccount","balanceAccount","id","balanceAccountId"],kg=({transaction:t,isFetching:e,error:n})=>{var l,u,m;const{i18n:s}=V(),{dateFormat:r}=Sn((l=t==null?void 0:t.balanceAccount)==null?void 0:l.timeZone),i=y(()=>t?r(new Date(t.createdAt),s_):"",[t,r]),o=(t==null?void 0:t.status)==="Booked"?"default":(t==null?void 0:t.status)==="Reversed"?"error":"pending",a=y(()=>{const d=new Set([...Pg,...Nu]);return Object.entries(t||{}).filter(([_])=>!d.has(_)).map(([_,f])=>({key:_,value:f}))},[t]);return c(q,{children:!t&&!n||e?c(hu,{isLoading:e,skeletonRowNumber:5}):t?c("div",{className:"adyen-pe-transaction-data",children:[c(br,{children:[((t==null?void 0:t.status)||(t==null?void 0:t.category))&&c("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(t==null?void 0:t.status)&&c(So,{label:s.get(t.status),variant:t.status==="Booked"?ee.SUCCESS:t.status==="Reversed"?ee.ERROR:ee.DEFAULT}),t.category&&c(So,{label:s.get(`txType.${t.category}`),variant:ee.DEFAULT})]}),c("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${o}`,children:t!=null&&t.amount?`${s.amount(t.amount.value,t.amount.currency,{hideCurrency:!0})} ${t.amount.currency}`:null}),((t==null?void 0:t.paymentMethod)||(t==null?void 0:t.bankAccount))&&c("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[c("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:c(mu,{name:t.paymentMethod?t.paymentMethod.type:"bankTransfer",alt:t.paymentMethod?t.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transaction-data__payment-method-logo"})}),c("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:t!=null&&t.paymentMethod?fu(t==null?void 0:t.paymentMethod,"detail"):(u=t==null?void 0:t.bankAccount)==null?void 0:u.accountNumberLastFourDigits})]}),c("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:i})]}),((m=t==null?void 0:t.balanceAccount)==null?void 0:m.description)&&c(br,{children:[c("div",{className:"adyen-pe-transaction-data__label",children:s.get("account")}),c("div",{children:t.balanceAccount.description})]}),c(br,{children:[c("div",{className:"adyen-pe-transaction-data__label",children:s.get("referenceID")}),c("div",{"aria-label":s.get("referenceID"),children:t==null?void 0:t.id})]}),a.map(({key:d,value:_})=>c(br,{children:[c("div",{className:"adyen-pe-transaction-data__label",children:s.get(d)}),c("div",{"aria-label":s.get(d),children:_})]},d))]}):null})},Wg={transaction:"getTransaction",payout:"getPayout"},Bg={transaction:"transactionDetails",payout:"payoutDetails"},Xi=t=>!("data"in t);function ya(t){var g,S;const e=y(()=>Xi(t)?null:t.data,[t]),n=y(()=>Xi(t)?t.id:null,[t]),{i18n:s}=V(),r=ue().endpoints[Wg[t.type]],i=y(()=>Bg[t.type],[t.type]),{data:o,error:a,isFetching:l}=Ar(y(()=>({fetchOptions:{enabled:!!n&&!!r},queryFn:async()=>{const p=t.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:t.date}};return r(F,{...p})}}),[n,r,t])),u=t.type==="payout"?t.balanceAccountDescription:o==null?void 0:o.balanceAccountId,m=t.type==="payout"?t==null?void 0:t.balanceAccountDescription:(g=e==null?void 0:e.balanceAccount)==null?void 0:g.description,{balanceAccounts:d}=bi(u,!m),_=y(()=>{if(a)return aa(a,"weCouldNotLoadYourTransactions",t.onContactSupport)},[a,t.onContactSupport]),f=Xi(t)&&t.type==="transaction"?t.extraDetails:F,I=e??o;return c("div",{className:"adyen-pe-overview-details",children:[!t.hideTitle&&c("div",{className:"adyen-pe-overview-details--title",children:c(U,{variant:b.TITLE,medium:!0,children:s.get(i)})}),a&&_&&c("div",{className:"adyen-pe-overview-details--error-container",children:c(Wn,{withImage:!0,..._})}),t.type==="transaction"&&c(kg,{transaction:I?{...I||F,balanceAccount:(e==null?void 0:e.balanceAccount)||(d==null?void 0:d[0]),...f}:void 0,error:!!(a&&_),isFetching:l}),t.type==="payout"&&I&&c(g_,{balanceAccountId:n,payout:I,balanceAccountDescription:(t==null?void 0:t.balanceAccountDescription)||((S=d==null?void 0:d[0])==null?void 0:S.description),isFetching:l})]})}const zg={base:"adyen-pe-modal-content"},Fg=t=>le(t,"id");function $g({type:t,data:e}){const n=y(()=>t==="payout"?{...e,type:"payout"}:Fg(e)?{data:e,type:t}:{id:e,type:t},[e,t]);return c(q,{children:n&&c("div",{className:zg.base,children:c(ya,{...n})})})}const Lu=({children:t,className:e,selectedDetail:n,resetDetails:s})=>{const{i18n:r}=V(),i=!!n;return B(()=>{i&&Ts.closeAll()},[i]),c("div",{className:e,children:[t,n&&c(kf,{title:n!=null&&n.title?r.get(n.title):void 0,isOpen:!!n,"aria-label":r.get("payoutDetails"),onClose:s,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&c($g,{...n==null?void 0:n.selection})})]})},Ug=t=>{const[e,n]=$(0),s=N(()=>n(0),[n]),r=y(()=>t==null?void 0:t[e],[t,e]),i=y(()=>t&&t.length>1?Object.freeze(t.map(({description:a,id:l})=>({id:l,name:Kd(a)}))):void 0,[t]),o=N(({target:a})=>{const l=a==null?void 0:a.value,u=t==null?void 0:t.findIndex(({id:m})=>m===l);u>=0&&n(u)},[t,n]);return{activeBalanceAccount:r,balanceAccountSelectionOptions:i,onBalanceAccountSelection:o,resetBalanceAccountSelection:s}},Sa=Ug;const Aa="adyen-pe-balance-account-selector",Hg=`${Aa}__account-id`,Yg=`${Aa}__account-label`,Gg=Et(({activeBalanceAccount:t,balanceAccountSelectionOptions:e,onBalanceAccountSelection:n})=>{const s=ft(mt.down.xs),r=N(i=>c(q,{children:[c("div",{className:i.contentClassName,children:[i.item.name&&c("span",{className:Yg,children:i.item.name}),c("span",{className:Hg,children:i.item.id})]}),Au(i)]}),[]);return e&&e.length>1?c(Ri,{popoverClassNameModifiers:[Aa],onChange:n,filterable:!1,multiSelect:!1,selected:t==null?void 0:t.id,withoutCollapseIndicator:!0,items:e,renderListItem:r,showOverlay:s}):null}),Ta=Gg,{getTimezoneTime:Zg,getUsedTimezone:Jg}=(()=>{const t=/\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,e=/^GMT|0(?=\d:00)|:00/g,n=pr();return{getTimezoneTime:(i,o=Date.now())=>{n.tz=i;const{formatted:a}=n(o),[l="",u=""]=(a==null?void 0:a.match(t))??Lt,m=oo(a),d=`${l}${u&&` ${u}`}`,_=tm(m).replace(e,"");return[d,_]},getUsedTimezone:i=>(n.tz=i,n.tz.current)}})(),Vg=({timezone:t,withClock:e=!1}=F)=>{const n=y(()=>jt(e),[e]),s=y(()=>Jg(t),[t]),r=W(st),[i,o]=$(Date.now()),[a,l]=y(()=>Zg(s,i),[i,s]);return y(()=>{r.current(),r.current=n?fl.subscribe(u=>{gs(u)||o(u.now)}):st},[o,n]),{clockTime:a,GMTOffset:l,timestamp:i,timezone:s}},Qg=Vg,Xg=t=>Object.freeze({systemToTimezone:x(e=>Ie(t,e)),timezoneToSystem:x(e=>De(t,e)),timezoneOffset:x(e=>t(e).offset)}),Eu=(t,e,n=t)=>{const s=(r,i)=>{let o=r;ht(r)?o=n:Os(r)||(o=i??n);const a=hn(t,o,e);return a===o?a:i??n};return r=>{const i=rt(()=>o);let o=s(r);return J({value:i,descriptor:x({...i,set(a){const l=o;o=s(a,o),l!==o&&(this.now=this.now)}})})}},Kg=(t,e)=>n=>X(n)?n.call(t,e):n,qg=t=>!le(t,"offsets"),tI=t=>le(t,"from"),wi=({now:t})=>t,eI=(()=>{const t=new Map;return e=>{let n=t.get(e);return Z(n)&&(n=Object.freeze([0,0,e,0,0,0,-1]),t.set(e,n)),n}})(),Ln=t=>{try{const e=t instanceof Date||+t===t?t:void 0,n=new Date(e).getTime();return isNaN(n)?void 0:n}catch{}},nI=(t=F,e=F)=>{const n=vs(t),s=vs(e);return()=>{const r=pr(),i=rt(()=>d),o=rt(()=>r.tz.current),a=J({now:i,timezone:o,...Xg(r)}),l=Kg(n,a);let{from:u,to:m,now:d}=F;const _=I=>{d=Ln(I??Date.now())??d;t:{if(qg(n)){u=Ln(l(n.from))??d,m=Ln(l(n.to))??d;break t}let g,S,p;(p=tI(n))?(g=new Date(u=Ln(l(n.from))??d),S=1):(g=new Date(m=Ln(l(n.to))??d),S=-1),g=new Date(a.timezoneToSystem(g));const[D=0,E=0,O=0,P=0,M=0,R=0,C=0]=l(n.offsets);g.setFullYear(g.getFullYear()+D*S,g.getMonth()+E*S,g.getDate()+O*S),g.setHours(g.getHours()+P*S,g.getMinutes()+M*S,g.getSeconds()+R*S,g.getMilliseconds()+C*S);const k=Ln(a.systemToTimezone(g))??d;p?m=k:u=k}u>m&&([u,m]=[m,u])},f=I=>{const g=r.tz,S=g.current;r.tz=I,g.current!==S&&_(d)};return _(),J({...s,from:rt(()=>u),now:{...i,set:_},timezone:{...o,set:f},to:rt(()=>m)})}},xi=nI,sI=/^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/,ji=(t=yi)=>(e,n,...s)=>{const r=Re(n),i=new Date(De(r,e));return i.setHours(0,0,0,0),Ie(r,t(i,...s))},Mu=ji(),Cu=ji(t=>t.setDate(1)),rI=ji(t=>t.setMonth(0,1)),Du=ji((t,e)=>{const n=oI(t.getDay(),e??0);return t.setDate(t.getDate()-n)}),iI=t=>(t%100?t%4:t%400)===0,Ki=(t,e,n=0)=>{const s=t+n,r=fr(s,12),i=e+Math.floor(s/12);let o=31;switch(r){case 1:o=iI(i)?29:28;break;case 3:case 5:case 8:case 10:o=30;break}return[o,r,i]},oI=(t,e=0)=>(7-e+t)%7,wn=(t,e)=>mn(t)?0:t-Mu(t,e),Mc=t=>Z(t)?t:new Date(t),aI=(t,e=F)=>{const n=Re(e.timeZone),s={...Fo,...e,timeZone:n.tz.current};return new Date(t).toLocaleDateString(Mi,s)},Be=(t,e)=>{const n=aI(t,{...Dl,...Fo,timeZone:e,hour12:!1}),[,s="",r="",i="",o="",a="",l="",u=""]=n.match(sI)??Lt;return[+i,+s-1,+r,+o%24,+a,+l,+u]},To=(t,e,n)=>{if(mn(t)||mn(e))return 1/0;const[s,r]=Be(t,n),[i,o]=Be(e,n);return Math.abs(o-r+(i-s)*12)},Re=(()=>{const t=pr();return e=>(t.tz=void 0,t.tz=e,t)})(),Na=1,cI=eI(7),lI=Eu(0,6,Na),uI=(t=0)=>{const e=~~hn(0,t,1/0)||0;return(n=Na)=>{const s=e?{offsets:cI}:{to:wi},r=lI(n);return xi({from:({now:i,timezone:o,systemToTimezone:a,timezoneToSystem:l})=>{const u=new Date(l(Du(i,o,r.value)));return u.setDate(u.getDate()-e*7),a(u)},...s},{firstWeekDay:r.descriptor})()}},Ou=uI,dI=Object.freeze([0,1,0,0,0,0,-1]),hI=(t=0)=>{const e=~~hn(0,t,1/0)||0;return xi({from:({now:s,timezone:r,systemToTimezone:i,timezoneToSystem:o})=>{const a=new Date(o(Cu(s,r)));return a.setMonth(a.getMonth()-e),i(a)},...e?{offsets:dI}:{to:wi}})},bu=hI,mI=bu(1),fI=mI,_I=365,gI=1,II=1,pI=Eu(gI,_I,II),yI=t=>{const e=pI(t);return xi({from:({now:n,timezone:s,systemToTimezone:r,timezoneToSystem:i})=>{const o=new Date(i(Mu(n,s)));return o.setDate(o.getDate()-e.value+1),r(o)},to:wi},{numberOfDays:e.descriptor})()},Cc=yI,SI=Ou(1),AI=SI,TI=bu(0),NI=TI,LI=Ou(0),EI=LI,MI=xi({from:({now:t,timezone:e})=>rI(t,e),to:wi}),CI=MI,DI=()=>Object.freeze({"rangePreset.last7Days":Cc(7),"rangePreset.last30Days":Cc(30),"rangePreset.thisWeek":EI(),"rangePreset.lastWeek":AI(),"rangePreset.thisMonth":NI(),"rangePreset.lastMonth":fI(),"rangePreset.yearToDate":CI()}),OI=({now:t=Date.now(),options:e,selectedOption:n,timezone:s})=>{const{i18n:r}=V(),[i,o]=$(),[a,l]=$(),[u,m]=$(),d=W(),_=W(),[f,I,g]=y(()=>{const M=r.get("rangePreset.custom"),R=Object.keys(e),C=Object.freeze(R.map(v=>r.get(v)));return[M,(v,Q=C)=>{const Y=Q.findIndex(nt=>nt===v);return e[R[Y]]},C]},[r,e]),[S,p]=$(n===f),D=y(()=>Object.freeze([...g,f]),[f,g]),E=y(()=>S?D:g,[S,g,D]),O=N(M=>{const R=I(M,g);R&&(o(R.from),l(R.to),p(!1),m(M))},[f,I,u,g]),P=N(()=>{o(void 0),l(void 0),p(!0),m(f)},[f]);return y(()=>{n===f?m(f):O(n)},[]),y(()=>{var M;if(d.current!==t||_.current!==s){const R=Object.values(e);R.forEach(C=>{C.now=t,C.timezone=s}),d.current=t,_.current=(M=R[0])==null?void 0:M.timezone,O(u)}},[t,s,e]),{customSelection:P,from:i,onSelection:O,options:E,selectedOption:u,to:a}},bI=({calendarRef:t,onTimeRangeSelected:e,timestamp:n,...s})=>{const{customSelection:r,from:i,onSelection:o,options:a,selectedOption:l,to:u}=OI(s),m=y(()=>Object.freeze(a.map(I=>({id:I,name:I}))),[a]),d=N(({target:I})=>o(I==null?void 0:I.value),[o]),_=W(!0),f=W(n);return B(()=>{t!=null&&t.current&&i&&u&&(_.current=!0,t.current.from=new Date(i),t.current.to=new Date(u))},[t,i,u]),B(()=>{f.current!==n&&(f.current=n,_.current?_.current=!1:r())},[r,n]),B(()=>{l&&(e==null||e(l))},[l,e]),c(Ri,{setToTargetWidth:!0,items:m,filterable:!1,multiSelect:!1,onChange:d,selected:l})},vI=bI,ne=(()=>{const t=s=>Object.freeze(_s(F,Object.fromEntries(Object.entries(s).map(([r,i])=>[r,{value:i}])))),e=s=>{try{return Object.getPrototypeOf(s)===F}catch{return!1}},n=(s,r)=>{if(!s)return t(x(r,Ye(s)));let i=r;return t({enumerable:!0,get:()=>i,set:o=>{i=s(o)}})};return Object.defineProperties(n,{is:{value:e},isObject:{value:Si},immutable:{value:s=>n(!1,s)},mutable:{value:s=>n(void 0,s)},restricted:{value:()=>n(!1)}})})(),vu=(()=>{const t=(n={},s=!1)=>{const r=J();for(const[i,o]of Object.entries(n)){try{const a=ne.is(o),l=ne.isObject(o);if(a||l){Object.defineProperty(r,i,a?o:t(o,s));continue}else if(s){Object.defineProperty(r,i,ne.immutable(o));continue}}catch{}r[i]=o}return ne((i={})=>Object.assign(r,i),r)};return Object.defineProperties(t,{unwrapped:{value:(n={},s=!1)=>{const r=t(n,s);return J({P:r}).P}}})})();var La=(t=>(t[t.DATE=0]="DATE",t[t.DAY_OF_WEEK=1]="DAY_OF_WEEK",t[t.MONTH_HEADER=2]="MONTH_HEADER",t))(La||{});const Ru="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",wu="adyen-pe-calendar__date",RI=(t=F,e)=>{const n=vu.unwrapped({childClassName:ne.mutable(wu),childProps:{children:ne.restricted(),className:""},className:ne.mutable(Ru),props:{...t,children:ne.restricted(),className:""}},!0);return e==null||e(La.DATE,n),n},wI=Zt(({grid:t,prepare:e,datetime:n,flags:s,index:r,label:i,onlyCellsWithin:o},a)=>{const l=s.WITHIN_BLOCK,u={"data-cursor-position":r,"data-within-month":l,tabIndex:-1};if(l){const g=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"]=g,g&&(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)}`),r===+t.cursor&&(u.ref=a)}const m=RI(u,e),{children:d,className:_,...f}=m.props||F,I=Gr(m.className,Ru,_);return c("td",{...f,...u,className:I,children:(!o||l)&&(()=>{const{children:g,className:S,...p}=m.childProps||F,D=Gr(m.childClassName,wu,S);return c("time",{...p,className:D,dateTime:n,children:i})})()})}),xI=Et(wI,Yr({block:Yr.exclude,flags:t=>+t})),xu="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",ju="adyen-pe-calendar__day-of-week",jI=(t=F,e)=>{const n=vu.unwrapped({childClassName:ne.mutable(ju),childProps:{children:ne.restricted(),className:""},className:ne.mutable(xu),props:{...t,children:ne.restricted(),className:""}},!0);return e==null||e(La.DAY_OF_WEEK,n),n},PI=({prepare:t,flags:e,labels:{long:n,short:s}})=>{const r={"aria-label":n,"data-first-week-day":e.LINE_START,"data-last-week-day":e.LINE_END,"data-weekend":e.WEEKEND,scope:"col"},i=jI(r,t),{children:o,className:a,...l}=i.props||F,u=Gr(i.className,xu,a),{children:m,className:d,..._}=i.childProps||F,f=Gr(i.childClassName,ju,d);return c("th",{...l,...r,className:u,children:c("abbr",{..._,className:f,children:s})})},kI=Et(PI,Yr({block:Yr.exclude,flags:t=>+t}));const WI=Is(({cursorRootProps:t,onlyCellsWithin:e,prepare:n,grid:s},r)=>c("ol",{className:"adyen-pe-calendar",role:"none",...t,children:s.map(i=>c("li",{className:"adyen-pe-calendar__month",role:"none",children:[c("div",{className:"adyen-pe-calendar__month-name",role:"none",children:c("time",{dateTime:i.datetime,"aria-hidden":"true",children:i.label})}),c("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${i.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":s.rowspan},children:[c("thead",{children:c("tr",{className:"adyen-pe-calendar__row",children:s.weekdays.map((o,a)=>c(kI,{grid:s,block:i,prepare:n,cell:a,...o},o.labels.long))})}),c("tbody",{children:i.map((o,a)=>c("tr",{className:"adyen-pe-calendar__row",children:o.map((l,u)=>c(xI,{ref:r,grid:s,block:i,prepare:n,cell:u,onlyCellsWithin:e,row:a,...l},`${i.month}:${l.timestamp}`))},`${i.month}:${a}`))})]})]},i.datetime))})),BI=Et(WI),Jr=864e5,zI=["narrow","short","long"],Pu=[0,1,6],Bn=[1,2,3,4,6,12],Dc=42,FI=[0,1],Ea=Symbol(),Ma=Symbol(),Ca=Symbol(),Oc=[Ca,Ma,Ea],Ke=Symbol(),xn=Symbol(),jn=Symbol(),$I=[xn,jn,Ke],ku=Symbol(),Wu=Symbol(),Bu=Symbol(),zu=Symbol(),Fu=Symbol(),$u=Symbol(),Uu=Symbol(),Hu=Symbol(),Yu=Symbol(),Gu=Symbol(),Da=Symbol(),Oa=Symbol(),Zu=Symbol(),bc=Symbol(),Rt=Symbol(),vc=Symbol(),Qt=Symbol(),Ju=Symbol(),xr=Symbol(),jr=Symbol(),Rc=(t,e)=>{if(e>=t)return t;let n=Math.max(1,Bn.indexOf(t));for(;--n&&e<Bn[n];);return Bn[n]},UI=t=>Bn[Math.max(Bn.indexOf(t),0)],wc=(t=0)=>Object.freeze(FI.map(e=>fr(6-t+e,7)));var $s,$t,Ut,Yn,Gn;class xc{constructor(...e){T(this,$s,1/0);T(this,$t,1/0);T(this,Ut,-1/0);T(this,Yn,0);T(this,Gn,0);if(e.length>=3){let n=new Date(e[1]).getTime();if(typeof e[2]!="symbol")A(this,Ut,n||h(this,Ut)),A(this,$t,new Date(e[2]).getTime()||h(this,$t)),h(this,$t)<h(this,Ut)&&([Qe(this,$t)._,Qe(this,Ut)._]=[h(this,Ut),h(this,$t)]),A(this,Gn,wn(h(this,Ut),e[0])),A(this,Yn,wn(h(this,$t),e[0])),A(this,$s,To(h(this,Ut),h(this,$t),e[0])+1);else if(!isNaN(n))switch(e[2]){case Oa:A(this,$t,n),A(this,Yn,wn(h(this,$t),e[0]));break;case Da:default:A(this,Ut,n),A(this,Gn,wn(h(this,Ut),e[0]));break}}}get numberOfMonths(){return h(this,$s)}get endTimestamp(){return h(this,$t)}get endTimestampOffset(){return h(this,Yn)}get startTimestamp(){return h(this,Ut)}get startTimestampOffset(){return h(this,Gn)}}$s=new WeakMap,$t=new WeakMap,Ut=new WeakMap,Yn=new WeakMap,Gn=new WeakMap;const Pi=(...t)=>{let e=Re().tz.current,n=new xc(e,...t);return J({from:rt(()=>n.startTimestamp,!1),to:rt(()=>n.endTimestamp,!1),offsets:{value:J({from:rt(()=>n.startTimestampOffset,!1),to:rt(()=>n.endTimestampOffset,!1)})},span:rt(()=>n.numberOfMonths,!1),timezone:{...rt(()=>e,!1),set:s=>{const r=e;e=Re(s??void 0).tz.current,e!==r&&(n=new xc(e,...t))}}})},Ds=Pi(),HI=()=>Pi(Date.now(),Da),YI=()=>Pi(Date.now(),Oa),Vu=(...t)=>t.length===0?Ds:Pi(...t);var gt=(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))(gt||{}),Cn=(t=>(t[t.PREV=1]="PREV",t[t.BLOCK=0]="BLOCK",t[t.FRAME=2]="FRAME",t[t.PERIOD=4]="PERIOD",t))(Cn||{}),No=(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))(No||{});const GI=(()=>{const t={},e=Object.keys(gt).filter(s=>isNaN(+s)),n=s=>s!=="ALL"&&Gt(s)&&e.includes(s);return s=>{const r=s&gt.ALL;return t[r]||(t[r]=new Proxy(J({valueOf:{value:()=>r}}),Li({get:(i,o)=>{switch(o){case"valueOf":return i.valueOf;case Symbol.toStringTag:return"_";default:if(!n(o))return}return r&gt[o]?1:void 0}}))),t[r]}})(),Qu=GI,ZI=t=>(e,n,s)=>{if(Gt(n)){const r=+n;if(r>=0&&r<e.length)return t(r)}return Reflect.get(e,n,s)},jc=function*(t=yi,e){for(let n=0;n<this.length;n++)yield t.call(e,this[n],n,this)},JI=Object.freeze(J({[Symbol.iterator]:{value(){return jc.call(this)}},map:{value(t,e){return[...jc.call(this,t,e)]}}})),be=(t,e)=>X(t)?be({length:{get:t}},e):mr(t)?be({length:{value:t}},e):new Proxy(_s(JI,t),{get:ZI(e),set:io}),VI=(()=>{const t=new Map,e=pr(),n=(s=Date.now())=>{const r=new Date(De(e,s)),i=Ie(e,r.setHours(0,0,0,0)),o=Ie(e,r.setDate(r.getDate()+1));return[i,o-i]};return s=>{e.tz=s;const r=e.tz.current;return t.get(r)??(()=>{let i=null,o=null,a=null;const l=()=>(e.tz=r,i??n()[0]),u=(g=Date.now())=>{e.tz=r,[i,o]=n(g)},{cancelSubscriptions:m,requestNotification:d,subscribe:_,on:f}=Ir({timestamp:l});f.resume=()=>{a=ml.subscribe(g=>{if(gs(g))return;const{now:S}=g;if(Fr(i)||Fr(o))return u(S);S-i<o||(u(S),d())})},f.idle=()=>{a==null||a(),i=o=a=null};const I=J({cancelSubscriptions:x(m),timestamp:rt(l),timezone:x(r),subscribe:x(_)});return t.set(r,I),I})()}})(),Vr=VI;var Zn,wt,Us,Hs,Ys,Gs,re,Ht,Te,Jn,Vn,Qn,nn,Ne,Zs,Tt,yt,St,Xn,Le,sn,Kn,ie,Js,Vs,ze,Ee,Qs,Xs,Xr,Kr,qr,Xu,ti,Ku,Fe,Dn,ei,qu,xt,Ft,rn,Ns,Ks,Eo;const Pn=class Pn{constructor(){T(this,qr);T(this,ti);T(this,Fe);T(this,ei);T(this,xt);T(this,rn);T(this,Ks);T(this,wt,0);T(this,Us,void 0);T(this,Hs,void 0);T(this,Ys,-1);T(this,Gs,-1);T(this,re,void 0);T(this,Ht,void 0);T(this,Te,void 0);T(this,Jn,!1);T(this,Vn,void 0);T(this,Qn,0);T(this,nn,[]);T(this,Ne,h(Pn,Zn));T(this,Zs,12);T(this,Tt,void 0);T(this,yt,void 0);T(this,St,1);T(this,Xn,void 0);T(this,Le,void 0);T(this,sn,void 0);T(this,Kn,Vr());T(this,ie,void 0);T(this,Js,-1/0);T(this,Vs,1/0);T(this,ze,-1/0);T(this,Ee,1/0);T(this,Qs,1/0);T(this,Xs,0);j(this,"daysInWeek",0);j(this,"origin");j(this,"originTimestamp");T(this,Xr,be(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));T(this,Kr,be(()=>h(this,St),w(this,ei,qu).bind(this)))}get fromTimestamp(){return h(this,Js)}get toTimestamp(){return h(this,Vs)}get numberOfBlocks(){return h(this,Qs)}get blankSelection(){return h(this,Tt)===h(this,yt)&&Z(h(this,yt))}get cursor(){return h(this,re)??-1}get daysOfWeek(){return h(this,Xr)}get dynamicBlockHeight(){return h(this,Jn)}set dynamicBlockHeight(e){ht(e)?A(this,Jn,!!e):ro(e)&&A(this,Jn,e)}set effect(e){ht(e)?A(this,Vn,void 0):X(e)&&A(this,Vn,e)}get firstWeekDay(){return h(this,Qn)}set firstWeekDay(e){if(ht(e))this.firstWeekDay=0;else if(!Pu.includes(e)||h(this,Qn)===A(this,Qn,e))return}get frameBlocks(){return h(this,Kr)}get isAtEnd(){return!mn(h(this,Ee))&&h(this,Ee)===h(this,St)-1}get isAtStart(){return!mn(h(this,ze))&&h(this,ze)===0}get locale(){return h(this,Ne)}set locale(e){const n=h(this,Ne);if(ht(e))A(this,Ne,h(Pn,Zn));else if(typeof Intl<"u")try{A(this,Ne,new Intl.Locale(e).toString())}catch{A(this,Ne,h(Pn,Zn))}h(this,Ne)!==n&&this.refreshFrame(!0)}get selectionStart(){return h(this,Tt)}get selectionEnd(){return h(this,yt)}get size(){return h(this,St)}set size(e){const n=Math.min(!ht(e)&&UI(e)||1,h(this,Zs));h(this,St)!==A(this,St,n)&&(w(this,Ks,Eo).call(this),this.refreshFrame())}get timeslice(){return h(this,Le)}set timeslice(e){if(e===h(this,Xn)||ht(e)&&h(this,Xn)===Ds)return;const{from:n,to:s,timezone:r}=A(this,Xn,e??Ds);A(this,Le,Vu(n,s)),this.timezone=r}get timezone(){return h(this,sn)}set timezone(e){h(this,Le).timezone=e,A(this,sn,h(this,Le).timezone),A(this,Kn,Vr(h(this,sn))),h(this,ie)&&(h(this,ie).call(this),A(this,ie,h(this,Kn).subscribe(this.refreshFrame.bind(this,!0)))),w(this,qr,Xu).call(this)}set trackCurrentDay(e){ro(e)?e&&!h(this,ie)?A(this,ie,h(this,Kn).subscribe(this.refreshFrame.bind(this,!0))):!e&&h(this,ie)&&(h(this,ie).call(this),A(this,ie,void 0)):ht(e)&&(this.trackCurrentDay=!1)}get units(){return h(this,Xs)}initialize(){this.timeslice=Ds}refreshFrame(e=!1){var n;if(h(this,nn).length=0,!(Z(h(this,Ht))||e)){const s=this.getFrameBlockAtIndex(h(this,wt)),{from:r,to:i}=s.inner,[o]=w(this,Fe,Dn).call(this,this.getTimestampAtIndex(r+h(this,Ht)),!1);A(this,Ht,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(r),o));const a=r+h(this,Ht),l=hn(r,a,i);if(l>a)return A(this,Ht,this.getUnitsForFrameBlockAtIndex(--Qe(this,wt)._)+a-l),h(this,wt)>=0?this.refreshFrame():(A(this,wt,h(this,St)-1),this.shiftFrameByOffset(-1,xr));if(l<a)return A(this,Ht,a-l-1),++Qe(this,wt)._<h(this,St)?this.refreshFrame():(A(this,wt,0),this.shiftFrameByOffset(1,xr));A(this,Us,r),A(this,Hs,i),A(this,Te,w(this,Fe,Dn).call(this,this.getTimestampAtIndex(a),!1)[0]),A(this,Ht,this.getCursorBlockOriginTimestampOffset(h(this,Te))),A(this,re,r+h(this,Ht));const u=h(this,wt)>0?this.getFrameBlockAtIndex(0):s,m=h(this,wt)<h(this,St)-1?this.getFrameBlockAtIndex(h(this,St)-1):s;A(this,Ys,u.inner.from),A(this,Gs,m.inner.to),A(this,Xs,m.outer.to+1)}this.withCurrentDayTimestamp(),(n=h(this,Vn))==null||n.call(this)}shiftFrameByOffset(e,n){if(e&&Os(e))switch(n){case Ju:return w(this,rn,Ns).call(this,e);case jr:return w(this,rn,Ns).call(this,e*12);case xr:default:return w(this,rn,Ns).call(this,e*h(this,St))}}shiftFrameCursor(e){switch(e){case ku:return w(this,xt,Ft).call(this,-1);case Fu:return w(this,xt,Ft).call(this,1);case Gu:return w(this,xt,Ft).call(this,-this.rowspan);case zu:return w(this,xt,Ft).call(this,this.rowspan);case Bu:return w(this,xt,Ft).call(this,h(this,Us)-h(this,re));case Wu:return w(this,xt,Ft).call(this,h(this,Hs)-h(this,re));case Uu:return w(this,xt,Ft).call(this,-(h(this,re)%this.rowspan));case $u:return w(this,xt,Ft).call(this,this.rowspan-(h(this,re)%this.rowspan+1));case Yu:return w(this,xt,Ft).call(this,-this.getUnitsForFrameBlockAtIndex((h(this,wt)??0)-1));case Hu:return w(this,xt,Ft).call(this,this.getUnitsForFrameBlockAtIndex(h(this,wt)??0))}if(!(e<0)&&e>=h(this,Ys)&&e<=h(this,Gs))return w(this,xt,Ft).call(this,e-h(this,re))}shiftFrameToTimestamp(e){A(this,Te,this.originTimestamp=w(this,Fe,Dn).call(this,e,!1).reduce((n,s)=>n+s)),A(this,Ht,this.getCursorBlockOriginTimestampOffset(h(this,Te))),this.reoriginate(),[Qe(this,ze)._,Qe(this,Ee)._]=this.getEdgeBlockOffsetsFromOrigin(),w(this,Ks,Eo).call(this),this.refreshFrame(),w(this,xt,Ft).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(h(this,re)),h(this,Te)))}clearSelection(){this.blankSelection||(A(this,Tt,A(this,yt,void 0)),this.refreshFrame(!0))}updateSelection(e,n){const s=h(this,Tt),r=h(this,yt),i=w(this,Fe,Dn).call(this,e,!1).reduce((o,a)=>o+a);switch(n===bc&&(i<=s?n=Qt:i>=r&&(n=Rt)),n){case Rt:A(this,Tt,i),A(this,yt,Math.max(h(this,Tt),r??i));break;case Qt:A(this,yt,i),A(this,Tt,Math.min(s??i,h(this,yt)));break;case bc:case vc:{let o=Math.abs(i-(s??i)),a=Math.abs(i-(r??i));n===vc&&([o,a]=[a,o]),o>a?A(this,Tt,i):A(this,yt,i);break}case Zu:default:A(this,Tt,A(this,yt,i));break}(h(this,Tt)!==s||h(this,yt)!==r)&&this.refreshFrame(!0)}};Zn=new WeakMap,wt=new WeakMap,Us=new WeakMap,Hs=new WeakMap,Ys=new WeakMap,Gs=new WeakMap,re=new WeakMap,Ht=new WeakMap,Te=new WeakMap,Jn=new WeakMap,Vn=new WeakMap,Qn=new WeakMap,nn=new WeakMap,Ne=new WeakMap,Zs=new WeakMap,Tt=new WeakMap,yt=new WeakMap,St=new WeakMap,Xn=new WeakMap,Le=new WeakMap,sn=new WeakMap,Kn=new WeakMap,ie=new WeakMap,Js=new WeakMap,Vs=new WeakMap,ze=new WeakMap,Ee=new WeakMap,Qs=new WeakMap,Xs=new WeakMap,Xr=new WeakMap,Kr=new WeakMap,qr=new WeakSet,Xu=function(){const{from:e,to:n,span:s,offsets:r}=h(this,Le);A(this,Js,e-r.from),A(this,Vs,n-r.to),A(this,Qs,s);const i=Z(h(this,Tt))?h(this,Tt):Math.max(h(this,Tt),e),o=Z(h(this,yt))?h(this,yt):Math.min(h(this,yt),n);i===h(this,Tt)||o===h(this,yt)?(A(this,Tt,i),A(this,yt,o)):A(this,Tt,A(this,yt,void 0)),this.reslice(),A(this,Zs,Rc(12,this.numberOfBlocks)),A(this,St,Rc(h(this,St),this.numberOfBlocks)),this.shiftFrameToTimestamp(h(this,Te))},ti=new WeakSet,Ku=function(e){return hn(h(this,ze),e||0,h(this,Ee)-h(this,St)+1)},Fe=new WeakSet,Dn=function(e,n=!0){let s=new Date(e).getTime();if(isNaN(s))return w(this,Fe,Dn).call(this,Date.now());const{from:r,to:i}=h(this,Le),o=hn(r,s,i);o!==s&&n?(s=tl(r,i),(isNaN(s)||mn(s))&&(s=o)):s=o;const a=wn(s,h(this,sn));return[s-a,a]},ei=new WeakSet,qu=function(e){if(Os(e)&&e>=0&&e<h(this,St)){if(!h(this,nn)[e]){const n=this.getFrameBlockAtIndex(e);if(!n)return;const[s,r]=this.getFormattedDataForFrameBlock(n[n.inner.from][0]+Jr/2),i=n.outer.from;h(this,nn)[e]=be({datetime:x(r),label:x(s),length:x(Math.ceil(n.outer.units/this.rowspan)),month:x(n.month),year:x(n.year)},o=>{const a=o*this.rowspan;return be(this.rowspan,l=>{const[u,m]=n[l+a],[d,_]=this.getFormattedDataForBlockCell(u+Jr/2);return J({datetime:x(_),flags:x(Qu(m)),index:x(i+l+a),label:x(d),timestamp:x(u)})})})}return h(this,nn)[e]}},xt=new WeakSet,Ft=function(e){e!==0&&(A(this,Ht,h(this,Ht)+e),this.refreshFrame())},rn=new WeakSet,Ns=function(e){const n=w(this,ti,Ku).call(this,e);n&&(this.shiftOrigin(n),A(this,ze,h(this,ze)-n),A(this,Ee,h(this,Ee)-n),A(this,wt,fr(h(this,wt)-n,h(this,St))),this.refreshFrame())},Ks=new WeakSet,Eo=function(){const e=h(this,St)-1,n=Math.min(e-this.origin%h(this,St),h(this,Ee))-e;n&&w(this,rn,Ns).call(this,n)},T(Pn,Zn,Mi);let Lo=Pn;var on,an,qn,qs,ts,es,tr,ns,er,ss,rs,is,nr,Mo,sr,Co,$e,On,os,Pr;class QI extends Lo{constructor(){super();T(this,nr);T(this,sr);T(this,$e);T(this,os);T(this,on,7);T(this,an,[]);T(this,qn,wc(this.firstWeekDay));T(this,qs,void 0);T(this,ts,-1/0);T(this,es,1/0);T(this,tr,1/0);T(this,ns,void 0);T(this,er,void 0);T(this,ss,void 0);T(this,rs,void 0);T(this,is,void 0);j(this,"daysInWeek",h(this,on));this.initialize()}get fromTimestamp(){return h(this,ts)}get toTimestamp(){return h(this,es)}get numberOfBlocks(){return h(this,tr)}get currentDayTimestamp(){return h(this,qs)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const s=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==s&&this.refreshFrame(!0)}get rowspan(){return h(this,on)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const s=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==s&&(h(this,an).length=0,A(this,qn,wc(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return Be(n,this.timezone)[2]-1}getDayOfWeekAtIndex(n){if(!h(this,an)[n]){const s=new Date(this.getTimestampAtIndex(n));let r=0;h(this,qn).includes(n)&&(r|=gt.WEEKEND),n===0?r|=gt.LINE_START:n===6&&(r|=gt.LINE_END);const i={};for(const o of zI)i[o]=x(s.toLocaleDateString(this.locale,{weekday:o,timeZone:this.timezone}));h(this,an)[n]=J({flags:x(Qu(r)),labels:x(J(i))})}return h(this,an)[n]}getEdgeBlockOffsetsFromOrigin(){return[w(this,nr,Mo).call(this,h(this,ts)),w(this,nr,Mo).call(this,h(this,es))]}getFormattedDataForBlockCell(n){const[s,r,i]=Be(n,this.timezone);return[Number(i).toLocaleString(this.locale),`${s}-${`${r+1}`.padStart(2,"0")}-${`${i}`.padStart(2,"0")}`]}getFormattedDataForFrameBlock(n){const[s,r]=Be(n,this.timezone);return[new Date(n).toLocaleDateString(this.locale,{month:"long",year:"numeric",timeZone:this.timezone}),`${s}-${`${r+1}`.padStart(2,"0")}`]}getFrameBlockAtIndex(n){const[s,r,i]=Ki(this.origin,h(this,ss),n),o=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:h(this,ns),a=o+s-1,l=Math.floor(o/7)*7,u=this.dynamicBlockHeight?Math.ceil((a+1)/7)*7:l+Dc,m=this.dynamicBlockHeight?u-l:Dc,d=new Proxy(J(),Li({get:(_,f,I)=>{if(Gt(f)){const g=+f;if(Os(g)&&g>=0&&g<m){const S=l+g,p=this.getTimestampAtIndex(S),D=S%h(this,on);let E=p===this.currentDayTimestamp?gt.CURRENT:0;return S===this.cursor&&(E|=gt.CURSOR),h(this,qn).includes(D)&&(E|=gt.WEEKEND),D===0?E|=gt.LINE_START:D===h(this,on)-1&&(E|=gt.LINE_END),S>=o&&S<=a&&(S===o?E|=gt.BLOCK_START:S===a&&(E|=gt.BLOCK_END),E|=gt.WITHIN_BLOCK),p>=this.fromTimestamp&&p<=this.toTimestamp&&(p===this.fromTimestamp&&(E|=gt.RANGE_START),p===this.toTimestamp&&(E|=gt.RANGE_END),E|=gt.WITHIN_RANGE),p>=h(this,rs)&&p<=h(this,is)&&(p===h(this,rs)&&(E|=gt.SELECTION_START),p===h(this,is)&&(E|=gt.SELECTION_END),E|=gt.WITHIN_SELECTION),[p,E]}}return Reflect.get(_,f,I)}}));return _s(d,{inner:{value:J({from:{value:o},to:{value:a},units:{value:s}})},month:{value:r},outer:{value:J({from:{value:l},to:{value:u-1},units:{value:m}})},year:{value:i}})}getUnitsForFrameBlockAtIndex(n){return Ki(this.origin,h(this,ss),n)[0]}getUnitsOffsetForTimestamp(n,s){return Math.round((s-n)/Jr)}reoriginate(){this.originTimestamp=Cu(this.originTimestamp,this.timezone);const[n,s]=Be(this.originTimestamp,this.timezone),r=Du(this.originTimestamp,this.timezone,this.firstWeekDay);this.origin=s,A(this,ss,n),A(this,ns,this.getUnitsOffsetForTimestamp(r,this.originTimestamp)),A(this,er,w(this,sr,Co).call(this,this.originTimestamp,-h(this,ns)))}reslice(){w(this,os,Pr).call(this),A(this,ts,w(this,$e,On).call(this,super.fromTimestamp)),A(this,es,w(this,$e,On).call(this,super.toTimestamp)),A(this,tr,To(super.fromTimestamp,super.toTimestamp,this.timezone)+1)}shiftOrigin(n){const[s,r]=Be(this.originTimestamp,this.timezone),[,i,o]=Ki(r,s,n),a=Re(this.timezone),l=new Date(De(a,this.originTimestamp)).setFullYear(o,i);this.originTimestamp=Ie(a,l),this.reoriginate()}clearSelection(){super.clearSelection(),w(this,os,Pr).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return w(this,sr,Co).call(this,h(this,er),n)}updateSelection(n,s){super.updateSelection(n,s),w(this,os,Pr).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(){A(this,qs,w(this,$e,On).call(this,Date.now()))}}on=new WeakMap,an=new WeakMap,qn=new WeakMap,qs=new WeakMap,ts=new WeakMap,es=new WeakMap,tr=new WeakMap,ns=new WeakMap,er=new WeakMap,ss=new WeakMap,rs=new WeakMap,is=new WeakMap,nr=new WeakSet,Mo=function(n){const s=To(n,this.originTimestamp,this.timezone);return n<this.originTimestamp?0-s:s},sr=new WeakSet,Co=function(n,s=0){const r=Re(this.timezone),i=De(r,n),o=Ie(r,i+s*Jr);let[,,,a,l]=Be(o,this.timezone),u=0;return(a>0||l>0)&&(a=(a>12?24:0)-a,l=(a>1?1:-1)*l,u=a*36e5+l*6e4),o+u},$e=new WeakSet,On=function(n){return Z(n)||mn(n)?n:n-wn(n,this.timezone)},os=new WeakSet,Pr=function(){A(this,rs,w(this,$e,On).call(this,this.selectionStart)),A(this,is,w(this,$e,On).call(this,this.selectionEnd))};const Pc=Symbol("<<NO_EXCEPTION>>"),kc=t=>{const e=[];return J({bind:x(s=>function(...r){let i=Pc;try{return e.push(s),s.call(this,...r)}catch(o){throw i=o}finally{e.pop(),e.length===0&&i===Pc&&t()}}),effect:x(t)})};var Xc,Kc,ct,oe,L,ae,Xt,ce,Mt,cn,Yt,as,Me,Ce,Kt,fe,cs,rr,Ue,qt,ni,He,ls,ln,ir,si,ot,ri,ii,oi,ai,ci,li,ui,td,di,ed,hi,nd,mi,us,kr,un,Ls,or,Do,fi,sd,_i,rd,gi,id,Ii,od,ar,Oo,pi,ad,dn,Es,cr,bo,ds,Wr,lr,vo,ur,Ro,dr,wo,hr,xo;let XI=(ot=class{constructor(){T(this,un);T(this,or);T(this,fi);T(this,_i);T(this,gi);T(this,Ii);T(this,ar);T(this,pi);T(this,dn);T(this,cr);T(this,ds);T(this,lr);T(this,ur);T(this,dr);T(this,hr);j(this,"grid");j(this,"kill");T(this,ct,F);T(this,oe,!1);T(this,L,void 0);T(this,ae,void 0);T(this,Xt,void 0);T(this,ce,!1);T(this,Mt,xn);T(this,cn,!1);T(this,Yt,void 0);T(this,as,(Xc=h(this,Yt))==null?void 0:Xc.join(" "));T(this,Me,void 0);T(this,Ce,void 0);T(this,Kt,void 0);T(this,fe,void 0);T(this,cs,void 0);T(this,rr,Vr());T(this,Ue,[]);T(this,qt,void 0);T(this,ni,new Proxy(be(()=>{var e;return((e=h(this,qt))==null?void 0:e.length)??0},w(this,ar,Oo).bind(this)),Li({get:(e,n,s)=>{var i,o;const r=((i=h(this,qt))==null?void 0:i.indexOf(n))??-1;return r>=0?(o=w(this,ar,Oo).call(this,r))==null?void 0:o[1]:Reflect.get(e,n,s)}})));T(this,He,Ir({blocks:()=>{var e;return(e=h(this,L))==null?void 0:e.size},cells:()=>{var e;return(e=h(this,L))==null?void 0:e.units},controls:()=>ys(Oc,h(this,ct).controls),cursor:()=>{var e;return(e=h(this,L))==null?void 0:e.cursor},from:()=>{var e;return(e=h(this,L))==null?void 0:e.selectionStart},highlight:()=>h(this,Mt),locale:()=>{var e;return(e=h(this,L))==null?void 0:e.locale},minified:()=>En(h(this,ct).minified),origin:()=>{var e;return(e=h(this,L))==null?void 0:e.getTimestampAtIndex(0)},timezone:()=>{var e;return(e=h(this,L))==null?void 0:e.timezone},to:()=>{var e;return(e=h(this,L))==null?void 0:e.selectionEnd},today:()=>h(this,rr).timestamp}));T(this,ls,(Kc=h(this,He))==null?void 0:Kc.snapshot);T(this,ln,kc(()=>{var e;return h(this,Kt)&&((e=h(this,He))==null?void 0:e.requestNotification())}));T(this,ir,kc(()=>{var e;return(e=h(this,Kt))==null?void 0:e.call(h(this,un,Ls))}));T(this,si,_s(be(()=>{var e;return((e=h(this,L))==null?void 0:e.size)??0},e=>{var n;return(n=h(this,L))==null?void 0:n.frameBlocks[e]}),{config:{value:Object.defineProperties(e=>(e&&w(this,_i,rd).call(this,e),h(this,un,Ls)),{cursorIndex:{get:()=>h(this,Me),set:e=>{h(this,oe)||(ht(e)?A(this,Me,void 0):X(e)&&A(this,Me,e))}},shiftFactor:{get:()=>h(this,Ce),set:e=>{h(this,oe)||(ht(e)?A(this,Ce,void 0):X(e)&&A(this,Ce,e))}},watch:{get:()=>h(this,Kt),set:e=>{var n,s,r,i,o;if(!h(this,oe))if(X(e)){if(A(this,Kt,e),!h(this,fe)){const a=(n=h(this,ln))==null?void 0:n.bind(h(ot,mi).bind(this));a&&(A(this,fe,(s=h(this,ln))==null?void 0:s.bind(st)),A(this,cs,(i=h(this,He))==null?void 0:i.subscribe((r=h(this,ir))==null?void 0:r.bind(a))),h(this,L)&&(h(this,L).effect=h(this,fe)))}if(!h(this,cn))return;A(this,cn,!1),(o=h(this,fe))==null||o.call(this)}else ht(e)&&A(this,Kt,void 0)}}})},controls:{value:h(this,ni)},cursor:{value:Object.defineProperties(e=>w(ot,us,kr).call(this,n=>!!(n&&w(this,gi,id).call(this,n)))(e),{valueOf:{value:()=>{var e;return((e=h(this,L))==null?void 0:e.cursor)??-1}}})},highlight:{value:(()=>{const e=()=>h(this,ae)===h(this,Xt)&&Z(h(this,Xt)),n=s=>r=>w(ot,us,kr).call(this,i=>{var o,a,l,u,m;if(!(h(this,oe)||!h(this,Mt)||h(this,Mt)===xn)){if(ht(i))return w(this,cr,bo).call(this);e()?(a=h(this,L))==null||a.updateSelection(i,Zu):((o=h(this,L))==null||o.updateSelection(i,s),h(this,Mt)===Ke&&h(this,Yt)&&w(this,ds,Wr).call(this,i,s===Rt?Qt:Rt,h(this,Yt))),A(this,ae,(l=h(this,L))==null?void 0:l.selectionStart),A(this,Xt,(u=h(this,L))==null?void 0:u.selectionEnd),(m=h(this,L))==null||m.shiftFrameToTimestamp(s===Rt?h(this,ae):h(this,Xt))}})(r);return J({blank:{get:e},from:{get:()=>{var s;return((s=h(this,L))==null?void 0:s.selectionStart)??h(this,ae)},set:n(Rt)},to:{get:()=>{var s;return((s=h(this,L))==null?void 0:s.selectionEnd)??h(this,Xt)},set:n(Qt)}})})()},rowspan:{get:()=>{var e;return((e=h(this,L))==null?void 0:e.rowspan)??0}},weekdays:{get:()=>{var e;return((e=h(this,L))==null?void 0:e.daysOfWeek)??h(ot,oi)}}}));this.grid=h(this,si),this.kill=w(this,Ii,od).bind(this)}},ct=new WeakMap,oe=new WeakMap,L=new WeakMap,ae=new WeakMap,Xt=new WeakMap,ce=new WeakMap,Mt=new WeakMap,cn=new WeakMap,Yt=new WeakMap,as=new WeakMap,Me=new WeakMap,Ce=new WeakMap,Kt=new WeakMap,fe=new WeakMap,cs=new WeakMap,rr=new WeakMap,Ue=new WeakMap,qt=new WeakMap,ni=new WeakMap,He=new WeakMap,ls=new WeakMap,ln=new WeakMap,ir=new WeakMap,si=new WeakMap,ri=new WeakMap,ii=new WeakMap,oi=new WeakMap,ai=new WeakMap,ci=new WeakMap,li=new WeakMap,ui=new WeakSet,td=function(e){if(!Gt(e)||!h(ot,ri).test(e))return;const n=e.split(/\s+/);return Array.from({length:6},(s,r)=>parseInt(n[r]??"0"))},di=new WeakSet,ed=function(e){switch(e&~Cn.PREV){case Cn.FRAME:return xr;case Cn.PERIOD:return jr;case Cn.BLOCK:default:return Ju}},hi=new WeakSet,nd=function(e){return e&Cn.PREV?-1:1},mi=new WeakMap,us=new WeakSet,kr=function(e){var n;return((n=h(this,ln))==null?void 0:n.bind(e))??e},un=new WeakSet,Ls=function(){return{...h(this,ct)}},or=new WeakSet,Do=function(){return new QI},fi=new WeakSet,sd=function(e){return!!h(this,L)&&!(e>0?h(this,L).isAtEnd:h(this,L).isAtStart)},_i=new WeakSet,rd=function(e){var r,i;if(h(this,oe))return;A(this,Yt,void 0);const n=e==null?void 0:e.highlight,s=En(h(this,ct).minified);if(Gt(n)?A(this,Yt,w(r=ot,ui,td).call(r,n))&&A(this,Mt,Ke):A(this,Mt,ys($I,n,h(this,Mt))),A(this,ct,{...h(this,ct),...e,blocks:ys(Bn,e==null?void 0:e.blocks,h(this,ct).blocks),controls:ys(Oc,e==null?void 0:e.controls,h(this,ct).controls),firstWeekDay:ys(Pu,e==null?void 0:e.firstWeekDay,h(this,ct).firstWeekDay),fixedBlockHeight:En(e==null?void 0:e.fixedBlockHeight,h(this,ct).fixedBlockHeight),highlight:h(this,Mt),minified:En(e==null?void 0:e.minified,h(this,ct).minified),trackCurrentDay:En(e==null?void 0:e.trackCurrentDay,h(this,ct).trackCurrentDay)}),!X(h(this,Kt))){h(this,L)?A(this,cn,!0):(A(this,L,h(this,or,Do)),w(this,ur,Ro).call(this),w(this,hr,xo).call(this),w(this,dr,wo).call(this));return}(!h(this,L)||s!==h(this,ct).minified)&&(A(this,L,h(this,or,Do)),h(this,L).effect=h(this,fe)),w(this,ur,Ro).call(this),(i=h(this,fe))==null||i.call(this)},gi=new WeakSet,id=function(e){if(e&&h(this,L)&&X(h(this,Kt))){if(e instanceof KeyboardEvent){switch(e.code){case H.ARROW_LEFT:h(this,L).shiftFrameCursor(ku);break;case H.ARROW_RIGHT:h(this,L).shiftFrameCursor(Fu);break;case H.ARROW_UP:h(this,L).shiftFrameCursor(Gu);break;case H.ARROW_DOWN:h(this,L).shiftFrameCursor(zu);break;case H.HOME:h(this,L).shiftFrameCursor(e.ctrlKey?Bu:Uu);break;case H.END:h(this,L).shiftFrameCursor(e.ctrlKey?Wu:$u);break;case H.PAGE_UP:e.shiftKey?h(this,L).shiftFrameByOffset(-1,jr):h(this,L).shiftFrameCursor(Yu);break;case H.PAGE_DOWN:e.shiftKey?h(this,L).shiftFrameByOffset(1,jr):h(this,L).shiftFrameCursor(Hu);break;case H.SPACE:case H.ENTER:return w(this,dn,Es).call(this),!0;default:return}return h(this,ce)&&w(this,dn,Es).call(this,F),!0}if(e instanceof MouseEvent&&h(ot,ii).includes(e.type)&&X(h(this,Me))){const n=h(this,Me).call(h(this,un,Ls),e);if(!Os(n))return;const s=e.type==="click";if(!(s||h(this,ce)))return;if(h(this,L).shiftFrameCursor(n),h(this,L).cursor===n)return s?w(this,dn,Es).call(this):w(this,dn,Es).call(this,F),!0}}},Ii=new WeakSet,od=function(){var e;h(this,oe)||((e=h(this,cs))==null||e.call(this),A(this,ln,A(this,ir,A(this,Me,A(this,L,A(this,Mt,A(this,as,A(this,ls,A(this,Yt,A(this,Ce,A(this,cs,A(this,He,A(this,fe,A(this,Kt,void 0))))))))))))),A(this,ct,F),A(this,ce,A(this,cn,!1)),A(this,oe,!0))},ar=new WeakSet,Oo=function(e){var s,r;if(!h(this,qt)||e<0||e>=h(this,qt).length)return;const n=h(this,qt)[e];if(!h(this,Ue)[e]){const i=No[n],o=w(s=ot,di,ed).call(s,i),a=w(r=ot,hi,nd).call(r,i);h(this,Ue)[e]=(...l)=>w(ot,us,kr).call(this,(...u)=>{var _;const m=w(this,fi,sd).call(this,a);if(!(m&&u.length))return m;const d=w(this,pi,ad).call(this,n,u[0]);return Z(d)?!1:((_=h(this,L))==null||_.shiftFrameByOffset(a*d,o),!0)})(...l)}return[n,h(this,Ue)[e]]},pi=new WeakSet,ad=function(e,n){if(!(h(this,L)&&X(h(this,Kt))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!h(ot,ai).includes(n.code))return}else return;let s=1;if(X(h(this,Ce))){const r=Number(h(this,Ce).call(h(this,un,Ls),n,e));s=Number.isInteger(r)&&r>=1?r:s}return s},dn=new WeakSet,Es=function(e){if(h(this,oe)||!h(this,L))return;switch(h(this,Mt)){case Ke:case jn:break;case xn:default:return}const n=h(this,L).cursor,s=Math.max(h(this,L).getTimestampAtIndex(n),h(this,L).timeslice.from),r=Math.min(h(this,L).getTimestampAtIndex(n+1)-1,h(this,L).timeslice.to),i=h(this,Yt);if(h(this,Mt)===jn||h(this,L).blankSelection||i)if(A(this,ce,!(h(this,Mt)===jn||i)),h(this,Mt)===Ke&&i){const o=r>=h(this,L).selectionEnd?Rt:Qt;o===Rt?h(this,L).updateSelection(r,Qt):h(this,L).updateSelection(s,Rt),w(this,ds,Wr).call(this,o===Rt?h(this,L).selectionEnd:h(this,L).selectionStart,o,i)}else h(this,L).updateSelection(s,Rt),h(this,L).updateSelection(r,Qt);else{const o=e===F,a=Re(h(this,L).timezone);if(o||A(this,ce,!1),s<=h(this,L).selectionStart){const l=new Date(De(a,h(this,L).selectionStart)),u=Math.min(Ie(a,l.setDate(l.getDate()+1)-1),h(this,L).timeslice.to);s===h(this,L).selectionStart&&r<=u&&h(this,L).updateSelection(r,Qt),h(this,L).updateSelection(s,Rt)}else{const l=new Date(De(a,h(this,L).selectionEnd)),u=Math.max(Ie(a,l.setHours(0,0,0,0)),h(this,L).timeslice.from);s<=h(this,L).selectionEnd&&s>=u&&h(this,L).updateSelection(s,Rt),h(this,L).updateSelection(r,Qt)}if(o)return}A(this,ae,h(this,L).selectionStart),A(this,Xt,h(this,L).selectionEnd)},cr=new WeakSet,bo=function(){var e;(e=h(this,L))==null||e.clearSelection(),A(this,ce,!1),A(this,ae,A(this,Xt,void 0))},ds=new WeakSet,Wr=function(e,n,s){var f;if(!h(this,L))return;const r=Re((f=h(this,L))==null?void 0:f.timezone),i=new Date(De(r,e)),o=n===Rt?-1:1,[a=0,l=0,u=0,m=0,d=0,_=0]=s??[];i.setFullYear(i.getFullYear()+a*o,i.getMonth()+l*o,i.getDate()+u*o),i.setHours(i.getHours()+m*o,i.getMinutes()+d*o,i.getSeconds()+_*o),h(this,L).updateSelection(Ie(r,i.getTime()-o),n)},lr=new WeakSet,vo=function(){var e,n;h(this,ae)&&((e=h(this,L))==null||e.updateSelection(h(this,ae),Rt)),h(this,Xt)&&((n=h(this,L))==null||n.updateSelection(h(this,Xt),Qt)),A(this,ce,!1)},ur=new WeakSet,Ro=function(){h(this,L)&&(h(this,L).timeslice=h(this,ct).timeslice,h(this,L).dynamicBlockHeight=!h(this,ct).fixedBlockHeight,h(this,L).firstWeekDay=h(this,ct).firstWeekDay,h(this,L).locale=h(this,ct).locale,h(this,L).size=h(this,ct).blocks,h(this,L).timezone=h(this,ct).timezone,h(this,L).trackCurrentDay=h(this,ct).trackCurrentDay,A(this,rr,Vr(h(this,L).timezone)),w(this,lr,vo).call(this))},dr=new WeakSet,wo=function(){var e,n,s,r,i,o;switch(h(this,Mt)){case Ke:!Ye((e=h(this,L))==null?void 0:e.blankSelection)&&h(this,Yt)&&w(this,ds,Wr).call(this,(n=h(this,L))==null?void 0:n.selectionStart,Qt,h(this,Yt));break;case jn:if(!Ye((s=h(this,L))==null?void 0:s.blankSelection)){const a=Re((r=h(this,L))==null?void 0:r.timezone),l=new Date(De(a,(i=h(this,L))==null?void 0:i.selectionStart));(o=h(this,L))==null||o.updateSelection(Ie(a,l.setHours(23,59,59,999)),Qt)}break;case xn:default:w(this,cr,bo).call(this);return}},hr=new WeakSet,xo=function(){var e,n;switch((e=h(this,He))==null?void 0:e.snapshot.controls){case Ea:A(this,qt,h(ot,ci));break;case Ma:A(this,qt,h(ot,li));break;case Ca:default:A(this,qt,void 0)}h(this,Ue).length=0,h(this,Ue).length=((n=h(this,qt))==null?void 0:n.length)??0},T(ot,ui),T(ot,di),T(ot,hi),T(ot,us),T(ot,ri,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),T(ot,ii,["click","mouseover","pointerover"]),T(ot,oi,be(0,st)),T(ot,ai,[H.ENTER,H.SPACE]),T(ot,ci,Object.keys(No).filter(e=>isNaN(+e))),T(ot,li,["PREV","NEXT"]),T(ot,mi,function(e){var o,a;if(gs(e))return;let n=!1,s=!1,r=!1;const i=(o=h(this,Yt))==null?void 0:o.join(" ");for(const l of Object.keys(e))e[l]!==((a=h(this,ls))==null?void 0:a[l])&&(l==="controls"?n=!0:l==="highlight"?s=!0:(l==="from"||l==="to")&&(r=!0));h(this,as)!==i&&(A(this,as,i),s=!0),A(this,ls,e),h(this,ce)&&!r&&w(this,lr,vo).call(this),n&&w(this,hr,xo).call(this),s&&w(this,dr,wo).call(this)}),ot);const KI=(()=>Object.defineProperties(e=>{const{grid:n,kill:s}=new XI;return mr(e)?n.config({blocks:e}):X(e)?Ti.then(()=>{n.config.watch=e}):n.config(e),J({grid:x(n),kill:x(s)})},{controls:{value:J({ALL:{value:Ea},MINIMAL:{value:Ma},NONE:{value:Ca}})},highlight:{value:J({ONE:{value:jn},MANY:{value:Ke},NONE:{value:xn}})},slice:{value:Object.defineProperties(Vu.bind(null),{FROM:{value:Da},TO:{value:Oa},UNBOUNDED:{value:Ds},SINCE_NOW:{get:HI},UNTIL_NOW:{get:YI}})}}))(),he=KI,qI=({config:t,grid:{controls:e},renderer:n})=>t.controls===he.controls.NONE||!X(n)?null:c(q,{children:e.map(([s,r])=>n(s,r))}),t0=Et(qI),e0=t=>{const e=N((n,s)=>{s instanceof Element&&s.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),Ti.then(()=>n==null?void 0:n.focus()))},[]);return je(N((n,s)=>{try{t==null||t(n,s)}finally{e(n,s)}},[t]))},n0=e0,s0=({blocks:t,controls:e,dynamicBlockRows:n,firstWeekDay:s,highlight:r,locale:i,onHighlight:o,originDate:a,renderControl:l,sinceDate:u,timezone:m,trackCurrentDay:d,untilDate:_,useYearView:f},I)=>{const{i18n:g}=V(),[S,p]=$(performance.now()),D=y(()=>he.slice(u,_),[u,_]),E=W(F),O=y(()=>e??(X(l)?he.controls.MINIMAL:he.controls.NONE),[e,l]),P=y(()=>r??(X(o)?he.highlight.ONE:he.highlight.NONE),[r,o]),{grid:M,kill:R}=y(()=>{const{grid:v,kill:Q}=he(function(){p(performance.now()),E.current=this,!(Y===v.highlight.from&&nt===v.highlight.to)&&(Y=v.highlight.from,nt=v.highlight.to,o==null||o(Y,nt))});let{from:Y,to:nt}=v.highlight;return v.config.cursorIndex=tt=>{let it=tt.target;for(;it&&it!==tt.currentTarget;){const vt=Number(it.dataset.cursorPosition);if(Number.isFinite(vt))return vt;it=it.parentNode}},v.config.shiftFactor=function(tt){if(this.controls===he.controls.MINIMAL)return tt!=null&&tt.shiftKey?12:tt!=null&&tt.altKey?this.blocks:1},{grid:v,kill:Q}},[]),C=y(()=>{const v=Q=>{M.cursor(Q)};return{onClickCapture:v,onMouseOverCapture:v,onPointerOverCapture:v,onKeyDownCapture:Q=>{M.cursor(Q)&&Q.preventDefault()}}},[M]),k=n0(N((v,Q)=>{Q instanceof Element&&Q.removeAttribute("aria-selected"),v instanceof Element&&v.setAttribute("aria-selected","true")},[]));return _m(I,()=>{const{from:v,to:Q}=(M==null?void 0:M.highlight)||F;return{clear:()=>{M!=null&&M.highlight&&(M.highlight.from=void 0)},get config(){return{...E.current??F}},get from(){return Mc(v)},set from(Y){M!=null&&M.highlight&&Y&&(M.highlight.from=Y.getTime())},get to(){return Mc(Q)},set to(Y){M!=null&&M.highlight&&Y&&(M.highlight.to=Y.getTime())}}},[M,S]),B(()=>{M.config({blocks:t,controls:O,firstWeekDay:s,fixedBlockHeight:!n,highlight:P,locale:i??g.locale,minified:f,timeslice:D,timezone:m,trackCurrentDay:d})},[O,P,t,n,s,M,g,i,D,m,d,f]),B(()=>{const v=[].concat(a).slice(0,2).map(Number).filter(Boolean);return v[0]&&(M.highlight.from=+v[0]),v[1]&&(M.highlight.to=+v[1]),R},[]),{cursorElementRef:k,cursorRootProps:C,grid:M}},r0=s0,i0=Is((t,e)=>{const n=r0(t,e),s=n.grid.config();return c("div",{role:"none",children:[c(t0,{config:s,grid:n.grid,renderer:t.renderControl}),c(BI,{ref:n.cursorElementRef,config:s,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:t.onlyCellsWithin,prepare:t.prepare})]})}),o0=Et(i0),a0=(t,e)=>{const[n,s]=$(),r=je(y(()=>{const i=o=>(...a)=>{const l=t(o,...a);return l&&Xl(l,o)};return s(void 0),o=>s(o instanceof Element?()=>i(o):void 0)},[t,e]),e);return[n,r]},c0=a0,l0=t=>{const{i18n:e}=V();return c0(N((n,s,r)=>{if(!(n instanceof HTMLElement))return null;if(X(t))return t(s,r);let i,o,a;switch(s){case"PREV":i="prev",o="previous",a=ua;break;case"NEXT":i=o="next",a=vi;break;default:return null}const l=r();return l?c(Pt,{"aria-label":e.get(`calendar.${o}Month`),variant:Nt.TERTIARY,disabled:!l,classNameModifiers:["circle",i],iconButton:!0,onClick:r,children:c(a,{role:"presentation"})},s):null},[e,t]))},u0=l0;const d0=Is((t,e)=>{const{i18n:n}=V(),[s,r]=u0(t.renderControl),[i,o]=$(performance.now()),a=y(()=>Ye(t.showTimezoneInfo),[t.showTimezoneInfo]),{clockTime:l,GMTOffset:u}=Qg({timezone:t.timezone,withClock:a}),m=y(()=>z([{"adyen-pe-datepicker--with-timezone":a},"adyen-pe-datepicker"]),[a]),d=y(()=>a?{values:{offset:u,time:l}}:F,[u,l,a]),_=je(st,e),f=N(()=>{var I,g,S,p,D;o(performance.now()),(I=_.current)!=null&&I.from&&((g=_.current)!=null&&g.to)&&((D=t.onHighlight)==null||D.call(t,+((S=_.current)==null?void 0:S.from),+((p=_.current)==null?void 0:p.to)))},[o,t.onHighlight]);return c("div",{className:m,children:[c("div",{className:"adyen-pe-datepicker__selector-container",children:c(vI,{now:t.now,calendarRef:_,onTimeRangeSelected:t.onPresetOptionSelected,options:t.timeRangePresetOptions,selectedOption:t.selectedPresetOption,timestamp:i,timezone:t.timezone})}),c("div",{ref:r,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),c(o0,{...t,ref:_,firstWeekDay:Na,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:t.controls??he.controls.MINIMAL,highlight:t.highlight??he.highlight.MANY,onHighlight:f,renderControl:s,trackCurrentDay:!0}),a&&c("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",d)})]})}),h0=d0;const m0="adyen-pe-filter-button";function f0({className:t,classNameModifiers:e=[],children:n,disabled:s,onClick:r,...i},o){const a=y(()=>kn("",t)||"",[t]),l=y(()=>Xo(s),[s]),{classes:u,click:m}=Ko(a,e,m0,l,r);return c("button",{className:u,ref:o,onClick:m,...i,children:c(U,{el:pe.DIV,variant:b.BODY,stronger:!0,children:n})})}const _0=Zt(f0);function cd({onInput:t,onKeyUp:e,trimOnBlur:n,onBlurHandler:s,onBlur:r,onFocusHandler:i,errorMessage:o,...a},l){const{autoCorrect:u,classNameModifiers:m,isInvalid:d,isValid:_,readonly:f=!1,spellCheck:I,type:g,uniqueId:S,isCollatingErrors:p,disabled:D}=a;le(a,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const E=N(tt=>{t==null||t(tt)},[t]),O=N(tt=>{e&&e(tt)},[e]),P=N(tt=>{s==null||s(tt),n&&(tt.target.value=tt.target.value.trim()),r==null||r(tt)},[r,s,n]),M=N(tt=>{i==null||i(tt)},[i]),R=z("adyen-pe-input",[`adyen-pe-input--${g}`],a.className,{"adyen-pe-input--invalid":d,"adyen-pe-input--valid":_},m==null?void 0:m.map(tt=>`adyen-pe-input--${tt}`)),{classNameModifiers:C,uniqueId:k,isInvalid:v,isValid:Q,isCollatingErrors:Y,...nt}=a;return c(q,{children:[c("input",{id:S,...nt,type:g,className:R,readOnly:f,"aria-describedby":p?void 0:`${S}${Ao}`,"aria-invalid":d,onInput:E,onBlur:P,onFocus:M,onKeyUp:O,disabled:D,ref:l}),d&&o&&c("span",{className:"adyen-pe-input__invalid-value",id:`${S}${Ao}`,children:o})]})}cd.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const jo=Is(cd),g0=Is(function(e,n){return c(jo,{classNameModifiers:e.classNameModifiers,...e,ref:n,"aria-required":e.required,type:"text"})}),I0=t=>!t||qd(t),p0=(()=>{const t=e=>{const{editAction:n,name:s,onChange:r,onValueUpdated:i}=e,[o,a]=$(e.value),l=N(u=>{const m=u.target.value.trim();a(m),i(m)},[i]);return B(()=>{if(n===Ct.CLEAR){const u="";a(u),i(u),r(u)}n===Ct.APPLY&&r(o??"")},[o,n,r,i]),c(g0,{name:s,value:o,onInput:l})};return e=>c(t,{...e})})(),y0=({render:t,...e})=>{var Q;const n=ft(mt.down.xs),[s,r]=_e(!1),[i,o]=_e(!1),a=y(()=>e.isValueEmpty??I0,[e.isValueEmpty]),[l,u]=_e(a(e.value)),[m,d]=_e(!1),[_,f]=_e(!1),[I,g]=_e(a(e.value)),S=Zr(),p=y(()=>t??p0,[t]),D=N(Y=>{const nt=a(Y??void 0);u(nt),g(Fr(Y)),f(m?Y!==e.value:!nt)},[a,u,g,f,m,e.value]),{commitAction:E,commitActionButtons:O,committing:P,resetCommitAction:M}=pu({applyDisabled:I||!_,resetDisabled:l}),[R,C]=y(()=>{const Y=nt=>()=>{nt!==s&&(nt&&(M(),f(!1),d(!1)),r(nt),o(nt))};return[Y(!1),Y(!0)]},[r,s,M,o,d,f]);B(()=>{if(i){const Y=a(e.value);o(!1),u(Y),d(!Y)}},[e.value,i,a,o,u,d]),B(()=>{P&&R(),u(l)},[P,R,u,l]);const k=ft(mt.only.sm),v=ft(mt.only.md);return c(q,{children:[c("div",{className:`adyen-pe-filter adyen-pe-filter--${e.type}`,children:y(()=>c(_0,{classNameModifiers:[...e.appliedFilterAmount?["with-counter"]:[],...e.classNameModifiers??[],...s?["active"]:[],...l?[]:["has-selection"]],onClick:s?R:C,tabIndex:0,ref:S,children:c("div",{className:"adyen-pe-filter-button__default-container",children:[c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:e.label}),!!e.appliedFilterAmount&&c("div",{className:"adyen-pe-filter-button__counter-wrapper",children:c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:e.appliedFilterAmount})})]})}),[e.appliedFilterAmount,e.classNameModifiers,e.label,s,l,R,C,S])}),s&&c(ia,{actions:O,title:(Q=e.title)==null?void 0:Q.trim(),variant:bt.POPOVER,modifiers:["filter"],open:s,"aria-label":`${e.label}`,dismiss:R,dismissible:!1,withContentPadding:e.withContentPadding??!0,divider:!0,targetElement:S,disableFocusTrap:!1,position:at.BOTTOM,containerSize:e.containerSize,showOverlay:n,fitPosition:k||v,children:p({...e,editAction:E,onValueUpdated:D})})]})},ld=Et(y0);var Ps=(t=>(t.FROM="from",t.TO="to",t))(Ps||{});const S0={month:"short",day:"numeric",year:"numeric"},ud=(t,e,n,s)=>{const r=n&&e(n),i=s&&e(s);if(r&&i)return`${r} - ${i}`;if(r)return t.get("filter.date.since",{values:{date:r}});if(i)return t.get("filter.date.until",{values:{date:i}})},ge=t=>{try{return new Date(t||"").toISOString()}catch{return""}},A0=(()=>{const t=({editAction:e,from:n,to:s,now:r,onChange:i,onValueUpdated:o,showTimezoneInfo:a,selectedPresetOption:l,timeRangePresetOptions:u,timezone:m,sinceDate:d,untilDate:_})=>{const{i18n:f}=V(),{fullDateFormat:I}=Sn(m),[g,S]=$(l),p=y(()=>[new Date(n),new Date(s)],[n,s]),D=W(),E=N((O,P)=>{o(ud(f,I,ge(O),ge(P)))},[f,I,o]);return B(()=>{var O,P,M;switch(e){case Ct.APPLY:i({selectedPresetOption:g,[Ps.FROM]:ge((O=D.current)==null?void 0:O.from),[Ps.TO]:ge((P=D.current)==null?void 0:P.to)});break;case Ct.CLEAR:(M=D.current)==null||M.clear(),i()}},[e,i,g]),c(h0,{ref:D,now:r,originDate:p,onHighlight:E,onPresetOptionSelected:S,selectedPresetOption:l,timeRangePresetOptions:u,timezone:m,showTimezoneInfo:a,sinceDate:ge(d),untilDate:ge(_)})};return e=>c(t,{...e})})(),T0=(t,e,n)=>t.formatRange(e,n);function N0({title:t,from:e,to:n,selectedPresetOption:s,...r}){const{i18n:i}=V(),{fullDateFormat:o}=Sn(r.timezone),[a,l]=$(),[u,m]=$(),[d,_]=$(),f=N(p=>{const{from:D,to:E,selectedPresetOption:O}=p??F;try{l(a??O),m(ge(u??D)),_(ge(d??E))}finally{r.onChange({from:D,to:E,selectedPresetOption:O})}},[a,u,d,r]),I=y(()=>i.get("rangePreset.custom"),[i]),g=y(()=>{const p={...S0,timeZone:r.timezone};let D=new Intl.DateTimeFormat(Mi,p);try{D=new Intl.DateTimeFormat(i.locale,p)}catch{}return D},[i,r.timezone]);B(()=>l(s),[s]),B(()=>m(ge(e||Date.now())),[e]),B(()=>_(ge(n||Date.now())),[n]);const S=y(()=>s===I&&u&&d?T0(g,new Date(u),new Date(d)):s??r.label,[I,g,u,d,s,r.label]);return c(ld,{...r,from:e,to:n,type:"date",label:S,onChange:f,render:A0,selectedPresetOption:s,value:ud(i,o,e,n),withContentPadding:!1})}const L0=({timezone:t,canResetFilters:e,defaultParams:n,filters:s,nowTimestamp:r,refreshNowTimestamp:i,sinceDate:o,untilDate:a,updateFilters:l})=>{const{i18n:u}=V(),m=y(()=>u.get(n.current.defaultTimeRange),[u]),[d,_]=$(m),f=N((I=F)=>{for(const[g,S]of Object.entries(I)){switch(g){case"selectedPresetOption":_(S||m);break;case Ps.FROM:l({[G.CREATED_SINCE]:S||n.current.defaultFilterParams[G.CREATED_SINCE]});break;case Ps.TO:l({[G.CREATED_UNTIL]:S||n.current.defaultFilterParams[G.CREATED_UNTIL]});break;default:return}i()}},[m,i,l]);return y(()=>!e&&_(m),[e,m]),c(N0,{label:u.get("dateRange"),name:G.CREATED_SINCE,sinceDate:o,untilDate:a??new Date(r).toString(),from:s[G.CREATED_SINCE],to:s[G.CREATED_UNTIL],selectedPresetOption:d,timeRangePresetOptions:n.current.timeRangeOptions,timezone:t,onChange:f,showTimezoneInfo:!0,now:r})},ba=L0,E0=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),M0=E0;const Wc="adyen-pe-filter-bar-mobile-switch",va=()=>{const t=ft(mt.down.xs),[e,n]=$(!t);return B(()=>{n(!t)},[t]),{isMobileViewport:t,showingFilters:e,setShowingFilters:n}},Ra=({isMobileViewport:t,showingFilters:e,setShowingFilters:n})=>t?c("div",{className:Wc,children:c(Pt,{iconButton:!0,className:`${Wc}__button`,disabled:!X(n),onClick:()=>n==null?void 0:n(!e),variant:Nt.SECONDARY,children:e?c(la,{}):c(M0,{})})}):null,C0=t=>{const{i18n:e}=V();return t.showingFilters?c("div",{"aria-label":e.get("filterBar"),className:z("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":t.isMobileViewport}),children:[t.children,t.canResetFilters&&!!t.resetFilters&&c(Pt,{variant:Nt.TERTIARY,onClick:t.resetFilters,children:e.get("button.clearAll")})]}):null},wa=C0;function D0(t){return"callback"in t}function dd(t){const[e,n]=$(null),s=N(o=>{var a;return o&&D0(t[o.selection.type])?{callback:(a=t==null?void 0:t[o.selection.type])!=null&&a.callback?l=>{var u,m;return(m=(u=t[o.selection.type])==null?void 0:u.callback)==null?void 0:m.call(u,{showModal:()=>n(o),...l})}:()=>{var l;return((l=t[o.selection.type])==null?void 0:l.showDetails)&&n(o)}}:(n(o),{})},[t]),r=N(()=>n(null),[]),i=y(()=>{const o={};for(const a in t){const l=t[a];o[a]=!(l!=null&&l.showDetails)||!!l.callback}return o},[t]);return{selectedDetail:e,updateDetails:s,detailsToShow:i,resetDetails:r}}const xa=Object.freeze([10,20]),O0=100,ks=10,Po=t=>{const e=~~t;return e===t&&e>0?Math.min(e,O0):Math.max(e,0)},b0=(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,r=0,i=n;for(;;){const o=t[s=tl(r,i)];if(r>i||e===o)return o;e>o?r=s+1:i=s-1}},v0=({preferredLimit:t=ks,preferredLimitOptions:e})=>{const n=W(),s=W(),r=y(()=>{try{const o=new Set;for(const a of e){const l=Po(a);l>0&&o.add(l)}return Object.freeze([...o].sort((a,l)=>a-l))}catch{}},[e]);return{limit:y(()=>{let o=Po(t)||ks;t:try{if(n.current===r)break t;const a=new Set(n.current=r);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(mr(s.current)){o=s.current;break e}}else a.delete(s.current);o=b0(n.current,o)}}catch{}return s.current=o},[r,t]),limitOptions:r}},R0=v0,w0=t=>{const e=W(!1),n=y(()=>t,[t]);return B(()=>(e.current=!0,()=>{e.current=!1,n&&n()}),[n]),e},ja=w0,x0=(t,e,n)=>{const s=W(),r=W(),i=W(),o=W(),a=ja(N(()=>{var v;(v=s.current)==null||v.abort(),s.current=void 0},[])),[l,u]=$(o.current),[m,d]=_e(!1),_=y(()=>Po(n),[n]),{getPageCount:f,getPageParams:I,resetPageCount:g,updatePagination:S}=t,p=y(()=>e?v=>{var tt;if(!(_&&Number.isInteger(v)))return;const Q=f(),Y=v<0?v+Q+1:v;Y>0&&(Q?Y<=Q:Y===1)&&((tt=s.current)==null||tt.abort(),s.current=new AbortController,a.current&&(((o.current=Y)>1||Q)&&u(o.current),(async()=>{const{signal:it}=s.current,vt={...I(Y,_),limit:_,page:Y};try{const Dt=await e(vt,it);if(!Dt||!a.current)return;const{size:_t,...kt}=Dt;S(Y,_,kt),r.current=o.current&&Math.max(o.current,r.current||-1/0),o.current&&o.current===r.current&&(i.current=_t),o.current===1&&_t>0&&u(o.current),o.current=void 0,d(!0)}catch(Dt){if(it.aborted)return;console.error(Dt)}})()))}:st,[_,e]),D=N(()=>{l&&p(Math.min(l+1,f()))},[p,l]),E=N(()=>{l&&p(Math.max(l-1,1))},[p,l]),O=y(()=>f()||l||void 0,[p,m]),P=y(()=>!!(l&&O)&&l<O,[l,O]),M=y(()=>!!l&&l>1,[l]),R=y(()=>r.current?(r.current-1)*_+(i.current||0):0,[p,m]),C=y(()=>_&&Math.min(_,R||1/0)%_,[_,R]),k=N(()=>{g(),r.current=i.current=o.current=void 0,a.current&&u(o.current)},[g]);return B(()=>{a.current&&m&&d(!1)},[m]),{goto:p,hasNext:P,hasPrev:M,limit:_,next:D,page:l,pages:O,pageSize:C,prev:E,resetPagination:k,size:R}},hd=x0,j0=t=>Gt(t.next),P0=t=>Gt(t.prev),k0=(t,e)=>{const n=y(()=>{const s=[],r=()=>s.length,i=()=>{s.length=0},o=u=>({cursor:s[u-1]}),a=(u,m)=>{const d=s[m-1];(m===1||m===(s.length||1)+1)&&Z(d)&&(s[m-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:r,getPageParams:o,resetPageCount:i,updatePagination:(u,m,d)=>{j0(d)&&a(d.next,u+1),P0(d)&&a(d.prev,u-1)}}},[]);return hd(n,t,e)},W0=k0,B0=t=>t.next,z0=(t,e)=>{const n=y(()=>{let s=0;return{getPageCount:()=>s,getPageParams:(l,u)=>({offset:(l-1)*u}),resetPageCount:()=>{s=0},updatePagination:(l,u,m)=>{B0(m)&&m.next&&(s=Math.max(s,l+1))}}},[]);return hd(n,t,e)},F0=z0,$0=(t=F,e=!0)=>{const n=W(e),s=W(Object.freeze({...t})),r=W(new Set(Object.keys(s.current))),i=W(new Set),o=ja(),[a,l]=y(()=>{const _=f=>{o.current&&m(f)};return[()=>_("reset"),f=>_(f)]},[o]),[u,m]=Oi((_,f)=>{if(f==="reset")return i.current.clear(),s.current;const I={...f},g=[0];Object.keys(I).forEach((p,D)=>{if(!r.current.has(p))return;const E=_[p]??void 0,O=s.current[p]??void 0,P=I[p]??O;if(P===E)return;const M=Math.floor(D/32),R=1<<D%32;I[p]=P,g[M]|=R,i.current[P===O?"delete":"add"](p)});const S=g.some(p=>p)?n.current&&i.current.size===0?s.current:Object.freeze({..._,...I}):_;return n.current||(s.current=S,n.current=!0),S},s.current),d=y(()=>!!i.current.size,[]);return B(()=>{s.current=Object.freeze({...t}),r.current=new Set(Object.keys(s.current)),n.current=e,a()},[e,t,a]),{canResetState:d,defaultState:s.current,resetState:a,state:u,updateState:l}},U0=$0,H0=(t=F,e)=>{const{canResetState:n,defaultState:s,resetState:r,state:i,updateState:o}=U0(t,e);return{canResetFilters:n,defaultFilters:s,filters:i,resetFilters:r,updateFilters:o}},Y0=H0;var ko=(t=>(t.NEXT="next",t.PREV="prev",t))(ko||{}),Pa=(t=>(t.CURSOR="cursor",t.OFFSET="offset",t))(Pa||{});const G0=["hasNext","hasPrevious"],md=t=>{const e=Object.getOwnPropertyNames(t);return!G0.some(n=>e.includes(n))},Z0=(t,e="data")=>{const n=t[e];if(md(t)){const s=Object.fromEntries(Object.entries(t._links).map(([r,i])=>[r,i.cursor]));return{records:n,paginationData:s}}throw new TypeError("MALFORMED_PAGINATED_DATA")},J0=(t,e="data")=>{const n=t[e];if(!md(t)){const{hasNext:s,hasPrevious:r}=t,i={[ko.NEXT]:jt(s),[ko.PREV]:jt(r)};return{records:n,paginationData:i}}throw new TypeError("MALFORMED_PAGINATED_DATA")},V0=({dataField:t="data",fetchRecords:e,filterParams:n=F,initialFiltersSameAsDefault:s=!0,initialize:r,onFiltersChanged:i,pagination:o,preferredLimit:a,preferredLimitOptions:l,enabled:u})=>{const[m,d]=$([]),[_,f]=_e(!0),[I,g]=$(),[S,p]=$(a),D=ja(),E=W(!0),O=W(1),P=Y0(n,s),{limit:M,limitOptions:R}=R0({preferredLimit:S,preferredLimitOptions:l}),{defaultFilters:C,filters:k,updateFilters:v,...Q}=P,[Y,nt]=y(()=>o===Pa.CURSOR?[Z0,W0]:[J0,F0],[]),tt=N(At=>p(At),[]),{goto:it,page:vt,pages:Dt,resetPagination:_t,...kt}=nt(N(async({page:At,...pt},Wt)=>{try{if(g(void 0),O.current=At,!D.current||f(!0))return;const de=await e({...pt,...k},Wt),{records:se,paginationData:ke}=Y(de,t);return E.current&&(r==null||r([se,ke],P),E.current=!1),D.current&&(d(se),f(!1)),{...ke,size:se==null?void 0:se.length}}catch(de){if(Wt!=null&&Wt.aborted)return;f(!1),g(de),console.error(de)}},[e,k,M]),M);return y(()=>{E.current=!0},[n]),y(()=>{_t(),O.current=1},[k,M,_t]),B(()=>{u&&it(O.current)},[it,u]),B(()=>{i==null||i(k)},[k]),{error:I,fetching:_,filters:k,goto:it,limitOptions:R,page:vt,pages:Dt,records:m,updateFilters:v,updateLimit:tt,...Q,...kt}},Q0=V0,X0=t=>Q0({...t,pagination:Pa.CURSOR}),ka=X0;const K0="adyen-pe-data-overview-header",Wa=({baseClassName:t=K0,children:e,hideTitle:n,titleKey:s,descriptionKey:r})=>{const{i18n:i}=V();return c("header",{className:t,children:[c("div",{className:`${t}__headings`,children:[!n&&s&&c("div",{className:`${t}__title`,children:c(U,{el:pe.SPAN,variant:b.TITLE,medium:!0,children:i.get(s)})}),r&&c("p",{className:`${t}__description`,children:c(U,{el:pe.SPAN,variant:b.BODY,children:i.get(r)})})]}),e&&c("div",{className:`${t}__controls`,children:e})]})},q0="adyen-pe-transaction-totals",Bc="adyen-pe-transaction-totals__item";const ki="adyen-pe-expandable-card",fn=ki+"__container",zc=fn+"--button",qi=fn+"--filled",tp=fn+"--hidden",fd=fn+"--overlay",to=fd,Br=ki+"__content",Fc=Br+"--expandable",$c=ki+"__chevron",ep="adyen-pe-base-button";function np({disabled:t=!1,onClick:e,classNameModifiers:n=[],type:s="button",children:r,className:i,fullWidth:o,...a},l){const u=y(()=>kn("",i)||"",[i]),m=y(()=>Xo(t),[t]),{classes:d,click:_}=Ko(u,[...n,...o?["full-width"]:[]],ep,m,e);return c("button",{className:d,type:s,disabled:t,onClick:_,ref:l,...a,children:r})}const Uc=Zt(np),sp=({renderHeader:t,children:e,filled:n,fullWidth:s,...r})=>{const{i18n:i}=V(),[o,a]=$(!1),l=N(()=>a(f=>!f),[a]),u=W(null),m=W(!1),d=W(o),_=ea(void 0,N(()=>{o&&(l(),m.current=!0)},[o,l]));return B(()=>{var f,I;o?(f=_.current)==null||f.focus():(d.current!==o&&!m.current&&((I=u.current)==null||I.focus()),m.current=!1),d.current=o},[o,_]),c("div",{className:ki,children:e?c(q,{children:[c(Uc,{className:z(fn,zc,{[qi]:n}),disabled:o,fullWidth:s,"aria-controls":to,"aria-expanded":o,"aria-hidden":o,onClick:l,ref:u,"data-testid":"expand-button",...r,children:[c("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.expand")}),c("div",{className:z(Br,Fc),children:t}),c("div",{className:$c,children:c(vi,{role:"presentation"})})]}),c(Uc,{id:to,className:z(fn,zc,fd,{[qi]:n,[tp]:!o}),disabled:!o,fullWidth:s,"aria-controls":to,"aria-expanded":o,"aria-hidden":!o,onClick:l,ref:_,"data-testid":"collapse-button",...r,children:[c("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.collapse")}),c("div",{className:z(Br,Fc),children:[t,c("div",{children:e})]}),c("div",{className:$c,children:c(ua,{role:"presentation"})})]})]}):c("div",{className:z(fn,{[qi]:n}),...r,children:c("div",{className:Br,children:t})})})},_d=sp,Ba="adyen-pe-amount-skeleton",rp=Ba+"--has-margin",ip=Ba+"--loading";const op=({hasMargin:t=!1,isLoading:e=!1,width:n})=>c("span",{className:z(Ba,{[ip]:e,[rp]:t}),style:{width:n}}),ap=op,In="adyen-pe-summary-item",gd=In+"__label-container",cp=gd+"--loading",lp=In+"--body",Id=In+"__label",up=In+"__placeholder",dp=In+"__amount",Hc=Zt(({config:t,i18n:e,isSkeletonVisible:n,className:s,...r},i)=>c("span",{className:z(gd,s,{[cp]:n}),style:{cursor:"default"},ref:i,...r,children:t.labelKey&&c(U,{variant:b.CAPTION,className:Id,children:e.get(t.labelKey)})}));const pd=({columnConfigs:t,isHeader:e=!1,isHovered:n=!1,isSkeletonVisible:s=!1,isLoading:r=!1,widths:i,onWidthsSet:o,isEmpty:a})=>{const{i18n:l}=V();B(()=>{const _=t.map(f=>{var I,g;return((g=(I=f.ref)==null?void 0:I.current)==null?void 0:g.getBoundingClientRect().width)??0});o(_)},[o]);const u=_=>({width:i&&i[_]?i[_]:"auto"}),m=ft(mt.only.xs),d=N((_,f)=>_.valueHasLabelStyle?b.CAPTION:f&&!m?b.BODY:b.TITLE,[m]);return c("div",{className:z(In,{[lp]:!e}),children:t.map((_,f)=>{const I=_.getValue(),g=!!I&&I.length>12;return c("div",{children:[e&&(_.tooltipLabel?c(oa,{content:l.get(`${_.tooltipLabel}`),isContainerHovered:n,children:c(Hc,{config:_,i18n:l,isSkeletonVisible:s})}):c(Hc,{config:_,i18n:l,isSkeletonVisible:s})),s?c(ap,{isLoading:r,hasMargin:_.hasSkeletonMargin,width:_.skeletonWidth+"px"}):a?c("span",{className:z([In,up])}):c("div",{ref:_.ref,style:u(f),children:c(U,{variant:d(_,g),className:z({[Id]:_.valueHasLabelStyle,[dp]:!_.valueHasLabelStyle}),children:I})})]},f)})})},Yc=({total:t,hiddenField:e,isHeader:n=!1,isHovered:s=!1,isSkeleton:r=!1,isLoading:i=!1,widths:o,onWidthsSet:a})=>{const{i18n:l}=V(),u=W(null),m=W(null),d=W(null),_=y(()=>{const f={labelKey:"totalIncoming",ref:u,skeletonWidth:80,getValue:()=>t&&l.amount(t.incomings,t.currency),tooltipLabel:"tooltip.totalIncoming"},I={labelKey:"totalOutgoing",ref:m,skeletonWidth:80,getValue:()=>t&&l.amount(t.expenses,t.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...e!=="incomings"?[f]:[],...e!=="expenses"?[I]:[],{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}]},[t,e,l]);return c(pd,{isHovered:s,isEmpty:!t,columnConfigs:_,isHeader:n,isSkeletonVisible:r,isLoading:i,widths:o,onWidthsSet:a})};const hp="adyen-pe-base-list",yd=({children:t})=>c("ul",{className:hp,children:t}),Sd=()=>{const[t,e]=$([]),n=N(s=>{e(r=>s.every(i=>!i)?s:s.map((i,o)=>{const a=r[o];return!a||i>a?i:a}))},[]);return[t,n]},eo=Et(({totals:t,isLoading:e,hiddenField:n,fullWidth:s})=>{const[r,i]=Sd(),[o,a]=$(!1),[l,...u]=y(()=>t.map(m=>(m.key=`${m.currency}-${Math.random()}`,m)),[t]);return c(_d,{renderHeader:c(Yc,{isHovered:o,total:l,hiddenField:n,widths:r,isHeader:!0,isSkeleton:e,isLoading:e,onWidthsSet:i}),fullWidth:s,onMouseEnter:()=>a(!0),onFocus:()=>a(!0),onMouseLeave:()=>a(!1),onBlur:()=>a(!1),children:!e&&u.length&&c(yd,{children:u.map(m=>c("li",{children:c(Yc,{isHovered:o,total:m,hiddenField:n,widths:r,onWidthsSet:i})},m.key))})})}),mp=Et(({availableCurrencies:t,isAvailableCurrenciesFetching:e,balanceAccountId:n,createdSince:s,createdUntil:r,categories:i,statuses:o,maxAmount:a,minAmount:l,currencies:u,fullWidth:m})=>{const{getTransactionTotals:d}=ue().endpoints,_=N(async()=>d==null?void 0:d(F,{query:{createdSince:s,createdUntil:r,categories:i,statuses:o,maxAmount:a,minAmount:l,currencies:u,balanceAccountId:n}}),[n,i,s,r,u,d,a,l,o]),{data:f,isFetching:I}=Ar({fetchOptions:y(()=>({enabled:!!n&&!!d}),[n,d]),queryFn:_}),g=!n||I||e,p=N(()=>{if(!t||!f)return f==null?void 0:f.data;const E=t.map(O=>f.data.find(M=>M.currency===O)||{currency:O,incomings:0,expenses:0});return E.concat(f.data.filter(O=>!E.includes(O)))},[t,f])()??[],D=ft(mt.only.xs);return c("div",{className:q0,children:D?c(q,{children:[c("div",{className:Bc,children:c(eo,{totals:p,isLoading:g,hiddenField:"expenses",fullWidth:m})}),c("div",{className:Bc,children:c(eo,{totals:p,isLoading:g,hiddenField:"incomings",fullWidth:m})})]}):c(eo,{totals:p,isLoading:g,fullWidth:m})})}),fp=mp,_p="adyen-pe-balances",Gc=({balance:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:r,onWidthsSet:i,isEmpty:o})=>{const{i18n:a}=V(),l=W(null),u=W(null),m=y(()=>[{labelKey:"accountBalance",ref:l,skeletonWidth:80,getValue:()=>t&&a.amount(t.value,t.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}],[t,l,a]);return c(pd,{isEmpty:o,columnConfigs:m,isHeader:e,isSkeletonVisible:n,isLoading:s,widths:r,onWidthsSet:i})},gp=Et(({balanceAccountId:t,defaultCurrencyCode:e,onCurrenciesChange:n,fullWidth:s})=>{const{getBalances:r}=ue().endpoints,i=N(async()=>r==null?void 0:r(F,{path:{balanceAccountId:t}}),[t,r]),{data:o,error:a,isFetching:l}=Ar({fetchOptions:y(()=>({enabled:!!t&&!!r}),[t,r]),queryFn:i}),u=!t||l,m=!!a||!(o!=null&&o.data.length),d=y(()=>(o==null?void 0:o.data)&&[...o.data].sort(({currency:S},{currency:p})=>{if(e){if(S===e)return-1;if(p===e)return 1}return S.localeCompare(p)}),[o==null?void 0:o.data,e]),[_,...f]=y(()=>(d==null?void 0:d.map(S=>(S.key=`${S.currency}-${Math.random()}`,S)))??[],[d]),[I,g]=Sd();return B(()=>{const S=new Set((d==null?void 0:d.map(({currency:p})=>p))||[]);n(Array.from(S),l)},[d,l,n]),c("div",{className:_p,children:c(_d,{renderHeader:c(Gc,{isEmpty:m,balance:_,widths:I,isHeader:!0,isSkeleton:u,isLoading:u,onWidthsSet:g}),filled:!0,fullWidth:s,children:f.length&&c(yd,{children:f.map(S=>c("li",{children:c(Gc,{balance:S,widths:I,onWidthsSet:g})},S.key))})})})}),Ip=Et(({placeholder:t,selection:e,selectionOptions:n,updateSelection:s})=>{const r=ft(mt.down.xs),i=ft(mt.only.sm),o=ft(mt.only.md);return n&&n.length>1?c(Ri,{onChange:s,filterable:!1,multiSelect:!0,placeholder:t,selected:e,withoutCollapseIndicator:!0,items:n,showOverlay:r,fitPosition:o||i}):null}),Zc=Ip,pp=t=>Object.freeze(t.map(e=>({id:e,name:e}))),yp=({filterParam:t,filterValues:e,filters:n,defaultFilters:s,updateFilters:r})=>{const i=y(()=>Ss((n==null?void 0:n[t])??(s==null?void 0:s[t])??""),[s,n,t]),o=y(()=>e&&pp(e),[e]),a=N(({target:l})=>{r==null||r({[t]:(l==null?void 0:l.value)||""})},[r,t]);return{selection:i,selectionOptions:o,updateSelection:a}},no=yp,Sp=[G.CURRENCIES,G.CATEGORIES,G.STATUSES],zr=Object.freeze(Object.fromEntries(Sp.map(t=>[t,""]))),Ap=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],Tp=["Booked","Pending","Reversed"],Np=t=>{const e=DI(),n="rangePreset.last30Days",{from:s,to:r}=e[n];return{defaultFilterParams:{...t==="transactions"&&{...zr,[G.MIN_AMOUNT]:void 0,[G.MAX_AMOUNT]:void 0},[G.BALANCE_ACCOUNT]:void 0,[G.CREATED_SINCE]:new Date(s).toISOString(),[G.CREATED_UNTIL]:new Date(r).toISOString()},defaultTimeRange:n,timeRangeOptions:e}},Lp=(t,e)=>{const[n,s]=$(Date.now()),r=Np(t),i=W(r),o=N(()=>s(Date.now()),[s]);return B(()=>{o()},[e,o]),{defaultParams:i,nowTimestamp:n,refreshNowTimestamp:o}},za=Lp,Ep=(t,e)=>{const n=no({filterParam:G.CATEGORIES,filterValues:Ap,defaultFilters:zr,...t}),s=no({filterParam:G.STATUSES,filterValues:Tp,defaultFilters:zr,...t}),r=no({filterParam:G.CURRENCIES,filterValues:e,defaultFilters:zr,...t});return{categoriesFilter:n,currenciesFilter:r,statusesFilter:s}},Mp=Ep;const Qr=1e5,Cp=({onChange:t,editAction:e,onValueUpdated:n,selectedCurrencies:s,availableCurrencies:r,value:i,...o})=>{const{i18n:a}=V(),[l,u]=$(Z(o.minAmount)?void 0:parseFloat(o.minAmount)/Qr),[m,d]=$(Z(o.maxAmount)?void 0:parseFloat(o.maxAmount)/Qr),_=N(()=>{t({minAmount:l,maxAmount:m})},[m,l,t]),f=N(()=>{t({minAmount:void 0,maxAmount:void 0}),d(void 0),u(void 0)},[t]);B(()=>{e===Ct.APPLY&&_(),e===Ct.CLEAR&&f()},[_,f,e]);const I=y(()=>({minAmount:Number(l),maxAmount:Number(m)}),[m,l]);return B(()=>{const{maxAmount:g,minAmount:S}=I;Z(g)&&Z(S)||S>g?n(null):n(`${S}-${g}`)},[I,n]),c("div",{className:"adyen-pe-range-selection-filter",children:[c("div",{className:"adyen-pe-range-selection-filter__input",children:[c("label",{htmlFor:"minValue",children:`${a.get("from")}:`}),c(jo,{"data-testid":"minValueFilter",lang:a.locale,name:"minValue",type:"number",value:l,onInput:g=>{g.currentTarget&&u(g.currentTarget.value!==""?g.currentTarget.value:void 0)},min:0,isInvalid:l?l<0:!1,errorMessage:a.get("noNegativeNumbersAllowed")})]}),c("div",{className:"adyen-pe-range-selection-filter__input",children:[c("label",{htmlFor:"maxValue",children:`${a.get("to")}:`}),c(jo,{"data-testid":"maxValueFilter",lang:a.locale,name:"maxValue",type:"number",value:m,onInput:g=>{g.currentTarget&&d(g.currentTarget.value!==""?g.currentTarget.value:void 0)},min:l,isInvalid:!Z(m)&&!Z(l)&&m<l,errorMessage:a.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},Dp=({updateFilters:t,selectedCurrencies:e,availableCurrencies:n,...s})=>{const{i18n:r}=V(),[i,o]=$(),[a,l]=$(),u=y(()=>(e==null?void 0:e.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,e==null?void 0:e.length]),m=N((_,f)=>{const I=(e==null?void 0:e[0])||(n==null?void 0:n[0]),g=f&&I?{style:"currency",currency:I,currencyDisplay:"symbol"}:void 0;return _.toLocaleString(r.locale,g)},[n,r,e]),d=N(_=>{const{minAmount:f,maxAmount:I}=_??F;o({minAmount:f,maxAmount:I}),Z(f)&&Z(I)&&l(void 0),t({minAmount:Z(f)?void 0:String(Math.round(f*Qr)),maxAmount:Z(I)?void 0:String(Math.round(I*Qr))})},[t]);if(i&&(i.minAmount||i.maxAmount)){const{minAmount:_,maxAmount:f}=i??{};!Z(_)&&!Z(f)&&_<=f?l(`${m(_,u)} ${r.get("to").toLowerCase()} ${m(f,u)}`):!Z(_)&&Z(f)&&_>=0?l(`${r.get("from")} ${m(_,u)}`):Z(_)&&!Z(f)?l(`${r.get("to")} ${m(f,u)}`):l(void 0)}return c(ld,{...s,updateFilters:t,minAmount:s.minAmount,maxAmount:s.maxAmount,onChange:d,value:a,label:a||s.label,type:"text",containerSize:ws.MEDIUM,selectedCurrencies:e,availableCurrencies:n,render:Cp})},Ad="adyen-pe-transactions",Td=`${Ad}-overview`,Op=`${Ad}-details`,Nd=`${Td}__summary`,Jc=`${Nd}-item`,bp=24,vp=({records:t,onDataRetrieved:e,mergeCustomData:n})=>{const[s,r]=$(t),[i,o]=$(!1),a=N(l=>async()=>{try{const u=e?await e(l):[];r(n({records:t,retrievedData:u}))}catch(u){r(t),console.error(u)}finally{o(!1)}},[e,t,n]);return B(()=>{e&&t.length&&(o(!0),a(t)())},[e,a,t]),{customRecords:s,loadingCustomRecords:i}};const Rp=({onFiltersChanged:t,balanceAccounts:e,allowLimitSelection:n,preferredLimit:s=ks,onRecordSelection:r,showDetails:i,isLoadingBalanceAccount:o,onContactSupport:a,hideTitle:l,columns:u,onDataRetrieved:m})=>{const{i18n:d}=V(),{getTransactions:_}=ue().endpoints,{activeBalanceAccount:f,balanceAccountSelectionOptions:I,onBalanceAccountSelection:g}=Sa(e),{defaultParams:S,nowTimestamp:p,refreshNowTimestamp:D}=za("transactions",f),E=N(async({balanceAccount:Bt,...Ot},Nn)=>_({signal:Nn,errorLevel:"error"},{query:{...Ot,statuses:Ss(Ot[G.STATUSES]),categories:Ss(Ot[G.CATEGORIES]),currencies:Ss(Ot[G.CURRENCIES]),createdSince:Ot[G.CREATED_SINCE]??S.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:Ot[G.CREATED_UNTIL]??S.current.defaultFilterParams[G.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(f==null?void 0:f.id)??"",minAmount:Z(Ot.minAmount)?void 0:parseFloat(Ot.minAmount),maxAmount:Z(Ot.maxAmount)?void 0:parseFloat(Ot.maxAmount)}}),[f==null?void 0:f.id,S,_]),O=va(),P=y(()=>X(t)?t:void 0,[t]),M=y(()=>n?xa:void 0,[n]),{canResetFilters:R,error:C,fetching:k,filters:v,limit:Q,limitOptions:Y,records:nt,resetFilters:tt,updateFilters:it,updateLimit:vt,...Dt}=ka({fetchRecords:E,dataField:"data",filterParams:S.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:P,preferredLimit:s,preferredLimitOptions:M,enabled:!!(f!=null&&f.id)&&!!_}),[_t,kt]=$([]),[At,pt]=$(!1),Wt=N((Bt,Ot)=>{kt(Bt),pt(Ot)},[]),{categoriesFilter:de,currenciesFilter:se,statusesFilter:ke}=Mp({filters:v,updateFilters:it},_t);B(()=>{kt(void 0),it({[G.BALANCE_ACCOUNT]:f==null?void 0:f.id,[G.CURRENCIES]:void 0})},[it,f==null?void 0:f.id]),B(()=>{D()},[v,D]),B(()=>{ke.updateSelection({target:{value:"Booked",name:"status"}})},[ke]);const ps=ft(mt.down.sm),Mr=!!_t&&_t.length>1,Jt=y(()=>({showDetails:i??!0,callback:r}),[i,r]),Tn=y(()=>({transaction:Jt}),[Jt]),{updateDetails:We,resetDetails:Wi,selectedDetail:Bi}=dd(Tn),zi=N(Bt=>{We({selection:{type:"transaction",data:{...Bt,balanceAccount:f}},modalSize:"small"}).callback({id:Bt.id})},[We,f]),Fi=y(()=>{const Bt=new Date(p);return Bt.setMonth(Bt.getMonth()-bp),Bt.toString()},[p]),et=N(({records:Bt,retrievedData:Ot})=>Bt.map(Nn=>({...Ot.find(Pd=>Pd.id===Nn.id),...Nn})),[]),{customRecords:ut,loadingCustomRecords:dt}=vp({records:nt,onDataRetrieved:m,mergeCustomData:et});return c("div",{className:Td,children:[c(Wa,{hideTitle:l,titleKey:"transactionsOverviewTitle",children:c(Ra,{...O})}),c(wa,{...O,children:[c(Ta,{activeBalanceAccount:f,balanceAccountSelectionOptions:I,onBalanceAccountSelection:g}),c(ba,{canResetFilters:R,defaultParams:S,filters:v,nowTimestamp:p,refreshNowTimestamp:D,sinceDate:Fi,timezone:f==null?void 0:f.timeZone,updateFilters:it}),c(Zc,{...de,placeholder:d.get("filterPlaceholder.category")}),c(Dp,{availableCurrencies:_t,selectedCurrencies:Ss(v[G.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:v[G.MIN_AMOUNT],maxAmount:v[G.MAX_AMOUNT],updateFilters:it,onChange:it}),c(Zc,{...se,placeholder:d.get("filterPlaceholder.currency")})]}),c("div",{className:Nd,children:[c("div",{className:Jc,children:c(fp,{availableCurrencies:_t,isAvailableCurrenciesFetching:At,balanceAccountId:f==null?void 0:f.id,statuses:ke.selection,categories:de.selection,createdUntil:v[G.CREATED_UNTIL],createdSince:v[G.CREATED_SINCE],currencies:se.selection,minAmount:v[G.MIN_AMOUNT]?parseFloat(v[G.MIN_AMOUNT]):void 0,maxAmount:v[G.MAX_AMOUNT]?parseFloat(v[G.MAX_AMOUNT]):void 0,fullWidth:ps})}),c("div",{className:Jc,children:c(gp,{balanceAccountId:f==null?void 0:f.id,onCurrenciesChange:Wt,defaultCurrencyCode:f==null?void 0:f.defaultCurrencyCode,fullWidth:ps})})]}),c(Lu,{selectedDetail:Bi,resetDetails:Wi,className:Op,children:c(jg,{activeBalanceAccount:f,availableCurrencies:_t,error:C,hasMultipleCurrencies:Mr,limit:Q,limitOptions:Y,loading:k||o||!e||dt,onContactSupport:a,onLimitSelection:vt,onRowClick:zi,showPagination:!0,transactions:m?ut:nt,customColumns:u,...Dt})})]})},wp="adyen-pe-transactions-overview-container";function xp({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:wp,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(Rp,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}const jp=({i18n:t=new Ci().i18n,children:e,commonProps:n,loadingContext:s,updateCore:r,externalErrorHandler:i})=>{const[o,a]=_e(!1),l=y(()=>n||{},[n]),u=y(()=>s??"",[s]);return B(()=>{(async()=>{await(t==null?void 0:t.ready),a(!0)})().catch()},[]),o?c(Kl.Provider,{value:{i18n:t,commonProps:l,loadingContext:u,updateCore:r,externalErrorHandler:i},children:Ge(e)}):null},Pp=jp;var qc;class Ld{constructor(e){j(this,"_component");j(this,"_node",null);j(this,"_id",`${(qc=this.constructor)==null?void 0:qc.type}-${Wo()}`);j(this,"defaultProps",{});j(this,"props");j(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...e}),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){const n=Gt(e)?document.querySelector(e):e;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),vn(this._component,n),this}update(e){return this.props=this.formatProps({...this.props,...e}),this._component=this.render(),this._node&&vn(this._component,this._node),this}remount(e){if(!this._node)throw new Error("Component is not mounted.");const n=e||this.render();return vn(n,this._node),this}unmount(){return this._node&&vn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}j(Ld,"type");const kp=Ld;class Wp extends kp{constructor(n){super(n);j(this,"componentRef",null);j(this,"componentToRender",null);j(this,"elementRef");j(this,"onContactSupport");j(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.elementRef=this}get isValid(){return!!this.state.isValid}get displayName(){return this.type}get accessibleName(){return this.displayName}get type(){var n;return(n=this.constructor)==null?void 0:n.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,s){var r,i;return(r=this.componentRef)!=null&&r.setStatus?this.componentRef.setStatus(n,s):(i=this.setUIElementStatus)==null||i.call(this,n),this}render(){const n=this.props.core,s=n.update.bind(n),r=this.props.onError||n.onError||null;return n.session.errorHandler=r,c(ym,{session:n.session,children:c(Pp,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:s,externalErrorHandler:r,children:this.componentToRender&&c("div",{className:"adyen-pe-component",children:this.componentToRender()})})},performance.now())}}const Er=Wp;class Ed extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(xp,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Ed,"type","transactions");const Bp=Ed;class Md extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(ya,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Md,"type","transactionDetails");const zp=Md,Fp="adyen-pe-payouts-overview",$p="adyen-pe-payouts-details",Up=new Date("2024-04-16T00:00:00.000Z").toString(),Cd="adyen-pe-payouts-table",Hp=`${Cd}__net-payout`;const Dd=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],Yp=["createdAt",...Dd],Gp=t=>Dd.includes(t),Zp=({error:t,loading:e,onContactSupport:n,onRowClick:s,showDetails:r,showPagination:i,data:o,...a})=>{const{i18n:l}=V(),{dateFormat:u}=Sn("UTC"),{refreshing:m}=ue(),d=y(()=>e||m,[e,m]),_=ft(mt.up.sm),f=N(p=>{var E,O,P,M;const D=l.get(pa(p));if(Gp(p))return{label:(O=(E=o==null?void 0:o[0])==null?void 0:E[p])!=null&&O.currency?`${D} (${Cl((M=(P=o==null?void 0:o[0])==null?void 0:P[p])==null?void 0:M.currency)})`:D,position:Ze.RIGHT}},[o,l]),I=Tu({fields:Yp,columnConfig:y(()=>({fundsCapturedAmount:{...f("fundsCapturedAmount"),visible:_},adjustmentAmount:{...f("adjustmentAmount"),visible:_},payoutAmount:f("payoutAmount")}),[f,_])}),g={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},S=y(()=>()=>c(_a,{error:t,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[t,n]);return c("div",{className:Cd,children:c(Je,{errorDisplay:S,error:t,columns:I,data:o,loading:d,outline:!1,onRowClick:{callback:s},emptyTableMessage:g,customCells:{createdAt:({value:p})=>p?_?p&&c(U,{variant:b.BODY,children:u(p,Kf)}):u(p,qf):null,fundsCapturedAmount:({value:p})=>p&&c(U,{variant:b.BODY,children:l.amount(p.value,p.currency,{hideCurrency:!0})}),adjustmentAmount:({value:p})=>p&&c(U,{variant:b.BODY,children:l.amount(p.value,p.currency,{hideCurrency:!0})}),payoutAmount:({value:p})=>p&&c(U,{variant:b.BODY,className:z({[`${Hp}--strong`]:!_}),children:l.amount(p.value,p.currency,{hideCurrency:_})})},children:i&&c(Je.Footer,{children:c(Ia,{...a})})})})};const Jp=({onFiltersChanged:t,balanceAccounts:e,allowLimitSelection:n,preferredLimit:s=ks,onRecordSelection:r,showDetails:i,isLoadingBalanceAccount:o,onContactSupport:a,hideTitle:l})=>{const{getPayouts:u}=ue().endpoints,{activeBalanceAccount:m,balanceAccountSelectionOptions:d,onBalanceAccountSelection:_}=Sa(e),{defaultParams:f,nowTimestamp:I,refreshNowTimestamp:g}=za("payouts",m),S=N(async(pt,Wt)=>u({signal:Wt,errorLevel:"error"},{query:{...pt,createdSince:pt[G.CREATED_SINCE]??f.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:pt[G.CREATED_UNTIL]??f.current.defaultFilterParams[G.CREATED_UNTIL],balanceAccountId:(m==null?void 0:m.id)??""}}),[m==null?void 0:m.id,f,u]),p=va(),D=y(()=>X(t)?t:void 0,[t]),E=y(()=>n?xa:void 0,[n]),{canResetFilters:O,error:P,fetching:M,filters:R,limit:C,limitOptions:k,records:v,resetFilters:Q,updateFilters:Y,updateLimit:nt,...tt}=ka({fetchRecords:S,dataField:"data",filterParams:f.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:D,preferredLimit:s,preferredLimitOptions:E,enabled:!!(m!=null&&m.id)&&!!u});B(()=>{g()},[R,g]);const it=y(()=>({showDetails:i??!0,callback:r}),[i,r]),vt=y(()=>({payout:it}),[it]),{updateDetails:Dt,resetDetails:_t,selectedDetail:kt}=dd(vt),At=N(pt=>{Dt({selection:{type:"payout",data:{id:m==null?void 0:m.id,balanceAccountDescription:(m==null?void 0:m.description)||"",date:pt.createdAt}},modalSize:"small"}).callback({balanceAccountId:(m==null?void 0:m.id)||"",date:pt.createdAt})},[Dt,m]);return c("div",{className:Fp,children:[c(Wa,{hideTitle:l,titleKey:"payoutsTitle",children:c(Ra,{...p})}),c(wa,{...p,children:[c(Ta,{activeBalanceAccount:m,balanceAccountSelectionOptions:d,onBalanceAccountSelection:_}),c(ba,{canResetFilters:O,defaultParams:f,filters:R,nowTimestamp:I,refreshNowTimestamp:g,sinceDate:Up,timezone:"UTC",updateFilters:Y})]}),c(Lu,{className:$p,onContactSupport:a,selectedDetail:kt,resetDetails:_t,children:c(Zp,{loading:M||o||!e,data:v,showPagination:!0,onRowClick:At,showDetails:i,limit:C,limitOptions:k,onContactSupport:a,onLimitSelection:nt,error:P,...tt})})]})},Vp="adyen-pe-payouts-overview-container";function Qp({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:Vp,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(Jp,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}class Od extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(Qp,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Od,"type","payouts");const Xp=Od;class bd extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(ya,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(bd,"type","payoutDetails");const Kp=bd,qp=(t=1e3,e=!1)=>{const[n,s]=$(e),r=W(),i=W(),o=N(()=>{n||(i.current=setTimeout(()=>{r.current=requestAnimationFrame(()=>s(!1))},t),s(!0))},[n,t]);return B(()=>()=>{cancelAnimationFrame(r.current),clearTimeout(i.current),r.current=i.current=null},[t]),{freeze:o,frozen:n}},ty=qp,ey=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{d:"M15.3501 11.5301L9.9501 2.21008C9.7501 1.87008 9.4701 1.58008 9.1301 1.38008C8.4401 0.980078 7.5601 0.980078 6.8801 1.38008C6.5401 1.58008 6.2501 1.86008 6.0601 2.20008L0.650097 11.5301C0.450097 11.8701 0.350098 12.2601 0.350098 12.6601C0.350098 13.0601 0.450097 13.4501 0.650097 13.7801C0.850097 14.1201 1.1301 14.4101 1.4701 14.6001C1.8101 14.8001 2.2001 14.9001 2.6001 14.9001H13.4001C13.7901 14.9001 14.1801 14.8001 14.5201 14.6001C14.8601 14.4001 15.1501 14.1201 15.3501 13.7801C15.5501 13.4401 15.6501 13.0501 15.6501 12.6501C15.6501 12.2501 15.5501 11.8601 15.3501 11.5201V11.5301ZM7.2501 4.58008H8.7501V9.08008H7.2501V4.58008ZM8.9201 11.7101C8.8401 11.8901 8.7201 12.0501 8.5501 12.1601C8.3801 12.2701 8.1901 12.3301 7.9901 12.3301C7.7201 12.3301 7.4701 12.2301 7.2801 12.0401C7.0901 11.8501 6.9901 11.6001 6.9901 11.3301C6.9901 11.1301 7.0501 10.9401 7.1601 10.7801C7.2701 10.6201 7.4201 10.4901 7.6101 10.4101C7.7901 10.3301 7.9901 10.3201 8.1901 10.3501C8.3901 10.3901 8.5601 10.4801 8.7001 10.6201C8.8401 10.7601 8.9301 10.9401 8.9701 11.1301C9.0101 11.3201 8.9901 11.5201 8.9101 11.7101H8.9201Z",fill:"currentColor"})}),ny=ey;function sy({className:t,description:e,title:n,type:s,onClose:r,isOpen:i}){return c(q,{children:i&&c("div",{className:z("adyen-pe-alert",t),role:"alert",children:c("div",{className:`adyen-pe-alert__inner-container adyen-pe-alert--${s}`,children:[c("div",{className:"adyen-pe-alert__icon",children:c(ny,{})}),c("div",{className:"adyen-pe-alert__content",children:[n&&c(U,{className:"adyen-pe-alert__title",el:pe.DIV,variant:b.BODY,wide:!0,strongest:!0,children:n}),e&&c(U,{className:"adyen-pe-alert__description",el:pe.DIV,variant:b.BODY,wide:!0,children:e})]}),c("div",{className:"adyen-pe-alert__close-button",children:c(Pt,{iconButton:!0,variant:Nt.TERTIARY,onClick:r,children:c(la,{width:7.12,height:7.12})})})]})})})}var vd=(t=>(t.WARNING="warning",t.CRITICAL="critical",t.HIGHLIGHT="highlight",t.SUCCESS="success",t))(vd||{});const ry=({inline:t=!1,size:e="large"})=>c("div",{className:`adyen-pe-spinner__wrapper ${t?"adyen-pe-spinner__wrapper--inline":""}`,children:c("div",{className:`adyen-pe-spinner adyen-pe-spinner--${e}`})}),Vc=ry,iy=({...t})=>c("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[c("path",{d:"M8.25 0.25V8.18957L10.5001 5.93945L11.5608 7.00011L7.50011 11.0608L3.43945 7.00011L4.50011 5.93945L6.75 8.18934V0.25H8.25Z",fill:"currentColor"}),c("path",{d:"M2.25 11.5V9.25H0.75V11.5C0.75 12.0967 0.987053 12.669 1.40901 13.091C1.83097 13.5129 2.40326 13.75 3 13.75H12C12.5967 13.75 13.169 13.5129 13.591 13.091C14.0129 12.669 14.25 12.0967 14.25 11.5V9.25H12.75V11.5C12.75 11.6989 12.671 11.8897 12.5303 12.0303C12.3897 12.171 12.1989 12.25 12 12.25H3C2.80109 12.25 2.61032 12.171 2.46967 12.0303C2.32902 11.8897 2.25 11.6989 2.25 11.5Z",fill:"currentColor"})]}),Qc=iy,oy=(t,e,n)=>{const s=ue().endpoints[t];return Ar({fetchOptions:{enabled:!!s&&n,keepPrevData:!0},queryFn:async()=>s(F,{...e})})},ay=oy;function cy({blob:t,filename:e}){const n=document.createElement("a"),s=URL.createObjectURL(t);n.href=s,n.download=e||"download";const r=()=>{setTimeout(()=>{URL.revokeObjectURL(s)},150)};n.addEventListener("click",r,{once:!0}),n.click()}function ly({className:t,disabled:e,endpointName:n,params:s,setError:r,errorDisplay:i,onDownloadRequested:o}){const{i18n:a}=V(),[l,u]=$(!1),m=ft(mt.down.xs),{data:d,error:_,isFetching:f}=ay(n,s,l);B(()=>{l&&u(!1)},[l]),B(()=>{d&&cy(d)},[d]),B(()=>{r&&_&&r(_)},[_]);const I=()=>{u(!0),o==null||o()};return c("div",{className:"adyen-pe-download",children:[m?c(Pt,{iconButton:!0,variant:Nt.TERTIARY,onClick:I,children:f?c(Vc,{size:"small"}):c(Qc,{})}):c(Pt,{className:z("adyen-pe-download__button",{"adyen-pe-download__button--loading":f},t),disabled:e||f,variant:Nt.SECONDARY,onClick:I,iconLeft:f?c(Vc,{size:"small"}):c(Qc,{}),children:f?`${a.get("downloading")}..`:a.get("download")}),_&&i&&c("div",{className:"adyen-pe-download__error",children:i})]})}const uy=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M8.75 4.58008H7.25V9.08008H8.75V4.58008Z",fill:"currentColor"}),c("path",{d:"M8.71 10.6201C8.57 10.4801 8.39 10.3801 8.2 10.3501C8.01 10.3101 7.8 10.3301 7.62 10.4101C7.44 10.4901 7.28 10.6101 7.17 10.7801C7.06 10.9401 7 11.1401 7 11.3401C7 11.6101 7.11 11.8601 7.29 12.0501C7.48 12.2401 7.73 12.3401 8 12.3401C8.2 12.3401 8.39 12.2801 8.56 12.1701C8.72 12.0601 8.85 11.9001 8.93 11.7201C9.01 11.5401 9.03 11.3401 8.99 11.1401C8.95 10.9501 8.86 10.7701 8.72 10.6301L8.71 10.6201Z",fill:"currentColor"}),c("path",{d:"M9.9501 2.21008L15.3501 11.5301V11.5201C15.5501 11.8601 15.6501 12.2501 15.6501 12.6501C15.6501 13.0501 15.5501 13.4401 15.3501 13.7801C15.1501 14.1201 14.8601 14.4001 14.5201 14.6001C14.1801 14.8001 13.7901 14.9001 13.4001 14.9001H2.6001C2.2001 14.9001 1.8101 14.8001 1.4701 14.6001C1.1301 14.4101 0.850097 14.1201 0.650097 13.7801C0.450097 13.4501 0.350098 13.0601 0.350098 12.6601C0.350098 12.2601 0.450097 11.8701 0.650097 11.5301L6.0601 2.20008C6.2501 1.86008 6.5401 1.58008 6.8801 1.38008C7.5601 0.980078 8.4401 0.980078 9.1301 1.38008C9.4701 1.58008 9.7501 1.87008 9.9501 2.21008ZM13.7701 13.3001C13.8901 13.2401 13.9801 13.1401 14.0501 13.0301L14.0601 13.0401C14.1301 12.9201 14.1601 12.7901 14.1601 12.6601C14.1601 12.5301 14.1301 12.4001 14.0601 12.2901L8.6601 2.96008C8.5901 2.84008 8.5001 2.74008 8.3801 2.68008C8.2601 2.62008 8.1401 2.58008 8.0001 2.58008C7.8601 2.58008 7.7301 2.61008 7.6201 2.68008C7.5101 2.74008 7.4201 2.84008 7.3501 2.95008L1.9501 12.2901C1.8801 12.4001 1.8501 12.5301 1.8501 12.6601C1.8501 12.7901 1.8801 12.9201 1.9501 13.0301C2.0101 13.1401 2.1101 13.2401 2.2201 13.3001C2.3401 13.3601 2.4701 13.4001 2.6001 13.4001H13.3901C13.5301 13.4001 13.6601 13.3701 13.7701 13.3001Z",fill:"currentColor"})]}),dy=uy,hy=1e3,Rd="adyen-pe-reports-table",wd=`${Rd}-date-report-type`,my=`${wd}--date`;const fy=["createdAt","dateAndReportType","reportType","reportFile"],_y=({error:t,loading:e,balanceAccountId:n,onContactSupport:s,showPagination:r,data:i,...o})=>{const{i18n:a}=V(),{dateFormat:l}=Sn("UTC"),{freeze:u,frozen:m}=ty(hy),[d,_]=$(null),{refreshing:f}=ue(),I=y(()=>e||f,[e,f]),g=ft(mt.up.sm),S=ft(mt.down.xs),p=y(()=>({dateAndReportType:S,createdAt:g,reportType:g,reportFile:!0}),[S,g]),D=y(()=>fy.map(C=>{const k=a.get(pa(C));return{key:C,label:k,position:S&&C==="reportFile"?Ze.RIGHT:void 0,visible:p[C]}}),[a,i,p]),E=N(()=>{_(null)},[]),O={title:"noReportsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},P=y(()=>()=>c(_a,{error:t,errorMessage:"weCouldNotLoadYourReports",onContactSupport:s}),[t,s]),M=y(()=>c(dy,{}),[]),R=y(()=>C=>{const k={};switch(C==null?void 0:C.errorCode){case"999_429_001":k.title=a.get("error.somethingWentWrongWithDownload"),k.description=a.get("reportsError.tooManyDownloads");break;case"00_500":default:k.title=a.get("error.somethingWentWrongWithDownload"),k.description=a.get("error.pleaseTryAgainLater");break}_(k)},[t,s]);return e&&_(null),c("div",{className:Rd,children:[d&&c(sy,{isOpen:!!d,onClose:E,type:vd.WARNING,className:"adyen-pe-reports-table-alert",...d}),c(Je,{errorDisplay:P,error:t,columns:D,data:i,loading:I,outline:!1,emptyTableMessage:O,customCells:{createdAt:({value:C})=>C?C&&c(U,{variant:b.BODY,children:l(C,Sc)}):null,dateAndReportType:({item:C})=>c("div",{className:wd,children:[c(U,{variant:b.BODY,stronger:!0,children:a.get(`reportType.${C==null?void 0:C.type}`)}),c(U,{className:my,variant:b.BODY,children:l(C.createdAt,Sc)})]}),reportType:({item:C})=>(C==null?void 0:C.type)&&c(U,{variant:b.BODY,children:a.get(`reportType.${C==null?void 0:C.type}`)}),reportFile:({item:C})=>{const k={query:{balanceAccountId:n,createdAt:C.createdAt,type:C.type}};return c(ly,{className:"adyen-pe-reports-table--download",endpointName:"downloadReport",disabled:m,params:k,onDownloadRequested:u,setError:R,errorDisplay:M})}},children:r&&c(Je.Footer,{children:c(Ia,{...o})})})]})},gy="adyen-pe-reports-overview",Iy=new Date("2024-04-16T00:00:00.000Z").toString();const py=({onFiltersChanged:t,balanceAccounts:e,allowLimitSelection:n,preferredLimit:s=ks,isLoadingBalanceAccount:r,onContactSupport:i,hideTitle:o})=>{const{getReports:a}=ue().endpoints,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:m}=Sa(e),{defaultParams:d,nowTimestamp:_,refreshNowTimestamp:f}=za("reports",l),I=N(async(nt,tt)=>a({signal:tt,errorLevel:"error"},{query:{...nt,type:"payout",createdSince:nt[G.CREATED_SINCE]??d.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:nt[G.CREATED_UNTIL]??d.current.defaultFilterParams[G.CREATED_UNTIL],balanceAccountId:(l==null?void 0:l.id)??""}}),[l==null?void 0:l.id,d,a]),g=va(),S=y(()=>X(t)?t:void 0,[t]),p=y(()=>n?xa:void 0,[n]),{canResetFilters:D,error:E,fetching:O,filters:P,limit:M,limitOptions:R,records:C,resetFilters:k,updateFilters:v,updateLimit:Q,...Y}=ka({fetchRecords:I,dataField:"data",filterParams:d.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:S,preferredLimit:s,preferredLimitOptions:p,enabled:!!(l!=null&&l.id)&&!!a});return B(()=>{f()},[P,f]),c("div",{className:gy,children:[c(Wa,{hideTitle:o,titleKey:"reportsTitle",descriptionKey:"reportsNotice",children:c(Ra,{...g})}),c(wa,{...g,children:[c(Ta,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:m}),c(ba,{canResetFilters:D,defaultParams:d,filters:P,nowTimestamp:_,refreshNowTimestamp:f,sinceDate:Iy,timezone:"UTC",updateFilters:v})]}),c(_y,{balanceAccountId:l==null?void 0:l.id,loading:O||r||!e||!l,data:C,showPagination:!0,limit:M,limitOptions:R,onContactSupport:i,onLimitSelection:Q,error:E,...Y})]})},yy="adyen-pe-reports-overview-container";function Sy({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:yy,errorMessage:"weCouldNotLoadTheReportsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(py,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}class xd extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(Sy,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>{this.componentRef=n}}));this.componentToRender=this.componentToRender.bind(this)}}j(xd,"type","reports");const Ay=xd;async function Ty(t){return await new vl(t).initialize()}exports.AdyenPlatformExperience=Ty;exports.Core=vl;exports.PayoutDetails=Kp;exports.PayoutsOverview=Xp;exports.ReportsOverview=Ay;exports.TransactionDetails=zp;exports.TransactionsOverview=Bp;exports.all_locales=zo;exports.da_DK=_l;exports.de_DE=gl;exports.en_US=$r;exports.es_ES=Il;exports.fr_FR=pl;exports.it_IT=yl;exports.nl_NL=Sl;exports.no_NO=Al;exports.pt_BR=Tl;exports.sv_SE=Nl;
12
12
  //# sourceMappingURL=index.js.map