@adyen/adyen-platform-experience-web 1.1.1 → 1.2.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 (849) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/dist/angle-right-1899f206.cjs +2 -0
  4. package/dist/angle-right-1899f206.cjs.map +1 -0
  5. package/dist/checkmark-9399af30.cjs +2 -0
  6. package/dist/checkmark-9399af30.cjs.map +1 -0
  7. package/dist/checkmark-circle-fill-edd7d360.cjs +2 -0
  8. package/dist/checkmark-circle-fill-edd7d360.cjs.map +1 -0
  9. package/dist/checkmark-square-fill-4f33ffa1.cjs +2 -0
  10. package/dist/checkmark-square-fill-4f33ffa1.cjs.map +1 -0
  11. package/dist/chevron-down-2eec7c98.cjs +2 -0
  12. package/dist/chevron-down-2eec7c98.cjs.map +1 -0
  13. package/dist/chevron-left-20950420.cjs +2 -0
  14. package/dist/chevron-left-20950420.cjs.map +1 -0
  15. package/dist/chevron-right-a975d4ef.cjs +2 -0
  16. package/dist/chevron-right-a975d4ef.cjs.map +1 -0
  17. package/dist/chevron-up-ad09fd0d.cjs +2 -0
  18. package/dist/chevron-up-ad09fd0d.cjs.map +1 -0
  19. package/dist/cjs/index.js +1 -11
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/copy-969cde48.cjs +2 -0
  22. package/dist/copy-969cde48.cjs.map +1 -0
  23. package/dist/cross-6133edca.cjs +2 -0
  24. package/dist/cross-6133edca.cjs.map +1 -0
  25. package/dist/cross-circle-fill-afd9ea6e.cjs +2 -0
  26. package/dist/cross-circle-fill-afd9ea6e.cjs.map +1 -0
  27. package/dist/da-DK-a6a8435e.cjs +2 -0
  28. package/dist/da-DK-a6a8435e.cjs.map +1 -0
  29. package/dist/de-DE-d692ac19.cjs +2 -0
  30. package/dist/de-DE-d692ac19.cjs.map +1 -0
  31. package/dist/download-ffe5624f.cjs +2 -0
  32. package/dist/download-ffe5624f.cjs.map +1 -0
  33. package/dist/es/components/constants.js +4 -0
  34. package/dist/es/components/external/BaseElement.js +3 -12
  35. package/dist/es/components/external/CapitalOffer/CapitalOfferElement.js +19 -0
  36. package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +66 -0
  37. package/dist/es/components/external/CapitalOffer/components/CapitalOffer/constants.js +6 -0
  38. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +147 -0
  39. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.scss.js +4 -0
  40. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +185 -0
  41. package/dist/es/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.js +34 -0
  42. package/dist/es/components/external/CapitalOffer/components/utils/utils.js +19 -0
  43. package/dist/es/components/external/CapitalOverview/CapitalOverviewElement.js +32 -0
  44. package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +104 -0
  45. package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.scss.js +4 -0
  46. package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +65 -0
  47. package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.scss.js +4 -0
  48. package/dist/es/components/external/CapitalOverview/components/GrantAction/constants.js +6 -0
  49. package/dist/es/components/external/CapitalOverview/components/GrantAction/utils.js +10 -0
  50. package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +84 -0
  51. package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.scss.js +4 -0
  52. package/dist/es/components/external/CapitalOverview/components/GrantDetails/constants.js +9 -0
  53. package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +89 -0
  54. package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.scss.js +4 -0
  55. package/dist/es/components/external/CapitalOverview/components/GrantItem/constants.js +13 -0
  56. package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +70 -0
  57. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +33 -0
  58. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.scss.js +4 -0
  59. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +45 -0
  60. package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +23 -0
  61. package/dist/es/components/external/CapitalOverview/components/PreQualifiedIntro.js +33 -0
  62. package/dist/es/components/external/CapitalOverview/components/Unqualified.js +20 -0
  63. package/dist/es/components/external/CapitalOverview/constants.js +13 -0
  64. package/dist/es/components/external/PayoutDetails/PayoutDetails.js +5 -9
  65. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +90 -181
  66. package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +12 -9
  67. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +96 -118
  68. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverviewContainer/PayoutsOverviewContainer.js +15 -23
  69. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +44 -86
  70. package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +13 -10
  71. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +67 -86
  72. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +15 -23
  73. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +88 -119
  74. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +12 -9
  75. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +8 -0
  76. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.scss.js +4 -0
  77. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +187 -0
  78. package/dist/es/components/external/TransactionDetails/components/constants.js +44 -0
  79. package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +53 -0
  80. package/dist/es/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.js +7 -0
  81. package/dist/es/components/external/TransactionDetails/components/details/TransactionStatusBox.js +53 -0
  82. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +98 -0
  83. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +19 -0
  84. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +41 -0
  85. package/dist/es/components/external/TransactionDetails/components/utils.js +32 -0
  86. package/dist/es/components/external/TransactionDetails/context/constants.js +4 -0
  87. package/dist/es/components/external/TransactionDetails/context/details/context.js +92 -0
  88. package/dist/es/components/external/TransactionDetails/context/refund/context.js +85 -0
  89. package/dist/es/components/external/TransactionDetails/context/refund/helpers.js +18 -0
  90. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundAction.js +52 -0
  91. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextActions.js +40 -0
  92. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.js +32 -0
  93. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +41 -0
  94. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextReason.js +17 -0
  95. package/dist/es/components/external/TransactionDetails/context/types.js +8 -0
  96. package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +41 -0
  97. package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +46 -0
  98. package/dist/es/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/helpers.js +10 -0
  99. package/dist/es/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js +126 -0
  100. package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +12 -9
  101. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +4 -16
  102. package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +34 -35
  103. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +34 -60
  104. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +7 -23
  105. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +26 -21
  106. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -1
  107. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +14 -19
  108. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +1 -4
  109. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +29 -56
  110. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +13 -22
  111. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +28 -23
  112. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +35 -35
  113. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +49 -80
  114. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +206 -237
  115. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +15 -23
  116. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +18 -29
  117. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +57 -104
  118. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +8 -6
  119. package/dist/es/components/external/UIElement/UIElement.js +24 -28
  120. package/dist/es/components/internal/Accordion/Accordion.js +32 -44
  121. package/dist/es/components/internal/Alert/Alert.js +29 -59
  122. package/dist/es/components/internal/Alert/AlertIcon.js +19 -0
  123. package/dist/es/components/internal/Alert/types.js +3 -2
  124. package/dist/es/components/internal/BaseButton/BaseButton.js +16 -30
  125. package/dist/es/components/internal/BaseList/BaseList.js +5 -9
  126. package/dist/es/components/internal/Button/Button.js +55 -56
  127. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +24 -29
  128. package/dist/es/components/internal/Button/ButtonActions/types.js +1 -4
  129. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +24 -54
  130. package/dist/es/components/internal/Button/DownloadButton/useDownload.js +3 -8
  131. package/dist/es/components/internal/Button/constants.js +9 -6
  132. package/dist/es/components/internal/Button/hooks/useButton.js +12 -9
  133. package/dist/es/components/internal/Button/types.js +1 -1
  134. package/dist/es/components/internal/Calendar/Calendar.js +15 -16
  135. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +123 -108
  136. package/dist/es/components/internal/Calendar/calendar/facade/index.js +13 -40
  137. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +18 -17
  138. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +29 -44
  139. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +25 -37
  140. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +9 -14
  141. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +9 -13
  142. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +2 -11
  143. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +10 -18
  144. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +1 -4
  145. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +1 -3
  146. package/dist/es/components/internal/Calendar/calendar/utils.js +2 -11
  147. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +3 -11
  148. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +19 -46
  149. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +39 -53
  150. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +31 -45
  151. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +12 -26
  152. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +69 -64
  153. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +38 -33
  154. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +13 -29
  155. package/dist/es/components/internal/CapitalHeader/CapitalHeader.js +6 -0
  156. package/dist/es/components/internal/CapitalSlider/CapitalSlider.js +57 -0
  157. package/dist/es/components/internal/CapitalSlider/CapitalSlider.scss.js +4 -0
  158. package/dist/es/components/internal/Card/Card.js +41 -39
  159. package/dist/es/components/internal/Card/constants.js +3 -2
  160. package/dist/es/components/internal/CopyText/CopyText.js +73 -33
  161. package/dist/es/components/internal/DataGrid/DataGrid.js +66 -102
  162. package/dist/es/components/internal/DataGrid/DataGridCell.js +25 -26
  163. package/dist/es/components/internal/DataGrid/components/Icon.js +2 -13
  164. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +14 -22
  165. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +14 -24
  166. package/dist/es/components/internal/DataGrid/components/TableBody.js +9 -14
  167. package/dist/es/components/internal/DataGrid/components/TableCells.js +20 -48
  168. package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +16 -23
  169. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +68 -75
  170. package/dist/es/components/internal/DataGrid/utils/DataGridProvider.js +19 -24
  171. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +15 -15
  172. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +60 -80
  173. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetailsSkeleton.js +14 -0
  174. package/dist/es/components/internal/DataOverviewDetails/constants.js +8 -0
  175. package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +18 -0
  176. package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +20 -21
  177. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +10 -36
  178. package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +16 -13
  179. package/dist/es/components/internal/DatePicker/DatePicker.js +36 -54
  180. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +18 -27
  181. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +26 -22
  182. package/dist/es/components/internal/Divider/Divider.js +8 -0
  183. package/dist/es/components/internal/Divider/Divider.scss.js +4 -0
  184. package/dist/es/components/internal/Divider/constants.js +6 -0
  185. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +61 -66
  186. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +38 -63
  187. package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.js +34 -0
  188. package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.scss.js +4 -0
  189. package/dist/es/components/internal/ExpandableContainer/constants.js +8 -0
  190. package/dist/es/components/internal/FilterBar/FilterBar.js +33 -44
  191. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +6 -27
  192. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +49 -54
  193. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +55 -65
  194. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +109 -102
  195. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +48 -44
  196. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +69 -86
  197. package/dist/es/components/internal/FormFields/InputBase.js +61 -70
  198. package/dist/es/components/internal/FormFields/InputText.js +5 -11
  199. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +35 -32
  200. package/dist/es/components/internal/FormFields/Select/Select.js +162 -155
  201. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +61 -81
  202. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +61 -66
  203. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +35 -55
  204. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +31 -30
  205. package/dist/es/components/internal/Header/Header.js +21 -0
  206. package/dist/es/components/internal/Header/Header.scss.js +4 -0
  207. package/dist/es/components/internal/Icon/Icon.js +36 -0
  208. package/dist/es/components/internal/Icon/Icon.scss.js +4 -0
  209. package/dist/es/components/internal/Image/Image.js +8 -21
  210. package/dist/es/components/internal/Img/Img.js +12 -28
  211. package/dist/es/components/internal/InfoBox/InfoBox.js +7 -0
  212. package/dist/es/components/internal/InfoBox/InfoBox.scss.js +4 -0
  213. package/dist/es/components/internal/Modal/Modal.js +74 -60
  214. package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +19 -30
  215. package/dist/es/components/internal/Pagination/Pagination.js +50 -60
  216. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +4 -11
  217. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +5 -12
  218. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +32 -35
  219. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -82
  220. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +1 -7
  221. package/dist/es/components/internal/Pagination/hooks/usePagination.js +29 -50
  222. package/dist/es/components/internal/Popover/Popover.js +93 -81
  223. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +20 -27
  224. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +6 -13
  225. package/dist/es/components/internal/Popover/utils/popoverUtil.js +7 -15
  226. package/dist/es/components/internal/Popover/utils/utils.js +8 -9
  227. package/dist/es/components/internal/ProgressBar/ProgressBar.js +56 -0
  228. package/dist/es/components/internal/ProgressBar/ProgressBar.scss.js +4 -0
  229. package/dist/es/components/internal/SVGIcons/CheckedBox.js +10 -18
  230. package/dist/es/components/internal/SVGIcons/Checkmark.js +12 -20
  231. package/dist/es/components/internal/SVGIcons/ChevronDown.js +12 -20
  232. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +10 -18
  233. package/dist/es/components/internal/SVGIcons/ChevronRight.js +10 -18
  234. package/dist/es/components/internal/SVGIcons/ChevronUp.js +12 -20
  235. package/dist/es/components/internal/SVGIcons/CloseCircle.js +16 -0
  236. package/dist/es/components/internal/SVGIcons/Download.js +16 -17
  237. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +4 -18
  238. package/dist/es/components/internal/SVGIcons/Warning.js +17 -19
  239. package/dist/es/components/internal/Slider/Slider.js +31 -0
  240. package/dist/es/components/internal/Slider/Slider.scss.js +4 -0
  241. package/dist/es/components/internal/Slider/calculateProgress.js +13 -0
  242. package/dist/es/components/internal/Spinner/Spinner.js +2 -10
  243. package/dist/es/components/internal/StructuredList/StructuredList.js +30 -41
  244. package/dist/es/components/internal/StructuredList/useStructuredListItem.js +1 -3
  245. package/dist/es/components/internal/Tabs/Tabs.js +70 -0
  246. package/dist/es/components/internal/Tabs/Tabs.scss.js +4 -0
  247. package/dist/es/components/internal/Tag/Tag.js +21 -16
  248. package/dist/es/components/internal/Tag/types.js +2 -2
  249. package/dist/es/components/internal/Tooltip/Tooltip.js +22 -39
  250. package/dist/es/components/internal/Tooltip/useTooltipListeners.js +11 -8
  251. package/dist/es/components/internal/Typography/Typography.js +29 -39
  252. package/dist/es/components/utils/capital/getCapitalErrorMessage.js +63 -0
  253. package/dist/es/components/utils/getCommonErrorCode.js +5 -8
  254. package/dist/es/components/utils/getErrorMessage.js +5 -7
  255. package/dist/es/constants/dateFormats.js +28 -0
  256. package/dist/es/core/Auth/context.js +32 -23
  257. package/dist/es/core/Auth/session/AuthSession.js +50 -44
  258. package/dist/es/core/Auth/session/AuthSessionSpecification.js +30 -39
  259. package/dist/es/core/Auth/session/AuthSetupContext.js +17 -33
  260. package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.js +19 -0
  261. package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.js +13 -0
  262. package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +10 -0
  263. package/dist/es/core/Auth/session/utils/sessionReady.js +23 -0
  264. package/dist/es/core/Context/CoreProvider.js +12 -21
  265. package/dist/es/core/Http/http.js +18 -24
  266. package/dist/es/core/Http/utils.js +21 -26
  267. package/dist/es/core/Localization/Localization.js +6 -18
  268. package/dist/es/core/Localization/constants/localization.js +5 -5
  269. package/dist/es/core/Localization/datetime/restamper/constants.js +2 -12
  270. package/dist/es/core/Localization/datetime/restamper/restamper.js +5 -18
  271. package/dist/es/core/Localization/datetime/restamper/utils.js +1 -4
  272. package/dist/es/core/Localization/localization-utils.js +3 -11
  273. package/dist/es/core/Localization/utils.js +1 -4
  274. package/dist/es/core/core.js +4 -12
  275. package/dist/es/external/preact/compat/dist/compat.module.js +132 -127
  276. package/dist/es/external/preact/dist/preact.module.js +197 -178
  277. package/dist/es/external/preact/hooks/dist/hooks.module.js +104 -104
  278. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +11 -11
  279. package/dist/es/hooks/element/useClickOutside.js +27 -18
  280. package/dist/es/hooks/element/useDetachedRender.js +13 -10
  281. package/dist/es/hooks/element/useFocusCursor.js +19 -11
  282. package/dist/es/hooks/element/useFocusTrap.js +7 -4
  283. package/dist/es/hooks/element/usePopoverPositioner.js +87 -64
  284. package/dist/es/hooks/element/useUniqueIdentifier.js +10 -4
  285. package/dist/es/hooks/useBalanceAccountSelection.js +18 -0
  286. package/dist/es/hooks/useBalanceAccounts.js +25 -0
  287. package/dist/es/hooks/{useBooleanState/useBooleanState.js → useBooleanState.js} +1 -1
  288. package/dist/es/hooks/useCommitAction/useCommitAction.js +21 -27
  289. package/dist/es/hooks/useCustomColumnsData.js +26 -0
  290. package/dist/es/hooks/useDefaultOverviewFilterParams.js +25 -0
  291. package/dist/es/hooks/useFetch.js +41 -0
  292. package/dist/es/{components/hooks → hooks}/useFreezePeriod.js +4 -7
  293. package/dist/es/hooks/useImageUrl.js +28 -0
  294. package/dist/es/hooks/{useMediaQuery/useMediaQuery.js → useMediaQuery.js} +1 -1
  295. package/dist/es/hooks/useModalDetails/useModalDetails.js +17 -17
  296. package/dist/es/hooks/{useMounted/useMounted.js → useMounted.js} +1 -1
  297. package/dist/es/hooks/useMutation/useMutation.js +59 -0
  298. package/dist/es/hooks/useReactiveState/useReactiveState.js +23 -35
  299. package/dist/es/hooks/{useReflex/useReflex.js → useReflex.js} +2 -2
  300. package/dist/es/{components/hooks → hooks}/useResponsiveViewport.js +2 -2
  301. package/dist/es/hooks/useTableColumns.js +28 -0
  302. package/dist/es/hooks/useTimezoneAwareDateFormatting.js +37 -0
  303. package/dist/es/images/generic-use-first-touch.svg.js +4 -0
  304. package/dist/es/images/icons/angle-right.svg.js +6 -0
  305. package/dist/es/images/icons/checkmark-circle-fill.svg.js +9 -0
  306. package/dist/es/images/icons/checkmark-square-fill.svg.js +6 -0
  307. package/dist/es/images/icons/checkmark.svg.js +6 -0
  308. package/dist/es/images/icons/chevron-down.svg.js +6 -0
  309. package/dist/es/images/icons/chevron-left.svg.js +6 -0
  310. package/dist/es/images/icons/chevron-right.svg.js +6 -0
  311. package/dist/es/images/icons/chevron-up.svg.js +6 -0
  312. package/dist/es/images/icons/copy.svg.js +6 -0
  313. package/dist/es/images/icons/cross-circle-fill.svg.js +9 -0
  314. package/dist/es/images/icons/cross.svg.js +6 -0
  315. package/dist/es/images/icons/download.svg.js +9 -0
  316. package/dist/es/images/icons/filter.svg.js +6 -0
  317. package/dist/es/images/icons/info-filled.svg.js +9 -0
  318. package/dist/es/images/icons/minus-circle-outline.svg.js +9 -0
  319. package/dist/es/images/icons/plus-circle-outline.svg.js +9 -0
  320. package/dist/es/images/icons/square.svg.js +6 -0
  321. package/dist/es/images/icons/warning-filled.svg.js +6 -0
  322. package/dist/es/images/icons/warning.svg.js +9 -0
  323. package/dist/es/index.js +24 -19
  324. package/dist/es/primitives/auxiliary/indexed/main.js +22 -18
  325. package/dist/es/primitives/context/session/SessionContext.js +1 -3
  326. package/dist/es/primitives/context/session/internal/autofresher.js +1 -3
  327. package/dist/es/primitives/context/session/internal/refresher.js +6 -4
  328. package/dist/es/primitives/dom/tabbableRoot/tabbable.js +2 -4
  329. package/dist/es/primitives/reactive/eventEmitter/main.js +19 -11
  330. package/dist/es/primitives/reactive/reflex/helpers.js +16 -12
  331. package/dist/es/primitives/reactive/reflex/main.js +19 -33
  332. package/dist/es/primitives/reactive/reflex/register.js +17 -23
  333. package/dist/es/primitives/reactive/watchlist/helpers.js +8 -12
  334. package/dist/es/primitives/reactive/watchlist/main.js +5 -4
  335. package/dist/es/primitives/time/clock/main.js +1 -6
  336. package/dist/es/primitives/time/interval/main.js +1 -1
  337. package/dist/es/primitives/time/today/main.js +2 -9
  338. package/dist/es/translations/da-DK.json.js +1 -1
  339. package/dist/es/translations/de-DE.json.js +1 -1
  340. package/dist/es/translations/en-US.json.js +1 -1
  341. package/dist/es/translations/es-ES.json.js +1 -1
  342. package/dist/es/translations/fi-FI.json.js +4 -0
  343. package/dist/es/translations/fr-FR.json.js +1 -1
  344. package/dist/es/translations/index.js +16 -38
  345. package/dist/es/translations/it-IT.json.js +1 -1
  346. package/dist/es/translations/nl-NL.json.js +1 -1
  347. package/dist/es/translations/no-NO.json.js +1 -1
  348. package/dist/es/translations/pt-BR.json.js +1 -1
  349. package/dist/es/translations/sv-SE.json.js +1 -1
  350. package/dist/es/utils/abort/main.js +2 -6
  351. package/dist/es/utils/common.js +4 -5
  352. package/dist/es/utils/preact/memoComparator/main.js +1 -3
  353. package/dist/es/utils/random/uniqueId.js +5 -5
  354. package/dist/es/utils/struct/main.js +1 -5
  355. package/dist/es-ES-143780e6.cjs +2 -0
  356. package/dist/es-ES-143780e6.cjs.map +1 -0
  357. package/dist/fi-FI-99b94b3f.cjs +2 -0
  358. package/dist/fi-FI-99b94b3f.cjs.map +1 -0
  359. package/dist/filter-9a3e4c7a.cjs +2 -0
  360. package/dist/filter-9a3e4c7a.cjs.map +1 -0
  361. package/dist/fr-FR-e0317359.cjs +2 -0
  362. package/dist/fr-FR-e0317359.cjs.map +1 -0
  363. package/dist/index-17716b7b.cjs +12 -0
  364. package/dist/index-17716b7b.cjs.map +1 -0
  365. package/dist/info-filled-7e7648a0.cjs +2 -0
  366. package/dist/info-filled-7e7648a0.cjs.map +1 -0
  367. package/dist/it-IT-1dc05e46.cjs +2 -0
  368. package/dist/it-IT-1dc05e46.cjs.map +1 -0
  369. package/dist/minus-circle-outline-0f20287b.cjs +2 -0
  370. package/dist/minus-circle-outline-0f20287b.cjs.map +1 -0
  371. package/dist/nl-NL-40171335.cjs +2 -0
  372. package/dist/nl-NL-40171335.cjs.map +1 -0
  373. package/dist/no-NO-d689e9ff.cjs +2 -0
  374. package/dist/no-NO-d689e9ff.cjs.map +1 -0
  375. package/dist/plus-circle-outline-58879e3c.cjs +2 -0
  376. package/dist/plus-circle-outline-58879e3c.cjs.map +1 -0
  377. package/dist/pt-BR-4b1fd7f1.cjs +2 -0
  378. package/dist/pt-BR-4b1fd7f1.cjs.map +1 -0
  379. package/dist/square-a26e52f2.cjs +2 -0
  380. package/dist/square-a26e52f2.cjs.map +1 -0
  381. package/dist/style.css +1 -1
  382. package/dist/sv-SE-2f0e50d2.cjs +2 -0
  383. package/dist/sv-SE-2f0e50d2.cjs.map +1 -0
  384. package/dist/types/components/constants.d.ts +2 -0
  385. package/dist/types/components/constants.d.ts.map +1 -0
  386. package/dist/types/components/external/BaseElement.d.ts +2 -2
  387. package/dist/types/components/external/BaseElement.d.ts.map +1 -1
  388. package/dist/types/components/external/CapitalOffer/CapitalOfferElement.d.ts +10 -0
  389. package/dist/types/components/external/CapitalOffer/CapitalOfferElement.d.ts.map +1 -0
  390. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts +5 -0
  391. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts.map +1 -0
  392. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts +4 -0
  393. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts.map +1 -0
  394. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.d.ts +14 -0
  395. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.d.ts.map +1 -0
  396. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts +9 -0
  397. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -0
  398. package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts +8 -0
  399. package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts.map +1 -0
  400. package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +10 -0
  401. package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -0
  402. package/dist/types/components/external/CapitalOffer/index.d.ts +2 -0
  403. package/dist/types/components/external/CapitalOffer/index.d.ts.map +1 -0
  404. package/dist/types/components/external/CapitalOffer/types.d.ts +9 -0
  405. package/dist/types/components/external/CapitalOffer/types.d.ts.map +1 -0
  406. package/dist/types/components/external/CapitalOverview/CapitalOverviewElement.d.ts +11 -0
  407. package/dist/types/components/external/CapitalOverview/CapitalOverviewElement.d.ts.map +1 -0
  408. package/dist/types/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.d.ts +6 -0
  409. package/dist/types/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.d.ts.map +1 -0
  410. package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts +5 -0
  411. package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts.map +1 -0
  412. package/dist/types/components/external/CapitalOverview/components/GrantAction/constants.d.ts +4 -0
  413. package/dist/types/components/external/CapitalOverview/components/GrantAction/constants.d.ts.map +1 -0
  414. package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts +7 -0
  415. package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts.map +1 -0
  416. package/dist/types/components/external/CapitalOverview/components/GrantAction/utils.d.ts +13 -0
  417. package/dist/types/components/external/CapitalOverview/components/GrantAction/utils.d.ts.map +1 -0
  418. package/dist/types/components/external/CapitalOverview/components/GrantDetails/GrantDetails.d.ts +5 -0
  419. package/dist/types/components/external/CapitalOverview/components/GrantDetails/GrantDetails.d.ts.map +1 -0
  420. package/dist/types/components/external/CapitalOverview/components/GrantDetails/constants.d.ts +7 -0
  421. package/dist/types/components/external/CapitalOverview/components/GrantDetails/constants.d.ts.map +1 -0
  422. package/dist/types/components/external/CapitalOverview/components/GrantDetails/types.d.ts +5 -0
  423. package/dist/types/components/external/CapitalOverview/components/GrantDetails/types.d.ts.map +1 -0
  424. package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts +5 -0
  425. package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -0
  426. package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts +11 -0
  427. package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts.map +1 -0
  428. package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts +5 -0
  429. package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts.map +1 -0
  430. package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts +23 -0
  431. package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts.map +1 -0
  432. package/dist/types/components/external/CapitalOverview/components/GrantList/GrantList.d.ts +5 -0
  433. package/dist/types/components/external/CapitalOverview/components/GrantList/GrantList.d.ts.map +1 -0
  434. package/dist/types/components/external/CapitalOverview/components/GrantList/GrantsDisplay.d.ts +4 -0
  435. package/dist/types/components/external/CapitalOverview/components/GrantList/GrantsDisplay.d.ts.map +1 -0
  436. package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts +16 -0
  437. package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts.map +1 -0
  438. package/dist/types/components/external/CapitalOverview/components/PreQualified/PreQualified.d.ts +12 -0
  439. package/dist/types/components/external/CapitalOverview/components/PreQualified/PreQualified.d.ts.map +1 -0
  440. package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts +8 -0
  441. package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts.map +1 -0
  442. package/dist/types/components/external/CapitalOverview/components/Unqualified.d.ts +5 -0
  443. package/dist/types/components/external/CapitalOverview/components/Unqualified.d.ts.map +1 -0
  444. package/dist/types/components/external/CapitalOverview/constants.d.ts +11 -0
  445. package/dist/types/components/external/CapitalOverview/constants.d.ts.map +1 -0
  446. package/dist/types/components/external/CapitalOverview/index.d.ts +2 -0
  447. package/dist/types/components/external/CapitalOverview/index.d.ts.map +1 -0
  448. package/dist/types/components/external/CapitalOverview/types.d.ts +11 -0
  449. package/dist/types/components/external/CapitalOverview/types.d.ts.map +1 -0
  450. package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts +2 -2
  451. package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
  452. package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
  453. package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts +2 -2
  454. package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts.map +1 -1
  455. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +2 -2
  456. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -1
  457. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -1
  458. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +2 -2
  459. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
  460. package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts +3 -0
  461. package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts.map +1 -0
  462. package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts +11 -0
  463. package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts.map +1 -0
  464. package/dist/types/components/external/TransactionDetails/components/TransactionData/index.d.ts +2 -0
  465. package/dist/types/components/external/TransactionDetails/components/TransactionData/index.d.ts.map +1 -0
  466. package/dist/types/components/external/TransactionDetails/components/constants.d.ts +28 -0
  467. package/dist/types/components/external/TransactionDetails/components/constants.d.ts.map +1 -0
  468. package/dist/types/components/external/TransactionDetails/components/details/TransactionDataProperties.d.ts +3 -0
  469. package/dist/types/components/external/TransactionDetails/components/details/TransactionDataProperties.d.ts.map +1 -0
  470. package/dist/types/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.d.ts +6 -0
  471. package/dist/types/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.d.ts.map +1 -0
  472. package/dist/types/components/external/TransactionDetails/components/details/TransactionStatusBox.d.ts +8 -0
  473. package/dist/types/components/external/TransactionDetails/components/details/TransactionStatusBox.d.ts.map +1 -0
  474. package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundAmount.d.ts +6 -0
  475. package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundAmount.d.ts.map +1 -0
  476. package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundNotice.d.ts +3 -0
  477. package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundNotice.d.ts.map +1 -0
  478. package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundReason.d.ts +3 -0
  479. package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundReason.d.ts.map +1 -0
  480. package/dist/types/components/external/TransactionDetails/components/utils.d.ts +9 -0
  481. package/dist/types/components/external/TransactionDetails/components/utils.d.ts.map +1 -0
  482. package/dist/types/components/external/TransactionDetails/context/constants.d.ts +3 -0
  483. package/dist/types/components/external/TransactionDetails/context/constants.d.ts.map +1 -0
  484. package/dist/types/components/external/TransactionDetails/context/details/context.d.ts +5 -0
  485. package/dist/types/components/external/TransactionDetails/context/details/context.d.ts.map +1 -0
  486. package/dist/types/components/external/TransactionDetails/context/details/index.d.ts +4 -0
  487. package/dist/types/components/external/TransactionDetails/context/details/index.d.ts.map +1 -0
  488. package/dist/types/components/external/TransactionDetails/context/details/types.d.ts +16 -0
  489. package/dist/types/components/external/TransactionDetails/context/details/types.d.ts.map +1 -0
  490. package/dist/types/components/external/TransactionDetails/context/refund/context.d.ts +5 -0
  491. package/dist/types/components/external/TransactionDetails/context/refund/context.d.ts.map +1 -0
  492. package/dist/types/components/external/TransactionDetails/context/refund/helpers.d.ts +3 -0
  493. package/dist/types/components/external/TransactionDetails/context/refund/helpers.d.ts.map +1 -0
  494. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts +18 -0
  495. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts.map +1 -0
  496. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextActions.d.ts +9 -0
  497. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextActions.d.ts.map +1 -0
  498. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.d.ts +8 -0
  499. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.d.ts.map +1 -0
  500. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.d.ts +29 -0
  501. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.d.ts.map +1 -0
  502. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextReason.d.ts +5 -0
  503. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextReason.d.ts.map +1 -0
  504. package/dist/types/components/external/TransactionDetails/context/refund/index.d.ts +4 -0
  505. package/dist/types/components/external/TransactionDetails/context/refund/index.d.ts.map +1 -0
  506. package/dist/types/components/external/TransactionDetails/context/refund/types.d.ts +30 -0
  507. package/dist/types/components/external/TransactionDetails/context/refund/types.d.ts.map +1 -0
  508. package/dist/types/components/external/TransactionDetails/context/types.d.ts +46 -0
  509. package/dist/types/components/external/TransactionDetails/context/types.d.ts.map +1 -0
  510. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/index.d.ts +2 -0
  511. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/index.d.ts.map +1 -0
  512. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.d.ts +4 -0
  513. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.d.ts.map +1 -0
  514. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/types.d.ts +16 -0
  515. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/types.d.ts.map +1 -0
  516. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts +73 -0
  517. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts.map +1 -0
  518. package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/helpers.d.ts +10 -0
  519. package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/helpers.d.ts.map +1 -0
  520. package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/index.d.ts +2 -0
  521. package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/index.d.ts.map +1 -0
  522. package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.d.ts +25 -0
  523. package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.d.ts.map +1 -0
  524. package/dist/types/components/external/TransactionDetails/types.d.ts +12 -4
  525. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  526. package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts +2 -2
  527. package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -1
  528. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
  529. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  530. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  531. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
  532. package/dist/types/components/external/UIElement/UIElement.d.ts +4 -3
  533. package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
  534. package/dist/types/components/external/index.d.ts +5 -3
  535. package/dist/types/components/external/index.d.ts.map +1 -1
  536. package/dist/types/components/internal/Alert/Alert.d.ts +1 -1
  537. package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -1
  538. package/dist/types/components/internal/Alert/AlertIcon.d.ts +7 -0
  539. package/dist/types/components/internal/Alert/AlertIcon.d.ts.map +1 -0
  540. package/dist/types/components/internal/Alert/types.d.ts +8 -3
  541. package/dist/types/components/internal/Alert/types.d.ts.map +1 -1
  542. package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
  543. package/dist/types/components/internal/BaseList/types.d.ts +3 -1
  544. package/dist/types/components/internal/BaseList/types.d.ts.map +1 -1
  545. package/dist/types/components/internal/Button/Button.d.ts +1 -1
  546. package/dist/types/components/internal/Button/Button.d.ts.map +1 -1
  547. package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
  548. package/dist/types/components/internal/Button/ButtonActions/types.d.ts +3 -0
  549. package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
  550. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +162 -6
  551. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
  552. package/dist/types/components/internal/Button/constants.d.ts +3 -0
  553. package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
  554. package/dist/types/components/internal/Button/types.d.ts +5 -1
  555. package/dist/types/components/internal/Button/types.d.ts.map +1 -1
  556. package/dist/types/components/internal/Calendar/calendar/timerange/factory.d.ts.map +1 -1
  557. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.d.ts.map +1 -1
  558. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.d.ts +1 -1
  559. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.d.ts.map +1 -1
  560. package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts +5 -0
  561. package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts.map +1 -0
  562. package/dist/types/components/internal/CapitalHeader/index.d.ts +3 -0
  563. package/dist/types/components/internal/CapitalHeader/index.d.ts.map +1 -0
  564. package/dist/types/components/internal/CapitalSlider/CapitalSlider.d.ts +34 -0
  565. package/dist/types/components/internal/CapitalSlider/CapitalSlider.d.ts.map +1 -0
  566. package/dist/types/components/internal/CapitalSlider/index.d.ts +2 -0
  567. package/dist/types/components/internal/CapitalSlider/index.d.ts.map +1 -0
  568. package/dist/types/components/internal/Card/Card.d.ts +1 -1
  569. package/dist/types/components/internal/Card/Card.d.ts.map +1 -1
  570. package/dist/types/components/internal/Card/constants.d.ts +1 -0
  571. package/dist/types/components/internal/Card/constants.d.ts.map +1 -1
  572. package/dist/types/components/internal/Card/types.d.ts +2 -0
  573. package/dist/types/components/internal/Card/types.d.ts.map +1 -1
  574. package/dist/types/components/internal/CopyText/CopyText.d.ts +6 -2
  575. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
  576. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -0
  577. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  578. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts +4 -1
  579. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
  580. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetailsSkeleton.d.ts +5 -0
  581. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetailsSkeleton.d.ts.map +1 -0
  582. package/dist/types/components/internal/DataOverviewDetails/constants.d.ts +6 -0
  583. package/dist/types/components/internal/DataOverviewDetails/constants.d.ts.map +1 -0
  584. package/dist/types/components/internal/DataOverviewDetails/types.d.ts +2 -2
  585. package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
  586. package/dist/types/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.d.ts +13 -0
  587. package/dist/types/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.d.ts.map +1 -0
  588. package/dist/types/components/internal/DatePicker/DatePicker.d.ts +2 -1
  589. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  590. package/dist/types/components/internal/Divider/Divider.d.ts +5 -0
  591. package/dist/types/components/internal/Divider/Divider.d.ts.map +1 -0
  592. package/dist/types/components/internal/Divider/constants.d.ts +4 -0
  593. package/dist/types/components/internal/Divider/constants.d.ts.map +1 -0
  594. package/dist/types/components/internal/Divider/types.d.ts +7 -0
  595. package/dist/types/components/internal/Divider/types.d.ts.map +1 -0
  596. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +4 -1
  597. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  598. package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts +5 -0
  599. package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts.map +1 -0
  600. package/dist/types/components/internal/ExpandableContainer/constants.d.ts +6 -0
  601. package/dist/types/components/internal/ExpandableContainer/constants.d.ts.map +1 -0
  602. package/dist/types/components/internal/ExpandableContainer/types.d.ts +7 -0
  603. package/dist/types/components/internal/ExpandableContainer/types.d.ts.map +1 -0
  604. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  605. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts +1 -1
  606. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -1
  607. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts +1 -1
  608. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
  609. package/dist/types/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.d.ts +1 -1
  610. package/dist/types/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -1
  611. package/dist/types/components/internal/FormFields/index.d.ts +1 -1
  612. package/dist/types/components/internal/Header/Header.d.ts +14 -0
  613. package/dist/types/components/internal/Header/Header.d.ts.map +1 -0
  614. package/dist/types/components/internal/Header/index.d.ts +3 -0
  615. package/dist/types/components/internal/Header/index.d.ts.map +1 -0
  616. package/dist/types/components/internal/Icon/Icon.d.ts +45 -0
  617. package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -0
  618. package/dist/types/components/internal/Icon/index.d.ts +2 -0
  619. package/dist/types/components/internal/Icon/index.d.ts.map +1 -0
  620. package/dist/types/components/internal/InfoBox/InfoBox.d.ts +21 -0
  621. package/dist/types/components/internal/InfoBox/InfoBox.d.ts.map +1 -0
  622. package/dist/types/components/internal/InfoBox/index.d.ts +2 -0
  623. package/dist/types/components/internal/InfoBox/index.d.ts.map +1 -0
  624. package/dist/types/components/internal/Modal/Modal.d.ts +3 -0
  625. package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
  626. package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts +1 -1
  627. package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts.map +1 -1
  628. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  629. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  630. package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
  631. package/dist/types/components/internal/ProgressBar/ProgressBar.d.ts +54 -0
  632. package/dist/types/components/internal/ProgressBar/ProgressBar.d.ts.map +1 -0
  633. package/dist/types/components/internal/ProgressBar/index.d.ts +2 -0
  634. package/dist/types/components/internal/ProgressBar/index.d.ts.map +1 -0
  635. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +3 -0
  636. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +1 -1
  637. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +3 -0
  638. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +1 -1
  639. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +3 -0
  640. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +1 -1
  641. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +3 -0
  642. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
  643. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +3 -0
  644. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
  645. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +3 -0
  646. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +1 -1
  647. package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +7 -0
  648. package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts.map +1 -0
  649. package/dist/types/components/internal/SVGIcons/Download.d.ts +3 -0
  650. package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
  651. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +3 -0
  652. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +1 -1
  653. package/dist/types/components/internal/SVGIcons/Warning.d.ts +3 -0
  654. package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -1
  655. package/dist/types/components/internal/Slider/Slider.d.ts +45 -0
  656. package/dist/types/components/internal/Slider/Slider.d.ts.map +1 -0
  657. package/dist/types/components/internal/Slider/calculateProgress.d.ts +13 -0
  658. package/dist/types/components/internal/Slider/calculateProgress.d.ts.map +1 -0
  659. package/dist/types/components/internal/Slider/index.d.ts +2 -0
  660. package/dist/types/components/internal/Slider/index.d.ts.map +1 -0
  661. package/dist/types/components/internal/Spinner/Spinner.d.ts +2 -2
  662. package/dist/types/components/internal/Spinner/Spinner.d.ts.map +1 -1
  663. package/dist/types/components/internal/StructuredList/StructuredList.d.ts +2 -2
  664. package/dist/types/components/internal/StructuredList/StructuredList.d.ts.map +1 -1
  665. package/dist/types/components/internal/StructuredList/types.d.ts +7 -9
  666. package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
  667. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +4 -8
  668. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
  669. package/dist/types/components/internal/Tabs/Tabs.d.ts +5 -0
  670. package/dist/types/components/internal/Tabs/Tabs.d.ts.map +1 -0
  671. package/dist/types/components/internal/Tabs/types.d.ts +15 -0
  672. package/dist/types/components/internal/Tabs/types.d.ts.map +1 -0
  673. package/dist/types/components/internal/Tag/Tag.d.ts.map +1 -1
  674. package/dist/types/components/internal/Tag/types.d.ts +4 -1
  675. package/dist/types/components/internal/Tag/types.d.ts.map +1 -1
  676. package/dist/types/components/internal/Typography/Typography.d.ts +2 -1
  677. package/dist/types/components/internal/Typography/Typography.d.ts.map +1 -1
  678. package/dist/types/components/types.d.ts +1 -0
  679. package/dist/types/components/types.d.ts.map +1 -1
  680. package/dist/types/components/utils/capital/getCapitalErrorMessage.d.ts +10 -0
  681. package/dist/types/components/utils/capital/getCapitalErrorMessage.d.ts.map +1 -0
  682. package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
  683. package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
  684. package/dist/types/components/utils/getLabel.d.ts +1 -1
  685. package/dist/types/{components/internal/DataOverviewDisplay/constants.d.ts → constants/dateFormats.d.ts} +2 -1
  686. package/dist/types/constants/dateFormats.d.ts.map +1 -0
  687. package/dist/types/{constants.d.ts → constants/index.d.ts} +2 -1
  688. package/dist/types/constants/index.d.ts.map +1 -0
  689. package/dist/types/core/Auth/context.d.ts +400 -43
  690. package/dist/types/core/Auth/context.d.ts.map +1 -1
  691. package/dist/types/core/Auth/session/AuthSession.d.ts +1067 -45
  692. package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
  693. package/dist/types/core/Auth/session/AuthSetupContext.d.ts +396 -39
  694. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
  695. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts +5 -0
  696. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts.map +1 -0
  697. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts +4 -0
  698. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts.map +1 -0
  699. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/index.d.ts +4 -0
  700. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/index.d.ts.map +1 -0
  701. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts +5 -0
  702. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts.map +1 -0
  703. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/types.d.ts +5 -0
  704. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/types.d.ts.map +1 -0
  705. package/dist/types/core/Auth/session/utils/sessionReady.d.ts +4 -0
  706. package/dist/types/core/Auth/session/utils/sessionReady.d.ts.map +1 -0
  707. package/dist/types/core/Auth/types.d.ts +21 -1
  708. package/dist/types/core/Auth/types.d.ts.map +1 -1
  709. package/dist/types/core/Http/http.d.ts +2 -2
  710. package/dist/types/core/Http/http.d.ts.map +1 -1
  711. package/dist/types/core/Http/types.d.ts +1 -0
  712. package/dist/types/core/Http/types.d.ts.map +1 -1
  713. package/dist/types/core/Http/utils.d.ts +2 -1
  714. package/dist/types/core/Http/utils.d.ts.map +1 -1
  715. package/dist/types/hooks/element/usePopoverPositioner.d.ts +2 -1
  716. package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
  717. package/dist/types/{components/hooks → hooks}/useBalanceAccountSelection.d.ts +2 -2
  718. package/dist/types/hooks/useBalanceAccountSelection.d.ts.map +1 -0
  719. package/dist/types/hooks/useBalanceAccounts.d.ts.map +1 -0
  720. package/dist/types/hooks/useBooleanState.d.ts.map +1 -0
  721. package/dist/types/{components/hooks → hooks}/useCustomColumnsData.d.ts +2 -2
  722. package/dist/types/hooks/useCustomColumnsData.d.ts.map +1 -0
  723. package/dist/types/{components/hooks → hooks}/useDefaultOverviewFilterParams.d.ts +9 -9
  724. package/dist/types/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -0
  725. package/dist/types/hooks/{useFetch/useFetch.d.ts → useFetch.d.ts} +6 -5
  726. package/dist/types/hooks/useFetch.d.ts.map +1 -0
  727. package/dist/types/hooks/useFreezePeriod.d.ts.map +1 -0
  728. package/dist/types/hooks/useImageUrl.d.ts.map +1 -0
  729. package/dist/types/hooks/useMediaQuery.d.ts.map +1 -0
  730. package/dist/types/hooks/useMounted.d.ts.map +1 -0
  731. package/dist/types/hooks/useMutation/useMutation.d.ts +26 -0
  732. package/dist/types/hooks/useMutation/useMutation.d.ts.map +1 -0
  733. package/dist/types/hooks/useReflex.d.ts +5 -0
  734. package/dist/types/hooks/useReflex.d.ts.map +1 -0
  735. package/dist/types/{components/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
  736. package/dist/types/hooks/useResponsiveViewport.d.ts.map +1 -0
  737. package/dist/types/{components/hooks → hooks}/useTableColumns.d.ts +2 -2
  738. package/dist/types/hooks/useTableColumns.d.ts.map +1 -0
  739. package/dist/types/hooks/useTimezoneAwareDateFormatting.d.ts.map +1 -0
  740. package/dist/types/primitives/reactive/reflex/helpers.d.ts +2 -0
  741. package/dist/types/primitives/reactive/reflex/helpers.d.ts.map +1 -1
  742. package/dist/types/primitives/reactive/reflex/register.d.ts.map +1 -1
  743. package/dist/types/primitives/reactive/reflex/types.d.ts +5 -5
  744. package/dist/types/primitives/reactive/reflex/types.d.ts.map +1 -1
  745. package/dist/types/translations/index.d.ts +123 -0
  746. package/dist/types/translations/index.d.ts.map +1 -1
  747. package/dist/types/types/api/endpoints.d.ts +2 -1
  748. package/dist/types/types/api/endpoints.d.ts.map +1 -1
  749. package/dist/types/types/api/models/capital.d.ts +8 -0
  750. package/dist/types/types/api/models/capital.d.ts.map +1 -0
  751. package/dist/types/types/api/models/index.d.ts +1 -0
  752. package/dist/types/types/api/models/index.d.ts.map +1 -1
  753. package/dist/types/types/api/models/transactions.d.ts +26 -1
  754. package/dist/types/types/api/models/transactions.d.ts.map +1 -1
  755. package/dist/types/types/api/resources/CapitalResource.d.ts +244 -0
  756. package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -0
  757. package/dist/types/types/api/resources/SetupResource.d.ts +8 -11
  758. package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
  759. package/dist/types/types/api/resources/TransactionsResource.d.ts +102 -36
  760. package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
  761. package/dist/types/utils/struct/main.d.ts.map +1 -1
  762. package/dist/types/utils/value/constants.d.ts +1 -1
  763. package/dist/types/utils/value/constants.d.ts.map +1 -1
  764. package/dist/warning-4d681371.cjs +2 -0
  765. package/dist/warning-4d681371.cjs.map +1 -0
  766. package/dist/warning-filled-ed9b80d5.cjs +2 -0
  767. package/dist/warning-filled-ed9b80d5.cjs.map +1 -0
  768. package/package.json +14 -11
  769. package/dist/da-DK-a148e492.cjs +0 -2
  770. package/dist/da-DK-a148e492.cjs.map +0 -1
  771. package/dist/de-DE-a39a50e8.cjs +0 -2
  772. package/dist/de-DE-a39a50e8.cjs.map +0 -1
  773. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +0 -107
  774. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +0 -34
  775. package/dist/es/components/hooks/useBalanceAccountSelection.js +0 -27
  776. package/dist/es/components/hooks/useBalanceAccounts.js +0 -28
  777. package/dist/es/components/hooks/useCustomColumnsData.js +0 -29
  778. package/dist/es/components/hooks/useDefaultOverviewFilterParams.js +0 -36
  779. package/dist/es/components/hooks/useTableColumns.js +0 -46
  780. package/dist/es/components/hooks/useTimezoneAwareDateFormatting.js +0 -31
  781. package/dist/es/components/internal/DataOverviewDisplay/constants.js +0 -36
  782. package/dist/es/components/internal/SVGIcons/Close.js +0 -19
  783. package/dist/es/components/internal/SVGIcons/Copy.js +0 -17
  784. package/dist/es/components/internal/SVGIcons/Filter.js +0 -18
  785. package/dist/es/components/internal/SVGIcons/WarningFilled.js +0 -18
  786. package/dist/es/hooks/useFetch/useFetch.js +0 -65
  787. package/dist/es/hooks/useImageUrl/useImageUrl.js +0 -30
  788. package/dist/es-ES-153e5f15.cjs +0 -2
  789. package/dist/es-ES-153e5f15.cjs.map +0 -1
  790. package/dist/fr-FR-69b3df0d.cjs +0 -2
  791. package/dist/fr-FR-69b3df0d.cjs.map +0 -1
  792. package/dist/it-IT-efca230f.cjs +0 -2
  793. package/dist/it-IT-efca230f.cjs.map +0 -1
  794. package/dist/nl-NL-ffbb8184.cjs +0 -2
  795. package/dist/nl-NL-ffbb8184.cjs.map +0 -1
  796. package/dist/no-NO-eaf65f6f.cjs +0 -2
  797. package/dist/no-NO-eaf65f6f.cjs.map +0 -1
  798. package/dist/pt-BR-590ccc53.cjs +0 -2
  799. package/dist/pt-BR-590ccc53.cjs.map +0 -1
  800. package/dist/sv-SE-18f4e86e.cjs +0 -2
  801. package/dist/sv-SE-18f4e86e.cjs.map +0 -1
  802. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +0 -25
  803. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +0 -1
  804. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +0 -6
  805. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +0 -1
  806. package/dist/types/components/hooks/useBalanceAccountSelection.d.ts.map +0 -1
  807. package/dist/types/components/hooks/useBalanceAccounts.d.ts.map +0 -1
  808. package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +0 -1
  809. package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts.map +0 -1
  810. package/dist/types/components/hooks/useFreezePeriod.d.ts.map +0 -1
  811. package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +0 -1
  812. package/dist/types/components/hooks/useTableColumns.d.ts.map +0 -1
  813. package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts.map +0 -1
  814. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +0 -3
  815. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +0 -1
  816. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +0 -1
  817. package/dist/types/components/internal/SVGIcons/Close.d.ts +0 -4
  818. package/dist/types/components/internal/SVGIcons/Close.d.ts.map +0 -1
  819. package/dist/types/components/internal/SVGIcons/Copy.d.ts +0 -4
  820. package/dist/types/components/internal/SVGIcons/Copy.d.ts.map +0 -1
  821. package/dist/types/components/internal/SVGIcons/Filter.d.ts +0 -4
  822. package/dist/types/components/internal/SVGIcons/Filter.d.ts.map +0 -1
  823. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +0 -4
  824. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +0 -1
  825. package/dist/types/constants.d.ts.map +0 -1
  826. package/dist/types/hooks/useBooleanState/index.d.ts +0 -2
  827. package/dist/types/hooks/useBooleanState/index.d.ts.map +0 -1
  828. package/dist/types/hooks/useBooleanState/useBooleanState.d.ts.map +0 -1
  829. package/dist/types/hooks/useFetch/useFetch.d.ts.map +0 -1
  830. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +0 -1
  831. package/dist/types/hooks/useMediaQuery/index.d.ts +0 -2
  832. package/dist/types/hooks/useMediaQuery/index.d.ts.map +0 -1
  833. package/dist/types/hooks/useMediaQuery/useMediaQuery.d.ts.map +0 -1
  834. package/dist/types/hooks/useMounted/index.d.ts +0 -2
  835. package/dist/types/hooks/useMounted/index.d.ts.map +0 -1
  836. package/dist/types/hooks/useMounted/useMounted.d.ts.map +0 -1
  837. package/dist/types/hooks/useReflex/index.d.ts +0 -2
  838. package/dist/types/hooks/useReflex/index.d.ts.map +0 -1
  839. package/dist/types/hooks/useReflex/useReflex.d.ts +0 -5
  840. package/dist/types/hooks/useReflex/useReflex.d.ts.map +0 -1
  841. /package/dist/es/components/external/{TransactionDetails/components/TransactionData.scss.js → CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.scss.js} +0 -0
  842. /package/dist/es/{constants.js → constants/index.js} +0 -0
  843. /package/dist/types/{components/hooks → hooks}/useBalanceAccounts.d.ts +0 -0
  844. /package/dist/types/hooks/{useBooleanState/useBooleanState.d.ts → useBooleanState.d.ts} +0 -0
  845. /package/dist/types/{components/hooks → hooks}/useFreezePeriod.d.ts +0 -0
  846. /package/dist/types/hooks/{useImageUrl/useImageUrl.d.ts → useImageUrl.d.ts} +0 -0
  847. /package/dist/types/hooks/{useMediaQuery/useMediaQuery.d.ts → useMediaQuery.d.ts} +0 -0
  848. /package/dist/types/hooks/{useMounted/useMounted.d.ts → useMounted.d.ts} +0 -0
  849. /package/dist/types/{components/hooks → hooks}/useTimezoneAwareDateFormatting.d.ts +0 -0
package/dist/cjs/index.js CHANGED
@@ -1,12 +1,2 @@
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.1"},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."}'),Wh={...kh},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:Wh},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"},Bh=["constructor","i18n","watch","preferredTranslations"],El=t=>[...new Set(Object.keys(t).map(e=>e.replace(/_/g,"-")).sort())],zh=El(zo),Fh={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=Fh,$h={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},Uh=$h,Hh=t=>Uh[t]||100,Yh=t=>!!Ml[t],Cl=t=>Yh(t)?Ml[t]:null,Gh=(t,e)=>{const n=Hh(e);return parseInt(String(t),10)/n},Zh=(t,e,n,s=!1,r={})=>{const i=t.toString(),o=Gh(i,n),a=e.replace("_","-"),l={style:"currency",currency:n,currencyDisplay:"symbol",...r};try{return s?Jh(a,l,o):o.toLocaleString(a,l)}catch{return i}},Jh=(t,e,n)=>Intl.NumberFormat(t,e).formatToParts(n).filter(s=>s.type!=="currency").reduce((s,r)=>s+r.value,"").trim(),Vh=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}})(),Qh=/\+(?=-)|([+-]00:00)/g,Xh=new RegExp("(?<=^\\D?)(\\d)$"),Kh=([t,e])=>(Math.abs(t*60)+e)*(t<0?-1:1),qh=t=>Object.freeze([Math.floor(t/60),fr(t,60)]),tm=t=>parseInt(t,10)||0,em=t=>`GMT+${qh(t).map(s=>`${s}`.replace(Xh,"0$1")).join(":")}`.replace(Qh,""),oo=t=>{var n;const e=((n=t==null?void 0:t.match(Vh))==null?void 0:n[0].split(":",2).map(tm))??Lt;return Kh(e.concat(0,0).slice(0,2))},nm=(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),sm=(()=>{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:nm(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=sm,rm={values:F,count:0},im=/^[a-z]{2}-[A-Z]{2}$/,Ur=t=>t.substring(0,2).toLowerCase();function om(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(im.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:om(s??n,e)}function am(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=rm)=>{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},cm=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 lm(){let t=this.locale,e=t,n=[...this.supportedLocales];return J({load:{value:s=>cm(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 um(){var e;const t={};for(const[n,s]of Object.entries(Object.getOwnPropertyDescriptors(Ci.prototype)))Bh.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,lm.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(um.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=am(e,zh);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=Zh(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.1");const vl=bl;var yr,K,Rl,wl,Xe,Za,xl,co,Ho,lo,uo,jl,Rs={},Pl=[],dm=/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,hm(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 hm(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=mm(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 mm(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"||dm.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=_m),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=fm(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 fm(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 _m(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 gm(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 Im(){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)||pm)(Im)),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 pm(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 ym=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:--ym,__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}),Sm=({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 Am=(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=Am,Tm="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 Nm=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=Nm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Lm=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)}Lm(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 Em(t){return this.getChildContext=function(){return t.context},t.children}function Mm(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(Em,{context:e.context},t.__v),e.l)}function Xl(t,e){var n=hs(Mm,{__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 Cm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Dm=/^(?: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]/,Om=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bm=/[A-Z0-9]/g,vm=typeof document<"u",Rm=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 wm(){}function xm(){return this.cancelBubble}function jm(){return this.defaultPrevented}K.event=function(t){return cc&&(t=cc(t)),t.persist=wm,t.isPropagationStopped=xm,t.isDefaultPrevented=jm,t.nativeEvent=t};var Pm={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||vm&&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"||Rm(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Om.test(i)?i=a:s.indexOf("-")===-1&&Dm.test(i)?i=i.replace(bm,"-$&").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",Pm)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(t),t.$$typeof=Cm,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 km({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(km),Kl=Zo({i18n:new Ci().i18n,loadingContext:"",commonProps:{},updateCore:st}),Wm=()=>Jo(Kl),V=Wm;const Bm="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHd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jcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",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),zm=(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=zm,we="adyen-pe-button",go=`${we}-actions`,Fm=`${we}--icon`,$m=`${we}--icon-content`,Um=`${go}__container-wrapper`,Hm=`${we}__label`,Ym=`${we}__icon-right`,Gm=`${we}__icon-left`;var Nt=(t=>(t.PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t.LINK="link",t))(Nt||{});function Zm({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?`${Fm} ${I}`:I,type:o,disabled:e,onClick:g,ref:d,...m,children:u?c("div",{className:`${$m}`,children:a}):c(q,{children:[r&&c("span",{className:Gm,children:r}),c(U,{className:Hm,el:pe.SPAN,variant:b.BODY,stronger:!0,children:a}),i&&c("span",{className:Ym,children:i})]})})}const Pt=Zt(Zm),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??Bm,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"]},Jm=(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},Vm=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=Vm;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 Qm={...qo,...ql};function Xm({actions:t,layout:e=Qm.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:`${Um} ${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 Km=Et(Xm),te="adyen-pe-popover",tu="adyen-pe-tooltip",qm=`${te}-container`,fc=`${te}__header`,tf=`${te}__header-title`,Zi=`${te}__content`,eu=`${tu}__content`,ef=`${te}__footer`;function nf({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 sf=Et(nf);function rf({title:t,isImageTitle:e=!1}){return c(U,{strongest:!e,variant:(()=>e?b.SUBTITLE:b.BODY)(),children:t})}const of=Et(rf);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 af extends nu{}class cf extends nu{}function ta(t){if(!X(t))throw new cf}const lf=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=>lf(t)?js(t[xs]):t,uf=(()=>{const t=(s,r)=>{const i=s.get(r);if(!i)throw new af;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))})}})(),df=uf(),hf=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}})},mf=(t=df)=>{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):hf(s)}}})},ff=(t,e)=>{const n=W(mf());return Hl(()=>n.current.release,[]),y(()=>(n.current.update(t,e),n.current.reflex),[t,e])},je=ff,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
- a[href],
3
- audio[controls],
4
- video[controls],
5
- button,
6
- input,
7
- select,
8
- textarea,
9
- [contenteditable],
10
- [tabindex]
11
- `.replace(/\s+/,""),_f=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],gc=new Map,ru=t=>t.tagName==="INPUT",gf=t=>ru(t)&&t.type==="radio",If=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},pf=(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=>!(gf(t)&&!If(t)||(t==null?void 0:t.tabIndex)<0||!ra(t)),yf=()=>{const t=new MutationObserver(a=>pf(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:_f,attributes:!0,childList:!0,subtree:!0}),i()))}},tabbables:{value:e}});return o},Sf=yf,Af=(t,e)=>{const n=W(!1),s=W(null),r=W(!1),i=y(Sf,[]),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)},Tf=Af,Nf=(()=>{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=Nf,Lf=({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`},Ef=(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=Lf({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)},Mf=Ef,Cf=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=Cf;const Df=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},Of=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(Mf(Of(s),f,s,_,R,I,E,O),g,s===bt.TOOLTIP&&!i,su.POPOVER),tt=Tf(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=Df(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} ${qm}`,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:tf,children:c(of,{title:r})}),M&&c(sf,{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:ef,children:c(Km,{actions:t,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const bf=(t=!1)=>{const[e,n]=$(t),s=N(i=>n(i),[]),r=N(()=>n(i=>!i),[]);return[e,s,r]},_e=bf,vf=()=>{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 Rf=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}=vf();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&&Rf(t)?c(U,{variant:b.CAPTION,children:t}):{content:t}})})]})},wf=({...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"})}),xf=wf;const jf=({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(xf,{fill:"#0070f5"})]})})},Pf=jf,aa=(t,e,n)=>{if(!t)return Io;const s=Jm(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(Pf,{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,{[Tm]: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 kf=({...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=kf;function Wf({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 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:"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=Bf,zf=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=zf,da="adyen-pe-accordion",ha=da+"__header",Ff=ha+"-container",$f=ha+"-controller",Uf=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:Ff,onClick:a,"aria-expanded":r,children:c("div",{className:$f,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:Uf,children:c("div",{ref:o,children:t})})]})}const Ve="adyen-pe-card",iu=`${Ve}__body`,ou=`${Ve}__header`,Hf=`${Ve}__title`,Yf=`${Ve}__subtitle`,Gf=`${ou}-content`,Zf=`${iu}--with-title`,Jf=`${Ve}--no-outline`,Vf=`${Ve}--filled`,Qf=`${Ve}__footer`;const Xf=({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,{[Vf]:a,[Jf]:l},u),children:[(t||i)&&c(m,{className:ou,children:(t||i)&&c("div",{className:Gf,children:[i||c("span",{className:Hf,children:t}),e&&c("div",{className:Yf,children:e})]})}),c("div",{className:z(iu,{[Zf]:t||i}),children:n}),(s||o)&&c("footer",{className:Qf,children:o||s})]})},Vi=Xf,pc="2-digit",ma="long",yc="numeric",au="short",Kf="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},qf=Tr,t_=uu,e_={...Tr,weekday:ma},Sc={...Tr,month:au},n_=lu,s_=uu,r_={...Tr,...cu,weekday:ma,timeZoneName:Kf},Nr="adyen-pe-structured-list",du=`${Nr}__item`,Ac=`${Nr}__grid`,i_=`${Nr}__content`,o_=`${Nr}__label`,a_=`${du}--has-highlight`;const c_=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])},l_="6-6";function Qi({items:t,highlightable:e,renderValue:n,renderLabel:s,layout:r=l_,grid:i=!0}){const[o,a]=y(()=>r.split("-").map(m=>`${Ac}--width-${m}-of-12`),[r]),l=c_(t),{i18n:u}=V();return c("div",{"aria-label":u.get("structuredList"),className:Nr,children:l.map(m=>c("dl",{className:z(du,{[a_]:e,[Ac]:i}),children:[c("dt",{className:z(o_,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(i_,a),children:n?n(m.value):c(U,{variant:b.BODY,children:m.value})})]},m.id))})}const u_=({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=u_,yo=t=>{const{i18n:e}=V();return N((...n)=>{const s=e.timezone;try{return t(...n)}finally{e.timezone=s}},[e,t])},d_=t=>{const{i18n:e}=V(),n=yo(N(()=>(e.timezone=void 0,e.timezone=t,e.timezone),[e,t]));return y(n,[n])},h_=t=>{const{i18n:e}=V(),n=d_(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=h_;const Lr="adyen-pe-payout-data",m_=`${Lr}__title`,f_=`${Lr}__title--ba-id`,fa=`${Lr}__content`,Mn=`${fa}--section`,wr=`${fa}--card`,Tc=`${wr}-title`,Cs=`${Mn}-amount`,Nc=`${Cs}-gross`,__=`${Cs}-net`,g_=`${Lr}--unpaid-amount`,I_=({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),e_):"",[r,o]);return c(q,{children:r?c("div",{className:Lr,children:[c("div",{className:m_,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:f_,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,__),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:g_,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})})},p_="https://cdf6519016.cdn.adyen.com/checkoutshopper/",y_=({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}`},S_=({options:t=F,name:e})=>{const{loadingContext:n}=V();return y(()=>y_({resourceContext:p_,name:e,...t}),[n,e,t])},mu=({folder:t="components/",className:e,alt:n,name:s,extension:r})=>{const i=S_({options:y(()=>({imageFolder:t,extension:r}),[r,t]),name:s});return c("img",{className:z("adyen-pe__image",e),alt:n,src:i})},A_=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function fu(t,e){return t.lastFourDigits?e==="detail"?"•••• •••• •••• "+t.lastFourDigits:t.lastFourDigits:A_[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 T_({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 N_=({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=N_;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 L_=({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})}),E_=L_,M_=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}=M_(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(E_,{...o}),c("div",{children:a})]})},r)})}),C_=({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))})},D_=({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},j_),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}},O_=({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}=D_({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))})},b_=({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]})},v_=b_,R_="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xODkuMyAxMTMuN2MtMS0uMyAzNi4zIDI4LjYgNDcuNyAyNi40IDkuMy0xLjggMTQuMy01OSAxNC4zLTU5aC05LjlsLTEwLjggMzYuM3MtMzAuNC0yMi4zLTMxLjgtMjIuM2MtMS40IDA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C0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",w_=({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)})},x_=({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})})},j_=Object.freeze({activeIndex:-1,index:-1});function Je({errorDisplay:t,...e}){return c("div",{style:{width:"100%"},children:c(w_,{children:c(P_,{...e,errorDisplay:t})})})}function P_({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(x_,{label:d.label,position:d.position,cellKey:d.key},d.key))})}),c(k_,{...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:R_,centered:!0}):e.error&&t?t():null)]}),s]})})}function k_(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(v_,{columnsNumber:t.columns.length,loading:t.loading}):t.onRowClick?c(O_,{onRowHover:t.onRowHover,data:t.data,columns:t.columns,onRowClick:t.onRowClick,customCells:t.customCells}):c(C_,{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 W_=({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=W_;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",B_=Qo(we,[Nt.SECONDARY],[we]),ye=`${fs}__button`,z_=`${ye}--active`,F_=`${ye}-collapse-indicator`,$_=`${ye}--has-selection`,U_=`${ye}-icon`,H_=`${ye}-multiselect-counter`,Y_=`${ye}--readonly`,G_=`${ye}-text`,Z_=`${ye}--valid`,J_=`${ye}--invalid`,Pe=`${fs}__element`,V_=`${Pe}--active`,Q_=`${Pe}-checkbox`,X_=`${Pe}-checkmark`,K_=`${Pe}-content`,q_=`${Pe}--disabled`,tg=`${Pe}-icon`,eg=`${Pe}--no-option`,Su=`${fs}__list`,ng=`${Su}--active`,sg=`${fs}--multiselect`,rg=({active:t,disabled:e,className:n,filterable:s,toggleButtonRef:r,...i})=>{const o=y(()=>s?z(B_,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})},ig=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(rg,{active:n,disabled:o,"aria-disabled":o,"aria-expanded":a,"aria-haspopup":"listbox",className:z(ye,{[z_]:a,[$_]:!!n.length,[Y_]:o,[J_]:t.isInvalid,[Z_]: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:U_,src:m.icon,alt:m.name.trim()}),c("span",{className:G_,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:H_,children:c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,children:t.appliedFilterNumber})})]}),!l&&c("span",{className:F_,children:c(vi,{role:"presentation"})})]})},og=ig,ag=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"})]})),cg=ag,lg=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"})]})),ug=lg,dg=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"})]})),hg=dg,mg=t=>t.multiSelect?c("span",{className:Q_,children:t.selected?c(cg,{role:"presentation"}):c(ug,{role:"presentation"})}):null,Au=t=>t.multiSelect?null:c("span",{className:X_,children:t.selected&&c(hg,{role:"presentation"})}),fg=t=>c(q,{children:[mg(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)]}),_g=({item:t,multiSelect:e,onKeyDown:n,onSelect:s,renderListItem:r,selected:i})=>{const o=!!t.disabled,a=jt(t.disabled)||null,l=z(Pe,{[V_]:i,[q_]: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:K_,iconClassName:tg})})},gg=Et(_g),Ig=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,{[ng]:l}),P=z(Pe,eg),M=y(()=>X(o)?o:fg,[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(gg,{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}),pg=Et(Ig),yg=({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}},Sg=yg;const Ag=({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}=Sg({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,{[sg]: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(og,{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(pg,{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=Ag,Tg=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"})]})),Ng=Tg,Lg=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"})]})),Eg=Lg;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(Ng,{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(Eg,{disabled:!e})})]})]})}const An="adyen-pe-transactions-table",Mg=An+"__amount",Cg=An+"__payment-method",Dg=An+"__payment-method-logo-container",Og=An+"__payment-method-logo",bg=An+"__date-and-payment-method",vg=An+"__date-and-payment-method--date";const Rg=({paymentMethod:t,bankAccount:e})=>{const{i18n:n}=V(),s=ft(mt.down.xs);return c("div",{className:Cg,children:t||e?c(q,{children:[c("div",{className:Dg,children:c(mu,{name:t?t.type:"bankTransfer",alt:t?t.type:"bankTransfer",folder:"logos/",className:Og})}),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=Rg,wg={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=>wg[t]||t;function xg(t){let e={};for(const n of Object.keys(t))Z(t[n])||(e={...e,[n]:t[n]});return e}function jg(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?jg(e)?e.map(a=>({key:a})):e:void 0)||r).map(({key:a,flex:l})=>{const u=s.get(pa(a)),m=xg((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"],Pg=({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(T_,{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:Mg,children:k})},createdAt:({item:C,value:k})=>D?c("div",{className:bg,children:[c(Ec,{paymentMethod:C.paymentMethod,bankAccount:C.bankAccount}),c(U,{variant:b.BODY,className:vg,children:f(C.createdAt,s_)})]}):c(U,{variant:b.BODY,children:f(k,n_)}),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}),kg=["status","category","paymentMethod","bankAccount","balanceAccount","id","balanceAccountId"],Wg=({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),r_):"",[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([...kg,...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})},Bg={transaction:"getTransaction",payout:"getPayout"},zg={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[Bg[t.type]],i=y(()=>zg[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(Wg,{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(I_,{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 Fg={base:"adyen-pe-modal-content"},$g=t=>le(t,"id");function Ug({type:t,data:e}){const n=y(()=>t==="payout"?{...e,type:"payout"}:$g(e)?{data:e,type:t}:{id:e,type:t},[e,t]);return c(q,{children:n&&c("div",{className:Fg.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(Wf,{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(Ug,{...n==null?void 0:n.selection})})]})},Hg=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=Hg;const Aa="adyen-pe-balance-account-selector",Yg=`${Aa}__account-id`,Gg=`${Aa}__account-label`,Zg=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:Gg,children:i.item.name}),c("span",{className:Yg,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=Zg,{getTimezoneTime:Jg,getUsedTimezone:Vg}=(()=>{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}`}`,_=em(m).replace(e,"");return[d,_]},getUsedTimezone:i=>(n.tz=i,n.tz.current)}})(),Qg=({timezone:t,withClock:e=!1}=F)=>{const n=y(()=>jt(e),[e]),s=y(()=>Vg(t),[t]),r=W(st),[i,o]=$(Date.now()),[a,l]=y(()=>Jg(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}},Xg=Qg,Kg=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)}})})}},qg=(t,e)=>n=>X(n)?n.call(t,e):n,tI=t=>!le(t,"offsets"),eI=t=>le(t,"from"),wi=({now:t})=>t,nI=(()=>{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{}},sI=(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,...Kg(r)}),l=qg(n,a);let{from:u,to:m,now:d}=F;const _=I=>{d=Ln(I??Date.now())??d;t:{if(tI(n)){u=Ln(l(n.from))??d,m=Ln(l(n.to))??d;break t}let g,S,p;(p=eI(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=sI,rI=/^(\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)),iI=ji(t=>t.setMonth(0,1)),Du=ji((t,e)=>{const n=aI(t.getDay(),e??0);return t.setDate(t.getDate()-n)}),oI=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=oI(i)?29:28;break;case 3:case 5:case 8:case 10:o=30;break}return[o,r,i]},aI=(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),cI=(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=cI(t,{...Dl,...Fo,timeZone:e,hour12:!1}),[,s="",r="",i="",o="",a="",l="",u=""]=n.match(rI)??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,lI=nI(7),uI=Eu(0,6,Na),dI=(t=0)=>{const e=~~hn(0,t,1/0)||0;return(n=Na)=>{const s=e?{offsets:lI}:{to:wi},r=uI(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=dI,hI=Object.freeze([0,1,0,0,0,0,-1]),mI=(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:hI}:{to:wi}})},bu=mI,fI=bu(1),_I=fI,gI=365,II=1,pI=1,yI=Eu(II,gI,pI),SI=t=>{const e=yI(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=SI,AI=Ou(1),TI=AI,NI=bu(0),LI=NI,EI=Ou(0),MI=EI,CI=xi({from:({now:t,timezone:e})=>iI(t,e),to:wi}),DI=CI,OI=()=>Object.freeze({"rangePreset.last7Days":Cc(7),"rangePreset.last30Days":Cc(30),"rangePreset.thisWeek":MI(),"rangePreset.lastWeek":TI(),"rangePreset.thisMonth":LI(),"rangePreset.lastMonth":_I(),"rangePreset.yearToDate":DI()}),bI=({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}},vI=({calendarRef:t,onTimeRangeSelected:e,timestamp:n,...s})=>{const{customSelection:r,from:i,onSelection:o,options:a,selectedOption:l,to:u}=bI(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})},RI=vI,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",wI=(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},xI=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=wI(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})})()})}),jI=Et(xI,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",PI=(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},kI=({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=PI(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})})},WI=Et(kI,Yr({block:Yr.exclude,flags:t=>+t}));const BI=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(WI,{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(jI,{ref:r,grid:s,block:i,prepare:n,cell:u,onlyCellsWithin:e,row:a,...l},`${i.month}:${l.timestamp}`))},`${i.month}:${a}`))})]})]},i.datetime))})),zI=Et(BI),Jr=864e5,FI=["narrow","short","long"],Pu=[0,1,6],Bn=[1,2,3,4,6,12],Dc=42,$I=[0,1],Ea=Symbol(),Ma=Symbol(),Ca=Symbol(),Oc=[Ca,Ma,Ea],Ke=Symbol(),xn=Symbol(),jn=Symbol(),UI=[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]},HI=t=>Bn[Math.max(Bn.indexOf(t),0)],wc=(t=0)=>Object.freeze($I.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(),YI=()=>Pi(Date.now(),Da),GI=()=>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 ZI=(()=>{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=ZI,JI=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)},VI=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(VI,t),{get:JI(e),set:io}),QI=(()=>{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=QI;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)&&HI(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 XI 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 FI)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 KI=(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 XI},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(UI,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 qI=(()=>Object.defineProperties(e=>{const{grid:n,kill:s}=new KI;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:YI},UNTIL_NOW:{get:GI}})}}))(),he=qI,t0=({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))}),e0=Et(t0),n0=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]))},s0=n0,r0=({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=s0(N((v,Q)=>{Q instanceof Element&&Q.removeAttribute("aria-selected"),v instanceof Element&&v.setAttribute("aria-selected","true")},[]));return gm(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}},i0=r0,o0=Is((t,e)=>{const n=i0(t,e),s=n.grid.config();return c("div",{role:"none",children:[c(e0,{config:s,grid:n.grid,renderer:t.renderControl}),c(zI,{ref:n.cursorElementRef,config:s,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:t.onlyCellsWithin,prepare:t.prepare})]})}),a0=Et(o0),c0=(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]},l0=c0,u0=t=>{const{i18n:e}=V();return l0(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]))},d0=u0;const h0=Is((t,e)=>{const{i18n:n}=V(),[s,r]=d0(t.renderControl),[i,o]=$(performance.now()),a=y(()=>Ye(t.showTimezoneInfo),[t.showTimezoneInfo]),{clockTime:l,GMTOffset:u}=Xg({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(RI,{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(a0,{...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)})]})}),m0=h0;const f0="adyen-pe-filter-button";function _0({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,f0,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 g0=Zt(_0);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),I0=Is(function(e,n){return c(jo,{classNameModifiers:e.classNameModifiers,...e,ref:n,"aria-required":e.required,type:"text"})}),p0=t=>!t||qd(t),y0=(()=>{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(I0,{name:s,value:o,onInput:l})};return e=>c(t,{...e})})(),S0=({render:t,...e})=>{var Q;const n=ft(mt.down.xs),[s,r]=_e(!1),[i,o]=_e(!1),a=y(()=>e.isValueEmpty??p0,[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??y0,[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(g0,{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(S0);var Ps=(t=>(t.FROM="from",t.TO="to",t))(Ps||{});const A0={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""}},T0=(()=>{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(m0,{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})})(),N0=(t,e,n)=>t.formatRange(e,n);function L0({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={...A0,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?N0(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:T0,selectedPresetOption:s,value:ud(i,o,e,n),withContentPadding:!1})}const E0=({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(L0,{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=E0,M0=({...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"})}),C0=M0;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(C0,{})})}):null,D0=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=D0;function O0(t){return"callback"in t}function dd(t){const[e,n]=$(null),s=N(o=>{var a;return o&&O0(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]),b0=100,ks=10,Po=t=>{const e=~~t;return e===t&&e>0?Math.min(e,b0):Math.max(e,0)},v0=(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}},R0=({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=v0(n.current,o)}}catch{}return s.current=o},[r,t]),limitOptions:r}},w0=R0,x0=t=>{const e=W(!1),n=y(()=>t,[t]);return B(()=>(e.current=!0,()=>{e.current=!1,n&&n()}),[n]),e},ja=x0,j0=(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=j0,P0=t=>Gt(t.next),k0=t=>Gt(t.prev),W0=(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)=>{P0(d)&&a(d.next,u+1),k0(d)&&a(d.prev,u-1)}}},[]);return hd(n,t,e)},B0=W0,z0=t=>t.next,F0=(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)=>{z0(m)&&m.next&&(s=Math.max(s,l+1))}}},[]);return hd(n,t,e)},$0=F0,U0=(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}},H0=U0,Y0=(t=F,e)=>{const{canResetState:n,defaultState:s,resetState:r,state:i,updateState:o}=H0(t,e);return{canResetFilters:n,defaultFilters:s,filters:i,resetFilters:r,updateFilters:o}},G0=Y0;var ko=(t=>(t.NEXT="next",t.PREV="prev",t))(ko||{}),Pa=(t=>(t.CURSOR="cursor",t.OFFSET="offset",t))(Pa||{});const Z0=["hasNext","hasPrevious"],md=t=>{const e=Object.getOwnPropertyNames(t);return!Z0.some(n=>e.includes(n))},J0=(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")},V0=(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")},Q0=({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=G0(n,s),{limit:M,limitOptions:R}=w0({preferredLimit:S,preferredLimitOptions:l}),{defaultFilters:C,filters:k,updateFilters:v,...Q}=P,[Y,nt]=y(()=>o===Pa.CURSOR?[J0,B0]:[V0,$0],[]),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}},X0=Q0,K0=t=>X0({...t,pagination:Pa.CURSOR}),ka=K0;const q0="adyen-pe-data-overview-header",Wa=({baseClassName:t=q0,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})]})},tp="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",ep=fn+"--hidden",fd=fn+"--overlay",to=fd,Br=ki+"__content",Fc=Br+"--expandable",$c=ki+"__chevron",np="adyen-pe-base-button";function sp({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"]:[]],np,m,e);return c("button",{className:d,type:s,disabled:t,onClick:_,ref:l,...a,children:r})}const Uc=Zt(sp),rp=({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,[ep]:!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=rp,Ba="adyen-pe-amount-skeleton",ip=Ba+"--has-margin",op=Ba+"--loading";const ap=({hasMargin:t=!1,isLoading:e=!1,width:n})=>c("span",{className:z(Ba,{[op]:e,[ip]:t}),style:{width:n}}),cp=ap,In="adyen-pe-summary-item",gd=In+"__label-container",lp=gd+"--loading",up=In+"--body",Id=In+"__label",dp=In+"__placeholder",hp=In+"__amount",Hc=Zt(({config:t,i18n:e,isSkeletonVisible:n,className:s,...r},i)=>c("span",{className:z(gd,s,{[lp]: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,{[up]:!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(cp,{isLoading:r,hasMargin:_.hasSkeletonMargin,width:_.skeletonWidth+"px"}):a?c("span",{className:z([In,dp])}):c("div",{ref:_.ref,style:u(f),children:c(U,{variant:d(_,g),className:z({[Id]:_.valueHasLabelStyle,[hp]:!_.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 mp="adyen-pe-base-list",yd=({children:t})=>c("ul",{className:mp,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))})})}),fp=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:tp,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})})}),_p=fp,gp="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})},Ip=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:gp,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))})})})}),pp=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=pp,yp=t=>Object.freeze(t.map(e=>({id:e,name:e}))),Sp=({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&&yp(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=Sp,Ap=[G.CURRENCIES,G.CATEGORIES,G.STATUSES],zr=Object.freeze(Object.fromEntries(Ap.map(t=>[t,""]))),Tp=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],Np=["Booked","Pending","Reversed"],Lp=t=>{const e=OI(),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}},Ep=(t,e)=>{const[n,s]=$(Date.now()),r=Lp(t),i=W(r),o=N(()=>s(Date.now()),[s]);return B(()=>{o()},[e,o]),{defaultParams:i,nowTimestamp:n,refreshNowTimestamp:o}},za=Ep,Mp=(t,e)=>{const n=no({filterParam:G.CATEGORIES,filterValues:Tp,defaultFilters:zr,...t}),s=no({filterParam:G.STATUSES,filterValues:Np,defaultFilters:zr,...t}),r=no({filterParam:G.CURRENCIES,filterValues:e,defaultFilters:zr,...t});return{categoriesFilter:n,currenciesFilter:r,statusesFilter:s}},Cp=Mp;const Qr=1e5,Dp=({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")})]})]})},Op=({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:Dp})},Ad="adyen-pe-transactions",Td=`${Ad}-overview`,bp=`${Ad}-details`,Nd=`${Td}__summary`,Jc=`${Nd}-item`,vp=24,Rp=({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 wp=({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}=Cp({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()-vp),Bt.toString()},[p]),et=N(({records:Bt,retrievedData:Ot})=>Bt.map(Nn=>({...Ot.find(Pd=>Pd.id===Nn.id),...Nn})),[]),{customRecords:ut,loadingCustomRecords:dt}=Rp({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(Op,{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(_p,{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(Ip,{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:bp,children:c(Pg,{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})})]})},xp="adyen-pe-transactions-overview-container";function jp({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:xp,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(wp,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}const Pp=({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},kp=Pp;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 Wp=Ld;class Bp extends Wp{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(Sm,{session:n.session,children:c(kp,{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=Bp;class Ed extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(jp,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Ed,"type","transactions");const zp=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 Fp=Md,$p="adyen-pe-payouts-overview",Up="adyen-pe-payouts-details",Hp=new Date("2024-04-16T00:00:00.000Z").toString(),Cd="adyen-pe-payouts-table",Yp=`${Cd}__net-payout`;const Dd=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],Gp=["createdAt",...Dd],Zp=t=>Dd.includes(t),Jp=({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(Zp(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:Gp,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,qf)}):u(p,t_):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({[`${Yp}--strong`]:!_}),children:l.amount(p.value,p.currency,{hideCurrency:_})})},children:i&&c(Je.Footer,{children:c(Ia,{...a})})})})};const Vp=({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:$p,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:Hp,timezone:"UTC",updateFilters:Y})]}),c(Lu,{className:Up,onContactSupport:a,selectedDetail:kt,resetDetails:_t,children:c(Jp,{loading:M||o||!e,data:v,showPagination:!0,onRowClick:At,showDetails:i,limit:C,limitOptions:k,onContactSupport:a,onLimitSelection:nt,error:P,...tt})})]})},Qp="adyen-pe-payouts-overview-container";function Xp({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:Qp,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(Vp,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}class Od 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(Od,"type","payouts");const Kp=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 qp=bd,ty=(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}},ey=ty,ny=({...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"})}),sy=ny;function ry({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(sy,{})}),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 iy=({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=iy,oy=({...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=oy,ay=(t,e,n)=>{const s=ue().endpoints[t];return Ar({fetchOptions:{enabled:!!s&&n,keepPrevData:!0},queryFn:async()=>s(F,{...e})})},cy=ay;function ly({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 uy({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}=cy(n,s,l);B(()=>{l&&u(!1)},[l]),B(()=>{d&&ly(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 dy=({...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"})]}),hy=dy,my=1e3,Rd="adyen-pe-reports-table",wd=`${Rd}-date-report-type`,fy=`${wd}--date`;const _y=["createdAt","dateAndReportType","reportType","reportFile"],gy=({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}=ey(my),[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(()=>_y.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(hy,{}),[]),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(ry,{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:fy,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(uy,{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})})})]})},Iy="adyen-pe-reports-overview",py=new Date("2024-04-16T00:00:00.000Z").toString();const yy=({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:Iy,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:py,timezone:"UTC",updateFilters:v})]}),c(gy,{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})]})},Sy="adyen-pe-reports-overview-container";function Ay({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:Sy,errorMessage:"weCouldNotLoadTheReportsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(yy,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}class xd extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(Ay,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>{this.componentRef=n}}));this.componentToRender=this.componentToRender.bind(this)}}j(xd,"type","reports");const Ty=xd;async function Ny(t){return await new vl(t).initialize()}exports.AdyenPlatformExperience=Ny;exports.Core=vl;exports.PayoutDetails=qp;exports.PayoutsOverview=Kp;exports.ReportsOverview=Ty;exports.TransactionDetails=Fp;exports.TransactionsOverview=zp;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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-17716b7b.cjs");require("classnames");exports.AdyenPlatformExperience=e.AdyenPlatformExperience;exports.CapitalOffer=e.CapitalOfferElement;exports.CapitalOverview=e.CapitalOverviewElement;exports.Core=e.Core;exports.PayoutDetails=e.PayoutElement;exports.PayoutsOverview=e.PayoutsElement;exports.ReportsOverview=e.ReportsElement;exports.TransactionDetails=e.TransactionElement;exports.TransactionsOverview=e.TransactionsElement;exports.all_locales=e.all_locales;exports.da_DK=e.da_DK;exports.de_DE=e.de_DE;exports.en_US=e.en_US;exports.es_ES=e.es_ES;exports.fi_FI=e.fi_FI;exports.fr_FR=e.fr_FR;exports.it_IT=e.it_IT;exports.nl_NL=e.nl_NL;exports.no_NO=e.no_NO;exports.pt_BR=e.pt_BR;exports.sv_SE=e.sv_SE;
12
2
  //# sourceMappingURL=index.js.map