@adyen/adyen-platform-experience-web 1.0.0-beta → 1.0.0-beta.2
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/dist/ModalContent-88fdb6f4.js +2 -0
- package/dist/ModalContent-88fdb6f4.js.map +1 -0
- package/dist/cjs/index.js +1 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +48 -88
- package/dist/es/components/external/EventEmitter.js +17 -28
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -20
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +41 -42
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -13
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +28 -39
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +25 -31
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +7 -10
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +21 -22
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +13 -21
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -25
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +36 -47
- package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +8 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +23 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -16
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +16 -26
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +7 -9
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +42 -50
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +18 -19
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +8 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +16 -16
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +37 -42
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +36 -39
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +48 -60
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +62 -73
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +133 -152
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +32 -40
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +49 -53
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +75 -84
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -10
- package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -12
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +21 -39
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +9 -10
- package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +23 -28
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +24 -28
- package/dist/es/components/external/TransactionsOverview/types.js +4 -0
- package/dist/es/components/external/UIElement.js +38 -51
- package/dist/es/components/internal/BaseButton/BaseButton.js +18 -21
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
- package/dist/es/components/internal/BaseButton/constants.js +2 -2
- package/dist/es/components/internal/BaseList/BaseList.js +5 -8
- package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
- package/dist/es/components/internal/BaseList/constants.js +2 -2
- package/dist/es/components/internal/Button/Button.js +39 -41
- package/dist/es/components/internal/Button/Button.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +27 -8
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
- package/dist/es/components/internal/Button/constants.js +9 -16
- package/dist/es/components/internal/Button/hooks/useButton.js +13 -17
- package/dist/es/components/internal/Button/types.js +4 -0
- package/dist/es/components/internal/Calendar/Calendar.js +20 -21
- package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/constants.js +35 -70
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +322 -552
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +37 -46
- package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +34 -46
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +31 -5
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +14 -16
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +122 -221
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +238 -418
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +40 -63
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +16 -27
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +14 -23
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +21 -29
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -13
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +49 -83
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +38 -61
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +17 -21
- package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
- package/dist/es/components/internal/Calendar/calendar/utils.js +15 -22
- package/dist/es/components/internal/Calendar/clock/clock.js +23 -41
- package/dist/es/components/internal/Calendar/clock/today.js +37 -57
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +7 -12
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +26 -28
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +33 -58
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +30 -40
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +44 -49
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +84 -115
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +35 -40
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -46
- package/dist/es/components/internal/Calendar/types.js +4 -0
- package/dist/es/components/internal/CopyText/CopyText.js +26 -31
- package/dist/es/components/internal/CopyText/CopyText.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGrid.js +93 -10
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +38 -8
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +15 -17
- package/dist/es/components/internal/DataGrid/components/TableBody.js +19 -19
- package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -25
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +76 -5
- package/dist/es/components/internal/DataGrid/types.js +4 -0
- package/dist/es/components/internal/DatePicker/DatePicker.js +45 -62
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +26 -43
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +56 -85
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +45 -53
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +56 -75
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/constants.js +11 -20
- package/dist/es/components/internal/FilterBar/FilterBar.js +32 -35
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +15 -17
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +41 -63
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +53 -68
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +104 -153
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +118 -10
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
- package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
- package/dist/es/components/internal/FormFields/InputBase.js +53 -66
- package/dist/es/components/internal/FormFields/InputText.js +6 -6
- package/dist/es/components/internal/FormFields/Select/Select.js +187 -246
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +68 -72
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +62 -71
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +37 -41
- package/dist/es/components/internal/FormFields/Select/constants.js +27 -49
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -35
- package/dist/es/components/internal/Image/Image.js +10 -10
- package/dist/es/components/internal/Img/Img.js +18 -32
- package/dist/es/components/internal/Img/Img.scss.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +58 -77
- package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
- package/dist/es/components/internal/Pagination/Pagination.js +52 -58
- package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
- package/dist/es/components/internal/Pagination/constants.js +4 -6
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +7 -8
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +18 -30
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +14 -21
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +52 -60
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -11
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +12 -13
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +43 -87
- package/dist/es/components/internal/Pagination/types.js +5 -0
- package/dist/es/components/internal/Pagination/utils.js +5 -5
- package/dist/es/components/internal/Popover/Popover.js +106 -139
- package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +18 -22
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +8 -10
- package/dist/es/components/internal/Popover/constants.js +9 -16
- package/dist/es/components/internal/Popover/types.js +6 -0
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +27 -45
- package/dist/es/components/internal/Popover/utils/utils.js +23 -29
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +6 -6
- package/dist/es/components/internal/SVGIcons/Checkmark.js +7 -7
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
- package/dist/es/components/internal/SVGIcons/Close.js +4 -4
- package/dist/es/components/internal/SVGIcons/Copy.js +3 -3
- package/dist/es/components/internal/SVGIcons/Filter.js +4 -4
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +6 -6
- package/dist/es/components/internal/Spinner/Spinner.js +4 -5
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +19 -5
- package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
- package/dist/es/components/internal/Tag/types.js +4 -0
- package/dist/es/components/internal/Tooltip/Tooltip.js +31 -38
- package/dist/es/components/internal/Tooltip/Tooltip.scss.js +4 -0
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +17 -20
- package/dist/es/components/internal/Typography/Typography.js +33 -7
- package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
- package/dist/es/components/internal/Typography/constants.js +2 -2
- package/dist/es/components/internal/Typography/types.js +6 -0
- package/dist/es/components/shared.scss.js +4 -0
- package/dist/es/components/types.js +4 -0
- package/dist/es/components/utils/transactionResourceErrorCodes.js +14 -15
- package/dist/es/constants.js +2 -2
- package/dist/es/core/Auth/AuthContext.js +7 -7
- package/dist/es/core/Auth/AuthProvider.js +15 -23
- package/dist/es/core/Auth/useAuthContext.js +4 -4
- package/dist/es/core/Context/CoreContext.js +5 -5
- package/dist/es/core/Context/CoreProvider.js +17 -23
- package/dist/es/core/Context/useCoreContext.js +4 -4
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +12 -17
- package/dist/es/core/Errors/constants.js +2 -4
- package/dist/es/core/Localization/Localization.js +155 -12
- package/dist/es/core/Localization/amount/amount-util.js +19 -42
- package/dist/es/core/Localization/constants/currency-codes.js +3 -3
- package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
- package/dist/es/core/Localization/constants/locale.js +5 -7
- package/dist/es/core/Localization/constants/localization.js +6 -9
- package/dist/es/core/Localization/datetime/restamper/constants.js +20 -29
- package/dist/es/core/Localization/datetime/restamper/restamper.js +32 -44
- package/dist/es/core/Localization/datetime/restamper/utils.js +26 -44
- package/dist/es/core/Localization/localization-utils.js +31 -7
- package/dist/es/core/Localization/translations/ar.json.js +4 -0
- package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
- package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
- package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
- package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
- package/dist/es/core/Localization/translations/en-US.json.js +371 -0
- package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
- package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
- package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
- package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
- package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
- package/dist/es/core/Localization/translations/index.js +79 -356
- package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
- package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
- package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
- package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
- package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
- package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
- package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
- package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
- package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
- package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
- package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
- package/dist/es/core/Localization/utils.js +44 -72
- package/dist/es/core/Services/requests/http.js +31 -49
- package/dist/es/core/Services/requests/utils.js +34 -49
- package/dist/es/core/Services/sessions/constants.js +2 -2
- package/dist/es/core/Services/sessions/setup-session.js +9 -9
- package/dist/es/core/Session/Session.js +23 -38
- package/dist/es/core/Session/utils.js +5 -5
- package/dist/es/core/config.js +2 -6
- package/dist/es/core/core.js +44 -85
- package/dist/es/core/utils.js +8 -10
- package/dist/es/external/preact/compat/dist/compat.module.js +253 -0
- package/dist/es/external/preact/dist/preact.module.js +316 -0
- package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
- package/dist/es/hooks/element/useClickOutside.js +32 -73
- package/dist/es/hooks/element/useDetachedRender.js +15 -17
- package/dist/es/hooks/element/useFocusCursor.js +14 -19
- package/dist/es/hooks/element/useFocusTrap.js +48 -91
- package/dist/es/hooks/element/usePopoverPositioner.js +105 -5
- package/dist/es/hooks/element/useUniqueIdentifier.js +13 -17
- package/dist/es/hooks/useBooleanState/useBooleanState.js +6 -8
- package/dist/es/hooks/useCommitAction/types.js +4 -0
- package/dist/es/hooks/useCommitAction/useCommitAction.js +27 -38
- package/dist/es/hooks/useFetch/useFetch.js +27 -37
- package/dist/es/hooks/useImageUrl/useImageUrl.js +22 -26
- package/dist/es/hooks/useModalDetails/types.js +6 -0
- package/dist/es/hooks/useModalDetails/useModalDetails.js +28 -37
- package/dist/es/hooks/useMounted/useMounted.js +8 -14
- package/dist/es/hooks/useReactiveState/useReactiveState.js +27 -53
- package/dist/es/hooks/useReflex/constants.js +2 -2
- package/dist/es/hooks/useReflex/core/reflex.js +47 -66
- package/dist/es/hooks/useReflex/core/registry.js +46 -68
- package/dist/es/hooks/useReflex/core/utils.js +16 -18
- package/dist/es/hooks/useReflex/errors.js +6 -6
- package/dist/es/hooks/useReflex/hooks/useReflex.js +7 -12
- package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +22 -36
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +20 -26
- package/dist/es/images/no-data-female.svg.js +4 -0
- package/dist/es/images/no-results.svg.js +4 -0
- package/dist/es/index.js +41 -45
- package/dist/es/style/index.scss.js +4 -0
- package/dist/es/utils/Storage.js +17 -21
- package/dist/es/utils/class-name-utils.js +5 -11
- package/dist/es/utils/common/constants.js +6 -10
- package/dist/es/utils/common/index.js +32 -59
- package/dist/es/utils/fixedForwardRef.js +3 -3
- package/dist/es/utils/get-image.js +11 -12
- package/dist/es/utils/idGenerator.js +3 -6
- package/dist/es/utils/memoComparator/memoComparator.js +17 -26
- package/dist/es/utils/tabbable.js +71 -110
- package/dist/es/utils/uuid.js +5 -5
- package/dist/es/utils/validator-utils.js +3 -44
- package/dist/es/utils/watchable/constants.js +2 -2
- package/dist/es/utils/watchable/core/Watchable.js +45 -83
- package/dist/es/utils/watchable/core/helpers.js +19 -26
- package/dist/es/utils/watchable/core/syncEffect.js +15 -19
- package/dist/es/utils/watchable/index.js +16 -17
- package/dist/index-7e2df524.js +12 -0
- package/dist/index-7e2df524.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +4 -4
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement.d.ts +1 -1
- package/dist/types/components/external/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +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 +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/types.d.ts +2 -2
- package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -3
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +1 -1
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/types.d.ts +2 -2
- package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -1
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +2 -2
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +1 -1
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +1 -1
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +3 -3
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Session/types.d.ts +1 -1
- package/dist/types/core/Session/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -2
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts.map +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +2 -2
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +2 -2
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/utils/Validator/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts.map +1 -1
- package/dist/types/utils/useForm/types.d.ts +1 -1
- package/dist/types/utils/useForm/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AmountSkeleton.css +0 -23
- package/dist/BalanceAccountSelector.css +0 -4
- package/dist/BaseButton.css +0 -14
- package/dist/BaseList.css +0 -5
- package/dist/Button.css +0 -114
- package/dist/ButtonActions-eb064f69.mjs +0 -46
- package/dist/ButtonActions.css +0 -28
- package/dist/CalendarGrid.css +0 -113
- package/dist/CopyText.css +0 -18
- package/dist/DatePicker.css +0 -64
- package/dist/ErrorMessageDisplay.css +0 -20
- package/dist/ErrorPanel.css +0 -15
- package/dist/ExpandableCard.css +0 -71
- package/dist/FilterBar.css +0 -40
- package/dist/FilterButton.css +0 -48
- package/dist/Img.css +0 -7
- package/dist/InputBase.css +0 -175
- package/dist/Modal.css +0 -110
- package/dist/Pagination.css +0 -25
- package/dist/Popover.css +0 -127
- package/dist/PopoverDismissButton.css +0 -12
- package/dist/RangeSelection.css +0 -26
- package/dist/Select.css +0 -149
- package/dist/SkeletonBody.css +0 -154
- package/dist/Spinner.css +0 -50
- package/dist/SummaryItem.css +0 -37
- package/dist/Tag-6d02fd64.mjs +0 -32
- package/dist/Tag.css +0 -34
- package/dist/Tooltip.css +0 -7
- package/dist/TotalsCard.css +0 -14
- package/dist/TransactionDetails.css +0 -74
- package/dist/TransactionsDisplay.css +0 -4
- package/dist/TransactionsOverview.css +0 -29
- package/dist/TransactionsOverviewContainer.css +0 -3
- package/dist/TransactionsTable.css +0 -18
- package/dist/Typography-11b95870.mjs +0 -68
- package/dist/Typography.css +0 -57
- package/dist/cjs/ModalContent-f4990141.js +0 -10
- package/dist/cjs/ModalContent-f4990141.js.map +0 -1
- package/dist/cjs/index-8c098f20.js +0 -10401
- package/dist/cjs/index-8c098f20.js.map +0 -1
- package/dist/cjs/index.css +0 -1709
- package/dist/compat.module-a4d537ff.mjs +0 -237
- package/dist/en-US-1daadfc1.mjs +0 -371
- package/dist/es/components/external/FormElement.js +0 -78
- package/dist/es/components/external/TransactionDetails/index.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +0 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +0 -15
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +0 -13
- package/dist/es/components/external/TransactionsOverview/index.js +0 -6
- package/dist/es/components/external/index.js +0 -8
- package/dist/es/components/index.js +0 -11
- package/dist/es/components/internal/BaseButton/index.js +0 -4
- package/dist/es/components/internal/Button/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +0 -197
- package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +0 -8
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +0 -139
- package/dist/es/components/internal/Calendar/calendar/timerange/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +0 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +0 -108
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +0 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +0 -19
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +0 -46
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +0 -85
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +0 -49
- package/dist/es/components/internal/Calendar/clock/clock.test.js +0 -43
- package/dist/es/components/internal/Calendar/clock/index.js +0 -7
- package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +0 -60
- package/dist/es/components/internal/Calendar/clock/today.test.js +0 -98
- package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +0 -4
- package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +0 -4
- package/dist/es/components/internal/Calendar/index.js +0 -4
- package/dist/es/components/internal/DataGrid/index.js +0 -4
- package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +0 -190
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +0 -7
- package/dist/es/components/internal/DatePicker/index.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +0 -45
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +0 -8
- package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/index.js +0 -4
- package/dist/es/components/internal/FormFields/Select/index.js +0 -4
- package/dist/es/components/internal/FormFields/index.js +0 -18
- package/dist/es/components/internal/FormFields/utils.js +0 -4
- package/dist/es/components/internal/Img/index.js +0 -4
- package/dist/es/components/internal/Modal/index.js +0 -4
- package/dist/es/components/internal/Pagination/components/LimitSelect.js +0 -1
- package/dist/es/components/internal/Pagination/hooks/index.js +0 -6
- package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +0 -10
- package/dist/es/components/internal/Pagination/index.js +0 -4
- package/dist/es/components/internal/Popover/Popover.test.js +0 -119
- package/dist/es/components/internal/Spinner/index.js +0 -4
- package/dist/es/components/utils/utils.js +0 -34
- package/dist/es/core/Analytics/Analytics.js +0 -63
- package/dist/es/core/Analytics/EventsQueue.js +0 -22
- package/dist/es/core/Analytics/index.js +0 -4
- package/dist/es/core/Errors/ErrorPanel.js +0 -19
- package/dist/es/core/Localization/Localization.test.js +0 -70
- package/dist/es/core/Localization/amount/amount-util.test.js +0 -54
- package/dist/es/core/Localization/datetime/restamper/index.js +0 -9
- package/dist/es/core/Localization/datetime/restamper/restamper.test.js +0 -179
- package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +0 -21
- package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +0 -27
- package/dist/es/core/Localization/index.js +0 -32
- package/dist/es/core/Localization/utils.test.js +0 -215
- package/dist/es/core/ProcessResponse/index.js +0 -4
- package/dist/es/core/ProcessResponse/process-response.js +0 -40
- package/dist/es/core/Services/analytics/collect-id.js +0 -37
- package/dist/es/core/Services/analytics/log-event.js +0 -14
- package/dist/es/core/Services/analytics/post-telemetry.js +0 -22
- package/dist/es/core/Services/data-set.js +0 -1
- package/dist/es/core/Services/get-dataset.js +0 -13
- package/dist/es/core/Services/requests/endpoints.js +0 -9
- package/dist/es/core/Session/index.js +0 -4
- package/dist/es/core/index.js +0 -36
- package/dist/es/hooks/element/useIdentifierString.js +0 -61
- package/dist/es/hooks/useBooleanState/index.js +0 -4
- package/dist/es/hooks/useCommitAction/index.js +0 -6
- package/dist/es/hooks/useDefinedValue/index.js +0 -4
- package/dist/es/hooks/useDefinedValue/useDefinedValue.js +0 -16
- package/dist/es/hooks/useMounted/index.js +0 -4
- package/dist/es/hooks/useReactiveState/index.js +0 -4
- package/dist/es/hooks/useReflex/core/reflex.test.js +0 -170
- package/dist/es/hooks/useReflex/core/registry.test.js +0 -114
- package/dist/es/hooks/useReflex/core/utils.test.js +0 -59
- package/dist/es/hooks/useReflex/index.js +0 -8
- package/dist/es/utils/Validator/ValidationRuleResult.js +0 -28
- package/dist/es/utils/Validator/Validator.js +0 -67
- package/dist/es/utils/Validator/Validator.test.js +0 -27
- package/dist/es/utils/Validator/defaultRules.js +0 -12
- package/dist/es/utils/Validator/index.js +0 -4
- package/dist/es/utils/get-image.test.js +0 -38
- package/dist/es/utils/memoComparator/index.js +0 -4
- package/dist/es/utils/regex.js +0 -6
- package/dist/es/utils/useForm/index.js +0 -4
- package/dist/es/utils/useForm/reducer.js +0 -153
- package/dist/es/utils/useForm/useForm.js +0 -85
- package/dist/es/utils/useForm/useForm.test.js +0 -107
- package/dist/es/utils/uuid.test.js +0 -13
- package/dist/es/utils/watchable/core/Watchable.test.js +0 -103
- package/dist/es/utils/watchable/core/helpers.test.js +0 -106
- package/dist/es/utils/watchable/core/syncEffect.test.js +0 -103
- package/dist/flags-41c36e13.mjs +0 -83
- package/dist/hooks.module-8565d716.mjs +0 -161
- package/dist/index-2c0f6175.mjs +0 -12069
- package/dist/index-6e47f755.mjs +0 -231
- package/dist/index-944be685.mjs +0 -6609
- package/dist/index-c88cd37e.mjs +0 -243
- package/dist/index-f5bc0382.mjs +0 -155
- package/dist/index.css +0 -65
- package/dist/index2.css +0 -4
- package/dist/jsxRuntime.module-69493d81.mjs +0 -15
- package/dist/magic-string.es-219c273f.mjs +0 -1146
- package/dist/preact.module-38e5a571.mjs +0 -323
- package/dist/types-0027b7c2.mjs +0 -9
- package/dist/types-0aaff3aa.mjs +0 -19
- package/dist/types-7ad6576a.mjs +0 -10
- package/dist/types-e4bbd37f.mjs +0 -13
- package/dist/types-e6a6a3ff.mjs +0 -9
- package/dist/usePaginatedRecords-63a69bf1.mjs +0 -131
- package/dist/usePopoverPositioner-882fea89.mjs +0 -182
- package/dist/vendor-vi.a3ff54b1-5e924357.mjs +0 -22389
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";var Hl=Object.defineProperty;var Gl=(t,e,n)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var O=(t,e,n)=>(Gl(t,typeof e!="symbol"?e+"":e,n),n),nr=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var l=(t,e,n)=>(nr(t,e,"read from private field"),n?n.call(t):e.get(t)),_=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},y=(t,e,n,s)=>(nr(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n);var Oe=(t,e,n,s)=>({set _(o){y(t,e,o,n)},get _(){return l(t,e,s)}}),b=(t,e,n)=>(nr(t,e,"access private method"),n);const U=require("classnames"),mr="https://platform-components-external-test.adyen.com/platform-components-external/api/";function Yl(t){return t&&{test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"}[t]||mr}const Zl=t=>t.endsWith("/")?t:`${t}/`,Jl=t=>t.startsWith("/")?t:`/${t}`,Vl="v1";class Ql extends Error{constructor(n,s,o,r){super(o);O(this,"type");O(this,"errorCode");O(this,"requestId");this.type=n,this.name=n,this.errorCode=r,this.requestId=s}}const Xl=Ql;var pa=(t=>(t.NETWORK_ERROR="NETWORK_ERROR",t.CANCEL="CANCEL",t.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",t.ERROR="ERROR",t.EXPIRED_TOKEN="EXPIRED_TOKEN",t))(pa||{});const Kl=t=>{switch(t){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},ql=(t,e)=>{const{headers:n=[],method:s="GET"}=t;return{method:s,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n},redirect:"follow",signal:t.signal,referrerPolicy:"no-referrer-when-downgrade",...s==="POST"&&e&&{body:JSON.stringify(e)}}};function tu({message:t,level:e,errorCode:n,type:s="NETWORK_ERROR",requestId:o}){switch(e){case"silent":break;case"info":case"warn":console[e](t);break;case"error":default:throw new Xl(s,o,t,n)}}function eu(t){return t&&t.errorCode&&t.type&&(t.detail||t.invalidFields)&&t.status}function nu(t){const e=new URLSearchParams;for(const n of Object.keys(t)){const s=t[n];s!=null&&(Array.isArray(s)?s.forEach(o=>e.append(n,o)):e.set(n,String(s)))}return e}async function ya(t,e){const{errorLevel:n,loadingContext:s="",path:o}=t,r=ql(t,e),i=new URL(`${Zl(s)}${Vl}${Jl(o)}`);return t.params&&t.params.forEach((a,c)=>{const u=decodeURIComponent(a);u&&i.searchParams.append(c,u)}),(async()=>{const a={level:n};let c=!1;t:{try{const u=await fetch(i,r);if(u.ok)return c=!0,await u.json();a.type=Kl(u.status);const m=await u.json();if(a.message=t.errorMessage||`Service at ${i} is not available`,a.errorCode=String(m.status),a.requestId=m==null?void 0:m.requestId,eu(m)){if(t.errorHandler){c=!0,t.errorHandler(m);break t}a.message=m.detail,a.errorCode=m.errorCode}}catch(u){if(c)throw u;a.message=t.errorMessage||`Call to ${i} failed. Error= ${u}`}tu(a)}})()}function su(t,e){return ya({...t,method:"POST"},e)}function ou(t,e){const n="/setup";return su({errorLevel:"fatal",errorMessage:"ERROR: Invalid ClientKey",...e??{},loadingContext:t.loadingContext,path:n,headers:{Authorization:`Bearer ${t.token}`}},{})}class ru{constructor(e,n=window.localStorage){O(this,"prefix","adyen-pe-");O(this,"key");O(this,"storage");this.storage=n,this.key=this.prefix+e}get(){const e=this.storage.getItem(this.key);if(e)try{return JSON.parse(e)}catch{return null}return null}set(e){this.storage.setItem(this.key,JSON.stringify(e))}remove(){this.storage.removeItem(this.key)}}const iu=ru;function au(t){if(!t||!t.id||!t.token)throw new Error("Invalid session");return{id:t.id,token:t.token}}class cu{constructor(e,n){O(this,"session");O(this,"storage");O(this,"loadingContext");O(this,"configuration");const s=au(e);this.storage=new iu("session"),this.loadingContext=n,this.session=s,this.session.token?this.storeSession():this.session=this.getStoredSession()}get id(){return this.session.id}get token(){return this.session.token}updateSessionData(e){this.session.token=e,this.storeSession()}setupSession(e){return ou(this,e).then(n=>(n.endpoints&&(this.configuration={...n}),n)).catch(n=>{throw n})}getStoredSession(){const e=this.storage.get();return this.id===(e==null?void 0:e.id)?e:this.session}storeSession(){this.storage.set({id:this.session.id,token:this.session.token})}removeStoredSession(){this.storage.remove()}}const lu=cu,uu={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$"},_a=uu,du={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},hu=du,mu=t=>hu[t]||100,fu=t=>!!_a[t],gu=t=>fu(t)?_a[t]:null,Iu=(t,e)=>{const n=mu(e);return parseInt(String(t),10)/n},pu=(t,e,n,s=!1,o={})=>{const r=t.toString(),i=Iu(r,n),a=e.replace("_","-"),c={style:"currency",currency:n,currencyDisplay:"symbol",...o};try{return s?yu(a,c,i):i.toLocaleString(a,c)}catch{return r}},yu=(t,e,n)=>Intl.NumberFormat(t,e).formatToParts(n).filter(s=>s.type!=="currency").reduce((s,o)=>s+o.value,"").trim(),_u="Payment ID",Tu="Transaction type",Mu="Account",Su="Description",Lu="Amount",Nu="Creation time",Au="Paginated navigation",Eu="Unable to load transactions",Cu="(Not set)",Du="Edit filter",vu="Balance account",bu="Balance platform",Ou="Select a balance platform, a balance account or an account",xu="Reset",Ru="Apply",wu="Reference for beneficiary",ju="Category",Pu="Reference",ku="Reference ID",Wu="Transactions",$u="Date range",Bu="From",zu="To",Fu="Balance account ID",Uu="Default currency",Hu="Created",Gu="Status",Yu="Expand content",Zu="Hide content",Ju="Store details",Vu="Preauthorize with",Qu="Continue to",Xu="Telephone number",Ku="Infix",qu="First name",td="Last name",ed="Date of birth",nd="Shopper email",sd="Male",od="Female",rd="Personal details",id="Company details",ad="Apartment suite",cd="State",ld="Address",ud="Province or territory",dd="City town",hd="Zip code",md="Invalid format expects",fd="Country",gd="Account holder",Id="Legal entity",pd="Legal entity ID",yd="Balances",_d="Current balance",Td="Available balance",Md="Reserved balance",Sd="Account configuration",Ld="Account HOLDER ID",Nd="Timezone",Ad="Sales day closing time",Ed="Settlement delay days",Cd="Transaction details",Dd="Processing information",vd="transferID",bd="Type",Od="Incomplete field",xd="Legal entity details",Rd="No",wd="Account identifier",jd="Transfer instrument ID",Pd="Overview",kd="Transfer instruments",Wd="ID",$d="Legal entity type",Bd="Name",zd="Mobile",Fd="Fax",Ud="Landline",Hd="Email",Gd="Residential address",Yd="Country of residence",Zd="Legal name of the company",Jd="Company type",Vd="Trading name",Qd="Registration number",Xd="Tax number",Kd="Tax exempt",qd="Registered business address",th="Amount",eh="Unable to load account holder",nh="Unable to load balance account",sh="Unable to load legal entity",oh="Unable to load transaction",rh="Dismiss",ih="Organization",ah="individual",ch="Original amount",lh="Instructed amount",uh="Date",dh="Structured list",hh="Tabs",mh="Value",fh="Filter bar",gh="Contact details",Ih="Booked",ph="Pending",yh="Reversed",_h="Transactions overview",Th="Payment method",Mh="Currency",Sh="Total incoming",Lh="Total outgoing",Nh="Account Balance",Ah="close",Eh="There are no results",Ch="No transactions found",Dh="Try a different search or reset your filters, and we’ll try again.",vh="Try again, please.",bh="No data",Oh="There was an unexpected error",xh="Something went wrong.",Rh="We could not load the transaction overview.",wh="Try refreshing the page or come back later.",jh="We couldn’t load your transactions.",Ph="An internal error happened",kh="Contact support for help and share error code %{requestId}",Wh="The error code is %{requestId}",$h="Please, reach out to support for assistance.",Bh="The request is missing required fields or contains invalid data.",zh="Entity was not found",Fh="Transaction not found for the specified Account Holder",Uh="No results found, seek support.",Hh="Seems like there's an internal error",Gh="Refresh",Yh="Reach out to support",Zh="No negative numbers allowed",Jh="To value should be equal or greater than the From value",Vh="The selected balance account is incorrect",Ta={paymentId:_u,transactionType:Tu,account:Mu,description:Su,amount:Lu,creationTime:Nu,paginatedNavigation:Au,"pagination.page":"Page","pagination.previousPage":"Previous page","pagination.nextPage":"Next page",unableToLoadTransactions:Eu,notSet:Cu,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}","filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status","calendar.controls":"Calendar navigation controls","calendar.previousMonth":"Previous month","calendar.nextMonth":"Next month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})","button.clearAll":"Clear all",editFilter:Du,balanceAccount:vu,balancePlatform:bu,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",toStart:Ou,reset:xu,apply:Ru,referenceForBeneficiary:wu,"status.booked":"Booked","status.active":"Active","status.inactive":"Inactive","status.pending":"Pending","status.closed":"Closed",category:ju,"category.internal":"Internal",reference:Pu,referenceID:ku,transactions:Wu,dateRange:$u,from:Bu,to:zu,balanceAccountId:Fu,defaultCurrency:Uu,created:Hu,status:Gu,expandContent:Yu,hideContent:Zu,storeDetails:Ju,preauthorizeWith:Vu,continueTo:Qu,telephoneNumber:Xu,infix:Ku,firstName:qu,lastName:td,dateOfBirth:ed,"dateOfBirth.format":"Format",shopperEmail:nd,"select.noOptionsFound":"No options match this search","select.filter.placeholder":"Placeholder","select.provinceOrTerritory":"Province or territory","select.state":"State","select.country":"Country",male:sd,female:od,personalDetails:rd,"field.valid":"Valid","field.invalid":"Invalid",companyDetails:id,"companyDetails.name":"Name","companyDetails.registrationNumber":"Registration number","payButton.redirecting":"Redirecting",apartmentSuite:ad,state:cd,address:ld,provinceOrTerritory:ud,cityTown:dd,zipCode:hd,"field.title.optional":"Optional",invalidFormatExpects:md,country:fd,accountHolder:gd,legalEntity:Id,legalEntityID:pd,balances:yd,currentBalance:_d,availableBalance:Td,reservedBalance:Md,accountConfiguration:Sd,accountHolderID:Ld,timezone:Nd,salesDayClosingTime:Ad,settlementDelayDays:Ed,transactionDetails:Cd,processingInformation:Dd,transferID:vd,type:bd,incompleteField:Od,legalEntityDetails:xd,no:Rd,accountIdentifier:wd,transferInstrumentId:jd,overview:Pd,transferInstruments:kd,id:Wd,legalEntityType:$d,name:Bd,mobile:zd,fax:Fd,landline:Ud,email:Hd,residentialAddress:Gd,countryOfResidence:Yd,legalNameOfTheCompany:Zd,companyType:Jd,tradingName:Vd,registrationNumber:Qd,taxNumber:Xd,taxExempt:Kd,registeredBusinessAddress:qd,"txType.Payment":"Payment","txType.capture":"Capture","txType.captureReversal":"Capture reversal","txType.Refund":"Refund","txType.refundReversal":"Refund reversal","txType.Chargeback":"Chargeback","txType.chargebackReversal":"Chargeback reversal","txType.secondChargeback":"Second chargeback","txType.ATM":"ATM","txType.Capital":"Capital","txType.Correction":"Correction","txType.Transfer":"Transfer","txType.Other":"Other","txType.atmWithdrawal":"ATM withdrawal","txType.atmWithdrawalReversal":"ATM withdrawal reversal","txType.internalTransfer":"Internal transfer","txType.manualCorrection":"Manual correction","txType.invoiceDeduction":"Invoice deduction","txType.depositCorrection":"Deposit correction","txType.bankTransfer":"Bank transfer","txType.miscCost":"Misc cost","txType.paymentCost":"Payment cost","txType.Fee":"Fee","txType.leftover":"Leftover","txType.balanceAdjustment":"Balance adjustment","txType.balanceMigration":"Balance migration","txType.balanceRollover":"Balance rollover","txType.cardTransfer":"Card transfer","txType.cashOutFee":"Cash out fee","txType.cashOutFunding":"Cash out funding","txType.cashOutInstruction":"Cash out instruction","txType.chargebackCorrection":"Chargeback correction","txType.chargebackReversalCorrection":"Chargeback reversal correction","txType.grant":"Grant","txType.installment":"Installment","txType.installmentReversal":"Installment reversal","txType.repayment":"Repayment","txType.reserveAdjustment":"Reserve adjustment",txAmount:th,unableToLoadAccountHolder:eh,"txType.secondChargebackCorrection":"Second chargeback correction",unableToLoadBalanceAccount:nh,unableToLoadLegalEntity:sh,unableToLoadTransaction:oh,dismiss:rh,organization:ih,individual:ah,originalAmount:ch,instructedAmount:lh,date:uh,structuredList:dh,tabs:hh,value:mh,filterBar:fh,default:"Default",contactDetails:gh,Booked:Ih,Pending:ph,Reversed:yh,transactionsOverview:_h,"rangePreset.custom":"Custom","rangePreset.last7Days":"Last 7 days","rangePreset.lastMonth":"Last month","rangePreset.lastWeek":"Last week","rangePreset.thisMonth":"This month","rangePreset.thisWeek":"This week","rangePreset.yearToDate":"Year to date",paymentMethod:Th,currency:Mh,totalIncoming:Sh,totalOutgoing:Lh,accountBalance:Nh,closeIconLabel:Ah,thereAreNoResults:Eh,noTransactionsFound:Ch,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Dh,tryAgainPlease:vh,noData:bh,thereWasAnUnexpectedError:Oh,somethingWentWrong:xh,weCouldNotLoadTheTransactionsOverview:Rh,tryRefreshingThePageOrComeBackLater:wh,weCouldNotLoadYourTransactions:jh,anInternalErrorHappened:Ph,contactSupportForHelpAndShareErrorCode:kh,theErrorCodeIs:Wh,pleaseReachOutToSupportForAssistance:$h,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Bh,entityWasNotFound:zh,entityWasNotFoundDetail:Fh,noResultsFoundSeekSupport:Uh,seemsLikeThereIsAndInternalError:Hh,refresh:Gh,reachOutToSupport:Yh,noNegativeNumbersAllowed:Zh,secondValueShouldBeGreaterThanTheFirstOne:Jh,export:"Export","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.Payout":"Money sent from your account balance to your external bank account","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Incoming":"Money received to your account from transactions and transfers",theSelectedBalanceAccountIsIncorrect:Vh},je="en-US",Qh=/^[a-z]{2}-[A-Z]{2}$/,Ma=Ta,Xh=["ar","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","fi-FI","fr-FR","hr-HR","hu-HU","it-IT","ja-JP","ko-KR","nl-NL","no-NO","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","sv-SE","zh-CN","zh-TW"],Kh={year:"numeric",month:"2-digit",day:"2-digit"},Js=Xh,qh=["constructor","i18n","watch","preferredTranslations"],Ur=Object.create,fr=()=>!0,zo={defineProperty:fr,set:fr},Lt=Object.freeze([]),z=Object.freeze(Ur(null)),Fo=Function.prototype.bind.bind(Function.prototype.call),Q=Fo(Ur,void 0,null),Uo=Fo(Ur,void 0),Sa=Fo(Object.prototype.toString),ye=Fo(Object.prototype.hasOwnProperty),ot=new Proxy(()=>{},zo),nt=(t,e=!1)=>({writable:e===!0,enumerable:!0,value:t}),tm=t=>t,Jn=(t,e)=>typeof t=="boolean"?t:!!e,gn=(t,e,n)=>Math.max(t,Math.min(e,n)),La=(t,e)=>t+Math.floor((e-t)/2),zs=(t,e)=>(t%e+e)%e,tt=t=>typeof t=="function",Gn=t=>typeof t=="number",Xe=t=>Gn(t)&&1/t===0,os=t=>Gn(t)&&t===~~t,Yn=(t,e)=>t===e||!(t===t||e===e),Vn=(t,e,n)=>t.includes(e)?e:e==null?t[0]:t.includes(n)?n:t[0],Hr=t=>t&&typeof t!="boolean"&&(t!=null&&t.value)?!!(t!=null&&t.value):!!t,em=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:nm,BASE_LOCALE:sm,SYSTEM_TIMEZONE:Vs,SYSTEM_TIMEZONE_FORMATTER:ln}=(()=>{const t="en-US",e="2-digit",n="numeric",i=Object.freeze({year:n,month:"short",day:n,hour:e,minute:e,second:e,fractionalSecondDigits:3,timeZoneName:"longOffset"});let a,c;try{c=new Intl.DateTimeFormat(t,i),a=c.resolvedOptions().timeZone}catch{a=void 0}return{BASE_FORMAT_OPTIONS:i,BASE_LOCALE:t,SYSTEM_TIMEZONE:a,SYSTEM_TIMEZONE_FORMATTER:c}})(),om=/\+(?=-)|([+-]00:00)/g,rm=new RegExp("(?<=^\\D?)(\\d)$"),im=([t,e])=>(Math.abs(t*60)+e)*(t<0?-1:1),am=t=>Object.freeze([Math.floor(t/60),zs(t,60)]),cm=t=>parseInt(t,10)||0,lm=t=>`GMT+${am(t).map(s=>`${s}`.replace(rm,"0$1")).join(":")}`.replace(om,""),gr=t=>{var n;const e=((n=t==null?void 0:t.match(em))==null?void 0:n[0].split(":",2).map(cm))??Lt;return im(e.concat(0,0).slice(0,2))},um=(t,e=ln)=>{const n=gr(ln==null?void 0:ln.format(t));return gr(e==null?void 0:e.format(t))-n},Na=(t,e,n=1)=>{const{offset:s,timestamp:o}=t(e),r=new Date(o);return r.setMinutes(r.getMinutes()-s*n)},ao=(t,e)=>Na(t,e,1),Aa=(t,e)=>Na(t,e,-1),dm=(()=>{let t,e;Vs!==void 0&&(t=function(){return this.TIMEZONE},e=function(s){if(s!=null)try{const o=new Intl.DateTimeFormat(sm,{...nm,timeZone:s}),r=o.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=o}catch{}else this.TIMEZONE=Vs,this.formatter=ln});function n(...s){if(s.length===0)return n.call(this,Date.now());const o=s[0],r=new Date(o).getTime(),i=this.formatter??ln;return Object.freeze({formatted:i==null?void 0:i.format(r),offset:um(r,i),timestamp:r})}return()=>{const s={TIMEZONE:Vs},o=e==null?void 0:e.bind(s),r=Q({current:{get:t==null?void 0:t.bind(s),set:o},system:{value:Vs}});return Object.defineProperties(n.bind(s),{tz:{get:()=>r,set:o}})}})(),Ho=dm,Ea={},Ca={},Da={},va={},ba={},hm="ID de pago",mm="Tipo de transacción",fm="Cuenta",gm="Descripción",Im="Cantidad",pm="Hora de creación",ym="Navegación paginada",_m="No se pueden cargar las transacciones",Tm="(No establecido)",Mm="Editar filtro",Sm="Cuenta de saldo",Lm="Plataforma de saldo",Nm="Seleccione una plataforma de saldo, una cuenta de saldo o una cuenta",Am="Limpiar",Em="Aplicar",Cm="Referencia para el beneficiario",Dm="Categoría",vm="Referencia",bm="Transacciones",Om="Rango de fechas",xm="Desde",Rm="Hasta",wm="ID de cuenta de saldo",jm="Moneda predeterminada",Pm="Creado",km="Estado",Wm="Expandir contenido",$m="Ocultar contenido",Bm="Detalles de la tienda",zm="Preautorizar con",Fm="Continuar a",Um="Número de teléfono",Hm="Infix",Gm="Nombre",Ym="Apellido",Zm="Fecha de nacimiento",Jm="Correo electrónico del comprador",Vm="Masculino",Qm="Femenino",Xm="Detalles personales",Km="Detalles de la empresa",qm="Apartamento",tf="Estado",ef="Dirección",nf="Provincia o territorio",sf="Ciudad",of="Código postal",rf="Formato inválido, se espera",af="País",cf="Titular de la cuenta",lf="Entidad legal",uf="ID de la entidad legal",df="Saldos",hf="Saldo actual",mf="Saldo disponible",ff="Saldo reservado",gf="Configuración de la cuenta",If="ID del titular de la cuenta",pf="Zona horaria",yf="Hora de cierre del día de ventas",_f="Días de demora en la liquidación",Tf="Detalles de la transacción",Mf="Información de procesamiento",Sf="ID de transferencia",Lf="Tipo",Nf="Campo incompleto",Af="Detalles de la entidad legal",Ef="No",Cf="Identificador de cuenta",Df="ID del instrumento de transferencia",vf="Resumen",bf="Instrumentos de transferencia",Of="ID",xf="Tipo de entidad legal",Rf="Nombre",wf="Móvil",jf="Fax",Pf="Teléfono fijo",kf="Correo electrónico",Wf="Dirección residencial",$f="País de residencia",Bf="Nombre legal de la empresa",zf="Tipo de empresa",Ff="Nombre comercial",Uf="Número de registro",Hf="Número de identificación fiscal",Gf="Exento de impuestos",Yf="Dirección registrada de la empresa",Zf="Incapaz de cargar el titular de la cuenta",Jf="Incapaz de cargar la cuenta de saldo",Vf="Incapaz de cargar la entidad legal",Qf="Incapaz de cargar la transacción",Xf="Descartar",Kf="Organización",qf="individual",tg="Monto original",eg="Monto instruido",ng="Fecha",sg="Lista estructurada",og="Pestañas",rg="Valor",ig="Barra de filtro",Oa={paymentId:hm,transactionType:mm,account:fm,description:gm,amount:Im,creationTime:pm,paginatedNavigation:ym,"pagination.page":"Página","pagination.previousPage":"Página anterior","pagination.nextPage":"Página siguiente",unableToLoadTransactions:_m,notSet:Tm,"filter.date.since":"Desde {date}","filter.date.until":"Hasta {date}","calendar.previousMonth":"Mes anterior","calendar.nextMonth":"Próximo mes","button.resetAll":"Restablecer todo",editFilter:Mm,balanceAccount:Sm,balancePlatform:Lm,toStart:Nm,clear:Am,apply:Em,referenceForBeneficiary:Cm,"status.booked":"Reservado","status.active":"Activo","status.inactive":"Inactivo","status.pending":"Pendiente",category:Dm,"category.internal":"Interno",reference:vm,transactions:bm,dateRange:Om,from:xm,to:Rm,balanceAccountId:wm,defaultCurrency:jm,created:Pm,status:km,expandContent:Wm,hideContent:$m,storeDetails:Bm,preauthorizeWith:zm,continueTo:Fm,telephoneNumber:Um,infix:Hm,firstName:Gm,lastName:Ym,dateOfBirth:Zm,"dateOfBirth.format":"Formato",shopperEmail:Jm,"select.noOptionsFound":"No se encontraron opciones","select.filter.placeholder":"Marcador de posición","select.provinceOrTerritory":"Provincia o territorio","select.state":"Estado","select.country":"País",male:Vm,female:Qm,personalDetails:Xm,"field.valid":"Válido","field.invalid":"Inválido",companyDetails:Km,"companyDetails.name":"Nombre","companyDetails.registrationNumber":"Número de registro","payButton.redirecting":"Redireccionando",apartmentSuite:qm,state:tf,address:ef,provinceOrTerritory:nf,cityTown:sf,zipCode:of,"field.title.optional":"Opcional",invalidFormatExpects:rf,country:af,accountHolder:cf,legalEntity:lf,legalEntityID:uf,balances:df,currentBalance:hf,availableBalance:mf,reservedBalance:ff,accountConfiguration:gf,accountHolderID:If,timezone:pf,salesDayClosingTime:yf,settlementDelayDays:_f,transactionDetails:Tf,processingInformation:Mf,transferID:Sf,type:Lf,incompleteField:Nf,legalEntityDetails:Af,no:Ef,accountIdentifier:Cf,transferInstrumentId:Df,overview:vf,transferInstruments:bf,id:Of,legalEntityType:xf,name:Rf,mobile:wf,fax:jf,landline:Pf,email:kf,residentialAddress:Wf,countryOfResidence:$f,legalNameOfTheCompany:Bf,companyType:zf,tradingName:Ff,registrationNumber:Uf,taxNumber:Hf,taxExempt:Gf,registeredBusinessAddress:Yf,"txType.payment":"Pago","txType.capture":"Captura","txType.captureReversal":"Reversión de captura","txType.refund":"Reembolso","txType.refundReversal":"Reversión de reembolso","txType.chargeback":"Contracargo","txType.chargebackReversal":"Reversión de contracargo","txType.secondChargeback":"Segundo contracargo","txType.atmWithdrawal":"Retiro de cajero automático","txType.atmWithdrawalReversal":"Reversión de retiro de cajero automático","txType.internalTransfer":"Transferencia interna","txType.manualCorrection":"Corrección manual","txType.invoiceDeduction":"Deducción de factura","txType.depositCorrection":"Corrección de depósito","txType.bankTransfer":"Transferencia bancaria","txType.miscCost":"Costo misceláneo","txType.paymentCost":"Costo de pago","txType.fee":"Cuota","txType.leftover":"Sobrante","txType.balanceAdjustment":"Ajuste de saldo",unableToLoadAccountHolder:Zf,unableToLoadBalanceAccount:Jf,unableToLoadLegalEntity:Vf,unableToLoadTransaction:Qf,dismiss:Xf,organization:Kf,individual:qf,originalAmount:tg,instructedAmount:eg,date:ng,structuredList:sg,tabs:og,value:rg,filterBar:ig,default:"Predeterminado"},xa={},Ra={},wa={},ja={},Pa={},ka={},Wa={},$a={},Ba={},za={},Fa={},Ua={},Ha={},Ga={},Ya={},Za={},Ja={},Va={},Qa={},Gr={en_US:Ta},ag={ar:Ea},cg={cs_CZ:Ca},lg={da_DK:Da},ug={de_DE:va},dg={el_GR:ba},hg={es_ES:Oa},mg={fi_FI:xa},fg={fr_FR:Ra},gg={hr_HR:wa},Ig={hu_HU:ja},pg={it_IT:Pa},yg={ja_JP:ka},_g={ko_KR:Wa},Tg={nl_NL:$a},Mg={no_NO:Ba},Sg={pl_PL:za},Lg={pt_BR:Fa},Ng={pt_PT:Ua},Ag={ro_RO:Ha},Eg={ru_RU:Ga},Cg={sk_SK:Ya},Dg={sl_SI:Za},vg={sv_SE:Ja},bg={zh_CN:Va},Og={zh_TW:Qa},xg={zh_TW:Qa,zh_CN:Va,sv_SE:Ja,sl_SI:Za,sk_SK:Ya,ru_RU:Ga,ro_RO:Ha,pt_PT:Ua,pt_BR:Fa,pl_PL:za,no_NO:Ba,nl_NL:$a,ko_KR:Wa,ja_JP:ka,it_IT:Pa,hu_HU:ja,hr_HR:wa,fr_FR:Ra,fi_FI:xa,es_ES:Oa,el_GR:ba,de_DE:va,da_DK:Da,cs_CZ:Ca,ar:Ea},co=t=>t.substring(0,2).toLowerCase();function Rg(t,e){if(!t)return null;const n=co(t);return e.find(s=>co(s)===n)||null}function Yr(t){const e=t.replace("_","-");if(Qh.test(e))return e;const[n,s]=e.split("-");if(!n||!s)return null;const o=`${n.toLowerCase()}-${s.toUpperCase()}`;return o.length===5?o:null}function Zr(t,e){const n=t.trim();if(!n||n.length<1||n.length>5)return je;const s=Yr(n);return s&&e.indexOf(s)>-1?s:Rg(s??n,[...e])}function wg(t={},e){return Object.keys(t).reduce((n,s)=>{const o=Yr(s)||Zr(s,e);return o&&t[s]&&(n[o]=t[s]),n},{})}const sr=(t,e)=>t.replace(/%{(\w+)}/g,(n,s)=>(e==null?void 0:e[s])||""),yi=(t,e,n={values:{},count:0})=>{const s=n.count??0,o=`${e}__${s}`;if(ye(t,o)&&t[o])return sr(t[o],n.values);const r=`${e}__plural`;return ye(t,r)&&s>1&&t[r]?sr(t[r],n.values):ye(t,e)&&t[e]?sr(t[e],n.values):null},jg=async(t,e,n={})=>{const s=e??{"en-US":Gr.en_US},o=Zr(t,Object.keys(s))||je,r=s[o];return{...Ma,...r,...!!n[t]&&n[t]}};function Pg(){let t=this.locale,e=t,n=this.supportedLocales;return Q({load:{value:s=>jg(t,this.preferredTranslations,s)},locale:{get:()=>t,set:s=>{e=s,t=Yr(s)||Zr(s,n)||je}},supportedLocales:{get:()=>t,set(s){n=s,this.locale=e}}})}function kg(){const t={};for(const[e,n]of Object.entries(Object.getOwnPropertyDescriptors(Go.prototype)))qh.includes(e)||(tt(n.get)?t[e]={get:n.get.bind(this)}:tt(n.value)?t[e]={value:n.value.bind(this)}:t[e]={get:()=>this[e]});return t}const Wg=(()=>{const t=n=>n,e=Q();return n=>{if(n===void 0)return t;const s=[];return o=>(...r)=>{let i=e;try{return s.push(o),o(...r)}catch(a){throw i=a}finally{s.pop(),s.length===0&&i===e&&n()}}}})(),$g=Wg,Bg=(t={})=>{const e={};for(const n of Object.keys(t)){const{get:s,value:o}=Object.getOwnPropertyDescriptor(t,n);e[n]={enumerable:!0,get:s||(tt(o)?o.bind(t):()=>o)}}return Q(e)},zg=()=>{const t={idle:ot,resume:ot},e={};for(const n of Object.keys(t))e[n]={get:()=>t[n],set:s=>{s==null?t[n]=ot:tt(s)&&s!==t[n]&&(t[n]=s)}};return Q(e)},Xa=Symbol();var ke,We,Bt,_n,Rt;class Fg{constructor(e={}){_(this,ke,void 0);_(this,We,void 0);_(this,Bt,void 0);_(this,_n,new WeakMap);_(this,Rt,new Map);y(this,ke,zg()),y(this,We,Bg(e)),this.notifyWatchers=this.notifyWatchers.bind(this),this.watch=this.watch.bind(this)}get idle(){return l(this,Rt).size===0}get idleCallbacks(){return l(this,ke)}get snapshot(){return l(this,Bt)??Object.freeze({...l(this,We)})}notifyWatchers(e){if(l(this,Rt).size===0)return;if(e===Xa)return l(this,Rt).forEach((s,o)=>o(e)),!0;const n=l(this,Bt);y(this,Bt,Object.freeze({...l(this,We)}));for(const s of Object.keys(l(this,Bt)))if(!Yn(l(this,Bt)[s],n[s]))return l(this,Rt).forEach((o,r)=>r(l(this,Bt))),!0;return!1}watch(e){if(!e)return ot;let n=l(this,_n).get(e);const s=l(this,Rt).get(e)||0,o=this.idle;if(!n){let r=()=>{const i=l(this,Rt).get(e)||0;i===1?(r=void 0,l(this,_n).delete(e),l(this,Rt).delete(e),l(this,Rt).size===0&&(y(this,Bt,void 0),l(this,ke).idle())):i>1&&l(this,Rt).set(e,i-1)};l(this,_n).set(e,n=()=>r==null?void 0:r())}return l(this,Rt).set(e,s+1),o&&(y(this,Bt,Object.freeze({...l(this,We)})),l(this,ke).resume()),e(l(this,Bt)),n}}ke=new WeakMap,We=new WeakMap,Bt=new WeakMap,_n=new WeakMap,Rt=new WeakMap;const Ug=t=>{const e=new Fg(t);return Q({callback:{value:e.idleCallbacks},idle:{get:()=>e.idle},notify:{value:e.notifyWatchers},snapshot:{get:()=>e.snapshot},watch:{value:e.watch}})},Ke=Object.defineProperties(Ug,{UNWATCH:{value:Xa},withSyncEffect:{value:$g}});var oe,hs,ms,Tn,Mn,de,fs,$e,Be,Sn,ze,gs,Ir;class Go{constructor(e=je,n){_(this,gs);_(this,oe,je);_(this,hs,co(l(this,oe)));_(this,ms,Js);_(this,Tn,void 0);_(this,Mn,Ma);_(this,de,Pg.call(this));_(this,fs,Promise.resolve());_(this,$e,void 0);_(this,Be,void 0);_(this,Sn,Ke({timestamp:()=>performance.now()}));_(this,ze,Ho());O(this,"watch",l(this,Sn).watch.bind(void 0));O(this,"i18n",Q(kg.call(this)));O(this,"preferredTranslations");this.watch(ot),this.preferredTranslations=n&&n.reduce((s,o)=>({...s,...o}),{[je]:Gr.en_US}),this.locale=e}get customTranslations(){return l(this,Tn)??{}}set customTranslations(e){let n,s=[...Js];if(e!=null){n=wg(e,Js);const o=Object.keys(n);s=[...Js,...o].filter((r,i,a)=>a.indexOf(r)===i)}l(this,de).supportedLocales=s,b(this,gs,Ir).call(this,n)}get languageCode(){return l(this,hs)}get lastRefreshTimestamp(){return l(this,Sn).snapshot.timestamp}get locale(){return l(this,oe)}set locale(e){if(e!=null){if(l(this,de).locale=e,l(this,oe)===l(this,de).locale)return;b(this,gs,Ir).call(this,l(this,Tn))}else this.locale=je}get ready(){return l(this,fs)}get supportedLocales(){return l(this,ms)}get timezone(){return l(this,ze).tz.current}set timezone(e){l(this,ze).tz=e}get(e,n){const s=yi(l(this,Mn),e,n);return s!==null?s:e}has(e,n){return!!yi(l(this,Mn),e,n)}amount(e,n,s){const{hideCurrency:o,...r}=s||{},i=pu(e,l(this,oe),n,o,{...r,currencyDisplay:"symbol",signDisplay:"never"});return e<0?`- ${i}`:i}date(e,n={}){const s={...Kh,timeZone:l(this,ze).tz.current,...n};return new Date(e).toLocaleDateString(l(this,oe),s)}fullDate(e){const n=ao(l(this,ze),e),[,s,o,r,i]=new Date(n).toString().split(/\s+/g);return`${s} ${o}, ${r}, ${i}`}}oe=new WeakMap,hs=new WeakMap,ms=new WeakMap,Tn=new WeakMap,Mn=new WeakMap,de=new WeakMap,fs=new WeakMap,$e=new WeakMap,Be=new WeakMap,Sn=new WeakMap,ze=new WeakMap,gs=new WeakSet,Ir=function(e){l(this,Be)===void 0&&y(this,fs,new Promise(o=>{y(this,Be,()=>{o(l(this,$e)),y(this,$e,y(this,Be,void 0))})}));const n=()=>{var o;l(this,$e)===s&&((o=l(this,Be))==null||o.call(this))},s=y(this,$e,(async()=>{y(this,Mn,await l(this,de).load(e)),y(this,oe,l(this,de).locale),y(this,ms,l(this,de).supportedLocales),y(this,Tn,e),y(this,hs,co(l(this,oe))),l(this,Sn).notify()})());s.then(n).catch(o=>{n(),console.error(o)})};const Hg="test";class Ka{constructor(e){O(this,"session");O(this,"modules");O(this,"options");O(this,"components",[]);O(this,"localization");O(this,"loadingContext");O(this,"onSessionCreate");O(this,"sessionSetupError");O(this,"isUpdatingSessionToken");O(this,"updateSession",async()=>{var e;try{if(this.options.onSessionCreate&&!this.isUpdatingSessionToken)return this.isUpdatingSessionToken=!0,this.session=new lu(await this.options.onSessionCreate(),this.loadingContext),await((e=this.session)==null?void 0:e.setupSession(this.options)),await this.update({}),this.isUpdatingSessionToken=!1,this}catch(n){return this.options.onError&&this.options.onError(n),this.sessionSetupError=!0,await this.update(),this.isUpdatingSessionToken=!1,this}});O(this,"update",(e=z,n=!1)=>(this.setOptions(e),this.initialize(n).then(()=>(this.components.forEach(s=>s.update(this.getPropsForComponent(this.options))),this))));O(this,"remove",e=>(this.components=this.components.filter(n=>n._id!==e._id),e.unmount(),this));O(this,"registerComponent",e=>{this.components.push(e)});O(this,"setOptions",e=>{var n,s,o;return this.options={...this.options,...e},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(s=this.options)==null?void 0:s.translations,this.localization.timezone=(o=this.options)==null?void 0:o.timezone,this.onSessionCreate=this.options.onSessionCreate,this.modules={i18n:this.localization.i18n},this});this.options={environment:Hg,...e},this.isUpdatingSessionToken=!1,this.localization=new Go(e.locale,e.availableTranslations),this.loadingContext=Yl(this.options.environment),this.setOptions(e)}async initialize(e=!1){return!this.sessionSetupError&&(e||!this.session&&this.onSessionCreate)&&await this.updateSession(),Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(e){return{...e,i18n:this.modules.i18n,modules:this.modules,session:this.session,loadingContext:this.loadingContext,_parentInstance:this}}}O(Ka,"version",{version:"1.0.0-beta.2",revision:"33c0a7d",branch:"main",buildId:"@adyen/adyen-pe-web-3ed52b5a-7aa6-4d68-a62b-23b8b79a5316"});const qa=Ka;var Fs,w,tc,Re,_i,ec,pr,nc,In={},sc=[],Gg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yo=Array.isArray;function pe(t,e){for(var n in e)t[n]=e[n];return t}function oc(t){var e=t.parentNode;e&&e.removeChild(t)}function tn(t,e,n){var s,o,r,i={};for(r in e)r=="key"?s=e[r]:r=="ref"?o=e[r]:i[r]=e[r];if(arguments.length>2&&(i.children=arguments.length>3?Fs.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)i[r]===void 0&&(i[r]=t.defaultProps[r]);return ss(t,i,s,o,null)}function ss(t,e,n,s,o){var r={type:t,props:e,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++tc};return o==null&&w.vnode!=null&&w.vnode(r),r}function Y(t){return t.children}function _e(t,e){this.props=t,this.context=e}function rs(t,e){if(e==null)return t.__?rs(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__d||n.__e;return typeof t.type=="function"?rs(t):null}function rc(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return rc(t)}}function yr(t){(!t.__d&&(t.__d=!0)&&Re.push(t)&&!lo.__r++||_i!==w.debounceRendering)&&((_i=w.debounceRendering)||ec)(lo)}function lo(){var t,e,n,s,o,r,i,a,c;for(Re.sort(pr);t=Re.shift();)t.__d&&(e=Re.length,s=void 0,o=void 0,r=void 0,a=(i=(n=t).__v).__e,(c=n.__P)&&(s=[],o=[],(r=pe({},i)).__v=i.__v+1,Jr(c,i,r,n.__n,c.ownerSVGElement!==void 0,i.__h!=null?[a]:null,s,a??rs(i),i.__h,o),lc(s,i,o),i.__e!=a&&rc(i)),Re.length>e&&Re.sort(pr));lo.__r=0}function ic(t,e,n,s,o,r,i,a,c,u,m){var h,g,f,I,p,L,S,D,T,E=0,C=s&&s.__k||sc,x=C.length,v=x,R=e.length;for(n.__k=[],h=0;h<R;h++)(I=n.__k[h]=(I=e[h])==null||typeof I=="boolean"||typeof I=="function"?null:typeof I=="string"||typeof I=="number"||typeof I=="bigint"?ss(null,I,null,null,I):Yo(I)?ss(Y,{children:I},null,null,null):I.__b>0?ss(I.type,I.props,I.key,I.ref?I.ref:null,I.__v):I)!=null?(I.__=n,I.__b=n.__b+1,(D=Yg(I,C,S=h+E,v))===-1?f=In:(f=C[D]||In,C[D]=void 0,v--),Jr(t,I,f,o,r,i,a,c,u,m),p=I.__e,(g=I.ref)&&f.ref!=g&&(f.ref&&Vr(f.ref,null,I),m.push(g,I.__c||p,I)),p!=null&&(L==null&&(L=p),(T=f===In||f.__v===null)?D==-1&&E--:D!==S&&(D===S+1?E++:D>S?v>R-S?E+=D-S:E--:E=D<S&&D==S-1?D-S:0),S=h+E,typeof I.type!="function"||D===S&&f.__k!==I.__k?typeof I.type=="function"||D===S&&!T?I.__d!==void 0?(c=I.__d,I.__d=void 0):c=p.nextSibling:c=cc(t,p,c):c=ac(I,c,t),typeof n.type=="function"&&(n.__d=c))):(f=C[h])&&f.key==null&&f.__e&&(f.__e==c&&(f.__=s,c=rs(f)),_r(f,f,!1),C[h]=null);for(n.__e=L,h=x;h--;)C[h]!=null&&(typeof n.type=="function"&&C[h].__e!=null&&C[h].__e==n.__d&&(n.__d=C[h].__e.nextSibling),_r(C[h],C[h]))}function ac(t,e,n){for(var s,o=t.__k,r=0;o&&r<o.length;r++)(s=o[r])&&(s.__=t,e=typeof s.type=="function"?ac(s,e,n):cc(n,s.__e,e));return e}function en(t,e){return e=e||[],t==null||typeof t=="boolean"||(Yo(t)?t.some(function(n){en(n,e)}):e.push(t)),e}function cc(t,e,n){return n==null||n.parentNode!==t?t.insertBefore(e,null):e==n&&e.parentNode!=null||t.insertBefore(e,n),e.nextSibling}function Yg(t,e,n,s){var o=t.key,r=t.type,i=n-1,a=n+1,c=e[n];if(c===null||c&&o==c.key&&r===c.type)return n;if(s>(c!=null?1:0))for(;i>=0||a<e.length;){if(i>=0){if((c=e[i])&&o==c.key&&r===c.type)return i;i--}if(a<e.length){if((c=e[a])&&o==c.key&&r===c.type)return a;a++}}return-1}function Zg(t,e,n,s,o){var r;for(r in n)r==="children"||r==="key"||r in e||uo(t,r,null,n[r],s);for(r in e)o&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===e[r]||uo(t,r,e[r],n[r],s)}function Ti(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Gg.test(e)?n:n+"px"}function uo(t,e,n,s,o){var r;t:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof s=="string"&&(t.style.cssText=s=""),s)for(e in s)n&&e in n||Ti(t.style,e,"");if(n)for(e in n)s&&n[e]===s[e]||Ti(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?s?n.u=s.u:(n.u=Date.now(),t.addEventListener(e,r?Si:Mi,r)):t.removeEventListener(e,r?Si:Mi,r);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function Mi(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(w.event?w.event(t):t)}function Si(t){return this.l[t.type+!0](w.event?w.event(t):t)}function Jr(t,e,n,s,o,r,i,a,c,u){var m,h,g,f,I,p,L,S,D,T,E,C,x,v,R,j=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,a=e.__e=n.__e,e.__h=null,r=[a]),(m=w.__b)&&m(e);t:if(typeof j=="function")try{if(S=e.props,D=(m=j.contextType)&&s[m.__c],T=m?D?D.props.value:m.__:s,n.__c?L=(h=e.__c=n.__c).__=h.__E:("prototype"in j&&j.prototype.render?e.__c=h=new j(S,T):(e.__c=h=new _e(S,T),h.constructor=j,h.render=Vg),D&&D.sub(h),h.props=S,h.state||(h.state={}),h.context=T,h.__n=s,g=h.__d=!0,h.__h=[],h._sb=[]),h.__s==null&&(h.__s=h.state),j.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=pe({},h.__s)),pe(h.__s,j.getDerivedStateFromProps(S,h.__s))),f=h.props,I=h.state,h.__v=e,g)j.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(j.getDerivedStateFromProps==null&&S!==f&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,T),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,T)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(h.props=S,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(k){k&&(k.__=e)}),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&i.push(h);break t}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,T),h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(f,I,p)})}if(h.context=T,h.props=S,h.__P=t,h.__e=!1,C=w.__r,x=0,"prototype"in j&&j.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(e),m=h.render(h.props,h.state,h.context),v=0;v<h._sb.length;v++)h.__h.push(h._sb[v]);h._sb=[]}else do h.__d=!1,C&&C(e),m=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++x<25);h.state=h.__s,h.getChildContext!=null&&(s=pe(pe({},s),h.getChildContext())),g||h.getSnapshotBeforeUpdate==null||(p=h.getSnapshotBeforeUpdate(f,I)),ic(t,Yo(R=m!=null&&m.type===Y&&m.key==null?m.props.children:m)?R:[R],e,n,s,o,r,i,a,c,u),h.base=e.__e,e.__h=null,h.__h.length&&i.push(h),L&&(h.__E=h.__=null)}catch(k){e.__v=null,(c||r!=null)&&(e.__e=a,e.__h=!!c,r[r.indexOf(a)]=null),w.__e(k,e,n)}else r==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Jg(n.__e,e,n,s,o,r,i,c,u);(m=w.diffed)&&m(e)}function lc(t,e,n){for(var s=0;s<n.length;s++)Vr(n[s],n[++s],n[++s]);w.__c&&w.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(r){r.call(o)})}catch(r){w.__e(r,o.__v)}})}function Jg(t,e,n,s,o,r,i,a,c){var u,m,h,g=n.props,f=e.props,I=e.type,p=0;if(I==="svg"&&(o=!0),r!=null){for(;p<r.length;p++)if((u=r[p])&&"setAttribute"in u==!!I&&(I?u.localName===I:u.nodeType===3)){t=u,r[p]=null;break}}if(t==null){if(I===null)return document.createTextNode(f);t=o?document.createElementNS("http://www.w3.org/2000/svg",I):document.createElement(I,f.is&&f),r=null,a=!1}if(I===null)g===f||a&&t.data===f||(t.data=f);else{if(r=r&&Fs.call(t.childNodes),m=(g=n.props||In).dangerouslySetInnerHTML,h=f.dangerouslySetInnerHTML,!a){if(r!=null)for(g={},p=0;p<t.attributes.length;p++)g[t.attributes[p].name]=t.attributes[p].value;(h||m)&&(h&&(m&&h.__html==m.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(Zg(t,f,g,o,a),h)e.__k=[];else if(ic(t,Yo(p=e.props.children)?p:[p],e,n,s,o&&I!=="foreignObject",r,i,r?r[0]:n.__k&&rs(n,0),a,c),r!=null)for(p=r.length;p--;)r[p]!=null&&oc(r[p]);a||("value"in f&&(p=f.value)!==void 0&&(p!==t.value||I==="progress"&&!p||I==="option"&&p!==g.value)&&uo(t,"value",p,g.value,!1),"checked"in f&&(p=f.checked)!==void 0&&p!==t.checked&&uo(t,"checked",p,g.checked,!1))}return t}function Vr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(s){w.__e(s,n)}}function _r(t,e,n){var s,o;if(w.unmount&&w.unmount(t),(s=t.ref)&&(s.current&&s.current!==t.__e||Vr(s,null,e)),(s=t.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(r){w.__e(r,e)}s.base=s.__P=null,t.__c=void 0}if(s=t.__k)for(o=0;o<s.length;o++)s[o]&&_r(s[o],e,n||typeof t.type!="function");n||t.__e==null||oc(t.__e),t.__=t.__e=t.__d=void 0}function Vg(t,e,n){return this.constructor(t,n)}function un(t,e,n){var s,o,r,i;w.__&&w.__(t,e),o=(s=typeof n=="function")?null:n&&n.__k||e.__k,r=[],i=[],Jr(e,t=(!s&&n||e).__k=tn(Y,null,[t]),o||In,In,e.ownerSVGElement!==void 0,!s&&n?[n]:o?null:e.firstChild?Fs.call(e.childNodes):null,r,!s&&n?n:o?o.__e:e.firstChild,s,i),lc(r,t,i)}function Qg(t,e,n){var s,o,r,i,a=pe({},t.props);for(r in t.type&&t.type.defaultProps&&(i=t.type.defaultProps),e)r=="key"?s=e[r]:r=="ref"?o=e[r]:a[r]=e[r]===void 0&&i!==void 0?i[r]:e[r];return arguments.length>2&&(a.children=arguments.length>3?Fs.call(arguments,2):n),ss(t.type,a,s||t.key,o||t.ref,null)}function uc(t,e){var n={__c:e="__cC"+nc++,__:t,Consumer:function(s,o){return s.children(o)},Provider:function(s){var o,r;return this.getChildContext||(o=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,yr(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),s.children}};return n.Provider.__=n.Consumer.contextType=n}Fs=sc.slice,w={__e:function(t,e,n,s){for(var o,r,i;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(t)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,s||{}),i=o.__d),i)return o.__E=o}catch(a){t=a}throw t}},tc=0,_e.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pe({},this.state),typeof t=="function"&&(t=t(pe({},n),this.props)),t&&pe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),yr(this))},_e.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),yr(this))},_e.prototype.render=Y,Re=[],ec=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pr=function(t,e){return t.__v.__b-e.__v.__b},lo.__r=0,nc=0;var Xg=0;function d(t,e,n,s,o,r){var i,a,c={};for(a in e)a=="ref"?i=e[a]:c[a]=e[a];var u={type:t,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xg,__source:o,__self:r};if(typeof t=="function"&&(i=t.defaultProps))for(a in i)c[a]===void 0&&(c[a]=i[a]);return w.vnode&&w.vnode(u),u}const dc=uc({token:"",endpoints:z,updateCore:ot});var nn,st,or,Li,Fn=0,hc=[],Xs=[],Ni=w.__b,Ai=w.__r,Ei=w.diffed,Ci=w.__c,Di=w.unmount;function Us(t,e){w.__h&&w.__h(st,t,Fn||e),Fn=0;var n=st.__H||(st.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Xs}),n.__[t]}function B(t){return Fn=1,Zo(gc,t)}function Zo(t,e,n){var s=Us(nn++,2);if(s.t=t,!s.__c&&(s.__=[n?n(e):gc(void 0,e),function(a){var c=s.__N?s.__N[0]:s.__[0],u=s.t(c,a);c!==u&&(s.__N=[u,s.__[1]],s.__c.setState({}))}],s.__c=st,!st.u)){var o=function(a,c,u){if(!s.__c.__H)return!0;var m=s.__c.__H.__.filter(function(g){return g.__c});if(m.every(function(g){return!g.__N}))return!r||r.call(this,a,c,u);var h=!1;return m.forEach(function(g){if(g.__N){var f=g.__[0];g.__=g.__N,g.__N=void 0,f!==g.__[0]&&(h=!0)}}),!(!h&&s.__c.props===a)&&(!r||r.call(this,a,c,u))};st.u=!0;var r=st.shouldComponentUpdate,i=st.componentWillUpdate;st.componentWillUpdate=function(a,c,u){if(this.__e){var m=r;r=void 0,o(a,c,u),r=m}i&&i.call(this,a,c,u)},st.shouldComponentUpdate=o}return s.__N||s.__}function $(t,e){var n=Us(nn++,3);!w.__s&&Qr(n.__H,e)&&(n.__=t,n.i=e,st.__H.__h.push(n))}function mc(t,e){var n=Us(nn++,4);!w.__s&&Qr(n.__H,e)&&(n.__=t,n.i=e,st.__h.push(n))}function P(t){return Fn=5,M(function(){return{current:t}},[])}function Kg(t,e,n){Fn=6,mc(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function M(t,e){var n=Us(nn++,7);return Qr(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function N(t,e){return Fn=8,M(function(){return t},e)}function fc(t){var e=st.context[t.__c],n=Us(nn++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(st)),e.props.value):t.__}function qg(){for(var t;t=hc.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ks),t.__H.__h.forEach(Tr),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}w.__b=function(t){st=null,Ni&&Ni(t)},w.__r=function(t){Ai&&Ai(t),nn=0;var e=(st=t.__c).__H;e&&(or===st?(e.__h=[],st.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Xs,n.__N=n.i=void 0})):(e.__h.forEach(Ks),e.__h.forEach(Tr),e.__h=[],nn=0)),or=st},w.diffed=function(t){Ei&&Ei(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(hc.push(e)!==1&&Li===w.requestAnimationFrame||((Li=w.requestAnimationFrame)||tI)(qg)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Xs&&(n.__=n.__V),n.i=void 0,n.__V=Xs})),or=st=null},w.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Ks),n.__h=n.__h.filter(function(s){return!s.__||Tr(s)})}catch(s){e.some(function(o){o.__h&&(o.__h=[])}),e=[],w.__e(s,n.__v)}}),Ci&&Ci(t,e)},w.unmount=function(t){Di&&Di(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(s){try{Ks(s)}catch(o){e=o}}),n.__H=void 0,e&&w.__e(e,n.__v))};var vi=typeof requestAnimationFrame=="function";function tI(t){var e,n=function(){clearTimeout(s),vi&&cancelAnimationFrame(e),setTimeout(t)},s=setTimeout(n,100);vi&&(e=requestAnimationFrame(n))}function Ks(t){var e=st,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),st=e}function Tr(t){var e=st;t.__c=t.__(),st=e}function Qr(t,e){return!t||t.length!==e.length||e.some(function(n,s){return n!==t[s]})}function gc(t,e){return typeof e=="function"?e(t):e}const eI=({token:t,endpoints:e,children:n,updateCore:s,sessionSetupError:o})=>{const[r,i]=B(),a=P("");$(()=>{a.current!==t&&(a.current=t,i(!1))},[t]);const c=async()=>{i(!0),s&&await s(z,!0)};return d(dc.Provider,{value:{token:t,endpoints:e,updateCore:c,sessionSetupError:o,isUpdatingToken:r},children:en(n)})},nI=eI,Ic=uc({i18n:new Go().i18n,loadingContext:"",commonProps:{}}),sI=(t=!1)=>{const[e,n]=B(t),s=N(r=>n(r),[]),o=N(()=>n(r=>!r),[]);return[e,s,o]},ie=sI,oI=({i18n:t=new Go().i18n,children:e,commonProps:n,loadingContext:s})=>{const[o,r]=ie(!1),i=M(()=>n||{},[n]),a=M(()=>s??"",[s]);return $(()=>{(async()=>{await(t==null?void 0:t.ready),r(!0)})().catch()},[]),o?d(Ic.Provider,{value:{i18n:t,commonProps:i,loadingContext:a},children:en(e)}):null},rI=oI;class iI{constructor(){O(this,"events",{});O(this,"on",(e,n)=>{var s;this.events[e]=this.events[e]||[],(s=this.events[e])==null||s.push(n)});O(this,"off",(e,n)=>{this.events[e]&&(this.events[e]=this.events[e].reduce((s,o)=>(o!==n&&s.push(o),s),[]))});O(this,"emit",(e,n)=>{var s;this.events[e]&&((s=this.events[e])==null||s.forEach(o=>{o(n)}))})}}const aI=iI;function pc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const cI=t=>!!(t==null||/^[\s]*$/.test(t)),be=t=>typeof t=="string"||t instanceof String;var fa;class Mr{constructor(e){O(this,"_id",`${(fa=this.constructor)==null?void 0:fa.type}-${pc()}`);O(this,"props");O(this,"state");O(this,"defaultProps",{});O(this,"_node");O(this,"_component");O(this,"eventEmitter",new aI);O(this,"_parentInstance");O(this,"sessionSetupError");O(this,"loadingContext");O(this,"i18n");O(this,"session");this.props=this.formatProps({...this==null?void 0:this.defaultProps,...e}),this._parentInstance=this.props._parentInstance,this._node=null,this.state={},this.loadingContext=this.props.core.loadingContext,this.i18n=this.props.core.modules.i18n,this.session=this.props.core.session,this.props.core.registerComponent(this)}formatProps(e){return e}formatData(){return{}}setState(e){this.state={...this.state,...e}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(e){var s,o;let n;if(be(e)?n=document.querySelector(e):n=e,!n)throw new Error("Component could not mount. Root node was not found.");return this._node?this.unmount():this.props.modules&&this.props.modules.analytics&&this.props.modules.analytics.send({containerWidth:n&&n.offsetWidth,component:((s=this.constructor)==null?void 0:s.analyticsType)??((o=this.constructor)==null?void 0:o.type),flavor:"components"}),this._node=n,this._component=this.render(),un(this._component,n),this}update(e){return this.props=this.formatProps({...this.props,...e}),this.sessionSetupError=this.props.core.sessionSetupError,this.session=this.props.core.session,this._component=this.render(),this._node&&un(this._component,this._node),this}remount(e){if(!this._node)throw new Error("Component is not mounted.");const n=e||this.render();return un(n,this._node,void 0),this}unmount(){return this._node&&un(null,this._node),this}remove(){this.unmount(),this._parentInstance&&this._parentInstance.remove(this)}}O(Mr,"type"),O(Mr,"analyticsType");const lI=Mr,uI=({name:t,loadingContext:e,imageFolder:n="",parentFolder:s="",extension:o,size:r="",subFolder:i=""})=>`${e}images/${n}${i}${s}${t}${r}.${o}`,dI=({loadingContext:t=mr,extension:e="svg",...n})=>s=>{const o={extension:e,loadingContext:t,imageFolder:"logos/",parentFolder:"",name:s,...n};return uI(o)},hI=dI;class mI extends lI{constructor(n){super(n);O(this,"componentRef");O(this,"elementRef");O(this,"onContactSupport");O(this,"componentToRender");O(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.componentRef=null,this.elementRef=this.props&&this.props.elementRef||this,this.componentToRender=null,this.sessionSetupError=this.props.core.sessionSetupError}get isValid(){return!!this.state.isValid}get icon(){var n;return hI({loadingContext:this.loadingContext})((n=this.constructor)==null?void 0:n.type)}get displayName(){var n;return this.props.name||((n=this.constructor)==null?void 0:n.type)}get accessibleName(){return this.displayName}get type(){return this.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,s){var o,r;return(o=this.componentRef)!=null&&o.setStatus?this.componentRef.setStatus(n,s):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){var n,s,o;return d(nI,{endpoints:((s=(n=this.session)==null?void 0:n.configuration)==null?void 0:s.endpoints)||z,token:((o=this.session)==null?void 0:o.token)??"",updateCore:this.props.core.update.bind(this.props.core),sessionSetupError:this.sessionSetupError,children:d(rI,{i18n:this.i18n,loadingContext:this.loadingContext,children:this.componentToRender&&d("div",{className:"adyen-pe-component",children:this.componentToRender()})})})}}const yc=mI,fI=()=>fc(dc),Jo=fI,gI=(()=>{let t,e;return n=>(n!==t&&(t=n,e=(s,o,r)=>ya({...s,headers:{...s.headers,Authorization:`Bearer ${t}`},method:o},r)),e)})();function II(){const{token:t,updateCore:e,isUpdatingToken:n}=Jo(),s=P(ot);return{httpProvider:M(()=>{let r=ot;const i=new Promise(c=>{r=c});s.current(i),s.current=r;const a=gI(t);return async(c,u,m)=>{try{return await(n?i:Promise.resolve()).then(()=>a({...c},u,m))}catch(h){throw h.type===pa.EXPIRED_TOKEN&&!n&&(await e(),r(t)),h}}},[t,e,n])}}const pI=()=>fc(Ic),X=pI,Hs=t=>{const{endpoints:e}=Jo(),{loadingContext:n}=X(),{httpProvider:s}=II();return N(async(...o)=>{const r=o[0],i=o[1]||z,a=e[t],c=i.path;let u=a.url;if(c){const m=Object.keys(c)[0];u=u.replace(`{${m}}`,c[m])}return s({loadingContext:n,path:u,...r,params:i.query&&nu(i.query)},a.method??"GET")},[t,e,s,n])};function Vo({fetchOptions:t={keepPrevData:!0},queryFn:e,params:n}){P(new Map);const s=P(!1),o={error:void 0,data:void 0,isFetching:t.enabled!==!1},r=(u,m)=>{switch(m.type){case"loading":return{...o,isFetching:!0,data:t.keepPrevData?u.data:void 0};case"fetched":return{...o,data:m.payload,isFetching:!1};case"error":return{...o,error:m.payload,isFetching:!1};default:return u}},[i,a]=Zo(r,o),c=N(async()=>{a({type:"loading"});try{if(s.current)return;const u=await e();a({type:"fetched",payload:u})}catch(u){if(s.current)return;a({type:"error",payload:u})}},[a,e]);return $(()=>(s.current=!1,t.enabled!==!1&&c(),()=>{s.current=!0}),[t.enabled,c]),i}const $t={sm:480,md:768,lg:1024},Et={up:{sm:`(min-width: ${$t.sm}px)`,md:`(min-width: ${$t.md}px)`,lg:`(min-width: ${$t.lg}px)`},down:{xs:`(max-width: ${$t.sm-1}px)`,sm:`(max-width: ${$t.md-1}px)`,md:`(max-width: ${$t.lg-1}px)`},only:{xs:`(max-width: ${$t.sm-1}px)`,sm:`(min-width: ${$t.sm}px) and (max-width: ${$t.md-1}px)`,md:`(min-width: ${$t.md}px) and (max-width: ${$t.lg-1}px)`,lg:`(min-width: ${$t.lg}px)`}},Ct=t=>{const e=M(()=>window.matchMedia(t),[t]),[n,s]=B(e.matches);return $(()=>{const o=r=>s(r.matches);return e.addEventListener("change",o),()=>e.removeEventListener("change",o)},[e]),$(()=>{s(e.matches)},[e]),n};var _t=(t=>(t.PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t.LINK="link",t))(_t||{});const yI=({...t})=>d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6569 4.07112C14.0474 3.6806 14.0474 3.04743 13.6569 2.65691C13.2664 2.26638 12.6332 2.26638 12.2427 2.65691L8.00005 6.89954L3.75745 2.65694C3.36692 2.26641 2.73376 2.26641 2.34324 2.65694C1.95271 3.04746 1.95271 3.68063 2.34324 4.07115L6.58584 8.31375L2.34319 12.5564C1.95266 12.9469 1.95266 13.5801 2.34319 13.9706C2.73371 14.3611 3.36688 14.3611 3.7574 13.9706L8.00005 9.72796L12.2427 13.9706C12.6333 14.3612 13.2664 14.3612 13.6569 13.9706C14.0475 13.5801 14.0475 12.947 13.6569 12.5564L9.41426 8.31375L13.6569 4.07112Z",fill:"#000"})}),_c=yI,_I=({...t})=>d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:d("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),TI=_I;var F=(t=>(t.CAPTION="caption",t.BODY="body",t.SUBTITLE="subtitle",t.TITLE="title",t))(F||{}),ue=(t=>(t.WIDE="wide",t.STRONGER="stronger",t.STRONGER_WIDE="stronger-wide",t.STRONGEST="strongest",t.STRONGEST_WIDE="strongest-wide",t.MEDIUM="m",t.LARGE="l",t.MOBILE="mobile",t))(ue||{}),Un=(t=>(t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.DIV="div",t.PARAGRAPH="p",t.SPAN="span",t))(Un||{});const bt="adyen-pe-typography";function Tc(t,e){for(var n in e)t[n]=e[n];return t}function Sr(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var s in e)if(s!=="__source"&&t[s]!==e[s])return!0;return!1}function bi(t){this.props=t}function mt(t,e){function n(o){var r=this.props.ref,i=r==o.ref;return!i&&r&&(r.call?r(null):r.current=null),e?!e(this.props,o)||!i:Sr(this.props,o)}function s(o){return this.shouldComponentUpdate=n,tn(t,o)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s.__f=!0,s}(bi.prototype=new _e).isPureReactComponent=!0,bi.prototype.shouldComponentUpdate=function(t,e){return Sr(this.props,t)||Sr(this.state,e)};var Oi=w.__b;w.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Oi&&Oi(t)};var MI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ce(t){function e(n){var s=Tc({},n);return delete s.ref,t(s,n.ref||null)}return e.$$typeof=MI,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var SI=w.__e;w.__e=function(t,e,n,s){if(t.then){for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}SI(t,e,n,s)};var xi=w.unmount;function Mc(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),t.__c.__H=null),(t=Tc({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(s){return Mc(s,e,n)})),t}function Sc(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(s){return Sc(s,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function qs(){this.__u=0,this.t=null,this.__b=null}function Lc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function LI(t){var e,n,s;function o(r){if(e||(e=t()).then(function(i){n=i.default||i},function(i){s=i}),s)throw s;if(!n)throw e;return tn(n,r)}return o.displayName="Lazy",o.__f=!0,o}function Qs(){this.u=null,this.o=null}w.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),xi&&xi(t)},(qs.prototype=new _e).__c=function(t,e){var n=e.__c,s=this;s.t==null&&(s.t=[]),s.t.push(n);var o=Lc(s.__v),r=!1,i=function(){r||(r=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--s.__u){if(s.state.__a){var u=s.state.__a;s.__v.__k[0]=Sc(u,u.__c.__P,u.__c.__O)}var m;for(s.setState({__a:s.__b=null});m=s.t.pop();)m.forceUpdate()}},c=e.__h===!0;s.__u++||c||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(i,i)},qs.prototype.componentWillUnmount=function(){this.t=[]},qs.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),s=this.__v.__k[0].__c;this.__v.__k[0]=Mc(this.__b,n,s.__O=s.__P)}this.__b=null}var o=e.__a&&tn(Y,null,t.fallback);return o&&(o.__h=null),[tn(Y,null,e.__a?null:t.children),o]};var Ri=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function NI(t){return this.getChildContext=function(){return t.context},t.children}function AI(t){var e=this,n=t.i;e.componentWillUnmount=function(){un(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(s){this.childNodes.push(s),e.i.appendChild(s)},insertBefore:function(s,o){this.childNodes.push(s),e.i.appendChild(s)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),e.i.removeChild(s)}}),un(tn(NI,{context:e.context},t.__v),e.l)}function Nc(t,e){var n=tn(AI,{__v:t,i:e});return n.containerInfo=e,n}(Qs.prototype=new _e).__a=function(t){var e=this,n=Lc(e.__v),s=e.o.get(t);return s[0]++,function(o){var r=function(){e.props.revealOrder?(s.push(o),Ri(e,t,s)):o()};n?n(r):r()}},Qs.prototype.render=function(t){this.u=null,this.o=new Map;var e=en(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Qs.prototype.componentDidUpdate=Qs.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Ri(t,n,e)})};var EI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,CI=/^(?: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]/,DI=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,vI=/[A-Z0-9]/g,bI=typeof document<"u",OI=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};_e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(_e.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var wi=w.event;function xI(){}function RI(){return this.cancelBubble}function wI(){return this.defaultPrevented}w.event=function(t){return wi&&(t=wi(t)),t.persist=xI,t.isPropagationStopped=RI,t.isDefaultPrevented=wI,t.nativeEvent=t};var jI={enumerable:!1,configurable:!0,get:function(){return this.class}},ji=w.vnode;w.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,s=e.type,o={};for(var r in n){var i=n[r];if(!(r==="value"&&"defaultValue"in n&&i==null||bI&&r==="children"&&s==="noscript"||r==="class"||r==="className")){var a=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&i===!0?i="":a==="ondoubleclick"?r="ondblclick":a!=="onchange"||s!=="input"&&s!=="textarea"||OI(n.type)?a==="onfocus"?r="onfocusin":a==="onblur"?r="onfocusout":DI.test(r)?r=a:s.indexOf("-")===-1&&CI.test(r)?r=r.replace(vI,"-$&").toLowerCase():i===null&&(i=void 0):a=r="oninput",a==="oninput"&&o[r=a]&&(r="oninputCapture"),o[r]=i}}s=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=en(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),s=="select"&&o.defaultValue!=null&&(o.value=en(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",jI)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=EI,ji&&ji(t)};var Pi=w.__r;w.__r=function(t){Pi&&Pi(t),t.__c};var ki=w.diffed;w.diffed=function(t){ki&&ki(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value)};function PI({el:t,className:e,stronger:n,strongest:s,variant:o,medium:r,large:i,wide:a,children:c}){const u=t||"p",m=M(()=>({[`${bt}--${F.CAPTION}`]:o===F.CAPTION,[`${bt}--${F.CAPTION}-${ue.WIDE}`]:o===F.CAPTION&&a,[`${bt}--${F.CAPTION}-${ue.STRONGER}`]:o===F.CAPTION&&n,[`${bt}--${F.BODY}`]:o===F.BODY,[`${bt}--${F.BODY}-${ue.WIDE}`]:o===F.BODY&&a,[`${bt}--${F.BODY}-${ue.STRONGER}`]:o===F.BODY&&n,[`${bt}--${F.BODY}-${ue.STRONGEST}`]:o===F.BODY&&s,[`${bt}--${F.SUBTITLE}`]:o===F.SUBTITLE,[`${bt}--${F.SUBTITLE}-${ue.STRONGER}`]:o===F.SUBTITLE&&n,[`${bt}--${F.TITLE}`]:o===F.TITLE&&!r&&!i,[`${bt}--${F.TITLE}-${ue.MEDIUM}`]:o===F.TITLE&&r,[`${bt}--${F.TITLE}-${ue.LARGE}`]:o===F.TITLE&&i}),[o,a,n,r,i,s]);return d(u,{className:U([`${bt}`,m,e]),children:c})}const Zt=mt(PI),Wi=/^\s+|\s+(?=\s|$)/g,pn=(t,e)=>(e?typeof e=="string"?e:(e==null?void 0:e.value)??"":"").replace(Wi,"")||t.replace(Wi,"")||void 0,ho=(t,e,n)=>U(pn("",n),pn(pn("",e)||"",t)),Xr=(t,e=[],n=[])=>U([...n,...e==null?void 0:e.map(s=>t?`${t}--${s}`:s)]),kI=(t,e,n,s,o)=>{const r=N(a=>{a.preventDefault(),s||o==null||o(a)},[s,o]);return{classes:M(()=>Xr(n,e,[n,t]),[e,t]),click:r}},Kr=kI,Te="adyen-pe-button",Lr=`${Te}-actions`,WI=`${Te}--icon`,$I=`${Te}--icon-content`,BI=`${Lr}__container-wrapper`,zI=`${Te}__label`,FI=`${Te}__icon-right`,UI=`${Te}__icon-left`;function HI({variant:t=_t.PRIMARY,disabled:e=!1,onClick:n,classNameModifiers:s=[],iconLeft:o,iconRight:r,type:i="button",children:a,className:c,iconButton:u=!1,...m},h){const g=M(()=>pn("",c)||"",[c]),f=M(()=>Hr(e),[e]),{classes:I,click:p}=Kr(g,[...s,t],Te,f,n);return d("button",{className:u?`${WI} ${I}`:I,type:i,disabled:e,onClick:p,ref:h,...m,children:u?d("div",{className:`${$I}`,children:a}):d(Y,{children:[o&&d("span",{className:UI,children:o}),d(Zt,{className:zI,el:Un.SPAN,variant:F.BODY,stronger:!0,children:a}),r&&d("span",{className:FI,children:r})]})})}const Jt=ce(HI);function GI(t){const{i18n:e}=X(),n=Ct(Et.down.xs),[s,o]=B(!n);return $(()=>{o(!n)},[n]),d(Y,{children:[n&&d("div",{className:"adyen-pe-filter-bar__header",children:[d(Zt,{variant:F.SUBTITLE,children:e.get("transactions")}),d(Jt,{className:"adyen-pe-filter-bar__header-icon",variant:_t.SECONDARY,iconButton:!0,onClick:()=>o(r=>!r),children:s?d(_c,{}):d(TI,{})})]}),s&&d("div",{"aria-label":e.get("filterBar"),className:U("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":n}),children:[t.children,t.canResetFilters&&!!t.resetFilters&&d(Jt,{variant:_t.TERTIARY,onClick:t.resetFilters,children:e.get("button.clearAll")})]})]})}var G=(t=>(t.BALANCE_ACCOUNT="balanceAccount",t.CATEGORIES="categories",t.CURRENCIES="currencies",t.STATUSES="statuses",t.CREATED_SINCE="createdSince",t.CREATED_UNTIL="createdUntil",t.MIN_AMOUNT="minAmount",t.MAX_AMOUNT="maxAmount",t))(G||{});function YI(t){return!(!t||!("nodeType"in t))}function ZI({title:t,children:e,classNameModifiers:n=[],isOpen:s,onClose:o,isDismissible:r=!0,headerWithBorder:i=!0,size:a="fluid",...c}){const u=P(null),{i18n:m}=X(),h=N(f=>{var I;r&&s&&YI(f.target)&&!((I=u==null?void 0:u.current)!=null&&I.contains(f.target))&&o()},[r,s,o]),g=N(f=>{f.key==="Escape"&&s&&r&&o()},[s,r,o]);return $(()=>(s?window.addEventListener("keydown",g):window.removeEventListener("keydown",g),()=>window.removeEventListener("keydown",g)),[s,g]),d(Y,{children:s&&d("div",{className:U("adyen-pe-modal-wrapper",n.map(f=>`adyen-pe-modal-wrapper--${f}`),{"adyen-pe-modal-wrapper--open":s,"adyen-pe-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,onClick:h,...c,children:d("div",{className:U("adyen-pe-modal",{"adyen-pe-modal--fluid":a==="fluid","adyen-pe-modal--small":a==="small","adyen-pe-modal--large":a==="large","adyen-pe-modal--extra-large":a==="extra-large","adyen-pe-modal--full-screen":a==="full-screen"}),ref:u,children:[d("div",{className:U("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":t,"adyen-pe-modal__header--with-border-bottom":i}),children:[t&&d("div",{className:"adyen-pe-modal__header__title",children:t}),r&&d(Jt,{onClick:o,variant:_t.TERTIARY,className:"adyen-pe-modal__header-icon","aria-label":m.get("dismiss"),children:d(_c,{})})]}),d("div",{className:"adyen-pe-modal__content",children:e})]})})})}const Qn=(()=>{let t=[];const e=i=>{const a=i.reduce((c,u)=>{const m=u instanceof Node?t.findIndex(h=>{const g=h.element.getAttribute("id"),f=u&&(u!=null&&u.getAttribute)?u==null?void 0:u.getAttribute("id"):null;return g===f}):-1;return c===-1&&m!==-1?m:c},-1);a===-1?o(0):a+1<=t.length-1&&o(a+1)},n=i=>{const a=t.findIndex(c=>c.element.getAttribute("id")===i.getAttribute("id"));a>=0&&t.splice(a,1)},s=(i,a)=>{t.findIndex(u=>u.element.getAttribute("id")===i.getAttribute("id"))>=0||t.push({element:i,callback:a})},o=i=>{var c,u;const a=t.length;for(let m=i;m<a;m++)(u=(c=t==null?void 0:t[m])==null?void 0:c.callback)==null||u.call(c);t.splice(i)};return{add:s,remove:n,closeAll:()=>{t.forEach(i=>{var a;return(a=i==null?void 0:i.callback)==null?void 0:a.call(i)}),t=[]},closePopoversOutsideOfClick:e}})();const JI=({inline:t=!1,size:e="large"})=>d("div",{className:`adyen-pe-spinner__wrapper ${t?"adyen-pe-spinner__wrapper--inline":""}`,children:d("div",{className:`adyen-pe-spinner adyen-pe-spinner--${e}`})}),VI=JI;function QI(t){return"callback"in t}function XI(t){const[e,n]=B(null),s=N(i=>{var a;return i&&QI(t[i.selection.type])?{callback:(a=t==null?void 0:t[i.selection.type])!=null&&a.callback?c=>{var u,m;return(m=(u=t[i.selection.type])==null?void 0:u.callback)==null?void 0:m.call(u,{showModal:()=>n(i),...c})}:()=>{var c;return((c=t[i.selection.type])==null?void 0:c.showDetails)&&n(i)}}:(n(i),{})},[t]),o=N(()=>n(null),[]),r=M(()=>{const i={};for(const a in t){const c=t[a];i[a]=!(c!=null&&c.showDetails)||!!c.callback}return i},[t]);return{selectedDetail:e,updateDetails:s,detailsToShow:r,resetDetails:o}}const Ac="adyen-pe-transactions-display",KI=Ac+"__spinner-container";var qr=(t=>(t.BUTTONS_END="buttons-end",t.FILL_CONTAINER="fill-container",t.SPACE_BETWEEN="space-between",t.VERTICAL_STACK="vertical-stack",t))(qr||{}),Ec=(t=>(t.BUTTONS_START="buttons-start",t))(Ec||{});const qI={...qr,...Ec};function tp({actions:t,layout:e=qI.BUTTONS_END}){const n=()=>`${Lr}--${e}`,s=r=>{const i=t.length-1;return r===i?_t.PRIMARY:_t.SECONDARY},o=M(()=>[...t].reverse(),[t]);return d("div",{className:Lr,children:d("div",{className:`${BI} ${n()}`,role:"group",children:o.map((r,i)=>d(Jt,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||s(i),onClick:r.event,children:r.title},i))})})}const ep=mt(tp),Ht="adyen-pe-popover",Cc="adyen-pe-tooltip",np=`${Ht}-container`,$i=`${Ht}__header`,sp=`${Ht}__header-title`,rr=`${Ht}__content`,Dc=`${Cc}__content`,op=`${Ht}__footer`;function rp({image:t=!0,onClick:e}){const{i18n:n}=X();return d(Y,{children:d(Jt,{className:(()=>t?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:_t.TERTIARY,onClick:e,"aria-label":n.get("closeIconLabel"),children:d("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[d("title",{children:"dismiss"}),d("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 ip=mt(rp);function ap({title:t,isImageTitle:e=!1}){return d(Zt,{strongest:!e,variant:(()=>e?F.SUBTITLE:F.BODY)(),children:t})}const cp=mt(ap);var yt=(t=>(t.TOOLTIP="tooltip",t.POPOVER="popover",t))(yt||{}),et=(t=>(t.TOP="top",t.TOP_LEFT="top-left",t.RIGHT="right",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.LEFT="left",t))(et||{}),is=(t=>(t.MEDIUM="medium",t.WIDE="wide",t))(is||{}),W=(t=>(t.ARROW_DOWN="ArrowDown",t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight",t.ARROW_UP="ArrowUp",t.BACKSPACE="Backspace",t.END="End",t.ENTER="Enter",t.ESCAPE="Escape",t.HOME="Home",t.PAGE_DOWN="PageDown",t.PAGE_UP="PageUp",t.SPACE="Space",t.TAB="Tab",t))(W||{});const as=Symbol("_ref");class vc extends Error{}class lp extends vc{}class up extends vc{}function ti(t){if(!tt(t))throw new up}const dp=t=>{try{if(tt(t)&&ye(t,"current")&&ye(t,as)&&!Yn(t,t[as])){const e=t.actions.get(z),n=t.actions.size;return e===void 0&&Number.isInteger(n)&&n>=0}}catch{}return!1},cs=t=>dp(t)?cs(t[as]):t,hp=(()=>{const t=(s,o)=>{const r=s.get(o);if(!r)throw new lp;return r},e=(s,o,r)=>{let i,a;const c=cs(o);try{i=t(s,c)}catch{ti(r)}if(i)[,a]=i;else{const u=tt(c),m=u?f=>{c(g=f)}:f=>{c.current=f,g=c.current},h=f=>{if(a.size===0)return;const I=g;if(m(f),!Yn(g,I))for(const[p]of a)p(g,I)};let g=u?null:c.current;s.set(c,i=[h,a=new Map]),Object.defineProperties(h,{[as]:{value:c},actions:{value:Q({get:{value:a.get.bind(a)},size:{get:()=>a.size}})},current:{get:()=>g,set:u?void 0:h}})}return r&&a.set(r,1+(a.get(r)||0)),i[0]},n=(s,o,r)=>{const i=cs(o),[,a]=t(s,i),c=a.get(r)||0;c===1?a.delete(r):c>1&&a.set(r,c-1),a.size===0&&s.delete(i)};return()=>{const s=new WeakMap;return Q({bind:nt(e.bind(void 0,s)),unbind:nt(n.bind(void 0,s))})}})(),ir=hp(),mp=t=>{ti(t);const e=new WeakMap([[t,1]]),n=o=>{if(Yn(s,o))return;const r=s;t(s=o,r)};let s=null;return Object.defineProperties(n,{[as]:{value:n},actions:{value:Q({get:{value:e.get.bind(e)},size:{value:1}})},current:{get:()=>s,set:n}})},fp=()=>{let t,e=null,n,s=!1;const o=c=>{t=void 0,e=null,n=c,s=!1},r=()=>{s||(i(),s=!0)},i=()=>{try{if(!e)return;ir.unbind(e,n)}catch{}};return Q({action:{get:()=>n},reflex:{get:()=>t},release:{value:r},update:{value:(c,u)=>{ti(c),s&&o(c);const m=u??null;if(n===c&&e===m){if(t)return}else if(e){if(Yn(cs(e),cs(m))){t=ir.bind(e,c),i(),n=c;return}i()}n=c,t=(e=m)?ir.bind(e,n):mp(n)}}})},gp=(t,e)=>{const n=P(fp());return mc(()=>n.current.release,[]),M(()=>(n.current.update(t,e),n.current.reflex),[t,e])},Me=gp;var bc=(t=>(t.POPOVER="POPOVER",t.DEFAULT="DEFAULT",t))(bc||{});const Bi=t=>{t.stopImmediatePropagation()},Oc=(t,e,n,s)=>{const o=P(null),r=N(a=>{const c=a.composedPath();if(o&&o.current){if(s==="POPOVER")Qn.closePopoversOutsideOfClick(c);else if(c.length){const u=c.some(m=>(m==null?void 0:m.isSameNode)&&m.isSameNode(o.current));e&&!u&&e(!0)}}},[o,e,s]),i=P(r);return $(()=>()=>{o.current&&Qn.remove(o.current),document.removeEventListener("click",i.current,!0)},[]),$(()=>(document.removeEventListener("click",i.current,!0),i.current=r,document.addEventListener("click",i.current,!0),s==="POPOVER"&&o.current instanceof Element&&Qn.add(o.current,e),()=>{o.current&&Qn.remove(o.current),document.removeEventListener("click",i.current,!0)}),[r,e,s]),$(()=>{n?document.removeEventListener("click",i.current,!0):document.addEventListener("click",i.current,!0)},[n]),Me(N((a,c)=>{c instanceof Element&&c.removeEventListener("focusout",Bi,!0),a instanceof Element&&(n||(a.addEventListener("focusout",Bi,!0),o.current=a))},[n,s]),t)},ei=`
|
|
2
|
+
a[href],
|
|
3
|
+
audio[controls],
|
|
4
|
+
video[controls],
|
|
5
|
+
button,
|
|
6
|
+
input,
|
|
7
|
+
select,
|
|
8
|
+
textarea,
|
|
9
|
+
[contenteditable],
|
|
10
|
+
[tabindex]
|
|
11
|
+
`.replace(/\s+/,""),Ip=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],zi=new Map,Fi=Function.prototype.call.bind(Array.prototype.some),xc=t=>t.tagName==="INPUT",pp=t=>xc(t)&&t.type==="radio",yp=t=>{const e=t.name,n=t.form,s=zi.get(n);let o=s==null?void 0:s.get(e);return o===void 0&&n&&(o=n.querySelector(`input[type=radio][name='${e}']:checked`)||null,zi.set(n,(s||new Map).set(e,o))),o===t},_p=(t,e)=>{for(const n of e)if(n.type!=="attributes"){if(Fi(n.addedNodes,s=>s instanceof Element&&Nr(s))||Fi(n.removedNodes,s=>t.includes(s)))return!0}else{if(Nr(n.target))return!0;if(t.includes(n.target))return!0}return!1},ni=(t=document.body,e)=>{if(t===void 0)return!1;if(e==null)return!!document.activeElement&&ni(t,document.activeElement);let n=e==null?void 0:e.parentNode;for(;n;){if(n===t)return!0;n=n==null?void 0:n.parentNode}return!1},si=t=>!(!t.matches(ei)||t!=null&&t.disabled||/^(true)?$/.test(t.getAttribute("inert"))||xc(t)&&t.hidden),Nr=t=>!(pp(t)&&!yp(t)||(t==null?void 0:t.tabIndex)<0||!si(t)),Tp=()=>{const t=new MutationObserver(a=>_p(e,a)&&r()),e=[];let n=-1,s=null;const o=a=>{var u;if(a<0)return;const c=Math.min(a,e.length-1);n!==c&&(n=c),(u=e[n])==null||u.focus()},r=()=>{e.length=0,s instanceof Element&&(s.querySelectorAll(ei).forEach(a=>Nr(a)&&e.push(a)),ni(s)&&(i.current=document.activeElement))},i=Object.create(null,{current:{get:()=>e[n]??null,set:a=>{if(a){if(!Gn(a))return o(e.indexOf(a));if(a===~~a)return o(zs(n+a,e.length))}}},root:{get:()=>s,set:a=>{a!==s&&(s&&t.disconnect(),s=a instanceof Element?a:null,e.length=0,s&&(t.observe(s,{attributeFilter:Ip,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:e}});return i},Mp=Tp,Sp=(t,e)=>{const n=P(!1),s=P(null),o=P(!1),r=M(Mp,[]),i=M(()=>{let m=null,h;return g=>{h!==void 0&&cancelAnimationFrame(h);let f=g.target;for(;f&&f!==g.currentTarget;){if(si(f)){m=f,h=requestAnimationFrame(()=>{h=requestAnimationFrame(()=>{var I;s.current!==m&&m instanceof HTMLElement&&((I=s.current=m)==null||I.focus()),m=null,h=void 0})});return}f=f.parentNode}}},[]),a=N(m=>{r.current=s.current=m.target},[]),c=N(m=>{r.tabbables.includes(m.relatedTarget)||ni(m.currentTarget,m.relatedTarget)||o.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&e(n.current=!1)}))},[]),u=M(()=>{let m;return h=>{switch(h.code){case W.ARROW_DOWN:case W.ARROW_LEFT:case W.ARROW_RIGHT:case W.ARROW_UP:case W.END:case W.ESCAPE:case W.HOME:case W.PAGE_DOWN:case W.PAGE_UP:case W.TAB:cancelAnimationFrame(m),m=requestAnimationFrame(()=>{m=requestAnimationFrame(()=>{o.current=!1,m=void 0})}),o.current=!0;break}h.code===W.TAB?(h.preventDefault(),r.current=h.shiftKey?-1:1):h.code===W.ESCAPE&&e(!0)}},[]);return Me(N((m,h)=>{h instanceof Element&&(h.removeEventListener("keydown",u,!0),h.removeEventListener("focusin",a,!0),h.removeEventListener("focusout",c,!0),m.removeEventListener("click",i,!0)),m instanceof Element?(m.addEventListener("keydown",u,!0),m.addEventListener("focusin",a,!0),m.addEventListener("focusout",c,!0),m.addEventListener("click",i,!0),n.current=!1,r.root=m):r.root=null},[]),t)},Lp=Sp,Np=(()=>{const t=new WeakMap,e=Q({remove:nt(function(){s(this.observerCallback)})}),n=o=>{let r=t.get(o);if(r===void 0){const i=new IntersectionObserver(a=>{a.forEach(c=>{o&&o(c)})},{root:null,rootMargin:"",threshold:[1]});r=Uo(e,{observerCallback:nt(o),observer:nt(i)}),t.set(o,r)}return r},s=o=>{const r=t.get(o);r==null||r.observer.disconnect(),t.delete(o)};return n})(),ar=Np,Ap=({popover:t,offset:e,targetElement:n,position:s,variant:o,fullWidth:r})=>{const i=n==null?void 0:n.current;let a=0,c=0;const u=i.getBoundingClientRect(),m=document.body.getBoundingClientRect(),h=t==null?void 0:t.firstChild,g=m.left+m.width/2-h.offsetWidth/2,f=u.left+u.width/2-h.offsetWidth/2,I=u.top+u.height/2-h.offsetHeight/2;switch(s){case et.BOTTOM:a=r?g:o===yt.TOOLTIP?f+window.scrollX:(u==null?void 0:u.left)+window.scrollX,c=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+e[1];break;case et.BOTTOM_LEFT:a=(u==null?void 0:u.right)+window.scrollX-t.clientWidth,c=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+e[1];break;case et.TOP:a=o===yt.TOOLTIP?f+window.scrollX:u.left+window.scrollX,c=(u==null?void 0:u.top)-(h==null?void 0:h.clientHeight)+window.scrollY-e[0];break;case et.RIGHT:a=u.left+u.width+window.scrollX+e[2],c=o===yt.TOOLTIP?I+window.scrollY:(u==null?void 0:u.top)-(u==null?void 0:u.height)/2+window.scrollY;break;case et.LEFT:a=(u==null?void 0:u.left)-(t==null?void 0:t.clientWidth)+window.scrollX-e[3],c=o===yt.TOOLTIP?I+window.scrollY:(u==null?void 0:u.top)+window.scrollY-(u==null?void 0:u.height)/2;break}const p=[a,c,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${p.reduce((S,D,T)=>T===0?S+`${D}px,`:T===p.length-1?S+` ${D}px)`:S+` ${D}px,`,"translate3d(")};visibility:hidden`},Ep=(t,e,n,s,o,r,i,a,c)=>{const[u,m]=B(!0),[h,g]=B(a?!a:!!s),[f,I]=B(s||et.TOP),[p,L]=B([]),S=N(T=>{if(T.intersectionRatio===1)return g(!0);if(!u&&T.intersectionRatio!==1){if(p&&p.length===(a?5:4)){const E=p.reduce((C,x)=>x[1]>C[1]?x:C,p[0]);I(E[0]),g(!0);return}switch(g(!1),f){case et.TOP:L(E=>[...E,[et.TOP,T.intersectionRatio]]),I(et.BOTTOM);break;case et.BOTTOM:L(E=>[...E,[et.BOTTOM,T.intersectionRatio]]),I(a?et.BOTTOM_LEFT:et.RIGHT);break;case et.BOTTOM_LEFT:L(E=>[...E,[et.BOTTOM,T.intersectionRatio]]),I(et.RIGHT);break;case et.RIGHT:L(E=>[...E,[et.RIGHT,T.intersectionRatio]]),I(et.LEFT);break;case et.LEFT:L(E=>[...E,[et.LEFT,T.intersectionRatio]]),I(et.TOP);break}}},[u,p,f,a]),D=P(S);return $(()=>{ar(D.current).remove(),D.current=S},[S]),Me(N((T,E)=>{var C,x;if(E&&(!s||a)&&ar(S).observer.unobserve(E),T&&e.current){if((!s||a)&&ar(S).observer.observe(T),!(T instanceof Element))return;const v=Ap({popover:T,offset:t,targetElement:e,position:f,variant:n,fullWidth:i??!1}),R=h?v+";visibility:visible":v,j=r?R+";min-width:fit-content;width:"+((C=e.current)==null?void 0:C.clientWidth)+"px":R;T.setAttribute("style",`${j}`),u&&m(!1),n&&n===yt.TOOLTIP&&o&&((x=o.current)==null||x.setAttribute("data-popover-placement",f))}},[t,e,f,s,n,S,h,u,r,o,i,a]),c)},Cp=Ep;let Ui=Date.now();const Dp=(t="field")=>(Ui+=1,`${t}-${Ui}`),vp=t=>{const e=P();return Me(N((n,s)=>{s instanceof Element&&s.id===e.current&&(s.id=""),n instanceof Element&&(n.id=e.current||(e.current=Dp("adyen-pe")))},[t]),t)},mo=vp;const bp=t=>{var s;let e;const n=(s=t.querySelector(`.${Dc}`))==null?void 0:s.querySelectorAll(ei);return n?(Array.prototype.some.call(n,o=>{if(si(o))return e=o}),e):null},Op=t=>t===yt.TOOLTIP?[10,3,5,5]:[15,15,15,15];function oi({actions:t,disableFocusTrap:e=!1,actionsLayout:n=qr.SPACE_BETWEEN,variant:s=yt.TOOLTIP,title:o,open:r,dismissible:i,modifiers:a,divider:c,fitContent:u,withoutSpace:m,containerSize:h,position:g,targetElement:f,setToTargetWidth:I,dismiss:p,children:L,withContentPadding:S,classNameModifiers:D,showOverlay:T=!1,fitPosition:E,...C}){const x=M(()=>tt(p)&&i!==!1,[p,i]),v=mo(),R=P(),j=N(At=>{var pt;p&&p(),At&&((pt=f==null?void 0:f.current)==null||pt.focus())},[p,f]),k=N(At=>{At.code===W.ESCAPE&&(p&&p(),(f==null?void 0:f.current).focus())},[p,f]),V=P(k),Z=P(),H=Oc(Cp(Op(s),f,s,g,v,I,T,E),p,s===yt.TOOLTIP&&!r,bc.POPOVER),K=Lp(e?null:H,j),Dt=Me(N(At=>{At instanceof Element&&(cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>{if(R.current===r||!(R.current=r))return;const pt=bp(At);pt==null||pt.focus()}))},[r]),e?H:K),Tt=mo(Dt),Nt=M(()=>({[`${Ht}--medium`]:h===is.MEDIUM,[`${Ht}--with-divider`]:!!c,[`${Ht}--wide`]:h===is.WIDE,[`${Ht}--fit-content`]:u,[`${Ht}--without-space`]:m,[`${Ht}--auto-width`]:T}),[h,c,m,u,T]);$(()=>(document.removeEventListener("keydown",V.current),document.addEventListener("keydown",V.current=k),()=>document.removeEventListener("keydown",V.current)),[k]);const vt=s===yt.TOOLTIP?Cc:`${Ht} ${np}`,Wt=s===yt.TOOLTIP?Dc:`${rr}`;return Nc(d(Y,{children:r?d(Y,{children:[T&&d("div",{className:"adyen-pe-popover__overlay"}),d("div",{id:"popover",ref:Tt,...C,className:U(vt,Nt,D),style:{visibility:"hidden"},role:C.role??(s===yt.POPOVER?"dialog":"tooltip"),children:[(o||x)&&d("div",{className:Xr($i,a,[$i]),children:[o&&d("div",{className:sp,children:d(cp,{title:o})}),x&&d(ip,{onClick:p})]}),L&&d(Y,{children:[d("div",{className:U(Wt,{[`${rr}--with-padding`]:S,[`${rr}--overlay`]:T}),children:L}),s===yt.TOOLTIP&&d("span",{"data-popover-placement":"hidden",ref:v,className:"adyen-pe-tooltip__arrow"})]}),t&&d("div",{className:op,children:d(ep,{actions:t,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const xp=()=>{const[t,e]=ie(),n=N(()=>e(!0),[e]),s=N(()=>e(!1),[e]),o=N(r=>{switch(r.code){case W.ESCAPE:s();break}},[s]);return{listeners:{onfocusoutCapture:s,onMouseLeave:s,onKeyDown:o,onFocus:n,onMouseEnter:n},isVisible:t}};const Rp=t=>typeof t=="string",ri=({content:t,children:e,triggerRef:n,showTooltip:s,position:o,isContainerHovered:r=!1})=>{var m,h,g;const i=mo(),a=Ct(Et.down.sm),{isVisible:c,listeners:u}=xp();return a?d(Y,{children:e}):d(Y,{children:[e?Qg(e,{...e==null?void 0:e.props,role:"button",tabIndex:-1,ref:i,className:(m=e==null?void 0:e.props)!=null&&m.className?U(`${(h=e==null?void 0:e.props)==null?void 0:h.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":r}):U("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":r}),...u,"aria-describedby":`tooltip-${(g=i.current)==null?void 0:g.id}`}):null,(c||s)&&d(oi,{variant:yt.TOOLTIP,targetElement:n??i,position:o,open:c||s,children:d(Y,{children:t&&Rp(t)?d(Zt,{variant:F.CAPTION,children:t}):{content:t}})})]})};function wp({value:t,isContainerHovered:e}){const{i18n:n}=X(),s=`tooltip.${t}`;return d(Y,{children:n.has(s)&&d(ri,{content:n.get(s),isContainerHovered:e,children:d("span",{children:t})})})}function Hi({children:t,...e}){return d("td",{role:"cell",className:"adyen-pe-data-grid__cell",...e,children:t})}const Rc=({columns:t,customCells:e,item:n,rowIndex:s})=>d(Y,{children:t.map(({key:o})=>e!=null&&e[o]?d(Hi,{"aria-labelledby":String(o),children:e[o]({key:o,value:n[o],item:n,rowIndex:s})},o):d(Hi,{"aria-labelledby":String(o),children:n[o]},o))}),jp=({data:t,columns:e,customCells:n,onRowHover:s})=>{const{i18n:o}=X();return d(Y,{children:t==null?void 0:t.map((r,i)=>d("tr",{className:"adyen-pe-data-grid__row",onMouseEnter:o.has(`tooltip.${r==null?void 0:r.category}`)?()=>s(i):ot,onFocus:o.has(`tooltip.${r==null?void 0:r.category}`)?()=>s(i):ot,onMouseLeave:o.has(`tooltip.${r==null?void 0:r.category}`)?()=>s():ot,onBlur:o.has(`tooltip.${r==null?void 0:r.category}`)?()=>s():ot,children:d(Rc,{columns:e,customCells:n,item:r,rowIndex:i})},r))})},Pp=({totalRows:t})=>{const[e,n]=Zo((i,a)=>{const c=t;if(c>1){const u=a.index;if(u<c&&u>=0)return a.type==="ACTIVE"?Object.freeze({...i,index:a.index??0,activeIndex:a.index}):Object.freeze({...i,index:a.index??0,activeIndex:-1})}return i},Fp),s=Me(N(i=>{var c;if(!(i instanceof Element))return;const a=Number((c=i.dataset)==null?void 0:c.index);e.activeIndex===-1&&a===0||a===e.index?i.setAttribute("tabindex","0"):i.setAttribute("tabindex","-1"),a===e.activeIndex&&(i==null||i.focus())},[e.activeIndex,e.index])),o=N(i=>{var c,u;if(!(((c=i.target)==null?void 0:c.localName)==="tr")){i.code===W.ARROW_LEFT&&n({type:"ACTIVE",index:e.index});return}switch(i.code){case W.ARROW_DOWN:case W.ARROW_UP:n({type:"ACTIVE",index:i.code===W.ARROW_DOWN?e.index+1:e.index-1});break;case W.HOME:n({type:"ACTIVE",index:0});break;case W.END:n({type:"ACTIVE",index:t-1});break;case W.ENTER:(u=i.currentTarget)==null||u.click();break;default:return}i.stopPropagation()},[t,e.index]),r=N(i=>a=>{var u;(!(((u=a.target)==null?void 0:u.localName)==="tr")||e.index===-1)&&n({type:"CURRENT",index:i})},[e.index]);return{listeners:{onKeyDownCapture:o,onFocusCapture:r},ref:s,activeIndex:e.activeIndex,currentIndex:e.index}},kp=({data:t,columns:e,onRowClick:n,customCells:s,onRowHover:o})=>{const r=N(m=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?m[n.retrievedField]:m),[n]),{i18n:i}=X(),{currentIndex:a,listeners:c,ref:u}=Pp({totalRows:(t==null?void 0:t.length)??0});return d(Y,{children:t==null?void 0:t.map((m,h)=>d("tr",{onMouseEnter:i.has(`tooltip.${m==null?void 0:m.category}`)?()=>o(h):ot,onFocus:i.has(`tooltip.${m==null?void 0:m.category}`)?()=>o(h):ot,onMouseLeave:i.has(`tooltip.${m==null?void 0:m.category}`)?()=>o():ot,onBlur:i.has(`tooltip.${m==null?void 0:m.category}`)?()=>o():ot,ref:u,"aria-selected":h===a,"data-index":h,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:r(m),onFocusCapture:c.onFocusCapture(h),onKeyDownCapture:c.onKeyDownCapture,children:d(Rc,{columns:e,customCells:s,item:m,rowIndex:h})},m))})};var fo=(t=>(t.CENTER="center",t.RIGHT="right",t))(fo||{});const Wp=({columnsNumber:t,loading:e,emptyMessageDisplay:n})=>{const s=Array.from({length:10},(r,i)=>i),o=Array.from({length:t},(r,i)=>i);return d(Y,{children:[s.map((r,i)=>d("tr",{className:"adyen-pe-data-grid__row",children:o.map((a,c)=>d("td",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:d("span",{className:U({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":e,"adyen-pe-data-grid__empty-cell":!e})})},`adyen-pe-data-grid-skeleton-cell-${c}`))},`adyen-pe-data-grid-skeleton-row-${i}`)),!e&&n&&n]})},$p=Wp;const Bp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04LjcgMi4xIDYuNmMuMi42LjguOCAxLjQuNy42LS4xIDEtLjcuOC0xLjJsLTEuMy02LjggMi45LTQuOC01LjktNS41LTcuNiA5IDUgNC43IDEgNi4yYzAgLjcuNyAxLjIgMS41IDFaIi8+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBkPSJNMzEuNyAxMDMuNmMuMy40IDEuMiA2LjYgMS41IDkgMCAuNS42IDEgMS4xIDFoLjNjLjcgMCAxLjItLjYgMS4xLTEuM2wtLjctOS4xIi8+CiAgICA8cGF0aCBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5l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aDMzLjJMNDguOSA0NWwtLjItMTQuMmg4LjdWMS40WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjMDAxMTJDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0iTTIuMyAxNjhoMjE5LjQiLz4KICAgIDxwYXRoIGZpbGw9IiMwMDExMkMiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",Gi={md:680,lg:1024},ls=({title:t,message:e,imageDesktop:n,imageMobile:s,withImage:o,centered:r,refreshComponent:i,onContactSupport:a,translationValues:c})=>{const{i18n:u}=X(),{updateCore:m}=Jo(),h=N(g=>Array.isArray(g)?g.map((f,I)=>I===0?d(Y,{children:[u.get(f),c&&c[f]&&d(Y,{children:c[f]})]}):d(Y,{children:[d("br",{}),u.get(f),c&&c[f]&&d(Y,{children:c[f]})]})):u.get(g),[u,c]);return d("div",{className:`adyen-pe-error-message-display ${r?"adyen-pe-error-message-display--centered":""}`,children:[(n||s||o)&&d("div",{className:"adyen-pe-error-message-display__illustration",children:d("picture",{children:[d("source",{type:"image/svg+xml",media:`(min-width: ${Gi.md}px)`,srcSet:n}),d("source",{type:"image/svg+xml",media:`(max-width: ${Gi.md}px)`,srcSet:s}),d("img",{srcSet:n??Bp,alt:u.get("thereWasAnUnexpectedError")})]})}),d(Zt,{variant:F.TITLE,children:u.get(t)}),e&&d(Zt,{variant:F.BODY,children:h(e)}),(a||i)&&d("div",{className:"adyen-pe-error-message-display__button",children:[a&&d(Jt,{onClick:a,children:u.get("reachOutToSupport")}),!a&&i&&d(Jt,{onClick:m,children:u.get("refresh")})]})]})},zp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xODkuMyAxMTMuN2MtMS0uMyAzNi4zIDI4LjYgNDcuNyAyNi40IDkuMy0xLjggMTQuMy01OSAxNC4zLTU5aC05LjlsLTEwLjggMzYuM3MtMzAuNC0yMi4zLTMxLjgtMjIuM2MtMS40IDAtOCAxOS4xLTkuNSAxOC42WiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Im0yMzAuMSAxMTYuNyAyIDMuMiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIGQ9Im0yNTkuOCA3NC42IDEwLT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gPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",Fp=Object.freeze({activeIndex:-1,index:-1});function go({errorDisplay:t,...e}){var i,a,c;const s=en(e.children).find(u=>(u==null?void 0:u.type)===wc),o=!e.loading&&((i=e.data)==null?void 0:i.length)===0&&!e.error,r=M(()=>!e.loading&&o||e.error,[o,e.error,e.loading]);return d("div",{className:U("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":e.condensed,"adyen-pe-data-grid--outline":e.outline,"adyen-pe-data-grid--scrollable":e.scrollable,"adyen-pe-data-grid--loading":e.loading,"adyen-pe-data-grid--empty":o||e.error}),children:d(Y,{children:[d("div",{className:"adyen-pe-data-grid__table-wrapper",children:[d("table",{className:"adyen-pe-data-grid__table",children:[d("thead",{className:"adyen-pe-data-grid__head",children:d("tr",{role:"rowheader",className:"adyen-pe-data-grid__row",children:e.columns.map(u=>d("th",{role:"columnheader",id:String(u.key),className:U("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":u.position===fo.RIGHT,"adyen-pe-data-grid__cell--center":u.position===fo.CENTER}),children:u.label},u.key))})}),d(Up,{...e,emptyBody:o})]}),r&&(e.error&&t?t():d(ls,{title:((a=e.emptyTableMessage)==null?void 0:a.title)??"thereAreNoResults",message:(c=e.emptyTableMessage)==null?void 0:c.message,imageDesktop:zp,centered:!0}))]}),s]})})}function Up(t){const e=M(()=>t.loading||t.emptyBody||t.error,[t.emptyBody,t.error,t.loading]);return d("tbody",{className:U("adyen-pe-data-grid__body"),children:e?d($p,{columnsNumber:t.columns.length,loading:t.loading}):t.onRowClick?d(kp,{onRowHover:t.onRowHover,data:t.data,columns:t.columns,onRowClick:t.onRowClick,customCells:t.customCells}):d(jp,{onRowHover:t.onRowHover,data:t.data,customCells:t.customCells,columns:t.columns})})}go.Footer=wc;function wc({children:t}){return d("div",{className:"adyen-pe-data-grid__footer",children:t})}go.defaultProps={condensed:!1,outline:!0,scrollable:!0};const Ar="-ariaError";var It=(t=>(t[t.NONE=0]="NONE",t[t.APPLY=1]="APPLY",t[t.CLEAR=2]="CLEAR",t))(It||{});const Hp=({applyDisabled:t,applyTitle:e,resetDisabled:n,resetTitle:s}=z)=>{const{i18n:o}=X(),[r,i]=B(It.NONE),[a,c]=B(r!==It.NONE),u=N(()=>i(It.APPLY),[i]),m=N(()=>i(It.CLEAR),[i]),h=N(()=>i(It.NONE),[i]),g=M(()=>({disabled:t===!0,event:u,title:(e==null?void 0:e.trim())||o.get("apply"),variant:_t.PRIMARY}),[o,u,t,e]),f=M(()=>({disabled:n===!0,event:m,title:(s==null?void 0:s.trim())||o.get("reset"),variant:_t.SECONDARY}),[o,m,n,s]),I=M(()=>[g,f],[g,f]);return $(()=>{switch(c(r!==It.NONE),r){case It.APPLY:case It.CLEAR:h();break}},[r,c,h]),{commitAction:r,commitActionButtons:I,committing:a,resetCommitAction:h}},jc=Hp;function Pc(t){const{backgroundUrl:e="",className:n="",classNameModifiers:s=[],src:o="",alt:r="",showOnError:i=!1}=t,[a,c]=B(!1),u=P(null),m=()=>{c(!0)},h=()=>{c(i)},g=U([n],"adyen-pe-image",{"adyen-pe-image--loaded":a},...s.map(f=>`adyen-pe-image--${f}`));return $(()=>{const f=e?new Image:u.current;f&&(f.src=e||o,f.onload=m),c(!!(f!=null&&f.complete))},[]),e?d("div",{style:{backgroundUrl:e},...t,className:g}):d("img",{...t,alt:r,ref:u,className:g,onError:h})}const Gp=t=>ce(t),Se=Gp,Yp=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("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"})]})),ii=Yp,Hn="adyen-pe-dropdown",Zp=Xr(Te,[_t.SECONDARY],[Te]),le=`${Hn}__button`,Jp=`${le}--active`,Vp=`${le}-collapse-indicator`,Qp=`${le}--has-selection`,Xp=`${le}-icon`,Kp=`${le}-multiselect-counter`,qp=`${le}--readonly`,ty=`${le}-text`,ey=`${le}--valid`,ny=`${le}--invalid`,Le=`${Hn}__element`,sy=`${Le}--active`,oy=`${Le}-checkbox`,ry=`${Le}-checkmark`,iy=`${Le}-content`,ay=`${Le}--disabled`,cy=`${Le}-icon`,ly=`${Le}--no-option`,kc=`${Hn}__list`,uy=`${kc}--active`,dy=`${Hn}--multiselect`,hy=({active:t,disabled:e,className:n,filterable:s,toggleButtonRef:o,...r})=>{const i=M(()=>s?U(Zp,n):n,[n,s]);return s?d("div",{...r,className:i,ref:o}):d(Jt,{...r,className:i,disabled:e,variant:_t.SECONDARY,ref:o})},my=t=>{var g;const{i18n:e}=X(),{active:n,filterable:s,multiSelect:o,placeholder:r,readonly:i,showList:a,withoutCollapseIndicator:c}=t,u=M(()=>(r==null?void 0:r.trim())||e.get("select.filter.placeholder"),[e,r]),m=M(()=>o===!0?void 0:n[0],[n,o]),h=M(()=>{var f;return((f=m==null?void 0:m.name)==null?void 0:f.trim())||u},[m,u]);return d(hy,{active:n,disabled:i,"aria-disabled":i,"aria-expanded":a,"aria-haspopup":"listbox",className:U(le,{[Jp]:a,[Qp]:!!n.length,[qp]:i,[ny]:t.isInvalid,[ey]:t.isValid}),filterable:s,onClick:i?void 0:t.toggleList,onKeyDown:i?void 0:t.onButtonKeyDown,role:s?"button":void 0,tabIndex:0,title:h,toggleButtonRef:t.toggleButtonRef,type:s?"":"button","aria-describedby":t.ariaDescribedBy,id:t.id??"",children:[a&&s?d("input",{"aria-autocomplete":"list","aria-controls":t.selectListId,"aria-expanded":a,"aria-owns":t.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:t.onInput,placeholder:u,ref:t.filterInputRef,role:"combobox",type:"text"}):d(Y,{children:[(m==null?void 0:m.icon)&&d(Pc,{className:Xp,src:m.icon,alt:m.name.trim()}),d("span",{className:ty,children:((g=m==null?void 0:m.selectedOptionName)==null?void 0:g.trim())||(m==null?void 0:m.name.trim())||u}),o&&t.appliedFilterNumber>0&&d("div",{className:Kp,children:d(Zt,{el:Un.SPAN,variant:F.BODY,stronger:!0,children:t.appliedFilterNumber})})]}),!c&&d("span",{className:Vp,children:d(ii,{role:"presentation"})})]})},fy=my,gy=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("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"})]})),Iy=gy,py=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("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"})]})),yy=py,_y=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[t&&d("title",{children:t}),d("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"})]})),Ty=_y,My=({iconClassName:t,item:e,multiSelect:n,selected:s})=>d(Y,{children:[n&&d("span",{className:oy,children:s?d(Iy,{role:"presentation"}):d(yy,{role:"presentation"})}),d("div",{className:iy,children:[e.icon&&d(Pc,{className:t,alt:e.name,src:e.icon}),d("span",{children:e.name})]}),!n&&d("span",{className:ry,children:s&&d(Ty,{role:"presentation"})})]}),Sy=({item:t,multiSelect:e,onKeyDown:n,onSelect:s,renderListItem:o,selected:r})=>{const i=!!t.disabled,a=t.disabled===!0||null,c=U(Le,{[sy]:r,[ay]:i});return d("li",{"aria-disabled":i,"aria-selected":r,className:c,"data-disabled":a,"data-value":t.id,onClick:s,onKeyDown:n,title:t.name,role:"option",tabIndex:-1,children:o({item:t,multiSelect:e,selected:r,iconClassName:cy})})},Ly=mt(Sy),Ny=Se(({active:t,commitActions:e,items:n,multiSelect:s,onKeyDown:o,onSelect:r,renderListItem:i,selectListId:a,showList:c,textFilter:u,toggleButtonRef:m,dismissPopover:h,setToTargetWidth:g,popoverClassNameModifiers:f,showOverlay:I,fitPosition:p},L)=>{const{i18n:S}=X(),D=Ct(Et.down.xs),T=n.filter(R=>!u||R.name.toLowerCase().includes(u)),E=U(kc,{[uy]:c}),C=U(Le,ly),x=M(()=>tt(i)?i:My,[i]),v=M(()=>s===!0,[s]);return c?d(oi,{classNameModifiers:f,actions:v?e:void 0,disableFocusTrap:!0,divider:!0,dismiss:h,dismissible:!1,open:c,setToTargetWidth:g,containerSize:is.MEDIUM,variant:yt.POPOVER,targetElement:m,withContentPadding:!1,position:et.BOTTOM,showOverlay:I&&D,fitPosition:p,children:d("ul",{className:E,id:a,ref:L,role:"listbox","aria-multiselectable":v,children:T.length?T.map(R=>d(Ly,{item:R,multiSelect:v,onKeyDown:o,onSelect:r,renderListItem:x,selected:t.includes(R)},R.id)):d("div",{className:C,children:S.get("select.noOptionsFound")})})}):null}),Ay=mt(Ny),Ey=({items:t,multiSelect:e,selected:n})=>{const s=N((c=Lt)=>{const u=Lt.concat(c??Lt).filter(Boolean),m=t.filter(g=>u.includes(g.id)),h=e?m:m.slice(0,1);return h.length?Object.freeze(h):Lt},[t,e]),[o,r]=B(s(n)),i=N((c=Lt)=>{const u=c.filter(m=>t.includes(m));r(u.length?Object.freeze(u):Lt)},[t,r]),a=N(c=>{r(u=>{const m=u.indexOf(c);if(m<0)return Object.freeze((e?u:Lt).concat(c));if(!e)return u;const h=[...u];return h.splice(m,1),h.length?Object.freeze(h):Lt})},[e,r]);return $(()=>r(s(n)),[s,n,r]),{resetSelection:i,select:a,selection:o}},Cy=Ey;const Dy=({className:t,classNameModifiers:e=Lt,popoverClassNameModifiers:n,items:s=Lt,filterable:o=!1,multiSelect:r=!1,readonly:i=!1,onChange:a=ot,selected:c,name:u,isInvalid:m,isValid:h,placeholder:g,uniqueId:f,renderListItem:I,isCollatingErrors:p,setToTargetWidth:L,withoutCollapseIndicator:S=!1,showOverlay:D=!1,fitPosition:T})=>{const{resetSelection:E,select:C,selection:x}=Cy({items:s,multiSelect:r,selected:c}),[v,R]=B(!1),[j,k]=B(""),V=P(null),Z=P(null),H=P(null),K=P(`select-${pc()}`),[Dt,Tt]=B(0),Nt=P(),vt=P(!0),Wt=P(!1),At=P(x),pt=P(x),on=N(()=>{k(""),R(!1),v&&(E(At.current),vt.current=!0)},[E,R,k,v]),qt=M(()=>U([Hn,{[dy]:r===!0},...e.map(J=>`${Hn}--${J}`),t]),[t,e,r]),{commitAction:te,commitActionButtons:ee,committing:ht,resetCommitAction:Ys}=jc({resetDisabled:!x.length}),ne=N(()=>{var J;k(""),R(!1),Ys(),vt.current?vt.current=!1:(J=H.current)==null||J.focus()},[Ys,R,k]),Zs=N(()=>{At.current=x;const J=`${x.map(({id:it})=>it)}`;a({target:{value:J,name:u}})},[u,a,x]);$(()=>{switch(te){case It.APPLY:Zs();break;case It.CLEAR:E(),Wt.current=!0;break}},[te,Zs,E]);const Zn=N(J=>{var at;J.preventDefault();const it=J.currentTarget&&((at=Z==null?void 0:Z.current)!=null&&at.contains(J.currentTarget))?J.currentTarget:null;if(it&&!it.getAttribute("data-disabled")){const zl=it.getAttribute("data-value"),Fl=s.find(Ul=>Ul.id===zl);C(Fl)}},[s,C]);$(()=>{pt.current!==x&&(pt.current=x,(!r||Wt.current)&&(Zs(),ne())),Wt.current=!1},[ne,Zs,r,x]),$(()=>{ht&&(Tt(x.length),ne())},[ht,ne,Tt,x.length]);const kl=N(J=>{switch(J.code){case W.ESCAPE:case W.TAB:v&&ne(),vt.current=J.key===W.TAB;return;case W.ENTER:case W.SPACE:if(o&&v){if(J.key===W.ENTER)if(j)Zn(J);else break;return}break;case W.ARROW_DOWN:case W.ARROW_UP:break;default:return}J.preventDefault(),R(!0)},[ne,o,Zn,v,R,j]);$(()=>{v&&(cancelAnimationFrame(Nt.current),Nt.current=requestAnimationFrame(()=>{var J;t:{let it=(J=Z.current)==null?void 0:J.firstElementChild,at;for(;it;){if(!(it.dataset.disabled&&it.dataset.disabled==="true")){if(it.getAttribute("aria-selected")==="true"){it.focus();break t}at=at||it}it=it.nextElementSibling}at&&at.focus()}}))},[v]);const Wl=N(J=>{const it=J.target;switch(J.code){case W.ESCAPE:J.preventDefault(),ne();break;case W.ENTER:case W.SPACE:Zn(J);break;case W.ARROW_DOWN:{J.preventDefault();let at=it.nextElementSibling;for(;at;){if(!(at.dataset.disabled&&at.dataset.disabled==="true")){at.focus();break}at=at.nextElementSibling}break}case W.ARROW_UP:{J.preventDefault();t:{let at=it.previousElementSibling;for(;at;){if(!(at.dataset.disabled&&at.dataset.disabled==="true")){at.focus();break t}at=at.previousElementSibling}o&&V.current&&V.current.focus()}break}case W.TAB:ne();break}},[ne,o,Zn]),$l=N(J=>{const it=J.target.value;k(it.toLowerCase())},[k]),Bl=N(J=>{J.preventDefault(),R(it=>!it),v&&E(At.current)},[R,v,E]);return $(()=>{var J;v&&o&&((J=V.current)==null||J.focus())},[o,v]),d("div",{className:qt,children:[d(fy,{id:f??void 0,appliedFilterNumber:Dt,active:x,filterInputRef:V,filterable:o,isInvalid:m,isValid:h,onButtonKeyDown:kl,onInput:$l,multiSelect:r,placeholder:g,readonly:i,selectListId:K.current,showList:v,toggleButtonRef:H,toggleList:Bl,withoutCollapseIndicator:S,ariaDescribedBy:!p&&f?`${f}${Ar}`:""}),d(Ay,{popoverClassNameModifiers:n,setToTargetWidth:L,dismissPopover:on,active:x,commitActions:ee,items:s,multiSelect:r,onKeyDown:Wl,onSelect:Zn,selectListId:K.current,ref:Z,toggleButtonRef:H,renderListItem:I,showList:v,showOverlay:D,textFilter:j,fitPosition:T})]})},Qo=Dy,vy=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&d("title",{children:t}),d("path",{d:"M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",fill:e.disabled?"#8D95A3":"#00112C"})]})),by=vy,Oy=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&d("title",{children:t}),d("path",{d:"M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",fill:e.disabled?"#8D95A3":"#00112C"})]})),xy=Oy;function Ry({next:t,hasNext:e,hasPrev:n,page:s,prev:o,limit:r,limitOptions:i,onLimitSelection:a}){const{i18n:c}=X(),u=M(()=>i&&Object.freeze(i.map(h=>({id:`${h}`,name:`${h}`}))),[i]),m=N(({target:h})=>{(h==null?void 0:h.value)!=null&&(a==null||a(+h.value))},[a]);return d("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-pe-pagination ${U({})}`,children:[d("div",{className:"adyen-pe-pagination__context",children:[d("span",{children:[c.get("pagination.page")," ",s]}),u&&a&&d("div",{className:"adyen-pe-pagination__limit-selector",children:d(Qo,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:u,onChange:m,selected:`${r??""}`})})]}),d("div",{className:"adyen-pe-pagination__controls",children:[d(Jt,{"aria-label":c.get("pagination.previousPage"),variant:_t.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Lt:"disabled"),onClick:o,children:d(by,{disabled:!n})}),d(Jt,{"aria-label":c.get("pagination.nextPage"),variant:_t.TERTIARY,disabled:!e,iconButton:!0,classNameModifiers:["circle"].concat(e?Lt:"disabled"),onClick:t,children:d(xy,{disabled:!e})})]})]})}const wy={id:"paymentId",transactionType:"transactionType",creationDate:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",fee:"txType.Fee",capture:"txType.capture",leftover:"txType.leftover",manualCorrection:"txType.manualCorrection",internalTransfer:"txType.internalTransfer",balanceAdjustment:"txType.balanceAdjustment",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency"},jy=t=>wy[t]||t,Py=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function Wc(t,e){return t.lastFourDigits?e==="detail"?"•••• •••• •••• "+t.lastFourDigits:t.lastFourDigits:Py[t.type]||t.type}var Gt=(t=>(t.DEFAULT="default",t.WARNING="warning",t.ERROR="error",t.SUCCESS="success",t.WHITE="white",t))(Gt||{});const Er=mt(({variant:t=Gt.DEFAULT,label:e})=>d("div",{className:U("adyen-pe-tag",{"adyen-pe-tag--success":t===Gt.SUCCESS,"adyen-pe-tag--default":t===Gt.DEFAULT,"adyen-pe-tag--warning":t===Gt.WARNING,"adyen-pe-tag--error":t===Gt.ERROR,"adyen-pe-tag--white":t===Gt.WHITE}),children:e})),ky="https://cdf6519016.cdn.adyen.com/checkoutshopper/",Wy=({name:t,resourceContext:e,imageFolder:n="logos/",parentFolder:s="",extension:o="svg",size:r="",subFolder:i=""})=>{const a=`/images/${n}/${i}/${s}/${t}${r}.${o}`.replace(/\/+/g,"/");return`${e}${a}`},$y=({options:t=z,name:e})=>{const{loadingContext:n}=X();return M(()=>Wy({resourceContext:ky,name:e,...t}),[n,e,t])},$c=({folder:t="components/",className:e,alt:n,name:s,extension:o})=>{const r=$y({options:M(()=>({imageFolder:t,extension:o}),[o,t]),name:s});return d("img",{className:U("adyen-pe__image",e),alt:n,src:r})},By=({...t})=>d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:d("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),zy=By;const Fy=({text:t})=>{const[e,n]=B(t),s=N(async()=>{if(t)try{await navigator.clipboard.writeText(t),n("Copied")}catch(r){console.log(r)}},[t]),o=N(()=>{n(t)},[n,t]);return d(ri,{content:e,children:d(Jt,{variant:_t.TERTIARY,className:"adyen-pe-copy-text",onClick:s,onBlur:o,onMouseLeaveCapture:o,children:[d("span",{className:"adyen-pe-copy-text__information",children:t}),d(zy,{fill:"#0070f5"})]})})},Yi=Fy,Zi={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},Bc=(t,e)=>{if(!t)return Zi;switch(t.errorCode){case void 0:return{title:"somethingWentWrong",message:["weCouldNotLoadYourTransactions","tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":return{title:"somethingWentWrong",message:e?["weCouldNotLoadYourTransactions","theErrorCodeIs"]:["weCouldNotLoadYourTransactions","contactSupportForHelpAndShareErrorCode"],onContactSupport:e,translationValues:e?{theErrorCodeIs:t!=null&&t.requestId?d(Yi,{text:t.requestId}):null}:{contactSupportForHelpAndShareErrorCode:t.requestId?d(Yi,{text:t.requestId}):null}};case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:e};case"00_403":default:return Zi}},Uy=({error:t,onContactSupport:e})=>{const{title:n,message:s,refreshComponent:o,translationValues:r,onContactSupport:i}=Bc(t,e);return d(ls,{title:n,message:s,translationValues:r,withImage:!0,centered:!0,refreshComponent:o,onContactSupport:i})},Hy=Uy,Gs="adyen-pe-transactions-table",Gy=Gs+"__amount",Yy=Gs+"__payment-method",Zy=Gs+"__payment-method-logo-container",Jy=Gs+"__payment-method-logo";const Vy=["creationDate","paymentMethod","transactionType","amount"],Qy=({availableCurrencies:t,error:e,hasMultipleCurrencies:n,loading:s,onContactSupport:o,onRowClick:r,onTransactionSelected:i,showDetails:a,showPagination:c,transactions:u,...m})=>{const{i18n:h}=X(),[g,f]=B(),I=Ct(Et.down.sm),p=M(()=>Vy.map(T=>{const E=h.get(jy(T));return T==="amount"?{key:T,label:n?E:`${E} ${t&&t[0]?`(${gu(t[0])})`:""}`,position:T==="amount"?fo.RIGHT:void 0}:{key:T,label:E}}).filter(T=>!(I&&["status","type"].includes(T.key))),[t,n,h,I]),L={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},S=N(T=>{f(T??void 0)},[f]),D=M(()=>()=>d(Hy,{error:e,onContactSupport:o}),[e,o]);return d("div",{className:Gs,children:d(go,{errorDisplay:D,error:e,columns:p,data:u,loading:s,outline:!1,onRowClick:{callback:r},onRowHover:S,emptyTableMessage:L,customCells:{transactionType:({item:T,rowIndex:E})=>{const C=`tooltip.${T.category}`;return T.category?h.has(C)?d(wp,{value:T.category,isContainerHovered:E===g}):d("span",{children:T.category}):null},creationDate:({value:T})=>h.fullDate(T),amount:({value:T})=>{const E=h.amount(T.value,T.currency,{hideCurrency:!n});return d("span",{className:Gy,children:E})},paymentMethod:({item:T})=>{var E;return d(Y,{children:T.paymentMethod||T.bankAccount?d("div",{className:Yy,children:[d("div",{className:Zy,children:d($c,{name:T.paymentMethod?T.paymentMethod.type:"bankTransfer",alt:T.paymentMethod?T.paymentMethod.type:"bankTransfer",folder:"logos/",className:Jy})}),T.paymentMethod?Wc(T.paymentMethod):(E=T.bankAccount)==null?void 0:E.accountNumberLastFourDigits]}):d(Er,{label:h.get("noData"),variant:Gt.WHITE})})}},children:c&&d(go.Footer,{children:d(Ry,{...m})})})})},Xy=LI(()=>Promise.resolve().then(()=>require("./ModalContent-88fdb6f4.js"))),Ky=({availableCurrencies:t,balanceAccountDescription:e,error:n,loading:s,onContactSupport:o,onTransactionSelected:r,showDetails:i,showPagination:a,transactions:c,...u})=>{const{i18n:m}=X(),h=!!t&&t.length>1,g=M(()=>({showDetails:i??!0,callback:r}),[i,r]),f=M(()=>({transaction:g}),[g]),{updateDetails:I,resetDetails:p,selectedDetail:L}=XI(f),S=N(T=>{I({selection:{type:"transaction",data:{...T,balanceAccountDescription:e}},modalSize:"small"}).callback({id:T.id})},[I,e]),D=!!L;return $(()=>{D&&Qn.closeAll()},[D]),d("div",{className:Ac,children:[d(Qy,{availableCurrencies:t,error:n,hasMultipleCurrencies:h,loading:s,onContactSupport:o,onRowClick:S,onTransactionSelected:r,showPagination:a,transactions:c,...u}),d(ZI,{title:L!=null&&L.title?m.get(L.title):void 0,isOpen:!!L,"aria-label":m.get("transactionDetails"),onClose:p,isDismissible:!0,headerWithBorder:!1,size:(L==null?void 0:L.modalSize)??"large",children:L&&d(qs,{fallback:d("span",{className:KI,children:d(VI,{size:"medium"})}),children:d(Xy,{data:L.selection.data})})})]})},qy=Object.freeze([10,20]),t_=100,Cr=10,Dr=t=>{const e=~~t;return e===t&&e>0?Math.min(e,t_):Math.max(e,0)},e_=(t,e)=>{const n=t.length-1;if(n<0)return e;if(e<=t[0])return t[0];if(e>=t[n])return t[n];let s=0,o=0,r=n;for(;;){const i=t[s=La(o,r)];if(o>r||e===i)return i;e>i?o=s+1:r=s-1}},n_=({preferredLimit:t=Cr,preferredLimitOptions:e})=>{const n=P(),s=P(),o=M(()=>{try{const i=new Set;for(const a of e){const c=Dr(a);c>0&&i.add(c)}return Object.freeze([...i].sort((a,c)=>a-c))}catch{}},[e]);return{limit:M(()=>{let i=Dr(t)||Cr;t:try{if(n.current===o)break t;const a=new Set(n.current=o);if(a.size===0){n.current=void 0;break t}if(s.current!==i)e:{if(a.size===a.add(i).size)break e;if(a.delete(i),a.size===a.add(s.current).size){if(Gn(s.current)){i=s.current;break e}}else a.delete(s.current);i=e_(n.current,i)}}catch{}return s.current=i},[o,t]),limitOptions:o}},s_=n_,o_=t=>{const e=P(!1),n=M(()=>t,[t]);return $(()=>(e.current=!0,()=>{e.current=!1,n&&n()}),[n]),e},ai=o_,r_=(t,e,n)=>{const s=P(),o=P(),r=P(),i=P(),a=ai(N(()=>{var k;(k=s.current)==null||k.abort(),s.current=void 0},[])),[c,u]=B(i.current),[m,h]=ie(!1),g=M(()=>Dr(n),[n]),{getPageCount:f,getPageParams:I,resetPageCount:p,updatePagination:L}=t,S=M(()=>e?k=>{var K;if(!(g&&Number.isInteger(k)))return;const V=f(),Z=k<0?k+V+1:k;Z>0&&(V?Z<=V:Z===1)&&((K=s.current)==null||K.abort(),s.current=new AbortController,a.current&&(((i.current=Z)>1||V)&&u(i.current),(async()=>{const{signal:Dt}=s.current,Tt={...I(Z,g),limit:g,page:Z};try{const Nt=await e(Tt,Dt);if(!Nt||!a.current)return;const{size:vt,...Wt}=Nt;L(Z,g,Wt),o.current=i.current&&Math.max(i.current,o.current||-1/0),i.current&&i.current===o.current&&(r.current=vt),i.current===1&&vt>0&&u(i.current),i.current=void 0,h(!0)}catch(Nt){if(Dt.aborted)return;console.error(Nt)}})()))}:ot,[g,e]),D=N(()=>{c&&S(Math.min(c+1,f()))},[S,c]),T=N(()=>{c&&S(Math.max(c-1,1))},[S,c]),E=M(()=>f()||c||void 0,[S,m]),C=M(()=>!!(c&&E)&&c<E,[c,E]),x=M(()=>!!c&&c>1,[c]),v=M(()=>o.current?(o.current-1)*g+(r.current||0):0,[S,m]),R=M(()=>g&&Math.min(g,v||1/0)%g,[g,v]),j=N(()=>{p(),o.current=r.current=i.current=void 0,a.current&&u(i.current)},[p]);return $(()=>{a.current&&m&&h(!1)},[m]),{goto:S,hasNext:C,hasPrev:x,limit:g,next:D,page:c,pages:E,pageSize:R,prev:T,resetPagination:j,size:v}},zc=r_,i_=t=>be(t.next),a_=t=>be(t.prev),c_=(t,e)=>{const n=M(()=>{const s=[],o=()=>s.length,r=()=>{s.length=0},i=u=>({cursor:s[u-1]}),a=(u,m)=>{const h=s[m-1];(m===1||m===(s.length||1)+1)&&h===void 0&&(s[m-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:o,getPageParams:i,resetPageCount:r,updatePagination:(u,m,h)=>{i_(h)&&a(h.next,u+1),a_(h)&&a(h.prev,u-1)}}},[]);return zc(n,t,e)},l_=c_,u_=t=>t.next,d_=(t,e)=>{const n=M(()=>{let s=0;return{getPageCount:()=>s,getPageParams:(c,u)=>({offset:(c-1)*u}),resetPageCount:()=>{s=0},updatePagination:(c,u,m)=>{u_(m)&&m.next&&(s=Math.max(s,c+1))}}},[]);return zc(n,t,e)},h_=d_,m_=(t=z,e=!0)=>{const n=P(e),s=P(Object.freeze({...t})),o=P(new Set(Object.keys(s.current))),r=P(new Set),i=ai(),[a,c]=M(()=>{const g=f=>{i.current&&m(f)};return[()=>g("reset"),f=>g(f)]},[i]),[u,m]=Zo((g,f)=>{if(f==="reset")return r.current.clear(),s.current;const I={...f},p=[0];Object.keys(I).forEach((S,D)=>{if(!o.current.has(S))return;const T=g[S]??void 0,E=s.current[S]??void 0,C=I[S]??E;if(C===T)return;const x=Math.floor(D/32),v=1<<D%32;I[S]=C,p[x]|=v,r.current[C===E?"delete":"add"](S)});const L=p.some(S=>S)?n.current&&r.current.size===0?s.current:Object.freeze({...g,...I}):g;return n.current||(s.current=L,n.current=!0),L},s.current),h=M(()=>!!r.current.size,[]);return $(()=>{s.current=Object.freeze({...t}),o.current=new Set(Object.keys(s.current)),n.current=e,a()},[e,t,a]),{canResetState:h,defaultState:s.current,resetState:a,state:u,updateState:c}},f_=m_,g_=(t=z,e)=>{const{canResetState:n,defaultState:s,resetState:o,state:r,updateState:i}=f_(t,e);return{canResetFilters:n,defaultFilters:s,filters:r,resetFilters:o,updateFilters:i}},I_=g_;var us=(t=>(t.NEXT="next",t.PREV="prev",t))(us||{}),ci=(t=>(t.CURSOR="cursor",t.OFFSET="offset",t))(ci||{});const p_=[us.NEXT,us.PREV],y_=["hasNext","hasPrevious"],Fc=t=>{const e=Object.getOwnPropertyNames(t);return!y_.some(n=>e.includes(n))},__=(t,e="data")=>{const n=t[e];if(Fc(t)){const s=Object.fromEntries(Object.entries(t||z).filter(([o,r])=>p_.includes(o)&&r));return{records:n,paginationData:s}}throw new TypeError("MALFORMED_PAGINATED_DATA")},T_=(t,e="data")=>{const n=t[e];if(!Fc(t)){const{hasNext:s,hasPrevious:o}=t,r={[us.NEXT]:s===!0,[us.PREV]:o===!0};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},M_=({dataField:t="data",fetchRecords:e,filterParams:n=z,initialFiltersSameAsDefault:s=!0,initialize:o,onFiltersChanged:r,onLimitChanged:i,pagination:a,preferredLimit:c,preferredLimitOptions:u,enabled:m})=>{const[h,g]=B([]),[f,I]=ie(!0),[p,L]=B(),[S,D]=B(c),T=ai(),E=P(!0),C=P(1),x=I_(n,s),{limit:v,limitOptions:R}=s_({preferredLimit:S,preferredLimitOptions:u}),{defaultFilters:j,filters:k,updateFilters:V,...Z}=x,[H,K]=M(()=>a===ci.CURSOR?[__,l_]:[T_,h_],[]),Dt=N(pt=>D(pt),[]),{goto:Tt,page:Nt,pages:vt,resetPagination:Wt,...At}=K(N(async({page:pt,...on},qt)=>{try{if(L(void 0),C.current=pt,!T.current||I(!0))return;const te=await e({...on,...k},qt),{records:ee,paginationData:ht}=H(te,t);return E.current&&(o==null||o([ee,ht],x),E.current=!1),T.current&&(g(ee),I(!1)),{...ht,size:ee==null?void 0:ee.length}}catch(te){if(qt!=null&&qt.aborted)return;I(!1),L(te),console.error(te)}},[e,k,v]),v);return M(()=>{E.current=!0},[n]),M(()=>{Wt(),C.current=1},[k,v,Wt]),$(()=>{m&&Tt(C.current)},[Tt,m]),$(()=>{r==null||r(k)},[k]),$(()=>{i==null||i(v)},[v]),{error:p,fetching:f,filters:k,goto:Tt,limitOptions:R,page:Nt,pages:vt,records:h,updateFilters:V,updateLimit:Dt,...Z,...At}},S_=M_,L_=t=>S_({...t,pagination:ci.CURSOR}),N_=L_,A_=(()=>{let t=null,e;const n=(i,a,c)=>{const u=document.timeline.currentTime??performance.now(),m=g=>{const f=g-u,I=Math.round(f/i)*i,L=u+I+i-performance.now();setTimeout(()=>requestAnimationFrame(h),L)},h=g=>{a.aborted||(m(g),c())};m(u)},s=()=>{t=Date.now(),r.notify()},o=()=>t??Date.now(),r=Ke({timestamp:o});return r.callback.resume=()=>{e=new AbortController,t=Date.now(),n(1e3,e.signal,s)},r.callback.idle=()=>{e.abort(),t=null},Q({timestamp:{get:o},watch:{value:r.watch}})})(),Xn=A_,E_=(()=>{const t=new Map,e=Ho(),n=(s=Xn.timestamp)=>{const o=new Date(s),r=new Date(Aa(e,s)),i=o.getDate()-r.getDate();if(i){const u=i>1?-1:i<-1?1:i;o.setDate(o.getDate()-u)}const a=ao(e,o.setHours(0,0,0,0)),c=ao(e,o.setDate(o.getDate()+1));return[a,c-a]};return s=>{e.tz=s;const o=e.tz.current;return t.get(o)??(()=>{let r=null,i=null,a=null;const c=()=>(e.tz=o,r??n()[0]),u=(g=Xn.timestamp)=>{e.tz=o,[r,i]=n(g)},m=Ke({timestamp:c});m.callback.resume=()=>{a=Xn.watch(g=>{if(g!==Ke.UNWATCH){if(r===null||i===null)return u();Xn.timestamp-r<i||(u(),m.notify())}})},m.callback.idle=()=>{a==null||a(),r=i=a=null};const h=Q({timestamp:{get:c},timezone:{value:o},watch:{value:m.watch}});return t.set(o,h),h})()}})(),Uc=E_,{getTimezoneTime:C_,getUsedTimezone:D_}=(()=>{const t=/(\d{2}):(\d{2})(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,e=/^GMT|0(?=\d:00)|:00/g,n=Ho();return{getTimezoneTime:(r,i=Date.now())=>{n.tz=r;const{formatted:a}=n(i),[c="",,,u=""]=(a==null?void 0:a.match(t))??Lt,m=gr(a),h=`${c}${u&&` ${u}`}`,g=lm(m).replace(e,"");return[h,g]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),v_=({timezone:t,withClock:e=!1}=z)=>{const n=M(()=>e===!0,[e]),s=M(()=>D_(t),[t]),o=P(ot),[r,i]=B(Date.now()),[a,c]=M(()=>C_(s,r),[r,s]);return M(()=>{o.current(),o.current=n?Xn.watch(u=>{typeof u!="symbol"&&i(u.timestamp)}):ot},[i,n]),{clockTime:a,GMTOffset:c,timestamp:r,timezone:s}},b_=v_,Ji=t=>Sa(t).slice(8,-1)==="Object"?t:z,Kn=(t,e=!0)=>({enumerable:e!==!1,get:t}),O_=t=>Object.freeze({systemToTimezone:nt(e=>ao(t,e)),timezoneToSystem:nt(e=>Aa(t,e)),timezoneOffset:nt(e=>t(e).offset)}),Hc=(t,e,n=t)=>{const s=(o,r)=>{let i=o;o==null?i=n:os(o)||(i=r??n);const a=gn(t,i,e);return a===i?a:r??n};return o=>{const r=Kn(()=>i);let i=s(o);return Q({value:r,descriptor:nt({...r,set(a){const c=i;i=s(a,i),c!==i&&(this.now=this.now)}})})}},x_=(t,e)=>n=>tt(n)?n.call(t,e):n,R_=t=>!ye(t,"offsets"),w_=t=>ye(t,"from"),Xo=({now:t})=>t,j_=(()=>{const t=new Map;return e=>{let n=t.get(e);return n===void 0&&(n=Object.freeze([0,0,e,0,0,0,-1]),t.set(e,n)),n}})(),rn=t=>{try{const e=t instanceof Date||+t===t?t:void 0,n=new Date(e).getTime();return isNaN(n)?void 0:n}catch{}},Ko=t=>t.setHours(0,0,0,0),P_=t=>(Ko(t),t.setDate(1)),k_=t=>(Ko(t),t.setMonth(0,1)),W_=(t,e=t)=>0+(-e%7+(t-7))%7,$_=(t=z,e=z)=>{const n=Ji(t),s=Ji(e);return()=>{const o=Ho(),r=Kn(()=>h),i=Kn(()=>o.tz.current),a=Q({now:r,timezone:i,...O_(o)}),c=x_(n,a);let{from:u,to:m,now:h}=z;const g=I=>{h=rn(I??Date.now())??h;t:{if(R_(n)){u=rn(c(n.from))??h,m=rn(c(n.to))??h;break t}let p,L,S;(S=w_(n))?(p=new Date(u=rn(c(n.from))??h),L=1):(p=new Date(m=rn(c(n.to))??h),L=-1),p=new Date(a.timezoneToSystem(p));const[D=0,T=0,E=0,C=0,x=0,v=0,R=0]=c(n.offsets);p.setFullYear(p.getFullYear()+D*L,p.getMonth()+T*L,p.getDate()+E*L),p.setHours(p.getHours()+C*L,p.getMinutes()+x*L,p.getSeconds()+v*L,p.getMilliseconds()+R*L);const j=rn(a.systemToTimezone(p))??h;S?m=j:u=j}u>m&&([u,m]=[m,u])},f=I=>{const p=o.tz,L=p.current;o.tz=I,p.current!==L&&g(h)};return g(),Q({...s,from:Kn(()=>u),now:{...r,set:g},timezone:{...i,set:f},to:Kn(()=>m)})}},qo=$_,li=1,B_=j_(7),z_=Hc(0,6,li),F_=(t=0)=>{const e=~~gn(0,t,1/0)||0;return(n=li)=>{const s=e?{offsets:B_}:{to:Xo},o=z_(n);return qo({from:({now:r,systemToTimezone:i,timezoneToSystem:a})=>{const c=new Date(r),u=new Date(a(r)),m=c.getDay()-u.getDay();if(Ko(c),m){const g=m>1?-1:m<-1?1:m;c.setDate(c.getDate()-g)}const h=W_(o.value,c.getDay())-e*7;return c.setDate(c.getDate()+h),i(c)},...s},{firstWeekDay:o.descriptor})()}},Gc=F_,U_=Object.freeze([0,1,0,0,0,0,-1]),H_=(t=0)=>{const e=~~gn(0,t,1/0)||0;return qo({from:({now:s,systemToTimezone:o,timezoneToSystem:r})=>{const i=new Date(s),a=new Date(r(s)),c=i.getMonth()-a.getMonth();let u=e;return c&&(u+=c>1?-1:c<-1?1:c),P_(i),i.setMonth(i.getMonth()-u),o(i)},...e?{offsets:U_}:{to:Xo}})},Yc=H_,G_=Yc(1),Y_=G_,Z_=365,J_=1,V_=1,Q_=Hc(J_,Z_,V_),X_=t=>{const e=Q_(t);return qo({from:({now:n,systemToTimezone:s,timezoneToSystem:o})=>{const r=new Date(n),i=new Date(o(n)),a=r.getDate()-i.getDate();let c=e.value-1;return a&&(c+=a>1?-1:a<-1?1:a),Ko(r),r.setDate(r.getDate()-c),s(r)},to:Xo},{numberOfDays:e.descriptor})()},K_=X_,q_=Gc(1),tT=q_,eT=Yc(0),nT=eT,sT=Gc(0),oT=sT,rT=qo({from:({now:t,systemToTimezone:e,timezoneToSystem:n})=>{const s=new Date(t),o=new Date(n(t)),r=s.getFullYear()-o.getFullYear();return k_(s),s.setFullYear(s.getFullYear()-r),e(s)},to:Xo}),iT=rT,aT=()=>Object.freeze({"rangePreset.last7Days":K_(7),"rangePreset.thisWeek":oT(),"rangePreset.lastWeek":tT(),"rangePreset.thisMonth":nT(),"rangePreset.lastMonth":Y_(),"rangePreset.yearToDate":iT()}),cT=({now:t=Date.now(),options:e,selectedOption:n,timezone:s})=>{const{i18n:o}=X(),[r,i]=B(),[a,c]=B(),[u,m]=B(),h=P(),g=P(),[f,I,p]=M(()=>{const x=o.get("rangePreset.custom"),v=Object.keys(e),R=Object.freeze(v.map(k=>o.get(k)));return[x,(k,V=R)=>{const Z=V.findIndex(H=>H===k);return e[v[Z]]},R]},[o,e]),[L,S]=B(n===f),D=M(()=>Object.freeze([...p,f]),[f,p]),T=M(()=>L?D:p,[L,p,D]),E=N(x=>{const v=I(x,p);v&&(i(o.fullDate(v.from)),c(o.fullDate(v.to)),S(!1),m(x))},[o,f,I,u,p]),C=N(()=>{i(void 0),c(void 0),S(!0),m(f)},[f]);return M(()=>{n===f?m(f):E(n)},[]),M(()=>{var x;if(h.current!==t||g.current!==s){const v=Object.values(e);v.forEach(R=>{R.now=t,R.timezone=s}),h.current=t,g.current=(x=v[0])==null?void 0:x.timezone,E(u)}},[t,s,e]),{customSelection:C,from:r,onSelection:E,options:T,selectedOption:u,to:a}},lT=({calendarRef:t,onTimeRangeSelected:e,timestamp:n,...s})=>{const{customSelection:o,from:r,onSelection:i,options:a,selectedOption:c,to:u}=cT(s),m=M(()=>Object.freeze(a.map(I=>({id:I,name:I}))),[a]),h=N(({target:I})=>i(I==null?void 0:I.value),[i]),g=P(!0),f=P(n);return $(()=>{t!=null&&t.current&&r&&u&&(g.current=!0,t.current.from=new Date(r),t.current.to=new Date(u))},[t,r,u]),$(()=>{f.current!==n&&(f.current=n,g.current?g.current=!1:o())},[o,n]),$(()=>{c&&(e==null||e(c))},[c,e]),d(Qo,{setToTargetWidth:!0,items:m,filterable:!1,multiSelect:!1,onChange:h,selected:c})},uT=lT,Yt=(()=>{const t=s=>Object.freeze(Object.create(z,Object.fromEntries(Object.entries(s).map(([o,r])=>[o,{value:r}])))),e=s=>{try{return Object.getPrototypeOf(s)===z}catch{return!1}},n=(s,o)=>{if(!s)return t({enumerable:!0,writable:s!==!1,value:o});let r=o;return t({enumerable:!0,get:()=>r,set:i=>{r=s(i)}})};return Object.defineProperties(n,{is:{value:e},isObject:{value:s=>Sa(s).slice(8,-1)==="Object"},immutable:{value:s=>n(!1,s)},mutable:{value:s=>n(void 0,s)},restricted:{value:()=>n(!1)}})})(),Zc=(()=>{const t=(n={},s=!1)=>{const o=Object.create(null);for(const[r,i]of Object.entries(n)){try{const a=Yt.is(i),c=Yt.isObject(i);if(a||c){Object.defineProperty(o,r,a?i:t(i,s));continue}else if(s){Object.defineProperty(o,r,Yt.immutable(i));continue}}catch{}o[r]=i}return Yt((r={})=>Object.assign(o,r),o)};return Object.defineProperties(t,{unwrapped:{value:(n={},s=!1)=>{const o=t(n,s);return Object.create(null,{P:o}).P}}})})();var ui=(t=>(t[t.DATE=0]="DATE",t[t.DAY_OF_WEEK=1]="DAY_OF_WEEK",t[t.MONTH_HEADER=2]="MONTH_HEADER",t))(ui||{});const dT=(()=>{const t=new Set,e=(s,o,r,i)=>{let a=i==null?void 0:i[r];return a=tt(a)?a:tm,!Yn(a(s[r]),a(o[r]))};return Object.defineProperty(s=>(o,r)=>{try{for(const i in o)if(t.add(i),e(o,r,i,s))return!1;for(const i in r)if(!t.has(i)&&(t.add(i),e(o,r,i,s)))return!1;return!0}finally{t.clear()}},"exclude",{value:ot})})(),Io=dT,Jc="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",Vc="adyen-pe-calendar__date",hT=(t=z,e)=>{const n=Zc.unwrapped({childClassName:Yt.mutable(Vc),childProps:{children:Yt.restricted(),className:""},className:Yt.mutable(Jc),props:{...t,children:Yt.restricted(),className:""}},!0);return e==null||e(ui.DATE,n),n},mT=ce(({grid:t,prepare:e,datetime:n,flags:s,index:o,label:r,onlyCellsWithin:i},a)=>{const c=s.WITHIN_BLOCK,u={"data-cursor-position":o,"data-within-month":c,tabIndex:-1};if(c){const p=s.WITHIN_RANGE;u["data-today"]=s.CURRENT,u["data-first-week-day"]=s.LINE_START,u["data-last-week-day"]=s.LINE_END,u["data-weekend"]=s.WEEKEND,u["data-first-month-day"]=s.BLOCK_START,u["data-last-month-day"]=s.BLOCK_END,u["data-within-range"]=p,p&&(u["data-range-end"]=s.RANGE_END,u["data-range-start"]=s.RANGE_START,u["data-selection-end"]=s.SELECTION_END,u["data-selection-start"]=s.SELECTION_START,u["data-within-selection"]=s.WITHIN_SELECTION,u["aria-selected"]=`${!!(s.SELECTION_END||s.SELECTION_START||s.WITHIN_SELECTION)}`),o===+t.cursor&&(u.ref=a)}const m=hT(u,e),{children:h,className:g,...f}=m.props||z,I=ho(m.className,Jc,g);return d("td",{...f,...u,className:I,children:(!i||c)&&(()=>{const{children:p,className:L,...S}=m.childProps||z,D=ho(m.childClassName,Vc,L);return d("time",{...S,className:D,dateTime:n,children:r})})()})}),fT=mt(mT,Io({block:Io.exclude,flags:t=>+t})),Qc="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",Xc="adyen-pe-calendar__day-of-week",gT=(t=z,e)=>{const n=Zc.unwrapped({childClassName:Yt.mutable(Xc),childProps:{children:Yt.restricted(),className:""},className:Yt.mutable(Qc),props:{...t,children:Yt.restricted(),className:""}},!0);return e==null||e(ui.DAY_OF_WEEK,n),n},IT=({prepare:t,flags:e,labels:{long:n,short:s}})=>{const o={"aria-label":n,"data-first-week-day":e.LINE_START,"data-last-week-day":e.LINE_END,"data-weekend":e.WEEKEND,scope:"col"},r=gT(o,t),{children:i,className:a,...c}=r.props||z,u=ho(r.className,Qc,a),{children:m,className:h,...g}=r.childProps||z,f=ho(r.childClassName,Xc,h);return d("th",{...c,...o,className:u,children:d("abbr",{...g,className:f,children:s})})},pT=mt(IT,Io({block:Io.exclude,flags:t=>+t}));const yT=ce(({cursorRootProps:t,onlyCellsWithin:e,prepare:n,grid:s},o)=>d("ol",{className:"adyen-pe-calendar",role:"none",...t,children:s.map(r=>d("li",{className:"adyen-pe-calendar__month",role:"none",children:[d("div",{className:"adyen-pe-calendar__month-name",role:"none",children:d("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),d("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":s.rowspan},children:[d("thead",{children:d("tr",{className:"adyen-pe-calendar__row",children:s.weekdays.map((i,a)=>d(pT,{grid:s,block:r,prepare:n,cell:a,...i},i.labels.long))})}),d("tbody",{children:r.map((i,a)=>d("tr",{className:"adyen-pe-calendar__row",children:i.map((c,u)=>d(fT,{ref:o,grid:s,block:r,prepare:n,cell:u,onlyCellsWithin:e,row:a,...c},`${r.month}:${c.timestamp}`))},`${r.month}:${a}`))})]})]},r.datetime))})),_T=mt(yT),TT=864e5,MT=["narrow","short","long"],Kc=[0,1,6],yn=[1,2,3,4,6,12],Vi=42,ST=[0,1],di=Symbol(),hi=Symbol(),mi=Symbol(),Qi=[mi,hi,di],we=Symbol(),dn=Symbol(),hn=Symbol(),LT=[dn,hn,we],qc=Symbol(),tl=Symbol(),el=Symbol(),nl=Symbol(),sl=Symbol(),ol=Symbol(),rl=Symbol(),il=Symbol(),al=Symbol(),cl=Symbol(),fi=Symbol(),gi=Symbol(),ll=Symbol(),Xi=Symbol(),gt=Symbol(),Ki=Symbol(),xt=Symbol(),ul=Symbol(),to=Symbol(),eo=Symbol(),vr=(()=>{const t=function*(s=r=>r,o){for(let r=0;r<this.length;r++)yield s.call(o,this[r],r,this)},e=Object.freeze(Q({[Symbol.iterator]:{value(){return t.call(this)}},map:{value(s,o){return[...t.call(this,s,o)]}}})),n=s=>(o,r,i)=>{if(be(r)){const a=+r;if(a>=0&&a<o.length)return s(a)}return Reflect.get(o,r,i)};return(s,o)=>tt(s)?vr({length:{get:s}},o):Gn(s)?vr({length:{value:s}},o):new Proxy(Uo(e,s),{get:n(o),set:fr})})(),Pe=vr,qi=(t,e)=>{if(e>=t)return t;let n=Math.max(1,yn.indexOf(t));for(;--n&&e<yn[n];);return yn[n]},NT=t=>yn[Math.max(yn.indexOf(t),0)],ta=(t=0)=>Object.freeze(ST.map(e=>zs(6-t+e,7))),mn=t=>Xe(t)?0:t-new Date(t).setHours(0,0,0,0),ea=t=>t===void 0?t:new Date(t),br=(t,e)=>{if(Xe(t)||Xe(e))return 1/0;const n=new Date(t),s=new Date(e);return Math.abs(s.getMonth()-n.getMonth()+(s.getFullYear()-n.getFullYear())*12)},na=(()=>{const t=[31,[29,28],31,30,31,30,31,31,30,31,30,31];return(e,n,s=0)=>{const o=e+s,r=zs(o,12),i=n+Math.floor(o/12);return[r===1?t[1][(i%100?i%4:i%400)&&1]:t[r],r,i]}})();var Is,wt,jt,Ln,Nn;class AT{constructor(...e){_(this,Is,1/0);_(this,wt,1/0);_(this,jt,-1/0);_(this,Ln,0);_(this,Nn,0);if(e.length>=2){let n=new Date(e[0]).getTime();if(typeof e[1]!="symbol")y(this,jt,n||l(this,jt)),y(this,wt,new Date(e[1]).getTime()||l(this,wt)),l(this,wt)<l(this,jt)&&([Oe(this,wt)._,Oe(this,jt)._]=[l(this,jt),l(this,wt)]),y(this,Nn,mn(l(this,jt))),y(this,Ln,mn(l(this,wt))),y(this,Is,br(l(this,jt),l(this,wt))+1);else if(!isNaN(n))switch(e[1]){case gi:y(this,wt,n),y(this,Ln,mn(l(this,wt)));break;case fi:default:y(this,jt,n),y(this,Nn,mn(l(this,jt)));break}}}get numberOfMonths(){return l(this,Is)}get endTimestamp(){return l(this,wt)}get endTimestampOffset(){return l(this,Ln)}get startTimestamp(){return l(this,jt)}get startTimestampOffset(){return l(this,Nn)}}Is=new WeakMap,wt=new WeakMap,jt=new WeakMap,Ln=new WeakMap,Nn=new WeakMap;const tr=(...t)=>{const e=new AT(...t);return Q({from:{value:e.startTimestamp},to:{value:e.endTimestamp},offsets:{value:Q({from:{value:e.startTimestampOffset},to:{value:e.endTimestampOffset}})},span:{value:e.numberOfMonths}})},po=tr(),ET=()=>tr(Date.now(),fi),CT=()=>tr(Date.now(),gi),DT=(...t)=>t.length===0?po:tr(...t);var lt=(t=>(t[t.CURRENT=1]="CURRENT",t[t.CURSOR=2]="CURSOR",t[t.WEEKEND=4]="WEEKEND",t[t.LINE_START=8]="LINE_START",t[t.LINE_END=16]="LINE_END",t[t.WITHIN_BLOCK=32]="WITHIN_BLOCK",t[t.BLOCK_START=64]="BLOCK_START",t[t.BLOCK_END=128]="BLOCK_END",t[t.WITHIN_RANGE=256]="WITHIN_RANGE",t[t.RANGE_START=512]="RANGE_START",t[t.RANGE_END=1024]="RANGE_END",t[t.WITHIN_SELECTION=2048]="WITHIN_SELECTION",t[t.SELECTION_START=4096]="SELECTION_START",t[t.SELECTION_END=8192]="SELECTION_END",t[t.ALL=16383]="ALL",t))(lt||{}),an=(t=>(t[t.PREV=1]="PREV",t[t.BLOCK=0]="BLOCK",t[t.FRAME=2]="FRAME",t[t.PERIOD=4]="PERIOD",t))(an||{}),Or=(t=>(t[t.PREV_PERIOD=5]="PREV_PERIOD",t[t.PREV_FRAME=3]="PREV_FRAME",t[t.PREV=1]="PREV",t[t.NEXT=0]="NEXT",t[t.NEXT_FRAME=2]="NEXT_FRAME",t[t.NEXT_PERIOD=4]="NEXT_PERIOD",t))(Or||{});const vT=(()=>{const t={},e=Object.keys(lt).filter(s=>isNaN(+s)),n=s=>s!=="ALL"&&be(s)&&e.includes(s);return s=>{const o=s<.ALL;return t[o]||(t[o]=new Proxy(Q({valueOf:{value:()=>o}}),{...zo,get:(r,i)=>{switch(i){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(i))return}return o<[i]?1:void 0}})),t[o]}})(),dl=vT;var An,Mt,ps,ys,_s,Ts,Vt,Pt,Fe,En,Cn,Dn,Ue,he,Ms,ut,ct,dt,Ne,vn,Ae,Ss,Ls,Ee,me,Ns,As,_o,To,Mo,hl,fe,xe,So,ml,St,Ot,He,qn,Es,Rr;const fn=class fn{constructor(){_(this,Mo);_(this,fe);_(this,So);_(this,St);_(this,He);_(this,Es);_(this,Mt,0);_(this,ps,void 0);_(this,ys,void 0);_(this,_s,-1);_(this,Ts,-1);_(this,Vt,void 0);_(this,Pt,void 0);_(this,Fe,void 0);_(this,En,!1);_(this,Cn,void 0);_(this,Dn,0);_(this,Ue,[]);_(this,he,l(fn,An));_(this,Ms,12);_(this,ut,void 0);_(this,ct,void 0);_(this,dt,1);_(this,Ne,void 0);_(this,vn,Uc());_(this,Ae,void 0);_(this,Ss,-1/0);_(this,Ls,1/0);_(this,Ee,-1/0);_(this,me,1/0);_(this,Ns,1/0);_(this,As,0);O(this,"daysInWeek",0);O(this,"origin");O(this,"originTimestamp");_(this,_o,Pe(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));_(this,To,Pe(()=>l(this,dt),b(this,So,ml).bind(this)))}get fromTimestamp(){return l(this,Ss)}get toTimestamp(){return l(this,Ls)}get numberOfBlocks(){return l(this,Ns)}get blankSelection(){return l(this,ut)===l(this,ct)&&l(this,ct)===void 0}get cursor(){return l(this,Vt)??-1}get daysOfWeek(){return l(this,_o)}get dynamicBlockHeight(){return l(this,En)}set dynamicBlockHeight(e){e==null?y(this,En,!!e):e===!!e&&y(this,En,e)}set effect(e){e==null?y(this,Cn,void 0):tt(e)&&y(this,Cn,e)}get firstWeekDay(){return l(this,Dn)}set firstWeekDay(e){if(e!=null){if(!Kc.includes(e)||l(this,Dn)===y(this,Dn,e))return}else this.firstWeekDay=0}get frameBlocks(){return l(this,To)}get isAtEnd(){return!Xe(l(this,me))&&l(this,me)===l(this,dt)-1}get isAtStart(){return!Xe(l(this,Ee))&&l(this,Ee)===0}get locale(){return l(this,he)}set locale(e){const n=l(this,he);if(e==null)y(this,he,l(fn,An));else if(typeof Intl<"u")try{y(this,he,new Intl.Locale(e).toString())}catch{y(this,he,l(fn,An))}l(this,he)!==n&&this.refreshFrame(!0)}get selectionStart(){return l(this,ut)}get selectionEnd(){return l(this,ct)}get size(){return l(this,dt)}set size(e){const n=Math.min(e!=null&&NT(e)||1,l(this,Ms));l(this,dt)!==y(this,dt,n)&&(b(this,Es,Rr).call(this),this.refreshFrame())}get timeslice(){return l(this,Ne)}set timeslice(e){if(e===l(this,Ne)||e==null&&l(this,Ne)===po)return;const{from:n,to:s,span:o,offsets:r}=e;y(this,Ne,e),y(this,Ss,n-r.from),y(this,Ls,s-r.to),y(this,Ns,o);const i=l(this,ut)===void 0?l(this,ut):Math.max(l(this,ut),n),a=l(this,ct)===void 0?l(this,ct):Math.min(l(this,ct),s);i===l(this,ut)||a===l(this,ct)?(y(this,ut,i),y(this,ct,a)):y(this,ut,y(this,ct,void 0)),this.reslice(),y(this,Ms,qi(12,this.numberOfBlocks)),y(this,dt,qi(l(this,dt),this.numberOfBlocks)),this.shiftFrameToTimestamp(l(this,Fe))}set trackCurrentDay(e){e===!!e?e&&!l(this,Ae)?y(this,Ae,l(this,vn).watch(this.refreshFrame.bind(this,!0))):!e&&l(this,Ae)&&(l(this,Ae).call(this),y(this,Ae,void 0)):e==null&&(this.trackCurrentDay=!1)}get units(){return l(this,As)}initialize(){this.withCurrentDayTimestamp(l(this,vn).timestamp),this.timeslice=po}refreshFrame(e=!1){var n;if(l(this,Ue).length=0,!(l(this,Pt)===void 0||e)){const s=this.getFrameBlockAtIndex(l(this,Mt)),{from:o,to:r}=s.inner,[i]=b(this,fe,xe).call(this,this.getTimestampAtIndex(o+l(this,Pt)),!1);y(this,Pt,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o),i));const a=o+l(this,Pt),c=gn(o,a,r);if(c>a)return y(this,Pt,this.getUnitsForFrameBlockAtIndex(--Oe(this,Mt)._)+a-c),l(this,Mt)>=0?this.refreshFrame():(y(this,Mt,l(this,dt)-1),this.shiftFrameByOffset(-1,to));if(c<a)return y(this,Pt,a-c-1),++Oe(this,Mt)._<l(this,dt)?this.refreshFrame():(y(this,Mt,0),this.shiftFrameByOffset(1,to));y(this,ps,o),y(this,ys,r),y(this,Fe,b(this,fe,xe).call(this,this.getTimestampAtIndex(a),!1)[0]),y(this,Pt,this.getCursorBlockOriginTimestampOffset(l(this,Fe))),y(this,Vt,o+l(this,Pt));const u=l(this,Mt)>0?this.getFrameBlockAtIndex(0):s,m=l(this,Mt)<l(this,dt)-1?this.getFrameBlockAtIndex(l(this,dt)-1):s;y(this,_s,u.inner.from),y(this,Ts,m.inner.to),y(this,As,m.outer.to)}this.withCurrentDayTimestamp(l(this,vn).timestamp),(n=l(this,Cn))==null||n.call(this)}shiftFrameByOffset(e,n){if(e&&os(e))switch(n){case ul:return b(this,He,qn).call(this,e);case eo:return b(this,He,qn).call(this,e*12);case to:default:return b(this,He,qn).call(this,e*l(this,dt))}}shiftFrameCursor(e){switch(e){case qc:return b(this,St,Ot).call(this,-1);case sl:return b(this,St,Ot).call(this,1);case cl:return b(this,St,Ot).call(this,-this.rowspan);case nl:return b(this,St,Ot).call(this,this.rowspan);case el:return b(this,St,Ot).call(this,l(this,ps)-l(this,Vt));case tl:return b(this,St,Ot).call(this,l(this,ys)-l(this,Vt));case rl:return b(this,St,Ot).call(this,-(l(this,Vt)%this.rowspan));case ol:return b(this,St,Ot).call(this,this.rowspan-(l(this,Vt)%this.rowspan+1));case al:return b(this,St,Ot).call(this,-this.getUnitsForFrameBlockAtIndex((l(this,Mt)??0)-1));case il:return b(this,St,Ot).call(this,this.getUnitsForFrameBlockAtIndex(l(this,Mt)??0))}if(!(e<0)&&e>=l(this,_s)&&e<=l(this,Ts))return b(this,St,Ot).call(this,e-l(this,Vt))}shiftFrameToTimestamp(e){const n=b(this,fe,xe).call(this,e,!1)[0];y(this,Pt,this.getCursorBlockOriginTimestampOffset(y(this,Fe,this.originTimestamp=n))),this.reoriginate(),[Oe(this,Ee)._,Oe(this,me)._]=this.getEdgeBlockOffsetsFromOrigin(),b(this,Es,Rr).call(this),this.refreshFrame(),b(this,St,Ot).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(l(this,Vt)),n))}clearSelection(){this.blankSelection||(y(this,ut,y(this,ct,void 0)),this.refreshFrame(!0))}getCursorOrderForTimeRelativeToSelectionEdge(e,n=gt){let s,o=!1;switch(n){case gt:s=l(this,ut);break;case xt:s=l(this,ct),o=!0;break}if(s===void 0)return 0;const r=b(this,fe,xe).call(this,e,!1).reduce((a,c)=>a+c,0),i=this.getUnitsOffsetForTimestamp(s,r)*(o?-1:1);return i&&(i>0?1:-1)}updateSelection(e,n){const s=l(this,ut),o=l(this,ct),r=b(this,fe,xe).call(this,e,!1).reduce((i,a)=>i+a,0);switch(n===Xi&&(r<=s?n=xt:r>=o&&(n=gt)),n){case gt:y(this,ut,r),y(this,ct,Math.max(l(this,ut),o??r));break;case xt:y(this,ct,r),y(this,ut,Math.min(s??r,l(this,ct)));break;case Xi:case Ki:{let i=Math.abs(r-(s??r)),a=Math.abs(r-(o??r));n===Ki&&([i,a]=[a,i]),i>a?y(this,ut,r):y(this,ct,r);break}case ll:default:y(this,ut,y(this,ct,r));break}(l(this,ut)!==s||l(this,ct)!==o)&&this.refreshFrame(!0)}};An=new WeakMap,Mt=new WeakMap,ps=new WeakMap,ys=new WeakMap,_s=new WeakMap,Ts=new WeakMap,Vt=new WeakMap,Pt=new WeakMap,Fe=new WeakMap,En=new WeakMap,Cn=new WeakMap,Dn=new WeakMap,Ue=new WeakMap,he=new WeakMap,Ms=new WeakMap,ut=new WeakMap,ct=new WeakMap,dt=new WeakMap,Ne=new WeakMap,vn=new WeakMap,Ae=new WeakMap,Ss=new WeakMap,Ls=new WeakMap,Ee=new WeakMap,me=new WeakMap,Ns=new WeakMap,As=new WeakMap,_o=new WeakMap,To=new WeakMap,Mo=new WeakSet,hl=function(e){return gn(l(this,Ee),e||0,l(this,me)-l(this,dt)+1)},fe=new WeakSet,xe=function(e,n=!0){let s=new Date(e).getTime();if(isNaN(s))return b(this,fe,xe).call(this,Date.now());const{from:o,to:r}=l(this,Ne),i=gn(o,s,r);i!==s&&n?(s=La(o,r),(isNaN(s)||Xe(s))&&(s=i)):s=i;const a=mn(s);return[s-a,a]},So=new WeakSet,ml=function(e){if(os(e)&&e>=0&&e<l(this,dt)){if(!l(this,Ue)[e]){const n=this.getFrameBlockAtIndex(e);if(!n)return;const s=`${n.year}-${`0${1+n.month}`.slice(-2)}-01`,[o,r]=this.getFormattedDataForFrameBlock(new Date(s).setHours(12)),i=n.outer.from;l(this,Ue)[e]=Pe({datetime:nt(r),label:nt(o),length:nt(Math.ceil(n.outer.units/this.rowspan)),month:nt(n.month),year:nt(n.year)},a=>{const c=a*this.rowspan;return Pe(this.rowspan,u=>{const[m,h]=n[u+c],[g,f]=this.getFormattedDataForBlockCell(new Date(m).setHours(12));return Q({datetime:nt(f),flags:nt(dl(h)),index:nt(i+u+c),label:nt(g),timestamp:nt(m)})})})}return l(this,Ue)[e]}},St=new WeakSet,Ot=function(e){e!==0&&(y(this,Pt,l(this,Pt)+e),this.refreshFrame())},He=new WeakSet,qn=function(e){const n=b(this,Mo,hl).call(this,e);n&&(this.shiftOrigin(n),y(this,Ee,l(this,Ee)-n),y(this,me,l(this,me)-n),y(this,Mt,zs(l(this,Mt)-n,l(this,dt))),this.refreshFrame())},Es=new WeakSet,Rr=function(){const e=l(this,dt)-1,n=Math.min(e-this.origin%l(this,dt),l(this,me))-e;n&&b(this,He,qn).call(this,n)},_(fn,An,"en-US");let xr=fn;var Ge,Ye,bn,Cs,On,xn,Ds,vs,bs,Os,Rn,wn,jn,xs,wr,Ce,cn,Pn,no;class bT extends xr{constructor(){super();_(this,xs);_(this,Ce);_(this,Pn);_(this,Ge,7);_(this,Ye,[]);_(this,bn,ta(this.firstWeekDay));_(this,Cs,void 0);_(this,On,-1/0);_(this,xn,1/0);_(this,Ds,1/0);_(this,vs,void 0);_(this,bs,void 0);_(this,Os,void 0);_(this,Rn,void 0);_(this,wn,void 0);_(this,jn,void 0);O(this,"daysInWeek",l(this,Ge));this.initialize()}get fromTimestamp(){return l(this,On)}get toTimestamp(){return l(this,xn)}get numberOfBlocks(){return l(this,Ds)}get currentDayTimestamp(){return l(this,Cs)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const s=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==s&&this.refreshFrame(!0)}get rowspan(){return l(this,Ge)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const s=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==s&&(l(this,Ye).length=0,y(this,bn,ta(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return new Date(n).getDate()-1}getDayOfWeekAtIndex(n){if(!l(this,Ye)[n]){const s=new Date(this.getTimestampAtIndex(n));let o=0;l(this,bn).includes(n)&&(o|=lt.WEEKEND),n===0?o|=lt.LINE_START:n===6&&(o|=lt.LINE_END);const r={};for(const i of MT)r[i]=nt(s.toLocaleDateString(this.locale,{weekday:i}));l(this,Ye)[n]=Q({flags:nt(dl(o)),labels:nt(Q(r))})}return l(this,Ye)[n]}getEdgeBlockOffsetsFromOrigin(){return[b(this,xs,wr).call(this,l(this,On)),b(this,xs,wr).call(this,l(this,xn))]}getFormattedDataForBlockCell(n){const s=new Date(n).toISOString();return[Number(s.slice(8,10)).toLocaleString(this.locale),s.slice(0,10)]}getFormattedDataForFrameBlock(n){const s=new Date(n);return[s.toLocaleDateString(this.locale,{month:"long",year:"numeric"}),s.toISOString().slice(0,7)]}getFrameBlockAtIndex(n){const[s,o,r]=na(this.origin,l(this,Rn),n),i=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:l(this,bs),a=i+s-1,c=Math.floor(i/7)*7,u=this.dynamicBlockHeight?Math.ceil((a+1)/7)*7:c+Vi,m=this.dynamicBlockHeight?u-c:Vi,h=new Proxy(Q(),{...zo,get:(g,f,I)=>{if(be(f)){const p=+f;if(os(p)&&p>=0&&p<m){const L=c+p,S=this.getTimestampAtIndex(L),D=L%l(this,Ge);let T=S===this.currentDayTimestamp?lt.CURRENT:0;return L===this.cursor&&(T|=lt.CURSOR),l(this,bn).includes(D)&&(T|=lt.WEEKEND),D===0?T|=lt.LINE_START:D===l(this,Ge)-1&&(T|=lt.LINE_END),L>=i&&L<=a&&(L===i?T|=lt.BLOCK_START:L===a&&(T|=lt.BLOCK_END),T|=lt.WITHIN_BLOCK),S>=this.fromTimestamp&&S<=this.toTimestamp&&(S===this.fromTimestamp&&(T|=lt.RANGE_START),S===this.toTimestamp&&(T|=lt.RANGE_END),T|=lt.WITHIN_RANGE),S>=l(this,wn)&&S<=l(this,jn)&&(S===l(this,wn)&&(T|=lt.SELECTION_START),S===l(this,jn)&&(T|=lt.SELECTION_END),T|=lt.WITHIN_SELECTION),[S,T]}}return Reflect.get(g,f,I)}});return Uo(h,{inner:{value:Q({from:{value:i},to:{value:a},units:{value:s}})},month:{value:o},outer:{value:Q({from:{value:c},to:{value:u-1},units:{value:m}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return na(this.origin,l(this,Rn),n)[0]}getUnitsOffsetForTimestamp(n,s){return Math.round((s-n)/TT)}reoriginate(){const n=new Date(this.originTimestamp),s=(8-(n.getDate()-n.getDay()+this.firstWeekDay)%7)%7;this.origin=n.getMonth(),y(this,Rn,n.getFullYear()),this.originTimestamp=n.setDate(1),y(this,bs,s),y(this,Os,n.setDate(1-s)),y(this,vs,n.getDate())}reslice(){b(this,Pn,no).call(this),y(this,On,b(this,Ce,cn).call(this,super.fromTimestamp)),y(this,xn,b(this,Ce,cn).call(this,super.toTimestamp)),y(this,Ds,br(super.fromTimestamp,super.toTimestamp)+1)}shiftOrigin(n){this.originTimestamp=new Date(this.originTimestamp).setMonth(this.origin+n),this.reoriginate()}clearSelection(){super.clearSelection(),b(this,Pn,no).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return new Date(l(this,Os)).setDate(l(this,vs)+n)}updateSelection(n,s){super.updateSelection(n,s),b(this,Pn,no).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(n){y(this,Cs,b(this,Ce,cn).call(this,n))}}Ge=new WeakMap,Ye=new WeakMap,bn=new WeakMap,Cs=new WeakMap,On=new WeakMap,xn=new WeakMap,Ds=new WeakMap,vs=new WeakMap,bs=new WeakMap,Os=new WeakMap,Rn=new WeakMap,wn=new WeakMap,jn=new WeakMap,xs=new WeakSet,wr=function(n){const s=br(n,this.originTimestamp);return n<this.originTimestamp?0-s:s},Ce=new WeakSet,cn=function(n){return n===void 0||Xe(n)?n:n-mn(n)},Pn=new WeakSet,no=function(){y(this,wn,b(this,Ce,cn).call(this,this.selectionStart)),y(this,jn,b(this,Ce,cn).call(this,this.selectionEnd))};var ga,Ia,rt,Qt,A,Xt,zt,Kt,ft,Ze,kt,kn,ge,Ie,Ft,re,Wn,Lo,De,Ut,No,ve,$n,Je,Rs,Ao,q,Eo,Co,Do,vo,bo,Oo,xo,fl,Ro,gl,wo,Il,jo,Bn,so,Ve,ts,ws,jr,Po,pl,ko,yl,Wo,_l,$o,Tl,js,Pr,Bo,Ml,Qe,es,Ps,kr,zn,oo,ks,Wr,Ws,$r,$s,Br,Bs,zr;let OT=(q=class{constructor(){_(this,Ve);_(this,ws);_(this,Po);_(this,ko);_(this,Wo);_(this,$o);_(this,js);_(this,Bo);_(this,Qe);_(this,Ps);_(this,zn);_(this,ks);_(this,Ws);_(this,$s);_(this,Bs);O(this,"grid");O(this,"kill");_(this,rt,z);_(this,Qt,!1);_(this,A,void 0);_(this,Xt,void 0);_(this,zt,void 0);_(this,Kt,!1);_(this,ft,dn);_(this,Ze,!1);_(this,kt,void 0);_(this,kn,(ga=l(this,kt))==null?void 0:ga.join(" "));_(this,ge,void 0);_(this,Ie,void 0);_(this,Ft,void 0);_(this,re,void 0);_(this,Wn,void 0);_(this,Lo,Uc());_(this,De,[]);_(this,Ut,void 0);_(this,No,new Proxy(Pe(()=>{var e;return((e=l(this,Ut))==null?void 0:e.length)??0},b(this,js,Pr).bind(this)),{...zo,get:(e,n,s)=>{var r,i;const o=((r=l(this,Ut))==null?void 0:r.indexOf(n))??-1;return o>=0?(i=b(this,js,Pr).call(this,o))==null?void 0:i[1]:Reflect.get(e,n,s)}}));_(this,ve,Ke({blocks:()=>{var e;return(e=l(this,A))==null?void 0:e.size},cells:()=>{var e;return(e=l(this,A))==null?void 0:e.units},controls:()=>Vn(Qi,l(this,rt).controls),cursor:()=>{var e;return(e=l(this,A))==null?void 0:e.cursor},from:()=>{var e;return(e=l(this,A))==null?void 0:e.selectionStart},highlight:()=>l(this,ft),locale:()=>{var e;return(e=l(this,A))==null?void 0:e.locale},minified:()=>Jn(l(this,rt).minified),origin:()=>{var e;return(e=l(this,A))==null?void 0:e.getTimestampAtIndex(0)},to:()=>{var e;return(e=l(this,A))==null?void 0:e.selectionEnd},today:()=>l(this,Lo).timestamp}));_(this,$n,(Ia=l(this,ve))==null?void 0:Ia.snapshot);_(this,Je,Ke.withSyncEffect(()=>{var e;return l(this,Ft)&&((e=l(this,ve))==null?void 0:e.notify())}));_(this,Rs,Ke.withSyncEffect(()=>{var e;return(e=l(this,Ft))==null?void 0:e.call(l(this,Ve,ts))}));_(this,Ao,Uo(Pe(()=>{var e;return((e=l(this,A))==null?void 0:e.size)??0},e=>{var n;return(n=l(this,A))==null?void 0:n.frameBlocks[e]}),{config:{value:Object.defineProperties(e=>(e&&b(this,ko,yl).call(this,e),l(this,Ve,ts)),{cursorIndex:{get:()=>l(this,ge),set:e=>{l(this,Qt)||(e==null?y(this,ge,void 0):tt(e)&&y(this,ge,e))}},shiftFactor:{get:()=>l(this,Ie),set:e=>{l(this,Qt)||(e==null?y(this,Ie,void 0):tt(e)&&y(this,Ie,e))}},watch:{get:()=>l(this,Ft),set:e=>{var n,s,o,r,i;if(!l(this,Qt))if(tt(e)){if(y(this,Ft,e),!l(this,re)){const a=(n=l(this,Je))==null?void 0:n.call(this,l(q,jo).bind(this));a&&(y(this,re,(s=l(this,Je))==null?void 0:s.call(this,ot)),y(this,Wn,(r=l(this,ve))==null?void 0:r.watch((o=l(this,Rs))==null?void 0:o.call(this,a))),l(this,A)&&(l(this,A).effect=l(this,re)))}if(!l(this,Ze))return;y(this,Ze,!1),(i=l(this,re))==null||i.call(this)}else e==null&&y(this,Ft,void 0)}}})},controls:{value:l(this,No)},cursor:{value:Object.defineProperties(e=>b(q,Bn,so).call(this,n=>!!(n&&b(this,Wo,_l).call(this,n)))(e),{valueOf:{value:()=>{var e;return((e=l(this,A))==null?void 0:e.cursor)??-1}}})},highlight:{value:(()=>{const e=()=>l(this,Xt)===l(this,zt)&&l(this,zt)===void 0,n=s=>o=>b(q,Bn,so).call(this,r=>{var i,a,c,u,m;if(!(l(this,Qt)||!l(this,ft)||l(this,ft)===dn)){if(r==null)return b(this,Ps,kr).call(this);e()?(a=l(this,A))==null||a.updateSelection(r,ll):((i=l(this,A))==null||i.updateSelection(r,s),l(this,ft)===we&&l(this,kt)&&b(this,zn,oo).call(this,r,s===gt?xt:gt,l(this,kt))),y(this,Xt,(c=l(this,A))==null?void 0:c.selectionStart),y(this,zt,(u=l(this,A))==null?void 0:u.selectionEnd),(m=l(this,A))==null||m.shiftFrameToTimestamp(s===gt?l(this,Xt):l(this,zt))}})(o);return Q({blank:{get:e},from:{get:()=>{var s;return((s=l(this,A))==null?void 0:s.selectionStart)??l(this,Xt)},set:n(gt)},to:{get:()=>{var s;return((s=l(this,A))==null?void 0:s.selectionEnd)??l(this,zt)},set:n(xt)}})})()},rowspan:{get:()=>{var e;return((e=l(this,A))==null?void 0:e.rowspan)??0}},weekdays:{get:()=>{var e;return((e=l(this,A))==null?void 0:e.daysOfWeek)??l(q,Do)}}}));this.grid=l(this,Ao),this.kill=b(this,$o,Tl).bind(this)}},rt=new WeakMap,Qt=new WeakMap,A=new WeakMap,Xt=new WeakMap,zt=new WeakMap,Kt=new WeakMap,ft=new WeakMap,Ze=new WeakMap,kt=new WeakMap,kn=new WeakMap,ge=new WeakMap,Ie=new WeakMap,Ft=new WeakMap,re=new WeakMap,Wn=new WeakMap,Lo=new WeakMap,De=new WeakMap,Ut=new WeakMap,No=new WeakMap,ve=new WeakMap,$n=new WeakMap,Je=new WeakMap,Rs=new WeakMap,Ao=new WeakMap,Eo=new WeakMap,Co=new WeakMap,Do=new WeakMap,vo=new WeakMap,bo=new WeakMap,Oo=new WeakMap,xo=new WeakSet,fl=function(e){if(!be(e)||!l(q,Eo).test(e))return;const n=e.split(/\s+/);return Array.from({length:6},(s,o)=>parseInt(n[o]??"0"))},Ro=new WeakSet,gl=function(e){switch(e&~an.PREV){case an.FRAME:return to;case an.PERIOD:return eo;case an.BLOCK:default:return ul}},wo=new WeakSet,Il=function(e){return e&an.PREV?-1:1},jo=new WeakMap,Bn=new WeakSet,so=function(e){var n;return((n=l(this,Je))==null?void 0:n.call(this,e))??e},Ve=new WeakSet,ts=function(){return{...l(this,rt)}},ws=new WeakSet,jr=function(){return new bT},Po=new WeakSet,pl=function(e){return!!l(this,A)&&!(e>0?l(this,A).isAtEnd:l(this,A).isAtStart)},ko=new WeakSet,yl=function(e){var o,r;if(l(this,Qt))return;y(this,kt,void 0);const n=e==null?void 0:e.highlight,s=Jn(l(this,rt).minified);if(be(n)?y(this,kt,b(o=q,xo,fl).call(o,n))&&y(this,ft,we):y(this,ft,Vn(LT,n,l(this,ft))),y(this,rt,{...l(this,rt),...e,blocks:Vn(yn,e==null?void 0:e.blocks,l(this,rt).blocks),controls:Vn(Qi,e==null?void 0:e.controls,l(this,rt).controls),firstWeekDay:Vn(Kc,e==null?void 0:e.firstWeekDay,l(this,rt).firstWeekDay),fixedBlockHeight:Jn(e==null?void 0:e.fixedBlockHeight,l(this,rt).fixedBlockHeight),highlight:l(this,ft),minified:Jn(e==null?void 0:e.minified,l(this,rt).minified),trackCurrentDay:Jn(e==null?void 0:e.trackCurrentDay,l(this,rt).trackCurrentDay)}),!tt(l(this,Ft))){l(this,A)?y(this,Ze,!0):(y(this,A,l(this,ws,jr)),b(this,Ws,$r).call(this),b(this,Bs,zr).call(this),b(this,$s,Br).call(this));return}(!l(this,A)||s!==l(this,rt).minified)&&(y(this,A,l(this,ws,jr)),l(this,A).effect=l(this,re)),b(this,Ws,$r).call(this),(r=l(this,re))==null||r.call(this)},Wo=new WeakSet,_l=function(e){if(e&&l(this,A)&&tt(l(this,Ft))){if(e instanceof KeyboardEvent){switch(e.code){case W.ARROW_LEFT:l(this,A).shiftFrameCursor(qc);break;case W.ARROW_RIGHT:l(this,A).shiftFrameCursor(sl);break;case W.ARROW_UP:l(this,A).shiftFrameCursor(cl);break;case W.ARROW_DOWN:l(this,A).shiftFrameCursor(nl);break;case W.HOME:l(this,A).shiftFrameCursor(e.ctrlKey?el:rl);break;case W.END:l(this,A).shiftFrameCursor(e.ctrlKey?tl:ol);break;case W.PAGE_UP:e.shiftKey?l(this,A).shiftFrameByOffset(-1,eo):l(this,A).shiftFrameCursor(al);break;case W.PAGE_DOWN:e.shiftKey?l(this,A).shiftFrameByOffset(1,eo):l(this,A).shiftFrameCursor(il);break;case W.SPACE:case W.ENTER:return b(this,Qe,es).call(this),!0;default:return}return l(this,Kt)&&b(this,Qe,es).call(this,z),!0}if(e instanceof MouseEvent&&l(q,Co).includes(e.type)&&tt(l(this,ge))){const n=l(this,ge).call(l(this,Ve,ts),e);if(!os(n))return;const s=e.type==="click";if(!(s||l(this,Kt)))return;if(l(this,A).shiftFrameCursor(n),l(this,A).cursor===n)return s?b(this,Qe,es).call(this):b(this,Qe,es).call(this,z),!0}}},$o=new WeakSet,Tl=function(){var e;l(this,Qt)||((e=l(this,Wn))==null||e.call(this),y(this,Je,y(this,Rs,y(this,ge,y(this,A,y(this,ft,y(this,kn,y(this,$n,y(this,kt,y(this,Ie,y(this,Wn,y(this,ve,y(this,re,y(this,Ft,void 0))))))))))))),y(this,rt,z),y(this,Kt,y(this,Ze,!1)),y(this,Qt,!0))},js=new WeakSet,Pr=function(e){var s,o;if(!l(this,Ut)||e<0||e>=l(this,Ut).length)return;const n=l(this,Ut)[e];if(!l(this,De)[e]){const r=Or[n],i=b(s=q,Ro,gl).call(s,r),a=b(o=q,wo,Il).call(o,r);l(this,De)[e]=(...c)=>b(q,Bn,so).call(this,(...u)=>{var g;const m=b(this,Po,pl).call(this,a);if(!(m&&u.length))return m;const h=b(this,Bo,Ml).call(this,n,u[0]);return h===void 0?!1:((g=l(this,A))==null||g.shiftFrameByOffset(a*h,i),!0)})(...c)}return[n,l(this,De)[e]]},Bo=new WeakSet,Ml=function(e,n){if(!(l(this,A)&&tt(l(this,Ft))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!l(q,vo).includes(n.code))return}else return;let s=1;if(tt(l(this,Ie))){const o=Number(l(this,Ie).call(l(this,Ve,ts),n,e));s=Number.isInteger(o)&&o>=1?o:s}return s},Qe=new WeakSet,es=function(e){if(l(this,Qt)||!l(this,A))return;switch(l(this,ft)){case we:case hn:break;case dn:default:return}const n=l(this,A).cursor,s=l(this,A).getTimestampAtIndex(n),o=l(this,A).getTimestampAtIndex(n+1)-1,r=l(this,kt);if(l(this,ft)===hn||l(this,A).blankSelection||r)if(y(this,Kt,!(l(this,ft)===hn||r)),l(this,ft)===we&&r){const i=o>=l(this,A).selectionEnd?gt:xt;i===gt?l(this,A).updateSelection(o,xt):l(this,A).updateSelection(s,gt),b(this,zn,oo).call(this,i===gt?l(this,A).selectionEnd:l(this,A).selectionStart,i,r)}else l(this,A).updateSelection(s,gt),l(this,A).updateSelection(o,xt);else{const i=e===z;if(i||y(this,Kt,!1),s<=l(this,A).selectionStart){const a=new Date(l(this,A).selectionStart),c=a.setDate(a.getDate()+1)-1;s===l(this,A).selectionStart&&o<=c&&l(this,A).updateSelection(o,xt),l(this,A).updateSelection(s,gt)}else{const c=new Date(l(this,A).selectionEnd).setHours(0,0,0,0);s<=l(this,A).selectionEnd&&s>=c&&l(this,A).updateSelection(s,gt),l(this,A).updateSelection(o,xt)}if(i)return}y(this,Xt,l(this,A).selectionStart),y(this,zt,l(this,A).selectionEnd)},Ps=new WeakSet,kr=function(){var e;(e=l(this,A))==null||e.clearSelection(),y(this,Kt,!1),y(this,Xt,y(this,zt,void 0))},zn=new WeakSet,oo=function(e,n,s){if(!l(this,A))return;const o=new Date(e),r=n===gt?-1:1,[i=0,a=0,c=0,u=0,m=0,h=0]=s??[];o.setFullYear(o.getFullYear()+i*r,o.getMonth()+a*r,o.getDate()+c*r),o.setHours(o.getHours()+u*r,o.getMinutes()+m*r,o.getSeconds()+h*r),l(this,A).updateSelection(o.getTime()-r,n)},ks=new WeakSet,Wr=function(){var e,n;l(this,Xt)&&((e=l(this,A))==null||e.updateSelection(l(this,Xt),gt)),l(this,zt)&&((n=l(this,A))==null||n.updateSelection(l(this,zt),xt)),y(this,Kt,!1)},Ws=new WeakSet,$r=function(){l(this,A)&&(l(this,A).timeslice=l(this,rt).timeslice,l(this,A).dynamicBlockHeight=!l(this,rt).fixedBlockHeight,l(this,A).firstWeekDay=l(this,rt).firstWeekDay,l(this,A).locale=l(this,rt).locale,l(this,A).size=l(this,rt).blocks,l(this,A).trackCurrentDay=l(this,rt).trackCurrentDay,b(this,ks,Wr).call(this))},$s=new WeakSet,Br=function(){var e,n,s,o,r;switch(l(this,ft)){case we:((e=l(this,A))==null?void 0:e.blankSelection)===!1&&l(this,kt)&&b(this,zn,oo).call(this,(n=l(this,A))==null?void 0:n.selectionStart,xt,l(this,kt));break;case hn:((s=l(this,A))==null?void 0:s.blankSelection)===!1&&((r=l(this,A))==null||r.updateSelection(new Date((o=l(this,A))==null?void 0:o.selectionStart).setHours(23,59,59,999),xt));break;case dn:default:b(this,Ps,kr).call(this);return}},Bs=new WeakSet,zr=function(){var e,n;switch((e=l(this,ve))==null?void 0:e.snapshot.controls){case di:y(this,Ut,l(q,bo));break;case hi:y(this,Ut,l(q,Oo));break;case mi:default:y(this,Ut,void 0)}l(this,De).length=0,l(this,De).length=((n=l(this,Ut))==null?void 0:n.length)??0},_(q,xo),_(q,Ro),_(q,wo),_(q,Bn),_(q,Eo,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),_(q,Co,["click","mouseover","pointerover"]),_(q,Do,Pe(0,ot)),_(q,vo,[W.ENTER,W.SPACE]),_(q,bo,Object.keys(Or).filter(e=>isNaN(+e))),_(q,Oo,["PREV","NEXT"]),_(q,jo,function(e){var i,a;if(typeof e=="symbol")return;let n=!1,s=!1,o=!1;const r=(i=l(this,kt))==null?void 0:i.join(" ");for(const c of Object.keys(e))e[c]!==((a=l(this,$n))==null?void 0:a[c])&&(c==="controls"?n=!0:c==="highlight"?s=!0:(c==="from"||c==="to")&&(o=!0));l(this,kn)!==r&&(y(this,kn,r),s=!0),y(this,$n,e),l(this,Kt)&&!o&&b(this,ks,Wr).call(this),n&&b(this,Bs,zr).call(this),s&&b(this,$s,Br).call(this)}),q);const xT=(()=>Object.defineProperties(e=>{const{grid:n,kill:s}=new OT;return Gn(e)?n.config({blocks:e}):tt(e)?Promise.resolve().then(()=>{n.config.watch=e}):n.config(e),Q({grid:nt(n),kill:nt(s)})},{controls:{value:Q({ALL:{value:di},MINIMAL:{value:hi},NONE:{value:mi}})},highlight:{value:Q({ONE:{value:hn},MANY:{value:we},NONE:{value:dn}})},slice:{value:Object.defineProperties(DT.bind(null),{FROM:{value:fi},TO:{value:gi},UNBOUNDED:{value:po},SINCE_NOW:{get:ET},UNTIL_NOW:{get:CT}})}}))(),se=xT,RT=({config:t,grid:{controls:e},renderer:n})=>t.controls===se.controls.NONE||!tt(n)?null:d(Y,{children:e.map(([s,o])=>n(s,o))}),wT=mt(RT),jT=t=>{const e=N((n,s)=>{s instanceof Element&&s.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),Promise.resolve().then(()=>n==null?void 0:n.focus()))},[]);return Me(N((n,s)=>{try{t==null||t(n,s)}finally{e(n,s)}},[t]))},PT=jT,kT=({blocks:t,controls:e,dynamicBlockRows:n,firstWeekDay:s,highlight:o,locale:r,onHighlight:i,originDate:a,renderControl:c,sinceDate:u,trackCurrentDay:m,untilDate:h,useYearView:g},f)=>{const{i18n:I}=X(),[p,L]=B(performance.now()),S=M(()=>se.slice(u,h),[u,h]),D=P(z),T=M(()=>e??(tt(c)?se.controls.MINIMAL:se.controls.NONE),[e,c]),E=M(()=>o??(tt(i)?se.highlight.ONE:se.highlight.NONE),[o,i]),{grid:C,kill:x}=M(()=>{const{grid:j,kill:k}=se(function(){L(performance.now()),D.current=this,!(V===j.highlight.from&&Z===j.highlight.to)&&(V=j.highlight.from,Z=j.highlight.to,i==null||i(V,Z))});let{from:V,to:Z}=j.highlight;return j.config.cursorIndex=H=>{let K=H.target;for(;K&&K!==H.currentTarget;){const Dt=Number(K.dataset.cursorPosition);if(Number.isFinite(Dt))return Dt;K=K.parentNode}},j.config.shiftFactor=function(H){if(this.controls===se.controls.MINIMAL)return H!=null&&H.shiftKey?12:H!=null&&H.altKey?this.blocks:1},{grid:j,kill:k}},[]),v=M(()=>{const j=k=>{C.cursor(k)};return{onClickCapture:j,onMouseOverCapture:j,onPointerOverCapture:j,onKeyDownCapture:k=>{C.cursor(k)&&k.preventDefault()}}},[C]),R=PT(N((j,k)=>{k instanceof Element&&k.removeAttribute("aria-selected"),j instanceof Element&&j.setAttribute("aria-selected","true")},[]));return Kg(f,()=>{const{from:j,to:k}=(C==null?void 0:C.highlight)||z;return{clear:()=>{C!=null&&C.highlight&&(C.highlight.from=void 0)},get config(){return{...D.current??z}},get from(){return ea(j)},set from(V){C!=null&&C.highlight&&V&&(C.highlight.from=V.getTime())},get to(){return ea(k)},set to(V){C!=null&&C.highlight&&V&&(C.highlight.to=V.getTime())}}},[C,p]),$(()=>{C.config({blocks:t,controls:T,firstWeekDay:s,fixedBlockHeight:!n,highlight:E,locale:r??I.locale,minified:g,timeslice:S,trackCurrentDay:m})},[T,E,t,n,s,C,I,r,S,m,g]),$(()=>{const j=[].concat(a).slice(0,2).map(Number).filter(Boolean);return j[0]&&(C.highlight.from=+j[0]),j[1]&&(C.highlight.to=+j[1]),x},[]),{cursorElementRef:R,cursorRootProps:v,grid:C}},WT=kT,$T=ce((t,e)=>{const n=WT(t,e),s=n.grid.config();return d("div",{role:"none",children:[d(wT,{config:s,grid:n.grid,renderer:t.renderControl}),d(_T,{ref:n.cursorElementRef,config:s,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:t.onlyCellsWithin,prepare:t.prepare})]})}),BT=mt($T),zT=Se(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("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"})]})),Sl=zT,FT=(t,e)=>{const[n,s]=B(),o=Me(M(()=>{const r=i=>(...a)=>{const c=t(i,...a);return c&&Nc(c,i)};return s(void 0),i=>s(i instanceof Element?()=>r(i):void 0)},[t,e]),e);return[n,o]},UT=FT,HT=t=>{const{i18n:e}=X();return UT(N((n,s,o)=>{if(!(n instanceof HTMLElement))return null;if(tt(t))return t(s,o);let r,i,a;switch(s){case"PREV":r="prev",i="previous",a=Sl;break;case"NEXT":r=i="next",a=ii;break;default:return null}const c=o();return c?d(Jt,{"aria-label":e.get(`calendar.${i}Month`),variant:_t.TERTIARY,disabled:!c,classNameModifiers:["circle",r],iconButton:!0,onClick:o,children:d(a,{role:"presentation"})},s):null},[e,t]))},GT=HT;const YT=ce((t,e)=>{const{i18n:n}=X(),[s,o]=GT(t.renderControl),[r,i]=B(performance.now()),a=M(()=>t.showTimezoneInfo!==!1,[t.showTimezoneInfo]),{clockTime:c,GMTOffset:u}=b_({timezone:t.timezone,withClock:a}),m=M(()=>U([{"adyen-pe-datepicker--with-timezone":a},"adyen-pe-datepicker"]),[a]),h=M(()=>a?{values:{offset:u,time:c}}:z,[u,c,a]),g=Me(ot,e),f=N(()=>{var I,p,L,S,D;i(performance.now()),(I=g.current)!=null&&I.from&&((p=g.current)!=null&&p.to)&&((D=t.onHighlight)==null||D.call(t,+((L=g.current)==null?void 0:L.from),+((S=g.current)==null?void 0:S.to)))},[i,t.onHighlight]);return d("div",{className:m,children:[d("div",{className:"adyen-pe-datepicker__selector-container",children:d(uT,{now:t.now,calendarRef:g,onTimeRangeSelected:t.onPresetOptionSelected,options:t.timeRangePresetOptions,selectedOption:t.selectedPresetOption,timestamp:r,timezone:t.timezone})}),d("div",{ref:o,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),d(BT,{...t,ref:g,firstWeekDay:li,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:t.controls??se.controls.MINIMAL,highlight:t.highlight??se.highlight.MANY,onHighlight:f,renderControl:s}),a&&d("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",h)})]})}),ZT=YT;const JT="adyen-pe-filter-button";function VT({className:t,classNameModifiers:e=[],children:n,disabled:s,onClick:o,...r},i){const a=M(()=>pn("",t)||"",[t]),c=M(()=>Hr(s),[s]),{classes:u,click:m}=Kr(a,e,JT,c,o);return d("button",{className:u,ref:i,onClick:m,...r,children:d(Zt,{el:Un.SPAN,variant:F.BODY,stronger:!0,children:n})})}const QT=ce(VT);function Ll({onInput:t,onKeyUp:e,trimOnBlur:n,onBlurHandler:s,onBlur:o,onFocusHandler:r,errorMessage:i,...a},c){const{autoCorrect:u,classNameModifiers:m,isInvalid:h,isValid:g,readonly:f=!1,spellCheck:I,type:p,uniqueId:L,isCollatingErrors:S,disabled:D}=a;ye(a,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const T=N(K=>{t==null||t(K)},[t]),E=N(K=>{e&&e(K)},[e]),C=N(K=>{s==null||s(K),n&&(K.target.value=K.target.value.trim()),o==null||o(K)},[o,s,n]),x=N(K=>{r==null||r(K)},[r]),v=U("adyen-pe-input",[`adyen-pe-input--${p}`],a.className,{"adyen-pe-input--invalid":h,"adyen-pe-input--valid":g},m==null?void 0:m.map(K=>`adyen-pe-input--${K}`)),{classNameModifiers:R,uniqueId:j,isInvalid:k,isValid:V,isCollatingErrors:Z,...H}=a;return d(Y,{children:[d("input",{id:L,...H,type:p,className:v,readOnly:f,"aria-describedby":S?void 0:`${L}${Ar}`,"aria-invalid":h,onInput:T,onBlur:C,onFocus:x,onKeyUp:E,disabled:D,ref:c}),h&&i&&d("span",{className:"adyen-pe-input__invalid-value",id:`${L}${Ar}`,children:i})]})}Ll.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const Fr=ce(Ll),XT=ce(function(e,n){return d(Fr,{classNameModifiers:e.classNameModifiers,...e,ref:n,"aria-required":e.required,type:"text"})}),KT=t=>!t||cI(t),qT=(()=>{const t=e=>{const{editAction:n,name:s,onChange:o,onValueUpdated:r}=e,[i,a]=B(e.value),c=N(u=>{const m=u.target.value.trim();a(m),r(m)},[r]);return $(()=>{if(n===It.CLEAR){const u="";a(u),r(u),o(u)}n===It.APPLY&&o(i??"")},[i,n,o,r]),d(XT,{name:s,value:i,onInput:c})};return e=>d(t,{...e})})(),tM=({render:t,...e})=>{var V;const n=Ct(Et.down.xs),[s,o]=ie(!1),[r,i]=ie(!1),a=M(()=>e.isValueEmpty??KT,[e.isValueEmpty]),[c,u]=ie(a(e.value)),[m,h]=ie(!1),[g,f]=ie(!1),[I,p]=ie(a(e.value)),L=mo(),S=M(()=>t??qT,[t]),D=N(Z=>{const H=a(Z??void 0);u(H),p(Z===null),f(m?Z!==e.value:!H)},[a,u,p,f,m,e.value]),{commitAction:T,commitActionButtons:E,committing:C,resetCommitAction:x}=jc({applyDisabled:I||!g,resetDisabled:c}),[v,R]=M(()=>{const Z=H=>()=>{H!==s&&(H&&(x(),f(!1),h(!1)),o(H),i(H))};return[Z(!1),Z(!0)]},[o,s,x,i,h,f]);$(()=>{if(r){const Z=a(e.value);i(!1),u(Z),h(!Z)}},[e.value,r,a,i,u,h]),$(()=>{C&&v(),u(c)},[C,v,u,c]);const j=Ct(Et.only.sm),k=Ct(Et.only.md);return d(Y,{children:[d("div",{className:`adyen-pe-filter adyen-pe-filter--${e.type}`,children:M(()=>d(QT,{classNameModifiers:[...e.appliedFilterAmount?["with-counter"]:[],...e.classNameModifiers??[],...s?["active"]:[],...c?[]:["has-selection"]],onClick:s?v:R,tabIndex:0,ref:L,children:d("div",{className:"adyen-pe-filter-button__default-container",children:[d(Zt,{el:Un.SPAN,variant:F.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:e.label}),!!e.appliedFilterAmount&&d("div",{className:"adyen-pe-filter-button__counter-wrapper",children:d(Zt,{el:Un.SPAN,variant:F.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:e.appliedFilterAmount})})]})}),[e.appliedFilterAmount,e.classNameModifiers,e.label,s,c,v,R,L])}),s&&d(oi,{actions:E,title:(V=e.title)==null?void 0:V.trim(),variant:yt.POPOVER,modifiers:["filter"],open:s,"aria-label":`${e.label}`,dismiss:v,dismissible:!1,withContentPadding:e.withContentPadding??!0,divider:!0,targetElement:L,disableFocusTrap:!1,position:et.BOTTOM,containerSize:e.containerSize,showOverlay:n,fitPosition:j||k,children:S({...e,editAction:T,onValueUpdated:D})})]})},Nl=mt(tM);var ds=(t=>(t.FROM="from",t.TO="to",t))(ds||{});const Al={month:"short",day:"numeric",year:"numeric"},eM=new Intl.DateTimeFormat("en-US",Al),El=(t,e,n)=>{const s=e&&t.fullDate(e),o=n&&t.fullDate(n);if(s&&o)return`${s} - ${o}`;if(s)return t.get("filter.date.since",{values:{date:s}});if(o)return t.get("filter.date.until",{values:{date:o}})},ae=t=>{try{return new Date(t||"").toISOString()}catch{return""}},nM=(()=>{const t=({editAction:e,from:n,to:s,now:o,onChange:r,onValueUpdated:i,showTimezoneInfo:a,selectedPresetOption:c,timeRangePresetOptions:u,timezone:m,sinceDate:h,untilDate:g})=>{const{i18n:f}=X(),[I,p]=B(c),L=M(()=>[new Date(n),new Date(s)],[n,s]),S=P(),D=N((T,E)=>{i(El(f,ae(T),ae(E)))},[f,i]);return $(()=>{var T,E,C;switch(e){case It.APPLY:r({selectedPresetOption:I,[ds.FROM]:ae((T=S.current)==null?void 0:T.from),[ds.TO]:ae((E=S.current)==null?void 0:E.to)});break;case It.CLEAR:(C=S.current)==null||C.clear(),r()}},[e,r,I]),d(ZT,{ref:S,now:o,originDate:L,onHighlight:D,onPresetOptionSelected:p,selectedPresetOption:c,timeRangePresetOptions:u,timezone:m,showTimezoneInfo:a,sinceDate:ae(h),untilDate:ae(g)})};return e=>d(t,{...e})})(),sM=(t,e,n)=>t.formatRange(e,n);function oM({title:t,from:e,to:n,selectedPresetOption:s,...o}){const{i18n:r}=X(),[i,a]=B(),[c,u]=B(),[m,h]=B(),g=N(L=>{const{from:S,to:D,selectedPresetOption:T}=L??z;try{a(i??T),u(ae(c??S)),h(ae(m??D))}finally{o.onChange({from:S,to:D,selectedPresetOption:T})}},[i,c,m,o]),[f,I]=M(()=>{let L=eM;try{L=new Intl.DateTimeFormat(r.locale,Al)}catch{}return[r.get("rangePreset.custom"),L]},[r]);$(()=>a(s),[s]),$(()=>u(ae(e||Date.now())),[e]),$(()=>h(ae(n||Date.now())),[n]);const p=M(()=>s===f&&c&&m?sM(I,new Date(c),new Date(m)):s??o.label,[f,I,c,m,s,o.label]);return d(Nl,{...o,from:e,to:n,type:"date",label:p,onChange:g,render:nM,selectedPresetOption:s,value:El(r,e,n),withContentPadding:!1})}const rM=({balanceAccount:t,canResetFilters:e,defaultParams:n,filters:s,nowTimestamp:o,refreshNowTimestamp:r,updateFilters:i})=>{const{i18n:a}=X(),c=M(()=>a.get(n.current.defaultTimeRange),[a]),[u,m]=B(c),h=N((f=z)=>{for(const[I,p]of Object.entries(f)){switch(I){case"selectedPresetOption":m(p||c);break;case ds.FROM:i({[G.CREATED_SINCE]:p||n.current.defaultFilterParams[G.CREATED_SINCE]});break;case ds.TO:i({[G.CREATED_UNTIL]:p||n.current.defaultFilterParams[G.CREATED_UNTIL]});break;default:return}r()}},[c,r,i]);M(()=>!e&&m(c),[e,c]);const g=M(()=>{const f=new Date(o);return f.setMonth(f.getMonth()-24),f.toString()},[o]);return d(oM,{label:a.get("dateRange"),name:G.CREATED_SINCE,sinceDate:g,untilDate:new Date(o).toString(),from:s[G.CREATED_SINCE],to:s[G.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:t==null?void 0:t.timeZone,onChange:h,showTimezoneInfo:!0,now:o})},iM=rM,aM="adyen-pe-transaction-totals",sa="adyen-pe-transaction-totals__item";const er="adyen-pe-expandable-card",qe=er+"__container",oa=qe+"--button",cr=qe+"--filled",cM=qe+"--hidden",Cl=qe+"--overlay",lr=Cl,ro=er+"__content",ra=ro+"--expandable",ia=er+"__chevron",lM="adyen-pe-base-button";function uM({disabled:t=!1,onClick:e,classNameModifiers:n=[],type:s="button",children:o,className:r,fullWidth:i,...a},c){const u=M(()=>pn("",r)||"",[r]),m=M(()=>Hr(t),[t]),{classes:h,click:g}=Kr(u,[...n,...i?["full-width"]:[]],lM,m,e);return d("button",{className:h,type:s,disabled:t,onClick:g,ref:c,...a,children:o})}const aa=ce(uM),dM=({renderHeader:t,children:e,filled:n,fullWidth:s,...o})=>{const{i18n:r}=X(),[i,a]=B(!1),c=N(()=>a(f=>!f),[a]),u=P(null),m=P(!1),h=P(i),g=Oc(void 0,N(()=>{i&&(c(),m.current=!0)},[i,c]));return $(()=>{var f,I;i?(f=g.current)==null||f.focus():(h.current!==i&&!m.current&&((I=u.current)==null||I.focus()),m.current=!1),h.current=i},[i,g]),d("div",{className:er,children:e?d(Y,{children:[d(aa,{className:U(qe,oa,{[cr]:n}),disabled:i,fullWidth:s,"aria-controls":lr,"aria-expanded":i,"aria-hidden":i,onClick:c,ref:u,"data-testid":"expand-button",...o,children:[d("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.expand")}),d("div",{className:U(ro,ra),children:t}),d("div",{className:ia,children:d(ii,{role:"presentation"})})]}),d(aa,{id:lr,className:U(qe,oa,Cl,{[cr]:n,[cM]:!i}),disabled:!i,fullWidth:s,"aria-controls":lr,"aria-expanded":i,"aria-hidden":!i,onClick:c,ref:g,"data-testid":"collapse-button",...o,children:[d("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.collapse")}),d("div",{className:U(ro,ra),children:[t,d("div",{children:e})]}),d("div",{className:ia,children:d(Sl,{role:"presentation"})})]})]}):d("div",{className:U(qe,{[cr]:n}),...o,children:d("div",{className:ro,children:t})})})},Dl=dM,Ii="adyen-pe-amount-skeleton",hM=Ii+"--has-margin",mM=Ii+"--loading";const fM=({hasMargin:t=!1,isLoading:e=!1,width:n})=>d("span",{className:U(Ii,{[mM]:e,[hM]:t}),style:{width:n}}),gM=fM,sn="adyen-pe-summary-item",vl=sn+"__label-container",IM=vl+"--loading",pM=sn+"--body",bl=sn+"__label",yM=sn+"__placeholder",_M=sn+"__amount",ca=Se(({config:t,i18n:e,isSkeletonVisible:n,className:s,...o},r)=>d("span",{className:U(vl,s,{[IM]:n}),style:{cursor:"default"},ref:r,...o,children:t.labelKey&&d(Zt,{variant:F.CAPTION,className:bl,children:e.get(t.labelKey)})}));const Ol=({columnConfigs:t,isHeader:e=!1,isHovered:n=!1,isSkeletonVisible:s=!1,isLoading:o=!1,widths:r,onWidthsSet:i,isEmpty:a})=>{const{i18n:c}=X();$(()=>{const g=t.map(f=>{var I,p;return((p=(I=f.ref)==null?void 0:I.current)==null?void 0:p.getBoundingClientRect().width)??0});i(g)},[i]);const u=g=>({width:r&&r[g]?r[g]:"auto"}),m=Ct(Et.only.xs),h=N((g,f)=>g.valueHasLabelStyle?F.CAPTION:f&&!m?F.BODY:F.TITLE,[m]);return d("div",{className:U(sn,{[pM]:!e}),children:t.map((g,f)=>{const I=g.getValue(),p=!!I&&I.length>12;return d("div",{children:[e&&(g.tooltipLabel?d(ri,{content:c.get(`${g.tooltipLabel}`),isContainerHovered:n,children:d(ca,{config:g,i18n:c,isSkeletonVisible:s})}):d(ca,{config:g,i18n:c,isSkeletonVisible:s})),s?d(gM,{isLoading:o,hasMargin:g.hasSkeletonMargin,width:g.skeletonWidth+"px"}):a?d("span",{className:U([sn,yM])}):d("div",{ref:g.ref,style:u(f),children:d(Zt,{variant:h(g,p),className:U({[bl]:g.valueHasLabelStyle,[_M]:!g.valueHasLabelStyle}),children:I})})]},f)})})},la=({total:t,hiddenField:e,isHeader:n=!1,isHovered:s=!1,isSkeleton:o=!1,isLoading:r=!1,widths:i,onWidthsSet:a})=>{const{i18n:c}=X(),u=P(null),m=P(null),h=P(null),g=M(()=>{const f={labelKey:"totalIncoming",ref:u,skeletonWidth:80,getValue:()=>t&&c.amount(t.incomings,t.currency),tooltipLabel:"tooltip.totalIncoming"},I={labelKey:"totalOutgoing",ref:m,skeletonWidth:80,getValue:()=>t&&c.amount(t.expenses,t.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...e!=="incomings"?[f]:[],...e!=="expenses"?[I]:[],{ref:h,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}]},[t,e,c]);return d(Ol,{isHovered:s,isEmpty:!t,columnConfigs:g,isHeader:n,isSkeletonVisible:o,isLoading:r,widths:i,onWidthsSet:a})};const TM="adyen-pe-base-list",xl=({children:t})=>d("ul",{className:TM,children:t}),Rl=()=>{const[t,e]=B([]),n=N(s=>{e(o=>s.every(r=>!r)?s:s.map((r,i)=>{const a=o[i];return!a||r>a?r:a}))},[]);return[t,n]},ur=mt(({totals:t,isLoading:e,hiddenField:n,fullWidth:s})=>{const[o,...r]=t,[i,a]=Rl(),[c,u]=B(!1);return d(Dl,{renderHeader:d(la,{isHovered:c,total:o,hiddenField:n,widths:i,isHeader:!0,isSkeleton:e,isLoading:e,onWidthsSet:a}),fullWidth:s,onMouseEnter:()=>u(!0),onFocus:()=>u(!0),onMouseLeave:()=>u(!1),onBlur:()=>u(!1),children:!e&&r.length&&d(xl,{children:r.map(m=>d("li",{children:d(la,{isHovered:c,total:m,hiddenField:n,widths:i,onWidthsSet:a})},m.currency))})})}),MM=mt(({availableCurrencies:t,isAvailableCurrenciesFetching:e,balanceAccountId:n,createdSince:s,createdUntil:o,categories:r,statuses:i,maxAmount:a,minAmount:c,currencies:u,fullWidth:m})=>{const h=Hs("getTransactionTotals"),g=N(async()=>h(z,{query:{createdSince:s,createdUntil:o,categories:r,statuses:i,maxAmount:a,minAmount:c,currencies:u,balanceAccountId:n}}),[n,r,s,o,u,h,a,c,i]),{data:f,isFetching:I}=Vo({fetchOptions:M(()=>({enabled:!!n}),[n]),queryFn:g}),p=!n||I||e,S=N(()=>{if(!t||!f)return f==null?void 0:f.totals;const T=t.map(E=>f.totals.find(x=>x.currency===E)||{currency:E,incomings:0,expenses:0});return T.concat(f.totals.filter(E=>!T.includes(E)))},[t,f])()??[],D=Ct(Et.only.xs);return d("div",{className:aM,children:D?d(Y,{children:[d("div",{className:sa,children:d(ur,{totals:S,isLoading:p,hiddenField:"expenses",fullWidth:m})}),d("div",{className:sa,children:d(ur,{totals:S,isLoading:p,hiddenField:"incomings",fullWidth:m})})]}):d(ur,{totals:S,isLoading:p,fullWidth:m})})}),SM=MM,LM="adyen-pe-balances",ua=({balance:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:o,onWidthsSet:r,isEmpty:i})=>{const{i18n:a}=X(),c=P(null),u=P(null),m=M(()=>[{labelKey:"accountBalance",ref:c,skeletonWidth:80,getValue:()=>t&&a.amount(t.value,t.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}],[t,c,a]);return d(Ol,{isEmpty:i,columnConfigs:m,isHeader:e,isSkeletonVisible:n,isLoading:s,widths:o,onWidthsSet:r})},NM=mt(({balanceAccountId:t,onCurrenciesChange:e,fullWidth:n})=>{const s=Hs("getBalances"),o=N(async()=>s(z,{path:{balanceAccountId:t}}),[t,s]),{data:r,error:i,isFetching:a}=Vo({fetchOptions:M(()=>({enabled:!!t}),[t]),queryFn:o}),c=!t||a,u=!!i||!(r!=null&&r.balances.length),m=r==null?void 0:r.balances.sort((p,L)=>p.currency.localeCompare(L.currency)),[h,...g]=m??[],[f,I]=Rl();return $(()=>{const p=new Set((m==null?void 0:m.map(({currency:L})=>L))||[]);e(Array.from(p),a)},[m,a,e]),d("div",{className:LM,children:d(Dl,{renderHeader:d(ua,{isEmpty:u,balance:h,widths:f,isHeader:!0,isSkeleton:c,isLoading:c,onWidthsSet:I}),filled:!0,fullWidth:n,children:g.length&&d(xl,{children:g.map(p=>d("li",{children:d(ua,{balance:p,widths:f,onWidthsSet:I})},p.currency))})})})});const AM=mt(({activeBalanceAccount:t,balanceAccountSelectionOptions:e,onBalanceAccountSelection:n})=>{const s=Ct(Et.down.xs);return e&&e.length>1?d(Qo,{popoverClassNameModifiers:["adyen-pe-balance-account-selector"],onChange:n,filterable:!1,multiSelect:!1,selected:t==null?void 0:t.id,withoutCollapseIndicator:!0,items:e,showOverlay:s}):null}),EM=AM,CM=t=>{const[e,n]=B(0),s=N(()=>n(0),[n]),o=M(()=>t==null?void 0:t[e],[t,e]),r=M(()=>t&&t.length>1?Object.freeze(t.map(({id:a})=>({id:a,name:a}))):void 0,[t]),i=N(({target:a})=>{const c=a==null?void 0:a.value,u=t==null?void 0:t.findIndex(({id:m})=>m===c);u>=0&&n(u)},[t,n]);return{activeBalanceAccount:o,balanceAccountSelectionOptions:r,onBalanceAccountSelection:i,resetBalanceAccountSelection:s}},DM=CM,vM=mt(({placeholder:t,selection:e,selectionOptions:n,updateSelection:s})=>{const o=Ct(Et.down.xs),r=Ct(Et.only.sm),i=Ct(Et.only.md);return n&&n.length>1?d(Qo,{onChange:s,filterable:!1,multiSelect:!0,placeholder:t,selected:e,withoutCollapseIndicator:!0,items:n,showOverlay:o,fitPosition:i||r}):null}),da=vM,ns=t=>{const e=`${t||""}`.trim();return e?e.split(/(?:\s*,\s*)+/).filter(Boolean):Lt},bM=t=>Object.freeze(t.map(e=>({id:e,name:e}))),OM=({filterParam:t,filterValues:e,filters:n,defaultFilters:s,updateFilters:o})=>{const r=M(()=>ns((n==null?void 0:n[t])??(s==null?void 0:s[t])??""),[s,n,t]),i=M(()=>e&&bM(e),[e]),a=N(({target:c})=>{o==null||o({[t]:(c==null?void 0:c.value)||""})},[o,t]);return{selection:r,selectionOptions:i,updateSelection:a}},dr=OM,xM=[G.CURRENCIES,G.CATEGORIES,G.STATUSES],io=Object.freeze(Object.fromEntries(xM.map(t=>[t,""]))),RM=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],wM=["Booked","Pending","Reversed"],jM=t=>{const e=aT(),n="rangePreset.last7Days",{from:s,to:o}=e[n];return{defaultFilterParams:{...io,[G.BALANCE_ACCOUNT]:t==null?void 0:t.id,[G.CREATED_SINCE]:new Date(s).toISOString(),[G.CREATED_UNTIL]:new Date(o).toISOString(),[G.MIN_AMOUNT]:void 0,[G.MAX_AMOUNT]:void 0},defaultTimeRange:n,timeRangeOptions:e}},PM=t=>{const[e,n]=B(Date.now()),s=P(jM(t)),o=N(()=>n(Date.now()),[n]);return $(()=>{o()},[t,o]),{defaultParams:s,nowTimestamp:e,refreshNowTimestamp:o}},kM=PM,WM=(t,e)=>{const n=dr({filterParam:G.CATEGORIES,filterValues:RM,defaultFilters:io,...t}),s=dr({filterParam:G.STATUSES,filterValues:wM,defaultFilters:io,...t}),o=dr({filterParam:G.CURRENCIES,filterValues:e,defaultFilters:io,...t});return{categoriesFilter:n,currenciesFilter:o,statusesFilter:s}},$M=WM;const yo=1e5,BM=({onChange:t,editAction:e,onValueUpdated:n,selectedCurrencies:s,availableCurrencies:o,value:r,...i})=>{const{i18n:a}=X(),[c,u]=B(i.minAmount!==void 0?parseFloat(i.minAmount)/yo:void 0),[m,h]=B(i.maxAmount!==void 0?parseFloat(i.maxAmount)/yo:void 0),g=N(()=>{t({minAmount:c,maxAmount:m})},[m,c,t]),f=N(()=>{t({minAmount:void 0,maxAmount:void 0}),h(void 0),u(void 0)},[t]);$(()=>{e===It.APPLY&&g(),e===It.CLEAR&&f()},[g,f,e]);const I=M(()=>({minAmount:c,maxAmount:m}),[m,c]);return $(()=>{I.minAmount||I.maxAmount?n(`${I.minAmount}-${I.maxAmount}`):n(null)},[I,n]),d("div",{className:"adyen-pe-range-selection-filter",children:[d("div",{className:"adyen-pe-range-selection-filter__input",children:[d("label",{htmlFor:"minValue",children:`${a.get("from")}:`}),d(Fr,{lang:a.locale,name:"minValue",type:"number",value:c,onInput:p=>{p.currentTarget&&u(p.currentTarget.value!==""?parseFloat(p.currentTarget.value):void 0)},min:0,isInvalid:c?c<0:!1,errorMessage:a.get("noNegativeNumbersAllowed")})]}),d("div",{className:"adyen-pe-range-selection-filter__input",children:[d("label",{htmlFor:"maxValue",children:`${a.get("to")}:`}),d(Fr,{lang:a.locale,name:"maxValue",type:"number",value:m,onInput:p=>{p.currentTarget&&h(p.currentTarget.value!==""?parseFloat(p.currentTarget.value):void 0)},min:c,isInvalid:m!==void 0&&c!==void 0?m<c:!1,errorMessage:a.get("secondValueShouldBeGreaterThanTheFirstOne")})]})]})},zM=({updateFilters:t,selectedCurrencies:e,availableCurrencies:n,...s})=>{const{i18n:o}=X(),[r,i]=B(),[a,c]=B(),u=M(()=>(e==null?void 0:e.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,e==null?void 0:e.length]),m=N((g,f)=>{const I=(e==null?void 0:e[0])||(n==null?void 0:n[0]),p=f&&I?{style:"currency",currency:I,currencyDisplay:"symbol"}:void 0;return g.toLocaleString(o.locale,p)},[n,o,e]),h=N(g=>{const{minAmount:f,maxAmount:I}=g??z;i({minAmount:f,maxAmount:I}),f===void 0&&I===void 0&&c(void 0),t({minAmount:f!==void 0?String(f*yo):void 0,maxAmount:I!==void 0?String(I*yo):void 0})},[t]);if(r&&(r.minAmount||r.maxAmount)){const{minAmount:g,maxAmount:f}=r??{};g!==void 0&&f!==void 0&&g<=f?c(`${m(g,u)} ${o.get("to").toLowerCase()} ${m(f,u)}`):g!==void 0&&f===void 0&&g>=0?c(`${o.get("from")} ${m(g,u)}`):c(g===void 0&&f!==void 0?`${o.get("to")} ${m(f,u)}`:void 0)}return d(Nl,{...s,updateFilters:t,minAmount:s.minAmount,maxAmount:s.maxAmount,onChange:h,value:a,label:a||s.label,type:"text",containerSize:is.MEDIUM,selectedCurrencies:e,availableCurrencies:n,render:BM})},pi="adyen-pe-transactions-overview",FM=pi+"__summary",ha=pi+"__summary-item";const UM=({onFiltersChanged:t,onLimitChanged:e,balanceAccounts:n,allowLimitSelection:s,preferredLimit:o=Cr,onTransactionSelected:r,showDetails:i,isLoadingBalanceAccount:a,onContactSupport:c})=>{const{i18n:u}=X(),m=Hs("getTransactions"),{activeBalanceAccount:h,balanceAccountSelectionOptions:g,onBalanceAccountSelection:f}=DM(n),{defaultParams:I,nowTimestamp:p,refreshNowTimestamp:L}=kM(h),S=N(async({balanceAccount:ee,...ht},Ys)=>m({signal:Ys,errorLevel:"error"},{query:{...ht,statuses:ns(ht[G.STATUSES]),categories:ns(ht[G.CATEGORIES]),currencies:ns(ht[G.CURRENCIES]),createdSince:ht[G.CREATED_SINCE]??I.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:ht[G.CREATED_UNTIL]??I.current.defaultFilterParams[G.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(h==null?void 0:h.id)??"",minAmount:ht.minAmount!==void 0?parseFloat(ht.minAmount):void 0,maxAmount:ht.maxAmount!==void 0?parseFloat(ht.maxAmount):void 0}}),[h==null?void 0:h.id,I,m]),D=M(()=>tt(t)?t:void 0,[t]),T=M(()=>tt(e)?e:void 0,[e]),E=M(()=>s?qy:void 0,[s]),{canResetFilters:C,error:x,fetching:v,filters:R,limit:j,limitOptions:k,records:V,resetFilters:Z,updateFilters:H,updateLimit:K,...Dt}=N_({fetchRecords:S,dataField:"transactions",filterParams:I.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onLimitChanged:T,onFiltersChanged:D,preferredLimit:o,preferredLimitOptions:E,enabled:!!(h!=null&&h.id)}),[Tt,Nt]=B([]),[vt,Wt]=B(!1),At=N((ee,ht)=>{Nt(ee),Wt(ht)},[]),{categoriesFilter:pt,currenciesFilter:on,statusesFilter:qt}=$M({filters:R,updateFilters:H},Tt);$(()=>{Nt(void 0),H({[G.BALANCE_ACCOUNT]:h==null?void 0:h.id,[G.CURRENCIES]:void 0})},[H,h==null?void 0:h.id]),$(()=>{L()},[R,L]),$(()=>{qt.updateSelection({target:{value:"Booked",name:"status"}})},[qt]);const te=Ct(Et.down.sm);return d("div",{className:pi,children:[d(GI,{children:[d(EM,{activeBalanceAccount:h,balanceAccountSelectionOptions:g,onBalanceAccountSelection:f}),d(iM,{canResetFilters:C,defaultParams:I,filters:R,nowTimestamp:p,refreshNowTimestamp:L,updateFilters:H}),d(da,{...pt,placeholder:u.get("filterPlaceholder.category")}),d(zM,{availableCurrencies:Tt,selectedCurrencies:ns(R[G.CURRENCIES]),name:"range",label:u.get("amount"),minAmount:R[G.MIN_AMOUNT],maxAmount:R[G.MAX_AMOUNT],updateFilters:H,onChange:H}),d(da,{...on,placeholder:u.get("filterPlaceholder.currency")})]}),d("div",{className:FM,children:[d("div",{className:ha,children:d(SM,{availableCurrencies:Tt,isAvailableCurrenciesFetching:vt,balanceAccountId:h==null?void 0:h.id,statuses:qt.selection,categories:pt.selection,createdUntil:R[G.CREATED_UNTIL],createdSince:R[G.CREATED_SINCE],currencies:on.selection,minAmount:R[G.MIN_AMOUNT]?parseFloat(R[G.MIN_AMOUNT]):void 0,maxAmount:R[G.MAX_AMOUNT]?parseFloat(R[G.MAX_AMOUNT]):void 0,fullWidth:te})}),d("div",{className:ha,children:d(NM,{balanceAccountId:h==null?void 0:h.id,onCurrenciesChange:At,fullWidth:te})})]}),d(Ky,{balanceAccounts:n,availableCurrencies:Tt,loading:v||a||!n,transactions:V,onTransactionSelected:r,showPagination:!0,showDetails:i,balanceAccountDescription:(h==null?void 0:h.description)||"",limit:j,limitOptions:k,onContactSupport:c,onLimitSelection:K,error:x,...Dt})]})},wl="adyen-pe-transactions-overview-container",HM=wl+"--with-error";function GM(t){const{sessionSetupError:e,endpoints:n}=Jo(),s=Hs("getBalanceAccounts"),{data:o,isFetching:r}=Vo({fetchOptions:{enabled:!!n.getBalanceAccounts,keepPrevData:!0},queryFn:N(async()=>s(z),[s])}),i=M(()=>o==null?void 0:o.balanceAccounts.filter(c=>t.balanceAccountId?c.id===t.balanceAccountId:!0),[o==null?void 0:o.balanceAccounts,t.balanceAccountId]),a=M(()=>!!t.balanceAccountId&&!!(o!=null&&o.balanceAccounts.length)&&(i==null?void 0:i.length)===0,[i==null?void 0:i.length,o==null?void 0:o.balanceAccounts.length,t.balanceAccountId]);return d("div",{className:U(wl,{[HM]:e}),children:e?d(ls,{withImage:!0,centered:!0,title:"somethingWentWrong",message:["weCouldNotLoadTheTransactionsOverview","tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):a?d(ls,{withImage:!0,centered:!0,title:"somethingWentWrong",message:["weCouldNotLoadTheTransactionsOverview","theSelectedBalanceAccountIsIncorrect"]}):d(UM,{...t,balanceAccounts:i,isLoadingBalanceAccount:r})})}var hr;let YM=(hr=class extends yc{constructor(n){super(n);O(this,"componentToRender",()=>d(GM,{...this.props,balanceAccountId:this.props.core.options.balanceAccountId,ref:n=>{this.componentRef=n},elementRef:this.elementRef}));this.elementRef=n&&n.elementRef||this,this.componentToRender=this.componentToRender.bind(this)}},O(hr,"type","transactions"),hr);const ZM=YM,JM=({isLoading:t,skeletonRowNumber:e=0})=>{const n=M(()=>Array.from({length:e},(s,o)=>o),[e]);return d(Y,{children:n.map(s=>d("span",{className:U({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":t})},`transaction-data-skeleton-${s}`))})},VM=JM,QM=({transaction:t,isFetching:e})=>{var r;const{i18n:n}=X(),s=M(()=>t?n.date(new Date(t.creationDate),{weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"}).toString():"",[t,n]),o=(t==null?void 0:t.status)==="Booked"?"default":(t==null?void 0:t.status)==="Reversed"?"error":"pending";return d(Y,{children:t?d("div",{className:"adyen-pe-transaction-data",children:[d("div",{className:"adyen-pe-transaction-data__container",children:[((t==null?void 0:t.status)||(t==null?void 0:t.category))&&d("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(t==null?void 0:t.status)&&d(Er,{label:n.get(t.status),variant:t.status==="Booked"?Gt.SUCCESS:t.status==="Reversed"?Gt.ERROR:Gt.DEFAULT}),t.category&&d(Er,{label:n.get(`txType.${t.category}`),variant:Gt.DEFAULT})]}),d("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${o}`,children:t.amount?n.amount(t.amount.value,t.amount.currency,{currencyDisplay:"symbol"}):null}),((t==null?void 0:t.paymentMethod)||(t==null?void 0:t.bankAccount))&&d("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[d("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:d($c,{name:t.paymentMethod?t.paymentMethod.type:"bankTransfer",alt:t.paymentMethod?t.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transactions__payment-method-logo"})}),d("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:t!=null&&t.paymentMethod?Wc(t==null?void 0:t.paymentMethod,"detail"):(r=t==null?void 0:t.bankAccount)==null?void 0:r.accountNumberLastFourDigits})]}),d("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:s})]}),(t==null?void 0:t.balanceAccountDescription)&&d("div",{className:"adyen-pe-transaction-data__container",children:[d("div",{className:"adyen-pe-transaction-data__label",children:n.get("account")}),d("div",{children:t.balanceAccountDescription})]}),d("div",{className:"adyen-pe-transaction-data__container",children:[d("div",{className:"adyen-pe-transaction-data__label",children:n.get("referenceID")}),d("div",{"aria-label":n.get("referenceID"),children:t.id})]})]}):d(VM,{isLoading:e,skeletonRowNumber:6})})};const ma=t=>"transaction"in t;function jl(t){const e=M(()=>ma(t)?t.transaction:null,[t]),n=M(()=>ma(t)?null:t.transactionId,[t]),{i18n:s}=X(),o=Hs("getTransaction"),r=N(async()=>{if(n)return o(z,{path:{transactionId:n}})},[o,n]),{data:i,error:a,isFetching:c}=Vo({fetchOptions:M(()=>({enabled:!!n}),[n]),queryFn:r}),u=M(()=>{if(a)return Bc(a,t.onContactSupport)},[a,t.onContactSupport]),m=e??i;return d("div",{className:"adyen-pe-transaction",children:[t.title&&d("div",{className:"adyen-pe-title",children:s.get(t.title)}),a&&u&&d("div",{className:"adyen-pe-transaction--error-container",children:d(ls,{centered:!0,withImage:!0,...u})}),d(QM,{transaction:m,isFetching:c})]})}class Pl extends yc{constructor(n){super(n);O(this,"componentToRender",()=>d(jl,{...this.props}));this.elementRef=n&&n.elementRef||this,this.componentToRender=this.componentToRender.bind(this)}}O(Pl,"type","transactionsDetails");const XM=Pl;async function KM(t){return await new qa(t).initialize()}exports.AdyenPlatformExperience=KM;exports.Core=qa;exports.TransactionDetails=jl;exports.TransactionFilterParam=G;exports.TransactionsElement=ZM;exports.TransactionsElement$1=XM;exports.all_locales=xg;exports.ar=ag;exports.cs_CZ=cg;exports.da_DK=lg;exports.de_DE=ug;exports.el_GR=dg;exports.en_US=Gr;exports.es_ES=hg;exports.fi_FI=mg;exports.fr_FR=fg;exports.hasOwnProperty=ye;exports.hr_HR=gg;exports.hu_HU=Ig;exports.it_IT=pg;exports.ja_JP=yg;exports.k=Y;exports.ko_KR=_g;exports.nl_NL=Tg;exports.no_NO=Mg;exports.o=d;exports.pl_PL=Sg;exports.pt_BR=Lg;exports.pt_PT=Ng;exports.ro_RO=Ag;exports.ru_RU=Eg;exports.sk_SK=Cg;exports.sl_SI=Dg;exports.sv_SE=vg;exports.zh_CN=bg;exports.zh_TW=Og;
|
|
12
|
+
//# sourceMappingURL=index-7e2df524.js.map
|