@adyen/adyen-platform-experience-web 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/angle-right-1899f206.cjs +2 -0
- package/dist/angle-right-1899f206.cjs.map +1 -0
- package/dist/checkmark-9399af30.cjs +2 -0
- package/dist/checkmark-9399af30.cjs.map +1 -0
- package/dist/checkmark-circle-fill-edd7d360.cjs +2 -0
- package/dist/checkmark-circle-fill-edd7d360.cjs.map +1 -0
- package/dist/checkmark-square-fill-4f33ffa1.cjs +2 -0
- package/dist/checkmark-square-fill-4f33ffa1.cjs.map +1 -0
- package/dist/chevron-down-2eec7c98.cjs +2 -0
- package/dist/chevron-down-2eec7c98.cjs.map +1 -0
- package/dist/chevron-left-20950420.cjs +2 -0
- package/dist/chevron-left-20950420.cjs.map +1 -0
- package/dist/chevron-right-a975d4ef.cjs +2 -0
- package/dist/chevron-right-a975d4ef.cjs.map +1 -0
- package/dist/chevron-up-ad09fd0d.cjs +2 -0
- package/dist/chevron-up-ad09fd0d.cjs.map +1 -0
- package/dist/cjs/index.js +1 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/copy-969cde48.cjs +2 -0
- package/dist/copy-969cde48.cjs.map +1 -0
- package/dist/cross-6133edca.cjs +2 -0
- package/dist/cross-6133edca.cjs.map +1 -0
- package/dist/cross-circle-fill-afd9ea6e.cjs +2 -0
- package/dist/cross-circle-fill-afd9ea6e.cjs.map +1 -0
- package/dist/da-DK-a6a8435e.cjs +2 -0
- package/dist/da-DK-a6a8435e.cjs.map +1 -0
- package/dist/de-DE-d692ac19.cjs +2 -0
- package/dist/de-DE-d692ac19.cjs.map +1 -0
- package/dist/download-ffe5624f.cjs +2 -0
- package/dist/download-ffe5624f.cjs.map +1 -0
- package/dist/es/components/constants.js +4 -0
- package/dist/es/components/external/BaseElement.js +3 -12
- package/dist/es/components/external/CapitalOffer/CapitalOfferElement.js +19 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +66 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/constants.js +6 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +147 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.scss.js +4 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +185 -0
- package/dist/es/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.js +34 -0
- package/dist/es/components/external/CapitalOffer/components/utils/utils.js +19 -0
- package/dist/es/components/external/CapitalOverview/CapitalOverviewElement.js +32 -0
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +104 -0
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.scss.js +4 -0
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +65 -0
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.scss.js +4 -0
- package/dist/es/components/external/CapitalOverview/components/GrantAction/constants.js +6 -0
- package/dist/es/components/external/CapitalOverview/components/GrantAction/utils.js +10 -0
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +84 -0
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.scss.js +4 -0
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/constants.js +9 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +89 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.scss.js +4 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/constants.js +13 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +70 -0
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +33 -0
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.scss.js +4 -0
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +45 -0
- package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +23 -0
- package/dist/es/components/external/CapitalOverview/components/PreQualifiedIntro.js +33 -0
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +20 -0
- package/dist/es/components/external/CapitalOverview/constants.js +13 -0
- package/dist/es/components/external/PayoutDetails/PayoutDetails.js +5 -9
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +90 -181
- package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +12 -9
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +96 -118
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverviewContainer/PayoutsOverviewContainer.js +15 -23
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +44 -86
- package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +13 -10
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +67 -86
- package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +15 -23
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +88 -119
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +12 -9
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +8 -0
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.scss.js +4 -0
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +187 -0
- package/dist/es/components/external/TransactionDetails/components/constants.js +44 -0
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +53 -0
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.js +7 -0
- package/dist/es/components/external/TransactionDetails/components/details/TransactionStatusBox.js +53 -0
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +98 -0
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +19 -0
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +41 -0
- package/dist/es/components/external/TransactionDetails/components/utils.js +32 -0
- package/dist/es/components/external/TransactionDetails/context/constants.js +4 -0
- package/dist/es/components/external/TransactionDetails/context/details/context.js +92 -0
- package/dist/es/components/external/TransactionDetails/context/refund/context.js +85 -0
- package/dist/es/components/external/TransactionDetails/context/refund/helpers.js +18 -0
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundAction.js +52 -0
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextActions.js +40 -0
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.js +32 -0
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +41 -0
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextReason.js +17 -0
- package/dist/es/components/external/TransactionDetails/context/types.js +8 -0
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +41 -0
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +46 -0
- package/dist/es/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/helpers.js +10 -0
- package/dist/es/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js +126 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +12 -9
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +4 -16
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +34 -35
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +34 -60
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +7 -23
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +26 -21
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -1
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +14 -19
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +1 -4
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +29 -56
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +13 -22
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +28 -23
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +35 -35
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +49 -80
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +206 -237
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +15 -23
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +18 -29
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +57 -104
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +8 -6
- package/dist/es/components/external/UIElement/UIElement.js +24 -28
- package/dist/es/components/internal/Accordion/Accordion.js +32 -44
- package/dist/es/components/internal/Alert/Alert.js +29 -59
- package/dist/es/components/internal/Alert/AlertIcon.js +19 -0
- package/dist/es/components/internal/Alert/types.js +3 -2
- package/dist/es/components/internal/BaseButton/BaseButton.js +16 -30
- package/dist/es/components/internal/BaseList/BaseList.js +5 -9
- package/dist/es/components/internal/Button/Button.js +55 -56
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +24 -29
- package/dist/es/components/internal/Button/ButtonActions/types.js +1 -4
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +24 -54
- package/dist/es/components/internal/Button/DownloadButton/useDownload.js +3 -8
- package/dist/es/components/internal/Button/constants.js +9 -6
- package/dist/es/components/internal/Button/hooks/useButton.js +12 -9
- package/dist/es/components/internal/Button/types.js +1 -1
- package/dist/es/components/internal/Calendar/Calendar.js +15 -16
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +123 -108
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +13 -40
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +18 -17
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +29 -44
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +25 -37
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +9 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +9 -13
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +2 -11
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +10 -18
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +1 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +1 -3
- package/dist/es/components/internal/Calendar/calendar/utils.js +2 -11
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +3 -11
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +19 -46
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +39 -53
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +31 -45
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +12 -26
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +69 -64
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +38 -33
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +13 -29
- package/dist/es/components/internal/CapitalHeader/CapitalHeader.js +6 -0
- package/dist/es/components/internal/CapitalSlider/CapitalSlider.js +57 -0
- package/dist/es/components/internal/CapitalSlider/CapitalSlider.scss.js +4 -0
- package/dist/es/components/internal/Card/Card.js +41 -39
- package/dist/es/components/internal/Card/constants.js +3 -2
- package/dist/es/components/internal/CopyText/CopyText.js +73 -33
- package/dist/es/components/internal/DataGrid/DataGrid.js +66 -102
- package/dist/es/components/internal/DataGrid/DataGridCell.js +25 -26
- package/dist/es/components/internal/DataGrid/components/Icon.js +2 -13
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +14 -22
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +14 -24
- package/dist/es/components/internal/DataGrid/components/TableBody.js +9 -14
- package/dist/es/components/internal/DataGrid/components/TableCells.js +20 -48
- package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +16 -23
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +68 -75
- package/dist/es/components/internal/DataGrid/utils/DataGridProvider.js +19 -24
- package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +15 -15
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +60 -80
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetailsSkeleton.js +14 -0
- package/dist/es/components/internal/DataOverviewDetails/constants.js +8 -0
- package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +18 -0
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +20 -21
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +10 -36
- package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +16 -13
- package/dist/es/components/internal/DatePicker/DatePicker.js +36 -54
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +18 -27
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +26 -22
- package/dist/es/components/internal/Divider/Divider.js +8 -0
- package/dist/es/components/internal/Divider/Divider.scss.js +4 -0
- package/dist/es/components/internal/Divider/constants.js +6 -0
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +61 -66
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +38 -63
- package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.js +34 -0
- package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.scss.js +4 -0
- package/dist/es/components/internal/ExpandableContainer/constants.js +8 -0
- package/dist/es/components/internal/FilterBar/FilterBar.js +33 -44
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +6 -27
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +49 -54
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +55 -65
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +109 -102
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +48 -44
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +69 -86
- package/dist/es/components/internal/FormFields/InputBase.js +61 -70
- package/dist/es/components/internal/FormFields/InputText.js +5 -11
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +35 -32
- package/dist/es/components/internal/FormFields/Select/Select.js +162 -155
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +61 -81
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +61 -66
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +35 -55
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +31 -30
- package/dist/es/components/internal/Header/Header.js +21 -0
- package/dist/es/components/internal/Header/Header.scss.js +4 -0
- package/dist/es/components/internal/Icon/Icon.js +36 -0
- package/dist/es/components/internal/Icon/Icon.scss.js +4 -0
- package/dist/es/components/internal/Image/Image.js +8 -21
- package/dist/es/components/internal/Img/Img.js +12 -28
- package/dist/es/components/internal/InfoBox/InfoBox.js +7 -0
- package/dist/es/components/internal/InfoBox/InfoBox.scss.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +74 -60
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +19 -30
- package/dist/es/components/internal/Pagination/Pagination.js +50 -60
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +4 -11
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +5 -12
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +32 -35
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -82
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +1 -7
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +29 -50
- package/dist/es/components/internal/Popover/Popover.js +93 -81
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +20 -27
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +6 -13
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +7 -15
- package/dist/es/components/internal/Popover/utils/utils.js +8 -9
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +56 -0
- package/dist/es/components/internal/ProgressBar/ProgressBar.scss.js +4 -0
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +10 -18
- package/dist/es/components/internal/SVGIcons/Checkmark.js +12 -20
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +12 -20
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +10 -18
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +10 -18
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +12 -20
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +16 -0
- package/dist/es/components/internal/SVGIcons/Download.js +16 -17
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +4 -18
- package/dist/es/components/internal/SVGIcons/Warning.js +17 -19
- package/dist/es/components/internal/Slider/Slider.js +31 -0
- package/dist/es/components/internal/Slider/Slider.scss.js +4 -0
- package/dist/es/components/internal/Slider/calculateProgress.js +13 -0
- package/dist/es/components/internal/Spinner/Spinner.js +2 -10
- package/dist/es/components/internal/StructuredList/StructuredList.js +30 -41
- package/dist/es/components/internal/StructuredList/useStructuredListItem.js +1 -3
- package/dist/es/components/internal/Tabs/Tabs.js +70 -0
- package/dist/es/components/internal/Tabs/Tabs.scss.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +21 -16
- package/dist/es/components/internal/Tag/types.js +2 -2
- package/dist/es/components/internal/Tooltip/Tooltip.js +22 -39
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +11 -8
- package/dist/es/components/internal/Typography/Typography.js +29 -39
- package/dist/es/components/utils/capital/getCapitalErrorMessage.js +63 -0
- package/dist/es/components/utils/getCommonErrorCode.js +5 -8
- package/dist/es/components/utils/getErrorMessage.js +5 -7
- package/dist/es/constants/dateFormats.js +28 -0
- package/dist/es/core/Auth/context.js +32 -23
- package/dist/es/core/Auth/session/AuthSession.js +50 -44
- package/dist/es/core/Auth/session/AuthSessionSpecification.js +30 -39
- package/dist/es/core/Auth/session/AuthSetupContext.js +17 -33
- package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.js +19 -0
- package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.js +13 -0
- package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +10 -0
- package/dist/es/core/Auth/session/utils/sessionReady.js +23 -0
- package/dist/es/core/Context/CoreProvider.js +12 -21
- package/dist/es/core/Http/http.js +18 -24
- package/dist/es/core/Http/utils.js +21 -26
- package/dist/es/core/Localization/Localization.js +6 -18
- package/dist/es/core/Localization/constants/localization.js +5 -5
- package/dist/es/core/Localization/datetime/restamper/constants.js +2 -12
- package/dist/es/core/Localization/datetime/restamper/restamper.js +5 -18
- package/dist/es/core/Localization/datetime/restamper/utils.js +1 -4
- package/dist/es/core/Localization/localization-utils.js +3 -11
- package/dist/es/core/Localization/utils.js +1 -4
- package/dist/es/core/core.js +4 -12
- package/dist/es/external/preact/compat/dist/compat.module.js +132 -127
- package/dist/es/external/preact/dist/preact.module.js +197 -178
- package/dist/es/external/preact/hooks/dist/hooks.module.js +104 -104
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +11 -11
- package/dist/es/hooks/element/useClickOutside.js +27 -18
- package/dist/es/hooks/element/useDetachedRender.js +13 -10
- package/dist/es/hooks/element/useFocusCursor.js +19 -11
- package/dist/es/hooks/element/useFocusTrap.js +7 -4
- package/dist/es/hooks/element/usePopoverPositioner.js +87 -64
- package/dist/es/hooks/element/useUniqueIdentifier.js +10 -4
- package/dist/es/hooks/useBalanceAccountSelection.js +18 -0
- package/dist/es/hooks/useBalanceAccounts.js +25 -0
- package/dist/es/hooks/{useBooleanState/useBooleanState.js → useBooleanState.js} +1 -1
- package/dist/es/hooks/useCommitAction/useCommitAction.js +21 -27
- package/dist/es/hooks/useCustomColumnsData.js +26 -0
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +25 -0
- package/dist/es/hooks/useFetch.js +41 -0
- package/dist/es/{components/hooks → hooks}/useFreezePeriod.js +4 -7
- package/dist/es/hooks/useImageUrl.js +28 -0
- package/dist/es/hooks/{useMediaQuery/useMediaQuery.js → useMediaQuery.js} +1 -1
- package/dist/es/hooks/useModalDetails/useModalDetails.js +17 -17
- package/dist/es/hooks/{useMounted/useMounted.js → useMounted.js} +1 -1
- package/dist/es/hooks/useMutation/useMutation.js +59 -0
- package/dist/es/hooks/useReactiveState/useReactiveState.js +23 -35
- package/dist/es/hooks/{useReflex/useReflex.js → useReflex.js} +2 -2
- package/dist/es/{components/hooks → hooks}/useResponsiveViewport.js +2 -2
- package/dist/es/hooks/useTableColumns.js +28 -0
- package/dist/es/hooks/useTimezoneAwareDateFormatting.js +37 -0
- package/dist/es/images/generic-use-first-touch.svg.js +4 -0
- package/dist/es/images/icons/angle-right.svg.js +6 -0
- package/dist/es/images/icons/checkmark-circle-fill.svg.js +9 -0
- package/dist/es/images/icons/checkmark-square-fill.svg.js +6 -0
- package/dist/es/images/icons/checkmark.svg.js +6 -0
- package/dist/es/images/icons/chevron-down.svg.js +6 -0
- package/dist/es/images/icons/chevron-left.svg.js +6 -0
- package/dist/es/images/icons/chevron-right.svg.js +6 -0
- package/dist/es/images/icons/chevron-up.svg.js +6 -0
- package/dist/es/images/icons/copy.svg.js +6 -0
- package/dist/es/images/icons/cross-circle-fill.svg.js +9 -0
- package/dist/es/images/icons/cross.svg.js +6 -0
- package/dist/es/images/icons/download.svg.js +9 -0
- package/dist/es/images/icons/filter.svg.js +6 -0
- package/dist/es/images/icons/info-filled.svg.js +9 -0
- package/dist/es/images/icons/minus-circle-outline.svg.js +9 -0
- package/dist/es/images/icons/plus-circle-outline.svg.js +9 -0
- package/dist/es/images/icons/square.svg.js +6 -0
- package/dist/es/images/icons/warning-filled.svg.js +6 -0
- package/dist/es/images/icons/warning.svg.js +9 -0
- package/dist/es/index.js +24 -19
- package/dist/es/primitives/auxiliary/indexed/main.js +22 -18
- package/dist/es/primitives/context/session/SessionContext.js +1 -3
- package/dist/es/primitives/context/session/internal/autofresher.js +1 -3
- package/dist/es/primitives/context/session/internal/refresher.js +6 -4
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +2 -4
- package/dist/es/primitives/reactive/eventEmitter/main.js +19 -11
- package/dist/es/primitives/reactive/reflex/helpers.js +16 -12
- package/dist/es/primitives/reactive/reflex/main.js +19 -33
- package/dist/es/primitives/reactive/reflex/register.js +17 -23
- package/dist/es/primitives/reactive/watchlist/helpers.js +8 -12
- package/dist/es/primitives/reactive/watchlist/main.js +5 -4
- package/dist/es/primitives/time/clock/main.js +1 -6
- package/dist/es/primitives/time/interval/main.js +1 -1
- package/dist/es/primitives/time/today/main.js +2 -9
- package/dist/es/translations/da-DK.json.js +1 -1
- package/dist/es/translations/de-DE.json.js +1 -1
- package/dist/es/translations/en-US.json.js +1 -1
- package/dist/es/translations/es-ES.json.js +1 -1
- package/dist/es/translations/fi-FI.json.js +4 -0
- package/dist/es/translations/fr-FR.json.js +1 -1
- package/dist/es/translations/index.js +16 -38
- package/dist/es/translations/it-IT.json.js +1 -1
- package/dist/es/translations/nl-NL.json.js +1 -1
- package/dist/es/translations/no-NO.json.js +1 -1
- package/dist/es/translations/pt-BR.json.js +1 -1
- package/dist/es/translations/sv-SE.json.js +1 -1
- package/dist/es/utils/abort/main.js +2 -6
- package/dist/es/utils/common.js +4 -5
- package/dist/es/utils/preact/memoComparator/main.js +1 -3
- package/dist/es/utils/random/uniqueId.js +5 -5
- package/dist/es/utils/struct/main.js +1 -5
- package/dist/es-ES-143780e6.cjs +2 -0
- package/dist/es-ES-143780e6.cjs.map +1 -0
- package/dist/fi-FI-99b94b3f.cjs +2 -0
- package/dist/fi-FI-99b94b3f.cjs.map +1 -0
- package/dist/filter-9a3e4c7a.cjs +2 -0
- package/dist/filter-9a3e4c7a.cjs.map +1 -0
- package/dist/fr-FR-e0317359.cjs +2 -0
- package/dist/fr-FR-e0317359.cjs.map +1 -0
- package/dist/index-17716b7b.cjs +12 -0
- package/dist/index-17716b7b.cjs.map +1 -0
- package/dist/info-filled-7e7648a0.cjs +2 -0
- package/dist/info-filled-7e7648a0.cjs.map +1 -0
- package/dist/it-IT-1dc05e46.cjs +2 -0
- package/dist/it-IT-1dc05e46.cjs.map +1 -0
- package/dist/minus-circle-outline-0f20287b.cjs +2 -0
- package/dist/minus-circle-outline-0f20287b.cjs.map +1 -0
- package/dist/nl-NL-40171335.cjs +2 -0
- package/dist/nl-NL-40171335.cjs.map +1 -0
- package/dist/no-NO-d689e9ff.cjs +2 -0
- package/dist/no-NO-d689e9ff.cjs.map +1 -0
- package/dist/plus-circle-outline-58879e3c.cjs +2 -0
- package/dist/plus-circle-outline-58879e3c.cjs.map +1 -0
- package/dist/pt-BR-4b1fd7f1.cjs +2 -0
- package/dist/pt-BR-4b1fd7f1.cjs.map +1 -0
- package/dist/square-a26e52f2.cjs +2 -0
- package/dist/square-a26e52f2.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/sv-SE-2f0e50d2.cjs +2 -0
- package/dist/sv-SE-2f0e50d2.cjs.map +1 -0
- package/dist/types/components/constants.d.ts +2 -0
- package/dist/types/components/constants.d.ts.map +1 -0
- package/dist/types/components/external/BaseElement.d.ts +2 -2
- package/dist/types/components/external/BaseElement.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/CapitalOfferElement.d.ts +10 -0
- package/dist/types/components/external/CapitalOffer/CapitalOfferElement.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts +5 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts +4 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.d.ts +14 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts +9 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts +8 -0
- package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +10 -0
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/index.d.ts +2 -0
- package/dist/types/components/external/CapitalOffer/index.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/types.d.ts +9 -0
- package/dist/types/components/external/CapitalOffer/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/CapitalOverviewElement.d.ts +11 -0
- package/dist/types/components/external/CapitalOverview/CapitalOverviewElement.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.d.ts +6 -0
- package/dist/types/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/constants.d.ts +4 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts +7 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/utils.d.ts +13 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAction/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/GrantDetails.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/GrantDetails.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/constants.d.ts +7 -0
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/types.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts +11 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts +23 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantList.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantList.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantsDisplay.d.ts +4 -0
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantsDisplay.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts +16 -0
- package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/PreQualified/PreQualified.d.ts +12 -0
- package/dist/types/components/external/CapitalOverview/components/PreQualified/PreQualified.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts +8 -0
- package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/Unqualified.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/Unqualified.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/constants.d.ts +11 -0
- package/dist/types/components/external/CapitalOverview/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/index.d.ts +2 -0
- package/dist/types/components/external/CapitalOverview/index.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/types.d.ts +11 -0
- package/dist/types/components/external/CapitalOverview/types.d.ts.map +1 -0
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts +2 -2
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts +2 -2
- package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +2 -2
- package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts +3 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts +11 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData/index.d.ts +2 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/constants.d.ts +28 -0
- package/dist/types/components/external/TransactionDetails/components/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/details/TransactionDataProperties.d.ts +3 -0
- package/dist/types/components/external/TransactionDetails/components/details/TransactionDataProperties.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.d.ts +6 -0
- package/dist/types/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/details/TransactionStatusBox.d.ts +8 -0
- package/dist/types/components/external/TransactionDetails/components/details/TransactionStatusBox.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundAmount.d.ts +6 -0
- package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundAmount.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundNotice.d.ts +3 -0
- package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundNotice.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundReason.d.ts +3 -0
- package/dist/types/components/external/TransactionDetails/components/refund/TransactionRefundReason.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/utils.d.ts +9 -0
- package/dist/types/components/external/TransactionDetails/components/utils.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/constants.d.ts +3 -0
- package/dist/types/components/external/TransactionDetails/context/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/details/context.d.ts +5 -0
- package/dist/types/components/external/TransactionDetails/context/details/context.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/details/index.d.ts +4 -0
- package/dist/types/components/external/TransactionDetails/context/details/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/details/types.d.ts +16 -0
- package/dist/types/components/external/TransactionDetails/context/details/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/context.d.ts +5 -0
- package/dist/types/components/external/TransactionDetails/context/refund/context.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/helpers.d.ts +3 -0
- package/dist/types/components/external/TransactionDetails/context/refund/helpers.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts +18 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextActions.d.ts +9 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextActions.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.d.ts +8 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.d.ts +29 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextReason.d.ts +5 -0
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundContextReason.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/index.d.ts +4 -0
- package/dist/types/components/external/TransactionDetails/context/refund/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/refund/types.d.ts +30 -0
- package/dist/types/components/external/TransactionDetails/context/refund/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/context/types.d.ts +46 -0
- package/dist/types/components/external/TransactionDetails/context/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/index.d.ts +2 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.d.ts +4 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/types.d.ts +16 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts +73 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/helpers.d.ts +10 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/helpers.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/index.d.ts +2 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.d.ts +25 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/types.d.ts +12 -4
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
- package/dist/types/components/external/UIElement/UIElement.d.ts +4 -3
- package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
- package/dist/types/components/external/index.d.ts +5 -3
- package/dist/types/components/external/index.d.ts.map +1 -1
- package/dist/types/components/internal/Alert/Alert.d.ts +1 -1
- package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -1
- package/dist/types/components/internal/Alert/AlertIcon.d.ts +7 -0
- package/dist/types/components/internal/Alert/AlertIcon.d.ts.map +1 -0
- package/dist/types/components/internal/Alert/types.d.ts +8 -3
- package/dist/types/components/internal/Alert/types.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/types.d.ts +3 -1
- package/dist/types/components/internal/BaseList/types.d.ts.map +1 -1
- package/dist/types/components/internal/Button/Button.d.ts +1 -1
- package/dist/types/components/internal/Button/Button.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts +3 -0
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +162 -6
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/Button/constants.d.ts +3 -0
- package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Button/types.d.ts +5 -1
- package/dist/types/components/internal/Button/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/factory.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.d.ts +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts +5 -0
- package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts.map +1 -0
- package/dist/types/components/internal/CapitalHeader/index.d.ts +3 -0
- package/dist/types/components/internal/CapitalHeader/index.d.ts.map +1 -0
- package/dist/types/components/internal/CapitalSlider/CapitalSlider.d.ts +34 -0
- package/dist/types/components/internal/CapitalSlider/CapitalSlider.d.ts.map +1 -0
- package/dist/types/components/internal/CapitalSlider/index.d.ts +2 -0
- package/dist/types/components/internal/CapitalSlider/index.d.ts.map +1 -0
- package/dist/types/components/internal/Card/Card.d.ts +1 -1
- package/dist/types/components/internal/Card/Card.d.ts.map +1 -1
- package/dist/types/components/internal/Card/constants.d.ts +1 -0
- package/dist/types/components/internal/Card/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Card/types.d.ts +2 -0
- package/dist/types/components/internal/Card/types.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts +6 -2
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -0
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts +4 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetailsSkeleton.d.ts +5 -0
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetailsSkeleton.d.ts.map +1 -0
- package/dist/types/components/internal/DataOverviewDetails/constants.d.ts +6 -0
- package/dist/types/components/internal/DataOverviewDetails/constants.d.ts.map +1 -0
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts +2 -2
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.d.ts +13 -0
- package/dist/types/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.d.ts.map +1 -0
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts +2 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/Divider/Divider.d.ts +5 -0
- package/dist/types/components/internal/Divider/Divider.d.ts.map +1 -0
- package/dist/types/components/internal/Divider/constants.d.ts +4 -0
- package/dist/types/components/internal/Divider/constants.d.ts.map +1 -0
- package/dist/types/components/internal/Divider/types.d.ts +7 -0
- package/dist/types/components/internal/Divider/types.d.ts.map +1 -0
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +4 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts +5 -0
- package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts.map +1 -0
- package/dist/types/components/internal/ExpandableContainer/constants.d.ts +6 -0
- package/dist/types/components/internal/ExpandableContainer/constants.d.ts.map +1 -0
- package/dist/types/components/internal/ExpandableContainer/types.d.ts +7 -0
- package/dist/types/components/internal/ExpandableContainer/types.d.ts.map +1 -0
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts +1 -1
- package/dist/types/components/internal/Header/Header.d.ts +14 -0
- package/dist/types/components/internal/Header/Header.d.ts.map +1 -0
- package/dist/types/components/internal/Header/index.d.ts +3 -0
- package/dist/types/components/internal/Header/index.d.ts.map +1 -0
- package/dist/types/components/internal/Icon/Icon.d.ts +45 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -0
- package/dist/types/components/internal/Icon/index.d.ts +2 -0
- package/dist/types/components/internal/Icon/index.d.ts.map +1 -0
- package/dist/types/components/internal/InfoBox/InfoBox.d.ts +21 -0
- package/dist/types/components/internal/InfoBox/InfoBox.d.ts.map +1 -0
- package/dist/types/components/internal/InfoBox/index.d.ts +2 -0
- package/dist/types/components/internal/InfoBox/index.d.ts.map +1 -0
- package/dist/types/components/internal/Modal/Modal.d.ts +3 -0
- package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
- package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts +1 -1
- package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/ProgressBar/ProgressBar.d.ts +54 -0
- package/dist/types/components/internal/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/types/components/internal/ProgressBar/index.d.ts +2 -0
- package/dist/types/components/internal/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +7 -0
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/Download.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/Warning.d.ts +3 -0
- package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -1
- package/dist/types/components/internal/Slider/Slider.d.ts +45 -0
- package/dist/types/components/internal/Slider/Slider.d.ts.map +1 -0
- package/dist/types/components/internal/Slider/calculateProgress.d.ts +13 -0
- package/dist/types/components/internal/Slider/calculateProgress.d.ts.map +1 -0
- package/dist/types/components/internal/Slider/index.d.ts +2 -0
- package/dist/types/components/internal/Slider/index.d.ts.map +1 -0
- package/dist/types/components/internal/Spinner/Spinner.d.ts +2 -2
- package/dist/types/components/internal/Spinner/Spinner.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/StructuredList.d.ts +2 -2
- package/dist/types/components/internal/StructuredList/StructuredList.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/types.d.ts +7 -9
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +4 -8
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Tabs/Tabs.d.ts +5 -0
- package/dist/types/components/internal/Tabs/Tabs.d.ts.map +1 -0
- package/dist/types/components/internal/Tabs/types.d.ts +15 -0
- package/dist/types/components/internal/Tabs/types.d.ts.map +1 -0
- package/dist/types/components/internal/Tag/Tag.d.ts.map +1 -1
- package/dist/types/components/internal/Tag/types.d.ts +4 -1
- package/dist/types/components/internal/Tag/types.d.ts.map +1 -1
- package/dist/types/components/internal/Typography/Typography.d.ts +2 -1
- package/dist/types/components/internal/Typography/Typography.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/capital/getCapitalErrorMessage.d.ts +10 -0
- package/dist/types/components/utils/capital/getCapitalErrorMessage.d.ts.map +1 -0
- package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
- package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
- package/dist/types/components/utils/getLabel.d.ts +1 -1
- package/dist/types/{components/internal/DataOverviewDisplay/constants.d.ts → constants/dateFormats.d.ts} +2 -1
- package/dist/types/constants/dateFormats.d.ts.map +1 -0
- package/dist/types/{constants.d.ts → constants/index.d.ts} +2 -1
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/core/Auth/context.d.ts +400 -43
- package/dist/types/core/Auth/context.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSession.d.ts +1067 -45
- package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts +396 -39
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts +5 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts.map +1 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts +4 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts.map +1 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/index.d.ts +4 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/index.d.ts.map +1 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts +5 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts.map +1 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/types.d.ts +5 -0
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/types.d.ts.map +1 -0
- package/dist/types/core/Auth/session/utils/sessionReady.d.ts +4 -0
- package/dist/types/core/Auth/session/utils/sessionReady.d.ts.map +1 -0
- package/dist/types/core/Auth/types.d.ts +21 -1
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Http/http.d.ts +2 -2
- package/dist/types/core/Http/http.d.ts.map +1 -1
- package/dist/types/core/Http/types.d.ts +1 -0
- package/dist/types/core/Http/types.d.ts.map +1 -1
- package/dist/types/core/Http/utils.d.ts +2 -1
- package/dist/types/core/Http/utils.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +2 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/{components/hooks → hooks}/useBalanceAccountSelection.d.ts +2 -2
- package/dist/types/hooks/useBalanceAccountSelection.d.ts.map +1 -0
- package/dist/types/hooks/useBalanceAccounts.d.ts.map +1 -0
- package/dist/types/hooks/useBooleanState.d.ts.map +1 -0
- package/dist/types/{components/hooks → hooks}/useCustomColumnsData.d.ts +2 -2
- package/dist/types/hooks/useCustomColumnsData.d.ts.map +1 -0
- package/dist/types/{components/hooks → hooks}/useDefaultOverviewFilterParams.d.ts +9 -9
- package/dist/types/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -0
- package/dist/types/hooks/{useFetch/useFetch.d.ts → useFetch.d.ts} +6 -5
- package/dist/types/hooks/useFetch.d.ts.map +1 -0
- package/dist/types/hooks/useFreezePeriod.d.ts.map +1 -0
- package/dist/types/hooks/useImageUrl.d.ts.map +1 -0
- package/dist/types/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/types/hooks/useMounted.d.ts.map +1 -0
- package/dist/types/hooks/useMutation/useMutation.d.ts +26 -0
- package/dist/types/hooks/useMutation/useMutation.d.ts.map +1 -0
- package/dist/types/hooks/useReflex.d.ts +5 -0
- package/dist/types/hooks/useReflex.d.ts.map +1 -0
- package/dist/types/{components/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
- package/dist/types/hooks/useResponsiveViewport.d.ts.map +1 -0
- package/dist/types/{components/hooks → hooks}/useTableColumns.d.ts +2 -2
- package/dist/types/hooks/useTableColumns.d.ts.map +1 -0
- package/dist/types/hooks/useTimezoneAwareDateFormatting.d.ts.map +1 -0
- package/dist/types/primitives/reactive/reflex/helpers.d.ts +2 -0
- package/dist/types/primitives/reactive/reflex/helpers.d.ts.map +1 -1
- package/dist/types/primitives/reactive/reflex/register.d.ts.map +1 -1
- package/dist/types/primitives/reactive/reflex/types.d.ts +5 -5
- package/dist/types/primitives/reactive/reflex/types.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +123 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/endpoints.d.ts +2 -1
- package/dist/types/types/api/endpoints.d.ts.map +1 -1
- package/dist/types/types/api/models/capital.d.ts +8 -0
- package/dist/types/types/api/models/capital.d.ts.map +1 -0
- package/dist/types/types/api/models/index.d.ts +1 -0
- package/dist/types/types/api/models/index.d.ts.map +1 -1
- package/dist/types/types/api/models/transactions.d.ts +26 -1
- package/dist/types/types/api/models/transactions.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +244 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/SetupResource.d.ts +8 -11
- package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/TransactionsResource.d.ts +102 -36
- package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
- package/dist/types/utils/struct/main.d.ts.map +1 -1
- package/dist/types/utils/value/constants.d.ts +1 -1
- package/dist/types/utils/value/constants.d.ts.map +1 -1
- package/dist/warning-4d681371.cjs +2 -0
- package/dist/warning-4d681371.cjs.map +1 -0
- package/dist/warning-filled-ed9b80d5.cjs +2 -0
- package/dist/warning-filled-ed9b80d5.cjs.map +1 -0
- package/package.json +14 -11
- package/dist/da-DK-a148e492.cjs +0 -2
- package/dist/da-DK-a148e492.cjs.map +0 -1
- package/dist/de-DE-a39a50e8.cjs +0 -2
- package/dist/de-DE-a39a50e8.cjs.map +0 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +0 -107
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +0 -34
- package/dist/es/components/hooks/useBalanceAccountSelection.js +0 -27
- package/dist/es/components/hooks/useBalanceAccounts.js +0 -28
- package/dist/es/components/hooks/useCustomColumnsData.js +0 -29
- package/dist/es/components/hooks/useDefaultOverviewFilterParams.js +0 -36
- package/dist/es/components/hooks/useTableColumns.js +0 -46
- package/dist/es/components/hooks/useTimezoneAwareDateFormatting.js +0 -31
- package/dist/es/components/internal/DataOverviewDisplay/constants.js +0 -36
- package/dist/es/components/internal/SVGIcons/Close.js +0 -19
- package/dist/es/components/internal/SVGIcons/Copy.js +0 -17
- package/dist/es/components/internal/SVGIcons/Filter.js +0 -18
- package/dist/es/components/internal/SVGIcons/WarningFilled.js +0 -18
- package/dist/es/hooks/useFetch/useFetch.js +0 -65
- package/dist/es/hooks/useImageUrl/useImageUrl.js +0 -30
- package/dist/es-ES-153e5f15.cjs +0 -2
- package/dist/es-ES-153e5f15.cjs.map +0 -1
- package/dist/fr-FR-69b3df0d.cjs +0 -2
- package/dist/fr-FR-69b3df0d.cjs.map +0 -1
- package/dist/it-IT-efca230f.cjs +0 -2
- package/dist/it-IT-efca230f.cjs.map +0 -1
- package/dist/nl-NL-ffbb8184.cjs +0 -2
- package/dist/nl-NL-ffbb8184.cjs.map +0 -1
- package/dist/no-NO-eaf65f6f.cjs +0 -2
- package/dist/no-NO-eaf65f6f.cjs.map +0 -1
- package/dist/pt-BR-590ccc53.cjs +0 -2
- package/dist/pt-BR-590ccc53.cjs.map +0 -1
- package/dist/sv-SE-18f4e86e.cjs +0 -2
- package/dist/sv-SE-18f4e86e.cjs.map +0 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +0 -25
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +0 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +0 -6
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +0 -1
- package/dist/types/components/hooks/useBalanceAccountSelection.d.ts.map +0 -1
- package/dist/types/components/hooks/useBalanceAccounts.d.ts.map +0 -1
- package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +0 -1
- package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts.map +0 -1
- package/dist/types/components/hooks/useFreezePeriod.d.ts.map +0 -1
- package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +0 -1
- package/dist/types/components/hooks/useTableColumns.d.ts.map +0 -1
- package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts.map +0 -1
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +0 -3
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +0 -1
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Close.d.ts +0 -4
- package/dist/types/components/internal/SVGIcons/Close.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Copy.d.ts +0 -4
- package/dist/types/components/internal/SVGIcons/Copy.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Filter.d.ts +0 -4
- package/dist/types/components/internal/SVGIcons/Filter.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +0 -4
- package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +0 -1
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/hooks/useBooleanState/index.d.ts +0 -2
- package/dist/types/hooks/useBooleanState/index.d.ts.map +0 -1
- package/dist/types/hooks/useBooleanState/useBooleanState.d.ts.map +0 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +0 -1
- package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +0 -1
- package/dist/types/hooks/useMediaQuery/index.d.ts +0 -2
- package/dist/types/hooks/useMediaQuery/index.d.ts.map +0 -1
- package/dist/types/hooks/useMediaQuery/useMediaQuery.d.ts.map +0 -1
- package/dist/types/hooks/useMounted/index.d.ts +0 -2
- package/dist/types/hooks/useMounted/index.d.ts.map +0 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts.map +0 -1
- package/dist/types/hooks/useReflex/index.d.ts +0 -2
- package/dist/types/hooks/useReflex/index.d.ts.map +0 -1
- package/dist/types/hooks/useReflex/useReflex.d.ts +0 -5
- package/dist/types/hooks/useReflex/useReflex.d.ts.map +0 -1
- /package/dist/es/components/external/{TransactionDetails/components/TransactionData.scss.js → CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.scss.js} +0 -0
- /package/dist/es/{constants.js → constants/index.js} +0 -0
- /package/dist/types/{components/hooks → hooks}/useBalanceAccounts.d.ts +0 -0
- /package/dist/types/hooks/{useBooleanState/useBooleanState.d.ts → useBooleanState.d.ts} +0 -0
- /package/dist/types/{components/hooks → hooks}/useFreezePeriod.d.ts +0 -0
- /package/dist/types/hooks/{useImageUrl/useImageUrl.d.ts → useImageUrl.d.ts} +0 -0
- /package/dist/types/hooks/{useMediaQuery/useMediaQuery.d.ts → useMediaQuery.d.ts} +0 -0
- /package/dist/types/hooks/{useMounted/useMounted.d.ts → useMounted.d.ts} +0 -0
- /package/dist/types/{components/hooks → hooks}/useTimezoneAwareDateFormatting.d.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";var em=Object.defineProperty;var tm=(e,t,n)=>t in e?em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var k=(e,t,n)=>(tm(e,typeof t!="symbol"?t+"":t,n),n),Eo=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var I=(e,t,n)=>(Eo(e,t,"read from private field"),n?n.call(e):t.get(e)),C=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},D=(e,t,n,r)=>(Eo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var In=(e,t,n,r)=>({set _(s){D(e,t,s,n)},get _(){return I(e,t,r)}}),U=(e,t,n)=>(Eo(e,t,"access private method"),n);const P=require("classnames"),$o="test",nm=e=>{var t;return(t=e==null?void 0:e.replace)==null?void 0:t.call(e,/([^\/])$/,"$1/")},rm=e=>e==null?void 0:e.replace(/^([^\/])/,"/$1"),sm=(()=>{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??$o]||e[$o]})(),Pn=Function.prototype.bind.bind(Function.prototype.call),im=async()=>{},ro=e=>e,te=()=>{},om=Pn(Object.prototype.toString),am=e=>om(e).slice(8,-1),Qo=e=>e===!!e,ee=e=>typeof e=="function",yi=e=>e===null,Ne=e=>e==null,kr=e=>typeof e=="number",so=e=>am(e)==="Object",rt=e=>typeof e=="string",cm=e=>typeof e=="symbol",V=e=>e===void 0,ft=(e,t,n)=>(Math.min(e,n)!==e&&([e,n]=[n,e]),Math.max(e,Math.min(t,n))),ss=e=>!cm(e)&&e===~~e,jn=e=>kr(e)&&1/e===0,ql=(e,t)=>{if(Number.isInteger(e)&&Number.isInteger(t))return e+Math.floor((t-e)/2);throw TypeError(`Expects 2 integer values: [${e}, ${t}]`)},Ys=(e,t)=>(e%t+t)%t,bc="abort",lm="signal is aborted without reason",Qn=(e,t=e)=>Qo(e)?e:!!t,be=e=>e===!0,Ot=e=>e!==!1,um=e=>!1,Ho=e=>!0,W=(e,t=!1)=>({writable:be(t),enumerable:!0,value:e}),ie=(e,t=!0)=>({enumerable:Ot(t),get:e}),Ct=Pn(Object.prototype.hasOwnProperty),kn=(e,t)=>e===t||!(e===e||t===t);if(!Ct(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...ie(function(){return this.aborted?is():void 0},!0),configurable:!0})}catch{}Ct(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??is()});const is=(e=lm)=>new DOMException(e,"AbortError"),Kl=(e,t)=>{if(!kn(e.reason,t))try{Object.defineProperty(e,"reason",W(t))}catch{}return e},dm=(e=is())=>{if("abort"in AbortSignal)return AbortSignal.abort(e);const t=new AbortController,n=V(e)?is():e,{signal:r}=t;return t.abort(n),Kl(r,n),r},io=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(o=>o.removeEventListener(bc,s)),t.clear();const i=(this==null?void 0:this.reason)??is();n.abort(i),Kl(r,i),n=t=s=void 0};e:{const i=Symbol("<NIL_EXCEPTION>");let o=i;t:{try{for(const c of e){if(!$s(c))throw new TypeError("Failed to convert value to 'AbortSignal'");if(c.aborted)break t;t.add(c)}}catch(c){o=c;break t}t.forEach(c=>c.addEventListener(bc,s));break e}if(s.call(r),o!==i)throw o}return r},$s=e=>e instanceof AbortSignal,le=Object.freeze([]),F=Object.freeze(Object.create(null)),xr=Promise.resolve();Promise.race(le);const on=function(e,...t){return new Promise(n=>n(e.call(this,...t)))},hm=(e,t,n)=>{let r=t.get(e);return V(r)&&ee(n)&&(V(r=n(e,t))||t.set(e,r)),r},Zr=(e,t=le)=>{const n=`${e||""}`.trim(),r=n?n.split(/(?:\s*,\s*)+/).filter(ro):le;return r.length?r:t},Hr=(e,t,n)=>e.includes(t)?t:Ne(t)?e[0]:e.includes(n)?n:e[0],jc=Pn(Array.prototype.some),eu=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};Pn(eu,void 0,!1);Pn(eu,void 0,!0);const tu=(...e)=>{const[t]=e,r=(e.length>=2?new Date(...e):t instanceof Date?t:new Date(rt(t)||Number.isFinite(t)?t:void 0)).getTime();return Number.isFinite(r)?r:void 0},Ti=(()=>{let e=Date.now();return(t="adyen-pe")=>`${t}-${++e}`})(),mm=Ti,oo=(()=>{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=F)=>so(e)?e:os(t,F),Ur=Pn(Object.create,void 0),X=Pn(Ur,void 0,null),ao=(e=F)=>Object.freeze({...e,defineProperty:Ho,set:Ho}),Im=e=>e&&(e==null?void 0:e.length)>0?`${e[0].toUpperCase()}${e.slice(1)}`:e,Go=e=>Ne(e)||rt(e)&&/^\s*$/.test(e),gm="/setup",Mm=be(void 0),xc=(()=>{let e=0;if(Number.isFinite(e)&&(e=Math.max(0,~~e)))return e})();class Nm extends Error{constructor(n,r,s,i){super(s);k(this,"type");k(this,"errorCode");k(this,"requestId");this.type=n,this.name=n,this.errorCode=i,this.requestId=r}}const nu=Nm,fm=/^[^]*?filename[^;\n]*=\s*(?:UTF-\d['"]*)?(?:(['"])([^]*?)\1|([^;\n]*))?[^]*?$/;var _a=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.CANCEL="CANCEL",e.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",e.ERROR="ERROR",e.EXPIRED_TOKEN="EXPIRED_TOKEN",e))(_a||{});const ym=e=>{switch(e){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},Tm=e=>{var t;return(t=e.headers.get("Content-Type"))==null?void 0:t.split(";",1)[0]},pm=e=>{const n=(e.headers.get("Content-Disposition")??"").replace(fm,"$2$3");return decodeURIComponent(n)},Am=e=>{const{headers:t=[],method:n="GET"}=e,r="1.2.0";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":r},redirect:"follow",signal:e.signal,referrerPolicy:"no-referrer-when-downgrade",...n==="POST"&&e.body&&{body:JSON.stringify(e.body)}}};function _m({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 nu(r,s,e,n)}}function Sm(e){return e&&e.errorCode&&e.type&&(e.detail||e.invalidFields)&&e.status}function Dm(e){const t=new URLSearchParams;for(const n of Object.keys(e)){const r=e[n];Ne(r)||(Array.isArray(r)?r.forEach(s=>t.append(n,s)):t.set(n,String(r)))}return t}const ru=e=>{let t,n,r;const s=()=>{if(V(t))return;const l=t.abort.bind(t);t=void 0,l()},i=()=>(r=new Promise((l,u)=>{if(n.addEventListener("abort",function h(){n.removeEventListener("abort",h),u(e)}),n.aborted)throw e}),r.catch(te),r),o=()=>(V(t)&&(t=new AbortController,n=t.signal,r=i()),c),c=X({abort:W(s),promise:ie(()=>r),reason:W(e),refresh:W(o),signal:ie(()=>n)});return o()},su=()=>{let e,t,n;const r=()=>{const i=n??te,o=new Promise((c,l)=>{n=c,t=l});return i(e=o),s},s=X({promise:ie(()=>e),refresh:W(r),reject:W(i=>t(i)),resolve:W(i=>n(i))});return r()},Qs=e=>{const t=ru(),n=su();let r;return Object.defineProperties(function(...i){V(r)?n.refresh():t.abort();const o=on.call(this,e,t.refresh().signal,...i);return(async()=>{let c=r===(r=o);try{const l=await o.finally(()=>{c=r===o,c&&(r=void 0)});c&&n.resolve(l)}catch(l){c&&n.reject(l)}})(),o},{abort:W(t.abort),promise:ie(()=>n.promise),refresh:W(()=>void n.refresh())})};class Lm{constructor(t){k(this,"_endpoints",F);k(this,"_revokeEndpointsProxy",te);k(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(te)});k(this,"_refreshPromisor",Qs((t,n)=>{const r=$s(n)?io([n,t]):t;return this._fetchSetupEndpoint(r)}));this._session=t;let n;this.refresh=r=>(this._refreshPromisor(r).catch(te),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:s})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(s)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(t){return this._session.http(null,{method:"POST",path:gm,errorLevel:"fatal",loadingContext:this.loadingContext,signal:t})}_getEndpointsProxy(t){const n=new Set(Object.keys(t)),r=X();return Proxy.revocable(F,ao({get:(s,i,o)=>n.has(i)?(r[i]??(r[i]=(()=>{const{method:c="GET",url:l}=t[i];if(!V(l||void 0))return(...u)=>{const h=this._getHttpOptions(c,l,...u);return this._session.http(this._beforeHttp,h)}})()),r[i]):Reflect.get(s,i,o)}))}_getHttpOptions(t,n,...r){const{loadingContext:s}=this,[i,o]=r,{path:c,query:l}=os(o),u=l&&Dm(l);if(so(c))for(const h of Object.keys(c))n=n.replace(`{${h}}`,c[h]);return{loadingContext:s,...i,method:t,params:u,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=te,this._endpoints=F}}const Em=Lm,iu=Symbol("Error<SESSION_EXPIRED>"),Cm=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),Om=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),vm=Symbol("Error<SESSION_INVALID>"),ou=Symbol("Error<SESSION_REFRESH_ABORTED>"),co="_sessionExpired",au="_sessionReady",bm="_sessionRefreshed",jm="_sessionRefreshingEnd",xm="_sessionRefreshingStart",cu="_session.deadline",lu="_session.ready",uu="_session.refreshingEnd",du="_session.refreshingStart",Rm=async e=>{const{specification:t}=e.context,n=await on(async()=>{const r=t.autoRefresh;return ee(r)?r.call(t,e.session):r}).catch(um);return be(n)},wm=e=>{let t=e.context.emitter.on(co,()=>s(!1)),n,r=Qs(async(c,l=!1)=>{n=c;const u=be(l)||await Rm(e);n===c&&u&&e.pending&&!e.refreshing&&e.refresh(n).catch(te)}),s=(c=!1)=>{e.refreshing||r(c)},i=()=>{t(),r.abort(),r=n=t=void 0,s=i=te};return Object.defineProperties((c=!1)=>s(c),{destruct:ie(()=>i,!1)})},Rc=1e3,zm=2147483647,Pm=(e,t=Rc,n=!1)=>{var h;let r=new AbortController,s=ft(0,~~t,zm),i=be(n);Number.isFinite(s)||(s=Rc);const o=((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 g=0;if(!i){const m=d-o,N=Math.round(m/s)*s;g=o+N+s-performance.now()}setTimeout(()=>requestAnimationFrame(l),g)};return u(o),i=!1,X({cancel:W(c),delay:W(t),signal:W(r.signal)})},km=e=>{const t={},n=Object.getOwnPropertyDescriptors(e);for(const r of Object.keys(e)){const{get:s,value:i}=n[r];t[r]=ie(s||(ee(i)?i.bind(e):()=>i))}return X(t)},Um=()=>{const e={idle:null,resume:null},t={};for(const n of Object.keys(e))t[n]={get:()=>e[n]??te,set:r=>{Ne(r)?e[n]=null:ee(r)&&r!==e[n]&&(e[n]=r)}};return X(t)},hu=Symbol("<<UNSUBSCRIBE>>"),Un=e=>e===hu,Hs=e=>{let t;const n=km(e),r=Um(),s=new Map,i=new WeakMap,o=()=>Object.freeze({...n}),c=()=>s.size===0,l=h=>{if(c())return;if(Un(h)){const g=[];return s.forEach((m,N)=>{g.push(N);const M=i.get(N);for(;m--;)M==null||M()}),g.forEach(m=>m(h)),!0}const d=t;t=o();for(const g of Object.keys(t))if(!kn(t[g],d[g]))return s.forEach((m,N)=>N(t)),!0;return!1},u=h=>{if(!ee(h))return te;const d=hm(h,i,()=>{let m=()=>{const N=s.get(h)||0;N===1?(m=void 0,s.delete(h),i.delete(h),c()&&(t=void 0,r.idle())):N>1&&s.set(h,N-1)};return()=>{m==null||m()}}),g=c();return s.set(h,(s.get(h)||0)+1),g&&(t=o(),r.resume()),h(t),d};return X({idle:ie(c),on:W(r),cancelSubscriptions:W(()=>l(hu)),requestNotification:W(()=>l()),snapshot:ie(()=>t??o()),subscribe:W(u)})},mu=(()=>{let e;const{cancelSubscriptions:t,requestNotification:n,subscribe:r,on:s}=Hs({now:()=>Date.now()});return s.resume=()=>{e=Pm(n,1e3,!1)},s.idle=()=>{e==null||e.cancel(),e=void 0},X({cancelSubscriptions:W(t),subscribe:W(r)})})(),Iu=mu,Sa=()=>{const e=new class extends EventTarget{},t=(r,...s)=>{const[i]=s;s.length&&V(i)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const o=new CustomEvent(r,X({bubbles:W(!1),cancelable:W(!1),detail:W(i??null)}));return e.dispatchEvent(o)},n=(r,s)=>{if(!ee(s))return te;const i=o=>s.call(null,X({detail:W(o.detail),timeStamp:W(o.timeStamp),type:W(o.type)}));return e.addEventListener(r,i),()=>e.removeEventListener(r,i)};return X({emit:W(t),on:W(n)})},Wm=(e,t)=>{let n,r=1/0,s,i;const o=ru(),c=Sa(),l=()=>{n==null||n.removeEventListener("abort",l),r=1/0,i==null||i(),o.refresh(),c.emit(cu)},u=Qs(async(d,g)=>{s=d;const m=await on(()=>{const M=t.deadline;return ee(M)?M.call(t,g,d):M}).catch(te);if(s!==d)return;const N=(Array.isArray(m)?m:[m]).filter(M=>M||M===0);if(N.length>0){let M=!1,T=new Set;for(const y of N)if($s(y)){if(M=y.aborted)break;T.add(y)}else if(r=Math.min(r,tu(y)??1/0),M=r<=Date.now())break;M||(M=T.size<1&&!Number.isFinite(r)),M?n??(n=dm()):(n=io([...T,o.signal]),n.addEventListener("abort",l),h()),N.length=0,T.clear()}else n=void 0}),h=()=>{if(!Number.isFinite(r))return;let d=Iu.subscribe(g=>{if(Un(g))return l();g.now>=r&&o.abort()});i=()=>{d==null||d(),d=i=void 0}};return X({elapse:W(o.abort),elapsed:ie(()=>n&&n.aborted),on:W(c.on),refresh:W(u.bind(void 0)),signal:ie(()=>o.signal)})},Fm=(e,t)=>{let n=!1,r,s,i=!0,o;const c=Symbol("<next_session>"),l=Sa();function u(m){var N;try{(N=t.assert)==null||N.call(t,m)}catch{throw vm}}function h(m){if(!ee(m))throw Cm}const d=Qs((m,N)=>{if(!s)s=m;else return g($s(N)?io([N,m]):m)}),g=async m=>{let N=c;try{n=!1,s=m,i&&await(r??(r=(async()=>{await xr,i=!1,l.emit(du)})())),h(t.onRefresh),N=await on(()=>t.onRefresh(o,m)).finally(()=>{if(m.aborted)throw ou})}finally{if(s===m)try{N!==c&&(u(N),o=N,l.emit(lu))}finally{r=void 0,i=!0,l.emit(uu)}}};return e.on(co,()=>n=!r),d(),X({context:W(X({emitter:W(e),specification:W(t)})),on:W(l.on),pending:ie(()=>n),promise:ie(()=>d.promise),refresh:W(d.bind(void 0)),refreshing:ie(()=>!!r),session:ie(()=>o),signal:ie(()=>s)})};class Bm{constructor(t){k(this,"_session");k(this,"_autofresh");k(this,"_deadline");k(this,"_refresher");k(this,"_eventEmitter",Sa());this._specification=t,this._deadline=Wm(this._eventEmitter,this._specification),this._refresher=Fm(this._eventEmitter,this._specification),this._autofresh=wm(this._refresher),this._deadline.on(cu,()=>this._eventEmitter.emit(co)),this._refresher.on(du,()=>this._eventEmitter.emit(xm)),this._refresher.on(uu,()=>this._eventEmitter.emit(jm)),this._refresher.on(lu,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(bm)),this._eventEmitter.emit(au)}),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 Om}async _sessionHttp(t,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(te);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!==iu)throw r;if(this._refresher.pending)continue;this._deadline.elapse()}}}const Ym="v1",Co=(e,t)=>{try{e==null||e(t)}catch{throw t}};async function $m(e){const{errorLevel:t,loadingContext:n="",path:r}=e,s=Am(e),i=new URL(`${nm(n)}${Ym}${rm(r)}`);return e.params&&e.params.forEach((o,c)=>{const l=decodeURIComponent(o);l&&i.searchParams.append(c,l)}),(async()=>{let o=!1;const c={level:t};try{const l=await fetch(i,s);if(l.ok){if(l.status===204)return null;try{switch(Tm(l)){case"application/json":return await l.json();default:const d=await l.blob(),g=pm(l);return{blob:d,filename:g}}}catch(h){throw o=!0,h}}c.type=ym(l.status);const u=await l.json();c.message=e.errorMessage||`Service at ${i} not available`,c.errorCode=String(u.status),c.requestId=u==null?void 0:u.requestId,Sm(u)&&(c.message=u.detail,c.errorCode=u.errorCode,c.status=u.status),Co(e.errorHandler,c)}catch(l){if(o)throw Co(e.errorHandler,l),l;Co(e.errorHandler,l),c.message=e.errorMessage||`Call to ${i} failed. Error: ${l}`}_m(c)})()}class Qm{constructor(t){k(this,"assert",t=>{if(so(t)){const n=rt(t.id)?t.id.trim():void 0,r=rt(t.token)?t.token.trim():void 0;if(n&&r)return}throw void 0});k(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(!V(xc)){const i=new Date(r);n.push(i.setMilliseconds(i.getMilliseconds()+xc))}return n});k(this,"http",async(t,n,r)=>{const{headers:s,signal:i,...o}=r;try{const c={...o,headers:{...s,...t&&{Authorization:`Bearer ${t.token}`}},errorHandler:this._errorHandler,signal:$s(i)?io([n,i]):n};return await $m(c)}catch(c){throw(c==null?void 0:c.type)===_a.EXPIRED_TOKEN?iu:c}});this.onSessionCreate=t,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:W(Mm),onRefresh:W((n,r)=>this.onSessionCreate(r))})}_errorHandler(t){try{this.errorHandler&&this.errorHandler(t)}catch{}throw t}}const Hm=Qm,Jr=Symbol("<<NO_ERR>>");function Gm(e){/* istanbul ignore if -- @preserve */if(e===Jr)throw new TypeError("Illegal error")}const Zm=()=>{let e=Jr;const t=()=>{e=Jr},n=r=>{Gm(r),e=r};return X({error:ie(()=>e===Jr?void 0:e),hasError:ie(()=>e!==Jr),reset:W(t),set:W(n)})};class Jm{constructor(){k(this,"_canSkipSessionRefresh",!1);k(this,"_refreshPromisorSignal");k(this,"_sessionIsFrozen",!1);k(this,"_errorContainer",Zm());k(this,"_specification",new Hm);k(this,"_sessionContext",new Bm(this._specification));k(this,"_setupContext",new Em(this._sessionContext));k(this,"_refreshPromisor",Qs(async(t,n=!1)=>{let r=!this._refreshPromisorSignal,s=this._refreshPromisorSignal===(this._refreshPromisorSignal=t);const i=be(n)&&this._canSkipSessionRefresh;r&&(r=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(i?this._setupContext:this._sessionContext).refresh(t).finally(()=>s=this._refreshPromisorSignal===t)}catch(o){if(!s)return;!t.aborted&&(i||o!==ou)&&this._errorContainer.set(o),r=!i}finally{(r||i&&s)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));k(this,"_watchlist",Hs({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,isExpired:()=>this._sessionContext.isExpired,isFrozen:()=>this._sessionIsFrozen,refreshing:()=>!!this._refreshPromisorSignal}));k(this,"freeze",()=>{this._sessionIsFrozen=!0,this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()});k(this,"http",this._sessionContext.http.bind(this._sessionContext,null));k(this,"refresh",this._refresh.bind(this));k(this,"subscribe",this._watchlist.subscribe);this._watchlist.on.resume=()=>{const t=[this._sessionContext.on(co,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(au,()=>{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&&Ot(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 Vm=JSON.parse(`{"account":"Account","accountBalance":"Account Balance","accountDescription":"Account description","accountID":"Account ID","additions":"Additions","adjustments":"Adjustments","amount":"Amount","and":"and","apply":"Apply","back":"Back","balanceAccount":"Balance account","balanceAccountId":"Balance account ID","Booked":"Booked","button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})","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.maximumRepaymentPeriod":"Maximum repayment period","capital.minimumRepaymentToRepayTheFinancingOnTime":"Minimum repayment every %{days} days to repay the financing on time","capital.needSomeExtraMoney":"Need some extra money?","capital.oneMonth":"1 month","capital.pending":"Pending","capital.poweredByAdyen":"Powered by Adyen","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.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":"Captured","category":"Category","chargeback":"Chargebacks","closeIconLabel":"Close","contactSupport":"Contact support","contactSupportForHelp":"Contact support for help.","contactSupportForHelpAndShareErrorCode":"Contact support for help and share error code %{requestId}","copied":"Copied","copy":"Copy","correction":"Corrections","currency":"Currency","date":"Date","dateRange":"Date range","default":"Default","description":"Description","dismiss":"Dismiss","download":"Download","downloading":"Downloading","email":"Email","entityWasNotFound":"Entity was not found","entityWasNotFoundDetail":"Transaction not found for the specified Account Holder","error.pleaseTryAgainLater":"Please try again later.","error.somethingWentWrongWithDownload":"Something went wrong with the download","expandableCard.collapse":"Collapse","expandableCard.expand":"Expand","export":"Export","fee":"Fees","file":"File","filter.date.since":"Since %{date}","filter.date.until":"Until %{date}","filterBar":"Filter bar","filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status","from":"From","full":"Full","fundsCaptured":"Funds captured","goBack":"Go back","grantIssued":"Grant issued","grantRepayment":"Grant repayments","hideContent":"Hide content","id":"ID","incompleteField":"Incomplete field","inProgress":"In progress","loading":"Loading","max":"max","min":"min","mobile":"Mobile","netPayout":"Net payout","nextPayouts":"Next Payouts","noData":"No data","noNegativeNumbersAllowed":"No negative numbers allowed","noPayoutsFound":"No payouts found","noReportsFound":"No reports found","noTransactionsFound":"No transactions found","other":"Other","paginatedNavigation":"Paginated navigation","pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing","partial":"Partial","paymentId":"Payment ID","paymentMethod":"Payment method","payoutDetails":"Payout Details","payoutsNotice":"Payout information is generated each day at midnight, UTC time.","payoutsTitle":"Payouts","Pending":"Pending","pleaseComeBackLater":"Please come back later.","pleaseReachOutToSupportForAssistance":"Please, reach out to support for assistance.","rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","rangePreset.last7Days":"Last 7 days","rangePreset.lastMonth":"Last month","rangePreset.lastWeek":"Last week","rangePreset.thisMonth":"This month","rangePreset.thisWeek":"This week","rangePreset.yearToDate":"Year to date","reachOutToSupport":"Reach out to support","referenceID":"Reference ID","refresh":"Refresh","refund":"Refunds","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":"Refund payment","refundActionErrorSubtitle":"We couldn’t process the refund. Try again later.","refundActionErrorTitle":"Something went wrong.","refundActionSuccessSubtitle":"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.","refundActionSuccessTitle":"Refund is sent!","refundAmount":"Amount to refund","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":"Refunds can take up to 40 days depending on the payment method. Fees are included.","refundPayment":"Refund %{amount}","refundReason":"Reason for refund","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":"Reference","refundReference.placeholder":"Enter the reference here","remainingAmount":"Remaining amount","report":"Report","reportsError.tooManyDownloads":"We couldn't download all the files. Please try again later.","reportsNotice":"Reports are generated each day at midnight, UTC time.","reportsTitle":"Reports","reportType.payout":"Payout","reset":"Reset","Reversed":"Reversed","select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search","somethingWentWrong":"Something went wrong.","somethingWentWrongTryRefreshingOrComeBackLater":"Something went wrong. Try refreshing the page or come back later.","status":"Status","structuredList":"Structured list","subtractions":"Subtractions","tabs":"Tabs","theErrorCodeIs":"The error code is %{requestId}","thereAreNoResults":"There are no results","theRequestIsMissingRequiredFieldsOrContainsInvalidData":"The request is missing required fields or contains invalid data.","thereWasAnUnexpectedError":"There was an unexpected error","theSelectedBalanceAccountIsIncorrect":"The selected balance account is incorrect","timezone":"Timezone","to":"To","tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account","totalIncoming":"Total incoming","totalOutgoing":"Total outgoing","toValueShouldBeGreaterThanTheFromValue":"To value should be equal or greater than the From value","transactionDetails":"Transaction details","transactions":"Transactions","transactionsOverviewTitle":"Transactions overview","transactionType":"Transaction type","transfer":"Transfers","tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain":"Try a different search or reset your filters, and we’ll try again.","tryRefreshingThePageOrComeBackLater":"Try refreshing the page or come back later.","txAmount":"Amount","txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer","type":"Type","value":"Value","weCouldNotLoadThePayoutsOverview":"We couldn't load the payouts overview.","weCouldNotLoadTheReportsOverview":"We couldn't load the reports overview.","weCouldNotLoadTheTransactionsOverview":"We couldn't load the transactions overview.","weCouldNotLoadYourBalanceAccounts":"We couldn't load your balance accounts.","weCouldNotLoadYourPayouts":"We couldn't load your payouts.","weCouldNotLoadYourReports":"We couldn't load your reports.","weCouldNotLoadYourTransactions":"We couldn't load your transactions."}`),Xm={...Vm},vt=e=>e.then(({default:t})=>t),gu={da_DK:()=>vt(Promise.resolve().then(()=>require("./da-DK-a6a8435e.cjs")))},Mu={de_DE:()=>vt(Promise.resolve().then(()=>require("./de-DE-d692ac19.cjs")))},Nu={es_ES:()=>vt(Promise.resolve().then(()=>require("./es-ES-143780e6.cjs")))},fu={fi_FI:()=>vt(Promise.resolve().then(()=>require("./fi-FI-99b94b3f.cjs")))},yu={fr_FR:()=>vt(Promise.resolve().then(()=>require("./fr-FR-e0317359.cjs")))},Tu={it_IT:()=>vt(Promise.resolve().then(()=>require("./it-IT-1dc05e46.cjs")))},pu={nl_NL:()=>vt(Promise.resolve().then(()=>require("./nl-NL-40171335.cjs")))},Au={no_NO:()=>vt(Promise.resolve().then(()=>require("./no-NO-d689e9ff.cjs")))},_u={pt_BR:()=>vt(Promise.resolve().then(()=>require("./pt-BR-4b1fd7f1.cjs")))},Su={sv_SE:()=>vt(Promise.resolve().then(()=>require("./sv-SE-2f0e50d2.cjs")))},pi={en_US:Xm},Da={...gu,...Mu,...pi,...Nu,...fu,...yu,...Tu,...pu,...Au,..._u,...Su},yn="en-US",Du=Da.en_US,La={year:"numeric",month:"2-digit",day:"2-digit"},qm=["constructor","i18n","watch","preferredTranslations"],Lu=e=>[...new Set(Object.keys(e).map(t=>t.replace(/_/g,"-")).sort())],Km=Lu(Da),eI={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$"},Eu=eI,tI={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},nI=tI,Cu=e=>nI[e]||100,rI=e=>!!Eu[e],Ou=e=>rI(e)?Eu[e]:null,vu=(e,t)=>{const n=Cu(t);return parseInt(String(e),10)/n},sI=(e,t,n,r=!1,s={})=>{const i=e.toString(),o=vu(i,n),c=t.replace("_","-"),l={style:"currency",currency:n,currencyDisplay:"symbol",...s};try{return r?iI(c,l,o):o.toLocaleString(c,l)}catch{return i}},iI=(e,t,n)=>Intl.NumberFormat(e,t).formatToParts(n).filter(r=>r.type!=="currency").reduce((r,s)=>r+s.value,"").trim(),oI=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:bu,BASE_LOCALE:lo,SYSTEM_TIMEZONE:si,SYSTEM_TIMEZONE_FORMATTER:Vn}=(()=>{const e="en-US",t="2-digit",n="numeric",o=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,o),c=l.resolvedOptions().timeZone}catch{c=void 0}return{BASE_FORMAT_OPTIONS:o,BASE_LOCALE:e,SYSTEM_TIMEZONE:c,SYSTEM_TIMEZONE_FORMATTER:l}})(),aI=/\+(?=-)|([+-]00:00)/g,cI=new RegExp("(?<=^\\D?)(\\d)$"),lI=([e,t])=>(Math.abs(e*60)+t)*(e<0?-1:1),uI=e=>Object.freeze([Math.floor(e/60),Ys(e,60)]),dI=e=>parseInt(e,10)||0,hI=e=>`GMT+${uI(e).map(r=>`${r}`.replace(cI,"0$1")).join(":")}`.replace(aI,""),Zo=e=>{var n;const t=((n=e==null?void 0:e.match(oI))==null?void 0:n[0].split(":",2).map(dI))??le;return lI(t.concat(0,0).slice(0,2))},mI=(e,t=Vn)=>{const n=Zo(Vn==null?void 0:Vn.format(e));return Zo(t==null?void 0:t.format(e))-n},ju=(e,t,n=1)=>{const{offset:r,timestamp:s}=e(t);return s-r*n*6e4},Et=(e,t)=>ju(e,t,1),Ft=(e,t)=>ju(e,t,-1),II=(()=>{let e,t;V(si)||(e=function(){return this.TIMEZONE},t=function(r){if(Ne(r))this.TIMEZONE=si,this.formatter=Vn;else try{const s=new Intl.DateTimeFormat(lo,{...bu,timeZone:r}),i=s.resolvedOptions().timeZone;if(this.TIMEZONE===i)return;this.TIMEZONE=i,this.formatter=s}catch{}});function n(...r){if(r.length===0)return n.call(this,Date.now());const s=r[0],i=new Date(s).getTime(),o=this.formatter??Vn;return Object.freeze({formatted:o==null?void 0:o.format(i),offset:mI(i,o),timestamp:i})}return()=>{const r={TIMEZONE:si},s=t==null?void 0:t.bind(r),i=X({current:{get:e==null?void 0:e.bind(r),set:s},system:{value:si}});return Object.defineProperties(n.bind(r),{tz:{get:()=>i,set:s}})}})(),Gs=II,gI={values:F,count:0},MI=/^[a-z]{2}-[A-Z]{2}$/,Ai=e=>e.substring(0,2).toLowerCase();function NI(e,t){if(!e)return null;const n=Ai(e);return t.find(r=>Ai(r)===n)||null}function Ea(e){const t=e.replace("_","-");if(MI.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 Ca(e,t){const n=e.trim();if(!n||n.length<1||n.length>5)return yn;const r=Ea(n);return r&&t.includes(r)?r:NI(r??n,t)}function fI(e=F,t){return e===F?e:Object.keys(e).reduce((n,r)=>{const s=Ea(r)||Ca(r,t);return s&&e[r]&&(n[s]=e[r]),n},{})}const Oo=(e,t)=>e.replace(/%{(\w+)}/g,(n,r)=>(t==null?void 0:t[r])||""),wc=(e,t,n=gI)=>{const r=n.count??0,s=`${t}__${r}`;if(Ct(e,s)&&e[s])return Oo(e[s],n.values);const i=`${t}__plural`;return Ct(e,i)&&r>1&&e[i]?Oo(e[i],n.values):Ct(e,t)&&e[t]?Oo(e[t],n.values):null},yI=async(e,t=F,n=F)=>{const r=Ca(e,Object.keys(t))||yn,s=t[r];return{...Du,...await(ee(s)?s():s)??F,...os(n==null?void 0:n[e])}};function TI(){let e=this.locale,t=e,n=[...this.supportedLocales];return X({load:{value:r=>yI(e,this.preferredTranslations,r)},locale:{get:()=>e,set:r=>{t=r,e=Ea(r)||Ca(r,n)||yn}},supportedLocales:{get:()=>n,set(r){n=r,this.locale=t}}})}function pI(){var t;const e={};for(const[n,r]of Object.entries(Object.getOwnPropertyDescriptors(uo.prototype)))qm.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 _t,Is,ar,gs,cr,lr,xt,Ms,pn,An,ur,dr,Ns,Jo;class uo{constructor(t=yn,n){C(this,Ns);C(this,_t,yn);C(this,Is,Ai(I(this,_t)));C(this,ar,[yn]);C(this,gs,I(this,ar));C(this,cr,void 0);C(this,lr,Du);C(this,xt,TI.call(this));C(this,Ms,xr);C(this,pn,void 0);C(this,An,void 0);C(this,ur,Hs({timestamp:()=>performance.now()}));C(this,dr,Gs());k(this,"watch",I(this,ur).subscribe.bind(void 0));k(this,"i18n",X(pI.call(this)));k(this,"preferredTranslations");this.watch(te),this.preferredTranslations=Object.freeze((n==null?void 0:n.reduce((r,s)=>({...r,...s}),pi))??{...pi}),D(this,ar,Lu(this.preferredTranslations)),this.locale=t}get customTranslations(){return I(this,cr)??{}}set customTranslations(t){let n,r=[...I(this,ar)];if(!Ne(t)){n=fI(t,Km);const s=Object.keys(n);r=[...r,...s].sort().filter((i,o,c)=>c.indexOf(i)===o)}I(this,xt).supportedLocales=r,U(this,Ns,Jo).call(this,n)}get languageCode(){return I(this,Is)}get lastRefreshTimestamp(){return I(this,ur).snapshot.timestamp}get locale(){return I(this,_t)}set locale(t){if(Ne(t))this.locale=yn;else{if(I(this,xt).locale=t,I(this,_t)===I(this,xt).locale)return;U(this,Ns,Jo).call(this,I(this,cr))}}get ready(){return I(this,Ms)}get supportedLocales(){return I(this,gs)}get timezone(){return I(this,dr).tz.current}set timezone(t){I(this,dr).tz=t}get(t,n){const r=wc(I(this,lr),t,n);return yi(r)?t:r}has(t,n){return!!wc(I(this,lr),t,n)}amount(t,n,r){const{hideCurrency:s,...i}=r||{},o=sI(t,I(this,_t),n,s,{...i,currencyDisplay:"symbol",signDisplay:"never"});return t<0?`- ${o}`:o}date(t,n={}){const r={...La,timeZone:I(this,dr).tz.current,...n};return new Date(t).toLocaleDateString(I(this,_t),r)}fullDate(t){return this.date(t,{month:"short",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}_t=new WeakMap,Is=new WeakMap,ar=new WeakMap,gs=new WeakMap,cr=new WeakMap,lr=new WeakMap,xt=new WeakMap,Ms=new WeakMap,pn=new WeakMap,An=new WeakMap,ur=new WeakMap,dr=new WeakMap,Ns=new WeakSet,Jo=function(t){V(I(this,An))&&D(this,Ms,new Promise(s=>{D(this,An,()=>{s(I(this,pn)),D(this,pn,D(this,An,void 0))})}));const n=()=>{var s;I(this,pn)===r&&((s=I(this,An))==null||s.call(this))},r=D(this,pn,(async()=>{D(this,lr,await I(this,xt).load(t)),D(this,_t,I(this,xt).locale),D(this,gs,Object.freeze(I(this,xt).supportedLocales)),D(this,cr,t),D(this,Is,Ai(I(this,_t))),I(this,ur).requestNotification()})());r.then(n).catch(s=>{n(),console.error(s)})};class xu{constructor(t){k(this,"components",[]);k(this,"options");k(this,"localization");k(this,"loadingContext");k(this,"session",new Jm);k(this,"onError");k(this,"update",async(t=F)=>(this.setOptions(t),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));k(this,"remove",t=>(this.components=this.components.filter(n=>n._id!==t._id),t.unmount(),this));k(this,"registerComponent",t=>{t.props.core===this&&this.components.push(t)});k(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:$o,...t},this.localization=new uo(t.locale,t.availableTranslations),this.loadingContext=sm(this.options.environment),this.setOptions(t)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(t){return{...t}}}k(xu,"version","1.2.0");const Ru=xu;var Zs,ne,wu,zu,Mn,zc,Pu,Vo,Oa,Xo,qo,ku,as={},Uu=[],AI=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ho=Array.isArray;function Bt(e,t){for(var n in t)e[n]=t[n];return e}function Wu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Rr(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Zs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return ts(e,o,r,s,null)}function ts(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++wu,__i:-1,__u:0};return s==null&&ne.vnode!=null&&ne.vnode(i),i}function J(e){return e.children}function $t(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 Fu(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 Fu(e)}}function Ko(e){(!e.__d&&(e.__d=!0)&&Mn.push(e)&&!_i.__r++||zc!==ne.debounceRendering)&&((zc=ne.debounceRendering)||Pu)(_i)}function _i(){var e,t,n,r,s,i,o,c;for(Mn.sort(Vo);e=Mn.shift();)e.__d&&(t=Mn.length,r=void 0,i=(s=(n=e).__v).__e,o=[],c=[],n.__P&&((r=Bt({},s)).__v=s.__v+1,ne.vnode&&ne.vnode(r),va(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[i]:null,o,i??wr(s),!!(32&s.__u),c),r.__v=s.__v,r.__.__k[r.__i]=r,$u(o,r,c),r.__e!=i&&Fu(r)),Mn.length>t&&Mn.sort(Vo));_i.__r=0}function Bu(e,t,n,r,s,i,o,c,l,u,h){var d,g,m,N,M,T=r&&r.__k||Uu,y=t.length;for(n.__d=l,_I(n,t,T),l=n.__d,d=0;d<y;d++)(m=n.__k[d])!=null&&(g=m.__i===-1?as:T[m.__i]||as,m.__i=d,va(e,m,g,s,i,o,c,l,u,h),N=m.__e,m.ref&&g.ref!=m.ref&&(g.ref&&ba(g.ref,null,m),h.push(m.ref,m.__c||N,m)),M==null&&N!=null&&(M=N),65536&m.__u||g.__k===m.__k?l=Yu(m,l,e):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:N&&(l=N.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=M}function _I(e,t,n){var r,s,i,o,c,l=t.length,u=n.length,h=u,d=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(o=r+d,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?ts(null,s,null,null,null):ho(s)?ts(J,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?ts(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,i=null,(c=s.__i=SI(s,n,o,h))!==-1&&(h--,(i=n[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&d--,typeof s.type!="function"&&(s.__u|=65536)):c!==o&&(c==o-1?d--:c==o+1?d++:(c>o?d--:d++,s.__u|=65536))):s=e.__k[r]=null;if(h)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=wr(i)),Qu(i,i))}function Yu(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=Yu(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 ln(e,t){return t=t||[],e==null||typeof e=="boolean"||(ho(e)?e.some(function(n){ln(n,t)}):t.push(e)),t}function SI(e,t,n,r){var s=e.key,i=e.type,o=n-1,c=n+1,l=t[n];if(l===null||l&&s==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||c<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&s==l.key&&i===l.type)return o;o--}if(c<t.length){if((l=t[c])&&!(131072&l.__u)&&s==l.key&&i===l.type)return c;c++}}return-1}function Pc(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||AI.test(t)?n:n+"px"}function ii(e,t,n,r,s){var i;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||Pc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Pc(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Oa,e.addEventListener(t,i?qo:Xo,i)):e.removeEventListener(t,i?qo:Xo,i);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 kc(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Oa++;else if(t.t<n.u)return;return n(ne.event?ne.event(t):t)}}}function va(e,t,n,r,s,i,o,c,l,u){var h,d,g,m,N,M,T,y,A,S,E,j,L,x,_,z,b=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[c=t.__e=n.__e]),(h=ne.__b)&&h(t);e:if(typeof b=="function")try{if(y=t.props,A="prototype"in b&&b.prototype.render,S=(h=b.contextType)&&r[h.__c],E=h?S?S.props.value:h.__:r,n.__c?T=(d=t.__c=n.__c).__=d.__E:(A?t.__c=d=new b(y,E):(t.__c=d=new $t(y,E),d.constructor=b,d.render=LI),S&&S.sub(d),d.props=y,d.state||(d.state={}),d.context=E,d.__n=r,g=d.__d=!0,d.__h=[],d._sb=[]),A&&d.__s==null&&(d.__s=d.state),A&&b.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Bt({},d.__s)),Bt(d.__s,b.getDerivedStateFromProps(y,d.__s))),m=d.props,N=d.state,d.__v=t,g)A&&b.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),A&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(A&&b.getDerivedStateFromProps==null&&y!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,E),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,E)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(H){H&&(H.__=t)}),j=0;j<d._sb.length;j++)d.__h.push(d._sb[j]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,E),A&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(m,N,M)})}if(d.context=E,d.props=y,d.__P=e,d.__e=!1,L=ne.__r,x=0,A){for(d.state=d.__s,d.__d=!1,L&&L(t),h=d.render(d.props,d.state,d.context),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[]}else do d.__d=!1,L&&L(t),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++x<25);d.state=d.__s,d.getChildContext!=null&&(r=Bt(Bt({},r),d.getChildContext())),A&&!g&&d.getSnapshotBeforeUpdate!=null&&(M=d.getSnapshotBeforeUpdate(m,N)),Bu(e,ho(z=h!=null&&h.type===J&&h.key==null?h.props.children:h)?z:[z],t,n,r,s,i,o,c,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),T&&(d.__E=d.__=null)}catch(H){if(t.__v=null,l||i!=null){for(t.__u|=l?160:128;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;ne.__e(H,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=DI(n.__e,t,n,r,s,i,o,l,u);(h=ne.diffed)&&h(t)}function $u(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ba(n[r],n[++r],n[++r]);ne.__c&&ne.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){ne.__e(i,s.__v)}})}function DI(e,t,n,r,s,i,o,c,l){var u,h,d,g,m,N,M,T=n.props,y=t.props,A=t.type;if(A==="svg"?s="http://www.w3.org/2000/svg":A==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!A&&(A?m.localName===A:m.nodeType===3)){e=m,i[u]=null;break}}if(e==null){if(A===null)return document.createTextNode(y);e=document.createElementNS(s,A,y.is&&y),c&&(ne.__m&&ne.__m(t,i),c=!1),i=null}if(A===null)T===y||c&&e.data===y||(e.data=y);else{if(i=i&&Zs.call(e.childNodes),T=n.props||as,!c&&i!=null)for(T={},u=0;u<e.attributes.length;u++)T[(m=e.attributes[u]).name]=m.value;for(u in T)if(m=T[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=m;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;ii(e,u,null,m,s)}}for(u in y)m=y[u],u=="children"?g=m:u=="dangerouslySetInnerHTML"?h=m:u=="value"?N=m:u=="checked"?M=m:c&&typeof m!="function"||T[u]===m||ii(e,u,m,T[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=""),Bu(e,ho(g)?g:[g],t,n,r,A==="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:n.__k&&wr(n,0),c,l),i!=null)for(u=i.length;u--;)Wu(i[u]);c||(u="value",A==="progress"&&N==null?e.removeAttribute("value"):N!==void 0&&(N!==e[u]||A==="progress"&&!N||A==="option"&&N!==T[u])&&ii(e,u,N,T[u],s),u="checked",M!==void 0&&M!==e[u]&&ii(e,u,M,T[u],s))}return e}function ba(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){ne.__e(s,n)}}function Qu(e,t,n){var r,s;if(ne.unmount&&ne.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ba(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ne.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Qu(r[s],t,n||typeof e.type!="function");n||Wu(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function LI(e,t,n){return this.constructor(e,n)}function Xn(e,t,n){var r,s,i,o;ne.__&&ne.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],o=[],va(t,e=(!r&&n||t).__k=Rr(J,null,[e]),s||as,as,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Zs.call(t.childNodes):null,i,!r&&n?n:s?s.__e:t.firstChild,r,o),$u(i,e,o)}function Hu(e,t,n){var r,s,i,o,c=Bt({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?s=t[i]:c[i]=t[i]===void 0&&o!==void 0?o[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?Zs.call(arguments,2):n),ts(e.type,c,r||e.key,s||e.ref,null)}function Wr(e,t){var n={__c:t="__cC"+ku++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&s.forEach(function(c){c.__e=!0,Ko(c)})},this.sub=function(o){s.add(o);var c=o.componentWillUnmount;o.componentWillUnmount=function(){s&&s.delete(o),c&&c.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Zs=Uu.slice,ne={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(c){e=c}throw e}},wu=0,zu=function(e){return e!=null&&e.constructor==null},$t.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Bt({},this.state),typeof e=="function"&&(e=e(Bt({},n),this.props)),e&&Bt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ko(this))},$t.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ko(this))},$t.prototype.render=J,Mn=[],Pu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vo=function(e,t){return e.__v.__b-t.__v.__b},_i.__r=0,Oa=0,Xo=kc(!1),qo=kc(!0),ku=0;var EI=0;function a(e,t,n,r,s,i){t||(t={});var o,c,l=t;"ref"in t&&(o=t.ref,delete t.ref);var u={type:e,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--EI,__i:-1,__u:0,__source:s,__self:i};if(typeof e=="function"&&(o=e.defaultProps))for(c in o)l[c]===void 0&&(l[c]=o[c]);return ne.vnode&&ne.vnode(u),u}var wn,fe,vo,Uc,zr=0,Gu=[],Ee=ne,Wc=Ee.__b,Fc=Ee.__r,Bc=Ee.diffed,Yc=Ee.__c,$c=Ee.unmount,Qc=Ee.__;function Js(e,t){Ee.__h&&Ee.__h(fe,e,zr||t),zr=0;var n=fe.__H||(fe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function w(e){return zr=1,mo(Zu,e)}function mo(e,t,n){var r=Js(wn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Zu(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=fe,!fe.u)){var s=function(c,l,u){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(g){return!!g.__c});if(h.every(function(g){return!g.__N}))return!i||i.call(this,c,l,u);var d=!1;return h.forEach(function(g){if(g.__N){var m=g.__[0];g.__=g.__N,g.__N=void 0,m!==g.__[0]&&(d=!0)}}),!(!d&&r.__c.props===c)&&(!i||i.call(this,c,l,u))};fe.u=!0;var i=fe.shouldComponentUpdate,o=fe.componentWillUpdate;fe.componentWillUpdate=function(c,l,u){if(this.__e){var h=i;i=void 0,s(c,l,u),i=h}o&&o.call(this,c,l,u)},fe.shouldComponentUpdate=s}return r.__N||r.__}function B(e,t){var n=Js(wn++,3);!Ee.__s&&ja(n.__H,t)&&(n.__=e,n.i=t,fe.__H.__h.push(n))}function Si(e,t){var n=Js(wn++,4);!Ee.__s&&ja(n.__H,t)&&(n.__=e,n.i=t,fe.__h.push(n))}function $(e){return zr=5,f(function(){return{current:e}},[])}function CI(e,t,n){zr=6,Si(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 f(e,t){var n=Js(wn++,7);return ja(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function p(e,t){return zr=8,f(function(){return e},t)}function Fr(e){var t=fe.context[e.__c],n=Js(wn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(fe)),t.props.value):e.__}function OI(){for(var e;e=Gu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(li),e.__H.__h.forEach(ea),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){fe=null,Wc&&Wc(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Qc&&Qc(e,t)},Ee.__r=function(e){Fc&&Fc(e),wn=0;var t=(fe=e.__c).__H;t&&(vo===fe?(t.__h=[],fe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(li),t.__h.forEach(ea),t.__h=[],wn=0)),vo=fe},Ee.diffed=function(e){Bc&&Bc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gu.push(t)!==1&&Uc===Ee.requestAnimationFrame||((Uc=Ee.requestAnimationFrame)||vI)(OI)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),vo=fe=null},Ee.__c=function(e,t){t.some(function(n){try{n.__h.forEach(li),n.__h=n.__h.filter(function(r){return!r.__||ea(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Ee.__e(r,n.__v)}}),Yc&&Yc(e,t)},Ee.unmount=function(e){$c&&$c(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{li(r)}catch(s){t=s}}),n.__H=void 0,t&&Ee.__e(t,n.__v))};var Hc=typeof requestAnimationFrame=="function";function vI(e){var t,n=function(){clearTimeout(r),Hc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Hc&&(t=requestAnimationFrame(n))}function li(e){var t=fe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),fe=t}function ea(e){var t=fe;e.__c=e.__(),fe=t}function ja(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Zu(e,t){return typeof t=="function"?t(e):t}const Ve="adyen-pe-typography";var O=(e=>(e.CAPTION="caption",e.BODY="body",e.SUBTITLE="subtitle",e.TITLE="title",e))(O||{}),pt=(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))(pt||{}),oe=(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))(oe||{});function ta(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 Gc(e,t){this.props=e,this.context=t}function De(e,t){function n(s){var i=this.props.ref,o=i==s.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,s)||!o:ta(this.props,s)}function r(s){return this.shouldComponentUpdate=n,Rr(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Gc.prototype=new $t).isPureReactComponent=!0,Gc.prototype.shouldComponentUpdate=function(e,t){return ta(this.props,e)||ta(this.state,t)};var Zc=ne.__b;ne.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zc&&Zc(e)};var bI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Br(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var s=e(n,r);return n.ref=r,s}return t.$$typeof=bI,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var jI=ne.__e;ne.__e=function(e,t,n,r){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}jI(e,t,n,r)};var Jc=ne.unmount;function Ju(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=function(r,s){for(var i in s)r[i]=s[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ju(r,t,n)})),e}function Vu(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Vu(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 bo(){this.__u=0,this.t=null,this.__b=null}function Xu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function oi(){this.u=null,this.o=null}ne.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Jc&&Jc(e)},(bo.prototype=new $t).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=Xu(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,s?s(c):c())};n.__R=o;var c=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Vu(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},bo.prototype.componentWillUnmount=function(){this.t=[]},bo.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]=Ju(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&Rr(J,null,e.fallback);return s&&(s.__u&=-33),[Rr(J,null,t.__a?null:e.children),s]};var Vc=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function xI(e){return this.getChildContext=function(){return e.context},e.children}function RI(e){var t=this,n=e.i;t.componentWillUnmount=function(){Xn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Xn(Rr(xI,{context:t.context},e.__v),t.l)}function qu(e,t){var n=Rr(RI,{__v:e,i:t});return n.containerInfo=t,n}(oi.prototype=new $t).__a=function(e){var t=this,n=Xu(t.__v),r=t.o.get(e);return r[0]++,function(s){var i=function(){t.props.revealOrder?(r.push(s),Vc(t,e,r)):s()};n?n(i):i()}},oi.prototype.render=function(e){this.u=null,this.o=new Map;var t=ln(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},oi.prototype.componentDidUpdate=oi.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Vc(e,n,t)})};var wI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,zI=/^(?: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]/,PI=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,kI=/[A-Z0-9]/g,UI=typeof document<"u",WI=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};$t.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($t.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Xc=ne.event;function FI(){}function BI(){return this.cancelBubble}function YI(){return this.defaultPrevented}ne.event=function(e){return Xc&&(e=Xc(e)),e.persist=FI,e.isPropagationStopped=BI,e.isDefaultPrevented=YI,e.nativeEvent=e};var $I={enumerable:!1,configurable:!0,get:function(){return this.class}},qc=ne.vnode;ne.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},i=r.indexOf("-")===-1;for(var o in n){var c=n[o];if(!(o==="value"&&"defaultValue"in n&&c==null||UI&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&c===!0?c="":l==="translate"&&c==="no"?c=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||WI(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":PI.test(o)&&(o=l):l=o="oninput":i&&zI.test(o)?o=o.replace(kI,"-$&").toLowerCase():c===null&&(c=void 0),l==="oninput"&&s[o=l]&&(o="oninputCapture"),s[o]=c}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=ln(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=ln(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",$I)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=wI,qc&&qc(e)};var Kc=ne.__r;ne.__r=function(e){Kc&&Kc(e),e.__c};var el=ne.diffed;ne.diffed=function(e){el&&el(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 QI({el:e,className:t,stronger:n,strongest:r,variant:s,medium:i,large:o,testId:c,wide:l,children:u}){const h=e||"p",d=f(()=>({[`${Ve}--${O.CAPTION}`]:s===O.CAPTION,[`${Ve}--${O.CAPTION}-${pt.WIDE}`]:s===O.CAPTION&&l,[`${Ve}--${O.CAPTION}-${pt.STRONGER}`]:s===O.CAPTION&&n,[`${Ve}--${O.BODY}`]:s===O.BODY,[`${Ve}--${O.BODY}-${pt.WIDE}`]:s===O.BODY&&l,[`${Ve}--${O.BODY}-${pt.STRONGER}`]:s===O.BODY&&n,[`${Ve}--${O.BODY}-${pt.STRONGEST}`]:s===O.BODY&&r,[`${Ve}--${O.SUBTITLE}`]:s===O.SUBTITLE,[`${Ve}--${O.SUBTITLE}-${pt.STRONGER}`]:s===O.SUBTITLE&&n,[`${Ve}--${O.TITLE}`]:s===O.TITLE&&!i&&!o,[`${Ve}--${O.TITLE}-${pt.MEDIUM}`]:s===O.TITLE&&i,[`${Ve}--${O.TITLE}-${pt.LARGE}`]:s===O.TITLE&&o}),[s,l,n,i,o,r]);return a(h,{className:P([`${Ve}`,d,t]),"data-testid":c,children:u})}const R=De(QI),Ku=Wr({i18n:new uo().i18n,loadingContext:"",commonProps:{},updateCore:te}),HI=()=>Fr(Ku),Y=HI;const GI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04LjcgMi4xIDYuNmMuMi42LjguOCAxLjQuNy42LS4xIDEtLjcuOC0xLjJsLTEuMy02LjggMi45LTQuOC01LjktNS41LTcuNiA5IDUgNC43IDEgNi4yYzAgLjcuNyAxLjIgMS41IDFaIi8+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBkPSJNMzEuNyAxMDMuNmMuMy40IDEuMiA2LjYgMS41IDkgMCAuNS42IDEgMS4xIDFoLjNjLjcgMCAxLjItLjYgMS4xLTEuM2wtLjctOS4xIi8+CiAgICA8cGF0aCBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWx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g4LjdWMS40WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjMDAxMTJDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0iTTIuMyAxNjhoMjE5LjQiLz4KICAgIDxwYXRoIGZpbGw9IiMwMDExMkMiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",Ge=e=>Br(e),Di=(()=>{const e=new Set,t=(r,s,i,o)=>{let c=o==null?void 0:o[i];return c=ee(c)?c:ro,!kn(c(r[i]),c(s[i]))};return Object.defineProperty(r=>(s,i)=>{try{for(const o in s)if(e.add(o),t(s,i,o,r))return!1;for(const o in i)if(!e.has(o)&&(e.add(o),t(s,i,o,r)))return!1;return!0}finally{e.clear()}},"exclude",{value:te})})(),tl=/^\s+|\s+(?=\s|$)/g,rr=(e,t)=>(t?typeof t=="string"?t:(t==null?void 0:t.value)??"":"").replace(tl,"")||e.replace(tl,"")||void 0,Li=(e,t,n)=>P(rr("",n),rr(rr("",t)||"",e)),xa=(e,t=[],n=[])=>P([...n,...t==null?void 0:t.map(r=>e?`${e}--${r}`:r)]),Ra=e=>Qn(e,(e==null?void 0:e.value)??e),ZI=(e,t,n,r,s)=>{const i=p(c=>{c.preventDefault(),r||s==null||s(c)},[r,s]);return{classes:f(()=>xa(n,t,[n,e]),[t,e]),click:i}},wa=ZI,ht="adyen-pe-button",na=`${ht}-actions`,nl=`${ht}--icon`,JI=`${ht}--icon-content`,VI=`${na}__container-wrapper`,XI=`${ht}__label`,qI=`${ht}__icon-right`,KI=`${ht}__icon-left`,eg=`${ht}--condensed`,tg=`${ht}--full-width`,ng=`${ht}--loading`;var ae=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.TERTIARY_WITH_BACKGROUND="tertiary-with-background",e.LINK="link",e))(ae||{});const rg=({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}`})}),ra=rg,sg=e=>e&&e.current instanceof HTMLAnchorElement,ig=e=>e&&e.current instanceof HTMLButtonElement;function og({variant:e=ae.PRIMARY,disabled:t=!1,onClick:n,classNameModifiers:r=[],iconLeft:s,iconRight:i,type:o="button",children:c,className:l,iconButton:u=!1,fullWidth:h,condensed:d,href:g,state:m="default",...N},M){const T=f(()=>rr("",l)||"",[l]),y=f(()=>Ra(t),[t]),{classes:A,click:S}=wa(T,[...r,e],ht,y,n),E=f(()=>({className:P(u?`${nl} ${A}`:A,{[nl]:u,[eg]:d,[tg]:h,[ng]:m==="loading"}),disabled:t||m==="loading",...N}),[A,d,t,h,u,N,m]),j=f(()=>u?a("div",{className:`${JI}`,children:c}):a(J,{children:[m==="loading"&&a(ra,{size:"x-small"}),s&&a("span",{className:KI,children:s}),a(R,{className:XI,el:oe.SPAN,variant:O.BODY,children:c}),i&&a("span",{className:qI,children:i})]}),[c,u,s,i,m]);return g?(M&&ig(M)&&console.warn("Button ref should be of type HTMLAnchorElement"),a("a",{...E,href:g,ref:M,children:j})):(M&&sg(M)&&console.warn("Button ref should be of type HTMLButtonElement"),a("button",{...E,ref:M,type:o,onClick:S,children:j}))}const de=Ge(og),rl={md:680,lg:1024},Qt=({title:e,message:t,imageDesktop:n,imageMobile:r,withImage:s,centered:i,refreshComponent:o,onContactSupport:c,translationValues:l,absolutePosition:u=!0,outlined:h=!0,renderSecondaryButton:d})=>{const{i18n:g,updateCore:m}=Y(),N=p(M=>Array.isArray(M)?M.map((T,y)=>y===0?a(J,{children:[g.get(T),l&&l[T]&&a(J,{children:l[T]})]}):a(J,{children:[a("br",{}),g.get(T),l&&l[T]&&a(J,{children:l[T]})]})):g.get(M),[g,l]);return a("div",{className:P(["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":i}),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: ${rl.md}px)`,srcSet:n}),a("source",{type:"image/svg+xml",media:`(max-width: ${rl.md}px)`,srcSet:r}),a("img",{srcSet:n??GI,alt:g.get("thereWasAnUnexpectedError")})]})}),a(R,{variant:O.TITLE,children:g.get(e)}),t&&a(R,{variant:O.BODY,children:N(t)}),(c||o||d)&&a("div",{className:"adyen-pe-error-message-display__button",children:[d&&d(),c&&a(de,{onClick:c,children:g.get("contactSupport")}),!c&&o&&a(de,{onClick:m,children:g.get("refresh")})]})]})},gn=(e,t)=>ee(e.endpoints[t]),ag={transactions:e=>gn(e,"getTransactions"),transactionDetails:e=>gn(e,"getTransaction"),payouts:e=>gn(e,"getPayouts"),payoutDetails:e=>gn(e,"getPayout"),reports:e=>gn(e,"getReports"),capitalOverview:e=>gn(e,"getDynamicGrantOffersConfiguration"),capitalOffer:e=>gn(e,"getDynamicGrantOffer")},jo=ag,cg=async e=>{const t=su(),n=e.context.refreshing;let r,s,i=e.subscribe(o=>{if(Un(o)){i(),i=null,t.resolve();return}if(r??(r=e.context.refreshing),!e.context.refreshing){if(Ot(e.context.isExpired)&&(s??(s=!(n||r)))){s=!1,e.refresh();return}t.resolve()}});return t.promise},ed=cg,lg=async(e,t)=>{var n;return await ed(t),be(await((n=jo[e])==null?void 0:n.call(jo,t.context)))},ug=lg,dg=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"}},hg=dg,td=Wr({endpoints:F,hasError:!1,http:im,isExpired:void 0,isFrozen:!1,refresh:te,refreshing:!1}),mg=({children:e,session:t,type:n})=>{const{http:r,refresh:s}=f(()=>t,[t]),[,i]=w(0),[o,c]=w(0),[l,u]=w();return B(()=>{ug(n,t).then(u)},[t,n]),B(()=>t.subscribe(h=>{(Un(h)?c:i)(g=>g+1)}),[o]),a(td.Provider,{value:{...t.context,http:r,refresh:s},children:!V(l)&&(l?ln(e):a(Qt,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[hg(n),"contactSupportForHelp"]}))})},je=()=>Fr(td),Ig=(e=!1)=>{const[t,n]=w(e),r=p(i=>n(i),[]),s=p(()=>n(i=>!i),[]);return[t,r,s]},Dt=Ig,gg=({i18n:e=new uo().i18n,children:t,commonProps:n,loadingContext:r,updateCore:s,externalErrorHandler:i})=>{const[o,c]=Dt(!1),l=f(()=>n||{},[n]),u=f(()=>r??"",[r]);return B(()=>{(async()=>{await(e==null?void 0:e.ready),c(!0)})().catch()},[]),o?a(Ku.Provider,{value:{i18n:e,commonProps:l,loadingContext:u,updateCore:s,externalErrorHandler:i},children:ln(t)}):null},Mg=gg;var Jl;class nd{constructor(t){k(this,"_component");k(this,"_node",null);k(this,"_id",`${(Jl=this.constructor)==null?void 0:Jl.type}-${oo()}`);k(this,"defaultProps",{});k(this,"props");k(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=rt(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)}}k(nd,"type");const Ng=nd;class fg extends Ng{constructor(n){super(n);k(this,"componentRef",null);k(this,"componentToRender",null);k(this,"elementRef");k(this,"onContactSupport");k(this,"customClassNames");k(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,i;return(s=this.componentRef)!=null&&s.setStatus?this.componentRef.setStatus(n,r):(i=this.setUIElementStatus)==null||i.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(mg,{type:this.type,session:n.session,children:a(Mg,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:r,externalErrorHandler:s,children:this.componentToRender&&a("div",{className:P("adyen-pe-component",this.customClassNames),children:this.componentToRender()})})},performance.now())}}const Wn=fg;function yt({fetchOptions:{keepPrevData:e,onSuccess:t,enabled:n}={keepPrevData:!0},queryFn:r}){const s=$(!1),i={error:void 0,data:void 0,isFetching:Ot(n)},o=(h,d)=>{switch(d.type){case"loading":return{...i,isFetching:!0,data:e?h.data:void 0};case"fetched":return{...i,data:d.payload,isFetching:!1};case"error":return{...i,error:d.payload,isFetching:!1};default:return h}},[c,l]=mo(o,i),u=p(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 B(()=>(s.current=!1,Ot(n)&&u(),()=>{s.current=!0}),[n,u]),c}const yg=Ge(({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"})]})),Io=yg,Tg=Ge(({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"})]})),za=Tg,Pa="adyen-pe-accordion",ka=Pa+"__header",pg=ka+"-container",Ag=ka+"-controller",_g=Pa+"__content";function sl({children:e,classNames:t,header:n,headerInformation:r}){var l;const[s,i]=w(!1),o=$(null),c=p(()=>{i(!s)},[s]);return a("div",{className:P(Pa,t),children:[a("h3",{className:ka,children:[a("button",{id:"accordion-controller","aria-controls":"accordion-content",className:pg,onClick:c,"aria-expanded":s,children:a("div",{className:Ag,children:[n,s?a(za,{height:8,width:15}):a(Io,{height:8,width:15})]})}),r&&a("div",{children:r})]}),a("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:s?(l=o==null?void 0:o.current)==null?void 0:l.offsetHeight:0},className:_g,children:a("div",{ref:o,children:e})})]})}const Gt="adyen-pe-card",rd=`${Gt}__body`,sd=`${Gt}__header`,Sg=`${Gt}__title`,Dg=`${Gt}__subtitle`,Lg=`${sd}-content`,Eg=`${rd}--with-title`,Cg=`${Gt}--no-outline`,Og=`${Gt}--no-padding`,vg=`${Gt}--filled`,bg=`${Gt}__footer`;const jg=({title:e,subTitle:t,children:n,footer:r,el:s,renderHeader:i,renderFooter:o,filled:c,noOutline:l,noPadding:u,classNameModifiers:h,testId:d})=>{const g=s||"header";return a("section",{className:P(Gt,{[vg]:c,[Cg]:l,[Og]:u},h),"data-testid":d,children:[(e||i)&&a(g,{className:sd,children:(e||i)&&a("div",{className:Lg,children:[i||a("span",{className:Sg,children:e}),t&&a("div",{className:Dg,children:t})]})}),a("div",{className:P(rd,{[Eg]:e||i}),children:n}),(r||o)&&a("footer",{className:bg,children:o||r})]})},ui=jg,il="2-digit",Ua="long",ol="numeric",id="short",xg="shortOffset",Yr={month:Ua,day:ol,year:ol},od={hour:il,minute:il},ad={...Yr,...od,month:id,hour12:!1},cd={...ad,year:void 0},ld={...Yr,month:"short"},Rg=Yr,wg=cd,zg={...Yr,weekday:Ua},al={...Yr,month:id},Pg=ad,kg=cd,Ug={...Yr,...od,weekday:Ua,timeZoneName:xg},it={sm:480,md:768,lg:1024},Vs="adyen-pe-structured-list",ud=`${Vs}__item`,cl=`${Vs}__grid`,Wg=`${Vs}__content`,Fg=`${Vs}__label`,Bg=`${ud}--has-highlight`;const Yg=e=>{const{i18n:t}=Y();return f(()=>e.map(n=>({key:n.key,value:n.value,id:oo(),label:t.get(n.key)})),[t,e])},$g="6-6";function xn({items:e,highlightable:t,renderValue:n,renderLabel:r,layout:s=$g,grid:i=!0,classNames:o}){const[c,l]=f(()=>s.split("-").map(d=>`${cl}--width-${d}-of-12`),[s]),u=Yg(e),{i18n:h}=Y();return a("div",{"aria-label":h.get("structuredList"),className:P(Vs,o),children:u.map((d,g)=>a("dl",{className:P(ud,{[Bg]:t,[cl]:i}),children:[a("dt",{className:P(Fg,c),children:r?r(d.label,e[g].key):a(R,{variant:O.BODY,children:d.label})}),a("dd",{"aria-label":`${h.get(d.key)} ${h.get("value")}`,className:P(Wg,l),children:n?n(d.value,d.key):a(R,{variant:O.BODY,children:d.value})})]},`${g}_${d.id||"0"}`))})}const dd="adyen-pe-overview-details",Wa=`${dd}__skeleton`,Qg=`${Wa}-container`,Hg=`${Wa}--loading-content`,Gg=`${dd}__status-skeleton`,Zg=({skeletonRowNumber:e=0})=>{const t=P(Wa,Hg),n=Array.from({length:e}),r=Array.from({length:2});return a("div",{className:Qg,children:[a("div",{className:Gg,children:r.map((s,i)=>a("span",{className:t},`status-skeleton-${i}`))}),n.map((s,i)=>a("span",{className:t},`skeleton-${i}`))]})},Fa=De(Zg),sa=e=>{const{i18n:t}=Y();return p((...n)=>{const r=t.timezone;try{return e(...n)}finally{t.timezone=r}},[t,e])},Jg=e=>{const{i18n:t}=Y(),n=sa(p(()=>(t.timezone=void 0,t.timezone=e,t.timezone),[t,e]));return f(n,[n])},Vg=e=>{const{i18n:t}=Y(),n=Jg(e),r=sa(p((...i)=>(t.timezone=n,t.date(...i)),[t,n])),s=sa(p((...i)=>(t.timezone=n,t.fullDate(...i)),[t,n]));return{dateFormat:r,fullDateFormat:s}},Zt=Vg;const Xs="adyen-pe-payout-data",Xg=`${Xs}__title`,qg=`${Xs}__title--ba-id`,Ba=`${Xs}__content`,Hn=`${Ba}--section`,di=`${Ba}--card`,ll=`${di}-title`,ns=`${Hn}-amount`,ul=`${ns}-gross`,Kg=`${ns}-net`,eM=`${Xs}--unpaid-amount`,tM=({balanceAccountId:e,balanceAccountDescription:t,payout:n,isFetching:r})=>{var h;const{payout:s}=n??F,{dateFormat:i}=Zt("UTC"),{i18n:o}=Y(),c=f(()=>{var g,m;const d=(m=(g=n==null?void 0:n.amountBreakdowns)==null?void 0:g.adjustmentBreakdown)==null?void 0:m.reduce((N,M)=>{var E,j,L,x,_,z,b;const T=(E=M==null?void 0:M.amount)!=null&&E.value&&((j=M==null?void 0:M.amount)!=null&&j.currency)?o.amount((L=M==null?void 0:M.amount)==null?void 0:L.value,(x=M==null?void 0:M.amount)==null?void 0:x.currency,{hideCurrency:!0}):(((_=M==null?void 0:M.amount)==null?void 0:_.value)??"").toString(),y=`${M==null?void 0:M.category}`,A=o.get(y),S=M!=null&&M.category&&A!==y?A:M==null?void 0:M.category;return M!=null&&M.category&&T&&S&&N[(z=M==null?void 0:M.amount)!=null&&z.value&&((b=M==null?void 0:M.amount)==null?void 0:b.value)<0?"subtractions":"additions"].push({key:S,value:T}),N},{subtractions:[],additions:[]});return d==null||d.subtractions.sort((N,M)=>N.key.localeCompare(M.key)),d==null||d.additions.sort((N,M)=>N.key.localeCompare(M.key)),d},[o,n]),l=f(()=>{var g,m;const d=(m=(g=n==null?void 0:n.amountBreakdowns)==null?void 0:g.fundsCapturedBreakdown)==null?void 0:m.reduce((N,M)=>{var T,y,A,S;return((T=M==null?void 0:M.amount)==null?void 0:T.value)===0||(y=M==null?void 0:M.amount)!=null&&y.value&&M.category&&N.push({key:M.category,value:o.amount((A=M==null?void 0:M.amount)==null?void 0:A.value,(S=M==null?void 0:M.amount)==null?void 0:S.currency,{hideCurrency:!0})}),N},[]);return d==null||d.sort((N,M)=>N.key==="capture"?-1:M.key==="capture"?1:N.key.localeCompare(M.key)),d},[n,o]),u=f(()=>s!=null&&s.createdAt?i(new Date(s==null?void 0:s.createdAt),zg):"",[s,i]);return a(J,{children:s?a("div",{className:Xs,children:[a("div",{className:Xg,children:[a(R,{variant:O.SUBTITLE,stronger:!0,children:o.get("netPayout")}),a(R,{variant:O.TITLE,large:!0,children:`${o.amount(s.payoutAmount.value,s.payoutAmount.currency,{hideCurrency:!0})} ${s.payoutAmount.currency}`}),a(R,{variant:O.BODY,children:u}),a("div",{className:Hn,children:[t&&a(R,{variant:O.CAPTION,stronger:!0,wide:!0,children:`${t}`}),a(R,{variant:O.CAPTION,className:qg,children:`${e}`})]})]}),a("div",{className:Ba,children:[a("div",{className:Hn,children:(s==null?void 0:s.fundsCapturedAmount)&&(l&&Object.keys(l).length>0?a(sl,{header:a(R,{variant:O.BODY,children:o.get("fundsCaptured")}),headerInformation:a(R,{variant:O.BODY,children:o.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)}),children:a("div",{className:Hn,children:a("div",{className:di,children:a(ui,{noPadding:!0,children:a(xn,{items:l})})})})}):a("div",{className:P(ns,ul),children:[a(R,{variant:O.BODY,children:o.get("fundsCaptured")}),a(R,{variant:O.BODY,children:o.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)})]}))}),a("div",{className:Hn,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(sl,{header:a(R,{variant:O.BODY,children:o.get("adjustments")}),headerInformation:a(R,{variant:O.BODY,children:o.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:di,children:a(ui,{noPadding:!0,renderHeader:a(R,{className:ll,variant:O.CAPTION,stronger:!0,children:o.get("additions")}),children:a(xn,{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:di,children:a(ui,{noPadding:!0,renderHeader:a(R,{className:ll,variant:O.CAPTION,stronger:!0,children:o.get("subtractions")}),children:a(xn,{items:c==null?void 0:c.subtractions})})})]}):a("div",{className:P(ns,ul),children:[a(R,{variant:O.BODY,children:o.get("adjustments")}),a(R,{variant:O.BODY,children:o.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)})]})}),a("div",{className:P(Hn),children:a("div",{className:P(ns,Kg),children:[a(R,{variant:O.BODY,stronger:!0,children:o.get("netPayout")}),a(R,{variant:O.BODY,stronger:!0,children:o.amount(s.payoutAmount.value,s.payoutAmount.currency)})]})})]}),((h=n==null?void 0:n.payout)==null?void 0:h.unpaidAmount)&&a("div",{className:eM,children:[a(R,{variant:O.BODY,children:o.get("remainingAmount")}),a(R,{variant:O.BODY,children:o.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):a(Fa,{skeletonRowNumber:6})})};const dl={"angle-right":()=>Promise.resolve().then(()=>require("./angle-right-1899f206.cjs")),"checkmark-circle-fill":()=>Promise.resolve().then(()=>require("./checkmark-circle-fill-edd7d360.cjs")),"checkmark-square-fill":()=>Promise.resolve().then(()=>require("./checkmark-square-fill-4f33ffa1.cjs")),checkmark:()=>Promise.resolve().then(()=>require("./checkmark-9399af30.cjs")),"chevron-down":()=>Promise.resolve().then(()=>require("./chevron-down-2eec7c98.cjs")),"chevron-left":()=>Promise.resolve().then(()=>require("./chevron-left-20950420.cjs")),"chevron-right":()=>Promise.resolve().then(()=>require("./chevron-right-a975d4ef.cjs")),"chevron-up":()=>Promise.resolve().then(()=>require("./chevron-up-ad09fd0d.cjs")),copy:()=>Promise.resolve().then(()=>require("./copy-969cde48.cjs")),"cross-circle-fill":()=>Promise.resolve().then(()=>require("./cross-circle-fill-afd9ea6e.cjs")),cross:()=>Promise.resolve().then(()=>require("./cross-6133edca.cjs")),download:()=>Promise.resolve().then(()=>require("./download-ffe5624f.cjs")),filter:()=>Promise.resolve().then(()=>require("./filter-9a3e4c7a.cjs")),"info-filled":()=>Promise.resolve().then(()=>require("./info-filled-7e7648a0.cjs")),"minus-circle-outline":()=>Promise.resolve().then(()=>require("./minus-circle-outline-0f20287b.cjs")),"plus-circle-outline":()=>Promise.resolve().then(()=>require("./plus-circle-outline-58879e3c.cjs")),square:()=>Promise.resolve().then(()=>require("./square-a26e52f2.cjs")),"warning-filled":()=>Promise.resolve().then(()=>require("./warning-filled-ed9b80d5.cjs")),warning:()=>Promise.resolve().then(()=>require("./warning-4d681371.cjs"))},nM=({className:e,name:t,...n})=>{const[r,s]=w(null);return B(()=>{dl[t]?dl[t]().then(({default:i})=>{s(a(i,{}))}):(s(null),console.error(`Icon with name "${t}" does not exist.`))},[t]),r&&a("span",{className:P("adyen-pe-icon",e),role:"img","aria-hidden":!0,...n,children:r})},He=nM;var ve=(e=>(e.WARNING="warning",e.CRITICAL="critical",e.HIGHLIGHT="highlight",e.SUCCESS="success",e))(ve||{}),an=(e=>(e.DEFAULT="default",e.TIP="tip",e))(an||{});const rM=({className:e,type:t})=>{switch(t){case ve.WARNING:return a(He,{name:"warning-filled",className:e});case ve.CRITICAL:return a(He,{name:"cross-circle-fill",className:e});case ve.HIGHLIGHT:return a(He,{name:"info-filled",className:e});case ve.SUCCESS:default:return a(He,{name:"checkmark-circle-fill",className:e})}};const sM=({className:e,description:t,title:n,type:r,children:s,onClose:i,variant:o=an.DEFAULT})=>a("div",{className:P("adyen-pe-alert",`adyen-pe-alert--${r}`,`adyen-pe-alert--${o}`,e),role:"alert",children:[a(rM,{type:r,className:"adyen-pe-alert__icon"}),a("div",{className:"adyen-pe-alert__content",children:[n&&o!==an.TIP&&a(R,{className:"adyen-pe-alert__title",el:oe.DIV,variant:O.BODY,wide:!0,strongest:!0,children:n}),t&&a(R,{className:"adyen-pe-alert__description",el:oe.DIV,variant:o!==an.TIP?O.CAPTION:O.BODY,wide:!0,children:t}),s]}),i&&o!==an.TIP&&a("div",{className:"adyen-pe-alert__close-button",children:a(de,{iconButton:!0,variant:ae.TERTIARY,onClick:i,children:a(He,{name:"cross"})})})]}),cn=sM;var go=(e=>(e.BUTTONS_END="buttons-end",e.FILL_CONTAINER="fill-container",e.SPACE_BETWEEN="space-between",e.VERTICAL_STACK="vertical-stack",e))(go||{}),hd=(e=>(e.BUTTONS_START="buttons-start",e))(hd||{});const iM={...go,...hd};function oM({actions:e,layout:t=iM.BUTTONS_END}){const n=()=>`${na}--${t}`,r=i=>{const o=e.length-1;return i===o?ae.PRIMARY:ae.SECONDARY},s=f(()=>[...e].reverse(),[e]);return a("div",{className:na,children:a("div",{className:`${VI} ${n()}`,role:"group",children:s.map((i,o)=>a(de,{"aria-label":i.title,disabled:i.disabled,variant:i.variant||r(o),onClick:i.event,state:i.state??"default",children:i.renderTitle?i.renderTitle(i.title):i.title},`${o}_${i.title||"0"}`))})})}const md=De(oM);var nt=(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))(nt||{}),sr=(e=>(e[e.INDETERMINATE=0]="INDETERMINATE",e[e.PARTIAL=1]="PARTIAL",e[e.FULL=2]="FULL",e))(sr||{}),Pe=(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))(Pe||{}),Vr=(e=>(e.IN_PROGRESS="in_progress",e.COMPLETED="completed",e.FAILED="failed",e))(Vr||{}),Tn=(e=>(e.PARTIAL="partial",e.FULL="full",e))(Tn||{});const Id=Wr({availableItems:le,primaryAction:te,secondaryAction:te,transaction:F,extraFields:F}),aM=De(({children:e,lineItems:t,refundAvailable:n,refundDisabled:r,setActiveView:s,setPrimaryAction:i,setSecondaryAction:o,transaction:c,transactionNavigator:l,extraFields:u})=>{const{i18n:h}=Y(),{currentTransaction:d,canNavigateBackward:g,canNavigateForward:m,backward:N,forward:M}=l,T=f(()=>({title:h.get("refundAction")}),[h]),y=f(()=>!n||r,[n,r]),A=p(()=>void(!y&&s(nt.REFUND)),[y,s]),S=f(()=>{if(d===c.id){if(g)return 2;if(m)return 1}},[g,m,d,c]),E=p(()=>{switch(S){case 2:return void N();case 1:return void M()}},[S,N,M]),j=f(()=>{switch(S){case 2:return{title:h.get("refund.returnToRefund"),renderTitle:L=>a(J,{children:[a(He,{style:{transform:"scaleX(-1)"},name:"angle-right"}),a("span",{children:L})]})};case 1:return{title:h.get("refund.goToPayment"),renderTitle:L=>a(J,{children:[a(He,{name:"angle-right"}),a("span",{children:L})]})}}},[S,h]);return B(()=>{i(n?Object.freeze({disabled:y,event:A,variant:ae.PRIMARY,...T}):void 0)},[A,n,y,T,i]),B(()=>{o(S&&j?Object.freeze({disabled:!1,event:E,variant:ae.SECONDARY,...j}):void 0)},[S,E,j,o]),a(Id.Provider,{value:{availableItems:t,primaryAction:A,secondaryAction:E,transaction:c,extraFields:u},children:e})}),cM=()=>Fr(Id),Ya=Object.freeze(["requested_by_customer","issue_with_item_sold","fraudulent","duplicate","other"]),lM=({refundAmount:e,refundReason:t,refundInProgress:n,refundTransaction:r,setActiveView:s,transactionId:i})=>{const{i18n:o}=Y(),c=f(()=>{const N=o.amount(e.value,e.currency);return{title:o.get("refundPayment",{values:{amount:N}})}},[e,o]),l=f(()=>({title:o.get("refundAction")}),[o]),u=f(()=>({title:`${o.get("inProgress")}..`,state:"loading"}),[o]),h=f(()=>({path:{transactionId:i}}),[i]),d=f(()=>({amount:e,refundReason:t}),[e,t]),g=p(()=>r==null?void 0:r({body:d,contentType:"application/json"},h).then(()=>{s(nt.REFUND_SUCCESS)}).catch(()=>{s(nt.REFUND_ERROR)}),[r,h,d,s]),m=f(()=>n?u:e.value>0?c:l,[e,n,c,l,u]);return{refundAction:g,refundActionLabel:m}},uM=({interactionsDisabled:e,refundAmount:t,setActiveView:n,setPrimaryAction:r,setSecondaryAction:s,...i})=>{const{refundAction:o,refundActionLabel:c}=lM({...i,refundAmount:t,setActiveView:n}),{i18n:l}=Y(),u=f(()=>e||t.value<=0,[t,e]),h=p(()=>!u&&o(),[u,o]),d=e,g=f(()=>l.get("back"),[l]),m=p(()=>void(!d&&n(nt.DETAILS)),[d,n]);return B(()=>{r(Object.freeze({disabled:u,event:h,variant:ae.PRIMARY,...c}))},[h,u,c,r]),B(()=>{s(Object.freeze({disabled:d,event:m,title:g,variant:ae.SECONDARY}))},[m,d,g,s]),{primaryAction:h,secondaryAction:m}},dM=({availableAmount:e,currency:t,interactionsDisabled:n,items:r,refundMode:s})=>{const[i,o]=w(0),c=f(()=>{switch(s){case Pe.NON_REFUNDABLE:return 0;case Pe.PARTIAL_LINE_ITEMS:case Pe.PARTIAL_AMOUNT:return i;case Pe.FULL_AMOUNT:default:return e}},[e,r,s,i]),l=f(()=>Object.freeze({currency:t,value:c}),[c,t]),u=f(()=>!n&&s===Pe.PARTIAL_AMOUNT,[n,s]),h=p(d=>void(u&&o(ft(0,d,e))),[e,u]);return B(()=>{o(e)},[e]),[l,h]},hl=(e,t,n,r=0)=>{const{...s}=e.get(n.id),i=ft(0,Math.trunc(r),s.quantity+=n.quantity);s.quantity-=i,e.set(n.id,Object.freeze(s)),i>0&&t.push(Object.freeze({...s,quantity:i}))},ml=(e,t,n=le)=>{const r=new Map((n==null?void 0:n.map(({id:i,quantity:o})=>[i,o]))??le),s=[];return t.forEach(i=>{const o=r.get(i.id);V(o)?s.push(i):r.delete(i.id)&&hl(e,s,i,o)}),r.forEach((i,o)=>{hl(e,s,{id:o,quantity:0},i)}),s.length>0?Object.freeze(s):le},hM=({currency:e,lineItems:t})=>{const[n,r]=w(le),s=f(()=>{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??le)},[e,t]),i=f(()=>(t==null?void 0:t.filter(({id:l})=>s.has(l)))??le,[n,t,s]),o=p(function(l){r(u=>{const d=[...arguments.length===0?new Map(u.map(({id:g})=>[g,0])):new Map((l==null?void 0:l.map(g=>[g,0]))??le)].map(([g,m])=>({id:g,quantity:m}));return ml(s,u,d)})},[s]),c=p(l=>r(u=>ml(s,u,l)),[s]);return{availableItems:i,clearItems:o,items:n,updateItems:c}},mM=({interactionsDisabled:e,refundMode:t})=>{const[n,r]=w(Ya[0]),s=f(()=>!e&&t!==Pe.NON_REFUNDABLE,[e,t]),i=p(o=>void(s&&r(o)),[s]);return[n,i]},ai=e=>{setTimeout(()=>{throw e},0)};function Ei({queryFn:e,options:t}){const{retry:n=!1,retryDelay:r=1e3,onSuccess:s,onError:i,onSettled:o,shouldRetry:c}=t||F,[l,u]=w(null),[h,d]=w(null),[g,m]=w("idle"),N=$(!0),M=$(0),T=p(()=>{u(null),d(null),m("idle"),M.current=0},[]),y=p(()=>{M.current=0},[]),A=p(async(...S)=>{try{m("loading"),d(null);const E=await(e==null?void 0:e(...S));return N.current&&(u(E),m("success")),xr.then(()=>{s&&on(s,E).catch(ai),o&&on(o,E,null).catch(ai),y()}),E}catch(E){let j=0;if(kr(n)&&(!c||c(E))?j=Math.max(0,Math.floor(n)):j=0,M.current++<j){const L=ee(r)?r(M.current):r??1e3;return await new Promise(x=>setTimeout(x,L)),A(...S)}throw N.current&&(d(E),m("error")),xr.then(()=>{i&&on(i,E).catch(ai),o&&on(o,void 0,E).catch(ai),y()}),E}},[e,s,o,n,c,r,y,i]);return B(()=>()=>{N.current=!1},[]),f(()=>({data:l,error:h,status:g,isIdle:g==="idle",isLoading:g==="loading",isSuccess:g==="success",isError:g==="error",mutate:A,reset:T}),[l,h,g,A,T])}const gd=Wr({amount:0,availableAmount:0,availableItems:le,clearItems:te,currency:"",interactionsDisabled:!1,items:le,primaryAction:te,refundMode:Pe.FULL_AMOUNT,refundReason:Ya[0],secondaryAction:te,setAmount:te,setRefundReason:te,transactionId:"",updateItems:te}),IM=De(({availableAmount:e,children:t,currency:n,lineItems:r,refreshTransaction:s,refundMode:i,setActiveView:o,setPrimaryAction:c,setSecondaryAction:l,transactionId:u})=>{const{isLoading:h,mutate:d}=Ei({queryFn:je().endpoints.initiateRefund}),{availableItems:g,clearItems:m,items:N,updateItems:M}=hM({currency:n,lineItems:r}),T=h,[y,A]=dM({availableAmount:e,currency:n,interactionsDisabled:T,items:N,refundMode:i}),[S,E]=mM({interactionsDisabled:T,refundMode:i}),{value:j}=y,{primaryAction:L,secondaryAction:x}=uM({interactionsDisabled:T,refreshTransaction:s,refundAmount:y,refundInProgress:h,refundReason:S,refundTransaction:d,setActiveView:o,setPrimaryAction:c,setSecondaryAction:l,transactionId:u});return a(gd.Provider,{value:{amount:j,availableAmount:e,availableItems:g,clearItems:m,currency:n,interactionsDisabled:T,items:N,primaryAction:L,refundMode:i,refundReason:S,secondaryAction:x,setAmount:A,setRefundReason:E,transactionId:u,updateItems:M},children:t})}),$a=()=>Fr(gd),gM=()=>{let[e,t,n,r]=le;const s=()=>!!(e&&e===r&&n),i=()=>!!(e&&e===n&&r);let o=null;const c=()=>{s()&&(t=e,e=n,d())},l=()=>{i()&&(t=e,e=r,d())},u=(g,m)=>{const N=e;e=t=n=r=void 0,!Go(g)&&!Go(m)&&(n=g,r=m,e=N===n||N===r?N:n,N!==e&&d())},h=g=>{Ne(g)?o=null:ee(g)&&o!==(o=g)&&d()},d=()=>{const g=t,m=e;t=void 0,o==null||o(X({from:ie(()=>g),to:ie(()=>m)}))};return X({backward:W(c),forward:W(l),canNavigateBackward:ie(s),canNavigateForward:ie(i),currentTransaction:ie(()=>e),onNavigation:{set:h},reset:W(u)})},MM=gM,NM=e=>{const[t,n]=w(e),[r,s]=w(e.id),[i,o]=w(performance.now()),{getTransaction:c}=je().endpoints,l=$(MM()),u=l.current,h=$(!1),d=$(!1),g=$(e),m=$(r),N=f(()=>!!c&&!!r&&h.current,[r,c]),M=p(()=>c(F,{path:{transactionId:r}}),[r,c]),{data:T,error:y,isFetching:A}=yt({fetchOptions:{enabled:N},queryFn:M}),S=p(()=>s(void 0),[]);return B(()=>{r||s(t.id)},[r,t]),B(()=>{var L;const E=l.current,j=g.current;return j.category==="Refund"&&(E.reset(j.id,(L=j.refundMetadata)==null?void 0:L.originalPaymentId),E.onNavigation=({to:x})=>{h.current=!0,o(performance.now()),x&&s(x)}),()=>{h.current=!1,E.onNavigation=null,E.reset()}},[]),B(()=>{if(d.current!==A&&!(d.current=A))if(!T||y)s(m.current);else{const E=g.current;n(()=>({...T.id===E.id?E:F,...T})),m.current=r}},[T,y,A,r,i]),{fetchingTransaction:A,refreshTransaction:S,transaction:t,transactionNavigator:u}},fM=NM,yM=(e,t)=>{let n=t?(t==null?void 0:t.length)>0:!1,r=!1;return t==null||t.forEach(s=>{const i=!!e(s);n&&(n=i),r||(r=i)}),{every:n,some:r}},ci=["completed","in_progress","failed"],TM=e=>{var S,E,j;const{i18n:t}=Y(),n=e==null?void 0:e.refundDetails,r=(n==null?void 0:n.refundMode)??Pe.FULL_AMOUNT,s=be(n==null?void 0:n.refundLocked),i=r!==Pe.NON_REFUNDABLE,o=(S=e==null?void 0:e.originalAmount)==null?void 0:S.value,c=f(()=>{var L;return e?Math.max(0,((L=n==null?void 0:n.refundableAmount)==null?void 0:L.value)??0):0},[n,e]),l=ee(je().endpoints.initiateRefund),u=l&&i&&c>0,h=((E=n==null?void 0:n.refundableAmount)==null?void 0:E.currency)??(e==null?void 0:e.amount.currency)??"",d=!u||s,g=f(()=>{var x;const L=((x=e==null?void 0:e.refundDetails)==null?void 0:x.refundStatuses)??[];return(L==null?void 0:L.filter(_=>_.amount.value!==0).sort((_,z)=>ci.includes(_.status)&&ci.includes(z.status)&&ci.indexOf(_.status)>ci.indexOf(z.status)?0:-1).reduce((_,z)=>{var Q;const b=z.status,H=~z.amount.value+1;return _!=null&&_[b]?((Q=_==null?void 0:_[b])==null||Q.amounts.push(H),_):{..._,[b]:{amounts:[H],currency:z.amount.currency}}},{}))??{}},[(j=e==null?void 0:e.refundDetails)==null?void 0:j.refundStatuses]),m=f(()=>{var x,_;const L=(_=(x=g.completed)==null?void 0:x.amounts)==null?void 0:_.reduce((z,b)=>z+b,0);return L?Math.max(0,L??0):0},[g]),{some:N,every:M}=f(()=>yM(({status:L})=>L===Vr.COMPLETED,n==null?void 0:n.refundStatuses),[n==null?void 0:n.refundStatuses]),T=f(()=>{var L;return c===0&&m>0&&M&&m===o?[{type:ve.HIGHLIGHT,label:t.get("refund.fullAmountRefunded")}]:((L=Object.keys(g))==null?void 0:L.map(_=>{var Q,K;const z=_,b=(Q=g==null?void 0:g[z])==null?void 0:Q.amounts.reduce((Z,re,xe)=>{var he,Re,me;const Ae=(he=g==null?void 0:g[z])==null?void 0:he.amounts.length;return Ae>1&&xe===Ae-1?`${Z?`${Z}`:""} ${t.get("and")} ${t.amount(re,(Re=g==null?void 0:g[z])==null?void 0:Re.currency)}`:`${Z?`${Z},`:""} ${t.amount(re,(me=g==null?void 0:g[z])==null?void 0:me.currency)}`},""),H=(K=g==null?void 0:g[z])==null?void 0:K.amounts.reduce((Z,re)=>Z+re,0);switch(_){case Vr.COMPLETED:return{type:ve.HIGHLIGHT,label:t.get("refund.amountAlreadyRefunded",{values:{amount:b}})};case Vr.IN_PROGRESS:return H===o?{type:ve.HIGHLIGHT,label:t.get("refund.theRefundIsBeingProcessed")}:{type:ve.HIGHLIGHT,label:t.get("refund.amountInProgress",{values:{amount:b}})};case Vr.FAILED:return H===o?{type:ve.WARNING,label:t.get("refund.fullAmountFailed")}:{type:ve.WARNING,label:t.get("refund.amountFailed",{values:{amount:b}})};default:return}}))??[]},[c,o,t,m,g,M]),y=f(()=>{if(c>0){const L=t.amount(c,h);switch(r){case Pe.FULL_AMOUNT:return{type:ve.HIGHLIGHT,description:t.get("refund.onlyRefundable",{values:{amount:L}})};case Pe.PARTIAL_AMOUNT:return{type:ve.HIGHLIGHT,description:t.get("refund.maximumRefundable",{values:{amount:L}})};default:return null}}return null},[t,c,h,r]),A=f(()=>{switch(r){case Pe.NON_REFUNDABLE:if(c===0&&m>0&&M&&m===o)return sr.FULL}switch(r){case Pe.PARTIAL_AMOUNT:case Pe.PARTIAL_LINE_ITEMS:if(c>0&&N&&m>0&&!V(o)&&m<o)return sr.PARTIAL}return sr.INDETERMINATE},[c,m,r,o,N,M]);return{refundableAmount:c,refundable:i,refundableAmountLabel:y,refundAvailable:u,refundAuthorization:l,refundCurrency:h,refundDisabled:d,refundedAmount:m,refundedState:A,refundStatuses:T,refundLocked:s,refundMode:r}},pM=TM,AM=e=>{const t=f(()=>window.matchMedia(e),[e]),[n,r]=w(t.matches);return B(()=>{const s=i=>r(i.matches);return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),B(()=>{r(t.matches)},[t]),n},_e={up:{sm:`(min-width: ${it.sm}px)`,md:`(min-width: ${it.md}px)`,lg:`(min-width: ${it.lg}px)`},down:{xs:`(max-width: ${it.sm-1}px)`,sm:`(max-width: ${it.md-1}px)`,md:`(max-width: ${it.lg-1}px)`},only:{xs:`(max-width: ${it.sm-1}px)`,sm:`(min-width: ${it.sm}px) and (max-width: ${it.md-1}px)`,md:`(min-width: ${it.md}px) and (max-width: ${it.lg-1}px)`,lg:`(min-width: ${it.lg}px)`}},Se=AM,ut="adyen-pe-popover",Md="adyen-pe-tooltip",_M=`${ut}-container`,Il=`${ut}__header`,SM=`${ut}__header-title`,xo=`${ut}__content`,Nd=`${Md}__content`,DM=`${ut}__footer`;function LM({image:e=!0,onClick:t}){const{i18n:n}=Y();return a(J,{children:a(de,{className:(()=>e?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:ae.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 EM=De(LM);function CM({title:e,isImageTitle:t=!1}){return a(R,{strongest:!t,variant:(()=>t?O.SUBTITLE:O.BODY)(),children:e})}const OM=De(CM);var Be=(e=>(e.TOOLTIP="tooltip",e.POPOVER="popover",e))(Be||{}),Ie=(e=>(e.TOP="top",e.TOP_LEFT="top-left",e.RIGHT="right",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.LEFT="left",e))(Ie||{}),cs=(e=>(e.MEDIUM="medium",e.WIDE="wide",e))(cs||{}),G=(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))(G||{}),q=(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))(q||{});const Xr=(()=>{let e=[];const t=o=>{const c=o.reduce((l,u)=>{const h=u instanceof Node?e.findIndex(d=>{const g=d.element.getAttribute("id"),m=u&&(u!=null&&u.getAttribute)?u==null?void 0:u.getAttribute("id"):null;return g===m}):-1;return l===-1&&h!==-1?h:l},-1);c===-1?s(0):c+1<=e.length-1&&s(c+1)},n=o=>{const c=e.findIndex(l=>l.element.getAttribute("id")===o.getAttribute("id"));c>=0&&e.splice(c,1)},r=(o,c)=>{e.findIndex(u=>u.element.getAttribute("id")===o.getAttribute("id"))>=0||e.push({element:o,callback:c})},s=o=>{var l,u;const c=e.length;for(let h=o;h<c;h++)(u=(l=e==null?void 0:e[h])==null?void 0:l.callback)==null||u.call(l);e.splice(o)};return{add:r,remove:n,closeAll:()=>{e.forEach(o=>{var c;return(c=o==null?void 0:o.callback)==null?void 0:c.call(o)}),e=[]},closePopoversOutsideOfClick:t}})(),ls=Symbol("_ref");class fd extends Error{}class vM extends fd{}class bM extends fd{}function Qa(e){if(!ee(e))throw new bM}const jM=e=>{try{if(ee(e)&&Ct(e,"current")&&Ct(e,ls)&&!kn(e,e[ls])){const t=e.actions.get(F),n=e.actions.size;return V(t)&&Number.isInteger(n)&&n>=0}}catch{}return!1},us=e=>jM(e)?us(e[ls]):e;function xM(e){return!!e.current}const RM=(()=>{const e=(r,s)=>{const i=r.get(s);if(!i)throw new vM;return i},t=(r,s,i)=>{let o,c;const l=us(s);try{o=e(r,l)}catch{Qa(i)}if(o)[,c]=o;else{const u=ee(l),h=u?m=>{l(g=m)}:m=>{l&&(l.current=m,g=l.current)},d=m=>{if(c.size===0)return;const N=g;if(h(m),!kn(g,N))for(const[M]of c)M(g,N)};let g=u?null:l.current;r.set(l,o=[d,c=new Map]),Object.defineProperties(d,{[ls]:{value:l},actions:{value:X({get:{value:c.get.bind(c)},size:{get:()=>c.size}})},current:{get:()=>g,set:u?void 0:d}})}return i&&c.set(i,1+(c.get(i)||0)),o[0]},n=(r,s,i)=>{const o=us(s),[,c]=e(r,o),l=c.get(i)||0;l===1?c.delete(i):l>1&&c.set(i,l-1),c.size===0&&o&&r.delete(o)};return()=>{const r=new WeakMap;return X({bind:W(t.bind(void 0,r)),unbind:W(n.bind(void 0,r))})}})(),wM=RM(),zM=e=>{Qa(e);const t=new WeakMap([[e,1]]),n=s=>{if(kn(r,s))return;const i=r;e(r=s,i)};let r=null;return Object.defineProperties(n,{[ls]:{value:n},actions:{value:X({get:{value:t.get.bind(t)},size:{value:1}})},current:{get:()=>r,set:n}})},PM=(e=wM)=>{let t,n=null,r,s=!1;const i=u=>{t=void 0,n=null,r=u,s=!1},o=()=>{s||(c(),s=!0)},c=()=>{try{if(!n)return;e.unbind(n,r)}catch{}};return X({action:{get:()=>r},reflex:{get:()=>t},release:{value:o},update:{value:(u,h)=>{Qa(u),s&&i(u);const d=Ne(h)?null:h;if(r===u&&n===d){if(t)return}else if(n){if(kn(us(n),us(d))){t=e.bind(n,u),c(),r=u;return}c()}r=u,t=(n=d)?e.bind(n,r):zM(r)}}})},kM=(e,t)=>{const n=$(PM());return Si(()=>n.current.release,[]),f(()=>(n.current.update(e,t),n.current.reflex),[e,t])},Jt=kM,qn=Symbol("__control.Elem.");var yd=(e=>(e.POPOVER="POPOVER",e.DEFAULT="DEFAULT",e))(yd||{});const gl=e=>{e.stopImmediatePropagation()},Ha=(e,t,n,r)=>{const s=$(null),i=p(c=>{const l=c.composedPath();if(s&&s.current)if(r==="POPOVER")Xr.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]),o=$(i);return B(()=>()=>{s.current&&Xr.remove(s.current),document.removeEventListener("click",o.current,!0)},[]),B(()=>(document.removeEventListener("click",o.current,!0),o.current=i,document.addEventListener("click",o.current,!0),r==="POPOVER"&&s.current instanceof Element&&Xr.add(s.current,t),()=>{s.current&&Xr.remove(s.current),document.removeEventListener("click",o.current,!0)}),[i,t,r]),B(()=>{n?document.removeEventListener("click",o.current,!0):document.addEventListener("click",o.current,!0)},[n]),Jt(p((c,l)=>{l instanceof Element&&l.removeEventListener("focusout",gl,!0),c instanceof Element&&(n||(c.addEventListener("focusout",gl,!0),s.current=c))},[n,r]),e)},Ga=`
|
|
2
|
+
a[href],
|
|
3
|
+
audio[controls],
|
|
4
|
+
video[controls],
|
|
5
|
+
button,
|
|
6
|
+
input,
|
|
7
|
+
select,
|
|
8
|
+
textarea,
|
|
9
|
+
[contenteditable],
|
|
10
|
+
[tabindex]
|
|
11
|
+
`.replace(/\s+/,""),UM=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],Ml=new Map,Td=e=>e.tagName==="INPUT",WM=e=>Td(e)&&e.type==="radio",FM=e=>{const t=e.name,n=e.form,r=Ml.get(n);let s=r==null?void 0:r.get(t);return V(s)&&n&&(s=n.querySelector(`input[type=radio][name='${t}']:checked`)||null,Ml.set(n,(r||new Map).set(t,s))),s===e},BM=(e,t)=>{for(const n of t)if(n.type!=="attributes"){if(jc(n.addedNodes,r=>r instanceof Element&&ia(r))||jc(n.removedNodes,r=>e.includes(r)))return!0}else{if(ia(n.target))return!0;if(e.includes(n.target))return!0}return!1},Za=(e=document.body,t)=>{if(V(e))return!1;if(Ne(t))return!!document.activeElement&&Za(e,document.activeElement);let n=t==null?void 0:t.parentNode;for(;n;){if(n===e)return!0;n=n==null?void 0:n.parentNode}return!1},Ja=e=>!(!e.matches(Ga)||e!=null&&e.disabled||/^(true)?$/.test(e.getAttribute("inert"))||Td(e)&&e.hidden),ia=e=>!(WM(e)&&!FM(e)||(e==null?void 0:e.tabIndex)<0||!Ja(e)),YM=()=>{const e=new MutationObserver(c=>BM(t,c)&&i()),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()},i=()=>{t.length=0,r instanceof Element&&(r.querySelectorAll(Ga).forEach(c=>ia(c)&&t.push(c)),Za(r)&&(o.current=document.activeElement))},o=Object.create(null,{current:{get:()=>t[n]??null,set:c=>{if(c){if(!kr(c))return s(t.indexOf(c));if(c===~~c)return s(Ys(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:UM,attributes:!0,childList:!0,subtree:!0}),i()))}},tabbables:{value:t}});return o},$M=YM,QM=(e,t)=>{const n=$(!1),r=$(null),s=$(!1),i=f($M,[]),o=f(()=>{let h=null,d;return g=>{V(d)||cancelAnimationFrame(d);let m=g.target;for(;m&&m!==g.currentTarget;){if(Ja(m)){h=m,d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{var N;r.current!==h&&h instanceof HTMLElement&&((N=r.current=h)==null||N.focus()),h=null,d=void 0})});return}m=m.parentNode}}},[]),c=p(h=>{i.current=r.current=h.target},[]),l=p(h=>{i.tabbables.includes(h.relatedTarget)||Za(h.currentTarget,h.relatedTarget)||s.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&t(n.current=!1)}))},[]),u=f(()=>{let h;return d=>{switch(d.code){case G.ARROW_DOWN:case G.ARROW_LEFT:case G.ARROW_RIGHT:case G.ARROW_UP:case G.END:case G.ESCAPE:case G.HOME:case G.PAGE_DOWN:case G.PAGE_UP:case G.TAB:cancelAnimationFrame(h),h=requestAnimationFrame(()=>{h=requestAnimationFrame(()=>{s.current=!1,h=void 0})}),s.current=!0;break}d.code===G.TAB?(d.preventDefault(),i.current=d.shiftKey?-1:1):d.code===G.ESCAPE&&t(!0)}},[]);return Jt(p((h,d)=>{d instanceof Element&&(d.removeEventListener("keydown",u,!0),d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",l,!0),h.removeEventListener("click",o,!0)),h instanceof Element?(h.addEventListener("keydown",u,!0),h.addEventListener("focusin",c,!0),h.addEventListener("focusout",l,!0),h.addEventListener("click",o,!0),n.current=!1,i.root=h):i.root=null},[]),e)},HM=QM,GM=(()=>{const e=new WeakMap,t=X({remove:W(function(){r(this.observerCallback)})}),n=s=>{let i=e.get(s);if(V(i)){const o=new IntersectionObserver(c=>{c.forEach(l=>{s&&s(l)})},{root:null,rootMargin:"",threshold:[1]});i=Ur(t,{observerCallback:W(s),observer:W(o)}),e.set(s,i)}return i},r=s=>{const i=e.get(s);i==null||i.observer.disconnect(),e.delete(s)};return n})(),Ro=GM,ZM=({popover:e,offset:t,targetElement:n,position:r,variant:s,fullWidth:i})=>{const o=n==null?void 0:n.current;let c=0,l=0;const u=o.getBoundingClientRect(),h=document.body.getBoundingClientRect(),d=e==null?void 0:e.firstChild,g=h.left+h.width/2-d.offsetWidth/2,m=u.left+u.width/2-d.offsetWidth/2,N=u.top+u.height/2-d.offsetHeight/2;switch(r){case Ie.BOTTOM:c=i?g:s===Be.TOOLTIP?m+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 Ie.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 Ie.TOP:c=s===Be.TOOLTIP?m+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 Ie.RIGHT:c=u.left+u.width+window.scrollX+t[2],l=s===Be.TOOLTIP?N+window.scrollY:(u==null?void 0:u.top)-(u==null?void 0:u.height)/2+window.scrollY;break;case Ie.LEFT:c=(u==null?void 0:u.left)-(e==null?void 0:e.clientWidth)+window.scrollX-t[3],l=s===Be.TOOLTIP?N+window.scrollY:(u==null?void 0:u.top)+window.scrollY-(u==null?void 0:u.height)/2;break}const M=[c,l,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${M.reduce((y,A,S)=>S===0?y+`${A}px,`:S===M.length-1?y+` ${A}px)`:y+` ${A}px,`,"translate3d(")};visibility:hidden`},JM=(e,t,n,r,s,i,o,c,l)=>{const[u,h]=w(!0),[d,g]=w(c?!c:!!r),[m,N]=w(r||Ie.TOP),[M,T]=w([]),y=p(S=>{if(S.intersectionRatio===1)return g(!0);if(!u&&S.intersectionRatio!==1){if(M&&M.length===(c?5:4)){const E=M.reduce((j,L)=>L[1]>j[1]?L:j,M[0]);N(E[0]),g(!0);return}switch(g(!1),m){case Ie.TOP:T(E=>[...E,[Ie.TOP,S.intersectionRatio]]),N(Ie.BOTTOM);break;case Ie.BOTTOM:T(E=>[...E,[Ie.BOTTOM,S.intersectionRatio]]),N(c?Ie.BOTTOM_LEFT:Ie.RIGHT);break;case Ie.BOTTOM_LEFT:T(E=>[...E,[Ie.BOTTOM,S.intersectionRatio]]),N(Ie.RIGHT);break;case Ie.RIGHT:T(E=>[...E,[Ie.RIGHT,S.intersectionRatio]]),N(Ie.LEFT);break;case Ie.LEFT:T(E=>[...E,[Ie.LEFT,S.intersectionRatio]]),N(Ie.TOP);break}}},[u,M,m,c]),A=$(y);return B(()=>{Ro(A.current).remove(),A.current=y},[y]),Jt(p((S,E)=>{var j,L;if(E&&(!r||c)&&Ro(y).observer.unobserve(E),S&&t.current){if((!r||c)&&Ro(y).observer.observe(S),!(S instanceof Element))return;const x=ZM({popover:S,offset:e,targetElement:t,position:m,variant:n,fullWidth:o??!1}),_=d?x+";visibility:visible":x,z=i?_+";min-width:fit-content;width:"+((j=t.current)==null?void 0:j.clientWidth)+"px":_;S.setAttribute("style",`${z}`),u&&h(!1),n&&n===Be.TOOLTIP&&s&&xM(s)&&((L=s.current)==null||L.setAttribute("data-popover-placement",m))}},[e,t,m,r,n,y,d,u,i,s,o,c]),l)},VM=JM,XM=e=>{const t=$();return Jt(p((n,r)=>{r instanceof Element&&r.id===t.current&&(r.id=""),n instanceof Element&&(n.id=t.current||(t.current=Ti()))},[e]),e)},Ci=XM;const qM=e=>{var r;let t;const n=(r=e.querySelector(`.${Nd}`))==null?void 0:r.querySelectorAll(Ga);return n?(Array.prototype.some.call(n,s=>{if(Ja(s))return t=s}),t):null},KM=e=>e===Be.TOOLTIP?[10,3,5,5]:[15,15,15,15];function Va({actions:e,disableFocusTrap:t=!1,actionsLayout:n=go.SPACE_BETWEEN,variant:r=Be.TOOLTIP,title:s,open:i,dismissible:o,modifiers:c,divider:l,fitContent:u,withoutSpace:h,containerSize:d,position:g,targetElement:m,setToTargetWidth:N,dismiss:M,children:T,withContentPadding:y,classNameModifiers:A,showOverlay:S=!1,fitPosition:E,...j}){const L=f(()=>ee(M)&&Ot(o),[M,o]),x=Ci(),_=$(),z=p(me=>{var ye;M&&M(),me&&((ye=m==null?void 0:m.current)==null||ye.focus())},[M,m]),b=p(me=>{me.code===G.ESCAPE&&(M&&M(),(m==null?void 0:m.current).focus())},[M,m]),H=$(b),Q=$(),K=Ha(VM(KM(r),m,r,g,x,N,S,E),M,r===Be.TOOLTIP&&!i,yd.POPOVER),Z=HM(t?null:K,z),re=Jt(p((me,ye)=>{ye instanceof Element&&(ye[qn]=void 0,delete ye[qn]),me instanceof Element&&(me[qn]=m.current,cancelAnimationFrame(Q.current),Q.current=requestAnimationFrame(()=>{if(_.current===i||!(_.current=i))return;const ke=qM(me);ke==null||ke.focus()}))},[i,m]),t?K:Z),xe=Ci(re),Ae=f(()=>({[`${ut}--medium`]:d===cs.MEDIUM,[`${ut}--with-divider`]:!!l,[`${ut}--wide`]:d===cs.WIDE,[`${ut}--fit-content`]:u,[`${ut}--without-space`]:h,[`${ut}--auto-width`]:S}),[d,l,h,u,S]);B(()=>{re.current&&(re.current[qn]=m.current)},[m]),B(()=>(document.removeEventListener("keydown",H.current),document.addEventListener("keydown",H.current=b),()=>document.removeEventListener("keydown",H.current)),[b]);const he=r===Be.TOOLTIP?Md:`${ut} ${_M}`,Re=r===Be.TOOLTIP?Nd:`${xo}`;return qu(a(J,{children:i?a(J,{children:[S&&a("div",{className:"adyen-pe-popover__overlay"}),a("div",{id:"popover",ref:xe,...j,className:P(he,Ae,A),style:{visibility:"hidden"},role:j.role??(r===Be.POPOVER?"dialog":"tooltip"),children:[(s||L)&&a("div",{className:xa(Il,c,[Il]),children:[s&&a("div",{className:SM,children:a(OM,{title:s})}),L&&a(EM,{onClick:M})]}),T&&a(J,{children:[a("div",{className:P(Re,{[`${xo}--with-padding`]:y,[`${xo}--overlay`]:S}),children:T}),r===Be.TOOLTIP&&a("span",{"data-popover-placement":"hidden",ref:x,className:"adyen-pe-tooltip__arrow"})]}),e&&a("div",{className:DM,children:a(md,{actions:e,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const eN=()=>{const[e,t]=Dt(),n=p(()=>t(!0),[t]),r=p(()=>t(!1),[t]),s=p(i=>{switch(i.code){case G.ESCAPE:r();break}},[r]);return{listeners:{onfocusoutCapture:r,onMouseLeave:r,onKeyDown:s,onFocus:n,onMouseEnter:n},isVisible:e}};const tN=e=>typeof e=="string",un=({content:e,children:t,triggerRef:n,showTooltip:r,position:s,isContainerHovered:i=!1})=>{var h,d,g;const o=Ci(),c=Se(_e.down.sm),{isVisible:l,listeners:u}=eN();return c?a(J,{children:t}):a(J,{children:[t?Hu(t,{...t==null?void 0:t.props,role:"button",tabIndex:-1,ref:o,className:(h=t==null?void 0:t.props)!=null&&h.className?P(`${(d=t==null?void 0:t.props)==null?void 0:d.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":i}):P("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":i}),...u,"aria-describedby":`tooltip-${(g=o.current)==null?void 0:g.id}`}):null,(l||r)&&a(Va,{variant:Be.TOOLTIP,targetElement:n??o,position:s,open:l||r,children:a(J,{children:e&&tN(e)?a(R,{variant:O.CAPTION,children:e}):{content:e}})})]})};function nN({value:e,isContainerHovered:t}){const{i18n:n}=Y(),r=`tooltip.${e}`;return a(J,{children:n.has(r)&&a(un,{content:n.get(r),isContainerHovered:t,children:a("span",{children:a(R,{variant:O.BODY,children:n.has(`txType.${e}`)?n.get(`txType.${e}`):`${e}`})})})})}const oa={title:"thereWasAnUnexpectedError",message:["contactSupportForHelp"]},pd=(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 oa;default:return null}};const rN=({textToCopy:e,isHovered:t,buttonLabel:n,showCopyTextTooltip:r=!0,type:s="Link"})=>{const{i18n:i}=Y(),[o,c]=w(i.get("copy")),l=p(async()=>{if(e)try{await navigator.clipboard.writeText(e),c(i.get("copied"))}catch(h){console.log(h)}},[i,e]),u=p(()=>{c(i.get("copy"))},[i]);return a("span",{className:P("adyen-pe-copy-text__container",{"adyen-pe-copy-text__container--information":s==="Link"}),children:[r?a(un,{content:e,isContainerHovered:t,children:a("span",{className:P({"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:P({"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(un,{content:o,children:a(de,{variant:ae.TERTIARY,className:"adyen-pe-copy-text",onClick:l,onBlur:u,onMouseLeaveCapture:u,children:a("div",{className:P("adyen-pe-copy-text__icon",{"adyen-pe-copy-text__icon--information":s==="Link"}),children:a(He,{name:"copy"})})})})]})},ir=rN,Xa=(e,t,n)=>{if(!e)return oa;const r=pd(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(ir,{textToCopy:e.requestId}):null},onContactSupport:n}}default:return oa}},sN=({error:e,errorMessage:t,onContactSupport:n})=>{const{title:r,message:s,refreshComponent:i,translationValues:o,onContactSupport:c}=Xa(e,t,n);return a(Qt,{title:r,message:s,translationValues:o,withImage:!0,centered:!0,refreshComponent:i,onContactSupport:c})},qa=sN;const Ad=Wr(F),Ka=()=>Fr(Ad);var dn=(e=>(e.CENTER="center",e.RIGHT="right",e))(dn||{});function Nl({children:e,column:t,position:n,...r}){const{registerCells:s}=Ka(),i=$(null);return B(()=>{var o;i.current&&s({column:t,width:(o=i.current)==null?void 0:o.getBoundingClientRect().width})},[t,s]),a("div",{role:"cell",className:P("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===dn.RIGHT,"adyen-pe-data-grid__cell--center":n===dn.CENTER}),...r,children:e&&zu(e)?Hu(e,{...e==null?void 0:e.props,ref:i,style:{width:"min-content"}}):null})}const iN=({className:e,alt:t,url:n})=>a("div",{className:"adyen-pe-data-grid__icon-container",children:a("img",{className:P("adyen-pe-data-grid__icon",e),alt:t,src:n})}),oN=iN,_d=e=>!!e&&typeof e=="object"&&"value"in e,Sd=({columns:e,customCells:t,item:n,rowIndex:r})=>a(J,{children:e.map(({key:s,position:i})=>{if(t!=null&&t[s])return a(Nl,{"aria-labelledby":String(s),column:s,position:i,children:a("div",{style:{width:"min-content"},children:t[s]({key:s,value:n[s],item:n,rowIndex:r})})},s);const{icon:o,value:c}=_d(n[s])?n[s]:{value:n[s],icon:void 0};return a(Nl,{"aria-labelledby":String(s),column:s,position:i,children:a("div",{className:"adyen-pe-data-grid__cell-value",children:[(o==null?void 0:o.url)&&a(oN,{...o}),a("div",{children:c})]})},s)})}),aN=({data:e,columns:t,customCells:n,onRowHover:r})=>{const{i18n:s}=Y();return a(J,{children:e==null?void 0:e.map((i,o)=>a("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:s.has(`tooltip.${i==null?void 0:i.category}`)&&r?()=>r(o):te,onFocus:s.has(`tooltip.${i==null?void 0:i.category}`)&&r?()=>r(o):te,onMouseLeave:s.has(`tooltip.${i==null?void 0:i.category}`)&&r?()=>r():te,onBlur:s.has(`tooltip.${i==null?void 0:i.category}`)&&r?()=>r():te,children:a(Sd,{columns:t,customCells:n,item:i,rowIndex:o})},i))})},cN=({totalRows:e})=>{const[t,n]=mo((o,c)=>{const l=e;if(l>1){const u=c.index;if(u<l&&u>=0)return c.type==="ACTIVE"?Object.freeze({...o,index:c.index??0,activeIndex:c.index}):Object.freeze({...o,index:c.index??0,activeIndex:-1})}return o},gN),r=Jt(p(o=>{var l;if(!(o instanceof Element))return;const c=Number((l=o.dataset)==null?void 0:l.index);t.activeIndex===-1&&c===0||c===t.index?o.setAttribute("tabindex","0"):o.setAttribute("tabindex","-1"),c===t.activeIndex&&(o==null||o.focus())},[t.activeIndex,t.index])),s=p(o=>{var l,u;if(!(((l=o.target)==null?void 0:l.getAttribute("role"))==="row")){o.code===G.ARROW_LEFT&&n({type:"ACTIVE",index:t.index});return}switch(o.code){case G.ARROW_DOWN:case G.ARROW_UP:n({type:"ACTIVE",index:o.code===G.ARROW_DOWN?t.index+1:t.index-1});break;case G.HOME:n({type:"ACTIVE",index:0});break;case G.END:n({type:"ACTIVE",index:e-1});break;case G.ENTER:(u=o.currentTarget)==null||u.click();break;default:return}o.stopPropagation()},[e,t.index]),i=p(o=>c=>{var u;(!(((u=c.target)==null?void 0:u.localName)==="tr")||t.index===-1)&&n({type:"CURRENT",index:o})},[t.index]);return{listeners:{onKeyDownCapture:s,onFocusCapture:i},ref:r,activeIndex:t.activeIndex,currentIndex:t.index}},lN=({data:e,columns:t,onRowClick:n,customCells:r,onRowHover:s})=>{const i=p(h=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?h[n.retrievedField]:h),[n]),{i18n:o}=Y(),{currentIndex:c,listeners:l,ref:u}=cN({totalRows:(e==null?void 0:e.length)??0});return a(J,{children:e==null?void 0:e.map((h,d)=>a("div",{role:"row",tabIndex:0,onMouseEnter:o.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s(d):te,onFocus:o.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s(d):te,onMouseLeave:o.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s():te,onBlur:o.has(`tooltip.${h==null?void 0:h.category}`)&&s?()=>s():te,ref:u,"aria-selected":d===c,"data-index":d,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:i(h),onFocusCapture:l.onFocusCapture(d),onKeyDownCapture:l.onKeyDownCapture,children:a(Sd,{columns:t,customCells:r,item:h,rowIndex:d})},h))})},uN=({columnsNumber:e,loading:t,emptyMessageDisplay:n})=>{const r=Array.from({length:10},(i,o)=>o),s=Array.from({length:e},(i,o)=>o);return a(J,{children:[r.map((i,o)=>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:P({"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-${o}`)),!t&&n&&n]})},dN=uN,hN="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xODkuMyAxMTMuN2MtMS0uMyAzNi4zIDI4LjYgNDcuNyAyNi40IDkuMy0xLjggMTQuMy01OSAxNC4zLTU5aC05LjlsLTEwLjggMzYuM3MtMzAuNC0yMi4zLTMxLjgtMjIuM2MtMS40IDAtOCAxOS4xLTkuNSAxOC42WiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Im0yMzAuMSAxMTYuNyAyIDMuMiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIGQ9Im0yNTkuOCA3NC42IDEwLTMuNi43LTguMWMuMS0uOS0uNi0xLjYtMS40LT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C9zdmc+",mN=({children:e})=>{const t=f(()=>new Map,[]),n=p(({column:s,width:i})=>{if(t.has(s)){const o=t.get(s);i>o&&t.set(s,i)}else t.set(s,i)},[t]),r=p(s=>t.get(s),[t]);return a(Ad.Provider,{value:{registerCells:n,getMinWidthByColumn:r},children:ln(e)})},IN=({cellKey:e,position:t,label:n})=>{const{registerCells:r}=Ka(),s=$(null);return B(()=>{var i;s.current&&r({column:e,width:(i=s.current)==null?void 0:i.getBoundingClientRect().width})},[e,r]),a("div",{role:"columnheader",id:String(e),className:P("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":t===dn.RIGHT,"adyen-pe-data-grid__cell--center":t===dn.CENTER}),children:a("div",{ref:s,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},gN=Object.freeze({activeIndex:-1,index:-1});function hn({errorDisplay:e,...t}){return a("div",{style:{width:"100%"},children:a(mN,{children:a(MN,{...t,errorDisplay:e})})})}function MN({errorDisplay:e,...t}){var u,h;const n=f(()=>ln(t.children),[t.children]),r=f(()=>n.find(d=>(d==null?void 0:d.type)===Dd),[n]),s=f(()=>{var d;return((d=t.data)==null?void 0:d.length)===0},[t.data]),i=f(()=>!t.loading&&(s||t.error),[s,t.error,t.loading]),{getMinWidthByColumn:o}=Ka(),c=t.columns.filter(d=>d.visible!==!1).map(d=>({...d,minWidth:o(d.key)})),l=c.map(d=>`minmax(${(d.minWidth||100)+40}px, ${d.flex||1}fr)`).join(" ");return a("div",{className:P("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(J,{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(IN,{label:d.label,position:d.position,cellKey:d.key},d.key))})}),a(NN,{...t,columns:c,emptyBody:s})]}),i&&(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:hN,centered:!0}):t.error&&e?e():null)]}),r]})})}function NN(e){const t=f(()=>e.loading||e.emptyBody||e.error,[e.emptyBody,e.error,e.loading]);return a("div",{role:"rowgroup",className:P("adyen-pe-data-grid__body"),style:t&&{display:"grid",gridTemplateColumns:"1fr"},children:t?a(dN,{columnsNumber:e.columns.length,loading:e.loading}):e.onRowClick?a(lN,{onRowHover:e.onRowHover,data:e.data,columns:e.columns,onRowClick:e.onRowClick,customCells:e.customCells}):a(aN,{onRowHover:e.onRowHover,data:e.data,customCells:e.customCells,columns:e.columns})})}hn.Footer=Dd;function Dd({children:e}){return a("div",{className:"adyen-pe-data-grid__footer",children:e})}hn.defaultProps={condensed:!1,outline:!0,scrollable:!0};const Oi="-ariaError";var Fe=(e=>(e[e.NONE=0]="NONE",e[e.APPLY=1]="APPLY",e[e.CLEAR=2]="CLEAR",e))(Fe||{});const fN=({applyDisabled:e,applyTitle:t,resetDisabled:n,resetTitle:r}=F)=>{const{i18n:s}=Y(),[i,o]=w(Fe.NONE),[c,l]=w(i!==Fe.NONE),u=p(()=>o(Fe.APPLY),[o]),h=p(()=>o(Fe.CLEAR),[o]),d=p(()=>o(Fe.NONE),[o]),g=f(()=>({disabled:be(e),event:u,title:(t==null?void 0:t.trim())||s.get("apply"),variant:ae.PRIMARY}),[s,u,e,t]),m=f(()=>({disabled:be(n),event:h,title:(r==null?void 0:r.trim())||s.get("reset"),variant:ae.SECONDARY}),[s,h,n,r]),N=f(()=>[g,m],[g,m]);return B(()=>{switch(l(i!==Fe.NONE),i){case Fe.APPLY:case Fe.CLEAR:d();break}},[i,l,d]),{commitAction:i,commitActionButtons:N,committing:c,resetCommitAction:d}},Ld=fN;function Ed(e){const{backgroundUrl:t="",className:n="",classNameModifiers:r=[],src:s="",alt:i="",showOnError:o=!1}=e,[c,l]=w(!1),u=$(null),h=()=>{l(!0)},d=()=>{l(o)},g=P([n],"adyen-pe-image",{"adyen-pe-image--loaded":c},...r.map(m=>`adyen-pe-image--${m}`));return B(()=>{const m=t?new Image:u.current;m&&(m.src=t||s,m.onload=h),l(!!(m!=null&&m.complete))},[]),t?a("div",{style:{backgroundUrl:t},...e,className:g}):a("img",{...e,alt:i,ref:u,className:g,onError:d})}const Pr="adyen-pe-dropdown",yN=xa(ht,[ae.SECONDARY],[ht]),bt=`${Pr}__button`,TN=`${bt}--active`,pN=`${bt}-collapse-indicator`,AN=`${bt}--has-selection`,_N=`${bt}-icon`,SN=`${bt}-multiselect-counter`,DN=`${bt}--readonly`,LN=`${bt}-text`,EN=`${bt}--valid`,CN=`${bt}--invalid`,Vt=`${Pr}__element`,ON=`${Vt}--active`,vN=`${Vt}-checkbox`,bN=`${Vt}-checkmark`,jN=`${Vt}-content`,xN=`${Vt}--disabled`,RN=`${Vt}-icon`,wN=`${Vt}--no-option`,Cd=`${Pr}__list`,zN=`${Cd}--active`,PN=`${Pr}--multiselect`,kN=({active:e,disabled:t,className:n,filterable:r,toggleButtonRef:s,...i})=>{const o=f(()=>r?P(yN,n):n,[n,r]);return r?a("div",{...i,className:o,ref:s}):a(de,{...i,className:o,disabled:t,variant:ae.SECONDARY,ref:s})},UN=e=>{var g;const{i18n:t}=Y(),{active:n,filterable:r,multiSelect:s,placeholder:i,readonly:o,showList:c,withoutCollapseIndicator:l}=e,u=f(()=>(i==null?void 0:i.trim())||t.get("select.filter.placeholder"),[t,i]),h=f(()=>be(s)?void 0:n[0],[n,s]),d=f(()=>{var m;return((m=h==null?void 0:h.name)==null?void 0:m.trim())||u},[h,u]);return a(kN,{active:n,disabled:o,"aria-disabled":o,"aria-expanded":c,"aria-haspopup":"listbox",className:P(bt,{[TN]:c,[AN]:!!n.length,[DN]:o,[CN]:e.isInvalid,[EN]:e.isValid}),filterable:r,onClick:o?void 0:e.toggleList,onKeyDown:o?void 0:e.onButtonKeyDown,role:r?"button":void 0,tabIndex:0,title:d,toggleButtonRef:e.toggleButtonRef,type:r?"":"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(J,{children:[(h==null?void 0:h.icon)&&a(Ed,{className:_N,src:h.icon,alt:h.name.trim()}),a("span",{className:LN,children:((g=h==null?void 0:h.selectedOptionName)==null?void 0:g.trim())||(h==null?void 0:h.name.trim())||u}),s&&e.appliedFilterNumber>0&&a("div",{className:SN,children:a(R,{el:oe.SPAN,variant:O.BODY,stronger:!0,children:e.appliedFilterNumber})})]}),!l&&a("span",{className:pN,children:a(Io,{role:"presentation"})})]})},WN=UN,FN=Ge(({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"})]})),BN=FN,YN=Ge(({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=YN,QN=Ge(({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"})]})),HN=QN,GN=e=>e.multiSelect?a("span",{className:vN,children:e.selected?a(BN,{role:"presentation"}):a($N,{role:"presentation"})}):null,Od=e=>e.multiSelect?null:a("span",{className:bN,children:e.selected&&a(HN,{role:"presentation"})}),ZN=e=>a(J,{children:[GN(e),a("div",{className:e.contentClassName,children:[e.item.icon&&a(Ed,{className:e.iconClassName,alt:e.item.name,src:e.item.icon}),a("span",{children:e.item.name})]}),Od(e)]}),JN=({item:e,multiSelect:t,onKeyDown:n,onSelect:r,renderListItem:s,selected:i})=>{const o=!!e.disabled,c=be(e.disabled)||null,l=P(Vt,{[ON]:i,[xN]:o});return a("li",{"aria-disabled":o,"aria-selected":i,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:i,contentClassName:jN,iconClassName:RN})})},VN=De(JN),XN=Ge(({active:e,commitActions:t,items:n,multiSelect:r,onKeyDown:s,onSelect:i,renderListItem:o,selectListId:c,showList:l,textFilter:u,toggleButtonRef:h,dismissPopover:d,setToTargetWidth:g,popoverClassNameModifiers:m,showOverlay:N,fitPosition:M},T)=>{const{i18n:y}=Y(),A=Se(_e.down.xs),S=n.filter(_=>!u||_.name.toLowerCase().includes(u)),E=P(Cd,{[zN]:l}),j=P(Vt,wN),L=f(()=>ee(o)?o:ZN,[o]),x=f(()=>be(r),[r]);return l?a(Va,{classNameModifiers:m,actions:x?t:void 0,disableFocusTrap:!0,divider:!0,dismiss:d,dismissible:!1,open:l,setToTargetWidth:g,containerSize:cs.MEDIUM,variant:Be.POPOVER,targetElement:h,withContentPadding:!1,position:Ie.BOTTOM,showOverlay:N&&A,fitPosition:M,children:a("ul",{className:E,id:c,ref:T,role:"listbox","aria-multiselectable":x,children:S.length?S.map(_=>a(VN,{item:_,multiSelect:x,onKeyDown:s,onSelect:i,renderListItem:L,selected:e.includes(_)},_.id)):a("div",{className:j,children:y.get("select.noOptionsFound")})})}):null}),qN=De(XN),KN=({items:e,multiSelect:t,selected:n})=>{const r=p((l=le)=>{const u=le.concat(l??le).filter(Boolean),h=e.filter(g=>u.includes(g.id)),d=t?h:h.slice(0,1);return d.length?Object.freeze(d):le},[e,t]),[s,i]=w(r(n)),o=p((l=le)=>{const u=l.filter(h=>e.includes(h));i(u.length?Object.freeze(u):le)},[e,i]),c=p(l=>{i(u=>{const h=u.indexOf(l);if(h<0)return Object.freeze((t?u:le).concat(l));if(!t)return u;const d=[...u];return d.splice(h,1),d.length?Object.freeze(d):le})},[t,i]);return B(()=>i(r(n)),[r,n,i]),{resetSelection:o,select:c,selection:s}},ef=KN;const tf=({className:e,classNameModifiers:t=le,popoverClassNameModifiers:n,items:r=le,filterable:s=!1,multiSelect:i=!1,readonly:o=!1,onChange:c=te,selected:l,name:u,isInvalid:h,isValid:d,placeholder:g,uniqueId:m,renderListItem:N,isCollatingErrors:M,setToTargetWidth:T,withoutCollapseIndicator:y=!1,showOverlay:A=!1,fitPosition:S})=>{const{resetSelection:E,select:j,selection:L}=ef({items:r,multiSelect:i,selected:l}),[x,_]=w(!1),[z,b]=w(""),H=$(null),Q=$(null),K=$(null),Z=$(`select-${oo()}`),[re,xe]=w(0),Ae=$(),he=$(!0),Re=$(!1),me=$(L),ye=$(L),ke=p(()=>{b(""),_(!1),x&&(E(me.current),he.current=!0)},[E,_,b,x]),ce=f(()=>P([Pr,{[PN]:be(i)},...t.map(se=>`${Pr}--${se}`),e]),[e,t,i]),{commitAction:Je,commitActionButtons:Xt,committing:$r,resetCommitAction:ti}=Ld({resetDisabled:!L.length}),st=p(()=>{var se;b(""),_(!1),ti(),he.current?he.current=!1:(se=K.current)==null||se.focus()},[ti,_,b]),Bn=p(()=>{me.current=L;const se=`${L.map(({id:ge})=>ge)}`;c({target:{value:se,name:u}})},[u,c,L]);B(()=>{switch(Je){case Fe.APPLY:Bn();break;case Fe.CLEAR:E(),Re.current=!0;break}},[Je,Bn,E]);const mn=p(se=>{var Te;se.preventDefault();const ge=se.currentTarget&&((Te=Q==null?void 0:Q.current)!=null&&Te.contains(se.currentTarget))?se.currentTarget:null;if(ge&&!ge.getAttribute("data-disabled")){const Do=ge.getAttribute("data-value"),Ue=r.find(we=>we.id===Do);j(Ue)}},[r,j]);B(()=>{ye.current!==L&&(ye.current=L,(!i||Re.current)&&(Bn(),st())),Re.current=!1},[st,Bn,i,L]),B(()=>{$r&&(xe(L.length),st())},[$r,st,xe,L.length]);const Qr=p(se=>{switch(se.code){case G.ESCAPE:case G.TAB:x&&st(),he.current=se.key===G.TAB;return;case G.ENTER:case G.SPACE:if(s&&x){if(se.key===G.ENTER)if(z)mn(se);else break;return}break;case G.ARROW_DOWN:case G.ARROW_UP:break;default:return}se.preventDefault(),_(!0)},[st,s,mn,x,_,z]);B(()=>{x&&(cancelAnimationFrame(Ae.current),Ae.current=requestAnimationFrame(()=>{var se;e:{let ge=(se=Q.current)==null?void 0:se.firstElementChild,Te;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){if(ge.getAttribute("aria-selected")==="true"){ge.focus();break e}Te=Te||ge}ge=ge.nextElementSibling}Te&&Te.focus()}}))},[x]);const _o=p(se=>{const ge=se.target;switch(se.code){case G.ESCAPE:se.preventDefault(),st();break;case G.ENTER:case G.SPACE:mn(se);break;case G.ARROW_DOWN:{se.preventDefault();let Te=ge.nextElementSibling;for(;Te;){if(!(Te.dataset.disabled&&Te.dataset.disabled==="true")){Te.focus();break}Te=Te.nextElementSibling}break}case G.ARROW_UP:{se.preventDefault();e:{let Te=ge.previousElementSibling;for(;Te;){if(!(Te.dataset.disabled&&Te.dataset.disabled==="true")){Te.focus();break e}Te=Te.previousElementSibling}s&&H.current&&H.current.focus()}break}case G.TAB:st();break}},[st,s,mn]),ni=p(se=>{const ge=se.target.value;b(ge.toLowerCase())},[b]),So=p(se=>{se.preventDefault(),_(ge=>!ge),x&&E(me.current)},[_,x,E]);return B(()=>{var se;x&&s&&((se=H.current)==null||se.focus())},[s,x]),a("div",{className:ce,children:[a(WN,{id:m??void 0,appliedFilterNumber:re,active:L,filterInputRef:H,filterable:s,isInvalid:h,isValid:d,onButtonKeyDown:Qr,onInput:ni,multiSelect:i,placeholder:g,readonly:o,selectListId:Z.current,showList:x,toggleButtonRef:K,toggleList:So,withoutCollapseIndicator:y,ariaDescribedBy:!M&&m?`${m}${Oi}`:""}),a(qN,{popoverClassNameModifiers:n,setToTargetWidth:T,dismissPopover:ke,active:L,commitActions:Xt,items:r,multiSelect:i,onKeyDown:_o,onSelect:mn,selectListId:Z.current,ref:Q,toggleButtonRef:K,renderListItem:N,showList:x,showOverlay:A,textFilter:z,fitPosition:S})]})},qs=tf,nf=Ge(({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"})]})),rf=nf,sf=Ge(({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"})]})),of=sf;function ec({next:e,hasNext:t,hasPrev:n,page:r,prev:s,limit:i,limitOptions:o,onLimitSelection:c}){const{i18n:l}=Y(),u=f(()=>o&&Object.freeze(o.map(d=>({id:`${d}`,name:`${d}`}))),[o]),h=p(({target:d})=>{Ne(d==null?void 0:d.value)||c==null||c(+d.value)},[c]);return a("div",{"aria-label":l.get("paginatedNavigation"),className:`adyen-pe-pagination ${P({})}`,children:[a("div",{className:"adyen-pe-pagination__context",children:u&&c&&a(J,{children:[a("span",{children:l.get("pagination.showing")}),a("div",{className:"adyen-pe-pagination__limit-selector",children:a(qs,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:u,onChange:h,selected:`${i??""}`})})]})}),a("div",{className:"adyen-pe-pagination__controls",children:[a(de,{"aria-label":l.get("pagination.previousPage"),variant:ae.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?le:"disabled"),onClick:s,children:a(rf,{disabled:!n})}),a(de,{"aria-label":l.get("pagination.nextPage"),variant:ae.TERTIARY,disabled:!t,iconButton:!0,classNameModifiers:["circle"].concat(t?le:"disabled"),onClick:e,children:a(of,{disabled:!t})})]})]})}const Fn="adyen-pe-transactions-table",af=Fn+"__amount",cf=Fn+"__payment-method",lf=Fn+"__payment-method-logo-container",uf=Fn+"__payment-method-logo",df=Fn+"__date-and-payment-method",hf=Fn+"__date-and-payment-method--date";const mf="https://cdf6519016.cdn.adyen.com/checkoutshopper/",If=({name:e,resourceContext:t,imageFolder:n="logos/",parentFolder:r="",extension:s="svg",size:i="",subFolder:o=""})=>{const c=`/images/${n}/${o}/${r}/${e}${i}.${s}`.replace(/\/+/g,"/");return`${t}${c}`},gf=({options:e=F,name:t})=>{const{loadingContext:n}=Y();return f(()=>If({resourceContext:mf,name:t,...e}),[n,t,e])},vd=({folder:e="components/",className:t,alt:n,name:r,extension:s})=>{const i=gf({options:f(()=>({imageFolder:e,extension:s}),[s,e]),name:r});return a("img",{className:P("adyen-pe__image",t),alt:n,src:i})};var pe=(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))(pe||{});const Wt=De(({variant:e=pe.DEFAULT,label:t})=>a("div",{className:P("adyen-pe-tag",{"adyen-pe-tag--success":e===pe.SUCCESS,"adyen-pe-tag--default":e===pe.DEFAULT,"adyen-pe-tag--warning":e===pe.WARNING,"adyen-pe-tag--error":e===pe.ERROR,"adyen-pe-tag--primary":e===pe.WHITE,"adyen-pe-tag--light":e===pe.LIGHT,"adyen-pe-tag--light-with-outline":e===pe.LIGHT_WITH_OUTLINE,"adyen-pe-tag--blue":e===pe.BLUE}),children:t})),Mf=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function bd(e,t){return e.lastFourDigits?t==="detail"?"•••• •••• •••• "+e.lastFourDigits:e.lastFourDigits:Mf[e.type]||e.type}const Nf=({paymentMethod:e,bankAccount:t})=>{const{i18n:n}=Y(),r=Se(_e.down.xs);return a("div",{className:cf,children:e||t?a(J,{children:[a("div",{className:lf,children:a(vd,{name:e?e.type:"bankTransfer",alt:e?e.type:"bankTransfer",folder:"logos/",className:uf})}),a(R,{variant:O.BODY,stronger:r,children:e?bd(e):t==null?void 0:t.accountNumberLastFourDigits})]}):a(Wt,{label:n.get("noData"),variant:pe.LIGHT_WITH_OUTLINE})})},fl=Nf,ff={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"},tc=e=>ff[e]||e;function yf(e){let t={};for(const n of Object.keys(e))V(e[n])||(t={...t,[n]:e[n]});return t}function Tf(e){return e.every(rt)}const jd=({fields:e,customColumns:t,columnConfig:n})=>{const{i18n:r}=Y(),s=f(()=>e.map(o=>({key:o})),[e]);return f(()=>((t?Tf(t)?t.map(c=>({key:c})):t:void 0)||s).map(({key:c,flex:l})=>{const u=r.get(tc(c)),h=yf((n==null?void 0:n[c])||F);return{key:c,label:u,visible:!0,flex:l,...h||F}}),[n,t,r,s])},xd=["createdAt","paymentMethod","transactionType","amount"],pf=({activeBalanceAccount:e,availableCurrencies:t,error:n,hasMultipleCurrencies:r,loading:s,onContactSupport:i,onRowClick:o,showDetails:c,showPagination:l,transactions:u,customColumns:h,...d})=>{const{i18n:g}=Y(),{dateFormat:m}=Zt(e==null?void 0:e.timeZone),[N,M]=w(),T=Se(_e.up.sm),y=Se(_e.up.md),A=Se(_e.down.xs),S=g.get("amount"),E=jd({fields:xd,customColumns:h,columnConfig:{amount:{label:r?void 0:`${S} ${t&&t[0]?`(${Ou(t[0])})`:""}`,position:dn.RIGHT,flex:T?1.5:void 0},transactionType:{visible:y},paymentMethod:{visible:T}}}),j={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},L=p(_=>{M(_??void 0)},[M]),x=f(()=>()=>a(qa,{error:n,onContactSupport:i,errorMessage:"weCouldNotLoadYourTransactions"}),[n,i]);return a("div",{className:Fn,children:a(hn,{errorDisplay:x,error:n,columns:E,data:u,loading:s,outline:!1,onRowClick:{callback:o},onRowHover:L,emptyTableMessage:j,customCells:{transactionType:({item:_,rowIndex:z})=>{const b=`tooltip.${_.category}`;return _.category?g.has(b)?a(nN,{isContainerHovered:z===N,value:_.category}):a(R,{variant:O.BODY,children:g.has(`txType.${_.category}`)?g.get(`txType.${_.category}`):`${_.category}`}):null},amount:({value:_})=>{const z=g.amount(_.value,_.currency,{hideCurrency:!r});return a(R,{variant:O.BODY,className:af,children:z})},createdAt:({item:_,value:z})=>A?a("div",{className:df,children:[a(fl,{paymentMethod:_.paymentMethod,bankAccount:_.bankAccount}),a(R,{variant:O.BODY,className:hf,children:m(_.createdAt,kg)})]}):a(R,{variant:O.BODY,children:m(z,Pg)}),paymentMethod:({item:_})=>a(fl,{paymentMethod:_.paymentMethod,bankAccount:_.bankAccount})},children:l&&a(hn.Footer,{children:a(ec,{...d})})})})},Ze="adyen-pe-transaction-data",yl=`${Ze}__amount`,Af=`${Ze}__action-bar`,Mo=`${Ze}__container`,_f=`${Ze}__head-container`,nc=`${Ze}__input`,Ks=`${nc}-container`,Rd=`${Ks}--short`,Sf=`${Ks}--text-input`,Df=`${Ks}--with-error`,wd=`${nc}-head`,zd=`${Ze}__label`,Lf=`${Ze}__list`,rc=`${Ze}__payment-method`,Ef=`${rc}-detail`,Pd=`${rc}-logo`,Cf=`${Pd}-container`,Of=`${Ze}__tags`,vf=`${Ze}__status-box`,bf=`${Ze}__refund-response`,vi=`${Ze}__refund-response-icon`,jf=`${vi}--success`,xf=`${vi}--error`,Rf=`${Ze}__refund-statuses-container`,wf=new Set(["status","category","paymentMethod","bankAccount","balanceAccount","id","balanceAccountId",...xd,"deductedAmount","lineItems","originalAmount","paymentPspReference","refundDetails","refundMetadata"]),zf=()=>{const{i18n:e}=Y(),{transaction:t,extraFields:n}=cM();return f(()=>{const{balanceAccount:r,category:s,id:i,paymentPspReference:o,refundMetadata:c}=t,l=s==="Refund",u=null,h=y=>{if(Ne(y))return null;const{value:A,currency:S}=y;return e.amount(A,S)},d=h(t.deductedAmount),g=h(t.originalAmount),m=l?"refund.refundFee":"refund.fee",N=l?"refund.originalPayment":"refund.originalAmount",M=l?"refund.paymentPspReference":"refund.pspReference",T=[g?{key:N,value:g}:u,d?{key:m,value:d}:u,r!=null&&r.description?{key:"account",value:r.description}:u,...Object.entries(n||{}).filter(([y])=>!wf.has(y)).map(([y,A])=>({key:y,value:_d(A)?A.value:A}))||{},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(ir,{type:"Default",textToCopy:i,showCopyTextTooltip:!1})},l&&(c!=null&&c.refundPspReference)?{key:"refund.refundPspReference",value:c.refundPspReference}:u,o?{key:M,value:o}:u].filter(Boolean);return a(xn,{classNames:Lf,items:T,layout:"5-7",renderLabel:y=>a("div",{className:zd,children:y})})},[e,t])},Pf=zf,kf=({children:e,className:t})=>a("div",{className:P(Mo,t),children:e}),Tl=kf,Uf=e=>{switch(e==null?void 0:e.status){case"Booked":return"default";case"Reversed":return"error";default:return"pending"}},Wf=e=>e!=null&&e.paymentMethod?e.paymentMethod.type:e!=null&&e.bankAccount?"bankTransfer":null,Ff=e=>{var t;return e!=null&&e.paymentMethod?bd(e.paymentMethod,"detail"):(t=e==null?void 0:e.bankAccount)==null?void 0:t.accountNumberLastFourDigits},Bf=e=>{if(e.category==="Refund"){const{refundType:t}=e.refundMetadata??F;switch(t){case Tn.FULL:return Tn.FULL;case Tn.PARTIAL:return Tn.PARTIAL}}},Yf=({refundedState:e,transaction:t})=>{var d;const{i18n:n}=Y(),{dateFormat:r}=Zt((d=t==null?void 0:t.balanceAccount)==null?void 0:d.timeZone),{amount:s,category:i,createdAt:o}=t,c=f(()=>{const{currency:g,value:m}=s;return`${n.amount(m,g,{hideCurrency:!0})} ${g}`},[s,n]),[l,u,h]=f(()=>[Wf(t),Ff(t),Bf(t)],[t]);return a(J,{children:[a("div",{className:Of,children:[i&&a(Wt,{label:n.get(`txType.${i}`),variant:pe.DEFAULT}),h&&a(J,{children:[h===Tn.FULL&&a(Wt,{label:n.get("full"),variant:pe.SUCCESS}),h===Tn.PARTIAL&&a(Wt,{label:n.get("partial"),variant:pe.BLUE})]}),e===sr.FULL&&a(Wt,{label:n.get("refunded.full"),variant:pe.SUCCESS}),e===sr.PARTIAL&&a(Wt,{label:n.get("refunded.partial"),variant:pe.BLUE})]}),c&&a("div",{className:P(yl,`${yl}--${Uf(t)}`),children:c}),l&&a("div",{className:rc,children:[a("div",{className:Cf,children:a(vd,{className:Pd,name:l,alt:l,folder:"logos/"})}),a("div",{className:Ef,children:u})]}),o&&a("div",{className:zd,children:r(new Date(o),Ug)})]})},$f=De(Yf),Qf=Ge(({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"})})})]})),Hf=Qf;function kd({onInput:e,onKeyUp:t,trimOnBlur:n,onBlurHandler:r,onBlur:s,onFocusHandler:i,errorMessage:o,...c},l){const{autoCorrect:u,classNameModifiers:h,isInvalid:d,isValid:g,readonly:m=!1,spellCheck:N,type:M,uniqueId:T,isCollatingErrors:y,disabled:A}=c;Ct(c,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const S=p(Z=>{e==null||e(Z)},[e]),E=p(Z=>{t&&t(Z)},[t]),j=p(Z=>{r==null||r(Z),n&&(Z.target.value=Z.target.value.trim()),s==null||s(Z)},[s,r,n]),L=p(Z=>{i==null||i(Z)},[i]),x=P("adyen-pe-input",[`adyen-pe-input--${M}`],c.className,{"adyen-pe-input--invalid":d,"adyen-pe-input--valid":g},h==null?void 0:h.map(Z=>`adyen-pe-input--${Z}`)),{classNameModifiers:_,uniqueId:z,isInvalid:b,isValid:H,isCollatingErrors:Q,...K}=c;return a(J,{children:[a("input",{id:T,...K,type:M,className:x,readOnly:m,"aria-describedby":y?void 0:`${T}${Oi}`,"aria-invalid":d,onInput:S,onBlurCapture:j,onFocus:L,onKeyUp:E,disabled:A,ref:l}),d&&o&&a("span",{className:"adyen-pe-input__invalid-value",id:`${T}${Oi}`,children:o})]})}kd.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const bi=Br(kd),Ud=(e,t)=>vu(e,t).toFixed(aa(t)),aa=e=>Math.log10(Cu(e)),Wd=({currency:e,disabled:t,errorMessage:n,errorMessageArg:r,onInput:s,value:i})=>{const{i18n:o}=Y(),c=$(Ti()),l=$(Ti()),u=n?r?o.get(n,{values:{amount:r}}):o.get(n):"";return a("div",{className:Mo,children:[a("div",{className:wd,children:a("div",{id:l.current,children:a(R,{el:oe.SPAN,variant:O.BODY,stronger:!0,children:o.get("refundAmount")})})}),a("div",{className:P({[Ks]:!0,[Rd]:!0,[Sf]:!0,[Df]:!!n}),children:[a("label",{htmlFor:c.current,"aria-labelledby":l.current,children:[e&&a(Wt,{label:e,variant:pe.DEFAULT}),a(bi,{min:0,type:"number",className:nc,disabled:be(t),lang:o.locale,onInput:s,value:i,uniqueId:c.current})]}),n&&a("div",{className:"adyen-pe-input__refund-invalid-value",id:`${c.current}${Oi}`,children:[a(Hf,{}),a(R,{el:oe.SPAN,variant:O.BODY,children:u})]})]})]})},Gf=()=>{const{availableAmount:e,currency:t}=$a();return a(Wd,{currency:t,errorMessage:null,value:Ud(e,t),disabled:!0})},Zf=({locale:e})=>{const{availableAmount:t,currency:n,interactionsDisabled:r,setAmount:s}=$a(),[i,o]=w(null),[c,l]=w(`${Ud(t,n)}`),{i18n:u}=Y(),h=f(()=>{const g=aa(n);return m=>Math.trunc(+`${parseFloat(m)}e${g}`)||0},[n]),d=g=>{var A;let m=g.currentTarget.value.trim();const N=h(m);let M=null;N||m?(N<0&&(M="noNegativeNumbersAllowed"),N>t&&(M="refundAmount.excess")):M="refundAmount.required";const T=((A=1.1.toLocaleString(e).match(/\d(.*?)\d/))==null?void 0:A[1])||".",y=m.split(T);if(y.length===2){const S=aa(n),E=y[0];let j=y[1];j.length>=S&&(j=j.substring(0,S),m=E+T+j,g.currentTarget.value=m)}l(m),o(M),s(M?0:N)};return a(Wd,{currency:n,errorMessage:i,errorMessageArg:u.amount(t,n),onInput:d,value:c,disabled:r})},Jf=()=>{const{i18n:e}=Y();return f(()=>a("div",{className:`${Mo} ${_f}`,children:[a(R,{el:oe.DIV,variant:O.SUBTITLE,stronger:!0,children:e.get("refundAction")}),a(R,{variant:O.BODY,children:e.get("refundNotice")})]}),[e])},Vf=Jf,Xf=()=>{const{i18n:e}=Y(),{interactionsDisabled:t,refundReason:n,setRefundReason:r}=$a(),s=f(()=>Object.freeze(Ya.map(o=>({id:o,name:e.has(`refundReason.${o}`)?e.get(`refundReason.${o}`):o}))),[e]),i=p(o=>{var l;const c=(l=o.target)==null?void 0:l.value;c&&r(c)},[r]);return a("div",{className:Mo,children:[a("div",{className:wd,children:a(R,{el:oe.SPAN,variant:O.BODY,stronger:!0,children:e.get("refundReason")})}),a("div",{className:`${Ks} ${Rd}`,children:a(qs,{items:s,readonly:t,filterable:!1,multiSelect:!1,onChange:i,selected:n})})]})},qf=Xf;const pl=({children:e,renderViewActionButtons:t,renderViewMessageBox:n})=>a("div",{className:Ze,children:[e,n&&n(),t()]}),Al=({action:e,title:t,renderIcon:n,subtitle:r})=>a("div",{className:bf,children:[n&&n(),a(R,{className:pt.MEDIUM,variant:O.TITLE,children:t}),a(R,{variant:O.BODY,children:r}),e&&e()]}),Kf=({transaction:e,extraFields:t})=>{var ke;const[n,r]=w(nt.DETAILS),[s,i]=w(),[o,c]=w(),[l,u]=w(!1),{fetchingTransaction:h,refreshTransaction:d,transaction:g,transactionNavigator:m}=fM(e),{refundable:N,refundableAmount:M,refundableAmountLabel:T,refundAvailable:y,refundCurrency:A,refundDisabled:S,refundedState:E,refundStatuses:j,refundMode:L,refundLocked:x}=pM(g),_=f(()=>S||l,[S,l]),{i18n:z}=Y(),b=Object.freeze((g==null?void 0:g.lineItems)??le),H=p(ce=>i(ce),[]),Q=p(ce=>c(ce),[]),K=p(ce=>ce===nt.REFUND&&_,[_]),{getBalanceAccounts:Z}=je().endpoints,{data:re}=yt(f(()=>({fetchOptions:{enabled:!!Z&&!g.balanceAccount&&!!g.balanceAccountId,keepPrevData:!0},queryFn:async()=>Z==null?void 0:Z(F)}),[g.balanceAccountId,g.balanceAccount,Z])),xe=p(ce=>void(K(ce)||r(ce)),[K]),Ae=p(()=>{const ce=[s,o].filter(Boolean);return ce.length?a(Tl,{className:Af,children:a(md,{actions:ce,layout:go.BUTTONS_END})}):null},[s,o]),he=p(()=>{d(),u(!0)},[u,d]),Re=p(()=>j!=null&&j.length||x||l?a("div",{className:Rf,children:[(x||l)&&a(cn,{type:ve.HIGHLIGHT,variant:an.TIP,description:`${z.get("refund.theRefundIsBeingProcessed")} ${z.get("pleaseComeBackLater")}`}),j.map((ce,Je)=>a(cn,{variant:an.TIP,type:(ce==null?void 0:ce.type)??ve.HIGHLIGHT,description:ce==null?void 0:ce.label},`${Math.random()}-${Je}`))]}):null,[z,j,x,l]),me=g.balanceAccount??((ke=re==null?void 0:re.data)==null?void 0:ke.find(ce=>ce.id===g.balanceAccountId));if(Si(()=>{r(nt.DETAILS)},[g]),Si(()=>{_&&r(nt.DETAILS)},[_]),h)return a(Fa,{skeletonRowNumber:5});if(K(n))return null;const ye={lineItems:b,refundAvailable:y,refundDisabled:_,setActiveView:xe,setPrimaryAction:H,setSecondaryAction:Q};switch(n){case nt.DETAILS:return a(pl,{renderViewActionButtons:Ae,renderViewMessageBox:Re,children:a(aM,{...ye,transaction:!g.balanceAccount&&me?{...g,balanceAccount:me}:{...g},transactionNavigator:m,extraFields:t,children:[a(Tl,{className:vf,children:a($f,{transaction:g,refundedState:E})}),a(Pf,{})]})});case nt.REFUND:return a(pl,{renderViewActionButtons:Ae,children:a(IM,{...ye,availableAmount:M,currency:A,refundMode:L,refreshTransaction:d,transactionId:g.id,children:[a(Vf,{}),N&&a(qf,{}),L===Pe.FULL_AMOUNT&&a(Gf,{}),(L===Pe.PARTIAL_AMOUNT||L===Pe.PARTIAL_LINE_ITEMS)&&a(Zf,{locale:z.locale}),T&&a(cn,{variant:an.TIP,type:T.type,description:T.description})]})});case nt.REFUND_SUCCESS:return a(Al,{renderIcon:()=>a(He,{name:"checkmark-circle-fill",className:P(vi,jf)}),title:z.get("refundActionSuccessTitle"),subtitle:z.get("refundActionSuccessSubtitle"),action:()=>a(de,{variant:ae.SECONDARY,onClick:he,children:z.get("goBack")})});case nt.REFUND_ERROR:return a(Al,{renderIcon:()=>a(He,{name:"cross-circle-fill",className:P(vi,xf)}),title:z.get("refundActionErrorTitle"),subtitle:z.get("refundActionErrorSubtitle"),action:()=>a(de,{variant:ae.SECONDARY,onClick:d,children:z.get("goBack")})});default:return null}},ey=Kf,ty=({error:e,isFetching:t,transaction:n,extraFields:r})=>be(t)||!(n||e)?a(Fa,{skeletonRowNumber:5}):n?a(ey,{transaction:n,extraFields:r}):null,ny=(e,t)=>{const{getBalanceAccounts:n}=je().endpoints,{data:r,isFetching:s,error:i}=yt(f(()=>({fetchOptions:{enabled:!!n&&(t??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(F)}),[n])),o=f(()=>r==null?void 0:r.data.filter(l=>e?l.id===e:!0),[r==null?void 0:r.data,e]),c=f(()=>!!e&&!!(r!=null&&r.data.length)&&(o==null?void 0:o.length)===0,[o==null?void 0:o.length,r==null?void 0:r.data.length,e]);return{balanceAccounts:o,isBalanceAccountIdWrong:c,isFetching:s,error:i}},No=ny;const Fd=Wr({withinModal:!1}),ry=()=>Fr(Fd);function sy({title:e,children:t,classNameModifiers:n=[],isOpen:r,onClose:s,isDismissible:i=!0,headerWithBorder:o=!0,size:c="fluid",...l}){const u=Se(_e.down.xs),{i18n:h}=Y(),d=Ha(null,s),g=p(m=>{m.key==="Escape"&&r&&i&&s()},[r,i,s]);return B(()=>(r?window.addEventListener("keydown",g):window.removeEventListener("keydown",g),()=>window.removeEventListener("keydown",g)),[r,g]),a(J,{children:r&&a("div",{className:P("adyen-pe-modal-wrapper",n.map(m=>`adyen-pe-modal-wrapper--${m}`),{"adyen-pe-modal-wrapper--open":r,"adyen-pe-modal-wrapper--dismissible":i}),role:"dialog","aria-modal":"true","aria-hidden":!open,...l,children:a(Fd.Provider,{value:{withinModal:!0},children:a("div",{className:P("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:P("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":e,"adyen-pe-modal__header--with-border-bottom":o}),children:[e&&a("div",{className:"adyen-pe-modal__header__title",children:e}),i&&a(de,{onClick:s,variant:ae.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":h.get("dismiss"),children:a(He,{name:"cross"})})]}),a("div",{className:"adyen-pe-modal__content",children:t})]})})})})}const iy={transaction:"transactionDetails",payout:"payoutDetails"},oy=({hideTitle:e,type:t})=>{const{i18n:n}=Y(),{withinModal:r}=ry(),[s,i]=w(!1),o=f(()=>s||be(e),[s,e]),c=f(()=>n.get(iy[t]),[n,t]);return B(()=>{i(r)},[r]),{hideTitle:o,title:c}},ay=oy,cy={transaction:"getTransaction",payout:"getPayout"},wo=e=>!("data"in e);function sc(e){var M;const t=f(()=>wo(e)?null:e.data,[e]),n=f(()=>wo(e)?e.id:null,[e]),r=je().endpoints[cy[e.type]],{hideTitle:s,title:i}=ay(e),{data:o,error:c,isFetching:l}=yt(f(()=>({fetchOptions:{enabled:!!n&&!!r},queryFn:async()=>{const T=e.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:e.date}};return r(F,{...T})}}),[n,r,e])),u=e.type==="payout"?e.id:o==null?void 0:o.balanceAccountId,h=e.type==="payout"?e==null?void 0:e.balanceAccountDescription:e==null?void 0:e.balanceAccount,{balanceAccounts:d}=No(u,!h),g=f(()=>{if(c)return Xa(c,"weCouldNotLoadYourTransactions",e.onContactSupport)},[c,e.onContactSupport]),m=wo(e)&&e.type==="transaction"?e.extraDetails:F,N=t??o;return a("div",{className:"adyen-pe-overview-details",children:[!s&&a("div",{className:"adyen-pe-overview-details--title",children:a(R,{variant:O.TITLE,medium:!0,children:i})}),c&&g&&a("div",{className:"adyen-pe-overview-details--error-container",children:a(Qt,{withImage:!0,...g})}),e.type==="transaction"&&a(ty,{transaction:N?{...N||F,balanceAccount:(e==null?void 0:e.balanceAccount)||(d==null?void 0:d[0])}:void 0,error:!!(c&&g),isFetching:l,extraFields:m}),e.type==="payout"&&N&&a(tM,{balanceAccountId:n,payout:N,balanceAccountDescription:(e==null?void 0:e.balanceAccountDescription)||((M=d==null?void 0:d[0])==null?void 0:M.description),isFetching:l})]})}class Bd extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(sc,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}k(Bd,"type","payoutDetails");const ly=Bd,uy="adyen-pe-data-overview-container--with-error";function ic({balanceAccountsError:e,children:t,className:n,errorMessage:r,isBalanceAccountIdWrong:s,onContactSupport:i}){const{hasError:o}=je();return a("div",{className:P(n,{[uy]:o}),children:o?a(Qt,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[r,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):e?a(Qt,{withImage:!0,centered:!0,...Xa(e,"weCouldNotLoadYourBalanceAccounts",i)}):s?a(Qt,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[r,"theSelectedBalanceAccountIsIncorrect"]}):a(J,{children:t})})}const dy="adyen-pe-payouts-overview",hy="adyen-pe-payouts-details",my=new Date("2024-04-16T00:00:00.000Z").toString(),Yd="adyen-pe-payouts-table",Iy=`${Yd}__net-payout`;const $d=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],gy=["createdAt",...$d],My=e=>$d.includes(e),Ny=({error:e,loading:t,onContactSupport:n,onRowClick:r,showDetails:s,showPagination:i,data:o,...c})=>{const{i18n:l}=Y(),{dateFormat:u}=Zt("UTC"),{refreshing:h}=je(),d=f(()=>t||h,[t,h]),g=Se(_e.up.sm),m=p(y=>{var S,E,j,L;const A=l.get(tc(y));if(My(y))return{label:(E=(S=o==null?void 0:o[0])==null?void 0:S[y])!=null&&E.currency?`${A} (${Ou((L=(j=o==null?void 0:o[0])==null?void 0:j[y])==null?void 0:L.currency)})`:A,position:dn.RIGHT}},[o,l]),N=jd({fields:gy,columnConfig:f(()=>({fundsCapturedAmount:{...m("fundsCapturedAmount"),visible:g},adjustmentAmount:{...m("adjustmentAmount"),visible:g},payoutAmount:m("payoutAmount")}),[m,g])}),M={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},T=f(()=>()=>a(qa,{error:e,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[e,n]);return a("div",{className:Yd,children:a(hn,{errorDisplay:T,error:e,columns:N,data:o,loading:d,outline:!1,onRowClick:{callback:r},emptyTableMessage:M,customCells:{createdAt:({value:y})=>y?g?y&&a(R,{variant:O.BODY,children:u(y,Rg)}):u(y,wg):null,fundsCapturedAmount:({value:y})=>y&&a(R,{variant:O.BODY,children:l.amount(y.value,y.currency,{hideCurrency:!0})}),adjustmentAmount:({value:y})=>y&&a(R,{variant:O.BODY,children:l.amount(y.value,y.currency,{hideCurrency:!0})}),payoutAmount:({value:y})=>y&&a(R,{variant:O.BODY,className:P({[`${Iy}--strong`]:!g}),children:l.amount(y.value,y.currency,{hideCurrency:g})})},children:i&&a(hn.Footer,{children:a(ec,{...c})})})})};const _l="adyen-pe-filter-bar-mobile-switch",oc=()=>{const e=Se(_e.down.xs),[t,n]=w(!e);return B(()=>{n(!e)},[e]),{isMobileViewport:e,showingFilters:t,setShowingFilters:n}},ac=({isMobileViewport:e,showingFilters:t,setShowingFilters:n})=>e?a("div",{className:_l,children:a(de,{iconButton:!0,className:`${_l}__button`,disabled:!ee(n),onClick:()=>n==null?void 0:n(!t),variant:ae.SECONDARY,children:a(He,{name:t?"cross":"filter"})})}):null,fy=e=>{const{i18n:t}=Y();return e.showingFilters?a("div",{"aria-label":t.get("filterBar"),className:P("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":e.isMobileViewport}),children:[e.children,e.canResetFilters&&!!e.resetFilters&&a(de,{variant:ae.TERTIARY,onClick:e.resetFilters,children:t.get("button.clearAll")})]}):null},cc=fy;const lc="adyen-pe-balance-account-selector",yy=`${lc}__account-id`,Ty=`${lc}__account-label`,py=De(({activeBalanceAccount:e,balanceAccountSelectionOptions:t,onBalanceAccountSelection:n})=>{const r=Se(_e.down.xs),s=p(i=>a(J,{children:[a("div",{className:i.contentClassName,children:[i.item.name&&a("span",{className:Ty,children:i.item.name}),a("span",{className:yy,children:i.item.id})]}),Od(i)]}),[]);return t&&t.length>1?a(qs,{popoverClassNameModifiers:[lc],onChange:n,filterable:!1,multiSelect:!1,selected:e==null?void 0:e.id,withoutCollapseIndicator:!0,items:t,renderListItem:s,showOverlay:r}):null}),uc=py,dc=Object.freeze([10,20]),Ay=100,ds=10,ca=e=>{const t=~~e;return t===e&&t>0?Math.min(t,Ay):Math.max(t,0)},_y=(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,i=n;for(;;){const o=e[r=ql(s,i)];if(s>i||t===o)return o;t>o?s=r+1:i=r-1}},Sy=({preferredLimit:e=ds,preferredLimitOptions:t})=>{const n=$(),r=$(),s=f(()=>{try{const o=new Set;for(const c of t){const l=ca(c);l>0&&o.add(l)}return Object.freeze([...o].sort((c,l)=>c-l))}catch{}},[t]);return{limit:f(()=>{let o=ca(e)||ds;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!==o)t:{if(c.size===c.add(o).size)break t;if(c.delete(o),c.size===c.add(r.current).size){if(kr(r.current)){o=r.current;break t}}else c.delete(r.current);o=_y(n.current,o)}}catch{}return r.current=o},[s,e]),limitOptions:s}},Dy=Sy,Ly=e=>{const t=$(!1),n=f(()=>e,[e]);return B(()=>(t.current=!0,()=>{t.current=!1,n&&n()}),[n]),t},hc=Ly,Ey=(e,t,n)=>{const r=$(),s=$(),i=$(),o=$(),c=hc(p(()=>{var b;(b=r.current)==null||b.abort(),r.current=void 0},[])),[l,u]=w(o.current),[h,d]=Dt(!1),g=f(()=>ca(n),[n]),{getPageCount:m,getPageParams:N,resetPageCount:M,updatePagination:T}=e,y=f(()=>t?b=>{var Z;if(!(g&&Number.isInteger(b)))return;const H=m(),Q=b<0?b+H+1:b;Q>0&&(H?Q<=H:Q===1)&&((Z=r.current)==null||Z.abort(),r.current=new AbortController,c.current&&(((o.current=Q)>1||H)&&u(o.current),(async()=>{const{signal:re}=r.current,xe={...N(Q,g),limit:g,page:Q};try{const Ae=await t(xe,re);if(!Ae||!c.current)return;const{size:he,...Re}=Ae;T(Q,g,Re),s.current=o.current&&Math.max(o.current,s.current||-1/0),o.current&&o.current===s.current&&(i.current=he),o.current===1&&he>0&&u(o.current),o.current=void 0,d(!0)}catch(Ae){if(re.aborted)return;console.error(Ae)}})()))}:te,[g,t]),A=p(()=>{l&&y(Math.min(l+1,m()))},[y,l]),S=p(()=>{l&&y(Math.max(l-1,1))},[y,l]),E=f(()=>m()||l||void 0,[y,h]),j=f(()=>!!(l&&E)&&l<E,[l,E]),L=f(()=>!!l&&l>1,[l]),x=f(()=>s.current?(s.current-1)*g+(i.current||0):0,[y,h]),_=f(()=>g&&Math.min(g,x||1/0)%g,[g,x]),z=p(()=>{M(),s.current=i.current=o.current=void 0,c.current&&u(o.current)},[M]);return B(()=>{c.current&&h&&d(!1)},[h]),{goto:y,hasNext:j,hasPrev:L,limit:g,next:A,page:l,pages:E,pageSize:_,prev:S,resetPagination:z,size:x}},Qd=Ey,Cy=e=>rt(e.next),Oy=e=>rt(e.prev),vy=(e,t)=>{const n=f(()=>{const r=[],s=()=>r.length,i=()=>{r.length=0},o=u=>({cursor:r[u-1]}),c=(u,h)=>{const d=r[h-1];(h===1||h===(r.length||1)+1)&&V(d)&&(r[h-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:s,getPageParams:o,resetPageCount:i,updatePagination:(u,h,d)=>{Cy(d)&&c(d.next,u+1),Oy(d)&&c(d.prev,u-1)}}},[]);return Qd(n,e,t)},by=vy,jy=e=>e.next,xy=(e,t)=>{const n=f(()=>{let r=0;return{getPageCount:()=>r,getPageParams:(l,u)=>({offset:(l-1)*u}),resetPageCount:()=>{r=0},updatePagination:(l,u,h)=>{jy(h)&&h.next&&(r=Math.max(r,l+1))}}},[]);return Qd(n,e,t)},Ry=xy,wy=(e=F,t=!0)=>{const n=$(t),r=$(Object.freeze({...e})),s=$(new Set(Object.keys(r.current))),i=$(new Set),o=hc(),[c,l]=f(()=>{const g=m=>{o.current&&h(m)};return[()=>g("reset"),m=>g(m)]},[o]),[u,h]=mo((g,m)=>{if(m==="reset")return i.current.clear(),r.current;const N={...m},M=[0];Object.keys(N).forEach((y,A)=>{if(!s.current.has(y))return;const S=g[y]??void 0,E=r.current[y]??void 0,j=N[y]??E;if(j===S)return;const L=Math.floor(A/32),x=1<<A%32;N[y]=j,M[L]|=x,i.current[j===E?"delete":"add"](y)});const T=M.some(y=>y)?n.current&&i.current.size===0?r.current:Object.freeze({...g,...N}):g;return n.current||(r.current=T,n.current=!0),T},r.current),d=f(()=>!!i.current.size,[]);return B(()=>{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}},zy=wy,Py=(e=F,t)=>{const{canResetState:n,defaultState:r,resetState:s,state:i,updateState:o}=zy(e,t);return{canResetFilters:n,defaultFilters:r,filters:i,resetFilters:s,updateFilters:o}},ky=Py;var la=(e=>(e.NEXT="next",e.PREV="prev",e))(la||{}),mc=(e=>(e.CURSOR="cursor",e.OFFSET="offset",e))(mc||{});const Uy=["hasNext","hasPrevious"],Hd=e=>{const t=Object.getOwnPropertyNames(e);return!Uy.some(n=>t.includes(n))},Wy=(e,t="data")=>{const n=e[t];if(Hd(e)){const r=Object.fromEntries(Object.entries(e._links).map(([s,i])=>[s,i.cursor]));return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},Fy=(e,t="data")=>{const n=e[t];if(!Hd(e)){const{hasNext:r,hasPrevious:s}=e,i={[la.NEXT]:be(r),[la.PREV]:be(s)};return{records:n,paginationData:i}}throw new TypeError("MALFORMED_PAGINATED_DATA")},By=({dataField:e="data",fetchRecords:t,filterParams:n=F,initialFiltersSameAsDefault:r=!0,initialize:s,onFiltersChanged:i,pagination:o,preferredLimit:c,preferredLimitOptions:l,enabled:u})=>{const[h,d]=w([]),[g,m]=Dt(!0),[N,M]=w(),[T,y]=w(c),A=hc(),S=$(!0),E=$(1),j=ky(n,r),{limit:L,limitOptions:x}=Dy({preferredLimit:T,preferredLimitOptions:l}),{defaultFilters:_,filters:z,updateFilters:b,...H}=j,[Q,K]=f(()=>o===mc.CURSOR?[Wy,by]:[Fy,Ry],[]),Z=p(me=>y(me),[]),{goto:re,page:xe,pages:Ae,resetPagination:he,...Re}=K(p(async({page:me,...ye},ke)=>{try{if(M(void 0),E.current=me,!A.current||m(!0))return;const ce=await t({...ye,...z},ke),{records:Je,paginationData:Xt}=Q(ce,e);return S.current&&(s==null||s([Je,Xt],j),S.current=!1),A.current&&(d(Je),m(!1)),{...Xt,size:Je==null?void 0:Je.length}}catch(ce){if(ke!=null&&ke.aborted)return;m(!1),M(ce),console.error(ce)}},[t,z,L]),L);return f(()=>{S.current=!0},[n]),f(()=>{he(),E.current=1},[z,L,he]),B(()=>{u&&re(E.current)},[re,u]),B(()=>{i==null||i(z)},[z]),{error:N,fetching:g,filters:z,goto:re,limitOptions:x,page:xe,pages:Ae,records:h,updateFilters:b,updateLimit:Z,...H,...Re}},Yy=By,$y=e=>Yy({...e,pagination:mc.CURSOR}),Ic=$y,Qy=e=>{const[t,n]=w(0),r=p(()=>n(0),[n]),s=f(()=>e==null?void 0:e[t],[e,t]),i=f(()=>e&&e.length>1?Object.freeze(e.map(({description:c,id:l})=>({id:l,name:Im(c)}))):void 0,[e]),o=p(({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:i,onBalanceAccountSelection:o,resetBalanceAccountSelection:r}},gc=Qy,{getTimezoneTime:Hy,getUsedTimezone:Gy}=(()=>{const e=/\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,t=/^GMT|0(?=\d:00)|:00/g,n=Gs();return{getTimezoneTime:(i,o=Date.now())=>{n.tz=i;const{formatted:c}=n(o),[l="",u=""]=(c==null?void 0:c.match(e))??le,h=Zo(c),d=`${l}${u&&` ${u}`}`,g=hI(h).replace(t,"");return[d,g]},getUsedTimezone:i=>(n.tz=i,n.tz.current)}})(),Zy=({timezone:e,withClock:t=!1}=F)=>{const n=f(()=>be(t),[t]),r=f(()=>Gy(e),[e]),s=$(te),[i,o]=w(Date.now()),[c,l]=f(()=>Hy(r,i),[i,r]);return f(()=>{s.current(),s.current=n?Iu.subscribe(u=>{Un(u)||o(u.now)}):te},[o,n]),{clockTime:c,GMTOffset:l,timestamp:i,timezone:r}},Jy=Zy,Vy=e=>Object.freeze({systemToTimezone:W(t=>Et(e,t)),timezoneToSystem:W(t=>Ft(e,t)),timezoneOffset:W(t=>e(t).offset)}),Gd=(e,t,n=e)=>{const r=(s,i)=>{let o=s;Ne(s)?o=n:ss(s)||(o=i??n);const c=ft(e,o,t);return c===o?c:i??n};return s=>{const i=ie(()=>o);let o=r(s);return X({value:i,descriptor:W({...i,set(c){const l=o;o=r(c,o),l!==o&&(this.now=this.now)}})})}},Xy=(e,t)=>n=>ee(n)?n.call(e,t):n,qy=e=>!Ct(e,"offsets"),Ky=e=>Ct(e,"from"),fo=({now:e})=>e,eT=(()=>{const e=new Map;return t=>{let n=e.get(t);return V(n)&&(n=Object.freeze([0,0,t,0,0,0,-1]),e.set(t,n)),n}})(),$n=e=>{try{const t=e instanceof Date||+e===e?e:void 0,n=new Date(t).getTime();return isNaN(n)?void 0:n}catch{}},tT=(e=F,t=F)=>{const n=os(e),r=os(t);return()=>{const s=Gs(),i=ie(()=>d),o=ie(()=>s.tz.current),c=X({now:i,timezone:o,...Vy(s)}),l=Xy(n,c);let{from:u,to:h,now:d}=F;const g=N=>{d=$n(N??Date.now())??d;e:{if(qy(n)){u=$n(l(n.from))??d,h=$n(l(n.to))??d;break e}let M,T,y;(y=Ky(n))?(M=new Date(u=$n(l(n.from))??d),T=1):(M=new Date(h=$n(l(n.to))??d),T=-1),M=new Date(c.timezoneToSystem(M));const[A=0,S=0,E=0,j=0,L=0,x=0,_=0]=l(n.offsets);M.setFullYear(M.getFullYear()+A*T,M.getMonth()+S*T,M.getDate()+E*T),M.setHours(M.getHours()+j*T,M.getMinutes()+L*T,M.getSeconds()+x*T,M.getMilliseconds()+_*T);const z=$n(c.systemToTimezone(M))??d;y?h=z:u=z}u>h&&([u,h]=[h,u])},m=N=>{const M=s.tz,T=M.current;s.tz=N,M.current!==T&&g(d)};return g(),X({...r,from:ie(()=>u),now:{...i,set:g},timezone:{...o,set:m},to:ie(()=>h)})}},yo=tT,nT=/^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/,To=(e=ro)=>(t,n,...r)=>{const s=Ht(n),i=new Date(Ft(s,t));return i.setHours(0,0,0,0),Et(s,e(i,...r))},Zd=To(),Jd=To(e=>e.setDate(1)),rT=To(e=>e.setMonth(0,1)),Vd=To((e,t)=>{const n=iT(e.getDay(),t??0);return e.setDate(e.getDate()-n)}),sT=e=>(e%100?e%4:e%400)===0,zo=(e,t,n=0)=>{const r=e+n,s=Ys(r,12),i=t+Math.floor(r/12);let o=31;switch(s){case 1:o=sT(i)?29:28;break;case 3:case 5:case 8:case 10:o=30;break}return[o,s,i]},iT=(e,t=0)=>(7-t+e)%7,Kn=(e,t)=>jn(e)?0:e-Zd(e,t),Sl=e=>V(e)?e:new Date(e),oT=(e,t=F)=>{const n=Ht(t.timeZone),r={...La,...t,timeZone:n.tz.current};return new Date(e).toLocaleDateString(lo,r)},Kt=(e,t)=>{const n=oT(e,{...bu,...La,timeZone:t,hour12:!1}),[,r="",s="",i="",o="",c="",l="",u=""]=n.match(nT)??le;return[+i,+r-1,+s,+o%24,+c,+l,+u]},ua=(e,t,n)=>{if(jn(e)||jn(t))return 1/0;const[r,s]=Kt(e,n),[i,o]=Kt(t,n);return Math.abs(o-s+(i-r)*12)},Ht=(()=>{const e=Gs();return t=>(e.tz=void 0,e.tz=t,e)})(),Mc=1,aT=eT(7),cT=Gd(0,6,Mc),lT=(e=0)=>{const t=~~ft(0,e,1/0)||0;return(n=Mc)=>{const r=t?{offsets:aT}:{to:fo},s=cT(n);return yo({from:({now:i,timezone:o,systemToTimezone:c,timezoneToSystem:l})=>{const u=new Date(l(Vd(i,o,s.value)));return u.setDate(u.getDate()-t*7),c(u)},...r},{firstWeekDay:s.descriptor})()}},Xd=lT,uT=Object.freeze([0,1,0,0,0,0,-1]),dT=(e=0)=>{const t=~~ft(0,e,1/0)||0;return yo({from:({now:r,timezone:s,systemToTimezone:i,timezoneToSystem:o})=>{const c=new Date(o(Jd(r,s)));return c.setMonth(c.getMonth()-t),i(c)},...t?{offsets:uT}:{to:fo}})},qd=dT,hT=qd(1),mT=hT,IT=365,gT=1,MT=1,NT=Gd(gT,IT,MT),fT=e=>{const t=NT(e);return yo({from:({now:n,timezone:r,systemToTimezone:s,timezoneToSystem:i})=>{const o=new Date(i(Zd(n,r)));return o.setDate(o.getDate()-t.value+1),s(o)},to:fo},{numberOfDays:t.descriptor})()},Dl=fT,yT=Xd(1),TT=yT,pT=qd(0),AT=pT,_T=Xd(0),ST=_T,DT=yo({from:({now:e,timezone:t})=>rT(e,t),to:fo}),LT=DT,ET=()=>Object.freeze({"rangePreset.last7Days":Dl(7),"rangePreset.last30Days":Dl(30),"rangePreset.thisWeek":ST(),"rangePreset.lastWeek":TT(),"rangePreset.thisMonth":AT(),"rangePreset.lastMonth":mT(),"rangePreset.yearToDate":LT()}),CT=({now:e=Date.now(),options:t,selectedOption:n,timezone:r})=>{const{i18n:s}=Y(),[i,o]=w(),[c,l]=w(),[u,h]=w(),d=$(),g=$(),[m,N,M]=f(()=>{const L=s.get("rangePreset.custom"),x=Object.keys(t),_=Object.freeze(x.map(b=>s.get(b)));return[L,(b,H=_)=>{const Q=H.findIndex(K=>K===b);return t[x[Q]]},_]},[s,t]),[T,y]=w(n===m),A=f(()=>Object.freeze([...M,m]),[m,M]),S=f(()=>T?A:M,[T,M,A]),E=p(L=>{const x=N(L,M);x&&(o(x.from),l(x.to),y(!1),h(L))},[m,N,u,M]),j=p(()=>{o(void 0),l(void 0),y(!0),h(m)},[m]);return f(()=>{n===m?h(m):E(n)},[]),f(()=>{var L;if(d.current!==e||g.current!==r){const x=Object.values(t);x.forEach(_=>{_.now=e,_.timezone=r}),d.current=e,g.current=(L=x[0])==null?void 0:L.timezone,E(u)}},[e,r,t]),{customSelection:j,from:i,onSelection:E,options:S,selectedOption:u,to:c}},OT=({calendarRef:e,onTimeRangeSelected:t,timestamp:n,...r})=>{const{customSelection:s,from:i,onSelection:o,options:c,selectedOption:l,to:u}=CT(r),h=f(()=>Object.freeze(c.map(N=>({id:N,name:N}))),[c]),d=p(({target:N})=>o(N==null?void 0:N.value),[o]),g=$(!0),m=$(n);return B(()=>{e!=null&&e.current&&i&&u&&(g.current=!0,e.current.from=new Date(i),e.current.to=new Date(u))},[e,i,u]),B(()=>{m.current!==n&&(m.current=n,g.current?g.current=!1:s())},[s,n]),B(()=>{l&&(t==null||t(l))},[l,t]),a(qs,{setToTargetWidth:!0,items:h,filterable:!1,multiSelect:!1,onChange:d,selected:l})},vT=OT,dt=(()=>{const e=r=>Object.freeze(Ur(F,Object.fromEntries(Object.entries(r).map(([s,i])=>[s,{value:i}])))),t=r=>{try{return Object.getPrototypeOf(r)===F}catch{return!1}},n=(r,s)=>{if(!r)return e(W(s,Ot(r)));let i=s;return e({enumerable:!0,get:()=>i,set:o=>{i=r(o)}})};return Object.defineProperties(n,{is:{value:t},isObject:{value:so},immutable:{value:r=>n(!1,r)},mutable:{value:r=>n(void 0,r)},restricted:{value:()=>n(!1)}})})(),Kd=(()=>{const e=(n={},r=!1)=>{const s=X();for(const[i,o]of Object.entries(n)){try{const c=dt.is(o),l=dt.isObject(o);if(c||l){Object.defineProperty(s,i,c?o:e(o,r));continue}else if(r){Object.defineProperty(s,i,dt.immutable(o));continue}}catch{}s[i]=o}return dt((i={})=>Object.assign(s,i),s)};return Object.defineProperties(e,{unwrapped:{value:(n={},r=!1)=>{const s=e(n,r);return X({P:s}).P}}})})();var Nc=(e=>(e[e.DATE=0]="DATE",e[e.DAY_OF_WEEK=1]="DAY_OF_WEEK",e[e.MONTH_HEADER=2]="MONTH_HEADER",e))(Nc||{});const eh="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",th="adyen-pe-calendar__date",bT=(e=F,t)=>{const n=Kd.unwrapped({childClassName:dt.mutable(th),childProps:{children:dt.restricted(),className:""},className:dt.mutable(eh),props:{...e,children:dt.restricted(),className:""}},!0);return t==null||t(Nc.DATE,n),n},jT=Ge(({grid:e,prepare:t,datetime:n,flags:r,index:s,label:i,onlyCellsWithin:o},c)=>{const l=r.WITHIN_BLOCK,u={"data-cursor-position":s,"data-within-month":l,tabIndex:-1};if(l){const M=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"]=M,M&&(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=bT(u,t),{children:d,className:g,...m}=h.props||F,N=Li(h.className,eh,g);return a("td",{...m,...u,className:N,children:(!o||l)&&(()=>{const{children:M,className:T,...y}=h.childProps||F,A=Li(h.childClassName,th,T);return a("time",{...y,className:A,dateTime:n,children:i})})()})}),xT=De(jT,Di({block:Di.exclude,flags:e=>+e})),nh="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",rh="adyen-pe-calendar__day-of-week",RT=(e=F,t)=>{const n=Kd.unwrapped({childClassName:dt.mutable(rh),childProps:{children:dt.restricted(),className:""},className:dt.mutable(nh),props:{...e,children:dt.restricted(),className:""}},!0);return t==null||t(Nc.DAY_OF_WEEK,n),n},wT=({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"},i=RT(s,e),{children:o,className:c,...l}=i.props||F,u=Li(i.className,nh,c),{children:h,className:d,...g}=i.childProps||F,m=Li(i.childClassName,rh,d);return a("th",{...l,ref:l.ref,...s,className:u,children:a("abbr",{...g,className:m,children:r})})},zT=De(wT,Di({block:Di.exclude,flags:e=>+e}));const PT=Br(({cursorRootProps:e,onlyCellsWithin:t,prepare:n,grid:r},s)=>a("ol",{className:"adyen-pe-calendar",role:"none",...e,children:r.map(i=>a("li",{className:"adyen-pe-calendar__month",role:"none",children:[a("div",{className:"adyen-pe-calendar__month-name",role:"none",children:a("time",{dateTime:i.datetime,"aria-hidden":"true",children:i.label})}),a("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${i.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((o,c)=>a(zT,{grid:r,block:i,prepare:n,cell:c,...o},o.labels.long))})}),a("tbody",{children:i.map((o,c)=>a("tr",{className:"adyen-pe-calendar__row",children:o.map((l,u)=>a(xT,{ref:s,grid:r,block:i,prepare:n,cell:u,onlyCellsWithin:t,row:c,...l},`${i.month}:${l.timestamp}`))},`${i.month}:${c}`))})]})]},i.datetime))})),kT=De(PT),hs=864e5,UT=["narrow","short","long"],sh=[0,1,6],or=[1,2,3,4,6,12],Ll=42,WT=[0,1],fc=Symbol(),yc=Symbol(),Tc=Symbol(),El=[Tc,yc,fc],Nn=Symbol(),er=Symbol(),tr=Symbol(),FT=[er,tr,Nn],ih=Symbol(),oh=Symbol(),ah=Symbol(),ch=Symbol(),lh=Symbol(),uh=Symbol(),dh=Symbol(),hh=Symbol(),mh=Symbol(),Ih=Symbol(),pc=Symbol(),Ac=Symbol(),gh=Symbol(),Cl=Symbol(),Ye=Symbol(),Ol=Symbol(),ot=Symbol(),Mh=Symbol(),hi=Symbol(),mi=Symbol(),vl=(e,t)=>{if(t>=e)return e;let n=Math.max(1,or.indexOf(e));for(;--n&&t<or[n];);return or[n]},BT=e=>or[Math.max(or.indexOf(e),0)],bl=(e=0)=>Object.freeze(WT.map(t=>Ys(6-e+t,7)));var fs,qe,Ke,hr,mr;class jl{constructor(...t){C(this,fs,1/0);C(this,qe,1/0);C(this,Ke,-1/0);C(this,hr,0);C(this,mr,0);if(t.length>=3){let n=new Date(t[1]).getTime();if(typeof t[2]!="symbol")D(this,Ke,n||I(this,Ke)),D(this,qe,new Date(t[2]).getTime()||I(this,qe)),I(this,qe)<I(this,Ke)&&([In(this,qe)._,In(this,Ke)._]=[I(this,Ke),I(this,qe)]),D(this,mr,Kn(I(this,Ke),t[0])),D(this,hr,Kn(I(this,qe),t[0])),D(this,fs,ua(I(this,Ke),I(this,qe),t[0])+1);else if(!isNaN(n))switch(t[2]){case Ac:D(this,qe,n),D(this,hr,Kn(I(this,qe),t[0]));break;case pc:default:D(this,Ke,n),D(this,mr,Kn(I(this,Ke),t[0]));break}}}get numberOfMonths(){return I(this,fs)}get endTimestamp(){return I(this,qe)}get endTimestampOffset(){return I(this,hr)}get startTimestamp(){return I(this,Ke)}get startTimestampOffset(){return I(this,mr)}}fs=new WeakMap,qe=new WeakMap,Ke=new WeakMap,hr=new WeakMap,mr=new WeakMap;const po=(...e)=>{let t=Ht().tz.current,n=new jl(t,...e);return X({from:ie(()=>n.startTimestamp,!1),to:ie(()=>n.endTimestamp,!1),offsets:{value:X({from:ie(()=>n.startTimestampOffset,!1),to:ie(()=>n.endTimestampOffset,!1)})},span:ie(()=>n.numberOfMonths,!1),timezone:{...ie(()=>t,!1),set:r=>{const s=t;t=Ht(r??void 0).tz.current,t!==s&&(n=new jl(t,...e))}}})},rs=po(),YT=()=>po(Date.now(),pc),$T=()=>po(Date.now(),Ac),Nh=(...e)=>e.length===0?rs:po(...e);var Le=(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))(Le||{}),Gn=(e=>(e[e.PREV=1]="PREV",e[e.BLOCK=0]="BLOCK",e[e.FRAME=2]="FRAME",e[e.PERIOD=4]="PERIOD",e))(Gn||{}),da=(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))(da||{});const QT=(()=>{const e={},t=Object.keys(Le).filter(r=>isNaN(+r)),n=r=>r!=="ALL"&&rt(r)&&t.includes(r);return r=>{const s=r&Le.ALL;return e[s]||(e[s]=new Proxy(X({valueOf:{value:()=>s}}),ao({get:(i,o)=>{switch(o){case"valueOf":return i.valueOf;case Symbol.toStringTag:return"_";default:if(!n(o))return}return s&Le[o]?1:void 0}}))),e[s]}})(),fh=QT,HT=e=>(t,n,r)=>{if(rt(n)){const s=+n;if(s>=0&&s<t.length)return e(s)}return Reflect.get(t,n,r)},xl=function*(e=ro,t){for(let n=0;n<this.length;n++)yield e.call(t,this[n],n,this)},GT=Object.freeze(X({[Symbol.iterator]:{value(){return xl.call(this)}},map:{value(e,t){return[...xl.call(this,e,t)]}}})),Yt=(e,t)=>ee(e)?Yt({length:{get:e}},t):kr(e)?Yt({length:{value:e}},t):new Proxy(Ur(GT,e),{get:HT(t),set:Ho}),ZT=(()=>{const e=new Map,t=Gs(),n=(r=Date.now())=>{const s=new Date(Ft(t,r)),i=Et(t,s.setHours(0,0,0,0)),o=Et(t,s.setDate(s.getDate()+1));return[i,o-i]};return r=>{t.tz=r;const s=t.tz.current;return e.get(s)??(()=>{let i=null,o=null,c=null;const l=()=>(t.tz=s,i??n()[0]),u=(M=Date.now())=>{t.tz=s,[i,o]=n(M)},{cancelSubscriptions:h,requestNotification:d,subscribe:g,on:m}=Hs({timestamp:l});m.resume=()=>{c=mu.subscribe(M=>{if(Un(M))return;const{now:T}=M;if(yi(i)||yi(o))return u(T);T-i<o||(u(T),d())})},m.idle=()=>{c==null||c(),i=o=c=null};const N=X({cancelSubscriptions:W(h),timestamp:ie(l),timezone:W(s),subscribe:W(g)});return e.set(s,N),N})()}})(),ji=ZT;var Ir,$e,ys,Ts,ps,As,mt,et,Rt,gr,Mr,Nr,_n,wt,_s,ze,Ce,Oe,fr,zt,Sn,yr,It,Ss,Ds,en,Pt,Ls,Es,wi,zi,Pi,yh,ki,Th,tn,Zn,Ui,ph,Qe,Xe,Dn,qr,Cs,ma;const nr=class nr{constructor(){C(this,Pi);C(this,ki);C(this,tn);C(this,Ui);C(this,Qe);C(this,Dn);C(this,Cs);C(this,$e,0);C(this,ys,void 0);C(this,Ts,void 0);C(this,ps,-1);C(this,As,-1);C(this,mt,void 0);C(this,et,void 0);C(this,Rt,void 0);C(this,gr,!1);C(this,Mr,void 0);C(this,Nr,0);C(this,_n,[]);C(this,wt,I(nr,Ir));C(this,_s,12);C(this,ze,void 0);C(this,Ce,void 0);C(this,Oe,1);C(this,fr,void 0);C(this,zt,void 0);C(this,Sn,void 0);C(this,yr,ji());C(this,It,void 0);C(this,Ss,-1/0);C(this,Ds,1/0);C(this,en,-1/0);C(this,Pt,1/0);C(this,Ls,1/0);C(this,Es,0);k(this,"daysInWeek",0);k(this,"origin");k(this,"originTimestamp");C(this,wi,Yt(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));C(this,zi,Yt(()=>I(this,Oe),U(this,Ui,ph).bind(this)))}get fromTimestamp(){return I(this,Ss)}get toTimestamp(){return I(this,Ds)}get numberOfBlocks(){return I(this,Ls)}get blankSelection(){return I(this,ze)===I(this,Ce)&&V(I(this,Ce))}get cursor(){return I(this,mt)??-1}get daysOfWeek(){return I(this,wi)}get dynamicBlockHeight(){return I(this,gr)}set dynamicBlockHeight(t){Ne(t)?D(this,gr,!!t):Qo(t)&&D(this,gr,t)}set effect(t){Ne(t)?D(this,Mr,void 0):ee(t)&&D(this,Mr,t)}get firstWeekDay(){return I(this,Nr)}set firstWeekDay(t){if(Ne(t))this.firstWeekDay=0;else if(!sh.includes(t)||I(this,Nr)===D(this,Nr,t))return}get frameBlocks(){return I(this,zi)}get isAtEnd(){return!jn(I(this,Pt))&&I(this,Pt)===I(this,Oe)-1}get isAtStart(){return!jn(I(this,en))&&I(this,en)===0}get locale(){return I(this,wt)}set locale(t){const n=I(this,wt);if(Ne(t))D(this,wt,I(nr,Ir));else if(typeof Intl<"u")try{D(this,wt,new Intl.Locale(t).toString())}catch{D(this,wt,I(nr,Ir))}I(this,wt)!==n&&this.refreshFrame(!0)}get selectionStart(){return I(this,ze)}get selectionEnd(){return I(this,Ce)}get size(){return I(this,Oe)}set size(t){const n=Math.min(!Ne(t)&&BT(t)||1,I(this,_s));I(this,Oe)!==D(this,Oe,n)&&(U(this,Cs,ma).call(this),this.refreshFrame())}get timeslice(){return I(this,zt)}set timeslice(t){if(t===I(this,fr)||Ne(t)&&I(this,fr)===rs)return;const{from:n,to:r,timezone:s}=D(this,fr,t??rs);D(this,zt,Nh(n,r)),this.timezone=s}get timezone(){return I(this,Sn)}set timezone(t){I(this,zt).timezone=t,D(this,Sn,I(this,zt).timezone),D(this,yr,ji(I(this,Sn))),I(this,It)&&(I(this,It).call(this),D(this,It,I(this,yr).subscribe(this.refreshFrame.bind(this,!0)))),U(this,Pi,yh).call(this)}set trackCurrentDay(t){Qo(t)?t&&!I(this,It)?D(this,It,I(this,yr).subscribe(this.refreshFrame.bind(this,!0))):!t&&I(this,It)&&(I(this,It).call(this),D(this,It,void 0)):Ne(t)&&(this.trackCurrentDay=!1)}get units(){return I(this,Es)}initialize(){this.timeslice=rs}refreshFrame(t=!1){var n;if(I(this,_n).length=0,!(V(I(this,et))||t)){const r=this.getFrameBlockAtIndex(I(this,$e)),{from:s,to:i}=r.inner,[o]=U(this,tn,Zn).call(this,this.getTimestampAtIndex(s+I(this,et)),!1);D(this,et,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(s),o));const c=s+I(this,et),l=ft(s,c,i);if(l>c)return D(this,et,this.getUnitsForFrameBlockAtIndex(--In(this,$e)._)+c-l),I(this,$e)>=0?this.refreshFrame():(D(this,$e,I(this,Oe)-1),this.shiftFrameByOffset(-1,hi));if(l<c)return D(this,et,c-l-1),++In(this,$e)._<I(this,Oe)?this.refreshFrame():(D(this,$e,0),this.shiftFrameByOffset(1,hi));D(this,ys,s),D(this,Ts,i),D(this,Rt,U(this,tn,Zn).call(this,this.getTimestampAtIndex(c),!1)[0]),D(this,et,this.getCursorBlockOriginTimestampOffset(I(this,Rt))),D(this,mt,s+I(this,et));const u=I(this,$e)>0?this.getFrameBlockAtIndex(0):r,h=I(this,$e)<I(this,Oe)-1?this.getFrameBlockAtIndex(I(this,Oe)-1):r;D(this,ps,u.inner.from),D(this,As,h.inner.to),D(this,Es,h.outer.to+1)}this.withCurrentDayTimestamp(),(n=I(this,Mr))==null||n.call(this)}shiftFrameByOffset(t,n){if(t&&ss(t))switch(n){case Mh:return U(this,Dn,qr).call(this,t);case mi:return U(this,Dn,qr).call(this,t*12);case hi:default:return U(this,Dn,qr).call(this,t*I(this,Oe))}}shiftFrameCursor(t){switch(t){case ih:return U(this,Qe,Xe).call(this,-1);case lh:return U(this,Qe,Xe).call(this,1);case Ih:return U(this,Qe,Xe).call(this,-this.rowspan);case ch:return U(this,Qe,Xe).call(this,this.rowspan);case ah:return U(this,Qe,Xe).call(this,I(this,ys)-I(this,mt));case oh:return U(this,Qe,Xe).call(this,I(this,Ts)-I(this,mt));case dh:return U(this,Qe,Xe).call(this,-(I(this,mt)%this.rowspan));case uh:return U(this,Qe,Xe).call(this,this.rowspan-(I(this,mt)%this.rowspan+1));case mh:return U(this,Qe,Xe).call(this,-this.getUnitsForFrameBlockAtIndex((I(this,$e)??0)-1));case hh:return U(this,Qe,Xe).call(this,this.getUnitsForFrameBlockAtIndex(I(this,$e)??0))}if(!(t<0)&&t>=I(this,ps)&&t<=I(this,As))return U(this,Qe,Xe).call(this,t-I(this,mt))}shiftFrameToTimestamp(t){D(this,Rt,this.originTimestamp=U(this,tn,Zn).call(this,t,!1).reduce((n,r)=>n+r)),D(this,et,this.getCursorBlockOriginTimestampOffset(I(this,Rt))),this.reoriginate(),[In(this,en)._,In(this,Pt)._]=this.getEdgeBlockOffsetsFromOrigin(),U(this,Cs,ma).call(this),this.refreshFrame(),U(this,Qe,Xe).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(I(this,mt)),I(this,Rt)))}clearSelection(){this.blankSelection||(D(this,ze,D(this,Ce,void 0)),this.refreshFrame(!0))}updateSelection(t,n){const r=I(this,ze),s=I(this,Ce),i=U(this,tn,Zn).call(this,t,!1).reduce((o,c)=>o+c);switch(n===Cl&&(i<=r?n=ot:i>=s&&(n=Ye)),n){case Ye:D(this,ze,i),D(this,Ce,Math.max(I(this,ze),s??i));break;case ot:D(this,Ce,i),D(this,ze,Math.min(r??i,I(this,Ce)));break;case Cl:case Ol:{let o=Math.abs(i-(r??i)),c=Math.abs(i-(s??i));n===Ol&&([o,c]=[c,o]),o>c?D(this,ze,i):D(this,Ce,i);break}case gh:default:D(this,ze,D(this,Ce,i));break}(I(this,ze)!==r||I(this,Ce)!==s)&&this.refreshFrame(!0)}};Ir=new WeakMap,$e=new WeakMap,ys=new WeakMap,Ts=new WeakMap,ps=new WeakMap,As=new WeakMap,mt=new WeakMap,et=new WeakMap,Rt=new WeakMap,gr=new WeakMap,Mr=new WeakMap,Nr=new WeakMap,_n=new WeakMap,wt=new WeakMap,_s=new WeakMap,ze=new WeakMap,Ce=new WeakMap,Oe=new WeakMap,fr=new WeakMap,zt=new WeakMap,Sn=new WeakMap,yr=new WeakMap,It=new WeakMap,Ss=new WeakMap,Ds=new WeakMap,en=new WeakMap,Pt=new WeakMap,Ls=new WeakMap,Es=new WeakMap,wi=new WeakMap,zi=new WeakMap,Pi=new WeakSet,yh=function(){const{from:t,to:n,span:r,offsets:s}=I(this,zt);D(this,Ss,t-s.from),D(this,Ds,n-s.to),D(this,Ls,r);const i=V(I(this,ze))?I(this,ze):Math.max(I(this,ze),t),o=V(I(this,Ce))?I(this,Ce):Math.min(I(this,Ce),n);i===I(this,ze)||o===I(this,Ce)?(D(this,ze,i),D(this,Ce,o)):D(this,ze,D(this,Ce,void 0)),this.reslice(),D(this,_s,vl(12,this.numberOfBlocks)),D(this,Oe,vl(I(this,Oe),this.numberOfBlocks)),this.shiftFrameToTimestamp(I(this,Rt))},ki=new WeakSet,Th=function(t){return ft(I(this,en),t||0,I(this,Pt)-I(this,Oe)+1)},tn=new WeakSet,Zn=function(t,n=!0){let r=new Date(t).getTime();if(isNaN(r))return U(this,tn,Zn).call(this,Date.now());const{from:s,to:i}=I(this,zt),o=ft(s,r,i);o!==r&&n?(r=ql(s,i),(isNaN(r)||jn(r))&&(r=o)):r=o;const c=Kn(r,I(this,Sn));return[r-c,c]},Ui=new WeakSet,ph=function(t){if(ss(t)&&t>=0&&t<I(this,Oe)){if(!I(this,_n)[t]){const n=this.getFrameBlockAtIndex(t);if(!n)return;const[r,s]=this.getFormattedDataForFrameBlock(n[n.inner.from][0]+hs/2),i=n.outer.from;I(this,_n)[t]=Yt({datetime:W(s),label:W(r),length:W(Math.ceil(n.outer.units/this.rowspan)),month:W(n.month),year:W(n.year)},o=>{const c=o*this.rowspan;return Yt(this.rowspan,l=>{const[u,h]=n[l+c],[d,g]=this.getFormattedDataForBlockCell(u+hs/2);return X({datetime:W(g),flags:W(fh(h)),index:W(i+l+c),label:W(d),timestamp:W(u)})})})}return I(this,_n)[t]}},Qe=new WeakSet,Xe=function(t){t!==0&&(D(this,et,I(this,et)+t),this.refreshFrame())},Dn=new WeakSet,qr=function(t){const n=U(this,ki,Th).call(this,t);n&&(this.shiftOrigin(n),D(this,en,I(this,en)-n),D(this,Pt,I(this,Pt)-n),D(this,$e,Ys(I(this,$e)-n,I(this,Oe))),this.refreshFrame())},Cs=new WeakSet,ma=function(){const t=I(this,Oe)-1,n=Math.min(t-this.origin%I(this,Oe),I(this,Pt))-t;n&&U(this,Dn,qr).call(this,n)},C(nr,Ir,lo);let ha=nr;var Ln,En,Tr,Os,pr,Ar,vs,_r,bs,Sr,Dr,Lr,js,Ia,xs,ga,nn,Jn,Er,Ii;class JT extends ha{constructor(){super();C(this,js);C(this,xs);C(this,nn);C(this,Er);C(this,Ln,7);C(this,En,[]);C(this,Tr,bl(this.firstWeekDay));C(this,Os,void 0);C(this,pr,-1/0);C(this,Ar,1/0);C(this,vs,1/0);C(this,_r,void 0);C(this,bs,void 0);C(this,Sr,void 0);C(this,Dr,void 0);C(this,Lr,void 0);k(this,"daysInWeek",I(this,Ln));this.initialize()}get fromTimestamp(){return I(this,pr)}get toTimestamp(){return I(this,Ar)}get numberOfBlocks(){return I(this,vs)}get currentDayTimestamp(){return I(this,Os)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const r=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==r&&this.refreshFrame(!0)}get rowspan(){return I(this,Ln)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const r=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==r&&(I(this,En).length=0,D(this,Tr,bl(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return Kt(n,this.timezone)[2]-1}getDayOfWeekAtIndex(n){if(!I(this,En)[n]){const r=new Date(this.getTimestampAtIndex(n));let s=0;I(this,Tr).includes(n)&&(s|=Le.WEEKEND),n===0?s|=Le.LINE_START:n===6&&(s|=Le.LINE_END);const i={};for(const o of UT)i[o]=W(r.toLocaleDateString(this.locale,{weekday:o,timeZone:this.timezone}));I(this,En)[n]=X({flags:W(fh(s)),labels:W(X(i))})}return I(this,En)[n]}getEdgeBlockOffsetsFromOrigin(){return[U(this,js,Ia).call(this,I(this,pr)),U(this,js,Ia).call(this,I(this,Ar))]}getFormattedDataForBlockCell(n){const[r,s,i]=Kt(n,this.timezone);return[Number(i).toLocaleString(this.locale),`${r}-${`${s+1}`.padStart(2,"0")}-${`${i}`.padStart(2,"0")}`]}getFormattedDataForFrameBlock(n){const[r,s]=Kt(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,i]=zo(this.origin,I(this,Sr),n),o=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:I(this,_r),c=o+r-1,l=Math.floor(o/7)*7,u=this.dynamicBlockHeight?Math.ceil((c+1)/7)*7:l+Ll,h=this.dynamicBlockHeight?u-l:Ll,d=new Proxy(X(),ao({get:(g,m,N)=>{if(rt(m)){const M=+m;if(ss(M)&&M>=0&&M<h){const T=l+M,y=this.getTimestampAtIndex(T),A=T%I(this,Ln);let S=y===this.currentDayTimestamp?Le.CURRENT:0;return T===this.cursor&&(S|=Le.CURSOR),I(this,Tr).includes(A)&&(S|=Le.WEEKEND),A===0?S|=Le.LINE_START:A===I(this,Ln)-1&&(S|=Le.LINE_END),T>=o&&T<=c&&(T===o?S|=Le.BLOCK_START:T===c&&(S|=Le.BLOCK_END),S|=Le.WITHIN_BLOCK),y>=this.fromTimestamp&&y<=this.toTimestamp&&(y===this.fromTimestamp&&(S|=Le.RANGE_START),y===this.toTimestamp&&(S|=Le.RANGE_END),S|=Le.WITHIN_RANGE),y>=I(this,Dr)&&y<=I(this,Lr)&&(y===I(this,Dr)&&(S|=Le.SELECTION_START),y===I(this,Lr)&&(S|=Le.SELECTION_END),S|=Le.WITHIN_SELECTION),[y,S]}}return Reflect.get(g,m,N)}}));return Ur(d,{inner:{value:X({from:{value:o},to:{value:c},units:{value:r}})},month:{value:s},outer:{value:X({from:{value:l},to:{value:u-1},units:{value:h}})},year:{value:i}})}getUnitsForFrameBlockAtIndex(n){return zo(this.origin,I(this,Sr),n)[0]}getUnitsOffsetForTimestamp(n,r){return Math.round((r-n)/hs)}reoriginate(){this.originTimestamp=Jd(this.originTimestamp,this.timezone);const[n,r]=Kt(this.originTimestamp,this.timezone),s=Vd(this.originTimestamp,this.timezone,this.firstWeekDay);this.origin=r,D(this,Sr,n),D(this,_r,this.getUnitsOffsetForTimestamp(s,this.originTimestamp)),D(this,bs,U(this,xs,ga).call(this,this.originTimestamp,-I(this,_r)))}reslice(){U(this,Er,Ii).call(this),D(this,pr,U(this,nn,Jn).call(this,super.fromTimestamp)),D(this,Ar,U(this,nn,Jn).call(this,super.toTimestamp)),D(this,vs,ua(super.fromTimestamp,super.toTimestamp,this.timezone)+1)}shiftOrigin(n){const[r,s]=Kt(this.originTimestamp,this.timezone),[,i,o]=zo(s,r,n),c=Ht(this.timezone),l=new Date(Ft(c,this.originTimestamp)).setFullYear(o,i);this.originTimestamp=Et(c,l),this.reoriginate()}clearSelection(){super.clearSelection(),U(this,Er,Ii).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return U(this,xs,ga).call(this,I(this,bs),n)}updateSelection(n,r){super.updateSelection(n,r),U(this,Er,Ii).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(){D(this,Os,U(this,nn,Jn).call(this,Date.now()))}}Ln=new WeakMap,En=new WeakMap,Tr=new WeakMap,Os=new WeakMap,pr=new WeakMap,Ar=new WeakMap,vs=new WeakMap,_r=new WeakMap,bs=new WeakMap,Sr=new WeakMap,Dr=new WeakMap,Lr=new WeakMap,js=new WeakSet,Ia=function(n){const r=ua(n,this.originTimestamp,this.timezone);return n<this.originTimestamp?0-r:r},xs=new WeakSet,ga=function(n,r=0){const s=Ht(this.timezone),i=Ft(s,n),o=Et(s,i+r*hs);let[,,,c,l]=Kt(o,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),o+u},nn=new WeakSet,Jn=function(n){return V(n)||jn(n)?n:n-Kn(n,this.timezone)},Er=new WeakSet,Ii=function(){D(this,Dr,U(this,nn,Jn).call(this,this.selectionStart)),D(this,Lr,U(this,nn,Jn).call(this,this.selectionEnd))};const Rl=Symbol("<<NO_EXCEPTION>>"),wl=e=>{const t=[];return X({bind:W(r=>function(...s){let i=Rl;try{return t.push(r),r.call(this,...s)}catch(o){throw i=o}finally{t.pop(),t.length===0&&i===Rl&&e()}}),effect:W(e)})};var Vl,Xl,Me,gt,v,Mt,at,Nt,We,Cn,tt,Cr,kt,Ut,ct,St,Or,Rs,rn,lt,Wi,sn,vr,On,ws,Fi,ue,Bi,Yi,$i,Qi,Hi,Gi,Zi,Ah,Ji,_h,Vi,Sh,Xi,br,gi,vn,Kr,zs,Ma,qi,Dh,Ki,Lh,eo,Eh,to,Ch,Ps,Na,no,Oh,bn,es,ks,fa,jr,Mi,Us,ya,Ws,Ta,Fs,pa,Bs,Aa;let VT=(ue=class{constructor(){C(this,vn);C(this,zs);C(this,qi);C(this,Ki);C(this,eo);C(this,to);C(this,Ps);C(this,no);C(this,bn);C(this,ks);C(this,jr);C(this,Us);C(this,Ws);C(this,Fs);C(this,Bs);k(this,"grid");k(this,"kill");C(this,Me,F);C(this,gt,!1);C(this,v,void 0);C(this,Mt,void 0);C(this,at,void 0);C(this,Nt,!1);C(this,We,er);C(this,Cn,!1);C(this,tt,void 0);C(this,Cr,(Vl=I(this,tt))==null?void 0:Vl.join(" "));C(this,kt,void 0);C(this,Ut,void 0);C(this,ct,void 0);C(this,St,void 0);C(this,Or,void 0);C(this,Rs,ji());C(this,rn,[]);C(this,lt,void 0);C(this,Wi,new Proxy(Yt(()=>{var t;return((t=I(this,lt))==null?void 0:t.length)??0},U(this,Ps,Na).bind(this)),ao({get:(t,n,r)=>{var i,o;const s=((i=I(this,lt))==null?void 0:i.indexOf(n))??-1;return s>=0?(o=U(this,Ps,Na).call(this,s))==null?void 0:o[1]:Reflect.get(t,n,r)}})));C(this,sn,Hs({blocks:()=>{var t;return(t=I(this,v))==null?void 0:t.size},cells:()=>{var t;return(t=I(this,v))==null?void 0:t.units},controls:()=>Hr(El,I(this,Me).controls),cursor:()=>{var t;return(t=I(this,v))==null?void 0:t.cursor},from:()=>{var t;return(t=I(this,v))==null?void 0:t.selectionStart},highlight:()=>I(this,We),locale:()=>{var t;return(t=I(this,v))==null?void 0:t.locale},minified:()=>Qn(I(this,Me).minified),origin:()=>{var t;return(t=I(this,v))==null?void 0:t.getTimestampAtIndex(0)},timezone:()=>{var t;return(t=I(this,v))==null?void 0:t.timezone},to:()=>{var t;return(t=I(this,v))==null?void 0:t.selectionEnd},today:()=>I(this,Rs).timestamp}));C(this,vr,(Xl=I(this,sn))==null?void 0:Xl.snapshot);C(this,On,wl(()=>{var t;return I(this,ct)&&((t=I(this,sn))==null?void 0:t.requestNotification())}));C(this,ws,wl(()=>{var t;return(t=I(this,ct))==null?void 0:t.call(I(this,vn,Kr))}));C(this,Fi,Ur(Yt(()=>{var t;return((t=I(this,v))==null?void 0:t.size)??0},t=>{var n;return(n=I(this,v))==null?void 0:n.frameBlocks[t]}),{config:{value:Object.defineProperties(t=>(t&&U(this,Ki,Lh).call(this,t),I(this,vn,Kr)),{cursorIndex:{get:()=>I(this,kt),set:t=>{I(this,gt)||(Ne(t)?D(this,kt,void 0):ee(t)&&D(this,kt,t))}},shiftFactor:{get:()=>I(this,Ut),set:t=>{I(this,gt)||(Ne(t)?D(this,Ut,void 0):ee(t)&&D(this,Ut,t))}},watch:{get:()=>I(this,ct),set:t=>{var n,r,s,i,o;if(!I(this,gt))if(ee(t)){if(D(this,ct,t),!I(this,St)){const c=(n=I(this,On))==null?void 0:n.bind(I(ue,Xi).bind(this));c&&(D(this,St,(r=I(this,On))==null?void 0:r.bind(te)),D(this,Or,(i=I(this,sn))==null?void 0:i.subscribe((s=I(this,ws))==null?void 0:s.bind(c))),I(this,v)&&(I(this,v).effect=I(this,St)))}if(!I(this,Cn))return;D(this,Cn,!1),(o=I(this,St))==null||o.call(this)}else Ne(t)&&D(this,ct,void 0)}}})},controls:{value:I(this,Wi)},cursor:{value:Object.defineProperties(t=>U(ue,br,gi).call(this,n=>!!(n&&U(this,eo,Eh).call(this,n)))(t),{valueOf:{value:()=>{var t;return((t=I(this,v))==null?void 0:t.cursor)??-1}}})},highlight:{value:(()=>{const t=()=>I(this,Mt)===I(this,at)&&V(I(this,at)),n=r=>s=>U(ue,br,gi).call(this,i=>{var o,c,l,u,h;if(!(I(this,gt)||!I(this,We)||I(this,We)===er)){if(Ne(i))return U(this,ks,fa).call(this);t()?(c=I(this,v))==null||c.updateSelection(i,gh):((o=I(this,v))==null||o.updateSelection(i,r),I(this,We)===Nn&&I(this,tt)&&U(this,jr,Mi).call(this,i,r===Ye?ot:Ye,I(this,tt))),D(this,Mt,(l=I(this,v))==null?void 0:l.selectionStart),D(this,at,(u=I(this,v))==null?void 0:u.selectionEnd),(h=I(this,v))==null||h.shiftFrameToTimestamp(r===Ye?I(this,Mt):I(this,at))}})(s);return X({blank:{get:t},from:{get:()=>{var r;return((r=I(this,v))==null?void 0:r.selectionStart)??I(this,Mt)},set:n(Ye)},to:{get:()=>{var r;return((r=I(this,v))==null?void 0:r.selectionEnd)??I(this,at)},set:n(ot)}})})()},rowspan:{get:()=>{var t;return((t=I(this,v))==null?void 0:t.rowspan)??0}},weekdays:{get:()=>{var t;return((t=I(this,v))==null?void 0:t.daysOfWeek)??I(ue,$i)}}}));this.grid=I(this,Fi),this.kill=U(this,to,Ch).bind(this)}},Me=new WeakMap,gt=new WeakMap,v=new WeakMap,Mt=new WeakMap,at=new WeakMap,Nt=new WeakMap,We=new WeakMap,Cn=new WeakMap,tt=new WeakMap,Cr=new WeakMap,kt=new WeakMap,Ut=new WeakMap,ct=new WeakMap,St=new WeakMap,Or=new WeakMap,Rs=new WeakMap,rn=new WeakMap,lt=new WeakMap,Wi=new WeakMap,sn=new WeakMap,vr=new WeakMap,On=new WeakMap,ws=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,Yi=new WeakMap,$i=new WeakMap,Qi=new WeakMap,Hi=new WeakMap,Gi=new WeakMap,Zi=new WeakSet,Ah=function(t){if(!rt(t)||!I(ue,Bi).test(t))return;const n=t.split(/\s+/);return Array.from({length:6},(r,s)=>parseInt(n[s]??"0"))},Ji=new WeakSet,_h=function(t){switch(t&~Gn.PREV){case Gn.FRAME:return hi;case Gn.PERIOD:return mi;case Gn.BLOCK:default:return Mh}},Vi=new WeakSet,Sh=function(t){return t&Gn.PREV?-1:1},Xi=new WeakMap,br=new WeakSet,gi=function(t){var n;return((n=I(this,On))==null?void 0:n.bind(t))??t},vn=new WeakSet,Kr=function(){return{...I(this,Me)}},zs=new WeakSet,Ma=function(){return new JT},qi=new WeakSet,Dh=function(t){return!!I(this,v)&&!(t>0?I(this,v).isAtEnd:I(this,v).isAtStart)},Ki=new WeakSet,Lh=function(t){var s,i;if(I(this,gt))return;D(this,tt,void 0);const n=t==null?void 0:t.highlight,r=Qn(I(this,Me).minified);if(rt(n)?D(this,tt,U(s=ue,Zi,Ah).call(s,n))&&D(this,We,Nn):D(this,We,Hr(FT,n,I(this,We))),D(this,Me,{...I(this,Me),...t,blocks:Hr(or,t==null?void 0:t.blocks,I(this,Me).blocks),controls:Hr(El,t==null?void 0:t.controls,I(this,Me).controls),firstWeekDay:Hr(sh,t==null?void 0:t.firstWeekDay,I(this,Me).firstWeekDay),fixedBlockHeight:Qn(t==null?void 0:t.fixedBlockHeight,I(this,Me).fixedBlockHeight),highlight:I(this,We),minified:Qn(t==null?void 0:t.minified,I(this,Me).minified),trackCurrentDay:Qn(t==null?void 0:t.trackCurrentDay,I(this,Me).trackCurrentDay)}),!ee(I(this,ct))){I(this,v)?D(this,Cn,!0):(D(this,v,I(this,zs,Ma)),U(this,Ws,Ta).call(this),U(this,Bs,Aa).call(this),U(this,Fs,pa).call(this));return}(!I(this,v)||r!==I(this,Me).minified)&&(D(this,v,I(this,zs,Ma)),I(this,v).effect=I(this,St)),U(this,Ws,Ta).call(this),(i=I(this,St))==null||i.call(this)},eo=new WeakSet,Eh=function(t){if(t&&I(this,v)&&ee(I(this,ct))){if(t instanceof KeyboardEvent){switch(t.code){case G.ARROW_LEFT:I(this,v).shiftFrameCursor(ih);break;case G.ARROW_RIGHT:I(this,v).shiftFrameCursor(lh);break;case G.ARROW_UP:I(this,v).shiftFrameCursor(Ih);break;case G.ARROW_DOWN:I(this,v).shiftFrameCursor(ch);break;case G.HOME:I(this,v).shiftFrameCursor(t.ctrlKey?ah:dh);break;case G.END:I(this,v).shiftFrameCursor(t.ctrlKey?oh:uh);break;case G.PAGE_UP:t.shiftKey?I(this,v).shiftFrameByOffset(-1,mi):I(this,v).shiftFrameCursor(mh);break;case G.PAGE_DOWN:t.shiftKey?I(this,v).shiftFrameByOffset(1,mi):I(this,v).shiftFrameCursor(hh);break;case G.SPACE:case G.ENTER:return U(this,bn,es).call(this),!0;default:return}return I(this,Nt)&&U(this,bn,es).call(this,F),!0}if(t instanceof MouseEvent&&I(ue,Yi).includes(t.type)&&ee(I(this,kt))){const n=I(this,kt).call(I(this,vn,Kr),t);if(!ss(n))return;const r=t.type==="click";if(!(r||I(this,Nt)))return;if(I(this,v).shiftFrameCursor(n),I(this,v).cursor===n)return r?U(this,bn,es).call(this):U(this,bn,es).call(this,F),!0}}},to=new WeakSet,Ch=function(){var t;I(this,gt)||((t=I(this,Or))==null||t.call(this),D(this,On,D(this,ws,D(this,kt,D(this,v,D(this,We,D(this,Cr,D(this,vr,D(this,tt,D(this,Ut,D(this,Or,D(this,sn,D(this,St,D(this,ct,void 0))))))))))))),D(this,Me,F),D(this,Nt,D(this,Cn,!1)),D(this,gt,!0))},Ps=new WeakSet,Na=function(t){var r,s;if(!I(this,lt)||t<0||t>=I(this,lt).length)return;const n=I(this,lt)[t];if(!I(this,rn)[t]){const i=da[n],o=U(r=ue,Ji,_h).call(r,i),c=U(s=ue,Vi,Sh).call(s,i);I(this,rn)[t]=(...l)=>U(ue,br,gi).call(this,(...u)=>{var g;const h=U(this,qi,Dh).call(this,c);if(!(h&&u.length))return h;const d=U(this,no,Oh).call(this,n,u[0]);return V(d)?!1:((g=I(this,v))==null||g.shiftFrameByOffset(c*d,o),!0)})(...l)}return[n,I(this,rn)[t]]},no=new WeakSet,Oh=function(t,n){if(!(I(this,v)&&ee(I(this,ct))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!I(ue,Qi).includes(n.code))return}else return;let r=1;if(ee(I(this,Ut))){const s=Number(I(this,Ut).call(I(this,vn,Kr),n,t));r=Number.isInteger(s)&&s>=1?s:r}return r},bn=new WeakSet,es=function(t){if(I(this,gt)||!I(this,v))return;switch(I(this,We)){case Nn:case tr:break;case er:default:return}const n=I(this,v).cursor,r=Math.max(I(this,v).getTimestampAtIndex(n),I(this,v).timeslice.from),s=Math.min(I(this,v).getTimestampAtIndex(n+1)-1,I(this,v).timeslice.to),i=I(this,tt);if(I(this,We)===tr||I(this,v).blankSelection||i)if(D(this,Nt,!(I(this,We)===tr||i)),I(this,We)===Nn&&i){const o=s>=I(this,v).selectionEnd?Ye:ot;o===Ye?I(this,v).updateSelection(s,ot):I(this,v).updateSelection(r,Ye),U(this,jr,Mi).call(this,o===Ye?I(this,v).selectionEnd:I(this,v).selectionStart,o,i)}else I(this,v).updateSelection(r,Ye),I(this,v).updateSelection(s,ot);else{const o=t===F,c=Ht(I(this,v).timezone);if(o||D(this,Nt,!1),r<=I(this,v).selectionStart){const l=new Date(Ft(c,I(this,v).selectionStart)),u=Math.min(Et(c,l.setDate(l.getDate()+1)-1),I(this,v).timeslice.to);r===I(this,v).selectionStart&&s<=u&&I(this,v).updateSelection(s,ot),I(this,v).updateSelection(r,Ye)}else{const l=new Date(Ft(c,I(this,v).selectionEnd)),u=Math.max(Et(c,l.setHours(0,0,0,0)),I(this,v).timeslice.from);r<=I(this,v).selectionEnd&&r>=u&&I(this,v).updateSelection(r,Ye),I(this,v).updateSelection(s,ot)}if(o)return}D(this,Mt,I(this,v).selectionStart),D(this,at,I(this,v).selectionEnd)},ks=new WeakSet,fa=function(){var t;(t=I(this,v))==null||t.clearSelection(),D(this,Nt,!1),D(this,Mt,D(this,at,void 0))},jr=new WeakSet,Mi=function(t,n,r){var m;if(!I(this,v))return;const s=Ht((m=I(this,v))==null?void 0:m.timezone),i=new Date(Ft(s,t)),o=n===Ye?-1:1,[c=0,l=0,u=0,h=0,d=0,g=0]=r??[];i.setFullYear(i.getFullYear()+c*o,i.getMonth()+l*o,i.getDate()+u*o),i.setHours(i.getHours()+h*o,i.getMinutes()+d*o,i.getSeconds()+g*o),I(this,v).updateSelection(Et(s,i.getTime()-o),n)},Us=new WeakSet,ya=function(){var t,n;I(this,Mt)&&((t=I(this,v))==null||t.updateSelection(I(this,Mt),Ye)),I(this,at)&&((n=I(this,v))==null||n.updateSelection(I(this,at),ot)),D(this,Nt,!1)},Ws=new WeakSet,Ta=function(){I(this,v)&&(I(this,v).timeslice=I(this,Me).timeslice,I(this,v).dynamicBlockHeight=!I(this,Me).fixedBlockHeight,I(this,v).firstWeekDay=I(this,Me).firstWeekDay,I(this,v).locale=I(this,Me).locale,I(this,v).size=I(this,Me).blocks,I(this,v).timezone=I(this,Me).timezone,I(this,v).trackCurrentDay=I(this,Me).trackCurrentDay,D(this,Rs,ji(I(this,v).timezone)),U(this,Us,ya).call(this))},Fs=new WeakSet,pa=function(){var t,n,r,s,i,o;switch(I(this,We)){case Nn:!Ot((t=I(this,v))==null?void 0:t.blankSelection)&&I(this,tt)&&U(this,jr,Mi).call(this,(n=I(this,v))==null?void 0:n.selectionStart,ot,I(this,tt));break;case tr:if(!Ot((r=I(this,v))==null?void 0:r.blankSelection)){const c=Ht((s=I(this,v))==null?void 0:s.timezone),l=new Date(Ft(c,(i=I(this,v))==null?void 0:i.selectionStart));(o=I(this,v))==null||o.updateSelection(Et(c,l.setHours(23,59,59,999)),ot)}break;case er:default:U(this,ks,fa).call(this);return}},Bs=new WeakSet,Aa=function(){var t,n;switch((t=I(this,sn))==null?void 0:t.snapshot.controls){case fc:D(this,lt,I(ue,Hi));break;case yc:D(this,lt,I(ue,Gi));break;case Tc:default:D(this,lt,void 0)}I(this,rn).length=0,I(this,rn).length=((n=I(this,lt))==null?void 0:n.length)??0},C(ue,Zi),C(ue,Ji),C(ue,Vi),C(ue,br),C(ue,Bi,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),C(ue,Yi,["click","mouseover","pointerover"]),C(ue,$i,Yt(0,te)),C(ue,Qi,[G.ENTER,G.SPACE]),C(ue,Hi,Object.keys(da).filter(t=>isNaN(+t))),C(ue,Gi,["PREV","NEXT"]),C(ue,Xi,function(t){var o,c;if(Un(t))return;let n=!1,r=!1,s=!1;const i=(o=I(this,tt))==null?void 0:o.join(" ");for(const l of Object.keys(t))t[l]!==((c=I(this,vr))==null?void 0:c[l])&&(l==="controls"?n=!0:l==="highlight"?r=!0:(l==="from"||l==="to")&&(s=!0));I(this,Cr)!==i&&(D(this,Cr,i),r=!0),D(this,vr,t),I(this,Nt)&&!s&&U(this,Us,ya).call(this),n&&U(this,Bs,Aa).call(this),r&&U(this,Fs,pa).call(this)}),ue);const XT=(()=>Object.defineProperties(t=>{const{grid:n,kill:r}=new VT;return kr(t)?n.config({blocks:t}):ee(t)?xr.then(()=>{n.config.watch=t}):n.config(t),X({grid:W(n),kill:W(r)})},{controls:{value:X({ALL:{value:fc},MINIMAL:{value:yc},NONE:{value:Tc}})},highlight:{value:X({ONE:{value:tr},MANY:{value:Nn},NONE:{value:er}})},slice:{value:Object.defineProperties(Nh.bind(null),{FROM:{value:pc},TO:{value:Ac},UNBOUNDED:{value:rs},SINCE_NOW:{get:YT},UNTIL_NOW:{get:$T}})}}))(),At=XT,qT=({config:e,grid:{controls:t},renderer:n})=>e.controls===At.controls.NONE||!ee(n)?null:a(J,{children:t.map(([r,s])=>n(r,s))}),KT=De(qT),ep=e=>{const t=p((n,r)=>{r instanceof Element&&r.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),xr.then(()=>n==null?void 0:n.focus()))},[]);return Jt(p((n,r)=>{try{e==null||e(n,r)}finally{t(n,r)}},[e]))},tp=ep,np=({blocks:e,controls:t,dynamicBlockRows:n,firstWeekDay:r,highlight:s,locale:i,onHighlight:o,originDate:c,renderControl:l,sinceDate:u,timezone:h,trackCurrentDay:d,untilDate:g,useYearView:m},N)=>{const{i18n:M}=Y(),[T,y]=w(performance.now()),A=f(()=>At.slice(u,g),[u,g]),S=$(F),E=f(()=>t??(ee(l)?At.controls.MINIMAL:At.controls.NONE),[t,l]),j=f(()=>s??(ee(o)?At.highlight.ONE:At.highlight.NONE),[s,o]),{grid:L,kill:x}=f(()=>{const{grid:b,kill:H}=At(function(){y(performance.now()),S.current=this,!(Q===b.highlight.from&&K===b.highlight.to)&&(Q=b.highlight.from,K=b.highlight.to,o==null||o(Q,K))});let{from:Q,to:K}=b.highlight;return b.config.cursorIndex=Z=>{let re=Z.target;for(;re&&re!==Z.currentTarget;){const xe=Number(re.dataset.cursorPosition);if(Number.isFinite(xe))return xe;re=re.parentNode}},b.config.shiftFactor=function(Z){if(this.controls===At.controls.MINIMAL)return Z!=null&&Z.shiftKey?12:Z!=null&&Z.altKey?this.blocks:1},{grid:b,kill:H}},[]),_=f(()=>{const b=H=>{L.cursor(H)};return{onClickCapture:b,onMouseOverCapture:b,onPointerOverCapture:b,onKeyDownCapture:H=>{L.cursor(H)&&H.preventDefault()}}},[L]),z=tp(p((b,H)=>{H instanceof Element&&H.removeAttribute("aria-selected"),b instanceof Element&&b.setAttribute("aria-selected","true")},[]));return CI(N,()=>{const{from:b,to:H}=(L==null?void 0:L.highlight)||F;return{clear:()=>{L!=null&&L.highlight&&(L.highlight.from=void 0)},get config(){return{...S.current??F}},get from(){return Sl(b)},set from(Q){L!=null&&L.highlight&&Q&&(L.highlight.from=Q.getTime())},get to(){return Sl(H)},set to(Q){L!=null&&L.highlight&&Q&&(L.highlight.to=Q.getTime())}}},[L,T]),B(()=>{L.config({blocks:e,controls:E,firstWeekDay:r,fixedBlockHeight:!n,highlight:j,locale:i??M.locale,minified:m,timeslice:A,timezone:h,trackCurrentDay:d})},[E,j,e,n,r,L,M,i,A,h,d,m]),B(()=>{const b=[].concat(c).slice(0,2).map(Number).filter(Boolean);return b[0]&&(L.highlight.from=+b[0]),b[1]&&(L.highlight.to=+b[1]),x},[]),{cursorElementRef:z,cursorRootProps:_,grid:L}},rp=np,sp=Br((e,t)=>{const n=rp(e,t),r=n.grid.config();return a("div",{role:"none",children:[a(KT,{config:r,grid:n.grid,renderer:e.renderControl}),a(kT,{ref:n.cursorElementRef,config:r,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:e.onlyCellsWithin,prepare:e.prepare})]})}),ip=De(sp),op=(e,t)=>{const[n,r]=w(),s=Jt(f(()=>{const i=o=>(...c)=>{const l=e(o,...c);return l&&qu(l,o)};return r(void 0),o=>r(o instanceof Element?()=>i(o):void 0)},[e,t]),t);return[n,s]},ap=op,cp=e=>{const{i18n:t}=Y();return ap(p((n,r,s)=>{if(!(n instanceof HTMLElement))return null;if(ee(e))return e(r,s);let i,o,c;switch(r){case"PREV":i="prev",o="previous",c=za;break;case"NEXT":i=o="next",c=Io;break;default:return null}const l=s();return l?a(de,{"aria-label":t.get(`calendar.${o}Month`),variant:ae.TERTIARY,disabled:!l,classNameModifiers:["circle",i],iconButton:!0,onClick:s,children:a(c,{role:"presentation"})},r):null},[t,e]))},lp=cp;const up=Br((e,t)=>{const{i18n:n}=Y(),[r,s]=lp(e.renderControl),[i,o]=w(performance.now()),c=f(()=>Ot(e.showTimezoneInfo),[e.showTimezoneInfo]),{clockTime:l,GMTOffset:u}=Jy({timezone:e.timezone,withClock:c}),h=f(()=>P([{"adyen-pe-datepicker--with-timezone":c},"adyen-pe-datepicker"]),[c]),d=f(()=>c?{values:{offset:u,time:l}}:F,[u,l,c]),g=Jt(te,t),m=p(()=>{var N,M,T,y,A;o(performance.now()),(N=g.current)!=null&&N.from&&((M=g.current)!=null&&M.to)&&((A=e.onHighlight)==null||A.call(e,+((T=g.current)==null?void 0:T.from),+((y=g.current)==null?void 0:y.to)))},[o,e.onHighlight]);return a("div",{className:h,children:[a("div",{className:"adyen-pe-datepicker__selector-container",children:a(vT,{now:e.now,calendarRef:g,onTimeRangeSelected:e.onPresetOptionSelected,options:e.timeRangePresetOptions,selectedOption:e.selectedPresetOption,timestamp:i,timezone:e.timezone})}),a("div",{ref:s,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),a(ip,{...e,ref:g,firstWeekDay:Mc,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:e.controls??At.controls.MINIMAL,highlight:e.highlight??At.highlight.MANY,onHighlight:m,renderControl:r,trackCurrentDay:!0}),c&&a("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",d)})]})}),dp=up;const hp="adyen-pe-filter-button";function mp({className:e,classNameModifiers:t=[],children:n,disabled:r,onClick:s,...i},o){const c=f(()=>rr("",e)||"",[e]),l=f(()=>Ra(r),[r]),{classes:u,click:h}=wa(c,t,hp,l,s);return a("button",{className:u,ref:o,onClick:h,...i,children:a(R,{el:oe.DIV,variant:O.BODY,stronger:!0,children:n})})}const Ip=Ge(mp),gp=Br(function(t,n){return a(bi,{classNameModifiers:t.classNameModifiers,...t,ref:n,"aria-required":t.required,type:"text"})}),Mp=e=>!e||Go(e),Np=(()=>{const e=t=>{const{editAction:n,name:r,onChange:s,onValueUpdated:i}=t,[o,c]=w(t.value),l=p(u=>{const h=u.target.value.trim();c(h),i(h)},[i]);return B(()=>{if(n===Fe.CLEAR){const u="";c(u),i(u),s(u)}n===Fe.APPLY&&s(o??"")},[o,n,s,i]),a(gp,{name:r,value:o,onInput:l})};return t=>a(e,{...t})})(),fp=({render:e,...t})=>{var H;const n=Se(_e.down.xs),[r,s]=Dt(!1),[i,o]=Dt(!1),c=f(()=>t.isValueEmpty??Mp,[t.isValueEmpty]),[l,u]=Dt(c(t.value)),[h,d]=Dt(!1),[g,m]=Dt(!1),[N,M]=Dt(c(t.value)),T=Ci(),y=f(()=>e??Np,[e]),A=p(Q=>{const K=c(Q??void 0);u(K),M(yi(Q)),m(h?Q!==t.value:!K)},[c,u,M,m,h,t.value]),{commitAction:S,commitActionButtons:E,committing:j,resetCommitAction:L}=Ld({applyDisabled:N||!g,resetDisabled:l}),[x,_]=f(()=>{const Q=K=>()=>{K!==r&&(K&&(L(),m(!1),d(!1)),s(K),o(K))};return[Q(!1),Q(!0)]},[s,r,L,o,d,m]);B(()=>{if(i){const Q=c(t.value);o(!1),u(Q),d(!Q)}},[t.value,i,c,o,u,d]),B(()=>{j&&x(),u(l)},[j,x,u,l]);const z=Se(_e.only.sm),b=Se(_e.only.md);return a(J,{children:[a("div",{className:`adyen-pe-filter adyen-pe-filter--${t.type}`,children:f(()=>a(Ip,{classNameModifiers:[...t.appliedFilterAmount?["with-counter"]:[],...t.classNameModifiers??[],...r?["active"]:[],...l?[]:["has-selection"]],onClick:r?x:_,tabIndex:0,ref:T,children:a("div",{className:"adyen-pe-filter-button__default-container",children:[a(R,{el:oe.SPAN,variant:O.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(R,{el:oe.SPAN,variant:O.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:t.appliedFilterAmount})})]})}),[t.appliedFilterAmount,t.classNameModifiers,t.label,r,l,x,_,T])}),r&&a(Va,{actions:E,title:(H=t.title)==null?void 0:H.trim(),variant:Be.POPOVER,modifiers:["filter"],open:r,"aria-label":`${t.label}`,dismiss:x,dismissible:!1,withContentPadding:t.withContentPadding??!0,divider:!0,targetElement:T,disableFocusTrap:!1,position:Ie.BOTTOM,containerSize:t.containerSize,showOverlay:n,fitPosition:z||b,children:y({...t,editAction:S,onValueUpdated:A})})]})},vh=De(fp);var ms=(e=>(e.FROM="from",e.TO="to",e))(ms||{});const yp={month:"short",day:"numeric",year:"numeric"},bh=(e,t,n,r)=>{const s=n&&t(n),i=r&&t(r);if(s&&i)return`${s} - ${i}`;if(s)return e.get("filter.date.since",{values:{date:s}});if(i)return e.get("filter.date.until",{values:{date:i}})},Lt=e=>{try{return new Date(e||"").toISOString()}catch{return""}},Tp=(()=>{const e=({editAction:t,from:n,to:r,now:s,onChange:i,onValueUpdated:o,showTimezoneInfo:c,selectedPresetOption:l,timeRangePresetOptions:u,timezone:h,sinceDate:d,untilDate:g})=>{const{i18n:m}=Y(),{fullDateFormat:N}=Zt(h),[M,T]=w(l),y=f(()=>[new Date(n),new Date(r)],[n,r]),A=$(),S=p((E,j)=>{o(bh(m,N,Lt(E),Lt(j)))},[m,N,o]);return B(()=>{var E,j,L;switch(t){case Fe.APPLY:i({selectedPresetOption:M,[ms.FROM]:Lt((E=A.current)==null?void 0:E.from),[ms.TO]:Lt((j=A.current)==null?void 0:j.to)});break;case Fe.CLEAR:(L=A.current)==null||L.clear(),i()}},[t,i,M]),a(dp,{ref:A,now:s,originDate:y,onHighlight:S,onPresetOptionSelected:T,selectedPresetOption:l,timeRangePresetOptions:u,timezone:h,showTimezoneInfo:c,sinceDate:Lt(d),untilDate:Lt(g)})};return t=>a(e,{...t})})(),pp=(e,t,n)=>e.formatRange(t,n);function Ap({title:e,from:t,to:n,selectedPresetOption:r,...s}){const{i18n:i}=Y(),{fullDateFormat:o}=Zt(s.timezone),[c,l]=w(),[u,h]=w(),[d,g]=w(),m=p(y=>{const{from:A,to:S,selectedPresetOption:E}=y??F;try{l(c??E),h(Lt(u??A)),g(Lt(d??S))}finally{s.onChange({from:A,to:S,selectedPresetOption:E})}},[c,u,d,s]),N=f(()=>i.get("rangePreset.custom"),[i]),M=f(()=>{const y={...yp,timeZone:s.timezone};let A=new Intl.DateTimeFormat(lo,y);try{A=new Intl.DateTimeFormat(i.locale,y)}catch{}return A},[i,s.timezone]);B(()=>l(r),[r]),B(()=>h(Lt(t||Date.now())),[t]),B(()=>g(Lt(n||Date.now())),[n]);const T=f(()=>r===N&&u&&d?pp(M,new Date(u),new Date(d)):r??s.label,[N,M,u,d,r,s.label]);return a(vh,{...s,from:t,to:n,type:"date",label:T,onChange:m,render:Tp,selectedPresetOption:r,value:bh(i,o,t,n),withContentPadding:!1})}const _p=({timezone:e,canResetFilters:t,defaultParams:n,filters:r,nowTimestamp:s,refreshNowTimestamp:i,sinceDate:o,untilDate:c,updateFilters:l})=>{const{i18n:u}=Y(),h=f(()=>u.get(n.current.defaultTimeRange),[u]),[d,g]=w(h),m=p((N=F)=>{for(const[M,T]of Object.entries(N)){switch(M){case"selectedPresetOption":g(T||h);break;case ms.FROM:l({[q.CREATED_SINCE]:T||n.current.defaultFilterParams[q.CREATED_SINCE]});break;case ms.TO:l({[q.CREATED_UNTIL]:T||n.current.defaultFilterParams[q.CREATED_UNTIL]});break;default:return}i()}},[h,i,l]);return f(()=>!t&&g(h),[t,h]),a(Ap,{label:u.get("dateRange"),name:q.CREATED_SINCE,sinceDate:o,untilDate:c??new Date(s).toString(),from:r[q.CREATED_SINCE],to:r[q.CREATED_UNTIL],selectedPresetOption:d,timeRangePresetOptions:n.current.timeRangeOptions,timezone:e,onChange:m,showTimezoneInfo:!0,now:s})},_c=_p;function Sp(e){return"callback"in e}function jh(e){const[t,n]=w(null),r=p(o=>{var c;return o&&Sp(e[o.selection.type])?{callback:(c=e==null?void 0:e[o.selection.type])!=null&&c.callback?l=>{var u,h;return(h=(u=e[o.selection.type])==null?void 0:u.callback)==null?void 0:h.call(u,{showModal:()=>n(o),...l})}:()=>{var l;return((l=e[o.selection.type])==null?void 0:l.showDetails)&&n(o)}}:(n(o),{})},[e]),s=p(()=>n(null),[]),i=f(()=>{const o={};for(const c in e){const l=e[c];o[c]=!(l!=null&&l.showDetails)||!!l.callback}return o},[e]);return{selectedDetail:t,updateDetails:r,detailsToShow:i,resetDetails:s}}const Dp=De(({placeholder:e,selection:t,selectionOptions:n,updateSelection:r})=>{const s=Se(_e.down.xs),i=Se(_e.only.sm),o=Se(_e.only.md);return n&&n.length>1?a(qs,{onChange:r,filterable:!1,multiSelect:!0,placeholder:e,selected:t,withoutCollapseIndicator:!0,items:n,showOverlay:s,fitPosition:o||i}):null}),zl=Dp,Lp=e=>Object.freeze(e.map(t=>({id:t,name:t}))),Ep=({filterParam:e,filterValues:t,filters:n,defaultFilters:r,updateFilters:s})=>{const i=f(()=>Zr((n==null?void 0:n[e])??(r==null?void 0:r[e])??""),[r,n,e]),o=f(()=>t&&Lp(t),[t]),c=p(({target:l})=>{s==null||s({[e]:(l==null?void 0:l.value)||""})},[s,e]);return{selection:i,selectionOptions:o,updateSelection:c}},Po=Ep,Cp=[q.CURRENCIES,q.CATEGORIES,q.STATUSES],Ni=Object.freeze(Object.fromEntries(Cp.map(e=>[e,""]))),Op=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],vp=["Booked","Pending","Reversed"],bp=e=>{const t=ET(),n="rangePreset.last30Days",{from:r,to:s}=t[n];return{defaultFilterParams:{...e==="transactions"&&{...Ni,[q.MIN_AMOUNT]:void 0,[q.MAX_AMOUNT]:void 0},[q.BALANCE_ACCOUNT]:void 0,[q.CREATED_SINCE]:new Date(r).toISOString(),[q.CREATED_UNTIL]:new Date(s).toISOString()},defaultTimeRange:n,timeRangeOptions:t}},jp=(e,t)=>{const[n,r]=w(Date.now()),s=bp(e),i=$(s),o=p(()=>r(Date.now()),[r]);return B(()=>{o()},[t,o]),{defaultParams:i,nowTimestamp:n,refreshNowTimestamp:o}},Sc=jp;const xp="adyen-pe-data-overview-header",Rp=({baseClassName:e=xp,children:t,hideTitle:n,titleKey:r,descriptionKey:s})=>{const{i18n:i}=Y();return a("header",{className:e,children:[a("div",{className:`${e}__headings`,children:[!n&&r&&a("div",{className:`${e}__title`,children:a(R,{el:oe.SPAN,variant:O.TITLE,medium:!0,children:i.get(r)})}),s&&a("p",{className:`${e}__description`,children:a(R,{el:oe.SPAN,variant:O.BODY,children:i.get(s)})})]}),t&&a("div",{className:`${e}__controls`,children:t})]})};const wp={base:"adyen-pe-modal-content"};function zp({type:e,data:t,...n}){const r=f(()=>{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(J,{children:r&&a("div",{className:wp.base,children:a(sc,{...r})})})}const xh=({children:e,className:t,selectedDetail:n,resetDetails:r})=>{const{i18n:s}=Y(),i=!!n;return B(()=>{i&&Xr.closeAll()},[i]),a("div",{className:t,children:[e,n&&a(sy,{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(zp,{...n==null?void 0:n.selection})})]})};const Pp=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:r=ds,onRecordSelection:s,showDetails:i,isLoadingBalanceAccount:o,onContactSupport:c,hideTitle:l})=>{const{getPayouts:u}=je().endpoints,{activeBalanceAccount:h,balanceAccountSelectionOptions:d,onBalanceAccountSelection:g}=gc(t),{defaultParams:m,nowTimestamp:N,refreshNowTimestamp:M}=Sc("payouts",h),T=p(async(ye,ke)=>u({signal:ke,errorLevel:"error"},{query:{...ye,createdSince:ye[q.CREATED_SINCE]??m.current.defaultFilterParams[q.CREATED_SINCE],createdUntil:ye[q.CREATED_UNTIL]??m.current.defaultFilterParams[q.CREATED_UNTIL],balanceAccountId:(h==null?void 0:h.id)??""}}),[h==null?void 0:h.id,m,u]),y=oc(),A=f(()=>ee(e)?e:void 0,[e]),S=f(()=>n?dc:void 0,[n]),{canResetFilters:E,error:j,fetching:L,filters:x,limit:_,limitOptions:z,records:b,resetFilters:H,updateFilters:Q,updateLimit:K,...Z}=Ic({fetchRecords:T,dataField:"data",filterParams:m.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:A,preferredLimit:r,preferredLimitOptions:S,enabled:!!(h!=null&&h.id)&&!!u});B(()=>{M()},[x,M]);const re=f(()=>({showDetails:i??!0,callback:s}),[i,s]),xe=f(()=>({payout:re}),[re]),{updateDetails:Ae,resetDetails:he,selectedDetail:Re}=jh(xe),me=p(ye=>{Ae({selection:{type:"payout",data:{id:h==null?void 0:h.id,balanceAccountDescription:(h==null?void 0:h.description)||"",date:ye.createdAt}},modalSize:"small"}).callback({balanceAccountId:(h==null?void 0:h.id)||"",date:ye.createdAt})},[Ae,h]);return a("div",{className:dy,children:[a(Rp,{hideTitle:l,titleKey:"payoutsTitle",descriptionKey:"payoutsNotice",children:a(ac,{...y})}),a(cc,{...y,children:[a(uc,{activeBalanceAccount:h,balanceAccountSelectionOptions:d,onBalanceAccountSelection:g}),a(_c,{canResetFilters:E,defaultParams:m,filters:x,nowTimestamp:N,refreshNowTimestamp:M,sinceDate:my,timezone:"UTC",updateFilters:Q})]}),a(xh,{className:hy,onContactSupport:c,selectedDetail:Re,resetDetails:he,children:a(Ny,{loading:L||o||!t,data:b,showPagination:!0,onRowClick:me,showDetails:i,limit:_,limitOptions:z,onContactSupport:c,onLimitSelection:K,error:j,...Z})})]})},kp="adyen-pe-payouts-overview-container";function Up({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:r,error:s}=No(e.balanceAccountId);return a(ic,{balanceAccountsError:s,className:kp,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:a(Pp,{...e,balanceAccounts:t,isLoadingBalanceAccount:r})})}class Rh extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(Up,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}k(Rh,"type","payouts");const Wp=Rh;class wh extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(sc,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}k(wh,"type","transactionDetails");const Fp=wh;const Bp={base:"adyen-pe-divider"},Yp=({className:e})=>a("hr",{className:P(Bp.base,e)}),$p="adyen-pe-header",Dc=({baseClassName:e=$p,children:t,hasDivider:n,hideTitle:r,titleKey:s,subtitleKey:i})=>{const{i18n:o}=Y();return a("header",{className:e,children:[a("div",{className:`${e}__headings`,children:[!r&&s&&a("div",{className:`${e}__title`,children:a(R,{el:oe.SPAN,variant:O.TITLE,medium:!0,children:o.get(s)})}),i&&a("div",{className:`${e}__subtitle`,children:a(R,{el:oe.SPAN,variant:O.BODY,children:o.get(i)})}),n&&a(Yp,{className:`${e}__divider`})]}),t&&a("div",{className:`${e}__controls`,children:t})]})},Qp="adyen-pe-transaction-totals",Pl="adyen-pe-transaction-totals__item";const Ao="adyen-pe-expandable-card",Rn=Ao+"__container",kl=Rn+"--button",ko=Rn+"--filled",Hp=Rn+"--hidden",zh=Rn+"--overlay",Uo=zh,fi=Ao+"__content",Ul=fi+"--expandable",Wl=Ao+"__chevron",Gp="adyen-pe-base-button";function Zp({disabled:e=!1,onClick:t,classNameModifiers:n=[],type:r="button",children:s,className:i,fullWidth:o,...c},l){const u=f(()=>rr("",i)||"",[i]),h=f(()=>Ra(e),[e]),{classes:d,click:g}=wa(u,[...n,...o?["full-width"]:[]],Gp,h,t);return a("button",{className:d,type:r,disabled:e,onClick:g,ref:l,...c,children:s})}const Fl=Ge(Zp),Jp=({renderHeader:e,children:t,filled:n,fullWidth:r,...s})=>{const{i18n:i}=Y(),[o,c]=w(!1),l=p(()=>c(m=>!m),[c]),u=$(null),h=$(!1),d=$(o),g=Ha(void 0,p(()=>{o&&(l(),h.current=!0)},[o,l]));return B(()=>{var m,N;o?(m=g.current)==null||m.focus():(d.current!==o&&!h.current&&((N=u.current)==null||N.focus()),h.current=!1),d.current=o},[o,g]),a("div",{className:Ao,children:t?a(J,{children:[a(Fl,{className:P(Rn,kl,{[ko]:n}),disabled:o,fullWidth:r,"aria-controls":Uo,"aria-expanded":o,"aria-hidden":o,onClick:l,ref:u,"data-testid":"expand-button",...s,children:[a("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.expand")}),a("div",{className:P(fi,Ul),children:e}),a("div",{className:Wl,children:a(Io,{role:"presentation"})})]}),a(Fl,{id:Uo,className:P(Rn,kl,zh,{[ko]:n,[Hp]:!o}),disabled:!o,fullWidth:r,"aria-controls":Uo,"aria-expanded":o,"aria-hidden":!o,onClick:l,ref:g,"data-testid":"collapse-button",...s,children:[a("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.collapse")}),a("div",{className:P(fi,Ul),children:[e,a("div",{children:t})]}),a("div",{className:Wl,children:a(za,{role:"presentation"})})]})]}):a("div",{className:P(Rn,{[ko]:n}),...s,children:a("div",{className:fi,children:e})})})},Ph=Jp,Lc="adyen-pe-amount-skeleton",Vp=Lc+"--has-margin",Xp=Lc+"--loading";const qp=({hasMargin:e=!1,isLoading:t=!1,width:n})=>a("span",{className:P(Lc,{[Xp]:t,[Vp]:e}),style:{width:n}}),Kp=qp,zn="adyen-pe-summary-item",kh=zn+"__label-container",eA=kh+"--loading",tA=zn+"--body",Uh=zn+"__label",nA=zn+"__placeholder",rA=zn+"__amount",Bl=Ge(({config:e,i18n:t,isSkeletonVisible:n,className:r,...s},i)=>a("span",{className:P(kh,r,{[eA]:n}),style:{cursor:"default"},ref:i,...s,children:e.labelKey&&a(R,{variant:O.CAPTION,className:Uh,children:t.get(e.labelKey)})}));const Wh=({columnConfigs:e,isHeader:t=!1,isHovered:n=!1,isSkeletonVisible:r=!1,isLoading:s=!1,widths:i,onWidthsSet:o,isEmpty:c})=>{const{i18n:l}=Y();B(()=>{const g=e.map(m=>{var N,M;return((M=(N=m.ref)==null?void 0:N.current)==null?void 0:M.getBoundingClientRect().width)??0});o(g)},[o]);const u=g=>({width:i&&i[g]?i[g]:"auto"}),h=Se(_e.only.xs),d=p((g,m)=>g.valueHasLabelStyle?O.CAPTION:m&&!h?O.BODY:O.TITLE,[h]);return a("div",{className:P(zn,{[tA]:!t}),children:e.map((g,m)=>{const N=g.getValue(),M=!!N&&N.length>12;return a("div",{children:[t&&(g.tooltipLabel?a(un,{content:l.get(`${g.tooltipLabel}`),isContainerHovered:n,children:a(Bl,{config:g,i18n:l,isSkeletonVisible:r})}):a(Bl,{config:g,i18n:l,isSkeletonVisible:r})),r?a(Kp,{isLoading:s,hasMargin:g.hasSkeletonMargin,width:g.skeletonWidth+"px"}):c?a("span",{className:P([zn,nA])}):a("div",{ref:g.ref,style:u(m),children:a(R,{variant:d(g,M),className:P({[Uh]:g.valueHasLabelStyle,[rA]:!g.valueHasLabelStyle}),children:N})})]},m)})})},Yl=({total:e,hiddenField:t,isHeader:n=!1,isHovered:r=!1,isSkeleton:s=!1,isLoading:i=!1,widths:o,onWidthsSet:c})=>{const{i18n:l}=Y(),u=$(null),h=$(null),d=$(null),g=f(()=>{const m={labelKey:"totalIncoming",ref:u,skeletonWidth:80,getValue:()=>e&&l.amount(e.incomings,e.currency),tooltipLabel:"tooltip.totalIncoming"},N={labelKey:"totalOutgoing",ref:h,skeletonWidth:80,getValue:()=>e&&l.amount(e.expenses,e.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...t!=="incomings"?[m]:[],...t!=="expenses"?[N]:[],{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}]},[e,t,l]);return a(Wh,{isHovered:r,isEmpty:!e,columnConfigs:g,isHeader:n,isSkeletonVisible:s,isLoading:i,widths:o,onWidthsSet:c})};const sA="adyen-pe-base-list",Ec=({children:e,classNames:t})=>a("ul",{className:P(sA,[t]),children:e}),Fh=()=>{const[e,t]=w([]),n=p(r=>{t(s=>r.every(i=>!i)?r:r.map((i,o)=>{const c=s[o];return!c||i>c?i:c}))},[]);return[e,n]},Wo=De(({totals:e,isLoading:t,hiddenField:n,fullWidth:r})=>{const[s,i]=Fh(),[o,c]=w(!1),[l,...u]=f(()=>e.map(h=>(h.key=`${h.currency}-${Math.random()}`,h)),[e]);return a(Ph,{renderHeader:a(Yl,{isHovered:o,total:l,hiddenField:n,widths:s,isHeader:!0,isSkeleton:t,isLoading:t,onWidthsSet:i}),fullWidth:r,onMouseEnter:()=>c(!0),onFocus:()=>c(!0),onMouseLeave:()=>c(!1),onBlur:()=>c(!1),children:!t&&u.length&&a(Ec,{children:u.map(h=>a("li",{children:a(Yl,{isHovered:o,total:h,hiddenField:n,widths:s,onWidthsSet:i})},h.key))})})}),iA=De(({availableCurrencies:e,isAvailableCurrenciesFetching:t,balanceAccountId:n,createdSince:r,createdUntil:s,categories:i,statuses:o,maxAmount:c,minAmount:l,currencies:u,fullWidth:h})=>{const{getTransactionTotals:d}=je().endpoints,g=p(async()=>d==null?void 0:d(F,{query:{createdSince:r,createdUntil:s,categories:i,statuses:o,maxAmount:c,minAmount:l,currencies:u,balanceAccountId:n}}),[n,i,r,s,u,d,c,l,o]),{data:m,isFetching:N}=yt({fetchOptions:f(()=>({enabled:!!n&&!!d}),[n,d]),queryFn:g}),M=!n||N||t,y=p(()=>{if(!e||!m)return m==null?void 0:m.data;const S=e.map(E=>m.data.find(L=>L.currency===E)||{currency:E,incomings:0,expenses:0});return S.concat(m.data.filter(E=>!S.includes(E)))},[e,m])()??[],A=Se(_e.only.xs);return a("div",{className:Qp,children:A?a(J,{children:[a("div",{className:Pl,children:a(Wo,{totals:y,isLoading:M,hiddenField:"expenses",fullWidth:h})}),a("div",{className:Pl,children:a(Wo,{totals:y,isLoading:M,hiddenField:"incomings",fullWidth:h})})]}):a(Wo,{totals:y,isLoading:M,fullWidth:h})})}),oA=iA,aA="adyen-pe-balances",$l=({balance:e,isHeader:t=!1,isSkeleton:n=!1,isLoading:r=!1,widths:s,onWidthsSet:i,isEmpty:o})=>{const{i18n:c}=Y(),l=$(null),u=$(null),h=f(()=>[{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(Wh,{isEmpty:o,columnConfigs:h,isHeader:t,isSkeletonVisible:n,isLoading:r,widths:s,onWidthsSet:i})},cA=De(({balanceAccountId:e,defaultCurrencyCode:t,onCurrenciesChange:n,fullWidth:r})=>{const{getBalances:s}=je().endpoints,i=p(async()=>s==null?void 0:s(F,{path:{balanceAccountId:e}}),[e,s]),{data:o,error:c,isFetching:l}=yt({fetchOptions:f(()=>({enabled:!!e&&!!s}),[e,s]),queryFn:i}),u=!e||l,h=!!c||!(o!=null&&o.data.length),d=f(()=>(o==null?void 0:o.data)&&[...o.data].sort(({currency:T},{currency:y})=>{if(t){if(T===t)return-1;if(y===t)return 1}return T.localeCompare(y)}),[o==null?void 0:o.data,t]),[g,...m]=f(()=>(d==null?void 0:d.map(T=>(T.key=`${T.currency}-${Math.random()}`,T)))??[],[d]),[N,M]=Fh();return B(()=>{const T=new Set((d==null?void 0:d.map(({currency:y})=>y))||[]);n(Array.from(T),l)},[d,l,n]),a("div",{className:aA,children:a(Ph,{renderHeader:a($l,{isEmpty:h,balance:g,widths:N,isHeader:!0,isSkeleton:u,isLoading:u,onWidthsSet:M}),filled:!0,fullWidth:r,children:m.length&&a(Ec,{children:m.map(T=>a("li",{children:a($l,{balance:T,widths:N,onWidthsSet:M})},T.key))})})})}),lA=(e,t)=>{const n=Po({filterParam:q.CATEGORIES,filterValues:Op,defaultFilters:Ni,...e}),r=Po({filterParam:q.STATUSES,filterValues:vp,defaultFilters:Ni,...e}),s=Po({filterParam:q.CURRENCIES,filterValues:t,defaultFilters:Ni,...e});return{categoriesFilter:n,currenciesFilter:s,statusesFilter:r}},uA=lA;const xi=1e5,dA=({onChange:e,editAction:t,onValueUpdated:n,selectedCurrencies:r,availableCurrencies:s,value:i,...o})=>{const{i18n:c}=Y(),[l,u]=w(V(o.minAmount)?void 0:parseFloat(o.minAmount)/xi),[h,d]=w(V(o.maxAmount)?void 0:parseFloat(o.maxAmount)/xi),g=p(()=>{e({minAmount:l,maxAmount:h})},[h,l,e]),m=p(()=>{e({minAmount:void 0,maxAmount:void 0}),d(void 0),u(void 0)},[e]);B(()=>{t===Fe.APPLY&&g(),t===Fe.CLEAR&&m()},[g,m,t]);const N=f(()=>({minAmount:Number(l),maxAmount:Number(h)}),[h,l]);return B(()=>{const{maxAmount:M,minAmount:T}=N;V(M)&&V(T)||T>M?n(null):n(`${T}-${M}`)},[N,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(bi,{"data-testid":"minValueFilter",lang:c.locale,name:"minValue",type:"number",value:l,onInput:M=>{M.currentTarget&&u(M.currentTarget.value!==""?M.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(bi,{"data-testid":"maxValueFilter",lang:c.locale,name:"maxValue",type:"number",value:h,onInput:M=>{M.currentTarget&&d(M.currentTarget.value!==""?M.currentTarget.value:void 0)},min:l,isInvalid:!V(h)&&!V(l)&&h<l,errorMessage:c.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},hA=({updateFilters:e,selectedCurrencies:t,availableCurrencies:n,...r})=>{const{i18n:s}=Y(),[i,o]=w(),[c,l]=w(),u=f(()=>(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=p((g,m)=>{const N=(t==null?void 0:t[0])||(n==null?void 0:n[0]),M=m&&N?{style:"currency",currency:N,currencyDisplay:"symbol"}:void 0;return g.toLocaleString(s.locale,M)},[n,s,t]),d=p(g=>{const{minAmount:m,maxAmount:N}=g??F;o({minAmount:m,maxAmount:N}),V(m)&&V(N)&&l(void 0),e({minAmount:V(m)?void 0:String(Math.round(m*xi)),maxAmount:V(N)?void 0:String(Math.round(N*xi))})},[e]);if(i&&(i.minAmount||i.maxAmount)){const{minAmount:g,maxAmount:m}=i??{};!V(g)&&!V(m)&&g<=m?l(`${h(g,u)} ${s.get("to").toLowerCase()} ${h(m,u)}`):!V(g)&&V(m)&&g>=0?l(`${s.get("from")} ${h(g,u)}`):V(g)&&!V(m)?l(`${s.get("to")} ${h(m,u)}`):l(void 0)}return a(vh,{...r,updateFilters:e,minAmount:r.minAmount,maxAmount:r.maxAmount,onChange:d,value:c,label:c||r.label,type:"text",containerSize:cs.MEDIUM,selectedCurrencies:t,availableCurrencies:n,render:dA})},Bh="adyen-pe-transactions",Yh=`${Bh}-overview`,mA=`${Bh}-details`,$h=`${Yh}__summary`,Ql=`${$h}-item`,IA=24,gA=({records:e,onDataRetrieved:t,mergeCustomData:n})=>{const[r,s]=w(e),[i,o]=w(!1),c=p(l=>async()=>{try{const u=t?await t(l):[];s(n({records:e,retrievedData:u}))}catch(u){s(e),console.error(u)}finally{o(!1)}},[t,e,n]);return B(()=>{t&&e.length&&(o(!0),c(e)())},[t,c,e]),{customRecords:r,loadingCustomRecords:i}};const MA=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:r=ds,onRecordSelection:s,showDetails:i,isLoadingBalanceAccount:o,onContactSupport:c,hideTitle:l,columns:u,onDataRetrieved:h})=>{const{i18n:d}=Y(),{getTransactions:g}=je().endpoints,{activeBalanceAccount:m,balanceAccountSelectionOptions:N,onBalanceAccountSelection:M}=gc(t),{defaultParams:T,nowTimestamp:y,refreshNowTimestamp:A}=Sc("transactions",m),S=p(async({balanceAccount:Ue,...we},qt)=>g({signal:qt,errorLevel:"error"},{query:{...we,statuses:Zr(we[q.STATUSES]),categories:Zr(we[q.CATEGORIES]),currencies:Zr(we[q.CURRENCIES]),createdSince:we[q.CREATED_SINCE]??T.current.defaultFilterParams[q.CREATED_SINCE],createdUntil:we[q.CREATED_UNTIL]??T.current.defaultFilterParams[q.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(m==null?void 0:m.id)??"",minAmount:V(we.minAmount)?void 0:parseFloat(we.minAmount),maxAmount:V(we.maxAmount)?void 0:parseFloat(we.maxAmount)}}),[m==null?void 0:m.id,T,g]),E=oc(),j=f(()=>ee(e)?e:void 0,[e]),L=f(()=>n?dc:void 0,[n]),{canResetFilters:x,error:_,fetching:z,filters:b,limit:H,limitOptions:Q,records:K,resetFilters:Z,updateFilters:re,updateLimit:xe,...Ae}=Ic({fetchRecords:S,dataField:"data",filterParams:T.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:j,preferredLimit:r,preferredLimitOptions:L,enabled:!!(m!=null&&m.id)&&!!g}),[he,Re]=w([]),[me,ye]=w(!1),ke=p((Ue,we)=>{Re(Ue),ye(we)},[]),{categoriesFilter:ce,currenciesFilter:Je,statusesFilter:Xt}=uA({filters:b,updateFilters:re},he);B(()=>{Re(void 0),re({[q.BALANCE_ACCOUNT]:m==null?void 0:m.id,[q.CURRENCIES]:void 0})},[re,m==null?void 0:m.id]),B(()=>{A()},[b,A]),B(()=>{Xt.updateSelection({target:{value:"Booked",name:"status"}})},[Xt]);const $r=Se(_e.down.sm),ti=!!he&&he.length>1,st=f(()=>({showDetails:i??!0,callback:s}),[i,s]),Bn=f(()=>({transaction:st}),[st]),mn=p(({records:Ue,retrievedData:we})=>Ue.map(qt=>({...we.find(ri=>ri.id===qt.id),...qt})),[]),{customRecords:Qr,loadingCustomRecords:_o}=gA({records:K,onDataRetrieved:h,mergeCustomData:mn}),{updateDetails:ni,resetDetails:So,selectedDetail:se}=jh(Bn),ge=p(({id:Ue})=>{const we=K.find(Yn=>Yn.id===Ue),qt=Qr.find(Yn=>Yn.id===Ue);return we&&qt?Object.keys(qt).reduce((ri,Lo)=>(Lo in we||(ri[Lo]=qt[Lo]),ri),{}):null},[K,Qr]),Te=p(({id:Ue})=>{ni({selection:{type:"transaction",data:Ue,balanceAccount:m||"",extraDetails:ge({id:Ue})??F},modalSize:"small"}).callback({id:Ue})},[m,ni,ge]),Do=f(()=>{const Ue=new Date(y);return Ue.setMonth(Ue.getMonth()-IA),Ue.toString()},[y]);return a("div",{className:Yh,children:[a(Dc,{hideTitle:l,titleKey:"transactionsOverviewTitle",children:a(ac,{...E})}),a(cc,{...E,children:[a(uc,{activeBalanceAccount:m,balanceAccountSelectionOptions:N,onBalanceAccountSelection:M}),a(_c,{canResetFilters:x,defaultParams:T,filters:b,nowTimestamp:y,refreshNowTimestamp:A,sinceDate:Do,timezone:m==null?void 0:m.timeZone,updateFilters:re}),a(zl,{...ce,placeholder:d.get("filterPlaceholder.category")}),a(hA,{availableCurrencies:he,selectedCurrencies:Zr(b[q.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:b[q.MIN_AMOUNT],maxAmount:b[q.MAX_AMOUNT],updateFilters:re,onChange:re}),a(zl,{...Je,placeholder:d.get("filterPlaceholder.currency")})]}),a("div",{className:$h,children:[a("div",{className:Ql,children:a(oA,{availableCurrencies:he,isAvailableCurrenciesFetching:me,balanceAccountId:m==null?void 0:m.id,statuses:Xt.selection,categories:ce.selection,createdUntil:b[q.CREATED_UNTIL],createdSince:b[q.CREATED_SINCE],currencies:Je.selection,minAmount:b[q.MIN_AMOUNT]?parseFloat(b[q.MIN_AMOUNT]):void 0,maxAmount:b[q.MAX_AMOUNT]?parseFloat(b[q.MAX_AMOUNT]):void 0,fullWidth:$r})}),a("div",{className:Ql,children:a(cA,{balanceAccountId:m==null?void 0:m.id,onCurrenciesChange:ke,defaultCurrencyCode:m==null?void 0:m.defaultCurrencyCode,fullWidth:$r})})]}),a(xh,{selectedDetail:se,resetDetails:So,className:mA,children:a(pf,{activeBalanceAccount:m,availableCurrencies:he,error:_,hasMultipleCurrencies:ti,limit:H,limitOptions:Q,loading:z||o||!t||_o,onContactSupport:c,onLimitSelection:xe,onRowClick:Te,showPagination:!0,transactions:h?Qr:K,customColumns:u,...Ae})})]})},NA="adyen-pe-transactions-overview-container";function fA({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:r,error:s}=No(e.balanceAccountId);return a(ic,{balanceAccountsError:s,className:NA,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:a(MA,{...e,balanceAccounts:t,isLoadingBalanceAccount:r})})}class Qh extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(fA,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}k(Qh,"type","transactions");const yA=Qh,TA={base:"adyen-pe-capital-offer"},ei=e=>a(Dc,{...e,subtitleKey:"capital.poweredByAdyen"});const pA=({className:e,el:t="div",children:n})=>a(t,{className:P("adyen-pe-info-box",e),children:n}),Cc=pA;const AA=(e,t=0)=>new Date(new Date(e).setUTCHours(0,0,0,0)+Math.floor(t)*hs),Hh=e=>tu(AA(new Date,e)),_A=e=>e?Math.ceil(e/30):null,SA=(e,t)=>{let n,r;function s(...i){clearTimeout(n),r=i,n=setTimeout(()=>{e(r),r=void 0},t)}return s.cancel=()=>{n&&(clearTimeout(n),n=void 0,r=void 0)},s},Oc=e=>e/100;function DA(e,t,n,r){if(t>=n)return 0;const s=r>0?r:1;if(s>n-t)return 0;const o=(Math.round((e-t)/s)*s+t-t)*100/(n-t);return Number(ft(0,o,100).toFixed(2))}function LA(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 EA=({min:e=0,max:t=100,step:n=1,value:r=e,onChange:s,className:i,...o})=>{const c=f(()=>DA(r,e,t,n),[r,e,t,n]);return a("input",{type:"range",className:P("adyen-pe-slider",i),min:e,max:t,step:n,value:r,onChange:s,style:{backgroundSize:`${c}% 100%`},...o})},CA=({dynamicOffersConfig:e,value:t=e.minAmount.value,onValueChange:n,onRelease:r,className:s})=>{const i=mm(),{i18n:o}=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:P("adyen-pe-capital-slider",s),children:[a("label",{htmlFor:i,className:"adyen-pe-capital-slider__label",children:a(R,{variant:O.BODY,stronger:!0,children:o.get("capital.howMuchMoneyDoYouNeed")})}),a("div",{children:[a("output",{htmlFor:i,className:"adyen-pe-capital-slider__value","aria-live":"polite",children:a(R,{variant:O.TITLE,strongest:!0,children:o.amount(t,e.minAmount.currency,{maximumFractionDigits:0})})}),a(EA,{id:i,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(R,{variant:O.CAPTION,children:o.get("min")}),a(R,{variant:O.BODY,children:o.amount(e.minAmount.value,e.minAmount.currency,{maximumFractionDigits:0})})]}),a("label",{children:[a(R,{variant:O.CAPTION,children:o.get("max")}),a(R,{variant:O.BODY,children:o.amount(e.maxAmount.value,e.maxAmount.currency,{maximumFractionDigits:0})})]})]})]})},OA=CA,jt={contactSupportForHelp:"contactSupportForHelp",couldNotLoadOffers:"capital.weCouldNotLoadFinancialOffers",tryRefreshingThePage:"tryRefreshingThePageOrComeBackLater",somethingWentWrong:"somethingWentWrong"},Fo={title:jt.somethingWentWrong,message:[jt.couldNotLoadOffers,jt.tryRefreshingThePage],refreshComponent:!0},Gh=(e,t)=>{if(!e)return Fo;const n=pd(e,t);if(n)return n;const r=t?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";switch(e.errorCode){case void 0:return{...Fo,...t?{onContactSupport:t}:{}};case"30_016":return{title:jt.somethingWentWrong,message:[jt.couldNotLoadOffers,r],translationValues:{[r]:e.requestId?a(ir,{textToCopy:e.requestId}):null},onContactSupport:t};case"30_011":return{title:"capital.accountIsInactive",message:[jt.couldNotLoadOffers,r],translationValues:{[r]:e.requestId?a(ir,{textToCopy:e.requestId}):null},onContactSupport:t};case"30_600":return{title:jt.somethingWentWrong,message:["capital.weCouldNotContinueWithTheOffer",r],translationValues:{[r]:e.requestId?a(ir,{textToCopy:e.requestId}):null},onContactSupport:t};case"EMPTY_CONFIG":return{title:jt.somethingWentWrong,message:["capital.weCouldNotContinueWithTheOffer",jt.contactSupportForHelp],onContactSupport:t};default:return{...Fo,refreshComponent:!0}}},Zh=({emptyGrantOffer:e,error:t,onContactSupport:n,onBack:r})=>{const{i18n:s}=Y(),i=p(()=>a(J,{children:r&&a(de,{variant:ae.SECONDARY,onClick:r,children:s.get("back")})}),[s,r]),o=f(()=>e?new nu(_a.ERROR,"EmptyConfig","Empty Configuration","EMPTY_CONFIG"):t,[e,t]);return a(Qt,{absolutePosition:!1,withImage:!0,renderSecondaryButton:i,outlined:!1,...Gh(o,n)})},Ri=30,vA=()=>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))}),bA=({data:e})=>{const{i18n:t}=Y(),n=f(()=>{const r=e.expectedRepaymentPeriodDays&&Hh(e.expectedRepaymentPeriodDays);return r?t.date(r,{month:"long"}):null},[e,t]);return a("div",{className:"adyen-pe-capital-offer-selection__information",children:[a(R,{el:oe.SPAN,variant:O.BODY,wide:!0,children:n&&t.get("capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds",{values:{amount:t.amount(e.thresholdAmount.value,e.thresholdAmount.currency),days:Ri,date:n}})}),a(xn,{renderValue:r=>a(R,{el:oe.SPAN,stronger:!0,variant:O.CAPTION,children:r}),renderLabel:r=>a(R,{el:oe.SPAN,variant:O.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:Oc(e.repaymentRate)}})}`},{key:"capital.expectedRepaymentPeriod",value:t.get("capital.xDays",{values:{days:e.expectedRepaymentPeriodDays}})}]})]})},jA=({dynamicOffersConfig:e,dynamicOffersConfigError:t,emptyGrantOffer:n,onContactSupport:r,onOfferDismiss:s,onOfferSelect:i,requestedAmount:o})=>{const{i18n:c}=Y(),l=f(()=>{if(e)return LA(e.minAmount.value,e.maxAmount.value,e.step)},[e]),[u,h]=w(void 0),d=f(()=>e==null?void 0:e.minAmount.currency,[e==null?void 0:e.minAmount.currency]),{createGrantOffer:g,getDynamicGrantOffer:m}=je().endpoints,N=Ei({queryFn:m,options:{retry:1,shouldRetry:p(_=>_.status===500,[]),onSettled:p(()=>{S(!1)},[])}}),M=Ei({queryFn:g,options:{onSuccess:_=>i(_)}}),T=p(()=>{var _,z;M.mutate({body:{amount:((_=N.data)==null?void 0:_.grantAmount.value)||u,currency:((z=N.data)==null?void 0:z.grantAmount.currency)||d},contentType:"application/json"})},[d,N.data,u,M]),y=p(_=>N.mutate({},{query:{amount:_,currency:d}}),[d,N]),[A,S]=w(!1),E=SA(y,300),j=p(_=>{E.cancel(),S(!0),h(_)},[E]),L=_=>E(_);B(()=>{e&&!N.data&&!u&&(h(_=>_||(o?Number(o):l||e.minAmount.value)),y(u||l||e.minAmount.value))},[e,N.data,y,l,o,u]);const x=f(()=>M.isLoading||N.isLoading||A,[N.isLoading,A,M.isLoading]);return a("div",{className:"adyen-pe-capital-offer-selection",children:M.error||N.error||n||t?a(Zh,{error:M.error||N.error||t,onBack:s,onContactSupport:r,emptyGrantOffer:n}):a(J,{children:[e&&a(OA,{value:u,dynamicOffersConfig:e,onValueChange:j,onRelease:L}),a(Cc,{className:"adyen-pe-capital-offer-selection__details",children:!N.data||N.isLoading||A?a(vA,{}):N.data?a(bA,{data:N.data}):null}),a("div",{className:"adyen-pe-capital-offer-selection__buttons",children:[s&&a(de,{variant:ae.SECONDARY,onClick:s,children:c.get("back")}),a(de,{variant:ae.PRIMARY,state:x?"loading":void 0,onClick:T,disabled:M.isLoading||!(e!=null&&e.minAmount),children:c.get(x?"loading":"capital.reviewOffer")})]})]})})};const xA=["30_013"],RA=({grantOffer:e,onBack:t,onFundsRequest:n,onContactSupport:r})=>{const{i18n:s}=Y(),i=f(()=>{const m=Hh(e.expectedRepaymentPeriodDays);return m?s.date(m,{month:"long"}):null},[e,s]),{requestFunds:o}=je().endpoints,c=Ei({queryFn:o,options:{onSuccess:m=>n==null?void 0:n(m)}}),l=p(m=>{c.mutate(F,{path:{grantOfferId:m}})},[c]),u=p(()=>{e.id&&l(e.id)},[e.id,l]),h=f(()=>_A(e.maximumRepaymentPeriodDays),[e.maximumRepaymentPeriodDays]),d=f(()=>{const m=c.error?c.error:null;if(m&&xA.includes(m.errorCode))switch(m.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]),g=f(()=>{const m=[{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:Oc(e.repaymentRate)}})},{key:"capital.expectedRepaymentPeriod",value:s.get("capital.xDays",{values:{days:e.expectedRepaymentPeriodDays}})},{key:"account",value:s.get("capital.primaryAccount")}];return h&&m.splice(4,0,{key:"capital.maximumRepaymentPeriod",value:h===1?s.get("capital.oneMonth"):s.get("capital.xMonths",{values:{months:h}})}),m},[e,s,h]);return!d&&c.error?a(Zh,{error:c.error,onBack:t,onContactSupport:r}):a("div",{className:"adyen-pe-capital-offer-summary",children:[a(Cc,{className:"adyen-pe-capital-offer-summary__grant-summary",children:[a(R,{el:oe.PARAGRAPH,variant:O.BODY,children:[s.get("capital.youAreRequestingFundingOf")," ",a("strong",{children:`${s.amount(e.grantAmount.value,e.grantAmount.currency,{minimumFractionDigits:0})}.`})]}),a(R,{el:oe.PARAGRAPH,variant:O.CAPTION,children:s.get("capital.youWillNeedToRepayAMinimumOfXEveryXDaysToPayOffTheFunds",{values:{amount:s.amount(e.thresholdAmount.value,e.thresholdAmount.currency),days:Ri,date:i??""}})})]}),a(xn,{classNames:"adyen-pe-capital-offer-summary__details",renderLabel:(m,N)=>N==="capital.repaymentThreshold"?a(un,{isContainerHovered:!0,content:s.get("capital.minimumRepaymentToRepayTheFinancingOnTime",{values:{days:Ri}}),children:a("span",{children:a(R,{className:"adyen-pe-capital-offer-summary__list-label",el:oe.SPAN,variant:O.CAPTION,children:m})})}):a(R,{className:"adyen-pe-capital-offer-summary__list-label",el:oe.SPAN,variant:O.CAPTION,children:m}),renderValue:(m,N)=>{const M=N==="account"&&c.error&&d&&d.errorCode==="30_013";return a(R,{className:P({"adyen-pe-capital-offer-summary__details--error":M}),el:oe.SPAN,variant:O.CAPTION,stronger:!0,children:[M?a(He,{name:"warning-filled"}):null,m]})},items:g}),d&&a(cn,{className:"adyen-pe-capital-offer-summary__error-alert",type:ve.WARNING,title:d.title,description:d.message,children:r?a(de,{className:"adyen-pe-capital-offer-summary__error-alert-button",onClick:r,children:s.get("contactSupport")}):null}),a("div",{className:"adyen-pe-capital-offer-summary__buttons",children:[c.error&&!d?null:a(de,{variant:ae.SECONDARY,onClick:t,children:s.get("back")}),a(de,{variant:ae.PRIMARY,state:c.isLoading?"loading":void 0,onClick:u,disabled:c.isLoading||!!c.error,children:s.get(c.isLoading?"capital.requesting":"capital.requestFunds")})]})]})},vc=({externalDynamicOffersConfig:e,hideTitle:t,onContactSupport:n,onFundsRequest:r,onOfferDismiss:s,onOfferSelect:i})=>{const{getDynamicGrantOffersConfiguration:o}=je().endpoints,[c,l]=w(!1),u=p(S=>{l(!S)},[]),{data:h,error:d}=yt({fetchOptions:{enabled:!e&&!!o,onSuccess:u},queryFn:p(async()=>o==null?void 0:o(F),[o])}),g=e||h,[m,N]=w(),[M,T]=w(),y=p(S=>{i?i(S):(T(S==null?void 0:S.grantAmount.value),N(S))},[i]),A=f(()=>m?"OfferSummary":"OfferSelection",[m]);return a("div",{className:TA.base,children:[a(ei,{hasDivider:!0,hideTitle:t,titleKey:A==="OfferSummary"?"capital.businessFinancingSummary":"capital.businessFinancingOffer"}),A==="OfferSelection"&&a(jA,{requestedAmount:M,dynamicOffersConfig:g,dynamicOffersConfigError:d,onOfferDismiss:s,onOfferSelect:y,emptyGrantOffer:c,onContactSupport:n}),A==="OfferSummary"&&a(RA,{grantOffer:m,onBack:()=>N(void 0),onFundsRequest:r,onContactSupport:n})]})};class Jh extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(vc,{...this.props}));this.componentToRender=this.componentToRender.bind(this),this.customClassNames="adyen-pe-capital-offer-component"}}k(Jh,"type","capitalOffer");const wA=Jh,zA=(e=1e3,t=!1)=>{const[n,r]=w(t),s=$(),i=$(),o=p(()=>{n||(i.current=setTimeout(()=>{s.current=requestAnimationFrame(()=>r(!1))},e),r(!0))},[n,e]);return B(()=>()=>{cancelAnimationFrame(s.current),clearTimeout(i.current),s.current=i.current=null},[e]),{freeze:o,frozen:n}},PA=zA,kA=({...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"})]}),Hl=kA,UA=(e,t,n)=>{const r=je().endpoints[e];return yt({fetchOptions:{enabled:!!r&&n,keepPrevData:!0},queryFn:async()=>r(F,{...t})})},WA=UA;function FA({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 BA({className:e,disabled:t,endpointName:n,params:r,setError:s,errorDisplay:i,onDownloadRequested:o}){const{i18n:c}=Y(),[l,u]=w(!1),h=Se(_e.down.xs),{data:d,error:g,isFetching:m}=WA(n,r,l);B(()=>{l&&u(!1)},[l]),B(()=>{d&&FA(d)},[d]),B(()=>{s&&g&&s(g)},[g]);const N=()=>{u(!0),o==null||o()};return a("div",{className:"adyen-pe-download",children:[h?a(de,{iconButton:!0,variant:ae.TERTIARY,onClick:N,children:m?a(ra,{size:"small"}):a(Hl,{})}):a(de,{className:P("adyen-pe-download__button",{"adyen-pe-download__button--loading":m},e),disabled:t||m,variant:ae.SECONDARY,onClick:N,iconLeft:m?a(ra,{size:"small"}):a(Hl,{}),children:m?`${c.get("downloading")}..`:c.get("download")}),g&&i&&a("div",{className:"adyen-pe-download__error",children:i})]})}const YA=({...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"})]}),$A=YA,QA=1e3,Vh="adyen-pe-reports-table",Xh=`${Vh}-date-report-type`,HA=`${Xh}--date`;const GA=["createdAt","dateAndReportType","reportType","reportFile"],ZA=({error:e,loading:t,balanceAccountId:n,onContactSupport:r,showPagination:s,data:i,...o})=>{const{i18n:c}=Y(),{dateFormat:l}=Zt("UTC"),{freeze:u,frozen:h}=PA(QA),[d,g]=w(null),{refreshing:m}=je(),N=f(()=>t||m,[t,m]),M=Se(_e.up.sm),T=Se(_e.down.xs),y=f(()=>({dateAndReportType:T,createdAt:M,reportType:M,reportFile:!0}),[T,M]),A=f(()=>GA.map(_=>{const z=c.get(tc(_));return{key:_,label:z,position:T&&_==="reportFile"?dn.RIGHT:void 0,visible:y[_]}}),[c,i,y]),S=p(()=>{g(null)},[]),E={title:"noReportsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},j=f(()=>()=>a(qa,{error:e,errorMessage:"weCouldNotLoadYourReports",onContactSupport:r}),[e,r]),L=f(()=>a($A,{}),[]),x=f(()=>_=>{const z={};switch(_==null?void 0:_.errorCode){case"999_429_001":z.title=c.get("error.somethingWentWrongWithDownload"),z.description=c.get("reportsError.tooManyDownloads");break;case"00_500":default:z.title=c.get("error.somethingWentWrongWithDownload"),z.description=c.get("error.pleaseTryAgainLater");break}g(z)},[e,r]);return t&&g(null),a("div",{className:Vh,children:[d&&a(cn,{onClose:S,type:ve.WARNING,className:"adyen-pe-reports-table-alert",...d}),a(hn,{errorDisplay:j,error:e,columns:A,data:i,loading:N,outline:!1,emptyTableMessage:E,customCells:{createdAt:({value:_})=>_?_&&a(R,{variant:O.BODY,children:l(_,al)}):null,dateAndReportType:({item:_})=>a("div",{className:Xh,children:[a(R,{variant:O.BODY,stronger:!0,children:c.get(`reportType.${_==null?void 0:_.type}`)}),a(R,{className:HA,variant:O.BODY,children:l(_.createdAt,al)})]}),reportType:({item:_})=>(_==null?void 0:_.type)&&a(R,{variant:O.BODY,children:c.get(`reportType.${_==null?void 0:_.type}`)}),reportFile:({item:_})=>{const z={query:{balanceAccountId:n,createdAt:_.createdAt,type:_.type}};return a(BA,{className:"adyen-pe-reports-table--download",endpointName:"downloadReport",disabled:h,params:z,onDownloadRequested:u,setError:x,errorDisplay:L})}},children:s&&a(hn.Footer,{children:a(ec,{...o})})})]})},JA="adyen-pe-reports-overview",VA=new Date("2024-04-16T00:00:00.000Z").toString();const XA=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:r=ds,isLoadingBalanceAccount:s,onContactSupport:i,hideTitle:o})=>{const{getReports:c}=je().endpoints,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:h}=gc(t),{defaultParams:d,nowTimestamp:g,refreshNowTimestamp:m}=Sc("reports",l),N=p(async(K,Z)=>c({signal:Z,errorLevel:"error"},{query:{...K,type:"payout",createdSince:K[q.CREATED_SINCE]??d.current.defaultFilterParams[q.CREATED_SINCE],createdUntil:K[q.CREATED_UNTIL]??d.current.defaultFilterParams[q.CREATED_UNTIL],balanceAccountId:(l==null?void 0:l.id)??""}}),[l==null?void 0:l.id,d,c]),M=oc(),T=f(()=>ee(e)?e:void 0,[e]),y=f(()=>n?dc:void 0,[n]),{canResetFilters:A,error:S,fetching:E,filters:j,limit:L,limitOptions:x,records:_,resetFilters:z,updateFilters:b,updateLimit:H,...Q}=Ic({fetchRecords:N,dataField:"data",filterParams:d.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:T,preferredLimit:r,preferredLimitOptions:y,enabled:!!(l!=null&&l.id)&&!!c});return B(()=>{m()},[j,m]),a("div",{className:JA,children:[a(Dc,{hideTitle:o,titleKey:"reportsTitle",subtitleKey:"reportsNotice",children:a(ac,{...M})}),a(cc,{...M,children:[a(uc,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:h}),a(_c,{canResetFilters:A,defaultParams:d,filters:j,nowTimestamp:g,refreshNowTimestamp:m,sinceDate:VA,timezone:"UTC",updateFilters:b})]}),a(ZA,{balanceAccountId:l==null?void 0:l.id,loading:E||s||!t||!l,data:_,showPagination:!0,limit:L,limitOptions:x,onContactSupport:i,onLimitSelection:H,error:S,...Q})]})},qA="adyen-pe-reports-overview-container";function KA({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:r,error:s}=No(e.balanceAccountId);return a(ic,{balanceAccountsError:s,className:qA,errorMessage:"weCouldNotLoadTheReportsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:a(XA,{...e,balanceAccounts:t,isLoadingBalanceAccount:r})})}class qh extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(KA,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>{this.componentRef=n}}));this.componentToRender=this.componentToRender.bind(this)}}k(qh,"type","reports");const e_=qh,fn={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"};const t_="data:image/svg+xml;base64,P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IgZmlsbD0iIzAwMTEyQyIgc3Ryb2tlPSIjMDAxMTJDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",n_=({hideTitle:e})=>{const{i18n:t}=Y();return a(J,{children:[a(ei,{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:t_,alt:""})}),a(R,{el:oe.PARAGRAPH,variant:O.BODY,large:!0,children:t.get("capital.youWillSoonQualifyForAFinancialOffer")})]})]})},r_=n_,s_=({dynamicOffer:e,onSeeOptions:t,hideTitle:n})=>{const{i18n:r}=Y();return a(J,{children:[a(ei,{hideTitle:n,titleKey:"capital.needSomeExtraMoney"}),a("div",{className:fn.preQualifiedGrant,children:[a(Cc,{children:a(R,{variant:O.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(de,{className:fn.preQualifiedGrantButton,onClick:t,children:r.get("capital.seeOptions")})]})]})},i_=s_,o_=({hideTitle:e,dynamicOffer:t,skipPreQualifiedIntro:n,onOfferOptionsRequest:r,onFundsRequest:s,onOfferDismiss:i})=>{const[o,c]=w(!!n),l=p(()=>c(!0),[]),u=p(()=>{r?r():l()},[l,r]),h=p(()=>c(!1),[]),d=p(()=>{i?i():h()},[h,i]),g=f(()=>n||o?"CapitalOffer":"Intro",[o,n]);return a(J,{children:g==="Intro"?a(i_,{hideTitle:e,dynamicOffer:t,onSeeOptions:u}):g==="CapitalOffer"?a(vc,{onFundsRequest:s,onOfferDismiss:d,externalDynamicOffersConfig:t}):null})};const a_=({max:e=1,value:t,labels:n,tooltips:r,className:s})=>{const i=f(()=>ft(0,t*100/e,100),[t,e]),o=!!(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":`${i}%`,"aria-label":c,className:P("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(Gl,{tooltipContent:r==null?void 0:r.progress,title:n==null?void 0:n.current,percentage:i,className:"adyen-pe-progress-bar__track-fill"}),a(Gl,{tooltipContent:r==null?void 0:r.remaining,title:n==null?void 0:n.max,percentage:100-i,className:"adyen-pe-progress-bar__track-remaining"})]}),o&&a("div",{className:"adyen-pe-progress-bar__legend","aria-hidden":"true",children:[n.current&&a(R,{el:oe.SPAN,variant:O.CAPTION,className:"adyen-pe-progress-bar__legend-label",children:n.current}),n.max&&a(R,{el:oe.SPAN,variant:O.CAPTION,className:"adyen-pe-progress-bar__legend-label",children:n.max})]})]})},Gl=({tooltipContent:e,title:t,percentage:n,className:r})=>{const s=i=>a("div",{className:r,title:i,style:{width:`${n}%`}});return e?a(un,{content:e,children:s()}):s(t)},c_=a_,Tt={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",overview:"adyen-pe-grant-item__overview",progressBar:"adyen-pe-grant-item__progress-bar",statusContainer:"adyen-pe-grant-item__status-container",textSecondary:"adyen-pe-grant-item__text--secondary"},l_=e=>e==="Active",u_=e=>e==="Repaid",d_=e=>e==="Active"?"capital.remaining":"capital.requestedFunds",h_=e=>e.status==="Active"?e.remainingTotalAmount:e.grantAmount,m_=({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"}},I_=({status:e,missingActions:t})=>{switch(e){case"Failed":return pe.ERROR;case"Pending":return t!=null&&t.length?pe.WARNING:pe.DEFAULT;case"Repaid":return pe.LIGHT;case"Revoked":case"WrittenOff":return pe.WARNING;default:return pe.DEFAULT}},g_=e=>{const t=new Date,n=new Date;return n.setDate(t.getDate()+e),n},M_=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}},N_=e=>{const t=e.status==="Active",n=e.status==="Pending";return{amount:h_(e),amountLabelKey:d_(e.status),hasAlerts:n,hasDetails:l_(e.status),isAmountColorSecondary:!t,isBackgroundFilled:u_(e.status),isGrantIdVisible:!t,isLabelColorSecondary:t,isProgressBarVisible:t,repaymentPeriodEndDate:g_(e.repaymentPeriodLeft),statusKey:m_(e),statusTagVariant:I_(e),statusTooltipKey:M_(e)}};const Gr={base:"adyen-pe-grant-details",content:"adyen-pe-grant-details__content",header:"adyen-pe-grant-details__header",label:"adyen-pe-grant-details__label"};const Bo={base:"adyen-pe-expandable-container",content:"adyen-pe-expandable-container__content",toggleButtonIcon:"adyen-pe-expandable-container__toggle-button-icon"},f_=({className:e,children:t})=>{const{i18n:n}=Y(),[r,s]=w(!1),i=oo(),o=p(()=>{s(c=>!c)},[]);return a("div",{className:P(Bo.base,e),"data-testid":"expandable-container",children:[r&&a("div",{id:i,className:Bo.content,children:t}),a(de,{variant:ae.TERTIARY_WITH_BACKGROUND,condensed:!0,fullWidth:!0,onClick:o,"aria-controls":i,"aria-expanded":r,"aria-label":n.get(r?"expandableCard.collapse":"expandableCard.expand"),children:a(He,{name:r?"chevron-up":"chevron-down",className:Bo.toggleButtonIcon})})]})},y_=({grant:e})=>{const{i18n:t}=Y(),n=p(s=>t.amount(s.value,s.currency),[t]),r=f(()=>{const s=e.maximumRepaymentPeriodDays?Math.ceil(e.maximumRepaymentPeriodDays/30):null,i=[{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:Oc(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&&i.splice(5,0,{key:"capital.maximumRepaymentPeriod",value:t.get("capital.xMonths",{values:{months:s}})}),i},[e,n,t]);return a(f_,{className:Gr.base,children:a("div",{className:Gr.content,children:[a("div",{className:Gr.header,children:[a(R,{el:oe.SPAN,variant:O.BODY,children:t.get("capital.yourRequestedFundsWere")}),a(R,{el:oe.SPAN,variant:O.BODY,strongest:!0,children:t.amount(e.grantAmount.value,e.grantAmount.currency)})]}),a(xn,{renderLabel:(s,i)=>i==="capital.repaymentThreshold"?a(un,{isContainerHovered:!0,content:t.get("capital.minimumRepaymentToRepayTheFinancingOnTime",{values:{days:Ri}}),children:a("span",{children:a(R,{className:Gr.label,el:oe.SPAN,variant:O.CAPTION,children:s})})}):a(R,{className:Gr.label,el:oe.SPAN,variant:O.CAPTION,children:s}),renderValue:s=>a(R,{el:oe.SPAN,stronger:!0,variant:O.CAPTION,children:s}),items:r})]})})},Zl={button:"adyen-pe-grant-action__button"};const T_=()=>{var e;return((e=window.top)==null?void 0:e.location.href)||window.location.href},p_=e=>{window.top?window.top.location.href=e:window.location.href=e},A_=({action:e,className:t,offerExpiresAt:n})=>{const{i18n:r,updateCore:s}=Y(),{dateFormat:i}=Zt(),{signToSActionDetails:o}=je().endpoints,[c,l]=w(!1),u=p(async()=>{if(e.type==="signToS")return o==null?void 0:o(F,{query:{redirectUrl:T_(),locale:r.locale}})},[e,r.locale,o]),{data:h,isFetching:d,error:g}=yt({fetchOptions:f(()=>({enabled:!!o&&c}),[o,c]),queryFn:u});return B(()=>{const m=h==null?void 0:h.url;m&&p_(m)},[h,c]),g?a(cn,{className:t,type:ve.CRITICAL,title:r.get("somethingWentWrongTryRefreshingOrComeBackLater"),description:a(de,{className:Zl.button,onClick:s,children:r.get("refresh")})}):a(cn,{className:t,type:ve.WARNING,title:`${r.get("capital.signTermsAndConditionsToReceiveFunds")}${n?` ${r.get("capital.thisOfferExpiresOn",{values:{date:i(n,ld)}})}`:""}`,description:a(de,{className:Zl.button,onClick:()=>l(!0),disabled:d,state:d?"loading":void 0,children:r.get("capital.goToTermsAndConditions")})})},__=({grant:e})=>{var s,i;const{i18n:t}=Y(),{dateFormat:n}=Zt(),r=f(()=>N_(e),[e]);return a("div",{className:Tt.base,children:[a(ui,{classNameModifiers:[Tt.overview],filled:r.isBackgroundFilled,testId:"grant-container",children:a("div",{className:Tt.cardContent,children:[a("div",{className:Tt.statusContainer,children:[a(R,{variant:O.CAPTION,className:P({[Tt.textSecondary]:r.isLabelColorSecondary}),testId:"grant-amount-label",children:t.get(r.amountLabelKey)}),a("div",{children:e.status==="Active"?a(J,{children:[a(R,{variant:O.CAPTION,el:oe.SPAN,children:t.get("capital.termEnds")}),a(R,{variant:O.CAPTION,stronger:!0,el:oe.SPAN,children:n(r.repaymentPeriodEndDate,ld)})]}):r.statusKey?r.statusTooltipKey?a(un,{content:t.get(r.statusTooltipKey),children:a("div",{children:a(Wt,{label:t.get(r.statusKey),variant:r.statusTagVariant})})}):a(Wt,{label:t.get(r.statusKey),variant:r.statusTagVariant}):null})]}),a(R,{variant:O.TITLE,medium:!0,className:P({[Tt.textSecondary]:r.isAmountColorSecondary}),children:t.amount(r.amount.value,r.amount.currency)}),r.isProgressBarVisible&&a(c_,{className:Tt.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)} ${(s=t.get("capital.remaining"))==null?void 0:s.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:Tt.grantID,children:a(ir,{textToCopy:e.id,buttonLabel:t.get("capital.grantID"),isHovered:!0,type:"Text"})}):null]})}),r.hasDetails&&a(y_,{grant:e}),r.hasAlerts&&a(J,{children:e.missingActions&&e.missingActions.length?e.missingActions.map(o=>a(A_,{action:o,className:Tt.alert,offerExpiresAt:e.offerExpiresAt},o.type)):a(cn,{className:Tt.alert,type:ve.HIGHLIGHT,title:t.get("capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon")})})]})};function S_(e){const t=e.tabs,{i18n:n}=Y(),r=e.defaultActiveTab?e.tabs.findIndex(u=>u.id===e.defaultActiveTab):0,[s,i]=w(r===-1?0:r),o=$({}),c=p(u=>{const h=o.current[u];h==null||h.focus()},[]),l=f(()=>{const u=t.length,h={[G.ARROW_RIGHT]:()=>c((s+1)%u),[G.ARROW_LEFT]:()=>c((s-1+u)%u),[G.HOME]:()=>c(0),[G.END]:()=>c(u-1)};return d=>{var g;h[d.key]&&(d.preventDefault(),(g=h[d.key])==null||g.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=>o.current[h]=d,onKeyDown:l,onClick:h===s?void 0:()=>i(h),onFocus:()=>i(h),tabIndex:s===h?0:-1,disabled:u.disabled,children:a(R,{variant:O.BODY,el:oe.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",{name:u.id,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 Yo=({grants:e})=>a(Ec,{classNames:"adyen-pe-grant-list__items",children:e.map(t=>a("li",{children:a(__,{grant:t})},t.id))}),D_=({grantList:e,hideTitle:t,newOfferAvailable:n,onNewOfferRequest:r})=>{const{i18n:s}=Y(),[i,o]=f(()=>{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=f(()=>e.length>1&&i.length&&o.length?"Tabs":"SingleGrant",[i.length,e.length,o.length]),l=f(()=>n&&!i.some(u=>u.status==="Pending"),[i,n]);return a("div",{className:"adyen-pe-grant-list",children:[a("div",{className:"adyen-pe-grant-list__header-container",children:[a(ei,{hideTitle:t,titleKey:"capital.businessFinancing"}),l?a(de,{onClick:r,className:"adyen-pe-grant-list__offer-button",variant:ae.SECONDARY,children:s.get("capital.seeNewOffer")}):null]}),c==="SingleGrant"&&a(Yo,{grants:e}),c==="Tabs"&&a(S_,{tabs:[{label:"capital.inProgress",content:a(Yo,{grants:i}),id:"active"},{label:"capital.closed",content:a(Yo,{grants:o}),id:"inactive"}],defaultActiveTab:"active"})]})},L_=({externalDynamicOffersConfig:e,grantList:t,newOfferAvailable:n,onFundsRequest:r,onOfferDismiss:s})=>{const[i,o]=w(!1),c=p(()=>o(!1),[]),l=p(()=>o(!0),[]),u=p(()=>{s?s(c):c()},[c,s]),h=p(d=>{r(d),o(!1)},[r]);return a(J,{children:i?a(vc,{externalDynamicOffersConfig:e,onFundsRequest:h,onOfferDismiss:u}):a(D_,{grantList:t,newOfferAvailable:n,onNewOfferRequest:l})})},E_=({hideTitle:e,onContactSupport:t,onFundsRequest:n,onOfferDismiss:r,onOfferOptionsRequest:s,skipPreQualifiedIntro:i})=>{var A;const{getGrants:o,getDynamicGrantOffersConfiguration:c}=je().endpoints,l=yt({fetchOptions:{enabled:!!o},queryFn:p(async()=>o==null?void 0:o(F),[])}),u=yt({fetchOptions:{enabled:!!c},queryFn:p(async()=>c==null?void 0:c(F),[])}),h=u.data,[d,g]=w(),m=f(()=>{var S,E;return d?[d,...((S=l.data)==null?void 0:S.data)||[]]:(E=l.data)==null?void 0:E.data},[(A=l.data)==null?void 0:A.data,d]),N=p(S=>{n?n(S):g(S)},[n]),M=f(()=>!!(u.error&&l.error||u.error&&!(m!=null&&m.length)),[u.error,m==null?void 0:m.length,l.error]),T=f(()=>M?"Error":!o&&!c||!h&&!m||l.isFetching||u.isFetching?"Loading":m!=null&&m.length?"GrantList":h!=null&&h.maxAmount&&(h!=null&&h.minAmount)&&!i?"PreQualified":"Unqualified",[c,h,u.isFetching,m,o,l.isFetching,M,i]),y=f(()=>!!(h&&h.minAmount&&h.maxAmount),[h]);return a("div",{className:fn.base,children:(()=>{switch(T){case"Loading":return a("div",{className:fn.skeletonContainer,children:[a("div",{className:fn.headerSkeleton}),a("div",{className:fn.skeleton})]});case"Error":return a("div",{className:fn.errorContainer,children:[a(ei,{hideTitle:e,titleKey:"capital.businessFinancing"}),a(Qt,{absolutePosition:!1,outlined:!1,withImage:!0,onContactSupport:t,...Gh(u.error,t)})]});case"GrantList":return m&&a(L_,{externalDynamicOffersConfig:h,grantList:m,hideTitle:e,newOfferAvailable:y,onFundsRequest:N,onOfferDismiss:r});case"PreQualified":return a(o_,{onOfferDismiss:r,onOfferOptionsRequest:s,skipPreQualifiedIntro:i,hideTitle:e,dynamicOffer:h,onFundsRequest:N});case"Unqualified":return a(r_,{hideTitle:e});default:return null}})()})};class Kh extends Wn{constructor(n){super(n);k(this,"componentToRender",()=>a(E_,{...this.props,ref:n=>void(this.componentRef=n)}));this.customClassNames="adyen-pe-capital-overview-component",this.componentToRender=this.componentToRender.bind(this)}async getState(){var l;const{session:n}=this.props.core;await ed(n);const{getDynamicGrantOffersConfiguration:r,getGrants:s}=n.context.endpoints,[i,o]=await Promise.all([r==null?void 0:r(F).catch(te),s==null?void 0:s(F).catch(te)]);return{state:o&&((l=o.data)==null?void 0:l.length)>0?"hasRequestedGrants":i&&i.minAmount?"isPreQualified":"isUnqualified"}}}k(Kh,"type","capitalOverview");const C_=Kh;async function O_(e){return await new Ru(e).initialize()}exports.AdyenPlatformExperience=O_;exports.CapitalOfferElement=wA;exports.CapitalOverviewElement=C_;exports.Core=Ru;exports.PayoutElement=ly;exports.PayoutsElement=Wp;exports.ReportsElement=e_;exports.TransactionElement=Fp;exports.TransactionsElement=yA;exports.all_locales=Da;exports.da_DK=gu;exports.de_DE=Mu;exports.en_US=pi;exports.es_ES=Nu;exports.fi_FI=fu;exports.fr_FR=yu;exports.it_IT=Tu;exports.nl_NL=pu;exports.no_NO=Au;exports.pt_BR=_u;exports.sv_SE=Su;exports.u=a;
|
|
12
|
+
//# sourceMappingURL=index-17716b7b.cjs.map
|