@adyen/adyen-platform-experience-web 1.2.0 → 1.3.1

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 (606) hide show
  1. package/dist/adyen-platform-experience-web.css +1 -0
  2. package/dist/angle-right-reGJ7jfy.cjs +2 -0
  3. package/dist/{angle-right-1899f206.cjs.map → angle-right-reGJ7jfy.cjs.map} +1 -1
  4. package/dist/checkmark-DLQ0eQ9B.cjs +2 -0
  5. package/dist/{checkmark-9399af30.cjs.map → checkmark-DLQ0eQ9B.cjs.map} +1 -1
  6. package/dist/checkmark-circle-fill-daKF6pt4.cjs +2 -0
  7. package/dist/{checkmark-circle-fill-edd7d360.cjs.map → checkmark-circle-fill-daKF6pt4.cjs.map} +1 -1
  8. package/dist/checkmark-square-fill-B6wYCtwy.cjs +2 -0
  9. package/dist/{checkmark-square-fill-4f33ffa1.cjs.map → checkmark-square-fill-B6wYCtwy.cjs.map} +1 -1
  10. package/dist/chevron-down-DN0sbcES.cjs +2 -0
  11. package/dist/{chevron-down-2eec7c98.cjs.map → chevron-down-DN0sbcES.cjs.map} +1 -1
  12. package/dist/chevron-left-DQy9RoLd.cjs +2 -0
  13. package/dist/{chevron-left-20950420.cjs.map → chevron-left-DQy9RoLd.cjs.map} +1 -1
  14. package/dist/chevron-right-C1v8rslw.cjs +2 -0
  15. package/dist/{chevron-right-a975d4ef.cjs.map → chevron-right-C1v8rslw.cjs.map} +1 -1
  16. package/dist/chevron-up-DLQHTfYo.cjs +2 -0
  17. package/dist/{chevron-up-ad09fd0d.cjs.map → chevron-up-DLQHTfYo.cjs.map} +1 -1
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/copy-BAyT_BYn.cjs +2 -0
  20. package/dist/{copy-969cde48.cjs.map → copy-BAyT_BYn.cjs.map} +1 -1
  21. package/dist/cross-8jn1CRBO.cjs +2 -0
  22. package/dist/{cross-6133edca.cjs.map → cross-8jn1CRBO.cjs.map} +1 -1
  23. package/dist/cross-circle-fill-DUcHCmLb.cjs +2 -0
  24. package/dist/{cross-circle-fill-afd9ea6e.cjs.map → cross-circle-fill-DUcHCmLb.cjs.map} +1 -1
  25. package/dist/da-DK-UDr4zLEm.cjs +2 -0
  26. package/dist/da-DK-UDr4zLEm.cjs.map +1 -0
  27. package/dist/de-DE-CRXo3Lip.cjs +2 -0
  28. package/dist/de-DE-CRXo3Lip.cjs.map +1 -0
  29. package/dist/download-BwO4dcZi.cjs +2 -0
  30. package/dist/{download-ffe5624f.cjs.map → download-BwO4dcZi.cjs.map} +1 -1
  31. package/dist/es/components/external/BaseElement.js +17 -20
  32. package/dist/es/components/external/CapitalOffer/CapitalOfferElement.js +13 -14
  33. package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +53 -46
  34. package/dist/es/components/external/CapitalOffer/components/CapitalOffer/constants.js +2 -1
  35. package/dist/es/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.js +43 -0
  36. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +22 -22
  37. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +57 -55
  38. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/constants.js +4 -0
  39. package/dist/es/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.js +21 -19
  40. package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
  41. package/dist/es/components/external/CapitalOverview/CapitalOverviewElement.js +24 -20
  42. package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +83 -63
  43. package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +17 -17
  44. package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +17 -18
  45. package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +73 -71
  46. package/dist/es/components/external/CapitalOverview/components/GrantItem/constants.js +0 -1
  47. package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +15 -15
  48. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +5 -5
  49. package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +26 -19
  50. package/dist/es/components/external/CapitalOverview/components/PreQualifiedIntro.js +12 -10
  51. package/dist/es/components/external/CapitalOverview/components/Unqualified.js +3 -3
  52. package/dist/es/components/external/PayoutDetails/PayoutDetails.js +12 -13
  53. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +45 -40
  54. package/dist/es/components/external/PayoutDetails/components/constants.js +9 -8
  55. package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +9 -10
  56. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +22 -22
  57. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +8 -8
  58. package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +16 -17
  59. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +33 -33
  60. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +16 -16
  61. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -16
  62. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +1 -1
  63. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +16 -17
  64. package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +13 -14
  65. package/dist/es/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.js +3 -3
  66. package/dist/es/components/external/TransactionDetails/components/details/TransactionStatusBox.js +12 -12
  67. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +5 -5
  68. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +17 -17
  69. package/dist/es/components/external/TransactionDetails/context/details/context.js +27 -29
  70. package/dist/es/components/external/TransactionDetails/context/refund/context.js +20 -18
  71. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.js +2 -0
  72. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +1 -2
  73. package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +27 -27
  74. package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +21 -21
  75. package/dist/es/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js +25 -25
  76. package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +14 -15
  77. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +5 -5
  78. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +14 -16
  79. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +9 -9
  80. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +12 -12
  81. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +2 -2
  82. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +6 -6
  83. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +34 -34
  84. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +42 -42
  85. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +12 -12
  86. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +11 -11
  87. package/dist/es/components/external/TransactionsOverview/components/utils.js +4 -4
  88. package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +14 -14
  89. package/dist/es/components/external/UIElement/UIElement.js +6 -7
  90. package/dist/es/components/internal/Accordion/Accordion.js +1 -1
  91. package/dist/es/components/internal/Alert/Alert.js +8 -8
  92. package/dist/es/components/internal/Alert/AlertIcon.js +1 -1
  93. package/dist/es/components/internal/AnchorButton/AnchorButton.js +22 -0
  94. package/dist/es/components/internal/BaseButton/BaseButton.js +19 -18
  95. package/dist/es/components/internal/BaseList/BaseList.js +1 -1
  96. package/dist/es/components/internal/Button/Button.js +20 -55
  97. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +1 -1
  98. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +1 -1
  99. package/dist/es/components/internal/Button/DownloadButton/useDownload.js +7 -7
  100. package/dist/es/components/internal/Button/hooks/useButton.js +40 -13
  101. package/dist/es/components/internal/Calendar/Calendar.js +1 -1
  102. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +259 -295
  103. package/dist/es/components/internal/Calendar/calendar/facade/index.js +14 -14
  104. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -15
  105. package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +1 -2
  106. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +92 -100
  107. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +180 -194
  108. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +18 -18
  109. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +2 -2
  110. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +5 -5
  111. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +2 -2
  112. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +8 -8
  113. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +11 -11
  114. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +2 -2
  115. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +2 -2
  116. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +5 -5
  117. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +1 -1
  118. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +22 -26
  119. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +5 -5
  120. package/dist/es/components/internal/Calendar/calendar/utils.js +19 -20
  121. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +1 -1
  122. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +5 -5
  123. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +16 -17
  124. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +26 -27
  125. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +19 -21
  126. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +9 -9
  127. package/dist/es/components/internal/CapitalHeader/CapitalHeader.js +16 -4
  128. package/dist/es/components/internal/CapitalHeader/constants.js +7 -0
  129. package/dist/es/components/internal/CapitalHeader/helpers.js +34 -0
  130. package/dist/es/components/internal/CapitalSlider/CapitalSlider.js +5 -5
  131. package/dist/es/components/internal/Card/Card.js +20 -20
  132. package/dist/es/components/internal/CopyText/CopyText.js +11 -11
  133. package/dist/es/components/internal/DataGrid/DataGrid.js +5 -5
  134. package/dist/es/components/internal/DataGrid/DataGridCell.js +2 -2
  135. package/dist/es/components/internal/DataGrid/components/Icon.js +3 -3
  136. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +4 -4
  137. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +9 -9
  138. package/dist/es/components/internal/DataGrid/components/TableCells.js +7 -7
  139. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +1 -2
  140. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
  141. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +18 -18
  142. package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +8 -8
  143. package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +5 -5
  144. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +1 -1
  145. package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +9 -9
  146. package/dist/es/components/internal/DatePicker/DatePicker.js +13 -13
  147. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +8 -8
  148. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +25 -25
  149. package/dist/es/components/internal/Divider/Divider.js +1 -1
  150. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +7 -7
  151. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +60 -56
  152. package/dist/es/components/internal/ExpandableCard/constants.js +11 -9
  153. package/dist/es/components/internal/FilterBar/FilterBar.js +19 -19
  154. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +14 -14
  155. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +23 -23
  156. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
  157. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +16 -16
  158. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +14 -14
  159. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +5 -8
  160. package/dist/es/components/internal/FormFields/InputBase.js +23 -23
  161. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +20 -20
  162. package/dist/es/components/internal/FormFields/Select/Select.js +22 -24
  163. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +36 -36
  164. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +8 -8
  165. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +7 -7
  166. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +8 -10
  167. package/dist/es/components/internal/Header/Header.js +24 -16
  168. package/dist/es/components/internal/Icon/Icon.js +5 -5
  169. package/dist/es/components/internal/Img/Img.js +1 -1
  170. package/dist/es/components/internal/InfoBox/InfoBox.js +5 -5
  171. package/dist/es/components/internal/Modal/Modal.js +8 -8
  172. package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +1 -1
  173. package/dist/es/components/internal/Pagination/Pagination.js +3 -3
  174. package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +5 -5
  175. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +15 -15
  176. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +7 -7
  177. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +39 -46
  178. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +6 -8
  179. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +6 -6
  180. package/dist/es/components/internal/Pagination/hooks/usePagination.js +28 -31
  181. package/dist/es/components/internal/Popover/Popover.js +12 -14
  182. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +2 -2
  183. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +1 -1
  184. package/dist/es/components/internal/Popover/utils/popoverUtil.js +1 -1
  185. package/dist/es/components/internal/Popover/utils/utils.js +8 -8
  186. package/dist/es/components/internal/ProgressBar/ProgressBar.js +15 -15
  187. package/dist/es/components/internal/SVGIcons/CheckedBox.js +5 -5
  188. package/dist/es/components/internal/SVGIcons/Checkmark.js +4 -4
  189. package/dist/es/components/internal/SVGIcons/ChevronDown.js +7 -7
  190. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +5 -5
  191. package/dist/es/components/internal/SVGIcons/ChevronRight.js +6 -6
  192. package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
  193. package/dist/es/components/internal/SVGIcons/CloseCircle.js +4 -4
  194. package/dist/es/components/internal/SVGIcons/Download.js +3 -3
  195. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +5 -5
  196. package/dist/es/components/internal/SVGIcons/Warning.js +3 -3
  197. package/dist/es/components/internal/Slider/Slider.js +1 -1
  198. package/dist/es/components/internal/Slider/calculateProgress.js +2 -4
  199. package/dist/es/components/internal/Spinner/Spinner.js +3 -3
  200. package/dist/es/components/internal/StructuredList/StructuredList.js +1 -1
  201. package/dist/es/components/internal/Tabs/Tabs.js +12 -13
  202. package/dist/es/components/internal/Tag/Tag.js +1 -1
  203. package/dist/es/components/internal/Tooltip/Tooltip.js +10 -10
  204. package/dist/es/components/internal/Translation/Translation.js +33 -0
  205. package/dist/es/components/internal/Typography/Typography.js +6 -6
  206. package/dist/es/components/utils/capital/getCapitalErrorMessage.js +8 -6
  207. package/dist/es/components/utils/getCommonErrorCode.js +1 -2
  208. package/dist/es/components/utils/getErrorMessage.js +4 -6
  209. package/dist/es/constants/dateFormats.js +3 -3
  210. package/dist/es/core/ConfigContext/context.js +40 -0
  211. package/dist/es/core/{Auth → ConfigContext}/session/AuthSession.js +38 -38
  212. package/dist/es/core/{Auth → ConfigContext}/session/AuthSessionSpecification.js +24 -26
  213. package/dist/es/core/ConfigContext/session/SetupContext.js +75 -0
  214. package/dist/es/core/{Auth → ConfigContext}/session/constants.js +4 -4
  215. package/dist/es/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.js +4 -4
  216. package/dist/es/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.js +3 -3
  217. package/dist/es/core/ConfigContext/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +10 -0
  218. package/dist/es/core/ConfigContext/session/utils/sessionReady.js +25 -0
  219. package/dist/es/core/Context/CoreProvider.js +10 -10
  220. package/dist/es/core/Context/useCoreContext.js +2 -2
  221. package/dist/es/core/Errors/AdyenPlatformExperienceError.js +10 -11
  222. package/dist/es/core/Http/http.js +1 -0
  223. package/dist/es/core/Http/utils.js +2 -2
  224. package/dist/es/core/Localization/Localization.js +54 -60
  225. package/dist/es/core/Localization/constants/currency-codes.js +2 -2
  226. package/dist/es/core/Localization/constants/currency-decimals.js +2 -2
  227. package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
  228. package/dist/es/core/Localization/datetime/restamper/restamper.js +15 -17
  229. package/dist/es/core/Localization/utils.js +52 -45
  230. package/dist/es/core/core.js +24 -25
  231. package/dist/es/core/utils.js +1 -1
  232. package/dist/es/external/preact/compat/dist/compat.module.js +100 -115
  233. package/dist/es/external/preact/dist/preact.module.js +221 -281
  234. package/dist/es/external/preact/hooks/dist/hooks.module.js +63 -67
  235. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -11
  236. package/dist/es/hooks/element/useDetachedRender.js +12 -12
  237. package/dist/es/hooks/element/useFocusCursor.js +11 -11
  238. package/dist/es/hooks/element/useFocusTrap.js +9 -9
  239. package/dist/es/hooks/element/usePopoverPositioner.js +14 -16
  240. package/dist/es/hooks/element/useUniqueIdentifier.js +12 -12
  241. package/dist/es/hooks/useBalanceAccountSelection.js +11 -11
  242. package/dist/es/hooks/useBalanceAccounts.js +19 -19
  243. package/dist/es/hooks/useBooleanState.js +4 -4
  244. package/dist/es/hooks/useCommitAction/useCommitAction.js +9 -9
  245. package/dist/es/hooks/useDefaultOverviewFilterParams.js +16 -16
  246. package/dist/es/hooks/useFetch.js +23 -25
  247. package/dist/es/hooks/useFreezePeriod.js +6 -6
  248. package/dist/es/hooks/useMounted.js +6 -6
  249. package/dist/es/hooks/useMutation/useMutation.js +2 -2
  250. package/dist/es/hooks/useReactiveState/useReactiveState.js +24 -26
  251. package/dist/es/hooks/useReflex.js +6 -6
  252. package/dist/es/hooks/useTableColumns.js +7 -7
  253. package/dist/es/hooks/useTimezoneAwareDateFormatting.js +3 -3
  254. package/dist/es/images/generic-use-first-touch.svg.js +2 -2
  255. package/dist/es/images/no-data-female.svg.js +2 -2
  256. package/dist/es/images/no-results.svg.js +2 -2
  257. package/dist/es/index.js +33 -33
  258. package/dist/es/primitives/async/abortable/main.js +10 -12
  259. package/dist/es/primitives/auxiliary/errorContainer/main.js +7 -7
  260. package/dist/es/primitives/context/session/SessionContext.js +4 -7
  261. package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
  262. package/dist/es/primitives/context/session/internal/deadline.js +22 -28
  263. package/dist/es/primitives/context/session/internal/refresher.js +10 -14
  264. package/dist/es/primitives/dom/tabbableRoot/tabbable.js +24 -32
  265. package/dist/es/primitives/reactive/eventEmitter/main.js +1 -2
  266. package/dist/es/primitives/reactive/reflex/helpers.js +1 -2
  267. package/dist/es/primitives/reactive/reflex/main.js +24 -27
  268. package/dist/es/primitives/reactive/reflex/register.js +27 -29
  269. package/dist/es/primitives/reactive/watchlist/main.js +22 -25
  270. package/dist/es/primitives/time/clock/main.js +9 -9
  271. package/dist/es/primitives/time/interval/main.js +8 -8
  272. package/dist/es/primitives/time/today/main.js +11 -13
  273. package/dist/es/style/index.scss.js +1 -4
  274. package/dist/es/translations/da-DK.json.js +396 -2
  275. package/dist/es/translations/de-DE.json.js +396 -2
  276. package/dist/es/translations/en-US.json.js +396 -2
  277. package/dist/es/translations/es-ES.json.js +396 -2
  278. package/dist/es/translations/fi-FI.json.js +396 -2
  279. package/dist/es/translations/fr-FR.json.js +396 -2
  280. package/dist/es/translations/it-IT.json.js +396 -2
  281. package/dist/es/translations/nl-NL.json.js +396 -2
  282. package/dist/es/translations/no-NO.json.js +396 -2
  283. package/dist/es/translations/pt-BR.json.js +396 -2
  284. package/dist/es/translations/sv-SE.json.js +396 -2
  285. package/dist/es/utils/abort/internals.js +1 -2
  286. package/dist/es/utils/abort/main.js +21 -24
  287. package/dist/es/utils/collection/main.js +14 -14
  288. package/dist/es/utils/common.js +9 -5
  289. package/dist/es/utils/datetime/main.js +3 -3
  290. package/dist/es/utils/preact/className.js +2 -2
  291. package/dist/es/utils/preact/memoComparator/main.js +1 -2
  292. package/dist/es/utils/random/uniqueId.js +5 -5
  293. package/dist/es/utils/random/uuid.js +1 -1
  294. package/dist/es/utils/struct/main.js +8 -8
  295. package/dist/es/utils/value/is.js +9 -9
  296. package/dist/es-ES-DKE_miHr.cjs +2 -0
  297. package/dist/es-ES-DKE_miHr.cjs.map +1 -0
  298. package/dist/fi-FI-MQMNSR--.cjs +2 -0
  299. package/dist/fi-FI-MQMNSR--.cjs.map +1 -0
  300. package/dist/filter-DGCUlKbX.cjs +2 -0
  301. package/dist/{filter-9a3e4c7a.cjs.map → filter-DGCUlKbX.cjs.map} +1 -1
  302. package/dist/fr-FR-Bq797--M.cjs +2 -0
  303. package/dist/fr-FR-Bq797--M.cjs.map +1 -0
  304. package/dist/index-BU9H-9Gn.cjs +12 -0
  305. package/dist/index-BU9H-9Gn.cjs.map +1 -0
  306. package/dist/info-filled-y_-s_7-J.cjs +2 -0
  307. package/dist/{info-filled-7e7648a0.cjs.map → info-filled-y_-s_7-J.cjs.map} +1 -1
  308. package/dist/it-IT-P4aG92g4.cjs +2 -0
  309. package/dist/it-IT-P4aG92g4.cjs.map +1 -0
  310. package/dist/minus-circle-outline-BombUmpi.cjs +2 -0
  311. package/dist/{minus-circle-outline-0f20287b.cjs.map → minus-circle-outline-BombUmpi.cjs.map} +1 -1
  312. package/dist/nl-NL-CkNmbOjk.cjs +2 -0
  313. package/dist/nl-NL-CkNmbOjk.cjs.map +1 -0
  314. package/dist/no-NO-Cb48UzO1.cjs +2 -0
  315. package/dist/no-NO-Cb48UzO1.cjs.map +1 -0
  316. package/dist/plus-circle-outline-2EQEIXAM.cjs +2 -0
  317. package/dist/{plus-circle-outline-58879e3c.cjs.map → plus-circle-outline-2EQEIXAM.cjs.map} +1 -1
  318. package/dist/pt-BR-7QdWAx4z.cjs +2 -0
  319. package/dist/pt-BR-7QdWAx4z.cjs.map +1 -0
  320. package/dist/square-Ds2_OrAo.cjs +2 -0
  321. package/dist/{square-a26e52f2.cjs.map → square-Ds2_OrAo.cjs.map} +1 -1
  322. package/dist/sv-SE-DDU8uUdf.cjs +2 -0
  323. package/dist/sv-SE-DDU8uUdf.cjs.map +1 -0
  324. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts +1 -0
  325. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts.map +1 -1
  326. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts +1 -0
  327. package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts.map +1 -1
  328. package/dist/types/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.d.ts +3 -0
  329. package/dist/types/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.d.ts.map +1 -0
  330. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
  331. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/constants.d.ts +2 -0
  332. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/constants.d.ts.map +1 -0
  333. package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts +2 -1
  334. package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts.map +1 -1
  335. package/dist/types/components/external/CapitalOverview/CapitalOverviewElement.d.ts.map +1 -1
  336. package/dist/types/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.d.ts.map +1 -1
  337. package/dist/types/components/external/CapitalOverview/components/GrantDetails/GrantDetails.d.ts.map +1 -1
  338. package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -1
  339. package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts +0 -1
  340. package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts.map +1 -1
  341. package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts +3 -3
  342. package/dist/types/components/external/CapitalOverview/components/PreQualified/PreQualified.d.ts.map +1 -1
  343. package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts +3 -3
  344. package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts.map +1 -1
  345. package/dist/types/components/external/CapitalOverview/types.d.ts +1 -1
  346. package/dist/types/components/external/CapitalOverview/types.d.ts.map +1 -1
  347. package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +1 -0
  348. package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
  349. package/dist/types/components/external/PayoutDetails/components/constants.d.ts +1 -0
  350. package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
  351. package/dist/types/components/external/TransactionDetails/context/refund/context.d.ts.map +1 -1
  352. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts +1 -1
  353. package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts.map +1 -1
  354. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts +1 -0
  355. package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts.map +1 -1
  356. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
  357. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
  358. package/dist/types/components/internal/AnchorButton/AnchorButton.d.ts +7 -0
  359. package/dist/types/components/internal/AnchorButton/AnchorButton.d.ts.map +1 -0
  360. package/dist/types/components/internal/BaseButton/BaseButton.d.ts +1 -1
  361. package/dist/types/components/internal/BaseButton/BaseButton.d.ts.map +1 -1
  362. package/dist/types/components/internal/BaseButton/types.d.ts +2 -2
  363. package/dist/types/components/internal/BaseButton/types.d.ts.map +1 -1
  364. package/dist/types/components/internal/Button/Button.d.ts +4 -4
  365. package/dist/types/components/internal/Button/Button.d.ts.map +1 -1
  366. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +4 -0
  367. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
  368. package/dist/types/components/internal/Button/hooks/useButton.d.ts +18 -1
  369. package/dist/types/components/internal/Button/hooks/useButton.d.ts.map +1 -1
  370. package/dist/types/components/internal/Button/types.d.ts +9 -3
  371. package/dist/types/components/internal/Button/types.d.ts.map +1 -1
  372. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.d.ts +1 -1
  373. package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts +1 -0
  374. package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts.map +1 -1
  375. package/dist/types/components/internal/CapitalHeader/constants.d.ts +9 -0
  376. package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -0
  377. package/dist/types/components/internal/CapitalHeader/helpers.d.ts +5 -0
  378. package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -0
  379. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  380. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts +1 -1
  381. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
  382. package/dist/types/components/internal/ExpandableCard/constants.d.ts +5 -3
  383. package/dist/types/components/internal/ExpandableCard/constants.d.ts.map +1 -1
  384. package/dist/types/components/internal/ExpandableCard/types.d.ts +1 -0
  385. package/dist/types/components/internal/ExpandableCard/types.d.ts.map +1 -1
  386. package/dist/types/components/internal/FilterBar/components/FilterButton/FilterButton.d.ts +1 -1
  387. package/dist/types/components/internal/FilterBar/components/FilterButton/FilterButton.d.ts.map +1 -1
  388. package/dist/types/components/internal/FilterBar/components/FilterButton/types.d.ts +2 -2
  389. package/dist/types/components/internal/FilterBar/components/FilterButton/types.d.ts.map +1 -1
  390. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
  391. package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +1 -1
  392. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +9 -9
  393. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  394. package/dist/types/components/internal/Header/Header.d.ts +6 -0
  395. package/dist/types/components/internal/Header/Header.d.ts.map +1 -1
  396. package/dist/types/components/internal/Pagination/Pagination.d.ts +1 -1
  397. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  398. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
  399. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +1 -1
  400. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
  401. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +1 -1
  402. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
  403. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +1 -1
  404. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +2 -2
  405. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
  406. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +2 -2
  407. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
  408. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +1 -1
  409. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +1 -1
  410. package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +1 -1
  411. package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts.map +1 -1
  412. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
  413. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +1 -1
  414. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
  415. package/dist/types/components/internal/Tabs/Tabs.d.ts.map +1 -1
  416. package/dist/types/components/internal/Translation/Translation.d.ts +5 -0
  417. package/dist/types/components/internal/Translation/Translation.d.ts.map +1 -0
  418. package/dist/types/components/internal/Translation/index.d.ts +3 -0
  419. package/dist/types/components/internal/Translation/index.d.ts.map +1 -0
  420. package/dist/types/components/internal/Translation/types.d.ts +11 -0
  421. package/dist/types/components/internal/Translation/types.d.ts.map +1 -0
  422. package/dist/types/components/utils/capital/getCapitalErrorMessage.d.ts.map +1 -1
  423. package/dist/types/core/{Auth → ConfigContext}/context.d.ts +57 -52
  424. package/dist/types/core/{Auth → ConfigContext}/context.d.ts.map +1 -1
  425. package/dist/types/core/ConfigContext/index.d.ts.map +1 -0
  426. package/dist/types/core/{Auth → ConfigContext}/session/AuthSession.d.ts +106 -96
  427. package/dist/types/core/{Auth → ConfigContext}/session/AuthSession.d.ts.map +1 -1
  428. package/dist/types/core/ConfigContext/session/AuthSessionSpecification.d.ts.map +1 -0
  429. package/dist/types/core/{Auth/session/AuthSetupContext.d.ts → ConfigContext/session/SetupContext.d.ts} +58 -52
  430. package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -0
  431. package/dist/types/core/ConfigContext/session/constants.d.ts.map +1 -0
  432. package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts.map +1 -0
  433. package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts.map +1 -0
  434. package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/index.d.ts.map +1 -0
  435. package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts.map +1 -0
  436. package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/types.d.ts.map +1 -0
  437. package/dist/types/core/ConfigContext/session/utils/sessionReady.d.ts.map +1 -0
  438. package/dist/types/core/{Auth → ConfigContext}/types.d.ts +8 -6
  439. package/dist/types/core/ConfigContext/types.d.ts.map +1 -0
  440. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  441. package/dist/types/core/core.d.ts +1 -1
  442. package/dist/types/core/core.d.ts.map +1 -1
  443. package/dist/types/core/types.d.ts +1 -1
  444. package/dist/types/core/types.d.ts.map +1 -1
  445. package/dist/types/translations/index.d.ts +10 -2
  446. package/dist/types/translations/index.d.ts.map +1 -1
  447. package/dist/types/types/api/models/index.d.ts +1 -0
  448. package/dist/types/types/api/models/index.d.ts.map +1 -1
  449. package/dist/types/types/api/models/setup.d.ts +3 -0
  450. package/dist/types/types/api/models/setup.d.ts.map +1 -0
  451. package/dist/types/types/api/resources/PayoutsResource.d.ts +1 -0
  452. package/dist/types/types/api/resources/PayoutsResource.d.ts.map +1 -1
  453. package/dist/types/types/api/resources/ReportsResource.d.ts +7 -0
  454. package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
  455. package/dist/types/types/api/resources/SetupResource.d.ts +18 -6
  456. package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
  457. package/dist/types/types/api/resources/TransactionsResource.d.ts +48 -47
  458. package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
  459. package/dist/types/utils/common.d.ts +2 -1
  460. package/dist/types/utils/common.d.ts.map +1 -1
  461. package/dist/types/utils/preact/fixedForwardRef.d.ts +2 -2
  462. package/dist/types/utils/preact/fixedForwardRef.d.ts.map +1 -1
  463. package/dist/types/utils/types.d.ts +5 -0
  464. package/dist/types/utils/types.d.ts.map +1 -1
  465. package/dist/warning-CqutbHgk.cjs +2 -0
  466. package/dist/{warning-4d681371.cjs.map → warning-CqutbHgk.cjs.map} +1 -1
  467. package/dist/warning-filled-DL73IbMz.cjs +2 -0
  468. package/dist/{warning-filled-ed9b80d5.cjs.map → warning-filled-DL73IbMz.cjs.map} +1 -1
  469. package/package.json +13 -11
  470. package/dist/angle-right-1899f206.cjs +0 -2
  471. package/dist/checkmark-9399af30.cjs +0 -2
  472. package/dist/checkmark-circle-fill-edd7d360.cjs +0 -2
  473. package/dist/checkmark-square-fill-4f33ffa1.cjs +0 -2
  474. package/dist/chevron-down-2eec7c98.cjs +0 -2
  475. package/dist/chevron-left-20950420.cjs +0 -2
  476. package/dist/chevron-right-a975d4ef.cjs +0 -2
  477. package/dist/chevron-up-ad09fd0d.cjs +0 -2
  478. package/dist/copy-969cde48.cjs +0 -2
  479. package/dist/cross-6133edca.cjs +0 -2
  480. package/dist/cross-circle-fill-afd9ea6e.cjs +0 -2
  481. package/dist/da-DK-a6a8435e.cjs +0 -2
  482. package/dist/da-DK-a6a8435e.cjs.map +0 -1
  483. package/dist/de-DE-d692ac19.cjs +0 -2
  484. package/dist/de-DE-d692ac19.cjs.map +0 -1
  485. package/dist/download-ffe5624f.cjs +0 -2
  486. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.scss.js +0 -4
  487. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.scss.js +0 -4
  488. package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.scss.js +0 -4
  489. package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.scss.js +0 -4
  490. package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.scss.js +0 -4
  491. package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.scss.js +0 -4
  492. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.scss.js +0 -4
  493. package/dist/es/components/external/PayoutDetails/components/PayoutData.scss.js +0 -4
  494. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.scss.js +0 -4
  495. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.scss.js +0 -4
  496. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +0 -4
  497. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +0 -4
  498. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.scss.js +0 -4
  499. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +0 -4
  500. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +0 -4
  501. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +0 -4
  502. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +0 -4
  503. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +0 -4
  504. package/dist/es/components/external/UIElement/UIElement.scss.js +0 -4
  505. package/dist/es/components/internal/Accordion/Accordion.scss.js +0 -4
  506. package/dist/es/components/internal/Alert/Alert.scss.js +0 -4
  507. package/dist/es/components/internal/BaseButton/BaseButton.scss.js +0 -4
  508. package/dist/es/components/internal/BaseList/BaseList.scss.js +0 -4
  509. package/dist/es/components/internal/Button/Button.scss.js +0 -4
  510. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +0 -4
  511. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +0 -4
  512. package/dist/es/components/internal/Calendar/Calendar.scss.js +0 -4
  513. package/dist/es/components/internal/CapitalSlider/CapitalSlider.scss.js +0 -4
  514. package/dist/es/components/internal/Card/Card.scss.js +0 -4
  515. package/dist/es/components/internal/CopyText/CopyText.scss.js +0 -4
  516. package/dist/es/components/internal/DataGrid/DataGrid.scss.js +0 -4
  517. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.scss.js +0 -4
  518. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +0 -4
  519. package/dist/es/components/internal/DatePicker/DatePicker.scss.js +0 -4
  520. package/dist/es/components/internal/Divider/Divider.scss.js +0 -4
  521. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +0 -4
  522. package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +0 -4
  523. package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.js +0 -34
  524. package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.scss.js +0 -4
  525. package/dist/es/components/internal/ExpandableContainer/constants.js +0 -8
  526. package/dist/es/components/internal/FilterBar/FilterBar.scss.js +0 -4
  527. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +0 -4
  528. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +0 -4
  529. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.scss.js +0 -4
  530. package/dist/es/components/internal/FormFields/FormFields.scss.js +0 -4
  531. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.scss.js +0 -4
  532. package/dist/es/components/internal/FormFields/Select/Select.scss.js +0 -4
  533. package/dist/es/components/internal/Header/Header.scss.js +0 -4
  534. package/dist/es/components/internal/Icon/Icon.scss.js +0 -4
  535. package/dist/es/components/internal/Img/Img.scss.js +0 -4
  536. package/dist/es/components/internal/InfoBox/InfoBox.scss.js +0 -4
  537. package/dist/es/components/internal/Modal/Modal.scss.js +0 -4
  538. package/dist/es/components/internal/Modal/ModalContent/ModalContent.scss.js +0 -4
  539. package/dist/es/components/internal/Pagination/Pagination.scss.js +0 -4
  540. package/dist/es/components/internal/Popover/Popover.scss.js +0 -4
  541. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +0 -4
  542. package/dist/es/components/internal/ProgressBar/ProgressBar.scss.js +0 -4
  543. package/dist/es/components/internal/Slider/Slider.scss.js +0 -4
  544. package/dist/es/components/internal/Spinner/Spinner.scss.js +0 -4
  545. package/dist/es/components/internal/StructuredList/StructuredList.scss.js +0 -4
  546. package/dist/es/components/internal/Tabs/Tabs.scss.js +0 -4
  547. package/dist/es/components/internal/Tag/Tag.scss.js +0 -4
  548. package/dist/es/components/internal/Tooltip/Tooltip.scss.js +0 -4
  549. package/dist/es/components/internal/Typography/Typography.scss.js +0 -4
  550. package/dist/es/components/shared.scss.js +0 -4
  551. package/dist/es/core/Auth/context.js +0 -39
  552. package/dist/es/core/Auth/session/AuthSetupContext.js +0 -72
  553. package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +0 -10
  554. package/dist/es/core/Auth/session/utils/sessionReady.js +0 -23
  555. package/dist/es-ES-143780e6.cjs +0 -2
  556. package/dist/es-ES-143780e6.cjs.map +0 -1
  557. package/dist/fi-FI-99b94b3f.cjs +0 -2
  558. package/dist/fi-FI-99b94b3f.cjs.map +0 -1
  559. package/dist/filter-9a3e4c7a.cjs +0 -2
  560. package/dist/fr-FR-e0317359.cjs +0 -2
  561. package/dist/fr-FR-e0317359.cjs.map +0 -1
  562. package/dist/index-17716b7b.cjs +0 -12
  563. package/dist/index-17716b7b.cjs.map +0 -1
  564. package/dist/info-filled-7e7648a0.cjs +0 -2
  565. package/dist/it-IT-1dc05e46.cjs +0 -2
  566. package/dist/it-IT-1dc05e46.cjs.map +0 -1
  567. package/dist/minus-circle-outline-0f20287b.cjs +0 -2
  568. package/dist/nl-NL-40171335.cjs +0 -2
  569. package/dist/nl-NL-40171335.cjs.map +0 -1
  570. package/dist/no-NO-d689e9ff.cjs +0 -2
  571. package/dist/no-NO-d689e9ff.cjs.map +0 -1
  572. package/dist/plus-circle-outline-58879e3c.cjs +0 -2
  573. package/dist/pt-BR-4b1fd7f1.cjs +0 -2
  574. package/dist/pt-BR-4b1fd7f1.cjs.map +0 -1
  575. package/dist/square-a26e52f2.cjs +0 -2
  576. package/dist/style.css +0 -1
  577. package/dist/sv-SE-2f0e50d2.cjs +0 -2
  578. package/dist/sv-SE-2f0e50d2.cjs.map +0 -1
  579. package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts +0 -5
  580. package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts.map +0 -1
  581. package/dist/types/components/internal/ExpandableContainer/constants.d.ts +0 -6
  582. package/dist/types/components/internal/ExpandableContainer/constants.d.ts.map +0 -1
  583. package/dist/types/components/internal/ExpandableContainer/types.d.ts +0 -7
  584. package/dist/types/components/internal/ExpandableContainer/types.d.ts.map +0 -1
  585. package/dist/types/core/Auth/index.d.ts.map +0 -1
  586. package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts.map +0 -1
  587. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +0 -1
  588. package/dist/types/core/Auth/session/constants.d.ts.map +0 -1
  589. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts.map +0 -1
  590. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts.map +0 -1
  591. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/index.d.ts.map +0 -1
  592. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts.map +0 -1
  593. package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/types.d.ts.map +0 -1
  594. package/dist/types/core/Auth/session/utils/sessionReady.d.ts.map +0 -1
  595. package/dist/types/core/Auth/types.d.ts.map +0 -1
  596. package/dist/warning-4d681371.cjs +0 -2
  597. package/dist/warning-filled-ed9b80d5.cjs +0 -2
  598. /package/dist/types/core/{Auth → ConfigContext}/index.d.ts +0 -0
  599. /package/dist/types/core/{Auth → ConfigContext}/session/AuthSessionSpecification.d.ts +0 -0
  600. /package/dist/types/core/{Auth → ConfigContext}/session/constants.d.ts +0 -0
  601. /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts +0 -0
  602. /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts +0 -0
  603. /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/index.d.ts +0 -0
  604. /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts +0 -0
  605. /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/types.d.ts +0 -0
  606. /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionReady.d.ts +0 -0
@@ -0,0 +1,12 @@
1
+ "use strict";var x0=Object.defineProperty;var hc=e=>{throw TypeError(e)};var B0=(e,t,n)=>t in e?x0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>B0(e,typeof t!="symbol"?t+"":t,n),oi=(e,t,n)=>t.has(e)||hc("Cannot "+n);var m=(e,t,n)=>(oi(e,t,"read from private field"),n?n.call(e):t.get(e)),w=(e,t,n)=>t.has(e)?hc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),v=(e,t,n,r)=>(oi(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),U=(e,t,n)=>(oi(e,t,"access private method"),n);var gn=(e,t,n,r)=>({set _(s){v(e,t,s,n)},get _(){return m(e,t,r)}});const x=require("classnames"),Ei="test",$0=e=>{var t;return(t=e==null?void 0:e.replace)==null?void 0:t.call(e,/([^\/])$/,"$1/")},U0=e=>e==null?void 0:e.replace(/^([^\/])/,"/$1"),W0=(()=>{const e={test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"};return t=>e[t??Ei]||e[Ei]})(),xn=Function.prototype.bind.bind(Function.prototype.call),H0=async()=>{},Po=e=>e,ne=()=>{},G0=xn(Object.prototype.toString),Y0=e=>G0(e).slice(8,-1),Bl=e=>(Object.keys(e).forEach(t=>{const n=e[t];n&&typeof n=="object"&&!Object.isFrozen(n)&&Bl(n)}),Object.freeze(e)),Ci=e=>e===!!e,ee=e=>typeof e=="function",io=e=>e===null,Ae=e=>e==null,Mr=e=>typeof e=="number",Mo=e=>Y0(e)==="Object",ot=e=>typeof e=="string",j0=e=>typeof e=="symbol",Z=e=>e===void 0,Et=(e,t,n)=>(Math.min(e,n)!==e&&([e,n]=[n,e]),Math.max(e,Math.min(t,n))),ns=e=>!j0(e)&&e===~~e,Dn=e=>Mr(e)&&1/e===0,$l=(e,t)=>{if(Number.isInteger(e)&&Number.isInteger(t))return e+Math.floor((t-e)/2);throw TypeError(`Expects 2 integer values: [${e}, ${t}]`)},ws=(e,t)=>(e%t+t)%t,fc="abort",z0="signal is aborted without reason",jn=(e,t=e)=>Ci(e)?e:!!t,Pe=e=>e===!0,wt=e=>e!==!1,V0=e=>!1,Ni=e=>!0,W=(e,t=!1)=>({writable:Pe(t),enumerable:!0,value:e}),ae=(e,t=!0)=>({enumerable:wt(t),get:e}),Dt=xn(Object.prototype.hasOwnProperty),Bn=(e,t)=>e===t||!(e===e||t===t);if(!Dt(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...ae(function(){return this.aborted?rs():void 0},!0),configurable:!0})}catch{}Dt(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??rs()});const rs=(e=z0)=>new DOMException(e,"AbortError"),Ul=(e,t)=>{if(!Bn(e.reason,t))try{Object.defineProperty(e,"reason",W(t))}catch{}return e},q0=(e=rs())=>{if("abort"in AbortSignal)return AbortSignal.abort(e);const t=new AbortController,n=Z(e)?rs():e,{signal:r}=t;return t.abort(n),Ul(r,n),r},Fo=e=>{if("any"in AbortSignal)return AbortSignal.any(e);let t=new Set,n=new AbortController;const{signal:r}=n;let s=function(){t.forEach(i=>i.removeEventListener(fc,s)),t.clear();const o=(this==null?void 0:this.reason)??rs();n.abort(o),Ul(r,o),n=t=s=void 0};e:{const o=Symbol("<NIL_EXCEPTION>");let i=o;t:{try{for(const c of e){if(!ks(c))throw new TypeError("Failed to convert value to 'AbortSignal'");if(c.aborted)break t;t.add(c)}}catch(c){i=c;break t}t.forEach(c=>c.addEventListener(fc,s));break e}if(s.call(r),i!==o)throw i}return r},ks=e=>e instanceof AbortSignal,de=Object.freeze([]),$=Object.freeze(Object.create(null)),Lr=Promise.resolve();Promise.race(de);const cn=function(e,...t){return new Promise(n=>n(e.call(this,...t)))},K0=(e,t,n)=>{let r=t.get(e);return Z(r)&&ee(n)&&(Z(r=n(e,t))||t.set(e,r)),r},zr=(e,t=de)=>{const n=`${e||""}`.trim(),r=n?n.split(/(?:\s*,\s*)+/).filter(Po):de;return r.length?r:t},Yr=(e,t,n)=>e.includes(t)?t:Ae(t)?e[0]:e.includes(n)?n:e[0],mc=xn(Array.prototype.some),Wl=function e(t,n,r=new Set){for(const s of n)Array.isArray(s)?e(t,s,r):(t&&r.delete(s),r.add(s));return r};xn(Wl,void 0,!1);xn(Wl,void 0,!0);const Hl=(...e)=>{const[t]=e,r=(e.length>=2?new Date(...e):t instanceof Date?t:new Date(ot(t)||Number.isFinite(t)?t:void 0)).getTime();return Number.isFinite(r)?r:void 0},ss=(()=>{let e=Date.now();return(t="adyen-pe")=>`${t}-${++e}`})(),ta=(()=>{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>e.replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t=="x"?n:n&3|8).toString(16)})})(),os=(e,t=$)=>Mo(e)?e:os(t,$),Fr=xn(Object.create,void 0),Q=xn(Fr,void 0,null),xo=(e=$)=>Object.freeze({...e,defineProperty:Ni,set:Ni}),Z0=e=>e&&(e==null?void 0:e.length)>0?`${e[0].toUpperCase()}${e.slice(1)}`:e,Si=e=>Ae(e)||ot(e)&&/^\s*$/.test(e),X0="/setup",Q0=Pe(void 0),pc=(()=>{let e=0;if(Number.isFinite(e)&&(e=Math.max(0,~~e)))return e})();class vi extends Error{constructor(n,r,s,o){super(s);B(this,"type");B(this,"errorCode");B(this,"requestId");this.type=n,this.name=n,this.errorCode=o,this.requestId=r}}const J0=/^[^]*?filename[^;\n]*=\s*(?:UTF-\d['"]*)?(?:(['"])([^]*?)\1|([^;\n]*))?[^]*?$/;var ao=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.CANCEL="CANCEL",e.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",e.ERROR="ERROR",e.EXPIRED_TOKEN="EXPIRED_TOKEN",e))(ao||{});const e2=e=>{switch(e){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},t2=e=>{var t;return(t=e.headers.get("Content-Type"))==null?void 0:t.split(";",1)[0]},n2=e=>{const n=(e.headers.get("Content-Disposition")??"").replace(J0,"$2$3");return decodeURIComponent(n)},r2=e=>{const{headers:t=[],method:n="GET"}=e;return{method:n,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":e.contentType??"application/json",...t,"SDK-Version":"1.3.1"},redirect:"follow",signal:e.signal,referrerPolicy:"no-referrer-when-downgrade",...n==="POST"&&e.body&&{body:JSON.stringify(e.body)}}};function s2({message:e,level:t,errorCode:n,type:r="NETWORK_ERROR",requestId:s}){switch(t){case"silent":break;case"info":case"warn":console[t](e);break;case"error":default:throw new vi(r,s,e,n)}}function o2(e){return e&&e.errorCode&&e.type&&(e.detail||e.invalidFields)&&e.status}function i2(e){const t=new URLSearchParams;for(const n of Object.keys(e)){const r=e[n];Ae(r)||(Array.isArray(r)?r.forEach(s=>t.append(n,s)):t.set(n,String(r)))}return t}const Gl=e=>{let t,n,r;const s=()=>{if(Z(t))return;const l=t.abort.bind(t);t=void 0,l()},o=()=>(r=new Promise((l,u)=>{if(n.addEventListener("abort",function h(){n.removeEventListener("abort",h),u(e)}),n.aborted)throw e}),r.catch(ne),r),i=()=>(Z(t)&&(t=new AbortController,n=t.signal,r=o()),c),c=Q({abort:W(s),promise:ae(()=>r),reason:W(e),refresh:W(i),signal:ae(()=>n)});return i()},Yl=()=>{let e,t,n;const r=()=>{const o=n??ne,i=new Promise((c,l)=>{n=c,t=l});return o(e=i),s},s=Q({promise:ae(()=>e),refresh:W(r),reject:W(o=>t(o)),resolve:W(o=>n(o))});return r()},Ps=e=>{const t=Gl(),n=Yl();let r;return Object.defineProperties(function(...o){Z(r)?n.refresh():t.abort();const i=cn.call(this,e,t.refresh().signal,...o);return(async()=>{let c=r===(r=i);try{const l=await i.finally(()=>{c=r===i,c&&(r=void 0)});c&&n.resolve(l)}catch(l){c&&n.reject(l)}})(),i},{abort:W(t.abort),promise:ae(()=>n.promise),refresh:W(()=>void n.refresh())})};class a2{constructor(t){B(this,"_endpoints",$);B(this,"_extraConfig",$);B(this,"_revokeEndpointsProxy",ne);B(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(ne)});B(this,"_refreshPromisor",Ps((t,n)=>{const r=ks(n)?Fo([n,t]):t;return this._fetchSetupEndpoint(r)}));this._session=t;let n;this.refresh=r=>(this._refreshPromisor(r).catch(ne),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:s,...o})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(s),this._extraConfig=Bl(o)})))}get endpoints(){return this._endpoints}get extraConfig(){return this._extraConfig}_fetchSetupEndpoint(t){return this._session.http(null,{method:"POST",path:X0,errorLevel:"fatal",loadingContext:this.loadingContext,signal:t})}_getEndpointsProxy(t){const n=new Set(Object.keys(t)),r=Q();return Proxy.revocable($,xo({get:(s,o,i)=>n.has(o)?(r[o]??(r[o]=(()=>{const{method:c="GET",url:l}=t[o];if(!Z(l||void 0))return(...u)=>{const h=this._getHttpOptions(c,l,...u);return this._session.http(this._beforeHttp,h)}})()),r[o]):Reflect.get(s,o,i)}))}_getHttpOptions(t,n,...r){const{loadingContext:s}=this,[o,i]=r,{path:c,query:l}=os(i),u=l&&i2(l);if(Mo(c))for(const h of Object.keys(c))n=n.replace(`{${h}}`,c[h]);return{loadingContext:s,...o,method:t,params:u,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=ne,this._endpoints=$}}const jl=Symbol("Error<SESSION_EXPIRED>"),c2=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),l2=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),u2=Symbol("Error<SESSION_INVALID>"),zl=Symbol("Error<SESSION_REFRESH_ABORTED>"),Bo="_sessionExpired",Vl="_sessionReady",d2="_sessionRefreshed",h2="_sessionRefreshingEnd",f2="_sessionRefreshingStart",ql="_session.deadline",Kl="_session.ready",Zl="_session.refreshingEnd",Xl="_session.refreshingStart",m2=async e=>{const{specification:t}=e.context,n=await cn(async()=>{const r=t.autoRefresh;return ee(r)?r.call(t,e.session):r}).catch(V0);return Pe(n)},p2=e=>{let t=e.context.emitter.on(Bo,()=>s(!1)),n,r=Ps(async(c,l=!1)=>{n=c;const u=Pe(l)||await m2(e);n===c&&u&&e.pending&&!e.refreshing&&e.refresh(n).catch(ne)}),s=(c=!1)=>{e.refreshing||r(c)},o=()=>{t(),r.abort(),r=n=t=void 0,s=o=ne};return Object.defineProperties((c=!1)=>s(c),{destruct:ae(()=>o,!1)})},_c=1e3,_2=2147483647,g2=(e,t=_c,n=!1)=>{var h;let r=new AbortController,s=Et(0,~~t,_2),o=Pe(n);Number.isFinite(s)||(s=_c);const i=((h=document.timeline)==null?void 0:h.currentTime)??performance.now(),c=()=>{r==null||r.abort(),r=void 0},l=d=>{!r||r.signal.aborted||(u(d),e(d))},u=d=>{let p=0;if(!o){const f=d-i,g=Math.round(f/s)*s;p=i+g+s-performance.now()}setTimeout(()=>requestAnimationFrame(l),p)};return u(i),o=!1,Q({cancel:W(c),delay:W(t),signal:W(r.signal)})},y2=e=>{const t={},n=Object.getOwnPropertyDescriptors(e);for(const r of Object.keys(e)){const{get:s,value:o}=n[r];t[r]=ae(s||(ee(o)?o.bind(e):()=>o))}return Q(t)},T2=()=>{const e={idle:null,resume:null},t={};for(const n of Object.keys(e))t[n]={get:()=>e[n]??ne,set:r=>{Ae(r)?e[n]=null:ee(r)&&r!==e[n]&&(e[n]=r)}};return Q(t)},Ql=Symbol("<<UNSUBSCRIBE>>"),$n=e=>e===Ql,Ms=e=>{let t;const n=y2(e),r=T2(),s=new Map,o=new WeakMap,i=()=>Object.freeze({...n}),c=()=>s.size===0,l=h=>{if(c())return;if($n(h)){const p=[];return s.forEach((f,g)=>{p.push(g);const _=o.get(g);for(;f--;)_==null||_()}),p.forEach(f=>f(h)),!0}const d=t;t=i();for(const p of Object.keys(t))if(!Bn(t[p],d[p]))return s.forEach((f,g)=>g(t)),!0;return!1},u=h=>{if(!ee(h))return ne;const d=K0(h,o,()=>{let f=()=>{const g=s.get(h)||0;g===1?(f=void 0,s.delete(h),o.delete(h),c()&&(t=void 0,r.idle())):g>1&&s.set(h,g-1)};return()=>{f==null||f()}}),p=c();return s.set(h,(s.get(h)||0)+1),p&&(t=i(),r.resume()),h(t),d};return Q({idle:ae(c),on:W(r),cancelSubscriptions:W(()=>l(Ql)),requestNotification:W(()=>l()),snapshot:ae(()=>t??i()),subscribe:W(u)})},na=(()=>{let e;const{cancelSubscriptions:t,requestNotification:n,subscribe:r,on:s}=Ms({now:()=>Date.now()});return s.resume=()=>{e=g2(n,1e3,!1)},s.idle=()=>{e==null||e.cancel(),e=void 0},Q({cancelSubscriptions:W(t),subscribe:W(r)})})(),ra=()=>{const e=new class extends EventTarget{},t=(r,...s)=>{const[o]=s;s.length&&Z(o)&&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 i=new CustomEvent(r,Q({bubbles:W(!1),cancelable:W(!1),detail:W(o??null)}));return e.dispatchEvent(i)},n=(r,s)=>{if(!ee(s))return ne;const o=i=>s.call(null,Q({detail:W(i.detail),timeStamp:W(i.timeStamp),type:W(i.type)}));return e.addEventListener(r,o),()=>e.removeEventListener(r,o)};return Q({emit:W(t),on:W(n)})},A2=(e,t)=>{let n,r=1/0,s,o;const i=Gl(),c=ra(),l=()=>{n==null||n.removeEventListener("abort",l),r=1/0,o==null||o(),i.refresh(),c.emit(ql)},u=Ps(async(d,p)=>{s=d;const f=await cn(()=>{const _=t.deadline;return ee(_)?_.call(t,p,d):_}).catch(ne);if(s!==d)return;const g=(Array.isArray(f)?f:[f]).filter(_=>_||_===0);if(g.length>0){let _=!1,A=new Set;for(const T of g)if(ks(T)){if(_=T.aborted)break;A.add(T)}else if(r=Math.min(r,Hl(T)??1/0),_=r<=Date.now())break;_||(_=A.size<1&&!Number.isFinite(r)),_?n??(n=q0()):(n=Fo([...A,i.signal]),n.addEventListener("abort",l),h()),g.length=0,A.clear()}else n=void 0}),h=()=>{if(!Number.isFinite(r))return;let d=na.subscribe(p=>{if($n(p))return l();p.now>=r&&i.abort()});o=()=>{d==null||d(),d=o=void 0}};return Q({elapse:W(i.abort),elapsed:ae(()=>n&&n.aborted),on:W(c.on),refresh:W(u.bind(void 0)),signal:ae(()=>i.signal)})},E2=(e,t)=>{let n=!1,r,s,o=!0,i;const c=Symbol("<next_session>"),l=ra();function u(f){var g;try{(g=t.assert)==null||g.call(t,f)}catch{throw u2}}function h(f){if(!ee(f))throw c2}const d=Ps((f,g)=>{if(!s)s=f;else return p(ks(g)?Fo([g,f]):f)}),p=async f=>{let g=c;try{n=!1,s=f,o&&await(r??(r=(async()=>{await Lr,o=!1,l.emit(Xl)})())),h(t.onRefresh),g=await cn(()=>t.onRefresh(i,f)).finally(()=>{if(f.aborted)throw zl})}finally{if(s===f)try{g!==c&&(u(g),i=g,l.emit(Kl))}finally{r=void 0,o=!0,l.emit(Zl)}}};return e.on(Bo,()=>n=!r),d(),Q({context:W(Q({emitter:W(e),specification:W(t)})),on:W(l.on),pending:ae(()=>n),promise:ae(()=>d.promise),refresh:W(d.bind(void 0)),refreshing:ae(()=>!!r),session:ae(()=>i),signal:ae(()=>s)})};class C2{constructor(t){B(this,"_session");B(this,"_autofresh");B(this,"_deadline");B(this,"_refresher");B(this,"_eventEmitter",ra());this._specification=t,this._deadline=A2(this._eventEmitter,this._specification),this._refresher=E2(this._eventEmitter,this._specification),this._autofresh=p2(this._refresher),this._deadline.on(ql,()=>this._eventEmitter.emit(Bo)),this._refresher.on(Xl,()=>this._eventEmitter.emit(f2)),this._refresher.on(Zl,()=>this._eventEmitter.emit(h2)),this._refresher.on(Kl,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(d2)),this._eventEmitter.emit(Vl)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(t){if(!ee(t))throw l2}async _sessionHttp(t,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(ne);const{signal:r}=this._deadline;return await(t==null?void 0:t(this._session,r,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,r,...n)}catch(r){if(r!==jl)throw r;if(this._refresher.pending)continue;this._deadline.elapse()}}}const N2="v1",ii=(e,t)=>{try{e==null||e(t)}catch{throw t}};async function S2(e){const{errorLevel:t,loadingContext:n="",path:r}=e,s=r2(e),o=new URL(`${$0(n)}${N2}${U0(r)}`);return e.params&&e.params.forEach((i,c)=>{const l=decodeURIComponent(i);l&&o.searchParams.append(c,l)}),(async()=>{let i=!1;const c={level:t};try{const l=await fetch(o,s);if(l.ok){if(l.status===204)return null;try{switch(t2(l)){case"application/json":return await l.json();default:const d=await l.blob(),p=n2(l);return{blob:d,filename:p}}}catch(h){throw i=!0,h}}c.type=e2(l.status);const u=await l.json();c.message=e.errorMessage||`Service at ${o} not available`,c.errorCode=String(u.status),c.requestId=u==null?void 0:u.requestId,o2(u)&&(c.message=u.detail,c.errorCode=u.errorCode,c.status=u.status),ii(e.errorHandler,c)}catch(l){if(i)throw ii(e.errorHandler,l),l;ii(e.errorHandler,l),c.message=e.errorMessage||`Call to ${o} failed. Error: ${l}`}s2(c)})()}class v2{constructor(t){B(this,"assert",t=>{if(Mo(t)){const n=ot(t.id)?t.id.trim():void 0,r=ot(t.token)?t.token.trim():void 0;if(n&&r)return}throw void 0});B(this,"deadline",t=>{const n=[];let r,s;try{({iat:r,exp:s}=JSON.parse(atob(t==null?void 0:t.token.split(".")[1]))),n.push(s)}catch{r=Date.now()}if(!Z(pc)){const o=new Date(r);n.push(o.setMilliseconds(o.getMilliseconds()+pc))}return n});B(this,"http",async(t,n,r)=>{const{headers:s,signal:o,...i}=r;try{const c={...i,headers:{...s,...t&&{Authorization:`Bearer ${t.token}`}},errorHandler:this._errorHandler,signal:ks(o)?Fo([n,o]):n};return await S2(c)}catch(c){throw(c==null?void 0:c.type)===ao.EXPIRED_TOKEN?jl:c}});this.onSessionCreate=t,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:W(Q0),onRefresh:W((n,r)=>this.onSessionCreate(r))})}_errorHandler(t){try{this.errorHandler&&this.errorHandler(t)}catch{}throw t}}const Vr=Symbol("<<NO_ERR>>");function O2(e){/* istanbul ignore if -- @preserve */if(e===Vr)throw new TypeError("Illegal error")}const R2=()=>{let e=Vr;const t=()=>{e=Vr},n=r=>{O2(r),e=r};return Q({error:ae(()=>e===Vr?void 0:e),hasError:ae(()=>e!==Vr),reset:W(t),set:W(n)})};class b2{constructor(){B(this,"_canSkipSessionRefresh",!1);B(this,"_refreshPromisorSignal");B(this,"_sessionIsFrozen",!1);B(this,"_errorContainer",R2());B(this,"_specification",new v2);B(this,"_sessionContext",new C2(this._specification));B(this,"_setupContext",new a2(this._sessionContext));B(this,"_refreshPromisor",Ps(async(t,n=!1)=>{let r=!this._refreshPromisorSignal,s=this._refreshPromisorSignal===(this._refreshPromisorSignal=t);const o=Pe(n)&&this._canSkipSessionRefresh;r&&(r=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(o?this._setupContext:this._sessionContext).refresh(t).finally(()=>s=this._refreshPromisorSignal===t)}catch(i){if(!s)return;!t.aborted&&(o||i!==zl)&&this._errorContainer.set(i),r=!o}finally{(r||o&&s)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));B(this,"_watchlist",Ms({endpoints:()=>this._setupContext.endpoints,extraConfig:()=>this._setupContext.extraConfig,hasError:()=>this._errorContainer.hasError,isExpired:()=>this._sessionContext.isExpired,isFrozen:()=>this._sessionIsFrozen,refreshing:()=>!!this._refreshPromisorSignal}));B(this,"freeze",()=>{this._sessionIsFrozen=!0,this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()});B(this,"http",this._sessionContext.http.bind(this._sessionContext,null));B(this,"refresh",this._refresh.bind(this));B(this,"subscribe",this._watchlist.subscribe);this._watchlist.on.resume=()=>{const t=[this._sessionContext.on(Bo,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(Vl,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,t.forEach(n=>n()),t.length=0},!this.context.refreshing&&wt(this.context.isExpired)&&this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(t){this._setupContext.loadingContext=t}set errorHandler(t){this._specification.errorHandler=t}set onSessionCreate(t){this._specification.onSessionCreate!==t&&(this._specification.onSessionCreate=t,this._refreshPromisorSignal&&ee(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(t=!1){this._refreshPromisor(t)}}const I2="Account",L2="Account Balance",D2="Account description",w2="Account ID",k2="Additions",P2="Adjustments",M2="Amount",F2="and",x2="Apply",B2="Back",$2="Balance account",U2="Balance account ID",W2="Booked",H2="Captured",G2="Category",Y2="Chargebacks",j2="Close",z2="Contact support",V2="Contact support for help.",q2="Contact support for help and share error code %{requestId}",K2="Copied",Z2="Copy",X2="Corrections",Q2="Currency",J2="Date",eh="Date range",th="Description",nh="Dismiss",rh="Download",sh="Downloading",oh="Email",ih="Entity was not found",ah="Transaction not found for the specified Account Holder",ch="Fees",lh="File",uh="Filter bar",dh="From",hh="Full",fh="Funds captured",mh="Go back",ph="Grant issued",_h="Grant repayments",gh="Hide content",yh="ID",Th="Incomplete field",Ah="In progress",Eh="Loading",Ch="max",Nh="min",Sh="Mobile",vh="Net payout",Oh="Next Payouts",Rh="No data",bh="No negative numbers allowed",Ih="No payouts found",Lh="No reports found",Dh="No transactions found",wh="Other",kh="Paginated navigation",Ph="Partial",Mh="Payment ID",Fh="Payment method",xh="Payout Details",Bh="Payout information is generated each day at midnight, UTC time.",$h="Payouts",Uh="Pending",Wh="Please come back later.",Hh="Please, reach out to support for assistance.",Gh="Reach out to support",Yh="Reference ID",jh="Refresh",zh="Refunds",Vh="Refund payment",qh="We couldn’t process the refund. Try again later.",Kh="Something went wrong.",Zh="Your customer will receive the money in a maximum of 40 days. When the refund is successful you will see a new Refund transaction on your list.",Xh="Refund is sent!",Qh="Amount to refund",Jh="Refunds can take up to 40 days depending on the payment method. Fees are included.",ef="Refund %{amount}",tf="Reason for refund",nf="Reference",rf="Remaining amount",sf="Report",of="Reports are generated each day at midnight, UTC time.",af="Reports",cf="Reset",lf="Reversed",uf="Something went wrong.",df="Something went wrong. Try refreshing the page or come back later.",hf="Status",ff="Structured list",mf="Subtractions",pf="Sum of same-day payouts",_f="Tabs",gf="The error code is %{requestId}",yf="There are no results",Tf="The request is missing required fields or contains invalid data.",Af="There was an unexpected error",Ef="The selected balance account is incorrect",Cf="Timezone",Nf="To",Sf="Total incoming",vf="Total outgoing",Of="To value should be equal or greater than the From value",Rf="Transaction details",bf="Transactions",If="Transactions overview",Lf="Transaction type",Df="Transfers",wf="Try a different search or reset your filters, and we’ll try again.",kf="Try refreshing the page or come back later.",Pf="Amount",Mf="Type",Ff="Value",xf="We couldn't load the payouts overview.",Bf="We couldn't load the reports overview.",$f="We couldn't load the transactions overview.",Uf="We couldn't load your balance accounts.",Wf="We couldn't load your payouts.",Hf="We couldn't load your reports.",Gf="We couldn't load your transactions.",Yf={account:I2,accountBalance:L2,accountDescription:D2,accountID:w2,additions:k2,adjustments:P2,amount:M2,and:F2,apply:x2,back:B2,balanceAccount:$2,balanceAccountId:U2,Booked:W2,"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})","capital.accountIsInactive":"Your account is inactive","capital.actionNeeded":"Action needed","capital.businessFinancing":"Business financing","capital.businessFinancingOffer":"Business financing offer","capital.businessFinancingSummary":"Business financing summary","capital.closed":"Closed","capital.couldNotContinueWithTheOffer":"We couldn't continue with the offer.","capital.couldNotLoadFinancialOffers":"We couldn't load financial offers.","capital.dailyRepaymentRate":"Daily repayment rate","capital.daysAndDaysLeft":"%{days} days (%{daysLeft} days left)","capital.expectedRepaymentPeriod":"Expected repayment period","capital.failed":"Failed","capital.fees":"Fees","capital.fullyRepaid":"Fully repaid","capital.goToTermsAndConditions":"Go to Terms & Conditions","capital.grantID":"Grant ID","capital.howMuchMoneyDoYouNeed":"How much money do you need?","capital.inProgress":"In progress","capital.legalSubtitleAU":"Adyen Capital is provided by Adyen Australia Pty Limited.","capital.legalSubtitleEU":"Loans are issued by Adyen N.V.","capital.legalSubtitleGB":"Loans are issued by Adyen N.V. represented by its London Branch.","capital.legalSubtitleUS":"Loans are issued by Adyen N.V. San Francisco Branch and subject to credit approval.","capital.maximumRepaymentPeriod":"Maximum repayment period","capital.minimumRepaymentToRepayTheFinancingOnTime":"Minimum repayment every %{days} days to repay the financing on time","capital.needSomeExtraMoney":"Need some extra money?","capital.offerLegalNoticeDescriptionUS":"If your application for business credit is denied, you have the right to a written statement of the specific reasons for the denial. To obtain the statement, please contact Adyen's Credit Support Team by emailing %{email} within 60 days from the date you are notified of our decision. We will send you a written statement of reasons for the denial within 30 days of receiving your request for the statement. %{break} The Federal Equal Credit Opportunity Act prohibits creditors from discriminating against credit applicants on the basis of race, color, religion, national origin, sex, marital status, age (provided that the applicant has the legal capacity to enter into a binding contract), because all or part of the applicant's income derives from any public assistance program, or because the applicant has in good faith exercised any right under the Consumer Credit Protection Act. The federal agency that administers compliance with this law concerning this creditor is the Office of the Comptroller of the Currency (OCC), 400 7th Street, SW Washington, DC 20219.","capital.offerLegalNoticeTitleUS":"Creditor: Adyen N.V. – San Francisco Branch %{break} 505 Brannan Street, San Francisco, CA 94107.","capital.oneMonth":"1 month","capital.pending":"Pending","capital.primaryAccount":"Primary account","capital.remaining":"Remaining","capital.remainingAmount":"Remaining amount","capital.remainingFees":"Remaining fees","capital.repaid":"Repaid","capital.repaidAmount":"Repaid amount","capital.repaidFees":"Repaid fees","capital.repaymentThreshold":"Repayment threshold","capital.requestedFunds":"Requested funds","capital.requestFunds":"Request funds","capital.requesting":"Requesting","capital.reviewOffer":"Review offer","capital.revoked":"Revoked","capital.seeNewOffer":"See new offer","capital.seeOptions":"See options","capital.signTermsAndConditionsToReceiveFunds":"Sign the Terms & Conditions to receive your funds.","capital.signTheTermsToReceiveYourFunds":"Sign the terms to receive your funds","capital.termEnds":"Term ends: ","capital.thereIsNoPrimaryAccountConfigured":"There is no primary account configured","capital.thisOfferExpiresOn":"This offer expires on %{date}.","capital.totalFees":"Total fees","capital.totalRepaymentAmount":"Total repayment amount","capital.unsupportedRegionDescription":"Business financing isn’t available in your region yet, but check back here for an offer.","capital.unsupportedRegionTitle":"Stay tuned!","capital.weCouldNotContinueWithTheOffer":"We couldn't continue with the offer.","capital.weCouldNotContinueWithTheOfferContactSupportForHelp":"We couldn't continue with the offer. Contact support for help.","capital.weCouldNotLoadFinancialOffers":"We couldn't load financial offers.","capital.weCouldNotProcessThisRequestTryAgain":"We couldn't process this request. Try again with a new offer.","capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon":"We received your request and we’re working on it now. Check back soon for the next steps.","capital.writtenOff":"Written off","capital.xDays":"%{days} days","capital.xMonths":"%{months} months","capital.xPercent":"%{percentage}%","capital.youAcceptedButThenReturnedTheseFunds":"You accepted but then returned these funds","capital.youAcceptedTheseFundsButDidNotRepayThem":"You accepted these funds but did not repay them","capital.youAreRequestingFundingOf":"You’re requesting funding of","capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part1":"You have been pre-qualified for business financing","capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part2":" up to %{amount}.","capital.yourRequestedFundsWere":"Your requested funds were: ","capital.youShouldGetTheFundsWithinOneBusinessDay":"You should get the funds within one business day","capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds":"You will need to repay a minimum of %{amount} every %{days} days to fully pay off the funds by %{date}.","capital.youWillSoonQualifyForAFinancialOffer":"You will soon qualify for a financial offer!",capture:H2,category:G2,chargeback:Y2,closeIconLabel:j2,contactSupport:z2,contactSupportForHelp:V2,contactSupportForHelpAndShareErrorCode:q2,copied:K2,copy:Z2,correction:X2,currency:Q2,date:J2,dateRange:eh,default:"Default",description:th,dismiss:nh,download:rh,downloading:sh,email:oh,entityWasNotFound:ih,entityWasNotFoundDetail:ah,"error.pleaseTryAgainLater":"Please try again later.","error.somethingWentWrongWithDownload":"Something went wrong with the download","expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",export:"Export",fee:ch,file:lh,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}",filterBar:uh,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status",from:dh,full:hh,fundsCaptured:fh,goBack:mh,grantIssued:ph,grantRepayment:_h,hideContent:gh,id:yh,incompleteField:Th,inProgress:Ah,loading:Eh,max:Ch,min:Nh,mobile:Sh,netPayout:vh,nextPayouts:Oh,noData:Rh,noNegativeNumbersAllowed:bh,noPayoutsFound:Ih,noReportsFound:Lh,noTransactionsFound:Dh,other:wh,paginatedNavigation:kh,"pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing",partial:Ph,paymentId:Mh,paymentMethod:Fh,payoutDetails:xh,payoutsNotice:Bh,payoutsTitle:$h,Pending:Uh,pleaseComeBackLater:Wh,pleaseReachOutToSupportForAssistance:Hh,"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:Gh,referenceID:Yh,refresh:jh,refund:zh,"refund.amountAlreadyRefunded":"You already refunded %{amount}","refund.amountFailed":"The refund for %{amount} has failed. It is not currently possible to refund this amount. Please contact support.","refund.amountInProgress":"The partial refund of %{amount} is being processed.","refund.fee":"Fee","refund.fullAmountFailed":"It is not possible to refund this payment. Please contact support.","refund.fullAmountRefunded":"The full amount has been refunded back to the customer","refund.goToPayment":"Go to payment","refund.maximumRefundable":"You can only refund a maximum of %{amount}","refund.onlyRefundable":"You can only refund %{amount}","refund.originalAmount":"Original Amount","refund.originalPayment":"Original Payment","refund.paymentPspReference":"Payment PSP Reference","refund.pspReference":"PSP Reference","refund.refundFee":"Refund Fee","refund.refundPspReference":"Refund PSP Reference","refund.returnToRefund":"Return to refund","refund.theRefundIsBeingProcessed":"The refund is being processed.",refundAction:Vh,refundActionErrorSubtitle:qh,refundActionErrorTitle:Kh,refundActionSuccessSubtitle:Zh,refundActionSuccessTitle:Xh,refundAmount:Qh,"refundAmount.excess":"You cannot exceed the available amount of %{amount}","refundAmount.required":"Enter a refund amount","refunded.full":"Fully refunded","refunded.partial":"Partially refunded",refundNotice:Jh,refundPayment:ef,refundReason:tf,"refundReason.duplicate":"Duplicate","refundReason.fraudulent":"Fraudulent","refundReason.issue_with_item_sold":"Issue with item sold","refundReason.other":"Other","refundReason.requested_by_customer":"Requested by customer",refundReference:nf,"refundReference.placeholder":"Enter the reference here",remainingAmount:rf,report:sf,"reportsError.tooManyDownloads":"We couldn't download all the files. Please try again later.",reportsNotice:of,reportsTitle:af,"reportType.payout":"Payout",reset:cf,Reversed:lf,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search",somethingWentWrong:uf,somethingWentWrongTryRefreshingOrComeBackLater:df,status:hf,structuredList:ff,subtractions:mf,sumOfSameDayPayouts:pf,tabs:_f,theErrorCodeIs:gf,thereAreNoResults:yf,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Tf,thereWasAnUnexpectedError:Af,theSelectedBalanceAccountIsIncorrect:Ef,timezone:Cf,to:Nf,"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:Sf,totalOutgoing:vf,toValueShouldBeGreaterThanTheFromValue:Of,transactionDetails:Rf,transactions:bf,transactionsOverviewTitle:If,transactionType:Lf,transfer:Df,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:wf,tryRefreshingThePageOrComeBackLater:kf,txAmount:Pf,"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:Mf,value:Ff,weCouldNotLoadThePayoutsOverview:xf,weCouldNotLoadTheReportsOverview:Bf,weCouldNotLoadTheTransactionsOverview:$f,weCouldNotLoadYourBalanceAccounts:Uf,weCouldNotLoadYourPayouts:Wf,weCouldNotLoadYourReports:Hf,weCouldNotLoadYourTransactions:Gf},jf={...Yf},kt=e=>e.then(({default:t})=>t),Jl={da_DK:()=>kt(Promise.resolve().then(()=>require("./da-DK-UDr4zLEm.cjs")))},eu={de_DE:()=>kt(Promise.resolve().then(()=>require("./de-DE-CRXo3Lip.cjs")))},tu={es_ES:()=>kt(Promise.resolve().then(()=>require("./es-ES-DKE_miHr.cjs")))},nu={fi_FI:()=>kt(Promise.resolve().then(()=>require("./fi-FI-MQMNSR--.cjs")))},ru={fr_FR:()=>kt(Promise.resolve().then(()=>require("./fr-FR-Bq797--M.cjs")))},su={it_IT:()=>kt(Promise.resolve().then(()=>require("./it-IT-P4aG92g4.cjs")))},ou={nl_NL:()=>kt(Promise.resolve().then(()=>require("./nl-NL-CkNmbOjk.cjs")))},iu={no_NO:()=>kt(Promise.resolve().then(()=>require("./no-NO-Cb48UzO1.cjs")))},au={pt_BR:()=>kt(Promise.resolve().then(()=>require("./pt-BR-7QdWAx4z.cjs")))},cu={sv_SE:()=>kt(Promise.resolve().then(()=>require("./sv-SE-DDU8uUdf.cjs")))},co={en_US:jf},sa={...Jl,...eu,...co,...tu,...nu,...ru,...su,...ou,...iu,...au,...cu},En="en-US",lu=sa.en_US,oa={year:"numeric",month:"2-digit",day:"2-digit"},zf=["constructor","i18n","watch","preferredTranslations"],uu=e=>[...new Set(Object.keys(e).map(t=>t.replace(/_/g,"-")).sort())],Vf=uu(sa),du={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$"},qf={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},hu=e=>qf[e]||100,Kf=e=>!!du[e],fu=e=>Kf(e)?du[e]:null,mu=(e,t)=>{const n=hu(t);return parseInt(String(e),10)/n},Zf=(e,t,n,r=!1,s={})=>{const o=e.toString(),i=mu(o,n),c=t.replace("_","-"),l={style:"currency",currency:n,currencyDisplay:"symbol",...s};try{return r?Xf(c,l,i):i.toLocaleString(c,l)}catch{return o}},Xf=(e,t,n)=>Intl.NumberFormat(e,t).formatToParts(n).filter(r=>r.type!=="currency").reduce((r,s)=>r+s.value,"").trim(),Qf=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:pu,BASE_LOCALE:$o,SYSTEM_TIMEZONE:js,SYSTEM_TIMEZONE_FORMATTER:Zn}=(()=>{const e="en-US",t="2-digit",n="numeric",i=Object.freeze({year:n,month:"short",day:n,hour:t,minute:t,second:t,fractionalSecondDigits:3,timeZoneName:"longOffset"});let c,l;try{l=new Intl.DateTimeFormat(e,i),c=l.resolvedOptions().timeZone}catch{c=void 0}return{BASE_FORMAT_OPTIONS:i,BASE_LOCALE:e,SYSTEM_TIMEZONE:c,SYSTEM_TIMEZONE_FORMATTER:l}})(),Jf=/\+(?=-)|([+-]00:00)/g,e1=new RegExp("(?<=^\\D?)(\\d)$"),t1=([e,t])=>(Math.abs(e*60)+t)*(e<0?-1:1),n1=e=>Object.freeze([Math.floor(e/60),ws(e,60)]),r1=e=>parseInt(e,10)||0,s1=e=>`GMT+${n1(e).map(r=>`${r}`.replace(e1,"0$1")).join(":")}`.replace(Jf,""),Oi=e=>{var n;const t=((n=e==null?void 0:e.match(Qf))==null?void 0:n[0].split(":",2).map(r1))??de;return t1(t.concat(0,0).slice(0,2))},o1=(e,t=Zn)=>{const n=Oi(Zn==null?void 0:Zn.format(e));return Oi(t==null?void 0:t.format(e))-n},_u=(e,t,n=1)=>{const{offset:r,timestamp:s}=e(t);return s-r*n*6e4},Lt=(e,t)=>_u(e,t,1),Yt=(e,t)=>_u(e,t,-1),Fs=(()=>{let e,t;Z(js)||(e=function(){return this.TIMEZONE},t=function(r){if(Ae(r))this.TIMEZONE=js,this.formatter=Zn;else try{const s=new Intl.DateTimeFormat($o,{...pu,timeZone:r}),o=s.resolvedOptions().timeZone;if(this.TIMEZONE===o)return;this.TIMEZONE=o,this.formatter=s}catch{}});function n(...r){if(r.length===0)return n.call(this,Date.now());const s=r[0],o=new Date(s).getTime(),i=this.formatter??Zn;return Object.freeze({formatted:i==null?void 0:i.format(o),offset:o1(o,i),timestamp:o})}return()=>{const r={TIMEZONE:js},s=t==null?void 0:t.bind(r),o=Q({current:{get:e==null?void 0:e.bind(r),set:s},system:{value:js}});return Object.defineProperties(n.bind(r),{tz:{get:()=>o,set:s}})}})(),i1={values:$,count:0},a1=/^[a-z]{2}-[A-Z]{2}$/,lo=e=>e.substring(0,2).toLowerCase();function c1(e,t){if(!e)return null;const n=lo(e);return t.find(r=>lo(r)===n)||null}function ia(e){const t=e.replace("_","-");if(a1.test(t))return t;const[n,r]=t.split("-");if(!n||!r)return null;const s=`${n.toLowerCase()}-${r.toUpperCase()}`;return s.length===5?s:null}function aa(e,t){const n=e.trim();if(!n||n.length<1||n.length>5)return En;const r=ia(n);return r&&t.includes(r)?r:c1(r??n,t)}function l1(e=$,t){return e===$?e:Object.keys(e).reduce((n,r)=>{const s=ia(r)||aa(r,t);return s&&e[r]&&(n[s]=e[r]),n},{})}const ai=(e,t)=>{if(ee(t)){const n=new Map;let r=-1;return e.replace(/%{(\w+)}/g,(s,o)=>{let i=n.get(o)??-1;const c=t(o,++r,++i)??"";return n.set(o,i),c})}return e.replace(/%{(\w+)}/g,(n,r)=>(t==null?void 0:t[r])??"")},gc=(e,t,n=i1)=>{const r=n.count??0,s=`${t}__${r}`;if(Dt(e,s)&&e[s])return ai(e[s],n.values);const o=`${t}__plural`;return Dt(e,o)&&r>1&&e[o]?ai(e[o],n.values):Dt(e,t)&&e[t]?ai(e[t],n.values):null},u1=async(e,t=$,n=$)=>{const r=aa(e,Object.keys(t))||En,s=t[r];return{...lu,...await(ee(s)?s():s)??$,...os(n==null?void 0:n[e])}};function d1(){let e=this.locale,t=e,n=[...this.supportedLocales];return Q({load:{value:r=>u1(e,this.preferredTranslations,r)},locale:{get:()=>e,set:r=>{t=r,e=ia(r)||aa(r,n)||En}},supportedLocales:{get:()=>n,set(r){n=r,this.locale=t}}})}function h1(){var t;const e={};for(const[n,r]of Object.entries(Object.getOwnPropertyDescriptors(Uo.prototype)))zf.includes(n)||(ee(r.get)?e[n]={get:r.get.bind(this),...n==="timezone"&&{set:(t=r.set)==null?void 0:t.bind(this)}}:ee(r.value)?e[n]={value:r.value.bind(this)}:e[n]={get:()=>this[n]});return e}var vt,fs,ar,ms,cr,lr,xt,ps,Nn,Sn,ur,dr,_s,Ri;class Uo{constructor(t=En,n){w(this,_s);w(this,vt,En);w(this,fs,lo(m(this,vt)));w(this,ar,[En]);w(this,ms,m(this,ar));w(this,cr);w(this,lr,lu);w(this,xt,d1.call(this));w(this,ps,Lr);w(this,Nn);w(this,Sn);w(this,ur,Ms({timestamp:()=>performance.now()}));w(this,dr,Fs());B(this,"watch",m(this,ur).subscribe.bind(void 0));B(this,"i18n",Q(h1.call(this)));B(this,"preferredTranslations");this.watch(ne),this.preferredTranslations=Object.freeze((n==null?void 0:n.reduce((r,s)=>({...r,...s}),co))??{...co}),v(this,ar,uu(this.preferredTranslations)),this.locale=t}get customTranslations(){return m(this,cr)??{}}set customTranslations(t){let n,r=[...m(this,ar)];if(!Ae(t)){n=l1(t,Vf);const s=Object.keys(n);r=[...r,...s].sort().filter((o,i,c)=>c.indexOf(o)===i)}m(this,xt).supportedLocales=r,U(this,_s,Ri).call(this,n)}get languageCode(){return m(this,fs)}get lastRefreshTimestamp(){return m(this,ur).snapshot.timestamp}get locale(){return m(this,vt)}set locale(t){if(Ae(t))this.locale=En;else{if(m(this,xt).locale=t,m(this,vt)===m(this,xt).locale)return;U(this,_s,Ri).call(this,m(this,cr))}}get ready(){return m(this,ps)}get supportedLocales(){return m(this,ms)}get timezone(){return m(this,dr).tz.current}set timezone(t){m(this,dr).tz=t}get(t,n){const r=gc(m(this,lr),t,n);return io(r)?t:r}has(t,n){return!!gc(m(this,lr),t,n)}amount(t,n,r){const{hideCurrency:s,...o}=r||{},i=Zf(t,m(this,vt),n,s,{...o,currencyDisplay:"symbol",signDisplay:"never"});return t<0?`- ${i}`:i}date(t,n={}){const r={...oa,timeZone:m(this,dr).tz.current,...n};return new Date(t).toLocaleDateString(m(this,vt),r)}fullDate(t){return this.date(t,{month:"short",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}vt=new WeakMap,fs=new WeakMap,ar=new WeakMap,ms=new WeakMap,cr=new WeakMap,lr=new WeakMap,xt=new WeakMap,ps=new WeakMap,Nn=new WeakMap,Sn=new WeakMap,ur=new WeakMap,dr=new WeakMap,_s=new WeakSet,Ri=function(t){Z(m(this,Sn))&&v(this,ps,new Promise(s=>{v(this,Sn,()=>{s(m(this,Nn)),v(this,Nn,v(this,Sn,void 0))})}));const n=()=>{var s;m(this,Nn)===r&&((s=m(this,Sn))==null||s.call(this))},r=v(this,Nn,(async()=>{v(this,lr,await m(this,xt).load(t)),v(this,vt,m(this,xt).locale),v(this,ms,Object.freeze(m(this,xt).supportedLocales)),v(this,cr,t),v(this,fs,lo(m(this,vt))),m(this,ur).requestNotification()})());r.then(n).catch(s=>{n(),console.error(s)})};class ca{constructor(t){B(this,"components",[]);B(this,"options");B(this,"localization");B(this,"loadingContext");B(this,"session",new b2);B(this,"onError");B(this,"update",async(t=$)=>(this.setOptions(t),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));B(this,"remove",t=>(this.components=this.components.filter(n=>n._id!==t._id),t.unmount(),this));B(this,"registerComponent",t=>{t.props.core===this&&this.components.push(t)});B(this,"setOptions",t=>{var n,r;return this.options={...this.options,...t},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(r=this.options)==null?void 0:r.translations,this.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:Ei,...t},this.localization=new Uo(t.locale,t.availableTranslations),this.loadingContext=W0(this.options.environment),this.setOptions(t)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(t){return{...t}}}B(ca,"version","1.3.1");var xs,re,gu,yu,Tn,yc,Tu,bi,Au,la,Ii,Li,Eu,is={},Cu=[],f1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wo=Array.isArray;function jt(e,t){for(var n in t)e[n]=t[n];return e}function ua(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Dr(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?xs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Jr(e,i,r,s,null)}function Jr(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++gu,__i:-1,__u:0};return s==null&&re.vnode!=null&&re.vnode(o),o}function V(e){return e.children}function Vt(e,t){this.props=e,this.context=t}function wr(e,t){if(t==null)return e.__?wr(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?wr(e):null}function Nu(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Nu(e)}}function Di(e){(!e.__d&&(e.__d=!0)&&Tn.push(e)&&!uo.__r++||yc!==re.debounceRendering)&&((yc=re.debounceRendering)||Tu)(uo)}function uo(){var e,t,n,r,s,o,i,c;for(Tn.sort(bi);e=Tn.shift();)e.__d&&(t=Tn.length,r=void 0,o=(s=(n=e).__v).__e,i=[],c=[],n.__P&&((r=jt({},s)).__v=s.__v+1,re.vnode&&re.vnode(r),da(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??wr(s),!!(32&s.__u),c),r.__v=s.__v,r.__.__k[r.__i]=r,Ou(i,r,c),r.__e!=o&&Nu(r)),Tn.length>t&&Tn.sort(bi));uo.__r=0}function Su(e,t,n,r,s,o,i,c,l,u,h){var d,p,f,g,_,A,T=r&&r.__k||Cu,C=t.length;for(l=m1(n,t,T,l,C),d=0;d<C;d++)(f=n.__k[d])!=null&&(p=f.__i===-1?is:T[f.__i]||is,f.__i=d,A=da(e,f,p,s,o,i,c,l,u,h),g=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&ha(p.ref,null,f),h.push(f.ref,f.__c||g,f)),_==null&&g!=null&&(_=g),4&f.__u||p.__k===f.__k?l=vu(f,l,e):typeof f.type=="function"&&A!==void 0?l=A:g&&(l=g.nextSibling),f.__u&=-7);return n.__e=_,l}function m1(e,t,n,r,s){var o,i,c,l,u,h=n.length,d=h,p=0;for(e.__k=new Array(s),o=0;o<s;o++)(i=t[o])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=o+p,(i=e.__k[o]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Jr(null,i,null,null,null):Wo(i)?Jr(V,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Jr(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,c=null,(u=i.__i=p1(i,n,l,d))!==-1&&(d--,(c=n[u])&&(c.__u|=2)),c==null||c.__v===null?(u==-1&&p--,typeof i.type!="function"&&(i.__u|=4)):u!=l&&(u==l-1?p--:u==l+1?p++:(u>l?p--:p++,i.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<h;o++)(c=n[o])!=null&&!(2&c.__u)&&(c.__e==r&&(r=wr(c)),Ru(c,c));return r}function vu(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=vu(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=wr(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function hn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Wo(e)?e.some(function(n){hn(n,t)}):t.push(e)),t}function p1(e,t,n,r){var s,o,i=e.key,c=e.type,l=t[n];if(l===null||l&&i==l.key&&c===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(s=n-1,o=n+1;s>=0||o<t.length;){if(s>=0){if((l=t[s])&&!(2&l.__u)&&i==l.key&&c===l.type)return s;s--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&i==l.key&&c===l.type)return o;o++}}return-1}function Tc(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||f1.test(t)?n:n+"px"}function zs(e,t,n,r,s){var o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Tc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Tc(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Au,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=la,e.addEventListener(t,o?Li:Ii,o)):e.removeEventListener(t,o?Li:Ii,o);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ac(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=la++;else if(t.t<n.u)return;return n(re.event?re.event(t):t)}}}function da(e,t,n,r,s,o,i,c,l,u){var h,d,p,f,g,_,A,T,C,R,O,L,S,I,N,M,P,z=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[c=t.__e=n.__e]),(h=re.__b)&&h(t);e:if(typeof z=="function")try{if(T=t.props,C="prototype"in z&&z.prototype.render,R=(h=z.contextType)&&r[h.__c],O=h?R?R.props.value:h.__:r,n.__c?A=(d=t.__c=n.__c).__=d.__E:(C?t.__c=d=new z(T,O):(t.__c=d=new Vt(T,O),d.constructor=z,d.render=g1),R&&R.sub(d),d.props=T,d.state||(d.state={}),d.context=O,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&z.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=jt({},d.__s)),jt(d.__s,z.getDerivedStateFromProps(T,d.__s))),f=d.props,g=d.state,d.__v=t,p)C&&z.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&z.getDerivedStateFromProps==null&&T!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(T,O),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(T,d.__s,O)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(d.props=T,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(j){j&&(j.__=t)}),L=0;L<d._sb.length;L++)d.__h.push(d._sb[L]);d._sb=[],d.__h.length&&i.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(T,d.__s,O),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,g,_)})}if(d.context=O,d.props=T,d.__P=e,d.__e=!1,S=re.__r,I=0,C){for(d.state=d.__s,d.__d=!1,S&&S(t),h=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do d.__d=!1,S&&S(t),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++I<25);d.state=d.__s,d.getChildContext!=null&&(r=jt(jt({},r),d.getChildContext())),C&&!p&&d.getSnapshotBeforeUpdate!=null&&(_=d.getSnapshotBeforeUpdate(f,g)),c=Su(e,Wo(M=h!=null&&h.type===V&&h.key==null?h.props.children:h)?M:[M],t,n,r,s,o,i,c,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),A&&(d.__E=d.__=null)}catch(j){if(t.__v=null,l||o!=null)if(j.then){for(t.__u|=l?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;o[o.indexOf(c)]=null,t.__e=c}else for(P=o.length;P--;)ua(o[P]);else t.__e=n.__e,t.__k=n.__k;re.__e(j,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=_1(n.__e,t,n,r,s,o,i,l,u);return(h=re.diffed)&&h(t),128&t.__u?void 0:c}function Ou(e,t,n){for(var r=0;r<n.length;r++)ha(n[r],n[++r],n[++r]);re.__c&&re.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){re.__e(o,s.__v)}})}function _1(e,t,n,r,s,o,i,c,l){var u,h,d,p,f,g,_,A=n.props,T=t.props,C=t.type;if(C=="svg"?s="http://www.w3.org/2000/svg":C=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!C&&(C?f.localName==C:f.nodeType==3)){e=f,o[u]=null;break}}if(e==null){if(C==null)return document.createTextNode(T);e=document.createElementNS(s,C,T.is&&T),c&&(re.__m&&re.__m(t,o),c=!1),o=null}if(C===null)A===T||c&&e.data===T||(e.data=T);else{if(o=o&&xs.call(e.childNodes),A=n.props||is,!c&&o!=null)for(A={},u=0;u<e.attributes.length;u++)A[(f=e.attributes[u]).name]=f.value;for(u in A)if(f=A[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=f;else if(!(u in T)){if(u=="value"&&"defaultValue"in T||u=="checked"&&"defaultChecked"in T)continue;zs(e,u,null,f,s)}}for(u in T)f=T[u],u=="children"?p=f:u=="dangerouslySetInnerHTML"?h=f:u=="value"?g=f:u=="checked"?_=f:c&&typeof f!="function"||A[u]===f||zs(e,u,f,A[u],s);if(h)c||d&&(h.__html===d.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(d&&(e.innerHTML=""),Su(e,Wo(p)?p:[p],t,n,r,C=="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&wr(n,0),c,l),o!=null)for(u=o.length;u--;)ua(o[u]);c||(u="value",C=="progress"&&g==null?e.removeAttribute("value"):g!==void 0&&(g!==e[u]||C=="progress"&&!g||C=="option"&&g!==A[u])&&zs(e,u,g,A[u],s),u="checked",_!==void 0&&_!==e[u]&&zs(e,u,_,A[u],s))}return e}function ha(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){re.__e(s,n)}}function Ru(e,t,n){var r,s;if(re.unmount&&re.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ha(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){re.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Ru(r[s],t,n||typeof e.type!="function");n||ua(e.__e),e.__c=e.__=e.__e=void 0}function g1(e,t,n){return this.constructor(e,n)}function Xn(e,t,n){var r,s,o,i;t==document&&(t=document.documentElement),re.__&&re.__(e,t),s=(r=!1)?null:t.__k,o=[],i=[],da(t,e=t.__k=Dr(V,null,[e]),s||is,is,t.namespaceURI,s?null:t.firstChild?xs.call(t.childNodes):null,o,s?s.__e:t.firstChild,r,i),Ou(o,e,i)}function bu(e,t,n){var r,s,o,i,c=jt({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:c[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(c.children=arguments.length>3?xs.call(arguments,2):n),Jr(e.type,c,r||e.key,s||e.ref,null)}function xr(e,t){var n={__c:t="__cC"+Eu++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.forEach(function(c){c.__e=!0,Di(c)})},this.sub=function(i){s.add(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.delete(i),c&&c.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}xs=Cu.slice,re={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},gu=0,yu=function(e){return e!=null&&e.constructor==null},Vt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jt({},this.state),typeof e=="function"&&(e=e(jt({},n),this.props)),e&&jt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Di(this))},Vt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Di(this))},Vt.prototype.render=V,Tn=[],Tu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,bi=function(e,t){return e.__v.__b-t.__v.__b},uo.__r=0,Au=/(PointerCapture)$|Capture$/i,la=0,Ii=Ac(!1),Li=Ac(!0),Eu=0;var y1=0;function a(e,t,n,r,s,o){t||(t={});var i,c,l=t;if("ref"in l)for(c in l={},t)c=="ref"?i=t[c]:l[c]=t[c];var u={type:e,props:l,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--y1,__i:-1,__u:0,__source:s,__self:o};if(typeof e=="function"&&(i=e.defaultProps))for(c in i)l[c]===void 0&&(l[c]=i[c]);return re.vnode&&re.vnode(u),u}var Pn,Ee,ci,Ec,kr=0,Iu=[],Le=re,Cc=Le.__b,Nc=Le.__r,Sc=Le.diffed,vc=Le.__c,Oc=Le.unmount,Rc=Le.__;function Bs(e,t){Le.__h&&Le.__h(Ee,e,kr||t),kr=0;var n=Ee.__H||(Ee.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function F(e){return kr=1,Ho(Lu,e)}function Ho(e,t,n){var r=Bs(Pn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lu(void 0,t),function(c){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,c);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=Ee,!Ee.u)){var s=function(c,l,u){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(p){return!!p.__c});if(h.every(function(p){return!p.__N}))return!o||o.call(this,c,l,u);var d=r.__c.props!==c;return h.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(d=!0)}}),o&&o.call(this,c,l,u)||d};Ee.u=!0;var o=Ee.shouldComponentUpdate,i=Ee.componentWillUpdate;Ee.componentWillUpdate=function(c,l,u){if(this.__e){var h=o;o=void 0,s(c,l,u),o=h}i&&i.call(this,c,l,u)},Ee.shouldComponentUpdate=s}return r.__N||r.__}function H(e,t){var n=Bs(Pn++,3);!Le.__s&&fa(n.__H,t)&&(n.__=e,n.i=t,Ee.__H.__h.push(n))}function ho(e,t){var n=Bs(Pn++,4);!Le.__s&&fa(n.__H,t)&&(n.__=e,n.i=t,Ee.__h.push(n))}function G(e){return kr=5,y(function(){return{current:e}},[])}function T1(e,t,n){kr=6,ho(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function y(e,t){var n=Bs(Pn++,7);return fa(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function E(e,t){return kr=8,y(function(){return e},t)}function Br(e){var t=Ee.context[e.__c],n=Bs(Pn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ee)),t.props.value):e.__}function A1(){for(var e;e=Iu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zs),e.__H.__h.forEach(wi),e.__H.__h=[]}catch(t){e.__H.__h=[],Le.__e(t,e.__v)}}Le.__b=function(e){Ee=null,Cc&&Cc(e)},Le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Rc&&Rc(e,t)},Le.__r=function(e){Nc&&Nc(e),Pn=0;var t=(Ee=e.__c).__H;t&&(ci===Ee?(t.__h=[],Ee.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Zs),t.__h.forEach(wi),t.__h=[],Pn=0)),ci=Ee},Le.diffed=function(e){Sc&&Sc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Iu.push(t)!==1&&Ec===Le.requestAnimationFrame||((Ec=Le.requestAnimationFrame)||E1)(A1)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ci=Ee=null},Le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Zs),n.__h=n.__h.filter(function(r){return!r.__||wi(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Le.__e(r,n.__v)}}),vc&&vc(e,t)},Le.unmount=function(e){Oc&&Oc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Zs(r)}catch(s){t=s}}),n.__H=void 0,t&&Le.__e(t,n.__v))};var bc=typeof requestAnimationFrame=="function";function E1(e){var t,n=function(){clearTimeout(r),bc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);bc&&(t=requestAnimationFrame(n))}function Zs(e){var t=Ee,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ee=t}function wi(e){var t=Ee;e.__c=e.__(),Ee=t}function fa(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Lu(e,t){return typeof t=="function"?t(e):t}const Xe="adyen-pe-typography";var b=(e=>(e.CAPTION="caption",e.BODY="body",e.SUBTITLE="subtitle",e.TITLE="title",e))(b||{}),Nt=(e=>(e.WIDE="wide",e.STRONGER="stronger",e.STRONGER_WIDE="stronger-wide",e.STRONGEST="strongest",e.STRONGEST_WIDE="strongest-wide",e.MEDIUM="m",e.LARGE="l",e.MOBILE="mobile",e))(Nt||{}),ce=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.DIV="div",e.PARAGRAPH="p",e.SPAN="span",e))(ce||{});function Du(e,t){for(var n in t)e[n]=t[n];return e}function ki(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ic(e,t){this.props=e,this.context=t}function be(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:ki(this.props,s)}function r(s){return this.shouldComponentUpdate=n,Dr(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ic.prototype=new Vt).isPureReactComponent=!0,Ic.prototype.shouldComponentUpdate=function(e,t){return ki(this.props,e)||ki(this.state,t)};var Lc=re.__b;re.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Lc&&Lc(e)};var C1=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function $r(e){function t(n){var r=Du({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=C1,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var N1=re.__e;re.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}N1(e,t,n,r)};var Dc=re.unmount;function wu(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Du({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return wu(r,t,n)})),e}function ku(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ku(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function li(){this.__u=0,this.o=null,this.__b=null}function Pu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Vs(){this.i=null,this.l=null}re.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Dc&&Dc(e)},(li.prototype=new Vt).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var s=Pu(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(c):c())};n.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=ku(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},li.prototype.componentWillUnmount=function(){this.o=[]},li.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=wu(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&Dr(V,null,e.fallback);return s&&(s.__u&=-33),[Dr(V,null,t.__a?null:e.children),s]};var wc=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function S1(e){return this.getChildContext=function(){return e.context},e.children}function v1(e){var t=this,n=e.h;t.componentWillUnmount=function(){Xn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.h.insertBefore(r,s)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Xn(Dr(S1,{context:t.context},e.__v),t.v)}function Mu(e,t){var n=Dr(v1,{__v:e,h:t});return n.containerInfo=t,n}(Vs.prototype=new Vt).__a=function(e){var t=this,n=Pu(t.__v),r=t.l.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),wc(t,e,r)):s()};n?n(o):o()}},Vs.prototype.render=function(e){this.i=null,this.l=new Map;var t=hn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Vs.prototype.componentDidUpdate=Vs.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){wc(e,n,t)})};var O1=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,R1=/^(?: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]/,b1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,I1=/[A-Z0-9]/g,L1=typeof document<"u",D1=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Vt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Vt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var kc=re.event;function w1(){}function k1(){return this.cancelBubble}function P1(){return this.defaultPrevented}re.event=function(e){return kc&&(e=kc(e)),e.persist=w1,e.isPropagationStopped=k1,e.isDefaultPrevented=P1,e.nativeEvent=e};var M1={enumerable:!1,configurable:!0,get:function(){return this.class}},Pc=re.vnode;re.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var c=n[i];if(!(i==="value"&&"defaultValue"in n&&c==null||L1&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&c===!0?c="":l==="translate"&&c==="no"?c=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||D1(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":b1.test(i)&&(i=l):l=i="oninput":o&&R1.test(i)?i=i.replace(I1,"-$&").toLowerCase():c===null&&(c=void 0),l==="oninput"&&s[i=l]&&(i="oninputCapture"),s[i]=c}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=hn(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=hn(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",M1)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=O1,Pc&&Pc(e)};var Mc=re.__r;re.__r=function(e){Mc&&Mc(e),e.__c};var Fc=re.diffed;re.diffed=function(e){Fc&&Fc(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function F1({el:e,className:t,stronger:n,strongest:r,variant:s,medium:o,large:i,testId:c,wide:l,children:u}){const h=e||"p",d=y(()=>({[`${Xe}--${b.CAPTION}`]:s===b.CAPTION,[`${Xe}--${b.CAPTION}-${Nt.WIDE}`]:s===b.CAPTION&&l,[`${Xe}--${b.CAPTION}-${Nt.STRONGER}`]:s===b.CAPTION&&n,[`${Xe}--${b.BODY}`]:s===b.BODY,[`${Xe}--${b.BODY}-${Nt.WIDE}`]:s===b.BODY&&l,[`${Xe}--${b.BODY}-${Nt.STRONGER}`]:s===b.BODY&&n,[`${Xe}--${b.BODY}-${Nt.STRONGEST}`]:s===b.BODY&&r,[`${Xe}--${b.SUBTITLE}`]:s===b.SUBTITLE,[`${Xe}--${b.SUBTITLE}-${Nt.STRONGER}`]:s===b.SUBTITLE&&n,[`${Xe}--${b.TITLE}`]:s===b.TITLE&&!o&&!i,[`${Xe}--${b.TITLE}-${Nt.MEDIUM}`]:s===b.TITLE&&o,[`${Xe}--${b.TITLE}-${Nt.LARGE}`]:s===b.TITLE&&i}),[s,l,n,o,i,r]);return a(h,{className:x([`${Xe}`,d,t]),"data-testid":c,children:u})}const k=be(F1),Fu=xr({i18n:new Uo().i18n,loadingContext:"",commonProps:{},updateCore:ne}),Y=()=>Br(Fu),x1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='223'%20height='169'%20fill='none'%20viewBox='0%200%20223%20169'%3e%3cpath%20fill='%23EAB1A0'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M36.6%20112.2c.6-.1%201-.7%201-1.3l-.9-8.7%202.1%206.6c.2.6.8.8%201.4.7.6-.1%201-.7.8-1.2l-1.3-6.8%202.9-4.8-5.9-5.5-7.6%209%205%204.7%201%206.2c0%20.7.7%201.2%201.5%201Z'/%3e%3cpath%20fill='%23EAB1A0'%20d='M31.7%20103.6c.3.4%201.2%206.6%201.5%209%200%20.5.6%201%201.1%201h.3c.7%200%201.2-.6%201.1-1.3l-.7-9.1'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M31.7%20103.6c.3.4%201.2%206.6%201.5%209%200%20.5.6%201%201.1%201h.3c.7%200%201.2-.6%201.1-1.3l-.7-9.1'/%3e%3cpath%20fill='%23EAB1A0'%20d='M30.4%2099.3v13.1c0%20.6.5%201.1%201.2%201.1.5%200%201-.4%201-1l1.2-9.3'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M30.4%2099.3v13.1c0%20.6.5%201.1%201.2%201.1.5%200%201-.4%201-1l1.2-9.3'/%3e%3cpath%20fill='%23EAB1A0'%20d='M35.8%2092s-6.5%204.8-6.6%206.2a995%20995%200%200%200-.9%2010.3c1.5%200%202.8-1%203.2-2.3.6-2.1%201.2-4.9%201-5.1-.1-.3%205-.7%205.8-3.8'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M35.8%2092s-6.5%204.8-6.6%206.2a995%20995%200%200%200-.9%2010.3c1.5%200%202.8-1%203.2-2.3.6-2.1%201.2-4.9%201-5.1-.1-.3%205-.7%205.8-3.8'/%3e%3cpath%20fill='%233300C2'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M95.3%2046.7S78%2053%2070.5%2059.4c-7.6%206.4-36.1%2031.2-36.1%2031.2l11.2%2011%2038-27.3c3.5-2.6%2011.7-27.6%2011.7-27.6Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='m45.6%20101.7-11.2-11%2029.8-2.5-18.6%2013.5ZM186.4%2090.4h-7.1v25.3h7.1V90.4ZM215.6%2066.7h-7.2V92h7.2V66.7ZM173.7%20167.8h-7l8.3-44h7l-8.3%2044ZM26.3%20167.8h-7l8.3-44h7l-8.3%2044ZM209.2%20167.8h-7l-8.3-44h7l8.3%2044ZM68%2091.1h-7v25h7V91Z'/%3e%3cpath%20fill='%23F3F6F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M208.4%2066.7H39V92h169.3V66.7Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M208.4%20123.4v-7.6H39v7.6h169.5Z'/%3e%3cpath%20fill='%23F3F6F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M193.7%20123.4V116H15.3v7.5h178.4Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M77.4%20167.8h-7l-8.3-44h7l8.3%2044ZM42.2%20150.4l-.8%203h16.2l.7-3.1h-16ZM80.1%20150.3l1.4%203h15.1l-1-3H80Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='m97.8%20115.9-28.4.1-7.7%2034.7h-23l9.5-40.6a18%2018%200%200%201%2016.7-12l54-.5-.5%202.6c-2%209.1-10.6%2015.6-20.6%2015.7Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M110.7%20115.9H85.5L99%20150.3h-25L62.9%20117c-3-9%203.6-18.6%2013.6-19.4h.8l54.5-1.3-.6%203.9a20.7%2020.7%200%200%201-20.4%2015.7Z'/%3e%3cpath%20fill='%23F3F6F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M57.6%20153.4H41.4l-.8%202.7-16.8%204.2c-2%20.7-3.7%202.1-4.7%203.9H55l2.6-10.8ZM96.6%20153.4H81.5l1.3%202.9-15.2%204c-2%20.7-3.6%202.1-4.6%203.8h37.3l-3.7-10.7Z'/%3e%3cpath%20fill='%23fff'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='m54%20168%201-3.8H19a8%208%200%200%200-1%203.8h36ZM101.7%20168l-1.3-3.8H63a8%208%200%200%200-1%203.8h39.6Z'/%3e%3cpath%20fill='%233300C2'%20d='M86.9%2059.6c.3%2020-5.4%2037.7-5.4%2037.7l50.3-.1s4.7-18.7%202-31c-2.6-12.3-16.2-21.8-22.5-22.3-6.2-.6-20.6%204.6-20.6%204.6'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M86.9%2059.6c.3%2020-5.4%2037.7-5.4%2037.7l50.3-.1s4.7-18.7%202-31c-2.6-12.3-16.2-21.8-22.5-22.3-6.2-.6-20.6%204.6-20.6%204.6'/%3e%3cpath%20fill='%23fff'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M96.7%2047.1s.6%205.5%202%209c1.2%203.6%202%207.3%202%207.3s6.8-17.5%208.3-19.6c0%200-8%206.5-12.3%203.3Z'/%3e%3cpath%20fill='%23EAB1A0'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='m105.8%2038.3%203.1%205.5s-4%206.8-8.6%206.7c-4.7%200-3.5-5.6-3.5-5.6l9-6.6Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='m101.8%2044.7-4%204.9-1-2.5%205-2.4ZM97%2083.1H85.6l-3.3-17.9h11.1l3.4%2017.9Z'/%3e%3cpath%20fill='%23EAB1A0'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M101.6%2082.6c-1-1.6-2.3-3-3.2-4.5-1.2-2-1.7-4.5-2.3-6.8-2.5-.7-2.6%204-2.4%206%20.3%201.8%201%203.7%201%203.7-2-.4-10.4-4.7-10.4-4.7.3%200-1.4%202.3-.7%203.3l1%201.3s-.7%201.3-.7%202c-.1%201.2%201.1%202.2%201.1%202.2l.1%202.3c.2.8%201.5%201.5%201.5%201.5s0%201.4.7%201.8c.7.3%2011.2%201.2%2015.8%201.4%200-1.6.5-3.4.3-5%200-1.5-1-3.2-1.8-4.5Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M111.7%2021.9c.4.8-.2%201.8-1%202.4-.7.5-1.7.7-2.6%201%201.2-.4%202.6-.2%203.8.2.4.2.8.4%201%20.7.3.5.1%201.2-.2%201.6-.3.4-.8.8-1.3%201-1.4.7-3%201.2-4.5%201.3%201%200%201.5%201.1%201.1%201.9-.4.8-1.3%201.2-2.2%201.4-1.5.4-3.3.4-4.5-.4-.7-.4-1.1-1-1.5-1.5a7%207%200%200%201-.2-7.4%209%209%200%200%201%205.7-3.8c1.7-.3%205.6-.3%206.4%201.6Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M68.7%2025c.5%201.7%203%202%204.6%201.3-1.2.2-2.4.4-3.3%201.2-1%20.9-1.1%202.4-.1%203%20.3.3.8.4%201.3.4a9%209%200%200%200%204.6-1c-1%20.6-2%201.9-1.3%203%20.6.9%202.2.8%203.2.2%201-.6%202-1.5%203-1.8-.6.4-1.3.8-1.5%201.5-.3.6%200%201.6.6%201.7.5.1%201%200%201.4-.2%201.1-.6%202.2-1.3%203-2.3-1%20.3-.8%201.9.1%202.3%201%20.4%202%200%203-.6a8.5%208.5%200%200%200%202.8-3c-.3.4%200%201.1.6%201.5%201%20.6%202.4.7%203.5.3a9%209%200%200%200%203-2%207%207%200%200%200%202-2.4c.6-1.4.2-3-.7-4.2A10%2010%200%200%200%2095%2021c-4.3-2.3-9.8-3-14.6-1.7a6.6%206.6%200%200%200-6.8-2c-.7.3-1.5.7-1.8%201.4-.5%201.2.5%202.3%201.6%202.8-2%200-5.4%201-4.6%203.5Z'/%3e%3cpath%20fill='%23EAB1A0'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M80.6%2027.7c.7-.7%2010.6-6.8%2010.6-6.8l10.2%203.8%204.8%209.1v.2c.9%207.4-3.1%2010.5-8.8%2013.2-5%202.4-16-1.6-16.9-19.4%200%200%200%200%200%200Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M70.3%2017.3c-.3-.9-.3-1.8.2-2.4.5-.5%201.2-.7%201.9-.6.7%200%201.3.4%201.9.7-.9-.8-.3-2.3.8-2.7%201.1-.3%202.4.1%203.2%201%20.5.4%201%204.3%201.5%204.4.6.1%201%200%201.5-.2%202.4-.9%205-1.5%207.4-1.8%201.9-.3%203.8-.4%205.6-.2%202.1.3%204.2%201%206.2%201.9v0c3.4.2%207.4%2010.5%206.4%2010.8-.9.2.2%200-.1.1-2.1.7-6.4-.7-7.6-1.1a12%2012%200%200%201-3.1-2.1c-1.8-1.4-4-2.2-6.2-2.6l-1.4-.2c-1.8.7-3.8%201-5.8.7-.7%200-1.5-.3-2-.8-.3-.4-.3-1.2.2-1.5-1%20.5-2.1.7-3.3.7-.7%200-1.6%200-2.2-.7-.6-.5-.5-1.6.3-1.8-1.3.3-2.8.7-4%200-.7-.5-1.2-.7-1.4-1.6Z'/%3e%3cpath%20fill='%23EAB1A0'%20d='M100%2027.8c-.6-1.7.7-4.3%202.4-4.6%202.6-.5%204%202%204.5%204%20.5%201.8.6%203.8-.2%205.6-.3.5-.6%201-1.2%201.4'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M100%2027.8c-.6-1.7.7-4.3%202.4-4.6%202.6-.5%204%202%204.5%204%20.5%201.8.6%203.8-.2%205.6-.3.5-.6%201-1.2%201.4'/%3e%3cpath%20fill='%23F3F6F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M96.8%207.7c2%200%203.6-1.5%203.6-3.4%200-1.8-1.6-3.3-3.6-3.3s-3.6%201.5-3.6%203.3c0%201.9%201.6%203.4%203.6%203.4Z'/%3e%3cpath%20fill='%23F3F6F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M107.4%2022.1c0-.1%200-3.3-1.5-7.5-1.6-4-4.9-9.1-11.6-10.4-8.2-1.2-13.2%204-15.4%207.3-2.3%203.2-2.4%205.3-2.4%205.3a67%2067%200%200%201%2030.9%205.3Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M93.3%2017.9c.7-.9.4-2.2-.6-2.7-1-.4-2.4.2-2.7%201.2.7-.9.4-2.2-.5-2.9-.9-.7-2.3-.7-3.2%200-1%20.6-1.3%201.9-1%202.9%200-.7%200-1.5-.2-2.1-.3-.7-1-1.3-1.7-1.3-.5%200-1%20.2-1.4.5a3%203%200%200%200-1%203c-.3-1-.5-2.1-1.2-3-.7-1-1.8-1.6-3-1.4-1%20.2-2%201.3-2%202.3%200%201%20.7%202%201.5%202.7.1%200%2014.6%204%2017%20.8Z'/%3e%3cpath%20fill='%233300C2'%20d='M128%2054.8s22%2026.5%2018.9%2037.8c-2%206.7-47%204.9-47%204.9l2.5-14.3%2023.7-1.5-9.7-12.5'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M128%2054.8s22%2026.5%2018.9%2037.8c-2%206.7-47%204.9-47%204.9l2.5-14.3%2023.7-1.5-9.7-12.5'/%3e%3cpath%20fill='%23fff'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M57.4%201.4H1v29.4h33.2L48.9%2045l-.2-14.2h8.7V1.4Z'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M2.3%20168h219.4'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='M29.2%2026.3c6.2%200%2011.3-4.7%2011.3-10.5S35.4%205.2%2029.2%205.2C23%205.2%2017.9%2010%2017.9%2015.8s5%2010.5%2011.3%2010.5Z'/%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='.6'%20d='m25.2%2012%208%207.5M33.2%2012l-8%207.5'/%3e%3c/svg%3e",qe=e=>$r(e),fo=(()=>{const e=new Set,t=(r,s,o,i)=>{let c=i==null?void 0:i[o];return c=ee(c)?c:Po,!Bn(c(r[o]),c(s[o]))};return Object.defineProperty(r=>(s,o)=>{try{for(const i in s)if(e.add(i),t(s,o,i,r))return!1;for(const i in o)if(!e.has(i)&&(e.add(i),t(s,o,i,r)))return!1;return!0}finally{e.clear()}},"exclude",{value:ne})})(),xc=/^\s+|\s+(?=\s|$)/g,wn=(e,t)=>(t?typeof t=="string"?t:(t==null?void 0:t.value)??"":"").replace(xc,"")||e.replace(xc,"")||void 0,mo=(e,t,n)=>x(wn("",n),wn(wn("",t)||"",e)),ma=(e,t=[],n=[])=>x([...n,...t==null?void 0:t.map(r=>e?`${e}--${r}`:r)]),Go=e=>jn(e,(e==null?void 0:e.value)??e),it="adyen-pe-button",Pi=`${it}-actions`,B1=`${it}--icon`,$1=`${it}--icon-content`,U1=`${Pi}__container-wrapper`,W1=`${it}__label`,H1=`${it}__icon-right`,G1=`${it}__icon-left`,Y1=`${it}--condensed`,j1=`${it}--full-width`,z1=`${it}--loading`,Mi=({inline:e=!1,size:t="large"})=>a("div",{className:`adyen-pe-spinner__wrapper ${e?"adyen-pe-spinner__wrapper--inline":""}`,children:a("div",{className:`adyen-pe-spinner adyen-pe-spinner--${t}`})}),Yo=(e,t,n,r,s,o)=>{const{children:i,iconLeft:c,iconRight:l,iconButton:u=!1,fullWidth:h,condensed:d,state:p="default"}=s,f=E(T=>{T.preventDefault(),r||o==null||o(T)},[r,o]),g=y(()=>ma(n,t,[n,e]),[n,t,e]),_=y(()=>({...s,className:x(g,{[B1]:u,[Y1]:d,[j1]:h,[z1]:p==="loading"}),disabled:r||p==="loading"}),[g,d,r,h,u,s,p]),A=y(()=>u?a("div",{className:`${$1}`,children:i}):a(V,{children:[p==="loading"&&a(Mi,{size:"x-small"}),c&&a("span",{className:G1,children:c}),a(k,{className:W1,el:ce.SPAN,variant:b.BODY,children:i}),l&&a("span",{className:H1,children:l})]}),[i,u,c,l,p]);return{classes:g,click:f,allChildren:A,allProps:_}};var le=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.TERTIARY_WITH_BACKGROUND="tertiary-with-background",e.LINK="link",e))(le||{});function V1(e,t){const n=y(()=>wn("",e.className)||"",[e.className]),r=y(()=>Go(e.disabled||!1),[e.disabled]),{click:s,allChildren:o,allProps:i}=Yo(n,[...e.classNameModifiers||[],e.variant||le.PRIMARY],it,r,e,e.onClick);return a("button",{...i,ref:t,type:e.type||"button",onClick:s,children:o})}const he=qe(V1),Bc={md:680,lg:1024},qt=({title:e,message:t,imageDesktop:n,imageMobile:r,withImage:s,centered:o,refreshComponent:i,onContactSupport:c,translationValues:l,absolutePosition:u=!0,outlined:h=!0,renderSecondaryButton:d})=>{const{i18n:p,updateCore:f}=Y(),g=E(_=>Array.isArray(_)?_.map((A,T)=>T===0?a(V,{children:[p.get(A),l&&l[A]&&a(V,{children:l[A]})]}):a(V,{children:[a("br",{}),p.get(A),l&&l[A]&&a(V,{children:l[A]})]})):p.get(_),[p,l]);return a("div",{className:x(["adyen-pe-error-message-display"],{"adyen-pe-error-message-display--absolute-position":u,"adyen-pe-error-message-display--outlined":h,"adyen-pe-error-message-display--with-background":!h,"adyen-pe-error-message-display--centered":o}),children:[(n||r||s)&&a("div",{className:"adyen-pe-error-message-display__illustration",children:a("picture",{children:[a("source",{type:"image/svg+xml",media:`(min-width: ${Bc.md}px)`,srcSet:n}),a("source",{type:"image/svg+xml",media:`(max-width: ${Bc.md}px)`,srcSet:r}),a("img",{srcSet:n??x1,alt:p.get("thereWasAnUnexpectedError")})]})}),a(k,{variant:b.TITLE,children:p.get(e)}),t&&a(k,{variant:b.BODY,children:g(t)}),(c||i||d)&&a("div",{className:"adyen-pe-error-message-display__button",children:[d&&d(),c&&a(he,{onClick:c,children:p.get("contactSupport")}),!c&&i&&a(he,{onClick:f,children:p.get("refresh")})]})]})},yn=(e,t)=>ee(e.endpoints[t]),ui={transactions:e=>yn(e,"getTransactions"),transactionDetails:e=>yn(e,"getTransaction"),payouts:e=>yn(e,"getPayouts"),payoutDetails:e=>yn(e,"getPayout"),reports:e=>yn(e,"getReports"),capitalOverview:e=>yn(e,"getDynamicGrantOffersConfiguration"),capitalOffer:e=>yn(e,"getDynamicGrantOffer")},xu=async e=>{const t=Yl(),n=t.promise,r=e.context.refreshing;let s,o,i=e.subscribe(c=>{if($n(c)){t.resolve();return}if(s??(s=e.context.refreshing),!e.context.refreshing){if(wt(e.context.isExpired)&&(o??(o=!(r||s)))){o=!1,e.refresh();return}t.resolve()}});return n.finally(()=>{i(),i=null}),n},q1=async(e,t)=>{var n;return await xu(t),Pe(await((n=ui[e])==null?void 0:n.call(ui,t.context)))},K1=e=>{switch(e){case"payouts":return"weCouldNotLoadThePayoutsOverview";case"transactions":return"weCouldNotLoadTheTransactionsOverview";case"transactionDetails":return"weCouldNotLoadYourTransactions";case"payoutDetails":return"weCouldNotLoadYourPayouts";case"reports":return"weCouldNotLoadTheReportsOverview";default:return"somethingWentWrong"}},Bu=xr({endpoints:$,extraConfig:$,hasError:!1,http:H0,isExpired:void 0,isFrozen:!1,refresh:ne,refreshing:!1}),Z1=({children:e,session:t,type:n})=>{const{http:r,refresh:s}=y(()=>t,[t]),[,o]=F(0),[i,c]=F(0),[l,u]=F();return H(()=>{q1(n,t).then(u)},[t,n]),H(()=>t.subscribe(h=>{($n(h)?c:o)(p=>p+1)}),[i]),a(Bu.Provider,{value:{...t.context,http:r,refresh:s},children:!Z(l)&&(l?hn(e):a(qt,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[K1(n),"contactSupportForHelp"]}))})},Ce=()=>Br(Bu),Rt=(e=!1)=>{const[t,n]=F(e),r=E(o=>n(o),[]),s=E(()=>n(o=>!o),[]);return[t,r,s]},X1=({i18n:e=new Uo().i18n,children:t,commonProps:n,loadingContext:r,updateCore:s,externalErrorHandler:o})=>{const[i,c]=Rt(!1),l=y(()=>n||{},[n]),u=y(()=>r??"",[r]);return H(()=>{(async()=>{await(e==null?void 0:e.ready),c(!0)})().catch()},[]),i?a(Fu.Provider,{value:{i18n:e,commonProps:l,loadingContext:u,updateCore:s,externalErrorHandler:o},children:hn(t)}):null};var Ml;class $u{constructor(t){B(this,"_component");B(this,"_node",null);B(this,"_id",`${(Ml=this.constructor)==null?void 0:Ml.type}-${ta()}`);B(this,"defaultProps",{});B(this,"props");B(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...t}),this.props.core.registerComponent(this)}formatProps(t){return t}formatData(){return{}}setState(t){this.state={...this.state,...t}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(t){const n=ot(t)?document.querySelector(t):t;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),Xn(this._component,n),this}update(t){return this.props=this.formatProps({...this.props,...t}),this._component=this.render(),this._node&&Xn(this._component,this._node),this}remount(t){if(!this._node)throw new Error("Component is not mounted.");const n=t||this.render();return Xn(n,this._node),this}unmount(){return this._node&&Xn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}B($u,"type");class Un extends $u{constructor(n){super(n);B(this,"componentRef",null);B(this,"componentToRender",null);B(this,"elementRef");B(this,"onContactSupport");B(this,"customClassNames");B(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,r){var s,o;return(s=this.componentRef)!=null&&s.setStatus?this.componentRef.setStatus(n,r):(o=this.setUIElementStatus)==null||o.call(this,n),this}render(){const n=this.props.core,r=n.update.bind(n),s=this.props.onError||n.onError||null;return n.session.errorHandler=s,a(Z1,{type:this.type,session:n.session,children:a(X1,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:r,externalErrorHandler:s,children:this.componentToRender&&a("div",{className:x("adyen-pe-component",this.customClassNames),children:this.componentToRender()})})},performance.now())}}function Ct({fetchOptions:{keepPrevData:e,onSuccess:t,enabled:n}={keepPrevData:!0},queryFn:r}){const s=G(!1),o={error:void 0,data:void 0,isFetching:wt(n)},i=(h,d)=>{switch(d.type){case"loading":return{...o,isFetching:!0,data:e?h.data:void 0};case"fetched":return{...o,data:d.payload,isFetching:!1};case"error":return{...o,error:d.payload,isFetching:!1};default:return h}},[c,l]=Ho(i,o),u=E(async()=>{l({type:"loading"});try{if(s.current)return;const h=await r();t==null||t(h),l({type:"fetched",payload:h})}catch(h){if(s.current)return;l({type:"error",payload:h})}},[l,r,t]);return H(()=>(s.current=!1,wt(n)&&u(),()=>{s.current=!0}),[n,u]),c}const jo=qe(({title:e,...t},n)=>a("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&a("title",{children:e}),a("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"})]})),pa=qe(({title:e,...t},n)=>a("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&a("title",{children:e}),a("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"})]})),_a="adyen-pe-accordion",ga=_a+"__header",Q1=ga+"-container",J1=ga+"-controller",em=_a+"__content";function $c({children:e,classNames:t,header:n,headerInformation:r}){var l;const[s,o]=F(!1),i=G(null),c=E(()=>{o(!s)},[s]);return a("div",{className:x(_a,t),children:[a("h3",{className:ga,children:[a("button",{id:"accordion-controller","aria-controls":"accordion-content",className:Q1,onClick:c,"aria-expanded":s,children:a("div",{className:J1,children:[n,s?a(pa,{height:8,width:15}):a(jo,{height:8,width:15})]})}),r&&a("div",{children:r})]}),a("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:s?(l=i==null?void 0:i.current)==null?void 0:l.offsetHeight:0},className:em,children:a("div",{ref:i,children:e})})]})}const Zt="adyen-pe-card",Uu=`${Zt}__body`,Wu=`${Zt}__header`,tm=`${Zt}__title`,nm=`${Zt}__subtitle`,rm=`${Wu}-content`,sm=`${Uu}--with-title`,om=`${Zt}--no-outline`,im=`${Zt}--no-padding`,am=`${Zt}--filled`,cm=`${Zt}__footer`,Xs=({title:e,subTitle:t,children:n,footer:r,el:s,renderHeader:o,renderFooter:i,filled:c,noOutline:l,noPadding:u,classNameModifiers:h,testId:d})=>{const p=s||"header";return a("section",{className:x(Zt,{[am]:c,[om]:l,[im]:u},h),"data-testid":d,children:[(e||o)&&a(p,{className:Wu,children:(e||o)&&a("div",{className:rm,children:[o||a("span",{className:tm,children:e}),t&&a("div",{className:nm,children:t})]})}),a("div",{className:x(Uu,{[sm]:e||o}),children:n}),(r||i)&&a("footer",{className:cm,children:i||r})]})},Uc="2-digit",ya="long",Wc="numeric",Hu="short",lm="shortOffset",Ur={month:ya,day:Wc,year:Wc},Gu={hour:Uc,minute:Uc},Yu={...Ur,...Gu,month:Hu,hour12:!1},ju={...Yu,year:void 0},zu={...Ur,month:"short"},um=Ur,dm=ju,hm={...Ur,weekday:ya},Hc={...Ur,month:Hu},fm=Yu,mm=ju,pm={...Ur,...Gu,weekday:ya,timeZoneName:lm},ct={sm:480,md:768,lg:1024},$s="adyen-pe-structured-list",Vu=`${$s}__item`,Gc=`${$s}__grid`,_m=`${$s}__content`,gm=`${$s}__label`,ym=`${Vu}--has-highlight`,Tm=e=>{const{i18n:t}=Y();return y(()=>e.map(n=>({key:n.key,value:n.value,id:ta(),label:t.get(n.key)})),[t,e])},Am="6-6";function kn({items:e,highlightable:t,renderValue:n,renderLabel:r,layout:s=Am,grid:o=!0,classNames:i}){const[c,l]=y(()=>s.split("-").map(d=>`${Gc}--width-${d}-of-12`),[s]),u=Tm(e),{i18n:h}=Y();return a("div",{"aria-label":h.get("structuredList"),className:x($s,i),children:u.map((d,p)=>a("dl",{className:x(Vu,{[ym]:t,[Gc]:o}),children:[a("dt",{className:x(gm,c),children:r?r(d.label,e[p].key):a(k,{variant:b.BODY,children:d.label})}),a("dd",{"aria-label":`${h.get(d.key)} ${h.get("value")}`,className:x(_m,l),children:n?n(d.value,d.key):a(k,{variant:b.BODY,children:d.value})})]},`${p}_${d.id||"0"}`))})}const qu="adyen-pe-overview-details",Ta=`${qu}__skeleton`,Em=`${Ta}-container`,Cm=`${Ta}--loading-content`,Nm=`${qu}__status-skeleton`,Sm=({skeletonRowNumber:e=0})=>{const t=x(Ta,Cm),n=Array.from({length:e}),r=Array.from({length:2});return a("div",{className:Em,children:[a("div",{className:Nm,children:r.map((s,o)=>a("span",{className:t},`status-skeleton-${o}`))}),n.map((s,o)=>a("span",{className:t},`skeleton-${o}`))]})},Aa=be(Sm),Fi=e=>{const{i18n:t}=Y();return E((...n)=>{const r=t.timezone;try{return e(...n)}finally{t.timezone=r}},[t,e])},vm=e=>{const{i18n:t}=Y(),n=Fi(E(()=>(t.timezone=void 0,t.timezone=e,t.timezone),[t,e]));return y(n,[n])},Xt=e=>{const{i18n:t}=Y(),n=vm(e),r=Fi(E((...o)=>(t.timezone=n,t.date(...o)),[t,n])),s=Fi(E((...o)=>(t.timezone=n,t.fullDate(...o)),[t,n]));return{dateFormat:r,fullDateFormat:s}},Wr="adyen-pe-payout-data",Om=`${Wr}__title-container`,Rm=`${Wr}__title`,bm=`${Wr}__title--ba-id`,Ea=`${Wr}__content`,zn=`${Ea}--section`,Qs=`${Ea}--card`,Yc=`${Qs}-title`,es=`${zn}-amount`,jc=`${es}-gross`,Im=`${es}-net`,Lm=`${Wr}--unpaid-amount`;var Te=(e=>(e.DEFAULT="default",e.WARNING="warning",e.ERROR="error",e.SUCCESS="success",e.WHITE="white",e.LIGHT="light",e.LIGHT_WITH_OUTLINE="light-with-outline",e.BLUE="blue",e))(Te||{});const It=be(({variant:e=Te.DEFAULT,label:t})=>a("div",{className:x("adyen-pe-tag",{"adyen-pe-tag--success":e===Te.SUCCESS,"adyen-pe-tag--default":e===Te.DEFAULT,"adyen-pe-tag--warning":e===Te.WARNING,"adyen-pe-tag--error":e===Te.ERROR,"adyen-pe-tag--primary":e===Te.WHITE,"adyen-pe-tag--light":e===Te.LIGHT,"adyen-pe-tag--light-with-outline":e===Te.LIGHT_WITH_OUTLINE,"adyen-pe-tag--blue":e===Te.BLUE}),children:t})),Dm=({balanceAccountId:e,balanceAccountDescription:t,payout:n,isFetching:r})=>{var h;const{payout:s}=n??$,{dateFormat:o}=Xt("UTC"),{i18n:i}=Y(),c=y(()=>{var p,f;const d=(f=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.adjustmentBreakdown)==null?void 0:f.reduce((g,_)=>{var O,L,S,I,N,M,P;const A=(O=_==null?void 0:_.amount)!=null&&O.value&&((L=_==null?void 0:_.amount)!=null&&L.currency)?i.amount((S=_==null?void 0:_.amount)==null?void 0:S.value,(I=_==null?void 0:_.amount)==null?void 0:I.currency,{hideCurrency:!0}):(((N=_==null?void 0:_.amount)==null?void 0:N.value)??"").toString(),T=`${_==null?void 0:_.category}`,C=i.get(T),R=_!=null&&_.category&&C!==T?C:_==null?void 0:_.category;return _!=null&&_.category&&A&&R&&g[(M=_==null?void 0:_.amount)!=null&&M.value&&((P=_==null?void 0:_.amount)==null?void 0:P.value)<0?"subtractions":"additions"].push({key:R,value:A}),g},{subtractions:[],additions:[]});return d==null||d.subtractions.sort((g,_)=>g.key.localeCompare(_.key)),d==null||d.additions.sort((g,_)=>g.key.localeCompare(_.key)),d},[i,n]),l=y(()=>{var p,f;const d=(f=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.fundsCapturedBreakdown)==null?void 0:f.reduce((g,_)=>{var A,T,C,R;return((A=_==null?void 0:_.amount)==null?void 0:A.value)===0||(T=_==null?void 0:_.amount)!=null&&T.value&&_.category&&g.push({key:_.category,value:i.amount((C=_==null?void 0:_.amount)==null?void 0:C.value,(R=_==null?void 0:_.amount)==null?void 0:R.currency,{hideCurrency:!0})}),g},[]);return d==null||d.sort((g,_)=>g.key==="capture"?-1:_.key==="capture"?1:g.key.localeCompare(_.key)),d},[n,i]),u=y(()=>s!=null&&s.createdAt?o(new Date(s==null?void 0:s.createdAt),hm):"",[s,o]);return a(V,{children:s?a("div",{className:Wr,children:[a("div",{className:Rm,children:[a("div",{className:Om,children:[a(k,{variant:b.SUBTITLE,stronger:!0,children:i.get("netPayout")}),s.isSumOfSameDayPayouts&&a(It,{variant:Te.BLUE,label:i.get("sumOfSameDayPayouts")})]}),a(k,{variant:b.TITLE,large:!0,children:`${i.amount(s.payoutAmount.value,s.payoutAmount.currency,{hideCurrency:!0})} ${s.payoutAmount.currency}`}),a(k,{variant:b.BODY,children:u}),a("div",{className:zn,children:[t&&a(k,{variant:b.CAPTION,stronger:!0,wide:!0,children:`${t}`}),a(k,{variant:b.CAPTION,className:bm,children:`${e}`})]})]}),a("div",{className:Ea,children:[a("div",{className:zn,children:(s==null?void 0:s.fundsCapturedAmount)&&(l&&Object.keys(l).length>0?a($c,{header:a(k,{variant:b.BODY,children:i.get("fundsCaptured")}),headerInformation:a(k,{variant:b.BODY,children:i.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)}),children:a("div",{className:zn,children:a("div",{className:Qs,children:a(Xs,{noPadding:!0,children:a(kn,{items:l})})})})}):a("div",{className:x(es,jc),children:[a(k,{variant:b.BODY,children:i.get("fundsCaptured")}),a(k,{variant:b.BODY,children:i.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)})]}))}),a("div",{className:zn,children:c!=null&&c.subtractions&&Object.keys(c==null?void 0:c.subtractions).length>0||c!=null&&c.additions&&Object.keys(c==null?void 0:c.additions).length>0?a($c,{header:a(k,{variant:b.BODY,children:i.get("adjustments")}),headerInformation:a(k,{variant:b.BODY,children:i.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)}),children:[(c==null?void 0:c.additions)&&Object.keys(c==null?void 0:c.additions).length>0&&a("div",{className:Qs,children:a(Xs,{noPadding:!0,renderHeader:a(k,{className:Yc,variant:b.CAPTION,stronger:!0,children:i.get("additions")}),children:a(kn,{items:c==null?void 0:c.additions})})}),(c==null?void 0:c.subtractions)&&Object.keys(c==null?void 0:c.subtractions).length>0&&a("div",{className:Qs,children:a(Xs,{noPadding:!0,renderHeader:a(k,{className:Yc,variant:b.CAPTION,stronger:!0,children:i.get("subtractions")}),children:a(kn,{items:c==null?void 0:c.subtractions})})})]}):a("div",{className:x(es,jc),children:[a(k,{variant:b.BODY,children:i.get("adjustments")}),a(k,{variant:b.BODY,children:i.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)})]})}),a("div",{className:x(zn),children:a("div",{className:x(es,Im),children:[a(k,{variant:b.BODY,stronger:!0,children:i.get("netPayout")}),a(k,{variant:b.BODY,stronger:!0,children:i.amount(s.payoutAmount.value,s.payoutAmount.currency)})]})})]}),((h=n==null?void 0:n.payout)==null?void 0:h.unpaidAmount)&&a("div",{className:Lm,children:[a(k,{variant:b.BODY,children:i.get("remainingAmount")}),a(k,{variant:b.BODY,children:i.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):a(Aa,{skeletonRowNumber:6})})},zc={"angle-right":()=>Promise.resolve().then(()=>require("./angle-right-reGJ7jfy.cjs")),"checkmark-circle-fill":()=>Promise.resolve().then(()=>require("./checkmark-circle-fill-daKF6pt4.cjs")),"checkmark-square-fill":()=>Promise.resolve().then(()=>require("./checkmark-square-fill-B6wYCtwy.cjs")),checkmark:()=>Promise.resolve().then(()=>require("./checkmark-DLQ0eQ9B.cjs")),"chevron-down":()=>Promise.resolve().then(()=>require("./chevron-down-DN0sbcES.cjs")),"chevron-left":()=>Promise.resolve().then(()=>require("./chevron-left-DQy9RoLd.cjs")),"chevron-right":()=>Promise.resolve().then(()=>require("./chevron-right-C1v8rslw.cjs")),"chevron-up":()=>Promise.resolve().then(()=>require("./chevron-up-DLQHTfYo.cjs")),copy:()=>Promise.resolve().then(()=>require("./copy-BAyT_BYn.cjs")),"cross-circle-fill":()=>Promise.resolve().then(()=>require("./cross-circle-fill-DUcHCmLb.cjs")),cross:()=>Promise.resolve().then(()=>require("./cross-8jn1CRBO.cjs")),download:()=>Promise.resolve().then(()=>require("./download-BwO4dcZi.cjs")),filter:()=>Promise.resolve().then(()=>require("./filter-DGCUlKbX.cjs")),"info-filled":()=>Promise.resolve().then(()=>require("./info-filled-y_-s_7-J.cjs")),"minus-circle-outline":()=>Promise.resolve().then(()=>require("./minus-circle-outline-BombUmpi.cjs")),"plus-circle-outline":()=>Promise.resolve().then(()=>require("./plus-circle-outline-2EQEIXAM.cjs")),square:()=>Promise.resolve().then(()=>require("./square-Ds2_OrAo.cjs")),"warning-filled":()=>Promise.resolve().then(()=>require("./warning-filled-DL73IbMz.cjs")),warning:()=>Promise.resolve().then(()=>require("./warning-CqutbHgk.cjs"))},st=({className:e,name:t,...n})=>{const[r,s]=F(null);return H(()=>{zc[t]?zc[t]().then(({default:o})=>{s(a(o,{}))}):(s(null),console.error(`Icon with name "${t}" does not exist.`))},[t]),r&&a("span",{className:x("adyen-pe-icon",e),role:"img","aria-hidden":!0,...n,children:r})};var ke=(e=>(e.WARNING="warning",e.CRITICAL="critical",e.HIGHLIGHT="highlight",e.SUCCESS="success",e))(ke||{}),ln=(e=>(e.DEFAULT="default",e.TIP="tip",e))(ln||{});const wm=({className:e,type:t})=>{switch(t){case ke.WARNING:return a(st,{name:"warning-filled",className:e});case ke.CRITICAL:return a(st,{name:"cross-circle-fill",className:e});case ke.HIGHLIGHT:return a(st,{name:"info-filled",className:e});case ke.SUCCESS:default:return a(st,{name:"checkmark-circle-fill",className:e})}},un=({className:e,description:t,title:n,type:r,children:s,onClose:o,variant:i=ln.DEFAULT})=>a("div",{className:x("adyen-pe-alert",`adyen-pe-alert--${r}`,`adyen-pe-alert--${i}`,e),role:"alert",children:[a(wm,{type:r,className:"adyen-pe-alert__icon"}),a("div",{className:"adyen-pe-alert__content",children:[n&&i!==ln.TIP&&a(k,{className:"adyen-pe-alert__title",el:ce.DIV,variant:b.BODY,wide:!0,strongest:!0,children:n}),t&&a(k,{className:"adyen-pe-alert__description",el:ce.DIV,variant:i!==ln.TIP?b.CAPTION:b.BODY,wide:!0,children:t}),s]}),o&&i!==ln.TIP&&a("div",{className:"adyen-pe-alert__close-button",children:a(he,{iconButton:!0,variant:le.TERTIARY,onClick:o,children:a(st,{name:"cross"})})})]});var zo=(e=>(e.BUTTONS_END="buttons-end",e.FILL_CONTAINER="fill-container",e.SPACE_BETWEEN="space-between",e.VERTICAL_STACK="vertical-stack",e))(zo||{}),Ku=(e=>(e.BUTTONS_START="buttons-start",e))(Ku||{});const km={...zo,...Ku};function Pm({actions:e,layout:t=km.BUTTONS_END}){const n=()=>`${Pi}--${t}`,r=o=>{const i=e.length-1;return o===i?le.PRIMARY:le.SECONDARY},s=y(()=>[...e].reverse(),[e]);return a("div",{className:Pi,children:a("div",{className:`${U1} ${n()}`,role:"group",children:s.map((o,i)=>a(he,{"aria-label":o.title,disabled:o.disabled,variant:o.variant||r(i),onClick:o.event,state:o.state??"default",children:o.renderTitle?o.renderTitle(o.title):o.title},`${i}_${o.title||"0"}`))})})}const Zu=be(Pm);var rt=(e=>(e[e.DETAILS=0]="DETAILS",e[e.REFUND=1]="REFUND",e[e.REFUND_SUCCESS=2]="REFUND_SUCCESS",e[e.REFUND_ERROR=3]="REFUND_ERROR",e))(rt||{}),rr=(e=>(e[e.INDETERMINATE=0]="INDETERMINATE",e[e.PARTIAL=1]="PARTIAL",e[e.FULL=2]="FULL",e))(rr||{}),$e=(e=>(e.NON_REFUNDABLE="non_refundable",e.PARTIAL_AMOUNT="partially_refundable_any_amount",e.PARTIAL_LINE_ITEMS="partially_refundable_with_line_items_required",e.FULL_AMOUNT="fully_refundable_only",e))($e||{}),qr=(e=>(e.IN_PROGRESS="in_progress",e.COMPLETED="completed",e.FAILED="failed",e))(qr||{}),Cn=(e=>(e.PARTIAL="partial",e.FULL="full",e))(Cn||{});const Xu=xr({availableItems:de,primaryAction:ne,secondaryAction:ne,transaction:$,extraFields:$}),Mm=be(({children:e,lineItems:t,refundAvailable:n,refundDisabled:r,setActiveView:s,setPrimaryAction:o,setSecondaryAction:i,transaction:c,transactionNavigator:l,extraFields:u})=>{const{i18n:h}=Y(),{currentTransaction:d,canNavigateBackward:p,canNavigateForward:f,backward:g,forward:_}=l,A=y(()=>({title:h.get("refundAction")}),[h]),T=y(()=>!n||r,[n,r]),C=E(()=>void(!T&&s(rt.REFUND)),[T,s]),R=y(()=>{if(d===c.id){if(p)return 2;if(f)return 1}},[p,f,d,c]),O=E(()=>{switch(R){case 2:return void g();case 1:return void _()}},[R,g,_]),L=y(()=>{switch(R){case 2:return{title:h.get("refund.returnToRefund"),renderTitle:S=>a(V,{children:[a(st,{style:{transform:"scaleX(-1)"},name:"angle-right"}),a("span",{children:S})]})};case 1:return{title:h.get("refund.goToPayment"),renderTitle:S=>a(V,{children:[a(st,{name:"angle-right"}),a("span",{children:S})]})}}},[R,h]);return H(()=>{o(n?Object.freeze({disabled:T,event:C,variant:le.PRIMARY,...A}):void 0)},[C,n,T,A,o]),H(()=>{i(R&&L?Object.freeze({disabled:!1,event:O,variant:le.SECONDARY,...L}):void 0)},[R,O,L,i]),a(Xu.Provider,{value:{availableItems:t,primaryAction:C,secondaryAction:O,transaction:c,extraFields:u},children:e})}),Fm=()=>Br(Xu),Ca=Object.freeze(["requested_by_customer","issue_with_item_sold","fraudulent","duplicate","other"]),xm=({refundAmount:e,refundReason:t,refundInProgress:n,refundTransaction:r,setActiveView:s,transactionId:o})=>{const{i18n:i}=Y(),c=y(()=>{const g=i.amount(e.value,e.currency);return{title:i.get("refundPayment",{values:{amount:g}})}},[e,i]),l=y(()=>({title:i.get("refundAction")}),[i]),u=y(()=>({title:`${i.get("inProgress")}..`,state:"loading"}),[i]),h=y(()=>({path:{transactionId:o}}),[o]),d=y(()=>({amount:e,refundReason:t}),[e,t]),p=E(()=>r==null?void 0:r({body:d,contentType:"application/json"},h).then(()=>{s(rt.REFUND_SUCCESS)}).catch(()=>{s(rt.REFUND_ERROR)}),[r,h,d,s]),f=y(()=>n?u:e.value>0?c:l,[e,n,c,l,u]);return{refundAction:p,refundActionLabel:f}},Bm=({interactionsDisabled:e,refundAmount:t,setActiveView:n,setPrimaryAction:r,setSecondaryAction:s,...o})=>{const{refundAction:i,refundActionLabel:c}=xm({...o,refundAmount:t,setActiveView:n}),{i18n:l}=Y(),u=y(()=>e||t.value<=0,[t,e]),h=E(()=>!u&&i(),[u,i]),d=e,p=y(()=>l.get("back"),[l]),f=E(()=>void(!d&&n(rt.DETAILS)),[d,n]);return H(()=>{r(Object.freeze({disabled:u,event:h,variant:le.PRIMARY,...c}))},[h,u,c,r]),H(()=>{s(Object.freeze({disabled:d,event:f,title:p,variant:le.SECONDARY}))},[f,d,p,s]),{primaryAction:h,secondaryAction:f}},$m=({availableAmount:e,currency:t,interactionsDisabled:n,items:r,refundMode:s})=>{const[o,i]=F(0),c=y(()=>{switch(s){case $e.NON_REFUNDABLE:return 0;case $e.PARTIAL_LINE_ITEMS:case $e.PARTIAL_AMOUNT:return o;case $e.FULL_AMOUNT:default:return e}},[e,r,s,o]),l=y(()=>Object.freeze({currency:t,value:c}),[c,t]),u=y(()=>!n&&s===$e.PARTIAL_AMOUNT,[n,s]),h=E(d=>void(u&&i(Et(0,d,e))),[e,u]);return H(()=>{i(e)},[e]),[l,h]},Vc=(e,t,n,r=0)=>{const{...s}=e.get(n.id),o=Et(0,Math.trunc(r),s.quantity+=n.quantity);s.quantity-=o,e.set(n.id,Object.freeze(s)),o>0&&t.push(Object.freeze({...s,quantity:o}))},qc=(e,t,n=de)=>{const r=new Map((n==null?void 0:n.map(({id:o,quantity:i})=>[o,i]))??de),s=[];return t.forEach(o=>{const i=r.get(o.id);Z(i)?s.push(o):r.delete(o.id)&&Vc(e,s,o,i)}),r.forEach((o,i)=>{Vc(e,s,{id:i,quantity:0},o)}),s.length>0?Object.freeze(s):de},Um=({currency:e,lineItems:t})=>{const[n,r]=F(de),s=y(()=>{const l=t==null?void 0:t.filter(u=>{if(u.amountIncludingTax.currency!==e)return;const h=u.availableQuantity;return h>0&&Number.isFinite(h)&&Math.trunc(h)===h}).map(({id:u,...h})=>[u,Object.freeze({amount:h.amountIncludingTax.value,quantity:h.availableQuantity,id:u})]);return new Map(l??de)},[e,t]),o=y(()=>(t==null?void 0:t.filter(({id:l})=>s.has(l)))??de,[n,t,s]),i=E(function(l){r(u=>{const d=[...arguments.length===0?new Map(u.map(({id:p})=>[p,0])):new Map((l==null?void 0:l.map(p=>[p,0]))??de)].map(([p,f])=>({id:p,quantity:f}));return qc(s,u,d)})},[s]),c=E(l=>r(u=>qc(s,u,l)),[s]);return{availableItems:o,clearItems:i,items:n,updateItems:c}},Wm=({interactionsDisabled:e,refundMode:t})=>{const[n,r]=F(Ca[0]),s=y(()=>!e&&t!==$e.NON_REFUNDABLE,[e,t]),o=E(i=>void(s&&r(i)),[s]);return[n,o]},qs=e=>{setTimeout(()=>{throw e},0)};function po({queryFn:e,options:t}){const{retry:n=!1,retryDelay:r=1e3,onSuccess:s,onError:o,onSettled:i,shouldRetry:c}=t||$,[l,u]=F(null),[h,d]=F(null),[p,f]=F("idle"),g=G(!0),_=G(0),A=E(()=>{u(null),d(null),f("idle"),_.current=0},[]),T=E(()=>{_.current=0},[]),C=E(async(...R)=>{try{f("loading"),d(null);const O=await(e==null?void 0:e(...R));return g.current&&(u(O),f("success")),Lr.then(()=>{s&&cn(s,O).catch(qs),i&&cn(i,O,null).catch(qs),T()}),O}catch(O){let L=0;if(Mr(n)&&(!c||c(O))?L=Math.max(0,Math.floor(n)):L=0,_.current++<L){const S=ee(r)?r(_.current):r??1e3;return await new Promise(I=>setTimeout(I,S)),C(...R)}throw g.current&&(d(O),f("error")),Lr.then(()=>{o&&cn(o,O).catch(qs),i&&cn(i,void 0,O).catch(qs),T()}),O}},[e,s,i,n,c,r,T,o]);return H(()=>()=>{g.current=!1},[]),y(()=>({data:l,error:h,status:p,isIdle:p==="idle",isLoading:p==="loading",isSuccess:p==="success",isError:p==="error",mutate:C,reset:A}),[l,h,p,C,A])}const Qu=xr({amount:0,availableAmount:0,availableItems:de,clearItems:ne,currency:"",interactionsDisabled:!1,items:de,primaryAction:ne,refundMode:$e.FULL_AMOUNT,refundReason:Ca[0],secondaryAction:ne,setAmount:ne,setRefundReason:ne,transactionId:"",updateItems:ne}),Hm=be(({availableAmount:e,children:t,currency:n,lineItems:r,refreshTransaction:s,refundMode:o,setActiveView:i,setPrimaryAction:c,setSecondaryAction:l,transactionId:u})=>{const{isLoading:h,mutate:d}=po({queryFn:Ce().endpoints.initiateRefund}),{availableItems:p,clearItems:f,items:g,updateItems:_}=Um({currency:n,lineItems:r}),A=h,[T,C]=$m({availableAmount:e,currency:n,interactionsDisabled:A,items:g,refundMode:o}),[R,O]=Wm({interactionsDisabled:A,refundMode:o}),{value:L}=T,{primaryAction:S,secondaryAction:I}=Bm({interactionsDisabled:A,refreshTransaction:s,refundAmount:T,refundInProgress:h,refundReason:R,refundTransaction:d,setActiveView:i,setPrimaryAction:c,setSecondaryAction:l,transactionId:u});return a(Qu.Provider,{value:{amount:L,availableAmount:e,availableItems:p,clearItems:f,currency:n,interactionsDisabled:A,items:g,primaryAction:S,refundMode:o,refundReason:R,secondaryAction:I,setAmount:C,setRefundReason:O,transactionId:u,updateItems:_},children:t})}),Na=()=>Br(Qu),Gm=()=>{let[e,t,n,r]=de;const s=()=>!!(e&&e===r&&n),o=()=>!!(e&&e===n&&r);let i=null;const c=()=>{s()&&(t=e,e=n,d())},l=()=>{o()&&(t=e,e=r,d())},u=(p,f)=>{const g=e;e=t=n=r=void 0,!Si(p)&&!Si(f)&&(n=p,r=f,e=g===n||g===r?g:n,g!==e&&d())},h=p=>{Ae(p)?i=null:ee(p)&&i!==(i=p)&&d()},d=()=>{const p=t,f=e;t=void 0,i==null||i(Q({from:ae(()=>p),to:ae(()=>f)}))};return Q({backward:W(c),forward:W(l),canNavigateBackward:ae(s),canNavigateForward:ae(o),currentTransaction:ae(()=>e),onNavigation:{set:h},reset:W(u)})},Ym=e=>{const[t,n]=F(e),[r,s]=F(e.id),[o,i]=F(performance.now()),{getTransaction:c}=Ce().endpoints,l=G(Gm()),u=l.current,h=G(!1),d=G(!1),p=G(e),f=G(r),g=y(()=>!!c&&!!r&&h.current,[r,c]),_=E(()=>c($,{path:{transactionId:r}}),[r,c]),{data:A,error:T,isFetching:C}=Ct({fetchOptions:{enabled:g},queryFn:_}),R=E(()=>s(void 0),[]);return H(()=>{r||s(t.id)},[r,t]),H(()=>{var S;const O=l.current,L=p.current;return L.category==="Refund"&&(O.reset(L.id,(S=L.refundMetadata)==null?void 0:S.originalPaymentId),O.onNavigation=({to:I})=>{h.current=!0,i(performance.now()),I&&s(I)}),()=>{h.current=!1,O.onNavigation=null,O.reset()}},[]),H(()=>{if(d.current!==C&&!(d.current=C))if(!A||T)s(f.current);else{const O=p.current;n(()=>({...A.id===O.id?O:$,...A})),f.current=r}},[A,T,C,r,o]),{fetchingTransaction:C,refreshTransaction:R,transaction:t,transactionNavigator:u}},jm=(e,t)=>{let n=t?(t==null?void 0:t.length)>0:!1,r=!1;return t==null||t.forEach(s=>{const o=!!e(s);n&&(n=o),r||(r=o)}),{every:n,some:r}},Ks=["completed","in_progress","failed"],zm=e=>{var R,O,L;const{i18n:t}=Y(),n=e==null?void 0:e.refundDetails,r=(n==null?void 0:n.refundMode)??$e.FULL_AMOUNT,s=Pe(n==null?void 0:n.refundLocked),o=r!==$e.NON_REFUNDABLE,i=(R=e==null?void 0:e.originalAmount)==null?void 0:R.value,c=y(()=>{var S;return e?Math.max(0,((S=n==null?void 0:n.refundableAmount)==null?void 0:S.value)??0):0},[n,e]),l=ee(Ce().endpoints.initiateRefund),u=l&&o&&c>0,h=((O=n==null?void 0:n.refundableAmount)==null?void 0:O.currency)??(e==null?void 0:e.amount.currency)??"",d=!u||s,p=y(()=>{var I;const S=((I=e==null?void 0:e.refundDetails)==null?void 0:I.refundStatuses)??[];return(S==null?void 0:S.filter(N=>N.amount.value!==0).sort((N,M)=>Ks.includes(N.status)&&Ks.includes(M.status)&&Ks.indexOf(N.status)>Ks.indexOf(M.status)?0:-1).reduce((N,M)=>{var j;const P=M.status,z=~M.amount.value+1;return N!=null&&N[P]?((j=N==null?void 0:N[P])==null||j.amounts.push(z),N):{...N,[P]:{amounts:[z],currency:M.amount.currency}}},{}))??{}},[(L=e==null?void 0:e.refundDetails)==null?void 0:L.refundStatuses]),f=y(()=>{var I,N;const S=(N=(I=p.completed)==null?void 0:I.amounts)==null?void 0:N.reduce((M,P)=>M+P,0);return S?Math.max(0,S??0):0},[p]),{some:g,every:_}=y(()=>jm(({status:S})=>S===qr.COMPLETED,n==null?void 0:n.refundStatuses),[n==null?void 0:n.refundStatuses]),A=y(()=>{var S;return c===0&&f>0&&_&&f===i?[{type:ke.HIGHLIGHT,label:t.get("refund.fullAmountRefunded")}]:((S=Object.keys(p))==null?void 0:S.map(N=>{var j,te;const M=N,P=(j=p==null?void 0:p[M])==null?void 0:j.amounts.reduce((K,se,Me)=>{var fe,Fe,pe;const ve=(fe=p==null?void 0:p[M])==null?void 0:fe.amounts.length;return ve>1&&Me===ve-1?`${K?`${K}`:""} ${t.get("and")} ${t.amount(se,(Fe=p==null?void 0:p[M])==null?void 0:Fe.currency)}`:`${K?`${K},`:""} ${t.amount(se,(pe=p==null?void 0:p[M])==null?void 0:pe.currency)}`},""),z=(te=p==null?void 0:p[M])==null?void 0:te.amounts.reduce((K,se)=>K+se,0);switch(N){case qr.COMPLETED:return{type:ke.HIGHLIGHT,label:t.get("refund.amountAlreadyRefunded",{values:{amount:P}})};case qr.IN_PROGRESS:return z===i?{type:ke.HIGHLIGHT,label:t.get("refund.theRefundIsBeingProcessed")}:{type:ke.HIGHLIGHT,label:t.get("refund.amountInProgress",{values:{amount:P}})};case qr.FAILED:return z===i?{type:ke.WARNING,label:t.get("refund.fullAmountFailed")}:{type:ke.WARNING,label:t.get("refund.amountFailed",{values:{amount:P}})};default:return}}))??[]},[c,i,t,f,p,_]),T=y(()=>{if(c>0){const S=t.amount(c,h);switch(r){case $e.FULL_AMOUNT:return{type:ke.HIGHLIGHT,description:t.get("refund.onlyRefundable",{values:{amount:S}})};case $e.PARTIAL_AMOUNT:return{type:ke.HIGHLIGHT,description:t.get("refund.maximumRefundable",{values:{amount:S}})};default:return null}}return null},[t,c,h,r]),C=y(()=>{switch(r){case $e.NON_REFUNDABLE:if(c===0&&f>0&&_&&f===i)return rr.FULL}switch(r){case $e.PARTIAL_AMOUNT:case $e.PARTIAL_LINE_ITEMS:if(c>0&&g&&f>0&&!Z(i)&&f<i)return rr.PARTIAL}return rr.INDETERMINATE},[c,f,r,i,g,_]);return{refundableAmount:c,refundable:o,refundableAmountLabel:T,refundAvailable:u,refundAuthorization:l,refundCurrency:h,refundDisabled:d,refundedAmount:f,refundedState:C,refundStatuses:A,refundLocked:s,refundMode:r}},Vm=e=>{const t=y(()=>window.matchMedia(e),[e]),[n,r]=F(t.matches);return H(()=>{const s=o=>r(o.matches);return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),H(()=>{r(t.matches)},[t]),n},Oe={up:{sm:`(min-width: ${ct.sm}px)`,md:`(min-width: ${ct.md}px)`,lg:`(min-width: ${ct.lg}px)`},down:{xs:`(max-width: ${ct.sm-1}px)`,sm:`(max-width: ${ct.md-1}px)`,md:`(max-width: ${ct.lg-1}px)`},only:{xs:`(max-width: ${ct.sm-1}px)`,sm:`(min-width: ${ct.sm}px) and (max-width: ${ct.md-1}px)`,md:`(min-width: ${ct.md}px) and (max-width: ${ct.lg-1}px)`,lg:`(min-width: ${ct.lg}px)`}},Re=Vm,ft="adyen-pe-popover",Ju="adyen-pe-tooltip",qm=`${ft}-container`,Kc=`${ft}__header`,Km=`${ft}__header-title`,di=`${ft}__content`,ed=`${Ju}__content`,Zm=`${ft}__footer`;function Xm({image:e=!0,onClick:t}){const{i18n:n}=Y();return a(V,{children:a(he,{className:e?"adyen-pe-popover-dismiss-button--on-image":"",iconButton:!0,variant:le.TERTIARY,onClick:t,"aria-label":n.get("closeIconLabel"),children:a("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[a("title",{children:"dismiss"}),a("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 Qm=be(Xm);function Jm({title:e,isImageTitle:t=!1}){return a(k,{strongest:!t,variant:t?b.SUBTITLE:b.BODY,children:e})}const ep=be(Jm);var je=(e=>(e.TOOLTIP="tooltip",e.POPOVER="popover",e))(je||{}),_e=(e=>(e.TOP="top",e.TOP_LEFT="top-left",e.RIGHT="right",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.LEFT="left",e))(_e||{}),as=(e=>(e.MEDIUM="medium",e.WIDE="wide",e))(as||{}),q=(e=>(e.ARROW_DOWN="ArrowDown",e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_UP="ArrowUp",e.BACKSPACE="Backspace",e.END="End",e.ENTER="Enter",e.ESCAPE="Escape",e.HOME="Home",e.PAGE_DOWN="PageDown",e.PAGE_UP="PageUp",e.SPACE="Space",e.TAB="Tab",e))(q||{}),J=(e=>(e.BALANCE_ACCOUNT="balanceAccount",e.CATEGORIES="categories",e.CURRENCIES="currencies",e.CREATED_SINCE="createdSince",e.CREATED_UNTIL="createdUntil",e.STATUSES="statuses",e.MIN_AMOUNT="minAmount",e.MAX_AMOUNT="maxAmount",e))(J||{});const Kr=(()=>{let e=[];const t=i=>{const c=i.reduce((l,u)=>{const h=u instanceof Node?e.findIndex(d=>{const p=d.element.getAttribute("id"),f=u&&(u!=null&&u.getAttribute)?u==null?void 0:u.getAttribute("id"):null;return p===f}):-1;return l===-1&&h!==-1?h:l},-1);c===-1?s(0):c+1<=e.length-1&&s(c+1)},n=i=>{const c=e.findIndex(l=>l.element.getAttribute("id")===i.getAttribute("id"));c>=0&&e.splice(c,1)},r=(i,c)=>{e.findIndex(u=>u.element.getAttribute("id")===i.getAttribute("id"))>=0||e.push({element:i,callback:c})},s=i=>{var l,u;const c=e.length;for(let h=i;h<c;h++)(u=(l=e==null?void 0:e[h])==null?void 0:l.callback)==null||u.call(l);e.splice(i)};return{add:r,remove:n,closeAll:()=>{e.forEach(i=>{var c;return(c=i==null?void 0:i.callback)==null?void 0:c.call(i)}),e=[]},closePopoversOutsideOfClick:t}})(),cs=Symbol("_ref");class td extends Error{}class tp extends td{}class np extends td{}function Sa(e){if(!ee(e))throw new np}const rp=e=>{try{if(ee(e)&&Dt(e,"current")&&Dt(e,cs)&&!Bn(e,e[cs])){const t=e.actions.get($),n=e.actions.size;return Z(t)&&Number.isInteger(n)&&n>=0}}catch{}return!1},ls=e=>rp(e)?ls(e[cs]):e;function sp(e){return!!e.current}const op=(()=>{const e=(r,s)=>{const o=r.get(s);if(!o)throw new tp;return o},t=(r,s,o)=>{let i,c;const l=ls(s);try{i=e(r,l)}catch{Sa(o)}if(i)[,c]=i;else{const u=ee(l),h=u?f=>{l(p=f)}:f=>{l&&(l.current=f,p=l.current)},d=f=>{if(c.size===0)return;const g=p;if(h(f),!Bn(p,g))for(const[_]of c)_(p,g)};let p=u?null:l.current;r.set(l,i=[d,c=new Map]),Object.defineProperties(d,{[cs]:{value:l},actions:{value:Q({get:{value:c.get.bind(c)},size:{get:()=>c.size}})},current:{get:()=>p,set:u?void 0:d}})}return o&&c.set(o,1+(c.get(o)||0)),i[0]},n=(r,s,o)=>{const i=ls(s),[,c]=e(r,i),l=c.get(o)||0;l===1?c.delete(o):l>1&&c.set(o,l-1),c.size===0&&i&&r.delete(i)};return()=>{const r=new WeakMap;return Q({bind:W(t.bind(void 0,r)),unbind:W(n.bind(void 0,r))})}})(),ip=op(),ap=e=>{Sa(e);const t=new WeakMap([[e,1]]),n=s=>{if(Bn(r,s))return;const o=r;e(r=s,o)};let r=null;return Object.defineProperties(n,{[cs]:{value:n},actions:{value:Q({get:{value:t.get.bind(t)},size:{value:1}})},current:{get:()=>r,set:n}})},cp=(e=ip)=>{let t,n=null,r,s=!1;const o=u=>{t=void 0,n=null,r=u,s=!1},i=()=>{s||(c(),s=!0)},c=()=>{try{if(!n)return;e.unbind(n,r)}catch{}};return Q({action:{get:()=>r},reflex:{get:()=>t},release:{value:i},update:{value:(u,h)=>{Sa(u),s&&o(u);const d=Ae(h)?null:h;if(r===u&&n===d){if(t)return}else if(n){if(Bn(ls(n),ls(d))){t=e.bind(n,u),c(),r=u;return}c()}r=u,t=(n=d)?e.bind(n,r):ap(r)}}})},Qt=(e,t)=>{const n=G(cp());return ho(()=>n.current.release,[]),y(()=>(n.current.update(e,t),n.current.reflex),[e,t])},Qn=Symbol("__control.Elem.");var nd=(e=>(e.POPOVER="POPOVER",e.DEFAULT="DEFAULT",e))(nd||{});const Zc=e=>{e.stopImmediatePropagation()},va=(e,t,n,r)=>{const s=G(null),o=E(c=>{const l=c.composedPath();if(s&&s.current)if(r==="POPOVER")Kr.closePopoversOutsideOfClick(l);else{let u=0,h=!1,d=l[u];for(;d instanceof Element&&!(h||(h=d==null?void 0:d.isSameNode(s.current)));)d=l[++u]??d.parentElement,(d==null?void 0:d[Qn])instanceof Element&&(d=d[Qn],l.length=0);t&&!h&&t(!0)}},[s,t,r]),i=G(o);return H(()=>()=>{s.current&&Kr.remove(s.current),document.removeEventListener("click",i.current,!0)},[]),H(()=>(document.removeEventListener("click",i.current,!0),i.current=o,document.addEventListener("click",i.current,!0),r==="POPOVER"&&s.current instanceof Element&&Kr.add(s.current,t),()=>{s.current&&Kr.remove(s.current),document.removeEventListener("click",i.current,!0)}),[o,t,r]),H(()=>{n?document.removeEventListener("click",i.current,!0):document.addEventListener("click",i.current,!0)},[n]),Qt(E((c,l)=>{l instanceof Element&&l.removeEventListener("focusout",Zc,!0),c instanceof Element&&(n||(c.addEventListener("focusout",Zc,!0),s.current=c))},[n,r]),e)},Oa=`
2
+ a[href],
3
+ audio[controls],
4
+ video[controls],
5
+ button,
6
+ input,
7
+ select,
8
+ textarea,
9
+ [contenteditable],
10
+ [tabindex]
11
+ `.replace(/\s+/,""),lp=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],Xc=new Map,rd=e=>e.tagName==="INPUT",up=e=>rd(e)&&e.type==="radio",dp=e=>{const t=e.name,n=e.form,r=Xc.get(n);let s=r==null?void 0:r.get(t);return Z(s)&&n&&(s=n.querySelector(`input[type=radio][name='${t}']:checked`)||null,Xc.set(n,(r||new Map).set(t,s))),s===e},hp=(e,t)=>{for(const n of t)if(n.type!=="attributes"){if(mc(n.addedNodes,r=>r instanceof Element&&xi(r))||mc(n.removedNodes,r=>e.includes(r)))return!0}else{if(xi(n.target))return!0;if(e.includes(n.target))return!0}return!1},Ra=(e=document.body,t)=>{if(Z(e))return!1;if(Ae(t))return!!document.activeElement&&Ra(e,document.activeElement);let n=t==null?void 0:t.parentNode;for(;n;){if(n===e)return!0;n=n==null?void 0:n.parentNode}return!1},ba=e=>!(!e.matches(Oa)||e!=null&&e.disabled||/^(true)?$/.test(e.getAttribute("inert"))||rd(e)&&e.hidden),xi=e=>!(up(e)&&!dp(e)||(e==null?void 0:e.tabIndex)<0||!ba(e)),fp=()=>{const e=new MutationObserver(c=>hp(t,c)&&o()),t=[];let n=-1,r=null;const s=c=>{var u;if(c<0)return;const l=Math.min(c,t.length-1);n!==l&&(n=l),(u=t[n])==null||u.focus()},o=()=>{t.length=0,r instanceof Element&&(r.querySelectorAll(Oa).forEach(c=>xi(c)&&t.push(c)),Ra(r)&&(i.current=document.activeElement))},i=Object.create(null,{current:{get:()=>t[n]??null,set:c=>{if(c){if(!Mr(c))return s(t.indexOf(c));if(c===~~c)return s(ws(n+c,t.length))}}},root:{get:()=>r,set:c=>{c!==r&&(r&&e.disconnect(),r=c instanceof Element?c:null,t.length=0,r&&(e.observe(r,{attributeFilter:lp,attributes:!0,childList:!0,subtree:!0}),o()))}},tabbables:{value:t}});return i},mp=(e,t)=>{const n=G(!1),r=G(null),s=G(!1),o=y(fp,[]),i=y(()=>{let h=null,d;return p=>{Z(d)||cancelAnimationFrame(d);let f=p.target;for(;f&&f!==p.currentTarget;){if(ba(f)){h=f,d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{var g;r.current!==h&&h instanceof HTMLElement&&((g=r.current=h)==null||g.focus()),h=null,d=void 0})});return}f=f.parentNode}}},[]),c=E(h=>{o.current=r.current=h.target},[]),l=E(h=>{o.tabbables.includes(h.relatedTarget)||Ra(h.currentTarget,h.relatedTarget)||s.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&t(n.current=!1)}))},[]),u=y(()=>{let h;return d=>{switch(d.code){case q.ARROW_DOWN:case q.ARROW_LEFT:case q.ARROW_RIGHT:case q.ARROW_UP:case q.END:case q.ESCAPE:case q.HOME:case q.PAGE_DOWN:case q.PAGE_UP:case q.TAB:cancelAnimationFrame(h),h=requestAnimationFrame(()=>{h=requestAnimationFrame(()=>{s.current=!1,h=void 0})}),s.current=!0;break}d.code===q.TAB?(d.preventDefault(),o.current=d.shiftKey?-1:1):d.code===q.ESCAPE&&t(!0)}},[]);return Qt(E((h,d)=>{d instanceof Element&&(d.removeEventListener("keydown",u,!0),d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",l,!0),h.removeEventListener("click",i,!0)),h instanceof Element?(h.addEventListener("keydown",u,!0),h.addEventListener("focusin",c,!0),h.addEventListener("focusout",l,!0),h.addEventListener("click",i,!0),n.current=!1,o.root=h):o.root=null},[]),e)},hi=(()=>{const e=new WeakMap,t=Q({remove:W(function(){r(this.observerCallback)})}),n=s=>{let o=e.get(s);if(Z(o)){const i=new IntersectionObserver(c=>{c.forEach(l=>{s&&s(l)})},{root:null,rootMargin:"",threshold:[1]});o=Fr(t,{observerCallback:W(s),observer:W(i)}),e.set(s,o)}return o},r=s=>{const o=e.get(s);o==null||o.observer.disconnect(),e.delete(s)};return n})(),pp=({popover:e,offset:t,targetElement:n,position:r,variant:s,fullWidth:o})=>{const i=n==null?void 0:n.current;let c=0,l=0;const u=i.getBoundingClientRect(),h=document.body.getBoundingClientRect(),d=e==null?void 0:e.firstChild,p=h.left+h.width/2-d.offsetWidth/2,f=u.left+u.width/2-d.offsetWidth/2,g=u.top+u.height/2-d.offsetHeight/2;switch(r){case _e.BOTTOM:c=o?p:s===je.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+t[1];break;case _e.BOTTOM_LEFT:c=(u==null?void 0:u.right)+window.scrollX-e.clientWidth,l=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+t[1];break;case _e.TOP:c=s===je.TOOLTIP?f+window.scrollX:u.left+window.scrollX,l=(u==null?void 0:u.top)-(d==null?void 0:d.clientHeight)+window.scrollY-t[0];break;case _e.RIGHT:c=u.left+u.width+window.scrollX+t[2],l=s===je.TOOLTIP?g+window.scrollY:(u==null?void 0:u.top)-(u==null?void 0:u.height)/2+window.scrollY;break;case _e.LEFT:c=(u==null?void 0:u.left)-(e==null?void 0:e.clientWidth)+window.scrollX-t[3],l=s===je.TOOLTIP?g+window.scrollY:(u==null?void 0:u.top)+window.scrollY-(u==null?void 0:u.height)/2;break}const _=[c,l,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${_.reduce((T,C,R)=>R===0?T+`${C}px,`:R===_.length-1?T+` ${C}px)`:T+` ${C}px,`,"translate3d(")};visibility:hidden`},_p=(e,t,n,r,s,o,i,c,l)=>{const[u,h]=F(!0),[d,p]=F(c?!c:!!r),[f,g]=F(r||_e.TOP),[_,A]=F([]),T=E(R=>{if(R.intersectionRatio===1)return p(!0);if(!u&&R.intersectionRatio!==1){if(_&&_.length===(c?5:4)){const O=_.reduce((L,S)=>S[1]>L[1]?S:L,_[0]);g(O[0]),p(!0);return}switch(p(!1),f){case _e.TOP:A(O=>[...O,[_e.TOP,R.intersectionRatio]]),g(_e.BOTTOM);break;case _e.BOTTOM:A(O=>[...O,[_e.BOTTOM,R.intersectionRatio]]),g(c?_e.BOTTOM_LEFT:_e.RIGHT);break;case _e.BOTTOM_LEFT:A(O=>[...O,[_e.BOTTOM,R.intersectionRatio]]),g(_e.RIGHT);break;case _e.RIGHT:A(O=>[...O,[_e.RIGHT,R.intersectionRatio]]),g(_e.LEFT);break;case _e.LEFT:A(O=>[...O,[_e.LEFT,R.intersectionRatio]]),g(_e.TOP);break}}},[u,_,f,c]),C=G(T);return H(()=>{hi(C.current).remove(),C.current=T},[T]),Qt(E((R,O)=>{var L,S;if(O&&(!r||c)&&hi(T).observer.unobserve(O),R&&t.current){if((!r||c)&&hi(T).observer.observe(R),!(R instanceof Element))return;const I=pp({popover:R,offset:e,targetElement:t,position:f,variant:n,fullWidth:i??!1}),N=d?I+";visibility:visible":I,M=o?N+";min-width:fit-content;width:"+((L=t.current)==null?void 0:L.clientWidth)+"px":N;R.setAttribute("style",`${M}`),u&&h(!1),n&&n===je.TOOLTIP&&s&&sp(s)&&((S=s.current)==null||S.setAttribute("data-popover-placement",f))}},[e,t,f,r,n,T,d,u,o,s,i,c]),l)},_o=e=>{const t=G();return Qt(E((n,r)=>{r instanceof Element&&r.id===t.current&&(r.id=""),n instanceof Element&&(n.id=t.current||(t.current=ss()))},[e]),e)},gp=e=>{var r;let t;const n=(r=e.querySelector(`.${ed}`))==null?void 0:r.querySelectorAll(Oa);return n?(Array.prototype.some.call(n,s=>{if(ba(s))return t=s}),t):null},yp=e=>e===je.TOOLTIP?[10,3,5,5]:[15,15,15,15];function Ia({actions:e,disableFocusTrap:t=!1,actionsLayout:n=zo.SPACE_BETWEEN,variant:r=je.TOOLTIP,title:s,open:o,dismissible:i,modifiers:c,divider:l,fitContent:u,withoutSpace:h,containerSize:d,position:p,targetElement:f,setToTargetWidth:g,dismiss:_,children:A,withContentPadding:T,classNameModifiers:C,showOverlay:R=!1,fitPosition:O,...L}){const S=y(()=>ee(_)&&wt(i),[_,i]),I=_o(),N=G(),M=E(pe=>{var Ne;_&&_(),pe&&((Ne=f==null?void 0:f.current)==null||Ne.focus())},[_,f]),P=E(pe=>{pe.code===q.ESCAPE&&(_&&_(),(f==null?void 0:f.current).focus())},[_,f]),z=G(P),j=G(),te=va(_p(yp(r),f,r,p,I,g,R,O),_,r===je.TOOLTIP&&!o,nd.POPOVER),K=mp(t?null:te,M),se=Qt(E((pe,Ne)=>{Ne instanceof Element&&(Ne[Qn]=void 0,delete Ne[Qn]),pe instanceof Element&&(pe[Qn]=f.current,cancelAnimationFrame(j.current),j.current=requestAnimationFrame(()=>{if(N.current===o||!(N.current=o))return;const We=gp(pe);We==null||We.focus()}))},[o,f]),t?te:K),Me=_o(se),ve=y(()=>({[`${ft}--medium`]:d===as.MEDIUM,[`${ft}--with-divider`]:!!l,[`${ft}--wide`]:d===as.WIDE,[`${ft}--fit-content`]:u,[`${ft}--without-space`]:h,[`${ft}--auto-width`]:R}),[d,l,h,u,R]);H(()=>{se.current&&(se.current[Qn]=f.current)},[f]),H(()=>(document.removeEventListener("keydown",z.current),document.addEventListener("keydown",z.current=P),()=>document.removeEventListener("keydown",z.current)),[P]);const fe=r===je.TOOLTIP?Ju:`${ft} ${qm}`,Fe=r===je.TOOLTIP?ed:`${di}`;return Mu(a(V,{children:o?a(V,{children:[R&&a("div",{className:"adyen-pe-popover__overlay"}),a("div",{id:"popover",ref:Me,...L,className:x(fe,ve,C),style:{visibility:"hidden"},role:L.role??(r===je.POPOVER?"dialog":"tooltip"),children:[(s||S)&&a("div",{className:ma(Kc,c,[Kc]),children:[s&&a("div",{className:Km,children:a(ep,{title:s})}),S&&a(Qm,{onClick:_})]}),A&&a(V,{children:[a("div",{className:x(Fe,{[`${di}--with-padding`]:T,[`${di}--overlay`]:R}),children:A}),r===je.TOOLTIP&&a("span",{"data-popover-placement":"hidden",ref:I,className:"adyen-pe-tooltip__arrow"})]}),e&&a("div",{className:Zm,children:a(Zu,{actions:e,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const Tp=()=>{const[e,t]=Rt(),n=E(()=>t(!0),[t]),r=E(()=>t(!1),[t]),s=E(o=>{switch(o.code){case q.ESCAPE:r();break}},[r]);return{listeners:{onfocusoutCapture:r,onMouseLeave:r,onKeyDown:s,onFocus:n,onMouseEnter:n},isVisible:e}},Ap=e=>typeof e=="string",fn=({content:e,children:t,triggerRef:n,showTooltip:r,position:s,isContainerHovered:o=!1})=>{var h,d,p;const i=_o(),c=Re(Oe.down.sm),{isVisible:l,listeners:u}=Tp();return c?a(V,{children:t}):a(V,{children:[t?bu(t,{...t==null?void 0:t.props,role:"button",tabIndex:-1,ref:i,className:(h=t==null?void 0:t.props)!=null&&h.className?x(`${(d=t==null?void 0:t.props)==null?void 0:d.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":o}):x("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":o}),...u,"aria-describedby":`tooltip-${(p=i.current)==null?void 0:p.id}`}):null,(l||r)&&a(Ia,{variant:je.TOOLTIP,targetElement:n??i,position:s,open:l||r,children:a(V,{children:e&&Ap(e)?a(k,{variant:b.CAPTION,children:e}):{content:e}})})]})};function Ep({value:e,isContainerHovered:t}){const{i18n:n}=Y(),r=`tooltip.${e}`;return a(V,{children:n.has(r)&&a(fn,{content:n.get(r),isContainerHovered:t,children:a("span",{children:a(k,{variant:b.BODY,children:n.has(`txType.${e}`)?n.get(`txType.${e}`):`${e}`})})})})}const Bi={title:"thereWasAnUnexpectedError",message:["contactSupportForHelp"]},sd=(e,t)=>{if(!e)return null;switch(e.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["contactSupportForHelp"],onContactSupport:t};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:t};case"00_403":return Bi;default:return null}},sr=({textToCopy:e,isHovered:t,buttonLabel:n,showCopyTextTooltip:r=!0,type:s="Link"})=>{const{i18n:o}=Y(),[i,c]=F(o.get("copy")),l=E(async()=>{if(e)try{await navigator.clipboard.writeText(e),c(o.get("copied"))}catch(h){console.log(h)}},[o,e]),u=E(()=>{c(o.get("copy"))},[o]);return a("span",{className:x("adyen-pe-copy-text__container",{"adyen-pe-copy-text__container--information":s==="Link"}),children:[r?a(fn,{content:e,isContainerHovered:t,children:a("span",{className:x({"adyen-pe-copy-text__label":s!=="Default","adyen-pe-copy-text__information":s==="Link","adyen-pe-copy-text__text":s==="Text"}),children:n||e})}):a("span",{className:x({"adyen-pe-copy-text__label":s!=="Default","adyen-pe-copy-text__information":s==="Link","adyen-pe-copy-text__text":s==="Text"}),children:n||e}),a(fn,{content:i,children:a(he,{variant:le.TERTIARY,className:"adyen-pe-copy-text",onClick:l,onBlur:u,onMouseLeaveCapture:u,children:a("div",{className:x("adyen-pe-copy-text__icon",{"adyen-pe-copy-text__icon--information":s==="Link"}),children:a(st,{name:"copy","data-testid":"copy-icon"})})})})]})},La=(e,t,n)=>{if(!e)return Bi;const r=sd(e,n);if(r)return r;switch(e.errorCode){case void 0:return{title:"somethingWentWrong",message:[t,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const s=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[t,s],translationValues:{[s]:e.requestId?a(sr,{textToCopy:e.requestId}):null},onContactSupport:n}}default:return Bi}},Da=({error:e,errorMessage:t,onContactSupport:n})=>{const{title:r,message:s,refreshComponent:o,translationValues:i,onContactSupport:c}=La(e,t,n);return a(qt,{title:r,message:s,translationValues:i,withImage:!0,centered:!0,refreshComponent:o,onContactSupport:c})},od=xr($),wa=()=>Br(od);var mn=(e=>(e.CENTER="center",e.RIGHT="right",e))(mn||{});function Qc({children:e,column:t,position:n,...r}){const{registerCells:s}=wa(),o=G(null);return H(()=>{var i;o.current&&s({column:t,width:(i=o.current)==null?void 0:i.getBoundingClientRect().width})},[t,s]),a("div",{role:"cell",className:x("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===mn.RIGHT,"adyen-pe-data-grid__cell--center":n===mn.CENTER}),...r,children:e&&yu(e)?bu(e,{...e==null?void 0:e.props,ref:o,style:{width:"min-content"}}):null})}const Cp=({className:e,alt:t,url:n})=>a("div",{className:"adyen-pe-data-grid__icon-container",children:a("img",{className:x("adyen-pe-data-grid__icon",e),alt:t,src:n})}),id=e=>!!e&&typeof e=="object"&&"value"in e,ad=({columns:e,customCells:t,item:n,rowIndex:r})=>a(V,{children:e.map(({key:s,position:o})=>{if(t!=null&&t[s])return a(Qc,{"aria-labelledby":String(s),column:s,position:o,children:a("div",{style:{width:"min-content"},children:t[s]({key:s,value:n[s],item:n,rowIndex:r})})},s);const{icon:i,value:c}=id(n[s])?n[s]:{value:n[s],icon:void 0};return a(Qc,{"aria-labelledby":String(s),column:s,position:o,children:a("div",{className:"adyen-pe-data-grid__cell-value",children:[(i==null?void 0:i.url)&&a(Cp,{...i}),a("div",{children:c})]})},s)})}),Np=({data:e,columns:t,customCells:n,onRowHover:r})=>{const{i18n:s}=Y();return a(V,{children:e==null?void 0:e.map((o,i)=>a("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:s.has(`tooltip.${o==null?void 0:o.category}`)&&r?()=>r(i):ne,onFocus:s.has(`tooltip.${o==null?void 0:o.category}`)&&r?()=>r(i):ne,onMouseLeave:s.has(`tooltip.${o==null?void 0:o.category}`)&&r?()=>r():ne,onBlur:s.has(`tooltip.${o==null?void 0:o.category}`)&&r?()=>r():ne,children:a(ad,{columns:t,customCells:n,item:o,rowIndex:i})},o))})},Sp=({totalRows:e})=>{const[t,n]=Ho((i,c)=>{const l=e;if(l>1){const u=c.index;if(u<l&&u>=0)return c.type==="ACTIVE"?Object.freeze({...i,index:c.index??0,activeIndex:c.index}):Object.freeze({...i,index:c.index??0,activeIndex:-1})}return i},Lp),r=Qt(E(i=>{var l;if(!(i instanceof Element))return;const c=Number((l=i.dataset)==null?void 0:l.index);t.activeIndex===-1&&c===0||c===t.index?i.setAttribute("tabindex","0"):i.setAttribute("tabindex","-1"),c===t.activeIndex&&(i==null||i.focus())},[t.activeIndex,t.index])),s=E(i=>{var l,u;if(!(((l=i.target)==null?void 0:l.getAttribute("role"))==="row")){i.code===q.ARROW_LEFT&&n({type:"ACTIVE",index:t.index});return}switch(i.code){case q.ARROW_DOWN:case q.ARROW_UP:n({type:"ACTIVE",index:i.code===q.ARROW_DOWN?t.index+1:t.index-1});break;case q.HOME:n({type:"ACTIVE",index:0});break;case q.END:n({type:"ACTIVE",index:e-1});break;case q.ENTER:(u=i.currentTarget)==null||u.click();break;default:return}i.stopPropagation()},[e,t.index]),o=E(i=>c=>{var u;(!(((u=c.target)==null?void 0:u.localName)==="tr")||t.index===-1)&&n({type:"CURRENT",index:i})},[t.index]);return{listeners:{onKeyDownCapture:s,onFocusCapture:o},ref:r,activeIndex:t.activeIndex,currentIndex:t.index}},vp=({data:e,columns:t,onRowClick:n,customCells:r,onRowHover:s})=>{const o=E(h=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?h[n.retrievedField]:h),[n]),{i18n:i}=Y(),{currentIndex:c,listeners:l,ref:u}=Sp({totalRows:(e==null?void 0:e.length)??0});return a(V,{children:e==null?void 0:e.map((h,d)=>a("div",{role:"row",tabIndex:0,onMouseEnter:i.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s(d):ne,onFocus:i.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s(d):ne,onMouseLeave:i.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s():ne,onBlur:i.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s():ne,ref:u,"aria-selected":d===c,"data-index":d,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:o(h),onFocusCapture:l.onFocusCapture(d),onKeyDownCapture:l.onKeyDownCapture,children:a(ad,{columns:t,customCells:r,item:h,rowIndex:d})},h))})},Op=({columnsNumber:e,loading:t,emptyMessageDisplay:n})=>{const r=Array.from({length:10},(o,i)=>i),s=Array.from({length:e},(o,i)=>i);return a(V,{children:[r.map((o,i)=>a("div",{className:"adyen-pe-data-grid__row",children:s.map((c,l)=>a("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:a("span",{className:x({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":t,"adyen-pe-data-grid__empty-cell":!t})})},`adyen-pe-data-grid-skeleton-cell-${l}`))},`adyen-pe-data-grid-skeleton-row-${i}`)),!t&&n&&n]})},Rp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='200'%20viewBox='0%200%20300%20200'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23BF7C6A'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M189.3%20113.7c-1-.3%2036.3%2028.6%2047.7%2026.4%209.3-1.8%2014.3-59%2014.3-59h-9.9l-10.8%2036.3s-30.4-22.3-31.8-22.3c-1.4%200-8%2019.1-9.5%2018.6Z'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m230.1%20116.7%202%203.2'/%3e%3cpath%20fill='%23BF7C6A'%20d='m259.8%2074.6%2010-3.6.7-8.1c.1-.9-.6-1.6-1.4-1.7-.8-.1-1.5.5-1.7%201.3l-1.3%206.6-12.6%204.8'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m259.8%2074.6%2010-3.6.7-8.1c.1-.9-.6-1.6-1.4-1.7-.8-.1-1.5.5-1.7%201.3l-1.3%206.6-12.6%204.8'/%3e%3cpath%20fill='%23BF7C6A'%20d='m260.5%2075.5%2011.1-3.5%202.9-7.1c.3-.8-.1-1.7-.9-2.1-.8-.3-1.6%200-2%20.7l-3.2%205.9-10.2%203.2'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m260.5%2075.5%2011.1-3.5%202.9-7.1c.3-.8-.1-1.7-.9-2.1-.8-.3-1.6%200-2%20.7l-3.2%205.9-10.2%203.2'/%3e%3cpath%20fill='%23BF7C6A'%20d='m254%2076.5%207.4-7.8c.7-.6.8-1.5.2-2.2-.5-.7-1.5-.8-2.2-.4-2%201.3-6.2%205-10.7%207.1-3.1%201.4-5.2%205.8-5.8%207.3'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m254%2076.5%207.4-7.8c.7-.6.8-1.5.2-2.2-.5-.7-1.5-.8-2.2-.4-2%201.3-6.2%205-10.7%207.1-3.1%201.4-5.2%205.8-5.8%207.3'/%3e%3cpath%20fill='%23BF7C6A'%20d='M250.3%2082.2c1.2-.3%2021.6-8.6%2026.7-10.3.9-.3%201.4-1.2%201.1-2.1-.2-.9-1-1.1-1.9-1-4.4.8-17.9%203.9-19.5%204.2-1.5.2-5.3.6-10.9%203.1a9%209%200%200%200-5.2%208'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M250.3%2082.2c1.2-.3%2021.6-8.6%2026.7-10.3.9-.3%201.4-1.2%201.1-2.1-.2-.9-1-1.1-1.9-1-4.4.8-17.9%203.9-19.5%204.2-1.5.2-5.3.6-10.9%203.1a9%209%200%200%200-5.2%208'/%3e%3cpath%20fill='%2300112C'%20d='M130.9%2063.1c.8%207.3%204.7%2014.1%2010.3%2018l-3.1-6.4c-.5-1-.9-2-1-3.1l-.1-.3c-.1-.1-.1.2%200%20.1'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M130.9%2063.1c.8%207.3%204.7%2014.1%2010.3%2018l-3.1-6.4c-.5-1-.9-2-1-3.1l-.1-.3c-.1-.1-.1.2%200%20.1'/%3e%3cpath%20fill='%23BF7C6A'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m158.9%2074.8-13.2.2-1.5%2018%208.4%203.6%207.9-3.8-1.6-18Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M151.9%2083.9c-4.7%200-6.4-2.7-6.4-2.7v-4.6h13.4l.3%206c-.1.1-2.5%201.3-7.3%201.3Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M134.5%2070.7c2.4%203%206.3%205.7%209.8%207.3%203.6%201.6%2015.3%201.7%2019.5-1.1%208.8-5.9%2010.5-20.3%208.2-30.6-.7-3.4-1.8-6.8-3.7-9.7a22%2022%200%200%200-19.8-9.3c-7.5.5-19.3%205.9-20.8%2014.2-1.7%209.6.8%2021.6%206.8%2029.2Z'/%3e%3cpath%20fill='%23BF7C6A'%20d='M133.2%2058.9s-5.1-7-7.8-1.6%204.8%2013.4%2010.8%2011.2'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M133.2%2058.9s-5.1-7-7.8-1.6%204.8%2013.4%2010.8%2011.2'/%3e%3cpath%20fill='%23BF7C6A'%20d='M169.5%2052.4s2.3-8.3%206.7-4.2c4.4%204.1.2%2014.2-6.2%2014.3'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M169.5%2052.4s2.3-8.3%206.7-4.2c4.4%204.1.2%2014.2-6.2%2014.3'/%3e%3cpath%20fill='%23BF7C6A'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M166.9%2041.2c-6.3-12-33.4-8.2-34.9%206.3A38.2%2038.2%200%200%200%20142%2077c5.7%205.2%2012%204.5%2014.1%204.1%202.1-.3%208.2-1.8%2011.7-8.8a37.2%2037.2%200%200%200-.9-31.1Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M134.1%2055c7.8-1.1%2015.5-2.6%2023.1-4.4l-.4-4.8c1%201.6%201.8%202.7%202.4%204.5%203-1.3%206.3-1.5%209.5-1.6%203.1-.1-4.2-14.3-6.1-15.6a16.2%2016.2%200%200%200-7.1-2.1c-5.7-.6-11.7-.4-16.7%202.3-4%202.2-7.3%206.4-7.6%2011%200%201.5.5%2011%202.9%2010.7Z'/%3e%3cpath%20fill='%23BF7C6A'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M114.5%20113.7c1-.3-36.3%2028.6-47.7%2026.4-9.3-1.8-14.3-59-14.3-59h9.9l10.8%2036.3s30.4-22.3%2031.8-22.3c1.5-.1%208.1%2019.1%209.5%2018.6Z'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m73.8%20116.7-2.1%203.2'/%3e%3cpath%20fill='%23BF7C6A'%20d='M44%2074.6%2034%2071l-.7-8.1c-.1-.9.6-1.6%201.4-1.7.8-.1%201.5.5%201.7%201.3l1.3%206.6%2012.6%204.8'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M44%2074.6%2034%2071l-.7-8.1c-.1-.9.6-1.6%201.4-1.7.8-.1%201.5.5%201.7%201.3l1.3%206.6%2012.6%204.8'/%3e%3cpath%20fill='%23BF7C6A'%20d='M43.3%2075.5%2032.2%2072l-2.9-7c-.3-.8.1-1.7.9-2.1.8-.3%201.6%200%202%20.7l3.2%205.9%2010.2%203.2'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M43.3%2075.5%2032.2%2072l-2.9-7c-.3-.8.1-1.7.9-2.1.8-.3%201.6%200%202%20.7l3.2%205.9%2010.2%203.2'/%3e%3cpath%20fill='%23BF7C6A'%20d='m49.8%2076.5-7.4-7.8c-.7-.6-.8-1.5-.2-2.2.5-.7%201.5-.8%202.2-.4%202%201.3%206.2%205%2010.7%207.1%203.1%201.4%205.2%205.8%205.8%207.3'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m49.8%2076.5-7.4-7.8c-.7-.6-.8-1.5-.2-2.2.5-.7%201.5-.8%202.2-.4%202%201.3%206.2%205%2010.7%207.1%203.1%201.4%205.2%205.8%205.8%207.3'/%3e%3cpath%20fill='%23BF7C6A'%20d='M53.5%2082.2C52.4%2081.9%2032%2073.7%2026.8%2072a1.6%201.6%200%200%201-1.1-2.1c.2-.9%201-1.1%201.9-1%204.4.8%2017.9%203.9%2019.5%204.2%201.5.2%205.3.6%2010.9%203.1a9%209%200%200%201%205.2%208'/%3e%3cpath%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M53.5%2082.2C52.4%2081.9%2032%2073.7%2026.8%2072a1.6%201.6%200%200%201-1.1-2.1c.2-.9%201-1.1%201.9-1%204.4.8%2017.9%203.9%2019.5%204.2%201.5.2%205.3.6%2010.9%203.1a9%209%200%200%201%205.2%208'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='M139.9%2087.6c-1.4-3.4-6.3-12.5-9.8-11.7a90.7%2090.7%200%200%200-46.2%2029.7c-4.4%205.4-2%208.7-2%208.7l7.1%2018.8s3.6%202%2015.4%201.7c17.4-.5%2038.8-26.8%2039.5-30.6.4-2.6-1.7-10.8-4-16.6Z'/%3e%3cpath%20fill='%233300C2'%20d='m196.6%20232.8-18.7-58.1h-51l-20.2%2058.1'/%3e%3cpath%20stroke='%230C112C'%20stroke-miterlimit='10'%20d='m196.6%20232.8-18.7-58.1h-51l-20.2%2058.1'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m159.1%2091.8-16.8.1s-20.4%201-21.3%206.8c-1.6%2010.6%206.1%2052.6%205.9%2056.2l-4.8%2020.4.2.1c10.7%205%2022.7%207.2%2034.6%206.2l23.1-1.9-3.2-18.2c-.2-2.7%207.3-46%206.9-61.3-.1-7.1-24.6-8.4-24.6-8.4Z'/%3e%3cpath%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20d='m141.4%2092%201.6-5.6h18.7l1.1%204.9c-.1.1-8.9%2011-21.4.7Zm23.1-4.4c1.4-3.4%206.3-12.5%209.8-11.7a90.7%2090.7%200%200%201%2046.2%2029.7c4.4%205.4%202%208.7%202%208.7l-7.1%2018.8s-3.6%202-15.4%201.7c-17.4-.5-38.8-26.8-39.5-30.6a48.3%2048.3%200%200%201%204-16.6ZM119.9%2018c0-2.5%201.1-4.9%202.7-6.8%201.9-2.2%204.5-3.8%207.4-4.2%202.9-.4%205.9.6%207.9%202.7a4.8%204.8%200%200%200-3-4.1s5-.2%207.1.4a14.7%2014.7%200%200%201%2011%2017.8c-2.3%208.8-14.2%207-21%205.6-5.6-1.2-12-4.9-12.1-11.4Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h300v200H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",bp=({children:e})=>{const t=y(()=>new Map,[]),n=E(({column:s,width:o})=>{if(t.has(s)){const i=t.get(s);o>i&&t.set(s,o)}else t.set(s,o)},[t]),r=E(s=>t.get(s),[t]);return a(od.Provider,{value:{registerCells:n,getMinWidthByColumn:r},children:hn(e)})},Ip=({cellKey:e,position:t,label:n})=>{const{registerCells:r}=wa(),s=G(null);return H(()=>{var o;s.current&&r({column:e,width:(o=s.current)==null?void 0:o.getBoundingClientRect().width})},[e,r]),a("div",{role:"columnheader",id:String(e),className:x("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":t===mn.RIGHT,"adyen-pe-data-grid__cell--center":t===mn.CENTER}),children:a("div",{ref:s,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},Lp=Object.freeze({activeIndex:-1,index:-1});function pn({errorDisplay:e,...t}){return a("div",{style:{width:"100%"},children:a(bp,{children:a(Dp,{...t,errorDisplay:e})})})}function Dp({errorDisplay:e,...t}){var u,h;const n=y(()=>hn(t.children),[t.children]),r=y(()=>n.find(d=>(d==null?void 0:d.type)===cd),[n]),s=y(()=>{var d;return((d=t.data)==null?void 0:d.length)===0},[t.data]),o=y(()=>!t.loading&&(s||t.error),[s,t.error,t.loading]),{getMinWidthByColumn:i}=wa(),c=t.columns.filter(d=>d.visible!==!1).map(d=>({...d,minWidth:i(d.key)})),l=c.map(d=>`minmax(${(d.minWidth||100)+40}px, ${d.flex||1}fr)`).join(" ");return a("div",{className:x("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":t.condensed,"adyen-pe-data-grid--outline":t.outline,"adyen-pe-data-grid--scrollable":t.scrollable,"adyen-pe-data-grid--loading":t.loading,"adyen-pe-data-grid--empty":s||t.error}),style:`--adyen-pe-data-grid-cols: ${c.length}; --adyen-pe-data-grid-cells: ${l};`,children:a(V,{children:[a("div",{className:"adyen-pe-data-grid__table-wrapper",children:[a("div",{role:"table",className:"adyen-pe-data-grid__table",children:[a("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:a("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:t.loading?{width:"100%"}:{},children:c.map(d=>a(Ip,{label:d.label,position:d.position,cellKey:d.key},d.key))})}),a(wp,{...t,columns:c,emptyBody:s})]}),o&&(s&&!t.error?a(qt,{title:((u=t.emptyTableMessage)==null?void 0:u.title)??"thereAreNoResults",message:(h=t.emptyTableMessage)==null?void 0:h.message,imageDesktop:Rp,centered:!0}):t.error&&e?e():null)]}),r]})})}function wp(e){const t=y(()=>e.loading||e.emptyBody||e.error,[e.emptyBody,e.error,e.loading]);return a("div",{role:"rowgroup",className:x("adyen-pe-data-grid__body"),style:t&&{display:"grid",gridTemplateColumns:"1fr"},children:t?a(Op,{columnsNumber:e.columns.length,loading:e.loading}):e.onRowClick?a(vp,{onRowHover:e.onRowHover,data:e.data,columns:e.columns,onRowClick:e.onRowClick,customCells:e.customCells}):a(Np,{onRowHover:e.onRowHover,data:e.data,customCells:e.customCells,columns:e.columns})})}pn.Footer=cd;function cd({children:e}){return a("div",{className:"adyen-pe-data-grid__footer",children:e})}pn.defaultProps={condensed:!1,outline:!0,scrollable:!0};const go="-ariaError";var Ye=(e=>(e[e.NONE=0]="NONE",e[e.APPLY=1]="APPLY",e[e.CLEAR=2]="CLEAR",e))(Ye||{});const ld=({applyDisabled:e,applyTitle:t,resetDisabled:n,resetTitle:r}=$)=>{const{i18n:s}=Y(),[o,i]=F(Ye.NONE),[c,l]=F(o!==Ye.NONE),u=E(()=>i(Ye.APPLY),[i]),h=E(()=>i(Ye.CLEAR),[i]),d=E(()=>i(Ye.NONE),[i]),p=y(()=>({disabled:Pe(e),event:u,title:(t==null?void 0:t.trim())||s.get("apply"),variant:le.PRIMARY}),[s,u,e,t]),f=y(()=>({disabled:Pe(n),event:h,title:(r==null?void 0:r.trim())||s.get("reset"),variant:le.SECONDARY}),[s,h,n,r]),g=y(()=>[p,f],[p,f]);return H(()=>{switch(l(o!==Ye.NONE),o){case Ye.APPLY:case Ye.CLEAR:d();break}},[o,l,d]),{commitAction:o,commitActionButtons:g,committing:c,resetCommitAction:d}};function ud(e){const{backgroundUrl:t="",className:n="",classNameModifiers:r=[],src:s="",alt:o="",showOnError:i=!1}=e,[c,l]=F(!1),u=G(null),h=()=>{l(!0)},d=()=>{l(i)},p=x([n],"adyen-pe-image",{"adyen-pe-image--loaded":c},...r.map(f=>`adyen-pe-image--${f}`));return H(()=>{const f=t?new Image:u.current;f&&(f.src=t||s,f.onload=h),l(!!(f!=null&&f.complete))},[]),t?a("div",{style:{backgroundUrl:t},...e,className:p}):a("img",{...e,alt:o,ref:u,className:p,onError:d})}const Pr="adyen-pe-dropdown",kp=ma(it,[le.SECONDARY],[it]),Pt=`${Pr}__button`,Pp=`${Pt}--active`,Mp=`${Pt}-collapse-indicator`,Fp=`${Pt}--has-selection`,xp=`${Pt}-icon`,Bp=`${Pt}-multiselect-counter`,$p=`${Pt}--readonly`,Up=`${Pt}-text`,Wp=`${Pt}--valid`,Hp=`${Pt}--invalid`,Jt=`${Pr}__element`,Gp=`${Jt}--active`,Yp=`${Jt}-checkbox`,jp=`${Jt}-checkmark`,zp=`${Jt}-content`,Vp=`${Jt}--disabled`,qp=`${Jt}-icon`,Kp=`${Jt}--no-option`,dd=`${Pr}__list`,Zp=`${dd}--active`,Xp=`${Pr}--multiselect`,Qp=({active:e,disabled:t,className:n,filterable:r,toggleButtonRef:s,...o})=>{const i=y(()=>r?x(kp,n):n,[n,r]);return r?a("div",{...o,className:i,ref:s}):a(he,{...o,className:i,disabled:t,variant:le.SECONDARY,ref:s})},Jp=e=>{var p;const{i18n:t}=Y(),{active:n,filterable:r,multiSelect:s,placeholder:o,readonly:i,showList:c,withoutCollapseIndicator:l}=e,u=y(()=>(o==null?void 0:o.trim())||t.get("select.filter.placeholder"),[t,o]),h=y(()=>Pe(s)?void 0:n[0],[n,s]),d=y(()=>{var f;return((f=h==null?void 0:h.name)==null?void 0:f.trim())||u},[h,u]);return a(Qp,{active:n,disabled:i,"aria-disabled":i,"aria-expanded":c,"aria-haspopup":"listbox",className:x(Pt,{[Pp]:c,[Fp]:!!n.length,[$p]:i,[Hp]:e.isInvalid,[Wp]:e.isValid}),filterable:r,onClick:i?void 0:e.toggleList,onKeyDown:i?void 0:e.onButtonKeyDown,role:r?"button":void 0,tabIndex:0,title:d,toggleButtonRef:e.toggleButtonRef,type:r?void 0:"button","aria-describedby":e.ariaDescribedBy,id:e.id??"",children:[c&&r?a("input",{"aria-autocomplete":"list","aria-controls":e.selectListId,"aria-expanded":c,"aria-owns":e.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:e.onInput,placeholder:u,ref:e.filterInputRef,role:"combobox",type:"text"}):a(V,{children:[(h==null?void 0:h.icon)&&a(ud,{className:xp,src:h.icon,alt:h.name.trim()}),a("span",{className:Up,children:((p=h==null?void 0:h.selectedOptionName)==null?void 0:p.trim())||(h==null?void 0:h.name.trim())||u}),s&&e.appliedFilterNumber>0&&a("div",{className:Bp,children:a(k,{el:ce.SPAN,variant:b.BODY,stronger:!0,children:e.appliedFilterNumber})})]}),!l&&a("span",{className:Mp,children:a(jo,{role:"presentation"})})]})},e_=qe(({title:e,...t},n)=>a("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&a("title",{children:e}),a("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"})]})),t_=qe(({title:e,...t},n)=>a("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&a("title",{children:e}),a("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"})]})),n_=qe(({title:e,...t},n)=>a("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[e&&a("title",{children:e}),a("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"})]})),r_=e=>e.multiSelect?a("span",{className:Yp,children:e.selected?a(e_,{role:"presentation"}):a(t_,{role:"presentation"})}):null,hd=e=>e.multiSelect?null:a("span",{className:jp,children:e.selected&&a(n_,{role:"presentation"})}),s_=e=>a(V,{children:[r_(e),a("div",{className:e.contentClassName,children:[e.item.icon&&a(ud,{className:e.iconClassName,alt:e.item.name,src:e.item.icon}),a("span",{children:e.item.name})]}),hd(e)]}),o_=({item:e,multiSelect:t,onKeyDown:n,onSelect:r,renderListItem:s,selected:o})=>{const i=!!e.disabled,c=Pe(e.disabled)||null,l=x(Jt,{[Gp]:o,[Vp]:i});return a("li",{"aria-disabled":i,"aria-selected":o,className:l,"data-disabled":c,"data-value":e.id,onClick:r,onKeyDown:n,title:e.name,role:"option",tabIndex:-1,children:s({item:e,multiSelect:t,selected:o,contentClassName:zp,iconClassName:qp})})},i_=be(o_),a_=qe(({active:e,commitActions:t,items:n,multiSelect:r,onKeyDown:s,onSelect:o,renderListItem:i,selectListId:c,showList:l,textFilter:u,toggleButtonRef:h,dismissPopover:d,setToTargetWidth:p,popoverClassNameModifiers:f,showOverlay:g,fitPosition:_},A)=>{const{i18n:T}=Y(),C=Re(Oe.down.xs),R=n.filter(N=>!u||N.name.toLowerCase().includes(u)),O=x(dd,{[Zp]:l}),L=x(Jt,Kp),S=y(()=>ee(i)?i:s_,[i]),I=y(()=>Pe(r),[r]);return l?a(Ia,{classNameModifiers:f,actions:I?t:void 0,disableFocusTrap:!0,divider:!0,dismiss:d,dismissible:!1,open:l,setToTargetWidth:p,containerSize:as.MEDIUM,variant:je.POPOVER,targetElement:h,withContentPadding:!1,position:_e.BOTTOM,showOverlay:g&&C,fitPosition:_,children:a("ul",{className:O,id:c,ref:A,role:"listbox","aria-multiselectable":I,children:R.length?R.map(N=>a(i_,{item:N,multiSelect:I,onKeyDown:s,onSelect:o,renderListItem:S,selected:e.includes(N)},N.id)):a("div",{className:L,children:T.get("select.noOptionsFound")})})}):null}),c_=be(a_),l_=({items:e,multiSelect:t,selected:n})=>{const r=E((l=de)=>{const u=de.concat(l??de).filter(Boolean),h=e.filter(p=>u.includes(p.id)),d=t?h:h.slice(0,1);return d.length?Object.freeze(d):de},[e,t]),[s,o]=F(r(n)),i=E((l=de)=>{const u=l.filter(h=>e.includes(h));o(u.length?Object.freeze(u):de)},[e,o]),c=E(l=>{o(u=>{const h=u.indexOf(l);if(h<0)return Object.freeze((t?u:de).concat(l));if(!t)return u;const d=[...u];return d.splice(h,1),d.length?Object.freeze(d):de})},[t,o]);return H(()=>o(r(n)),[r,n,o]),{resetSelection:i,select:c,selection:s}},Us=({className:e,classNameModifiers:t=de,popoverClassNameModifiers:n,items:r=de,filterable:s=!1,multiSelect:o=!1,readonly:i=!1,onChange:c=ne,selected:l,name:u,isInvalid:h,isValid:d,placeholder:p,uniqueId:f,renderListItem:g,isCollatingErrors:_,setToTargetWidth:A,withoutCollapseIndicator:T=!1,showOverlay:C=!1,fitPosition:R})=>{const{resetSelection:O,select:L,selection:S}=l_({items:r,multiSelect:o,selected:l}),[I,N]=F(!1),[M,P]=F(""),z=G(null),j=G(null),te=G(null),K=G(`select-${ta()}`),[se,Me]=F(0),ve=G(),fe=G(!0),Fe=G(!1),pe=G(S),Ne=G(S),We=E(()=>{P(""),N(!1),I&&(O(pe.current),fe.current=!0)},[O,N,P,I]),ue=y(()=>x([Pr,{[Xp]:Pe(o)},...t.map(oe=>`${Pr}--${oe}`),e]),[e,t,o]),{commitAction:Ze,commitActionButtons:en,committing:Hr,resetCommitAction:Hs}=ld({resetDisabled:!S.length}),at=E(()=>{var oe;P(""),N(!1),Hs(),fe.current?fe.current=!1:(oe=te.current)==null||oe.focus()},[Hs,N,P]),Hn=E(()=>{pe.current=S;const oe=`${S.map(({id:ge})=>ge)}`;c({target:{value:oe,name:u}})},[u,c,S]);H(()=>{switch(Ze){case Ye.APPLY:Hn();break;case Ye.CLEAR:O(),Fe.current=!0;break}},[Ze,Hn,O]);const _n=E(oe=>{var Se;oe.preventDefault();const ge=oe.currentTarget&&((Se=j==null?void 0:j.current)!=null&&Se.contains(oe.currentTarget))?oe.currentTarget:null;if(ge&&!ge.getAttribute("data-disabled")){const ri=ge.getAttribute("data-value"),He=r.find(xe=>xe.id===ri);L(He)}},[r,L]);H(()=>{Ne.current!==S&&(Ne.current=S,(!o||Fe.current)&&(Hn(),at())),Fe.current=!1},[at,Hn,o,S]),H(()=>{Hr&&(Me(S.length),at())},[Hr,at,Me,S.length]);const Gr=E(oe=>{switch(oe.code){case q.ESCAPE:case q.TAB:I&&at(),fe.current=oe.key===q.TAB;return;case q.ENTER:case q.SPACE:if(s&&I){if(oe.key===q.ENTER)if(M)_n(oe);else break;return}break;case q.ARROW_DOWN:case q.ARROW_UP:break;default:return}oe.preventDefault(),N(!0)},[at,s,_n,I,N,M]);H(()=>{I&&(cancelAnimationFrame(ve.current),ve.current=requestAnimationFrame(()=>{var oe;e:{let ge=(oe=j.current)==null?void 0:oe.firstElementChild,Se;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){if(ge.getAttribute("aria-selected")==="true"){ge.focus();break e}Se=Se||ge}ge=ge.nextElementSibling}Se&&Se.focus()}}))},[I]);const ti=E(oe=>{const ge=oe.target;switch(oe.code){case q.ESCAPE:oe.preventDefault(),at();break;case q.ENTER:case q.SPACE:_n(oe);break;case q.ARROW_DOWN:{oe.preventDefault();let Se=ge.nextElementSibling;for(;Se;){if(!(Se.dataset.disabled&&Se.dataset.disabled==="true")){Se.focus();break}Se=Se.nextElementSibling}break}case q.ARROW_UP:{oe.preventDefault();e:{let Se=ge.previousElementSibling;for(;Se;){if(!(Se.dataset.disabled&&Se.dataset.disabled==="true")){Se.focus();break e}Se=Se.previousElementSibling}s&&z.current&&z.current.focus()}break}case q.TAB:at();break}},[at,s,_n]),Gs=E(oe=>{const ge=oe.target.value;P(ge.toLowerCase())},[P]),ni=E(oe=>{oe.preventDefault(),N(ge=>!ge),I&&O(pe.current)},[N,I,O]);return H(()=>{var oe;I&&s&&((oe=z.current)==null||oe.focus())},[s,I]),a("div",{className:ue,children:[a(Jp,{id:f??void 0,appliedFilterNumber:se,active:S,filterInputRef:z,filterable:s,isInvalid:h,isValid:d,onButtonKeyDown:Gr,onInput:Gs,multiSelect:o,placeholder:p,readonly:i,selectListId:K.current,showList:I,toggleButtonRef:te,toggleList:ni,withoutCollapseIndicator:T,ariaDescribedBy:!_&&f?`${f}${go}`:""}),a(c_,{popoverClassNameModifiers:n,setToTargetWidth:A,dismissPopover:We,active:S,commitActions:en,items:r,multiSelect:o,onKeyDown:ti,onSelect:_n,selectListId:K.current,ref:j,toggleButtonRef:te,renderListItem:g,showList:I,showOverlay:C,textFilter:M,fitPosition:R})]})},u_=qe(({title:e,...t},n)=>a("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&a("title",{children:e}),a("path",{d:"M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",fill:t.disabled?"#8D95A3":"#00112C"})]})),d_=qe(({title:e,...t},n)=>a("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&a("title",{children:e}),a("path",{d:"M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",fill:t.disabled?"#8D95A3":"#00112C"})]}));function ka({next:e,hasNext:t,hasPrev:n,prev:r,limit:s,limitOptions:o,onLimitSelection:i}){const{i18n:c}=Y(),l=y(()=>o&&Object.freeze(o.map(h=>({id:`${h}`,name:`${h}`}))),[o]),u=E(({target:h})=>{Ae(h==null?void 0:h.value)||i==null||i(+h.value)},[i]);return a("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-pe-pagination ${x({})}`,children:[a("div",{className:"adyen-pe-pagination__context",children:l&&i&&a(V,{children:[a("span",{children:c.get("pagination.showing")}),a("div",{className:"adyen-pe-pagination__limit-selector",children:a(Us,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:l,onChange:u,selected:`${s??""}`})})]})}),a("div",{className:"adyen-pe-pagination__controls",children:[a(he,{"aria-label":c.get("pagination.previousPage"),variant:le.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?de:"disabled"),onClick:r,children:a(u_,{disabled:!n})}),a(he,{"aria-label":c.get("pagination.nextPage"),variant:le.TERTIARY,disabled:!t,iconButton:!0,classNameModifiers:["circle"].concat(t?de:"disabled"),onClick:e,children:a(d_,{disabled:!t})})]})]})}const Wn="adyen-pe-transactions-table",h_=Wn+"__amount",f_=Wn+"__payment-method",m_=Wn+"__payment-method-logo-container",p_=Wn+"__payment-method-logo",__=Wn+"__date-and-payment-method",g_=Wn+"__date-and-payment-method--date",y_="https://cdf6519016.cdn.adyen.com/checkoutshopper/",T_=({name:e,resourceContext:t,imageFolder:n="logos/",parentFolder:r="",extension:s="svg",size:o="",subFolder:i=""})=>{const c=`/images/${n}/${i}/${r}/${e}${o}.${s}`.replace(/\/+/g,"/");return`${t}${c}`},A_=({options:e=$,name:t})=>{const{loadingContext:n}=Y();return y(()=>T_({resourceContext:y_,name:t,...e}),[n,t,e])},fd=({folder:e="components/",className:t,alt:n,name:r,extension:s})=>{const o=A_({options:y(()=>({imageFolder:e,extension:s}),[s,e]),name:r});return a("img",{className:x("adyen-pe__image",t),alt:n,src:o})},E_=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function md(e,t){return e.lastFourDigits?t==="detail"?"•••• •••• •••• "+e.lastFourDigits:e.lastFourDigits:e.description||E_[e.type]||e.type}const Jc=({paymentMethod:e,bankAccount:t})=>{const{i18n:n}=Y(),r=Re(Oe.down.xs);return a("div",{className:f_,children:e||t?a(V,{children:[a("div",{className:m_,children:a(fd,{name:e?e.type:"bankTransfer",alt:e?e.type:"bankTransfer",folder:"logos/",className:p_})}),a(k,{variant:b.BODY,stronger:r,children:e?md(e):t==null?void 0:t.accountNumberLastFourDigits})]}):a(It,{label:n.get("noData"),variant:Te.LIGHT_WITH_OUTLINE})})},C_={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=e=>C_[e]||e;function N_(e){let t={};for(const n of Object.keys(e))Z(e[n])||(t={...t,[n]:e[n]});return t}function S_(e){return e.every(ot)}const pd=({fields:e,customColumns:t,columnConfig:n})=>{const{i18n:r}=Y(),s=y(()=>e.map(i=>({key:i})),[e]);return y(()=>((t?S_(t)?t.map(c=>({key:c})):t:void 0)||s).map(({key:c,flex:l})=>{const u=r.get(Pa(c)),h=N_((n==null?void 0:n[c])||$);return{key:c,label:u,visible:!0,flex:l,...h||$}}),[n,t,r,s])},_d=["createdAt","paymentMethod","transactionType","amount"],v_=({activeBalanceAccount:e,availableCurrencies:t,error:n,hasMultipleCurrencies:r,loading:s,onContactSupport:o,onRowClick:i,showDetails:c,showPagination:l,transactions:u,customColumns:h,...d})=>{const{i18n:p}=Y(),{dateFormat:f}=Xt(e==null?void 0:e.timeZone),[g,_]=F(),A=Re(Oe.up.sm),T=Re(Oe.up.md),C=Re(Oe.down.xs),R=p.get("amount"),O=pd({fields:_d,customColumns:h,columnConfig:{amount:{label:r?void 0:`${R} ${t&&t[0]?`(${fu(t[0])})`:""}`,position:mn.RIGHT,flex:A?1.5:void 0},transactionType:{visible:T},paymentMethod:{visible:A}}}),L={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},S=E(N=>{_(N??void 0)},[_]),I=y(()=>()=>a(Da,{error:n,onContactSupport:o,errorMessage:"weCouldNotLoadYourTransactions"}),[n,o]);return a("div",{className:Wn,children:a(pn,{errorDisplay:I,error:n,columns:O,data:u,loading:s,outline:!1,onRowClick:{callback:i},onRowHover:S,emptyTableMessage:L,customCells:{transactionType:({item:N,rowIndex:M})=>{const P=`tooltip.${N.category}`;return N.category?p.has(P)?a(Ep,{isContainerHovered:M===g,value:N.category}):a(k,{variant:b.BODY,children:p.has(`txType.${N.category}`)?p.get(`txType.${N.category}`):`${N.category}`}):null},amount:({value:N})=>{const M=p.amount(N.value,N.currency,{hideCurrency:!r});return a(k,{variant:b.BODY,className:h_,children:M})},createdAt:({item:N,value:M})=>C?a("div",{className:__,children:[a(Jc,{paymentMethod:N.paymentMethod,bankAccount:N.bankAccount}),a(k,{variant:b.BODY,className:g_,children:f(N.createdAt,mm)})]}):a(k,{variant:b.BODY,children:f(M,fm)}),paymentMethod:({item:N})=>a(Jc,{paymentMethod:N.paymentMethod,bankAccount:N.bankAccount})},children:l&&a(pn.Footer,{children:a(ka,{...d})})})})},Ke="adyen-pe-transaction-data",el=`${Ke}__amount`,O_=`${Ke}__action-bar`,Vo=`${Ke}__container`,R_=`${Ke}__head-container`,Ma=`${Ke}__input`,Ws=`${Ma}-container`,gd=`${Ws}--short`,b_=`${Ws}--text-input`,I_=`${Ws}--with-error`,yd=`${Ma}-head`,Td=`${Ke}__label`,L_=`${Ke}__list`,Fa=`${Ke}__payment-method`,D_=`${Fa}-detail`,Ad=`${Fa}-logo`,w_=`${Ad}-container`,k_=`${Ke}__tags`,P_=`${Ke}__status-box`,M_=`${Ke}__refund-response`,yo=`${Ke}__refund-response-icon`,F_=`${yo}--success`,x_=`${yo}--error`,B_=`${Ke}__refund-statuses-container`,$_=new Set(["status","category","paymentMethod","bankAccount","balanceAccount","id","balanceAccountId",..._d,"deductedAmount","lineItems","originalAmount","paymentPspReference","refundDetails","refundMetadata"]),U_=()=>{const{i18n:e}=Y(),{transaction:t,extraFields:n}=Fm();return y(()=>{const{balanceAccount:r,category:s,id:o,paymentPspReference:i,refundMetadata:c}=t,l=s==="Refund",u=null,h=T=>{if(Ae(T))return null;const{value:C,currency:R}=T;return e.amount(C,R)},d=h(t.deductedAmount),p=h(t.originalAmount),f=l?"refund.refundFee":"refund.fee",g=l?"refund.originalPayment":"refund.originalAmount",_=l?"refund.paymentPspReference":"refund.pspReference",A=[p?{key:g,value:p}:u,d?{key:f,value:d}:u,r!=null&&r.description?{key:"account",value:r.description}:u,...Object.entries(n||{}).filter(([T])=>!$_.has(T)).map(([T,C])=>({key:T,value:id(C)?C.value:C}))||{},l&&(c!=null&&c.refundReason)?{key:"refundReason",value:e.has(`refundReason.${c.refundReason}`)?e.get(`refundReason.${c.refundReason}`):c.refundReason}:u,{key:"referenceID",value:a(sr,{type:"Default",textToCopy:o,showCopyTextTooltip:!1})},l&&(c!=null&&c.refundPspReference)?{key:"refund.refundPspReference",value:c.refundPspReference}:u,i?{key:_,value:i}:u].filter(Boolean);return a(kn,{classNames:L_,items:A,layout:"5-7",renderLabel:T=>a("div",{className:Td,children:T})})},[e,t])},tl=({children:e,className:t})=>a("div",{className:x(Vo,t),children:e}),W_=e=>{switch(e==null?void 0:e.status){case"Booked":return"default";case"Reversed":return"error";default:return"pending"}},H_=e=>e!=null&&e.paymentMethod?e.paymentMethod.type:e!=null&&e.bankAccount?"bankTransfer":null,G_=e=>{var t;return e!=null&&e.paymentMethod?md(e.paymentMethod,"detail"):(t=e==null?void 0:e.bankAccount)==null?void 0:t.accountNumberLastFourDigits},Y_=e=>{if(e.category==="Refund"){const{refundType:t}=e.refundMetadata??$;switch(t){case Cn.FULL:return Cn.FULL;case Cn.PARTIAL:return Cn.PARTIAL}}},j_=({refundedState:e,transaction:t})=>{var d;const{i18n:n}=Y(),{dateFormat:r}=Xt((d=t==null?void 0:t.balanceAccount)==null?void 0:d.timeZone),{amount:s,category:o,createdAt:i}=t,c=y(()=>{const{currency:p,value:f}=s;return`${n.amount(f,p,{hideCurrency:!0})} ${p}`},[s,n]),[l,u,h]=y(()=>[H_(t),G_(t),Y_(t)],[t]);return a(V,{children:[a("div",{className:k_,children:[o&&a(It,{label:n.get(`txType.${o}`),variant:Te.DEFAULT}),h&&a(V,{children:[h===Cn.FULL&&a(It,{label:n.get("full"),variant:Te.SUCCESS}),h===Cn.PARTIAL&&a(It,{label:n.get("partial"),variant:Te.BLUE})]}),e===rr.FULL&&a(It,{label:n.get("refunded.full"),variant:Te.SUCCESS}),e===rr.PARTIAL&&a(It,{label:n.get("refunded.partial"),variant:Te.BLUE})]}),c&&a("div",{className:x(el,`${el}--${W_(t)}`),children:c}),l&&a("div",{className:Fa,children:[a("div",{className:w_,children:a(fd,{className:Ad,name:l,alt:l,folder:"logos/"})}),a("div",{className:D_,children:u})]}),i&&a("div",{className:Td,children:r(new Date(i),pm)})]})},z_=be(j_),V_=qe(({title:e,...t},n)=>a("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&a("title",{children:e}),a("g",{"clip-path":"url(#a)",children:a("path",{d:"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8ZM6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2-2-2Z",fill:"currentColor"})}),a("defs",{children:a("clipPath",{id:"a",children:a("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]}));function Ed({onInput:e,onKeyUp:t,trimOnBlur:n,onBlurHandler:r,onBlur:s,onFocusHandler:o,errorMessage:i,...c},l){const{autoCorrect:u,classNameModifiers:h,isInvalid:d,isValid:p,readonly:f=!1,spellCheck:g,type:_,uniqueId:A,isCollatingErrors:T,disabled:C}=c;Dt(c,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const R=E(K=>{e==null||e(K)},[e]),O=E(K=>{t&&t(K)},[t]),L=E(K=>{r==null||r(K),n&&(K.target.value=K.target.value.trim()),s==null||s(K)},[s,r,n]),S=E(K=>{o==null||o(K)},[o]),I=x("adyen-pe-input",[`adyen-pe-input--${_}`],c.className,{"adyen-pe-input--invalid":d,"adyen-pe-input--valid":p},h==null?void 0:h.map(K=>`adyen-pe-input--${K}`)),{classNameModifiers:N,uniqueId:M,isInvalid:P,isValid:z,isCollatingErrors:j,...te}=c;return a(V,{children:[a("input",{id:A,...te,type:_,className:I,readOnly:f,"aria-describedby":T?void 0:`${A}${go}`,"aria-invalid":d,onInput:R,onBlurCapture:L,onFocus:S,onKeyUp:O,disabled:C,ref:l}),d&&i&&a("span",{className:"adyen-pe-input__invalid-value",id:`${A}${go}`,children:i})]})}Ed.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const To=$r(Ed),Cd=(e,t)=>mu(e,t).toFixed($i(t)),$i=e=>Math.log10(hu(e)),Nd=({currency:e,disabled:t,errorMessage:n,errorMessageArg:r,onInput:s,value:o})=>{const{i18n:i}=Y(),c=G(ss()),l=G(ss()),u=n?r?i.get(n,{values:{amount:r}}):i.get(n):"";return a("div",{className:Vo,children:[a("div",{className:yd,children:a("div",{id:l.current,children:a(k,{el:ce.SPAN,variant:b.BODY,stronger:!0,children:i.get("refundAmount")})})}),a("div",{className:x({[Ws]:!0,[gd]:!0,[b_]:!0,[I_]:!!n}),children:[a("label",{htmlFor:c.current,"aria-labelledby":l.current,children:[e&&a(It,{label:e,variant:Te.DEFAULT}),a(To,{min:0,type:"number",className:Ma,disabled:Pe(t),lang:i.locale,onInput:s,value:o,uniqueId:c.current})]}),n&&a("div",{className:"adyen-pe-input__refund-invalid-value",id:`${c.current}${go}`,children:[a(V_,{}),a(k,{el:ce.SPAN,variant:b.BODY,children:u})]})]})]})},q_=()=>{const{availableAmount:e,currency:t}=Na();return a(Nd,{currency:t,errorMessage:null,value:Cd(e,t),disabled:!0})},K_=({locale:e})=>{const{availableAmount:t,currency:n,interactionsDisabled:r,setAmount:s}=Na(),[o,i]=F(null),[c,l]=F(`${Cd(t,n)}`),{i18n:u}=Y(),h=y(()=>{const p=$i(n);return f=>Math.trunc(+`${parseFloat(f)}e${p}`)||0},[n]),d=p=>{var C;let f=p.currentTarget.value.trim();const g=h(f);let _=null;g||f?(g<0&&(_="noNegativeNumbersAllowed"),g>t&&(_="refundAmount.excess")):_="refundAmount.required";const A=((C=1.1.toLocaleString(e).match(/\d(.*?)\d/))==null?void 0:C[1])||".",T=f.split(A);if(T.length===2){const R=$i(n),O=T[0];let L=T[1];L.length>=R&&(L=L.substring(0,R),f=O+A+L,p.currentTarget.value=f)}l(f),i(_),s(_?0:g)};return a(Nd,{currency:n,errorMessage:o,errorMessageArg:u.amount(t,n),onInput:d,value:c,disabled:r})},Z_=()=>{const{i18n:e}=Y();return y(()=>a("div",{className:`${Vo} ${R_}`,children:[a(k,{el:ce.DIV,variant:b.SUBTITLE,stronger:!0,children:e.get("refundAction")}),a(k,{variant:b.BODY,children:e.get("refundNotice")})]}),[e])},X_=()=>{const{i18n:e}=Y(),{interactionsDisabled:t,refundReason:n,setRefundReason:r}=Na(),s=y(()=>Object.freeze(Ca.map(i=>({id:i,name:e.has(`refundReason.${i}`)?e.get(`refundReason.${i}`):i}))),[e]),o=E(i=>{var l;const c=(l=i.target)==null?void 0:l.value;c&&r(c)},[r]);return a("div",{className:Vo,children:[a("div",{className:yd,children:a(k,{el:ce.SPAN,variant:b.BODY,stronger:!0,children:e.get("refundReason")})}),a("div",{className:`${Ws} ${gd}`,children:a(Us,{items:s,readonly:t,filterable:!1,multiSelect:!1,onChange:o,selected:n})})]})},nl=({children:e,renderViewActionButtons:t,renderViewMessageBox:n})=>a("div",{className:Ke,children:[e,n&&n(),t()]}),rl=({action:e,title:t,renderIcon:n,subtitle:r})=>a("div",{className:M_,children:[n&&n(),a(k,{className:Nt.MEDIUM,variant:b.TITLE,children:t}),a(k,{variant:b.BODY,children:r}),e&&e()]}),Q_=({transaction:e,extraFields:t})=>{var We;const[n,r]=F(rt.DETAILS),[s,o]=F(),[i,c]=F(),[l,u]=F(!1),{fetchingTransaction:h,refreshTransaction:d,transaction:p,transactionNavigator:f}=Ym(e),{refundable:g,refundableAmount:_,refundableAmountLabel:A,refundAvailable:T,refundCurrency:C,refundDisabled:R,refundedState:O,refundStatuses:L,refundMode:S,refundLocked:I}=zm(p),N=y(()=>R||l,[R,l]),{i18n:M}=Y(),P=Object.freeze((p==null?void 0:p.lineItems)??de),z=E(ue=>o(ue),[]),j=E(ue=>c(ue),[]),te=E(ue=>ue===rt.REFUND&&N,[N]),{getBalanceAccounts:K}=Ce().endpoints,{data:se}=Ct(y(()=>({fetchOptions:{enabled:!!K&&!p.balanceAccount&&!!p.balanceAccountId,keepPrevData:!0},queryFn:async()=>K==null?void 0:K($)}),[p.balanceAccountId,p.balanceAccount,K])),Me=E(ue=>void(te(ue)||r(ue)),[te]),ve=E(()=>{const ue=[s,i].filter(Boolean);return ue.length?a(tl,{className:O_,children:a(Zu,{actions:ue,layout:zo.BUTTONS_END})}):null},[s,i]),fe=E(()=>{d(),u(!0)},[u,d]),Fe=E(()=>L!=null&&L.length||I||l?a("div",{className:B_,children:[(I||l)&&a(un,{type:ke.HIGHLIGHT,variant:ln.TIP,description:`${M.get("refund.theRefundIsBeingProcessed")} ${M.get("pleaseComeBackLater")}`}),L.map((ue,Ze)=>a(un,{variant:ln.TIP,type:(ue==null?void 0:ue.type)??ke.HIGHLIGHT,description:ue==null?void 0:ue.label},`${Math.random()}-${Ze}`))]}):null,[M,L,I,l]),pe=p.balanceAccount??((We=se==null?void 0:se.data)==null?void 0:We.find(ue=>ue.id===p.balanceAccountId));if(ho(()=>{r(rt.DETAILS)},[p]),ho(()=>{N&&r(rt.DETAILS)},[N]),h)return a(Aa,{skeletonRowNumber:5});if(te(n))return null;const Ne={lineItems:P,refundAvailable:T,refundDisabled:N,setActiveView:Me,setPrimaryAction:z,setSecondaryAction:j};switch(n){case rt.DETAILS:return a(nl,{renderViewActionButtons:ve,renderViewMessageBox:Fe,children:a(Mm,{...Ne,transaction:!p.balanceAccount&&pe?{...p,balanceAccount:pe}:{...p},transactionNavigator:f,extraFields:t,children:[a(tl,{className:P_,children:a(z_,{transaction:p,refundedState:O})}),a(U_,{})]})});case rt.REFUND:return a(nl,{renderViewActionButtons:ve,children:a(Hm,{...Ne,availableAmount:_,currency:C,refundMode:S,refreshTransaction:d,transactionId:p.id,children:[a(Z_,{}),g&&a(X_,{}),S===$e.FULL_AMOUNT&&a(q_,{}),(S===$e.PARTIAL_AMOUNT||S===$e.PARTIAL_LINE_ITEMS)&&a(K_,{locale:M.locale}),A&&a(un,{variant:ln.TIP,type:A.type,description:A.description})]})});case rt.REFUND_SUCCESS:return a(rl,{renderIcon:()=>a(st,{name:"checkmark-circle-fill",className:x(yo,F_)}),title:M.get("refundActionSuccessTitle"),subtitle:M.get("refundActionSuccessSubtitle"),action:()=>a(he,{variant:le.SECONDARY,onClick:fe,children:M.get("goBack")})});case rt.REFUND_ERROR:return a(rl,{renderIcon:()=>a(st,{name:"cross-circle-fill",className:x(yo,x_)}),title:M.get("refundActionErrorTitle"),subtitle:M.get("refundActionErrorSubtitle"),action:()=>a(he,{variant:le.SECONDARY,onClick:d,children:M.get("goBack")})});default:return null}},J_=({error:e,isFetching:t,transaction:n,extraFields:r})=>Pe(t)||!(n||e)?a(Aa,{skeletonRowNumber:5}):n?a(Q_,{transaction:n,extraFields:r}):null,qo=(e,t)=>{const{getBalanceAccounts:n}=Ce().endpoints,{data:r,isFetching:s,error:o}=Ct(y(()=>({fetchOptions:{enabled:!!n&&(t??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n($)}),[n])),i=y(()=>r==null?void 0:r.data.filter(l=>e?l.id===e:!0),[r==null?void 0:r.data,e]),c=y(()=>!!e&&!!(r!=null&&r.data.length)&&(i==null?void 0:i.length)===0,[i==null?void 0:i.length,r==null?void 0:r.data.length,e]);return{balanceAccounts:i,isBalanceAccountIdWrong:c,isFetching:s,error:o}},Sd=xr({withinModal:!1}),e3=()=>Br(Sd);function t3({title:e,children:t,classNameModifiers:n=[],isOpen:r,onClose:s,isDismissible:o=!0,headerWithBorder:i=!0,size:c="fluid",...l}){const u=Re(Oe.down.xs),{i18n:h}=Y(),d=va(null,s),p=E(f=>{f.key==="Escape"&&r&&o&&s()},[r,o,s]);return H(()=>(r?window.addEventListener("keydown",p):window.removeEventListener("keydown",p),()=>window.removeEventListener("keydown",p)),[r,p]),a(V,{children:r&&a("div",{className:x("adyen-pe-modal-wrapper",n.map(f=>`adyen-pe-modal-wrapper--${f}`),{"adyen-pe-modal-wrapper--open":r,"adyen-pe-modal-wrapper--dismissible":o}),role:"dialog","aria-modal":"true","aria-hidden":!open,...l,children:a(Sd.Provider,{value:{withinModal:!0},children:a("div",{className:x("adyen-pe-modal",{"adyen-pe-modal--fluid":c==="fluid","adyen-pe-modal--small":c==="small","adyen-pe-modal--large":c==="large","adyen-pe-modal--extra-large":c==="extra-large","adyen-pe-modal--full-screen":c==="full-screen"||u}),ref:d,children:[a("div",{className:x("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":e,"adyen-pe-modal__header--with-border-bottom":i}),children:[e&&a("div",{className:"adyen-pe-modal__header__title",children:e}),o&&a(he,{onClick:s,variant:le.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":h.get("dismiss"),children:a(st,{name:"cross"})})]}),a("div",{className:"adyen-pe-modal__content",children:t})]})})})})}const n3={transaction:"transactionDetails",payout:"payoutDetails"},r3=({hideTitle:e,type:t})=>{const{i18n:n}=Y(),{withinModal:r}=e3(),[s,o]=F(!1),i=y(()=>s||Pe(e),[s,e]),c=y(()=>n.get(n3[t]),[n,t]);return H(()=>{o(r)},[r]),{hideTitle:i,title:c}},s3={transaction:"getTransaction",payout:"getPayout"},fi=e=>!("data"in e);function xa(e){var _;const t=y(()=>fi(e)?null:e.data,[e]),n=y(()=>fi(e)?e.id:null,[e]),r=Ce().endpoints[s3[e.type]],{hideTitle:s,title:o}=r3(e),{data:i,error:c,isFetching:l}=Ct(y(()=>({fetchOptions:{enabled:!!n&&!!r},queryFn:async()=>{const A=e.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:e.date}};return r($,{...A})}}),[n,r,e])),u=e.type==="payout"?e.id:i==null?void 0:i.balanceAccountId,h=e.type==="payout"?e==null?void 0:e.balanceAccountDescription:e==null?void 0:e.balanceAccount,{balanceAccounts:d}=qo(u,!h),p=y(()=>{if(c)return La(c,"weCouldNotLoadYourTransactions",e.onContactSupport)},[c,e.onContactSupport]),f=fi(e)&&e.type==="transaction"?e.extraDetails:$,g=t??i;return a("div",{className:"adyen-pe-overview-details",children:[!s&&a("div",{className:"adyen-pe-overview-details--title",children:a(k,{variant:b.TITLE,medium:!0,children:o})}),c&&p&&a("div",{className:"adyen-pe-overview-details--error-container",children:a(qt,{withImage:!0,...p})}),e.type==="transaction"&&a(J_,{transaction:g?{...g||$,balanceAccount:(e==null?void 0:e.balanceAccount)||(d==null?void 0:d[0])}:void 0,error:!!(c&&p),isFetching:l,extraFields:f}),e.type==="payout"&&g&&a(Dm,{balanceAccountId:n,payout:g,balanceAccountDescription:(e==null?void 0:e.balanceAccountDescription)||((_=d==null?void 0:d[0])==null?void 0:_.description),isFetching:l})]})}class vd extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(xa,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}B(vd,"type","payoutDetails");const o3="adyen-pe-data-overview-container--with-error";function Ba({balanceAccountsError:e,children:t,className:n,errorMessage:r,isBalanceAccountIdWrong:s,onContactSupport:o}){const{hasError:i}=Ce();return a("div",{className:x(n,{[o3]:i}),children:i?a(qt,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[r,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):e?a(qt,{withImage:!0,centered:!0,...La(e,"weCouldNotLoadYourBalanceAccounts",o)}):s?a(qt,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[r,"theSelectedBalanceAccountIsIncorrect"]}):a(V,{children:t})})}const i3="adyen-pe-payouts-overview",a3="adyen-pe-payouts-details",c3=new Date("2024-04-16T00:00:00.000Z").toString(),Od="adyen-pe-payouts-table",l3=`${Od}__net-payout`,Rd=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],u3=["createdAt",...Rd],d3=e=>Rd.includes(e),h3=({error:e,loading:t,onContactSupport:n,onRowClick:r,showDetails:s,showPagination:o,data:i,...c})=>{const{i18n:l}=Y(),{dateFormat:u}=Xt("UTC"),{refreshing:h}=Ce(),d=y(()=>t||h,[t,h]),p=Re(Oe.up.sm),f=E(T=>{var R,O,L,S;const C=l.get(Pa(T));if(d3(T))return{label:(O=(R=i==null?void 0:i[0])==null?void 0:R[T])!=null&&O.currency?`${C} (${fu((S=(L=i==null?void 0:i[0])==null?void 0:L[T])==null?void 0:S.currency)})`:C,position:mn.RIGHT}},[i,l]),g=pd({fields:u3,columnConfig:y(()=>({fundsCapturedAmount:{...f("fundsCapturedAmount"),visible:p},adjustmentAmount:{...f("adjustmentAmount"),visible:p},payoutAmount:f("payoutAmount")}),[f,p])}),_={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},A=y(()=>()=>a(Da,{error:e,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[e,n]);return a("div",{className:Od,children:a(pn,{errorDisplay:A,error:e,columns:g,data:i,loading:d,outline:!1,onRowClick:{callback:r},emptyTableMessage:_,customCells:{createdAt:({value:T})=>T?p?T&&a(k,{variant:b.BODY,children:u(T,um)}):u(T,dm):null,fundsCapturedAmount:({value:T})=>T&&a(k,{variant:b.BODY,children:l.amount(T.value,T.currency,{hideCurrency:!0})}),adjustmentAmount:({value:T})=>T&&a(k,{variant:b.BODY,children:l.amount(T.value,T.currency,{hideCurrency:!0})}),payoutAmount:({value:T})=>T&&a(k,{variant:b.BODY,className:x({[`${l3}--strong`]:!p}),children:l.amount(T.value,T.currency,{hideCurrency:p})})},children:o&&a(pn.Footer,{children:a(ka,{...c})})})})},sl="adyen-pe-filter-bar-mobile-switch",$a=()=>{const e=Re(Oe.down.xs),[t,n]=F(!e);return H(()=>{n(!e)},[e]),{isMobileViewport:e,showingFilters:t,setShowingFilters:n}},Ua=({isMobileViewport:e,showingFilters:t,setShowingFilters:n})=>e?a("div",{className:sl,children:a(he,{iconButton:!0,className:`${sl}__button`,disabled:!ee(n),onClick:()=>n==null?void 0:n(!t),variant:le.SECONDARY,children:a(st,{name:t?"cross":"filter"})})}):null,Wa=e=>{const{i18n:t}=Y();return e.showingFilters?a("div",{"aria-label":t.get("filterBar"),className:x("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":e.isMobileViewport}),children:[e.children,e.canResetFilters&&!!e.resetFilters&&a(he,{variant:le.TERTIARY,onClick:e.resetFilters,children:t.get("button.clearAll")})]}):null},Ha="adyen-pe-balance-account-selector",f3=`${Ha}__account-id`,m3=`${Ha}__account-label`,Ga=be(({activeBalanceAccount:e,balanceAccountSelectionOptions:t,onBalanceAccountSelection:n})=>{const r=Re(Oe.down.xs),s=E(o=>a(V,{children:[a("div",{className:o.contentClassName,children:[o.item.name&&a("span",{className:m3,children:o.item.name}),a("span",{className:f3,children:o.item.id})]}),hd(o)]}),[]);return t&&t.length>1?a(Us,{popoverClassNameModifiers:[Ha],onChange:n,filterable:!1,multiSelect:!1,selected:e==null?void 0:e.id,withoutCollapseIndicator:!0,items:t,renderListItem:s,showOverlay:r}):null}),Ya=Object.freeze([10,20]),p3=100,us=10,Ui=e=>{const t=~~e;return t===e&&t>0?Math.min(t,p3):Math.max(t,0)},_3=(e,t)=>{const n=e.length-1;if(n<0)return t;if(t<=e[0])return e[0];if(t>=e[n])return e[n];let r=0,s=0,o=n;for(;;){const i=e[r=$l(s,o)];if(s>o||t===i)return i;t>i?s=r+1:o=r-1}},g3=({preferredLimit:e=us,preferredLimitOptions:t})=>{const n=G(),r=G(),s=y(()=>{try{const i=new Set;for(const c of t){const l=Ui(c);l>0&&i.add(l)}return Object.freeze([...i].sort((c,l)=>c-l))}catch{}},[t]);return{limit:y(()=>{let i=Ui(e)||us;e:try{if(n.current===s)break e;const c=new Set(n.current=s);if(c.size===0){n.current=void 0;break e}if(r.current!==i)t:{if(c.size===c.add(i).size)break t;if(c.delete(i),c.size===c.add(r.current).size){if(Mr(r.current)){i=r.current;break t}}else c.delete(r.current);i=_3(n.current,i)}}catch{}return r.current=i},[s,e]),limitOptions:s}},ja=e=>{const t=G(!1),n=y(()=>e,[e]);return H(()=>(t.current=!0,()=>{t.current=!1,n&&n()}),[n]),t},bd=(e,t,n)=>{const r=G(),s=G(),o=G(),i=G(),c=ja(E(()=>{var P;(P=r.current)==null||P.abort(),r.current=void 0},[])),[l,u]=F(i.current),[h,d]=Rt(!1),p=y(()=>Ui(n),[n]),{getPageCount:f,getPageParams:g,resetPageCount:_,updatePagination:A}=e,T=y(()=>t?P=>{var K;if(!(p&&Number.isInteger(P)))return;const z=f(),j=P<0?P+z+1:P;j>0&&(z?j<=z:j===1)&&((K=r.current)==null||K.abort(),r.current=new AbortController,c.current&&(((i.current=j)>1||z)&&u(i.current),(async()=>{const{signal:se}=r.current,Me={...g(j,p),limit:p,page:j};try{const ve=await t(Me,se);if(!ve||!c.current)return;const{size:fe,...Fe}=ve;A(j,p,Fe),s.current=i.current&&Math.max(i.current,s.current||-1/0),i.current&&i.current===s.current&&(o.current=fe),i.current===1&&fe>0&&u(i.current),i.current=void 0,d(!0)}catch(ve){if(se.aborted)return;console.error(ve)}})()))}:ne,[p,t]),C=E(()=>{l&&T(Math.min(l+1,f()))},[T,l]),R=E(()=>{l&&T(Math.max(l-1,1))},[T,l]),O=y(()=>f()||l||void 0,[T,h]),L=y(()=>!!(l&&O)&&l<O,[l,O]),S=y(()=>!!l&&l>1,[l]),I=y(()=>s.current?(s.current-1)*p+(o.current||0):0,[T,h]),N=y(()=>p&&Math.min(p,I||1/0)%p,[p,I]),M=E(()=>{_(),s.current=o.current=i.current=void 0,c.current&&u(i.current)},[_]);return H(()=>{c.current&&h&&d(!1)},[h]),{goto:T,hasNext:L,hasPrev:S,limit:p,next:C,page:l,pages:O,pageSize:N,prev:R,resetPagination:M,size:I}},y3=e=>ot(e.next),T3=e=>ot(e.prev),A3=(e,t)=>{const n=y(()=>{const r=[],s=()=>r.length,o=()=>{r.length=0},i=u=>({cursor:r[u-1]}),c=(u,h)=>{const d=r[h-1];(h===1||h===(r.length||1)+1)&&Z(d)&&(r[h-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:s,getPageParams:i,resetPageCount:o,updatePagination:(u,h,d)=>{y3(d)&&c(d.next,u+1),T3(d)&&c(d.prev,u-1)}}},[]);return bd(n,e,t)},E3=e=>e.next,C3=(e,t)=>{const n=y(()=>{let r=0;return{getPageCount:()=>r,getPageParams:(l,u)=>({offset:(l-1)*u}),resetPageCount:()=>{r=0},updatePagination:(l,u,h)=>{E3(h)&&h.next&&(r=Math.max(r,l+1))}}},[]);return bd(n,e,t)},N3=(e=$,t=!0)=>{const n=G(t),r=G(Object.freeze({...e})),s=G(new Set(Object.keys(r.current))),o=G(new Set),i=ja(),[c,l]=y(()=>{const p=f=>{i.current&&h(f)};return[()=>p("reset"),f=>p(f)]},[i]),[u,h]=Ho((p,f)=>{if(f==="reset")return o.current.clear(),r.current;const g={...f},_=[0];Object.keys(g).forEach((T,C)=>{if(!s.current.has(T))return;const R=p[T]??void 0,O=r.current[T]??void 0,L=g[T]??O;if(L===R)return;const S=Math.floor(C/32),I=1<<C%32;g[T]=L,_[S]|=I,o.current[L===O?"delete":"add"](T)});const A=_.some(T=>T)?n.current&&o.current.size===0?r.current:Object.freeze({...p,...g}):p;return n.current||(r.current=A,n.current=!0),A},r.current),d=y(()=>!!o.current.size,[]);return H(()=>{r.current=Object.freeze({...e}),s.current=new Set(Object.keys(r.current)),n.current=t,c()},[t,e,c]),{canResetState:d,defaultState:r.current,resetState:c,state:u,updateState:l}},S3=(e=$,t)=>{const{canResetState:n,defaultState:r,resetState:s,state:o,updateState:i}=N3(e,t);return{canResetFilters:n,defaultFilters:r,filters:o,resetFilters:s,updateFilters:i}};var Wi=(e=>(e.NEXT="next",e.PREV="prev",e))(Wi||{}),za=(e=>(e.CURSOR="cursor",e.OFFSET="offset",e))(za||{});const v3=["hasNext","hasPrevious"],Id=e=>{const t=Object.getOwnPropertyNames(e);return!v3.some(n=>t.includes(n))},O3=(e,t="data")=>{const n=e[t];if(Id(e)){const r=Object.fromEntries(Object.entries(e._links).map(([s,o])=>[s,o.cursor]));return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},R3=(e,t="data")=>{const n=e[t];if(!Id(e)){const{hasNext:r,hasPrevious:s}=e,o={[Wi.NEXT]:Pe(r),[Wi.PREV]:Pe(s)};return{records:n,paginationData:o}}throw new TypeError("MALFORMED_PAGINATED_DATA")},b3=({dataField:e="data",fetchRecords:t,filterParams:n=$,initialFiltersSameAsDefault:r=!0,initialize:s,onFiltersChanged:o,pagination:i,preferredLimit:c,preferredLimitOptions:l,enabled:u})=>{const[h,d]=F([]),[p,f]=Rt(!0),[g,_]=F(),[A,T]=F(c),C=ja(),R=G(!0),O=G(1),L=S3(n,r),{limit:S,limitOptions:I}=g3({preferredLimit:A,preferredLimitOptions:l}),{defaultFilters:N,filters:M,updateFilters:P,...z}=L,[j,te]=y(()=>i===za.CURSOR?[O3,A3]:[R3,C3],[]),K=E(pe=>T(pe),[]),{goto:se,page:Me,pages:ve,resetPagination:fe,...Fe}=te(E(async({page:pe,...Ne},We)=>{try{if(_(void 0),O.current=pe,!C.current||f(!0))return;const ue=await t({...Ne,...M},We),{records:Ze,paginationData:en}=j(ue,e);return R.current&&(s==null||s([Ze,en],L),R.current=!1),C.current&&(d(Ze),f(!1)),{...en,size:Ze==null?void 0:Ze.length}}catch(ue){if(We!=null&&We.aborted)return;f(!1),_(ue),console.error(ue)}},[t,M,S]),S);return y(()=>{R.current=!0},[n]),y(()=>{fe(),O.current=1},[M,S,fe]),H(()=>{u&&se(O.current)},[se,u]),H(()=>{o==null||o(M)},[M]),{error:g,fetching:p,filters:M,goto:se,limitOptions:I,page:Me,pages:ve,records:h,updateFilters:P,updateLimit:K,...z,...Fe}},Va=e=>b3({...e,pagination:za.CURSOR}),qa=e=>{const[t,n]=F(0),r=E(()=>n(0),[n]),s=y(()=>e==null?void 0:e[t],[e,t]),o=y(()=>e&&e.length>1?Object.freeze(e.map(({description:c,id:l})=>({id:l,name:Z0(c)}))):void 0,[e]),i=E(({target:c})=>{const l=c==null?void 0:c.value,u=e==null?void 0:e.findIndex(({id:h})=>h===l);u>=0&&n(u)},[e,n]);return{activeBalanceAccount:s,balanceAccountSelectionOptions:o,onBalanceAccountSelection:i,resetBalanceAccountSelection:r}},{getTimezoneTime:I3,getUsedTimezone:L3}=(()=>{const e=/\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,t=/^GMT|0(?=\d:00)|:00/g,n=Fs();return{getTimezoneTime:(o,i=Date.now())=>{n.tz=o;const{formatted:c}=n(i),[l="",u=""]=(c==null?void 0:c.match(e))??de,h=Oi(c),d=`${l}${u&&` ${u}`}`,p=s1(h).replace(t,"");return[d,p]},getUsedTimezone:o=>(n.tz=o,n.tz.current)}})(),D3=({timezone:e,withClock:t=!1}=$)=>{const n=y(()=>Pe(t),[t]),r=y(()=>L3(e),[e]),s=G(ne),[o,i]=F(Date.now()),[c,l]=y(()=>I3(r,o),[o,r]);return y(()=>{s.current(),s.current=n?na.subscribe(u=>{$n(u)||i(u.now)}):ne},[i,n]),{clockTime:c,GMTOffset:l,timestamp:o,timezone:r}},w3=e=>Object.freeze({systemToTimezone:W(t=>Lt(e,t)),timezoneToSystem:W(t=>Yt(e,t)),timezoneOffset:W(t=>e(t).offset)}),Ld=(e,t,n=e)=>{const r=(s,o)=>{let i=s;Ae(s)?i=n:ns(s)||(i=o??n);const c=Et(e,i,t);return c===i?c:o??n};return s=>{const o=ae(()=>i);let i=r(s);return Q({value:o,descriptor:W({...o,set(c){const l=i;i=r(c,i),l!==i&&(this.now=this.now)}})})}},k3=(e,t)=>n=>ee(n)?n.call(e,t):n,P3=e=>!Dt(e,"offsets"),M3=e=>Dt(e,"from"),Ko=({now:e})=>e,F3=(()=>{const e=new Map;return t=>{let n=e.get(t);return Z(n)&&(n=Object.freeze([0,0,t,0,0,0,-1]),e.set(t,n)),n}})(),Yn=e=>{try{const t=e instanceof Date||+e===e?e:void 0,n=new Date(t).getTime();return isNaN(n)?void 0:n}catch{}},Zo=(e=$,t=$)=>{const n=os(e),r=os(t);return()=>{const s=Fs(),o=ae(()=>d),i=ae(()=>s.tz.current),c=Q({now:o,timezone:i,...w3(s)}),l=k3(n,c);let{from:u,to:h,now:d}=$;const p=g=>{d=Yn(g??Date.now())??d;e:{if(P3(n)){u=Yn(l(n.from))??d,h=Yn(l(n.to))??d;break e}let _,A,T;(T=M3(n))?(_=new Date(u=Yn(l(n.from))??d),A=1):(_=new Date(h=Yn(l(n.to))??d),A=-1),_=new Date(c.timezoneToSystem(_));const[C=0,R=0,O=0,L=0,S=0,I=0,N=0]=l(n.offsets);_.setFullYear(_.getFullYear()+C*A,_.getMonth()+R*A,_.getDate()+O*A),_.setHours(_.getHours()+L*A,_.getMinutes()+S*A,_.getSeconds()+I*A,_.getMilliseconds()+N*A);const M=Yn(c.systemToTimezone(_))??d;T?h=M:u=M}u>h&&([u,h]=[h,u])},f=g=>{const _=s.tz,A=_.current;s.tz=g,_.current!==A&&p(d)};return p(),Q({...r,from:ae(()=>u),now:{...o,set:p},timezone:{...i,set:f},to:ae(()=>h)})}},x3=/^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/,Xo=(e=Po)=>(t,n,...r)=>{const s=Kt(n),o=new Date(Yt(s,t));return o.setHours(0,0,0,0),Lt(s,e(o,...r))},Dd=Xo(),wd=Xo(e=>e.setDate(1)),B3=Xo(e=>e.setMonth(0,1)),kd=Xo((e,t)=>{const n=U3(e.getDay(),t??0);return e.setDate(e.getDate()-n)}),$3=e=>(e%100?e%4:e%400)===0,mi=(e,t,n=0)=>{const r=e+n,s=ws(r,12),o=t+Math.floor(r/12);let i=31;switch(s){case 1:i=$3(o)?29:28;break;case 3:case 5:case 8:case 10:i=30;break}return[i,s,o]},U3=(e,t=0)=>(7-t+e)%7,Jn=(e,t)=>Dn(e)?0:e-Dd(e,t),ol=e=>Z(e)?e:new Date(e),W3=(e,t=$)=>{const n=Kt(t.timeZone),r={...oa,...t,timeZone:n.tz.current};return new Date(e).toLocaleDateString($o,r)},nn=(e,t)=>{const n=W3(e,{...pu,...oa,timeZone:t,hour12:!1}),[,r="",s="",o="",i="",c="",l="",u=""]=n.match(x3)??de;return[+o,+r-1,+s,+i%24,+c,+l,+u]},Hi=(e,t,n)=>{if(Dn(e)||Dn(t))return 1/0;const[r,s]=nn(e,n),[o,i]=nn(t,n);return Math.abs(i-s+(o-r)*12)},Kt=(()=>{const e=Fs();return t=>(e.tz=void 0,e.tz=t,e)})(),Ka=1,H3=F3(7),G3=Ld(0,6,Ka),Pd=(e=0)=>{const t=~~Et(0,e,1/0)||0;return(n=Ka)=>{const r=t?{offsets:H3}:{to:Ko},s=G3(n);return Zo({from:({now:o,timezone:i,systemToTimezone:c,timezoneToSystem:l})=>{const u=new Date(l(kd(o,i,s.value)));return u.setDate(u.getDate()-t*7),c(u)},...r},{firstWeekDay:s.descriptor})()}},Y3=Object.freeze([0,1,0,0,0,0,-1]),Md=(e=0)=>{const t=~~Et(0,e,1/0)||0;return Zo({from:({now:r,timezone:s,systemToTimezone:o,timezoneToSystem:i})=>{const c=new Date(i(wd(r,s)));return c.setMonth(c.getMonth()-t),o(c)},...t?{offsets:Y3}:{to:Ko}})},j3=Md(1),z3=365,V3=1,q3=1,K3=Ld(V3,z3,q3),il=e=>{const t=K3(e);return Zo({from:({now:n,timezone:r,systemToTimezone:s,timezoneToSystem:o})=>{const i=new Date(o(Dd(n,r)));return i.setDate(i.getDate()-t.value+1),s(i)},to:Ko},{numberOfDays:t.descriptor})()},Z3=Pd(1),X3=Md(0),Q3=Pd(0),J3=Zo({from:({now:e,timezone:t})=>B3(e,t),to:Ko}),eg=()=>Object.freeze({"rangePreset.last7Days":il(7),"rangePreset.last30Days":il(30),"rangePreset.thisWeek":Q3(),"rangePreset.lastWeek":Z3(),"rangePreset.thisMonth":X3(),"rangePreset.lastMonth":j3(),"rangePreset.yearToDate":J3()}),tg=({now:e=Date.now(),options:t,selectedOption:n,timezone:r})=>{const{i18n:s}=Y(),[o,i]=F(),[c,l]=F(),[u,h]=F(),d=G(),p=G(),[f,g,_]=y(()=>{const S=s.get("rangePreset.custom"),I=Object.keys(t),N=Object.freeze(I.map(P=>s.get(P)));return[S,(P,z=N)=>{const j=z.findIndex(te=>te===P);return t[I[j]]},N]},[s,t]),[A,T]=F(n===f),C=y(()=>Object.freeze([..._,f]),[f,_]),R=y(()=>A?C:_,[A,_,C]),O=E(S=>{const I=g(S,_);I&&(i(I.from),l(I.to),T(!1),h(S))},[f,g,u,_]),L=E(()=>{i(void 0),l(void 0),T(!0),h(f)},[f]);return y(()=>{n===f?h(f):O(n)},[]),y(()=>{var S;if(d.current!==e||p.current!==r){const I=Object.values(t);I.forEach(N=>{N.now=e,N.timezone=r}),d.current=e,p.current=(S=I[0])==null?void 0:S.timezone,O(u)}},[e,r,t]),{customSelection:L,from:o,onSelection:O,options:R,selectedOption:u,to:c}},ng=({calendarRef:e,onTimeRangeSelected:t,timestamp:n,...r})=>{const{customSelection:s,from:o,onSelection:i,options:c,selectedOption:l,to:u}=tg(r),h=y(()=>Object.freeze(c.map(g=>({id:g,name:g}))),[c]),d=E(({target:g})=>i(g==null?void 0:g.value),[i]),p=G(!0),f=G(n);return H(()=>{e!=null&&e.current&&o&&u&&(p.current=!0,e.current.from=new Date(o),e.current.to=new Date(u))},[e,o,u]),H(()=>{f.current!==n&&(f.current=n,p.current?p.current=!1:s())},[s,n]),H(()=>{l&&(t==null||t(l))},[l,t]),a(Us,{setToTargetWidth:!0,items:h,filterable:!1,multiSelect:!1,onChange:d,selected:l})},mt=(()=>{const e=r=>Object.freeze(Fr($,Object.fromEntries(Object.entries(r).map(([s,o])=>[s,{value:o}])))),t=r=>{try{return Object.getPrototypeOf(r)===$}catch{return!1}},n=(r,s)=>{if(!r)return e(W(s,wt(r)));let o=s;return e({enumerable:!0,get:()=>o,set:i=>{o=r(i)}})};return Object.defineProperties(n,{is:{value:t},isObject:{value:Mo},immutable:{value:r=>n(!1,r)},mutable:{value:r=>n(void 0,r)},restricted:{value:()=>n(!1)}})})(),Fd=(()=>{const e=(n={},r=!1)=>{const s=Q();for(const[o,i]of Object.entries(n)){try{const c=mt.is(i),l=mt.isObject(i);if(c||l){Object.defineProperty(s,o,c?i:e(i,r));continue}else if(r){Object.defineProperty(s,o,mt.immutable(i));continue}}catch{}s[o]=i}return mt((o={})=>Object.assign(s,o),s)};return Object.defineProperties(e,{unwrapped:{value:(n={},r=!1)=>{const s=e(n,r);return Q({P:s}).P}}})})();var Za=(e=>(e[e.DATE=0]="DATE",e[e.DAY_OF_WEEK=1]="DAY_OF_WEEK",e[e.MONTH_HEADER=2]="MONTH_HEADER",e))(Za||{});const xd="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",Bd="adyen-pe-calendar__date",rg=(e=$,t)=>{const n=Fd.unwrapped({childClassName:mt.mutable(Bd),childProps:{children:mt.restricted(),className:""},className:mt.mutable(xd),props:{...e,children:mt.restricted(),className:""}},!0);return t==null||t(Za.DATE,n),n},sg=qe(({grid:e,prepare:t,datetime:n,flags:r,index:s,label:o,onlyCellsWithin:i},c)=>{const l=r.WITHIN_BLOCK,u={"data-cursor-position":s,"data-within-month":l,tabIndex:-1};if(l){const _=r.WITHIN_RANGE;u["data-today"]=r.CURRENT,u["data-first-week-day"]=r.LINE_START,u["data-last-week-day"]=r.LINE_END,u["data-weekend"]=r.WEEKEND,u["data-first-month-day"]=r.BLOCK_START,u["data-last-month-day"]=r.BLOCK_END,u["data-within-range"]=_,_&&(u["data-range-end"]=r.RANGE_END,u["data-range-start"]=r.RANGE_START,u["data-selection-end"]=r.SELECTION_END,u["data-selection-start"]=r.SELECTION_START,u["data-within-selection"]=r.WITHIN_SELECTION,u["aria-selected"]=`${!!(r.SELECTION_END||r.SELECTION_START||r.WITHIN_SELECTION)}`),s===+e.cursor&&(u.ref=c)}const h=rg(u,t),{children:d,className:p,...f}=h.props||$,g=mo(h.className,xd,p);return a("td",{...f,...u,className:g,children:(!i||l)&&(()=>{const{children:_,className:A,...T}=h.childProps||$,C=mo(h.childClassName,Bd,A);return a("time",{...T,className:C,dateTime:n,children:o})})()})}),og=be(sg,fo({block:fo.exclude,flags:e=>+e})),$d="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",Ud="adyen-pe-calendar__day-of-week",ig=(e=$,t)=>{const n=Fd.unwrapped({childClassName:mt.mutable(Ud),childProps:{children:mt.restricted(),className:""},className:mt.mutable($d),props:{...e,children:mt.restricted(),className:""}},!0);return t==null||t(Za.DAY_OF_WEEK,n),n},ag=({prepare:e,flags:t,labels:{long:n,short:r}})=>{const s={"aria-label":n,"data-first-week-day":t.LINE_START,"data-last-week-day":t.LINE_END,"data-weekend":t.WEEKEND,scope:"col"},o=ig(s,e),{children:i,className:c,...l}=o.props||$,u=mo(o.className,$d,c),{children:h,className:d,...p}=o.childProps||$,f=mo(o.childClassName,Ud,d);return a("th",{...l,ref:l.ref,...s,className:u,children:a("abbr",{...p,className:f,children:r})})},cg=be(ag,fo({block:fo.exclude,flags:e=>+e})),lg=$r(({cursorRootProps:e,onlyCellsWithin:t,prepare:n,grid:r},s)=>a("ol",{className:"adyen-pe-calendar",role:"none",...e,children:r.map(o=>a("li",{className:"adyen-pe-calendar__month",role:"none",children:[a("div",{className:"adyen-pe-calendar__month-name",role:"none",children:a("time",{dateTime:o.datetime,"aria-hidden":"true",children:o.label})}),a("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${o.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":r.rowspan},children:[a("thead",{children:a("tr",{className:"adyen-pe-calendar__row",children:r.weekdays.map((i,c)=>a(cg,{grid:r,block:o,prepare:n,cell:c,...i},i.labels.long))})}),a("tbody",{children:o.map((i,c)=>a("tr",{className:"adyen-pe-calendar__row",children:i.map((l,u)=>a(og,{ref:s,grid:r,block:o,prepare:n,cell:u,onlyCellsWithin:t,row:c,...l},`${o.month}:${l.timestamp}`))},`${o.month}:${c}`))})]})]},o.datetime))})),ug=be(lg),ds=864e5,dg=["narrow","short","long"],Wd=[0,1,6],or=[1,2,3,4,6,12],al=42,hg=[0,1],Xa=Symbol(),Qa=Symbol(),Ja=Symbol(),cl=[Ja,Qa,Xa],An=Symbol(),er=Symbol(),tr=Symbol(),fg=[er,tr,An],Hd=Symbol(),Gd=Symbol(),Yd=Symbol(),jd=Symbol(),zd=Symbol(),Vd=Symbol(),qd=Symbol(),Kd=Symbol(),Zd=Symbol(),Xd=Symbol(),ec=Symbol(),tc=Symbol(),Qd=Symbol(),ll=Symbol(),ze=Symbol(),ul=Symbol(),lt=Symbol(),Jd=Symbol(),Js=Symbol(),eo=Symbol(),dl=(e,t)=>{if(t>=e)return e;let n=Math.max(1,or.indexOf(e));for(;--n&&t<or[n];);return or[n]},mg=e=>or[Math.max(or.indexOf(e),0)],hl=(e=0)=>Object.freeze(hg.map(t=>ws(6-e+t,7)));var gs,Je,et,hr,fr;class fl{constructor(...t){w(this,gs,1/0);w(this,Je,1/0);w(this,et,-1/0);w(this,hr,0);w(this,fr,0);if(t.length>=3){let n=new Date(t[1]).getTime();if(typeof t[2]!="symbol")v(this,et,n||m(this,et)),v(this,Je,new Date(t[2]).getTime()||m(this,Je)),m(this,Je)<m(this,et)&&([gn(this,Je)._,gn(this,et)._]=[m(this,et),m(this,Je)]),v(this,fr,Jn(m(this,et),t[0])),v(this,hr,Jn(m(this,Je),t[0])),v(this,gs,Hi(m(this,et),m(this,Je),t[0])+1);else if(!isNaN(n))switch(t[2]){case tc:v(this,Je,n),v(this,hr,Jn(m(this,Je),t[0]));break;case ec:default:v(this,et,n),v(this,fr,Jn(m(this,et),t[0]));break}}}get numberOfMonths(){return m(this,gs)}get endTimestamp(){return m(this,Je)}get endTimestampOffset(){return m(this,hr)}get startTimestamp(){return m(this,et)}get startTimestampOffset(){return m(this,fr)}}gs=new WeakMap,Je=new WeakMap,et=new WeakMap,hr=new WeakMap,fr=new WeakMap;const Qo=(...e)=>{let t=Kt().tz.current,n=new fl(t,...e);return Q({from:ae(()=>n.startTimestamp,!1),to:ae(()=>n.endTimestamp,!1),offsets:{value:Q({from:ae(()=>n.startTimestampOffset,!1),to:ae(()=>n.endTimestampOffset,!1)})},span:ae(()=>n.numberOfMonths,!1),timezone:{...ae(()=>t,!1),set:r=>{const s=t;t=Kt(r??void 0).tz.current,t!==s&&(n=new fl(t,...e))}}})},ts=Qo(),pg=()=>Qo(Date.now(),ec),_g=()=>Qo(Date.now(),tc),e0=(...e)=>e.length===0?ts:Qo(...e);var Ie=(e=>(e[e.CURRENT=1]="CURRENT",e[e.CURSOR=2]="CURSOR",e[e.WEEKEND=4]="WEEKEND",e[e.LINE_START=8]="LINE_START",e[e.LINE_END=16]="LINE_END",e[e.WITHIN_BLOCK=32]="WITHIN_BLOCK",e[e.BLOCK_START=64]="BLOCK_START",e[e.BLOCK_END=128]="BLOCK_END",e[e.WITHIN_RANGE=256]="WITHIN_RANGE",e[e.RANGE_START=512]="RANGE_START",e[e.RANGE_END=1024]="RANGE_END",e[e.WITHIN_SELECTION=2048]="WITHIN_SELECTION",e[e.SELECTION_START=4096]="SELECTION_START",e[e.SELECTION_END=8192]="SELECTION_END",e[e.ALL=16383]="ALL",e))(Ie||{}),Vn=(e=>(e[e.PREV=1]="PREV",e[e.BLOCK=0]="BLOCK",e[e.FRAME=2]="FRAME",e[e.PERIOD=4]="PERIOD",e))(Vn||{}),Gi=(e=>(e[e.PREV_PERIOD=5]="PREV_PERIOD",e[e.PREV_FRAME=3]="PREV_FRAME",e[e.PREV=1]="PREV",e[e.NEXT=0]="NEXT",e[e.NEXT_FRAME=2]="NEXT_FRAME",e[e.NEXT_PERIOD=4]="NEXT_PERIOD",e))(Gi||{});const t0=(()=>{const e={},t=Object.keys(Ie).filter(r=>isNaN(+r)),n=r=>r!=="ALL"&&ot(r)&&t.includes(r);return r=>{const s=r&Ie.ALL;return e[s]||(e[s]=new Proxy(Q({valueOf:{value:()=>s}}),xo({get:(o,i)=>{switch(i){case"valueOf":return o.valueOf;case Symbol.toStringTag:return"_";default:if(!n(i))return}return s&Ie[i]?1:void 0}}))),e[s]}})(),gg=e=>(t,n,r)=>{if(ot(n)){const s=+n;if(s>=0&&s<t.length)return e(s)}return Reflect.get(t,n,r)},ml=function*(e=Po,t){for(let n=0;n<this.length;n++)yield e.call(t,this[n],n,this)},yg=Object.freeze(Q({[Symbol.iterator]:{value(){return ml.call(this)}},map:{value(e,t){return[...ml.call(this,e,t)]}}})),zt=(e,t)=>ee(e)?zt({length:{get:e}},t):Mr(e)?zt({length:{value:e}},t):new Proxy(Fr(yg,e),{get:gg(t),set:Ni}),Ao=(()=>{const e=new Map,t=Fs(),n=(r=Date.now())=>{const s=new Date(Yt(t,r)),o=Lt(t,s.setHours(0,0,0,0)),i=Lt(t,s.setDate(s.getDate()+1));return[o,i-o]};return r=>{t.tz=r;const s=t.tz.current;return e.get(s)??(()=>{let o=null,i=null,c=null;const l=()=>(t.tz=s,o??n()[0]),u=(_=Date.now())=>{t.tz=s,[o,i]=n(_)},{cancelSubscriptions:h,requestNotification:d,subscribe:p,on:f}=Ms({timestamp:l});f.resume=()=>{c=na.subscribe(_=>{if($n(_))return;const{now:A}=_;if(io(o)||io(i))return u(A);A-o<i||(u(A),d())})},f.idle=()=>{c==null||c(),o=i=c=null};const g=Q({cancelSubscriptions:W(h),timestamp:ae(l),timezone:W(s),subscribe:W(p)});return e.set(s,g),g})()}})();var mr,Ve,ys,Ts,As,Es,_t,tt,Bt,pr,_r,gr,vn,$t,Cs,Be,De,we,yr,Ut,On,Tr,gt,Ns,Ss,sn,Wt,vs,Os,No,So,ie,n0,r0,qn,s0,Qe,Zr,ji;const nr=class nr{constructor(){w(this,ie);w(this,Ve,0);w(this,ys);w(this,Ts);w(this,As,-1);w(this,Es,-1);w(this,_t);w(this,tt);w(this,Bt);w(this,pr,!1);w(this,_r);w(this,gr,0);w(this,vn,[]);w(this,$t,m(nr,mr));w(this,Cs,12);w(this,Be);w(this,De);w(this,we,1);w(this,yr);w(this,Ut);w(this,On);w(this,Tr,Ao());w(this,gt);w(this,Ns,-1/0);w(this,Ss,1/0);w(this,sn,-1/0);w(this,Wt,1/0);w(this,vs,1/0);w(this,Os,0);B(this,"daysInWeek",0);B(this,"origin");B(this,"originTimestamp");w(this,No,zt(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));w(this,So,zt(()=>m(this,we),U(this,ie,s0).bind(this)))}get fromTimestamp(){return m(this,Ns)}get toTimestamp(){return m(this,Ss)}get numberOfBlocks(){return m(this,vs)}get blankSelection(){return m(this,Be)===m(this,De)&&Z(m(this,De))}get cursor(){return m(this,_t)??-1}get daysOfWeek(){return m(this,No)}get dynamicBlockHeight(){return m(this,pr)}set dynamicBlockHeight(t){Ae(t)?v(this,pr,!!t):Ci(t)&&v(this,pr,t)}set effect(t){Ae(t)?v(this,_r,void 0):ee(t)&&v(this,_r,t)}get firstWeekDay(){return m(this,gr)}set firstWeekDay(t){if(Ae(t))this.firstWeekDay=0;else if(!Wd.includes(t)||m(this,gr)===v(this,gr,t))return}get frameBlocks(){return m(this,So)}get isAtEnd(){return!Dn(m(this,Wt))&&m(this,Wt)===m(this,we)-1}get isAtStart(){return!Dn(m(this,sn))&&m(this,sn)===0}get locale(){return m(this,$t)}set locale(t){const n=m(this,$t);if(Ae(t))v(this,$t,m(nr,mr));else if(typeof Intl<"u")try{v(this,$t,new Intl.Locale(t).toString())}catch{v(this,$t,m(nr,mr))}m(this,$t)!==n&&this.refreshFrame(!0)}get selectionStart(){return m(this,Be)}get selectionEnd(){return m(this,De)}get size(){return m(this,we)}set size(t){const n=Math.min(!Ae(t)&&mg(t)||1,m(this,Cs));m(this,we)!==v(this,we,n)&&(U(this,ie,ji).call(this),this.refreshFrame())}get timeslice(){return m(this,Ut)}set timeslice(t){if(t===m(this,yr)||Ae(t)&&m(this,yr)===ts)return;const{from:n,to:r,timezone:s}=v(this,yr,t??ts);v(this,Ut,e0(n,r)),this.timezone=s}get timezone(){return m(this,On)}set timezone(t){m(this,Ut).timezone=t,v(this,On,m(this,Ut).timezone),v(this,Tr,Ao(m(this,On))),m(this,gt)&&(m(this,gt).call(this),v(this,gt,m(this,Tr).subscribe(this.refreshFrame.bind(this,!0)))),U(this,ie,n0).call(this)}set trackCurrentDay(t){Ci(t)?t&&!m(this,gt)?v(this,gt,m(this,Tr).subscribe(this.refreshFrame.bind(this,!0))):!t&&m(this,gt)&&(m(this,gt).call(this),v(this,gt,void 0)):Ae(t)&&(this.trackCurrentDay=!1)}get units(){return m(this,Os)}initialize(){this.timeslice=ts}refreshFrame(t=!1){var n;if(m(this,vn).length=0,!(Z(m(this,tt))||t)){const r=this.getFrameBlockAtIndex(m(this,Ve)),{from:s,to:o}=r.inner,[i]=U(this,ie,qn).call(this,this.getTimestampAtIndex(s+m(this,tt)),!1);v(this,tt,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(s),i));const c=s+m(this,tt),l=Et(s,c,o);if(l>c)return v(this,tt,this.getUnitsForFrameBlockAtIndex(--gn(this,Ve)._)+c-l),m(this,Ve)>=0?this.refreshFrame():(v(this,Ve,m(this,we)-1),this.shiftFrameByOffset(-1,Js));if(l<c)return v(this,tt,c-l-1),++gn(this,Ve)._<m(this,we)?this.refreshFrame():(v(this,Ve,0),this.shiftFrameByOffset(1,Js));v(this,ys,s),v(this,Ts,o),v(this,Bt,U(this,ie,qn).call(this,this.getTimestampAtIndex(c),!1)[0]),v(this,tt,this.getCursorBlockOriginTimestampOffset(m(this,Bt))),v(this,_t,s+m(this,tt));const u=m(this,Ve)>0?this.getFrameBlockAtIndex(0):r,h=m(this,Ve)<m(this,we)-1?this.getFrameBlockAtIndex(m(this,we)-1):r;v(this,As,u.inner.from),v(this,Es,h.inner.to),v(this,Os,h.outer.to+1)}this.withCurrentDayTimestamp(),(n=m(this,_r))==null||n.call(this)}shiftFrameByOffset(t,n){if(t&&ns(t))switch(n){case Jd:return U(this,ie,Zr).call(this,t);case eo:return U(this,ie,Zr).call(this,t*12);case Js:default:return U(this,ie,Zr).call(this,t*m(this,we))}}shiftFrameCursor(t){switch(t){case Hd:return U(this,ie,Qe).call(this,-1);case zd:return U(this,ie,Qe).call(this,1);case Xd:return U(this,ie,Qe).call(this,-this.rowspan);case jd:return U(this,ie,Qe).call(this,this.rowspan);case Yd:return U(this,ie,Qe).call(this,m(this,ys)-m(this,_t));case Gd:return U(this,ie,Qe).call(this,m(this,Ts)-m(this,_t));case qd:return U(this,ie,Qe).call(this,-(m(this,_t)%this.rowspan));case Vd:return U(this,ie,Qe).call(this,this.rowspan-(m(this,_t)%this.rowspan+1));case Zd:return U(this,ie,Qe).call(this,-this.getUnitsForFrameBlockAtIndex((m(this,Ve)??0)-1));case Kd:return U(this,ie,Qe).call(this,this.getUnitsForFrameBlockAtIndex(m(this,Ve)??0))}if(!(t<0)&&t>=m(this,As)&&t<=m(this,Es))return U(this,ie,Qe).call(this,t-m(this,_t))}shiftFrameToTimestamp(t){v(this,Bt,this.originTimestamp=U(this,ie,qn).call(this,t,!1).reduce((n,r)=>n+r)),v(this,tt,this.getCursorBlockOriginTimestampOffset(m(this,Bt))),this.reoriginate(),[gn(this,sn)._,gn(this,Wt)._]=this.getEdgeBlockOffsetsFromOrigin(),U(this,ie,ji).call(this),this.refreshFrame(),U(this,ie,Qe).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(m(this,_t)),m(this,Bt)))}clearSelection(){this.blankSelection||(v(this,Be,v(this,De,void 0)),this.refreshFrame(!0))}updateSelection(t,n){const r=m(this,Be),s=m(this,De),o=U(this,ie,qn).call(this,t,!1).reduce((i,c)=>i+c);switch(n===ll&&(o<=r?n=lt:o>=s&&(n=ze)),n){case ze:v(this,Be,o),v(this,De,Math.max(m(this,Be),s??o));break;case lt:v(this,De,o),v(this,Be,Math.min(r??o,m(this,De)));break;case ll:case ul:{let i=Math.abs(o-(r??o)),c=Math.abs(o-(s??o));n===ul&&([i,c]=[c,i]),i>c?v(this,Be,o):v(this,De,o);break}case Qd:default:v(this,Be,v(this,De,o));break}(m(this,Be)!==r||m(this,De)!==s)&&this.refreshFrame(!0)}};mr=new WeakMap,Ve=new WeakMap,ys=new WeakMap,Ts=new WeakMap,As=new WeakMap,Es=new WeakMap,_t=new WeakMap,tt=new WeakMap,Bt=new WeakMap,pr=new WeakMap,_r=new WeakMap,gr=new WeakMap,vn=new WeakMap,$t=new WeakMap,Cs=new WeakMap,Be=new WeakMap,De=new WeakMap,we=new WeakMap,yr=new WeakMap,Ut=new WeakMap,On=new WeakMap,Tr=new WeakMap,gt=new WeakMap,Ns=new WeakMap,Ss=new WeakMap,sn=new WeakMap,Wt=new WeakMap,vs=new WeakMap,Os=new WeakMap,No=new WeakMap,So=new WeakMap,ie=new WeakSet,n0=function(){const{from:t,to:n,span:r,offsets:s}=m(this,Ut);v(this,Ns,t-s.from),v(this,Ss,n-s.to),v(this,vs,r);const o=Z(m(this,Be))?m(this,Be):Math.max(m(this,Be),t),i=Z(m(this,De))?m(this,De):Math.min(m(this,De),n);o===m(this,Be)||i===m(this,De)?(v(this,Be,o),v(this,De,i)):v(this,Be,v(this,De,void 0)),this.reslice(),v(this,Cs,dl(12,this.numberOfBlocks)),v(this,we,dl(m(this,we),this.numberOfBlocks)),this.shiftFrameToTimestamp(m(this,Bt))},r0=function(t){return Et(m(this,sn),t||0,m(this,Wt)-m(this,we)+1)},qn=function(t,n=!0){let r=new Date(t).getTime();if(isNaN(r))return U(this,ie,qn).call(this,Date.now());const{from:s,to:o}=m(this,Ut),i=Et(s,r,o);i!==r&&n?(r=$l(s,o),(isNaN(r)||Dn(r))&&(r=i)):r=i;const c=Jn(r,m(this,On));return[r-c,c]},s0=function(t){if(ns(t)&&t>=0&&t<m(this,we)){if(!m(this,vn)[t]){const n=this.getFrameBlockAtIndex(t);if(!n)return;const[r,s]=this.getFormattedDataForFrameBlock(n[n.inner.from][0]+ds/2),o=n.outer.from;m(this,vn)[t]=zt({datetime:W(s),label:W(r),length:W(Math.ceil(n.outer.units/this.rowspan)),month:W(n.month),year:W(n.year)},i=>{const c=i*this.rowspan;return zt(this.rowspan,l=>{const[u,h]=n[l+c],[d,p]=this.getFormattedDataForBlockCell(u+ds/2);return Q({datetime:W(p),flags:W(t0(h)),index:W(o+l+c),label:W(d),timestamp:W(u)})})})}return m(this,vn)[t]}},Qe=function(t){t!==0&&(v(this,tt,m(this,tt)+t),this.refreshFrame())},Zr=function(t){const n=U(this,ie,r0).call(this,t);n&&(this.shiftOrigin(n),v(this,sn,m(this,sn)-n),v(this,Wt,m(this,Wt)-n),v(this,Ve,ws(m(this,Ve)-n,m(this,we))),this.refreshFrame())},ji=function(){const t=m(this,we)-1,n=Math.min(t-this.origin%m(this,we),m(this,Wt))-t;n&&U(this,ie,Zr).call(this,n)},w(nr,mr,$o);let Yi=nr;var Rn,bn,Ar,Rs,Er,Cr,bs,Nr,Is,Sr,vr,Or,Ue,zi,Vi,Kn,to;class Tg extends Yi{constructor(){super();w(this,Ue);w(this,Rn,7);w(this,bn,[]);w(this,Ar,hl(this.firstWeekDay));w(this,Rs);w(this,Er,-1/0);w(this,Cr,1/0);w(this,bs,1/0);w(this,Nr);w(this,Is);w(this,Sr);w(this,vr);w(this,Or);B(this,"daysInWeek",m(this,Rn));this.initialize()}get fromTimestamp(){return m(this,Er)}get toTimestamp(){return m(this,Cr)}get numberOfBlocks(){return m(this,bs)}get currentDayTimestamp(){return m(this,Rs)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const r=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==r&&this.refreshFrame(!0)}get rowspan(){return m(this,Rn)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const r=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==r&&(m(this,bn).length=0,v(this,Ar,hl(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return nn(n,this.timezone)[2]-1}getDayOfWeekAtIndex(n){if(!m(this,bn)[n]){const r=new Date(this.getTimestampAtIndex(n));let s=0;m(this,Ar).includes(n)&&(s|=Ie.WEEKEND),n===0?s|=Ie.LINE_START:n===6&&(s|=Ie.LINE_END);const o={};for(const i of dg)o[i]=W(r.toLocaleDateString(this.locale,{weekday:i,timeZone:this.timezone}));m(this,bn)[n]=Q({flags:W(t0(s)),labels:W(Q(o))})}return m(this,bn)[n]}getEdgeBlockOffsetsFromOrigin(){return[U(this,Ue,zi).call(this,m(this,Er)),U(this,Ue,zi).call(this,m(this,Cr))]}getFormattedDataForBlockCell(n){const[r,s,o]=nn(n,this.timezone);return[Number(o).toLocaleString(this.locale),`${r}-${`${s+1}`.padStart(2,"0")}-${`${o}`.padStart(2,"0")}`]}getFormattedDataForFrameBlock(n){const[r,s]=nn(n,this.timezone);return[new Date(n).toLocaleDateString(this.locale,{month:"long",year:"numeric",timeZone:this.timezone}),`${r}-${`${s+1}`.padStart(2,"0")}`]}getFrameBlockAtIndex(n){const[r,s,o]=mi(this.origin,m(this,Sr),n),i=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:m(this,Nr),c=i+r-1,l=Math.floor(i/7)*7,u=this.dynamicBlockHeight?Math.ceil((c+1)/7)*7:l+al,h=this.dynamicBlockHeight?u-l:al,d=new Proxy(Q(),xo({get:(p,f,g)=>{if(ot(f)){const _=+f;if(ns(_)&&_>=0&&_<h){const A=l+_,T=this.getTimestampAtIndex(A),C=A%m(this,Rn);let R=T===this.currentDayTimestamp?Ie.CURRENT:0;return A===this.cursor&&(R|=Ie.CURSOR),m(this,Ar).includes(C)&&(R|=Ie.WEEKEND),C===0?R|=Ie.LINE_START:C===m(this,Rn)-1&&(R|=Ie.LINE_END),A>=i&&A<=c&&(A===i?R|=Ie.BLOCK_START:A===c&&(R|=Ie.BLOCK_END),R|=Ie.WITHIN_BLOCK),T>=this.fromTimestamp&&T<=this.toTimestamp&&(T===this.fromTimestamp&&(R|=Ie.RANGE_START),T===this.toTimestamp&&(R|=Ie.RANGE_END),R|=Ie.WITHIN_RANGE),T>=m(this,vr)&&T<=m(this,Or)&&(T===m(this,vr)&&(R|=Ie.SELECTION_START),T===m(this,Or)&&(R|=Ie.SELECTION_END),R|=Ie.WITHIN_SELECTION),[T,R]}}return Reflect.get(p,f,g)}}));return Fr(d,{inner:{value:Q({from:{value:i},to:{value:c},units:{value:r}})},month:{value:s},outer:{value:Q({from:{value:l},to:{value:u-1},units:{value:h}})},year:{value:o}})}getUnitsForFrameBlockAtIndex(n){return mi(this.origin,m(this,Sr),n)[0]}getUnitsOffsetForTimestamp(n,r){return Math.round((r-n)/ds)}reoriginate(){this.originTimestamp=wd(this.originTimestamp,this.timezone);const[n,r]=nn(this.originTimestamp,this.timezone),s=kd(this.originTimestamp,this.timezone,this.firstWeekDay);this.origin=r,v(this,Sr,n),v(this,Nr,this.getUnitsOffsetForTimestamp(s,this.originTimestamp)),v(this,Is,U(this,Ue,Vi).call(this,this.originTimestamp,-m(this,Nr)))}reslice(){U(this,Ue,to).call(this),v(this,Er,U(this,Ue,Kn).call(this,super.fromTimestamp)),v(this,Cr,U(this,Ue,Kn).call(this,super.toTimestamp)),v(this,bs,Hi(super.fromTimestamp,super.toTimestamp,this.timezone)+1)}shiftOrigin(n){const[r,s]=nn(this.originTimestamp,this.timezone),[,o,i]=mi(s,r,n),c=Kt(this.timezone),l=new Date(Yt(c,this.originTimestamp)).setFullYear(i,o);this.originTimestamp=Lt(c,l),this.reoriginate()}clearSelection(){super.clearSelection(),U(this,Ue,to).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return U(this,Ue,Vi).call(this,m(this,Is),n)}updateSelection(n,r){super.updateSelection(n,r),U(this,Ue,to).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(){v(this,Rs,U(this,Ue,Kn).call(this,Date.now()))}}Rn=new WeakMap,bn=new WeakMap,Ar=new WeakMap,Rs=new WeakMap,Er=new WeakMap,Cr=new WeakMap,bs=new WeakMap,Nr=new WeakMap,Is=new WeakMap,Sr=new WeakMap,vr=new WeakMap,Or=new WeakMap,Ue=new WeakSet,zi=function(n){const r=Hi(n,this.originTimestamp,this.timezone);return n<this.originTimestamp?0-r:r},Vi=function(n,r=0){const s=Kt(this.timezone),o=Yt(s,n),i=Lt(s,o+r*ds);let[,,,c,l]=nn(i,this.timezone),u=0;return(c>0||l>0)&&(c=(c>12?24:0)-c,l=(c>1?1:-1)*l,u=c*36e5+l*6e4),i+u},Kn=function(n){return Z(n)||Dn(n)?n:n-Jn(n,this.timezone)},to=function(){v(this,vr,U(this,Ue,Kn).call(this,this.selectionStart)),v(this,Or,U(this,Ue,Kn).call(this,this.selectionEnd))};const pl=Symbol("<<NO_EXCEPTION>>"),_l=e=>{const t=[];return Q({bind:W(r=>function(...s){let o=pl;try{return t.push(r),r.call(this,...s)}catch(i){throw o=i}finally{t.pop(),t.length===0&&o===pl&&e()}}),effect:W(e)})};var Fl,xl,ye,yt,D,Tt,ut,At,Ge,In,nt,Rr,Ht,Gt,dt,Ot,br,Ls,on,ht,vo,an,Ir,Ln,Ds,Oo,me,Ro,bo,Io,Lo,Do,wo,pt,o0,i0,a0,ko,no,X,Xr,qi,c0,l0,u0,d0,Ki,h0,Qr,Zi,ro,Xi,Qi,Ji,ea;let Ag=(me=class{constructor(){w(this,X);B(this,"grid");B(this,"kill");w(this,ye,$);w(this,yt,!1);w(this,D);w(this,Tt);w(this,ut);w(this,At,!1);w(this,Ge,er);w(this,In,!1);w(this,nt);w(this,Rr,(Fl=m(this,nt))==null?void 0:Fl.join(" "));w(this,Ht);w(this,Gt);w(this,dt);w(this,Ot);w(this,br);w(this,Ls,Ao());w(this,on,[]);w(this,ht);w(this,vo,new Proxy(zt(()=>{var t;return((t=m(this,ht))==null?void 0:t.length)??0},U(this,X,Ki).bind(this)),xo({get:(t,n,r)=>{var o,i;const s=((o=m(this,ht))==null?void 0:o.indexOf(n))??-1;return s>=0?(i=U(this,X,Ki).call(this,s))==null?void 0:i[1]:Reflect.get(t,n,r)}})));w(this,an,Ms({blocks:()=>{var t;return(t=m(this,D))==null?void 0:t.size},cells:()=>{var t;return(t=m(this,D))==null?void 0:t.units},controls:()=>Yr(cl,m(this,ye).controls),cursor:()=>{var t;return(t=m(this,D))==null?void 0:t.cursor},from:()=>{var t;return(t=m(this,D))==null?void 0:t.selectionStart},highlight:()=>m(this,Ge),locale:()=>{var t;return(t=m(this,D))==null?void 0:t.locale},minified:()=>jn(m(this,ye).minified),origin:()=>{var t;return(t=m(this,D))==null?void 0:t.getTimestampAtIndex(0)},timezone:()=>{var t;return(t=m(this,D))==null?void 0:t.timezone},to:()=>{var t;return(t=m(this,D))==null?void 0:t.selectionEnd},today:()=>m(this,Ls).timestamp}));w(this,Ir,(xl=m(this,an))==null?void 0:xl.snapshot);w(this,Ln,_l(()=>{var t;return m(this,dt)&&((t=m(this,an))==null?void 0:t.requestNotification())}));w(this,Ds,_l(()=>{var t;return(t=m(this,dt))==null?void 0:t.call(m(this,X,Xr))}));w(this,Oo,Fr(zt(()=>{var t;return((t=m(this,D))==null?void 0:t.size)??0},t=>{var n;return(n=m(this,D))==null?void 0:n.frameBlocks[t]}),{config:{value:Object.defineProperties(t=>(t&&U(this,X,l0).call(this,t),m(this,X,Xr)),{cursorIndex:{get:()=>m(this,Ht),set:t=>{m(this,yt)||(Ae(t)?v(this,Ht,void 0):ee(t)&&v(this,Ht,t))}},shiftFactor:{get:()=>m(this,Gt),set:t=>{m(this,yt)||(Ae(t)?v(this,Gt,void 0):ee(t)&&v(this,Gt,t))}},watch:{get:()=>m(this,dt),set:t=>{var n,r,s,o,i;if(!m(this,yt))if(ee(t)){if(v(this,dt,t),!m(this,Ot)){const c=(n=m(this,Ln))==null?void 0:n.bind(m(me,ko).bind(this));c&&(v(this,Ot,(r=m(this,Ln))==null?void 0:r.bind(ne)),v(this,br,(o=m(this,an))==null?void 0:o.subscribe((s=m(this,Ds))==null?void 0:s.bind(c))),m(this,D)&&(m(this,D).effect=m(this,Ot)))}if(!m(this,In))return;v(this,In,!1),(i=m(this,Ot))==null||i.call(this)}else Ae(t)&&v(this,dt,void 0)}}})},controls:{value:m(this,vo)},cursor:{value:Object.defineProperties(t=>U(me,pt,no).call(this,n=>!!(n&&U(this,X,u0).call(this,n)))(t),{valueOf:{value:()=>{var t;return((t=m(this,D))==null?void 0:t.cursor)??-1}}})},highlight:{value:(()=>{const t=()=>m(this,Tt)===m(this,ut)&&Z(m(this,ut)),n=r=>s=>U(me,pt,no).call(this,o=>{var i,c,l,u,h;if(!(m(this,yt)||!m(this,Ge)||m(this,Ge)===er)){if(Ae(o))return U(this,X,Zi).call(this);t()?(c=m(this,D))==null||c.updateSelection(o,Qd):((i=m(this,D))==null||i.updateSelection(o,r),m(this,Ge)===An&&m(this,nt)&&U(this,X,ro).call(this,o,r===ze?lt:ze,m(this,nt))),v(this,Tt,(l=m(this,D))==null?void 0:l.selectionStart),v(this,ut,(u=m(this,D))==null?void 0:u.selectionEnd),(h=m(this,D))==null||h.shiftFrameToTimestamp(r===ze?m(this,Tt):m(this,ut))}})(s);return Q({blank:{get:t},from:{get:()=>{var r;return((r=m(this,D))==null?void 0:r.selectionStart)??m(this,Tt)},set:n(ze)},to:{get:()=>{var r;return((r=m(this,D))==null?void 0:r.selectionEnd)??m(this,ut)},set:n(lt)}})})()},rowspan:{get:()=>{var t;return((t=m(this,D))==null?void 0:t.rowspan)??0}},weekdays:{get:()=>{var t;return((t=m(this,D))==null?void 0:t.daysOfWeek)??m(me,Io)}}}));this.grid=m(this,Oo),this.kill=U(this,X,d0).bind(this)}},ye=new WeakMap,yt=new WeakMap,D=new WeakMap,Tt=new WeakMap,ut=new WeakMap,At=new WeakMap,Ge=new WeakMap,In=new WeakMap,nt=new WeakMap,Rr=new WeakMap,Ht=new WeakMap,Gt=new WeakMap,dt=new WeakMap,Ot=new WeakMap,br=new WeakMap,Ls=new WeakMap,on=new WeakMap,ht=new WeakMap,vo=new WeakMap,an=new WeakMap,Ir=new WeakMap,Ln=new WeakMap,Ds=new WeakMap,Oo=new WeakMap,Ro=new WeakMap,bo=new WeakMap,Io=new WeakMap,Lo=new WeakMap,Do=new WeakMap,wo=new WeakMap,pt=new WeakSet,o0=function(t){if(!ot(t)||!m(me,Ro).test(t))return;const n=t.split(/\s+/);return Array.from({length:6},(r,s)=>parseInt(n[s]??"0"))},i0=function(t){switch(t&~Vn.PREV){case Vn.FRAME:return Js;case Vn.PERIOD:return eo;case Vn.BLOCK:default:return Jd}},a0=function(t){return t&Vn.PREV?-1:1},ko=new WeakMap,no=function(t){var n;return((n=m(this,Ln))==null?void 0:n.bind(t))??t},X=new WeakSet,Xr=function(){return{...m(this,ye)}},qi=function(){return new Tg},c0=function(t){return!!m(this,D)&&!(t>0?m(this,D).isAtEnd:m(this,D).isAtStart)},l0=function(t){var s,o;if(m(this,yt))return;v(this,nt,void 0);const n=t==null?void 0:t.highlight,r=jn(m(this,ye).minified);if(ot(n)?v(this,nt,U(s=me,pt,o0).call(s,n))&&v(this,Ge,An):v(this,Ge,Yr(fg,n,m(this,Ge))),v(this,ye,{...m(this,ye),...t,blocks:Yr(or,t==null?void 0:t.blocks,m(this,ye).blocks),controls:Yr(cl,t==null?void 0:t.controls,m(this,ye).controls),firstWeekDay:Yr(Wd,t==null?void 0:t.firstWeekDay,m(this,ye).firstWeekDay),fixedBlockHeight:jn(t==null?void 0:t.fixedBlockHeight,m(this,ye).fixedBlockHeight),highlight:m(this,Ge),minified:jn(t==null?void 0:t.minified,m(this,ye).minified),trackCurrentDay:jn(t==null?void 0:t.trackCurrentDay,m(this,ye).trackCurrentDay)}),!ee(m(this,dt))){m(this,D)?v(this,In,!0):(v(this,D,m(this,X,qi)),U(this,X,Qi).call(this),U(this,X,ea).call(this),U(this,X,Ji).call(this));return}(!m(this,D)||r!==m(this,ye).minified)&&(v(this,D,m(this,X,qi)),m(this,D).effect=m(this,Ot)),U(this,X,Qi).call(this),(o=m(this,Ot))==null||o.call(this)},u0=function(t){if(t&&m(this,D)&&ee(m(this,dt))){if(t instanceof KeyboardEvent){switch(t.code){case q.ARROW_LEFT:m(this,D).shiftFrameCursor(Hd);break;case q.ARROW_RIGHT:m(this,D).shiftFrameCursor(zd);break;case q.ARROW_UP:m(this,D).shiftFrameCursor(Xd);break;case q.ARROW_DOWN:m(this,D).shiftFrameCursor(jd);break;case q.HOME:m(this,D).shiftFrameCursor(t.ctrlKey?Yd:qd);break;case q.END:m(this,D).shiftFrameCursor(t.ctrlKey?Gd:Vd);break;case q.PAGE_UP:t.shiftKey?m(this,D).shiftFrameByOffset(-1,eo):m(this,D).shiftFrameCursor(Zd);break;case q.PAGE_DOWN:t.shiftKey?m(this,D).shiftFrameByOffset(1,eo):m(this,D).shiftFrameCursor(Kd);break;case q.SPACE:case q.ENTER:return U(this,X,Qr).call(this),!0;default:return}return m(this,At)&&U(this,X,Qr).call(this,$),!0}if(t instanceof MouseEvent&&m(me,bo).includes(t.type)&&ee(m(this,Ht))){const n=m(this,Ht).call(m(this,X,Xr),t);if(!ns(n))return;const r=t.type==="click";if(!(r||m(this,At)))return;if(m(this,D).shiftFrameCursor(n),m(this,D).cursor===n)return r?U(this,X,Qr).call(this):U(this,X,Qr).call(this,$),!0}}},d0=function(){var t;m(this,yt)||((t=m(this,br))==null||t.call(this),v(this,Ln,v(this,Ds,v(this,Ht,v(this,D,v(this,Ge,v(this,Rr,v(this,Ir,v(this,nt,v(this,Gt,v(this,br,v(this,an,v(this,Ot,v(this,dt,void 0))))))))))))),v(this,ye,$),v(this,At,v(this,In,!1)),v(this,yt,!0))},Ki=function(t){var r,s;if(!m(this,ht)||t<0||t>=m(this,ht).length)return;const n=m(this,ht)[t];if(!m(this,on)[t]){const o=Gi[n],i=U(r=me,pt,i0).call(r,o),c=U(s=me,pt,a0).call(s,o);m(this,on)[t]=(...l)=>U(me,pt,no).call(this,(...u)=>{var p;const h=U(this,X,c0).call(this,c);if(!(h&&u.length))return h;const d=U(this,X,h0).call(this,n,u[0]);return Z(d)?!1:((p=m(this,D))==null||p.shiftFrameByOffset(c*d,i),!0)})(...l)}return[n,m(this,on)[t]]},h0=function(t,n){if(!(m(this,D)&&ee(m(this,dt))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!m(me,Lo).includes(n.code))return}else return;let r=1;if(ee(m(this,Gt))){const s=Number(m(this,Gt).call(m(this,X,Xr),n,t));r=Number.isInteger(s)&&s>=1?s:r}return r},Qr=function(t){if(m(this,yt)||!m(this,D))return;switch(m(this,Ge)){case An:case tr:break;case er:default:return}const n=m(this,D).cursor,r=Math.max(m(this,D).getTimestampAtIndex(n),m(this,D).timeslice.from),s=Math.min(m(this,D).getTimestampAtIndex(n+1)-1,m(this,D).timeslice.to),o=m(this,nt);if(m(this,Ge)===tr||m(this,D).blankSelection||o)if(v(this,At,!(m(this,Ge)===tr||o)),m(this,Ge)===An&&o){const i=s>=m(this,D).selectionEnd?ze:lt;i===ze?m(this,D).updateSelection(s,lt):m(this,D).updateSelection(r,ze),U(this,X,ro).call(this,i===ze?m(this,D).selectionEnd:m(this,D).selectionStart,i,o)}else m(this,D).updateSelection(r,ze),m(this,D).updateSelection(s,lt);else{const i=t===$,c=Kt(m(this,D).timezone);if(i||v(this,At,!1),r<=m(this,D).selectionStart){const l=new Date(Yt(c,m(this,D).selectionStart)),u=Math.min(Lt(c,l.setDate(l.getDate()+1)-1),m(this,D).timeslice.to);r===m(this,D).selectionStart&&s<=u&&m(this,D).updateSelection(s,lt),m(this,D).updateSelection(r,ze)}else{const l=new Date(Yt(c,m(this,D).selectionEnd)),u=Math.max(Lt(c,l.setHours(0,0,0,0)),m(this,D).timeslice.from);r<=m(this,D).selectionEnd&&r>=u&&m(this,D).updateSelection(r,ze),m(this,D).updateSelection(s,lt)}if(i)return}v(this,Tt,m(this,D).selectionStart),v(this,ut,m(this,D).selectionEnd)},Zi=function(){var t;(t=m(this,D))==null||t.clearSelection(),v(this,At,!1),v(this,Tt,v(this,ut,void 0))},ro=function(t,n,r){var f;if(!m(this,D))return;const s=Kt((f=m(this,D))==null?void 0:f.timezone),o=new Date(Yt(s,t)),i=n===ze?-1:1,[c=0,l=0,u=0,h=0,d=0,p=0]=r??[];o.setFullYear(o.getFullYear()+c*i,o.getMonth()+l*i,o.getDate()+u*i),o.setHours(o.getHours()+h*i,o.getMinutes()+d*i,o.getSeconds()+p*i),m(this,D).updateSelection(Lt(s,o.getTime()-i),n)},Xi=function(){var t,n;m(this,Tt)&&((t=m(this,D))==null||t.updateSelection(m(this,Tt),ze)),m(this,ut)&&((n=m(this,D))==null||n.updateSelection(m(this,ut),lt)),v(this,At,!1)},Qi=function(){m(this,D)&&(m(this,D).timeslice=m(this,ye).timeslice,m(this,D).dynamicBlockHeight=!m(this,ye).fixedBlockHeight,m(this,D).firstWeekDay=m(this,ye).firstWeekDay,m(this,D).locale=m(this,ye).locale,m(this,D).size=m(this,ye).blocks,m(this,D).timezone=m(this,ye).timezone,m(this,D).trackCurrentDay=m(this,ye).trackCurrentDay,v(this,Ls,Ao(m(this,D).timezone)),U(this,X,Xi).call(this))},Ji=function(){var t,n,r,s,o,i;switch(m(this,Ge)){case An:!wt((t=m(this,D))==null?void 0:t.blankSelection)&&m(this,nt)&&U(this,X,ro).call(this,(n=m(this,D))==null?void 0:n.selectionStart,lt,m(this,nt));break;case tr:if(!wt((r=m(this,D))==null?void 0:r.blankSelection)){const c=Kt((s=m(this,D))==null?void 0:s.timezone),l=new Date(Yt(c,(o=m(this,D))==null?void 0:o.selectionStart));(i=m(this,D))==null||i.updateSelection(Lt(c,l.setHours(23,59,59,999)),lt)}break;case er:default:U(this,X,Zi).call(this);return}},ea=function(){var t,n;switch((t=m(this,an))==null?void 0:t.snapshot.controls){case Xa:v(this,ht,m(me,Do));break;case Qa:v(this,ht,m(me,wo));break;case Ja:default:v(this,ht,void 0)}m(this,on).length=0,m(this,on).length=((n=m(this,ht))==null?void 0:n.length)??0},w(me,pt),w(me,Ro,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),w(me,bo,["click","mouseover","pointerover"]),w(me,Io,zt(0,ne)),w(me,Lo,[q.ENTER,q.SPACE]),w(me,Do,Object.keys(Gi).filter(t=>isNaN(+t))),w(me,wo,["PREV","NEXT"]),w(me,ko,function(t){var i,c;if($n(t))return;let n=!1,r=!1,s=!1;const o=(i=m(this,nt))==null?void 0:i.join(" ");for(const l of Object.keys(t))t[l]!==((c=m(this,Ir))==null?void 0:c[l])&&(l==="controls"?n=!0:l==="highlight"?r=!0:(l==="from"||l==="to")&&(s=!0));m(this,Rr)!==o&&(v(this,Rr,o),r=!0),v(this,Ir,t),m(this,At)&&!s&&U(this,X,Xi).call(this),n&&U(this,X,ea).call(this),r&&U(this,X,Ji).call(this)}),me);const St=Object.defineProperties(t=>{const{grid:n,kill:r}=new Ag;return Mr(t)?n.config({blocks:t}):ee(t)?Lr.then(()=>{n.config.watch=t}):n.config(t),Q({grid:W(n),kill:W(r)})},{controls:{value:Q({ALL:{value:Xa},MINIMAL:{value:Qa},NONE:{value:Ja}})},highlight:{value:Q({ONE:{value:tr},MANY:{value:An},NONE:{value:er}})},slice:{value:Object.defineProperties(e0.bind(null),{FROM:{value:ec},TO:{value:tc},UNBOUNDED:{value:ts},SINCE_NOW:{get:pg},UNTIL_NOW:{get:_g}})}}),Eg=({config:e,grid:{controls:t},renderer:n})=>e.controls===St.controls.NONE||!ee(n)?null:a(V,{children:t.map(([r,s])=>n(r,s))}),Cg=be(Eg),Ng=e=>{const t=E((n,r)=>{r instanceof Element&&r.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),Lr.then(()=>n==null?void 0:n.focus()))},[]);return Qt(E((n,r)=>{try{e==null||e(n,r)}finally{t(n,r)}},[e]))},Sg=({blocks:e,controls:t,dynamicBlockRows:n,firstWeekDay:r,highlight:s,locale:o,onHighlight:i,originDate:c,renderControl:l,sinceDate:u,timezone:h,trackCurrentDay:d,untilDate:p,useYearView:f},g)=>{const{i18n:_}=Y(),[A,T]=F(performance.now()),C=y(()=>St.slice(u,p),[u,p]),R=G($),O=y(()=>t??(ee(l)?St.controls.MINIMAL:St.controls.NONE),[t,l]),L=y(()=>s??(ee(i)?St.highlight.ONE:St.highlight.NONE),[s,i]),{grid:S,kill:I}=y(()=>{const{grid:P,kill:z}=St(function(){T(performance.now()),R.current=this,!(j===P.highlight.from&&te===P.highlight.to)&&(j=P.highlight.from,te=P.highlight.to,i==null||i(j,te))});let{from:j,to:te}=P.highlight;return P.config.cursorIndex=K=>{let se=K.target;for(;se&&se!==K.currentTarget;){const Me=Number(se.dataset.cursorPosition);if(Number.isFinite(Me))return Me;se=se.parentNode}},P.config.shiftFactor=function(K){if(this.controls===St.controls.MINIMAL)return K!=null&&K.shiftKey?12:K!=null&&K.altKey?this.blocks:1},{grid:P,kill:z}},[]),N=y(()=>{const P=z=>{S.cursor(z)};return{onClickCapture:P,onMouseOverCapture:P,onPointerOverCapture:P,onKeyDownCapture:z=>{S.cursor(z)&&z.preventDefault()}}},[S]),M=Ng(E((P,z)=>{z instanceof Element&&z.removeAttribute("aria-selected"),P instanceof Element&&P.setAttribute("aria-selected","true")},[]));return T1(g,()=>{const{from:P,to:z}=(S==null?void 0:S.highlight)||$;return{clear:()=>{S!=null&&S.highlight&&(S.highlight.from=void 0)},get config(){return{...R.current??$}},get from(){return ol(P)},set from(j){S!=null&&S.highlight&&j&&(S.highlight.from=j.getTime())},get to(){return ol(z)},set to(j){S!=null&&S.highlight&&j&&(S.highlight.to=j.getTime())}}},[S,A]),H(()=>{S.config({blocks:e,controls:O,firstWeekDay:r,fixedBlockHeight:!n,highlight:L,locale:o??_.locale,minified:f,timeslice:C,timezone:h,trackCurrentDay:d})},[O,L,e,n,r,S,_,o,C,h,d,f]),H(()=>{const P=[].concat(c).slice(0,2).map(Number).filter(Boolean);return P[0]&&(S.highlight.from=+P[0]),P[1]&&(S.highlight.to=+P[1]),I},[]),{cursorElementRef:M,cursorRootProps:N,grid:S}},vg=$r((e,t)=>{const n=Sg(e,t),r=n.grid.config();return a("div",{role:"none",children:[a(Cg,{config:r,grid:n.grid,renderer:e.renderControl}),a(ug,{ref:n.cursorElementRef,config:r,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:e.onlyCellsWithin,prepare:e.prepare})]})}),Og=be(vg),Rg=(e,t)=>{const[n,r]=F(),s=Qt(y(()=>{const o=i=>(...c)=>{const l=e(i,...c);return l&&Mu(l,i)};return r(void 0),i=>r(i instanceof Element?()=>o(i):void 0)},[e,t]),t);return[n,s]},bg=e=>{const{i18n:t}=Y();return Rg(E((n,r,s)=>{if(!(n instanceof HTMLElement))return null;if(ee(e))return e(r,s);let o,i,c;switch(r){case"PREV":o="prev",i="previous",c=pa;break;case"NEXT":o=i="next",c=jo;break;default:return null}const l=s();return l?a(he,{"aria-label":t.get(`calendar.${i}Month`),variant:le.TERTIARY,disabled:!l,classNameModifiers:["circle",o],iconButton:!0,onClick:s,children:a(c,{role:"presentation"})},r):null},[t,e]))},Ig=$r((e,t)=>{const{i18n:n}=Y(),[r,s]=bg(e.renderControl),[o,i]=F(performance.now()),c=y(()=>wt(e.showTimezoneInfo),[e.showTimezoneInfo]),{clockTime:l,GMTOffset:u}=D3({timezone:e.timezone,withClock:c}),h=y(()=>x([{"adyen-pe-datepicker--with-timezone":c},"adyen-pe-datepicker"]),[c]),d=y(()=>c?{values:{offset:u,time:l}}:$,[u,l,c]),p=Qt(ne,t),f=E(()=>{var g,_,A,T,C;i(performance.now()),(g=p.current)!=null&&g.from&&((_=p.current)!=null&&_.to)&&((C=e.onHighlight)==null||C.call(e,+((A=p.current)==null?void 0:A.from),+((T=p.current)==null?void 0:T.to)))},[i,e.onHighlight]);return a("div",{className:h,children:[a("div",{className:"adyen-pe-datepicker__selector-container",children:a(ng,{now:e.now,calendarRef:p,onTimeRangeSelected:e.onPresetOptionSelected,options:e.timeRangePresetOptions,selectedOption:e.selectedPresetOption,timestamp:o,timezone:e.timezone})}),a("div",{ref:s,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),a(Og,{...e,ref:p,firstWeekDay:Ka,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:e.controls??St.controls.MINIMAL,highlight:e.highlight??St.highlight.MANY,onHighlight:f,renderControl:r,trackCurrentDay:!0}),c&&a("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",d)})]})}),Lg="adyen-pe-filter-button";function Dg(e,t){const{className:n,classNameModifiers:r=[],children:s,disabled:o,onClick:i,...c}=e,l=y(()=>wn("",n)||"",[n]),u=y(()=>Go(o),[o]),{classes:h,click:d}=Yo(l,r,Lg,u,e,i);return a("button",{className:h,ref:t,onClick:d,...c,children:a(k,{el:ce.DIV,variant:b.BODY,stronger:!0,children:s})})}const wg=qe(Dg),kg=$r(function(t,n){return a(To,{classNameModifiers:t.classNameModifiers,...t,ref:n,"aria-required":t.required,type:"text"})}),Pg=e=>!e||Si(e),Mg=(()=>{const e=t=>{const{editAction:n,name:r,onChange:s,onValueUpdated:o}=t,[i,c]=F(t.value),l=E(u=>{const h=u.target.value.trim();c(h),o(h)},[o]);return H(()=>{if(n===Ye.CLEAR){const u="";c(u),o(u),s(u)}n===Ye.APPLY&&s(i??"")},[i,n,s,o]),a(kg,{name:r,value:i,onInput:l})};return t=>a(e,{...t})})(),Fg=({render:e,...t})=>{var z;const n=Re(Oe.down.xs),[r,s]=Rt(!1),[o,i]=Rt(!1),c=y(()=>t.isValueEmpty??Pg,[t.isValueEmpty]),[l,u]=Rt(c(t.value)),[h,d]=Rt(!1),[p,f]=Rt(!1),[g,_]=Rt(c(t.value)),A=_o(),T=y(()=>e??Mg,[e]),C=E(j=>{const te=c(j??void 0);u(te),_(io(j)),f(h?j!==t.value:!te)},[c,u,_,f,h,t.value]),{commitAction:R,commitActionButtons:O,committing:L,resetCommitAction:S}=ld({applyDisabled:g||!p,resetDisabled:l}),[I,N]=y(()=>{const j=te=>()=>{te!==r&&(te&&(S(),f(!1),d(!1)),s(te),i(te))};return[j(!1),j(!0)]},[s,r,S,i,d,f]);H(()=>{if(o){const j=c(t.value);i(!1),u(j),d(!j)}},[t.value,o,c,i,u,d]),H(()=>{L&&I(),u(l)},[L,I,u,l]);const M=Re(Oe.only.sm),P=Re(Oe.only.md);return a(V,{children:[a("div",{className:`adyen-pe-filter adyen-pe-filter--${t.type}`,children:y(()=>a(wg,{classNameModifiers:[...t.appliedFilterAmount?["with-counter"]:[],...t.classNameModifiers??[],...r?["active"]:[],...l?[]:["has-selection"]],onClick:r?I:N,tabIndex:0,ref:A,children:a("div",{className:"adyen-pe-filter-button__default-container",children:[a(k,{el:ce.SPAN,variant:b.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:t.label}),!!t.appliedFilterAmount&&a("div",{className:"adyen-pe-filter-button__counter-wrapper",children:a(k,{el:ce.SPAN,variant:b.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:t.appliedFilterAmount})})]})}),[t.appliedFilterAmount,t.classNameModifiers,t.label,r,l,I,N,A])}),r&&a(Ia,{actions:O,title:(z=t.title)==null?void 0:z.trim(),variant:je.POPOVER,modifiers:["filter"],open:r,"aria-label":`${t.label}`,dismiss:I,dismissible:!1,withContentPadding:t.withContentPadding??!0,divider:!0,targetElement:A,disableFocusTrap:!1,position:_e.BOTTOM,containerSize:t.containerSize,showOverlay:n,fitPosition:M||P,children:T({...t,editAction:R,onValueUpdated:C})})]})},f0=be(Fg);var hs=(e=>(e.FROM="from",e.TO="to",e))(hs||{});const xg={month:"short",day:"numeric",year:"numeric"},m0=(e,t,n,r)=>{const s=n&&t(n),o=r&&t(r);if(s&&o)return`${s} - ${o}`;if(s)return e.get("filter.date.since",{values:{date:s}});if(o)return e.get("filter.date.until",{values:{date:o}})},bt=e=>{try{return new Date(e||"").toISOString()}catch{return""}},Bg=(()=>{const e=({editAction:t,from:n,to:r,now:s,onChange:o,onValueUpdated:i,showTimezoneInfo:c,selectedPresetOption:l,timeRangePresetOptions:u,timezone:h,sinceDate:d,untilDate:p})=>{const{i18n:f}=Y(),{fullDateFormat:g}=Xt(h),[_,A]=F(l),T=y(()=>[new Date(n),new Date(r)],[n,r]),C=G(),R=E((O,L)=>{i(m0(f,g,bt(O),bt(L)))},[f,g,i]);return H(()=>{var O,L,S;switch(t){case Ye.APPLY:o({selectedPresetOption:_,[hs.FROM]:bt((O=C.current)==null?void 0:O.from),[hs.TO]:bt((L=C.current)==null?void 0:L.to)});break;case Ye.CLEAR:(S=C.current)==null||S.clear(),o()}},[t,o,_]),a(Ig,{ref:C,now:s,originDate:T,onHighlight:R,onPresetOptionSelected:A,selectedPresetOption:l,timeRangePresetOptions:u,timezone:h,showTimezoneInfo:c,sinceDate:bt(d),untilDate:bt(p)})};return t=>a(e,{...t})})(),$g=(e,t,n)=>e.formatRange(t,n);function Ug({title:e,from:t,to:n,selectedPresetOption:r,...s}){const{i18n:o}=Y(),{fullDateFormat:i}=Xt(s.timezone),[c,l]=F(),[u,h]=F(),[d,p]=F(),f=E(T=>{const{from:C,to:R,selectedPresetOption:O}=T??$;try{l(c??O),h(bt(u??C)),p(bt(d??R))}finally{s.onChange({from:C,to:R,selectedPresetOption:O})}},[c,u,d,s]),g=y(()=>o.get("rangePreset.custom"),[o]),_=y(()=>{const T={...xg,timeZone:s.timezone};let C=new Intl.DateTimeFormat($o,T);try{C=new Intl.DateTimeFormat(o.locale,T)}catch{}return C},[o,s.timezone]);H(()=>l(r),[r]),H(()=>h(bt(t||Date.now())),[t]),H(()=>p(bt(n||Date.now())),[n]);const A=y(()=>r===g&&u&&d?$g(_,new Date(u),new Date(d)):r??s.label,[g,_,u,d,r,s.label]);return a(f0,{...s,from:t,to:n,type:"date",label:A,onChange:f,render:Bg,selectedPresetOption:r,value:m0(o,i,t,n),withContentPadding:!1})}const nc=({timezone:e,canResetFilters:t,defaultParams:n,filters:r,nowTimestamp:s,refreshNowTimestamp:o,sinceDate:i,untilDate:c,updateFilters:l})=>{const{i18n:u}=Y(),h=y(()=>u.get(n.current.defaultTimeRange),[u]),[d,p]=F(h),f=E((g=$)=>{for(const[_,A]of Object.entries(g)){switch(_){case"selectedPresetOption":p(A||h);break;case hs.FROM:l({[J.CREATED_SINCE]:A||n.current.defaultFilterParams[J.CREATED_SINCE]});break;case hs.TO:l({[J.CREATED_UNTIL]:A||n.current.defaultFilterParams[J.CREATED_UNTIL]});break;default:return}o()}},[h,o,l]);return y(()=>!t&&p(h),[t,h]),a(Ug,{label:u.get("dateRange"),name:J.CREATED_SINCE,sinceDate:i,untilDate:c??new Date(s).toString(),from:r[J.CREATED_SINCE],to:r[J.CREATED_UNTIL],selectedPresetOption:d,timeRangePresetOptions:n.current.timeRangeOptions,timezone:e,onChange:f,showTimezoneInfo:!0,now:s})};function Wg(e){return"callback"in e}function p0(e){const[t,n]=F(null),r=E(i=>{var c;return i&&Wg(e[i.selection.type])?{callback:(c=e==null?void 0:e[i.selection.type])!=null&&c.callback?l=>{var u,h;return(h=(u=e[i.selection.type])==null?void 0:u.callback)==null?void 0:h.call(u,{showModal:()=>n(i),...l})}:()=>{var l;return((l=e[i.selection.type])==null?void 0:l.showDetails)&&n(i)}}:(n(i),{})},[e]),s=E(()=>n(null),[]),o=y(()=>{const i={};for(const c in e){const l=e[c];i[c]=!(l!=null&&l.showDetails)||!!l.callback}return i},[e]);return{selectedDetail:t,updateDetails:r,detailsToShow:o,resetDetails:s}}const gl=be(({placeholder:e,selection:t,selectionOptions:n,updateSelection:r})=>{const s=Re(Oe.down.xs),o=Re(Oe.only.sm),i=Re(Oe.only.md);return n&&n.length>1?a(Us,{onChange:r,filterable:!1,multiSelect:!0,placeholder:e,selected:t,withoutCollapseIndicator:!0,items:n,showOverlay:s,fitPosition:i||o}):null}),Hg=e=>Object.freeze(e.map(t=>({id:t,name:t}))),pi=({filterParam:e,filterValues:t,filters:n,defaultFilters:r,updateFilters:s})=>{const o=y(()=>zr((n==null?void 0:n[e])??(r==null?void 0:r[e])??""),[r,n,e]),i=y(()=>t&&Hg(t),[t]),c=E(({target:l})=>{s==null||s({[e]:(l==null?void 0:l.value)||""})},[s,e]);return{selection:o,selectionOptions:i,updateSelection:c}},Gg=[J.CURRENCIES,J.CATEGORIES,J.STATUSES],so=Object.freeze(Object.fromEntries(Gg.map(e=>[e,""]))),Yg=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],jg=["Booked","Pending","Reversed"],zg=e=>{const t=eg(),n="rangePreset.last30Days",{from:r,to:s}=t[n];return{defaultFilterParams:{...e==="transactions"&&{...so,[J.MIN_AMOUNT]:void 0,[J.MAX_AMOUNT]:void 0},[J.BALANCE_ACCOUNT]:void 0,[J.CREATED_SINCE]:new Date(r).toISOString(),[J.CREATED_UNTIL]:new Date(s).toISOString()},defaultTimeRange:n,timeRangeOptions:t}},rc=(e,t)=>{const[n,r]=F(Date.now()),s=zg(e),o=G(s),i=E(()=>r(Date.now()),[r]);return H(()=>{i()},[t,i]),{defaultParams:o,nowTimestamp:n,refreshNowTimestamp:i}},Vg="adyen-pe-data-overview-header",qg=({baseClassName:e=Vg,children:t,hideTitle:n,titleKey:r,descriptionKey:s})=>{const{i18n:o}=Y();return a("header",{className:e,children:[a("div",{className:`${e}__headings`,children:[!n&&r&&a("div",{className:`${e}__title`,children:a(k,{el:ce.SPAN,variant:b.TITLE,medium:!0,children:o.get(r)})}),s&&a("p",{className:`${e}__description`,children:a(k,{el:ce.SPAN,variant:b.BODY,children:o.get(s)})})]}),t&&a("div",{className:`${e}__controls`,children:t})]})},Kg={base:"adyen-pe-modal-content"};function Zg({type:e,data:t,...n}){const r=y(()=>{switch(e){case"payout":return{...t,type:e};case"transaction":return{id:t,type:e,...n};default:return{data:t,type:e}}},[t,e]);return a(V,{children:r&&a("div",{className:Kg.base,children:a(xa,{...r})})})}const _0=({children:e,className:t,selectedDetail:n,resetDetails:r})=>{const{i18n:s}=Y(),o=!!n;return H(()=>{o&&Kr.closeAll()},[o]),a("div",{className:t,children:[e,n&&a(t3,{title:n!=null&&n.title?s.get(n.title):void 0,isOpen:!!n,"aria-label":s.get("payoutDetails"),onClose:r,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&a(Zg,{...n==null?void 0:n.selection})})]})},Xg=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:r=us,onRecordSelection:s,showDetails:o,isLoadingBalanceAccount:i,onContactSupport:c,hideTitle:l})=>{const{getPayouts:u}=Ce().endpoints,{activeBalanceAccount:h,balanceAccountSelectionOptions:d,onBalanceAccountSelection:p}=qa(t),{defaultParams:f,nowTimestamp:g,refreshNowTimestamp:_}=rc("payouts",h),A=E(async(Ne,We)=>u({signal:We,errorLevel:"error"},{query:{...Ne,createdSince:Ne[J.CREATED_SINCE]??f.current.defaultFilterParams[J.CREATED_SINCE],createdUntil:Ne[J.CREATED_UNTIL]??f.current.defaultFilterParams[J.CREATED_UNTIL],balanceAccountId:(h==null?void 0:h.id)??""}}),[h==null?void 0:h.id,f,u]),T=$a(),C=y(()=>ee(e)?e:void 0,[e]),R=y(()=>n?Ya:void 0,[n]),{canResetFilters:O,error:L,fetching:S,filters:I,limit:N,limitOptions:M,records:P,resetFilters:z,updateFilters:j,updateLimit:te,...K}=Va({fetchRecords:A,dataField:"data",filterParams:f.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:C,preferredLimit:r,preferredLimitOptions:R,enabled:!!(h!=null&&h.id)&&!!u});H(()=>{_()},[I,_]);const se=y(()=>({showDetails:o??!0,callback:s}),[o,s]),Me=y(()=>({payout:se}),[se]),{updateDetails:ve,resetDetails:fe,selectedDetail:Fe}=p0(Me),pe=E(Ne=>{ve({selection:{type:"payout",data:{id:h==null?void 0:h.id,balanceAccountDescription:(h==null?void 0:h.description)||"",date:Ne.createdAt}},modalSize:"small"}).callback({balanceAccountId:(h==null?void 0:h.id)||"",date:Ne.createdAt})},[ve,h]);return a("div",{className:i3,children:[a(qg,{hideTitle:l,titleKey:"payoutsTitle",descriptionKey:"payoutsNotice",children:a(Ua,{...T})}),a(Wa,{...T,children:[a(Ga,{activeBalanceAccount:h,balanceAccountSelectionOptions:d,onBalanceAccountSelection:p}),a(nc,{canResetFilters:O,defaultParams:f,filters:I,nowTimestamp:g,refreshNowTimestamp:_,sinceDate:c3,timezone:"UTC",updateFilters:j})]}),a(_0,{className:a3,onContactSupport:c,selectedDetail:Fe,resetDetails:fe,children:a(h3,{loading:S||i||!t,data:P,showPagination:!0,onRowClick:pe,showDetails:o,limit:N,limitOptions:M,onContactSupport:c,onLimitSelection:te,error:L,...K})})]})},Qg="adyen-pe-payouts-overview-container";function Jg({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:r,error:s}=qo(e.balanceAccountId);return a(Ba,{balanceAccountsError:s,className:Qg,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:a(Xg,{...e,balanceAccounts:t,isLoadingBalanceAccount:r})})}class g0 extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(Jg,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}B(g0,"type","payouts");class y0 extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(xa,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}B(y0,"type","transactionDetails");const ey={base:"adyen-pe-divider"},ty=({className:e})=>a("hr",{className:x(ey.base,e)}),ny="adyen-pe-header",sc=({baseClassName:e=ny,children:t,hasDivider:n,hideTitle:r,titleKey:s,subtitleKey:o,subtitleConfig:i})=>{const{i18n:c}=Y();return a("header",{className:e,children:[a("div",{className:`${e}__headings`,children:[!r&&s&&a("div",{className:`${e}__title`,children:a(k,{el:ce.SPAN,variant:b.TITLE,medium:!0,children:c.get(s)})}),o&&a("div",{className:x(`${e}__subtitle`,i==null?void 0:i.classNames),children:a(k,{el:(i==null?void 0:i.typographyEl)??ce.SPAN,variant:(i==null?void 0:i.variant)??b.BODY,children:c.get(o)})}),n&&a(ty,{className:`${e}__divider`})]}),t&&a("div",{className:`${e}__controls`,children:t})]})},ry="adyen-pe-transaction-totals",yl="adyen-pe-transaction-totals__item",sy="adyen-pe-base-button";function oy(e,t){const n=y(()=>wn("",e.className)||"",[e.className]),r=y(()=>Go(e.disabled||!1),[e.disabled]),{click:s,allProps:o}=Yo(n,[...e.classNameModifiers||[],...e.fullWidth?["full-width"]:[]],sy,r,e,e.onClick);return a("button",{type:e.type||"button",onClick:s,ref:t,...o,children:e.children})}const Tl=qe(oy),T0="adyen-pe-expandable-card",Jo=T0,dn=Jo+"__container",oo=Jo+"__content",Al=Jo+"__chevron",El=dn+"--button",_i=dn+"--filled",iy=dn+"--hidden",ay=dn+"--in-flow",A0=dn+"--overlay",Cl=oo+"--expandable",Nl=`--${T0}-height`,gi=A0,oc=({renderHeader:e,children:t,filled:n,fullWidth:r,inFlow:s,...o})=>{const{i18n:i}=Y(),[c,l]=F(!1),u=y(()=>s===!0,[s]),h=E(()=>l(T=>!T),[l]),d=G(null),p=G(u),f=G(!1),g=G(c),_=va(void 0,E(()=>{c&&(h(),f.current=!0)},[c,h])),A=T=>{var C;T&&(u?(!c||p.current!==u)&&T.style.setProperty(Nl,`${((C=d.current)==null?void 0:C.offsetHeight)||0}px`):c||T.style.removeProperty(Nl),p.current=u)};return H(()=>{var T,C;c?(T=_.current)==null||T.focus():(g.current!==c&&!f.current&&((C=d.current)==null||C.focus()),f.current=!1),g.current=c},[c,_]),a("div",{ref:A,className:Jo,children:t?a(V,{children:[a(Tl,{className:x(dn,El,{[_i]:n}),disabled:c,fullWidth:r,"aria-controls":gi,"aria-expanded":c,"aria-hidden":c,onClick:h,ref:d,"data-testid":"expand-button",...o,children:[a("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.expand")}),a("div",{className:x(oo,Cl),children:e}),a("div",{className:Al,children:a(jo,{role:"presentation"})})]}),a(Tl,{id:gi,className:x(dn,El,A0,{[_i]:n,[iy]:!c,[ay]:u}),disabled:!c,fullWidth:r,"aria-controls":gi,"aria-expanded":c,"aria-hidden":!c,onClick:h,ref:_,"data-testid":"collapse-button",...o,children:[a("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.collapse")}),a("div",{className:x(oo,Cl),children:[e,a("div",{children:t})]}),a("div",{className:Al,children:a(pa,{role:"presentation"})})]})]}):a("div",{className:x(dn,{[_i]:n}),...o,children:a("div",{className:oo,children:e})})})},ic="adyen-pe-amount-skeleton",cy=ic+"--has-margin",ly=ic+"--loading",uy=({hasMargin:e=!1,isLoading:t=!1,width:n})=>a("span",{className:x(ic,{[ly]:t,[cy]:e}),style:{width:n}}),Mn="adyen-pe-summary-item",E0=Mn+"__label-container",dy=E0+"--loading",hy=Mn+"--body",C0=Mn+"__label",fy=Mn+"__placeholder",my=Mn+"__amount",Sl=qe(({config:e,i18n:t,isSkeletonVisible:n,className:r,...s},o)=>a("span",{className:x(E0,r,{[dy]:n}),style:{cursor:"default"},ref:o,...s,children:e.labelKey&&a(k,{variant:b.CAPTION,className:C0,children:t.get(e.labelKey)})})),N0=({columnConfigs:e,isHeader:t=!1,isHovered:n=!1,isSkeletonVisible:r=!1,isLoading:s=!1,widths:o,onWidthsSet:i,isEmpty:c})=>{const{i18n:l}=Y();H(()=>{const p=e.map(f=>{var g,_;return((_=(g=f.ref)==null?void 0:g.current)==null?void 0:_.getBoundingClientRect().width)??0});i(p)},[i]);const u=p=>({width:o&&o[p]?o[p]:"auto"}),h=Re(Oe.only.xs),d=E((p,f)=>p.valueHasLabelStyle?b.CAPTION:f&&!h?b.BODY:b.TITLE,[h]);return a("div",{className:x(Mn,{[hy]:!t}),children:e.map((p,f)=>{const g=p.getValue(),_=!!g&&g.length>12;return a("div",{children:[t&&(p.tooltipLabel?a(fn,{content:l.get(`${p.tooltipLabel}`),isContainerHovered:n,children:a(Sl,{config:p,i18n:l,isSkeletonVisible:r})}):a(Sl,{config:p,i18n:l,isSkeletonVisible:r})),r?a(uy,{isLoading:s,hasMargin:p.hasSkeletonMargin,width:p.skeletonWidth+"px"}):c?a("span",{className:x([Mn,fy])}):a("div",{ref:p.ref,style:u(f),children:a(k,{variant:d(p,_),className:x({[C0]:p.valueHasLabelStyle,[my]:!p.valueHasLabelStyle}),children:g})})]},f)})})},vl=({total:e,hiddenField:t,isHeader:n=!1,isHovered:r=!1,isSkeleton:s=!1,isLoading:o=!1,widths:i,onWidthsSet:c})=>{const{i18n:l}=Y(),u=G(null),h=G(null),d=G(null),p=y(()=>{const f={labelKey:"totalIncoming",ref:u,skeletonWidth:80,getValue:()=>e&&l.amount(e.incomings,e.currency),tooltipLabel:"tooltip.totalIncoming"},g={labelKey:"totalOutgoing",ref:h,skeletonWidth:80,getValue:()=>e&&l.amount(e.expenses,e.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...t!=="incomings"?[f]:[],...t!=="expenses"?[g]:[],{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}]},[e,t,l]);return a(N0,{isHovered:r,isEmpty:!e,columnConfigs:p,isHeader:n,isSkeletonVisible:s,isLoading:o,widths:i,onWidthsSet:c})},py="adyen-pe-base-list",ac=({children:e,classNames:t})=>a("ul",{className:x(py,[t]),children:e}),S0=()=>{const[e,t]=F([]),n=E(r=>{t(s=>r.every(o=>!o)?r:r.map((o,i)=>{const c=s[i];return!c||o>c?o:c}))},[]);return[e,n]},yi=be(({totals:e,isLoading:t,hiddenField:n,fullWidth:r})=>{const[s,o]=S0(),[i,c]=F(!1),[l,...u]=y(()=>e.map(h=>(h.key=`${h.currency}-${Math.random()}`,h)),[e]);return a(oc,{renderHeader:a(vl,{isHovered:i,total:l,hiddenField:n,widths:s,isHeader:!0,isSkeleton:t,isLoading:t,onWidthsSet:o}),fullWidth:r,onMouseEnter:()=>c(!0),onFocus:()=>c(!0),onMouseLeave:()=>c(!1),onBlur:()=>c(!1),children:!t&&u.length&&a(ac,{children:u.map(h=>a("li",{children:a(vl,{isHovered:i,total:h,hiddenField:n,widths:s,onWidthsSet:o})},h.key))})})}),_y=be(({availableCurrencies:e,isAvailableCurrenciesFetching:t,balanceAccountId:n,createdSince:r,createdUntil:s,categories:o,statuses:i,maxAmount:c,minAmount:l,currencies:u,fullWidth:h})=>{const{getTransactionTotals:d}=Ce().endpoints,p=E(async()=>d==null?void 0:d($,{query:{createdSince:r,createdUntil:s,categories:o,statuses:i,maxAmount:c,minAmount:l,currencies:u,balanceAccountId:n}}),[n,o,r,s,u,d,c,l,i]),{data:f,isFetching:g}=Ct({fetchOptions:y(()=>({enabled:!!n&&!!d}),[n,d]),queryFn:p}),_=!n||g||t,T=E(()=>{if(!e||!f)return f==null?void 0:f.data;const R=e.map(O=>f.data.find(S=>S.currency===O)||{currency:O,incomings:0,expenses:0});return R.concat(f.data.filter(O=>!R.includes(O)))},[e,f])()??[],C=Re(Oe.only.xs);return a("div",{className:ry,children:C?a(V,{children:[a("div",{className:yl,children:a(yi,{totals:T,isLoading:_,hiddenField:"expenses",fullWidth:h})}),a("div",{className:yl,children:a(yi,{totals:T,isLoading:_,hiddenField:"incomings",fullWidth:h})})]}):a(yi,{totals:T,isLoading:_,fullWidth:h})})}),gy="adyen-pe-balances",Ol=({balance:e,isHeader:t=!1,isSkeleton:n=!1,isLoading:r=!1,widths:s,onWidthsSet:o,isEmpty:i})=>{const{i18n:c}=Y(),l=G(null),u=G(null),h=y(()=>[{labelKey:"accountBalance",ref:l,skeletonWidth:80,getValue:()=>e&&c.amount(e.value,e.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}],[e,l,c]);return a(N0,{isEmpty:i,columnConfigs:h,isHeader:t,isSkeletonVisible:n,isLoading:r,widths:s,onWidthsSet:o})},yy=be(({balanceAccountId:e,defaultCurrencyCode:t,onCurrenciesChange:n,fullWidth:r})=>{const{getBalances:s}=Ce().endpoints,o=E(async()=>s==null?void 0:s($,{path:{balanceAccountId:e}}),[e,s]),{data:i,error:c,isFetching:l}=Ct({fetchOptions:y(()=>({enabled:!!e&&!!s}),[e,s]),queryFn:o}),u=!e||l,h=!!c||!(i!=null&&i.data.length),d=y(()=>(i==null?void 0:i.data)&&[...i.data].sort(({currency:A},{currency:T})=>{if(t){if(A===t)return-1;if(T===t)return 1}return A.localeCompare(T)}),[i==null?void 0:i.data,t]),[p,...f]=y(()=>(d==null?void 0:d.map(A=>(A.key=`${A.currency}-${Math.random()}`,A)))??[],[d]),[g,_]=S0();return H(()=>{const A=new Set((d==null?void 0:d.map(({currency:T})=>T))||[]);n(Array.from(A),l)},[d,l,n]),a("div",{className:gy,children:a(oc,{renderHeader:a(Ol,{isEmpty:h,balance:p,widths:g,isHeader:!0,isSkeleton:u,isLoading:u,onWidthsSet:_}),filled:!0,fullWidth:r,children:f.length&&a(ac,{children:f.map(A=>a("li",{children:a(Ol,{balance:A,widths:g,onWidthsSet:_})},A.key))})})})}),Ty=(e,t)=>{const n=pi({filterParam:J.CATEGORIES,filterValues:Yg,defaultFilters:so,...e}),r=pi({filterParam:J.STATUSES,filterValues:jg,defaultFilters:so,...e}),s=pi({filterParam:J.CURRENCIES,filterValues:t,defaultFilters:so,...e});return{categoriesFilter:n,currenciesFilter:s,statusesFilter:r}},Eo=1e5,Ay=({onChange:e,editAction:t,onValueUpdated:n,selectedCurrencies:r,availableCurrencies:s,value:o,...i})=>{const{i18n:c}=Y(),[l,u]=F(Z(i.minAmount)?void 0:parseFloat(i.minAmount)/Eo),[h,d]=F(Z(i.maxAmount)?void 0:parseFloat(i.maxAmount)/Eo),p=E(()=>{e({minAmount:l,maxAmount:h})},[h,l,e]),f=E(()=>{e({minAmount:void 0,maxAmount:void 0}),d(void 0),u(void 0)},[e]);H(()=>{t===Ye.APPLY&&p(),t===Ye.CLEAR&&f()},[p,f,t]);const g=y(()=>({minAmount:Number(l),maxAmount:Number(h)}),[h,l]);return H(()=>{const{maxAmount:_,minAmount:A}=g;Z(_)&&Z(A)||A>_?n(null):n(`${A}-${_}`)},[g,n]),a("div",{className:"adyen-pe-range-selection-filter",children:[a("div",{className:"adyen-pe-range-selection-filter__input",children:[a("label",{htmlFor:"minValue",children:`${c.get("from")}:`}),a(To,{"data-testid":"minValueFilter",lang:c.locale,name:"minValue",type:"number",value:l,onInput:_=>{_.currentTarget&&u(_.currentTarget.value!==""?_.currentTarget.value:void 0)},min:0,isInvalid:l?l<0:!1,errorMessage:c.get("noNegativeNumbersAllowed")})]}),a("div",{className:"adyen-pe-range-selection-filter__input",children:[a("label",{htmlFor:"maxValue",children:`${c.get("to")}:`}),a(To,{"data-testid":"maxValueFilter",lang:c.locale,name:"maxValue",type:"number",value:h,onInput:_=>{_.currentTarget&&d(_.currentTarget.value!==""?_.currentTarget.value:void 0)},min:l,isInvalid:!Z(h)&&!Z(l)&&h<l,errorMessage:c.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},Ey=({updateFilters:e,selectedCurrencies:t,availableCurrencies:n,...r})=>{const{i18n:s}=Y(),[o,i]=F(),[c,l]=F(),u=y(()=>(t==null?void 0:t.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,t==null?void 0:t.length]),h=E((p,f)=>{const g=(t==null?void 0:t[0])||(n==null?void 0:n[0]),_=f&&g?{style:"currency",currency:g,currencyDisplay:"symbol"}:void 0;return p.toLocaleString(s.locale,_)},[n,s,t]),d=E(p=>{const{minAmount:f,maxAmount:g}=p??$;i({minAmount:f,maxAmount:g}),Z(f)&&Z(g)&&l(void 0),e({minAmount:Z(f)?void 0:String(Math.round(f*Eo)),maxAmount:Z(g)?void 0:String(Math.round(g*Eo))})},[e]);if(o&&(o.minAmount||o.maxAmount)){const{minAmount:p,maxAmount:f}=o??{};!Z(p)&&!Z(f)&&p<=f?l(`${h(p,u)} ${s.get("to").toLowerCase()} ${h(f,u)}`):!Z(p)&&Z(f)&&p>=0?l(`${s.get("from")} ${h(p,u)}`):Z(p)&&!Z(f)?l(`${s.get("to")} ${h(f,u)}`):l(void 0)}return a(f0,{...r,updateFilters:e,minAmount:r.minAmount,maxAmount:r.maxAmount,onChange:d,value:c,label:c||r.label,type:"text",containerSize:as.MEDIUM,selectedCurrencies:t,availableCurrencies:n,render:Ay})},v0="adyen-pe-transactions",O0=`${v0}-overview`,Cy=`${v0}-details`,R0=`${O0}__summary`,Rl=`${R0}-item`,Ny=24,Sy=({records:e,onDataRetrieved:t,mergeCustomData:n})=>{const[r,s]=F(e),[o,i]=F(!1),c=E(l=>async()=>{try{const u=t?await t(l):[];s(n({records:e,retrievedData:u}))}catch(u){s(e),console.error(u)}finally{i(!1)}},[t,e,n]);return H(()=>{t&&e.length&&(i(!0),c(e)())},[t,c,e]),{customRecords:r,loadingCustomRecords:o}},vy=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:r=us,onRecordSelection:s,showDetails:o,isLoadingBalanceAccount:i,onContactSupport:c,hideTitle:l,columns:u,onDataRetrieved:h})=>{const{i18n:d}=Y(),{getTransactions:p}=Ce().endpoints,{activeBalanceAccount:f,balanceAccountSelectionOptions:g,onBalanceAccountSelection:_}=qa(t),{defaultParams:A,nowTimestamp:T,refreshNowTimestamp:C}=rc("transactions",f),R=E(async({balanceAccount:He,...xe},tn)=>p({signal:tn,errorLevel:"error"},{query:{...xe,statuses:zr(xe[J.STATUSES]),categories:zr(xe[J.CATEGORIES]),currencies:zr(xe[J.CURRENCIES]),createdSince:xe[J.CREATED_SINCE]??A.current.defaultFilterParams[J.CREATED_SINCE],createdUntil:xe[J.CREATED_UNTIL]??A.current.defaultFilterParams[J.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(f==null?void 0:f.id)??"",minAmount:Z(xe.minAmount)?void 0:parseFloat(xe.minAmount),maxAmount:Z(xe.maxAmount)?void 0:parseFloat(xe.maxAmount)}}),[f==null?void 0:f.id,A,p]),O=$a(),L=y(()=>ee(e)?e:void 0,[e]),S=y(()=>n?Ya:void 0,[n]),{canResetFilters:I,error:N,fetching:M,filters:P,limit:z,limitOptions:j,records:te,resetFilters:K,updateFilters:se,updateLimit:Me,...ve}=Va({fetchRecords:R,dataField:"data",filterParams:A.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:L,preferredLimit:r,preferredLimitOptions:S,enabled:!!(f!=null&&f.id)&&!!p}),[fe,Fe]=F([]),[pe,Ne]=F(!1),We=E((He,xe)=>{Fe(He),Ne(xe)},[]),{categoriesFilter:ue,currenciesFilter:Ze,statusesFilter:en}=Ty({filters:P,updateFilters:se},fe);H(()=>{Fe(void 0),se({[J.BALANCE_ACCOUNT]:f==null?void 0:f.id,[J.CURRENCIES]:void 0})},[se,f==null?void 0:f.id]),H(()=>{C()},[P,C]),H(()=>{en.updateSelection({target:{value:"Booked",name:"status"}})},[en]);const Hr=Re(Oe.down.sm),Hs=!!fe&&fe.length>1,at=y(()=>({showDetails:o??!0,callback:s}),[o,s]),Hn=y(()=>({transaction:at}),[at]),_n=E(({records:He,retrievedData:xe})=>He.map(tn=>({...xe.find(Ys=>Ys.id===tn.id),...tn})),[]),{customRecords:Gr,loadingCustomRecords:ti}=Sy({records:te,onDataRetrieved:h,mergeCustomData:_n}),{updateDetails:Gs,resetDetails:ni,selectedDetail:oe}=p0(Hn),ge=E(({id:He})=>{const xe=te.find(Gn=>Gn.id===He),tn=Gr.find(Gn=>Gn.id===He);return xe&&tn?Object.keys(tn).reduce((Ys,si)=>(si in xe||(Ys[si]=tn[si]),Ys),{}):null},[te,Gr]),Se=E(({id:He})=>{Gs({selection:{type:"transaction",data:He,balanceAccount:f||"",extraDetails:ge({id:He})??$},modalSize:"small"}).callback({id:He})},[f,Gs,ge]),ri=y(()=>{const He=new Date(T);return He.setMonth(He.getMonth()-Ny),He.toString()},[T]);return a("div",{className:O0,children:[a(sc,{hideTitle:l,titleKey:"transactionsOverviewTitle",children:a(Ua,{...O})}),a(Wa,{...O,children:[a(Ga,{activeBalanceAccount:f,balanceAccountSelectionOptions:g,onBalanceAccountSelection:_}),a(nc,{canResetFilters:I,defaultParams:A,filters:P,nowTimestamp:T,refreshNowTimestamp:C,sinceDate:ri,timezone:f==null?void 0:f.timeZone,updateFilters:se}),a(gl,{...ue,placeholder:d.get("filterPlaceholder.category")}),a(Ey,{availableCurrencies:fe,selectedCurrencies:zr(P[J.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:P[J.MIN_AMOUNT],maxAmount:P[J.MAX_AMOUNT],updateFilters:se,onChange:se}),a(gl,{...Ze,placeholder:d.get("filterPlaceholder.currency")})]}),a("div",{className:R0,children:[a("div",{className:Rl,children:a(_y,{availableCurrencies:fe,isAvailableCurrenciesFetching:pe,balanceAccountId:f==null?void 0:f.id,statuses:en.selection,categories:ue.selection,createdUntil:P[J.CREATED_UNTIL],createdSince:P[J.CREATED_SINCE],currencies:Ze.selection,minAmount:P[J.MIN_AMOUNT]?parseFloat(P[J.MIN_AMOUNT]):void 0,maxAmount:P[J.MAX_AMOUNT]?parseFloat(P[J.MAX_AMOUNT]):void 0,fullWidth:Hr})}),a("div",{className:Rl,children:a(yy,{balanceAccountId:f==null?void 0:f.id,onCurrenciesChange:We,defaultCurrencyCode:f==null?void 0:f.defaultCurrencyCode,fullWidth:Hr})})]}),a(_0,{selectedDetail:oe,resetDetails:ni,className:Cy,children:a(v_,{activeBalanceAccount:f,availableCurrencies:fe,error:N,hasMultipleCurrencies:Hs,limit:z,limitOptions:j,loading:M||i||!t||ti,onContactSupport:c,onLimitSelection:Me,onRowClick:Se,showPagination:!0,transactions:h?Gr:te,customColumns:u,...ve})})]})},Oy="adyen-pe-transactions-overview-container";function Ry({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:r,error:s}=qo(e.balanceAccountId);return a(Ba,{balanceAccountsError:s,className:Oy,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:a(vy,{...e,balanceAccounts:t,isLoadingBalanceAccount:r})})}class b0 extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(Ry,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}B(b0,"type","transactions");var ir=(e=>(e.AU="AU",e.EU="EU",e.GB="GB",e.US="US",e))(ir||{});const by=["AU","GB","US"],Iy=["EU"],I0=e=>{var n;const t=(n=e==null?void 0:e.regions)==null?void 0:n.find(r=>r.type==="capital");return(t==null?void 0:t.value)??""},Ly=e=>{switch(e){case ir.EU:return"capital.legalSubtitleEU";default:return null}},Dy=e=>{switch(e){case ir.AU:return"capital.legalSubtitleAU";case ir.GB:return"capital.legalSubtitleGB";case ir.US:return"capital.legalSubtitleUS";default:return null}},wy=e=>{const t=I0(e),n=e==null?void 0:e.countryCode;return Dy(n)??Ly(t)},cc=e=>{const t=I0(e),n=(e==null?void 0:e.countryCode)??"";return by.includes(n)||Iy.includes(t)},Ft={contactSupportForHelp:"contactSupportForHelp",couldNotLoadOffers:"capital.weCouldNotLoadFinancialOffers",tryRefreshingThePage:"tryRefreshingThePageOrComeBackLater",somethingWentWrong:"somethingWentWrong"},Ti={title:Ft.somethingWentWrong,message:[Ft.couldNotLoadOffers,Ft.tryRefreshingThePage],refreshComponent:!0},L0=(e,t)=>{if(!e)return Ti;const n=sd(e,t);if(n)return n;const r=t?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";switch(e.errorCode){case void 0:return{...Ti,...t?{onContactSupport:t}:{}};case"30_016":return{title:Ft.somethingWentWrong,message:[Ft.couldNotLoadOffers,r],translationValues:{[r]:e.requestId?a(sr,{textToCopy:e.requestId}):null},onContactSupport:t};case"30_011":return{title:"capital.accountIsInactive",message:[Ft.couldNotLoadOffers,r],translationValues:{[r]:e.requestId?a(sr,{textToCopy:e.requestId}):null},onContactSupport:t};case"30_600":return{title:Ft.somethingWentWrong,message:["capital.weCouldNotContinueWithTheOffer",r],translationValues:{[r]:e.requestId?a(sr,{textToCopy:e.requestId}):null},onContactSupport:t};case"EMPTY_CONFIG":return{title:Ft.somethingWentWrong,message:["capital.weCouldNotContinueWithTheOffer",Ft.contactSupportForHelp]};case"UNSUPPORTED_REGION":return{title:"capital.unsupportedRegionTitle",message:"capital.unsupportedRegionDescription"};default:return{...Ti,refreshComponent:!0}}},ei=({emptyGrantOffer:e,error:t,onContactSupport:n,onBack:r,unsupportedRegion:s})=>{const{i18n:o}=Y(),i=E(()=>a(V,{children:r&&a(he,{variant:le.SECONDARY,onClick:r,children:o.get("back")})}),[o,r]),c=y(()=>s?new vi(ao.ERROR,"UnsupportedRegion","Unsupported Region Configuration","UNSUPPORTED_REGION"):e?new vi(ao.ERROR,"EmptyConfig","Empty Configuration","EMPTY_CONFIG"):t,[e,s,t]);return a(qt,{absolutePosition:!1,withImage:!0,onContactSupport:n,renderSecondaryButton:i,outlined:!1,...L0(c,n)})},bl={base:"adyen-pe-capital-offer",errorContainer:"adyen-pe-capital-offer__error-container"},Fn=e=>{var r;const t=(r=Ce().extraConfig)==null?void 0:r.legalEntity,n=y(()=>{const s=wy(t);return s?{subtitleKey:s}:{}},[t]);return a(sc,{...e,...n,subtitleConfig:{variant:b.CAPTION,classNames:"adyen-pe-capital-header__subtitle"}})},lc=({className:e,el:t="div",children:n})=>a(t,{className:x("adyen-pe-info-box",e),children:n}),ky=(e,t=0)=>new Date(new Date(e).setUTCHours(0,0,0,0)+Math.floor(t)*ds),D0=e=>Hl(ky(new Date,e)),Py=e=>e?Math.ceil(e/30):null,My=(e,t)=>{let n,r;function s(...o){clearTimeout(n),r=o,n=setTimeout(()=>{e(r),r=void 0},t)}return s.cancel=()=>{n&&(clearTimeout(n),n=void 0,r=void 0)},s},uc=e=>e/100;function Fy(e,t,n,r){if(t>=n)return 0;const s=r>0?r:1;if(s>n-t)return 0;const i=(Math.round((e-t)/s)*s+t-t)*100/(n-t);return Number(Et(0,i,100).toFixed(2))}function xy(e,t,n){const r=t/2;let s=Math.round(r/n)*n;return s<e?s=e:s>t&&(s=t),s}const By=({min:e=0,max:t=100,step:n=1,value:r=e,onChange:s,className:o,...i})=>{const c=y(()=>Fy(r,e,t,n),[r,e,t,n]);return a("input",{type:"range",className:x("adyen-pe-slider",o),min:e,max:t,step:n,value:r,onChange:s,style:{backgroundSize:`${c}% 100%`},...i})},$y=({dynamicOffersConfig:e,value:t=e.minAmount.value,onValueChange:n,onRelease:r,className:s})=>{const o=ss(),{i18n:i}=Y(),c=u=>{const h=Number(u.target.value);n==null||n(h)},l=u=>{const h=Number(u.target.value);r==null||r(h)};return a("div",{className:x("adyen-pe-capital-slider",s),children:[a("label",{htmlFor:o,className:"adyen-pe-capital-slider__label",children:a(k,{variant:b.BODY,stronger:!0,children:i.get("capital.howMuchMoneyDoYouNeed")})}),a("div",{children:[a("output",{htmlFor:o,className:"adyen-pe-capital-slider__value","aria-live":"polite",children:a(k,{variant:b.TITLE,strongest:!0,children:i.amount(t,e.minAmount.currency,{maximumFractionDigits:0})})}),a(By,{id:o,value:t,min:e.minAmount.value,max:e.maxAmount.value,step:e.step,onChange:c,onMouseUp:l,onTouchEnd:l,onKeyUp:l,className:"adyen-pe-capital-slider__input"})]}),a("div",{className:"adyen-pe-capital-slider__labels",children:[a("label",{children:[a(k,{variant:b.CAPTION,children:i.get("min")}),a(k,{variant:b.BODY,children:i.amount(e.minAmount.value,e.minAmount.currency,{maximumFractionDigits:0})})]}),a("label",{children:[a(k,{variant:b.CAPTION,children:i.get("max")}),a(k,{variant:b.BODY,children:i.amount(e.maxAmount.value,e.maxAmount.currency,{maximumFractionDigits:0})})]})]})]})},Co=30,Uy=()=>a("div",{className:"adyen-pe-capital-offer-selection__loading-container",children:[...Array(4)].map((e,t)=>a("div",{className:"adyen-pe-capital-offer-selection__loading-skeleton"},t))}),Wy=({data:e})=>{const{i18n:t}=Y(),n=y(()=>{const r=e.expectedRepaymentPeriodDays&&D0(e.expectedRepaymentPeriodDays);return r?t.date(r,{month:"long"}):null},[e,t]);return a("div",{className:"adyen-pe-capital-offer-selection__information",children:[a(k,{el:ce.SPAN,variant:b.BODY,wide:!0,children:n&&t.get("capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds",{values:{amount:t.amount(e.thresholdAmount.value,e.thresholdAmount.currency),days:Co,date:n}})}),a(kn,{renderValue:r=>a(k,{el:ce.SPAN,stronger:!0,variant:b.CAPTION,children:r}),renderLabel:r=>a(k,{el:ce.SPAN,variant:b.CAPTION,children:r}),items:[{key:"capital.fees",value:t.amount(e.feesAmount.value,e.feesAmount.currency)},{key:"capital.dailyRepaymentRate",value:`${t.get("capital.xPercent",{values:{percentage:uc(e.repaymentRate)}})}`},{key:"capital.expectedRepaymentPeriod",value:t.get("capital.xDays",{values:{days:e.expectedRepaymentPeriodDays}})}]})]})},Hy=({dynamicOffersConfig:e,dynamicOffersConfigError:t,emptyGrantOffer:n,onContactSupport:r,onOfferDismiss:s,onOfferSelect:o,requestedAmount:i})=>{const{i18n:c}=Y(),l=y(()=>{if(e)return xy(e.minAmount.value,e.maxAmount.value,e.step)},[e]),[u,h]=F(void 0),d=y(()=>e==null?void 0:e.minAmount.currency,[e==null?void 0:e.minAmount.currency]),{createGrantOffer:p,getDynamicGrantOffer:f}=Ce().endpoints,g=po({queryFn:f,options:{retry:1,shouldRetry:E(N=>N.status===500,[]),onSettled:E(()=>{R(!1)},[])}}),_=po({queryFn:p,options:{onSuccess:N=>o(N)}}),A=E(()=>{var N,M;_.mutate({body:{amount:((N=g.data)==null?void 0:N.grantAmount.value)||u,currency:((M=g.data)==null?void 0:M.grantAmount.currency)||d},contentType:"application/json"})},[d,g.data,u,_]),T=E(N=>g.mutate({},{query:{amount:N,currency:d}}),[d,g]),[C,R]=F(!1),O=My(T,300),L=E(N=>{O.cancel(),R(!0),h(N)},[O]),S=N=>O(N);H(()=>{e&&!g.data&&!u&&(h(N=>N||(i?Number(i):l||e.minAmount.value)),T(u||l||e.minAmount.value))},[e,g.data,T,l,i,u]);const I=y(()=>_.isLoading||g.isLoading||C,[g.isLoading,C,_.isLoading]);return a("div",{className:"adyen-pe-capital-offer-selection",children:_.error||g.error||n||t?a(ei,{error:_.error||g.error||t,onBack:s,onContactSupport:r,emptyGrantOffer:n}):a(V,{children:[e&&a($y,{value:u,dynamicOffersConfig:e,onValueChange:L,onRelease:S}),a(lc,{className:"adyen-pe-capital-offer-selection__details",children:!g.data||g.isLoading||C?a(Uy,{}):g.data?a(Wy,{data:g.data}):null}),a("div",{className:"adyen-pe-capital-offer-selection__buttons",children:[s&&a(he,{variant:le.SECONDARY,onClick:s,children:c.get("back")}),a(he,{variant:le.PRIMARY,state:I?"loading":void 0,onClick:A,disabled:_.isLoading||!(e!=null&&e.minAmount),children:c.get(I?"loading":"capital.reviewOffer")})]})]})})},Gy=(e,t)=>{const{variant:n=le.PRIMARY,disabled:r=!1,onClick:s,classNameModifiers:o=[],className:i}=e,c=y(()=>wn("",i)||"",[i]),l=y(()=>Go(r),[r]),{click:u,allChildren:h,allProps:d}=Yo(c,[...o,n],it,l,e,s),p=y(()=>({...d,...e.onClick&&u?{onClick:u}:{}}),[u,d,e.onClick]);return a("a",{...p,href:e.href,ref:t,children:h})},Yy=qe(Gy),Il=e=>ee(e)?e:()=>e,Ll=({count:e,defaultFill:t,fills:n,translationKey:r})=>{const{i18n:s}=Y(),o=y(()=>{const i=Il(t);return n!==void 0?(...c)=>{const[l,u]=c;for(const h of[l,u]){const d=Il(n[h])(...c);if(d!=null)return d}return i(...c)}:i},[n,t]);return y(()=>{const i=[],c=ss("translation"),l=(...d)=>(i.push(o(...d)??null),c),[u,...h]=s.get(r,{count:e,values:l}).split(c);return a(V,{children:[u,h.map((d,p)=>a(V,{children:[i[p],d]},`${c}__${p}`))]})},[s,e,o,r])},Dl="capital-support@adyen.com",jy=()=>{var t,n,r;return((r=(n=(t=Ce())==null?void 0:t.extraConfig)==null?void 0:n.legalEntity)==null?void 0:r.countryCode)===ir.US?a(Xs,{filled:!0,noOutline:!0,children:[a(k,{variant:b.CAPTION,className:"adyen-pe-capital-offer-legal-notice--title",children:a(Ll,{translationKey:"capital.offerLegalNoticeTitleUS",fills:{break:a("br",{})}})}),a("br",{}),a(k,{variant:b.CAPTION,className:"adyen-pe-capital-offer-legal-notice--description",children:a(Ll,{translationKey:"capital.offerLegalNoticeDescriptionUS",fills:{email:a(Yy,{href:`mailto:${Dl}`,variant:le.TERTIARY,className:"adyen-pe-capital-offer-summary__info--email",children:Dl}),break:a(V,{children:[a("br",{}),a("br",{})]})}})})]}):null},zy=["30_013"],Vy=({grantOffer:e,onBack:t,onFundsRequest:n,onContactSupport:r})=>{const{i18n:s}=Y(),o=y(()=>{const f=D0(e.expectedRepaymentPeriodDays);return f?s.date(f,{month:"long"}):null},[e,s]),{requestFunds:i}=Ce().endpoints,c=po({queryFn:i,options:{onSuccess:f=>n==null?void 0:n(f)}}),l=E(f=>{c.mutate($,{path:{grantOfferId:f}})},[c]),u=E(()=>{e.id&&l(e.id)},[e.id,l]),h=y(()=>Py(e.maximumRepaymentPeriodDays),[e.maximumRepaymentPeriodDays]),d=y(()=>{const f=c.error?c.error:null;if(f&&zy.includes(f.errorCode))switch(f.errorCode){case"30_013":return{title:s.get("capital.thereIsNoPrimaryAccountConfigured"),message:s.get("capital.weCouldNotContinueWithTheOfferContactSupportForHelp"),errorCode:"30_013"};default:return{title:s.get("somethingWentWrong"),message:s.get("capital.weCouldNotLoadFinancialOffers")}}return null},[s,c.error]),p=y(()=>{const f=[{key:"capital.fees",value:s.amount(e.feesAmount.value,e.feesAmount.currency)},{key:"capital.totalRepaymentAmount",value:s.amount(e.totalAmount.value,e.totalAmount.currency)},{key:"capital.repaymentThreshold",value:s.amount(e.thresholdAmount.value,e.thresholdAmount.currency)},{key:"capital.dailyRepaymentRate",value:s.get("capital.xPercent",{values:{percentage:uc(e.repaymentRate)}})},{key:"capital.expectedRepaymentPeriod",value:s.get("capital.xDays",{values:{days:e.expectedRepaymentPeriodDays}})},{key:"account",value:s.get("capital.primaryAccount")}];return h&&f.splice(4,0,{key:"capital.maximumRepaymentPeriod",value:h===1?s.get("capital.oneMonth"):s.get("capital.xMonths",{values:{months:h}})}),f},[e,s,h]);return!d&&c.error?a(ei,{error:c.error,onBack:t,onContactSupport:r}):a("div",{className:"adyen-pe-capital-offer-summary",children:[a(lc,{className:"adyen-pe-capital-offer-summary__grant-summary",children:[a(k,{el:ce.PARAGRAPH,variant:b.BODY,children:[s.get("capital.youAreRequestingFundingOf")," ",a("strong",{children:`${s.amount(e.grantAmount.value,e.grantAmount.currency,{minimumFractionDigits:0})}.`})]}),a(k,{el:ce.PARAGRAPH,variant:b.CAPTION,children:s.get("capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds",{values:{amount:s.amount(e.thresholdAmount.value,e.thresholdAmount.currency),days:Co,date:o??""}})})]}),a(kn,{classNames:"adyen-pe-capital-offer-summary__details",renderLabel:(f,g)=>g==="capital.repaymentThreshold"?a(fn,{isContainerHovered:!0,content:s.get("capital.minimumRepaymentToRepayTheFinancingOnTime",{values:{days:Co}}),children:a("span",{children:a(k,{className:"adyen-pe-capital-offer-summary__list-label",el:ce.SPAN,variant:b.CAPTION,children:f})})}):a(k,{className:"adyen-pe-capital-offer-summary__list-label",el:ce.SPAN,variant:b.CAPTION,children:f}),renderValue:(f,g)=>{const _=g==="account"&&c.error&&d&&d.errorCode==="30_013";return a(k,{className:x({"adyen-pe-capital-offer-summary__details--error":_}),el:ce.SPAN,variant:b.CAPTION,stronger:!0,children:[_?a(st,{name:"warning-filled"}):null,f]})},items:p}),d&&a(un,{className:"adyen-pe-capital-offer-summary__error-alert",type:ke.WARNING,title:d.title,description:d.message,children:r?a(he,{className:"adyen-pe-capital-offer-summary__error-alert-button",onClick:r,children:s.get("contactSupport")}):null}),a(jy,{}),a("div",{className:"adyen-pe-capital-offer-summary__buttons",children:[c.error&&!d?null:a(he,{variant:le.SECONDARY,onClick:t,children:s.get("back")}),a(he,{variant:le.PRIMARY,state:c.isLoading?"loading":void 0,onClick:u,disabled:c.isLoading||!!c.error,children:s.get(c.isLoading?"capital.requesting":"capital.requestFunds")})]})]})},dc=({externalDynamicOffersConfig:e,hideTitle:t,onContactSupport:n,onFundsRequest:r,onOfferDismiss:s,onOfferSelect:o})=>{var L,S;const{getDynamicGrantOffersConfiguration:i}=Ce().endpoints,c=(S=(L=Ce())==null?void 0:L.extraConfig)==null?void 0:S.legalEntity,l=y(()=>cc(c),[c]),[u,h]=F(!1),d=E(I=>{h(!I)},[]),{data:p,error:f}=Ct({fetchOptions:{enabled:!e&&!!i&&l,onSuccess:d},queryFn:E(async()=>i==null?void 0:i($),[i])}),g=e||p,[_,A]=F(),[T,C]=F(),R=E(I=>{o?o(I):(C(I==null?void 0:I.grantAmount.value),A(I))},[o]),O=y(()=>_?"OfferSummary":"OfferSelection",[_]);return l?a("div",{className:bl.base,children:[a(Fn,{hasDivider:!0,hideTitle:t,titleKey:O==="OfferSummary"?"capital.businessFinancingSummary":"capital.businessFinancingOffer"}),O==="OfferSelection"&&a(Hy,{requestedAmount:T,dynamicOffersConfig:g,dynamicOffersConfigError:f,onOfferDismiss:s,onOfferSelect:R,emptyGrantOffer:u,onContactSupport:n}),O==="OfferSummary"&&a(Vy,{grantOffer:_,onBack:()=>A(void 0),onFundsRequest:r,onContactSupport:n})]}):a("div",{className:bl.errorContainer,children:[a(Fn,{hideTitle:t,titleKey:"capital.businessFinancing"}),a(ei,{unsupportedRegion:!0})]})};class w0 extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(dc,{...this.props}));this.componentToRender=this.componentToRender.bind(this),this.customClassNames="adyen-pe-capital-offer-component"}}B(w0,"type","capitalOffer");const qy=(e=1e3,t=!1)=>{const[n,r]=F(t),s=G(),o=G(),i=E(()=>{n||(o.current=setTimeout(()=>{s.current=requestAnimationFrame(()=>r(!1))},e),r(!0))},[n,e]);return H(()=>()=>{cancelAnimationFrame(s.current),clearTimeout(o.current),s.current=o.current=null},[e]),{freeze:i,frozen:n}},wl=({...e})=>a("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[a("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"}),a("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"})]}),Ky=(e,t,n)=>{const r=Ce().endpoints[e];return Ct({fetchOptions:{enabled:!!r&&n,keepPrevData:!0},queryFn:async()=>r($,{...t})})};function Zy({blob:e,filename:t}){const n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t||"download";const s=()=>{setTimeout(()=>{URL.revokeObjectURL(r)},150)};n.addEventListener("click",s,{once:!0}),n.click()}function Xy({className:e,disabled:t,endpointName:n,params:r,setError:s,errorDisplay:o,onDownloadRequested:i}){const{i18n:c}=Y(),[l,u]=F(!1),h=Re(Oe.down.xs),{data:d,error:p,isFetching:f}=Ky(n,r,l);H(()=>{l&&u(!1)},[l]),H(()=>{d&&Zy(d)},[d]),H(()=>{s&&p&&s(p)},[p]);const g=()=>{u(!0),i==null||i()};return a("div",{className:"adyen-pe-download",children:[h?a(he,{iconButton:!0,variant:le.TERTIARY,onClick:g,children:f?a(Mi,{size:"small"}):a(wl,{})}):a(he,{className:x("adyen-pe-download__button",{"adyen-pe-download__button--loading":f},e),disabled:t||f,variant:le.SECONDARY,onClick:g,iconLeft:f?a(Mi,{size:"small"}):a(wl,{}),children:f?`${c.get("downloading")}..`:c.get("download")}),p&&o&&a("div",{className:"adyen-pe-download__error",children:o})]})}const Qy=({...e})=>a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[a("path",{d:"M8.75 4.58008H7.25V9.08008H8.75V4.58008Z",fill:"currentColor"}),a("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"}),a("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"})]}),Jy=1e3,k0="adyen-pe-reports-table",P0=`${k0}-date-report-type`,eT=`${P0}--date`,tT=["createdAt","dateAndReportType","reportType","reportFile"],nT=({error:e,loading:t,balanceAccountId:n,onContactSupport:r,showPagination:s,data:o,...i})=>{const{i18n:c}=Y(),{dateFormat:l}=Xt("UTC"),{freeze:u,frozen:h}=qy(Jy),[d,p]=F(null),{refreshing:f}=Ce(),g=y(()=>t||f,[t,f]),_=Re(Oe.up.sm),A=Re(Oe.down.xs),T=y(()=>({dateAndReportType:A,createdAt:_,reportType:_,reportFile:!0}),[A,_]),C=y(()=>tT.map(N=>{const M=c.get(Pa(N));return{key:N,label:M,position:A&&N==="reportFile"?mn.RIGHT:void 0,visible:T[N]}}),[c,o,T]),R=E(()=>{p(null)},[]),O={title:"noReportsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},L=y(()=>()=>a(Da,{error:e,errorMessage:"weCouldNotLoadYourReports",onContactSupport:r}),[e,r]),S=y(()=>a(Qy,{}),[]),I=y(()=>N=>{const M={};switch(N==null?void 0:N.errorCode){case"999_429_001":M.title=c.get("error.somethingWentWrongWithDownload"),M.description=c.get("reportsError.tooManyDownloads");break;case"00_500":default:M.title=c.get("error.somethingWentWrongWithDownload"),M.description=c.get("error.pleaseTryAgainLater");break}p(M)},[e,r]);return t&&p(null),a("div",{className:k0,children:[d&&a(un,{onClose:R,type:ke.WARNING,className:"adyen-pe-reports-table-alert",...d}),a(pn,{errorDisplay:L,error:e,columns:C,data:o,loading:g,outline:!1,emptyTableMessage:O,customCells:{createdAt:({value:N})=>N?N&&a(k,{variant:b.BODY,children:l(N,Hc)}):null,dateAndReportType:({item:N})=>a("div",{className:P0,children:[a(k,{variant:b.BODY,stronger:!0,children:c.get(`reportType.${N==null?void 0:N.type}`)}),a(k,{className:eT,variant:b.BODY,children:l(N.createdAt,Hc)})]}),reportType:({item:N})=>(N==null?void 0:N.type)&&a(k,{variant:b.BODY,children:c.get(`reportType.${N==null?void 0:N.type}`)}),reportFile:({item:N})=>{const M={query:{balanceAccountId:n,createdAt:N.createdAt,type:N.type}};return a(Xy,{className:"adyen-pe-reports-table--download",endpointName:"downloadReport",disabled:h,params:M,onDownloadRequested:u,setError:I,errorDisplay:S})}},children:s&&a(pn.Footer,{children:a(ka,{...i})})})]})},rT="adyen-pe-reports-overview",sT=new Date("2024-04-16T00:00:00.000Z").toString(),oT=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:r=us,isLoadingBalanceAccount:s,onContactSupport:o,hideTitle:i})=>{const{getReports:c}=Ce().endpoints,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:h}=qa(t),{defaultParams:d,nowTimestamp:p,refreshNowTimestamp:f}=rc("reports",l),g=E(async(te,K)=>c({signal:K,errorLevel:"error"},{query:{...te,type:"payout",createdSince:te[J.CREATED_SINCE]??d.current.defaultFilterParams[J.CREATED_SINCE],createdUntil:te[J.CREATED_UNTIL]??d.current.defaultFilterParams[J.CREATED_UNTIL],balanceAccountId:(l==null?void 0:l.id)??""}}),[l==null?void 0:l.id,d,c]),_=$a(),A=y(()=>ee(e)?e:void 0,[e]),T=y(()=>n?Ya:void 0,[n]),{canResetFilters:C,error:R,fetching:O,filters:L,limit:S,limitOptions:I,records:N,resetFilters:M,updateFilters:P,updateLimit:z,...j}=Va({fetchRecords:g,dataField:"data",filterParams:d.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:A,preferredLimit:r,preferredLimitOptions:T,enabled:!!(l!=null&&l.id)&&!!c});return H(()=>{f()},[L,f]),a("div",{className:rT,children:[a(sc,{hideTitle:i,titleKey:"reportsTitle",subtitleKey:"reportsNotice",children:a(Ua,{..._})}),a(Wa,{..._,children:[a(Ga,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:h}),a(nc,{canResetFilters:C,defaultParams:d,filters:L,nowTimestamp:p,refreshNowTimestamp:f,sinceDate:sT,timezone:"UTC",updateFilters:P})]}),a(nT,{balanceAccountId:l==null?void 0:l.id,loading:O||s||!t||!l,data:N,showPagination:!0,limit:S,limitOptions:I,onContactSupport:o,onLimitSelection:z,error:R,...j})]})},iT="adyen-pe-reports-overview-container";function aT({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:r,error:s}=qo(e.balanceAccountId);return a(Ba,{balanceAccountsError:s,className:iT,errorMessage:"weCouldNotLoadTheReportsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:a(oT,{...e,balanceAccounts:t,isLoadingBalanceAccount:r})})}class M0 extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(aT,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>{this.componentRef=n}}));this.componentToRender=this.componentToRender.bind(this)}}B(M0,"type","reports");const rn={base:"adyen-pe-capital-overview",title:"adyen-pe-capital-overview__title",skeleton:"adyen-pe-capital-overview__skeleton",headerSkeleton:"adyen-pe-capital-overview__header-skeleton",skeletonContainer:"adyen-pe-capital-overview__header-skeleton-container",preQualifiedGrant:"adyen-pe-capital-overview__pre-qualified-grant",preQualifiedGrantButton:"adyen-pe-capital-overview__pre-qualified-grant-review-button",errorContainer:"adyen-pe-capital-overview__error-container"},cT="data:image/svg+xml,%3csvg%20width='254'%20height='132'%20viewBox='0%200%20254%20132'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M68.0772%2069.5256C68.0287%2069.3932%2066.6957%2058.4056%2066.6957%2058.4056C66.576%2057.682%2064.6702%2055.0296%2064.4049%2054.5676L53.5013%2036.8958C52.618%2035.639%2051.1199%2036.0946%2050.4728%2036.6244C49.9325%2037.0379%2049.4601%2037.7293%2050.3272%2039.3769C51.7832%2042.1489%2057.4842%2052.9393%2057.4842%2052.9393L55.7144%2056.3348L52.7927%2058.9872C52.9836%2059.3231%2048.6124%2058.4993%2048.6124%2058.4993C48.4798%2058.3313%2050.9776%2071.0117%2057.4421%2074.7529C57.4421%2074.7529%2065.2591%2087.724%2065.0294%2087.8274L73.1635%2078.8397L68.0772%2069.5289V69.5256Z'%20fill='%23B34B36'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M51.534%2055.2108C51.534%2055.2108%2047.6805%2054.975%2048.6155%2058.4932C49.5506%2062.0146%2053.6079%2068.3984%2055.4069%2066.838C57.2058%2065.2776%2053.2844%2059.5238%2053.2844%2059.5238'%20fill='%23B34B36'/%3e%3cpath%20d='M51.534%2055.2108C51.534%2055.2108%2047.6805%2054.975%2048.6155%2058.4932C49.5506%2062.0146%2053.6079%2068.3984%2055.4069%2066.838C57.2058%2065.2776%2053.2844%2059.5238%2053.2844%2059.5238'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M53.6048%2052.245C53.6048%2052.245%2049.7513%2052.0092%2050.6863%2055.5274C51.6214%2059.0488%2055.6787%2065.4326%2057.4777%2063.8722C59.2766%2062.3118%2055.3552%2056.558%2055.3552%2056.558'%20fill='%23B34B36'/%3e%3cpath%20d='M53.6048%2052.245C53.6048%2052.245%2049.7513%2052.0092%2050.6863%2055.5274C51.6214%2059.0488%2055.6787%2065.4326%2057.4777%2063.8722C59.2766%2062.3118%2055.3552%2056.558%2055.3552%2056.558'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M56.1903%2050.5459C56.1903%2050.5459%2051.8191%2049.0404%2052.7542%2052.5619C53.6893%2056.0833%2057.7466%2062.4671%2059.5455%2060.9067C61.3445%2059.3463%2056.1903%2050.5459%2056.1903%2050.5459Z'%20fill='%23B34B36'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M66.6955%2058.4029C66.6955%2058.4029%2065.5081%2049.147%2063.7253%2048.0615C61.9425%2046.9759%2057.8852%2043.3641%2056.8142%2044.091C55.7433%2044.8146%2056.1186%2046.4849%2056.8369%2047.4024C57.5552%2048.3199%2061.2469%2051.8381%2061.2469%2051.8381C61.2469%2051.8381%2056.3677%2059.3365%2058.872%2064.8481'%20fill='%23B34B36'/%3e%3cpath%20d='M66.6955%2058.4029C66.6955%2058.4029%2065.5081%2049.147%2063.7253%2048.0615C61.9425%2046.9759%2057.8852%2043.3641%2056.8142%2044.091C55.7433%2044.8146%2056.1186%2046.4849%2056.8369%2047.4024C57.5552%2048.3199%2061.2469%2051.8381%2061.2469%2051.8381C61.2469%2051.8381%2056.3677%2059.3365%2058.872%2064.8481'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M118.833%2023.1365C116.105%2020.3161%20116.157%2017.247%20116.856%2014.7691C116.862%2014.7432%20116.869%2014.7206%20116.879%2014.6948C117.869%2011.3155%20121.479%209.48044%20124.89%2010.3721C127.465%2011.0473%20130.222%2011.1572%20132.907%2011.1442C136.748%2011.1281%20140.66%2010.9116%20144.364%2011.9261C148.069%2012.9373%20150.829%2014.5397%20151.867%2018.2291C163.078%2023.0557%20156.41%2033.3325%20156.41%2033.3325L150.822%2042.3364L127.381%2038.8182C121.855%2038.1236%20117.882%2033.171%20118.406%2027.6368L118.833%2023.1365Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M123.178%2023.6825C121.062%2022.3709%20120.467%2019.2629%20121.677%2017.0887C122.887%2014.9145%20125.56%2013.774%20128.035%2014.0389C129.484%2014.194%20130.853%2014.7658%20132.257%2015.1568C133.661%2015.5477%20135.205%2015.7512%20136.551%2015.1858C137.893%2014.6205%20138.903%2013.0633%20138.424%2011.687'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M150.725%2040.7211C150.783%2039.2382%20152.158%2037.9847%20153.64%2037.8813C155.122%2037.778%20156.574%2038.7116%20157.273%2040.0201C157.972%2041.3285%20157.975%2042.9438%20157.474%2044.3395C157.115%2045.3377%20156.487%2046.265%20155.594%2046.84C154.384%2047.6154%20152.792%2047.6541%20151.449%2047.1405C150.107%2046.6268%20149.003%2045.6091%20148.172%2044.4396'%20fill='%23B34B36'/%3e%3cpath%20d='M150.725%2040.7211C150.783%2039.2382%20152.158%2037.9847%20153.64%2037.8813C155.122%2037.778%20156.574%2038.7116%20157.273%2040.0201C157.972%2041.3285%20157.975%2042.9438%20157.474%2044.3395C157.115%2045.3377%20156.487%2046.265%20155.594%2046.84C154.384%2047.6154%20152.792%2047.6541%20151.449%2047.1405C150.107%2046.6268%20149.003%2045.6091%20148.172%2044.4396'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M120.641%2036.9443C120.951%2035.4937%20119.932%2033.9365%20118.521%2033.4713C117.111%2033.0061%20115.474%2033.5489%20114.471%2034.6441C113.468%2035.7393%20113.066%2037.3029%20113.205%2038.7793C113.306%2039.8358%20113.684%2040.889%20114.406%2041.6643C115.386%2042.7143%20116.92%2043.1472%20118.347%2042.9792C119.774%2042.8112%20121.097%2042.1005%20122.194%2041.1733'%20fill='%23B34B36'/%3e%3cpath%20d='M120.641%2036.9443C120.951%2035.4937%20119.932%2033.9365%20118.521%2033.4713C117.111%2033.0061%20115.474%2033.5489%20114.471%2034.6441C113.468%2035.7393%20113.066%2037.3029%20113.205%2038.7793C113.306%2039.8358%20113.684%2040.889%20114.406%2041.6643C115.386%2042.7143%20116.92%2043.1472%20118.347%2042.9792C119.774%2042.8112%20121.097%2042.1005%20122.194%2041.1733'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M153.317%2064.6669H152.567C148.937%2064.6669%20145.995%2061.727%20145.995%2058.1054V49.3535H125.097V58.1054C125.097%2061.7302%20122.153%2064.6669%20118.526%2064.6669H117.775L135.516%2080.7977L153.324%2064.6669H153.317Z'%20fill='%23B34B36'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M118.293%2043.2381L122.273%2052.6361C122.668%2053.5666%20121.982%2054.5971%20120.972%2054.5971H113.013C112%2054.5971%20111.317%2053.5666%20111.712%2052.6361L115.692%2043.2381C116.177%2042.088%20117.808%2042.088%20118.296%2043.2381H118.293Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M155.138%2047.7447L159.535%2056.9553C159.972%2057.8664%20159.334%2058.926%20158.322%2058.9713L150.372%2059.3266C149.362%2059.3719%20148.631%2058.3736%20148.984%2057.427L152.537%2047.861C152.97%2046.6914%20154.601%2046.6171%20155.138%2047.7447Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M125.543%2056.5576L125.096%2056.1828V53.0781H145.926V56.1828L145.574%2056.48C143.063%2058.609%20139.918%2059.8658%20136.628%2060.0079C135.741%2060.0467%20134.851%2060.0402%20133.968%2059.9853C130.868%2059.7947%20127.924%2058.5477%20125.543%2056.5543V56.5576Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M147.713%2022.2967C141.423%2025.2624%20134.202%2026.2381%20127.355%2024.9911C126.158%2024.7746%20124.919%2024.4354%20123.777%2023.9379C121.457%2026.923%20119.833%2030.7158%20119.296%2034.9674C117.921%2045.9%20124.24%2055.6954%20133.416%2056.8456C142.588%2057.9957%20151.143%2050.0676%20152.518%2039.135C153.346%2032.567%20151.392%2026.4126%20147.71%2022.2935L147.713%2022.2967Z'%20fill='%23B34B36'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M119.625%2020.3711C120.754%2022.2158%20122.595%2023.5275%20124.653%2024.2802'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M132.249%2035.6243C132.444%2034.0771%20131.084%2032.6321%20129.212%2032.397C127.34%2032.1618%20125.664%2033.2254%20125.469%2034.7727C125.274%2036.3199%20126.634%2037.7649%20128.506%2038C130.378%2038.2352%20132.054%2037.1716%20132.249%2035.6243Z'%20fill='white'/%3e%3cpath%20d='M130.497%2041.3389C130.497%2041.3389%20128.646%2044.9152%20133.943%2045.5775C139.239%2046.243%20138.084%2042.2887%20138.084%2042.2887'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M125.459%2034.7669C125.459%2034.7669%20125.812%2031.9659%20129.199%2032.3923C132.587%2032.8188%20132.234%2035.6198%20132.234%2035.6198'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M127.726%2036.9931C128.968%2036.9931%20129.975%2035.9878%20129.975%2034.7478C129.975%2033.5077%20128.968%2032.5024%20127.726%2032.5024C126.484%2032.5024%20125.478%2033.5077%20125.478%2034.7478C125.478%2035.9878%20126.484%2036.9931%20127.726%2036.9931Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M123.944%2033.5752C123.944%2033.5752%20125.048%2034.9256%20126.161%2034.7609L123.944%2033.5752Z'%20fill='%2300112C'/%3e%3cpath%20d='M123.944%2033.5752C123.944%2033.5752%20125.048%2034.9256%20126.161%2034.7609'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M146.765%2036.4375C146.765%2036.4375%20145.361%2037.4713%20144.325%2037.0384L146.765%2036.4375Z'%20fill='%2300112C'/%3e%3cpath%20d='M146.765%2036.4375C146.765%2036.4375%20145.361%2037.4713%20144.325%2037.0384'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M144.949%2037.2181C145.144%2035.6708%20143.785%2034.2259%20141.912%2033.9907C140.04%2033.7555%20138.364%2034.8192%20138.169%2036.3664C137.974%2037.9137%20139.334%2039.3586%20141.206%2039.5938C143.079%2039.829%20144.754%2038.7653%20144.949%2037.2181Z'%20fill='white'/%3e%3cpath%20d='M138.158%2036.3631C138.158%2036.3631%20138.511%2033.5621%20141.898%2033.9885C145.286%2034.415%20144.933%2037.216%20144.933%2037.216'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M133.784%2046.9853C130.581%2046.5847%20129.06%2048.1031%20129.06%2048.1031C129.06%2048.1031%20128.801%2051.6859%20133.263%2052.2448C137.725%2052.8037%20138.013%2049.3437%20138.013%2049.3437C138.013%2049.3437%20137.223%2047.415%20133.787%2046.982L133.784%2046.9853Z'%20fill='%2389382B'/%3e%3cpath%20d='M128.361%2047.7129C131.526%2049.6093%20135.334%2050.123%20138.89%2049.1344L139.136%2049.0665'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M125.485%2029.0653C126.695%2028.4838%20128.089%2028.2996%20129.41%2028.5419C130.73%2028.7842%20131.966%2029.453%20132.891%2030.4254'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.984%2030.8031C145.114%2029.7854%20143.913%2029.052%20142.606%2028.7419C141.302%2028.4318%20139.898%2028.5448%20138.662%2029.0585'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M140.583%2038.6054C141.825%2038.6054%20142.831%2037.6001%20142.831%2036.3601C142.831%2035.12%20141.825%2034.1147%20140.583%2034.1147C139.341%2034.1147%20138.334%2035.12%20138.334%2036.3601C138.334%2037.6001%20139.341%2038.6054%20140.583%2038.6054Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M154.285%2023.02C154.285%2023.02%20156.686%2025.33%20155.223%2030.8027'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M124.708%2064.8447C123.245%2064.1016%20121.679%2063.6009%20120.055%2063.3586C115.723%2062.7124%20107.294%2066.8121%20100.011%2070.9603C89.8645%2076.74%2080.3262%2090.0019%2080.3262%2090.0019L69.607%2069.8328C69.2187%2069.1059%2068.2222%2068.9929%2067.6851%2069.6164C64.3784%2073.4447%2054.9081%2084.5744%2055.1475%2086.2447C55.4355%2088.2671%2067.3033%20128.437%2081.1966%20120.348C95.0899%20112.258%20106.087%20102.718%20106.087%20102.718L107.951%20131.494H138.119C138.119%20131.494%20138.216%2078.9821%20138.216%2077.538C138.216%2076.4137%20128.843%2066.9414%20124.704%2064.8414L124.708%2064.8447Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M152.566%2064.6665L138.217%2077.5408L138.12%20131.496H169.899V104.359L185.84%20131.496H211.297C211.297%20131.496%20193.473%2089.0323%20179.767%2074.2487C172.503%2066.4111%20152.566%2064.6665%20152.566%2064.6665Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.9987%201H13.3003V49.1274H15.9987V1Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13%2024.6216L1%2024.6216'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.75'%20d='M80.2651%201.22607H16.0015V49.3535H80.2651V1.22607Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M80.2651%201H16.0015V49.1274H80.2651V1Z'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.8433%2025.0622C29.8433%2023.8378%2030.8398%2022.8428%2032.0661%2022.8428C33.2923%2022.8428%2034.2889%2023.8378%2034.2889%2025.0622C34.2889%2026.2867%2033.2923%2027.2817%2032.0661%2027.2817C30.8398%2027.2817%2029.8433%2026.2867%2029.8433%2025.0622Z'%20fill='%23F7F8F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M64.1984%2027.2817C65.426%2027.2817%2066.4212%2026.288%2066.4212%2025.0622C66.4212%2023.8365%2065.426%2022.8428%2064.1984%2022.8428C62.9708%2022.8428%2061.9756%2023.8365%2061.9756%2025.0622C61.9756%2026.288%2062.9708%2027.2817%2064.1984%2027.2817Z'%20fill='%23F7F8F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M48.1344%2027.2817C49.362%2027.2817%2050.3572%2026.288%2050.3572%2025.0622C50.3572%2023.8365%2049.362%2022.8428%2048.1344%2022.8428C46.9068%2022.8428%2045.9116%2023.8365%2045.9116%2025.0622C45.9116%2026.288%2046.9068%2027.2817%2048.1344%2027.2817Z'%20fill='%23F7F8F9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.75'%20d='M226.125%20106.581V46.6392H181.1V106.581H226.125Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M180.99%2046.6392H178.469V106.581H180.99V46.6392Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M253%2076.6216H226'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M225.866%2046.6392H212.345V60.1402H225.866V46.6392Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M244.779%2027.5757H214.763V57.5467H244.779V27.5757Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M225.499%2043.4868L228.443%2046.4235L236.176%2038.7021'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M220.919%20116.949L216.163%2096.2178L234.832%20106.113L220.919%20116.949Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",lT=({hideTitle:e})=>{const{i18n:t}=Y();return a(V,{children:[a(Fn,{hideTitle:e,titleKey:"capital.needSomeExtraMoney"}),a("div",{className:"adyen-pe-capital-overview__unqualified-state",children:[a("div",{className:"adyen-pe-capital-overview__unqualified-state-img",children:a("img",{srcSet:cT,alt:""})}),a(k,{el:ce.PARAGRAPH,variant:b.BODY,large:!0,children:t.get("capital.youWillSoonQualifyForAFinancialOffer")})]})]})},uT=({dynamicOfferConfig:e,hideTitle:t,onOfferOptionsRequest:n})=>{const{i18n:r}=Y();return a(V,{children:[a(Fn,{hideTitle:t,titleKey:"capital.needSomeExtraMoney"}),a("div",{className:rn.preQualifiedGrant,children:[a(lc,{children:a(k,{variant:b.BODY,children:[r.get("capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part1"),a("strong",{children:r.get("capital.youHaveBeenPrequalifiedForBusinessFinancingUpToX.part2",{values:{amount:r.amount(e.maxAmount.value,e.maxAmount.currency,{minimumFractionDigits:0})}})})]})}),a(he,{className:rn.preQualifiedGrantButton,onClick:n,children:r.get("capital.seeOptions")})]})]})},dT=({hideTitle:e,dynamicOffer:t,skipPreQualifiedIntro:n,onOfferOptionsRequest:r,onFundsRequest:s,onOfferDismiss:o})=>{const[i,c]=F(n?"capitalOffer":"intro"),l=E(()=>{r?r():c("capitalOffer")},[r]),u=y(()=>!n||!!o,[o,n]),h=E(()=>{o?o():c("intro")},[o]);return a(V,{children:i==="intro"?a(uT,{hideTitle:e,dynamicOfferConfig:t,onOfferOptionsRequest:l}):a(dc,{onFundsRequest:s,onOfferDismiss:u?h:void 0,externalDynamicOffersConfig:t})})},hT=({max:e=1,value:t,labels:n,tooltips:r,className:s})=>{const o=y(()=>Et(0,t*100/e,100),[t,e]),i=!!(n!=null&&n.current||n!=null&&n.max),c=(n==null?void 0:n.ariaLabel)??(n!=null&&n.current?`${n.current}: ${t}`:`${t}/${e}`);return a("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":e,"aria-valuetext":`${o}%`,"aria-label":c,className:x("adyen-pe-progress-bar",s),children:[a("div",{className:"adyen-pe-progress-bar__track",children:[a("div",{className:"adyen-pe-progress-bar__track-background"}),a(kl,{tooltipContent:r==null?void 0:r.progress,title:n==null?void 0:n.current,percentage:o,className:"adyen-pe-progress-bar__track-fill"}),a(kl,{tooltipContent:r==null?void 0:r.remaining,title:n==null?void 0:n.max,percentage:100-o,className:"adyen-pe-progress-bar__track-remaining"})]}),i&&a("div",{className:"adyen-pe-progress-bar__legend","aria-hidden":"true",children:[n.current&&a(k,{el:ce.SPAN,variant:b.CAPTION,className:"adyen-pe-progress-bar__legend-label",children:n.current}),n.max&&a(k,{el:ce.SPAN,variant:b.CAPTION,className:"adyen-pe-progress-bar__legend-label",children:n.max})]})]})},kl=({tooltipContent:e,title:t,percentage:n,className:r})=>{const s=o=>a("div",{className:r,title:o,style:{width:`${n}%`}});return e?a(fn,{content:e,children:s()}):s(t)},Mt={base:"adyen-pe-grant-item",alert:"adyen-pe-grant-item__alert",cardContent:"adyen-pe-grant-item__card-content",grantID:"adyen-pe-grant-item__grant-id",progressBar:"adyen-pe-grant-item__progress-bar",statusContainer:"adyen-pe-grant-item__status-container",textSecondary:"adyen-pe-grant-item__text--secondary"},fT=e=>e==="Active",mT=e=>e==="Repaid",pT=e=>e==="Active"?"capital.remaining":"capital.requestedFunds",_T=e=>e.status==="Active"?e.remainingTotalAmount:e.grantAmount,gT=({status:e,missingActions:t})=>{switch(e){case"Active":return;case"Failed":return"capital.failed";case"Pending":return t&&t.length?"capital.actionNeeded":"capital.pending";case"Repaid":return"capital.fullyRepaid";case"Revoked":return"capital.revoked";case"WrittenOff":return"capital.writtenOff"}},yT=({status:e,missingActions:t})=>{switch(e){case"Failed":return Te.ERROR;case"Pending":return t!=null&&t.length?Te.WARNING:Te.DEFAULT;case"Repaid":return Te.LIGHT;case"Revoked":case"WrittenOff":return Te.WARNING;default:return Te.DEFAULT}},TT=e=>{const t=new Date,n=new Date;return n.setDate(t.getDate()+e),n},AT=e=>{var n,r;const t=((n=e.missingActions)==null?void 0:n.some(s=>s.type==="signToS"))||!1;switch(e.status){case"Pending":return(r=e.missingActions)!=null&&r.length?t?"capital.signTheTermsToReceiveYourFunds":void 0:"capital.youShouldGetTheFundsWithinOneBusinessDay";case"Failed":return"capital.weCouldNotProcessThisRequestTryAgain";case"WrittenOff":return"capital.youAcceptedTheseFundsButDidNotRepayThem";case"Revoked":return"capital.youAcceptedButThenReturnedTheseFunds";default:return}},ET=e=>{const t=e.status==="Active",n=e.status==="Pending";return{amount:_T(e),amountLabelKey:pT(e.status),hasAlerts:n,hasDetails:fT(e.status),isAmountColorSecondary:!t,isBackgroundFilled:mT(e.status),isGrantIdVisible:!t,isLabelColorSecondary:t,isProgressBarVisible:t,repaymentPeriodEndDate:TT(e.repaymentPeriodLeft),statusKey:gT(e),statusTagVariant:yT(e),statusTooltipKey:AT(e)}},jr={base:"adyen-pe-grant-details",content:"adyen-pe-grant-details__content",header:"adyen-pe-grant-details__header",label:"adyen-pe-grant-details__label"},CT=({grant:e})=>{const{i18n:t}=Y(),n=E(s=>t.amount(s.value,s.currency),[t]),r=y(()=>{const s=e.maximumRepaymentPeriodDays?Math.ceil(e.maximumRepaymentPeriodDays/30):null,o=[{key:"capital.remainingAmount",value:t.amount(e.remainingGrantAmount.value,e.remainingGrantAmount.currency)},{key:"capital.remainingFees",value:n(e.remainingFeesAmount)},{key:"capital.repaidAmount",value:n(e.repaidGrantAmount)},{key:"capital.repaidFees",value:n(e.repaidFeesAmount)},{key:"capital.dailyRepaymentRate",value:`${t.get("capital.xPercent",{values:{percentage:uc(e.repaymentRate)}})}`},{key:"capital.expectedRepaymentPeriod",value:t.get("capital.daysAndDaysLeft",{values:{days:e.expectedRepaymentPeriodDays,daysLeft:e.repaymentPeriodLeft}})},{key:"capital.totalFees",value:n(e.feesAmount)},{key:"capital.totalRepaymentAmount",value:n(e.totalAmount)},{key:"capital.repaymentThreshold",value:n(e.thresholdAmount)},{key:"capital.grantID",value:e.id},{key:"accountDescription",value:e.balanceAccountDescription},{key:"accountID",value:e.balanceAccountCode}];return s&&o.splice(5,0,{key:"capital.maximumRepaymentPeriod",value:t.get("capital.xMonths",{values:{months:s}})}),o},[e,n,t]);return a("div",{className:jr.base,children:a("div",{className:jr.content,children:[a("div",{className:jr.header,children:[a(k,{el:ce.SPAN,variant:b.BODY,children:t.get("capital.yourRequestedFundsWere")}),a(k,{el:ce.SPAN,variant:b.BODY,strongest:!0,children:t.amount(e.grantAmount.value,e.grantAmount.currency)})]}),a(kn,{renderLabel:(s,o)=>o==="capital.repaymentThreshold"?a(fn,{isContainerHovered:!0,content:t.get("capital.minimumRepaymentToRepayTheFinancingOnTime",{values:{days:Co}}),children:a("span",{children:a(k,{className:jr.label,el:ce.SPAN,variant:b.CAPTION,children:s})})}):a(k,{className:jr.label,el:ce.SPAN,variant:b.CAPTION,children:s}),renderValue:s=>a(k,{el:ce.SPAN,stronger:!0,variant:b.CAPTION,children:s}),items:r})]})})},Pl={button:"adyen-pe-grant-action__button"},NT=()=>{var e;return((e=window.top)==null?void 0:e.location.href)||window.location.href},ST=e=>{window.top?window.top.location.href=e:window.location.href=e},vT=({action:e,className:t,offerExpiresAt:n})=>{const{i18n:r,updateCore:s}=Y(),{dateFormat:o}=Xt(),{signToSActionDetails:i}=Ce().endpoints,[c,l]=F(!1),u=E(async()=>{if(e.type==="signToS")return i==null?void 0:i($,{query:{redirectUrl:NT(),locale:r.locale}})},[e,r.locale,i]),{data:h,isFetching:d,error:p}=Ct({fetchOptions:y(()=>({enabled:!!i&&c}),[i,c]),queryFn:u});return H(()=>{const f=h==null?void 0:h.url;f&&ST(f)},[h,c]),p?a(un,{className:t,type:ke.CRITICAL,title:r.get("somethingWentWrongTryRefreshingOrComeBackLater"),description:a(he,{className:Pl.button,onClick:s,children:r.get("refresh")})}):a(un,{className:t,type:ke.WARNING,title:`${r.get("capital.signTermsAndConditionsToReceiveFunds")}${n?` ${r.get("capital.thisOfferExpiresOn",{values:{date:o(n,zu)}})}`:""}`,description:a(he,{className:Pl.button,onClick:()=>l(!0),disabled:d,state:d?"loading":void 0,children:r.get("capital.goToTermsAndConditions")})})},OT=({grant:e})=>{const{i18n:t}=Y(),{dateFormat:n}=Xt(),r=y(()=>ET(e),[e]),s=y(()=>{var o,i;return a("div",{className:Mt.cardContent,children:[a("div",{className:Mt.statusContainer,children:[a(k,{variant:b.CAPTION,className:x({[Mt.textSecondary]:r.isLabelColorSecondary}),testId:"grant-amount-label",children:t.get(r.amountLabelKey)}),a("div",{children:e.status==="Active"?a(V,{children:[a(k,{variant:b.CAPTION,el:ce.SPAN,children:t.get("capital.termEnds")}),a(k,{variant:b.CAPTION,stronger:!0,el:ce.SPAN,children:n(r.repaymentPeriodEndDate,zu)})]}):r.statusKey?r.statusTooltipKey?a(fn,{content:t.get(r.statusTooltipKey),children:a("div",{children:a(It,{label:t.get(r.statusKey),variant:r.statusTagVariant})})}):a(It,{label:t.get(r.statusKey),variant:r.statusTagVariant}):null})]}),a(k,{variant:b.TITLE,medium:!0,className:x({[Mt.textSecondary]:r.isAmountColorSecondary}),children:t.amount(r.amount.value,r.amount.currency)}),r.isProgressBarVisible&&a(hT,{className:Mt.progressBar,value:e.repaidTotalAmount.value,max:e.totalAmount.value,labels:{current:t.get("capital.repaid"),max:t.get("capital.remaining")},tooltips:{remaining:`${t.amount(e.remainingTotalAmount.value,e.remainingTotalAmount.currency)} ${(o=t.get("capital.remaining"))==null?void 0:o.toLowerCase()}`,progress:`${t.amount(e.repaidTotalAmount.value,e.repaidTotalAmount.currency)} ${(i=t.get("capital.repaid"))==null?void 0:i.toLowerCase()}`}}),r.isGrantIdVisible?a("div",{className:Mt.grantID,children:a(sr,{textToCopy:e.id,buttonLabel:t.get("capital.grantID"),isHovered:!0,type:"Text"})}):null,r.hasAlerts&&a(V,{children:e.missingActions&&e.missingActions.length?e.missingActions.map(c=>a(vT,{action:c,className:Mt.alert,offerExpiresAt:e.offerExpiresAt},c.type)):a(un,{className:Mt.alert,type:ke.HIGHLIGHT,title:t.get("capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon")})})]})},[t,n,e,r]);return a("div",{className:Mt.base,children:a(oc,{renderHeader:s,filled:r.isBackgroundFilled,inFlow:!0,children:r.hasDetails&&a(CT,{grant:e})})})};function RT(e){const t=e.tabs,{i18n:n}=Y(),r=e.defaultActiveTab?e.tabs.findIndex(u=>u.id===e.defaultActiveTab):0,[s,o]=F(r===-1?0:r),i=G({}),c=E(u=>{const h=i.current[u];h==null||h.focus()},[]),l=y(()=>{const u=t.length,h={[q.ARROW_RIGHT]:()=>c((s+1)%u),[q.ARROW_LEFT]:()=>c((s-1+u)%u),[q.HOME]:()=>c(0),[q.END]:()=>c(u-1)};return d=>{var p;h[d.key]&&(d.preventDefault(),(p=h[d.key])==null||p.call(h))}},[t.length,s,c]);return a("section",{"aria-label":n.get("tabs"),children:[a("div",{className:"adyen-fp-tabs",role:"tablist","aria-orientation":"horizontal",children:t.map((u,h)=>a("button",{id:`tab-id-${u.id}`,name:u.id,className:"adyen-fp-tabs__tab",role:"tab","aria-controls":`panel-id-${u.id}`,"aria-selected":s===h,ref:d=>i.current[h]=d,onKeyDown:l,onClick:h===s?void 0:()=>o(h),onFocus:()=>o(h),tabIndex:s===h?0:-1,disabled:u.disabled,children:a(k,{variant:b.BODY,el:ce.SPAN,stronger:!0,className:"adyen-fp-tabs__tab-content-tab-label",children:n.get(u.label)})},`tab-${u.id}`))}),a("div",{className:"adyen-fp-tabpanel__wrapper",children:t.map((u,h)=>a("section",{className:"adyen-fp-tabpanel__content",id:`panel-id-${u.id}`,hidden:s!==h,role:"tabpanel","aria-labelledby":`tab-id-${u.id}`,children:u.content},`tabpanel-${u.id}`))})]})}const Ai=({grants:e})=>a(ac,{classNames:"adyen-pe-grant-list__items",children:e.map(t=>a("li",{children:a(OT,{grant:t})},t.id))}),bT=({grantList:e,hideTitle:t,newOfferAvailable:n,onNewOfferRequest:r})=>{const{i18n:s}=Y(),[o,i]=y(()=>{const u=[],h=[];return e==null||e.forEach(d=>{d.status==="Active"||d.status==="Pending"?u.push(d):h.push(d)}),[u,h]},[e]),c=y(()=>e.length>1&&o.length&&i.length?"Tabs":"SingleGrant",[o.length,e.length,i.length]),l=y(()=>n&&!o.some(u=>u.status==="Pending"),[o,n]);return a("div",{className:"adyen-pe-grant-list",children:[a("div",{className:"adyen-pe-grant-list__header-container",children:[a(Fn,{hideTitle:t,titleKey:"capital.businessFinancing"}),l?a(he,{onClick:r,className:"adyen-pe-grant-list__offer-button",variant:le.SECONDARY,children:s.get("capital.seeNewOffer")}):null]}),c==="SingleGrant"&&a(Ai,{grants:e}),c==="Tabs"&&a(RT,{tabs:[{label:"capital.inProgress",content:a(Ai,{grants:o}),id:"active"},{label:"capital.closed",content:a(Ai,{grants:i}),id:"inactive"}],defaultActiveTab:"active"})]})},IT=({externalDynamicOffersConfig:e,grantList:t,newOfferAvailable:n,onFundsRequest:r,onOfferDismiss:s})=>{const[o,i]=F(!1),c=E(()=>i(!1),[]),l=E(()=>i(!0),[]),u=E(()=>{s?s(c):c()},[c,s]),h=E(d=>{r(d),i(!1)},[r]);return a(V,{children:o?a(dc,{externalDynamicOffersConfig:e,onFundsRequest:h,onOfferDismiss:u}):a(bT,{grantList:t,newOfferAvailable:n,onNewOfferRequest:l})})},LT=({hideTitle:e,onContactSupport:t,onFundsRequest:n,onOfferDismiss:r,onOfferOptionsRequest:s,skipPreQualifiedIntro:o})=>{var O,L,S;const i=(L=(O=Ce())==null?void 0:O.extraConfig)==null?void 0:L.legalEntity,c=y(()=>cc(i),[i]),{getGrants:l,getDynamicGrantOffersConfiguration:u}=Ce().endpoints,h=Ct({fetchOptions:{enabled:!!l&&c},queryFn:E(async()=>l==null?void 0:l($),[])}),d=Ct({fetchOptions:{enabled:!!u&&c},queryFn:E(async()=>u==null?void 0:u($),[])}),p=d.data,[f,g]=F(),_=y(()=>{var I,N;return f?[f,...((I=h.data)==null?void 0:I.data)||[]]:(N=h.data)==null?void 0:N.data},[(S=h.data)==null?void 0:S.data,f]),A=E(I=>{n?n(I):g(I)},[n]),T=y(()=>!!(d.error&&h.error||d.error&&!(_!=null&&_.length)),[d.error,_==null?void 0:_.length,h.error]),C=y(()=>{if(c){if(T)return"Error";if(!l&&!u||!p&&!_||h.isFetching||d.isFetching)return"Loading";if(_!=null&&_.length)return"GrantList";if(p!=null&&p.maxAmount&&(p!=null&&p.minAmount))return"PreQualified"}else return"UnsupportedRegion";return"Unqualified"},[u,p,d.isFetching,_,l,h.isFetching,T,o,c]),R=y(()=>!!(p&&p.minAmount&&p.maxAmount),[p]);return a("div",{className:rn.base,children:(()=>{switch(C){case"Loading":return a("div",{className:rn.skeletonContainer,children:[a("div",{className:rn.headerSkeleton}),a("div",{className:rn.skeleton})]});case"Error":return a("div",{className:rn.errorContainer,children:[a(Fn,{hideTitle:e,titleKey:"capital.businessFinancing"}),a(qt,{absolutePosition:!1,outlined:!1,withImage:!0,onContactSupport:t,...L0(d.error,t)})]});case"GrantList":return _&&a(IT,{externalDynamicOffersConfig:p,grantList:_,hideTitle:e,newOfferAvailable:R,onFundsRequest:A,onOfferDismiss:r});case"PreQualified":return a(dT,{onOfferDismiss:r,onOfferOptionsRequest:s,skipPreQualifiedIntro:o,hideTitle:e,dynamicOffer:p,onFundsRequest:A});case"Unqualified":return a(lT,{hideTitle:e});case"UnsupportedRegion":return a("div",{className:rn.errorContainer,children:[a(Fn,{hideTitle:e,titleKey:"capital.businessFinancing"}),a(ei,{unsupportedRegion:!0})]});default:return null}})()})};class F0 extends Un{constructor(n){super(n);B(this,"componentToRender",()=>a(LT,{...this.props,ref:n=>void(this.componentRef=n)}));this.customClassNames="adyen-pe-capital-overview-component",this.componentToRender=this.componentToRender.bind(this)}async getState(){var u,h;const{session:n}=this.props.core;await xu(n);const{getDynamicGrantOffersConfiguration:r,getGrants:s}=n.context.endpoints,o=(u=n.context.extraConfig)==null?void 0:u.legalEntity;if(!cc(o))return{state:"isInUnsupportedRegion"};const[i,c]=await Promise.all([r==null?void 0:r($).catch(ne),s==null?void 0:s($).catch(ne)]);let l="isUnqualified";return c&&((h=c.data)==null?void 0:h.length)>0?l="hasRequestedGrants":i&&i.minAmount&&(l="isPreQualified"),{state:l}}}B(F0,"type","capitalOverview");async function DT(e){return await new ca(e).initialize()}exports.AdyenPlatformExperience=DT;exports.CapitalOfferElement=w0;exports.CapitalOverviewElement=F0;exports.Core=ca;exports.PayoutElement=vd;exports.PayoutsElement=g0;exports.ReportsElement=M0;exports.TransactionElement=y0;exports.TransactionsElement=b0;exports.all_locales=sa;exports.da_DK=Jl;exports.de_DE=eu;exports.en_US=co;exports.es_ES=tu;exports.fi_FI=nu;exports.fr_FR=ru;exports.it_IT=su;exports.nl_NL=ou;exports.no_NO=iu;exports.pt_BR=au;exports.sv_SE=cu;exports.u=a;
12
+ //# sourceMappingURL=index-BU9H-9Gn.cjs.map